application-eb7f41c3b76cfaee21624034caa6657aa79cfd5d5d98aed9190c6318c06e7656.js 3.6 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125581265812758128581295813058131581325813358134581355813658137581385813958140581415814258143581445814558146581475814858149581505815158152581535815458155581565815758158581595816058161581625816358164581655816658167581685816958170581715817258173581745817558176581775817858179581805818158182581835818458185581865818758188581895819058191581925819358194581955819658197581985819958200582015820258203582045820558206582075820858209582105821158212582135821458215582165821758218582195822058221582225822358224582255822658227582285822958230582315823258233582345823558236582375823858239582405824158242582435824458245582465824758248582495825058251582525825358254582555825658257582585825958260582615826258263582645826558266582675826858269582705827158272582735827458275582765827758278582795828058281582825828358284582855828658287582885828958290582915829258293582945829558296582975829858299583005830158302583035830458305583065830758308583095831058311583125831358314583155831658317583185831958320583215832258323583245832558326583275832858329583305833158332583335833458335583365833758338583395834058341583425834358344583455834658347583485834958350583515835258353583545835558356583575835858359583605836158362583635836458365583665836758368583695837058371583725837358374583755837658377583785837958380583815838258383583845838558386583875838858389583905839158392583935839458395583965839758398583995840058401584025840358404584055840658407584085840958410584115841258413584145841558416584175841858419584205842158422584235842458425584265842758428584295843058431584325843358434584355843658437584385843958440584415844258443584445844558446584475844858449584505845158452584535845458455584565845758458584595846058461584625846358464584655846658467584685846958470584715847258473584745847558476584775847858479584805848158482584835848458485584865848758488584895849058491584925849358494584955849658497584985849958500585015850258503585045850558506585075850858509585105851158512585135851458515585165851758518585195852058521585225852358524585255852658527585285852958530585315853258533585345853558536585375853858539585405854158542585435854458545585465854758548585495855058551585525855358554585555855658557585585855958560585615856258563585645856558566585675856858569585705857158572585735857458575585765857758578585795858058581585825858358584585855858658587585885858958590585915859258593585945859558596585975859858599586005860158602586035860458605586065860758608586095861058611586125861358614586155861658617586185861958620586215862258623586245862558626586275862858629586305863158632586335863458635586365863758638586395864058641586425864358644586455864658647586485864958650586515865258653586545865558656586575865858659586605866158662586635866458665586665866758668586695867058671586725867358674586755867658677586785867958680586815868258683586845868558686586875868858689586905869158692586935869458695586965869758698586995870058701587025870358704587055870658707587085870958710587115871258713587145871558716587175871858719587205872158722587235872458725587265872758728587295873058731587325873358734587355873658737587385873958740587415874258743587445874558746587475874858749587505875158752587535875458755587565875758758587595876058761587625876358764587655876658767587685876958770587715877258773587745877558776587775877858779587805878158782587835878458785587865878758788587895879058791587925879358794587955879658797587985879958800588015880258803588045880558806588075880858809588105881158812588135881458815588165881758818588195882058821588225882358824588255882658827588285882958830588315883258833588345883558836588375883858839588405884158842588435884458845588465884758848588495885058851588525885358854588555885658857588585885958860588615886258863588645886558866588675886858869588705887158872588735887458875588765887758878588795888058881588825888358884588855888658887588885888958890588915889258893588945889558896588975889858899589005890158902589035890458905589065890758908589095891058911589125891358914589155891658917589185891958920589215892258923589245892558926589275892858929589305893158932589335893458935589365893758938589395894058941589425894358944589455894658947589485894958950589515895258953589545895558956589575895858959589605896158962589635896458965589665896758968589695897058971589725897358974589755897658977589785897958980589815898258983589845898558986589875898858989589905899158992589935899458995589965899758998589995900059001590025900359004590055900659007590085900959010590115901259013590145901559016590175901859019590205902159022590235902459025590265902759028590295903059031590325903359034590355903659037590385903959040590415904259043590445904559046590475904859049590505905159052590535905459055590565905759058590595906059061590625906359064590655906659067590685906959070590715907259073590745907559076590775907859079590805908159082590835908459085590865908759088590895909059091590925909359094590955909659097590985909959100591015910259103591045910559106591075910859109591105911159112591135911459115591165911759118591195912059121591225912359124591255912659127591285912959130591315913259133591345913559136591375913859139591405914159142591435914459145591465914759148591495915059151591525915359154591555915659157591585915959160591615916259163591645916559166591675916859169591705917159172591735917459175591765917759178591795918059181591825918359184591855918659187591885918959190591915919259193591945919559196591975919859199592005920159202592035920459205592065920759208592095921059211592125921359214592155921659217592185921959220592215922259223592245922559226592275922859229592305923159232592335923459235592365923759238592395924059241592425924359244592455924659247592485924959250592515925259253592545925559256592575925859259592605926159262592635926459265592665926759268592695927059271592725927359274592755927659277592785927959280592815928259283592845928559286592875928859289592905929159292592935929459295592965929759298592995930059301593025930359304593055930659307593085930959310593115931259313593145931559316593175931859319593205932159322593235932459325593265932759328593295933059331593325933359334593355933659337593385933959340593415934259343593445934559346593475934859349593505935159352593535935459355593565935759358593595936059361593625936359364593655936659367593685936959370593715937259373593745937559376593775937859379593805938159382593835938459385593865938759388593895939059391593925939359394593955939659397593985939959400594015940259403594045940559406594075940859409594105941159412594135941459415594165941759418594195942059421594225942359424594255942659427594285942959430594315943259433594345943559436594375943859439594405944159442594435944459445594465944759448594495945059451594525945359454594555945659457594585945959460594615946259463594645946559466594675946859469594705947159472594735947459475594765947759478594795948059481594825948359484594855948659487594885948959490594915949259493594945949559496594975949859499595005950159502595035950459505595065950759508595095951059511595125951359514595155951659517595185951959520595215952259523595245952559526595275952859529595305953159532595335953459535595365953759538595395954059541595425954359544595455954659547595485954959550595515955259553595545955559556595575955859559595605956159562595635956459565595665956759568595695957059571595725957359574595755957659577595785957959580595815958259583595845958559586595875958859589595905959159592595935959459595595965959759598595995960059601596025960359604596055960659607596085960959610596115961259613596145961559616596175961859619596205962159622596235962459625596265962759628596295963059631596325963359634596355963659637596385963959640596415964259643596445964559646596475964859649596505965159652596535965459655596565965759658596595966059661596625966359664596655966659667596685966959670596715967259673596745967559676596775967859679596805968159682596835968459685596865968759688596895969059691596925969359694596955969659697596985969959700597015970259703597045970559706597075970859709597105971159712597135971459715597165971759718597195972059721597225972359724597255972659727597285972959730597315973259733597345973559736597375973859739597405974159742597435974459745597465974759748597495975059751597525975359754597555975659757597585975959760597615976259763597645976559766597675976859769597705977159772597735977459775597765977759778597795978059781597825978359784597855978659787597885978959790597915979259793597945979559796597975979859799598005980159802598035980459805598065980759808598095981059811598125981359814598155981659817598185981959820598215982259823598245982559826598275982859829598305983159832598335983459835598365983759838598395984059841598425984359844598455984659847598485984959850598515985259853598545985559856598575985859859598605986159862598635986459865598665986759868598695987059871598725987359874598755987659877598785987959880598815988259883598845988559886598875988859889598905989159892598935989459895598965989759898598995990059901599025990359904599055990659907599085990959910599115991259913599145991559916599175991859919599205992159922599235992459925599265992759928599295993059931599325993359934599355993659937599385993959940599415994259943599445994559946599475994859949599505995159952599535995459955599565995759958599595996059961599625996359964599655996659967599685996959970599715997259973599745997559976599775997859979599805998159982599835998459985599865998759988599895999059991599925999359994599955999659997599985999960000600016000260003600046000560006600076000860009600106001160012600136001460015600166001760018600196002060021600226002360024600256002660027600286002960030600316003260033600346003560036600376003860039600406004160042600436004460045600466004760048600496005060051600526005360054600556005660057600586005960060600616006260063600646006560066600676006860069600706007160072600736007460075600766007760078600796008060081600826008360084600856008660087600886008960090600916009260093600946009560096600976009860099601006010160102601036010460105601066010760108601096011060111601126011360114601156011660117601186011960120601216012260123601246012560126601276012860129601306013160132601336013460135601366013760138601396014060141601426014360144601456014660147601486014960150601516015260153601546015560156601576015860159601606016160162601636016460165601666016760168601696017060171601726017360174601756017660177601786017960180601816018260183601846018560186601876018860189601906019160192601936019460195601966019760198601996020060201602026020360204602056020660207602086020960210602116021260213602146021560216602176021860219602206022160222602236022460225602266022760228602296023060231602326023360234602356023660237602386023960240602416024260243602446024560246602476024860249602506025160252602536025460255602566025760258602596026060261602626026360264602656026660267602686026960270602716027260273602746027560276602776027860279602806028160282602836028460285602866028760288602896029060291602926029360294602956029660297602986029960300603016030260303603046030560306603076030860309603106031160312603136031460315603166031760318603196032060321603226032360324603256032660327603286032960330603316033260333603346033560336603376033860339603406034160342603436034460345603466034760348603496035060351603526035360354603556035660357603586035960360603616036260363603646036560366603676036860369603706037160372603736037460375603766037760378603796038060381603826038360384603856038660387603886038960390603916039260393603946039560396603976039860399604006040160402604036040460405604066040760408604096041060411604126041360414604156041660417604186041960420604216042260423604246042560426604276042860429604306043160432604336043460435604366043760438604396044060441604426044360444604456044660447604486044960450604516045260453604546045560456604576045860459604606046160462604636046460465604666046760468604696047060471604726047360474604756047660477604786047960480604816048260483604846048560486604876048860489604906049160492604936049460495604966049760498604996050060501605026050360504605056050660507605086050960510605116051260513605146051560516605176051860519605206052160522605236052460525605266052760528605296053060531605326053360534605356053660537605386053960540605416054260543605446054560546605476054860549605506055160552605536055460555605566055760558605596056060561605626056360564605656056660567605686056960570605716057260573605746057560576605776057860579605806058160582605836058460585605866058760588605896059060591605926059360594605956059660597605986059960600606016060260603606046060560606606076060860609606106061160612606136061460615606166061760618606196062060621606226062360624606256062660627606286062960630606316063260633606346063560636606376063860639606406064160642606436064460645606466064760648606496065060651606526065360654606556065660657606586065960660606616066260663606646066560666606676066860669606706067160672606736067460675606766067760678606796068060681606826068360684606856068660687606886068960690606916069260693606946069560696606976069860699607006070160702607036070460705607066070760708607096071060711607126071360714607156071660717607186071960720607216072260723607246072560726607276072860729607306073160732607336073460735607366073760738607396074060741607426074360744607456074660747607486074960750607516075260753607546075560756607576075860759607606076160762607636076460765607666076760768607696077060771607726077360774607756077660777607786077960780607816078260783607846078560786607876078860789607906079160792607936079460795607966079760798607996080060801608026080360804608056080660807608086080960810608116081260813608146081560816608176081860819608206082160822608236082460825608266082760828608296083060831608326083360834608356083660837608386083960840608416084260843608446084560846608476084860849608506085160852608536085460855608566085760858608596086060861608626086360864608656086660867608686086960870608716087260873608746087560876608776087860879608806088160882608836088460885608866088760888608896089060891608926089360894608956089660897608986089960900609016090260903609046090560906609076090860909609106091160912609136091460915609166091760918609196092060921609226092360924609256092660927609286092960930609316093260933609346093560936609376093860939609406094160942609436094460945609466094760948609496095060951609526095360954609556095660957609586095960960609616096260963609646096560966609676096860969609706097160972609736097460975609766097760978609796098060981609826098360984609856098660987609886098960990609916099260993609946099560996609976099860999610006100161002610036100461005610066100761008610096101061011610126101361014610156101661017610186101961020610216102261023610246102561026610276102861029610306103161032610336103461035610366103761038610396104061041610426104361044610456104661047610486104961050610516105261053610546105561056610576105861059610606106161062610636106461065610666106761068610696107061071610726107361074610756107661077610786107961080610816108261083610846108561086610876108861089610906109161092610936109461095610966109761098610996110061101611026110361104611056110661107611086110961110611116111261113611146111561116611176111861119611206112161122611236112461125611266112761128611296113061131611326113361134611356113661137611386113961140611416114261143611446114561146611476114861149611506115161152611536115461155611566115761158611596116061161611626116361164611656116661167611686116961170611716117261173611746117561176611776117861179611806118161182611836118461185611866118761188611896119061191611926119361194611956119661197611986119961200612016120261203612046120561206612076120861209612106121161212612136121461215612166121761218612196122061221612226122361224612256122661227612286122961230612316123261233612346123561236612376123861239612406124161242612436124461245612466124761248612496125061251612526125361254612556125661257612586125961260612616126261263612646126561266612676126861269612706127161272612736127461275612766127761278612796128061281612826128361284612856128661287612886128961290612916129261293612946129561296612976129861299613006130161302613036130461305613066130761308613096131061311613126131361314613156131661317613186131961320613216132261323613246132561326613276132861329613306133161332613336133461335613366133761338613396134061341613426134361344613456134661347613486134961350613516135261353613546135561356613576135861359613606136161362613636136461365613666136761368613696137061371613726137361374613756137661377613786137961380613816138261383613846138561386613876138861389613906139161392613936139461395613966139761398613996140061401614026140361404614056140661407614086140961410614116141261413614146141561416614176141861419614206142161422614236142461425614266142761428614296143061431614326143361434614356143661437614386143961440614416144261443614446144561446614476144861449614506145161452614536145461455614566145761458614596146061461614626146361464614656146661467614686146961470614716147261473614746147561476614776147861479614806148161482614836148461485614866148761488614896149061491614926149361494614956149661497614986149961500615016150261503615046150561506615076150861509615106151161512615136151461515615166151761518615196152061521615226152361524615256152661527615286152961530615316153261533615346153561536615376153861539615406154161542615436154461545615466154761548615496155061551615526155361554615556155661557615586155961560615616156261563615646156561566615676156861569615706157161572615736157461575615766157761578615796158061581615826158361584615856158661587615886158961590615916159261593615946159561596615976159861599616006160161602616036160461605616066160761608616096161061611616126161361614616156161661617616186161961620616216162261623616246162561626616276162861629616306163161632616336163461635616366163761638616396164061641616426164361644616456164661647616486164961650616516165261653616546165561656616576165861659616606166161662616636166461665616666166761668616696167061671616726167361674616756167661677616786167961680616816168261683616846168561686616876168861689616906169161692616936169461695616966169761698616996170061701617026170361704617056170661707617086170961710617116171261713617146171561716617176171861719617206172161722617236172461725617266172761728617296173061731617326173361734617356173661737617386173961740617416174261743617446174561746617476174861749617506175161752617536175461755617566175761758617596176061761617626176361764617656176661767617686176961770617716177261773617746177561776617776177861779617806178161782617836178461785617866178761788617896179061791617926179361794617956179661797617986179961800618016180261803618046180561806618076180861809618106181161812618136181461815618166181761818618196182061821618226182361824618256182661827618286182961830618316183261833618346183561836618376183861839618406184161842618436184461845618466184761848618496185061851618526185361854618556185661857618586185961860618616186261863618646186561866618676186861869618706187161872618736187461875618766187761878618796188061881618826188361884618856188661887618886188961890618916189261893618946189561896618976189861899619006190161902619036190461905619066190761908619096191061911619126191361914619156191661917619186191961920619216192261923619246192561926619276192861929619306193161932619336193461935619366193761938619396194061941619426194361944619456194661947619486194961950619516195261953619546195561956619576195861959619606196161962619636196461965619666196761968619696197061971619726197361974619756197661977619786197961980619816198261983619846198561986619876198861989619906199161992619936199461995619966199761998619996200062001620026200362004620056200662007620086200962010620116201262013620146201562016620176201862019620206202162022620236202462025620266202762028620296203062031620326203362034620356203662037620386203962040620416204262043620446204562046620476204862049620506205162052620536205462055620566205762058620596206062061620626206362064620656206662067620686206962070620716207262073620746207562076620776207862079620806208162082620836208462085620866208762088620896209062091620926209362094620956209662097620986209962100621016210262103621046210562106621076210862109621106211162112621136211462115621166211762118621196212062121621226212362124621256212662127621286212962130621316213262133621346213562136621376213862139621406214162142621436214462145621466214762148621496215062151621526215362154621556215662157621586215962160621616216262163621646216562166621676216862169621706217162172621736217462175621766217762178621796218062181621826218362184621856218662187621886218962190621916219262193621946219562196621976219862199622006220162202622036220462205622066220762208622096221062211622126221362214622156221662217622186221962220622216222262223622246222562226622276222862229622306223162232622336223462235622366223762238622396224062241622426224362244622456224662247622486224962250622516225262253622546225562256622576225862259622606226162262622636226462265622666226762268622696227062271622726227362274622756227662277622786227962280622816228262283622846228562286622876228862289622906229162292622936229462295622966229762298622996230062301623026230362304623056230662307623086230962310623116231262313623146231562316623176231862319623206232162322623236232462325623266232762328623296233062331623326233362334623356233662337623386233962340623416234262343623446234562346623476234862349623506235162352623536235462355623566235762358623596236062361623626236362364623656236662367623686236962370623716237262373623746237562376623776237862379623806238162382623836238462385623866238762388623896239062391623926239362394623956239662397623986239962400624016240262403624046240562406624076240862409624106241162412624136241462415624166241762418624196242062421624226242362424624256242662427624286242962430624316243262433624346243562436624376243862439624406244162442624436244462445624466244762448624496245062451624526245362454624556245662457624586245962460624616246262463624646246562466624676246862469624706247162472624736247462475624766247762478624796248062481624826248362484624856248662487624886248962490624916249262493624946249562496624976249862499625006250162502625036250462505625066250762508625096251062511625126251362514625156251662517625186251962520625216252262523625246252562526625276252862529625306253162532625336253462535625366253762538625396254062541625426254362544625456254662547625486254962550625516255262553625546255562556625576255862559625606256162562625636256462565625666256762568625696257062571625726257362574625756257662577625786257962580625816258262583625846258562586625876258862589625906259162592625936259462595625966259762598625996260062601626026260362604626056260662607626086260962610626116261262613626146261562616626176261862619626206262162622626236262462625626266262762628626296263062631626326263362634626356263662637626386263962640626416264262643626446264562646626476264862649626506265162652626536265462655626566265762658626596266062661626626266362664626656266662667626686266962670626716267262673626746267562676626776267862679626806268162682626836268462685626866268762688626896269062691626926269362694626956269662697626986269962700627016270262703627046270562706627076270862709627106271162712627136271462715627166271762718627196272062721627226272362724627256272662727627286272962730627316273262733627346273562736627376273862739627406274162742627436274462745627466274762748627496275062751627526275362754627556275662757627586275962760627616276262763627646276562766627676276862769627706277162772627736277462775627766277762778627796278062781627826278362784627856278662787627886278962790627916279262793627946279562796627976279862799628006280162802628036280462805628066280762808628096281062811628126281362814628156281662817628186281962820628216282262823628246282562826628276282862829628306283162832628336283462835628366283762838628396284062841628426284362844628456284662847628486284962850628516285262853628546285562856628576285862859628606286162862628636286462865628666286762868628696287062871628726287362874628756287662877628786287962880628816288262883628846288562886628876288862889628906289162892628936289462895628966289762898628996290062901629026290362904629056290662907629086290962910629116291262913629146291562916629176291862919629206292162922629236292462925629266292762928629296293062931629326293362934629356293662937629386293962940629416294262943629446294562946629476294862949629506295162952629536295462955629566295762958629596296062961629626296362964629656296662967629686296962970629716297262973629746297562976629776297862979629806298162982629836298462985629866298762988629896299062991629926299362994629956299662997629986299963000630016300263003630046300563006630076300863009630106301163012630136301463015630166301763018630196302063021630226302363024630256302663027630286302963030630316303263033630346303563036630376303863039630406304163042630436304463045630466304763048630496305063051630526305363054630556305663057630586305963060630616306263063630646306563066630676306863069630706307163072630736307463075630766307763078630796308063081630826308363084630856308663087630886308963090630916309263093630946309563096630976309863099631006310163102631036310463105631066310763108631096311063111631126311363114631156311663117631186311963120631216312263123631246312563126631276312863129631306313163132631336313463135631366313763138631396314063141631426314363144631456314663147631486314963150631516315263153631546315563156631576315863159631606316163162631636316463165631666316763168631696317063171631726317363174631756317663177631786317963180631816318263183631846318563186631876318863189631906319163192631936319463195631966319763198631996320063201632026320363204632056320663207632086320963210632116321263213632146321563216632176321863219632206322163222632236322463225632266322763228632296323063231632326323363234632356323663237632386323963240632416324263243632446324563246632476324863249632506325163252632536325463255632566325763258632596326063261632626326363264632656326663267632686326963270632716327263273632746327563276632776327863279632806328163282632836328463285632866328763288632896329063291632926329363294632956329663297632986329963300633016330263303633046330563306633076330863309633106331163312633136331463315633166331763318633196332063321633226332363324633256332663327633286332963330633316333263333633346333563336633376333863339633406334163342633436334463345633466334763348633496335063351633526335363354633556335663357633586335963360633616336263363633646336563366633676336863369633706337163372633736337463375633766337763378633796338063381633826338363384633856338663387633886338963390633916339263393633946339563396633976339863399634006340163402634036340463405634066340763408634096341063411634126341363414634156341663417634186341963420634216342263423634246342563426634276342863429634306343163432634336343463435634366343763438634396344063441634426344363444634456344663447634486344963450634516345263453634546345563456634576345863459634606346163462634636346463465634666346763468634696347063471634726347363474634756347663477634786347963480634816348263483634846348563486634876348863489634906349163492634936349463495634966349763498634996350063501635026350363504635056350663507635086350963510635116351263513635146351563516635176351863519635206352163522635236352463525635266352763528635296353063531635326353363534635356353663537635386353963540635416354263543635446354563546635476354863549635506355163552635536355463555635566355763558635596356063561635626356363564635656356663567635686356963570635716357263573635746357563576635776357863579635806358163582635836358463585635866358763588635896359063591635926359363594635956359663597635986359963600636016360263603636046360563606636076360863609636106361163612636136361463615636166361763618636196362063621636226362363624636256362663627636286362963630636316363263633636346363563636636376363863639636406364163642636436364463645636466364763648636496365063651636526365363654636556365663657636586365963660636616366263663636646366563666636676366863669636706367163672636736367463675636766367763678636796368063681636826368363684636856368663687636886368963690636916369263693636946369563696636976369863699637006370163702637036370463705637066370763708637096371063711637126371363714637156371663717637186371963720637216372263723637246372563726637276372863729637306373163732637336373463735637366373763738637396374063741637426374363744637456374663747637486374963750637516375263753637546375563756637576375863759637606376163762637636376463765637666376763768637696377063771637726377363774637756377663777637786377963780637816378263783637846378563786637876378863789637906379163792637936379463795637966379763798637996380063801638026380363804638056380663807638086380963810638116381263813638146381563816638176381863819638206382163822638236382463825638266382763828638296383063831638326383363834638356383663837638386383963840638416384263843638446384563846638476384863849638506385163852638536385463855638566385763858638596386063861638626386363864638656386663867638686386963870638716387263873638746387563876638776387863879638806388163882638836388463885638866388763888638896389063891638926389363894638956389663897638986389963900639016390263903639046390563906639076390863909639106391163912639136391463915639166391763918639196392063921639226392363924639256392663927639286392963930639316393263933639346393563936639376393863939639406394163942639436394463945639466394763948639496395063951639526395363954639556395663957639586395963960639616396263963639646396563966639676396863969639706397163972639736397463975639766397763978639796398063981639826398363984639856398663987639886398963990639916399263993639946399563996639976399863999640006400164002640036400464005640066400764008640096401064011640126401364014640156401664017640186401964020640216402264023640246402564026640276402864029640306403164032640336403464035640366403764038640396404064041640426404364044640456404664047640486404964050640516405264053640546405564056640576405864059640606406164062640636406464065640666406764068640696407064071640726407364074640756407664077640786407964080640816408264083640846408564086640876408864089640906409164092640936409464095640966409764098640996410064101641026410364104641056410664107641086410964110641116411264113641146411564116641176411864119641206412164122641236412464125641266412764128641296413064131641326413364134641356413664137641386413964140641416414264143641446414564146641476414864149641506415164152641536415464155641566415764158641596416064161641626416364164641656416664167641686416964170641716417264173641746417564176641776417864179641806418164182641836418464185641866418764188641896419064191641926419364194641956419664197641986419964200642016420264203642046420564206642076420864209642106421164212642136421464215642166421764218642196422064221642226422364224642256422664227642286422964230642316423264233642346423564236642376423864239642406424164242642436424464245642466424764248642496425064251642526425364254642556425664257642586425964260642616426264263642646426564266642676426864269642706427164272642736427464275642766427764278642796428064281642826428364284642856428664287642886428964290642916429264293642946429564296642976429864299643006430164302643036430464305643066430764308643096431064311643126431364314643156431664317643186431964320643216432264323643246432564326643276432864329643306433164332643336433464335643366433764338643396434064341643426434364344643456434664347643486434964350643516435264353643546435564356643576435864359643606436164362643636436464365643666436764368643696437064371643726437364374643756437664377643786437964380643816438264383643846438564386643876438864389643906439164392643936439464395643966439764398643996440064401644026440364404644056440664407644086440964410644116441264413644146441564416644176441864419644206442164422644236442464425644266442764428644296443064431644326443364434644356443664437644386443964440644416444264443644446444564446644476444864449644506445164452644536445464455644566445764458644596446064461644626446364464644656446664467644686446964470644716447264473644746447564476644776447864479644806448164482644836448464485644866448764488644896449064491644926449364494644956449664497644986449964500645016450264503645046450564506645076450864509645106451164512645136451464515645166451764518645196452064521645226452364524645256452664527645286452964530645316453264533645346453564536645376453864539645406454164542645436454464545645466454764548645496455064551645526455364554645556455664557645586455964560645616456264563645646456564566645676456864569645706457164572645736457464575645766457764578645796458064581645826458364584645856458664587645886458964590645916459264593645946459564596645976459864599646006460164602646036460464605646066460764608646096461064611646126461364614646156461664617646186461964620646216462264623646246462564626646276462864629646306463164632646336463464635646366463764638646396464064641646426464364644646456464664647646486464964650646516465264653646546465564656646576465864659646606466164662646636466464665646666466764668646696467064671646726467364674646756467664677646786467964680646816468264683646846468564686646876468864689646906469164692646936469464695646966469764698646996470064701647026470364704647056470664707647086470964710647116471264713647146471564716647176471864719647206472164722647236472464725647266472764728647296473064731647326473364734647356473664737647386473964740647416474264743647446474564746647476474864749647506475164752647536475464755647566475764758647596476064761647626476364764647656476664767647686476964770647716477264773647746477564776647776477864779647806478164782647836478464785647866478764788647896479064791647926479364794647956479664797647986479964800648016480264803648046480564806648076480864809648106481164812648136481464815648166481764818648196482064821648226482364824648256482664827648286482964830648316483264833648346483564836648376483864839648406484164842648436484464845648466484764848648496485064851648526485364854648556485664857648586485964860648616486264863648646486564866648676486864869648706487164872648736487464875648766487764878648796488064881648826488364884648856488664887648886488964890648916489264893648946489564896648976489864899649006490164902649036490464905649066490764908649096491064911649126491364914649156491664917649186491964920649216492264923649246492564926649276492864929649306493164932649336493464935649366493764938649396494064941649426494364944649456494664947649486494964950649516495264953649546495564956649576495864959649606496164962649636496464965649666496764968649696497064971649726497364974649756497664977649786497964980649816498264983649846498564986649876498864989649906499164992649936499464995649966499764998649996500065001650026500365004650056500665007650086500965010650116501265013650146501565016650176501865019650206502165022650236502465025650266502765028650296503065031650326503365034650356503665037650386503965040650416504265043650446504565046650476504865049650506505165052650536505465055650566505765058650596506065061650626506365064650656506665067650686506965070650716507265073650746507565076650776507865079650806508165082650836508465085650866508765088650896509065091650926509365094650956509665097650986509965100651016510265103651046510565106651076510865109651106511165112651136511465115651166511765118651196512065121651226512365124651256512665127651286512965130651316513265133651346513565136651376513865139651406514165142651436514465145651466514765148651496515065151651526515365154651556515665157651586515965160651616516265163651646516565166651676516865169651706517165172651736517465175651766517765178651796518065181651826518365184651856518665187651886518965190651916519265193651946519565196651976519865199652006520165202652036520465205652066520765208652096521065211652126521365214652156521665217652186521965220652216522265223652246522565226652276522865229652306523165232652336523465235652366523765238652396524065241652426524365244652456524665247652486524965250652516525265253652546525565256652576525865259652606526165262652636526465265652666526765268652696527065271652726527365274652756527665277652786527965280652816528265283652846528565286652876528865289652906529165292652936529465295652966529765298652996530065301653026530365304653056530665307653086530965310653116531265313653146531565316653176531865319653206532165322653236532465325653266532765328653296533065331653326533365334653356533665337653386533965340653416534265343653446534565346653476534865349653506535165352653536535465355653566535765358653596536065361653626536365364653656536665367653686536965370653716537265373653746537565376653776537865379653806538165382653836538465385653866538765388653896539065391653926539365394653956539665397653986539965400654016540265403654046540565406654076540865409654106541165412654136541465415654166541765418654196542065421654226542365424654256542665427654286542965430654316543265433654346543565436654376543865439654406544165442654436544465445654466544765448654496545065451654526545365454654556545665457654586545965460654616546265463654646546565466654676546865469654706547165472654736547465475654766547765478654796548065481654826548365484654856548665487654886548965490654916549265493654946549565496654976549865499655006550165502655036550465505655066550765508655096551065511655126551365514655156551665517655186551965520655216552265523655246552565526655276552865529655306553165532655336553465535655366553765538655396554065541655426554365544655456554665547655486554965550655516555265553655546555565556655576555865559655606556165562655636556465565655666556765568655696557065571655726557365574655756557665577655786557965580655816558265583655846558565586655876558865589655906559165592655936559465595655966559765598655996560065601656026560365604656056560665607656086560965610656116561265613656146561565616656176561865619656206562165622656236562465625656266562765628656296563065631656326563365634656356563665637656386563965640656416564265643656446564565646656476564865649656506565165652656536565465655656566565765658656596566065661656626566365664656656566665667656686566965670656716567265673656746567565676656776567865679656806568165682656836568465685656866568765688656896569065691656926569365694656956569665697656986569965700657016570265703657046570565706657076570865709657106571165712657136571465715657166571765718657196572065721657226572365724657256572665727657286572965730657316573265733657346573565736657376573865739657406574165742657436574465745657466574765748657496575065751657526575365754657556575665757657586575965760657616576265763657646576565766657676576865769657706577165772657736577465775657766577765778657796578065781657826578365784657856578665787657886578965790657916579265793657946579565796657976579865799658006580165802658036580465805658066580765808658096581065811658126581365814658156581665817658186581965820658216582265823658246582565826658276582865829658306583165832658336583465835658366583765838658396584065841658426584365844658456584665847658486584965850658516585265853658546585565856658576585865859658606586165862658636586465865658666586765868658696587065871658726587365874658756587665877658786587965880658816588265883658846588565886658876588865889658906589165892658936589465895658966589765898658996590065901659026590365904659056590665907659086590965910659116591265913659146591565916659176591865919659206592165922659236592465925659266592765928659296593065931659326593365934659356593665937659386593965940659416594265943659446594565946659476594865949659506595165952659536595465955659566595765958659596596065961659626596365964659656596665967659686596965970659716597265973659746597565976659776597865979659806598165982659836598465985659866598765988659896599065991659926599365994659956599665997659986599966000660016600266003660046600566006660076600866009660106601166012660136601466015660166601766018660196602066021660226602366024660256602666027660286602966030660316603266033660346603566036660376603866039660406604166042660436604466045660466604766048660496605066051660526605366054660556605666057660586605966060660616606266063660646606566066660676606866069660706607166072660736607466075660766607766078660796608066081660826608366084660856608666087660886608966090660916609266093660946609566096660976609866099661006610166102661036610466105661066610766108661096611066111661126611366114661156611666117661186611966120661216612266123661246612566126661276612866129661306613166132661336613466135661366613766138661396614066141661426614366144661456614666147661486614966150661516615266153661546615566156661576615866159661606616166162661636616466165661666616766168661696617066171661726617366174661756617666177661786617966180661816618266183661846618566186661876618866189661906619166192661936619466195661966619766198661996620066201662026620366204662056620666207662086620966210662116621266213662146621566216662176621866219662206622166222662236622466225662266622766228662296623066231662326623366234662356623666237662386623966240662416624266243662446624566246662476624866249662506625166252662536625466255662566625766258662596626066261662626626366264662656626666267662686626966270662716627266273662746627566276662776627866279662806628166282662836628466285662866628766288662896629066291662926629366294662956629666297662986629966300663016630266303663046630566306663076630866309663106631166312663136631466315663166631766318663196632066321663226632366324663256632666327663286632966330663316633266333663346633566336663376633866339663406634166342663436634466345663466634766348663496635066351663526635366354663556635666357663586635966360663616636266363663646636566366663676636866369663706637166372663736637466375663766637766378663796638066381663826638366384663856638666387663886638966390663916639266393663946639566396663976639866399664006640166402664036640466405664066640766408664096641066411664126641366414664156641666417664186641966420664216642266423664246642566426664276642866429664306643166432664336643466435664366643766438664396644066441664426644366444664456644666447664486644966450664516645266453664546645566456664576645866459664606646166462664636646466465664666646766468664696647066471664726647366474664756647666477664786647966480664816648266483664846648566486664876648866489664906649166492664936649466495664966649766498664996650066501665026650366504665056650666507665086650966510665116651266513665146651566516665176651866519665206652166522665236652466525665266652766528665296653066531665326653366534665356653666537665386653966540665416654266543665446654566546665476654866549665506655166552665536655466555665566655766558665596656066561665626656366564665656656666567665686656966570665716657266573665746657566576665776657866579665806658166582665836658466585665866658766588665896659066591665926659366594665956659666597665986659966600666016660266603666046660566606666076660866609666106661166612666136661466615666166661766618666196662066621666226662366624666256662666627666286662966630666316663266633666346663566636666376663866639666406664166642666436664466645666466664766648666496665066651666526665366654666556665666657666586665966660666616666266663666646666566666666676666866669666706667166672666736667466675666766667766678666796668066681666826668366684666856668666687666886668966690666916669266693666946669566696666976669866699667006670166702667036670466705667066670766708667096671066711667126671366714667156671666717667186671966720667216672266723667246672566726667276672866729667306673166732667336673466735667366673766738667396674066741667426674366744667456674666747667486674966750667516675266753667546675566756667576675866759667606676166762667636676466765667666676766768667696677066771667726677366774667756677666777667786677966780667816678266783667846678566786667876678866789667906679166792667936679466795667966679766798667996680066801668026680366804668056680666807668086680966810668116681266813668146681566816668176681866819668206682166822668236682466825668266682766828668296683066831668326683366834668356683666837668386683966840668416684266843668446684566846668476684866849668506685166852668536685466855668566685766858668596686066861668626686366864668656686666867668686686966870668716687266873668746687566876668776687866879668806688166882668836688466885668866688766888668896689066891668926689366894668956689666897668986689966900669016690266903669046690566906669076690866909669106691166912669136691466915669166691766918669196692066921669226692366924669256692666927669286692966930669316693266933669346693566936669376693866939669406694166942669436694466945669466694766948669496695066951669526695366954669556695666957669586695966960669616696266963669646696566966669676696866969669706697166972669736697466975669766697766978669796698066981669826698366984669856698666987669886698966990669916699266993669946699566996669976699866999670006700167002670036700467005670066700767008670096701067011670126701367014670156701667017670186701967020670216702267023670246702567026670276702867029670306703167032670336703467035670366703767038670396704067041670426704367044670456704667047670486704967050670516705267053670546705567056670576705867059670606706167062670636706467065670666706767068670696707067071670726707367074670756707667077670786707967080670816708267083670846708567086670876708867089670906709167092670936709467095670966709767098670996710067101671026710367104671056710667107671086710967110671116711267113671146711567116671176711867119671206712167122671236712467125671266712767128671296713067131671326713367134671356713667137671386713967140671416714267143671446714567146671476714867149671506715167152671536715467155671566715767158671596716067161671626716367164671656716667167671686716967170671716717267173671746717567176671776717867179671806718167182671836718467185671866718767188671896719067191671926719367194671956719667197671986719967200672016720267203672046720567206672076720867209672106721167212672136721467215672166721767218672196722067221672226722367224672256722667227672286722967230672316723267233672346723567236672376723867239672406724167242672436724467245672466724767248672496725067251672526725367254672556725667257672586725967260672616726267263672646726567266672676726867269672706727167272672736727467275672766727767278672796728067281672826728367284672856728667287672886728967290672916729267293672946729567296672976729867299673006730167302673036730467305673066730767308673096731067311673126731367314673156731667317673186731967320673216732267323673246732567326673276732867329673306733167332673336733467335673366733767338673396734067341673426734367344673456734667347673486734967350673516735267353673546735567356673576735867359673606736167362673636736467365673666736767368673696737067371673726737367374673756737667377673786737967380673816738267383673846738567386673876738867389673906739167392673936739467395673966739767398673996740067401674026740367404674056740667407674086740967410674116741267413674146741567416674176741867419674206742167422674236742467425674266742767428674296743067431674326743367434674356743667437674386743967440674416744267443674446744567446674476744867449674506745167452674536745467455674566745767458674596746067461674626746367464674656746667467674686746967470674716747267473674746747567476674776747867479674806748167482674836748467485674866748767488674896749067491674926749367494674956749667497674986749967500675016750267503675046750567506675076750867509675106751167512675136751467515675166751767518675196752067521675226752367524675256752667527675286752967530675316753267533675346753567536675376753867539675406754167542675436754467545675466754767548675496755067551675526755367554675556755667557675586755967560675616756267563675646756567566675676756867569675706757167572675736757467575675766757767578675796758067581675826758367584675856758667587675886758967590675916759267593675946759567596675976759867599676006760167602676036760467605676066760767608676096761067611676126761367614676156761667617676186761967620676216762267623676246762567626676276762867629676306763167632676336763467635676366763767638676396764067641676426764367644676456764667647676486764967650676516765267653676546765567656676576765867659676606766167662676636766467665676666766767668676696767067671676726767367674676756767667677676786767967680676816768267683676846768567686676876768867689676906769167692676936769467695676966769767698676996770067701677026770367704677056770667707677086770967710677116771267713677146771567716677176771867719677206772167722677236772467725677266772767728677296773067731677326773367734677356773667737677386773967740677416774267743677446774567746677476774867749677506775167752677536775467755677566775767758677596776067761677626776367764677656776667767677686776967770677716777267773677746777567776677776777867779677806778167782677836778467785677866778767788677896779067791677926779367794677956779667797677986779967800678016780267803678046780567806678076780867809678106781167812678136781467815678166781767818678196782067821678226782367824678256782667827678286782967830678316783267833678346783567836678376783867839678406784167842678436784467845678466784767848678496785067851678526785367854678556785667857678586785967860678616786267863678646786567866678676786867869678706787167872678736787467875678766787767878678796788067881678826788367884678856788667887678886788967890678916789267893678946789567896678976789867899679006790167902679036790467905679066790767908679096791067911679126791367914679156791667917679186791967920679216792267923679246792567926679276792867929679306793167932679336793467935679366793767938679396794067941679426794367944679456794667947679486794967950679516795267953679546795567956679576795867959679606796167962679636796467965679666796767968679696797067971679726797367974679756797667977679786797967980679816798267983679846798567986679876798867989679906799167992679936799467995679966799767998679996800068001680026800368004680056800668007680086800968010680116801268013680146801568016680176801868019680206802168022680236802468025680266802768028680296803068031680326803368034680356803668037680386803968040680416804268043680446804568046680476804868049680506805168052680536805468055680566805768058680596806068061680626806368064680656806668067680686806968070680716807268073680746807568076680776807868079680806808168082680836808468085680866808768088680896809068091680926809368094680956809668097680986809968100681016810268103681046810568106681076810868109681106811168112681136811468115681166811768118681196812068121681226812368124681256812668127681286812968130681316813268133681346813568136681376813868139681406814168142681436814468145681466814768148681496815068151681526815368154681556815668157681586815968160681616816268163681646816568166681676816868169681706817168172681736817468175681766817768178681796818068181681826818368184681856818668187681886818968190681916819268193681946819568196681976819868199682006820168202682036820468205682066820768208682096821068211682126821368214682156821668217682186821968220682216822268223682246822568226682276822868229682306823168232682336823468235682366823768238682396824068241682426824368244682456824668247682486824968250682516825268253682546825568256682576825868259682606826168262682636826468265682666826768268682696827068271682726827368274682756827668277682786827968280682816828268283682846828568286682876828868289682906829168292682936829468295682966829768298682996830068301683026830368304683056830668307683086830968310683116831268313683146831568316683176831868319683206832168322683236832468325683266832768328683296833068331683326833368334683356833668337683386833968340683416834268343683446834568346683476834868349683506835168352683536835468355683566835768358683596836068361683626836368364683656836668367683686836968370683716837268373683746837568376683776837868379683806838168382683836838468385683866838768388683896839068391683926839368394683956839668397683986839968400684016840268403684046840568406684076840868409684106841168412684136841468415684166841768418684196842068421684226842368424684256842668427684286842968430684316843268433684346843568436684376843868439684406844168442684436844468445684466844768448684496845068451684526845368454684556845668457684586845968460684616846268463684646846568466684676846868469684706847168472684736847468475684766847768478684796848068481684826848368484684856848668487684886848968490684916849268493684946849568496684976849868499685006850168502685036850468505685066850768508685096851068511685126851368514685156851668517685186851968520685216852268523685246852568526685276852868529685306853168532685336853468535685366853768538685396854068541685426854368544685456854668547685486854968550685516855268553685546855568556685576855868559685606856168562685636856468565685666856768568685696857068571685726857368574685756857668577685786857968580685816858268583685846858568586685876858868589685906859168592685936859468595685966859768598685996860068601686026860368604686056860668607686086860968610686116861268613686146861568616686176861868619686206862168622686236862468625686266862768628686296863068631686326863368634686356863668637686386863968640686416864268643686446864568646686476864868649686506865168652686536865468655686566865768658686596866068661686626866368664686656866668667686686866968670686716867268673686746867568676686776867868679686806868168682686836868468685686866868768688686896869068691686926869368694686956869668697686986869968700687016870268703687046870568706687076870868709687106871168712687136871468715687166871768718687196872068721687226872368724687256872668727687286872968730687316873268733687346873568736687376873868739687406874168742687436874468745687466874768748687496875068751687526875368754687556875668757687586875968760687616876268763687646876568766687676876868769687706877168772687736877468775687766877768778687796878068781687826878368784687856878668787687886878968790687916879268793687946879568796687976879868799688006880168802688036880468805688066880768808688096881068811688126881368814688156881668817688186881968820688216882268823688246882568826688276882868829688306883168832688336883468835688366883768838688396884068841688426884368844688456884668847688486884968850688516885268853688546885568856688576885868859688606886168862688636886468865688666886768868688696887068871688726887368874688756887668877688786887968880688816888268883688846888568886688876888868889688906889168892688936889468895688966889768898688996890068901689026890368904689056890668907689086890968910689116891268913689146891568916689176891868919689206892168922689236892468925689266892768928689296893068931689326893368934689356893668937689386893968940689416894268943689446894568946689476894868949689506895168952689536895468955689566895768958689596896068961689626896368964689656896668967689686896968970689716897268973689746897568976689776897868979689806898168982689836898468985689866898768988689896899068991689926899368994689956899668997689986899969000690016900269003690046900569006690076900869009690106901169012690136901469015690166901769018690196902069021690226902369024690256902669027690286902969030690316903269033690346903569036690376903869039690406904169042690436904469045690466904769048690496905069051690526905369054690556905669057690586905969060690616906269063690646906569066690676906869069690706907169072690736907469075690766907769078690796908069081690826908369084690856908669087690886908969090690916909269093690946909569096690976909869099691006910169102691036910469105691066910769108691096911069111691126911369114691156911669117691186911969120691216912269123691246912569126691276912869129691306913169132691336913469135691366913769138691396914069141691426914369144691456914669147691486914969150691516915269153691546915569156691576915869159691606916169162691636916469165691666916769168691696917069171691726917369174691756917669177691786917969180691816918269183691846918569186691876918869189691906919169192691936919469195691966919769198691996920069201692026920369204692056920669207692086920969210692116921269213692146921569216692176921869219692206922169222692236922469225692266922769228692296923069231692326923369234692356923669237692386923969240692416924269243692446924569246692476924869249692506925169252692536925469255692566925769258692596926069261692626926369264692656926669267692686926969270692716927269273692746927569276692776927869279692806928169282692836928469285692866928769288692896929069291692926929369294692956929669297692986929969300693016930269303693046930569306693076930869309693106931169312693136931469315693166931769318693196932069321693226932369324693256932669327693286932969330693316933269333693346933569336693376933869339693406934169342693436934469345693466934769348693496935069351693526935369354693556935669357693586935969360693616936269363693646936569366693676936869369693706937169372693736937469375693766937769378693796938069381693826938369384693856938669387693886938969390693916939269393693946939569396693976939869399694006940169402694036940469405694066940769408694096941069411694126941369414694156941669417694186941969420694216942269423694246942569426694276942869429694306943169432694336943469435694366943769438694396944069441694426944369444694456944669447694486944969450694516945269453694546945569456694576945869459694606946169462694636946469465694666946769468694696947069471694726947369474694756947669477694786947969480694816948269483694846948569486694876948869489694906949169492694936949469495694966949769498694996950069501695026950369504695056950669507695086950969510695116951269513695146951569516695176951869519695206952169522695236952469525695266952769528695296953069531695326953369534695356953669537695386953969540695416954269543695446954569546695476954869549695506955169552695536955469555695566955769558695596956069561695626956369564695656956669567695686956969570695716957269573695746957569576695776957869579695806958169582695836958469585695866958769588695896959069591695926959369594695956959669597695986959969600696016960269603696046960569606696076960869609696106961169612696136961469615696166961769618696196962069621696226962369624696256962669627696286962969630696316963269633696346963569636696376963869639696406964169642696436964469645696466964769648696496965069651696526965369654696556965669657696586965969660696616966269663696646966569666696676966869669696706967169672696736967469675696766967769678696796968069681696826968369684696856968669687696886968969690696916969269693696946969569696696976969869699697006970169702697036970469705697066970769708697096971069711697126971369714697156971669717697186971969720697216972269723697246972569726697276972869729697306973169732697336973469735697366973769738697396974069741697426974369744697456974669747697486974969750697516975269753697546975569756697576975869759697606976169762697636976469765697666976769768697696977069771697726977369774697756977669777697786977969780697816978269783697846978569786697876978869789697906979169792697936979469795697966979769798697996980069801698026980369804698056980669807698086980969810698116981269813698146981569816698176981869819698206982169822698236982469825698266982769828698296983069831698326983369834698356983669837698386983969840698416984269843698446984569846698476984869849698506985169852698536985469855698566985769858698596986069861698626986369864698656986669867698686986969870698716987269873698746987569876698776987869879698806988169882698836988469885698866988769888698896989069891698926989369894698956989669897698986989969900699016990269903699046990569906699076990869909699106991169912699136991469915699166991769918699196992069921699226992369924699256992669927699286992969930699316993269933699346993569936699376993869939699406994169942699436994469945699466994769948699496995069951699526995369954699556995669957699586995969960699616996269963699646996569966699676996869969699706997169972699736997469975699766997769978699796998069981699826998369984699856998669987699886998969990699916999269993699946999569996699976999869999700007000170002700037000470005700067000770008700097001070011700127001370014700157001670017700187001970020700217002270023700247002570026700277002870029700307003170032700337003470035700367003770038700397004070041700427004370044700457004670047700487004970050700517005270053700547005570056700577005870059700607006170062700637006470065700667006770068700697007070071700727007370074700757007670077700787007970080700817008270083700847008570086700877008870089700907009170092700937009470095700967009770098700997010070101701027010370104701057010670107701087010970110701117011270113701147011570116701177011870119701207012170122701237012470125701267012770128701297013070131701327013370134701357013670137701387013970140701417014270143701447014570146701477014870149701507015170152701537015470155701567015770158701597016070161701627016370164701657016670167701687016970170701717017270173701747017570176701777017870179701807018170182701837018470185701867018770188701897019070191701927019370194701957019670197701987019970200702017020270203702047020570206702077020870209702107021170212702137021470215702167021770218702197022070221702227022370224702257022670227702287022970230702317023270233702347023570236702377023870239702407024170242702437024470245702467024770248702497025070251702527025370254702557025670257702587025970260702617026270263702647026570266702677026870269702707027170272702737027470275702767027770278702797028070281702827028370284702857028670287702887028970290702917029270293702947029570296702977029870299703007030170302703037030470305703067030770308703097031070311703127031370314703157031670317703187031970320703217032270323703247032570326703277032870329703307033170332703337033470335703367033770338703397034070341703427034370344703457034670347703487034970350703517035270353703547035570356703577035870359703607036170362703637036470365703667036770368703697037070371703727037370374703757037670377703787037970380703817038270383703847038570386703877038870389703907039170392703937039470395703967039770398703997040070401704027040370404704057040670407704087040970410704117041270413704147041570416704177041870419704207042170422704237042470425704267042770428704297043070431704327043370434704357043670437704387043970440704417044270443704447044570446704477044870449704507045170452704537045470455704567045770458704597046070461704627046370464704657046670467704687046970470704717047270473704747047570476704777047870479704807048170482704837048470485704867048770488704897049070491704927049370494704957049670497704987049970500705017050270503705047050570506705077050870509705107051170512705137051470515705167051770518705197052070521705227052370524705257052670527705287052970530705317053270533705347053570536705377053870539705407054170542705437054470545705467054770548705497055070551705527055370554705557055670557705587055970560705617056270563705647056570566705677056870569705707057170572705737057470575705767057770578705797058070581705827058370584705857058670587705887058970590705917059270593705947059570596705977059870599706007060170602706037060470605706067060770608706097061070611706127061370614706157061670617706187061970620706217062270623706247062570626706277062870629706307063170632706337063470635706367063770638706397064070641706427064370644706457064670647706487064970650706517065270653706547065570656706577065870659706607066170662706637066470665706667066770668706697067070671706727067370674706757067670677706787067970680706817068270683706847068570686706877068870689706907069170692706937069470695706967069770698706997070070701707027070370704707057070670707707087070970710707117071270713707147071570716707177071870719707207072170722707237072470725707267072770728707297073070731707327073370734707357073670737707387073970740707417074270743707447074570746707477074870749707507075170752707537075470755707567075770758707597076070761707627076370764707657076670767707687076970770707717077270773707747077570776707777077870779707807078170782707837078470785707867078770788707897079070791707927079370794707957079670797707987079970800708017080270803708047080570806708077080870809708107081170812708137081470815708167081770818708197082070821708227082370824708257082670827708287082970830708317083270833708347083570836708377083870839708407084170842708437084470845708467084770848708497085070851708527085370854708557085670857708587085970860708617086270863708647086570866708677086870869708707087170872708737087470875708767087770878708797088070881708827088370884708857088670887708887088970890708917089270893708947089570896708977089870899709007090170902709037090470905709067090770908709097091070911709127091370914709157091670917709187091970920709217092270923709247092570926709277092870929709307093170932709337093470935709367093770938709397094070941709427094370944709457094670947709487094970950709517095270953709547095570956709577095870959709607096170962709637096470965709667096770968709697097070971709727097370974709757097670977709787097970980709817098270983709847098570986709877098870989709907099170992709937099470995709967099770998709997100071001710027100371004710057100671007710087100971010710117101271013710147101571016710177101871019710207102171022710237102471025710267102771028710297103071031710327103371034710357103671037710387103971040710417104271043710447104571046710477104871049710507105171052710537105471055710567105771058710597106071061710627106371064710657106671067710687106971070710717107271073710747107571076710777107871079710807108171082710837108471085710867108771088710897109071091710927109371094710957109671097710987109971100711017110271103711047110571106711077110871109711107111171112711137111471115711167111771118711197112071121711227112371124711257112671127711287112971130711317113271133711347113571136711377113871139711407114171142711437114471145711467114771148711497115071151711527115371154711557115671157711587115971160711617116271163711647116571166711677116871169711707117171172711737117471175711767117771178711797118071181711827118371184711857118671187711887118971190711917119271193711947119571196711977119871199712007120171202712037120471205712067120771208712097121071211712127121371214712157121671217712187121971220712217122271223712247122571226712277122871229712307123171232712337123471235712367123771238712397124071241712427124371244712457124671247712487124971250712517125271253712547125571256712577125871259712607126171262712637126471265712667126771268712697127071271712727127371274712757127671277712787127971280712817128271283712847128571286712877128871289712907129171292712937129471295712967129771298712997130071301713027130371304713057130671307713087130971310713117131271313713147131571316713177131871319713207132171322713237132471325713267132771328713297133071331713327133371334713357133671337713387133971340713417134271343713447134571346713477134871349713507135171352713537135471355713567135771358713597136071361713627136371364713657136671367713687136971370713717137271373713747137571376713777137871379713807138171382713837138471385713867138771388713897139071391713927139371394713957139671397713987139971400714017140271403714047140571406714077140871409714107141171412714137141471415714167141771418714197142071421714227142371424714257142671427714287142971430714317143271433714347143571436714377143871439714407144171442714437144471445714467144771448714497145071451714527145371454714557145671457714587145971460714617146271463714647146571466714677146871469714707147171472714737147471475714767147771478714797148071481714827148371484714857148671487714887148971490714917149271493714947149571496714977149871499715007150171502715037150471505715067150771508715097151071511715127151371514715157151671517715187151971520715217152271523715247152571526715277152871529715307153171532715337153471535715367153771538715397154071541715427154371544715457154671547715487154971550715517155271553715547155571556715577155871559715607156171562715637156471565715667156771568715697157071571715727157371574715757157671577715787157971580715817158271583715847158571586715877158871589715907159171592715937159471595715967159771598715997160071601716027160371604716057160671607716087160971610716117161271613716147161571616716177161871619716207162171622716237162471625716267162771628716297163071631716327163371634716357163671637716387163971640716417164271643716447164571646716477164871649716507165171652716537165471655716567165771658716597166071661716627166371664716657166671667716687166971670716717167271673716747167571676716777167871679716807168171682716837168471685716867168771688716897169071691716927169371694716957169671697716987169971700717017170271703717047170571706717077170871709717107171171712717137171471715717167171771718717197172071721717227172371724717257172671727717287172971730717317173271733717347173571736717377173871739717407174171742717437174471745717467174771748717497175071751717527175371754717557175671757717587175971760717617176271763717647176571766717677176871769717707177171772717737177471775717767177771778717797178071781717827178371784717857178671787717887178971790717917179271793717947179571796717977179871799718007180171802718037180471805718067180771808718097181071811718127181371814718157181671817718187181971820718217182271823718247182571826718277182871829718307183171832718337183471835718367183771838718397184071841718427184371844718457184671847718487184971850718517185271853718547185571856718577185871859718607186171862718637186471865718667186771868718697187071871718727187371874718757187671877718787187971880718817188271883718847188571886718877188871889718907189171892718937189471895718967189771898718997190071901719027190371904719057190671907719087190971910719117191271913719147191571916719177191871919719207192171922719237192471925719267192771928719297193071931719327193371934719357193671937719387193971940719417194271943719447194571946719477194871949719507195171952719537195471955719567195771958719597196071961719627196371964719657196671967719687196971970719717197271973719747197571976719777197871979719807198171982719837198471985719867198771988719897199071991719927199371994719957199671997719987199972000720017200272003720047200572006720077200872009720107201172012720137201472015720167201772018720197202072021720227202372024720257202672027720287202972030720317203272033720347203572036720377203872039720407204172042720437204472045720467204772048720497205072051720527205372054720557205672057720587205972060720617206272063720647206572066720677206872069720707207172072720737207472075720767207772078720797208072081720827208372084720857208672087720887208972090720917209272093720947209572096720977209872099721007210172102721037210472105721067210772108721097211072111721127211372114721157211672117721187211972120721217212272123721247212572126721277212872129721307213172132721337213472135721367213772138721397214072141721427214372144721457214672147721487214972150721517215272153721547215572156721577215872159721607216172162721637216472165721667216772168721697217072171721727217372174721757217672177721787217972180721817218272183721847218572186721877218872189721907219172192721937219472195721967219772198721997220072201722027220372204722057220672207722087220972210722117221272213722147221572216722177221872219722207222172222722237222472225722267222772228722297223072231722327223372234722357223672237722387223972240722417224272243722447224572246722477224872249722507225172252722537225472255722567225772258722597226072261722627226372264722657226672267722687226972270722717227272273722747227572276722777227872279722807228172282722837228472285722867228772288722897229072291722927229372294722957229672297722987229972300723017230272303723047230572306723077230872309723107231172312723137231472315723167231772318723197232072321723227232372324723257232672327723287232972330723317233272333723347233572336723377233872339723407234172342723437234472345723467234772348723497235072351723527235372354723557235672357723587235972360723617236272363723647236572366723677236872369723707237172372723737237472375723767237772378723797238072381723827238372384723857238672387723887238972390723917239272393723947239572396723977239872399724007240172402724037240472405724067240772408724097241072411724127241372414724157241672417724187241972420724217242272423724247242572426724277242872429724307243172432724337243472435724367243772438724397244072441724427244372444724457244672447724487244972450724517245272453724547245572456724577245872459724607246172462724637246472465724667246772468724697247072471724727247372474724757247672477724787247972480724817248272483724847248572486724877248872489724907249172492724937249472495724967249772498724997250072501725027250372504725057250672507725087250972510725117251272513725147251572516725177251872519725207252172522725237252472525725267252772528725297253072531725327253372534725357253672537725387253972540725417254272543725447254572546725477254872549725507255172552725537255472555725567255772558725597256072561725627256372564725657256672567725687256972570725717257272573725747257572576725777257872579725807258172582725837258472585725867258772588725897259072591725927259372594725957259672597725987259972600726017260272603726047260572606726077260872609726107261172612726137261472615726167261772618726197262072621726227262372624726257262672627726287262972630726317263272633726347263572636726377263872639726407264172642726437264472645726467264772648726497265072651726527265372654726557265672657726587265972660726617266272663726647266572666726677266872669726707267172672726737267472675726767267772678726797268072681726827268372684726857268672687726887268972690726917269272693726947269572696726977269872699727007270172702727037270472705727067270772708727097271072711727127271372714727157271672717727187271972720727217272272723727247272572726727277272872729727307273172732727337273472735727367273772738727397274072741727427274372744727457274672747727487274972750727517275272753727547275572756727577275872759727607276172762727637276472765727667276772768727697277072771727727277372774727757277672777727787277972780727817278272783727847278572786727877278872789727907279172792727937279472795727967279772798727997280072801728027280372804728057280672807728087280972810728117281272813728147281572816728177281872819728207282172822728237282472825728267282772828728297283072831728327283372834728357283672837728387283972840728417284272843728447284572846728477284872849728507285172852728537285472855728567285772858728597286072861728627286372864728657286672867728687286972870728717287272873728747287572876728777287872879728807288172882728837288472885728867288772888728897289072891728927289372894728957289672897728987289972900729017290272903729047290572906729077290872909729107291172912729137291472915729167291772918729197292072921729227292372924729257292672927729287292972930729317293272933729347293572936729377293872939729407294172942729437294472945729467294772948729497295072951729527295372954729557295672957729587295972960729617296272963729647296572966729677296872969729707297172972729737297472975729767297772978729797298072981729827298372984729857298672987729887298972990729917299272993729947299572996729977299872999730007300173002730037300473005730067300773008730097301073011730127301373014730157301673017730187301973020730217302273023730247302573026730277302873029730307303173032730337303473035730367303773038730397304073041730427304373044730457304673047730487304973050730517305273053730547305573056730577305873059730607306173062730637306473065730667306773068730697307073071730727307373074730757307673077730787307973080730817308273083730847308573086730877308873089730907309173092730937309473095730967309773098730997310073101731027310373104731057310673107731087310973110731117311273113731147311573116731177311873119731207312173122731237312473125731267312773128731297313073131731327313373134731357313673137731387313973140731417314273143731447314573146731477314873149731507315173152731537315473155731567315773158731597316073161731627316373164731657316673167731687316973170731717317273173731747317573176731777317873179731807318173182731837318473185731867318773188731897319073191731927319373194731957319673197731987319973200732017320273203732047320573206732077320873209732107321173212732137321473215732167321773218732197322073221732227322373224732257322673227732287322973230732317323273233732347323573236732377323873239732407324173242732437324473245732467324773248732497325073251732527325373254732557325673257732587325973260732617326273263732647326573266732677326873269732707327173272732737327473275732767327773278732797328073281732827328373284732857328673287732887328973290732917329273293732947329573296732977329873299733007330173302733037330473305733067330773308733097331073311733127331373314733157331673317733187331973320733217332273323733247332573326733277332873329733307333173332733337333473335733367333773338733397334073341733427334373344733457334673347733487334973350733517335273353733547335573356733577335873359733607336173362733637336473365733667336773368733697337073371733727337373374733757337673377733787337973380733817338273383733847338573386733877338873389733907339173392733937339473395733967339773398733997340073401734027340373404734057340673407734087340973410734117341273413734147341573416734177341873419734207342173422734237342473425734267342773428734297343073431734327343373434734357343673437734387343973440734417344273443734447344573446734477344873449734507345173452734537345473455734567345773458734597346073461734627346373464734657346673467734687346973470734717347273473734747347573476734777347873479734807348173482734837348473485734867348773488734897349073491734927349373494734957349673497734987349973500735017350273503735047350573506735077350873509735107351173512735137351473515735167351773518735197352073521735227352373524735257352673527735287352973530735317353273533735347353573536735377353873539735407354173542735437354473545735467354773548735497355073551735527355373554735557355673557735587355973560735617356273563735647356573566735677356873569735707357173572735737357473575735767357773578735797358073581735827358373584735857358673587735887358973590735917359273593735947359573596735977359873599736007360173602736037360473605736067360773608736097361073611736127361373614736157361673617736187361973620736217362273623736247362573626736277362873629736307363173632736337363473635736367363773638736397364073641736427364373644736457364673647736487364973650736517365273653736547365573656736577365873659736607366173662736637366473665736667366773668736697367073671736727367373674736757367673677736787367973680736817368273683736847368573686736877368873689736907369173692736937369473695736967369773698736997370073701737027370373704737057370673707737087370973710737117371273713737147371573716737177371873719737207372173722737237372473725737267372773728737297373073731737327373373734737357373673737737387373973740737417374273743737447374573746737477374873749737507375173752737537375473755737567375773758737597376073761737627376373764737657376673767737687376973770737717377273773737747377573776737777377873779737807378173782737837378473785737867378773788737897379073791737927379373794737957379673797737987379973800738017380273803738047380573806738077380873809738107381173812738137381473815738167381773818738197382073821738227382373824738257382673827738287382973830738317383273833738347383573836738377383873839738407384173842738437384473845738467384773848738497385073851738527385373854738557385673857738587385973860738617386273863738647386573866738677386873869738707387173872738737387473875738767387773878738797388073881738827388373884738857388673887738887388973890738917389273893738947389573896738977389873899739007390173902739037390473905739067390773908739097391073911739127391373914739157391673917739187391973920739217392273923739247392573926739277392873929739307393173932739337393473935739367393773938739397394073941739427394373944739457394673947739487394973950739517395273953739547395573956739577395873959739607396173962739637396473965739667396773968739697397073971739727397373974739757397673977739787397973980739817398273983739847398573986739877398873989739907399173992739937399473995739967399773998739997400074001740027400374004740057400674007740087400974010740117401274013740147401574016740177401874019740207402174022740237402474025740267402774028740297403074031740327403374034740357403674037740387403974040740417404274043740447404574046740477404874049740507405174052740537405474055740567405774058740597406074061740627406374064740657406674067740687406974070740717407274073740747407574076740777407874079740807408174082740837408474085740867408774088740897409074091740927409374094740957409674097740987409974100741017410274103741047410574106741077410874109741107411174112741137411474115741167411774118741197412074121741227412374124741257412674127741287412974130741317413274133741347413574136741377413874139741407414174142741437414474145741467414774148741497415074151741527415374154741557415674157741587415974160741617416274163741647416574166741677416874169741707417174172741737417474175741767417774178741797418074181741827418374184741857418674187741887418974190741917419274193741947419574196741977419874199742007420174202742037420474205742067420774208742097421074211742127421374214742157421674217742187421974220742217422274223742247422574226742277422874229742307423174232742337423474235742367423774238742397424074241742427424374244742457424674247742487424974250742517425274253742547425574256742577425874259742607426174262742637426474265742667426774268742697427074271742727427374274742757427674277742787427974280742817428274283742847428574286742877428874289742907429174292742937429474295742967429774298742997430074301743027430374304743057430674307743087430974310743117431274313743147431574316743177431874319743207432174322743237432474325743267432774328743297433074331743327433374334743357433674337743387433974340743417434274343743447434574346743477434874349743507435174352743537435474355743567435774358743597436074361743627436374364743657436674367743687436974370743717437274373743747437574376743777437874379743807438174382743837438474385743867438774388743897439074391743927439374394743957439674397743987439974400744017440274403744047440574406744077440874409744107441174412744137441474415744167441774418744197442074421744227442374424744257442674427744287442974430744317443274433744347443574436744377443874439744407444174442744437444474445744467444774448744497445074451744527445374454744557445674457744587445974460744617446274463744647446574466744677446874469744707447174472744737447474475744767447774478744797448074481744827448374484744857448674487744887448974490744917449274493744947449574496744977449874499745007450174502745037450474505745067450774508745097451074511745127451374514745157451674517745187451974520745217452274523745247452574526745277452874529745307453174532745337453474535745367453774538745397454074541745427454374544745457454674547745487454974550745517455274553745547455574556745577455874559745607456174562745637456474565745667456774568745697457074571745727457374574745757457674577745787457974580745817458274583745847458574586745877458874589745907459174592745937459474595745967459774598745997460074601746027460374604746057460674607746087460974610746117461274613746147461574616746177461874619746207462174622746237462474625746267462774628746297463074631746327463374634746357463674637746387463974640746417464274643746447464574646746477464874649746507465174652746537465474655746567465774658746597466074661746627466374664746657466674667746687466974670746717467274673746747467574676746777467874679746807468174682746837468474685746867468774688746897469074691746927469374694746957469674697746987469974700747017470274703747047470574706747077470874709747107471174712747137471474715747167471774718747197472074721747227472374724747257472674727747287472974730747317473274733747347473574736747377473874739747407474174742747437474474745747467474774748747497475074751747527475374754747557475674757747587475974760747617476274763747647476574766747677476874769747707477174772747737477474775747767477774778747797478074781747827478374784747857478674787747887478974790747917479274793747947479574796747977479874799748007480174802748037480474805748067480774808748097481074811748127481374814748157481674817748187481974820748217482274823748247482574826748277482874829748307483174832748337483474835748367483774838748397484074841748427484374844748457484674847748487484974850748517485274853748547485574856748577485874859748607486174862748637486474865748667486774868748697487074871748727487374874748757487674877748787487974880748817488274883748847488574886748877488874889748907489174892748937489474895748967489774898748997490074901749027490374904749057490674907749087490974910749117491274913749147491574916749177491874919749207492174922749237492474925749267492774928749297493074931749327493374934749357493674937749387493974940749417494274943749447494574946749477494874949749507495174952749537495474955749567495774958749597496074961749627496374964749657496674967749687496974970749717497274973749747497574976749777497874979749807498174982749837498474985749867498774988749897499074991749927499374994749957499674997749987499975000750017500275003750047500575006750077500875009750107501175012750137501475015750167501775018750197502075021750227502375024750257502675027750287502975030750317503275033750347503575036750377503875039750407504175042750437504475045750467504775048750497505075051750527505375054750557505675057750587505975060750617506275063750647506575066750677506875069750707507175072750737507475075750767507775078750797508075081750827508375084750857508675087750887508975090750917509275093750947509575096750977509875099751007510175102751037510475105751067510775108751097511075111751127511375114751157511675117751187511975120751217512275123751247512575126751277512875129751307513175132751337513475135751367513775138751397514075141751427514375144751457514675147751487514975150751517515275153751547515575156751577515875159751607516175162751637516475165751667516775168751697517075171751727517375174751757517675177751787517975180751817518275183751847518575186751877518875189751907519175192751937519475195751967519775198751997520075201752027520375204752057520675207752087520975210752117521275213752147521575216752177521875219752207522175222752237522475225752267522775228752297523075231752327523375234752357523675237752387523975240752417524275243752447524575246752477524875249752507525175252752537525475255752567525775258752597526075261752627526375264752657526675267752687526975270752717527275273752747527575276752777527875279752807528175282752837528475285752867528775288752897529075291752927529375294752957529675297752987529975300753017530275303753047530575306753077530875309753107531175312753137531475315753167531775318753197532075321753227532375324753257532675327753287532975330753317533275333753347533575336753377533875339753407534175342753437534475345753467534775348753497535075351753527535375354753557535675357753587535975360753617536275363753647536575366753677536875369753707537175372753737537475375753767537775378753797538075381753827538375384753857538675387753887538975390753917539275393753947539575396753977539875399754007540175402754037540475405754067540775408754097541075411754127541375414754157541675417754187541975420754217542275423754247542575426754277542875429754307543175432754337543475435754367543775438754397544075441754427544375444754457544675447754487544975450754517545275453754547545575456754577545875459754607546175462754637546475465754667546775468754697547075471754727547375474754757547675477754787547975480754817548275483754847548575486754877548875489754907549175492754937549475495754967549775498754997550075501755027550375504755057550675507755087550975510755117551275513755147551575516755177551875519755207552175522755237552475525755267552775528755297553075531755327553375534755357553675537755387553975540755417554275543755447554575546755477554875549755507555175552755537555475555755567555775558755597556075561755627556375564755657556675567755687556975570755717557275573755747557575576755777557875579755807558175582755837558475585755867558775588755897559075591755927559375594755957559675597755987559975600756017560275603756047560575606756077560875609756107561175612756137561475615756167561775618756197562075621756227562375624756257562675627756287562975630756317563275633756347563575636756377563875639756407564175642756437564475645756467564775648756497565075651756527565375654756557565675657756587565975660756617566275663756647566575666756677566875669756707567175672756737567475675756767567775678756797568075681756827568375684756857568675687756887568975690756917569275693756947569575696756977569875699757007570175702757037570475705757067570775708757097571075711757127571375714757157571675717757187571975720757217572275723757247572575726757277572875729757307573175732757337573475735757367573775738757397574075741757427574375744757457574675747757487574975750757517575275753757547575575756757577575875759757607576175762757637576475765757667576775768757697577075771757727577375774757757577675777757787577975780757817578275783757847578575786757877578875789757907579175792757937579475795757967579775798757997580075801758027580375804758057580675807758087580975810758117581275813758147581575816758177581875819758207582175822758237582475825758267582775828758297583075831758327583375834758357583675837758387583975840758417584275843758447584575846758477584875849758507585175852758537585475855758567585775858758597586075861758627586375864758657586675867758687586975870758717587275873758747587575876758777587875879758807588175882758837588475885758867588775888758897589075891758927589375894758957589675897758987589975900759017590275903759047590575906759077590875909759107591175912759137591475915759167591775918759197592075921759227592375924759257592675927759287592975930759317593275933759347593575936759377593875939759407594175942759437594475945759467594775948759497595075951759527595375954759557595675957759587595975960759617596275963759647596575966759677596875969759707597175972759737597475975759767597775978759797598075981759827598375984759857598675987759887598975990759917599275993759947599575996759977599875999760007600176002760037600476005760067600776008760097601076011760127601376014760157601676017760187601976020760217602276023760247602576026760277602876029760307603176032760337603476035760367603776038760397604076041760427604376044760457604676047760487604976050760517605276053760547605576056760577605876059760607606176062760637606476065760667606776068760697607076071760727607376074760757607676077760787607976080760817608276083760847608576086760877608876089760907609176092760937609476095760967609776098760997610076101761027610376104761057610676107761087610976110761117611276113761147611576116761177611876119761207612176122761237612476125761267612776128761297613076131761327613376134761357613676137761387613976140761417614276143761447614576146761477614876149761507615176152761537615476155761567615776158761597616076161761627616376164761657616676167761687616976170761717617276173761747617576176761777617876179761807618176182761837618476185761867618776188761897619076191761927619376194761957619676197761987619976200762017620276203762047620576206762077620876209762107621176212762137621476215762167621776218762197622076221762227622376224762257622676227762287622976230762317623276233762347623576236762377623876239762407624176242762437624476245762467624776248762497625076251762527625376254762557625676257762587625976260762617626276263762647626576266762677626876269762707627176272762737627476275762767627776278762797628076281762827628376284762857628676287762887628976290762917629276293762947629576296762977629876299763007630176302763037630476305763067630776308763097631076311763127631376314763157631676317763187631976320763217632276323763247632576326763277632876329763307633176332763337633476335763367633776338763397634076341763427634376344763457634676347763487634976350763517635276353763547635576356763577635876359763607636176362763637636476365763667636776368763697637076371763727637376374763757637676377763787637976380763817638276383763847638576386763877638876389763907639176392763937639476395763967639776398763997640076401764027640376404764057640676407764087640976410764117641276413764147641576416764177641876419764207642176422764237642476425764267642776428764297643076431764327643376434764357643676437764387643976440764417644276443764447644576446764477644876449764507645176452764537645476455764567645776458764597646076461764627646376464764657646676467764687646976470764717647276473764747647576476764777647876479764807648176482764837648476485764867648776488764897649076491764927649376494764957649676497764987649976500765017650276503765047650576506765077650876509765107651176512765137651476515765167651776518765197652076521765227652376524765257652676527765287652976530765317653276533765347653576536765377653876539765407654176542765437654476545765467654776548765497655076551765527655376554765557655676557765587655976560765617656276563765647656576566765677656876569765707657176572765737657476575765767657776578765797658076581765827658376584765857658676587765887658976590765917659276593765947659576596765977659876599766007660176602766037660476605766067660776608766097661076611766127661376614766157661676617766187661976620766217662276623766247662576626766277662876629766307663176632766337663476635766367663776638766397664076641766427664376644766457664676647766487664976650766517665276653766547665576656766577665876659766607666176662766637666476665766667666776668766697667076671766727667376674766757667676677766787667976680766817668276683766847668576686766877668876689766907669176692766937669476695766967669776698766997670076701767027670376704767057670676707767087670976710767117671276713767147671576716767177671876719767207672176722767237672476725767267672776728767297673076731767327673376734767357673676737767387673976740767417674276743767447674576746767477674876749767507675176752767537675476755767567675776758767597676076761767627676376764767657676676767767687676976770767717677276773767747677576776767777677876779767807678176782767837678476785767867678776788767897679076791767927679376794767957679676797767987679976800768017680276803768047680576806768077680876809768107681176812768137681476815768167681776818768197682076821768227682376824768257682676827768287682976830768317683276833768347683576836768377683876839768407684176842768437684476845768467684776848768497685076851768527685376854768557685676857768587685976860768617686276863768647686576866768677686876869768707687176872768737687476875768767687776878768797688076881768827688376884768857688676887768887688976890768917689276893768947689576896768977689876899769007690176902769037690476905769067690776908769097691076911769127691376914769157691676917769187691976920769217692276923769247692576926769277692876929769307693176932769337693476935769367693776938769397694076941769427694376944769457694676947769487694976950769517695276953769547695576956769577695876959769607696176962769637696476965769667696776968769697697076971769727697376974769757697676977769787697976980769817698276983769847698576986769877698876989769907699176992769937699476995769967699776998769997700077001770027700377004770057700677007770087700977010770117701277013770147701577016770177701877019770207702177022770237702477025770267702777028770297703077031770327703377034770357703677037770387703977040770417704277043770447704577046770477704877049770507705177052770537705477055770567705777058770597706077061770627706377064770657706677067770687706977070770717707277073770747707577076770777707877079770807708177082770837708477085770867708777088770897709077091770927709377094770957709677097770987709977100771017710277103771047710577106771077710877109771107711177112771137711477115771167711777118771197712077121771227712377124771257712677127771287712977130771317713277133771347713577136771377713877139771407714177142771437714477145771467714777148771497715077151771527715377154771557715677157771587715977160771617716277163771647716577166771677716877169771707717177172771737717477175771767717777178771797718077181771827718377184771857718677187771887718977190771917719277193771947719577196771977719877199772007720177202772037720477205772067720777208772097721077211772127721377214772157721677217772187721977220772217722277223772247722577226772277722877229772307723177232772337723477235772367723777238772397724077241772427724377244772457724677247772487724977250772517725277253772547725577256772577725877259772607726177262772637726477265772667726777268772697727077271772727727377274772757727677277772787727977280772817728277283772847728577286772877728877289772907729177292772937729477295772967729777298772997730077301773027730377304773057730677307773087730977310773117731277313773147731577316773177731877319773207732177322773237732477325773267732777328773297733077331773327733377334773357733677337773387733977340773417734277343773447734577346773477734877349773507735177352773537735477355773567735777358773597736077361773627736377364773657736677367773687736977370773717737277373773747737577376773777737877379773807738177382773837738477385773867738777388773897739077391773927739377394773957739677397773987739977400774017740277403774047740577406774077740877409774107741177412774137741477415774167741777418774197742077421774227742377424774257742677427774287742977430774317743277433774347743577436774377743877439774407744177442774437744477445774467744777448774497745077451774527745377454774557745677457774587745977460774617746277463774647746577466774677746877469774707747177472774737747477475774767747777478774797748077481774827748377484774857748677487774887748977490774917749277493774947749577496774977749877499775007750177502775037750477505775067750777508775097751077511775127751377514775157751677517775187751977520775217752277523775247752577526775277752877529775307753177532775337753477535775367753777538775397754077541775427754377544775457754677547775487754977550775517755277553775547755577556775577755877559775607756177562775637756477565775667756777568775697757077571775727757377574775757757677577775787757977580775817758277583775847758577586775877758877589775907759177592775937759477595775967759777598775997760077601776027760377604776057760677607776087760977610776117761277613776147761577616776177761877619776207762177622776237762477625776267762777628776297763077631776327763377634776357763677637776387763977640776417764277643776447764577646776477764877649776507765177652776537765477655776567765777658776597766077661776627766377664776657766677667776687766977670776717767277673776747767577676776777767877679776807768177682776837768477685776867768777688776897769077691776927769377694776957769677697776987769977700777017770277703777047770577706777077770877709777107771177712777137771477715777167771777718777197772077721777227772377724777257772677727777287772977730777317773277733777347773577736777377773877739777407774177742777437774477745777467774777748777497775077751777527775377754777557775677757777587775977760777617776277763777647776577766777677776877769777707777177772777737777477775777767777777778777797778077781777827778377784777857778677787777887778977790777917779277793777947779577796777977779877799778007780177802778037780477805778067780777808778097781077811778127781377814778157781677817778187781977820778217782277823778247782577826778277782877829778307783177832778337783477835778367783777838778397784077841778427784377844778457784677847778487784977850778517785277853778547785577856778577785877859778607786177862778637786477865778667786777868778697787077871778727787377874778757787677877778787787977880778817788277883778847788577886778877788877889778907789177892778937789477895778967789777898778997790077901779027790377904779057790677907779087790977910779117791277913779147791577916779177791877919779207792177922779237792477925779267792777928779297793077931779327793377934779357793677937779387793977940779417794277943779447794577946779477794877949779507795177952779537795477955779567795777958779597796077961779627796377964779657796677967779687796977970779717797277973779747797577976779777797877979779807798177982779837798477985779867798777988779897799077991779927799377994779957799677997779987799978000780017800278003780047800578006780077800878009780107801178012780137801478015780167801778018780197802078021780227802378024780257802678027780287802978030780317803278033780347803578036780377803878039780407804178042780437804478045780467804778048780497805078051780527805378054780557805678057780587805978060780617806278063780647806578066780677806878069780707807178072780737807478075780767807778078780797808078081780827808378084780857808678087780887808978090780917809278093780947809578096780977809878099781007810178102781037810478105781067810778108781097811078111781127811378114781157811678117781187811978120781217812278123781247812578126781277812878129781307813178132781337813478135781367813778138781397814078141781427814378144781457814678147781487814978150781517815278153781547815578156781577815878159781607816178162781637816478165781667816778168781697817078171781727817378174781757817678177781787817978180781817818278183781847818578186781877818878189781907819178192781937819478195781967819778198781997820078201782027820378204782057820678207782087820978210782117821278213782147821578216782177821878219782207822178222782237822478225782267822778228782297823078231782327823378234782357823678237782387823978240782417824278243782447824578246782477824878249782507825178252782537825478255782567825778258782597826078261782627826378264782657826678267782687826978270782717827278273782747827578276782777827878279782807828178282782837828478285782867828778288782897829078291782927829378294782957829678297782987829978300783017830278303783047830578306783077830878309783107831178312783137831478315783167831778318783197832078321783227832378324783257832678327783287832978330783317833278333783347833578336783377833878339783407834178342783437834478345783467834778348783497835078351783527835378354783557835678357783587835978360783617836278363783647836578366783677836878369783707837178372783737837478375783767837778378783797838078381783827838378384783857838678387783887838978390783917839278393783947839578396783977839878399784007840178402784037840478405784067840778408784097841078411784127841378414784157841678417784187841978420784217842278423784247842578426784277842878429784307843178432784337843478435784367843778438784397844078441784427844378444784457844678447784487844978450784517845278453784547845578456784577845878459784607846178462784637846478465784667846778468784697847078471784727847378474784757847678477784787847978480784817848278483784847848578486784877848878489784907849178492784937849478495784967849778498784997850078501785027850378504785057850678507785087850978510785117851278513785147851578516785177851878519785207852178522785237852478525785267852778528785297853078531785327853378534785357853678537785387853978540785417854278543785447854578546785477854878549785507855178552785537855478555785567855778558785597856078561785627856378564785657856678567785687856978570785717857278573785747857578576785777857878579785807858178582785837858478585785867858778588785897859078591785927859378594785957859678597785987859978600786017860278603786047860578606786077860878609786107861178612786137861478615786167861778618786197862078621786227862378624786257862678627786287862978630786317863278633786347863578636786377863878639786407864178642786437864478645786467864778648786497865078651786527865378654786557865678657786587865978660786617866278663786647866578666786677866878669786707867178672786737867478675786767867778678786797868078681786827868378684786857868678687786887868978690786917869278693786947869578696786977869878699787007870178702787037870478705787067870778708787097871078711787127871378714787157871678717787187871978720787217872278723787247872578726787277872878729787307873178732787337873478735787367873778738787397874078741787427874378744787457874678747787487874978750787517875278753787547875578756787577875878759787607876178762787637876478765787667876778768787697877078771787727877378774787757877678777787787877978780787817878278783787847878578786787877878878789787907879178792787937879478795787967879778798787997880078801788027880378804788057880678807788087880978810788117881278813788147881578816788177881878819788207882178822788237882478825788267882778828788297883078831788327883378834788357883678837788387883978840788417884278843788447884578846788477884878849788507885178852788537885478855788567885778858788597886078861788627886378864788657886678867788687886978870788717887278873788747887578876788777887878879788807888178882788837888478885788867888778888788897889078891788927889378894788957889678897788987889978900789017890278903789047890578906789077890878909789107891178912789137891478915789167891778918789197892078921789227892378924789257892678927789287892978930789317893278933789347893578936789377893878939789407894178942789437894478945789467894778948789497895078951789527895378954789557895678957789587895978960789617896278963789647896578966789677896878969789707897178972789737897478975789767897778978789797898078981789827898378984789857898678987789887898978990789917899278993789947899578996789977899878999790007900179002790037900479005790067900779008790097901079011790127901379014790157901679017790187901979020790217902279023790247902579026790277902879029790307903179032790337903479035790367903779038790397904079041790427904379044790457904679047790487904979050790517905279053790547905579056790577905879059790607906179062790637906479065790667906779068790697907079071790727907379074790757907679077790787907979080790817908279083790847908579086790877908879089790907909179092790937909479095790967909779098790997910079101791027910379104791057910679107791087910979110791117911279113791147911579116791177911879119791207912179122791237912479125791267912779128791297913079131791327913379134791357913679137791387913979140791417914279143791447914579146791477914879149791507915179152791537915479155791567915779158791597916079161791627916379164791657916679167791687916979170791717917279173791747917579176791777917879179791807918179182791837918479185791867918779188791897919079191791927919379194791957919679197791987919979200792017920279203792047920579206792077920879209792107921179212792137921479215792167921779218792197922079221792227922379224792257922679227792287922979230792317923279233792347923579236792377923879239792407924179242792437924479245792467924779248792497925079251792527925379254792557925679257792587925979260792617926279263792647926579266792677926879269792707927179272792737927479275792767927779278792797928079281792827928379284792857928679287792887928979290792917929279293792947929579296792977929879299793007930179302793037930479305793067930779308793097931079311793127931379314793157931679317793187931979320793217932279323793247932579326793277932879329793307933179332793337933479335793367933779338793397934079341793427934379344793457934679347793487934979350793517935279353793547935579356793577935879359793607936179362793637936479365793667936779368793697937079371793727937379374793757937679377793787937979380793817938279383793847938579386793877938879389793907939179392793937939479395793967939779398793997940079401794027940379404794057940679407794087940979410794117941279413794147941579416794177941879419794207942179422794237942479425794267942779428794297943079431794327943379434794357943679437794387943979440794417944279443794447944579446794477944879449794507945179452794537945479455794567945779458794597946079461794627946379464794657946679467794687946979470794717947279473794747947579476794777947879479794807948179482794837948479485794867948779488794897949079491794927949379494794957949679497794987949979500795017950279503795047950579506795077950879509795107951179512795137951479515795167951779518795197952079521795227952379524795257952679527795287952979530795317953279533795347953579536795377953879539795407954179542795437954479545795467954779548795497955079551795527955379554795557955679557795587955979560795617956279563795647956579566795677956879569795707957179572795737957479575795767957779578795797958079581795827958379584795857958679587795887958979590795917959279593795947959579596795977959879599796007960179602796037960479605796067960779608796097961079611796127961379614796157961679617796187961979620796217962279623796247962579626796277962879629796307963179632796337963479635796367963779638796397964079641796427964379644796457964679647796487964979650796517965279653796547965579656796577965879659796607966179662796637966479665796667966779668796697967079671796727967379674796757967679677796787967979680796817968279683796847968579686796877968879689796907969179692796937969479695796967969779698796997970079701797027970379704797057970679707797087970979710797117971279713797147971579716797177971879719797207972179722797237972479725797267972779728797297973079731797327973379734797357973679737797387973979740797417974279743797447974579746797477974879749797507975179752797537975479755797567975779758797597976079761797627976379764797657976679767797687976979770797717977279773797747977579776797777977879779797807978179782797837978479785797867978779788797897979079791797927979379794797957979679797797987979979800798017980279803798047980579806798077980879809798107981179812798137981479815798167981779818798197982079821798227982379824798257982679827798287982979830798317983279833798347983579836798377983879839798407984179842798437984479845798467984779848798497985079851798527985379854798557985679857798587985979860798617986279863798647986579866798677986879869798707987179872798737987479875798767987779878798797988079881798827988379884798857988679887798887988979890798917989279893798947989579896798977989879899799007990179902799037990479905799067990779908799097991079911799127991379914799157991679917799187991979920799217992279923799247992579926799277992879929799307993179932799337993479935799367993779938799397994079941799427994379944799457994679947799487994979950799517995279953799547995579956799577995879959799607996179962799637996479965799667996779968799697997079971799727997379974799757997679977799787997979980799817998279983799847998579986799877998879989799907999179992799937999479995799967999779998799998000080001800028000380004800058000680007800088000980010800118001280013800148001580016800178001880019800208002180022800238002480025800268002780028800298003080031800328003380034800358003680037800388003980040800418004280043800448004580046800478004880049800508005180052800538005480055800568005780058800598006080061800628006380064800658006680067800688006980070800718007280073800748007580076800778007880079800808008180082800838008480085800868008780088800898009080091800928009380094800958009680097800988009980100801018010280103801048010580106801078010880109801108011180112801138011480115801168011780118801198012080121801228012380124801258012680127801288012980130801318013280133801348013580136801378013880139801408014180142801438014480145801468014780148801498015080151801528015380154801558015680157801588015980160801618016280163801648016580166801678016880169801708017180172801738017480175801768017780178801798018080181801828018380184801858018680187801888018980190801918019280193801948019580196801978019880199802008020180202802038020480205802068020780208802098021080211802128021380214802158021680217802188021980220802218022280223802248022580226802278022880229802308023180232802338023480235802368023780238802398024080241802428024380244802458024680247802488024980250802518025280253802548025580256802578025880259802608026180262802638026480265802668026780268802698027080271802728027380274802758027680277802788027980280802818028280283802848028580286802878028880289802908029180292802938029480295802968029780298802998030080301803028030380304803058030680307803088030980310803118031280313803148031580316803178031880319803208032180322803238032480325803268032780328803298033080331803328033380334803358033680337803388033980340803418034280343803448034580346803478034880349803508035180352803538035480355803568035780358803598036080361803628036380364803658036680367803688036980370803718037280373803748037580376803778037880379803808038180382803838038480385803868038780388803898039080391803928039380394803958039680397803988039980400804018040280403804048040580406804078040880409804108041180412804138041480415804168041780418804198042080421804228042380424804258042680427804288042980430804318043280433804348043580436804378043880439804408044180442804438044480445804468044780448804498045080451804528045380454804558045680457804588045980460804618046280463804648046580466804678046880469804708047180472804738047480475804768047780478804798048080481804828048380484804858048680487804888048980490804918049280493804948049580496804978049880499805008050180502805038050480505805068050780508805098051080511805128051380514805158051680517805188051980520805218052280523805248052580526805278052880529805308053180532805338053480535805368053780538805398054080541805428054380544805458054680547805488054980550805518055280553805548055580556805578055880559805608056180562805638056480565805668056780568805698057080571805728057380574805758057680577805788057980580805818058280583805848058580586805878058880589805908059180592805938059480595805968059780598805998060080601806028060380604806058060680607806088060980610806118061280613806148061580616806178061880619806208062180622806238062480625806268062780628806298063080631806328063380634806358063680637806388063980640806418064280643806448064580646806478064880649806508065180652806538065480655806568065780658806598066080661806628066380664806658066680667806688066980670806718067280673806748067580676806778067880679806808068180682806838068480685806868068780688806898069080691806928069380694806958069680697806988069980700807018070280703807048070580706807078070880709807108071180712807138071480715807168071780718807198072080721807228072380724807258072680727807288072980730807318073280733807348073580736807378073880739807408074180742807438074480745807468074780748807498075080751807528075380754807558075680757807588075980760807618076280763807648076580766807678076880769807708077180772807738077480775807768077780778807798078080781807828078380784807858078680787807888078980790807918079280793807948079580796807978079880799808008080180802808038080480805808068080780808808098081080811808128081380814808158081680817808188081980820808218082280823808248082580826808278082880829808308083180832808338083480835808368083780838808398084080841808428084380844808458084680847808488084980850808518085280853808548085580856808578085880859808608086180862808638086480865808668086780868808698087080871808728087380874808758087680877808788087980880808818088280883808848088580886808878088880889808908089180892808938089480895808968089780898808998090080901809028090380904809058090680907809088090980910809118091280913809148091580916809178091880919809208092180922809238092480925809268092780928809298093080931809328093380934809358093680937809388093980940809418094280943809448094580946809478094880949809508095180952809538095480955809568095780958809598096080961809628096380964809658096680967809688096980970809718097280973809748097580976809778097880979809808098180982809838098480985809868098780988809898099080991809928099380994809958099680997809988099981000810018100281003810048100581006810078100881009810108101181012810138101481015810168101781018810198102081021810228102381024810258102681027810288102981030810318103281033810348103581036810378103881039810408104181042810438104481045810468104781048810498105081051810528105381054810558105681057810588105981060810618106281063810648106581066810678106881069810708107181072810738107481075810768107781078810798108081081810828108381084810858108681087810888108981090810918109281093810948109581096810978109881099811008110181102811038110481105811068110781108811098111081111811128111381114811158111681117811188111981120811218112281123811248112581126811278112881129811308113181132811338113481135811368113781138811398114081141811428114381144811458114681147811488114981150811518115281153811548115581156811578115881159811608116181162811638116481165811668116781168811698117081171811728117381174811758117681177811788117981180811818118281183811848118581186811878118881189811908119181192811938119481195811968119781198811998120081201812028120381204812058120681207812088120981210812118121281213812148121581216812178121881219812208122181222812238122481225812268122781228812298123081231812328123381234812358123681237812388123981240812418124281243812448124581246812478124881249812508125181252812538125481255812568125781258812598126081261812628126381264812658126681267812688126981270812718127281273812748127581276812778127881279812808128181282812838128481285812868128781288812898129081291812928129381294812958129681297812988129981300813018130281303813048130581306813078130881309813108131181312813138131481315813168131781318813198132081321813228132381324813258132681327813288132981330813318133281333813348133581336813378133881339813408134181342813438134481345813468134781348813498135081351813528135381354813558135681357813588135981360813618136281363813648136581366813678136881369813708137181372813738137481375813768137781378813798138081381813828138381384813858138681387813888138981390813918139281393813948139581396813978139881399814008140181402814038140481405814068140781408814098141081411814128141381414814158141681417814188141981420814218142281423814248142581426814278142881429814308143181432814338143481435814368143781438814398144081441814428144381444814458144681447814488144981450814518145281453814548145581456814578145881459814608146181462814638146481465814668146781468814698147081471814728147381474814758147681477814788147981480814818148281483814848148581486814878148881489814908149181492814938149481495814968149781498814998150081501815028150381504815058150681507815088150981510815118151281513815148151581516815178151881519815208152181522815238152481525815268152781528815298153081531815328153381534815358153681537815388153981540815418154281543815448154581546815478154881549815508155181552815538155481555815568155781558815598156081561815628156381564815658156681567815688156981570815718157281573815748157581576815778157881579815808158181582815838158481585815868158781588815898159081591815928159381594815958159681597815988159981600816018160281603816048160581606816078160881609816108161181612816138161481615816168161781618816198162081621816228162381624816258162681627816288162981630816318163281633816348163581636816378163881639816408164181642816438164481645816468164781648816498165081651816528165381654816558165681657816588165981660816618166281663816648166581666816678166881669816708167181672816738167481675816768167781678816798168081681816828168381684816858168681687816888168981690816918169281693816948169581696816978169881699817008170181702817038170481705817068170781708817098171081711817128171381714817158171681717817188171981720817218172281723817248172581726817278172881729817308173181732817338173481735817368173781738817398174081741817428174381744817458174681747817488174981750817518175281753817548175581756817578175881759817608176181762817638176481765817668176781768817698177081771817728177381774817758177681777817788177981780817818178281783817848178581786817878178881789817908179181792817938179481795817968179781798817998180081801818028180381804818058180681807818088180981810818118181281813818148181581816818178181881819818208182181822818238182481825818268182781828818298183081831818328183381834818358183681837818388183981840818418184281843818448184581846818478184881849818508185181852818538185481855818568185781858818598186081861818628186381864818658186681867818688186981870818718187281873818748187581876818778187881879818808188181882818838188481885818868188781888818898189081891818928189381894818958189681897818988189981900819018190281903819048190581906819078190881909819108191181912819138191481915819168191781918819198192081921819228192381924819258192681927819288192981930819318193281933819348193581936819378193881939819408194181942819438194481945819468194781948819498195081951819528195381954819558195681957819588195981960819618196281963819648196581966819678196881969819708197181972819738197481975819768197781978819798198081981819828198381984819858198681987819888198981990819918199281993819948199581996819978199881999820008200182002820038200482005820068200782008820098201082011820128201382014820158201682017820188201982020820218202282023820248202582026820278202882029820308203182032820338203482035820368203782038820398204082041820428204382044820458204682047820488204982050820518205282053820548205582056820578205882059820608206182062820638206482065820668206782068820698207082071820728207382074820758207682077820788207982080820818208282083820848208582086820878208882089820908209182092820938209482095820968209782098820998210082101821028210382104821058210682107821088210982110821118211282113821148211582116821178211882119821208212182122821238212482125821268212782128821298213082131821328213382134821358213682137821388213982140821418214282143821448214582146821478214882149821508215182152821538215482155821568215782158821598216082161821628216382164821658216682167821688216982170821718217282173821748217582176821778217882179821808218182182821838218482185821868218782188821898219082191821928219382194821958219682197821988219982200822018220282203822048220582206822078220882209822108221182212822138221482215822168221782218822198222082221822228222382224822258222682227822288222982230822318223282233822348223582236822378223882239822408224182242822438224482245822468224782248822498225082251822528225382254822558225682257822588225982260822618226282263822648226582266822678226882269822708227182272822738227482275822768227782278822798228082281822828228382284822858228682287822888228982290822918229282293822948229582296822978229882299823008230182302823038230482305823068230782308823098231082311823128231382314823158231682317823188231982320823218232282323823248232582326823278232882329823308233182332823338233482335823368233782338823398234082341823428234382344823458234682347823488234982350823518235282353823548235582356823578235882359823608236182362823638236482365823668236782368823698237082371823728237382374823758237682377823788237982380823818238282383823848238582386823878238882389823908239182392823938239482395823968239782398823998240082401824028240382404824058240682407824088240982410824118241282413824148241582416824178241882419824208242182422824238242482425824268242782428824298243082431824328243382434824358243682437824388243982440824418244282443824448244582446824478244882449824508245182452824538245482455824568245782458824598246082461824628246382464824658246682467824688246982470824718247282473824748247582476824778247882479824808248182482824838248482485824868248782488824898249082491824928249382494824958249682497824988249982500825018250282503825048250582506825078250882509825108251182512825138251482515825168251782518825198252082521825228252382524825258252682527825288252982530825318253282533825348253582536825378253882539825408254182542825438254482545825468254782548825498255082551825528255382554825558255682557825588255982560825618256282563825648256582566825678256882569825708257182572825738257482575825768257782578825798258082581825828258382584825858258682587825888258982590825918259282593825948259582596825978259882599826008260182602826038260482605826068260782608826098261082611826128261382614826158261682617826188261982620826218262282623826248262582626826278262882629826308263182632826338263482635826368263782638826398264082641826428264382644826458264682647826488264982650826518265282653826548265582656826578265882659826608266182662826638266482665826668266782668826698267082671826728267382674826758267682677826788267982680826818268282683826848268582686826878268882689826908269182692826938269482695826968269782698826998270082701827028270382704827058270682707827088270982710827118271282713827148271582716827178271882719827208272182722827238272482725827268272782728827298273082731827328273382734827358273682737827388273982740827418274282743827448274582746827478274882749827508275182752827538275482755827568275782758827598276082761827628276382764827658276682767827688276982770827718277282773827748277582776827778277882779827808278182782827838278482785827868278782788827898279082791827928279382794827958279682797827988279982800828018280282803828048280582806828078280882809828108281182812828138281482815828168281782818828198282082821828228282382824828258282682827828288282982830828318283282833828348283582836828378283882839828408284182842828438284482845828468284782848828498285082851828528285382854828558285682857828588285982860828618286282863828648286582866828678286882869828708287182872828738287482875828768287782878828798288082881828828288382884828858288682887828888288982890828918289282893828948289582896828978289882899829008290182902829038290482905829068290782908829098291082911829128291382914829158291682917829188291982920829218292282923829248292582926829278292882929829308293182932829338293482935829368293782938829398294082941829428294382944829458294682947829488294982950829518295282953829548295582956829578295882959829608296182962829638296482965829668296782968829698297082971829728297382974829758297682977829788297982980829818298282983829848298582986829878298882989829908299182992829938299482995829968299782998829998300083001830028300383004830058300683007830088300983010830118301283013830148301583016830178301883019830208302183022830238302483025830268302783028830298303083031830328303383034830358303683037830388303983040830418304283043830448304583046830478304883049830508305183052830538305483055830568305783058830598306083061830628306383064830658306683067830688306983070830718307283073830748307583076830778307883079830808308183082830838308483085830868308783088830898309083091830928309383094830958309683097830988309983100831018310283103831048310583106831078310883109831108311183112831138311483115831168311783118831198312083121831228312383124831258312683127831288312983130831318313283133831348313583136831378313883139831408314183142831438314483145831468314783148831498315083151831528315383154831558315683157831588315983160831618316283163831648316583166831678316883169831708317183172831738317483175831768317783178831798318083181831828318383184831858318683187831888318983190831918319283193831948319583196831978319883199832008320183202832038320483205832068320783208832098321083211832128321383214832158321683217832188321983220832218322283223832248322583226832278322883229832308323183232832338323483235832368323783238832398324083241832428324383244832458324683247832488324983250832518325283253832548325583256832578325883259832608326183262832638326483265832668326783268832698327083271832728327383274832758327683277832788327983280832818328283283832848328583286832878328883289832908329183292832938329483295832968329783298832998330083301833028330383304833058330683307833088330983310833118331283313833148331583316833178331883319833208332183322833238332483325833268332783328833298333083331833328333383334833358333683337833388333983340833418334283343833448334583346833478334883349833508335183352833538335483355833568335783358833598336083361833628336383364833658336683367833688336983370833718337283373833748337583376833778337883379833808338183382833838338483385833868338783388833898339083391833928339383394833958339683397833988339983400834018340283403834048340583406834078340883409834108341183412834138341483415834168341783418834198342083421834228342383424834258342683427834288342983430834318343283433834348343583436834378343883439834408344183442834438344483445834468344783448834498345083451834528345383454834558345683457834588345983460834618346283463834648346583466834678346883469834708347183472834738347483475834768347783478834798348083481834828348383484834858348683487834888348983490834918349283493834948349583496834978349883499835008350183502835038350483505835068350783508835098351083511835128351383514835158351683517835188351983520835218352283523835248352583526835278352883529835308353183532835338353483535835368353783538835398354083541835428354383544835458354683547835488354983550835518355283553835548355583556835578355883559835608356183562835638356483565835668356783568835698357083571835728357383574835758357683577835788357983580835818358283583835848358583586835878358883589835908359183592835938359483595835968359783598835998360083601836028360383604836058360683607836088360983610836118361283613836148361583616836178361883619836208362183622836238362483625836268362783628836298363083631836328363383634836358363683637836388363983640836418364283643836448364583646836478364883649836508365183652836538365483655836568365783658836598366083661836628366383664836658366683667836688366983670836718367283673836748367583676836778367883679836808368183682836838368483685836868368783688836898369083691836928369383694836958369683697836988369983700837018370283703837048370583706837078370883709837108371183712837138371483715837168371783718837198372083721837228372383724837258372683727837288372983730837318373283733837348373583736837378373883739837408374183742837438374483745837468374783748837498375083751837528375383754837558375683757837588375983760837618376283763837648376583766837678376883769837708377183772837738377483775837768377783778837798378083781837828378383784837858378683787837888378983790837918379283793837948379583796837978379883799838008380183802838038380483805838068380783808838098381083811838128381383814838158381683817838188381983820838218382283823838248382583826838278382883829838308383183832838338383483835838368383783838838398384083841838428384383844838458384683847838488384983850838518385283853838548385583856838578385883859838608386183862838638386483865838668386783868838698387083871838728387383874838758387683877838788387983880838818388283883838848388583886838878388883889838908389183892838938389483895838968389783898838998390083901839028390383904839058390683907839088390983910839118391283913839148391583916839178391883919839208392183922839238392483925839268392783928839298393083931839328393383934839358393683937839388393983940839418394283943839448394583946839478394883949839508395183952839538395483955839568395783958839598396083961839628396383964839658396683967839688396983970839718397283973839748397583976839778397883979839808398183982839838398483985839868398783988839898399083991839928399383994839958399683997839988399984000840018400284003840048400584006840078400884009840108401184012840138401484015840168401784018840198402084021840228402384024840258402684027840288402984030840318403284033840348403584036840378403884039840408404184042840438404484045840468404784048840498405084051840528405384054840558405684057840588405984060840618406284063840648406584066840678406884069840708407184072840738407484075840768407784078840798408084081840828408384084840858408684087840888408984090840918409284093840948409584096840978409884099841008410184102841038410484105841068410784108841098411084111841128411384114841158411684117841188411984120841218412284123841248412584126841278412884129841308413184132841338413484135841368413784138841398414084141841428414384144841458414684147841488414984150841518415284153841548415584156841578415884159841608416184162841638416484165841668416784168841698417084171841728417384174841758417684177841788417984180841818418284183841848418584186841878418884189841908419184192841938419484195841968419784198841998420084201842028420384204842058420684207842088420984210842118421284213842148421584216842178421884219842208422184222842238422484225842268422784228842298423084231842328423384234842358423684237842388423984240842418424284243842448424584246842478424884249842508425184252842538425484255842568425784258842598426084261842628426384264842658426684267842688426984270842718427284273842748427584276842778427884279842808428184282842838428484285842868428784288842898429084291842928429384294842958429684297842988429984300843018430284303843048430584306843078430884309843108431184312843138431484315843168431784318843198432084321843228432384324843258432684327843288432984330843318433284333843348433584336843378433884339843408434184342843438434484345843468434784348843498435084351843528435384354843558435684357843588435984360843618436284363843648436584366843678436884369843708437184372843738437484375843768437784378843798438084381843828438384384843858438684387843888438984390843918439284393843948439584396843978439884399844008440184402844038440484405844068440784408844098441084411844128441384414844158441684417844188441984420844218442284423844248442584426844278442884429844308443184432844338443484435844368443784438844398444084441844428444384444844458444684447844488444984450844518445284453844548445584456844578445884459844608446184462844638446484465844668446784468844698447084471844728447384474844758447684477844788447984480844818448284483844848448584486844878448884489844908449184492844938449484495844968449784498844998450084501845028450384504845058450684507845088450984510845118451284513845148451584516845178451884519845208452184522845238452484525845268452784528845298453084531845328453384534845358453684537845388453984540845418454284543845448454584546845478454884549845508455184552845538455484555845568455784558845598456084561845628456384564845658456684567845688456984570845718457284573845748457584576845778457884579845808458184582845838458484585845868458784588845898459084591845928459384594845958459684597845988459984600846018460284603846048460584606846078460884609846108461184612846138461484615846168461784618846198462084621846228462384624846258462684627846288462984630846318463284633846348463584636846378463884639846408464184642846438464484645846468464784648846498465084651846528465384654846558465684657846588465984660846618466284663846648466584666846678466884669846708467184672846738467484675846768467784678846798468084681846828468384684846858468684687846888468984690846918469284693846948469584696846978469884699847008470184702847038470484705847068470784708847098471084711847128471384714847158471684717847188471984720847218472284723847248472584726847278472884729847308473184732847338473484735847368473784738847398474084741847428474384744847458474684747847488474984750847518475284753847548475584756847578475884759847608476184762847638476484765847668476784768847698477084771847728477384774847758477684777847788477984780847818478284783847848478584786847878478884789847908479184792847938479484795847968479784798847998480084801848028480384804848058480684807848088480984810848118481284813848148481584816848178481884819848208482184822848238482484825848268482784828848298483084831848328483384834848358483684837848388483984840848418484284843848448484584846848478484884849848508485184852848538485484855848568485784858848598486084861848628486384864848658486684867848688486984870848718487284873848748487584876848778487884879848808488184882848838488484885848868488784888848898489084891848928489384894848958489684897848988489984900849018490284903849048490584906849078490884909849108491184912849138491484915849168491784918849198492084921849228492384924849258492684927849288492984930849318493284933849348493584936849378493884939849408494184942849438494484945849468494784948849498495084951849528495384954849558495684957849588495984960849618496284963849648496584966849678496884969849708497184972849738497484975849768497784978849798498084981849828498384984849858498684987849888498984990849918499284993849948499584996849978499884999850008500185002850038500485005850068500785008850098501085011850128501385014850158501685017850188501985020850218502285023850248502585026850278502885029850308503185032850338503485035850368503785038850398504085041850428504385044850458504685047850488504985050850518505285053850548505585056850578505885059850608506185062850638506485065850668506785068850698507085071850728507385074850758507685077850788507985080850818508285083850848508585086850878508885089850908509185092850938509485095850968509785098850998510085101851028510385104851058510685107851088510985110851118511285113851148511585116851178511885119851208512185122851238512485125851268512785128851298513085131851328513385134851358513685137851388513985140851418514285143851448514585146851478514885149851508515185152851538515485155851568515785158851598516085161851628516385164851658516685167851688516985170851718517285173851748517585176851778517885179851808518185182851838518485185851868518785188851898519085191851928519385194851958519685197851988519985200852018520285203852048520585206852078520885209852108521185212852138521485215852168521785218852198522085221852228522385224852258522685227852288522985230852318523285233852348523585236852378523885239852408524185242852438524485245852468524785248852498525085251852528525385254852558525685257852588525985260852618526285263852648526585266852678526885269852708527185272852738527485275852768527785278852798528085281852828528385284852858528685287852888528985290852918529285293852948529585296852978529885299853008530185302853038530485305853068530785308853098531085311853128531385314853158531685317853188531985320853218532285323853248532585326853278532885329853308533185332853338533485335853368533785338853398534085341853428534385344853458534685347853488534985350853518535285353853548535585356853578535885359853608536185362853638536485365853668536785368853698537085371853728537385374853758537685377853788537985380853818538285383853848538585386853878538885389853908539185392853938539485395853968539785398853998540085401854028540385404854058540685407854088540985410854118541285413854148541585416854178541885419854208542185422854238542485425854268542785428854298543085431854328543385434854358543685437854388543985440854418544285443854448544585446854478544885449854508545185452854538545485455854568545785458854598546085461854628546385464854658546685467854688546985470854718547285473854748547585476854778547885479854808548185482854838548485485854868548785488854898549085491854928549385494854958549685497854988549985500855018550285503855048550585506855078550885509855108551185512855138551485515855168551785518855198552085521855228552385524855258552685527855288552985530855318553285533855348553585536855378553885539855408554185542855438554485545855468554785548855498555085551855528555385554855558555685557855588555985560855618556285563855648556585566855678556885569855708557185572855738557485575855768557785578855798558085581855828558385584855858558685587855888558985590855918559285593855948559585596855978559885599856008560185602856038560485605856068560785608856098561085611856128561385614856158561685617856188561985620856218562285623856248562585626856278562885629856308563185632856338563485635856368563785638856398564085641856428564385644856458564685647856488564985650856518565285653856548565585656856578565885659856608566185662856638566485665856668566785668856698567085671856728567385674856758567685677856788567985680856818568285683856848568585686856878568885689856908569185692856938569485695856968569785698856998570085701857028570385704857058570685707857088570985710857118571285713857148571585716857178571885719857208572185722857238572485725857268572785728857298573085731857328573385734857358573685737857388573985740857418574285743857448574585746857478574885749857508575185752857538575485755857568575785758857598576085761857628576385764857658576685767857688576985770857718577285773857748577585776857778577885779857808578185782857838578485785857868578785788857898579085791857928579385794857958579685797857988579985800858018580285803858048580585806858078580885809858108581185812858138581485815858168581785818858198582085821858228582385824858258582685827858288582985830858318583285833858348583585836858378583885839858408584185842858438584485845858468584785848858498585085851858528585385854858558585685857858588585985860858618586285863858648586585866858678586885869858708587185872858738587485875858768587785878858798588085881858828588385884858858588685887858888588985890858918589285893858948589585896858978589885899859008590185902859038590485905859068590785908859098591085911859128591385914859158591685917859188591985920859218592285923859248592585926859278592885929859308593185932859338593485935859368593785938859398594085941859428594385944859458594685947859488594985950859518595285953859548595585956859578595885959859608596185962859638596485965859668596785968859698597085971859728597385974859758597685977859788597985980859818598285983859848598585986859878598885989859908599185992859938599485995859968599785998859998600086001860028600386004860058600686007860088600986010860118601286013860148601586016860178601886019860208602186022860238602486025860268602786028860298603086031860328603386034860358603686037860388603986040860418604286043860448604586046860478604886049860508605186052860538605486055860568605786058860598606086061860628606386064860658606686067860688606986070860718607286073860748607586076860778607886079860808608186082860838608486085860868608786088860898609086091860928609386094860958609686097860988609986100861018610286103861048610586106861078610886109861108611186112861138611486115861168611786118861198612086121861228612386124861258612686127861288612986130861318613286133861348613586136861378613886139861408614186142861438614486145861468614786148861498615086151861528615386154861558615686157861588615986160861618616286163861648616586166861678616886169861708617186172861738617486175861768617786178861798618086181861828618386184861858618686187861888618986190861918619286193861948619586196861978619886199862008620186202862038620486205862068620786208862098621086211862128621386214862158621686217862188621986220862218622286223862248622586226862278622886229862308623186232862338623486235862368623786238862398624086241862428624386244862458624686247862488624986250862518625286253862548625586256862578625886259862608626186262862638626486265862668626786268862698627086271862728627386274862758627686277862788627986280862818628286283862848628586286862878628886289862908629186292862938629486295862968629786298862998630086301863028630386304863058630686307863088630986310863118631286313863148631586316863178631886319863208632186322863238632486325863268632786328863298633086331863328633386334863358633686337863388633986340863418634286343863448634586346863478634886349863508635186352863538635486355863568635786358863598636086361863628636386364863658636686367863688636986370863718637286373863748637586376863778637886379863808638186382863838638486385863868638786388863898639086391863928639386394863958639686397863988639986400864018640286403864048640586406864078640886409864108641186412864138641486415864168641786418864198642086421864228642386424864258642686427864288642986430864318643286433864348643586436864378643886439864408644186442864438644486445864468644786448864498645086451864528645386454864558645686457864588645986460864618646286463864648646586466864678646886469864708647186472864738647486475864768647786478864798648086481864828648386484864858648686487864888648986490864918649286493864948649586496864978649886499865008650186502865038650486505865068650786508865098651086511865128651386514865158651686517865188651986520865218652286523865248652586526865278652886529865308653186532865338653486535865368653786538865398654086541865428654386544865458654686547865488654986550865518655286553865548655586556865578655886559865608656186562865638656486565865668656786568865698657086571865728657386574865758657686577865788657986580865818658286583865848658586586865878658886589865908659186592865938659486595865968659786598865998660086601866028660386604866058660686607866088660986610866118661286613866148661586616866178661886619866208662186622866238662486625866268662786628866298663086631866328663386634866358663686637866388663986640866418664286643866448664586646866478664886649866508665186652866538665486655866568665786658866598666086661866628666386664866658666686667866688666986670866718667286673866748667586676866778667886679866808668186682866838668486685866868668786688866898669086691866928669386694866958669686697866988669986700867018670286703867048670586706867078670886709867108671186712867138671486715867168671786718867198672086721867228672386724867258672686727867288672986730867318673286733867348673586736867378673886739867408674186742867438674486745867468674786748867498675086751867528675386754867558675686757867588675986760867618676286763867648676586766867678676886769867708677186772867738677486775867768677786778867798678086781867828678386784867858678686787867888678986790867918679286793867948679586796867978679886799868008680186802868038680486805868068680786808868098681086811868128681386814868158681686817868188681986820868218682286823868248682586826868278682886829868308683186832868338683486835868368683786838868398684086841868428684386844868458684686847868488684986850868518685286853868548685586856868578685886859868608686186862868638686486865868668686786868868698687086871868728687386874868758687686877868788687986880868818688286883868848688586886868878688886889868908689186892868938689486895868968689786898868998690086901869028690386904869058690686907869088690986910869118691286913869148691586916869178691886919869208692186922869238692486925869268692786928869298693086931869328693386934869358693686937869388693986940869418694286943869448694586946869478694886949869508695186952869538695486955869568695786958869598696086961869628696386964869658696686967869688696986970869718697286973869748697586976869778697886979869808698186982869838698486985869868698786988869898699086991869928699386994869958699686997869988699987000870018700287003870048700587006870078700887009870108701187012870138701487015870168701787018870198702087021870228702387024870258702687027870288702987030870318703287033870348703587036870378703887039870408704187042870438704487045870468704787048870498705087051870528705387054870558705687057870588705987060870618706287063870648706587066870678706887069870708707187072870738707487075870768707787078870798708087081870828708387084870858708687087870888708987090870918709287093870948709587096870978709887099871008710187102871038710487105871068710787108871098711087111871128711387114871158711687117871188711987120871218712287123871248712587126871278712887129871308713187132871338713487135871368713787138871398714087141871428714387144871458714687147871488714987150871518715287153871548715587156871578715887159871608716187162871638716487165871668716787168871698717087171871728717387174871758717687177871788717987180871818718287183871848718587186871878718887189871908719187192871938719487195871968719787198871998720087201872028720387204872058720687207872088720987210872118721287213872148721587216872178721887219872208722187222872238722487225872268722787228872298723087231872328723387234872358723687237872388723987240872418724287243872448724587246872478724887249872508725187252872538725487255872568725787258872598726087261872628726387264872658726687267872688726987270872718727287273872748727587276872778727887279872808728187282872838728487285872868728787288872898729087291872928729387294872958729687297872988729987300873018730287303873048730587306873078730887309873108731187312873138731487315873168731787318873198732087321873228732387324873258732687327873288732987330873318733287333873348733587336873378733887339873408734187342873438734487345873468734787348873498735087351873528735387354873558735687357873588735987360873618736287363873648736587366873678736887369873708737187372873738737487375873768737787378873798738087381873828738387384873858738687387873888738987390873918739287393873948739587396873978739887399874008740187402874038740487405874068740787408874098741087411874128741387414874158741687417874188741987420874218742287423874248742587426874278742887429874308743187432874338743487435874368743787438874398744087441874428744387444874458744687447874488744987450874518745287453874548745587456874578745887459874608746187462874638746487465874668746787468874698747087471874728747387474874758747687477874788747987480874818748287483874848748587486874878748887489874908749187492874938749487495874968749787498874998750087501875028750387504875058750687507875088750987510875118751287513875148751587516875178751887519875208752187522875238752487525875268752787528875298753087531875328753387534875358753687537875388753987540875418754287543875448754587546875478754887549875508755187552875538755487555875568755787558875598756087561875628756387564875658756687567875688756987570875718757287573875748757587576875778757887579875808758187582875838758487585875868758787588875898759087591875928759387594875958759687597875988759987600876018760287603876048760587606876078760887609876108761187612876138761487615876168761787618876198762087621876228762387624876258762687627876288762987630876318763287633876348763587636876378763887639876408764187642876438764487645876468764787648876498765087651876528765387654876558765687657876588765987660876618766287663876648766587666876678766887669876708767187672876738767487675876768767787678876798768087681876828768387684876858768687687876888768987690876918769287693876948769587696876978769887699877008770187702877038770487705877068770787708877098771087711877128771387714877158771687717877188771987720877218772287723877248772587726877278772887729877308773187732877338773487735877368773787738877398774087741877428774387744877458774687747877488774987750877518775287753877548775587756877578775887759877608776187762877638776487765877668776787768877698777087771877728777387774877758777687777877788777987780877818778287783877848778587786877878778887789877908779187792877938779487795877968779787798877998780087801878028780387804878058780687807878088780987810878118781287813878148781587816878178781887819878208782187822878238782487825878268782787828878298783087831878328783387834878358783687837878388783987840878418784287843878448784587846878478784887849878508785187852878538785487855878568785787858878598786087861878628786387864878658786687867878688786987870878718787287873878748787587876878778787887879878808788187882878838788487885878868788787888878898789087891878928789387894878958789687897878988789987900879018790287903879048790587906879078790887909879108791187912879138791487915879168791787918879198792087921879228792387924879258792687927879288792987930879318793287933879348793587936879378793887939879408794187942879438794487945879468794787948879498795087951879528795387954879558795687957879588795987960879618796287963879648796587966879678796887969879708797187972879738797487975879768797787978879798798087981879828798387984879858798687987879888798987990879918799287993879948799587996879978799887999880008800188002880038800488005880068800788008880098801088011880128801388014880158801688017880188801988020880218802288023880248802588026880278802888029880308803188032880338803488035880368803788038880398804088041880428804388044880458804688047880488804988050880518805288053880548805588056880578805888059880608806188062880638806488065880668806788068880698807088071880728807388074880758807688077880788807988080880818808288083880848808588086880878808888089880908809188092880938809488095880968809788098880998810088101881028810388104881058810688107881088810988110881118811288113881148811588116881178811888119881208812188122881238812488125881268812788128881298813088131881328813388134881358813688137881388813988140881418814288143881448814588146881478814888149881508815188152881538815488155881568815788158881598816088161881628816388164881658816688167881688816988170881718817288173881748817588176881778817888179881808818188182881838818488185881868818788188881898819088191881928819388194881958819688197881988819988200882018820288203882048820588206882078820888209882108821188212882138821488215882168821788218882198822088221882228822388224882258822688227882288822988230882318823288233882348823588236882378823888239882408824188242882438824488245882468824788248882498825088251882528825388254882558825688257882588825988260882618826288263882648826588266882678826888269882708827188272882738827488275882768827788278882798828088281882828828388284882858828688287882888828988290882918829288293882948829588296882978829888299883008830188302883038830488305883068830788308883098831088311883128831388314883158831688317883188831988320883218832288323883248832588326883278832888329883308833188332883338833488335883368833788338883398834088341883428834388344883458834688347883488834988350883518835288353883548835588356883578835888359883608836188362883638836488365883668836788368883698837088371883728837388374883758837688377883788837988380883818838288383883848838588386883878838888389883908839188392883938839488395883968839788398883998840088401884028840388404884058840688407884088840988410884118841288413884148841588416884178841888419884208842188422884238842488425884268842788428884298843088431884328843388434884358843688437884388843988440884418844288443884448844588446884478844888449884508845188452884538845488455884568845788458884598846088461884628846388464884658846688467884688846988470884718847288473884748847588476884778847888479884808848188482884838848488485884868848788488884898849088491884928849388494884958849688497884988849988500885018850288503885048850588506885078850888509885108851188512885138851488515885168851788518885198852088521885228852388524885258852688527885288852988530885318853288533885348853588536885378853888539885408854188542885438854488545885468854788548885498855088551885528855388554885558855688557885588855988560885618856288563885648856588566885678856888569885708857188572885738857488575885768857788578885798858088581885828858388584885858858688587885888858988590885918859288593885948859588596885978859888599886008860188602886038860488605886068860788608886098861088611886128861388614886158861688617886188861988620886218862288623886248862588626886278862888629886308863188632886338863488635886368863788638886398864088641886428864388644886458864688647886488864988650886518865288653886548865588656886578865888659886608866188662886638866488665886668866788668886698867088671886728867388674886758867688677886788867988680886818868288683886848868588686886878868888689886908869188692886938869488695886968869788698886998870088701887028870388704887058870688707887088870988710887118871288713887148871588716887178871888719887208872188722887238872488725887268872788728887298873088731887328873388734887358873688737887388873988740887418874288743887448874588746887478874888749887508875188752887538875488755887568875788758887598876088761887628876388764887658876688767887688876988770887718877288773887748877588776887778877888779887808878188782887838878488785887868878788788887898879088791887928879388794887958879688797887988879988800888018880288803888048880588806888078880888809888108881188812888138881488815888168881788818888198882088821888228882388824888258882688827888288882988830888318883288833888348883588836888378883888839888408884188842888438884488845888468884788848888498885088851888528885388854888558885688857888588885988860888618886288863888648886588866888678886888869888708887188872888738887488875888768887788878888798888088881888828888388884888858888688887888888888988890888918889288893888948889588896888978889888899889008890188902889038890488905889068890788908889098891088911889128891388914889158891688917889188891988920889218892288923889248892588926889278892888929889308893188932889338893488935889368893788938889398894088941889428894388944889458894688947889488894988950889518895288953889548895588956889578895888959889608896188962889638896488965889668896788968889698897088971889728897388974889758897688977889788897988980889818898288983889848898588986889878898888989889908899188992889938899488995889968899788998889998900089001890028900389004890058900689007890088900989010890118901289013890148901589016890178901889019890208902189022890238902489025890268902789028890298903089031890328903389034890358903689037890388903989040890418904289043890448904589046890478904889049890508905189052890538905489055890568905789058890598906089061890628906389064890658906689067890688906989070890718907289073890748907589076890778907889079890808908189082890838908489085890868908789088890898909089091890928909389094890958909689097890988909989100891018910289103891048910589106891078910889109891108911189112891138911489115891168911789118891198912089121891228912389124891258912689127891288912989130891318913289133891348913589136891378913889139891408914189142891438914489145891468914789148891498915089151891528915389154891558915689157891588915989160891618916289163891648916589166891678916889169891708917189172891738917489175891768917789178891798918089181891828918389184891858918689187891888918989190891918919289193891948919589196891978919889199892008920189202892038920489205892068920789208892098921089211892128921389214892158921689217892188921989220892218922289223892248922589226892278922889229892308923189232892338923489235892368923789238892398924089241892428924389244892458924689247892488924989250892518925289253892548925589256892578925889259892608926189262892638926489265892668926789268892698927089271892728927389274892758927689277892788927989280892818928289283892848928589286892878928889289892908929189292892938929489295892968929789298892998930089301893028930389304893058930689307893088930989310893118931289313893148931589316893178931889319893208932189322893238932489325893268932789328893298933089331893328933389334893358933689337893388933989340893418934289343893448934589346893478934889349893508935189352893538935489355893568935789358893598936089361893628936389364893658936689367893688936989370893718937289373893748937589376893778937889379893808938189382893838938489385893868938789388893898939089391893928939389394893958939689397893988939989400894018940289403894048940589406894078940889409894108941189412894138941489415894168941789418894198942089421894228942389424894258942689427894288942989430894318943289433894348943589436894378943889439894408944189442894438944489445894468944789448894498945089451894528945389454894558945689457894588945989460894618946289463894648946589466894678946889469894708947189472894738947489475894768947789478894798948089481894828948389484894858948689487894888948989490894918949289493894948949589496894978949889499895008950189502895038950489505895068950789508895098951089511895128951389514895158951689517895188951989520895218952289523895248952589526895278952889529895308953189532895338953489535895368953789538895398954089541895428954389544895458954689547895488954989550895518955289553895548955589556895578955889559895608956189562895638956489565895668956789568895698957089571895728957389574895758957689577895788957989580895818958289583895848958589586895878958889589895908959189592895938959489595895968959789598895998960089601896028960389604896058960689607896088960989610896118961289613896148961589616896178961889619896208962189622896238962489625896268962789628896298963089631896328963389634896358963689637896388963989640896418964289643896448964589646896478964889649896508965189652896538965489655896568965789658896598966089661896628966389664896658966689667896688966989670896718967289673896748967589676896778967889679896808968189682896838968489685896868968789688896898969089691896928969389694896958969689697896988969989700897018970289703897048970589706897078970889709897108971189712897138971489715897168971789718897198972089721897228972389724897258972689727897288972989730897318973289733897348973589736897378973889739897408974189742897438974489745897468974789748897498975089751897528975389754897558975689757897588975989760897618976289763897648976589766897678976889769897708977189772897738977489775897768977789778897798978089781897828978389784897858978689787897888978989790897918979289793897948979589796897978979889799898008980189802898038980489805898068980789808898098981089811898128981389814898158981689817898188981989820898218982289823898248982589826898278982889829898308983189832898338983489835898368983789838898398984089841898428984389844898458984689847898488984989850898518985289853898548985589856898578985889859898608986189862898638986489865898668986789868898698987089871898728987389874898758987689877898788987989880898818988289883898848988589886898878988889889898908989189892898938989489895898968989789898898998990089901899028990389904899058990689907899088990989910899118991289913899148991589916899178991889919899208992189922899238992489925899268992789928899298993089931899328993389934899358993689937899388993989940899418994289943899448994589946899478994889949899508995189952899538995489955899568995789958899598996089961899628996389964899658996689967899688996989970899718997289973899748997589976899778997889979899808998189982899838998489985899868998789988899898999089991899928999389994899958999689997899988999990000900019000290003900049000590006900079000890009900109001190012900139001490015900169001790018900199002090021900229002390024900259002690027900289002990030900319003290033900349003590036900379003890039900409004190042900439004490045900469004790048900499005090051900529005390054900559005690057900589005990060900619006290063900649006590066900679006890069900709007190072900739007490075900769007790078900799008090081900829008390084900859008690087900889008990090900919009290093900949009590096900979009890099901009010190102901039010490105901069010790108901099011090111901129011390114901159011690117901189011990120901219012290123901249012590126901279012890129901309013190132901339013490135901369013790138901399014090141901429014390144901459014690147901489014990150901519015290153901549015590156901579015890159901609016190162901639016490165901669016790168901699017090171901729017390174901759017690177901789017990180901819018290183901849018590186901879018890189901909019190192901939019490195901969019790198901999020090201902029020390204902059020690207902089020990210902119021290213902149021590216902179021890219902209022190222902239022490225902269022790228902299023090231902329023390234902359023690237902389023990240902419024290243902449024590246902479024890249902509025190252902539025490255902569025790258902599026090261902629026390264902659026690267902689026990270902719027290273902749027590276902779027890279902809028190282902839028490285902869028790288902899029090291902929029390294902959029690297902989029990300903019030290303903049030590306903079030890309903109031190312903139031490315903169031790318903199032090321903229032390324903259032690327903289032990330903319033290333903349033590336903379033890339903409034190342903439034490345903469034790348903499035090351903529035390354903559035690357903589035990360903619036290363903649036590366903679036890369903709037190372903739037490375903769037790378903799038090381903829038390384903859038690387903889038990390903919039290393903949039590396903979039890399904009040190402904039040490405904069040790408904099041090411904129041390414904159041690417904189041990420904219042290423904249042590426904279042890429904309043190432904339043490435904369043790438904399044090441904429044390444904459044690447904489044990450904519045290453904549045590456904579045890459904609046190462904639046490465904669046790468904699047090471904729047390474904759047690477904789047990480904819048290483904849048590486904879048890489904909049190492904939049490495904969049790498904999050090501905029050390504905059050690507905089050990510905119051290513905149051590516905179051890519905209052190522905239052490525905269052790528905299053090531905329053390534905359053690537905389053990540905419054290543905449054590546905479054890549905509055190552905539055490555905569055790558905599056090561905629056390564905659056690567905689056990570905719057290573905749057590576905779057890579905809058190582905839058490585905869058790588905899059090591905929059390594905959059690597905989059990600906019060290603906049060590606906079060890609906109061190612906139061490615906169061790618906199062090621906229062390624906259062690627906289062990630906319063290633906349063590636906379063890639906409064190642906439064490645906469064790648906499065090651906529065390654906559065690657906589065990660906619066290663906649066590666906679066890669906709067190672906739067490675906769067790678906799068090681906829068390684906859068690687906889068990690906919069290693906949069590696906979069890699907009070190702907039070490705907069070790708907099071090711907129071390714907159071690717907189071990720907219072290723907249072590726907279072890729907309073190732907339073490735907369073790738907399074090741907429074390744907459074690747907489074990750907519075290753907549075590756907579075890759907609076190762907639076490765907669076790768907699077090771907729077390774907759077690777907789077990780907819078290783907849078590786907879078890789907909079190792907939079490795907969079790798907999080090801908029080390804908059080690807908089080990810908119081290813908149081590816908179081890819908209082190822908239082490825908269082790828908299083090831908329083390834908359083690837908389083990840908419084290843908449084590846908479084890849908509085190852908539085490855908569085790858908599086090861908629086390864908659086690867908689086990870908719087290873908749087590876908779087890879908809088190882908839088490885908869088790888908899089090891908929089390894908959089690897908989089990900909019090290903909049090590906909079090890909909109091190912909139091490915909169091790918909199092090921909229092390924909259092690927909289092990930909319093290933909349093590936909379093890939909409094190942909439094490945909469094790948909499095090951909529095390954909559095690957909589095990960909619096290963909649096590966909679096890969909709097190972909739097490975909769097790978909799098090981909829098390984909859098690987909889098990990909919099290993909949099590996909979099890999910009100191002910039100491005910069100791008910099101091011910129101391014910159101691017910189101991020910219102291023910249102591026910279102891029910309103191032910339103491035910369103791038910399104091041910429104391044910459104691047910489104991050910519105291053910549105591056910579105891059910609106191062910639106491065910669106791068910699107091071910729107391074910759107691077910789107991080910819108291083910849108591086910879108891089910909109191092910939109491095910969109791098910999110091101911029110391104911059110691107911089110991110911119111291113911149111591116911179111891119911209112191122911239112491125911269112791128911299113091131911329113391134911359113691137911389113991140911419114291143911449114591146911479114891149911509115191152911539115491155911569115791158911599116091161911629116391164911659116691167911689116991170911719117291173911749117591176911779117891179911809118191182911839118491185911869118791188911899119091191911929119391194911959119691197911989119991200912019120291203912049120591206912079120891209912109121191212912139121491215912169121791218912199122091221912229122391224912259122691227912289122991230912319123291233912349123591236912379123891239912409124191242912439124491245912469124791248912499125091251912529125391254912559125691257912589125991260912619126291263912649126591266912679126891269912709127191272912739127491275912769127791278912799128091281912829128391284912859128691287912889128991290912919129291293912949129591296912979129891299913009130191302913039130491305913069130791308913099131091311913129131391314913159131691317913189131991320913219132291323913249132591326913279132891329913309133191332913339133491335913369133791338913399134091341913429134391344913459134691347913489134991350913519135291353913549135591356913579135891359913609136191362913639136491365913669136791368913699137091371913729137391374913759137691377913789137991380913819138291383913849138591386913879138891389913909139191392913939139491395913969139791398913999140091401914029140391404914059140691407914089140991410914119141291413914149141591416914179141891419914209142191422914239142491425914269142791428914299143091431914329143391434914359143691437914389143991440914419144291443914449144591446914479144891449914509145191452914539145491455914569145791458914599146091461914629146391464914659146691467914689146991470914719147291473914749147591476914779147891479914809148191482914839148491485914869148791488914899149091491914929149391494914959149691497914989149991500915019150291503915049150591506915079150891509915109151191512915139151491515915169151791518915199152091521915229152391524915259152691527915289152991530915319153291533915349153591536915379153891539915409154191542915439154491545915469154791548915499155091551915529155391554915559155691557915589155991560915619156291563915649156591566915679156891569915709157191572915739157491575915769157791578915799158091581915829158391584915859158691587915889158991590915919159291593915949159591596915979159891599916009160191602916039160491605916069160791608916099161091611916129161391614916159161691617916189161991620916219162291623916249162591626916279162891629916309163191632916339163491635916369163791638916399164091641916429164391644916459164691647916489164991650916519165291653916549165591656916579165891659916609166191662916639166491665916669166791668916699167091671916729167391674916759167691677916789167991680916819168291683916849168591686916879168891689916909169191692916939169491695916969169791698916999170091701917029170391704917059170691707917089170991710917119171291713917149171591716917179171891719917209172191722917239172491725917269172791728917299173091731917329173391734917359173691737917389173991740917419174291743917449174591746917479174891749917509175191752917539175491755917569175791758917599176091761917629176391764917659176691767917689176991770917719177291773917749177591776917779177891779917809178191782917839178491785917869178791788917899179091791917929179391794917959179691797917989179991800918019180291803918049180591806918079180891809918109181191812918139181491815918169181791818918199182091821918229182391824918259182691827918289182991830918319183291833918349183591836918379183891839918409184191842918439184491845918469184791848918499185091851918529185391854918559185691857918589185991860918619186291863918649186591866918679186891869918709187191872918739187491875918769187791878918799188091881918829188391884918859188691887918889188991890918919189291893918949189591896918979189891899919009190191902919039190491905919069190791908919099191091911919129191391914919159191691917919189191991920919219192291923919249192591926919279192891929919309193191932919339193491935919369193791938919399194091941919429194391944919459194691947919489194991950919519195291953919549195591956919579195891959919609196191962919639196491965919669196791968919699197091971919729197391974919759197691977919789197991980919819198291983919849198591986919879198891989919909199191992919939199491995919969199791998919999200092001920029200392004920059200692007920089200992010920119201292013920149201592016920179201892019920209202192022920239202492025920269202792028920299203092031920329203392034920359203692037920389203992040920419204292043920449204592046920479204892049920509205192052920539205492055920569205792058920599206092061920629206392064920659206692067920689206992070920719207292073920749207592076920779207892079920809208192082920839208492085920869208792088920899209092091920929209392094920959209692097920989209992100921019210292103921049210592106921079210892109921109211192112921139211492115921169211792118921199212092121921229212392124921259212692127921289212992130921319213292133921349213592136921379213892139921409214192142921439214492145921469214792148921499215092151921529215392154921559215692157921589215992160921619216292163921649216592166921679216892169921709217192172921739217492175921769217792178921799218092181921829218392184921859218692187921889218992190921919219292193921949219592196921979219892199922009220192202922039220492205922069220792208922099221092211922129221392214922159221692217922189221992220922219222292223922249222592226922279222892229922309223192232922339223492235922369223792238922399224092241922429224392244922459224692247922489224992250922519225292253922549225592256922579225892259922609226192262922639226492265922669226792268922699227092271922729227392274922759227692277922789227992280922819228292283922849228592286922879228892289922909229192292922939229492295922969229792298922999230092301923029230392304923059230692307923089230992310923119231292313923149231592316923179231892319923209232192322923239232492325923269232792328923299233092331923329233392334923359233692337923389233992340923419234292343923449234592346923479234892349923509235192352923539235492355923569235792358923599236092361923629236392364923659236692367923689236992370923719237292373923749237592376923779237892379923809238192382923839238492385923869238792388923899239092391923929239392394923959239692397923989239992400924019240292403924049240592406924079240892409924109241192412924139241492415924169241792418924199242092421924229242392424924259242692427924289242992430924319243292433924349243592436924379243892439924409244192442924439244492445924469244792448924499245092451924529245392454924559245692457924589245992460924619246292463924649246592466924679246892469924709247192472924739247492475924769247792478924799248092481924829248392484924859248692487924889248992490924919249292493924949249592496924979249892499925009250192502925039250492505925069250792508925099251092511925129251392514925159251692517925189251992520925219252292523925249252592526925279252892529925309253192532925339253492535925369253792538925399254092541925429254392544925459254692547925489254992550925519255292553925549255592556925579255892559925609256192562925639256492565925669256792568925699257092571925729257392574925759257692577925789257992580925819258292583925849258592586925879258892589925909259192592925939259492595925969259792598925999260092601926029260392604926059260692607926089260992610926119261292613926149261592616926179261892619926209262192622926239262492625926269262792628926299263092631926329263392634926359263692637926389263992640926419264292643926449264592646926479264892649926509265192652926539265492655926569265792658926599266092661926629266392664926659266692667926689266992670926719267292673926749267592676926779267892679926809268192682926839268492685926869268792688926899269092691926929269392694926959269692697926989269992700927019270292703927049270592706927079270892709927109271192712927139271492715927169271792718927199272092721927229272392724927259272692727927289272992730927319273292733927349273592736927379273892739927409274192742927439274492745927469274792748927499275092751927529275392754927559275692757927589275992760927619276292763927649276592766927679276892769927709277192772927739277492775927769277792778927799278092781927829278392784927859278692787927889278992790927919279292793927949279592796927979279892799928009280192802928039280492805928069280792808928099281092811928129281392814928159281692817928189281992820928219282292823928249282592826928279282892829928309283192832928339283492835928369283792838928399284092841928429284392844928459284692847928489284992850928519285292853928549285592856928579285892859928609286192862928639286492865928669286792868928699287092871928729287392874928759287692877928789287992880928819288292883928849288592886928879288892889928909289192892928939289492895928969289792898928999290092901929029290392904929059290692907929089290992910929119291292913929149291592916929179291892919929209292192922929239292492925929269292792928929299293092931929329293392934929359293692937929389293992940929419294292943929449294592946929479294892949929509295192952929539295492955929569295792958929599296092961929629296392964929659296692967929689296992970929719297292973929749297592976929779297892979929809298192982929839298492985929869298792988929899299092991929929299392994929959299692997929989299993000930019300293003930049300593006930079300893009930109301193012930139301493015930169301793018930199302093021930229302393024930259302693027930289302993030930319303293033930349303593036930379303893039930409304193042930439304493045930469304793048930499305093051930529305393054930559305693057930589305993060930619306293063930649306593066930679306893069930709307193072930739307493075930769307793078930799308093081930829308393084930859308693087930889308993090930919309293093930949309593096930979309893099931009310193102931039310493105931069310793108931099311093111931129311393114931159311693117931189311993120931219312293123931249312593126931279312893129931309313193132931339313493135931369313793138931399314093141931429314393144931459314693147931489314993150931519315293153931549315593156931579315893159931609316193162931639316493165931669316793168931699317093171931729317393174931759317693177931789317993180931819318293183931849318593186931879318893189931909319193192931939319493195931969319793198931999320093201932029320393204932059320693207932089320993210932119321293213932149321593216932179321893219932209322193222932239322493225932269322793228932299323093231932329323393234932359323693237932389323993240932419324293243932449324593246932479324893249932509325193252932539325493255932569325793258932599326093261932629326393264932659326693267932689326993270932719327293273932749327593276932779327893279932809328193282932839328493285932869328793288932899329093291932929329393294932959329693297932989329993300933019330293303933049330593306933079330893309933109331193312933139331493315933169331793318933199332093321933229332393324933259332693327933289332993330933319333293333933349333593336933379333893339933409334193342933439334493345933469334793348933499335093351933529335393354933559335693357933589335993360933619336293363933649336593366933679336893369933709337193372933739337493375933769337793378933799338093381933829338393384933859338693387933889338993390933919339293393933949339593396933979339893399934009340193402934039340493405934069340793408934099341093411934129341393414934159341693417934189341993420934219342293423934249342593426934279342893429934309343193432934339343493435934369343793438934399344093441934429344393444934459344693447934489344993450934519345293453934549345593456934579345893459934609346193462934639346493465934669346793468934699347093471934729347393474934759347693477934789347993480934819348293483934849348593486934879348893489934909349193492934939349493495934969349793498934999350093501935029350393504935059350693507935089350993510935119351293513935149351593516935179351893519935209352193522935239352493525935269352793528935299353093531935329353393534935359353693537935389353993540935419354293543935449354593546935479354893549935509355193552935539355493555935569355793558935599356093561935629356393564935659356693567935689356993570935719357293573935749357593576935779357893579935809358193582935839358493585935869358793588935899359093591935929359393594935959359693597935989359993600936019360293603936049360593606936079360893609936109361193612936139361493615936169361793618936199362093621936229362393624936259362693627936289362993630936319363293633936349363593636936379363893639936409364193642936439364493645936469364793648936499365093651936529365393654936559365693657936589365993660936619366293663936649366593666936679366893669936709367193672936739367493675936769367793678936799368093681936829368393684936859368693687936889368993690936919369293693936949369593696936979369893699937009370193702937039370493705937069370793708937099371093711937129371393714937159371693717937189371993720937219372293723937249372593726937279372893729937309373193732937339373493735937369373793738937399374093741937429374393744937459374693747937489374993750937519375293753937549375593756937579375893759937609376193762937639376493765937669376793768937699377093771937729377393774937759377693777937789377993780937819378293783937849378593786937879378893789937909379193792937939379493795937969379793798937999380093801938029380393804938059380693807938089380993810938119381293813938149381593816938179381893819938209382193822938239382493825938269382793828938299383093831938329383393834938359383693837938389383993840938419384293843938449384593846938479384893849938509385193852938539385493855938569385793858938599386093861938629386393864938659386693867938689386993870938719387293873938749387593876938779387893879938809388193882938839388493885938869388793888938899389093891938929389393894938959389693897938989389993900939019390293903939049390593906939079390893909939109391193912939139391493915939169391793918939199392093921939229392393924939259392693927939289392993930939319393293933939349393593936939379393893939939409394193942939439394493945939469394793948939499395093951939529395393954939559395693957939589395993960939619396293963939649396593966939679396893969939709397193972939739397493975939769397793978939799398093981939829398393984939859398693987939889398993990939919399293993939949399593996939979399893999940009400194002940039400494005940069400794008940099401094011940129401394014940159401694017940189401994020940219402294023940249402594026940279402894029940309403194032940339403494035940369403794038940399404094041940429404394044940459404694047940489404994050940519405294053940549405594056940579405894059940609406194062940639406494065940669406794068940699407094071940729407394074940759407694077940789407994080940819408294083940849408594086940879408894089940909409194092940939409494095940969409794098940999410094101941029410394104941059410694107941089410994110941119411294113941149411594116941179411894119941209412194122941239412494125941269412794128941299413094131941329413394134941359413694137941389413994140941419414294143941449414594146941479414894149941509415194152941539415494155941569415794158941599416094161941629416394164941659416694167941689416994170941719417294173941749417594176941779417894179941809418194182941839418494185941869418794188941899419094191941929419394194941959419694197941989419994200942019420294203942049420594206942079420894209942109421194212942139421494215942169421794218942199422094221942229422394224942259422694227942289422994230942319423294233942349423594236942379423894239942409424194242942439424494245942469424794248942499425094251942529425394254942559425694257942589425994260942619426294263942649426594266942679426894269942709427194272942739427494275942769427794278942799428094281942829428394284942859428694287942889428994290942919429294293942949429594296942979429894299943009430194302943039430494305943069430794308943099431094311943129431394314943159431694317943189431994320943219432294323943249432594326943279432894329943309433194332943339433494335943369433794338943399434094341943429434394344943459434694347943489434994350943519435294353943549435594356943579435894359943609436194362943639436494365943669436794368943699437094371943729437394374943759437694377943789437994380943819438294383943849438594386943879438894389943909439194392943939439494395943969439794398943999440094401944029440394404944059440694407944089440994410944119441294413944149441594416944179441894419944209442194422944239442494425944269442794428944299443094431944329443394434944359443694437944389443994440944419444294443944449444594446944479444894449944509445194452944539445494455944569445794458944599446094461944629446394464944659446694467944689446994470944719447294473944749447594476944779447894479944809448194482944839448494485944869448794488944899449094491944929449394494944959449694497944989449994500945019450294503945049450594506945079450894509945109451194512945139451494515945169451794518945199452094521945229452394524945259452694527945289452994530945319453294533945349453594536945379453894539945409454194542945439454494545945469454794548945499455094551945529455394554945559455694557945589455994560945619456294563945649456594566945679456894569945709457194572945739457494575945769457794578945799458094581945829458394584945859458694587945889458994590945919459294593945949459594596945979459894599946009460194602946039460494605946069460794608946099461094611946129461394614946159461694617946189461994620946219462294623946249462594626946279462894629946309463194632946339463494635946369463794638946399464094641946429464394644946459464694647946489464994650946519465294653946549465594656946579465894659946609466194662946639466494665946669466794668946699467094671946729467394674946759467694677946789467994680946819468294683946849468594686946879468894689946909469194692946939469494695946969469794698946999470094701947029470394704947059470694707947089470994710947119471294713947149471594716947179471894719947209472194722947239472494725947269472794728947299473094731947329473394734947359473694737947389473994740947419474294743947449474594746947479474894749947509475194752947539475494755947569475794758947599476094761947629476394764947659476694767947689476994770947719477294773947749477594776947779477894779947809478194782947839478494785947869478794788947899479094791947929479394794947959479694797947989479994800948019480294803948049480594806948079480894809948109481194812948139481494815948169481794818948199482094821948229482394824948259482694827948289482994830948319483294833948349483594836948379483894839948409484194842948439484494845948469484794848948499485094851948529485394854948559485694857948589485994860948619486294863948649486594866948679486894869948709487194872948739487494875948769487794878948799488094881948829488394884948859488694887948889488994890948919489294893948949489594896948979489894899949009490194902949039490494905949069490794908949099491094911949129491394914949159491694917949189491994920949219492294923949249492594926949279492894929949309493194932949339493494935949369493794938949399494094941949429494394944949459494694947949489494994950949519495294953949549495594956949579495894959949609496194962949639496494965949669496794968949699497094971949729497394974949759497694977949789497994980949819498294983949849498594986949879498894989949909499194992949939499494995949969499794998949999500095001950029500395004950059500695007950089500995010950119501295013950149501595016950179501895019950209502195022950239502495025950269502795028950299503095031950329503395034950359503695037950389503995040950419504295043950449504595046950479504895049950509505195052950539505495055950569505795058950599506095061950629506395064950659506695067950689506995070950719507295073950749507595076950779507895079950809508195082950839508495085950869508795088950899509095091950929509395094950959509695097950989509995100951019510295103951049510595106951079510895109951109511195112951139511495115951169511795118951199512095121951229512395124951259512695127951289512995130951319513295133951349513595136951379513895139951409514195142951439514495145951469514795148951499515095151951529515395154951559515695157951589515995160951619516295163951649516595166951679516895169951709517195172951739517495175951769517795178951799518095181951829518395184951859518695187951889518995190951919519295193951949519595196951979519895199952009520195202952039520495205952069520795208952099521095211952129521395214952159521695217952189521995220952219522295223952249522595226952279522895229952309523195232952339523495235952369523795238952399524095241952429524395244952459524695247952489524995250952519525295253952549525595256952579525895259952609526195262952639526495265952669526795268952699527095271952729527395274952759527695277952789527995280952819528295283952849528595286952879528895289952909529195292952939529495295952969529795298952999530095301953029530395304953059530695307953089530995310953119531295313953149531595316953179531895319953209532195322953239532495325953269532795328953299533095331953329533395334953359533695337953389533995340953419534295343953449534595346953479534895349953509535195352953539535495355953569535795358953599536095361953629536395364953659536695367953689536995370953719537295373953749537595376953779537895379953809538195382953839538495385953869538795388953899539095391953929539395394953959539695397953989539995400954019540295403954049540595406954079540895409954109541195412954139541495415954169541795418954199542095421954229542395424954259542695427954289542995430954319543295433954349543595436954379543895439954409544195442954439544495445954469544795448954499545095451954529545395454954559545695457954589545995460954619546295463954649546595466954679546895469954709547195472954739547495475954769547795478954799548095481954829548395484954859548695487954889548995490954919549295493954949549595496954979549895499955009550195502955039550495505955069550795508955099551095511955129551395514955159551695517955189551995520955219552295523955249552595526955279552895529955309553195532955339553495535955369553795538955399554095541955429554395544955459554695547955489554995550955519555295553955549555595556955579555895559955609556195562955639556495565955669556795568955699557095571955729557395574955759557695577955789557995580955819558295583955849558595586955879558895589955909559195592955939559495595955969559795598955999560095601956029560395604956059560695607956089560995610956119561295613956149561595616956179561895619956209562195622956239562495625956269562795628956299563095631956329563395634956359563695637956389563995640956419564295643956449564595646956479564895649956509565195652956539565495655956569565795658956599566095661956629566395664956659566695667956689566995670956719567295673956749567595676956779567895679956809568195682956839568495685956869568795688956899569095691956929569395694956959569695697956989569995700957019570295703957049570595706957079570895709957109571195712957139571495715957169571795718957199572095721957229572395724957259572695727957289572995730957319573295733957349573595736957379573895739957409574195742957439574495745957469574795748957499575095751957529575395754957559575695757957589575995760957619576295763957649576595766957679576895769957709577195772957739577495775957769577795778957799578095781957829578395784957859578695787957889578995790957919579295793957949579595796957979579895799958009580195802958039580495805958069580795808958099581095811958129581395814958159581695817958189581995820958219582295823958249582595826958279582895829958309583195832958339583495835958369583795838958399584095841958429584395844958459584695847958489584995850958519585295853958549585595856958579585895859958609586195862958639586495865958669586795868958699587095871958729587395874958759587695877958789587995880958819588295883958849588595886958879588895889958909589195892958939589495895958969589795898958999590095901959029590395904959059590695907959089590995910959119591295913959149591595916959179591895919959209592195922959239592495925959269592795928959299593095931959329593395934959359593695937959389593995940959419594295943959449594595946959479594895949959509595195952959539595495955959569595795958959599596095961959629596395964959659596695967959689596995970959719597295973959749597595976959779597895979959809598195982959839598495985959869598795988959899599095991959929599395994959959599695997959989599996000960019600296003960049600596006960079600896009960109601196012960139601496015960169601796018960199602096021960229602396024960259602696027960289602996030960319603296033960349603596036960379603896039960409604196042960439604496045960469604796048960499605096051960529605396054960559605696057960589605996060960619606296063960649606596066960679606896069960709607196072960739607496075960769607796078960799608096081960829608396084960859608696087960889608996090960919609296093960949609596096960979609896099961009610196102961039610496105961069610796108961099611096111961129611396114961159611696117961189611996120961219612296123961249612596126961279612896129961309613196132961339613496135961369613796138961399614096141961429614396144961459614696147961489614996150961519615296153961549615596156961579615896159961609616196162961639616496165961669616796168961699617096171961729617396174961759617696177961789617996180961819618296183961849618596186961879618896189961909619196192961939619496195961969619796198961999620096201962029620396204962059620696207962089620996210962119621296213962149621596216962179621896219962209622196222962239622496225962269622796228962299623096231962329623396234962359623696237962389623996240962419624296243962449624596246962479624896249962509625196252962539625496255962569625796258962599626096261962629626396264962659626696267962689626996270962719627296273962749627596276962779627896279962809628196282962839628496285962869628796288962899629096291962929629396294962959629696297962989629996300963019630296303963049630596306963079630896309963109631196312963139631496315963169631796318963199632096321963229632396324963259632696327963289632996330963319633296333963349633596336963379633896339963409634196342963439634496345963469634796348963499635096351963529635396354963559635696357963589635996360963619636296363963649636596366963679636896369963709637196372963739637496375963769637796378963799638096381963829638396384963859638696387963889638996390963919639296393963949639596396963979639896399964009640196402964039640496405964069640796408964099641096411964129641396414964159641696417964189641996420964219642296423964249642596426964279642896429964309643196432964339643496435964369643796438964399644096441964429644396444964459644696447964489644996450964519645296453964549645596456964579645896459964609646196462964639646496465964669646796468964699647096471964729647396474964759647696477964789647996480964819648296483964849648596486964879648896489964909649196492964939649496495964969649796498964999650096501965029650396504965059650696507965089650996510965119651296513965149651596516965179651896519965209652196522965239652496525965269652796528965299653096531965329653396534965359653696537965389653996540965419654296543965449654596546965479654896549965509655196552965539655496555965569655796558965599656096561965629656396564965659656696567965689656996570965719657296573965749657596576965779657896579965809658196582965839658496585965869658796588965899659096591965929659396594965959659696597965989659996600966019660296603966049660596606966079660896609966109661196612966139661496615966169661796618966199662096621966229662396624966259662696627966289662996630966319663296633966349663596636966379663896639966409664196642966439664496645966469664796648966499665096651966529665396654966559665696657966589665996660966619666296663966649666596666966679666896669966709667196672966739667496675966769667796678966799668096681966829668396684966859668696687966889668996690966919669296693966949669596696966979669896699967009670196702967039670496705967069670796708967099671096711967129671396714967159671696717967189671996720967219672296723967249672596726967279672896729967309673196732967339673496735967369673796738967399674096741967429674396744967459674696747967489674996750967519675296753967549675596756967579675896759967609676196762967639676496765967669676796768967699677096771967729677396774967759677696777967789677996780967819678296783967849678596786967879678896789967909679196792967939679496795967969679796798967999680096801968029680396804968059680696807968089680996810968119681296813968149681596816968179681896819968209682196822968239682496825968269682796828968299683096831968329683396834968359683696837968389683996840968419684296843968449684596846968479684896849968509685196852968539685496855968569685796858968599686096861968629686396864968659686696867968689686996870968719687296873968749687596876968779687896879968809688196882968839688496885968869688796888968899689096891968929689396894968959689696897968989689996900969019690296903969049690596906969079690896909969109691196912969139691496915969169691796918969199692096921969229692396924969259692696927969289692996930969319693296933969349693596936969379693896939969409694196942969439694496945969469694796948969499695096951969529695396954969559695696957969589695996960969619696296963969649696596966969679696896969969709697196972969739697496975969769697796978969799698096981969829698396984969859698696987969889698996990969919699296993969949699596996969979699896999970009700197002970039700497005970069700797008970099701097011970129701397014970159701697017970189701997020970219702297023970249702597026970279702897029970309703197032970339703497035970369703797038970399704097041970429704397044970459704697047970489704997050970519705297053970549705597056970579705897059970609706197062970639706497065970669706797068970699707097071970729707397074970759707697077970789707997080970819708297083970849708597086970879708897089970909709197092970939709497095970969709797098970999710097101971029710397104971059710697107971089710997110971119711297113971149711597116971179711897119971209712197122971239712497125971269712797128971299713097131971329713397134971359713697137971389713997140971419714297143971449714597146971479714897149971509715197152971539715497155971569715797158971599716097161971629716397164971659716697167971689716997170971719717297173971749717597176971779717897179971809718197182971839718497185971869718797188971899719097191971929719397194971959719697197971989719997200972019720297203972049720597206972079720897209972109721197212972139721497215972169721797218972199722097221972229722397224972259722697227972289722997230972319723297233972349723597236972379723897239972409724197242972439724497245972469724797248972499725097251972529725397254972559725697257972589725997260972619726297263972649726597266972679726897269972709727197272972739727497275972769727797278972799728097281972829728397284972859728697287972889728997290972919729297293972949729597296972979729897299973009730197302973039730497305973069730797308973099731097311973129731397314973159731697317973189731997320973219732297323973249732597326973279732897329973309733197332973339733497335973369733797338973399734097341973429734397344973459734697347973489734997350973519735297353973549735597356973579735897359973609736197362973639736497365973669736797368973699737097371973729737397374973759737697377973789737997380973819738297383973849738597386973879738897389973909739197392973939739497395973969739797398973999740097401974029740397404974059740697407974089740997410974119741297413974149741597416974179741897419974209742197422974239742497425974269742797428974299743097431974329743397434974359743697437974389743997440974419744297443974449744597446974479744897449974509745197452974539745497455974569745797458974599746097461974629746397464974659746697467974689746997470974719747297473974749747597476974779747897479974809748197482974839748497485974869748797488974899749097491974929749397494974959749697497974989749997500975019750297503975049750597506975079750897509975109751197512975139751497515975169751797518975199752097521975229752397524975259752697527975289752997530975319753297533975349753597536975379753897539975409754197542975439754497545975469754797548975499755097551975529755397554975559755697557975589755997560975619756297563975649756597566975679756897569975709757197572975739757497575975769757797578975799758097581975829758397584975859758697587975889758997590975919759297593975949759597596975979759897599976009760197602976039760497605976069760797608976099761097611976129761397614976159761697617976189761997620976219762297623976249762597626976279762897629976309763197632976339763497635976369763797638976399764097641976429764397644976459764697647976489764997650976519765297653976549765597656976579765897659976609766197662976639766497665976669766797668976699767097671976729767397674976759767697677976789767997680976819768297683976849768597686976879768897689976909769197692976939769497695976969769797698976999770097701977029770397704977059770697707977089770997710977119771297713977149771597716977179771897719977209772197722977239772497725977269772797728977299773097731977329773397734977359773697737977389773997740977419774297743977449774597746977479774897749977509775197752977539775497755977569775797758977599776097761977629776397764977659776697767977689776997770977719777297773977749777597776977779777897779977809778197782977839778497785977869778797788977899779097791977929779397794977959779697797977989779997800978019780297803978049780597806978079780897809978109781197812978139781497815978169781797818978199782097821978229782397824978259782697827978289782997830978319783297833978349783597836978379783897839978409784197842978439784497845978469784797848978499785097851978529785397854978559785697857978589785997860978619786297863978649786597866978679786897869978709787197872978739787497875978769787797878978799788097881978829788397884978859788697887978889788997890978919789297893978949789597896978979789897899979009790197902979039790497905979069790797908979099791097911979129791397914979159791697917979189791997920979219792297923979249792597926979279792897929979309793197932979339793497935979369793797938979399794097941979429794397944979459794697947979489794997950979519795297953979549795597956979579795897959979609796197962979639796497965979669796797968979699797097971979729797397974979759797697977979789797997980979819798297983979849798597986979879798897989979909799197992979939799497995979969799797998979999800098001980029800398004980059800698007980089800998010980119801298013980149801598016980179801898019980209802198022980239802498025980269802798028980299803098031980329803398034980359803698037980389803998040980419804298043980449804598046980479804898049980509805198052980539805498055980569805798058980599806098061980629806398064980659806698067980689806998070980719807298073980749807598076980779807898079980809808198082980839808498085980869808798088980899809098091980929809398094980959809698097980989809998100981019810298103981049810598106981079810898109981109811198112981139811498115981169811798118981199812098121981229812398124981259812698127981289812998130981319813298133981349813598136981379813898139981409814198142981439814498145981469814798148981499815098151981529815398154981559815698157981589815998160981619816298163981649816598166981679816898169981709817198172981739817498175981769817798178981799818098181981829818398184981859818698187981889818998190981919819298193981949819598196981979819898199982009820198202982039820498205982069820798208982099821098211982129821398214982159821698217982189821998220982219822298223982249822598226982279822898229982309823198232982339823498235982369823798238982399824098241982429824398244982459824698247982489824998250982519825298253982549825598256982579825898259982609826198262982639826498265982669826798268982699827098271982729827398274982759827698277982789827998280982819828298283982849828598286982879828898289982909829198292982939829498295982969829798298982999830098301983029830398304983059830698307983089830998310983119831298313983149831598316983179831898319983209832198322983239832498325983269832798328983299833098331983329833398334983359833698337983389833998340983419834298343983449834598346983479834898349983509835198352983539835498355983569835798358983599836098361983629836398364983659836698367983689836998370983719837298373983749837598376983779837898379983809838198382983839838498385983869838798388983899839098391983929839398394983959839698397983989839998400984019840298403984049840598406984079840898409984109841198412984139841498415984169841798418984199842098421984229842398424984259842698427984289842998430984319843298433984349843598436984379843898439984409844198442984439844498445984469844798448984499845098451984529845398454984559845698457984589845998460984619846298463984649846598466984679846898469984709847198472984739847498475984769847798478984799848098481984829848398484984859848698487984889848998490984919849298493984949849598496984979849898499985009850198502985039850498505985069850798508985099851098511985129851398514985159851698517985189851998520985219852298523985249852598526985279852898529985309853198532985339853498535985369853798538985399854098541985429854398544985459854698547985489854998550985519855298553985549855598556985579855898559985609856198562985639856498565985669856798568985699857098571985729857398574985759857698577985789857998580985819858298583985849858598586985879858898589985909859198592985939859498595985969859798598985999860098601986029860398604986059860698607986089860998610986119861298613986149861598616986179861898619986209862198622986239862498625986269862798628986299863098631986329863398634986359863698637986389863998640986419864298643986449864598646986479864898649986509865198652986539865498655986569865798658986599866098661986629866398664986659866698667986689866998670986719867298673986749867598676986779867898679986809868198682986839868498685986869868798688986899869098691986929869398694986959869698697986989869998700987019870298703987049870598706987079870898709987109871198712987139871498715987169871798718987199872098721987229872398724987259872698727987289872998730987319873298733987349873598736987379873898739987409874198742987439874498745987469874798748987499875098751987529875398754987559875698757987589875998760987619876298763987649876598766987679876898769987709877198772987739877498775987769877798778987799878098781987829878398784987859878698787987889878998790987919879298793987949879598796987979879898799988009880198802988039880498805988069880798808988099881098811988129881398814988159881698817988189881998820988219882298823988249882598826988279882898829988309883198832988339883498835988369883798838988399884098841988429884398844988459884698847988489884998850988519885298853988549885598856988579885898859988609886198862988639886498865988669886798868988699887098871988729887398874988759887698877988789887998880988819888298883988849888598886988879888898889988909889198892988939889498895988969889798898988999890098901989029890398904989059890698907989089890998910989119891298913989149891598916989179891898919989209892198922989239892498925989269892798928989299893098931989329893398934989359893698937989389893998940989419894298943989449894598946989479894898949989509895198952989539895498955989569895798958989599896098961989629896398964989659896698967989689896998970989719897298973989749897598976989779897898979989809898198982989839898498985989869898798988989899899098991989929899398994989959899698997989989899999000990019900299003990049900599006990079900899009990109901199012990139901499015990169901799018990199902099021990229902399024990259902699027990289902999030990319903299033990349903599036990379903899039990409904199042990439904499045990469904799048990499905099051990529905399054990559905699057990589905999060990619906299063990649906599066990679906899069990709907199072990739907499075990769907799078990799908099081990829908399084990859908699087990889908999090990919909299093990949909599096990979909899099991009910199102991039910499105991069910799108991099911099111991129911399114991159911699117991189911999120991219912299123991249912599126991279912899129991309913199132991339913499135991369913799138991399914099141991429914399144991459914699147991489914999150991519915299153991549915599156991579915899159991609916199162991639916499165991669916799168991699917099171991729917399174991759917699177991789917999180991819918299183991849918599186991879918899189991909919199192991939919499195991969919799198991999920099201992029920399204992059920699207992089920999210992119921299213992149921599216992179921899219992209922199222992239922499225992269922799228992299923099231992329923399234992359923699237992389923999240992419924299243992449924599246992479924899249992509925199252992539925499255992569925799258992599926099261992629926399264992659926699267992689926999270992719927299273992749927599276992779927899279992809928199282992839928499285992869928799288992899929099291992929929399294992959929699297992989929999300993019930299303993049930599306993079930899309993109931199312993139931499315993169931799318993199932099321993229932399324993259932699327993289932999330993319933299333993349933599336993379933899339993409934199342993439934499345993469934799348993499935099351993529935399354993559935699357993589935999360993619936299363993649936599366993679936899369993709937199372993739937499375993769937799378993799938099381993829938399384993859938699387993889938999390993919939299393993949939599396993979939899399994009940199402994039940499405994069940799408994099941099411994129941399414994159941699417994189941999420994219942299423994249942599426994279942899429994309943199432994339943499435994369943799438994399944099441994429944399444994459944699447994489944999450994519945299453994549945599456994579945899459994609946199462994639946499465994669946799468994699947099471994729947399474994759947699477994789947999480994819948299483994849948599486994879948899489994909949199492994939949499495994969949799498994999950099501995029950399504995059950699507995089950999510995119951299513995149951599516995179951899519995209952199522995239952499525995269952799528995299953099531995329953399534995359953699537995389953999540995419954299543995449954599546995479954899549995509955199552995539955499555995569955799558995599956099561995629956399564995659956699567995689956999570995719957299573995749957599576995779957899579995809958199582995839958499585995869958799588995899959099591995929959399594995959959699597995989959999600996019960299603996049960599606996079960899609996109961199612996139961499615996169961799618996199962099621996229962399624996259962699627996289962999630996319963299633996349963599636996379963899639996409964199642996439964499645996469964799648996499965099651996529965399654996559965699657996589965999660996619966299663996649966599666996679966899669996709967199672996739967499675996769967799678996799968099681996829968399684996859968699687996889968999690996919969299693996949969599696996979969899699997009970199702997039970499705997069970799708997099971099711997129971399714997159971699717997189971999720997219972299723997249972599726997279972899729997309973199732997339973499735997369973799738997399974099741997429974399744997459974699747997489974999750997519975299753997549975599756997579975899759997609976199762997639976499765997669976799768997699977099771997729977399774997759977699777997789977999780997819978299783997849978599786997879978899789997909979199792997939979499795997969979799798997999980099801998029980399804998059980699807998089980999810998119981299813998149981599816998179981899819998209982199822998239982499825998269982799828998299983099831998329983399834998359983699837998389983999840998419984299843998449984599846998479984899849998509985199852998539985499855998569985799858998599986099861998629986399864998659986699867998689986999870998719987299873998749987599876998779987899879998809988199882998839988499885998869988799888998899989099891998929989399894998959989699897998989989999900999019990299903999049990599906999079990899909999109991199912999139991499915999169991799918999199992099921999229992399924999259992699927999289992999930999319993299933999349993599936999379993899939999409994199942999439994499945999469994799948999499995099951999529995399954999559995699957999589995999960999619996299963999649996599966999679996899969999709997199972999739997499975999769997799978999799998099981999829998399984999859998699987999889998999990999919999299993999949999599996999979999899999100000100001100002100003100004100005100006100007100008100009100010100011100012100013100014100015100016100017100018100019100020100021100022100023100024100025100026100027100028100029100030100031100032100033100034100035100036100037100038100039100040100041100042100043100044100045100046100047100048100049100050100051100052100053100054100055100056100057100058100059100060100061100062100063100064100065100066100067100068100069100070100071100072100073100074100075100076100077100078100079100080100081100082100083100084100085100086100087100088100089100090100091100092100093100094100095100096100097100098100099100100100101100102100103100104100105100106100107100108100109100110100111100112100113100114100115100116100117100118100119100120100121100122100123100124100125100126100127100128100129100130100131100132100133100134100135100136100137100138100139100140100141100142100143100144100145100146100147100148100149100150100151100152100153100154100155100156100157100158100159100160100161100162100163100164100165100166100167100168100169100170100171100172100173100174100175100176100177100178100179100180100181100182100183100184100185100186100187100188100189100190100191100192100193100194100195100196100197100198100199100200100201100202100203100204100205100206100207100208100209100210100211100212100213100214100215100216100217100218100219100220100221100222100223100224100225100226100227100228100229100230100231100232100233100234100235100236100237100238100239100240100241100242100243100244100245100246100247100248100249100250100251100252100253100254100255100256100257100258100259100260100261100262100263100264100265100266100267100268100269100270100271100272100273100274100275100276100277100278100279100280100281100282100283100284100285100286100287100288100289100290100291100292100293100294100295100296100297100298100299100300100301100302100303100304100305100306100307100308100309100310100311100312100313100314100315100316100317100318100319100320100321100322100323100324100325100326100327100328100329100330100331100332100333100334100335100336100337100338100339100340100341100342100343100344100345100346100347100348100349100350100351100352100353100354100355100356100357100358100359100360100361100362100363100364100365100366100367100368100369100370100371100372100373100374100375100376100377100378100379100380100381100382100383100384100385100386100387100388100389100390100391100392100393100394100395100396100397100398100399100400100401100402100403100404100405100406100407100408100409100410100411100412100413100414100415100416100417100418100419100420100421100422100423100424100425100426100427100428100429100430100431100432100433100434100435100436100437100438100439100440100441100442100443100444100445100446100447100448100449100450100451100452100453100454100455100456100457100458100459100460100461100462100463100464100465100466100467100468100469100470100471100472100473100474100475100476100477100478100479100480100481100482100483100484100485100486100487100488100489100490100491100492100493100494100495100496100497100498100499100500100501100502100503100504100505100506100507100508100509100510100511100512100513100514100515100516100517100518100519100520100521100522100523100524100525100526100527100528100529100530100531100532100533100534100535100536100537100538100539100540100541100542100543100544100545100546100547100548100549100550100551100552100553100554100555100556100557100558100559100560100561100562100563100564100565100566100567100568100569100570100571100572100573100574100575100576100577100578100579100580100581100582100583100584100585100586100587100588100589100590100591100592100593100594100595100596100597100598100599100600100601100602100603100604100605100606100607100608100609100610100611100612100613100614100615100616100617100618100619100620100621100622100623100624100625100626100627100628100629100630100631100632100633100634100635100636100637100638100639100640100641100642100643100644100645100646100647100648100649100650100651100652100653100654100655100656100657100658100659100660100661100662100663100664100665100666100667100668100669100670100671100672100673100674100675100676100677100678100679100680100681100682100683100684100685100686100687100688100689100690100691100692100693100694100695100696100697100698100699100700100701100702100703100704100705100706100707100708100709100710100711100712100713100714100715100716100717100718100719100720100721100722100723100724100725100726100727100728100729100730100731100732100733100734100735100736100737100738100739100740100741100742100743100744100745100746100747100748100749100750100751100752100753100754100755100756100757100758100759100760100761100762100763100764100765100766100767100768100769100770100771100772100773100774100775100776100777100778100779100780100781100782100783100784100785100786100787100788100789100790100791100792100793100794100795100796100797100798100799100800100801100802100803100804100805100806100807100808100809100810100811100812100813100814100815100816100817100818100819100820100821100822100823100824100825100826100827100828100829100830100831100832100833100834100835100836100837100838100839100840100841100842100843100844100845100846100847100848100849100850100851100852100853100854100855100856100857100858100859100860100861100862100863100864100865100866100867100868100869100870100871100872100873100874100875100876100877100878100879100880100881100882100883100884100885100886100887100888100889100890100891100892100893100894100895100896100897100898100899100900100901100902100903100904100905100906100907100908100909100910100911100912100913100914100915100916100917100918100919100920100921100922100923100924100925100926100927100928100929100930100931100932100933100934100935100936100937100938100939100940100941100942100943100944100945100946100947100948100949100950100951100952100953100954100955100956100957100958100959100960100961100962100963100964100965100966100967100968100969100970100971100972100973100974100975100976100977100978100979100980100981100982100983100984100985100986100987100988100989100990100991100992100993100994100995100996100997100998100999101000101001101002101003101004101005101006101007101008101009101010101011101012101013101014101015101016101017101018101019101020101021101022101023101024101025101026101027101028101029101030101031101032101033101034101035101036101037101038101039101040101041101042101043101044101045101046101047101048101049101050101051101052101053101054101055101056101057101058101059101060101061101062101063101064101065101066101067101068101069101070101071101072101073101074101075101076101077101078101079101080101081101082101083101084101085101086101087101088101089101090101091101092101093101094101095101096101097101098101099101100101101101102101103101104101105101106101107101108101109101110101111101112101113101114101115101116101117101118101119101120101121101122101123101124101125101126101127101128101129101130101131101132101133101134101135101136101137101138101139101140101141101142101143101144101145101146101147101148101149101150101151101152101153101154101155101156101157101158101159101160101161101162101163101164101165101166101167101168101169101170101171101172101173101174101175101176101177101178101179101180101181101182101183101184101185101186101187101188101189101190101191101192101193101194101195101196101197101198101199101200101201101202101203101204101205101206101207101208101209101210101211101212101213101214101215101216101217101218101219101220101221101222101223101224101225101226101227101228101229101230101231101232101233101234101235101236101237101238101239101240101241101242101243101244101245101246101247101248101249101250101251101252101253101254101255101256101257101258101259101260101261101262101263101264101265101266101267101268101269101270101271101272101273101274101275101276101277101278101279101280101281101282101283101284101285101286101287101288101289101290101291101292101293101294101295101296101297101298101299101300101301101302101303101304101305101306101307101308101309101310101311101312101313101314101315101316101317101318101319101320101321101322101323101324101325101326101327101328101329101330101331101332101333101334101335101336101337101338101339101340101341101342101343101344101345101346101347101348101349101350101351101352101353101354101355101356101357101358101359101360101361101362101363101364101365101366101367101368101369101370101371101372101373101374101375101376101377101378101379101380101381101382101383101384101385101386101387101388101389101390101391101392101393101394101395101396101397101398101399101400101401101402101403101404101405101406101407101408101409101410101411101412101413101414101415101416101417101418101419101420101421101422101423101424101425101426101427101428101429101430101431101432101433101434101435101436101437101438101439101440101441101442101443101444101445101446101447101448101449101450101451101452101453101454101455101456101457101458101459101460101461101462101463101464101465101466101467101468101469101470101471101472101473101474101475101476101477101478101479101480101481101482101483101484101485101486101487101488101489101490101491101492101493101494101495101496101497101498101499101500101501101502101503101504101505101506101507101508101509101510101511101512101513101514101515101516101517101518101519101520101521101522101523101524101525101526101527101528101529101530101531101532101533101534101535101536101537101538101539101540101541101542101543101544101545101546101547101548101549101550101551101552101553101554101555101556101557101558101559101560101561101562101563101564101565101566101567101568101569101570101571101572101573101574101575101576101577101578101579101580101581101582101583101584101585101586101587101588101589101590101591101592101593101594101595101596101597101598101599101600101601101602101603101604101605101606101607101608101609101610101611101612101613101614101615101616101617101618101619101620101621101622101623101624101625101626101627101628101629101630101631101632101633101634101635101636101637101638101639101640101641101642101643101644101645101646101647101648101649101650101651101652101653101654101655101656101657101658101659101660101661101662101663101664101665101666101667101668101669101670101671101672101673101674101675101676101677101678101679101680101681101682101683101684101685101686101687101688101689101690101691101692101693101694101695101696101697101698101699101700101701101702101703101704101705101706101707101708101709101710101711101712101713101714101715101716101717101718101719101720101721101722101723101724101725101726101727101728101729101730101731101732101733101734101735101736101737101738101739101740101741101742101743101744101745101746101747101748101749101750101751101752101753101754101755101756101757101758101759101760101761101762101763101764101765101766101767101768101769101770101771101772101773101774101775101776101777101778101779101780101781101782101783101784101785101786101787101788101789101790101791101792101793101794101795101796101797101798101799101800101801101802101803101804101805101806101807101808101809101810101811101812101813101814101815101816101817101818101819101820101821101822101823101824101825101826101827101828101829101830101831101832101833101834101835101836101837101838101839101840101841101842101843101844101845101846101847101848101849101850101851101852101853101854101855101856101857101858101859101860101861101862101863101864101865101866101867101868101869101870101871101872101873101874101875101876101877101878101879101880101881101882101883101884101885101886101887101888101889101890101891101892101893101894101895101896101897101898101899101900101901101902101903101904101905101906101907101908101909101910101911101912101913101914101915101916101917101918101919101920101921101922101923101924101925101926101927101928101929101930101931101932101933101934101935101936101937101938101939101940101941101942101943101944101945101946101947101948101949101950101951101952101953101954101955101956101957101958101959101960101961101962101963101964101965101966101967101968101969101970101971101972101973101974101975101976101977101978101979101980101981101982101983101984101985101986101987101988101989101990101991101992101993101994101995101996101997101998101999102000102001102002102003102004102005102006102007102008102009102010102011102012102013102014102015102016102017102018102019102020102021102022102023102024102025102026102027102028102029102030102031102032102033102034102035102036102037102038102039102040102041102042102043102044102045102046102047102048102049102050102051102052102053102054102055102056102057102058102059102060102061102062102063102064102065102066102067102068102069102070102071102072102073102074102075102076102077102078102079102080102081102082102083102084102085102086102087102088102089102090102091102092102093102094102095102096102097102098102099102100102101102102102103102104102105102106102107102108102109102110102111102112102113102114102115102116102117102118102119102120102121102122102123102124102125102126102127102128102129102130102131102132102133102134102135102136102137102138102139102140102141102142102143102144102145102146102147102148102149102150102151102152102153102154102155102156102157102158102159102160102161102162102163102164102165102166102167102168102169102170102171102172102173102174102175102176102177102178102179102180102181102182102183102184102185102186102187102188102189102190102191102192102193102194102195102196102197102198102199102200102201102202102203102204102205102206102207102208102209102210102211102212102213102214102215102216102217102218102219102220102221102222102223102224102225102226102227102228102229102230102231102232102233102234102235102236102237102238102239102240102241102242102243102244102245102246102247102248102249102250102251102252102253102254102255102256102257102258102259102260102261102262102263102264102265102266102267102268102269102270102271102272102273102274102275102276102277102278102279102280102281102282102283102284102285102286102287102288102289102290102291102292102293102294102295102296102297102298102299102300102301102302102303102304102305102306102307102308102309102310102311102312102313102314102315102316102317102318102319102320102321102322102323102324102325102326102327102328102329102330102331102332102333102334102335102336102337102338102339102340102341102342102343102344102345102346102347102348102349102350102351102352102353102354102355102356102357102358102359102360102361102362102363102364102365102366102367102368102369102370102371102372102373102374102375102376102377102378102379102380102381102382102383102384102385102386102387102388102389102390102391102392102393102394102395102396102397102398102399102400102401102402102403102404102405102406102407102408102409102410102411102412102413102414102415102416102417102418102419102420102421102422102423102424102425102426102427102428102429102430102431102432102433102434102435102436102437102438102439102440102441102442102443102444102445102446102447102448102449102450102451102452102453102454102455102456102457102458102459102460102461102462102463102464102465102466102467102468102469102470102471102472102473102474102475102476102477102478102479102480102481102482102483102484102485102486102487102488102489102490102491102492102493102494102495102496102497102498102499102500102501102502102503102504102505102506102507102508102509102510102511102512102513102514102515102516102517102518102519102520102521102522102523102524102525102526102527102528102529102530102531102532102533102534102535102536102537102538102539102540102541102542102543102544102545102546102547102548102549102550102551102552102553102554102555102556102557102558102559102560102561102562102563102564102565102566102567102568102569102570102571102572102573102574102575102576102577102578102579102580102581102582102583102584102585102586102587102588102589102590102591102592102593102594102595102596102597102598102599102600102601102602102603102604102605102606102607102608102609102610102611102612102613102614102615102616102617102618102619102620102621102622102623102624102625102626102627102628102629102630102631102632102633102634102635102636102637102638102639102640102641102642102643102644102645102646102647102648102649102650102651102652102653102654102655102656102657102658102659102660102661102662102663102664102665102666102667102668102669102670102671102672102673102674102675102676102677102678102679102680102681102682102683102684102685102686102687102688102689102690102691102692102693102694102695102696102697102698102699102700102701102702102703102704102705102706102707102708102709102710102711102712102713102714102715102716102717102718102719102720102721102722102723102724102725102726102727102728102729102730102731102732102733102734102735102736102737102738102739102740102741102742102743102744102745102746102747102748102749102750102751102752102753102754102755102756102757102758102759102760102761102762102763102764102765102766102767102768102769102770102771102772102773102774102775102776102777102778102779102780102781102782102783102784102785102786102787102788102789102790102791102792102793102794102795102796102797102798102799102800102801102802102803102804102805102806102807102808102809102810102811102812102813102814102815102816102817102818102819102820102821102822102823102824102825102826102827102828102829102830102831102832102833102834102835102836102837102838102839102840102841102842102843102844102845102846102847102848102849102850102851102852102853102854102855102856102857102858102859102860102861102862102863102864102865102866102867102868102869102870102871102872102873102874102875102876102877102878102879102880102881102882102883102884102885102886102887102888102889102890102891102892102893102894102895102896102897102898102899102900102901102902102903102904102905102906102907102908102909102910102911102912102913102914102915102916102917102918102919102920102921102922102923102924102925102926102927102928102929102930102931102932102933102934102935102936102937102938102939102940102941102942102943102944102945102946102947102948102949102950102951102952102953102954102955102956102957102958102959102960102961102962102963102964102965102966102967102968102969102970102971102972102973102974102975102976102977102978102979102980102981102982102983102984102985102986102987102988102989102990102991102992102993102994102995102996102997102998102999103000103001103002103003103004103005103006103007103008103009103010103011103012103013103014103015103016103017103018103019103020103021103022103023103024103025103026103027103028103029103030103031103032103033103034103035103036103037103038103039103040103041103042103043103044103045103046103047103048103049103050103051103052103053103054103055103056103057103058103059103060103061103062103063103064103065103066103067103068103069103070103071103072103073103074103075103076103077103078103079103080103081103082103083103084103085103086103087103088103089103090103091103092103093103094103095103096103097103098103099103100103101103102103103103104103105103106103107103108103109103110103111103112103113103114103115103116103117103118103119103120103121103122103123103124103125103126103127103128103129103130103131103132103133103134103135103136103137103138103139103140103141103142103143103144103145103146103147103148103149103150103151103152103153103154103155103156103157103158103159103160103161103162103163103164103165103166103167103168103169103170103171103172103173103174103175103176103177103178103179103180103181103182103183103184103185103186103187103188103189103190103191103192103193103194103195103196103197103198103199103200103201103202103203103204103205103206103207103208103209103210103211103212103213103214103215103216103217103218103219103220103221103222103223103224103225103226103227103228103229103230103231103232103233103234103235103236103237103238103239103240103241103242103243103244103245103246103247103248103249103250103251103252103253103254103255103256103257103258103259103260103261103262103263103264103265103266103267103268103269103270103271103272103273103274103275103276103277103278103279103280103281103282103283103284103285103286103287103288103289103290103291103292103293103294103295103296103297103298103299103300103301103302103303103304103305103306103307103308103309103310103311103312103313103314103315103316103317103318103319103320103321103322103323103324103325103326103327103328103329103330103331103332103333103334103335103336103337103338103339103340103341103342103343103344103345103346103347103348103349103350103351103352103353103354103355103356103357103358103359103360103361103362103363103364103365103366103367103368103369103370103371103372103373103374103375103376103377103378103379103380103381103382103383103384103385103386103387103388103389103390103391103392103393103394103395103396103397103398103399103400103401103402103403103404103405103406103407103408103409103410103411103412103413103414103415103416103417103418103419103420103421103422103423103424103425103426103427103428103429103430103431103432103433103434103435103436103437103438103439103440103441103442103443103444103445103446103447103448103449103450103451103452103453103454103455103456103457103458103459103460103461103462103463103464103465103466103467103468103469103470103471103472103473103474103475103476103477103478103479103480103481103482103483103484103485103486103487103488103489103490103491103492103493103494103495103496103497103498103499103500103501103502103503103504103505103506103507103508103509103510103511103512103513103514103515103516103517103518103519103520103521103522103523103524103525103526103527103528103529103530103531103532103533103534103535103536103537103538103539103540103541103542103543103544103545103546103547103548103549103550103551103552103553103554103555103556103557103558103559103560103561103562103563103564103565103566103567103568103569103570103571103572103573103574103575103576103577103578103579103580103581103582103583103584103585103586103587103588103589103590103591103592103593103594103595103596103597103598103599103600103601103602103603103604103605103606103607103608103609103610103611103612103613103614103615103616103617103618103619103620103621103622103623103624103625103626103627103628103629103630103631103632103633103634103635103636103637103638103639103640103641103642103643103644103645103646103647103648103649103650103651103652103653103654103655103656103657103658103659103660103661103662103663103664103665103666103667103668103669103670103671103672103673103674103675103676103677103678103679103680103681103682103683103684103685103686103687103688103689103690103691103692103693103694103695103696103697103698103699103700103701103702103703103704103705103706103707103708103709103710103711103712103713103714103715103716103717103718103719103720103721103722103723103724103725103726103727103728103729103730103731103732103733103734103735103736103737103738103739103740103741103742103743103744103745103746103747103748103749103750103751103752103753103754103755103756103757103758103759103760103761103762103763103764103765103766103767103768103769103770103771103772103773103774103775103776103777103778103779103780103781103782103783103784103785103786103787103788103789103790103791103792103793103794103795103796103797103798103799103800103801103802103803103804103805103806103807103808103809103810103811103812103813103814103815103816103817103818103819103820103821103822103823103824103825103826103827103828103829103830103831103832103833103834103835103836103837103838103839103840103841103842103843103844103845103846103847103848103849103850103851103852103853103854103855103856103857103858103859103860103861103862103863103864103865103866103867103868103869103870103871103872103873103874103875103876103877103878103879103880103881103882103883103884103885103886103887103888103889103890103891103892103893103894103895103896103897103898103899103900103901103902103903103904103905103906103907103908103909103910103911103912103913103914103915103916103917103918103919103920103921103922103923103924103925103926103927103928103929103930103931103932103933103934103935103936103937103938103939103940103941103942103943103944103945103946103947103948103949103950103951103952103953103954103955103956103957103958103959103960103961103962103963103964103965103966103967103968103969103970103971103972103973103974103975103976103977103978103979103980103981103982103983103984103985103986103987103988103989103990103991103992103993103994103995103996103997103998103999104000104001104002104003104004104005104006104007104008104009104010104011104012104013104014104015104016104017104018104019104020104021104022104023104024104025104026104027104028104029104030104031104032104033104034104035104036104037104038104039104040104041104042104043104044104045104046104047104048104049104050104051104052104053104054104055104056104057104058104059104060104061104062104063104064104065104066104067104068104069104070104071104072104073104074104075104076104077104078104079104080104081104082104083104084104085104086104087104088104089104090104091104092104093104094104095104096104097104098104099104100104101104102104103104104104105104106104107104108104109104110104111104112104113104114104115104116104117104118104119104120104121104122104123104124104125104126104127104128104129104130104131104132104133104134104135104136104137104138104139104140104141104142104143104144104145104146104147104148104149104150104151104152104153104154104155104156104157104158104159104160104161104162104163104164104165104166104167104168104169104170104171104172104173104174104175104176104177104178104179104180104181104182104183104184104185104186104187104188104189104190104191104192104193104194104195104196104197104198104199104200104201104202104203104204104205104206104207104208104209104210104211104212104213104214104215104216104217104218104219104220104221104222104223104224104225104226104227104228104229104230104231104232104233104234104235104236104237104238104239104240104241104242104243104244104245104246104247104248104249104250104251104252104253104254104255104256104257104258104259104260104261104262104263104264104265104266104267104268104269104270104271104272104273104274104275104276104277104278104279104280104281104282104283104284104285104286104287104288104289104290104291104292104293104294104295104296104297104298104299104300104301104302104303104304104305104306104307104308104309104310104311104312104313104314104315104316104317104318104319104320104321104322104323104324104325104326104327104328104329104330104331104332104333104334104335104336104337104338104339104340104341104342104343104344104345104346104347104348104349104350104351104352104353104354104355104356104357104358104359104360104361104362104363104364104365104366104367104368104369104370104371104372104373104374104375104376104377104378104379104380104381104382104383104384104385104386104387104388104389104390104391104392104393104394104395104396104397104398104399104400104401104402104403104404104405104406104407104408104409104410104411104412104413104414104415104416104417104418104419104420104421104422104423104424104425104426104427104428104429104430104431104432104433104434104435104436104437104438104439104440104441104442104443104444104445104446104447104448104449104450104451104452104453104454104455104456104457104458104459104460104461104462104463104464104465104466104467104468104469104470104471104472104473104474104475104476104477104478104479104480104481104482104483104484104485104486104487104488104489104490104491104492104493104494104495104496104497104498104499104500104501104502104503104504104505104506104507104508104509104510104511104512104513104514104515104516104517104518104519104520104521104522104523104524104525104526104527104528104529104530104531104532104533104534104535104536104537104538104539104540104541104542104543104544104545104546104547104548104549104550104551104552104553104554104555104556104557104558104559104560104561104562104563104564104565104566104567104568104569104570104571104572104573104574104575104576104577104578104579104580104581104582104583104584104585104586104587104588104589104590104591104592104593104594104595104596104597104598104599104600104601104602104603104604104605104606104607104608104609104610104611104612104613104614104615104616104617104618104619104620104621104622104623104624104625104626104627104628104629104630104631104632104633104634104635104636104637104638104639104640104641104642104643104644104645104646104647104648104649104650104651104652104653104654104655104656104657104658104659104660104661104662104663104664104665104666104667104668104669104670104671104672104673104674104675104676104677104678104679104680104681104682104683104684104685104686104687104688104689104690104691104692104693104694104695104696104697104698104699104700104701104702104703104704104705104706104707104708104709104710104711104712104713104714104715104716104717104718104719104720104721104722104723104724104725104726104727104728104729104730104731104732104733104734104735104736104737104738104739104740104741104742104743104744104745104746104747104748104749104750104751104752104753104754104755104756104757104758104759104760104761104762104763104764104765104766104767104768104769104770104771104772104773104774104775104776104777104778104779104780104781104782104783104784104785104786104787104788104789104790104791104792104793104794104795104796104797104798104799104800104801104802104803104804104805104806104807104808104809104810104811104812104813104814104815104816104817104818104819104820104821104822104823104824104825104826104827104828104829104830104831104832104833104834104835104836104837104838104839104840104841104842104843104844104845104846104847104848104849104850104851104852104853104854104855104856104857104858104859104860104861104862104863104864104865104866104867104868104869104870104871104872104873104874104875104876104877104878104879104880104881104882104883104884104885104886104887104888104889104890104891104892104893104894104895104896104897104898104899104900104901104902104903104904104905104906104907104908104909104910104911104912104913104914104915104916104917104918104919104920104921104922104923104924104925104926104927104928104929104930104931104932104933104934104935104936104937104938104939104940104941104942104943104944104945104946104947104948104949104950104951104952104953104954104955104956104957104958104959104960104961104962104963104964104965104966104967104968104969104970104971104972104973104974104975104976104977104978104979104980104981104982104983104984104985104986104987104988104989104990104991104992104993104994104995104996104997104998104999105000105001105002105003105004105005105006105007105008105009105010105011105012105013105014105015105016105017105018105019105020105021105022105023105024105025105026105027105028105029105030105031105032105033105034105035105036105037105038105039105040105041105042105043105044105045105046105047105048105049105050105051105052105053105054105055105056105057105058105059105060105061105062105063105064105065105066105067105068105069105070105071105072105073105074105075105076105077105078105079105080105081105082105083105084105085105086105087105088105089105090105091105092105093105094105095105096105097105098105099105100105101105102105103105104105105105106105107105108105109105110105111105112105113105114105115105116105117105118105119105120105121105122105123105124105125105126105127105128105129105130105131105132105133105134105135105136105137105138105139105140105141105142105143105144105145105146105147105148105149105150105151105152105153105154105155105156105157105158105159105160105161105162105163105164105165105166105167105168105169105170105171105172105173105174105175105176105177105178105179105180105181105182105183105184105185105186105187105188105189105190105191105192105193105194105195105196105197105198105199105200105201105202105203105204105205105206105207105208105209105210105211105212105213105214105215105216105217105218105219105220105221105222105223105224105225105226105227105228105229105230105231105232105233105234105235105236105237105238105239105240105241105242105243105244105245105246105247105248105249105250105251105252105253105254105255105256105257105258105259105260105261105262105263105264105265105266105267105268105269105270105271105272105273105274105275105276105277105278105279105280105281105282105283105284105285105286105287105288105289105290105291105292105293105294105295105296105297105298105299105300105301105302105303105304105305105306105307105308105309105310105311105312105313105314105315105316105317105318105319105320105321105322105323105324105325105326105327105328105329105330105331105332105333105334105335105336105337105338105339105340105341105342105343105344105345105346105347105348105349105350105351105352105353105354105355105356105357105358105359105360105361105362105363105364105365105366105367105368105369105370105371105372105373105374105375105376105377105378105379105380105381105382105383105384105385105386105387105388105389105390105391105392105393105394105395105396105397105398105399105400105401105402105403105404105405105406105407105408105409105410105411105412105413105414105415105416105417105418105419105420105421105422105423105424105425105426105427105428105429105430105431105432105433105434105435105436105437105438105439105440105441105442105443105444105445105446105447105448105449105450105451105452105453105454105455105456105457105458105459105460105461105462105463105464105465105466105467105468105469105470105471105472105473105474105475105476105477105478105479105480105481105482105483105484105485105486105487105488105489105490105491105492105493105494105495105496105497105498105499105500105501105502105503105504105505105506105507105508105509105510105511105512105513105514105515105516105517105518105519105520105521105522105523105524105525105526105527105528105529105530105531105532105533105534105535105536105537105538105539105540105541105542105543105544105545105546105547105548105549105550105551105552105553105554105555105556105557105558105559105560105561105562105563105564105565105566105567105568105569105570105571105572105573105574105575105576105577105578105579105580105581105582105583105584105585105586105587105588105589105590105591105592105593105594105595105596105597105598105599105600105601105602105603105604105605105606105607105608105609105610105611105612105613105614105615105616105617105618105619105620105621105622105623105624105625105626105627105628105629105630105631105632105633105634105635105636105637105638105639105640105641105642105643105644105645105646105647105648105649105650105651105652105653105654105655105656105657105658105659105660105661105662105663105664105665105666105667105668105669105670105671105672105673105674105675105676105677105678105679105680105681105682105683105684105685105686105687105688105689105690105691105692105693105694105695105696105697105698105699105700105701105702105703105704105705105706105707105708105709105710105711105712105713105714105715105716105717105718105719105720105721105722105723105724105725105726105727105728105729105730105731105732105733105734105735105736105737105738105739105740105741105742105743105744105745105746105747105748105749105750105751105752105753105754105755105756105757105758105759105760105761105762105763105764105765105766105767105768105769105770105771105772105773105774105775105776105777105778105779105780105781105782105783105784105785105786105787105788105789105790105791105792105793105794105795105796105797105798105799105800105801105802105803105804105805105806105807105808105809105810105811105812105813105814105815105816105817105818105819105820105821105822105823105824105825105826105827105828105829105830105831105832105833105834105835105836105837105838105839105840105841105842105843105844105845105846105847105848105849105850105851105852105853105854105855105856105857105858105859105860105861105862105863105864105865105866105867105868105869105870105871105872105873105874105875105876105877105878105879105880105881105882105883105884105885105886105887105888105889105890105891105892105893105894105895105896105897105898105899105900105901105902105903105904105905105906105907105908105909105910105911105912105913105914105915105916105917105918105919105920105921105922105923105924105925105926105927105928105929105930105931105932105933105934105935105936105937105938105939105940105941105942105943105944105945105946105947105948105949105950105951105952105953105954105955105956105957105958105959105960105961105962105963105964105965105966105967105968105969105970105971105972105973105974105975105976105977105978105979105980105981105982105983105984105985105986105987105988105989105990105991105992105993105994105995105996105997105998105999106000106001106002106003106004106005106006106007106008106009106010106011106012106013106014106015106016106017106018106019106020106021106022106023106024106025106026106027106028106029106030106031106032106033106034106035106036106037106038106039106040106041106042106043106044106045106046106047106048106049106050106051106052106053106054106055106056106057106058106059106060106061106062106063106064106065106066106067106068106069106070106071106072106073106074106075106076106077106078106079106080106081106082106083106084106085106086106087106088106089106090106091106092106093106094106095106096106097106098106099106100106101106102106103106104106105106106106107106108106109106110106111106112106113106114106115106116106117106118106119106120106121106122106123106124106125106126106127106128106129106130106131106132106133106134106135106136106137106138106139106140106141106142106143106144106145106146106147106148106149106150106151106152106153106154106155106156106157106158106159106160106161106162106163106164106165106166106167106168106169106170106171106172106173106174106175106176106177106178106179106180106181106182106183106184106185106186106187106188106189106190106191106192106193106194106195106196106197106198106199106200106201106202106203106204106205106206106207106208106209106210106211106212106213106214106215106216106217106218106219106220106221106222106223106224106225106226106227106228106229106230106231106232106233106234106235106236106237106238106239106240106241106242106243106244106245106246106247106248106249106250106251106252106253106254106255106256106257106258106259106260106261106262106263106264106265106266106267106268106269106270106271106272106273106274106275106276106277106278106279106280106281106282106283106284106285106286106287106288106289106290106291106292106293106294106295106296106297106298106299106300106301106302106303106304106305106306106307106308106309106310106311106312106313106314106315106316106317106318106319106320106321106322106323106324106325106326106327106328106329106330106331106332106333106334106335106336106337106338106339106340106341106342106343106344106345106346106347106348106349106350106351106352106353106354106355106356106357106358106359106360106361106362106363106364106365106366106367106368106369106370106371106372106373106374106375106376106377106378106379106380106381106382106383106384106385106386106387106388106389106390106391106392106393106394106395106396106397106398106399106400106401106402106403106404106405106406106407106408106409106410106411106412106413106414106415106416106417106418106419106420106421106422106423106424106425106426106427106428106429106430106431106432106433106434106435106436106437106438106439106440106441106442106443106444106445106446106447106448106449106450106451106452106453106454106455106456106457106458106459106460106461106462106463106464106465106466106467106468106469106470106471106472106473106474106475106476106477106478106479106480106481106482106483106484106485106486106487106488106489106490106491106492106493106494106495106496106497106498106499106500106501106502106503106504106505106506106507106508106509106510106511106512106513106514106515106516106517106518106519106520106521106522106523106524106525106526106527106528106529106530106531106532106533106534106535106536106537106538106539106540106541106542106543106544106545106546106547106548106549106550106551106552106553106554106555106556106557106558106559106560106561106562106563106564106565106566106567106568106569106570106571106572106573106574106575106576106577106578106579106580106581106582106583106584106585106586106587106588106589106590106591106592106593106594106595106596106597106598106599106600106601106602106603106604106605106606106607106608106609106610106611106612106613106614106615106616106617106618106619106620106621106622106623106624106625106626106627106628106629106630106631106632106633106634106635106636106637106638106639106640106641106642106643106644106645106646106647106648106649106650106651106652106653106654106655106656106657106658106659106660106661106662106663106664106665106666106667106668106669106670106671106672106673106674106675106676106677106678106679106680106681106682106683106684106685106686106687106688106689106690106691106692106693106694106695106696106697106698106699106700106701106702106703106704106705106706106707106708106709106710106711106712106713106714106715106716106717106718106719106720106721106722106723106724106725106726106727106728106729106730106731106732106733106734106735106736106737106738106739106740106741106742106743106744106745106746106747106748106749106750106751106752106753106754106755106756106757106758106759106760106761106762106763106764106765106766106767106768106769106770106771106772106773106774106775106776106777106778106779106780106781106782106783106784106785106786106787106788106789106790106791106792106793106794106795106796106797106798106799106800106801106802106803106804106805106806106807106808106809106810106811106812106813106814106815106816106817106818106819106820106821106822106823106824106825106826106827106828106829106830106831106832106833106834106835106836106837106838106839106840106841106842106843106844106845106846106847106848106849106850106851106852106853106854106855106856106857106858106859106860106861106862106863106864106865106866106867106868106869106870106871106872106873106874106875106876106877106878106879106880106881106882106883106884106885106886106887106888106889106890106891106892106893106894106895106896106897106898106899106900106901106902106903106904106905106906106907106908106909106910106911106912106913106914106915106916106917106918106919106920106921106922106923106924106925106926106927106928106929106930106931106932106933106934106935106936106937106938106939106940106941106942106943106944106945106946106947106948106949106950106951106952106953106954106955106956106957106958106959106960106961106962106963106964106965106966106967106968106969106970106971106972106973106974106975106976106977106978106979106980106981106982106983106984106985106986106987106988106989106990106991106992106993106994106995106996106997106998106999107000107001107002107003107004107005107006107007107008107009107010107011107012107013107014107015107016107017107018107019107020107021107022107023107024107025107026107027107028107029107030107031107032107033107034107035107036107037107038107039107040107041107042107043107044107045107046107047107048107049107050107051107052107053107054107055107056107057107058107059107060107061107062107063107064107065107066107067107068107069107070107071107072107073107074107075107076107077107078107079107080107081107082107083107084107085107086107087107088107089107090107091107092107093107094107095107096107097107098107099107100107101107102107103107104107105107106107107107108107109107110107111107112107113107114107115107116107117107118107119107120107121107122107123107124107125107126107127107128107129107130107131107132107133107134107135107136107137107138107139107140107141107142107143107144107145107146107147107148107149107150107151107152107153107154107155107156107157107158107159107160107161107162107163107164107165107166107167107168107169107170107171107172107173107174107175107176107177107178107179107180107181107182107183107184107185107186107187107188107189107190107191107192107193107194107195107196107197107198107199107200107201107202107203107204107205107206107207107208107209107210107211107212107213107214107215107216107217107218107219107220107221107222107223107224107225107226107227107228107229107230107231107232107233107234107235107236107237107238107239107240107241107242107243107244107245107246107247107248107249107250107251107252107253107254107255107256107257107258107259107260107261107262107263107264107265107266107267107268107269107270107271107272107273107274107275107276107277107278107279107280107281107282107283107284107285107286107287107288107289107290107291107292107293107294107295107296107297107298107299107300107301107302107303107304107305107306107307107308107309107310107311107312107313107314107315107316107317107318107319107320107321107322107323107324107325107326107327107328107329107330107331107332107333107334107335107336107337107338107339107340107341107342107343107344107345107346107347107348107349107350107351107352107353107354107355107356107357107358107359107360107361107362107363107364107365107366107367107368107369107370107371107372107373107374107375107376107377107378107379107380107381107382107383107384107385107386107387107388107389107390107391107392107393107394107395107396107397107398107399107400107401107402107403107404107405107406107407107408107409107410107411107412107413107414107415107416107417107418107419107420107421107422107423107424107425107426107427107428107429107430107431107432107433107434107435107436107437107438107439107440107441107442107443107444107445107446107447107448107449107450107451107452107453107454107455107456107457107458107459107460107461107462107463107464107465107466107467107468107469107470107471107472107473107474107475107476107477107478107479107480107481107482107483107484107485107486107487107488107489107490107491107492107493107494107495107496107497107498107499107500107501107502107503107504107505107506107507107508107509107510107511107512107513107514107515107516107517107518107519107520107521107522107523107524107525107526107527107528107529107530107531107532107533107534107535107536107537107538107539107540107541107542107543107544107545107546107547107548107549107550107551107552107553107554107555107556107557107558107559107560107561107562107563107564107565107566107567107568107569107570107571107572107573107574107575107576107577107578107579107580107581107582107583107584107585107586107587107588107589107590107591107592107593107594107595107596107597107598107599107600107601107602107603107604107605107606107607107608107609107610107611107612107613107614107615107616107617107618107619107620107621107622107623107624107625107626107627107628107629107630107631107632107633107634107635107636107637107638107639107640107641107642107643107644107645107646107647107648107649107650107651107652107653107654107655107656107657107658107659107660107661107662107663107664107665107666107667107668107669107670107671107672107673107674107675107676107677107678107679107680107681107682107683107684107685107686107687107688107689107690107691107692107693107694107695107696107697107698107699107700107701107702107703107704107705107706107707107708107709107710107711107712107713107714107715107716107717107718107719107720107721107722107723107724107725107726107727107728107729107730107731107732107733107734107735107736107737107738107739107740107741107742107743107744107745107746107747107748107749107750107751107752107753107754107755107756107757107758107759107760107761107762107763107764107765107766107767107768107769107770107771107772107773107774107775107776107777107778107779107780107781107782107783107784107785107786107787107788107789107790107791107792107793107794107795107796107797107798107799107800107801107802107803107804107805107806107807107808107809107810107811107812107813107814107815107816107817107818107819107820107821107822107823107824107825107826107827107828107829107830107831107832107833107834107835107836107837107838107839107840107841107842107843107844107845107846107847107848107849107850107851107852107853107854107855107856107857107858107859107860107861107862107863107864107865107866107867107868107869107870107871107872107873107874107875107876107877107878107879107880107881107882107883107884107885107886107887107888107889107890107891107892107893107894107895107896107897107898107899107900107901107902107903107904107905107906107907107908107909107910107911107912107913107914107915107916107917107918107919107920107921107922107923107924107925107926107927107928107929107930107931107932107933107934107935107936107937107938107939107940107941107942107943107944107945107946107947107948107949107950107951107952107953107954107955107956107957107958107959107960107961107962107963107964107965107966107967107968107969107970107971107972107973107974107975107976107977107978107979107980107981107982107983107984107985107986107987107988107989107990107991107992107993107994107995107996107997107998107999108000108001108002108003108004108005108006108007108008108009108010108011108012108013108014108015108016108017108018108019108020108021108022108023108024108025108026108027108028108029108030108031108032108033108034108035108036108037108038108039108040108041108042108043108044108045108046108047108048108049108050108051108052108053108054108055108056108057108058108059108060108061108062108063108064108065108066108067108068108069108070108071108072108073108074108075108076108077108078108079108080108081108082108083108084108085108086108087108088108089108090108091108092108093108094108095108096108097108098108099108100108101108102108103108104108105108106108107108108108109108110108111108112108113108114108115108116108117108118108119108120108121108122108123108124108125108126108127108128108129108130108131108132108133108134108135108136108137108138108139108140108141108142108143108144108145108146108147108148108149108150108151108152108153108154108155108156108157108158108159108160108161108162108163108164108165108166108167108168108169108170108171108172108173108174108175108176108177108178108179108180108181108182108183108184108185108186108187108188108189108190108191108192108193108194108195108196108197108198108199108200108201108202108203108204108205108206108207108208108209108210108211108212108213108214108215108216108217108218108219108220108221108222108223108224108225108226108227108228108229108230108231108232108233108234108235108236108237108238108239108240108241108242108243108244108245108246108247108248108249108250108251108252108253108254108255108256108257108258108259108260108261108262108263108264108265108266108267108268108269108270108271108272108273108274108275108276108277108278108279108280108281108282108283108284108285108286108287108288108289108290108291108292108293108294108295108296108297108298108299108300108301108302108303108304108305108306108307108308108309108310108311108312108313108314108315108316108317108318108319108320108321108322108323108324108325108326108327108328108329108330108331108332108333108334108335108336108337108338108339108340108341108342108343108344108345108346108347108348108349108350108351108352108353108354108355108356108357108358108359108360108361108362108363108364108365108366108367108368108369108370108371108372108373108374108375108376108377108378108379108380108381108382108383108384108385108386108387108388108389108390108391108392108393108394108395108396108397108398108399108400108401108402108403108404108405108406108407108408108409108410108411108412108413108414108415108416108417108418108419108420108421108422108423108424108425108426108427108428108429108430108431108432108433108434108435108436108437108438108439108440108441108442108443108444108445108446108447108448108449108450108451108452108453108454108455108456108457108458108459108460108461108462108463108464108465108466108467108468108469108470108471108472108473108474108475108476108477108478108479108480108481108482108483108484108485108486108487108488108489108490108491108492108493108494108495108496108497108498108499108500108501108502108503108504108505108506108507108508108509108510108511108512108513108514108515108516108517108518108519108520108521108522108523108524108525108526108527108528108529108530108531108532108533108534108535108536108537108538108539108540108541108542108543108544108545108546108547108548108549108550108551108552108553108554108555108556108557108558108559108560108561108562108563108564108565108566108567108568108569108570108571108572108573108574108575108576108577108578108579108580108581108582108583108584108585108586108587108588108589108590108591108592108593108594108595108596108597108598108599108600108601108602108603108604108605108606108607108608108609108610108611108612108613108614108615108616108617108618108619108620108621108622108623108624108625108626108627108628108629108630108631108632108633108634108635108636108637108638108639108640108641108642108643108644108645108646108647108648108649108650108651108652108653108654108655108656108657108658108659108660108661108662108663108664108665108666108667108668108669108670108671108672108673108674108675108676108677108678108679108680108681108682108683108684108685108686108687108688108689108690108691108692108693108694108695108696108697108698108699108700108701108702108703108704108705108706108707108708108709108710108711108712108713108714108715108716108717108718108719108720108721108722108723108724108725108726108727108728108729108730108731108732108733108734108735108736108737108738108739108740108741108742108743108744108745108746108747108748108749108750108751108752108753108754108755108756108757108758108759108760108761108762108763108764108765108766108767108768108769108770108771108772108773108774108775108776108777108778108779108780108781108782108783108784108785108786108787108788108789108790108791108792108793108794108795108796108797108798108799108800108801108802108803108804108805108806108807108808108809108810108811108812108813108814108815108816108817108818108819108820108821108822108823108824108825108826108827108828108829108830108831108832108833108834108835108836108837108838108839108840108841108842108843108844108845108846108847108848108849108850108851108852108853108854108855108856108857108858108859108860108861108862108863108864108865108866108867108868108869108870108871108872108873108874108875108876108877108878108879108880108881108882108883108884108885108886108887108888108889108890108891108892108893108894108895108896108897108898108899108900108901108902108903108904108905108906108907108908108909108910108911108912108913108914108915108916108917108918108919108920108921108922108923108924108925108926108927108928108929108930108931108932108933108934108935108936108937108938108939108940108941108942108943108944108945108946108947108948108949108950108951108952108953108954108955108956108957108958108959108960108961108962108963108964108965108966108967108968108969108970108971108972108973108974108975108976108977108978108979108980108981108982108983108984108985108986108987108988108989108990108991108992108993108994108995108996108997108998108999109000109001109002109003109004109005109006109007109008109009109010109011109012109013109014109015109016109017109018109019109020109021109022109023109024109025109026109027109028109029109030109031109032109033109034109035109036109037109038109039109040109041109042109043109044109045109046109047109048109049109050109051109052109053109054109055109056109057109058109059109060109061109062109063109064109065109066109067109068109069109070109071109072109073109074109075109076109077109078109079109080109081109082109083109084109085109086109087109088109089109090109091109092109093109094109095109096109097109098109099109100109101109102109103109104109105109106109107109108109109109110109111109112109113109114109115109116109117109118109119109120109121109122109123109124109125109126109127109128109129109130109131109132109133109134109135109136109137109138109139109140109141109142109143109144109145109146109147109148109149109150109151109152109153109154109155109156109157109158109159109160109161109162109163109164109165109166109167109168109169109170109171109172109173109174109175109176109177109178109179109180109181109182109183109184109185109186109187109188109189109190109191109192109193109194109195109196109197109198109199109200109201109202109203109204109205109206109207109208109209109210109211109212109213109214109215109216109217109218109219109220109221109222109223109224109225109226109227109228109229109230109231109232109233109234109235109236109237109238109239109240109241109242109243109244109245109246109247109248109249109250109251109252109253109254109255109256109257109258109259109260109261109262109263109264109265109266109267109268109269109270109271109272109273109274109275109276109277109278109279109280109281109282109283109284109285109286109287109288109289109290109291109292109293109294109295109296109297109298109299109300109301109302109303109304109305109306109307109308109309109310109311109312109313109314109315109316109317109318109319109320109321109322109323109324109325109326109327109328109329109330109331109332109333109334109335109336109337109338109339109340109341109342109343109344109345109346109347109348109349109350109351109352109353109354109355109356109357109358109359109360109361109362109363109364109365109366109367109368109369109370109371109372109373109374109375109376109377109378109379109380109381109382109383109384109385109386109387109388109389109390109391109392109393109394109395109396109397109398109399109400109401109402109403109404109405109406109407109408109409109410109411109412109413109414109415109416109417109418109419109420109421109422109423109424109425109426109427109428109429109430109431109432109433109434109435109436109437109438109439109440109441109442109443109444109445109446109447109448109449109450109451109452109453109454109455109456109457109458109459109460109461109462109463109464109465109466109467109468109469109470109471109472109473109474109475109476109477109478109479109480109481109482109483109484109485109486109487109488109489109490109491109492109493109494109495109496109497109498109499109500109501109502109503109504109505109506109507109508109509109510109511109512109513109514109515109516109517109518109519109520109521109522109523109524109525109526109527109528109529109530109531109532109533109534109535109536109537109538109539109540109541109542109543109544109545109546109547109548109549109550109551109552109553109554109555109556109557109558109559109560109561109562109563109564109565109566109567109568109569109570109571109572109573109574109575109576109577109578109579109580109581109582109583109584109585109586109587109588109589109590109591109592109593109594109595109596109597109598109599109600109601109602109603109604109605109606109607109608109609109610109611109612109613109614109615109616109617109618109619109620109621109622109623109624109625109626109627109628109629109630109631109632109633109634109635109636109637109638109639109640109641109642109643109644109645109646109647109648109649109650109651109652109653109654109655109656109657109658109659109660109661109662109663109664109665109666109667109668109669109670109671109672109673109674109675109676109677109678109679109680109681109682109683109684109685109686109687109688109689109690109691109692109693109694109695109696109697109698109699109700109701109702109703109704109705109706109707109708109709109710109711109712109713109714109715109716109717109718109719109720109721109722109723109724109725109726109727109728109729109730109731109732109733109734109735109736109737109738109739109740109741109742109743109744109745109746109747109748109749109750109751109752109753109754109755109756109757109758109759109760109761109762109763109764109765109766109767109768109769109770109771109772109773109774109775109776109777109778109779109780109781109782109783109784109785109786109787109788109789109790109791109792109793109794109795109796109797109798109799109800109801109802109803109804109805109806109807109808109809109810109811109812109813109814109815109816109817109818109819109820109821109822109823109824109825109826109827109828109829109830109831109832109833109834109835109836109837109838109839109840109841109842109843109844109845109846109847109848109849109850109851109852109853109854109855109856109857109858109859109860109861109862109863109864109865109866109867109868109869109870109871109872109873109874109875109876109877109878109879109880109881109882109883109884109885109886109887109888109889109890109891109892109893109894109895109896109897109898109899109900109901109902109903109904109905109906109907109908109909109910109911109912109913109914109915109916109917109918109919109920109921109922109923109924109925109926109927109928109929109930109931109932109933109934109935109936109937109938109939109940109941109942109943109944109945109946109947109948109949109950109951109952109953109954109955109956109957109958109959109960109961109962109963109964109965109966109967109968109969109970109971109972109973109974109975109976109977109978109979109980109981109982109983109984109985109986109987109988109989109990109991109992109993109994109995109996109997109998109999110000110001110002110003110004110005110006110007110008110009110010110011110012110013110014110015110016110017110018110019110020110021110022110023110024110025110026110027110028110029110030110031110032110033110034110035110036110037110038110039110040110041110042110043110044110045110046110047110048110049110050110051110052110053110054110055110056110057110058110059110060110061110062110063110064110065110066110067110068110069110070110071110072110073110074110075110076110077110078110079110080110081110082110083110084110085110086110087110088110089110090110091110092110093110094110095110096110097110098110099110100110101110102110103110104110105110106110107110108110109110110110111110112110113110114110115110116110117110118110119110120110121110122110123110124110125110126110127110128110129110130110131110132110133110134110135110136110137110138110139110140110141110142110143110144110145110146110147110148110149110150110151110152110153110154110155110156110157110158110159110160110161110162110163110164110165110166110167110168110169110170110171110172110173110174110175110176110177110178110179110180110181110182110183110184110185110186110187110188110189110190110191110192110193110194110195110196110197110198110199110200110201110202110203110204110205110206110207110208110209110210110211110212110213110214110215110216110217110218110219110220110221110222110223110224110225110226110227110228110229110230110231110232110233110234110235110236110237110238110239110240110241110242110243110244110245110246110247110248110249110250110251110252110253110254110255110256110257110258110259110260110261110262110263110264110265110266110267110268110269110270110271110272110273110274110275110276110277110278110279110280110281110282110283110284110285110286110287110288110289110290110291110292110293110294110295110296110297110298110299110300110301110302110303110304110305110306110307110308110309110310110311110312110313110314110315110316110317110318110319110320110321110322110323110324110325110326110327110328110329110330110331110332110333110334110335110336110337110338110339110340110341110342110343110344110345110346110347110348110349110350110351110352110353110354110355110356110357110358110359110360110361110362110363110364110365110366110367110368110369110370110371110372110373110374110375110376110377110378110379110380110381110382110383110384110385110386110387110388110389110390110391110392110393110394110395110396110397110398110399110400110401110402110403110404110405110406110407110408110409110410110411110412110413110414110415110416110417110418110419110420110421110422110423110424110425110426110427110428110429110430110431110432110433110434110435110436110437110438110439110440110441110442110443110444110445110446110447110448110449110450110451110452110453110454110455110456110457110458110459110460110461110462110463110464110465110466110467110468110469110470110471110472110473110474110475110476110477110478110479110480110481110482110483110484110485110486110487110488110489110490110491110492110493110494110495110496110497110498110499110500110501110502110503110504110505110506110507110508110509110510110511110512110513110514110515110516110517110518110519110520110521110522110523110524110525110526110527110528110529110530110531110532110533110534110535110536110537110538110539110540110541110542110543110544110545110546110547110548110549110550110551110552110553110554110555110556110557110558110559110560110561110562110563110564110565110566110567110568110569110570110571110572110573110574110575110576110577110578110579110580110581110582110583110584110585110586110587110588110589110590110591110592110593110594110595110596110597110598110599110600110601110602110603110604110605110606110607110608110609110610110611110612110613110614110615110616110617110618110619110620110621110622110623110624110625110626110627110628110629110630110631110632110633110634110635110636110637110638110639110640110641110642110643110644110645110646110647110648110649110650110651110652110653110654110655110656110657110658110659110660110661110662110663110664110665110666110667110668110669110670110671110672110673110674110675110676110677110678110679110680110681110682110683110684110685110686110687110688110689110690110691110692110693110694110695110696110697110698110699110700110701110702110703110704110705110706110707110708110709110710110711110712110713110714110715110716110717110718110719110720110721110722110723110724110725110726110727110728110729110730110731110732110733110734110735110736110737110738110739110740110741110742110743110744110745110746110747110748110749110750110751110752110753110754110755110756110757110758110759110760110761110762110763110764110765110766110767110768110769110770110771110772110773110774110775110776110777110778110779110780110781110782110783110784110785110786110787110788110789110790110791110792110793110794110795110796110797110798110799110800110801110802110803110804110805110806110807110808110809110810110811110812110813110814110815110816110817110818110819110820110821110822110823110824110825110826110827110828110829110830110831110832110833110834110835110836110837110838110839110840110841110842110843110844110845110846110847110848110849110850110851110852110853110854110855110856110857110858110859110860110861110862110863110864110865110866110867110868110869110870110871110872110873110874110875110876110877110878110879110880110881110882110883110884110885110886110887110888110889110890110891110892110893110894110895110896110897110898110899110900110901110902110903110904110905110906110907110908110909110910110911110912110913110914110915110916110917110918110919110920110921110922110923110924110925110926110927110928110929110930110931110932110933110934110935110936110937110938110939110940110941110942110943110944110945110946110947110948110949110950110951110952110953110954110955110956110957110958110959110960110961110962110963110964110965110966110967110968110969110970110971110972110973110974110975110976110977110978110979110980110981110982110983110984110985110986110987110988110989110990110991110992110993110994110995110996110997110998110999111000111001111002111003111004111005111006111007111008111009111010111011111012111013111014111015111016111017111018111019111020111021111022111023111024111025111026111027111028111029111030111031111032111033111034111035111036111037111038111039111040111041111042111043111044111045111046111047111048111049111050111051111052111053111054111055111056111057111058111059111060111061111062111063111064111065111066111067111068111069111070111071111072111073111074111075111076111077111078111079111080111081111082111083111084111085111086111087111088111089111090111091111092111093111094111095111096111097111098111099111100111101111102111103111104111105111106111107111108111109111110111111111112111113111114111115111116111117111118111119111120111121111122111123111124111125111126111127111128111129111130111131111132111133111134111135111136111137111138111139111140111141111142111143111144111145111146111147111148111149111150111151111152111153111154111155111156111157111158111159111160111161111162111163111164111165111166111167111168111169111170111171111172111173111174111175111176111177111178111179111180111181111182111183111184111185111186111187111188111189111190111191111192111193111194111195111196111197111198111199111200111201111202111203111204111205111206111207111208111209111210111211111212111213111214111215111216111217111218111219111220111221111222111223111224111225111226111227111228111229111230111231111232111233111234111235111236111237111238111239111240111241111242111243111244111245111246111247111248111249111250111251111252111253111254111255111256111257111258111259111260111261111262111263111264111265111266111267111268111269111270111271111272111273111274111275111276111277111278111279111280111281111282111283111284111285111286111287111288111289111290111291111292111293111294111295111296111297111298111299111300111301111302111303111304111305111306111307111308111309111310111311111312111313111314111315111316111317111318111319111320111321111322111323111324111325111326111327111328111329111330111331111332111333111334111335111336111337111338111339111340111341111342111343111344111345111346111347111348111349111350111351111352111353111354111355111356111357111358111359111360111361111362111363111364111365111366111367111368111369111370111371111372111373111374111375111376111377111378111379111380111381111382111383111384111385111386111387111388111389111390111391111392111393111394111395111396111397111398111399111400111401111402111403111404111405111406111407111408111409111410111411111412111413111414111415111416111417111418111419111420111421111422111423111424111425111426111427111428111429111430111431111432111433111434111435111436111437111438111439111440111441111442111443111444111445111446111447111448111449111450111451111452111453111454111455111456111457111458111459111460111461111462111463111464111465111466111467111468111469111470111471111472111473111474111475111476111477111478111479111480111481111482111483111484111485111486111487111488111489111490111491111492111493111494111495111496111497111498111499111500111501111502111503111504111505111506111507111508111509111510111511111512111513111514111515111516111517111518111519111520111521111522111523111524111525111526111527111528111529111530111531111532111533111534111535111536111537111538111539111540111541111542111543111544111545111546111547111548111549111550111551111552111553111554111555111556111557111558111559111560111561111562111563111564111565111566111567111568111569111570111571111572111573111574111575111576111577111578111579111580111581111582111583111584111585111586111587111588111589111590111591111592111593111594111595111596111597111598111599111600111601111602111603111604111605111606111607111608111609111610111611111612111613111614111615111616111617111618111619111620111621111622111623111624111625111626111627111628111629111630111631111632111633111634111635111636111637111638111639111640111641111642111643111644111645111646111647111648111649111650111651111652111653111654111655111656111657111658111659111660111661111662111663111664111665111666111667111668111669111670111671111672111673111674111675111676111677111678111679111680111681111682111683111684111685111686111687111688111689111690111691111692111693111694111695111696111697111698111699111700111701111702111703111704111705111706111707111708111709111710111711111712111713111714111715111716111717111718111719111720111721111722111723111724111725111726111727111728111729111730111731111732111733111734111735111736111737111738111739111740111741111742111743111744111745111746111747111748111749111750111751111752111753111754111755111756111757111758111759111760111761111762111763111764111765111766111767111768111769111770111771111772111773111774111775111776111777111778111779111780111781111782111783111784111785111786111787111788111789111790111791111792111793111794111795111796111797111798111799111800111801111802111803111804111805111806111807111808111809111810111811111812111813111814111815111816111817111818111819111820111821111822111823111824111825111826111827111828111829111830111831111832111833111834111835111836111837111838111839111840111841111842111843111844111845111846111847111848111849111850111851111852111853111854111855111856111857111858111859111860111861111862111863111864111865111866111867111868111869111870111871111872111873111874111875111876111877111878111879111880111881111882111883111884111885111886111887111888111889111890111891111892111893111894111895111896111897111898111899111900111901111902111903111904111905111906111907111908111909111910111911111912111913111914111915111916111917111918111919111920111921111922111923111924111925111926111927111928111929111930111931111932111933111934111935111936111937111938111939111940111941111942111943111944111945111946111947111948111949111950111951111952111953111954111955111956111957111958111959111960111961111962111963111964111965111966111967111968111969111970111971111972111973111974111975111976111977111978111979111980111981111982111983111984111985111986111987111988111989111990111991111992111993111994111995111996111997111998111999112000112001112002112003112004112005112006112007112008112009112010112011112012112013112014112015112016112017112018112019112020112021112022112023112024112025112026112027112028112029112030112031112032112033112034112035112036112037112038112039112040112041112042112043112044112045112046112047112048112049112050112051112052112053112054112055112056112057112058112059112060112061112062112063112064112065112066112067112068112069112070112071112072112073112074112075112076112077112078112079112080112081112082112083112084112085112086112087112088112089112090112091112092112093112094112095112096112097112098112099112100112101112102112103112104112105112106112107112108112109112110112111112112112113112114112115112116112117112118112119112120112121112122112123112124112125112126112127112128112129112130112131112132112133112134112135112136112137112138112139112140112141112142112143112144112145112146112147112148112149112150112151112152112153112154112155112156112157112158112159112160112161112162112163112164112165112166112167112168112169112170112171112172112173112174112175112176112177112178112179112180112181112182112183112184112185112186112187112188112189112190112191112192112193112194112195112196112197112198112199112200112201112202112203112204112205112206112207112208112209112210112211112212112213112214112215112216112217112218112219112220112221112222112223112224112225112226112227112228112229112230112231112232112233112234112235112236112237112238112239112240112241112242112243112244112245112246112247112248112249112250112251112252112253112254112255112256112257112258112259112260112261112262112263112264112265112266112267112268112269112270112271112272112273112274112275112276112277112278112279112280112281112282112283112284112285112286112287112288112289112290112291112292112293112294112295112296112297112298112299112300112301112302112303112304112305112306112307112308112309112310112311112312112313112314112315112316112317112318112319112320112321112322112323112324112325112326112327112328112329112330112331112332112333112334112335112336112337112338112339112340112341112342112343112344112345112346112347112348112349112350112351112352112353112354112355112356112357112358112359112360112361112362112363112364112365112366112367112368112369112370112371112372112373112374112375112376112377112378112379112380112381112382112383112384112385112386112387112388112389112390112391112392112393112394112395112396112397112398112399112400112401112402112403112404112405112406112407112408112409112410112411112412112413112414112415112416112417112418112419112420112421112422112423112424112425112426112427112428112429112430112431112432112433112434112435112436112437112438112439112440112441112442112443112444112445112446112447112448112449112450112451112452112453112454112455112456112457112458112459112460112461112462112463112464112465112466112467112468112469112470112471112472112473112474112475112476112477112478112479112480112481112482112483112484112485112486112487112488112489112490112491112492112493112494112495112496112497112498112499112500112501112502112503112504112505112506112507112508112509112510112511112512112513112514112515112516112517112518112519112520112521112522112523112524112525112526112527112528112529112530112531112532112533112534112535112536112537112538112539112540112541112542112543112544112545112546112547112548112549112550112551112552112553112554112555112556112557112558112559112560112561112562112563112564112565112566112567112568112569112570112571112572112573112574112575112576112577112578112579112580112581112582112583112584112585112586112587112588112589112590112591112592112593112594112595112596112597112598112599112600112601112602112603112604112605112606112607112608112609112610112611112612112613112614112615112616112617112618112619112620112621112622112623112624112625112626112627112628112629112630112631112632112633112634112635112636112637112638112639112640112641112642112643112644112645112646112647112648112649112650112651112652112653112654112655112656112657112658112659112660112661112662112663112664112665112666112667112668112669112670112671112672112673112674112675112676112677112678112679112680112681112682112683112684112685112686112687112688112689112690112691112692112693112694112695112696112697112698112699112700112701112702112703112704112705112706112707112708112709112710112711112712112713112714112715112716112717112718112719112720112721112722112723112724112725112726112727112728112729112730112731112732112733112734112735112736112737112738112739112740112741112742112743112744112745112746112747112748112749112750112751112752112753112754112755112756112757112758112759112760112761112762112763112764112765112766112767112768112769112770112771112772112773112774112775112776112777112778112779112780112781112782112783112784112785112786112787112788112789112790112791112792112793112794112795112796112797112798112799112800112801112802112803112804112805112806112807112808112809112810112811112812112813112814112815112816112817112818112819112820112821112822112823112824112825112826112827112828112829112830112831112832112833112834112835112836112837112838112839112840112841112842112843112844112845112846112847112848112849112850112851112852112853112854112855112856112857112858112859112860112861112862112863112864112865112866112867112868112869112870112871112872112873112874112875112876112877112878112879112880112881112882112883112884112885112886112887112888112889112890112891112892112893112894112895112896112897112898112899112900112901112902112903112904112905112906112907112908112909112910112911112912112913112914112915112916112917112918112919112920112921112922112923112924112925112926112927112928112929112930112931112932112933112934112935112936112937112938112939112940112941112942112943112944112945112946112947112948112949112950112951112952112953112954112955112956112957112958112959112960112961112962112963112964112965112966112967112968112969112970112971112972112973112974112975112976112977112978112979112980112981112982112983112984112985112986112987112988112989112990112991112992112993112994112995112996112997112998112999113000113001113002113003113004113005113006113007113008113009113010113011113012113013113014113015113016113017113018113019113020113021113022113023113024113025113026113027113028113029113030113031113032113033113034113035113036113037113038113039113040113041113042113043113044113045113046113047113048113049113050113051113052113053113054113055113056113057113058113059113060113061113062113063113064113065113066113067113068113069113070113071113072113073113074113075113076113077113078113079113080113081113082113083113084113085113086113087113088113089113090113091113092113093113094113095113096113097113098113099113100113101113102113103113104113105113106113107113108113109113110113111113112113113113114113115113116113117113118113119113120113121113122113123113124113125113126113127113128113129113130113131113132113133113134113135113136113137113138113139113140113141113142113143113144113145113146113147113148113149113150113151113152113153113154113155113156113157113158113159113160113161113162113163113164113165113166113167113168113169113170113171113172113173113174113175113176113177113178113179113180113181113182113183113184113185113186113187113188113189113190113191113192113193113194113195113196113197113198113199113200113201113202113203113204113205113206113207113208113209113210113211113212113213113214113215113216113217113218113219113220113221113222113223113224113225113226113227113228113229113230113231113232113233113234113235113236113237113238113239113240113241113242113243113244113245113246113247113248113249113250113251113252113253113254113255113256113257113258113259113260113261113262113263113264113265113266113267113268113269113270113271113272113273113274113275113276113277113278113279113280113281113282113283113284113285113286113287113288113289113290113291113292113293113294113295113296113297113298113299113300113301113302113303113304113305113306113307113308113309113310113311113312113313113314113315113316113317113318113319113320113321113322113323113324113325113326113327113328113329113330113331113332113333113334113335113336113337113338113339113340113341113342113343113344113345113346113347113348113349113350113351113352113353113354113355113356113357113358113359113360113361113362113363113364113365113366113367113368113369113370113371113372113373113374113375113376113377113378113379113380113381113382113383113384113385113386113387113388113389113390113391113392113393113394113395113396113397113398113399113400113401113402113403113404113405113406113407113408113409113410113411113412113413113414113415113416113417113418113419113420113421113422113423113424113425113426113427113428113429113430113431113432113433113434113435113436113437113438113439113440113441113442113443113444113445113446113447113448113449113450113451113452113453113454113455113456113457113458113459113460113461113462113463113464113465113466113467113468113469113470113471113472113473113474113475113476113477113478113479113480113481113482113483113484113485113486113487113488113489113490113491113492113493113494113495113496113497113498113499113500113501113502113503113504113505113506113507113508113509113510113511113512113513113514113515113516113517113518113519113520113521113522113523113524113525113526113527113528113529113530113531113532113533113534113535113536113537113538113539113540113541113542113543113544113545113546113547113548113549113550113551113552113553113554113555113556113557113558113559113560113561113562113563113564113565113566113567113568113569113570113571113572113573113574113575113576113577113578113579113580113581113582113583113584113585113586113587113588113589113590113591113592113593113594113595113596113597113598113599113600113601113602113603113604113605113606113607113608113609113610113611113612113613113614113615113616113617113618113619113620113621113622113623113624113625113626113627113628113629113630113631113632113633113634113635113636113637113638113639113640113641113642113643113644113645113646113647113648113649113650113651113652113653113654113655113656113657113658113659113660113661113662113663113664113665113666113667113668113669113670113671113672113673113674113675113676113677113678113679113680113681113682113683113684113685113686113687113688113689113690113691113692113693113694113695113696113697113698113699113700113701113702113703113704113705113706113707113708113709113710113711113712113713113714113715113716113717113718113719113720113721113722113723113724113725113726113727113728113729113730113731113732113733113734113735113736113737113738113739113740113741113742113743113744113745113746113747113748113749113750113751113752113753113754113755113756113757113758113759113760113761113762113763113764113765113766113767113768113769113770113771113772113773113774113775113776113777113778113779113780113781113782113783113784113785113786113787113788113789113790113791113792113793113794113795113796113797113798113799113800113801113802113803113804113805113806113807113808113809113810113811113812113813113814113815113816113817113818113819113820113821113822113823113824113825113826113827113828113829113830113831113832113833113834113835113836113837113838113839113840113841113842113843113844113845113846113847113848113849113850113851113852113853113854113855113856113857113858113859113860113861113862113863113864113865113866113867113868113869113870113871113872113873113874113875113876113877113878113879113880113881113882113883113884113885113886113887113888113889113890113891113892113893113894113895113896113897113898113899113900113901113902113903113904113905113906113907113908113909113910113911113912113913113914113915113916113917113918113919113920113921113922113923113924113925113926113927113928113929113930113931113932113933113934113935113936113937113938113939113940113941113942113943113944113945113946113947113948113949113950113951113952113953113954113955113956113957113958113959113960113961113962113963113964113965113966113967113968113969113970113971113972113973113974113975113976113977113978113979113980113981113982113983113984113985113986113987113988113989113990113991113992113993113994113995113996113997113998113999114000114001114002114003114004114005114006114007114008114009114010114011114012114013114014114015114016114017114018114019114020114021114022114023114024114025114026114027114028114029114030114031114032114033114034114035114036114037114038114039114040114041114042114043114044114045114046114047114048114049114050114051114052114053114054114055114056114057114058114059114060114061114062114063114064114065114066114067114068114069114070114071114072114073114074114075114076114077114078114079114080114081114082114083114084114085114086114087114088114089114090114091114092114093114094114095114096114097114098114099114100114101114102114103114104114105114106114107114108114109114110114111114112114113114114114115114116114117114118114119114120114121114122114123114124114125114126114127114128114129114130114131114132114133114134114135114136114137114138114139114140114141114142114143114144114145114146114147114148114149114150114151114152114153114154114155114156114157114158114159114160114161114162114163114164114165114166114167114168114169114170114171114172114173114174114175114176114177114178114179114180114181114182114183114184114185114186114187114188114189114190114191114192114193114194114195114196114197114198114199114200114201114202114203114204114205114206114207114208114209114210114211114212114213114214114215114216114217114218114219114220114221114222114223114224114225114226114227114228114229114230114231114232114233114234114235114236114237114238114239114240114241114242114243114244114245114246114247114248114249114250114251114252114253114254114255114256114257114258114259114260114261114262114263114264114265114266114267114268114269114270114271114272114273114274114275114276114277114278114279114280114281114282114283114284114285114286114287114288114289114290114291114292114293114294114295114296114297114298114299114300114301114302114303114304114305114306114307114308114309114310114311114312114313114314114315114316114317114318114319114320114321114322114323114324114325114326114327114328114329114330114331114332114333114334114335114336114337114338114339114340114341114342114343114344114345114346114347114348114349114350114351114352114353114354114355114356114357114358114359114360114361114362114363114364114365114366114367114368114369114370114371114372114373114374114375114376114377114378114379114380114381114382114383114384114385114386114387114388114389114390114391114392114393114394114395114396114397114398114399114400114401114402114403114404114405114406114407114408114409114410114411114412114413114414114415114416114417114418114419114420114421114422114423114424114425114426114427114428114429114430114431114432114433114434114435114436114437114438114439114440114441114442114443114444114445114446114447114448114449114450114451114452114453114454114455114456114457114458114459114460114461114462114463114464114465114466114467114468114469114470114471114472114473114474114475114476114477114478114479114480114481114482114483114484114485114486114487114488114489114490114491114492114493114494114495114496114497114498114499114500114501114502114503114504114505114506114507114508114509114510114511114512114513114514114515114516114517114518114519114520114521114522114523114524114525114526114527114528114529114530114531114532114533114534114535114536114537114538114539114540114541114542114543114544114545114546114547114548114549114550114551114552114553114554114555114556114557114558114559114560114561114562114563114564114565114566114567114568114569114570114571114572114573114574114575114576114577114578114579114580114581114582114583114584114585114586114587114588114589114590114591114592114593114594114595114596114597114598114599114600114601114602114603114604114605114606114607114608114609114610114611114612114613114614114615114616114617114618114619114620114621114622114623114624114625114626114627114628114629114630114631114632114633114634114635114636114637114638114639114640114641114642114643114644114645114646114647114648114649114650114651114652114653114654114655114656114657114658114659114660114661114662114663114664114665114666114667114668114669114670114671114672114673114674114675114676114677114678114679114680114681114682114683114684114685114686114687114688114689114690114691114692114693114694114695114696114697114698114699114700114701114702114703114704114705114706114707114708114709114710114711114712114713114714114715114716114717114718114719114720114721114722114723114724114725114726114727114728114729114730114731114732114733114734114735114736114737114738114739114740114741114742114743114744114745114746114747114748114749114750114751114752114753114754114755114756114757114758114759114760114761114762114763114764114765114766114767114768114769114770114771114772114773114774114775114776114777114778114779114780114781114782114783114784114785114786114787114788114789114790114791114792114793114794114795114796114797114798114799114800114801114802114803114804114805114806114807114808114809114810114811114812114813114814114815114816114817114818114819114820114821114822114823114824114825114826114827114828114829114830114831114832114833114834114835114836114837114838114839114840114841114842114843114844114845114846114847114848114849114850114851114852114853114854114855114856114857114858114859114860114861114862114863114864114865114866114867114868114869114870114871114872114873114874114875114876114877114878114879114880114881114882114883114884114885114886114887114888114889114890114891114892114893114894114895114896114897114898114899114900114901114902114903114904114905114906114907114908114909114910114911114912114913114914114915114916114917114918114919114920114921114922114923114924114925114926114927114928114929114930114931114932114933114934114935114936114937114938114939114940114941114942114943114944114945114946114947114948114949114950114951114952114953114954114955114956114957114958114959114960114961114962114963114964114965114966114967114968114969114970114971114972114973114974114975114976114977114978114979114980114981114982114983114984114985114986114987114988114989114990114991114992114993114994114995114996114997114998114999115000115001115002115003115004115005115006115007115008115009115010115011115012115013115014115015115016115017115018115019115020115021115022115023115024115025115026115027115028115029115030115031115032115033115034115035115036115037115038115039115040115041115042115043115044115045115046115047115048115049115050115051115052115053115054115055115056115057115058115059115060115061115062115063115064115065115066115067115068115069115070115071115072115073115074115075115076115077115078115079115080115081115082115083115084115085115086115087115088115089115090115091115092115093115094115095115096115097115098115099115100115101115102115103115104115105115106115107115108115109115110115111115112115113115114115115115116115117115118115119115120115121115122115123115124115125115126115127115128115129115130115131115132115133115134115135115136115137115138115139115140115141115142115143115144115145115146115147115148115149115150115151115152115153115154115155115156115157115158115159115160115161115162115163115164115165115166115167115168115169115170115171115172115173115174115175115176115177115178115179115180115181115182115183115184115185115186115187115188115189115190115191115192115193115194115195115196115197115198115199115200115201115202115203115204115205115206115207115208115209115210115211115212115213115214115215115216115217115218115219115220115221115222115223115224115225115226115227115228115229115230115231115232115233115234115235115236115237115238115239115240115241115242115243115244115245115246115247115248115249115250115251115252115253115254115255115256115257115258115259115260115261115262115263115264115265115266115267115268115269115270115271115272115273115274115275115276115277115278115279115280115281115282115283115284115285115286115287115288115289115290115291115292115293115294115295115296115297115298115299115300115301115302115303115304115305115306115307115308115309115310115311115312115313115314115315115316115317115318115319115320115321115322115323115324115325115326115327115328115329115330115331115332115333115334115335115336115337115338115339115340115341115342115343115344115345115346115347115348115349115350115351115352115353115354115355115356115357115358115359115360115361115362115363115364115365115366115367115368115369115370115371115372115373115374115375115376115377115378115379115380115381115382115383115384115385115386115387115388115389115390115391115392115393115394115395115396115397115398115399115400115401115402115403115404115405115406115407115408115409115410115411115412115413115414115415115416115417115418115419115420115421115422115423115424115425115426115427115428115429115430115431115432115433115434115435115436115437115438115439115440115441115442115443115444115445115446115447115448115449115450115451115452115453115454115455115456115457115458115459115460115461115462115463115464115465115466115467115468115469115470115471115472115473115474115475115476115477115478115479115480115481115482115483115484115485115486115487115488115489115490115491115492115493115494115495115496115497115498115499115500115501115502115503115504115505115506115507115508115509115510115511115512115513115514115515115516115517115518115519115520115521115522115523115524115525115526115527115528115529115530115531115532115533115534115535115536115537115538115539115540115541115542115543115544115545115546115547115548115549115550115551115552115553115554115555115556115557115558115559115560115561115562115563115564115565115566115567115568115569115570115571115572115573115574115575115576115577115578115579115580115581115582115583115584115585115586115587115588115589115590115591115592115593115594115595115596115597115598115599115600115601115602115603115604115605115606115607115608115609115610115611115612115613115614115615115616115617115618115619115620115621115622115623115624115625115626115627115628115629115630115631115632115633115634115635115636115637115638115639115640115641115642115643115644115645115646115647115648115649115650115651115652115653115654115655115656115657115658115659115660115661115662115663115664115665115666115667115668115669115670115671115672115673115674115675115676115677115678115679115680115681115682115683115684115685115686115687115688115689115690115691115692115693115694115695115696115697115698115699115700115701115702115703115704115705115706115707115708115709115710115711115712115713115714115715115716115717115718115719115720115721115722115723115724115725115726115727115728115729115730115731115732115733115734115735115736115737115738115739115740115741115742115743115744115745115746115747115748115749115750115751115752115753115754115755115756115757115758115759115760115761115762115763115764115765115766115767115768115769115770115771115772115773115774115775115776115777115778115779115780115781115782115783115784115785115786115787115788115789115790115791115792115793115794115795115796115797115798115799115800115801115802115803115804115805115806115807115808115809115810115811115812115813115814115815115816115817115818115819115820115821115822115823115824115825115826115827115828115829115830115831115832115833115834115835115836115837115838115839115840115841115842115843115844115845115846115847115848115849115850115851115852115853115854115855115856115857115858115859115860115861115862115863115864115865115866115867115868115869115870115871115872115873115874115875115876115877115878115879115880115881115882115883115884115885115886115887115888115889115890115891115892115893115894115895115896115897115898115899115900115901115902115903115904115905115906115907115908115909115910115911115912115913115914115915115916115917115918115919115920115921115922115923115924115925115926115927115928115929115930115931115932115933115934115935115936115937115938115939115940115941115942115943115944115945115946115947115948115949115950115951115952115953115954115955115956115957115958115959115960115961115962115963115964115965115966115967115968115969115970115971115972115973115974115975115976115977115978115979115980115981115982115983115984115985115986115987115988115989115990115991115992115993115994115995115996115997115998115999116000116001116002116003116004116005116006116007116008116009116010116011116012116013116014116015116016116017116018116019116020116021116022116023116024116025116026116027116028116029116030116031116032116033116034116035116036116037116038116039116040116041116042116043116044116045116046116047116048116049116050116051116052116053116054116055116056116057116058116059116060116061116062116063116064116065116066116067116068116069116070116071116072116073116074116075116076116077116078116079116080116081116082116083116084116085116086116087116088116089116090116091116092116093116094116095116096116097116098116099116100116101116102116103116104116105116106116107116108116109116110116111116112116113116114116115116116116117116118116119116120116121116122116123116124116125116126116127116128116129116130116131116132116133116134116135116136116137116138116139116140116141116142116143116144116145116146116147116148116149116150116151116152116153116154116155116156116157116158116159116160116161116162116163116164116165116166116167116168116169116170116171116172116173116174116175116176116177116178116179116180116181116182116183116184116185116186116187116188116189116190116191116192116193116194116195116196116197116198116199116200116201116202116203116204116205116206116207116208116209116210116211116212116213116214116215116216116217116218116219116220116221116222116223116224116225116226116227116228116229116230116231116232116233116234116235116236116237116238116239116240116241116242116243116244116245116246116247116248116249116250116251116252116253116254116255116256116257116258116259116260116261116262116263116264116265116266116267116268116269116270116271116272116273116274116275116276116277116278116279116280116281116282116283116284116285116286116287116288116289116290116291116292116293116294116295116296116297116298116299116300116301116302116303116304116305116306116307116308116309116310116311116312116313116314116315116316116317116318116319116320116321116322116323116324116325116326116327116328116329116330116331116332116333116334116335116336116337116338116339116340116341116342116343116344116345116346116347116348116349116350116351116352116353116354116355116356116357116358116359116360116361116362116363116364116365116366116367116368116369116370116371116372116373116374116375116376116377116378116379116380116381116382116383116384116385116386116387116388116389116390116391116392116393116394116395116396116397116398116399116400116401116402116403116404116405116406116407116408116409116410116411116412116413116414116415116416116417116418116419116420116421116422116423116424116425116426116427116428116429116430116431116432116433116434116435116436116437116438116439116440116441116442116443116444116445116446116447116448116449116450116451116452116453116454116455116456116457116458116459116460116461116462116463116464116465116466116467116468116469116470116471116472116473116474116475116476116477116478116479116480116481116482116483116484116485116486116487116488116489116490116491116492116493116494116495116496116497116498116499116500116501116502116503116504116505116506116507116508116509116510116511116512116513116514116515116516116517116518116519116520116521116522116523116524116525116526116527116528116529116530116531116532116533116534116535116536116537116538116539116540116541116542116543116544116545116546116547116548116549116550116551116552116553116554116555116556116557116558116559116560116561116562116563116564116565116566116567116568116569116570116571116572116573116574116575116576116577116578116579116580116581116582116583116584116585116586116587116588116589116590116591116592116593116594116595116596116597116598116599116600116601116602116603116604116605116606116607116608116609116610116611116612116613116614116615116616116617116618116619116620116621116622116623116624116625116626116627116628116629116630116631116632116633116634116635116636116637116638116639116640116641116642116643116644116645116646116647116648116649116650116651116652116653116654116655116656116657116658116659116660116661116662116663116664116665116666116667116668116669116670116671116672116673116674116675116676116677116678116679116680116681116682116683116684116685116686116687116688116689116690116691116692116693116694116695116696116697116698116699116700116701116702116703116704116705116706116707116708116709116710116711116712116713116714116715116716116717116718116719116720116721116722116723116724116725116726116727116728116729116730116731116732116733116734116735116736116737116738116739116740116741116742116743116744116745116746116747116748116749116750116751116752116753116754116755116756116757116758116759116760116761116762116763116764116765116766116767116768116769116770116771116772116773116774116775116776116777116778116779116780116781116782116783116784116785116786116787116788116789116790116791116792116793116794116795116796116797116798116799116800116801116802116803116804116805116806116807116808116809116810116811116812116813116814116815116816116817116818116819116820116821116822116823116824116825116826116827116828116829116830116831116832116833116834116835116836116837116838116839116840116841116842116843116844116845116846116847116848116849116850116851116852116853116854116855116856116857116858116859116860116861116862116863116864116865116866116867116868116869116870116871116872116873116874116875116876116877116878116879116880116881116882116883116884116885116886116887116888116889116890116891116892116893116894116895116896116897116898116899116900116901116902116903116904116905116906116907116908116909116910116911116912116913116914116915116916116917116918116919116920116921116922116923116924116925116926116927116928116929116930116931116932116933116934116935116936116937116938116939116940116941116942116943116944116945116946116947116948116949116950116951116952116953116954116955116956116957116958116959116960116961116962116963116964116965116966116967116968116969116970116971116972116973116974116975116976116977116978116979116980116981116982116983116984116985116986116987116988116989116990116991116992116993116994116995116996116997116998116999117000117001117002117003117004117005117006117007117008117009117010117011117012117013117014117015117016117017117018117019117020117021117022117023117024117025117026117027117028117029117030117031117032117033117034117035117036117037117038117039117040117041117042117043117044117045117046117047117048117049117050117051117052117053117054117055117056117057117058117059117060117061117062117063117064117065117066117067117068117069117070117071117072117073117074117075117076117077117078117079117080117081117082117083117084117085117086117087117088117089117090117091117092117093117094117095117096117097117098117099117100117101117102117103117104117105117106117107117108117109117110117111117112117113117114117115117116117117117118117119117120117121117122117123117124117125117126117127117128117129117130117131117132117133117134117135117136117137117138117139117140117141117142117143117144117145117146117147117148117149117150117151117152117153117154117155117156117157117158117159117160117161117162117163117164117165117166117167117168117169117170117171117172117173117174117175117176117177117178117179117180117181117182117183117184117185117186117187117188117189117190117191117192117193117194117195117196117197117198117199117200117201117202117203117204117205117206117207117208117209117210117211117212117213117214117215117216117217117218117219117220117221117222117223117224117225117226117227117228117229117230117231117232117233117234117235117236117237117238117239117240117241117242117243117244117245117246117247117248117249117250117251117252117253117254117255117256117257117258117259117260117261117262117263117264117265117266117267117268117269117270117271117272117273117274117275117276117277117278117279117280117281117282117283117284117285117286117287117288117289117290117291117292117293117294117295117296117297117298117299117300117301117302117303117304117305117306117307117308117309117310117311117312117313117314117315117316117317117318117319117320117321117322117323117324117325117326117327117328117329117330117331117332117333117334117335117336117337117338117339117340117341117342117343117344117345117346117347117348117349117350117351117352117353117354117355117356117357117358117359117360117361117362117363117364117365117366117367117368117369117370117371117372117373117374117375117376117377117378117379117380117381117382117383117384117385117386117387117388117389117390117391117392117393117394117395117396117397117398117399117400117401117402117403117404117405117406117407117408117409117410117411117412117413117414117415117416117417117418117419117420117421117422117423117424117425117426117427117428117429117430117431117432117433117434117435117436117437117438117439117440117441117442117443117444117445117446117447117448117449117450117451117452117453117454117455117456117457117458117459117460117461117462117463117464117465117466117467117468117469117470117471117472117473117474117475117476117477117478117479117480117481117482117483117484117485117486117487117488117489117490117491117492117493117494117495117496117497117498117499117500117501117502117503117504117505117506117507117508117509117510117511117512117513117514117515117516117517117518117519117520117521117522117523117524117525117526117527117528117529117530117531117532117533117534117535117536117537117538117539117540117541117542117543117544117545117546117547117548117549117550117551117552117553117554117555117556117557117558117559117560117561117562117563117564117565117566117567117568117569117570117571117572117573117574117575117576117577117578117579117580117581117582117583117584117585117586117587117588117589117590117591117592117593117594117595117596117597117598117599117600117601117602117603117604117605117606117607117608117609117610117611117612117613117614117615117616117617117618117619117620117621117622117623117624117625117626117627117628117629117630117631117632117633117634117635117636117637117638117639117640117641117642117643117644117645117646117647117648117649117650117651117652117653117654117655117656117657117658117659117660117661117662117663117664117665117666117667117668117669117670117671117672117673117674117675117676117677117678117679117680117681117682117683117684117685117686117687117688117689117690117691117692117693117694117695117696117697117698117699117700117701117702117703117704117705117706117707117708117709117710117711117712117713117714117715117716117717117718117719117720117721117722117723117724117725117726117727117728117729117730117731117732117733117734117735117736117737117738117739117740117741117742117743117744117745117746117747117748117749117750117751117752117753117754117755117756117757117758117759117760117761117762117763117764117765117766117767117768117769117770117771117772117773117774117775117776117777117778117779117780117781117782117783117784117785117786117787117788117789117790117791117792117793117794117795117796117797117798117799117800117801117802117803117804117805117806117807117808117809117810117811117812117813117814117815117816117817117818117819117820117821117822117823117824117825117826117827117828117829117830117831117832117833117834117835117836117837117838117839117840117841117842117843117844117845117846117847117848117849117850117851117852117853117854117855117856117857117858117859117860117861117862117863117864117865117866117867117868117869117870117871117872117873117874117875117876117877117878117879117880117881117882117883117884117885117886117887117888117889117890117891117892117893117894117895117896117897117898117899117900117901117902117903117904117905117906117907117908117909117910117911117912117913117914117915117916117917117918117919117920117921117922117923117924117925117926117927117928117929117930117931117932117933117934117935117936117937117938117939117940117941117942117943117944117945117946117947117948117949117950117951117952117953117954117955117956117957117958117959117960117961117962117963117964117965117966117967117968117969117970117971117972117973117974117975117976117977117978117979117980117981117982117983117984117985117986117987117988117989117990117991117992117993117994117995117996117997117998117999118000118001118002118003118004118005118006118007118008118009118010118011118012118013118014118015118016118017118018118019118020118021118022118023118024118025118026118027118028118029118030118031118032118033118034118035118036118037118038118039118040118041118042118043118044118045118046118047118048118049118050118051118052118053118054118055118056118057118058118059118060118061118062118063118064118065118066118067118068118069118070118071118072118073118074118075118076118077118078118079118080118081118082118083118084118085118086118087118088118089118090118091118092118093118094118095118096118097118098118099118100118101118102118103118104118105118106118107118108118109118110118111118112118113118114118115118116118117118118118119118120118121118122118123118124118125118126118127118128118129118130118131118132118133118134118135118136118137118138118139118140118141118142118143118144118145118146118147118148118149118150118151118152118153118154118155118156118157118158118159118160118161118162118163118164118165118166118167118168118169118170118171118172118173118174118175118176118177118178118179118180118181118182118183118184118185118186118187118188118189118190118191118192118193118194118195118196118197118198118199118200118201118202118203118204118205118206118207118208118209118210118211118212118213118214118215118216118217118218118219118220118221118222118223118224118225118226118227118228118229118230118231118232118233118234118235118236118237118238118239118240118241118242118243118244118245118246118247118248118249118250118251118252118253118254118255118256118257118258118259118260118261118262118263118264118265118266118267118268118269118270118271118272118273118274118275118276118277118278118279118280118281118282118283118284118285118286118287118288118289118290118291118292118293118294118295118296118297118298118299118300118301118302118303118304118305118306118307118308118309118310118311118312118313118314118315118316118317118318118319118320118321118322118323118324118325118326118327118328118329118330118331118332118333118334118335118336118337118338118339118340118341118342118343118344118345118346118347118348118349118350118351118352118353118354118355118356118357118358118359118360118361118362118363118364118365118366118367118368118369118370118371118372118373118374118375118376118377118378118379118380118381118382118383118384118385118386118387118388118389118390118391118392118393118394118395118396118397118398118399118400118401118402118403118404118405118406118407118408118409118410118411118412118413118414118415118416118417118418118419118420118421118422118423118424118425118426118427118428118429118430118431118432118433118434118435118436118437118438118439118440118441118442118443118444118445118446118447118448118449118450118451118452118453118454118455118456118457118458118459118460118461118462118463118464118465118466118467118468118469118470118471118472118473118474118475118476118477118478118479118480118481118482118483118484118485118486118487118488118489118490118491118492118493118494118495118496118497118498118499118500118501118502118503118504118505118506118507118508118509118510118511118512118513118514118515118516118517118518118519118520118521118522118523118524118525118526118527118528118529118530118531118532118533118534118535118536118537118538118539118540118541118542118543118544118545118546118547118548118549118550118551118552118553118554118555118556118557118558118559118560118561118562118563118564118565118566118567118568118569118570118571118572118573118574118575118576118577118578118579118580118581118582118583118584118585118586118587118588118589118590118591118592118593118594118595118596118597118598118599118600118601118602118603118604118605118606118607118608118609118610118611118612118613118614118615118616118617118618118619118620118621118622118623118624118625118626118627118628118629118630118631118632118633118634118635118636118637118638118639118640118641118642118643118644118645118646118647118648118649118650118651118652118653118654118655118656118657118658118659118660118661118662118663118664118665118666118667118668118669118670118671118672118673118674118675118676118677118678118679118680118681118682118683118684118685118686118687118688118689118690118691118692118693118694118695118696118697118698118699118700118701118702118703118704118705118706118707118708118709118710118711118712118713118714118715118716118717118718118719118720118721118722118723118724118725118726118727118728118729118730118731118732118733118734118735118736118737118738118739118740118741118742118743118744118745118746118747118748118749118750118751118752118753118754118755118756118757118758118759118760118761118762118763118764118765118766118767118768118769118770118771118772118773118774118775118776118777118778118779118780118781118782118783118784118785118786118787118788118789118790118791118792118793118794118795118796118797118798118799118800118801118802118803118804118805118806118807118808118809118810118811118812118813118814118815118816118817118818118819118820118821118822118823118824118825118826118827118828118829118830118831118832118833118834118835118836118837118838118839118840118841118842118843118844118845118846118847118848118849118850118851118852118853118854118855118856118857118858118859118860118861118862118863118864118865118866118867118868118869118870118871118872118873118874118875118876118877118878118879118880118881118882118883118884118885118886118887118888118889118890118891118892118893118894118895118896118897118898118899118900118901118902118903118904118905118906118907118908118909118910118911118912118913118914118915118916118917118918118919118920118921118922118923118924118925118926118927118928118929118930118931118932118933118934118935118936118937118938118939118940118941118942118943118944118945118946118947118948118949118950118951118952118953118954118955118956118957118958118959118960118961118962118963118964118965118966118967118968118969118970118971118972118973118974118975118976118977118978118979118980118981118982118983118984118985118986118987118988118989118990118991118992118993118994118995118996118997118998118999119000119001119002119003119004119005119006119007119008119009119010119011119012119013119014119015119016119017119018119019119020119021119022119023119024119025119026119027119028119029119030119031119032119033119034119035119036119037119038119039119040119041119042119043119044119045119046119047119048119049119050119051119052119053119054119055119056119057119058119059119060119061119062119063119064119065119066119067119068119069119070119071119072119073119074119075119076119077119078119079119080119081119082119083119084119085119086119087119088119089119090119091119092119093119094119095119096119097119098119099119100119101119102119103119104119105119106119107119108119109119110119111119112119113119114119115119116119117119118119119119120119121119122119123119124119125119126119127119128119129119130119131119132119133119134119135119136119137119138119139119140119141119142119143119144119145119146119147119148119149119150119151119152119153119154119155119156119157119158119159119160119161119162119163119164119165119166119167119168119169119170119171119172119173119174119175119176119177119178119179119180119181119182119183119184119185119186119187119188119189119190119191119192119193119194119195119196119197119198119199119200119201119202119203119204119205119206119207119208119209119210119211119212119213119214119215119216119217119218119219119220119221119222119223119224119225119226119227119228119229119230119231119232119233119234119235119236119237119238119239119240119241119242119243119244119245119246119247119248119249119250119251119252119253119254119255119256119257119258119259119260119261119262119263119264119265119266119267119268119269119270119271119272119273119274119275119276119277119278119279119280119281119282119283119284119285119286119287119288119289119290119291119292119293119294119295119296119297119298119299119300119301119302119303119304119305119306119307119308119309119310119311119312119313119314119315119316119317119318119319119320119321119322119323119324119325119326119327119328119329119330119331119332119333119334119335119336119337119338119339119340119341119342119343119344119345119346119347119348119349119350119351119352119353119354119355119356119357119358119359119360119361119362119363119364119365119366119367119368119369119370119371119372119373119374119375119376119377119378119379119380119381119382119383119384119385119386119387119388119389119390119391119392119393119394119395119396119397119398119399119400119401119402119403119404119405119406119407119408119409119410119411119412119413119414119415119416119417119418119419119420119421119422119423119424119425119426119427119428119429119430119431119432119433119434119435119436119437119438119439119440119441119442119443119444119445119446119447119448119449119450119451119452119453119454119455119456119457119458119459119460119461119462119463119464119465119466119467119468119469119470119471119472119473119474119475119476119477119478119479119480119481119482119483119484119485119486119487119488119489119490119491119492119493119494119495119496119497119498119499119500119501119502119503119504119505119506119507119508119509119510119511119512119513119514119515119516119517119518119519119520119521119522119523119524119525119526119527119528119529119530119531119532119533119534119535119536119537119538119539119540119541119542119543119544119545119546119547119548119549119550119551119552119553119554119555119556119557119558119559119560119561119562119563119564119565119566119567119568119569119570119571119572119573119574119575119576119577119578119579119580119581119582119583119584119585119586119587119588119589119590119591119592119593119594119595119596119597119598119599119600119601119602119603119604119605119606119607119608119609119610119611119612119613119614119615119616119617119618119619119620119621119622119623119624119625119626119627119628119629119630119631119632119633119634119635119636119637119638119639119640119641119642119643119644119645119646119647119648119649119650119651119652119653119654119655119656119657119658119659119660119661119662119663119664119665119666119667119668119669119670119671119672119673119674119675119676119677119678119679119680119681119682119683119684119685119686119687119688119689119690119691119692119693119694119695119696119697119698119699119700119701119702119703119704119705119706119707119708119709119710119711119712119713119714119715119716119717119718119719119720119721119722119723119724119725119726119727119728119729119730119731119732119733119734119735119736119737119738119739119740119741119742119743119744119745119746119747119748119749119750119751119752119753119754119755119756119757119758119759119760119761119762119763119764119765119766119767119768119769119770119771119772119773119774119775119776119777119778119779119780119781119782119783119784119785119786119787119788119789119790119791119792119793119794119795119796119797119798119799119800119801119802119803119804119805119806119807119808119809119810119811119812119813119814119815119816119817119818119819119820119821119822119823119824119825119826119827119828119829119830119831119832119833119834119835119836119837119838119839119840119841119842119843119844119845119846119847119848119849119850119851119852119853119854119855119856119857119858119859119860119861119862119863119864119865119866119867119868119869119870119871119872119873119874119875119876119877119878119879119880119881119882119883119884119885119886119887119888119889119890119891119892119893119894119895119896119897119898119899119900119901119902119903119904119905119906119907119908119909119910119911119912119913119914119915119916119917119918119919119920119921119922119923119924119925119926119927119928119929119930119931119932119933119934119935119936119937119938119939119940119941119942119943119944119945119946119947119948119949119950119951119952119953119954119955119956119957119958119959119960119961119962119963119964119965119966119967119968119969119970119971119972119973119974119975119976119977119978119979119980119981119982119983119984119985119986119987119988119989119990119991119992119993119994119995119996119997119998119999120000120001120002120003120004120005120006120007120008120009120010120011120012120013120014120015120016120017120018120019120020120021120022120023120024120025120026120027120028120029120030120031120032120033120034120035120036120037120038120039120040120041120042120043120044120045120046120047120048120049120050120051120052120053120054120055120056120057120058120059120060120061120062120063120064120065120066120067120068120069120070120071120072120073120074120075120076120077120078120079120080120081120082120083120084120085120086120087120088120089120090120091120092120093120094120095120096120097120098120099120100120101120102120103120104120105120106120107120108120109120110120111120112120113120114120115120116120117120118120119120120120121120122120123120124120125120126120127120128120129120130120131120132120133120134120135120136120137120138120139120140120141120142120143120144120145120146120147120148120149120150120151120152120153120154120155120156120157120158120159120160120161120162120163120164120165120166120167120168120169120170120171120172120173120174120175120176120177120178120179120180120181120182120183120184120185120186120187120188120189120190120191120192120193120194120195120196120197120198120199120200120201120202120203120204120205120206120207120208120209120210120211120212120213120214120215120216120217120218120219120220120221120222120223120224120225120226120227120228120229120230120231120232120233120234120235120236120237120238120239120240120241120242120243120244120245120246120247120248120249120250120251120252120253120254120255120256120257120258120259120260120261120262120263120264120265120266120267120268120269120270120271120272120273120274120275120276120277120278120279120280120281120282120283120284120285120286120287120288120289120290120291120292120293120294120295120296120297120298120299120300120301120302120303120304120305120306120307120308120309120310120311120312120313120314120315120316120317120318120319120320120321120322120323120324120325120326120327120328120329120330120331120332120333120334120335120336120337120338120339120340120341120342120343120344120345120346120347120348120349120350120351120352120353120354120355120356120357120358120359120360120361120362120363120364120365120366120367120368120369120370120371120372120373120374120375120376120377120378120379120380120381120382120383120384120385120386120387120388120389120390120391120392120393120394120395120396120397120398120399120400120401120402120403120404120405120406120407120408120409120410120411120412120413120414120415120416120417120418120419120420120421120422120423120424120425120426120427120428120429120430120431120432120433120434120435120436120437120438120439120440120441120442120443120444120445120446120447120448120449120450120451120452120453120454120455120456120457120458120459120460120461120462120463120464120465120466120467120468120469120470120471120472120473120474120475120476120477120478120479120480120481120482120483120484120485120486120487120488120489120490120491120492120493120494120495120496120497120498120499120500120501120502120503120504120505120506120507120508120509120510120511120512120513120514120515120516120517120518120519120520120521120522120523120524120525120526120527120528120529120530120531120532120533120534120535120536120537120538120539120540120541120542120543120544120545120546120547120548120549120550120551120552120553120554120555120556120557120558120559120560120561120562120563120564120565120566120567120568120569120570120571120572120573120574120575120576120577120578120579120580120581120582120583120584120585120586120587120588120589120590120591120592120593120594120595120596120597120598120599120600120601120602120603120604120605120606120607120608120609120610120611120612120613120614120615120616120617120618120619120620120621120622120623120624120625120626120627120628120629120630120631120632120633120634120635120636120637120638120639120640120641120642120643120644120645120646120647120648120649120650120651120652120653120654120655120656120657120658120659120660120661120662120663120664120665120666120667120668120669120670120671120672120673120674120675120676120677120678120679120680120681120682120683120684120685120686120687120688120689120690120691120692120693120694120695120696120697120698120699120700120701120702120703120704120705120706120707120708120709120710120711120712120713120714120715120716120717120718120719120720120721120722120723120724120725120726120727120728120729120730120731120732120733120734120735120736120737120738120739120740120741120742120743120744120745120746120747120748120749120750120751120752120753120754120755120756120757120758120759120760120761120762120763120764120765120766120767120768120769120770120771120772120773120774120775120776120777120778120779120780120781120782120783120784120785120786120787120788120789120790120791120792120793120794120795120796120797120798120799120800120801120802120803120804120805120806120807120808120809120810120811120812120813120814120815120816120817120818120819120820120821120822120823120824120825120826120827120828120829120830120831120832120833120834120835120836120837120838120839120840120841120842120843120844120845120846120847120848120849120850120851120852120853120854120855120856120857120858120859120860120861120862120863120864120865120866120867120868120869120870120871120872120873120874120875120876120877120878120879120880120881120882120883120884120885120886120887120888120889120890120891120892120893120894120895120896120897120898120899120900120901120902120903120904120905120906120907120908120909120910120911120912120913120914120915120916120917120918120919120920120921120922120923120924120925120926120927120928120929120930120931120932120933120934120935120936120937120938120939120940120941120942120943120944120945120946120947120948120949120950120951120952120953120954120955120956120957120958120959120960120961120962120963120964120965120966120967120968120969120970120971120972120973120974120975120976120977120978120979120980120981120982120983120984120985120986120987120988120989120990120991120992120993120994120995120996120997120998120999121000121001121002121003121004121005121006121007121008121009121010121011121012121013121014121015121016121017121018121019121020121021121022121023121024121025121026121027121028121029121030121031121032121033121034121035121036121037121038121039121040121041121042121043121044121045121046121047121048121049121050121051121052121053121054121055121056121057121058121059121060121061121062121063121064121065121066121067121068121069121070121071121072121073121074121075121076121077121078121079121080121081121082121083121084121085121086121087121088121089121090121091121092121093121094121095121096121097121098121099121100121101121102121103121104121105121106121107121108121109121110121111121112121113121114121115121116121117121118121119121120121121121122121123121124121125121126121127121128121129121130121131121132121133121134121135121136121137121138121139121140121141121142121143121144121145121146121147121148121149121150121151121152121153121154121155121156121157121158121159121160121161121162121163121164121165121166121167121168121169121170121171121172121173121174121175121176121177121178121179121180121181121182121183121184121185121186121187121188121189121190121191121192121193121194121195121196121197121198121199121200121201121202121203121204121205121206121207121208121209121210121211121212121213121214121215121216121217121218121219121220121221121222121223121224121225121226121227121228121229121230121231121232121233121234121235121236121237121238121239121240121241121242121243121244121245121246121247121248121249121250121251121252121253121254121255121256121257121258121259121260121261121262121263121264121265121266121267121268121269121270121271121272121273121274121275121276121277121278121279121280121281121282121283121284121285121286121287121288121289121290121291121292121293121294121295121296121297121298121299121300121301121302121303121304121305121306121307121308121309121310121311121312121313121314121315121316121317121318121319121320121321121322121323121324121325121326121327121328121329121330121331121332121333121334121335121336121337121338121339121340121341121342121343121344121345121346121347121348121349121350121351121352121353121354121355121356121357121358121359121360121361121362121363121364121365121366121367121368121369121370121371121372121373121374121375121376121377121378121379121380121381121382121383121384121385121386121387121388121389121390121391121392121393121394121395121396121397121398121399121400121401121402121403121404121405121406121407121408121409121410121411121412121413121414121415121416121417121418121419121420121421121422121423121424121425121426121427121428121429121430121431121432121433121434121435121436121437121438121439121440121441121442121443121444121445121446121447121448121449121450121451121452121453121454121455121456121457121458121459121460121461121462121463121464121465121466121467121468121469121470121471121472121473121474121475121476121477121478121479121480121481121482121483121484121485121486121487121488121489121490121491121492121493121494121495121496121497121498121499121500121501121502121503121504121505121506121507121508121509121510121511121512121513121514121515121516121517121518121519121520121521121522121523121524121525121526121527121528121529121530121531121532121533121534121535121536121537121538121539121540121541121542121543121544121545121546121547121548121549121550121551121552121553121554121555121556121557121558121559121560121561121562121563121564121565121566121567121568121569121570121571121572121573121574121575121576121577121578121579121580121581121582121583121584121585121586121587121588121589121590121591121592121593121594121595121596121597121598121599121600121601121602121603121604121605121606121607121608121609121610121611121612121613121614121615121616121617121618121619121620121621121622121623121624121625121626121627121628121629121630121631121632121633121634121635121636121637121638121639121640121641121642121643121644121645121646121647121648121649121650121651121652121653121654121655121656121657121658121659121660121661121662121663121664121665121666121667121668121669121670121671121672121673121674121675121676121677121678121679121680121681121682121683121684121685121686121687121688121689121690121691121692121693121694121695121696121697121698121699121700121701121702121703121704121705121706121707121708121709121710121711121712121713121714121715121716121717121718121719121720121721121722121723121724121725121726121727121728121729121730121731121732121733121734121735121736121737121738121739121740121741121742121743121744121745121746121747121748121749121750121751121752121753121754121755121756121757121758121759121760121761121762121763121764121765121766121767121768121769121770121771121772121773121774121775121776121777121778121779121780121781121782121783121784121785121786121787121788121789121790121791121792121793121794121795121796121797121798121799121800121801121802121803121804121805121806121807121808121809121810121811121812121813121814121815121816121817121818121819121820121821121822121823121824121825121826121827121828121829121830121831121832121833121834121835121836121837121838121839121840121841121842121843121844121845121846121847121848121849121850121851121852121853121854121855121856121857121858121859121860121861121862121863121864121865121866121867121868121869121870121871121872121873121874121875121876121877121878121879121880121881121882121883121884121885121886121887121888121889121890121891121892121893121894121895121896121897121898121899121900121901121902121903121904121905121906121907121908121909121910121911121912121913121914121915121916121917121918121919121920121921121922121923121924121925121926121927121928121929121930121931121932121933121934121935121936121937121938121939121940121941121942121943121944121945121946121947121948121949121950121951121952121953121954121955121956121957121958121959121960121961121962121963121964121965121966121967121968121969121970121971121972121973121974121975121976121977121978121979121980121981121982121983121984121985121986121987121988121989121990121991121992121993121994121995121996121997121998121999122000122001122002122003122004122005122006122007122008122009122010122011122012122013122014122015122016122017122018122019122020122021122022122023122024122025122026122027122028122029122030122031122032122033122034122035122036122037122038122039122040122041122042122043122044122045122046122047122048122049122050122051122052122053122054122055122056122057122058122059122060122061122062122063122064122065122066122067122068122069122070122071122072122073122074122075122076122077122078122079122080122081122082122083122084122085122086122087122088122089122090122091122092122093122094122095122096122097122098122099122100122101122102122103122104122105122106122107122108122109122110122111122112122113122114122115122116122117122118122119122120122121122122122123122124122125122126122127122128122129122130122131122132122133122134122135122136122137122138122139122140122141122142122143122144122145122146122147122148122149122150122151122152122153122154122155122156122157122158122159122160122161122162122163122164122165122166122167122168122169122170122171122172122173122174122175122176122177122178122179122180122181122182122183122184122185122186122187122188122189122190122191122192122193122194122195122196122197122198122199122200122201122202122203122204122205122206122207122208122209122210122211122212122213122214122215122216122217122218122219122220122221122222122223122224122225122226122227122228122229122230122231122232122233122234122235122236122237122238122239122240122241122242122243122244122245122246122247122248122249122250122251122252122253122254122255122256122257122258122259122260122261122262122263122264122265122266122267122268122269122270122271122272122273122274122275122276122277122278122279122280122281122282122283122284122285122286122287122288122289122290122291122292122293122294122295122296122297122298122299122300122301122302122303122304122305122306122307122308122309122310122311122312122313122314122315122316122317122318122319122320122321122322122323122324122325122326122327122328122329122330122331122332122333122334122335122336122337122338122339122340122341122342122343122344122345122346122347122348122349122350122351122352122353122354122355122356122357122358122359122360122361122362122363122364122365122366122367122368122369122370122371122372122373122374122375122376122377122378122379122380122381122382122383122384122385122386122387122388122389122390122391122392122393122394122395122396122397122398122399122400122401122402122403122404122405122406122407122408122409122410122411122412122413122414122415122416122417122418122419122420122421122422122423122424122425122426122427122428122429122430122431122432122433122434122435122436122437122438122439122440122441122442122443122444122445122446122447122448122449122450122451122452122453122454122455122456122457122458122459122460122461122462122463122464122465122466122467122468122469122470122471122472122473122474122475122476122477122478122479122480122481122482122483122484122485122486122487122488122489122490122491122492122493122494122495122496122497122498122499122500122501122502122503122504122505122506122507122508122509122510122511122512122513122514122515122516122517122518122519122520122521122522122523122524122525122526122527122528122529122530122531122532122533122534122535122536122537122538122539122540122541122542122543122544122545122546122547122548122549122550122551122552122553122554122555122556122557122558122559122560122561122562122563122564122565122566122567122568122569122570122571122572122573122574122575122576122577122578122579122580122581122582122583122584122585122586122587122588122589122590122591122592122593122594122595122596122597122598122599122600122601122602122603122604122605122606122607122608122609122610122611122612122613122614122615122616122617122618122619122620122621122622122623122624122625122626122627122628122629122630122631122632122633122634122635122636122637122638122639122640122641122642122643122644122645122646122647122648122649122650122651122652122653122654122655122656122657122658122659122660122661122662122663122664122665122666122667122668122669122670122671122672122673122674122675122676122677122678122679122680122681122682122683122684122685122686122687122688122689122690122691122692122693122694122695122696122697122698122699122700122701122702122703122704122705122706122707122708122709122710122711122712122713122714122715122716122717122718122719122720122721122722122723122724122725122726122727122728122729122730122731122732122733122734122735122736122737122738122739122740122741122742122743122744122745122746122747122748122749122750122751122752122753122754122755122756122757122758122759122760122761122762122763122764122765122766122767122768122769122770122771122772122773122774122775122776122777122778122779122780122781122782122783122784122785122786122787122788122789122790122791122792122793122794122795122796122797122798122799122800122801122802122803122804122805122806122807122808122809122810122811122812122813122814122815122816122817122818122819122820122821122822122823122824122825122826122827122828122829122830122831122832122833122834122835122836122837122838122839122840122841122842122843122844122845122846122847122848122849122850122851122852122853122854122855122856122857122858122859122860122861122862122863122864122865122866122867122868122869122870122871122872122873122874122875122876122877122878122879122880122881122882122883122884122885122886122887122888122889122890122891122892122893122894122895122896122897122898122899122900122901122902122903122904122905122906122907122908122909122910122911122912122913122914122915122916122917122918122919122920122921122922122923122924122925122926122927122928122929122930122931122932122933122934122935122936122937122938122939122940122941122942122943122944122945122946122947122948122949122950122951122952122953122954122955122956122957122958122959122960122961122962122963122964122965122966122967122968122969122970122971122972122973122974122975122976122977122978122979122980122981122982122983122984122985122986122987122988122989122990122991122992122993122994122995122996122997122998122999123000123001123002123003123004123005123006123007123008123009123010123011123012123013123014123015123016123017123018123019123020123021123022123023123024123025123026123027123028123029123030123031123032123033123034123035123036123037123038123039123040123041123042123043123044123045123046123047123048123049123050123051123052123053123054123055123056123057123058123059123060123061123062123063123064123065123066123067123068123069123070123071123072123073123074123075123076123077123078123079123080123081123082123083123084123085123086123087123088123089123090123091123092123093123094123095123096123097123098123099123100123101123102123103123104123105123106123107123108123109123110123111123112123113123114123115123116123117123118123119123120123121123122123123123124123125123126123127123128123129123130123131123132123133123134123135123136123137123138123139123140123141123142123143123144123145123146123147123148123149123150123151123152123153123154123155123156123157123158123159123160123161123162123163123164123165123166123167123168123169123170123171123172123173123174123175123176123177123178123179123180123181123182123183123184123185123186123187123188123189123190123191123192123193123194123195123196123197123198123199123200123201123202123203123204123205123206123207123208123209123210123211123212123213123214123215123216123217123218123219123220123221123222123223123224123225123226123227123228123229123230123231123232123233123234123235123236123237123238123239123240123241123242123243123244123245123246123247123248123249123250123251123252123253123254123255123256123257123258123259123260123261123262123263123264123265123266123267123268123269123270123271123272123273123274123275123276123277123278123279123280123281123282123283123284123285123286123287123288123289123290123291123292123293123294123295123296123297123298123299123300123301123302123303123304123305123306123307123308123309123310123311123312123313123314123315123316123317123318123319123320123321123322123323123324123325123326123327123328123329123330123331123332123333123334123335123336123337123338123339123340123341123342123343123344123345123346123347123348123349123350123351123352123353123354123355123356123357123358123359123360123361123362123363123364123365123366123367123368123369123370123371123372123373123374123375123376123377123378123379123380123381123382123383123384123385123386123387123388123389123390123391123392123393123394123395123396123397123398123399123400123401123402123403123404123405123406123407123408123409123410123411123412123413123414123415123416123417123418123419123420123421123422123423123424123425123426123427123428123429123430123431123432123433123434123435123436123437123438123439123440123441123442123443123444123445123446123447123448123449123450123451123452123453123454123455123456123457123458123459123460123461123462123463123464123465123466123467123468123469123470123471123472123473123474123475123476123477123478123479123480123481123482123483123484123485123486123487123488123489123490123491123492123493123494123495123496123497123498123499123500123501123502123503123504123505123506123507123508123509123510123511123512123513123514123515123516123517123518123519123520123521123522123523123524123525123526123527123528123529123530123531123532123533123534123535123536123537123538123539123540123541123542123543123544123545123546123547123548123549123550123551123552123553123554123555123556123557123558123559123560123561123562123563123564123565123566123567123568123569123570123571123572123573123574123575123576123577123578123579123580123581123582123583123584123585123586123587123588123589123590123591123592123593123594123595123596123597123598123599123600123601123602123603123604123605123606123607123608123609123610123611123612123613123614123615123616123617123618123619123620123621123622123623123624123625123626123627123628123629123630123631123632123633123634123635123636123637123638123639123640123641123642123643123644123645123646123647123648123649123650123651123652123653123654123655123656123657123658123659123660123661123662123663123664123665123666123667123668123669123670123671123672123673123674123675123676123677123678123679123680123681123682123683123684123685123686123687123688123689123690123691123692123693123694123695123696123697123698123699123700123701123702123703123704123705123706123707123708123709123710123711123712123713123714123715123716123717123718123719123720123721123722123723123724123725123726123727123728123729123730123731123732123733123734123735123736123737123738123739123740123741123742123743123744123745123746123747123748123749123750123751123752123753123754123755123756123757123758123759123760123761123762123763123764123765123766123767123768123769123770123771123772123773123774123775123776123777123778123779123780123781123782123783123784123785123786123787123788123789123790123791123792123793123794123795123796123797123798123799123800123801123802123803123804123805123806123807123808123809123810123811123812123813123814123815123816123817123818123819123820123821123822123823123824123825123826123827123828123829123830123831123832123833123834123835123836123837123838123839123840123841123842123843123844123845123846123847123848123849123850123851123852123853123854123855123856123857123858123859123860123861123862123863123864123865123866123867123868123869123870123871123872123873123874123875123876123877123878123879123880123881123882123883123884123885123886123887123888123889123890123891123892123893123894123895123896123897123898123899123900123901123902123903123904123905123906123907123908123909123910123911123912123913123914123915123916123917123918123919123920123921123922123923123924123925123926123927123928123929123930123931123932123933123934123935123936123937123938123939123940123941123942123943123944123945123946123947123948123949123950123951123952123953123954123955123956123957123958123959123960123961123962123963123964123965123966123967123968123969123970123971123972123973123974123975123976123977123978123979123980123981123982123983123984123985123986123987123988123989123990123991123992123993123994123995123996123997123998123999124000124001124002124003124004124005124006124007124008124009124010124011124012124013124014124015124016124017124018124019124020124021124022124023124024124025124026124027124028124029124030124031124032124033124034124035124036124037124038124039124040124041124042124043124044124045124046124047124048124049124050124051124052124053124054124055124056124057124058124059124060124061124062124063124064124065124066124067124068124069124070124071124072124073124074124075124076124077124078124079124080124081124082124083124084124085124086124087124088124089124090124091124092124093124094124095124096124097124098124099124100124101124102124103124104124105124106124107124108124109124110124111124112124113124114124115124116124117124118124119124120124121124122124123124124124125124126124127124128124129124130124131124132124133124134124135124136124137124138124139124140124141124142124143124144124145124146124147124148124149124150124151124152124153124154124155124156124157124158124159124160124161124162124163124164124165124166124167124168124169124170124171124172124173124174124175124176124177124178124179124180124181124182124183124184124185124186124187124188124189124190124191124192124193124194124195124196124197124198124199124200124201124202124203124204124205124206124207124208124209124210124211124212124213124214124215124216124217124218124219124220124221124222124223124224124225124226124227124228124229124230124231124232124233124234124235124236124237124238124239124240124241124242124243124244124245124246124247124248124249124250124251124252124253124254124255124256124257124258124259124260124261124262124263124264124265124266124267124268124269124270124271124272124273124274124275124276124277124278124279124280124281124282124283124284124285124286124287124288124289124290124291124292124293124294124295124296124297124298124299124300124301124302124303124304124305124306124307124308124309124310124311124312124313124314124315124316124317124318124319124320124321124322124323124324124325124326124327124328124329124330124331124332124333124334124335124336124337124338124339124340124341124342124343124344124345124346124347124348124349124350124351124352124353124354124355124356124357124358124359124360124361124362124363124364124365124366124367124368124369124370124371124372124373124374124375124376124377124378124379124380124381124382124383124384124385124386124387124388124389124390124391124392124393124394124395124396124397124398124399124400124401124402124403124404124405124406124407124408124409124410124411124412124413124414124415124416124417124418124419124420124421124422124423124424124425124426124427124428124429124430124431124432124433124434124435124436124437124438124439124440124441124442124443124444124445124446124447124448124449124450124451124452124453124454124455124456124457124458124459124460124461124462124463124464124465124466124467124468124469124470124471124472124473124474124475124476124477124478124479124480124481124482124483124484124485124486124487124488124489124490124491124492124493124494124495124496124497124498124499124500124501124502124503124504124505124506124507124508124509124510124511124512124513124514124515124516124517124518124519124520124521124522124523124524124525124526124527124528124529124530124531124532124533124534124535124536124537124538124539124540124541124542124543124544124545124546124547124548124549124550124551124552124553124554124555124556124557124558124559124560124561124562124563124564124565124566124567124568124569124570124571124572124573124574124575124576124577124578124579124580124581124582124583124584124585124586124587124588124589124590124591124592124593124594124595124596124597124598124599124600124601124602124603124604124605124606124607124608124609124610124611124612124613124614124615124616124617124618124619124620124621124622124623124624124625124626124627124628124629124630124631124632124633124634124635124636124637124638124639124640124641124642124643124644124645124646124647124648124649124650124651124652124653124654124655124656124657124658124659124660124661124662124663124664124665124666124667124668124669124670124671124672124673124674124675124676124677124678124679124680124681124682124683124684124685124686124687124688124689124690124691124692124693124694124695124696124697124698124699124700124701124702124703124704124705124706124707124708124709124710124711124712124713124714124715124716124717124718124719124720124721124722124723124724124725124726124727124728124729124730124731124732124733124734124735124736124737124738124739124740124741124742124743124744124745124746124747124748124749124750124751124752124753124754124755124756124757124758124759124760124761124762124763124764124765124766124767124768124769124770124771124772124773124774124775124776124777124778124779124780124781124782124783124784124785124786124787124788124789124790124791124792124793124794124795124796124797124798124799124800124801124802124803124804124805124806124807124808124809124810124811124812124813124814124815124816124817124818124819124820124821124822124823124824124825124826124827124828124829124830124831124832124833124834124835124836124837124838124839124840124841124842124843124844124845124846124847124848124849124850124851124852124853124854124855124856124857124858124859124860124861124862124863124864124865124866124867124868124869124870124871124872124873124874124875124876124877124878124879124880124881124882124883124884124885124886124887124888124889124890124891124892124893124894124895124896124897124898124899124900124901124902124903124904124905124906124907124908124909124910124911124912124913124914124915124916124917124918124919124920124921124922124923124924124925124926124927124928124929124930124931124932124933124934124935124936124937124938124939124940124941124942124943124944124945124946124947124948124949124950124951124952124953124954124955124956124957124958124959124960124961124962124963124964124965124966124967124968124969124970124971124972124973124974124975124976124977124978124979124980124981124982124983124984124985124986124987124988124989124990124991124992124993124994124995124996124997124998124999125000125001125002125003125004125005125006125007125008125009125010125011125012125013125014125015125016125017125018125019125020125021125022125023125024125025125026125027125028125029125030125031125032125033125034125035125036125037125038125039125040125041125042125043125044125045125046125047125048125049125050125051125052125053125054125055125056125057125058125059125060125061125062125063125064125065125066125067125068125069125070125071125072125073125074125075125076125077125078125079125080125081125082125083125084125085125086125087125088125089125090125091125092125093125094125095125096125097125098125099125100125101125102125103125104125105125106125107125108125109125110125111125112125113125114125115125116125117125118125119125120125121125122125123125124125125125126125127125128125129125130125131125132125133125134125135125136125137125138125139125140125141125142125143125144125145125146125147125148125149125150125151125152125153125154125155125156125157125158125159125160125161125162125163125164125165125166125167125168125169125170125171125172125173125174125175125176125177125178125179125180125181125182125183125184125185125186125187125188125189125190125191125192125193125194125195125196125197125198125199125200125201125202125203125204125205125206125207125208125209125210125211125212125213125214125215125216125217125218125219125220125221125222125223125224125225125226125227125228125229125230125231125232125233125234125235125236125237125238125239125240125241125242125243125244125245125246125247125248125249125250125251125252125253125254125255125256125257125258125259125260125261125262125263125264125265125266125267125268125269125270125271125272125273125274125275125276125277125278125279125280125281125282125283125284125285125286125287125288125289125290125291125292125293125294125295125296125297125298125299125300125301125302125303125304125305125306125307125308125309125310125311125312125313125314125315125316125317125318125319125320125321125322125323125324125325125326125327125328125329125330125331125332125333125334125335125336125337125338125339125340125341125342125343125344125345125346125347125348125349125350125351125352125353125354125355125356125357125358125359125360125361125362125363125364125365125366125367125368125369125370125371125372125373125374125375125376125377125378125379125380125381125382125383125384125385125386125387125388125389125390125391125392125393125394125395125396125397125398125399125400125401125402125403125404125405125406125407125408125409125410125411125412125413125414125415125416125417125418125419125420125421125422125423125424125425125426125427125428125429125430125431125432125433125434125435125436125437125438125439125440125441125442125443125444125445125446125447125448125449125450125451125452125453125454125455125456125457125458125459125460125461125462125463125464125465125466125467125468125469125470125471125472125473125474125475125476125477125478125479125480125481125482125483125484125485125486125487125488125489125490125491125492125493125494125495125496125497125498125499125500125501125502125503125504125505125506125507125508125509125510125511125512125513125514125515125516125517125518125519125520125521125522125523125524125525125526125527125528125529125530125531125532125533125534125535125536125537125538125539125540125541125542125543125544125545125546125547125548125549125550125551125552125553125554125555125556125557125558125559125560125561125562125563125564125565125566125567125568125569125570125571125572125573125574125575125576125577125578125579125580125581125582125583125584125585125586125587125588125589125590125591125592125593125594125595125596125597125598125599125600125601125602125603125604125605125606125607125608125609125610125611125612125613125614125615125616125617125618125619125620125621125622125623125624125625125626125627125628125629125630125631125632125633125634125635125636125637125638125639125640125641125642125643125644125645125646125647125648125649125650125651125652125653125654125655125656125657125658125659125660125661125662125663125664125665125666125667125668125669125670125671125672125673125674125675125676125677125678125679125680125681125682125683125684125685125686125687125688125689125690125691125692125693125694125695125696125697125698125699125700125701125702125703125704125705125706125707125708125709125710125711125712125713125714125715125716125717125718125719125720125721125722125723125724125725125726125727125728125729125730125731125732125733125734125735125736125737125738125739125740125741125742125743125744125745125746125747125748125749125750125751125752125753125754125755125756125757125758125759125760125761125762125763125764125765125766125767125768125769125770125771125772125773125774125775125776125777125778125779125780125781125782125783125784125785125786125787125788125789125790125791125792125793125794125795125796125797125798125799125800125801125802125803125804125805125806125807125808125809125810125811125812125813125814125815125816125817125818125819125820125821125822125823125824125825125826125827125828125829125830125831125832125833125834125835125836125837125838125839125840125841125842125843125844125845125846125847125848125849125850125851125852125853125854125855125856125857125858125859125860125861125862125863125864125865125866125867125868125869125870125871125872125873125874125875125876125877125878125879125880125881125882125883125884125885125886125887125888125889125890125891125892125893125894125895125896125897125898125899125900125901125902125903125904125905125906125907125908125909125910125911125912125913125914125915125916125917125918125919125920125921125922125923125924125925125926125927125928125929125930125931125932125933125934125935125936125937125938125939125940125941125942125943125944125945125946125947125948125949125950125951125952125953125954125955125956125957125958125959125960125961125962125963125964125965125966125967125968125969125970125971125972125973125974125975125976125977125978125979125980125981125982125983125984125985125986125987125988125989125990125991125992125993125994125995125996125997125998125999126000126001126002126003126004126005126006126007126008126009126010126011126012126013126014126015126016126017126018126019126020126021126022126023126024126025126026126027126028126029126030126031126032126033126034126035126036126037126038126039126040126041126042126043126044126045126046126047126048126049126050126051126052126053126054126055126056126057126058126059126060126061126062126063126064126065126066126067126068126069126070126071126072126073126074126075126076126077126078126079126080126081126082126083126084126085126086126087126088126089126090126091126092126093126094126095126096126097126098126099126100126101126102126103126104126105126106126107126108126109126110126111126112126113126114126115126116126117126118126119126120126121126122126123126124126125126126126127126128126129126130126131126132126133126134126135126136126137126138126139126140126141126142126143126144126145126146126147126148126149126150126151126152126153126154126155126156126157126158126159126160126161126162126163126164126165126166126167126168126169126170126171126172126173126174126175126176126177126178126179126180126181126182126183126184126185126186126187126188126189126190126191126192126193126194126195126196126197126198126199126200126201126202126203126204126205126206126207126208126209126210126211126212126213126214126215126216126217126218126219126220126221126222126223126224126225126226126227126228126229126230126231126232126233126234126235126236126237126238126239126240126241126242126243126244126245126246126247126248126249126250126251126252126253126254126255126256126257126258126259126260126261126262126263126264126265126266126267126268126269126270126271126272126273126274126275126276126277126278126279126280126281126282126283126284126285126286126287126288126289126290126291126292126293126294126295126296126297126298126299126300126301126302126303126304126305126306126307126308126309126310126311126312126313126314126315126316126317126318126319126320126321126322126323126324126325126326126327126328126329126330126331126332126333126334126335126336126337126338126339126340126341126342126343126344126345126346126347126348126349126350126351126352126353126354126355126356126357126358126359126360126361126362126363126364126365126366126367126368126369126370126371126372126373126374126375126376126377126378126379126380126381126382126383126384126385126386126387126388126389126390126391126392126393126394126395126396126397126398126399126400126401126402126403126404126405126406126407126408126409126410126411126412126413126414126415126416126417126418126419126420126421126422126423126424126425126426126427126428126429126430126431126432126433126434126435126436126437126438126439126440126441126442126443126444126445126446126447126448126449126450126451126452126453126454126455126456126457126458126459126460126461126462126463126464126465126466126467126468126469126470126471126472126473126474126475126476126477126478126479126480126481126482126483126484126485126486126487126488126489126490126491126492126493126494126495126496126497126498126499126500126501126502126503126504126505126506126507126508126509126510126511126512126513126514126515126516126517126518126519126520126521126522126523126524126525126526126527126528126529126530126531126532126533126534126535126536126537126538126539126540126541126542126543126544126545126546126547126548126549126550126551126552126553126554126555126556126557126558126559126560126561126562126563126564126565126566126567126568126569126570126571126572126573126574126575126576126577126578126579126580126581126582126583126584126585126586126587126588126589126590126591126592126593126594126595126596126597126598126599126600126601126602126603126604126605126606126607126608126609126610126611126612126613126614126615126616126617126618126619126620126621126622126623126624126625126626126627126628126629126630126631126632126633126634126635126636126637126638126639126640126641126642126643126644126645126646126647126648126649126650126651126652126653126654126655126656126657126658126659126660126661126662126663126664126665126666126667126668126669126670126671126672126673126674126675126676126677126678126679126680126681126682126683126684126685126686126687126688126689126690126691126692126693126694126695126696126697126698126699126700126701126702126703126704126705126706126707126708126709126710126711126712126713126714126715126716126717126718126719126720126721126722126723126724126725126726126727126728126729126730126731126732126733126734126735126736126737126738126739126740126741126742126743126744126745126746126747126748126749126750126751126752126753126754126755126756126757126758126759126760126761126762126763126764126765126766126767126768126769126770126771126772126773126774126775126776126777126778126779126780126781126782126783126784126785126786126787126788126789126790126791126792126793126794126795126796126797126798126799126800126801126802126803126804126805126806126807126808126809126810126811126812126813126814126815126816126817126818126819126820126821126822126823126824126825126826126827126828126829126830126831126832126833126834126835126836126837126838126839126840126841126842126843126844126845126846126847126848126849126850126851126852126853126854126855126856126857126858126859126860126861126862126863126864126865126866126867126868126869126870126871126872126873126874126875126876126877126878126879126880126881126882126883126884126885126886126887126888126889126890126891126892126893126894126895126896126897126898126899126900126901126902126903126904126905126906126907126908126909126910126911126912126913126914126915126916126917126918126919126920126921126922126923126924126925126926126927126928126929126930126931126932126933126934126935126936126937126938126939126940126941126942126943126944126945126946126947126948126949126950126951126952126953126954126955126956126957126958126959126960126961126962126963126964126965126966126967126968126969126970126971126972126973126974126975126976126977126978126979126980126981126982126983126984126985126986126987126988126989126990126991126992126993126994126995126996126997126998126999127000127001127002127003127004127005127006127007127008127009127010127011127012127013127014127015127016127017127018127019127020127021127022127023127024127025127026127027127028127029127030127031127032127033127034127035127036127037127038127039127040127041127042127043127044127045127046127047127048127049127050127051127052127053127054127055127056127057127058127059127060127061127062127063127064127065127066127067127068127069127070127071127072127073127074127075127076127077127078127079127080127081127082127083127084127085127086127087127088127089127090127091127092127093127094127095127096127097127098127099127100127101127102127103127104127105127106127107127108127109127110127111127112127113127114127115127116127117127118127119127120127121127122127123127124127125127126127127127128127129127130127131127132127133127134127135127136127137127138127139127140127141127142127143127144127145127146127147127148127149127150127151127152127153127154127155127156127157127158127159127160127161127162127163127164127165127166127167127168127169127170127171127172127173127174127175127176127177127178127179127180127181127182127183127184127185127186127187127188127189127190127191127192127193127194127195127196127197127198127199127200127201127202127203127204127205127206127207127208127209127210127211127212127213127214127215127216127217127218127219127220127221127222127223127224127225127226127227127228127229127230127231127232127233127234127235127236127237127238127239127240127241127242127243127244127245127246127247127248127249127250127251127252127253127254127255127256127257127258127259127260127261127262127263127264127265127266127267127268127269127270127271127272127273127274127275127276127277127278127279127280127281127282127283127284127285127286127287127288127289127290127291127292127293127294127295127296127297127298127299127300127301127302127303127304127305127306127307127308127309127310127311127312127313127314127315127316127317127318127319127320127321127322127323127324127325127326127327127328127329127330127331127332127333127334127335127336127337127338127339127340127341127342127343127344127345127346127347127348127349127350127351127352127353127354127355127356127357127358127359127360127361127362127363127364127365127366127367127368127369127370127371127372127373127374127375127376127377127378127379127380127381127382127383127384127385127386127387127388127389127390127391127392127393127394127395127396127397127398127399127400127401127402127403127404127405127406127407127408127409127410127411127412127413127414127415127416127417127418127419127420127421127422127423127424127425127426127427127428127429127430127431127432127433127434127435127436127437127438127439127440127441127442127443127444127445127446127447127448127449127450127451127452127453127454127455127456127457127458127459127460127461127462127463127464127465127466127467127468127469127470127471127472127473127474127475127476127477127478127479127480127481127482127483127484127485127486127487127488127489127490127491127492127493127494127495127496127497127498127499127500127501127502127503127504127505127506127507127508127509127510127511127512127513127514127515127516127517127518127519127520127521127522127523127524127525127526127527127528127529127530127531127532127533127534127535127536127537127538127539127540127541127542127543127544127545127546127547127548127549127550127551127552127553127554127555127556127557127558127559127560127561127562127563127564127565127566127567127568127569127570127571127572127573127574127575127576127577127578127579127580127581127582127583127584127585127586127587127588127589127590127591127592127593127594127595127596127597127598127599127600127601127602127603127604127605127606127607127608127609127610127611127612127613127614127615127616127617127618127619127620127621127622127623127624127625127626127627127628127629127630127631127632127633127634127635127636127637127638127639127640127641127642127643127644127645127646127647127648127649127650127651127652127653127654127655127656127657127658127659127660127661127662127663127664127665127666127667127668127669127670127671127672127673127674127675127676127677127678127679127680127681127682127683127684127685127686127687127688127689127690127691127692127693127694127695127696127697127698127699127700127701127702127703127704127705127706127707127708127709127710127711127712127713127714127715127716127717127718127719127720127721127722127723127724127725127726127727127728127729127730127731127732127733127734127735127736127737127738127739127740127741127742127743127744127745127746127747127748127749127750127751127752127753127754127755127756127757127758127759127760127761127762127763127764127765127766127767127768127769127770127771127772127773127774127775127776127777127778127779127780127781127782127783127784127785127786127787127788127789127790127791127792127793127794127795127796127797127798127799127800127801127802127803127804127805127806127807127808127809127810127811127812127813127814127815127816127817127818127819127820127821127822127823127824127825127826127827127828127829127830127831127832127833127834127835127836127837127838127839127840127841127842127843127844127845127846127847127848127849127850127851127852127853127854127855127856127857127858127859127860127861127862127863127864127865127866127867127868127869127870127871127872127873127874127875127876127877127878127879127880127881127882127883127884127885127886127887127888127889127890127891
  1. /*!
  2. * jQuery JavaScript Library v1.11.3
  3. * http://jquery.com/
  4. *
  5. * Includes Sizzle.js
  6. * http://sizzlejs.com/
  7. *
  8. * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
  9. * Released under the MIT license
  10. * http://jquery.org/license
  11. *
  12. * Date: 2015-04-28T16:19Z
  13. */
  14. (function( global, factory ) {
  15. if ( typeof module === "object" && typeof module.exports === "object" ) {
  16. // For CommonJS and CommonJS-like environments where a proper window is present,
  17. // execute the factory and get jQuery
  18. // For environments that do not inherently posses a window with a document
  19. // (such as Node.js), expose a jQuery-making factory as module.exports
  20. // This accentuates the need for the creation of a real window
  21. // e.g. var jQuery = require("jquery")(window);
  22. // See ticket #14549 for more info
  23. module.exports = global.document ?
  24. factory( global, true ) :
  25. function( w ) {
  26. if ( !w.document ) {
  27. throw new Error( "jQuery requires a window with a document" );
  28. }
  29. return factory( w );
  30. };
  31. } else {
  32. factory( global );
  33. }
  34. // Pass this if window is not defined yet
  35. }(typeof window !== "undefined" ? window : this, function( window, noGlobal ) {
  36. // Can't do this because several apps including ASP.NET trace
  37. // the stack via arguments.caller.callee and Firefox dies if
  38. // you try to trace through "use strict" call chains. (#13335)
  39. // Support: Firefox 18+
  40. //
  41. var deletedIds = [];
  42. var slice = deletedIds.slice;
  43. var concat = deletedIds.concat;
  44. var push = deletedIds.push;
  45. var indexOf = deletedIds.indexOf;
  46. var class2type = {};
  47. var toString = class2type.toString;
  48. var hasOwn = class2type.hasOwnProperty;
  49. var support = {};
  50. var
  51. version = "1.11.3",
  52. // Define a local copy of jQuery
  53. jQuery = function( selector, context ) {
  54. // The jQuery object is actually just the init constructor 'enhanced'
  55. // Need init if jQuery is called (just allow error to be thrown if not included)
  56. return new jQuery.fn.init( selector, context );
  57. },
  58. // Support: Android<4.1, IE<9
  59. // Make sure we trim BOM and NBSP
  60. rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
  61. // Matches dashed string for camelizing
  62. rmsPrefix = /^-ms-/,
  63. rdashAlpha = /-([\da-z])/gi,
  64. // Used by jQuery.camelCase as callback to replace()
  65. fcamelCase = function( all, letter ) {
  66. return letter.toUpperCase();
  67. };
  68. jQuery.fn = jQuery.prototype = {
  69. // The current version of jQuery being used
  70. jquery: version,
  71. constructor: jQuery,
  72. // Start with an empty selector
  73. selector: "",
  74. // The default length of a jQuery object is 0
  75. length: 0,
  76. toArray: function() {
  77. return slice.call( this );
  78. },
  79. // Get the Nth element in the matched element set OR
  80. // Get the whole matched element set as a clean array
  81. get: function( num ) {
  82. return num != null ?
  83. // Return just the one element from the set
  84. ( num < 0 ? this[ num + this.length ] : this[ num ] ) :
  85. // Return all the elements in a clean array
  86. slice.call( this );
  87. },
  88. // Take an array of elements and push it onto the stack
  89. // (returning the new matched element set)
  90. pushStack: function( elems ) {
  91. // Build a new jQuery matched element set
  92. var ret = jQuery.merge( this.constructor(), elems );
  93. // Add the old object onto the stack (as a reference)
  94. ret.prevObject = this;
  95. ret.context = this.context;
  96. // Return the newly-formed element set
  97. return ret;
  98. },
  99. // Execute a callback for every element in the matched set.
  100. // (You can seed the arguments with an array of args, but this is
  101. // only used internally.)
  102. each: function( callback, args ) {
  103. return jQuery.each( this, callback, args );
  104. },
  105. map: function( callback ) {
  106. return this.pushStack( jQuery.map(this, function( elem, i ) {
  107. return callback.call( elem, i, elem );
  108. }));
  109. },
  110. slice: function() {
  111. return this.pushStack( slice.apply( this, arguments ) );
  112. },
  113. first: function() {
  114. return this.eq( 0 );
  115. },
  116. last: function() {
  117. return this.eq( -1 );
  118. },
  119. eq: function( i ) {
  120. var len = this.length,
  121. j = +i + ( i < 0 ? len : 0 );
  122. return this.pushStack( j >= 0 && j < len ? [ this[j] ] : [] );
  123. },
  124. end: function() {
  125. return this.prevObject || this.constructor(null);
  126. },
  127. // For internal use only.
  128. // Behaves like an Array's method, not like a jQuery method.
  129. push: push,
  130. sort: deletedIds.sort,
  131. splice: deletedIds.splice
  132. };
  133. jQuery.extend = jQuery.fn.extend = function() {
  134. var src, copyIsArray, copy, name, options, clone,
  135. target = arguments[0] || {},
  136. i = 1,
  137. length = arguments.length,
  138. deep = false;
  139. // Handle a deep copy situation
  140. if ( typeof target === "boolean" ) {
  141. deep = target;
  142. // skip the boolean and the target
  143. target = arguments[ i ] || {};
  144. i++;
  145. }
  146. // Handle case when target is a string or something (possible in deep copy)
  147. if ( typeof target !== "object" && !jQuery.isFunction(target) ) {
  148. target = {};
  149. }
  150. // extend jQuery itself if only one argument is passed
  151. if ( i === length ) {
  152. target = this;
  153. i--;
  154. }
  155. for ( ; i < length; i++ ) {
  156. // Only deal with non-null/undefined values
  157. if ( (options = arguments[ i ]) != null ) {
  158. // Extend the base object
  159. for ( name in options ) {
  160. src = target[ name ];
  161. copy = options[ name ];
  162. // Prevent never-ending loop
  163. if ( target === copy ) {
  164. continue;
  165. }
  166. // Recurse if we're merging plain objects or arrays
  167. if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) {
  168. if ( copyIsArray ) {
  169. copyIsArray = false;
  170. clone = src && jQuery.isArray(src) ? src : [];
  171. } else {
  172. clone = src && jQuery.isPlainObject(src) ? src : {};
  173. }
  174. // Never move original objects, clone them
  175. target[ name ] = jQuery.extend( deep, clone, copy );
  176. // Don't bring in undefined values
  177. } else if ( copy !== undefined ) {
  178. target[ name ] = copy;
  179. }
  180. }
  181. }
  182. }
  183. // Return the modified object
  184. return target;
  185. };
  186. jQuery.extend({
  187. // Unique for each copy of jQuery on the page
  188. expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ),
  189. // Assume jQuery is ready without the ready module
  190. isReady: true,
  191. error: function( msg ) {
  192. throw new Error( msg );
  193. },
  194. noop: function() {},
  195. // See test/unit/core.js for details concerning isFunction.
  196. // Since version 1.3, DOM methods and functions like alert
  197. // aren't supported. They return false on IE (#2968).
  198. isFunction: function( obj ) {
  199. return jQuery.type(obj) === "function";
  200. },
  201. isArray: Array.isArray || function( obj ) {
  202. return jQuery.type(obj) === "array";
  203. },
  204. isWindow: function( obj ) {
  205. /* jshint eqeqeq: false */
  206. return obj != null && obj == obj.window;
  207. },
  208. isNumeric: function( obj ) {
  209. // parseFloat NaNs numeric-cast false positives (null|true|false|"")
  210. // ...but misinterprets leading-number strings, particularly hex literals ("0x...")
  211. // subtraction forces infinities to NaN
  212. // adding 1 corrects loss of precision from parseFloat (#15100)
  213. return !jQuery.isArray( obj ) && (obj - parseFloat( obj ) + 1) >= 0;
  214. },
  215. isEmptyObject: function( obj ) {
  216. var name;
  217. for ( name in obj ) {
  218. return false;
  219. }
  220. return true;
  221. },
  222. isPlainObject: function( obj ) {
  223. var key;
  224. // Must be an Object.
  225. // Because of IE, we also have to check the presence of the constructor property.
  226. // Make sure that DOM nodes and window objects don't pass through, as well
  227. if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) {
  228. return false;
  229. }
  230. try {
  231. // Not own constructor property must be Object
  232. if ( obj.constructor &&
  233. !hasOwn.call(obj, "constructor") &&
  234. !hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) {
  235. return false;
  236. }
  237. } catch ( e ) {
  238. // IE8,9 Will throw exceptions on certain host objects #9897
  239. return false;
  240. }
  241. // Support: IE<9
  242. // Handle iteration over inherited properties before own properties.
  243. if ( support.ownLast ) {
  244. for ( key in obj ) {
  245. return hasOwn.call( obj, key );
  246. }
  247. }
  248. // Own properties are enumerated firstly, so to speed up,
  249. // if last one is own, then all properties are own.
  250. for ( key in obj ) {}
  251. return key === undefined || hasOwn.call( obj, key );
  252. },
  253. type: function( obj ) {
  254. if ( obj == null ) {
  255. return obj + "";
  256. }
  257. return typeof obj === "object" || typeof obj === "function" ?
  258. class2type[ toString.call(obj) ] || "object" :
  259. typeof obj;
  260. },
  261. // Evaluates a script in a global context
  262. // Workarounds based on findings by Jim Driscoll
  263. // http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context
  264. globalEval: function( data ) {
  265. if ( data && jQuery.trim( data ) ) {
  266. // We use execScript on Internet Explorer
  267. // We use an anonymous function so that context is window
  268. // rather than jQuery in Firefox
  269. ( window.execScript || function( data ) {
  270. window[ "eval" ].call( window, data );
  271. } )( data );
  272. }
  273. },
  274. // Convert dashed to camelCase; used by the css and data modules
  275. // Microsoft forgot to hump their vendor prefix (#9572)
  276. camelCase: function( string ) {
  277. return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
  278. },
  279. nodeName: function( elem, name ) {
  280. return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
  281. },
  282. // args is for internal usage only
  283. each: function( obj, callback, args ) {
  284. var value,
  285. i = 0,
  286. length = obj.length,
  287. isArray = isArraylike( obj );
  288. if ( args ) {
  289. if ( isArray ) {
  290. for ( ; i < length; i++ ) {
  291. value = callback.apply( obj[ i ], args );
  292. if ( value === false ) {
  293. break;
  294. }
  295. }
  296. } else {
  297. for ( i in obj ) {
  298. value = callback.apply( obj[ i ], args );
  299. if ( value === false ) {
  300. break;
  301. }
  302. }
  303. }
  304. // A special, fast, case for the most common use of each
  305. } else {
  306. if ( isArray ) {
  307. for ( ; i < length; i++ ) {
  308. value = callback.call( obj[ i ], i, obj[ i ] );
  309. if ( value === false ) {
  310. break;
  311. }
  312. }
  313. } else {
  314. for ( i in obj ) {
  315. value = callback.call( obj[ i ], i, obj[ i ] );
  316. if ( value === false ) {
  317. break;
  318. }
  319. }
  320. }
  321. }
  322. return obj;
  323. },
  324. // Support: Android<4.1, IE<9
  325. trim: function( text ) {
  326. return text == null ?
  327. "" :
  328. ( text + "" ).replace( rtrim, "" );
  329. },
  330. // results is for internal usage only
  331. makeArray: function( arr, results ) {
  332. var ret = results || [];
  333. if ( arr != null ) {
  334. if ( isArraylike( Object(arr) ) ) {
  335. jQuery.merge( ret,
  336. typeof arr === "string" ?
  337. [ arr ] : arr
  338. );
  339. } else {
  340. push.call( ret, arr );
  341. }
  342. }
  343. return ret;
  344. },
  345. inArray: function( elem, arr, i ) {
  346. var len;
  347. if ( arr ) {
  348. if ( indexOf ) {
  349. return indexOf.call( arr, elem, i );
  350. }
  351. len = arr.length;
  352. i = i ? i < 0 ? Math.max( 0, len + i ) : i : 0;
  353. for ( ; i < len; i++ ) {
  354. // Skip accessing in sparse arrays
  355. if ( i in arr && arr[ i ] === elem ) {
  356. return i;
  357. }
  358. }
  359. }
  360. return -1;
  361. },
  362. merge: function( first, second ) {
  363. var len = +second.length,
  364. j = 0,
  365. i = first.length;
  366. while ( j < len ) {
  367. first[ i++ ] = second[ j++ ];
  368. }
  369. // Support: IE<9
  370. // Workaround casting of .length to NaN on otherwise arraylike objects (e.g., NodeLists)
  371. if ( len !== len ) {
  372. while ( second[j] !== undefined ) {
  373. first[ i++ ] = second[ j++ ];
  374. }
  375. }
  376. first.length = i;
  377. return first;
  378. },
  379. grep: function( elems, callback, invert ) {
  380. var callbackInverse,
  381. matches = [],
  382. i = 0,
  383. length = elems.length,
  384. callbackExpect = !invert;
  385. // Go through the array, only saving the items
  386. // that pass the validator function
  387. for ( ; i < length; i++ ) {
  388. callbackInverse = !callback( elems[ i ], i );
  389. if ( callbackInverse !== callbackExpect ) {
  390. matches.push( elems[ i ] );
  391. }
  392. }
  393. return matches;
  394. },
  395. // arg is for internal usage only
  396. map: function( elems, callback, arg ) {
  397. var value,
  398. i = 0,
  399. length = elems.length,
  400. isArray = isArraylike( elems ),
  401. ret = [];
  402. // Go through the array, translating each of the items to their new values
  403. if ( isArray ) {
  404. for ( ; i < length; i++ ) {
  405. value = callback( elems[ i ], i, arg );
  406. if ( value != null ) {
  407. ret.push( value );
  408. }
  409. }
  410. // Go through every key on the object,
  411. } else {
  412. for ( i in elems ) {
  413. value = callback( elems[ i ], i, arg );
  414. if ( value != null ) {
  415. ret.push( value );
  416. }
  417. }
  418. }
  419. // Flatten any nested arrays
  420. return concat.apply( [], ret );
  421. },
  422. // A global GUID counter for objects
  423. guid: 1,
  424. // Bind a function to a context, optionally partially applying any
  425. // arguments.
  426. proxy: function( fn, context ) {
  427. var args, proxy, tmp;
  428. if ( typeof context === "string" ) {
  429. tmp = fn[ context ];
  430. context = fn;
  431. fn = tmp;
  432. }
  433. // Quick check to determine if target is callable, in the spec
  434. // this throws a TypeError, but we will just return undefined.
  435. if ( !jQuery.isFunction( fn ) ) {
  436. return undefined;
  437. }
  438. // Simulated bind
  439. args = slice.call( arguments, 2 );
  440. proxy = function() {
  441. return fn.apply( context || this, args.concat( slice.call( arguments ) ) );
  442. };
  443. // Set the guid of unique handler to the same of original handler, so it can be removed
  444. proxy.guid = fn.guid = fn.guid || jQuery.guid++;
  445. return proxy;
  446. },
  447. now: function() {
  448. return +( new Date() );
  449. },
  450. // jQuery.support is not used in Core but other projects attach their
  451. // properties to it so it needs to exist.
  452. support: support
  453. });
  454. // Populate the class2type map
  455. jQuery.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(i, name) {
  456. class2type[ "[object " + name + "]" ] = name.toLowerCase();
  457. });
  458. function isArraylike( obj ) {
  459. // Support: iOS 8.2 (not reproducible in simulator)
  460. // `in` check used to prevent JIT error (gh-2145)
  461. // hasOwn isn't used here due to false negatives
  462. // regarding Nodelist length in IE
  463. var length = "length" in obj && obj.length,
  464. type = jQuery.type( obj );
  465. if ( type === "function" || jQuery.isWindow( obj ) ) {
  466. return false;
  467. }
  468. if ( obj.nodeType === 1 && length ) {
  469. return true;
  470. }
  471. return type === "array" || length === 0 ||
  472. typeof length === "number" && length > 0 && ( length - 1 ) in obj;
  473. }
  474. var Sizzle =
  475. /*!
  476. * Sizzle CSS Selector Engine v2.2.0-pre
  477. * http://sizzlejs.com/
  478. *
  479. * Copyright 2008, 2014 jQuery Foundation, Inc. and other contributors
  480. * Released under the MIT license
  481. * http://jquery.org/license
  482. *
  483. * Date: 2014-12-16
  484. */
  485. (function( window ) {
  486. var i,
  487. support,
  488. Expr,
  489. getText,
  490. isXML,
  491. tokenize,
  492. compile,
  493. select,
  494. outermostContext,
  495. sortInput,
  496. hasDuplicate,
  497. // Local document vars
  498. setDocument,
  499. document,
  500. docElem,
  501. documentIsHTML,
  502. rbuggyQSA,
  503. rbuggyMatches,
  504. matches,
  505. contains,
  506. // Instance-specific data
  507. expando = "sizzle" + 1 * new Date(),
  508. preferredDoc = window.document,
  509. dirruns = 0,
  510. done = 0,
  511. classCache = createCache(),
  512. tokenCache = createCache(),
  513. compilerCache = createCache(),
  514. sortOrder = function( a, b ) {
  515. if ( a === b ) {
  516. hasDuplicate = true;
  517. }
  518. return 0;
  519. },
  520. // General-purpose constants
  521. MAX_NEGATIVE = 1 << 31,
  522. // Instance methods
  523. hasOwn = ({}).hasOwnProperty,
  524. arr = [],
  525. pop = arr.pop,
  526. push_native = arr.push,
  527. push = arr.push,
  528. slice = arr.slice,
  529. // Use a stripped-down indexOf as it's faster than native
  530. // http://jsperf.com/thor-indexof-vs-for/5
  531. indexOf = function( list, elem ) {
  532. var i = 0,
  533. len = list.length;
  534. for ( ; i < len; i++ ) {
  535. if ( list[i] === elem ) {
  536. return i;
  537. }
  538. }
  539. return -1;
  540. },
  541. booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
  542. // Regular expressions
  543. // Whitespace characters http://www.w3.org/TR/css3-selectors/#whitespace
  544. whitespace = "[\\x20\\t\\r\\n\\f]",
  545. // http://www.w3.org/TR/css3-syntax/#characters
  546. characterEncoding = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",
  547. // Loosely modeled on CSS identifier characters
  548. // An unquoted value should be a CSS identifier http://www.w3.org/TR/css3-selectors/#attribute-selectors
  549. // Proper syntax: http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier
  550. identifier = characterEncoding.replace( "w", "w#" ),
  551. // Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors
  552. attributes = "\\[" + whitespace + "*(" + characterEncoding + ")(?:" + whitespace +
  553. // Operator (capture 2)
  554. "*([*^$|!~]?=)" + whitespace +
  555. // "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]"
  556. "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + whitespace +
  557. "*\\]",
  558. pseudos = ":(" + characterEncoding + ")(?:\\((" +
  559. // To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:
  560. // 1. quoted (capture 3; capture 4 or capture 5)
  561. "('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" +
  562. // 2. simple (capture 6)
  563. "((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" +
  564. // 3. anything else (capture 2)
  565. ".*" +
  566. ")\\)|)",
  567. // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter
  568. rwhitespace = new RegExp( whitespace + "+", "g" ),
  569. rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ),
  570. rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ),
  571. rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ),
  572. rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*?)" + whitespace + "*\\]", "g" ),
  573. rpseudo = new RegExp( pseudos ),
  574. ridentifier = new RegExp( "^" + identifier + "$" ),
  575. matchExpr = {
  576. "ID": new RegExp( "^#(" + characterEncoding + ")" ),
  577. "CLASS": new RegExp( "^\\.(" + characterEncoding + ")" ),
  578. "TAG": new RegExp( "^(" + characterEncoding.replace( "w", "w*" ) + ")" ),
  579. "ATTR": new RegExp( "^" + attributes ),
  580. "PSEUDO": new RegExp( "^" + pseudos ),
  581. "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace +
  582. "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace +
  583. "*(\\d+)|))" + whitespace + "*\\)|)", "i" ),
  584. "bool": new RegExp( "^(?:" + booleans + ")$", "i" ),
  585. // For use in libraries implementing .is()
  586. // We use this for POS matching in `select`
  587. "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" +
  588. whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" )
  589. },
  590. rinputs = /^(?:input|select|textarea|button)$/i,
  591. rheader = /^h\d$/i,
  592. rnative = /^[^{]+\{\s*\[native \w/,
  593. // Easily-parseable/retrievable ID or TAG or CLASS selectors
  594. rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
  595. rsibling = /[+~]/,
  596. rescape = /'|\\/g,
  597. // CSS escapes http://www.w3.org/TR/CSS21/syndata.html#escaped-characters
  598. runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ),
  599. funescape = function( _, escaped, escapedWhitespace ) {
  600. var high = "0x" + escaped - 0x10000;
  601. // NaN means non-codepoint
  602. // Support: Firefox<24
  603. // Workaround erroneous numeric interpretation of +"0x"
  604. return high !== high || escapedWhitespace ?
  605. escaped :
  606. high < 0 ?
  607. // BMP codepoint
  608. String.fromCharCode( high + 0x10000 ) :
  609. // Supplemental Plane codepoint (surrogate pair)
  610. String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );
  611. },
  612. // Used for iframes
  613. // See setDocument()
  614. // Removing the function wrapper causes a "Permission Denied"
  615. // error in IE
  616. unloadHandler = function() {
  617. setDocument();
  618. };
  619. // Optimize for push.apply( _, NodeList )
  620. try {
  621. push.apply(
  622. (arr = slice.call( preferredDoc.childNodes )),
  623. preferredDoc.childNodes
  624. );
  625. // Support: Android<4.0
  626. // Detect silently failing push.apply
  627. arr[ preferredDoc.childNodes.length ].nodeType;
  628. } catch ( e ) {
  629. push = { apply: arr.length ?
  630. // Leverage slice if possible
  631. function( target, els ) {
  632. push_native.apply( target, slice.call(els) );
  633. } :
  634. // Support: IE<9
  635. // Otherwise append directly
  636. function( target, els ) {
  637. var j = target.length,
  638. i = 0;
  639. // Can't trust NodeList.length
  640. while ( (target[j++] = els[i++]) ) {}
  641. target.length = j - 1;
  642. }
  643. };
  644. }
  645. function Sizzle( selector, context, results, seed ) {
  646. var match, elem, m, nodeType,
  647. // QSA vars
  648. i, groups, old, nid, newContext, newSelector;
  649. if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) {
  650. setDocument( context );
  651. }
  652. context = context || document;
  653. results = results || [];
  654. nodeType = context.nodeType;
  655. if ( typeof selector !== "string" || !selector ||
  656. nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) {
  657. return results;
  658. }
  659. if ( !seed && documentIsHTML ) {
  660. // Try to shortcut find operations when possible (e.g., not under DocumentFragment)
  661. if ( nodeType !== 11 && (match = rquickExpr.exec( selector )) ) {
  662. // Speed-up: Sizzle("#ID")
  663. if ( (m = match[1]) ) {
  664. if ( nodeType === 9 ) {
  665. elem = context.getElementById( m );
  666. // Check parentNode to catch when Blackberry 4.6 returns
  667. // nodes that are no longer in the document (jQuery #6963)
  668. if ( elem && elem.parentNode ) {
  669. // Handle the case where IE, Opera, and Webkit return items
  670. // by name instead of ID
  671. if ( elem.id === m ) {
  672. results.push( elem );
  673. return results;
  674. }
  675. } else {
  676. return results;
  677. }
  678. } else {
  679. // Context is not a document
  680. if ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) &&
  681. contains( context, elem ) && elem.id === m ) {
  682. results.push( elem );
  683. return results;
  684. }
  685. }
  686. // Speed-up: Sizzle("TAG")
  687. } else if ( match[2] ) {
  688. push.apply( results, context.getElementsByTagName( selector ) );
  689. return results;
  690. // Speed-up: Sizzle(".CLASS")
  691. } else if ( (m = match[3]) && support.getElementsByClassName ) {
  692. push.apply( results, context.getElementsByClassName( m ) );
  693. return results;
  694. }
  695. }
  696. // QSA path
  697. if ( support.qsa && (!rbuggyQSA || !rbuggyQSA.test( selector )) ) {
  698. nid = old = expando;
  699. newContext = context;
  700. newSelector = nodeType !== 1 && selector;
  701. // qSA works strangely on Element-rooted queries
  702. // We can work around this by specifying an extra ID on the root
  703. // and working up from there (Thanks to Andrew Dupont for the technique)
  704. // IE 8 doesn't work on object elements
  705. if ( nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) {
  706. groups = tokenize( selector );
  707. if ( (old = context.getAttribute("id")) ) {
  708. nid = old.replace( rescape, "\\$&" );
  709. } else {
  710. context.setAttribute( "id", nid );
  711. }
  712. nid = "[id='" + nid + "'] ";
  713. i = groups.length;
  714. while ( i-- ) {
  715. groups[i] = nid + toSelector( groups[i] );
  716. }
  717. newContext = rsibling.test( selector ) && testContext( context.parentNode ) || context;
  718. newSelector = groups.join(",");
  719. }
  720. if ( newSelector ) {
  721. try {
  722. push.apply( results,
  723. newContext.querySelectorAll( newSelector )
  724. );
  725. return results;
  726. } catch(qsaError) {
  727. } finally {
  728. if ( !old ) {
  729. context.removeAttribute("id");
  730. }
  731. }
  732. }
  733. }
  734. }
  735. // All others
  736. return select( selector.replace( rtrim, "$1" ), context, results, seed );
  737. }
  738. /**
  739. * Create key-value caches of limited size
  740. * @returns {Function(string, Object)} Returns the Object data after storing it on itself with
  741. * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)
  742. * deleting the oldest entry
  743. */
  744. function createCache() {
  745. var keys = [];
  746. function cache( key, value ) {
  747. // Use (key + " ") to avoid collision with native prototype properties (see Issue #157)
  748. if ( keys.push( key + " " ) > Expr.cacheLength ) {
  749. // Only keep the most recent entries
  750. delete cache[ keys.shift() ];
  751. }
  752. return (cache[ key + " " ] = value);
  753. }
  754. return cache;
  755. }
  756. /**
  757. * Mark a function for special use by Sizzle
  758. * @param {Function} fn The function to mark
  759. */
  760. function markFunction( fn ) {
  761. fn[ expando ] = true;
  762. return fn;
  763. }
  764. /**
  765. * Support testing using an element
  766. * @param {Function} fn Passed the created div and expects a boolean result
  767. */
  768. function assert( fn ) {
  769. var div = document.createElement("div");
  770. try {
  771. return !!fn( div );
  772. } catch (e) {
  773. return false;
  774. } finally {
  775. // Remove from its parent by default
  776. if ( div.parentNode ) {
  777. div.parentNode.removeChild( div );
  778. }
  779. // release memory in IE
  780. div = null;
  781. }
  782. }
  783. /**
  784. * Adds the same handler for all of the specified attrs
  785. * @param {String} attrs Pipe-separated list of attributes
  786. * @param {Function} handler The method that will be applied
  787. */
  788. function addHandle( attrs, handler ) {
  789. var arr = attrs.split("|"),
  790. i = attrs.length;
  791. while ( i-- ) {
  792. Expr.attrHandle[ arr[i] ] = handler;
  793. }
  794. }
  795. /**
  796. * Checks document order of two siblings
  797. * @param {Element} a
  798. * @param {Element} b
  799. * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b
  800. */
  801. function siblingCheck( a, b ) {
  802. var cur = b && a,
  803. diff = cur && a.nodeType === 1 && b.nodeType === 1 &&
  804. ( ~b.sourceIndex || MAX_NEGATIVE ) -
  805. ( ~a.sourceIndex || MAX_NEGATIVE );
  806. // Use IE sourceIndex if available on both nodes
  807. if ( diff ) {
  808. return diff;
  809. }
  810. // Check if b follows a
  811. if ( cur ) {
  812. while ( (cur = cur.nextSibling) ) {
  813. if ( cur === b ) {
  814. return -1;
  815. }
  816. }
  817. }
  818. return a ? 1 : -1;
  819. }
  820. /**
  821. * Returns a function to use in pseudos for input types
  822. * @param {String} type
  823. */
  824. function createInputPseudo( type ) {
  825. return function( elem ) {
  826. var name = elem.nodeName.toLowerCase();
  827. return name === "input" && elem.type === type;
  828. };
  829. }
  830. /**
  831. * Returns a function to use in pseudos for buttons
  832. * @param {String} type
  833. */
  834. function createButtonPseudo( type ) {
  835. return function( elem ) {
  836. var name = elem.nodeName.toLowerCase();
  837. return (name === "input" || name === "button") && elem.type === type;
  838. };
  839. }
  840. /**
  841. * Returns a function to use in pseudos for positionals
  842. * @param {Function} fn
  843. */
  844. function createPositionalPseudo( fn ) {
  845. return markFunction(function( argument ) {
  846. argument = +argument;
  847. return markFunction(function( seed, matches ) {
  848. var j,
  849. matchIndexes = fn( [], seed.length, argument ),
  850. i = matchIndexes.length;
  851. // Match elements found at the specified indexes
  852. while ( i-- ) {
  853. if ( seed[ (j = matchIndexes[i]) ] ) {
  854. seed[j] = !(matches[j] = seed[j]);
  855. }
  856. }
  857. });
  858. });
  859. }
  860. /**
  861. * Checks a node for validity as a Sizzle context
  862. * @param {Element|Object=} context
  863. * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value
  864. */
  865. function testContext( context ) {
  866. return context && typeof context.getElementsByTagName !== "undefined" && context;
  867. }
  868. // Expose support vars for convenience
  869. support = Sizzle.support = {};
  870. /**
  871. * Detects XML nodes
  872. * @param {Element|Object} elem An element or a document
  873. * @returns {Boolean} True iff elem is a non-HTML XML node
  874. */
  875. isXML = Sizzle.isXML = function( elem ) {
  876. // documentElement is verified for cases where it doesn't yet exist
  877. // (such as loading iframes in IE - #4833)
  878. var documentElement = elem && (elem.ownerDocument || elem).documentElement;
  879. return documentElement ? documentElement.nodeName !== "HTML" : false;
  880. };
  881. /**
  882. * Sets document-related variables once based on the current document
  883. * @param {Element|Object} [doc] An element or document object to use to set the document
  884. * @returns {Object} Returns the current document
  885. */
  886. setDocument = Sizzle.setDocument = function( node ) {
  887. var hasCompare, parent,
  888. doc = node ? node.ownerDocument || node : preferredDoc;
  889. // If no document and documentElement is available, return
  890. if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) {
  891. return document;
  892. }
  893. // Set our document
  894. document = doc;
  895. docElem = doc.documentElement;
  896. parent = doc.defaultView;
  897. // Support: IE>8
  898. // If iframe document is assigned to "document" variable and if iframe has been reloaded,
  899. // IE will throw "permission denied" error when accessing "document" variable, see jQuery #13936
  900. // IE6-8 do not support the defaultView property so parent will be undefined
  901. if ( parent && parent !== parent.top ) {
  902. // IE11 does not have attachEvent, so all must suffer
  903. if ( parent.addEventListener ) {
  904. parent.addEventListener( "unload", unloadHandler, false );
  905. } else if ( parent.attachEvent ) {
  906. parent.attachEvent( "onunload", unloadHandler );
  907. }
  908. }
  909. /* Support tests
  910. ---------------------------------------------------------------------- */
  911. documentIsHTML = !isXML( doc );
  912. /* Attributes
  913. ---------------------------------------------------------------------- */
  914. // Support: IE<8
  915. // Verify that getAttribute really returns attributes and not properties
  916. // (excepting IE8 booleans)
  917. support.attributes = assert(function( div ) {
  918. div.className = "i";
  919. return !div.getAttribute("className");
  920. });
  921. /* getElement(s)By*
  922. ---------------------------------------------------------------------- */
  923. // Check if getElementsByTagName("*") returns only elements
  924. support.getElementsByTagName = assert(function( div ) {
  925. div.appendChild( doc.createComment("") );
  926. return !div.getElementsByTagName("*").length;
  927. });
  928. // Support: IE<9
  929. support.getElementsByClassName = rnative.test( doc.getElementsByClassName );
  930. // Support: IE<10
  931. // Check if getElementById returns elements by name
  932. // The broken getElementById methods don't pick up programatically-set names,
  933. // so use a roundabout getElementsByName test
  934. support.getById = assert(function( div ) {
  935. docElem.appendChild( div ).id = expando;
  936. return !doc.getElementsByName || !doc.getElementsByName( expando ).length;
  937. });
  938. // ID find and filter
  939. if ( support.getById ) {
  940. Expr.find["ID"] = function( id, context ) {
  941. if ( typeof context.getElementById !== "undefined" && documentIsHTML ) {
  942. var m = context.getElementById( id );
  943. // Check parentNode to catch when Blackberry 4.6 returns
  944. // nodes that are no longer in the document #6963
  945. return m && m.parentNode ? [ m ] : [];
  946. }
  947. };
  948. Expr.filter["ID"] = function( id ) {
  949. var attrId = id.replace( runescape, funescape );
  950. return function( elem ) {
  951. return elem.getAttribute("id") === attrId;
  952. };
  953. };
  954. } else {
  955. // Support: IE6/7
  956. // getElementById is not reliable as a find shortcut
  957. delete Expr.find["ID"];
  958. Expr.filter["ID"] = function( id ) {
  959. var attrId = id.replace( runescape, funescape );
  960. return function( elem ) {
  961. var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id");
  962. return node && node.value === attrId;
  963. };
  964. };
  965. }
  966. // Tag
  967. Expr.find["TAG"] = support.getElementsByTagName ?
  968. function( tag, context ) {
  969. if ( typeof context.getElementsByTagName !== "undefined" ) {
  970. return context.getElementsByTagName( tag );
  971. // DocumentFragment nodes don't have gEBTN
  972. } else if ( support.qsa ) {
  973. return context.querySelectorAll( tag );
  974. }
  975. } :
  976. function( tag, context ) {
  977. var elem,
  978. tmp = [],
  979. i = 0,
  980. // By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too
  981. results = context.getElementsByTagName( tag );
  982. // Filter out possible comments
  983. if ( tag === "*" ) {
  984. while ( (elem = results[i++]) ) {
  985. if ( elem.nodeType === 1 ) {
  986. tmp.push( elem );
  987. }
  988. }
  989. return tmp;
  990. }
  991. return results;
  992. };
  993. // Class
  994. Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) {
  995. if ( documentIsHTML ) {
  996. return context.getElementsByClassName( className );
  997. }
  998. };
  999. /* QSA/matchesSelector
  1000. ---------------------------------------------------------------------- */
  1001. // QSA and matchesSelector support
  1002. // matchesSelector(:active) reports false when true (IE9/Opera 11.5)
  1003. rbuggyMatches = [];
  1004. // qSa(:focus) reports false when true (Chrome 21)
  1005. // We allow this because of a bug in IE8/9 that throws an error
  1006. // whenever `document.activeElement` is accessed on an iframe
  1007. // So, we allow :focus to pass through QSA all the time to avoid the IE error
  1008. // See http://bugs.jquery.com/ticket/13378
  1009. rbuggyQSA = [];
  1010. if ( (support.qsa = rnative.test( doc.querySelectorAll )) ) {
  1011. // Build QSA regex
  1012. // Regex strategy adopted from Diego Perini
  1013. assert(function( div ) {
  1014. // Select is set to empty string on purpose
  1015. // This is to test IE's treatment of not explicitly
  1016. // setting a boolean content attribute,
  1017. // since its presence should be enough
  1018. // http://bugs.jquery.com/ticket/12359
  1019. docElem.appendChild( div ).innerHTML = "<a id='" + expando + "'></a>" +
  1020. "<select id='" + expando + "-\f]' msallowcapture=''>" +
  1021. "<option selected=''></option></select>";
  1022. // Support: IE8, Opera 11-12.16
  1023. // Nothing should be selected when empty strings follow ^= or $= or *=
  1024. // The test attribute must be unknown in Opera but "safe" for WinRT
  1025. // http://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section
  1026. if ( div.querySelectorAll("[msallowcapture^='']").length ) {
  1027. rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" );
  1028. }
  1029. // Support: IE8
  1030. // Boolean attributes and "value" are not treated correctly
  1031. if ( !div.querySelectorAll("[selected]").length ) {
  1032. rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" );
  1033. }
  1034. // Support: Chrome<29, Android<4.2+, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.7+
  1035. if ( !div.querySelectorAll( "[id~=" + expando + "-]" ).length ) {
  1036. rbuggyQSA.push("~=");
  1037. }
  1038. // Webkit/Opera - :checked should return selected option elements
  1039. // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
  1040. // IE8 throws error here and will not see later tests
  1041. if ( !div.querySelectorAll(":checked").length ) {
  1042. rbuggyQSA.push(":checked");
  1043. }
  1044. // Support: Safari 8+, iOS 8+
  1045. // https://bugs.webkit.org/show_bug.cgi?id=136851
  1046. // In-page `selector#id sibing-combinator selector` fails
  1047. if ( !div.querySelectorAll( "a#" + expando + "+*" ).length ) {
  1048. rbuggyQSA.push(".#.+[+~]");
  1049. }
  1050. });
  1051. assert(function( div ) {
  1052. // Support: Windows 8 Native Apps
  1053. // The type and name attributes are restricted during .innerHTML assignment
  1054. var input = doc.createElement("input");
  1055. input.setAttribute( "type", "hidden" );
  1056. div.appendChild( input ).setAttribute( "name", "D" );
  1057. // Support: IE8
  1058. // Enforce case-sensitivity of name attribute
  1059. if ( div.querySelectorAll("[name=d]").length ) {
  1060. rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" );
  1061. }
  1062. // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)
  1063. // IE8 throws error here and will not see later tests
  1064. if ( !div.querySelectorAll(":enabled").length ) {
  1065. rbuggyQSA.push( ":enabled", ":disabled" );
  1066. }
  1067. // Opera 10-11 does not throw on post-comma invalid pseudos
  1068. div.querySelectorAll("*,:x");
  1069. rbuggyQSA.push(",.*:");
  1070. });
  1071. }
  1072. if ( (support.matchesSelector = rnative.test( (matches = docElem.matches ||
  1073. docElem.webkitMatchesSelector ||
  1074. docElem.mozMatchesSelector ||
  1075. docElem.oMatchesSelector ||
  1076. docElem.msMatchesSelector) )) ) {
  1077. assert(function( div ) {
  1078. // Check to see if it's possible to do matchesSelector
  1079. // on a disconnected node (IE 9)
  1080. support.disconnectedMatch = matches.call( div, "div" );
  1081. // This should fail with an exception
  1082. // Gecko does not error, returns false instead
  1083. matches.call( div, "[s!='']:x" );
  1084. rbuggyMatches.push( "!=", pseudos );
  1085. });
  1086. }
  1087. rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") );
  1088. rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") );
  1089. /* Contains
  1090. ---------------------------------------------------------------------- */
  1091. hasCompare = rnative.test( docElem.compareDocumentPosition );
  1092. // Element contains another
  1093. // Purposefully does not implement inclusive descendent
  1094. // As in, an element does not contain itself
  1095. contains = hasCompare || rnative.test( docElem.contains ) ?
  1096. function( a, b ) {
  1097. var adown = a.nodeType === 9 ? a.documentElement : a,
  1098. bup = b && b.parentNode;
  1099. return a === bup || !!( bup && bup.nodeType === 1 && (
  1100. adown.contains ?
  1101. adown.contains( bup ) :
  1102. a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16
  1103. ));
  1104. } :
  1105. function( a, b ) {
  1106. if ( b ) {
  1107. while ( (b = b.parentNode) ) {
  1108. if ( b === a ) {
  1109. return true;
  1110. }
  1111. }
  1112. }
  1113. return false;
  1114. };
  1115. /* Sorting
  1116. ---------------------------------------------------------------------- */
  1117. // Document order sorting
  1118. sortOrder = hasCompare ?
  1119. function( a, b ) {
  1120. // Flag for duplicate removal
  1121. if ( a === b ) {
  1122. hasDuplicate = true;
  1123. return 0;
  1124. }
  1125. // Sort on method existence if only one input has compareDocumentPosition
  1126. var compare = !a.compareDocumentPosition - !b.compareDocumentPosition;
  1127. if ( compare ) {
  1128. return compare;
  1129. }
  1130. // Calculate position if both inputs belong to the same document
  1131. compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ?
  1132. a.compareDocumentPosition( b ) :
  1133. // Otherwise we know they are disconnected
  1134. 1;
  1135. // Disconnected nodes
  1136. if ( compare & 1 ||
  1137. (!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) {
  1138. // Choose the first element that is related to our preferred document
  1139. if ( a === doc || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) {
  1140. return -1;
  1141. }
  1142. if ( b === doc || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) {
  1143. return 1;
  1144. }
  1145. // Maintain original order
  1146. return sortInput ?
  1147. ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :
  1148. 0;
  1149. }
  1150. return compare & 4 ? -1 : 1;
  1151. } :
  1152. function( a, b ) {
  1153. // Exit early if the nodes are identical
  1154. if ( a === b ) {
  1155. hasDuplicate = true;
  1156. return 0;
  1157. }
  1158. var cur,
  1159. i = 0,
  1160. aup = a.parentNode,
  1161. bup = b.parentNode,
  1162. ap = [ a ],
  1163. bp = [ b ];
  1164. // Parentless nodes are either documents or disconnected
  1165. if ( !aup || !bup ) {
  1166. return a === doc ? -1 :
  1167. b === doc ? 1 :
  1168. aup ? -1 :
  1169. bup ? 1 :
  1170. sortInput ?
  1171. ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :
  1172. 0;
  1173. // If the nodes are siblings, we can do a quick check
  1174. } else if ( aup === bup ) {
  1175. return siblingCheck( a, b );
  1176. }
  1177. // Otherwise we need full lists of their ancestors for comparison
  1178. cur = a;
  1179. while ( (cur = cur.parentNode) ) {
  1180. ap.unshift( cur );
  1181. }
  1182. cur = b;
  1183. while ( (cur = cur.parentNode) ) {
  1184. bp.unshift( cur );
  1185. }
  1186. // Walk down the tree looking for a discrepancy
  1187. while ( ap[i] === bp[i] ) {
  1188. i++;
  1189. }
  1190. return i ?
  1191. // Do a sibling check if the nodes have a common ancestor
  1192. siblingCheck( ap[i], bp[i] ) :
  1193. // Otherwise nodes in our document sort first
  1194. ap[i] === preferredDoc ? -1 :
  1195. bp[i] === preferredDoc ? 1 :
  1196. 0;
  1197. };
  1198. return doc;
  1199. };
  1200. Sizzle.matches = function( expr, elements ) {
  1201. return Sizzle( expr, null, null, elements );
  1202. };
  1203. Sizzle.matchesSelector = function( elem, expr ) {
  1204. // Set document vars if needed
  1205. if ( ( elem.ownerDocument || elem ) !== document ) {
  1206. setDocument( elem );
  1207. }
  1208. // Make sure that attribute selectors are quoted
  1209. expr = expr.replace( rattributeQuotes, "='$1']" );
  1210. if ( support.matchesSelector && documentIsHTML &&
  1211. ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
  1212. ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) {
  1213. try {
  1214. var ret = matches.call( elem, expr );
  1215. // IE 9's matchesSelector returns false on disconnected nodes
  1216. if ( ret || support.disconnectedMatch ||
  1217. // As well, disconnected nodes are said to be in a document
  1218. // fragment in IE 9
  1219. elem.document && elem.document.nodeType !== 11 ) {
  1220. return ret;
  1221. }
  1222. } catch (e) {}
  1223. }
  1224. return Sizzle( expr, document, null, [ elem ] ).length > 0;
  1225. };
  1226. Sizzle.contains = function( context, elem ) {
  1227. // Set document vars if needed
  1228. if ( ( context.ownerDocument || context ) !== document ) {
  1229. setDocument( context );
  1230. }
  1231. return contains( context, elem );
  1232. };
  1233. Sizzle.attr = function( elem, name ) {
  1234. // Set document vars if needed
  1235. if ( ( elem.ownerDocument || elem ) !== document ) {
  1236. setDocument( elem );
  1237. }
  1238. var fn = Expr.attrHandle[ name.toLowerCase() ],
  1239. // Don't get fooled by Object.prototype properties (jQuery #13807)
  1240. val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ?
  1241. fn( elem, name, !documentIsHTML ) :
  1242. undefined;
  1243. return val !== undefined ?
  1244. val :
  1245. support.attributes || !documentIsHTML ?
  1246. elem.getAttribute( name ) :
  1247. (val = elem.getAttributeNode(name)) && val.specified ?
  1248. val.value :
  1249. null;
  1250. };
  1251. Sizzle.error = function( msg ) {
  1252. throw new Error( "Syntax error, unrecognized expression: " + msg );
  1253. };
  1254. /**
  1255. * Document sorting and removing duplicates
  1256. * @param {ArrayLike} results
  1257. */
  1258. Sizzle.uniqueSort = function( results ) {
  1259. var elem,
  1260. duplicates = [],
  1261. j = 0,
  1262. i = 0;
  1263. // Unless we *know* we can detect duplicates, assume their presence
  1264. hasDuplicate = !support.detectDuplicates;
  1265. sortInput = !support.sortStable && results.slice( 0 );
  1266. results.sort( sortOrder );
  1267. if ( hasDuplicate ) {
  1268. while ( (elem = results[i++]) ) {
  1269. if ( elem === results[ i ] ) {
  1270. j = duplicates.push( i );
  1271. }
  1272. }
  1273. while ( j-- ) {
  1274. results.splice( duplicates[ j ], 1 );
  1275. }
  1276. }
  1277. // Clear input after sorting to release objects
  1278. // See https://github.com/jquery/sizzle/pull/225
  1279. sortInput = null;
  1280. return results;
  1281. };
  1282. /**
  1283. * Utility function for retrieving the text value of an array of DOM nodes
  1284. * @param {Array|Element} elem
  1285. */
  1286. getText = Sizzle.getText = function( elem ) {
  1287. var node,
  1288. ret = "",
  1289. i = 0,
  1290. nodeType = elem.nodeType;
  1291. if ( !nodeType ) {
  1292. // If no nodeType, this is expected to be an array
  1293. while ( (node = elem[i++]) ) {
  1294. // Do not traverse comment nodes
  1295. ret += getText( node );
  1296. }
  1297. } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {
  1298. // Use textContent for elements
  1299. // innerText usage removed for consistency of new lines (jQuery #11153)
  1300. if ( typeof elem.textContent === "string" ) {
  1301. return elem.textContent;
  1302. } else {
  1303. // Traverse its children
  1304. for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
  1305. ret += getText( elem );
  1306. }
  1307. }
  1308. } else if ( nodeType === 3 || nodeType === 4 ) {
  1309. return elem.nodeValue;
  1310. }
  1311. // Do not include comment or processing instruction nodes
  1312. return ret;
  1313. };
  1314. Expr = Sizzle.selectors = {
  1315. // Can be adjusted by the user
  1316. cacheLength: 50,
  1317. createPseudo: markFunction,
  1318. match: matchExpr,
  1319. attrHandle: {},
  1320. find: {},
  1321. relative: {
  1322. ">": { dir: "parentNode", first: true },
  1323. " ": { dir: "parentNode" },
  1324. "+": { dir: "previousSibling", first: true },
  1325. "~": { dir: "previousSibling" }
  1326. },
  1327. preFilter: {
  1328. "ATTR": function( match ) {
  1329. match[1] = match[1].replace( runescape, funescape );
  1330. // Move the given value to match[3] whether quoted or unquoted
  1331. match[3] = ( match[3] || match[4] || match[5] || "" ).replace( runescape, funescape );
  1332. if ( match[2] === "~=" ) {
  1333. match[3] = " " + match[3] + " ";
  1334. }
  1335. return match.slice( 0, 4 );
  1336. },
  1337. "CHILD": function( match ) {
  1338. /* matches from matchExpr["CHILD"]
  1339. 1 type (only|nth|...)
  1340. 2 what (child|of-type)
  1341. 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...)
  1342. 4 xn-component of xn+y argument ([+-]?\d*n|)
  1343. 5 sign of xn-component
  1344. 6 x of xn-component
  1345. 7 sign of y-component
  1346. 8 y of y-component
  1347. */
  1348. match[1] = match[1].toLowerCase();
  1349. if ( match[1].slice( 0, 3 ) === "nth" ) {
  1350. // nth-* requires argument
  1351. if ( !match[3] ) {
  1352. Sizzle.error( match[0] );
  1353. }
  1354. // numeric x and y parameters for Expr.filter.CHILD
  1355. // remember that false/true cast respectively to 0/1
  1356. match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) );
  1357. match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" );
  1358. // other types prohibit arguments
  1359. } else if ( match[3] ) {
  1360. Sizzle.error( match[0] );
  1361. }
  1362. return match;
  1363. },
  1364. "PSEUDO": function( match ) {
  1365. var excess,
  1366. unquoted = !match[6] && match[2];
  1367. if ( matchExpr["CHILD"].test( match[0] ) ) {
  1368. return null;
  1369. }
  1370. // Accept quoted arguments as-is
  1371. if ( match[3] ) {
  1372. match[2] = match[4] || match[5] || "";
  1373. // Strip excess characters from unquoted arguments
  1374. } else if ( unquoted && rpseudo.test( unquoted ) &&
  1375. // Get excess from tokenize (recursively)
  1376. (excess = tokenize( unquoted, true )) &&
  1377. // advance to the next closing parenthesis
  1378. (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) {
  1379. // excess is a negative index
  1380. match[0] = match[0].slice( 0, excess );
  1381. match[2] = unquoted.slice( 0, excess );
  1382. }
  1383. // Return only captures needed by the pseudo filter method (type and argument)
  1384. return match.slice( 0, 3 );
  1385. }
  1386. },
  1387. filter: {
  1388. "TAG": function( nodeNameSelector ) {
  1389. var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase();
  1390. return nodeNameSelector === "*" ?
  1391. function() { return true; } :
  1392. function( elem ) {
  1393. return elem.nodeName && elem.nodeName.toLowerCase() === nodeName;
  1394. };
  1395. },
  1396. "CLASS": function( className ) {
  1397. var pattern = classCache[ className + " " ];
  1398. return pattern ||
  1399. (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) &&
  1400. classCache( className, function( elem ) {
  1401. return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== "undefined" && elem.getAttribute("class") || "" );
  1402. });
  1403. },
  1404. "ATTR": function( name, operator, check ) {
  1405. return function( elem ) {
  1406. var result = Sizzle.attr( elem, name );
  1407. if ( result == null ) {
  1408. return operator === "!=";
  1409. }
  1410. if ( !operator ) {
  1411. return true;
  1412. }
  1413. result += "";
  1414. return operator === "=" ? result === check :
  1415. operator === "!=" ? result !== check :
  1416. operator === "^=" ? check && result.indexOf( check ) === 0 :
  1417. operator === "*=" ? check && result.indexOf( check ) > -1 :
  1418. operator === "$=" ? check && result.slice( -check.length ) === check :
  1419. operator === "~=" ? ( " " + result.replace( rwhitespace, " " ) + " " ).indexOf( check ) > -1 :
  1420. operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" :
  1421. false;
  1422. };
  1423. },
  1424. "CHILD": function( type, what, argument, first, last ) {
  1425. var simple = type.slice( 0, 3 ) !== "nth",
  1426. forward = type.slice( -4 ) !== "last",
  1427. ofType = what === "of-type";
  1428. return first === 1 && last === 0 ?
  1429. // Shortcut for :nth-*(n)
  1430. function( elem ) {
  1431. return !!elem.parentNode;
  1432. } :
  1433. function( elem, context, xml ) {
  1434. var cache, outerCache, node, diff, nodeIndex, start,
  1435. dir = simple !== forward ? "nextSibling" : "previousSibling",
  1436. parent = elem.parentNode,
  1437. name = ofType && elem.nodeName.toLowerCase(),
  1438. useCache = !xml && !ofType;
  1439. if ( parent ) {
  1440. // :(first|last|only)-(child|of-type)
  1441. if ( simple ) {
  1442. while ( dir ) {
  1443. node = elem;
  1444. while ( (node = node[ dir ]) ) {
  1445. if ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) {
  1446. return false;
  1447. }
  1448. }
  1449. // Reverse direction for :only-* (if we haven't yet done so)
  1450. start = dir = type === "only" && !start && "nextSibling";
  1451. }
  1452. return true;
  1453. }
  1454. start = [ forward ? parent.firstChild : parent.lastChild ];
  1455. // non-xml :nth-child(...) stores cache data on `parent`
  1456. if ( forward && useCache ) {
  1457. // Seek `elem` from a previously-cached index
  1458. outerCache = parent[ expando ] || (parent[ expando ] = {});
  1459. cache = outerCache[ type ] || [];
  1460. nodeIndex = cache[0] === dirruns && cache[1];
  1461. diff = cache[0] === dirruns && cache[2];
  1462. node = nodeIndex && parent.childNodes[ nodeIndex ];
  1463. while ( (node = ++nodeIndex && node && node[ dir ] ||
  1464. // Fallback to seeking `elem` from the start
  1465. (diff = nodeIndex = 0) || start.pop()) ) {
  1466. // When found, cache indexes on `parent` and break
  1467. if ( node.nodeType === 1 && ++diff && node === elem ) {
  1468. outerCache[ type ] = [ dirruns, nodeIndex, diff ];
  1469. break;
  1470. }
  1471. }
  1472. // Use previously-cached element index if available
  1473. } else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) {
  1474. diff = cache[1];
  1475. // xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...)
  1476. } else {
  1477. // Use the same loop as above to seek `elem` from the start
  1478. while ( (node = ++nodeIndex && node && node[ dir ] ||
  1479. (diff = nodeIndex = 0) || start.pop()) ) {
  1480. if ( ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) && ++diff ) {
  1481. // Cache the index of each encountered element
  1482. if ( useCache ) {
  1483. (node[ expando ] || (node[ expando ] = {}))[ type ] = [ dirruns, diff ];
  1484. }
  1485. if ( node === elem ) {
  1486. break;
  1487. }
  1488. }
  1489. }
  1490. }
  1491. // Incorporate the offset, then check against cycle size
  1492. diff -= last;
  1493. return diff === first || ( diff % first === 0 && diff / first >= 0 );
  1494. }
  1495. };
  1496. },
  1497. "PSEUDO": function( pseudo, argument ) {
  1498. // pseudo-class names are case-insensitive
  1499. // http://www.w3.org/TR/selectors/#pseudo-classes
  1500. // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters
  1501. // Remember that setFilters inherits from pseudos
  1502. var args,
  1503. fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] ||
  1504. Sizzle.error( "unsupported pseudo: " + pseudo );
  1505. // The user may use createPseudo to indicate that
  1506. // arguments are needed to create the filter function
  1507. // just as Sizzle does
  1508. if ( fn[ expando ] ) {
  1509. return fn( argument );
  1510. }
  1511. // But maintain support for old signatures
  1512. if ( fn.length > 1 ) {
  1513. args = [ pseudo, pseudo, "", argument ];
  1514. return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ?
  1515. markFunction(function( seed, matches ) {
  1516. var idx,
  1517. matched = fn( seed, argument ),
  1518. i = matched.length;
  1519. while ( i-- ) {
  1520. idx = indexOf( seed, matched[i] );
  1521. seed[ idx ] = !( matches[ idx ] = matched[i] );
  1522. }
  1523. }) :
  1524. function( elem ) {
  1525. return fn( elem, 0, args );
  1526. };
  1527. }
  1528. return fn;
  1529. }
  1530. },
  1531. pseudos: {
  1532. // Potentially complex pseudos
  1533. "not": markFunction(function( selector ) {
  1534. // Trim the selector passed to compile
  1535. // to avoid treating leading and trailing
  1536. // spaces as combinators
  1537. var input = [],
  1538. results = [],
  1539. matcher = compile( selector.replace( rtrim, "$1" ) );
  1540. return matcher[ expando ] ?
  1541. markFunction(function( seed, matches, context, xml ) {
  1542. var elem,
  1543. unmatched = matcher( seed, null, xml, [] ),
  1544. i = seed.length;
  1545. // Match elements unmatched by `matcher`
  1546. while ( i-- ) {
  1547. if ( (elem = unmatched[i]) ) {
  1548. seed[i] = !(matches[i] = elem);
  1549. }
  1550. }
  1551. }) :
  1552. function( elem, context, xml ) {
  1553. input[0] = elem;
  1554. matcher( input, null, xml, results );
  1555. // Don't keep the element (issue #299)
  1556. input[0] = null;
  1557. return !results.pop();
  1558. };
  1559. }),
  1560. "has": markFunction(function( selector ) {
  1561. return function( elem ) {
  1562. return Sizzle( selector, elem ).length > 0;
  1563. };
  1564. }),
  1565. "contains": markFunction(function( text ) {
  1566. text = text.replace( runescape, funescape );
  1567. return function( elem ) {
  1568. return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1;
  1569. };
  1570. }),
  1571. // "Whether an element is represented by a :lang() selector
  1572. // is based solely on the element's language value
  1573. // being equal to the identifier C,
  1574. // or beginning with the identifier C immediately followed by "-".
  1575. // The matching of C against the element's language value is performed case-insensitively.
  1576. // The identifier C does not have to be a valid language name."
  1577. // http://www.w3.org/TR/selectors/#lang-pseudo
  1578. "lang": markFunction( function( lang ) {
  1579. // lang value must be a valid identifier
  1580. if ( !ridentifier.test(lang || "") ) {
  1581. Sizzle.error( "unsupported lang: " + lang );
  1582. }
  1583. lang = lang.replace( runescape, funescape ).toLowerCase();
  1584. return function( elem ) {
  1585. var elemLang;
  1586. do {
  1587. if ( (elemLang = documentIsHTML ?
  1588. elem.lang :
  1589. elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) {
  1590. elemLang = elemLang.toLowerCase();
  1591. return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0;
  1592. }
  1593. } while ( (elem = elem.parentNode) && elem.nodeType === 1 );
  1594. return false;
  1595. };
  1596. }),
  1597. // Miscellaneous
  1598. "target": function( elem ) {
  1599. var hash = window.location && window.location.hash;
  1600. return hash && hash.slice( 1 ) === elem.id;
  1601. },
  1602. "root": function( elem ) {
  1603. return elem === docElem;
  1604. },
  1605. "focus": function( elem ) {
  1606. return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex);
  1607. },
  1608. // Boolean properties
  1609. "enabled": function( elem ) {
  1610. return elem.disabled === false;
  1611. },
  1612. "disabled": function( elem ) {
  1613. return elem.disabled === true;
  1614. },
  1615. "checked": function( elem ) {
  1616. // In CSS3, :checked should return both checked and selected elements
  1617. // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
  1618. var nodeName = elem.nodeName.toLowerCase();
  1619. return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected);
  1620. },
  1621. "selected": function( elem ) {
  1622. // Accessing this property makes selected-by-default
  1623. // options in Safari work properly
  1624. if ( elem.parentNode ) {
  1625. elem.parentNode.selectedIndex;
  1626. }
  1627. return elem.selected === true;
  1628. },
  1629. // Contents
  1630. "empty": function( elem ) {
  1631. // http://www.w3.org/TR/selectors/#empty-pseudo
  1632. // :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5),
  1633. // but not by others (comment: 8; processing instruction: 7; etc.)
  1634. // nodeType < 6 works because attributes (2) do not appear as children
  1635. for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
  1636. if ( elem.nodeType < 6 ) {
  1637. return false;
  1638. }
  1639. }
  1640. return true;
  1641. },
  1642. "parent": function( elem ) {
  1643. return !Expr.pseudos["empty"]( elem );
  1644. },
  1645. // Element/input types
  1646. "header": function( elem ) {
  1647. return rheader.test( elem.nodeName );
  1648. },
  1649. "input": function( elem ) {
  1650. return rinputs.test( elem.nodeName );
  1651. },
  1652. "button": function( elem ) {
  1653. var name = elem.nodeName.toLowerCase();
  1654. return name === "input" && elem.type === "button" || name === "button";
  1655. },
  1656. "text": function( elem ) {
  1657. var attr;
  1658. return elem.nodeName.toLowerCase() === "input" &&
  1659. elem.type === "text" &&
  1660. // Support: IE<8
  1661. // New HTML5 attribute values (e.g., "search") appear with elem.type === "text"
  1662. ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === "text" );
  1663. },
  1664. // Position-in-collection
  1665. "first": createPositionalPseudo(function() {
  1666. return [ 0 ];
  1667. }),
  1668. "last": createPositionalPseudo(function( matchIndexes, length ) {
  1669. return [ length - 1 ];
  1670. }),
  1671. "eq": createPositionalPseudo(function( matchIndexes, length, argument ) {
  1672. return [ argument < 0 ? argument + length : argument ];
  1673. }),
  1674. "even": createPositionalPseudo(function( matchIndexes, length ) {
  1675. var i = 0;
  1676. for ( ; i < length; i += 2 ) {
  1677. matchIndexes.push( i );
  1678. }
  1679. return matchIndexes;
  1680. }),
  1681. "odd": createPositionalPseudo(function( matchIndexes, length ) {
  1682. var i = 1;
  1683. for ( ; i < length; i += 2 ) {
  1684. matchIndexes.push( i );
  1685. }
  1686. return matchIndexes;
  1687. }),
  1688. "lt": createPositionalPseudo(function( matchIndexes, length, argument ) {
  1689. var i = argument < 0 ? argument + length : argument;
  1690. for ( ; --i >= 0; ) {
  1691. matchIndexes.push( i );
  1692. }
  1693. return matchIndexes;
  1694. }),
  1695. "gt": createPositionalPseudo(function( matchIndexes, length, argument ) {
  1696. var i = argument < 0 ? argument + length : argument;
  1697. for ( ; ++i < length; ) {
  1698. matchIndexes.push( i );
  1699. }
  1700. return matchIndexes;
  1701. })
  1702. }
  1703. };
  1704. Expr.pseudos["nth"] = Expr.pseudos["eq"];
  1705. // Add button/input type pseudos
  1706. for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) {
  1707. Expr.pseudos[ i ] = createInputPseudo( i );
  1708. }
  1709. for ( i in { submit: true, reset: true } ) {
  1710. Expr.pseudos[ i ] = createButtonPseudo( i );
  1711. }
  1712. // Easy API for creating new setFilters
  1713. function setFilters() {}
  1714. setFilters.prototype = Expr.filters = Expr.pseudos;
  1715. Expr.setFilters = new setFilters();
  1716. tokenize = Sizzle.tokenize = function( selector, parseOnly ) {
  1717. var matched, match, tokens, type,
  1718. soFar, groups, preFilters,
  1719. cached = tokenCache[ selector + " " ];
  1720. if ( cached ) {
  1721. return parseOnly ? 0 : cached.slice( 0 );
  1722. }
  1723. soFar = selector;
  1724. groups = [];
  1725. preFilters = Expr.preFilter;
  1726. while ( soFar ) {
  1727. // Comma and first run
  1728. if ( !matched || (match = rcomma.exec( soFar )) ) {
  1729. if ( match ) {
  1730. // Don't consume trailing commas as valid
  1731. soFar = soFar.slice( match[0].length ) || soFar;
  1732. }
  1733. groups.push( (tokens = []) );
  1734. }
  1735. matched = false;
  1736. // Combinators
  1737. if ( (match = rcombinators.exec( soFar )) ) {
  1738. matched = match.shift();
  1739. tokens.push({
  1740. value: matched,
  1741. // Cast descendant combinators to space
  1742. type: match[0].replace( rtrim, " " )
  1743. });
  1744. soFar = soFar.slice( matched.length );
  1745. }
  1746. // Filters
  1747. for ( type in Expr.filter ) {
  1748. if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] ||
  1749. (match = preFilters[ type ]( match ))) ) {
  1750. matched = match.shift();
  1751. tokens.push({
  1752. value: matched,
  1753. type: type,
  1754. matches: match
  1755. });
  1756. soFar = soFar.slice( matched.length );
  1757. }
  1758. }
  1759. if ( !matched ) {
  1760. break;
  1761. }
  1762. }
  1763. // Return the length of the invalid excess
  1764. // if we're just parsing
  1765. // Otherwise, throw an error or return tokens
  1766. return parseOnly ?
  1767. soFar.length :
  1768. soFar ?
  1769. Sizzle.error( selector ) :
  1770. // Cache the tokens
  1771. tokenCache( selector, groups ).slice( 0 );
  1772. };
  1773. function toSelector( tokens ) {
  1774. var i = 0,
  1775. len = tokens.length,
  1776. selector = "";
  1777. for ( ; i < len; i++ ) {
  1778. selector += tokens[i].value;
  1779. }
  1780. return selector;
  1781. }
  1782. function addCombinator( matcher, combinator, base ) {
  1783. var dir = combinator.dir,
  1784. checkNonElements = base && dir === "parentNode",
  1785. doneName = done++;
  1786. return combinator.first ?
  1787. // Check against closest ancestor/preceding element
  1788. function( elem, context, xml ) {
  1789. while ( (elem = elem[ dir ]) ) {
  1790. if ( elem.nodeType === 1 || checkNonElements ) {
  1791. return matcher( elem, context, xml );
  1792. }
  1793. }
  1794. } :
  1795. // Check against all ancestor/preceding elements
  1796. function( elem, context, xml ) {
  1797. var oldCache, outerCache,
  1798. newCache = [ dirruns, doneName ];
  1799. // We can't set arbitrary data on XML nodes, so they don't benefit from dir caching
  1800. if ( xml ) {
  1801. while ( (elem = elem[ dir ]) ) {
  1802. if ( elem.nodeType === 1 || checkNonElements ) {
  1803. if ( matcher( elem, context, xml ) ) {
  1804. return true;
  1805. }
  1806. }
  1807. }
  1808. } else {
  1809. while ( (elem = elem[ dir ]) ) {
  1810. if ( elem.nodeType === 1 || checkNonElements ) {
  1811. outerCache = elem[ expando ] || (elem[ expando ] = {});
  1812. if ( (oldCache = outerCache[ dir ]) &&
  1813. oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) {
  1814. // Assign to newCache so results back-propagate to previous elements
  1815. return (newCache[ 2 ] = oldCache[ 2 ]);
  1816. } else {
  1817. // Reuse newcache so results back-propagate to previous elements
  1818. outerCache[ dir ] = newCache;
  1819. // A match means we're done; a fail means we have to keep checking
  1820. if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) {
  1821. return true;
  1822. }
  1823. }
  1824. }
  1825. }
  1826. }
  1827. };
  1828. }
  1829. function elementMatcher( matchers ) {
  1830. return matchers.length > 1 ?
  1831. function( elem, context, xml ) {
  1832. var i = matchers.length;
  1833. while ( i-- ) {
  1834. if ( !matchers[i]( elem, context, xml ) ) {
  1835. return false;
  1836. }
  1837. }
  1838. return true;
  1839. } :
  1840. matchers[0];
  1841. }
  1842. function multipleContexts( selector, contexts, results ) {
  1843. var i = 0,
  1844. len = contexts.length;
  1845. for ( ; i < len; i++ ) {
  1846. Sizzle( selector, contexts[i], results );
  1847. }
  1848. return results;
  1849. }
  1850. function condense( unmatched, map, filter, context, xml ) {
  1851. var elem,
  1852. newUnmatched = [],
  1853. i = 0,
  1854. len = unmatched.length,
  1855. mapped = map != null;
  1856. for ( ; i < len; i++ ) {
  1857. if ( (elem = unmatched[i]) ) {
  1858. if ( !filter || filter( elem, context, xml ) ) {
  1859. newUnmatched.push( elem );
  1860. if ( mapped ) {
  1861. map.push( i );
  1862. }
  1863. }
  1864. }
  1865. }
  1866. return newUnmatched;
  1867. }
  1868. function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
  1869. if ( postFilter && !postFilter[ expando ] ) {
  1870. postFilter = setMatcher( postFilter );
  1871. }
  1872. if ( postFinder && !postFinder[ expando ] ) {
  1873. postFinder = setMatcher( postFinder, postSelector );
  1874. }
  1875. return markFunction(function( seed, results, context, xml ) {
  1876. var temp, i, elem,
  1877. preMap = [],
  1878. postMap = [],
  1879. preexisting = results.length,
  1880. // Get initial elements from seed or context
  1881. elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ),
  1882. // Prefilter to get matcher input, preserving a map for seed-results synchronization
  1883. matcherIn = preFilter && ( seed || !selector ) ?
  1884. condense( elems, preMap, preFilter, context, xml ) :
  1885. elems,
  1886. matcherOut = matcher ?
  1887. // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results,
  1888. postFinder || ( seed ? preFilter : preexisting || postFilter ) ?
  1889. // ...intermediate processing is necessary
  1890. [] :
  1891. // ...otherwise use results directly
  1892. results :
  1893. matcherIn;
  1894. // Find primary matches
  1895. if ( matcher ) {
  1896. matcher( matcherIn, matcherOut, context, xml );
  1897. }
  1898. // Apply postFilter
  1899. if ( postFilter ) {
  1900. temp = condense( matcherOut, postMap );
  1901. postFilter( temp, [], context, xml );
  1902. // Un-match failing elements by moving them back to matcherIn
  1903. i = temp.length;
  1904. while ( i-- ) {
  1905. if ( (elem = temp[i]) ) {
  1906. matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem);
  1907. }
  1908. }
  1909. }
  1910. if ( seed ) {
  1911. if ( postFinder || preFilter ) {
  1912. if ( postFinder ) {
  1913. // Get the final matcherOut by condensing this intermediate into postFinder contexts
  1914. temp = [];
  1915. i = matcherOut.length;
  1916. while ( i-- ) {
  1917. if ( (elem = matcherOut[i]) ) {
  1918. // Restore matcherIn since elem is not yet a final match
  1919. temp.push( (matcherIn[i] = elem) );
  1920. }
  1921. }
  1922. postFinder( null, (matcherOut = []), temp, xml );
  1923. }
  1924. // Move matched elements from seed to results to keep them synchronized
  1925. i = matcherOut.length;
  1926. while ( i-- ) {
  1927. if ( (elem = matcherOut[i]) &&
  1928. (temp = postFinder ? indexOf( seed, elem ) : preMap[i]) > -1 ) {
  1929. seed[temp] = !(results[temp] = elem);
  1930. }
  1931. }
  1932. }
  1933. // Add elements to results, through postFinder if defined
  1934. } else {
  1935. matcherOut = condense(
  1936. matcherOut === results ?
  1937. matcherOut.splice( preexisting, matcherOut.length ) :
  1938. matcherOut
  1939. );
  1940. if ( postFinder ) {
  1941. postFinder( null, results, matcherOut, xml );
  1942. } else {
  1943. push.apply( results, matcherOut );
  1944. }
  1945. }
  1946. });
  1947. }
  1948. function matcherFromTokens( tokens ) {
  1949. var checkContext, matcher, j,
  1950. len = tokens.length,
  1951. leadingRelative = Expr.relative[ tokens[0].type ],
  1952. implicitRelative = leadingRelative || Expr.relative[" "],
  1953. i = leadingRelative ? 1 : 0,
  1954. // The foundational matcher ensures that elements are reachable from top-level context(s)
  1955. matchContext = addCombinator( function( elem ) {
  1956. return elem === checkContext;
  1957. }, implicitRelative, true ),
  1958. matchAnyContext = addCombinator( function( elem ) {
  1959. return indexOf( checkContext, elem ) > -1;
  1960. }, implicitRelative, true ),
  1961. matchers = [ function( elem, context, xml ) {
  1962. var ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || (
  1963. (checkContext = context).nodeType ?
  1964. matchContext( elem, context, xml ) :
  1965. matchAnyContext( elem, context, xml ) );
  1966. // Avoid hanging onto element (issue #299)
  1967. checkContext = null;
  1968. return ret;
  1969. } ];
  1970. for ( ; i < len; i++ ) {
  1971. if ( (matcher = Expr.relative[ tokens[i].type ]) ) {
  1972. matchers = [ addCombinator(elementMatcher( matchers ), matcher) ];
  1973. } else {
  1974. matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches );
  1975. // Return special upon seeing a positional matcher
  1976. if ( matcher[ expando ] ) {
  1977. // Find the next relative operator (if any) for proper handling
  1978. j = ++i;
  1979. for ( ; j < len; j++ ) {
  1980. if ( Expr.relative[ tokens[j].type ] ) {
  1981. break;
  1982. }
  1983. }
  1984. return setMatcher(
  1985. i > 1 && elementMatcher( matchers ),
  1986. i > 1 && toSelector(
  1987. // If the preceding token was a descendant combinator, insert an implicit any-element `*`
  1988. tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" })
  1989. ).replace( rtrim, "$1" ),
  1990. matcher,
  1991. i < j && matcherFromTokens( tokens.slice( i, j ) ),
  1992. j < len && matcherFromTokens( (tokens = tokens.slice( j )) ),
  1993. j < len && toSelector( tokens )
  1994. );
  1995. }
  1996. matchers.push( matcher );
  1997. }
  1998. }
  1999. return elementMatcher( matchers );
  2000. }
  2001. function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
  2002. var bySet = setMatchers.length > 0,
  2003. byElement = elementMatchers.length > 0,
  2004. superMatcher = function( seed, context, xml, results, outermost ) {
  2005. var elem, j, matcher,
  2006. matchedCount = 0,
  2007. i = "0",
  2008. unmatched = seed && [],
  2009. setMatched = [],
  2010. contextBackup = outermostContext,
  2011. // We must always have either seed elements or outermost context
  2012. elems = seed || byElement && Expr.find["TAG"]( "*", outermost ),
  2013. // Use integer dirruns iff this is the outermost matcher
  2014. dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1),
  2015. len = elems.length;
  2016. if ( outermost ) {
  2017. outermostContext = context !== document && context;
  2018. }
  2019. // Add elements passing elementMatchers directly to results
  2020. // Keep `i` a string if there are no elements so `matchedCount` will be "00" below
  2021. // Support: IE<9, Safari
  2022. // Tolerate NodeList properties (IE: "length"; Safari: <number>) matching elements by id
  2023. for ( ; i !== len && (elem = elems[i]) != null; i++ ) {
  2024. if ( byElement && elem ) {
  2025. j = 0;
  2026. while ( (matcher = elementMatchers[j++]) ) {
  2027. if ( matcher( elem, context, xml ) ) {
  2028. results.push( elem );
  2029. break;
  2030. }
  2031. }
  2032. if ( outermost ) {
  2033. dirruns = dirrunsUnique;
  2034. }
  2035. }
  2036. // Track unmatched elements for set filters
  2037. if ( bySet ) {
  2038. // They will have gone through all possible matchers
  2039. if ( (elem = !matcher && elem) ) {
  2040. matchedCount--;
  2041. }
  2042. // Lengthen the array for every element, matched or not
  2043. if ( seed ) {
  2044. unmatched.push( elem );
  2045. }
  2046. }
  2047. }
  2048. // Apply set filters to unmatched elements
  2049. matchedCount += i;
  2050. if ( bySet && i !== matchedCount ) {
  2051. j = 0;
  2052. while ( (matcher = setMatchers[j++]) ) {
  2053. matcher( unmatched, setMatched, context, xml );
  2054. }
  2055. if ( seed ) {
  2056. // Reintegrate element matches to eliminate the need for sorting
  2057. if ( matchedCount > 0 ) {
  2058. while ( i-- ) {
  2059. if ( !(unmatched[i] || setMatched[i]) ) {
  2060. setMatched[i] = pop.call( results );
  2061. }
  2062. }
  2063. }
  2064. // Discard index placeholder values to get only actual matches
  2065. setMatched = condense( setMatched );
  2066. }
  2067. // Add matches to results
  2068. push.apply( results, setMatched );
  2069. // Seedless set matches succeeding multiple successful matchers stipulate sorting
  2070. if ( outermost && !seed && setMatched.length > 0 &&
  2071. ( matchedCount + setMatchers.length ) > 1 ) {
  2072. Sizzle.uniqueSort( results );
  2073. }
  2074. }
  2075. // Override manipulation of globals by nested matchers
  2076. if ( outermost ) {
  2077. dirruns = dirrunsUnique;
  2078. outermostContext = contextBackup;
  2079. }
  2080. return unmatched;
  2081. };
  2082. return bySet ?
  2083. markFunction( superMatcher ) :
  2084. superMatcher;
  2085. }
  2086. compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) {
  2087. var i,
  2088. setMatchers = [],
  2089. elementMatchers = [],
  2090. cached = compilerCache[ selector + " " ];
  2091. if ( !cached ) {
  2092. // Generate a function of recursive functions that can be used to check each element
  2093. if ( !match ) {
  2094. match = tokenize( selector );
  2095. }
  2096. i = match.length;
  2097. while ( i-- ) {
  2098. cached = matcherFromTokens( match[i] );
  2099. if ( cached[ expando ] ) {
  2100. setMatchers.push( cached );
  2101. } else {
  2102. elementMatchers.push( cached );
  2103. }
  2104. }
  2105. // Cache the compiled function
  2106. cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) );
  2107. // Save selector and tokenization
  2108. cached.selector = selector;
  2109. }
  2110. return cached;
  2111. };
  2112. /**
  2113. * A low-level selection function that works with Sizzle's compiled
  2114. * selector functions
  2115. * @param {String|Function} selector A selector or a pre-compiled
  2116. * selector function built with Sizzle.compile
  2117. * @param {Element} context
  2118. * @param {Array} [results]
  2119. * @param {Array} [seed] A set of elements to match against
  2120. */
  2121. select = Sizzle.select = function( selector, context, results, seed ) {
  2122. var i, tokens, token, type, find,
  2123. compiled = typeof selector === "function" && selector,
  2124. match = !seed && tokenize( (selector = compiled.selector || selector) );
  2125. results = results || [];
  2126. // Try to minimize operations if there is no seed and only one group
  2127. if ( match.length === 1 ) {
  2128. // Take a shortcut and set the context if the root selector is an ID
  2129. tokens = match[0] = match[0].slice( 0 );
  2130. if ( tokens.length > 2 && (token = tokens[0]).type === "ID" &&
  2131. support.getById && context.nodeType === 9 && documentIsHTML &&
  2132. Expr.relative[ tokens[1].type ] ) {
  2133. context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];
  2134. if ( !context ) {
  2135. return results;
  2136. // Precompiled matchers will still verify ancestry, so step up a level
  2137. } else if ( compiled ) {
  2138. context = context.parentNode;
  2139. }
  2140. selector = selector.slice( tokens.shift().value.length );
  2141. }
  2142. // Fetch a seed set for right-to-left matching
  2143. i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length;
  2144. while ( i-- ) {
  2145. token = tokens[i];
  2146. // Abort if we hit a combinator
  2147. if ( Expr.relative[ (type = token.type) ] ) {
  2148. break;
  2149. }
  2150. if ( (find = Expr.find[ type ]) ) {
  2151. // Search, expanding context for leading sibling combinators
  2152. if ( (seed = find(
  2153. token.matches[0].replace( runescape, funescape ),
  2154. rsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context
  2155. )) ) {
  2156. // If seed is empty or no tokens remain, we can return early
  2157. tokens.splice( i, 1 );
  2158. selector = seed.length && toSelector( tokens );
  2159. if ( !selector ) {
  2160. push.apply( results, seed );
  2161. return results;
  2162. }
  2163. break;
  2164. }
  2165. }
  2166. }
  2167. }
  2168. // Compile and execute a filtering function if one is not provided
  2169. // Provide `match` to avoid retokenization if we modified the selector above
  2170. ( compiled || compile( selector, match ) )(
  2171. seed,
  2172. context,
  2173. !documentIsHTML,
  2174. results,
  2175. rsibling.test( selector ) && testContext( context.parentNode ) || context
  2176. );
  2177. return results;
  2178. };
  2179. // One-time assignments
  2180. // Sort stability
  2181. support.sortStable = expando.split("").sort( sortOrder ).join("") === expando;
  2182. // Support: Chrome 14-35+
  2183. // Always assume duplicates if they aren't passed to the comparison function
  2184. support.detectDuplicates = !!hasDuplicate;
  2185. // Initialize against the default document
  2186. setDocument();
  2187. // Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27)
  2188. // Detached nodes confoundingly follow *each other*
  2189. support.sortDetached = assert(function( div1 ) {
  2190. // Should return 1, but returns 4 (following)
  2191. return div1.compareDocumentPosition( document.createElement("div") ) & 1;
  2192. });
  2193. // Support: IE<8
  2194. // Prevent attribute/property "interpolation"
  2195. // http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx
  2196. if ( !assert(function( div ) {
  2197. div.innerHTML = "<a href='#'></a>";
  2198. return div.firstChild.getAttribute("href") === "#" ;
  2199. }) ) {
  2200. addHandle( "type|href|height|width", function( elem, name, isXML ) {
  2201. if ( !isXML ) {
  2202. return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 );
  2203. }
  2204. });
  2205. }
  2206. // Support: IE<9
  2207. // Use defaultValue in place of getAttribute("value")
  2208. if ( !support.attributes || !assert(function( div ) {
  2209. div.innerHTML = "<input/>";
  2210. div.firstChild.setAttribute( "value", "" );
  2211. return div.firstChild.getAttribute( "value" ) === "";
  2212. }) ) {
  2213. addHandle( "value", function( elem, name, isXML ) {
  2214. if ( !isXML && elem.nodeName.toLowerCase() === "input" ) {
  2215. return elem.defaultValue;
  2216. }
  2217. });
  2218. }
  2219. // Support: IE<9
  2220. // Use getAttributeNode to fetch booleans when getAttribute lies
  2221. if ( !assert(function( div ) {
  2222. return div.getAttribute("disabled") == null;
  2223. }) ) {
  2224. addHandle( booleans, function( elem, name, isXML ) {
  2225. var val;
  2226. if ( !isXML ) {
  2227. return elem[ name ] === true ? name.toLowerCase() :
  2228. (val = elem.getAttributeNode( name )) && val.specified ?
  2229. val.value :
  2230. null;
  2231. }
  2232. });
  2233. }
  2234. return Sizzle;
  2235. })( window );
  2236. jQuery.find = Sizzle;
  2237. jQuery.expr = Sizzle.selectors;
  2238. jQuery.expr[":"] = jQuery.expr.pseudos;
  2239. jQuery.unique = Sizzle.uniqueSort;
  2240. jQuery.text = Sizzle.getText;
  2241. jQuery.isXMLDoc = Sizzle.isXML;
  2242. jQuery.contains = Sizzle.contains;
  2243. var rneedsContext = jQuery.expr.match.needsContext;
  2244. var rsingleTag = (/^<(\w+)\s*\/?>(?:<\/\1>|)$/);
  2245. var risSimple = /^.[^:#\[\.,]*$/;
  2246. // Implement the identical functionality for filter and not
  2247. function winnow( elements, qualifier, not ) {
  2248. if ( jQuery.isFunction( qualifier ) ) {
  2249. return jQuery.grep( elements, function( elem, i ) {
  2250. /* jshint -W018 */
  2251. return !!qualifier.call( elem, i, elem ) !== not;
  2252. });
  2253. }
  2254. if ( qualifier.nodeType ) {
  2255. return jQuery.grep( elements, function( elem ) {
  2256. return ( elem === qualifier ) !== not;
  2257. });
  2258. }
  2259. if ( typeof qualifier === "string" ) {
  2260. if ( risSimple.test( qualifier ) ) {
  2261. return jQuery.filter( qualifier, elements, not );
  2262. }
  2263. qualifier = jQuery.filter( qualifier, elements );
  2264. }
  2265. return jQuery.grep( elements, function( elem ) {
  2266. return ( jQuery.inArray( elem, qualifier ) >= 0 ) !== not;
  2267. });
  2268. }
  2269. jQuery.filter = function( expr, elems, not ) {
  2270. var elem = elems[ 0 ];
  2271. if ( not ) {
  2272. expr = ":not(" + expr + ")";
  2273. }
  2274. return elems.length === 1 && elem.nodeType === 1 ?
  2275. jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [] :
  2276. jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) {
  2277. return elem.nodeType === 1;
  2278. }));
  2279. };
  2280. jQuery.fn.extend({
  2281. find: function( selector ) {
  2282. var i,
  2283. ret = [],
  2284. self = this,
  2285. len = self.length;
  2286. if ( typeof selector !== "string" ) {
  2287. return this.pushStack( jQuery( selector ).filter(function() {
  2288. for ( i = 0; i < len; i++ ) {
  2289. if ( jQuery.contains( self[ i ], this ) ) {
  2290. return true;
  2291. }
  2292. }
  2293. }) );
  2294. }
  2295. for ( i = 0; i < len; i++ ) {
  2296. jQuery.find( selector, self[ i ], ret );
  2297. }
  2298. // Needed because $( selector, context ) becomes $( context ).find( selector )
  2299. ret = this.pushStack( len > 1 ? jQuery.unique( ret ) : ret );
  2300. ret.selector = this.selector ? this.selector + " " + selector : selector;
  2301. return ret;
  2302. },
  2303. filter: function( selector ) {
  2304. return this.pushStack( winnow(this, selector || [], false) );
  2305. },
  2306. not: function( selector ) {
  2307. return this.pushStack( winnow(this, selector || [], true) );
  2308. },
  2309. is: function( selector ) {
  2310. return !!winnow(
  2311. this,
  2312. // If this is a positional/relative selector, check membership in the returned set
  2313. // so $("p:first").is("p:last") won't return true for a doc with two "p".
  2314. typeof selector === "string" && rneedsContext.test( selector ) ?
  2315. jQuery( selector ) :
  2316. selector || [],
  2317. false
  2318. ).length;
  2319. }
  2320. });
  2321. // Initialize a jQuery object
  2322. // A central reference to the root jQuery(document)
  2323. var rootjQuery,
  2324. // Use the correct document accordingly with window argument (sandbox)
  2325. document = window.document,
  2326. // A simple way to check for HTML strings
  2327. // Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
  2328. // Strict HTML recognition (#11290: must start with <)
  2329. rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,
  2330. init = jQuery.fn.init = function( selector, context ) {
  2331. var match, elem;
  2332. // HANDLE: $(""), $(null), $(undefined), $(false)
  2333. if ( !selector ) {
  2334. return this;
  2335. }
  2336. // Handle HTML strings
  2337. if ( typeof selector === "string" ) {
  2338. if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) {
  2339. // Assume that strings that start and end with <> are HTML and skip the regex check
  2340. match = [ null, selector, null ];
  2341. } else {
  2342. match = rquickExpr.exec( selector );
  2343. }
  2344. // Match html or make sure no context is specified for #id
  2345. if ( match && (match[1] || !context) ) {
  2346. // HANDLE: $(html) -> $(array)
  2347. if ( match[1] ) {
  2348. context = context instanceof jQuery ? context[0] : context;
  2349. // scripts is true for back-compat
  2350. // Intentionally let the error be thrown if parseHTML is not present
  2351. jQuery.merge( this, jQuery.parseHTML(
  2352. match[1],
  2353. context && context.nodeType ? context.ownerDocument || context : document,
  2354. true
  2355. ) );
  2356. // HANDLE: $(html, props)
  2357. if ( rsingleTag.test( match[1] ) && jQuery.isPlainObject( context ) ) {
  2358. for ( match in context ) {
  2359. // Properties of context are called as methods if possible
  2360. if ( jQuery.isFunction( this[ match ] ) ) {
  2361. this[ match ]( context[ match ] );
  2362. // ...and otherwise set as attributes
  2363. } else {
  2364. this.attr( match, context[ match ] );
  2365. }
  2366. }
  2367. }
  2368. return this;
  2369. // HANDLE: $(#id)
  2370. } else {
  2371. elem = document.getElementById( match[2] );
  2372. // Check parentNode to catch when Blackberry 4.6 returns
  2373. // nodes that are no longer in the document #6963
  2374. if ( elem && elem.parentNode ) {
  2375. // Handle the case where IE and Opera return items
  2376. // by name instead of ID
  2377. if ( elem.id !== match[2] ) {
  2378. return rootjQuery.find( selector );
  2379. }
  2380. // Otherwise, we inject the element directly into the jQuery object
  2381. this.length = 1;
  2382. this[0] = elem;
  2383. }
  2384. this.context = document;
  2385. this.selector = selector;
  2386. return this;
  2387. }
  2388. // HANDLE: $(expr, $(...))
  2389. } else if ( !context || context.jquery ) {
  2390. return ( context || rootjQuery ).find( selector );
  2391. // HANDLE: $(expr, context)
  2392. // (which is just equivalent to: $(context).find(expr)
  2393. } else {
  2394. return this.constructor( context ).find( selector );
  2395. }
  2396. // HANDLE: $(DOMElement)
  2397. } else if ( selector.nodeType ) {
  2398. this.context = this[0] = selector;
  2399. this.length = 1;
  2400. return this;
  2401. // HANDLE: $(function)
  2402. // Shortcut for document ready
  2403. } else if ( jQuery.isFunction( selector ) ) {
  2404. return typeof rootjQuery.ready !== "undefined" ?
  2405. rootjQuery.ready( selector ) :
  2406. // Execute immediately if ready is not present
  2407. selector( jQuery );
  2408. }
  2409. if ( selector.selector !== undefined ) {
  2410. this.selector = selector.selector;
  2411. this.context = selector.context;
  2412. }
  2413. return jQuery.makeArray( selector, this );
  2414. };
  2415. // Give the init function the jQuery prototype for later instantiation
  2416. init.prototype = jQuery.fn;
  2417. // Initialize central reference
  2418. rootjQuery = jQuery( document );
  2419. var rparentsprev = /^(?:parents|prev(?:Until|All))/,
  2420. // methods guaranteed to produce a unique set when starting from a unique set
  2421. guaranteedUnique = {
  2422. children: true,
  2423. contents: true,
  2424. next: true,
  2425. prev: true
  2426. };
  2427. jQuery.extend({
  2428. dir: function( elem, dir, until ) {
  2429. var matched = [],
  2430. cur = elem[ dir ];
  2431. while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) {
  2432. if ( cur.nodeType === 1 ) {
  2433. matched.push( cur );
  2434. }
  2435. cur = cur[dir];
  2436. }
  2437. return matched;
  2438. },
  2439. sibling: function( n, elem ) {
  2440. var r = [];
  2441. for ( ; n; n = n.nextSibling ) {
  2442. if ( n.nodeType === 1 && n !== elem ) {
  2443. r.push( n );
  2444. }
  2445. }
  2446. return r;
  2447. }
  2448. });
  2449. jQuery.fn.extend({
  2450. has: function( target ) {
  2451. var i,
  2452. targets = jQuery( target, this ),
  2453. len = targets.length;
  2454. return this.filter(function() {
  2455. for ( i = 0; i < len; i++ ) {
  2456. if ( jQuery.contains( this, targets[i] ) ) {
  2457. return true;
  2458. }
  2459. }
  2460. });
  2461. },
  2462. closest: function( selectors, context ) {
  2463. var cur,
  2464. i = 0,
  2465. l = this.length,
  2466. matched = [],
  2467. pos = rneedsContext.test( selectors ) || typeof selectors !== "string" ?
  2468. jQuery( selectors, context || this.context ) :
  2469. 0;
  2470. for ( ; i < l; i++ ) {
  2471. for ( cur = this[i]; cur && cur !== context; cur = cur.parentNode ) {
  2472. // Always skip document fragments
  2473. if ( cur.nodeType < 11 && (pos ?
  2474. pos.index(cur) > -1 :
  2475. // Don't pass non-elements to Sizzle
  2476. cur.nodeType === 1 &&
  2477. jQuery.find.matchesSelector(cur, selectors)) ) {
  2478. matched.push( cur );
  2479. break;
  2480. }
  2481. }
  2482. }
  2483. return this.pushStack( matched.length > 1 ? jQuery.unique( matched ) : matched );
  2484. },
  2485. // Determine the position of an element within
  2486. // the matched set of elements
  2487. index: function( elem ) {
  2488. // No argument, return index in parent
  2489. if ( !elem ) {
  2490. return ( this[0] && this[0].parentNode ) ? this.first().prevAll().length : -1;
  2491. }
  2492. // index in selector
  2493. if ( typeof elem === "string" ) {
  2494. return jQuery.inArray( this[0], jQuery( elem ) );
  2495. }
  2496. // Locate the position of the desired element
  2497. return jQuery.inArray(
  2498. // If it receives a jQuery object, the first element is used
  2499. elem.jquery ? elem[0] : elem, this );
  2500. },
  2501. add: function( selector, context ) {
  2502. return this.pushStack(
  2503. jQuery.unique(
  2504. jQuery.merge( this.get(), jQuery( selector, context ) )
  2505. )
  2506. );
  2507. },
  2508. addBack: function( selector ) {
  2509. return this.add( selector == null ?
  2510. this.prevObject : this.prevObject.filter(selector)
  2511. );
  2512. }
  2513. });
  2514. function sibling( cur, dir ) {
  2515. do {
  2516. cur = cur[ dir ];
  2517. } while ( cur && cur.nodeType !== 1 );
  2518. return cur;
  2519. }
  2520. jQuery.each({
  2521. parent: function( elem ) {
  2522. var parent = elem.parentNode;
  2523. return parent && parent.nodeType !== 11 ? parent : null;
  2524. },
  2525. parents: function( elem ) {
  2526. return jQuery.dir( elem, "parentNode" );
  2527. },
  2528. parentsUntil: function( elem, i, until ) {
  2529. return jQuery.dir( elem, "parentNode", until );
  2530. },
  2531. next: function( elem ) {
  2532. return sibling( elem, "nextSibling" );
  2533. },
  2534. prev: function( elem ) {
  2535. return sibling( elem, "previousSibling" );
  2536. },
  2537. nextAll: function( elem ) {
  2538. return jQuery.dir( elem, "nextSibling" );
  2539. },
  2540. prevAll: function( elem ) {
  2541. return jQuery.dir( elem, "previousSibling" );
  2542. },
  2543. nextUntil: function( elem, i, until ) {
  2544. return jQuery.dir( elem, "nextSibling", until );
  2545. },
  2546. prevUntil: function( elem, i, until ) {
  2547. return jQuery.dir( elem, "previousSibling", until );
  2548. },
  2549. siblings: function( elem ) {
  2550. return jQuery.sibling( ( elem.parentNode || {} ).firstChild, elem );
  2551. },
  2552. children: function( elem ) {
  2553. return jQuery.sibling( elem.firstChild );
  2554. },
  2555. contents: function( elem ) {
  2556. return jQuery.nodeName( elem, "iframe" ) ?
  2557. elem.contentDocument || elem.contentWindow.document :
  2558. jQuery.merge( [], elem.childNodes );
  2559. }
  2560. }, function( name, fn ) {
  2561. jQuery.fn[ name ] = function( until, selector ) {
  2562. var ret = jQuery.map( this, fn, until );
  2563. if ( name.slice( -5 ) !== "Until" ) {
  2564. selector = until;
  2565. }
  2566. if ( selector && typeof selector === "string" ) {
  2567. ret = jQuery.filter( selector, ret );
  2568. }
  2569. if ( this.length > 1 ) {
  2570. // Remove duplicates
  2571. if ( !guaranteedUnique[ name ] ) {
  2572. ret = jQuery.unique( ret );
  2573. }
  2574. // Reverse order for parents* and prev-derivatives
  2575. if ( rparentsprev.test( name ) ) {
  2576. ret = ret.reverse();
  2577. }
  2578. }
  2579. return this.pushStack( ret );
  2580. };
  2581. });
  2582. var rnotwhite = (/\S+/g);
  2583. // String to Object options format cache
  2584. var optionsCache = {};
  2585. // Convert String-formatted options into Object-formatted ones and store in cache
  2586. function createOptions( options ) {
  2587. var object = optionsCache[ options ] = {};
  2588. jQuery.each( options.match( rnotwhite ) || [], function( _, flag ) {
  2589. object[ flag ] = true;
  2590. });
  2591. return object;
  2592. }
  2593. /*
  2594. * Create a callback list using the following parameters:
  2595. *
  2596. * options: an optional list of space-separated options that will change how
  2597. * the callback list behaves or a more traditional option object
  2598. *
  2599. * By default a callback list will act like an event callback list and can be
  2600. * "fired" multiple times.
  2601. *
  2602. * Possible options:
  2603. *
  2604. * once: will ensure the callback list can only be fired once (like a Deferred)
  2605. *
  2606. * memory: will keep track of previous values and will call any callback added
  2607. * after the list has been fired right away with the latest "memorized"
  2608. * values (like a Deferred)
  2609. *
  2610. * unique: will ensure a callback can only be added once (no duplicate in the list)
  2611. *
  2612. * stopOnFalse: interrupt callings when a callback returns false
  2613. *
  2614. */
  2615. jQuery.Callbacks = function( options ) {
  2616. // Convert options from String-formatted to Object-formatted if needed
  2617. // (we check in cache first)
  2618. options = typeof options === "string" ?
  2619. ( optionsCache[ options ] || createOptions( options ) ) :
  2620. jQuery.extend( {}, options );
  2621. var // Flag to know if list is currently firing
  2622. firing,
  2623. // Last fire value (for non-forgettable lists)
  2624. memory,
  2625. // Flag to know if list was already fired
  2626. fired,
  2627. // End of the loop when firing
  2628. firingLength,
  2629. // Index of currently firing callback (modified by remove if needed)
  2630. firingIndex,
  2631. // First callback to fire (used internally by add and fireWith)
  2632. firingStart,
  2633. // Actual callback list
  2634. list = [],
  2635. // Stack of fire calls for repeatable lists
  2636. stack = !options.once && [],
  2637. // Fire callbacks
  2638. fire = function( data ) {
  2639. memory = options.memory && data;
  2640. fired = true;
  2641. firingIndex = firingStart || 0;
  2642. firingStart = 0;
  2643. firingLength = list.length;
  2644. firing = true;
  2645. for ( ; list && firingIndex < firingLength; firingIndex++ ) {
  2646. if ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse ) {
  2647. memory = false; // To prevent further calls using add
  2648. break;
  2649. }
  2650. }
  2651. firing = false;
  2652. if ( list ) {
  2653. if ( stack ) {
  2654. if ( stack.length ) {
  2655. fire( stack.shift() );
  2656. }
  2657. } else if ( memory ) {
  2658. list = [];
  2659. } else {
  2660. self.disable();
  2661. }
  2662. }
  2663. },
  2664. // Actual Callbacks object
  2665. self = {
  2666. // Add a callback or a collection of callbacks to the list
  2667. add: function() {
  2668. if ( list ) {
  2669. // First, we save the current length
  2670. var start = list.length;
  2671. (function add( args ) {
  2672. jQuery.each( args, function( _, arg ) {
  2673. var type = jQuery.type( arg );
  2674. if ( type === "function" ) {
  2675. if ( !options.unique || !self.has( arg ) ) {
  2676. list.push( arg );
  2677. }
  2678. } else if ( arg && arg.length && type !== "string" ) {
  2679. // Inspect recursively
  2680. add( arg );
  2681. }
  2682. });
  2683. })( arguments );
  2684. // Do we need to add the callbacks to the
  2685. // current firing batch?
  2686. if ( firing ) {
  2687. firingLength = list.length;
  2688. // With memory, if we're not firing then
  2689. // we should call right away
  2690. } else if ( memory ) {
  2691. firingStart = start;
  2692. fire( memory );
  2693. }
  2694. }
  2695. return this;
  2696. },
  2697. // Remove a callback from the list
  2698. remove: function() {
  2699. if ( list ) {
  2700. jQuery.each( arguments, function( _, arg ) {
  2701. var index;
  2702. while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) {
  2703. list.splice( index, 1 );
  2704. // Handle firing indexes
  2705. if ( firing ) {
  2706. if ( index <= firingLength ) {
  2707. firingLength--;
  2708. }
  2709. if ( index <= firingIndex ) {
  2710. firingIndex--;
  2711. }
  2712. }
  2713. }
  2714. });
  2715. }
  2716. return this;
  2717. },
  2718. // Check if a given callback is in the list.
  2719. // If no argument is given, return whether or not list has callbacks attached.
  2720. has: function( fn ) {
  2721. return fn ? jQuery.inArray( fn, list ) > -1 : !!( list && list.length );
  2722. },
  2723. // Remove all callbacks from the list
  2724. empty: function() {
  2725. list = [];
  2726. firingLength = 0;
  2727. return this;
  2728. },
  2729. // Have the list do nothing anymore
  2730. disable: function() {
  2731. list = stack = memory = undefined;
  2732. return this;
  2733. },
  2734. // Is it disabled?
  2735. disabled: function() {
  2736. return !list;
  2737. },
  2738. // Lock the list in its current state
  2739. lock: function() {
  2740. stack = undefined;
  2741. if ( !memory ) {
  2742. self.disable();
  2743. }
  2744. return this;
  2745. },
  2746. // Is it locked?
  2747. locked: function() {
  2748. return !stack;
  2749. },
  2750. // Call all callbacks with the given context and arguments
  2751. fireWith: function( context, args ) {
  2752. if ( list && ( !fired || stack ) ) {
  2753. args = args || [];
  2754. args = [ context, args.slice ? args.slice() : args ];
  2755. if ( firing ) {
  2756. stack.push( args );
  2757. } else {
  2758. fire( args );
  2759. }
  2760. }
  2761. return this;
  2762. },
  2763. // Call all the callbacks with the given arguments
  2764. fire: function() {
  2765. self.fireWith( this, arguments );
  2766. return this;
  2767. },
  2768. // To know if the callbacks have already been called at least once
  2769. fired: function() {
  2770. return !!fired;
  2771. }
  2772. };
  2773. return self;
  2774. };
  2775. jQuery.extend({
  2776. Deferred: function( func ) {
  2777. var tuples = [
  2778. // action, add listener, listener list, final state
  2779. [ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ],
  2780. [ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ],
  2781. [ "notify", "progress", jQuery.Callbacks("memory") ]
  2782. ],
  2783. state = "pending",
  2784. promise = {
  2785. state: function() {
  2786. return state;
  2787. },
  2788. always: function() {
  2789. deferred.done( arguments ).fail( arguments );
  2790. return this;
  2791. },
  2792. then: function( /* fnDone, fnFail, fnProgress */ ) {
  2793. var fns = arguments;
  2794. return jQuery.Deferred(function( newDefer ) {
  2795. jQuery.each( tuples, function( i, tuple ) {
  2796. var fn = jQuery.isFunction( fns[ i ] ) && fns[ i ];
  2797. // deferred[ done | fail | progress ] for forwarding actions to newDefer
  2798. deferred[ tuple[1] ](function() {
  2799. var returned = fn && fn.apply( this, arguments );
  2800. if ( returned && jQuery.isFunction( returned.promise ) ) {
  2801. returned.promise()
  2802. .done( newDefer.resolve )
  2803. .fail( newDefer.reject )
  2804. .progress( newDefer.notify );
  2805. } else {
  2806. newDefer[ tuple[ 0 ] + "With" ]( this === promise ? newDefer.promise() : this, fn ? [ returned ] : arguments );
  2807. }
  2808. });
  2809. });
  2810. fns = null;
  2811. }).promise();
  2812. },
  2813. // Get a promise for this deferred
  2814. // If obj is provided, the promise aspect is added to the object
  2815. promise: function( obj ) {
  2816. return obj != null ? jQuery.extend( obj, promise ) : promise;
  2817. }
  2818. },
  2819. deferred = {};
  2820. // Keep pipe for back-compat
  2821. promise.pipe = promise.then;
  2822. // Add list-specific methods
  2823. jQuery.each( tuples, function( i, tuple ) {
  2824. var list = tuple[ 2 ],
  2825. stateString = tuple[ 3 ];
  2826. // promise[ done | fail | progress ] = list.add
  2827. promise[ tuple[1] ] = list.add;
  2828. // Handle state
  2829. if ( stateString ) {
  2830. list.add(function() {
  2831. // state = [ resolved | rejected ]
  2832. state = stateString;
  2833. // [ reject_list | resolve_list ].disable; progress_list.lock
  2834. }, tuples[ i ^ 1 ][ 2 ].disable, tuples[ 2 ][ 2 ].lock );
  2835. }
  2836. // deferred[ resolve | reject | notify ]
  2837. deferred[ tuple[0] ] = function() {
  2838. deferred[ tuple[0] + "With" ]( this === deferred ? promise : this, arguments );
  2839. return this;
  2840. };
  2841. deferred[ tuple[0] + "With" ] = list.fireWith;
  2842. });
  2843. // Make the deferred a promise
  2844. promise.promise( deferred );
  2845. // Call given func if any
  2846. if ( func ) {
  2847. func.call( deferred, deferred );
  2848. }
  2849. // All done!
  2850. return deferred;
  2851. },
  2852. // Deferred helper
  2853. when: function( subordinate /* , ..., subordinateN */ ) {
  2854. var i = 0,
  2855. resolveValues = slice.call( arguments ),
  2856. length = resolveValues.length,
  2857. // the count of uncompleted subordinates
  2858. remaining = length !== 1 || ( subordinate && jQuery.isFunction( subordinate.promise ) ) ? length : 0,
  2859. // the master Deferred. If resolveValues consist of only a single Deferred, just use that.
  2860. deferred = remaining === 1 ? subordinate : jQuery.Deferred(),
  2861. // Update function for both resolve and progress values
  2862. updateFunc = function( i, contexts, values ) {
  2863. return function( value ) {
  2864. contexts[ i ] = this;
  2865. values[ i ] = arguments.length > 1 ? slice.call( arguments ) : value;
  2866. if ( values === progressValues ) {
  2867. deferred.notifyWith( contexts, values );
  2868. } else if ( !(--remaining) ) {
  2869. deferred.resolveWith( contexts, values );
  2870. }
  2871. };
  2872. },
  2873. progressValues, progressContexts, resolveContexts;
  2874. // add listeners to Deferred subordinates; treat others as resolved
  2875. if ( length > 1 ) {
  2876. progressValues = new Array( length );
  2877. progressContexts = new Array( length );
  2878. resolveContexts = new Array( length );
  2879. for ( ; i < length; i++ ) {
  2880. if ( resolveValues[ i ] && jQuery.isFunction( resolveValues[ i ].promise ) ) {
  2881. resolveValues[ i ].promise()
  2882. .done( updateFunc( i, resolveContexts, resolveValues ) )
  2883. .fail( deferred.reject )
  2884. .progress( updateFunc( i, progressContexts, progressValues ) );
  2885. } else {
  2886. --remaining;
  2887. }
  2888. }
  2889. }
  2890. // if we're not waiting on anything, resolve the master
  2891. if ( !remaining ) {
  2892. deferred.resolveWith( resolveContexts, resolveValues );
  2893. }
  2894. return deferred.promise();
  2895. }
  2896. });
  2897. // The deferred used on DOM ready
  2898. var readyList;
  2899. jQuery.fn.ready = function( fn ) {
  2900. // Add the callback
  2901. jQuery.ready.promise().done( fn );
  2902. return this;
  2903. };
  2904. jQuery.extend({
  2905. // Is the DOM ready to be used? Set to true once it occurs.
  2906. isReady: false,
  2907. // A counter to track how many items to wait for before
  2908. // the ready event fires. See #6781
  2909. readyWait: 1,
  2910. // Hold (or release) the ready event
  2911. holdReady: function( hold ) {
  2912. if ( hold ) {
  2913. jQuery.readyWait++;
  2914. } else {
  2915. jQuery.ready( true );
  2916. }
  2917. },
  2918. // Handle when the DOM is ready
  2919. ready: function( wait ) {
  2920. // Abort if there are pending holds or we're already ready
  2921. if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {
  2922. return;
  2923. }
  2924. // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
  2925. if ( !document.body ) {
  2926. return setTimeout( jQuery.ready );
  2927. }
  2928. // Remember that the DOM is ready
  2929. jQuery.isReady = true;
  2930. // If a normal DOM Ready event fired, decrement, and wait if need be
  2931. if ( wait !== true && --jQuery.readyWait > 0 ) {
  2932. return;
  2933. }
  2934. // If there are functions bound, to execute
  2935. readyList.resolveWith( document, [ jQuery ] );
  2936. // Trigger any bound ready events
  2937. if ( jQuery.fn.triggerHandler ) {
  2938. jQuery( document ).triggerHandler( "ready" );
  2939. jQuery( document ).off( "ready" );
  2940. }
  2941. }
  2942. });
  2943. /**
  2944. * Clean-up method for dom ready events
  2945. */
  2946. function detach() {
  2947. if ( document.addEventListener ) {
  2948. document.removeEventListener( "DOMContentLoaded", completed, false );
  2949. window.removeEventListener( "load", completed, false );
  2950. } else {
  2951. document.detachEvent( "onreadystatechange", completed );
  2952. window.detachEvent( "onload", completed );
  2953. }
  2954. }
  2955. /**
  2956. * The ready event handler and self cleanup method
  2957. */
  2958. function completed() {
  2959. // readyState === "complete" is good enough for us to call the dom ready in oldIE
  2960. if ( document.addEventListener || event.type === "load" || document.readyState === "complete" ) {
  2961. detach();
  2962. jQuery.ready();
  2963. }
  2964. }
  2965. jQuery.ready.promise = function( obj ) {
  2966. if ( !readyList ) {
  2967. readyList = jQuery.Deferred();
  2968. // Catch cases where $(document).ready() is called after the browser event has already occurred.
  2969. // we once tried to use readyState "interactive" here, but it caused issues like the one
  2970. // discovered by ChrisS here: http://bugs.jquery.com/ticket/12282#comment:15
  2971. if ( document.readyState === "complete" ) {
  2972. // Handle it asynchronously to allow scripts the opportunity to delay ready
  2973. setTimeout( jQuery.ready );
  2974. // Standards-based browsers support DOMContentLoaded
  2975. } else if ( document.addEventListener ) {
  2976. // Use the handy event callback
  2977. document.addEventListener( "DOMContentLoaded", completed, false );
  2978. // A fallback to window.onload, that will always work
  2979. window.addEventListener( "load", completed, false );
  2980. // If IE event model is used
  2981. } else {
  2982. // Ensure firing before onload, maybe late but safe also for iframes
  2983. document.attachEvent( "onreadystatechange", completed );
  2984. // A fallback to window.onload, that will always work
  2985. window.attachEvent( "onload", completed );
  2986. // If IE and not a frame
  2987. // continually check to see if the document is ready
  2988. var top = false;
  2989. try {
  2990. top = window.frameElement == null && document.documentElement;
  2991. } catch(e) {}
  2992. if ( top && top.doScroll ) {
  2993. (function doScrollCheck() {
  2994. if ( !jQuery.isReady ) {
  2995. try {
  2996. // Use the trick by Diego Perini
  2997. // http://javascript.nwbox.com/IEContentLoaded/
  2998. top.doScroll("left");
  2999. } catch(e) {
  3000. return setTimeout( doScrollCheck, 50 );
  3001. }
  3002. // detach all dom ready events
  3003. detach();
  3004. // and execute any waiting functions
  3005. jQuery.ready();
  3006. }
  3007. })();
  3008. }
  3009. }
  3010. }
  3011. return readyList.promise( obj );
  3012. };
  3013. var strundefined = typeof undefined;
  3014. // Support: IE<9
  3015. // Iteration over object's inherited properties before its own
  3016. var i;
  3017. for ( i in jQuery( support ) ) {
  3018. break;
  3019. }
  3020. support.ownLast = i !== "0";
  3021. // Note: most support tests are defined in their respective modules.
  3022. // false until the test is run
  3023. support.inlineBlockNeedsLayout = false;
  3024. // Execute ASAP in case we need to set body.style.zoom
  3025. jQuery(function() {
  3026. // Minified: var a,b,c,d
  3027. var val, div, body, container;
  3028. body = document.getElementsByTagName( "body" )[ 0 ];
  3029. if ( !body || !body.style ) {
  3030. // Return for frameset docs that don't have a body
  3031. return;
  3032. }
  3033. // Setup
  3034. div = document.createElement( "div" );
  3035. container = document.createElement( "div" );
  3036. container.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px";
  3037. body.appendChild( container ).appendChild( div );
  3038. if ( typeof div.style.zoom !== strundefined ) {
  3039. // Support: IE<8
  3040. // Check if natively block-level elements act like inline-block
  3041. // elements when setting their display to 'inline' and giving
  3042. // them layout
  3043. div.style.cssText = "display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1";
  3044. support.inlineBlockNeedsLayout = val = div.offsetWidth === 3;
  3045. if ( val ) {
  3046. // Prevent IE 6 from affecting layout for positioned elements #11048
  3047. // Prevent IE from shrinking the body in IE 7 mode #12869
  3048. // Support: IE<8
  3049. body.style.zoom = 1;
  3050. }
  3051. }
  3052. body.removeChild( container );
  3053. });
  3054. (function() {
  3055. var div = document.createElement( "div" );
  3056. // Execute the test only if not already executed in another module.
  3057. if (support.deleteExpando == null) {
  3058. // Support: IE<9
  3059. support.deleteExpando = true;
  3060. try {
  3061. delete div.test;
  3062. } catch( e ) {
  3063. support.deleteExpando = false;
  3064. }
  3065. }
  3066. // Null elements to avoid leaks in IE.
  3067. div = null;
  3068. })();
  3069. /**
  3070. * Determines whether an object can have data
  3071. */
  3072. jQuery.acceptData = function( elem ) {
  3073. var noData = jQuery.noData[ (elem.nodeName + " ").toLowerCase() ],
  3074. nodeType = +elem.nodeType || 1;
  3075. // Do not set data on non-element DOM nodes because it will not be cleared (#8335).
  3076. return nodeType !== 1 && nodeType !== 9 ?
  3077. false :
  3078. // Nodes accept data unless otherwise specified; rejection can be conditional
  3079. !noData || noData !== true && elem.getAttribute("classid") === noData;
  3080. };
  3081. var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
  3082. rmultiDash = /([A-Z])/g;
  3083. function dataAttr( elem, key, data ) {
  3084. // If nothing was found internally, try to fetch any
  3085. // data from the HTML5 data-* attribute
  3086. if ( data === undefined && elem.nodeType === 1 ) {
  3087. var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase();
  3088. data = elem.getAttribute( name );
  3089. if ( typeof data === "string" ) {
  3090. try {
  3091. data = data === "true" ? true :
  3092. data === "false" ? false :
  3093. data === "null" ? null :
  3094. // Only convert to a number if it doesn't change the string
  3095. +data + "" === data ? +data :
  3096. rbrace.test( data ) ? jQuery.parseJSON( data ) :
  3097. data;
  3098. } catch( e ) {}
  3099. // Make sure we set the data so it isn't changed later
  3100. jQuery.data( elem, key, data );
  3101. } else {
  3102. data = undefined;
  3103. }
  3104. }
  3105. return data;
  3106. }
  3107. // checks a cache object for emptiness
  3108. function isEmptyDataObject( obj ) {
  3109. var name;
  3110. for ( name in obj ) {
  3111. // if the public data object is empty, the private is still empty
  3112. if ( name === "data" && jQuery.isEmptyObject( obj[name] ) ) {
  3113. continue;
  3114. }
  3115. if ( name !== "toJSON" ) {
  3116. return false;
  3117. }
  3118. }
  3119. return true;
  3120. }
  3121. function internalData( elem, name, data, pvt /* Internal Use Only */ ) {
  3122. if ( !jQuery.acceptData( elem ) ) {
  3123. return;
  3124. }
  3125. var ret, thisCache,
  3126. internalKey = jQuery.expando,
  3127. // We have to handle DOM nodes and JS objects differently because IE6-7
  3128. // can't GC object references properly across the DOM-JS boundary
  3129. isNode = elem.nodeType,
  3130. // Only DOM nodes need the global jQuery cache; JS object data is
  3131. // attached directly to the object so GC can occur automatically
  3132. cache = isNode ? jQuery.cache : elem,
  3133. // Only defining an ID for JS objects if its cache already exists allows
  3134. // the code to shortcut on the same path as a DOM node with no cache
  3135. id = isNode ? elem[ internalKey ] : elem[ internalKey ] && internalKey;
  3136. // Avoid doing any more work than we need to when trying to get data on an
  3137. // object that has no data at all
  3138. if ( (!id || !cache[id] || (!pvt && !cache[id].data)) && data === undefined && typeof name === "string" ) {
  3139. return;
  3140. }
  3141. if ( !id ) {
  3142. // Only DOM nodes need a new unique ID for each element since their data
  3143. // ends up in the global cache
  3144. if ( isNode ) {
  3145. id = elem[ internalKey ] = deletedIds.pop() || jQuery.guid++;
  3146. } else {
  3147. id = internalKey;
  3148. }
  3149. }
  3150. if ( !cache[ id ] ) {
  3151. // Avoid exposing jQuery metadata on plain JS objects when the object
  3152. // is serialized using JSON.stringify
  3153. cache[ id ] = isNode ? {} : { toJSON: jQuery.noop };
  3154. }
  3155. // An object can be passed to jQuery.data instead of a key/value pair; this gets
  3156. // shallow copied over onto the existing cache
  3157. if ( typeof name === "object" || typeof name === "function" ) {
  3158. if ( pvt ) {
  3159. cache[ id ] = jQuery.extend( cache[ id ], name );
  3160. } else {
  3161. cache[ id ].data = jQuery.extend( cache[ id ].data, name );
  3162. }
  3163. }
  3164. thisCache = cache[ id ];
  3165. // jQuery data() is stored in a separate object inside the object's internal data
  3166. // cache in order to avoid key collisions between internal data and user-defined
  3167. // data.
  3168. if ( !pvt ) {
  3169. if ( !thisCache.data ) {
  3170. thisCache.data = {};
  3171. }
  3172. thisCache = thisCache.data;
  3173. }
  3174. if ( data !== undefined ) {
  3175. thisCache[ jQuery.camelCase( name ) ] = data;
  3176. }
  3177. // Check for both converted-to-camel and non-converted data property names
  3178. // If a data property was specified
  3179. if ( typeof name === "string" ) {
  3180. // First Try to find as-is property data
  3181. ret = thisCache[ name ];
  3182. // Test for null|undefined property data
  3183. if ( ret == null ) {
  3184. // Try to find the camelCased property
  3185. ret = thisCache[ jQuery.camelCase( name ) ];
  3186. }
  3187. } else {
  3188. ret = thisCache;
  3189. }
  3190. return ret;
  3191. }
  3192. function internalRemoveData( elem, name, pvt ) {
  3193. if ( !jQuery.acceptData( elem ) ) {
  3194. return;
  3195. }
  3196. var thisCache, i,
  3197. isNode = elem.nodeType,
  3198. // See jQuery.data for more information
  3199. cache = isNode ? jQuery.cache : elem,
  3200. id = isNode ? elem[ jQuery.expando ] : jQuery.expando;
  3201. // If there is already no cache entry for this object, there is no
  3202. // purpose in continuing
  3203. if ( !cache[ id ] ) {
  3204. return;
  3205. }
  3206. if ( name ) {
  3207. thisCache = pvt ? cache[ id ] : cache[ id ].data;
  3208. if ( thisCache ) {
  3209. // Support array or space separated string names for data keys
  3210. if ( !jQuery.isArray( name ) ) {
  3211. // try the string as a key before any manipulation
  3212. if ( name in thisCache ) {
  3213. name = [ name ];
  3214. } else {
  3215. // split the camel cased version by spaces unless a key with the spaces exists
  3216. name = jQuery.camelCase( name );
  3217. if ( name in thisCache ) {
  3218. name = [ name ];
  3219. } else {
  3220. name = name.split(" ");
  3221. }
  3222. }
  3223. } else {
  3224. // If "name" is an array of keys...
  3225. // When data is initially created, via ("key", "val") signature,
  3226. // keys will be converted to camelCase.
  3227. // Since there is no way to tell _how_ a key was added, remove
  3228. // both plain key and camelCase key. #12786
  3229. // This will only penalize the array argument path.
  3230. name = name.concat( jQuery.map( name, jQuery.camelCase ) );
  3231. }
  3232. i = name.length;
  3233. while ( i-- ) {
  3234. delete thisCache[ name[i] ];
  3235. }
  3236. // If there is no data left in the cache, we want to continue
  3237. // and let the cache object itself get destroyed
  3238. if ( pvt ? !isEmptyDataObject(thisCache) : !jQuery.isEmptyObject(thisCache) ) {
  3239. return;
  3240. }
  3241. }
  3242. }
  3243. // See jQuery.data for more information
  3244. if ( !pvt ) {
  3245. delete cache[ id ].data;
  3246. // Don't destroy the parent cache unless the internal data object
  3247. // had been the only thing left in it
  3248. if ( !isEmptyDataObject( cache[ id ] ) ) {
  3249. return;
  3250. }
  3251. }
  3252. // Destroy the cache
  3253. if ( isNode ) {
  3254. jQuery.cleanData( [ elem ], true );
  3255. // Use delete when supported for expandos or `cache` is not a window per isWindow (#10080)
  3256. /* jshint eqeqeq: false */
  3257. } else if ( support.deleteExpando || cache != cache.window ) {
  3258. /* jshint eqeqeq: true */
  3259. delete cache[ id ];
  3260. // When all else fails, null
  3261. } else {
  3262. cache[ id ] = null;
  3263. }
  3264. }
  3265. jQuery.extend({
  3266. cache: {},
  3267. // The following elements (space-suffixed to avoid Object.prototype collisions)
  3268. // throw uncatchable exceptions if you attempt to set expando properties
  3269. noData: {
  3270. "applet ": true,
  3271. "embed ": true,
  3272. // ...but Flash objects (which have this classid) *can* handle expandos
  3273. "object ": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
  3274. },
  3275. hasData: function( elem ) {
  3276. elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ];
  3277. return !!elem && !isEmptyDataObject( elem );
  3278. },
  3279. data: function( elem, name, data ) {
  3280. return internalData( elem, name, data );
  3281. },
  3282. removeData: function( elem, name ) {
  3283. return internalRemoveData( elem, name );
  3284. },
  3285. // For internal use only.
  3286. _data: function( elem, name, data ) {
  3287. return internalData( elem, name, data, true );
  3288. },
  3289. _removeData: function( elem, name ) {
  3290. return internalRemoveData( elem, name, true );
  3291. }
  3292. });
  3293. jQuery.fn.extend({
  3294. data: function( key, value ) {
  3295. var i, name, data,
  3296. elem = this[0],
  3297. attrs = elem && elem.attributes;
  3298. // Special expections of .data basically thwart jQuery.access,
  3299. // so implement the relevant behavior ourselves
  3300. // Gets all values
  3301. if ( key === undefined ) {
  3302. if ( this.length ) {
  3303. data = jQuery.data( elem );
  3304. if ( elem.nodeType === 1 && !jQuery._data( elem, "parsedAttrs" ) ) {
  3305. i = attrs.length;
  3306. while ( i-- ) {
  3307. // Support: IE11+
  3308. // The attrs elements can be null (#14894)
  3309. if ( attrs[ i ] ) {
  3310. name = attrs[ i ].name;
  3311. if ( name.indexOf( "data-" ) === 0 ) {
  3312. name = jQuery.camelCase( name.slice(5) );
  3313. dataAttr( elem, name, data[ name ] );
  3314. }
  3315. }
  3316. }
  3317. jQuery._data( elem, "parsedAttrs", true );
  3318. }
  3319. }
  3320. return data;
  3321. }
  3322. // Sets multiple values
  3323. if ( typeof key === "object" ) {
  3324. return this.each(function() {
  3325. jQuery.data( this, key );
  3326. });
  3327. }
  3328. return arguments.length > 1 ?
  3329. // Sets one value
  3330. this.each(function() {
  3331. jQuery.data( this, key, value );
  3332. }) :
  3333. // Gets one value
  3334. // Try to fetch any internally stored data first
  3335. elem ? dataAttr( elem, key, jQuery.data( elem, key ) ) : undefined;
  3336. },
  3337. removeData: function( key ) {
  3338. return this.each(function() {
  3339. jQuery.removeData( this, key );
  3340. });
  3341. }
  3342. });
  3343. jQuery.extend({
  3344. queue: function( elem, type, data ) {
  3345. var queue;
  3346. if ( elem ) {
  3347. type = ( type || "fx" ) + "queue";
  3348. queue = jQuery._data( elem, type );
  3349. // Speed up dequeue by getting out quickly if this is just a lookup
  3350. if ( data ) {
  3351. if ( !queue || jQuery.isArray(data) ) {
  3352. queue = jQuery._data( elem, type, jQuery.makeArray(data) );
  3353. } else {
  3354. queue.push( data );
  3355. }
  3356. }
  3357. return queue || [];
  3358. }
  3359. },
  3360. dequeue: function( elem, type ) {
  3361. type = type || "fx";
  3362. var queue = jQuery.queue( elem, type ),
  3363. startLength = queue.length,
  3364. fn = queue.shift(),
  3365. hooks = jQuery._queueHooks( elem, type ),
  3366. next = function() {
  3367. jQuery.dequeue( elem, type );
  3368. };
  3369. // If the fx queue is dequeued, always remove the progress sentinel
  3370. if ( fn === "inprogress" ) {
  3371. fn = queue.shift();
  3372. startLength--;
  3373. }
  3374. if ( fn ) {
  3375. // Add a progress sentinel to prevent the fx queue from being
  3376. // automatically dequeued
  3377. if ( type === "fx" ) {
  3378. queue.unshift( "inprogress" );
  3379. }
  3380. // clear up the last queue stop function
  3381. delete hooks.stop;
  3382. fn.call( elem, next, hooks );
  3383. }
  3384. if ( !startLength && hooks ) {
  3385. hooks.empty.fire();
  3386. }
  3387. },
  3388. // not intended for public consumption - generates a queueHooks object, or returns the current one
  3389. _queueHooks: function( elem, type ) {
  3390. var key = type + "queueHooks";
  3391. return jQuery._data( elem, key ) || jQuery._data( elem, key, {
  3392. empty: jQuery.Callbacks("once memory").add(function() {
  3393. jQuery._removeData( elem, type + "queue" );
  3394. jQuery._removeData( elem, key );
  3395. })
  3396. });
  3397. }
  3398. });
  3399. jQuery.fn.extend({
  3400. queue: function( type, data ) {
  3401. var setter = 2;
  3402. if ( typeof type !== "string" ) {
  3403. data = type;
  3404. type = "fx";
  3405. setter--;
  3406. }
  3407. if ( arguments.length < setter ) {
  3408. return jQuery.queue( this[0], type );
  3409. }
  3410. return data === undefined ?
  3411. this :
  3412. this.each(function() {
  3413. var queue = jQuery.queue( this, type, data );
  3414. // ensure a hooks for this queue
  3415. jQuery._queueHooks( this, type );
  3416. if ( type === "fx" && queue[0] !== "inprogress" ) {
  3417. jQuery.dequeue( this, type );
  3418. }
  3419. });
  3420. },
  3421. dequeue: function( type ) {
  3422. return this.each(function() {
  3423. jQuery.dequeue( this, type );
  3424. });
  3425. },
  3426. clearQueue: function( type ) {
  3427. return this.queue( type || "fx", [] );
  3428. },
  3429. // Get a promise resolved when queues of a certain type
  3430. // are emptied (fx is the type by default)
  3431. promise: function( type, obj ) {
  3432. var tmp,
  3433. count = 1,
  3434. defer = jQuery.Deferred(),
  3435. elements = this,
  3436. i = this.length,
  3437. resolve = function() {
  3438. if ( !( --count ) ) {
  3439. defer.resolveWith( elements, [ elements ] );
  3440. }
  3441. };
  3442. if ( typeof type !== "string" ) {
  3443. obj = type;
  3444. type = undefined;
  3445. }
  3446. type = type || "fx";
  3447. while ( i-- ) {
  3448. tmp = jQuery._data( elements[ i ], type + "queueHooks" );
  3449. if ( tmp && tmp.empty ) {
  3450. count++;
  3451. tmp.empty.add( resolve );
  3452. }
  3453. }
  3454. resolve();
  3455. return defer.promise( obj );
  3456. }
  3457. });
  3458. var pnum = (/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/).source;
  3459. var cssExpand = [ "Top", "Right", "Bottom", "Left" ];
  3460. var isHidden = function( elem, el ) {
  3461. // isHidden might be called from jQuery#filter function;
  3462. // in that case, element will be second argument
  3463. elem = el || elem;
  3464. return jQuery.css( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument, elem );
  3465. };
  3466. // Multifunctional method to get and set values of a collection
  3467. // The value/s can optionally be executed if it's a function
  3468. var access = jQuery.access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
  3469. var i = 0,
  3470. length = elems.length,
  3471. bulk = key == null;
  3472. // Sets many values
  3473. if ( jQuery.type( key ) === "object" ) {
  3474. chainable = true;
  3475. for ( i in key ) {
  3476. jQuery.access( elems, fn, i, key[i], true, emptyGet, raw );
  3477. }
  3478. // Sets one value
  3479. } else if ( value !== undefined ) {
  3480. chainable = true;
  3481. if ( !jQuery.isFunction( value ) ) {
  3482. raw = true;
  3483. }
  3484. if ( bulk ) {
  3485. // Bulk operations run against the entire set
  3486. if ( raw ) {
  3487. fn.call( elems, value );
  3488. fn = null;
  3489. // ...except when executing function values
  3490. } else {
  3491. bulk = fn;
  3492. fn = function( elem, key, value ) {
  3493. return bulk.call( jQuery( elem ), value );
  3494. };
  3495. }
  3496. }
  3497. if ( fn ) {
  3498. for ( ; i < length; i++ ) {
  3499. fn( elems[i], key, raw ? value : value.call( elems[i], i, fn( elems[i], key ) ) );
  3500. }
  3501. }
  3502. }
  3503. return chainable ?
  3504. elems :
  3505. // Gets
  3506. bulk ?
  3507. fn.call( elems ) :
  3508. length ? fn( elems[0], key ) : emptyGet;
  3509. };
  3510. var rcheckableType = (/^(?:checkbox|radio)$/i);
  3511. (function() {
  3512. // Minified: var a,b,c
  3513. var input = document.createElement( "input" ),
  3514. div = document.createElement( "div" ),
  3515. fragment = document.createDocumentFragment();
  3516. // Setup
  3517. div.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";
  3518. // IE strips leading whitespace when .innerHTML is used
  3519. support.leadingWhitespace = div.firstChild.nodeType === 3;
  3520. // Make sure that tbody elements aren't automatically inserted
  3521. // IE will insert them into empty tables
  3522. support.tbody = !div.getElementsByTagName( "tbody" ).length;
  3523. // Make sure that link elements get serialized correctly by innerHTML
  3524. // This requires a wrapper element in IE
  3525. support.htmlSerialize = !!div.getElementsByTagName( "link" ).length;
  3526. // Makes sure cloning an html5 element does not cause problems
  3527. // Where outerHTML is undefined, this still works
  3528. support.html5Clone =
  3529. document.createElement( "nav" ).cloneNode( true ).outerHTML !== "<:nav></:nav>";
  3530. // Check if a disconnected checkbox will retain its checked
  3531. // value of true after appended to the DOM (IE6/7)
  3532. input.type = "checkbox";
  3533. input.checked = true;
  3534. fragment.appendChild( input );
  3535. support.appendChecked = input.checked;
  3536. // Make sure textarea (and checkbox) defaultValue is properly cloned
  3537. // Support: IE6-IE11+
  3538. div.innerHTML = "<textarea>x</textarea>";
  3539. support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;
  3540. // #11217 - WebKit loses check when the name is after the checked attribute
  3541. fragment.appendChild( div );
  3542. div.innerHTML = "<input type='radio' checked='checked' name='t'/>";
  3543. // Support: Safari 5.1, iOS 5.1, Android 4.x, Android 2.3
  3544. // old WebKit doesn't clone checked state correctly in fragments
  3545. support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;
  3546. // Support: IE<9
  3547. // Opera does not clone events (and typeof div.attachEvent === undefined).
  3548. // IE9-10 clones events bound via attachEvent, but they don't trigger with .click()
  3549. support.noCloneEvent = true;
  3550. if ( div.attachEvent ) {
  3551. div.attachEvent( "onclick", function() {
  3552. support.noCloneEvent = false;
  3553. });
  3554. div.cloneNode( true ).click();
  3555. }
  3556. // Execute the test only if not already executed in another module.
  3557. if (support.deleteExpando == null) {
  3558. // Support: IE<9
  3559. support.deleteExpando = true;
  3560. try {
  3561. delete div.test;
  3562. } catch( e ) {
  3563. support.deleteExpando = false;
  3564. }
  3565. }
  3566. })();
  3567. (function() {
  3568. var i, eventName,
  3569. div = document.createElement( "div" );
  3570. // Support: IE<9 (lack submit/change bubble), Firefox 23+ (lack focusin event)
  3571. for ( i in { submit: true, change: true, focusin: true }) {
  3572. eventName = "on" + i;
  3573. if ( !(support[ i + "Bubbles" ] = eventName in window) ) {
  3574. // Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP)
  3575. div.setAttribute( eventName, "t" );
  3576. support[ i + "Bubbles" ] = div.attributes[ eventName ].expando === false;
  3577. }
  3578. }
  3579. // Null elements to avoid leaks in IE.
  3580. div = null;
  3581. })();
  3582. var rformElems = /^(?:input|select|textarea)$/i,
  3583. rkeyEvent = /^key/,
  3584. rmouseEvent = /^(?:mouse|pointer|contextmenu)|click/,
  3585. rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,
  3586. rtypenamespace = /^([^.]*)(?:\.(.+)|)$/;
  3587. function returnTrue() {
  3588. return true;
  3589. }
  3590. function returnFalse() {
  3591. return false;
  3592. }
  3593. function safeActiveElement() {
  3594. try {
  3595. return document.activeElement;
  3596. } catch ( err ) { }
  3597. }
  3598. /*
  3599. * Helper functions for managing events -- not part of the public interface.
  3600. * Props to Dean Edwards' addEvent library for many of the ideas.
  3601. */
  3602. jQuery.event = {
  3603. global: {},
  3604. add: function( elem, types, handler, data, selector ) {
  3605. var tmp, events, t, handleObjIn,
  3606. special, eventHandle, handleObj,
  3607. handlers, type, namespaces, origType,
  3608. elemData = jQuery._data( elem );
  3609. // Don't attach events to noData or text/comment nodes (but allow plain objects)
  3610. if ( !elemData ) {
  3611. return;
  3612. }
  3613. // Caller can pass in an object of custom data in lieu of the handler
  3614. if ( handler.handler ) {
  3615. handleObjIn = handler;
  3616. handler = handleObjIn.handler;
  3617. selector = handleObjIn.selector;
  3618. }
  3619. // Make sure that the handler has a unique ID, used to find/remove it later
  3620. if ( !handler.guid ) {
  3621. handler.guid = jQuery.guid++;
  3622. }
  3623. // Init the element's event structure and main handler, if this is the first
  3624. if ( !(events = elemData.events) ) {
  3625. events = elemData.events = {};
  3626. }
  3627. if ( !(eventHandle = elemData.handle) ) {
  3628. eventHandle = elemData.handle = function( e ) {
  3629. // Discard the second event of a jQuery.event.trigger() and
  3630. // when an event is called after a page has unloaded
  3631. return typeof jQuery !== strundefined && (!e || jQuery.event.triggered !== e.type) ?
  3632. jQuery.event.dispatch.apply( eventHandle.elem, arguments ) :
  3633. undefined;
  3634. };
  3635. // Add elem as a property of the handle fn to prevent a memory leak with IE non-native events
  3636. eventHandle.elem = elem;
  3637. }
  3638. // Handle multiple events separated by a space
  3639. types = ( types || "" ).match( rnotwhite ) || [ "" ];
  3640. t = types.length;
  3641. while ( t-- ) {
  3642. tmp = rtypenamespace.exec( types[t] ) || [];
  3643. type = origType = tmp[1];
  3644. namespaces = ( tmp[2] || "" ).split( "." ).sort();
  3645. // There *must* be a type, no attaching namespace-only handlers
  3646. if ( !type ) {
  3647. continue;
  3648. }
  3649. // If event changes its type, use the special event handlers for the changed type
  3650. special = jQuery.event.special[ type ] || {};
  3651. // If selector defined, determine special event api type, otherwise given type
  3652. type = ( selector ? special.delegateType : special.bindType ) || type;
  3653. // Update special based on newly reset type
  3654. special = jQuery.event.special[ type ] || {};
  3655. // handleObj is passed to all event handlers
  3656. handleObj = jQuery.extend({
  3657. type: type,
  3658. origType: origType,
  3659. data: data,
  3660. handler: handler,
  3661. guid: handler.guid,
  3662. selector: selector,
  3663. needsContext: selector && jQuery.expr.match.needsContext.test( selector ),
  3664. namespace: namespaces.join(".")
  3665. }, handleObjIn );
  3666. // Init the event handler queue if we're the first
  3667. if ( !(handlers = events[ type ]) ) {
  3668. handlers = events[ type ] = [];
  3669. handlers.delegateCount = 0;
  3670. // Only use addEventListener/attachEvent if the special events handler returns false
  3671. if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
  3672. // Bind the global event handler to the element
  3673. if ( elem.addEventListener ) {
  3674. elem.addEventListener( type, eventHandle, false );
  3675. } else if ( elem.attachEvent ) {
  3676. elem.attachEvent( "on" + type, eventHandle );
  3677. }
  3678. }
  3679. }
  3680. if ( special.add ) {
  3681. special.add.call( elem, handleObj );
  3682. if ( !handleObj.handler.guid ) {
  3683. handleObj.handler.guid = handler.guid;
  3684. }
  3685. }
  3686. // Add to the element's handler list, delegates in front
  3687. if ( selector ) {
  3688. handlers.splice( handlers.delegateCount++, 0, handleObj );
  3689. } else {
  3690. handlers.push( handleObj );
  3691. }
  3692. // Keep track of which events have ever been used, for event optimization
  3693. jQuery.event.global[ type ] = true;
  3694. }
  3695. // Nullify elem to prevent memory leaks in IE
  3696. elem = null;
  3697. },
  3698. // Detach an event or set of events from an element
  3699. remove: function( elem, types, handler, selector, mappedTypes ) {
  3700. var j, handleObj, tmp,
  3701. origCount, t, events,
  3702. special, handlers, type,
  3703. namespaces, origType,
  3704. elemData = jQuery.hasData( elem ) && jQuery._data( elem );
  3705. if ( !elemData || !(events = elemData.events) ) {
  3706. return;
  3707. }
  3708. // Once for each type.namespace in types; type may be omitted
  3709. types = ( types || "" ).match( rnotwhite ) || [ "" ];
  3710. t = types.length;
  3711. while ( t-- ) {
  3712. tmp = rtypenamespace.exec( types[t] ) || [];
  3713. type = origType = tmp[1];
  3714. namespaces = ( tmp[2] || "" ).split( "." ).sort();
  3715. // Unbind all events (on this namespace, if provided) for the element
  3716. if ( !type ) {
  3717. for ( type in events ) {
  3718. jQuery.event.remove( elem, type + types[ t ], handler, selector, true );
  3719. }
  3720. continue;
  3721. }
  3722. special = jQuery.event.special[ type ] || {};
  3723. type = ( selector ? special.delegateType : special.bindType ) || type;
  3724. handlers = events[ type ] || [];
  3725. tmp = tmp[2] && new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" );
  3726. // Remove matching events
  3727. origCount = j = handlers.length;
  3728. while ( j-- ) {
  3729. handleObj = handlers[ j ];
  3730. if ( ( mappedTypes || origType === handleObj.origType ) &&
  3731. ( !handler || handler.guid === handleObj.guid ) &&
  3732. ( !tmp || tmp.test( handleObj.namespace ) ) &&
  3733. ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) {
  3734. handlers.splice( j, 1 );
  3735. if ( handleObj.selector ) {
  3736. handlers.delegateCount--;
  3737. }
  3738. if ( special.remove ) {
  3739. special.remove.call( elem, handleObj );
  3740. }
  3741. }
  3742. }
  3743. // Remove generic event handler if we removed something and no more handlers exist
  3744. // (avoids potential for endless recursion during removal of special event handlers)
  3745. if ( origCount && !handlers.length ) {
  3746. if ( !special.teardown || special.teardown.call( elem, namespaces, elemData.handle ) === false ) {
  3747. jQuery.removeEvent( elem, type, elemData.handle );
  3748. }
  3749. delete events[ type ];
  3750. }
  3751. }
  3752. // Remove the expando if it's no longer used
  3753. if ( jQuery.isEmptyObject( events ) ) {
  3754. delete elemData.handle;
  3755. // removeData also checks for emptiness and clears the expando if empty
  3756. // so use it instead of delete
  3757. jQuery._removeData( elem, "events" );
  3758. }
  3759. },
  3760. trigger: function( event, data, elem, onlyHandlers ) {
  3761. var handle, ontype, cur,
  3762. bubbleType, special, tmp, i,
  3763. eventPath = [ elem || document ],
  3764. type = hasOwn.call( event, "type" ) ? event.type : event,
  3765. namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split(".") : [];
  3766. cur = tmp = elem = elem || document;
  3767. // Don't do events on text and comment nodes
  3768. if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
  3769. return;
  3770. }
  3771. // focus/blur morphs to focusin/out; ensure we're not firing them right now
  3772. if ( rfocusMorph.test( type + jQuery.event.triggered ) ) {
  3773. return;
  3774. }
  3775. if ( type.indexOf(".") >= 0 ) {
  3776. // Namespaced trigger; create a regexp to match event type in handle()
  3777. namespaces = type.split(".");
  3778. type = namespaces.shift();
  3779. namespaces.sort();
  3780. }
  3781. ontype = type.indexOf(":") < 0 && "on" + type;
  3782. // Caller can pass in a jQuery.Event object, Object, or just an event type string
  3783. event = event[ jQuery.expando ] ?
  3784. event :
  3785. new jQuery.Event( type, typeof event === "object" && event );
  3786. // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true)
  3787. event.isTrigger = onlyHandlers ? 2 : 3;
  3788. event.namespace = namespaces.join(".");
  3789. event.namespace_re = event.namespace ?
  3790. new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" ) :
  3791. null;
  3792. // Clean up the event in case it is being reused
  3793. event.result = undefined;
  3794. if ( !event.target ) {
  3795. event.target = elem;
  3796. }
  3797. // Clone any incoming data and prepend the event, creating the handler arg list
  3798. data = data == null ?
  3799. [ event ] :
  3800. jQuery.makeArray( data, [ event ] );
  3801. // Allow special events to draw outside the lines
  3802. special = jQuery.event.special[ type ] || {};
  3803. if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) {
  3804. return;
  3805. }
  3806. // Determine event propagation path in advance, per W3C events spec (#9951)
  3807. // Bubble up to document, then to window; watch for a global ownerDocument var (#9724)
  3808. if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) {
  3809. bubbleType = special.delegateType || type;
  3810. if ( !rfocusMorph.test( bubbleType + type ) ) {
  3811. cur = cur.parentNode;
  3812. }
  3813. for ( ; cur; cur = cur.parentNode ) {
  3814. eventPath.push( cur );
  3815. tmp = cur;
  3816. }
  3817. // Only add window if we got to document (e.g., not plain obj or detached DOM)
  3818. if ( tmp === (elem.ownerDocument || document) ) {
  3819. eventPath.push( tmp.defaultView || tmp.parentWindow || window );
  3820. }
  3821. }
  3822. // Fire handlers on the event path
  3823. i = 0;
  3824. while ( (cur = eventPath[i++]) && !event.isPropagationStopped() ) {
  3825. event.type = i > 1 ?
  3826. bubbleType :
  3827. special.bindType || type;
  3828. // jQuery handler
  3829. handle = ( jQuery._data( cur, "events" ) || {} )[ event.type ] && jQuery._data( cur, "handle" );
  3830. if ( handle ) {
  3831. handle.apply( cur, data );
  3832. }
  3833. // Native handler
  3834. handle = ontype && cur[ ontype ];
  3835. if ( handle && handle.apply && jQuery.acceptData( cur ) ) {
  3836. event.result = handle.apply( cur, data );
  3837. if ( event.result === false ) {
  3838. event.preventDefault();
  3839. }
  3840. }
  3841. }
  3842. event.type = type;
  3843. // If nobody prevented the default action, do it now
  3844. if ( !onlyHandlers && !event.isDefaultPrevented() ) {
  3845. if ( (!special._default || special._default.apply( eventPath.pop(), data ) === false) &&
  3846. jQuery.acceptData( elem ) ) {
  3847. // Call a native DOM method on the target with the same name name as the event.
  3848. // Can't use an .isFunction() check here because IE6/7 fails that test.
  3849. // Don't do default actions on window, that's where global variables be (#6170)
  3850. if ( ontype && elem[ type ] && !jQuery.isWindow( elem ) ) {
  3851. // Don't re-trigger an onFOO event when we call its FOO() method
  3852. tmp = elem[ ontype ];
  3853. if ( tmp ) {
  3854. elem[ ontype ] = null;
  3855. }
  3856. // Prevent re-triggering of the same event, since we already bubbled it above
  3857. jQuery.event.triggered = type;
  3858. try {
  3859. elem[ type ]();
  3860. } catch ( e ) {
  3861. // IE<9 dies on focus/blur to hidden element (#1486,#12518)
  3862. // only reproducible on winXP IE8 native, not IE9 in IE8 mode
  3863. }
  3864. jQuery.event.triggered = undefined;
  3865. if ( tmp ) {
  3866. elem[ ontype ] = tmp;
  3867. }
  3868. }
  3869. }
  3870. }
  3871. return event.result;
  3872. },
  3873. dispatch: function( event ) {
  3874. // Make a writable jQuery.Event from the native event object
  3875. event = jQuery.event.fix( event );
  3876. var i, ret, handleObj, matched, j,
  3877. handlerQueue = [],
  3878. args = slice.call( arguments ),
  3879. handlers = ( jQuery._data( this, "events" ) || {} )[ event.type ] || [],
  3880. special = jQuery.event.special[ event.type ] || {};
  3881. // Use the fix-ed jQuery.Event rather than the (read-only) native event
  3882. args[0] = event;
  3883. event.delegateTarget = this;
  3884. // Call the preDispatch hook for the mapped type, and let it bail if desired
  3885. if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {
  3886. return;
  3887. }
  3888. // Determine handlers
  3889. handlerQueue = jQuery.event.handlers.call( this, event, handlers );
  3890. // Run delegates first; they may want to stop propagation beneath us
  3891. i = 0;
  3892. while ( (matched = handlerQueue[ i++ ]) && !event.isPropagationStopped() ) {
  3893. event.currentTarget = matched.elem;
  3894. j = 0;
  3895. while ( (handleObj = matched.handlers[ j++ ]) && !event.isImmediatePropagationStopped() ) {
  3896. // Triggered event must either 1) have no namespace, or
  3897. // 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace).
  3898. if ( !event.namespace_re || event.namespace_re.test( handleObj.namespace ) ) {
  3899. event.handleObj = handleObj;
  3900. event.data = handleObj.data;
  3901. ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler )
  3902. .apply( matched.elem, args );
  3903. if ( ret !== undefined ) {
  3904. if ( (event.result = ret) === false ) {
  3905. event.preventDefault();
  3906. event.stopPropagation();
  3907. }
  3908. }
  3909. }
  3910. }
  3911. }
  3912. // Call the postDispatch hook for the mapped type
  3913. if ( special.postDispatch ) {
  3914. special.postDispatch.call( this, event );
  3915. }
  3916. return event.result;
  3917. },
  3918. handlers: function( event, handlers ) {
  3919. var sel, handleObj, matches, i,
  3920. handlerQueue = [],
  3921. delegateCount = handlers.delegateCount,
  3922. cur = event.target;
  3923. // Find delegate handlers
  3924. // Black-hole SVG <use> instance trees (#13180)
  3925. // Avoid non-left-click bubbling in Firefox (#3861)
  3926. if ( delegateCount && cur.nodeType && (!event.button || event.type !== "click") ) {
  3927. /* jshint eqeqeq: false */
  3928. for ( ; cur != this; cur = cur.parentNode || this ) {
  3929. /* jshint eqeqeq: true */
  3930. // Don't check non-elements (#13208)
  3931. // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)
  3932. if ( cur.nodeType === 1 && (cur.disabled !== true || event.type !== "click") ) {
  3933. matches = [];
  3934. for ( i = 0; i < delegateCount; i++ ) {
  3935. handleObj = handlers[ i ];
  3936. // Don't conflict with Object.prototype properties (#13203)
  3937. sel = handleObj.selector + " ";
  3938. if ( matches[ sel ] === undefined ) {
  3939. matches[ sel ] = handleObj.needsContext ?
  3940. jQuery( sel, this ).index( cur ) >= 0 :
  3941. jQuery.find( sel, this, null, [ cur ] ).length;
  3942. }
  3943. if ( matches[ sel ] ) {
  3944. matches.push( handleObj );
  3945. }
  3946. }
  3947. if ( matches.length ) {
  3948. handlerQueue.push({ elem: cur, handlers: matches });
  3949. }
  3950. }
  3951. }
  3952. }
  3953. // Add the remaining (directly-bound) handlers
  3954. if ( delegateCount < handlers.length ) {
  3955. handlerQueue.push({ elem: this, handlers: handlers.slice( delegateCount ) });
  3956. }
  3957. return handlerQueue;
  3958. },
  3959. fix: function( event ) {
  3960. if ( event[ jQuery.expando ] ) {
  3961. return event;
  3962. }
  3963. // Create a writable copy of the event object and normalize some properties
  3964. var i, prop, copy,
  3965. type = event.type,
  3966. originalEvent = event,
  3967. fixHook = this.fixHooks[ type ];
  3968. if ( !fixHook ) {
  3969. this.fixHooks[ type ] = fixHook =
  3970. rmouseEvent.test( type ) ? this.mouseHooks :
  3971. rkeyEvent.test( type ) ? this.keyHooks :
  3972. {};
  3973. }
  3974. copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props;
  3975. event = new jQuery.Event( originalEvent );
  3976. i = copy.length;
  3977. while ( i-- ) {
  3978. prop = copy[ i ];
  3979. event[ prop ] = originalEvent[ prop ];
  3980. }
  3981. // Support: IE<9
  3982. // Fix target property (#1925)
  3983. if ( !event.target ) {
  3984. event.target = originalEvent.srcElement || document;
  3985. }
  3986. // Support: Chrome 23+, Safari?
  3987. // Target should not be a text node (#504, #13143)
  3988. if ( event.target.nodeType === 3 ) {
  3989. event.target = event.target.parentNode;
  3990. }
  3991. // Support: IE<9
  3992. // For mouse/key events, metaKey==false if it's undefined (#3368, #11328)
  3993. event.metaKey = !!event.metaKey;
  3994. return fixHook.filter ? fixHook.filter( event, originalEvent ) : event;
  3995. },
  3996. // Includes some event props shared by KeyEvent and MouseEvent
  3997. props: "altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),
  3998. fixHooks: {},
  3999. keyHooks: {
  4000. props: "char charCode key keyCode".split(" "),
  4001. filter: function( event, original ) {
  4002. // Add which for key events
  4003. if ( event.which == null ) {
  4004. event.which = original.charCode != null ? original.charCode : original.keyCode;
  4005. }
  4006. return event;
  4007. }
  4008. },
  4009. mouseHooks: {
  4010. props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),
  4011. filter: function( event, original ) {
  4012. var body, eventDoc, doc,
  4013. button = original.button,
  4014. fromElement = original.fromElement;
  4015. // Calculate pageX/Y if missing and clientX/Y available
  4016. if ( event.pageX == null && original.clientX != null ) {
  4017. eventDoc = event.target.ownerDocument || document;
  4018. doc = eventDoc.documentElement;
  4019. body = eventDoc.body;
  4020. event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 );
  4021. event.pageY = original.clientY + ( doc && doc.scrollTop || body && body.scrollTop || 0 ) - ( doc && doc.clientTop || body && body.clientTop || 0 );
  4022. }
  4023. // Add relatedTarget, if necessary
  4024. if ( !event.relatedTarget && fromElement ) {
  4025. event.relatedTarget = fromElement === event.target ? original.toElement : fromElement;
  4026. }
  4027. // Add which for click: 1 === left; 2 === middle; 3 === right
  4028. // Note: button is not normalized, so don't use it
  4029. if ( !event.which && button !== undefined ) {
  4030. event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) );
  4031. }
  4032. return event;
  4033. }
  4034. },
  4035. special: {
  4036. load: {
  4037. // Prevent triggered image.load events from bubbling to window.load
  4038. noBubble: true
  4039. },
  4040. focus: {
  4041. // Fire native event if possible so blur/focus sequence is correct
  4042. trigger: function() {
  4043. if ( this !== safeActiveElement() && this.focus ) {
  4044. try {
  4045. this.focus();
  4046. return false;
  4047. } catch ( e ) {
  4048. // Support: IE<9
  4049. // If we error on focus to hidden element (#1486, #12518),
  4050. // let .trigger() run the handlers
  4051. }
  4052. }
  4053. },
  4054. delegateType: "focusin"
  4055. },
  4056. blur: {
  4057. trigger: function() {
  4058. if ( this === safeActiveElement() && this.blur ) {
  4059. this.blur();
  4060. return false;
  4061. }
  4062. },
  4063. delegateType: "focusout"
  4064. },
  4065. click: {
  4066. // For checkbox, fire native event so checked state will be right
  4067. trigger: function() {
  4068. if ( jQuery.nodeName( this, "input" ) && this.type === "checkbox" && this.click ) {
  4069. this.click();
  4070. return false;
  4071. }
  4072. },
  4073. // For cross-browser consistency, don't fire native .click() on links
  4074. _default: function( event ) {
  4075. return jQuery.nodeName( event.target, "a" );
  4076. }
  4077. },
  4078. beforeunload: {
  4079. postDispatch: function( event ) {
  4080. // Support: Firefox 20+
  4081. // Firefox doesn't alert if the returnValue field is not set.
  4082. if ( event.result !== undefined && event.originalEvent ) {
  4083. event.originalEvent.returnValue = event.result;
  4084. }
  4085. }
  4086. }
  4087. },
  4088. simulate: function( type, elem, event, bubble ) {
  4089. // Piggyback on a donor event to simulate a different one.
  4090. // Fake originalEvent to avoid donor's stopPropagation, but if the
  4091. // simulated event prevents default then we do the same on the donor.
  4092. var e = jQuery.extend(
  4093. new jQuery.Event(),
  4094. event,
  4095. {
  4096. type: type,
  4097. isSimulated: true,
  4098. originalEvent: {}
  4099. }
  4100. );
  4101. if ( bubble ) {
  4102. jQuery.event.trigger( e, null, elem );
  4103. } else {
  4104. jQuery.event.dispatch.call( elem, e );
  4105. }
  4106. if ( e.isDefaultPrevented() ) {
  4107. event.preventDefault();
  4108. }
  4109. }
  4110. };
  4111. jQuery.removeEvent = document.removeEventListener ?
  4112. function( elem, type, handle ) {
  4113. if ( elem.removeEventListener ) {
  4114. elem.removeEventListener( type, handle, false );
  4115. }
  4116. } :
  4117. function( elem, type, handle ) {
  4118. var name = "on" + type;
  4119. if ( elem.detachEvent ) {
  4120. // #8545, #7054, preventing memory leaks for custom events in IE6-8
  4121. // detachEvent needed property on element, by name of that event, to properly expose it to GC
  4122. if ( typeof elem[ name ] === strundefined ) {
  4123. elem[ name ] = null;
  4124. }
  4125. elem.detachEvent( name, handle );
  4126. }
  4127. };
  4128. jQuery.Event = function( src, props ) {
  4129. // Allow instantiation without the 'new' keyword
  4130. if ( !(this instanceof jQuery.Event) ) {
  4131. return new jQuery.Event( src, props );
  4132. }
  4133. // Event object
  4134. if ( src && src.type ) {
  4135. this.originalEvent = src;
  4136. this.type = src.type;
  4137. // Events bubbling up the document may have been marked as prevented
  4138. // by a handler lower down the tree; reflect the correct value.
  4139. this.isDefaultPrevented = src.defaultPrevented ||
  4140. src.defaultPrevented === undefined &&
  4141. // Support: IE < 9, Android < 4.0
  4142. src.returnValue === false ?
  4143. returnTrue :
  4144. returnFalse;
  4145. // Event type
  4146. } else {
  4147. this.type = src;
  4148. }
  4149. // Put explicitly provided properties onto the event object
  4150. if ( props ) {
  4151. jQuery.extend( this, props );
  4152. }
  4153. // Create a timestamp if incoming event doesn't have one
  4154. this.timeStamp = src && src.timeStamp || jQuery.now();
  4155. // Mark it as fixed
  4156. this[ jQuery.expando ] = true;
  4157. };
  4158. // jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
  4159. // http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
  4160. jQuery.Event.prototype = {
  4161. isDefaultPrevented: returnFalse,
  4162. isPropagationStopped: returnFalse,
  4163. isImmediatePropagationStopped: returnFalse,
  4164. preventDefault: function() {
  4165. var e = this.originalEvent;
  4166. this.isDefaultPrevented = returnTrue;
  4167. if ( !e ) {
  4168. return;
  4169. }
  4170. // If preventDefault exists, run it on the original event
  4171. if ( e.preventDefault ) {
  4172. e.preventDefault();
  4173. // Support: IE
  4174. // Otherwise set the returnValue property of the original event to false
  4175. } else {
  4176. e.returnValue = false;
  4177. }
  4178. },
  4179. stopPropagation: function() {
  4180. var e = this.originalEvent;
  4181. this.isPropagationStopped = returnTrue;
  4182. if ( !e ) {
  4183. return;
  4184. }
  4185. // If stopPropagation exists, run it on the original event
  4186. if ( e.stopPropagation ) {
  4187. e.stopPropagation();
  4188. }
  4189. // Support: IE
  4190. // Set the cancelBubble property of the original event to true
  4191. e.cancelBubble = true;
  4192. },
  4193. stopImmediatePropagation: function() {
  4194. var e = this.originalEvent;
  4195. this.isImmediatePropagationStopped = returnTrue;
  4196. if ( e && e.stopImmediatePropagation ) {
  4197. e.stopImmediatePropagation();
  4198. }
  4199. this.stopPropagation();
  4200. }
  4201. };
  4202. // Create mouseenter/leave events using mouseover/out and event-time checks
  4203. jQuery.each({
  4204. mouseenter: "mouseover",
  4205. mouseleave: "mouseout",
  4206. pointerenter: "pointerover",
  4207. pointerleave: "pointerout"
  4208. }, function( orig, fix ) {
  4209. jQuery.event.special[ orig ] = {
  4210. delegateType: fix,
  4211. bindType: fix,
  4212. handle: function( event ) {
  4213. var ret,
  4214. target = this,
  4215. related = event.relatedTarget,
  4216. handleObj = event.handleObj;
  4217. // For mousenter/leave call the handler if related is outside the target.
  4218. // NB: No relatedTarget if the mouse left/entered the browser window
  4219. if ( !related || (related !== target && !jQuery.contains( target, related )) ) {
  4220. event.type = handleObj.origType;
  4221. ret = handleObj.handler.apply( this, arguments );
  4222. event.type = fix;
  4223. }
  4224. return ret;
  4225. }
  4226. };
  4227. });
  4228. // IE submit delegation
  4229. if ( !support.submitBubbles ) {
  4230. jQuery.event.special.submit = {
  4231. setup: function() {
  4232. // Only need this for delegated form submit events
  4233. if ( jQuery.nodeName( this, "form" ) ) {
  4234. return false;
  4235. }
  4236. // Lazy-add a submit handler when a descendant form may potentially be submitted
  4237. jQuery.event.add( this, "click._submit keypress._submit", function( e ) {
  4238. // Node name check avoids a VML-related crash in IE (#9807)
  4239. var elem = e.target,
  4240. form = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.form : undefined;
  4241. if ( form && !jQuery._data( form, "submitBubbles" ) ) {
  4242. jQuery.event.add( form, "submit._submit", function( event ) {
  4243. event._submit_bubble = true;
  4244. });
  4245. jQuery._data( form, "submitBubbles", true );
  4246. }
  4247. });
  4248. // return undefined since we don't need an event listener
  4249. },
  4250. postDispatch: function( event ) {
  4251. // If form was submitted by the user, bubble the event up the tree
  4252. if ( event._submit_bubble ) {
  4253. delete event._submit_bubble;
  4254. if ( this.parentNode && !event.isTrigger ) {
  4255. jQuery.event.simulate( "submit", this.parentNode, event, true );
  4256. }
  4257. }
  4258. },
  4259. teardown: function() {
  4260. // Only need this for delegated form submit events
  4261. if ( jQuery.nodeName( this, "form" ) ) {
  4262. return false;
  4263. }
  4264. // Remove delegated handlers; cleanData eventually reaps submit handlers attached above
  4265. jQuery.event.remove( this, "._submit" );
  4266. }
  4267. };
  4268. }
  4269. // IE change delegation and checkbox/radio fix
  4270. if ( !support.changeBubbles ) {
  4271. jQuery.event.special.change = {
  4272. setup: function() {
  4273. if ( rformElems.test( this.nodeName ) ) {
  4274. // IE doesn't fire change on a check/radio until blur; trigger it on click
  4275. // after a propertychange. Eat the blur-change in special.change.handle.
  4276. // This still fires onchange a second time for check/radio after blur.
  4277. if ( this.type === "checkbox" || this.type === "radio" ) {
  4278. jQuery.event.add( this, "propertychange._change", function( event ) {
  4279. if ( event.originalEvent.propertyName === "checked" ) {
  4280. this._just_changed = true;
  4281. }
  4282. });
  4283. jQuery.event.add( this, "click._change", function( event ) {
  4284. if ( this._just_changed && !event.isTrigger ) {
  4285. this._just_changed = false;
  4286. }
  4287. // Allow triggered, simulated change events (#11500)
  4288. jQuery.event.simulate( "change", this, event, true );
  4289. });
  4290. }
  4291. return false;
  4292. }
  4293. // Delegated event; lazy-add a change handler on descendant inputs
  4294. jQuery.event.add( this, "beforeactivate._change", function( e ) {
  4295. var elem = e.target;
  4296. if ( rformElems.test( elem.nodeName ) && !jQuery._data( elem, "changeBubbles" ) ) {
  4297. jQuery.event.add( elem, "change._change", function( event ) {
  4298. if ( this.parentNode && !event.isSimulated && !event.isTrigger ) {
  4299. jQuery.event.simulate( "change", this.parentNode, event, true );
  4300. }
  4301. });
  4302. jQuery._data( elem, "changeBubbles", true );
  4303. }
  4304. });
  4305. },
  4306. handle: function( event ) {
  4307. var elem = event.target;
  4308. // Swallow native change events from checkbox/radio, we already triggered them above
  4309. if ( this !== elem || event.isSimulated || event.isTrigger || (elem.type !== "radio" && elem.type !== "checkbox") ) {
  4310. return event.handleObj.handler.apply( this, arguments );
  4311. }
  4312. },
  4313. teardown: function() {
  4314. jQuery.event.remove( this, "._change" );
  4315. return !rformElems.test( this.nodeName );
  4316. }
  4317. };
  4318. }
  4319. // Create "bubbling" focus and blur events
  4320. if ( !support.focusinBubbles ) {
  4321. jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) {
  4322. // Attach a single capturing handler on the document while someone wants focusin/focusout
  4323. var handler = function( event ) {
  4324. jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true );
  4325. };
  4326. jQuery.event.special[ fix ] = {
  4327. setup: function() {
  4328. var doc = this.ownerDocument || this,
  4329. attaches = jQuery._data( doc, fix );
  4330. if ( !attaches ) {
  4331. doc.addEventListener( orig, handler, true );
  4332. }
  4333. jQuery._data( doc, fix, ( attaches || 0 ) + 1 );
  4334. },
  4335. teardown: function() {
  4336. var doc = this.ownerDocument || this,
  4337. attaches = jQuery._data( doc, fix ) - 1;
  4338. if ( !attaches ) {
  4339. doc.removeEventListener( orig, handler, true );
  4340. jQuery._removeData( doc, fix );
  4341. } else {
  4342. jQuery._data( doc, fix, attaches );
  4343. }
  4344. }
  4345. };
  4346. });
  4347. }
  4348. jQuery.fn.extend({
  4349. on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
  4350. var type, origFn;
  4351. // Types can be a map of types/handlers
  4352. if ( typeof types === "object" ) {
  4353. // ( types-Object, selector, data )
  4354. if ( typeof selector !== "string" ) {
  4355. // ( types-Object, data )
  4356. data = data || selector;
  4357. selector = undefined;
  4358. }
  4359. for ( type in types ) {
  4360. this.on( type, selector, data, types[ type ], one );
  4361. }
  4362. return this;
  4363. }
  4364. if ( data == null && fn == null ) {
  4365. // ( types, fn )
  4366. fn = selector;
  4367. data = selector = undefined;
  4368. } else if ( fn == null ) {
  4369. if ( typeof selector === "string" ) {
  4370. // ( types, selector, fn )
  4371. fn = data;
  4372. data = undefined;
  4373. } else {
  4374. // ( types, data, fn )
  4375. fn = data;
  4376. data = selector;
  4377. selector = undefined;
  4378. }
  4379. }
  4380. if ( fn === false ) {
  4381. fn = returnFalse;
  4382. } else if ( !fn ) {
  4383. return this;
  4384. }
  4385. if ( one === 1 ) {
  4386. origFn = fn;
  4387. fn = function( event ) {
  4388. // Can use an empty set, since event contains the info
  4389. jQuery().off( event );
  4390. return origFn.apply( this, arguments );
  4391. };
  4392. // Use same guid so caller can remove using origFn
  4393. fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );
  4394. }
  4395. return this.each( function() {
  4396. jQuery.event.add( this, types, fn, data, selector );
  4397. });
  4398. },
  4399. one: function( types, selector, data, fn ) {
  4400. return this.on( types, selector, data, fn, 1 );
  4401. },
  4402. off: function( types, selector, fn ) {
  4403. var handleObj, type;
  4404. if ( types && types.preventDefault && types.handleObj ) {
  4405. // ( event ) dispatched jQuery.Event
  4406. handleObj = types.handleObj;
  4407. jQuery( types.delegateTarget ).off(
  4408. handleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType,
  4409. handleObj.selector,
  4410. handleObj.handler
  4411. );
  4412. return this;
  4413. }
  4414. if ( typeof types === "object" ) {
  4415. // ( types-object [, selector] )
  4416. for ( type in types ) {
  4417. this.off( type, selector, types[ type ] );
  4418. }
  4419. return this;
  4420. }
  4421. if ( selector === false || typeof selector === "function" ) {
  4422. // ( types [, fn] )
  4423. fn = selector;
  4424. selector = undefined;
  4425. }
  4426. if ( fn === false ) {
  4427. fn = returnFalse;
  4428. }
  4429. return this.each(function() {
  4430. jQuery.event.remove( this, types, fn, selector );
  4431. });
  4432. },
  4433. trigger: function( type, data ) {
  4434. return this.each(function() {
  4435. jQuery.event.trigger( type, data, this );
  4436. });
  4437. },
  4438. triggerHandler: function( type, data ) {
  4439. var elem = this[0];
  4440. if ( elem ) {
  4441. return jQuery.event.trigger( type, data, elem, true );
  4442. }
  4443. }
  4444. });
  4445. function createSafeFragment( document ) {
  4446. var list = nodeNames.split( "|" ),
  4447. safeFrag = document.createDocumentFragment();
  4448. if ( safeFrag.createElement ) {
  4449. while ( list.length ) {
  4450. safeFrag.createElement(
  4451. list.pop()
  4452. );
  4453. }
  4454. }
  4455. return safeFrag;
  4456. }
  4457. var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|" +
  4458. "header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",
  4459. rinlinejQuery = / jQuery\d+="(?:null|\d+)"/g,
  4460. rnoshimcache = new RegExp("<(?:" + nodeNames + ")[\\s/>]", "i"),
  4461. rleadingWhitespace = /^\s+/,
  4462. rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,
  4463. rtagName = /<([\w:]+)/,
  4464. rtbody = /<tbody/i,
  4465. rhtml = /<|&#?\w+;/,
  4466. rnoInnerhtml = /<(?:script|style|link)/i,
  4467. // checked="checked" or checked
  4468. rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
  4469. rscriptType = /^$|\/(?:java|ecma)script/i,
  4470. rscriptTypeMasked = /^true\/(.*)/,
  4471. rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,
  4472. // We have to close these tags to support XHTML (#13200)
  4473. wrapMap = {
  4474. option: [ 1, "<select multiple='multiple'>", "</select>" ],
  4475. legend: [ 1, "<fieldset>", "</fieldset>" ],
  4476. area: [ 1, "<map>", "</map>" ],
  4477. param: [ 1, "<object>", "</object>" ],
  4478. thead: [ 1, "<table>", "</table>" ],
  4479. tr: [ 2, "<table><tbody>", "</tbody></table>" ],
  4480. col: [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ],
  4481. td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
  4482. // IE6-8 can't serialize link, script, style, or any html5 (NoScope) tags,
  4483. // unless wrapped in a div with non-breaking characters in front of it.
  4484. _default: support.htmlSerialize ? [ 0, "", "" ] : [ 1, "X<div>", "</div>" ]
  4485. },
  4486. safeFragment = createSafeFragment( document ),
  4487. fragmentDiv = safeFragment.appendChild( document.createElement("div") );
  4488. wrapMap.optgroup = wrapMap.option;
  4489. wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
  4490. wrapMap.th = wrapMap.td;
  4491. function getAll( context, tag ) {
  4492. var elems, elem,
  4493. i = 0,
  4494. found = typeof context.getElementsByTagName !== strundefined ? context.getElementsByTagName( tag || "*" ) :
  4495. typeof context.querySelectorAll !== strundefined ? context.querySelectorAll( tag || "*" ) :
  4496. undefined;
  4497. if ( !found ) {
  4498. for ( found = [], elems = context.childNodes || context; (elem = elems[i]) != null; i++ ) {
  4499. if ( !tag || jQuery.nodeName( elem, tag ) ) {
  4500. found.push( elem );
  4501. } else {
  4502. jQuery.merge( found, getAll( elem, tag ) );
  4503. }
  4504. }
  4505. }
  4506. return tag === undefined || tag && jQuery.nodeName( context, tag ) ?
  4507. jQuery.merge( [ context ], found ) :
  4508. found;
  4509. }
  4510. // Used in buildFragment, fixes the defaultChecked property
  4511. function fixDefaultChecked( elem ) {
  4512. if ( rcheckableType.test( elem.type ) ) {
  4513. elem.defaultChecked = elem.checked;
  4514. }
  4515. }
  4516. // Support: IE<8
  4517. // Manipulating tables requires a tbody
  4518. function manipulationTarget( elem, content ) {
  4519. return jQuery.nodeName( elem, "table" ) &&
  4520. jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ?
  4521. elem.getElementsByTagName("tbody")[0] ||
  4522. elem.appendChild( elem.ownerDocument.createElement("tbody") ) :
  4523. elem;
  4524. }
  4525. // Replace/restore the type attribute of script elements for safe DOM manipulation
  4526. function disableScript( elem ) {
  4527. elem.type = (jQuery.find.attr( elem, "type" ) !== null) + "/" + elem.type;
  4528. return elem;
  4529. }
  4530. function restoreScript( elem ) {
  4531. var match = rscriptTypeMasked.exec( elem.type );
  4532. if ( match ) {
  4533. elem.type = match[1];
  4534. } else {
  4535. elem.removeAttribute("type");
  4536. }
  4537. return elem;
  4538. }
  4539. // Mark scripts as having already been evaluated
  4540. function setGlobalEval( elems, refElements ) {
  4541. var elem,
  4542. i = 0;
  4543. for ( ; (elem = elems[i]) != null; i++ ) {
  4544. jQuery._data( elem, "globalEval", !refElements || jQuery._data( refElements[i], "globalEval" ) );
  4545. }
  4546. }
  4547. function cloneCopyEvent( src, dest ) {
  4548. if ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) {
  4549. return;
  4550. }
  4551. var type, i, l,
  4552. oldData = jQuery._data( src ),
  4553. curData = jQuery._data( dest, oldData ),
  4554. events = oldData.events;
  4555. if ( events ) {
  4556. delete curData.handle;
  4557. curData.events = {};
  4558. for ( type in events ) {
  4559. for ( i = 0, l = events[ type ].length; i < l; i++ ) {
  4560. jQuery.event.add( dest, type, events[ type ][ i ] );
  4561. }
  4562. }
  4563. }
  4564. // make the cloned public data object a copy from the original
  4565. if ( curData.data ) {
  4566. curData.data = jQuery.extend( {}, curData.data );
  4567. }
  4568. }
  4569. function fixCloneNodeIssues( src, dest ) {
  4570. var nodeName, e, data;
  4571. // We do not need to do anything for non-Elements
  4572. if ( dest.nodeType !== 1 ) {
  4573. return;
  4574. }
  4575. nodeName = dest.nodeName.toLowerCase();
  4576. // IE6-8 copies events bound via attachEvent when using cloneNode.
  4577. if ( !support.noCloneEvent && dest[ jQuery.expando ] ) {
  4578. data = jQuery._data( dest );
  4579. for ( e in data.events ) {
  4580. jQuery.removeEvent( dest, e, data.handle );
  4581. }
  4582. // Event data gets referenced instead of copied if the expando gets copied too
  4583. dest.removeAttribute( jQuery.expando );
  4584. }
  4585. // IE blanks contents when cloning scripts, and tries to evaluate newly-set text
  4586. if ( nodeName === "script" && dest.text !== src.text ) {
  4587. disableScript( dest ).text = src.text;
  4588. restoreScript( dest );
  4589. // IE6-10 improperly clones children of object elements using classid.
  4590. // IE10 throws NoModificationAllowedError if parent is null, #12132.
  4591. } else if ( nodeName === "object" ) {
  4592. if ( dest.parentNode ) {
  4593. dest.outerHTML = src.outerHTML;
  4594. }
  4595. // This path appears unavoidable for IE9. When cloning an object
  4596. // element in IE9, the outerHTML strategy above is not sufficient.
  4597. // If the src has innerHTML and the destination does not,
  4598. // copy the src.innerHTML into the dest.innerHTML. #10324
  4599. if ( support.html5Clone && ( src.innerHTML && !jQuery.trim(dest.innerHTML) ) ) {
  4600. dest.innerHTML = src.innerHTML;
  4601. }
  4602. } else if ( nodeName === "input" && rcheckableType.test( src.type ) ) {
  4603. // IE6-8 fails to persist the checked state of a cloned checkbox
  4604. // or radio button. Worse, IE6-7 fail to give the cloned element
  4605. // a checked appearance if the defaultChecked value isn't also set
  4606. dest.defaultChecked = dest.checked = src.checked;
  4607. // IE6-7 get confused and end up setting the value of a cloned
  4608. // checkbox/radio button to an empty string instead of "on"
  4609. if ( dest.value !== src.value ) {
  4610. dest.value = src.value;
  4611. }
  4612. // IE6-8 fails to return the selected option to the default selected
  4613. // state when cloning options
  4614. } else if ( nodeName === "option" ) {
  4615. dest.defaultSelected = dest.selected = src.defaultSelected;
  4616. // IE6-8 fails to set the defaultValue to the correct value when
  4617. // cloning other types of input fields
  4618. } else if ( nodeName === "input" || nodeName === "textarea" ) {
  4619. dest.defaultValue = src.defaultValue;
  4620. }
  4621. }
  4622. jQuery.extend({
  4623. clone: function( elem, dataAndEvents, deepDataAndEvents ) {
  4624. var destElements, node, clone, i, srcElements,
  4625. inPage = jQuery.contains( elem.ownerDocument, elem );
  4626. if ( support.html5Clone || jQuery.isXMLDoc(elem) || !rnoshimcache.test( "<" + elem.nodeName + ">" ) ) {
  4627. clone = elem.cloneNode( true );
  4628. // IE<=8 does not properly clone detached, unknown element nodes
  4629. } else {
  4630. fragmentDiv.innerHTML = elem.outerHTML;
  4631. fragmentDiv.removeChild( clone = fragmentDiv.firstChild );
  4632. }
  4633. if ( (!support.noCloneEvent || !support.noCloneChecked) &&
  4634. (elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem) ) {
  4635. // We eschew Sizzle here for performance reasons: http://jsperf.com/getall-vs-sizzle/2
  4636. destElements = getAll( clone );
  4637. srcElements = getAll( elem );
  4638. // Fix all IE cloning issues
  4639. for ( i = 0; (node = srcElements[i]) != null; ++i ) {
  4640. // Ensure that the destination node is not null; Fixes #9587
  4641. if ( destElements[i] ) {
  4642. fixCloneNodeIssues( node, destElements[i] );
  4643. }
  4644. }
  4645. }
  4646. // Copy the events from the original to the clone
  4647. if ( dataAndEvents ) {
  4648. if ( deepDataAndEvents ) {
  4649. srcElements = srcElements || getAll( elem );
  4650. destElements = destElements || getAll( clone );
  4651. for ( i = 0; (node = srcElements[i]) != null; i++ ) {
  4652. cloneCopyEvent( node, destElements[i] );
  4653. }
  4654. } else {
  4655. cloneCopyEvent( elem, clone );
  4656. }
  4657. }
  4658. // Preserve script evaluation history
  4659. destElements = getAll( clone, "script" );
  4660. if ( destElements.length > 0 ) {
  4661. setGlobalEval( destElements, !inPage && getAll( elem, "script" ) );
  4662. }
  4663. destElements = srcElements = node = null;
  4664. // Return the cloned set
  4665. return clone;
  4666. },
  4667. buildFragment: function( elems, context, scripts, selection ) {
  4668. var j, elem, contains,
  4669. tmp, tag, tbody, wrap,
  4670. l = elems.length,
  4671. // Ensure a safe fragment
  4672. safe = createSafeFragment( context ),
  4673. nodes = [],
  4674. i = 0;
  4675. for ( ; i < l; i++ ) {
  4676. elem = elems[ i ];
  4677. if ( elem || elem === 0 ) {
  4678. // Add nodes directly
  4679. if ( jQuery.type( elem ) === "object" ) {
  4680. jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem );
  4681. // Convert non-html into a text node
  4682. } else if ( !rhtml.test( elem ) ) {
  4683. nodes.push( context.createTextNode( elem ) );
  4684. // Convert html into DOM nodes
  4685. } else {
  4686. tmp = tmp || safe.appendChild( context.createElement("div") );
  4687. // Deserialize a standard representation
  4688. tag = (rtagName.exec( elem ) || [ "", "" ])[ 1 ].toLowerCase();
  4689. wrap = wrapMap[ tag ] || wrapMap._default;
  4690. tmp.innerHTML = wrap[1] + elem.replace( rxhtmlTag, "<$1></$2>" ) + wrap[2];
  4691. // Descend through wrappers to the right content
  4692. j = wrap[0];
  4693. while ( j-- ) {
  4694. tmp = tmp.lastChild;
  4695. }
  4696. // Manually add leading whitespace removed by IE
  4697. if ( !support.leadingWhitespace && rleadingWhitespace.test( elem ) ) {
  4698. nodes.push( context.createTextNode( rleadingWhitespace.exec( elem )[0] ) );
  4699. }
  4700. // Remove IE's autoinserted <tbody> from table fragments
  4701. if ( !support.tbody ) {
  4702. // String was a <table>, *may* have spurious <tbody>
  4703. elem = tag === "table" && !rtbody.test( elem ) ?
  4704. tmp.firstChild :
  4705. // String was a bare <thead> or <tfoot>
  4706. wrap[1] === "<table>" && !rtbody.test( elem ) ?
  4707. tmp :
  4708. 0;
  4709. j = elem && elem.childNodes.length;
  4710. while ( j-- ) {
  4711. if ( jQuery.nodeName( (tbody = elem.childNodes[j]), "tbody" ) && !tbody.childNodes.length ) {
  4712. elem.removeChild( tbody );
  4713. }
  4714. }
  4715. }
  4716. jQuery.merge( nodes, tmp.childNodes );
  4717. // Fix #12392 for WebKit and IE > 9
  4718. tmp.textContent = "";
  4719. // Fix #12392 for oldIE
  4720. while ( tmp.firstChild ) {
  4721. tmp.removeChild( tmp.firstChild );
  4722. }
  4723. // Remember the top-level container for proper cleanup
  4724. tmp = safe.lastChild;
  4725. }
  4726. }
  4727. }
  4728. // Fix #11356: Clear elements from fragment
  4729. if ( tmp ) {
  4730. safe.removeChild( tmp );
  4731. }
  4732. // Reset defaultChecked for any radios and checkboxes
  4733. // about to be appended to the DOM in IE 6/7 (#8060)
  4734. if ( !support.appendChecked ) {
  4735. jQuery.grep( getAll( nodes, "input" ), fixDefaultChecked );
  4736. }
  4737. i = 0;
  4738. while ( (elem = nodes[ i++ ]) ) {
  4739. // #4087 - If origin and destination elements are the same, and this is
  4740. // that element, do not do anything
  4741. if ( selection && jQuery.inArray( elem, selection ) !== -1 ) {
  4742. continue;
  4743. }
  4744. contains = jQuery.contains( elem.ownerDocument, elem );
  4745. // Append to fragment
  4746. tmp = getAll( safe.appendChild( elem ), "script" );
  4747. // Preserve script evaluation history
  4748. if ( contains ) {
  4749. setGlobalEval( tmp );
  4750. }
  4751. // Capture executables
  4752. if ( scripts ) {
  4753. j = 0;
  4754. while ( (elem = tmp[ j++ ]) ) {
  4755. if ( rscriptType.test( elem.type || "" ) ) {
  4756. scripts.push( elem );
  4757. }
  4758. }
  4759. }
  4760. }
  4761. tmp = null;
  4762. return safe;
  4763. },
  4764. cleanData: function( elems, /* internal */ acceptData ) {
  4765. var elem, type, id, data,
  4766. i = 0,
  4767. internalKey = jQuery.expando,
  4768. cache = jQuery.cache,
  4769. deleteExpando = support.deleteExpando,
  4770. special = jQuery.event.special;
  4771. for ( ; (elem = elems[i]) != null; i++ ) {
  4772. if ( acceptData || jQuery.acceptData( elem ) ) {
  4773. id = elem[ internalKey ];
  4774. data = id && cache[ id ];
  4775. if ( data ) {
  4776. if ( data.events ) {
  4777. for ( type in data.events ) {
  4778. if ( special[ type ] ) {
  4779. jQuery.event.remove( elem, type );
  4780. // This is a shortcut to avoid jQuery.event.remove's overhead
  4781. } else {
  4782. jQuery.removeEvent( elem, type, data.handle );
  4783. }
  4784. }
  4785. }
  4786. // Remove cache only if it was not already removed by jQuery.event.remove
  4787. if ( cache[ id ] ) {
  4788. delete cache[ id ];
  4789. // IE does not allow us to delete expando properties from nodes,
  4790. // nor does it have a removeAttribute function on Document nodes;
  4791. // we must handle all of these cases
  4792. if ( deleteExpando ) {
  4793. delete elem[ internalKey ];
  4794. } else if ( typeof elem.removeAttribute !== strundefined ) {
  4795. elem.removeAttribute( internalKey );
  4796. } else {
  4797. elem[ internalKey ] = null;
  4798. }
  4799. deletedIds.push( id );
  4800. }
  4801. }
  4802. }
  4803. }
  4804. }
  4805. });
  4806. jQuery.fn.extend({
  4807. text: function( value ) {
  4808. return access( this, function( value ) {
  4809. return value === undefined ?
  4810. jQuery.text( this ) :
  4811. this.empty().append( ( this[0] && this[0].ownerDocument || document ).createTextNode( value ) );
  4812. }, null, value, arguments.length );
  4813. },
  4814. append: function() {
  4815. return this.domManip( arguments, function( elem ) {
  4816. if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
  4817. var target = manipulationTarget( this, elem );
  4818. target.appendChild( elem );
  4819. }
  4820. });
  4821. },
  4822. prepend: function() {
  4823. return this.domManip( arguments, function( elem ) {
  4824. if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
  4825. var target = manipulationTarget( this, elem );
  4826. target.insertBefore( elem, target.firstChild );
  4827. }
  4828. });
  4829. },
  4830. before: function() {
  4831. return this.domManip( arguments, function( elem ) {
  4832. if ( this.parentNode ) {
  4833. this.parentNode.insertBefore( elem, this );
  4834. }
  4835. });
  4836. },
  4837. after: function() {
  4838. return this.domManip( arguments, function( elem ) {
  4839. if ( this.parentNode ) {
  4840. this.parentNode.insertBefore( elem, this.nextSibling );
  4841. }
  4842. });
  4843. },
  4844. remove: function( selector, keepData /* Internal Use Only */ ) {
  4845. var elem,
  4846. elems = selector ? jQuery.filter( selector, this ) : this,
  4847. i = 0;
  4848. for ( ; (elem = elems[i]) != null; i++ ) {
  4849. if ( !keepData && elem.nodeType === 1 ) {
  4850. jQuery.cleanData( getAll( elem ) );
  4851. }
  4852. if ( elem.parentNode ) {
  4853. if ( keepData && jQuery.contains( elem.ownerDocument, elem ) ) {
  4854. setGlobalEval( getAll( elem, "script" ) );
  4855. }
  4856. elem.parentNode.removeChild( elem );
  4857. }
  4858. }
  4859. return this;
  4860. },
  4861. empty: function() {
  4862. var elem,
  4863. i = 0;
  4864. for ( ; (elem = this[i]) != null; i++ ) {
  4865. // Remove element nodes and prevent memory leaks
  4866. if ( elem.nodeType === 1 ) {
  4867. jQuery.cleanData( getAll( elem, false ) );
  4868. }
  4869. // Remove any remaining nodes
  4870. while ( elem.firstChild ) {
  4871. elem.removeChild( elem.firstChild );
  4872. }
  4873. // If this is a select, ensure that it displays empty (#12336)
  4874. // Support: IE<9
  4875. if ( elem.options && jQuery.nodeName( elem, "select" ) ) {
  4876. elem.options.length = 0;
  4877. }
  4878. }
  4879. return this;
  4880. },
  4881. clone: function( dataAndEvents, deepDataAndEvents ) {
  4882. dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
  4883. deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
  4884. return this.map(function() {
  4885. return jQuery.clone( this, dataAndEvents, deepDataAndEvents );
  4886. });
  4887. },
  4888. html: function( value ) {
  4889. return access( this, function( value ) {
  4890. var elem = this[ 0 ] || {},
  4891. i = 0,
  4892. l = this.length;
  4893. if ( value === undefined ) {
  4894. return elem.nodeType === 1 ?
  4895. elem.innerHTML.replace( rinlinejQuery, "" ) :
  4896. undefined;
  4897. }
  4898. // See if we can take a shortcut and just use innerHTML
  4899. if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
  4900. ( support.htmlSerialize || !rnoshimcache.test( value ) ) &&
  4901. ( support.leadingWhitespace || !rleadingWhitespace.test( value ) ) &&
  4902. !wrapMap[ (rtagName.exec( value ) || [ "", "" ])[ 1 ].toLowerCase() ] ) {
  4903. value = value.replace( rxhtmlTag, "<$1></$2>" );
  4904. try {
  4905. for (; i < l; i++ ) {
  4906. // Remove element nodes and prevent memory leaks
  4907. elem = this[i] || {};
  4908. if ( elem.nodeType === 1 ) {
  4909. jQuery.cleanData( getAll( elem, false ) );
  4910. elem.innerHTML = value;
  4911. }
  4912. }
  4913. elem = 0;
  4914. // If using innerHTML throws an exception, use the fallback method
  4915. } catch(e) {}
  4916. }
  4917. if ( elem ) {
  4918. this.empty().append( value );
  4919. }
  4920. }, null, value, arguments.length );
  4921. },
  4922. replaceWith: function() {
  4923. var arg = arguments[ 0 ];
  4924. // Make the changes, replacing each context element with the new content
  4925. this.domManip( arguments, function( elem ) {
  4926. arg = this.parentNode;
  4927. jQuery.cleanData( getAll( this ) );
  4928. if ( arg ) {
  4929. arg.replaceChild( elem, this );
  4930. }
  4931. });
  4932. // Force removal if there was no new content (e.g., from empty arguments)
  4933. return arg && (arg.length || arg.nodeType) ? this : this.remove();
  4934. },
  4935. detach: function( selector ) {
  4936. return this.remove( selector, true );
  4937. },
  4938. domManip: function( args, callback ) {
  4939. // Flatten any nested arrays
  4940. args = concat.apply( [], args );
  4941. var first, node, hasScripts,
  4942. scripts, doc, fragment,
  4943. i = 0,
  4944. l = this.length,
  4945. set = this,
  4946. iNoClone = l - 1,
  4947. value = args[0],
  4948. isFunction = jQuery.isFunction( value );
  4949. // We can't cloneNode fragments that contain checked, in WebKit
  4950. if ( isFunction ||
  4951. ( l > 1 && typeof value === "string" &&
  4952. !support.checkClone && rchecked.test( value ) ) ) {
  4953. return this.each(function( index ) {
  4954. var self = set.eq( index );
  4955. if ( isFunction ) {
  4956. args[0] = value.call( this, index, self.html() );
  4957. }
  4958. self.domManip( args, callback );
  4959. });
  4960. }
  4961. if ( l ) {
  4962. fragment = jQuery.buildFragment( args, this[ 0 ].ownerDocument, false, this );
  4963. first = fragment.firstChild;
  4964. if ( fragment.childNodes.length === 1 ) {
  4965. fragment = first;
  4966. }
  4967. if ( first ) {
  4968. scripts = jQuery.map( getAll( fragment, "script" ), disableScript );
  4969. hasScripts = scripts.length;
  4970. // Use the original fragment for the last item instead of the first because it can end up
  4971. // being emptied incorrectly in certain situations (#8070).
  4972. for ( ; i < l; i++ ) {
  4973. node = fragment;
  4974. if ( i !== iNoClone ) {
  4975. node = jQuery.clone( node, true, true );
  4976. // Keep references to cloned scripts for later restoration
  4977. if ( hasScripts ) {
  4978. jQuery.merge( scripts, getAll( node, "script" ) );
  4979. }
  4980. }
  4981. callback.call( this[i], node, i );
  4982. }
  4983. if ( hasScripts ) {
  4984. doc = scripts[ scripts.length - 1 ].ownerDocument;
  4985. // Reenable scripts
  4986. jQuery.map( scripts, restoreScript );
  4987. // Evaluate executable scripts on first document insertion
  4988. for ( i = 0; i < hasScripts; i++ ) {
  4989. node = scripts[ i ];
  4990. if ( rscriptType.test( node.type || "" ) &&
  4991. !jQuery._data( node, "globalEval" ) && jQuery.contains( doc, node ) ) {
  4992. if ( node.src ) {
  4993. // Optional AJAX dependency, but won't run scripts if not present
  4994. if ( jQuery._evalUrl ) {
  4995. jQuery._evalUrl( node.src );
  4996. }
  4997. } else {
  4998. jQuery.globalEval( ( node.text || node.textContent || node.innerHTML || "" ).replace( rcleanScript, "" ) );
  4999. }
  5000. }
  5001. }
  5002. }
  5003. // Fix #11809: Avoid leaking memory
  5004. fragment = first = null;
  5005. }
  5006. }
  5007. return this;
  5008. }
  5009. });
  5010. jQuery.each({
  5011. appendTo: "append",
  5012. prependTo: "prepend",
  5013. insertBefore: "before",
  5014. insertAfter: "after",
  5015. replaceAll: "replaceWith"
  5016. }, function( name, original ) {
  5017. jQuery.fn[ name ] = function( selector ) {
  5018. var elems,
  5019. i = 0,
  5020. ret = [],
  5021. insert = jQuery( selector ),
  5022. last = insert.length - 1;
  5023. for ( ; i <= last; i++ ) {
  5024. elems = i === last ? this : this.clone(true);
  5025. jQuery( insert[i] )[ original ]( elems );
  5026. // Modern browsers can apply jQuery collections as arrays, but oldIE needs a .get()
  5027. push.apply( ret, elems.get() );
  5028. }
  5029. return this.pushStack( ret );
  5030. };
  5031. });
  5032. var iframe,
  5033. elemdisplay = {};
  5034. /**
  5035. * Retrieve the actual display of a element
  5036. * @param {String} name nodeName of the element
  5037. * @param {Object} doc Document object
  5038. */
  5039. // Called only from within defaultDisplay
  5040. function actualDisplay( name, doc ) {
  5041. var style,
  5042. elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ),
  5043. // getDefaultComputedStyle might be reliably used only on attached element
  5044. display = window.getDefaultComputedStyle && ( style = window.getDefaultComputedStyle( elem[ 0 ] ) ) ?
  5045. // Use of this method is a temporary fix (more like optmization) until something better comes along,
  5046. // since it was removed from specification and supported only in FF
  5047. style.display : jQuery.css( elem[ 0 ], "display" );
  5048. // We don't have any data stored on the element,
  5049. // so use "detach" method as fast way to get rid of the element
  5050. elem.detach();
  5051. return display;
  5052. }
  5053. /**
  5054. * Try to determine the default display value of an element
  5055. * @param {String} nodeName
  5056. */
  5057. function defaultDisplay( nodeName ) {
  5058. var doc = document,
  5059. display = elemdisplay[ nodeName ];
  5060. if ( !display ) {
  5061. display = actualDisplay( nodeName, doc );
  5062. // If the simple way fails, read from inside an iframe
  5063. if ( display === "none" || !display ) {
  5064. // Use the already-created iframe if possible
  5065. iframe = (iframe || jQuery( "<iframe frameborder='0' width='0' height='0'/>" )).appendTo( doc.documentElement );
  5066. // Always write a new HTML skeleton so Webkit and Firefox don't choke on reuse
  5067. doc = ( iframe[ 0 ].contentWindow || iframe[ 0 ].contentDocument ).document;
  5068. // Support: IE
  5069. doc.write();
  5070. doc.close();
  5071. display = actualDisplay( nodeName, doc );
  5072. iframe.detach();
  5073. }
  5074. // Store the correct default display
  5075. elemdisplay[ nodeName ] = display;
  5076. }
  5077. return display;
  5078. }
  5079. (function() {
  5080. var shrinkWrapBlocksVal;
  5081. support.shrinkWrapBlocks = function() {
  5082. if ( shrinkWrapBlocksVal != null ) {
  5083. return shrinkWrapBlocksVal;
  5084. }
  5085. // Will be changed later if needed.
  5086. shrinkWrapBlocksVal = false;
  5087. // Minified: var b,c,d
  5088. var div, body, container;
  5089. body = document.getElementsByTagName( "body" )[ 0 ];
  5090. if ( !body || !body.style ) {
  5091. // Test fired too early or in an unsupported environment, exit.
  5092. return;
  5093. }
  5094. // Setup
  5095. div = document.createElement( "div" );
  5096. container = document.createElement( "div" );
  5097. container.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px";
  5098. body.appendChild( container ).appendChild( div );
  5099. // Support: IE6
  5100. // Check if elements with layout shrink-wrap their children
  5101. if ( typeof div.style.zoom !== strundefined ) {
  5102. // Reset CSS: box-sizing; display; margin; border
  5103. div.style.cssText =
  5104. // Support: Firefox<29, Android 2.3
  5105. // Vendor-prefix box-sizing
  5106. "-webkit-box-sizing:content-box;-moz-box-sizing:content-box;" +
  5107. "box-sizing:content-box;display:block;margin:0;border:0;" +
  5108. "padding:1px;width:1px;zoom:1";
  5109. div.appendChild( document.createElement( "div" ) ).style.width = "5px";
  5110. shrinkWrapBlocksVal = div.offsetWidth !== 3;
  5111. }
  5112. body.removeChild( container );
  5113. return shrinkWrapBlocksVal;
  5114. };
  5115. })();
  5116. var rmargin = (/^margin/);
  5117. var rnumnonpx = new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" );
  5118. var getStyles, curCSS,
  5119. rposition = /^(top|right|bottom|left)$/;
  5120. if ( window.getComputedStyle ) {
  5121. getStyles = function( elem ) {
  5122. // Support: IE<=11+, Firefox<=30+ (#15098, #14150)
  5123. // IE throws on elements created in popups
  5124. // FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
  5125. if ( elem.ownerDocument.defaultView.opener ) {
  5126. return elem.ownerDocument.defaultView.getComputedStyle( elem, null );
  5127. }
  5128. return window.getComputedStyle( elem, null );
  5129. };
  5130. curCSS = function( elem, name, computed ) {
  5131. var width, minWidth, maxWidth, ret,
  5132. style = elem.style;
  5133. computed = computed || getStyles( elem );
  5134. // getPropertyValue is only needed for .css('filter') in IE9, see #12537
  5135. ret = computed ? computed.getPropertyValue( name ) || computed[ name ] : undefined;
  5136. if ( computed ) {
  5137. if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) {
  5138. ret = jQuery.style( elem, name );
  5139. }
  5140. // A tribute to the "awesome hack by Dean Edwards"
  5141. // Chrome < 17 and Safari 5.0 uses "computed value" instead of "used value" for margin-right
  5142. // Safari 5.1.7 (at least) returns percentage for a larger set of values, but width seems to be reliably pixels
  5143. // this is against the CSSOM draft spec: http://dev.w3.org/csswg/cssom/#resolved-values
  5144. if ( rnumnonpx.test( ret ) && rmargin.test( name ) ) {
  5145. // Remember the original values
  5146. width = style.width;
  5147. minWidth = style.minWidth;
  5148. maxWidth = style.maxWidth;
  5149. // Put in the new values to get a computed value out
  5150. style.minWidth = style.maxWidth = style.width = ret;
  5151. ret = computed.width;
  5152. // Revert the changed values
  5153. style.width = width;
  5154. style.minWidth = minWidth;
  5155. style.maxWidth = maxWidth;
  5156. }
  5157. }
  5158. // Support: IE
  5159. // IE returns zIndex value as an integer.
  5160. return ret === undefined ?
  5161. ret :
  5162. ret + "";
  5163. };
  5164. } else if ( document.documentElement.currentStyle ) {
  5165. getStyles = function( elem ) {
  5166. return elem.currentStyle;
  5167. };
  5168. curCSS = function( elem, name, computed ) {
  5169. var left, rs, rsLeft, ret,
  5170. style = elem.style;
  5171. computed = computed || getStyles( elem );
  5172. ret = computed ? computed[ name ] : undefined;
  5173. // Avoid setting ret to empty string here
  5174. // so we don't default to auto
  5175. if ( ret == null && style && style[ name ] ) {
  5176. ret = style[ name ];
  5177. }
  5178. // From the awesome hack by Dean Edwards
  5179. // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
  5180. // If we're not dealing with a regular pixel number
  5181. // but a number that has a weird ending, we need to convert it to pixels
  5182. // but not position css attributes, as those are proportional to the parent element instead
  5183. // and we can't measure the parent instead because it might trigger a "stacking dolls" problem
  5184. if ( rnumnonpx.test( ret ) && !rposition.test( name ) ) {
  5185. // Remember the original values
  5186. left = style.left;
  5187. rs = elem.runtimeStyle;
  5188. rsLeft = rs && rs.left;
  5189. // Put in the new values to get a computed value out
  5190. if ( rsLeft ) {
  5191. rs.left = elem.currentStyle.left;
  5192. }
  5193. style.left = name === "fontSize" ? "1em" : ret;
  5194. ret = style.pixelLeft + "px";
  5195. // Revert the changed values
  5196. style.left = left;
  5197. if ( rsLeft ) {
  5198. rs.left = rsLeft;
  5199. }
  5200. }
  5201. // Support: IE
  5202. // IE returns zIndex value as an integer.
  5203. return ret === undefined ?
  5204. ret :
  5205. ret + "" || "auto";
  5206. };
  5207. }
  5208. function addGetHookIf( conditionFn, hookFn ) {
  5209. // Define the hook, we'll check on the first run if it's really needed.
  5210. return {
  5211. get: function() {
  5212. var condition = conditionFn();
  5213. if ( condition == null ) {
  5214. // The test was not ready at this point; screw the hook this time
  5215. // but check again when needed next time.
  5216. return;
  5217. }
  5218. if ( condition ) {
  5219. // Hook not needed (or it's not possible to use it due to missing dependency),
  5220. // remove it.
  5221. // Since there are no other hooks for marginRight, remove the whole object.
  5222. delete this.get;
  5223. return;
  5224. }
  5225. // Hook needed; redefine it so that the support test is not executed again.
  5226. return (this.get = hookFn).apply( this, arguments );
  5227. }
  5228. };
  5229. }
  5230. (function() {
  5231. // Minified: var b,c,d,e,f,g, h,i
  5232. var div, style, a, pixelPositionVal, boxSizingReliableVal,
  5233. reliableHiddenOffsetsVal, reliableMarginRightVal;
  5234. // Setup
  5235. div = document.createElement( "div" );
  5236. div.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";
  5237. a = div.getElementsByTagName( "a" )[ 0 ];
  5238. style = a && a.style;
  5239. // Finish early in limited (non-browser) environments
  5240. if ( !style ) {
  5241. return;
  5242. }
  5243. style.cssText = "float:left;opacity:.5";
  5244. // Support: IE<9
  5245. // Make sure that element opacity exists (as opposed to filter)
  5246. support.opacity = style.opacity === "0.5";
  5247. // Verify style float existence
  5248. // (IE uses styleFloat instead of cssFloat)
  5249. support.cssFloat = !!style.cssFloat;
  5250. div.style.backgroundClip = "content-box";
  5251. div.cloneNode( true ).style.backgroundClip = "";
  5252. support.clearCloneStyle = div.style.backgroundClip === "content-box";
  5253. // Support: Firefox<29, Android 2.3
  5254. // Vendor-prefix box-sizing
  5255. support.boxSizing = style.boxSizing === "" || style.MozBoxSizing === "" ||
  5256. style.WebkitBoxSizing === "";
  5257. jQuery.extend(support, {
  5258. reliableHiddenOffsets: function() {
  5259. if ( reliableHiddenOffsetsVal == null ) {
  5260. computeStyleTests();
  5261. }
  5262. return reliableHiddenOffsetsVal;
  5263. },
  5264. boxSizingReliable: function() {
  5265. if ( boxSizingReliableVal == null ) {
  5266. computeStyleTests();
  5267. }
  5268. return boxSizingReliableVal;
  5269. },
  5270. pixelPosition: function() {
  5271. if ( pixelPositionVal == null ) {
  5272. computeStyleTests();
  5273. }
  5274. return pixelPositionVal;
  5275. },
  5276. // Support: Android 2.3
  5277. reliableMarginRight: function() {
  5278. if ( reliableMarginRightVal == null ) {
  5279. computeStyleTests();
  5280. }
  5281. return reliableMarginRightVal;
  5282. }
  5283. });
  5284. function computeStyleTests() {
  5285. // Minified: var b,c,d,j
  5286. var div, body, container, contents;
  5287. body = document.getElementsByTagName( "body" )[ 0 ];
  5288. if ( !body || !body.style ) {
  5289. // Test fired too early or in an unsupported environment, exit.
  5290. return;
  5291. }
  5292. // Setup
  5293. div = document.createElement( "div" );
  5294. container = document.createElement( "div" );
  5295. container.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px";
  5296. body.appendChild( container ).appendChild( div );
  5297. div.style.cssText =
  5298. // Support: Firefox<29, Android 2.3
  5299. // Vendor-prefix box-sizing
  5300. "-webkit-box-sizing:border-box;-moz-box-sizing:border-box;" +
  5301. "box-sizing:border-box;display:block;margin-top:1%;top:1%;" +
  5302. "border:1px;padding:1px;width:4px;position:absolute";
  5303. // Support: IE<9
  5304. // Assume reasonable values in the absence of getComputedStyle
  5305. pixelPositionVal = boxSizingReliableVal = false;
  5306. reliableMarginRightVal = true;
  5307. // Check for getComputedStyle so that this code is not run in IE<9.
  5308. if ( window.getComputedStyle ) {
  5309. pixelPositionVal = ( window.getComputedStyle( div, null ) || {} ).top !== "1%";
  5310. boxSizingReliableVal =
  5311. ( window.getComputedStyle( div, null ) || { width: "4px" } ).width === "4px";
  5312. // Support: Android 2.3
  5313. // Div with explicit width and no margin-right incorrectly
  5314. // gets computed margin-right based on width of container (#3333)
  5315. // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
  5316. contents = div.appendChild( document.createElement( "div" ) );
  5317. // Reset CSS: box-sizing; display; margin; border; padding
  5318. contents.style.cssText = div.style.cssText =
  5319. // Support: Firefox<29, Android 2.3
  5320. // Vendor-prefix box-sizing
  5321. "-webkit-box-sizing:content-box;-moz-box-sizing:content-box;" +
  5322. "box-sizing:content-box;display:block;margin:0;border:0;padding:0";
  5323. contents.style.marginRight = contents.style.width = "0";
  5324. div.style.width = "1px";
  5325. reliableMarginRightVal =
  5326. !parseFloat( ( window.getComputedStyle( contents, null ) || {} ).marginRight );
  5327. div.removeChild( contents );
  5328. }
  5329. // Support: IE8
  5330. // Check if table cells still have offsetWidth/Height when they are set
  5331. // to display:none and there are still other visible table cells in a
  5332. // table row; if so, offsetWidth/Height are not reliable for use when
  5333. // determining if an element has been hidden directly using
  5334. // display:none (it is still safe to use offsets if a parent element is
  5335. // hidden; don safety goggles and see bug #4512 for more information).
  5336. div.innerHTML = "<table><tr><td></td><td>t</td></tr></table>";
  5337. contents = div.getElementsByTagName( "td" );
  5338. contents[ 0 ].style.cssText = "margin:0;border:0;padding:0;display:none";
  5339. reliableHiddenOffsetsVal = contents[ 0 ].offsetHeight === 0;
  5340. if ( reliableHiddenOffsetsVal ) {
  5341. contents[ 0 ].style.display = "";
  5342. contents[ 1 ].style.display = "none";
  5343. reliableHiddenOffsetsVal = contents[ 0 ].offsetHeight === 0;
  5344. }
  5345. body.removeChild( container );
  5346. }
  5347. })();
  5348. // A method for quickly swapping in/out CSS properties to get correct calculations.
  5349. jQuery.swap = function( elem, options, callback, args ) {
  5350. var ret, name,
  5351. old = {};
  5352. // Remember the old values, and insert the new ones
  5353. for ( name in options ) {
  5354. old[ name ] = elem.style[ name ];
  5355. elem.style[ name ] = options[ name ];
  5356. }
  5357. ret = callback.apply( elem, args || [] );
  5358. // Revert the old values
  5359. for ( name in options ) {
  5360. elem.style[ name ] = old[ name ];
  5361. }
  5362. return ret;
  5363. };
  5364. var
  5365. ralpha = /alpha\([^)]*\)/i,
  5366. ropacity = /opacity\s*=\s*([^)]*)/,
  5367. // swappable if display is none or starts with table except "table", "table-cell", or "table-caption"
  5368. // see here for display values: https://developer.mozilla.org/en-US/docs/CSS/display
  5369. rdisplayswap = /^(none|table(?!-c[ea]).+)/,
  5370. rnumsplit = new RegExp( "^(" + pnum + ")(.*)$", "i" ),
  5371. rrelNum = new RegExp( "^([+-])=(" + pnum + ")", "i" ),
  5372. cssShow = { position: "absolute", visibility: "hidden", display: "block" },
  5373. cssNormalTransform = {
  5374. letterSpacing: "0",
  5375. fontWeight: "400"
  5376. },
  5377. cssPrefixes = [ "Webkit", "O", "Moz", "ms" ];
  5378. // return a css property mapped to a potentially vendor prefixed property
  5379. function vendorPropName( style, name ) {
  5380. // shortcut for names that are not vendor prefixed
  5381. if ( name in style ) {
  5382. return name;
  5383. }
  5384. // check for vendor prefixed names
  5385. var capName = name.charAt(0).toUpperCase() + name.slice(1),
  5386. origName = name,
  5387. i = cssPrefixes.length;
  5388. while ( i-- ) {
  5389. name = cssPrefixes[ i ] + capName;
  5390. if ( name in style ) {
  5391. return name;
  5392. }
  5393. }
  5394. return origName;
  5395. }
  5396. function showHide( elements, show ) {
  5397. var display, elem, hidden,
  5398. values = [],
  5399. index = 0,
  5400. length = elements.length;
  5401. for ( ; index < length; index++ ) {
  5402. elem = elements[ index ];
  5403. if ( !elem.style ) {
  5404. continue;
  5405. }
  5406. values[ index ] = jQuery._data( elem, "olddisplay" );
  5407. display = elem.style.display;
  5408. if ( show ) {
  5409. // Reset the inline display of this element to learn if it is
  5410. // being hidden by cascaded rules or not
  5411. if ( !values[ index ] && display === "none" ) {
  5412. elem.style.display = "";
  5413. }
  5414. // Set elements which have been overridden with display: none
  5415. // in a stylesheet to whatever the default browser style is
  5416. // for such an element
  5417. if ( elem.style.display === "" && isHidden( elem ) ) {
  5418. values[ index ] = jQuery._data( elem, "olddisplay", defaultDisplay(elem.nodeName) );
  5419. }
  5420. } else {
  5421. hidden = isHidden( elem );
  5422. if ( display && display !== "none" || !hidden ) {
  5423. jQuery._data( elem, "olddisplay", hidden ? display : jQuery.css( elem, "display" ) );
  5424. }
  5425. }
  5426. }
  5427. // Set the display of most of the elements in a second loop
  5428. // to avoid the constant reflow
  5429. for ( index = 0; index < length; index++ ) {
  5430. elem = elements[ index ];
  5431. if ( !elem.style ) {
  5432. continue;
  5433. }
  5434. if ( !show || elem.style.display === "none" || elem.style.display === "" ) {
  5435. elem.style.display = show ? values[ index ] || "" : "none";
  5436. }
  5437. }
  5438. return elements;
  5439. }
  5440. function setPositiveNumber( elem, value, subtract ) {
  5441. var matches = rnumsplit.exec( value );
  5442. return matches ?
  5443. // Guard against undefined "subtract", e.g., when used as in cssHooks
  5444. Math.max( 0, matches[ 1 ] - ( subtract || 0 ) ) + ( matches[ 2 ] || "px" ) :
  5445. value;
  5446. }
  5447. function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {
  5448. var i = extra === ( isBorderBox ? "border" : "content" ) ?
  5449. // If we already have the right measurement, avoid augmentation
  5450. 4 :
  5451. // Otherwise initialize for horizontal or vertical properties
  5452. name === "width" ? 1 : 0,
  5453. val = 0;
  5454. for ( ; i < 4; i += 2 ) {
  5455. // both box models exclude margin, so add it if we want it
  5456. if ( extra === "margin" ) {
  5457. val += jQuery.css( elem, extra + cssExpand[ i ], true, styles );
  5458. }
  5459. if ( isBorderBox ) {
  5460. // border-box includes padding, so remove it if we want content
  5461. if ( extra === "content" ) {
  5462. val -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
  5463. }
  5464. // at this point, extra isn't border nor margin, so remove border
  5465. if ( extra !== "margin" ) {
  5466. val -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
  5467. }
  5468. } else {
  5469. // at this point, extra isn't content, so add padding
  5470. val += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
  5471. // at this point, extra isn't content nor padding, so add border
  5472. if ( extra !== "padding" ) {
  5473. val += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
  5474. }
  5475. }
  5476. }
  5477. return val;
  5478. }
  5479. function getWidthOrHeight( elem, name, extra ) {
  5480. // Start with offset property, which is equivalent to the border-box value
  5481. var valueIsBorderBox = true,
  5482. val = name === "width" ? elem.offsetWidth : elem.offsetHeight,
  5483. styles = getStyles( elem ),
  5484. isBorderBox = support.boxSizing && jQuery.css( elem, "boxSizing", false, styles ) === "border-box";
  5485. // some non-html elements return undefined for offsetWidth, so check for null/undefined
  5486. // svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285
  5487. // MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668
  5488. if ( val <= 0 || val == null ) {
  5489. // Fall back to computed then uncomputed css if necessary
  5490. val = curCSS( elem, name, styles );
  5491. if ( val < 0 || val == null ) {
  5492. val = elem.style[ name ];
  5493. }
  5494. // Computed unit is not pixels. Stop here and return.
  5495. if ( rnumnonpx.test(val) ) {
  5496. return val;
  5497. }
  5498. // we need the check for style in case a browser which returns unreliable values
  5499. // for getComputedStyle silently falls back to the reliable elem.style
  5500. valueIsBorderBox = isBorderBox && ( support.boxSizingReliable() || val === elem.style[ name ] );
  5501. // Normalize "", auto, and prepare for extra
  5502. val = parseFloat( val ) || 0;
  5503. }
  5504. // use the active box-sizing model to add/subtract irrelevant styles
  5505. return ( val +
  5506. augmentWidthOrHeight(
  5507. elem,
  5508. name,
  5509. extra || ( isBorderBox ? "border" : "content" ),
  5510. valueIsBorderBox,
  5511. styles
  5512. )
  5513. ) + "px";
  5514. }
  5515. jQuery.extend({
  5516. // Add in style property hooks for overriding the default
  5517. // behavior of getting and setting a style property
  5518. cssHooks: {
  5519. opacity: {
  5520. get: function( elem, computed ) {
  5521. if ( computed ) {
  5522. // We should always get a number back from opacity
  5523. var ret = curCSS( elem, "opacity" );
  5524. return ret === "" ? "1" : ret;
  5525. }
  5526. }
  5527. }
  5528. },
  5529. // Don't automatically add "px" to these possibly-unitless properties
  5530. cssNumber: {
  5531. "columnCount": true,
  5532. "fillOpacity": true,
  5533. "flexGrow": true,
  5534. "flexShrink": true,
  5535. "fontWeight": true,
  5536. "lineHeight": true,
  5537. "opacity": true,
  5538. "order": true,
  5539. "orphans": true,
  5540. "widows": true,
  5541. "zIndex": true,
  5542. "zoom": true
  5543. },
  5544. // Add in properties whose names you wish to fix before
  5545. // setting or getting the value
  5546. cssProps: {
  5547. // normalize float css property
  5548. "float": support.cssFloat ? "cssFloat" : "styleFloat"
  5549. },
  5550. // Get and set the style property on a DOM Node
  5551. style: function( elem, name, value, extra ) {
  5552. // Don't set styles on text and comment nodes
  5553. if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
  5554. return;
  5555. }
  5556. // Make sure that we're working with the right name
  5557. var ret, type, hooks,
  5558. origName = jQuery.camelCase( name ),
  5559. style = elem.style;
  5560. name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( style, origName ) );
  5561. // gets hook for the prefixed version
  5562. // followed by the unprefixed version
  5563. hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
  5564. // Check if we're setting a value
  5565. if ( value !== undefined ) {
  5566. type = typeof value;
  5567. // convert relative number strings (+= or -=) to relative numbers. #7345
  5568. if ( type === "string" && (ret = rrelNum.exec( value )) ) {
  5569. value = ( ret[1] + 1 ) * ret[2] + parseFloat( jQuery.css( elem, name ) );
  5570. // Fixes bug #9237
  5571. type = "number";
  5572. }
  5573. // Make sure that null and NaN values aren't set. See: #7116
  5574. if ( value == null || value !== value ) {
  5575. return;
  5576. }
  5577. // If a number was passed in, add 'px' to the (except for certain CSS properties)
  5578. if ( type === "number" && !jQuery.cssNumber[ origName ] ) {
  5579. value += "px";
  5580. }
  5581. // Fixes #8908, it can be done more correctly by specifing setters in cssHooks,
  5582. // but it would mean to define eight (for every problematic property) identical functions
  5583. if ( !support.clearCloneStyle && value === "" && name.indexOf("background") === 0 ) {
  5584. style[ name ] = "inherit";
  5585. }
  5586. // If a hook was provided, use that value, otherwise just set the specified value
  5587. if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value, extra )) !== undefined ) {
  5588. // Support: IE
  5589. // Swallow errors from 'invalid' CSS values (#5509)
  5590. try {
  5591. style[ name ] = value;
  5592. } catch(e) {}
  5593. }
  5594. } else {
  5595. // If a hook was provided get the non-computed value from there
  5596. if ( hooks && "get" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) {
  5597. return ret;
  5598. }
  5599. // Otherwise just get the value from the style object
  5600. return style[ name ];
  5601. }
  5602. },
  5603. css: function( elem, name, extra, styles ) {
  5604. var num, val, hooks,
  5605. origName = jQuery.camelCase( name );
  5606. // Make sure that we're working with the right name
  5607. name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( elem.style, origName ) );
  5608. // gets hook for the prefixed version
  5609. // followed by the unprefixed version
  5610. hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
  5611. // If a hook was provided get the computed value from there
  5612. if ( hooks && "get" in hooks ) {
  5613. val = hooks.get( elem, true, extra );
  5614. }
  5615. // Otherwise, if a way to get the computed value exists, use that
  5616. if ( val === undefined ) {
  5617. val = curCSS( elem, name, styles );
  5618. }
  5619. //convert "normal" to computed value
  5620. if ( val === "normal" && name in cssNormalTransform ) {
  5621. val = cssNormalTransform[ name ];
  5622. }
  5623. // Return, converting to number if forced or a qualifier was provided and val looks numeric
  5624. if ( extra === "" || extra ) {
  5625. num = parseFloat( val );
  5626. return extra === true || jQuery.isNumeric( num ) ? num || 0 : val;
  5627. }
  5628. return val;
  5629. }
  5630. });
  5631. jQuery.each([ "height", "width" ], function( i, name ) {
  5632. jQuery.cssHooks[ name ] = {
  5633. get: function( elem, computed, extra ) {
  5634. if ( computed ) {
  5635. // certain elements can have dimension info if we invisibly show them
  5636. // however, it must have a current display style that would benefit from this
  5637. return rdisplayswap.test( jQuery.css( elem, "display" ) ) && elem.offsetWidth === 0 ?
  5638. jQuery.swap( elem, cssShow, function() {
  5639. return getWidthOrHeight( elem, name, extra );
  5640. }) :
  5641. getWidthOrHeight( elem, name, extra );
  5642. }
  5643. },
  5644. set: function( elem, value, extra ) {
  5645. var styles = extra && getStyles( elem );
  5646. return setPositiveNumber( elem, value, extra ?
  5647. augmentWidthOrHeight(
  5648. elem,
  5649. name,
  5650. extra,
  5651. support.boxSizing && jQuery.css( elem, "boxSizing", false, styles ) === "border-box",
  5652. styles
  5653. ) : 0
  5654. );
  5655. }
  5656. };
  5657. });
  5658. if ( !support.opacity ) {
  5659. jQuery.cssHooks.opacity = {
  5660. get: function( elem, computed ) {
  5661. // IE uses filters for opacity
  5662. return ropacity.test( (computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || "" ) ?
  5663. ( 0.01 * parseFloat( RegExp.$1 ) ) + "" :
  5664. computed ? "1" : "";
  5665. },
  5666. set: function( elem, value ) {
  5667. var style = elem.style,
  5668. currentStyle = elem.currentStyle,
  5669. opacity = jQuery.isNumeric( value ) ? "alpha(opacity=" + value * 100 + ")" : "",
  5670. filter = currentStyle && currentStyle.filter || style.filter || "";
  5671. // IE has trouble with opacity if it does not have layout
  5672. // Force it by setting the zoom level
  5673. style.zoom = 1;
  5674. // if setting opacity to 1, and no other filters exist - attempt to remove filter attribute #6652
  5675. // if value === "", then remove inline opacity #12685
  5676. if ( ( value >= 1 || value === "" ) &&
  5677. jQuery.trim( filter.replace( ralpha, "" ) ) === "" &&
  5678. style.removeAttribute ) {
  5679. // Setting style.filter to null, "" & " " still leave "filter:" in the cssText
  5680. // if "filter:" is present at all, clearType is disabled, we want to avoid this
  5681. // style.removeAttribute is IE Only, but so apparently is this code path...
  5682. style.removeAttribute( "filter" );
  5683. // if there is no filter style applied in a css rule or unset inline opacity, we are done
  5684. if ( value === "" || currentStyle && !currentStyle.filter ) {
  5685. return;
  5686. }
  5687. }
  5688. // otherwise, set new filter values
  5689. style.filter = ralpha.test( filter ) ?
  5690. filter.replace( ralpha, opacity ) :
  5691. filter + " " + opacity;
  5692. }
  5693. };
  5694. }
  5695. jQuery.cssHooks.marginRight = addGetHookIf( support.reliableMarginRight,
  5696. function( elem, computed ) {
  5697. if ( computed ) {
  5698. // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
  5699. // Work around by temporarily setting element display to inline-block
  5700. return jQuery.swap( elem, { "display": "inline-block" },
  5701. curCSS, [ elem, "marginRight" ] );
  5702. }
  5703. }
  5704. );
  5705. // These hooks are used by animate to expand properties
  5706. jQuery.each({
  5707. margin: "",
  5708. padding: "",
  5709. border: "Width"
  5710. }, function( prefix, suffix ) {
  5711. jQuery.cssHooks[ prefix + suffix ] = {
  5712. expand: function( value ) {
  5713. var i = 0,
  5714. expanded = {},
  5715. // assumes a single number if not a string
  5716. parts = typeof value === "string" ? value.split(" ") : [ value ];
  5717. for ( ; i < 4; i++ ) {
  5718. expanded[ prefix + cssExpand[ i ] + suffix ] =
  5719. parts[ i ] || parts[ i - 2 ] || parts[ 0 ];
  5720. }
  5721. return expanded;
  5722. }
  5723. };
  5724. if ( !rmargin.test( prefix ) ) {
  5725. jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber;
  5726. }
  5727. });
  5728. jQuery.fn.extend({
  5729. css: function( name, value ) {
  5730. return access( this, function( elem, name, value ) {
  5731. var styles, len,
  5732. map = {},
  5733. i = 0;
  5734. if ( jQuery.isArray( name ) ) {
  5735. styles = getStyles( elem );
  5736. len = name.length;
  5737. for ( ; i < len; i++ ) {
  5738. map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles );
  5739. }
  5740. return map;
  5741. }
  5742. return value !== undefined ?
  5743. jQuery.style( elem, name, value ) :
  5744. jQuery.css( elem, name );
  5745. }, name, value, arguments.length > 1 );
  5746. },
  5747. show: function() {
  5748. return showHide( this, true );
  5749. },
  5750. hide: function() {
  5751. return showHide( this );
  5752. },
  5753. toggle: function( state ) {
  5754. if ( typeof state === "boolean" ) {
  5755. return state ? this.show() : this.hide();
  5756. }
  5757. return this.each(function() {
  5758. if ( isHidden( this ) ) {
  5759. jQuery( this ).show();
  5760. } else {
  5761. jQuery( this ).hide();
  5762. }
  5763. });
  5764. }
  5765. });
  5766. function Tween( elem, options, prop, end, easing ) {
  5767. return new Tween.prototype.init( elem, options, prop, end, easing );
  5768. }
  5769. jQuery.Tween = Tween;
  5770. Tween.prototype = {
  5771. constructor: Tween,
  5772. init: function( elem, options, prop, end, easing, unit ) {
  5773. this.elem = elem;
  5774. this.prop = prop;
  5775. this.easing = easing || "swing";
  5776. this.options = options;
  5777. this.start = this.now = this.cur();
  5778. this.end = end;
  5779. this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" );
  5780. },
  5781. cur: function() {
  5782. var hooks = Tween.propHooks[ this.prop ];
  5783. return hooks && hooks.get ?
  5784. hooks.get( this ) :
  5785. Tween.propHooks._default.get( this );
  5786. },
  5787. run: function( percent ) {
  5788. var eased,
  5789. hooks = Tween.propHooks[ this.prop ];
  5790. if ( this.options.duration ) {
  5791. this.pos = eased = jQuery.easing[ this.easing ](
  5792. percent, this.options.duration * percent, 0, 1, this.options.duration
  5793. );
  5794. } else {
  5795. this.pos = eased = percent;
  5796. }
  5797. this.now = ( this.end - this.start ) * eased + this.start;
  5798. if ( this.options.step ) {
  5799. this.options.step.call( this.elem, this.now, this );
  5800. }
  5801. if ( hooks && hooks.set ) {
  5802. hooks.set( this );
  5803. } else {
  5804. Tween.propHooks._default.set( this );
  5805. }
  5806. return this;
  5807. }
  5808. };
  5809. Tween.prototype.init.prototype = Tween.prototype;
  5810. Tween.propHooks = {
  5811. _default: {
  5812. get: function( tween ) {
  5813. var result;
  5814. if ( tween.elem[ tween.prop ] != null &&
  5815. (!tween.elem.style || tween.elem.style[ tween.prop ] == null) ) {
  5816. return tween.elem[ tween.prop ];
  5817. }
  5818. // passing an empty string as a 3rd parameter to .css will automatically
  5819. // attempt a parseFloat and fallback to a string if the parse fails
  5820. // so, simple values such as "10px" are parsed to Float.
  5821. // complex values such as "rotate(1rad)" are returned as is.
  5822. result = jQuery.css( tween.elem, tween.prop, "" );
  5823. // Empty strings, null, undefined and "auto" are converted to 0.
  5824. return !result || result === "auto" ? 0 : result;
  5825. },
  5826. set: function( tween ) {
  5827. // use step hook for back compat - use cssHook if its there - use .style if its
  5828. // available and use plain properties where available
  5829. if ( jQuery.fx.step[ tween.prop ] ) {
  5830. jQuery.fx.step[ tween.prop ]( tween );
  5831. } else if ( tween.elem.style && ( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null || jQuery.cssHooks[ tween.prop ] ) ) {
  5832. jQuery.style( tween.elem, tween.prop, tween.now + tween.unit );
  5833. } else {
  5834. tween.elem[ tween.prop ] = tween.now;
  5835. }
  5836. }
  5837. }
  5838. };
  5839. // Support: IE <=9
  5840. // Panic based approach to setting things on disconnected nodes
  5841. Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {
  5842. set: function( tween ) {
  5843. if ( tween.elem.nodeType && tween.elem.parentNode ) {
  5844. tween.elem[ tween.prop ] = tween.now;
  5845. }
  5846. }
  5847. };
  5848. jQuery.easing = {
  5849. linear: function( p ) {
  5850. return p;
  5851. },
  5852. swing: function( p ) {
  5853. return 0.5 - Math.cos( p * Math.PI ) / 2;
  5854. }
  5855. };
  5856. jQuery.fx = Tween.prototype.init;
  5857. // Back Compat <1.8 extension point
  5858. jQuery.fx.step = {};
  5859. var
  5860. fxNow, timerId,
  5861. rfxtypes = /^(?:toggle|show|hide)$/,
  5862. rfxnum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" ),
  5863. rrun = /queueHooks$/,
  5864. animationPrefilters = [ defaultPrefilter ],
  5865. tweeners = {
  5866. "*": [ function( prop, value ) {
  5867. var tween = this.createTween( prop, value ),
  5868. target = tween.cur(),
  5869. parts = rfxnum.exec( value ),
  5870. unit = parts && parts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
  5871. // Starting value computation is required for potential unit mismatches
  5872. start = ( jQuery.cssNumber[ prop ] || unit !== "px" && +target ) &&
  5873. rfxnum.exec( jQuery.css( tween.elem, prop ) ),
  5874. scale = 1,
  5875. maxIterations = 20;
  5876. if ( start && start[ 3 ] !== unit ) {
  5877. // Trust units reported by jQuery.css
  5878. unit = unit || start[ 3 ];
  5879. // Make sure we update the tween properties later on
  5880. parts = parts || [];
  5881. // Iteratively approximate from a nonzero starting point
  5882. start = +target || 1;
  5883. do {
  5884. // If previous iteration zeroed out, double until we get *something*
  5885. // Use a string for doubling factor so we don't accidentally see scale as unchanged below
  5886. scale = scale || ".5";
  5887. // Adjust and apply
  5888. start = start / scale;
  5889. jQuery.style( tween.elem, prop, start + unit );
  5890. // Update scale, tolerating zero or NaN from tween.cur()
  5891. // And breaking the loop if scale is unchanged or perfect, or if we've just had enough
  5892. } while ( scale !== (scale = tween.cur() / target) && scale !== 1 && --maxIterations );
  5893. }
  5894. // Update tween properties
  5895. if ( parts ) {
  5896. start = tween.start = +start || +target || 0;
  5897. tween.unit = unit;
  5898. // If a +=/-= token was provided, we're doing a relative animation
  5899. tween.end = parts[ 1 ] ?
  5900. start + ( parts[ 1 ] + 1 ) * parts[ 2 ] :
  5901. +parts[ 2 ];
  5902. }
  5903. return tween;
  5904. } ]
  5905. };
  5906. // Animations created synchronously will run synchronously
  5907. function createFxNow() {
  5908. setTimeout(function() {
  5909. fxNow = undefined;
  5910. });
  5911. return ( fxNow = jQuery.now() );
  5912. }
  5913. // Generate parameters to create a standard animation
  5914. function genFx( type, includeWidth ) {
  5915. var which,
  5916. attrs = { height: type },
  5917. i = 0;
  5918. // if we include width, step value is 1 to do all cssExpand values,
  5919. // if we don't include width, step value is 2 to skip over Left and Right
  5920. includeWidth = includeWidth ? 1 : 0;
  5921. for ( ; i < 4 ; i += 2 - includeWidth ) {
  5922. which = cssExpand[ i ];
  5923. attrs[ "margin" + which ] = attrs[ "padding" + which ] = type;
  5924. }
  5925. if ( includeWidth ) {
  5926. attrs.opacity = attrs.width = type;
  5927. }
  5928. return attrs;
  5929. }
  5930. function createTween( value, prop, animation ) {
  5931. var tween,
  5932. collection = ( tweeners[ prop ] || [] ).concat( tweeners[ "*" ] ),
  5933. index = 0,
  5934. length = collection.length;
  5935. for ( ; index < length; index++ ) {
  5936. if ( (tween = collection[ index ].call( animation, prop, value )) ) {
  5937. // we're done with this property
  5938. return tween;
  5939. }
  5940. }
  5941. }
  5942. function defaultPrefilter( elem, props, opts ) {
  5943. /* jshint validthis: true */
  5944. var prop, value, toggle, tween, hooks, oldfire, display, checkDisplay,
  5945. anim = this,
  5946. orig = {},
  5947. style = elem.style,
  5948. hidden = elem.nodeType && isHidden( elem ),
  5949. dataShow = jQuery._data( elem, "fxshow" );
  5950. // handle queue: false promises
  5951. if ( !opts.queue ) {
  5952. hooks = jQuery._queueHooks( elem, "fx" );
  5953. if ( hooks.unqueued == null ) {
  5954. hooks.unqueued = 0;
  5955. oldfire = hooks.empty.fire;
  5956. hooks.empty.fire = function() {
  5957. if ( !hooks.unqueued ) {
  5958. oldfire();
  5959. }
  5960. };
  5961. }
  5962. hooks.unqueued++;
  5963. anim.always(function() {
  5964. // doing this makes sure that the complete handler will be called
  5965. // before this completes
  5966. anim.always(function() {
  5967. hooks.unqueued--;
  5968. if ( !jQuery.queue( elem, "fx" ).length ) {
  5969. hooks.empty.fire();
  5970. }
  5971. });
  5972. });
  5973. }
  5974. // height/width overflow pass
  5975. if ( elem.nodeType === 1 && ( "height" in props || "width" in props ) ) {
  5976. // Make sure that nothing sneaks out
  5977. // Record all 3 overflow attributes because IE does not
  5978. // change the overflow attribute when overflowX and
  5979. // overflowY are set to the same value
  5980. opts.overflow = [ style.overflow, style.overflowX, style.overflowY ];
  5981. // Set display property to inline-block for height/width
  5982. // animations on inline elements that are having width/height animated
  5983. display = jQuery.css( elem, "display" );
  5984. // Test default display if display is currently "none"
  5985. checkDisplay = display === "none" ?
  5986. jQuery._data( elem, "olddisplay" ) || defaultDisplay( elem.nodeName ) : display;
  5987. if ( checkDisplay === "inline" && jQuery.css( elem, "float" ) === "none" ) {
  5988. // inline-level elements accept inline-block;
  5989. // block-level elements need to be inline with layout
  5990. if ( !support.inlineBlockNeedsLayout || defaultDisplay( elem.nodeName ) === "inline" ) {
  5991. style.display = "inline-block";
  5992. } else {
  5993. style.zoom = 1;
  5994. }
  5995. }
  5996. }
  5997. if ( opts.overflow ) {
  5998. style.overflow = "hidden";
  5999. if ( !support.shrinkWrapBlocks() ) {
  6000. anim.always(function() {
  6001. style.overflow = opts.overflow[ 0 ];
  6002. style.overflowX = opts.overflow[ 1 ];
  6003. style.overflowY = opts.overflow[ 2 ];
  6004. });
  6005. }
  6006. }
  6007. // show/hide pass
  6008. for ( prop in props ) {
  6009. value = props[ prop ];
  6010. if ( rfxtypes.exec( value ) ) {
  6011. delete props[ prop ];
  6012. toggle = toggle || value === "toggle";
  6013. if ( value === ( hidden ? "hide" : "show" ) ) {
  6014. // If there is dataShow left over from a stopped hide or show and we are going to proceed with show, we should pretend to be hidden
  6015. if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) {
  6016. hidden = true;
  6017. } else {
  6018. continue;
  6019. }
  6020. }
  6021. orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop );
  6022. // Any non-fx value stops us from restoring the original display value
  6023. } else {
  6024. display = undefined;
  6025. }
  6026. }
  6027. if ( !jQuery.isEmptyObject( orig ) ) {
  6028. if ( dataShow ) {
  6029. if ( "hidden" in dataShow ) {
  6030. hidden = dataShow.hidden;
  6031. }
  6032. } else {
  6033. dataShow = jQuery._data( elem, "fxshow", {} );
  6034. }
  6035. // store state if its toggle - enables .stop().toggle() to "reverse"
  6036. if ( toggle ) {
  6037. dataShow.hidden = !hidden;
  6038. }
  6039. if ( hidden ) {
  6040. jQuery( elem ).show();
  6041. } else {
  6042. anim.done(function() {
  6043. jQuery( elem ).hide();
  6044. });
  6045. }
  6046. anim.done(function() {
  6047. var prop;
  6048. jQuery._removeData( elem, "fxshow" );
  6049. for ( prop in orig ) {
  6050. jQuery.style( elem, prop, orig[ prop ] );
  6051. }
  6052. });
  6053. for ( prop in orig ) {
  6054. tween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim );
  6055. if ( !( prop in dataShow ) ) {
  6056. dataShow[ prop ] = tween.start;
  6057. if ( hidden ) {
  6058. tween.end = tween.start;
  6059. tween.start = prop === "width" || prop === "height" ? 1 : 0;
  6060. }
  6061. }
  6062. }
  6063. // If this is a noop like .hide().hide(), restore an overwritten display value
  6064. } else if ( (display === "none" ? defaultDisplay( elem.nodeName ) : display) === "inline" ) {
  6065. style.display = display;
  6066. }
  6067. }
  6068. function propFilter( props, specialEasing ) {
  6069. var index, name, easing, value, hooks;
  6070. // camelCase, specialEasing and expand cssHook pass
  6071. for ( index in props ) {
  6072. name = jQuery.camelCase( index );
  6073. easing = specialEasing[ name ];
  6074. value = props[ index ];
  6075. if ( jQuery.isArray( value ) ) {
  6076. easing = value[ 1 ];
  6077. value = props[ index ] = value[ 0 ];
  6078. }
  6079. if ( index !== name ) {
  6080. props[ name ] = value;
  6081. delete props[ index ];
  6082. }
  6083. hooks = jQuery.cssHooks[ name ];
  6084. if ( hooks && "expand" in hooks ) {
  6085. value = hooks.expand( value );
  6086. delete props[ name ];
  6087. // not quite $.extend, this wont overwrite keys already present.
  6088. // also - reusing 'index' from above because we have the correct "name"
  6089. for ( index in value ) {
  6090. if ( !( index in props ) ) {
  6091. props[ index ] = value[ index ];
  6092. specialEasing[ index ] = easing;
  6093. }
  6094. }
  6095. } else {
  6096. specialEasing[ name ] = easing;
  6097. }
  6098. }
  6099. }
  6100. function Animation( elem, properties, options ) {
  6101. var result,
  6102. stopped,
  6103. index = 0,
  6104. length = animationPrefilters.length,
  6105. deferred = jQuery.Deferred().always( function() {
  6106. // don't match elem in the :animated selector
  6107. delete tick.elem;
  6108. }),
  6109. tick = function() {
  6110. if ( stopped ) {
  6111. return false;
  6112. }
  6113. var currentTime = fxNow || createFxNow(),
  6114. remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),
  6115. // archaic crash bug won't allow us to use 1 - ( 0.5 || 0 ) (#12497)
  6116. temp = remaining / animation.duration || 0,
  6117. percent = 1 - temp,
  6118. index = 0,
  6119. length = animation.tweens.length;
  6120. for ( ; index < length ; index++ ) {
  6121. animation.tweens[ index ].run( percent );
  6122. }
  6123. deferred.notifyWith( elem, [ animation, percent, remaining ]);
  6124. if ( percent < 1 && length ) {
  6125. return remaining;
  6126. } else {
  6127. deferred.resolveWith( elem, [ animation ] );
  6128. return false;
  6129. }
  6130. },
  6131. animation = deferred.promise({
  6132. elem: elem,
  6133. props: jQuery.extend( {}, properties ),
  6134. opts: jQuery.extend( true, { specialEasing: {} }, options ),
  6135. originalProperties: properties,
  6136. originalOptions: options,
  6137. startTime: fxNow || createFxNow(),
  6138. duration: options.duration,
  6139. tweens: [],
  6140. createTween: function( prop, end ) {
  6141. var tween = jQuery.Tween( elem, animation.opts, prop, end,
  6142. animation.opts.specialEasing[ prop ] || animation.opts.easing );
  6143. animation.tweens.push( tween );
  6144. return tween;
  6145. },
  6146. stop: function( gotoEnd ) {
  6147. var index = 0,
  6148. // if we are going to the end, we want to run all the tweens
  6149. // otherwise we skip this part
  6150. length = gotoEnd ? animation.tweens.length : 0;
  6151. if ( stopped ) {
  6152. return this;
  6153. }
  6154. stopped = true;
  6155. for ( ; index < length ; index++ ) {
  6156. animation.tweens[ index ].run( 1 );
  6157. }
  6158. // resolve when we played the last frame
  6159. // otherwise, reject
  6160. if ( gotoEnd ) {
  6161. deferred.resolveWith( elem, [ animation, gotoEnd ] );
  6162. } else {
  6163. deferred.rejectWith( elem, [ animation, gotoEnd ] );
  6164. }
  6165. return this;
  6166. }
  6167. }),
  6168. props = animation.props;
  6169. propFilter( props, animation.opts.specialEasing );
  6170. for ( ; index < length ; index++ ) {
  6171. result = animationPrefilters[ index ].call( animation, elem, props, animation.opts );
  6172. if ( result ) {
  6173. return result;
  6174. }
  6175. }
  6176. jQuery.map( props, createTween, animation );
  6177. if ( jQuery.isFunction( animation.opts.start ) ) {
  6178. animation.opts.start.call( elem, animation );
  6179. }
  6180. jQuery.fx.timer(
  6181. jQuery.extend( tick, {
  6182. elem: elem,
  6183. anim: animation,
  6184. queue: animation.opts.queue
  6185. })
  6186. );
  6187. // attach callbacks from options
  6188. return animation.progress( animation.opts.progress )
  6189. .done( animation.opts.done, animation.opts.complete )
  6190. .fail( animation.opts.fail )
  6191. .always( animation.opts.always );
  6192. }
  6193. jQuery.Animation = jQuery.extend( Animation, {
  6194. tweener: function( props, callback ) {
  6195. if ( jQuery.isFunction( props ) ) {
  6196. callback = props;
  6197. props = [ "*" ];
  6198. } else {
  6199. props = props.split(" ");
  6200. }
  6201. var prop,
  6202. index = 0,
  6203. length = props.length;
  6204. for ( ; index < length ; index++ ) {
  6205. prop = props[ index ];
  6206. tweeners[ prop ] = tweeners[ prop ] || [];
  6207. tweeners[ prop ].unshift( callback );
  6208. }
  6209. },
  6210. prefilter: function( callback, prepend ) {
  6211. if ( prepend ) {
  6212. animationPrefilters.unshift( callback );
  6213. } else {
  6214. animationPrefilters.push( callback );
  6215. }
  6216. }
  6217. });
  6218. jQuery.speed = function( speed, easing, fn ) {
  6219. var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
  6220. complete: fn || !fn && easing ||
  6221. jQuery.isFunction( speed ) && speed,
  6222. duration: speed,
  6223. easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing
  6224. };
  6225. opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
  6226. opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;
  6227. // normalize opt.queue - true/undefined/null -> "fx"
  6228. if ( opt.queue == null || opt.queue === true ) {
  6229. opt.queue = "fx";
  6230. }
  6231. // Queueing
  6232. opt.old = opt.complete;
  6233. opt.complete = function() {
  6234. if ( jQuery.isFunction( opt.old ) ) {
  6235. opt.old.call( this );
  6236. }
  6237. if ( opt.queue ) {
  6238. jQuery.dequeue( this, opt.queue );
  6239. }
  6240. };
  6241. return opt;
  6242. };
  6243. jQuery.fn.extend({
  6244. fadeTo: function( speed, to, easing, callback ) {
  6245. // show any hidden elements after setting opacity to 0
  6246. return this.filter( isHidden ).css( "opacity", 0 ).show()
  6247. // animate to the value specified
  6248. .end().animate({ opacity: to }, speed, easing, callback );
  6249. },
  6250. animate: function( prop, speed, easing, callback ) {
  6251. var empty = jQuery.isEmptyObject( prop ),
  6252. optall = jQuery.speed( speed, easing, callback ),
  6253. doAnimation = function() {
  6254. // Operate on a copy of prop so per-property easing won't be lost
  6255. var anim = Animation( this, jQuery.extend( {}, prop ), optall );
  6256. // Empty animations, or finishing resolves immediately
  6257. if ( empty || jQuery._data( this, "finish" ) ) {
  6258. anim.stop( true );
  6259. }
  6260. };
  6261. doAnimation.finish = doAnimation;
  6262. return empty || optall.queue === false ?
  6263. this.each( doAnimation ) :
  6264. this.queue( optall.queue, doAnimation );
  6265. },
  6266. stop: function( type, clearQueue, gotoEnd ) {
  6267. var stopQueue = function( hooks ) {
  6268. var stop = hooks.stop;
  6269. delete hooks.stop;
  6270. stop( gotoEnd );
  6271. };
  6272. if ( typeof type !== "string" ) {
  6273. gotoEnd = clearQueue;
  6274. clearQueue = type;
  6275. type = undefined;
  6276. }
  6277. if ( clearQueue && type !== false ) {
  6278. this.queue( type || "fx", [] );
  6279. }
  6280. return this.each(function() {
  6281. var dequeue = true,
  6282. index = type != null && type + "queueHooks",
  6283. timers = jQuery.timers,
  6284. data = jQuery._data( this );
  6285. if ( index ) {
  6286. if ( data[ index ] && data[ index ].stop ) {
  6287. stopQueue( data[ index ] );
  6288. }
  6289. } else {
  6290. for ( index in data ) {
  6291. if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) {
  6292. stopQueue( data[ index ] );
  6293. }
  6294. }
  6295. }
  6296. for ( index = timers.length; index--; ) {
  6297. if ( timers[ index ].elem === this && (type == null || timers[ index ].queue === type) ) {
  6298. timers[ index ].anim.stop( gotoEnd );
  6299. dequeue = false;
  6300. timers.splice( index, 1 );
  6301. }
  6302. }
  6303. // start the next in the queue if the last step wasn't forced
  6304. // timers currently will call their complete callbacks, which will dequeue
  6305. // but only if they were gotoEnd
  6306. if ( dequeue || !gotoEnd ) {
  6307. jQuery.dequeue( this, type );
  6308. }
  6309. });
  6310. },
  6311. finish: function( type ) {
  6312. if ( type !== false ) {
  6313. type = type || "fx";
  6314. }
  6315. return this.each(function() {
  6316. var index,
  6317. data = jQuery._data( this ),
  6318. queue = data[ type + "queue" ],
  6319. hooks = data[ type + "queueHooks" ],
  6320. timers = jQuery.timers,
  6321. length = queue ? queue.length : 0;
  6322. // enable finishing flag on private data
  6323. data.finish = true;
  6324. // empty the queue first
  6325. jQuery.queue( this, type, [] );
  6326. if ( hooks && hooks.stop ) {
  6327. hooks.stop.call( this, true );
  6328. }
  6329. // look for any active animations, and finish them
  6330. for ( index = timers.length; index--; ) {
  6331. if ( timers[ index ].elem === this && timers[ index ].queue === type ) {
  6332. timers[ index ].anim.stop( true );
  6333. timers.splice( index, 1 );
  6334. }
  6335. }
  6336. // look for any animations in the old queue and finish them
  6337. for ( index = 0; index < length; index++ ) {
  6338. if ( queue[ index ] && queue[ index ].finish ) {
  6339. queue[ index ].finish.call( this );
  6340. }
  6341. }
  6342. // turn off finishing flag
  6343. delete data.finish;
  6344. });
  6345. }
  6346. });
  6347. jQuery.each([ "toggle", "show", "hide" ], function( i, name ) {
  6348. var cssFn = jQuery.fn[ name ];
  6349. jQuery.fn[ name ] = function( speed, easing, callback ) {
  6350. return speed == null || typeof speed === "boolean" ?
  6351. cssFn.apply( this, arguments ) :
  6352. this.animate( genFx( name, true ), speed, easing, callback );
  6353. };
  6354. });
  6355. // Generate shortcuts for custom animations
  6356. jQuery.each({
  6357. slideDown: genFx("show"),
  6358. slideUp: genFx("hide"),
  6359. slideToggle: genFx("toggle"),
  6360. fadeIn: { opacity: "show" },
  6361. fadeOut: { opacity: "hide" },
  6362. fadeToggle: { opacity: "toggle" }
  6363. }, function( name, props ) {
  6364. jQuery.fn[ name ] = function( speed, easing, callback ) {
  6365. return this.animate( props, speed, easing, callback );
  6366. };
  6367. });
  6368. jQuery.timers = [];
  6369. jQuery.fx.tick = function() {
  6370. var timer,
  6371. timers = jQuery.timers,
  6372. i = 0;
  6373. fxNow = jQuery.now();
  6374. for ( ; i < timers.length; i++ ) {
  6375. timer = timers[ i ];
  6376. // Checks the timer has not already been removed
  6377. if ( !timer() && timers[ i ] === timer ) {
  6378. timers.splice( i--, 1 );
  6379. }
  6380. }
  6381. if ( !timers.length ) {
  6382. jQuery.fx.stop();
  6383. }
  6384. fxNow = undefined;
  6385. };
  6386. jQuery.fx.timer = function( timer ) {
  6387. jQuery.timers.push( timer );
  6388. if ( timer() ) {
  6389. jQuery.fx.start();
  6390. } else {
  6391. jQuery.timers.pop();
  6392. }
  6393. };
  6394. jQuery.fx.interval = 13;
  6395. jQuery.fx.start = function() {
  6396. if ( !timerId ) {
  6397. timerId = setInterval( jQuery.fx.tick, jQuery.fx.interval );
  6398. }
  6399. };
  6400. jQuery.fx.stop = function() {
  6401. clearInterval( timerId );
  6402. timerId = null;
  6403. };
  6404. jQuery.fx.speeds = {
  6405. slow: 600,
  6406. fast: 200,
  6407. // Default speed
  6408. _default: 400
  6409. };
  6410. // Based off of the plugin by Clint Helfers, with permission.
  6411. // http://blindsignals.com/index.php/2009/07/jquery-delay/
  6412. jQuery.fn.delay = function( time, type ) {
  6413. time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
  6414. type = type || "fx";
  6415. return this.queue( type, function( next, hooks ) {
  6416. var timeout = setTimeout( next, time );
  6417. hooks.stop = function() {
  6418. clearTimeout( timeout );
  6419. };
  6420. });
  6421. };
  6422. (function() {
  6423. // Minified: var a,b,c,d,e
  6424. var input, div, select, a, opt;
  6425. // Setup
  6426. div = document.createElement( "div" );
  6427. div.setAttribute( "className", "t" );
  6428. div.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";
  6429. a = div.getElementsByTagName("a")[ 0 ];
  6430. // First batch of tests.
  6431. select = document.createElement("select");
  6432. opt = select.appendChild( document.createElement("option") );
  6433. input = div.getElementsByTagName("input")[ 0 ];
  6434. a.style.cssText = "top:1px";
  6435. // Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7)
  6436. support.getSetAttribute = div.className !== "t";
  6437. // Get the style information from getAttribute
  6438. // (IE uses .cssText instead)
  6439. support.style = /top/.test( a.getAttribute("style") );
  6440. // Make sure that URLs aren't manipulated
  6441. // (IE normalizes it by default)
  6442. support.hrefNormalized = a.getAttribute("href") === "/a";
  6443. // Check the default checkbox/radio value ("" on WebKit; "on" elsewhere)
  6444. support.checkOn = !!input.value;
  6445. // Make sure that a selected-by-default option has a working selected property.
  6446. // (WebKit defaults to false instead of true, IE too, if it's in an optgroup)
  6447. support.optSelected = opt.selected;
  6448. // Tests for enctype support on a form (#6743)
  6449. support.enctype = !!document.createElement("form").enctype;
  6450. // Make sure that the options inside disabled selects aren't marked as disabled
  6451. // (WebKit marks them as disabled)
  6452. select.disabled = true;
  6453. support.optDisabled = !opt.disabled;
  6454. // Support: IE8 only
  6455. // Check if we can trust getAttribute("value")
  6456. input = document.createElement( "input" );
  6457. input.setAttribute( "value", "" );
  6458. support.input = input.getAttribute( "value" ) === "";
  6459. // Check if an input maintains its value after becoming a radio
  6460. input.value = "t";
  6461. input.setAttribute( "type", "radio" );
  6462. support.radioValue = input.value === "t";
  6463. })();
  6464. var rreturn = /\r/g;
  6465. jQuery.fn.extend({
  6466. val: function( value ) {
  6467. var hooks, ret, isFunction,
  6468. elem = this[0];
  6469. if ( !arguments.length ) {
  6470. if ( elem ) {
  6471. hooks = jQuery.valHooks[ elem.type ] || jQuery.valHooks[ elem.nodeName.toLowerCase() ];
  6472. if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) {
  6473. return ret;
  6474. }
  6475. ret = elem.value;
  6476. return typeof ret === "string" ?
  6477. // handle most common string cases
  6478. ret.replace(rreturn, "") :
  6479. // handle cases where value is null/undef or number
  6480. ret == null ? "" : ret;
  6481. }
  6482. return;
  6483. }
  6484. isFunction = jQuery.isFunction( value );
  6485. return this.each(function( i ) {
  6486. var val;
  6487. if ( this.nodeType !== 1 ) {
  6488. return;
  6489. }
  6490. if ( isFunction ) {
  6491. val = value.call( this, i, jQuery( this ).val() );
  6492. } else {
  6493. val = value;
  6494. }
  6495. // Treat null/undefined as ""; convert numbers to string
  6496. if ( val == null ) {
  6497. val = "";
  6498. } else if ( typeof val === "number" ) {
  6499. val += "";
  6500. } else if ( jQuery.isArray( val ) ) {
  6501. val = jQuery.map( val, function( value ) {
  6502. return value == null ? "" : value + "";
  6503. });
  6504. }
  6505. hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ];
  6506. // If set returns undefined, fall back to normal setting
  6507. if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) {
  6508. this.value = val;
  6509. }
  6510. });
  6511. }
  6512. });
  6513. jQuery.extend({
  6514. valHooks: {
  6515. option: {
  6516. get: function( elem ) {
  6517. var val = jQuery.find.attr( elem, "value" );
  6518. return val != null ?
  6519. val :
  6520. // Support: IE10-11+
  6521. // option.text throws exceptions (#14686, #14858)
  6522. jQuery.trim( jQuery.text( elem ) );
  6523. }
  6524. },
  6525. select: {
  6526. get: function( elem ) {
  6527. var value, option,
  6528. options = elem.options,
  6529. index = elem.selectedIndex,
  6530. one = elem.type === "select-one" || index < 0,
  6531. values = one ? null : [],
  6532. max = one ? index + 1 : options.length,
  6533. i = index < 0 ?
  6534. max :
  6535. one ? index : 0;
  6536. // Loop through all the selected options
  6537. for ( ; i < max; i++ ) {
  6538. option = options[ i ];
  6539. // oldIE doesn't update selected after form reset (#2551)
  6540. if ( ( option.selected || i === index ) &&
  6541. // Don't return options that are disabled or in a disabled optgroup
  6542. ( support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null ) &&
  6543. ( !option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" ) ) ) {
  6544. // Get the specific value for the option
  6545. value = jQuery( option ).val();
  6546. // We don't need an array for one selects
  6547. if ( one ) {
  6548. return value;
  6549. }
  6550. // Multi-Selects return an array
  6551. values.push( value );
  6552. }
  6553. }
  6554. return values;
  6555. },
  6556. set: function( elem, value ) {
  6557. var optionSet, option,
  6558. options = elem.options,
  6559. values = jQuery.makeArray( value ),
  6560. i = options.length;
  6561. while ( i-- ) {
  6562. option = options[ i ];
  6563. if ( jQuery.inArray( jQuery.valHooks.option.get( option ), values ) >= 0 ) {
  6564. // Support: IE6
  6565. // When new option element is added to select box we need to
  6566. // force reflow of newly added node in order to workaround delay
  6567. // of initialization properties
  6568. try {
  6569. option.selected = optionSet = true;
  6570. } catch ( _ ) {
  6571. // Will be executed only in IE6
  6572. option.scrollHeight;
  6573. }
  6574. } else {
  6575. option.selected = false;
  6576. }
  6577. }
  6578. // Force browsers to behave consistently when non-matching value is set
  6579. if ( !optionSet ) {
  6580. elem.selectedIndex = -1;
  6581. }
  6582. return options;
  6583. }
  6584. }
  6585. }
  6586. });
  6587. // Radios and checkboxes getter/setter
  6588. jQuery.each([ "radio", "checkbox" ], function() {
  6589. jQuery.valHooks[ this ] = {
  6590. set: function( elem, value ) {
  6591. if ( jQuery.isArray( value ) ) {
  6592. return ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 );
  6593. }
  6594. }
  6595. };
  6596. if ( !support.checkOn ) {
  6597. jQuery.valHooks[ this ].get = function( elem ) {
  6598. // Support: Webkit
  6599. // "" is returned instead of "on" if a value isn't specified
  6600. return elem.getAttribute("value") === null ? "on" : elem.value;
  6601. };
  6602. }
  6603. });
  6604. var nodeHook, boolHook,
  6605. attrHandle = jQuery.expr.attrHandle,
  6606. ruseDefault = /^(?:checked|selected)$/i,
  6607. getSetAttribute = support.getSetAttribute,
  6608. getSetInput = support.input;
  6609. jQuery.fn.extend({
  6610. attr: function( name, value ) {
  6611. return access( this, jQuery.attr, name, value, arguments.length > 1 );
  6612. },
  6613. removeAttr: function( name ) {
  6614. return this.each(function() {
  6615. jQuery.removeAttr( this, name );
  6616. });
  6617. }
  6618. });
  6619. jQuery.extend({
  6620. attr: function( elem, name, value ) {
  6621. var hooks, ret,
  6622. nType = elem.nodeType;
  6623. // don't get/set attributes on text, comment and attribute nodes
  6624. if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
  6625. return;
  6626. }
  6627. // Fallback to prop when attributes are not supported
  6628. if ( typeof elem.getAttribute === strundefined ) {
  6629. return jQuery.prop( elem, name, value );
  6630. }
  6631. // All attributes are lowercase
  6632. // Grab necessary hook if one is defined
  6633. if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {
  6634. name = name.toLowerCase();
  6635. hooks = jQuery.attrHooks[ name ] ||
  6636. ( jQuery.expr.match.bool.test( name ) ? boolHook : nodeHook );
  6637. }
  6638. if ( value !== undefined ) {
  6639. if ( value === null ) {
  6640. jQuery.removeAttr( elem, name );
  6641. } else if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) {
  6642. return ret;
  6643. } else {
  6644. elem.setAttribute( name, value + "" );
  6645. return value;
  6646. }
  6647. } else if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) {
  6648. return ret;
  6649. } else {
  6650. ret = jQuery.find.attr( elem, name );
  6651. // Non-existent attributes return null, we normalize to undefined
  6652. return ret == null ?
  6653. undefined :
  6654. ret;
  6655. }
  6656. },
  6657. removeAttr: function( elem, value ) {
  6658. var name, propName,
  6659. i = 0,
  6660. attrNames = value && value.match( rnotwhite );
  6661. if ( attrNames && elem.nodeType === 1 ) {
  6662. while ( (name = attrNames[i++]) ) {
  6663. propName = jQuery.propFix[ name ] || name;
  6664. // Boolean attributes get special treatment (#10870)
  6665. if ( jQuery.expr.match.bool.test( name ) ) {
  6666. // Set corresponding property to false
  6667. if ( getSetInput && getSetAttribute || !ruseDefault.test( name ) ) {
  6668. elem[ propName ] = false;
  6669. // Support: IE<9
  6670. // Also clear defaultChecked/defaultSelected (if appropriate)
  6671. } else {
  6672. elem[ jQuery.camelCase( "default-" + name ) ] =
  6673. elem[ propName ] = false;
  6674. }
  6675. // See #9699 for explanation of this approach (setting first, then removal)
  6676. } else {
  6677. jQuery.attr( elem, name, "" );
  6678. }
  6679. elem.removeAttribute( getSetAttribute ? name : propName );
  6680. }
  6681. }
  6682. },
  6683. attrHooks: {
  6684. type: {
  6685. set: function( elem, value ) {
  6686. if ( !support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) {
  6687. // Setting the type on a radio button after the value resets the value in IE6-9
  6688. // Reset value to default in case type is set after value during creation
  6689. var val = elem.value;
  6690. elem.setAttribute( "type", value );
  6691. if ( val ) {
  6692. elem.value = val;
  6693. }
  6694. return value;
  6695. }
  6696. }
  6697. }
  6698. }
  6699. });
  6700. // Hook for boolean attributes
  6701. boolHook = {
  6702. set: function( elem, value, name ) {
  6703. if ( value === false ) {
  6704. // Remove boolean attributes when set to false
  6705. jQuery.removeAttr( elem, name );
  6706. } else if ( getSetInput && getSetAttribute || !ruseDefault.test( name ) ) {
  6707. // IE<8 needs the *property* name
  6708. elem.setAttribute( !getSetAttribute && jQuery.propFix[ name ] || name, name );
  6709. // Use defaultChecked and defaultSelected for oldIE
  6710. } else {
  6711. elem[ jQuery.camelCase( "default-" + name ) ] = elem[ name ] = true;
  6712. }
  6713. return name;
  6714. }
  6715. };
  6716. // Retrieve booleans specially
  6717. jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) {
  6718. var getter = attrHandle[ name ] || jQuery.find.attr;
  6719. attrHandle[ name ] = getSetInput && getSetAttribute || !ruseDefault.test( name ) ?
  6720. function( elem, name, isXML ) {
  6721. var ret, handle;
  6722. if ( !isXML ) {
  6723. // Avoid an infinite loop by temporarily removing this function from the getter
  6724. handle = attrHandle[ name ];
  6725. attrHandle[ name ] = ret;
  6726. ret = getter( elem, name, isXML ) != null ?
  6727. name.toLowerCase() :
  6728. null;
  6729. attrHandle[ name ] = handle;
  6730. }
  6731. return ret;
  6732. } :
  6733. function( elem, name, isXML ) {
  6734. if ( !isXML ) {
  6735. return elem[ jQuery.camelCase( "default-" + name ) ] ?
  6736. name.toLowerCase() :
  6737. null;
  6738. }
  6739. };
  6740. });
  6741. // fix oldIE attroperties
  6742. if ( !getSetInput || !getSetAttribute ) {
  6743. jQuery.attrHooks.value = {
  6744. set: function( elem, value, name ) {
  6745. if ( jQuery.nodeName( elem, "input" ) ) {
  6746. // Does not return so that setAttribute is also used
  6747. elem.defaultValue = value;
  6748. } else {
  6749. // Use nodeHook if defined (#1954); otherwise setAttribute is fine
  6750. return nodeHook && nodeHook.set( elem, value, name );
  6751. }
  6752. }
  6753. };
  6754. }
  6755. // IE6/7 do not support getting/setting some attributes with get/setAttribute
  6756. if ( !getSetAttribute ) {
  6757. // Use this for any attribute in IE6/7
  6758. // This fixes almost every IE6/7 issue
  6759. nodeHook = {
  6760. set: function( elem, value, name ) {
  6761. // Set the existing or create a new attribute node
  6762. var ret = elem.getAttributeNode( name );
  6763. if ( !ret ) {
  6764. elem.setAttributeNode(
  6765. (ret = elem.ownerDocument.createAttribute( name ))
  6766. );
  6767. }
  6768. ret.value = value += "";
  6769. // Break association with cloned elements by also using setAttribute (#9646)
  6770. if ( name === "value" || value === elem.getAttribute( name ) ) {
  6771. return value;
  6772. }
  6773. }
  6774. };
  6775. // Some attributes are constructed with empty-string values when not defined
  6776. attrHandle.id = attrHandle.name = attrHandle.coords =
  6777. function( elem, name, isXML ) {
  6778. var ret;
  6779. if ( !isXML ) {
  6780. return (ret = elem.getAttributeNode( name )) && ret.value !== "" ?
  6781. ret.value :
  6782. null;
  6783. }
  6784. };
  6785. // Fixing value retrieval on a button requires this module
  6786. jQuery.valHooks.button = {
  6787. get: function( elem, name ) {
  6788. var ret = elem.getAttributeNode( name );
  6789. if ( ret && ret.specified ) {
  6790. return ret.value;
  6791. }
  6792. },
  6793. set: nodeHook.set
  6794. };
  6795. // Set contenteditable to false on removals(#10429)
  6796. // Setting to empty string throws an error as an invalid value
  6797. jQuery.attrHooks.contenteditable = {
  6798. set: function( elem, value, name ) {
  6799. nodeHook.set( elem, value === "" ? false : value, name );
  6800. }
  6801. };
  6802. // Set width and height to auto instead of 0 on empty string( Bug #8150 )
  6803. // This is for removals
  6804. jQuery.each([ "width", "height" ], function( i, name ) {
  6805. jQuery.attrHooks[ name ] = {
  6806. set: function( elem, value ) {
  6807. if ( value === "" ) {
  6808. elem.setAttribute( name, "auto" );
  6809. return value;
  6810. }
  6811. }
  6812. };
  6813. });
  6814. }
  6815. if ( !support.style ) {
  6816. jQuery.attrHooks.style = {
  6817. get: function( elem ) {
  6818. // Return undefined in the case of empty string
  6819. // Note: IE uppercases css property names, but if we were to .toLowerCase()
  6820. // .cssText, that would destroy case senstitivity in URL's, like in "background"
  6821. return elem.style.cssText || undefined;
  6822. },
  6823. set: function( elem, value ) {
  6824. return ( elem.style.cssText = value + "" );
  6825. }
  6826. };
  6827. }
  6828. var rfocusable = /^(?:input|select|textarea|button|object)$/i,
  6829. rclickable = /^(?:a|area)$/i;
  6830. jQuery.fn.extend({
  6831. prop: function( name, value ) {
  6832. return access( this, jQuery.prop, name, value, arguments.length > 1 );
  6833. },
  6834. removeProp: function( name ) {
  6835. name = jQuery.propFix[ name ] || name;
  6836. return this.each(function() {
  6837. // try/catch handles cases where IE balks (such as removing a property on window)
  6838. try {
  6839. this[ name ] = undefined;
  6840. delete this[ name ];
  6841. } catch( e ) {}
  6842. });
  6843. }
  6844. });
  6845. jQuery.extend({
  6846. propFix: {
  6847. "for": "htmlFor",
  6848. "class": "className"
  6849. },
  6850. prop: function( elem, name, value ) {
  6851. var ret, hooks, notxml,
  6852. nType = elem.nodeType;
  6853. // don't get/set properties on text, comment and attribute nodes
  6854. if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
  6855. return;
  6856. }
  6857. notxml = nType !== 1 || !jQuery.isXMLDoc( elem );
  6858. if ( notxml ) {
  6859. // Fix name and attach hooks
  6860. name = jQuery.propFix[ name ] || name;
  6861. hooks = jQuery.propHooks[ name ];
  6862. }
  6863. if ( value !== undefined ) {
  6864. return hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ?
  6865. ret :
  6866. ( elem[ name ] = value );
  6867. } else {
  6868. return hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ?
  6869. ret :
  6870. elem[ name ];
  6871. }
  6872. },
  6873. propHooks: {
  6874. tabIndex: {
  6875. get: function( elem ) {
  6876. // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set
  6877. // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
  6878. // Use proper attribute retrieval(#12072)
  6879. var tabindex = jQuery.find.attr( elem, "tabindex" );
  6880. return tabindex ?
  6881. parseInt( tabindex, 10 ) :
  6882. rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ?
  6883. 0 :
  6884. -1;
  6885. }
  6886. }
  6887. }
  6888. });
  6889. // Some attributes require a special call on IE
  6890. // http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx
  6891. if ( !support.hrefNormalized ) {
  6892. // href/src property should get the full normalized URL (#10299/#12915)
  6893. jQuery.each([ "href", "src" ], function( i, name ) {
  6894. jQuery.propHooks[ name ] = {
  6895. get: function( elem ) {
  6896. return elem.getAttribute( name, 4 );
  6897. }
  6898. };
  6899. });
  6900. }
  6901. // Support: Safari, IE9+
  6902. // mis-reports the default selected property of an option
  6903. // Accessing the parent's selectedIndex property fixes it
  6904. if ( !support.optSelected ) {
  6905. jQuery.propHooks.selected = {
  6906. get: function( elem ) {
  6907. var parent = elem.parentNode;
  6908. if ( parent ) {
  6909. parent.selectedIndex;
  6910. // Make sure that it also works with optgroups, see #5701
  6911. if ( parent.parentNode ) {
  6912. parent.parentNode.selectedIndex;
  6913. }
  6914. }
  6915. return null;
  6916. }
  6917. };
  6918. }
  6919. jQuery.each([
  6920. "tabIndex",
  6921. "readOnly",
  6922. "maxLength",
  6923. "cellSpacing",
  6924. "cellPadding",
  6925. "rowSpan",
  6926. "colSpan",
  6927. "useMap",
  6928. "frameBorder",
  6929. "contentEditable"
  6930. ], function() {
  6931. jQuery.propFix[ this.toLowerCase() ] = this;
  6932. });
  6933. // IE6/7 call enctype encoding
  6934. if ( !support.enctype ) {
  6935. jQuery.propFix.enctype = "encoding";
  6936. }
  6937. var rclass = /[\t\r\n\f]/g;
  6938. jQuery.fn.extend({
  6939. addClass: function( value ) {
  6940. var classes, elem, cur, clazz, j, finalValue,
  6941. i = 0,
  6942. len = this.length,
  6943. proceed = typeof value === "string" && value;
  6944. if ( jQuery.isFunction( value ) ) {
  6945. return this.each(function( j ) {
  6946. jQuery( this ).addClass( value.call( this, j, this.className ) );
  6947. });
  6948. }
  6949. if ( proceed ) {
  6950. // The disjunction here is for better compressibility (see removeClass)
  6951. classes = ( value || "" ).match( rnotwhite ) || [];
  6952. for ( ; i < len; i++ ) {
  6953. elem = this[ i ];
  6954. cur = elem.nodeType === 1 && ( elem.className ?
  6955. ( " " + elem.className + " " ).replace( rclass, " " ) :
  6956. " "
  6957. );
  6958. if ( cur ) {
  6959. j = 0;
  6960. while ( (clazz = classes[j++]) ) {
  6961. if ( cur.indexOf( " " + clazz + " " ) < 0 ) {
  6962. cur += clazz + " ";
  6963. }
  6964. }
  6965. // only assign if different to avoid unneeded rendering.
  6966. finalValue = jQuery.trim( cur );
  6967. if ( elem.className !== finalValue ) {
  6968. elem.className = finalValue;
  6969. }
  6970. }
  6971. }
  6972. }
  6973. return this;
  6974. },
  6975. removeClass: function( value ) {
  6976. var classes, elem, cur, clazz, j, finalValue,
  6977. i = 0,
  6978. len = this.length,
  6979. proceed = arguments.length === 0 || typeof value === "string" && value;
  6980. if ( jQuery.isFunction( value ) ) {
  6981. return this.each(function( j ) {
  6982. jQuery( this ).removeClass( value.call( this, j, this.className ) );
  6983. });
  6984. }
  6985. if ( proceed ) {
  6986. classes = ( value || "" ).match( rnotwhite ) || [];
  6987. for ( ; i < len; i++ ) {
  6988. elem = this[ i ];
  6989. // This expression is here for better compressibility (see addClass)
  6990. cur = elem.nodeType === 1 && ( elem.className ?
  6991. ( " " + elem.className + " " ).replace( rclass, " " ) :
  6992. ""
  6993. );
  6994. if ( cur ) {
  6995. j = 0;
  6996. while ( (clazz = classes[j++]) ) {
  6997. // Remove *all* instances
  6998. while ( cur.indexOf( " " + clazz + " " ) >= 0 ) {
  6999. cur = cur.replace( " " + clazz + " ", " " );
  7000. }
  7001. }
  7002. // only assign if different to avoid unneeded rendering.
  7003. finalValue = value ? jQuery.trim( cur ) : "";
  7004. if ( elem.className !== finalValue ) {
  7005. elem.className = finalValue;
  7006. }
  7007. }
  7008. }
  7009. }
  7010. return this;
  7011. },
  7012. toggleClass: function( value, stateVal ) {
  7013. var type = typeof value;
  7014. if ( typeof stateVal === "boolean" && type === "string" ) {
  7015. return stateVal ? this.addClass( value ) : this.removeClass( value );
  7016. }
  7017. if ( jQuery.isFunction( value ) ) {
  7018. return this.each(function( i ) {
  7019. jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal );
  7020. });
  7021. }
  7022. return this.each(function() {
  7023. if ( type === "string" ) {
  7024. // toggle individual class names
  7025. var className,
  7026. i = 0,
  7027. self = jQuery( this ),
  7028. classNames = value.match( rnotwhite ) || [];
  7029. while ( (className = classNames[ i++ ]) ) {
  7030. // check each className given, space separated list
  7031. if ( self.hasClass( className ) ) {
  7032. self.removeClass( className );
  7033. } else {
  7034. self.addClass( className );
  7035. }
  7036. }
  7037. // Toggle whole class name
  7038. } else if ( type === strundefined || type === "boolean" ) {
  7039. if ( this.className ) {
  7040. // store className if set
  7041. jQuery._data( this, "__className__", this.className );
  7042. }
  7043. // If the element has a class name or if we're passed "false",
  7044. // then remove the whole classname (if there was one, the above saved it).
  7045. // Otherwise bring back whatever was previously saved (if anything),
  7046. // falling back to the empty string if nothing was stored.
  7047. this.className = this.className || value === false ? "" : jQuery._data( this, "__className__" ) || "";
  7048. }
  7049. });
  7050. },
  7051. hasClass: function( selector ) {
  7052. var className = " " + selector + " ",
  7053. i = 0,
  7054. l = this.length;
  7055. for ( ; i < l; i++ ) {
  7056. if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) >= 0 ) {
  7057. return true;
  7058. }
  7059. }
  7060. return false;
  7061. }
  7062. });
  7063. // Return jQuery for attributes-only inclusion
  7064. jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +
  7065. "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
  7066. "change select submit keydown keypress keyup error contextmenu").split(" "), function( i, name ) {
  7067. // Handle event binding
  7068. jQuery.fn[ name ] = function( data, fn ) {
  7069. return arguments.length > 0 ?
  7070. this.on( name, null, data, fn ) :
  7071. this.trigger( name );
  7072. };
  7073. });
  7074. jQuery.fn.extend({
  7075. hover: function( fnOver, fnOut ) {
  7076. return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
  7077. },
  7078. bind: function( types, data, fn ) {
  7079. return this.on( types, null, data, fn );
  7080. },
  7081. unbind: function( types, fn ) {
  7082. return this.off( types, null, fn );
  7083. },
  7084. delegate: function( selector, types, data, fn ) {
  7085. return this.on( types, selector, data, fn );
  7086. },
  7087. undelegate: function( selector, types, fn ) {
  7088. // ( namespace ) or ( selector, types [, fn] )
  7089. return arguments.length === 1 ? this.off( selector, "**" ) : this.off( types, selector || "**", fn );
  7090. }
  7091. });
  7092. var nonce = jQuery.now();
  7093. var rquery = (/\?/);
  7094. var rvalidtokens = /(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;
  7095. jQuery.parseJSON = function( data ) {
  7096. // Attempt to parse using the native JSON parser first
  7097. if ( window.JSON && window.JSON.parse ) {
  7098. // Support: Android 2.3
  7099. // Workaround failure to string-cast null input
  7100. return window.JSON.parse( data + "" );
  7101. }
  7102. var requireNonComma,
  7103. depth = null,
  7104. str = jQuery.trim( data + "" );
  7105. // Guard against invalid (and possibly dangerous) input by ensuring that nothing remains
  7106. // after removing valid tokens
  7107. return str && !jQuery.trim( str.replace( rvalidtokens, function( token, comma, open, close ) {
  7108. // Force termination if we see a misplaced comma
  7109. if ( requireNonComma && comma ) {
  7110. depth = 0;
  7111. }
  7112. // Perform no more replacements after returning to outermost depth
  7113. if ( depth === 0 ) {
  7114. return token;
  7115. }
  7116. // Commas must not follow "[", "{", or ","
  7117. requireNonComma = open || comma;
  7118. // Determine new depth
  7119. // array/object open ("[" or "{"): depth += true - false (increment)
  7120. // array/object close ("]" or "}"): depth += false - true (decrement)
  7121. // other cases ("," or primitive): depth += true - true (numeric cast)
  7122. depth += !close - !open;
  7123. // Remove this token
  7124. return "";
  7125. }) ) ?
  7126. ( Function( "return " + str ) )() :
  7127. jQuery.error( "Invalid JSON: " + data );
  7128. };
  7129. // Cross-browser xml parsing
  7130. jQuery.parseXML = function( data ) {
  7131. var xml, tmp;
  7132. if ( !data || typeof data !== "string" ) {
  7133. return null;
  7134. }
  7135. try {
  7136. if ( window.DOMParser ) { // Standard
  7137. tmp = new DOMParser();
  7138. xml = tmp.parseFromString( data, "text/xml" );
  7139. } else { // IE
  7140. xml = new ActiveXObject( "Microsoft.XMLDOM" );
  7141. xml.async = "false";
  7142. xml.loadXML( data );
  7143. }
  7144. } catch( e ) {
  7145. xml = undefined;
  7146. }
  7147. if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) {
  7148. jQuery.error( "Invalid XML: " + data );
  7149. }
  7150. return xml;
  7151. };
  7152. var
  7153. // Document location
  7154. ajaxLocParts,
  7155. ajaxLocation,
  7156. rhash = /#.*$/,
  7157. rts = /([?&])_=[^&]*/,
  7158. rheaders = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg, // IE leaves an \r character at EOL
  7159. // #7653, #8125, #8152: local protocol detection
  7160. rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
  7161. rnoContent = /^(?:GET|HEAD)$/,
  7162. rprotocol = /^\/\//,
  7163. rurl = /^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,
  7164. /* Prefilters
  7165. * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
  7166. * 2) These are called:
  7167. * - BEFORE asking for a transport
  7168. * - AFTER param serialization (s.data is a string if s.processData is true)
  7169. * 3) key is the dataType
  7170. * 4) the catchall symbol "*" can be used
  7171. * 5) execution will start with transport dataType and THEN continue down to "*" if needed
  7172. */
  7173. prefilters = {},
  7174. /* Transports bindings
  7175. * 1) key is the dataType
  7176. * 2) the catchall symbol "*" can be used
  7177. * 3) selection will start with transport dataType and THEN go to "*" if needed
  7178. */
  7179. transports = {},
  7180. // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
  7181. allTypes = "*/".concat("*");
  7182. // #8138, IE may throw an exception when accessing
  7183. // a field from window.location if document.domain has been set
  7184. try {
  7185. ajaxLocation = location.href;
  7186. } catch( e ) {
  7187. // Use the href attribute of an A element
  7188. // since IE will modify it given document.location
  7189. ajaxLocation = document.createElement( "a" );
  7190. ajaxLocation.href = "";
  7191. ajaxLocation = ajaxLocation.href;
  7192. }
  7193. // Segment location into parts
  7194. ajaxLocParts = rurl.exec( ajaxLocation.toLowerCase() ) || [];
  7195. // Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
  7196. function addToPrefiltersOrTransports( structure ) {
  7197. // dataTypeExpression is optional and defaults to "*"
  7198. return function( dataTypeExpression, func ) {
  7199. if ( typeof dataTypeExpression !== "string" ) {
  7200. func = dataTypeExpression;
  7201. dataTypeExpression = "*";
  7202. }
  7203. var dataType,
  7204. i = 0,
  7205. dataTypes = dataTypeExpression.toLowerCase().match( rnotwhite ) || [];
  7206. if ( jQuery.isFunction( func ) ) {
  7207. // For each dataType in the dataTypeExpression
  7208. while ( (dataType = dataTypes[i++]) ) {
  7209. // Prepend if requested
  7210. if ( dataType.charAt( 0 ) === "+" ) {
  7211. dataType = dataType.slice( 1 ) || "*";
  7212. (structure[ dataType ] = structure[ dataType ] || []).unshift( func );
  7213. // Otherwise append
  7214. } else {
  7215. (structure[ dataType ] = structure[ dataType ] || []).push( func );
  7216. }
  7217. }
  7218. }
  7219. };
  7220. }
  7221. // Base inspection function for prefilters and transports
  7222. function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) {
  7223. var inspected = {},
  7224. seekingTransport = ( structure === transports );
  7225. function inspect( dataType ) {
  7226. var selected;
  7227. inspected[ dataType ] = true;
  7228. jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) {
  7229. var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR );
  7230. if ( typeof dataTypeOrTransport === "string" && !seekingTransport && !inspected[ dataTypeOrTransport ] ) {
  7231. options.dataTypes.unshift( dataTypeOrTransport );
  7232. inspect( dataTypeOrTransport );
  7233. return false;
  7234. } else if ( seekingTransport ) {
  7235. return !( selected = dataTypeOrTransport );
  7236. }
  7237. });
  7238. return selected;
  7239. }
  7240. return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" );
  7241. }
  7242. // A special extend for ajax options
  7243. // that takes "flat" options (not to be deep extended)
  7244. // Fixes #9887
  7245. function ajaxExtend( target, src ) {
  7246. var deep, key,
  7247. flatOptions = jQuery.ajaxSettings.flatOptions || {};
  7248. for ( key in src ) {
  7249. if ( src[ key ] !== undefined ) {
  7250. ( flatOptions[ key ] ? target : ( deep || (deep = {}) ) )[ key ] = src[ key ];
  7251. }
  7252. }
  7253. if ( deep ) {
  7254. jQuery.extend( true, target, deep );
  7255. }
  7256. return target;
  7257. }
  7258. /* Handles responses to an ajax request:
  7259. * - finds the right dataType (mediates between content-type and expected dataType)
  7260. * - returns the corresponding response
  7261. */
  7262. function ajaxHandleResponses( s, jqXHR, responses ) {
  7263. var firstDataType, ct, finalDataType, type,
  7264. contents = s.contents,
  7265. dataTypes = s.dataTypes;
  7266. // Remove auto dataType and get content-type in the process
  7267. while ( dataTypes[ 0 ] === "*" ) {
  7268. dataTypes.shift();
  7269. if ( ct === undefined ) {
  7270. ct = s.mimeType || jqXHR.getResponseHeader("Content-Type");
  7271. }
  7272. }
  7273. // Check if we're dealing with a known content-type
  7274. if ( ct ) {
  7275. for ( type in contents ) {
  7276. if ( contents[ type ] && contents[ type ].test( ct ) ) {
  7277. dataTypes.unshift( type );
  7278. break;
  7279. }
  7280. }
  7281. }
  7282. // Check to see if we have a response for the expected dataType
  7283. if ( dataTypes[ 0 ] in responses ) {
  7284. finalDataType = dataTypes[ 0 ];
  7285. } else {
  7286. // Try convertible dataTypes
  7287. for ( type in responses ) {
  7288. if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[0] ] ) {
  7289. finalDataType = type;
  7290. break;
  7291. }
  7292. if ( !firstDataType ) {
  7293. firstDataType = type;
  7294. }
  7295. }
  7296. // Or just use first one
  7297. finalDataType = finalDataType || firstDataType;
  7298. }
  7299. // If we found a dataType
  7300. // We add the dataType to the list if needed
  7301. // and return the corresponding response
  7302. if ( finalDataType ) {
  7303. if ( finalDataType !== dataTypes[ 0 ] ) {
  7304. dataTypes.unshift( finalDataType );
  7305. }
  7306. return responses[ finalDataType ];
  7307. }
  7308. }
  7309. /* Chain conversions given the request and the original response
  7310. * Also sets the responseXXX fields on the jqXHR instance
  7311. */
  7312. function ajaxConvert( s, response, jqXHR, isSuccess ) {
  7313. var conv2, current, conv, tmp, prev,
  7314. converters = {},
  7315. // Work with a copy of dataTypes in case we need to modify it for conversion
  7316. dataTypes = s.dataTypes.slice();
  7317. // Create converters map with lowercased keys
  7318. if ( dataTypes[ 1 ] ) {
  7319. for ( conv in s.converters ) {
  7320. converters[ conv.toLowerCase() ] = s.converters[ conv ];
  7321. }
  7322. }
  7323. current = dataTypes.shift();
  7324. // Convert to each sequential dataType
  7325. while ( current ) {
  7326. if ( s.responseFields[ current ] ) {
  7327. jqXHR[ s.responseFields[ current ] ] = response;
  7328. }
  7329. // Apply the dataFilter if provided
  7330. if ( !prev && isSuccess && s.dataFilter ) {
  7331. response = s.dataFilter( response, s.dataType );
  7332. }
  7333. prev = current;
  7334. current = dataTypes.shift();
  7335. if ( current ) {
  7336. // There's only work to do if current dataType is non-auto
  7337. if ( current === "*" ) {
  7338. current = prev;
  7339. // Convert response if prev dataType is non-auto and differs from current
  7340. } else if ( prev !== "*" && prev !== current ) {
  7341. // Seek a direct converter
  7342. conv = converters[ prev + " " + current ] || converters[ "* " + current ];
  7343. // If none found, seek a pair
  7344. if ( !conv ) {
  7345. for ( conv2 in converters ) {
  7346. // If conv2 outputs current
  7347. tmp = conv2.split( " " );
  7348. if ( tmp[ 1 ] === current ) {
  7349. // If prev can be converted to accepted input
  7350. conv = converters[ prev + " " + tmp[ 0 ] ] ||
  7351. converters[ "* " + tmp[ 0 ] ];
  7352. if ( conv ) {
  7353. // Condense equivalence converters
  7354. if ( conv === true ) {
  7355. conv = converters[ conv2 ];
  7356. // Otherwise, insert the intermediate dataType
  7357. } else if ( converters[ conv2 ] !== true ) {
  7358. current = tmp[ 0 ];
  7359. dataTypes.unshift( tmp[ 1 ] );
  7360. }
  7361. break;
  7362. }
  7363. }
  7364. }
  7365. }
  7366. // Apply converter (if not an equivalence)
  7367. if ( conv !== true ) {
  7368. // Unless errors are allowed to bubble, catch and return them
  7369. if ( conv && s[ "throws" ] ) {
  7370. response = conv( response );
  7371. } else {
  7372. try {
  7373. response = conv( response );
  7374. } catch ( e ) {
  7375. return { state: "parsererror", error: conv ? e : "No conversion from " + prev + " to " + current };
  7376. }
  7377. }
  7378. }
  7379. }
  7380. }
  7381. }
  7382. return { state: "success", data: response };
  7383. }
  7384. jQuery.extend({
  7385. // Counter for holding the number of active queries
  7386. active: 0,
  7387. // Last-Modified header cache for next request
  7388. lastModified: {},
  7389. etag: {},
  7390. ajaxSettings: {
  7391. url: ajaxLocation,
  7392. type: "GET",
  7393. isLocal: rlocalProtocol.test( ajaxLocParts[ 1 ] ),
  7394. global: true,
  7395. processData: true,
  7396. async: true,
  7397. contentType: "application/x-www-form-urlencoded; charset=UTF-8",
  7398. /*
  7399. timeout: 0,
  7400. data: null,
  7401. dataType: null,
  7402. username: null,
  7403. password: null,
  7404. cache: null,
  7405. throws: false,
  7406. traditional: false,
  7407. headers: {},
  7408. */
  7409. accepts: {
  7410. "*": allTypes,
  7411. text: "text/plain",
  7412. html: "text/html",
  7413. xml: "application/xml, text/xml",
  7414. json: "application/json, text/javascript"
  7415. },
  7416. contents: {
  7417. xml: /xml/,
  7418. html: /html/,
  7419. json: /json/
  7420. },
  7421. responseFields: {
  7422. xml: "responseXML",
  7423. text: "responseText",
  7424. json: "responseJSON"
  7425. },
  7426. // Data converters
  7427. // Keys separate source (or catchall "*") and destination types with a single space
  7428. converters: {
  7429. // Convert anything to text
  7430. "* text": String,
  7431. // Text to html (true = no transformation)
  7432. "text html": true,
  7433. // Evaluate text as a json expression
  7434. "text json": jQuery.parseJSON,
  7435. // Parse text as xml
  7436. "text xml": jQuery.parseXML
  7437. },
  7438. // For options that shouldn't be deep extended:
  7439. // you can add your own custom options here if
  7440. // and when you create one that shouldn't be
  7441. // deep extended (see ajaxExtend)
  7442. flatOptions: {
  7443. url: true,
  7444. context: true
  7445. }
  7446. },
  7447. // Creates a full fledged settings object into target
  7448. // with both ajaxSettings and settings fields.
  7449. // If target is omitted, writes into ajaxSettings.
  7450. ajaxSetup: function( target, settings ) {
  7451. return settings ?
  7452. // Building a settings object
  7453. ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) :
  7454. // Extending ajaxSettings
  7455. ajaxExtend( jQuery.ajaxSettings, target );
  7456. },
  7457. ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),
  7458. ajaxTransport: addToPrefiltersOrTransports( transports ),
  7459. // Main method
  7460. ajax: function( url, options ) {
  7461. // If url is an object, simulate pre-1.5 signature
  7462. if ( typeof url === "object" ) {
  7463. options = url;
  7464. url = undefined;
  7465. }
  7466. // Force options to be an object
  7467. options = options || {};
  7468. var // Cross-domain detection vars
  7469. parts,
  7470. // Loop variable
  7471. i,
  7472. // URL without anti-cache param
  7473. cacheURL,
  7474. // Response headers as string
  7475. responseHeadersString,
  7476. // timeout handle
  7477. timeoutTimer,
  7478. // To know if global events are to be dispatched
  7479. fireGlobals,
  7480. transport,
  7481. // Response headers
  7482. responseHeaders,
  7483. // Create the final options object
  7484. s = jQuery.ajaxSetup( {}, options ),
  7485. // Callbacks context
  7486. callbackContext = s.context || s,
  7487. // Context for global events is callbackContext if it is a DOM node or jQuery collection
  7488. globalEventContext = s.context && ( callbackContext.nodeType || callbackContext.jquery ) ?
  7489. jQuery( callbackContext ) :
  7490. jQuery.event,
  7491. // Deferreds
  7492. deferred = jQuery.Deferred(),
  7493. completeDeferred = jQuery.Callbacks("once memory"),
  7494. // Status-dependent callbacks
  7495. statusCode = s.statusCode || {},
  7496. // Headers (they are sent all at once)
  7497. requestHeaders = {},
  7498. requestHeadersNames = {},
  7499. // The jqXHR state
  7500. state = 0,
  7501. // Default abort message
  7502. strAbort = "canceled",
  7503. // Fake xhr
  7504. jqXHR = {
  7505. readyState: 0,
  7506. // Builds headers hashtable if needed
  7507. getResponseHeader: function( key ) {
  7508. var match;
  7509. if ( state === 2 ) {
  7510. if ( !responseHeaders ) {
  7511. responseHeaders = {};
  7512. while ( (match = rheaders.exec( responseHeadersString )) ) {
  7513. responseHeaders[ match[1].toLowerCase() ] = match[ 2 ];
  7514. }
  7515. }
  7516. match = responseHeaders[ key.toLowerCase() ];
  7517. }
  7518. return match == null ? null : match;
  7519. },
  7520. // Raw string
  7521. getAllResponseHeaders: function() {
  7522. return state === 2 ? responseHeadersString : null;
  7523. },
  7524. // Caches the header
  7525. setRequestHeader: function( name, value ) {
  7526. var lname = name.toLowerCase();
  7527. if ( !state ) {
  7528. name = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name;
  7529. requestHeaders[ name ] = value;
  7530. }
  7531. return this;
  7532. },
  7533. // Overrides response content-type header
  7534. overrideMimeType: function( type ) {
  7535. if ( !state ) {
  7536. s.mimeType = type;
  7537. }
  7538. return this;
  7539. },
  7540. // Status-dependent callbacks
  7541. statusCode: function( map ) {
  7542. var code;
  7543. if ( map ) {
  7544. if ( state < 2 ) {
  7545. for ( code in map ) {
  7546. // Lazy-add the new callback in a way that preserves old ones
  7547. statusCode[ code ] = [ statusCode[ code ], map[ code ] ];
  7548. }
  7549. } else {
  7550. // Execute the appropriate callbacks
  7551. jqXHR.always( map[ jqXHR.status ] );
  7552. }
  7553. }
  7554. return this;
  7555. },
  7556. // Cancel the request
  7557. abort: function( statusText ) {
  7558. var finalText = statusText || strAbort;
  7559. if ( transport ) {
  7560. transport.abort( finalText );
  7561. }
  7562. done( 0, finalText );
  7563. return this;
  7564. }
  7565. };
  7566. // Attach deferreds
  7567. deferred.promise( jqXHR ).complete = completeDeferred.add;
  7568. jqXHR.success = jqXHR.done;
  7569. jqXHR.error = jqXHR.fail;
  7570. // Remove hash character (#7531: and string promotion)
  7571. // Add protocol if not provided (#5866: IE7 issue with protocol-less urls)
  7572. // Handle falsy url in the settings object (#10093: consistency with old signature)
  7573. // We also use the url parameter if available
  7574. s.url = ( ( url || s.url || ajaxLocation ) + "" ).replace( rhash, "" ).replace( rprotocol, ajaxLocParts[ 1 ] + "//" );
  7575. // Alias method option to type as per ticket #12004
  7576. s.type = options.method || options.type || s.method || s.type;
  7577. // Extract dataTypes list
  7578. s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().match( rnotwhite ) || [ "" ];
  7579. // A cross-domain request is in order when we have a protocol:host:port mismatch
  7580. if ( s.crossDomain == null ) {
  7581. parts = rurl.exec( s.url.toLowerCase() );
  7582. s.crossDomain = !!( parts &&
  7583. ( parts[ 1 ] !== ajaxLocParts[ 1 ] || parts[ 2 ] !== ajaxLocParts[ 2 ] ||
  7584. ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? "80" : "443" ) ) !==
  7585. ( ajaxLocParts[ 3 ] || ( ajaxLocParts[ 1 ] === "http:" ? "80" : "443" ) ) )
  7586. );
  7587. }
  7588. // Convert data if not already a string
  7589. if ( s.data && s.processData && typeof s.data !== "string" ) {
  7590. s.data = jQuery.param( s.data, s.traditional );
  7591. }
  7592. // Apply prefilters
  7593. inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );
  7594. // If request was aborted inside a prefilter, stop there
  7595. if ( state === 2 ) {
  7596. return jqXHR;
  7597. }
  7598. // We can fire global events as of now if asked to
  7599. // Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118)
  7600. fireGlobals = jQuery.event && s.global;
  7601. // Watch for a new set of requests
  7602. if ( fireGlobals && jQuery.active++ === 0 ) {
  7603. jQuery.event.trigger("ajaxStart");
  7604. }
  7605. // Uppercase the type
  7606. s.type = s.type.toUpperCase();
  7607. // Determine if request has content
  7608. s.hasContent = !rnoContent.test( s.type );
  7609. // Save the URL in case we're toying with the If-Modified-Since
  7610. // and/or If-None-Match header later on
  7611. cacheURL = s.url;
  7612. // More options handling for requests with no content
  7613. if ( !s.hasContent ) {
  7614. // If data is available, append data to url
  7615. if ( s.data ) {
  7616. cacheURL = ( s.url += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data );
  7617. // #9682: remove data so that it's not used in an eventual retry
  7618. delete s.data;
  7619. }
  7620. // Add anti-cache in url if needed
  7621. if ( s.cache === false ) {
  7622. s.url = rts.test( cacheURL ) ?
  7623. // If there is already a '_' parameter, set its value
  7624. cacheURL.replace( rts, "$1_=" + nonce++ ) :
  7625. // Otherwise add one to the end
  7626. cacheURL + ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + nonce++;
  7627. }
  7628. }
  7629. // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
  7630. if ( s.ifModified ) {
  7631. if ( jQuery.lastModified[ cacheURL ] ) {
  7632. jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] );
  7633. }
  7634. if ( jQuery.etag[ cacheURL ] ) {
  7635. jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] );
  7636. }
  7637. }
  7638. // Set the correct header, if data is being sent
  7639. if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
  7640. jqXHR.setRequestHeader( "Content-Type", s.contentType );
  7641. }
  7642. // Set the Accepts header for the server, depending on the dataType
  7643. jqXHR.setRequestHeader(
  7644. "Accept",
  7645. s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[0] ] ?
  7646. s.accepts[ s.dataTypes[0] ] + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
  7647. s.accepts[ "*" ]
  7648. );
  7649. // Check for headers option
  7650. for ( i in s.headers ) {
  7651. jqXHR.setRequestHeader( i, s.headers[ i ] );
  7652. }
  7653. // Allow custom headers/mimetypes and early abort
  7654. if ( s.beforeSend && ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) {
  7655. // Abort if not done already and return
  7656. return jqXHR.abort();
  7657. }
  7658. // aborting is no longer a cancellation
  7659. strAbort = "abort";
  7660. // Install callbacks on deferreds
  7661. for ( i in { success: 1, error: 1, complete: 1 } ) {
  7662. jqXHR[ i ]( s[ i ] );
  7663. }
  7664. // Get transport
  7665. transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );
  7666. // If no transport, we auto-abort
  7667. if ( !transport ) {
  7668. done( -1, "No Transport" );
  7669. } else {
  7670. jqXHR.readyState = 1;
  7671. // Send global event
  7672. if ( fireGlobals ) {
  7673. globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );
  7674. }
  7675. // Timeout
  7676. if ( s.async && s.timeout > 0 ) {
  7677. timeoutTimer = setTimeout(function() {
  7678. jqXHR.abort("timeout");
  7679. }, s.timeout );
  7680. }
  7681. try {
  7682. state = 1;
  7683. transport.send( requestHeaders, done );
  7684. } catch ( e ) {
  7685. // Propagate exception as error if not done
  7686. if ( state < 2 ) {
  7687. done( -1, e );
  7688. // Simply rethrow otherwise
  7689. } else {
  7690. throw e;
  7691. }
  7692. }
  7693. }
  7694. // Callback for when everything is done
  7695. function done( status, nativeStatusText, responses, headers ) {
  7696. var isSuccess, success, error, response, modified,
  7697. statusText = nativeStatusText;
  7698. // Called once
  7699. if ( state === 2 ) {
  7700. return;
  7701. }
  7702. // State is "done" now
  7703. state = 2;
  7704. // Clear timeout if it exists
  7705. if ( timeoutTimer ) {
  7706. clearTimeout( timeoutTimer );
  7707. }
  7708. // Dereference transport for early garbage collection
  7709. // (no matter how long the jqXHR object will be used)
  7710. transport = undefined;
  7711. // Cache response headers
  7712. responseHeadersString = headers || "";
  7713. // Set readyState
  7714. jqXHR.readyState = status > 0 ? 4 : 0;
  7715. // Determine if successful
  7716. isSuccess = status >= 200 && status < 300 || status === 304;
  7717. // Get response data
  7718. if ( responses ) {
  7719. response = ajaxHandleResponses( s, jqXHR, responses );
  7720. }
  7721. // Convert no matter what (that way responseXXX fields are always set)
  7722. response = ajaxConvert( s, response, jqXHR, isSuccess );
  7723. // If successful, handle type chaining
  7724. if ( isSuccess ) {
  7725. // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
  7726. if ( s.ifModified ) {
  7727. modified = jqXHR.getResponseHeader("Last-Modified");
  7728. if ( modified ) {
  7729. jQuery.lastModified[ cacheURL ] = modified;
  7730. }
  7731. modified = jqXHR.getResponseHeader("etag");
  7732. if ( modified ) {
  7733. jQuery.etag[ cacheURL ] = modified;
  7734. }
  7735. }
  7736. // if no content
  7737. if ( status === 204 || s.type === "HEAD" ) {
  7738. statusText = "nocontent";
  7739. // if not modified
  7740. } else if ( status === 304 ) {
  7741. statusText = "notmodified";
  7742. // If we have data, let's convert it
  7743. } else {
  7744. statusText = response.state;
  7745. success = response.data;
  7746. error = response.error;
  7747. isSuccess = !error;
  7748. }
  7749. } else {
  7750. // We extract error from statusText
  7751. // then normalize statusText and status for non-aborts
  7752. error = statusText;
  7753. if ( status || !statusText ) {
  7754. statusText = "error";
  7755. if ( status < 0 ) {
  7756. status = 0;
  7757. }
  7758. }
  7759. }
  7760. // Set data for the fake xhr object
  7761. jqXHR.status = status;
  7762. jqXHR.statusText = ( nativeStatusText || statusText ) + "";
  7763. // Success/Error
  7764. if ( isSuccess ) {
  7765. deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
  7766. } else {
  7767. deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
  7768. }
  7769. // Status-dependent callbacks
  7770. jqXHR.statusCode( statusCode );
  7771. statusCode = undefined;
  7772. if ( fireGlobals ) {
  7773. globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError",
  7774. [ jqXHR, s, isSuccess ? success : error ] );
  7775. }
  7776. // Complete
  7777. completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );
  7778. if ( fireGlobals ) {
  7779. globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );
  7780. // Handle the global AJAX counter
  7781. if ( !( --jQuery.active ) ) {
  7782. jQuery.event.trigger("ajaxStop");
  7783. }
  7784. }
  7785. }
  7786. return jqXHR;
  7787. },
  7788. getJSON: function( url, data, callback ) {
  7789. return jQuery.get( url, data, callback, "json" );
  7790. },
  7791. getScript: function( url, callback ) {
  7792. return jQuery.get( url, undefined, callback, "script" );
  7793. }
  7794. });
  7795. jQuery.each( [ "get", "post" ], function( i, method ) {
  7796. jQuery[ method ] = function( url, data, callback, type ) {
  7797. // shift arguments if data argument was omitted
  7798. if ( jQuery.isFunction( data ) ) {
  7799. type = type || callback;
  7800. callback = data;
  7801. data = undefined;
  7802. }
  7803. return jQuery.ajax({
  7804. url: url,
  7805. type: method,
  7806. dataType: type,
  7807. data: data,
  7808. success: callback
  7809. });
  7810. };
  7811. });
  7812. jQuery._evalUrl = function( url ) {
  7813. return jQuery.ajax({
  7814. url: url,
  7815. type: "GET",
  7816. dataType: "script",
  7817. async: false,
  7818. global: false,
  7819. "throws": true
  7820. });
  7821. };
  7822. jQuery.fn.extend({
  7823. wrapAll: function( html ) {
  7824. if ( jQuery.isFunction( html ) ) {
  7825. return this.each(function(i) {
  7826. jQuery(this).wrapAll( html.call(this, i) );
  7827. });
  7828. }
  7829. if ( this[0] ) {
  7830. // The elements to wrap the target around
  7831. var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true);
  7832. if ( this[0].parentNode ) {
  7833. wrap.insertBefore( this[0] );
  7834. }
  7835. wrap.map(function() {
  7836. var elem = this;
  7837. while ( elem.firstChild && elem.firstChild.nodeType === 1 ) {
  7838. elem = elem.firstChild;
  7839. }
  7840. return elem;
  7841. }).append( this );
  7842. }
  7843. return this;
  7844. },
  7845. wrapInner: function( html ) {
  7846. if ( jQuery.isFunction( html ) ) {
  7847. return this.each(function(i) {
  7848. jQuery(this).wrapInner( html.call(this, i) );
  7849. });
  7850. }
  7851. return this.each(function() {
  7852. var self = jQuery( this ),
  7853. contents = self.contents();
  7854. if ( contents.length ) {
  7855. contents.wrapAll( html );
  7856. } else {
  7857. self.append( html );
  7858. }
  7859. });
  7860. },
  7861. wrap: function( html ) {
  7862. var isFunction = jQuery.isFunction( html );
  7863. return this.each(function(i) {
  7864. jQuery( this ).wrapAll( isFunction ? html.call(this, i) : html );
  7865. });
  7866. },
  7867. unwrap: function() {
  7868. return this.parent().each(function() {
  7869. if ( !jQuery.nodeName( this, "body" ) ) {
  7870. jQuery( this ).replaceWith( this.childNodes );
  7871. }
  7872. }).end();
  7873. }
  7874. });
  7875. jQuery.expr.filters.hidden = function( elem ) {
  7876. // Support: Opera <= 12.12
  7877. // Opera reports offsetWidths and offsetHeights less than zero on some elements
  7878. return elem.offsetWidth <= 0 && elem.offsetHeight <= 0 ||
  7879. (!support.reliableHiddenOffsets() &&
  7880. ((elem.style && elem.style.display) || jQuery.css( elem, "display" )) === "none");
  7881. };
  7882. jQuery.expr.filters.visible = function( elem ) {
  7883. return !jQuery.expr.filters.hidden( elem );
  7884. };
  7885. var r20 = /%20/g,
  7886. rbracket = /\[\]$/,
  7887. rCRLF = /\r?\n/g,
  7888. rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i,
  7889. rsubmittable = /^(?:input|select|textarea|keygen)/i;
  7890. function buildParams( prefix, obj, traditional, add ) {
  7891. var name;
  7892. if ( jQuery.isArray( obj ) ) {
  7893. // Serialize array item.
  7894. jQuery.each( obj, function( i, v ) {
  7895. if ( traditional || rbracket.test( prefix ) ) {
  7896. // Treat each array item as a scalar.
  7897. add( prefix, v );
  7898. } else {
  7899. // Item is non-scalar (array or object), encode its numeric index.
  7900. buildParams( prefix + "[" + ( typeof v === "object" ? i : "" ) + "]", v, traditional, add );
  7901. }
  7902. });
  7903. } else if ( !traditional && jQuery.type( obj ) === "object" ) {
  7904. // Serialize object item.
  7905. for ( name in obj ) {
  7906. buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
  7907. }
  7908. } else {
  7909. // Serialize scalar item.
  7910. add( prefix, obj );
  7911. }
  7912. }
  7913. // Serialize an array of form elements or a set of
  7914. // key/values into a query string
  7915. jQuery.param = function( a, traditional ) {
  7916. var prefix,
  7917. s = [],
  7918. add = function( key, value ) {
  7919. // If value is a function, invoke it and return its value
  7920. value = jQuery.isFunction( value ) ? value() : ( value == null ? "" : value );
  7921. s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value );
  7922. };
  7923. // Set traditional to true for jQuery <= 1.3.2 behavior.
  7924. if ( traditional === undefined ) {
  7925. traditional = jQuery.ajaxSettings && jQuery.ajaxSettings.traditional;
  7926. }
  7927. // If an array was passed in, assume that it is an array of form elements.
  7928. if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
  7929. // Serialize the form elements
  7930. jQuery.each( a, function() {
  7931. add( this.name, this.value );
  7932. });
  7933. } else {
  7934. // If traditional, encode the "old" way (the way 1.3.2 or older
  7935. // did it), otherwise encode params recursively.
  7936. for ( prefix in a ) {
  7937. buildParams( prefix, a[ prefix ], traditional, add );
  7938. }
  7939. }
  7940. // Return the resulting serialization
  7941. return s.join( "&" ).replace( r20, "+" );
  7942. };
  7943. jQuery.fn.extend({
  7944. serialize: function() {
  7945. return jQuery.param( this.serializeArray() );
  7946. },
  7947. serializeArray: function() {
  7948. return this.map(function() {
  7949. // Can add propHook for "elements" to filter or add form elements
  7950. var elements = jQuery.prop( this, "elements" );
  7951. return elements ? jQuery.makeArray( elements ) : this;
  7952. })
  7953. .filter(function() {
  7954. var type = this.type;
  7955. // Use .is(":disabled") so that fieldset[disabled] works
  7956. return this.name && !jQuery( this ).is( ":disabled" ) &&
  7957. rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) &&
  7958. ( this.checked || !rcheckableType.test( type ) );
  7959. })
  7960. .map(function( i, elem ) {
  7961. var val = jQuery( this ).val();
  7962. return val == null ?
  7963. null :
  7964. jQuery.isArray( val ) ?
  7965. jQuery.map( val, function( val ) {
  7966. return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
  7967. }) :
  7968. { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
  7969. }).get();
  7970. }
  7971. });
  7972. // Create the request object
  7973. // (This is still attached to ajaxSettings for backward compatibility)
  7974. jQuery.ajaxSettings.xhr = window.ActiveXObject !== undefined ?
  7975. // Support: IE6+
  7976. function() {
  7977. // XHR cannot access local files, always use ActiveX for that case
  7978. return !this.isLocal &&
  7979. // Support: IE7-8
  7980. // oldIE XHR does not support non-RFC2616 methods (#13240)
  7981. // See http://msdn.microsoft.com/en-us/library/ie/ms536648(v=vs.85).aspx
  7982. // and http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9
  7983. // Although this check for six methods instead of eight
  7984. // since IE also does not support "trace" and "connect"
  7985. /^(get|post|head|put|delete|options)$/i.test( this.type ) &&
  7986. createStandardXHR() || createActiveXHR();
  7987. } :
  7988. // For all other browsers, use the standard XMLHttpRequest object
  7989. createStandardXHR;
  7990. var xhrId = 0,
  7991. xhrCallbacks = {},
  7992. xhrSupported = jQuery.ajaxSettings.xhr();
  7993. // Support: IE<10
  7994. // Open requests must be manually aborted on unload (#5280)
  7995. // See https://support.microsoft.com/kb/2856746 for more info
  7996. if ( window.attachEvent ) {
  7997. window.attachEvent( "onunload", function() {
  7998. for ( var key in xhrCallbacks ) {
  7999. xhrCallbacks[ key ]( undefined, true );
  8000. }
  8001. });
  8002. }
  8003. // Determine support properties
  8004. support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported );
  8005. xhrSupported = support.ajax = !!xhrSupported;
  8006. // Create transport if the browser can provide an xhr
  8007. if ( xhrSupported ) {
  8008. jQuery.ajaxTransport(function( options ) {
  8009. // Cross domain only allowed if supported through XMLHttpRequest
  8010. if ( !options.crossDomain || support.cors ) {
  8011. var callback;
  8012. return {
  8013. send: function( headers, complete ) {
  8014. var i,
  8015. xhr = options.xhr(),
  8016. id = ++xhrId;
  8017. // Open the socket
  8018. xhr.open( options.type, options.url, options.async, options.username, options.password );
  8019. // Apply custom fields if provided
  8020. if ( options.xhrFields ) {
  8021. for ( i in options.xhrFields ) {
  8022. xhr[ i ] = options.xhrFields[ i ];
  8023. }
  8024. }
  8025. // Override mime type if needed
  8026. if ( options.mimeType && xhr.overrideMimeType ) {
  8027. xhr.overrideMimeType( options.mimeType );
  8028. }
  8029. // X-Requested-With header
  8030. // For cross-domain requests, seeing as conditions for a preflight are
  8031. // akin to a jigsaw puzzle, we simply never set it to be sure.
  8032. // (it can always be set on a per-request basis or even using ajaxSetup)
  8033. // For same-domain requests, won't change header if already provided.
  8034. if ( !options.crossDomain && !headers["X-Requested-With"] ) {
  8035. headers["X-Requested-With"] = "XMLHttpRequest";
  8036. }
  8037. // Set headers
  8038. for ( i in headers ) {
  8039. // Support: IE<9
  8040. // IE's ActiveXObject throws a 'Type Mismatch' exception when setting
  8041. // request header to a null-value.
  8042. //
  8043. // To keep consistent with other XHR implementations, cast the value
  8044. // to string and ignore `undefined`.
  8045. if ( headers[ i ] !== undefined ) {
  8046. xhr.setRequestHeader( i, headers[ i ] + "" );
  8047. }
  8048. }
  8049. // Do send the request
  8050. // This may raise an exception which is actually
  8051. // handled in jQuery.ajax (so no try/catch here)
  8052. xhr.send( ( options.hasContent && options.data ) || null );
  8053. // Listener
  8054. callback = function( _, isAbort ) {
  8055. var status, statusText, responses;
  8056. // Was never called and is aborted or complete
  8057. if ( callback && ( isAbort || xhr.readyState === 4 ) ) {
  8058. // Clean up
  8059. delete xhrCallbacks[ id ];
  8060. callback = undefined;
  8061. xhr.onreadystatechange = jQuery.noop;
  8062. // Abort manually if needed
  8063. if ( isAbort ) {
  8064. if ( xhr.readyState !== 4 ) {
  8065. xhr.abort();
  8066. }
  8067. } else {
  8068. responses = {};
  8069. status = xhr.status;
  8070. // Support: IE<10
  8071. // Accessing binary-data responseText throws an exception
  8072. // (#11426)
  8073. if ( typeof xhr.responseText === "string" ) {
  8074. responses.text = xhr.responseText;
  8075. }
  8076. // Firefox throws an exception when accessing
  8077. // statusText for faulty cross-domain requests
  8078. try {
  8079. statusText = xhr.statusText;
  8080. } catch( e ) {
  8081. // We normalize with Webkit giving an empty statusText
  8082. statusText = "";
  8083. }
  8084. // Filter status for non standard behaviors
  8085. // If the request is local and we have data: assume a success
  8086. // (success with no data won't get notified, that's the best we
  8087. // can do given current implementations)
  8088. if ( !status && options.isLocal && !options.crossDomain ) {
  8089. status = responses.text ? 200 : 404;
  8090. // IE - #1450: sometimes returns 1223 when it should be 204
  8091. } else if ( status === 1223 ) {
  8092. status = 204;
  8093. }
  8094. }
  8095. }
  8096. // Call complete if needed
  8097. if ( responses ) {
  8098. complete( status, statusText, responses, xhr.getAllResponseHeaders() );
  8099. }
  8100. };
  8101. if ( !options.async ) {
  8102. // if we're in sync mode we fire the callback
  8103. callback();
  8104. } else if ( xhr.readyState === 4 ) {
  8105. // (IE6 & IE7) if it's in cache and has been
  8106. // retrieved directly we need to fire the callback
  8107. setTimeout( callback );
  8108. } else {
  8109. // Add to the list of active xhr callbacks
  8110. xhr.onreadystatechange = xhrCallbacks[ id ] = callback;
  8111. }
  8112. },
  8113. abort: function() {
  8114. if ( callback ) {
  8115. callback( undefined, true );
  8116. }
  8117. }
  8118. };
  8119. }
  8120. });
  8121. }
  8122. // Functions to create xhrs
  8123. function createStandardXHR() {
  8124. try {
  8125. return new window.XMLHttpRequest();
  8126. } catch( e ) {}
  8127. }
  8128. function createActiveXHR() {
  8129. try {
  8130. return new window.ActiveXObject( "Microsoft.XMLHTTP" );
  8131. } catch( e ) {}
  8132. }
  8133. // Install script dataType
  8134. jQuery.ajaxSetup({
  8135. accepts: {
  8136. script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
  8137. },
  8138. contents: {
  8139. script: /(?:java|ecma)script/
  8140. },
  8141. converters: {
  8142. "text script": function( text ) {
  8143. jQuery.globalEval( text );
  8144. return text;
  8145. }
  8146. }
  8147. });
  8148. // Handle cache's special case and global
  8149. jQuery.ajaxPrefilter( "script", function( s ) {
  8150. if ( s.cache === undefined ) {
  8151. s.cache = false;
  8152. }
  8153. if ( s.crossDomain ) {
  8154. s.type = "GET";
  8155. s.global = false;
  8156. }
  8157. });
  8158. // Bind script tag hack transport
  8159. jQuery.ajaxTransport( "script", function(s) {
  8160. // This transport only deals with cross domain requests
  8161. if ( s.crossDomain ) {
  8162. var script,
  8163. head = document.head || jQuery("head")[0] || document.documentElement;
  8164. return {
  8165. send: function( _, callback ) {
  8166. script = document.createElement("script");
  8167. script.async = true;
  8168. if ( s.scriptCharset ) {
  8169. script.charset = s.scriptCharset;
  8170. }
  8171. script.src = s.url;
  8172. // Attach handlers for all browsers
  8173. script.onload = script.onreadystatechange = function( _, isAbort ) {
  8174. if ( isAbort || !script.readyState || /loaded|complete/.test( script.readyState ) ) {
  8175. // Handle memory leak in IE
  8176. script.onload = script.onreadystatechange = null;
  8177. // Remove the script
  8178. if ( script.parentNode ) {
  8179. script.parentNode.removeChild( script );
  8180. }
  8181. // Dereference the script
  8182. script = null;
  8183. // Callback if not abort
  8184. if ( !isAbort ) {
  8185. callback( 200, "success" );
  8186. }
  8187. }
  8188. };
  8189. // Circumvent IE6 bugs with base elements (#2709 and #4378) by prepending
  8190. // Use native DOM manipulation to avoid our domManip AJAX trickery
  8191. head.insertBefore( script, head.firstChild );
  8192. },
  8193. abort: function() {
  8194. if ( script ) {
  8195. script.onload( undefined, true );
  8196. }
  8197. }
  8198. };
  8199. }
  8200. });
  8201. var oldCallbacks = [],
  8202. rjsonp = /(=)\?(?=&|$)|\?\?/;
  8203. // Default jsonp settings
  8204. jQuery.ajaxSetup({
  8205. jsonp: "callback",
  8206. jsonpCallback: function() {
  8207. var callback = oldCallbacks.pop() || ( jQuery.expando + "_" + ( nonce++ ) );
  8208. this[ callback ] = true;
  8209. return callback;
  8210. }
  8211. });
  8212. // Detect, normalize options and install callbacks for jsonp requests
  8213. jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
  8214. var callbackName, overwritten, responseContainer,
  8215. jsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ?
  8216. "url" :
  8217. typeof s.data === "string" && !( s.contentType || "" ).indexOf("application/x-www-form-urlencoded") && rjsonp.test( s.data ) && "data"
  8218. );
  8219. // Handle iff the expected data type is "jsonp" or we have a parameter to set
  8220. if ( jsonProp || s.dataTypes[ 0 ] === "jsonp" ) {
  8221. // Get callback name, remembering preexisting value associated with it
  8222. callbackName = s.jsonpCallback = jQuery.isFunction( s.jsonpCallback ) ?
  8223. s.jsonpCallback() :
  8224. s.jsonpCallback;
  8225. // Insert callback into url or form data
  8226. if ( jsonProp ) {
  8227. s[ jsonProp ] = s[ jsonProp ].replace( rjsonp, "$1" + callbackName );
  8228. } else if ( s.jsonp !== false ) {
  8229. s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.jsonp + "=" + callbackName;
  8230. }
  8231. // Use data converter to retrieve json after script execution
  8232. s.converters["script json"] = function() {
  8233. if ( !responseContainer ) {
  8234. jQuery.error( callbackName + " was not called" );
  8235. }
  8236. return responseContainer[ 0 ];
  8237. };
  8238. // force json dataType
  8239. s.dataTypes[ 0 ] = "json";
  8240. // Install callback
  8241. overwritten = window[ callbackName ];
  8242. window[ callbackName ] = function() {
  8243. responseContainer = arguments;
  8244. };
  8245. // Clean-up function (fires after converters)
  8246. jqXHR.always(function() {
  8247. // Restore preexisting value
  8248. window[ callbackName ] = overwritten;
  8249. // Save back as free
  8250. if ( s[ callbackName ] ) {
  8251. // make sure that re-using the options doesn't screw things around
  8252. s.jsonpCallback = originalSettings.jsonpCallback;
  8253. // save the callback name for future use
  8254. oldCallbacks.push( callbackName );
  8255. }
  8256. // Call if it was a function and we have a response
  8257. if ( responseContainer && jQuery.isFunction( overwritten ) ) {
  8258. overwritten( responseContainer[ 0 ] );
  8259. }
  8260. responseContainer = overwritten = undefined;
  8261. });
  8262. // Delegate to script
  8263. return "script";
  8264. }
  8265. });
  8266. // data: string of html
  8267. // context (optional): If specified, the fragment will be created in this context, defaults to document
  8268. // keepScripts (optional): If true, will include scripts passed in the html string
  8269. jQuery.parseHTML = function( data, context, keepScripts ) {
  8270. if ( !data || typeof data !== "string" ) {
  8271. return null;
  8272. }
  8273. if ( typeof context === "boolean" ) {
  8274. keepScripts = context;
  8275. context = false;
  8276. }
  8277. context = context || document;
  8278. var parsed = rsingleTag.exec( data ),
  8279. scripts = !keepScripts && [];
  8280. // Single tag
  8281. if ( parsed ) {
  8282. return [ context.createElement( parsed[1] ) ];
  8283. }
  8284. parsed = jQuery.buildFragment( [ data ], context, scripts );
  8285. if ( scripts && scripts.length ) {
  8286. jQuery( scripts ).remove();
  8287. }
  8288. return jQuery.merge( [], parsed.childNodes );
  8289. };
  8290. // Keep a copy of the old load method
  8291. var _load = jQuery.fn.load;
  8292. /**
  8293. * Load a url into a page
  8294. */
  8295. jQuery.fn.load = function( url, params, callback ) {
  8296. if ( typeof url !== "string" && _load ) {
  8297. return _load.apply( this, arguments );
  8298. }
  8299. var selector, response, type,
  8300. self = this,
  8301. off = url.indexOf(" ");
  8302. if ( off >= 0 ) {
  8303. selector = jQuery.trim( url.slice( off, url.length ) );
  8304. url = url.slice( 0, off );
  8305. }
  8306. // If it's a function
  8307. if ( jQuery.isFunction( params ) ) {
  8308. // We assume that it's the callback
  8309. callback = params;
  8310. params = undefined;
  8311. // Otherwise, build a param string
  8312. } else if ( params && typeof params === "object" ) {
  8313. type = "POST";
  8314. }
  8315. // If we have elements to modify, make the request
  8316. if ( self.length > 0 ) {
  8317. jQuery.ajax({
  8318. url: url,
  8319. // if "type" variable is undefined, then "GET" method will be used
  8320. type: type,
  8321. dataType: "html",
  8322. data: params
  8323. }).done(function( responseText ) {
  8324. // Save response for use in complete callback
  8325. response = arguments;
  8326. self.html( selector ?
  8327. // If a selector was specified, locate the right elements in a dummy div
  8328. // Exclude scripts to avoid IE 'Permission Denied' errors
  8329. jQuery("<div>").append( jQuery.parseHTML( responseText ) ).find( selector ) :
  8330. // Otherwise use the full result
  8331. responseText );
  8332. }).complete( callback && function( jqXHR, status ) {
  8333. self.each( callback, response || [ jqXHR.responseText, status, jqXHR ] );
  8334. });
  8335. }
  8336. return this;
  8337. };
  8338. // Attach a bunch of functions for handling common AJAX events
  8339. jQuery.each( [ "ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend" ], function( i, type ) {
  8340. jQuery.fn[ type ] = function( fn ) {
  8341. return this.on( type, fn );
  8342. };
  8343. });
  8344. jQuery.expr.filters.animated = function( elem ) {
  8345. return jQuery.grep(jQuery.timers, function( fn ) {
  8346. return elem === fn.elem;
  8347. }).length;
  8348. };
  8349. var docElem = window.document.documentElement;
  8350. /**
  8351. * Gets a window from an element
  8352. */
  8353. function getWindow( elem ) {
  8354. return jQuery.isWindow( elem ) ?
  8355. elem :
  8356. elem.nodeType === 9 ?
  8357. elem.defaultView || elem.parentWindow :
  8358. false;
  8359. }
  8360. jQuery.offset = {
  8361. setOffset: function( elem, options, i ) {
  8362. var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
  8363. position = jQuery.css( elem, "position" ),
  8364. curElem = jQuery( elem ),
  8365. props = {};
  8366. // set position first, in-case top/left are set even on static elem
  8367. if ( position === "static" ) {
  8368. elem.style.position = "relative";
  8369. }
  8370. curOffset = curElem.offset();
  8371. curCSSTop = jQuery.css( elem, "top" );
  8372. curCSSLeft = jQuery.css( elem, "left" );
  8373. calculatePosition = ( position === "absolute" || position === "fixed" ) &&
  8374. jQuery.inArray("auto", [ curCSSTop, curCSSLeft ] ) > -1;
  8375. // need to be able to calculate position if either top or left is auto and position is either absolute or fixed
  8376. if ( calculatePosition ) {
  8377. curPosition = curElem.position();
  8378. curTop = curPosition.top;
  8379. curLeft = curPosition.left;
  8380. } else {
  8381. curTop = parseFloat( curCSSTop ) || 0;
  8382. curLeft = parseFloat( curCSSLeft ) || 0;
  8383. }
  8384. if ( jQuery.isFunction( options ) ) {
  8385. options = options.call( elem, i, curOffset );
  8386. }
  8387. if ( options.top != null ) {
  8388. props.top = ( options.top - curOffset.top ) + curTop;
  8389. }
  8390. if ( options.left != null ) {
  8391. props.left = ( options.left - curOffset.left ) + curLeft;
  8392. }
  8393. if ( "using" in options ) {
  8394. options.using.call( elem, props );
  8395. } else {
  8396. curElem.css( props );
  8397. }
  8398. }
  8399. };
  8400. jQuery.fn.extend({
  8401. offset: function( options ) {
  8402. if ( arguments.length ) {
  8403. return options === undefined ?
  8404. this :
  8405. this.each(function( i ) {
  8406. jQuery.offset.setOffset( this, options, i );
  8407. });
  8408. }
  8409. var docElem, win,
  8410. box = { top: 0, left: 0 },
  8411. elem = this[ 0 ],
  8412. doc = elem && elem.ownerDocument;
  8413. if ( !doc ) {
  8414. return;
  8415. }
  8416. docElem = doc.documentElement;
  8417. // Make sure it's not a disconnected DOM node
  8418. if ( !jQuery.contains( docElem, elem ) ) {
  8419. return box;
  8420. }
  8421. // If we don't have gBCR, just use 0,0 rather than error
  8422. // BlackBerry 5, iOS 3 (original iPhone)
  8423. if ( typeof elem.getBoundingClientRect !== strundefined ) {
  8424. box = elem.getBoundingClientRect();
  8425. }
  8426. win = getWindow( doc );
  8427. return {
  8428. top: box.top + ( win.pageYOffset || docElem.scrollTop ) - ( docElem.clientTop || 0 ),
  8429. left: box.left + ( win.pageXOffset || docElem.scrollLeft ) - ( docElem.clientLeft || 0 )
  8430. };
  8431. },
  8432. position: function() {
  8433. if ( !this[ 0 ] ) {
  8434. return;
  8435. }
  8436. var offsetParent, offset,
  8437. parentOffset = { top: 0, left: 0 },
  8438. elem = this[ 0 ];
  8439. // fixed elements are offset from window (parentOffset = {top:0, left: 0}, because it is its only offset parent
  8440. if ( jQuery.css( elem, "position" ) === "fixed" ) {
  8441. // we assume that getBoundingClientRect is available when computed position is fixed
  8442. offset = elem.getBoundingClientRect();
  8443. } else {
  8444. // Get *real* offsetParent
  8445. offsetParent = this.offsetParent();
  8446. // Get correct offsets
  8447. offset = this.offset();
  8448. if ( !jQuery.nodeName( offsetParent[ 0 ], "html" ) ) {
  8449. parentOffset = offsetParent.offset();
  8450. }
  8451. // Add offsetParent borders
  8452. parentOffset.top += jQuery.css( offsetParent[ 0 ], "borderTopWidth", true );
  8453. parentOffset.left += jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true );
  8454. }
  8455. // Subtract parent offsets and element margins
  8456. // note: when an element has margin: auto the offsetLeft and marginLeft
  8457. // are the same in Safari causing offset.left to incorrectly be 0
  8458. return {
  8459. top: offset.top - parentOffset.top - jQuery.css( elem, "marginTop", true ),
  8460. left: offset.left - parentOffset.left - jQuery.css( elem, "marginLeft", true)
  8461. };
  8462. },
  8463. offsetParent: function() {
  8464. return this.map(function() {
  8465. var offsetParent = this.offsetParent || docElem;
  8466. while ( offsetParent && ( !jQuery.nodeName( offsetParent, "html" ) && jQuery.css( offsetParent, "position" ) === "static" ) ) {
  8467. offsetParent = offsetParent.offsetParent;
  8468. }
  8469. return offsetParent || docElem;
  8470. });
  8471. }
  8472. });
  8473. // Create scrollLeft and scrollTop methods
  8474. jQuery.each( { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function( method, prop ) {
  8475. var top = /Y/.test( prop );
  8476. jQuery.fn[ method ] = function( val ) {
  8477. return access( this, function( elem, method, val ) {
  8478. var win = getWindow( elem );
  8479. if ( val === undefined ) {
  8480. return win ? (prop in win) ? win[ prop ] :
  8481. win.document.documentElement[ method ] :
  8482. elem[ method ];
  8483. }
  8484. if ( win ) {
  8485. win.scrollTo(
  8486. !top ? val : jQuery( win ).scrollLeft(),
  8487. top ? val : jQuery( win ).scrollTop()
  8488. );
  8489. } else {
  8490. elem[ method ] = val;
  8491. }
  8492. }, method, val, arguments.length, null );
  8493. };
  8494. });
  8495. // Add the top/left cssHooks using jQuery.fn.position
  8496. // Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084
  8497. // getComputedStyle returns percent when specified for top/left/bottom/right
  8498. // rather than make the css module depend on the offset module, we just check for it here
  8499. jQuery.each( [ "top", "left" ], function( i, prop ) {
  8500. jQuery.cssHooks[ prop ] = addGetHookIf( support.pixelPosition,
  8501. function( elem, computed ) {
  8502. if ( computed ) {
  8503. computed = curCSS( elem, prop );
  8504. // if curCSS returns percentage, fallback to offset
  8505. return rnumnonpx.test( computed ) ?
  8506. jQuery( elem ).position()[ prop ] + "px" :
  8507. computed;
  8508. }
  8509. }
  8510. );
  8511. });
  8512. // Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods
  8513. jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
  8514. jQuery.each( { padding: "inner" + name, content: type, "": "outer" + name }, function( defaultExtra, funcName ) {
  8515. // margin is only for outerHeight, outerWidth
  8516. jQuery.fn[ funcName ] = function( margin, value ) {
  8517. var chainable = arguments.length && ( defaultExtra || typeof margin !== "boolean" ),
  8518. extra = defaultExtra || ( margin === true || value === true ? "margin" : "border" );
  8519. return access( this, function( elem, type, value ) {
  8520. var doc;
  8521. if ( jQuery.isWindow( elem ) ) {
  8522. // As of 5/8/2012 this will yield incorrect results for Mobile Safari, but there
  8523. // isn't a whole lot we can do. See pull request at this URL for discussion:
  8524. // https://github.com/jquery/jquery/pull/764
  8525. return elem.document.documentElement[ "client" + name ];
  8526. }
  8527. // Get document width or height
  8528. if ( elem.nodeType === 9 ) {
  8529. doc = elem.documentElement;
  8530. // Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height], whichever is greatest
  8531. // unfortunately, this causes bug #3838 in IE6/8 only, but there is currently no good, small way to fix it.
  8532. return Math.max(
  8533. elem.body[ "scroll" + name ], doc[ "scroll" + name ],
  8534. elem.body[ "offset" + name ], doc[ "offset" + name ],
  8535. doc[ "client" + name ]
  8536. );
  8537. }
  8538. return value === undefined ?
  8539. // Get width or height on the element, requesting but not forcing parseFloat
  8540. jQuery.css( elem, type, extra ) :
  8541. // Set width or height on the element
  8542. jQuery.style( elem, type, value, extra );
  8543. }, type, chainable ? margin : undefined, chainable, null );
  8544. };
  8545. });
  8546. });
  8547. // The number of elements contained in the matched element set
  8548. jQuery.fn.size = function() {
  8549. return this.length;
  8550. };
  8551. jQuery.fn.andSelf = jQuery.fn.addBack;
  8552. // Register as a named AMD module, since jQuery can be concatenated with other
  8553. // files that may use define, but not via a proper concatenation script that
  8554. // understands anonymous AMD modules. A named AMD is safest and most robust
  8555. // way to register. Lowercase jquery is used because AMD module names are
  8556. // derived from file names, and jQuery is normally delivered in a lowercase
  8557. // file name. Do this after creating the global so that if an AMD module wants
  8558. // to call noConflict to hide this version of jQuery, it will work.
  8559. // Note that for maximum portability, libraries that are not jQuery should
  8560. // declare themselves as anonymous modules, and avoid setting a global if an
  8561. // AMD loader is present. jQuery is a special case. For more information, see
  8562. // https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon
  8563. if ( typeof define === "function" && define.amd ) {
  8564. define( "jquery", [], function() {
  8565. return jQuery;
  8566. });
  8567. }
  8568. var
  8569. // Map over jQuery in case of overwrite
  8570. _jQuery = window.jQuery,
  8571. // Map over the $ in case of overwrite
  8572. _$ = window.$;
  8573. jQuery.noConflict = function( deep ) {
  8574. if ( window.$ === jQuery ) {
  8575. window.$ = _$;
  8576. }
  8577. if ( deep && window.jQuery === jQuery ) {
  8578. window.jQuery = _jQuery;
  8579. }
  8580. return jQuery;
  8581. };
  8582. // Expose jQuery and $ identifiers, even in
  8583. // AMD (#7102#comment:10, https://github.com/jquery/jquery/pull/557)
  8584. // and CommonJS for browser emulators (#13566)
  8585. if ( typeof noGlobal === strundefined ) {
  8586. window.jQuery = window.$ = jQuery;
  8587. }
  8588. return jQuery;
  8589. }));
  8590. (function($, undefined) {
  8591. /**
  8592. * Unobtrusive scripting adapter for jQuery
  8593. * https://github.com/rails/jquery-ujs
  8594. *
  8595. * Requires jQuery 1.8.0 or later.
  8596. *
  8597. * Released under the MIT license
  8598. *
  8599. */
  8600. // Cut down on the number of issues from people inadvertently including jquery_ujs twice
  8601. // by detecting and raising an error when it happens.
  8602. 'use strict';
  8603. if ( $.rails !== undefined ) {
  8604. $.error('jquery-ujs has already been loaded!');
  8605. }
  8606. // Shorthand to make it a little easier to call public rails functions from within rails.js
  8607. var rails;
  8608. var $document = $(document);
  8609. $.rails = rails = {
  8610. // Link elements bound by jquery-ujs
  8611. linkClickSelector: 'a[data-confirm], a[data-method], a[data-remote], a[data-disable-with], a[data-disable]',
  8612. // Button elements bound by jquery-ujs
  8613. buttonClickSelector: 'button[data-remote]:not(form button), button[data-confirm]:not(form button)',
  8614. // Select elements bound by jquery-ujs
  8615. inputChangeSelector: 'select[data-remote], input[data-remote], textarea[data-remote]',
  8616. // Form elements bound by jquery-ujs
  8617. formSubmitSelector: 'form',
  8618. // Form input elements bound by jquery-ujs
  8619. formInputClickSelector: 'form input[type=submit], form input[type=image], form button[type=submit], form button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])',
  8620. // Form input elements disabled during form submission
  8621. disableSelector: 'input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled',
  8622. // Form input elements re-enabled after form submission
  8623. enableSelector: 'input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled',
  8624. // Form required input elements
  8625. requiredInputSelector: 'input[name][required]:not([disabled]),textarea[name][required]:not([disabled])',
  8626. // Form file input elements
  8627. fileInputSelector: 'input[type=file]:not([disabled])',
  8628. // Link onClick disable selector with possible reenable after remote submission
  8629. linkDisableSelector: 'a[data-disable-with], a[data-disable]',
  8630. // Button onClick disable selector with possible reenable after remote submission
  8631. buttonDisableSelector: 'button[data-remote][data-disable-with], button[data-remote][data-disable]',
  8632. // Up-to-date Cross-Site Request Forgery token
  8633. csrfToken: function() {
  8634. return $('meta[name=csrf-token]').attr('content');
  8635. },
  8636. // URL param that must contain the CSRF token
  8637. csrfParam: function() {
  8638. return $('meta[name=csrf-param]').attr('content');
  8639. },
  8640. // Make sure that every Ajax request sends the CSRF token
  8641. CSRFProtection: function(xhr) {
  8642. var token = rails.csrfToken();
  8643. if (token) xhr.setRequestHeader('X-CSRF-Token', token);
  8644. },
  8645. // making sure that all forms have actual up-to-date token(cached forms contain old one)
  8646. refreshCSRFTokens: function(){
  8647. $('form input[name="' + rails.csrfParam() + '"]').val(rails.csrfToken());
  8648. },
  8649. // Triggers an event on an element and returns false if the event result is false
  8650. fire: function(obj, name, data) {
  8651. var event = $.Event(name);
  8652. obj.trigger(event, data);
  8653. return event.result !== false;
  8654. },
  8655. // Default confirm dialog, may be overridden with custom confirm dialog in $.rails.confirm
  8656. confirm: function(message) {
  8657. return confirm(message);
  8658. },
  8659. // Default ajax function, may be overridden with custom function in $.rails.ajax
  8660. ajax: function(options) {
  8661. return $.ajax(options);
  8662. },
  8663. // Default way to get an element's href. May be overridden at $.rails.href.
  8664. href: function(element) {
  8665. return element[0].href;
  8666. },
  8667. // Checks "data-remote" if true to handle the request through a XHR request.
  8668. isRemote: function(element) {
  8669. return element.data('remote') !== undefined && element.data('remote') !== false;
  8670. },
  8671. // Submits "remote" forms and links with ajax
  8672. handleRemote: function(element) {
  8673. var method, url, data, withCredentials, dataType, options;
  8674. if (rails.fire(element, 'ajax:before')) {
  8675. withCredentials = element.data('with-credentials') || null;
  8676. dataType = element.data('type') || ($.ajaxSettings && $.ajaxSettings.dataType);
  8677. if (element.is('form')) {
  8678. method = element.attr('method');
  8679. url = element.attr('action');
  8680. data = element.serializeArray();
  8681. // memoized value from clicked submit button
  8682. var button = element.data('ujs:submit-button');
  8683. if (button) {
  8684. data.push(button);
  8685. element.data('ujs:submit-button', null);
  8686. }
  8687. } else if (element.is(rails.inputChangeSelector)) {
  8688. method = element.data('method');
  8689. url = element.data('url');
  8690. data = element.serialize();
  8691. if (element.data('params')) data = data + '&' + element.data('params');
  8692. } else if (element.is(rails.buttonClickSelector)) {
  8693. method = element.data('method') || 'get';
  8694. url = element.data('url');
  8695. data = element.serialize();
  8696. if (element.data('params')) data = data + '&' + element.data('params');
  8697. } else {
  8698. method = element.data('method');
  8699. url = rails.href(element);
  8700. data = element.data('params') || null;
  8701. }
  8702. options = {
  8703. type: method || 'GET', data: data, dataType: dataType,
  8704. // stopping the "ajax:beforeSend" event will cancel the ajax request
  8705. beforeSend: function(xhr, settings) {
  8706. if (settings.dataType === undefined) {
  8707. xhr.setRequestHeader('accept', '*/*;q=0.5, ' + settings.accepts.script);
  8708. }
  8709. if (rails.fire(element, 'ajax:beforeSend', [xhr, settings])) {
  8710. element.trigger('ajax:send', xhr);
  8711. } else {
  8712. return false;
  8713. }
  8714. },
  8715. success: function(data, status, xhr) {
  8716. element.trigger('ajax:success', [data, status, xhr]);
  8717. },
  8718. complete: function(xhr, status) {
  8719. element.trigger('ajax:complete', [xhr, status]);
  8720. },
  8721. error: function(xhr, status, error) {
  8722. element.trigger('ajax:error', [xhr, status, error]);
  8723. },
  8724. crossDomain: rails.isCrossDomain(url)
  8725. };
  8726. // There is no withCredentials for IE6-8 when
  8727. // "Enable native XMLHTTP support" is disabled
  8728. if (withCredentials) {
  8729. options.xhrFields = {
  8730. withCredentials: withCredentials
  8731. };
  8732. }
  8733. // Only pass url to `ajax` options if not blank
  8734. if (url) { options.url = url; }
  8735. return rails.ajax(options);
  8736. } else {
  8737. return false;
  8738. }
  8739. },
  8740. // Determines if the request is a cross domain request.
  8741. isCrossDomain: function(url) {
  8742. var originAnchor = document.createElement('a');
  8743. originAnchor.href = location.href;
  8744. var urlAnchor = document.createElement('a');
  8745. try {
  8746. urlAnchor.href = url;
  8747. // This is a workaround to a IE bug.
  8748. urlAnchor.href = urlAnchor.href;
  8749. // If URL protocol is false or is a string containing a single colon
  8750. // *and* host are false, assume it is not a cross-domain request
  8751. // (should only be the case for IE7 and IE compatibility mode).
  8752. // Otherwise, evaluate protocol and host of the URL against the origin
  8753. // protocol and host.
  8754. return !(((!urlAnchor.protocol || urlAnchor.protocol === ':') && !urlAnchor.host) ||
  8755. (originAnchor.protocol + '//' + originAnchor.host ===
  8756. urlAnchor.protocol + '//' + urlAnchor.host));
  8757. } catch (e) {
  8758. // If there is an error parsing the URL, assume it is crossDomain.
  8759. return true;
  8760. }
  8761. },
  8762. // Handles "data-method" on links such as:
  8763. // <a href="/users/5" data-method="delete" rel="nofollow" data-confirm="Are you sure?">Delete</a>
  8764. handleMethod: function(link) {
  8765. var href = rails.href(link),
  8766. method = link.data('method'),
  8767. target = link.attr('target'),
  8768. csrfToken = rails.csrfToken(),
  8769. csrfParam = rails.csrfParam(),
  8770. form = $('<form method="post" action="' + href + '"></form>'),
  8771. metadataInput = '<input name="_method" value="' + method + '" type="hidden" />';
  8772. if (csrfParam !== undefined && csrfToken !== undefined && !rails.isCrossDomain(href)) {
  8773. metadataInput += '<input name="' + csrfParam + '" value="' + csrfToken + '" type="hidden" />';
  8774. }
  8775. if (target) { form.attr('target', target); }
  8776. form.hide().append(metadataInput).appendTo('body');
  8777. form.submit();
  8778. },
  8779. // Helper function that returns form elements that match the specified CSS selector
  8780. // If form is actually a "form" element this will return associated elements outside the from that have
  8781. // the html form attribute set
  8782. formElements: function(form, selector) {
  8783. return form.is('form') ? $(form[0].elements).filter(selector) : form.find(selector);
  8784. },
  8785. /* Disables form elements:
  8786. - Caches element value in 'ujs:enable-with' data store
  8787. - Replaces element text with value of 'data-disable-with' attribute
  8788. - Sets disabled property to true
  8789. */
  8790. disableFormElements: function(form) {
  8791. rails.formElements(form, rails.disableSelector).each(function() {
  8792. rails.disableFormElement($(this));
  8793. });
  8794. },
  8795. disableFormElement: function(element) {
  8796. var method, replacement;
  8797. method = element.is('button') ? 'html' : 'val';
  8798. replacement = element.data('disable-with');
  8799. element.data('ujs:enable-with', element[method]());
  8800. if (replacement !== undefined) {
  8801. element[method](replacement);
  8802. }
  8803. element.prop('disabled', true);
  8804. },
  8805. /* Re-enables disabled form elements:
  8806. - Replaces element text with cached value from 'ujs:enable-with' data store (created in `disableFormElements`)
  8807. - Sets disabled property to false
  8808. */
  8809. enableFormElements: function(form) {
  8810. rails.formElements(form, rails.enableSelector).each(function() {
  8811. rails.enableFormElement($(this));
  8812. });
  8813. },
  8814. enableFormElement: function(element) {
  8815. var method = element.is('button') ? 'html' : 'val';
  8816. if (typeof element.data('ujs:enable-with') !== 'undefined') element[method](element.data('ujs:enable-with'));
  8817. element.prop('disabled', false);
  8818. },
  8819. /* For 'data-confirm' attribute:
  8820. - Fires `confirm` event
  8821. - Shows the confirmation dialog
  8822. - Fires the `confirm:complete` event
  8823. Returns `true` if no function stops the chain and user chose yes; `false` otherwise.
  8824. Attaching a handler to the element's `confirm` event that returns a `falsy` value cancels the confirmation dialog.
  8825. Attaching a handler to the element's `confirm:complete` event that returns a `falsy` value makes this function
  8826. return false. The `confirm:complete` event is fired whether or not the user answered true or false to the dialog.
  8827. */
  8828. allowAction: function(element) {
  8829. var message = element.data('confirm'),
  8830. answer = false, callback;
  8831. if (!message) { return true; }
  8832. if (rails.fire(element, 'confirm')) {
  8833. try {
  8834. answer = rails.confirm(message);
  8835. } catch (e) {
  8836. (console.error || console.log).call(console, e.stack || e);
  8837. }
  8838. callback = rails.fire(element, 'confirm:complete', [answer]);
  8839. }
  8840. return answer && callback;
  8841. },
  8842. // Helper function which checks for blank inputs in a form that match the specified CSS selector
  8843. blankInputs: function(form, specifiedSelector, nonBlank) {
  8844. var inputs = $(), input, valueToCheck,
  8845. selector = specifiedSelector || 'input,textarea',
  8846. allInputs = form.find(selector);
  8847. allInputs.each(function() {
  8848. input = $(this);
  8849. valueToCheck = input.is('input[type=checkbox],input[type=radio]') ? input.is(':checked') : !!input.val();
  8850. if (valueToCheck === nonBlank) {
  8851. // Don't count unchecked required radio if other radio with same name is checked
  8852. if (input.is('input[type=radio]') && allInputs.filter('input[type=radio]:checked[name="' + input.attr('name') + '"]').length) {
  8853. return true; // Skip to next input
  8854. }
  8855. inputs = inputs.add(input);
  8856. }
  8857. });
  8858. return inputs.length ? inputs : false;
  8859. },
  8860. // Helper function which checks for non-blank inputs in a form that match the specified CSS selector
  8861. nonBlankInputs: function(form, specifiedSelector) {
  8862. return rails.blankInputs(form, specifiedSelector, true); // true specifies nonBlank
  8863. },
  8864. // Helper function, needed to provide consistent behavior in IE
  8865. stopEverything: function(e) {
  8866. $(e.target).trigger('ujs:everythingStopped');
  8867. e.stopImmediatePropagation();
  8868. return false;
  8869. },
  8870. // replace element's html with the 'data-disable-with' after storing original html
  8871. // and prevent clicking on it
  8872. disableElement: function(element) {
  8873. var replacement = element.data('disable-with');
  8874. element.data('ujs:enable-with', element.html()); // store enabled state
  8875. if (replacement !== undefined) {
  8876. element.html(replacement);
  8877. }
  8878. element.bind('click.railsDisable', function(e) { // prevent further clicking
  8879. return rails.stopEverything(e);
  8880. });
  8881. },
  8882. // restore element to its original state which was disabled by 'disableElement' above
  8883. enableElement: function(element) {
  8884. if (element.data('ujs:enable-with') !== undefined) {
  8885. element.html(element.data('ujs:enable-with')); // set to old enabled state
  8886. element.removeData('ujs:enable-with'); // clean up cache
  8887. }
  8888. element.unbind('click.railsDisable'); // enable element
  8889. }
  8890. };
  8891. if (rails.fire($document, 'rails:attachBindings')) {
  8892. $.ajaxPrefilter(function(options, originalOptions, xhr){ if ( !options.crossDomain ) { rails.CSRFProtection(xhr); }});
  8893. // This event works the same as the load event, except that it fires every
  8894. // time the page is loaded.
  8895. //
  8896. // See https://github.com/rails/jquery-ujs/issues/357
  8897. // See https://developer.mozilla.org/en-US/docs/Using_Firefox_1.5_caching
  8898. $(window).on('pageshow.rails', function () {
  8899. $($.rails.enableSelector).each(function () {
  8900. var element = $(this);
  8901. if (element.data('ujs:enable-with')) {
  8902. $.rails.enableFormElement(element);
  8903. }
  8904. });
  8905. $($.rails.linkDisableSelector).each(function () {
  8906. var element = $(this);
  8907. if (element.data('ujs:enable-with')) {
  8908. $.rails.enableElement(element);
  8909. }
  8910. });
  8911. });
  8912. $document.delegate(rails.linkDisableSelector, 'ajax:complete', function() {
  8913. rails.enableElement($(this));
  8914. });
  8915. $document.delegate(rails.buttonDisableSelector, 'ajax:complete', function() {
  8916. rails.enableFormElement($(this));
  8917. });
  8918. $document.delegate(rails.linkClickSelector, 'click.rails', function(e) {
  8919. var link = $(this), method = link.data('method'), data = link.data('params'), metaClick = e.metaKey || e.ctrlKey;
  8920. if (!rails.allowAction(link)) return rails.stopEverything(e);
  8921. if (!metaClick && link.is(rails.linkDisableSelector)) rails.disableElement(link);
  8922. if (rails.isRemote(link)) {
  8923. if (metaClick && (!method || method === 'GET') && !data) { return true; }
  8924. var handleRemote = rails.handleRemote(link);
  8925. // response from rails.handleRemote() will either be false or a deferred object promise.
  8926. if (handleRemote === false) {
  8927. rails.enableElement(link);
  8928. } else {
  8929. handleRemote.fail( function() { rails.enableElement(link); } );
  8930. }
  8931. return false;
  8932. } else if (method) {
  8933. rails.handleMethod(link);
  8934. return false;
  8935. }
  8936. });
  8937. $document.delegate(rails.buttonClickSelector, 'click.rails', function(e) {
  8938. var button = $(this);
  8939. if (!rails.allowAction(button) || !rails.isRemote(button)) return rails.stopEverything(e);
  8940. if (button.is(rails.buttonDisableSelector)) rails.disableFormElement(button);
  8941. var handleRemote = rails.handleRemote(button);
  8942. // response from rails.handleRemote() will either be false or a deferred object promise.
  8943. if (handleRemote === false) {
  8944. rails.enableFormElement(button);
  8945. } else {
  8946. handleRemote.fail( function() { rails.enableFormElement(button); } );
  8947. }
  8948. return false;
  8949. });
  8950. $document.delegate(rails.inputChangeSelector, 'change.rails', function(e) {
  8951. var link = $(this);
  8952. if (!rails.allowAction(link) || !rails.isRemote(link)) return rails.stopEverything(e);
  8953. rails.handleRemote(link);
  8954. return false;
  8955. });
  8956. $document.delegate(rails.formSubmitSelector, 'submit.rails', function(e) {
  8957. var form = $(this),
  8958. remote = rails.isRemote(form),
  8959. blankRequiredInputs,
  8960. nonBlankFileInputs;
  8961. if (!rails.allowAction(form)) return rails.stopEverything(e);
  8962. // skip other logic when required values are missing or file upload is present
  8963. if (form.attr('novalidate') === undefined) {
  8964. blankRequiredInputs = rails.blankInputs(form, rails.requiredInputSelector, false);
  8965. if (blankRequiredInputs && rails.fire(form, 'ajax:aborted:required', [blankRequiredInputs])) {
  8966. return rails.stopEverything(e);
  8967. }
  8968. }
  8969. if (remote) {
  8970. nonBlankFileInputs = rails.nonBlankInputs(form, rails.fileInputSelector);
  8971. if (nonBlankFileInputs) {
  8972. // slight timeout so that the submit button gets properly serialized
  8973. // (make it easy for event handler to serialize form without disabled values)
  8974. setTimeout(function(){ rails.disableFormElements(form); }, 13);
  8975. var aborted = rails.fire(form, 'ajax:aborted:file', [nonBlankFileInputs]);
  8976. // re-enable form elements if event bindings return false (canceling normal form submission)
  8977. if (!aborted) { setTimeout(function(){ rails.enableFormElements(form); }, 13); }
  8978. return aborted;
  8979. }
  8980. rails.handleRemote(form);
  8981. return false;
  8982. } else {
  8983. // slight timeout so that the submit button gets properly serialized
  8984. setTimeout(function(){ rails.disableFormElements(form); }, 13);
  8985. }
  8986. });
  8987. $document.delegate(rails.formInputClickSelector, 'click.rails', function(event) {
  8988. var button = $(this);
  8989. if (!rails.allowAction(button)) return rails.stopEverything(event);
  8990. // register the pressed submit button
  8991. var name = button.attr('name'),
  8992. data = name ? {name:name, value:button.val()} : null;
  8993. button.closest('form').data('ujs:submit-button', data);
  8994. });
  8995. $document.delegate(rails.formSubmitSelector, 'ajax:send.rails', function(event) {
  8996. if (this === event.target) rails.disableFormElements($(this));
  8997. });
  8998. $document.delegate(rails.formSubmitSelector, 'ajax:complete.rails', function(event) {
  8999. if (this === event.target) rails.enableFormElements($(this));
  9000. });
  9001. $(function(){
  9002. rails.refreshCSRFTokens();
  9003. });
  9004. }
  9005. })( jQuery );
  9006. /*
  9007. * Unobtrusive autocomplete
  9008. *
  9009. * To use it, you just have to include the HTML attribute autocomplete
  9010. * with the autocomplete URL as the value
  9011. *
  9012. * Example:
  9013. * <input type="text" data-autocomplete="/url/to/autocomplete">
  9014. *
  9015. * Optionally, you can use a jQuery selector to specify a field that can
  9016. * be updated with the element id whenever you find a matching value
  9017. *
  9018. * Example:
  9019. * <input type="text" data-autocomplete="/url/to/autocomplete" data-id-element="#id_field">
  9020. */
  9021. (function(jQuery)
  9022. {
  9023. var self = null;
  9024. jQuery.fn.railsAutocomplete = function() {
  9025. return this.live('focus',function() {
  9026. if (!this.railsAutoCompleter) {
  9027. this.railsAutoCompleter = new jQuery.railsAutocomplete(this);
  9028. }
  9029. });
  9030. };
  9031. jQuery.railsAutocomplete = function (e) {
  9032. _e = e;
  9033. this.init(_e);
  9034. };
  9035. jQuery.railsAutocomplete.fn = jQuery.railsAutocomplete.prototype = {
  9036. railsAutocomplete: '0.0.1'
  9037. };
  9038. jQuery.railsAutocomplete.fn.extend = jQuery.railsAutocomplete.extend = jQuery.extend;
  9039. jQuery.railsAutocomplete.fn.extend({
  9040. init: function(e) {
  9041. e.delimiter = jQuery(e).attr('data-delimiter') || null;
  9042. function split( val ) {
  9043. return val.split( e.delimiter );
  9044. }
  9045. function extractLast( term ) {
  9046. return split( term ).pop().replace(/^\s+/,"");
  9047. }
  9048. jQuery(e).autocomplete({
  9049. source: function( request, response ) {
  9050. jQuery.getJSON( jQuery(e).attr('data-autocomplete'), {
  9051. term: extractLast( request.term )
  9052. }, function() {
  9053. jQuery(arguments[0]).each(function(i, el) {
  9054. var obj = {};
  9055. obj[el.id] = el;
  9056. jQuery(e).data(obj);
  9057. });
  9058. response.apply(null, arguments);
  9059. });
  9060. },
  9061. search: function() {
  9062. // custom minLength
  9063. var term = extractLast( this.value );
  9064. if ( term.length < 2 ) {
  9065. return false;
  9066. }
  9067. },
  9068. focus: function() {
  9069. // prevent value inserted on focus
  9070. return false;
  9071. },
  9072. select: function( event, ui ) {
  9073. var terms = split( this.value );
  9074. // remove the current input
  9075. terms.pop();
  9076. // add the selected item
  9077. terms.push( ui.item.value );
  9078. // add placeholder to get the comma-and-space at the end
  9079. if (e.delimiter != null) {
  9080. terms.push( "" );
  9081. this.value = terms.join( e.delimiter );
  9082. } else {
  9083. this.value = terms.join("");
  9084. if (jQuery(this).attr('data-id-element')) {
  9085. jQuery(jQuery(this).attr('data-id-element')).val(ui.item.id);
  9086. }
  9087. if (jQuery(this).attr('data-update-elements')) {
  9088. var data = jQuery(this).data(ui.item.id.toString());
  9089. var update_elements = jQuery.parseJSON(jQuery(this).attr("data-update-elements"));
  9090. for (var key in update_elements) {
  9091. jQuery(update_elements[key]).val(data[key]);
  9092. }
  9093. }
  9094. }
  9095. var remember_string = this.value;
  9096. jQuery(this).bind('keyup.clearId', function(){
  9097. if(jQuery(this).val().trim() != remember_string.trim()){
  9098. jQuery(jQuery(this).attr('data-id-element')).val("");
  9099. jQuery(this).unbind('keyup.clearId');
  9100. }
  9101. });
  9102. jQuery(this).trigger('railsAutocomplete.select', ui);
  9103. return false;
  9104. }
  9105. });
  9106. }
  9107. });
  9108. jQuery(document).ready(function(){
  9109. jQuery('input[data-autocomplete]').railsAutocomplete();
  9110. });
  9111. })(jQuery);
  9112. (function() {
  9113. var CSRFToken, Click, ComponentUrl, EVENTS, Link, ProgressBar, browserIsntBuggy, browserSupportsCustomEvents, browserSupportsPushState, browserSupportsTurbolinks, bypassOnLoadPopstate, cacheCurrentPage, cacheSize, changePage, clone, constrainPageCacheTo, createDocument, crossOriginRedirect, currentState, enableProgressBar, enableTransitionCache, executeScriptTags, extractTitleAndBody, fetch, fetchHistory, fetchReplacement, historyStateIsDefined, initializeTurbolinks, installDocumentReadyPageEventTriggers, installHistoryChangeHandler, installJqueryAjaxSuccessPageUpdateTrigger, loadedAssets, manuallyTriggerHashChangeForFirefox, pageCache, pageChangePrevented, pagesCached, popCookie, processResponse, progressBar, recallScrollPosition, ref, referer, reflectNewUrl, reflectRedirectedUrl, rememberCurrentState, rememberCurrentUrl, rememberReferer, removeNoscriptTags, requestMethodIsSafe, resetScrollPosition, setAutofocusElement, transitionCacheEnabled, transitionCacheFor, triggerEvent, visit, xhr,
  9114. indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; },
  9115. extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
  9116. hasProp = {}.hasOwnProperty,
  9117. slice = [].slice,
  9118. bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
  9119. pageCache = {};
  9120. cacheSize = 10;
  9121. transitionCacheEnabled = false;
  9122. progressBar = null;
  9123. currentState = null;
  9124. loadedAssets = null;
  9125. referer = null;
  9126. xhr = null;
  9127. EVENTS = {
  9128. BEFORE_CHANGE: 'page:before-change',
  9129. FETCH: 'page:fetch',
  9130. RECEIVE: 'page:receive',
  9131. CHANGE: 'page:change',
  9132. UPDATE: 'page:update',
  9133. LOAD: 'page:load',
  9134. RESTORE: 'page:restore',
  9135. BEFORE_UNLOAD: 'page:before-unload',
  9136. EXPIRE: 'page:expire'
  9137. };
  9138. fetch = function(url) {
  9139. var cachedPage;
  9140. url = new ComponentUrl(url);
  9141. rememberReferer();
  9142. cacheCurrentPage();
  9143. if (progressBar != null) {
  9144. progressBar.start();
  9145. }
  9146. if (transitionCacheEnabled && (cachedPage = transitionCacheFor(url.absolute))) {
  9147. fetchHistory(cachedPage);
  9148. return fetchReplacement(url, null, false);
  9149. } else {
  9150. return fetchReplacement(url, resetScrollPosition);
  9151. }
  9152. };
  9153. transitionCacheFor = function(url) {
  9154. var cachedPage;
  9155. cachedPage = pageCache[url];
  9156. if (cachedPage && !cachedPage.transitionCacheDisabled) {
  9157. return cachedPage;
  9158. }
  9159. };
  9160. enableTransitionCache = function(enable) {
  9161. if (enable == null) {
  9162. enable = true;
  9163. }
  9164. return transitionCacheEnabled = enable;
  9165. };
  9166. enableProgressBar = function(enable) {
  9167. if (enable == null) {
  9168. enable = true;
  9169. }
  9170. if (!browserSupportsTurbolinks) {
  9171. return;
  9172. }
  9173. if (enable) {
  9174. return progressBar != null ? progressBar : progressBar = new ProgressBar('html');
  9175. } else {
  9176. if (progressBar != null) {
  9177. progressBar.uninstall();
  9178. }
  9179. return progressBar = null;
  9180. }
  9181. };
  9182. fetchReplacement = function(url, onLoadFunction, showProgressBar) {
  9183. if (showProgressBar == null) {
  9184. showProgressBar = true;
  9185. }
  9186. triggerEvent(EVENTS.FETCH, {
  9187. url: url.absolute
  9188. });
  9189. if (xhr != null) {
  9190. xhr.abort();
  9191. }
  9192. xhr = new XMLHttpRequest;
  9193. xhr.open('GET', url.withoutHashForIE10compatibility(), true);
  9194. xhr.setRequestHeader('Accept', 'text/html, application/xhtml+xml, application/xml');
  9195. xhr.setRequestHeader('X-XHR-Referer', referer);
  9196. xhr.onload = function() {
  9197. var doc;
  9198. triggerEvent(EVENTS.RECEIVE, {
  9199. url: url.absolute
  9200. });
  9201. if (doc = processResponse()) {
  9202. reflectNewUrl(url);
  9203. reflectRedirectedUrl();
  9204. changePage.apply(null, extractTitleAndBody(doc));
  9205. manuallyTriggerHashChangeForFirefox();
  9206. if (typeof onLoadFunction === "function") {
  9207. onLoadFunction();
  9208. }
  9209. return triggerEvent(EVENTS.LOAD);
  9210. } else {
  9211. return document.location.href = crossOriginRedirect() || url.absolute;
  9212. }
  9213. };
  9214. if (progressBar && showProgressBar) {
  9215. xhr.onprogress = (function(_this) {
  9216. return function(event) {
  9217. var percent;
  9218. percent = event.lengthComputable ? event.loaded / event.total * 100 : progressBar.value + (100 - progressBar.value) / 10;
  9219. return progressBar.advanceTo(percent);
  9220. };
  9221. })(this);
  9222. }
  9223. xhr.onloadend = function() {
  9224. return xhr = null;
  9225. };
  9226. xhr.onerror = function() {
  9227. return document.location.href = url.absolute;
  9228. };
  9229. return xhr.send();
  9230. };
  9231. fetchHistory = function(cachedPage) {
  9232. if (xhr != null) {
  9233. xhr.abort();
  9234. }
  9235. changePage(cachedPage.title, cachedPage.body);
  9236. recallScrollPosition(cachedPage);
  9237. return triggerEvent(EVENTS.RESTORE);
  9238. };
  9239. cacheCurrentPage = function() {
  9240. var currentStateUrl;
  9241. currentStateUrl = new ComponentUrl(currentState.url);
  9242. pageCache[currentStateUrl.absolute] = {
  9243. url: currentStateUrl.relative,
  9244. body: document.body,
  9245. title: document.title,
  9246. positionY: window.pageYOffset,
  9247. positionX: window.pageXOffset,
  9248. cachedAt: new Date().getTime(),
  9249. transitionCacheDisabled: document.querySelector('[data-no-transition-cache]') != null
  9250. };
  9251. return constrainPageCacheTo(cacheSize);
  9252. };
  9253. pagesCached = function(size) {
  9254. if (size == null) {
  9255. size = cacheSize;
  9256. }
  9257. if (/^[\d]+$/.test(size)) {
  9258. return cacheSize = parseInt(size);
  9259. }
  9260. };
  9261. constrainPageCacheTo = function(limit) {
  9262. var cacheTimesRecentFirst, i, key, len, pageCacheKeys, results;
  9263. pageCacheKeys = Object.keys(pageCache);
  9264. cacheTimesRecentFirst = pageCacheKeys.map(function(url) {
  9265. return pageCache[url].cachedAt;
  9266. }).sort(function(a, b) {
  9267. return b - a;
  9268. });
  9269. results = [];
  9270. for (i = 0, len = pageCacheKeys.length; i < len; i++) {
  9271. key = pageCacheKeys[i];
  9272. if (!(pageCache[key].cachedAt <= cacheTimesRecentFirst[limit])) {
  9273. continue;
  9274. }
  9275. triggerEvent(EVENTS.EXPIRE, pageCache[key]);
  9276. results.push(delete pageCache[key]);
  9277. }
  9278. return results;
  9279. };
  9280. changePage = function(title, body, csrfToken, runScripts) {
  9281. triggerEvent(EVENTS.BEFORE_UNLOAD);
  9282. document.title = title;
  9283. document.documentElement.replaceChild(body, document.body);
  9284. if (csrfToken != null) {
  9285. CSRFToken.update(csrfToken);
  9286. }
  9287. setAutofocusElement();
  9288. if (runScripts) {
  9289. executeScriptTags();
  9290. }
  9291. currentState = window.history.state;
  9292. if (progressBar != null) {
  9293. progressBar.done();
  9294. }
  9295. triggerEvent(EVENTS.CHANGE);
  9296. return triggerEvent(EVENTS.UPDATE);
  9297. };
  9298. executeScriptTags = function() {
  9299. var attr, copy, i, j, len, len1, nextSibling, parentNode, ref, ref1, script, scripts;
  9300. scripts = Array.prototype.slice.call(document.body.querySelectorAll('script:not([data-turbolinks-eval="false"])'));
  9301. for (i = 0, len = scripts.length; i < len; i++) {
  9302. script = scripts[i];
  9303. if (!((ref = script.type) === '' || ref === 'text/javascript')) {
  9304. continue;
  9305. }
  9306. copy = document.createElement('script');
  9307. ref1 = script.attributes;
  9308. for (j = 0, len1 = ref1.length; j < len1; j++) {
  9309. attr = ref1[j];
  9310. copy.setAttribute(attr.name, attr.value);
  9311. }
  9312. if (!script.hasAttribute('async')) {
  9313. copy.async = false;
  9314. }
  9315. copy.appendChild(document.createTextNode(script.innerHTML));
  9316. parentNode = script.parentNode, nextSibling = script.nextSibling;
  9317. parentNode.removeChild(script);
  9318. parentNode.insertBefore(copy, nextSibling);
  9319. }
  9320. };
  9321. removeNoscriptTags = function(node) {
  9322. node.innerHTML = node.innerHTML.replace(/<noscript[\S\s]*?<\/noscript>/ig, '');
  9323. return node;
  9324. };
  9325. setAutofocusElement = function() {
  9326. var autofocusElement, list;
  9327. autofocusElement = (list = document.querySelectorAll('input[autofocus], textarea[autofocus]'))[list.length - 1];
  9328. if (autofocusElement && document.activeElement !== autofocusElement) {
  9329. return autofocusElement.focus();
  9330. }
  9331. };
  9332. reflectNewUrl = function(url) {
  9333. if ((url = new ComponentUrl(url)).absolute !== referer) {
  9334. return window.history.pushState({
  9335. turbolinks: true,
  9336. url: url.absolute
  9337. }, '', url.absolute);
  9338. }
  9339. };
  9340. reflectRedirectedUrl = function() {
  9341. var location, preservedHash;
  9342. if (location = xhr.getResponseHeader('X-XHR-Redirected-To')) {
  9343. location = new ComponentUrl(location);
  9344. preservedHash = location.hasNoHash() ? document.location.hash : '';
  9345. return window.history.replaceState(window.history.state, '', location.href + preservedHash);
  9346. }
  9347. };
  9348. crossOriginRedirect = function() {
  9349. var redirect;
  9350. if (((redirect = xhr.getResponseHeader('Location')) != null) && (new ComponentUrl(redirect)).crossOrigin()) {
  9351. return redirect;
  9352. }
  9353. };
  9354. rememberReferer = function() {
  9355. return referer = document.location.href;
  9356. };
  9357. rememberCurrentUrl = function() {
  9358. return window.history.replaceState({
  9359. turbolinks: true,
  9360. url: document.location.href
  9361. }, '', document.location.href);
  9362. };
  9363. rememberCurrentState = function() {
  9364. return currentState = window.history.state;
  9365. };
  9366. manuallyTriggerHashChangeForFirefox = function() {
  9367. var url;
  9368. if (navigator.userAgent.match(/Firefox/) && !(url = new ComponentUrl).hasNoHash()) {
  9369. window.history.replaceState(currentState, '', url.withoutHash());
  9370. return document.location.hash = url.hash;
  9371. }
  9372. };
  9373. recallScrollPosition = function(page) {
  9374. return window.scrollTo(page.positionX, page.positionY);
  9375. };
  9376. resetScrollPosition = function() {
  9377. if (document.location.hash) {
  9378. return document.location.href = document.location.href;
  9379. } else {
  9380. return window.scrollTo(0, 0);
  9381. }
  9382. };
  9383. clone = function(original) {
  9384. var copy, key, value;
  9385. if ((original == null) || typeof original !== 'object') {
  9386. return original;
  9387. }
  9388. copy = new original.constructor();
  9389. for (key in original) {
  9390. value = original[key];
  9391. copy[key] = clone(value);
  9392. }
  9393. return copy;
  9394. };
  9395. popCookie = function(name) {
  9396. var ref, value;
  9397. value = ((ref = document.cookie.match(new RegExp(name + "=(\\w+)"))) != null ? ref[1].toUpperCase() : void 0) || '';
  9398. document.cookie = name + '=; expires=Thu, 01-Jan-70 00:00:01 GMT; path=/';
  9399. return value;
  9400. };
  9401. triggerEvent = function(name, data) {
  9402. var event;
  9403. if (typeof Prototype !== 'undefined') {
  9404. Event.fire(document, name, data, true);
  9405. }
  9406. event = document.createEvent('Events');
  9407. if (data) {
  9408. event.data = data;
  9409. }
  9410. event.initEvent(name, true, true);
  9411. return document.dispatchEvent(event);
  9412. };
  9413. pageChangePrevented = function(url) {
  9414. return !triggerEvent(EVENTS.BEFORE_CHANGE, {
  9415. url: url
  9416. });
  9417. };
  9418. processResponse = function() {
  9419. var assetsChanged, clientOrServerError, doc, extractTrackAssets, intersection, validContent;
  9420. clientOrServerError = function() {
  9421. var ref;
  9422. return (400 <= (ref = xhr.status) && ref < 600);
  9423. };
  9424. validContent = function() {
  9425. var contentType;
  9426. return ((contentType = xhr.getResponseHeader('Content-Type')) != null) && contentType.match(/^(?:text\/html|application\/xhtml\+xml|application\/xml)(?:;|$)/);
  9427. };
  9428. extractTrackAssets = function(doc) {
  9429. var i, len, node, ref, results;
  9430. ref = doc.querySelector('head').childNodes;
  9431. results = [];
  9432. for (i = 0, len = ref.length; i < len; i++) {
  9433. node = ref[i];
  9434. if ((typeof node.getAttribute === "function" ? node.getAttribute('data-turbolinks-track') : void 0) != null) {
  9435. results.push(node.getAttribute('src') || node.getAttribute('href'));
  9436. }
  9437. }
  9438. return results;
  9439. };
  9440. assetsChanged = function(doc) {
  9441. var fetchedAssets;
  9442. loadedAssets || (loadedAssets = extractTrackAssets(document));
  9443. fetchedAssets = extractTrackAssets(doc);
  9444. return fetchedAssets.length !== loadedAssets.length || intersection(fetchedAssets, loadedAssets).length !== loadedAssets.length;
  9445. };
  9446. intersection = function(a, b) {
  9447. var i, len, ref, results, value;
  9448. if (a.length > b.length) {
  9449. ref = [b, a], a = ref[0], b = ref[1];
  9450. }
  9451. results = [];
  9452. for (i = 0, len = a.length; i < len; i++) {
  9453. value = a[i];
  9454. if (indexOf.call(b, value) >= 0) {
  9455. results.push(value);
  9456. }
  9457. }
  9458. return results;
  9459. };
  9460. if (!clientOrServerError() && validContent()) {
  9461. doc = createDocument(xhr.responseText);
  9462. if (doc && !assetsChanged(doc)) {
  9463. return doc;
  9464. }
  9465. }
  9466. };
  9467. extractTitleAndBody = function(doc) {
  9468. var title;
  9469. title = doc.querySelector('title');
  9470. return [title != null ? title.textContent : void 0, removeNoscriptTags(doc.querySelector('body')), CSRFToken.get(doc).token, 'runScripts'];
  9471. };
  9472. CSRFToken = {
  9473. get: function(doc) {
  9474. var tag;
  9475. if (doc == null) {
  9476. doc = document;
  9477. }
  9478. return {
  9479. node: tag = doc.querySelector('meta[name="csrf-token"]'),
  9480. token: tag != null ? typeof tag.getAttribute === "function" ? tag.getAttribute('content') : void 0 : void 0
  9481. };
  9482. },
  9483. update: function(latest) {
  9484. var current;
  9485. current = this.get();
  9486. if ((current.token != null) && (latest != null) && current.token !== latest) {
  9487. return current.node.setAttribute('content', latest);
  9488. }
  9489. }
  9490. };
  9491. createDocument = function(html) {
  9492. var doc;
  9493. doc = document.documentElement.cloneNode();
  9494. doc.innerHTML = html;
  9495. doc.head = doc.querySelector('head');
  9496. doc.body = doc.querySelector('body');
  9497. return doc;
  9498. };
  9499. ComponentUrl = (function() {
  9500. function ComponentUrl(original1) {
  9501. this.original = original1 != null ? original1 : document.location.href;
  9502. if (this.original.constructor === ComponentUrl) {
  9503. return this.original;
  9504. }
  9505. this._parse();
  9506. }
  9507. ComponentUrl.prototype.withoutHash = function() {
  9508. return this.href.replace(this.hash, '').replace('#', '');
  9509. };
  9510. ComponentUrl.prototype.withoutHashForIE10compatibility = function() {
  9511. return this.withoutHash();
  9512. };
  9513. ComponentUrl.prototype.hasNoHash = function() {
  9514. return this.hash.length === 0;
  9515. };
  9516. ComponentUrl.prototype.crossOrigin = function() {
  9517. return this.origin !== (new ComponentUrl).origin;
  9518. };
  9519. ComponentUrl.prototype._parse = function() {
  9520. var ref;
  9521. (this.link != null ? this.link : this.link = document.createElement('a')).href = this.original;
  9522. ref = this.link, this.href = ref.href, this.protocol = ref.protocol, this.host = ref.host, this.hostname = ref.hostname, this.port = ref.port, this.pathname = ref.pathname, this.search = ref.search, this.hash = ref.hash;
  9523. this.origin = [this.protocol, '//', this.hostname].join('');
  9524. if (this.port.length !== 0) {
  9525. this.origin += ":" + this.port;
  9526. }
  9527. this.relative = [this.pathname, this.search, this.hash].join('');
  9528. return this.absolute = this.href;
  9529. };
  9530. return ComponentUrl;
  9531. })();
  9532. Link = (function(superClass) {
  9533. extend(Link, superClass);
  9534. Link.HTML_EXTENSIONS = ['html'];
  9535. Link.allowExtensions = function() {
  9536. var extension, extensions, i, len;
  9537. extensions = 1 <= arguments.length ? slice.call(arguments, 0) : [];
  9538. for (i = 0, len = extensions.length; i < len; i++) {
  9539. extension = extensions[i];
  9540. Link.HTML_EXTENSIONS.push(extension);
  9541. }
  9542. return Link.HTML_EXTENSIONS;
  9543. };
  9544. function Link(link1) {
  9545. this.link = link1;
  9546. if (this.link.constructor === Link) {
  9547. return this.link;
  9548. }
  9549. this.original = this.link.href;
  9550. this.originalElement = this.link;
  9551. this.link = this.link.cloneNode(false);
  9552. Link.__super__.constructor.apply(this, arguments);
  9553. }
  9554. Link.prototype.shouldIgnore = function() {
  9555. return this.crossOrigin() || this._anchored() || this._nonHtml() || this._optOut() || this._target();
  9556. };
  9557. Link.prototype._anchored = function() {
  9558. return (this.hash.length > 0 || this.href.charAt(this.href.length - 1) === '#') && (this.withoutHash() === (new ComponentUrl).withoutHash());
  9559. };
  9560. Link.prototype._nonHtml = function() {
  9561. return this.pathname.match(/\.[a-z]+$/g) && !this.pathname.match(new RegExp("\\.(?:" + (Link.HTML_EXTENSIONS.join('|')) + ")?$", 'g'));
  9562. };
  9563. Link.prototype._optOut = function() {
  9564. var ignore, link;
  9565. link = this.originalElement;
  9566. while (!(ignore || link === document)) {
  9567. ignore = link.getAttribute('data-no-turbolink') != null;
  9568. link = link.parentNode;
  9569. }
  9570. return ignore;
  9571. };
  9572. Link.prototype._target = function() {
  9573. return this.link.target.length !== 0;
  9574. };
  9575. return Link;
  9576. })(ComponentUrl);
  9577. Click = (function() {
  9578. Click.installHandlerLast = function(event) {
  9579. if (!event.defaultPrevented) {
  9580. document.removeEventListener('click', Click.handle, false);
  9581. return document.addEventListener('click', Click.handle, false);
  9582. }
  9583. };
  9584. Click.handle = function(event) {
  9585. return new Click(event);
  9586. };
  9587. function Click(event1) {
  9588. this.event = event1;
  9589. if (this.event.defaultPrevented) {
  9590. return;
  9591. }
  9592. this._extractLink();
  9593. if (this._validForTurbolinks()) {
  9594. if (!pageChangePrevented(this.link.absolute)) {
  9595. visit(this.link.href);
  9596. }
  9597. this.event.preventDefault();
  9598. }
  9599. }
  9600. Click.prototype._extractLink = function() {
  9601. var link;
  9602. link = this.event.target;
  9603. while (!(!link.parentNode || link.nodeName === 'A')) {
  9604. link = link.parentNode;
  9605. }
  9606. if (link.nodeName === 'A' && link.href.length !== 0) {
  9607. return this.link = new Link(link);
  9608. }
  9609. };
  9610. Click.prototype._validForTurbolinks = function() {
  9611. return (this.link != null) && !(this.link.shouldIgnore() || this._nonStandardClick());
  9612. };
  9613. Click.prototype._nonStandardClick = function() {
  9614. return this.event.which > 1 || this.event.metaKey || this.event.ctrlKey || this.event.shiftKey || this.event.altKey;
  9615. };
  9616. return Click;
  9617. })();
  9618. ProgressBar = (function() {
  9619. var className;
  9620. className = 'turbolinks-progress-bar';
  9621. function ProgressBar(elementSelector) {
  9622. this.elementSelector = elementSelector;
  9623. this._trickle = bind(this._trickle, this);
  9624. this.value = 0;
  9625. this.content = '';
  9626. this.speed = 300;
  9627. this.opacity = 0.99;
  9628. this.install();
  9629. }
  9630. ProgressBar.prototype.install = function() {
  9631. this.element = document.querySelector(this.elementSelector);
  9632. this.element.classList.add(className);
  9633. this.styleElement = document.createElement('style');
  9634. document.head.appendChild(this.styleElement);
  9635. return this._updateStyle();
  9636. };
  9637. ProgressBar.prototype.uninstall = function() {
  9638. this.element.classList.remove(className);
  9639. return document.head.removeChild(this.styleElement);
  9640. };
  9641. ProgressBar.prototype.start = function() {
  9642. return this.advanceTo(5);
  9643. };
  9644. ProgressBar.prototype.advanceTo = function(value) {
  9645. var ref;
  9646. if ((value > (ref = this.value) && ref <= 100)) {
  9647. this.value = value;
  9648. this._updateStyle();
  9649. if (this.value === 100) {
  9650. return this._stopTrickle();
  9651. } else if (this.value > 0) {
  9652. return this._startTrickle();
  9653. }
  9654. }
  9655. };
  9656. ProgressBar.prototype.done = function() {
  9657. if (this.value > 0) {
  9658. this.advanceTo(100);
  9659. return this._reset();
  9660. }
  9661. };
  9662. ProgressBar.prototype._reset = function() {
  9663. var originalOpacity;
  9664. originalOpacity = this.opacity;
  9665. setTimeout((function(_this) {
  9666. return function() {
  9667. _this.opacity = 0;
  9668. return _this._updateStyle();
  9669. };
  9670. })(this), this.speed / 2);
  9671. return setTimeout((function(_this) {
  9672. return function() {
  9673. _this.value = 0;
  9674. _this.opacity = originalOpacity;
  9675. return _this._withSpeed(0, function() {
  9676. return _this._updateStyle(true);
  9677. });
  9678. };
  9679. })(this), this.speed);
  9680. };
  9681. ProgressBar.prototype._startTrickle = function() {
  9682. if (this.trickling) {
  9683. return;
  9684. }
  9685. this.trickling = true;
  9686. return setTimeout(this._trickle, this.speed);
  9687. };
  9688. ProgressBar.prototype._stopTrickle = function() {
  9689. return delete this.trickling;
  9690. };
  9691. ProgressBar.prototype._trickle = function() {
  9692. if (!this.trickling) {
  9693. return;
  9694. }
  9695. this.advanceTo(this.value + Math.random() / 2);
  9696. return setTimeout(this._trickle, this.speed);
  9697. };
  9698. ProgressBar.prototype._withSpeed = function(speed, fn) {
  9699. var originalSpeed, result;
  9700. originalSpeed = this.speed;
  9701. this.speed = speed;
  9702. result = fn();
  9703. this.speed = originalSpeed;
  9704. return result;
  9705. };
  9706. ProgressBar.prototype._updateStyle = function(forceRepaint) {
  9707. if (forceRepaint == null) {
  9708. forceRepaint = false;
  9709. }
  9710. if (forceRepaint) {
  9711. this._changeContentToForceRepaint();
  9712. }
  9713. return this.styleElement.textContent = this._createCSSRule();
  9714. };
  9715. ProgressBar.prototype._changeContentToForceRepaint = function() {
  9716. return this.content = this.content === '' ? ' ' : '';
  9717. };
  9718. ProgressBar.prototype._createCSSRule = function() {
  9719. return this.elementSelector + "." + className + "::before {\n content: '" + this.content + "';\n position: fixed;\n top: 0;\n left: 0;\n z-index: 2000;\n background-color: #0076ff;\n height: 3px;\n opacity: " + this.opacity + ";\n width: " + this.value + "%;\n transition: width " + this.speed + "ms ease-out, opacity " + (this.speed / 2) + "ms ease-in;\n transform: translate3d(0,0,0);\n}";
  9720. };
  9721. return ProgressBar;
  9722. })();
  9723. bypassOnLoadPopstate = function(fn) {
  9724. return setTimeout(fn, 500);
  9725. };
  9726. installDocumentReadyPageEventTriggers = function() {
  9727. return document.addEventListener('DOMContentLoaded', (function() {
  9728. triggerEvent(EVENTS.CHANGE);
  9729. return triggerEvent(EVENTS.UPDATE);
  9730. }), true);
  9731. };
  9732. installJqueryAjaxSuccessPageUpdateTrigger = function() {
  9733. if (typeof jQuery !== 'undefined') {
  9734. return jQuery(document).on('ajaxSuccess', function(event, xhr, settings) {
  9735. if (!jQuery.trim(xhr.responseText)) {
  9736. return;
  9737. }
  9738. return triggerEvent(EVENTS.UPDATE);
  9739. });
  9740. }
  9741. };
  9742. installHistoryChangeHandler = function(event) {
  9743. var cachedPage, ref;
  9744. if ((ref = event.state) != null ? ref.turbolinks : void 0) {
  9745. if (cachedPage = pageCache[(new ComponentUrl(event.state.url)).absolute]) {
  9746. cacheCurrentPage();
  9747. return fetchHistory(cachedPage);
  9748. } else {
  9749. return visit(event.target.location.href);
  9750. }
  9751. }
  9752. };
  9753. initializeTurbolinks = function() {
  9754. rememberCurrentUrl();
  9755. rememberCurrentState();
  9756. document.addEventListener('click', Click.installHandlerLast, true);
  9757. window.addEventListener('hashchange', function(event) {
  9758. rememberCurrentUrl();
  9759. return rememberCurrentState();
  9760. }, false);
  9761. return bypassOnLoadPopstate(function() {
  9762. return window.addEventListener('popstate', installHistoryChangeHandler, false);
  9763. });
  9764. };
  9765. historyStateIsDefined = window.history.state !== void 0 || navigator.userAgent.match(/Firefox\/2[6|7]/);
  9766. browserSupportsPushState = window.history && window.history.pushState && window.history.replaceState && historyStateIsDefined;
  9767. browserIsntBuggy = !navigator.userAgent.match(/CriOS\//);
  9768. requestMethodIsSafe = (ref = popCookie('request_method')) === 'GET' || ref === '';
  9769. browserSupportsTurbolinks = browserSupportsPushState && browserIsntBuggy && requestMethodIsSafe;
  9770. browserSupportsCustomEvents = document.addEventListener && document.createEvent;
  9771. if (browserSupportsCustomEvents) {
  9772. installDocumentReadyPageEventTriggers();
  9773. installJqueryAjaxSuccessPageUpdateTrigger();
  9774. }
  9775. if (browserSupportsTurbolinks) {
  9776. visit = fetch;
  9777. initializeTurbolinks();
  9778. } else {
  9779. visit = function(url) {
  9780. return document.location.href = url;
  9781. };
  9782. }
  9783. this.Turbolinks = {
  9784. visit: visit,
  9785. pagesCached: pagesCached,
  9786. enableTransitionCache: enableTransitionCache,
  9787. enableProgressBar: enableProgressBar,
  9788. allowLinkExtensions: Link.allowExtensions,
  9789. supported: browserSupportsTurbolinks,
  9790. EVENTS: clone(EVENTS)
  9791. };
  9792. }).call(this);
  9793. /*!
  9794. * Bootstrap v3.3.5 (http://getbootstrap.com)
  9795. * Copyright 2011-2015 Twitter, Inc.
  9796. * Licensed under the MIT license
  9797. */
  9798. if (typeof jQuery === 'undefined') {
  9799. throw new Error('Bootstrap\'s JavaScript requires jQuery')
  9800. }
  9801. +function ($) {
  9802. 'use strict';
  9803. var version = $.fn.jquery.split(' ')[0].split('.')
  9804. if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1)) {
  9805. throw new Error('Bootstrap\'s JavaScript requires jQuery version 1.9.1 or higher')
  9806. }
  9807. }(jQuery);
  9808. /* ========================================================================
  9809. * Bootstrap: transition.js v3.3.5
  9810. * http://getbootstrap.com/javascript/#transitions
  9811. * ========================================================================
  9812. * Copyright 2011-2015 Twitter, Inc.
  9813. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  9814. * ======================================================================== */
  9815. +function ($) {
  9816. 'use strict';
  9817. // CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/)
  9818. // ============================================================
  9819. function transitionEnd() {
  9820. var el = document.createElement('bootstrap')
  9821. var transEndEventNames = {
  9822. WebkitTransition : 'webkitTransitionEnd',
  9823. MozTransition : 'transitionend',
  9824. OTransition : 'oTransitionEnd otransitionend',
  9825. transition : 'transitionend'
  9826. }
  9827. for (var name in transEndEventNames) {
  9828. if (el.style[name] !== undefined) {
  9829. return { end: transEndEventNames[name] }
  9830. }
  9831. }
  9832. return false // explicit for ie8 ( ._.)
  9833. }
  9834. // http://blog.alexmaccaw.com/css-transitions
  9835. $.fn.emulateTransitionEnd = function (duration) {
  9836. var called = false
  9837. var $el = this
  9838. $(this).one('bsTransitionEnd', function () { called = true })
  9839. var callback = function () { if (!called) $($el).trigger($.support.transition.end) }
  9840. setTimeout(callback, duration)
  9841. return this
  9842. }
  9843. $(function () {
  9844. $.support.transition = transitionEnd()
  9845. if (!$.support.transition) return
  9846. $.event.special.bsTransitionEnd = {
  9847. bindType: $.support.transition.end,
  9848. delegateType: $.support.transition.end,
  9849. handle: function (e) {
  9850. if ($(e.target).is(this)) return e.handleObj.handler.apply(this, arguments)
  9851. }
  9852. }
  9853. })
  9854. }(jQuery);
  9855. /* ========================================================================
  9856. * Bootstrap: alert.js v3.3.5
  9857. * http://getbootstrap.com/javascript/#alerts
  9858. * ========================================================================
  9859. * Copyright 2011-2015 Twitter, Inc.
  9860. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  9861. * ======================================================================== */
  9862. +function ($) {
  9863. 'use strict';
  9864. // ALERT CLASS DEFINITION
  9865. // ======================
  9866. var dismiss = '[data-dismiss="alert"]'
  9867. var Alert = function (el) {
  9868. $(el).on('click', dismiss, this.close)
  9869. }
  9870. Alert.VERSION = '3.3.5'
  9871. Alert.TRANSITION_DURATION = 150
  9872. Alert.prototype.close = function (e) {
  9873. var $this = $(this)
  9874. var selector = $this.attr('data-target')
  9875. if (!selector) {
  9876. selector = $this.attr('href')
  9877. selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
  9878. }
  9879. var $parent = $(selector)
  9880. if (e) e.preventDefault()
  9881. if (!$parent.length) {
  9882. $parent = $this.closest('.alert')
  9883. }
  9884. $parent.trigger(e = $.Event('close.bs.alert'))
  9885. if (e.isDefaultPrevented()) return
  9886. $parent.removeClass('in')
  9887. function removeElement() {
  9888. // detach from parent, fire event then clean up data
  9889. $parent.detach().trigger('closed.bs.alert').remove()
  9890. }
  9891. $.support.transition && $parent.hasClass('fade') ?
  9892. $parent
  9893. .one('bsTransitionEnd', removeElement)
  9894. .emulateTransitionEnd(Alert.TRANSITION_DURATION) :
  9895. removeElement()
  9896. }
  9897. // ALERT PLUGIN DEFINITION
  9898. // =======================
  9899. function Plugin(option) {
  9900. return this.each(function () {
  9901. var $this = $(this)
  9902. var data = $this.data('bs.alert')
  9903. if (!data) $this.data('bs.alert', (data = new Alert(this)))
  9904. if (typeof option == 'string') data[option].call($this)
  9905. })
  9906. }
  9907. var old = $.fn.alert
  9908. $.fn.alert = Plugin
  9909. $.fn.alert.Constructor = Alert
  9910. // ALERT NO CONFLICT
  9911. // =================
  9912. $.fn.alert.noConflict = function () {
  9913. $.fn.alert = old
  9914. return this
  9915. }
  9916. // ALERT DATA-API
  9917. // ==============
  9918. $(document).on('click.bs.alert.data-api', dismiss, Alert.prototype.close)
  9919. }(jQuery);
  9920. /* ========================================================================
  9921. * Bootstrap: button.js v3.3.5
  9922. * http://getbootstrap.com/javascript/#buttons
  9923. * ========================================================================
  9924. * Copyright 2011-2015 Twitter, Inc.
  9925. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  9926. * ======================================================================== */
  9927. +function ($) {
  9928. 'use strict';
  9929. // BUTTON PUBLIC CLASS DEFINITION
  9930. // ==============================
  9931. var Button = function (element, options) {
  9932. this.$element = $(element)
  9933. this.options = $.extend({}, Button.DEFAULTS, options)
  9934. this.isLoading = false
  9935. }
  9936. Button.VERSION = '3.3.5'
  9937. Button.DEFAULTS = {
  9938. loadingText: 'loading...'
  9939. }
  9940. Button.prototype.setState = function (state) {
  9941. var d = 'disabled'
  9942. var $el = this.$element
  9943. var val = $el.is('input') ? 'val' : 'html'
  9944. var data = $el.data()
  9945. state += 'Text'
  9946. if (data.resetText == null) $el.data('resetText', $el[val]())
  9947. // push to event loop to allow forms to submit
  9948. setTimeout($.proxy(function () {
  9949. $el[val](data[state] == null ? this.options[state] : data[state])
  9950. if (state == 'loadingText') {
  9951. this.isLoading = true
  9952. $el.addClass(d).attr(d, d)
  9953. } else if (this.isLoading) {
  9954. this.isLoading = false
  9955. $el.removeClass(d).removeAttr(d)
  9956. }
  9957. }, this), 0)
  9958. }
  9959. Button.prototype.toggle = function () {
  9960. var changed = true
  9961. var $parent = this.$element.closest('[data-toggle="buttons"]')
  9962. if ($parent.length) {
  9963. var $input = this.$element.find('input')
  9964. if ($input.prop('type') == 'radio') {
  9965. if ($input.prop('checked')) changed = false
  9966. $parent.find('.active').removeClass('active')
  9967. this.$element.addClass('active')
  9968. } else if ($input.prop('type') == 'checkbox') {
  9969. if (($input.prop('checked')) !== this.$element.hasClass('active')) changed = false
  9970. this.$element.toggleClass('active')
  9971. }
  9972. $input.prop('checked', this.$element.hasClass('active'))
  9973. if (changed) $input.trigger('change')
  9974. } else {
  9975. this.$element.attr('aria-pressed', !this.$element.hasClass('active'))
  9976. this.$element.toggleClass('active')
  9977. }
  9978. }
  9979. // BUTTON PLUGIN DEFINITION
  9980. // ========================
  9981. function Plugin(option) {
  9982. return this.each(function () {
  9983. var $this = $(this)
  9984. var data = $this.data('bs.button')
  9985. var options = typeof option == 'object' && option
  9986. if (!data) $this.data('bs.button', (data = new Button(this, options)))
  9987. if (option == 'toggle') data.toggle()
  9988. else if (option) data.setState(option)
  9989. })
  9990. }
  9991. var old = $.fn.button
  9992. $.fn.button = Plugin
  9993. $.fn.button.Constructor = Button
  9994. // BUTTON NO CONFLICT
  9995. // ==================
  9996. $.fn.button.noConflict = function () {
  9997. $.fn.button = old
  9998. return this
  9999. }
  10000. // BUTTON DATA-API
  10001. // ===============
  10002. $(document)
  10003. .on('click.bs.button.data-api', '[data-toggle^="button"]', function (e) {
  10004. var $btn = $(e.target)
  10005. if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn')
  10006. Plugin.call($btn, 'toggle')
  10007. if (!($(e.target).is('input[type="radio"]') || $(e.target).is('input[type="checkbox"]'))) e.preventDefault()
  10008. })
  10009. .on('focus.bs.button.data-api blur.bs.button.data-api', '[data-toggle^="button"]', function (e) {
  10010. $(e.target).closest('.btn').toggleClass('focus', /^focus(in)?$/.test(e.type))
  10011. })
  10012. }(jQuery);
  10013. /* ========================================================================
  10014. * Bootstrap: carousel.js v3.3.5
  10015. * http://getbootstrap.com/javascript/#carousel
  10016. * ========================================================================
  10017. * Copyright 2011-2015 Twitter, Inc.
  10018. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  10019. * ======================================================================== */
  10020. +function ($) {
  10021. 'use strict';
  10022. // CAROUSEL CLASS DEFINITION
  10023. // =========================
  10024. var Carousel = function (element, options) {
  10025. this.$element = $(element)
  10026. this.$indicators = this.$element.find('.carousel-indicators')
  10027. this.options = options
  10028. this.paused = null
  10029. this.sliding = null
  10030. this.interval = null
  10031. this.$active = null
  10032. this.$items = null
  10033. this.options.keyboard && this.$element.on('keydown.bs.carousel', $.proxy(this.keydown, this))
  10034. this.options.pause == 'hover' && !('ontouchstart' in document.documentElement) && this.$element
  10035. .on('mouseenter.bs.carousel', $.proxy(this.pause, this))
  10036. .on('mouseleave.bs.carousel', $.proxy(this.cycle, this))
  10037. }
  10038. Carousel.VERSION = '3.3.5'
  10039. Carousel.TRANSITION_DURATION = 600
  10040. Carousel.DEFAULTS = {
  10041. interval: 5000,
  10042. pause: 'hover',
  10043. wrap: true,
  10044. keyboard: true
  10045. }
  10046. Carousel.prototype.keydown = function (e) {
  10047. if (/input|textarea/i.test(e.target.tagName)) return
  10048. switch (e.which) {
  10049. case 37: this.prev(); break
  10050. case 39: this.next(); break
  10051. default: return
  10052. }
  10053. e.preventDefault()
  10054. }
  10055. Carousel.prototype.cycle = function (e) {
  10056. e || (this.paused = false)
  10057. this.interval && clearInterval(this.interval)
  10058. this.options.interval
  10059. && !this.paused
  10060. && (this.interval = setInterval($.proxy(this.next, this), this.options.interval))
  10061. return this
  10062. }
  10063. Carousel.prototype.getItemIndex = function (item) {
  10064. this.$items = item.parent().children('.item')
  10065. return this.$items.index(item || this.$active)
  10066. }
  10067. Carousel.prototype.getItemForDirection = function (direction, active) {
  10068. var activeIndex = this.getItemIndex(active)
  10069. var willWrap = (direction == 'prev' && activeIndex === 0)
  10070. || (direction == 'next' && activeIndex == (this.$items.length - 1))
  10071. if (willWrap && !this.options.wrap) return active
  10072. var delta = direction == 'prev' ? -1 : 1
  10073. var itemIndex = (activeIndex + delta) % this.$items.length
  10074. return this.$items.eq(itemIndex)
  10075. }
  10076. Carousel.prototype.to = function (pos) {
  10077. var that = this
  10078. var activeIndex = this.getItemIndex(this.$active = this.$element.find('.item.active'))
  10079. if (pos > (this.$items.length - 1) || pos < 0) return
  10080. if (this.sliding) return this.$element.one('slid.bs.carousel', function () { that.to(pos) }) // yes, "slid"
  10081. if (activeIndex == pos) return this.pause().cycle()
  10082. return this.slide(pos > activeIndex ? 'next' : 'prev', this.$items.eq(pos))
  10083. }
  10084. Carousel.prototype.pause = function (e) {
  10085. e || (this.paused = true)
  10086. if (this.$element.find('.next, .prev').length && $.support.transition) {
  10087. this.$element.trigger($.support.transition.end)
  10088. this.cycle(true)
  10089. }
  10090. this.interval = clearInterval(this.interval)
  10091. return this
  10092. }
  10093. Carousel.prototype.next = function () {
  10094. if (this.sliding) return
  10095. return this.slide('next')
  10096. }
  10097. Carousel.prototype.prev = function () {
  10098. if (this.sliding) return
  10099. return this.slide('prev')
  10100. }
  10101. Carousel.prototype.slide = function (type, next) {
  10102. var $active = this.$element.find('.item.active')
  10103. var $next = next || this.getItemForDirection(type, $active)
  10104. var isCycling = this.interval
  10105. var direction = type == 'next' ? 'left' : 'right'
  10106. var that = this
  10107. if ($next.hasClass('active')) return (this.sliding = false)
  10108. var relatedTarget = $next[0]
  10109. var slideEvent = $.Event('slide.bs.carousel', {
  10110. relatedTarget: relatedTarget,
  10111. direction: direction
  10112. })
  10113. this.$element.trigger(slideEvent)
  10114. if (slideEvent.isDefaultPrevented()) return
  10115. this.sliding = true
  10116. isCycling && this.pause()
  10117. if (this.$indicators.length) {
  10118. this.$indicators.find('.active').removeClass('active')
  10119. var $nextIndicator = $(this.$indicators.children()[this.getItemIndex($next)])
  10120. $nextIndicator && $nextIndicator.addClass('active')
  10121. }
  10122. var slidEvent = $.Event('slid.bs.carousel', { relatedTarget: relatedTarget, direction: direction }) // yes, "slid"
  10123. if ($.support.transition && this.$element.hasClass('slide')) {
  10124. $next.addClass(type)
  10125. $next[0].offsetWidth // force reflow
  10126. $active.addClass(direction)
  10127. $next.addClass(direction)
  10128. $active
  10129. .one('bsTransitionEnd', function () {
  10130. $next.removeClass([type, direction].join(' ')).addClass('active')
  10131. $active.removeClass(['active', direction].join(' '))
  10132. that.sliding = false
  10133. setTimeout(function () {
  10134. that.$element.trigger(slidEvent)
  10135. }, 0)
  10136. })
  10137. .emulateTransitionEnd(Carousel.TRANSITION_DURATION)
  10138. } else {
  10139. $active.removeClass('active')
  10140. $next.addClass('active')
  10141. this.sliding = false
  10142. this.$element.trigger(slidEvent)
  10143. }
  10144. isCycling && this.cycle()
  10145. return this
  10146. }
  10147. // CAROUSEL PLUGIN DEFINITION
  10148. // ==========================
  10149. function Plugin(option) {
  10150. return this.each(function () {
  10151. var $this = $(this)
  10152. var data = $this.data('bs.carousel')
  10153. var options = $.extend({}, Carousel.DEFAULTS, $this.data(), typeof option == 'object' && option)
  10154. var action = typeof option == 'string' ? option : options.slide
  10155. if (!data) $this.data('bs.carousel', (data = new Carousel(this, options)))
  10156. if (typeof option == 'number') data.to(option)
  10157. else if (action) data[action]()
  10158. else if (options.interval) data.pause().cycle()
  10159. })
  10160. }
  10161. var old = $.fn.carousel
  10162. $.fn.carousel = Plugin
  10163. $.fn.carousel.Constructor = Carousel
  10164. // CAROUSEL NO CONFLICT
  10165. // ====================
  10166. $.fn.carousel.noConflict = function () {
  10167. $.fn.carousel = old
  10168. return this
  10169. }
  10170. // CAROUSEL DATA-API
  10171. // =================
  10172. var clickHandler = function (e) {
  10173. var href
  10174. var $this = $(this)
  10175. var $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) // strip for ie7
  10176. if (!$target.hasClass('carousel')) return
  10177. var options = $.extend({}, $target.data(), $this.data())
  10178. var slideIndex = $this.attr('data-slide-to')
  10179. if (slideIndex) options.interval = false
  10180. Plugin.call($target, options)
  10181. if (slideIndex) {
  10182. $target.data('bs.carousel').to(slideIndex)
  10183. }
  10184. e.preventDefault()
  10185. }
  10186. $(document)
  10187. .on('click.bs.carousel.data-api', '[data-slide]', clickHandler)
  10188. .on('click.bs.carousel.data-api', '[data-slide-to]', clickHandler)
  10189. $(window).on('load', function () {
  10190. $('[data-ride="carousel"]').each(function () {
  10191. var $carousel = $(this)
  10192. Plugin.call($carousel, $carousel.data())
  10193. })
  10194. })
  10195. }(jQuery);
  10196. /* ========================================================================
  10197. * Bootstrap: collapse.js v3.3.5
  10198. * http://getbootstrap.com/javascript/#collapse
  10199. * ========================================================================
  10200. * Copyright 2011-2015 Twitter, Inc.
  10201. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  10202. * ======================================================================== */
  10203. +function ($) {
  10204. 'use strict';
  10205. // COLLAPSE PUBLIC CLASS DEFINITION
  10206. // ================================
  10207. var Collapse = function (element, options) {
  10208. this.$element = $(element)
  10209. this.options = $.extend({}, Collapse.DEFAULTS, options)
  10210. this.$trigger = $('[data-toggle="collapse"][href="#' + element.id + '"],' +
  10211. '[data-toggle="collapse"][data-target="#' + element.id + '"]')
  10212. this.transitioning = null
  10213. if (this.options.parent) {
  10214. this.$parent = this.getParent()
  10215. } else {
  10216. this.addAriaAndCollapsedClass(this.$element, this.$trigger)
  10217. }
  10218. if (this.options.toggle) this.toggle()
  10219. }
  10220. Collapse.VERSION = '3.3.5'
  10221. Collapse.TRANSITION_DURATION = 350
  10222. Collapse.DEFAULTS = {
  10223. toggle: true
  10224. }
  10225. Collapse.prototype.dimension = function () {
  10226. var hasWidth = this.$element.hasClass('width')
  10227. return hasWidth ? 'width' : 'height'
  10228. }
  10229. Collapse.prototype.show = function () {
  10230. if (this.transitioning || this.$element.hasClass('in')) return
  10231. var activesData
  10232. var actives = this.$parent && this.$parent.children('.panel').children('.in, .collapsing')
  10233. if (actives && actives.length) {
  10234. activesData = actives.data('bs.collapse')
  10235. if (activesData && activesData.transitioning) return
  10236. }
  10237. var startEvent = $.Event('show.bs.collapse')
  10238. this.$element.trigger(startEvent)
  10239. if (startEvent.isDefaultPrevented()) return
  10240. if (actives && actives.length) {
  10241. Plugin.call(actives, 'hide')
  10242. activesData || actives.data('bs.collapse', null)
  10243. }
  10244. var dimension = this.dimension()
  10245. this.$element
  10246. .removeClass('collapse')
  10247. .addClass('collapsing')[dimension](0)
  10248. .attr('aria-expanded', true)
  10249. this.$trigger
  10250. .removeClass('collapsed')
  10251. .attr('aria-expanded', true)
  10252. this.transitioning = 1
  10253. var complete = function () {
  10254. this.$element
  10255. .removeClass('collapsing')
  10256. .addClass('collapse in')[dimension]('')
  10257. this.transitioning = 0
  10258. this.$element
  10259. .trigger('shown.bs.collapse')
  10260. }
  10261. if (!$.support.transition) return complete.call(this)
  10262. var scrollSize = $.camelCase(['scroll', dimension].join('-'))
  10263. this.$element
  10264. .one('bsTransitionEnd', $.proxy(complete, this))
  10265. .emulateTransitionEnd(Collapse.TRANSITION_DURATION)[dimension](this.$element[0][scrollSize])
  10266. }
  10267. Collapse.prototype.hide = function () {
  10268. if (this.transitioning || !this.$element.hasClass('in')) return
  10269. var startEvent = $.Event('hide.bs.collapse')
  10270. this.$element.trigger(startEvent)
  10271. if (startEvent.isDefaultPrevented()) return
  10272. var dimension = this.dimension()
  10273. this.$element[dimension](this.$element[dimension]())[0].offsetHeight
  10274. this.$element
  10275. .addClass('collapsing')
  10276. .removeClass('collapse in')
  10277. .attr('aria-expanded', false)
  10278. this.$trigger
  10279. .addClass('collapsed')
  10280. .attr('aria-expanded', false)
  10281. this.transitioning = 1
  10282. var complete = function () {
  10283. this.transitioning = 0
  10284. this.$element
  10285. .removeClass('collapsing')
  10286. .addClass('collapse')
  10287. .trigger('hidden.bs.collapse')
  10288. }
  10289. if (!$.support.transition) return complete.call(this)
  10290. this.$element
  10291. [dimension](0)
  10292. .one('bsTransitionEnd', $.proxy(complete, this))
  10293. .emulateTransitionEnd(Collapse.TRANSITION_DURATION)
  10294. }
  10295. Collapse.prototype.toggle = function () {
  10296. this[this.$element.hasClass('in') ? 'hide' : 'show']()
  10297. }
  10298. Collapse.prototype.getParent = function () {
  10299. return $(this.options.parent)
  10300. .find('[data-toggle="collapse"][data-parent="' + this.options.parent + '"]')
  10301. .each($.proxy(function (i, element) {
  10302. var $element = $(element)
  10303. this.addAriaAndCollapsedClass(getTargetFromTrigger($element), $element)
  10304. }, this))
  10305. .end()
  10306. }
  10307. Collapse.prototype.addAriaAndCollapsedClass = function ($element, $trigger) {
  10308. var isOpen = $element.hasClass('in')
  10309. $element.attr('aria-expanded', isOpen)
  10310. $trigger
  10311. .toggleClass('collapsed', !isOpen)
  10312. .attr('aria-expanded', isOpen)
  10313. }
  10314. function getTargetFromTrigger($trigger) {
  10315. var href
  10316. var target = $trigger.attr('data-target')
  10317. || (href = $trigger.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') // strip for ie7
  10318. return $(target)
  10319. }
  10320. // COLLAPSE PLUGIN DEFINITION
  10321. // ==========================
  10322. function Plugin(option) {
  10323. return this.each(function () {
  10324. var $this = $(this)
  10325. var data = $this.data('bs.collapse')
  10326. var options = $.extend({}, Collapse.DEFAULTS, $this.data(), typeof option == 'object' && option)
  10327. if (!data && options.toggle && /show|hide/.test(option)) options.toggle = false
  10328. if (!data) $this.data('bs.collapse', (data = new Collapse(this, options)))
  10329. if (typeof option == 'string') data[option]()
  10330. })
  10331. }
  10332. var old = $.fn.collapse
  10333. $.fn.collapse = Plugin
  10334. $.fn.collapse.Constructor = Collapse
  10335. // COLLAPSE NO CONFLICT
  10336. // ====================
  10337. $.fn.collapse.noConflict = function () {
  10338. $.fn.collapse = old
  10339. return this
  10340. }
  10341. // COLLAPSE DATA-API
  10342. // =================
  10343. $(document).on('click.bs.collapse.data-api', '[data-toggle="collapse"]', function (e) {
  10344. var $this = $(this)
  10345. if (!$this.attr('data-target')) e.preventDefault()
  10346. var $target = getTargetFromTrigger($this)
  10347. var data = $target.data('bs.collapse')
  10348. var option = data ? 'toggle' : $this.data()
  10349. Plugin.call($target, option)
  10350. })
  10351. }(jQuery);
  10352. /* ========================================================================
  10353. * Bootstrap: dropdown.js v3.3.5
  10354. * http://getbootstrap.com/javascript/#dropdowns
  10355. * ========================================================================
  10356. * Copyright 2011-2015 Twitter, Inc.
  10357. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  10358. * ======================================================================== */
  10359. +function ($) {
  10360. 'use strict';
  10361. // DROPDOWN CLASS DEFINITION
  10362. // =========================
  10363. var backdrop = '.dropdown-backdrop'
  10364. var toggle = '[data-toggle="dropdown"]'
  10365. var Dropdown = function (element) {
  10366. $(element).on('click.bs.dropdown', this.toggle)
  10367. }
  10368. Dropdown.VERSION = '3.3.5'
  10369. function getParent($this) {
  10370. var selector = $this.attr('data-target')
  10371. if (!selector) {
  10372. selector = $this.attr('href')
  10373. selector = selector && /#[A-Za-z]/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
  10374. }
  10375. var $parent = selector && $(selector)
  10376. return $parent && $parent.length ? $parent : $this.parent()
  10377. }
  10378. function clearMenus(e) {
  10379. if (e && e.which === 3) return
  10380. $(backdrop).remove()
  10381. $(toggle).each(function () {
  10382. var $this = $(this)
  10383. var $parent = getParent($this)
  10384. var relatedTarget = { relatedTarget: this }
  10385. if (!$parent.hasClass('open')) return
  10386. if (e && e.type == 'click' && /input|textarea/i.test(e.target.tagName) && $.contains($parent[0], e.target)) return
  10387. $parent.trigger(e = $.Event('hide.bs.dropdown', relatedTarget))
  10388. if (e.isDefaultPrevented()) return
  10389. $this.attr('aria-expanded', 'false')
  10390. $parent.removeClass('open').trigger('hidden.bs.dropdown', relatedTarget)
  10391. })
  10392. }
  10393. Dropdown.prototype.toggle = function (e) {
  10394. var $this = $(this)
  10395. if ($this.is('.disabled, :disabled')) return
  10396. var $parent = getParent($this)
  10397. var isActive = $parent.hasClass('open')
  10398. clearMenus()
  10399. if (!isActive) {
  10400. if ('ontouchstart' in document.documentElement && !$parent.closest('.navbar-nav').length) {
  10401. // if mobile we use a backdrop because click events don't delegate
  10402. $(document.createElement('div'))
  10403. .addClass('dropdown-backdrop')
  10404. .insertAfter($(this))
  10405. .on('click', clearMenus)
  10406. }
  10407. var relatedTarget = { relatedTarget: this }
  10408. $parent.trigger(e = $.Event('show.bs.dropdown', relatedTarget))
  10409. if (e.isDefaultPrevented()) return
  10410. $this
  10411. .trigger('focus')
  10412. .attr('aria-expanded', 'true')
  10413. $parent
  10414. .toggleClass('open')
  10415. .trigger('shown.bs.dropdown', relatedTarget)
  10416. }
  10417. return false
  10418. }
  10419. Dropdown.prototype.keydown = function (e) {
  10420. if (!/(38|40|27|32)/.test(e.which) || /input|textarea/i.test(e.target.tagName)) return
  10421. var $this = $(this)
  10422. e.preventDefault()
  10423. e.stopPropagation()
  10424. if ($this.is('.disabled, :disabled')) return
  10425. var $parent = getParent($this)
  10426. var isActive = $parent.hasClass('open')
  10427. if (!isActive && e.which != 27 || isActive && e.which == 27) {
  10428. if (e.which == 27) $parent.find(toggle).trigger('focus')
  10429. return $this.trigger('click')
  10430. }
  10431. var desc = ' li:not(.disabled):visible a'
  10432. var $items = $parent.find('.dropdown-menu' + desc)
  10433. if (!$items.length) return
  10434. var index = $items.index(e.target)
  10435. if (e.which == 38 && index > 0) index-- // up
  10436. if (e.which == 40 && index < $items.length - 1) index++ // down
  10437. if (!~index) index = 0
  10438. $items.eq(index).trigger('focus')
  10439. }
  10440. // DROPDOWN PLUGIN DEFINITION
  10441. // ==========================
  10442. function Plugin(option) {
  10443. return this.each(function () {
  10444. var $this = $(this)
  10445. var data = $this.data('bs.dropdown')
  10446. if (!data) $this.data('bs.dropdown', (data = new Dropdown(this)))
  10447. if (typeof option == 'string') data[option].call($this)
  10448. })
  10449. }
  10450. var old = $.fn.dropdown
  10451. $.fn.dropdown = Plugin
  10452. $.fn.dropdown.Constructor = Dropdown
  10453. // DROPDOWN NO CONFLICT
  10454. // ====================
  10455. $.fn.dropdown.noConflict = function () {
  10456. $.fn.dropdown = old
  10457. return this
  10458. }
  10459. // APPLY TO STANDARD DROPDOWN ELEMENTS
  10460. // ===================================
  10461. $(document)
  10462. .on('click.bs.dropdown.data-api', clearMenus)
  10463. .on('click.bs.dropdown.data-api', '.dropdown form', function (e) { e.stopPropagation() })
  10464. .on('click.bs.dropdown.data-api', toggle, Dropdown.prototype.toggle)
  10465. .on('keydown.bs.dropdown.data-api', toggle, Dropdown.prototype.keydown)
  10466. .on('keydown.bs.dropdown.data-api', '.dropdown-menu', Dropdown.prototype.keydown)
  10467. }(jQuery);
  10468. /* ========================================================================
  10469. * Bootstrap: modal.js v3.3.5
  10470. * http://getbootstrap.com/javascript/#modals
  10471. * ========================================================================
  10472. * Copyright 2011-2015 Twitter, Inc.
  10473. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  10474. * ======================================================================== */
  10475. +function ($) {
  10476. 'use strict';
  10477. // MODAL CLASS DEFINITION
  10478. // ======================
  10479. var Modal = function (element, options) {
  10480. this.options = options
  10481. this.$body = $(document.body)
  10482. this.$element = $(element)
  10483. this.$dialog = this.$element.find('.modal-dialog')
  10484. this.$backdrop = null
  10485. this.isShown = null
  10486. this.originalBodyPad = null
  10487. this.scrollbarWidth = 0
  10488. this.ignoreBackdropClick = false
  10489. if (this.options.remote) {
  10490. this.$element
  10491. .find('.modal-content')
  10492. .load(this.options.remote, $.proxy(function () {
  10493. this.$element.trigger('loaded.bs.modal')
  10494. }, this))
  10495. }
  10496. }
  10497. Modal.VERSION = '3.3.5'
  10498. Modal.TRANSITION_DURATION = 300
  10499. Modal.BACKDROP_TRANSITION_DURATION = 150
  10500. Modal.DEFAULTS = {
  10501. backdrop: true,
  10502. keyboard: true,
  10503. show: true
  10504. }
  10505. Modal.prototype.toggle = function (_relatedTarget) {
  10506. return this.isShown ? this.hide() : this.show(_relatedTarget)
  10507. }
  10508. Modal.prototype.show = function (_relatedTarget) {
  10509. var that = this
  10510. var e = $.Event('show.bs.modal', { relatedTarget: _relatedTarget })
  10511. this.$element.trigger(e)
  10512. if (this.isShown || e.isDefaultPrevented()) return
  10513. this.isShown = true
  10514. this.checkScrollbar()
  10515. this.setScrollbar()
  10516. this.$body.addClass('modal-open')
  10517. this.escape()
  10518. this.resize()
  10519. this.$element.on('click.dismiss.bs.modal', '[data-dismiss="modal"]', $.proxy(this.hide, this))
  10520. this.$dialog.on('mousedown.dismiss.bs.modal', function () {
  10521. that.$element.one('mouseup.dismiss.bs.modal', function (e) {
  10522. if ($(e.target).is(that.$element)) that.ignoreBackdropClick = true
  10523. })
  10524. })
  10525. this.backdrop(function () {
  10526. var transition = $.support.transition && that.$element.hasClass('fade')
  10527. if (!that.$element.parent().length) {
  10528. that.$element.appendTo(that.$body) // don't move modals dom position
  10529. }
  10530. that.$element
  10531. .show()
  10532. .scrollTop(0)
  10533. that.adjustDialog()
  10534. if (transition) {
  10535. that.$element[0].offsetWidth // force reflow
  10536. }
  10537. that.$element.addClass('in')
  10538. that.enforceFocus()
  10539. var e = $.Event('shown.bs.modal', { relatedTarget: _relatedTarget })
  10540. transition ?
  10541. that.$dialog // wait for modal to slide in
  10542. .one('bsTransitionEnd', function () {
  10543. that.$element.trigger('focus').trigger(e)
  10544. })
  10545. .emulateTransitionEnd(Modal.TRANSITION_DURATION) :
  10546. that.$element.trigger('focus').trigger(e)
  10547. })
  10548. }
  10549. Modal.prototype.hide = function (e) {
  10550. if (e) e.preventDefault()
  10551. e = $.Event('hide.bs.modal')
  10552. this.$element.trigger(e)
  10553. if (!this.isShown || e.isDefaultPrevented()) return
  10554. this.isShown = false
  10555. this.escape()
  10556. this.resize()
  10557. $(document).off('focusin.bs.modal')
  10558. this.$element
  10559. .removeClass('in')
  10560. .off('click.dismiss.bs.modal')
  10561. .off('mouseup.dismiss.bs.modal')
  10562. this.$dialog.off('mousedown.dismiss.bs.modal')
  10563. $.support.transition && this.$element.hasClass('fade') ?
  10564. this.$element
  10565. .one('bsTransitionEnd', $.proxy(this.hideModal, this))
  10566. .emulateTransitionEnd(Modal.TRANSITION_DURATION) :
  10567. this.hideModal()
  10568. }
  10569. Modal.prototype.enforceFocus = function () {
  10570. $(document)
  10571. .off('focusin.bs.modal') // guard against infinite focus loop
  10572. .on('focusin.bs.modal', $.proxy(function (e) {
  10573. if (this.$element[0] !== e.target && !this.$element.has(e.target).length) {
  10574. this.$element.trigger('focus')
  10575. }
  10576. }, this))
  10577. }
  10578. Modal.prototype.escape = function () {
  10579. if (this.isShown && this.options.keyboard) {
  10580. this.$element.on('keydown.dismiss.bs.modal', $.proxy(function (e) {
  10581. e.which == 27 && this.hide()
  10582. }, this))
  10583. } else if (!this.isShown) {
  10584. this.$element.off('keydown.dismiss.bs.modal')
  10585. }
  10586. }
  10587. Modal.prototype.resize = function () {
  10588. if (this.isShown) {
  10589. $(window).on('resize.bs.modal', $.proxy(this.handleUpdate, this))
  10590. } else {
  10591. $(window).off('resize.bs.modal')
  10592. }
  10593. }
  10594. Modal.prototype.hideModal = function () {
  10595. var that = this
  10596. this.$element.hide()
  10597. this.backdrop(function () {
  10598. that.$body.removeClass('modal-open')
  10599. that.resetAdjustments()
  10600. that.resetScrollbar()
  10601. that.$element.trigger('hidden.bs.modal')
  10602. })
  10603. }
  10604. Modal.prototype.removeBackdrop = function () {
  10605. this.$backdrop && this.$backdrop.remove()
  10606. this.$backdrop = null
  10607. }
  10608. Modal.prototype.backdrop = function (callback) {
  10609. var that = this
  10610. var animate = this.$element.hasClass('fade') ? 'fade' : ''
  10611. if (this.isShown && this.options.backdrop) {
  10612. var doAnimate = $.support.transition && animate
  10613. this.$backdrop = $(document.createElement('div'))
  10614. .addClass('modal-backdrop ' + animate)
  10615. .appendTo(this.$body)
  10616. this.$element.on('click.dismiss.bs.modal', $.proxy(function (e) {
  10617. if (this.ignoreBackdropClick) {
  10618. this.ignoreBackdropClick = false
  10619. return
  10620. }
  10621. if (e.target !== e.currentTarget) return
  10622. this.options.backdrop == 'static'
  10623. ? this.$element[0].focus()
  10624. : this.hide()
  10625. }, this))
  10626. if (doAnimate) this.$backdrop[0].offsetWidth // force reflow
  10627. this.$backdrop.addClass('in')
  10628. if (!callback) return
  10629. doAnimate ?
  10630. this.$backdrop
  10631. .one('bsTransitionEnd', callback)
  10632. .emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION) :
  10633. callback()
  10634. } else if (!this.isShown && this.$backdrop) {
  10635. this.$backdrop.removeClass('in')
  10636. var callbackRemove = function () {
  10637. that.removeBackdrop()
  10638. callback && callback()
  10639. }
  10640. $.support.transition && this.$element.hasClass('fade') ?
  10641. this.$backdrop
  10642. .one('bsTransitionEnd', callbackRemove)
  10643. .emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION) :
  10644. callbackRemove()
  10645. } else if (callback) {
  10646. callback()
  10647. }
  10648. }
  10649. // these following methods are used to handle overflowing modals
  10650. Modal.prototype.handleUpdate = function () {
  10651. this.adjustDialog()
  10652. }
  10653. Modal.prototype.adjustDialog = function () {
  10654. var modalIsOverflowing = this.$element[0].scrollHeight > document.documentElement.clientHeight
  10655. this.$element.css({
  10656. paddingLeft: !this.bodyIsOverflowing && modalIsOverflowing ? this.scrollbarWidth : '',
  10657. paddingRight: this.bodyIsOverflowing && !modalIsOverflowing ? this.scrollbarWidth : ''
  10658. })
  10659. }
  10660. Modal.prototype.resetAdjustments = function () {
  10661. this.$element.css({
  10662. paddingLeft: '',
  10663. paddingRight: ''
  10664. })
  10665. }
  10666. Modal.prototype.checkScrollbar = function () {
  10667. var fullWindowWidth = window.innerWidth
  10668. if (!fullWindowWidth) { // workaround for missing window.innerWidth in IE8
  10669. var documentElementRect = document.documentElement.getBoundingClientRect()
  10670. fullWindowWidth = documentElementRect.right - Math.abs(documentElementRect.left)
  10671. }
  10672. this.bodyIsOverflowing = document.body.clientWidth < fullWindowWidth
  10673. this.scrollbarWidth = this.measureScrollbar()
  10674. }
  10675. Modal.prototype.setScrollbar = function () {
  10676. var bodyPad = parseInt((this.$body.css('padding-right') || 0), 10)
  10677. this.originalBodyPad = document.body.style.paddingRight || ''
  10678. if (this.bodyIsOverflowing) this.$body.css('padding-right', bodyPad + this.scrollbarWidth)
  10679. }
  10680. Modal.prototype.resetScrollbar = function () {
  10681. this.$body.css('padding-right', this.originalBodyPad)
  10682. }
  10683. Modal.prototype.measureScrollbar = function () { // thx walsh
  10684. var scrollDiv = document.createElement('div')
  10685. scrollDiv.className = 'modal-scrollbar-measure'
  10686. this.$body.append(scrollDiv)
  10687. var scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth
  10688. this.$body[0].removeChild(scrollDiv)
  10689. return scrollbarWidth
  10690. }
  10691. // MODAL PLUGIN DEFINITION
  10692. // =======================
  10693. function Plugin(option, _relatedTarget) {
  10694. return this.each(function () {
  10695. var $this = $(this)
  10696. var data = $this.data('bs.modal')
  10697. var options = $.extend({}, Modal.DEFAULTS, $this.data(), typeof option == 'object' && option)
  10698. if (!data) $this.data('bs.modal', (data = new Modal(this, options)))
  10699. if (typeof option == 'string') data[option](_relatedTarget)
  10700. else if (options.show) data.show(_relatedTarget)
  10701. })
  10702. }
  10703. var old = $.fn.modal
  10704. $.fn.modal = Plugin
  10705. $.fn.modal.Constructor = Modal
  10706. // MODAL NO CONFLICT
  10707. // =================
  10708. $.fn.modal.noConflict = function () {
  10709. $.fn.modal = old
  10710. return this
  10711. }
  10712. // MODAL DATA-API
  10713. // ==============
  10714. $(document).on('click.bs.modal.data-api', '[data-toggle="modal"]', function (e) {
  10715. var $this = $(this)
  10716. var href = $this.attr('href')
  10717. var $target = $($this.attr('data-target') || (href && href.replace(/.*(?=#[^\s]+$)/, ''))) // strip for ie7
  10718. var option = $target.data('bs.modal') ? 'toggle' : $.extend({ remote: !/#/.test(href) && href }, $target.data(), $this.data())
  10719. if ($this.is('a')) e.preventDefault()
  10720. $target.one('show.bs.modal', function (showEvent) {
  10721. if (showEvent.isDefaultPrevented()) return // only register focus restorer if modal will actually get shown
  10722. $target.one('hidden.bs.modal', function () {
  10723. $this.is(':visible') && $this.trigger('focus')
  10724. })
  10725. })
  10726. Plugin.call($target, option, this)
  10727. })
  10728. }(jQuery);
  10729. /* ========================================================================
  10730. * Bootstrap: tooltip.js v3.3.5
  10731. * http://getbootstrap.com/javascript/#tooltip
  10732. * Inspired by the original jQuery.tipsy by Jason Frame
  10733. * ========================================================================
  10734. * Copyright 2011-2015 Twitter, Inc.
  10735. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  10736. * ======================================================================== */
  10737. +function ($) {
  10738. 'use strict';
  10739. // TOOLTIP PUBLIC CLASS DEFINITION
  10740. // ===============================
  10741. var Tooltip = function (element, options) {
  10742. this.type = null
  10743. this.options = null
  10744. this.enabled = null
  10745. this.timeout = null
  10746. this.hoverState = null
  10747. this.$element = null
  10748. this.inState = null
  10749. this.init('tooltip', element, options)
  10750. }
  10751. Tooltip.VERSION = '3.3.5'
  10752. Tooltip.TRANSITION_DURATION = 150
  10753. Tooltip.DEFAULTS = {
  10754. animation: true,
  10755. placement: 'top',
  10756. selector: false,
  10757. template: '<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',
  10758. trigger: 'hover focus',
  10759. title: '',
  10760. delay: 0,
  10761. html: false,
  10762. container: false,
  10763. viewport: {
  10764. selector: 'body',
  10765. padding: 0
  10766. }
  10767. }
  10768. Tooltip.prototype.init = function (type, element, options) {
  10769. this.enabled = true
  10770. this.type = type
  10771. this.$element = $(element)
  10772. this.options = this.getOptions(options)
  10773. this.$viewport = this.options.viewport && $($.isFunction(this.options.viewport) ? this.options.viewport.call(this, this.$element) : (this.options.viewport.selector || this.options.viewport))
  10774. this.inState = { click: false, hover: false, focus: false }
  10775. if (this.$element[0] instanceof document.constructor && !this.options.selector) {
  10776. throw new Error('`selector` option must be specified when initializing ' + this.type + ' on the window.document object!')
  10777. }
  10778. var triggers = this.options.trigger.split(' ')
  10779. for (var i = triggers.length; i--;) {
  10780. var trigger = triggers[i]
  10781. if (trigger == 'click') {
  10782. this.$element.on('click.' + this.type, this.options.selector, $.proxy(this.toggle, this))
  10783. } else if (trigger != 'manual') {
  10784. var eventIn = trigger == 'hover' ? 'mouseenter' : 'focusin'
  10785. var eventOut = trigger == 'hover' ? 'mouseleave' : 'focusout'
  10786. this.$element.on(eventIn + '.' + this.type, this.options.selector, $.proxy(this.enter, this))
  10787. this.$element.on(eventOut + '.' + this.type, this.options.selector, $.proxy(this.leave, this))
  10788. }
  10789. }
  10790. this.options.selector ?
  10791. (this._options = $.extend({}, this.options, { trigger: 'manual', selector: '' })) :
  10792. this.fixTitle()
  10793. }
  10794. Tooltip.prototype.getDefaults = function () {
  10795. return Tooltip.DEFAULTS
  10796. }
  10797. Tooltip.prototype.getOptions = function (options) {
  10798. options = $.extend({}, this.getDefaults(), this.$element.data(), options)
  10799. if (options.delay && typeof options.delay == 'number') {
  10800. options.delay = {
  10801. show: options.delay,
  10802. hide: options.delay
  10803. }
  10804. }
  10805. return options
  10806. }
  10807. Tooltip.prototype.getDelegateOptions = function () {
  10808. var options = {}
  10809. var defaults = this.getDefaults()
  10810. this._options && $.each(this._options, function (key, value) {
  10811. if (defaults[key] != value) options[key] = value
  10812. })
  10813. return options
  10814. }
  10815. Tooltip.prototype.enter = function (obj) {
  10816. var self = obj instanceof this.constructor ?
  10817. obj : $(obj.currentTarget).data('bs.' + this.type)
  10818. if (!self) {
  10819. self = new this.constructor(obj.currentTarget, this.getDelegateOptions())
  10820. $(obj.currentTarget).data('bs.' + this.type, self)
  10821. }
  10822. if (obj instanceof $.Event) {
  10823. self.inState[obj.type == 'focusin' ? 'focus' : 'hover'] = true
  10824. }
  10825. if (self.tip().hasClass('in') || self.hoverState == 'in') {
  10826. self.hoverState = 'in'
  10827. return
  10828. }
  10829. clearTimeout(self.timeout)
  10830. self.hoverState = 'in'
  10831. if (!self.options.delay || !self.options.delay.show) return self.show()
  10832. self.timeout = setTimeout(function () {
  10833. if (self.hoverState == 'in') self.show()
  10834. }, self.options.delay.show)
  10835. }
  10836. Tooltip.prototype.isInStateTrue = function () {
  10837. for (var key in this.inState) {
  10838. if (this.inState[key]) return true
  10839. }
  10840. return false
  10841. }
  10842. Tooltip.prototype.leave = function (obj) {
  10843. var self = obj instanceof this.constructor ?
  10844. obj : $(obj.currentTarget).data('bs.' + this.type)
  10845. if (!self) {
  10846. self = new this.constructor(obj.currentTarget, this.getDelegateOptions())
  10847. $(obj.currentTarget).data('bs.' + this.type, self)
  10848. }
  10849. if (obj instanceof $.Event) {
  10850. self.inState[obj.type == 'focusout' ? 'focus' : 'hover'] = false
  10851. }
  10852. if (self.isInStateTrue()) return
  10853. clearTimeout(self.timeout)
  10854. self.hoverState = 'out'
  10855. if (!self.options.delay || !self.options.delay.hide) return self.hide()
  10856. self.timeout = setTimeout(function () {
  10857. if (self.hoverState == 'out') self.hide()
  10858. }, self.options.delay.hide)
  10859. }
  10860. Tooltip.prototype.show = function () {
  10861. var e = $.Event('show.bs.' + this.type)
  10862. if (this.hasContent() && this.enabled) {
  10863. this.$element.trigger(e)
  10864. var inDom = $.contains(this.$element[0].ownerDocument.documentElement, this.$element[0])
  10865. if (e.isDefaultPrevented() || !inDom) return
  10866. var that = this
  10867. var $tip = this.tip()
  10868. var tipId = this.getUID(this.type)
  10869. this.setContent()
  10870. $tip.attr('id', tipId)
  10871. this.$element.attr('aria-describedby', tipId)
  10872. if (this.options.animation) $tip.addClass('fade')
  10873. var placement = typeof this.options.placement == 'function' ?
  10874. this.options.placement.call(this, $tip[0], this.$element[0]) :
  10875. this.options.placement
  10876. var autoToken = /\s?auto?\s?/i
  10877. var autoPlace = autoToken.test(placement)
  10878. if (autoPlace) placement = placement.replace(autoToken, '') || 'top'
  10879. $tip
  10880. .detach()
  10881. .css({ top: 0, left: 0, display: 'block' })
  10882. .addClass(placement)
  10883. .data('bs.' + this.type, this)
  10884. this.options.container ? $tip.appendTo(this.options.container) : $tip.insertAfter(this.$element)
  10885. this.$element.trigger('inserted.bs.' + this.type)
  10886. var pos = this.getPosition()
  10887. var actualWidth = $tip[0].offsetWidth
  10888. var actualHeight = $tip[0].offsetHeight
  10889. if (autoPlace) {
  10890. var orgPlacement = placement
  10891. var viewportDim = this.getPosition(this.$viewport)
  10892. placement = placement == 'bottom' && pos.bottom + actualHeight > viewportDim.bottom ? 'top' :
  10893. placement == 'top' && pos.top - actualHeight < viewportDim.top ? 'bottom' :
  10894. placement == 'right' && pos.right + actualWidth > viewportDim.width ? 'left' :
  10895. placement == 'left' && pos.left - actualWidth < viewportDim.left ? 'right' :
  10896. placement
  10897. $tip
  10898. .removeClass(orgPlacement)
  10899. .addClass(placement)
  10900. }
  10901. var calculatedOffset = this.getCalculatedOffset(placement, pos, actualWidth, actualHeight)
  10902. this.applyPlacement(calculatedOffset, placement)
  10903. var complete = function () {
  10904. var prevHoverState = that.hoverState
  10905. that.$element.trigger('shown.bs.' + that.type)
  10906. that.hoverState = null
  10907. if (prevHoverState == 'out') that.leave(that)
  10908. }
  10909. $.support.transition && this.$tip.hasClass('fade') ?
  10910. $tip
  10911. .one('bsTransitionEnd', complete)
  10912. .emulateTransitionEnd(Tooltip.TRANSITION_DURATION) :
  10913. complete()
  10914. }
  10915. }
  10916. Tooltip.prototype.applyPlacement = function (offset, placement) {
  10917. var $tip = this.tip()
  10918. var width = $tip[0].offsetWidth
  10919. var height = $tip[0].offsetHeight
  10920. // manually read margins because getBoundingClientRect includes difference
  10921. var marginTop = parseInt($tip.css('margin-top'), 10)
  10922. var marginLeft = parseInt($tip.css('margin-left'), 10)
  10923. // we must check for NaN for ie 8/9
  10924. if (isNaN(marginTop)) marginTop = 0
  10925. if (isNaN(marginLeft)) marginLeft = 0
  10926. offset.top += marginTop
  10927. offset.left += marginLeft
  10928. // $.fn.offset doesn't round pixel values
  10929. // so we use setOffset directly with our own function B-0
  10930. $.offset.setOffset($tip[0], $.extend({
  10931. using: function (props) {
  10932. $tip.css({
  10933. top: Math.round(props.top),
  10934. left: Math.round(props.left)
  10935. })
  10936. }
  10937. }, offset), 0)
  10938. $tip.addClass('in')
  10939. // check to see if placing tip in new offset caused the tip to resize itself
  10940. var actualWidth = $tip[0].offsetWidth
  10941. var actualHeight = $tip[0].offsetHeight
  10942. if (placement == 'top' && actualHeight != height) {
  10943. offset.top = offset.top + height - actualHeight
  10944. }
  10945. var delta = this.getViewportAdjustedDelta(placement, offset, actualWidth, actualHeight)
  10946. if (delta.left) offset.left += delta.left
  10947. else offset.top += delta.top
  10948. var isVertical = /top|bottom/.test(placement)
  10949. var arrowDelta = isVertical ? delta.left * 2 - width + actualWidth : delta.top * 2 - height + actualHeight
  10950. var arrowOffsetPosition = isVertical ? 'offsetWidth' : 'offsetHeight'
  10951. $tip.offset(offset)
  10952. this.replaceArrow(arrowDelta, $tip[0][arrowOffsetPosition], isVertical)
  10953. }
  10954. Tooltip.prototype.replaceArrow = function (delta, dimension, isVertical) {
  10955. this.arrow()
  10956. .css(isVertical ? 'left' : 'top', 50 * (1 - delta / dimension) + '%')
  10957. .css(isVertical ? 'top' : 'left', '')
  10958. }
  10959. Tooltip.prototype.setContent = function () {
  10960. var $tip = this.tip()
  10961. var title = this.getTitle()
  10962. $tip.find('.tooltip-inner')[this.options.html ? 'html' : 'text'](title)
  10963. $tip.removeClass('fade in top bottom left right')
  10964. }
  10965. Tooltip.prototype.hide = function (callback) {
  10966. var that = this
  10967. var $tip = $(this.$tip)
  10968. var e = $.Event('hide.bs.' + this.type)
  10969. function complete() {
  10970. if (that.hoverState != 'in') $tip.detach()
  10971. that.$element
  10972. .removeAttr('aria-describedby')
  10973. .trigger('hidden.bs.' + that.type)
  10974. callback && callback()
  10975. }
  10976. this.$element.trigger(e)
  10977. if (e.isDefaultPrevented()) return
  10978. $tip.removeClass('in')
  10979. $.support.transition && $tip.hasClass('fade') ?
  10980. $tip
  10981. .one('bsTransitionEnd', complete)
  10982. .emulateTransitionEnd(Tooltip.TRANSITION_DURATION) :
  10983. complete()
  10984. this.hoverState = null
  10985. return this
  10986. }
  10987. Tooltip.prototype.fixTitle = function () {
  10988. var $e = this.$element
  10989. if ($e.attr('title') || typeof $e.attr('data-original-title') != 'string') {
  10990. $e.attr('data-original-title', $e.attr('title') || '').attr('title', '')
  10991. }
  10992. }
  10993. Tooltip.prototype.hasContent = function () {
  10994. return this.getTitle()
  10995. }
  10996. Tooltip.prototype.getPosition = function ($element) {
  10997. $element = $element || this.$element
  10998. var el = $element[0]
  10999. var isBody = el.tagName == 'BODY'
  11000. var elRect = el.getBoundingClientRect()
  11001. if (elRect.width == null) {
  11002. // width and height are missing in IE8, so compute them manually; see https://github.com/twbs/bootstrap/issues/14093
  11003. elRect = $.extend({}, elRect, { width: elRect.right - elRect.left, height: elRect.bottom - elRect.top })
  11004. }
  11005. var elOffset = isBody ? { top: 0, left: 0 } : $element.offset()
  11006. var scroll = { scroll: isBody ? document.documentElement.scrollTop || document.body.scrollTop : $element.scrollTop() }
  11007. var outerDims = isBody ? { width: $(window).width(), height: $(window).height() } : null
  11008. return $.extend({}, elRect, scroll, outerDims, elOffset)
  11009. }
  11010. Tooltip.prototype.getCalculatedOffset = function (placement, pos, actualWidth, actualHeight) {
  11011. return placement == 'bottom' ? { top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2 } :
  11012. placement == 'top' ? { top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2 } :
  11013. placement == 'left' ? { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth } :
  11014. /* placement == 'right' */ { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width }
  11015. }
  11016. Tooltip.prototype.getViewportAdjustedDelta = function (placement, pos, actualWidth, actualHeight) {
  11017. var delta = { top: 0, left: 0 }
  11018. if (!this.$viewport) return delta
  11019. var viewportPadding = this.options.viewport && this.options.viewport.padding || 0
  11020. var viewportDimensions = this.getPosition(this.$viewport)
  11021. if (/right|left/.test(placement)) {
  11022. var topEdgeOffset = pos.top - viewportPadding - viewportDimensions.scroll
  11023. var bottomEdgeOffset = pos.top + viewportPadding - viewportDimensions.scroll + actualHeight
  11024. if (topEdgeOffset < viewportDimensions.top) { // top overflow
  11025. delta.top = viewportDimensions.top - topEdgeOffset
  11026. } else if (bottomEdgeOffset > viewportDimensions.top + viewportDimensions.height) { // bottom overflow
  11027. delta.top = viewportDimensions.top + viewportDimensions.height - bottomEdgeOffset
  11028. }
  11029. } else {
  11030. var leftEdgeOffset = pos.left - viewportPadding
  11031. var rightEdgeOffset = pos.left + viewportPadding + actualWidth
  11032. if (leftEdgeOffset < viewportDimensions.left) { // left overflow
  11033. delta.left = viewportDimensions.left - leftEdgeOffset
  11034. } else if (rightEdgeOffset > viewportDimensions.right) { // right overflow
  11035. delta.left = viewportDimensions.left + viewportDimensions.width - rightEdgeOffset
  11036. }
  11037. }
  11038. return delta
  11039. }
  11040. Tooltip.prototype.getTitle = function () {
  11041. var title
  11042. var $e = this.$element
  11043. var o = this.options
  11044. title = $e.attr('data-original-title')
  11045. || (typeof o.title == 'function' ? o.title.call($e[0]) : o.title)
  11046. return title
  11047. }
  11048. Tooltip.prototype.getUID = function (prefix) {
  11049. do prefix += ~~(Math.random() * 1000000)
  11050. while (document.getElementById(prefix))
  11051. return prefix
  11052. }
  11053. Tooltip.prototype.tip = function () {
  11054. if (!this.$tip) {
  11055. this.$tip = $(this.options.template)
  11056. if (this.$tip.length != 1) {
  11057. throw new Error(this.type + ' `template` option must consist of exactly 1 top-level element!')
  11058. }
  11059. }
  11060. return this.$tip
  11061. }
  11062. Tooltip.prototype.arrow = function () {
  11063. return (this.$arrow = this.$arrow || this.tip().find('.tooltip-arrow'))
  11064. }
  11065. Tooltip.prototype.enable = function () {
  11066. this.enabled = true
  11067. }
  11068. Tooltip.prototype.disable = function () {
  11069. this.enabled = false
  11070. }
  11071. Tooltip.prototype.toggleEnabled = function () {
  11072. this.enabled = !this.enabled
  11073. }
  11074. Tooltip.prototype.toggle = function (e) {
  11075. var self = this
  11076. if (e) {
  11077. self = $(e.currentTarget).data('bs.' + this.type)
  11078. if (!self) {
  11079. self = new this.constructor(e.currentTarget, this.getDelegateOptions())
  11080. $(e.currentTarget).data('bs.' + this.type, self)
  11081. }
  11082. }
  11083. if (e) {
  11084. self.inState.click = !self.inState.click
  11085. if (self.isInStateTrue()) self.enter(self)
  11086. else self.leave(self)
  11087. } else {
  11088. self.tip().hasClass('in') ? self.leave(self) : self.enter(self)
  11089. }
  11090. }
  11091. Tooltip.prototype.destroy = function () {
  11092. var that = this
  11093. clearTimeout(this.timeout)
  11094. this.hide(function () {
  11095. that.$element.off('.' + that.type).removeData('bs.' + that.type)
  11096. if (that.$tip) {
  11097. that.$tip.detach()
  11098. }
  11099. that.$tip = null
  11100. that.$arrow = null
  11101. that.$viewport = null
  11102. })
  11103. }
  11104. // TOOLTIP PLUGIN DEFINITION
  11105. // =========================
  11106. function Plugin(option) {
  11107. return this.each(function () {
  11108. var $this = $(this)
  11109. var data = $this.data('bs.tooltip')
  11110. var options = typeof option == 'object' && option
  11111. if (!data && /destroy|hide/.test(option)) return
  11112. if (!data) $this.data('bs.tooltip', (data = new Tooltip(this, options)))
  11113. if (typeof option == 'string') data[option]()
  11114. })
  11115. }
  11116. var old = $.fn.tooltip
  11117. $.fn.tooltip = Plugin
  11118. $.fn.tooltip.Constructor = Tooltip
  11119. // TOOLTIP NO CONFLICT
  11120. // ===================
  11121. $.fn.tooltip.noConflict = function () {
  11122. $.fn.tooltip = old
  11123. return this
  11124. }
  11125. }(jQuery);
  11126. /* ========================================================================
  11127. * Bootstrap: popover.js v3.3.5
  11128. * http://getbootstrap.com/javascript/#popovers
  11129. * ========================================================================
  11130. * Copyright 2011-2015 Twitter, Inc.
  11131. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  11132. * ======================================================================== */
  11133. +function ($) {
  11134. 'use strict';
  11135. // POPOVER PUBLIC CLASS DEFINITION
  11136. // ===============================
  11137. var Popover = function (element, options) {
  11138. this.init('popover', element, options)
  11139. }
  11140. if (!$.fn.tooltip) throw new Error('Popover requires tooltip.js')
  11141. Popover.VERSION = '3.3.5'
  11142. Popover.DEFAULTS = $.extend({}, $.fn.tooltip.Constructor.DEFAULTS, {
  11143. placement: 'right',
  11144. trigger: 'click',
  11145. content: '',
  11146. template: '<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'
  11147. })
  11148. // NOTE: POPOVER EXTENDS tooltip.js
  11149. // ================================
  11150. Popover.prototype = $.extend({}, $.fn.tooltip.Constructor.prototype)
  11151. Popover.prototype.constructor = Popover
  11152. Popover.prototype.getDefaults = function () {
  11153. return Popover.DEFAULTS
  11154. }
  11155. Popover.prototype.setContent = function () {
  11156. var $tip = this.tip()
  11157. var title = this.getTitle()
  11158. var content = this.getContent()
  11159. $tip.find('.popover-title')[this.options.html ? 'html' : 'text'](title)
  11160. $tip.find('.popover-content').children().detach().end()[ // we use append for html objects to maintain js events
  11161. this.options.html ? (typeof content == 'string' ? 'html' : 'append') : 'text'
  11162. ](content)
  11163. $tip.removeClass('fade top bottom left right in')
  11164. // IE8 doesn't accept hiding via the `:empty` pseudo selector, we have to do
  11165. // this manually by checking the contents.
  11166. if (!$tip.find('.popover-title').html()) $tip.find('.popover-title').hide()
  11167. }
  11168. Popover.prototype.hasContent = function () {
  11169. return this.getTitle() || this.getContent()
  11170. }
  11171. Popover.prototype.getContent = function () {
  11172. var $e = this.$element
  11173. var o = this.options
  11174. return $e.attr('data-content')
  11175. || (typeof o.content == 'function' ?
  11176. o.content.call($e[0]) :
  11177. o.content)
  11178. }
  11179. Popover.prototype.arrow = function () {
  11180. return (this.$arrow = this.$arrow || this.tip().find('.arrow'))
  11181. }
  11182. // POPOVER PLUGIN DEFINITION
  11183. // =========================
  11184. function Plugin(option) {
  11185. return this.each(function () {
  11186. var $this = $(this)
  11187. var data = $this.data('bs.popover')
  11188. var options = typeof option == 'object' && option
  11189. if (!data && /destroy|hide/.test(option)) return
  11190. if (!data) $this.data('bs.popover', (data = new Popover(this, options)))
  11191. if (typeof option == 'string') data[option]()
  11192. })
  11193. }
  11194. var old = $.fn.popover
  11195. $.fn.popover = Plugin
  11196. $.fn.popover.Constructor = Popover
  11197. // POPOVER NO CONFLICT
  11198. // ===================
  11199. $.fn.popover.noConflict = function () {
  11200. $.fn.popover = old
  11201. return this
  11202. }
  11203. }(jQuery);
  11204. /* ========================================================================
  11205. * Bootstrap: scrollspy.js v3.3.5
  11206. * http://getbootstrap.com/javascript/#scrollspy
  11207. * ========================================================================
  11208. * Copyright 2011-2015 Twitter, Inc.
  11209. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  11210. * ======================================================================== */
  11211. +function ($) {
  11212. 'use strict';
  11213. // SCROLLSPY CLASS DEFINITION
  11214. // ==========================
  11215. function ScrollSpy(element, options) {
  11216. this.$body = $(document.body)
  11217. this.$scrollElement = $(element).is(document.body) ? $(window) : $(element)
  11218. this.options = $.extend({}, ScrollSpy.DEFAULTS, options)
  11219. this.selector = (this.options.target || '') + ' .nav li > a'
  11220. this.offsets = []
  11221. this.targets = []
  11222. this.activeTarget = null
  11223. this.scrollHeight = 0
  11224. this.$scrollElement.on('scroll.bs.scrollspy', $.proxy(this.process, this))
  11225. this.refresh()
  11226. this.process()
  11227. }
  11228. ScrollSpy.VERSION = '3.3.5'
  11229. ScrollSpy.DEFAULTS = {
  11230. offset: 10
  11231. }
  11232. ScrollSpy.prototype.getScrollHeight = function () {
  11233. return this.$scrollElement[0].scrollHeight || Math.max(this.$body[0].scrollHeight, document.documentElement.scrollHeight)
  11234. }
  11235. ScrollSpy.prototype.refresh = function () {
  11236. var that = this
  11237. var offsetMethod = 'offset'
  11238. var offsetBase = 0
  11239. this.offsets = []
  11240. this.targets = []
  11241. this.scrollHeight = this.getScrollHeight()
  11242. if (!$.isWindow(this.$scrollElement[0])) {
  11243. offsetMethod = 'position'
  11244. offsetBase = this.$scrollElement.scrollTop()
  11245. }
  11246. this.$body
  11247. .find(this.selector)
  11248. .map(function () {
  11249. var $el = $(this)
  11250. var href = $el.data('target') || $el.attr('href')
  11251. var $href = /^#./.test(href) && $(href)
  11252. return ($href
  11253. && $href.length
  11254. && $href.is(':visible')
  11255. && [[$href[offsetMethod]().top + offsetBase, href]]) || null
  11256. })
  11257. .sort(function (a, b) { return a[0] - b[0] })
  11258. .each(function () {
  11259. that.offsets.push(this[0])
  11260. that.targets.push(this[1])
  11261. })
  11262. }
  11263. ScrollSpy.prototype.process = function () {
  11264. var scrollTop = this.$scrollElement.scrollTop() + this.options.offset
  11265. var scrollHeight = this.getScrollHeight()
  11266. var maxScroll = this.options.offset + scrollHeight - this.$scrollElement.height()
  11267. var offsets = this.offsets
  11268. var targets = this.targets
  11269. var activeTarget = this.activeTarget
  11270. var i
  11271. if (this.scrollHeight != scrollHeight) {
  11272. this.refresh()
  11273. }
  11274. if (scrollTop >= maxScroll) {
  11275. return activeTarget != (i = targets[targets.length - 1]) && this.activate(i)
  11276. }
  11277. if (activeTarget && scrollTop < offsets[0]) {
  11278. this.activeTarget = null
  11279. return this.clear()
  11280. }
  11281. for (i = offsets.length; i--;) {
  11282. activeTarget != targets[i]
  11283. && scrollTop >= offsets[i]
  11284. && (offsets[i + 1] === undefined || scrollTop < offsets[i + 1])
  11285. && this.activate(targets[i])
  11286. }
  11287. }
  11288. ScrollSpy.prototype.activate = function (target) {
  11289. this.activeTarget = target
  11290. this.clear()
  11291. var selector = this.selector +
  11292. '[data-target="' + target + '"],' +
  11293. this.selector + '[href="' + target + '"]'
  11294. var active = $(selector)
  11295. .parents('li')
  11296. .addClass('active')
  11297. if (active.parent('.dropdown-menu').length) {
  11298. active = active
  11299. .closest('li.dropdown')
  11300. .addClass('active')
  11301. }
  11302. active.trigger('activate.bs.scrollspy')
  11303. }
  11304. ScrollSpy.prototype.clear = function () {
  11305. $(this.selector)
  11306. .parentsUntil(this.options.target, '.active')
  11307. .removeClass('active')
  11308. }
  11309. // SCROLLSPY PLUGIN DEFINITION
  11310. // ===========================
  11311. function Plugin(option) {
  11312. return this.each(function () {
  11313. var $this = $(this)
  11314. var data = $this.data('bs.scrollspy')
  11315. var options = typeof option == 'object' && option
  11316. if (!data) $this.data('bs.scrollspy', (data = new ScrollSpy(this, options)))
  11317. if (typeof option == 'string') data[option]()
  11318. })
  11319. }
  11320. var old = $.fn.scrollspy
  11321. $.fn.scrollspy = Plugin
  11322. $.fn.scrollspy.Constructor = ScrollSpy
  11323. // SCROLLSPY NO CONFLICT
  11324. // =====================
  11325. $.fn.scrollspy.noConflict = function () {
  11326. $.fn.scrollspy = old
  11327. return this
  11328. }
  11329. // SCROLLSPY DATA-API
  11330. // ==================
  11331. $(window).on('load.bs.scrollspy.data-api', function () {
  11332. $('[data-spy="scroll"]').each(function () {
  11333. var $spy = $(this)
  11334. Plugin.call($spy, $spy.data())
  11335. })
  11336. })
  11337. }(jQuery);
  11338. /* ========================================================================
  11339. * Bootstrap: tab.js v3.3.5
  11340. * http://getbootstrap.com/javascript/#tabs
  11341. * ========================================================================
  11342. * Copyright 2011-2015 Twitter, Inc.
  11343. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  11344. * ======================================================================== */
  11345. +function ($) {
  11346. 'use strict';
  11347. // TAB CLASS DEFINITION
  11348. // ====================
  11349. var Tab = function (element) {
  11350. // jscs:disable requireDollarBeforejQueryAssignment
  11351. this.element = $(element)
  11352. // jscs:enable requireDollarBeforejQueryAssignment
  11353. }
  11354. Tab.VERSION = '3.3.5'
  11355. Tab.TRANSITION_DURATION = 150
  11356. Tab.prototype.show = function () {
  11357. var $this = this.element
  11358. var $ul = $this.closest('ul:not(.dropdown-menu)')
  11359. var selector = $this.data('target')
  11360. if (!selector) {
  11361. selector = $this.attr('href')
  11362. selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
  11363. }
  11364. if ($this.parent('li').hasClass('active')) return
  11365. var $previous = $ul.find('.active:last a')
  11366. var hideEvent = $.Event('hide.bs.tab', {
  11367. relatedTarget: $this[0]
  11368. })
  11369. var showEvent = $.Event('show.bs.tab', {
  11370. relatedTarget: $previous[0]
  11371. })
  11372. $previous.trigger(hideEvent)
  11373. $this.trigger(showEvent)
  11374. if (showEvent.isDefaultPrevented() || hideEvent.isDefaultPrevented()) return
  11375. var $target = $(selector)
  11376. this.activate($this.closest('li'), $ul)
  11377. this.activate($target, $target.parent(), function () {
  11378. $previous.trigger({
  11379. type: 'hidden.bs.tab',
  11380. relatedTarget: $this[0]
  11381. })
  11382. $this.trigger({
  11383. type: 'shown.bs.tab',
  11384. relatedTarget: $previous[0]
  11385. })
  11386. })
  11387. }
  11388. Tab.prototype.activate = function (element, container, callback) {
  11389. var $active = container.find('> .active')
  11390. var transition = callback
  11391. && $.support.transition
  11392. && ($active.length && $active.hasClass('fade') || !!container.find('> .fade').length)
  11393. function next() {
  11394. $active
  11395. .removeClass('active')
  11396. .find('> .dropdown-menu > .active')
  11397. .removeClass('active')
  11398. .end()
  11399. .find('[data-toggle="tab"]')
  11400. .attr('aria-expanded', false)
  11401. element
  11402. .addClass('active')
  11403. .find('[data-toggle="tab"]')
  11404. .attr('aria-expanded', true)
  11405. if (transition) {
  11406. element[0].offsetWidth // reflow for transition
  11407. element.addClass('in')
  11408. } else {
  11409. element.removeClass('fade')
  11410. }
  11411. if (element.parent('.dropdown-menu').length) {
  11412. element
  11413. .closest('li.dropdown')
  11414. .addClass('active')
  11415. .end()
  11416. .find('[data-toggle="tab"]')
  11417. .attr('aria-expanded', true)
  11418. }
  11419. callback && callback()
  11420. }
  11421. $active.length && transition ?
  11422. $active
  11423. .one('bsTransitionEnd', next)
  11424. .emulateTransitionEnd(Tab.TRANSITION_DURATION) :
  11425. next()
  11426. $active.removeClass('in')
  11427. }
  11428. // TAB PLUGIN DEFINITION
  11429. // =====================
  11430. function Plugin(option) {
  11431. return this.each(function () {
  11432. var $this = $(this)
  11433. var data = $this.data('bs.tab')
  11434. if (!data) $this.data('bs.tab', (data = new Tab(this)))
  11435. if (typeof option == 'string') data[option]()
  11436. })
  11437. }
  11438. var old = $.fn.tab
  11439. $.fn.tab = Plugin
  11440. $.fn.tab.Constructor = Tab
  11441. // TAB NO CONFLICT
  11442. // ===============
  11443. $.fn.tab.noConflict = function () {
  11444. $.fn.tab = old
  11445. return this
  11446. }
  11447. // TAB DATA-API
  11448. // ============
  11449. var clickHandler = function (e) {
  11450. e.preventDefault()
  11451. Plugin.call($(this), 'show')
  11452. }
  11453. $(document)
  11454. .on('click.bs.tab.data-api', '[data-toggle="tab"]', clickHandler)
  11455. .on('click.bs.tab.data-api', '[data-toggle="pill"]', clickHandler)
  11456. }(jQuery);
  11457. /* ========================================================================
  11458. * Bootstrap: affix.js v3.3.5
  11459. * http://getbootstrap.com/javascript/#affix
  11460. * ========================================================================
  11461. * Copyright 2011-2015 Twitter, Inc.
  11462. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  11463. * ======================================================================== */
  11464. +function ($) {
  11465. 'use strict';
  11466. // AFFIX CLASS DEFINITION
  11467. // ======================
  11468. var Affix = function (element, options) {
  11469. this.options = $.extend({}, Affix.DEFAULTS, options)
  11470. this.$target = $(this.options.target)
  11471. .on('scroll.bs.affix.data-api', $.proxy(this.checkPosition, this))
  11472. .on('click.bs.affix.data-api', $.proxy(this.checkPositionWithEventLoop, this))
  11473. this.$element = $(element)
  11474. this.affixed = null
  11475. this.unpin = null
  11476. this.pinnedOffset = null
  11477. this.checkPosition()
  11478. }
  11479. Affix.VERSION = '3.3.5'
  11480. Affix.RESET = 'affix affix-top affix-bottom'
  11481. Affix.DEFAULTS = {
  11482. offset: 0,
  11483. target: window
  11484. }
  11485. Affix.prototype.getState = function (scrollHeight, height, offsetTop, offsetBottom) {
  11486. var scrollTop = this.$target.scrollTop()
  11487. var position = this.$element.offset()
  11488. var targetHeight = this.$target.height()
  11489. if (offsetTop != null && this.affixed == 'top') return scrollTop < offsetTop ? 'top' : false
  11490. if (this.affixed == 'bottom') {
  11491. if (offsetTop != null) return (scrollTop + this.unpin <= position.top) ? false : 'bottom'
  11492. return (scrollTop + targetHeight <= scrollHeight - offsetBottom) ? false : 'bottom'
  11493. }
  11494. var initializing = this.affixed == null
  11495. var colliderTop = initializing ? scrollTop : position.top
  11496. var colliderHeight = initializing ? targetHeight : height
  11497. if (offsetTop != null && scrollTop <= offsetTop) return 'top'
  11498. if (offsetBottom != null && (colliderTop + colliderHeight >= scrollHeight - offsetBottom)) return 'bottom'
  11499. return false
  11500. }
  11501. Affix.prototype.getPinnedOffset = function () {
  11502. if (this.pinnedOffset) return this.pinnedOffset
  11503. this.$element.removeClass(Affix.RESET).addClass('affix')
  11504. var scrollTop = this.$target.scrollTop()
  11505. var position = this.$element.offset()
  11506. return (this.pinnedOffset = position.top - scrollTop)
  11507. }
  11508. Affix.prototype.checkPositionWithEventLoop = function () {
  11509. setTimeout($.proxy(this.checkPosition, this), 1)
  11510. }
  11511. Affix.prototype.checkPosition = function () {
  11512. if (!this.$element.is(':visible')) return
  11513. var height = this.$element.height()
  11514. var offset = this.options.offset
  11515. var offsetTop = offset.top
  11516. var offsetBottom = offset.bottom
  11517. var scrollHeight = Math.max($(document).height(), $(document.body).height())
  11518. if (typeof offset != 'object') offsetBottom = offsetTop = offset
  11519. if (typeof offsetTop == 'function') offsetTop = offset.top(this.$element)
  11520. if (typeof offsetBottom == 'function') offsetBottom = offset.bottom(this.$element)
  11521. var affix = this.getState(scrollHeight, height, offsetTop, offsetBottom)
  11522. if (this.affixed != affix) {
  11523. if (this.unpin != null) this.$element.css('top', '')
  11524. var affixType = 'affix' + (affix ? '-' + affix : '')
  11525. var e = $.Event(affixType + '.bs.affix')
  11526. this.$element.trigger(e)
  11527. if (e.isDefaultPrevented()) return
  11528. this.affixed = affix
  11529. this.unpin = affix == 'bottom' ? this.getPinnedOffset() : null
  11530. this.$element
  11531. .removeClass(Affix.RESET)
  11532. .addClass(affixType)
  11533. .trigger(affixType.replace('affix', 'affixed') + '.bs.affix')
  11534. }
  11535. if (affix == 'bottom') {
  11536. this.$element.offset({
  11537. top: scrollHeight - height - offsetBottom
  11538. })
  11539. }
  11540. }
  11541. // AFFIX PLUGIN DEFINITION
  11542. // =======================
  11543. function Plugin(option) {
  11544. return this.each(function () {
  11545. var $this = $(this)
  11546. var data = $this.data('bs.affix')
  11547. var options = typeof option == 'object' && option
  11548. if (!data) $this.data('bs.affix', (data = new Affix(this, options)))
  11549. if (typeof option == 'string') data[option]()
  11550. })
  11551. }
  11552. var old = $.fn.affix
  11553. $.fn.affix = Plugin
  11554. $.fn.affix.Constructor = Affix
  11555. // AFFIX NO CONFLICT
  11556. // =================
  11557. $.fn.affix.noConflict = function () {
  11558. $.fn.affix = old
  11559. return this
  11560. }
  11561. // AFFIX DATA-API
  11562. // ==============
  11563. $(window).on('load', function () {
  11564. $('[data-spy="affix"]').each(function () {
  11565. var $spy = $(this)
  11566. var data = $spy.data()
  11567. data.offset = data.offset || {}
  11568. if (data.offsetBottom != null) data.offset.bottom = data.offsetBottom
  11569. if (data.offsetTop != null) data.offset.top = data.offsetTop
  11570. Plugin.call($spy, data)
  11571. })
  11572. })
  11573. }(jQuery);
  11574. /*!
  11575. * Datepicker for Bootstrap v1.4.0 (https://github.com/eternicode/bootstrap-datepicker)
  11576. *
  11577. * Copyright 2012 Stefan Petre
  11578. * Improvements by Andrew Rowls
  11579. * Licensed under the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0)
  11580. */
  11581. (function($, undefined){
  11582. function UTCDate(){
  11583. return new Date(Date.UTC.apply(Date, arguments));
  11584. }
  11585. function UTCToday(){
  11586. var today = new Date();
  11587. return UTCDate(today.getFullYear(), today.getMonth(), today.getDate());
  11588. }
  11589. function isUTCEquals(date1, date2) {
  11590. return (
  11591. date1.getUTCFullYear() === date2.getUTCFullYear() &&
  11592. date1.getUTCMonth() === date2.getUTCMonth() &&
  11593. date1.getUTCDate() === date2.getUTCDate()
  11594. );
  11595. }
  11596. function alias(method){
  11597. return function(){
  11598. return this[method].apply(this, arguments);
  11599. };
  11600. }
  11601. var DateArray = (function(){
  11602. var extras = {
  11603. get: function(i){
  11604. return this.slice(i)[0];
  11605. },
  11606. contains: function(d){
  11607. // Array.indexOf is not cross-browser;
  11608. // $.inArray doesn't work with Dates
  11609. var val = d && d.valueOf();
  11610. for (var i=0, l=this.length; i < l; i++)
  11611. if (this[i].valueOf() === val)
  11612. return i;
  11613. return -1;
  11614. },
  11615. remove: function(i){
  11616. this.splice(i,1);
  11617. },
  11618. replace: function(new_array){
  11619. if (!new_array)
  11620. return;
  11621. if (!$.isArray(new_array))
  11622. new_array = [new_array];
  11623. this.clear();
  11624. this.push.apply(this, new_array);
  11625. },
  11626. clear: function(){
  11627. this.length = 0;
  11628. },
  11629. copy: function(){
  11630. var a = new DateArray();
  11631. a.replace(this);
  11632. return a;
  11633. }
  11634. };
  11635. return function(){
  11636. var a = [];
  11637. a.push.apply(a, arguments);
  11638. $.extend(a, extras);
  11639. return a;
  11640. };
  11641. })();
  11642. // Picker object
  11643. var Datepicker = function(element, options){
  11644. this._process_options(options);
  11645. this.dates = new DateArray();
  11646. this.viewDate = this.o.defaultViewDate;
  11647. this.focusDate = null;
  11648. this.element = $(element);
  11649. this.isInline = false;
  11650. this.isInput = this.element.is('input');
  11651. this.component = this.element.hasClass('date') ? this.element.find('.add-on, .input-group-addon, .btn') : false;
  11652. this.hasInput = this.component && this.element.find('input').length;
  11653. if (this.component && this.component.length === 0)
  11654. this.component = false;
  11655. this.picker = $(DPGlobal.template);
  11656. this._buildEvents();
  11657. this._attachEvents();
  11658. if (this.isInline){
  11659. this.picker.addClass('datepicker-inline').appendTo(this.element);
  11660. }
  11661. else {
  11662. this.picker.addClass('datepicker-dropdown dropdown-menu');
  11663. }
  11664. if (this.o.rtl){
  11665. this.picker.addClass('datepicker-rtl');
  11666. }
  11667. this.viewMode = this.o.startView;
  11668. if (this.o.calendarWeeks)
  11669. this.picker.find('tfoot .today, tfoot .clear')
  11670. .attr('colspan', function(i, val){
  11671. return parseInt(val) + 1;
  11672. });
  11673. this._allow_update = false;
  11674. this.setStartDate(this._o.startDate);
  11675. this.setEndDate(this._o.endDate);
  11676. this.setDaysOfWeekDisabled(this.o.daysOfWeekDisabled);
  11677. this.setDatesDisabled(this.o.datesDisabled);
  11678. this.fillDow();
  11679. this.fillMonths();
  11680. this._allow_update = true;
  11681. this.update();
  11682. this.showMode();
  11683. if (this.isInline){
  11684. this.show();
  11685. }
  11686. };
  11687. Datepicker.prototype = {
  11688. constructor: Datepicker,
  11689. _process_options: function(opts){
  11690. // Store raw options for reference
  11691. this._o = $.extend({}, this._o, opts);
  11692. // Processed options
  11693. var o = this.o = $.extend({}, this._o);
  11694. // Check if "de-DE" style date is available, if not language should
  11695. // fallback to 2 letter code eg "de"
  11696. var lang = o.language;
  11697. if (!dates[lang]){
  11698. lang = lang.split('-')[0];
  11699. if (!dates[lang])
  11700. lang = defaults.language;
  11701. }
  11702. o.language = lang;
  11703. switch (o.startView){
  11704. case 2:
  11705. case 'decade':
  11706. o.startView = 2;
  11707. break;
  11708. case 1:
  11709. case 'year':
  11710. o.startView = 1;
  11711. break;
  11712. default:
  11713. o.startView = 0;
  11714. }
  11715. switch (o.minViewMode){
  11716. case 1:
  11717. case 'months':
  11718. o.minViewMode = 1;
  11719. break;
  11720. case 2:
  11721. case 'years':
  11722. o.minViewMode = 2;
  11723. break;
  11724. default:
  11725. o.minViewMode = 0;
  11726. }
  11727. o.startView = Math.max(o.startView, o.minViewMode);
  11728. // true, false, or Number > 0
  11729. if (o.multidate !== true){
  11730. o.multidate = Number(o.multidate) || false;
  11731. if (o.multidate !== false)
  11732. o.multidate = Math.max(0, o.multidate);
  11733. }
  11734. o.multidateSeparator = String(o.multidateSeparator);
  11735. o.weekStart %= 7;
  11736. o.weekEnd = ((o.weekStart + 6) % 7);
  11737. var format = DPGlobal.parseFormat(o.format);
  11738. if (o.startDate !== -Infinity){
  11739. if (!!o.startDate){
  11740. if (o.startDate instanceof Date)
  11741. o.startDate = this._local_to_utc(this._zero_time(o.startDate));
  11742. else
  11743. o.startDate = DPGlobal.parseDate(o.startDate, format, o.language);
  11744. }
  11745. else {
  11746. o.startDate = -Infinity;
  11747. }
  11748. }
  11749. if (o.endDate !== Infinity){
  11750. if (!!o.endDate){
  11751. if (o.endDate instanceof Date)
  11752. o.endDate = this._local_to_utc(this._zero_time(o.endDate));
  11753. else
  11754. o.endDate = DPGlobal.parseDate(o.endDate, format, o.language);
  11755. }
  11756. else {
  11757. o.endDate = Infinity;
  11758. }
  11759. }
  11760. o.daysOfWeekDisabled = o.daysOfWeekDisabled||[];
  11761. if (!$.isArray(o.daysOfWeekDisabled))
  11762. o.daysOfWeekDisabled = o.daysOfWeekDisabled.split(/[,\s]*/);
  11763. o.daysOfWeekDisabled = $.map(o.daysOfWeekDisabled, function(d){
  11764. return parseInt(d, 10);
  11765. });
  11766. o.datesDisabled = o.datesDisabled||[];
  11767. if (!$.isArray(o.datesDisabled)) {
  11768. var datesDisabled = [];
  11769. datesDisabled.push(DPGlobal.parseDate(o.datesDisabled, format, o.language));
  11770. o.datesDisabled = datesDisabled;
  11771. }
  11772. o.datesDisabled = $.map(o.datesDisabled,function(d){
  11773. return DPGlobal.parseDate(d, format, o.language);
  11774. });
  11775. var plc = String(o.orientation).toLowerCase().split(/\s+/g),
  11776. _plc = o.orientation.toLowerCase();
  11777. plc = $.grep(plc, function(word){
  11778. return /^auto|left|right|top|bottom$/.test(word);
  11779. });
  11780. o.orientation = {x: 'auto', y: 'auto'};
  11781. if (!_plc || _plc === 'auto')
  11782. ; // no action
  11783. else if (plc.length === 1){
  11784. switch (plc[0]){
  11785. case 'top':
  11786. case 'bottom':
  11787. o.orientation.y = plc[0];
  11788. break;
  11789. case 'left':
  11790. case 'right':
  11791. o.orientation.x = plc[0];
  11792. break;
  11793. }
  11794. }
  11795. else {
  11796. _plc = $.grep(plc, function(word){
  11797. return /^left|right$/.test(word);
  11798. });
  11799. o.orientation.x = _plc[0] || 'auto';
  11800. _plc = $.grep(plc, function(word){
  11801. return /^top|bottom$/.test(word);
  11802. });
  11803. o.orientation.y = _plc[0] || 'auto';
  11804. }
  11805. if (o.defaultViewDate) {
  11806. var year = o.defaultViewDate.year || new Date().getFullYear();
  11807. var month = o.defaultViewDate.month || 0;
  11808. var day = o.defaultViewDate.day || 1;
  11809. o.defaultViewDate = UTCDate(year, month, day);
  11810. } else {
  11811. o.defaultViewDate = UTCToday();
  11812. }
  11813. o.showOnFocus = o.showOnFocus !== undefined ? o.showOnFocus : true;
  11814. },
  11815. _events: [],
  11816. _secondaryEvents: [],
  11817. _applyEvents: function(evs){
  11818. for (var i=0, el, ch, ev; i < evs.length; i++){
  11819. el = evs[i][0];
  11820. if (evs[i].length === 2){
  11821. ch = undefined;
  11822. ev = evs[i][1];
  11823. }
  11824. else if (evs[i].length === 3){
  11825. ch = evs[i][1];
  11826. ev = evs[i][2];
  11827. }
  11828. el.on(ev, ch);
  11829. }
  11830. },
  11831. _unapplyEvents: function(evs){
  11832. for (var i=0, el, ev, ch; i < evs.length; i++){
  11833. el = evs[i][0];
  11834. if (evs[i].length === 2){
  11835. ch = undefined;
  11836. ev = evs[i][1];
  11837. }
  11838. else if (evs[i].length === 3){
  11839. ch = evs[i][1];
  11840. ev = evs[i][2];
  11841. }
  11842. el.off(ev, ch);
  11843. }
  11844. },
  11845. _buildEvents: function(){
  11846. var events = {
  11847. keyup: $.proxy(function(e){
  11848. if ($.inArray(e.keyCode, [27, 37, 39, 38, 40, 32, 13, 9]) === -1)
  11849. this.update();
  11850. }, this),
  11851. keydown: $.proxy(this.keydown, this)
  11852. };
  11853. if (this.o.showOnFocus === true) {
  11854. events.focus = $.proxy(this.show, this);
  11855. }
  11856. if (this.isInput) { // single input
  11857. this._events = [
  11858. [this.element, events]
  11859. ];
  11860. }
  11861. else if (this.component && this.hasInput) { // component: input + button
  11862. this._events = [
  11863. // For components that are not readonly, allow keyboard nav
  11864. [this.element.find('input'), events],
  11865. [this.component, {
  11866. click: $.proxy(this.show, this)
  11867. }]
  11868. ];
  11869. }
  11870. else if (this.element.is('div')){ // inline datepicker
  11871. this.isInline = true;
  11872. }
  11873. else {
  11874. this._events = [
  11875. [this.element, {
  11876. click: $.proxy(this.show, this)
  11877. }]
  11878. ];
  11879. }
  11880. this._events.push(
  11881. // Component: listen for blur on element descendants
  11882. [this.element, '*', {
  11883. blur: $.proxy(function(e){
  11884. this._focused_from = e.target;
  11885. }, this)
  11886. }],
  11887. // Input: listen for blur on element
  11888. [this.element, {
  11889. blur: $.proxy(function(e){
  11890. this._focused_from = e.target;
  11891. }, this)
  11892. }]
  11893. );
  11894. this._secondaryEvents = [
  11895. [this.picker, {
  11896. click: $.proxy(this.click, this)
  11897. }],
  11898. [$(window), {
  11899. resize: $.proxy(this.place, this)
  11900. }],
  11901. [$(document), {
  11902. 'mousedown touchstart': $.proxy(function(e){
  11903. // Clicked outside the datepicker, hide it
  11904. if (!(
  11905. this.element.is(e.target) ||
  11906. this.element.find(e.target).length ||
  11907. this.picker.is(e.target) ||
  11908. this.picker.find(e.target).length
  11909. )){
  11910. this.hide();
  11911. }
  11912. }, this)
  11913. }]
  11914. ];
  11915. },
  11916. _attachEvents: function(){
  11917. this._detachEvents();
  11918. this._applyEvents(this._events);
  11919. },
  11920. _detachEvents: function(){
  11921. this._unapplyEvents(this._events);
  11922. },
  11923. _attachSecondaryEvents: function(){
  11924. this._detachSecondaryEvents();
  11925. this._applyEvents(this._secondaryEvents);
  11926. },
  11927. _detachSecondaryEvents: function(){
  11928. this._unapplyEvents(this._secondaryEvents);
  11929. },
  11930. _trigger: function(event, altdate){
  11931. var date = altdate || this.dates.get(-1),
  11932. local_date = this._utc_to_local(date);
  11933. this.element.trigger({
  11934. type: event,
  11935. date: local_date,
  11936. dates: $.map(this.dates, this._utc_to_local),
  11937. format: $.proxy(function(ix, format){
  11938. if (arguments.length === 0){
  11939. ix = this.dates.length - 1;
  11940. format = this.o.format;
  11941. }
  11942. else if (typeof ix === 'string'){
  11943. format = ix;
  11944. ix = this.dates.length - 1;
  11945. }
  11946. format = format || this.o.format;
  11947. var date = this.dates.get(ix);
  11948. return DPGlobal.formatDate(date, format, this.o.language);
  11949. }, this)
  11950. });
  11951. },
  11952. show: function(){
  11953. if (this.element.attr('readonly') && this.o.enableOnReadonly === false)
  11954. return;
  11955. if (!this.isInline)
  11956. this.picker.appendTo(this.o.container);
  11957. this.place();
  11958. this.picker.show();
  11959. this._attachSecondaryEvents();
  11960. this._trigger('show');
  11961. if ((window.navigator.msMaxTouchPoints || 'ontouchstart' in document) && this.o.disableTouchKeyboard) {
  11962. $(this.element).blur();
  11963. }
  11964. return this;
  11965. },
  11966. hide: function(){
  11967. if (this.isInline)
  11968. return this;
  11969. if (!this.picker.is(':visible'))
  11970. return this;
  11971. this.focusDate = null;
  11972. this.picker.hide().detach();
  11973. this._detachSecondaryEvents();
  11974. this.viewMode = this.o.startView;
  11975. this.showMode();
  11976. if (
  11977. this.o.forceParse &&
  11978. (
  11979. this.isInput && this.element.val() ||
  11980. this.hasInput && this.element.find('input').val()
  11981. )
  11982. )
  11983. this.setValue();
  11984. this._trigger('hide');
  11985. return this;
  11986. },
  11987. remove: function(){
  11988. this.hide();
  11989. this._detachEvents();
  11990. this._detachSecondaryEvents();
  11991. this.picker.remove();
  11992. delete this.element.data().datepicker;
  11993. if (!this.isInput){
  11994. delete this.element.data().date;
  11995. }
  11996. return this;
  11997. },
  11998. _utc_to_local: function(utc){
  11999. return utc && new Date(utc.getTime() + (utc.getTimezoneOffset()*60000));
  12000. },
  12001. _local_to_utc: function(local){
  12002. return local && new Date(local.getTime() - (local.getTimezoneOffset()*60000));
  12003. },
  12004. _zero_time: function(local){
  12005. return local && new Date(local.getFullYear(), local.getMonth(), local.getDate());
  12006. },
  12007. _zero_utc_time: function(utc){
  12008. return utc && new Date(Date.UTC(utc.getUTCFullYear(), utc.getUTCMonth(), utc.getUTCDate()));
  12009. },
  12010. getDates: function(){
  12011. return $.map(this.dates, this._utc_to_local);
  12012. },
  12013. getUTCDates: function(){
  12014. return $.map(this.dates, function(d){
  12015. return new Date(d);
  12016. });
  12017. },
  12018. getDate: function(){
  12019. return this._utc_to_local(this.getUTCDate());
  12020. },
  12021. getUTCDate: function(){
  12022. var selected_date = this.dates.get(-1);
  12023. if (typeof selected_date !== 'undefined') {
  12024. return new Date(selected_date);
  12025. } else {
  12026. return null;
  12027. }
  12028. },
  12029. clearDates: function(){
  12030. var element;
  12031. if (this.isInput) {
  12032. element = this.element;
  12033. } else if (this.component) {
  12034. element = this.element.find('input');
  12035. }
  12036. if (element) {
  12037. element.val('').change();
  12038. }
  12039. this.update();
  12040. this._trigger('changeDate');
  12041. if (this.o.autoclose) {
  12042. this.hide();
  12043. }
  12044. },
  12045. setDates: function(){
  12046. var args = $.isArray(arguments[0]) ? arguments[0] : arguments;
  12047. this.update.apply(this, args);
  12048. this._trigger('changeDate');
  12049. this.setValue();
  12050. return this;
  12051. },
  12052. setUTCDates: function(){
  12053. var args = $.isArray(arguments[0]) ? arguments[0] : arguments;
  12054. this.update.apply(this, $.map(args, this._utc_to_local));
  12055. this._trigger('changeDate');
  12056. this.setValue();
  12057. return this;
  12058. },
  12059. setDate: alias('setDates'),
  12060. setUTCDate: alias('setUTCDates'),
  12061. setValue: function(){
  12062. var formatted = this.getFormattedDate();
  12063. if (!this.isInput){
  12064. if (this.component){
  12065. this.element.find('input').val(formatted).change();
  12066. }
  12067. }
  12068. else {
  12069. this.element.val(formatted).change();
  12070. }
  12071. return this;
  12072. },
  12073. getFormattedDate: function(format){
  12074. if (format === undefined)
  12075. format = this.o.format;
  12076. var lang = this.o.language;
  12077. return $.map(this.dates, function(d){
  12078. return DPGlobal.formatDate(d, format, lang);
  12079. }).join(this.o.multidateSeparator);
  12080. },
  12081. setStartDate: function(startDate){
  12082. this._process_options({startDate: startDate});
  12083. this.update();
  12084. this.updateNavArrows();
  12085. return this;
  12086. },
  12087. setEndDate: function(endDate){
  12088. this._process_options({endDate: endDate});
  12089. this.update();
  12090. this.updateNavArrows();
  12091. return this;
  12092. },
  12093. setDaysOfWeekDisabled: function(daysOfWeekDisabled){
  12094. this._process_options({daysOfWeekDisabled: daysOfWeekDisabled});
  12095. this.update();
  12096. this.updateNavArrows();
  12097. return this;
  12098. },
  12099. setDatesDisabled: function(datesDisabled){
  12100. this._process_options({datesDisabled: datesDisabled});
  12101. this.update();
  12102. this.updateNavArrows();
  12103. },
  12104. place: function(){
  12105. if (this.isInline)
  12106. return this;
  12107. var calendarWidth = this.picker.outerWidth(),
  12108. calendarHeight = this.picker.outerHeight(),
  12109. visualPadding = 10,
  12110. windowWidth = $(this.o.container).width(),
  12111. windowHeight = $(this.o.container).height(),
  12112. scrollTop = $(this.o.container).scrollTop(),
  12113. appendOffset = $(this.o.container).offset();
  12114. var parentsZindex = [];
  12115. this.element.parents().each(function(){
  12116. var itemZIndex = $(this).css('z-index');
  12117. if (itemZIndex !== 'auto' && itemZIndex !== 0) parentsZindex.push(parseInt(itemZIndex));
  12118. });
  12119. var zIndex = Math.max.apply(Math, parentsZindex) + 10;
  12120. var offset = this.component ? this.component.parent().offset() : this.element.offset();
  12121. var height = this.component ? this.component.outerHeight(true) : this.element.outerHeight(false);
  12122. var width = this.component ? this.component.outerWidth(true) : this.element.outerWidth(false);
  12123. var left = offset.left - appendOffset.left,
  12124. top = offset.top - appendOffset.top;
  12125. this.picker.removeClass(
  12126. 'datepicker-orient-top datepicker-orient-bottom '+
  12127. 'datepicker-orient-right datepicker-orient-left'
  12128. );
  12129. if (this.o.orientation.x !== 'auto'){
  12130. this.picker.addClass('datepicker-orient-' + this.o.orientation.x);
  12131. if (this.o.orientation.x === 'right')
  12132. left -= calendarWidth - width;
  12133. }
  12134. // auto x orientation is best-placement: if it crosses a window
  12135. // edge, fudge it sideways
  12136. else {
  12137. if (offset.left < 0) {
  12138. // component is outside the window on the left side. Move it into visible range
  12139. this.picker.addClass('datepicker-orient-left');
  12140. left -= offset.left - visualPadding;
  12141. } else if (left + calendarWidth > windowWidth) {
  12142. // the calendar passes the widow right edge. Align it to component right side
  12143. this.picker.addClass('datepicker-orient-right');
  12144. left = offset.left + width - calendarWidth;
  12145. } else {
  12146. // Default to left
  12147. this.picker.addClass('datepicker-orient-left');
  12148. }
  12149. }
  12150. // auto y orientation is best-situation: top or bottom, no fudging,
  12151. // decision based on which shows more of the calendar
  12152. var yorient = this.o.orientation.y,
  12153. top_overflow, bottom_overflow;
  12154. if (yorient === 'auto'){
  12155. top_overflow = -scrollTop + top - calendarHeight;
  12156. bottom_overflow = scrollTop + windowHeight - (top + height + calendarHeight);
  12157. if (Math.max(top_overflow, bottom_overflow) === bottom_overflow)
  12158. yorient = 'top';
  12159. else
  12160. yorient = 'bottom';
  12161. }
  12162. this.picker.addClass('datepicker-orient-' + yorient);
  12163. if (yorient === 'top')
  12164. top += height;
  12165. else
  12166. top -= calendarHeight + parseInt(this.picker.css('padding-top'));
  12167. if (this.o.rtl) {
  12168. var right = windowWidth - (left + width);
  12169. this.picker.css({
  12170. top: top,
  12171. right: right,
  12172. zIndex: zIndex
  12173. });
  12174. } else {
  12175. this.picker.css({
  12176. top: top,
  12177. left: left,
  12178. zIndex: zIndex
  12179. });
  12180. }
  12181. return this;
  12182. },
  12183. _allow_update: true,
  12184. update: function(){
  12185. if (!this._allow_update)
  12186. return this;
  12187. var oldDates = this.dates.copy(),
  12188. dates = [],
  12189. fromArgs = false;
  12190. if (arguments.length){
  12191. $.each(arguments, $.proxy(function(i, date){
  12192. if (date instanceof Date)
  12193. date = this._local_to_utc(date);
  12194. dates.push(date);
  12195. }, this));
  12196. fromArgs = true;
  12197. }
  12198. else {
  12199. dates = this.isInput
  12200. ? this.element.val()
  12201. : this.element.data('date') || this.element.find('input').val();
  12202. if (dates && this.o.multidate)
  12203. dates = dates.split(this.o.multidateSeparator);
  12204. else
  12205. dates = [dates];
  12206. delete this.element.data().date;
  12207. }
  12208. dates = $.map(dates, $.proxy(function(date){
  12209. return DPGlobal.parseDate(date, this.o.format, this.o.language);
  12210. }, this));
  12211. dates = $.grep(dates, $.proxy(function(date){
  12212. return (
  12213. date < this.o.startDate ||
  12214. date > this.o.endDate ||
  12215. !date
  12216. );
  12217. }, this), true);
  12218. this.dates.replace(dates);
  12219. if (this.dates.length)
  12220. this.viewDate = new Date(this.dates.get(-1));
  12221. else if (this.viewDate < this.o.startDate)
  12222. this.viewDate = new Date(this.o.startDate);
  12223. else if (this.viewDate > this.o.endDate)
  12224. this.viewDate = new Date(this.o.endDate);
  12225. if (fromArgs){
  12226. // setting date by clicking
  12227. this.setValue();
  12228. }
  12229. else if (dates.length){
  12230. // setting date by typing
  12231. if (String(oldDates) !== String(this.dates))
  12232. this._trigger('changeDate');
  12233. }
  12234. if (!this.dates.length && oldDates.length)
  12235. this._trigger('clearDate');
  12236. this.fill();
  12237. return this;
  12238. },
  12239. fillDow: function(){
  12240. var dowCnt = this.o.weekStart,
  12241. html = '<tr>';
  12242. if (this.o.calendarWeeks){
  12243. this.picker.find('.datepicker-days thead tr:first-child .datepicker-switch')
  12244. .attr('colspan', function(i, val){
  12245. return parseInt(val) + 1;
  12246. });
  12247. var cell = '<th class="cw">&#160;</th>';
  12248. html += cell;
  12249. }
  12250. while (dowCnt < this.o.weekStart + 7){
  12251. html += '<th class="dow">'+dates[this.o.language].daysMin[(dowCnt++)%7]+'</th>';
  12252. }
  12253. html += '</tr>';
  12254. this.picker.find('.datepicker-days thead').append(html);
  12255. },
  12256. fillMonths: function(){
  12257. var html = '',
  12258. i = 0;
  12259. while (i < 12){
  12260. html += '<span class="month">'+dates[this.o.language].monthsShort[i++]+'</span>';
  12261. }
  12262. this.picker.find('.datepicker-months td').html(html);
  12263. },
  12264. setRange: function(range){
  12265. if (!range || !range.length)
  12266. delete this.range;
  12267. else
  12268. this.range = $.map(range, function(d){
  12269. return d.valueOf();
  12270. });
  12271. this.fill();
  12272. },
  12273. getClassNames: function(date){
  12274. var cls = [],
  12275. year = this.viewDate.getUTCFullYear(),
  12276. month = this.viewDate.getUTCMonth(),
  12277. today = new Date();
  12278. if (date.getUTCFullYear() < year || (date.getUTCFullYear() === year && date.getUTCMonth() < month)){
  12279. cls.push('old');
  12280. }
  12281. else if (date.getUTCFullYear() > year || (date.getUTCFullYear() === year && date.getUTCMonth() > month)){
  12282. cls.push('new');
  12283. }
  12284. if (this.focusDate && date.valueOf() === this.focusDate.valueOf())
  12285. cls.push('focused');
  12286. // Compare internal UTC date with local today, not UTC today
  12287. if (this.o.todayHighlight &&
  12288. date.getUTCFullYear() === today.getFullYear() &&
  12289. date.getUTCMonth() === today.getMonth() &&
  12290. date.getUTCDate() === today.getDate()){
  12291. cls.push('today');
  12292. }
  12293. if (this.dates.contains(date) !== -1)
  12294. cls.push('active');
  12295. if (date.valueOf() < this.o.startDate || date.valueOf() > this.o.endDate ||
  12296. $.inArray(date.getUTCDay(), this.o.daysOfWeekDisabled) !== -1){
  12297. cls.push('disabled');
  12298. }
  12299. if (this.o.datesDisabled.length > 0 &&
  12300. $.grep(this.o.datesDisabled, function(d){
  12301. return isUTCEquals(date, d); }).length > 0) {
  12302. cls.push('disabled', 'disabled-date');
  12303. }
  12304. if (this.range){
  12305. if (date > this.range[0] && date < this.range[this.range.length-1]){
  12306. cls.push('range');
  12307. }
  12308. if ($.inArray(date.valueOf(), this.range) !== -1){
  12309. cls.push('selected');
  12310. }
  12311. }
  12312. return cls;
  12313. },
  12314. fill: function(){
  12315. var d = new Date(this.viewDate),
  12316. year = d.getUTCFullYear(),
  12317. month = d.getUTCMonth(),
  12318. startYear = this.o.startDate !== -Infinity ? this.o.startDate.getUTCFullYear() : -Infinity,
  12319. startMonth = this.o.startDate !== -Infinity ? this.o.startDate.getUTCMonth() : -Infinity,
  12320. endYear = this.o.endDate !== Infinity ? this.o.endDate.getUTCFullYear() : Infinity,
  12321. endMonth = this.o.endDate !== Infinity ? this.o.endDate.getUTCMonth() : Infinity,
  12322. todaytxt = dates[this.o.language].today || dates['en'].today || '',
  12323. cleartxt = dates[this.o.language].clear || dates['en'].clear || '',
  12324. tooltip;
  12325. if (isNaN(year) || isNaN(month))
  12326. return;
  12327. this.picker.find('.datepicker-days thead .datepicker-switch')
  12328. .text(dates[this.o.language].months[month]+' '+year);
  12329. this.picker.find('tfoot .today')
  12330. .text(todaytxt)
  12331. .toggle(this.o.todayBtn !== false);
  12332. this.picker.find('tfoot .clear')
  12333. .text(cleartxt)
  12334. .toggle(this.o.clearBtn !== false);
  12335. this.updateNavArrows();
  12336. this.fillMonths();
  12337. var prevMonth = UTCDate(year, month-1, 28),
  12338. day = DPGlobal.getDaysInMonth(prevMonth.getUTCFullYear(), prevMonth.getUTCMonth());
  12339. prevMonth.setUTCDate(day);
  12340. prevMonth.setUTCDate(day - (prevMonth.getUTCDay() - this.o.weekStart + 7)%7);
  12341. var nextMonth = new Date(prevMonth);
  12342. nextMonth.setUTCDate(nextMonth.getUTCDate() + 42);
  12343. nextMonth = nextMonth.valueOf();
  12344. var html = [];
  12345. var clsName;
  12346. while (prevMonth.valueOf() < nextMonth){
  12347. if (prevMonth.getUTCDay() === this.o.weekStart){
  12348. html.push('<tr>');
  12349. if (this.o.calendarWeeks){
  12350. // ISO 8601: First week contains first thursday.
  12351. // ISO also states week starts on Monday, but we can be more abstract here.
  12352. var
  12353. // Start of current week: based on weekstart/current date
  12354. ws = new Date(+prevMonth + (this.o.weekStart - prevMonth.getUTCDay() - 7) % 7 * 864e5),
  12355. // Thursday of this week
  12356. th = new Date(Number(ws) + (7 + 4 - ws.getUTCDay()) % 7 * 864e5),
  12357. // First Thursday of year, year from thursday
  12358. yth = new Date(Number(yth = UTCDate(th.getUTCFullYear(), 0, 1)) + (7 + 4 - yth.getUTCDay())%7*864e5),
  12359. // Calendar week: ms between thursdays, div ms per day, div 7 days
  12360. calWeek = (th - yth) / 864e5 / 7 + 1;
  12361. html.push('<td class="cw">'+ calWeek +'</td>');
  12362. }
  12363. }
  12364. clsName = this.getClassNames(prevMonth);
  12365. clsName.push('day');
  12366. if (this.o.beforeShowDay !== $.noop){
  12367. var before = this.o.beforeShowDay(this._utc_to_local(prevMonth));
  12368. if (before === undefined)
  12369. before = {};
  12370. else if (typeof(before) === 'boolean')
  12371. before = {enabled: before};
  12372. else if (typeof(before) === 'string')
  12373. before = {classes: before};
  12374. if (before.enabled === false)
  12375. clsName.push('disabled');
  12376. if (before.classes)
  12377. clsName = clsName.concat(before.classes.split(/\s+/));
  12378. if (before.tooltip)
  12379. tooltip = before.tooltip;
  12380. }
  12381. clsName = $.unique(clsName);
  12382. html.push('<td class="'+clsName.join(' ')+'"' + (tooltip ? ' title="'+tooltip+'"' : '') + '>'+prevMonth.getUTCDate() + '</td>');
  12383. tooltip = null;
  12384. if (prevMonth.getUTCDay() === this.o.weekEnd){
  12385. html.push('</tr>');
  12386. }
  12387. prevMonth.setUTCDate(prevMonth.getUTCDate()+1);
  12388. }
  12389. this.picker.find('.datepicker-days tbody').empty().append(html.join(''));
  12390. var months = this.picker.find('.datepicker-months')
  12391. .find('th:eq(1)')
  12392. .text(year)
  12393. .end()
  12394. .find('span').removeClass('active');
  12395. $.each(this.dates, function(i, d){
  12396. if (d.getUTCFullYear() === year)
  12397. months.eq(d.getUTCMonth()).addClass('active');
  12398. });
  12399. if (year < startYear || year > endYear){
  12400. months.addClass('disabled');
  12401. }
  12402. if (year === startYear){
  12403. months.slice(0, startMonth).addClass('disabled');
  12404. }
  12405. if (year === endYear){
  12406. months.slice(endMonth+1).addClass('disabled');
  12407. }
  12408. if (this.o.beforeShowMonth !== $.noop){
  12409. var that = this;
  12410. $.each(months, function(i, month){
  12411. if (!$(month).hasClass('disabled')) {
  12412. var moDate = new Date(year, i, 1);
  12413. var before = that.o.beforeShowMonth(moDate);
  12414. if (before === false)
  12415. $(month).addClass('disabled');
  12416. }
  12417. });
  12418. }
  12419. html = '';
  12420. year = parseInt(year/10, 10) * 10;
  12421. var yearCont = this.picker.find('.datepicker-years')
  12422. .find('th:eq(1)')
  12423. .text(year + '-' + (year + 9))
  12424. .end()
  12425. .find('td');
  12426. year -= 1;
  12427. var years = $.map(this.dates, function(d){
  12428. return d.getUTCFullYear();
  12429. }),
  12430. classes;
  12431. for (var i = -1; i < 11; i++){
  12432. classes = ['year'];
  12433. if (i === -1)
  12434. classes.push('old');
  12435. else if (i === 10)
  12436. classes.push('new');
  12437. if ($.inArray(year, years) !== -1)
  12438. classes.push('active');
  12439. if (year < startYear || year > endYear)
  12440. classes.push('disabled');
  12441. html += '<span class="' + classes.join(' ') + '">' + year + '</span>';
  12442. year += 1;
  12443. }
  12444. yearCont.html(html);
  12445. },
  12446. updateNavArrows: function(){
  12447. if (!this._allow_update)
  12448. return;
  12449. var d = new Date(this.viewDate),
  12450. year = d.getUTCFullYear(),
  12451. month = d.getUTCMonth();
  12452. switch (this.viewMode){
  12453. case 0:
  12454. if (this.o.startDate !== -Infinity && year <= this.o.startDate.getUTCFullYear() && month <= this.o.startDate.getUTCMonth()){
  12455. this.picker.find('.prev').css({visibility: 'hidden'});
  12456. }
  12457. else {
  12458. this.picker.find('.prev').css({visibility: 'visible'});
  12459. }
  12460. if (this.o.endDate !== Infinity && year >= this.o.endDate.getUTCFullYear() && month >= this.o.endDate.getUTCMonth()){
  12461. this.picker.find('.next').css({visibility: 'hidden'});
  12462. }
  12463. else {
  12464. this.picker.find('.next').css({visibility: 'visible'});
  12465. }
  12466. break;
  12467. case 1:
  12468. case 2:
  12469. if (this.o.startDate !== -Infinity && year <= this.o.startDate.getUTCFullYear()){
  12470. this.picker.find('.prev').css({visibility: 'hidden'});
  12471. }
  12472. else {
  12473. this.picker.find('.prev').css({visibility: 'visible'});
  12474. }
  12475. if (this.o.endDate !== Infinity && year >= this.o.endDate.getUTCFullYear()){
  12476. this.picker.find('.next').css({visibility: 'hidden'});
  12477. }
  12478. else {
  12479. this.picker.find('.next').css({visibility: 'visible'});
  12480. }
  12481. break;
  12482. }
  12483. },
  12484. click: function(e){
  12485. e.preventDefault();
  12486. var target = $(e.target).closest('span, td, th'),
  12487. year, month, day;
  12488. if (target.length === 1){
  12489. switch (target[0].nodeName.toLowerCase()){
  12490. case 'th':
  12491. switch (target[0].className){
  12492. case 'datepicker-switch':
  12493. this.showMode(1);
  12494. break;
  12495. case 'prev':
  12496. case 'next':
  12497. var dir = DPGlobal.modes[this.viewMode].navStep * (target[0].className === 'prev' ? -1 : 1);
  12498. switch (this.viewMode){
  12499. case 0:
  12500. this.viewDate = this.moveMonth(this.viewDate, dir);
  12501. this._trigger('changeMonth', this.viewDate);
  12502. break;
  12503. case 1:
  12504. case 2:
  12505. this.viewDate = this.moveYear(this.viewDate, dir);
  12506. if (this.viewMode === 1)
  12507. this._trigger('changeYear', this.viewDate);
  12508. break;
  12509. }
  12510. this.fill();
  12511. break;
  12512. case 'today':
  12513. var date = new Date();
  12514. date = UTCDate(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0);
  12515. this.showMode(-2);
  12516. var which = this.o.todayBtn === 'linked' ? null : 'view';
  12517. this._setDate(date, which);
  12518. break;
  12519. case 'clear':
  12520. this.clearDates();
  12521. break;
  12522. }
  12523. break;
  12524. case 'span':
  12525. if (!target.hasClass('disabled')){
  12526. this.viewDate.setUTCDate(1);
  12527. if (target.hasClass('month')){
  12528. day = 1;
  12529. month = target.parent().find('span').index(target);
  12530. year = this.viewDate.getUTCFullYear();
  12531. this.viewDate.setUTCMonth(month);
  12532. this._trigger('changeMonth', this.viewDate);
  12533. if (this.o.minViewMode === 1){
  12534. this._setDate(UTCDate(year, month, day));
  12535. }
  12536. }
  12537. else {
  12538. day = 1;
  12539. month = 0;
  12540. year = parseInt(target.text(), 10)||0;
  12541. this.viewDate.setUTCFullYear(year);
  12542. this._trigger('changeYear', this.viewDate);
  12543. if (this.o.minViewMode === 2){
  12544. this._setDate(UTCDate(year, month, day));
  12545. }
  12546. }
  12547. this.showMode(-1);
  12548. this.fill();
  12549. }
  12550. break;
  12551. case 'td':
  12552. if (target.hasClass('day') && !target.hasClass('disabled')){
  12553. day = parseInt(target.text(), 10)||1;
  12554. year = this.viewDate.getUTCFullYear();
  12555. month = this.viewDate.getUTCMonth();
  12556. if (target.hasClass('old')){
  12557. if (month === 0){
  12558. month = 11;
  12559. year -= 1;
  12560. }
  12561. else {
  12562. month -= 1;
  12563. }
  12564. }
  12565. else if (target.hasClass('new')){
  12566. if (month === 11){
  12567. month = 0;
  12568. year += 1;
  12569. }
  12570. else {
  12571. month += 1;
  12572. }
  12573. }
  12574. this._setDate(UTCDate(year, month, day));
  12575. }
  12576. break;
  12577. }
  12578. }
  12579. if (this.picker.is(':visible') && this._focused_from){
  12580. $(this._focused_from).focus();
  12581. }
  12582. delete this._focused_from;
  12583. },
  12584. _toggle_multidate: function(date){
  12585. var ix = this.dates.contains(date);
  12586. if (!date){
  12587. this.dates.clear();
  12588. }
  12589. if (ix !== -1){
  12590. if (this.o.multidate === true || this.o.multidate > 1 || this.o.toggleActive){
  12591. this.dates.remove(ix);
  12592. }
  12593. } else if (this.o.multidate === false) {
  12594. this.dates.clear();
  12595. this.dates.push(date);
  12596. }
  12597. else {
  12598. this.dates.push(date);
  12599. }
  12600. if (typeof this.o.multidate === 'number')
  12601. while (this.dates.length > this.o.multidate)
  12602. this.dates.remove(0);
  12603. },
  12604. _setDate: function(date, which){
  12605. if (!which || which === 'date')
  12606. this._toggle_multidate(date && new Date(date));
  12607. if (!which || which === 'view')
  12608. this.viewDate = date && new Date(date);
  12609. this.fill();
  12610. this.setValue();
  12611. if (!which || which !== 'view') {
  12612. this._trigger('changeDate');
  12613. }
  12614. var element;
  12615. if (this.isInput){
  12616. element = this.element;
  12617. }
  12618. else if (this.component){
  12619. element = this.element.find('input');
  12620. }
  12621. if (element){
  12622. element.change();
  12623. }
  12624. if (this.o.autoclose && (!which || which === 'date')){
  12625. this.hide();
  12626. }
  12627. },
  12628. moveMonth: function(date, dir){
  12629. if (!date)
  12630. return undefined;
  12631. if (!dir)
  12632. return date;
  12633. var new_date = new Date(date.valueOf()),
  12634. day = new_date.getUTCDate(),
  12635. month = new_date.getUTCMonth(),
  12636. mag = Math.abs(dir),
  12637. new_month, test;
  12638. dir = dir > 0 ? 1 : -1;
  12639. if (mag === 1){
  12640. test = dir === -1
  12641. // If going back one month, make sure month is not current month
  12642. // (eg, Mar 31 -> Feb 31 == Feb 28, not Mar 02)
  12643. ? function(){
  12644. return new_date.getUTCMonth() === month;
  12645. }
  12646. // If going forward one month, make sure month is as expected
  12647. // (eg, Jan 31 -> Feb 31 == Feb 28, not Mar 02)
  12648. : function(){
  12649. return new_date.getUTCMonth() !== new_month;
  12650. };
  12651. new_month = month + dir;
  12652. new_date.setUTCMonth(new_month);
  12653. // Dec -> Jan (12) or Jan -> Dec (-1) -- limit expected date to 0-11
  12654. if (new_month < 0 || new_month > 11)
  12655. new_month = (new_month + 12) % 12;
  12656. }
  12657. else {
  12658. // For magnitudes >1, move one month at a time...
  12659. for (var i=0; i < mag; i++)
  12660. // ...which might decrease the day (eg, Jan 31 to Feb 28, etc)...
  12661. new_date = this.moveMonth(new_date, dir);
  12662. // ...then reset the day, keeping it in the new month
  12663. new_month = new_date.getUTCMonth();
  12664. new_date.setUTCDate(day);
  12665. test = function(){
  12666. return new_month !== new_date.getUTCMonth();
  12667. };
  12668. }
  12669. // Common date-resetting loop -- if date is beyond end of month, make it
  12670. // end of month
  12671. while (test()){
  12672. new_date.setUTCDate(--day);
  12673. new_date.setUTCMonth(new_month);
  12674. }
  12675. return new_date;
  12676. },
  12677. moveYear: function(date, dir){
  12678. return this.moveMonth(date, dir*12);
  12679. },
  12680. dateWithinRange: function(date){
  12681. return date >= this.o.startDate && date <= this.o.endDate;
  12682. },
  12683. keydown: function(e){
  12684. if (!this.picker.is(':visible')){
  12685. if (e.keyCode === 27) // allow escape to hide and re-show picker
  12686. this.show();
  12687. return;
  12688. }
  12689. var dateChanged = false,
  12690. dir, newDate, newViewDate,
  12691. focusDate = this.focusDate || this.viewDate;
  12692. switch (e.keyCode){
  12693. case 27: // escape
  12694. if (this.focusDate){
  12695. this.focusDate = null;
  12696. this.viewDate = this.dates.get(-1) || this.viewDate;
  12697. this.fill();
  12698. }
  12699. else
  12700. this.hide();
  12701. e.preventDefault();
  12702. break;
  12703. case 37: // left
  12704. case 39: // right
  12705. if (!this.o.keyboardNavigation)
  12706. break;
  12707. dir = e.keyCode === 37 ? -1 : 1;
  12708. if (e.ctrlKey){
  12709. newDate = this.moveYear(this.dates.get(-1) || UTCToday(), dir);
  12710. newViewDate = this.moveYear(focusDate, dir);
  12711. this._trigger('changeYear', this.viewDate);
  12712. }
  12713. else if (e.shiftKey){
  12714. newDate = this.moveMonth(this.dates.get(-1) || UTCToday(), dir);
  12715. newViewDate = this.moveMonth(focusDate, dir);
  12716. this._trigger('changeMonth', this.viewDate);
  12717. }
  12718. else {
  12719. newDate = new Date(this.dates.get(-1) || UTCToday());
  12720. newDate.setUTCDate(newDate.getUTCDate() + dir);
  12721. newViewDate = new Date(focusDate);
  12722. newViewDate.setUTCDate(focusDate.getUTCDate() + dir);
  12723. }
  12724. if (this.dateWithinRange(newViewDate)){
  12725. this.focusDate = this.viewDate = newViewDate;
  12726. this.setValue();
  12727. this.fill();
  12728. e.preventDefault();
  12729. }
  12730. break;
  12731. case 38: // up
  12732. case 40: // down
  12733. if (!this.o.keyboardNavigation)
  12734. break;
  12735. dir = e.keyCode === 38 ? -1 : 1;
  12736. if (e.ctrlKey){
  12737. newDate = this.moveYear(this.dates.get(-1) || UTCToday(), dir);
  12738. newViewDate = this.moveYear(focusDate, dir);
  12739. this._trigger('changeYear', this.viewDate);
  12740. }
  12741. else if (e.shiftKey){
  12742. newDate = this.moveMonth(this.dates.get(-1) || UTCToday(), dir);
  12743. newViewDate = this.moveMonth(focusDate, dir);
  12744. this._trigger('changeMonth', this.viewDate);
  12745. }
  12746. else {
  12747. newDate = new Date(this.dates.get(-1) || UTCToday());
  12748. newDate.setUTCDate(newDate.getUTCDate() + dir * 7);
  12749. newViewDate = new Date(focusDate);
  12750. newViewDate.setUTCDate(focusDate.getUTCDate() + dir * 7);
  12751. }
  12752. if (this.dateWithinRange(newViewDate)){
  12753. this.focusDate = this.viewDate = newViewDate;
  12754. this.setValue();
  12755. this.fill();
  12756. e.preventDefault();
  12757. }
  12758. break;
  12759. case 32: // spacebar
  12760. // Spacebar is used in manually typing dates in some formats.
  12761. // As such, its behavior should not be hijacked.
  12762. break;
  12763. case 13: // enter
  12764. focusDate = this.focusDate || this.dates.get(-1) || this.viewDate;
  12765. if (this.o.keyboardNavigation) {
  12766. this._toggle_multidate(focusDate);
  12767. dateChanged = true;
  12768. }
  12769. this.focusDate = null;
  12770. this.viewDate = this.dates.get(-1) || this.viewDate;
  12771. this.setValue();
  12772. this.fill();
  12773. if (this.picker.is(':visible')){
  12774. e.preventDefault();
  12775. if (typeof e.stopPropagation === 'function') {
  12776. e.stopPropagation(); // All modern browsers, IE9+
  12777. } else {
  12778. e.cancelBubble = true; // IE6,7,8 ignore "stopPropagation"
  12779. }
  12780. if (this.o.autoclose)
  12781. this.hide();
  12782. }
  12783. break;
  12784. case 9: // tab
  12785. this.focusDate = null;
  12786. this.viewDate = this.dates.get(-1) || this.viewDate;
  12787. this.fill();
  12788. this.hide();
  12789. break;
  12790. }
  12791. if (dateChanged){
  12792. if (this.dates.length)
  12793. this._trigger('changeDate');
  12794. else
  12795. this._trigger('clearDate');
  12796. var element;
  12797. if (this.isInput){
  12798. element = this.element;
  12799. }
  12800. else if (this.component){
  12801. element = this.element.find('input');
  12802. }
  12803. if (element){
  12804. element.change();
  12805. }
  12806. }
  12807. },
  12808. showMode: function(dir){
  12809. if (dir){
  12810. this.viewMode = Math.max(this.o.minViewMode, Math.min(2, this.viewMode + dir));
  12811. }
  12812. this.picker
  12813. .children('div')
  12814. .hide()
  12815. .filter('.datepicker-' + DPGlobal.modes[this.viewMode].clsName)
  12816. .css('display', 'block');
  12817. this.updateNavArrows();
  12818. }
  12819. };
  12820. var DateRangePicker = function(element, options){
  12821. this.element = $(element);
  12822. this.inputs = $.map(options.inputs, function(i){
  12823. return i.jquery ? i[0] : i;
  12824. });
  12825. delete options.inputs;
  12826. datepickerPlugin.call($(this.inputs), options)
  12827. .bind('changeDate', $.proxy(this.dateUpdated, this));
  12828. this.pickers = $.map(this.inputs, function(i){
  12829. return $(i).data('datepicker');
  12830. });
  12831. this.updateDates();
  12832. };
  12833. DateRangePicker.prototype = {
  12834. updateDates: function(){
  12835. this.dates = $.map(this.pickers, function(i){
  12836. return i.getUTCDate();
  12837. });
  12838. this.updateRanges();
  12839. },
  12840. updateRanges: function(){
  12841. var range = $.map(this.dates, function(d){
  12842. return d.valueOf();
  12843. });
  12844. $.each(this.pickers, function(i, p){
  12845. p.setRange(range);
  12846. });
  12847. },
  12848. dateUpdated: function(e){
  12849. // `this.updating` is a workaround for preventing infinite recursion
  12850. // between `changeDate` triggering and `setUTCDate` calling. Until
  12851. // there is a better mechanism.
  12852. if (this.updating)
  12853. return;
  12854. this.updating = true;
  12855. var dp = $(e.target).data('datepicker'),
  12856. new_date = dp.getUTCDate(),
  12857. i = $.inArray(e.target, this.inputs),
  12858. j = i - 1,
  12859. k = i + 1,
  12860. l = this.inputs.length;
  12861. if (i === -1)
  12862. return;
  12863. $.each(this.pickers, function(i, p){
  12864. if (!p.getUTCDate())
  12865. p.setUTCDate(new_date);
  12866. });
  12867. if (new_date < this.dates[j]){
  12868. // Date being moved earlier/left
  12869. while (j >= 0 && new_date < this.dates[j]){
  12870. this.pickers[j--].setUTCDate(new_date);
  12871. }
  12872. }
  12873. else if (new_date > this.dates[k]){
  12874. // Date being moved later/right
  12875. while (k < l && new_date > this.dates[k]){
  12876. this.pickers[k++].setUTCDate(new_date);
  12877. }
  12878. }
  12879. this.updateDates();
  12880. delete this.updating;
  12881. },
  12882. remove: function(){
  12883. $.map(this.pickers, function(p){ p.remove(); });
  12884. delete this.element.data().datepicker;
  12885. }
  12886. };
  12887. function opts_from_el(el, prefix){
  12888. // Derive options from element data-attrs
  12889. var data = $(el).data(),
  12890. out = {}, inkey,
  12891. replace = new RegExp('^' + prefix.toLowerCase() + '([A-Z])');
  12892. prefix = new RegExp('^' + prefix.toLowerCase());
  12893. function re_lower(_,a){
  12894. return a.toLowerCase();
  12895. }
  12896. for (var key in data)
  12897. if (prefix.test(key)){
  12898. inkey = key.replace(replace, re_lower);
  12899. out[inkey] = data[key];
  12900. }
  12901. return out;
  12902. }
  12903. function opts_from_locale(lang){
  12904. // Derive options from locale plugins
  12905. var out = {};
  12906. // Check if "de-DE" style date is available, if not language should
  12907. // fallback to 2 letter code eg "de"
  12908. if (!dates[lang]){
  12909. lang = lang.split('-')[0];
  12910. if (!dates[lang])
  12911. return;
  12912. }
  12913. var d = dates[lang];
  12914. $.each(locale_opts, function(i,k){
  12915. if (k in d)
  12916. out[k] = d[k];
  12917. });
  12918. return out;
  12919. }
  12920. var old = $.fn.datepicker;
  12921. var datepickerPlugin = function(option){
  12922. var args = Array.apply(null, arguments);
  12923. args.shift();
  12924. var internal_return;
  12925. this.each(function(){
  12926. var $this = $(this),
  12927. data = $this.data('datepicker'),
  12928. options = typeof option === 'object' && option;
  12929. if (!data){
  12930. var elopts = opts_from_el(this, 'date'),
  12931. // Preliminary otions
  12932. xopts = $.extend({}, defaults, elopts, options),
  12933. locopts = opts_from_locale(xopts.language),
  12934. // Options priority: js args, data-attrs, locales, defaults
  12935. opts = $.extend({}, defaults, locopts, elopts, options);
  12936. if ($this.hasClass('input-daterange') || opts.inputs){
  12937. var ropts = {
  12938. inputs: opts.inputs || $this.find('input').toArray()
  12939. };
  12940. $this.data('datepicker', (data = new DateRangePicker(this, $.extend(opts, ropts))));
  12941. }
  12942. else {
  12943. $this.data('datepicker', (data = new Datepicker(this, opts)));
  12944. }
  12945. }
  12946. if (typeof option === 'string' && typeof data[option] === 'function'){
  12947. internal_return = data[option].apply(data, args);
  12948. if (internal_return !== undefined)
  12949. return false;
  12950. }
  12951. });
  12952. if (internal_return !== undefined)
  12953. return internal_return;
  12954. else
  12955. return this;
  12956. };
  12957. $.fn.datepicker = datepickerPlugin;
  12958. var defaults = $.fn.datepicker.defaults = {
  12959. autoclose: false,
  12960. beforeShowDay: $.noop,
  12961. beforeShowMonth: $.noop,
  12962. calendarWeeks: false,
  12963. clearBtn: false,
  12964. toggleActive: false,
  12965. daysOfWeekDisabled: [],
  12966. datesDisabled: [],
  12967. endDate: Infinity,
  12968. forceParse: true,
  12969. format: 'dd/mm/yyyy',
  12970. keyboardNavigation: true,
  12971. language: 'en',
  12972. minViewMode: 0,
  12973. multidate: false,
  12974. multidateSeparator: ',',
  12975. orientation: "auto",
  12976. rtl: false,
  12977. startDate: -Infinity,
  12978. startView: 0,
  12979. todayBtn: false,
  12980. todayHighlight: false,
  12981. weekStart: 1,
  12982. disableTouchKeyboard: false,
  12983. enableOnReadonly: true,
  12984. container: 'body'
  12985. };
  12986. var locale_opts = $.fn.datepicker.locale_opts = [
  12987. 'format',
  12988. 'rtl',
  12989. 'weekStart'
  12990. ];
  12991. $.fn.datepicker.Constructor = Datepicker;
  12992. var dates = $.fn.datepicker.dates = {
  12993. en: {
  12994. //days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"],
  12995. days:["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado","Domingo"],
  12996. daysShort:["Dom","Lun","Mar","Mié","Jue","Vie","Sáb","Dom"],
  12997. daysMin:["Do","Lu","Ma","Mi","Ju","Vi","Sa","Do"],
  12998. months:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],
  12999. monthsShort:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],
  13000. today: "Hoy",
  13001. clear: "Borrar"
  13002. }
  13003. };
  13004. var DPGlobal = {
  13005. modes: [
  13006. {
  13007. clsName: 'days',
  13008. navFnc: 'Month',
  13009. navStep: 1
  13010. },
  13011. {
  13012. clsName: 'months',
  13013. navFnc: 'FullYear',
  13014. navStep: 1
  13015. },
  13016. {
  13017. clsName: 'years',
  13018. navFnc: 'FullYear',
  13019. navStep: 10
  13020. }],
  13021. isLeapYear: function(year){
  13022. return (((year % 4 === 0) && (year % 100 !== 0)) || (year % 400 === 0));
  13023. },
  13024. getDaysInMonth: function(year, month){
  13025. return [31, (DPGlobal.isLeapYear(year) ? 29 : 28), 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][month];
  13026. },
  13027. validParts: /dd?|DD?|mm?|MM?|yy(?:yy)?/g,
  13028. nonpunctuation: /[^ -\/:-@\[\u3400-\u9fff-`{-~\t\n\r]+/g,
  13029. parseFormat: function(format){
  13030. // IE treats \0 as a string end in inputs (truncating the value),
  13031. // so it's a bad format delimiter, anyway
  13032. var separators = format.replace(this.validParts, '\0').split('\0'),
  13033. parts = format.match(this.validParts);
  13034. if (!separators || !separators.length || !parts || parts.length === 0){
  13035. throw new Error("Invalid date format.");
  13036. }
  13037. return {separators: separators, parts: parts};
  13038. },
  13039. parseDate: function(date, format, language){
  13040. if (!date)
  13041. return undefined;
  13042. if (date instanceof Date)
  13043. return date;
  13044. if (typeof format === 'string')
  13045. format = DPGlobal.parseFormat(format);
  13046. var part_re = /([\-+]\d+)([dmwy])/,
  13047. parts = date.match(/([\-+]\d+)([dmwy])/g),
  13048. part, dir, i;
  13049. if (/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/.test(date)){
  13050. date = new Date();
  13051. for (i=0; i < parts.length; i++){
  13052. part = part_re.exec(parts[i]);
  13053. dir = parseInt(part[1]);
  13054. switch (part[2]){
  13055. case 'd':
  13056. date.setUTCDate(date.getUTCDate() + dir);
  13057. break;
  13058. case 'm':
  13059. date = Datepicker.prototype.moveMonth.call(Datepicker.prototype, date, dir);
  13060. break;
  13061. case 'w':
  13062. date.setUTCDate(date.getUTCDate() + dir * 7);
  13063. break;
  13064. case 'y':
  13065. date = Datepicker.prototype.moveYear.call(Datepicker.prototype, date, dir);
  13066. break;
  13067. }
  13068. }
  13069. return UTCDate(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate(), 0, 0, 0);
  13070. }
  13071. parts = date && date.match(this.nonpunctuation) || [];
  13072. date = new Date();
  13073. var parsed = {},
  13074. setters_order = ['yyyy', 'yy', 'M', 'MM', 'm', 'mm', 'd', 'dd'],
  13075. setters_map = {
  13076. yyyy: function(d,v){
  13077. return d.setUTCFullYear(v);
  13078. },
  13079. yy: function(d,v){
  13080. return d.setUTCFullYear(2000+v);
  13081. },
  13082. m: function(d,v){
  13083. if (isNaN(d))
  13084. return d;
  13085. v -= 1;
  13086. while (v < 0) v += 12;
  13087. v %= 12;
  13088. d.setUTCMonth(v);
  13089. while (d.getUTCMonth() !== v)
  13090. d.setUTCDate(d.getUTCDate()-1);
  13091. return d;
  13092. },
  13093. d: function(d,v){
  13094. return d.setUTCDate(v);
  13095. }
  13096. },
  13097. val, filtered;
  13098. setters_map['M'] = setters_map['MM'] = setters_map['mm'] = setters_map['m'];
  13099. setters_map['dd'] = setters_map['d'];
  13100. date = UTCDate(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0);
  13101. var fparts = format.parts.slice();
  13102. // Remove noop parts
  13103. if (parts.length !== fparts.length){
  13104. fparts = $(fparts).filter(function(i,p){
  13105. return $.inArray(p, setters_order) !== -1;
  13106. }).toArray();
  13107. }
  13108. // Process remainder
  13109. function match_part(){
  13110. var m = this.slice(0, parts[i].length),
  13111. p = parts[i].slice(0, m.length);
  13112. return m.toLowerCase() === p.toLowerCase();
  13113. }
  13114. if (parts.length === fparts.length){
  13115. var cnt;
  13116. for (i=0, cnt = fparts.length; i < cnt; i++){
  13117. val = parseInt(parts[i], 10);
  13118. part = fparts[i];
  13119. if (isNaN(val)){
  13120. switch (part){
  13121. case 'MM':
  13122. filtered = $(dates[language].months).filter(match_part);
  13123. val = $.inArray(filtered[0], dates[language].months) + 1;
  13124. break;
  13125. case 'M':
  13126. filtered = $(dates[language].monthsShort).filter(match_part);
  13127. val = $.inArray(filtered[0], dates[language].monthsShort) + 1;
  13128. break;
  13129. }
  13130. }
  13131. parsed[part] = val;
  13132. }
  13133. var _date, s;
  13134. for (i=0; i < setters_order.length; i++){
  13135. s = setters_order[i];
  13136. if (s in parsed && !isNaN(parsed[s])){
  13137. _date = new Date(date);
  13138. setters_map[s](_date, parsed[s]);
  13139. if (!isNaN(_date))
  13140. date = _date;
  13141. }
  13142. }
  13143. }
  13144. return date;
  13145. },
  13146. formatDate: function(date, format, language){
  13147. if (!date)
  13148. return '';
  13149. if (typeof format === 'string')
  13150. format = DPGlobal.parseFormat(format);
  13151. var val = {
  13152. d: date.getUTCDate(),
  13153. D: dates[language].daysShort[date.getUTCDay()],
  13154. DD: dates[language].days[date.getUTCDay()],
  13155. m: date.getUTCMonth() + 1,
  13156. M: dates[language].monthsShort[date.getUTCMonth()],
  13157. MM: dates[language].months[date.getUTCMonth()],
  13158. yy: date.getUTCFullYear().toString().substring(2),
  13159. yyyy: date.getUTCFullYear()
  13160. };
  13161. val.dd = (val.d < 10 ? '0' : '') + val.d;
  13162. val.mm = (val.m < 10 ? '0' : '') + val.m;
  13163. date = [];
  13164. var seps = $.extend([], format.separators);
  13165. for (var i=0, cnt = format.parts.length; i <= cnt; i++){
  13166. if (seps.length)
  13167. date.push(seps.shift());
  13168. date.push(val[format.parts[i]]);
  13169. }
  13170. return date.join('');
  13171. },
  13172. headTemplate: '<thead>'+
  13173. '<tr>'+
  13174. '<th class="prev"><i class="fa fa-angle-left"></th>'+
  13175. '<th colspan="5" class="datepicker-switch"></th>'+
  13176. '<th class="next"><i class="fa fa-angle-right"></th>'+
  13177. '</tr>'+
  13178. '</thead>',
  13179. contTemplate: '<tbody><tr><td colspan="7"></td></tr></tbody>',
  13180. footTemplate: '<tfoot>'+
  13181. '<tr>'+
  13182. '<th colspan="7" class="today"></th>'+
  13183. '</tr>'+
  13184. '<tr>'+
  13185. '<th colspan="7" class="clear"></th>'+
  13186. '</tr>'+
  13187. '</tfoot>'
  13188. };
  13189. DPGlobal.template = '<div class="datepicker">'+
  13190. '<div class="datepicker-days">'+
  13191. '<table class=" table-condensed">'+
  13192. DPGlobal.headTemplate+
  13193. '<tbody></tbody>'+
  13194. DPGlobal.footTemplate+
  13195. '</table>'+
  13196. '</div>'+
  13197. '<div class="datepicker-months">'+
  13198. '<table class="table-condensed">'+
  13199. DPGlobal.headTemplate+
  13200. DPGlobal.contTemplate+
  13201. DPGlobal.footTemplate+
  13202. '</table>'+
  13203. '</div>'+
  13204. '<div class="datepicker-years">'+
  13205. '<table class="table-condensed">'+
  13206. DPGlobal.headTemplate+
  13207. DPGlobal.contTemplate+
  13208. DPGlobal.footTemplate+
  13209. '</table>'+
  13210. '</div>'+
  13211. '</div>';
  13212. $.fn.datepicker.DPGlobal = DPGlobal;
  13213. /* DATEPICKER NO CONFLICT
  13214. * =================== */
  13215. $.fn.datepicker.noConflict = function(){
  13216. $.fn.datepicker = old;
  13217. return this;
  13218. };
  13219. /* DATEPICKER VERSION
  13220. * =================== */
  13221. $.fn.datepicker.version = "1.4.0";
  13222. /* DATEPICKER DATA-API
  13223. * ================== */
  13224. $(document).on(
  13225. 'focus.datepicker.data-api click.datepicker.data-api',
  13226. '[data-provide="datepicker"]',
  13227. function(e){
  13228. var $this = $(this);
  13229. if ($this.data('datepicker'))
  13230. return;
  13231. e.preventDefault();
  13232. // component click requires us to explicitly show it
  13233. datepickerPlugin.call($this, 'show');
  13234. }
  13235. );
  13236. $(function(){
  13237. datepickerPlugin.call($('[data-provide="datepicker-inline"]'));
  13238. });
  13239. }(window.jQuery));
  13240. /**
  13241. * Project: Bootstrap Hover Dropdown
  13242. * Author: Cameron Spear
  13243. * Contributors: Mattia Larentis
  13244. *
  13245. * Dependencies: Bootstrap's Dropdown plugin, jQuery
  13246. *
  13247. * A simple plugin to enable Bootstrap dropdowns to active on hover and provide a nice user experience.
  13248. *
  13249. * License: MIT
  13250. *
  13251. * http://cameronspear.com/blog/bootstrap-dropdown-on-hover-plugin/
  13252. */
  13253. !function(e,n){var o=e();e.fn.dropdownHover=function(t){return"ontouchstart"in document?this:(o=o.add(this.parent()),this.each(function(){var i,r=e(this),s=r.parent(),d={delay:500,instantlyCloseOthers:!0},a={delay:e(this).data("delay"),instantlyCloseOthers:e(this).data("close-others")},h="show.bs.dropdown",u="hide.bs.dropdown",l=e.extend(!0,{},d,t,a);s.hover(function(e){return s.hasClass("open")||r.is(e.target)?(o.find(":focus").blur(),l.instantlyCloseOthers===!0&&o.removeClass("open"),n.clearTimeout(i),s.addClass("open"),void r.trigger(h)):!0},function(){i=n.setTimeout(function(){s.removeClass("open"),r.trigger(u)},l.delay)}),r.hover(function(){o.find(":focus").blur(),l.instantlyCloseOthers===!0&&o.removeClass("open"),n.clearTimeout(i),s.addClass("open"),r.trigger(h)}),s.find(".dropdown-submenu").each(function(){var o,t=e(this);t.hover(function(){n.clearTimeout(o),t.children(".dropdown-menu").show(),t.siblings().children(".dropdown-menu").hide()},function(){var e=t.children(".dropdown-menu");o=n.setTimeout(function(){e.hide()},l.delay)})})}))},e(document).ready(function(){e('[data-hover="dropdown"]').not(".hover-initialized").each(function(){e(this).dropdownHover(),e(this).addClass("hover-initialized")})})}(jQuery,this);
  13254. /*!
  13255. * Bootstrap-select v1.7.2 (http://silviomoreto.github.io/bootstrap-select)
  13256. *
  13257. * Copyright 2013-2015 bootstrap-select
  13258. * Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE)
  13259. */
  13260. (function (root, factory) {
  13261. if (typeof define === 'function' && define.amd) {
  13262. // AMD. Register as an anonymous module unless amdModuleId is set
  13263. define(["jquery"], function (a0) {
  13264. return (factory(a0));
  13265. });
  13266. } else if (typeof exports === 'object') {
  13267. // Node. Does not work with strict CommonJS, but
  13268. // only CommonJS-like environments that support module.exports,
  13269. // like Node.
  13270. module.exports = factory(require("jquery"));
  13271. } else {
  13272. factory(jQuery);
  13273. }
  13274. }(this, function () {
  13275. (function ($) {
  13276. 'use strict';
  13277. //<editor-fold desc="Shims">
  13278. if (!String.prototype.includes) {
  13279. (function () {
  13280. 'use strict'; // needed to support `apply`/`call` with `undefined`/`null`
  13281. var toString = {}.toString;
  13282. var defineProperty = (function () {
  13283. // IE 8 only supports `Object.defineProperty` on DOM elements
  13284. try {
  13285. var object = {};
  13286. var $defineProperty = Object.defineProperty;
  13287. var result = $defineProperty(object, object, object) && $defineProperty;
  13288. } catch (error) {
  13289. }
  13290. return result;
  13291. }());
  13292. var indexOf = ''.indexOf;
  13293. var includes = function (search) {
  13294. if (this == null) {
  13295. throw TypeError();
  13296. }
  13297. var string = String(this);
  13298. if (search && toString.call(search) == '[object RegExp]') {
  13299. throw TypeError();
  13300. }
  13301. var stringLength = string.length;
  13302. var searchString = String(search);
  13303. var searchLength = searchString.length;
  13304. var position = arguments.length > 1 ? arguments[1] : undefined;
  13305. // `ToInteger`
  13306. var pos = position ? Number(position) : 0;
  13307. if (pos != pos) { // better `isNaN`
  13308. pos = 0;
  13309. }
  13310. var start = Math.min(Math.max(pos, 0), stringLength);
  13311. // Avoid the `indexOf` call if no match is possible
  13312. if (searchLength + start > stringLength) {
  13313. return false;
  13314. }
  13315. return indexOf.call(string, searchString, pos) != -1;
  13316. };
  13317. if (defineProperty) {
  13318. defineProperty(String.prototype, 'includes', {
  13319. 'value': includes,
  13320. 'configurable': true,
  13321. 'writable': true
  13322. });
  13323. } else {
  13324. String.prototype.includes = includes;
  13325. }
  13326. }());
  13327. }
  13328. if (!String.prototype.startsWith) {
  13329. (function () {
  13330. 'use strict'; // needed to support `apply`/`call` with `undefined`/`null`
  13331. var defineProperty = (function () {
  13332. // IE 8 only supports `Object.defineProperty` on DOM elements
  13333. try {
  13334. var object = {};
  13335. var $defineProperty = Object.defineProperty;
  13336. var result = $defineProperty(object, object, object) && $defineProperty;
  13337. } catch (error) {
  13338. }
  13339. return result;
  13340. }());
  13341. var toString = {}.toString;
  13342. var startsWith = function (search) {
  13343. if (this == null) {
  13344. throw TypeError();
  13345. }
  13346. var string = String(this);
  13347. if (search && toString.call(search) == '[object RegExp]') {
  13348. throw TypeError();
  13349. }
  13350. var stringLength = string.length;
  13351. var searchString = String(search);
  13352. var searchLength = searchString.length;
  13353. var position = arguments.length > 1 ? arguments[1] : undefined;
  13354. // `ToInteger`
  13355. var pos = position ? Number(position) : 0;
  13356. if (pos != pos) { // better `isNaN`
  13357. pos = 0;
  13358. }
  13359. var start = Math.min(Math.max(pos, 0), stringLength);
  13360. // Avoid the `indexOf` call if no match is possible
  13361. if (searchLength + start > stringLength) {
  13362. return false;
  13363. }
  13364. var index = -1;
  13365. while (++index < searchLength) {
  13366. if (string.charCodeAt(start + index) != searchString.charCodeAt(index)) {
  13367. return false;
  13368. }
  13369. }
  13370. return true;
  13371. };
  13372. if (defineProperty) {
  13373. defineProperty(String.prototype, 'startsWith', {
  13374. 'value': startsWith,
  13375. 'configurable': true,
  13376. 'writable': true
  13377. });
  13378. } else {
  13379. String.prototype.startsWith = startsWith;
  13380. }
  13381. }());
  13382. }
  13383. if (!Object.keys) {
  13384. Object.keys = function (
  13385. o, // object
  13386. k, // key
  13387. r // result array
  13388. ){
  13389. // initialize object and result
  13390. r=[];
  13391. // iterate over object keys
  13392. for (k in o)
  13393. // fill result array with non-prototypical keys
  13394. r.hasOwnProperty.call(o, k) && r.push(k);
  13395. // return result
  13396. return r
  13397. };
  13398. }
  13399. //</editor-fold>
  13400. // Case insensitive contains search
  13401. $.expr[':'].icontains = function (obj, index, meta) {
  13402. var $obj = $(obj);
  13403. var haystack = ($obj.data('tokens') || $obj.text()).toUpperCase();
  13404. return haystack.includes(meta[3].toUpperCase());
  13405. };
  13406. // Case insensitive begins search
  13407. $.expr[':'].ibegins = function (obj, index, meta) {
  13408. var $obj = $(obj);
  13409. var haystack = ($obj.data('tokens') || $obj.text()).toUpperCase();
  13410. return haystack.startsWith(meta[3].toUpperCase());
  13411. };
  13412. // Case and accent insensitive contains search
  13413. $.expr[':'].aicontains = function (obj, index, meta) {
  13414. var $obj = $(obj);
  13415. var haystack = ($obj.data('tokens') || $obj.data('normalizedText') || $obj.text()).toUpperCase();
  13416. return haystack.includes(meta[3].toUpperCase());
  13417. };
  13418. // Case and accent insensitive begins search
  13419. $.expr[':'].aibegins = function (obj, index, meta) {
  13420. var $obj = $(obj);
  13421. var haystack = ($obj.data('tokens') || $obj.data('normalizedText') || $obj.text()).toUpperCase();
  13422. return haystack.startsWith(meta[3].toUpperCase());
  13423. };
  13424. /**
  13425. * Remove all diatrics from the given text.
  13426. * @access private
  13427. * @param {String} text
  13428. * @returns {String}
  13429. */
  13430. function normalizeToBase(text) {
  13431. var rExps = [
  13432. {re: /[\xC0-\xC6]/g, ch: "A"},
  13433. {re: /[\xE0-\xE6]/g, ch: "a"},
  13434. {re: /[\xC8-\xCB]/g, ch: "E"},
  13435. {re: /[\xE8-\xEB]/g, ch: "e"},
  13436. {re: /[\xCC-\xCF]/g, ch: "I"},
  13437. {re: /[\xEC-\xEF]/g, ch: "i"},
  13438. {re: /[\xD2-\xD6]/g, ch: "O"},
  13439. {re: /[\xF2-\xF6]/g, ch: "o"},
  13440. {re: /[\xD9-\xDC]/g, ch: "U"},
  13441. {re: /[\xF9-\xFC]/g, ch: "u"},
  13442. {re: /[\xC7-\xE7]/g, ch: "c"},
  13443. {re: /[\xD1]/g, ch: "N"},
  13444. {re: /[\xF1]/g, ch: "n"}
  13445. ];
  13446. $.each(rExps, function () {
  13447. text = text.replace(this.re, this.ch);
  13448. });
  13449. return text;
  13450. }
  13451. function htmlEscape(html) {
  13452. var escapeMap = {
  13453. '&': '&amp;',
  13454. '<': '&lt;',
  13455. '>': '&gt;',
  13456. '"': '&quot;',
  13457. "'": '&#x27;',
  13458. '`': '&#x60;'
  13459. };
  13460. var source = '(?:' + Object.keys(escapeMap).join('|') + ')',
  13461. testRegexp = new RegExp(source),
  13462. replaceRegexp = new RegExp(source, 'g'),
  13463. string = html == null ? '' : '' + html;
  13464. return testRegexp.test(string) ? string.replace(replaceRegexp, function (match) {
  13465. return escapeMap[match];
  13466. }) : string;
  13467. }
  13468. var Selectpicker = function (element, options, e) {
  13469. if (e) {
  13470. e.stopPropagation();
  13471. e.preventDefault();
  13472. }
  13473. this.$element = $(element);
  13474. this.$newElement = null;
  13475. this.$button = null;
  13476. this.$menu = null;
  13477. this.$lis = null;
  13478. this.options = options;
  13479. // If we have no title yet, try to pull it from the html title attribute (jQuery doesnt' pick it up as it's not a
  13480. // data-attribute)
  13481. if (this.options.title === null) {
  13482. this.options.title = this.$element.attr('title');
  13483. }
  13484. //Expose public methods
  13485. this.val = Selectpicker.prototype.val;
  13486. this.render = Selectpicker.prototype.render;
  13487. this.refresh = Selectpicker.prototype.refresh;
  13488. this.setStyle = Selectpicker.prototype.setStyle;
  13489. this.selectAll = Selectpicker.prototype.selectAll;
  13490. this.deselectAll = Selectpicker.prototype.deselectAll;
  13491. this.destroy = Selectpicker.prototype.remove;
  13492. this.remove = Selectpicker.prototype.remove;
  13493. this.show = Selectpicker.prototype.show;
  13494. this.hide = Selectpicker.prototype.hide;
  13495. this.init();
  13496. };
  13497. Selectpicker.VERSION = '1.7.2';
  13498. // part of this is duplicated in i18n/defaults-en_US.js. Make sure to update both.
  13499. Selectpicker.DEFAULTS = {
  13500. noneSelectedText: 'Nothing selected',
  13501. noneResultsText: 'No results matched {0}',
  13502. countSelectedText: function (numSelected, numTotal) {
  13503. return (numSelected == 1) ? "{0} item selected" : "{0} items selected";
  13504. },
  13505. maxOptionsText: function (numAll, numGroup) {
  13506. return [
  13507. (numAll == 1) ? 'Limit reached ({n} item max)' : 'Limit reached ({n} items max)',
  13508. (numGroup == 1) ? 'Group limit reached ({n} item max)' : 'Group limit reached ({n} items max)'
  13509. ];
  13510. },
  13511. selectAllText: 'Select All',
  13512. deselectAllText: 'Deselect All',
  13513. doneButton: false,
  13514. doneButtonText: 'Close',
  13515. multipleSeparator: ', ',
  13516. styleBase: 'btn',
  13517. style: 'btn-default',
  13518. size: 'auto',
  13519. title: null,
  13520. selectedTextFormat: 'values',
  13521. width: false,
  13522. container: false,
  13523. hideDisabled: false,
  13524. showSubtext: false,
  13525. showIcon: true,
  13526. showContent: true,
  13527. dropupAuto: true,
  13528. header: false,
  13529. liveSearch: false,
  13530. liveSearchPlaceholder: null,
  13531. liveSearchNormalize: false,
  13532. liveSearchStyle: 'contains',
  13533. actionsBox: false,
  13534. iconBase: 'glyphicon',
  13535. tickIcon: 'glyphicon-ok',
  13536. maxOptions: false,
  13537. mobile: false,
  13538. selectOnTab: false,
  13539. dropdownAlignRight: false
  13540. };
  13541. Selectpicker.prototype = {
  13542. constructor: Selectpicker,
  13543. init: function () {
  13544. var that = this,
  13545. id = this.$element.attr('id');
  13546. this.$element.addClass('bs-select-hidden');
  13547. // store originalIndex (key) and newIndex (value) in this.liObj for fast accessibility
  13548. // allows us to do this.$lis.eq(that.liObj[index]) instead of this.$lis.filter('[data-original-index="' + index + '"]')
  13549. this.liObj = {};
  13550. this.multiple = this.$element.prop('multiple');
  13551. this.autofocus = this.$element.prop('autofocus');
  13552. this.$newElement = this.createView();
  13553. this.$element.after(this.$newElement);
  13554. this.$button = this.$newElement.children('button');
  13555. this.$menu = this.$newElement.children('.dropdown-menu');
  13556. this.$menuInner = this.$menu.children('.inner');
  13557. this.$searchbox = this.$menu.find('input');
  13558. if (this.options.dropdownAlignRight)
  13559. this.$menu.addClass('dropdown-menu-right');
  13560. if (typeof id !== 'undefined') {
  13561. this.$button.attr('data-id', id);
  13562. $('label[for="' + id + '"]').click(function (e) {
  13563. e.preventDefault();
  13564. that.$button.focus();
  13565. });
  13566. }
  13567. this.checkDisabled();
  13568. this.clickListener();
  13569. if (this.options.liveSearch) this.liveSearchListener();
  13570. this.render();
  13571. this.setStyle();
  13572. this.setWidth();
  13573. if (this.options.container) this.selectPosition();
  13574. this.$menu.data('this', this);
  13575. this.$newElement.data('this', this);
  13576. if (this.options.mobile) this.mobile();
  13577. this.$newElement.on('hide.bs.dropdown', function (e) {
  13578. that.$element.trigger('hide.bs.select', e);
  13579. });
  13580. this.$newElement.on('hidden.bs.dropdown', function (e) {
  13581. that.$element.trigger('hidden.bs.select', e);
  13582. });
  13583. this.$newElement.on('show.bs.dropdown', function (e) {
  13584. that.$element.trigger('show.bs.select', e);
  13585. });
  13586. this.$newElement.on('shown.bs.dropdown', function (e) {
  13587. that.$element.trigger('shown.bs.select', e);
  13588. });
  13589. setTimeout(function () {
  13590. that.$element.trigger('loaded.bs.select');
  13591. });
  13592. },
  13593. createDropdown: function () {
  13594. // Options
  13595. // If we are multiple, then add the show-tick class by default
  13596. var multiple = this.multiple ? ' show-tick' : '',
  13597. inputGroup = this.$element.parent().hasClass('input-group') ? ' input-group-btn' : '',
  13598. autofocus = this.autofocus ? ' autofocus' : '';
  13599. // Elements
  13600. var header = this.options.header ? '<div class="popover-title"><button type="button" class="close" aria-hidden="true">&times;</button>' + this.options.header + '</div>' : '';
  13601. var searchbox = this.options.liveSearch ?
  13602. '<div class="bs-searchbox">' +
  13603. '<input type="text" class="form-control" autocomplete="off"' +
  13604. (null === this.options.liveSearchPlaceholder ? '' : ' placeholder="' + htmlEscape(this.options.liveSearchPlaceholder) + '"') + '>' +
  13605. '</div>'
  13606. : '';
  13607. var actionsbox = this.multiple && this.options.actionsBox ?
  13608. '<div class="bs-actionsbox">' +
  13609. '<div class="btn-group btn-group-sm btn-block">' +
  13610. '<button type="button" class="actions-btn bs-select-all btn btn-default">' +
  13611. this.options.selectAllText +
  13612. '</button>' +
  13613. '<button type="button" class="actions-btn bs-deselect-all btn btn-default">' +
  13614. this.options.deselectAllText +
  13615. '</button>' +
  13616. '</div>' +
  13617. '</div>'
  13618. : '';
  13619. var donebutton = this.multiple && this.options.doneButton ?
  13620. '<div class="bs-donebutton">' +
  13621. '<div class="btn-group btn-block">' +
  13622. '<button type="button" class="btn btn-sm btn-default">' +
  13623. this.options.doneButtonText +
  13624. '</button>' +
  13625. '</div>' +
  13626. '</div>'
  13627. : '';
  13628. var drop =
  13629. '<div class="btn-group bootstrap-select' + multiple + inputGroup + '">' +
  13630. '<button type="button" class="' + this.options.styleBase + ' dropdown-toggle" data-toggle="dropdown"' + autofocus + '>' +
  13631. '<span class="filter-option pull-left"></span>&nbsp;' +
  13632. '<span class="caret"></span>' +
  13633. '</button>' +
  13634. '<div class="dropdown-menu open">' +
  13635. header +
  13636. searchbox +
  13637. actionsbox +
  13638. '<ul class="dropdown-menu inner" role="menu">' +
  13639. '</ul>' +
  13640. donebutton +
  13641. '</div>' +
  13642. '</div>';
  13643. return $(drop);
  13644. },
  13645. createView: function () {
  13646. var $drop = this.createDropdown(),
  13647. li = this.createLi();
  13648. $drop.find('ul')[0].innerHTML = li;
  13649. return $drop;
  13650. },
  13651. reloadLi: function () {
  13652. //Remove all children.
  13653. this.destroyLi();
  13654. //Re build
  13655. var li = this.createLi();
  13656. this.$menuInner[0].innerHTML = li;
  13657. },
  13658. destroyLi: function () {
  13659. this.$menu.find('li').remove();
  13660. },
  13661. createLi: function () {
  13662. var that = this,
  13663. _li = [],
  13664. optID = 0,
  13665. titleOption = document.createElement('option'),
  13666. liIndex = -1; // increment liIndex whenever a new <li> element is created to ensure liObj is correct
  13667. // Helper functions
  13668. /**
  13669. * @param content
  13670. * @param [index]
  13671. * @param [classes]
  13672. * @param [optgroup]
  13673. * @returns {string}
  13674. */
  13675. var generateLI = function (content, index, classes, optgroup) {
  13676. return '<li' +
  13677. ((typeof classes !== 'undefined' & '' !== classes) ? ' class="' + classes + '"' : '') +
  13678. ((typeof index !== 'undefined' & null !== index) ? ' data-original-index="' + index + '"' : '') +
  13679. ((typeof optgroup !== 'undefined' & null !== optgroup) ? 'data-optgroup="' + optgroup + '"' : '') +
  13680. '>' + content + '</li>';
  13681. };
  13682. /**
  13683. * @param text
  13684. * @param [classes]
  13685. * @param [inline]
  13686. * @param [tokens]
  13687. * @returns {string}
  13688. */
  13689. var generateA = function (text, classes, inline, tokens) {
  13690. return '<a tabindex="0"' +
  13691. (typeof classes !== 'undefined' ? ' class="' + classes + '"' : '') +
  13692. (typeof inline !== 'undefined' ? ' style="' + inline + '"' : '') +
  13693. (that.options.liveSearchNormalize ? ' data-normalized-text="' + normalizeToBase(htmlEscape(text)) + '"' : '') +
  13694. (typeof tokens !== 'undefined' || tokens !== null ? ' data-tokens="' + tokens + '"' : '') +
  13695. '>' + text +
  13696. '<span class="' + that.options.iconBase + ' ' + that.options.tickIcon + ' check-mark"></span>' +
  13697. '</a>';
  13698. };
  13699. if (this.options.title && !this.multiple) {
  13700. // this option doesn't create a new <li> element, but does add a new option, so liIndex is decreased
  13701. // since liObj is recalculated on every refresh, liIndex needs to be decreased even if the titleOption is already appended
  13702. liIndex--;
  13703. if (!this.$element.find('.bs-title-option').length) {
  13704. // Use native JS to prepend option (faster)
  13705. var element = this.$element[0];
  13706. titleOption.className = 'bs-title-option';
  13707. titleOption.appendChild(document.createTextNode(this.options.title));
  13708. titleOption.value = '';
  13709. element.insertBefore(titleOption, element.firstChild);
  13710. // Check if selected attribute is already set on an option. If not, select the titleOption option.
  13711. if (element.options[element.selectedIndex].getAttribute('selected') === null) titleOption.selected = true;
  13712. }
  13713. }
  13714. this.$element.find('option').each(function (index) {
  13715. var $this = $(this);
  13716. liIndex++;
  13717. if ($this.hasClass('bs-title-option')) return;
  13718. // Get the class and text for the option
  13719. var optionClass = this.className || '',
  13720. inline = this.style.cssText,
  13721. text = $this.data('content') ? $this.data('content') : $this.html(),
  13722. tokens = $this.data('tokens') ? $this.data('tokens') : null,
  13723. subtext = typeof $this.data('subtext') !== 'undefined' ? '<small class="text-muted">' + $this.data('subtext') + '</small>' : '',
  13724. icon = typeof $this.data('icon') !== 'undefined' ? '<span class="' + that.options.iconBase + ' ' + $this.data('icon') + '"></span> ' : '',
  13725. isDisabled = this.disabled || this.parentElement.tagName === 'OPTGROUP' && this.parentElement.disabled;
  13726. if (icon !== '' && isDisabled) {
  13727. icon = '<span>' + icon + '</span>';
  13728. }
  13729. if (that.options.hideDisabled && isDisabled) {
  13730. liIndex--;
  13731. return;
  13732. }
  13733. if (!$this.data('content')) {
  13734. // Prepend any icon and append any subtext to the main text.
  13735. text = icon + '<span class="text">' + text + subtext + '</span>';
  13736. }
  13737. if (this.parentElement.tagName === 'OPTGROUP' && $this.data('divider') !== true) {
  13738. if ($this.index() === 0) { // Is it the first option of the optgroup?
  13739. optID += 1;
  13740. // Get the opt group label
  13741. var label = this.parentElement.label,
  13742. labelSubtext = typeof $this.parent().data('subtext') !== 'undefined' ? '<small class="text-muted">' + $this.parent().data('subtext') + '</small>' : '',
  13743. labelIcon = $this.parent().data('icon') ? '<span class="' + that.options.iconBase + ' ' + $this.parent().data('icon') + '"></span> ' : '',
  13744. optGroupClass = ' ' + this.parentElement.className || '';
  13745. label = labelIcon + '<span class="text">' + label + labelSubtext + '</span>';
  13746. if (index !== 0 && _li.length > 0) { // Is it NOT the first option of the select && are there elements in the dropdown?
  13747. liIndex++;
  13748. _li.push(generateLI('', null, 'divider', optID + 'div'));
  13749. }
  13750. liIndex++;
  13751. _li.push(generateLI(label, null, 'dropdown-header' + optGroupClass, optID));
  13752. }
  13753. _li.push(generateLI(generateA(text, 'opt ' + optionClass + optGroupClass, inline, tokens), index, '', optID));
  13754. } else if ($this.data('divider') === true) {
  13755. _li.push(generateLI('', index, 'divider'));
  13756. } else if ($this.data('hidden') === true) {
  13757. _li.push(generateLI(generateA(text, optionClass, inline, tokens), index, 'hidden is-hidden'));
  13758. } else {
  13759. if (this.previousElementSibling && this.previousElementSibling.tagName === 'OPTGROUP') {
  13760. liIndex++;
  13761. _li.push(generateLI('', null, 'divider', optID + 'div'));
  13762. }
  13763. _li.push(generateLI(generateA(text, optionClass, inline, tokens), index));
  13764. }
  13765. that.liObj[index] = liIndex;
  13766. });
  13767. //If we are not multiple, we don't have a selected item, and we don't have a title, select the first element so something is set in the button
  13768. if (!this.multiple && this.$element.find('option:selected').length === 0 && !this.options.title) {
  13769. this.$element.find('option').eq(0).prop('selected', true).attr('selected', 'selected');
  13770. }
  13771. return _li.join('');
  13772. },
  13773. findLis: function () {
  13774. if (this.$lis == null) this.$lis = this.$menu.find('li');
  13775. return this.$lis;
  13776. },
  13777. /**
  13778. * @param [updateLi] defaults to true
  13779. */
  13780. render: function (updateLi) {
  13781. var that = this,
  13782. notDisabled;
  13783. //Update the LI to match the SELECT
  13784. if (updateLi !== false) {
  13785. this.$element.find('option').each(function (index) {
  13786. var $lis = that.findLis().eq(that.liObj[index]);
  13787. that.setDisabled(index, this.disabled || this.parentElement.tagName === 'OPTGROUP' && this.parentElement.disabled, $lis);
  13788. that.setSelected(index, this.selected, $lis);
  13789. });
  13790. }
  13791. this.tabIndex();
  13792. var selectedItems = this.$element.find('option').map(function () {
  13793. if (this.selected) {
  13794. if (that.options.hideDisabled && (this.disabled || this.parentElement.tagName === 'OPTGROUP' && this.parentElement.disabled)) return false;
  13795. var $this = $(this),
  13796. icon = $this.data('icon') && that.options.showIcon ? '<i class="' + that.options.iconBase + ' ' + $this.data('icon') + '"></i> ' : '',
  13797. subtext;
  13798. if (that.options.showSubtext && $this.data('subtext') && !that.multiple) {
  13799. subtext = ' <small class="text-muted">' + $this.data('subtext') + '</small>';
  13800. } else {
  13801. subtext = '';
  13802. }
  13803. if (typeof $this.attr('title') !== 'undefined') {
  13804. return $this.attr('title');
  13805. } else if ($this.data('content') && that.options.showContent) {
  13806. return $this.data('content');
  13807. } else {
  13808. return icon + $this.html() + subtext;
  13809. }
  13810. }
  13811. }).toArray();
  13812. //Fixes issue in IE10 occurring when no default option is selected and at least one option is disabled
  13813. //Convert all the values into a comma delimited string
  13814. var title = !this.multiple ? selectedItems[0] : selectedItems.join(this.options.multipleSeparator);
  13815. //If this is multi select, and the selectText type is count, the show 1 of 2 selected etc..
  13816. if (this.multiple && this.options.selectedTextFormat.indexOf('count') > -1) {
  13817. var max = this.options.selectedTextFormat.split('>');
  13818. if ((max.length > 1 && selectedItems.length > max[1]) || (max.length == 1 && selectedItems.length >= 2)) {
  13819. notDisabled = this.options.hideDisabled ? ', [disabled]' : '';
  13820. var totalCount = this.$element.find('option').not('[data-divider="true"], [data-hidden="true"]' + notDisabled).length,
  13821. tr8nText = (typeof this.options.countSelectedText === 'function') ? this.options.countSelectedText(selectedItems.length, totalCount) : this.options.countSelectedText;
  13822. title = tr8nText.replace('{0}', selectedItems.length.toString()).replace('{1}', totalCount.toString());
  13823. }
  13824. }
  13825. if (this.options.title == undefined) {
  13826. this.options.title = this.$element.attr('title');
  13827. }
  13828. if (this.options.selectedTextFormat == 'static') {
  13829. title = this.options.title;
  13830. }
  13831. //If we dont have a title, then use the default, or if nothing is set at all, use the not selected text
  13832. if (!title) {
  13833. title = typeof this.options.title !== 'undefined' ? this.options.title : this.options.noneSelectedText;
  13834. }
  13835. //strip all html-tags and trim the result
  13836. this.$button.attr('title', $.trim(title.replace(/<[^>]*>?/g, '')));
  13837. this.$button.children('.filter-option').html(title);
  13838. this.$element.trigger('rendered.bs.select');
  13839. },
  13840. /**
  13841. * @param [style]
  13842. * @param [status]
  13843. */
  13844. setStyle: function (style, status) {
  13845. if (this.$element.attr('class')) {
  13846. this.$newElement.addClass(this.$element.attr('class').replace(/selectpicker|mobile-device|bs-select-hidden|validate\[.*\]/gi, ''));
  13847. }
  13848. var buttonClass = style ? style : this.options.style;
  13849. if (status == 'add') {
  13850. this.$button.addClass(buttonClass);
  13851. } else if (status == 'remove') {
  13852. this.$button.removeClass(buttonClass);
  13853. } else {
  13854. this.$button.removeClass(this.options.style);
  13855. this.$button.addClass(buttonClass);
  13856. }
  13857. },
  13858. liHeight: function (refresh) {
  13859. if (!refresh && (this.options.size === false || this.sizeInfo)) return;
  13860. var newElement = document.createElement('div'),
  13861. menu = document.createElement('div'),
  13862. menuInner = document.createElement('ul'),
  13863. divider = document.createElement('li'),
  13864. li = document.createElement('li'),
  13865. a = document.createElement('a'),
  13866. text = document.createElement('span'),
  13867. header = this.options.header ? this.$menu.find('.popover-title')[0].cloneNode(true) : null,
  13868. search = this.options.liveSearch ? document.createElement('div') : null,
  13869. actions = this.options.actionsBox && this.multiple ? this.$menu.find('.bs-actionsbox')[0].cloneNode(true) : null,
  13870. doneButton = this.options.doneButton && this.multiple ? this.$menu.find('.bs-donebutton')[0].cloneNode(true) : null;
  13871. text.className = 'text';
  13872. newElement.className = this.$menu[0].parentNode.className + ' open';
  13873. menu.className = 'dropdown-menu open';
  13874. menuInner.className = 'dropdown-menu inner';
  13875. divider.className = 'divider';
  13876. text.appendChild(document.createTextNode('Inner text'));
  13877. a.appendChild(text);
  13878. li.appendChild(a);
  13879. menuInner.appendChild(li);
  13880. menuInner.appendChild(divider);
  13881. if (header) menu.appendChild(header);
  13882. if (search) {
  13883. // create a span instead of input as creating an input element is slower
  13884. var input = document.createElement('span');
  13885. search.className = 'bs-searchbox';
  13886. input.className = 'form-control';
  13887. search.appendChild(input);
  13888. menu.appendChild(search);
  13889. }
  13890. if (actions) menu.appendChild(actions);
  13891. menu.appendChild(menuInner);
  13892. if (doneButton) menu.appendChild(doneButton);
  13893. newElement.appendChild(menu);
  13894. document.body.appendChild(newElement);
  13895. var liHeight = a.offsetHeight,
  13896. headerHeight = header ? header.offsetHeight : 0,
  13897. searchHeight = search ? search.offsetHeight : 0,
  13898. actionsHeight = actions ? actions.offsetHeight : 0,
  13899. doneButtonHeight = doneButton ? doneButton.offsetHeight : 0,
  13900. dividerHeight = $(divider).outerHeight(true),
  13901. // fall back to jQuery if getComputedStyle is not supported
  13902. menuStyle = getComputedStyle ? getComputedStyle(menu) : false,
  13903. $menu = menuStyle ? $(menu) : null,
  13904. menuPadding = parseInt(menuStyle ? menuStyle.paddingTop : $menu.css('paddingTop')) +
  13905. parseInt(menuStyle ? menuStyle.paddingBottom : $menu.css('paddingBottom')) +
  13906. parseInt(menuStyle ? menuStyle.borderTopWidth : $menu.css('borderTopWidth')) +
  13907. parseInt(menuStyle ? menuStyle.borderBottomWidth : $menu.css('borderBottomWidth')),
  13908. menuExtras = menuPadding +
  13909. parseInt(menuStyle ? menuStyle.marginTop : $menu.css('marginTop')) +
  13910. parseInt(menuStyle ? menuStyle.marginBottom : $menu.css('marginBottom')) + 2;
  13911. document.body.removeChild(newElement);
  13912. this.sizeInfo = {
  13913. liHeight: liHeight,
  13914. headerHeight: headerHeight,
  13915. searchHeight: searchHeight,
  13916. actionsHeight: actionsHeight,
  13917. doneButtonHeight: doneButtonHeight,
  13918. dividerHeight: dividerHeight,
  13919. menuPadding: menuPadding,
  13920. menuExtras: menuExtras
  13921. };
  13922. },
  13923. setSize: function () {
  13924. this.findLis();
  13925. this.liHeight();
  13926. var that = this,
  13927. $menu = this.$menu,
  13928. $menuInner = this.$menuInner,
  13929. $window = $(window),
  13930. selectHeight = this.$newElement[0].offsetHeight,
  13931. liHeight = this.sizeInfo['liHeight'],
  13932. headerHeight = this.sizeInfo['headerHeight'],
  13933. searchHeight = this.sizeInfo['searchHeight'],
  13934. actionsHeight = this.sizeInfo['actionsHeight'],
  13935. doneButtonHeight = this.sizeInfo['doneButtonHeight'],
  13936. divHeight = this.sizeInfo['dividerHeight'],
  13937. menuPadding = this.sizeInfo['menuPadding'],
  13938. menuExtras = this.sizeInfo['menuExtras'],
  13939. notDisabled = this.options.hideDisabled ? '.disabled' : '',
  13940. menuHeight,
  13941. getHeight,
  13942. selectOffsetTop,
  13943. selectOffsetBot,
  13944. posVert = function () {
  13945. selectOffsetTop = that.$newElement.offset().top - $window.scrollTop();
  13946. selectOffsetBot = $window.height() - selectOffsetTop - selectHeight;
  13947. };
  13948. posVert();
  13949. if (this.options.header) $menu.css('padding-top', 0);
  13950. if (this.options.size === 'auto') {
  13951. var getSize = function () {
  13952. var minHeight,
  13953. hasClass = function (className, include) {
  13954. return function (element) {
  13955. if (include) {
  13956. return (element.classList ? element.classList.contains(className) : $(element).hasClass(className));
  13957. } else {
  13958. return !(element.classList ? element.classList.contains(className) : $(element).hasClass(className));
  13959. }
  13960. };
  13961. },
  13962. lis = that.$menuInner[0].getElementsByTagName('li'),
  13963. lisVisible = Array.prototype.filter ? Array.prototype.filter.call(lis, hasClass('hidden', false)) : that.$lis.not('.hidden'),
  13964. optGroup = Array.prototype.filter ? Array.prototype.filter.call(lisVisible, hasClass('dropdown-header', true)) : lisVisible.filter('.dropdown-header');
  13965. posVert();
  13966. menuHeight = selectOffsetBot - menuExtras;
  13967. if (that.options.container) {
  13968. if (!$menu.data('height')) $menu.data('height', $menu.height());
  13969. getHeight = $menu.data('height');
  13970. } else {
  13971. getHeight = $menu.height();
  13972. }
  13973. if (that.options.dropupAuto) {
  13974. that.$newElement.toggleClass('dropup', selectOffsetTop > selectOffsetBot && (menuHeight - menuExtras) < getHeight);
  13975. }
  13976. if (that.$newElement.hasClass('dropup')) {
  13977. menuHeight = selectOffsetTop - menuExtras;
  13978. }
  13979. if ((lisVisible.length + optGroup.length) > 3) {
  13980. minHeight = liHeight * 3 + menuExtras - 2;
  13981. } else {
  13982. minHeight = 0;
  13983. }
  13984. $menu.css({
  13985. 'max-height': menuHeight + 'px',
  13986. 'overflow': 'hidden',
  13987. 'min-height': minHeight + headerHeight + searchHeight + actionsHeight + doneButtonHeight + 'px'
  13988. });
  13989. $menuInner.css({
  13990. 'max-height': menuHeight - headerHeight - searchHeight - actionsHeight - doneButtonHeight - menuPadding + 'px',
  13991. 'overflow-y': 'auto',
  13992. 'min-height': Math.max(minHeight - menuPadding, 0) + 'px'
  13993. });
  13994. };
  13995. getSize();
  13996. this.$searchbox.off('input.getSize propertychange.getSize').on('input.getSize propertychange.getSize', getSize);
  13997. $window.off('resize.getSize scroll.getSize').on('resize.getSize scroll.getSize', getSize);
  13998. } else if (this.options.size && this.options.size != 'auto' && this.$lis.not(notDisabled).length > this.options.size) {
  13999. var optIndex = this.$lis.not('.divider').not(notDisabled).children().slice(0, this.options.size).last().parent().index(),
  14000. divLength = this.$lis.slice(0, optIndex + 1).filter('.divider').length;
  14001. menuHeight = liHeight * this.options.size + divLength * divHeight + menuPadding;
  14002. if (that.options.container) {
  14003. if (!$menu.data('height')) $menu.data('height', $menu.height());
  14004. getHeight = $menu.data('height');
  14005. } else {
  14006. getHeight = $menu.height();
  14007. }
  14008. if (that.options.dropupAuto) {
  14009. //noinspection JSUnusedAssignment
  14010. this.$newElement.toggleClass('dropup', selectOffsetTop > selectOffsetBot && (menuHeight - menuExtras) < getHeight);
  14011. }
  14012. $menu.css({
  14013. 'max-height': menuHeight + headerHeight + searchHeight + actionsHeight + doneButtonHeight + 'px',
  14014. 'overflow': 'hidden',
  14015. 'min-height': ''
  14016. });
  14017. $menuInner.css({
  14018. 'max-height': menuHeight - menuPadding + 'px',
  14019. 'overflow-y': 'auto',
  14020. 'min-height': ''
  14021. });
  14022. }
  14023. },
  14024. setWidth: function () {
  14025. if (this.options.width === 'auto') {
  14026. this.$menu.css('min-width', '0');
  14027. // Get correct width if element is hidden
  14028. var $selectClone = this.$menu.parent().clone().appendTo('body'),
  14029. $selectClone2 = this.options.container ? this.$newElement.clone().appendTo('body') : $selectClone,
  14030. ulWidth = $selectClone.children('.dropdown-menu').outerWidth(),
  14031. btnWidth = $selectClone2.css('width', 'auto').children('button').outerWidth();
  14032. $selectClone.remove();
  14033. $selectClone2.remove();
  14034. // Set width to whatever's larger, button title or longest option
  14035. this.$newElement.css('width', Math.max(ulWidth, btnWidth) + 'px');
  14036. } else if (this.options.width === 'fit') {
  14037. // Remove inline min-width so width can be changed from 'auto'
  14038. this.$menu.css('min-width', '');
  14039. this.$newElement.css('width', '').addClass('fit-width');
  14040. } else if (this.options.width) {
  14041. // Remove inline min-width so width can be changed from 'auto'
  14042. this.$menu.css('min-width', '');
  14043. this.$newElement.css('width', this.options.width);
  14044. } else {
  14045. // Remove inline min-width/width so width can be changed
  14046. this.$menu.css('min-width', '');
  14047. this.$newElement.css('width', '');
  14048. }
  14049. // Remove fit-width class if width is changed programmatically
  14050. if (this.$newElement.hasClass('fit-width') && this.options.width !== 'fit') {
  14051. this.$newElement.removeClass('fit-width');
  14052. }
  14053. },
  14054. selectPosition: function () {
  14055. var that = this,
  14056. drop = '<div />',
  14057. $drop = $(drop),
  14058. pos,
  14059. actualHeight,
  14060. getPlacement = function ($element) {
  14061. $drop.addClass($element.attr('class').replace(/form-control|fit-width/gi, '')).toggleClass('dropup', $element.hasClass('dropup'));
  14062. pos = $element.offset();
  14063. actualHeight = $element.hasClass('dropup') ? 0 : $element[0].offsetHeight;
  14064. $drop.css({
  14065. 'top': pos.top + actualHeight,
  14066. 'left': pos.left,
  14067. 'width': $element[0].offsetWidth,
  14068. 'position': 'absolute'
  14069. });
  14070. };
  14071. this.$newElement.on('click', function () {
  14072. if (that.isDisabled()) {
  14073. return;
  14074. }
  14075. getPlacement($(this));
  14076. $drop.appendTo(that.options.container);
  14077. $drop.toggleClass('open', !$(this).hasClass('open'));
  14078. $drop.append(that.$menu);
  14079. });
  14080. $(window).on('resize scroll', function () {
  14081. getPlacement(that.$newElement);
  14082. });
  14083. this.$element.on('hide.bs.select', function () {
  14084. that.$menu.data('height', that.$menu.height());
  14085. $drop.detach();
  14086. });
  14087. },
  14088. setSelected: function (index, selected, $lis) {
  14089. if (!$lis) {
  14090. var $lis = this.findLis().eq(this.liObj[index]);
  14091. }
  14092. $lis.toggleClass('selected', selected);
  14093. },
  14094. setDisabled: function (index, disabled, $lis) {
  14095. if (!$lis) {
  14096. var $lis = this.findLis().eq(this.liObj[index]);
  14097. }
  14098. if (disabled) {
  14099. $lis.addClass('disabled').children('a').attr('href', '#').attr('tabindex', -1);
  14100. } else {
  14101. $lis.removeClass('disabled').children('a').removeAttr('href').attr('tabindex', 0);
  14102. }
  14103. },
  14104. isDisabled: function () {
  14105. return this.$element[0].disabled;
  14106. },
  14107. checkDisabled: function () {
  14108. var that = this;
  14109. if (this.isDisabled()) {
  14110. this.$newElement.addClass('disabled');
  14111. this.$button.addClass('disabled').attr('tabindex', -1);
  14112. } else {
  14113. if (this.$button.hasClass('disabled')) {
  14114. this.$newElement.removeClass('disabled');
  14115. this.$button.removeClass('disabled');
  14116. }
  14117. if (this.$button.attr('tabindex') == -1 && !this.$element.data('tabindex')) {
  14118. this.$button.removeAttr('tabindex');
  14119. }
  14120. }
  14121. this.$button.click(function () {
  14122. return !that.isDisabled();
  14123. });
  14124. },
  14125. tabIndex: function () {
  14126. if (this.$element.is('[tabindex]')) {
  14127. this.$element.data('tabindex', this.$element.attr('tabindex'));
  14128. this.$button.attr('tabindex', this.$element.data('tabindex'));
  14129. }
  14130. },
  14131. clickListener: function () {
  14132. var that = this,
  14133. $document = $(document);
  14134. this.$newElement.on('touchstart.dropdown', '.dropdown-menu', function (e) {
  14135. e.stopPropagation();
  14136. });
  14137. $document.data('spaceSelect', false);
  14138. this.$button.on('keyup', function (e) {
  14139. if (/(32)/.test(e.keyCode.toString(10)) && $document.data('spaceSelect')) {
  14140. e.preventDefault();
  14141. $document.data('spaceSelect', false);
  14142. }
  14143. });
  14144. this.$newElement.on('click', function () {
  14145. that.setSize();
  14146. that.$element.on('shown.bs.select', function () {
  14147. if (!that.options.liveSearch && !that.multiple) {
  14148. that.$menu.find('.selected a').focus();
  14149. } else if (!that.multiple) {
  14150. var selectedIndex = that.liObj[that.$element[0].selectedIndex];
  14151. if (typeof selectedIndex !== 'number') return;
  14152. // scroll to selected option
  14153. var offset = that.$lis.eq(selectedIndex)[0].offsetTop - that.$menuInner[0].offsetTop;
  14154. offset = offset - that.$menuInner[0].offsetHeight/2 + that.sizeInfo.liHeight/2;
  14155. that.$menuInner[0].scrollTop = offset;
  14156. }
  14157. });
  14158. });
  14159. this.$menu.on('click', 'li a', function (e) {
  14160. var $this = $(this),
  14161. clickedIndex = $this.parent().data('originalIndex'),
  14162. prevValue = that.$element.val(),
  14163. prevIndex = that.$element.prop('selectedIndex');
  14164. // Don't close on multi choice menu
  14165. if (that.multiple) {
  14166. e.stopPropagation();
  14167. }
  14168. e.preventDefault();
  14169. //Don't run if we have been disabled
  14170. if (!that.isDisabled() && !$this.parent().hasClass('disabled')) {
  14171. var $options = that.$element.find('option'),
  14172. $option = $options.eq(clickedIndex),
  14173. state = $option.prop('selected'),
  14174. $optgroup = $option.parent('optgroup'),
  14175. maxOptions = that.options.maxOptions,
  14176. maxOptionsGrp = $optgroup.data('maxOptions') || false;
  14177. if (!that.multiple) { // Deselect all others if not multi select box
  14178. $options.prop('selected', false);
  14179. $option.prop('selected', true);
  14180. that.$menu.find('.selected').removeClass('selected');
  14181. that.setSelected(clickedIndex, true);
  14182. } else { // Toggle the one we have chosen if we are multi select.
  14183. $option.prop('selected', !state);
  14184. that.setSelected(clickedIndex, !state);
  14185. $this.blur();
  14186. if (maxOptions !== false || maxOptionsGrp !== false) {
  14187. var maxReached = maxOptions < $options.filter(':selected').length,
  14188. maxReachedGrp = maxOptionsGrp < $optgroup.find('option:selected').length;
  14189. if ((maxOptions && maxReached) || (maxOptionsGrp && maxReachedGrp)) {
  14190. if (maxOptions && maxOptions == 1) {
  14191. $options.prop('selected', false);
  14192. $option.prop('selected', true);
  14193. that.$menu.find('.selected').removeClass('selected');
  14194. that.setSelected(clickedIndex, true);
  14195. } else if (maxOptionsGrp && maxOptionsGrp == 1) {
  14196. $optgroup.find('option:selected').prop('selected', false);
  14197. $option.prop('selected', true);
  14198. var optgroupID = $this.parent().data('optgroup');
  14199. that.$menu.find('[data-optgroup="' + optgroupID + '"]').removeClass('selected');
  14200. that.setSelected(clickedIndex, true);
  14201. } else {
  14202. var maxOptionsArr = (typeof that.options.maxOptionsText === 'function') ?
  14203. that.options.maxOptionsText(maxOptions, maxOptionsGrp) : that.options.maxOptionsText,
  14204. maxTxt = maxOptionsArr[0].replace('{n}', maxOptions),
  14205. maxTxtGrp = maxOptionsArr[1].replace('{n}', maxOptionsGrp),
  14206. $notify = $('<div class="notify"></div>');
  14207. // If {var} is set in array, replace it
  14208. /** @deprecated */
  14209. if (maxOptionsArr[2]) {
  14210. maxTxt = maxTxt.replace('{var}', maxOptionsArr[2][maxOptions > 1 ? 0 : 1]);
  14211. maxTxtGrp = maxTxtGrp.replace('{var}', maxOptionsArr[2][maxOptionsGrp > 1 ? 0 : 1]);
  14212. }
  14213. $option.prop('selected', false);
  14214. that.$menu.append($notify);
  14215. if (maxOptions && maxReached) {
  14216. $notify.append($('<div>' + maxTxt + '</div>'));
  14217. that.$element.trigger('maxReached.bs.select');
  14218. }
  14219. if (maxOptionsGrp && maxReachedGrp) {
  14220. $notify.append($('<div>' + maxTxtGrp + '</div>'));
  14221. that.$element.trigger('maxReachedGrp.bs.select');
  14222. }
  14223. setTimeout(function () {
  14224. that.setSelected(clickedIndex, false);
  14225. }, 10);
  14226. $notify.delay(750).fadeOut(300, function () {
  14227. $(this).remove();
  14228. });
  14229. }
  14230. }
  14231. }
  14232. }
  14233. if (!that.multiple) {
  14234. that.$button.focus();
  14235. } else if (that.options.liveSearch) {
  14236. that.$searchbox.focus();
  14237. }
  14238. // Trigger select 'change'
  14239. if ((prevValue != that.$element.val() && that.multiple) || (prevIndex != that.$element.prop('selectedIndex') && !that.multiple)) {
  14240. that.$element.change();
  14241. // $option.prop('selected') is current option state (selected/unselected). state is previous option state.
  14242. that.$element.trigger('changed.bs.select', [clickedIndex, $option.prop('selected'), state]);
  14243. }
  14244. }
  14245. });
  14246. this.$menu.on('click', 'li.disabled a, .popover-title, .popover-title :not(.close)', function (e) {
  14247. if (e.currentTarget == this) {
  14248. e.preventDefault();
  14249. e.stopPropagation();
  14250. if (that.options.liveSearch && !$(e.target).hasClass('close')) {
  14251. that.$searchbox.focus();
  14252. } else {
  14253. that.$button.focus();
  14254. }
  14255. }
  14256. });
  14257. this.$menu.on('click', 'li.divider, li.dropdown-header', function (e) {
  14258. e.preventDefault();
  14259. e.stopPropagation();
  14260. if (that.options.liveSearch) {
  14261. that.$searchbox.focus();
  14262. } else {
  14263. that.$button.focus();
  14264. }
  14265. });
  14266. this.$menu.on('click', '.popover-title .close', function () {
  14267. that.$button.click();
  14268. });
  14269. this.$searchbox.on('click', function (e) {
  14270. e.stopPropagation();
  14271. });
  14272. this.$menu.on('click', '.actions-btn', function (e) {
  14273. if (that.options.liveSearch) {
  14274. that.$searchbox.focus();
  14275. } else {
  14276. that.$button.focus();
  14277. }
  14278. e.preventDefault();
  14279. e.stopPropagation();
  14280. if ($(this).hasClass('bs-select-all')) {
  14281. that.selectAll();
  14282. } else {
  14283. that.deselectAll();
  14284. }
  14285. that.$element.change();
  14286. });
  14287. this.$element.change(function () {
  14288. that.render(false);
  14289. });
  14290. },
  14291. liveSearchListener: function () {
  14292. var that = this,
  14293. $no_results = $('<li class="no-results"></li>');
  14294. this.$newElement.on('click.dropdown.data-api touchstart.dropdown.data-api', function () {
  14295. that.$menuInner.find('.active').removeClass('active');
  14296. if (!!that.$searchbox.val()) {
  14297. that.$searchbox.val('');
  14298. that.$lis.not('.is-hidden').removeClass('hidden');
  14299. if (!!$no_results.parent().length) $no_results.remove();
  14300. }
  14301. if (!that.multiple) that.$menuInner.find('.selected').addClass('active');
  14302. setTimeout(function () {
  14303. that.$searchbox.focus();
  14304. }, 10);
  14305. });
  14306. this.$searchbox.on('click.dropdown.data-api focus.dropdown.data-api touchend.dropdown.data-api', function (e) {
  14307. e.stopPropagation();
  14308. });
  14309. this.$searchbox.on('input propertychange', function () {
  14310. if (that.$searchbox.val()) {
  14311. var $searchBase = that.$lis.not('.is-hidden').removeClass('hidden').children('a');
  14312. if (that.options.liveSearchNormalize) {
  14313. $searchBase = $searchBase.not(':a' + that._searchStyle() + '(' + normalizeToBase(that.$searchbox.val()) + ')');
  14314. } else {
  14315. $searchBase = $searchBase.not(':' + that._searchStyle() + '(' + that.$searchbox.val() + ')');
  14316. }
  14317. $searchBase.parent().addClass('hidden');
  14318. that.$lis.filter('.dropdown-header').each(function () {
  14319. var $this = $(this),
  14320. optgroup = $this.data('optgroup');
  14321. if (that.$lis.filter('[data-optgroup=' + optgroup + ']').not($this).not('.hidden').length === 0) {
  14322. $this.addClass('hidden');
  14323. that.$lis.filter('[data-optgroup=' + optgroup + 'div]').addClass('hidden');
  14324. }
  14325. });
  14326. var $lisVisible = that.$lis.not('.hidden');
  14327. // hide divider if first or last visible, or if followed by another divider
  14328. $lisVisible.each(function (index) {
  14329. var $this = $(this);
  14330. if ($this.hasClass('divider') && (
  14331. $this.index() === $lisVisible.eq(0).index() ||
  14332. $this.index() === $lisVisible.last().index() ||
  14333. $lisVisible.eq(index + 1).hasClass('divider'))) {
  14334. $this.addClass('hidden');
  14335. }
  14336. });
  14337. if (!that.$lis.not('.hidden, .no-results').length) {
  14338. if (!!$no_results.parent().length) {
  14339. $no_results.remove();
  14340. }
  14341. $no_results.html(that.options.noneResultsText.replace('{0}', '"' + htmlEscape(that.$searchbox.val()) + '"')).show();
  14342. that.$menuInner.append($no_results);
  14343. } else if (!!$no_results.parent().length) {
  14344. $no_results.remove();
  14345. }
  14346. } else {
  14347. that.$lis.not('.is-hidden').removeClass('hidden');
  14348. if (!!$no_results.parent().length) {
  14349. $no_results.remove();
  14350. }
  14351. }
  14352. that.$lis.filter('.active').removeClass('active');
  14353. that.$lis.not('.hidden, .divider, .dropdown-header').eq(0).addClass('active').children('a').focus();
  14354. $(this).focus();
  14355. });
  14356. },
  14357. _searchStyle: function () {
  14358. var style = 'icontains';
  14359. switch (this.options.liveSearchStyle) {
  14360. case 'begins':
  14361. case 'startsWith':
  14362. style = 'ibegins';
  14363. break;
  14364. case 'contains':
  14365. default:
  14366. break; //no need to change the default
  14367. }
  14368. return style;
  14369. },
  14370. val: function (value) {
  14371. if (typeof value !== 'undefined') {
  14372. this.$element.val(value);
  14373. this.render();
  14374. return this.$element;
  14375. } else {
  14376. return this.$element.val();
  14377. }
  14378. },
  14379. selectAll: function () {
  14380. this.findLis();
  14381. this.$element.find('option:enabled').not('[data-divider], [data-hidden]').prop('selected', true);
  14382. this.$lis.not('.divider, .dropdown-header, .disabled, .hidden').addClass('selected');
  14383. this.render(false);
  14384. },
  14385. deselectAll: function () {
  14386. this.findLis();
  14387. this.$element.find('option:enabled').not('[data-divider], [data-hidden]').prop('selected', false);
  14388. this.$lis.not('.divider, .dropdown-header, .disabled, .hidden').removeClass('selected');
  14389. this.render(false);
  14390. },
  14391. keydown: function (e) {
  14392. var $this = $(this),
  14393. $parent = $this.is('input') ? $this.parent().parent() : $this.parent(),
  14394. $items,
  14395. that = $parent.data('this'),
  14396. index,
  14397. next,
  14398. first,
  14399. last,
  14400. prev,
  14401. nextPrev,
  14402. prevIndex,
  14403. isActive,
  14404. selector = ':not(.disabled, .hidden, .dropdown-header, .divider)',
  14405. keyCodeMap = {
  14406. 32: ' ',
  14407. 48: '0',
  14408. 49: '1',
  14409. 50: '2',
  14410. 51: '3',
  14411. 52: '4',
  14412. 53: '5',
  14413. 54: '6',
  14414. 55: '7',
  14415. 56: '8',
  14416. 57: '9',
  14417. 59: ';',
  14418. 65: 'a',
  14419. 66: 'b',
  14420. 67: 'c',
  14421. 68: 'd',
  14422. 69: 'e',
  14423. 70: 'f',
  14424. 71: 'g',
  14425. 72: 'h',
  14426. 73: 'i',
  14427. 74: 'j',
  14428. 75: 'k',
  14429. 76: 'l',
  14430. 77: 'm',
  14431. 78: 'n',
  14432. 79: 'o',
  14433. 80: 'p',
  14434. 81: 'q',
  14435. 82: 'r',
  14436. 83: 's',
  14437. 84: 't',
  14438. 85: 'u',
  14439. 86: 'v',
  14440. 87: 'w',
  14441. 88: 'x',
  14442. 89: 'y',
  14443. 90: 'z',
  14444. 96: '0',
  14445. 97: '1',
  14446. 98: '2',
  14447. 99: '3',
  14448. 100: '4',
  14449. 101: '5',
  14450. 102: '6',
  14451. 103: '7',
  14452. 104: '8',
  14453. 105: '9'
  14454. };
  14455. if (that.options.liveSearch) $parent = $this.parent().parent();
  14456. if (that.options.container) $parent = that.$menu;
  14457. $items = $('[role=menu] li a', $parent);
  14458. isActive = that.$menu.parent().hasClass('open');
  14459. if (!isActive && (e.keyCode >= 48 && e.keyCode <= 57 || event.keyCode >= 65 && event.keyCode <= 90)) {
  14460. if (!that.options.container) {
  14461. that.setSize();
  14462. that.$menu.parent().addClass('open');
  14463. isActive = true;
  14464. } else {
  14465. that.$newElement.trigger('click');
  14466. }
  14467. that.$searchbox.focus();
  14468. }
  14469. if (that.options.liveSearch) {
  14470. if (/(^9$|27)/.test(e.keyCode.toString(10)) && isActive && that.$menu.find('.active').length === 0) {
  14471. e.preventDefault();
  14472. that.$menu.parent().removeClass('open');
  14473. if (that.options.container) that.$newElement.removeClass('open');
  14474. that.$button.focus();
  14475. }
  14476. // $items contains li elements when liveSearch is enabled
  14477. $items = $('[role=menu] li:not(.disabled, .hidden, .dropdown-header, .divider)', $parent);
  14478. if (!$this.val() && !/(38|40)/.test(e.keyCode.toString(10))) {
  14479. if ($items.filter('.active').length === 0) {
  14480. $items = that.$newElement.find('li');
  14481. if (that.options.liveSearchNormalize) {
  14482. $items = $items.filter(':a' + that._searchStyle() + '(' + normalizeToBase(keyCodeMap[e.keyCode]) + ')');
  14483. } else {
  14484. $items = $items.filter(':' + that._searchStyle() + '(' + keyCodeMap[e.keyCode] + ')');
  14485. }
  14486. }
  14487. }
  14488. }
  14489. if (!$items.length) return;
  14490. if (/(38|40)/.test(e.keyCode.toString(10))) {
  14491. index = $items.index($items.filter(':focus'));
  14492. first = $items.parent(selector).first().data('originalIndex');
  14493. last = $items.parent(selector).last().data('originalIndex');
  14494. next = $items.eq(index).parent().nextAll(selector).eq(0).data('originalIndex');
  14495. prev = $items.eq(index).parent().prevAll(selector).eq(0).data('originalIndex');
  14496. nextPrev = $items.eq(next).parent().prevAll(selector).eq(0).data('originalIndex');
  14497. if (that.options.liveSearch) {
  14498. $items.each(function (i) {
  14499. if (!$(this).hasClass('disabled')) {
  14500. $(this).data('index', i);
  14501. }
  14502. });
  14503. index = $items.index($items.filter('.active'));
  14504. first = $items.first().data('index');
  14505. last = $items.last().data('index');
  14506. next = $items.eq(index).nextAll().eq(0).data('index');
  14507. prev = $items.eq(index).prevAll().eq(0).data('index');
  14508. nextPrev = $items.eq(next).prevAll().eq(0).data('index');
  14509. }
  14510. prevIndex = $this.data('prevIndex');
  14511. if (e.keyCode == 38) {
  14512. if (that.options.liveSearch) index -= 1;
  14513. if (index != nextPrev && index > prev) index = prev;
  14514. if (index < first) index = first;
  14515. if (index == prevIndex) index = last;
  14516. } else if (e.keyCode == 40) {
  14517. if (that.options.liveSearch) index += 1;
  14518. if (index == -1) index = 0;
  14519. if (index != nextPrev && index < next) index = next;
  14520. if (index > last) index = last;
  14521. if (index == prevIndex) index = first;
  14522. }
  14523. $this.data('prevIndex', index);
  14524. if (!that.options.liveSearch) {
  14525. $items.eq(index).focus();
  14526. } else {
  14527. e.preventDefault();
  14528. if (!$this.hasClass('dropdown-toggle')) {
  14529. $items.removeClass('active').eq(index).addClass('active').children('a').focus();
  14530. $this.focus();
  14531. }
  14532. }
  14533. } else if (!$this.is('input')) {
  14534. var keyIndex = [],
  14535. count,
  14536. prevKey;
  14537. $items.each(function () {
  14538. if (!$(this).parent().hasClass('disabled')) {
  14539. if ($.trim($(this).text().toLowerCase()).substring(0, 1) == keyCodeMap[e.keyCode]) {
  14540. keyIndex.push($(this).parent().index());
  14541. }
  14542. }
  14543. });
  14544. count = $(document).data('keycount');
  14545. count++;
  14546. $(document).data('keycount', count);
  14547. prevKey = $.trim($(':focus').text().toLowerCase()).substring(0, 1);
  14548. if (prevKey != keyCodeMap[e.keyCode]) {
  14549. count = 1;
  14550. $(document).data('keycount', count);
  14551. } else if (count >= keyIndex.length) {
  14552. $(document).data('keycount', 0);
  14553. if (count > keyIndex.length) count = 1;
  14554. }
  14555. $items.eq(keyIndex[count - 1]).focus();
  14556. }
  14557. // Select focused option if "Enter", "Spacebar" or "Tab" (when selectOnTab is true) are pressed inside the menu.
  14558. if ((/(13|32)/.test(e.keyCode.toString(10)) || (/(^9$)/.test(e.keyCode.toString(10)) && that.options.selectOnTab)) && isActive) {
  14559. if (!/(32)/.test(e.keyCode.toString(10))) e.preventDefault();
  14560. if (!that.options.liveSearch) {
  14561. var elem = $(':focus');
  14562. elem.click();
  14563. // Bring back focus for multiselects
  14564. elem.focus();
  14565. // Prevent screen from scrolling if the user hit the spacebar
  14566. e.preventDefault();
  14567. // Fixes spacebar selection of dropdown items in FF & IE
  14568. $(document).data('spaceSelect', true);
  14569. } else if (!/(32)/.test(e.keyCode.toString(10))) {
  14570. that.$menu.find('.active a').click();
  14571. $this.focus();
  14572. }
  14573. $(document).data('keycount', 0);
  14574. }
  14575. if ((/(^9$|27)/.test(e.keyCode.toString(10)) && isActive && (that.multiple || that.options.liveSearch)) || (/(27)/.test(e.keyCode.toString(10)) && !isActive)) {
  14576. that.$menu.parent().removeClass('open');
  14577. if (that.options.container) that.$newElement.removeClass('open');
  14578. that.$button.focus();
  14579. }
  14580. },
  14581. mobile: function () {
  14582. this.$element.addClass('mobile-device').appendTo(this.$newElement);
  14583. if (this.options.container) this.$menu.hide();
  14584. },
  14585. refresh: function () {
  14586. this.$lis = null;
  14587. this.reloadLi();
  14588. this.render();
  14589. this.checkDisabled();
  14590. this.liHeight(true);
  14591. this.setStyle();
  14592. this.setWidth();
  14593. if (this.$lis) this.$searchbox.trigger('propertychange');
  14594. this.$element.trigger('refreshed.bs.select');
  14595. },
  14596. hide: function () {
  14597. this.$newElement.hide();
  14598. },
  14599. show: function () {
  14600. this.$newElement.show();
  14601. },
  14602. remove: function () {
  14603. this.$newElement.remove();
  14604. this.$element.remove();
  14605. }
  14606. };
  14607. // SELECTPICKER PLUGIN DEFINITION
  14608. // ==============================
  14609. function Plugin(option, event) {
  14610. // get the args of the outer function..
  14611. var args = arguments;
  14612. // The arguments of the function are explicitly re-defined from the argument list, because the shift causes them
  14613. // to get lost/corrupted in android 2.3 and IE9 #715 #775
  14614. var _option = option,
  14615. _event = event;
  14616. [].shift.apply(args);
  14617. var value;
  14618. var chain = this.each(function () {
  14619. var $this = $(this);
  14620. if ($this.is('select')) {
  14621. var data = $this.data('selectpicker'),
  14622. options = typeof _option == 'object' && _option;
  14623. if (!data) {
  14624. var config = $.extend({}, Selectpicker.DEFAULTS, $.fn.selectpicker.defaults || {}, $this.data(), options);
  14625. $this.data('selectpicker', (data = new Selectpicker(this, config, _event)));
  14626. } else if (options) {
  14627. for (var i in options) {
  14628. if (options.hasOwnProperty(i)) {
  14629. data.options[i] = options[i];
  14630. }
  14631. }
  14632. }
  14633. if (typeof _option == 'string') {
  14634. if (data[_option] instanceof Function) {
  14635. value = data[_option].apply(data, args);
  14636. } else {
  14637. value = data.options[_option];
  14638. }
  14639. }
  14640. }
  14641. });
  14642. if (typeof value !== 'undefined') {
  14643. //noinspection JSUnusedAssignment
  14644. return value;
  14645. } else {
  14646. return chain;
  14647. }
  14648. }
  14649. var old = $.fn.selectpicker;
  14650. $.fn.selectpicker = Plugin;
  14651. $.fn.selectpicker.Constructor = Selectpicker;
  14652. // SELECTPICKER NO CONFLICT
  14653. // ========================
  14654. $.fn.selectpicker.noConflict = function () {
  14655. $.fn.selectpicker = old;
  14656. return this;
  14657. };
  14658. $(document)
  14659. .data('keycount', 0)
  14660. .on('keydown', '.bootstrap-select [data-toggle=dropdown], .bootstrap-select [role="menu"], .bs-searchbox input', Selectpicker.prototype.keydown)
  14661. .on('focusin.modal', '.bootstrap-select [data-toggle=dropdown], .bootstrap-select [role="menu"], .bs-searchbox input', function (e) {
  14662. e.stopPropagation();
  14663. });
  14664. // SELECTPICKER DATA-API
  14665. // =====================
  14666. $(window).on('load.bs.select.data-api', function () {
  14667. $('.selectpicker').each(function () {
  14668. var $selectpicker = $(this);
  14669. Plugin.call($selectpicker, $selectpicker.data());
  14670. })
  14671. });
  14672. })(jQuery);
  14673. }));
  14674. /* ========================================================================
  14675. * bootstrap-switch - v3.3.2
  14676. * http://www.bootstrap-switch.org
  14677. * ========================================================================
  14678. * Copyright 2012-2013 Mattia Larentis
  14679. *
  14680. * ========================================================================
  14681. * Licensed under the Apache License, Version 2.0 (the "License");
  14682. * you may not use this file except in compliance with the License.
  14683. * You may obtain a copy of the License at
  14684. *
  14685. * http://www.apache.org/licenses/LICENSE-2.0
  14686. *
  14687. * Unless required by applicable law or agreed to in writing, software
  14688. * distributed under the License is distributed on an "AS IS" BASIS,
  14689. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14690. * See the License for the specific language governing permissions and
  14691. * limitations under the License.
  14692. * ========================================================================
  14693. */
  14694. (function() {
  14695. var __slice = [].slice;
  14696. (function($, window) {
  14697. "use strict";
  14698. var BootstrapSwitch;
  14699. BootstrapSwitch = (function() {
  14700. function BootstrapSwitch(element, options) {
  14701. if (options == null) {
  14702. options = {};
  14703. }
  14704. this.$element = $(element);
  14705. this.options = $.extend({}, $.fn.bootstrapSwitch.defaults, {
  14706. state: this.$element.is(":checked"),
  14707. size: this.$element.data("size"),
  14708. animate: this.$element.data("animate"),
  14709. disabled: this.$element.is(":disabled"),
  14710. readonly: this.$element.is("[readonly]"),
  14711. indeterminate: this.$element.data("indeterminate"),
  14712. inverse: this.$element.data("inverse"),
  14713. radioAllOff: this.$element.data("radio-all-off"),
  14714. onColor: this.$element.data("on-color"),
  14715. offColor: this.$element.data("off-color"),
  14716. onText: this.$element.data("on-text"),
  14717. offText: this.$element.data("off-text"),
  14718. labelText: this.$element.data("label-text"),
  14719. handleWidth: this.$element.data("handle-width"),
  14720. labelWidth: this.$element.data("label-width"),
  14721. baseClass: this.$element.data("base-class"),
  14722. wrapperClass: this.$element.data("wrapper-class")
  14723. }, options);
  14724. this.$wrapper = $("<div>", {
  14725. "class": (function(_this) {
  14726. return function() {
  14727. var classes;
  14728. classes = ["" + _this.options.baseClass].concat(_this._getClasses(_this.options.wrapperClass));
  14729. classes.push(_this.options.state ? "" + _this.options.baseClass + "-on" : "" + _this.options.baseClass + "-off");
  14730. if (_this.options.size != null) {
  14731. classes.push("" + _this.options.baseClass + "-" + _this.options.size);
  14732. }
  14733. if (_this.options.disabled) {
  14734. classes.push("" + _this.options.baseClass + "-disabled");
  14735. }
  14736. if (_this.options.readonly) {
  14737. classes.push("" + _this.options.baseClass + "-readonly");
  14738. }
  14739. if (_this.options.indeterminate) {
  14740. classes.push("" + _this.options.baseClass + "-indeterminate");
  14741. }
  14742. if (_this.options.inverse) {
  14743. classes.push("" + _this.options.baseClass + "-inverse");
  14744. }
  14745. if (_this.$element.attr("id")) {
  14746. classes.push("" + _this.options.baseClass + "-id-" + (_this.$element.attr("id")));
  14747. }
  14748. return classes.join(" ");
  14749. };
  14750. })(this)()
  14751. });
  14752. this.$container = $("<div>", {
  14753. "class": "" + this.options.baseClass + "-container"
  14754. });
  14755. this.$on = $("<span>", {
  14756. html: this.options.onText,
  14757. "class": "" + this.options.baseClass + "-handle-on " + this.options.baseClass + "-" + this.options.onColor
  14758. });
  14759. this.$off = $("<span>", {
  14760. html: this.options.offText,
  14761. "class": "" + this.options.baseClass + "-handle-off " + this.options.baseClass + "-" + this.options.offColor
  14762. });
  14763. this.$label = $("<span>", {
  14764. html: this.options.labelText,
  14765. "class": "" + this.options.baseClass + "-label"
  14766. });
  14767. this.$element.on("init.bootstrapSwitch", (function(_this) {
  14768. return function() {
  14769. return _this.options.onInit.apply(element, arguments);
  14770. };
  14771. })(this));
  14772. this.$element.on("switchChange.bootstrapSwitch", (function(_this) {
  14773. return function() {
  14774. return _this.options.onSwitchChange.apply(element, arguments);
  14775. };
  14776. })(this));
  14777. this.$container = this.$element.wrap(this.$container).parent();
  14778. this.$wrapper = this.$container.wrap(this.$wrapper).parent();
  14779. this.$element.before(this.options.inverse ? this.$off : this.$on).before(this.$label).before(this.options.inverse ? this.$on : this.$off);
  14780. if (this.options.indeterminate) {
  14781. this.$element.prop("indeterminate", true);
  14782. }
  14783. this._init();
  14784. this._elementHandlers();
  14785. this._handleHandlers();
  14786. this._labelHandlers();
  14787. this._formHandler();
  14788. this._externalLabelHandler();
  14789. this.$element.trigger("init.bootstrapSwitch");
  14790. }
  14791. BootstrapSwitch.prototype._constructor = BootstrapSwitch;
  14792. BootstrapSwitch.prototype.state = function(value, skip) {
  14793. if (typeof value === "undefined") {
  14794. return this.options.state;
  14795. }
  14796. if (this.options.disabled || this.options.readonly) {
  14797. return this.$element;
  14798. }
  14799. if (this.options.state && !this.options.radioAllOff && this.$element.is(":radio")) {
  14800. return this.$element;
  14801. }
  14802. if (this.options.indeterminate) {
  14803. this.indeterminate(false);
  14804. }
  14805. value = !!value;
  14806. this.$element.prop("checked", value).trigger("change.bootstrapSwitch", skip);
  14807. return this.$element;
  14808. };
  14809. BootstrapSwitch.prototype.toggleState = function(skip) {
  14810. if (this.options.disabled || this.options.readonly) {
  14811. return this.$element;
  14812. }
  14813. if (this.options.indeterminate) {
  14814. this.indeterminate(false);
  14815. return this.state(true);
  14816. } else {
  14817. return this.$element.prop("checked", !this.options.state).trigger("change.bootstrapSwitch", skip);
  14818. }
  14819. };
  14820. BootstrapSwitch.prototype.size = function(value) {
  14821. if (typeof value === "undefined") {
  14822. return this.options.size;
  14823. }
  14824. if (this.options.size != null) {
  14825. this.$wrapper.removeClass("" + this.options.baseClass + "-" + this.options.size);
  14826. }
  14827. if (value) {
  14828. this.$wrapper.addClass("" + this.options.baseClass + "-" + value);
  14829. }
  14830. this._width();
  14831. this._containerPosition();
  14832. this.options.size = value;
  14833. return this.$element;
  14834. };
  14835. BootstrapSwitch.prototype.animate = function(value) {
  14836. if (typeof value === "undefined") {
  14837. return this.options.animate;
  14838. }
  14839. value = !!value;
  14840. if (value === this.options.animate) {
  14841. return this.$element;
  14842. }
  14843. return this.toggleAnimate();
  14844. };
  14845. BootstrapSwitch.prototype.toggleAnimate = function() {
  14846. this.options.animate = !this.options.animate;
  14847. this.$wrapper.toggleClass("" + this.options.baseClass + "-animate");
  14848. return this.$element;
  14849. };
  14850. BootstrapSwitch.prototype.disabled = function(value) {
  14851. if (typeof value === "undefined") {
  14852. return this.options.disabled;
  14853. }
  14854. value = !!value;
  14855. if (value === this.options.disabled) {
  14856. return this.$element;
  14857. }
  14858. return this.toggleDisabled();
  14859. };
  14860. BootstrapSwitch.prototype.toggleDisabled = function() {
  14861. this.options.disabled = !this.options.disabled;
  14862. this.$element.prop("disabled", this.options.disabled);
  14863. this.$wrapper.toggleClass("" + this.options.baseClass + "-disabled");
  14864. return this.$element;
  14865. };
  14866. BootstrapSwitch.prototype.readonly = function(value) {
  14867. if (typeof value === "undefined") {
  14868. return this.options.readonly;
  14869. }
  14870. value = !!value;
  14871. if (value === this.options.readonly) {
  14872. return this.$element;
  14873. }
  14874. return this.toggleReadonly();
  14875. };
  14876. BootstrapSwitch.prototype.toggleReadonly = function() {
  14877. this.options.readonly = !this.options.readonly;
  14878. this.$element.prop("readonly", this.options.readonly);
  14879. this.$wrapper.toggleClass("" + this.options.baseClass + "-readonly");
  14880. return this.$element;
  14881. };
  14882. BootstrapSwitch.prototype.indeterminate = function(value) {
  14883. if (typeof value === "undefined") {
  14884. return this.options.indeterminate;
  14885. }
  14886. value = !!value;
  14887. if (value === this.options.indeterminate) {
  14888. return this.$element;
  14889. }
  14890. return this.toggleIndeterminate();
  14891. };
  14892. BootstrapSwitch.prototype.toggleIndeterminate = function() {
  14893. this.options.indeterminate = !this.options.indeterminate;
  14894. this.$element.prop("indeterminate", this.options.indeterminate);
  14895. this.$wrapper.toggleClass("" + this.options.baseClass + "-indeterminate");
  14896. this._containerPosition();
  14897. return this.$element;
  14898. };
  14899. BootstrapSwitch.prototype.inverse = function(value) {
  14900. if (typeof value === "undefined") {
  14901. return this.options.inverse;
  14902. }
  14903. value = !!value;
  14904. if (value === this.options.inverse) {
  14905. return this.$element;
  14906. }
  14907. return this.toggleInverse();
  14908. };
  14909. BootstrapSwitch.prototype.toggleInverse = function() {
  14910. var $off, $on;
  14911. this.$wrapper.toggleClass("" + this.options.baseClass + "-inverse");
  14912. $on = this.$on.clone(true);
  14913. $off = this.$off.clone(true);
  14914. this.$on.replaceWith($off);
  14915. this.$off.replaceWith($on);
  14916. this.$on = $off;
  14917. this.$off = $on;
  14918. this.options.inverse = !this.options.inverse;
  14919. return this.$element;
  14920. };
  14921. BootstrapSwitch.prototype.onColor = function(value) {
  14922. var color;
  14923. color = this.options.onColor;
  14924. if (typeof value === "undefined") {
  14925. return color;
  14926. }
  14927. if (color != null) {
  14928. this.$on.removeClass("" + this.options.baseClass + "-" + color);
  14929. }
  14930. this.$on.addClass("" + this.options.baseClass + "-" + value);
  14931. this.options.onColor = value;
  14932. return this.$element;
  14933. };
  14934. BootstrapSwitch.prototype.offColor = function(value) {
  14935. var color;
  14936. color = this.options.offColor;
  14937. if (typeof value === "undefined") {
  14938. return color;
  14939. }
  14940. if (color != null) {
  14941. this.$off.removeClass("" + this.options.baseClass + "-" + color);
  14942. }
  14943. this.$off.addClass("" + this.options.baseClass + "-" + value);
  14944. this.options.offColor = value;
  14945. return this.$element;
  14946. };
  14947. BootstrapSwitch.prototype.onText = function(value) {
  14948. if (typeof value === "undefined") {
  14949. return this.options.onText;
  14950. }
  14951. this.$on.html(value);
  14952. this._width();
  14953. this._containerPosition();
  14954. this.options.onText = value;
  14955. return this.$element;
  14956. };
  14957. BootstrapSwitch.prototype.offText = function(value) {
  14958. if (typeof value === "undefined") {
  14959. return this.options.offText;
  14960. }
  14961. this.$off.html(value);
  14962. this._width();
  14963. this._containerPosition();
  14964. this.options.offText = value;
  14965. return this.$element;
  14966. };
  14967. BootstrapSwitch.prototype.labelText = function(value) {
  14968. if (typeof value === "undefined") {
  14969. return this.options.labelText;
  14970. }
  14971. this.$label.html(value);
  14972. this._width();
  14973. this.options.labelText = value;
  14974. return this.$element;
  14975. };
  14976. BootstrapSwitch.prototype.handleWidth = function(value) {
  14977. if (typeof value === "undefined") {
  14978. return this.options.handleWidth;
  14979. }
  14980. this.options.handleWidth = value;
  14981. this._width();
  14982. this._containerPosition();
  14983. return this.$element;
  14984. };
  14985. BootstrapSwitch.prototype.labelWidth = function(value) {
  14986. if (typeof value === "undefined") {
  14987. return this.options.labelWidth;
  14988. }
  14989. this.options.labelWidth = value;
  14990. this._width();
  14991. this._containerPosition();
  14992. return this.$element;
  14993. };
  14994. BootstrapSwitch.prototype.baseClass = function(value) {
  14995. return this.options.baseClass;
  14996. };
  14997. BootstrapSwitch.prototype.wrapperClass = function(value) {
  14998. if (typeof value === "undefined") {
  14999. return this.options.wrapperClass;
  15000. }
  15001. if (!value) {
  15002. value = $.fn.bootstrapSwitch.defaults.wrapperClass;
  15003. }
  15004. this.$wrapper.removeClass(this._getClasses(this.options.wrapperClass).join(" "));
  15005. this.$wrapper.addClass(this._getClasses(value).join(" "));
  15006. this.options.wrapperClass = value;
  15007. return this.$element;
  15008. };
  15009. BootstrapSwitch.prototype.radioAllOff = function(value) {
  15010. if (typeof value === "undefined") {
  15011. return this.options.radioAllOff;
  15012. }
  15013. value = !!value;
  15014. if (value === this.options.radioAllOff) {
  15015. return this.$element;
  15016. }
  15017. this.options.radioAllOff = value;
  15018. return this.$element;
  15019. };
  15020. BootstrapSwitch.prototype.onInit = function(value) {
  15021. if (typeof value === "undefined") {
  15022. return this.options.onInit;
  15023. }
  15024. if (!value) {
  15025. value = $.fn.bootstrapSwitch.defaults.onInit;
  15026. }
  15027. this.options.onInit = value;
  15028. return this.$element;
  15029. };
  15030. BootstrapSwitch.prototype.onSwitchChange = function(value) {
  15031. if (typeof value === "undefined") {
  15032. return this.options.onSwitchChange;
  15033. }
  15034. if (!value) {
  15035. value = $.fn.bootstrapSwitch.defaults.onSwitchChange;
  15036. }
  15037. this.options.onSwitchChange = value;
  15038. return this.$element;
  15039. };
  15040. BootstrapSwitch.prototype.destroy = function() {
  15041. var $form;
  15042. $form = this.$element.closest("form");
  15043. if ($form.length) {
  15044. $form.off("reset.bootstrapSwitch").removeData("bootstrap-switch");
  15045. }
  15046. this.$container.children().not(this.$element).remove();
  15047. this.$element.unwrap().unwrap().off(".bootstrapSwitch").removeData("bootstrap-switch");
  15048. return this.$element;
  15049. };
  15050. BootstrapSwitch.prototype._width = function() {
  15051. var $handles, handleWidth;
  15052. $handles = this.$on.add(this.$off);
  15053. $handles.add(this.$label).css("width", "");
  15054. handleWidth = this.options.handleWidth === "auto" ? Math.max(this.$on.width(), this.$off.width()) : this.options.handleWidth;
  15055. $handles.width(handleWidth);
  15056. this.$label.width((function(_this) {
  15057. return function(index, width) {
  15058. if (_this.options.labelWidth !== "auto") {
  15059. return _this.options.labelWidth;
  15060. }
  15061. if (width < handleWidth) {
  15062. return handleWidth;
  15063. } else {
  15064. return width;
  15065. }
  15066. };
  15067. })(this));
  15068. this._handleWidth = this.$on.outerWidth();
  15069. this._labelWidth = this.$label.outerWidth();
  15070. this.$container.width((this._handleWidth * 2) + this._labelWidth);
  15071. return this.$wrapper.width(this._handleWidth + this._labelWidth);
  15072. };
  15073. BootstrapSwitch.prototype._containerPosition = function(state, callback) {
  15074. if (state == null) {
  15075. state = this.options.state;
  15076. }
  15077. this.$container.css("margin-left", (function(_this) {
  15078. return function() {
  15079. var values;
  15080. values = [0, "-" + _this._handleWidth + "px"];
  15081. if (_this.options.indeterminate) {
  15082. return "-" + (_this._handleWidth / 2) + "px";
  15083. }
  15084. if (state) {
  15085. if (_this.options.inverse) {
  15086. return values[1];
  15087. } else {
  15088. return values[0];
  15089. }
  15090. } else {
  15091. if (_this.options.inverse) {
  15092. return values[0];
  15093. } else {
  15094. return values[1];
  15095. }
  15096. }
  15097. };
  15098. })(this));
  15099. if (!callback) {
  15100. return;
  15101. }
  15102. return setTimeout(function() {
  15103. return callback();
  15104. }, 50);
  15105. };
  15106. BootstrapSwitch.prototype._init = function() {
  15107. var init, initInterval;
  15108. init = (function(_this) {
  15109. return function() {
  15110. _this._width();
  15111. return _this._containerPosition(null, function() {
  15112. if (_this.options.animate) {
  15113. return _this.$wrapper.addClass("" + _this.options.baseClass + "-animate");
  15114. }
  15115. });
  15116. };
  15117. })(this);
  15118. if (this.$wrapper.is(":visible")) {
  15119. return init();
  15120. }
  15121. return initInterval = window.setInterval((function(_this) {
  15122. return function() {
  15123. if (_this.$wrapper.is(":visible")) {
  15124. init();
  15125. return window.clearInterval(initInterval);
  15126. }
  15127. };
  15128. })(this), 50);
  15129. };
  15130. BootstrapSwitch.prototype._elementHandlers = function() {
  15131. return this.$element.on({
  15132. "change.bootstrapSwitch": (function(_this) {
  15133. return function(e, skip) {
  15134. var state;
  15135. e.preventDefault();
  15136. e.stopImmediatePropagation();
  15137. state = _this.$element.is(":checked");
  15138. _this._containerPosition(state);
  15139. if (state === _this.options.state) {
  15140. return;
  15141. }
  15142. _this.options.state = state;
  15143. _this.$wrapper.toggleClass("" + _this.options.baseClass + "-off").toggleClass("" + _this.options.baseClass + "-on");
  15144. if (!skip) {
  15145. if (_this.$element.is(":radio")) {
  15146. $("[name='" + (_this.$element.attr('name')) + "']").not(_this.$element).prop("checked", false).trigger("change.bootstrapSwitch", true);
  15147. }
  15148. return _this.$element.trigger("switchChange.bootstrapSwitch", [state]);
  15149. }
  15150. };
  15151. })(this),
  15152. "focus.bootstrapSwitch": (function(_this) {
  15153. return function(e) {
  15154. e.preventDefault();
  15155. return _this.$wrapper.addClass("" + _this.options.baseClass + "-focused");
  15156. };
  15157. })(this),
  15158. "blur.bootstrapSwitch": (function(_this) {
  15159. return function(e) {
  15160. e.preventDefault();
  15161. return _this.$wrapper.removeClass("" + _this.options.baseClass + "-focused");
  15162. };
  15163. })(this),
  15164. "keydown.bootstrapSwitch": (function(_this) {
  15165. return function(e) {
  15166. if (!e.which || _this.options.disabled || _this.options.readonly) {
  15167. return;
  15168. }
  15169. switch (e.which) {
  15170. case 37:
  15171. e.preventDefault();
  15172. e.stopImmediatePropagation();
  15173. return _this.state(false);
  15174. case 39:
  15175. e.preventDefault();
  15176. e.stopImmediatePropagation();
  15177. return _this.state(true);
  15178. }
  15179. };
  15180. })(this)
  15181. });
  15182. };
  15183. BootstrapSwitch.prototype._handleHandlers = function() {
  15184. this.$on.on("click.bootstrapSwitch", (function(_this) {
  15185. return function(event) {
  15186. event.preventDefault();
  15187. event.stopPropagation();
  15188. _this.state(false);
  15189. return _this.$element.trigger("focus.bootstrapSwitch");
  15190. };
  15191. })(this));
  15192. return this.$off.on("click.bootstrapSwitch", (function(_this) {
  15193. return function(event) {
  15194. event.preventDefault();
  15195. event.stopPropagation();
  15196. _this.state(true);
  15197. return _this.$element.trigger("focus.bootstrapSwitch");
  15198. };
  15199. })(this));
  15200. };
  15201. BootstrapSwitch.prototype._labelHandlers = function() {
  15202. return this.$label.on({
  15203. "mousedown.bootstrapSwitch touchstart.bootstrapSwitch": (function(_this) {
  15204. return function(e) {
  15205. if (_this._dragStart || _this.options.disabled || _this.options.readonly) {
  15206. return;
  15207. }
  15208. e.preventDefault();
  15209. e.stopPropagation();
  15210. _this._dragStart = (e.pageX || e.originalEvent.touches[0].pageX) - parseInt(_this.$container.css("margin-left"), 10);
  15211. if (_this.options.animate) {
  15212. _this.$wrapper.removeClass("" + _this.options.baseClass + "-animate");
  15213. }
  15214. return _this.$element.trigger("focus.bootstrapSwitch");
  15215. };
  15216. })(this),
  15217. "mousemove.bootstrapSwitch touchmove.bootstrapSwitch": (function(_this) {
  15218. return function(e) {
  15219. var difference;
  15220. if (_this._dragStart == null) {
  15221. return;
  15222. }
  15223. e.preventDefault();
  15224. difference = (e.pageX || e.originalEvent.touches[0].pageX) - _this._dragStart;
  15225. if (difference < -_this._handleWidth || difference > 0) {
  15226. return;
  15227. }
  15228. _this._dragEnd = difference;
  15229. return _this.$container.css("margin-left", "" + _this._dragEnd + "px");
  15230. };
  15231. })(this),
  15232. "mouseup.bootstrapSwitch touchend.bootstrapSwitch": (function(_this) {
  15233. return function(e) {
  15234. var state;
  15235. if (!_this._dragStart) {
  15236. return;
  15237. }
  15238. e.preventDefault();
  15239. if (_this.options.animate) {
  15240. _this.$wrapper.addClass("" + _this.options.baseClass + "-animate");
  15241. }
  15242. if (_this._dragEnd) {
  15243. state = _this._dragEnd > -(_this._handleWidth / 2);
  15244. _this._dragEnd = false;
  15245. _this.state(_this.options.inverse ? !state : state);
  15246. } else {
  15247. _this.state(!_this.options.state);
  15248. }
  15249. return _this._dragStart = false;
  15250. };
  15251. })(this),
  15252. "mouseleave.bootstrapSwitch": (function(_this) {
  15253. return function(e) {
  15254. return _this.$label.trigger("mouseup.bootstrapSwitch");
  15255. };
  15256. })(this)
  15257. });
  15258. };
  15259. BootstrapSwitch.prototype._externalLabelHandler = function() {
  15260. var $externalLabel;
  15261. $externalLabel = this.$element.closest("label");
  15262. return $externalLabel.on("click", (function(_this) {
  15263. return function(event) {
  15264. event.preventDefault();
  15265. event.stopImmediatePropagation();
  15266. if (event.target === $externalLabel[0]) {
  15267. return _this.toggleState();
  15268. }
  15269. };
  15270. })(this));
  15271. };
  15272. BootstrapSwitch.prototype._formHandler = function() {
  15273. var $form;
  15274. $form = this.$element.closest("form");
  15275. if ($form.data("bootstrap-switch")) {
  15276. return;
  15277. }
  15278. return $form.on("reset.bootstrapSwitch", function() {
  15279. return window.setTimeout(function() {
  15280. return $form.find("input").filter(function() {
  15281. return $(this).data("bootstrap-switch");
  15282. }).each(function() {
  15283. return $(this).bootstrapSwitch("state", this.checked);
  15284. });
  15285. }, 1);
  15286. }).data("bootstrap-switch", true);
  15287. };
  15288. BootstrapSwitch.prototype._getClasses = function(classes) {
  15289. var c, cls, _i, _len;
  15290. if (!$.isArray(classes)) {
  15291. return ["" + this.options.baseClass + "-" + classes];
  15292. }
  15293. cls = [];
  15294. for (_i = 0, _len = classes.length; _i < _len; _i++) {
  15295. c = classes[_i];
  15296. cls.push("" + this.options.baseClass + "-" + c);
  15297. }
  15298. return cls;
  15299. };
  15300. return BootstrapSwitch;
  15301. })();
  15302. $.fn.bootstrapSwitch = function() {
  15303. var args, option, ret;
  15304. option = arguments[0], args = 2 <= arguments.length ? __slice.call(arguments, 1) : [];
  15305. ret = this;
  15306. this.each(function() {
  15307. var $this, data;
  15308. $this = $(this);
  15309. data = $this.data("bootstrap-switch");
  15310. if (!data) {
  15311. $this.data("bootstrap-switch", data = new BootstrapSwitch(this, option));
  15312. }
  15313. if (typeof option === "string") {
  15314. return ret = data[option].apply(data, args);
  15315. }
  15316. });
  15317. return ret;
  15318. };
  15319. $.fn.bootstrapSwitch.Constructor = BootstrapSwitch;
  15320. return $.fn.bootstrapSwitch.defaults = {
  15321. state: true,
  15322. size: null,
  15323. animate: true,
  15324. disabled: false,
  15325. readonly: false,
  15326. indeterminate: false,
  15327. inverse: false,
  15328. radioAllOff: false,
  15329. onColor: "primary",
  15330. offColor: "default",
  15331. onText: "ON",
  15332. offText: "OFF",
  15333. labelText: "&nbsp;",
  15334. handleWidth: "auto",
  15335. labelWidth: "auto",
  15336. baseClass: "bootstrap-switch",
  15337. wrapperClass: "wrapper",
  15338. onInit: function() {},
  15339. onSwitchChange: function() {}
  15340. };
  15341. })(window.jQuery, window);
  15342. }).call(this);
  15343. /**
  15344. * bootbox.js [master branch]
  15345. *
  15346. * http://bootboxjs.com/license.txt
  15347. */
  15348. // @see https://github.com/makeusabrew/bootbox/issues/180
  15349. // @see https://github.com/makeusabrew/bootbox/issues/186
  15350. (function (root, factory) {
  15351. "use strict";
  15352. if (typeof define === "function" && define.amd) {
  15353. // AMD. Register as an anonymous module.
  15354. define(["jquery"], factory);
  15355. } else if (typeof exports === "object") {
  15356. // Node. Does not work with strict CommonJS, but
  15357. // only CommonJS-like environments that support module.exports,
  15358. // like Node.
  15359. module.exports = factory(require("jquery"));
  15360. } else {
  15361. // Browser globals (root is window)
  15362. root.bootbox = factory(root.jQuery);
  15363. }
  15364. }(this, function init($, undefined) {
  15365. "use strict";
  15366. // the base DOM structure needed to create a modal
  15367. var templates = {
  15368. dialog:
  15369. "<div class='bootbox modal' tabindex='-1' role='dialog' aria-hidden='true'>" +
  15370. "<div class='modal-dialog'>" +
  15371. "<div class='modal-content'>" +
  15372. "<div class='modal-body'><div class='bootbox-body'></div></div>" +
  15373. "</div>" +
  15374. "</div>" +
  15375. "</div>",
  15376. header:
  15377. "<div class='modal-header'>" +
  15378. "<h4 class='modal-title'></h4>" +
  15379. "</div>",
  15380. footer:
  15381. "<div class='modal-footer'></div>",
  15382. closeButton:
  15383. "<button type='button' class='bootbox-close-button close' data-dismiss='modal' aria-hidden='true'>&times;</button>",
  15384. form:
  15385. "<form class='bootbox-form'></form>",
  15386. inputs: {
  15387. text:
  15388. "<input class='bootbox-input bootbox-input-text form-control' autocomplete=off type=text />",
  15389. textarea:
  15390. "<textarea class='bootbox-input bootbox-input-textarea form-control'></textarea>",
  15391. email:
  15392. "<input class='bootbox-input bootbox-input-email form-control' autocomplete='off' type='email' />",
  15393. select:
  15394. "<select class='bootbox-input bootbox-input-select form-control'></select>",
  15395. checkbox:
  15396. "<div class='checkbox'><label><input class='bootbox-input bootbox-input-checkbox' type='checkbox' /></label></div>",
  15397. date:
  15398. "<input class='bootbox-input bootbox-input-date form-control' autocomplete=off type='date' />",
  15399. time:
  15400. "<input class='bootbox-input bootbox-input-time form-control' autocomplete=off type='time' />",
  15401. number:
  15402. "<input class='bootbox-input bootbox-input-number form-control' autocomplete=off type='number' />",
  15403. password:
  15404. "<input class='bootbox-input bootbox-input-password form-control' autocomplete='off' type='password' />"
  15405. }
  15406. };
  15407. var defaults = {
  15408. // default language
  15409. locale: "en",
  15410. // show backdrop or not. Default to static so user has to interact with dialog
  15411. backdrop: "static",
  15412. // animate the modal in/out
  15413. animate: true,
  15414. // additional class string applied to the top level dialog
  15415. className: null,
  15416. // whether or not to include a close button
  15417. closeButton: true,
  15418. // show the dialog immediately by default
  15419. show: true,
  15420. // dialog container
  15421. container: "body"
  15422. };
  15423. // our public object; augmented after our private API
  15424. var exports = {};
  15425. /**
  15426. * @private
  15427. */
  15428. function _t(key) {
  15429. var locale = locales[defaults.locale];
  15430. return locale ? locale[key] : locales.en[key];
  15431. }
  15432. function processCallback(e, dialog, callback) {
  15433. e.stopPropagation();
  15434. e.preventDefault();
  15435. // by default we assume a callback will get rid of the dialog,
  15436. // although it is given the opportunity to override this
  15437. // so, if the callback can be invoked and it *explicitly returns false*
  15438. // then we'll set a flag to keep the dialog active...
  15439. var preserveDialog = $.isFunction(callback) && callback.call(dialog, e) === false;
  15440. // ... otherwise we'll bin it
  15441. if (!preserveDialog) {
  15442. dialog.modal("hide");
  15443. }
  15444. }
  15445. function getKeyLength(obj) {
  15446. // @TODO defer to Object.keys(x).length if available?
  15447. var k, t = 0;
  15448. for (k in obj) {
  15449. t ++;
  15450. }
  15451. return t;
  15452. }
  15453. function each(collection, iterator) {
  15454. var index = 0;
  15455. $.each(collection, function(key, value) {
  15456. iterator(key, value, index++);
  15457. });
  15458. }
  15459. function sanitize(options) {
  15460. var buttons;
  15461. var total;
  15462. if (typeof options !== "object") {
  15463. throw new Error("Please supply an object of options");
  15464. }
  15465. if (!options.message) {
  15466. throw new Error("Please specify a message");
  15467. }
  15468. // make sure any supplied options take precedence over defaults
  15469. options = $.extend({}, defaults, options);
  15470. if (!options.buttons) {
  15471. options.buttons = {};
  15472. }
  15473. buttons = options.buttons;
  15474. total = getKeyLength(buttons);
  15475. each(buttons, function(key, button, index) {
  15476. if ($.isFunction(button)) {
  15477. // short form, assume value is our callback. Since button
  15478. // isn't an object it isn't a reference either so re-assign it
  15479. button = buttons[key] = {
  15480. callback: button
  15481. };
  15482. }
  15483. // before any further checks make sure by now button is the correct type
  15484. if ($.type(button) !== "object") {
  15485. throw new Error("button with key " + key + " must be an object");
  15486. }
  15487. if (!button.label) {
  15488. // the lack of an explicit label means we'll assume the key is good enough
  15489. button.label = key;
  15490. }
  15491. if (!button.className) {
  15492. if (total <= 2 && index === total-1) {
  15493. // always add a primary to the main option in a two-button dialog
  15494. button.className = "btn-primary";
  15495. } else {
  15496. button.className = "btn-default";
  15497. }
  15498. }
  15499. });
  15500. return options;
  15501. }
  15502. /**
  15503. * map a flexible set of arguments into a single returned object
  15504. * if args.length is already one just return it, otherwise
  15505. * use the properties argument to map the unnamed args to
  15506. * object properties
  15507. * so in the latter case:
  15508. * mapArguments(["foo", $.noop], ["message", "callback"])
  15509. * -> { message: "foo", callback: $.noop }
  15510. */
  15511. function mapArguments(args, properties) {
  15512. var argn = args.length;
  15513. var options = {};
  15514. if (argn < 1 || argn > 2) {
  15515. throw new Error("Invalid argument length");
  15516. }
  15517. if (argn === 2 || typeof args[0] === "string") {
  15518. options[properties[0]] = args[0];
  15519. options[properties[1]] = args[1];
  15520. } else {
  15521. options = args[0];
  15522. }
  15523. return options;
  15524. }
  15525. /**
  15526. * merge a set of default dialog options with user supplied arguments
  15527. */
  15528. function mergeArguments(defaults, args, properties) {
  15529. return $.extend(
  15530. // deep merge
  15531. true,
  15532. // ensure the target is an empty, unreferenced object
  15533. {},
  15534. // the base options object for this type of dialog (often just buttons)
  15535. defaults,
  15536. // args could be an object or array; if it's an array properties will
  15537. // map it to a proper options object
  15538. mapArguments(
  15539. args,
  15540. properties
  15541. )
  15542. );
  15543. }
  15544. /**
  15545. * this entry-level method makes heavy use of composition to take a simple
  15546. * range of inputs and return valid options suitable for passing to bootbox.dialog
  15547. */
  15548. function mergeDialogOptions(className, labels, properties, args) {
  15549. // build up a base set of dialog properties
  15550. var baseOptions = {
  15551. className: "bootbox-" + className,
  15552. buttons: createLabels.apply(null, labels)
  15553. };
  15554. // ensure the buttons properties generated, *after* merging
  15555. // with user args are still valid against the supplied labels
  15556. return validateButtons(
  15557. // merge the generated base properties with user supplied arguments
  15558. mergeArguments(
  15559. baseOptions,
  15560. args,
  15561. // if args.length > 1, properties specify how each arg maps to an object key
  15562. properties
  15563. ),
  15564. labels
  15565. );
  15566. }
  15567. /**
  15568. * from a given list of arguments return a suitable object of button labels
  15569. * all this does is normalise the given labels and translate them where possible
  15570. * e.g. "ok", "confirm" -> { ok: "OK, cancel: "Annuleren" }
  15571. */
  15572. function createLabels() {
  15573. var buttons = {};
  15574. for (var i = 0, j = arguments.length; i < j; i++) {
  15575. var argument = arguments[i];
  15576. var key = argument.toLowerCase();
  15577. var value = argument.toUpperCase();
  15578. buttons[key] = {
  15579. label: _t(value)
  15580. };
  15581. }
  15582. return buttons;
  15583. }
  15584. function validateButtons(options, buttons) {
  15585. var allowedButtons = {};
  15586. each(buttons, function(key, value) {
  15587. allowedButtons[value] = true;
  15588. });
  15589. each(options.buttons, function(key) {
  15590. if (allowedButtons[key] === undefined) {
  15591. throw new Error("button key " + key + " is not allowed (options are " + buttons.join("\n") + ")");
  15592. }
  15593. });
  15594. return options;
  15595. }
  15596. exports.alert = function() {
  15597. var options;
  15598. options = mergeDialogOptions("alert", ["ok"], ["message", "callback"], arguments);
  15599. if (options.callback && !$.isFunction(options.callback)) {
  15600. throw new Error("alert requires callback property to be a function when provided");
  15601. }
  15602. /**
  15603. * overrides
  15604. */
  15605. options.buttons.ok.callback = options.onEscape = function() {
  15606. if ($.isFunction(options.callback)) {
  15607. return options.callback.call(this);
  15608. }
  15609. return true;
  15610. };
  15611. return exports.dialog(options);
  15612. };
  15613. exports.confirm = function() {
  15614. var options;
  15615. options = mergeDialogOptions("confirm", ["cancel", "confirm"], ["message", "callback"], arguments);
  15616. /**
  15617. * overrides; undo anything the user tried to set they shouldn't have
  15618. */
  15619. options.buttons.cancel.callback = options.onEscape = function() {
  15620. return options.callback.call(this, false);
  15621. };
  15622. options.buttons.confirm.callback = function() {
  15623. return options.callback.call(this, true);
  15624. };
  15625. // confirm specific validation
  15626. if (!$.isFunction(options.callback)) {
  15627. throw new Error("confirm requires a callback");
  15628. }
  15629. return exports.dialog(options);
  15630. };
  15631. exports.prompt = function() {
  15632. var options;
  15633. var defaults;
  15634. var dialog;
  15635. var form;
  15636. var input;
  15637. var shouldShow;
  15638. var inputOptions;
  15639. // we have to create our form first otherwise
  15640. // its value is undefined when gearing up our options
  15641. // @TODO this could be solved by allowing message to
  15642. // be a function instead...
  15643. form = $(templates.form);
  15644. // prompt defaults are more complex than others in that
  15645. // users can override more defaults
  15646. // @TODO I don't like that prompt has to do a lot of heavy
  15647. // lifting which mergeDialogOptions can *almost* support already
  15648. // just because of 'value' and 'inputType' - can we refactor?
  15649. defaults = {
  15650. className: "bootbox-prompt",
  15651. buttons: createLabels("cancel", "confirm"),
  15652. value: "",
  15653. inputType: "text"
  15654. };
  15655. options = validateButtons(
  15656. mergeArguments(defaults, arguments, ["title", "callback"]),
  15657. ["cancel", "confirm"]
  15658. );
  15659. // capture the user's show value; we always set this to false before
  15660. // spawning the dialog to give us a chance to attach some handlers to
  15661. // it, but we need to make sure we respect a preference not to show it
  15662. shouldShow = (options.show === undefined) ? true : options.show;
  15663. /**
  15664. * overrides; undo anything the user tried to set they shouldn't have
  15665. */
  15666. options.message = form;
  15667. options.buttons.cancel.callback = options.onEscape = function() {
  15668. return options.callback.call(this, null);
  15669. };
  15670. options.buttons.confirm.callback = function() {
  15671. var value;
  15672. switch (options.inputType) {
  15673. case "text":
  15674. case "textarea":
  15675. case "email":
  15676. case "select":
  15677. case "date":
  15678. case "time":
  15679. case "number":
  15680. case "password":
  15681. value = input.val();
  15682. break;
  15683. case "checkbox":
  15684. var checkedItems = input.find("input:checked");
  15685. // we assume that checkboxes are always multiple,
  15686. // hence we default to an empty array
  15687. value = [];
  15688. each(checkedItems, function(_, item) {
  15689. value.push($(item).val());
  15690. });
  15691. break;
  15692. }
  15693. return options.callback.call(this, value);
  15694. };
  15695. options.show = false;
  15696. // prompt specific validation
  15697. if (!options.title) {
  15698. throw new Error("prompt requires a title");
  15699. }
  15700. if (!$.isFunction(options.callback)) {
  15701. throw new Error("prompt requires a callback");
  15702. }
  15703. if (!templates.inputs[options.inputType]) {
  15704. throw new Error("invalid prompt type");
  15705. }
  15706. // create the input based on the supplied type
  15707. input = $(templates.inputs[options.inputType]);
  15708. switch (options.inputType) {
  15709. case "text":
  15710. case "textarea":
  15711. case "email":
  15712. case "date":
  15713. case "time":
  15714. case "number":
  15715. case "password":
  15716. input.val(options.value);
  15717. break;
  15718. case "select":
  15719. var groups = {};
  15720. inputOptions = options.inputOptions || [];
  15721. if (!$.isArray(inputOptions)) {
  15722. throw new Error("Please pass an array of input options");
  15723. }
  15724. if (!inputOptions.length) {
  15725. throw new Error("prompt with select requires options");
  15726. }
  15727. each(inputOptions, function(_, option) {
  15728. // assume the element to attach to is the input...
  15729. var elem = input;
  15730. if (option.value === undefined || option.text === undefined) {
  15731. throw new Error("given options in wrong format");
  15732. }
  15733. // ... but override that element if this option sits in a group
  15734. if (option.group) {
  15735. // initialise group if necessary
  15736. if (!groups[option.group]) {
  15737. groups[option.group] = $("<optgroup/>").attr("label", option.group);
  15738. }
  15739. elem = groups[option.group];
  15740. }
  15741. elem.append("<option value='" + option.value + "'>" + option.text + "</option>");
  15742. });
  15743. each(groups, function(_, group) {
  15744. input.append(group);
  15745. });
  15746. // safe to set a select's value as per a normal input
  15747. input.val(options.value);
  15748. break;
  15749. case "checkbox":
  15750. var values = $.isArray(options.value) ? options.value : [options.value];
  15751. inputOptions = options.inputOptions || [];
  15752. if (!inputOptions.length) {
  15753. throw new Error("prompt with checkbox requires options");
  15754. }
  15755. if (!inputOptions[0].value || !inputOptions[0].text) {
  15756. throw new Error("given options in wrong format");
  15757. }
  15758. // checkboxes have to nest within a containing element, so
  15759. // they break the rules a bit and we end up re-assigning
  15760. // our 'input' element to this container instead
  15761. input = $("<div/>");
  15762. each(inputOptions, function(_, option) {
  15763. var checkbox = $(templates.inputs[options.inputType]);
  15764. checkbox.find("input").attr("value", option.value);
  15765. checkbox.find("label").append(option.text);
  15766. // we've ensured values is an array so we can always iterate over it
  15767. each(values, function(_, value) {
  15768. if (value === option.value) {
  15769. checkbox.find("input").prop("checked", true);
  15770. }
  15771. });
  15772. input.append(checkbox);
  15773. });
  15774. break;
  15775. }
  15776. // @TODO provide an attributes option instead
  15777. // and simply map that as keys: vals
  15778. if (options.placeholder) {
  15779. input.attr("placeholder", options.placeholder);
  15780. }
  15781. if (options.pattern) {
  15782. input.attr("pattern", options.pattern);
  15783. }
  15784. if (options.maxlength) {
  15785. input.attr("maxlength", options.maxlength);
  15786. }
  15787. // now place it in our form
  15788. form.append(input);
  15789. form.on("submit", function(e) {
  15790. e.preventDefault();
  15791. // Fix for SammyJS (or similar JS routing library) hijacking the form post.
  15792. e.stopPropagation();
  15793. // @TODO can we actually click *the* button object instead?
  15794. // e.g. buttons.confirm.click() or similar
  15795. dialog.find(".btn-primary").click();
  15796. });
  15797. dialog = exports.dialog(options);
  15798. // clear the existing handler focusing the submit button...
  15799. dialog.off("shown.bs.modal");
  15800. // ...and replace it with one focusing our input, if possible
  15801. dialog.on("shown.bs.modal", function() {
  15802. // need the closure here since input isn't
  15803. // an object otherwise
  15804. input.focus();
  15805. });
  15806. if (shouldShow === true) {
  15807. dialog.modal("show");
  15808. }
  15809. return dialog;
  15810. };
  15811. exports.dialog = function(options) {
  15812. options = sanitize(options);
  15813. var dialog = $(templates.dialog);
  15814. var innerDialog = dialog.find(".modal-dialog");
  15815. var body = dialog.find(".modal-body");
  15816. var buttons = options.buttons;
  15817. var buttonStr = "";
  15818. var callbacks = {
  15819. onEscape: options.onEscape
  15820. };
  15821. if ($.fn.modal === undefined) {
  15822. throw new Error(
  15823. "$.fn.modal is not defined; please double check you have included " +
  15824. "the Bootstrap JavaScript library. See http://getbootstrap.com/javascript/ " +
  15825. "for more details."
  15826. );
  15827. }
  15828. each(buttons, function(key, button) {
  15829. // @TODO I don't like this string appending to itself; bit dirty. Needs reworking
  15830. // can we just build up button elements instead? slower but neater. Then button
  15831. // can just become a template too
  15832. buttonStr += "<button data-bb-handler='" + key + "' type='button' class='btn " + button.className + "'>" + button.label + "</button>";
  15833. callbacks[key] = button.callback;
  15834. });
  15835. body.find(".bootbox-body").html(options.message);
  15836. if (options.animate === true) {
  15837. dialog.addClass("fade");
  15838. }
  15839. if (options.className) {
  15840. dialog.addClass(options.className);
  15841. }
  15842. if (options.size === "large") {
  15843. innerDialog.addClass("modal-lg");
  15844. } else if (options.size === "small") {
  15845. innerDialog.addClass("modal-sm");
  15846. }
  15847. if (options.title) {
  15848. body.before(templates.header);
  15849. }
  15850. if (options.closeButton) {
  15851. var closeButton = $(templates.closeButton);
  15852. if (options.title) {
  15853. dialog.find(".modal-header").prepend(closeButton);
  15854. } else {
  15855. closeButton.css("margin-top", "-10px").prependTo(body);
  15856. }
  15857. }
  15858. if (options.title) {
  15859. dialog.find(".modal-title").html(options.title);
  15860. }
  15861. if (buttonStr.length) {
  15862. body.after(templates.footer);
  15863. dialog.find(".modal-footer").html(buttonStr);
  15864. }
  15865. /**
  15866. * Bootstrap event listeners; used handle extra
  15867. * setup & teardown required after the underlying
  15868. * modal has performed certain actions
  15869. */
  15870. dialog.on("hidden.bs.modal", function(e) {
  15871. // ensure we don't accidentally intercept hidden events triggered
  15872. // by children of the current dialog. We shouldn't anymore now BS
  15873. // namespaces its events; but still worth doing
  15874. if (e.target === this) {
  15875. dialog.remove();
  15876. }
  15877. });
  15878. /*
  15879. dialog.on("show.bs.modal", function() {
  15880. // sadly this doesn't work; show is called *just* before
  15881. // the backdrop is added so we'd need a setTimeout hack or
  15882. // otherwise... leaving in as would be nice
  15883. if (options.backdrop) {
  15884. dialog.next(".modal-backdrop").addClass("bootbox-backdrop");
  15885. }
  15886. });
  15887. */
  15888. dialog.on("shown.bs.modal", function() {
  15889. dialog.find(".btn-primary:first").focus();
  15890. });
  15891. /**
  15892. * Bootbox event listeners; experimental and may not last
  15893. * just an attempt to decouple some behaviours from their
  15894. * respective triggers
  15895. */
  15896. if (options.backdrop !== "static") {
  15897. // A boolean true/false according to the Bootstrap docs
  15898. // should show a dialog the user can dismiss by clicking on
  15899. // the background.
  15900. // We always only ever pass static/false to the actual
  15901. // $.modal function because with `true` we can't trap
  15902. // this event (the .modal-backdrop swallows it)
  15903. // However, we still want to sort of respect true
  15904. // and invoke the escape mechanism instead
  15905. dialog.on("click.dismiss.bs.modal", function(e) {
  15906. // @NOTE: the target varies in >= 3.3.x releases since the modal backdrop
  15907. // moved *inside* the outer dialog rather than *alongside* it
  15908. if (dialog.children(".modal-backdrop").length) {
  15909. e.currentTarget = dialog.children(".modal-backdrop").get(0);
  15910. }
  15911. if (e.target !== e.currentTarget) {
  15912. return;
  15913. }
  15914. dialog.trigger("escape.close.bb");
  15915. });
  15916. }
  15917. dialog.on("escape.close.bb", function(e) {
  15918. if (callbacks.onEscape) {
  15919. processCallback(e, dialog, callbacks.onEscape);
  15920. }
  15921. });
  15922. /**
  15923. * Standard jQuery event listeners; used to handle user
  15924. * interaction with our dialog
  15925. */
  15926. dialog.on("click", ".modal-footer button", function(e) {
  15927. var callbackKey = $(this).data("bb-handler");
  15928. processCallback(e, dialog, callbacks[callbackKey]);
  15929. });
  15930. dialog.on("click", ".bootbox-close-button", function(e) {
  15931. // onEscape might be falsy but that's fine; the fact is
  15932. // if the user has managed to click the close button we
  15933. // have to close the dialog, callback or not
  15934. processCallback(e, dialog, callbacks.onEscape);
  15935. });
  15936. dialog.on("keyup", function(e) {
  15937. if (e.which === 27) {
  15938. dialog.trigger("escape.close.bb");
  15939. }
  15940. });
  15941. // the remainder of this method simply deals with adding our
  15942. // dialogent to the DOM, augmenting it with Bootstrap's modal
  15943. // functionality and then giving the resulting object back
  15944. // to our caller
  15945. $(options.container).append(dialog);
  15946. dialog.modal({
  15947. backdrop: options.backdrop ? "static": false,
  15948. keyboard: false,
  15949. show: false
  15950. });
  15951. if (options.show) {
  15952. dialog.modal("show");
  15953. }
  15954. // @TODO should we return the raw element here or should
  15955. // we wrap it in an object on which we can expose some neater
  15956. // methods, e.g. var d = bootbox.alert(); d.hide(); instead
  15957. // of d.modal("hide");
  15958. /*
  15959. function BBDialog(elem) {
  15960. this.elem = elem;
  15961. }
  15962. BBDialog.prototype = {
  15963. hide: function() {
  15964. return this.elem.modal("hide");
  15965. },
  15966. show: function() {
  15967. return this.elem.modal("show");
  15968. }
  15969. };
  15970. */
  15971. return dialog;
  15972. };
  15973. exports.setDefaults = function() {
  15974. var values = {};
  15975. if (arguments.length === 2) {
  15976. // allow passing of single key/value...
  15977. values[arguments[0]] = arguments[1];
  15978. } else {
  15979. // ... and as an object too
  15980. values = arguments[0];
  15981. }
  15982. $.extend(defaults, values);
  15983. };
  15984. exports.hideAll = function() {
  15985. $(".bootbox").modal("hide");
  15986. return exports;
  15987. };
  15988. /**
  15989. * standard locales. Please add more according to ISO 639-1 standard. Multiple language variants are
  15990. * unlikely to be required. If this gets too large it can be split out into separate JS files.
  15991. */
  15992. var locales = {
  15993. ar : {
  15994. OK : "موافق",
  15995. CANCEL : "الغاء",
  15996. CONFIRM : "تأكيد"
  15997. },
  15998. bg_BG : {
  15999. OK : "Ок",
  16000. CANCEL : "Отказ",
  16001. CONFIRM : "Потвърждавам"
  16002. },
  16003. br : {
  16004. OK : "OK",
  16005. CANCEL : "Cancelar",
  16006. CONFIRM : "Sim"
  16007. },
  16008. cs : {
  16009. OK : "OK",
  16010. CANCEL : "Zrušit",
  16011. CONFIRM : "Potvrdit"
  16012. },
  16013. da : {
  16014. OK : "OK",
  16015. CANCEL : "Annuller",
  16016. CONFIRM : "Accepter"
  16017. },
  16018. de : {
  16019. OK : "OK",
  16020. CANCEL : "Abbrechen",
  16021. CONFIRM : "Akzeptieren"
  16022. },
  16023. el : {
  16024. OK : "Εντάξει",
  16025. CANCEL : "Ακύρωση",
  16026. CONFIRM : "Επιβεβαίωση"
  16027. },
  16028. en : {
  16029. OK : "OK",
  16030. CANCEL : "Cancel",
  16031. CONFIRM : "OK"
  16032. },
  16033. es : {
  16034. OK : "OK",
  16035. CANCEL : "Cancelar",
  16036. CONFIRM : "Aceptar"
  16037. },
  16038. et : {
  16039. OK : "OK",
  16040. CANCEL : "Katkesta",
  16041. CONFIRM : "OK"
  16042. },
  16043. fa : {
  16044. OK : "قبول",
  16045. CANCEL : "لغو",
  16046. CONFIRM : "تایید"
  16047. },
  16048. fi : {
  16049. OK : "OK",
  16050. CANCEL : "Peruuta",
  16051. CONFIRM : "OK"
  16052. },
  16053. fr : {
  16054. OK : "OK",
  16055. CANCEL : "Annuler",
  16056. CONFIRM : "Confirmer"
  16057. },
  16058. he : {
  16059. OK : "אישור",
  16060. CANCEL : "ביטול",
  16061. CONFIRM : "אישור"
  16062. },
  16063. hu : {
  16064. OK : "OK",
  16065. CANCEL : "Mégsem",
  16066. CONFIRM : "Megerősít"
  16067. },
  16068. hr : {
  16069. OK : "OK",
  16070. CANCEL : "Odustani",
  16071. CONFIRM : "Potvrdi"
  16072. },
  16073. id : {
  16074. OK : "OK",
  16075. CANCEL : "Batal",
  16076. CONFIRM : "OK"
  16077. },
  16078. it : {
  16079. OK : "OK",
  16080. CANCEL : "Annulla",
  16081. CONFIRM : "Conferma"
  16082. },
  16083. ja : {
  16084. OK : "OK",
  16085. CANCEL : "キャンセル",
  16086. CONFIRM : "確認"
  16087. },
  16088. lt : {
  16089. OK : "Gerai",
  16090. CANCEL : "Atšaukti",
  16091. CONFIRM : "Patvirtinti"
  16092. },
  16093. lv : {
  16094. OK : "Labi",
  16095. CANCEL : "Atcelt",
  16096. CONFIRM : "Apstiprināt"
  16097. },
  16098. nl : {
  16099. OK : "OK",
  16100. CANCEL : "Annuleren",
  16101. CONFIRM : "Accepteren"
  16102. },
  16103. no : {
  16104. OK : "OK",
  16105. CANCEL : "Avbryt",
  16106. CONFIRM : "OK"
  16107. },
  16108. pl : {
  16109. OK : "OK",
  16110. CANCEL : "Anuluj",
  16111. CONFIRM : "Potwierdź"
  16112. },
  16113. pt : {
  16114. OK : "OK",
  16115. CANCEL : "Cancelar",
  16116. CONFIRM : "Confirmar"
  16117. },
  16118. ru : {
  16119. OK : "OK",
  16120. CANCEL : "Отмена",
  16121. CONFIRM : "Применить"
  16122. },
  16123. sq : {
  16124. OK : "OK",
  16125. CANCEL : "Anulo",
  16126. CONFIRM : "Prano"
  16127. },
  16128. sv : {
  16129. OK : "OK",
  16130. CANCEL : "Avbryt",
  16131. CONFIRM : "OK"
  16132. },
  16133. th : {
  16134. OK : "ตกลง",
  16135. CANCEL : "ยกเลิก",
  16136. CONFIRM : "ยืนยัน"
  16137. },
  16138. tr : {
  16139. OK : "Tamam",
  16140. CANCEL : "İptal",
  16141. CONFIRM : "Onayla"
  16142. },
  16143. zh_CN : {
  16144. OK : "OK",
  16145. CANCEL : "取消",
  16146. CONFIRM : "确认"
  16147. },
  16148. zh_TW : {
  16149. OK : "OK",
  16150. CANCEL : "取消",
  16151. CONFIRM : "確認"
  16152. }
  16153. };
  16154. exports.addLocale = function(name, values) {
  16155. $.each(["OK", "CANCEL", "CONFIRM"], function(_, v) {
  16156. if (!values[v]) {
  16157. throw new Error("Please supply a translation for '" + v + "'");
  16158. }
  16159. });
  16160. locales[name] = {
  16161. OK: values.OK,
  16162. CANCEL: values.CANCEL,
  16163. CONFIRM: values.CONFIRM
  16164. };
  16165. return exports;
  16166. };
  16167. exports.removeLocale = function(name) {
  16168. delete locales[name];
  16169. return exports;
  16170. };
  16171. exports.setLocale = function(name) {
  16172. return exports.setDefaults("locale", name);
  16173. };
  16174. exports.init = function(_$) {
  16175. return init(_$ || $);
  16176. };
  16177. return exports;
  16178. }));
  16179. Status API Training Shop Blog About Pricing
  16180. © 2016 GitHub, Inc. Terms Privacy Security Contact Help
  16181. ;
  16182. /*
  16183. * This combined file was created by the DataTables downloader builder:
  16184. * https://datatables.net/download
  16185. *
  16186. * To rebuild or modify this file with the latest versions of the included
  16187. * software please visit:
  16188. * https://datatables.net/download/#dt/pdfmake-0.1.18,dt-1.10.8,af-2.0.0,b-1.0.1,b-colvis-1.0.1,b-flash-1.0.1,b-html5-1.0.1,b-print-1.0.1,cr-1.2.0,fc-3.1.0,fh-3.0.0,kt-2.0.0,r-1.0.7,rr-1.0.0,sc-1.3.0,se-1.0.0
  16189. *
  16190. * Included libraries:
  16191. * pdfmake 0.1.18, DataTables 1.10.8, AutoFill 2.0.0, Buttons 1.0.1, Column visibility 1.0.1, Flash export 1.0.1, HTML5 export 1.0.1, Print view 1.0.1, ColReorder 1.2.0, FixedColumns 3.1.0, FixedHeader 3.0.0, KeyTable 2.0.0, Responsive 1.0.7, RowReorder 1.0.0, Scroller 1.3.0, Select 1.0.0
  16192. */
  16193. /******/
  16194. (function(modules) { // webpackBootstrap
  16195. /******/ // The module cache
  16196. /******/ var installedModules = {};
  16197. /******/ // The require function
  16198. /******/ function __webpack_require__(moduleId) {
  16199. /******/ // Check if module is in cache
  16200. /******/ if(installedModules[moduleId])
  16201. /******/ return installedModules[moduleId].exports;
  16202. /******/ // Create a new module (and put it into the cache)
  16203. /******/ var module = installedModules[moduleId] = {
  16204. /******/ exports: {},
  16205. /******/ id: moduleId,
  16206. /******/ loaded: false
  16207. /******/ };
  16208. /******/ // Execute the module function
  16209. /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  16210. /******/ // Flag the module as loaded
  16211. /******/ module.loaded = true;
  16212. /******/ // Return the exports of the module
  16213. /******/ return module.exports;
  16214. /******/ }
  16215. /******/ // expose the modules object (__webpack_modules__)
  16216. /******/ __webpack_require__.m = modules;
  16217. /******/ // expose the module cache
  16218. /******/ __webpack_require__.c = installedModules;
  16219. /******/ // __webpack_public_path__
  16220. /******/ __webpack_require__.p = "";
  16221. /******/ // Load entry module and return exports
  16222. /******/ return __webpack_require__(0);
  16223. /******/ })
  16224. /************************************************************************/
  16225. /******/ ([
  16226. /* 0 */
  16227. /***/ function(module, exports, __webpack_require__) {
  16228. /* WEBPACK VAR INJECTION */(function(global) {module.exports = global["pdfMake"] = __webpack_require__(1);
  16229. /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
  16230. /***/ },
  16231. /* 1 */
  16232. /***/ function(module, exports, __webpack_require__) {
  16233. /* WEBPACK VAR INJECTION */(function(Buffer) {/* jslint node: true */
  16234. /* jslint browser: true */
  16235. /* global BlobBuilder */
  16236. 'use strict';
  16237. var PdfPrinter = __webpack_require__(2);
  16238. var saveAs = __webpack_require__(3);
  16239. var defaultClientFonts = {
  16240. Roboto: {
  16241. normal: 'Roboto-Regular.ttf',
  16242. bold: 'Roboto-Medium.ttf',
  16243. italics: 'Roboto-Italic.ttf',
  16244. bolditalics: 'Roboto-Italic.ttf'
  16245. }
  16246. };
  16247. function Document(docDefinition, fonts, vfs) {
  16248. this.docDefinition = docDefinition;
  16249. this.fonts = fonts || defaultClientFonts;
  16250. this.vfs = vfs;
  16251. }
  16252. Document.prototype._createDoc = function(options, callback) {
  16253. var printer = new PdfPrinter(this.fonts);
  16254. printer.fs.bindFS(this.vfs);
  16255. var doc = printer.createPdfKitDocument(this.docDefinition, options);
  16256. var chunks = [];
  16257. var result;
  16258. doc.on('data', function(chunk) {
  16259. chunks.push(chunk);
  16260. });
  16261. doc.on('end', function() {
  16262. result = Buffer.concat(chunks);
  16263. callback(result, doc._pdfMakePages);
  16264. });
  16265. doc.end();
  16266. };
  16267. Document.prototype._getPages = function(options, cb){
  16268. if (!cb) throw 'getBuffer is an async method and needs a callback argument';
  16269. this._createDoc(options, function(ignoreBuffer, pages){
  16270. cb(pages);
  16271. });
  16272. };
  16273. Document.prototype.open = function(message) {
  16274. // we have to open the window immediately and store the reference
  16275. // otherwise popup blockers will stop us
  16276. var win = window.open('', '_blank');
  16277. try {
  16278. this.getDataUrl(function(result) {
  16279. win.location.href = result;
  16280. });
  16281. } catch(e) {
  16282. win.close();
  16283. throw e;
  16284. }
  16285. };
  16286. Document.prototype.print = function() {
  16287. this.getDataUrl(function(dataUrl) {
  16288. var iFrame = document.createElement('iframe');
  16289. iFrame.style.position = 'absolute';
  16290. iFrame.style.left = '-99999px';
  16291. iFrame.src = dataUrl;
  16292. iFrame.onload = function() {
  16293. function removeIFrame(){
  16294. document.body.removeChild(iFrame);
  16295. document.removeEventListener('click', removeIFrame);
  16296. }
  16297. document.addEventListener('click', removeIFrame, false);
  16298. };
  16299. document.body.appendChild(iFrame);
  16300. }, { autoPrint: true });
  16301. };
  16302. Document.prototype.download = function(defaultFileName, cb) {
  16303. if(typeof defaultFileName === "function") {
  16304. cb = defaultFileName;
  16305. defaultFileName = null;
  16306. }
  16307. defaultFileName = defaultFileName || 'file.pdf';
  16308. this.getBuffer(function(result) {
  16309. saveAs(new Blob([result], {type: 'application/pdf'}), defaultFileName);
  16310. if (typeof cb === "function") {
  16311. cb();
  16312. }
  16313. });
  16314. };
  16315. Document.prototype.getBase64 = function(cb, options) {
  16316. if (!cb) throw 'getBase64 is an async method and needs a callback argument';
  16317. this._createDoc(options, function(buffer) {
  16318. cb(buffer.toString('base64'));
  16319. });
  16320. };
  16321. Document.prototype.getDataUrl = function(cb, options) {
  16322. if (!cb) throw 'getDataUrl is an async method and needs a callback argument';
  16323. this._createDoc(options, function(buffer) {
  16324. cb('data:application/pdf;base64,' + buffer.toString('base64'));
  16325. });
  16326. };
  16327. Document.prototype.getBuffer = function(cb, options) {
  16328. if (!cb) throw 'getBuffer is an async method and needs a callback argument';
  16329. this._createDoc(options, function(buffer){
  16330. cb(buffer);
  16331. });
  16332. };
  16333. module.exports = {
  16334. createPdf: function(docDefinition) {
  16335. return new Document(docDefinition, window.pdfMake.fonts, window.pdfMake.vfs);
  16336. }
  16337. };
  16338. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4).Buffer))
  16339. /***/ },
  16340. /* 2 */
  16341. /***/ function(module, exports, __webpack_require__) {
  16342. /* jslint node: true */
  16343. /* global window */
  16344. 'use strict';
  16345. var _ = __webpack_require__(11);
  16346. var FontProvider = __webpack_require__(5);
  16347. var LayoutBuilder = __webpack_require__(6);
  16348. var PdfKit = __webpack_require__(28);
  16349. var PDFReference = __webpack_require__(12);
  16350. var sizes = __webpack_require__(7);
  16351. var ImageMeasure = __webpack_require__(8);
  16352. var textDecorator = __webpack_require__(9);
  16353. var FontProvider = __webpack_require__(5);
  16354. ////////////////////////////////////////
  16355. // PdfPrinter
  16356. /**
  16357. * @class Creates an instance of a PdfPrinter which turns document definition into a pdf
  16358. *
  16359. * @param {Object} fontDescriptors font definition dictionary
  16360. *
  16361. * @example
  16362. * var fontDescriptors = {
  16363. * Roboto: {
  16364. * normal: 'fonts/Roboto-Regular.ttf',
  16365. * bold: 'fonts/Roboto-Medium.ttf',
  16366. * italics: 'fonts/Roboto-Italic.ttf',
  16367. * bolditalics: 'fonts/Roboto-Italic.ttf'
  16368. * }
  16369. * };
  16370. *
  16371. * var printer = new PdfPrinter(fontDescriptors);
  16372. */
  16373. function PdfPrinter(fontDescriptors) {
  16374. this.fontDescriptors = fontDescriptors;
  16375. }
  16376. /**
  16377. * Executes layout engine for the specified document and renders it into a pdfkit document
  16378. * ready to be saved.
  16379. *
  16380. * @param {Object} docDefinition document definition
  16381. * @param {Object} docDefinition.content an array describing the pdf structure (for more information take a look at the examples in the /examples folder)
  16382. * @param {Object} [docDefinition.defaultStyle] default (implicit) style definition
  16383. * @param {Object} [docDefinition.styles] dictionary defining all styles which can be used in the document
  16384. * @param {Object} [docDefinition.pageSize] page size (pdfkit units, A4 dimensions by default)
  16385. * @param {Number} docDefinition.pageSize.width width
  16386. * @param {Number} docDefinition.pageSize.height height
  16387. * @param {Object} [docDefinition.pageMargins] page margins (pdfkit units)
  16388. *
  16389. * @example
  16390. *
  16391. * var docDefinition = {
  16392. * content: [
  16393. * 'First paragraph',
  16394. * 'Second paragraph, this time a little bit longer',
  16395. * { text: 'Third paragraph, slightly bigger font size', fontSize: 20 },
  16396. * { text: 'Another paragraph using a named style', style: 'header' },
  16397. * { text: ['playing with ', 'inlines' ] },
  16398. * { text: ['and ', { text: 'restyling ', bold: true }, 'them'] },
  16399. * ],
  16400. * styles: {
  16401. * header: { fontSize: 30, bold: true }
  16402. * }
  16403. * }
  16404. *
  16405. * var pdfDoc = printer.createPdfKitDocument(docDefinition);
  16406. *
  16407. * pdfDoc.pipe(fs.createWriteStream('sample.pdf'));
  16408. * pdfDoc.end();
  16409. *
  16410. * @return {Object} a pdfKit document object which can be saved or encode to data-url
  16411. */
  16412. PdfPrinter.prototype.createPdfKitDocument = function(docDefinition, options) {
  16413. options = options || {};
  16414. var pageSize = pageSize2widthAndHeight(docDefinition.pageSize || 'a4');
  16415. if(docDefinition.pageOrientation === 'landscape') {
  16416. pageSize = { width: pageSize.height, height: pageSize.width};
  16417. }
  16418. pageSize.orientation = docDefinition.pageOrientation === 'landscape' ? docDefinition.pageOrientation : 'portrait';
  16419. this.pdfKitDoc = new PdfKit({ size: [ pageSize.width, pageSize.height ], compress: false});
  16420. this.pdfKitDoc.info.Producer = 'pdfmake';
  16421. this.pdfKitDoc.info.Creator = 'pdfmake';
  16422. this.fontProvider = new FontProvider(this.fontDescriptors, this.pdfKitDoc);
  16423. docDefinition.images = docDefinition.images || {};
  16424. var builder = new LayoutBuilder(
  16425. pageSize,
  16426. fixPageMargins(docDefinition.pageMargins || 40),
  16427. new ImageMeasure(this.pdfKitDoc, docDefinition.images));
  16428. registerDefaultTableLayouts(builder);
  16429. if (options.tableLayouts) {
  16430. builder.registerTableLayouts(options.tableLayouts);
  16431. }
  16432. var pages = builder.layoutDocument(docDefinition.content, this.fontProvider, docDefinition.styles || {}, docDefinition.defaultStyle || { fontSize: 12, font: 'Roboto' }, docDefinition.background, docDefinition.header, docDefinition.footer, docDefinition.images, docDefinition.watermark, docDefinition.pageBreakBefore);
  16433. renderPages(pages, this.fontProvider, this.pdfKitDoc);
  16434. if(options.autoPrint){
  16435. var jsRef = this.pdfKitDoc.ref({
  16436. S: 'JavaScript',
  16437. JS: new StringObject('this.print\\(true\\);')
  16438. });
  16439. var namesRef = this.pdfKitDoc.ref({
  16440. Names: [new StringObject('EmbeddedJS'), new PDFReference(this.pdfKitDoc, jsRef.id)],
  16441. });
  16442. jsRef.end();
  16443. namesRef.end();
  16444. this.pdfKitDoc._root.data.Names = {
  16445. JavaScript: new PDFReference(this.pdfKitDoc, namesRef.id)
  16446. };
  16447. }
  16448. return this.pdfKitDoc;
  16449. };
  16450. function fixPageMargins(margin) {
  16451. if (!margin) return null;
  16452. if (typeof margin === 'number' || margin instanceof Number) {
  16453. margin = { left: margin, right: margin, top: margin, bottom: margin };
  16454. } else if (margin instanceof Array) {
  16455. if (margin.length === 2) {
  16456. margin = { left: margin[0], top: margin[1], right: margin[0], bottom: margin[1] };
  16457. } else if (margin.length === 4) {
  16458. margin = { left: margin[0], top: margin[1], right: margin[2], bottom: margin[3] };
  16459. } else throw 'Invalid pageMargins definition';
  16460. }
  16461. return margin;
  16462. }
  16463. function registerDefaultTableLayouts(layoutBuilder) {
  16464. layoutBuilder.registerTableLayouts({
  16465. noBorders: {
  16466. hLineWidth: function(i) { return 0; },
  16467. vLineWidth: function(i) { return 0; },
  16468. paddingLeft: function(i) { return i && 4 || 0; },
  16469. paddingRight: function(i, node) { return (i < node.table.widths.length - 1) ? 4 : 0; },
  16470. },
  16471. headerLineOnly: {
  16472. hLineWidth: function(i, node) {
  16473. if (i === 0 || i === node.table.body.length) return 0;
  16474. return (i === node.table.headerRows) ? 2 : 0;
  16475. },
  16476. vLineWidth: function(i) { return 0; },
  16477. paddingLeft: function(i) {
  16478. return i === 0 ? 0 : 8;
  16479. },
  16480. paddingRight: function(i, node) {
  16481. return (i === node.table.widths.length - 1) ? 0 : 8;
  16482. }
  16483. },
  16484. lightHorizontalLines: {
  16485. hLineWidth: function(i, node) {
  16486. if (i === 0 || i === node.table.body.length) return 0;
  16487. return (i === node.table.headerRows) ? 2 : 1;
  16488. },
  16489. vLineWidth: function(i) { return 0; },
  16490. hLineColor: function(i) { return i === 1 ? 'black' : '#aaa'; },
  16491. paddingLeft: function(i) {
  16492. return i === 0 ? 0 : 8;
  16493. },
  16494. paddingRight: function(i, node) {
  16495. return (i === node.table.widths.length - 1) ? 0 : 8;
  16496. }
  16497. }
  16498. });
  16499. }
  16500. var defaultLayout = {
  16501. hLineWidth: function(i, node) { return 1; }, //return node.table.headerRows && i === node.table.headerRows && 3 || 0; },
  16502. vLineWidth: function(i, node) { return 1; },
  16503. hLineColor: function(i, node) { return 'black'; },
  16504. vLineColor: function(i, node) { return 'black'; },
  16505. paddingLeft: function(i, node) { return 4; }, //i && 4 || 0; },
  16506. paddingRight: function(i, node) { return 4; }, //(i < node.table.widths.length - 1) ? 4 : 0; },
  16507. paddingTop: function(i, node) { return 2; },
  16508. paddingBottom: function(i, node) { return 2; }
  16509. };
  16510. function pageSize2widthAndHeight(pageSize) {
  16511. if (typeof pageSize == 'string' || pageSize instanceof String) {
  16512. var size = sizes[pageSize.toUpperCase()];
  16513. if (!size) throw ('Page size ' + pageSize + ' not recognized');
  16514. return { width: size[0], height: size[1] };
  16515. }
  16516. return pageSize;
  16517. }
  16518. function StringObject(str){
  16519. this.isString = true;
  16520. this.toString = function(){
  16521. return str;
  16522. };
  16523. }
  16524. function updatePageOrientationInOptions(currentPage, pdfKitDoc) {
  16525. var previousPageOrientation = pdfKitDoc.options.size[0] > pdfKitDoc.options.size[1] ? 'landscape' : 'portrait';
  16526. if(currentPage.pageSize.orientation !== previousPageOrientation) {
  16527. var width = pdfKitDoc.options.size[0];
  16528. var height = pdfKitDoc.options.size[1];
  16529. pdfKitDoc.options.size = [height, width];
  16530. }
  16531. }
  16532. function renderPages(pages, fontProvider, pdfKitDoc) {
  16533. pdfKitDoc._pdfMakePages = pages;
  16534. for (var i = 0; i < pages.length; i++) {
  16535. if (i > 0) {
  16536. updatePageOrientationInOptions(pages[i], pdfKitDoc);
  16537. pdfKitDoc.addPage(pdfKitDoc.options);
  16538. }
  16539. var page = pages[i];
  16540. for(var ii = 0, il = page.items.length; ii < il; ii++) {
  16541. var item = page.items[ii];
  16542. switch(item.type) {
  16543. case 'vector':
  16544. renderVector(item.item, pdfKitDoc);
  16545. break;
  16546. case 'line':
  16547. renderLine(item.item, item.item.x, item.item.y, pdfKitDoc);
  16548. break;
  16549. case 'image':
  16550. renderImage(item.item, item.item.x, item.item.y, pdfKitDoc);
  16551. break;
  16552. }
  16553. }
  16554. if(page.watermark){
  16555. renderWatermark(page, pdfKitDoc);
  16556. }
  16557. fontProvider.setFontRefsToPdfDoc();
  16558. }
  16559. }
  16560. function renderLine(line, x, y, pdfKitDoc) {
  16561. x = x || 0;
  16562. y = y || 0;
  16563. var ascenderHeight = line.getAscenderHeight();
  16564. textDecorator.drawBackground(line, x, y, pdfKitDoc);
  16565. //TODO: line.optimizeInlines();
  16566. for(var i = 0, l = line.inlines.length; i < l; i++) {
  16567. var inline = line.inlines[i];
  16568. pdfKitDoc.fill(inline.color || 'black');
  16569. pdfKitDoc.save();
  16570. pdfKitDoc.transform(1, 0, 0, -1, 0, pdfKitDoc.page.height);
  16571. var encoded = inline.font.encode(inline.text);
  16572. pdfKitDoc.addContent('BT');
  16573. pdfKitDoc.addContent('' + (x + inline.x) + ' ' + (pdfKitDoc.page.height - y - ascenderHeight) + ' Td');
  16574. pdfKitDoc.addContent('/' + encoded.fontId + ' ' + inline.fontSize + ' Tf');
  16575. pdfKitDoc.addContent('<' + encoded.encodedText + '> Tj');
  16576. pdfKitDoc.addContent('ET');
  16577. pdfKitDoc.restore();
  16578. }
  16579. textDecorator.drawDecorations(line, x, y, pdfKitDoc);
  16580. }
  16581. function renderWatermark(page, pdfKitDoc){
  16582. var watermark = page.watermark;
  16583. pdfKitDoc.fill('black');
  16584. pdfKitDoc.opacity(0.6);
  16585. pdfKitDoc.save();
  16586. pdfKitDoc.transform(1, 0, 0, -1, 0, pdfKitDoc.page.height);
  16587. var angle = Math.atan2(pdfKitDoc.page.height, pdfKitDoc.page.width) * 180/Math.PI;
  16588. pdfKitDoc.rotate(angle, {origin: [pdfKitDoc.page.width/2, pdfKitDoc.page.height/2]});
  16589. var encoded = watermark.font.encode(watermark.text);
  16590. pdfKitDoc.addContent('BT');
  16591. pdfKitDoc.addContent('' + (pdfKitDoc.page.width/2 - watermark.size.size.width/2) + ' ' + (pdfKitDoc.page.height/2 - watermark.size.size.height/4) + ' Td');
  16592. pdfKitDoc.addContent('/' + encoded.fontId + ' ' + watermark.size.fontSize + ' Tf');
  16593. pdfKitDoc.addContent('<' + encoded.encodedText + '> Tj');
  16594. pdfKitDoc.addContent('ET');
  16595. pdfKitDoc.restore();
  16596. }
  16597. function renderVector(vector, pdfDoc) {
  16598. //TODO: pdf optimization (there's no need to write all properties everytime)
  16599. pdfDoc.lineWidth(vector.lineWidth || 1);
  16600. if (vector.dash) {
  16601. pdfDoc.dash(vector.dash.length, { space: vector.dash.space || vector.dash.length });
  16602. } else {
  16603. pdfDoc.undash();
  16604. }
  16605. pdfDoc.fillOpacity(vector.fillOpacity || 1);
  16606. pdfDoc.strokeOpacity(vector.strokeOpacity || 1);
  16607. pdfDoc.lineJoin(vector.lineJoin || 'miter');
  16608. //TODO: clipping
  16609. switch(vector.type) {
  16610. case 'ellipse':
  16611. pdfDoc.ellipse(vector.x, vector.y, vector.r1, vector.r2);
  16612. break;
  16613. case 'rect':
  16614. if (vector.r) {
  16615. pdfDoc.roundedRect(vector.x, vector.y, vector.w, vector.h, vector.r);
  16616. } else {
  16617. pdfDoc.rect(vector.x, vector.y, vector.w, vector.h);
  16618. }
  16619. break;
  16620. case 'line':
  16621. pdfDoc.moveTo(vector.x1, vector.y1);
  16622. pdfDoc.lineTo(vector.x2, vector.y2);
  16623. break;
  16624. case 'polyline':
  16625. if (vector.points.length === 0) break;
  16626. pdfDoc.moveTo(vector.points[0].x, vector.points[0].y);
  16627. for(var i = 1, l = vector.points.length; i < l; i++) {
  16628. pdfDoc.lineTo(vector.points[i].x, vector.points[i].y);
  16629. }
  16630. if (vector.points.length > 1) {
  16631. var p1 = vector.points[0];
  16632. var pn = vector.points[vector.points.length - 1];
  16633. if (vector.closePath || p1.x === pn.x && p1.y === pn.y) {
  16634. pdfDoc.closePath();
  16635. }
  16636. }
  16637. break;
  16638. }
  16639. if (vector.color && vector.lineColor) {
  16640. pdfDoc.fillAndStroke(vector.color, vector.lineColor);
  16641. } else if (vector.color) {
  16642. pdfDoc.fill(vector.color);
  16643. } else {
  16644. pdfDoc.stroke(vector.lineColor || 'black');
  16645. }
  16646. }
  16647. function renderImage(image, x, y, pdfKitDoc) {
  16648. pdfKitDoc.image(image.image, image.x, image.y, { width: image._width, height: image._height });
  16649. }
  16650. module.exports = PdfPrinter;
  16651. /* temporary browser extension */
  16652. PdfPrinter.prototype.fs = __webpack_require__(10);
  16653. /***/ },
  16654. /* 3 */
  16655. /***/ function(module, exports, __webpack_require__) {
  16656. var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/* WEBPACK VAR INJECTION */(function(module) {/* FileSaver.js
  16657. * A saveAs() FileSaver implementation.
  16658. * 2014-08-29
  16659. *
  16660. * By Eli Grey, http://eligrey.com
  16661. * License: X11/MIT
  16662. * See https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md
  16663. */
  16664. /*global self */
  16665. /*jslint bitwise: true, indent: 4, laxbreak: true, laxcomma: true, smarttabs: true, plusplus: true */
  16666. /*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */
  16667. var saveAs = saveAs
  16668. // IE 10+ (native saveAs)
  16669. || (typeof navigator !== "undefined" &&
  16670. navigator.msSaveOrOpenBlob && navigator.msSaveOrOpenBlob.bind(navigator))
  16671. // Everyone else
  16672. || (function(view) {
  16673. "use strict";
  16674. // IE <10 is explicitly unsupported
  16675. if (typeof navigator !== "undefined" &&
  16676. /MSIE [1-9]\./.test(navigator.userAgent)) {
  16677. return;
  16678. }
  16679. var
  16680. doc = view.document
  16681. // only get URL when necessary in case Blob.js hasn't overridden it yet
  16682. , get_URL = function() {
  16683. return view.URL || view.webkitURL || view;
  16684. }
  16685. , save_link = doc.createElementNS("http://www.w3.org/1999/xhtml", "a")
  16686. , can_use_save_link = "download" in save_link
  16687. , click = function(node) {
  16688. var event = doc.createEvent("MouseEvents");
  16689. event.initMouseEvent(
  16690. "click", true, false, view, 0, 0, 0, 0, 0
  16691. , false, false, false, false, 0, null
  16692. );
  16693. node.dispatchEvent(event);
  16694. }
  16695. , webkit_req_fs = view.webkitRequestFileSystem
  16696. , req_fs = view.requestFileSystem || webkit_req_fs || view.mozRequestFileSystem
  16697. , throw_outside = function(ex) {
  16698. (view.setImmediate || view.setTimeout)(function() {
  16699. throw ex;
  16700. }, 0);
  16701. }
  16702. , force_saveable_type = "application/octet-stream"
  16703. , fs_min_size = 0
  16704. // See https://code.google.com/p/chromium/issues/detail?id=375297#c7 for
  16705. // the reasoning behind the timeout and revocation flow
  16706. , arbitrary_revoke_timeout = 10
  16707. , revoke = function(file) {
  16708. var revoker = function() {
  16709. if (typeof file === "string") { // file is an object URL
  16710. get_URL().revokeObjectURL(file);
  16711. } else { // file is a File
  16712. file.remove();
  16713. }
  16714. };
  16715. if (view.chrome) {
  16716. revoker();
  16717. } else {
  16718. setTimeout(revoker, arbitrary_revoke_timeout);
  16719. }
  16720. }
  16721. , dispatch = function(filesaver, event_types, event) {
  16722. event_types = [].concat(event_types);
  16723. var i = event_types.length;
  16724. while (i--) {
  16725. var listener = filesaver["on" + event_types[i]];
  16726. if (typeof listener === "function") {
  16727. try {
  16728. listener.call(filesaver, event || filesaver);
  16729. } catch (ex) {
  16730. throw_outside(ex);
  16731. }
  16732. }
  16733. }
  16734. }
  16735. , FileSaver = function(blob, name) {
  16736. // First try a.download, then web filesystem, then object URLs
  16737. var
  16738. filesaver = this
  16739. , type = blob.type
  16740. , blob_changed = false
  16741. , object_url
  16742. , target_view
  16743. , dispatch_all = function() {
  16744. dispatch(filesaver, "writestart progress write writeend".split(" "));
  16745. }
  16746. // on any filesys errors revert to saving with object URLs
  16747. , fs_error = function() {
  16748. // don't create more object URLs than needed
  16749. if (blob_changed || !object_url) {
  16750. object_url = get_URL().createObjectURL(blob);
  16751. }
  16752. if (target_view) {
  16753. target_view.location.href = object_url;
  16754. } else {
  16755. var new_tab = view.open(object_url, "_blank");
  16756. if (new_tab == undefined && typeof safari !== "undefined") {
  16757. //Apple do not allow window.open, see http://bit.ly/1kZffRI
  16758. view.location.href = object_url
  16759. }
  16760. }
  16761. filesaver.readyState = filesaver.DONE;
  16762. dispatch_all();
  16763. revoke(object_url);
  16764. }
  16765. , abortable = function(func) {
  16766. return function() {
  16767. if (filesaver.readyState !== filesaver.DONE) {
  16768. return func.apply(this, arguments);
  16769. }
  16770. };
  16771. }
  16772. , create_if_not_found = {create: true, exclusive: false}
  16773. , slice
  16774. ;
  16775. filesaver.readyState = filesaver.INIT;
  16776. if (!name) {
  16777. name = "download";
  16778. }
  16779. if (can_use_save_link) {
  16780. object_url = get_URL().createObjectURL(blob);
  16781. save_link.href = object_url;
  16782. save_link.download = name;
  16783. click(save_link);
  16784. filesaver.readyState = filesaver.DONE;
  16785. dispatch_all();
  16786. revoke(object_url);
  16787. return;
  16788. }
  16789. // Object and web filesystem URLs have a problem saving in Google Chrome when
  16790. // viewed in a tab, so I force save with application/octet-stream
  16791. // http://code.google.com/p/chromium/issues/detail?id=91158
  16792. // Update: Google errantly closed 91158, I submitted it again:
  16793. // https://code.google.com/p/chromium/issues/detail?id=389642
  16794. if (view.chrome && type && type !== force_saveable_type) {
  16795. slice = blob.slice || blob.webkitSlice;
  16796. blob = slice.call(blob, 0, blob.size, force_saveable_type);
  16797. blob_changed = true;
  16798. }
  16799. // Since I can't be sure that the guessed media type will trigger a download
  16800. // in WebKit, I append .download to the filename.
  16801. // https://bugs.webkit.org/show_bug.cgi?id=65440
  16802. if (webkit_req_fs && name !== "download") {
  16803. name += ".download";
  16804. }
  16805. if (type === force_saveable_type || webkit_req_fs) {
  16806. target_view = view;
  16807. }
  16808. if (!req_fs) {
  16809. fs_error();
  16810. return;
  16811. }
  16812. fs_min_size += blob.size;
  16813. req_fs(view.TEMPORARY, fs_min_size, abortable(function(fs) {
  16814. fs.root.getDirectory("saved", create_if_not_found, abortable(function(dir) {
  16815. var save = function() {
  16816. dir.getFile(name, create_if_not_found, abortable(function(file) {
  16817. file.createWriter(abortable(function(writer) {
  16818. writer.onwriteend = function(event) {
  16819. target_view.location.href = file.toURL();
  16820. filesaver.readyState = filesaver.DONE;
  16821. dispatch(filesaver, "writeend", event);
  16822. revoke(file);
  16823. };
  16824. writer.onerror = function() {
  16825. var error = writer.error;
  16826. if (error.code !== error.ABORT_ERR) {
  16827. fs_error();
  16828. }
  16829. };
  16830. "writestart progress write abort".split(" ").forEach(function(event) {
  16831. writer["on" + event] = filesaver["on" + event];
  16832. });
  16833. writer.write(blob);
  16834. filesaver.abort = function() {
  16835. writer.abort();
  16836. filesaver.readyState = filesaver.DONE;
  16837. };
  16838. filesaver.readyState = filesaver.WRITING;
  16839. }), fs_error);
  16840. }), fs_error);
  16841. };
  16842. dir.getFile(name, {create: false}, abortable(function(file) {
  16843. // delete file if it already exists
  16844. file.remove();
  16845. save();
  16846. }), abortable(function(ex) {
  16847. if (ex.code === ex.NOT_FOUND_ERR) {
  16848. save();
  16849. } else {
  16850. fs_error();
  16851. }
  16852. }));
  16853. }), fs_error);
  16854. }), fs_error);
  16855. }
  16856. , FS_proto = FileSaver.prototype
  16857. , saveAs = function(blob, name) {
  16858. return new FileSaver(blob, name);
  16859. }
  16860. ;
  16861. FS_proto.abort = function() {
  16862. var filesaver = this;
  16863. filesaver.readyState = filesaver.DONE;
  16864. dispatch(filesaver, "abort");
  16865. };
  16866. FS_proto.readyState = FS_proto.INIT = 0;
  16867. FS_proto.WRITING = 1;
  16868. FS_proto.DONE = 2;
  16869. FS_proto.error =
  16870. FS_proto.onwritestart =
  16871. FS_proto.onprogress =
  16872. FS_proto.onwrite =
  16873. FS_proto.onabort =
  16874. FS_proto.onerror =
  16875. FS_proto.onwriteend =
  16876. null;
  16877. return saveAs;
  16878. }(
  16879. typeof self !== "undefined" && self
  16880. || typeof window !== "undefined" && window
  16881. || this.content
  16882. ));
  16883. // `self` is undefined in Firefox for Android content script context
  16884. // while `this` is nsIContentFrameMessageManager
  16885. // with an attribute `content` that corresponds to the window
  16886. if (typeof module !== "undefined" && module !== null) {
  16887. module.exports = saveAs;
  16888. } else if (("function" !== "undefined" && __webpack_require__(13) !== null) && (__webpack_require__(14) != null)) {
  16889. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = function() {
  16890. return saveAs;
  16891. }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  16892. }
  16893. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(15)(module)))
  16894. /***/ },
  16895. /* 4 */
  16896. /***/ function(module, exports, __webpack_require__) {
  16897. /* WEBPACK VAR INJECTION */(function(Buffer) {/*!
  16898. * The buffer module from node.js, for the browser.
  16899. *
  16900. * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
  16901. * @license MIT
  16902. */
  16903. var base64 = __webpack_require__(31)
  16904. var ieee754 = __webpack_require__(29)
  16905. var isArray = __webpack_require__(30)
  16906. exports.Buffer = Buffer
  16907. exports.SlowBuffer = SlowBuffer
  16908. exports.INSPECT_MAX_BYTES = 50
  16909. Buffer.poolSize = 8192 // not used by this implementation
  16910. var kMaxLength = 0x3fffffff
  16911. var rootParent = {}
  16912. /**
  16913. * If `Buffer.TYPED_ARRAY_SUPPORT`:
  16914. * === true Use Uint8Array implementation (fastest)
  16915. * === false Use Object implementation (most compatible, even IE6)
  16916. *
  16917. * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
  16918. * Opera 11.6+, iOS 4.2+.
  16919. *
  16920. * Note:
  16921. *
  16922. * - Implementation must support adding new properties to `Uint8Array` instances.
  16923. * Firefox 4-29 lacked support, fixed in Firefox 30+.
  16924. * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.
  16925. *
  16926. * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.
  16927. *
  16928. * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of
  16929. * incorrect length in some situations.
  16930. *
  16931. * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they will
  16932. * get the Object implementation, which is slower but will work correctly.
  16933. */
  16934. Buffer.TYPED_ARRAY_SUPPORT = (function () {
  16935. try {
  16936. var buf = new ArrayBuffer(0)
  16937. var arr = new Uint8Array(buf)
  16938. arr.foo = function () { return 42 }
  16939. return arr.foo() === 42 && // typed array instances can be augmented
  16940. typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`
  16941. new Uint8Array(1).subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`
  16942. } catch (e) {
  16943. return false
  16944. }
  16945. })()
  16946. /**
  16947. * Class: Buffer
  16948. * =============
  16949. *
  16950. * The Buffer constructor returns instances of `Uint8Array` that are augmented
  16951. * with function properties for all the node `Buffer` API functions. We use
  16952. * `Uint8Array` so that square bracket notation works as expected -- it returns
  16953. * a single octet.
  16954. *
  16955. * By augmenting the instances, we can avoid modifying the `Uint8Array`
  16956. * prototype.
  16957. */
  16958. function Buffer (arg) {
  16959. if (!(this instanceof Buffer)) {
  16960. // Avoid going through an ArgumentsAdaptorTrampoline in the common case.
  16961. if (arguments.length > 1) return new Buffer(arg, arguments[1])
  16962. return new Buffer(arg)
  16963. }
  16964. this.length = 0
  16965. this.parent = undefined
  16966. // Common case.
  16967. if (typeof arg === 'number') {
  16968. return fromNumber(this, arg)
  16969. }
  16970. // Slightly less common case.
  16971. if (typeof arg === 'string') {
  16972. return fromString(this, arg, arguments.length > 1 ? arguments[1] : 'utf8')
  16973. }
  16974. // Unusual.
  16975. return fromObject(this, arg)
  16976. }
  16977. function fromNumber (that, length) {
  16978. that = allocate(that, length < 0 ? 0 : checked(length) | 0)
  16979. if (!Buffer.TYPED_ARRAY_SUPPORT) {
  16980. for (var i = 0; i < length; i++) {
  16981. that[i] = 0
  16982. }
  16983. }
  16984. return that
  16985. }
  16986. function fromString (that, string, encoding) {
  16987. if (typeof encoding !== 'string' || encoding === '') encoding = 'utf8'
  16988. // Assumption: byteLength() return value is always < kMaxLength.
  16989. var length = byteLength(string, encoding) | 0
  16990. that = allocate(that, length)
  16991. that.write(string, encoding)
  16992. return that
  16993. }
  16994. function fromObject (that, object) {
  16995. if (Buffer.isBuffer(object)) return fromBuffer(that, object)
  16996. if (isArray(object)) return fromArray(that, object)
  16997. if (object == null) {
  16998. throw new TypeError('must start with number, buffer, array or string')
  16999. }
  17000. if (typeof ArrayBuffer !== 'undefined' && object.buffer instanceof ArrayBuffer) {
  17001. return fromTypedArray(that, object)
  17002. }
  17003. if (object.length) return fromArrayLike(that, object)
  17004. return fromJsonObject(that, object)
  17005. }
  17006. function fromBuffer (that, buffer) {
  17007. var length = checked(buffer.length) | 0
  17008. that = allocate(that, length)
  17009. buffer.copy(that, 0, 0, length)
  17010. return that
  17011. }
  17012. function fromArray (that, array) {
  17013. var length = checked(array.length) | 0
  17014. that = allocate(that, length)
  17015. for (var i = 0; i < length; i += 1) {
  17016. that[i] = array[i] & 255
  17017. }
  17018. return that
  17019. }
  17020. // Duplicate of fromArray() to keep fromArray() monomorphic.
  17021. function fromTypedArray (that, array) {
  17022. var length = checked(array.length) | 0
  17023. that = allocate(that, length)
  17024. // Truncating the elements is probably not what people expect from typed
  17025. // arrays with BYTES_PER_ELEMENT > 1 but it's compatible with the behavior
  17026. // of the old Buffer constructor.
  17027. for (var i = 0; i < length; i += 1) {
  17028. that[i] = array[i] & 255
  17029. }
  17030. return that
  17031. }
  17032. function fromArrayLike (that, array) {
  17033. var length = checked(array.length) | 0
  17034. that = allocate(that, length)
  17035. for (var i = 0; i < length; i += 1) {
  17036. that[i] = array[i] & 255
  17037. }
  17038. return that
  17039. }
  17040. // Deserialize { type: 'Buffer', data: [1,2,3,...] } into a Buffer object.
  17041. // Returns a zero-length buffer for inputs that don't conform to the spec.
  17042. function fromJsonObject (that, object) {
  17043. var array
  17044. var length = 0
  17045. if (object.type === 'Buffer' && isArray(object.data)) {
  17046. array = object.data
  17047. length = checked(array.length) | 0
  17048. }
  17049. that = allocate(that, length)
  17050. for (var i = 0; i < length; i += 1) {
  17051. that[i] = array[i] & 255
  17052. }
  17053. return that
  17054. }
  17055. function allocate (that, length) {
  17056. if (Buffer.TYPED_ARRAY_SUPPORT) {
  17057. // Return an augmented `Uint8Array` instance, for best performance
  17058. that = Buffer._augment(new Uint8Array(length))
  17059. } else {
  17060. // Fallback: Return an object instance of the Buffer class
  17061. that.length = length
  17062. that._isBuffer = true
  17063. }
  17064. var fromPool = length !== 0 && length <= Buffer.poolSize >>> 1
  17065. if (fromPool) that.parent = rootParent
  17066. return that
  17067. }
  17068. function checked (length) {
  17069. // Note: cannot use `length < kMaxLength` here because that fails when
  17070. // length is NaN (which is otherwise coerced to zero.)
  17071. if (length >= kMaxLength) {
  17072. throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
  17073. 'size: 0x' + kMaxLength.toString(16) + ' bytes')
  17074. }
  17075. return length | 0
  17076. }
  17077. function SlowBuffer (subject, encoding) {
  17078. if (!(this instanceof SlowBuffer)) return new SlowBuffer(subject, encoding)
  17079. var buf = new Buffer(subject, encoding)
  17080. delete buf.parent
  17081. return buf
  17082. }
  17083. Buffer.isBuffer = function isBuffer (b) {
  17084. return !!(b != null && b._isBuffer)
  17085. }
  17086. Buffer.compare = function compare (a, b) {
  17087. if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
  17088. throw new TypeError('Arguments must be Buffers')
  17089. }
  17090. if (a === b) return 0
  17091. var x = a.length
  17092. var y = b.length
  17093. var i = 0
  17094. var len = Math.min(x, y)
  17095. while (i < len) {
  17096. if (a[i] !== b[i]) break
  17097. ++i
  17098. }
  17099. if (i !== len) {
  17100. x = a[i]
  17101. y = b[i]
  17102. }
  17103. if (x < y) return -1
  17104. if (y < x) return 1
  17105. return 0
  17106. }
  17107. Buffer.isEncoding = function isEncoding (encoding) {
  17108. switch (String(encoding).toLowerCase()) {
  17109. case 'hex':
  17110. case 'utf8':
  17111. case 'utf-8':
  17112. case 'ascii':
  17113. case 'binary':
  17114. case 'base64':
  17115. case 'raw':
  17116. case 'ucs2':
  17117. case 'ucs-2':
  17118. case 'utf16le':
  17119. case 'utf-16le':
  17120. return true
  17121. default:
  17122. return false
  17123. }
  17124. }
  17125. Buffer.concat = function concat (list, length) {
  17126. if (!isArray(list)) throw new TypeError('list argument must be an Array of Buffers.')
  17127. if (list.length === 0) {
  17128. return new Buffer(0)
  17129. } else if (list.length === 1) {
  17130. return list[0]
  17131. }
  17132. var i
  17133. if (length === undefined) {
  17134. length = 0
  17135. for (i = 0; i < list.length; i++) {
  17136. length += list[i].length
  17137. }
  17138. }
  17139. var buf = new Buffer(length)
  17140. var pos = 0
  17141. for (i = 0; i < list.length; i++) {
  17142. var item = list[i]
  17143. item.copy(buf, pos)
  17144. pos += item.length
  17145. }
  17146. return buf
  17147. }
  17148. function byteLength (string, encoding) {
  17149. if (typeof string !== 'string') string = String(string)
  17150. if (string.length === 0) return 0
  17151. switch (encoding || 'utf8') {
  17152. case 'ascii':
  17153. case 'binary':
  17154. case 'raw':
  17155. return string.length
  17156. case 'ucs2':
  17157. case 'ucs-2':
  17158. case 'utf16le':
  17159. case 'utf-16le':
  17160. return string.length * 2
  17161. case 'hex':
  17162. return string.length >>> 1
  17163. case 'utf8':
  17164. case 'utf-8':
  17165. return utf8ToBytes(string).length
  17166. case 'base64':
  17167. return base64ToBytes(string).length
  17168. default:
  17169. return string.length
  17170. }
  17171. }
  17172. Buffer.byteLength = byteLength
  17173. // pre-set for values that may exist in the future
  17174. Buffer.prototype.length = undefined
  17175. Buffer.prototype.parent = undefined
  17176. // toString(encoding, start=0, end=buffer.length)
  17177. Buffer.prototype.toString = function toString (encoding, start, end) {
  17178. var loweredCase = false
  17179. start = start | 0
  17180. end = end === undefined || end === Infinity ? this.length : end | 0
  17181. if (!encoding) encoding = 'utf8'
  17182. if (start < 0) start = 0
  17183. if (end > this.length) end = this.length
  17184. if (end <= start) return ''
  17185. while (true) {
  17186. switch (encoding) {
  17187. case 'hex':
  17188. return hexSlice(this, start, end)
  17189. case 'utf8':
  17190. case 'utf-8':
  17191. return utf8Slice(this, start, end)
  17192. case 'ascii':
  17193. return asciiSlice(this, start, end)
  17194. case 'binary':
  17195. return binarySlice(this, start, end)
  17196. case 'base64':
  17197. return base64Slice(this, start, end)
  17198. case 'ucs2':
  17199. case 'ucs-2':
  17200. case 'utf16le':
  17201. case 'utf-16le':
  17202. return utf16leSlice(this, start, end)
  17203. default:
  17204. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  17205. encoding = (encoding + '').toLowerCase()
  17206. loweredCase = true
  17207. }
  17208. }
  17209. }
  17210. Buffer.prototype.equals = function equals (b) {
  17211. if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
  17212. if (this === b) return true
  17213. return Buffer.compare(this, b) === 0
  17214. }
  17215. Buffer.prototype.inspect = function inspect () {
  17216. var str = ''
  17217. var max = exports.INSPECT_MAX_BYTES
  17218. if (this.length > 0) {
  17219. str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')
  17220. if (this.length > max) str += ' ... '
  17221. }
  17222. return '<Buffer ' + str + '>'
  17223. }
  17224. Buffer.prototype.compare = function compare (b) {
  17225. if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
  17226. if (this === b) return 0
  17227. return Buffer.compare(this, b)
  17228. }
  17229. Buffer.prototype.indexOf = function indexOf (val, byteOffset) {
  17230. if (byteOffset > 0x7fffffff) byteOffset = 0x7fffffff
  17231. else if (byteOffset < -0x80000000) byteOffset = -0x80000000
  17232. byteOffset >>= 0
  17233. if (this.length === 0) return -1
  17234. if (byteOffset >= this.length) return -1
  17235. // Negative offsets start from the end of the buffer
  17236. if (byteOffset < 0) byteOffset = Math.max(this.length + byteOffset, 0)
  17237. if (typeof val === 'string') {
  17238. if (val.length === 0) return -1 // special case: looking for empty string always fails
  17239. return String.prototype.indexOf.call(this, val, byteOffset)
  17240. }
  17241. if (Buffer.isBuffer(val)) {
  17242. return arrayIndexOf(this, val, byteOffset)
  17243. }
  17244. if (typeof val === 'number') {
  17245. if (Buffer.TYPED_ARRAY_SUPPORT && Uint8Array.prototype.indexOf === 'function') {
  17246. return Uint8Array.prototype.indexOf.call(this, val, byteOffset)
  17247. }
  17248. return arrayIndexOf(this, [ val ], byteOffset)
  17249. }
  17250. function arrayIndexOf (arr, val, byteOffset) {
  17251. var foundIndex = -1
  17252. for (var i = 0; byteOffset + i < arr.length; i++) {
  17253. if (arr[byteOffset + i] === val[foundIndex === -1 ? 0 : i - foundIndex]) {
  17254. if (foundIndex === -1) foundIndex = i
  17255. if (i - foundIndex + 1 === val.length) return byteOffset + foundIndex
  17256. } else {
  17257. foundIndex = -1
  17258. }
  17259. }
  17260. return -1
  17261. }
  17262. throw new TypeError('val must be string, number or Buffer')
  17263. }
  17264. // `get` will be removed in Node 0.13+
  17265. Buffer.prototype.get = function get (offset) {
  17266. console.log('.get() is deprecated. Access using array indexes instead.')
  17267. return this.readUInt8(offset)
  17268. }
  17269. // `set` will be removed in Node 0.13+
  17270. Buffer.prototype.set = function set (v, offset) {
  17271. console.log('.set() is deprecated. Access using array indexes instead.')
  17272. return this.writeUInt8(v, offset)
  17273. }
  17274. function hexWrite (buf, string, offset, length) {
  17275. offset = Number(offset) || 0
  17276. var remaining = buf.length - offset
  17277. if (!length) {
  17278. length = remaining
  17279. } else {
  17280. length = Number(length)
  17281. if (length > remaining) {
  17282. length = remaining
  17283. }
  17284. }
  17285. // must be an even number of digits
  17286. var strLen = string.length
  17287. if (strLen % 2 !== 0) throw new Error('Invalid hex string')
  17288. if (length > strLen / 2) {
  17289. length = strLen / 2
  17290. }
  17291. for (var i = 0; i < length; i++) {
  17292. var parsed = parseInt(string.substr(i * 2, 2), 16)
  17293. if (isNaN(parsed)) throw new Error('Invalid hex string')
  17294. buf[offset + i] = parsed
  17295. }
  17296. return i
  17297. }
  17298. function utf8Write (buf, string, offset, length) {
  17299. return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)
  17300. }
  17301. function asciiWrite (buf, string, offset, length) {
  17302. return blitBuffer(asciiToBytes(string), buf, offset, length)
  17303. }
  17304. function binaryWrite (buf, string, offset, length) {
  17305. return asciiWrite(buf, string, offset, length)
  17306. }
  17307. function base64Write (buf, string, offset, length) {
  17308. return blitBuffer(base64ToBytes(string), buf, offset, length)
  17309. }
  17310. function ucs2Write (buf, string, offset, length) {
  17311. return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
  17312. }
  17313. Buffer.prototype.write = function write (string, offset, length, encoding) {
  17314. // Buffer#write(string)
  17315. if (offset === undefined) {
  17316. encoding = 'utf8'
  17317. length = this.length
  17318. offset = 0
  17319. // Buffer#write(string, encoding)
  17320. } else if (length === undefined && typeof offset === 'string') {
  17321. encoding = offset
  17322. length = this.length
  17323. offset = 0
  17324. // Buffer#write(string, offset[, length][, encoding])
  17325. } else if (isFinite(offset)) {
  17326. offset = offset | 0
  17327. if (isFinite(length)) {
  17328. length = length | 0
  17329. if (encoding === undefined) encoding = 'utf8'
  17330. } else {
  17331. encoding = length
  17332. length = undefined
  17333. }
  17334. // legacy write(string, encoding, offset, length) - remove in v0.13
  17335. } else {
  17336. var swap = encoding
  17337. encoding = offset
  17338. offset = length | 0
  17339. length = swap
  17340. }
  17341. var remaining = this.length - offset
  17342. if (length === undefined || length > remaining) length = remaining
  17343. if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {
  17344. throw new RangeError('attempt to write outside buffer bounds')
  17345. }
  17346. if (!encoding) encoding = 'utf8'
  17347. var loweredCase = false
  17348. for (;;) {
  17349. switch (encoding) {
  17350. case 'hex':
  17351. return hexWrite(this, string, offset, length)
  17352. case 'utf8':
  17353. case 'utf-8':
  17354. return utf8Write(this, string, offset, length)
  17355. case 'ascii':
  17356. return asciiWrite(this, string, offset, length)
  17357. case 'binary':
  17358. return binaryWrite(this, string, offset, length)
  17359. case 'base64':
  17360. // Warning: maxLength not taken into account in base64Write
  17361. return base64Write(this, string, offset, length)
  17362. case 'ucs2':
  17363. case 'ucs-2':
  17364. case 'utf16le':
  17365. case 'utf-16le':
  17366. return ucs2Write(this, string, offset, length)
  17367. default:
  17368. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  17369. encoding = ('' + encoding).toLowerCase()
  17370. loweredCase = true
  17371. }
  17372. }
  17373. }
  17374. Buffer.prototype.toJSON = function toJSON () {
  17375. return {
  17376. type: 'Buffer',
  17377. data: Array.prototype.slice.call(this._arr || this, 0)
  17378. }
  17379. }
  17380. function base64Slice (buf, start, end) {
  17381. if (start === 0 && end === buf.length) {
  17382. return base64.fromByteArray(buf)
  17383. } else {
  17384. return base64.fromByteArray(buf.slice(start, end))
  17385. }
  17386. }
  17387. function utf8Slice (buf, start, end) {
  17388. var res = ''
  17389. var tmp = ''
  17390. end = Math.min(buf.length, end)
  17391. for (var i = start; i < end; i++) {
  17392. if (buf[i] <= 0x7F) {
  17393. res += decodeUtf8Char(tmp) + String.fromCharCode(buf[i])
  17394. tmp = ''
  17395. } else {
  17396. tmp += '%' + buf[i].toString(16)
  17397. }
  17398. }
  17399. return res + decodeUtf8Char(tmp)
  17400. }
  17401. function asciiSlice (buf, start, end) {
  17402. var ret = ''
  17403. end = Math.min(buf.length, end)
  17404. for (var i = start; i < end; i++) {
  17405. ret += String.fromCharCode(buf[i] & 0x7F)
  17406. }
  17407. return ret
  17408. }
  17409. function binarySlice (buf, start, end) {
  17410. var ret = ''
  17411. end = Math.min(buf.length, end)
  17412. for (var i = start; i < end; i++) {
  17413. ret += String.fromCharCode(buf[i])
  17414. }
  17415. return ret
  17416. }
  17417. function hexSlice (buf, start, end) {
  17418. var len = buf.length
  17419. if (!start || start < 0) start = 0
  17420. if (!end || end < 0 || end > len) end = len
  17421. var out = ''
  17422. for (var i = start; i < end; i++) {
  17423. out += toHex(buf[i])
  17424. }
  17425. return out
  17426. }
  17427. function utf16leSlice (buf, start, end) {
  17428. var bytes = buf.slice(start, end)
  17429. var res = ''
  17430. for (var i = 0; i < bytes.length; i += 2) {
  17431. res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)
  17432. }
  17433. return res
  17434. }
  17435. Buffer.prototype.slice = function slice (start, end) {
  17436. var len = this.length
  17437. start = ~~start
  17438. end = end === undefined ? len : ~~end
  17439. if (start < 0) {
  17440. start += len
  17441. if (start < 0) start = 0
  17442. } else if (start > len) {
  17443. start = len
  17444. }
  17445. if (end < 0) {
  17446. end += len
  17447. if (end < 0) end = 0
  17448. } else if (end > len) {
  17449. end = len
  17450. }
  17451. if (end < start) end = start
  17452. var newBuf
  17453. if (Buffer.TYPED_ARRAY_SUPPORT) {
  17454. newBuf = Buffer._augment(this.subarray(start, end))
  17455. } else {
  17456. var sliceLen = end - start
  17457. newBuf = new Buffer(sliceLen, undefined)
  17458. for (var i = 0; i < sliceLen; i++) {
  17459. newBuf[i] = this[i + start]
  17460. }
  17461. }
  17462. if (newBuf.length) newBuf.parent = this.parent || this
  17463. return newBuf
  17464. }
  17465. /*
  17466. * Need to make sure that buffer isn't trying to write out of bounds.
  17467. */
  17468. function checkOffset (offset, ext, length) {
  17469. if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')
  17470. if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')
  17471. }
  17472. Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {
  17473. offset = offset | 0
  17474. byteLength = byteLength | 0
  17475. if (!noAssert) checkOffset(offset, byteLength, this.length)
  17476. var val = this[offset]
  17477. var mul = 1
  17478. var i = 0
  17479. while (++i < byteLength && (mul *= 0x100)) {
  17480. val += this[offset + i] * mul
  17481. }
  17482. return val
  17483. }
  17484. Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {
  17485. offset = offset | 0
  17486. byteLength = byteLength | 0
  17487. if (!noAssert) {
  17488. checkOffset(offset, byteLength, this.length)
  17489. }
  17490. var val = this[offset + --byteLength]
  17491. var mul = 1
  17492. while (byteLength > 0 && (mul *= 0x100)) {
  17493. val += this[offset + --byteLength] * mul
  17494. }
  17495. return val
  17496. }
  17497. Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {
  17498. if (!noAssert) checkOffset(offset, 1, this.length)
  17499. return this[offset]
  17500. }
  17501. Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {
  17502. if (!noAssert) checkOffset(offset, 2, this.length)
  17503. return this[offset] | (this[offset + 1] << 8)
  17504. }
  17505. Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {
  17506. if (!noAssert) checkOffset(offset, 2, this.length)
  17507. return (this[offset] << 8) | this[offset + 1]
  17508. }
  17509. Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
  17510. if (!noAssert) checkOffset(offset, 4, this.length)
  17511. return ((this[offset]) |
  17512. (this[offset + 1] << 8) |
  17513. (this[offset + 2] << 16)) +
  17514. (this[offset + 3] * 0x1000000)
  17515. }
  17516. Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
  17517. if (!noAssert) checkOffset(offset, 4, this.length)
  17518. return (this[offset] * 0x1000000) +
  17519. ((this[offset + 1] << 16) |
  17520. (this[offset + 2] << 8) |
  17521. this[offset + 3])
  17522. }
  17523. Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {
  17524. offset = offset | 0
  17525. byteLength = byteLength | 0
  17526. if (!noAssert) checkOffset(offset, byteLength, this.length)
  17527. var val = this[offset]
  17528. var mul = 1
  17529. var i = 0
  17530. while (++i < byteLength && (mul *= 0x100)) {
  17531. val += this[offset + i] * mul
  17532. }
  17533. mul *= 0x80
  17534. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  17535. return val
  17536. }
  17537. Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {
  17538. offset = offset | 0
  17539. byteLength = byteLength | 0
  17540. if (!noAssert) checkOffset(offset, byteLength, this.length)
  17541. var i = byteLength
  17542. var mul = 1
  17543. var val = this[offset + --i]
  17544. while (i > 0 && (mul *= 0x100)) {
  17545. val += this[offset + --i] * mul
  17546. }
  17547. mul *= 0x80
  17548. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  17549. return val
  17550. }
  17551. Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) {
  17552. if (!noAssert) checkOffset(offset, 1, this.length)
  17553. if (!(this[offset] & 0x80)) return (this[offset])
  17554. return ((0xff - this[offset] + 1) * -1)
  17555. }
  17556. Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {
  17557. if (!noAssert) checkOffset(offset, 2, this.length)
  17558. var val = this[offset] | (this[offset + 1] << 8)
  17559. return (val & 0x8000) ? val | 0xFFFF0000 : val
  17560. }
  17561. Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {
  17562. if (!noAssert) checkOffset(offset, 2, this.length)
  17563. var val = this[offset + 1] | (this[offset] << 8)
  17564. return (val & 0x8000) ? val | 0xFFFF0000 : val
  17565. }
  17566. Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
  17567. if (!noAssert) checkOffset(offset, 4, this.length)
  17568. return (this[offset]) |
  17569. (this[offset + 1] << 8) |
  17570. (this[offset + 2] << 16) |
  17571. (this[offset + 3] << 24)
  17572. }
  17573. Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
  17574. if (!noAssert) checkOffset(offset, 4, this.length)
  17575. return (this[offset] << 24) |
  17576. (this[offset + 1] << 16) |
  17577. (this[offset + 2] << 8) |
  17578. (this[offset + 3])
  17579. }
  17580. Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
  17581. if (!noAssert) checkOffset(offset, 4, this.length)
  17582. return ieee754.read(this, offset, true, 23, 4)
  17583. }
  17584. Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
  17585. if (!noAssert) checkOffset(offset, 4, this.length)
  17586. return ieee754.read(this, offset, false, 23, 4)
  17587. }
  17588. Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
  17589. if (!noAssert) checkOffset(offset, 8, this.length)
  17590. return ieee754.read(this, offset, true, 52, 8)
  17591. }
  17592. Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
  17593. if (!noAssert) checkOffset(offset, 8, this.length)
  17594. return ieee754.read(this, offset, false, 52, 8)
  17595. }
  17596. function checkInt (buf, value, offset, ext, max, min) {
  17597. if (!Buffer.isBuffer(buf)) throw new TypeError('buffer must be a Buffer instance')
  17598. if (value > max || value < min) throw new RangeError('value is out of bounds')
  17599. if (offset + ext > buf.length) throw new RangeError('index out of range')
  17600. }
  17601. Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
  17602. value = +value
  17603. offset = offset | 0
  17604. byteLength = byteLength | 0
  17605. if (!noAssert) checkInt(this, value, offset, byteLength, Math.pow(2, 8 * byteLength), 0)
  17606. var mul = 1
  17607. var i = 0
  17608. this[offset] = value & 0xFF
  17609. while (++i < byteLength && (mul *= 0x100)) {
  17610. this[offset + i] = (value / mul) & 0xFF
  17611. }
  17612. return offset + byteLength
  17613. }
  17614. Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {
  17615. value = +value
  17616. offset = offset | 0
  17617. byteLength = byteLength | 0
  17618. if (!noAssert) checkInt(this, value, offset, byteLength, Math.pow(2, 8 * byteLength), 0)
  17619. var i = byteLength - 1
  17620. var mul = 1
  17621. this[offset + i] = value & 0xFF
  17622. while (--i >= 0 && (mul *= 0x100)) {
  17623. this[offset + i] = (value / mul) & 0xFF
  17624. }
  17625. return offset + byteLength
  17626. }
  17627. Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {
  17628. value = +value
  17629. offset = offset | 0
  17630. if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)
  17631. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  17632. this[offset] = value
  17633. return offset + 1
  17634. }
  17635. function objectWriteUInt16 (buf, value, offset, littleEndian) {
  17636. if (value < 0) value = 0xffff + value + 1
  17637. for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; i++) {
  17638. buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>
  17639. (littleEndian ? i : 1 - i) * 8
  17640. }
  17641. }
  17642. Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
  17643. value = +value
  17644. offset = offset | 0
  17645. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  17646. if (Buffer.TYPED_ARRAY_SUPPORT) {
  17647. this[offset] = value
  17648. this[offset + 1] = (value >>> 8)
  17649. } else {
  17650. objectWriteUInt16(this, value, offset, true)
  17651. }
  17652. return offset + 2
  17653. }
  17654. Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
  17655. value = +value
  17656. offset = offset | 0
  17657. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  17658. if (Buffer.TYPED_ARRAY_SUPPORT) {
  17659. this[offset] = (value >>> 8)
  17660. this[offset + 1] = value
  17661. } else {
  17662. objectWriteUInt16(this, value, offset, false)
  17663. }
  17664. return offset + 2
  17665. }
  17666. function objectWriteUInt32 (buf, value, offset, littleEndian) {
  17667. if (value < 0) value = 0xffffffff + value + 1
  17668. for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; i++) {
  17669. buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff
  17670. }
  17671. }
  17672. Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
  17673. value = +value
  17674. offset = offset | 0
  17675. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  17676. if (Buffer.TYPED_ARRAY_SUPPORT) {
  17677. this[offset + 3] = (value >>> 24)
  17678. this[offset + 2] = (value >>> 16)
  17679. this[offset + 1] = (value >>> 8)
  17680. this[offset] = value
  17681. } else {
  17682. objectWriteUInt32(this, value, offset, true)
  17683. }
  17684. return offset + 4
  17685. }
  17686. Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {
  17687. value = +value
  17688. offset = offset | 0
  17689. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  17690. if (Buffer.TYPED_ARRAY_SUPPORT) {
  17691. this[offset] = (value >>> 24)
  17692. this[offset + 1] = (value >>> 16)
  17693. this[offset + 2] = (value >>> 8)
  17694. this[offset + 3] = value
  17695. } else {
  17696. objectWriteUInt32(this, value, offset, false)
  17697. }
  17698. return offset + 4
  17699. }
  17700. Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {
  17701. value = +value
  17702. offset = offset | 0
  17703. if (!noAssert) {
  17704. var limit = Math.pow(2, 8 * byteLength - 1)
  17705. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  17706. }
  17707. var i = 0
  17708. var mul = 1
  17709. var sub = value < 0 ? 1 : 0
  17710. this[offset] = value & 0xFF
  17711. while (++i < byteLength && (mul *= 0x100)) {
  17712. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  17713. }
  17714. return offset + byteLength
  17715. }
  17716. Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {
  17717. value = +value
  17718. offset = offset | 0
  17719. if (!noAssert) {
  17720. var limit = Math.pow(2, 8 * byteLength - 1)
  17721. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  17722. }
  17723. var i = byteLength - 1
  17724. var mul = 1
  17725. var sub = value < 0 ? 1 : 0
  17726. this[offset + i] = value & 0xFF
  17727. while (--i >= 0 && (mul *= 0x100)) {
  17728. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  17729. }
  17730. return offset + byteLength
  17731. }
  17732. Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {
  17733. value = +value
  17734. offset = offset | 0
  17735. if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)
  17736. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  17737. if (value < 0) value = 0xff + value + 1
  17738. this[offset] = value
  17739. return offset + 1
  17740. }
  17741. Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {
  17742. value = +value
  17743. offset = offset | 0
  17744. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  17745. if (Buffer.TYPED_ARRAY_SUPPORT) {
  17746. this[offset] = value
  17747. this[offset + 1] = (value >>> 8)
  17748. } else {
  17749. objectWriteUInt16(this, value, offset, true)
  17750. }
  17751. return offset + 2
  17752. }
  17753. Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {
  17754. value = +value
  17755. offset = offset | 0
  17756. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  17757. if (Buffer.TYPED_ARRAY_SUPPORT) {
  17758. this[offset] = (value >>> 8)
  17759. this[offset + 1] = value
  17760. } else {
  17761. objectWriteUInt16(this, value, offset, false)
  17762. }
  17763. return offset + 2
  17764. }
  17765. Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {
  17766. value = +value
  17767. offset = offset | 0
  17768. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  17769. if (Buffer.TYPED_ARRAY_SUPPORT) {
  17770. this[offset] = value
  17771. this[offset + 1] = (value >>> 8)
  17772. this[offset + 2] = (value >>> 16)
  17773. this[offset + 3] = (value >>> 24)
  17774. } else {
  17775. objectWriteUInt32(this, value, offset, true)
  17776. }
  17777. return offset + 4
  17778. }
  17779. Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {
  17780. value = +value
  17781. offset = offset | 0
  17782. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  17783. if (value < 0) value = 0xffffffff + value + 1
  17784. if (Buffer.TYPED_ARRAY_SUPPORT) {
  17785. this[offset] = (value >>> 24)
  17786. this[offset + 1] = (value >>> 16)
  17787. this[offset + 2] = (value >>> 8)
  17788. this[offset + 3] = value
  17789. } else {
  17790. objectWriteUInt32(this, value, offset, false)
  17791. }
  17792. return offset + 4
  17793. }
  17794. function checkIEEE754 (buf, value, offset, ext, max, min) {
  17795. if (value > max || value < min) throw new RangeError('value is out of bounds')
  17796. if (offset + ext > buf.length) throw new RangeError('index out of range')
  17797. if (offset < 0) throw new RangeError('index out of range')
  17798. }
  17799. function writeFloat (buf, value, offset, littleEndian, noAssert) {
  17800. if (!noAssert) {
  17801. checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)
  17802. }
  17803. ieee754.write(buf, value, offset, littleEndian, 23, 4)
  17804. return offset + 4
  17805. }
  17806. Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
  17807. return writeFloat(this, value, offset, true, noAssert)
  17808. }
  17809. Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {
  17810. return writeFloat(this, value, offset, false, noAssert)
  17811. }
  17812. function writeDouble (buf, value, offset, littleEndian, noAssert) {
  17813. if (!noAssert) {
  17814. checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)
  17815. }
  17816. ieee754.write(buf, value, offset, littleEndian, 52, 8)
  17817. return offset + 8
  17818. }
  17819. Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {
  17820. return writeDouble(this, value, offset, true, noAssert)
  17821. }
  17822. Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {
  17823. return writeDouble(this, value, offset, false, noAssert)
  17824. }
  17825. // copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
  17826. Buffer.prototype.copy = function copy (target, targetStart, start, end) {
  17827. if (!start) start = 0
  17828. if (!end && end !== 0) end = this.length
  17829. if (targetStart >= target.length) targetStart = target.length
  17830. if (!targetStart) targetStart = 0
  17831. if (end > 0 && end < start) end = start
  17832. // Copy 0 bytes; we're done
  17833. if (end === start) return 0
  17834. if (target.length === 0 || this.length === 0) return 0
  17835. // Fatal error conditions
  17836. if (targetStart < 0) {
  17837. throw new RangeError('targetStart out of bounds')
  17838. }
  17839. if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')
  17840. if (end < 0) throw new RangeError('sourceEnd out of bounds')
  17841. // Are we oob?
  17842. if (end > this.length) end = this.length
  17843. if (target.length - targetStart < end - start) {
  17844. end = target.length - targetStart + start
  17845. }
  17846. var len = end - start
  17847. if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {
  17848. for (var i = 0; i < len; i++) {
  17849. target[i + targetStart] = this[i + start]
  17850. }
  17851. } else {
  17852. target._set(this.subarray(start, start + len), targetStart)
  17853. }
  17854. return len
  17855. }
  17856. // fill(value, start=0, end=buffer.length)
  17857. Buffer.prototype.fill = function fill (value, start, end) {
  17858. if (!value) value = 0
  17859. if (!start) start = 0
  17860. if (!end) end = this.length
  17861. if (end < start) throw new RangeError('end < start')
  17862. // Fill 0 bytes; we're done
  17863. if (end === start) return
  17864. if (this.length === 0) return
  17865. if (start < 0 || start >= this.length) throw new RangeError('start out of bounds')
  17866. if (end < 0 || end > this.length) throw new RangeError('end out of bounds')
  17867. var i
  17868. if (typeof value === 'number') {
  17869. for (i = start; i < end; i++) {
  17870. this[i] = value
  17871. }
  17872. } else {
  17873. var bytes = utf8ToBytes(value.toString())
  17874. var len = bytes.length
  17875. for (i = start; i < end; i++) {
  17876. this[i] = bytes[i % len]
  17877. }
  17878. }
  17879. return this
  17880. }
  17881. /**
  17882. * Creates a new `ArrayBuffer` with the *copied* memory of the buffer instance.
  17883. * Added in Node 0.12. Only available in browsers that support ArrayBuffer.
  17884. */
  17885. Buffer.prototype.toArrayBuffer = function toArrayBuffer () {
  17886. if (typeof Uint8Array !== 'undefined') {
  17887. if (Buffer.TYPED_ARRAY_SUPPORT) {
  17888. return (new Buffer(this)).buffer
  17889. } else {
  17890. var buf = new Uint8Array(this.length)
  17891. for (var i = 0, len = buf.length; i < len; i += 1) {
  17892. buf[i] = this[i]
  17893. }
  17894. return buf.buffer
  17895. }
  17896. } else {
  17897. throw new TypeError('Buffer.toArrayBuffer not supported in this browser')
  17898. }
  17899. }
  17900. // HELPER FUNCTIONS
  17901. // ================
  17902. var BP = Buffer.prototype
  17903. /**
  17904. * Augment a Uint8Array *instance* (not the Uint8Array class!) with Buffer methods
  17905. */
  17906. Buffer._augment = function _augment (arr) {
  17907. arr.constructor = Buffer
  17908. arr._isBuffer = true
  17909. // save reference to original Uint8Array set method before overwriting
  17910. arr._set = arr.set
  17911. // deprecated, will be removed in node 0.13+
  17912. arr.get = BP.get
  17913. arr.set = BP.set
  17914. arr.write = BP.write
  17915. arr.toString = BP.toString
  17916. arr.toLocaleString = BP.toString
  17917. arr.toJSON = BP.toJSON
  17918. arr.equals = BP.equals
  17919. arr.compare = BP.compare
  17920. arr.indexOf = BP.indexOf
  17921. arr.copy = BP.copy
  17922. arr.slice = BP.slice
  17923. arr.readUIntLE = BP.readUIntLE
  17924. arr.readUIntBE = BP.readUIntBE
  17925. arr.readUInt8 = BP.readUInt8
  17926. arr.readUInt16LE = BP.readUInt16LE
  17927. arr.readUInt16BE = BP.readUInt16BE
  17928. arr.readUInt32LE = BP.readUInt32LE
  17929. arr.readUInt32BE = BP.readUInt32BE
  17930. arr.readIntLE = BP.readIntLE
  17931. arr.readIntBE = BP.readIntBE
  17932. arr.readInt8 = BP.readInt8
  17933. arr.readInt16LE = BP.readInt16LE
  17934. arr.readInt16BE = BP.readInt16BE
  17935. arr.readInt32LE = BP.readInt32LE
  17936. arr.readInt32BE = BP.readInt32BE
  17937. arr.readFloatLE = BP.readFloatLE
  17938. arr.readFloatBE = BP.readFloatBE
  17939. arr.readDoubleLE = BP.readDoubleLE
  17940. arr.readDoubleBE = BP.readDoubleBE
  17941. arr.writeUInt8 = BP.writeUInt8
  17942. arr.writeUIntLE = BP.writeUIntLE
  17943. arr.writeUIntBE = BP.writeUIntBE
  17944. arr.writeUInt16LE = BP.writeUInt16LE
  17945. arr.writeUInt16BE = BP.writeUInt16BE
  17946. arr.writeUInt32LE = BP.writeUInt32LE
  17947. arr.writeUInt32BE = BP.writeUInt32BE
  17948. arr.writeIntLE = BP.writeIntLE
  17949. arr.writeIntBE = BP.writeIntBE
  17950. arr.writeInt8 = BP.writeInt8
  17951. arr.writeInt16LE = BP.writeInt16LE
  17952. arr.writeInt16BE = BP.writeInt16BE
  17953. arr.writeInt32LE = BP.writeInt32LE
  17954. arr.writeInt32BE = BP.writeInt32BE
  17955. arr.writeFloatLE = BP.writeFloatLE
  17956. arr.writeFloatBE = BP.writeFloatBE
  17957. arr.writeDoubleLE = BP.writeDoubleLE
  17958. arr.writeDoubleBE = BP.writeDoubleBE
  17959. arr.fill = BP.fill
  17960. arr.inspect = BP.inspect
  17961. arr.toArrayBuffer = BP.toArrayBuffer
  17962. return arr
  17963. }
  17964. var INVALID_BASE64_RE = /[^+\/0-9A-z\-]/g
  17965. function base64clean (str) {
  17966. // Node strips out invalid characters like \n and \t from the string, base64-js does not
  17967. str = stringtrim(str).replace(INVALID_BASE64_RE, '')
  17968. // Node converts strings with length < 2 to ''
  17969. if (str.length < 2) return ''
  17970. // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
  17971. while (str.length % 4 !== 0) {
  17972. str = str + '='
  17973. }
  17974. return str
  17975. }
  17976. function stringtrim (str) {
  17977. if (str.trim) return str.trim()
  17978. return str.replace(/^\s+|\s+$/g, '')
  17979. }
  17980. function toHex (n) {
  17981. if (n < 16) return '0' + n.toString(16)
  17982. return n.toString(16)
  17983. }
  17984. function utf8ToBytes (string, units) {
  17985. units = units || Infinity
  17986. var codePoint
  17987. var length = string.length
  17988. var leadSurrogate = null
  17989. var bytes = []
  17990. var i = 0
  17991. for (; i < length; i++) {
  17992. codePoint = string.charCodeAt(i)
  17993. // is surrogate component
  17994. if (codePoint > 0xD7FF && codePoint < 0xE000) {
  17995. // last char was a lead
  17996. if (leadSurrogate) {
  17997. // 2 leads in a row
  17998. if (codePoint < 0xDC00) {
  17999. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  18000. leadSurrogate = codePoint
  18001. continue
  18002. } else {
  18003. // valid surrogate pair
  18004. codePoint = leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00 | 0x10000
  18005. leadSurrogate = null
  18006. }
  18007. } else {
  18008. // no lead yet
  18009. if (codePoint > 0xDBFF) {
  18010. // unexpected trail
  18011. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  18012. continue
  18013. } else if (i + 1 === length) {
  18014. // unpaired lead
  18015. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  18016. continue
  18017. } else {
  18018. // valid lead
  18019. leadSurrogate = codePoint
  18020. continue
  18021. }
  18022. }
  18023. } else if (leadSurrogate) {
  18024. // valid bmp char, but last char was a lead
  18025. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  18026. leadSurrogate = null
  18027. }
  18028. // encode utf8
  18029. if (codePoint < 0x80) {
  18030. if ((units -= 1) < 0) break
  18031. bytes.push(codePoint)
  18032. } else if (codePoint < 0x800) {
  18033. if ((units -= 2) < 0) break
  18034. bytes.push(
  18035. codePoint >> 0x6 | 0xC0,
  18036. codePoint & 0x3F | 0x80
  18037. )
  18038. } else if (codePoint < 0x10000) {
  18039. if ((units -= 3) < 0) break
  18040. bytes.push(
  18041. codePoint >> 0xC | 0xE0,
  18042. codePoint >> 0x6 & 0x3F | 0x80,
  18043. codePoint & 0x3F | 0x80
  18044. )
  18045. } else if (codePoint < 0x200000) {
  18046. if ((units -= 4) < 0) break
  18047. bytes.push(
  18048. codePoint >> 0x12 | 0xF0,
  18049. codePoint >> 0xC & 0x3F | 0x80,
  18050. codePoint >> 0x6 & 0x3F | 0x80,
  18051. codePoint & 0x3F | 0x80
  18052. )
  18053. } else {
  18054. throw new Error('Invalid code point')
  18055. }
  18056. }
  18057. return bytes
  18058. }
  18059. function asciiToBytes (str) {
  18060. var byteArray = []
  18061. for (var i = 0; i < str.length; i++) {
  18062. // Node's code seems to be doing this and not & 0x7F..
  18063. byteArray.push(str.charCodeAt(i) & 0xFF)
  18064. }
  18065. return byteArray
  18066. }
  18067. function utf16leToBytes (str, units) {
  18068. var c, hi, lo
  18069. var byteArray = []
  18070. for (var i = 0; i < str.length; i++) {
  18071. if ((units -= 2) < 0) break
  18072. c = str.charCodeAt(i)
  18073. hi = c >> 8
  18074. lo = c % 256
  18075. byteArray.push(lo)
  18076. byteArray.push(hi)
  18077. }
  18078. return byteArray
  18079. }
  18080. function base64ToBytes (str) {
  18081. return base64.toByteArray(base64clean(str))
  18082. }
  18083. function blitBuffer (src, dst, offset, length) {
  18084. for (var i = 0; i < length; i++) {
  18085. if ((i + offset >= dst.length) || (i >= src.length)) break
  18086. dst[i + offset] = src[i]
  18087. }
  18088. return i
  18089. }
  18090. function decodeUtf8Char (str) {
  18091. try {
  18092. return decodeURIComponent(str)
  18093. } catch (err) {
  18094. return String.fromCharCode(0xFFFD) // UTF 8 invalid char
  18095. }
  18096. }
  18097. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4).Buffer))
  18098. /***/ },
  18099. /* 5 */
  18100. /***/ function(module, exports, __webpack_require__) {
  18101. /* jslint node: true */
  18102. 'use strict';
  18103. var _ = __webpack_require__(11);
  18104. var FontWrapper = __webpack_require__(16);
  18105. function typeName(bold, italics){
  18106. var type = 'normal';
  18107. if (bold && italics) type = 'bolditalics';
  18108. else if (bold) type = 'bold';
  18109. else if (italics) type = 'italics';
  18110. return type;
  18111. }
  18112. function FontProvider(fontDescriptors, pdfDoc) {
  18113. this.fonts = {};
  18114. this.pdfDoc = pdfDoc;
  18115. this.fontWrappers = {};
  18116. for(var font in fontDescriptors) {
  18117. if (fontDescriptors.hasOwnProperty(font)) {
  18118. var fontDef = fontDescriptors[font];
  18119. this.fonts[font] = {
  18120. normal: fontDef.normal,
  18121. bold: fontDef.bold,
  18122. italics: fontDef.italics,
  18123. bolditalics: fontDef.bolditalics
  18124. };
  18125. }
  18126. }
  18127. }
  18128. FontProvider.prototype.provideFont = function(familyName, bold, italics) {
  18129. if (!this.fonts[familyName]) return this.pdfDoc._font;
  18130. var type = typeName(bold, italics);
  18131. this.fontWrappers[familyName] = this.fontWrappers[familyName] || {};
  18132. if (!this.fontWrappers[familyName][type]) {
  18133. this.fontWrappers[familyName][type] = new FontWrapper(this.pdfDoc, this.fonts[familyName][type], familyName + '(' + type + ')');
  18134. }
  18135. return this.fontWrappers[familyName][type];
  18136. };
  18137. FontProvider.prototype.setFontRefsToPdfDoc = function(){
  18138. var self = this;
  18139. _.each(self.fontWrappers, function(fontFamily) {
  18140. _.each(fontFamily, function(fontWrapper){
  18141. _.each(fontWrapper.pdfFonts, function(font){
  18142. if (!self.pdfDoc.page.fonts[font.id]) {
  18143. self.pdfDoc.page.fonts[font.id] = font.ref();
  18144. }
  18145. });
  18146. });
  18147. });
  18148. };
  18149. module.exports = FontProvider;
  18150. /***/ },
  18151. /* 6 */
  18152. /***/ function(module, exports, __webpack_require__) {
  18153. /* jslint node: true */
  18154. 'use strict';
  18155. var _ = __webpack_require__(11);
  18156. var TraversalTracker = __webpack_require__(18);
  18157. var DocMeasure = __webpack_require__(19);
  18158. var DocumentContext = __webpack_require__(20);
  18159. var PageElementWriter = __webpack_require__(21);
  18160. var ColumnCalculator = __webpack_require__(22);
  18161. var TableProcessor = __webpack_require__(23);
  18162. var Line = __webpack_require__(24);
  18163. var pack = __webpack_require__(25).pack;
  18164. var offsetVector = __webpack_require__(25).offsetVector;
  18165. var fontStringify = __webpack_require__(25).fontStringify;
  18166. var isFunction = __webpack_require__(25).isFunction;
  18167. var TextTools = __webpack_require__(26);
  18168. var StyleContextStack = __webpack_require__(27);
  18169. function addAll(target, otherArray){
  18170. _.each(otherArray, function(item){
  18171. target.push(item);
  18172. });
  18173. }
  18174. /**
  18175. * Creates an instance of LayoutBuilder - layout engine which turns document-definition-object
  18176. * into a set of pages, lines, inlines and vectors ready to be rendered into a PDF
  18177. *
  18178. * @param {Object} pageSize - an object defining page width and height
  18179. * @param {Object} pageMargins - an object defining top, left, right and bottom margins
  18180. */
  18181. function LayoutBuilder(pageSize, pageMargins, imageMeasure) {
  18182. this.pageSize = pageSize;
  18183. this.pageMargins = pageMargins;
  18184. this.tracker = new TraversalTracker();
  18185. this.imageMeasure = imageMeasure;
  18186. this.tableLayouts = {};
  18187. }
  18188. LayoutBuilder.prototype.registerTableLayouts = function (tableLayouts) {
  18189. this.tableLayouts = pack(this.tableLayouts, tableLayouts);
  18190. };
  18191. /**
  18192. * Executes layout engine on document-definition-object and creates an array of pages
  18193. * containing positioned Blocks, Lines and inlines
  18194. *
  18195. * @param {Object} docStructure document-definition-object
  18196. * @param {Object} fontProvider font provider
  18197. * @param {Object} styleDictionary dictionary with style definitions
  18198. * @param {Object} defaultStyle default style definition
  18199. * @return {Array} an array of pages
  18200. */
  18201. LayoutBuilder.prototype.layoutDocument = function (docStructure, fontProvider, styleDictionary, defaultStyle, background, header, footer, images, watermark, pageBreakBeforeFct) {
  18202. function addPageBreaksIfNecessary(linearNodeList, pages) {
  18203. linearNodeList = _.reject(linearNodeList, function(node){
  18204. return _.isEmpty(node.positions);
  18205. });
  18206. _.each(linearNodeList, function(node) {
  18207. var nodeInfo = _.pick(node, [
  18208. 'id', 'text', 'ul', 'ol', 'table', 'image', 'qr', 'canvas', 'columns',
  18209. 'headlineLevel', 'style', 'pageBreak', 'pageOrientation',
  18210. 'width', 'height'
  18211. ]);
  18212. nodeInfo.startPosition = _.first(node.positions);
  18213. nodeInfo.pageNumbers = _.chain(node.positions).map('pageNumber').uniq().value();
  18214. nodeInfo.pages = pages.length;
  18215. nodeInfo.stack = _.isArray(node.stack);
  18216. node.nodeInfo = nodeInfo;
  18217. });
  18218. return _.any(linearNodeList, function (node, index, followingNodeList) {
  18219. if (node.pageBreak !== 'before' && !node.pageBreakCalculated) {
  18220. node.pageBreakCalculated = true;
  18221. var pageNumber = _.first(node.nodeInfo.pageNumbers);
  18222. var followingNodesOnPage = _.chain(followingNodeList).drop(index + 1).filter(function (node0) {
  18223. return _.contains(node0.nodeInfo.pageNumbers, pageNumber);
  18224. }).value();
  18225. var nodesOnNextPage = _.chain(followingNodeList).drop(index + 1).filter(function (node0) {
  18226. return _.contains(node0.nodeInfo.pageNumbers, pageNumber + 1);
  18227. }).value();
  18228. var previousNodesOnPage = _.chain(followingNodeList).take(index).filter(function (node0) {
  18229. return _.contains(node0.nodeInfo.pageNumbers, pageNumber);
  18230. }).value();
  18231. if (pageBreakBeforeFct(node.nodeInfo,
  18232. _.map(followingNodesOnPage, 'nodeInfo'),
  18233. _.map(nodesOnNextPage, 'nodeInfo'),
  18234. _.map(previousNodesOnPage, 'nodeInfo'))) {
  18235. node.pageBreak = 'before';
  18236. return true;
  18237. }
  18238. }
  18239. });
  18240. }
  18241. if(!isFunction(pageBreakBeforeFct)){
  18242. pageBreakBeforeFct = function(){
  18243. return false;
  18244. };
  18245. }
  18246. this.docMeasure = new DocMeasure(fontProvider, styleDictionary, defaultStyle, this.imageMeasure, this.tableLayouts, images);
  18247. function resetXYs(result) {
  18248. _.each(result.linearNodeList, function (node) {
  18249. node.resetXY();
  18250. });
  18251. }
  18252. var result = this.tryLayoutDocument(docStructure, fontProvider, styleDictionary, defaultStyle, background, header, footer, images, watermark);
  18253. while(addPageBreaksIfNecessary(result.linearNodeList, result.pages)){
  18254. resetXYs(result);
  18255. result = this.tryLayoutDocument(docStructure, fontProvider, styleDictionary, defaultStyle, background, header, footer, images, watermark);
  18256. }
  18257. return result.pages;
  18258. };
  18259. LayoutBuilder.prototype.tryLayoutDocument = function (docStructure, fontProvider, styleDictionary, defaultStyle, background, header, footer, images, watermark, pageBreakBeforeFct) {
  18260. this.linearNodeList = [];
  18261. docStructure = this.docMeasure.measureDocument(docStructure);
  18262. this.writer = new PageElementWriter(
  18263. new DocumentContext(this.pageSize, this.pageMargins), this.tracker);
  18264. var _this = this;
  18265. this.writer.context().tracker.startTracking('pageAdded', function() {
  18266. _this.addBackground(background);
  18267. });
  18268. this.addBackground(background);
  18269. this.processNode(docStructure);
  18270. this.addHeadersAndFooters(header, footer);
  18271. /* jshint eqnull:true */
  18272. if(watermark != null)
  18273. this.addWatermark(watermark, fontProvider);
  18274. return {pages: this.writer.context().pages, linearNodeList: this.linearNodeList};
  18275. };
  18276. LayoutBuilder.prototype.addBackground = function(background) {
  18277. var backgroundGetter = isFunction(background) ? background : function() { return background; };
  18278. var pageBackground = backgroundGetter(this.writer.context().page + 1);
  18279. if (pageBackground) {
  18280. var pageSize = this.writer.context().getCurrentPage().pageSize;
  18281. this.writer.beginUnbreakableBlock(pageSize.width, pageSize.height);
  18282. this.processNode(this.docMeasure.measureDocument(pageBackground));
  18283. this.writer.commitUnbreakableBlock(0, 0);
  18284. }
  18285. };
  18286. LayoutBuilder.prototype.addStaticRepeatable = function(headerOrFooter, sizeFunction) {
  18287. this.addDynamicRepeatable(function() { return headerOrFooter; }, sizeFunction);
  18288. };
  18289. LayoutBuilder.prototype.addDynamicRepeatable = function(nodeGetter, sizeFunction) {
  18290. var pages = this.writer.context().pages;
  18291. for(var pageIndex = 0, l = pages.length; pageIndex < l; pageIndex++) {
  18292. this.writer.context().page = pageIndex;
  18293. var node = nodeGetter(pageIndex + 1, l);
  18294. if (node) {
  18295. var sizes = sizeFunction(this.writer.context().getCurrentPage().pageSize, this.pageMargins);
  18296. this.writer.beginUnbreakableBlock(sizes.width, sizes.height);
  18297. this.processNode(this.docMeasure.measureDocument(node));
  18298. this.writer.commitUnbreakableBlock(sizes.x, sizes.y);
  18299. }
  18300. }
  18301. };
  18302. LayoutBuilder.prototype.addHeadersAndFooters = function(header, footer) {
  18303. var headerSizeFct = function(pageSize, pageMargins){
  18304. return {
  18305. x: 0,
  18306. y: 0,
  18307. width: pageSize.width,
  18308. height: pageMargins.top
  18309. };
  18310. };
  18311. var footerSizeFct = function (pageSize, pageMargins) {
  18312. return {
  18313. x: 0,
  18314. y: pageSize.height - pageMargins.bottom,
  18315. width: pageSize.width,
  18316. height: pageMargins.bottom
  18317. };
  18318. };
  18319. if(isFunction(header)) {
  18320. this.addDynamicRepeatable(header, headerSizeFct);
  18321. } else if(header) {
  18322. this.addStaticRepeatable(header, headerSizeFct);
  18323. }
  18324. if(isFunction(footer)) {
  18325. this.addDynamicRepeatable(footer, footerSizeFct);
  18326. } else if(footer) {
  18327. this.addStaticRepeatable(footer, footerSizeFct);
  18328. }
  18329. };
  18330. LayoutBuilder.prototype.addWatermark = function(watermark, fontProvider){
  18331. var defaultFont = Object.getOwnPropertyNames(fontProvider.fonts)[0]; // TODO allow selection of other font
  18332. var watermarkObject = {
  18333. text: watermark,
  18334. font: fontProvider.provideFont(fontProvider[defaultFont], false, false),
  18335. size: getSize(this.pageSize, watermark, fontProvider)
  18336. };
  18337. var pages = this.writer.context().pages;
  18338. for(var i = 0, l = pages.length; i < l; i++) {
  18339. pages[i].watermark = watermarkObject;
  18340. }
  18341. function getSize(pageSize, watermark, fontProvider){
  18342. var width = pageSize.width;
  18343. var height = pageSize.height;
  18344. var targetWidth = Math.sqrt(width*width + height*height)*0.8; /* page diagnoal * sample factor */
  18345. var textTools = new TextTools(fontProvider);
  18346. var styleContextStack = new StyleContextStack();
  18347. var size;
  18348. /**
  18349. * Binary search the best font size.
  18350. * Initial bounds [0, 1000]
  18351. * Break when range < 1
  18352. */
  18353. var a = 0;
  18354. var b = 1000;
  18355. var c = (a+b)/2;
  18356. while(Math.abs(a - b) > 1){
  18357. styleContextStack.push({
  18358. fontSize: c
  18359. });
  18360. size = textTools.sizeOfString(watermark, styleContextStack);
  18361. if(size.width > targetWidth){
  18362. b = c;
  18363. c = (a+b)/2;
  18364. }
  18365. else if(size.width < targetWidth){
  18366. a = c;
  18367. c = (a+b)/2;
  18368. }
  18369. styleContextStack.pop();
  18370. }
  18371. /*
  18372. End binary search
  18373. */
  18374. return {size: size, fontSize: c};
  18375. }
  18376. };
  18377. function decorateNode(node){
  18378. var x = node.x, y = node.y;
  18379. node.positions = [];
  18380. _.each(node.canvas, function(vector){
  18381. var x = vector.x, y = vector.y;
  18382. vector.resetXY = function(){
  18383. vector.x = x;
  18384. vector.y = y;
  18385. };
  18386. });
  18387. node.resetXY = function(){
  18388. node.x = x;
  18389. node.y = y;
  18390. _.each(node.canvas, function(vector){
  18391. vector.resetXY();
  18392. });
  18393. };
  18394. }
  18395. LayoutBuilder.prototype.processNode = function(node) {
  18396. var self = this;
  18397. this.linearNodeList.push(node);
  18398. decorateNode(node);
  18399. applyMargins(function() {
  18400. var absPosition = node.absolutePosition;
  18401. if(absPosition){
  18402. self.writer.context().beginDetachedBlock();
  18403. self.writer.context().moveTo(absPosition.x || 0, absPosition.y || 0);
  18404. }
  18405. if (node.stack) {
  18406. self.processVerticalContainer(node);
  18407. } else if (node.columns) {
  18408. self.processColumns(node);
  18409. } else if (node.ul) {
  18410. self.processList(false, node);
  18411. } else if (node.ol) {
  18412. self.processList(true, node);
  18413. } else if (node.table) {
  18414. self.processTable(node);
  18415. } else if (node.text !== undefined) {
  18416. self.processLeaf(node);
  18417. } else if (node.image) {
  18418. self.processImage(node);
  18419. } else if (node.canvas) {
  18420. self.processCanvas(node);
  18421. } else if (node.qr) {
  18422. self.processQr(node);
  18423. }else if (!node._span) {
  18424. throw 'Unrecognized document structure: ' + JSON.stringify(node, fontStringify);
  18425. }
  18426. if(absPosition){
  18427. self.writer.context().endDetachedBlock();
  18428. }
  18429. });
  18430. function applyMargins(callback) {
  18431. var margin = node._margin;
  18432. if (node.pageBreak === 'before') {
  18433. self.writer.moveToNextPage(node.pageOrientation);
  18434. }
  18435. if (margin) {
  18436. self.writer.context().moveDown(margin[1]);
  18437. self.writer.context().addMargin(margin[0], margin[2]);
  18438. }
  18439. callback();
  18440. if(margin) {
  18441. self.writer.context().addMargin(-margin[0], -margin[2]);
  18442. self.writer.context().moveDown(margin[3]);
  18443. }
  18444. if (node.pageBreak === 'after') {
  18445. self.writer.moveToNextPage(node.pageOrientation);
  18446. }
  18447. }
  18448. };
  18449. // vertical container
  18450. LayoutBuilder.prototype.processVerticalContainer = function(node) {
  18451. var self = this;
  18452. node.stack.forEach(function(item) {
  18453. self.processNode(item);
  18454. addAll(node.positions, item.positions);
  18455. //TODO: paragraph gap
  18456. });
  18457. };
  18458. // columns
  18459. LayoutBuilder.prototype.processColumns = function(columnNode) {
  18460. var columns = columnNode.columns;
  18461. var availableWidth = this.writer.context().availableWidth;
  18462. var gaps = gapArray(columnNode._gap);
  18463. if (gaps) availableWidth -= (gaps.length - 1) * columnNode._gap;
  18464. ColumnCalculator.buildColumnWidths(columns, availableWidth);
  18465. var result = this.processRow(columns, columns, gaps);
  18466. addAll(columnNode.positions, result.positions);
  18467. function gapArray(gap) {
  18468. if (!gap) return null;
  18469. var gaps = [];
  18470. gaps.push(0);
  18471. for(var i = columns.length - 1; i > 0; i--) {
  18472. gaps.push(gap);
  18473. }
  18474. return gaps;
  18475. }
  18476. };
  18477. LayoutBuilder.prototype.processRow = function(columns, widths, gaps, tableBody, tableRow) {
  18478. var self = this;
  18479. var pageBreaks = [], positions = [];
  18480. this.tracker.auto('pageChanged', storePageBreakData, function() {
  18481. widths = widths || columns;
  18482. self.writer.context().beginColumnGroup();
  18483. for(var i = 0, l = columns.length; i < l; i++) {
  18484. var column = columns[i];
  18485. var width = widths[i]._calcWidth;
  18486. var leftOffset = colLeftOffset(i);
  18487. if (column.colSpan && column.colSpan > 1) {
  18488. for(var j = 1; j < column.colSpan; j++) {
  18489. width += widths[++i]._calcWidth + gaps[i];
  18490. }
  18491. }
  18492. self.writer.context().beginColumn(width, leftOffset, getEndingCell(column, i));
  18493. if (!column._span) {
  18494. self.processNode(column);
  18495. addAll(positions, column.positions);
  18496. } else if (column._columnEndingContext) {
  18497. // row-span ending
  18498. self.writer.context().markEnding(column);
  18499. }
  18500. }
  18501. self.writer.context().completeColumnGroup();
  18502. });
  18503. return {pageBreaks: pageBreaks, positions: positions};
  18504. function storePageBreakData(data) {
  18505. var pageDesc;
  18506. for(var i = 0, l = pageBreaks.length; i < l; i++) {
  18507. var desc = pageBreaks[i];
  18508. if (desc.prevPage === data.prevPage) {
  18509. pageDesc = desc;
  18510. break;
  18511. }
  18512. }
  18513. if (!pageDesc) {
  18514. pageDesc = data;
  18515. pageBreaks.push(pageDesc);
  18516. }
  18517. pageDesc.prevY = Math.max(pageDesc.prevY, data.prevY);
  18518. pageDesc.y = Math.min(pageDesc.y, data.y);
  18519. }
  18520. function colLeftOffset(i) {
  18521. if (gaps && gaps.length > i) return gaps[i];
  18522. return 0;
  18523. }
  18524. function getEndingCell(column, columnIndex) {
  18525. if (column.rowSpan && column.rowSpan > 1) {
  18526. var endingRow = tableRow + column.rowSpan - 1;
  18527. if (endingRow >= tableBody.length) throw 'Row span for column ' + columnIndex + ' (with indexes starting from 0) exceeded row count';
  18528. return tableBody[endingRow][columnIndex];
  18529. }
  18530. return null;
  18531. }
  18532. };
  18533. // lists
  18534. LayoutBuilder.prototype.processList = function(orderedList, node) {
  18535. var self = this,
  18536. items = orderedList ? node.ol : node.ul,
  18537. gapSize = node._gapSize;
  18538. this.writer.context().addMargin(gapSize.width);
  18539. var nextMarker;
  18540. this.tracker.auto('lineAdded', addMarkerToFirstLeaf, function() {
  18541. items.forEach(function(item) {
  18542. nextMarker = item.listMarker;
  18543. self.processNode(item);
  18544. addAll(node.positions, item.positions);
  18545. });
  18546. });
  18547. this.writer.context().addMargin(-gapSize.width);
  18548. function addMarkerToFirstLeaf(line) {
  18549. // I'm not very happy with the way list processing is implemented
  18550. // (both code and algorithm should be rethinked)
  18551. if (nextMarker) {
  18552. var marker = nextMarker;
  18553. nextMarker = null;
  18554. if (marker.canvas) {
  18555. var vector = marker.canvas[0];
  18556. offsetVector(vector, -marker._minWidth, 0);
  18557. self.writer.addVector(vector);
  18558. } else {
  18559. var markerLine = new Line(self.pageSize.width);
  18560. markerLine.addInline(marker._inlines[0]);
  18561. markerLine.x = -marker._minWidth;
  18562. markerLine.y = line.getAscenderHeight() - markerLine.getAscenderHeight();
  18563. self.writer.addLine(markerLine, true);
  18564. }
  18565. }
  18566. }
  18567. };
  18568. // tables
  18569. LayoutBuilder.prototype.processTable = function(tableNode) {
  18570. var processor = new TableProcessor(tableNode);
  18571. processor.beginTable(this.writer);
  18572. for(var i = 0, l = tableNode.table.body.length; i < l; i++) {
  18573. processor.beginRow(i, this.writer);
  18574. var result = this.processRow(tableNode.table.body[i], tableNode.table.widths, tableNode._offsets.offsets, tableNode.table.body, i);
  18575. addAll(tableNode.positions, result.positions);
  18576. processor.endRow(i, this.writer, result.pageBreaks);
  18577. }
  18578. processor.endTable(this.writer);
  18579. };
  18580. // leafs (texts)
  18581. LayoutBuilder.prototype.processLeaf = function(node) {
  18582. var line = this.buildNextLine(node);
  18583. while (line) {
  18584. var positions = this.writer.addLine(line);
  18585. node.positions.push(positions);
  18586. line = this.buildNextLine(node);
  18587. }
  18588. };
  18589. LayoutBuilder.prototype.buildNextLine = function(textNode) {
  18590. if (!textNode._inlines || textNode._inlines.length === 0) return null;
  18591. var line = new Line(this.writer.context().availableWidth);
  18592. while(textNode._inlines && textNode._inlines.length > 0 && line.hasEnoughSpaceForInline(textNode._inlines[0])) {
  18593. line.addInline(textNode._inlines.shift());
  18594. }
  18595. line.lastLineInParagraph = textNode._inlines.length === 0;
  18596. return line;
  18597. };
  18598. // images
  18599. LayoutBuilder.prototype.processImage = function(node) {
  18600. var position = this.writer.addImage(node);
  18601. node.positions.push(position);
  18602. };
  18603. LayoutBuilder.prototype.processCanvas = function(node) {
  18604. var height = node._minHeight;
  18605. if (this.writer.context().availableHeight < height) {
  18606. // TODO: support for canvas larger than a page
  18607. // TODO: support for other overflow methods
  18608. this.writer.moveToNextPage();
  18609. }
  18610. node.canvas.forEach(function(vector) {
  18611. var position = this.writer.addVector(vector);
  18612. node.positions.push(position);
  18613. }, this);
  18614. this.writer.context().moveDown(height);
  18615. };
  18616. LayoutBuilder.prototype.processQr = function(node) {
  18617. var position = this.writer.addQr(node);
  18618. node.positions.push(position);
  18619. };
  18620. module.exports = LayoutBuilder;
  18621. /***/ },
  18622. /* 7 */
  18623. /***/ function(module, exports, __webpack_require__) {
  18624. module.exports = {
  18625. '4A0': [4767.87, 6740.79],
  18626. '2A0': [3370.39, 4767.87],
  18627. A0: [2383.94, 3370.39],
  18628. A1: [1683.78, 2383.94],
  18629. A2: [1190.55, 1683.78],
  18630. A3: [841.89, 1190.55],
  18631. A4: [595.28, 841.89],
  18632. A5: [419.53, 595.28],
  18633. A6: [297.64, 419.53],
  18634. A7: [209.76, 297.64],
  18635. A8: [147.40, 209.76],
  18636. A9: [104.88, 147.40],
  18637. A10: [73.70, 104.88],
  18638. B0: [2834.65, 4008.19],
  18639. B1: [2004.09, 2834.65],
  18640. B2: [1417.32, 2004.09],
  18641. B3: [1000.63, 1417.32],
  18642. B4: [708.66, 1000.63],
  18643. B5: [498.90, 708.66],
  18644. B6: [354.33, 498.90],
  18645. B7: [249.45, 354.33],
  18646. B8: [175.75, 249.45],
  18647. B9: [124.72, 175.75],
  18648. B10: [87.87, 124.72],
  18649. C0: [2599.37, 3676.54],
  18650. C1: [1836.85, 2599.37],
  18651. C2: [1298.27, 1836.85],
  18652. C3: [918.43, 1298.27],
  18653. C4: [649.13, 918.43],
  18654. C5: [459.21, 649.13],
  18655. C6: [323.15, 459.21],
  18656. C7: [229.61, 323.15],
  18657. C8: [161.57, 229.61],
  18658. C9: [113.39, 161.57],
  18659. C10: [79.37, 113.39],
  18660. RA0: [2437.80, 3458.27],
  18661. RA1: [1729.13, 2437.80],
  18662. RA2: [1218.90, 1729.13],
  18663. RA3: [864.57, 1218.90],
  18664. RA4: [609.45, 864.57],
  18665. SRA0: [2551.18, 3628.35],
  18666. SRA1: [1814.17, 2551.18],
  18667. SRA2: [1275.59, 1814.17],
  18668. SRA3: [907.09, 1275.59],
  18669. SRA4: [637.80, 907.09],
  18670. EXECUTIVE: [521.86, 756.00],
  18671. FOLIO: [612.00, 936.00],
  18672. LEGAL: [612.00, 1008.00],
  18673. LETTER: [612.00, 792.00],
  18674. TABLOID: [792.00, 1224.00]
  18675. };
  18676. /***/ },
  18677. /* 8 */
  18678. /***/ function(module, exports, __webpack_require__) {
  18679. /* WEBPACK VAR INJECTION */(function(Buffer) {/* jslint node: true */
  18680. 'use strict';
  18681. var pdfKit = __webpack_require__(28);
  18682. var PDFImage = __webpack_require__(17);
  18683. function ImageMeasure(pdfDoc, imageDictionary) {
  18684. this.pdfDoc = pdfDoc;
  18685. this.imageDictionary = imageDictionary || {};
  18686. }
  18687. ImageMeasure.prototype.measureImage = function(src) {
  18688. var image, label;
  18689. var that = this;
  18690. if (!this.pdfDoc._imageRegistry[src]) {
  18691. label = 'I' + (++this.pdfDoc._imageCount);
  18692. image = PDFImage.open(realImageSrc(src), label);
  18693. image.embed(this.pdfDoc);
  18694. this.pdfDoc._imageRegistry[src] = image;
  18695. } else {
  18696. image = this.pdfDoc._imageRegistry[src];
  18697. }
  18698. return { width: image.width, height: image.height };
  18699. function realImageSrc(src) {
  18700. var img = that.imageDictionary[src];
  18701. if (!img) return src;
  18702. var index = img.indexOf('base64,');
  18703. if (index < 0) {
  18704. throw 'invalid image format, images dictionary should contain dataURL entries';
  18705. }
  18706. return new Buffer(img.substring(index + 7), 'base64');
  18707. }
  18708. };
  18709. module.exports = ImageMeasure;
  18710. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4).Buffer))
  18711. /***/ },
  18712. /* 9 */
  18713. /***/ function(module, exports, __webpack_require__) {
  18714. /* jslint node: true */
  18715. 'use strict';
  18716. function groupDecorations(line) {
  18717. var groups = [], curGroup = null;
  18718. for(var i = 0, l = line.inlines.length; i < l; i++) {
  18719. var inline = line.inlines[i];
  18720. var decoration = inline.decoration;
  18721. if(!decoration) {
  18722. curGroup = null;
  18723. continue;
  18724. }
  18725. var color = inline.decorationColor || inline.color || 'black';
  18726. var style = inline.decorationStyle || 'solid';
  18727. decoration = Array.isArray(decoration) ? decoration : [ decoration ];
  18728. for(var ii = 0, ll = decoration.length; ii < ll; ii++) {
  18729. var deco = decoration[ii];
  18730. if(!curGroup || deco !== curGroup.decoration ||
  18731. style !== curGroup.decorationStyle || color !== curGroup.decorationColor ||
  18732. deco === 'lineThrough') {
  18733. curGroup = {
  18734. line: line,
  18735. decoration: deco,
  18736. decorationColor: color,
  18737. decorationStyle: style,
  18738. inlines: [ inline ]
  18739. };
  18740. groups.push(curGroup);
  18741. } else {
  18742. curGroup.inlines.push(inline);
  18743. }
  18744. }
  18745. }
  18746. return groups;
  18747. }
  18748. function drawDecoration(group, x, y, pdfKitDoc) {
  18749. function maxInline() {
  18750. var max = 0;
  18751. for (var i = 0, l = group.inlines.length; i < l; i++) {
  18752. var inl = group.inlines[i];
  18753. max = inl.fontSize > max ? i : max;
  18754. }
  18755. return group.inlines[max];
  18756. }
  18757. function width() {
  18758. var sum = 0;
  18759. for (var i = 0, l = group.inlines.length; i < l; i++) {
  18760. sum += group.inlines[i].width;
  18761. }
  18762. return sum;
  18763. }
  18764. var firstInline = group.inlines[0],
  18765. biggerInline = maxInline(),
  18766. totalWidth = width(),
  18767. lineAscent = group.line.getAscenderHeight(),
  18768. ascent = biggerInline.font.ascender / 1000 * biggerInline.fontSize,
  18769. height = biggerInline.height,
  18770. descent = height - ascent;
  18771. var lw = 0.5 + Math.floor(Math.max(biggerInline.fontSize - 8, 0) / 2) * 0.12;
  18772. switch (group.decoration) {
  18773. case 'underline':
  18774. y += lineAscent + descent * 0.45;
  18775. break;
  18776. case 'overline':
  18777. y += lineAscent - (ascent * 0.85);
  18778. break;
  18779. case 'lineThrough':
  18780. y += lineAscent - (ascent * 0.25);
  18781. break;
  18782. default:
  18783. throw 'Unkown decoration : ' + group.decoration;
  18784. }
  18785. pdfKitDoc.save();
  18786. if(group.decorationStyle === 'double') {
  18787. var gap = Math.max(0.5, lw*2);
  18788. pdfKitDoc .fillColor(group.decorationColor)
  18789. .rect(x + firstInline.x, y-lw/2, totalWidth, lw/2).fill()
  18790. .rect(x + firstInline.x, y+gap-lw/2, totalWidth, lw/2).fill();
  18791. } else if(group.decorationStyle === 'dashed') {
  18792. var nbDashes = Math.ceil(totalWidth / (3.96+2.84));
  18793. var rdx = x + firstInline.x;
  18794. pdfKitDoc.rect(rdx, y, totalWidth, lw).clip();
  18795. pdfKitDoc.fillColor(group.decorationColor);
  18796. for (var i = 0; i < nbDashes; i++) {
  18797. pdfKitDoc.rect(rdx, y-lw/2, 3.96, lw).fill();
  18798. rdx += 3.96 + 2.84;
  18799. }
  18800. } else if(group.decorationStyle === 'dotted') {
  18801. var nbDots = Math.ceil(totalWidth / (lw*3));
  18802. var rx = x + firstInline.x;
  18803. pdfKitDoc.rect(rx, y, totalWidth, lw).clip();
  18804. pdfKitDoc.fillColor(group.decorationColor);
  18805. for (var ii = 0; ii < nbDots; ii++) {
  18806. pdfKitDoc.rect(rx, y-lw/2, lw, lw).fill();
  18807. rx += (lw*3);
  18808. }
  18809. } else if(group.decorationStyle === 'wavy') {
  18810. var sh = 0.7, sv = 1;
  18811. var nbWaves = Math.ceil(totalWidth / (sh*2))+1;
  18812. var rwx = x + firstInline.x - 1;
  18813. pdfKitDoc.rect(x + firstInline.x, y-sv, totalWidth, y+sv).clip();
  18814. pdfKitDoc.lineWidth(0.24);
  18815. pdfKitDoc.moveTo(rwx, y);
  18816. for(var iii = 0; iii < nbWaves; iii++) {
  18817. pdfKitDoc .bezierCurveTo(rwx+sh, y-sv, rwx+sh*2, y-sv, rwx+sh*3, y)
  18818. .bezierCurveTo(rwx+sh*4, y+sv, rwx+sh*5, y+sv, rwx+sh*6, y);
  18819. rwx += sh*6;
  18820. }
  18821. pdfKitDoc.stroke(group.decorationColor);
  18822. } else {
  18823. pdfKitDoc .fillColor(group.decorationColor)
  18824. .rect(x + firstInline.x, y-lw/2, totalWidth, lw)
  18825. .fill();
  18826. }
  18827. pdfKitDoc.restore();
  18828. }
  18829. function drawDecorations(line, x, y, pdfKitDoc) {
  18830. var groups = groupDecorations(line);
  18831. for (var i = 0, l = groups.length; i < l; i++) {
  18832. drawDecoration(groups[i], x, y, pdfKitDoc);
  18833. }
  18834. }
  18835. function drawBackground(line, x, y, pdfKitDoc) {
  18836. var height = line.getHeight();
  18837. for(var i = 0, l = line.inlines.length; i < l; i++) {
  18838. var inline = line.inlines[i];
  18839. if(inline.background) {
  18840. pdfKitDoc .fillColor(inline.background)
  18841. .rect(x + inline.x, y, inline.width, height)
  18842. .fill();
  18843. }
  18844. }
  18845. }
  18846. module.exports = {
  18847. drawBackground: drawBackground,
  18848. drawDecorations: drawDecorations
  18849. };
  18850. /***/ },
  18851. /* 10 */
  18852. /***/ function(module, exports, __webpack_require__) {
  18853. /* WEBPACK VAR INJECTION */(function(Buffer, __dirname) {/* jslint node: true */
  18854. 'use strict';
  18855. // var b64 = require('./base64.js').base64DecToArr;
  18856. function VirtualFileSystem() {
  18857. this.fileSystem = {};
  18858. this.baseSystem = {};
  18859. }
  18860. VirtualFileSystem.prototype.readFileSync = function(filename) {
  18861. filename = fixFilename(filename);
  18862. var base64content = this.baseSystem[filename];
  18863. if (base64content) {
  18864. return new Buffer(base64content, 'base64');
  18865. }
  18866. return this.fileSystem[filename];
  18867. };
  18868. VirtualFileSystem.prototype.writeFileSync = function(filename, content) {
  18869. this.fileSystem[fixFilename(filename)] = content;
  18870. };
  18871. VirtualFileSystem.prototype.bindFS = function(data) {
  18872. this.baseSystem = data;
  18873. };
  18874. function fixFilename(filename) {
  18875. if (filename.indexOf(__dirname) === 0) {
  18876. filename = filename.substring(__dirname.length);
  18877. }
  18878. if (filename.indexOf('/') === 0) {
  18879. filename = filename.substring(1);
  18880. }
  18881. return filename;
  18882. }
  18883. module.exports = new VirtualFileSystem();
  18884. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4).Buffer, "/"))
  18885. /***/ },
  18886. /* 11 */
  18887. /***/ function(module, exports, __webpack_require__) {
  18888. var __WEBPACK_AMD_DEFINE_RESULT__;/* WEBPACK VAR INJECTION */(function(module, global) {/**
  18889. * @license
  18890. * lodash 3.1.0 (Custom Build) <https://lodash.com/>
  18891. * Build: `lodash modern -d -o ./index.js`
  18892. * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
  18893. * Based on Underscore.js 1.7.0 <http://underscorejs.org/LICENSE>
  18894. * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  18895. * Available under MIT license <https://lodash.com/license>
  18896. */
  18897. ;(function() {
  18898. /** Used as a safe reference for `undefined` in pre-ES5 environments. */
  18899. var undefined;
  18900. /** Used as the semantic version number. */
  18901. var VERSION = '3.1.0';
  18902. /** Used to compose bitmasks for wrapper metadata. */
  18903. var BIND_FLAG = 1,
  18904. BIND_KEY_FLAG = 2,
  18905. CURRY_BOUND_FLAG = 4,
  18906. CURRY_FLAG = 8,
  18907. CURRY_RIGHT_FLAG = 16,
  18908. PARTIAL_FLAG = 32,
  18909. PARTIAL_RIGHT_FLAG = 64,
  18910. REARG_FLAG = 128,
  18911. ARY_FLAG = 256;
  18912. /** Used as default options for `_.trunc`. */
  18913. var DEFAULT_TRUNC_LENGTH = 30,
  18914. DEFAULT_TRUNC_OMISSION = '...';
  18915. /** Used to detect when a function becomes hot. */
  18916. var HOT_COUNT = 150,
  18917. HOT_SPAN = 16;
  18918. /** Used to indicate the type of lazy iteratees. */
  18919. var LAZY_FILTER_FLAG = 0,
  18920. LAZY_MAP_FLAG = 1,
  18921. LAZY_WHILE_FLAG = 2;
  18922. /** Used as the `TypeError` message for "Functions" methods. */
  18923. var FUNC_ERROR_TEXT = 'Expected a function';
  18924. /** Used as the internal argument placeholder. */
  18925. var PLACEHOLDER = '__lodash_placeholder__';
  18926. /** `Object#toString` result references. */
  18927. var argsTag = '[object Arguments]',
  18928. arrayTag = '[object Array]',
  18929. boolTag = '[object Boolean]',
  18930. dateTag = '[object Date]',
  18931. errorTag = '[object Error]',
  18932. funcTag = '[object Function]',
  18933. mapTag = '[object Map]',
  18934. numberTag = '[object Number]',
  18935. objectTag = '[object Object]',
  18936. regexpTag = '[object RegExp]',
  18937. setTag = '[object Set]',
  18938. stringTag = '[object String]',
  18939. weakMapTag = '[object WeakMap]';
  18940. var arrayBufferTag = '[object ArrayBuffer]',
  18941. float32Tag = '[object Float32Array]',
  18942. float64Tag = '[object Float64Array]',
  18943. int8Tag = '[object Int8Array]',
  18944. int16Tag = '[object Int16Array]',
  18945. int32Tag = '[object Int32Array]',
  18946. uint8Tag = '[object Uint8Array]',
  18947. uint8ClampedTag = '[object Uint8ClampedArray]',
  18948. uint16Tag = '[object Uint16Array]',
  18949. uint32Tag = '[object Uint32Array]';
  18950. /** Used to match empty string literals in compiled template source. */
  18951. var reEmptyStringLeading = /\b__p \+= '';/g,
  18952. reEmptyStringMiddle = /\b(__p \+=) '' \+/g,
  18953. reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g;
  18954. /** Used to match HTML entities and HTML characters. */
  18955. var reEscapedHtml = /&(?:amp|lt|gt|quot|#39|#96);/g,
  18956. reUnescapedHtml = /[&<>"'`]/g,
  18957. reHasEscapedHtml = RegExp(reEscapedHtml.source),
  18958. reHasUnescapedHtml = RegExp(reUnescapedHtml.source);
  18959. /** Used to match template delimiters. */
  18960. var reEscape = /<%-([\s\S]+?)%>/g,
  18961. reEvaluate = /<%([\s\S]+?)%>/g,
  18962. reInterpolate = /<%=([\s\S]+?)%>/g;
  18963. /**
  18964. * Used to match ES template delimiters.
  18965. * See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-template-literal-lexical-components)
  18966. * for more details.
  18967. */
  18968. var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
  18969. /** Used to match `RegExp` flags from their coerced string values. */
  18970. var reFlags = /\w*$/;
  18971. /** Used to detect named functions. */
  18972. var reFuncName = /^\s*function[ \n\r\t]+\w/;
  18973. /** Used to detect hexadecimal string values. */
  18974. var reHexPrefix = /^0[xX]/;
  18975. /** Used to detect host constructors (Safari > 5). */
  18976. var reHostCtor = /^\[object .+?Constructor\]$/;
  18977. /** Used to match latin-1 supplementary letters (excluding mathematical operators). */
  18978. var reLatin1 = /[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g;
  18979. /** Used to ensure capturing order of template delimiters. */
  18980. var reNoMatch = /($^)/;
  18981. /**
  18982. * Used to match `RegExp` special characters.
  18983. * See this [article on `RegExp` characters](http://www.regular-expressions.info/characters.html#special)
  18984. * for more details.
  18985. */
  18986. var reRegExpChars = /[.*+?^${}()|[\]\/\\]/g,
  18987. reHasRegExpChars = RegExp(reRegExpChars.source);
  18988. /** Used to detect functions containing a `this` reference. */
  18989. var reThis = /\bthis\b/;
  18990. /** Used to match unescaped characters in compiled string literals. */
  18991. var reUnescapedString = /['\n\r\u2028\u2029\\]/g;
  18992. /** Used to match words to create compound words. */
  18993. var reWords = (function() {
  18994. var upper = '[A-Z\\xc0-\\xd6\\xd8-\\xde]',
  18995. lower = '[a-z\\xdf-\\xf6\\xf8-\\xff]+';
  18996. return RegExp(upper + '{2,}(?=' + upper + lower + ')|' + upper + '?' + lower + '|' + upper + '+|[0-9]+', 'g');
  18997. }());
  18998. /** Used to detect and test for whitespace. */
  18999. var whitespace = (
  19000. // Basic whitespace characters.
  19001. ' \t\x0b\f\xa0\ufeff' +
  19002. // Line terminators.
  19003. '\n\r\u2028\u2029' +
  19004. // Unicode category "Zs" space separators.
  19005. '\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000'
  19006. );
  19007. /** Used to assign default `context` object properties. */
  19008. var contextProps = [
  19009. 'Array', 'ArrayBuffer', 'Date', 'Error', 'Float32Array', 'Float64Array',
  19010. 'Function', 'Int8Array', 'Int16Array', 'Int32Array', 'Math', 'Number',
  19011. 'Object', 'RegExp', 'Set', 'String', '_', 'clearTimeout', 'document',
  19012. 'isFinite', 'parseInt', 'setTimeout', 'TypeError', 'Uint8Array',
  19013. 'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap',
  19014. 'window', 'WinRTError'
  19015. ];
  19016. /** Used to make template sourceURLs easier to identify. */
  19017. var templateCounter = -1;
  19018. /** Used to identify `toStringTag` values of typed arrays. */
  19019. var typedArrayTags = {};
  19020. typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
  19021. typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
  19022. typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
  19023. typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
  19024. typedArrayTags[uint32Tag] = true;
  19025. typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
  19026. typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
  19027. typedArrayTags[dateTag] = typedArrayTags[errorTag] =
  19028. typedArrayTags[funcTag] = typedArrayTags[mapTag] =
  19029. typedArrayTags[numberTag] = typedArrayTags[objectTag] =
  19030. typedArrayTags[regexpTag] = typedArrayTags[setTag] =
  19031. typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
  19032. /** Used to identify `toStringTag` values supported by `_.clone`. */
  19033. var cloneableTags = {};
  19034. cloneableTags[argsTag] = cloneableTags[arrayTag] =
  19035. cloneableTags[arrayBufferTag] = cloneableTags[boolTag] =
  19036. cloneableTags[dateTag] = cloneableTags[float32Tag] =
  19037. cloneableTags[float64Tag] = cloneableTags[int8Tag] =
  19038. cloneableTags[int16Tag] = cloneableTags[int32Tag] =
  19039. cloneableTags[numberTag] = cloneableTags[objectTag] =
  19040. cloneableTags[regexpTag] = cloneableTags[stringTag] =
  19041. cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
  19042. cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
  19043. cloneableTags[errorTag] = cloneableTags[funcTag] =
  19044. cloneableTags[mapTag] = cloneableTags[setTag] =
  19045. cloneableTags[weakMapTag] = false;
  19046. /** Used as an internal `_.debounce` options object by `_.throttle`. */
  19047. var debounceOptions = {
  19048. 'leading': false,
  19049. 'maxWait': 0,
  19050. 'trailing': false
  19051. };
  19052. /** Used to map latin-1 supplementary letters to basic latin letters. */
  19053. var deburredLetters = {
  19054. '\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
  19055. '\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
  19056. '\xc7': 'C', '\xe7': 'c',
  19057. '\xd0': 'D', '\xf0': 'd',
  19058. '\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
  19059. '\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
  19060. '\xcC': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
  19061. '\xeC': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i',
  19062. '\xd1': 'N', '\xf1': 'n',
  19063. '\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
  19064. '\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
  19065. '\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
  19066. '\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
  19067. '\xdd': 'Y', '\xfd': 'y', '\xff': 'y',
  19068. '\xc6': 'Ae', '\xe6': 'ae',
  19069. '\xde': 'Th', '\xfe': 'th',
  19070. '\xdf': 'ss'
  19071. };
  19072. /** Used to map characters to HTML entities. */
  19073. var htmlEscapes = {
  19074. '&': '&amp;',
  19075. '<': '&lt;',
  19076. '>': '&gt;',
  19077. '"': '&quot;',
  19078. "'": '&#39;',
  19079. '`': '&#96;'
  19080. };
  19081. /** Used to map HTML entities to characters. */
  19082. var htmlUnescapes = {
  19083. '&amp;': '&',
  19084. '&lt;': '<',
  19085. '&gt;': '>',
  19086. '&quot;': '"',
  19087. '&#39;': "'",
  19088. '&#96;': '`'
  19089. };
  19090. /** Used to determine if values are of the language type `Object`. */
  19091. var objectTypes = {
  19092. 'function': true,
  19093. 'object': true
  19094. };
  19095. /** Used to escape characters for inclusion in compiled string literals. */
  19096. var stringEscapes = {
  19097. '\\': '\\',
  19098. "'": "'",
  19099. '\n': 'n',
  19100. '\r': 'r',
  19101. '\u2028': 'u2028',
  19102. '\u2029': 'u2029'
  19103. };
  19104. /**
  19105. * Used as a reference to the global object.
  19106. *
  19107. * The `this` value is used if it is the global object to avoid Greasemonkey's
  19108. * restricted `window` object, otherwise the `window` object is used.
  19109. */
  19110. var root = (objectTypes[typeof window] && window !== (this && this.window)) ? window : this;
  19111. /** Detect free variable `exports`. */
  19112. var freeExports = objectTypes[typeof exports] && exports && !exports.nodeType && exports;
  19113. /** Detect free variable `module`. */
  19114. var freeModule = objectTypes[typeof module] && module && !module.nodeType && module;
  19115. /** Detect free variable `global` from Node.js or Browserified code and use it as `root`. */
  19116. var freeGlobal = freeExports && freeModule && typeof global == 'object' && global;
  19117. if (freeGlobal && (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal || freeGlobal.self === freeGlobal)) {
  19118. root = freeGlobal;
  19119. }
  19120. /** Detect the popular CommonJS extension `module.exports`. */
  19121. var moduleExports = freeModule && freeModule.exports === freeExports && freeExports;
  19122. /*--------------------------------------------------------------------------*/
  19123. /**
  19124. * The base implementation of `compareAscending` which compares values and
  19125. * sorts them in ascending order without guaranteeing a stable sort.
  19126. *
  19127. * @private
  19128. * @param {*} value The value to compare to `other`.
  19129. * @param {*} other The value to compare to `value`.
  19130. * @returns {number} Returns the sort order indicator for `value`.
  19131. */
  19132. function baseCompareAscending(value, other) {
  19133. if (value !== other) {
  19134. var valIsReflexive = value === value,
  19135. othIsReflexive = other === other;
  19136. if (value > other || !valIsReflexive || (typeof value == 'undefined' && othIsReflexive)) {
  19137. return 1;
  19138. }
  19139. if (value < other || !othIsReflexive || (typeof other == 'undefined' && valIsReflexive)) {
  19140. return -1;
  19141. }
  19142. }
  19143. return 0;
  19144. }
  19145. /**
  19146. * The base implementation of `_.indexOf` without support for binary searches.
  19147. *
  19148. * @private
  19149. * @param {Array} array The array to search.
  19150. * @param {*} value The value to search for.
  19151. * @param {number} [fromIndex=0] The index to search from.
  19152. * @returns {number} Returns the index of the matched value, else `-1`.
  19153. */
  19154. function baseIndexOf(array, value, fromIndex) {
  19155. if (value !== value) {
  19156. return indexOfNaN(array, fromIndex);
  19157. }
  19158. var index = (fromIndex || 0) - 1,
  19159. length = array.length;
  19160. while (++index < length) {
  19161. if (array[index] === value) {
  19162. return index;
  19163. }
  19164. }
  19165. return -1;
  19166. }
  19167. /**
  19168. * The base implementation of `_.sortBy` and `_.sortByAll` which uses `comparer`
  19169. * to define the sort order of `array` and replaces criteria objects with their
  19170. * corresponding values.
  19171. *
  19172. * @private
  19173. * @param {Array} array The array to sort.
  19174. * @param {Function} comparer The function to define sort order.
  19175. * @returns {Array} Returns `array`.
  19176. */
  19177. function baseSortBy(array, comparer) {
  19178. var length = array.length;
  19179. array.sort(comparer);
  19180. while (length--) {
  19181. array[length] = array[length].value;
  19182. }
  19183. return array;
  19184. }
  19185. /**
  19186. * Converts `value` to a string if it is not one. An empty string is returned
  19187. * for `null` or `undefined` values.
  19188. *
  19189. * @private
  19190. * @param {*} value The value to process.
  19191. * @returns {string} Returns the string.
  19192. */
  19193. function baseToString(value) {
  19194. if (typeof value == 'string') {
  19195. return value;
  19196. }
  19197. return value == null ? '' : (value + '');
  19198. }
  19199. /**
  19200. * Used by `_.max` and `_.min` as the default callback for string values.
  19201. *
  19202. * @private
  19203. * @param {string} string The string to inspect.
  19204. * @returns {number} Returns the code unit of the first character of the string.
  19205. */
  19206. function charAtCallback(string) {
  19207. return string.charCodeAt(0);
  19208. }
  19209. /**
  19210. * Used by `_.trim` and `_.trimLeft` to get the index of the first character
  19211. * of `string` that is not found in `chars`.
  19212. *
  19213. * @private
  19214. * @param {string} string The string to inspect.
  19215. * @param {string} chars The characters to find.
  19216. * @returns {number} Returns the index of the first character not found in `chars`.
  19217. */
  19218. function charsLeftIndex(string, chars) {
  19219. var index = -1,
  19220. length = string.length;
  19221. while (++index < length && chars.indexOf(string.charAt(index)) > -1) {}
  19222. return index;
  19223. }
  19224. /**
  19225. * Used by `_.trim` and `_.trimRight` to get the index of the last character
  19226. * of `string` that is not found in `chars`.
  19227. *
  19228. * @private
  19229. * @param {string} string The string to inspect.
  19230. * @param {string} chars The characters to find.
  19231. * @returns {number} Returns the index of the last character not found in `chars`.
  19232. */
  19233. function charsRightIndex(string, chars) {
  19234. var index = string.length;
  19235. while (index-- && chars.indexOf(string.charAt(index)) > -1) {}
  19236. return index;
  19237. }
  19238. /**
  19239. * Used by `_.sortBy` to compare transformed elements of a collection and stable
  19240. * sort them in ascending order.
  19241. *
  19242. * @private
  19243. * @param {Object} object The object to compare to `other`.
  19244. * @param {Object} other The object to compare to `object`.
  19245. * @returns {number} Returns the sort order indicator for `object`.
  19246. */
  19247. function compareAscending(object, other) {
  19248. return baseCompareAscending(object.criteria, other.criteria) || (object.index - other.index);
  19249. }
  19250. /**
  19251. * Used by `_.sortByAll` to compare multiple properties of each element
  19252. * in a collection and stable sort them in ascending order.
  19253. *
  19254. * @private
  19255. * @param {Object} object The object to compare to `other`.
  19256. * @param {Object} other The object to compare to `object`.
  19257. * @returns {number} Returns the sort order indicator for `object`.
  19258. */
  19259. function compareMultipleAscending(object, other) {
  19260. var index = -1,
  19261. objCriteria = object.criteria,
  19262. othCriteria = other.criteria,
  19263. length = objCriteria.length;
  19264. while (++index < length) {
  19265. var result = baseCompareAscending(objCriteria[index], othCriteria[index]);
  19266. if (result) {
  19267. return result;
  19268. }
  19269. }
  19270. // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications
  19271. // that causes it, under certain circumstances, to provide the same value for
  19272. // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247
  19273. // for more details.
  19274. //
  19275. // This also ensures a stable sort in V8 and other engines.
  19276. // See https://code.google.com/p/v8/issues/detail?id=90 for more details.
  19277. return object.index - other.index;
  19278. }
  19279. /**
  19280. * Used by `_.deburr` to convert latin-1 supplementary letters to basic latin letters.
  19281. *
  19282. * @private
  19283. * @param {string} letter The matched letter to deburr.
  19284. * @returns {string} Returns the deburred letter.
  19285. */
  19286. function deburrLetter(letter) {
  19287. return deburredLetters[letter];
  19288. }
  19289. /**
  19290. * Used by `_.escape` to convert characters to HTML entities.
  19291. *
  19292. * @private
  19293. * @param {string} chr The matched character to escape.
  19294. * @returns {string} Returns the escaped character.
  19295. */
  19296. function escapeHtmlChar(chr) {
  19297. return htmlEscapes[chr];
  19298. }
  19299. /**
  19300. * Used by `_.template` to escape characters for inclusion in compiled
  19301. * string literals.
  19302. *
  19303. * @private
  19304. * @param {string} chr The matched character to escape.
  19305. * @returns {string} Returns the escaped character.
  19306. */
  19307. function escapeStringChar(chr) {
  19308. return '\\' + stringEscapes[chr];
  19309. }
  19310. /**
  19311. * Gets the index at which the first occurrence of `NaN` is found in `array`.
  19312. * If `fromRight` is provided elements of `array` are iterated from right to left.
  19313. *
  19314. * @private
  19315. * @param {Array} array The array to search.
  19316. * @param {number} [fromIndex] The index to search from.
  19317. * @param {boolean} [fromRight] Specify iterating from right to left.
  19318. * @returns {number} Returns the index of the matched `NaN`, else `-1`.
  19319. */
  19320. function indexOfNaN(array, fromIndex, fromRight) {
  19321. var length = array.length,
  19322. index = fromRight ? (fromIndex || length) : ((fromIndex || 0) - 1);
  19323. while ((fromRight ? index-- : ++index < length)) {
  19324. var other = array[index];
  19325. if (other !== other) {
  19326. return index;
  19327. }
  19328. }
  19329. return -1;
  19330. }
  19331. /**
  19332. * Checks if `value` is object-like.
  19333. *
  19334. * @private
  19335. * @param {*} value The value to check.
  19336. * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
  19337. */
  19338. function isObjectLike(value) {
  19339. return (value && typeof value == 'object') || false;
  19340. }
  19341. /**
  19342. * Used by `trimmedLeftIndex` and `trimmedRightIndex` to determine if a
  19343. * character code is whitespace.
  19344. *
  19345. * @private
  19346. * @param {number} charCode The character code to inspect.
  19347. * @returns {boolean} Returns `true` if `charCode` is whitespace, else `false`.
  19348. */
  19349. function isSpace(charCode) {
  19350. return ((charCode <= 160 && (charCode >= 9 && charCode <= 13) || charCode == 32 || charCode == 160) || charCode == 5760 || charCode == 6158 ||
  19351. (charCode >= 8192 && (charCode <= 8202 || charCode == 8232 || charCode == 8233 || charCode == 8239 || charCode == 8287 || charCode == 12288 || charCode == 65279)));
  19352. }
  19353. /**
  19354. * Replaces all `placeholder` elements in `array` with an internal placeholder
  19355. * and returns an array of their indexes.
  19356. *
  19357. * @private
  19358. * @param {Array} array The array to modify.
  19359. * @param {*} placeholder The placeholder to replace.
  19360. * @returns {Array} Returns the new array of placeholder indexes.
  19361. */
  19362. function replaceHolders(array, placeholder) {
  19363. var index = -1,
  19364. length = array.length,
  19365. resIndex = -1,
  19366. result = [];
  19367. while (++index < length) {
  19368. if (array[index] === placeholder) {
  19369. array[index] = PLACEHOLDER;
  19370. result[++resIndex] = index;
  19371. }
  19372. }
  19373. return result;
  19374. }
  19375. /**
  19376. * An implementation of `_.uniq` optimized for sorted arrays without support
  19377. * for callback shorthands and `this` binding.
  19378. *
  19379. * @private
  19380. * @param {Array} array The array to inspect.
  19381. * @param {Function} [iteratee] The function invoked per iteration.
  19382. * @returns {Array} Returns the new duplicate-value-free array.
  19383. */
  19384. function sortedUniq(array, iteratee) {
  19385. var seen,
  19386. index = -1,
  19387. length = array.length,
  19388. resIndex = -1,
  19389. result = [];
  19390. while (++index < length) {
  19391. var value = array[index],
  19392. computed = iteratee ? iteratee(value, index, array) : value;
  19393. if (!index || seen !== computed) {
  19394. seen = computed;
  19395. result[++resIndex] = value;
  19396. }
  19397. }
  19398. return result;
  19399. }
  19400. /**
  19401. * Used by `_.trim` and `_.trimLeft` to get the index of the first non-whitespace
  19402. * character of `string`.
  19403. *
  19404. * @private
  19405. * @param {string} string The string to inspect.
  19406. * @returns {number} Returns the index of the first non-whitespace character.
  19407. */
  19408. function trimmedLeftIndex(string) {
  19409. var index = -1,
  19410. length = string.length;
  19411. while (++index < length && isSpace(string.charCodeAt(index))) {}
  19412. return index;
  19413. }
  19414. /**
  19415. * Used by `_.trim` and `_.trimRight` to get the index of the last non-whitespace
  19416. * character of `string`.
  19417. *
  19418. * @private
  19419. * @param {string} string The string to inspect.
  19420. * @returns {number} Returns the index of the last non-whitespace character.
  19421. */
  19422. function trimmedRightIndex(string) {
  19423. var index = string.length;
  19424. while (index-- && isSpace(string.charCodeAt(index))) {}
  19425. return index;
  19426. }
  19427. /**
  19428. * Used by `_.unescape` to convert HTML entities to characters.
  19429. *
  19430. * @private
  19431. * @param {string} chr The matched character to unescape.
  19432. * @returns {string} Returns the unescaped character.
  19433. */
  19434. function unescapeHtmlChar(chr) {
  19435. return htmlUnescapes[chr];
  19436. }
  19437. /*--------------------------------------------------------------------------*/
  19438. /**
  19439. * Create a new pristine `lodash` function using the given `context` object.
  19440. *
  19441. * @static
  19442. * @memberOf _
  19443. * @category Utility
  19444. * @param {Object} [context=root] The context object.
  19445. * @returns {Function} Returns a new `lodash` function.
  19446. * @example
  19447. *
  19448. * _.mixin({ 'add': function(a, b) { return a + b; } });
  19449. *
  19450. * var lodash = _.runInContext();
  19451. * lodash.mixin({ 'sub': function(a, b) { return a - b; } });
  19452. *
  19453. * _.isFunction(_.add);
  19454. * // => true
  19455. * _.isFunction(_.sub);
  19456. * // => false
  19457. *
  19458. * lodash.isFunction(lodash.add);
  19459. * // => false
  19460. * lodash.isFunction(lodash.sub);
  19461. * // => true
  19462. *
  19463. * // using `context` to mock `Date#getTime` use in `_.now`
  19464. * var mock = _.runInContext({
  19465. * 'Date': function() {
  19466. * return { 'getTime': getTimeMock };
  19467. * }
  19468. * });
  19469. *
  19470. * // or creating a suped-up `defer` in Node.js
  19471. * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;
  19472. */
  19473. function runInContext(context) {
  19474. // Avoid issues with some ES3 environments that attempt to use values, named
  19475. // after built-in constructors like `Object`, for the creation of literals.
  19476. // ES5 clears this up by stating that literals must use built-in constructors.
  19477. // See https://es5.github.io/#x11.1.5 for more details.
  19478. context = context ? _.defaults(root.Object(), context, _.pick(root, contextProps)) : root;
  19479. /** Native constructor references. */
  19480. var Array = context.Array,
  19481. Date = context.Date,
  19482. Error = context.Error,
  19483. Function = context.Function,
  19484. Math = context.Math,
  19485. Number = context.Number,
  19486. Object = context.Object,
  19487. RegExp = context.RegExp,
  19488. String = context.String,
  19489. TypeError = context.TypeError;
  19490. /** Used for native method references. */
  19491. var arrayProto = Array.prototype,
  19492. objectProto = Object.prototype;
  19493. /** Used to detect DOM support. */
  19494. var document = (document = context.window) && document.document;
  19495. /** Used to resolve the decompiled source of functions. */
  19496. var fnToString = Function.prototype.toString;
  19497. /** Used to the length of n-tuples for `_.unzip`. */
  19498. var getLength = baseProperty('length');
  19499. /** Used to check objects for own properties. */
  19500. var hasOwnProperty = objectProto.hasOwnProperty;
  19501. /** Used to generate unique IDs. */
  19502. var idCounter = 0;
  19503. /**
  19504. * Used to resolve the `toStringTag` of values.
  19505. * See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring)
  19506. * for more details.
  19507. */
  19508. var objToString = objectProto.toString;
  19509. /** Used to restore the original `_` reference in `_.noConflict`. */
  19510. var oldDash = context._;
  19511. /** Used to detect if a method is native. */
  19512. var reNative = RegExp('^' +
  19513. escapeRegExp(objToString)
  19514. .replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
  19515. );
  19516. /** Native method references. */
  19517. var ArrayBuffer = isNative(ArrayBuffer = context.ArrayBuffer) && ArrayBuffer,
  19518. bufferSlice = isNative(bufferSlice = ArrayBuffer && new ArrayBuffer(0).slice) && bufferSlice,
  19519. ceil = Math.ceil,
  19520. clearTimeout = context.clearTimeout,
  19521. floor = Math.floor,
  19522. getPrototypeOf = isNative(getPrototypeOf = Object.getPrototypeOf) && getPrototypeOf,
  19523. push = arrayProto.push,
  19524. propertyIsEnumerable = objectProto.propertyIsEnumerable,
  19525. Set = isNative(Set = context.Set) && Set,
  19526. setTimeout = context.setTimeout,
  19527. splice = arrayProto.splice,
  19528. Uint8Array = isNative(Uint8Array = context.Uint8Array) && Uint8Array,
  19529. unshift = arrayProto.unshift,
  19530. WeakMap = isNative(WeakMap = context.WeakMap) && WeakMap;
  19531. /** Used to clone array buffers. */
  19532. var Float64Array = (function() {
  19533. // Safari 5 errors when using an array buffer to initialize a typed array
  19534. // where the array buffer's `byteLength` is not a multiple of the typed
  19535. // array's `BYTES_PER_ELEMENT`.
  19536. try {
  19537. var func = isNative(func = context.Float64Array) && func,
  19538. result = new func(new ArrayBuffer(10), 0, 1) && func;
  19539. } catch(e) {}
  19540. return result;
  19541. }());
  19542. /* Native method references for those with the same name as other `lodash` methods. */
  19543. var nativeIsArray = isNative(nativeIsArray = Array.isArray) && nativeIsArray,
  19544. nativeCreate = isNative(nativeCreate = Object.create) && nativeCreate,
  19545. nativeIsFinite = context.isFinite,
  19546. nativeKeys = isNative(nativeKeys = Object.keys) && nativeKeys,
  19547. nativeMax = Math.max,
  19548. nativeMin = Math.min,
  19549. nativeNow = isNative(nativeNow = Date.now) && nativeNow,
  19550. nativeNumIsFinite = isNative(nativeNumIsFinite = Number.isFinite) && nativeNumIsFinite,
  19551. nativeParseInt = context.parseInt,
  19552. nativeRandom = Math.random;
  19553. /** Used as references for `-Infinity` and `Infinity`. */
  19554. var NEGATIVE_INFINITY = Number.NEGATIVE_INFINITY,
  19555. POSITIVE_INFINITY = Number.POSITIVE_INFINITY;
  19556. /** Used as references for the maximum length and index of an array. */
  19557. var MAX_ARRAY_LENGTH = Math.pow(2, 32) - 1,
  19558. MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1,
  19559. HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;
  19560. /** Used as the size, in bytes, of each `Float64Array` element. */
  19561. var FLOAT64_BYTES_PER_ELEMENT = Float64Array ? Float64Array.BYTES_PER_ELEMENT : 0;
  19562. /**
  19563. * Used as the maximum length of an array-like value.
  19564. * See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer)
  19565. * for more details.
  19566. */
  19567. var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1;
  19568. /** Used to store function metadata. */
  19569. var metaMap = WeakMap && new WeakMap;
  19570. /*------------------------------------------------------------------------*/
  19571. /**
  19572. * Creates a `lodash` object which wraps `value` to enable intuitive chaining.
  19573. * Methods that operate on and return arrays, collections, and functions can
  19574. * be chained together. Methods that return a boolean or single value will
  19575. * automatically end the chain returning the unwrapped value. Explicit chaining
  19576. * may be enabled using `_.chain`. The execution of chained methods is lazy,
  19577. * that is, execution is deferred until `_#value` is implicitly or explicitly
  19578. * called.
  19579. *
  19580. * Lazy evaluation allows several methods to support shortcut fusion. Shortcut
  19581. * fusion is an optimization that merges iteratees to avoid creating intermediate
  19582. * arrays and reduce the number of iteratee executions.
  19583. *
  19584. * Chaining is supported in custom builds as long as the `_#value` method is
  19585. * directly or indirectly included in the build.
  19586. *
  19587. * In addition to lodash methods, wrappers also have the following `Array` methods:
  19588. * `concat`, `join`, `pop`, `push`, `reverse`, `shift`, `slice`, `sort`, `splice`,
  19589. * and `unshift`
  19590. *
  19591. * The wrapper functions that support shortcut fusion are:
  19592. * `drop`, `dropRight`, `dropRightWhile`, `dropWhile`, `filter`, `first`,
  19593. * `initial`, `last`, `map`, `pluck`, `reject`, `rest`, `reverse`, `slice`,
  19594. * `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `where`
  19595. *
  19596. * The chainable wrapper functions are:
  19597. * `after`, `ary`, `assign`, `at`, `before`, `bind`, `bindAll`, `bindKey`,
  19598. * `callback`, `chain`, `chunk`, `compact`, `concat`, `constant`, `countBy`,
  19599. * `create`, `curry`, `debounce`, `defaults`, `defer`, `delay`, `difference`,
  19600. * `drop`, `dropRight`, `dropRightWhile`, `dropWhile`, `filter`, `flatten`,
  19601. * `flattenDeep`, `flow`, `flowRight`, `forEach`, `forEachRight`, `forIn`,
  19602. * `forInRight`, `forOwn`, `forOwnRight`, `functions`, `groupBy`, `indexBy`,
  19603. * `initial`, `intersection`, `invert`, `invoke`, `keys`, `keysIn`, `map`,
  19604. * `mapValues`, `matches`, `memoize`, `merge`, `mixin`, `negate`, `noop`,
  19605. * `omit`, `once`, `pairs`, `partial`, `partialRight`, `partition`, `pick`,
  19606. * `pluck`, `property`, `propertyOf`, `pull`, `pullAt`, `push`, `range`,
  19607. * `rearg`, `reject`, `remove`, `rest`, `reverse`, `shuffle`, `slice`, `sort`,
  19608. * `sortBy`, `sortByAll`, `splice`, `take`, `takeRight`, `takeRightWhile`,
  19609. * `takeWhile`, `tap`, `throttle`, `thru`, `times`, `toArray`, `toPlainObject`,
  19610. * `transform`, `union`, `uniq`, `unshift`, `unzip`, `values`, `valuesIn`,
  19611. * `where`, `without`, `wrap`, `xor`, `zip`, and `zipObject`
  19612. *
  19613. * The wrapper functions that are **not** chainable by default are:
  19614. * `attempt`, `camelCase`, `capitalize`, `clone`, `cloneDeep`, `deburr`,
  19615. * `endsWith`, `escape`, `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`,
  19616. * `findLast`, `findLastIndex`, `findLastKey`, `findWhere`, `first`, `has`,
  19617. * `identity`, `includes`, `indexOf`, `isArguments`, `isArray`, `isBoolean`,
  19618. * `isDate`, `isElement`, `isEmpty`, `isEqual`, `isError`, `isFinite`,
  19619. * `isFunction`, `isMatch`, `isNative`, `isNaN`, `isNull`, `isNumber`,
  19620. * `isObject`, `isPlainObject`, `isRegExp`, `isString`, `isUndefined`,
  19621. * `isTypedArray`, `join`, `kebabCase`, `last`, `lastIndexOf`, `max`, `min`,
  19622. * `noConflict`, `now`, `pad`, `padLeft`, `padRight`, `parseInt`, `pop`,
  19623. * `random`, `reduce`, `reduceRight`, `repeat`, `result`, `runInContext`,
  19624. * `shift`, `size`, `snakeCase`, `some`, `sortedIndex`, `sortedLastIndex`,
  19625. * `startCase`, `startsWith`, `template`, `trim`, `trimLeft`, `trimRight`,
  19626. * `trunc`, `unescape`, `uniqueId`, `value`, and `words`
  19627. *
  19628. * The wrapper function `sample` will return a wrapped value when `n` is provided,
  19629. * otherwise an unwrapped value is returned.
  19630. *
  19631. * @name _
  19632. * @constructor
  19633. * @category Chain
  19634. * @param {*} value The value to wrap in a `lodash` instance.
  19635. * @returns {Object} Returns a `lodash` instance.
  19636. * @example
  19637. *
  19638. * var wrapped = _([1, 2, 3]);
  19639. *
  19640. * // returns an unwrapped value
  19641. * wrapped.reduce(function(sum, n) { return sum + n; });
  19642. * // => 6
  19643. *
  19644. * // returns a wrapped value
  19645. * var squares = wrapped.map(function(n) { return n * n; });
  19646. *
  19647. * _.isArray(squares);
  19648. * // => false
  19649. *
  19650. * _.isArray(squares.value());
  19651. * // => true
  19652. */
  19653. function lodash(value) {
  19654. if (isObjectLike(value) && !isArray(value)) {
  19655. if (value instanceof LodashWrapper) {
  19656. return value;
  19657. }
  19658. if (hasOwnProperty.call(value, '__wrapped__')) {
  19659. return new LodashWrapper(value.__wrapped__, value.__chain__, arrayCopy(value.__actions__));
  19660. }
  19661. }
  19662. return new LodashWrapper(value);
  19663. }
  19664. /**
  19665. * The base constructor for creating `lodash` wrapper objects.
  19666. *
  19667. * @private
  19668. * @param {*} value The value to wrap.
  19669. * @param {boolean} [chainAll] Enable chaining for all wrapper methods.
  19670. * @param {Array} [actions=[]] Actions to peform to resolve the unwrapped value.
  19671. */
  19672. function LodashWrapper(value, chainAll, actions) {
  19673. this.__actions__ = actions || [];
  19674. this.__chain__ = !!chainAll;
  19675. this.__wrapped__ = value;
  19676. }
  19677. /**
  19678. * An object environment feature flags.
  19679. *
  19680. * @static
  19681. * @memberOf _
  19682. * @type Object
  19683. */
  19684. var support = lodash.support = {};
  19685. (function(x) {
  19686. /**
  19687. * Detect if functions can be decompiled by `Function#toString`
  19688. * (all but Firefox OS certified apps, older Opera mobile browsers, and
  19689. * the PlayStation 3; forced `false` for Windows 8 apps).
  19690. *
  19691. * @memberOf _.support
  19692. * @type boolean
  19693. */
  19694. support.funcDecomp = !isNative(context.WinRTError) && reThis.test(runInContext);
  19695. /**
  19696. * Detect if `Function#name` is supported (all but IE).
  19697. *
  19698. * @memberOf _.support
  19699. * @type boolean
  19700. */
  19701. support.funcNames = typeof Function.name == 'string';
  19702. /**
  19703. * Detect if the DOM is supported.
  19704. *
  19705. * @memberOf _.support
  19706. * @type boolean
  19707. */
  19708. try {
  19709. support.dom = document.createDocumentFragment().nodeType === 11;
  19710. } catch(e) {
  19711. support.dom = false;
  19712. }
  19713. /**
  19714. * Detect if `arguments` object indexes are non-enumerable.
  19715. *
  19716. * In Firefox < 4, IE < 9, PhantomJS, and Safari < 5.1 `arguments` object
  19717. * indexes are non-enumerable. Chrome < 25 and Node.js < 0.11.0 treat
  19718. * `arguments` object indexes as non-enumerable and fail `hasOwnProperty`
  19719. * checks for indexes that exceed their function's formal parameters with
  19720. * associated values of `0`.
  19721. *
  19722. * @memberOf _.support
  19723. * @type boolean
  19724. */
  19725. try {
  19726. support.nonEnumArgs = !propertyIsEnumerable.call(arguments, 1);
  19727. } catch(e) {
  19728. support.nonEnumArgs = true;
  19729. }
  19730. }(0, 0));
  19731. /**
  19732. * By default, the template delimiters used by lodash are like those in
  19733. * embedded Ruby (ERB). Change the following template settings to use
  19734. * alternative delimiters.
  19735. *
  19736. * @static
  19737. * @memberOf _
  19738. * @type Object
  19739. */
  19740. lodash.templateSettings = {
  19741. /**
  19742. * Used to detect `data` property values to be HTML-escaped.
  19743. *
  19744. * @memberOf _.templateSettings
  19745. * @type RegExp
  19746. */
  19747. 'escape': reEscape,
  19748. /**
  19749. * Used to detect code to be evaluated.
  19750. *
  19751. * @memberOf _.templateSettings
  19752. * @type RegExp
  19753. */
  19754. 'evaluate': reEvaluate,
  19755. /**
  19756. * Used to detect `data` property values to inject.
  19757. *
  19758. * @memberOf _.templateSettings
  19759. * @type RegExp
  19760. */
  19761. 'interpolate': reInterpolate,
  19762. /**
  19763. * Used to reference the data object in the template text.
  19764. *
  19765. * @memberOf _.templateSettings
  19766. * @type string
  19767. */
  19768. 'variable': '',
  19769. /**
  19770. * Used to import variables into the compiled template.
  19771. *
  19772. * @memberOf _.templateSettings
  19773. * @type Object
  19774. */
  19775. 'imports': {
  19776. /**
  19777. * A reference to the `lodash` function.
  19778. *
  19779. * @memberOf _.templateSettings.imports
  19780. * @type Function
  19781. */
  19782. '_': lodash
  19783. }
  19784. };
  19785. /*------------------------------------------------------------------------*/
  19786. /**
  19787. * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.
  19788. *
  19789. * @private
  19790. * @param {*} value The value to wrap.
  19791. */
  19792. function LazyWrapper(value) {
  19793. this.actions = null;
  19794. this.dir = 1;
  19795. this.dropCount = 0;
  19796. this.filtered = false;
  19797. this.iteratees = null;
  19798. this.takeCount = POSITIVE_INFINITY;
  19799. this.views = null;
  19800. this.wrapped = value;
  19801. }
  19802. /**
  19803. * Creates a clone of the lazy wrapper object.
  19804. *
  19805. * @private
  19806. * @name clone
  19807. * @memberOf LazyWrapper
  19808. * @returns {Object} Returns the cloned `LazyWrapper` object.
  19809. */
  19810. function lazyClone() {
  19811. var actions = this.actions,
  19812. iteratees = this.iteratees,
  19813. views = this.views,
  19814. result = new LazyWrapper(this.wrapped);
  19815. result.actions = actions ? arrayCopy(actions) : null;
  19816. result.dir = this.dir;
  19817. result.dropCount = this.dropCount;
  19818. result.filtered = this.filtered;
  19819. result.iteratees = iteratees ? arrayCopy(iteratees) : null;
  19820. result.takeCount = this.takeCount;
  19821. result.views = views ? arrayCopy(views) : null;
  19822. return result;
  19823. }
  19824. /**
  19825. * Reverses the direction of lazy iteration.
  19826. *
  19827. * @private
  19828. * @name reverse
  19829. * @memberOf LazyWrapper
  19830. * @returns {Object} Returns the new reversed `LazyWrapper` object.
  19831. */
  19832. function lazyReverse() {
  19833. if (this.filtered) {
  19834. var result = new LazyWrapper(this);
  19835. result.dir = -1;
  19836. result.filtered = true;
  19837. } else {
  19838. result = this.clone();
  19839. result.dir *= -1;
  19840. }
  19841. return result;
  19842. }
  19843. /**
  19844. * Extracts the unwrapped value from its lazy wrapper.
  19845. *
  19846. * @private
  19847. * @name value
  19848. * @memberOf LazyWrapper
  19849. * @returns {*} Returns the unwrapped value.
  19850. */
  19851. function lazyValue() {
  19852. var array = this.wrapped.value();
  19853. if (!isArray(array)) {
  19854. return baseWrapperValue(array, this.actions);
  19855. }
  19856. var dir = this.dir,
  19857. isRight = dir < 0,
  19858. view = getView(0, array.length, this.views),
  19859. start = view.start,
  19860. end = view.end,
  19861. length = end - start,
  19862. dropCount = this.dropCount,
  19863. takeCount = nativeMin(length, this.takeCount - dropCount),
  19864. index = isRight ? end : start - 1,
  19865. iteratees = this.iteratees,
  19866. iterLength = iteratees ? iteratees.length : 0,
  19867. resIndex = 0,
  19868. result = [];
  19869. outer:
  19870. while (length-- && resIndex < takeCount) {
  19871. index += dir;
  19872. var iterIndex = -1,
  19873. value = array[index];
  19874. while (++iterIndex < iterLength) {
  19875. var data = iteratees[iterIndex],
  19876. iteratee = data.iteratee,
  19877. computed = iteratee(value, index, array),
  19878. type = data.type;
  19879. if (type == LAZY_MAP_FLAG) {
  19880. value = computed;
  19881. } else if (!computed) {
  19882. if (type == LAZY_FILTER_FLAG) {
  19883. continue outer;
  19884. } else {
  19885. break outer;
  19886. }
  19887. }
  19888. }
  19889. if (dropCount) {
  19890. dropCount--;
  19891. } else {
  19892. result[resIndex++] = value;
  19893. }
  19894. }
  19895. return result;
  19896. }
  19897. /*------------------------------------------------------------------------*/
  19898. /**
  19899. * Creates a cache object to store key/value pairs.
  19900. *
  19901. * @private
  19902. * @static
  19903. * @name Cache
  19904. * @memberOf _.memoize
  19905. */
  19906. function MapCache() {
  19907. this.__data__ = {};
  19908. }
  19909. /**
  19910. * Removes `key` and its value from the cache.
  19911. *
  19912. * @private
  19913. * @name delete
  19914. * @memberOf _.memoize.Cache
  19915. * @param {string} key The key of the value to remove.
  19916. * @returns {boolean} Returns `true` if the entry was removed successfully, else `false`.
  19917. */
  19918. function mapDelete(key) {
  19919. return this.has(key) && delete this.__data__[key];
  19920. }
  19921. /**
  19922. * Gets the cached value for `key`.
  19923. *
  19924. * @private
  19925. * @name get
  19926. * @memberOf _.memoize.Cache
  19927. * @param {string} key The key of the value to get.
  19928. * @returns {*} Returns the cached value.
  19929. */
  19930. function mapGet(key) {
  19931. return key == '__proto__' ? undefined : this.__data__[key];
  19932. }
  19933. /**
  19934. * Checks if a cached value for `key` exists.
  19935. *
  19936. * @private
  19937. * @name has
  19938. * @memberOf _.memoize.Cache
  19939. * @param {string} key The key of the entry to check.
  19940. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  19941. */
  19942. function mapHas(key) {
  19943. return key != '__proto__' && hasOwnProperty.call(this.__data__, key);
  19944. }
  19945. /**
  19946. * Adds `value` to `key` of the cache.
  19947. *
  19948. * @private
  19949. * @name set
  19950. * @memberOf _.memoize.Cache
  19951. * @param {string} key The key of the value to cache.
  19952. * @param {*} value The value to cache.
  19953. * @returns {Object} Returns the cache object.
  19954. */
  19955. function mapSet(key, value) {
  19956. if (key != '__proto__') {
  19957. this.__data__[key] = value;
  19958. }
  19959. return this;
  19960. }
  19961. /*------------------------------------------------------------------------*/
  19962. /**
  19963. *
  19964. * Creates a cache object to store unique values.
  19965. *
  19966. * @private
  19967. * @param {Array} [values] The values to cache.
  19968. */
  19969. function SetCache(values) {
  19970. var length = values ? values.length : 0;
  19971. this.data = { 'hash': nativeCreate(null), 'set': new Set };
  19972. while (length--) {
  19973. this.push(values[length]);
  19974. }
  19975. }
  19976. /**
  19977. * Checks if `value` is in `cache` mimicking the return signature of
  19978. * `_.indexOf` by returning `0` if the value is found, else `-1`.
  19979. *
  19980. * @private
  19981. * @param {Object} cache The cache to search.
  19982. * @param {*} value The value to search for.
  19983. * @returns {number} Returns `0` if `value` is found, else `-1`.
  19984. */
  19985. function cacheIndexOf(cache, value) {
  19986. var data = cache.data,
  19987. result = (typeof value == 'string' || isObject(value)) ? data.set.has(value) : data.hash[value];
  19988. return result ? 0 : -1;
  19989. }
  19990. /**
  19991. * Adds `value` to the cache.
  19992. *
  19993. * @private
  19994. * @name push
  19995. * @memberOf SetCache
  19996. * @param {*} value The value to cache.
  19997. */
  19998. function cachePush(value) {
  19999. var data = this.data;
  20000. if (typeof value == 'string' || isObject(value)) {
  20001. data.set.add(value);
  20002. } else {
  20003. data.hash[value] = true;
  20004. }
  20005. }
  20006. /*------------------------------------------------------------------------*/
  20007. /**
  20008. * Copies the values of `source` to `array`.
  20009. *
  20010. * @private
  20011. * @param {Array} source The array to copy values from.
  20012. * @param {Array} [array=[]] The array to copy values to.
  20013. * @returns {Array} Returns `array`.
  20014. */
  20015. function arrayCopy(source, array) {
  20016. var index = -1,
  20017. length = source.length;
  20018. array || (array = Array(length));
  20019. while (++index < length) {
  20020. array[index] = source[index];
  20021. }
  20022. return array;
  20023. }
  20024. /**
  20025. * A specialized version of `_.forEach` for arrays without support for callback
  20026. * shorthands or `this` binding.
  20027. *
  20028. * @private
  20029. * @param {Array} array The array to iterate over.
  20030. * @param {Function} iteratee The function invoked per iteration.
  20031. * @returns {Array} Returns `array`.
  20032. */
  20033. function arrayEach(array, iteratee) {
  20034. var index = -1,
  20035. length = array.length;
  20036. while (++index < length) {
  20037. if (iteratee(array[index], index, array) === false) {
  20038. break;
  20039. }
  20040. }
  20041. return array;
  20042. }
  20043. /**
  20044. * A specialized version of `_.forEachRight` for arrays without support for
  20045. * callback shorthands or `this` binding.
  20046. *
  20047. * @private
  20048. * @param {Array} array The array to iterate over.
  20049. * @param {Function} iteratee The function invoked per iteration.
  20050. * @returns {Array} Returns `array`.
  20051. */
  20052. function arrayEachRight(array, iteratee) {
  20053. var length = array.length;
  20054. while (length--) {
  20055. if (iteratee(array[length], length, array) === false) {
  20056. break;
  20057. }
  20058. }
  20059. return array;
  20060. }
  20061. /**
  20062. * A specialized version of `_.every` for arrays without support for callback
  20063. * shorthands or `this` binding.
  20064. *
  20065. * @private
  20066. * @param {Array} array The array to iterate over.
  20067. * @param {Function} predicate The function invoked per iteration.
  20068. * @returns {boolean} Returns `true` if all elements pass the predicate check,
  20069. * else `false`.
  20070. */
  20071. function arrayEvery(array, predicate) {
  20072. var index = -1,
  20073. length = array.length;
  20074. while (++index < length) {
  20075. if (!predicate(array[index], index, array)) {
  20076. return false;
  20077. }
  20078. }
  20079. return true;
  20080. }
  20081. /**
  20082. * A specialized version of `_.filter` for arrays without support for callback
  20083. * shorthands or `this` binding.
  20084. *
  20085. * @private
  20086. * @param {Array} array The array to iterate over.
  20087. * @param {Function} predicate The function invoked per iteration.
  20088. * @returns {Array} Returns the new filtered array.
  20089. */
  20090. function arrayFilter(array, predicate) {
  20091. var index = -1,
  20092. length = array.length,
  20093. resIndex = -1,
  20094. result = [];
  20095. while (++index < length) {
  20096. var value = array[index];
  20097. if (predicate(value, index, array)) {
  20098. result[++resIndex] = value;
  20099. }
  20100. }
  20101. return result;
  20102. }
  20103. /**
  20104. * A specialized version of `_.map` for arrays without support for callback
  20105. * shorthands or `this` binding.
  20106. *
  20107. * @private
  20108. * @param {Array} array The array to iterate over.
  20109. * @param {Function} iteratee The function invoked per iteration.
  20110. * @returns {Array} Returns the new mapped array.
  20111. */
  20112. function arrayMap(array, iteratee) {
  20113. var index = -1,
  20114. length = array.length,
  20115. result = Array(length);
  20116. while (++index < length) {
  20117. result[index] = iteratee(array[index], index, array);
  20118. }
  20119. return result;
  20120. }
  20121. /**
  20122. * A specialized version of `_.max` for arrays without support for iteratees.
  20123. *
  20124. * @private
  20125. * @param {Array} array The array to iterate over.
  20126. * @returns {*} Returns the maximum value.
  20127. */
  20128. function arrayMax(array) {
  20129. var index = -1,
  20130. length = array.length,
  20131. result = NEGATIVE_INFINITY;
  20132. while (++index < length) {
  20133. var value = array[index];
  20134. if (value > result) {
  20135. result = value;
  20136. }
  20137. }
  20138. return result;
  20139. }
  20140. /**
  20141. * A specialized version of `_.min` for arrays without support for iteratees.
  20142. *
  20143. * @private
  20144. * @param {Array} array The array to iterate over.
  20145. * @returns {*} Returns the minimum value.
  20146. */
  20147. function arrayMin(array) {
  20148. var index = -1,
  20149. length = array.length,
  20150. result = POSITIVE_INFINITY;
  20151. while (++index < length) {
  20152. var value = array[index];
  20153. if (value < result) {
  20154. result = value;
  20155. }
  20156. }
  20157. return result;
  20158. }
  20159. /**
  20160. * A specialized version of `_.reduce` for arrays without support for callback
  20161. * shorthands or `this` binding.
  20162. *
  20163. * @private
  20164. * @param {Array} array The array to iterate over.
  20165. * @param {Function} iteratee The function invoked per iteration.
  20166. * @param {*} [accumulator] The initial value.
  20167. * @param {boolean} [initFromArray] Specify using the first element of `array`
  20168. * as the initial value.
  20169. * @returns {*} Returns the accumulated value.
  20170. */
  20171. function arrayReduce(array, iteratee, accumulator, initFromArray) {
  20172. var index = -1,
  20173. length = array.length;
  20174. if (initFromArray && length) {
  20175. accumulator = array[++index];
  20176. }
  20177. while (++index < length) {
  20178. accumulator = iteratee(accumulator, array[index], index, array);
  20179. }
  20180. return accumulator;
  20181. }
  20182. /**
  20183. * A specialized version of `_.reduceRight` for arrays without support for
  20184. * callback shorthands or `this` binding.
  20185. *
  20186. * @private
  20187. * @param {Array} array The array to iterate over.
  20188. * @param {Function} iteratee The function invoked per iteration.
  20189. * @param {*} [accumulator] The initial value.
  20190. * @param {boolean} [initFromArray] Specify using the last element of `array`
  20191. * as the initial value.
  20192. * @returns {*} Returns the accumulated value.
  20193. */
  20194. function arrayReduceRight(array, iteratee, accumulator, initFromArray) {
  20195. var length = array.length;
  20196. if (initFromArray && length) {
  20197. accumulator = array[--length];
  20198. }
  20199. while (length--) {
  20200. accumulator = iteratee(accumulator, array[length], length, array);
  20201. }
  20202. return accumulator;
  20203. }
  20204. /**
  20205. * A specialized version of `_.some` for arrays without support for callback
  20206. * shorthands or `this` binding.
  20207. *
  20208. * @private
  20209. * @param {Array} array The array to iterate over.
  20210. * @param {Function} predicate The function invoked per iteration.
  20211. * @returns {boolean} Returns `true` if any element passes the predicate check,
  20212. * else `false`.
  20213. */
  20214. function arraySome(array, predicate) {
  20215. var index = -1,
  20216. length = array.length;
  20217. while (++index < length) {
  20218. if (predicate(array[index], index, array)) {
  20219. return true;
  20220. }
  20221. }
  20222. return false;
  20223. }
  20224. /**
  20225. * Used by `_.defaults` to customize its `_.assign` use.
  20226. *
  20227. * @private
  20228. * @param {*} objectValue The destination object property value.
  20229. * @param {*} sourceValue The source object property value.
  20230. * @returns {*} Returns the value to assign to the destination object.
  20231. */
  20232. function assignDefaults(objectValue, sourceValue) {
  20233. return typeof objectValue == 'undefined' ? sourceValue : objectValue;
  20234. }
  20235. /**
  20236. * Used by `_.template` to customize its `_.assign` use.
  20237. *
  20238. * **Note:** This method is like `assignDefaults` except that it ignores
  20239. * inherited property values when checking if a property is `undefined`.
  20240. *
  20241. * @private
  20242. * @param {*} objectValue The destination object property value.
  20243. * @param {*} sourceValue The source object property value.
  20244. * @param {string} key The key associated with the object and source values.
  20245. * @param {Object} object The destination object.
  20246. * @returns {*} Returns the value to assign to the destination object.
  20247. */
  20248. function assignOwnDefaults(objectValue, sourceValue, key, object) {
  20249. return (typeof objectValue == 'undefined' || !hasOwnProperty.call(object, key))
  20250. ? sourceValue
  20251. : objectValue;
  20252. }
  20253. /**
  20254. * The base implementation of `_.assign` without support for argument juggling,
  20255. * multiple sources, and `this` binding `customizer` functions.
  20256. *
  20257. * @private
  20258. * @param {Object} object The destination object.
  20259. * @param {Object} source The source object.
  20260. * @param {Function} [customizer] The function to customize assigning values.
  20261. * @returns {Object} Returns the destination object.
  20262. */
  20263. function baseAssign(object, source, customizer) {
  20264. var props = keys(source);
  20265. if (!customizer) {
  20266. return baseCopy(source, object, props);
  20267. }
  20268. var index = -1,
  20269. length = props.length
  20270. while (++index < length) {
  20271. var key = props[index],
  20272. value = object[key],
  20273. result = customizer(value, source[key], key, object, source);
  20274. if ((result === result ? result !== value : value === value) ||
  20275. (typeof value == 'undefined' && !(key in object))) {
  20276. object[key] = result;
  20277. }
  20278. }
  20279. return object;
  20280. }
  20281. /**
  20282. * The base implementation of `_.at` without support for strings and individual
  20283. * key arguments.
  20284. *
  20285. * @private
  20286. * @param {Array|Object} collection The collection to iterate over.
  20287. * @param {number[]|string[]} [props] The property names or indexes of elements to pick.
  20288. * @returns {Array} Returns the new array of picked elements.
  20289. */
  20290. function baseAt(collection, props) {
  20291. var index = -1,
  20292. length = collection.length,
  20293. isArr = isLength(length),
  20294. propsLength = props.length,
  20295. result = Array(propsLength);
  20296. while(++index < propsLength) {
  20297. var key = props[index];
  20298. if (isArr) {
  20299. key = parseFloat(key);
  20300. result[index] = isIndex(key, length) ? collection[key] : undefined;
  20301. } else {
  20302. result[index] = collection[key];
  20303. }
  20304. }
  20305. return result;
  20306. }
  20307. /**
  20308. * Copies the properties of `source` to `object`.
  20309. *
  20310. * @private
  20311. * @param {Object} source The object to copy properties from.
  20312. * @param {Object} [object={}] The object to copy properties to.
  20313. * @param {Array} props The property names to copy.
  20314. * @returns {Object} Returns `object`.
  20315. */
  20316. function baseCopy(source, object, props) {
  20317. if (!props) {
  20318. props = object;
  20319. object = {};
  20320. }
  20321. var index = -1,
  20322. length = props.length;
  20323. while (++index < length) {
  20324. var key = props[index];
  20325. object[key] = source[key];
  20326. }
  20327. return object;
  20328. }
  20329. /**
  20330. * The base implementation of `_.bindAll` without support for individual
  20331. * method name arguments.
  20332. *
  20333. * @private
  20334. * @param {Object} object The object to bind and assign the bound methods to.
  20335. * @param {string[]} methodNames The object method names to bind.
  20336. * @returns {Object} Returns `object`.
  20337. */
  20338. function baseBindAll(object, methodNames) {
  20339. var index = -1,
  20340. length = methodNames.length;
  20341. while (++index < length) {
  20342. var key = methodNames[index];
  20343. object[key] = createWrapper(object[key], BIND_FLAG, object);
  20344. }
  20345. return object;
  20346. }
  20347. /**
  20348. * The base implementation of `_.callback` which supports specifying the
  20349. * number of arguments to provide to `func`.
  20350. *
  20351. * @private
  20352. * @param {*} [func=_.identity] The value to convert to a callback.
  20353. * @param {*} [thisArg] The `this` binding of `func`.
  20354. * @param {number} [argCount] The number of arguments to provide to `func`.
  20355. * @returns {Function} Returns the callback.
  20356. */
  20357. function baseCallback(func, thisArg, argCount) {
  20358. var type = typeof func;
  20359. if (type == 'function') {
  20360. return (typeof thisArg != 'undefined' && isBindable(func))
  20361. ? bindCallback(func, thisArg, argCount)
  20362. : func;
  20363. }
  20364. if (func == null) {
  20365. return identity;
  20366. }
  20367. // Handle "_.property" and "_.matches" style callback shorthands.
  20368. return type == 'object'
  20369. ? baseMatches(func)
  20370. : baseProperty(func + '');
  20371. }
  20372. /**
  20373. * The base implementation of `_.clone` without support for argument juggling
  20374. * and `this` binding `customizer` functions.
  20375. *
  20376. * @private
  20377. * @param {*} value The value to clone.
  20378. * @param {boolean} [isDeep] Specify a deep clone.
  20379. * @param {Function} [customizer] The function to customize cloning values.
  20380. * @param {string} [key] The key of `value`.
  20381. * @param {Object} [object] The object `value` belongs to.
  20382. * @param {Array} [stackA=[]] Tracks traversed source objects.
  20383. * @param {Array} [stackB=[]] Associates clones with source counterparts.
  20384. * @returns {*} Returns the cloned value.
  20385. */
  20386. function baseClone(value, isDeep, customizer, key, object, stackA, stackB) {
  20387. var result;
  20388. if (customizer) {
  20389. result = object ? customizer(value, key, object) : customizer(value);
  20390. }
  20391. if (typeof result != 'undefined') {
  20392. return result;
  20393. }
  20394. if (!isObject(value)) {
  20395. return value;
  20396. }
  20397. var isArr = isArray(value);
  20398. if (isArr) {
  20399. result = initCloneArray(value);
  20400. if (!isDeep) {
  20401. return arrayCopy(value, result);
  20402. }
  20403. } else {
  20404. var tag = objToString.call(value),
  20405. isFunc = tag == funcTag;
  20406. if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
  20407. result = initCloneObject(isFunc ? {} : value);
  20408. if (!isDeep) {
  20409. return baseCopy(value, result, keys(value));
  20410. }
  20411. } else {
  20412. return cloneableTags[tag]
  20413. ? initCloneByTag(value, tag, isDeep)
  20414. : (object ? value : {});
  20415. }
  20416. }
  20417. // Check for circular references and return corresponding clone.
  20418. stackA || (stackA = []);
  20419. stackB || (stackB = []);
  20420. var length = stackA.length;
  20421. while (length--) {
  20422. if (stackA[length] == value) {
  20423. return stackB[length];
  20424. }
  20425. }
  20426. // Add the source value to the stack of traversed objects and associate it with its clone.
  20427. stackA.push(value);
  20428. stackB.push(result);
  20429. // Recursively populate clone (susceptible to call stack limits).
  20430. (isArr ? arrayEach : baseForOwn)(value, function(subValue, key) {
  20431. result[key] = baseClone(subValue, isDeep, customizer, key, value, stackA, stackB);
  20432. });
  20433. return result;
  20434. }
  20435. /**
  20436. * The base implementation of `_.create` without support for assigning
  20437. * properties to the created object.
  20438. *
  20439. * @private
  20440. * @param {Object} prototype The object to inherit from.
  20441. * @returns {Object} Returns the new object.
  20442. */
  20443. var baseCreate = (function() {
  20444. function Object() {}
  20445. return function(prototype) {
  20446. if (isObject(prototype)) {
  20447. Object.prototype = prototype;
  20448. var result = new Object;
  20449. Object.prototype = null;
  20450. }
  20451. return result || context.Object();
  20452. };
  20453. }());
  20454. /**
  20455. * The base implementation of `_.delay` and `_.defer` which accepts an index
  20456. * of where to slice the arguments to provide to `func`.
  20457. *
  20458. * @private
  20459. * @param {Function} func The function to delay.
  20460. * @param {number} wait The number of milliseconds to delay invocation.
  20461. * @param {Object} args The `arguments` object to slice and provide to `func`.
  20462. * @returns {number} Returns the timer id.
  20463. */
  20464. function baseDelay(func, wait, args, fromIndex) {
  20465. if (!isFunction(func)) {
  20466. throw new TypeError(FUNC_ERROR_TEXT);
  20467. }
  20468. return setTimeout(function() { func.apply(undefined, baseSlice(args, fromIndex)); }, wait);
  20469. }
  20470. /**
  20471. * The base implementation of `_.difference` which accepts a single array
  20472. * of values to exclude.
  20473. *
  20474. * @private
  20475. * @param {Array} array The array to inspect.
  20476. * @param {Array} values The values to exclude.
  20477. * @returns {Array} Returns the new array of filtered values.
  20478. */
  20479. function baseDifference(array, values) {
  20480. var length = array ? array.length : 0,
  20481. result = [];
  20482. if (!length) {
  20483. return result;
  20484. }
  20485. var index = -1,
  20486. indexOf = getIndexOf(),
  20487. isCommon = indexOf == baseIndexOf,
  20488. cache = isCommon && values.length >= 200 && createCache(values),
  20489. valuesLength = values.length;
  20490. if (cache) {
  20491. indexOf = cacheIndexOf;
  20492. isCommon = false;
  20493. values = cache;
  20494. }
  20495. outer:
  20496. while (++index < length) {
  20497. var value = array[index];
  20498. if (isCommon && value === value) {
  20499. var valuesIndex = valuesLength;
  20500. while (valuesIndex--) {
  20501. if (values[valuesIndex] === value) {
  20502. continue outer;
  20503. }
  20504. }
  20505. result.push(value);
  20506. }
  20507. else if (indexOf(values, value) < 0) {
  20508. result.push(value);
  20509. }
  20510. }
  20511. return result;
  20512. }
  20513. /**
  20514. * The base implementation of `_.forEach` without support for callback
  20515. * shorthands and `this` binding.
  20516. *
  20517. * @private
  20518. * @param {Array|Object|string} collection The collection to iterate over.
  20519. * @param {Function} iteratee The function invoked per iteration.
  20520. * @returns {Array|Object|string} Returns `collection`.
  20521. */
  20522. function baseEach(collection, iteratee) {
  20523. var length = collection ? collection.length : 0;
  20524. if (!isLength(length)) {
  20525. return baseForOwn(collection, iteratee);
  20526. }
  20527. var index = -1,
  20528. iterable = toObject(collection);
  20529. while (++index < length) {
  20530. if (iteratee(iterable[index], index, iterable) === false) {
  20531. break;
  20532. }
  20533. }
  20534. return collection;
  20535. }
  20536. /**
  20537. * The base implementation of `_.forEachRight` without support for callback
  20538. * shorthands and `this` binding.
  20539. *
  20540. * @private
  20541. * @param {Array|Object|string} collection The collection to iterate over.
  20542. * @param {Function} iteratee The function invoked per iteration.
  20543. * @returns {Array|Object|string} Returns `collection`.
  20544. */
  20545. function baseEachRight(collection, iteratee) {
  20546. var length = collection ? collection.length : 0;
  20547. if (!isLength(length)) {
  20548. return baseForOwnRight(collection, iteratee);
  20549. }
  20550. var iterable = toObject(collection);
  20551. while (length--) {
  20552. if (iteratee(iterable[length], length, iterable) === false) {
  20553. break;
  20554. }
  20555. }
  20556. return collection;
  20557. }
  20558. /**
  20559. * The base implementation of `_.every` without support for callback
  20560. * shorthands or `this` binding.
  20561. *
  20562. * @private
  20563. * @param {Array|Object|string} collection The collection to iterate over.
  20564. * @param {Function} predicate The function invoked per iteration.
  20565. * @returns {boolean} Returns `true` if all elements pass the predicate check,
  20566. * else `false`
  20567. */
  20568. function baseEvery(collection, predicate) {
  20569. var result = true;
  20570. baseEach(collection, function(value, index, collection) {
  20571. result = !!predicate(value, index, collection);
  20572. return result;
  20573. });
  20574. return result;
  20575. }
  20576. /**
  20577. * The base implementation of `_.filter` without support for callback
  20578. * shorthands or `this` binding.
  20579. *
  20580. * @private
  20581. * @param {Array|Object|string} collection The collection to iterate over.
  20582. * @param {Function} predicate The function invoked per iteration.
  20583. * @returns {Array} Returns the new filtered array.
  20584. */
  20585. function baseFilter(collection, predicate) {
  20586. var result = [];
  20587. baseEach(collection, function(value, index, collection) {
  20588. if (predicate(value, index, collection)) {
  20589. result.push(value);
  20590. }
  20591. });
  20592. return result;
  20593. }
  20594. /**
  20595. * The base implementation of `_.find`, `_.findLast`, `_.findKey`, and `_.findLastKey`,
  20596. * without support for callback shorthands and `this` binding, which iterates
  20597. * over `collection` using the provided `eachFunc`.
  20598. *
  20599. * @private
  20600. * @param {Array|Object|string} collection The collection to search.
  20601. * @param {Function} predicate The function invoked per iteration.
  20602. * @param {Function} eachFunc The function to iterate over `collection`.
  20603. * @param {boolean} [retKey] Specify returning the key of the found element
  20604. * instead of the element itself.
  20605. * @returns {*} Returns the found element or its key, else `undefined`.
  20606. */
  20607. function baseFind(collection, predicate, eachFunc, retKey) {
  20608. var result;
  20609. eachFunc(collection, function(value, key, collection) {
  20610. if (predicate(value, key, collection)) {
  20611. result = retKey ? key : value;
  20612. return false;
  20613. }
  20614. });
  20615. return result;
  20616. }
  20617. /**
  20618. * The base implementation of `_.flatten` with added support for restricting
  20619. * flattening and specifying the start index.
  20620. *
  20621. * @private
  20622. * @param {Array} array The array to flatten.
  20623. * @param {boolean} [isDeep] Specify a deep flatten.
  20624. * @param {boolean} [isStrict] Restrict flattening to arrays and `arguments` objects.
  20625. * @param {number} [fromIndex=0] The index to start from.
  20626. * @returns {Array} Returns the new flattened array.
  20627. */
  20628. function baseFlatten(array, isDeep, isStrict, fromIndex) {
  20629. var index = (fromIndex || 0) - 1,
  20630. length = array.length,
  20631. resIndex = -1,
  20632. result = [];
  20633. while (++index < length) {
  20634. var value = array[index];
  20635. if (isObjectLike(value) && isLength(value.length) && (isArray(value) || isArguments(value))) {
  20636. if (isDeep) {
  20637. // Recursively flatten arrays (susceptible to call stack limits).
  20638. value = baseFlatten(value, isDeep, isStrict);
  20639. }
  20640. var valIndex = -1,
  20641. valLength = value.length;
  20642. result.length += valLength;
  20643. while (++valIndex < valLength) {
  20644. result[++resIndex] = value[valIndex];
  20645. }
  20646. } else if (!isStrict) {
  20647. result[++resIndex] = value;
  20648. }
  20649. }
  20650. return result;
  20651. }
  20652. /**
  20653. * The base implementation of `baseForIn` and `baseForOwn` which iterates
  20654. * over `object` properties returned by `keysFunc` invoking `iteratee` for
  20655. * each property. Iterator functions may exit iteration early by explicitly
  20656. * returning `false`.
  20657. *
  20658. * @private
  20659. * @param {Object} object The object to iterate over.
  20660. * @param {Function} iteratee The function invoked per iteration.
  20661. * @param {Function} keysFunc The function to get the keys of `object`.
  20662. * @returns {Object} Returns `object`.
  20663. */
  20664. function baseFor(object, iteratee, keysFunc) {
  20665. var index = -1,
  20666. iterable = toObject(object),
  20667. props = keysFunc(object),
  20668. length = props.length;
  20669. while (++index < length) {
  20670. var key = props[index];
  20671. if (iteratee(iterable[key], key, iterable) === false) {
  20672. break;
  20673. }
  20674. }
  20675. return object;
  20676. }
  20677. /**
  20678. * This function is like `baseFor` except that it iterates over properties
  20679. * in the opposite order.
  20680. *
  20681. * @private
  20682. * @param {Object} object The object to iterate over.
  20683. * @param {Function} iteratee The function invoked per iteration.
  20684. * @param {Function} keysFunc The function to get the keys of `object`.
  20685. * @returns {Object} Returns `object`.
  20686. */
  20687. function baseForRight(object, iteratee, keysFunc) {
  20688. var iterable = toObject(object),
  20689. props = keysFunc(object),
  20690. length = props.length;
  20691. while (length--) {
  20692. var key = props[length];
  20693. if (iteratee(iterable[key], key, iterable) === false) {
  20694. break;
  20695. }
  20696. }
  20697. return object;
  20698. }
  20699. /**
  20700. * The base implementation of `_.forIn` without support for callback
  20701. * shorthands and `this` binding.
  20702. *
  20703. * @private
  20704. * @param {Object} object The object to iterate over.
  20705. * @param {Function} iteratee The function invoked per iteration.
  20706. * @returns {Object} Returns `object`.
  20707. */
  20708. function baseForIn(object, iteratee) {
  20709. return baseFor(object, iteratee, keysIn);
  20710. }
  20711. /**
  20712. * The base implementation of `_.forOwn` without support for callback
  20713. * shorthands and `this` binding.
  20714. *
  20715. * @private
  20716. * @param {Object} object The object to iterate over.
  20717. * @param {Function} iteratee The function invoked per iteration.
  20718. * @returns {Object} Returns `object`.
  20719. */
  20720. function baseForOwn(object, iteratee) {
  20721. return baseFor(object, iteratee, keys);
  20722. }
  20723. /**
  20724. * The base implementation of `_.forOwnRight` without support for callback
  20725. * shorthands and `this` binding.
  20726. *
  20727. * @private
  20728. * @param {Object} object The object to iterate over.
  20729. * @param {Function} iteratee The function invoked per iteration.
  20730. * @returns {Object} Returns `object`.
  20731. */
  20732. function baseForOwnRight(object, iteratee) {
  20733. return baseForRight(object, iteratee, keys);
  20734. }
  20735. /**
  20736. * The base implementation of `_.functions` which creates an array of
  20737. * `object` function property names filtered from those provided.
  20738. *
  20739. * @private
  20740. * @param {Object} object The object to inspect.
  20741. * @param {Array} props The property names to filter.
  20742. * @returns {Array} Returns the new array of filtered property names.
  20743. */
  20744. function baseFunctions(object, props) {
  20745. var index = -1,
  20746. length = props.length,
  20747. resIndex = -1,
  20748. result = [];
  20749. while (++index < length) {
  20750. var key = props[index];
  20751. if (isFunction(object[key])) {
  20752. result[++resIndex] = key;
  20753. }
  20754. }
  20755. return result;
  20756. }
  20757. /**
  20758. * The base implementation of `_.invoke` which requires additional arguments
  20759. * to be provided as an array of arguments rather than individually.
  20760. *
  20761. * @private
  20762. * @param {Array|Object|string} collection The collection to iterate over.
  20763. * @param {Function|string} methodName The name of the method to invoke or
  20764. * the function invoked per iteration.
  20765. * @param {Array} [args] The arguments to invoke the method with.
  20766. * @returns {Array} Returns the array of results.
  20767. */
  20768. function baseInvoke(collection, methodName, args) {
  20769. var index = -1,
  20770. isFunc = typeof methodName == 'function',
  20771. length = collection ? collection.length : 0,
  20772. result = isLength(length) ? Array(length) : [];
  20773. baseEach(collection, function(value) {
  20774. var func = isFunc ? methodName : (value != null && value[methodName]);
  20775. result[++index] = func ? func.apply(value, args) : undefined;
  20776. });
  20777. return result;
  20778. }
  20779. /**
  20780. * The base implementation of `_.isEqual` without support for `this` binding
  20781. * `customizer` functions.
  20782. *
  20783. * @private
  20784. * @param {*} value The value to compare.
  20785. * @param {*} other The other value to compare.
  20786. * @param {Function} [customizer] The function to customize comparing values.
  20787. * @param {boolean} [isWhere] Specify performing partial comparisons.
  20788. * @param {Array} [stackA] Tracks traversed `value` objects.
  20789. * @param {Array} [stackB] Tracks traversed `other` objects.
  20790. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  20791. */
  20792. function baseIsEqual(value, other, customizer, isWhere, stackA, stackB) {
  20793. // Exit early for identical values.
  20794. if (value === other) {
  20795. // Treat `+0` vs. `-0` as not equal.
  20796. return value !== 0 || (1 / value == 1 / other);
  20797. }
  20798. var valType = typeof value,
  20799. othType = typeof other;
  20800. // Exit early for unlike primitive values.
  20801. if ((valType != 'function' && valType != 'object' && othType != 'function' && othType != 'object') ||
  20802. value == null || other == null) {
  20803. // Return `false` unless both values are `NaN`.
  20804. return value !== value && other !== other;
  20805. }
  20806. return baseIsEqualDeep(value, other, baseIsEqual, customizer, isWhere, stackA, stackB);
  20807. }
  20808. /**
  20809. * A specialized version of `baseIsEqual` for arrays and objects which performs
  20810. * deep comparisons and tracks traversed objects enabling objects with circular
  20811. * references to be compared.
  20812. *
  20813. * @private
  20814. * @param {Object} object The object to compare.
  20815. * @param {Object} other The other object to compare.
  20816. * @param {Function} equalFunc The function to determine equivalents of values.
  20817. * @param {Function} [customizer] The function to customize comparing objects.
  20818. * @param {boolean} [isWhere] Specify performing partial comparisons.
  20819. * @param {Array} [stackA=[]] Tracks traversed `value` objects.
  20820. * @param {Array} [stackB=[]] Tracks traversed `other` objects.
  20821. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  20822. */
  20823. function baseIsEqualDeep(object, other, equalFunc, customizer, isWhere, stackA, stackB) {
  20824. var objIsArr = isArray(object),
  20825. othIsArr = isArray(other),
  20826. objTag = arrayTag,
  20827. othTag = arrayTag;
  20828. if (!objIsArr) {
  20829. objTag = objToString.call(object);
  20830. if (objTag == argsTag) {
  20831. objTag = objectTag;
  20832. } else if (objTag != objectTag) {
  20833. objIsArr = isTypedArray(object);
  20834. }
  20835. }
  20836. if (!othIsArr) {
  20837. othTag = objToString.call(other);
  20838. if (othTag == argsTag) {
  20839. othTag = objectTag;
  20840. } else if (othTag != objectTag) {
  20841. othIsArr = isTypedArray(other);
  20842. }
  20843. }
  20844. var objIsObj = objTag == objectTag,
  20845. othIsObj = othTag == objectTag,
  20846. isSameTag = objTag == othTag;
  20847. if (isSameTag && !(objIsArr || objIsObj)) {
  20848. return equalByTag(object, other, objTag);
  20849. }
  20850. var valWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
  20851. othWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
  20852. if (valWrapped || othWrapped) {
  20853. return equalFunc(valWrapped ? object.value() : object, othWrapped ? other.value() : other, customizer, isWhere, stackA, stackB);
  20854. }
  20855. if (!isSameTag) {
  20856. return false;
  20857. }
  20858. // Assume cyclic values are equal.
  20859. // For more information on detecting circular references see https://es5.github.io/#JO.
  20860. stackA || (stackA = []);
  20861. stackB || (stackB = []);
  20862. var length = stackA.length;
  20863. while (length--) {
  20864. if (stackA[length] == object) {
  20865. return stackB[length] == other;
  20866. }
  20867. }
  20868. // Add `object` and `other` to the stack of traversed objects.
  20869. stackA.push(object);
  20870. stackB.push(other);
  20871. var result = (objIsArr ? equalArrays : equalObjects)(object, other, equalFunc, customizer, isWhere, stackA, stackB);
  20872. stackA.pop();
  20873. stackB.pop();
  20874. return result;
  20875. }
  20876. /**
  20877. * The base implementation of `_.isMatch` without support for callback
  20878. * shorthands or `this` binding.
  20879. *
  20880. * @private
  20881. * @param {Object} source The object to inspect.
  20882. * @param {Array} props The source property names to match.
  20883. * @param {Array} values The source values to match.
  20884. * @param {Array} strictCompareFlags Strict comparison flags for source values.
  20885. * @param {Function} [customizer] The function to customize comparing objects.
  20886. * @returns {boolean} Returns `true` if `object` is a match, else `false`.
  20887. */
  20888. function baseIsMatch(object, props, values, strictCompareFlags, customizer) {
  20889. var length = props.length;
  20890. if (object == null) {
  20891. return !length;
  20892. }
  20893. var index = -1,
  20894. noCustomizer = !customizer;
  20895. while (++index < length) {
  20896. if ((noCustomizer && strictCompareFlags[index])
  20897. ? values[index] !== object[props[index]]
  20898. : !hasOwnProperty.call(object, props[index])
  20899. ) {
  20900. return false;
  20901. }
  20902. }
  20903. index = -1;
  20904. while (++index < length) {
  20905. var key = props[index];
  20906. if (noCustomizer && strictCompareFlags[index]) {
  20907. var result = hasOwnProperty.call(object, key);
  20908. } else {
  20909. var objValue = object[key],
  20910. srcValue = values[index];
  20911. result = customizer ? customizer(objValue, srcValue, key) : undefined;
  20912. if (typeof result == 'undefined') {
  20913. result = baseIsEqual(srcValue, objValue, customizer, true);
  20914. }
  20915. }
  20916. if (!result) {
  20917. return false;
  20918. }
  20919. }
  20920. return true;
  20921. }
  20922. /**
  20923. * The base implementation of `_.map` without support for callback shorthands
  20924. * or `this` binding.
  20925. *
  20926. * @private
  20927. * @param {Array|Object|string} collection The collection to iterate over.
  20928. * @param {Function} iteratee The function invoked per iteration.
  20929. * @returns {Array} Returns the new mapped array.
  20930. */
  20931. function baseMap(collection, iteratee) {
  20932. var result = [];
  20933. baseEach(collection, function(value, key, collection) {
  20934. result.push(iteratee(value, key, collection));
  20935. });
  20936. return result;
  20937. }
  20938. /**
  20939. * The base implementation of `_.matches` which supports specifying whether
  20940. * `source` should be cloned.
  20941. *
  20942. * @private
  20943. * @param {Object} source The object of property values to match.
  20944. * @returns {Function} Returns the new function.
  20945. */
  20946. function baseMatches(source) {
  20947. var props = keys(source),
  20948. length = props.length;
  20949. if (length == 1) {
  20950. var key = props[0],
  20951. value = source[key];
  20952. if (isStrictComparable(value)) {
  20953. return function(object) {
  20954. return object != null && value === object[key] && hasOwnProperty.call(object, key);
  20955. };
  20956. }
  20957. }
  20958. var values = Array(length),
  20959. strictCompareFlags = Array(length);
  20960. while (length--) {
  20961. value = source[props[length]];
  20962. values[length] = value;
  20963. strictCompareFlags[length] = isStrictComparable(value);
  20964. }
  20965. return function(object) {
  20966. return baseIsMatch(object, props, values, strictCompareFlags);
  20967. };
  20968. }
  20969. /**
  20970. * The base implementation of `_.merge` without support for argument juggling,
  20971. * multiple sources, and `this` binding `customizer` functions.
  20972. *
  20973. * @private
  20974. * @param {Object} object The destination object.
  20975. * @param {Object} source The source object.
  20976. * @param {Function} [customizer] The function to customize merging properties.
  20977. * @param {Array} [stackA=[]] Tracks traversed source objects.
  20978. * @param {Array} [stackB=[]] Associates values with source counterparts.
  20979. * @returns {Object} Returns the destination object.
  20980. */
  20981. function baseMerge(object, source, customizer, stackA, stackB) {
  20982. var isSrcArr = isLength(source.length) && (isArray(source) || isTypedArray(source));
  20983. (isSrcArr ? arrayEach : baseForOwn)(source, function(srcValue, key, source) {
  20984. if (isObjectLike(srcValue)) {
  20985. stackA || (stackA = []);
  20986. stackB || (stackB = []);
  20987. return baseMergeDeep(object, source, key, baseMerge, customizer, stackA, stackB);
  20988. }
  20989. var value = object[key],
  20990. result = customizer ? customizer(value, srcValue, key, object, source) : undefined,
  20991. isCommon = typeof result == 'undefined';
  20992. if (isCommon) {
  20993. result = srcValue;
  20994. }
  20995. if ((isSrcArr || typeof result != 'undefined') &&
  20996. (isCommon || (result === result ? result !== value : value === value))) {
  20997. object[key] = result;
  20998. }
  20999. });
  21000. return object;
  21001. }
  21002. /**
  21003. * A specialized version of `baseMerge` for arrays and objects which performs
  21004. * deep merges and tracks traversed objects enabling objects with circular
  21005. * references to be merged.
  21006. *
  21007. * @private
  21008. * @param {Object} object The destination object.
  21009. * @param {Object} source The source object.
  21010. * @param {string} key The key of the value to merge.
  21011. * @param {Function} mergeFunc The function to merge values.
  21012. * @param {Function} [customizer] The function to customize merging properties.
  21013. * @param {Array} [stackA=[]] Tracks traversed source objects.
  21014. * @param {Array} [stackB=[]] Associates values with source counterparts.
  21015. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  21016. */
  21017. function baseMergeDeep(object, source, key, mergeFunc, customizer, stackA, stackB) {
  21018. var length = stackA.length,
  21019. srcValue = source[key];
  21020. while (length--) {
  21021. if (stackA[length] == srcValue) {
  21022. object[key] = stackB[length];
  21023. return;
  21024. }
  21025. }
  21026. var value = object[key],
  21027. result = customizer ? customizer(value, srcValue, key, object, source) : undefined,
  21028. isCommon = typeof result == 'undefined';
  21029. if (isCommon) {
  21030. result = srcValue;
  21031. if (isLength(srcValue.length) && (isArray(srcValue) || isTypedArray(srcValue))) {
  21032. result = isArray(value)
  21033. ? value
  21034. : (value ? arrayCopy(value) : []);
  21035. }
  21036. else if (isPlainObject(srcValue) || isArguments(srcValue)) {
  21037. result = isArguments(value)
  21038. ? toPlainObject(value)
  21039. : (isPlainObject(value) ? value : {});
  21040. }
  21041. else {
  21042. isCommon = false;
  21043. }
  21044. }
  21045. // Add the source value to the stack of traversed objects and associate
  21046. // it with its merged value.
  21047. stackA.push(srcValue);
  21048. stackB.push(result);
  21049. if (isCommon) {
  21050. // Recursively merge objects and arrays (susceptible to call stack limits).
  21051. object[key] = mergeFunc(result, srcValue, customizer, stackA, stackB);
  21052. } else if (result === result ? result !== value : value === value) {
  21053. object[key] = result;
  21054. }
  21055. }
  21056. /**
  21057. * The base implementation of `_.property` which does not coerce `key` to a string.
  21058. *
  21059. * @private
  21060. * @param {string} key The key of the property to get.
  21061. * @returns {Function} Returns the new function.
  21062. */
  21063. function baseProperty(key) {
  21064. return function(object) {
  21065. return object == null ? undefined : object[key];
  21066. };
  21067. }
  21068. /**
  21069. * The base implementation of `_.pullAt` without support for individual
  21070. * index arguments.
  21071. *
  21072. * @private
  21073. * @param {Array} array The array to modify.
  21074. * @param {number[]} indexes The indexes of elements to remove.
  21075. * @returns {Array} Returns the new array of removed elements.
  21076. */
  21077. function basePullAt(array, indexes) {
  21078. var length = indexes.length,
  21079. result = baseAt(array, indexes);
  21080. indexes.sort(baseCompareAscending);
  21081. while (length--) {
  21082. var index = parseFloat(indexes[length]);
  21083. if (index != previous && isIndex(index)) {
  21084. var previous = index;
  21085. splice.call(array, index, 1);
  21086. }
  21087. }
  21088. return result;
  21089. }
  21090. /**
  21091. * The base implementation of `_.random` without support for argument juggling
  21092. * and returning floating-point numbers.
  21093. *
  21094. * @private
  21095. * @param {number} min The minimum possible value.
  21096. * @param {number} max The maximum possible value.
  21097. * @returns {number} Returns the random number.
  21098. */
  21099. function baseRandom(min, max) {
  21100. return min + floor(nativeRandom() * (max - min + 1));
  21101. }
  21102. /**
  21103. * The base implementation of `_.reduce` and `_.reduceRight` without support
  21104. * for callback shorthands or `this` binding, which iterates over `collection`
  21105. * using the provided `eachFunc`.
  21106. *
  21107. * @private
  21108. * @param {Array|Object|string} collection The collection to iterate over.
  21109. * @param {Function} iteratee The function invoked per iteration.
  21110. * @param {*} accumulator The initial value.
  21111. * @param {boolean} initFromCollection Specify using the first or last element
  21112. * of `collection` as the initial value.
  21113. * @param {Function} eachFunc The function to iterate over `collection`.
  21114. * @returns {*} Returns the accumulated value.
  21115. */
  21116. function baseReduce(collection, iteratee, accumulator, initFromCollection, eachFunc) {
  21117. eachFunc(collection, function(value, index, collection) {
  21118. accumulator = initFromCollection
  21119. ? (initFromCollection = false, value)
  21120. : iteratee(accumulator, value, index, collection)
  21121. });
  21122. return accumulator;
  21123. }
  21124. /**
  21125. * The base implementation of `setData` without support for hot loop detection.
  21126. *
  21127. * @private
  21128. * @param {Function} func The function to associate metadata with.
  21129. * @param {*} data The metadata.
  21130. * @returns {Function} Returns `func`.
  21131. */
  21132. var baseSetData = !metaMap ? identity : function(func, data) {
  21133. metaMap.set(func, data);
  21134. return func;
  21135. };
  21136. /**
  21137. * The base implementation of `_.slice` without an iteratee call guard.
  21138. *
  21139. * @private
  21140. * @param {Array} array The array to slice.
  21141. * @param {number} [start=0] The start position.
  21142. * @param {number} [end=array.length] The end position.
  21143. * @returns {Array} Returns the slice of `array`.
  21144. */
  21145. function baseSlice(array, start, end) {
  21146. var index = -1,
  21147. length = array.length;
  21148. start = start == null ? 0 : (+start || 0);
  21149. if (start < 0) {
  21150. start = -start > length ? 0 : (length + start);
  21151. }
  21152. end = (typeof end == 'undefined' || end > length) ? length : (+end || 0);
  21153. if (end < 0) {
  21154. end += length;
  21155. }
  21156. length = start > end ? 0 : (end - start) >>> 0;
  21157. start >>>= 0;
  21158. var result = Array(length);
  21159. while (++index < length) {
  21160. result[index] = array[index + start];
  21161. }
  21162. return result;
  21163. }
  21164. /**
  21165. * The base implementation of `_.some` without support for callback shorthands
  21166. * or `this` binding.
  21167. *
  21168. * @private
  21169. * @param {Array|Object|string} collection The collection to iterate over.
  21170. * @param {Function} predicate The function invoked per iteration.
  21171. * @returns {boolean} Returns `true` if any element passes the predicate check,
  21172. * else `false`.
  21173. */
  21174. function baseSome(collection, predicate) {
  21175. var result;
  21176. baseEach(collection, function(value, index, collection) {
  21177. result = predicate(value, index, collection);
  21178. return !result;
  21179. });
  21180. return !!result;
  21181. }
  21182. /**
  21183. * The base implementation of `_.uniq` without support for callback shorthands
  21184. * and `this` binding.
  21185. *
  21186. * @private
  21187. * @param {Array} array The array to inspect.
  21188. * @param {Function} [iteratee] The function invoked per iteration.
  21189. * @returns {Array} Returns the new duplicate-value-free array.
  21190. */
  21191. function baseUniq(array, iteratee) {
  21192. var index = -1,
  21193. indexOf = getIndexOf(),
  21194. length = array.length,
  21195. isCommon = indexOf == baseIndexOf,
  21196. isLarge = isCommon && length >= 200,
  21197. seen = isLarge && createCache(),
  21198. result = [];
  21199. if (seen) {
  21200. indexOf = cacheIndexOf;
  21201. isCommon = false;
  21202. } else {
  21203. isLarge = false;
  21204. seen = iteratee ? [] : result;
  21205. }
  21206. outer:
  21207. while (++index < length) {
  21208. var value = array[index],
  21209. computed = iteratee ? iteratee(value, index, array) : value;
  21210. if (isCommon && value === value) {
  21211. var seenIndex = seen.length;
  21212. while (seenIndex--) {
  21213. if (seen[seenIndex] === computed) {
  21214. continue outer;
  21215. }
  21216. }
  21217. if (iteratee) {
  21218. seen.push(computed);
  21219. }
  21220. result.push(value);
  21221. }
  21222. else if (indexOf(seen, computed) < 0) {
  21223. if (iteratee || isLarge) {
  21224. seen.push(computed);
  21225. }
  21226. result.push(value);
  21227. }
  21228. }
  21229. return result;
  21230. }
  21231. /**
  21232. * The base implementation of `_.values` and `_.valuesIn` which creates an
  21233. * array of `object` property values corresponding to the property names
  21234. * returned by `keysFunc`.
  21235. *
  21236. * @private
  21237. * @param {Object} object The object to query.
  21238. * @param {Array} props The property names to get values for.
  21239. * @returns {Object} Returns the array of property values.
  21240. */
  21241. function baseValues(object, props) {
  21242. var index = -1,
  21243. length = props.length,
  21244. result = Array(length);
  21245. while (++index < length) {
  21246. result[index] = object[props[index]];
  21247. }
  21248. return result;
  21249. }
  21250. /**
  21251. * The base implementation of `wrapperValue` which returns the result of
  21252. * performing a sequence of actions on the unwrapped `value`, where each
  21253. * successive action is supplied the return value of the previous.
  21254. *
  21255. * @private
  21256. * @param {*} value The unwrapped value.
  21257. * @param {Array} actions Actions to peform to resolve the unwrapped value.
  21258. * @returns {*} Returns the resolved unwrapped value.
  21259. */
  21260. function baseWrapperValue(value, actions) {
  21261. var result = value;
  21262. if (result instanceof LazyWrapper) {
  21263. result = result.value();
  21264. }
  21265. var index = -1,
  21266. length = actions.length;
  21267. while (++index < length) {
  21268. var args = [result],
  21269. action = actions[index];
  21270. push.apply(args, action.args);
  21271. result = action.func.apply(action.thisArg, args);
  21272. }
  21273. return result;
  21274. }
  21275. /**
  21276. * Performs a binary search of `array` to determine the index at which `value`
  21277. * should be inserted into `array` in order to maintain its sort order.
  21278. *
  21279. * @private
  21280. * @param {Array} array The sorted array to inspect.
  21281. * @param {*} value The value to evaluate.
  21282. * @param {boolean} [retHighest] Specify returning the highest, instead
  21283. * of the lowest, index at which a value should be inserted into `array`.
  21284. * @returns {number} Returns the index at which `value` should be inserted
  21285. * into `array`.
  21286. */
  21287. function binaryIndex(array, value, retHighest) {
  21288. var low = 0,
  21289. high = array ? array.length : low;
  21290. if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {
  21291. while (low < high) {
  21292. var mid = (low + high) >>> 1,
  21293. computed = array[mid];
  21294. if (retHighest ? (computed <= value) : (computed < value)) {
  21295. low = mid + 1;
  21296. } else {
  21297. high = mid;
  21298. }
  21299. }
  21300. return high;
  21301. }
  21302. return binaryIndexBy(array, value, identity, retHighest);
  21303. }
  21304. /**
  21305. * This function is like `binaryIndex` except that it invokes `iteratee` for
  21306. * `value` and each element of `array` to compute their sort ranking. The
  21307. * iteratee is invoked with one argument; (value).
  21308. *
  21309. * @private
  21310. * @param {Array} array The sorted array to inspect.
  21311. * @param {*} value The value to evaluate.
  21312. * @param {Function} iteratee The function invoked per iteration.
  21313. * @param {boolean} [retHighest] Specify returning the highest, instead
  21314. * of the lowest, index at which a value should be inserted into `array`.
  21315. * @returns {number} Returns the index at which `value` should be inserted
  21316. * into `array`.
  21317. */
  21318. function binaryIndexBy(array, value, iteratee, retHighest) {
  21319. value = iteratee(value);
  21320. var low = 0,
  21321. high = array ? array.length : 0,
  21322. valIsNaN = value !== value,
  21323. valIsUndef = typeof value == 'undefined';
  21324. while (low < high) {
  21325. var mid = floor((low + high) / 2),
  21326. computed = iteratee(array[mid]),
  21327. isReflexive = computed === computed;
  21328. if (valIsNaN) {
  21329. var setLow = isReflexive || retHighest;
  21330. } else if (valIsUndef) {
  21331. setLow = isReflexive && (retHighest || typeof computed != 'undefined');
  21332. } else {
  21333. setLow = retHighest ? (computed <= value) : (computed < value);
  21334. }
  21335. if (setLow) {
  21336. low = mid + 1;
  21337. } else {
  21338. high = mid;
  21339. }
  21340. }
  21341. return nativeMin(high, MAX_ARRAY_INDEX);
  21342. }
  21343. /**
  21344. * A specialized version of `baseCallback` which only supports `this` binding
  21345. * and specifying the number of arguments to provide to `func`.
  21346. *
  21347. * @private
  21348. * @param {Function} func The function to bind.
  21349. * @param {*} thisArg The `this` binding of `func`.
  21350. * @param {number} [argCount] The number of arguments to provide to `func`.
  21351. * @returns {Function} Returns the callback.
  21352. */
  21353. function bindCallback(func, thisArg, argCount) {
  21354. if (typeof func != 'function') {
  21355. return identity;
  21356. }
  21357. if (typeof thisArg == 'undefined') {
  21358. return func;
  21359. }
  21360. switch (argCount) {
  21361. case 1: return function(value) {
  21362. return func.call(thisArg, value);
  21363. };
  21364. case 3: return function(value, index, collection) {
  21365. return func.call(thisArg, value, index, collection);
  21366. };
  21367. case 4: return function(accumulator, value, index, collection) {
  21368. return func.call(thisArg, accumulator, value, index, collection);
  21369. };
  21370. case 5: return function(value, other, key, object, source) {
  21371. return func.call(thisArg, value, other, key, object, source);
  21372. };
  21373. }
  21374. return function() {
  21375. return func.apply(thisArg, arguments);
  21376. };
  21377. }
  21378. /**
  21379. * Creates a clone of the given array buffer.
  21380. *
  21381. * @private
  21382. * @param {ArrayBuffer} buffer The array buffer to clone.
  21383. * @returns {ArrayBuffer} Returns the cloned array buffer.
  21384. */
  21385. function bufferClone(buffer) {
  21386. return bufferSlice.call(buffer, 0);
  21387. }
  21388. if (!bufferSlice) {
  21389. // PhantomJS has `ArrayBuffer` and `Uint8Array` but not `Float64Array`.
  21390. bufferClone = !(ArrayBuffer && Uint8Array) ? constant(null) : function(buffer) {
  21391. var byteLength = buffer.byteLength,
  21392. floatLength = Float64Array ? floor(byteLength / FLOAT64_BYTES_PER_ELEMENT) : 0,
  21393. offset = floatLength * FLOAT64_BYTES_PER_ELEMENT,
  21394. result = new ArrayBuffer(byteLength);
  21395. if (floatLength) {
  21396. var view = new Float64Array(result, 0, floatLength);
  21397. view.set(new Float64Array(buffer, 0, floatLength));
  21398. }
  21399. if (byteLength != offset) {
  21400. view = new Uint8Array(result, offset);
  21401. view.set(new Uint8Array(buffer, offset));
  21402. }
  21403. return result;
  21404. };
  21405. }
  21406. /**
  21407. * Creates an array that is the composition of partially applied arguments,
  21408. * placeholders, and provided arguments into a single array of arguments.
  21409. *
  21410. * @private
  21411. * @param {Array|Object} args The provided arguments.
  21412. * @param {Array} partials The arguments to prepend to those provided.
  21413. * @param {Array} holders The `partials` placeholder indexes.
  21414. * @returns {Array} Returns the new array of composed arguments.
  21415. */
  21416. function composeArgs(args, partials, holders) {
  21417. var holdersLength = holders.length,
  21418. argsIndex = -1,
  21419. argsLength = nativeMax(args.length - holdersLength, 0),
  21420. leftIndex = -1,
  21421. leftLength = partials.length,
  21422. result = Array(argsLength + leftLength);
  21423. while (++leftIndex < leftLength) {
  21424. result[leftIndex] = partials[leftIndex];
  21425. }
  21426. while (++argsIndex < holdersLength) {
  21427. result[holders[argsIndex]] = args[argsIndex];
  21428. }
  21429. while (argsLength--) {
  21430. result[leftIndex++] = args[argsIndex++];
  21431. }
  21432. return result;
  21433. }
  21434. /**
  21435. * This function is like `composeArgs` except that the arguments composition
  21436. * is tailored for `_.partialRight`.
  21437. *
  21438. * @private
  21439. * @param {Array|Object} args The provided arguments.
  21440. * @param {Array} partials The arguments to append to those provided.
  21441. * @param {Array} holders The `partials` placeholder indexes.
  21442. * @returns {Array} Returns the new array of composed arguments.
  21443. */
  21444. function composeArgsRight(args, partials, holders) {
  21445. var holdersIndex = -1,
  21446. holdersLength = holders.length,
  21447. argsIndex = -1,
  21448. argsLength = nativeMax(args.length - holdersLength, 0),
  21449. rightIndex = -1,
  21450. rightLength = partials.length,
  21451. result = Array(argsLength + rightLength);
  21452. while (++argsIndex < argsLength) {
  21453. result[argsIndex] = args[argsIndex];
  21454. }
  21455. var pad = argsIndex;
  21456. while (++rightIndex < rightLength) {
  21457. result[pad + rightIndex] = partials[rightIndex];
  21458. }
  21459. while (++holdersIndex < holdersLength) {
  21460. result[pad + holders[holdersIndex]] = args[argsIndex++];
  21461. }
  21462. return result;
  21463. }
  21464. /**
  21465. * Creates a function that aggregates a collection, creating an accumulator
  21466. * object composed from the results of running each element in the collection
  21467. * through an iteratee. The `setter` sets the keys and values of the accumulator
  21468. * object. If `initializer` is provided initializes the accumulator object.
  21469. *
  21470. * @private
  21471. * @param {Function} setter The function to set keys and values of the accumulator object.
  21472. * @param {Function} [initializer] The function to initialize the accumulator object.
  21473. * @returns {Function} Returns the new aggregator function.
  21474. */
  21475. function createAggregator(setter, initializer) {
  21476. return function(collection, iteratee, thisArg) {
  21477. var result = initializer ? initializer() : {};
  21478. iteratee = getCallback(iteratee, thisArg, 3);
  21479. if (isArray(collection)) {
  21480. var index = -1,
  21481. length = collection.length;
  21482. while (++index < length) {
  21483. var value = collection[index];
  21484. setter(result, value, iteratee(value, index, collection), collection);
  21485. }
  21486. } else {
  21487. baseEach(collection, function(value, key, collection) {
  21488. setter(result, value, iteratee(value, key, collection), collection);
  21489. });
  21490. }
  21491. return result;
  21492. };
  21493. }
  21494. /**
  21495. * Creates a function that assigns properties of source object(s) to a given
  21496. * destination object.
  21497. *
  21498. * @private
  21499. * @param {Function} assigner The function to assign values.
  21500. * @returns {Function} Returns the new assigner function.
  21501. */
  21502. function createAssigner(assigner) {
  21503. return function() {
  21504. var length = arguments.length,
  21505. object = arguments[0];
  21506. if (length < 2 || object == null) {
  21507. return object;
  21508. }
  21509. if (length > 3 && isIterateeCall(arguments[1], arguments[2], arguments[3])) {
  21510. length = 2;
  21511. }
  21512. // Juggle arguments.
  21513. if (length > 3 && typeof arguments[length - 2] == 'function') {
  21514. var customizer = bindCallback(arguments[--length - 1], arguments[length--], 5);
  21515. } else if (length > 2 && typeof arguments[length - 1] == 'function') {
  21516. customizer = arguments[--length];
  21517. }
  21518. var index = 0;
  21519. while (++index < length) {
  21520. var source = arguments[index];
  21521. if (source) {
  21522. assigner(object, source, customizer);
  21523. }
  21524. }
  21525. return object;
  21526. };
  21527. }
  21528. /**
  21529. * Creates a function that wraps `func` and invokes it with the `this`
  21530. * binding of `thisArg`.
  21531. *
  21532. * @private
  21533. * @param {Function} func The function to bind.
  21534. * @param {*} [thisArg] The `this` binding of `func`.
  21535. * @returns {Function} Returns the new bound function.
  21536. */
  21537. function createBindWrapper(func, thisArg) {
  21538. var Ctor = createCtorWrapper(func);
  21539. function wrapper() {
  21540. return (this instanceof wrapper ? Ctor : func).apply(thisArg, arguments);
  21541. }
  21542. return wrapper;
  21543. }
  21544. /**
  21545. * Creates a `Set` cache object to optimize linear searches of large arrays.
  21546. *
  21547. * @private
  21548. * @param {Array} [values] The values to cache.
  21549. * @returns {null|Object} Returns the new cache object if `Set` is supported, else `null`.
  21550. */
  21551. var createCache = !(nativeCreate && Set) ? constant(null) : function(values) {
  21552. return new SetCache(values);
  21553. };
  21554. /**
  21555. * Creates a function that produces compound words out of the words in a
  21556. * given string.
  21557. *
  21558. * @private
  21559. * @param {Function} callback The function to combine each word.
  21560. * @returns {Function} Returns the new compounder function.
  21561. */
  21562. function createCompounder(callback) {
  21563. return function(string) {
  21564. var index = -1,
  21565. array = words(deburr(string)),
  21566. length = array.length,
  21567. result = '';
  21568. while (++index < length) {
  21569. result = callback(result, array[index], index);
  21570. }
  21571. return result;
  21572. };
  21573. }
  21574. /**
  21575. * Creates a function that produces an instance of `Ctor` regardless of
  21576. * whether it was invoked as part of a `new` expression or by `call` or `apply`.
  21577. *
  21578. * @private
  21579. * @param {Function} Ctor The constructor to wrap.
  21580. * @returns {Function} Returns the new wrapped function.
  21581. */
  21582. function createCtorWrapper(Ctor) {
  21583. return function() {
  21584. var thisBinding = baseCreate(Ctor.prototype),
  21585. result = Ctor.apply(thisBinding, arguments);
  21586. // Mimic the constructor's `return` behavior.
  21587. // See https://es5.github.io/#x13.2.2 for more details.
  21588. return isObject(result) ? result : thisBinding;
  21589. };
  21590. }
  21591. /**
  21592. * Creates a function that gets the extremum value of a collection.
  21593. *
  21594. * @private
  21595. * @param {Function} arrayFunc The function to get the extremum value from an array.
  21596. * @param {boolean} [isMin] Specify returning the minimum, instead of the maximum,
  21597. * extremum value.
  21598. * @returns {Function} Returns the new extremum function.
  21599. */
  21600. function createExtremum(arrayFunc, isMin) {
  21601. return function(collection, iteratee, thisArg) {
  21602. if (thisArg && isIterateeCall(collection, iteratee, thisArg)) {
  21603. iteratee = null;
  21604. }
  21605. var func = getCallback(),
  21606. noIteratee = iteratee == null;
  21607. if (!(func === baseCallback && noIteratee)) {
  21608. noIteratee = false;
  21609. iteratee = func(iteratee, thisArg, 3);
  21610. }
  21611. if (noIteratee) {
  21612. var isArr = isArray(collection);
  21613. if (!isArr && isString(collection)) {
  21614. iteratee = charAtCallback;
  21615. } else {
  21616. return arrayFunc(isArr ? collection : toIterable(collection));
  21617. }
  21618. }
  21619. return extremumBy(collection, iteratee, isMin);
  21620. };
  21621. }
  21622. /**
  21623. * Creates a function that wraps `func` and invokes it with optional `this`
  21624. * binding of, partial application, and currying.
  21625. *
  21626. * @private
  21627. * @param {Function|string} func The function or method name to reference.
  21628. * @param {number} bitmask The bitmask of flags. See `createWrapper` for more details.
  21629. * @param {*} [thisArg] The `this` binding of `func`.
  21630. * @param {Array} [partials] The arguments to prepend to those provided to the new function.
  21631. * @param {Array} [holders] The `partials` placeholder indexes.
  21632. * @param {Array} [partialsRight] The arguments to append to those provided to the new function.
  21633. * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.
  21634. * @param {Array} [argPos] The argument positions of the new function.
  21635. * @param {number} [ary] The arity cap of `func`.
  21636. * @param {number} [arity] The arity of `func`.
  21637. * @returns {Function} Returns the new wrapped function.
  21638. */
  21639. function createHybridWrapper(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {
  21640. var isAry = bitmask & ARY_FLAG,
  21641. isBind = bitmask & BIND_FLAG,
  21642. isBindKey = bitmask & BIND_KEY_FLAG,
  21643. isCurry = bitmask & CURRY_FLAG,
  21644. isCurryBound = bitmask & CURRY_BOUND_FLAG,
  21645. isCurryRight = bitmask & CURRY_RIGHT_FLAG;
  21646. var Ctor = !isBindKey && createCtorWrapper(func),
  21647. key = func;
  21648. function wrapper() {
  21649. // Avoid `arguments` object use disqualifying optimizations by
  21650. // converting it to an array before providing it to other functions.
  21651. var length = arguments.length,
  21652. index = length,
  21653. args = Array(length);
  21654. while (index--) {
  21655. args[index] = arguments[index];
  21656. }
  21657. if (partials) {
  21658. args = composeArgs(args, partials, holders);
  21659. }
  21660. if (partialsRight) {
  21661. args = composeArgsRight(args, partialsRight, holdersRight);
  21662. }
  21663. if (isCurry || isCurryRight) {
  21664. var placeholder = wrapper.placeholder,
  21665. argsHolders = replaceHolders(args, placeholder);
  21666. length -= argsHolders.length;
  21667. if (length < arity) {
  21668. var newArgPos = argPos ? arrayCopy(argPos) : null,
  21669. newArity = nativeMax(arity - length, 0),
  21670. newsHolders = isCurry ? argsHolders : null,
  21671. newHoldersRight = isCurry ? null : argsHolders,
  21672. newPartials = isCurry ? args : null,
  21673. newPartialsRight = isCurry ? null : args;
  21674. bitmask |= (isCurry ? PARTIAL_FLAG : PARTIAL_RIGHT_FLAG);
  21675. bitmask &= ~(isCurry ? PARTIAL_RIGHT_FLAG : PARTIAL_FLAG);
  21676. if (!isCurryBound) {
  21677. bitmask &= ~(BIND_FLAG | BIND_KEY_FLAG);
  21678. }
  21679. var result = createHybridWrapper(func, bitmask, thisArg, newPartials, newsHolders, newPartialsRight, newHoldersRight, newArgPos, ary, newArity);
  21680. result.placeholder = placeholder;
  21681. return result;
  21682. }
  21683. }
  21684. var thisBinding = isBind ? thisArg : this;
  21685. if (isBindKey) {
  21686. func = thisBinding[key];
  21687. }
  21688. if (argPos) {
  21689. args = reorder(args, argPos);
  21690. }
  21691. if (isAry && ary < args.length) {
  21692. args.length = ary;
  21693. }
  21694. return (this instanceof wrapper ? (Ctor || createCtorWrapper(func)) : func).apply(thisBinding, args);
  21695. }
  21696. return wrapper;
  21697. }
  21698. /**
  21699. * Creates the pad required for `string` based on the given padding length.
  21700. * The `chars` string may be truncated if the number of padding characters
  21701. * exceeds the padding length.
  21702. *
  21703. * @private
  21704. * @param {string} string The string to create padding for.
  21705. * @param {number} [length=0] The padding length.
  21706. * @param {string} [chars=' '] The string used as padding.
  21707. * @returns {string} Returns the pad for `string`.
  21708. */
  21709. function createPad(string, length, chars) {
  21710. var strLength = string.length;
  21711. length = +length;
  21712. if (strLength >= length || !nativeIsFinite(length)) {
  21713. return '';
  21714. }
  21715. var padLength = length - strLength;
  21716. chars = chars == null ? ' ' : (chars + '');
  21717. return repeat(chars, ceil(padLength / chars.length)).slice(0, padLength);
  21718. }
  21719. /**
  21720. * Creates a function that wraps `func` and invokes it with the optional `this`
  21721. * binding of `thisArg` and the `partials` prepended to those provided to
  21722. * the wrapper.
  21723. *
  21724. * @private
  21725. * @param {Function} func The function to partially apply arguments to.
  21726. * @param {number} bitmask The bitmask of flags. See `createWrapper` for more details.
  21727. * @param {*} thisArg The `this` binding of `func`.
  21728. * @param {Array} partials The arguments to prepend to those provided to the new function.
  21729. * @returns {Function} Returns the new bound function.
  21730. */
  21731. function createPartialWrapper(func, bitmask, thisArg, partials) {
  21732. var isBind = bitmask & BIND_FLAG,
  21733. Ctor = createCtorWrapper(func);
  21734. function wrapper() {
  21735. // Avoid `arguments` object use disqualifying optimizations by
  21736. // converting it to an array before providing it `func`.
  21737. var argsIndex = -1,
  21738. argsLength = arguments.length,
  21739. leftIndex = -1,
  21740. leftLength = partials.length,
  21741. args = Array(argsLength + leftLength);
  21742. while (++leftIndex < leftLength) {
  21743. args[leftIndex] = partials[leftIndex];
  21744. }
  21745. while (argsLength--) {
  21746. args[leftIndex++] = arguments[++argsIndex];
  21747. }
  21748. return (this instanceof wrapper ? Ctor : func).apply(isBind ? thisArg : this, args);
  21749. }
  21750. return wrapper;
  21751. }
  21752. /**
  21753. * Creates a function that either curries or invokes `func` with optional
  21754. * `this` binding and partially applied arguments.
  21755. *
  21756. * @private
  21757. * @param {Function|string} func The function or method name to reference.
  21758. * @param {number} bitmask The bitmask of flags.
  21759. * The bitmask may be composed of the following flags:
  21760. * 1 - `_.bind`
  21761. * 2 - `_.bindKey`
  21762. * 4 - `_.curry` or `_.curryRight` of a bound function
  21763. * 8 - `_.curry`
  21764. * 16 - `_.curryRight`
  21765. * 32 - `_.partial`
  21766. * 64 - `_.partialRight`
  21767. * 128 - `_.rearg`
  21768. * 256 - `_.ary`
  21769. * @param {*} [thisArg] The `this` binding of `func`.
  21770. * @param {Array} [partials] The arguments to be partially applied.
  21771. * @param {Array} [holders] The `partials` placeholder indexes.
  21772. * @param {Array} [argPos] The argument positions of the new function.
  21773. * @param {number} [ary] The arity cap of `func`.
  21774. * @param {number} [arity] The arity of `func`.
  21775. * @returns {Function} Returns the new wrapped function.
  21776. */
  21777. function createWrapper(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {
  21778. var isBindKey = bitmask & BIND_KEY_FLAG;
  21779. if (!isBindKey && !isFunction(func)) {
  21780. throw new TypeError(FUNC_ERROR_TEXT);
  21781. }
  21782. var length = partials ? partials.length : 0;
  21783. if (!length) {
  21784. bitmask &= ~(PARTIAL_FLAG | PARTIAL_RIGHT_FLAG);
  21785. partials = holders = null;
  21786. }
  21787. length -= (holders ? holders.length : 0);
  21788. if (bitmask & PARTIAL_RIGHT_FLAG) {
  21789. var partialsRight = partials,
  21790. holdersRight = holders;
  21791. partials = holders = null;
  21792. }
  21793. var data = !isBindKey && getData(func),
  21794. newData = [func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity];
  21795. if (data && data !== true) {
  21796. mergeData(newData, data);
  21797. bitmask = newData[1];
  21798. arity = newData[9];
  21799. }
  21800. newData[9] = arity == null
  21801. ? (isBindKey ? 0 : func.length)
  21802. : (nativeMax(arity - length, 0) || 0);
  21803. if (bitmask == BIND_FLAG) {
  21804. var result = createBindWrapper(newData[0], newData[2]);
  21805. } else if ((bitmask == PARTIAL_FLAG || bitmask == (BIND_FLAG | PARTIAL_FLAG)) && !newData[4].length) {
  21806. result = createPartialWrapper.apply(null, newData);
  21807. } else {
  21808. result = createHybridWrapper.apply(null, newData);
  21809. }
  21810. var setter = data ? baseSetData : setData;
  21811. return setter(result, newData);
  21812. }
  21813. /**
  21814. * A specialized version of `baseIsEqualDeep` for arrays with support for
  21815. * partial deep comparisons.
  21816. *
  21817. * @private
  21818. * @param {Array} array The array to compare.
  21819. * @param {Array} other The other array to compare.
  21820. * @param {Function} equalFunc The function to determine equivalents of values.
  21821. * @param {Function} [customizer] The function to customize comparing arrays.
  21822. * @param {boolean} [isWhere] Specify performing partial comparisons.
  21823. * @param {Array} [stackA] Tracks traversed `value` objects.
  21824. * @param {Array} [stackB] Tracks traversed `other` objects.
  21825. * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
  21826. */
  21827. function equalArrays(array, other, equalFunc, customizer, isWhere, stackA, stackB) {
  21828. var index = -1,
  21829. arrLength = array.length,
  21830. othLength = other.length,
  21831. result = true;
  21832. if (arrLength != othLength && !(isWhere && othLength > arrLength)) {
  21833. return false;
  21834. }
  21835. // Deep compare the contents, ignoring non-numeric properties.
  21836. while (result && ++index < arrLength) {
  21837. var arrValue = array[index],
  21838. othValue = other[index];
  21839. result = undefined;
  21840. if (customizer) {
  21841. result = isWhere
  21842. ? customizer(othValue, arrValue, index)
  21843. : customizer(arrValue, othValue, index);
  21844. }
  21845. if (typeof result == 'undefined') {
  21846. // Recursively compare arrays (susceptible to call stack limits).
  21847. if (isWhere) {
  21848. var othIndex = othLength;
  21849. while (othIndex--) {
  21850. othValue = other[othIndex];
  21851. result = (arrValue && arrValue === othValue) || equalFunc(arrValue, othValue, customizer, isWhere, stackA, stackB);
  21852. if (result) {
  21853. break;
  21854. }
  21855. }
  21856. } else {
  21857. result = (arrValue && arrValue === othValue) || equalFunc(arrValue, othValue, customizer, isWhere, stackA, stackB);
  21858. }
  21859. }
  21860. }
  21861. return !!result;
  21862. }
  21863. /**
  21864. * A specialized version of `baseIsEqualDeep` for comparing objects of
  21865. * the same `toStringTag`.
  21866. *
  21867. * **Note:** This function only supports comparing values with tags of
  21868. * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
  21869. *
  21870. * @private
  21871. * @param {Object} value The object to compare.
  21872. * @param {Object} other The other object to compare.
  21873. * @param {string} tag The `toStringTag` of the objects to compare.
  21874. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  21875. */
  21876. function equalByTag(object, other, tag) {
  21877. switch (tag) {
  21878. case boolTag:
  21879. case dateTag:
  21880. // Coerce dates and booleans to numbers, dates to milliseconds and booleans
  21881. // to `1` or `0` treating invalid dates coerced to `NaN` as not equal.
  21882. return +object == +other;
  21883. case errorTag:
  21884. return object.name == other.name && object.message == other.message;
  21885. case numberTag:
  21886. // Treat `NaN` vs. `NaN` as equal.
  21887. return (object != +object)
  21888. ? other != +other
  21889. // But, treat `-0` vs. `+0` as not equal.
  21890. : (object == 0 ? ((1 / object) == (1 / other)) : object == +other);
  21891. case regexpTag:
  21892. case stringTag:
  21893. // Coerce regexes to strings and treat strings primitives and string
  21894. // objects as equal. See https://es5.github.io/#x15.10.6.4 for more details.
  21895. return object == (other + '');
  21896. }
  21897. return false;
  21898. }
  21899. /**
  21900. * A specialized version of `baseIsEqualDeep` for objects with support for
  21901. * partial deep comparisons.
  21902. *
  21903. * @private
  21904. * @param {Object} object The object to compare.
  21905. * @param {Object} other The other object to compare.
  21906. * @param {Function} equalFunc The function to determine equivalents of values.
  21907. * @param {Function} [customizer] The function to customize comparing values.
  21908. * @param {boolean} [isWhere] Specify performing partial comparisons.
  21909. * @param {Array} [stackA] Tracks traversed `value` objects.
  21910. * @param {Array} [stackB] Tracks traversed `other` objects.
  21911. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  21912. */
  21913. function equalObjects(object, other, equalFunc, customizer, isWhere, stackA, stackB) {
  21914. var objProps = keys(object),
  21915. objLength = objProps.length,
  21916. othProps = keys(other),
  21917. othLength = othProps.length;
  21918. if (objLength != othLength && !isWhere) {
  21919. return false;
  21920. }
  21921. var hasCtor,
  21922. index = -1;
  21923. while (++index < objLength) {
  21924. var key = objProps[index],
  21925. result = hasOwnProperty.call(other, key);
  21926. if (result) {
  21927. var objValue = object[key],
  21928. othValue = other[key];
  21929. result = undefined;
  21930. if (customizer) {
  21931. result = isWhere
  21932. ? customizer(othValue, objValue, key)
  21933. : customizer(objValue, othValue, key);
  21934. }
  21935. if (typeof result == 'undefined') {
  21936. // Recursively compare objects (susceptible to call stack limits).
  21937. result = (objValue && objValue === othValue) || equalFunc(objValue, othValue, customizer, isWhere, stackA, stackB);
  21938. }
  21939. }
  21940. if (!result) {
  21941. return false;
  21942. }
  21943. hasCtor || (hasCtor = key == 'constructor');
  21944. }
  21945. if (!hasCtor) {
  21946. var objCtor = object.constructor,
  21947. othCtor = other.constructor;
  21948. // Non `Object` object instances with different constructors are not equal.
  21949. if (objCtor != othCtor && ('constructor' in object && 'constructor' in other) &&
  21950. !(typeof objCtor == 'function' && objCtor instanceof objCtor && typeof othCtor == 'function' && othCtor instanceof othCtor)) {
  21951. return false;
  21952. }
  21953. }
  21954. return true;
  21955. }
  21956. /**
  21957. * Gets the extremum value of `collection` invoking `iteratee` for each value
  21958. * in `collection` to generate the criterion by which the value is ranked.
  21959. * The `iteratee` is invoked with three arguments; (value, index, collection).
  21960. *
  21961. * @private
  21962. * @param {Array|Object|string} collection The collection to iterate over.
  21963. * @param {Function} iteratee The function invoked per iteration.
  21964. * @param {boolean} [isMin] Specify returning the minimum, instead of the
  21965. * maximum, extremum value.
  21966. * @returns {*} Returns the extremum value.
  21967. */
  21968. function extremumBy(collection, iteratee, isMin) {
  21969. var exValue = isMin ? POSITIVE_INFINITY : NEGATIVE_INFINITY,
  21970. computed = exValue,
  21971. result = computed;
  21972. baseEach(collection, function(value, index, collection) {
  21973. var current = iteratee(value, index, collection);
  21974. if ((isMin ? current < computed : current > computed) || (current === exValue && current === result)) {
  21975. computed = current;
  21976. result = value;
  21977. }
  21978. });
  21979. return result;
  21980. }
  21981. /**
  21982. * Gets the appropriate "callback" function. If the `_.callback` method is
  21983. * customized this function returns the custom method, otherwise it returns
  21984. * the `baseCallback` function. If arguments are provided the chosen function
  21985. * is invoked with them and its result is returned.
  21986. *
  21987. * @private
  21988. * @returns {Function} Returns the chosen function or its result.
  21989. */
  21990. function getCallback(func, thisArg, argCount) {
  21991. var result = lodash.callback || callback;
  21992. result = result === callback ? baseCallback : result;
  21993. return argCount ? result(func, thisArg, argCount) : result;
  21994. }
  21995. /**
  21996. * Gets metadata for `func`.
  21997. *
  21998. * @private
  21999. * @param {Function} func The function to query.
  22000. * @returns {*} Returns the metadata for `func`.
  22001. */
  22002. var getData = !metaMap ? noop : function(func) {
  22003. return metaMap.get(func);
  22004. };
  22005. /**
  22006. * Gets the appropriate "indexOf" function. If the `_.indexOf` method is
  22007. * customized this function returns the custom method, otherwise it returns
  22008. * the `baseIndexOf` function. If arguments are provided the chosen function
  22009. * is invoked with them and its result is returned.
  22010. *
  22011. * @private
  22012. * @returns {Function|number} Returns the chosen function or its result.
  22013. */
  22014. function getIndexOf(collection, target, fromIndex) {
  22015. var result = lodash.indexOf || indexOf;
  22016. result = result === indexOf ? baseIndexOf : result;
  22017. return collection ? result(collection, target, fromIndex) : result;
  22018. }
  22019. /**
  22020. * Gets the view, applying any `transforms` to the `start` and `end` positions.
  22021. *
  22022. * @private
  22023. * @param {number} start The start of the view.
  22024. * @param {number} end The end of the view.
  22025. * @param {Array} [transforms] The transformations to apply to the view.
  22026. * @returns {Object} Returns an object containing the `start` and `end`
  22027. * positions of the view.
  22028. */
  22029. function getView(start, end, transforms) {
  22030. var index = -1,
  22031. length = transforms ? transforms.length : 0;
  22032. while (++index < length) {
  22033. var data = transforms[index],
  22034. size = data.size;
  22035. switch (data.type) {
  22036. case 'drop': start += size; break;
  22037. case 'dropRight': end -= size; break;
  22038. case 'take': end = nativeMin(end, start + size); break;
  22039. case 'takeRight': start = nativeMax(start, end - size); break;
  22040. }
  22041. }
  22042. return { 'start': start, 'end': end };
  22043. }
  22044. /**
  22045. * Initializes an array clone.
  22046. *
  22047. * @private
  22048. * @param {Array} array The array to clone.
  22049. * @returns {Array} Returns the initialized clone.
  22050. */
  22051. function initCloneArray(array) {
  22052. var length = array.length,
  22053. result = new array.constructor(length);
  22054. // Add array properties assigned by `RegExp#exec`.
  22055. if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
  22056. result.index = array.index;
  22057. result.input = array.input;
  22058. }
  22059. return result;
  22060. }
  22061. /**
  22062. * Initializes an object clone.
  22063. *
  22064. * @private
  22065. * @param {Object} object The object to clone.
  22066. * @returns {Object} Returns the initialized clone.
  22067. */
  22068. function initCloneObject(object) {
  22069. var Ctor = object.constructor;
  22070. if (!(typeof Ctor == 'function' && Ctor instanceof Ctor)) {
  22071. Ctor = Object;
  22072. }
  22073. return new Ctor;
  22074. }
  22075. /**
  22076. * Initializes an object clone based on its `toStringTag`.
  22077. *
  22078. * **Note:** This function only supports cloning values with tags of
  22079. * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
  22080. *
  22081. *
  22082. * @private
  22083. * @param {Object} object The object to clone.
  22084. * @param {string} tag The `toStringTag` of the object to clone.
  22085. * @param {boolean} [isDeep] Specify a deep clone.
  22086. * @returns {Object} Returns the initialized clone.
  22087. */
  22088. function initCloneByTag(object, tag, isDeep) {
  22089. var Ctor = object.constructor;
  22090. switch (tag) {
  22091. case arrayBufferTag:
  22092. return bufferClone(object);
  22093. case boolTag:
  22094. case dateTag:
  22095. return new Ctor(+object);
  22096. case float32Tag: case float64Tag:
  22097. case int8Tag: case int16Tag: case int32Tag:
  22098. case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
  22099. var buffer = object.buffer;
  22100. return new Ctor(isDeep ? bufferClone(buffer) : buffer, object.byteOffset, object.length);
  22101. case numberTag:
  22102. case stringTag:
  22103. return new Ctor(object);
  22104. case regexpTag:
  22105. var result = new Ctor(object.source, reFlags.exec(object));
  22106. result.lastIndex = object.lastIndex;
  22107. }
  22108. return result;
  22109. }
  22110. /**
  22111. * Checks if `func` is eligible for `this` binding.
  22112. *
  22113. * @private
  22114. * @param {Function} func The function to check.
  22115. * @returns {boolean} Returns `true` if `func` is eligible, else `false`.
  22116. */
  22117. function isBindable(func) {
  22118. var support = lodash.support,
  22119. result = !(support.funcNames ? func.name : support.funcDecomp);
  22120. if (!result) {
  22121. var source = fnToString.call(func);
  22122. if (!support.funcNames) {
  22123. result = !reFuncName.test(source);
  22124. }
  22125. if (!result) {
  22126. // Check if `func` references the `this` keyword and store the result.
  22127. result = reThis.test(source) || isNative(func);
  22128. baseSetData(func, result);
  22129. }
  22130. }
  22131. return result;
  22132. }
  22133. /**
  22134. * Checks if `value` is a valid array-like index.
  22135. *
  22136. * @private
  22137. * @param {*} value The value to check.
  22138. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
  22139. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
  22140. */
  22141. function isIndex(value, length) {
  22142. value = +value;
  22143. length = length == null ? MAX_SAFE_INTEGER : length;
  22144. return value > -1 && value % 1 == 0 && value < length;
  22145. }
  22146. /**
  22147. * Checks if the provided arguments are from an iteratee call.
  22148. *
  22149. * @private
  22150. * @param {*} value The potential iteratee value argument.
  22151. * @param {*} index The potential iteratee index or key argument.
  22152. * @param {*} object The potential iteratee object argument.
  22153. * @returns {boolean} Returns `true` if the arguments are from an iteratee call, else `false`.
  22154. */
  22155. function isIterateeCall(value, index, object) {
  22156. if (!isObject(object)) {
  22157. return false;
  22158. }
  22159. var type = typeof index;
  22160. if (type == 'number') {
  22161. var length = object.length,
  22162. prereq = isLength(length) && isIndex(index, length);
  22163. } else {
  22164. prereq = type == 'string' && index in object;
  22165. }
  22166. return prereq && object[index] === value;
  22167. }
  22168. /**
  22169. * Checks if `value` is a valid array-like length.
  22170. *
  22171. * **Note:** This function is based on ES `ToLength`. See the
  22172. * [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength)
  22173. * for more details.
  22174. *
  22175. * @private
  22176. * @param {*} value The value to check.
  22177. * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
  22178. */
  22179. function isLength(value) {
  22180. return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
  22181. }
  22182. /**
  22183. * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
  22184. *
  22185. * @private
  22186. * @param {*} value The value to check.
  22187. * @returns {boolean} Returns `true` if `value` if suitable for strict
  22188. * equality comparisons, else `false`.
  22189. */
  22190. function isStrictComparable(value) {
  22191. return value === value && (value === 0 ? ((1 / value) > 0) : !isObject(value));
  22192. }
  22193. /**
  22194. * Merges the function metadata of `source` into `data`.
  22195. *
  22196. * Merging metadata reduces the number of wrappers required to invoke a function.
  22197. * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`
  22198. * may be applied regardless of execution order. Methods like `_.ary` and `_.rearg`
  22199. * augment function arguments, making the order in which they are executed important,
  22200. * preventing the merging of metadata. However, we make an exception for a safe
  22201. * common case where curried functions have `_.ary` and or `_.rearg` applied.
  22202. *
  22203. * @private
  22204. * @param {Array} data The destination metadata.
  22205. * @param {Array} source The source metadata.
  22206. * @returns {Array} Returns `data`.
  22207. */
  22208. function mergeData(data, source) {
  22209. var bitmask = data[1],
  22210. srcBitmask = source[1],
  22211. newBitmask = bitmask | srcBitmask;
  22212. var arityFlags = ARY_FLAG | REARG_FLAG,
  22213. bindFlags = BIND_FLAG | BIND_KEY_FLAG,
  22214. comboFlags = arityFlags | bindFlags | CURRY_BOUND_FLAG | CURRY_RIGHT_FLAG;
  22215. var isAry = bitmask & ARY_FLAG && !(srcBitmask & ARY_FLAG),
  22216. isRearg = bitmask & REARG_FLAG && !(srcBitmask & REARG_FLAG),
  22217. argPos = (isRearg ? data : source)[7],
  22218. ary = (isAry ? data : source)[8];
  22219. var isCommon = !(bitmask >= REARG_FLAG && srcBitmask > bindFlags) &&
  22220. !(bitmask > bindFlags && srcBitmask >= REARG_FLAG);
  22221. var isCombo = (newBitmask >= arityFlags && newBitmask <= comboFlags) &&
  22222. (bitmask < REARG_FLAG || ((isRearg || isAry) && argPos.length <= ary));
  22223. // Exit early if metadata can't be merged.
  22224. if (!(isCommon || isCombo)) {
  22225. return data;
  22226. }
  22227. // Use source `thisArg` if available.
  22228. if (srcBitmask & BIND_FLAG) {
  22229. data[2] = source[2];
  22230. // Set when currying a bound function.
  22231. newBitmask |= (bitmask & BIND_FLAG) ? 0 : CURRY_BOUND_FLAG;
  22232. }
  22233. // Compose partial arguments.
  22234. var value = source[3];
  22235. if (value) {
  22236. var partials = data[3];
  22237. data[3] = partials ? composeArgs(partials, value, source[4]) : arrayCopy(value);
  22238. data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : arrayCopy(source[4]);
  22239. }
  22240. // Compose partial right arguments.
  22241. value = source[5];
  22242. if (value) {
  22243. partials = data[5];
  22244. data[5] = partials ? composeArgsRight(partials, value, source[6]) : arrayCopy(value);
  22245. data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : arrayCopy(source[6]);
  22246. }
  22247. // Use source `argPos` if available.
  22248. value = source[7];
  22249. if (value) {
  22250. data[7] = arrayCopy(value);
  22251. }
  22252. // Use source `ary` if it's smaller.
  22253. if (srcBitmask & ARY_FLAG) {
  22254. data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);
  22255. }
  22256. // Use source `arity` if one is not provided.
  22257. if (data[9] == null) {
  22258. data[9] = source[9];
  22259. }
  22260. // Use source `func` and merge bitmasks.
  22261. data[0] = source[0];
  22262. data[1] = newBitmask;
  22263. return data;
  22264. }
  22265. /**
  22266. * A specialized version of `_.pick` that picks `object` properties specified
  22267. * by the `props` array.
  22268. *
  22269. * @private
  22270. * @param {Object} object The source object.
  22271. * @param {string[]} props The property names to pick.
  22272. * @returns {Object} Returns the new object.
  22273. */
  22274. function pickByArray(object, props) {
  22275. object = toObject(object);
  22276. var index = -1,
  22277. length = props.length,
  22278. result = {};
  22279. while (++index < length) {
  22280. var key = props[index];
  22281. if (key in object) {
  22282. result[key] = object[key];
  22283. }
  22284. }
  22285. return result;
  22286. }
  22287. /**
  22288. * A specialized version of `_.pick` that picks `object` properties `predicate`
  22289. * returns truthy for.
  22290. *
  22291. * @private
  22292. * @param {Object} object The source object.
  22293. * @param {Function} predicate The function invoked per iteration.
  22294. * @returns {Object} Returns the new object.
  22295. */
  22296. function pickByCallback(object, predicate) {
  22297. var result = {};
  22298. baseForIn(object, function(value, key, object) {
  22299. if (predicate(value, key, object)) {
  22300. result[key] = value;
  22301. }
  22302. });
  22303. return result;
  22304. }
  22305. /**
  22306. * Reorder `array` according to the specified indexes where the element at
  22307. * the first index is assigned as the first element, the element at
  22308. * the second index is assigned as the second element, and so on.
  22309. *
  22310. * @private
  22311. * @param {Array} array The array to reorder.
  22312. * @param {Array} indexes The arranged array indexes.
  22313. * @returns {Array} Returns `array`.
  22314. */
  22315. function reorder(array, indexes) {
  22316. var arrLength = array.length,
  22317. length = nativeMin(indexes.length, arrLength),
  22318. oldArray = arrayCopy(array);
  22319. while (length--) {
  22320. var index = indexes[length];
  22321. array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined;
  22322. }
  22323. return array;
  22324. }
  22325. /**
  22326. * Sets metadata for `func`.
  22327. *
  22328. * **Note:** If this function becomes hot, i.e. is invoked a lot in a short
  22329. * period of time, it will trip its breaker and transition to an identity function
  22330. * to avoid garbage collection pauses in V8. See [V8 issue 2070](https://code.google.com/p/v8/issues/detail?id=2070)
  22331. * for more details.
  22332. *
  22333. * @private
  22334. * @param {Function} func The function to associate metadata with.
  22335. * @param {*} data The metadata.
  22336. * @returns {Function} Returns `func`.
  22337. */
  22338. var setData = (function() {
  22339. var count = 0,
  22340. lastCalled = 0;
  22341. return function(key, value) {
  22342. var stamp = now(),
  22343. remaining = HOT_SPAN - (stamp - lastCalled);
  22344. lastCalled = stamp;
  22345. if (remaining > 0) {
  22346. if (++count >= HOT_COUNT) {
  22347. return key;
  22348. }
  22349. } else {
  22350. count = 0;
  22351. }
  22352. return baseSetData(key, value);
  22353. };
  22354. }());
  22355. /**
  22356. * A fallback implementation of `_.isPlainObject` which checks if `value`
  22357. * is an object created by the `Object` constructor or has a `[[Prototype]]`
  22358. * of `null`.
  22359. *
  22360. * @private
  22361. * @param {*} value The value to check.
  22362. * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
  22363. */
  22364. function shimIsPlainObject(value) {
  22365. var Ctor,
  22366. support = lodash.support;
  22367. // Exit early for non `Object` objects.
  22368. if (!(isObjectLike(value) && objToString.call(value) == objectTag) ||
  22369. (!hasOwnProperty.call(value, 'constructor') &&
  22370. (Ctor = value.constructor, typeof Ctor == 'function' && !(Ctor instanceof Ctor)))) {
  22371. return false;
  22372. }
  22373. // IE < 9 iterates inherited properties before own properties. If the first
  22374. // iterated property is an object's own property then there are no inherited
  22375. // enumerable properties.
  22376. var result;
  22377. // In most environments an object's own properties are iterated before
  22378. // its inherited properties. If the last iterated property is an object's
  22379. // own property then there are no inherited enumerable properties.
  22380. baseForIn(value, function(subValue, key) {
  22381. result = key;
  22382. });
  22383. return typeof result == 'undefined' || hasOwnProperty.call(value, result);
  22384. }
  22385. /**
  22386. * A fallback implementation of `Object.keys` which creates an array of the
  22387. * own enumerable property names of `object`.
  22388. *
  22389. * @private
  22390. * @param {Object} object The object to inspect.
  22391. * @returns {Array} Returns the array of property names.
  22392. */
  22393. function shimKeys(object) {
  22394. var props = keysIn(object),
  22395. propsLength = props.length,
  22396. length = propsLength && object.length,
  22397. support = lodash.support;
  22398. var allowIndexes = length && isLength(length) &&
  22399. (isArray(object) || (support.nonEnumArgs && isArguments(object)));
  22400. var index = -1,
  22401. result = [];
  22402. while (++index < propsLength) {
  22403. var key = props[index];
  22404. if ((allowIndexes && isIndex(key, length)) || hasOwnProperty.call(object, key)) {
  22405. result.push(key);
  22406. }
  22407. }
  22408. return result;
  22409. }
  22410. /**
  22411. * Converts `value` to an array-like object if it is not one.
  22412. *
  22413. * @private
  22414. * @param {*} value The value to process.
  22415. * @returns {Array|Object} Returns the array-like object.
  22416. */
  22417. function toIterable(value) {
  22418. if (value == null) {
  22419. return [];
  22420. }
  22421. if (!isLength(value.length)) {
  22422. return values(value);
  22423. }
  22424. return isObject(value) ? value : Object(value);
  22425. }
  22426. /**
  22427. * Converts `value` to an object if it is not one.
  22428. *
  22429. * @private
  22430. * @param {*} value The value to process.
  22431. * @returns {Object} Returns the object.
  22432. */
  22433. function toObject(value) {
  22434. return isObject(value) ? value : Object(value);
  22435. }
  22436. /*------------------------------------------------------------------------*/
  22437. /**
  22438. * Creates an array of elements split into groups the length of `size`.
  22439. * If `collection` can't be split evenly, the final chunk will be the remaining
  22440. * elements.
  22441. *
  22442. * @static
  22443. * @memberOf _
  22444. * @category Array
  22445. * @param {Array} array The array to process.
  22446. * @param {numer} [size=1] The length of each chunk.
  22447. * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
  22448. * @returns {Array} Returns the new array containing chunks.
  22449. * @example
  22450. *
  22451. * _.chunk(['a', 'b', 'c', 'd'], 2);
  22452. * // => [['a', 'b'], ['c', 'd']]
  22453. *
  22454. * _.chunk(['a', 'b', 'c', 'd'], 3);
  22455. * // => [['a', 'b', 'c'], ['d']]
  22456. */
  22457. function chunk(array, size, guard) {
  22458. if (guard ? isIterateeCall(array, size, guard) : size == null) {
  22459. size = 1;
  22460. } else {
  22461. size = nativeMax(+size || 1, 1);
  22462. }
  22463. var index = 0,
  22464. length = array ? array.length : 0,
  22465. resIndex = -1,
  22466. result = Array(ceil(length / size));
  22467. while (index < length) {
  22468. result[++resIndex] = baseSlice(array, index, (index += size));
  22469. }
  22470. return result;
  22471. }
  22472. /**
  22473. * Creates an array with all falsey values removed. The values `false`, `null`,
  22474. * `0`, `""`, `undefined`, and `NaN` are falsey.
  22475. *
  22476. * @static
  22477. * @memberOf _
  22478. * @category Array
  22479. * @param {Array} array The array to compact.
  22480. * @returns {Array} Returns the new array of filtered values.
  22481. * @example
  22482. *
  22483. * _.compact([0, 1, false, 2, '', 3]);
  22484. * // => [1, 2, 3]
  22485. */
  22486. function compact(array) {
  22487. var index = -1,
  22488. length = array ? array.length : 0,
  22489. resIndex = -1,
  22490. result = [];
  22491. while (++index < length) {
  22492. var value = array[index];
  22493. if (value) {
  22494. result[++resIndex] = value;
  22495. }
  22496. }
  22497. return result;
  22498. }
  22499. /**
  22500. * Creates an array excluding all values of the provided arrays using
  22501. * `SameValueZero` for equality comparisons.
  22502. *
  22503. * **Note:** `SameValueZero` comparisons are like strict equality comparisons,
  22504. * e.g. `===`, except that `NaN` matches `NaN`. See the
  22505. * [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero)
  22506. * for more details.
  22507. *
  22508. * @static
  22509. * @memberOf _
  22510. * @category Array
  22511. * @param {Array} array The array to inspect.
  22512. * @param {...Array} [values] The arrays of values to exclude.
  22513. * @returns {Array} Returns the new array of filtered values.
  22514. * @example
  22515. *
  22516. * _.difference([1, 2, 3], [5, 2, 10]);
  22517. * // => [1, 3]
  22518. */
  22519. function difference() {
  22520. var index = -1,
  22521. length = arguments.length;
  22522. while (++index < length) {
  22523. var value = arguments[index];
  22524. if (isArray(value) || isArguments(value)) {
  22525. break;
  22526. }
  22527. }
  22528. return baseDifference(value, baseFlatten(arguments, false, true, ++index));
  22529. }
  22530. /**
  22531. * Creates a slice of `array` with `n` elements dropped from the beginning.
  22532. *
  22533. * @static
  22534. * @memberOf _
  22535. * @type Function
  22536. * @category Array
  22537. * @param {Array} array The array to query.
  22538. * @param {number} [n=1] The number of elements to drop.
  22539. * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
  22540. * @returns {Array} Returns the slice of `array`.
  22541. * @example
  22542. *
  22543. * _.drop([1, 2, 3]);
  22544. * // => [2, 3]
  22545. *
  22546. * _.drop([1, 2, 3], 2);
  22547. * // => [3]
  22548. *
  22549. * _.drop([1, 2, 3], 5);
  22550. * // => []
  22551. *
  22552. * _.drop([1, 2, 3], 0);
  22553. * // => [1, 2, 3]
  22554. */
  22555. function drop(array, n, guard) {
  22556. var length = array ? array.length : 0;
  22557. if (!length) {
  22558. return [];
  22559. }
  22560. if (guard ? isIterateeCall(array, n, guard) : n == null) {
  22561. n = 1;
  22562. }
  22563. return baseSlice(array, n < 0 ? 0 : n);
  22564. }
  22565. /**
  22566. * Creates a slice of `array` with `n` elements dropped from the end.
  22567. *
  22568. * @static
  22569. * @memberOf _
  22570. * @type Function
  22571. * @category Array
  22572. * @param {Array} array The array to query.
  22573. * @param {number} [n=1] The number of elements to drop.
  22574. * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
  22575. * @returns {Array} Returns the slice of `array`.
  22576. * @example
  22577. *
  22578. * _.dropRight([1, 2, 3]);
  22579. * // => [1, 2]
  22580. *
  22581. * _.dropRight([1, 2, 3], 2);
  22582. * // => [1]
  22583. *
  22584. * _.dropRight([1, 2, 3], 5);
  22585. * // => []
  22586. *
  22587. * _.dropRight([1, 2, 3], 0);
  22588. * // => [1, 2, 3]
  22589. */
  22590. function dropRight(array, n, guard) {
  22591. var length = array ? array.length : 0;
  22592. if (!length) {
  22593. return [];
  22594. }
  22595. if (guard ? isIterateeCall(array, n, guard) : n == null) {
  22596. n = 1;
  22597. }
  22598. n = length - (+n || 0);
  22599. return baseSlice(array, 0, n < 0 ? 0 : n);
  22600. }
  22601. /**
  22602. * Creates a slice of `array` excluding elements dropped from the end.
  22603. * Elements are dropped until `predicate` returns falsey. The predicate is
  22604. * bound to `thisArg` and invoked with three arguments; (value, index, array).
  22605. *
  22606. * If a property name is provided for `predicate` the created "_.property"
  22607. * style callback returns the property value of the given element.
  22608. *
  22609. * If an object is provided for `predicate` the created "_.matches" style
  22610. * callback returns `true` for elements that have the properties of the given
  22611. * object, else `false`.
  22612. *
  22613. * @static
  22614. * @memberOf _
  22615. * @type Function
  22616. * @category Array
  22617. * @param {Array} array The array to query.
  22618. * @param {Function|Object|string} [predicate=_.identity] The function invoked
  22619. * per element.
  22620. * @param {*} [thisArg] The `this` binding of `predicate`.
  22621. * @returns {Array} Returns the slice of `array`.
  22622. * @example
  22623. *
  22624. * _.dropRightWhile([1, 2, 3], function(n) { return n > 1; });
  22625. * // => [1]
  22626. *
  22627. * var users = [
  22628. * { 'user': 'barney', 'status': 'busy', 'active': false },
  22629. * { 'user': 'fred', 'status': 'busy', 'active': true },
  22630. * { 'user': 'pebbles', 'status': 'away', 'active': true }
  22631. * ];
  22632. *
  22633. * // using the "_.property" callback shorthand
  22634. * _.pluck(_.dropRightWhile(users, 'active'), 'user');
  22635. * // => ['barney']
  22636. *
  22637. * // using the "_.matches" callback shorthand
  22638. * _.pluck(_.dropRightWhile(users, { 'status': 'away' }), 'user');
  22639. * // => ['barney', 'fred']
  22640. */
  22641. function dropRightWhile(array, predicate, thisArg) {
  22642. var length = array ? array.length : 0;
  22643. if (!length) {
  22644. return [];
  22645. }
  22646. predicate = getCallback(predicate, thisArg, 3);
  22647. while (length-- && predicate(array[length], length, array)) {}
  22648. return baseSlice(array, 0, length + 1);
  22649. }
  22650. /**
  22651. * Creates a slice of `array` excluding elements dropped from the beginning.
  22652. * Elements are dropped until `predicate` returns falsey. The predicate is
  22653. * bound to `thisArg` and invoked with three arguments; (value, index, array).
  22654. *
  22655. * If a property name is provided for `predicate` the created "_.property"
  22656. * style callback returns the property value of the given element.
  22657. *
  22658. * If an object is provided for `predicate` the created "_.matches" style
  22659. * callback returns `true` for elements that have the properties of the given
  22660. * object, else `false`.
  22661. *
  22662. * @static
  22663. * @memberOf _
  22664. * @type Function
  22665. * @category Array
  22666. * @param {Array} array The array to query.
  22667. * @param {Function|Object|string} [predicate=_.identity] The function invoked
  22668. * per element.
  22669. * @param {*} [thisArg] The `this` binding of `predicate`.
  22670. * @returns {Array} Returns the slice of `array`.
  22671. * @example
  22672. *
  22673. * _.dropWhile([1, 2, 3], function(n) { return n < 3; });
  22674. * // => [3]
  22675. *
  22676. * var users = [
  22677. * { 'user': 'barney', 'status': 'busy', 'active': true },
  22678. * { 'user': 'fred', 'status': 'busy', 'active': false },
  22679. * { 'user': 'pebbles', 'status': 'away', 'active': true }
  22680. * ];
  22681. *
  22682. * // using the "_.property" callback shorthand
  22683. * _.pluck(_.dropWhile(users, 'active'), 'user');
  22684. * // => ['fred', 'pebbles']
  22685. *
  22686. * // using the "_.matches" callback shorthand
  22687. * _.pluck(_.dropWhile(users, { 'status': 'busy' }), 'user');
  22688. * // => ['pebbles']
  22689. */
  22690. function dropWhile(array, predicate, thisArg) {
  22691. var length = array ? array.length : 0;
  22692. if (!length) {
  22693. return [];
  22694. }
  22695. var index = -1;
  22696. predicate = getCallback(predicate, thisArg, 3);
  22697. while (++index < length && predicate(array[index], index, array)) {}
  22698. return baseSlice(array, index);
  22699. }
  22700. /**
  22701. * This method is like `_.find` except that it returns the index of the first
  22702. * element `predicate` returns truthy for, instead of the element itself.
  22703. *
  22704. * If a property name is provided for `predicate` the created "_.property"
  22705. * style callback returns the property value of the given element.
  22706. *
  22707. * If an object is provided for `predicate` the created "_.matches" style
  22708. * callback returns `true` for elements that have the properties of the given
  22709. * object, else `false`.
  22710. *
  22711. * @static
  22712. * @memberOf _
  22713. * @category Array
  22714. * @param {Array} array The array to search.
  22715. * @param {Function|Object|string} [predicate=_.identity] The function invoked
  22716. * per iteration. If a property name or object is provided it is used to
  22717. * create a "_.property" or "_.matches" style callback respectively.
  22718. * @param {*} [thisArg] The `this` binding of `predicate`.
  22719. * @returns {number} Returns the index of the found element, else `-1`.
  22720. * @example
  22721. *
  22722. * var users = [
  22723. * { 'user': 'barney', 'age': 36, 'active': false },
  22724. * { 'user': 'fred', 'age': 40, 'active': true },
  22725. * { 'user': 'pebbles', 'age': 1, 'active': false }
  22726. * ];
  22727. *
  22728. * _.findIndex(users, function(chr) { return chr.age < 40; });
  22729. * // => 0
  22730. *
  22731. * // using the "_.matches" callback shorthand
  22732. * _.findIndex(users, { 'age': 1 });
  22733. * // => 2
  22734. *
  22735. * // using the "_.property" callback shorthand
  22736. * _.findIndex(users, 'active');
  22737. * // => 1
  22738. */
  22739. function findIndex(array, predicate, thisArg) {
  22740. var index = -1,
  22741. length = array ? array.length : 0;
  22742. predicate = getCallback(predicate, thisArg, 3);
  22743. while (++index < length) {
  22744. if (predicate(array[index], index, array)) {
  22745. return index;
  22746. }
  22747. }
  22748. return -1;
  22749. }
  22750. /**
  22751. * This method is like `_.findIndex` except that it iterates over elements
  22752. * of `collection` from right to left.
  22753. *
  22754. * If a property name is provided for `predicate` the created "_.property"
  22755. * style callback returns the property value of the given element.
  22756. *
  22757. * If an object is provided for `predicate` the created "_.matches" style
  22758. * callback returns `true` for elements that have the properties of the given
  22759. * object, else `false`.
  22760. *
  22761. * @static
  22762. * @memberOf _
  22763. * @category Array
  22764. * @param {Array} array The array to search.
  22765. * @param {Function|Object|string} [predicate=_.identity] The function invoked
  22766. * per iteration. If a property name or object is provided it is used to
  22767. * create a "_.property" or "_.matches" style callback respectively.
  22768. * @param {*} [thisArg] The `this` binding of `predicate`.
  22769. * @returns {number} Returns the index of the found element, else `-1`.
  22770. * @example
  22771. *
  22772. * var users = [
  22773. * { 'user': 'barney', 'age': 36, 'active': true },
  22774. * { 'user': 'fred', 'age': 40, 'active': false },
  22775. * { 'user': 'pebbles', 'age': 1, 'active': false }
  22776. * ];
  22777. *
  22778. * _.findLastIndex(users, function(chr) { return chr.age < 40; });
  22779. * // => 2
  22780. *
  22781. * // using the "_.matches" callback shorthand
  22782. * _.findLastIndex(users, { 'age': 40 });
  22783. * // => 1
  22784. *
  22785. * // using the "_.property" callback shorthand
  22786. * _.findLastIndex(users, 'active');
  22787. * // => 0
  22788. */
  22789. function findLastIndex(array, predicate, thisArg) {
  22790. var length = array ? array.length : 0;
  22791. predicate = getCallback(predicate, thisArg, 3);
  22792. while (length--) {
  22793. if (predicate(array[length], length, array)) {
  22794. return length;
  22795. }
  22796. }
  22797. return -1;
  22798. }
  22799. /**
  22800. * Gets the first element of `array`.
  22801. *
  22802. * @static
  22803. * @memberOf _
  22804. * @alias head
  22805. * @category Array
  22806. * @param {Array} array The array to query.
  22807. * @returns {*} Returns the first element of `array`.
  22808. * @example
  22809. *
  22810. * _.first([1, 2, 3]);
  22811. * // => 1
  22812. *
  22813. * _.first([]);
  22814. * // => undefined
  22815. */
  22816. function first(array) {
  22817. return array ? array[0] : undefined;
  22818. }
  22819. /**
  22820. * Flattens a nested array. If `isDeep` is `true` the array is recursively
  22821. * flattened, otherwise it is only flattened a single level.
  22822. *
  22823. * @static
  22824. * @memberOf _
  22825. * @category Array
  22826. * @param {Array} array The array to flatten.
  22827. * @param {boolean} [isDeep] Specify a deep flatten.
  22828. * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
  22829. * @returns {Array} Returns the new flattened array.
  22830. * @example
  22831. *
  22832. * _.flatten([1, [2], [3, [[4]]]]);
  22833. * // => [1, 2, 3, [[4]]];
  22834. *
  22835. * // using `isDeep`
  22836. * _.flatten([1, [2], [3, [[4]]]], true);
  22837. * // => [1, 2, 3, 4];
  22838. */
  22839. function flatten(array, isDeep, guard) {
  22840. var length = array ? array.length : 0;
  22841. if (guard && isIterateeCall(array, isDeep, guard)) {
  22842. isDeep = false;
  22843. }
  22844. return length ? baseFlatten(array, isDeep) : [];
  22845. }
  22846. /**
  22847. * Recursively flattens a nested array.
  22848. *
  22849. * @static
  22850. * @memberOf _
  22851. * @category Array
  22852. * @param {Array} array The array to recursively flatten.
  22853. * @returns {Array} Returns the new flattened array.
  22854. * @example
  22855. *
  22856. * _.flattenDeep([1, [2], [3, [[4]]]]);
  22857. * // => [1, 2, 3, 4];
  22858. */
  22859. function flattenDeep(array) {
  22860. var length = array ? array.length : 0;
  22861. return length ? baseFlatten(array, true) : [];
  22862. }
  22863. /**
  22864. * Gets the index at which the first occurrence of `value` is found in `array`
  22865. * using `SameValueZero` for equality comparisons. If `fromIndex` is negative,
  22866. * it is used as the offset from the end of `array`. If `array` is sorted
  22867. * providing `true` for `fromIndex` performs a faster binary search.
  22868. *
  22869. * **Note:** `SameValueZero` comparisons are like strict equality comparisons,
  22870. * e.g. `===`, except that `NaN` matches `NaN`. See the
  22871. * [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero)
  22872. * for more details.
  22873. *
  22874. * @static
  22875. * @memberOf _
  22876. * @category Array
  22877. * @param {Array} array The array to search.
  22878. * @param {*} value The value to search for.
  22879. * @param {boolean|number} [fromIndex=0] The index to search from or `true`
  22880. * to perform a binary search on a sorted array.
  22881. * @returns {number} Returns the index of the matched value, else `-1`.
  22882. * @example
  22883. *
  22884. * _.indexOf([1, 2, 3, 1, 2, 3], 2);
  22885. * // => 1
  22886. *
  22887. * // using `fromIndex`
  22888. * _.indexOf([1, 2, 3, 1, 2, 3], 2, 3);
  22889. * // => 4
  22890. *
  22891. * // performing a binary search
  22892. * _.indexOf([4, 4, 5, 5, 6, 6], 5, true);
  22893. * // => 2
  22894. */
  22895. function indexOf(array, value, fromIndex) {
  22896. var length = array ? array.length : 0;
  22897. if (!length) {
  22898. return -1;
  22899. }
  22900. if (typeof fromIndex == 'number') {
  22901. fromIndex = fromIndex < 0 ? nativeMax(length + fromIndex, 0) : (fromIndex || 0);
  22902. } else if (fromIndex) {
  22903. var index = binaryIndex(array, value),
  22904. other = array[index];
  22905. return (value === value ? value === other : other !== other) ? index : -1;
  22906. }
  22907. return baseIndexOf(array, value, fromIndex);
  22908. }
  22909. /**
  22910. * Gets all but the last element of `array`.
  22911. *
  22912. * @static
  22913. * @memberOf _
  22914. * @category Array
  22915. * @param {Array} array The array to query.
  22916. * @returns {Array} Returns the slice of `array`.
  22917. * @example
  22918. *
  22919. * _.initial([1, 2, 3]);
  22920. * // => [1, 2]
  22921. */
  22922. function initial(array) {
  22923. return dropRight(array, 1);
  22924. }
  22925. /**
  22926. * Creates an array of unique values in all provided arrays using `SameValueZero`
  22927. * for equality comparisons.
  22928. *
  22929. * **Note:** `SameValueZero` comparisons are like strict equality comparisons,
  22930. * e.g. `===`, except that `NaN` matches `NaN`. See the
  22931. * [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero)
  22932. * for more details.
  22933. *
  22934. * @static
  22935. * @memberOf _
  22936. * @category Array
  22937. * @param {...Array} [arrays] The arrays to inspect.
  22938. * @returns {Array} Returns the new array of shared values.
  22939. * @example
  22940. *
  22941. * _.intersection([1, 2, 3], [5, 2, 1, 4], [2, 1]);
  22942. * // => [1, 2]
  22943. */
  22944. function intersection() {
  22945. var args = [],
  22946. argsIndex = -1,
  22947. argsLength = arguments.length,
  22948. caches = [],
  22949. indexOf = getIndexOf(),
  22950. isCommon = indexOf == baseIndexOf;
  22951. while (++argsIndex < argsLength) {
  22952. var value = arguments[argsIndex];
  22953. if (isArray(value) || isArguments(value)) {
  22954. args.push(value);
  22955. caches.push(isCommon && value.length >= 120 && createCache(argsIndex && value));
  22956. }
  22957. }
  22958. argsLength = args.length;
  22959. var array = args[0],
  22960. index = -1,
  22961. length = array ? array.length : 0,
  22962. result = [],
  22963. seen = caches[0];
  22964. outer:
  22965. while (++index < length) {
  22966. value = array[index];
  22967. if ((seen ? cacheIndexOf(seen, value) : indexOf(result, value)) < 0) {
  22968. argsIndex = argsLength;
  22969. while (--argsIndex) {
  22970. var cache = caches[argsIndex];
  22971. if ((cache ? cacheIndexOf(cache, value) : indexOf(args[argsIndex], value)) < 0) {
  22972. continue outer;
  22973. }
  22974. }
  22975. if (seen) {
  22976. seen.push(value);
  22977. }
  22978. result.push(value);
  22979. }
  22980. }
  22981. return result;
  22982. }
  22983. /**
  22984. * Gets the last element of `array`.
  22985. *
  22986. * @static
  22987. * @memberOf _
  22988. * @category Array
  22989. * @param {Array} array The array to query.
  22990. * @returns {*} Returns the last element of `array`.
  22991. * @example
  22992. *
  22993. * _.last([1, 2, 3]);
  22994. * // => 3
  22995. */
  22996. function last(array) {
  22997. var length = array ? array.length : 0;
  22998. return length ? array[length - 1] : undefined;
  22999. }
  23000. /**
  23001. * This method is like `_.indexOf` except that it iterates over elements of
  23002. * `array` from right to left.
  23003. *
  23004. * @static
  23005. * @memberOf _
  23006. * @category Array
  23007. * @param {Array} array The array to search.
  23008. * @param {*} value The value to search for.
  23009. * @param {boolean|number} [fromIndex=array.length-1] The index to search from
  23010. * or `true` to perform a binary search on a sorted array.
  23011. * @returns {number} Returns the index of the matched value, else `-1`.
  23012. * @example
  23013. *
  23014. * _.lastIndexOf([1, 2, 3, 1, 2, 3], 2);
  23015. * // => 4
  23016. *
  23017. * // using `fromIndex`
  23018. * _.lastIndexOf([1, 2, 3, 1, 2, 3], 2, 3);
  23019. * // => 1
  23020. *
  23021. * // performing a binary search
  23022. * _.lastIndexOf([4, 4, 5, 5, 6, 6], 5, true);
  23023. * // => 3
  23024. */
  23025. function lastIndexOf(array, value, fromIndex) {
  23026. var length = array ? array.length : 0;
  23027. if (!length) {
  23028. return -1;
  23029. }
  23030. var index = length;
  23031. if (typeof fromIndex == 'number') {
  23032. index = (fromIndex < 0 ? nativeMax(length + fromIndex, 0) : nativeMin(fromIndex || 0, length - 1)) + 1;
  23033. } else if (fromIndex) {
  23034. index = binaryIndex(array, value, true) - 1;
  23035. var other = array[index];
  23036. return (value === value ? value === other : other !== other) ? index : -1;
  23037. }
  23038. if (value !== value) {
  23039. return indexOfNaN(array, index, true);
  23040. }
  23041. while (index--) {
  23042. if (array[index] === value) {
  23043. return index;
  23044. }
  23045. }
  23046. return -1;
  23047. }
  23048. /**
  23049. * Removes all provided values from `array` using `SameValueZero` for equality
  23050. * comparisons.
  23051. *
  23052. * **Notes:**
  23053. * - Unlike `_.without`, this method mutates `array`.
  23054. * - `SameValueZero` comparisons are like strict equality comparisons, e.g. `===`,
  23055. * except that `NaN` matches `NaN`. See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero)
  23056. * for more details.
  23057. *
  23058. * @static
  23059. * @memberOf _
  23060. * @category Array
  23061. * @param {Array} array The array to modify.
  23062. * @param {...*} [values] The values to remove.
  23063. * @returns {Array} Returns `array`.
  23064. * @example
  23065. *
  23066. * var array = [1, 2, 3, 1, 2, 3];
  23067. * _.pull(array, 2, 3);
  23068. * console.log(array);
  23069. * // => [1, 1]
  23070. */
  23071. function pull() {
  23072. var array = arguments[0];
  23073. if (!(array && array.length)) {
  23074. return array;
  23075. }
  23076. var index = 0,
  23077. indexOf = getIndexOf(),
  23078. length = arguments.length;
  23079. while (++index < length) {
  23080. var fromIndex = 0,
  23081. value = arguments[index];
  23082. while ((fromIndex = indexOf(array, value, fromIndex)) > -1) {
  23083. splice.call(array, fromIndex, 1);
  23084. }
  23085. }
  23086. return array;
  23087. }
  23088. /**
  23089. * Removes elements from `array` corresponding to the given indexes and returns
  23090. * an array of the removed elements. Indexes may be specified as an array of
  23091. * indexes or as individual arguments.
  23092. *
  23093. * **Note:** Unlike `_.at`, this method mutates `array`.
  23094. *
  23095. * @static
  23096. * @memberOf _
  23097. * @category Array
  23098. * @param {Array} array The array to modify.
  23099. * @param {...(number|number[])} [indexes] The indexes of elements to remove,
  23100. * specified as individual indexes or arrays of indexes.
  23101. * @returns {Array} Returns the new array of removed elements.
  23102. * @example
  23103. *
  23104. * var array = [5, 10, 15, 20];
  23105. * var evens = _.pullAt(array, [1, 3]);
  23106. *
  23107. * console.log(array);
  23108. * // => [5, 15]
  23109. *
  23110. * console.log(evens);
  23111. * // => [10, 20]
  23112. */
  23113. function pullAt(array) {
  23114. return basePullAt(array || [], baseFlatten(arguments, false, false, 1));
  23115. }
  23116. /**
  23117. * Removes all elements from `array` that `predicate` returns truthy for
  23118. * and returns an array of the removed elements. The predicate is bound to
  23119. * `thisArg` and invoked with three arguments; (value, index, array).
  23120. *
  23121. * If a property name is provided for `predicate` the created "_.property"
  23122. * style callback returns the property value of the given element.
  23123. *
  23124. * If an object is provided for `predicate` the created "_.matches" style
  23125. * callback returns `true` for elements that have the properties of the given
  23126. * object, else `false`.
  23127. *
  23128. * **Note:** Unlike `_.filter`, this method mutates `array`.
  23129. *
  23130. * @static
  23131. * @memberOf _
  23132. * @category Array
  23133. * @param {Array} array The array to modify.
  23134. * @param {Function|Object|string} [predicate=_.identity] The function invoked
  23135. * per iteration. If a property name or object is provided it is used to
  23136. * create a "_.property" or "_.matches" style callback respectively.
  23137. * @param {*} [thisArg] The `this` binding of `predicate`.
  23138. * @returns {Array} Returns the new array of removed elements.
  23139. * @example
  23140. *
  23141. * var array = [1, 2, 3, 4];
  23142. * var evens = _.remove(array, function(n) { return n % 2 == 0; });
  23143. *
  23144. * console.log(array);
  23145. * // => [1, 3]
  23146. *
  23147. * console.log(evens);
  23148. * // => [2, 4]
  23149. */
  23150. function remove(array, predicate, thisArg) {
  23151. var index = -1,
  23152. length = array ? array.length : 0,
  23153. result = [];
  23154. predicate = getCallback(predicate, thisArg, 3);
  23155. while (++index < length) {
  23156. var value = array[index];
  23157. if (predicate(value, index, array)) {
  23158. result.push(value);
  23159. splice.call(array, index--, 1);
  23160. length--;
  23161. }
  23162. }
  23163. return result;
  23164. }
  23165. /**
  23166. * Gets all but the first element of `array`.
  23167. *
  23168. * @static
  23169. * @memberOf _
  23170. * @alias tail
  23171. * @category Array
  23172. * @param {Array} array The array to query.
  23173. * @returns {Array} Returns the slice of `array`.
  23174. * @example
  23175. *
  23176. * _.rest([1, 2, 3]);
  23177. * // => [2, 3]
  23178. */
  23179. function rest(array) {
  23180. return drop(array, 1);
  23181. }
  23182. /**
  23183. * Creates a slice of `array` from `start` up to, but not including, `end`.
  23184. *
  23185. * **Note:** This function is used instead of `Array#slice` to support node
  23186. * lists in IE < 9 and to ensure dense arrays are returned.
  23187. *
  23188. * @static
  23189. * @memberOf _
  23190. * @category Array
  23191. * @param {Array} array The array to slice.
  23192. * @param {number} [start=0] The start position.
  23193. * @param {number} [end=array.length] The end position.
  23194. * @returns {Array} Returns the slice of `array`.
  23195. */
  23196. function slice(array, start, end) {
  23197. var length = array ? array.length : 0;
  23198. if (!length) {
  23199. return [];
  23200. }
  23201. if (end && typeof end != 'number' && isIterateeCall(array, start, end)) {
  23202. start = 0;
  23203. end = length;
  23204. }
  23205. return baseSlice(array, start, end);
  23206. }
  23207. /**
  23208. * Uses a binary search to determine the lowest index at which `value` should
  23209. * be inserted into `array` in order to maintain its sort order. If an iteratee
  23210. * function is provided it is invoked for `value` and each element of `array`
  23211. * to compute their sort ranking. The iteratee is bound to `thisArg` and
  23212. * invoked with one argument; (value).
  23213. *
  23214. * If a property name is provided for `predicate` the created "_.property"
  23215. * style callback returns the property value of the given element.
  23216. *
  23217. * If an object is provided for `predicate` the created "_.matches" style
  23218. * callback returns `true` for elements that have the properties of the given
  23219. * object, else `false`.
  23220. *
  23221. * @static
  23222. * @memberOf _
  23223. * @category Array
  23224. * @param {Array} array The sorted array to inspect.
  23225. * @param {*} value The value to evaluate.
  23226. * @param {Function|Object|string} [iteratee=_.identity] The function invoked
  23227. * per iteration. If a property name or object is provided it is used to
  23228. * create a "_.property" or "_.matches" style callback respectively.
  23229. * @param {*} [thisArg] The `this` binding of `iteratee`.
  23230. * @returns {number} Returns the index at which `value` should be inserted
  23231. * into `array`.
  23232. * @example
  23233. *
  23234. * _.sortedIndex([30, 50], 40);
  23235. * // => 1
  23236. *
  23237. * _.sortedIndex([4, 4, 5, 5, 6, 6], 5);
  23238. * // => 2
  23239. *
  23240. * var dict = { 'data': { 'thirty': 30, 'forty': 40, 'fifty': 50 } };
  23241. *
  23242. * // using an iteratee function
  23243. * _.sortedIndex(['thirty', 'fifty'], 'forty', function(word) {
  23244. * return this.data[word];
  23245. * }, dict);
  23246. * // => 1
  23247. *
  23248. * // using the "_.property" callback shorthand
  23249. * _.sortedIndex([{ 'x': 30 }, { 'x': 50 }], { 'x': 40 }, 'x');
  23250. * // => 1
  23251. */
  23252. function sortedIndex(array, value, iteratee, thisArg) {
  23253. var func = getCallback(iteratee);
  23254. return (func === baseCallback && iteratee == null)
  23255. ? binaryIndex(array, value)
  23256. : binaryIndexBy(array, value, func(iteratee, thisArg, 1));
  23257. }
  23258. /**
  23259. * This method is like `_.sortedIndex` except that it returns the highest
  23260. * index at which `value` should be inserted into `array` in order to
  23261. * maintain its sort order.
  23262. *
  23263. * @static
  23264. * @memberOf _
  23265. * @category Array
  23266. * @param {Array} array The sorted array to inspect.
  23267. * @param {*} value The value to evaluate.
  23268. * @param {Function|Object|string} [iteratee=_.identity] The function invoked
  23269. * per iteration. If a property name or object is provided it is used to
  23270. * create a "_.property" or "_.matches" style callback respectively.
  23271. * @param {*} [thisArg] The `this` binding of `iteratee`.
  23272. * @returns {number} Returns the index at which `value` should be inserted
  23273. * into `array`.
  23274. * @example
  23275. *
  23276. * _.sortedLastIndex([4, 4, 5, 5, 6, 6], 5);
  23277. * // => 4
  23278. */
  23279. function sortedLastIndex(array, value, iteratee, thisArg) {
  23280. var func = getCallback(iteratee);
  23281. return (func === baseCallback && iteratee == null)
  23282. ? binaryIndex(array, value, true)
  23283. : binaryIndexBy(array, value, func(iteratee, thisArg, 1), true);
  23284. }
  23285. /**
  23286. * Creates a slice of `array` with `n` elements taken from the beginning.
  23287. *
  23288. * @static
  23289. * @memberOf _
  23290. * @type Function
  23291. * @category Array
  23292. * @param {Array} array The array to query.
  23293. * @param {number} [n=1] The number of elements to take.
  23294. * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
  23295. * @returns {Array} Returns the slice of `array`.
  23296. * @example
  23297. *
  23298. * _.take([1, 2, 3]);
  23299. * // => [1]
  23300. *
  23301. * _.take([1, 2, 3], 2);
  23302. * // => [1, 2]
  23303. *
  23304. * _.take([1, 2, 3], 5);
  23305. * // => [1, 2, 3]
  23306. *
  23307. * _.take([1, 2, 3], 0);
  23308. * // => []
  23309. */
  23310. function take(array, n, guard) {
  23311. var length = array ? array.length : 0;
  23312. if (!length) {
  23313. return [];
  23314. }
  23315. if (guard ? isIterateeCall(array, n, guard) : n == null) {
  23316. n = 1;
  23317. }
  23318. return baseSlice(array, 0, n < 0 ? 0 : n);
  23319. }
  23320. /**
  23321. * Creates a slice of `array` with `n` elements taken from the end.
  23322. *
  23323. * @static
  23324. * @memberOf _
  23325. * @type Function
  23326. * @category Array
  23327. * @param {Array} array The array to query.
  23328. * @param {number} [n=1] The number of elements to take.
  23329. * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
  23330. * @returns {Array} Returns the slice of `array`.
  23331. * @example
  23332. *
  23333. * _.takeRight([1, 2, 3]);
  23334. * // => [3]
  23335. *
  23336. * _.takeRight([1, 2, 3], 2);
  23337. * // => [2, 3]
  23338. *
  23339. * _.takeRight([1, 2, 3], 5);
  23340. * // => [1, 2, 3]
  23341. *
  23342. * _.takeRight([1, 2, 3], 0);
  23343. * // => []
  23344. */
  23345. function takeRight(array, n, guard) {
  23346. var length = array ? array.length : 0;
  23347. if (!length) {
  23348. return [];
  23349. }
  23350. if (guard ? isIterateeCall(array, n, guard) : n == null) {
  23351. n = 1;
  23352. }
  23353. n = length - (+n || 0);
  23354. return baseSlice(array, n < 0 ? 0 : n);
  23355. }
  23356. /**
  23357. * Creates a slice of `array` with elements taken from the end. Elements are
  23358. * taken until `predicate` returns falsey. The predicate is bound to `thisArg`
  23359. * and invoked with three arguments; (value, index, array).
  23360. *
  23361. * If a property name is provided for `predicate` the created "_.property"
  23362. * style callback returns the property value of the given element.
  23363. *
  23364. * If an object is provided for `predicate` the created "_.matches" style
  23365. * callback returns `true` for elements that have the properties of the given
  23366. * object, else `false`.
  23367. *
  23368. * @static
  23369. * @memberOf _
  23370. * @type Function
  23371. * @category Array
  23372. * @param {Array} array The array to query.
  23373. * @param {Function|Object|string} [predicate=_.identity] The function invoked
  23374. * per element.
  23375. * @param {*} [thisArg] The `this` binding of `predicate`.
  23376. * @returns {Array} Returns the slice of `array`.
  23377. * @example
  23378. *
  23379. * _.takeRightWhile([1, 2, 3], function(n) { return n > 1; });
  23380. * // => [2, 3]
  23381. *
  23382. * var users = [
  23383. * { 'user': 'barney', 'status': 'busy', 'active': false },
  23384. * { 'user': 'fred', 'status': 'busy', 'active': true },
  23385. * { 'user': 'pebbles', 'status': 'away', 'active': true }
  23386. * ];
  23387. *
  23388. * // using the "_.property" callback shorthand
  23389. * _.pluck(_.takeRightWhile(users, 'active'), 'user');
  23390. * // => ['fred', 'pebbles']
  23391. *
  23392. * // using the "_.matches" callback shorthand
  23393. * _.pluck(_.takeRightWhile(users, { 'status': 'away' }), 'user');
  23394. * // => ['pebbles']
  23395. */
  23396. function takeRightWhile(array, predicate, thisArg) {
  23397. var length = array ? array.length : 0;
  23398. if (!length) {
  23399. return [];
  23400. }
  23401. predicate = getCallback(predicate, thisArg, 3);
  23402. while (length-- && predicate(array[length], length, array)) {}
  23403. return baseSlice(array, length + 1);
  23404. }
  23405. /**
  23406. * Creates a slice of `array` with elements taken from the beginning. Elements
  23407. * are taken until `predicate` returns falsey. The predicate is bound to
  23408. * `thisArg` and invoked with three arguments; (value, index, array).
  23409. *
  23410. * If a property name is provided for `predicate` the created "_.property"
  23411. * style callback returns the property value of the given element.
  23412. *
  23413. * If an object is provided for `predicate` the created "_.matches" style
  23414. * callback returns `true` for elements that have the properties of the given
  23415. * object, else `false`.
  23416. *
  23417. * @static
  23418. * @memberOf _
  23419. * @type Function
  23420. * @category Array
  23421. * @param {Array} array The array to query.
  23422. * @param {Function|Object|string} [predicate=_.identity] The function invoked
  23423. * per element.
  23424. * @param {*} [thisArg] The `this` binding of `predicate`.
  23425. * @returns {Array} Returns the slice of `array`.
  23426. * @example
  23427. *
  23428. * _.takeWhile([1, 2, 3], function(n) { return n < 3; });
  23429. * // => [1, 2]
  23430. *
  23431. * var users = [
  23432. * { 'user': 'barney', 'status': 'busy', 'active': true },
  23433. * { 'user': 'fred', 'status': 'busy', 'active': false },
  23434. * { 'user': 'pebbles', 'status': 'away', 'active': true }
  23435. * ];
  23436. *
  23437. * // using the "_.property" callback shorthand
  23438. * _.pluck(_.takeWhile(users, 'active'), 'user');
  23439. * // => ['barney']
  23440. *
  23441. * // using the "_.matches" callback shorthand
  23442. * _.pluck(_.takeWhile(users, { 'status': 'busy' }), 'user');
  23443. * // => ['barney', 'fred']
  23444. */
  23445. function takeWhile(array, predicate, thisArg) {
  23446. var length = array ? array.length : 0;
  23447. if (!length) {
  23448. return [];
  23449. }
  23450. var index = -1;
  23451. predicate = getCallback(predicate, thisArg, 3);
  23452. while (++index < length && predicate(array[index], index, array)) {}
  23453. return baseSlice(array, 0, index);
  23454. }
  23455. /**
  23456. * Creates an array of unique values, in order, of the provided arrays using
  23457. * `SameValueZero` for equality comparisons.
  23458. *
  23459. * **Note:** `SameValueZero` comparisons are like strict equality comparisons,
  23460. * e.g. `===`, except that `NaN` matches `NaN`. See the
  23461. * [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero)
  23462. * for more details.
  23463. *
  23464. * @static
  23465. * @memberOf _
  23466. * @category Array
  23467. * @param {...Array} [arrays] The arrays to inspect.
  23468. * @returns {Array} Returns the new array of combined values.
  23469. * @example
  23470. *
  23471. * _.union([1, 2, 3], [5, 2, 1, 4], [2, 1]);
  23472. * // => [1, 2, 3, 5, 4]
  23473. */
  23474. function union() {
  23475. return baseUniq(baseFlatten(arguments, false, true));
  23476. }
  23477. /**
  23478. * Creates a duplicate-value-free version of an array using `SameValueZero`
  23479. * for equality comparisons. Providing `true` for `isSorted` performs a faster
  23480. * search algorithm for sorted arrays. If an iteratee function is provided it
  23481. * is invoked for each value in the array to generate the criterion by which
  23482. * uniqueness is computed. The `iteratee` is bound to `thisArg` and invoked
  23483. * with three arguments; (value, index, array).
  23484. *
  23485. * If a property name is provided for `predicate` the created "_.property"
  23486. * style callback returns the property value of the given element.
  23487. *
  23488. * If an object is provided for `predicate` the created "_.matches" style
  23489. * callback returns `true` for elements that have the properties of the given
  23490. * object, else `false`.
  23491. *
  23492. * **Note:** `SameValueZero` comparisons are like strict equality comparisons,
  23493. * e.g. `===`, except that `NaN` matches `NaN`. See the
  23494. * [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero)
  23495. * for more details.
  23496. *
  23497. * @static
  23498. * @memberOf _
  23499. * @alias unique
  23500. * @category Array
  23501. * @param {Array} array The array to inspect.
  23502. * @param {boolean} [isSorted] Specify the array is sorted.
  23503. * @param {Function|Object|string} [iteratee] The function invoked per iteration.
  23504. * If a property name or object is provided it is used to create a "_.property"
  23505. * or "_.matches" style callback respectively.
  23506. * @param {*} [thisArg] The `this` binding of `iteratee`.
  23507. * @returns {Array} Returns the new duplicate-value-free array.
  23508. * @example
  23509. *
  23510. * _.uniq([1, 2, 1]);
  23511. * // => [1, 2]
  23512. *
  23513. * // using `isSorted`
  23514. * _.uniq([1, 1, 2], true);
  23515. * // => [1, 2]
  23516. *
  23517. * // using an iteratee function
  23518. * _.uniq([1, 2.5, 1.5, 2], function(n) { return this.floor(n); }, Math);
  23519. * // => [1, 2.5]
  23520. *
  23521. * // using the "_.property" callback shorthand
  23522. * _.uniq([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
  23523. * // => [{ 'x': 1 }, { 'x': 2 }]
  23524. */
  23525. function uniq(array, isSorted, iteratee, thisArg) {
  23526. var length = array ? array.length : 0;
  23527. if (!length) {
  23528. return [];
  23529. }
  23530. // Juggle arguments.
  23531. if (typeof isSorted != 'boolean' && isSorted != null) {
  23532. thisArg = iteratee;
  23533. iteratee = isIterateeCall(array, isSorted, thisArg) ? null : isSorted;
  23534. isSorted = false;
  23535. }
  23536. var func = getCallback();
  23537. if (!(func === baseCallback && iteratee == null)) {
  23538. iteratee = func(iteratee, thisArg, 3);
  23539. }
  23540. return (isSorted && getIndexOf() == baseIndexOf)
  23541. ? sortedUniq(array, iteratee)
  23542. : baseUniq(array, iteratee);
  23543. }
  23544. /**
  23545. * This method is like `_.zip` except that it accepts an array of grouped
  23546. * elements and creates an array regrouping the elements to their pre-`_.zip`
  23547. * configuration.
  23548. *
  23549. * @static
  23550. * @memberOf _
  23551. * @category Array
  23552. * @param {Array} array The array of grouped elements to process.
  23553. * @returns {Array} Returns the new array of regrouped elements.
  23554. * @example
  23555. *
  23556. * var zipped = _.zip(['fred', 'barney'], [30, 40], [true, false]);
  23557. * // => [['fred', 30, true], ['barney', 40, false]]
  23558. *
  23559. * _.unzip(zipped);
  23560. * // => [['fred', 'barney'], [30, 40], [true, false]]
  23561. */
  23562. function unzip(array) {
  23563. var index = -1,
  23564. length = (array && array.length && arrayMax(arrayMap(array, getLength))) >>> 0,
  23565. result = Array(length);
  23566. while (++index < length) {
  23567. result[index] = arrayMap(array, baseProperty(index));
  23568. }
  23569. return result;
  23570. }
  23571. /**
  23572. * Creates an array excluding all provided values using `SameValueZero` for
  23573. * equality comparisons.
  23574. *
  23575. * **Note:** `SameValueZero` comparisons are like strict equality comparisons,
  23576. * e.g. `===`, except that `NaN` matches `NaN`. See the
  23577. * [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero)
  23578. * for more details.
  23579. *
  23580. * @static
  23581. * @memberOf _
  23582. * @category Array
  23583. * @param {Array} array The array to filter.
  23584. * @param {...*} [values] The values to exclude.
  23585. * @returns {Array} Returns the new array of filtered values.
  23586. * @example
  23587. *
  23588. * _.without([1, 2, 1, 0, 3, 1, 4], 0, 1);
  23589. * // => [2, 3, 4]
  23590. */
  23591. function without(array) {
  23592. return baseDifference(array, baseSlice(arguments, 1));
  23593. }
  23594. /**
  23595. * Creates an array that is the symmetric difference of the provided arrays.
  23596. * See [Wikipedia](https://en.wikipedia.org/wiki/Symmetric_difference) for
  23597. * more details.
  23598. *
  23599. * @static
  23600. * @memberOf _
  23601. * @category Array
  23602. * @param {...Array} [arrays] The arrays to inspect.
  23603. * @returns {Array} Returns the new array of values.
  23604. * @example
  23605. *
  23606. * _.xor([1, 2, 3], [5, 2, 1, 4]);
  23607. * // => [3, 5, 4]
  23608. *
  23609. * _.xor([1, 2, 5], [2, 3, 5], [3, 4, 5]);
  23610. * // => [1, 4, 5]
  23611. */
  23612. function xor() {
  23613. var index = -1,
  23614. length = arguments.length;
  23615. while (++index < length) {
  23616. var array = arguments[index];
  23617. if (isArray(array) || isArguments(array)) {
  23618. var result = result
  23619. ? baseDifference(result, array).concat(baseDifference(array, result))
  23620. : array;
  23621. }
  23622. }
  23623. return result ? baseUniq(result) : [];
  23624. }
  23625. /**
  23626. * Creates an array of grouped elements, the first of which contains the first
  23627. * elements of the given arrays, the second of which contains the second elements
  23628. * of the given arrays, and so on.
  23629. *
  23630. * @static
  23631. * @memberOf _
  23632. * @category Array
  23633. * @param {...Array} [arrays] The arrays to process.
  23634. * @returns {Array} Returns the new array of grouped elements.
  23635. * @example
  23636. *
  23637. * _.zip(['fred', 'barney'], [30, 40], [true, false]);
  23638. * // => [['fred', 30, true], ['barney', 40, false]]
  23639. */
  23640. function zip() {
  23641. var length = arguments.length,
  23642. array = Array(length);
  23643. while (length--) {
  23644. array[length] = arguments[length];
  23645. }
  23646. return unzip(array);
  23647. }
  23648. /**
  23649. * Creates an object composed from arrays of property names and values. Provide
  23650. * either a single two dimensional array, e.g. `[[key1, value1], [key2, value2]]`
  23651. * or two arrays, one of property names and one of corresponding values.
  23652. *
  23653. * @static
  23654. * @memberOf _
  23655. * @alias object
  23656. * @category Array
  23657. * @param {Array} props The property names.
  23658. * @param {Array} [values=[]] The property values.
  23659. * @returns {Object} Returns the new object.
  23660. * @example
  23661. *
  23662. * _.zipObject(['fred', 'barney'], [30, 40]);
  23663. * // => { 'fred': 30, 'barney': 40 }
  23664. */
  23665. function zipObject(props, values) {
  23666. var index = -1,
  23667. length = props ? props.length : 0,
  23668. result = {};
  23669. if (length && !values && !isArray(props[0])) {
  23670. values = [];
  23671. }
  23672. while (++index < length) {
  23673. var key = props[index];
  23674. if (values) {
  23675. result[key] = values[index];
  23676. } else if (key) {
  23677. result[key[0]] = key[1];
  23678. }
  23679. }
  23680. return result;
  23681. }
  23682. /*------------------------------------------------------------------------*/
  23683. /**
  23684. * Creates a `lodash` object that wraps `value` with explicit method
  23685. * chaining enabled.
  23686. *
  23687. * @static
  23688. * @memberOf _
  23689. * @category Chain
  23690. * @param {*} value The value to wrap.
  23691. * @returns {Object} Returns the new `lodash` object.
  23692. * @example
  23693. *
  23694. * var users = [
  23695. * { 'user': 'barney', 'age': 36 },
  23696. * { 'user': 'fred', 'age': 40 },
  23697. * { 'user': 'pebbles', 'age': 1 }
  23698. * ];
  23699. *
  23700. * var youngest = _.chain(users)
  23701. * .sortBy('age')
  23702. * .map(function(chr) { return chr.user + ' is ' + chr.age; })
  23703. * .first()
  23704. * .value();
  23705. * // => 'pebbles is 1'
  23706. */
  23707. function chain(value) {
  23708. var result = lodash(value);
  23709. result.__chain__ = true;
  23710. return result;
  23711. }
  23712. /**
  23713. * This method invokes `interceptor` and returns `value`. The interceptor is
  23714. * bound to `thisArg` and invoked with one argument; (value). The purpose of
  23715. * this method is to "tap into" a method chain in order to perform operations
  23716. * on intermediate results within the chain.
  23717. *
  23718. * @static
  23719. * @memberOf _
  23720. * @category Chain
  23721. * @param {*} value The value to provide to `interceptor`.
  23722. * @param {Function} interceptor The function to invoke.
  23723. * @param {*} [thisArg] The `this` binding of `interceptor`.
  23724. * @returns {*} Returns `value`.
  23725. * @example
  23726. *
  23727. * _([1, 2, 3])
  23728. * .tap(function(array) { array.pop(); })
  23729. * .reverse()
  23730. * .value();
  23731. * // => [2, 1]
  23732. */
  23733. function tap(value, interceptor, thisArg) {
  23734. interceptor.call(thisArg, value);
  23735. return value;
  23736. }
  23737. /**
  23738. * This method is like `_.tap` except that it returns the result of `interceptor`.
  23739. *
  23740. * @static
  23741. * @memberOf _
  23742. * @category Chain
  23743. * @param {*} value The value to provide to `interceptor`.
  23744. * @param {Function} interceptor The function to invoke.
  23745. * @param {*} [thisArg] The `this` binding of `interceptor`.
  23746. * @returns {*} Returns the result of `interceptor`.
  23747. * @example
  23748. *
  23749. * _([1, 2, 3])
  23750. * .last()
  23751. * .thru(function(value) { return [value]; })
  23752. * .value();
  23753. * // => [3]
  23754. */
  23755. function thru(value, interceptor, thisArg) {
  23756. return interceptor.call(thisArg, value);
  23757. }
  23758. /**
  23759. * Enables explicit method chaining on the wrapper object.
  23760. *
  23761. * @name chain
  23762. * @memberOf _
  23763. * @category Chain
  23764. * @returns {*} Returns the `lodash` object.
  23765. * @example
  23766. *
  23767. * var users = [
  23768. * { 'user': 'barney', 'age': 36 },
  23769. * { 'user': 'fred', 'age': 40 }
  23770. * ];
  23771. *
  23772. * // without explicit chaining
  23773. * _(users).first();
  23774. * // => { 'user': 'barney', 'age': 36 }
  23775. *
  23776. * // with explicit chaining
  23777. * _(users).chain()
  23778. * .first()
  23779. * .pick('user')
  23780. * .value();
  23781. * // => { 'user': 'barney' }
  23782. */
  23783. function wrapperChain() {
  23784. return chain(this);
  23785. }
  23786. /**
  23787. * Reverses the wrapped array so the first element becomes the last, the
  23788. * second element becomes the second to last, and so on.
  23789. *
  23790. * **Note:** This method mutates the wrapped array.
  23791. *
  23792. * @name reverse
  23793. * @memberOf _
  23794. * @category Chain
  23795. * @returns {Object} Returns the new reversed `lodash` object.
  23796. * @example
  23797. *
  23798. * var array = [1, 2, 3];
  23799. *
  23800. * _(array).reverse().value()
  23801. * // => [3, 2, 1]
  23802. *
  23803. * console.log(array);
  23804. * // => [3, 2, 1]
  23805. */
  23806. function wrapperReverse() {
  23807. var value = this.__wrapped__;
  23808. if (value instanceof LazyWrapper) {
  23809. if (this.__actions__.length) {
  23810. value = new LazyWrapper(this);
  23811. }
  23812. return new LodashWrapper(value.reverse());
  23813. }
  23814. return this.thru(function(value) {
  23815. return value.reverse();
  23816. });
  23817. }
  23818. /**
  23819. * Produces the result of coercing the unwrapped value to a string.
  23820. *
  23821. * @name toString
  23822. * @memberOf _
  23823. * @category Chain
  23824. * @returns {string} Returns the coerced string value.
  23825. * @example
  23826. *
  23827. * _([1, 2, 3]).toString();
  23828. * // => '1,2,3'
  23829. */
  23830. function wrapperToString() {
  23831. return (this.value() + '');
  23832. }
  23833. /**
  23834. * Executes the chained sequence to extract the unwrapped value.
  23835. *
  23836. * @name value
  23837. * @memberOf _
  23838. * @alias toJSON, valueOf
  23839. * @category Chain
  23840. * @returns {*} Returns the resolved unwrapped value.
  23841. * @example
  23842. *
  23843. * _([1, 2, 3]).value();
  23844. * // => [1, 2, 3]
  23845. */
  23846. function wrapperValue() {
  23847. return baseWrapperValue(this.__wrapped__, this.__actions__);
  23848. }
  23849. /*------------------------------------------------------------------------*/
  23850. /**
  23851. * Creates an array of elements corresponding to the given keys, or indexes,
  23852. * of `collection`. Keys may be specified as individual arguments or as arrays
  23853. * of keys.
  23854. *
  23855. * @static
  23856. * @memberOf _
  23857. * @category Collection
  23858. * @param {Array|Object|string} collection The collection to iterate over.
  23859. * @param {...(number|number[]|string|string[])} [props] The property names
  23860. * or indexes of elements to pick, specified individually or in arrays.
  23861. * @returns {Array} Returns the new array of picked elements.
  23862. * @example
  23863. *
  23864. * _.at(['a', 'b', 'c', 'd', 'e'], [0, 2, 4]);
  23865. * // => ['a', 'c', 'e']
  23866. *
  23867. * _.at(['fred', 'barney', 'pebbles'], 0, 2);
  23868. * // => ['fred', 'pebbles']
  23869. */
  23870. function at(collection) {
  23871. var length = collection ? collection.length : 0;
  23872. if (isLength(length)) {
  23873. collection = toIterable(collection);
  23874. }
  23875. return baseAt(collection, baseFlatten(arguments, false, false, 1));
  23876. }
  23877. /**
  23878. * Checks if `value` is in `collection` using `SameValueZero` for equality
  23879. * comparisons. If `fromIndex` is negative, it is used as the offset from
  23880. * the end of `collection`.
  23881. *
  23882. * **Note:** `SameValueZero` comparisons are like strict equality comparisons,
  23883. * e.g. `===`, except that `NaN` matches `NaN`. See the
  23884. * [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero)
  23885. * for more details.
  23886. *
  23887. * @static
  23888. * @memberOf _
  23889. * @alias contains, include
  23890. * @category Collection
  23891. * @param {Array|Object|string} collection The collection to search.
  23892. * @param {*} target The value to search for.
  23893. * @param {number} [fromIndex=0] The index to search from.
  23894. * @returns {boolean} Returns `true` if a matching element is found, else `false`.
  23895. * @example
  23896. *
  23897. * _.includes([1, 2, 3], 1);
  23898. * // => true
  23899. *
  23900. * _.includes([1, 2, 3], 1, 2);
  23901. * // => false
  23902. *
  23903. * _.includes({ 'user': 'fred', 'age': 40 }, 'fred');
  23904. * // => true
  23905. *
  23906. * _.includes('pebbles', 'eb');
  23907. * // => true
  23908. */
  23909. function includes(collection, target, fromIndex) {
  23910. var length = collection ? collection.length : 0;
  23911. if (!isLength(length)) {
  23912. collection = values(collection);
  23913. length = collection.length;
  23914. }
  23915. if (!length) {
  23916. return false;
  23917. }
  23918. if (typeof fromIndex == 'number') {
  23919. fromIndex = fromIndex < 0 ? nativeMax(length + fromIndex, 0) : (fromIndex || 0);
  23920. } else {
  23921. fromIndex = 0;
  23922. }
  23923. return (typeof collection == 'string' || !isArray(collection) && isString(collection))
  23924. ? (fromIndex < length && collection.indexOf(target, fromIndex) > -1)
  23925. : (getIndexOf(collection, target, fromIndex) > -1);
  23926. }
  23927. /**
  23928. * Creates an object composed of keys generated from the results of running
  23929. * each element of `collection` through `iteratee`. The corresponding value
  23930. * of each key is the number of times the key was returned by `iteratee`.
  23931. * The `iteratee` is bound to `thisArg` and invoked with three arguments;
  23932. * (value, index|key, collection).
  23933. *
  23934. * If a property name is provided for `predicate` the created "_.property"
  23935. * style callback returns the property value of the given element.
  23936. *
  23937. * If an object is provided for `predicate` the created "_.matches" style
  23938. * callback returns `true` for elements that have the properties of the given
  23939. * object, else `false`.
  23940. *
  23941. * @static
  23942. * @memberOf _
  23943. * @category Collection
  23944. * @param {Array|Object|string} collection The collection to iterate over.
  23945. * @param {Function|Object|string} [iteratee=_.identity] The function invoked
  23946. * per iteration. If a property name or object is provided it is used to
  23947. * create a "_.property" or "_.matches" style callback respectively.
  23948. * @param {*} [thisArg] The `this` binding of `iteratee`.
  23949. * @returns {Object} Returns the composed aggregate object.
  23950. * @example
  23951. *
  23952. * _.countBy([4.3, 6.1, 6.4], function(n) { return Math.floor(n); });
  23953. * // => { '4': 1, '6': 2 }
  23954. *
  23955. * _.countBy([4.3, 6.1, 6.4], function(n) { return this.floor(n); }, Math);
  23956. * // => { '4': 1, '6': 2 }
  23957. *
  23958. * _.countBy(['one', 'two', 'three'], 'length');
  23959. * // => { '3': 2, '5': 1 }
  23960. */
  23961. var countBy = createAggregator(function(result, value, key) {
  23962. hasOwnProperty.call(result, key) ? ++result[key] : (result[key] = 1);
  23963. });
  23964. /**
  23965. * Checks if `predicate` returns truthy for **all** elements of `collection`.
  23966. * The predicate is bound to `thisArg` and invoked with three arguments;
  23967. * (value, index|key, collection).
  23968. *
  23969. * If a property name is provided for `predicate` the created "_.property"
  23970. * style callback returns the property value of the given element.
  23971. *
  23972. * If an object is provided for `predicate` the created "_.matches" style
  23973. * callback returns `true` for elements that have the properties of the given
  23974. * object, else `false`.
  23975. *
  23976. * @static
  23977. * @memberOf _
  23978. * @alias all
  23979. * @category Collection
  23980. * @param {Array|Object|string} collection The collection to iterate over.
  23981. * @param {Function|Object|string} [predicate=_.identity] The function invoked
  23982. * per iteration. If a property name or object is provided it is used to
  23983. * create a "_.property" or "_.matches" style callback respectively.
  23984. * @param {*} [thisArg] The `this` binding of `predicate`.
  23985. * @returns {boolean} Returns `true` if all elements pass the predicate check,
  23986. * else `false`.
  23987. * @example
  23988. *
  23989. * _.every([true, 1, null, 'yes']);
  23990. * // => false
  23991. *
  23992. * var users = [
  23993. * { 'user': 'barney', 'age': 36 },
  23994. * { 'user': 'fred', 'age': 40 }
  23995. * ];
  23996. *
  23997. * // using the "_.property" callback shorthand
  23998. * _.every(users, 'age');
  23999. * // => true
  24000. *
  24001. * // using the "_.matches" callback shorthand
  24002. * _.every(users, { 'age': 36 });
  24003. * // => false
  24004. */
  24005. function every(collection, predicate, thisArg) {
  24006. var func = isArray(collection) ? arrayEvery : baseEvery;
  24007. if (typeof predicate != 'function' || typeof thisArg != 'undefined') {
  24008. predicate = getCallback(predicate, thisArg, 3);
  24009. }
  24010. return func(collection, predicate);
  24011. }
  24012. /**
  24013. * Iterates over elements of `collection`, returning an array of all elements
  24014. * `predicate` returns truthy for. The predicate is bound to `thisArg` and
  24015. * invoked with three arguments; (value, index|key, collection).
  24016. *
  24017. * If a property name is provided for `predicate` the created "_.property"
  24018. * style callback returns the property value of the given element.
  24019. *
  24020. * If an object is provided for `predicate` the created "_.matches" style
  24021. * callback returns `true` for elements that have the properties of the given
  24022. * object, else `false`.
  24023. *
  24024. * @static
  24025. * @memberOf _
  24026. * @alias select
  24027. * @category Collection
  24028. * @param {Array|Object|string} collection The collection to iterate over.
  24029. * @param {Function|Object|string} [predicate=_.identity] The function invoked
  24030. * per iteration. If a property name or object is provided it is used to
  24031. * create a "_.property" or "_.matches" style callback respectively.
  24032. * @param {*} [thisArg] The `this` binding of `predicate`.
  24033. * @returns {Array} Returns the new filtered array.
  24034. * @example
  24035. *
  24036. * var evens = _.filter([1, 2, 3, 4], function(n) { return n % 2 == 0; });
  24037. * // => [2, 4]
  24038. *
  24039. * var users = [
  24040. * { 'user': 'barney', 'age': 36, 'active': false },
  24041. * { 'user': 'fred', 'age': 40, 'active': true }
  24042. * ];
  24043. *
  24044. * // using the "_.property" callback shorthand
  24045. * _.pluck(_.filter(users, 'active'), 'user');
  24046. * // => ['fred']
  24047. *
  24048. * // using the "_.matches" callback shorthand
  24049. * _.pluck(_.filter(users, { 'age': 36 }), 'user');
  24050. * // => ['barney']
  24051. */
  24052. function filter(collection, predicate, thisArg) {
  24053. var func = isArray(collection) ? arrayFilter : baseFilter;
  24054. predicate = getCallback(predicate, thisArg, 3);
  24055. return func(collection, predicate);
  24056. }
  24057. /**
  24058. * Iterates over elements of `collection`, returning the first element
  24059. * `predicate` returns truthy for. The predicate is bound to `thisArg` and
  24060. * invoked with three arguments; (value, index|key, collection).
  24061. *
  24062. * If a property name is provided for `predicate` the created "_.property"
  24063. * style callback returns the property value of the given element.
  24064. *
  24065. * If an object is provided for `predicate` the created "_.matches" style
  24066. * callback returns `true` for elements that have the properties of the given
  24067. * object, else `false`.
  24068. *
  24069. * @static
  24070. * @memberOf _
  24071. * @alias detect
  24072. * @category Collection
  24073. * @param {Array|Object|string} collection The collection to search.
  24074. * @param {Function|Object|string} [predicate=_.identity] The function invoked
  24075. * per iteration. If a property name or object is provided it is used to
  24076. * create a "_.property" or "_.matches" style callback respectively.
  24077. * @param {*} [thisArg] The `this` binding of `predicate`.
  24078. * @returns {*} Returns the matched element, else `undefined`.
  24079. * @example
  24080. *
  24081. * var users = [
  24082. * { 'user': 'barney', 'age': 36, 'active': false },
  24083. * { 'user': 'fred', 'age': 40, 'active': true },
  24084. * { 'user': 'pebbles', 'age': 1, 'active': false }
  24085. * ];
  24086. *
  24087. * _.result(_.find(users, function(chr) { return chr.age < 40; }), 'user');
  24088. * // => 'barney'
  24089. *
  24090. * // using the "_.matches" callback shorthand
  24091. * _.result(_.find(users, { 'age': 1 }), 'user');
  24092. * // => 'pebbles'
  24093. *
  24094. * // using the "_.property" callback shorthand
  24095. * _.result(_.find(users, 'active'), 'user');
  24096. * // => 'fred'
  24097. */
  24098. function find(collection, predicate, thisArg) {
  24099. if (isArray(collection)) {
  24100. var index = findIndex(collection, predicate, thisArg);
  24101. return index > -1 ? collection[index] : undefined;
  24102. }
  24103. predicate = getCallback(predicate, thisArg, 3);
  24104. return baseFind(collection, predicate, baseEach);
  24105. }
  24106. /**
  24107. * This method is like `_.find` except that it iterates over elements of
  24108. * `collection` from right to left.
  24109. *
  24110. * @static
  24111. * @memberOf _
  24112. * @category Collection
  24113. * @param {Array|Object|string} collection The collection to search.
  24114. * @param {Function|Object|string} [predicate=_.identity] The function invoked
  24115. * per iteration. If a property name or object is provided it is used to
  24116. * create a "_.property" or "_.matches" style callback respectively.
  24117. * @param {*} [thisArg] The `this` binding of `predicate`.
  24118. * @returns {*} Returns the matched element, else `undefined`.
  24119. * @example
  24120. *
  24121. * _.findLast([1, 2, 3, 4], function(n) { return n % 2 == 1; });
  24122. * // => 3
  24123. */
  24124. function findLast(collection, predicate, thisArg) {
  24125. predicate = getCallback(predicate, thisArg, 3);
  24126. return baseFind(collection, predicate, baseEachRight);
  24127. }
  24128. /**
  24129. * Performs a deep comparison between each element in `collection` and the
  24130. * source object, returning the first element that has equivalent property
  24131. * values.
  24132. *
  24133. * @static
  24134. * @memberOf _
  24135. * @category Collection
  24136. * @param {Array|Object|string} collection The collection to search.
  24137. * @param {Object} source The object of property values to match.
  24138. * @returns {*} Returns the matched element, else `undefined`.
  24139. * @example
  24140. *
  24141. * var users = [
  24142. * { 'user': 'barney', 'age': 36, 'status': 'busy' },
  24143. * { 'user': 'fred', 'age': 40, 'status': 'busy' }
  24144. * ];
  24145. *
  24146. * _.result(_.findWhere(users, { 'status': 'busy' }), 'user');
  24147. * // => 'barney'
  24148. *
  24149. * _.result(_.findWhere(users, { 'age': 40 }), 'user');
  24150. * // => 'fred'
  24151. */
  24152. function findWhere(collection, source) {
  24153. return find(collection, baseMatches(source));
  24154. }
  24155. /**
  24156. * Iterates over elements of `collection` invoking `iteratee` for each element.
  24157. * The `iteratee` is bound to `thisArg` and invoked with three arguments;
  24158. * (value, index|key, collection). Iterator functions may exit iteration early
  24159. * by explicitly returning `false`.
  24160. *
  24161. * **Note:** As with other "Collections" methods, objects with a `length` property
  24162. * are iterated like arrays. To avoid this behavior `_.forIn` or `_.forOwn`
  24163. * may be used for object iteration.
  24164. *
  24165. * @static
  24166. * @memberOf _
  24167. * @alias each
  24168. * @category Collection
  24169. * @param {Array|Object|string} collection The collection to iterate over.
  24170. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  24171. * @param {*} [thisArg] The `this` binding of `iteratee`.
  24172. * @returns {Array|Object|string} Returns `collection`.
  24173. * @example
  24174. *
  24175. * _([1, 2, 3]).forEach(function(n) { console.log(n); }).value();
  24176. * // => logs each value from left to right and returns the array
  24177. *
  24178. * _.forEach({ 'one': 1, 'two': 2, 'three': 3 }, function(n, key) { console.log(n, key); });
  24179. * // => logs each value-key pair and returns the object (iteration order is not guaranteed)
  24180. */
  24181. function forEach(collection, iteratee, thisArg) {
  24182. return (typeof iteratee == 'function' && typeof thisArg == 'undefined' && isArray(collection))
  24183. ? arrayEach(collection, iteratee)
  24184. : baseEach(collection, bindCallback(iteratee, thisArg, 3));
  24185. }
  24186. /**
  24187. * This method is like `_.forEach` except that it iterates over elements of
  24188. * `collection` from right to left.
  24189. *
  24190. * @static
  24191. * @memberOf _
  24192. * @alias eachRight
  24193. * @category Collection
  24194. * @param {Array|Object|string} collection The collection to iterate over.
  24195. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  24196. * @param {*} [thisArg] The `this` binding of `iteratee`.
  24197. * @returns {Array|Object|string} Returns `collection`.
  24198. * @example
  24199. *
  24200. * _([1, 2, 3]).forEachRight(function(n) { console.log(n); }).join(',');
  24201. * // => logs each value from right to left and returns the array
  24202. */
  24203. function forEachRight(collection, iteratee, thisArg) {
  24204. return (typeof iteratee == 'function' && typeof thisArg == 'undefined' && isArray(collection))
  24205. ? arrayEachRight(collection, iteratee)
  24206. : baseEachRight(collection, bindCallback(iteratee, thisArg, 3));
  24207. }
  24208. /**
  24209. * Creates an object composed of keys generated from the results of running
  24210. * each element of `collection` through `iteratee`. The corresponding value
  24211. * of each key is an array of the elements responsible for generating the key.
  24212. * The `iteratee` is bound to `thisArg` and invoked with three arguments;
  24213. * (value, index|key, collection).
  24214. *
  24215. * If a property name is provided for `predicate` the created "_.property"
  24216. * style callback returns the property value of the given element.
  24217. *
  24218. * If an object is provided for `predicate` the created "_.matches" style
  24219. * callback returns `true` for elements that have the properties of the given
  24220. * object, else `false`.
  24221. *
  24222. * @static
  24223. * @memberOf _
  24224. * @category Collection
  24225. * @param {Array|Object|string} collection The collection to iterate over.
  24226. * @param {Function|Object|string} [iteratee=_.identity] The function invoked
  24227. * per iteration. If a property name or object is provided it is used to
  24228. * create a "_.property" or "_.matches" style callback respectively.
  24229. * @param {*} [thisArg] The `this` binding of `iteratee`.
  24230. * @returns {Object} Returns the composed aggregate object.
  24231. * @example
  24232. *
  24233. * _.groupBy([4.2, 6.1, 6.4], function(n) { return Math.floor(n); });
  24234. * // => { '4': [4.2], '6': [6.1, 6.4] }
  24235. *
  24236. * _.groupBy([4.2, 6.1, 6.4], function(n) { return this.floor(n); }, Math);
  24237. * // => { '4': [4.2], '6': [6.1, 6.4] }
  24238. *
  24239. * // using the "_.property" callback shorthand
  24240. * _.groupBy(['one', 'two', 'three'], 'length');
  24241. * // => { '3': ['one', 'two'], '5': ['three'] }
  24242. */
  24243. var groupBy = createAggregator(function(result, value, key) {
  24244. if (hasOwnProperty.call(result, key)) {
  24245. result[key].push(value);
  24246. } else {
  24247. result[key] = [value];
  24248. }
  24249. });
  24250. /**
  24251. * Creates an object composed of keys generated from the results of running
  24252. * each element of `collection` through `iteratee`. The corresponding value
  24253. * of each key is the last element responsible for generating the key. The
  24254. * iteratee function is bound to `thisArg` and invoked with three arguments;
  24255. * (value, index|key, collection).
  24256. *
  24257. * If a property name is provided for `predicate` the created "_.property"
  24258. * style callback returns the property value of the given element.
  24259. *
  24260. * If an object is provided for `predicate` the created "_.matches" style
  24261. * callback returns `true` for elements that have the properties of the given
  24262. * object, else `false`.
  24263. *
  24264. * @static
  24265. * @memberOf _
  24266. * @category Collection
  24267. * @param {Array|Object|string} collection The collection to iterate over.
  24268. * @param {Function|Object|string} [iteratee=_.identity] The function invoked
  24269. * per iteration. If a property name or object is provided it is used to
  24270. * create a "_.property" or "_.matches" style callback respectively.
  24271. * @param {*} [thisArg] The `this` binding of `iteratee`.
  24272. * @returns {Object} Returns the composed aggregate object.
  24273. * @example
  24274. *
  24275. * var keyData = [
  24276. * { 'dir': 'left', 'code': 97 },
  24277. * { 'dir': 'right', 'code': 100 }
  24278. * ];
  24279. *
  24280. * _.indexBy(keyData, 'dir');
  24281. * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }
  24282. *
  24283. * _.indexBy(keyData, function(object) { return String.fromCharCode(object.code); });
  24284. * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }
  24285. *
  24286. * _.indexBy(keyData, function(object) { return this.fromCharCode(object.code); }, String);
  24287. * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }
  24288. */
  24289. var indexBy = createAggregator(function(result, value, key) {
  24290. result[key] = value;
  24291. });
  24292. /**
  24293. * Invokes the method named by `methodName` on each element in `collection`,
  24294. * returning an array of the results of each invoked method. Any additional
  24295. * arguments are provided to each invoked method. If `methodName` is a function
  24296. * it is invoked for, and `this` bound to, each element in `collection`.
  24297. *
  24298. * @static
  24299. * @memberOf _
  24300. * @category Collection
  24301. * @param {Array|Object|string} collection The collection to iterate over.
  24302. * @param {Function|string} methodName The name of the method to invoke or
  24303. * the function invoked per iteration.
  24304. * @param {...*} [args] The arguments to invoke the method with.
  24305. * @returns {Array} Returns the array of results.
  24306. * @example
  24307. *
  24308. * _.invoke([[5, 1, 7], [3, 2, 1]], 'sort');
  24309. * // => [[1, 5, 7], [1, 2, 3]]
  24310. *
  24311. * _.invoke([123, 456], String.prototype.split, '');
  24312. * // => [['1', '2', '3'], ['4', '5', '6']]
  24313. */
  24314. function invoke(collection, methodName) {
  24315. return baseInvoke(collection, methodName, baseSlice(arguments, 2));
  24316. }
  24317. /**
  24318. * Creates an array of values by running each element in `collection` through
  24319. * `iteratee`. The `iteratee` is bound to `thisArg` and invoked with three
  24320. * arguments; (value, index|key, collection).
  24321. *
  24322. * If a property name is provided for `predicate` the created "_.property"
  24323. * style callback returns the property value of the given element.
  24324. *
  24325. * If an object is provided for `predicate` the created "_.matches" style
  24326. * callback returns `true` for elements that have the properties of the given
  24327. * object, else `false`.
  24328. *
  24329. * @static
  24330. * @memberOf _
  24331. * @alias collect
  24332. * @category Collection
  24333. * @param {Array|Object|string} collection The collection to iterate over.
  24334. * @param {Function|Object|string} [iteratee=_.identity] The function invoked
  24335. * per iteration. If a property name or object is provided it is used to
  24336. * create a "_.property" or "_.matches" style callback respectively.
  24337. * @param {*} [thisArg] The `this` binding of `iteratee`.
  24338. * @returns {Array} Returns the new mapped array.
  24339. * @example
  24340. *
  24341. * _.map([1, 2, 3], function(n) { return n * 3; });
  24342. * // => [3, 6, 9]
  24343. *
  24344. * _.map({ 'one': 1, 'two': 2, 'three': 3 }, function(n) { return n * 3; });
  24345. * // => [3, 6, 9] (iteration order is not guaranteed)
  24346. *
  24347. * var users = [
  24348. * { 'user': 'barney' },
  24349. * { 'user': 'fred' }
  24350. * ];
  24351. *
  24352. * // using the "_.property" callback shorthand
  24353. * _.map(users, 'user');
  24354. * // => ['barney', 'fred']
  24355. */
  24356. function map(collection, iteratee, thisArg) {
  24357. var func = isArray(collection) ? arrayMap : baseMap;
  24358. iteratee = getCallback(iteratee, thisArg, 3);
  24359. return func(collection, iteratee);
  24360. }
  24361. /**
  24362. * Gets the maximum value of `collection`. If `collection` is empty or falsey
  24363. * `-Infinity` is returned. If an iteratee function is provided it is invoked
  24364. * for each value in `collection` to generate the criterion by which the value
  24365. * is ranked. The `iteratee` is bound to `thisArg` and invoked with three
  24366. * arguments; (value, index, collection).
  24367. *
  24368. * If a property name is provided for `predicate` the created "_.property"
  24369. * style callback returns the property value of the given element.
  24370. *
  24371. * If an object is provided for `predicate` the created "_.matches" style
  24372. * callback returns `true` for elements that have the properties of the given
  24373. * object, else `false`.
  24374. *
  24375. * @static
  24376. * @memberOf _
  24377. * @category Collection
  24378. * @param {Array|Object|string} collection The collection to iterate over.
  24379. * @param {Function|Object|string} [iteratee] The function invoked per iteration.
  24380. * If a property name or object is provided it is used to create a "_.property"
  24381. * or "_.matches" style callback respectively.
  24382. * @param {*} [thisArg] The `this` binding of `iteratee`.
  24383. * @returns {*} Returns the maximum value.
  24384. * @example
  24385. *
  24386. * _.max([4, 2, 8, 6]);
  24387. * // => 8
  24388. *
  24389. * _.max([]);
  24390. * // => -Infinity
  24391. *
  24392. * var users = [
  24393. * { 'user': 'barney', 'age': 36 },
  24394. * { 'user': 'fred', 'age': 40 }
  24395. * ];
  24396. *
  24397. * _.max(users, function(chr) { return chr.age; });
  24398. * // => { 'user': 'fred', 'age': 40 };
  24399. *
  24400. * // using the "_.property" callback shorthand
  24401. * _.max(users, 'age');
  24402. * // => { 'user': 'fred', 'age': 40 };
  24403. */
  24404. var max = createExtremum(arrayMax);
  24405. /**
  24406. * Gets the minimum value of `collection`. If `collection` is empty or falsey
  24407. * `Infinity` is returned. If an iteratee function is provided it is invoked
  24408. * for each value in `collection` to generate the criterion by which the value
  24409. * is ranked. The `iteratee` is bound to `thisArg` and invoked with three
  24410. * arguments; (value, index, collection).
  24411. *
  24412. * If a property name is provided for `predicate` the created "_.property"
  24413. * style callback returns the property value of the given element.
  24414. *
  24415. * If an object is provided for `predicate` the created "_.matches" style
  24416. * callback returns `true` for elements that have the properties of the given
  24417. * object, else `false`.
  24418. *
  24419. * @static
  24420. * @memberOf _
  24421. * @category Collection
  24422. * @param {Array|Object|string} collection The collection to iterate over.
  24423. * @param {Function|Object|string} [iteratee] The function invoked per iteration.
  24424. * If a property name or object is provided it is used to create a "_.property"
  24425. * or "_.matches" style callback respectively.
  24426. * @param {*} [thisArg] The `this` binding of `iteratee`.
  24427. * @returns {*} Returns the minimum value.
  24428. * @example
  24429. *
  24430. * _.min([4, 2, 8, 6]);
  24431. * // => 2
  24432. *
  24433. * _.min([]);
  24434. * // => Infinity
  24435. *
  24436. * var users = [
  24437. * { 'user': 'barney', 'age': 36 },
  24438. * { 'user': 'fred', 'age': 40 }
  24439. * ];
  24440. *
  24441. * _.min(users, function(chr) { return chr.age; });
  24442. * // => { 'user': 'barney', 'age': 36 };
  24443. *
  24444. * // using the "_.property" callback shorthand
  24445. * _.min(users, 'age');
  24446. * // => { 'user': 'barney', 'age': 36 };
  24447. */
  24448. var min = createExtremum(arrayMin, true);
  24449. /**
  24450. * Creates an array of elements split into two groups, the first of which
  24451. * contains elements `predicate` returns truthy for, while the second of which
  24452. * contains elements `predicate` returns falsey for. The predicate is bound
  24453. * to `thisArg` and invoked with three arguments; (value, index|key, collection).
  24454. *
  24455. * If a property name is provided for `predicate` the created "_.property"
  24456. * style callback returns the property value of the given element.
  24457. *
  24458. * If an object is provided for `predicate` the created "_.matches" style
  24459. * callback returns `true` for elements that have the properties of the given
  24460. * object, else `false`.
  24461. *
  24462. * @static
  24463. * @memberOf _
  24464. * @category Collection
  24465. * @param {Array|Object|string} collection The collection to iterate over.
  24466. * @param {Function|Object|string} [predicate=_.identity] The function invoked
  24467. * per iteration. If a property name or object is provided it is used to
  24468. * create a "_.property" or "_.matches" style callback respectively.
  24469. * @param {*} [thisArg] The `this` binding of `predicate`.
  24470. * @returns {Array} Returns the array of grouped elements.
  24471. * @example
  24472. *
  24473. * _.partition([1, 2, 3], function(n) { return n % 2; });
  24474. * // => [[1, 3], [2]]
  24475. *
  24476. * _.partition([1.2, 2.3, 3.4], function(n) { return this.floor(n) % 2; }, Math);
  24477. * // => [[1, 3], [2]]
  24478. *
  24479. * var users = [
  24480. * { 'user': 'barney', 'age': 36, 'active': false },
  24481. * { 'user': 'fred', 'age': 40, 'active': true },
  24482. * { 'user': 'pebbles', 'age': 1, 'active': false }
  24483. * ];
  24484. *
  24485. * // using the "_.matches" callback shorthand
  24486. * _.map(_.partition(users, { 'age': 1 }), function(array) { return _.pluck(array, 'user'); });
  24487. * // => [['pebbles'], ['barney', 'fred']]
  24488. *
  24489. * // using the "_.property" callback shorthand
  24490. * _.map(_.partition(users, 'active'), function(array) { return _.pluck(array, 'user'); });
  24491. * // => [['fred'], ['barney', 'pebbles']]
  24492. */
  24493. var partition = createAggregator(function(result, value, key) {
  24494. result[key ? 0 : 1].push(value);
  24495. }, function() { return [[], []]; });
  24496. /**
  24497. * Gets the value of `key` from all elements in `collection`.
  24498. *
  24499. * @static
  24500. * @memberOf _
  24501. * @category Collection
  24502. * @param {Array|Object|string} collection The collection to iterate over.
  24503. * @param {string} key The key of the property to pluck.
  24504. * @returns {Array} Returns the property values.
  24505. * @example
  24506. *
  24507. * var users = [
  24508. * { 'user': 'barney', 'age': 36 },
  24509. * { 'user': 'fred', 'age': 40 }
  24510. * ];
  24511. *
  24512. * _.pluck(users, 'user');
  24513. * // => ['barney', 'fred']
  24514. *
  24515. * var userIndex = _.indexBy(users, 'user');
  24516. * _.pluck(userIndex, 'age');
  24517. * // => [36, 40] (iteration order is not guaranteed)
  24518. */
  24519. function pluck(collection, key) {
  24520. return map(collection, baseProperty(key + ''));
  24521. }
  24522. /**
  24523. * Reduces `collection` to a value which is the accumulated result of running
  24524. * each element in `collection` through `iteratee`, where each successive
  24525. * invocation is supplied the return value of the previous. If `accumulator`
  24526. * is not provided the first element of `collection` is used as the initial
  24527. * value. The `iteratee` is bound to `thisArg`and invoked with four arguments;
  24528. * (accumulator, value, index|key, collection).
  24529. *
  24530. * @static
  24531. * @memberOf _
  24532. * @alias foldl, inject
  24533. * @category Collection
  24534. * @param {Array|Object|string} collection The collection to iterate over.
  24535. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  24536. * @param {*} [accumulator] The initial value.
  24537. * @param {*} [thisArg] The `this` binding of `iteratee`.
  24538. * @returns {*} Returns the accumulated value.
  24539. * @example
  24540. *
  24541. * var sum = _.reduce([1, 2, 3], function(sum, n) { return sum + n; });
  24542. * // => 6
  24543. *
  24544. * var mapped = _.reduce({ 'a': 1, 'b': 2, 'c': 3 }, function(result, n, key) {
  24545. * result[key] = n * 3;
  24546. * return result;
  24547. * }, {});
  24548. * // => { 'a': 3, 'b': 6, 'c': 9 } (iteration order is not guaranteed)
  24549. */
  24550. function reduce(collection, iteratee, accumulator, thisArg) {
  24551. var func = isArray(collection) ? arrayReduce : baseReduce;
  24552. return func(collection, getCallback(iteratee, thisArg, 4), accumulator, arguments.length < 3, baseEach);
  24553. }
  24554. /**
  24555. * This method is like `_.reduce` except that it iterates over elements of
  24556. * `collection` from right to left.
  24557. *
  24558. * @static
  24559. * @memberOf _
  24560. * @alias foldr
  24561. * @category Collection
  24562. * @param {Array|Object|string} collection The collection to iterate over.
  24563. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  24564. * @param {*} [accumulator] The initial value.
  24565. * @param {*} [thisArg] The `this` binding of `iteratee`.
  24566. * @returns {*} Returns the accumulated value.
  24567. * @example
  24568. *
  24569. * var array = [[0, 1], [2, 3], [4, 5]];
  24570. * _.reduceRight(array, function(flattened, other) { return flattened.concat(other); }, []);
  24571. * // => [4, 5, 2, 3, 0, 1]
  24572. */
  24573. function reduceRight(collection, iteratee, accumulator, thisArg) {
  24574. var func = isArray(collection) ? arrayReduceRight : baseReduce;
  24575. return func(collection, getCallback(iteratee, thisArg, 4), accumulator, arguments.length < 3, baseEachRight);
  24576. }
  24577. /**
  24578. * The opposite of `_.filter`; this method returns the elements of `collection`
  24579. * that `predicate` does **not** return truthy for.
  24580. *
  24581. * If a property name is provided for `predicate` the created "_.property"
  24582. * style callback returns the property value of the given element.
  24583. *
  24584. * If an object is provided for `predicate` the created "_.matches" style
  24585. * callback returns `true` for elements that have the properties of the given
  24586. * object, else `false`.
  24587. *
  24588. * @static
  24589. * @memberOf _
  24590. * @category Collection
  24591. * @param {Array|Object|string} collection The collection to iterate over.
  24592. * @param {Function|Object|string} [predicate=_.identity] The function invoked
  24593. * per iteration. If a property name or object is provided it is used to
  24594. * create a "_.property" or "_.matches" style callback respectively.
  24595. * @param {*} [thisArg] The `this` binding of `predicate`.
  24596. * @returns {Array} Returns the new filtered array.
  24597. * @example
  24598. *
  24599. * var odds = _.reject([1, 2, 3, 4], function(n) { return n % 2 == 0; });
  24600. * // => [1, 3]
  24601. *
  24602. * var users = [
  24603. * { 'user': 'barney', 'age': 36, 'active': false },
  24604. * { 'user': 'fred', 'age': 40, 'active': true }
  24605. * ];
  24606. *
  24607. * // using the "_.property" callback shorthand
  24608. * _.pluck(_.reject(users, 'active'), 'user');
  24609. * // => ['barney']
  24610. *
  24611. * // using the "_.matches" callback shorthand
  24612. * _.pluck(_.reject(users, { 'age': 36 }), 'user');
  24613. * // => ['fred']
  24614. */
  24615. function reject(collection, predicate, thisArg) {
  24616. var func = isArray(collection) ? arrayFilter : baseFilter;
  24617. predicate = getCallback(predicate, thisArg, 3);
  24618. return func(collection, function(value, index, collection) {
  24619. return !predicate(value, index, collection);
  24620. });
  24621. }
  24622. /**
  24623. * Gets a random element or `n` random elements from a collection.
  24624. *
  24625. * @static
  24626. * @memberOf _
  24627. * @category Collection
  24628. * @param {Array|Object|string} collection The collection to sample.
  24629. * @param {number} [n] The number of elements to sample.
  24630. * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
  24631. * @returns {*} Returns the random sample(s).
  24632. * @example
  24633. *
  24634. * _.sample([1, 2, 3, 4]);
  24635. * // => 2
  24636. *
  24637. * _.sample([1, 2, 3, 4], 2);
  24638. * // => [3, 1]
  24639. */
  24640. function sample(collection, n, guard) {
  24641. if (guard ? isIterateeCall(collection, n, guard) : n == null) {
  24642. collection = toIterable(collection);
  24643. var length = collection.length;
  24644. return length > 0 ? collection[baseRandom(0, length - 1)] : undefined;
  24645. }
  24646. var result = shuffle(collection);
  24647. result.length = nativeMin(n < 0 ? 0 : (+n || 0), result.length);
  24648. return result;
  24649. }
  24650. /**
  24651. * Creates an array of shuffled values, using a version of the Fisher-Yates
  24652. * shuffle. See [Wikipedia](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle)
  24653. * for more details.
  24654. *
  24655. * @static
  24656. * @memberOf _
  24657. * @category Collection
  24658. * @param {Array|Object|string} collection The collection to shuffle.
  24659. * @returns {Array} Returns the new shuffled array.
  24660. * @example
  24661. *
  24662. * _.shuffle([1, 2, 3, 4]);
  24663. * // => [4, 1, 3, 2]
  24664. */
  24665. function shuffle(collection) {
  24666. collection = toIterable(collection);
  24667. var index = -1,
  24668. length = collection.length,
  24669. result = Array(length);
  24670. while (++index < length) {
  24671. var rand = baseRandom(0, index);
  24672. if (index != rand) {
  24673. result[index] = result[rand];
  24674. }
  24675. result[rand] = collection[index];
  24676. }
  24677. return result;
  24678. }
  24679. /**
  24680. * Gets the size of `collection` by returning `collection.length` for
  24681. * array-like values or the number of own enumerable properties for objects.
  24682. *
  24683. * @static
  24684. * @memberOf _
  24685. * @category Collection
  24686. * @param {Array|Object|string} collection The collection to inspect.
  24687. * @returns {number} Returns the size of `collection`.
  24688. * @example
  24689. *
  24690. * _.size([1, 2]);
  24691. * // => 2
  24692. *
  24693. * _.size({ 'one': 1, 'two': 2, 'three': 3 });
  24694. * // => 3
  24695. *
  24696. * _.size('pebbles');
  24697. * // => 7
  24698. */
  24699. function size(collection) {
  24700. var length = collection ? collection.length : 0;
  24701. return isLength(length) ? length : keys(collection).length;
  24702. }
  24703. /**
  24704. * Checks if `predicate` returns truthy for **any** element of `collection`.
  24705. * The function returns as soon as it finds a passing value and does not iterate
  24706. * over the entire collection. The predicate is bound to `thisArg` and invoked
  24707. * with three arguments; (value, index|key, collection).
  24708. *
  24709. * If a property name is provided for `predicate` the created "_.property"
  24710. * style callback returns the property value of the given element.
  24711. *
  24712. * If an object is provided for `predicate` the created "_.matches" style
  24713. * callback returns `true` for elements that have the properties of the given
  24714. * object, else `false`.
  24715. *
  24716. * @static
  24717. * @memberOf _
  24718. * @alias any
  24719. * @category Collection
  24720. * @param {Array|Object|string} collection The collection to iterate over.
  24721. * @param {Function|Object|string} [predicate=_.identity] The function invoked
  24722. * per iteration. If a property name or object is provided it is used to
  24723. * create a "_.property" or "_.matches" style callback respectively.
  24724. * @param {*} [thisArg] The `this` binding of `predicate`.
  24725. * @returns {boolean} Returns `true` if any element passes the predicate check,
  24726. * else `false`.
  24727. * @example
  24728. *
  24729. * _.some([null, 0, 'yes', false], Boolean);
  24730. * // => true
  24731. *
  24732. * var users = [
  24733. * { 'user': 'barney', 'age': 36, 'active': false },
  24734. * { 'user': 'fred', 'age': 40, 'active': true }
  24735. * ];
  24736. *
  24737. * // using the "_.property" callback shorthand
  24738. * _.some(users, 'active');
  24739. * // => true
  24740. *
  24741. * // using the "_.matches" callback shorthand
  24742. * _.some(users, { 'age': 1 });
  24743. * // => false
  24744. */
  24745. function some(collection, predicate, thisArg) {
  24746. var func = isArray(collection) ? arraySome : baseSome;
  24747. if (typeof predicate != 'function' || typeof thisArg != 'undefined') {
  24748. predicate = getCallback(predicate, thisArg, 3);
  24749. }
  24750. return func(collection, predicate);
  24751. }
  24752. /**
  24753. * Creates an array of elements, sorted in ascending order by the results of
  24754. * running each element in a collection through `iteratee`. This method performs
  24755. * a stable sort, that is, it preserves the original sort order of equal elements.
  24756. * The `iteratee` is bound to `thisArg` and invoked with three arguments;
  24757. * (value, index|key, collection).
  24758. *
  24759. * If a property name is provided for `predicate` the created "_.property"
  24760. * style callback returns the property value of the given element.
  24761. *
  24762. * If an object is provided for `predicate` the created "_.matches" style
  24763. * callback returns `true` for elements that have the properties of the given
  24764. * object, else `false`.
  24765. *
  24766. * @static
  24767. * @memberOf _
  24768. * @category Collection
  24769. * @param {Array|Object|string} collection The collection to iterate over.
  24770. * @param {Array|Function|Object|string} [iteratee=_.identity] The function
  24771. * invoked per iteration. If a property name or an object is provided it is
  24772. * used to create a "_.property" or "_.matches" style callback respectively.
  24773. * @param {*} [thisArg] The `this` binding of `iteratee`.
  24774. * @returns {Array} Returns the new sorted array.
  24775. * @example
  24776. *
  24777. * _.sortBy([1, 2, 3], function(n) { return Math.sin(n); });
  24778. * // => [3, 1, 2]
  24779. *
  24780. * _.sortBy([1, 2, 3], function(n) { return this.sin(n); }, Math);
  24781. * // => [3, 1, 2]
  24782. *
  24783. * var users = [
  24784. * { 'user': 'fred' },
  24785. * { 'user': 'pebbles' },
  24786. * { 'user': 'barney' }
  24787. * ];
  24788. *
  24789. * // using the "_.property" callback shorthand
  24790. * _.pluck(_.sortBy(users, 'user'), 'user');
  24791. * // => ['barney', 'fred', 'pebbles']
  24792. */
  24793. function sortBy(collection, iteratee, thisArg) {
  24794. var index = -1,
  24795. length = collection ? collection.length : 0,
  24796. result = isLength(length) ? Array(length) : [];
  24797. if (thisArg && isIterateeCall(collection, iteratee, thisArg)) {
  24798. iteratee = null;
  24799. }
  24800. iteratee = getCallback(iteratee, thisArg, 3);
  24801. baseEach(collection, function(value, key, collection) {
  24802. result[++index] = { 'criteria': iteratee(value, key, collection), 'index': index, 'value': value };
  24803. });
  24804. return baseSortBy(result, compareAscending);
  24805. }
  24806. /**
  24807. * This method is like `_.sortBy` except that it sorts by property names
  24808. * instead of an iteratee function.
  24809. *
  24810. * @static
  24811. * @memberOf _
  24812. * @category Collection
  24813. * @param {Array|Object|string} collection The collection to iterate over.
  24814. * @param {...(string|string[])} props The property names to sort by,
  24815. * specified as individual property names or arrays of property names.
  24816. * @returns {Array} Returns the new sorted array.
  24817. * @example
  24818. *
  24819. * var users = [
  24820. * { 'user': 'barney', 'age': 36 },
  24821. * { 'user': 'fred', 'age': 40 },
  24822. * { 'user': 'barney', 'age': 26 },
  24823. * { 'user': 'fred', 'age': 30 }
  24824. * ];
  24825. *
  24826. * _.map(_.sortByAll(users, ['user', 'age']), _.values);
  24827. * // => [['barney', 26], ['barney', 36], ['fred', 30], ['fred', 40]]
  24828. */
  24829. function sortByAll(collection) {
  24830. var args = arguments;
  24831. if (args.length > 3 && isIterateeCall(args[1], args[2], args[3])) {
  24832. args = [collection, args[1]];
  24833. }
  24834. var index = -1,
  24835. length = collection ? collection.length : 0,
  24836. props = baseFlatten(args, false, false, 1),
  24837. result = isLength(length) ? Array(length) : [];
  24838. baseEach(collection, function(value, key, collection) {
  24839. var length = props.length,
  24840. criteria = Array(length);
  24841. while (length--) {
  24842. criteria[length] = value == null ? undefined : value[props[length]];
  24843. }
  24844. result[++index] = { 'criteria': criteria, 'index': index, 'value': value };
  24845. });
  24846. return baseSortBy(result, compareMultipleAscending);
  24847. }
  24848. /**
  24849. * Performs a deep comparison between each element in `collection` and the
  24850. * source object, returning an array of all elements that have equivalent
  24851. * property values.
  24852. *
  24853. * @static
  24854. * @memberOf _
  24855. * @category Collection
  24856. * @param {Array|Object|string} collection The collection to search.
  24857. * @param {Object} source The object of property values to match.
  24858. * @returns {Array} Returns the new filtered array.
  24859. * @example
  24860. *
  24861. * var users = [
  24862. * { 'user': 'barney', 'age': 36, 'status': 'busy', 'pets': ['hoppy'] },
  24863. * { 'user': 'fred', 'age': 40, 'status': 'busy', 'pets': ['baby puss', 'dino'] }
  24864. * ];
  24865. *
  24866. * _.pluck(_.where(users, { 'age': 36 }), 'user');
  24867. * // => ['barney']
  24868. *
  24869. * _.pluck(_.where(users, { 'pets': ['dino'] }), 'user');
  24870. * // => ['fred']
  24871. *
  24872. * _.pluck(_.where(users, { 'status': 'busy' }), 'user');
  24873. * // => ['barney', 'fred']
  24874. */
  24875. function where(collection, source) {
  24876. return filter(collection, baseMatches(source));
  24877. }
  24878. /*------------------------------------------------------------------------*/
  24879. /**
  24880. * Gets the number of milliseconds that have elapsed since the Unix epoch
  24881. * (1 January 1970 00:00:00 UTC).
  24882. *
  24883. * @static
  24884. * @memberOf _
  24885. * @category Date
  24886. * @example
  24887. *
  24888. * _.defer(function(stamp) { console.log(_.now() - stamp); }, _.now());
  24889. * // => logs the number of milliseconds it took for the deferred function to be invoked
  24890. */
  24891. var now = nativeNow || function() {
  24892. return new Date().getTime();
  24893. };
  24894. /*------------------------------------------------------------------------*/
  24895. /**
  24896. * The opposite of `_.before`; this method creates a function that invokes
  24897. * `func` once it is called `n` or more times.
  24898. *
  24899. * @static
  24900. * @memberOf _
  24901. * @category Function
  24902. * @param {number} n The number of calls before `func` is invoked.
  24903. * @param {Function} func The function to restrict.
  24904. * @returns {Function} Returns the new restricted function.
  24905. * @example
  24906. *
  24907. * var saves = ['profile', 'settings'];
  24908. *
  24909. * var done = _.after(saves.length, function() {
  24910. * console.log('done saving!');
  24911. * });
  24912. *
  24913. * _.forEach(saves, function(type) {
  24914. * asyncSave({ 'type': type, 'complete': done });
  24915. * });
  24916. * // => logs 'done saving!' after the two async saves have completed
  24917. */
  24918. function after(n, func) {
  24919. if (!isFunction(func)) {
  24920. if (isFunction(n)) {
  24921. var temp = n;
  24922. n = func;
  24923. func = temp;
  24924. } else {
  24925. throw new TypeError(FUNC_ERROR_TEXT);
  24926. }
  24927. }
  24928. n = nativeIsFinite(n = +n) ? n : 0;
  24929. return function() {
  24930. if (--n < 1) {
  24931. return func.apply(this, arguments);
  24932. }
  24933. };
  24934. }
  24935. /**
  24936. * Creates a function that accepts up to `n` arguments ignoring any
  24937. * additional arguments.
  24938. *
  24939. * @static
  24940. * @memberOf _
  24941. * @category Function
  24942. * @param {Function} func The function to cap arguments for.
  24943. * @param {number} [n=func.length] The arity cap.
  24944. * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
  24945. * @returns {Function} Returns the new function.
  24946. * @example
  24947. *
  24948. * _.map(['6', '8', '10'], _.ary(parseInt, 1));
  24949. * // => [6, 8, 10]
  24950. */
  24951. function ary(func, n, guard) {
  24952. if (guard && isIterateeCall(func, n, guard)) {
  24953. n = null;
  24954. }
  24955. n = (func && n == null) ? func.length : nativeMax(+n || 0, 0);
  24956. return createWrapper(func, ARY_FLAG, null, null, null, null, n);
  24957. }
  24958. /**
  24959. * Creates a function that invokes `func`, with the `this` binding and arguments
  24960. * of the created function, while it is called less than `n` times. Subsequent
  24961. * calls to the created function return the result of the last `func` invocation.
  24962. *
  24963. * @static
  24964. * @memberOf _
  24965. * @category Function
  24966. * @param {number} n The number of calls at which `func` is no longer invoked.
  24967. * @param {Function} func The function to restrict.
  24968. * @returns {Function} Returns the new restricted function.
  24969. * @example
  24970. *
  24971. * jQuery('#add').on('click', _.before(5, addContactToList));
  24972. * // => allows adding up to 4 contacts to the list
  24973. */
  24974. function before(n, func) {
  24975. var result;
  24976. if (!isFunction(func)) {
  24977. if (isFunction(n)) {
  24978. var temp = n;
  24979. n = func;
  24980. func = temp;
  24981. } else {
  24982. throw new TypeError(FUNC_ERROR_TEXT);
  24983. }
  24984. }
  24985. return function() {
  24986. if (--n > 0) {
  24987. result = func.apply(this, arguments);
  24988. } else {
  24989. func = null;
  24990. }
  24991. return result;
  24992. };
  24993. }
  24994. /**
  24995. * Creates a function that invokes `func` with the `this` binding of `thisArg`
  24996. * and prepends any additional `_.bind` arguments to those provided to the
  24997. * bound function.
  24998. *
  24999. * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,
  25000. * may be used as a placeholder for partially applied arguments.
  25001. *
  25002. * **Note:** Unlike native `Function#bind` this method does not set the `length`
  25003. * property of bound functions.
  25004. *
  25005. * @static
  25006. * @memberOf _
  25007. * @category Function
  25008. * @param {Function} func The function to bind.
  25009. * @param {*} thisArg The `this` binding of `func`.
  25010. * @param {...*} [args] The arguments to be partially applied.
  25011. * @returns {Function} Returns the new bound function.
  25012. * @example
  25013. *
  25014. * var greet = function(greeting, punctuation) {
  25015. * return greeting + ' ' + this.user + punctuation;
  25016. * };
  25017. *
  25018. * var object = { 'user': 'fred' };
  25019. *
  25020. * var bound = _.bind(greet, object, 'hi');
  25021. * bound('!');
  25022. * // => 'hi fred!'
  25023. *
  25024. * // using placeholders
  25025. * var bound = _.bind(greet, object, _, '!');
  25026. * bound('hi');
  25027. * // => 'hi fred!'
  25028. */
  25029. function bind(func, thisArg) {
  25030. var bitmask = BIND_FLAG;
  25031. if (arguments.length > 2) {
  25032. var partials = baseSlice(arguments, 2),
  25033. holders = replaceHolders(partials, bind.placeholder);
  25034. bitmask |= PARTIAL_FLAG;
  25035. }
  25036. return createWrapper(func, bitmask, thisArg, partials, holders);
  25037. }
  25038. /**
  25039. * Binds methods of an object to the object itself, overwriting the existing
  25040. * method. Method names may be specified as individual arguments or as arrays
  25041. * of method names. If no method names are provided all enumerable function
  25042. * properties, own and inherited, of `object` are bound.
  25043. *
  25044. * **Note:** This method does not set the `length` property of bound functions.
  25045. *
  25046. * @static
  25047. * @memberOf _
  25048. * @category Function
  25049. * @param {Object} object The object to bind and assign the bound methods to.
  25050. * @param {...(string|string[])} [methodNames] The object method names to bind,
  25051. * specified as individual method names or arrays of method names.
  25052. * @returns {Object} Returns `object`.
  25053. * @example
  25054. *
  25055. * var view = {
  25056. * 'label': 'docs',
  25057. * 'onClick': function() { console.log('clicked ' + this.label); }
  25058. * };
  25059. *
  25060. * _.bindAll(view);
  25061. * jQuery('#docs').on('click', view.onClick);
  25062. * // => logs 'clicked docs' when the element is clicked
  25063. */
  25064. function bindAll(object) {
  25065. return baseBindAll(object,
  25066. arguments.length > 1
  25067. ? baseFlatten(arguments, false, false, 1)
  25068. : functions(object)
  25069. );
  25070. }
  25071. /**
  25072. * Creates a function that invokes the method at `object[key]` and prepends
  25073. * any additional `_.bindKey` arguments to those provided to the bound function.
  25074. *
  25075. * This method differs from `_.bind` by allowing bound functions to reference
  25076. * methods that may be redefined or don't yet exist.
  25077. * See [Peter Michaux's article](http://michaux.ca/articles/lazy-function-definition-pattern)
  25078. * for more details.
  25079. *
  25080. * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic
  25081. * builds, may be used as a placeholder for partially applied arguments.
  25082. *
  25083. * @static
  25084. * @memberOf _
  25085. * @category Function
  25086. * @param {Object} object The object the method belongs to.
  25087. * @param {string} key The key of the method.
  25088. * @param {...*} [args] The arguments to be partially applied.
  25089. * @returns {Function} Returns the new bound function.
  25090. * @example
  25091. *
  25092. * var object = {
  25093. * 'user': 'fred',
  25094. * 'greet': function(greeting, punctuation) {
  25095. * return greeting + ' ' + this.user + punctuation;
  25096. * }
  25097. * };
  25098. *
  25099. * var bound = _.bindKey(object, 'greet', 'hi');
  25100. * bound('!');
  25101. * // => 'hi fred!'
  25102. *
  25103. * object.greet = function(greeting, punctuation) {
  25104. * return greeting + 'ya ' + this.user + punctuation;
  25105. * };
  25106. *
  25107. * bound('!');
  25108. * // => 'hiya fred!'
  25109. *
  25110. * // using placeholders
  25111. * var bound = _.bindKey(object, 'greet', _, '!');
  25112. * bound('hi');
  25113. * // => 'hiya fred!'
  25114. */
  25115. function bindKey(object, key) {
  25116. var bitmask = BIND_FLAG | BIND_KEY_FLAG;
  25117. if (arguments.length > 2) {
  25118. var partials = baseSlice(arguments, 2),
  25119. holders = replaceHolders(partials, bindKey.placeholder);
  25120. bitmask |= PARTIAL_FLAG;
  25121. }
  25122. return createWrapper(key, bitmask, object, partials, holders);
  25123. }
  25124. /**
  25125. * Creates a function that accepts one or more arguments of `func` that when
  25126. * called either invokes `func` returning its result, if all `func` arguments
  25127. * have been provided, or returns a function that accepts one or more of the
  25128. * remaining `func` arguments, and so on. The arity of `func` may be specified
  25129. * if `func.length` is not sufficient.
  25130. *
  25131. * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,
  25132. * may be used as a placeholder for provided arguments.
  25133. *
  25134. * **Note:** This method does not set the `length` property of curried functions.
  25135. *
  25136. * @static
  25137. * @memberOf _
  25138. * @category Function
  25139. * @param {Function} func The function to curry.
  25140. * @param {number} [arity=func.length] The arity of `func`.
  25141. * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
  25142. * @returns {Function} Returns the new curried function.
  25143. * @example
  25144. *
  25145. * var abc = function(a, b, c) {
  25146. * return [a, b, c];
  25147. * };
  25148. *
  25149. * var curried = _.curry(abc);
  25150. *
  25151. * curried(1)(2)(3);
  25152. * // => [1, 2, 3]
  25153. *
  25154. * curried(1, 2)(3);
  25155. * // => [1, 2, 3]
  25156. *
  25157. * curried(1, 2, 3);
  25158. * // => [1, 2, 3]
  25159. *
  25160. * // using placeholders
  25161. * curried(1)(_, 3)(2);
  25162. * // => [1, 2, 3]
  25163. */
  25164. function curry(func, arity, guard) {
  25165. if (guard && isIterateeCall(func, arity, guard)) {
  25166. arity = null;
  25167. }
  25168. var result = createWrapper(func, CURRY_FLAG, null, null, null, null, null, arity);
  25169. result.placeholder = curry.placeholder;
  25170. return result;
  25171. }
  25172. /**
  25173. * This method is like `_.curry` except that arguments are applied to `func`
  25174. * in the manner of `_.partialRight` instead of `_.partial`.
  25175. *
  25176. * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic
  25177. * builds, may be used as a placeholder for provided arguments.
  25178. *
  25179. * **Note:** This method does not set the `length` property of curried functions.
  25180. *
  25181. * @static
  25182. * @memberOf _
  25183. * @category Function
  25184. * @param {Function} func The function to curry.
  25185. * @param {number} [arity=func.length] The arity of `func`.
  25186. * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
  25187. * @returns {Function} Returns the new curried function.
  25188. * @example
  25189. *
  25190. * var abc = function(a, b, c) {
  25191. * return [a, b, c];
  25192. * };
  25193. *
  25194. * var curried = _.curryRight(abc);
  25195. *
  25196. * curried(3)(2)(1);
  25197. * // => [1, 2, 3]
  25198. *
  25199. * curried(2, 3)(1);
  25200. * // => [1, 2, 3]
  25201. *
  25202. * curried(1, 2, 3);
  25203. * // => [1, 2, 3]
  25204. *
  25205. * // using placeholders
  25206. * curried(3)(1, _)(2);
  25207. * // => [1, 2, 3]
  25208. */
  25209. function curryRight(func, arity, guard) {
  25210. if (guard && isIterateeCall(func, arity, guard)) {
  25211. arity = null;
  25212. }
  25213. var result = createWrapper(func, CURRY_RIGHT_FLAG, null, null, null, null, null, arity);
  25214. result.placeholder = curryRight.placeholder;
  25215. return result;
  25216. }
  25217. /**
  25218. * Creates a function that delays invoking `func` until after `wait` milliseconds
  25219. * have elapsed since the last time it was invoked. The created function comes
  25220. * with a `cancel` method to cancel delayed invocations. Provide an options
  25221. * object to indicate that `func` should be invoked on the leading and/or
  25222. * trailing edge of the `wait` timeout. Subsequent calls to the debounced
  25223. * function return the result of the last `func` invocation.
  25224. *
  25225. * **Note:** If `leading` and `trailing` options are `true`, `func` is invoked
  25226. * on the trailing edge of the timeout only if the the debounced function is
  25227. * invoked more than once during the `wait` timeout.
  25228. *
  25229. * See [David Corbacho's article](http://drupalmotion.com/article/debounce-and-throttle-visual-explanation)
  25230. * for details over the differences between `_.debounce` and `_.throttle`.
  25231. *
  25232. * @static
  25233. * @memberOf _
  25234. * @category Function
  25235. * @param {Function} func The function to debounce.
  25236. * @param {number} wait The number of milliseconds to delay.
  25237. * @param {Object} [options] The options object.
  25238. * @param {boolean} [options.leading=false] Specify invoking on the leading
  25239. * edge of the timeout.
  25240. * @param {number} [options.maxWait] The maximum time `func` is allowed to be
  25241. * delayed before it is invoked.
  25242. * @param {boolean} [options.trailing=true] Specify invoking on the trailing
  25243. * edge of the timeout.
  25244. * @returns {Function} Returns the new debounced function.
  25245. * @example
  25246. *
  25247. * // avoid costly calculations while the window size is in flux
  25248. * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
  25249. *
  25250. * // invoke `sendMail` when the click event is fired, debouncing subsequent calls
  25251. * jQuery('#postbox').on('click', _.debounce(sendMail, 300, {
  25252. * 'leading': true,
  25253. * 'trailing': false
  25254. * }));
  25255. *
  25256. * // ensure `batchLog` is invoked once after 1 second of debounced calls
  25257. * var source = new EventSource('/stream');
  25258. * jQuery(source).on('message', _.debounce(batchLog, 250, {
  25259. * 'maxWait': 1000
  25260. * }));
  25261. *
  25262. * // cancel a debounced call
  25263. * var todoChanges = _.debounce(batchLog, 1000);
  25264. * Object.observe(models.todo, todoChanges);
  25265. *
  25266. * Object.observe(models, function(changes) {
  25267. * if (_.find(changes, { 'user': 'todo', 'type': 'delete'})) {
  25268. * todoChanges.cancel();
  25269. * }
  25270. * }, ['delete']);
  25271. *
  25272. * // ...at some point `models.todo` is changed
  25273. * models.todo.completed = true;
  25274. *
  25275. * // ...before 1 second has passed `models.todo` is deleted
  25276. * // which cancels the debounced `todoChanges` call
  25277. * delete models.todo;
  25278. */
  25279. function debounce(func, wait, options) {
  25280. var args,
  25281. maxTimeoutId,
  25282. result,
  25283. stamp,
  25284. thisArg,
  25285. timeoutId,
  25286. trailingCall,
  25287. lastCalled = 0,
  25288. maxWait = false,
  25289. trailing = true;
  25290. if (!isFunction(func)) {
  25291. throw new TypeError(FUNC_ERROR_TEXT);
  25292. }
  25293. wait = wait < 0 ? 0 : wait;
  25294. if (options === true) {
  25295. var leading = true;
  25296. trailing = false;
  25297. } else if (isObject(options)) {
  25298. leading = options.leading;
  25299. maxWait = 'maxWait' in options && nativeMax(+options.maxWait || 0, wait);
  25300. trailing = 'trailing' in options ? options.trailing : trailing;
  25301. }
  25302. function cancel() {
  25303. if (timeoutId) {
  25304. clearTimeout(timeoutId);
  25305. }
  25306. if (maxTimeoutId) {
  25307. clearTimeout(maxTimeoutId);
  25308. }
  25309. maxTimeoutId = timeoutId = trailingCall = undefined;
  25310. }
  25311. function delayed() {
  25312. var remaining = wait - (now() - stamp);
  25313. if (remaining <= 0 || remaining > wait) {
  25314. if (maxTimeoutId) {
  25315. clearTimeout(maxTimeoutId);
  25316. }
  25317. var isCalled = trailingCall;
  25318. maxTimeoutId = timeoutId = trailingCall = undefined;
  25319. if (isCalled) {
  25320. lastCalled = now();
  25321. result = func.apply(thisArg, args);
  25322. if (!timeoutId && !maxTimeoutId) {
  25323. args = thisArg = null;
  25324. }
  25325. }
  25326. } else {
  25327. timeoutId = setTimeout(delayed, remaining);
  25328. }
  25329. }
  25330. function maxDelayed() {
  25331. if (timeoutId) {
  25332. clearTimeout(timeoutId);
  25333. }
  25334. maxTimeoutId = timeoutId = trailingCall = undefined;
  25335. if (trailing || (maxWait !== wait)) {
  25336. lastCalled = now();
  25337. result = func.apply(thisArg, args);
  25338. if (!timeoutId && !maxTimeoutId) {
  25339. args = thisArg = null;
  25340. }
  25341. }
  25342. }
  25343. function debounced() {
  25344. args = arguments;
  25345. stamp = now();
  25346. thisArg = this;
  25347. trailingCall = trailing && (timeoutId || !leading);
  25348. if (maxWait === false) {
  25349. var leadingCall = leading && !timeoutId;
  25350. } else {
  25351. if (!maxTimeoutId && !leading) {
  25352. lastCalled = stamp;
  25353. }
  25354. var remaining = maxWait - (stamp - lastCalled),
  25355. isCalled = remaining <= 0 || remaining > maxWait;
  25356. if (isCalled) {
  25357. if (maxTimeoutId) {
  25358. maxTimeoutId = clearTimeout(maxTimeoutId);
  25359. }
  25360. lastCalled = stamp;
  25361. result = func.apply(thisArg, args);
  25362. }
  25363. else if (!maxTimeoutId) {
  25364. maxTimeoutId = setTimeout(maxDelayed, remaining);
  25365. }
  25366. }
  25367. if (isCalled && timeoutId) {
  25368. timeoutId = clearTimeout(timeoutId);
  25369. }
  25370. else if (!timeoutId && wait !== maxWait) {
  25371. timeoutId = setTimeout(delayed, wait);
  25372. }
  25373. if (leadingCall) {
  25374. isCalled = true;
  25375. result = func.apply(thisArg, args);
  25376. }
  25377. if (isCalled && !timeoutId && !maxTimeoutId) {
  25378. args = thisArg = null;
  25379. }
  25380. return result;
  25381. }
  25382. debounced.cancel = cancel;
  25383. return debounced;
  25384. }
  25385. /**
  25386. * Defers invoking the `func` until the current call stack has cleared. Any
  25387. * additional arguments are provided to `func` when it is invoked.
  25388. *
  25389. * @static
  25390. * @memberOf _
  25391. * @category Function
  25392. * @param {Function} func The function to defer.
  25393. * @param {...*} [args] The arguments to invoke the function with.
  25394. * @returns {number} Returns the timer id.
  25395. * @example
  25396. *
  25397. * _.defer(function(text) { console.log(text); }, 'deferred');
  25398. * // logs 'deferred' after one or more milliseconds
  25399. */
  25400. function defer(func) {
  25401. return baseDelay(func, 1, arguments, 1);
  25402. }
  25403. /**
  25404. * Invokes `func` after `wait` milliseconds. Any additional arguments are
  25405. * provided to `func` when it is invoked.
  25406. *
  25407. * @static
  25408. * @memberOf _
  25409. * @category Function
  25410. * @param {Function} func The function to delay.
  25411. * @param {number} wait The number of milliseconds to delay invocation.
  25412. * @param {...*} [args] The arguments to invoke the function with.
  25413. * @returns {number} Returns the timer id.
  25414. * @example
  25415. *
  25416. * _.delay(function(text) { console.log(text); }, 1000, 'later');
  25417. * // => logs 'later' after one second
  25418. */
  25419. function delay(func, wait) {
  25420. return baseDelay(func, wait, arguments, 2);
  25421. }
  25422. /**
  25423. * Creates a function that returns the result of invoking the provided
  25424. * functions with the `this` binding of the created function, where each
  25425. * successive invocation is supplied the return value of the previous.
  25426. *
  25427. * @static
  25428. * @memberOf _
  25429. * @category Function
  25430. * @param {...Function} [funcs] Functions to invoke.
  25431. * @returns {Function} Returns the new function.
  25432. * @example
  25433. *
  25434. * function add(x, y) {
  25435. * return x + y;
  25436. * }
  25437. *
  25438. * function square(n) {
  25439. * return n * n;
  25440. * }
  25441. *
  25442. * var addSquare = _.flow(add, square);
  25443. * addSquare(1, 2);
  25444. * // => 9
  25445. */
  25446. function flow() {
  25447. var funcs = arguments,
  25448. length = funcs.length;
  25449. if (!length) {
  25450. return function() {};
  25451. }
  25452. if (!arrayEvery(funcs, isFunction)) {
  25453. throw new TypeError(FUNC_ERROR_TEXT);
  25454. }
  25455. return function() {
  25456. var index = 0,
  25457. result = funcs[index].apply(this, arguments);
  25458. while (++index < length) {
  25459. result = funcs[index].call(this, result);
  25460. }
  25461. return result;
  25462. };
  25463. }
  25464. /**
  25465. * This method is like `_.flow` except that it creates a function that
  25466. * invokes the provided functions from right to left.
  25467. *
  25468. * @static
  25469. * @memberOf _
  25470. * @alias backflow, compose
  25471. * @category Function
  25472. * @param {...Function} [funcs] Functions to invoke.
  25473. * @returns {Function} Returns the new function.
  25474. * @example
  25475. *
  25476. * function add(x, y) {
  25477. * return x + y;
  25478. * }
  25479. *
  25480. * function square(n) {
  25481. * return n * n;
  25482. * }
  25483. *
  25484. * var addSquare = _.flowRight(square, add);
  25485. * addSquare(1, 2);
  25486. * // => 9
  25487. */
  25488. function flowRight() {
  25489. var funcs = arguments,
  25490. fromIndex = funcs.length - 1;
  25491. if (fromIndex < 0) {
  25492. return function() {};
  25493. }
  25494. if (!arrayEvery(funcs, isFunction)) {
  25495. throw new TypeError(FUNC_ERROR_TEXT);
  25496. }
  25497. return function() {
  25498. var index = fromIndex,
  25499. result = funcs[index].apply(this, arguments);
  25500. while (index--) {
  25501. result = funcs[index].call(this, result);
  25502. }
  25503. return result;
  25504. };
  25505. }
  25506. /**
  25507. * Creates a function that memoizes the result of `func`. If `resolver` is
  25508. * provided it determines the cache key for storing the result based on the
  25509. * arguments provided to the memoized function. By default, the first argument
  25510. * provided to the memoized function is coerced to a string and used as the
  25511. * cache key. The `func` is invoked with the `this` binding of the memoized
  25512. * function.
  25513. *
  25514. * **Note:** The cache is exposed as the `cache` property on the memoized
  25515. * function. Its creation may be customized by replacing the `_.memoize.Cache`
  25516. * constructor with one whose instances implement the ES `Map` method interface
  25517. * of `get`, `has`, and `set`. See the
  25518. * [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-properties-of-the-map-prototype-object)
  25519. * for more details.
  25520. *
  25521. * @static
  25522. * @memberOf _
  25523. * @category Function
  25524. * @param {Function} func The function to have its output memoized.
  25525. * @param {Function} [resolver] The function to resolve the cache key.
  25526. * @returns {Function} Returns the new memoizing function.
  25527. * @example
  25528. *
  25529. * var upperCase = _.memoize(function(string) {
  25530. * return string.toUpperCase();
  25531. * });
  25532. *
  25533. * upperCase('fred');
  25534. * // => 'FRED'
  25535. *
  25536. * // modifying the result cache
  25537. * upperCase.cache.set('fred', 'BARNEY');
  25538. * upperCase('fred');
  25539. * // => 'BARNEY'
  25540. *
  25541. * // replacing `_.memoize.Cache`
  25542. * var object = { 'user': 'fred' };
  25543. * var other = { 'user': 'barney' };
  25544. * var identity = _.memoize(_.identity);
  25545. *
  25546. * identity(object);
  25547. * // => { 'user': 'fred' }
  25548. * identity(other);
  25549. * // => { 'user': 'fred' }
  25550. *
  25551. * _.memoize.Cache = WeakMap;
  25552. * var identity = _.memoize(_.identity);
  25553. *
  25554. * identity(object);
  25555. * // => { 'user': 'fred' }
  25556. * identity(other);
  25557. * // => { 'user': 'barney' }
  25558. */
  25559. function memoize(func, resolver) {
  25560. if (!isFunction(func) || (resolver && !isFunction(resolver))) {
  25561. throw new TypeError(FUNC_ERROR_TEXT);
  25562. }
  25563. var memoized = function() {
  25564. var cache = memoized.cache,
  25565. key = resolver ? resolver.apply(this, arguments) : arguments[0];
  25566. if (cache.has(key)) {
  25567. return cache.get(key);
  25568. }
  25569. var result = func.apply(this, arguments);
  25570. cache.set(key, result);
  25571. return result;
  25572. };
  25573. memoized.cache = new memoize.Cache;
  25574. return memoized;
  25575. }
  25576. /**
  25577. * Creates a function that negates the result of the predicate `func`. The
  25578. * `func` predicate is invoked with the `this` binding and arguments of the
  25579. * created function.
  25580. *
  25581. * @static
  25582. * @memberOf _
  25583. * @category Function
  25584. * @param {Function} predicate The predicate to negate.
  25585. * @returns {Function} Returns the new function.
  25586. * @example
  25587. *
  25588. * function isEven(n) {
  25589. * return n % 2 == 0;
  25590. * }
  25591. *
  25592. * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));
  25593. * // => [1, 3, 5]
  25594. */
  25595. function negate(predicate) {
  25596. if (!isFunction(predicate)) {
  25597. throw new TypeError(FUNC_ERROR_TEXT);
  25598. }
  25599. return function() {
  25600. return !predicate.apply(this, arguments);
  25601. };
  25602. }
  25603. /**
  25604. * Creates a function that is restricted to invoking `func` once. Repeat calls
  25605. * to the function return the value of the first call. The `func` is invoked
  25606. * with the `this` binding of the created function.
  25607. *
  25608. * @static
  25609. * @memberOf _
  25610. * @type Function
  25611. * @category Function
  25612. * @param {Function} func The function to restrict.
  25613. * @returns {Function} Returns the new restricted function.
  25614. * @example
  25615. *
  25616. * var initialize = _.once(createApplication);
  25617. * initialize();
  25618. * initialize();
  25619. * // `initialize` invokes `createApplication` once
  25620. */
  25621. function once(func) {
  25622. return before(func, 2);
  25623. }
  25624. /**
  25625. * Creates a function that invokes `func` with `partial` arguments prepended
  25626. * to those provided to the new function. This method is like `_.bind` except
  25627. * it does **not** alter the `this` binding.
  25628. *
  25629. * The `_.partial.placeholder` value, which defaults to `_` in monolithic
  25630. * builds, may be used as a placeholder for partially applied arguments.
  25631. *
  25632. * **Note:** This method does not set the `length` property of partially
  25633. * applied functions.
  25634. *
  25635. * @static
  25636. * @memberOf _
  25637. * @category Function
  25638. * @param {Function} func The function to partially apply arguments to.
  25639. * @param {...*} [args] The arguments to be partially applied.
  25640. * @returns {Function} Returns the new partially applied function.
  25641. * @example
  25642. *
  25643. * var greet = function(greeting, name) {
  25644. * return greeting + ' ' + name;
  25645. * };
  25646. *
  25647. * var sayHelloTo = _.partial(greet, 'hello');
  25648. * sayHelloTo('fred');
  25649. * // => 'hello fred'
  25650. *
  25651. * // using placeholders
  25652. * var greetFred = _.partial(greet, _, 'fred');
  25653. * greetFred('hi');
  25654. * // => 'hi fred'
  25655. */
  25656. function partial(func) {
  25657. var partials = baseSlice(arguments, 1),
  25658. holders = replaceHolders(partials, partial.placeholder);
  25659. return createWrapper(func, PARTIAL_FLAG, null, partials, holders);
  25660. }
  25661. /**
  25662. * This method is like `_.partial` except that partially applied arguments
  25663. * are appended to those provided to the new function.
  25664. *
  25665. * The `_.partialRight.placeholder` value, which defaults to `_` in monolithic
  25666. * builds, may be used as a placeholder for partially applied arguments.
  25667. *
  25668. * **Note:** This method does not set the `length` property of partially
  25669. * applied functions.
  25670. *
  25671. * @static
  25672. * @memberOf _
  25673. * @category Function
  25674. * @param {Function} func The function to partially apply arguments to.
  25675. * @param {...*} [args] The arguments to be partially applied.
  25676. * @returns {Function} Returns the new partially applied function.
  25677. * @example
  25678. *
  25679. * var greet = function(greeting, name) {
  25680. * return greeting + ' ' + name;
  25681. * };
  25682. *
  25683. * var greetFred = _.partialRight(greet, 'fred');
  25684. * greetFred('hi');
  25685. * // => 'hi fred'
  25686. *
  25687. * // using placeholders
  25688. * var sayHelloTo = _.partialRight(greet, 'hello', _);
  25689. * sayHelloTo('fred');
  25690. * // => 'hello fred'
  25691. */
  25692. function partialRight(func) {
  25693. var partials = baseSlice(arguments, 1),
  25694. holders = replaceHolders(partials, partialRight.placeholder);
  25695. return createWrapper(func, PARTIAL_RIGHT_FLAG, null, partials, holders);
  25696. }
  25697. /**
  25698. * Creates a function that invokes `func` with arguments arranged according
  25699. * to the specified indexes where the argument value at the first index is
  25700. * provided as the first argument, the argument value at the second index is
  25701. * provided as the second argument, and so on.
  25702. *
  25703. * @static
  25704. * @memberOf _
  25705. * @category Function
  25706. * @param {Function} func The function to rearrange arguments for.
  25707. * @param {...(number|number[])} indexes The arranged argument indexes,
  25708. * specified as individual indexes or arrays of indexes.
  25709. * @returns {Function} Returns the new function.
  25710. * @example
  25711. *
  25712. * var rearged = _.rearg(function(a, b, c) {
  25713. * return [a, b, c];
  25714. * }, 2, 0, 1);
  25715. *
  25716. * rearged('b', 'c', 'a')
  25717. * // => ['a', 'b', 'c']
  25718. *
  25719. * var map = _.rearg(_.map, [1, 0]);
  25720. * map(function(n) { return n * 3; }, [1, 2, 3]);
  25721. * // => [3, 6, 9]
  25722. */
  25723. function rearg(func) {
  25724. var indexes = baseFlatten(arguments, false, false, 1);
  25725. return createWrapper(func, REARG_FLAG, null, null, null, indexes);
  25726. }
  25727. /**
  25728. * Creates a function that only invokes `func` at most once per every `wait`
  25729. * milliseconds. The created function comes with a `cancel` method to cancel
  25730. * delayed invocations. Provide an options object to indicate that `func`
  25731. * should be invoked on the leading and/or trailing edge of the `wait` timeout.
  25732. * Subsequent calls to the throttled function return the result of the last
  25733. * `func` call.
  25734. *
  25735. * **Note:** If `leading` and `trailing` options are `true`, `func` is invoked
  25736. * on the trailing edge of the timeout only if the the throttled function is
  25737. * invoked more than once during the `wait` timeout.
  25738. *
  25739. * See [David Corbacho's article](http://drupalmotion.com/article/debounce-and-throttle-visual-explanation)
  25740. * for details over the differences between `_.throttle` and `_.debounce`.
  25741. *
  25742. * @static
  25743. * @memberOf _
  25744. * @category Function
  25745. * @param {Function} func The function to throttle.
  25746. * @param {number} wait The number of milliseconds to throttle invocations to.
  25747. * @param {Object} [options] The options object.
  25748. * @param {boolean} [options.leading=true] Specify invoking on the leading
  25749. * edge of the timeout.
  25750. * @param {boolean} [options.trailing=true] Specify invoking on the trailing
  25751. * edge of the timeout.
  25752. * @returns {Function} Returns the new throttled function.
  25753. * @example
  25754. *
  25755. * // avoid excessively updating the position while scrolling
  25756. * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
  25757. *
  25758. * // invoke `renewToken` when the click event is fired, but not more than once every 5 minutes
  25759. * var throttled = _.throttle(renewToken, 300000, { 'trailing': false })
  25760. * jQuery('.interactive').on('click', throttled);
  25761. *
  25762. * // cancel a trailing throttled call
  25763. * jQuery(window).on('popstate', throttled.cancel);
  25764. */
  25765. function throttle(func, wait, options) {
  25766. var leading = true,
  25767. trailing = true;
  25768. if (!isFunction(func)) {
  25769. throw new TypeError(FUNC_ERROR_TEXT);
  25770. }
  25771. if (options === false) {
  25772. leading = false;
  25773. } else if (isObject(options)) {
  25774. leading = 'leading' in options ? !!options.leading : leading;
  25775. trailing = 'trailing' in options ? !!options.trailing : trailing;
  25776. }
  25777. debounceOptions.leading = leading;
  25778. debounceOptions.maxWait = +wait;
  25779. debounceOptions.trailing = trailing;
  25780. return debounce(func, wait, debounceOptions);
  25781. }
  25782. /**
  25783. * Creates a function that provides `value` to the wrapper function as its
  25784. * first argument. Any additional arguments provided to the function are
  25785. * appended to those provided to the wrapper function. The wrapper is invoked
  25786. * with the `this` binding of the created function.
  25787. *
  25788. * @static
  25789. * @memberOf _
  25790. * @category Function
  25791. * @param {*} value The value to wrap.
  25792. * @param {Function} wrapper The wrapper function.
  25793. * @returns {Function} Returns the new function.
  25794. * @example
  25795. *
  25796. * var p = _.wrap(_.escape, function(func, text) {
  25797. * return '<p>' + func(text) + '</p>';
  25798. * });
  25799. *
  25800. * p('fred, barney, & pebbles');
  25801. * // => '<p>fred, barney, &amp; pebbles</p>'
  25802. */
  25803. function wrap(value, wrapper) {
  25804. wrapper = wrapper == null ? identity : wrapper;
  25805. return createWrapper(wrapper, PARTIAL_FLAG, null, [value], []);
  25806. }
  25807. /*------------------------------------------------------------------------*/
  25808. /**
  25809. * Creates a clone of `value`. If `isDeep` is `true` nested objects are cloned,
  25810. * otherwise they are assigned by reference. If `customizer` is provided it is
  25811. * invoked to produce the cloned values. If `customizer` returns `undefined`
  25812. * cloning is handled by the method instead. The `customizer` is bound to
  25813. * `thisArg` and invoked with two argument; (value [, index|key, object]).
  25814. *
  25815. * **Note:** This method is loosely based on the structured clone algorithm.
  25816. * The enumerable properties of `arguments` objects and objects created by
  25817. * constructors other than `Object` are cloned to plain `Object` objects. An
  25818. * empty object is returned for uncloneable values such as functions, DOM nodes,
  25819. * Maps, Sets, and WeakMaps. See the [HTML5 specification](http://www.w3.org/TR/html5/infrastructure.html#internal-structured-cloning-algorithm)
  25820. * for more details.
  25821. *
  25822. * @static
  25823. * @memberOf _
  25824. * @category Lang
  25825. * @param {*} value The value to clone.
  25826. * @param {boolean} [isDeep] Specify a deep clone.
  25827. * @param {Function} [customizer] The function to customize cloning values.
  25828. * @param {*} [thisArg] The `this` binding of `customizer`.
  25829. * @returns {*} Returns the cloned value.
  25830. * @example
  25831. *
  25832. * var users = [
  25833. * { 'user': 'barney' },
  25834. * { 'user': 'fred' }
  25835. * ];
  25836. *
  25837. * var shallow = _.clone(users);
  25838. * shallow[0] === users[0];
  25839. * // => true
  25840. *
  25841. * var deep = _.clone(users, true);
  25842. * deep[0] === users[0];
  25843. * // => false
  25844. *
  25845. * // using a customizer callback
  25846. * var body = _.clone(document.body, function(value) {
  25847. * return _.isElement(value) ? value.cloneNode(false) : undefined;
  25848. * });
  25849. *
  25850. * body === document.body
  25851. * // => false
  25852. * body.nodeName
  25853. * // => BODY
  25854. * body.childNodes.length;
  25855. * // => 0
  25856. */
  25857. function clone(value, isDeep, customizer, thisArg) {
  25858. // Juggle arguments.
  25859. if (typeof isDeep != 'boolean' && isDeep != null) {
  25860. thisArg = customizer;
  25861. customizer = isIterateeCall(value, isDeep, thisArg) ? null : isDeep;
  25862. isDeep = false;
  25863. }
  25864. customizer = typeof customizer == 'function' && bindCallback(customizer, thisArg, 1);
  25865. return baseClone(value, isDeep, customizer);
  25866. }
  25867. /**
  25868. * Creates a deep clone of `value`. If `customizer` is provided it is invoked
  25869. * to produce the cloned values. If `customizer` returns `undefined` cloning
  25870. * is handled by the method instead. The `customizer` is bound to `thisArg`
  25871. * and invoked with two argument; (value [, index|key, object]).
  25872. *
  25873. * **Note:** This method is loosely based on the structured clone algorithm.
  25874. * The enumerable properties of `arguments` objects and objects created by
  25875. * constructors other than `Object` are cloned to plain `Object` objects. An
  25876. * empty object is returned for uncloneable values such as functions, DOM nodes,
  25877. * Maps, Sets, and WeakMaps. See the [HTML5 specification](http://www.w3.org/TR/html5/infrastructure.html#internal-structured-cloning-algorithm)
  25878. * for more details.
  25879. *
  25880. * @static
  25881. * @memberOf _
  25882. * @category Lang
  25883. * @param {*} value The value to deep clone.
  25884. * @param {Function} [customizer] The function to customize cloning values.
  25885. * @param {*} [thisArg] The `this` binding of `customizer`.
  25886. * @returns {*} Returns the deep cloned value.
  25887. * @example
  25888. *
  25889. * var users = [
  25890. * { 'user': 'barney' },
  25891. * { 'user': 'fred' }
  25892. * ];
  25893. *
  25894. * var deep = _.cloneDeep(users);
  25895. * deep[0] === users[0];
  25896. * // => false
  25897. *
  25898. * // using a customizer callback
  25899. * var el = _.cloneDeep(document.body, function(value) {
  25900. * return _.isElement(value) ? value.cloneNode(true) : undefined;
  25901. * });
  25902. *
  25903. * body === document.body
  25904. * // => false
  25905. * body.nodeName
  25906. * // => BODY
  25907. * body.childNodes.length;
  25908. * // => 20
  25909. */
  25910. function cloneDeep(value, customizer, thisArg) {
  25911. customizer = typeof customizer == 'function' && bindCallback(customizer, thisArg, 1);
  25912. return baseClone(value, true, customizer);
  25913. }
  25914. /**
  25915. * Checks if `value` is classified as an `arguments` object.
  25916. *
  25917. * @static
  25918. * @memberOf _
  25919. * @category Lang
  25920. * @param {*} value The value to check.
  25921. * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
  25922. * @example
  25923. *
  25924. * (function() { return _.isArguments(arguments); })();
  25925. * // => true
  25926. *
  25927. * _.isArguments([1, 2, 3]);
  25928. * // => false
  25929. */
  25930. function isArguments(value) {
  25931. var length = isObjectLike(value) ? value.length : undefined;
  25932. return (isLength(length) && objToString.call(value) == argsTag) || false;
  25933. }
  25934. /**
  25935. * Checks if `value` is classified as an `Array` object.
  25936. *
  25937. * @static
  25938. * @memberOf _
  25939. * @category Lang
  25940. * @param {*} value The value to check.
  25941. * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
  25942. * @example
  25943. *
  25944. * _.isArray([1, 2, 3]);
  25945. * // => true
  25946. *
  25947. * (function() { return _.isArray(arguments); })();
  25948. * // => false
  25949. */
  25950. var isArray = nativeIsArray || function(value) {
  25951. return (isObjectLike(value) && isLength(value.length) && objToString.call(value) == arrayTag) || false;
  25952. };
  25953. /**
  25954. * Checks if `value` is classified as a boolean primitive or object.
  25955. *
  25956. * @static
  25957. * @memberOf _
  25958. * @category Lang
  25959. * @param {*} value The value to check.
  25960. * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
  25961. * @example
  25962. *
  25963. * _.isBoolean(false);
  25964. * // => true
  25965. *
  25966. * _.isBoolean(null);
  25967. * // => false
  25968. */
  25969. function isBoolean(value) {
  25970. return (value === true || value === false || isObjectLike(value) && objToString.call(value) == boolTag) || false;
  25971. }
  25972. /**
  25973. * Checks if `value` is classified as a `Date` object.
  25974. *
  25975. * @static
  25976. * @memberOf _
  25977. * @category Lang
  25978. * @param {*} value The value to check.
  25979. * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
  25980. * @example
  25981. *
  25982. * _.isDate(new Date);
  25983. * // => true
  25984. *
  25985. * _.isDate('Mon April 23 2012');
  25986. * // => false
  25987. */
  25988. function isDate(value) {
  25989. return (isObjectLike(value) && objToString.call(value) == dateTag) || false;
  25990. }
  25991. /**
  25992. * Checks if `value` is a DOM element.
  25993. *
  25994. * @static
  25995. * @memberOf _
  25996. * @category Lang
  25997. * @param {*} value The value to check.
  25998. * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.
  25999. * @example
  26000. *
  26001. * _.isElement(document.body);
  26002. * // => true
  26003. *
  26004. * _.isElement('<body>');
  26005. * // => false
  26006. */
  26007. function isElement(value) {
  26008. return (value && value.nodeType === 1 && isObjectLike(value) &&
  26009. objToString.call(value).indexOf('Element') > -1) || false;
  26010. }
  26011. // Fallback for environments without DOM support.
  26012. if (!support.dom) {
  26013. isElement = function(value) {
  26014. return (value && value.nodeType === 1 && isObjectLike(value) && !isPlainObject(value)) || false;
  26015. };
  26016. }
  26017. /**
  26018. * Checks if a value is empty. A value is considered empty unless it is an
  26019. * `arguments` object, array, string, or jQuery-like collection with a length
  26020. * greater than `0` or an object with own enumerable properties.
  26021. *
  26022. * @static
  26023. * @memberOf _
  26024. * @category Lang
  26025. * @param {Array|Object|string} value The value to inspect.
  26026. * @returns {boolean} Returns `true` if `value` is empty, else `false`.
  26027. * @example
  26028. *
  26029. * _.isEmpty(null);
  26030. * // => true
  26031. *
  26032. * _.isEmpty(true);
  26033. * // => true
  26034. *
  26035. * _.isEmpty(1);
  26036. * // => true
  26037. *
  26038. * _.isEmpty([1, 2, 3]);
  26039. * // => false
  26040. *
  26041. * _.isEmpty({ 'a': 1 });
  26042. * // => false
  26043. */
  26044. function isEmpty(value) {
  26045. if (value == null) {
  26046. return true;
  26047. }
  26048. var length = value.length;
  26049. if (isLength(length) && (isArray(value) || isString(value) || isArguments(value) ||
  26050. (isObjectLike(value) && isFunction(value.splice)))) {
  26051. return !length;
  26052. }
  26053. return !keys(value).length;
  26054. }
  26055. /**
  26056. * Performs a deep comparison between two values to determine if they are
  26057. * equivalent. If `customizer` is provided it is invoked to compare values.
  26058. * If `customizer` returns `undefined` comparisons are handled by the method
  26059. * instead. The `customizer` is bound to `thisArg` and invoked with three
  26060. * arguments; (value, other [, index|key]).
  26061. *
  26062. * **Note:** This method supports comparing arrays, booleans, `Date` objects,
  26063. * numbers, `Object` objects, regexes, and strings. Functions and DOM nodes
  26064. * are **not** supported. Provide a customizer function to extend support
  26065. * for comparing other values.
  26066. *
  26067. * @static
  26068. * @memberOf _
  26069. * @category Lang
  26070. * @param {*} value The value to compare.
  26071. * @param {*} other The other value to compare.
  26072. * @param {Function} [customizer] The function to customize comparing values.
  26073. * @param {*} [thisArg] The `this` binding of `customizer`.
  26074. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  26075. * @example
  26076. *
  26077. * var object = { 'user': 'fred' };
  26078. * var other = { 'user': 'fred' };
  26079. *
  26080. * object == other;
  26081. * // => false
  26082. *
  26083. * _.isEqual(object, other);
  26084. * // => true
  26085. *
  26086. * // using a customizer callback
  26087. * var array = ['hello', 'goodbye'];
  26088. * var other = ['hi', 'goodbye'];
  26089. *
  26090. * _.isEqual(array, other, function(value, other) {
  26091. * return _.every([value, other], RegExp.prototype.test, /^h(?:i|ello)$/) || undefined;
  26092. * });
  26093. * // => true
  26094. */
  26095. function isEqual(value, other, customizer, thisArg) {
  26096. customizer = typeof customizer == 'function' && bindCallback(customizer, thisArg, 3);
  26097. if (!customizer && isStrictComparable(value) && isStrictComparable(other)) {
  26098. return value === other;
  26099. }
  26100. var result = customizer ? customizer(value, other) : undefined;
  26101. return typeof result == 'undefined' ? baseIsEqual(value, other, customizer) : !!result;
  26102. }
  26103. /**
  26104. * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,
  26105. * `SyntaxError`, `TypeError`, or `URIError` object.
  26106. *
  26107. * @static
  26108. * @memberOf _
  26109. * @category Lang
  26110. * @param {*} value The value to check.
  26111. * @returns {boolean} Returns `true` if `value` is an error object, else `false`.
  26112. * @example
  26113. *
  26114. * _.isError(new Error);
  26115. * // => true
  26116. *
  26117. * _.isError(Error);
  26118. * // => false
  26119. */
  26120. function isError(value) {
  26121. return (isObjectLike(value) && typeof value.message == 'string' && objToString.call(value) == errorTag) || false;
  26122. }
  26123. /**
  26124. * Checks if `value` is a finite primitive number.
  26125. *
  26126. * **Note:** This method is based on ES `Number.isFinite`. See the
  26127. * [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.isfinite)
  26128. * for more details.
  26129. *
  26130. * @static
  26131. * @memberOf _
  26132. * @category Lang
  26133. * @param {*} value The value to check.
  26134. * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.
  26135. * @example
  26136. *
  26137. * _.isFinite(10);
  26138. * // => true
  26139. *
  26140. * _.isFinite('10');
  26141. * // => false
  26142. *
  26143. * _.isFinite(true);
  26144. * // => false
  26145. *
  26146. * _.isFinite(Object(10));
  26147. * // => false
  26148. *
  26149. * _.isFinite(Infinity);
  26150. * // => false
  26151. */
  26152. var isFinite = nativeNumIsFinite || function(value) {
  26153. return typeof value == 'number' && nativeIsFinite(value);
  26154. };
  26155. /**
  26156. * Checks if `value` is classified as a `Function` object.
  26157. *
  26158. * @static
  26159. * @memberOf _
  26160. * @category Lang
  26161. * @param {*} value The value to check.
  26162. * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
  26163. * @example
  26164. *
  26165. * _.isFunction(_);
  26166. * // => true
  26167. *
  26168. * _.isFunction(/abc/);
  26169. * // => false
  26170. */
  26171. function isFunction(value) {
  26172. // Avoid a Chakra JIT bug in compatibility modes of IE 11.
  26173. // See https://github.com/jashkenas/underscore/issues/1621 for more details.
  26174. return typeof value == 'function' || false;
  26175. }
  26176. // Fallback for environments that return incorrect `typeof` operator results.
  26177. if (isFunction(/x/) || (Uint8Array && !isFunction(Uint8Array))) {
  26178. isFunction = function(value) {
  26179. // The use of `Object#toString` avoids issues with the `typeof` operator
  26180. // in older versions of Chrome and Safari which return 'function' for regexes
  26181. // and Safari 8 equivalents which return 'object' for typed array constructors.
  26182. return objToString.call(value) == funcTag;
  26183. };
  26184. }
  26185. /**
  26186. * Checks if `value` is the language type of `Object`.
  26187. * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
  26188. *
  26189. * **Note:** See the [ES5 spec](https://es5.github.io/#x8) for more details.
  26190. *
  26191. * @static
  26192. * @memberOf _
  26193. * @category Lang
  26194. * @param {*} value The value to check.
  26195. * @returns {boolean} Returns `true` if `value` is an object, else `false`.
  26196. * @example
  26197. *
  26198. * _.isObject({});
  26199. * // => true
  26200. *
  26201. * _.isObject([1, 2, 3]);
  26202. * // => true
  26203. *
  26204. * _.isObject(1);
  26205. * // => false
  26206. */
  26207. function isObject(value) {
  26208. // Avoid a V8 JIT bug in Chrome 19-20.
  26209. // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.
  26210. var type = typeof value;
  26211. return type == 'function' || (value && type == 'object') || false;
  26212. }
  26213. /**
  26214. * Performs a deep comparison between `object` and `source` to determine if
  26215. * `object` contains equivalent property values. If `customizer` is provided
  26216. * it is invoked to compare values. If `customizer` returns `undefined`
  26217. * comparisons are handled by the method instead. The `customizer` is bound
  26218. * to `thisArg` and invoked with three arguments; (value, other, index|key).
  26219. *
  26220. * **Note:** This method supports comparing properties of arrays, booleans,
  26221. * `Date` objects, numbers, `Object` objects, regexes, and strings. Functions
  26222. * and DOM nodes are **not** supported. Provide a customizer function to extend
  26223. * support for comparing other values.
  26224. *
  26225. * @static
  26226. * @memberOf _
  26227. * @category Lang
  26228. * @param {Object} source The object to inspect.
  26229. * @param {Object} source The object of property values to match.
  26230. * @param {Function} [customizer] The function to customize comparing values.
  26231. * @param {*} [thisArg] The `this` binding of `customizer`.
  26232. * @returns {boolean} Returns `true` if `object` is a match, else `false`.
  26233. * @example
  26234. *
  26235. * var object = { 'user': 'fred', 'age': 40 };
  26236. *
  26237. * _.isMatch(object, { 'age': 40 });
  26238. * // => true
  26239. *
  26240. * _.isMatch(object, { 'age': 36 });
  26241. * // => false
  26242. *
  26243. * // using a customizer callback
  26244. * var object = { 'greeting': 'hello' };
  26245. * var source = { 'greeting': 'hi' };
  26246. *
  26247. * _.isMatch(object, source, function(value, other) {
  26248. * return _.every([value, other], RegExp.prototype.test, /^h(?:i|ello)$/) || undefined;
  26249. * });
  26250. * // => true
  26251. */
  26252. function isMatch(object, source, customizer, thisArg) {
  26253. var props = keys(source),
  26254. length = props.length;
  26255. customizer = typeof customizer == 'function' && bindCallback(customizer, thisArg, 3);
  26256. if (!customizer && length == 1) {
  26257. var key = props[0],
  26258. value = source[key];
  26259. if (isStrictComparable(value)) {
  26260. return object != null && value === object[key] && hasOwnProperty.call(object, key);
  26261. }
  26262. }
  26263. var values = Array(length),
  26264. strictCompareFlags = Array(length);
  26265. while (length--) {
  26266. value = values[length] = source[props[length]];
  26267. strictCompareFlags[length] = isStrictComparable(value);
  26268. }
  26269. return baseIsMatch(object, props, values, strictCompareFlags, customizer);
  26270. }
  26271. /**
  26272. * Checks if `value` is `NaN`.
  26273. *
  26274. * **Note:** This method is not the same as native `isNaN` which returns `true`
  26275. * for `undefined` and other non-numeric values. See the [ES5 spec](https://es5.github.io/#x15.1.2.4)
  26276. * for more details.
  26277. *
  26278. * @static
  26279. * @memberOf _
  26280. * @category Lang
  26281. * @param {*} value The value to check.
  26282. * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
  26283. * @example
  26284. *
  26285. * _.isNaN(NaN);
  26286. * // => true
  26287. *
  26288. * _.isNaN(new Number(NaN));
  26289. * // => true
  26290. *
  26291. * isNaN(undefined);
  26292. * // => true
  26293. *
  26294. * _.isNaN(undefined);
  26295. * // => false
  26296. */
  26297. function isNaN(value) {
  26298. // An `NaN` primitive is the only value that is not equal to itself.
  26299. // Perform the `toStringTag` check first to avoid errors with some host objects in IE.
  26300. return isNumber(value) && value != +value;
  26301. }
  26302. /**
  26303. * Checks if `value` is a native function.
  26304. *
  26305. * @static
  26306. * @memberOf _
  26307. * @category Lang
  26308. * @param {*} value The value to check.
  26309. * @returns {boolean} Returns `true` if `value` is a native function, else `false`.
  26310. * @example
  26311. *
  26312. * _.isNative(Array.prototype.push);
  26313. * // => true
  26314. *
  26315. * _.isNative(_);
  26316. * // => false
  26317. */
  26318. function isNative(value) {
  26319. if (value == null) {
  26320. return false;
  26321. }
  26322. if (objToString.call(value) == funcTag) {
  26323. return reNative.test(fnToString.call(value));
  26324. }
  26325. return (isObjectLike(value) && reHostCtor.test(value)) || false;
  26326. }
  26327. /**
  26328. * Checks if `value` is `null`.
  26329. *
  26330. * @static
  26331. * @memberOf _
  26332. * @category Lang
  26333. * @param {*} value The value to check.
  26334. * @returns {boolean} Returns `true` if `value` is `null`, else `false`.
  26335. * @example
  26336. *
  26337. * _.isNull(null);
  26338. * // => true
  26339. *
  26340. * _.isNull(void 0);
  26341. * // => false
  26342. */
  26343. function isNull(value) {
  26344. return value === null;
  26345. }
  26346. /**
  26347. * Checks if `value` is classified as a `Number` primitive or object.
  26348. *
  26349. * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are classified
  26350. * as numbers, use the `_.isFinite` method.
  26351. *
  26352. * @static
  26353. * @memberOf _
  26354. * @category Lang
  26355. * @param {*} value The value to check.
  26356. * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
  26357. * @example
  26358. *
  26359. * _.isNumber(8.4);
  26360. * // => true
  26361. *
  26362. * _.isNumber(NaN);
  26363. * // => true
  26364. *
  26365. * _.isNumber('8.4');
  26366. * // => false
  26367. */
  26368. function isNumber(value) {
  26369. return typeof value == 'number' || (isObjectLike(value) && objToString.call(value) == numberTag) || false;
  26370. }
  26371. /**
  26372. * Checks if `value` is a plain object, that is, an object created by the
  26373. * `Object` constructor or one with a `[[Prototype]]` of `null`.
  26374. *
  26375. * **Note:** This method assumes objects created by the `Object` constructor
  26376. * have no inherited enumerable properties.
  26377. *
  26378. * @static
  26379. * @memberOf _
  26380. * @category Lang
  26381. * @param {*} value The value to check.
  26382. * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
  26383. * @example
  26384. *
  26385. * function Foo() {
  26386. * this.a = 1;
  26387. * }
  26388. *
  26389. * _.isPlainObject(new Foo);
  26390. * // => false
  26391. *
  26392. * _.isPlainObject([1, 2, 3]);
  26393. * // => false
  26394. *
  26395. * _.isPlainObject({ 'x': 0, 'y': 0 });
  26396. * // => true
  26397. *
  26398. * _.isPlainObject(Object.create(null));
  26399. * // => true
  26400. */
  26401. var isPlainObject = !getPrototypeOf ? shimIsPlainObject : function(value) {
  26402. if (!(value && objToString.call(value) == objectTag)) {
  26403. return false;
  26404. }
  26405. var valueOf = value.valueOf,
  26406. objProto = isNative(valueOf) && (objProto = getPrototypeOf(valueOf)) && getPrototypeOf(objProto);
  26407. return objProto
  26408. ? (value == objProto || getPrototypeOf(value) == objProto)
  26409. : shimIsPlainObject(value);
  26410. };
  26411. /**
  26412. * Checks if `value` is classified as a `RegExp` object.
  26413. *
  26414. * @static
  26415. * @memberOf _
  26416. * @category Lang
  26417. * @param {*} value The value to check.
  26418. * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
  26419. * @example
  26420. *
  26421. * _.isRegExp(/abc/);
  26422. * // => true
  26423. *
  26424. * _.isRegExp('/abc/');
  26425. * // => false
  26426. */
  26427. function isRegExp(value) {
  26428. return (isObjectLike(value) && objToString.call(value) == regexpTag) || false;
  26429. }
  26430. /**
  26431. * Checks if `value` is classified as a `String` primitive or object.
  26432. *
  26433. * @static
  26434. * @memberOf _
  26435. * @category Lang
  26436. * @param {*} value The value to check.
  26437. * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
  26438. * @example
  26439. *
  26440. * _.isString('abc');
  26441. * // => true
  26442. *
  26443. * _.isString(1);
  26444. * // => false
  26445. */
  26446. function isString(value) {
  26447. return typeof value == 'string' || (isObjectLike(value) && objToString.call(value) == stringTag) || false;
  26448. }
  26449. /**
  26450. * Checks if `value` is classified as a typed array.
  26451. *
  26452. * @static
  26453. * @memberOf _
  26454. * @category Lang
  26455. * @param {*} value The value to check.
  26456. * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
  26457. * @example
  26458. *
  26459. * _.isTypedArray(new Uint8Array);
  26460. * // => true
  26461. *
  26462. * _.isTypedArray([]);
  26463. * // => false
  26464. */
  26465. function isTypedArray(value) {
  26466. return (isObjectLike(value) && isLength(value.length) && typedArrayTags[objToString.call(value)]) || false;
  26467. }
  26468. /**
  26469. * Checks if `value` is `undefined`.
  26470. *
  26471. * @static
  26472. * @memberOf _
  26473. * @category Lang
  26474. * @param {*} value The value to check.
  26475. * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
  26476. * @example
  26477. *
  26478. * _.isUndefined(void 0);
  26479. * // => true
  26480. *
  26481. * _.isUndefined(null);
  26482. * // => false
  26483. */
  26484. function isUndefined(value) {
  26485. return typeof value == 'undefined';
  26486. }
  26487. /**
  26488. * Converts `value` to an array.
  26489. *
  26490. * @static
  26491. * @memberOf _
  26492. * @category Lang
  26493. * @param {*} value The value to convert.
  26494. * @returns {Array} Returns the converted array.
  26495. * @example
  26496. *
  26497. * (function() { return _.toArray(arguments).slice(1); })(1, 2, 3);
  26498. * // => [2, 3]
  26499. */
  26500. function toArray(value) {
  26501. var length = value ? value.length : 0;
  26502. if (!isLength(length)) {
  26503. return values(value);
  26504. }
  26505. if (!length) {
  26506. return [];
  26507. }
  26508. return arrayCopy(value);
  26509. }
  26510. /**
  26511. * Converts `value` to a plain object flattening inherited enumerable
  26512. * properties of `value` to own properties of the plain object.
  26513. *
  26514. * @static
  26515. * @memberOf _
  26516. * @category Lang
  26517. * @param {*} value The value to convert.
  26518. * @returns {Object} Returns the converted plain object.
  26519. * @example
  26520. *
  26521. * function Foo() {
  26522. * this.b = 2;
  26523. * }
  26524. *
  26525. * Foo.prototype.c = 3;
  26526. *
  26527. * _.assign({ 'a': 1 }, new Foo);
  26528. * // => { 'a': 1, 'b': 2 }
  26529. *
  26530. * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
  26531. * // => { 'a': 1, 'b': 2, 'c': 3 }
  26532. */
  26533. function toPlainObject(value) {
  26534. return baseCopy(value, keysIn(value));
  26535. }
  26536. /*------------------------------------------------------------------------*/
  26537. /**
  26538. * Assigns own enumerable properties of source object(s) to the destination
  26539. * object. Subsequent sources overwrite property assignments of previous sources.
  26540. * If `customizer` is provided it is invoked to produce the assigned values.
  26541. * The `customizer` is bound to `thisArg` and invoked with five arguments;
  26542. * (objectValue, sourceValue, key, object, source).
  26543. *
  26544. * @static
  26545. * @memberOf _
  26546. * @alias extend
  26547. * @category Object
  26548. * @param {Object} object The destination object.
  26549. * @param {...Object} [sources] The source objects.
  26550. * @param {Function} [customizer] The function to customize assigning values.
  26551. * @param {*} [thisArg] The `this` binding of `customizer`.
  26552. * @returns {Object} Returns `object`.
  26553. * @example
  26554. *
  26555. * _.assign({ 'user': 'barney' }, { 'age': 40 }, { 'user': 'fred' });
  26556. * // => { 'user': 'fred', 'age': 40 }
  26557. *
  26558. * // using a customizer callback
  26559. * var defaults = _.partialRight(_.assign, function(value, other) {
  26560. * return typeof value == 'undefined' ? other : value;
  26561. * });
  26562. *
  26563. * defaults({ 'user': 'barney' }, { 'age': 36 }, { 'user': 'fred' });
  26564. * // => { 'user': 'barney', 'age': 36 }
  26565. */
  26566. var assign = createAssigner(baseAssign);
  26567. /**
  26568. * Creates an object that inherits from the given `prototype` object. If a
  26569. * `properties` object is provided its own enumerable properties are assigned
  26570. * to the created object.
  26571. *
  26572. * @static
  26573. * @memberOf _
  26574. * @category Object
  26575. * @param {Object} prototype The object to inherit from.
  26576. * @param {Object} [properties] The properties to assign to the object.
  26577. * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
  26578. * @returns {Object} Returns the new object.
  26579. * @example
  26580. *
  26581. * function Shape() {
  26582. * this.x = 0;
  26583. * this.y = 0;
  26584. * }
  26585. *
  26586. * function Circle() {
  26587. * Shape.call(this);
  26588. * }
  26589. *
  26590. * Circle.prototype = _.create(Shape.prototype, { 'constructor': Circle });
  26591. *
  26592. * var circle = new Circle;
  26593. * circle instanceof Circle;
  26594. * // => true
  26595. *
  26596. * circle instanceof Shape;
  26597. * // => true
  26598. */
  26599. function create(prototype, properties, guard) {
  26600. var result = baseCreate(prototype);
  26601. if (guard && isIterateeCall(prototype, properties, guard)) {
  26602. properties = null;
  26603. }
  26604. return properties ? baseCopy(properties, result, keys(properties)) : result;
  26605. }
  26606. /**
  26607. * Assigns own enumerable properties of source object(s) to the destination
  26608. * object for all destination properties that resolve to `undefined`. Once a
  26609. * property is set, additional defaults of the same property are ignored.
  26610. *
  26611. * @static
  26612. * @memberOf _
  26613. * @category Object
  26614. * @param {Object} object The destination object.
  26615. * @param {...Object} [sources] The source objects.
  26616. * @returns {Object} Returns `object`.
  26617. * @example
  26618. *
  26619. * _.defaults({ 'user': 'barney' }, { 'age': 36 }, { 'user': 'fred' });
  26620. * // => { 'user': 'barney', 'age': 36 }
  26621. */
  26622. function defaults(object) {
  26623. if (object == null) {
  26624. return object;
  26625. }
  26626. var args = arrayCopy(arguments);
  26627. args.push(assignDefaults);
  26628. return assign.apply(undefined, args);
  26629. }
  26630. /**
  26631. * This method is like `_.findIndex` except that it returns the key of the
  26632. * first element `predicate` returns truthy for, instead of the element itself.
  26633. *
  26634. * If a property name is provided for `predicate` the created "_.property"
  26635. * style callback returns the property value of the given element.
  26636. *
  26637. * If an object is provided for `predicate` the created "_.matches" style
  26638. * callback returns `true` for elements that have the properties of the given
  26639. * object, else `false`.
  26640. *
  26641. * @static
  26642. * @memberOf _
  26643. * @category Object
  26644. * @param {Object} object The object to search.
  26645. * @param {Function|Object|string} [predicate=_.identity] The function invoked
  26646. * per iteration. If a property name or object is provided it is used to
  26647. * create a "_.property" or "_.matches" style callback respectively.
  26648. * @param {*} [thisArg] The `this` binding of `predicate`.
  26649. * @returns {string|undefined} Returns the key of the matched element, else `undefined`.
  26650. * @example
  26651. *
  26652. * var users = {
  26653. * 'barney': { 'age': 36, 'active': true },
  26654. * 'fred': { 'age': 40, 'active': false },
  26655. * 'pebbles': { 'age': 1, 'active': true }
  26656. * };
  26657. *
  26658. * _.findKey(users, function(chr) { return chr.age < 40; });
  26659. * // => 'barney' (iteration order is not guaranteed)
  26660. *
  26661. * // using the "_.matches" callback shorthand
  26662. * _.findKey(users, { 'age': 1 });
  26663. * // => 'pebbles'
  26664. *
  26665. * // using the "_.property" callback shorthand
  26666. * _.findKey(users, 'active');
  26667. * // => 'barney'
  26668. */
  26669. function findKey(object, predicate, thisArg) {
  26670. predicate = getCallback(predicate, thisArg, 3);
  26671. return baseFind(object, predicate, baseForOwn, true);
  26672. }
  26673. /**
  26674. * This method is like `_.findKey` except that it iterates over elements of
  26675. * a collection in the opposite order.
  26676. *
  26677. * If a property name is provided for `predicate` the created "_.property"
  26678. * style callback returns the property value of the given element.
  26679. *
  26680. * If an object is provided for `predicate` the created "_.matches" style
  26681. * callback returns `true` for elements that have the properties of the given
  26682. * object, else `false`.
  26683. *
  26684. * @static
  26685. * @memberOf _
  26686. * @category Object
  26687. * @param {Object} object The object to search.
  26688. * @param {Function|Object|string} [predicate=_.identity] The function invoked
  26689. * per iteration. If a property name or object is provided it is used to
  26690. * create a "_.property" or "_.matches" style callback respectively.
  26691. * @param {*} [thisArg] The `this` binding of `predicate`.
  26692. * @returns {string|undefined} Returns the key of the matched element, else `undefined`.
  26693. * @example
  26694. *
  26695. * var users = {
  26696. * 'barney': { 'age': 36, 'active': true },
  26697. * 'fred': { 'age': 40, 'active': false },
  26698. * 'pebbles': { 'age': 1, 'active': true }
  26699. * };
  26700. *
  26701. * _.findLastKey(users, function(chr) { return chr.age < 40; });
  26702. * // => returns `pebbles` assuming `_.findKey` returns `barney`
  26703. *
  26704. * // using the "_.matches" callback shorthand
  26705. * _.findLastKey(users, { 'age': 36 });
  26706. * // => 'barney'
  26707. *
  26708. * // using the "_.property" callback shorthand
  26709. * _.findLastKey(users, 'active');
  26710. * // => 'pebbles'
  26711. */
  26712. function findLastKey(object, predicate, thisArg) {
  26713. predicate = getCallback(predicate, thisArg, 3);
  26714. return baseFind(object, predicate, baseForOwnRight, true);
  26715. }
  26716. /**
  26717. * Iterates over own and inherited enumerable properties of an object invoking
  26718. * `iteratee` for each property. The `iteratee` is bound to `thisArg` and invoked
  26719. * with three arguments; (value, key, object). Iterator functions may exit
  26720. * iteration early by explicitly returning `false`.
  26721. *
  26722. * @static
  26723. * @memberOf _
  26724. * @category Object
  26725. * @param {Object} object The object to iterate over.
  26726. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  26727. * @param {*} [thisArg] The `this` binding of `iteratee`.
  26728. * @returns {Object} Returns `object`.
  26729. * @example
  26730. *
  26731. * function Foo() {
  26732. * this.a = 1;
  26733. * this.b = 2;
  26734. * }
  26735. *
  26736. * Foo.prototype.c = 3;
  26737. *
  26738. * _.forIn(new Foo, function(value, key) {
  26739. * console.log(key);
  26740. * });
  26741. * // => logs 'a', 'b', and 'c' (iteration order is not guaranteed)
  26742. */
  26743. function forIn(object, iteratee, thisArg) {
  26744. if (typeof iteratee != 'function' || typeof thisArg != 'undefined') {
  26745. iteratee = bindCallback(iteratee, thisArg, 3);
  26746. }
  26747. return baseFor(object, iteratee, keysIn);
  26748. }
  26749. /**
  26750. * This method is like `_.forIn` except that it iterates over properties of
  26751. * `object` in the opposite order.
  26752. *
  26753. * @static
  26754. * @memberOf _
  26755. * @category Object
  26756. * @param {Object} object The object to iterate over.
  26757. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  26758. * @param {*} [thisArg] The `this` binding of `iteratee`.
  26759. * @returns {Object} Returns `object`.
  26760. * @example
  26761. *
  26762. * function Foo() {
  26763. * this.a = 1;
  26764. * this.b = 2;
  26765. * }
  26766. *
  26767. * Foo.prototype.c = 3;
  26768. *
  26769. * _.forInRight(new Foo, function(value, key) {
  26770. * console.log(key);
  26771. * });
  26772. * // => logs 'c', 'b', and 'a' assuming `_.forIn ` logs 'a', 'b', and 'c'
  26773. */
  26774. function forInRight(object, iteratee, thisArg) {
  26775. iteratee = bindCallback(iteratee, thisArg, 3);
  26776. return baseForRight(object, iteratee, keysIn);
  26777. }
  26778. /**
  26779. * Iterates over own enumerable properties of an object invoking `iteratee`
  26780. * for each property. The `iteratee` is bound to `thisArg` and invoked with
  26781. * three arguments; (value, key, object). Iterator functions may exit iteration
  26782. * early by explicitly returning `false`.
  26783. *
  26784. * @static
  26785. * @memberOf _
  26786. * @category Object
  26787. * @param {Object} object The object to iterate over.
  26788. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  26789. * @param {*} [thisArg] The `this` binding of `iteratee`.
  26790. * @returns {Object} Returns `object`.
  26791. * @example
  26792. *
  26793. * _.forOwn({ '0': 'zero', '1': 'one', 'length': 2 }, function(n, key) {
  26794. * console.log(key);
  26795. * });
  26796. * // => logs '0', '1', and 'length' (iteration order is not guaranteed)
  26797. */
  26798. function forOwn(object, iteratee, thisArg) {
  26799. if (typeof iteratee != 'function' || typeof thisArg != 'undefined') {
  26800. iteratee = bindCallback(iteratee, thisArg, 3);
  26801. }
  26802. return baseForOwn(object, iteratee);
  26803. }
  26804. /**
  26805. * This method is like `_.forOwn` except that it iterates over properties of
  26806. * `object` in the opposite order.
  26807. *
  26808. * @static
  26809. * @memberOf _
  26810. * @category Object
  26811. * @param {Object} object The object to iterate over.
  26812. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  26813. * @param {*} [thisArg] The `this` binding of `iteratee`.
  26814. * @returns {Object} Returns `object`.
  26815. * @example
  26816. *
  26817. * _.forOwnRight({ '0': 'zero', '1': 'one', 'length': 2 }, function(n, key) {
  26818. * console.log(key);
  26819. * });
  26820. * // => logs 'length', '1', and '0' assuming `_.forOwn` logs '0', '1', and 'length'
  26821. */
  26822. function forOwnRight(object, iteratee, thisArg) {
  26823. iteratee = bindCallback(iteratee, thisArg, 3);
  26824. return baseForRight(object, iteratee, keys);
  26825. }
  26826. /**
  26827. * Creates an array of function property names from all enumerable properties,
  26828. * own and inherited, of `object`.
  26829. *
  26830. * @static
  26831. * @memberOf _
  26832. * @alias methods
  26833. * @category Object
  26834. * @param {Object} object The object to inspect.
  26835. * @returns {Array} Returns the new array of property names.
  26836. * @example
  26837. *
  26838. * _.functions(_);
  26839. * // => ['all', 'any', 'bind', ...]
  26840. */
  26841. function functions(object) {
  26842. return baseFunctions(object, keysIn(object));
  26843. }
  26844. /**
  26845. * Checks if `key` exists as a direct property of `object` instead of an
  26846. * inherited property.
  26847. *
  26848. * @static
  26849. * @memberOf _
  26850. * @category Object
  26851. * @param {Object} object The object to inspect.
  26852. * @param {string} key The key to check.
  26853. * @returns {boolean} Returns `true` if `key` is a direct property, else `false`.
  26854. * @example
  26855. *
  26856. * _.has({ 'a': 1, 'b': 2, 'c': 3 }, 'b');
  26857. * // => true
  26858. */
  26859. function has(object, key) {
  26860. return object ? hasOwnProperty.call(object, key) : false;
  26861. }
  26862. /**
  26863. * Creates an object composed of the inverted keys and values of `object`.
  26864. * If `object` contains duplicate values, subsequent values overwrite property
  26865. * assignments of previous values unless `multiValue` is `true`.
  26866. *
  26867. * @static
  26868. * @memberOf _
  26869. * @category Object
  26870. * @param {Object} object The object to invert.
  26871. * @param {boolean} [multiValue] Allow multiple values per key.
  26872. * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
  26873. * @returns {Object} Returns the new inverted object.
  26874. * @example
  26875. *
  26876. * _.invert({ 'first': 'fred', 'second': 'barney' });
  26877. * // => { 'fred': 'first', 'barney': 'second' }
  26878. *
  26879. * // without `multiValue`
  26880. * _.invert({ 'first': 'fred', 'second': 'barney', 'third': 'fred' });
  26881. * // => { 'fred': 'third', 'barney': 'second' }
  26882. *
  26883. * // with `multiValue`
  26884. * _.invert({ 'first': 'fred', 'second': 'barney', 'third': 'fred' }, true);
  26885. * // => { 'fred': ['first', 'third'], 'barney': ['second'] }
  26886. */
  26887. function invert(object, multiValue, guard) {
  26888. if (guard && isIterateeCall(object, multiValue, guard)) {
  26889. multiValue = null;
  26890. }
  26891. var index = -1,
  26892. props = keys(object),
  26893. length = props.length,
  26894. result = {};
  26895. while (++index < length) {
  26896. var key = props[index],
  26897. value = object[key];
  26898. if (multiValue) {
  26899. if (hasOwnProperty.call(result, value)) {
  26900. result[value].push(key);
  26901. } else {
  26902. result[value] = [key];
  26903. }
  26904. }
  26905. else {
  26906. result[value] = key;
  26907. }
  26908. }
  26909. return result;
  26910. }
  26911. /**
  26912. * Creates an array of the own enumerable property names of `object`.
  26913. *
  26914. * **Note:** Non-object values are coerced to objects. See the
  26915. * [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.keys)
  26916. * for more details.
  26917. *
  26918. * @static
  26919. * @memberOf _
  26920. * @category Object
  26921. * @param {Object} object The object to inspect.
  26922. * @returns {Array} Returns the array of property names.
  26923. * @example
  26924. *
  26925. * function Foo() {
  26926. * this.a = 1;
  26927. * this.b = 2;
  26928. * }
  26929. *
  26930. * Foo.prototype.c = 3;
  26931. *
  26932. * _.keys(new Foo);
  26933. * // => ['a', 'b'] (iteration order is not guaranteed)
  26934. *
  26935. * _.keys('hi');
  26936. * // => ['0', '1']
  26937. */
  26938. var keys = !nativeKeys ? shimKeys : function(object) {
  26939. if (object) {
  26940. var Ctor = object.constructor,
  26941. length = object.length;
  26942. }
  26943. if ((typeof Ctor == 'function' && Ctor.prototype === object) ||
  26944. (typeof object != 'function' && (length && isLength(length)))) {
  26945. return shimKeys(object);
  26946. }
  26947. return isObject(object) ? nativeKeys(object) : [];
  26948. };
  26949. /**
  26950. * Creates an array of the own and inherited enumerable property names of `object`.
  26951. *
  26952. * **Note:** Non-object values are coerced to objects.
  26953. *
  26954. * @static
  26955. * @memberOf _
  26956. * @category Object
  26957. * @param {Object} object The object to inspect.
  26958. * @returns {Array} Returns the array of property names.
  26959. * @example
  26960. *
  26961. * function Foo() {
  26962. * this.a = 1;
  26963. * this.b = 2;
  26964. * }
  26965. *
  26966. * Foo.prototype.c = 3;
  26967. *
  26968. * _.keysIn(new Foo);
  26969. * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
  26970. */
  26971. function keysIn(object) {
  26972. if (object == null) {
  26973. return [];
  26974. }
  26975. if (!isObject(object)) {
  26976. object = Object(object);
  26977. }
  26978. var length = object.length;
  26979. length = (length && isLength(length) &&
  26980. (isArray(object) || (support.nonEnumArgs && isArguments(object))) && length) || 0;
  26981. var Ctor = object.constructor,
  26982. index = -1,
  26983. isProto = typeof Ctor == 'function' && Ctor.prototype == object,
  26984. result = Array(length),
  26985. skipIndexes = length > 0;
  26986. while (++index < length) {
  26987. result[index] = (index + '');
  26988. }
  26989. for (var key in object) {
  26990. if (!(skipIndexes && isIndex(key, length)) &&
  26991. !(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
  26992. result.push(key);
  26993. }
  26994. }
  26995. return result;
  26996. }
  26997. /**
  26998. * Creates an object with the same keys as `object` and values generated by
  26999. * running each own enumerable property of `object` through `iteratee`. The
  27000. * iteratee function is bound to `thisArg` and invoked with three arguments;
  27001. * (value, key, object).
  27002. *
  27003. * If a property name is provided for `iteratee` the created "_.property"
  27004. * style callback returns the property value of the given element.
  27005. *
  27006. * If an object is provided for `iteratee` the created "_.matches" style
  27007. * callback returns `true` for elements that have the properties of the given
  27008. * object, else `false`.
  27009. *
  27010. * @static
  27011. * @memberOf _
  27012. * @category Object
  27013. * @param {Object} object The object to iterate over.
  27014. * @param {Function|Object|string} [iteratee=_.identity] The function invoked
  27015. * per iteration. If a property name or object is provided it is used to
  27016. * create a "_.property" or "_.matches" style callback respectively.
  27017. * @param {*} [thisArg] The `this` binding of `iteratee`.
  27018. * @returns {Object} Returns the new mapped object.
  27019. * @example
  27020. *
  27021. * _.mapValues({ 'a': 1, 'b': 2, 'c': 3} , function(n) { return n * 3; });
  27022. * // => { 'a': 3, 'b': 6, 'c': 9 }
  27023. *
  27024. * var users = {
  27025. * 'fred': { 'user': 'fred', 'age': 40 },
  27026. * 'pebbles': { 'user': 'pebbles', 'age': 1 }
  27027. * };
  27028. *
  27029. * // using the "_.property" callback shorthand
  27030. * _.mapValues(users, 'age');
  27031. * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
  27032. */
  27033. function mapValues(object, iteratee, thisArg) {
  27034. var result = {};
  27035. iteratee = getCallback(iteratee, thisArg, 3);
  27036. baseForOwn(object, function(value, key, object) {
  27037. result[key] = iteratee(value, key, object);
  27038. });
  27039. return result;
  27040. }
  27041. /**
  27042. * Recursively merges own enumerable properties of the source object(s), that
  27043. * don't resolve to `undefined` into the destination object. Subsequent sources
  27044. * overwrite property assignments of previous sources. If `customizer` is
  27045. * provided it is invoked to produce the merged values of the destination and
  27046. * source properties. If `customizer` returns `undefined` merging is handled
  27047. * by the method instead. The `customizer` is bound to `thisArg` and invoked
  27048. * with five arguments; (objectValue, sourceValue, key, object, source).
  27049. *
  27050. * @static
  27051. * @memberOf _
  27052. * @category Object
  27053. * @param {Object} object The destination object.
  27054. * @param {...Object} [sources] The source objects.
  27055. * @param {Function} [customizer] The function to customize merging properties.
  27056. * @param {*} [thisArg] The `this` binding of `customizer`.
  27057. * @returns {Object} Returns `object`.
  27058. * @example
  27059. *
  27060. * var users = {
  27061. * 'data': [{ 'user': 'barney' }, { 'user': 'fred' }]
  27062. * };
  27063. *
  27064. * var ages = {
  27065. * 'data': [{ 'age': 36 }, { 'age': 40 }]
  27066. * };
  27067. *
  27068. * _.merge(users, ages);
  27069. * // => { 'data': [{ 'user': 'barney', 'age': 36 }, { 'user': 'fred', 'age': 40 }] }
  27070. *
  27071. * // using a customizer callback
  27072. * var object = {
  27073. * 'fruits': ['apple'],
  27074. * 'vegetables': ['beet']
  27075. * };
  27076. *
  27077. * var other = {
  27078. * 'fruits': ['banana'],
  27079. * 'vegetables': ['carrot']
  27080. * };
  27081. *
  27082. * _.merge(object, other, function(a, b) {
  27083. * return _.isArray(a) ? a.concat(b) : undefined;
  27084. * });
  27085. * // => { 'fruits': ['apple', 'banana'], 'vegetables': ['beet', 'carrot'] }
  27086. */
  27087. var merge = createAssigner(baseMerge);
  27088. /**
  27089. * The opposite of `_.pick`; this method creates an object composed of the
  27090. * own and inherited enumerable properties of `object` that are not omitted.
  27091. * Property names may be specified as individual arguments or as arrays of
  27092. * property names. If `predicate` is provided it is invoked for each property
  27093. * of `object` omitting the properties `predicate` returns truthy for. The
  27094. * predicate is bound to `thisArg` and invoked with three arguments;
  27095. * (value, key, object).
  27096. *
  27097. * @static
  27098. * @memberOf _
  27099. * @category Object
  27100. * @param {Object} object The source object.
  27101. * @param {Function|...(string|string[])} [predicate] The function invoked per
  27102. * iteration or property names to omit, specified as individual property
  27103. * names or arrays of property names.
  27104. * @param {*} [thisArg] The `this` binding of `predicate`.
  27105. * @returns {Object} Returns the new object.
  27106. * @example
  27107. *
  27108. * var object = { 'user': 'fred', 'age': 40 };
  27109. *
  27110. * _.omit(object, 'age');
  27111. * // => { 'user': 'fred' }
  27112. *
  27113. * _.omit(object, _.isNumber);
  27114. * // => { 'user': 'fred' }
  27115. */
  27116. function omit(object, predicate, thisArg) {
  27117. if (object == null) {
  27118. return {};
  27119. }
  27120. if (typeof predicate != 'function') {
  27121. var props = arrayMap(baseFlatten(arguments, false, false, 1), String);
  27122. return pickByArray(object, baseDifference(keysIn(object), props));
  27123. }
  27124. predicate = bindCallback(predicate, thisArg, 3);
  27125. return pickByCallback(object, function(value, key, object) {
  27126. return !predicate(value, key, object);
  27127. });
  27128. }
  27129. /**
  27130. * Creates a two dimensional array of the key-value pairs for `object`,
  27131. * e.g. `[[key1, value1], [key2, value2]]`.
  27132. *
  27133. * @static
  27134. * @memberOf _
  27135. * @category Object
  27136. * @param {Object} object The object to inspect.
  27137. * @returns {Array} Returns the new array of key-value pairs.
  27138. * @example
  27139. *
  27140. * _.pairs({ 'barney': 36, 'fred': 40 });
  27141. * // => [['barney', 36], ['fred', 40]] (iteration order is not guaranteed)
  27142. */
  27143. function pairs(object) {
  27144. var index = -1,
  27145. props = keys(object),
  27146. length = props.length,
  27147. result = Array(length);
  27148. while (++index < length) {
  27149. var key = props[index];
  27150. result[index] = [key, object[key]];
  27151. }
  27152. return result;
  27153. }
  27154. /**
  27155. * Creates an object composed of the picked `object` properties. Property
  27156. * names may be specified as individual arguments or as arrays of property
  27157. * names. If `predicate` is provided it is invoked for each property of `object`
  27158. * picking the properties `predicate` returns truthy for. The predicate is
  27159. * bound to `thisArg` and invoked with three arguments; (value, key, object).
  27160. *
  27161. * @static
  27162. * @memberOf _
  27163. * @category Object
  27164. * @param {Object} object The source object.
  27165. * @param {Function|...(string|string[])} [predicate] The function invoked per
  27166. * iteration or property names to pick, specified as individual property
  27167. * names or arrays of property names.
  27168. * @param {*} [thisArg] The `this` binding of `predicate`.
  27169. * @returns {Object} Returns the new object.
  27170. * @example
  27171. *
  27172. * var object = { 'user': 'fred', 'age': 40 };
  27173. *
  27174. * _.pick(object, 'user');
  27175. * // => { 'user': 'fred' }
  27176. *
  27177. * _.pick(object, _.isString);
  27178. * // => { 'user': 'fred' }
  27179. */
  27180. function pick(object, predicate, thisArg) {
  27181. if (object == null) {
  27182. return {};
  27183. }
  27184. return typeof predicate == 'function'
  27185. ? pickByCallback(object, bindCallback(predicate, thisArg, 3))
  27186. : pickByArray(object, baseFlatten(arguments, false, false, 1));
  27187. }
  27188. /**
  27189. * Resolves the value of property `key` on `object`. If the value of `key` is
  27190. * a function it is invoked with the `this` binding of `object` and its result
  27191. * is returned, else the property value is returned. If the property value is
  27192. * `undefined` the `defaultValue` is used in its place.
  27193. *
  27194. * @static
  27195. * @memberOf _
  27196. * @category Object
  27197. * @param {Object} object The object to query.
  27198. * @param {string} key The key of the property to resolve.
  27199. * @param {*} [defaultValue] The value returned if the property value
  27200. * resolves to `undefined`.
  27201. * @returns {*} Returns the resolved value.
  27202. * @example
  27203. *
  27204. * var object = { 'user': 'fred', 'age': _.constant(40) };
  27205. *
  27206. * _.result(object, 'user');
  27207. * // => 'fred'
  27208. *
  27209. * _.result(object, 'age');
  27210. * // => 40
  27211. *
  27212. * _.result(object, 'status', 'busy');
  27213. * // => 'busy'
  27214. *
  27215. * _.result(object, 'status', _.constant('busy'));
  27216. * // => 'busy'
  27217. */
  27218. function result(object, key, defaultValue) {
  27219. var value = object == null ? undefined : object[key];
  27220. if (typeof value == 'undefined') {
  27221. value = defaultValue;
  27222. }
  27223. return isFunction(value) ? value.call(object) : value;
  27224. }
  27225. /**
  27226. * An alternative to `_.reduce`; this method transforms `object` to a new
  27227. * `accumulator` object which is the result of running each of its own enumerable
  27228. * properties through `iteratee`, with each invocation potentially mutating
  27229. * the `accumulator` object. The `iteratee` is bound to `thisArg` and invoked
  27230. * with four arguments; (accumulator, value, key, object). Iterator functions
  27231. * may exit iteration early by explicitly returning `false`.
  27232. *
  27233. * @static
  27234. * @memberOf _
  27235. * @category Object
  27236. * @param {Array|Object} object The object to iterate over.
  27237. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  27238. * @param {*} [accumulator] The custom accumulator value.
  27239. * @param {*} [thisArg] The `this` binding of `iteratee`.
  27240. * @returns {*} Returns the accumulated value.
  27241. * @example
  27242. *
  27243. * var squares = _.transform([1, 2, 3, 4, 5, 6], function(result, n) {
  27244. * n *= n;
  27245. * if (n % 2) {
  27246. * return result.push(n) < 3;
  27247. * }
  27248. * });
  27249. * // => [1, 9, 25]
  27250. *
  27251. * var mapped = _.transform({ 'a': 1, 'b': 2, 'c': 3 }, function(result, n, key) {
  27252. * result[key] = n * 3;
  27253. * });
  27254. * // => { 'a': 3, 'b': 6, 'c': 9 }
  27255. */
  27256. function transform(object, iteratee, accumulator, thisArg) {
  27257. var isArr = isArray(object) || isTypedArray(object);
  27258. iteratee = getCallback(iteratee, thisArg, 4);
  27259. if (accumulator == null) {
  27260. if (isArr || isObject(object)) {
  27261. var Ctor = object.constructor;
  27262. if (isArr) {
  27263. accumulator = isArray(object) ? new Ctor : [];
  27264. } else {
  27265. accumulator = baseCreate(typeof Ctor == 'function' && Ctor.prototype);
  27266. }
  27267. } else {
  27268. accumulator = {};
  27269. }
  27270. }
  27271. (isArr ? arrayEach : baseForOwn)(object, function(value, index, object) {
  27272. return iteratee(accumulator, value, index, object);
  27273. });
  27274. return accumulator;
  27275. }
  27276. /**
  27277. * Creates an array of the own enumerable property values of `object`.
  27278. *
  27279. * **Note:** Non-object values are coerced to objects.
  27280. *
  27281. * @static
  27282. * @memberOf _
  27283. * @category Object
  27284. * @param {Object} object The object to query.
  27285. * @returns {Array} Returns the array of property values.
  27286. * @example
  27287. *
  27288. * function Foo() {
  27289. * this.a = 1;
  27290. * this.b = 2;
  27291. * }
  27292. *
  27293. * Foo.prototype.c = 3;
  27294. *
  27295. * _.values(new Foo);
  27296. * // => [1, 2] (iteration order is not guaranteed)
  27297. *
  27298. * _.values('hi');
  27299. * // => ['h', 'i']
  27300. */
  27301. function values(object) {
  27302. return baseValues(object, keys(object));
  27303. }
  27304. /**
  27305. * Creates an array of the own and inherited enumerable property values
  27306. * of `object`.
  27307. *
  27308. * **Note:** Non-object values are coerced to objects.
  27309. *
  27310. * @static
  27311. * @memberOf _
  27312. * @category Object
  27313. * @param {Object} object The object to query.
  27314. * @returns {Array} Returns the array of property values.
  27315. * @example
  27316. *
  27317. * function Foo() {
  27318. * this.a = 1;
  27319. * this.b = 2;
  27320. * }
  27321. *
  27322. * Foo.prototype.c = 3;
  27323. *
  27324. * _.valuesIn(new Foo);
  27325. * // => [1, 2, 3] (iteration order is not guaranteed)
  27326. */
  27327. function valuesIn(object) {
  27328. return baseValues(object, keysIn(object));
  27329. }
  27330. /*------------------------------------------------------------------------*/
  27331. /**
  27332. * Produces a random number between `min` and `max` (inclusive). If only one
  27333. * argument is provided a number between `0` and the given number is returned.
  27334. * If `floating` is `true`, or either `min` or `max` are floats, a floating-point
  27335. * number is returned instead of an integer.
  27336. *
  27337. * @static
  27338. * @memberOf _
  27339. * @category Number
  27340. * @param {number} [min=0] The minimum possible value.
  27341. * @param {number} [max=1] The maximum possible value.
  27342. * @param {boolean} [floating] Specify returning a floating-point number.
  27343. * @returns {number} Returns the random number.
  27344. * @example
  27345. *
  27346. * _.random(0, 5);
  27347. * // => an integer between 0 and 5
  27348. *
  27349. * _.random(5);
  27350. * // => also an integer between 0 and 5
  27351. *
  27352. * _.random(5, true);
  27353. * // => a floating-point number between 0 and 5
  27354. *
  27355. * _.random(1.2, 5.2);
  27356. * // => a floating-point number between 1.2 and 5.2
  27357. */
  27358. function random(min, max, floating) {
  27359. if (floating && isIterateeCall(min, max, floating)) {
  27360. max = floating = null;
  27361. }
  27362. var noMin = min == null,
  27363. noMax = max == null;
  27364. if (floating == null) {
  27365. if (noMax && typeof min == 'boolean') {
  27366. floating = min;
  27367. min = 1;
  27368. }
  27369. else if (typeof max == 'boolean') {
  27370. floating = max;
  27371. noMax = true;
  27372. }
  27373. }
  27374. if (noMin && noMax) {
  27375. max = 1;
  27376. noMax = false;
  27377. }
  27378. min = +min || 0;
  27379. if (noMax) {
  27380. max = min;
  27381. min = 0;
  27382. } else {
  27383. max = +max || 0;
  27384. }
  27385. if (floating || min % 1 || max % 1) {
  27386. var rand = nativeRandom();
  27387. return nativeMin(min + (rand * (max - min + parseFloat('1e-' + ((rand + '').length - 1)))), max);
  27388. }
  27389. return baseRandom(min, max);
  27390. }
  27391. /*------------------------------------------------------------------------*/
  27392. /**
  27393. * Converts `string` to camel case.
  27394. * See [Wikipedia](https://en.wikipedia.org/wiki/CamelCase) for more details.
  27395. *
  27396. * @static
  27397. * @memberOf _
  27398. * @category String
  27399. * @param {string} [string=''] The string to convert.
  27400. * @returns {string} Returns the camel cased string.
  27401. * @example
  27402. *
  27403. * _.camelCase('Foo Bar');
  27404. * // => 'fooBar'
  27405. *
  27406. * _.camelCase('--foo-bar');
  27407. * // => 'fooBar'
  27408. *
  27409. * _.camelCase('__foo_bar__');
  27410. * // => 'fooBar'
  27411. */
  27412. var camelCase = createCompounder(function(result, word, index) {
  27413. word = word.toLowerCase();
  27414. return result + (index ? (word.charAt(0).toUpperCase() + word.slice(1)) : word);
  27415. });
  27416. /**
  27417. * Capitalizes the first character of `string`.
  27418. *
  27419. * @static
  27420. * @memberOf _
  27421. * @category String
  27422. * @param {string} [string=''] The string to capitalize.
  27423. * @returns {string} Returns the capitalized string.
  27424. * @example
  27425. *
  27426. * _.capitalize('fred');
  27427. * // => 'Fred'
  27428. */
  27429. function capitalize(string) {
  27430. string = baseToString(string);
  27431. return string && (string.charAt(0).toUpperCase() + string.slice(1));
  27432. }
  27433. /**
  27434. * Deburrs `string` by converting latin-1 supplementary letters to basic latin letters.
  27435. * See [Wikipedia](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
  27436. * for more details.
  27437. *
  27438. * @static
  27439. * @memberOf _
  27440. * @category String
  27441. * @param {string} [string=''] The string to deburr.
  27442. * @returns {string} Returns the deburred string.
  27443. * @example
  27444. *
  27445. * _.deburr('déjà vu');
  27446. * // => 'deja vu'
  27447. */
  27448. function deburr(string) {
  27449. string = baseToString(string);
  27450. return string && string.replace(reLatin1, deburrLetter);
  27451. }
  27452. /**
  27453. * Checks if `string` ends with the given target string.
  27454. *
  27455. * @static
  27456. * @memberOf _
  27457. * @category String
  27458. * @param {string} [string=''] The string to search.
  27459. * @param {string} [target] The string to search for.
  27460. * @param {number} [position=string.length] The position to search from.
  27461. * @returns {boolean} Returns `true` if `string` ends with `target`, else `false`.
  27462. * @example
  27463. *
  27464. * _.endsWith('abc', 'c');
  27465. * // => true
  27466. *
  27467. * _.endsWith('abc', 'b');
  27468. * // => false
  27469. *
  27470. * _.endsWith('abc', 'b', 2);
  27471. * // => true
  27472. */
  27473. function endsWith(string, target, position) {
  27474. string = baseToString(string);
  27475. target = (target + '');
  27476. var length = string.length;
  27477. position = (typeof position == 'undefined' ? length : nativeMin(position < 0 ? 0 : (+position || 0), length)) - target.length;
  27478. return position >= 0 && string.indexOf(target, position) == position;
  27479. }
  27480. /**
  27481. * Converts the characters "&", "<", ">", '"', "'", and '`', in `string` to
  27482. * their corresponding HTML entities.
  27483. *
  27484. * **Note:** No other characters are escaped. To escape additional characters
  27485. * use a third-party library like [_he_](https://mths.be/he).
  27486. *
  27487. * Though the ">" character is escaped for symmetry, characters like
  27488. * ">" and "/" don't require escaping in HTML and have no special meaning
  27489. * unless they're part of a tag or unquoted attribute value.
  27490. * See [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)
  27491. * (under "semi-related fun fact") for more details.
  27492. *
  27493. * Backticks are escaped because in Internet Explorer < 9, they can break out
  27494. * of attribute values or HTML comments. See [#102](https://html5sec.org/#102),
  27495. * [#108](https://html5sec.org/#108), and [#133](https://html5sec.org/#133) of
  27496. * the [HTML5 Security Cheatsheet](https://html5sec.org/) for more details.
  27497. *
  27498. * When working with HTML you should always quote attribute values to reduce
  27499. * XSS vectors. See [Ryan Grove's article](http://wonko.com/post/html-escaping)
  27500. * for more details.
  27501. *
  27502. * @static
  27503. * @memberOf _
  27504. * @category String
  27505. * @param {string} [string=''] The string to escape.
  27506. * @returns {string} Returns the escaped string.
  27507. * @example
  27508. *
  27509. * _.escape('fred, barney, & pebbles');
  27510. * // => 'fred, barney, &amp; pebbles'
  27511. */
  27512. function escape(string) {
  27513. // Reset `lastIndex` because in IE < 9 `String#replace` does not.
  27514. string = baseToString(string);
  27515. return (string && reHasUnescapedHtml.test(string))
  27516. ? string.replace(reUnescapedHtml, escapeHtmlChar)
  27517. : string;
  27518. }
  27519. /**
  27520. * Escapes the `RegExp` special characters "\", "^", "$", ".", "|", "?", "*",
  27521. * "+", "(", ")", "[", "]", "{" and "}" in `string`.
  27522. *
  27523. * @static
  27524. * @memberOf _
  27525. * @category String
  27526. * @param {string} [string=''] The string to escape.
  27527. * @returns {string} Returns the escaped string.
  27528. * @example
  27529. *
  27530. * _.escapeRegExp('[lodash](https://lodash.com/)');
  27531. * // => '\[lodash\]\(https://lodash\.com/\)'
  27532. */
  27533. function escapeRegExp(string) {
  27534. string = baseToString(string);
  27535. return (string && reHasRegExpChars.test(string))
  27536. ? string.replace(reRegExpChars, '\\$&')
  27537. : string;
  27538. }
  27539. /**
  27540. * Converts `string` to kebab case (a.k.a. spinal case).
  27541. * See [Wikipedia](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles) for
  27542. * more details.
  27543. *
  27544. * @static
  27545. * @memberOf _
  27546. * @category String
  27547. * @param {string} [string=''] The string to convert.
  27548. * @returns {string} Returns the kebab cased string.
  27549. * @example
  27550. *
  27551. * _.kebabCase('Foo Bar');
  27552. * // => 'foo-bar'
  27553. *
  27554. * _.kebabCase('fooBar');
  27555. * // => 'foo-bar'
  27556. *
  27557. * _.kebabCase('__foo_bar__');
  27558. * // => 'foo-bar'
  27559. */
  27560. var kebabCase = createCompounder(function(result, word, index) {
  27561. return result + (index ? '-' : '') + word.toLowerCase();
  27562. });
  27563. /**
  27564. * Pads `string` on the left and right sides if it is shorter then the given
  27565. * padding length. The `chars` string may be truncated if the number of padding
  27566. * characters can't be evenly divided by the padding length.
  27567. *
  27568. * @static
  27569. * @memberOf _
  27570. * @category String
  27571. * @param {string} [string=''] The string to pad.
  27572. * @param {number} [length=0] The padding length.
  27573. * @param {string} [chars=' '] The string used as padding.
  27574. * @returns {string} Returns the padded string.
  27575. * @example
  27576. *
  27577. * _.pad('abc', 8);
  27578. * // => ' abc '
  27579. *
  27580. * _.pad('abc', 8, '_-');
  27581. * // => '_-abc_-_'
  27582. *
  27583. * _.pad('abc', 3);
  27584. * // => 'abc'
  27585. */
  27586. function pad(string, length, chars) {
  27587. string = baseToString(string);
  27588. length = +length;
  27589. var strLength = string.length;
  27590. if (strLength >= length || !nativeIsFinite(length)) {
  27591. return string;
  27592. }
  27593. var mid = (length - strLength) / 2,
  27594. leftLength = floor(mid),
  27595. rightLength = ceil(mid);
  27596. chars = createPad('', rightLength, chars);
  27597. return chars.slice(0, leftLength) + string + chars;
  27598. }
  27599. /**
  27600. * Pads `string` on the left side if it is shorter then the given padding
  27601. * length. The `chars` string may be truncated if the number of padding
  27602. * characters exceeds the padding length.
  27603. *
  27604. * @static
  27605. * @memberOf _
  27606. * @category String
  27607. * @param {string} [string=''] The string to pad.
  27608. * @param {number} [length=0] The padding length.
  27609. * @param {string} [chars=' '] The string used as padding.
  27610. * @returns {string} Returns the padded string.
  27611. * @example
  27612. *
  27613. * _.padLeft('abc', 6);
  27614. * // => ' abc'
  27615. *
  27616. * _.padLeft('abc', 6, '_-');
  27617. * // => '_-_abc'
  27618. *
  27619. * _.padLeft('abc', 3);
  27620. * // => 'abc'
  27621. */
  27622. function padLeft(string, length, chars) {
  27623. string = baseToString(string);
  27624. return string && (createPad(string, length, chars) + string);
  27625. }
  27626. /**
  27627. * Pads `string` on the right side if it is shorter then the given padding
  27628. * length. The `chars` string may be truncated if the number of padding
  27629. * characters exceeds the padding length.
  27630. *
  27631. * @static
  27632. * @memberOf _
  27633. * @category String
  27634. * @param {string} [string=''] The string to pad.
  27635. * @param {number} [length=0] The padding length.
  27636. * @param {string} [chars=' '] The string used as padding.
  27637. * @returns {string} Returns the padded string.
  27638. * @example
  27639. *
  27640. * _.padRight('abc', 6);
  27641. * // => 'abc '
  27642. *
  27643. * _.padRight('abc', 6, '_-');
  27644. * // => 'abc_-_'
  27645. *
  27646. * _.padRight('abc', 3);
  27647. * // => 'abc'
  27648. */
  27649. function padRight(string, length, chars) {
  27650. string = baseToString(string);
  27651. return string && (string + createPad(string, length, chars));
  27652. }
  27653. /**
  27654. * Converts `string` to an integer of the specified radix. If `radix` is
  27655. * `undefined` or `0`, a `radix` of `10` is used unless `value` is a hexadecimal,
  27656. * in which case a `radix` of `16` is used.
  27657. *
  27658. * **Note:** This method aligns with the ES5 implementation of `parseInt`.
  27659. * See the [ES5 spec](https://es5.github.io/#E) for more details.
  27660. *
  27661. * @static
  27662. * @memberOf _
  27663. * @category String
  27664. * @param {string} string The string to convert.
  27665. * @param {number} [radix] The radix to interpret `value` by.
  27666. * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
  27667. * @returns {number} Returns the converted integer.
  27668. * @example
  27669. *
  27670. * _.parseInt('08');
  27671. * // => 8
  27672. *
  27673. * _.map(['6', '08', '10'], _.parseInt);
  27674. * // => [6, 8, 10]
  27675. */
  27676. function parseInt(string, radix, guard) {
  27677. if (guard && isIterateeCall(string, radix, guard)) {
  27678. radix = 0;
  27679. }
  27680. return nativeParseInt(string, radix);
  27681. }
  27682. // Fallback for environments with pre-ES5 implementations.
  27683. if (nativeParseInt(whitespace + '08') != 8) {
  27684. parseInt = function(string, radix, guard) {
  27685. // Firefox < 21 and Opera < 15 follow ES3 for `parseInt`.
  27686. // Chrome fails to trim leading <BOM> whitespace characters.
  27687. // See https://code.google.com/p/v8/issues/detail?id=3109 for more details.
  27688. if (guard ? isIterateeCall(string, radix, guard) : radix == null) {
  27689. radix = 0;
  27690. } else if (radix) {
  27691. radix = +radix;
  27692. }
  27693. string = trim(string);
  27694. return nativeParseInt(string, radix || (reHexPrefix.test(string) ? 16 : 10));
  27695. };
  27696. }
  27697. /**
  27698. * Repeats the given string `n` times.
  27699. *
  27700. * @static
  27701. * @memberOf _
  27702. * @category String
  27703. * @param {string} [string=''] The string to repeat.
  27704. * @param {number} [n=0] The number of times to repeat the string.
  27705. * @returns {string} Returns the repeated string.
  27706. * @example
  27707. *
  27708. * _.repeat('*', 3);
  27709. * // => '***'
  27710. *
  27711. * _.repeat('abc', 2);
  27712. * // => 'abcabc'
  27713. *
  27714. * _.repeat('abc', 0);
  27715. * // => ''
  27716. */
  27717. function repeat(string, n) {
  27718. var result = '';
  27719. string = baseToString(string);
  27720. n = +n;
  27721. if (n < 1 || !string || !nativeIsFinite(n)) {
  27722. return result;
  27723. }
  27724. // Leverage the exponentiation by squaring algorithm for a faster repeat.
  27725. // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.
  27726. do {
  27727. if (n % 2) {
  27728. result += string;
  27729. }
  27730. n = floor(n / 2);
  27731. string += string;
  27732. } while (n);
  27733. return result;
  27734. }
  27735. /**
  27736. * Converts `string` to snake case.
  27737. * See [Wikipedia](https://en.wikipedia.org/wiki/Snake_case) for more details.
  27738. *
  27739. * @static
  27740. * @memberOf _
  27741. * @category String
  27742. * @param {string} [string=''] The string to convert.
  27743. * @returns {string} Returns the snake cased string.
  27744. * @example
  27745. *
  27746. * _.snakeCase('Foo Bar');
  27747. * // => 'foo_bar'
  27748. *
  27749. * _.snakeCase('fooBar');
  27750. * // => 'foo_bar'
  27751. *
  27752. * _.snakeCase('--foo-bar');
  27753. * // => 'foo_bar'
  27754. */
  27755. var snakeCase = createCompounder(function(result, word, index) {
  27756. return result + (index ? '_' : '') + word.toLowerCase();
  27757. });
  27758. /**
  27759. * Converts `string` to start case.
  27760. * See [Wikipedia](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage)
  27761. * for more details.
  27762. *
  27763. * @static
  27764. * @memberOf _
  27765. * @category String
  27766. * @param {string} [string=''] The string to convert.
  27767. * @returns {string} Returns the start cased string.
  27768. * @example
  27769. *
  27770. * _.startCase('--foo-bar');
  27771. * // => 'Foo Bar'
  27772. *
  27773. * _.startCase('fooBar');
  27774. * // => 'Foo Bar'
  27775. *
  27776. * _.startCase('__foo_bar__');
  27777. * // => 'Foo Bar'
  27778. */
  27779. var startCase = createCompounder(function(result, word, index) {
  27780. return result + (index ? ' ' : '') + (word.charAt(0).toUpperCase() + word.slice(1));
  27781. });
  27782. /**
  27783. * Checks if `string` starts with the given target string.
  27784. *
  27785. * @static
  27786. * @memberOf _
  27787. * @category String
  27788. * @param {string} [string=''] The string to search.
  27789. * @param {string} [target] The string to search for.
  27790. * @param {number} [position=0] The position to search from.
  27791. * @returns {boolean} Returns `true` if `string` starts with `target`, else `false`.
  27792. * @example
  27793. *
  27794. * _.startsWith('abc', 'a');
  27795. * // => true
  27796. *
  27797. * _.startsWith('abc', 'b');
  27798. * // => false
  27799. *
  27800. * _.startsWith('abc', 'b', 1);
  27801. * // => true
  27802. */
  27803. function startsWith(string, target, position) {
  27804. string = baseToString(string);
  27805. position = position == null ? 0 : nativeMin(position < 0 ? 0 : (+position || 0), string.length);
  27806. return string.lastIndexOf(target, position) == position;
  27807. }
  27808. /**
  27809. * Creates a compiled template function that can interpolate data properties
  27810. * in "interpolate" delimiters, HTML-escape interpolated data properties in
  27811. * "escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data
  27812. * properties may be accessed as free variables in the template. If a setting
  27813. * object is provided it takes precedence over `_.templateSettings` values.
  27814. *
  27815. * **Note:** In the development build `_.template` utilizes sourceURLs for easier debugging.
  27816. * See the [HTML5 Rocks article on sourcemaps](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)
  27817. * for more details.
  27818. *
  27819. * For more information on precompiling templates see
  27820. * [lodash's custom builds documentation](https://lodash.com/custom-builds).
  27821. *
  27822. * For more information on Chrome extension sandboxes see
  27823. * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).
  27824. *
  27825. * @static
  27826. * @memberOf _
  27827. * @category String
  27828. * @param {string} [string=''] The template string.
  27829. * @param {Object} [options] The options object.
  27830. * @param {RegExp} [options.escape] The HTML "escape" delimiter.
  27831. * @param {RegExp} [options.evaluate] The "evaluate" delimiter.
  27832. * @param {Object} [options.imports] An object to import into the template as free variables.
  27833. * @param {RegExp} [options.interpolate] The "interpolate" delimiter.
  27834. * @param {string} [options.sourceURL] The sourceURL of the template's compiled source.
  27835. * @param {string} [options.variable] The data object variable name.
  27836. * @param- {Object} [otherOptions] Enables the legacy `options` param signature.
  27837. * @returns {Function} Returns the compiled template function.
  27838. * @example
  27839. *
  27840. * // using the "interpolate" delimiter to create a compiled template
  27841. * var compiled = _.template('hello <%= user %>!');
  27842. * compiled({ 'user': 'fred' });
  27843. * // => 'hello fred!'
  27844. *
  27845. * // using the HTML "escape" delimiter to escape data property values
  27846. * var compiled = _.template('<b><%- value %></b>');
  27847. * compiled({ 'value': '<script>' });
  27848. * // => '<b>&lt;script&gt;</b>'
  27849. *
  27850. * // using the "evaluate" delimiter to execute JavaScript and generate HTML
  27851. * var compiled = _.template('<% _.forEach(users, function(user) { %><li><%- user %></li><% }); %>');
  27852. * compiled({ 'users': ['fred', 'barney'] });
  27853. * // => '<li>fred</li><li>barney</li>'
  27854. *
  27855. * // using the internal `print` function in "evaluate" delimiters
  27856. * var compiled = _.template('<% print("hello " + user); %>!');
  27857. * compiled({ 'user': 'barney' });
  27858. * // => 'hello barney!'
  27859. *
  27860. * // using the ES delimiter as an alternative to the default "interpolate" delimiter
  27861. * var compiled = _.template('hello ${ user }!');
  27862. * compiled({ 'user': 'pebbles' });
  27863. * // => 'hello pebbles!'
  27864. *
  27865. * // using custom template delimiters
  27866. * _.templateSettings.interpolate = /{{([\s\S]+?)}}/g;
  27867. * var compiled = _.template('hello {{ user }}!');
  27868. * compiled({ 'user': 'mustache' });
  27869. * // => 'hello mustache!'
  27870. *
  27871. * // using backslashes to treat delimiters as plain text
  27872. * var compiled = _.template('<%= "\\<%- value %\\>" %>');
  27873. * compiled({ 'value': 'ignored' });
  27874. * // => '<%- value %>'
  27875. *
  27876. * // using the `imports` option to import `jQuery` as `jq`
  27877. * var text = '<% jq.each(users, function(user) { %><li><%- user %></li><% }); %>';
  27878. * var compiled = _.template(text, { 'imports': { 'jq': jQuery } });
  27879. * compiled({ 'users': ['fred', 'barney'] });
  27880. * // => '<li>fred</li><li>barney</li>'
  27881. *
  27882. * // using the `sourceURL` option to specify a custom sourceURL for the template
  27883. * var compiled = _.template('hello <%= user %>!', { 'sourceURL': '/basic/greeting.jst' });
  27884. * compiled(data);
  27885. * // => find the source of "greeting.jst" under the Sources tab or Resources panel of the web inspector
  27886. *
  27887. * // using the `variable` option to ensure a with-statement isn't used in the compiled template
  27888. * var compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' });
  27889. * compiled.source;
  27890. * // => function(data) {
  27891. * var __t, __p = '';
  27892. * __p += 'hi ' + ((__t = ( data.user )) == null ? '' : __t) + '!';
  27893. * return __p;
  27894. * }
  27895. *
  27896. * // using the `source` property to inline compiled templates for meaningful
  27897. * // line numbers in error messages and a stack trace
  27898. * fs.writeFileSync(path.join(cwd, 'jst.js'), '\
  27899. * var JST = {\
  27900. * "main": ' + _.template(mainText).source + '\
  27901. * };\
  27902. * ');
  27903. */
  27904. function template(string, options, otherOptions) {
  27905. // Based on John Resig's `tmpl` implementation (http://ejohn.org/blog/javascript-micro-templating/)
  27906. // and Laura Doktorova's doT.js (https://github.com/olado/doT).
  27907. var settings = lodash.templateSettings;
  27908. if (otherOptions && isIterateeCall(string, options, otherOptions)) {
  27909. options = otherOptions = null;
  27910. }
  27911. string = baseToString(string);
  27912. options = baseAssign(baseAssign({}, otherOptions || options), settings, assignOwnDefaults);
  27913. var imports = baseAssign(baseAssign({}, options.imports), settings.imports, assignOwnDefaults),
  27914. importsKeys = keys(imports),
  27915. importsValues = baseValues(imports, importsKeys);
  27916. var isEscaping,
  27917. isEvaluating,
  27918. index = 0,
  27919. interpolate = options.interpolate || reNoMatch,
  27920. source = "__p += '";
  27921. // Compile the regexp to match each delimiter.
  27922. var reDelimiters = RegExp(
  27923. (options.escape || reNoMatch).source + '|' +
  27924. interpolate.source + '|' +
  27925. (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + '|' +
  27926. (options.evaluate || reNoMatch).source + '|$'
  27927. , 'g');
  27928. // Use a sourceURL for easier debugging.
  27929. var sourceURL = '//# sourceURL=' +
  27930. ('sourceURL' in options
  27931. ? options.sourceURL
  27932. : ('lodash.templateSources[' + (++templateCounter) + ']')
  27933. ) + '\n';
  27934. string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
  27935. interpolateValue || (interpolateValue = esTemplateValue);
  27936. // Escape characters that can't be included in string literals.
  27937. source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);
  27938. // Replace delimiters with snippets.
  27939. if (escapeValue) {
  27940. isEscaping = true;
  27941. source += "' +\n__e(" + escapeValue + ") +\n'";
  27942. }
  27943. if (evaluateValue) {
  27944. isEvaluating = true;
  27945. source += "';\n" + evaluateValue + ";\n__p += '";
  27946. }
  27947. if (interpolateValue) {
  27948. source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'";
  27949. }
  27950. index = offset + match.length;
  27951. // The JS engine embedded in Adobe products requires returning the `match`
  27952. // string in order to produce the correct `offset` value.
  27953. return match;
  27954. });
  27955. source += "';\n";
  27956. // If `variable` is not specified wrap a with-statement around the generated
  27957. // code to add the data object to the top of the scope chain.
  27958. var variable = options.variable;
  27959. if (!variable) {
  27960. source = 'with (obj) {\n' + source + '\n}\n';
  27961. }
  27962. // Cleanup code by stripping empty strings.
  27963. source = (isEvaluating ? source.replace(reEmptyStringLeading, '') : source)
  27964. .replace(reEmptyStringMiddle, '$1')
  27965. .replace(reEmptyStringTrailing, '$1;');
  27966. // Frame code as the function body.
  27967. source = 'function(' + (variable || 'obj') + ') {\n' +
  27968. (variable
  27969. ? ''
  27970. : 'obj || (obj = {});\n'
  27971. ) +
  27972. "var __t, __p = ''" +
  27973. (isEscaping
  27974. ? ', __e = _.escape'
  27975. : ''
  27976. ) +
  27977. (isEvaluating
  27978. ? ', __j = Array.prototype.join;\n' +
  27979. "function print() { __p += __j.call(arguments, '') }\n"
  27980. : ';\n'
  27981. ) +
  27982. source +
  27983. 'return __p\n}';
  27984. var result = attempt(function() {
  27985. return Function(importsKeys, sourceURL + 'return ' + source).apply(undefined, importsValues);
  27986. });
  27987. // Provide the compiled function's source by its `toString` method or
  27988. // the `source` property as a convenience for inlining compiled templates.
  27989. result.source = source;
  27990. if (isError(result)) {
  27991. throw result;
  27992. }
  27993. return result;
  27994. }
  27995. /**
  27996. * Removes leading and trailing whitespace or specified characters from `string`.
  27997. *
  27998. * @static
  27999. * @memberOf _
  28000. * @category String
  28001. * @param {string} [string=''] The string to trim.
  28002. * @param {string} [chars=whitespace] The characters to trim.
  28003. * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
  28004. * @returns {string} Returns the trimmed string.
  28005. * @example
  28006. *
  28007. * _.trim(' abc ');
  28008. * // => 'abc'
  28009. *
  28010. * _.trim('-_-abc-_-', '_-');
  28011. * // => 'abc'
  28012. *
  28013. * _.map([' foo ', ' bar '], _.trim);
  28014. * // => ['foo', 'bar]
  28015. */
  28016. function trim(string, chars, guard) {
  28017. var value = string;
  28018. string = baseToString(string);
  28019. if (!string) {
  28020. return string;
  28021. }
  28022. if (guard ? isIterateeCall(value, chars, guard) : chars == null) {
  28023. return string.slice(trimmedLeftIndex(string), trimmedRightIndex(string) + 1);
  28024. }
  28025. chars = (chars + '');
  28026. return string.slice(charsLeftIndex(string, chars), charsRightIndex(string, chars) + 1);
  28027. }
  28028. /**
  28029. * Removes leading whitespace or specified characters from `string`.
  28030. *
  28031. * @static
  28032. * @memberOf _
  28033. * @category String
  28034. * @param {string} [string=''] The string to trim.
  28035. * @param {string} [chars=whitespace] The characters to trim.
  28036. * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
  28037. * @returns {string} Returns the trimmed string.
  28038. * @example
  28039. *
  28040. * _.trimLeft(' abc ');
  28041. * // => 'abc '
  28042. *
  28043. * _.trimLeft('-_-abc-_-', '_-');
  28044. * // => 'abc-_-'
  28045. */
  28046. function trimLeft(string, chars, guard) {
  28047. var value = string;
  28048. string = baseToString(string);
  28049. if (!string) {
  28050. return string;
  28051. }
  28052. if (guard ? isIterateeCall(value, chars, guard) : chars == null) {
  28053. return string.slice(trimmedLeftIndex(string))
  28054. }
  28055. return string.slice(charsLeftIndex(string, (chars + '')));
  28056. }
  28057. /**
  28058. * Removes trailing whitespace or specified characters from `string`.
  28059. *
  28060. * @static
  28061. * @memberOf _
  28062. * @category String
  28063. * @param {string} [string=''] The string to trim.
  28064. * @param {string} [chars=whitespace] The characters to trim.
  28065. * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
  28066. * @returns {string} Returns the trimmed string.
  28067. * @example
  28068. *
  28069. * _.trimRight(' abc ');
  28070. * // => ' abc'
  28071. *
  28072. * _.trimRight('-_-abc-_-', '_-');
  28073. * // => '-_-abc'
  28074. */
  28075. function trimRight(string, chars, guard) {
  28076. var value = string;
  28077. string = baseToString(string);
  28078. if (!string) {
  28079. return string;
  28080. }
  28081. if (guard ? isIterateeCall(value, chars, guard) : chars == null) {
  28082. return string.slice(0, trimmedRightIndex(string) + 1)
  28083. }
  28084. return string.slice(0, charsRightIndex(string, (chars + '')) + 1);
  28085. }
  28086. /**
  28087. * Truncates `string` if it is longer than the given maximum string length.
  28088. * The last characters of the truncated string are replaced with the omission
  28089. * string which defaults to "...".
  28090. *
  28091. * @static
  28092. * @memberOf _
  28093. * @category String
  28094. * @param {string} [string=''] The string to truncate.
  28095. * @param {Object|number} [options] The options object or maximum string length.
  28096. * @param {number} [options.length=30] The maximum string length.
  28097. * @param {string} [options.omission='...'] The string to indicate text is omitted.
  28098. * @param {RegExp|string} [options.separator] The separator pattern to truncate to.
  28099. * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
  28100. * @returns {string} Returns the truncated string.
  28101. * @example
  28102. *
  28103. * _.trunc('hi-diddly-ho there, neighborino');
  28104. * // => 'hi-diddly-ho there, neighbo...'
  28105. *
  28106. * _.trunc('hi-diddly-ho there, neighborino', 24);
  28107. * // => 'hi-diddly-ho there, n...'
  28108. *
  28109. * _.trunc('hi-diddly-ho there, neighborino', { 'length': 24, 'separator': ' ' });
  28110. * // => 'hi-diddly-ho there,...'
  28111. *
  28112. * _.trunc('hi-diddly-ho there, neighborino', { 'length': 24, 'separator': /,? +/ });
  28113. * //=> 'hi-diddly-ho there...'
  28114. *
  28115. * _.trunc('hi-diddly-ho there, neighborino', { 'omission': ' [...]' });
  28116. * // => 'hi-diddly-ho there, neig [...]'
  28117. */
  28118. function trunc(string, options, guard) {
  28119. if (guard && isIterateeCall(string, options, guard)) {
  28120. options = null;
  28121. }
  28122. var length = DEFAULT_TRUNC_LENGTH,
  28123. omission = DEFAULT_TRUNC_OMISSION;
  28124. if (options != null) {
  28125. if (isObject(options)) {
  28126. var separator = 'separator' in options ? options.separator : separator;
  28127. length = 'length' in options ? +options.length || 0 : length;
  28128. omission = 'omission' in options ? baseToString(options.omission) : omission;
  28129. } else {
  28130. length = +options || 0;
  28131. }
  28132. }
  28133. string = baseToString(string);
  28134. if (length >= string.length) {
  28135. return string;
  28136. }
  28137. var end = length - omission.length;
  28138. if (end < 1) {
  28139. return omission;
  28140. }
  28141. var result = string.slice(0, end);
  28142. if (separator == null) {
  28143. return result + omission;
  28144. }
  28145. if (isRegExp(separator)) {
  28146. if (string.slice(end).search(separator)) {
  28147. var match,
  28148. newEnd,
  28149. substring = string.slice(0, end);
  28150. if (!separator.global) {
  28151. separator = RegExp(separator.source, (reFlags.exec(separator) || '') + 'g');
  28152. }
  28153. separator.lastIndex = 0;
  28154. while ((match = separator.exec(substring))) {
  28155. newEnd = match.index;
  28156. }
  28157. result = result.slice(0, newEnd == null ? end : newEnd);
  28158. }
  28159. } else if (string.indexOf(separator, end) != end) {
  28160. var index = result.lastIndexOf(separator);
  28161. if (index > -1) {
  28162. result = result.slice(0, index);
  28163. }
  28164. }
  28165. return result + omission;
  28166. }
  28167. /**
  28168. * The inverse of `_.escape`; this method converts the HTML entities
  28169. * `&amp;`, `&lt;`, `&gt;`, `&quot;`, `&#39;`, and `&#96;` in `string` to their
  28170. * corresponding characters.
  28171. *
  28172. * **Note:** No other HTML entities are unescaped. To unescape additional HTML
  28173. * entities use a third-party library like [_he_](https://mths.be/he).
  28174. *
  28175. * @static
  28176. * @memberOf _
  28177. * @category String
  28178. * @param {string} [string=''] The string to unescape.
  28179. * @returns {string} Returns the unescaped string.
  28180. * @example
  28181. *
  28182. * _.unescape('fred, barney, &amp; pebbles');
  28183. * // => 'fred, barney, & pebbles'
  28184. */
  28185. function unescape(string) {
  28186. string = baseToString(string);
  28187. return (string && reHasEscapedHtml.test(string))
  28188. ? string.replace(reEscapedHtml, unescapeHtmlChar)
  28189. : string;
  28190. }
  28191. /**
  28192. * Splits `string` into an array of its words.
  28193. *
  28194. * @static
  28195. * @memberOf _
  28196. * @category String
  28197. * @param {string} [string=''] The string to inspect.
  28198. * @param {RegExp|string} [pattern] The pattern to match words.
  28199. * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
  28200. * @returns {Array} Returns the words of `string`.
  28201. * @example
  28202. *
  28203. * _.words('fred, barney, & pebbles');
  28204. * // => ['fred', 'barney', 'pebbles']
  28205. *
  28206. * _.words('fred, barney, & pebbles', /[^, ]+/g);
  28207. * // => ['fred', 'barney', '&', 'pebbles']
  28208. */
  28209. function words(string, pattern, guard) {
  28210. if (guard && isIterateeCall(string, pattern, guard)) {
  28211. pattern = null;
  28212. }
  28213. string = baseToString(string);
  28214. return string.match(pattern || reWords) || [];
  28215. }
  28216. /*------------------------------------------------------------------------*/
  28217. /**
  28218. * Attempts to invoke `func`, returning either the result or the caught
  28219. * error object.
  28220. *
  28221. * @static
  28222. * @memberOf _
  28223. * @category Utility
  28224. * @param {*} func The function to attempt.
  28225. * @returns {*} Returns the `func` result or error object.
  28226. * @example
  28227. *
  28228. * // avoid throwing errors for invalid selectors
  28229. * var elements = _.attempt(function() {
  28230. * return document.querySelectorAll(selector);
  28231. * });
  28232. *
  28233. * if (_.isError(elements)) {
  28234. * elements = [];
  28235. * }
  28236. */
  28237. function attempt(func) {
  28238. try {
  28239. return func();
  28240. } catch(e) {
  28241. return isError(e) ? e : Error(e);
  28242. }
  28243. }
  28244. /**
  28245. * Creates a function bound to an optional `thisArg`. If `func` is a property
  28246. * name the created callback returns the property value for a given element.
  28247. * If `func` is an object the created callback returns `true` for elements
  28248. * that contain the equivalent object properties, otherwise it returns `false`.
  28249. *
  28250. * @static
  28251. * @memberOf _
  28252. * @alias iteratee
  28253. * @category Utility
  28254. * @param {*} [func=_.identity] The value to convert to a callback.
  28255. * @param {*} [thisArg] The `this` binding of `func`.
  28256. * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
  28257. * @returns {Function} Returns the callback.
  28258. * @example
  28259. *
  28260. * var users = [
  28261. * { 'user': 'barney', 'age': 36 },
  28262. * { 'user': 'fred', 'age': 40 }
  28263. * ];
  28264. *
  28265. * // wrap to create custom callback shorthands
  28266. * _.callback = _.wrap(_.callback, function(callback, func, thisArg) {
  28267. * var match = /^(.+?)__([gl]t)(.+)$/.exec(func);
  28268. * if (!match) {
  28269. * return callback(func, thisArg);
  28270. * }
  28271. * return function(object) {
  28272. * return match[2] == 'gt' ? object[match[1]] > match[3] : object[match[1]] < match[3];
  28273. * };
  28274. * });
  28275. *
  28276. * _.filter(users, 'age__gt36');
  28277. * // => [{ 'user': 'fred', 'age': 40 }]
  28278. */
  28279. function callback(func, thisArg, guard) {
  28280. if (guard && isIterateeCall(func, thisArg, guard)) {
  28281. thisArg = null;
  28282. }
  28283. return isObjectLike(func)
  28284. ? matches(func)
  28285. : baseCallback(func, thisArg);
  28286. }
  28287. /**
  28288. * Creates a function that returns `value`.
  28289. *
  28290. * @static
  28291. * @memberOf _
  28292. * @category Utility
  28293. * @param {*} value The value to return from the new function.
  28294. * @returns {Function} Returns the new function.
  28295. * @example
  28296. *
  28297. * var object = { 'user': 'fred' };
  28298. * var getter = _.constant(object);
  28299. * getter() === object;
  28300. * // => true
  28301. */
  28302. function constant(value) {
  28303. return function() {
  28304. return value;
  28305. };
  28306. }
  28307. /**
  28308. * This method returns the first argument provided to it.
  28309. *
  28310. * @static
  28311. * @memberOf _
  28312. * @category Utility
  28313. * @param {*} value Any value.
  28314. * @returns {*} Returns `value`.
  28315. * @example
  28316. *
  28317. * var object = { 'user': 'fred' };
  28318. * _.identity(object) === object;
  28319. * // => true
  28320. */
  28321. function identity(value) {
  28322. return value;
  28323. }
  28324. /**
  28325. * Creates a function which performs a deep comparison between a given object
  28326. * and `source`, returning `true` if the given object has equivalent property
  28327. * values, else `false`.
  28328. *
  28329. * @static
  28330. * @memberOf _
  28331. * @category Utility
  28332. * @param {Object} source The object of property values to match.
  28333. * @returns {Function} Returns the new function.
  28334. * @example
  28335. *
  28336. * var users = [
  28337. * { 'user': 'fred', 'age': 40 },
  28338. * { 'user': 'barney', 'age': 36 }
  28339. * ];
  28340. *
  28341. * var matchesAge = _.matches({ 'age': 36 });
  28342. *
  28343. * _.filter(users, matchesAge);
  28344. * // => [{ 'user': 'barney', 'age': 36 }]
  28345. *
  28346. * _.find(users, matchesAge);
  28347. * // => { 'user': 'barney', 'age': 36 }
  28348. */
  28349. function matches(source) {
  28350. return baseMatches(baseClone(source, true));
  28351. }
  28352. /**
  28353. * Adds all own enumerable function properties of a source object to the
  28354. * destination object. If `object` is a function then methods are added to
  28355. * its prototype as well.
  28356. *
  28357. * @static
  28358. * @memberOf _
  28359. * @category Utility
  28360. * @param {Function|Object} [object=this] object The destination object.
  28361. * @param {Object} source The object of functions to add.
  28362. * @param {Object} [options] The options object.
  28363. * @param {boolean} [options.chain=true] Specify whether the functions added
  28364. * are chainable.
  28365. * @returns {Function|Object} Returns `object`.
  28366. * @example
  28367. *
  28368. * function vowels(string) {
  28369. * return _.filter(string, function(v) {
  28370. * return /[aeiou]/i.test(v);
  28371. * });
  28372. * }
  28373. *
  28374. * _.mixin({ 'vowels': vowels });
  28375. * _.vowels('fred');
  28376. * // => ['e']
  28377. *
  28378. * _('fred').vowels().value();
  28379. * // => ['e']
  28380. *
  28381. * _.mixin({ 'vowels': vowels }, { 'chain': false });
  28382. * _('fred').vowels();
  28383. * // => ['e']
  28384. */
  28385. function mixin(object, source, options) {
  28386. if (options == null) {
  28387. var isObj = isObject(source),
  28388. props = isObj && keys(source),
  28389. methodNames = props && props.length && baseFunctions(source, props);
  28390. if (!(methodNames ? methodNames.length : isObj)) {
  28391. methodNames = false;
  28392. options = source;
  28393. source = object;
  28394. object = this;
  28395. }
  28396. }
  28397. if (!methodNames) {
  28398. methodNames = baseFunctions(source, keys(source));
  28399. }
  28400. var chain = true,
  28401. index = -1,
  28402. isFunc = isFunction(object),
  28403. length = methodNames.length;
  28404. if (options === false) {
  28405. chain = false;
  28406. } else if (isObject(options) && 'chain' in options) {
  28407. chain = options.chain;
  28408. }
  28409. while (++index < length) {
  28410. var methodName = methodNames[index],
  28411. func = source[methodName];
  28412. object[methodName] = func;
  28413. if (isFunc) {
  28414. object.prototype[methodName] = (function(func) {
  28415. return function() {
  28416. var chainAll = this.__chain__;
  28417. if (chain || chainAll) {
  28418. var result = object(this.__wrapped__);
  28419. (result.__actions__ = arrayCopy(this.__actions__)).push({ 'func': func, 'args': arguments, 'thisArg': object });
  28420. result.__chain__ = chainAll;
  28421. return result;
  28422. }
  28423. var args = [this.value()];
  28424. push.apply(args, arguments);
  28425. return func.apply(object, args);
  28426. };
  28427. }(func));
  28428. }
  28429. }
  28430. return object;
  28431. }
  28432. /**
  28433. * Reverts the `_` variable to its previous value and returns a reference to
  28434. * the `lodash` function.
  28435. *
  28436. * @static
  28437. * @memberOf _
  28438. * @category Utility
  28439. * @returns {Function} Returns the `lodash` function.
  28440. * @example
  28441. *
  28442. * var lodash = _.noConflict();
  28443. */
  28444. function noConflict() {
  28445. context._ = oldDash;
  28446. return this;
  28447. }
  28448. /**
  28449. * A no-operation function.
  28450. *
  28451. * @static
  28452. * @memberOf _
  28453. * @category Utility
  28454. * @example
  28455. *
  28456. * var object = { 'user': 'fred' };
  28457. * _.noop(object) === undefined;
  28458. * // => true
  28459. */
  28460. function noop() {
  28461. // No operation performed.
  28462. }
  28463. /**
  28464. * Creates a function which returns the property value of `key` on a given object.
  28465. *
  28466. * @static
  28467. * @memberOf _
  28468. * @category Utility
  28469. * @param {string} key The key of the property to get.
  28470. * @returns {Function} Returns the new function.
  28471. * @example
  28472. *
  28473. * var users = [
  28474. * { 'user': 'fred' },
  28475. * { 'user': 'barney' }
  28476. * ];
  28477. *
  28478. * var getName = _.property('user');
  28479. *
  28480. * _.map(users, getName);
  28481. * // => ['fred', barney']
  28482. *
  28483. * _.pluck(_.sortBy(users, getName), 'user');
  28484. * // => ['barney', 'fred']
  28485. */
  28486. function property(key) {
  28487. return baseProperty(key + '');
  28488. }
  28489. /**
  28490. * The inverse of `_.property`; this method creates a function which returns
  28491. * the property value of a given key on `object`.
  28492. *
  28493. * @static
  28494. * @memberOf _
  28495. * @category Utility
  28496. * @param {Object} object The object to inspect.
  28497. * @returns {Function} Returns the new function.
  28498. * @example
  28499. *
  28500. * var object = { 'user': 'fred', 'age': 40, 'active': true };
  28501. * _.map(['active', 'user'], _.propertyOf(object));
  28502. * // => [true, 'fred']
  28503. *
  28504. * var object = { 'a': 3, 'b': 1, 'c': 2 };
  28505. * _.sortBy(['a', 'b', 'c'], _.propertyOf(object));
  28506. * // => ['b', 'c', 'a']
  28507. */
  28508. function propertyOf(object) {
  28509. return function(key) {
  28510. return object == null ? undefined : object[key];
  28511. };
  28512. }
  28513. /**
  28514. * Creates an array of numbers (positive and/or negative) progressing from
  28515. * `start` up to, but not including, `end`. If `start` is less than `end` a
  28516. * zero-length range is created unless a negative `step` is specified.
  28517. *
  28518. * @static
  28519. * @memberOf _
  28520. * @category Utility
  28521. * @param {number} [start=0] The start of the range.
  28522. * @param {number} end The end of the range.
  28523. * @param {number} [step=1] The value to increment or decrement by.
  28524. * @returns {Array} Returns the new array of numbers.
  28525. * @example
  28526. *
  28527. * _.range(4);
  28528. * // => [0, 1, 2, 3]
  28529. *
  28530. * _.range(1, 5);
  28531. * // => [1, 2, 3, 4]
  28532. *
  28533. * _.range(0, 20, 5);
  28534. * // => [0, 5, 10, 15]
  28535. *
  28536. * _.range(0, -4, -1);
  28537. * // => [0, -1, -2, -3]
  28538. *
  28539. * _.range(1, 4, 0);
  28540. * // => [1, 1, 1]
  28541. *
  28542. * _.range(0);
  28543. * // => []
  28544. */
  28545. function range(start, end, step) {
  28546. if (step && isIterateeCall(start, end, step)) {
  28547. end = step = null;
  28548. }
  28549. start = +start || 0;
  28550. step = step == null ? 1 : (+step || 0);
  28551. if (end == null) {
  28552. end = start;
  28553. start = 0;
  28554. } else {
  28555. end = +end || 0;
  28556. }
  28557. // Use `Array(length)` so engines like Chakra and V8 avoid slower modes.
  28558. // See https://youtu.be/XAqIpGU8ZZk#t=17m25s for more details.
  28559. var index = -1,
  28560. length = nativeMax(ceil((end - start) / (step || 1)), 0),
  28561. result = Array(length);
  28562. while (++index < length) {
  28563. result[index] = start;
  28564. start += step;
  28565. }
  28566. return result;
  28567. }
  28568. /**
  28569. * Invokes the iteratee function `n` times, returning an array of the results
  28570. * of each invocation. The `iteratee` is bound to `thisArg` and invoked with
  28571. * one argument; (index).
  28572. *
  28573. * @static
  28574. * @memberOf _
  28575. * @category Utility
  28576. * @param {number} n The number of times to invoke `iteratee`.
  28577. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  28578. * @param {*} [thisArg] The `this` binding of `iteratee`.
  28579. * @returns {Array} Returns the array of results.
  28580. * @example
  28581. *
  28582. * var diceRolls = _.times(3, _.partial(_.random, 1, 6, false));
  28583. * // => [3, 6, 4]
  28584. *
  28585. * _.times(3, function(n) { mage.castSpell(n); });
  28586. * // => invokes `mage.castSpell(n)` three times with `n` of `0`, `1`, and `2` respectively
  28587. *
  28588. * _.times(3, function(n) { this.cast(n); }, mage);
  28589. * // => also invokes `mage.castSpell(n)` three times
  28590. */
  28591. function times(n, iteratee, thisArg) {
  28592. n = +n;
  28593. // Exit early to avoid a JSC JIT bug in Safari 8
  28594. // where `Array(0)` is treated as `Array(1)`.
  28595. if (n < 1 || !nativeIsFinite(n)) {
  28596. return [];
  28597. }
  28598. var index = -1,
  28599. result = Array(nativeMin(n, MAX_ARRAY_LENGTH));
  28600. iteratee = bindCallback(iteratee, thisArg, 1);
  28601. while (++index < n) {
  28602. if (index < MAX_ARRAY_LENGTH) {
  28603. result[index] = iteratee(index);
  28604. } else {
  28605. iteratee(index);
  28606. }
  28607. }
  28608. return result;
  28609. }
  28610. /**
  28611. * Generates a unique ID. If `prefix` is provided the ID is appended to it.
  28612. *
  28613. * @static
  28614. * @memberOf _
  28615. * @category Utility
  28616. * @param {string} [prefix] The value to prefix the ID with.
  28617. * @returns {string} Returns the unique ID.
  28618. * @example
  28619. *
  28620. * _.uniqueId('contact_');
  28621. * // => 'contact_104'
  28622. *
  28623. * _.uniqueId();
  28624. * // => '105'
  28625. */
  28626. function uniqueId(prefix) {
  28627. var id = ++idCounter;
  28628. return baseToString(prefix) + id;
  28629. }
  28630. /*------------------------------------------------------------------------*/
  28631. // Ensure `new LodashWrapper` is an instance of `lodash`.
  28632. LodashWrapper.prototype = lodash.prototype;
  28633. // Add functions to the `Map` cache.
  28634. MapCache.prototype['delete'] = mapDelete;
  28635. MapCache.prototype.get = mapGet;
  28636. MapCache.prototype.has = mapHas;
  28637. MapCache.prototype.set = mapSet;
  28638. // Add functions to the `Set` cache.
  28639. SetCache.prototype.push = cachePush;
  28640. // Assign cache to `_.memoize`.
  28641. memoize.Cache = MapCache;
  28642. // Add functions that return wrapped values when chaining.
  28643. lodash.after = after;
  28644. lodash.ary = ary;
  28645. lodash.assign = assign;
  28646. lodash.at = at;
  28647. lodash.before = before;
  28648. lodash.bind = bind;
  28649. lodash.bindAll = bindAll;
  28650. lodash.bindKey = bindKey;
  28651. lodash.callback = callback;
  28652. lodash.chain = chain;
  28653. lodash.chunk = chunk;
  28654. lodash.compact = compact;
  28655. lodash.constant = constant;
  28656. lodash.countBy = countBy;
  28657. lodash.create = create;
  28658. lodash.curry = curry;
  28659. lodash.curryRight = curryRight;
  28660. lodash.debounce = debounce;
  28661. lodash.defaults = defaults;
  28662. lodash.defer = defer;
  28663. lodash.delay = delay;
  28664. lodash.difference = difference;
  28665. lodash.drop = drop;
  28666. lodash.dropRight = dropRight;
  28667. lodash.dropRightWhile = dropRightWhile;
  28668. lodash.dropWhile = dropWhile;
  28669. lodash.filter = filter;
  28670. lodash.flatten = flatten;
  28671. lodash.flattenDeep = flattenDeep;
  28672. lodash.flow = flow;
  28673. lodash.flowRight = flowRight;
  28674. lodash.forEach = forEach;
  28675. lodash.forEachRight = forEachRight;
  28676. lodash.forIn = forIn;
  28677. lodash.forInRight = forInRight;
  28678. lodash.forOwn = forOwn;
  28679. lodash.forOwnRight = forOwnRight;
  28680. lodash.functions = functions;
  28681. lodash.groupBy = groupBy;
  28682. lodash.indexBy = indexBy;
  28683. lodash.initial = initial;
  28684. lodash.intersection = intersection;
  28685. lodash.invert = invert;
  28686. lodash.invoke = invoke;
  28687. lodash.keys = keys;
  28688. lodash.keysIn = keysIn;
  28689. lodash.map = map;
  28690. lodash.mapValues = mapValues;
  28691. lodash.matches = matches;
  28692. lodash.memoize = memoize;
  28693. lodash.merge = merge;
  28694. lodash.mixin = mixin;
  28695. lodash.negate = negate;
  28696. lodash.omit = omit;
  28697. lodash.once = once;
  28698. lodash.pairs = pairs;
  28699. lodash.partial = partial;
  28700. lodash.partialRight = partialRight;
  28701. lodash.partition = partition;
  28702. lodash.pick = pick;
  28703. lodash.pluck = pluck;
  28704. lodash.property = property;
  28705. lodash.propertyOf = propertyOf;
  28706. lodash.pull = pull;
  28707. lodash.pullAt = pullAt;
  28708. lodash.range = range;
  28709. lodash.rearg = rearg;
  28710. lodash.reject = reject;
  28711. lodash.remove = remove;
  28712. lodash.rest = rest;
  28713. lodash.shuffle = shuffle;
  28714. lodash.slice = slice;
  28715. lodash.sortBy = sortBy;
  28716. lodash.sortByAll = sortByAll;
  28717. lodash.take = take;
  28718. lodash.takeRight = takeRight;
  28719. lodash.takeRightWhile = takeRightWhile;
  28720. lodash.takeWhile = takeWhile;
  28721. lodash.tap = tap;
  28722. lodash.throttle = throttle;
  28723. lodash.thru = thru;
  28724. lodash.times = times;
  28725. lodash.toArray = toArray;
  28726. lodash.toPlainObject = toPlainObject;
  28727. lodash.transform = transform;
  28728. lodash.union = union;
  28729. lodash.uniq = uniq;
  28730. lodash.unzip = unzip;
  28731. lodash.values = values;
  28732. lodash.valuesIn = valuesIn;
  28733. lodash.where = where;
  28734. lodash.without = without;
  28735. lodash.wrap = wrap;
  28736. lodash.xor = xor;
  28737. lodash.zip = zip;
  28738. lodash.zipObject = zipObject;
  28739. // Add aliases.
  28740. lodash.backflow = flowRight;
  28741. lodash.collect = map;
  28742. lodash.compose = flowRight;
  28743. lodash.each = forEach;
  28744. lodash.eachRight = forEachRight;
  28745. lodash.extend = assign;
  28746. lodash.iteratee = callback;
  28747. lodash.methods = functions;
  28748. lodash.object = zipObject;
  28749. lodash.select = filter;
  28750. lodash.tail = rest;
  28751. lodash.unique = uniq;
  28752. // Add functions to `lodash.prototype`.
  28753. mixin(lodash, lodash);
  28754. /*------------------------------------------------------------------------*/
  28755. // Add functions that return unwrapped values when chaining.
  28756. lodash.attempt = attempt;
  28757. lodash.camelCase = camelCase;
  28758. lodash.capitalize = capitalize;
  28759. lodash.clone = clone;
  28760. lodash.cloneDeep = cloneDeep;
  28761. lodash.deburr = deburr;
  28762. lodash.endsWith = endsWith;
  28763. lodash.escape = escape;
  28764. lodash.escapeRegExp = escapeRegExp;
  28765. lodash.every = every;
  28766. lodash.find = find;
  28767. lodash.findIndex = findIndex;
  28768. lodash.findKey = findKey;
  28769. lodash.findLast = findLast;
  28770. lodash.findLastIndex = findLastIndex;
  28771. lodash.findLastKey = findLastKey;
  28772. lodash.findWhere = findWhere;
  28773. lodash.first = first;
  28774. lodash.has = has;
  28775. lodash.identity = identity;
  28776. lodash.includes = includes;
  28777. lodash.indexOf = indexOf;
  28778. lodash.isArguments = isArguments;
  28779. lodash.isArray = isArray;
  28780. lodash.isBoolean = isBoolean;
  28781. lodash.isDate = isDate;
  28782. lodash.isElement = isElement;
  28783. lodash.isEmpty = isEmpty;
  28784. lodash.isEqual = isEqual;
  28785. lodash.isError = isError;
  28786. lodash.isFinite = isFinite;
  28787. lodash.isFunction = isFunction;
  28788. lodash.isMatch = isMatch;
  28789. lodash.isNaN = isNaN;
  28790. lodash.isNative = isNative;
  28791. lodash.isNull = isNull;
  28792. lodash.isNumber = isNumber;
  28793. lodash.isObject = isObject;
  28794. lodash.isPlainObject = isPlainObject;
  28795. lodash.isRegExp = isRegExp;
  28796. lodash.isString = isString;
  28797. lodash.isTypedArray = isTypedArray;
  28798. lodash.isUndefined = isUndefined;
  28799. lodash.kebabCase = kebabCase;
  28800. lodash.last = last;
  28801. lodash.lastIndexOf = lastIndexOf;
  28802. lodash.max = max;
  28803. lodash.min = min;
  28804. lodash.noConflict = noConflict;
  28805. lodash.noop = noop;
  28806. lodash.now = now;
  28807. lodash.pad = pad;
  28808. lodash.padLeft = padLeft;
  28809. lodash.padRight = padRight;
  28810. lodash.parseInt = parseInt;
  28811. lodash.random = random;
  28812. lodash.reduce = reduce;
  28813. lodash.reduceRight = reduceRight;
  28814. lodash.repeat = repeat;
  28815. lodash.result = result;
  28816. lodash.runInContext = runInContext;
  28817. lodash.size = size;
  28818. lodash.snakeCase = snakeCase;
  28819. lodash.some = some;
  28820. lodash.sortedIndex = sortedIndex;
  28821. lodash.sortedLastIndex = sortedLastIndex;
  28822. lodash.startCase = startCase;
  28823. lodash.startsWith = startsWith;
  28824. lodash.template = template;
  28825. lodash.trim = trim;
  28826. lodash.trimLeft = trimLeft;
  28827. lodash.trimRight = trimRight;
  28828. lodash.trunc = trunc;
  28829. lodash.unescape = unescape;
  28830. lodash.uniqueId = uniqueId;
  28831. lodash.words = words;
  28832. // Add aliases.
  28833. lodash.all = every;
  28834. lodash.any = some;
  28835. lodash.contains = includes;
  28836. lodash.detect = find;
  28837. lodash.foldl = reduce;
  28838. lodash.foldr = reduceRight;
  28839. lodash.head = first;
  28840. lodash.include = includes;
  28841. lodash.inject = reduce;
  28842. mixin(lodash, (function() {
  28843. var source = {};
  28844. baseForOwn(lodash, function(func, methodName) {
  28845. if (!lodash.prototype[methodName]) {
  28846. source[methodName] = func;
  28847. }
  28848. });
  28849. return source;
  28850. }()), false);
  28851. /*------------------------------------------------------------------------*/
  28852. // Add functions capable of returning wrapped and unwrapped values when chaining.
  28853. lodash.sample = sample;
  28854. lodash.prototype.sample = function(n) {
  28855. if (!this.__chain__ && n == null) {
  28856. return sample(this.value());
  28857. }
  28858. return this.thru(function(value) {
  28859. return sample(value, n);
  28860. });
  28861. };
  28862. /*------------------------------------------------------------------------*/
  28863. /**
  28864. * The semantic version number.
  28865. *
  28866. * @static
  28867. * @memberOf _
  28868. * @type string
  28869. */
  28870. lodash.VERSION = VERSION;
  28871. // Assign default placeholders.
  28872. arrayEach(['bind', 'bindKey', 'curry', 'curryRight', 'partial', 'partialRight'], function(methodName) {
  28873. lodash[methodName].placeholder = lodash;
  28874. });
  28875. // Add `LazyWrapper` methods that accept an `iteratee` value.
  28876. arrayEach(['filter', 'map', 'takeWhile'], function(methodName, index) {
  28877. var isFilter = index == LAZY_FILTER_FLAG;
  28878. LazyWrapper.prototype[methodName] = function(iteratee, thisArg) {
  28879. var result = this.clone(),
  28880. filtered = result.filtered,
  28881. iteratees = result.iteratees || (result.iteratees = []);
  28882. result.filtered = filtered || isFilter || (index == LAZY_WHILE_FLAG && result.dir < 0);
  28883. iteratees.push({ 'iteratee': getCallback(iteratee, thisArg, 3), 'type': index });
  28884. return result;
  28885. };
  28886. });
  28887. // Add `LazyWrapper` methods for `_.drop` and `_.take` variants.
  28888. arrayEach(['drop', 'take'], function(methodName, index) {
  28889. var countName = methodName + 'Count',
  28890. whileName = methodName + 'While';
  28891. LazyWrapper.prototype[methodName] = function(n) {
  28892. n = n == null ? 1 : nativeMax(+n || 0, 0);
  28893. var result = this.clone();
  28894. if (result.filtered) {
  28895. var value = result[countName];
  28896. result[countName] = index ? nativeMin(value, n) : (value + n);
  28897. } else {
  28898. var views = result.views || (result.views = []);
  28899. views.push({ 'size': n, 'type': methodName + (result.dir < 0 ? 'Right' : '') });
  28900. }
  28901. return result;
  28902. };
  28903. LazyWrapper.prototype[methodName + 'Right'] = function(n) {
  28904. return this.reverse()[methodName](n).reverse();
  28905. };
  28906. LazyWrapper.prototype[methodName + 'RightWhile'] = function(predicate, thisArg) {
  28907. return this.reverse()[whileName](predicate, thisArg).reverse();
  28908. };
  28909. });
  28910. // Add `LazyWrapper` methods for `_.first` and `_.last`.
  28911. arrayEach(['first', 'last'], function(methodName, index) {
  28912. var takeName = 'take' + (index ? 'Right': '');
  28913. LazyWrapper.prototype[methodName] = function() {
  28914. return this[takeName](1).value()[0];
  28915. };
  28916. });
  28917. // Add `LazyWrapper` methods for `_.initial` and `_.rest`.
  28918. arrayEach(['initial', 'rest'], function(methodName, index) {
  28919. var dropName = 'drop' + (index ? '' : 'Right');
  28920. LazyWrapper.prototype[methodName] = function() {
  28921. return this[dropName](1);
  28922. };
  28923. });
  28924. // Add `LazyWrapper` methods for `_.pluck` and `_.where`.
  28925. arrayEach(['pluck', 'where'], function(methodName, index) {
  28926. var operationName = index ? 'filter' : 'map',
  28927. createCallback = index ? baseMatches : baseProperty;
  28928. LazyWrapper.prototype[methodName] = function(value) {
  28929. return this[operationName](createCallback(index ? value : (value + '')));
  28930. };
  28931. });
  28932. LazyWrapper.prototype.dropWhile = function(iteratee, thisArg) {
  28933. var done,
  28934. lastIndex,
  28935. isRight = this.dir < 0;
  28936. iteratee = getCallback(iteratee, thisArg, 3);
  28937. return this.filter(function(value, index, array) {
  28938. done = done && (isRight ? index < lastIndex : index > lastIndex);
  28939. lastIndex = index;
  28940. return done || (done = !iteratee(value, index, array));
  28941. });
  28942. };
  28943. LazyWrapper.prototype.reject = function(iteratee, thisArg) {
  28944. iteratee = getCallback(iteratee, thisArg, 3);
  28945. return this.filter(function(value, index, array) {
  28946. return !iteratee(value, index, array);
  28947. });
  28948. };
  28949. LazyWrapper.prototype.slice = function(start, end) {
  28950. start = start == null ? 0 : (+start || 0);
  28951. var result = start < 0 ? this.takeRight(-start) : this.drop(start);
  28952. if (typeof end != 'undefined') {
  28953. end = (+end || 0);
  28954. result = end < 0 ? result.dropRight(-end) : result.take(end - start);
  28955. }
  28956. return result;
  28957. };
  28958. // Add `LazyWrapper` methods to `lodash.prototype`.
  28959. baseForOwn(LazyWrapper.prototype, function(func, methodName) {
  28960. var lodashFunc = lodash[methodName],
  28961. retUnwrapped = /^(?:first|last)$/.test(methodName);
  28962. lodash.prototype[methodName] = function() {
  28963. var value = this.__wrapped__,
  28964. args = arguments,
  28965. chainAll = this.__chain__,
  28966. isHybrid = !!this.__actions__.length,
  28967. isLazy = value instanceof LazyWrapper,
  28968. onlyLazy = isLazy && !isHybrid;
  28969. if (retUnwrapped && !chainAll) {
  28970. return onlyLazy
  28971. ? func.call(value)
  28972. : lodashFunc.call(lodash, this.value());
  28973. }
  28974. var interceptor = function(value) {
  28975. var otherArgs = [value];
  28976. push.apply(otherArgs, args);
  28977. return lodashFunc.apply(lodash, otherArgs);
  28978. };
  28979. if (isLazy || isArray(value)) {
  28980. var wrapper = onlyLazy ? value : new LazyWrapper(this),
  28981. result = func.apply(wrapper, args);
  28982. if (!retUnwrapped && (isHybrid || result.actions)) {
  28983. var actions = result.actions || (result.actions = []);
  28984. actions.push({ 'func': thru, 'args': [interceptor], 'thisArg': lodash });
  28985. }
  28986. return new LodashWrapper(result, chainAll);
  28987. }
  28988. return this.thru(interceptor);
  28989. };
  28990. });
  28991. // Add `Array.prototype` functions to `lodash.prototype`.
  28992. arrayEach(['concat', 'join', 'pop', 'push', 'shift', 'sort', 'splice', 'unshift'], function(methodName) {
  28993. var func = arrayProto[methodName],
  28994. chainName = /^(?:push|sort|unshift)$/.test(methodName) ? 'tap' : 'thru',
  28995. retUnwrapped = /^(?:join|pop|shift)$/.test(methodName);
  28996. lodash.prototype[methodName] = function() {
  28997. var args = arguments;
  28998. if (retUnwrapped && !this.__chain__) {
  28999. return func.apply(this.value(), args);
  29000. }
  29001. return this[chainName](function(value) {
  29002. return func.apply(value, args);
  29003. });
  29004. };
  29005. });
  29006. // Add functions to the lazy wrapper.
  29007. LazyWrapper.prototype.clone = lazyClone;
  29008. LazyWrapper.prototype.reverse = lazyReverse;
  29009. LazyWrapper.prototype.value = lazyValue;
  29010. // Add chaining functions to the lodash wrapper.
  29011. lodash.prototype.chain = wrapperChain;
  29012. lodash.prototype.reverse = wrapperReverse;
  29013. lodash.prototype.toString = wrapperToString;
  29014. lodash.prototype.toJSON = lodash.prototype.valueOf = lodash.prototype.value = wrapperValue;
  29015. // Add function aliases to the lodash wrapper.
  29016. lodash.prototype.collect = lodash.prototype.map;
  29017. lodash.prototype.head = lodash.prototype.first;
  29018. lodash.prototype.select = lodash.prototype.filter;
  29019. lodash.prototype.tail = lodash.prototype.rest;
  29020. return lodash;
  29021. }
  29022. /*--------------------------------------------------------------------------*/
  29023. // Export lodash.
  29024. var _ = runInContext();
  29025. // Some AMD build optimizers like r.js check for condition patterns like the following:
  29026. if (true) {
  29027. // Expose lodash to the global object when an AMD loader is present to avoid
  29028. // errors in cases where lodash is loaded by a script tag and not intended
  29029. // as an AMD module. See http://requirejs.org/docs/errors.html#mismatch for
  29030. // more details.
  29031. root._ = _;
  29032. // Define as an anonymous module so, through path mapping, it can be
  29033. // referenced as the "underscore" module.
  29034. !(__WEBPACK_AMD_DEFINE_RESULT__ = function() {
  29035. return _;
  29036. }.call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  29037. }
  29038. // Check for `exports` after `define` in case a build optimizer adds an `exports` object.
  29039. else if (freeExports && freeModule) {
  29040. // Export for Node.js or RingoJS.
  29041. if (moduleExports) {
  29042. (freeModule.exports = _)._ = _;
  29043. }
  29044. // Export for Narwhal or Rhino -require.
  29045. else {
  29046. freeExports._ = _;
  29047. }
  29048. }
  29049. else {
  29050. // Export for a browser or Rhino.
  29051. root._ = _;
  29052. }
  29053. }.call(this));
  29054. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(15)(module), (function() { return this; }())))
  29055. /***/ },
  29056. /* 12 */
  29057. /***/ function(module, exports, __webpack_require__) {
  29058. /* WEBPACK VAR INJECTION */(function(Buffer) {// Generated by CoffeeScript 1.7.1
  29059. /*
  29060. PDFReference - represents a reference to another object in the PDF object heirarchy
  29061. By Devon Govett
  29062. */
  29063. (function() {
  29064. var PDFObject, PDFReference, zlib,
  29065. __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
  29066. zlib = __webpack_require__(45);
  29067. PDFReference = (function() {
  29068. function PDFReference(document, id, data) {
  29069. this.document = document;
  29070. this.id = id;
  29071. this.data = data != null ? data : {};
  29072. this.finalize = __bind(this.finalize, this);
  29073. this.gen = 0;
  29074. this.deflate = null;
  29075. this.compress = this.document.compress && !this.data.Filter;
  29076. this.uncompressedLength = 0;
  29077. this.chunks = [];
  29078. }
  29079. PDFReference.prototype.initDeflate = function() {
  29080. this.data.Filter = 'FlateDecode';
  29081. this.deflate = zlib.createDeflate();
  29082. this.deflate.on('data', (function(_this) {
  29083. return function(chunk) {
  29084. _this.chunks.push(chunk);
  29085. return _this.data.Length += chunk.length;
  29086. };
  29087. })(this));
  29088. return this.deflate.on('end', this.finalize);
  29089. };
  29090. PDFReference.prototype.write = function(chunk) {
  29091. var _base;
  29092. if (!Buffer.isBuffer(chunk)) {
  29093. chunk = new Buffer(chunk + '\n', 'binary');
  29094. }
  29095. this.uncompressedLength += chunk.length;
  29096. if ((_base = this.data).Length == null) {
  29097. _base.Length = 0;
  29098. }
  29099. if (this.compress) {
  29100. if (!this.deflate) {
  29101. this.initDeflate();
  29102. }
  29103. return this.deflate.write(chunk);
  29104. } else {
  29105. this.chunks.push(chunk);
  29106. return this.data.Length += chunk.length;
  29107. }
  29108. };
  29109. PDFReference.prototype.end = function(chunk) {
  29110. if (typeof chunk === 'string' || Buffer.isBuffer(chunk)) {
  29111. this.write(chunk);
  29112. }
  29113. if (this.deflate) {
  29114. return this.deflate.end();
  29115. } else {
  29116. return this.finalize();
  29117. }
  29118. };
  29119. PDFReference.prototype.finalize = function() {
  29120. var chunk, _i, _len, _ref;
  29121. this.offset = this.document._offset;
  29122. this.document._write("" + this.id + " " + this.gen + " obj");
  29123. this.document._write(PDFObject.convert(this.data));
  29124. if (this.chunks.length) {
  29125. this.document._write('stream');
  29126. _ref = this.chunks;
  29127. for (_i = 0, _len = _ref.length; _i < _len; _i++) {
  29128. chunk = _ref[_i];
  29129. this.document._write(chunk);
  29130. }
  29131. this.chunks.length = 0;
  29132. this.document._write('\nendstream');
  29133. }
  29134. this.document._write('endobj');
  29135. return this.document._refEnd(this);
  29136. };
  29137. PDFReference.prototype.toString = function() {
  29138. return "" + this.id + " " + this.gen + " R";
  29139. };
  29140. return PDFReference;
  29141. })();
  29142. module.exports = PDFReference;
  29143. PDFObject = __webpack_require__(32);
  29144. }).call(this);
  29145. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4).Buffer))
  29146. /***/ },
  29147. /* 13 */
  29148. /***/ function(module, exports, __webpack_require__) {
  29149. module.exports = function() { throw new Error("define cannot be used indirect"); };
  29150. /***/ },
  29151. /* 14 */
  29152. /***/ function(module, exports, __webpack_require__) {
  29153. /* WEBPACK VAR INJECTION */(function(__webpack_amd_options__) {module.exports = __webpack_amd_options__;
  29154. /* WEBPACK VAR INJECTION */}.call(exports, {}))
  29155. /***/ },
  29156. /* 15 */
  29157. /***/ function(module, exports, __webpack_require__) {
  29158. module.exports = function(module) {
  29159. if(!module.webpackPolyfill) {
  29160. module.deprecate = function() {};
  29161. module.paths = [];
  29162. // module.parent = undefined by default
  29163. module.children = [];
  29164. module.webpackPolyfill = 1;
  29165. }
  29166. return module;
  29167. }
  29168. /***/ },
  29169. /* 16 */
  29170. /***/ function(module, exports, __webpack_require__) {
  29171. /* jslint node: true */
  29172. 'use strict';
  29173. var _ = __webpack_require__(11);
  29174. function FontWrapper(pdfkitDoc, path, fontName){
  29175. this.MAX_CHAR_TYPES = 92;
  29176. this.pdfkitDoc = pdfkitDoc;
  29177. this.path = path;
  29178. this.pdfFonts = [];
  29179. this.charCatalogue = [];
  29180. this.name = fontName;
  29181. this.__defineGetter__('ascender', function(){
  29182. var font = this.getFont(0);
  29183. return font.ascender;
  29184. });
  29185. this.__defineGetter__('decender', function(){
  29186. var font = this.getFont(0);
  29187. return font.decender;
  29188. });
  29189. }
  29190. // private
  29191. FontWrapper.prototype.getFont = function(index){
  29192. if(!this.pdfFonts[index]){
  29193. var pseudoName = this.name + index;
  29194. if(this.postscriptName){
  29195. delete this.pdfkitDoc._fontFamilies[this.postscriptName];
  29196. }
  29197. this.pdfFonts[index] = this.pdfkitDoc.font(this.path, pseudoName)._font;
  29198. if(!this.postscriptName){
  29199. this.postscriptName = this.pdfFonts[index].name;
  29200. }
  29201. }
  29202. return this.pdfFonts[index];
  29203. };
  29204. // public
  29205. FontWrapper.prototype.widthOfString = function(){
  29206. var font = this.getFont(0);
  29207. return font.widthOfString.apply(font, arguments);
  29208. };
  29209. FontWrapper.prototype.lineHeight = function(){
  29210. var font = this.getFont(0);
  29211. return font.lineHeight.apply(font, arguments);
  29212. };
  29213. FontWrapper.prototype.ref = function(){
  29214. var font = this.getFont(0);
  29215. return font.ref.apply(font, arguments);
  29216. };
  29217. var toCharCode = function(char){
  29218. return char.charCodeAt(0);
  29219. };
  29220. FontWrapper.prototype.encode = function(text){
  29221. var self = this;
  29222. var charTypesInInline = _.chain(text.split('')).map(toCharCode).uniq().value();
  29223. if (charTypesInInline.length > self.MAX_CHAR_TYPES) {
  29224. throw new Error('Inline has more than '+ self.MAX_CHAR_TYPES + ': ' + text + ' different character types and therefore cannot be properly embedded into pdf.');
  29225. }
  29226. var characterFitInFontWithIndex = function (charCatalogue) {
  29227. return _.uniq(charCatalogue.concat(charTypesInInline)).length <= self.MAX_CHAR_TYPES;
  29228. };
  29229. var index = _.findIndex(self.charCatalogue, characterFitInFontWithIndex);
  29230. if(index < 0){
  29231. index = self.charCatalogue.length;
  29232. self.charCatalogue[index] = [];
  29233. }
  29234. var font = this.getFont(index);
  29235. font.use(text);
  29236. _.each(charTypesInInline, function(charCode){
  29237. if(!_.includes(self.charCatalogue[index], charCode)){
  29238. self.charCatalogue[index].push(charCode);
  29239. }
  29240. });
  29241. var encodedText = _.map(font.encode(text), function (char) {
  29242. return char.charCodeAt(0).toString(16);
  29243. }).join('');
  29244. return {
  29245. encodedText: encodedText,
  29246. fontId: font.id
  29247. };
  29248. };
  29249. module.exports = FontWrapper;
  29250. /***/ },
  29251. /* 17 */
  29252. /***/ function(module, exports, __webpack_require__) {
  29253. /* WEBPACK VAR INJECTION */(function(Buffer) {// Generated by CoffeeScript 1.7.1
  29254. /*
  29255. PDFImage - embeds images in PDF documents
  29256. By Devon Govett
  29257. */
  29258. (function() {
  29259. var Data, JPEG, PDFImage, PNG, fs;
  29260. fs = __webpack_require__(10);
  29261. Data = __webpack_require__(34);
  29262. JPEG = __webpack_require__(35);
  29263. PNG = __webpack_require__(36);
  29264. PDFImage = (function() {
  29265. function PDFImage() {}
  29266. PDFImage.open = function(src, label) {
  29267. var data, match;
  29268. if (Buffer.isBuffer(src)) {
  29269. data = src;
  29270. } else {
  29271. if (match = /^data:.+;base64,(.*)$/.exec(src)) {
  29272. data = new Buffer(match[1], 'base64');
  29273. } else {
  29274. data = fs.readFileSync(src);
  29275. if (!data) {
  29276. return;
  29277. }
  29278. }
  29279. }
  29280. if (data[0] === 0xff && data[1] === 0xd8) {
  29281. return new JPEG(data, label);
  29282. } else if (data[0] === 0x89 && data.toString('ascii', 1, 4) === 'PNG') {
  29283. return new PNG(data, label);
  29284. } else {
  29285. throw new Error('Unknown image format.');
  29286. }
  29287. };
  29288. return PDFImage;
  29289. })();
  29290. module.exports = PDFImage;
  29291. }).call(this);
  29292. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4).Buffer))
  29293. /***/ },
  29294. /* 18 */
  29295. /***/ function(module, exports, __webpack_require__) {
  29296. /* jslint node: true */
  29297. 'use strict';
  29298. /**
  29299. * Creates an instance of TraversalTracker
  29300. *
  29301. * @constructor
  29302. */
  29303. function TraversalTracker() {
  29304. this.events = {};
  29305. }
  29306. TraversalTracker.prototype.startTracking = function(event, cb) {
  29307. var callbacks = (this.events[event] || (this.events[event] = []));
  29308. if (callbacks.indexOf(cb) < 0) {
  29309. callbacks.push(cb);
  29310. }
  29311. };
  29312. TraversalTracker.prototype.stopTracking = function(event, cb) {
  29313. var callbacks = this.events[event];
  29314. if (callbacks) {
  29315. var index = callbacks.indexOf(cb);
  29316. if (index >= 0) {
  29317. callbacks.splice(index, 1);
  29318. }
  29319. }
  29320. };
  29321. TraversalTracker.prototype.emit = function(event) {
  29322. var args = Array.prototype.slice.call(arguments, 1);
  29323. var callbacks = this.events[event];
  29324. if (callbacks) {
  29325. callbacks.forEach(function(cb) {
  29326. cb.apply(this, args);
  29327. });
  29328. }
  29329. };
  29330. TraversalTracker.prototype.auto = function(event, cb, innerBlock) {
  29331. this.startTracking(event, cb);
  29332. innerBlock();
  29333. this.stopTracking(event, cb);
  29334. };
  29335. module.exports = TraversalTracker;
  29336. /***/ },
  29337. /* 19 */
  29338. /***/ function(module, exports, __webpack_require__) {
  29339. /* jslint node: true */
  29340. 'use strict';
  29341. var TextTools = __webpack_require__(26);
  29342. var StyleContextStack = __webpack_require__(27);
  29343. var ColumnCalculator = __webpack_require__(22);
  29344. var fontStringify = __webpack_require__(25).fontStringify;
  29345. var pack = __webpack_require__(25).pack;
  29346. var qrEncoder = __webpack_require__(33);
  29347. /**
  29348. * @private
  29349. */
  29350. function DocMeasure(fontProvider, styleDictionary, defaultStyle, imageMeasure, tableLayouts, images) {
  29351. this.textTools = new TextTools(fontProvider);
  29352. this.styleStack = new StyleContextStack(styleDictionary, defaultStyle);
  29353. this.imageMeasure = imageMeasure;
  29354. this.tableLayouts = tableLayouts;
  29355. this.images = images;
  29356. this.autoImageIndex = 1;
  29357. }
  29358. /**
  29359. * Measures all nodes and sets min/max-width properties required for the second
  29360. * layout-pass.
  29361. * @param {Object} docStructure document-definition-object
  29362. * @return {Object} document-measurement-object
  29363. */
  29364. DocMeasure.prototype.measureDocument = function(docStructure) {
  29365. return this.measureNode(docStructure);
  29366. };
  29367. DocMeasure.prototype.measureNode = function(node) {
  29368. // expand shortcuts
  29369. if (node instanceof Array) {
  29370. node = { stack: node };
  29371. } else if (typeof node == 'string' || node instanceof String) {
  29372. node = { text: node };
  29373. }
  29374. var self = this;
  29375. return this.styleStack.auto(node, function() {
  29376. // TODO: refactor + rethink whether this is the proper way to handle margins
  29377. node._margin = getNodeMargin(node);
  29378. if (node.columns) {
  29379. return extendMargins(self.measureColumns(node));
  29380. } else if (node.stack) {
  29381. return extendMargins(self.measureVerticalContainer(node));
  29382. } else if (node.ul) {
  29383. return extendMargins(self.measureList(false, node));
  29384. } else if (node.ol) {
  29385. return extendMargins(self.measureList(true, node));
  29386. } else if (node.table) {
  29387. return extendMargins(self.measureTable(node));
  29388. } else if (node.text !== undefined) {
  29389. return extendMargins(self.measureLeaf(node));
  29390. } else if (node.image) {
  29391. return extendMargins(self.measureImage(node));
  29392. } else if (node.canvas) {
  29393. return extendMargins(self.measureCanvas(node));
  29394. } else if (node.qr) {
  29395. return extendMargins(self.measureQr(node));
  29396. } else {
  29397. throw 'Unrecognized document structure: ' + JSON.stringify(node, fontStringify);
  29398. }
  29399. });
  29400. function extendMargins(node) {
  29401. var margin = node._margin;
  29402. if (margin) {
  29403. node._minWidth += margin[0] + margin[2];
  29404. node._maxWidth += margin[0] + margin[2];
  29405. }
  29406. return node;
  29407. }
  29408. function getNodeMargin() {
  29409. function processSingleMargins(node, currentMargin){
  29410. if (node.marginLeft || node.marginTop || node.marginRight || node.marginBottom) {
  29411. return [
  29412. node.marginLeft || currentMargin[0] || 0,
  29413. node.marginTop || currentMargin[1] || 0,
  29414. node.marginRight || currentMargin[2] || 0,
  29415. node.marginBottom || currentMargin[3] || 0
  29416. ];
  29417. }
  29418. return currentMargin;
  29419. }
  29420. function flattenStyleArray(styleArray){
  29421. var flattenedStyles = {};
  29422. for (var i = styleArray.length - 1; i >= 0; i--) {
  29423. var styleName = styleArray[i];
  29424. var style = self.styleStack.styleDictionary[styleName];
  29425. for(var key in style){
  29426. if(style.hasOwnProperty(key)){
  29427. flattenedStyles[key] = style[key];
  29428. }
  29429. }
  29430. }
  29431. return flattenedStyles;
  29432. }
  29433. function convertMargin(margin) {
  29434. if (typeof margin === 'number' || margin instanceof Number) {
  29435. margin = [ margin, margin, margin, margin ];
  29436. } else if (margin instanceof Array) {
  29437. if (margin.length === 2) {
  29438. margin = [ margin[0], margin[1], margin[0], margin[1] ];
  29439. }
  29440. }
  29441. return margin;
  29442. }
  29443. var margin = [undefined, undefined, undefined, undefined];
  29444. if(node.style) {
  29445. var styleArray = (node.style instanceof Array) ? node.style : [node.style];
  29446. var flattenedStyleArray = flattenStyleArray(styleArray);
  29447. if(flattenedStyleArray) {
  29448. margin = processSingleMargins(flattenedStyleArray, margin);
  29449. }
  29450. if(flattenedStyleArray.margin){
  29451. margin = convertMargin(flattenedStyleArray.margin);
  29452. }
  29453. }
  29454. margin = processSingleMargins(node, margin);
  29455. if(node.margin){
  29456. margin = convertMargin(node.margin);
  29457. }
  29458. if(margin[0] === undefined && margin[1] === undefined && margin[2] === undefined && margin[3] === undefined) {
  29459. return null;
  29460. } else {
  29461. return margin;
  29462. }
  29463. }
  29464. };
  29465. DocMeasure.prototype.convertIfBase64Image = function(node) {
  29466. if (/^data:image\/(jpeg|jpg|png);base64,/.test(node.image)) {
  29467. var label = '$$pdfmake$$' + this.autoImageIndex++;
  29468. this.images[label] = node.image;
  29469. node.image = label;
  29470. }
  29471. };
  29472. DocMeasure.prototype.measureImage = function(node) {
  29473. if (this.images) {
  29474. this.convertIfBase64Image(node);
  29475. }
  29476. var imageSize = this.imageMeasure.measureImage(node.image);
  29477. if (node.fit) {
  29478. var factor = (imageSize.width / imageSize.height > node.fit[0] / node.fit[1]) ? node.fit[0] / imageSize.width : node.fit[1] / imageSize.height;
  29479. node._width = node._minWidth = node._maxWidth = imageSize.width * factor;
  29480. node._height = imageSize.height * factor;
  29481. } else {
  29482. node._width = node._minWidth = node._maxWidth = node.width || imageSize.width;
  29483. node._height = node.height || (imageSize.height * node._width / imageSize.width);
  29484. }
  29485. node._alignment = this.styleStack.getProperty('alignment');
  29486. return node;
  29487. };
  29488. DocMeasure.prototype.measureLeaf = function(node) {
  29489. var data = this.textTools.buildInlines(node.text, this.styleStack);
  29490. node._inlines = data.items;
  29491. node._minWidth = data.minWidth;
  29492. node._maxWidth = data.maxWidth;
  29493. return node;
  29494. };
  29495. DocMeasure.prototype.measureVerticalContainer = function(node) {
  29496. var items = node.stack;
  29497. node._minWidth = 0;
  29498. node._maxWidth = 0;
  29499. for(var i = 0, l = items.length; i < l; i++) {
  29500. items[i] = this.measureNode(items[i]);
  29501. node._minWidth = Math.max(node._minWidth, items[i]._minWidth);
  29502. node._maxWidth = Math.max(node._maxWidth, items[i]._maxWidth);
  29503. }
  29504. return node;
  29505. };
  29506. DocMeasure.prototype.gapSizeForList = function(isOrderedList, listItems) {
  29507. if (isOrderedList) {
  29508. var longestNo = (listItems.length).toString().replace(/./g, '9');
  29509. return this.textTools.sizeOfString(longestNo + '. ', this.styleStack);
  29510. } else {
  29511. return this.textTools.sizeOfString('9. ', this.styleStack);
  29512. }
  29513. };
  29514. DocMeasure.prototype.buildMarker = function(isOrderedList, counter, styleStack, gapSize) {
  29515. var marker;
  29516. if (isOrderedList) {
  29517. marker = { _inlines: this.textTools.buildInlines(counter, styleStack).items };
  29518. }
  29519. else {
  29520. // TODO: ascender-based calculations
  29521. var radius = gapSize.fontSize / 6;
  29522. marker = {
  29523. canvas: [ {
  29524. x: radius,
  29525. y: (gapSize.height / gapSize.lineHeight) + gapSize.decender - gapSize.fontSize / 3,//0,// gapSize.fontSize * 2 / 3,
  29526. r1: radius,
  29527. r2: radius,
  29528. type: 'ellipse',
  29529. color: 'black'
  29530. } ]
  29531. };
  29532. }
  29533. marker._minWidth = marker._maxWidth = gapSize.width;
  29534. marker._minHeight = marker._maxHeight = gapSize.height;
  29535. return marker;
  29536. };
  29537. DocMeasure.prototype.measureList = function(isOrdered, node) {
  29538. var style = this.styleStack.clone();
  29539. var items = isOrdered ? node.ol : node.ul;
  29540. node._gapSize = this.gapSizeForList(isOrdered, items);
  29541. node._minWidth = 0;
  29542. node._maxWidth = 0;
  29543. var counter = 1;
  29544. for(var i = 0, l = items.length; i < l; i++) {
  29545. var nextItem = items[i] = this.measureNode(items[i]);
  29546. var marker = counter++ + '. ';
  29547. if (!nextItem.ol && !nextItem.ul) {
  29548. nextItem.listMarker = this.buildMarker(isOrdered, nextItem.counter || marker, style, node._gapSize);
  29549. } // TODO: else - nested lists numbering
  29550. node._minWidth = Math.max(node._minWidth, items[i]._minWidth + node._gapSize.width);
  29551. node._maxWidth = Math.max(node._maxWidth, items[i]._maxWidth + node._gapSize.width);
  29552. }
  29553. return node;
  29554. };
  29555. DocMeasure.prototype.measureColumns = function(node) {
  29556. var columns = node.columns;
  29557. node._gap = this.styleStack.getProperty('columnGap') || 0;
  29558. for(var i = 0, l = columns.length; i < l; i++) {
  29559. columns[i] = this.measureNode(columns[i]);
  29560. }
  29561. var measures = ColumnCalculator.measureMinMax(columns);
  29562. node._minWidth = measures.min + node._gap * (columns.length - 1);
  29563. node._maxWidth = measures.max + node._gap * (columns.length - 1);
  29564. return node;
  29565. };
  29566. DocMeasure.prototype.measureTable = function(node) {
  29567. extendTableWidths(node);
  29568. node._layout = getLayout(this.tableLayouts);
  29569. node._offsets = getOffsets(node._layout);
  29570. var colSpans = [];
  29571. var col, row, cols, rows;
  29572. for(col = 0, cols = node.table.body[0].length; col < cols; col++) {
  29573. var c = node.table.widths[col];
  29574. c._minWidth = 0;
  29575. c._maxWidth = 0;
  29576. for(row = 0, rows = node.table.body.length; row < rows; row++) {
  29577. var rowData = node.table.body[row];
  29578. var data = rowData[col];
  29579. if (!data._span) {
  29580. var _this = this;
  29581. data = rowData[col] = this.styleStack.auto(data, measureCb(this, data));
  29582. if (data.colSpan && data.colSpan > 1) {
  29583. markSpans(rowData, col, data.colSpan);
  29584. colSpans.push({ col: col, span: data.colSpan, minWidth: data._minWidth, maxWidth: data._maxWidth });
  29585. } else {
  29586. c._minWidth = Math.max(c._minWidth, data._minWidth);
  29587. c._maxWidth = Math.max(c._maxWidth, data._maxWidth);
  29588. }
  29589. }
  29590. if (data.rowSpan && data.rowSpan > 1) {
  29591. markVSpans(node.table, row, col, data.rowSpan);
  29592. }
  29593. }
  29594. }
  29595. extendWidthsForColSpans();
  29596. var measures = ColumnCalculator.measureMinMax(node.table.widths);
  29597. node._minWidth = measures.min + node._offsets.total;
  29598. node._maxWidth = measures.max + node._offsets.total;
  29599. return node;
  29600. function measureCb(_this, data) {
  29601. return function() {
  29602. if (data !== null && typeof data === 'object') {
  29603. data.fillColor = _this.styleStack.getProperty('fillColor');
  29604. }
  29605. return _this.measureNode(data);
  29606. };
  29607. }
  29608. function getLayout(tableLayouts) {
  29609. var layout = node.layout;
  29610. if (typeof node.layout === 'string' || node instanceof String) {
  29611. layout = tableLayouts[layout];
  29612. }
  29613. var defaultLayout = {
  29614. hLineWidth: function(i, node) { return 1; }, //return node.table.headerRows && i === node.table.headerRows && 3 || 0; },
  29615. vLineWidth: function(i, node) { return 1; },
  29616. hLineColor: function(i, node) { return 'black'; },
  29617. vLineColor: function(i, node) { return 'black'; },
  29618. paddingLeft: function(i, node) { return 4; }, //i && 4 || 0; },
  29619. paddingRight: function(i, node) { return 4; }, //(i < node.table.widths.length - 1) ? 4 : 0; },
  29620. paddingTop: function(i, node) { return 2; },
  29621. paddingBottom: function(i, node) { return 2; }
  29622. };
  29623. return pack(defaultLayout, layout);
  29624. }
  29625. function getOffsets(layout) {
  29626. var offsets = [];
  29627. var totalOffset = 0;
  29628. var prevRightPadding = 0;
  29629. for(var i = 0, l = node.table.widths.length; i < l; i++) {
  29630. var lOffset = prevRightPadding + layout.vLineWidth(i, node) + layout.paddingLeft(i, node);
  29631. offsets.push(lOffset);
  29632. totalOffset += lOffset;
  29633. prevRightPadding = layout.paddingRight(i, node);
  29634. }
  29635. totalOffset += prevRightPadding + layout.vLineWidth(node.table.widths.length, node);
  29636. return {
  29637. total: totalOffset,
  29638. offsets: offsets
  29639. };
  29640. }
  29641. function extendWidthsForColSpans() {
  29642. var q, j;
  29643. for (var i = 0, l = colSpans.length; i < l; i++) {
  29644. var span = colSpans[i];
  29645. var currentMinMax = getMinMax(span.col, span.span, node._offsets);
  29646. var minDifference = span.minWidth - currentMinMax.minWidth;
  29647. var maxDifference = span.maxWidth - currentMinMax.maxWidth;
  29648. if (minDifference > 0) {
  29649. q = minDifference / span.span;
  29650. for(j = 0; j < span.span; j++) {
  29651. node.table.widths[span.col + j]._minWidth += q;
  29652. }
  29653. }
  29654. if (maxDifference > 0) {
  29655. q = maxDifference / span.span;
  29656. for(j = 0; j < span.span; j++) {
  29657. node.table.widths[span.col + j]._maxWidth += q;
  29658. }
  29659. }
  29660. }
  29661. }
  29662. function getMinMax(col, span, offsets) {
  29663. var result = { minWidth: 0, maxWidth: 0 };
  29664. for(var i = 0; i < span; i++) {
  29665. result.minWidth += node.table.widths[col + i]._minWidth + (i? offsets.offsets[col + i] : 0);
  29666. result.maxWidth += node.table.widths[col + i]._maxWidth + (i? offsets.offsets[col + i] : 0);
  29667. }
  29668. return result;
  29669. }
  29670. function markSpans(rowData, col, span) {
  29671. for (var i = 1; i < span; i++) {
  29672. rowData[col + i] = {
  29673. _span: true,
  29674. _minWidth: 0,
  29675. _maxWidth: 0,
  29676. rowSpan: rowData[col].rowSpan
  29677. };
  29678. }
  29679. }
  29680. function markVSpans(table, row, col, span) {
  29681. for (var i = 1; i < span; i++) {
  29682. table.body[row + i][col] = {
  29683. _span: true,
  29684. _minWidth: 0,
  29685. _maxWidth: 0,
  29686. fillColor: table.body[row][col].fillColor
  29687. };
  29688. }
  29689. }
  29690. function extendTableWidths(node) {
  29691. if (!node.table.widths) {
  29692. node.table.widths = 'auto';
  29693. }
  29694. if (typeof node.table.widths === 'string' || node.table.widths instanceof String) {
  29695. node.table.widths = [ node.table.widths ];
  29696. while(node.table.widths.length < node.table.body[0].length) {
  29697. node.table.widths.push(node.table.widths[node.table.widths.length - 1]);
  29698. }
  29699. }
  29700. for(var i = 0, l = node.table.widths.length; i < l; i++) {
  29701. var w = node.table.widths[i];
  29702. if (typeof w === 'number' || w instanceof Number || typeof w === 'string' || w instanceof String) {
  29703. node.table.widths[i] = { width: w };
  29704. }
  29705. }
  29706. }
  29707. };
  29708. DocMeasure.prototype.measureCanvas = function(node) {
  29709. var w = 0, h = 0;
  29710. for(var i = 0, l = node.canvas.length; i < l; i++) {
  29711. var vector = node.canvas[i];
  29712. switch(vector.type) {
  29713. case 'ellipse':
  29714. w = Math.max(w, vector.x + vector.r1);
  29715. h = Math.max(h, vector.y + vector.r2);
  29716. break;
  29717. case 'rect':
  29718. w = Math.max(w, vector.x + vector.w);
  29719. h = Math.max(h, vector.y + vector.h);
  29720. break;
  29721. case 'line':
  29722. w = Math.max(w, vector.x1, vector.x2);
  29723. h = Math.max(h, vector.y1, vector.y2);
  29724. break;
  29725. case 'polyline':
  29726. for(var i2 = 0, l2 = vector.points.length; i2 < l2; i2++) {
  29727. w = Math.max(w, vector.points[i2].x);
  29728. h = Math.max(h, vector.points[i2].y);
  29729. }
  29730. break;
  29731. }
  29732. }
  29733. node._minWidth = node._maxWidth = w;
  29734. node._minHeight = node._maxHeight = h;
  29735. return node;
  29736. };
  29737. DocMeasure.prototype.measureQr = function(node) {
  29738. node = qrEncoder.measure(node);
  29739. node._alignment = this.styleStack.getProperty('alignment');
  29740. return node;
  29741. };
  29742. module.exports = DocMeasure;
  29743. /***/ },
  29744. /* 20 */
  29745. /***/ function(module, exports, __webpack_require__) {
  29746. /* jslint node: true */
  29747. 'use strict';
  29748. var TraversalTracker = __webpack_require__(18);
  29749. /**
  29750. * Creates an instance of DocumentContext - a store for current x, y positions and available width/height.
  29751. * It facilitates column divisions and vertical sync
  29752. */
  29753. function DocumentContext(pageSize, pageMargins) {
  29754. this.pages = [];
  29755. this.pageMargins = pageMargins;
  29756. this.x = pageMargins.left;
  29757. this.availableWidth = pageSize.width - pageMargins.left - pageMargins.right;
  29758. this.availableHeight = 0;
  29759. this.page = -1;
  29760. this.snapshots = [];
  29761. this.endingCell = null;
  29762. this.tracker = new TraversalTracker();
  29763. this.addPage(pageSize);
  29764. }
  29765. DocumentContext.prototype.beginColumnGroup = function() {
  29766. this.snapshots.push({
  29767. x: this.x,
  29768. y: this.y,
  29769. availableHeight: this.availableHeight,
  29770. availableWidth: this.availableWidth,
  29771. page: this.page,
  29772. bottomMost: { y: this.y, page: this.page },
  29773. endingCell: this.endingCell,
  29774. lastColumnWidth: this.lastColumnWidth
  29775. });
  29776. this.lastColumnWidth = 0;
  29777. };
  29778. DocumentContext.prototype.beginColumn = function(width, offset, endingCell) {
  29779. var saved = this.snapshots[this.snapshots.length - 1];
  29780. this.calculateBottomMost(saved);
  29781. this.endingCell = endingCell;
  29782. this.page = saved.page;
  29783. this.x = this.x + this.lastColumnWidth + (offset || 0);
  29784. this.y = saved.y;
  29785. this.availableWidth = width; //saved.availableWidth - offset;
  29786. this.availableHeight = saved.availableHeight;
  29787. this.lastColumnWidth = width;
  29788. };
  29789. DocumentContext.prototype.calculateBottomMost = function(destContext) {
  29790. if (this.endingCell) {
  29791. this.saveContextInEndingCell(this.endingCell);
  29792. this.endingCell = null;
  29793. } else {
  29794. destContext.bottomMost = bottomMostContext(this, destContext.bottomMost);
  29795. }
  29796. };
  29797. DocumentContext.prototype.markEnding = function(endingCell) {
  29798. this.page = endingCell._columnEndingContext.page;
  29799. this.x = endingCell._columnEndingContext.x;
  29800. this.y = endingCell._columnEndingContext.y;
  29801. this.availableWidth = endingCell._columnEndingContext.availableWidth;
  29802. this.availableHeight = endingCell._columnEndingContext.availableHeight;
  29803. this.lastColumnWidth = endingCell._columnEndingContext.lastColumnWidth;
  29804. };
  29805. DocumentContext.prototype.saveContextInEndingCell = function(endingCell) {
  29806. endingCell._columnEndingContext = {
  29807. page: this.page,
  29808. x: this.x,
  29809. y: this.y,
  29810. availableHeight: this.availableHeight,
  29811. availableWidth: this.availableWidth,
  29812. lastColumnWidth: this.lastColumnWidth
  29813. };
  29814. };
  29815. DocumentContext.prototype.completeColumnGroup = function() {
  29816. var saved = this.snapshots.pop();
  29817. this.calculateBottomMost(saved);
  29818. this.endingCell = null;
  29819. this.x = saved.x;
  29820. this.y = saved.bottomMost.y;
  29821. this.page = saved.bottomMost.page;
  29822. this.availableWidth = saved.availableWidth;
  29823. this.availableHeight = saved.bottomMost.availableHeight;
  29824. this.lastColumnWidth = saved.lastColumnWidth;
  29825. };
  29826. DocumentContext.prototype.addMargin = function(left, right) {
  29827. this.x += left;
  29828. this.availableWidth -= left + (right || 0);
  29829. };
  29830. DocumentContext.prototype.moveDown = function(offset) {
  29831. this.y += offset;
  29832. this.availableHeight -= offset;
  29833. return this.availableHeight > 0;
  29834. };
  29835. DocumentContext.prototype.initializePage = function() {
  29836. this.y = this.pageMargins.top;
  29837. this.availableHeight = this.getCurrentPage().pageSize.height - this.pageMargins.top - this.pageMargins.bottom;
  29838. this.pageSnapshot().availableWidth = this.getCurrentPage().pageSize.width - this.pageMargins.left - this.pageMargins.right;
  29839. };
  29840. DocumentContext.prototype.pageSnapshot = function(){
  29841. if(this.snapshots[0]){
  29842. return this.snapshots[0];
  29843. } else {
  29844. return this;
  29845. }
  29846. };
  29847. DocumentContext.prototype.moveTo = function(x,y) {
  29848. if(x !== undefined && x !== null) {
  29849. this.x = x;
  29850. this.availableWidth = this.getCurrentPage().pageSize.width - this.x - this.pageMargins.right;
  29851. }
  29852. if(y !== undefined && y !== null){
  29853. this.y = y;
  29854. this.availableHeight = this.getCurrentPage().pageSize.height - this.y - this.pageMargins.bottom;
  29855. }
  29856. };
  29857. DocumentContext.prototype.beginDetachedBlock = function() {
  29858. this.snapshots.push({
  29859. x: this.x,
  29860. y: this.y,
  29861. availableHeight: this.availableHeight,
  29862. availableWidth: this.availableWidth,
  29863. page: this.page,
  29864. endingCell: this.endingCell,
  29865. lastColumnWidth: this.lastColumnWidth
  29866. });
  29867. };
  29868. DocumentContext.prototype.endDetachedBlock = function() {
  29869. var saved = this.snapshots.pop();
  29870. this.x = saved.x;
  29871. this.y = saved.y;
  29872. this.availableWidth = saved.availableWidth;
  29873. this.availableHeight = saved.availableHeight;
  29874. this.page = saved.page;
  29875. this.endingCell = saved.endingCell;
  29876. this.lastColumnWidth = saved.lastColumnWidth;
  29877. };
  29878. function pageOrientation(pageOrientationString, currentPageOrientation){
  29879. if(pageOrientationString === undefined) {
  29880. return currentPageOrientation;
  29881. } else if(pageOrientationString === 'landscape'){
  29882. return 'landscape';
  29883. } else {
  29884. return 'portrait';
  29885. }
  29886. }
  29887. var getPageSize = function (currentPage, newPageOrientation) {
  29888. newPageOrientation = pageOrientation(newPageOrientation, currentPage.pageSize.orientation);
  29889. if(newPageOrientation !== currentPage.pageSize.orientation) {
  29890. return {
  29891. orientation: newPageOrientation,
  29892. width: currentPage.pageSize.height,
  29893. height: currentPage.pageSize.width
  29894. };
  29895. } else {
  29896. return {
  29897. orientation: currentPage.pageSize.orientation,
  29898. width: currentPage.pageSize.width,
  29899. height: currentPage.pageSize.height
  29900. };
  29901. }
  29902. };
  29903. DocumentContext.prototype.moveToNextPage = function(pageOrientation) {
  29904. var nextPageIndex = this.page + 1;
  29905. var prevPage = this.page;
  29906. var prevY = this.y;
  29907. var createNewPage = nextPageIndex >= this.pages.length;
  29908. if (createNewPage) {
  29909. this.addPage(getPageSize(this.getCurrentPage(), pageOrientation));
  29910. } else {
  29911. this.page = nextPageIndex;
  29912. this.initializePage();
  29913. }
  29914. return {
  29915. newPageCreated: createNewPage,
  29916. prevPage: prevPage,
  29917. prevY: prevY,
  29918. y: this.y
  29919. };
  29920. };
  29921. DocumentContext.prototype.addPage = function(pageSize) {
  29922. var page = { items: [], pageSize: pageSize };
  29923. this.pages.push(page);
  29924. this.page = this.pages.length - 1;
  29925. this.initializePage();
  29926. this.tracker.emit('pageAdded');
  29927. return page;
  29928. };
  29929. DocumentContext.prototype.getCurrentPage = function() {
  29930. if (this.page < 0 || this.page >= this.pages.length) return null;
  29931. return this.pages[this.page];
  29932. };
  29933. DocumentContext.prototype.getCurrentPosition = function() {
  29934. var pageSize = this.getCurrentPage().pageSize;
  29935. var innerHeight = pageSize.height - this.pageMargins.top - this.pageMargins.bottom;
  29936. var innerWidth = pageSize.width - this.pageMargins.left - this.pageMargins.right;
  29937. return {
  29938. pageNumber: this.page + 1,
  29939. pageOrientation: pageSize.orientation,
  29940. pageInnerHeight: innerHeight,
  29941. pageInnerWidth: innerWidth,
  29942. left: this.x,
  29943. top: this.y,
  29944. verticalRatio: ((this.y - this.pageMargins.top) / innerHeight),
  29945. horizontalRatio: ((this.x - this.pageMargins.left) / innerWidth)
  29946. };
  29947. };
  29948. function bottomMostContext(c1, c2) {
  29949. var r;
  29950. if (c1.page > c2.page) r = c1;
  29951. else if (c2.page > c1.page) r = c2;
  29952. else r = (c1.y > c2.y) ? c1 : c2;
  29953. return {
  29954. page: r.page,
  29955. x: r.x,
  29956. y: r.y,
  29957. availableHeight: r.availableHeight,
  29958. availableWidth: r.availableWidth
  29959. };
  29960. }
  29961. /****TESTS**** (add a leading '/' to uncomment)
  29962. DocumentContext.bottomMostContext = bottomMostContext;
  29963. // */
  29964. module.exports = DocumentContext;
  29965. /***/ },
  29966. /* 21 */
  29967. /***/ function(module, exports, __webpack_require__) {
  29968. /* jslint node: true */
  29969. 'use strict';
  29970. var ElementWriter = __webpack_require__(37);
  29971. /**
  29972. * Creates an instance of PageElementWriter - an extended ElementWriter
  29973. * which can handle:
  29974. * - page-breaks (it adds new pages when there's not enough space left),
  29975. * - repeatable fragments (like table-headers, which are repeated everytime
  29976. * a page-break occurs)
  29977. * - transactions (used for unbreakable-blocks when we want to make sure
  29978. * whole block will be rendered on the same page)
  29979. */
  29980. function PageElementWriter(context, tracker) {
  29981. this.transactionLevel = 0;
  29982. this.repeatables = [];
  29983. this.tracker = tracker;
  29984. this.writer = new ElementWriter(context, tracker);
  29985. }
  29986. function fitOnPage(self, addFct){
  29987. var position = addFct(self);
  29988. if (!position) {
  29989. self.moveToNextPage();
  29990. position = addFct(self);
  29991. }
  29992. return position;
  29993. }
  29994. PageElementWriter.prototype.addLine = function(line, dontUpdateContextPosition, index) {
  29995. return fitOnPage(this, function(self){
  29996. return self.writer.addLine(line, dontUpdateContextPosition, index);
  29997. });
  29998. };
  29999. PageElementWriter.prototype.addImage = function(image, index) {
  30000. return fitOnPage(this, function(self){
  30001. return self.writer.addImage(image, index);
  30002. });
  30003. };
  30004. PageElementWriter.prototype.addQr = function(qr, index) {
  30005. return fitOnPage(this, function(self){
  30006. return self.writer.addQr(qr, index);
  30007. });
  30008. };
  30009. PageElementWriter.prototype.addVector = function(vector, ignoreContextX, ignoreContextY, index) {
  30010. return this.writer.addVector(vector, ignoreContextX, ignoreContextY, index);
  30011. };
  30012. PageElementWriter.prototype.addFragment = function(fragment, useBlockXOffset, useBlockYOffset, dontUpdateContextPosition) {
  30013. if (!this.writer.addFragment(fragment, useBlockXOffset, useBlockYOffset, dontUpdateContextPosition)) {
  30014. this.moveToNextPage();
  30015. this.writer.addFragment(fragment, useBlockXOffset, useBlockYOffset, dontUpdateContextPosition);
  30016. }
  30017. };
  30018. PageElementWriter.prototype.moveToNextPage = function(pageOrientation) {
  30019. var nextPage = this.writer.context.moveToNextPage(pageOrientation);
  30020. if (nextPage.newPageCreated) {
  30021. this.repeatables.forEach(function(rep) {
  30022. this.writer.addFragment(rep, true);
  30023. }, this);
  30024. } else {
  30025. this.repeatables.forEach(function(rep) {
  30026. this.writer.context.moveDown(rep.height);
  30027. }, this);
  30028. }
  30029. this.writer.tracker.emit('pageChanged', {
  30030. prevPage: nextPage.prevPage,
  30031. prevY: nextPage.prevY,
  30032. y: nextPage.y
  30033. });
  30034. };
  30035. PageElementWriter.prototype.beginUnbreakableBlock = function(width, height) {
  30036. if (this.transactionLevel++ === 0) {
  30037. this.originalX = this.writer.context.x;
  30038. this.writer.pushContext(width, height);
  30039. }
  30040. };
  30041. PageElementWriter.prototype.commitUnbreakableBlock = function(forcedX, forcedY) {
  30042. if (--this.transactionLevel === 0) {
  30043. var unbreakableContext = this.writer.context;
  30044. this.writer.popContext();
  30045. var nbPages = unbreakableContext.pages.length;
  30046. if(nbPages > 0) {
  30047. // no support for multi-page unbreakableBlocks
  30048. var fragment = unbreakableContext.pages[0];
  30049. fragment.xOffset = forcedX;
  30050. fragment.yOffset = forcedY;
  30051. //TODO: vectors can influence height in some situations
  30052. if(nbPages > 1) {
  30053. // on out-of-context blocs (headers, footers, background) height should be the whole DocumentContext height
  30054. if (forcedX !== undefined || forcedY !== undefined) {
  30055. fragment.height = unbreakableContext.getCurrentPage().pageSize.height - unbreakableContext.pageMargins.top - unbreakableContext.pageMargins.bottom;
  30056. } else {
  30057. fragment.height = this.writer.context.getCurrentPage().pageSize.height - this.writer.context.pageMargins.top - this.writer.context.pageMargins.bottom;
  30058. for (var i = 0, l = this.repeatables.length; i < l; i++) {
  30059. fragment.height -= this.repeatables[i].height;
  30060. }
  30061. }
  30062. } else {
  30063. fragment.height = unbreakableContext.y;
  30064. }
  30065. if (forcedX !== undefined || forcedY !== undefined) {
  30066. this.writer.addFragment(fragment, true, true, true);
  30067. } else {
  30068. this.addFragment(fragment);
  30069. }
  30070. }
  30071. }
  30072. };
  30073. PageElementWriter.prototype.currentBlockToRepeatable = function() {
  30074. var unbreakableContext = this.writer.context;
  30075. var rep = { items: [] };
  30076. unbreakableContext.pages[0].items.forEach(function(item) {
  30077. rep.items.push(item);
  30078. });
  30079. rep.xOffset = this.originalX;
  30080. //TODO: vectors can influence height in some situations
  30081. rep.height = unbreakableContext.y;
  30082. return rep;
  30083. };
  30084. PageElementWriter.prototype.pushToRepeatables = function(rep) {
  30085. this.repeatables.push(rep);
  30086. };
  30087. PageElementWriter.prototype.popFromRepeatables = function() {
  30088. this.repeatables.pop();
  30089. };
  30090. PageElementWriter.prototype.context = function() {
  30091. return this.writer.context;
  30092. };
  30093. module.exports = PageElementWriter;
  30094. /***/ },
  30095. /* 22 */
  30096. /***/ function(module, exports, __webpack_require__) {
  30097. /* jslint node: true */
  30098. 'use strict';
  30099. function buildColumnWidths(columns, availableWidth) {
  30100. var autoColumns = [],
  30101. autoMin = 0, autoMax = 0,
  30102. starColumns = [],
  30103. starMaxMin = 0,
  30104. starMaxMax = 0,
  30105. fixedColumns = [],
  30106. initial_availableWidth = availableWidth;
  30107. columns.forEach(function(column) {
  30108. if (isAutoColumn(column)) {
  30109. autoColumns.push(column);
  30110. autoMin += column._minWidth;
  30111. autoMax += column._maxWidth;
  30112. } else if (isStarColumn(column)) {
  30113. starColumns.push(column);
  30114. starMaxMin = Math.max(starMaxMin, column._minWidth);
  30115. starMaxMax = Math.max(starMaxMax, column._maxWidth);
  30116. } else {
  30117. fixedColumns.push(column);
  30118. }
  30119. });
  30120. fixedColumns.forEach(function(col) {
  30121. // width specified as %
  30122. if (typeof col.width === 'string' && /\d+%/.test(col.width) ) {
  30123. col.width = parseFloat(col.width)*initial_availableWidth/100;
  30124. }
  30125. if (col.width < (col._minWidth) && col.elasticWidth) {
  30126. col._calcWidth = col._minWidth;
  30127. } else {
  30128. col._calcWidth = col.width;
  30129. }
  30130. availableWidth -= col._calcWidth;
  30131. });
  30132. // http://www.freesoft.org/CIE/RFC/1942/18.htm
  30133. // http://www.w3.org/TR/CSS2/tables.html#width-layout
  30134. // http://dev.w3.org/csswg/css3-tables-algorithms/Overview.src.htm
  30135. var minW = autoMin + starMaxMin * starColumns.length;
  30136. var maxW = autoMax + starMaxMax * starColumns.length;
  30137. if (minW >= availableWidth) {
  30138. // case 1 - there's no way to fit all columns within available width
  30139. // that's actually pretty bad situation with PDF as we have no horizontal scroll
  30140. // no easy workaround (unless we decide, in the future, to split single words)
  30141. // currently we simply use minWidths for all columns
  30142. autoColumns.forEach(function(col) {
  30143. col._calcWidth = col._minWidth;
  30144. });
  30145. starColumns.forEach(function(col) {
  30146. col._calcWidth = starMaxMin; // starMaxMin already contains padding
  30147. });
  30148. } else {
  30149. if (maxW < availableWidth) {
  30150. // case 2 - we can fit rest of the table within available space
  30151. autoColumns.forEach(function(col) {
  30152. col._calcWidth = col._maxWidth;
  30153. availableWidth -= col._calcWidth;
  30154. });
  30155. } else {
  30156. // maxW is too large, but minW fits within available width
  30157. var W = availableWidth - minW;
  30158. var D = maxW - minW;
  30159. autoColumns.forEach(function(col) {
  30160. var d = col._maxWidth - col._minWidth;
  30161. col._calcWidth = col._minWidth + d * W / D;
  30162. availableWidth -= col._calcWidth;
  30163. });
  30164. }
  30165. if (starColumns.length > 0) {
  30166. var starSize = availableWidth / starColumns.length;
  30167. starColumns.forEach(function(col) {
  30168. col._calcWidth = starSize;
  30169. });
  30170. }
  30171. }
  30172. }
  30173. function isAutoColumn(column) {
  30174. return column.width === 'auto';
  30175. }
  30176. function isStarColumn(column) {
  30177. return column.width === null || column.width === undefined || column.width === '*' || column.width === 'star';
  30178. }
  30179. //TODO: refactor and reuse in measureTable
  30180. function measureMinMax(columns) {
  30181. var result = { min: 0, max: 0 };
  30182. var maxStar = { min: 0, max: 0 };
  30183. var starCount = 0;
  30184. for(var i = 0, l = columns.length; i < l; i++) {
  30185. var c = columns[i];
  30186. if (isStarColumn(c)) {
  30187. maxStar.min = Math.max(maxStar.min, c._minWidth);
  30188. maxStar.max = Math.max(maxStar.max, c._maxWidth);
  30189. starCount++;
  30190. } else if (isAutoColumn(c)) {
  30191. result.min += c._minWidth;
  30192. result.max += c._maxWidth;
  30193. } else {
  30194. result.min += ((c.width !== undefined && c.width) || c._minWidth);
  30195. result.max += ((c.width !== undefined && c.width) || c._maxWidth);
  30196. }
  30197. }
  30198. if (starCount) {
  30199. result.min += starCount * maxStar.min;
  30200. result.max += starCount * maxStar.max;
  30201. }
  30202. return result;
  30203. }
  30204. /**
  30205. * Calculates column widths
  30206. * @private
  30207. */
  30208. module.exports = {
  30209. buildColumnWidths: buildColumnWidths,
  30210. measureMinMax: measureMinMax,
  30211. isAutoColumn: isAutoColumn,
  30212. isStarColumn: isStarColumn
  30213. };
  30214. /***/ },
  30215. /* 23 */
  30216. /***/ function(module, exports, __webpack_require__) {
  30217. /* jslint node: true */
  30218. 'use strict';
  30219. var ColumnCalculator = __webpack_require__(22);
  30220. function TableProcessor(tableNode) {
  30221. this.tableNode = tableNode;
  30222. }
  30223. TableProcessor.prototype.beginTable = function(writer) {
  30224. var tableNode;
  30225. var availableWidth;
  30226. var self = this;
  30227. tableNode = this.tableNode;
  30228. this.offsets = tableNode._offsets;
  30229. this.layout = tableNode._layout;
  30230. availableWidth = writer.context().availableWidth - this.offsets.total;
  30231. ColumnCalculator.buildColumnWidths(tableNode.table.widths, availableWidth);
  30232. this.tableWidth = tableNode._offsets.total + getTableInnerContentWidth();
  30233. this.rowSpanData = prepareRowSpanData();
  30234. this.cleanUpRepeatables = false;
  30235. this.headerRows = tableNode.table.headerRows || 0;
  30236. this.rowsWithoutPageBreak = this.headerRows + (tableNode.table.keepWithHeaderRows || 0);
  30237. this.dontBreakRows = tableNode.table.dontBreakRows || false;
  30238. if (this.rowsWithoutPageBreak) {
  30239. writer.beginUnbreakableBlock();
  30240. }
  30241. this.drawHorizontalLine(0, writer);
  30242. function getTableInnerContentWidth() {
  30243. var width = 0;
  30244. tableNode.table.widths.forEach(function(w) {
  30245. width += w._calcWidth;
  30246. });
  30247. return width;
  30248. }
  30249. function prepareRowSpanData() {
  30250. var rsd = [];
  30251. var x = 0;
  30252. var lastWidth = 0;
  30253. rsd.push({ left: 0, rowSpan: 0 });
  30254. for(var i = 0, l = self.tableNode.table.body[0].length; i < l; i++) {
  30255. var paddings = self.layout.paddingLeft(i, self.tableNode) + self.layout.paddingRight(i, self.tableNode);
  30256. var lBorder = self.layout.vLineWidth(i, self.tableNode);
  30257. lastWidth = paddings + lBorder + self.tableNode.table.widths[i]._calcWidth;
  30258. rsd[rsd.length - 1].width = lastWidth;
  30259. x += lastWidth;
  30260. rsd.push({ left: x, rowSpan: 0, width: 0 });
  30261. }
  30262. return rsd;
  30263. }
  30264. };
  30265. TableProcessor.prototype.onRowBreak = function(rowIndex, writer) {
  30266. var self = this;
  30267. return function() {
  30268. //console.log('moving by : ', topLineWidth, rowPaddingTop);
  30269. var offset = self.rowPaddingTop + (!self.headerRows ? self.topLineWidth : 0);
  30270. writer.context().moveDown(offset);
  30271. };
  30272. };
  30273. TableProcessor.prototype.beginRow = function(rowIndex, writer) {
  30274. this.topLineWidth = this.layout.hLineWidth(rowIndex, this.tableNode);
  30275. this.rowPaddingTop = this.layout.paddingTop(rowIndex, this.tableNode);
  30276. this.bottomLineWidth = this.layout.hLineWidth(rowIndex+1, this.tableNode);
  30277. this.rowPaddingBottom = this.layout.paddingBottom(rowIndex, this.tableNode);
  30278. this.rowCallback = this.onRowBreak(rowIndex, writer);
  30279. writer.tracker.startTracking('pageChanged', this.rowCallback );
  30280. if(this.dontBreakRows) {
  30281. writer.beginUnbreakableBlock();
  30282. }
  30283. this.rowTopY = writer.context().y;
  30284. this.reservedAtBottom = this.bottomLineWidth + this.rowPaddingBottom;
  30285. writer.context().availableHeight -= this.reservedAtBottom;
  30286. writer.context().moveDown(this.rowPaddingTop);
  30287. };
  30288. TableProcessor.prototype.drawHorizontalLine = function(lineIndex, writer, overrideY) {
  30289. var lineWidth = this.layout.hLineWidth(lineIndex, this.tableNode);
  30290. if (lineWidth) {
  30291. var offset = lineWidth / 2;
  30292. var currentLine = null;
  30293. for(var i = 0, l = this.rowSpanData.length; i < l; i++) {
  30294. var data = this.rowSpanData[i];
  30295. var shouldDrawLine = !data.rowSpan;
  30296. if (!currentLine && shouldDrawLine) {
  30297. currentLine = { left: data.left, width: 0 };
  30298. }
  30299. if (shouldDrawLine) {
  30300. currentLine.width += (data.width || 0);
  30301. }
  30302. var y = (overrideY || 0) + offset;
  30303. if (!shouldDrawLine || i === l - 1) {
  30304. if (currentLine) {
  30305. writer.addVector({
  30306. type: 'line',
  30307. x1: currentLine.left,
  30308. x2: currentLine.left + currentLine.width,
  30309. y1: y,
  30310. y2: y,
  30311. lineWidth: lineWidth,
  30312. lineColor: typeof this.layout.hLineColor === 'function' ? this.layout.hLineColor(lineIndex, this.tableNode) : this.layout.hLineColor
  30313. }, false, overrideY);
  30314. currentLine = null;
  30315. }
  30316. }
  30317. }
  30318. writer.context().moveDown(lineWidth);
  30319. }
  30320. };
  30321. TableProcessor.prototype.drawVerticalLine = function(x, y0, y1, vLineIndex, writer) {
  30322. var width = this.layout.vLineWidth(vLineIndex, this.tableNode);
  30323. if (width === 0) return;
  30324. writer.addVector({
  30325. type: 'line',
  30326. x1: x + width/2,
  30327. x2: x + width/2,
  30328. y1: y0,
  30329. y2: y1,
  30330. lineWidth: width,
  30331. lineColor: typeof this.layout.vLineColor === 'function' ? this.layout.vLineColor(vLineIndex, this.tableNode) : this.layout.vLineColor
  30332. }, false, true);
  30333. };
  30334. TableProcessor.prototype.endTable = function(writer) {
  30335. if (this.cleanUpRepeatables) {
  30336. writer.popFromRepeatables();
  30337. }
  30338. };
  30339. TableProcessor.prototype.endRow = function(rowIndex, writer, pageBreaks) {
  30340. var l, i;
  30341. var self = this;
  30342. writer.tracker.stopTracking('pageChanged', this.rowCallback);
  30343. writer.context().moveDown(this.layout.paddingBottom(rowIndex, this.tableNode));
  30344. writer.context().availableHeight += this.reservedAtBottom;
  30345. var endingPage = writer.context().page;
  30346. var endingY = writer.context().y;
  30347. var xs = getLineXs();
  30348. var ys = [];
  30349. var hasBreaks = pageBreaks && pageBreaks.length > 0;
  30350. ys.push({
  30351. y0: this.rowTopY,
  30352. page: hasBreaks ? pageBreaks[0].prevPage : endingPage
  30353. });
  30354. if (hasBreaks) {
  30355. for(i = 0, l = pageBreaks.length; i < l; i++) {
  30356. var pageBreak = pageBreaks[i];
  30357. ys[ys.length - 1].y1 = pageBreak.prevY;
  30358. ys.push({y0: pageBreak.y, page: pageBreak.prevPage + 1});
  30359. }
  30360. }
  30361. ys[ys.length - 1].y1 = endingY;
  30362. var skipOrphanePadding = (ys[0].y1 - ys[0].y0 === this.rowPaddingTop);
  30363. for(var yi = (skipOrphanePadding ? 1 : 0), yl = ys.length; yi < yl; yi++) {
  30364. var willBreak = yi < ys.length - 1;
  30365. var rowBreakWithoutHeader = (yi > 0 && !this.headerRows);
  30366. var hzLineOffset = rowBreakWithoutHeader ? 0 : this.topLineWidth;
  30367. var y1 = ys[yi].y0;
  30368. var y2 = ys[yi].y1;
  30369. if(willBreak) {
  30370. y2 = y2 + this.rowPaddingBottom;
  30371. }
  30372. if (writer.context().page != ys[yi].page) {
  30373. writer.context().page = ys[yi].page;
  30374. //TODO: buggy, availableHeight should be updated on every pageChanged event
  30375. // TableProcessor should be pageChanged listener, instead of processRow
  30376. this.reservedAtBottom = 0;
  30377. }
  30378. for(i = 0, l = xs.length; i < l; i++) {
  30379. this.drawVerticalLine(xs[i].x, y1 - hzLineOffset, y2 + this.bottomLineWidth, xs[i].index, writer);
  30380. if(i < l-1) {
  30381. var colIndex = xs[i].index;
  30382. var fillColor= this.tableNode.table.body[rowIndex][colIndex].fillColor;
  30383. if(fillColor ) {
  30384. var wBorder = this.layout.vLineWidth(colIndex, this.tableNode);
  30385. var xf = xs[i].x+wBorder;
  30386. var yf = y1 - hzLineOffset;
  30387. writer.addVector({
  30388. type: 'rect',
  30389. x: xf,
  30390. y: yf,
  30391. w: xs[i+1].x-xf,
  30392. h: y2+this.bottomLineWidth-yf,
  30393. lineWidth: 0,
  30394. color: fillColor
  30395. }, false, true, 0);
  30396. }
  30397. }
  30398. }
  30399. if (willBreak && this.layout.hLineWhenBroken !== false) {
  30400. this.drawHorizontalLine(rowIndex + 1, writer, y2);
  30401. }
  30402. if(rowBreakWithoutHeader && this.layout.hLineWhenBroken !== false) {
  30403. this.drawHorizontalLine(rowIndex, writer, y1);
  30404. }
  30405. }
  30406. writer.context().page = endingPage;
  30407. writer.context().y = endingY;
  30408. var row = this.tableNode.table.body[rowIndex];
  30409. for(i = 0, l = row.length; i < l; i++) {
  30410. if (row[i].rowSpan) {
  30411. this.rowSpanData[i].rowSpan = row[i].rowSpan;
  30412. // fix colSpans
  30413. if (row[i].colSpan && row[i].colSpan > 1) {
  30414. for(var j = 1; j < row[i].rowSpan; j++) {
  30415. this.tableNode.table.body[rowIndex + j][i]._colSpan = row[i].colSpan;
  30416. }
  30417. }
  30418. }
  30419. if(this.rowSpanData[i].rowSpan > 0) {
  30420. this.rowSpanData[i].rowSpan--;
  30421. }
  30422. }
  30423. this.drawHorizontalLine(rowIndex + 1, writer);
  30424. if(this.headerRows && rowIndex === this.headerRows - 1) {
  30425. this.headerRepeatable = writer.currentBlockToRepeatable();
  30426. }
  30427. if(this.dontBreakRows) {
  30428. writer.tracker.auto('pageChanged',
  30429. function() {
  30430. self.drawHorizontalLine(rowIndex, writer);
  30431. },
  30432. function() {
  30433. writer.commitUnbreakableBlock();
  30434. self.drawHorizontalLine(rowIndex, writer);
  30435. }
  30436. );
  30437. }
  30438. if(this.headerRepeatable && (rowIndex === (this.rowsWithoutPageBreak - 1) || rowIndex === this.tableNode.table.body.length - 1)) {
  30439. writer.commitUnbreakableBlock();
  30440. writer.pushToRepeatables(this.headerRepeatable);
  30441. this.cleanUpRepeatables = true;
  30442. this.headerRepeatable = null;
  30443. }
  30444. function getLineXs() {
  30445. var result = [];
  30446. var cols = 0;
  30447. for(var i = 0, l = self.tableNode.table.body[rowIndex].length; i < l; i++) {
  30448. if (!cols) {
  30449. result.push({ x: self.rowSpanData[i].left, index: i});
  30450. var item = self.tableNode.table.body[rowIndex][i];
  30451. cols = (item._colSpan || item.colSpan || 0);
  30452. }
  30453. if (cols > 0) {
  30454. cols--;
  30455. }
  30456. }
  30457. result.push({ x: self.rowSpanData[self.rowSpanData.length - 1].left, index: self.rowSpanData.length - 1});
  30458. return result;
  30459. }
  30460. };
  30461. module.exports = TableProcessor;
  30462. /***/ },
  30463. /* 24 */
  30464. /***/ function(module, exports, __webpack_require__) {
  30465. /* jslint node: true */
  30466. 'use strict';
  30467. /**
  30468. * Creates an instance of Line
  30469. *
  30470. * @constructor
  30471. * @this {Line}
  30472. * @param {Number} Maximum width this line can have
  30473. */
  30474. function Line(maxWidth) {
  30475. this.maxWidth = maxWidth;
  30476. this.leadingCut = 0;
  30477. this.trailingCut = 0;
  30478. this.inlineWidths = 0;
  30479. this.inlines = [];
  30480. }
  30481. Line.prototype.getAscenderHeight = function() {
  30482. var y = 0;
  30483. this.inlines.forEach(function(inline) {
  30484. y = Math.max(y, inline.font.ascender / 1000 * inline.fontSize);
  30485. });
  30486. return y;
  30487. };
  30488. Line.prototype.hasEnoughSpaceForInline = function(inline) {
  30489. if (this.inlines.length === 0) return true;
  30490. if (this.newLineForced) return false;
  30491. return this.inlineWidths + inline.width - this.leadingCut - (inline.trailingCut || 0) <= this.maxWidth;
  30492. };
  30493. Line.prototype.addInline = function(inline) {
  30494. if (this.inlines.length === 0) {
  30495. this.leadingCut = inline.leadingCut || 0;
  30496. }
  30497. this.trailingCut = inline.trailingCut || 0;
  30498. inline.x = this.inlineWidths - this.leadingCut;
  30499. this.inlines.push(inline);
  30500. this.inlineWidths += inline.width;
  30501. if (inline.lineEnd) {
  30502. this.newLineForced = true;
  30503. }
  30504. };
  30505. Line.prototype.getWidth = function() {
  30506. return this.inlineWidths - this.leadingCut - this.trailingCut;
  30507. };
  30508. /**
  30509. * Returns line height
  30510. * @return {Number}
  30511. */
  30512. Line.prototype.getHeight = function() {
  30513. var max = 0;
  30514. this.inlines.forEach(function(item) {
  30515. max = Math.max(max, item.height || 0);
  30516. });
  30517. return max;
  30518. };
  30519. module.exports = Line;
  30520. /***/ },
  30521. /* 25 */
  30522. /***/ function(module, exports, __webpack_require__) {
  30523. /* jslint node: true */
  30524. 'use strict';
  30525. function pack() {
  30526. var result = {};
  30527. for(var i = 0, l = arguments.length; i < l; i++) {
  30528. var obj = arguments[i];
  30529. if (obj) {
  30530. for(var key in obj) {
  30531. if (obj.hasOwnProperty(key)) {
  30532. result[key] = obj[key];
  30533. }
  30534. }
  30535. }
  30536. }
  30537. return result;
  30538. }
  30539. function offsetVector(vector, x, y) {
  30540. switch(vector.type) {
  30541. case 'ellipse':
  30542. case 'rect':
  30543. vector.x += x;
  30544. vector.y += y;
  30545. break;
  30546. case 'line':
  30547. vector.x1 += x;
  30548. vector.x2 += x;
  30549. vector.y1 += y;
  30550. vector.y2 += y;
  30551. break;
  30552. case 'polyline':
  30553. for(var i = 0, l = vector.points.length; i < l; i++) {
  30554. vector.points[i].x += x;
  30555. vector.points[i].y += y;
  30556. }
  30557. break;
  30558. }
  30559. }
  30560. function fontStringify(key, val) {
  30561. if (key === 'font') {
  30562. return 'font';
  30563. }
  30564. return val;
  30565. }
  30566. function isFunction(functionToCheck) {
  30567. var getType = {};
  30568. return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
  30569. }
  30570. module.exports = {
  30571. pack: pack,
  30572. fontStringify: fontStringify,
  30573. offsetVector: offsetVector,
  30574. isFunction: isFunction
  30575. };
  30576. /***/ },
  30577. /* 26 */
  30578. /***/ function(module, exports, __webpack_require__) {
  30579. /* jslint node: true */
  30580. 'use strict';
  30581. var WORD_RE = /([^ ,\/!.?:;\-\n]*[ ,\/!.?:;\-]*)|\n/g;
  30582. // /\S*\s*/g to be considered (I'm not sure however - we shouldn't split 'aaa !!!!')
  30583. var LEADING = /^(\s)+/g;
  30584. var TRAILING = /(\s)+$/g;
  30585. /**
  30586. * Creates an instance of TextTools - text measurement utility
  30587. *
  30588. * @constructor
  30589. * @param {FontProvider} fontProvider
  30590. */
  30591. function TextTools(fontProvider) {
  30592. this.fontProvider = fontProvider;
  30593. }
  30594. /**
  30595. * Converts an array of strings (or inline-definition-objects) into a set of inlines
  30596. * and their min/max widths
  30597. * @param {Object} textArray - an array of inline-definition-objects (or strings)
  30598. * @param {Number} maxWidth - max width a single Line should have
  30599. * @return {Array} an array of Lines
  30600. */
  30601. TextTools.prototype.buildInlines = function(textArray, styleContextStack) {
  30602. var measured = measure(this.fontProvider, textArray, styleContextStack);
  30603. var minWidth = 0,
  30604. maxWidth = 0,
  30605. currentLineWidth;
  30606. measured.forEach(function (inline) {
  30607. minWidth = Math.max(minWidth, inline.width - inline.leadingCut - inline.trailingCut);
  30608. if (!currentLineWidth) {
  30609. currentLineWidth = { width: 0, leadingCut: inline.leadingCut, trailingCut: 0 };
  30610. }
  30611. currentLineWidth.width += inline.width;
  30612. currentLineWidth.trailingCut = inline.trailingCut;
  30613. maxWidth = Math.max(maxWidth, getTrimmedWidth(currentLineWidth));
  30614. if (inline.lineEnd) {
  30615. currentLineWidth = null;
  30616. }
  30617. });
  30618. return {
  30619. items: measured,
  30620. minWidth: minWidth,
  30621. maxWidth: maxWidth
  30622. };
  30623. function getTrimmedWidth(item) {
  30624. return Math.max(0, item.width - item.leadingCut - item.trailingCut);
  30625. }
  30626. };
  30627. /**
  30628. * Returns size of the specified string (without breaking it) using the current style
  30629. * @param {String} text text to be measured
  30630. * @param {Object} styleContextStack current style stack
  30631. * @return {Object} size of the specified string
  30632. */
  30633. TextTools.prototype.sizeOfString = function(text, styleContextStack) {
  30634. text = text.replace('\t', ' ');
  30635. //TODO: refactor - extract from measure
  30636. var fontName = getStyleProperty({}, styleContextStack, 'font', 'Roboto');
  30637. var fontSize = getStyleProperty({}, styleContextStack, 'fontSize', 12);
  30638. var bold = getStyleProperty({}, styleContextStack, 'bold', false);
  30639. var italics = getStyleProperty({}, styleContextStack, 'italics', false);
  30640. var lineHeight = getStyleProperty({}, styleContextStack, 'lineHeight', 1);
  30641. var font = this.fontProvider.provideFont(fontName, bold, italics);
  30642. return {
  30643. width: font.widthOfString(removeDiacritics(text), fontSize),
  30644. height: font.lineHeight(fontSize) * lineHeight,
  30645. fontSize: fontSize,
  30646. lineHeight: lineHeight,
  30647. ascender: font.ascender / 1000 * fontSize,
  30648. decender: font.decender / 1000 * fontSize
  30649. };
  30650. };
  30651. function splitWords(text) {
  30652. var results = [];
  30653. text = text.replace('\t', ' ');
  30654. var array = text.match(WORD_RE);
  30655. // i < l - 1, because the last match is always an empty string
  30656. // other empty strings however are treated as new-lines
  30657. for(var i = 0, l = array.length; i < l - 1; i++) {
  30658. var item = array[i];
  30659. var isNewLine = item.length === 0;
  30660. if (!isNewLine) {
  30661. results.push({text: item});
  30662. }
  30663. else {
  30664. var shouldAddLine = (results.length === 0 || results[results.length - 1].lineEnd);
  30665. if (shouldAddLine) {
  30666. results.push({ text: '', lineEnd: true });
  30667. }
  30668. else {
  30669. results[results.length - 1].lineEnd = true;
  30670. }
  30671. }
  30672. }
  30673. return results;
  30674. }
  30675. function copyStyle(source, destination) {
  30676. destination = destination || {};
  30677. source = source || {}; //TODO: default style
  30678. for(var key in source) {
  30679. if (key != 'text' && source.hasOwnProperty(key)) {
  30680. destination[key] = source[key];
  30681. }
  30682. }
  30683. return destination;
  30684. }
  30685. function normalizeTextArray(array) {
  30686. var results = [];
  30687. if (typeof array == 'string' || array instanceof String) {
  30688. array = [ array ];
  30689. }
  30690. for(var i = 0, l = array.length; i < l; i++) {
  30691. var item = array[i];
  30692. var style = null;
  30693. var words;
  30694. if (typeof item == 'string' || item instanceof String) {
  30695. words = splitWords(item);
  30696. } else {
  30697. words = splitWords(item.text);
  30698. style = copyStyle(item);
  30699. }
  30700. for(var i2 = 0, l2 = words.length; i2 < l2; i2++) {
  30701. var result = {
  30702. text: words[i2].text
  30703. };
  30704. if (words[i2].lineEnd) {
  30705. result.lineEnd = true;
  30706. }
  30707. copyStyle(style, result);
  30708. results.push(result);
  30709. }
  30710. }
  30711. return results;
  30712. }
  30713. //TODO: support for other languages (currently only polish is supported)
  30714. var diacriticsMap = { 'Ą': 'A', 'Ć': 'C', 'Ę': 'E', 'Ł': 'L', 'Ń': 'N', 'Ó': 'O', 'Ś': 'S', 'Ź': 'Z', 'Ż': 'Z', 'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z' };
  30715. // ' << atom.io workaround
  30716. function removeDiacritics(text) {
  30717. return text.replace(/[^A-Za-z0-9\[\] ]/g, function(a) {
  30718. return diacriticsMap[a] || a;
  30719. });
  30720. }
  30721. function getStyleProperty(item, styleContextStack, property, defaultValue) {
  30722. var value;
  30723. if (item[property] !== undefined && item[property] !== null) {
  30724. // item defines this property
  30725. return item[property];
  30726. }
  30727. if (!styleContextStack) return defaultValue;
  30728. styleContextStack.auto(item, function() {
  30729. value = styleContextStack.getProperty(property);
  30730. });
  30731. if (value !== null && value !== undefined) {
  30732. return value;
  30733. } else {
  30734. return defaultValue;
  30735. }
  30736. }
  30737. function measure(fontProvider, textArray, styleContextStack) {
  30738. var normalized = normalizeTextArray(textArray);
  30739. normalized.forEach(function(item) {
  30740. var fontName = getStyleProperty(item, styleContextStack, 'font', 'Roboto');
  30741. var fontSize = getStyleProperty(item, styleContextStack, 'fontSize', 12);
  30742. var bold = getStyleProperty(item, styleContextStack, 'bold', false);
  30743. var italics = getStyleProperty(item, styleContextStack, 'italics', false);
  30744. var color = getStyleProperty(item, styleContextStack, 'color', 'black');
  30745. var decoration = getStyleProperty(item, styleContextStack, 'decoration', null);
  30746. var decorationColor = getStyleProperty(item, styleContextStack, 'decorationColor', null);
  30747. var decorationStyle = getStyleProperty(item, styleContextStack, 'decorationStyle', null);
  30748. var background = getStyleProperty(item, styleContextStack, 'background', null);
  30749. var lineHeight = getStyleProperty(item, styleContextStack, 'lineHeight', 1);
  30750. var font = fontProvider.provideFont(fontName, bold, italics);
  30751. // TODO: character spacing
  30752. item.width = font.widthOfString(removeDiacritics(item.text), fontSize);
  30753. item.height = font.lineHeight(fontSize) * lineHeight;
  30754. var leadingSpaces = item.text.match(LEADING);
  30755. var trailingSpaces = item.text.match(TRAILING);
  30756. if (leadingSpaces) {
  30757. item.leadingCut = font.widthOfString(leadingSpaces[0], fontSize);
  30758. }
  30759. else {
  30760. item.leadingCut = 0;
  30761. }
  30762. if (trailingSpaces) {
  30763. item.trailingCut = font.widthOfString(trailingSpaces[0], fontSize);
  30764. }
  30765. else {
  30766. item.trailingCut = 0;
  30767. }
  30768. item.alignment = getStyleProperty(item, styleContextStack, 'alignment', 'left');
  30769. item.font = font;
  30770. item.fontSize = fontSize;
  30771. item.color = color;
  30772. item.decoration = decoration;
  30773. item.decorationColor = decorationColor;
  30774. item.decorationStyle = decorationStyle;
  30775. item.background = background;
  30776. });
  30777. return normalized;
  30778. }
  30779. /****TESTS**** (add a leading '/' to uncomment)
  30780. TextTools.prototype.splitWords = splitWords;
  30781. TextTools.prototype.normalizeTextArray = normalizeTextArray;
  30782. TextTools.prototype.measure = measure;
  30783. // */
  30784. module.exports = TextTools;
  30785. /***/ },
  30786. /* 27 */
  30787. /***/ function(module, exports, __webpack_require__) {
  30788. /* jslint node: true */
  30789. 'use strict';
  30790. /**
  30791. * Creates an instance of StyleContextStack used for style inheritance and style overrides
  30792. *
  30793. * @constructor
  30794. * @this {StyleContextStack}
  30795. * @param {Object} named styles dictionary
  30796. * @param {Object} optional default style definition
  30797. */
  30798. function StyleContextStack (styleDictionary, defaultStyle) {
  30799. this.defaultStyle = defaultStyle || {};
  30800. this.styleDictionary = styleDictionary;
  30801. this.styleOverrides = [];
  30802. }
  30803. /**
  30804. * Creates cloned version of current stack
  30805. * @return {StyleContextStack} current stack snapshot
  30806. */
  30807. StyleContextStack.prototype.clone = function() {
  30808. var stack = new StyleContextStack(this.styleDictionary, this.defaultStyle);
  30809. this.styleOverrides.forEach(function(item) {
  30810. stack.styleOverrides.push(item);
  30811. });
  30812. return stack;
  30813. };
  30814. /**
  30815. * Pushes style-name or style-overrides-object onto the stack for future evaluation
  30816. *
  30817. * @param {String|Object} styleNameOrOverride style-name (referring to styleDictionary) or
  30818. * a new dictionary defining overriding properties
  30819. */
  30820. StyleContextStack.prototype.push = function(styleNameOrOverride) {
  30821. this.styleOverrides.push(styleNameOrOverride);
  30822. };
  30823. /**
  30824. * Removes last style-name or style-overrides-object from the stack
  30825. *
  30826. * @param {Number} howMany - optional number of elements to be popped (if not specified,
  30827. * one element will be removed from the stack)
  30828. */
  30829. StyleContextStack.prototype.pop = function(howMany) {
  30830. howMany = howMany || 1;
  30831. while(howMany-- > 0) {
  30832. this.styleOverrides.pop();
  30833. }
  30834. };
  30835. /**
  30836. * Creates a set of named styles or/and a style-overrides-object based on the item,
  30837. * pushes those elements onto the stack for future evaluation and returns the number
  30838. * of elements pushed, so they can be easily poped then.
  30839. *
  30840. * @param {Object} item - an object with optional style property and/or style overrides
  30841. * @return the number of items pushed onto the stack
  30842. */
  30843. StyleContextStack.prototype.autopush = function(item) {
  30844. if (typeof item === 'string' || item instanceof String) return 0;
  30845. var styleNames = [];
  30846. if (item.style) {
  30847. if (item.style instanceof Array) {
  30848. styleNames = item.style;
  30849. } else {
  30850. styleNames = [ item.style ];
  30851. }
  30852. }
  30853. for(var i = 0, l = styleNames.length; i < l; i++) {
  30854. this.push(styleNames[i]);
  30855. }
  30856. var styleOverrideObject = {};
  30857. var pushSOO = false;
  30858. [
  30859. 'font',
  30860. 'fontSize',
  30861. 'bold',
  30862. 'italics',
  30863. 'alignment',
  30864. 'color',
  30865. 'columnGap',
  30866. 'fillColor',
  30867. 'decoration',
  30868. 'decorationStyle',
  30869. 'decorationColor',
  30870. 'background',
  30871. 'lineHeight'
  30872. //'tableCellPadding'
  30873. // 'cellBorder',
  30874. // 'headerCellBorder',
  30875. // 'oddRowCellBorder',
  30876. // 'evenRowCellBorder',
  30877. // 'tableBorder'
  30878. ].forEach(function(key) {
  30879. if (item[key] !== undefined && item[key] !== null) {
  30880. styleOverrideObject[key] = item[key];
  30881. pushSOO = true;
  30882. }
  30883. });
  30884. if (pushSOO) {
  30885. this.push(styleOverrideObject);
  30886. }
  30887. return styleNames.length + (pushSOO ? 1 : 0);
  30888. };
  30889. /**
  30890. * Automatically pushes elements onto the stack, using autopush based on item,
  30891. * executes callback and then pops elements back. Returns value returned by callback
  30892. *
  30893. * @param {Object} item - an object with optional style property and/or style overrides
  30894. * @param {Function} function to be called between autopush and pop
  30895. * @return {Object} value returned by callback
  30896. */
  30897. StyleContextStack.prototype.auto = function(item, callback) {
  30898. var pushedItems = this.autopush(item);
  30899. var result = callback();
  30900. if (pushedItems > 0) {
  30901. this.pop(pushedItems);
  30902. }
  30903. return result;
  30904. };
  30905. /**
  30906. * Evaluates stack and returns value of a named property
  30907. *
  30908. * @param {String} property - property name
  30909. * @return property value or null if not found
  30910. */
  30911. StyleContextStack.prototype.getProperty = function(property) {
  30912. if (this.styleOverrides) {
  30913. for(var i = this.styleOverrides.length - 1; i >= 0; i--) {
  30914. var item = this.styleOverrides[i];
  30915. if (typeof item == 'string' || item instanceof String) {
  30916. // named-style-override
  30917. var style = this.styleDictionary[item];
  30918. if (style && style[property] !== null && style[property] !== undefined) {
  30919. return style[property];
  30920. }
  30921. } else {
  30922. // style-overrides-object
  30923. if (item[property] !== undefined && item[property] !== null) {
  30924. return item[property];
  30925. }
  30926. }
  30927. }
  30928. }
  30929. return this.defaultStyle && this.defaultStyle[property];
  30930. };
  30931. module.exports = StyleContextStack;
  30932. /***/ },
  30933. /* 28 */
  30934. /***/ function(module, exports, __webpack_require__) {
  30935. /* WEBPACK VAR INJECTION */(function(Buffer) {// Generated by CoffeeScript 1.7.1
  30936. /*
  30937. PDFDocument - represents an entire PDF document
  30938. By Devon Govett
  30939. */
  30940. (function() {
  30941. var PDFDocument, PDFObject, PDFPage, PDFReference, fs, stream,
  30942. __hasProp = {}.hasOwnProperty,
  30943. __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
  30944. stream = __webpack_require__(46);
  30945. fs = __webpack_require__(10);
  30946. PDFObject = __webpack_require__(32);
  30947. PDFReference = __webpack_require__(12);
  30948. PDFPage = __webpack_require__(38);
  30949. PDFDocument = (function(_super) {
  30950. var mixin;
  30951. __extends(PDFDocument, _super);
  30952. function PDFDocument(options) {
  30953. var key, val, _ref, _ref1;
  30954. this.options = options != null ? options : {};
  30955. PDFDocument.__super__.constructor.apply(this, arguments);
  30956. this.version = 1.3;
  30957. this.compress = (_ref = this.options.compress) != null ? _ref : true;
  30958. this._pageBuffer = [];
  30959. this._pageBufferStart = 0;
  30960. this._offsets = [];
  30961. this._waiting = 0;
  30962. this._ended = false;
  30963. this._offset = 0;
  30964. this._root = this.ref({
  30965. Type: 'Catalog',
  30966. Pages: this.ref({
  30967. Type: 'Pages',
  30968. Count: 0,
  30969. Kids: []
  30970. })
  30971. });
  30972. this.page = null;
  30973. this.initColor();
  30974. this.initVector();
  30975. this.initFonts();
  30976. this.initText();
  30977. this.initImages();
  30978. this.info = {
  30979. Producer: 'PDFKit',
  30980. Creator: 'PDFKit',
  30981. CreationDate: new Date()
  30982. };
  30983. if (this.options.info) {
  30984. _ref1 = this.options.info;
  30985. for (key in _ref1) {
  30986. val = _ref1[key];
  30987. this.info[key] = val;
  30988. }
  30989. }
  30990. this._write("%PDF-" + this.version);
  30991. this._write("%\xFF\xFF\xFF\xFF");
  30992. this.addPage();
  30993. }
  30994. mixin = function(methods) {
  30995. var method, name, _results;
  30996. _results = [];
  30997. for (name in methods) {
  30998. method = methods[name];
  30999. _results.push(PDFDocument.prototype[name] = method);
  31000. }
  31001. return _results;
  31002. };
  31003. mixin(__webpack_require__(41));
  31004. mixin(__webpack_require__(39));
  31005. mixin(__webpack_require__(44));
  31006. mixin(__webpack_require__(40));
  31007. mixin(__webpack_require__(42));
  31008. mixin(__webpack_require__(43));
  31009. PDFDocument.prototype.addPage = function(options) {
  31010. var pages;
  31011. if (options == null) {
  31012. options = this.options;
  31013. }
  31014. if (!this.options.bufferPages) {
  31015. this.flushPages();
  31016. }
  31017. this.page = new PDFPage(this, options);
  31018. this._pageBuffer.push(this.page);
  31019. pages = this._root.data.Pages.data;
  31020. pages.Kids.push(this.page.dictionary);
  31021. pages.Count++;
  31022. this.x = this.page.margins.left;
  31023. this.y = this.page.margins.top;
  31024. this._ctm = [1, 0, 0, 1, 0, 0];
  31025. this.transform(1, 0, 0, -1, 0, this.page.height);
  31026. return this;
  31027. };
  31028. PDFDocument.prototype.bufferedPageRange = function() {
  31029. return {
  31030. start: this._pageBufferStart,
  31031. count: this._pageBuffer.length
  31032. };
  31033. };
  31034. PDFDocument.prototype.switchToPage = function(n) {
  31035. var page;
  31036. if (!(page = this._pageBuffer[n - this._pageBufferStart])) {
  31037. throw new Error("switchToPage(" + n + ") out of bounds, current buffer covers pages " + this._pageBufferStart + " to " + (this._pageBufferStart + this._pageBuffer.length - 1));
  31038. }
  31039. return this.page = page;
  31040. };
  31041. PDFDocument.prototype.flushPages = function() {
  31042. var page, pages, _i, _len;
  31043. pages = this._pageBuffer;
  31044. this._pageBuffer = [];
  31045. this._pageBufferStart += pages.length;
  31046. for (_i = 0, _len = pages.length; _i < _len; _i++) {
  31047. page = pages[_i];
  31048. page.end();
  31049. }
  31050. };
  31051. PDFDocument.prototype.ref = function(data) {
  31052. var ref;
  31053. ref = new PDFReference(this, this._offsets.length + 1, data);
  31054. this._offsets.push(null);
  31055. this._waiting++;
  31056. return ref;
  31057. };
  31058. PDFDocument.prototype._read = function() {};
  31059. PDFDocument.prototype._write = function(data) {
  31060. if (!Buffer.isBuffer(data)) {
  31061. data = new Buffer(data + '\n', 'binary');
  31062. }
  31063. this.push(data);
  31064. return this._offset += data.length;
  31065. };
  31066. PDFDocument.prototype.addContent = function(data) {
  31067. this.page.write(data);
  31068. return this;
  31069. };
  31070. PDFDocument.prototype._refEnd = function(ref) {
  31071. this._offsets[ref.id - 1] = ref.offset;
  31072. if (--this._waiting === 0 && this._ended) {
  31073. this._finalize();
  31074. return this._ended = false;
  31075. }
  31076. };
  31077. PDFDocument.prototype.write = function(filename, fn) {
  31078. var err;
  31079. err = new Error('PDFDocument#write is deprecated, and will be removed in a future version of PDFKit. Please pipe the document into a Node stream.');
  31080. console.warn(err.stack);
  31081. this.pipe(fs.createWriteStream(filename));
  31082. this.end();
  31083. return this.once('end', fn);
  31084. };
  31085. PDFDocument.prototype.output = function(fn) {
  31086. throw new Error('PDFDocument#output is deprecated, and has been removed from PDFKit. Please pipe the document into a Node stream.');
  31087. };
  31088. PDFDocument.prototype.end = function() {
  31089. var font, key, name, val, _ref, _ref1;
  31090. this.flushPages();
  31091. this._info = this.ref();
  31092. _ref = this.info;
  31093. for (key in _ref) {
  31094. val = _ref[key];
  31095. if (typeof val === 'string') {
  31096. val = new String(val);
  31097. }
  31098. this._info.data[key] = val;
  31099. }
  31100. this._info.end();
  31101. _ref1 = this._fontFamilies;
  31102. for (name in _ref1) {
  31103. font = _ref1[name];
  31104. font.embed();
  31105. }
  31106. this._root.end();
  31107. this._root.data.Pages.end();
  31108. if (this._waiting === 0) {
  31109. return this._finalize();
  31110. } else {
  31111. return this._ended = true;
  31112. }
  31113. };
  31114. PDFDocument.prototype._finalize = function(fn) {
  31115. var offset, xRefOffset, _i, _len, _ref;
  31116. xRefOffset = this._offset;
  31117. this._write("xref");
  31118. this._write("0 " + (this._offsets.length + 1));
  31119. this._write("0000000000 65535 f ");
  31120. _ref = this._offsets;
  31121. for (_i = 0, _len = _ref.length; _i < _len; _i++) {
  31122. offset = _ref[_i];
  31123. offset = ('0000000000' + offset).slice(-10);
  31124. this._write(offset + ' 00000 n ');
  31125. }
  31126. this._write('trailer');
  31127. this._write(PDFObject.convert({
  31128. Size: this._offsets.length + 1,
  31129. Root: this._root,
  31130. Info: this._info
  31131. }));
  31132. this._write('startxref');
  31133. this._write("" + xRefOffset);
  31134. this._write('%%EOF');
  31135. return this.push(null);
  31136. };
  31137. PDFDocument.prototype.toString = function() {
  31138. return "[object PDFDocument]";
  31139. };
  31140. return PDFDocument;
  31141. })(stream.Readable);
  31142. module.exports = PDFDocument;
  31143. }).call(this);
  31144. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4).Buffer))
  31145. /***/ },
  31146. /* 29 */
  31147. /***/ function(module, exports, __webpack_require__) {
  31148. exports.read = function(buffer, offset, isLE, mLen, nBytes) {
  31149. var e, m,
  31150. eLen = nBytes * 8 - mLen - 1,
  31151. eMax = (1 << eLen) - 1,
  31152. eBias = eMax >> 1,
  31153. nBits = -7,
  31154. i = isLE ? (nBytes - 1) : 0,
  31155. d = isLE ? -1 : 1,
  31156. s = buffer[offset + i];
  31157. i += d;
  31158. e = s & ((1 << (-nBits)) - 1);
  31159. s >>= (-nBits);
  31160. nBits += eLen;
  31161. for (; nBits > 0; e = e * 256 + buffer[offset + i], i += d, nBits -= 8);
  31162. m = e & ((1 << (-nBits)) - 1);
  31163. e >>= (-nBits);
  31164. nBits += mLen;
  31165. for (; nBits > 0; m = m * 256 + buffer[offset + i], i += d, nBits -= 8);
  31166. if (e === 0) {
  31167. e = 1 - eBias;
  31168. } else if (e === eMax) {
  31169. return m ? NaN : ((s ? -1 : 1) * Infinity);
  31170. } else {
  31171. m = m + Math.pow(2, mLen);
  31172. e = e - eBias;
  31173. }
  31174. return (s ? -1 : 1) * m * Math.pow(2, e - mLen);
  31175. };
  31176. exports.write = function(buffer, value, offset, isLE, mLen, nBytes) {
  31177. var e, m, c,
  31178. eLen = nBytes * 8 - mLen - 1,
  31179. eMax = (1 << eLen) - 1,
  31180. eBias = eMax >> 1,
  31181. rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0),
  31182. i = isLE ? 0 : (nBytes - 1),
  31183. d = isLE ? 1 : -1,
  31184. s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0;
  31185. value = Math.abs(value);
  31186. if (isNaN(value) || value === Infinity) {
  31187. m = isNaN(value) ? 1 : 0;
  31188. e = eMax;
  31189. } else {
  31190. e = Math.floor(Math.log(value) / Math.LN2);
  31191. if (value * (c = Math.pow(2, -e)) < 1) {
  31192. e--;
  31193. c *= 2;
  31194. }
  31195. if (e + eBias >= 1) {
  31196. value += rt / c;
  31197. } else {
  31198. value += rt * Math.pow(2, 1 - eBias);
  31199. }
  31200. if (value * c >= 2) {
  31201. e++;
  31202. c /= 2;
  31203. }
  31204. if (e + eBias >= eMax) {
  31205. m = 0;
  31206. e = eMax;
  31207. } else if (e + eBias >= 1) {
  31208. m = (value * c - 1) * Math.pow(2, mLen);
  31209. e = e + eBias;
  31210. } else {
  31211. m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen);
  31212. e = 0;
  31213. }
  31214. }
  31215. for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8);
  31216. e = (e << mLen) | m;
  31217. eLen += mLen;
  31218. for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8);
  31219. buffer[offset + i - d] |= s * 128;
  31220. };
  31221. /***/ },
  31222. /* 30 */
  31223. /***/ function(module, exports, __webpack_require__) {
  31224. /**
  31225. * isArray
  31226. */
  31227. var isArray = Array.isArray;
  31228. /**
  31229. * toString
  31230. */
  31231. var str = Object.prototype.toString;
  31232. /**
  31233. * Whether or not the given `val`
  31234. * is an array.
  31235. *
  31236. * example:
  31237. *
  31238. * isArray([]);
  31239. * // > true
  31240. * isArray(arguments);
  31241. * // > false
  31242. * isArray('');
  31243. * // > false
  31244. *
  31245. * @param {mixed} val
  31246. * @return {bool}
  31247. */
  31248. module.exports = isArray || function (val) {
  31249. return !! val && '[object Array]' == str.call(val);
  31250. };
  31251. /***/ },
  31252. /* 31 */
  31253. /***/ function(module, exports, __webpack_require__) {
  31254. var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
  31255. ;(function (exports) {
  31256. 'use strict';
  31257. var Arr = (typeof Uint8Array !== 'undefined')
  31258. ? Uint8Array
  31259. : Array
  31260. var PLUS = '+'.charCodeAt(0)
  31261. var SLASH = '/'.charCodeAt(0)
  31262. var NUMBER = '0'.charCodeAt(0)
  31263. var LOWER = 'a'.charCodeAt(0)
  31264. var UPPER = 'A'.charCodeAt(0)
  31265. var PLUS_URL_SAFE = '-'.charCodeAt(0)
  31266. var SLASH_URL_SAFE = '_'.charCodeAt(0)
  31267. function decode (elt) {
  31268. var code = elt.charCodeAt(0)
  31269. if (code === PLUS ||
  31270. code === PLUS_URL_SAFE)
  31271. return 62 // '+'
  31272. if (code === SLASH ||
  31273. code === SLASH_URL_SAFE)
  31274. return 63 // '/'
  31275. if (code < NUMBER)
  31276. return -1 //no match
  31277. if (code < NUMBER + 10)
  31278. return code - NUMBER + 26 + 26
  31279. if (code < UPPER + 26)
  31280. return code - UPPER
  31281. if (code < LOWER + 26)
  31282. return code - LOWER + 26
  31283. }
  31284. function b64ToByteArray (b64) {
  31285. var i, j, l, tmp, placeHolders, arr
  31286. if (b64.length % 4 > 0) {
  31287. throw new Error('Invalid string. Length must be a multiple of 4')
  31288. }
  31289. // the number of equal signs (place holders)
  31290. // if there are two placeholders, than the two characters before it
  31291. // represent one byte
  31292. // if there is only one, then the three characters before it represent 2 bytes
  31293. // this is just a cheap hack to not do indexOf twice
  31294. var len = b64.length
  31295. placeHolders = '=' === b64.charAt(len - 2) ? 2 : '=' === b64.charAt(len - 1) ? 1 : 0
  31296. // base64 is 4/3 + up to two characters of the original data
  31297. arr = new Arr(b64.length * 3 / 4 - placeHolders)
  31298. // if there are placeholders, only get up to the last complete 4 chars
  31299. l = placeHolders > 0 ? b64.length - 4 : b64.length
  31300. var L = 0
  31301. function push (v) {
  31302. arr[L++] = v
  31303. }
  31304. for (i = 0, j = 0; i < l; i += 4, j += 3) {
  31305. tmp = (decode(b64.charAt(i)) << 18) | (decode(b64.charAt(i + 1)) << 12) | (decode(b64.charAt(i + 2)) << 6) | decode(b64.charAt(i + 3))
  31306. push((tmp & 0xFF0000) >> 16)
  31307. push((tmp & 0xFF00) >> 8)
  31308. push(tmp & 0xFF)
  31309. }
  31310. if (placeHolders === 2) {
  31311. tmp = (decode(b64.charAt(i)) << 2) | (decode(b64.charAt(i + 1)) >> 4)
  31312. push(tmp & 0xFF)
  31313. } else if (placeHolders === 1) {
  31314. tmp = (decode(b64.charAt(i)) << 10) | (decode(b64.charAt(i + 1)) << 4) | (decode(b64.charAt(i + 2)) >> 2)
  31315. push((tmp >> 8) & 0xFF)
  31316. push(tmp & 0xFF)
  31317. }
  31318. return arr
  31319. }
  31320. function uint8ToBase64 (uint8) {
  31321. var i,
  31322. extraBytes = uint8.length % 3, // if we have 1 byte left, pad 2 bytes
  31323. output = "",
  31324. temp, length
  31325. function encode (num) {
  31326. return lookup.charAt(num)
  31327. }
  31328. function tripletToBase64 (num) {
  31329. return encode(num >> 18 & 0x3F) + encode(num >> 12 & 0x3F) + encode(num >> 6 & 0x3F) + encode(num & 0x3F)
  31330. }
  31331. // go through the array every three bytes, we'll deal with trailing stuff later
  31332. for (i = 0, length = uint8.length - extraBytes; i < length; i += 3) {
  31333. temp = (uint8[i] << 16) + (uint8[i + 1] << 8) + (uint8[i + 2])
  31334. output += tripletToBase64(temp)
  31335. }
  31336. // pad the end with zeros, but make sure to not forget the extra bytes
  31337. switch (extraBytes) {
  31338. case 1:
  31339. temp = uint8[uint8.length - 1]
  31340. output += encode(temp >> 2)
  31341. output += encode((temp << 4) & 0x3F)
  31342. output += '=='
  31343. break
  31344. case 2:
  31345. temp = (uint8[uint8.length - 2] << 8) + (uint8[uint8.length - 1])
  31346. output += encode(temp >> 10)
  31347. output += encode((temp >> 4) & 0x3F)
  31348. output += encode((temp << 2) & 0x3F)
  31349. output += '='
  31350. break
  31351. }
  31352. return output
  31353. }
  31354. exports.toByteArray = b64ToByteArray
  31355. exports.fromByteArray = uint8ToBase64
  31356. }(false ? (this.base64js = {}) : exports))
  31357. /***/ },
  31358. /* 32 */
  31359. /***/ function(module, exports, __webpack_require__) {
  31360. /* WEBPACK VAR INJECTION */(function(Buffer) {// Generated by CoffeeScript 1.7.1
  31361. /*
  31362. PDFObject - converts JavaScript types into their corrisponding PDF types.
  31363. By Devon Govett
  31364. */
  31365. (function() {
  31366. var PDFObject, PDFReference;
  31367. PDFObject = (function() {
  31368. var escapable, escapableRe, pad, swapBytes;
  31369. function PDFObject() {}
  31370. pad = function(str, length) {
  31371. return (Array(length + 1).join('0') + str).slice(-length);
  31372. };
  31373. escapableRe = /[\n\r\t\b\f\(\)\\]/g;
  31374. escapable = {
  31375. '\n': '\\n',
  31376. '\r': '\\r',
  31377. '\t': '\\t',
  31378. '\b': '\\b',
  31379. '\f': '\\f',
  31380. '\\': '\\\\',
  31381. '(': '\\(',
  31382. ')': '\\)'
  31383. };
  31384. swapBytes = function(buff) {
  31385. var a, i, l, _i, _ref;
  31386. l = buff.length;
  31387. if (l & 0x01) {
  31388. throw new Error("Buffer length must be even");
  31389. } else {
  31390. for (i = _i = 0, _ref = l - 1; _i < _ref; i = _i += 2) {
  31391. a = buff[i];
  31392. buff[i] = buff[i + 1];
  31393. buff[i + 1] = a;
  31394. }
  31395. }
  31396. return buff;
  31397. };
  31398. PDFObject.convert = function(object) {
  31399. var e, i, isUnicode, items, key, out, string, val, _i, _ref;
  31400. if (typeof object === 'string') {
  31401. return '/' + object;
  31402. } else if (object instanceof String) {
  31403. string = object.replace(escapableRe, function(c) {
  31404. return escapable[c];
  31405. });
  31406. isUnicode = false;
  31407. for (i = _i = 0, _ref = string.length; _i < _ref; i = _i += 1) {
  31408. if (string.charCodeAt(i) > 0x7f) {
  31409. isUnicode = true;
  31410. break;
  31411. }
  31412. }
  31413. if (isUnicode) {
  31414. string = swapBytes(new Buffer('\ufeff' + string, 'utf16le')).toString('binary');
  31415. }
  31416. return '(' + string + ')';
  31417. } else if (Buffer.isBuffer(object)) {
  31418. return '<' + object.toString('hex') + '>';
  31419. } else if (object instanceof PDFReference) {
  31420. return object.toString();
  31421. } else if (object instanceof Date) {
  31422. return '(D:' + pad(object.getUTCFullYear(), 4) + pad(object.getUTCMonth(), 2) + pad(object.getUTCDate(), 2) + pad(object.getUTCHours(), 2) + pad(object.getUTCMinutes(), 2) + pad(object.getUTCSeconds(), 2) + 'Z)';
  31423. } else if (Array.isArray(object)) {
  31424. items = ((function() {
  31425. var _j, _len, _results;
  31426. _results = [];
  31427. for (_j = 0, _len = object.length; _j < _len; _j++) {
  31428. e = object[_j];
  31429. _results.push(PDFObject.convert(e));
  31430. }
  31431. return _results;
  31432. })()).join(' ');
  31433. return '[' + items + ']';
  31434. } else if ({}.toString.call(object) === '[object Object]') {
  31435. out = ['<<'];
  31436. for (key in object) {
  31437. val = object[key];
  31438. out.push('/' + key + ' ' + PDFObject.convert(val));
  31439. }
  31440. out.push('>>');
  31441. return out.join('\n');
  31442. } else {
  31443. return '' + object;
  31444. }
  31445. };
  31446. return PDFObject;
  31447. })();
  31448. module.exports = PDFObject;
  31449. PDFReference = __webpack_require__(12);
  31450. }).call(this);
  31451. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4).Buffer))
  31452. /***/ },
  31453. /* 33 */
  31454. /***/ function(module, exports, __webpack_require__) {
  31455. /* jslint node: true */
  31456. 'use strict';
  31457. /*jshint -W004 */
  31458. /* qr.js -- QR code generator in Javascript (revision 2011-01-19)
  31459. * Written by Kang Seonghoon <public+qrjs@mearie.org>.
  31460. *
  31461. * This source code is in the public domain; if your jurisdiction does not
  31462. * recognize the public domain the terms of Creative Commons CC0 license
  31463. * apply. In the other words, you can always do what you want.
  31464. */
  31465. // per-version information (cf. JIS X 0510:2004 pp. 30--36, 71)
  31466. //
  31467. // [0]: the degree of generator polynomial by ECC levels
  31468. // [1]: # of code blocks by ECC levels
  31469. // [2]: left-top positions of alignment patterns
  31470. //
  31471. // the number in this table (in particular, [0]) does not exactly match with
  31472. // the numbers in the specficiation. see augumenteccs below for the reason.
  31473. var VERSIONS = [
  31474. null,
  31475. [[10, 7,17,13], [ 1, 1, 1, 1], []],
  31476. [[16,10,28,22], [ 1, 1, 1, 1], [4,16]],
  31477. [[26,15,22,18], [ 1, 1, 2, 2], [4,20]],
  31478. [[18,20,16,26], [ 2, 1, 4, 2], [4,24]],
  31479. [[24,26,22,18], [ 2, 1, 4, 4], [4,28]],
  31480. [[16,18,28,24], [ 4, 2, 4, 4], [4,32]],
  31481. [[18,20,26,18], [ 4, 2, 5, 6], [4,20,36]],
  31482. [[22,24,26,22], [ 4, 2, 6, 6], [4,22,40]],
  31483. [[22,30,24,20], [ 5, 2, 8, 8], [4,24,44]],
  31484. [[26,18,28,24], [ 5, 4, 8, 8], [4,26,48]],
  31485. [[30,20,24,28], [ 5, 4,11, 8], [4,28,52]],
  31486. [[22,24,28,26], [ 8, 4,11,10], [4,30,56]],
  31487. [[22,26,22,24], [ 9, 4,16,12], [4,32,60]],
  31488. [[24,30,24,20], [ 9, 4,16,16], [4,24,44,64]],
  31489. [[24,22,24,30], [10, 6,18,12], [4,24,46,68]],
  31490. [[28,24,30,24], [10, 6,16,17], [4,24,48,72]],
  31491. [[28,28,28,28], [11, 6,19,16], [4,28,52,76]],
  31492. [[26,30,28,28], [13, 6,21,18], [4,28,54,80]],
  31493. [[26,28,26,26], [14, 7,25,21], [4,28,56,84]],
  31494. [[26,28,28,30], [16, 8,25,20], [4,32,60,88]],
  31495. [[26,28,30,28], [17, 8,25,23], [4,26,48,70,92]],
  31496. [[28,28,24,30], [17, 9,34,23], [4,24,48,72,96]],
  31497. [[28,30,30,30], [18, 9,30,25], [4,28,52,76,100]],
  31498. [[28,30,30,30], [20,10,32,27], [4,26,52,78,104]],
  31499. [[28,26,30,30], [21,12,35,29], [4,30,56,82,108]],
  31500. [[28,28,30,28], [23,12,37,34], [4,28,56,84,112]],
  31501. [[28,30,30,30], [25,12,40,34], [4,32,60,88,116]],
  31502. [[28,30,30,30], [26,13,42,35], [4,24,48,72,96,120]],
  31503. [[28,30,30,30], [28,14,45,38], [4,28,52,76,100,124]],
  31504. [[28,30,30,30], [29,15,48,40], [4,24,50,76,102,128]],
  31505. [[28,30,30,30], [31,16,51,43], [4,28,54,80,106,132]],
  31506. [[28,30,30,30], [33,17,54,45], [4,32,58,84,110,136]],
  31507. [[28,30,30,30], [35,18,57,48], [4,28,56,84,112,140]],
  31508. [[28,30,30,30], [37,19,60,51], [4,32,60,88,116,144]],
  31509. [[28,30,30,30], [38,19,63,53], [4,28,52,76,100,124,148]],
  31510. [[28,30,30,30], [40,20,66,56], [4,22,48,74,100,126,152]],
  31511. [[28,30,30,30], [43,21,70,59], [4,26,52,78,104,130,156]],
  31512. [[28,30,30,30], [45,22,74,62], [4,30,56,82,108,134,160]],
  31513. [[28,30,30,30], [47,24,77,65], [4,24,52,80,108,136,164]],
  31514. [[28,30,30,30], [49,25,81,68], [4,28,56,84,112,140,168]]];
  31515. // mode constants (cf. Table 2 in JIS X 0510:2004 p. 16)
  31516. var MODE_TERMINATOR = 0;
  31517. var MODE_NUMERIC = 1, MODE_ALPHANUMERIC = 2, MODE_OCTET = 4, MODE_KANJI = 8;
  31518. // validation regexps
  31519. var NUMERIC_REGEXP = /^\d*$/;
  31520. var ALPHANUMERIC_REGEXP = /^[A-Za-z0-9 $%*+\-./:]*$/;
  31521. var ALPHANUMERIC_OUT_REGEXP = /^[A-Z0-9 $%*+\-./:]*$/;
  31522. // ECC levels (cf. Table 22 in JIS X 0510:2004 p. 45)
  31523. var ECCLEVEL_L = 1, ECCLEVEL_M = 0, ECCLEVEL_Q = 3, ECCLEVEL_H = 2;
  31524. // GF(2^8)-to-integer mapping with a reducing polynomial x^8+x^4+x^3+x^2+1
  31525. // invariant: GF256_MAP[GF256_INVMAP[i]] == i for all i in [1,256)
  31526. var GF256_MAP = [], GF256_INVMAP = [-1];
  31527. for (var i = 0, v = 1; i < 255; ++i) {
  31528. GF256_MAP.push(v);
  31529. GF256_INVMAP[v] = i;
  31530. v = (v * 2) ^ (v >= 128 ? 0x11d : 0);
  31531. }
  31532. // generator polynomials up to degree 30
  31533. // (should match with polynomials in JIS X 0510:2004 Appendix A)
  31534. //
  31535. // generator polynomial of degree K is product of (x-\alpha^0), (x-\alpha^1),
  31536. // ..., (x-\alpha^(K-1)). by convention, we omit the K-th coefficient (always 1)
  31537. // from the result; also other coefficients are written in terms of the exponent
  31538. // to \alpha to avoid the redundant calculation. (see also calculateecc below.)
  31539. var GF256_GENPOLY = [[]];
  31540. for (var i = 0; i < 30; ++i) {
  31541. var prevpoly = GF256_GENPOLY[i], poly = [];
  31542. for (var j = 0; j <= i; ++j) {
  31543. var a = (j < i ? GF256_MAP[prevpoly[j]] : 0);
  31544. var b = GF256_MAP[(i + (prevpoly[j-1] || 0)) % 255];
  31545. poly.push(GF256_INVMAP[a ^ b]);
  31546. }
  31547. GF256_GENPOLY.push(poly);
  31548. }
  31549. // alphanumeric character mapping (cf. Table 5 in JIS X 0510:2004 p. 19)
  31550. var ALPHANUMERIC_MAP = {};
  31551. for (var i = 0; i < 45; ++i) {
  31552. ALPHANUMERIC_MAP['0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:'.charAt(i)] = i;
  31553. }
  31554. // mask functions in terms of row # and column #
  31555. // (cf. Table 20 in JIS X 0510:2004 p. 42)
  31556. var MASKFUNCS = [
  31557. function(i,j) { return (i+j) % 2 === 0; },
  31558. function(i,j) { return i % 2 === 0; },
  31559. function(i,j) { return j % 3 === 0; },
  31560. function(i,j) { return (i+j) % 3 === 0; },
  31561. function(i,j) { return (((i/2)|0) + ((j/3)|0)) % 2 === 0; },
  31562. function(i,j) { return (i*j) % 2 + (i*j) % 3 === 0; },
  31563. function(i,j) { return ((i*j) % 2 + (i*j) % 3) % 2 === 0; },
  31564. function(i,j) { return ((i+j) % 2 + (i*j) % 3) % 2 === 0; }];
  31565. // returns true when the version information has to be embeded.
  31566. var needsverinfo = function(ver) { return ver > 6; };
  31567. // returns the size of entire QR code for given version.
  31568. var getsizebyver = function(ver) { return 4 * ver + 17; };
  31569. // returns the number of bits available for code words in this version.
  31570. var nfullbits = function(ver) {
  31571. /*
  31572. * |<--------------- n --------------->|
  31573. * | |<----- n-17 ---->| |
  31574. * +-------+ ///+-------+ ----
  31575. * | | ///| | ^
  31576. * | 9x9 | @@@@@ ///| 9x8 | |
  31577. * | | # # # @5x5@ # # # | | |
  31578. * +-------+ @@@@@ +-------+ |
  31579. * # ---|
  31580. * ^ |
  31581. * # |
  31582. * @@@@@ @@@@@ @@@@@ | n
  31583. * @5x5@ @5x5@ @5x5@ n-17
  31584. * @@@@@ @@@@@ @@@@@ | |
  31585. * # | |
  31586. * ////// v |
  31587. * //////# ---|
  31588. * +-------+ @@@@@ @@@@@ |
  31589. * | | @5x5@ @5x5@ |
  31590. * | 8x9 | @@@@@ @@@@@ |
  31591. * | | v
  31592. * +-------+ ----
  31593. *
  31594. * when the entire code has n^2 modules and there are m^2-3 alignment
  31595. * patterns, we have:
  31596. * - 225 (= 9x9 + 9x8 + 8x9) modules for finder patterns and
  31597. * format information;
  31598. * - 2n-34 (= 2(n-17)) modules for timing patterns;
  31599. * - 36 (= 3x6 + 6x3) modules for version information, if any;
  31600. * - 25m^2-75 (= (m^2-3)(5x5)) modules for alignment patterns
  31601. * if any, but 10m-20 (= 2(m-2)x5) of them overlaps with
  31602. * timing patterns.
  31603. */
  31604. var v = VERSIONS[ver];
  31605. var nbits = 16*ver*ver + 128*ver + 64; // finder, timing and format info.
  31606. if (needsverinfo(ver)) nbits -= 36; // version information
  31607. if (v[2].length) { // alignment patterns
  31608. nbits -= 25 * v[2].length * v[2].length - 10 * v[2].length - 55;
  31609. }
  31610. return nbits;
  31611. };
  31612. // returns the number of bits available for data portions (i.e. excludes ECC
  31613. // bits but includes mode and length bits) in this version and ECC level.
  31614. var ndatabits = function(ver, ecclevel) {
  31615. var nbits = nfullbits(ver) & ~7; // no sub-octet code words
  31616. var v = VERSIONS[ver];
  31617. nbits -= 8 * v[0][ecclevel] * v[1][ecclevel]; // ecc bits
  31618. return nbits;
  31619. };
  31620. // returns the number of bits required for the length of data.
  31621. // (cf. Table 3 in JIS X 0510:2004 p. 16)
  31622. var ndatalenbits = function(ver, mode) {
  31623. switch (mode) {
  31624. case MODE_NUMERIC: return (ver < 10 ? 10 : ver < 27 ? 12 : 14);
  31625. case MODE_ALPHANUMERIC: return (ver < 10 ? 9 : ver < 27 ? 11 : 13);
  31626. case MODE_OCTET: return (ver < 10 ? 8 : 16);
  31627. case MODE_KANJI: return (ver < 10 ? 8 : ver < 27 ? 10 : 12);
  31628. }
  31629. };
  31630. // returns the maximum length of data possible in given configuration.
  31631. var getmaxdatalen = function(ver, mode, ecclevel) {
  31632. var nbits = ndatabits(ver, ecclevel) - 4 - ndatalenbits(ver, mode); // 4 for mode bits
  31633. switch (mode) {
  31634. case MODE_NUMERIC:
  31635. return ((nbits/10) | 0) * 3 + (nbits%10 < 4 ? 0 : nbits%10 < 7 ? 1 : 2);
  31636. case MODE_ALPHANUMERIC:
  31637. return ((nbits/11) | 0) * 2 + (nbits%11 < 6 ? 0 : 1);
  31638. case MODE_OCTET:
  31639. return (nbits/8) | 0;
  31640. case MODE_KANJI:
  31641. return (nbits/13) | 0;
  31642. }
  31643. };
  31644. // checks if the given data can be encoded in given mode, and returns
  31645. // the converted data for the further processing if possible. otherwise
  31646. // returns null.
  31647. //
  31648. // this function does not check the length of data; it is a duty of
  31649. // encode function below (as it depends on the version and ECC level too).
  31650. var validatedata = function(mode, data) {
  31651. switch (mode) {
  31652. case MODE_NUMERIC:
  31653. if (!data.match(NUMERIC_REGEXP)) return null;
  31654. return data;
  31655. case MODE_ALPHANUMERIC:
  31656. if (!data.match(ALPHANUMERIC_REGEXP)) return null;
  31657. return data.toUpperCase();
  31658. case MODE_OCTET:
  31659. if (typeof data === 'string') { // encode as utf-8 string
  31660. var newdata = [];
  31661. for (var i = 0; i < data.length; ++i) {
  31662. var ch = data.charCodeAt(i);
  31663. if (ch < 0x80) {
  31664. newdata.push(ch);
  31665. } else if (ch < 0x800) {
  31666. newdata.push(0xc0 | (ch >> 6),
  31667. 0x80 | (ch & 0x3f));
  31668. } else if (ch < 0x10000) {
  31669. newdata.push(0xe0 | (ch >> 12),
  31670. 0x80 | ((ch >> 6) & 0x3f),
  31671. 0x80 | (ch & 0x3f));
  31672. } else {
  31673. newdata.push(0xf0 | (ch >> 18),
  31674. 0x80 | ((ch >> 12) & 0x3f),
  31675. 0x80 | ((ch >> 6) & 0x3f),
  31676. 0x80 | (ch & 0x3f));
  31677. }
  31678. }
  31679. return newdata;
  31680. } else {
  31681. return data;
  31682. }
  31683. }
  31684. };
  31685. // returns the code words (sans ECC bits) for given data and configurations.
  31686. // requires data to be preprocessed by validatedata. no length check is
  31687. // performed, and everything has to be checked before calling this function.
  31688. var encode = function(ver, mode, data, maxbuflen) {
  31689. var buf = [];
  31690. var bits = 0, remaining = 8;
  31691. var datalen = data.length;
  31692. // this function is intentionally no-op when n=0.
  31693. var pack = function(x, n) {
  31694. if (n >= remaining) {
  31695. buf.push(bits | (x >> (n -= remaining)));
  31696. while (n >= 8) buf.push((x >> (n -= 8)) & 255);
  31697. bits = 0;
  31698. remaining = 8;
  31699. }
  31700. if (n > 0) bits |= (x & ((1 << n) - 1)) << (remaining -= n);
  31701. };
  31702. var nlenbits = ndatalenbits(ver, mode);
  31703. pack(mode, 4);
  31704. pack(datalen, nlenbits);
  31705. switch (mode) {
  31706. case MODE_NUMERIC:
  31707. for (var i = 2; i < datalen; i += 3) {
  31708. pack(parseInt(data.substring(i-2,i+1), 10), 10);
  31709. }
  31710. pack(parseInt(data.substring(i-2), 10), [0,4,7][datalen%3]);
  31711. break;
  31712. case MODE_ALPHANUMERIC:
  31713. for (var i = 1; i < datalen; i += 2) {
  31714. pack(ALPHANUMERIC_MAP[data.charAt(i-1)] * 45 +
  31715. ALPHANUMERIC_MAP[data.charAt(i)], 11);
  31716. }
  31717. if (datalen % 2 == 1) {
  31718. pack(ALPHANUMERIC_MAP[data.charAt(i-1)], 6);
  31719. }
  31720. break;
  31721. case MODE_OCTET:
  31722. for (var i = 0; i < datalen; ++i) {
  31723. pack(data[i], 8);
  31724. }
  31725. break;
  31726. }
  31727. // final bits. it is possible that adding terminator causes the buffer
  31728. // to overflow, but then the buffer truncated to the maximum size will
  31729. // be valid as the truncated terminator mode bits and padding is
  31730. // identical in appearance (cf. JIS X 0510:2004 sec 8.4.8).
  31731. pack(MODE_TERMINATOR, 4);
  31732. if (remaining < 8) buf.push(bits);
  31733. // the padding to fill up the remaining space. we should not add any
  31734. // words when the overflow already occurred.
  31735. while (buf.length + 1 < maxbuflen) buf.push(0xec, 0x11);
  31736. if (buf.length < maxbuflen) buf.push(0xec);
  31737. return buf;
  31738. };
  31739. // calculates ECC code words for given code words and generator polynomial.
  31740. //
  31741. // this is quite similar to CRC calculation as both Reed-Solomon and CRC use
  31742. // the certain kind of cyclic codes, which is effectively the division of
  31743. // zero-augumented polynomial by the generator polynomial. the only difference
  31744. // is that Reed-Solomon uses GF(2^8), instead of CRC's GF(2), and Reed-Solomon
  31745. // uses the different generator polynomial than CRC's.
  31746. var calculateecc = function(poly, genpoly) {
  31747. var modulus = poly.slice(0);
  31748. var polylen = poly.length, genpolylen = genpoly.length;
  31749. for (var i = 0; i < genpolylen; ++i) modulus.push(0);
  31750. for (var i = 0; i < polylen; ) {
  31751. var quotient = GF256_INVMAP[modulus[i++]];
  31752. if (quotient >= 0) {
  31753. for (var j = 0; j < genpolylen; ++j) {
  31754. modulus[i+j] ^= GF256_MAP[(quotient + genpoly[j]) % 255];
  31755. }
  31756. }
  31757. }
  31758. return modulus.slice(polylen);
  31759. };
  31760. // auguments ECC code words to given code words. the resulting words are
  31761. // ready to be encoded in the matrix.
  31762. //
  31763. // the much of actual augumenting procedure follows JIS X 0510:2004 sec 8.7.
  31764. // the code is simplified using the fact that the size of each code & ECC
  31765. // blocks is almost same; for example, when we have 4 blocks and 46 data words
  31766. // the number of code words in those blocks are 11, 11, 12, 12 respectively.
  31767. var augumenteccs = function(poly, nblocks, genpoly) {
  31768. var subsizes = [];
  31769. var subsize = (poly.length / nblocks) | 0, subsize0 = 0;
  31770. var pivot = nblocks - poly.length % nblocks;
  31771. for (var i = 0; i < pivot; ++i) {
  31772. subsizes.push(subsize0);
  31773. subsize0 += subsize;
  31774. }
  31775. for (var i = pivot; i < nblocks; ++i) {
  31776. subsizes.push(subsize0);
  31777. subsize0 += subsize+1;
  31778. }
  31779. subsizes.push(subsize0);
  31780. var eccs = [];
  31781. for (var i = 0; i < nblocks; ++i) {
  31782. eccs.push(calculateecc(poly.slice(subsizes[i], subsizes[i+1]), genpoly));
  31783. }
  31784. var result = [];
  31785. var nitemsperblock = (poly.length / nblocks) | 0;
  31786. for (var i = 0; i < nitemsperblock; ++i) {
  31787. for (var j = 0; j < nblocks; ++j) {
  31788. result.push(poly[subsizes[j] + i]);
  31789. }
  31790. }
  31791. for (var j = pivot; j < nblocks; ++j) {
  31792. result.push(poly[subsizes[j+1] - 1]);
  31793. }
  31794. for (var i = 0; i < genpoly.length; ++i) {
  31795. for (var j = 0; j < nblocks; ++j) {
  31796. result.push(eccs[j][i]);
  31797. }
  31798. }
  31799. return result;
  31800. };
  31801. // auguments BCH(p+q,q) code to the polynomial over GF(2), given the proper
  31802. // genpoly. the both input and output are in binary numbers, and unlike
  31803. // calculateecc genpoly should include the 1 bit for the highest degree.
  31804. //
  31805. // actual polynomials used for this procedure are as follows:
  31806. // - p=10, q=5, genpoly=x^10+x^8+x^5+x^4+x^2+x+1 (JIS X 0510:2004 Appendix C)
  31807. // - p=18, q=6, genpoly=x^12+x^11+x^10+x^9+x^8+x^5+x^2+1 (ibid. Appendix D)
  31808. var augumentbch = function(poly, p, genpoly, q) {
  31809. var modulus = poly << q;
  31810. for (var i = p - 1; i >= 0; --i) {
  31811. if ((modulus >> (q+i)) & 1) modulus ^= genpoly << i;
  31812. }
  31813. return (poly << q) | modulus;
  31814. };
  31815. // creates the base matrix for given version. it returns two matrices, one of
  31816. // them is the actual one and the another represents the "reserved" portion
  31817. // (e.g. finder and timing patterns) of the matrix.
  31818. //
  31819. // some entries in the matrix may be undefined, rather than 0 or 1. this is
  31820. // intentional (no initialization needed!), and putdata below will fill
  31821. // the remaining ones.
  31822. var makebasematrix = function(ver) {
  31823. var v = VERSIONS[ver], n = getsizebyver(ver);
  31824. var matrix = [], reserved = [];
  31825. for (var i = 0; i < n; ++i) {
  31826. matrix.push([]);
  31827. reserved.push([]);
  31828. }
  31829. var blit = function(y, x, h, w, bits) {
  31830. for (var i = 0; i < h; ++i) {
  31831. for (var j = 0; j < w; ++j) {
  31832. matrix[y+i][x+j] = (bits[i] >> j) & 1;
  31833. reserved[y+i][x+j] = 1;
  31834. }
  31835. }
  31836. };
  31837. // finder patterns and a part of timing patterns
  31838. // will also mark the format information area (not yet written) as reserved.
  31839. blit(0, 0, 9, 9, [0x7f, 0x41, 0x5d, 0x5d, 0x5d, 0x41, 0x17f, 0x00, 0x40]);
  31840. blit(n-8, 0, 8, 9, [0x100, 0x7f, 0x41, 0x5d, 0x5d, 0x5d, 0x41, 0x7f]);
  31841. blit(0, n-8, 9, 8, [0xfe, 0x82, 0xba, 0xba, 0xba, 0x82, 0xfe, 0x00, 0x00]);
  31842. // the rest of timing patterns
  31843. for (var i = 9; i < n-8; ++i) {
  31844. matrix[6][i] = matrix[i][6] = ~i & 1;
  31845. reserved[6][i] = reserved[i][6] = 1;
  31846. }
  31847. // alignment patterns
  31848. var aligns = v[2], m = aligns.length;
  31849. for (var i = 0; i < m; ++i) {
  31850. var minj = (i===0 || i===m-1 ? 1 : 0), maxj = (i===0 ? m-1 : m);
  31851. for (var j = minj; j < maxj; ++j) {
  31852. blit(aligns[i], aligns[j], 5, 5, [0x1f, 0x11, 0x15, 0x11, 0x1f]);
  31853. }
  31854. }
  31855. // version information
  31856. if (needsverinfo(ver)) {
  31857. var code = augumentbch(ver, 6, 0x1f25, 12);
  31858. var k = 0;
  31859. for (var i = 0; i < 6; ++i) {
  31860. for (var j = 0; j < 3; ++j) {
  31861. matrix[i][(n-11)+j] = matrix[(n-11)+j][i] = (code >> k++) & 1;
  31862. reserved[i][(n-11)+j] = reserved[(n-11)+j][i] = 1;
  31863. }
  31864. }
  31865. }
  31866. return {matrix: matrix, reserved: reserved};
  31867. };
  31868. // fills the data portion (i.e. unmarked in reserved) of the matrix with given
  31869. // code words. the size of code words should be no more than available bits,
  31870. // and remaining bits are padded to 0 (cf. JIS X 0510:2004 sec 8.7.3).
  31871. var putdata = function(matrix, reserved, buf) {
  31872. var n = matrix.length;
  31873. var k = 0, dir = -1;
  31874. for (var i = n-1; i >= 0; i -= 2) {
  31875. if (i == 6) --i; // skip the entire timing pattern column
  31876. var jj = (dir < 0 ? n-1 : 0);
  31877. for (var j = 0; j < n; ++j) {
  31878. for (var ii = i; ii > i-2; --ii) {
  31879. if (!reserved[jj][ii]) {
  31880. // may overflow, but (undefined >> x)
  31881. // is 0 so it will auto-pad to zero.
  31882. matrix[jj][ii] = (buf[k >> 3] >> (~k&7)) & 1;
  31883. ++k;
  31884. }
  31885. }
  31886. jj += dir;
  31887. }
  31888. dir = -dir;
  31889. }
  31890. return matrix;
  31891. };
  31892. // XOR-masks the data portion of the matrix. repeating the call with the same
  31893. // arguments will revert the prior call (convenient in the matrix evaluation).
  31894. var maskdata = function(matrix, reserved, mask) {
  31895. var maskf = MASKFUNCS[mask];
  31896. var n = matrix.length;
  31897. for (var i = 0; i < n; ++i) {
  31898. for (var j = 0; j < n; ++j) {
  31899. if (!reserved[i][j]) matrix[i][j] ^= maskf(i,j);
  31900. }
  31901. }
  31902. return matrix;
  31903. };
  31904. // puts the format information.
  31905. var putformatinfo = function(matrix, reserved, ecclevel, mask) {
  31906. var n = matrix.length;
  31907. var code = augumentbch((ecclevel << 3) | mask, 5, 0x537, 10) ^ 0x5412;
  31908. for (var i = 0; i < 15; ++i) {
  31909. var r = [0,1,2,3,4,5,7,8,n-7,n-6,n-5,n-4,n-3,n-2,n-1][i];
  31910. var c = [n-1,n-2,n-3,n-4,n-5,n-6,n-7,n-8,7,5,4,3,2,1,0][i];
  31911. matrix[r][8] = matrix[8][c] = (code >> i) & 1;
  31912. // we don't have to mark those bits reserved; always done
  31913. // in makebasematrix above.
  31914. }
  31915. return matrix;
  31916. };
  31917. // evaluates the resulting matrix and returns the score (lower is better).
  31918. // (cf. JIS X 0510:2004 sec 8.8.2)
  31919. //
  31920. // the evaluation procedure tries to avoid the problematic patterns naturally
  31921. // occuring from the original matrix. for example, it penaltizes the patterns
  31922. // which just look like the finder pattern which will confuse the decoder.
  31923. // we choose the mask which results in the lowest score among 8 possible ones.
  31924. //
  31925. // note: zxing seems to use the same procedure and in many cases its choice
  31926. // agrees to ours, but sometimes it does not. practically it doesn't matter.
  31927. var evaluatematrix = function(matrix) {
  31928. // N1+(k-5) points for each consecutive row of k same-colored modules,
  31929. // where k >= 5. no overlapping row counts.
  31930. var PENALTY_CONSECUTIVE = 3;
  31931. // N2 points for each 2x2 block of same-colored modules.
  31932. // overlapping block does count.
  31933. var PENALTY_TWOBYTWO = 3;
  31934. // N3 points for each pattern with >4W:1B:1W:3B:1W:1B or
  31935. // 1B:1W:3B:1W:1B:>4W, or their multiples (e.g. highly unlikely,
  31936. // but 13W:3B:3W:9B:3W:3B counts).
  31937. var PENALTY_FINDERLIKE = 40;
  31938. // N4*k points for every (5*k)% deviation from 50% black density.
  31939. // i.e. k=1 for 55~60% and 40~45%, k=2 for 60~65% and 35~40%, etc.
  31940. var PENALTY_DENSITY = 10;
  31941. var evaluategroup = function(groups) { // assumes [W,B,W,B,W,...,B,W]
  31942. var score = 0;
  31943. for (var i = 0; i < groups.length; ++i) {
  31944. if (groups[i] >= 5) score += PENALTY_CONSECUTIVE + (groups[i]-5);
  31945. }
  31946. for (var i = 5; i < groups.length; i += 2) {
  31947. var p = groups[i];
  31948. if (groups[i-1] == p && groups[i-2] == 3*p && groups[i-3] == p &&
  31949. groups[i-4] == p && (groups[i-5] >= 4*p || groups[i+1] >= 4*p)) {
  31950. // this part differs from zxing...
  31951. score += PENALTY_FINDERLIKE;
  31952. }
  31953. }
  31954. return score;
  31955. };
  31956. var n = matrix.length;
  31957. var score = 0, nblacks = 0;
  31958. for (var i = 0; i < n; ++i) {
  31959. var row = matrix[i];
  31960. var groups;
  31961. // evaluate the current row
  31962. groups = [0]; // the first empty group of white
  31963. for (var j = 0; j < n; ) {
  31964. var k;
  31965. for (k = 0; j < n && row[j]; ++k) ++j;
  31966. groups.push(k);
  31967. for (k = 0; j < n && !row[j]; ++k) ++j;
  31968. groups.push(k);
  31969. }
  31970. score += evaluategroup(groups);
  31971. // evaluate the current column
  31972. groups = [0];
  31973. for (var j = 0; j < n; ) {
  31974. var k;
  31975. for (k = 0; j < n && matrix[j][i]; ++k) ++j;
  31976. groups.push(k);
  31977. for (k = 0; j < n && !matrix[j][i]; ++k) ++j;
  31978. groups.push(k);
  31979. }
  31980. score += evaluategroup(groups);
  31981. // check the 2x2 box and calculate the density
  31982. var nextrow = matrix[i+1] || [];
  31983. nblacks += row[0];
  31984. for (var j = 1; j < n; ++j) {
  31985. var p = row[j];
  31986. nblacks += p;
  31987. // at least comparison with next row should be strict...
  31988. if (row[j-1] == p && nextrow[j] === p && nextrow[j-1] === p) {
  31989. score += PENALTY_TWOBYTWO;
  31990. }
  31991. }
  31992. }
  31993. score += PENALTY_DENSITY * ((Math.abs(nblacks / n / n - 0.5) / 0.05) | 0);
  31994. return score;
  31995. };
  31996. // returns the fully encoded QR code matrix which contains given data.
  31997. // it also chooses the best mask automatically when mask is -1.
  31998. var generate = function(data, ver, mode, ecclevel, mask) {
  31999. var v = VERSIONS[ver];
  32000. var buf = encode(ver, mode, data, ndatabits(ver, ecclevel) >> 3);
  32001. buf = augumenteccs(buf, v[1][ecclevel], GF256_GENPOLY[v[0][ecclevel]]);
  32002. var result = makebasematrix(ver);
  32003. var matrix = result.matrix, reserved = result.reserved;
  32004. putdata(matrix, reserved, buf);
  32005. if (mask < 0) {
  32006. // find the best mask
  32007. maskdata(matrix, reserved, 0);
  32008. putformatinfo(matrix, reserved, ecclevel, 0);
  32009. var bestmask = 0, bestscore = evaluatematrix(matrix);
  32010. maskdata(matrix, reserved, 0);
  32011. for (mask = 1; mask < 8; ++mask) {
  32012. maskdata(matrix, reserved, mask);
  32013. putformatinfo(matrix, reserved, ecclevel, mask);
  32014. var score = evaluatematrix(matrix);
  32015. if (bestscore > score) {
  32016. bestscore = score;
  32017. bestmask = mask;
  32018. }
  32019. maskdata(matrix, reserved, mask);
  32020. }
  32021. mask = bestmask;
  32022. }
  32023. maskdata(matrix, reserved, mask);
  32024. putformatinfo(matrix, reserved, ecclevel, mask);
  32025. return matrix;
  32026. };
  32027. // the public interface is trivial; the options available are as follows:
  32028. //
  32029. // - version: an integer in [1,40]. when omitted (or -1) the smallest possible
  32030. // version is chosen.
  32031. // - mode: one of 'numeric', 'alphanumeric', 'octet'. when omitted the smallest
  32032. // possible mode is chosen.
  32033. // - eccLevel: one of 'L', 'M', 'Q', 'H'. defaults to 'L'.
  32034. // - mask: an integer in [0,7]. when omitted (or -1) the best mask is chosen.
  32035. //
  32036. function generateFrame(data, options) {
  32037. var MODES = {'numeric': MODE_NUMERIC, 'alphanumeric': MODE_ALPHANUMERIC,
  32038. 'octet': MODE_OCTET};
  32039. var ECCLEVELS = {'L': ECCLEVEL_L, 'M': ECCLEVEL_M, 'Q': ECCLEVEL_Q,
  32040. 'H': ECCLEVEL_H};
  32041. options = options || {};
  32042. var ver = options.version || -1;
  32043. var ecclevel = ECCLEVELS[(options.eccLevel || 'L').toUpperCase()];
  32044. var mode = options.mode ? MODES[options.mode.toLowerCase()] : -1;
  32045. var mask = 'mask' in options ? options.mask : -1;
  32046. if (mode < 0) {
  32047. if (typeof data === 'string') {
  32048. if (data.match(NUMERIC_REGEXP)) {
  32049. mode = MODE_NUMERIC;
  32050. } else if (data.match(ALPHANUMERIC_OUT_REGEXP)) {
  32051. // while encode supports case-insensitive encoding, we restrict the data to be uppercased when auto-selecting the mode.
  32052. mode = MODE_ALPHANUMERIC;
  32053. } else {
  32054. mode = MODE_OCTET;
  32055. }
  32056. } else {
  32057. mode = MODE_OCTET;
  32058. }
  32059. } else if (!(mode == MODE_NUMERIC || mode == MODE_ALPHANUMERIC ||
  32060. mode == MODE_OCTET)) {
  32061. throw 'invalid or unsupported mode';
  32062. }
  32063. data = validatedata(mode, data);
  32064. if (data === null) throw 'invalid data format';
  32065. if (ecclevel < 0 || ecclevel > 3) throw 'invalid ECC level';
  32066. if (ver < 0) {
  32067. for (ver = 1; ver <= 40; ++ver) {
  32068. if (data.length <= getmaxdatalen(ver, mode, ecclevel)) break;
  32069. }
  32070. if (ver > 40) throw 'too large data for the Qr format';
  32071. } else if (ver < 1 || ver > 40) {
  32072. throw 'invalid Qr version! should be between 1 and 40';
  32073. }
  32074. if (mask != -1 && (mask < 0 || mask > 8)) throw 'invalid mask';
  32075. //console.log('version:', ver, 'mode:', mode, 'ECC:', ecclevel, 'mask:', mask )
  32076. return generate(data, ver, mode, ecclevel, mask);
  32077. }
  32078. // options
  32079. // - modulesize: a number. this is a size of each modules in pixels, and
  32080. // defaults to 5px.
  32081. // - margin: a number. this is a size of margin in *modules*, and defaults to
  32082. // 4 (white modules). the specficiation mandates the margin no less than 4
  32083. // modules, so it is better not to alter this value unless you know what
  32084. // you're doing.
  32085. function buildCanvas(data, options) {
  32086. var canvas = [];
  32087. var background = data.background || '#fff';
  32088. var foreground = data.foreground || '#000';
  32089. //var margin = options.margin || 4;
  32090. var matrix = generateFrame(data, options);
  32091. var n = matrix.length;
  32092. var modSize = Math.floor( options.fit ? options.fit/n : 5 );
  32093. var size = n * modSize;
  32094. canvas.push({
  32095. type: 'rect',
  32096. x: 0, y: 0, w: size, h: size, lineWidth: 0, color: background
  32097. });
  32098. for (var i = 0; i < n; ++i) {
  32099. for (var j = 0; j < n; ++j) {
  32100. if(matrix[i][j]) {
  32101. canvas.push({
  32102. type: 'rect',
  32103. x: modSize * i,
  32104. y: modSize * j,
  32105. w: modSize,
  32106. h: modSize,
  32107. lineWidth: 0,
  32108. color: foreground
  32109. });
  32110. }
  32111. }
  32112. }
  32113. return {
  32114. canvas: canvas,
  32115. size: size
  32116. };
  32117. }
  32118. function measure(node) {
  32119. var cd = buildCanvas(node.qr, node);
  32120. node._canvas = cd.canvas;
  32121. node._width = node._height = node._minWidth = node._maxWidth = node._minHeight = node._maxHeight = cd.size;
  32122. return node;
  32123. }
  32124. module.exports = {
  32125. measure: measure
  32126. };
  32127. /***/ },
  32128. /* 34 */
  32129. /***/ function(module, exports, __webpack_require__) {
  32130. // Generated by CoffeeScript 1.7.1
  32131. (function() {
  32132. var Data;
  32133. Data = (function() {
  32134. function Data(data) {
  32135. this.data = data != null ? data : [];
  32136. this.pos = 0;
  32137. this.length = this.data.length;
  32138. }
  32139. Data.prototype.readByte = function() {
  32140. return this.data[this.pos++];
  32141. };
  32142. Data.prototype.writeByte = function(byte) {
  32143. return this.data[this.pos++] = byte;
  32144. };
  32145. Data.prototype.byteAt = function(index) {
  32146. return this.data[index];
  32147. };
  32148. Data.prototype.readBool = function() {
  32149. return !!this.readByte();
  32150. };
  32151. Data.prototype.writeBool = function(val) {
  32152. return this.writeByte(val ? 1 : 0);
  32153. };
  32154. Data.prototype.readUInt32 = function() {
  32155. var b1, b2, b3, b4;
  32156. b1 = this.readByte() * 0x1000000;
  32157. b2 = this.readByte() << 16;
  32158. b3 = this.readByte() << 8;
  32159. b4 = this.readByte();
  32160. return b1 + b2 + b3 + b4;
  32161. };
  32162. Data.prototype.writeUInt32 = function(val) {
  32163. this.writeByte((val >>> 24) & 0xff);
  32164. this.writeByte((val >> 16) & 0xff);
  32165. this.writeByte((val >> 8) & 0xff);
  32166. return this.writeByte(val & 0xff);
  32167. };
  32168. Data.prototype.readInt32 = function() {
  32169. var int;
  32170. int = this.readUInt32();
  32171. if (int >= 0x80000000) {
  32172. return int - 0x100000000;
  32173. } else {
  32174. return int;
  32175. }
  32176. };
  32177. Data.prototype.writeInt32 = function(val) {
  32178. if (val < 0) {
  32179. val += 0x100000000;
  32180. }
  32181. return this.writeUInt32(val);
  32182. };
  32183. Data.prototype.readUInt16 = function() {
  32184. var b1, b2;
  32185. b1 = this.readByte() << 8;
  32186. b2 = this.readByte();
  32187. return b1 | b2;
  32188. };
  32189. Data.prototype.writeUInt16 = function(val) {
  32190. this.writeByte((val >> 8) & 0xff);
  32191. return this.writeByte(val & 0xff);
  32192. };
  32193. Data.prototype.readInt16 = function() {
  32194. var int;
  32195. int = this.readUInt16();
  32196. if (int >= 0x8000) {
  32197. return int - 0x10000;
  32198. } else {
  32199. return int;
  32200. }
  32201. };
  32202. Data.prototype.writeInt16 = function(val) {
  32203. if (val < 0) {
  32204. val += 0x10000;
  32205. }
  32206. return this.writeUInt16(val);
  32207. };
  32208. Data.prototype.readString = function(length) {
  32209. var i, ret, _i;
  32210. ret = [];
  32211. for (i = _i = 0; 0 <= length ? _i < length : _i > length; i = 0 <= length ? ++_i : --_i) {
  32212. ret[i] = String.fromCharCode(this.readByte());
  32213. }
  32214. return ret.join('');
  32215. };
  32216. Data.prototype.writeString = function(val) {
  32217. var i, _i, _ref, _results;
  32218. _results = [];
  32219. for (i = _i = 0, _ref = val.length; 0 <= _ref ? _i < _ref : _i > _ref; i = 0 <= _ref ? ++_i : --_i) {
  32220. _results.push(this.writeByte(val.charCodeAt(i)));
  32221. }
  32222. return _results;
  32223. };
  32224. Data.prototype.stringAt = function(pos, length) {
  32225. this.pos = pos;
  32226. return this.readString(length);
  32227. };
  32228. Data.prototype.readShort = function() {
  32229. return this.readInt16();
  32230. };
  32231. Data.prototype.writeShort = function(val) {
  32232. return this.writeInt16(val);
  32233. };
  32234. Data.prototype.readLongLong = function() {
  32235. var b1, b2, b3, b4, b5, b6, b7, b8;
  32236. b1 = this.readByte();
  32237. b2 = this.readByte();
  32238. b3 = this.readByte();
  32239. b4 = this.readByte();
  32240. b5 = this.readByte();
  32241. b6 = this.readByte();
  32242. b7 = this.readByte();
  32243. b8 = this.readByte();
  32244. if (b1 & 0x80) {
  32245. return ((b1 ^ 0xff) * 0x100000000000000 + (b2 ^ 0xff) * 0x1000000000000 + (b3 ^ 0xff) * 0x10000000000 + (b4 ^ 0xff) * 0x100000000 + (b5 ^ 0xff) * 0x1000000 + (b6 ^ 0xff) * 0x10000 + (b7 ^ 0xff) * 0x100 + (b8 ^ 0xff) + 1) * -1;
  32246. }
  32247. return b1 * 0x100000000000000 + b2 * 0x1000000000000 + b3 * 0x10000000000 + b4 * 0x100000000 + b5 * 0x1000000 + b6 * 0x10000 + b7 * 0x100 + b8;
  32248. };
  32249. Data.prototype.writeLongLong = function(val) {
  32250. var high, low;
  32251. high = Math.floor(val / 0x100000000);
  32252. low = val & 0xffffffff;
  32253. this.writeByte((high >> 24) & 0xff);
  32254. this.writeByte((high >> 16) & 0xff);
  32255. this.writeByte((high >> 8) & 0xff);
  32256. this.writeByte(high & 0xff);
  32257. this.writeByte((low >> 24) & 0xff);
  32258. this.writeByte((low >> 16) & 0xff);
  32259. this.writeByte((low >> 8) & 0xff);
  32260. return this.writeByte(low & 0xff);
  32261. };
  32262. Data.prototype.readInt = function() {
  32263. return this.readInt32();
  32264. };
  32265. Data.prototype.writeInt = function(val) {
  32266. return this.writeInt32(val);
  32267. };
  32268. Data.prototype.slice = function(start, end) {
  32269. return this.data.slice(start, end);
  32270. };
  32271. Data.prototype.read = function(bytes) {
  32272. var buf, i, _i;
  32273. buf = [];
  32274. for (i = _i = 0; 0 <= bytes ? _i < bytes : _i > bytes; i = 0 <= bytes ? ++_i : --_i) {
  32275. buf.push(this.readByte());
  32276. }
  32277. return buf;
  32278. };
  32279. Data.prototype.write = function(bytes) {
  32280. var byte, _i, _len, _results;
  32281. _results = [];
  32282. for (_i = 0, _len = bytes.length; _i < _len; _i++) {
  32283. byte = bytes[_i];
  32284. _results.push(this.writeByte(byte));
  32285. }
  32286. return _results;
  32287. };
  32288. return Data;
  32289. })();
  32290. module.exports = Data;
  32291. }).call(this);
  32292. /***/ },
  32293. /* 35 */
  32294. /***/ function(module, exports, __webpack_require__) {
  32295. // Generated by CoffeeScript 1.7.1
  32296. (function() {
  32297. var JPEG, fs,
  32298. __indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
  32299. fs = __webpack_require__(10);
  32300. JPEG = (function() {
  32301. var MARKERS;
  32302. MARKERS = [0xFFC0, 0xFFC1, 0xFFC2, 0xFFC3, 0xFFC5, 0xFFC6, 0xFFC7, 0xFFC8, 0xFFC9, 0xFFCA, 0xFFCB, 0xFFCC, 0xFFCD, 0xFFCE, 0xFFCF];
  32303. function JPEG(data, label) {
  32304. var channels, marker, pos;
  32305. this.data = data;
  32306. this.label = label;
  32307. if (this.data.readUInt16BE(0) !== 0xFFD8) {
  32308. throw "SOI not found in JPEG";
  32309. }
  32310. pos = 2;
  32311. while (pos < this.data.length) {
  32312. marker = this.data.readUInt16BE(pos);
  32313. pos += 2;
  32314. if (__indexOf.call(MARKERS, marker) >= 0) {
  32315. break;
  32316. }
  32317. pos += this.data.readUInt16BE(pos);
  32318. }
  32319. if (__indexOf.call(MARKERS, marker) < 0) {
  32320. throw "Invalid JPEG.";
  32321. }
  32322. pos += 2;
  32323. this.bits = this.data[pos++];
  32324. this.height = this.data.readUInt16BE(pos);
  32325. pos += 2;
  32326. this.width = this.data.readUInt16BE(pos);
  32327. pos += 2;
  32328. channels = this.data[pos++];
  32329. this.colorSpace = (function() {
  32330. switch (channels) {
  32331. case 1:
  32332. return 'DeviceGray';
  32333. case 3:
  32334. return 'DeviceRGB';
  32335. case 4:
  32336. return 'DeviceCMYK';
  32337. }
  32338. })();
  32339. this.obj = null;
  32340. }
  32341. JPEG.prototype.embed = function(document) {
  32342. if (this.obj) {
  32343. return;
  32344. }
  32345. this.obj = document.ref({
  32346. Type: 'XObject',
  32347. Subtype: 'Image',
  32348. BitsPerComponent: this.bits,
  32349. Width: this.width,
  32350. Height: this.height,
  32351. ColorSpace: this.colorSpace,
  32352. Filter: 'DCTDecode'
  32353. });
  32354. if (this.colorSpace === 'DeviceCMYK') {
  32355. this.obj.data['Decode'] = [1.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0, 0.0];
  32356. }
  32357. this.obj.end(this.data);
  32358. return this.data = null;
  32359. };
  32360. return JPEG;
  32361. })();
  32362. module.exports = JPEG;
  32363. }).call(this);
  32364. /***/ },
  32365. /* 36 */
  32366. /***/ function(module, exports, __webpack_require__) {
  32367. /* WEBPACK VAR INJECTION */(function(Buffer) {// Generated by CoffeeScript 1.7.1
  32368. (function() {
  32369. var PNG, PNGImage, zlib;
  32370. zlib = __webpack_require__(45);
  32371. PNG = __webpack_require__(51);
  32372. PNGImage = (function() {
  32373. function PNGImage(data, label) {
  32374. this.label = label;
  32375. this.image = new PNG(data);
  32376. this.width = this.image.width;
  32377. this.height = this.image.height;
  32378. this.imgData = this.image.imgData;
  32379. this.obj = null;
  32380. }
  32381. PNGImage.prototype.embed = function(document) {
  32382. var mask, palette, params, rgb, val, x, _i, _len;
  32383. this.document = document;
  32384. if (this.obj) {
  32385. return;
  32386. }
  32387. this.obj = document.ref({
  32388. Type: 'XObject',
  32389. Subtype: 'Image',
  32390. BitsPerComponent: this.image.bits,
  32391. Width: this.width,
  32392. Height: this.height,
  32393. Filter: 'FlateDecode'
  32394. });
  32395. if (!this.image.hasAlphaChannel) {
  32396. params = document.ref({
  32397. Predictor: 15,
  32398. Colors: this.image.colors,
  32399. BitsPerComponent: this.image.bits,
  32400. Columns: this.width
  32401. });
  32402. this.obj.data['DecodeParms'] = params;
  32403. params.end();
  32404. }
  32405. if (this.image.palette.length === 0) {
  32406. this.obj.data['ColorSpace'] = this.image.colorSpace;
  32407. } else {
  32408. palette = document.ref();
  32409. palette.end(new Buffer(this.image.palette));
  32410. this.obj.data['ColorSpace'] = ['Indexed', 'DeviceRGB', (this.image.palette.length / 3) - 1, palette];
  32411. }
  32412. if (this.image.transparency.grayscale) {
  32413. val = this.image.transparency.greyscale;
  32414. return this.obj.data['Mask'] = [val, val];
  32415. } else if (this.image.transparency.rgb) {
  32416. rgb = this.image.transparency.rgb;
  32417. mask = [];
  32418. for (_i = 0, _len = rgb.length; _i < _len; _i++) {
  32419. x = rgb[_i];
  32420. mask.push(x, x);
  32421. }
  32422. return this.obj.data['Mask'] = mask;
  32423. } else if (this.image.transparency.indexed) {
  32424. return this.loadIndexedAlphaChannel();
  32425. } else if (this.image.hasAlphaChannel) {
  32426. return this.splitAlphaChannel();
  32427. } else {
  32428. return this.finalize();
  32429. }
  32430. };
  32431. PNGImage.prototype.finalize = function() {
  32432. var sMask;
  32433. if (this.alphaChannel) {
  32434. sMask = this.document.ref({
  32435. Type: 'XObject',
  32436. Subtype: 'Image',
  32437. Height: this.height,
  32438. Width: this.width,
  32439. BitsPerComponent: 8,
  32440. Filter: 'FlateDecode',
  32441. ColorSpace: 'DeviceGray',
  32442. Decode: [0, 1]
  32443. });
  32444. sMask.end(this.alphaChannel);
  32445. this.obj.data['SMask'] = sMask;
  32446. }
  32447. this.obj.end(this.imgData);
  32448. this.image = null;
  32449. return this.imgData = null;
  32450. };
  32451. PNGImage.prototype.splitAlphaChannel = function() {
  32452. return this.image.decodePixels((function(_this) {
  32453. return function(pixels) {
  32454. var a, alphaChannel, colorByteSize, done, i, imgData, len, p, pixelCount;
  32455. colorByteSize = _this.image.colors * _this.image.bits / 8;
  32456. pixelCount = _this.width * _this.height;
  32457. imgData = new Buffer(pixelCount * colorByteSize);
  32458. alphaChannel = new Buffer(pixelCount);
  32459. i = p = a = 0;
  32460. len = pixels.length;
  32461. while (i < len) {
  32462. imgData[p++] = pixels[i++];
  32463. imgData[p++] = pixels[i++];
  32464. imgData[p++] = pixels[i++];
  32465. alphaChannel[a++] = pixels[i++];
  32466. }
  32467. done = 0;
  32468. zlib.deflate(imgData, function(err, imgData) {
  32469. _this.imgData = imgData;
  32470. if (err) {
  32471. throw err;
  32472. }
  32473. if (++done === 2) {
  32474. return _this.finalize();
  32475. }
  32476. });
  32477. return zlib.deflate(alphaChannel, function(err, alphaChannel) {
  32478. _this.alphaChannel = alphaChannel;
  32479. if (err) {
  32480. throw err;
  32481. }
  32482. if (++done === 2) {
  32483. return _this.finalize();
  32484. }
  32485. });
  32486. };
  32487. })(this));
  32488. };
  32489. PNGImage.prototype.loadIndexedAlphaChannel = function(fn) {
  32490. var transparency;
  32491. transparency = this.image.transparency.indexed;
  32492. return this.image.decodePixels((function(_this) {
  32493. return function(pixels) {
  32494. var alphaChannel, i, j, _i, _ref;
  32495. alphaChannel = new Buffer(_this.width * _this.height);
  32496. i = 0;
  32497. for (j = _i = 0, _ref = pixels.length; _i < _ref; j = _i += 1) {
  32498. alphaChannel[i++] = transparency[pixels[j]];
  32499. }
  32500. return zlib.deflate(alphaChannel, function(err, alphaChannel) {
  32501. _this.alphaChannel = alphaChannel;
  32502. if (err) {
  32503. throw err;
  32504. }
  32505. return _this.finalize();
  32506. });
  32507. };
  32508. })(this));
  32509. };
  32510. return PNGImage;
  32511. })();
  32512. module.exports = PNGImage;
  32513. }).call(this);
  32514. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4).Buffer))
  32515. /***/ },
  32516. /* 37 */
  32517. /***/ function(module, exports, __webpack_require__) {
  32518. /* jslint node: true */
  32519. 'use strict';
  32520. var Line = __webpack_require__(24);
  32521. var pack = __webpack_require__(25).pack;
  32522. var offsetVector = __webpack_require__(25).offsetVector;
  32523. var DocumentContext = __webpack_require__(20);
  32524. /**
  32525. * Creates an instance of ElementWriter - a line/vector writer, which adds
  32526. * elements to current page and sets their positions based on the context
  32527. */
  32528. function ElementWriter(context, tracker) {
  32529. this.context = context;
  32530. this.contextStack = [];
  32531. this.tracker = tracker;
  32532. }
  32533. function addPageItem(page, item, index) {
  32534. if(index === null || index === undefined || index < 0 || index > page.items.length) {
  32535. page.items.push(item);
  32536. } else {
  32537. page.items.splice(index, 0, item);
  32538. }
  32539. }
  32540. ElementWriter.prototype.addLine = function(line, dontUpdateContextPosition, index) {
  32541. var height = line.getHeight();
  32542. var context = this.context;
  32543. var page = context.getCurrentPage(),
  32544. position = this.getCurrentPositionOnPage();
  32545. if (context.availableHeight < height || !page) {
  32546. return false;
  32547. }
  32548. line.x = context.x + (line.x || 0);
  32549. line.y = context.y + (line.y || 0);
  32550. this.alignLine(line);
  32551. addPageItem(page, {
  32552. type: 'line',
  32553. item: line
  32554. }, index);
  32555. this.tracker.emit('lineAdded', line);
  32556. if (!dontUpdateContextPosition) context.moveDown(height);
  32557. return position;
  32558. };
  32559. ElementWriter.prototype.alignLine = function(line) {
  32560. var width = this.context.availableWidth;
  32561. var lineWidth = line.getWidth();
  32562. var alignment = line.inlines && line.inlines.length > 0 && line.inlines[0].alignment;
  32563. var offset = 0;
  32564. switch(alignment) {
  32565. case 'right':
  32566. offset = width - lineWidth;
  32567. break;
  32568. case 'center':
  32569. offset = (width - lineWidth) / 2;
  32570. break;
  32571. }
  32572. if (offset) {
  32573. line.x = (line.x || 0) + offset;
  32574. }
  32575. if (alignment === 'justify' &&
  32576. !line.newLineForced &&
  32577. !line.lastLineInParagraph &&
  32578. line.inlines.length > 1) {
  32579. var additionalSpacing = (width - lineWidth) / (line.inlines.length - 1);
  32580. for(var i = 1, l = line.inlines.length; i < l; i++) {
  32581. offset = i * additionalSpacing;
  32582. line.inlines[i].x += offset;
  32583. }
  32584. }
  32585. };
  32586. ElementWriter.prototype.addImage = function(image, index) {
  32587. var context = this.context;
  32588. var page = context.getCurrentPage(),
  32589. position = this.getCurrentPositionOnPage();
  32590. if (context.availableHeight < image._height || !page) {
  32591. return false;
  32592. }
  32593. image.x = context.x + (image.x || 0);
  32594. image.y = context.y;
  32595. this.alignImage(image);
  32596. addPageItem(page, {
  32597. type: 'image',
  32598. item: image
  32599. }, index);
  32600. context.moveDown(image._height);
  32601. return position;
  32602. };
  32603. ElementWriter.prototype.addQr = function(qr, index) {
  32604. var context = this.context;
  32605. var page = context.getCurrentPage(),
  32606. position = this.getCurrentPositionOnPage();
  32607. if (context.availableHeight < qr._height || !page) {
  32608. return false;
  32609. }
  32610. qr.x = context.x + (qr.x || 0);
  32611. qr.y = context.y;
  32612. this.alignImage(qr);
  32613. for (var i=0, l=qr._canvas.length; i < l; i++) {
  32614. var vector = qr._canvas[i];
  32615. vector.x += qr.x;
  32616. vector.y += qr.y;
  32617. this.addVector(vector, true, true, index);
  32618. }
  32619. context.moveDown(qr._height);
  32620. return position;
  32621. };
  32622. ElementWriter.prototype.alignImage = function(image) {
  32623. var width = this.context.availableWidth;
  32624. var imageWidth = image._minWidth;
  32625. var offset = 0;
  32626. switch(image._alignment) {
  32627. case 'right':
  32628. offset = width - imageWidth;
  32629. break;
  32630. case 'center':
  32631. offset = (width - imageWidth) / 2;
  32632. break;
  32633. }
  32634. if (offset) {
  32635. image.x = (image.x || 0) + offset;
  32636. }
  32637. };
  32638. ElementWriter.prototype.addVector = function(vector, ignoreContextX, ignoreContextY, index) {
  32639. var context = this.context;
  32640. var page = context.getCurrentPage(),
  32641. position = this.getCurrentPositionOnPage();
  32642. if (page) {
  32643. offsetVector(vector, ignoreContextX ? 0 : context.x, ignoreContextY ? 0 : context.y);
  32644. addPageItem(page, {
  32645. type: 'vector',
  32646. item: vector
  32647. }, index);
  32648. return position;
  32649. }
  32650. };
  32651. function cloneLine(line) {
  32652. var result = new Line(line.maxWidth);
  32653. for(var key in line) {
  32654. if (line.hasOwnProperty(key)) {
  32655. result[key] = line[key];
  32656. }
  32657. }
  32658. return result;
  32659. }
  32660. ElementWriter.prototype.addFragment = function(block, useBlockXOffset, useBlockYOffset, dontUpdateContextPosition) {
  32661. var ctx = this.context;
  32662. var page = ctx.getCurrentPage();
  32663. if (!useBlockXOffset && block.height > ctx.availableHeight) return false;
  32664. block.items.forEach(function(item) {
  32665. switch(item.type) {
  32666. case 'line':
  32667. var l = cloneLine(item.item);
  32668. l.x = (l.x || 0) + (useBlockXOffset ? (block.xOffset || 0) : ctx.x);
  32669. l.y = (l.y || 0) + (useBlockYOffset ? (block.yOffset || 0) : ctx.y);
  32670. page.items.push({
  32671. type: 'line',
  32672. item: l
  32673. });
  32674. break;
  32675. case 'vector':
  32676. var v = pack(item.item);
  32677. offsetVector(v, useBlockXOffset ? (block.xOffset || 0) : ctx.x, useBlockYOffset ? (block.yOffset || 0) : ctx.y);
  32678. page.items.push({
  32679. type: 'vector',
  32680. item: v
  32681. });
  32682. break;
  32683. case 'image':
  32684. var img = pack(item.item);
  32685. img.x = (img.x || 0) + (useBlockXOffset ? (block.xOffset || 0) : ctx.x);
  32686. img.y = (img.y || 0) + (useBlockYOffset ? (block.yOffset || 0) : ctx.y);
  32687. page.items.push({
  32688. type: 'image',
  32689. item: img
  32690. });
  32691. break;
  32692. }
  32693. });
  32694. if (!dontUpdateContextPosition) ctx.moveDown(block.height);
  32695. return true;
  32696. };
  32697. /**
  32698. * Pushes the provided context onto the stack or creates a new one
  32699. *
  32700. * pushContext(context) - pushes the provided context and makes it current
  32701. * pushContext(width, height) - creates and pushes a new context with the specified width and height
  32702. * pushContext() - creates a new context for unbreakable blocks (with current availableWidth and full-page-height)
  32703. */
  32704. ElementWriter.prototype.pushContext = function(contextOrWidth, height) {
  32705. if (contextOrWidth === undefined) {
  32706. height = this.context.getCurrentPage().height - this.context.pageMargins.top - this.context.pageMargins.bottom;
  32707. contextOrWidth = this.context.availableWidth;
  32708. }
  32709. if (typeof contextOrWidth === 'number' || contextOrWidth instanceof Number) {
  32710. contextOrWidth = new DocumentContext({ width: contextOrWidth, height: height }, { left: 0, right: 0, top: 0, bottom: 0 });
  32711. }
  32712. this.contextStack.push(this.context);
  32713. this.context = contextOrWidth;
  32714. };
  32715. ElementWriter.prototype.popContext = function() {
  32716. this.context = this.contextStack.pop();
  32717. };
  32718. ElementWriter.prototype.getCurrentPositionOnPage = function(){
  32719. return (this.contextStack[0] || this.context).getCurrentPosition();
  32720. };
  32721. module.exports = ElementWriter;
  32722. /***/ },
  32723. /* 38 */
  32724. /***/ function(module, exports, __webpack_require__) {
  32725. // Generated by CoffeeScript 1.7.1
  32726. /*
  32727. PDFPage - represents a single page in the PDF document
  32728. By Devon Govett
  32729. */
  32730. (function() {
  32731. var PDFPage;
  32732. PDFPage = (function() {
  32733. var DEFAULT_MARGINS, SIZES;
  32734. function PDFPage(document, options) {
  32735. var dimensions;
  32736. this.document = document;
  32737. if (options == null) {
  32738. options = {};
  32739. }
  32740. this.size = options.size || 'letter';
  32741. this.layout = options.layout || 'portrait';
  32742. if (typeof options.margin === 'number') {
  32743. this.margins = {
  32744. top: options.margin,
  32745. left: options.margin,
  32746. bottom: options.margin,
  32747. right: options.margin
  32748. };
  32749. } else {
  32750. this.margins = options.margins || DEFAULT_MARGINS;
  32751. }
  32752. dimensions = Array.isArray(this.size) ? this.size : SIZES[this.size.toUpperCase()];
  32753. this.width = dimensions[this.layout === 'portrait' ? 0 : 1];
  32754. this.height = dimensions[this.layout === 'portrait' ? 1 : 0];
  32755. this.content = this.document.ref();
  32756. this.resources = this.document.ref({
  32757. ProcSet: ['PDF', 'Text', 'ImageB', 'ImageC', 'ImageI']
  32758. });
  32759. Object.defineProperties(this, {
  32760. fonts: {
  32761. get: (function(_this) {
  32762. return function() {
  32763. var _base;
  32764. return (_base = _this.resources.data).Font != null ? _base.Font : _base.Font = {};
  32765. };
  32766. })(this)
  32767. },
  32768. xobjects: {
  32769. get: (function(_this) {
  32770. return function() {
  32771. var _base;
  32772. return (_base = _this.resources.data).XObject != null ? _base.XObject : _base.XObject = {};
  32773. };
  32774. })(this)
  32775. },
  32776. ext_gstates: {
  32777. get: (function(_this) {
  32778. return function() {
  32779. var _base;
  32780. return (_base = _this.resources.data).ExtGState != null ? _base.ExtGState : _base.ExtGState = {};
  32781. };
  32782. })(this)
  32783. },
  32784. patterns: {
  32785. get: (function(_this) {
  32786. return function() {
  32787. var _base;
  32788. return (_base = _this.resources.data).Pattern != null ? _base.Pattern : _base.Pattern = {};
  32789. };
  32790. })(this)
  32791. },
  32792. annotations: {
  32793. get: (function(_this) {
  32794. return function() {
  32795. var _base;
  32796. return (_base = _this.dictionary.data).Annots != null ? _base.Annots : _base.Annots = [];
  32797. };
  32798. })(this)
  32799. }
  32800. });
  32801. this.dictionary = this.document.ref({
  32802. Type: 'Page',
  32803. Parent: this.document._root.data.Pages,
  32804. MediaBox: [0, 0, this.width, this.height],
  32805. Contents: this.content,
  32806. Resources: this.resources
  32807. });
  32808. }
  32809. PDFPage.prototype.maxY = function() {
  32810. return this.height - this.margins.bottom;
  32811. };
  32812. PDFPage.prototype.write = function(chunk) {
  32813. return this.content.write(chunk);
  32814. };
  32815. PDFPage.prototype.end = function() {
  32816. this.dictionary.end();
  32817. this.resources.end();
  32818. return this.content.end();
  32819. };
  32820. DEFAULT_MARGINS = {
  32821. top: 72,
  32822. left: 72,
  32823. bottom: 72,
  32824. right: 72
  32825. };
  32826. SIZES = {
  32827. '4A0': [4767.87, 6740.79],
  32828. '2A0': [3370.39, 4767.87],
  32829. A0: [2383.94, 3370.39],
  32830. A1: [1683.78, 2383.94],
  32831. A2: [1190.55, 1683.78],
  32832. A3: [841.89, 1190.55],
  32833. A4: [595.28, 841.89],
  32834. A5: [419.53, 595.28],
  32835. A6: [297.64, 419.53],
  32836. A7: [209.76, 297.64],
  32837. A8: [147.40, 209.76],
  32838. A9: [104.88, 147.40],
  32839. A10: [73.70, 104.88],
  32840. B0: [2834.65, 4008.19],
  32841. B1: [2004.09, 2834.65],
  32842. B2: [1417.32, 2004.09],
  32843. B3: [1000.63, 1417.32],
  32844. B4: [708.66, 1000.63],
  32845. B5: [498.90, 708.66],
  32846. B6: [354.33, 498.90],
  32847. B7: [249.45, 354.33],
  32848. B8: [175.75, 249.45],
  32849. B9: [124.72, 175.75],
  32850. B10: [87.87, 124.72],
  32851. C0: [2599.37, 3676.54],
  32852. C1: [1836.85, 2599.37],
  32853. C2: [1298.27, 1836.85],
  32854. C3: [918.43, 1298.27],
  32855. C4: [649.13, 918.43],
  32856. C5: [459.21, 649.13],
  32857. C6: [323.15, 459.21],
  32858. C7: [229.61, 323.15],
  32859. C8: [161.57, 229.61],
  32860. C9: [113.39, 161.57],
  32861. C10: [79.37, 113.39],
  32862. RA0: [2437.80, 3458.27],
  32863. RA1: [1729.13, 2437.80],
  32864. RA2: [1218.90, 1729.13],
  32865. RA3: [864.57, 1218.90],
  32866. RA4: [609.45, 864.57],
  32867. SRA0: [2551.18, 3628.35],
  32868. SRA1: [1814.17, 2551.18],
  32869. SRA2: [1275.59, 1814.17],
  32870. SRA3: [907.09, 1275.59],
  32871. SRA4: [637.80, 907.09],
  32872. EXECUTIVE: [521.86, 756.00],
  32873. FOLIO: [612.00, 936.00],
  32874. LEGAL: [612.00, 1008.00],
  32875. LETTER: [612.00, 792.00],
  32876. TABLOID: [792.00, 1224.00]
  32877. };
  32878. return PDFPage;
  32879. })();
  32880. module.exports = PDFPage;
  32881. }).call(this);
  32882. /***/ },
  32883. /* 39 */
  32884. /***/ function(module, exports, __webpack_require__) {
  32885. // Generated by CoffeeScript 1.7.1
  32886. (function() {
  32887. var KAPPA, SVGPath,
  32888. __slice = [].slice;
  32889. SVGPath = __webpack_require__(47);
  32890. KAPPA = 4.0 * ((Math.sqrt(2) - 1.0) / 3.0);
  32891. module.exports = {
  32892. initVector: function() {
  32893. this._ctm = [1, 0, 0, 1, 0, 0];
  32894. return this._ctmStack = [];
  32895. },
  32896. save: function() {
  32897. this._ctmStack.push(this._ctm.slice());
  32898. return this.addContent('q');
  32899. },
  32900. restore: function() {
  32901. this._ctm = this._ctmStack.pop() || [1, 0, 0, 1, 0, 0];
  32902. return this.addContent('Q');
  32903. },
  32904. closePath: function() {
  32905. return this.addContent('h');
  32906. },
  32907. lineWidth: function(w) {
  32908. return this.addContent("" + w + " w");
  32909. },
  32910. _CAP_STYLES: {
  32911. BUTT: 0,
  32912. ROUND: 1,
  32913. SQUARE: 2
  32914. },
  32915. lineCap: function(c) {
  32916. if (typeof c === 'string') {
  32917. c = this._CAP_STYLES[c.toUpperCase()];
  32918. }
  32919. return this.addContent("" + c + " J");
  32920. },
  32921. _JOIN_STYLES: {
  32922. MITER: 0,
  32923. ROUND: 1,
  32924. BEVEL: 2
  32925. },
  32926. lineJoin: function(j) {
  32927. if (typeof j === 'string') {
  32928. j = this._JOIN_STYLES[j.toUpperCase()];
  32929. }
  32930. return this.addContent("" + j + " j");
  32931. },
  32932. miterLimit: function(m) {
  32933. return this.addContent("" + m + " M");
  32934. },
  32935. dash: function(length, options) {
  32936. var phase, space, _ref;
  32937. if (options == null) {
  32938. options = {};
  32939. }
  32940. if (length == null) {
  32941. return this;
  32942. }
  32943. space = (_ref = options.space) != null ? _ref : length;
  32944. phase = options.phase || 0;
  32945. return this.addContent("[" + length + " " + space + "] " + phase + " d");
  32946. },
  32947. undash: function() {
  32948. return this.addContent("[] 0 d");
  32949. },
  32950. moveTo: function(x, y) {
  32951. return this.addContent("" + x + " " + y + " m");
  32952. },
  32953. lineTo: function(x, y) {
  32954. return this.addContent("" + x + " " + y + " l");
  32955. },
  32956. bezierCurveTo: function(cp1x, cp1y, cp2x, cp2y, x, y) {
  32957. return this.addContent("" + cp1x + " " + cp1y + " " + cp2x + " " + cp2y + " " + x + " " + y + " c");
  32958. },
  32959. quadraticCurveTo: function(cpx, cpy, x, y) {
  32960. return this.addContent("" + cpx + " " + cpy + " " + x + " " + y + " v");
  32961. },
  32962. rect: function(x, y, w, h) {
  32963. return this.addContent("" + x + " " + y + " " + w + " " + h + " re");
  32964. },
  32965. roundedRect: function(x, y, w, h, r) {
  32966. if (r == null) {
  32967. r = 0;
  32968. }
  32969. this.moveTo(x + r, y);
  32970. this.lineTo(x + w - r, y);
  32971. this.quadraticCurveTo(x + w, y, x + w, y + r);
  32972. this.lineTo(x + w, y + h - r);
  32973. this.quadraticCurveTo(x + w, y + h, x + w - r, y + h);
  32974. this.lineTo(x + r, y + h);
  32975. this.quadraticCurveTo(x, y + h, x, y + h - r);
  32976. this.lineTo(x, y + r);
  32977. return this.quadraticCurveTo(x, y, x + r, y);
  32978. },
  32979. ellipse: function(x, y, r1, r2) {
  32980. var ox, oy, xe, xm, ye, ym;
  32981. if (r2 == null) {
  32982. r2 = r1;
  32983. }
  32984. x -= r1;
  32985. y -= r2;
  32986. ox = r1 * KAPPA;
  32987. oy = r2 * KAPPA;
  32988. xe = x + r1 * 2;
  32989. ye = y + r2 * 2;
  32990. xm = x + r1;
  32991. ym = y + r2;
  32992. this.moveTo(x, ym);
  32993. this.bezierCurveTo(x, ym - oy, xm - ox, y, xm, y);
  32994. this.bezierCurveTo(xm + ox, y, xe, ym - oy, xe, ym);
  32995. this.bezierCurveTo(xe, ym + oy, xm + ox, ye, xm, ye);
  32996. this.bezierCurveTo(xm - ox, ye, x, ym + oy, x, ym);
  32997. return this.closePath();
  32998. },
  32999. circle: function(x, y, radius) {
  33000. return this.ellipse(x, y, radius);
  33001. },
  33002. polygon: function() {
  33003. var point, points, _i, _len;
  33004. points = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
  33005. this.moveTo.apply(this, points.shift());
  33006. for (_i = 0, _len = points.length; _i < _len; _i++) {
  33007. point = points[_i];
  33008. this.lineTo.apply(this, point);
  33009. }
  33010. return this.closePath();
  33011. },
  33012. path: function(path) {
  33013. SVGPath.apply(this, path);
  33014. return this;
  33015. },
  33016. _windingRule: function(rule) {
  33017. if (/even-?odd/.test(rule)) {
  33018. return '*';
  33019. }
  33020. return '';
  33021. },
  33022. fill: function(color, rule) {
  33023. if (/(even-?odd)|(non-?zero)/.test(color)) {
  33024. rule = color;
  33025. color = null;
  33026. }
  33027. if (color) {
  33028. this.fillColor(color);
  33029. }
  33030. return this.addContent('f' + this._windingRule(rule));
  33031. },
  33032. stroke: function(color) {
  33033. if (color) {
  33034. this.strokeColor(color);
  33035. }
  33036. return this.addContent('S');
  33037. },
  33038. fillAndStroke: function(fillColor, strokeColor, rule) {
  33039. var isFillRule;
  33040. if (strokeColor == null) {
  33041. strokeColor = fillColor;
  33042. }
  33043. isFillRule = /(even-?odd)|(non-?zero)/;
  33044. if (isFillRule.test(fillColor)) {
  33045. rule = fillColor;
  33046. fillColor = null;
  33047. }
  33048. if (isFillRule.test(strokeColor)) {
  33049. rule = strokeColor;
  33050. strokeColor = fillColor;
  33051. }
  33052. if (fillColor) {
  33053. this.fillColor(fillColor);
  33054. this.strokeColor(strokeColor);
  33055. }
  33056. return this.addContent('B' + this._windingRule(rule));
  33057. },
  33058. clip: function(rule) {
  33059. return this.addContent('W' + this._windingRule(rule) + ' n');
  33060. },
  33061. transform: function(m11, m12, m21, m22, dx, dy) {
  33062. var m, m0, m1, m2, m3, m4, m5, v, values;
  33063. m = this._ctm;
  33064. m0 = m[0], m1 = m[1], m2 = m[2], m3 = m[3], m4 = m[4], m5 = m[5];
  33065. m[0] = m0 * m11 + m2 * m12;
  33066. m[1] = m1 * m11 + m3 * m12;
  33067. m[2] = m0 * m21 + m2 * m22;
  33068. m[3] = m1 * m21 + m3 * m22;
  33069. m[4] = m0 * dx + m2 * dy + m4;
  33070. m[5] = m1 * dx + m3 * dy + m5;
  33071. values = ((function() {
  33072. var _i, _len, _ref, _results;
  33073. _ref = [m11, m12, m21, m22, dx, dy];
  33074. _results = [];
  33075. for (_i = 0, _len = _ref.length; _i < _len; _i++) {
  33076. v = _ref[_i];
  33077. _results.push(+v.toFixed(5));
  33078. }
  33079. return _results;
  33080. })()).join(' ');
  33081. return this.addContent("" + values + " cm");
  33082. },
  33083. translate: function(x, y) {
  33084. return this.transform(1, 0, 0, 1, x, y);
  33085. },
  33086. rotate: function(angle, options) {
  33087. var cos, rad, sin, x, x1, y, y1, _ref;
  33088. if (options == null) {
  33089. options = {};
  33090. }
  33091. rad = angle * Math.PI / 180;
  33092. cos = Math.cos(rad);
  33093. sin = Math.sin(rad);
  33094. x = y = 0;
  33095. if (options.origin != null) {
  33096. _ref = options.origin, x = _ref[0], y = _ref[1];
  33097. x1 = x * cos - y * sin;
  33098. y1 = x * sin + y * cos;
  33099. x -= x1;
  33100. y -= y1;
  33101. }
  33102. return this.transform(cos, sin, -sin, cos, x, y);
  33103. },
  33104. scale: function(xFactor, yFactor, options) {
  33105. var x, y, _ref;
  33106. if (yFactor == null) {
  33107. yFactor = xFactor;
  33108. }
  33109. if (options == null) {
  33110. options = {};
  33111. }
  33112. if (arguments.length === 2) {
  33113. yFactor = xFactor;
  33114. options = yFactor;
  33115. }
  33116. x = y = 0;
  33117. if (options.origin != null) {
  33118. _ref = options.origin, x = _ref[0], y = _ref[1];
  33119. x -= xFactor * x;
  33120. y -= yFactor * y;
  33121. }
  33122. return this.transform(xFactor, 0, 0, yFactor, x, y);
  33123. }
  33124. };
  33125. }).call(this);
  33126. /***/ },
  33127. /* 40 */
  33128. /***/ function(module, exports, __webpack_require__) {
  33129. // Generated by CoffeeScript 1.7.1
  33130. (function() {
  33131. var LineWrapper;
  33132. LineWrapper = __webpack_require__(48);
  33133. module.exports = {
  33134. initText: function() {
  33135. this.x = 0;
  33136. this.y = 0;
  33137. return this._lineGap = 0;
  33138. },
  33139. lineGap: function(_lineGap) {
  33140. this._lineGap = _lineGap;
  33141. return this;
  33142. },
  33143. moveDown: function(lines) {
  33144. if (lines == null) {
  33145. lines = 1;
  33146. }
  33147. this.y += this.currentLineHeight(true) * lines + this._lineGap;
  33148. return this;
  33149. },
  33150. moveUp: function(lines) {
  33151. if (lines == null) {
  33152. lines = 1;
  33153. }
  33154. this.y -= this.currentLineHeight(true) * lines + this._lineGap;
  33155. return this;
  33156. },
  33157. _text: function(text, x, y, options, lineCallback) {
  33158. var line, wrapper, _i, _len, _ref;
  33159. options = this._initOptions(x, y, options);
  33160. text = '' + text;
  33161. if (options.wordSpacing) {
  33162. text = text.replace(/\s{2,}/g, ' ');
  33163. }
  33164. if (options.width) {
  33165. wrapper = this._wrapper;
  33166. if (!wrapper) {
  33167. wrapper = new LineWrapper(this, options);
  33168. wrapper.on('line', lineCallback);
  33169. }
  33170. this._wrapper = options.continued ? wrapper : null;
  33171. this._textOptions = options.continued ? options : null;
  33172. wrapper.wrap(text, options);
  33173. } else {
  33174. _ref = text.split('\n');
  33175. for (_i = 0, _len = _ref.length; _i < _len; _i++) {
  33176. line = _ref[_i];
  33177. lineCallback(line, options);
  33178. }
  33179. }
  33180. return this;
  33181. },
  33182. text: function(text, x, y, options) {
  33183. return this._text(text, x, y, options, this._line.bind(this));
  33184. },
  33185. widthOfString: function(string, options) {
  33186. if (options == null) {
  33187. options = {};
  33188. }
  33189. return this._font.widthOfString(string, this._fontSize) + (options.characterSpacing || 0) * (string.length - 1);
  33190. },
  33191. heightOfString: function(text, options) {
  33192. var height, lineGap, x, y;
  33193. if (options == null) {
  33194. options = {};
  33195. }
  33196. x = this.x, y = this.y;
  33197. options = this._initOptions(options);
  33198. options.height = Infinity;
  33199. lineGap = options.lineGap || this._lineGap || 0;
  33200. this._text(text, this.x, this.y, options, (function(_this) {
  33201. return function(line, options) {
  33202. return _this.y += _this.currentLineHeight(true) + lineGap;
  33203. };
  33204. })(this));
  33205. height = this.y - y;
  33206. this.x = x;
  33207. this.y = y;
  33208. return height;
  33209. },
  33210. list: function(list, x, y, options, wrapper) {
  33211. var flatten, i, indent, itemIndent, items, level, levels, r;
  33212. options = this._initOptions(x, y, options);
  33213. r = Math.round((this._font.ascender / 1000 * this._fontSize) / 3);
  33214. indent = options.textIndent || r * 5;
  33215. itemIndent = options.bulletIndent || r * 8;
  33216. level = 1;
  33217. items = [];
  33218. levels = [];
  33219. flatten = function(list) {
  33220. var i, item, _i, _len, _results;
  33221. _results = [];
  33222. for (i = _i = 0, _len = list.length; _i < _len; i = ++_i) {
  33223. item = list[i];
  33224. if (Array.isArray(item)) {
  33225. level++;
  33226. flatten(item);
  33227. _results.push(level--);
  33228. } else {
  33229. items.push(item);
  33230. _results.push(levels.push(level));
  33231. }
  33232. }
  33233. return _results;
  33234. };
  33235. flatten(list);
  33236. wrapper = new LineWrapper(this, options);
  33237. wrapper.on('line', this._line.bind(this));
  33238. level = 1;
  33239. i = 0;
  33240. wrapper.on('firstLine', (function(_this) {
  33241. return function() {
  33242. var diff, l;
  33243. if ((l = levels[i++]) !== level) {
  33244. diff = itemIndent * (l - level);
  33245. _this.x += diff;
  33246. wrapper.lineWidth -= diff;
  33247. level = l;
  33248. }
  33249. _this.circle(_this.x - indent + r, _this.y + r + (r / 2), r);
  33250. return _this.fill();
  33251. };
  33252. })(this));
  33253. wrapper.on('sectionStart', (function(_this) {
  33254. return function() {
  33255. var pos;
  33256. pos = indent + itemIndent * (level - 1);
  33257. _this.x += pos;
  33258. return wrapper.lineWidth -= pos;
  33259. };
  33260. })(this));
  33261. wrapper.on('sectionEnd', (function(_this) {
  33262. return function() {
  33263. var pos;
  33264. pos = indent + itemIndent * (level - 1);
  33265. _this.x -= pos;
  33266. return wrapper.lineWidth += pos;
  33267. };
  33268. })(this));
  33269. wrapper.wrap(items.join('\n'), options);
  33270. return this;
  33271. },
  33272. _initOptions: function(x, y, options) {
  33273. var key, margins, val, _ref;
  33274. if (x == null) {
  33275. x = {};
  33276. }
  33277. if (options == null) {
  33278. options = {};
  33279. }
  33280. if (typeof x === 'object') {
  33281. options = x;
  33282. x = null;
  33283. }
  33284. options = (function() {
  33285. var k, opts, v;
  33286. opts = {};
  33287. for (k in options) {
  33288. v = options[k];
  33289. opts[k] = v;
  33290. }
  33291. return opts;
  33292. })();
  33293. if (this._textOptions) {
  33294. _ref = this._textOptions;
  33295. for (key in _ref) {
  33296. val = _ref[key];
  33297. if (key !== 'continued') {
  33298. if (options[key] == null) {
  33299. options[key] = val;
  33300. }
  33301. }
  33302. }
  33303. }
  33304. if (x != null) {
  33305. this.x = x;
  33306. }
  33307. if (y != null) {
  33308. this.y = y;
  33309. }
  33310. if (options.lineBreak !== false) {
  33311. margins = this.page.margins;
  33312. if (options.width == null) {
  33313. options.width = this.page.width - this.x - margins.right;
  33314. }
  33315. }
  33316. options.columns || (options.columns = 0);
  33317. if (options.columnGap == null) {
  33318. options.columnGap = 18;
  33319. }
  33320. return options;
  33321. },
  33322. _line: function(text, options, wrapper) {
  33323. var lineGap;
  33324. if (options == null) {
  33325. options = {};
  33326. }
  33327. this._fragment(text, this.x, this.y, options);
  33328. lineGap = options.lineGap || this._lineGap || 0;
  33329. if (!wrapper) {
  33330. return this.x += this.widthOfString(text);
  33331. } else {
  33332. return this.y += this.currentLineHeight(true) + lineGap;
  33333. }
  33334. },
  33335. _fragment: function(text, x, y, options) {
  33336. var align, characterSpacing, commands, d, encoded, i, lineWidth, lineY, mode, renderedWidth, spaceWidth, textWidth, word, wordSpacing, words, _base, _i, _len, _name;
  33337. text = '' + text;
  33338. if (text.length === 0) {
  33339. return;
  33340. }
  33341. align = options.align || 'left';
  33342. wordSpacing = options.wordSpacing || 0;
  33343. characterSpacing = options.characterSpacing || 0;
  33344. if (options.width) {
  33345. switch (align) {
  33346. case 'right':
  33347. textWidth = this.widthOfString(text.replace(/\s+$/, ''), options);
  33348. x += options.lineWidth - textWidth;
  33349. break;
  33350. case 'center':
  33351. x += options.lineWidth / 2 - options.textWidth / 2;
  33352. break;
  33353. case 'justify':
  33354. words = text.trim().split(/\s+/);
  33355. textWidth = this.widthOfString(text.replace(/\s+/g, ''), options);
  33356. spaceWidth = this.widthOfString(' ') + characterSpacing;
  33357. wordSpacing = Math.max(0, (options.lineWidth - textWidth) / Math.max(1, words.length - 1) - spaceWidth);
  33358. }
  33359. }
  33360. renderedWidth = options.textWidth + (wordSpacing * (options.wordCount - 1)) + (characterSpacing * (text.length - 1));
  33361. if (options.link) {
  33362. this.link(x, y, renderedWidth, this.currentLineHeight(), options.link);
  33363. }
  33364. if (options.underline || options.strike) {
  33365. this.save();
  33366. if (!options.stroke) {
  33367. this.strokeColor.apply(this, this._fillColor);
  33368. }
  33369. lineWidth = this._fontSize < 10 ? 0.5 : Math.floor(this._fontSize / 10);
  33370. this.lineWidth(lineWidth);
  33371. d = options.underline ? 1 : 2;
  33372. lineY = y + this.currentLineHeight() / d;
  33373. if (options.underline) {
  33374. lineY -= lineWidth;
  33375. }
  33376. this.moveTo(x, lineY);
  33377. this.lineTo(x + renderedWidth, lineY);
  33378. this.stroke();
  33379. this.restore();
  33380. }
  33381. this.save();
  33382. this.transform(1, 0, 0, -1, 0, this.page.height);
  33383. y = this.page.height - y - (this._font.ascender / 1000 * this._fontSize);
  33384. if ((_base = this.page.fonts)[_name = this._font.id] == null) {
  33385. _base[_name] = this._font.ref();
  33386. }
  33387. this._font.use(text);
  33388. this.addContent("BT");
  33389. this.addContent("" + x + " " + y + " Td");
  33390. this.addContent("/" + this._font.id + " " + this._fontSize + " Tf");
  33391. mode = options.fill && options.stroke ? 2 : options.stroke ? 1 : 0;
  33392. if (mode) {
  33393. this.addContent("" + mode + " Tr");
  33394. }
  33395. if (characterSpacing) {
  33396. this.addContent("" + characterSpacing + " Tc");
  33397. }
  33398. if (wordSpacing) {
  33399. words = text.trim().split(/\s+/);
  33400. wordSpacing += this.widthOfString(' ') + characterSpacing;
  33401. wordSpacing *= 1000 / this._fontSize;
  33402. commands = [];
  33403. for (_i = 0, _len = words.length; _i < _len; _i++) {
  33404. word = words[_i];
  33405. encoded = this._font.encode(word);
  33406. encoded = ((function() {
  33407. var _j, _ref, _results;
  33408. _results = [];
  33409. for (i = _j = 0, _ref = encoded.length; _j < _ref; i = _j += 1) {
  33410. _results.push(encoded.charCodeAt(i).toString(16));
  33411. }
  33412. return _results;
  33413. })()).join('');
  33414. commands.push("<" + encoded + "> " + (-wordSpacing));
  33415. }
  33416. this.addContent("[" + (commands.join(' ')) + "] TJ");
  33417. } else {
  33418. encoded = this._font.encode(text);
  33419. encoded = ((function() {
  33420. var _j, _ref, _results;
  33421. _results = [];
  33422. for (i = _j = 0, _ref = encoded.length; _j < _ref; i = _j += 1) {
  33423. _results.push(encoded.charCodeAt(i).toString(16));
  33424. }
  33425. return _results;
  33426. })()).join('');
  33427. this.addContent("<" + encoded + "> Tj");
  33428. }
  33429. this.addContent("ET");
  33430. return this.restore();
  33431. }
  33432. };
  33433. }).call(this);
  33434. /***/ },
  33435. /* 41 */
  33436. /***/ function(module, exports, __webpack_require__) {
  33437. // Generated by CoffeeScript 1.7.1
  33438. (function() {
  33439. var PDFGradient, PDFLinearGradient, PDFRadialGradient, namedColors, _ref;
  33440. _ref = __webpack_require__(49), PDFGradient = _ref.PDFGradient, PDFLinearGradient = _ref.PDFLinearGradient, PDFRadialGradient = _ref.PDFRadialGradient;
  33441. module.exports = {
  33442. initColor: function() {
  33443. this._opacityRegistry = {};
  33444. this._opacityCount = 0;
  33445. return this._gradCount = 0;
  33446. },
  33447. _normalizeColor: function(color) {
  33448. var hex, part;
  33449. if (color instanceof PDFGradient) {
  33450. return color;
  33451. }
  33452. if (typeof color === 'string') {
  33453. if (color.charAt(0) === '#') {
  33454. if (color.length === 4) {
  33455. color = color.replace(/#([0-9A-F])([0-9A-F])([0-9A-F])/i, "#$1$1$2$2$3$3");
  33456. }
  33457. hex = parseInt(color.slice(1), 16);
  33458. color = [hex >> 16, hex >> 8 & 0xff, hex & 0xff];
  33459. } else if (namedColors[color]) {
  33460. color = namedColors[color];
  33461. }
  33462. }
  33463. if (Array.isArray(color)) {
  33464. if (color.length === 3) {
  33465. color = (function() {
  33466. var _i, _len, _results;
  33467. _results = [];
  33468. for (_i = 0, _len = color.length; _i < _len; _i++) {
  33469. part = color[_i];
  33470. _results.push(part / 255);
  33471. }
  33472. return _results;
  33473. })();
  33474. } else if (color.length === 4) {
  33475. color = (function() {
  33476. var _i, _len, _results;
  33477. _results = [];
  33478. for (_i = 0, _len = color.length; _i < _len; _i++) {
  33479. part = color[_i];
  33480. _results.push(part / 100);
  33481. }
  33482. return _results;
  33483. })();
  33484. }
  33485. return color;
  33486. }
  33487. return null;
  33488. },
  33489. _setColor: function(color, stroke) {
  33490. var gstate, name, op, space;
  33491. color = this._normalizeColor(color);
  33492. if (!color) {
  33493. return false;
  33494. }
  33495. if (this._sMasked) {
  33496. gstate = this.ref({
  33497. Type: 'ExtGState',
  33498. SMask: 'None'
  33499. });
  33500. gstate.end();
  33501. name = "Gs" + (++this._opacityCount);
  33502. this.page.ext_gstates[name] = gstate;
  33503. this.addContent("/" + name + " gs");
  33504. this._sMasked = false;
  33505. }
  33506. op = stroke ? 'SCN' : 'scn';
  33507. if (color instanceof PDFGradient) {
  33508. this._setColorSpace('Pattern', stroke);
  33509. color.apply(op);
  33510. } else {
  33511. space = color.length === 4 ? 'DeviceCMYK' : 'DeviceRGB';
  33512. this._setColorSpace(space, stroke);
  33513. color = color.join(' ');
  33514. this.addContent("" + color + " " + op);
  33515. }
  33516. return true;
  33517. },
  33518. _setColorSpace: function(space, stroke) {
  33519. var op;
  33520. op = stroke ? 'CS' : 'cs';
  33521. return this.addContent("/" + space + " " + op);
  33522. },
  33523. fillColor: function(color, opacity) {
  33524. var set;
  33525. if (opacity == null) {
  33526. opacity = 1;
  33527. }
  33528. set = this._setColor(color, false);
  33529. if (set) {
  33530. this.fillOpacity(opacity);
  33531. }
  33532. this._fillColor = [color, opacity];
  33533. return this;
  33534. },
  33535. strokeColor: function(color, opacity) {
  33536. var set;
  33537. if (opacity == null) {
  33538. opacity = 1;
  33539. }
  33540. set = this._setColor(color, true);
  33541. if (set) {
  33542. this.strokeOpacity(opacity);
  33543. }
  33544. return this;
  33545. },
  33546. opacity: function(opacity) {
  33547. this._doOpacity(opacity, opacity);
  33548. return this;
  33549. },
  33550. fillOpacity: function(opacity) {
  33551. this._doOpacity(opacity, null);
  33552. return this;
  33553. },
  33554. strokeOpacity: function(opacity) {
  33555. this._doOpacity(null, opacity);
  33556. return this;
  33557. },
  33558. _doOpacity: function(fillOpacity, strokeOpacity) {
  33559. var dictionary, id, key, name, _ref1;
  33560. if (!((fillOpacity != null) || (strokeOpacity != null))) {
  33561. return;
  33562. }
  33563. if (fillOpacity != null) {
  33564. fillOpacity = Math.max(0, Math.min(1, fillOpacity));
  33565. }
  33566. if (strokeOpacity != null) {
  33567. strokeOpacity = Math.max(0, Math.min(1, strokeOpacity));
  33568. }
  33569. key = "" + fillOpacity + "_" + strokeOpacity;
  33570. if (this._opacityRegistry[key]) {
  33571. _ref1 = this._opacityRegistry[key], dictionary = _ref1[0], name = _ref1[1];
  33572. } else {
  33573. dictionary = {
  33574. Type: 'ExtGState'
  33575. };
  33576. if (fillOpacity != null) {
  33577. dictionary.ca = fillOpacity;
  33578. }
  33579. if (strokeOpacity != null) {
  33580. dictionary.CA = strokeOpacity;
  33581. }
  33582. dictionary = this.ref(dictionary);
  33583. dictionary.end();
  33584. id = ++this._opacityCount;
  33585. name = "Gs" + id;
  33586. this._opacityRegistry[key] = [dictionary, name];
  33587. }
  33588. this.page.ext_gstates[name] = dictionary;
  33589. return this.addContent("/" + name + " gs");
  33590. },
  33591. linearGradient: function(x1, y1, x2, y2) {
  33592. return new PDFLinearGradient(this, x1, y1, x2, y2);
  33593. },
  33594. radialGradient: function(x1, y1, r1, x2, y2, r2) {
  33595. return new PDFRadialGradient(this, x1, y1, r1, x2, y2, r2);
  33596. }
  33597. };
  33598. namedColors = {
  33599. aliceblue: [240, 248, 255],
  33600. antiquewhite: [250, 235, 215],
  33601. aqua: [0, 255, 255],
  33602. aquamarine: [127, 255, 212],
  33603. azure: [240, 255, 255],
  33604. beige: [245, 245, 220],
  33605. bisque: [255, 228, 196],
  33606. black: [0, 0, 0],
  33607. blanchedalmond: [255, 235, 205],
  33608. blue: [0, 0, 255],
  33609. blueviolet: [138, 43, 226],
  33610. brown: [165, 42, 42],
  33611. burlywood: [222, 184, 135],
  33612. cadetblue: [95, 158, 160],
  33613. chartreuse: [127, 255, 0],
  33614. chocolate: [210, 105, 30],
  33615. coral: [255, 127, 80],
  33616. cornflowerblue: [100, 149, 237],
  33617. cornsilk: [255, 248, 220],
  33618. crimson: [220, 20, 60],
  33619. cyan: [0, 255, 255],
  33620. darkblue: [0, 0, 139],
  33621. darkcyan: [0, 139, 139],
  33622. darkgoldenrod: [184, 134, 11],
  33623. darkgray: [169, 169, 169],
  33624. darkgreen: [0, 100, 0],
  33625. darkgrey: [169, 169, 169],
  33626. darkkhaki: [189, 183, 107],
  33627. darkmagenta: [139, 0, 139],
  33628. darkolivegreen: [85, 107, 47],
  33629. darkorange: [255, 140, 0],
  33630. darkorchid: [153, 50, 204],
  33631. darkred: [139, 0, 0],
  33632. darksalmon: [233, 150, 122],
  33633. darkseagreen: [143, 188, 143],
  33634. darkslateblue: [72, 61, 139],
  33635. darkslategray: [47, 79, 79],
  33636. darkslategrey: [47, 79, 79],
  33637. darkturquoise: [0, 206, 209],
  33638. darkviolet: [148, 0, 211],
  33639. deeppink: [255, 20, 147],
  33640. deepskyblue: [0, 191, 255],
  33641. dimgray: [105, 105, 105],
  33642. dimgrey: [105, 105, 105],
  33643. dodgerblue: [30, 144, 255],
  33644. firebrick: [178, 34, 34],
  33645. floralwhite: [255, 250, 240],
  33646. forestgreen: [34, 139, 34],
  33647. fuchsia: [255, 0, 255],
  33648. gainsboro: [220, 220, 220],
  33649. ghostwhite: [248, 248, 255],
  33650. gold: [255, 215, 0],
  33651. goldenrod: [218, 165, 32],
  33652. gray: [128, 128, 128],
  33653. grey: [128, 128, 128],
  33654. green: [0, 128, 0],
  33655. greenyellow: [173, 255, 47],
  33656. honeydew: [240, 255, 240],
  33657. hotpink: [255, 105, 180],
  33658. indianred: [205, 92, 92],
  33659. indigo: [75, 0, 130],
  33660. ivory: [255, 255, 240],
  33661. khaki: [240, 230, 140],
  33662. lavender: [230, 230, 250],
  33663. lavenderblush: [255, 240, 245],
  33664. lawngreen: [124, 252, 0],
  33665. lemonchiffon: [255, 250, 205],
  33666. lightblue: [173, 216, 230],
  33667. lightcoral: [240, 128, 128],
  33668. lightcyan: [224, 255, 255],
  33669. lightgoldenrodyellow: [250, 250, 210],
  33670. lightgray: [211, 211, 211],
  33671. lightgreen: [144, 238, 144],
  33672. lightgrey: [211, 211, 211],
  33673. lightpink: [255, 182, 193],
  33674. lightsalmon: [255, 160, 122],
  33675. lightseagreen: [32, 178, 170],
  33676. lightskyblue: [135, 206, 250],
  33677. lightslategray: [119, 136, 153],
  33678. lightslategrey: [119, 136, 153],
  33679. lightsteelblue: [176, 196, 222],
  33680. lightyellow: [255, 255, 224],
  33681. lime: [0, 255, 0],
  33682. limegreen: [50, 205, 50],
  33683. linen: [250, 240, 230],
  33684. magenta: [255, 0, 255],
  33685. maroon: [128, 0, 0],
  33686. mediumaquamarine: [102, 205, 170],
  33687. mediumblue: [0, 0, 205],
  33688. mediumorchid: [186, 85, 211],
  33689. mediumpurple: [147, 112, 219],
  33690. mediumseagreen: [60, 179, 113],
  33691. mediumslateblue: [123, 104, 238],
  33692. mediumspringgreen: [0, 250, 154],
  33693. mediumturquoise: [72, 209, 204],
  33694. mediumvioletred: [199, 21, 133],
  33695. midnightblue: [25, 25, 112],
  33696. mintcream: [245, 255, 250],
  33697. mistyrose: [255, 228, 225],
  33698. moccasin: [255, 228, 181],
  33699. navajowhite: [255, 222, 173],
  33700. navy: [0, 0, 128],
  33701. oldlace: [253, 245, 230],
  33702. olive: [128, 128, 0],
  33703. olivedrab: [107, 142, 35],
  33704. orange: [255, 165, 0],
  33705. orangered: [255, 69, 0],
  33706. orchid: [218, 112, 214],
  33707. palegoldenrod: [238, 232, 170],
  33708. palegreen: [152, 251, 152],
  33709. paleturquoise: [175, 238, 238],
  33710. palevioletred: [219, 112, 147],
  33711. papayawhip: [255, 239, 213],
  33712. peachpuff: [255, 218, 185],
  33713. peru: [205, 133, 63],
  33714. pink: [255, 192, 203],
  33715. plum: [221, 160, 221],
  33716. powderblue: [176, 224, 230],
  33717. purple: [128, 0, 128],
  33718. red: [255, 0, 0],
  33719. rosybrown: [188, 143, 143],
  33720. royalblue: [65, 105, 225],
  33721. saddlebrown: [139, 69, 19],
  33722. salmon: [250, 128, 114],
  33723. sandybrown: [244, 164, 96],
  33724. seagreen: [46, 139, 87],
  33725. seashell: [255, 245, 238],
  33726. sienna: [160, 82, 45],
  33727. silver: [192, 192, 192],
  33728. skyblue: [135, 206, 235],
  33729. slateblue: [106, 90, 205],
  33730. slategray: [112, 128, 144],
  33731. slategrey: [112, 128, 144],
  33732. snow: [255, 250, 250],
  33733. springgreen: [0, 255, 127],
  33734. steelblue: [70, 130, 180],
  33735. tan: [210, 180, 140],
  33736. teal: [0, 128, 128],
  33737. thistle: [216, 191, 216],
  33738. tomato: [255, 99, 71],
  33739. turquoise: [64, 224, 208],
  33740. violet: [238, 130, 238],
  33741. wheat: [245, 222, 179],
  33742. white: [255, 255, 255],
  33743. whitesmoke: [245, 245, 245],
  33744. yellow: [255, 255, 0],
  33745. yellowgreen: [154, 205, 50]
  33746. };
  33747. }).call(this);
  33748. /***/ },
  33749. /* 42 */
  33750. /***/ function(module, exports, __webpack_require__) {
  33751. /* WEBPACK VAR INJECTION */(function(Buffer) {// Generated by CoffeeScript 1.7.1
  33752. (function() {
  33753. var PDFImage;
  33754. PDFImage = __webpack_require__(17);
  33755. module.exports = {
  33756. initImages: function() {
  33757. this._imageRegistry = {};
  33758. return this._imageCount = 0;
  33759. },
  33760. image: function(src, x, y, options) {
  33761. var bh, bp, bw, h, hp, image, ip, w, wp, _base, _name, _ref, _ref1, _ref2;
  33762. if (options == null) {
  33763. options = {};
  33764. }
  33765. if (typeof x === 'object') {
  33766. options = x;
  33767. x = null;
  33768. }
  33769. x = (_ref = x != null ? x : options.x) != null ? _ref : this.x;
  33770. y = (_ref1 = y != null ? y : options.y) != null ? _ref1 : this.y;
  33771. if (!Buffer.isBuffer(src)) {
  33772. image = this._imageRegistry[src];
  33773. }
  33774. if (!image) {
  33775. image = PDFImage.open(src, 'I' + (++this._imageCount));
  33776. image.embed(this);
  33777. if (!Buffer.isBuffer(src)) {
  33778. this._imageRegistry[src] = image;
  33779. }
  33780. }
  33781. if ((_base = this.page.xobjects)[_name = image.label] == null) {
  33782. _base[_name] = image.obj;
  33783. }
  33784. w = options.width || image.width;
  33785. h = options.height || image.height;
  33786. if (options.width && !options.height) {
  33787. wp = w / image.width;
  33788. w = image.width * wp;
  33789. h = image.height * wp;
  33790. } else if (options.height && !options.width) {
  33791. hp = h / image.height;
  33792. w = image.width * hp;
  33793. h = image.height * hp;
  33794. } else if (options.scale) {
  33795. w = image.width * options.scale;
  33796. h = image.height * options.scale;
  33797. } else if (options.fit) {
  33798. _ref2 = options.fit, bw = _ref2[0], bh = _ref2[1];
  33799. bp = bw / bh;
  33800. ip = image.width / image.height;
  33801. if (ip > bp) {
  33802. w = bw;
  33803. h = bw / ip;
  33804. } else {
  33805. h = bh;
  33806. w = bh * ip;
  33807. }
  33808. if (options.align === 'center') {
  33809. x = x + bw / 2 - w / 2;
  33810. } else if (options.align === 'right') {
  33811. x = x + bw - w;
  33812. }
  33813. if (options.valign === 'center') {
  33814. y = y + bh / 2 - h / 2;
  33815. } else if (options.valign === 'bottom') {
  33816. y = y + bh - h;
  33817. }
  33818. }
  33819. if (this.y === y) {
  33820. this.y += h;
  33821. }
  33822. this.save();
  33823. this.transform(w, 0, 0, -h, x, y + h);
  33824. this.addContent("/" + image.label + " Do");
  33825. this.restore();
  33826. return this;
  33827. }
  33828. };
  33829. }).call(this);
  33830. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4).Buffer))
  33831. /***/ },
  33832. /* 43 */
  33833. /***/ function(module, exports, __webpack_require__) {
  33834. // Generated by CoffeeScript 1.7.1
  33835. (function() {
  33836. module.exports = {
  33837. annotate: function(x, y, w, h, options) {
  33838. var key, ref, val;
  33839. options.Type = 'Annot';
  33840. options.Rect = this._convertRect(x, y, w, h);
  33841. options.Border = [0, 0, 0];
  33842. if (options.Subtype !== 'Link') {
  33843. if (options.C == null) {
  33844. options.C = this._normalizeColor(options.color || [0, 0, 0]);
  33845. }
  33846. }
  33847. delete options.color;
  33848. if (typeof options.Dest === 'string') {
  33849. options.Dest = new String(options.Dest);
  33850. }
  33851. for (key in options) {
  33852. val = options[key];
  33853. options[key[0].toUpperCase() + key.slice(1)] = val;
  33854. }
  33855. ref = this.ref(options);
  33856. this.page.annotations.push(ref);
  33857. ref.end();
  33858. return this;
  33859. },
  33860. note: function(x, y, w, h, contents, options) {
  33861. if (options == null) {
  33862. options = {};
  33863. }
  33864. options.Subtype = 'Text';
  33865. options.Contents = new String(contents);
  33866. options.Name = 'Comment';
  33867. if (options.color == null) {
  33868. options.color = [243, 223, 92];
  33869. }
  33870. return this.annotate(x, y, w, h, options);
  33871. },
  33872. link: function(x, y, w, h, url, options) {
  33873. if (options == null) {
  33874. options = {};
  33875. }
  33876. options.Subtype = 'Link';
  33877. options.A = this.ref({
  33878. S: 'URI',
  33879. URI: new String(url)
  33880. });
  33881. options.A.end();
  33882. return this.annotate(x, y, w, h, options);
  33883. },
  33884. _markup: function(x, y, w, h, options) {
  33885. var x1, x2, y1, y2, _ref;
  33886. if (options == null) {
  33887. options = {};
  33888. }
  33889. _ref = this._convertRect(x, y, w, h), x1 = _ref[0], y1 = _ref[1], x2 = _ref[2], y2 = _ref[3];
  33890. options.QuadPoints = [x1, y2, x2, y2, x1, y1, x2, y1];
  33891. options.Contents = new String;
  33892. return this.annotate(x, y, w, h, options);
  33893. },
  33894. highlight: function(x, y, w, h, options) {
  33895. if (options == null) {
  33896. options = {};
  33897. }
  33898. options.Subtype = 'Highlight';
  33899. if (options.color == null) {
  33900. options.color = [241, 238, 148];
  33901. }
  33902. return this._markup(x, y, w, h, options);
  33903. },
  33904. underline: function(x, y, w, h, options) {
  33905. if (options == null) {
  33906. options = {};
  33907. }
  33908. options.Subtype = 'Underline';
  33909. return this._markup(x, y, w, h, options);
  33910. },
  33911. strike: function(x, y, w, h, options) {
  33912. if (options == null) {
  33913. options = {};
  33914. }
  33915. options.Subtype = 'StrikeOut';
  33916. return this._markup(x, y, w, h, options);
  33917. },
  33918. lineAnnotation: function(x1, y1, x2, y2, options) {
  33919. if (options == null) {
  33920. options = {};
  33921. }
  33922. options.Subtype = 'Line';
  33923. options.Contents = new String;
  33924. options.L = [x1, this.page.height - y1, x2, this.page.height - y2];
  33925. return this.annotate(x1, y1, x2, y2, options);
  33926. },
  33927. rectAnnotation: function(x, y, w, h, options) {
  33928. if (options == null) {
  33929. options = {};
  33930. }
  33931. options.Subtype = 'Square';
  33932. options.Contents = new String;
  33933. return this.annotate(x, y, w, h, options);
  33934. },
  33935. ellipseAnnotation: function(x, y, w, h, options) {
  33936. if (options == null) {
  33937. options = {};
  33938. }
  33939. options.Subtype = 'Circle';
  33940. options.Contents = new String;
  33941. return this.annotate(x, y, w, h, options);
  33942. },
  33943. textAnnotation: function(x, y, w, h, text, options) {
  33944. if (options == null) {
  33945. options = {};
  33946. }
  33947. options.Subtype = 'FreeText';
  33948. options.Contents = new String(text);
  33949. options.DA = new String;
  33950. return this.annotate(x, y, w, h, options);
  33951. },
  33952. _convertRect: function(x1, y1, w, h) {
  33953. var m0, m1, m2, m3, m4, m5, x2, y2, _ref;
  33954. y2 = y1;
  33955. y1 += h;
  33956. x2 = x1 + w;
  33957. _ref = this._ctm, m0 = _ref[0], m1 = _ref[1], m2 = _ref[2], m3 = _ref[3], m4 = _ref[4], m5 = _ref[5];
  33958. x1 = m0 * x1 + m2 * y1 + m4;
  33959. y1 = m1 * x1 + m3 * y1 + m5;
  33960. x2 = m0 * x2 + m2 * y2 + m4;
  33961. y2 = m1 * x2 + m3 * y2 + m5;
  33962. return [x1, y1, x2, y2];
  33963. }
  33964. };
  33965. }).call(this);
  33966. /***/ },
  33967. /* 44 */
  33968. /***/ function(module, exports, __webpack_require__) {
  33969. // Generated by CoffeeScript 1.7.1
  33970. (function() {
  33971. var PDFFont;
  33972. PDFFont = __webpack_require__(52);
  33973. module.exports = {
  33974. initFonts: function() {
  33975. this._fontFamilies = {};
  33976. this._fontCount = 0;
  33977. this._fontSize = 12;
  33978. this._font = null;
  33979. this._registeredFonts = {};
  33980. },
  33981. font: function(src, family, size) {
  33982. var cacheKey, font, id, _ref;
  33983. if (typeof family === 'number') {
  33984. size = family;
  33985. family = null;
  33986. }
  33987. if (typeof src === 'string' && this._registeredFonts[src]) {
  33988. cacheKey = src;
  33989. _ref = this._registeredFonts[src], src = _ref.src, family = _ref.family;
  33990. } else {
  33991. cacheKey = family || src;
  33992. if (typeof cacheKey !== 'string') {
  33993. cacheKey = null;
  33994. }
  33995. }
  33996. if (size != null) {
  33997. this.fontSize(size);
  33998. }
  33999. if (font = this._fontFamilies[cacheKey]) {
  34000. this._font = font;
  34001. return this;
  34002. }
  34003. id = 'F' + (++this._fontCount);
  34004. this._font = new PDFFont(this, src, family, id);
  34005. if (font = this._fontFamilies[this._font.name]) {
  34006. this._font = font;
  34007. return this;
  34008. }
  34009. if (cacheKey) {
  34010. this._fontFamilies[cacheKey] = this._font;
  34011. }
  34012. this._fontFamilies[this._font.name] = this._font;
  34013. return this;
  34014. },
  34015. fontSize: function(_fontSize) {
  34016. this._fontSize = _fontSize;
  34017. return this;
  34018. },
  34019. currentLineHeight: function(includeGap) {
  34020. if (includeGap == null) {
  34021. includeGap = false;
  34022. }
  34023. return this._font.lineHeight(this._fontSize, includeGap);
  34024. },
  34025. registerFont: function(name, src, family) {
  34026. this._registeredFonts[name] = {
  34027. src: src,
  34028. family: family
  34029. };
  34030. return this;
  34031. }
  34032. };
  34033. }).call(this);
  34034. /***/ },
  34035. /* 45 */
  34036. /***/ function(module, exports, __webpack_require__) {
  34037. /* WEBPACK VAR INJECTION */(function(Buffer, process) {// Copyright Joyent, Inc. and other Node contributors.
  34038. //
  34039. // Permission is hereby granted, free of charge, to any person obtaining a
  34040. // copy of this software and associated documentation files (the
  34041. // "Software"), to deal in the Software without restriction, including
  34042. // without limitation the rights to use, copy, modify, merge, publish,
  34043. // distribute, sublicense, and/or sell copies of the Software, and to permit
  34044. // persons to whom the Software is furnished to do so, subject to the
  34045. // following conditions:
  34046. //
  34047. // The above copyright notice and this permission notice shall be included
  34048. // in all copies or substantial portions of the Software.
  34049. //
  34050. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  34051. // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  34052. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
  34053. // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  34054. // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  34055. // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  34056. // USE OR OTHER DEALINGS IN THE SOFTWARE.
  34057. var Transform = __webpack_require__(55);
  34058. var binding = __webpack_require__(50);
  34059. var util = __webpack_require__(60);
  34060. var assert = __webpack_require__(53).ok;
  34061. // zlib doesn't provide these, so kludge them in following the same
  34062. // const naming scheme zlib uses.
  34063. binding.Z_MIN_WINDOWBITS = 8;
  34064. binding.Z_MAX_WINDOWBITS = 15;
  34065. binding.Z_DEFAULT_WINDOWBITS = 15;
  34066. // fewer than 64 bytes per chunk is stupid.
  34067. // technically it could work with as few as 8, but even 64 bytes
  34068. // is absurdly low. Usually a MB or more is best.
  34069. binding.Z_MIN_CHUNK = 64;
  34070. binding.Z_MAX_CHUNK = Infinity;
  34071. binding.Z_DEFAULT_CHUNK = (16 * 1024);
  34072. binding.Z_MIN_MEMLEVEL = 1;
  34073. binding.Z_MAX_MEMLEVEL = 9;
  34074. binding.Z_DEFAULT_MEMLEVEL = 8;
  34075. binding.Z_MIN_LEVEL = -1;
  34076. binding.Z_MAX_LEVEL = 9;
  34077. binding.Z_DEFAULT_LEVEL = binding.Z_DEFAULT_COMPRESSION;
  34078. // expose all the zlib constants
  34079. Object.keys(binding).forEach(function(k) {
  34080. if (k.match(/^Z/)) exports[k] = binding[k];
  34081. });
  34082. // translation table for return codes.
  34083. exports.codes = {
  34084. Z_OK: binding.Z_OK,
  34085. Z_STREAM_END: binding.Z_STREAM_END,
  34086. Z_NEED_DICT: binding.Z_NEED_DICT,
  34087. Z_ERRNO: binding.Z_ERRNO,
  34088. Z_STREAM_ERROR: binding.Z_STREAM_ERROR,
  34089. Z_DATA_ERROR: binding.Z_DATA_ERROR,
  34090. Z_MEM_ERROR: binding.Z_MEM_ERROR,
  34091. Z_BUF_ERROR: binding.Z_BUF_ERROR,
  34092. Z_VERSION_ERROR: binding.Z_VERSION_ERROR
  34093. };
  34094. Object.keys(exports.codes).forEach(function(k) {
  34095. exports.codes[exports.codes[k]] = k;
  34096. });
  34097. exports.Deflate = Deflate;
  34098. exports.Inflate = Inflate;
  34099. exports.Gzip = Gzip;
  34100. exports.Gunzip = Gunzip;
  34101. exports.DeflateRaw = DeflateRaw;
  34102. exports.InflateRaw = InflateRaw;
  34103. exports.Unzip = Unzip;
  34104. exports.createDeflate = function(o) {
  34105. return new Deflate(o);
  34106. };
  34107. exports.createInflate = function(o) {
  34108. return new Inflate(o);
  34109. };
  34110. exports.createDeflateRaw = function(o) {
  34111. return new DeflateRaw(o);
  34112. };
  34113. exports.createInflateRaw = function(o) {
  34114. return new InflateRaw(o);
  34115. };
  34116. exports.createGzip = function(o) {
  34117. return new Gzip(o);
  34118. };
  34119. exports.createGunzip = function(o) {
  34120. return new Gunzip(o);
  34121. };
  34122. exports.createUnzip = function(o) {
  34123. return new Unzip(o);
  34124. };
  34125. // Convenience methods.
  34126. // compress/decompress a string or buffer in one step.
  34127. exports.deflate = function(buffer, opts, callback) {
  34128. if (typeof opts === 'function') {
  34129. callback = opts;
  34130. opts = {};
  34131. }
  34132. return zlibBuffer(new Deflate(opts), buffer, callback);
  34133. };
  34134. exports.deflateSync = function(buffer, opts) {
  34135. return zlibBufferSync(new Deflate(opts), buffer);
  34136. };
  34137. exports.gzip = function(buffer, opts, callback) {
  34138. if (typeof opts === 'function') {
  34139. callback = opts;
  34140. opts = {};
  34141. }
  34142. return zlibBuffer(new Gzip(opts), buffer, callback);
  34143. };
  34144. exports.gzipSync = function(buffer, opts) {
  34145. return zlibBufferSync(new Gzip(opts), buffer);
  34146. };
  34147. exports.deflateRaw = function(buffer, opts, callback) {
  34148. if (typeof opts === 'function') {
  34149. callback = opts;
  34150. opts = {};
  34151. }
  34152. return zlibBuffer(new DeflateRaw(opts), buffer, callback);
  34153. };
  34154. exports.deflateRawSync = function(buffer, opts) {
  34155. return zlibBufferSync(new DeflateRaw(opts), buffer);
  34156. };
  34157. exports.unzip = function(buffer, opts, callback) {
  34158. if (typeof opts === 'function') {
  34159. callback = opts;
  34160. opts = {};
  34161. }
  34162. return zlibBuffer(new Unzip(opts), buffer, callback);
  34163. };
  34164. exports.unzipSync = function(buffer, opts) {
  34165. return zlibBufferSync(new Unzip(opts), buffer);
  34166. };
  34167. exports.inflate = function(buffer, opts, callback) {
  34168. if (typeof opts === 'function') {
  34169. callback = opts;
  34170. opts = {};
  34171. }
  34172. return zlibBuffer(new Inflate(opts), buffer, callback);
  34173. };
  34174. exports.inflateSync = function(buffer, opts) {
  34175. return zlibBufferSync(new Inflate(opts), buffer);
  34176. };
  34177. exports.gunzip = function(buffer, opts, callback) {
  34178. if (typeof opts === 'function') {
  34179. callback = opts;
  34180. opts = {};
  34181. }
  34182. return zlibBuffer(new Gunzip(opts), buffer, callback);
  34183. };
  34184. exports.gunzipSync = function(buffer, opts) {
  34185. return zlibBufferSync(new Gunzip(opts), buffer);
  34186. };
  34187. exports.inflateRaw = function(buffer, opts, callback) {
  34188. if (typeof opts === 'function') {
  34189. callback = opts;
  34190. opts = {};
  34191. }
  34192. return zlibBuffer(new InflateRaw(opts), buffer, callback);
  34193. };
  34194. exports.inflateRawSync = function(buffer, opts) {
  34195. return zlibBufferSync(new InflateRaw(opts), buffer);
  34196. };
  34197. function zlibBuffer(engine, buffer, callback) {
  34198. var buffers = [];
  34199. var nread = 0;
  34200. engine.on('error', onError);
  34201. engine.on('end', onEnd);
  34202. engine.end(buffer);
  34203. flow();
  34204. function flow() {
  34205. var chunk;
  34206. while (null !== (chunk = engine.read())) {
  34207. buffers.push(chunk);
  34208. nread += chunk.length;
  34209. }
  34210. engine.once('readable', flow);
  34211. }
  34212. function onError(err) {
  34213. engine.removeListener('end', onEnd);
  34214. engine.removeListener('readable', flow);
  34215. callback(err);
  34216. }
  34217. function onEnd() {
  34218. var buf = Buffer.concat(buffers, nread);
  34219. buffers = [];
  34220. callback(null, buf);
  34221. engine.close();
  34222. }
  34223. }
  34224. function zlibBufferSync(engine, buffer) {
  34225. if (typeof buffer === 'string')
  34226. buffer = new Buffer(buffer);
  34227. if (!Buffer.isBuffer(buffer))
  34228. throw new TypeError('Not a string or buffer');
  34229. var flushFlag = binding.Z_FINISH;
  34230. return engine._processChunk(buffer, flushFlag);
  34231. }
  34232. // generic zlib
  34233. // minimal 2-byte header
  34234. function Deflate(opts) {
  34235. if (!(this instanceof Deflate)) return new Deflate(opts);
  34236. Zlib.call(this, opts, binding.DEFLATE);
  34237. }
  34238. function Inflate(opts) {
  34239. if (!(this instanceof Inflate)) return new Inflate(opts);
  34240. Zlib.call(this, opts, binding.INFLATE);
  34241. }
  34242. // gzip - bigger header, same deflate compression
  34243. function Gzip(opts) {
  34244. if (!(this instanceof Gzip)) return new Gzip(opts);
  34245. Zlib.call(this, opts, binding.GZIP);
  34246. }
  34247. function Gunzip(opts) {
  34248. if (!(this instanceof Gunzip)) return new Gunzip(opts);
  34249. Zlib.call(this, opts, binding.GUNZIP);
  34250. }
  34251. // raw - no header
  34252. function DeflateRaw(opts) {
  34253. if (!(this instanceof DeflateRaw)) return new DeflateRaw(opts);
  34254. Zlib.call(this, opts, binding.DEFLATERAW);
  34255. }
  34256. function InflateRaw(opts) {
  34257. if (!(this instanceof InflateRaw)) return new InflateRaw(opts);
  34258. Zlib.call(this, opts, binding.INFLATERAW);
  34259. }
  34260. // auto-detect header.
  34261. function Unzip(opts) {
  34262. if (!(this instanceof Unzip)) return new Unzip(opts);
  34263. Zlib.call(this, opts, binding.UNZIP);
  34264. }
  34265. // the Zlib class they all inherit from
  34266. // This thing manages the queue of requests, and returns
  34267. // true or false if there is anything in the queue when
  34268. // you call the .write() method.
  34269. function Zlib(opts, mode) {
  34270. this._opts = opts = opts || {};
  34271. this._chunkSize = opts.chunkSize || exports.Z_DEFAULT_CHUNK;
  34272. Transform.call(this, opts);
  34273. if (opts.flush) {
  34274. if (opts.flush !== binding.Z_NO_FLUSH &&
  34275. opts.flush !== binding.Z_PARTIAL_FLUSH &&
  34276. opts.flush !== binding.Z_SYNC_FLUSH &&
  34277. opts.flush !== binding.Z_FULL_FLUSH &&
  34278. opts.flush !== binding.Z_FINISH &&
  34279. opts.flush !== binding.Z_BLOCK) {
  34280. throw new Error('Invalid flush flag: ' + opts.flush);
  34281. }
  34282. }
  34283. this._flushFlag = opts.flush || binding.Z_NO_FLUSH;
  34284. if (opts.chunkSize) {
  34285. if (opts.chunkSize < exports.Z_MIN_CHUNK ||
  34286. opts.chunkSize > exports.Z_MAX_CHUNK) {
  34287. throw new Error('Invalid chunk size: ' + opts.chunkSize);
  34288. }
  34289. }
  34290. if (opts.windowBits) {
  34291. if (opts.windowBits < exports.Z_MIN_WINDOWBITS ||
  34292. opts.windowBits > exports.Z_MAX_WINDOWBITS) {
  34293. throw new Error('Invalid windowBits: ' + opts.windowBits);
  34294. }
  34295. }
  34296. if (opts.level) {
  34297. if (opts.level < exports.Z_MIN_LEVEL ||
  34298. opts.level > exports.Z_MAX_LEVEL) {
  34299. throw new Error('Invalid compression level: ' + opts.level);
  34300. }
  34301. }
  34302. if (opts.memLevel) {
  34303. if (opts.memLevel < exports.Z_MIN_MEMLEVEL ||
  34304. opts.memLevel > exports.Z_MAX_MEMLEVEL) {
  34305. throw new Error('Invalid memLevel: ' + opts.memLevel);
  34306. }
  34307. }
  34308. if (opts.strategy) {
  34309. if (opts.strategy != exports.Z_FILTERED &&
  34310. opts.strategy != exports.Z_HUFFMAN_ONLY &&
  34311. opts.strategy != exports.Z_RLE &&
  34312. opts.strategy != exports.Z_FIXED &&
  34313. opts.strategy != exports.Z_DEFAULT_STRATEGY) {
  34314. throw new Error('Invalid strategy: ' + opts.strategy);
  34315. }
  34316. }
  34317. if (opts.dictionary) {
  34318. if (!Buffer.isBuffer(opts.dictionary)) {
  34319. throw new Error('Invalid dictionary: it should be a Buffer instance');
  34320. }
  34321. }
  34322. this._binding = new binding.Zlib(mode);
  34323. var self = this;
  34324. this._hadError = false;
  34325. this._binding.onerror = function(message, errno) {
  34326. // there is no way to cleanly recover.
  34327. // continuing only obscures problems.
  34328. self._binding = null;
  34329. self._hadError = true;
  34330. var error = new Error(message);
  34331. error.errno = errno;
  34332. error.code = exports.codes[errno];
  34333. self.emit('error', error);
  34334. };
  34335. var level = exports.Z_DEFAULT_COMPRESSION;
  34336. if (typeof opts.level === 'number') level = opts.level;
  34337. var strategy = exports.Z_DEFAULT_STRATEGY;
  34338. if (typeof opts.strategy === 'number') strategy = opts.strategy;
  34339. this._binding.init(opts.windowBits || exports.Z_DEFAULT_WINDOWBITS,
  34340. level,
  34341. opts.memLevel || exports.Z_DEFAULT_MEMLEVEL,
  34342. strategy,
  34343. opts.dictionary);
  34344. this._buffer = new Buffer(this._chunkSize);
  34345. this._offset = 0;
  34346. this._closed = false;
  34347. this._level = level;
  34348. this._strategy = strategy;
  34349. this.once('end', this.close);
  34350. }
  34351. util.inherits(Zlib, Transform);
  34352. Zlib.prototype.params = function(level, strategy, callback) {
  34353. if (level < exports.Z_MIN_LEVEL ||
  34354. level > exports.Z_MAX_LEVEL) {
  34355. throw new RangeError('Invalid compression level: ' + level);
  34356. }
  34357. if (strategy != exports.Z_FILTERED &&
  34358. strategy != exports.Z_HUFFMAN_ONLY &&
  34359. strategy != exports.Z_RLE &&
  34360. strategy != exports.Z_FIXED &&
  34361. strategy != exports.Z_DEFAULT_STRATEGY) {
  34362. throw new TypeError('Invalid strategy: ' + strategy);
  34363. }
  34364. if (this._level !== level || this._strategy !== strategy) {
  34365. var self = this;
  34366. this.flush(binding.Z_SYNC_FLUSH, function() {
  34367. self._binding.params(level, strategy);
  34368. if (!self._hadError) {
  34369. self._level = level;
  34370. self._strategy = strategy;
  34371. if (callback) callback();
  34372. }
  34373. });
  34374. } else {
  34375. process.nextTick(callback);
  34376. }
  34377. };
  34378. Zlib.prototype.reset = function() {
  34379. return this._binding.reset();
  34380. };
  34381. // This is the _flush function called by the transform class,
  34382. // internally, when the last chunk has been written.
  34383. Zlib.prototype._flush = function(callback) {
  34384. this._transform(new Buffer(0), '', callback);
  34385. };
  34386. Zlib.prototype.flush = function(kind, callback) {
  34387. var ws = this._writableState;
  34388. if (typeof kind === 'function' || (kind === void 0 && !callback)) {
  34389. callback = kind;
  34390. kind = binding.Z_FULL_FLUSH;
  34391. }
  34392. if (ws.ended) {
  34393. if (callback)
  34394. process.nextTick(callback);
  34395. } else if (ws.ending) {
  34396. if (callback)
  34397. this.once('end', callback);
  34398. } else if (ws.needDrain) {
  34399. var self = this;
  34400. this.once('drain', function() {
  34401. self.flush(callback);
  34402. });
  34403. } else {
  34404. this._flushFlag = kind;
  34405. this.write(new Buffer(0), '', callback);
  34406. }
  34407. };
  34408. Zlib.prototype.close = function(callback) {
  34409. if (callback)
  34410. process.nextTick(callback);
  34411. if (this._closed)
  34412. return;
  34413. this._closed = true;
  34414. this._binding.close();
  34415. var self = this;
  34416. process.nextTick(function() {
  34417. self.emit('close');
  34418. });
  34419. };
  34420. Zlib.prototype._transform = function(chunk, encoding, cb) {
  34421. var flushFlag;
  34422. var ws = this._writableState;
  34423. var ending = ws.ending || ws.ended;
  34424. var last = ending && (!chunk || ws.length === chunk.length);
  34425. if (!chunk === null && !Buffer.isBuffer(chunk))
  34426. return cb(new Error('invalid input'));
  34427. // If it's the last chunk, or a final flush, we use the Z_FINISH flush flag.
  34428. // If it's explicitly flushing at some other time, then we use
  34429. // Z_FULL_FLUSH. Otherwise, use Z_NO_FLUSH for maximum compression
  34430. // goodness.
  34431. if (last)
  34432. flushFlag = binding.Z_FINISH;
  34433. else {
  34434. flushFlag = this._flushFlag;
  34435. // once we've flushed the last of the queue, stop flushing and
  34436. // go back to the normal behavior.
  34437. if (chunk.length >= ws.length) {
  34438. this._flushFlag = this._opts.flush || binding.Z_NO_FLUSH;
  34439. }
  34440. }
  34441. var self = this;
  34442. this._processChunk(chunk, flushFlag, cb);
  34443. };
  34444. Zlib.prototype._processChunk = function(chunk, flushFlag, cb) {
  34445. var availInBefore = chunk && chunk.length;
  34446. var availOutBefore = this._chunkSize - this._offset;
  34447. var inOff = 0;
  34448. var self = this;
  34449. var async = typeof cb === 'function';
  34450. if (!async) {
  34451. var buffers = [];
  34452. var nread = 0;
  34453. var error;
  34454. this.on('error', function(er) {
  34455. error = er;
  34456. });
  34457. do {
  34458. var res = this._binding.writeSync(flushFlag,
  34459. chunk, // in
  34460. inOff, // in_off
  34461. availInBefore, // in_len
  34462. this._buffer, // out
  34463. this._offset, //out_off
  34464. availOutBefore); // out_len
  34465. } while (!this._hadError && callback(res[0], res[1]));
  34466. if (this._hadError) {
  34467. throw error;
  34468. }
  34469. var buf = Buffer.concat(buffers, nread);
  34470. this.close();
  34471. return buf;
  34472. }
  34473. var req = this._binding.write(flushFlag,
  34474. chunk, // in
  34475. inOff, // in_off
  34476. availInBefore, // in_len
  34477. this._buffer, // out
  34478. this._offset, //out_off
  34479. availOutBefore); // out_len
  34480. req.buffer = chunk;
  34481. req.callback = callback;
  34482. function callback(availInAfter, availOutAfter) {
  34483. if (self._hadError)
  34484. return;
  34485. var have = availOutBefore - availOutAfter;
  34486. assert(have >= 0, 'have should not go down');
  34487. if (have > 0) {
  34488. var out = self._buffer.slice(self._offset, self._offset + have);
  34489. self._offset += have;
  34490. // serve some output to the consumer.
  34491. if (async) {
  34492. self.push(out);
  34493. } else {
  34494. buffers.push(out);
  34495. nread += out.length;
  34496. }
  34497. }
  34498. // exhausted the output buffer, or used all the input create a new one.
  34499. if (availOutAfter === 0 || self._offset >= self._chunkSize) {
  34500. availOutBefore = self._chunkSize;
  34501. self._offset = 0;
  34502. self._buffer = new Buffer(self._chunkSize);
  34503. }
  34504. if (availOutAfter === 0) {
  34505. // Not actually done. Need to reprocess.
  34506. // Also, update the availInBefore to the availInAfter value,
  34507. // so that if we have to hit it a third (fourth, etc.) time,
  34508. // it'll have the correct byte counts.
  34509. inOff += (availInBefore - availInAfter);
  34510. availInBefore = availInAfter;
  34511. if (!async)
  34512. return true;
  34513. var newReq = self._binding.write(flushFlag,
  34514. chunk,
  34515. inOff,
  34516. availInBefore,
  34517. self._buffer,
  34518. self._offset,
  34519. self._chunkSize);
  34520. newReq.callback = callback; // this same function
  34521. newReq.buffer = chunk;
  34522. return;
  34523. }
  34524. if (!async)
  34525. return false;
  34526. // finished with the chunk.
  34527. cb();
  34528. }
  34529. };
  34530. util.inherits(Deflate, Zlib);
  34531. util.inherits(Inflate, Zlib);
  34532. util.inherits(Gzip, Zlib);
  34533. util.inherits(Gunzip, Zlib);
  34534. util.inherits(DeflateRaw, Zlib);
  34535. util.inherits(InflateRaw, Zlib);
  34536. util.inherits(Unzip, Zlib);
  34537. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4).Buffer, __webpack_require__(61)))
  34538. /***/ },
  34539. /* 46 */
  34540. /***/ function(module, exports, __webpack_require__) {
  34541. // Copyright Joyent, Inc. and other Node contributors.
  34542. //
  34543. // Permission is hereby granted, free of charge, to any person obtaining a
  34544. // copy of this software and associated documentation files (the
  34545. // "Software"), to deal in the Software without restriction, including
  34546. // without limitation the rights to use, copy, modify, merge, publish,
  34547. // distribute, sublicense, and/or sell copies of the Software, and to permit
  34548. // persons to whom the Software is furnished to do so, subject to the
  34549. // following conditions:
  34550. //
  34551. // The above copyright notice and this permission notice shall be included
  34552. // in all copies or substantial portions of the Software.
  34553. //
  34554. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  34555. // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  34556. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
  34557. // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  34558. // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  34559. // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  34560. // USE OR OTHER DEALINGS IN THE SOFTWARE.
  34561. module.exports = Stream;
  34562. var EE = __webpack_require__(54).EventEmitter;
  34563. var inherits = __webpack_require__(62);
  34564. inherits(Stream, EE);
  34565. Stream.Readable = __webpack_require__(56);
  34566. Stream.Writable = __webpack_require__(57);
  34567. Stream.Duplex = __webpack_require__(58);
  34568. Stream.Transform = __webpack_require__(55);
  34569. Stream.PassThrough = __webpack_require__(59);
  34570. // Backwards-compat with node 0.4.x
  34571. Stream.Stream = Stream;
  34572. // old-style streams. Note that the pipe method (the only relevant
  34573. // part of this class) is overridden in the Readable class.
  34574. function Stream() {
  34575. EE.call(this);
  34576. }
  34577. Stream.prototype.pipe = function(dest, options) {
  34578. var source = this;
  34579. function ondata(chunk) {
  34580. if (dest.writable) {
  34581. if (false === dest.write(chunk) && source.pause) {
  34582. source.pause();
  34583. }
  34584. }
  34585. }
  34586. source.on('data', ondata);
  34587. function ondrain() {
  34588. if (source.readable && source.resume) {
  34589. source.resume();
  34590. }
  34591. }
  34592. dest.on('drain', ondrain);
  34593. // If the 'end' option is not supplied, dest.end() will be called when
  34594. // source gets the 'end' or 'close' events. Only dest.end() once.
  34595. if (!dest._isStdio && (!options || options.end !== false)) {
  34596. source.on('end', onend);
  34597. source.on('close', onclose);
  34598. }
  34599. var didOnEnd = false;
  34600. function onend() {
  34601. if (didOnEnd) return;
  34602. didOnEnd = true;
  34603. dest.end();
  34604. }
  34605. function onclose() {
  34606. if (didOnEnd) return;
  34607. didOnEnd = true;
  34608. if (typeof dest.destroy === 'function') dest.destroy();
  34609. }
  34610. // don't leave dangling pipes when there are errors.
  34611. function onerror(er) {
  34612. cleanup();
  34613. if (EE.listenerCount(this, 'error') === 0) {
  34614. throw er; // Unhandled stream error in pipe.
  34615. }
  34616. }
  34617. source.on('error', onerror);
  34618. dest.on('error', onerror);
  34619. // remove all the event listeners that were added.
  34620. function cleanup() {
  34621. source.removeListener('data', ondata);
  34622. dest.removeListener('drain', ondrain);
  34623. source.removeListener('end', onend);
  34624. source.removeListener('close', onclose);
  34625. source.removeListener('error', onerror);
  34626. dest.removeListener('error', onerror);
  34627. source.removeListener('end', cleanup);
  34628. source.removeListener('close', cleanup);
  34629. dest.removeListener('close', cleanup);
  34630. }
  34631. source.on('end', cleanup);
  34632. source.on('close', cleanup);
  34633. dest.on('close', cleanup);
  34634. dest.emit('pipe', source);
  34635. // Allow for unix-like usage: A.pipe(B).pipe(C)
  34636. return dest;
  34637. };
  34638. /***/ },
  34639. /* 47 */
  34640. /***/ function(module, exports, __webpack_require__) {
  34641. // Generated by CoffeeScript 1.7.1
  34642. (function() {
  34643. var SVGPath;
  34644. SVGPath = (function() {
  34645. var apply, arcToSegments, cx, cy, parameters, parse, px, py, runners, segmentToBezier, solveArc, sx, sy;
  34646. function SVGPath() {}
  34647. SVGPath.apply = function(doc, path) {
  34648. var commands;
  34649. commands = parse(path);
  34650. return apply(commands, doc);
  34651. };
  34652. parameters = {
  34653. A: 7,
  34654. a: 7,
  34655. C: 6,
  34656. c: 6,
  34657. H: 1,
  34658. h: 1,
  34659. L: 2,
  34660. l: 2,
  34661. M: 2,
  34662. m: 2,
  34663. Q: 4,
  34664. q: 4,
  34665. S: 4,
  34666. s: 4,
  34667. T: 2,
  34668. t: 2,
  34669. V: 1,
  34670. v: 1,
  34671. Z: 0,
  34672. z: 0
  34673. };
  34674. parse = function(path) {
  34675. var args, c, cmd, curArg, foundDecimal, params, ret, _i, _len;
  34676. ret = [];
  34677. args = [];
  34678. curArg = "";
  34679. foundDecimal = false;
  34680. params = 0;
  34681. for (_i = 0, _len = path.length; _i < _len; _i++) {
  34682. c = path[_i];
  34683. if (parameters[c] != null) {
  34684. params = parameters[c];
  34685. if (cmd) {
  34686. if (curArg.length > 0) {
  34687. args[args.length] = +curArg;
  34688. }
  34689. ret[ret.length] = {
  34690. cmd: cmd,
  34691. args: args
  34692. };
  34693. args = [];
  34694. curArg = "";
  34695. foundDecimal = false;
  34696. }
  34697. cmd = c;
  34698. } else if ((c === " " || c === ",") || (c === "-" && curArg.length > 0 && curArg[curArg.length - 1] !== 'e') || (c === "." && foundDecimal)) {
  34699. if (curArg.length === 0) {
  34700. continue;
  34701. }
  34702. if (args.length === params) {
  34703. ret[ret.length] = {
  34704. cmd: cmd,
  34705. args: args
  34706. };
  34707. args = [+curArg];
  34708. if (cmd === "M") {
  34709. cmd = "L";
  34710. }
  34711. if (cmd === "m") {
  34712. cmd = "l";
  34713. }
  34714. } else {
  34715. args[args.length] = +curArg;
  34716. }
  34717. foundDecimal = c === ".";
  34718. curArg = c === '-' || c === '.' ? c : '';
  34719. } else {
  34720. curArg += c;
  34721. if (c === '.') {
  34722. foundDecimal = true;
  34723. }
  34724. }
  34725. }
  34726. if (curArg.length > 0) {
  34727. if (args.length === params) {
  34728. ret[ret.length] = {
  34729. cmd: cmd,
  34730. args: args
  34731. };
  34732. args = [+curArg];
  34733. if (cmd === "M") {
  34734. cmd = "L";
  34735. }
  34736. if (cmd === "m") {
  34737. cmd = "l";
  34738. }
  34739. } else {
  34740. args[args.length] = +curArg;
  34741. }
  34742. }
  34743. ret[ret.length] = {
  34744. cmd: cmd,
  34745. args: args
  34746. };
  34747. return ret;
  34748. };
  34749. cx = cy = px = py = sx = sy = 0;
  34750. apply = function(commands, doc) {
  34751. var c, i, _i, _len, _name;
  34752. cx = cy = px = py = sx = sy = 0;
  34753. for (i = _i = 0, _len = commands.length; _i < _len; i = ++_i) {
  34754. c = commands[i];
  34755. if (typeof runners[_name = c.cmd] === "function") {
  34756. runners[_name](doc, c.args);
  34757. }
  34758. }
  34759. return cx = cy = px = py = 0;
  34760. };
  34761. runners = {
  34762. M: function(doc, a) {
  34763. cx = a[0];
  34764. cy = a[1];
  34765. px = py = null;
  34766. sx = cx;
  34767. sy = cy;
  34768. return doc.moveTo(cx, cy);
  34769. },
  34770. m: function(doc, a) {
  34771. cx += a[0];
  34772. cy += a[1];
  34773. px = py = null;
  34774. sx = cx;
  34775. sy = cy;
  34776. return doc.moveTo(cx, cy);
  34777. },
  34778. C: function(doc, a) {
  34779. cx = a[4];
  34780. cy = a[5];
  34781. px = a[2];
  34782. py = a[3];
  34783. return doc.bezierCurveTo.apply(doc, a);
  34784. },
  34785. c: function(doc, a) {
  34786. doc.bezierCurveTo(a[0] + cx, a[1] + cy, a[2] + cx, a[3] + cy, a[4] + cx, a[5] + cy);
  34787. px = cx + a[2];
  34788. py = cy + a[3];
  34789. cx += a[4];
  34790. return cy += a[5];
  34791. },
  34792. S: function(doc, a) {
  34793. if (px === null) {
  34794. px = cx;
  34795. py = cy;
  34796. }
  34797. doc.bezierCurveTo(cx - (px - cx), cy - (py - cy), a[0], a[1], a[2], a[3]);
  34798. px = a[0];
  34799. py = a[1];
  34800. cx = a[2];
  34801. return cy = a[3];
  34802. },
  34803. s: function(doc, a) {
  34804. if (px === null) {
  34805. px = cx;
  34806. py = cy;
  34807. }
  34808. doc.bezierCurveTo(cx - (px - cx), cy - (py - cy), cx + a[0], cy + a[1], cx + a[2], cy + a[3]);
  34809. px = cx + a[0];
  34810. py = cy + a[1];
  34811. cx += a[2];
  34812. return cy += a[3];
  34813. },
  34814. Q: function(doc, a) {
  34815. px = a[0];
  34816. py = a[1];
  34817. cx = a[2];
  34818. cy = a[3];
  34819. return doc.quadraticCurveTo(a[0], a[1], cx, cy);
  34820. },
  34821. q: function(doc, a) {
  34822. doc.quadraticCurveTo(a[0] + cx, a[1] + cy, a[2] + cx, a[3] + cy);
  34823. px = cx + a[0];
  34824. py = cy + a[1];
  34825. cx += a[2];
  34826. return cy += a[3];
  34827. },
  34828. T: function(doc, a) {
  34829. if (px === null) {
  34830. px = cx;
  34831. py = cy;
  34832. } else {
  34833. px = cx - (px - cx);
  34834. py = cy - (py - cy);
  34835. }
  34836. doc.quadraticCurveTo(px, py, a[0], a[1]);
  34837. px = cx - (px - cx);
  34838. py = cy - (py - cy);
  34839. cx = a[0];
  34840. return cy = a[1];
  34841. },
  34842. t: function(doc, a) {
  34843. if (px === null) {
  34844. px = cx;
  34845. py = cy;
  34846. } else {
  34847. px = cx - (px - cx);
  34848. py = cy - (py - cy);
  34849. }
  34850. doc.quadraticCurveTo(px, py, cx + a[0], cy + a[1]);
  34851. cx += a[0];
  34852. return cy += a[1];
  34853. },
  34854. A: function(doc, a) {
  34855. solveArc(doc, cx, cy, a);
  34856. cx = a[5];
  34857. return cy = a[6];
  34858. },
  34859. a: function(doc, a) {
  34860. a[5] += cx;
  34861. a[6] += cy;
  34862. solveArc(doc, cx, cy, a);
  34863. cx = a[5];
  34864. return cy = a[6];
  34865. },
  34866. L: function(doc, a) {
  34867. cx = a[0];
  34868. cy = a[1];
  34869. px = py = null;
  34870. return doc.lineTo(cx, cy);
  34871. },
  34872. l: function(doc, a) {
  34873. cx += a[0];
  34874. cy += a[1];
  34875. px = py = null;
  34876. return doc.lineTo(cx, cy);
  34877. },
  34878. H: function(doc, a) {
  34879. cx = a[0];
  34880. px = py = null;
  34881. return doc.lineTo(cx, cy);
  34882. },
  34883. h: function(doc, a) {
  34884. cx += a[0];
  34885. px = py = null;
  34886. return doc.lineTo(cx, cy);
  34887. },
  34888. V: function(doc, a) {
  34889. cy = a[0];
  34890. px = py = null;
  34891. return doc.lineTo(cx, cy);
  34892. },
  34893. v: function(doc, a) {
  34894. cy += a[0];
  34895. px = py = null;
  34896. return doc.lineTo(cx, cy);
  34897. },
  34898. Z: function(doc) {
  34899. doc.closePath();
  34900. cx = sx;
  34901. return cy = sy;
  34902. },
  34903. z: function(doc) {
  34904. doc.closePath();
  34905. cx = sx;
  34906. return cy = sy;
  34907. }
  34908. };
  34909. solveArc = function(doc, x, y, coords) {
  34910. var bez, ex, ey, large, rot, rx, ry, seg, segs, sweep, _i, _len, _results;
  34911. rx = coords[0], ry = coords[1], rot = coords[2], large = coords[3], sweep = coords[4], ex = coords[5], ey = coords[6];
  34912. segs = arcToSegments(ex, ey, rx, ry, large, sweep, rot, x, y);
  34913. _results = [];
  34914. for (_i = 0, _len = segs.length; _i < _len; _i++) {
  34915. seg = segs[_i];
  34916. bez = segmentToBezier.apply(null, seg);
  34917. _results.push(doc.bezierCurveTo.apply(doc, bez));
  34918. }
  34919. return _results;
  34920. };
  34921. arcToSegments = function(x, y, rx, ry, large, sweep, rotateX, ox, oy) {
  34922. var a00, a01, a10, a11, cos_th, d, i, pl, result, segments, sfactor, sfactor_sq, sin_th, th, th0, th1, th2, th3, th_arc, x0, x1, xc, y0, y1, yc, _i;
  34923. th = rotateX * (Math.PI / 180);
  34924. sin_th = Math.sin(th);
  34925. cos_th = Math.cos(th);
  34926. rx = Math.abs(rx);
  34927. ry = Math.abs(ry);
  34928. px = cos_th * (ox - x) * 0.5 + sin_th * (oy - y) * 0.5;
  34929. py = cos_th * (oy - y) * 0.5 - sin_th * (ox - x) * 0.5;
  34930. pl = (px * px) / (rx * rx) + (py * py) / (ry * ry);
  34931. if (pl > 1) {
  34932. pl = Math.sqrt(pl);
  34933. rx *= pl;
  34934. ry *= pl;
  34935. }
  34936. a00 = cos_th / rx;
  34937. a01 = sin_th / rx;
  34938. a10 = (-sin_th) / ry;
  34939. a11 = cos_th / ry;
  34940. x0 = a00 * ox + a01 * oy;
  34941. y0 = a10 * ox + a11 * oy;
  34942. x1 = a00 * x + a01 * y;
  34943. y1 = a10 * x + a11 * y;
  34944. d = (x1 - x0) * (x1 - x0) + (y1 - y0) * (y1 - y0);
  34945. sfactor_sq = 1 / d - 0.25;
  34946. if (sfactor_sq < 0) {
  34947. sfactor_sq = 0;
  34948. }
  34949. sfactor = Math.sqrt(sfactor_sq);
  34950. if (sweep === large) {
  34951. sfactor = -sfactor;
  34952. }
  34953. xc = 0.5 * (x0 + x1) - sfactor * (y1 - y0);
  34954. yc = 0.5 * (y0 + y1) + sfactor * (x1 - x0);
  34955. th0 = Math.atan2(y0 - yc, x0 - xc);
  34956. th1 = Math.atan2(y1 - yc, x1 - xc);
  34957. th_arc = th1 - th0;
  34958. if (th_arc < 0 && sweep === 1) {
  34959. th_arc += 2 * Math.PI;
  34960. } else if (th_arc > 0 && sweep === 0) {
  34961. th_arc -= 2 * Math.PI;
  34962. }
  34963. segments = Math.ceil(Math.abs(th_arc / (Math.PI * 0.5 + 0.001)));
  34964. result = [];
  34965. for (i = _i = 0; 0 <= segments ? _i < segments : _i > segments; i = 0 <= segments ? ++_i : --_i) {
  34966. th2 = th0 + i * th_arc / segments;
  34967. th3 = th0 + (i + 1) * th_arc / segments;
  34968. result[i] = [xc, yc, th2, th3, rx, ry, sin_th, cos_th];
  34969. }
  34970. return result;
  34971. };
  34972. segmentToBezier = function(cx, cy, th0, th1, rx, ry, sin_th, cos_th) {
  34973. var a00, a01, a10, a11, t, th_half, x1, x2, x3, y1, y2, y3;
  34974. a00 = cos_th * rx;
  34975. a01 = -sin_th * ry;
  34976. a10 = sin_th * rx;
  34977. a11 = cos_th * ry;
  34978. th_half = 0.5 * (th1 - th0);
  34979. t = (8 / 3) * Math.sin(th_half * 0.5) * Math.sin(th_half * 0.5) / Math.sin(th_half);
  34980. x1 = cx + Math.cos(th0) - t * Math.sin(th0);
  34981. y1 = cy + Math.sin(th0) + t * Math.cos(th0);
  34982. x3 = cx + Math.cos(th1);
  34983. y3 = cy + Math.sin(th1);
  34984. x2 = x3 + t * Math.sin(th1);
  34985. y2 = y3 - t * Math.cos(th1);
  34986. return [a00 * x1 + a01 * y1, a10 * x1 + a11 * y1, a00 * x2 + a01 * y2, a10 * x2 + a11 * y2, a00 * x3 + a01 * y3, a10 * x3 + a11 * y3];
  34987. };
  34988. return SVGPath;
  34989. })();
  34990. module.exports = SVGPath;
  34991. }).call(this);
  34992. /***/ },
  34993. /* 48 */
  34994. /***/ function(module, exports, __webpack_require__) {
  34995. // Generated by CoffeeScript 1.7.1
  34996. (function() {
  34997. var EventEmitter, LineBreaker, LineWrapper,
  34998. __hasProp = {}.hasOwnProperty,
  34999. __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
  35000. EventEmitter = __webpack_require__(54).EventEmitter;
  35001. LineBreaker = __webpack_require__(66);
  35002. LineWrapper = (function(_super) {
  35003. __extends(LineWrapper, _super);
  35004. function LineWrapper(document, options) {
  35005. var _ref;
  35006. this.document = document;
  35007. this.indent = options.indent || 0;
  35008. this.characterSpacing = options.characterSpacing || 0;
  35009. this.wordSpacing = options.wordSpacing === 0;
  35010. this.columns = options.columns || 1;
  35011. this.columnGap = (_ref = options.columnGap) != null ? _ref : 18;
  35012. this.lineWidth = (options.width - (this.columnGap * (this.columns - 1))) / this.columns;
  35013. this.spaceLeft = this.lineWidth;
  35014. this.startX = this.document.x;
  35015. this.startY = this.document.y;
  35016. this.column = 1;
  35017. this.ellipsis = options.ellipsis;
  35018. this.continuedX = 0;
  35019. if (options.height != null) {
  35020. this.height = options.height;
  35021. this.maxY = this.startY + options.height;
  35022. } else {
  35023. this.maxY = this.document.page.maxY();
  35024. }
  35025. this.on('firstLine', (function(_this) {
  35026. return function(options) {
  35027. var indent;
  35028. indent = _this.continuedX || _this.indent;
  35029. _this.document.x += indent;
  35030. _this.lineWidth -= indent;
  35031. return _this.once('line', function() {
  35032. _this.document.x -= indent;
  35033. _this.lineWidth += indent;
  35034. if (options.continued && !_this.continuedX) {
  35035. _this.continuedX = _this.indent;
  35036. }
  35037. if (!options.continued) {
  35038. return _this.continuedX = 0;
  35039. }
  35040. });
  35041. };
  35042. })(this));
  35043. this.on('lastLine', (function(_this) {
  35044. return function(options) {
  35045. var align;
  35046. align = options.align;
  35047. if (align === 'justify') {
  35048. options.align = 'left';
  35049. }
  35050. _this.lastLine = true;
  35051. return _this.once('line', function() {
  35052. _this.document.y += options.paragraphGap || 0;
  35053. options.align = align;
  35054. return _this.lastLine = false;
  35055. });
  35056. };
  35057. })(this));
  35058. }
  35059. LineWrapper.prototype.wordWidth = function(word) {
  35060. return this.document.widthOfString(word, this) + this.characterSpacing + this.wordSpacing;
  35061. };
  35062. LineWrapper.prototype.eachWord = function(text, fn) {
  35063. var bk, breaker, fbk, l, last, lbk, shouldContinue, w, word, wordWidths;
  35064. breaker = new LineBreaker(text);
  35065. last = null;
  35066. wordWidths = {};
  35067. while (bk = breaker.nextBreak()) {
  35068. word = text.slice((last != null ? last.position : void 0) || 0, bk.position);
  35069. w = wordWidths[word] != null ? wordWidths[word] : wordWidths[word] = this.wordWidth(word);
  35070. if (w > this.lineWidth + this.continuedX) {
  35071. lbk = last;
  35072. fbk = {};
  35073. while (word.length) {
  35074. l = word.length;
  35075. while (w > this.spaceLeft) {
  35076. w = this.wordWidth(word.slice(0, --l));
  35077. }
  35078. fbk.required = l < word.length;
  35079. shouldContinue = fn(word.slice(0, l), w, fbk, lbk);
  35080. lbk = {
  35081. required: false
  35082. };
  35083. word = word.slice(l);
  35084. w = this.wordWidth(word);
  35085. if (shouldContinue === false) {
  35086. break;
  35087. }
  35088. }
  35089. } else {
  35090. shouldContinue = fn(word, w, bk, last);
  35091. }
  35092. if (shouldContinue === false) {
  35093. break;
  35094. }
  35095. last = bk;
  35096. }
  35097. };
  35098. LineWrapper.prototype.wrap = function(text, options) {
  35099. var buffer, emitLine, lc, nextY, textWidth, wc, y;
  35100. if (options.indent != null) {
  35101. this.indent = options.indent;
  35102. }
  35103. if (options.characterSpacing != null) {
  35104. this.characterSpacing = options.characterSpacing;
  35105. }
  35106. if (options.wordSpacing != null) {
  35107. this.wordSpacing = options.wordSpacing;
  35108. }
  35109. if (options.ellipsis != null) {
  35110. this.ellipsis = options.ellipsis;
  35111. }
  35112. nextY = this.document.y + this.document.currentLineHeight(true);
  35113. if (this.document.y > this.maxY || nextY > this.maxY) {
  35114. this.nextSection();
  35115. }
  35116. buffer = '';
  35117. textWidth = 0;
  35118. wc = 0;
  35119. lc = 0;
  35120. y = this.document.y;
  35121. emitLine = (function(_this) {
  35122. return function() {
  35123. options.textWidth = textWidth + _this.wordSpacing * (wc - 1);
  35124. options.wordCount = wc;
  35125. options.lineWidth = _this.lineWidth;
  35126. y = _this.document.y;
  35127. _this.emit('line', buffer, options, _this);
  35128. return lc++;
  35129. };
  35130. })(this);
  35131. this.emit('sectionStart', options, this);
  35132. this.eachWord(text, (function(_this) {
  35133. return function(word, w, bk, last) {
  35134. var lh, shouldContinue;
  35135. if ((last == null) || last.required) {
  35136. _this.emit('firstLine', options, _this);
  35137. _this.spaceLeft = _this.lineWidth;
  35138. }
  35139. if (w <= _this.spaceLeft) {
  35140. buffer += word;
  35141. textWidth += w;
  35142. wc++;
  35143. }
  35144. if (bk.required || w > _this.spaceLeft) {
  35145. if (bk.required) {
  35146. _this.emit('lastLine', options, _this);
  35147. }
  35148. lh = _this.document.currentLineHeight(true);
  35149. if ((_this.height != null) && _this.ellipsis && _this.document.y + lh * 2 > _this.maxY && _this.column >= _this.columns) {
  35150. if (_this.ellipsis === true) {
  35151. _this.ellipsis = '…';
  35152. }
  35153. buffer = buffer.replace(/\s+$/, '');
  35154. textWidth = _this.wordWidth(buffer + _this.ellipsis);
  35155. while (textWidth > _this.lineWidth) {
  35156. buffer = buffer.slice(0, -1).replace(/\s+$/, '');
  35157. textWidth = _this.wordWidth(buffer + _this.ellipsis);
  35158. }
  35159. buffer = buffer + _this.ellipsis;
  35160. }
  35161. emitLine();
  35162. if (_this.document.y + lh > _this.maxY) {
  35163. shouldContinue = _this.nextSection();
  35164. if (!shouldContinue) {
  35165. wc = 0;
  35166. buffer = '';
  35167. return false;
  35168. }
  35169. }
  35170. if (bk.required) {
  35171. if (w > _this.spaceLeft) {
  35172. buffer = word;
  35173. textWidth = w;
  35174. wc = 1;
  35175. emitLine();
  35176. }
  35177. _this.spaceLeft = _this.lineWidth;
  35178. buffer = '';
  35179. textWidth = 0;
  35180. return wc = 0;
  35181. } else {
  35182. _this.spaceLeft = _this.lineWidth - w;
  35183. buffer = word;
  35184. textWidth = w;
  35185. return wc = 1;
  35186. }
  35187. } else {
  35188. return _this.spaceLeft -= w;
  35189. }
  35190. };
  35191. })(this));
  35192. if (wc > 0) {
  35193. this.emit('lastLine', options, this);
  35194. emitLine();
  35195. }
  35196. this.emit('sectionEnd', options, this);
  35197. if (options.continued === true) {
  35198. if (lc > 1) {
  35199. this.continuedX = 0;
  35200. }
  35201. this.continuedX += options.textWidth;
  35202. return this.document.y = y;
  35203. } else {
  35204. return this.document.x = this.startX;
  35205. }
  35206. };
  35207. LineWrapper.prototype.nextSection = function(options) {
  35208. var _ref;
  35209. this.emit('sectionEnd', options, this);
  35210. if (++this.column > this.columns) {
  35211. if (this.height != null) {
  35212. return false;
  35213. }
  35214. this.document.addPage();
  35215. this.column = 1;
  35216. this.startY = this.document.page.margins.top;
  35217. this.maxY = this.document.page.maxY();
  35218. this.document.x = this.startX;
  35219. if (this.document._fillColor) {
  35220. (_ref = this.document).fillColor.apply(_ref, this.document._fillColor);
  35221. }
  35222. this.emit('pageBreak', options, this);
  35223. } else {
  35224. this.document.x += this.lineWidth + this.columnGap;
  35225. this.document.y = this.startY;
  35226. this.emit('columnBreak', options, this);
  35227. }
  35228. this.emit('sectionStart', options, this);
  35229. return true;
  35230. };
  35231. return LineWrapper;
  35232. })(EventEmitter);
  35233. module.exports = LineWrapper;
  35234. }).call(this);
  35235. /***/ },
  35236. /* 49 */
  35237. /***/ function(module, exports, __webpack_require__) {
  35238. // Generated by CoffeeScript 1.7.1
  35239. (function() {
  35240. var PDFGradient, PDFLinearGradient, PDFRadialGradient,
  35241. __hasProp = {}.hasOwnProperty,
  35242. __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
  35243. PDFGradient = (function() {
  35244. function PDFGradient(doc) {
  35245. this.doc = doc;
  35246. this.stops = [];
  35247. this.embedded = false;
  35248. this.transform = [1, 0, 0, 1, 0, 0];
  35249. this._colorSpace = 'DeviceRGB';
  35250. }
  35251. PDFGradient.prototype.stop = function(pos, color, opacity) {
  35252. if (opacity == null) {
  35253. opacity = 1;
  35254. }
  35255. opacity = Math.max(0, Math.min(1, opacity));
  35256. this.stops.push([pos, this.doc._normalizeColor(color), opacity]);
  35257. return this;
  35258. };
  35259. PDFGradient.prototype.embed = function() {
  35260. var bounds, dx, dy, encode, fn, form, grad, group, gstate, i, last, m, m0, m1, m11, m12, m2, m21, m22, m3, m4, m5, name, pattern, resources, sMask, shader, stop, stops, v, _i, _j, _len, _ref, _ref1, _ref2;
  35261. if (this.embedded || this.stops.length === 0) {
  35262. return;
  35263. }
  35264. this.embedded = true;
  35265. last = this.stops[this.stops.length - 1];
  35266. if (last[0] < 1) {
  35267. this.stops.push([1, last[1], last[2]]);
  35268. }
  35269. bounds = [];
  35270. encode = [];
  35271. stops = [];
  35272. for (i = _i = 0, _ref = this.stops.length - 1; 0 <= _ref ? _i < _ref : _i > _ref; i = 0 <= _ref ? ++_i : --_i) {
  35273. encode.push(0, 1);
  35274. if (i + 2 !== this.stops.length) {
  35275. bounds.push(this.stops[i + 1][0]);
  35276. }
  35277. fn = this.doc.ref({
  35278. FunctionType: 2,
  35279. Domain: [0, 1],
  35280. C0: this.stops[i + 0][1],
  35281. C1: this.stops[i + 1][1],
  35282. N: 1
  35283. });
  35284. stops.push(fn);
  35285. fn.end();
  35286. }
  35287. if (stops.length === 1) {
  35288. fn = stops[0];
  35289. } else {
  35290. fn = this.doc.ref({
  35291. FunctionType: 3,
  35292. Domain: [0, 1],
  35293. Functions: stops,
  35294. Bounds: bounds,
  35295. Encode: encode
  35296. });
  35297. fn.end();
  35298. }
  35299. this.id = 'Sh' + (++this.doc._gradCount);
  35300. m = this.doc._ctm.slice();
  35301. m0 = m[0], m1 = m[1], m2 = m[2], m3 = m[3], m4 = m[4], m5 = m[5];
  35302. _ref1 = this.transform, m11 = _ref1[0], m12 = _ref1[1], m21 = _ref1[2], m22 = _ref1[3], dx = _ref1[4], dy = _ref1[5];
  35303. m[0] = m0 * m11 + m2 * m12;
  35304. m[1] = m1 * m11 + m3 * m12;
  35305. m[2] = m0 * m21 + m2 * m22;
  35306. m[3] = m1 * m21 + m3 * m22;
  35307. m[4] = m0 * dx + m2 * dy + m4;
  35308. m[5] = m1 * dx + m3 * dy + m5;
  35309. shader = this.shader(fn);
  35310. shader.end();
  35311. pattern = this.doc.ref({
  35312. Type: 'Pattern',
  35313. PatternType: 2,
  35314. Shading: shader,
  35315. Matrix: (function() {
  35316. var _j, _len, _results;
  35317. _results = [];
  35318. for (_j = 0, _len = m.length; _j < _len; _j++) {
  35319. v = m[_j];
  35320. _results.push(+v.toFixed(5));
  35321. }
  35322. return _results;
  35323. })()
  35324. });
  35325. this.doc.page.patterns[this.id] = pattern;
  35326. pattern.end();
  35327. if (this.stops.some(function(stop) {
  35328. return stop[2] < 1;
  35329. })) {
  35330. grad = this.opacityGradient();
  35331. grad._colorSpace = 'DeviceGray';
  35332. _ref2 = this.stops;
  35333. for (_j = 0, _len = _ref2.length; _j < _len; _j++) {
  35334. stop = _ref2[_j];
  35335. grad.stop(stop[0], [stop[2]]);
  35336. }
  35337. grad = grad.embed();
  35338. group = this.doc.ref({
  35339. Type: 'Group',
  35340. S: 'Transparency',
  35341. CS: 'DeviceGray'
  35342. });
  35343. group.end();
  35344. resources = this.doc.ref({
  35345. ProcSet: ['PDF', 'Text', 'ImageB', 'ImageC', 'ImageI'],
  35346. Shading: {
  35347. Sh1: grad.data.Shading
  35348. }
  35349. });
  35350. resources.end();
  35351. form = this.doc.ref({
  35352. Type: 'XObject',
  35353. Subtype: 'Form',
  35354. FormType: 1,
  35355. BBox: [0, 0, this.doc.page.width, this.doc.page.height],
  35356. Group: group,
  35357. Resources: resources
  35358. });
  35359. form.end("/Sh1 sh");
  35360. sMask = this.doc.ref({
  35361. Type: 'Mask',
  35362. S: 'Luminosity',
  35363. G: form
  35364. });
  35365. sMask.end();
  35366. gstate = this.doc.ref({
  35367. Type: 'ExtGState',
  35368. SMask: sMask
  35369. });
  35370. this.opacity_id = ++this.doc._opacityCount;
  35371. name = "Gs" + this.opacity_id;
  35372. this.doc.page.ext_gstates[name] = gstate;
  35373. gstate.end();
  35374. }
  35375. return pattern;
  35376. };
  35377. PDFGradient.prototype.apply = function(op) {
  35378. if (!this.embedded) {
  35379. this.embed();
  35380. }
  35381. this.doc.addContent("/" + this.id + " " + op);
  35382. if (this.opacity_id) {
  35383. this.doc.addContent("/Gs" + this.opacity_id + " gs");
  35384. return this.doc._sMasked = true;
  35385. }
  35386. };
  35387. return PDFGradient;
  35388. })();
  35389. PDFLinearGradient = (function(_super) {
  35390. __extends(PDFLinearGradient, _super);
  35391. function PDFLinearGradient(doc, x1, y1, x2, y2) {
  35392. this.doc = doc;
  35393. this.x1 = x1;
  35394. this.y1 = y1;
  35395. this.x2 = x2;
  35396. this.y2 = y2;
  35397. PDFLinearGradient.__super__.constructor.apply(this, arguments);
  35398. }
  35399. PDFLinearGradient.prototype.shader = function(fn) {
  35400. return this.doc.ref({
  35401. ShadingType: 2,
  35402. ColorSpace: this._colorSpace,
  35403. Coords: [this.x1, this.y1, this.x2, this.y2],
  35404. Function: fn,
  35405. Extend: [true, true]
  35406. });
  35407. };
  35408. PDFLinearGradient.prototype.opacityGradient = function() {
  35409. return new PDFLinearGradient(this.doc, this.x1, this.y1, this.x2, this.y2);
  35410. };
  35411. return PDFLinearGradient;
  35412. })(PDFGradient);
  35413. PDFRadialGradient = (function(_super) {
  35414. __extends(PDFRadialGradient, _super);
  35415. function PDFRadialGradient(doc, x1, y1, r1, x2, y2, r2) {
  35416. this.doc = doc;
  35417. this.x1 = x1;
  35418. this.y1 = y1;
  35419. this.r1 = r1;
  35420. this.x2 = x2;
  35421. this.y2 = y2;
  35422. this.r2 = r2;
  35423. PDFRadialGradient.__super__.constructor.apply(this, arguments);
  35424. }
  35425. PDFRadialGradient.prototype.shader = function(fn) {
  35426. return this.doc.ref({
  35427. ShadingType: 3,
  35428. ColorSpace: this._colorSpace,
  35429. Coords: [this.x1, this.y1, this.r1, this.x2, this.y2, this.r2],
  35430. Function: fn,
  35431. Extend: [true, true]
  35432. });
  35433. };
  35434. PDFRadialGradient.prototype.opacityGradient = function() {
  35435. return new PDFRadialGradient(this.doc, this.x1, this.y1, this.r1, this.x2, this.y2, this.r2);
  35436. };
  35437. return PDFRadialGradient;
  35438. })(PDFGradient);
  35439. module.exports = {
  35440. PDFGradient: PDFGradient,
  35441. PDFLinearGradient: PDFLinearGradient,
  35442. PDFRadialGradient: PDFRadialGradient
  35443. };
  35444. }).call(this);
  35445. /***/ },
  35446. /* 50 */
  35447. /***/ function(module, exports, __webpack_require__) {
  35448. /* WEBPACK VAR INJECTION */(function(process, Buffer) {var msg = __webpack_require__(73);
  35449. var zstream = __webpack_require__(77);
  35450. var zlib_deflate = __webpack_require__(74);
  35451. var zlib_inflate = __webpack_require__(75);
  35452. var constants = __webpack_require__(76);
  35453. for (var key in constants) {
  35454. exports[key] = constants[key];
  35455. }
  35456. // zlib modes
  35457. exports.NONE = 0;
  35458. exports.DEFLATE = 1;
  35459. exports.INFLATE = 2;
  35460. exports.GZIP = 3;
  35461. exports.GUNZIP = 4;
  35462. exports.DEFLATERAW = 5;
  35463. exports.INFLATERAW = 6;
  35464. exports.UNZIP = 7;
  35465. /**
  35466. * Emulate Node's zlib C++ layer for use by the JS layer in index.js
  35467. */
  35468. function Zlib(mode) {
  35469. if (mode < exports.DEFLATE || mode > exports.UNZIP)
  35470. throw new TypeError("Bad argument");
  35471. this.mode = mode;
  35472. this.init_done = false;
  35473. this.write_in_progress = false;
  35474. this.pending_close = false;
  35475. this.windowBits = 0;
  35476. this.level = 0;
  35477. this.memLevel = 0;
  35478. this.strategy = 0;
  35479. this.dictionary = null;
  35480. }
  35481. Zlib.prototype.init = function(windowBits, level, memLevel, strategy, dictionary) {
  35482. this.windowBits = windowBits;
  35483. this.level = level;
  35484. this.memLevel = memLevel;
  35485. this.strategy = strategy;
  35486. // dictionary not supported.
  35487. if (this.mode === exports.GZIP || this.mode === exports.GUNZIP)
  35488. this.windowBits += 16;
  35489. if (this.mode === exports.UNZIP)
  35490. this.windowBits += 32;
  35491. if (this.mode === exports.DEFLATERAW || this.mode === exports.INFLATERAW)
  35492. this.windowBits = -this.windowBits;
  35493. this.strm = new zstream();
  35494. switch (this.mode) {
  35495. case exports.DEFLATE:
  35496. case exports.GZIP:
  35497. case exports.DEFLATERAW:
  35498. var status = zlib_deflate.deflateInit2(
  35499. this.strm,
  35500. this.level,
  35501. exports.Z_DEFLATED,
  35502. this.windowBits,
  35503. this.memLevel,
  35504. this.strategy
  35505. );
  35506. break;
  35507. case exports.INFLATE:
  35508. case exports.GUNZIP:
  35509. case exports.INFLATERAW:
  35510. case exports.UNZIP:
  35511. var status = zlib_inflate.inflateInit2(
  35512. this.strm,
  35513. this.windowBits
  35514. );
  35515. break;
  35516. default:
  35517. throw new Error("Unknown mode " + this.mode);
  35518. }
  35519. if (status !== exports.Z_OK) {
  35520. this._error(status);
  35521. return;
  35522. }
  35523. this.write_in_progress = false;
  35524. this.init_done = true;
  35525. };
  35526. Zlib.prototype.params = function() {
  35527. throw new Error("deflateParams Not supported");
  35528. };
  35529. Zlib.prototype._writeCheck = function() {
  35530. if (!this.init_done)
  35531. throw new Error("write before init");
  35532. if (this.mode === exports.NONE)
  35533. throw new Error("already finalized");
  35534. if (this.write_in_progress)
  35535. throw new Error("write already in progress");
  35536. if (this.pending_close)
  35537. throw new Error("close is pending");
  35538. };
  35539. Zlib.prototype.write = function(flush, input, in_off, in_len, out, out_off, out_len) {
  35540. this._writeCheck();
  35541. this.write_in_progress = true;
  35542. var self = this;
  35543. process.nextTick(function() {
  35544. self.write_in_progress = false;
  35545. var res = self._write(flush, input, in_off, in_len, out, out_off, out_len);
  35546. self.callback(res[0], res[1]);
  35547. if (self.pending_close)
  35548. self.close();
  35549. });
  35550. return this;
  35551. };
  35552. // set method for Node buffers, used by pako
  35553. function bufferSet(data, offset) {
  35554. for (var i = 0; i < data.length; i++) {
  35555. this[offset + i] = data[i];
  35556. }
  35557. }
  35558. Zlib.prototype.writeSync = function(flush, input, in_off, in_len, out, out_off, out_len) {
  35559. this._writeCheck();
  35560. return this._write(flush, input, in_off, in_len, out, out_off, out_len);
  35561. };
  35562. Zlib.prototype._write = function(flush, input, in_off, in_len, out, out_off, out_len) {
  35563. this.write_in_progress = true;
  35564. if (flush !== exports.Z_NO_FLUSH &&
  35565. flush !== exports.Z_PARTIAL_FLUSH &&
  35566. flush !== exports.Z_SYNC_FLUSH &&
  35567. flush !== exports.Z_FULL_FLUSH &&
  35568. flush !== exports.Z_FINISH &&
  35569. flush !== exports.Z_BLOCK) {
  35570. throw new Error("Invalid flush value");
  35571. }
  35572. if (input == null) {
  35573. input = new Buffer(0);
  35574. in_len = 0;
  35575. in_off = 0;
  35576. }
  35577. if (out._set)
  35578. out.set = out._set;
  35579. else
  35580. out.set = bufferSet;
  35581. var strm = this.strm;
  35582. strm.avail_in = in_len;
  35583. strm.input = input;
  35584. strm.next_in = in_off;
  35585. strm.avail_out = out_len;
  35586. strm.output = out;
  35587. strm.next_out = out_off;
  35588. switch (this.mode) {
  35589. case exports.DEFLATE:
  35590. case exports.GZIP:
  35591. case exports.DEFLATERAW:
  35592. var status = zlib_deflate.deflate(strm, flush);
  35593. break;
  35594. case exports.UNZIP:
  35595. case exports.INFLATE:
  35596. case exports.GUNZIP:
  35597. case exports.INFLATERAW:
  35598. var status = zlib_inflate.inflate(strm, flush);
  35599. break;
  35600. default:
  35601. throw new Error("Unknown mode " + this.mode);
  35602. }
  35603. if (status !== exports.Z_STREAM_END && status !== exports.Z_OK) {
  35604. this._error(status);
  35605. }
  35606. this.write_in_progress = false;
  35607. return [strm.avail_in, strm.avail_out];
  35608. };
  35609. Zlib.prototype.close = function() {
  35610. if (this.write_in_progress) {
  35611. this.pending_close = true;
  35612. return;
  35613. }
  35614. this.pending_close = false;
  35615. if (this.mode === exports.DEFLATE || this.mode === exports.GZIP || this.mode === exports.DEFLATERAW) {
  35616. zlib_deflate.deflateEnd(this.strm);
  35617. } else {
  35618. zlib_inflate.inflateEnd(this.strm);
  35619. }
  35620. this.mode = exports.NONE;
  35621. };
  35622. Zlib.prototype.reset = function() {
  35623. switch (this.mode) {
  35624. case exports.DEFLATE:
  35625. case exports.DEFLATERAW:
  35626. var status = zlib_deflate.deflateReset(this.strm);
  35627. break;
  35628. case exports.INFLATE:
  35629. case exports.INFLATERAW:
  35630. var status = zlib_inflate.inflateReset(this.strm);
  35631. break;
  35632. }
  35633. if (status !== exports.Z_OK) {
  35634. this._error(status);
  35635. }
  35636. };
  35637. Zlib.prototype._error = function(status) {
  35638. this.onerror(msg[status] + ': ' + this.strm.msg, status);
  35639. this.write_in_progress = false;
  35640. if (this.pending_close)
  35641. this.close();
  35642. };
  35643. exports.Zlib = Zlib;
  35644. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(61), __webpack_require__(4).Buffer))
  35645. /***/ },
  35646. /* 51 */
  35647. /***/ function(module, exports, __webpack_require__) {
  35648. /* WEBPACK VAR INJECTION */(function(Buffer) {// Generated by CoffeeScript 1.4.0
  35649. /*
  35650. # MIT LICENSE
  35651. # Copyright (c) 2011 Devon Govett
  35652. #
  35653. # Permission is hereby granted, free of charge, to any person obtaining a copy of this
  35654. # software and associated documentation files (the "Software"), to deal in the Software
  35655. # without restriction, including without limitation the rights to use, copy, modify, merge,
  35656. # publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
  35657. # to whom the Software is furnished to do so, subject to the following conditions:
  35658. #
  35659. # The above copyright notice and this permission notice shall be included in all copies or
  35660. # substantial portions of the Software.
  35661. #
  35662. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
  35663. # BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  35664. # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  35665. # DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  35666. # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  35667. */
  35668. (function() {
  35669. var PNG, fs, zlib;
  35670. fs = __webpack_require__(10);
  35671. zlib = __webpack_require__(45);
  35672. module.exports = PNG = (function() {
  35673. PNG.decode = function(path, fn) {
  35674. return fs.readFile(path, function(err, file) {
  35675. var png;
  35676. png = new PNG(file);
  35677. return png.decode(function(pixels) {
  35678. return fn(pixels);
  35679. });
  35680. });
  35681. };
  35682. PNG.load = function(path) {
  35683. var file;
  35684. file = fs.readFileSync(path);
  35685. return new PNG(file);
  35686. };
  35687. function PNG(data) {
  35688. var chunkSize, colors, i, index, key, section, short, text, _i, _j, _ref;
  35689. this.data = data;
  35690. this.pos = 8;
  35691. this.palette = [];
  35692. this.imgData = [];
  35693. this.transparency = {};
  35694. this.text = {};
  35695. while (true) {
  35696. chunkSize = this.readUInt32();
  35697. section = ((function() {
  35698. var _i, _results;
  35699. _results = [];
  35700. for (i = _i = 0; _i < 4; i = ++_i) {
  35701. _results.push(String.fromCharCode(this.data[this.pos++]));
  35702. }
  35703. return _results;
  35704. }).call(this)).join('');
  35705. switch (section) {
  35706. case 'IHDR':
  35707. this.width = this.readUInt32();
  35708. this.height = this.readUInt32();
  35709. this.bits = this.data[this.pos++];
  35710. this.colorType = this.data[this.pos++];
  35711. this.compressionMethod = this.data[this.pos++];
  35712. this.filterMethod = this.data[this.pos++];
  35713. this.interlaceMethod = this.data[this.pos++];
  35714. break;
  35715. case 'PLTE':
  35716. this.palette = this.read(chunkSize);
  35717. break;
  35718. case 'IDAT':
  35719. for (i = _i = 0; _i < chunkSize; i = _i += 1) {
  35720. this.imgData.push(this.data[this.pos++]);
  35721. }
  35722. break;
  35723. case 'tRNS':
  35724. this.transparency = {};
  35725. switch (this.colorType) {
  35726. case 3:
  35727. this.transparency.indexed = this.read(chunkSize);
  35728. short = 255 - this.transparency.indexed.length;
  35729. if (short > 0) {
  35730. for (i = _j = 0; 0 <= short ? _j < short : _j > short; i = 0 <= short ? ++_j : --_j) {
  35731. this.transparency.indexed.push(255);
  35732. }
  35733. }
  35734. break;
  35735. case 0:
  35736. this.transparency.grayscale = this.read(chunkSize)[0];
  35737. break;
  35738. case 2:
  35739. this.transparency.rgb = this.read(chunkSize);
  35740. }
  35741. break;
  35742. case 'tEXt':
  35743. text = this.read(chunkSize);
  35744. index = text.indexOf(0);
  35745. key = String.fromCharCode.apply(String, text.slice(0, index));
  35746. this.text[key] = String.fromCharCode.apply(String, text.slice(index + 1));
  35747. break;
  35748. case 'IEND':
  35749. this.colors = (function() {
  35750. switch (this.colorType) {
  35751. case 0:
  35752. case 3:
  35753. case 4:
  35754. return 1;
  35755. case 2:
  35756. case 6:
  35757. return 3;
  35758. }
  35759. }).call(this);
  35760. this.hasAlphaChannel = (_ref = this.colorType) === 4 || _ref === 6;
  35761. colors = this.colors + (this.hasAlphaChannel ? 1 : 0);
  35762. this.pixelBitlength = this.bits * colors;
  35763. this.colorSpace = (function() {
  35764. switch (this.colors) {
  35765. case 1:
  35766. return 'DeviceGray';
  35767. case 3:
  35768. return 'DeviceRGB';
  35769. }
  35770. }).call(this);
  35771. this.imgData = new Buffer(this.imgData);
  35772. return;
  35773. default:
  35774. this.pos += chunkSize;
  35775. }
  35776. this.pos += 4;
  35777. if (this.pos > this.data.length) {
  35778. throw new Error("Incomplete or corrupt PNG file");
  35779. }
  35780. }
  35781. return;
  35782. }
  35783. PNG.prototype.read = function(bytes) {
  35784. var i, _i, _results;
  35785. _results = [];
  35786. for (i = _i = 0; 0 <= bytes ? _i < bytes : _i > bytes; i = 0 <= bytes ? ++_i : --_i) {
  35787. _results.push(this.data[this.pos++]);
  35788. }
  35789. return _results;
  35790. };
  35791. PNG.prototype.readUInt32 = function() {
  35792. var b1, b2, b3, b4;
  35793. b1 = this.data[this.pos++] << 24;
  35794. b2 = this.data[this.pos++] << 16;
  35795. b3 = this.data[this.pos++] << 8;
  35796. b4 = this.data[this.pos++];
  35797. return b1 | b2 | b3 | b4;
  35798. };
  35799. PNG.prototype.readUInt16 = function() {
  35800. var b1, b2;
  35801. b1 = this.data[this.pos++] << 8;
  35802. b2 = this.data[this.pos++];
  35803. return b1 | b2;
  35804. };
  35805. PNG.prototype.decodePixels = function(fn) {
  35806. var _this = this;
  35807. return zlib.inflate(this.imgData, function(err, data) {
  35808. var byte, c, col, i, left, length, p, pa, paeth, pb, pc, pixelBytes, pixels, pos, row, scanlineLength, upper, upperLeft, _i, _j, _k, _l, _m;
  35809. if (err) {
  35810. throw err;
  35811. }
  35812. pixelBytes = _this.pixelBitlength / 8;
  35813. scanlineLength = pixelBytes * _this.width;
  35814. pixels = new Buffer(scanlineLength * _this.height);
  35815. length = data.length;
  35816. row = 0;
  35817. pos = 0;
  35818. c = 0;
  35819. while (pos < length) {
  35820. switch (data[pos++]) {
  35821. case 0:
  35822. for (i = _i = 0; _i < scanlineLength; i = _i += 1) {
  35823. pixels[c++] = data[pos++];
  35824. }
  35825. break;
  35826. case 1:
  35827. for (i = _j = 0; _j < scanlineLength; i = _j += 1) {
  35828. byte = data[pos++];
  35829. left = i < pixelBytes ? 0 : pixels[c - pixelBytes];
  35830. pixels[c++] = (byte + left) % 256;
  35831. }
  35832. break;
  35833. case 2:
  35834. for (i = _k = 0; _k < scanlineLength; i = _k += 1) {
  35835. byte = data[pos++];
  35836. col = (i - (i % pixelBytes)) / pixelBytes;
  35837. upper = row && pixels[(row - 1) * scanlineLength + col * pixelBytes + (i % pixelBytes)];
  35838. pixels[c++] = (upper + byte) % 256;
  35839. }
  35840. break;
  35841. case 3:
  35842. for (i = _l = 0; _l < scanlineLength; i = _l += 1) {
  35843. byte = data[pos++];
  35844. col = (i - (i % pixelBytes)) / pixelBytes;
  35845. left = i < pixelBytes ? 0 : pixels[c - pixelBytes];
  35846. upper = row && pixels[(row - 1) * scanlineLength + col * pixelBytes + (i % pixelBytes)];
  35847. pixels[c++] = (byte + Math.floor((left + upper) / 2)) % 256;
  35848. }
  35849. break;
  35850. case 4:
  35851. for (i = _m = 0; _m < scanlineLength; i = _m += 1) {
  35852. byte = data[pos++];
  35853. col = (i - (i % pixelBytes)) / pixelBytes;
  35854. left = i < pixelBytes ? 0 : pixels[c - pixelBytes];
  35855. if (row === 0) {
  35856. upper = upperLeft = 0;
  35857. } else {
  35858. upper = pixels[(row - 1) * scanlineLength + col * pixelBytes + (i % pixelBytes)];
  35859. upperLeft = col && pixels[(row - 1) * scanlineLength + (col - 1) * pixelBytes + (i % pixelBytes)];
  35860. }
  35861. p = left + upper - upperLeft;
  35862. pa = Math.abs(p - left);
  35863. pb = Math.abs(p - upper);
  35864. pc = Math.abs(p - upperLeft);
  35865. if (pa <= pb && pa <= pc) {
  35866. paeth = left;
  35867. } else if (pb <= pc) {
  35868. paeth = upper;
  35869. } else {
  35870. paeth = upperLeft;
  35871. }
  35872. pixels[c++] = (byte + paeth) % 256;
  35873. }
  35874. break;
  35875. default:
  35876. throw new Error("Invalid filter algorithm: " + data[pos - 1]);
  35877. }
  35878. row++;
  35879. }
  35880. return fn(pixels);
  35881. });
  35882. };
  35883. PNG.prototype.decodePalette = function() {
  35884. var c, i, length, palette, pos, ret, transparency, _i, _ref, _ref1;
  35885. palette = this.palette;
  35886. transparency = this.transparency.indexed || [];
  35887. ret = new Buffer(transparency.length + palette.length);
  35888. pos = 0;
  35889. length = palette.length;
  35890. c = 0;
  35891. for (i = _i = 0, _ref = palette.length; _i < _ref; i = _i += 3) {
  35892. ret[pos++] = palette[i];
  35893. ret[pos++] = palette[i + 1];
  35894. ret[pos++] = palette[i + 2];
  35895. ret[pos++] = (_ref1 = transparency[c++]) != null ? _ref1 : 255;
  35896. }
  35897. return ret;
  35898. };
  35899. PNG.prototype.copyToImageData = function(imageData, pixels) {
  35900. var alpha, colors, data, i, input, j, k, length, palette, v, _ref;
  35901. colors = this.colors;
  35902. palette = null;
  35903. alpha = this.hasAlphaChannel;
  35904. if (this.palette.length) {
  35905. palette = (_ref = this._decodedPalette) != null ? _ref : this._decodedPalette = this.decodePalette();
  35906. colors = 4;
  35907. alpha = true;
  35908. }
  35909. data = (imageData != null ? imageData.data : void 0) || imageData;
  35910. length = data.length;
  35911. input = palette || pixels;
  35912. i = j = 0;
  35913. if (colors === 1) {
  35914. while (i < length) {
  35915. k = palette ? pixels[i / 4] * 4 : j;
  35916. v = input[k++];
  35917. data[i++] = v;
  35918. data[i++] = v;
  35919. data[i++] = v;
  35920. data[i++] = alpha ? input[k++] : 255;
  35921. j = k;
  35922. }
  35923. } else {
  35924. while (i < length) {
  35925. k = palette ? pixels[i / 4] * 4 : j;
  35926. data[i++] = input[k++];
  35927. data[i++] = input[k++];
  35928. data[i++] = input[k++];
  35929. data[i++] = alpha ? input[k++] : 255;
  35930. j = k;
  35931. }
  35932. }
  35933. };
  35934. PNG.prototype.decode = function(fn) {
  35935. var ret,
  35936. _this = this;
  35937. ret = new Buffer(this.width * this.height * 4);
  35938. return this.decodePixels(function(pixels) {
  35939. _this.copyToImageData(ret, pixels);
  35940. return fn(ret);
  35941. });
  35942. };
  35943. return PNG;
  35944. })();
  35945. }).call(this);
  35946. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4).Buffer))
  35947. /***/ },
  35948. /* 52 */
  35949. /***/ function(module, exports, __webpack_require__) {
  35950. /* WEBPACK VAR INJECTION */(function(Buffer, __dirname) {// Generated by CoffeeScript 1.7.1
  35951. /*
  35952. PDFFont - embeds fonts in PDF documents
  35953. By Devon Govett
  35954. */
  35955. (function() {
  35956. var AFMFont, PDFFont, Subset, TTFFont, fs;
  35957. TTFFont = __webpack_require__(64);
  35958. AFMFont = __webpack_require__(63);
  35959. Subset = __webpack_require__(65);
  35960. fs = __webpack_require__(10);
  35961. PDFFont = (function() {
  35962. var STANDARD_FONTS, toUnicodeCmap;
  35963. function PDFFont(document, src, family, id) {
  35964. this.document = document;
  35965. this.id = id;
  35966. if (typeof src === 'string') {
  35967. if (src in STANDARD_FONTS) {
  35968. this.isAFM = true;
  35969. this.font = new AFMFont(STANDARD_FONTS[src]());
  35970. this.registerAFM(src);
  35971. return;
  35972. } else if (/\.(ttf|ttc)$/i.test(src)) {
  35973. this.font = TTFFont.open(src, family);
  35974. } else if (/\.dfont$/i.test(src)) {
  35975. this.font = TTFFont.fromDFont(src, family);
  35976. } else {
  35977. throw new Error('Not a supported font format or standard PDF font.');
  35978. }
  35979. } else if (Buffer.isBuffer(src)) {
  35980. this.font = TTFFont.fromBuffer(src, family);
  35981. } else if (src instanceof Uint8Array) {
  35982. this.font = TTFFont.fromBuffer(new Buffer(src), family);
  35983. } else if (src instanceof ArrayBuffer) {
  35984. this.font = TTFFont.fromBuffer(new Buffer(new Uint8Array(src)), family);
  35985. } else {
  35986. throw new Error('Not a supported font format or standard PDF font.');
  35987. }
  35988. this.subset = new Subset(this.font);
  35989. this.registerTTF();
  35990. }
  35991. STANDARD_FONTS = {
  35992. "Courier": function() {
  35993. return fs.readFileSync(__dirname + "/font/data/Courier.afm", 'utf8');
  35994. },
  35995. "Courier-Bold": function() {
  35996. return fs.readFileSync(__dirname + "/font/data/Courier-Bold.afm", 'utf8');
  35997. },
  35998. "Courier-Oblique": function() {
  35999. return fs.readFileSync(__dirname + "/font/data/Courier-Oblique.afm", 'utf8');
  36000. },
  36001. "Courier-BoldOblique": function() {
  36002. return fs.readFileSync(__dirname + "/font/data/Courier-BoldOblique.afm", 'utf8');
  36003. },
  36004. "Helvetica": function() {
  36005. return fs.readFileSync(__dirname + "/font/data/Helvetica.afm", 'utf8');
  36006. },
  36007. "Helvetica-Bold": function() {
  36008. return fs.readFileSync(__dirname + "/font/data/Helvetica-Bold.afm", 'utf8');
  36009. },
  36010. "Helvetica-Oblique": function() {
  36011. return fs.readFileSync(__dirname + "/font/data/Helvetica-Oblique.afm", 'utf8');
  36012. },
  36013. "Helvetica-BoldOblique": function() {
  36014. return fs.readFileSync(__dirname + "/font/data/Helvetica-BoldOblique.afm", 'utf8');
  36015. },
  36016. "Times-Roman": function() {
  36017. return fs.readFileSync(__dirname + "/font/data/Times-Roman.afm", 'utf8');
  36018. },
  36019. "Times-Bold": function() {
  36020. return fs.readFileSync(__dirname + "/font/data/Times-Bold.afm", 'utf8');
  36021. },
  36022. "Times-Italic": function() {
  36023. return fs.readFileSync(__dirname + "/font/data/Times-Italic.afm", 'utf8');
  36024. },
  36025. "Times-BoldItalic": function() {
  36026. return fs.readFileSync(__dirname + "/font/data/Times-BoldItalic.afm", 'utf8');
  36027. },
  36028. "Symbol": function() {
  36029. return fs.readFileSync(__dirname + "/font/data/Symbol.afm", 'utf8');
  36030. },
  36031. "ZapfDingbats": function() {
  36032. return fs.readFileSync(__dirname + "/font/data/ZapfDingbats.afm", 'utf8');
  36033. }
  36034. };
  36035. PDFFont.prototype.use = function(characters) {
  36036. var _ref;
  36037. return (_ref = this.subset) != null ? _ref.use(characters) : void 0;
  36038. };
  36039. PDFFont.prototype.embed = function() {
  36040. if (this.embedded || (this.dictionary == null)) {
  36041. return;
  36042. }
  36043. if (this.isAFM) {
  36044. this.embedAFM();
  36045. } else {
  36046. this.embedTTF();
  36047. }
  36048. return this.embedded = true;
  36049. };
  36050. PDFFont.prototype.encode = function(text) {
  36051. var _ref;
  36052. if (this.isAFM) {
  36053. return this.font.encodeText(text);
  36054. } else {
  36055. return ((_ref = this.subset) != null ? _ref.encodeText(text) : void 0) || text;
  36056. }
  36057. };
  36058. PDFFont.prototype.ref = function() {
  36059. return this.dictionary != null ? this.dictionary : this.dictionary = this.document.ref();
  36060. };
  36061. PDFFont.prototype.registerTTF = function() {
  36062. var e, hi, low, raw, _ref;
  36063. this.name = this.font.name.postscriptName;
  36064. this.scaleFactor = 1000.0 / this.font.head.unitsPerEm;
  36065. this.bbox = (function() {
  36066. var _i, _len, _ref, _results;
  36067. _ref = this.font.bbox;
  36068. _results = [];
  36069. for (_i = 0, _len = _ref.length; _i < _len; _i++) {
  36070. e = _ref[_i];
  36071. _results.push(Math.round(e * this.scaleFactor));
  36072. }
  36073. return _results;
  36074. }).call(this);
  36075. this.stemV = 0;
  36076. if (this.font.post.exists) {
  36077. raw = this.font.post.italic_angle;
  36078. hi = raw >> 16;
  36079. low = raw & 0xFF;
  36080. if (hi & 0x8000 !== 0) {
  36081. hi = -((hi ^ 0xFFFF) + 1);
  36082. }
  36083. this.italicAngle = +("" + hi + "." + low);
  36084. } else {
  36085. this.italicAngle = 0;
  36086. }
  36087. this.ascender = Math.round(this.font.ascender * this.scaleFactor);
  36088. this.decender = Math.round(this.font.decender * this.scaleFactor);
  36089. this.lineGap = Math.round(this.font.lineGap * this.scaleFactor);
  36090. this.capHeight = (this.font.os2.exists && this.font.os2.capHeight) || this.ascender;
  36091. this.xHeight = (this.font.os2.exists && this.font.os2.xHeight) || 0;
  36092. this.familyClass = (this.font.os2.exists && this.font.os2.familyClass || 0) >> 8;
  36093. this.isSerif = (_ref = this.familyClass) === 1 || _ref === 2 || _ref === 3 || _ref === 4 || _ref === 5 || _ref === 7;
  36094. this.isScript = this.familyClass === 10;
  36095. this.flags = 0;
  36096. if (this.font.post.isFixedPitch) {
  36097. this.flags |= 1 << 0;
  36098. }
  36099. if (this.isSerif) {
  36100. this.flags |= 1 << 1;
  36101. }
  36102. if (this.isScript) {
  36103. this.flags |= 1 << 3;
  36104. }
  36105. if (this.italicAngle !== 0) {
  36106. this.flags |= 1 << 6;
  36107. }
  36108. this.flags |= 1 << 5;
  36109. if (!this.font.cmap.unicode) {
  36110. throw new Error('No unicode cmap for font');
  36111. }
  36112. };
  36113. PDFFont.prototype.embedTTF = function() {
  36114. var charWidths, cmap, code, data, descriptor, firstChar, fontfile, glyph;
  36115. data = this.subset.encode();
  36116. fontfile = this.document.ref();
  36117. fontfile.write(data);
  36118. fontfile.data.Length1 = fontfile.uncompressedLength;
  36119. fontfile.end();
  36120. descriptor = this.document.ref({
  36121. Type: 'FontDescriptor',
  36122. FontName: this.subset.postscriptName,
  36123. FontFile2: fontfile,
  36124. FontBBox: this.bbox,
  36125. Flags: this.flags,
  36126. StemV: this.stemV,
  36127. ItalicAngle: this.italicAngle,
  36128. Ascent: this.ascender,
  36129. Descent: this.decender,
  36130. CapHeight: this.capHeight,
  36131. XHeight: this.xHeight
  36132. });
  36133. descriptor.end();
  36134. firstChar = +Object.keys(this.subset.cmap)[0];
  36135. charWidths = (function() {
  36136. var _ref, _results;
  36137. _ref = this.subset.cmap;
  36138. _results = [];
  36139. for (code in _ref) {
  36140. glyph = _ref[code];
  36141. _results.push(Math.round(this.font.widthOfGlyph(glyph)));
  36142. }
  36143. return _results;
  36144. }).call(this);
  36145. cmap = this.document.ref();
  36146. cmap.end(toUnicodeCmap(this.subset.subset));
  36147. this.dictionary.data = {
  36148. Type: 'Font',
  36149. BaseFont: this.subset.postscriptName,
  36150. Subtype: 'TrueType',
  36151. FontDescriptor: descriptor,
  36152. FirstChar: firstChar,
  36153. LastChar: firstChar + charWidths.length - 1,
  36154. Widths: charWidths,
  36155. Encoding: 'MacRomanEncoding',
  36156. ToUnicode: cmap
  36157. };
  36158. return this.dictionary.end();
  36159. };
  36160. toUnicodeCmap = function(map) {
  36161. var code, codes, range, unicode, unicodeMap, _i, _len;
  36162. unicodeMap = '/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<00><ff>\nendcodespacerange';
  36163. codes = Object.keys(map).sort(function(a, b) {
  36164. return a - b;
  36165. });
  36166. range = [];
  36167. for (_i = 0, _len = codes.length; _i < _len; _i++) {
  36168. code = codes[_i];
  36169. if (range.length >= 100) {
  36170. unicodeMap += "\n" + range.length + " beginbfchar\n" + (range.join('\n')) + "\nendbfchar";
  36171. range = [];
  36172. }
  36173. unicode = ('0000' + map[code].toString(16)).slice(-4);
  36174. code = (+code).toString(16);
  36175. range.push("<" + code + "><" + unicode + ">");
  36176. }
  36177. if (range.length) {
  36178. unicodeMap += "\n" + range.length + " beginbfchar\n" + (range.join('\n')) + "\nendbfchar\n";
  36179. }
  36180. return unicodeMap += 'endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend';
  36181. };
  36182. PDFFont.prototype.registerAFM = function(name) {
  36183. var _ref;
  36184. this.name = name;
  36185. return _ref = this.font, this.ascender = _ref.ascender, this.decender = _ref.decender, this.bbox = _ref.bbox, this.lineGap = _ref.lineGap, _ref;
  36186. };
  36187. PDFFont.prototype.embedAFM = function() {
  36188. this.dictionary.data = {
  36189. Type: 'Font',
  36190. BaseFont: this.name,
  36191. Subtype: 'Type1',
  36192. Encoding: 'WinAnsiEncoding'
  36193. };
  36194. return this.dictionary.end();
  36195. };
  36196. PDFFont.prototype.widthOfString = function(string, size) {
  36197. var charCode, i, scale, width, _i, _ref;
  36198. string = '' + string;
  36199. width = 0;
  36200. for (i = _i = 0, _ref = string.length; 0 <= _ref ? _i < _ref : _i > _ref; i = 0 <= _ref ? ++_i : --_i) {
  36201. charCode = string.charCodeAt(i);
  36202. width += this.font.widthOfGlyph(this.font.characterToGlyph(charCode)) || 0;
  36203. }
  36204. scale = size / 1000;
  36205. return width * scale;
  36206. };
  36207. PDFFont.prototype.lineHeight = function(size, includeGap) {
  36208. var gap;
  36209. if (includeGap == null) {
  36210. includeGap = false;
  36211. }
  36212. gap = includeGap ? this.lineGap : 0;
  36213. return (this.ascender + gap - this.decender) / 1000 * size;
  36214. };
  36215. return PDFFont;
  36216. })();
  36217. module.exports = PDFFont;
  36218. }).call(this);
  36219. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4).Buffer, "/"))
  36220. /***/ },
  36221. /* 53 */
  36222. /***/ function(module, exports, __webpack_require__) {
  36223. // http://wiki.commonjs.org/wiki/Unit_Testing/1.0
  36224. //
  36225. // THIS IS NOT TESTED NOR LIKELY TO WORK OUTSIDE V8!
  36226. //
  36227. // Originally from narwhal.js (http://narwhaljs.org)
  36228. // Copyright (c) 2009 Thomas Robinson <280north.com>
  36229. //
  36230. // Permission is hereby granted, free of charge, to any person obtaining a copy
  36231. // of this software and associated documentation files (the 'Software'), to
  36232. // deal in the Software without restriction, including without limitation the
  36233. // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
  36234. // sell copies of the Software, and to permit persons to whom the Software is
  36235. // furnished to do so, subject to the following conditions:
  36236. //
  36237. // The above copyright notice and this permission notice shall be included in
  36238. // all copies or substantial portions of the Software.
  36239. //
  36240. // THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  36241. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  36242. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  36243. // AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
  36244. // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  36245. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  36246. // when used in node, this will actually load the util module we depend on
  36247. // versus loading the builtin util module as happens otherwise
  36248. // this is a bug in node module loading as far as I am concerned
  36249. var util = __webpack_require__(60);
  36250. var pSlice = Array.prototype.slice;
  36251. var hasOwn = Object.prototype.hasOwnProperty;
  36252. // 1. The assert module provides functions that throw
  36253. // AssertionError's when particular conditions are not met. The
  36254. // assert module must conform to the following interface.
  36255. var assert = module.exports = ok;
  36256. // 2. The AssertionError is defined in assert.
  36257. // new assert.AssertionError({ message: message,
  36258. // actual: actual,
  36259. // expected: expected })
  36260. assert.AssertionError = function AssertionError(options) {
  36261. this.name = 'AssertionError';
  36262. this.actual = options.actual;
  36263. this.expected = options.expected;
  36264. this.operator = options.operator;
  36265. if (options.message) {
  36266. this.message = options.message;
  36267. this.generatedMessage = false;
  36268. } else {
  36269. this.message = getMessage(this);
  36270. this.generatedMessage = true;
  36271. }
  36272. var stackStartFunction = options.stackStartFunction || fail;
  36273. if (Error.captureStackTrace) {
  36274. Error.captureStackTrace(this, stackStartFunction);
  36275. }
  36276. else {
  36277. // non v8 browsers so we can have a stacktrace
  36278. var err = new Error();
  36279. if (err.stack) {
  36280. var out = err.stack;
  36281. // try to strip useless frames
  36282. var fn_name = stackStartFunction.name;
  36283. var idx = out.indexOf('\n' + fn_name);
  36284. if (idx >= 0) {
  36285. // once we have located the function frame
  36286. // we need to strip out everything before it (and its line)
  36287. var next_line = out.indexOf('\n', idx + 1);
  36288. out = out.substring(next_line + 1);
  36289. }
  36290. this.stack = out;
  36291. }
  36292. }
  36293. };
  36294. // assert.AssertionError instanceof Error
  36295. util.inherits(assert.AssertionError, Error);
  36296. function replacer(key, value) {
  36297. if (util.isUndefined(value)) {
  36298. return '' + value;
  36299. }
  36300. if (util.isNumber(value) && !isFinite(value)) {
  36301. return value.toString();
  36302. }
  36303. if (util.isFunction(value) || util.isRegExp(value)) {
  36304. return value.toString();
  36305. }
  36306. return value;
  36307. }
  36308. function truncate(s, n) {
  36309. if (util.isString(s)) {
  36310. return s.length < n ? s : s.slice(0, n);
  36311. } else {
  36312. return s;
  36313. }
  36314. }
  36315. function getMessage(self) {
  36316. return truncate(JSON.stringify(self.actual, replacer), 128) + ' ' +
  36317. self.operator + ' ' +
  36318. truncate(JSON.stringify(self.expected, replacer), 128);
  36319. }
  36320. // At present only the three keys mentioned above are used and
  36321. // understood by the spec. Implementations or sub modules can pass
  36322. // other keys to the AssertionError's constructor - they will be
  36323. // ignored.
  36324. // 3. All of the following functions must throw an AssertionError
  36325. // when a corresponding condition is not met, with a message that
  36326. // may be undefined if not provided. All assertion methods provide
  36327. // both the actual and expected values to the assertion error for
  36328. // display purposes.
  36329. function fail(actual, expected, message, operator, stackStartFunction) {
  36330. throw new assert.AssertionError({
  36331. message: message,
  36332. actual: actual,
  36333. expected: expected,
  36334. operator: operator,
  36335. stackStartFunction: stackStartFunction
  36336. });
  36337. }
  36338. // EXTENSION! allows for well behaved errors defined elsewhere.
  36339. assert.fail = fail;
  36340. // 4. Pure assertion tests whether a value is truthy, as determined
  36341. // by !!guard.
  36342. // assert.ok(guard, message_opt);
  36343. // This statement is equivalent to assert.equal(true, !!guard,
  36344. // message_opt);. To test strictly for the value true, use
  36345. // assert.strictEqual(true, guard, message_opt);.
  36346. function ok(value, message) {
  36347. if (!value) fail(value, true, message, '==', assert.ok);
  36348. }
  36349. assert.ok = ok;
  36350. // 5. The equality assertion tests shallow, coercive equality with
  36351. // ==.
  36352. // assert.equal(actual, expected, message_opt);
  36353. assert.equal = function equal(actual, expected, message) {
  36354. if (actual != expected) fail(actual, expected, message, '==', assert.equal);
  36355. };
  36356. // 6. The non-equality assertion tests for whether two objects are not equal
  36357. // with != assert.notEqual(actual, expected, message_opt);
  36358. assert.notEqual = function notEqual(actual, expected, message) {
  36359. if (actual == expected) {
  36360. fail(actual, expected, message, '!=', assert.notEqual);
  36361. }
  36362. };
  36363. // 7. The equivalence assertion tests a deep equality relation.
  36364. // assert.deepEqual(actual, expected, message_opt);
  36365. assert.deepEqual = function deepEqual(actual, expected, message) {
  36366. if (!_deepEqual(actual, expected)) {
  36367. fail(actual, expected, message, 'deepEqual', assert.deepEqual);
  36368. }
  36369. };
  36370. function _deepEqual(actual, expected) {
  36371. // 7.1. All identical values are equivalent, as determined by ===.
  36372. if (actual === expected) {
  36373. return true;
  36374. } else if (util.isBuffer(actual) && util.isBuffer(expected)) {
  36375. if (actual.length != expected.length) return false;
  36376. for (var i = 0; i < actual.length; i++) {
  36377. if (actual[i] !== expected[i]) return false;
  36378. }
  36379. return true;
  36380. // 7.2. If the expected value is a Date object, the actual value is
  36381. // equivalent if it is also a Date object that refers to the same time.
  36382. } else if (util.isDate(actual) && util.isDate(expected)) {
  36383. return actual.getTime() === expected.getTime();
  36384. // 7.3 If the expected value is a RegExp object, the actual value is
  36385. // equivalent if it is also a RegExp object with the same source and
  36386. // properties (`global`, `multiline`, `lastIndex`, `ignoreCase`).
  36387. } else if (util.isRegExp(actual) && util.isRegExp(expected)) {
  36388. return actual.source === expected.source &&
  36389. actual.global === expected.global &&
  36390. actual.multiline === expected.multiline &&
  36391. actual.lastIndex === expected.lastIndex &&
  36392. actual.ignoreCase === expected.ignoreCase;
  36393. // 7.4. Other pairs that do not both pass typeof value == 'object',
  36394. // equivalence is determined by ==.
  36395. } else if (!util.isObject(actual) && !util.isObject(expected)) {
  36396. return actual == expected;
  36397. // 7.5 For all other Object pairs, including Array objects, equivalence is
  36398. // determined by having the same number of owned properties (as verified
  36399. // with Object.prototype.hasOwnProperty.call), the same set of keys
  36400. // (although not necessarily the same order), equivalent values for every
  36401. // corresponding key, and an identical 'prototype' property. Note: this
  36402. // accounts for both named and indexed properties on Arrays.
  36403. } else {
  36404. return objEquiv(actual, expected);
  36405. }
  36406. }
  36407. function isArguments(object) {
  36408. return Object.prototype.toString.call(object) == '[object Arguments]';
  36409. }
  36410. function objEquiv(a, b) {
  36411. if (util.isNullOrUndefined(a) || util.isNullOrUndefined(b))
  36412. return false;
  36413. // an identical 'prototype' property.
  36414. if (a.prototype !== b.prototype) return false;
  36415. // if one is a primitive, the other must be same
  36416. if (util.isPrimitive(a) || util.isPrimitive(b)) {
  36417. return a === b;
  36418. }
  36419. var aIsArgs = isArguments(a),
  36420. bIsArgs = isArguments(b);
  36421. if ((aIsArgs && !bIsArgs) || (!aIsArgs && bIsArgs))
  36422. return false;
  36423. if (aIsArgs) {
  36424. a = pSlice.call(a);
  36425. b = pSlice.call(b);
  36426. return _deepEqual(a, b);
  36427. }
  36428. var ka = objectKeys(a),
  36429. kb = objectKeys(b),
  36430. key, i;
  36431. // having the same number of owned properties (keys incorporates
  36432. // hasOwnProperty)
  36433. if (ka.length != kb.length)
  36434. return false;
  36435. //the same set of keys (although not necessarily the same order),
  36436. ka.sort();
  36437. kb.sort();
  36438. //~~~cheap key test
  36439. for (i = ka.length - 1; i >= 0; i--) {
  36440. if (ka[i] != kb[i])
  36441. return false;
  36442. }
  36443. //equivalent values for every corresponding key, and
  36444. //~~~possibly expensive deep test
  36445. for (i = ka.length - 1; i >= 0; i--) {
  36446. key = ka[i];
  36447. if (!_deepEqual(a[key], b[key])) return false;
  36448. }
  36449. return true;
  36450. }
  36451. // 8. The non-equivalence assertion tests for any deep inequality.
  36452. // assert.notDeepEqual(actual, expected, message_opt);
  36453. assert.notDeepEqual = function notDeepEqual(actual, expected, message) {
  36454. if (_deepEqual(actual, expected)) {
  36455. fail(actual, expected, message, 'notDeepEqual', assert.notDeepEqual);
  36456. }
  36457. };
  36458. // 9. The strict equality assertion tests strict equality, as determined by ===.
  36459. // assert.strictEqual(actual, expected, message_opt);
  36460. assert.strictEqual = function strictEqual(actual, expected, message) {
  36461. if (actual !== expected) {
  36462. fail(actual, expected, message, '===', assert.strictEqual);
  36463. }
  36464. };
  36465. // 10. The strict non-equality assertion tests for strict inequality, as
  36466. // determined by !==. assert.notStrictEqual(actual, expected, message_opt);
  36467. assert.notStrictEqual = function notStrictEqual(actual, expected, message) {
  36468. if (actual === expected) {
  36469. fail(actual, expected, message, '!==', assert.notStrictEqual);
  36470. }
  36471. };
  36472. function expectedException(actual, expected) {
  36473. if (!actual || !expected) {
  36474. return false;
  36475. }
  36476. if (Object.prototype.toString.call(expected) == '[object RegExp]') {
  36477. return expected.test(actual);
  36478. } else if (actual instanceof expected) {
  36479. return true;
  36480. } else if (expected.call({}, actual) === true) {
  36481. return true;
  36482. }
  36483. return false;
  36484. }
  36485. function _throws(shouldThrow, block, expected, message) {
  36486. var actual;
  36487. if (util.isString(expected)) {
  36488. message = expected;
  36489. expected = null;
  36490. }
  36491. try {
  36492. block();
  36493. } catch (e) {
  36494. actual = e;
  36495. }
  36496. message = (expected && expected.name ? ' (' + expected.name + ').' : '.') +
  36497. (message ? ' ' + message : '.');
  36498. if (shouldThrow && !actual) {
  36499. fail(actual, expected, 'Missing expected exception' + message);
  36500. }
  36501. if (!shouldThrow && expectedException(actual, expected)) {
  36502. fail(actual, expected, 'Got unwanted exception' + message);
  36503. }
  36504. if ((shouldThrow && actual && expected &&
  36505. !expectedException(actual, expected)) || (!shouldThrow && actual)) {
  36506. throw actual;
  36507. }
  36508. }
  36509. // 11. Expected to throw an error:
  36510. // assert.throws(block, Error_opt, message_opt);
  36511. assert.throws = function(block, /*optional*/error, /*optional*/message) {
  36512. _throws.apply(this, [true].concat(pSlice.call(arguments)));
  36513. };
  36514. // EXTENSION! This is annoying to write outside this module.
  36515. assert.doesNotThrow = function(block, /*optional*/message) {
  36516. _throws.apply(this, [false].concat(pSlice.call(arguments)));
  36517. };
  36518. assert.ifError = function(err) { if (err) {throw err;}};
  36519. var objectKeys = Object.keys || function (obj) {
  36520. var keys = [];
  36521. for (var key in obj) {
  36522. if (hasOwn.call(obj, key)) keys.push(key);
  36523. }
  36524. return keys;
  36525. };
  36526. /***/ },
  36527. /* 54 */
  36528. /***/ function(module, exports, __webpack_require__) {
  36529. // Copyright Joyent, Inc. and other Node contributors.
  36530. //
  36531. // Permission is hereby granted, free of charge, to any person obtaining a
  36532. // copy of this software and associated documentation files (the
  36533. // "Software"), to deal in the Software without restriction, including
  36534. // without limitation the rights to use, copy, modify, merge, publish,
  36535. // distribute, sublicense, and/or sell copies of the Software, and to permit
  36536. // persons to whom the Software is furnished to do so, subject to the
  36537. // following conditions:
  36538. //
  36539. // The above copyright notice and this permission notice shall be included
  36540. // in all copies or substantial portions of the Software.
  36541. //
  36542. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  36543. // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  36544. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
  36545. // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  36546. // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  36547. // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  36548. // USE OR OTHER DEALINGS IN THE SOFTWARE.
  36549. function EventEmitter() {
  36550. this._events = this._events || {};
  36551. this._maxListeners = this._maxListeners || undefined;
  36552. }
  36553. module.exports = EventEmitter;
  36554. // Backwards-compat with node 0.10.x
  36555. EventEmitter.EventEmitter = EventEmitter;
  36556. EventEmitter.prototype._events = undefined;
  36557. EventEmitter.prototype._maxListeners = undefined;
  36558. // By default EventEmitters will print a warning if more than 10 listeners are
  36559. // added to it. This is a useful default which helps finding memory leaks.
  36560. EventEmitter.defaultMaxListeners = 10;
  36561. // Obviously not all Emitters should be limited to 10. This function allows
  36562. // that to be increased. Set to zero for unlimited.
  36563. EventEmitter.prototype.setMaxListeners = function(n) {
  36564. if (!isNumber(n) || n < 0 || isNaN(n))
  36565. throw TypeError('n must be a positive number');
  36566. this._maxListeners = n;
  36567. return this;
  36568. };
  36569. EventEmitter.prototype.emit = function(type) {
  36570. var er, handler, len, args, i, listeners;
  36571. if (!this._events)
  36572. this._events = {};
  36573. // If there is no 'error' event listener then throw.
  36574. if (type === 'error') {
  36575. if (!this._events.error ||
  36576. (isObject(this._events.error) && !this._events.error.length)) {
  36577. er = arguments[1];
  36578. if (er instanceof Error) {
  36579. throw er; // Unhandled 'error' event
  36580. }
  36581. throw TypeError('Uncaught, unspecified "error" event.');
  36582. }
  36583. }
  36584. handler = this._events[type];
  36585. if (isUndefined(handler))
  36586. return false;
  36587. if (isFunction(handler)) {
  36588. switch (arguments.length) {
  36589. // fast cases
  36590. case 1:
  36591. handler.call(this);
  36592. break;
  36593. case 2:
  36594. handler.call(this, arguments[1]);
  36595. break;
  36596. case 3:
  36597. handler.call(this, arguments[1], arguments[2]);
  36598. break;
  36599. // slower
  36600. default:
  36601. len = arguments.length;
  36602. args = new Array(len - 1);
  36603. for (i = 1; i < len; i++)
  36604. args[i - 1] = arguments[i];
  36605. handler.apply(this, args);
  36606. }
  36607. } else if (isObject(handler)) {
  36608. len = arguments.length;
  36609. args = new Array(len - 1);
  36610. for (i = 1; i < len; i++)
  36611. args[i - 1] = arguments[i];
  36612. listeners = handler.slice();
  36613. len = listeners.length;
  36614. for (i = 0; i < len; i++)
  36615. listeners[i].apply(this, args);
  36616. }
  36617. return true;
  36618. };
  36619. EventEmitter.prototype.addListener = function(type, listener) {
  36620. var m;
  36621. if (!isFunction(listener))
  36622. throw TypeError('listener must be a function');
  36623. if (!this._events)
  36624. this._events = {};
  36625. // To avoid recursion in the case that type === "newListener"! Before
  36626. // adding it to the listeners, first emit "newListener".
  36627. if (this._events.newListener)
  36628. this.emit('newListener', type,
  36629. isFunction(listener.listener) ?
  36630. listener.listener : listener);
  36631. if (!this._events[type])
  36632. // Optimize the case of one listener. Don't need the extra array object.
  36633. this._events[type] = listener;
  36634. else if (isObject(this._events[type]))
  36635. // If we've already got an array, just append.
  36636. this._events[type].push(listener);
  36637. else
  36638. // Adding the second element, need to change to array.
  36639. this._events[type] = [this._events[type], listener];
  36640. // Check for listener leak
  36641. if (isObject(this._events[type]) && !this._events[type].warned) {
  36642. var m;
  36643. if (!isUndefined(this._maxListeners)) {
  36644. m = this._maxListeners;
  36645. } else {
  36646. m = EventEmitter.defaultMaxListeners;
  36647. }
  36648. if (m && m > 0 && this._events[type].length > m) {
  36649. this._events[type].warned = true;
  36650. console.error('(node) warning: possible EventEmitter memory ' +
  36651. 'leak detected. %d listeners added. ' +
  36652. 'Use emitter.setMaxListeners() to increase limit.',
  36653. this._events[type].length);
  36654. if (typeof console.trace === 'function') {
  36655. // not supported in IE 10
  36656. console.trace();
  36657. }
  36658. }
  36659. }
  36660. return this;
  36661. };
  36662. EventEmitter.prototype.on = EventEmitter.prototype.addListener;
  36663. EventEmitter.prototype.once = function(type, listener) {
  36664. if (!isFunction(listener))
  36665. throw TypeError('listener must be a function');
  36666. var fired = false;
  36667. function g() {
  36668. this.removeListener(type, g);
  36669. if (!fired) {
  36670. fired = true;
  36671. listener.apply(this, arguments);
  36672. }
  36673. }
  36674. g.listener = listener;
  36675. this.on(type, g);
  36676. return this;
  36677. };
  36678. // emits a 'removeListener' event iff the listener was removed
  36679. EventEmitter.prototype.removeListener = function(type, listener) {
  36680. var list, position, length, i;
  36681. if (!isFunction(listener))
  36682. throw TypeError('listener must be a function');
  36683. if (!this._events || !this._events[type])
  36684. return this;
  36685. list = this._events[type];
  36686. length = list.length;
  36687. position = -1;
  36688. if (list === listener ||
  36689. (isFunction(list.listener) && list.listener === listener)) {
  36690. delete this._events[type];
  36691. if (this._events.removeListener)
  36692. this.emit('removeListener', type, listener);
  36693. } else if (isObject(list)) {
  36694. for (i = length; i-- > 0;) {
  36695. if (list[i] === listener ||
  36696. (list[i].listener && list[i].listener === listener)) {
  36697. position = i;
  36698. break;
  36699. }
  36700. }
  36701. if (position < 0)
  36702. return this;
  36703. if (list.length === 1) {
  36704. list.length = 0;
  36705. delete this._events[type];
  36706. } else {
  36707. list.splice(position, 1);
  36708. }
  36709. if (this._events.removeListener)
  36710. this.emit('removeListener', type, listener);
  36711. }
  36712. return this;
  36713. };
  36714. EventEmitter.prototype.removeAllListeners = function(type) {
  36715. var key, listeners;
  36716. if (!this._events)
  36717. return this;
  36718. // not listening for removeListener, no need to emit
  36719. if (!this._events.removeListener) {
  36720. if (arguments.length === 0)
  36721. this._events = {};
  36722. else if (this._events[type])
  36723. delete this._events[type];
  36724. return this;
  36725. }
  36726. // emit removeListener for all listeners on all events
  36727. if (arguments.length === 0) {
  36728. for (key in this._events) {
  36729. if (key === 'removeListener') continue;
  36730. this.removeAllListeners(key);
  36731. }
  36732. this.removeAllListeners('removeListener');
  36733. this._events = {};
  36734. return this;
  36735. }
  36736. listeners = this._events[type];
  36737. if (isFunction(listeners)) {
  36738. this.removeListener(type, listeners);
  36739. } else {
  36740. // LIFO order
  36741. while (listeners.length)
  36742. this.removeListener(type, listeners[listeners.length - 1]);
  36743. }
  36744. delete this._events[type];
  36745. return this;
  36746. };
  36747. EventEmitter.prototype.listeners = function(type) {
  36748. var ret;
  36749. if (!this._events || !this._events[type])
  36750. ret = [];
  36751. else if (isFunction(this._events[type]))
  36752. ret = [this._events[type]];
  36753. else
  36754. ret = this._events[type].slice();
  36755. return ret;
  36756. };
  36757. EventEmitter.listenerCount = function(emitter, type) {
  36758. var ret;
  36759. if (!emitter._events || !emitter._events[type])
  36760. ret = 0;
  36761. else if (isFunction(emitter._events[type]))
  36762. ret = 1;
  36763. else
  36764. ret = emitter._events[type].length;
  36765. return ret;
  36766. };
  36767. function isFunction(arg) {
  36768. return typeof arg === 'function';
  36769. }
  36770. function isNumber(arg) {
  36771. return typeof arg === 'number';
  36772. }
  36773. function isObject(arg) {
  36774. return typeof arg === 'object' && arg !== null;
  36775. }
  36776. function isUndefined(arg) {
  36777. return arg === void 0;
  36778. }
  36779. /***/ },
  36780. /* 55 */
  36781. /***/ function(module, exports, __webpack_require__) {
  36782. module.exports = __webpack_require__(70)
  36783. /***/ },
  36784. /* 56 */
  36785. /***/ function(module, exports, __webpack_require__) {
  36786. exports = module.exports = __webpack_require__(71);
  36787. exports.Stream = __webpack_require__(46);
  36788. exports.Readable = exports;
  36789. exports.Writable = __webpack_require__(67);
  36790. exports.Duplex = __webpack_require__(69);
  36791. exports.Transform = __webpack_require__(70);
  36792. exports.PassThrough = __webpack_require__(68);
  36793. /***/ },
  36794. /* 57 */
  36795. /***/ function(module, exports, __webpack_require__) {
  36796. module.exports = __webpack_require__(67)
  36797. /***/ },
  36798. /* 58 */
  36799. /***/ function(module, exports, __webpack_require__) {
  36800. module.exports = __webpack_require__(69)
  36801. /***/ },
  36802. /* 59 */
  36803. /***/ function(module, exports, __webpack_require__) {
  36804. module.exports = __webpack_require__(68)
  36805. /***/ },
  36806. /* 60 */
  36807. /***/ function(module, exports, __webpack_require__) {
  36808. /* WEBPACK VAR INJECTION */(function(global, process) {// Copyright Joyent, Inc. and other Node contributors.
  36809. //
  36810. // Permission is hereby granted, free of charge, to any person obtaining a
  36811. // copy of this software and associated documentation files (the
  36812. // "Software"), to deal in the Software without restriction, including
  36813. // without limitation the rights to use, copy, modify, merge, publish,
  36814. // distribute, sublicense, and/or sell copies of the Software, and to permit
  36815. // persons to whom the Software is furnished to do so, subject to the
  36816. // following conditions:
  36817. //
  36818. // The above copyright notice and this permission notice shall be included
  36819. // in all copies or substantial portions of the Software.
  36820. //
  36821. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  36822. // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  36823. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
  36824. // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  36825. // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  36826. // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  36827. // USE OR OTHER DEALINGS IN THE SOFTWARE.
  36828. var formatRegExp = /%[sdj%]/g;
  36829. exports.format = function(f) {
  36830. if (!isString(f)) {
  36831. var objects = [];
  36832. for (var i = 0; i < arguments.length; i++) {
  36833. objects.push(inspect(arguments[i]));
  36834. }
  36835. return objects.join(' ');
  36836. }
  36837. var i = 1;
  36838. var args = arguments;
  36839. var len = args.length;
  36840. var str = String(f).replace(formatRegExp, function(x) {
  36841. if (x === '%%') return '%';
  36842. if (i >= len) return x;
  36843. switch (x) {
  36844. case '%s': return String(args[i++]);
  36845. case '%d': return Number(args[i++]);
  36846. case '%j':
  36847. try {
  36848. return JSON.stringify(args[i++]);
  36849. } catch (_) {
  36850. return '[Circular]';
  36851. }
  36852. default:
  36853. return x;
  36854. }
  36855. });
  36856. for (var x = args[i]; i < len; x = args[++i]) {
  36857. if (isNull(x) || !isObject(x)) {
  36858. str += ' ' + x;
  36859. } else {
  36860. str += ' ' + inspect(x);
  36861. }
  36862. }
  36863. return str;
  36864. };
  36865. // Mark that a method should not be used.
  36866. // Returns a modified function which warns once by default.
  36867. // If --no-deprecation is set, then it is a no-op.
  36868. exports.deprecate = function(fn, msg) {
  36869. // Allow for deprecating things in the process of starting up.
  36870. if (isUndefined(global.process)) {
  36871. return function() {
  36872. return exports.deprecate(fn, msg).apply(this, arguments);
  36873. };
  36874. }
  36875. if (process.noDeprecation === true) {
  36876. return fn;
  36877. }
  36878. var warned = false;
  36879. function deprecated() {
  36880. if (!warned) {
  36881. if (process.throwDeprecation) {
  36882. throw new Error(msg);
  36883. } else if (process.traceDeprecation) {
  36884. console.trace(msg);
  36885. } else {
  36886. console.error(msg);
  36887. }
  36888. warned = true;
  36889. }
  36890. return fn.apply(this, arguments);
  36891. }
  36892. return deprecated;
  36893. };
  36894. var debugs = {};
  36895. var debugEnviron;
  36896. exports.debuglog = function(set) {
  36897. if (isUndefined(debugEnviron))
  36898. debugEnviron = process.env.NODE_DEBUG || '';
  36899. set = set.toUpperCase();
  36900. if (!debugs[set]) {
  36901. if (new RegExp('\\b' + set + '\\b', 'i').test(debugEnviron)) {
  36902. var pid = process.pid;
  36903. debugs[set] = function() {
  36904. var msg = exports.format.apply(exports, arguments);
  36905. console.error('%s %d: %s', set, pid, msg);
  36906. };
  36907. } else {
  36908. debugs[set] = function() {};
  36909. }
  36910. }
  36911. return debugs[set];
  36912. };
  36913. /**
  36914. * Echos the value of a value. Trys to print the value out
  36915. * in the best way possible given the different types.
  36916. *
  36917. * @param {Object} obj The object to print out.
  36918. * @param {Object} opts Optional options object that alters the output.
  36919. */
  36920. /* legacy: obj, showHidden, depth, colors*/
  36921. function inspect(obj, opts) {
  36922. // default options
  36923. var ctx = {
  36924. seen: [],
  36925. stylize: stylizeNoColor
  36926. };
  36927. // legacy...
  36928. if (arguments.length >= 3) ctx.depth = arguments[2];
  36929. if (arguments.length >= 4) ctx.colors = arguments[3];
  36930. if (isBoolean(opts)) {
  36931. // legacy...
  36932. ctx.showHidden = opts;
  36933. } else if (opts) {
  36934. // got an "options" object
  36935. exports._extend(ctx, opts);
  36936. }
  36937. // set default options
  36938. if (isUndefined(ctx.showHidden)) ctx.showHidden = false;
  36939. if (isUndefined(ctx.depth)) ctx.depth = 2;
  36940. if (isUndefined(ctx.colors)) ctx.colors = false;
  36941. if (isUndefined(ctx.customInspect)) ctx.customInspect = true;
  36942. if (ctx.colors) ctx.stylize = stylizeWithColor;
  36943. return formatValue(ctx, obj, ctx.depth);
  36944. }
  36945. exports.inspect = inspect;
  36946. // http://en.wikipedia.org/wiki/ANSI_escape_code#graphics
  36947. inspect.colors = {
  36948. 'bold' : [1, 22],
  36949. 'italic' : [3, 23],
  36950. 'underline' : [4, 24],
  36951. 'inverse' : [7, 27],
  36952. 'white' : [37, 39],
  36953. 'grey' : [90, 39],
  36954. 'black' : [30, 39],
  36955. 'blue' : [34, 39],
  36956. 'cyan' : [36, 39],
  36957. 'green' : [32, 39],
  36958. 'magenta' : [35, 39],
  36959. 'red' : [31, 39],
  36960. 'yellow' : [33, 39]
  36961. };
  36962. // Don't use 'blue' not visible on cmd.exe
  36963. inspect.styles = {
  36964. 'special': 'cyan',
  36965. 'number': 'yellow',
  36966. 'boolean': 'yellow',
  36967. 'undefined': 'grey',
  36968. 'null': 'bold',
  36969. 'string': 'green',
  36970. 'date': 'magenta',
  36971. // "name": intentionally not styling
  36972. 'regexp': 'red'
  36973. };
  36974. function stylizeWithColor(str, styleType) {
  36975. var style = inspect.styles[styleType];
  36976. if (style) {
  36977. return '\u001b[' + inspect.colors[style][0] + 'm' + str +
  36978. '\u001b[' + inspect.colors[style][1] + 'm';
  36979. } else {
  36980. return str;
  36981. }
  36982. }
  36983. function stylizeNoColor(str, styleType) {
  36984. return str;
  36985. }
  36986. function arrayToHash(array) {
  36987. var hash = {};
  36988. array.forEach(function(val, idx) {
  36989. hash[val] = true;
  36990. });
  36991. return hash;
  36992. }
  36993. function formatValue(ctx, value, recurseTimes) {
  36994. // Provide a hook for user-specified inspect functions.
  36995. // Check that value is an object with an inspect function on it
  36996. if (ctx.customInspect &&
  36997. value &&
  36998. isFunction(value.inspect) &&
  36999. // Filter out the util module, it's inspect function is special
  37000. value.inspect !== exports.inspect &&
  37001. // Also filter out any prototype objects using the circular check.
  37002. !(value.constructor && value.constructor.prototype === value)) {
  37003. var ret = value.inspect(recurseTimes, ctx);
  37004. if (!isString(ret)) {
  37005. ret = formatValue(ctx, ret, recurseTimes);
  37006. }
  37007. return ret;
  37008. }
  37009. // Primitive types cannot have properties
  37010. var primitive = formatPrimitive(ctx, value);
  37011. if (primitive) {
  37012. return primitive;
  37013. }
  37014. // Look up the keys of the object.
  37015. var keys = Object.keys(value);
  37016. var visibleKeys = arrayToHash(keys);
  37017. if (ctx.showHidden) {
  37018. keys = Object.getOwnPropertyNames(value);
  37019. }
  37020. // IE doesn't make error fields non-enumerable
  37021. // http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx
  37022. if (isError(value)
  37023. && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) {
  37024. return formatError(value);
  37025. }
  37026. // Some type of object without properties can be shortcutted.
  37027. if (keys.length === 0) {
  37028. if (isFunction(value)) {
  37029. var name = value.name ? ': ' + value.name : '';
  37030. return ctx.stylize('[Function' + name + ']', 'special');
  37031. }
  37032. if (isRegExp(value)) {
  37033. return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
  37034. }
  37035. if (isDate(value)) {
  37036. return ctx.stylize(Date.prototype.toString.call(value), 'date');
  37037. }
  37038. if (isError(value)) {
  37039. return formatError(value);
  37040. }
  37041. }
  37042. var base = '', array = false, braces = ['{', '}'];
  37043. // Make Array say that they are Array
  37044. if (isArray(value)) {
  37045. array = true;
  37046. braces = ['[', ']'];
  37047. }
  37048. // Make functions say that they are functions
  37049. if (isFunction(value)) {
  37050. var n = value.name ? ': ' + value.name : '';
  37051. base = ' [Function' + n + ']';
  37052. }
  37053. // Make RegExps say that they are RegExps
  37054. if (isRegExp(value)) {
  37055. base = ' ' + RegExp.prototype.toString.call(value);
  37056. }
  37057. // Make dates with properties first say the date
  37058. if (isDate(value)) {
  37059. base = ' ' + Date.prototype.toUTCString.call(value);
  37060. }
  37061. // Make error with message first say the error
  37062. if (isError(value)) {
  37063. base = ' ' + formatError(value);
  37064. }
  37065. if (keys.length === 0 && (!array || value.length == 0)) {
  37066. return braces[0] + base + braces[1];
  37067. }
  37068. if (recurseTimes < 0) {
  37069. if (isRegExp(value)) {
  37070. return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
  37071. } else {
  37072. return ctx.stylize('[Object]', 'special');
  37073. }
  37074. }
  37075. ctx.seen.push(value);
  37076. var output;
  37077. if (array) {
  37078. output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);
  37079. } else {
  37080. output = keys.map(function(key) {
  37081. return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);
  37082. });
  37083. }
  37084. ctx.seen.pop();
  37085. return reduceToSingleString(output, base, braces);
  37086. }
  37087. function formatPrimitive(ctx, value) {
  37088. if (isUndefined(value))
  37089. return ctx.stylize('undefined', 'undefined');
  37090. if (isString(value)) {
  37091. var simple = '\'' + JSON.stringify(value).replace(/^"|"$/g, '')
  37092. .replace(/'/g, "\\'")
  37093. .replace(/\\"/g, '"') + '\'';
  37094. return ctx.stylize(simple, 'string');
  37095. }
  37096. if (isNumber(value))
  37097. return ctx.stylize('' + value, 'number');
  37098. if (isBoolean(value))
  37099. return ctx.stylize('' + value, 'boolean');
  37100. // For some reason typeof null is "object", so special case here.
  37101. if (isNull(value))
  37102. return ctx.stylize('null', 'null');
  37103. }
  37104. function formatError(value) {
  37105. return '[' + Error.prototype.toString.call(value) + ']';
  37106. }
  37107. function formatArray(ctx, value, recurseTimes, visibleKeys, keys) {
  37108. var output = [];
  37109. for (var i = 0, l = value.length; i < l; ++i) {
  37110. if (hasOwnProperty(value, String(i))) {
  37111. output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,
  37112. String(i), true));
  37113. } else {
  37114. output.push('');
  37115. }
  37116. }
  37117. keys.forEach(function(key) {
  37118. if (!key.match(/^\d+$/)) {
  37119. output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,
  37120. key, true));
  37121. }
  37122. });
  37123. return output;
  37124. }
  37125. function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {
  37126. var name, str, desc;
  37127. desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };
  37128. if (desc.get) {
  37129. if (desc.set) {
  37130. str = ctx.stylize('[Getter/Setter]', 'special');
  37131. } else {
  37132. str = ctx.stylize('[Getter]', 'special');
  37133. }
  37134. } else {
  37135. if (desc.set) {
  37136. str = ctx.stylize('[Setter]', 'special');
  37137. }
  37138. }
  37139. if (!hasOwnProperty(visibleKeys, key)) {
  37140. name = '[' + key + ']';
  37141. }
  37142. if (!str) {
  37143. if (ctx.seen.indexOf(desc.value) < 0) {
  37144. if (isNull(recurseTimes)) {
  37145. str = formatValue(ctx, desc.value, null);
  37146. } else {
  37147. str = formatValue(ctx, desc.value, recurseTimes - 1);
  37148. }
  37149. if (str.indexOf('\n') > -1) {
  37150. if (array) {
  37151. str = str.split('\n').map(function(line) {
  37152. return ' ' + line;
  37153. }).join('\n').substr(2);
  37154. } else {
  37155. str = '\n' + str.split('\n').map(function(line) {
  37156. return ' ' + line;
  37157. }).join('\n');
  37158. }
  37159. }
  37160. } else {
  37161. str = ctx.stylize('[Circular]', 'special');
  37162. }
  37163. }
  37164. if (isUndefined(name)) {
  37165. if (array && key.match(/^\d+$/)) {
  37166. return str;
  37167. }
  37168. name = JSON.stringify('' + key);
  37169. if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) {
  37170. name = name.substr(1, name.length - 2);
  37171. name = ctx.stylize(name, 'name');
  37172. } else {
  37173. name = name.replace(/'/g, "\\'")
  37174. .replace(/\\"/g, '"')
  37175. .replace(/(^"|"$)/g, "'");
  37176. name = ctx.stylize(name, 'string');
  37177. }
  37178. }
  37179. return name + ': ' + str;
  37180. }
  37181. function reduceToSingleString(output, base, braces) {
  37182. var numLinesEst = 0;
  37183. var length = output.reduce(function(prev, cur) {
  37184. numLinesEst++;
  37185. if (cur.indexOf('\n') >= 0) numLinesEst++;
  37186. return prev + cur.replace(/\u001b\[\d\d?m/g, '').length + 1;
  37187. }, 0);
  37188. if (length > 60) {
  37189. return braces[0] +
  37190. (base === '' ? '' : base + '\n ') +
  37191. ' ' +
  37192. output.join(',\n ') +
  37193. ' ' +
  37194. braces[1];
  37195. }
  37196. return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];
  37197. }
  37198. // NOTE: These type checking functions intentionally don't use `instanceof`
  37199. // because it is fragile and can be easily faked with `Object.create()`.
  37200. function isArray(ar) {
  37201. return Array.isArray(ar);
  37202. }
  37203. exports.isArray = isArray;
  37204. function isBoolean(arg) {
  37205. return typeof arg === 'boolean';
  37206. }
  37207. exports.isBoolean = isBoolean;
  37208. function isNull(arg) {
  37209. return arg === null;
  37210. }
  37211. exports.isNull = isNull;
  37212. function isNullOrUndefined(arg) {
  37213. return arg == null;
  37214. }
  37215. exports.isNullOrUndefined = isNullOrUndefined;
  37216. function isNumber(arg) {
  37217. return typeof arg === 'number';
  37218. }
  37219. exports.isNumber = isNumber;
  37220. function isString(arg) {
  37221. return typeof arg === 'string';
  37222. }
  37223. exports.isString = isString;
  37224. function isSymbol(arg) {
  37225. return typeof arg === 'symbol';
  37226. }
  37227. exports.isSymbol = isSymbol;
  37228. function isUndefined(arg) {
  37229. return arg === void 0;
  37230. }
  37231. exports.isUndefined = isUndefined;
  37232. function isRegExp(re) {
  37233. return isObject(re) && objectToString(re) === '[object RegExp]';
  37234. }
  37235. exports.isRegExp = isRegExp;
  37236. function isObject(arg) {
  37237. return typeof arg === 'object' && arg !== null;
  37238. }
  37239. exports.isObject = isObject;
  37240. function isDate(d) {
  37241. return isObject(d) && objectToString(d) === '[object Date]';
  37242. }
  37243. exports.isDate = isDate;
  37244. function isError(e) {
  37245. return isObject(e) &&
  37246. (objectToString(e) === '[object Error]' || e instanceof Error);
  37247. }
  37248. exports.isError = isError;
  37249. function isFunction(arg) {
  37250. return typeof arg === 'function';
  37251. }
  37252. exports.isFunction = isFunction;
  37253. function isPrimitive(arg) {
  37254. return arg === null ||
  37255. typeof arg === 'boolean' ||
  37256. typeof arg === 'number' ||
  37257. typeof arg === 'string' ||
  37258. typeof arg === 'symbol' || // ES6 symbol
  37259. typeof arg === 'undefined';
  37260. }
  37261. exports.isPrimitive = isPrimitive;
  37262. exports.isBuffer = __webpack_require__(72);
  37263. function objectToString(o) {
  37264. return Object.prototype.toString.call(o);
  37265. }
  37266. function pad(n) {
  37267. return n < 10 ? '0' + n.toString(10) : n.toString(10);
  37268. }
  37269. var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep',
  37270. 'Oct', 'Nov', 'Dec'];
  37271. // 26 Feb 16:19:34
  37272. function timestamp() {
  37273. var d = new Date();
  37274. var time = [pad(d.getHours()),
  37275. pad(d.getMinutes()),
  37276. pad(d.getSeconds())].join(':');
  37277. return [d.getDate(), months[d.getMonth()], time].join(' ');
  37278. }
  37279. // log is just a thin wrapper to console.log that prepends a timestamp
  37280. exports.log = function() {
  37281. console.log('%s - %s', timestamp(), exports.format.apply(exports, arguments));
  37282. };
  37283. /**
  37284. * Inherit the prototype methods from one constructor into another.
  37285. *
  37286. * The Function.prototype.inherits from lang.js rewritten as a standalone
  37287. * function (not on Function.prototype). NOTE: If this file is to be loaded
  37288. * during bootstrapping this function needs to be rewritten using some native
  37289. * functions as prototype setup using normal JavaScript does not work as
  37290. * expected during bootstrapping (see mirror.js in r114903).
  37291. *
  37292. * @param {function} ctor Constructor function which needs to inherit the
  37293. * prototype.
  37294. * @param {function} superCtor Constructor function to inherit prototype from.
  37295. */
  37296. exports.inherits = __webpack_require__(94);
  37297. exports._extend = function(origin, add) {
  37298. // Don't do anything if add isn't an object
  37299. if (!add || !isObject(add)) return origin;
  37300. var keys = Object.keys(add);
  37301. var i = keys.length;
  37302. while (i--) {
  37303. origin[keys[i]] = add[keys[i]];
  37304. }
  37305. return origin;
  37306. };
  37307. function hasOwnProperty(obj, prop) {
  37308. return Object.prototype.hasOwnProperty.call(obj, prop);
  37309. }
  37310. /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()), __webpack_require__(61)))
  37311. /***/ },
  37312. /* 61 */
  37313. /***/ function(module, exports, __webpack_require__) {
  37314. // shim for using process in browser
  37315. var process = module.exports = {};
  37316. var queue = [];
  37317. var draining = false;
  37318. function drainQueue() {
  37319. if (draining) {
  37320. return;
  37321. }
  37322. draining = true;
  37323. var currentQueue;
  37324. var len = queue.length;
  37325. while(len) {
  37326. currentQueue = queue;
  37327. queue = [];
  37328. var i = -1;
  37329. while (++i < len) {
  37330. currentQueue[i]();
  37331. }
  37332. len = queue.length;
  37333. }
  37334. draining = false;
  37335. }
  37336. process.nextTick = function (fun) {
  37337. queue.push(fun);
  37338. if (!draining) {
  37339. setTimeout(drainQueue, 0);
  37340. }
  37341. };
  37342. process.title = 'browser';
  37343. process.browser = true;
  37344. process.env = {};
  37345. process.argv = [];
  37346. process.version = ''; // empty string to avoid regexp issues
  37347. process.versions = {};
  37348. function noop() {}
  37349. process.on = noop;
  37350. process.addListener = noop;
  37351. process.once = noop;
  37352. process.off = noop;
  37353. process.removeListener = noop;
  37354. process.removeAllListeners = noop;
  37355. process.emit = noop;
  37356. process.binding = function (name) {
  37357. throw new Error('process.binding is not supported');
  37358. };
  37359. // TODO(shtylman)
  37360. process.cwd = function () { return '/' };
  37361. process.chdir = function (dir) {
  37362. throw new Error('process.chdir is not supported');
  37363. };
  37364. process.umask = function() { return 0; };
  37365. /***/ },
  37366. /* 62 */
  37367. /***/ function(module, exports, __webpack_require__) {
  37368. if (typeof Object.create === 'function') {
  37369. // implementation from standard node.js 'util' module
  37370. module.exports = function inherits(ctor, superCtor) {
  37371. ctor.super_ = superCtor
  37372. ctor.prototype = Object.create(superCtor.prototype, {
  37373. constructor: {
  37374. value: ctor,
  37375. enumerable: false,
  37376. writable: true,
  37377. configurable: true
  37378. }
  37379. });
  37380. };
  37381. } else {
  37382. // old school shim for old browsers
  37383. module.exports = function inherits(ctor, superCtor) {
  37384. ctor.super_ = superCtor
  37385. var TempCtor = function () {}
  37386. TempCtor.prototype = superCtor.prototype
  37387. ctor.prototype = new TempCtor()
  37388. ctor.prototype.constructor = ctor
  37389. }
  37390. }
  37391. /***/ },
  37392. /* 63 */
  37393. /***/ function(module, exports, __webpack_require__) {
  37394. // Generated by CoffeeScript 1.7.1
  37395. (function() {
  37396. var AFMFont, fs;
  37397. fs = __webpack_require__(10);
  37398. AFMFont = (function() {
  37399. var WIN_ANSI_MAP, characters;
  37400. AFMFont.open = function(filename) {
  37401. return new AFMFont(fs.readFileSync(filename, 'utf8'));
  37402. };
  37403. function AFMFont(contents) {
  37404. var e, i;
  37405. this.contents = contents;
  37406. this.attributes = {};
  37407. this.glyphWidths = {};
  37408. this.boundingBoxes = {};
  37409. this.parse();
  37410. this.charWidths = (function() {
  37411. var _i, _results;
  37412. _results = [];
  37413. for (i = _i = 0; _i <= 255; i = ++_i) {
  37414. _results.push(this.glyphWidths[characters[i]]);
  37415. }
  37416. return _results;
  37417. }).call(this);
  37418. this.bbox = (function() {
  37419. var _i, _len, _ref, _results;
  37420. _ref = this.attributes['FontBBox'].split(/\s+/);
  37421. _results = [];
  37422. for (_i = 0, _len = _ref.length; _i < _len; _i++) {
  37423. e = _ref[_i];
  37424. _results.push(+e);
  37425. }
  37426. return _results;
  37427. }).call(this);
  37428. this.ascender = +(this.attributes['Ascender'] || 0);
  37429. this.decender = +(this.attributes['Descender'] || 0);
  37430. this.lineGap = (this.bbox[3] - this.bbox[1]) - (this.ascender - this.decender);
  37431. }
  37432. AFMFont.prototype.parse = function() {
  37433. var a, key, line, match, name, section, value, _i, _len, _ref;
  37434. section = '';
  37435. _ref = this.contents.split('\n');
  37436. for (_i = 0, _len = _ref.length; _i < _len; _i++) {
  37437. line = _ref[_i];
  37438. if (match = line.match(/^Start(\w+)/)) {
  37439. section = match[1];
  37440. continue;
  37441. } else if (match = line.match(/^End(\w+)/)) {
  37442. section = '';
  37443. continue;
  37444. }
  37445. switch (section) {
  37446. case 'FontMetrics':
  37447. match = line.match(/(^\w+)\s+(.*)/);
  37448. key = match[1];
  37449. value = match[2];
  37450. if (a = this.attributes[key]) {
  37451. if (!Array.isArray(a)) {
  37452. a = this.attributes[key] = [a];
  37453. }
  37454. a.push(value);
  37455. } else {
  37456. this.attributes[key] = value;
  37457. }
  37458. break;
  37459. case 'CharMetrics':
  37460. if (!/^CH?\s/.test(line)) {
  37461. continue;
  37462. }
  37463. name = line.match(/\bN\s+(\.?\w+)\s*;/)[1];
  37464. this.glyphWidths[name] = +line.match(/\bWX\s+(\d+)\s*;/)[1];
  37465. }
  37466. }
  37467. };
  37468. WIN_ANSI_MAP = {
  37469. 402: 131,
  37470. 8211: 150,
  37471. 8212: 151,
  37472. 8216: 145,
  37473. 8217: 146,
  37474. 8218: 130,
  37475. 8220: 147,
  37476. 8221: 148,
  37477. 8222: 132,
  37478. 8224: 134,
  37479. 8225: 135,
  37480. 8226: 149,
  37481. 8230: 133,
  37482. 8364: 128,
  37483. 8240: 137,
  37484. 8249: 139,
  37485. 8250: 155,
  37486. 710: 136,
  37487. 8482: 153,
  37488. 338: 140,
  37489. 339: 156,
  37490. 732: 152,
  37491. 352: 138,
  37492. 353: 154,
  37493. 376: 159,
  37494. 381: 142,
  37495. 382: 158
  37496. };
  37497. AFMFont.prototype.encodeText = function(text) {
  37498. var char, i, string, _i, _ref;
  37499. string = '';
  37500. for (i = _i = 0, _ref = text.length; 0 <= _ref ? _i < _ref : _i > _ref; i = 0 <= _ref ? ++_i : --_i) {
  37501. char = text.charCodeAt(i);
  37502. char = WIN_ANSI_MAP[char] || char;
  37503. string += String.fromCharCode(char);
  37504. }
  37505. return string;
  37506. };
  37507. AFMFont.prototype.characterToGlyph = function(character) {
  37508. return characters[WIN_ANSI_MAP[character] || character];
  37509. };
  37510. AFMFont.prototype.widthOfGlyph = function(glyph) {
  37511. return this.glyphWidths[glyph];
  37512. };
  37513. characters = '.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n\nspace exclam quotedbl numbersign\ndollar percent ampersand quotesingle\nparenleft parenright asterisk plus\ncomma hyphen period slash\nzero one two three\nfour five six seven\neight nine colon semicolon\nless equal greater question\n\nat A B C\nD E F G\nH I J K\nL M N O\nP Q R S\nT U V W\nX Y Z bracketleft\nbackslash bracketright asciicircum underscore\n\ngrave a b c\nd e f g\nh i j k\nl m n o\np q r s\nt u v w\nx y z braceleft\nbar braceright asciitilde .notdef\n\nEuro .notdef quotesinglbase florin\nquotedblbase ellipsis dagger daggerdbl\ncircumflex perthousand Scaron guilsinglleft\nOE .notdef Zcaron .notdef\n.notdef quoteleft quoteright quotedblleft\nquotedblright bullet endash emdash\ntilde trademark scaron guilsinglright\noe .notdef zcaron ydieresis\n\nspace exclamdown cent sterling\ncurrency yen brokenbar section\ndieresis copyright ordfeminine guillemotleft\nlogicalnot hyphen registered macron\ndegree plusminus twosuperior threesuperior\nacute mu paragraph periodcentered\ncedilla onesuperior ordmasculine guillemotright\nonequarter onehalf threequarters questiondown\n\nAgrave Aacute Acircumflex Atilde\nAdieresis Aring AE Ccedilla\nEgrave Eacute Ecircumflex Edieresis\nIgrave Iacute Icircumflex Idieresis\nEth Ntilde Ograve Oacute\nOcircumflex Otilde Odieresis multiply\nOslash Ugrave Uacute Ucircumflex\nUdieresis Yacute Thorn germandbls\n\nagrave aacute acircumflex atilde\nadieresis aring ae ccedilla\negrave eacute ecircumflex edieresis\nigrave iacute icircumflex idieresis\neth ntilde ograve oacute\nocircumflex otilde odieresis divide\noslash ugrave uacute ucircumflex\nudieresis yacute thorn ydieresis'.split(/\s+/);
  37514. return AFMFont;
  37515. })();
  37516. module.exports = AFMFont;
  37517. }).call(this);
  37518. /***/ },
  37519. /* 64 */
  37520. /***/ function(module, exports, __webpack_require__) {
  37521. // Generated by CoffeeScript 1.7.1
  37522. (function() {
  37523. var CmapTable, DFont, Data, Directory, GlyfTable, HeadTable, HheaTable, HmtxTable, LocaTable, MaxpTable, NameTable, OS2Table, PostTable, TTFFont, fs;
  37524. fs = __webpack_require__(10);
  37525. Data = __webpack_require__(34);
  37526. DFont = __webpack_require__(78);
  37527. Directory = __webpack_require__(79);
  37528. NameTable = __webpack_require__(80);
  37529. HeadTable = __webpack_require__(81);
  37530. CmapTable = __webpack_require__(82);
  37531. HmtxTable = __webpack_require__(83);
  37532. HheaTable = __webpack_require__(84);
  37533. MaxpTable = __webpack_require__(85);
  37534. PostTable = __webpack_require__(86);
  37535. OS2Table = __webpack_require__(87);
  37536. LocaTable = __webpack_require__(88);
  37537. GlyfTable = __webpack_require__(90);
  37538. TTFFont = (function() {
  37539. TTFFont.open = function(filename, name) {
  37540. var contents;
  37541. contents = fs.readFileSync(filename);
  37542. return new TTFFont(contents, name);
  37543. };
  37544. TTFFont.fromDFont = function(filename, family) {
  37545. var dfont;
  37546. dfont = DFont.open(filename);
  37547. return new TTFFont(dfont.getNamedFont(family));
  37548. };
  37549. TTFFont.fromBuffer = function(buffer, family) {
  37550. var dfont, e, ttf;
  37551. try {
  37552. ttf = new TTFFont(buffer, family);
  37553. if (!(ttf.head.exists && ttf.name.exists && ttf.cmap.exists)) {
  37554. dfont = new DFont(buffer);
  37555. ttf = new TTFFont(dfont.getNamedFont(family));
  37556. if (!(ttf.head.exists && ttf.name.exists && ttf.cmap.exists)) {
  37557. throw new Error('Invalid TTF file in DFont');
  37558. }
  37559. }
  37560. return ttf;
  37561. } catch (_error) {
  37562. e = _error;
  37563. throw new Error('Unknown font format in buffer: ' + e.message);
  37564. }
  37565. };
  37566. function TTFFont(rawData, name) {
  37567. var data, i, numFonts, offset, offsets, version, _i, _j, _len;
  37568. this.rawData = rawData;
  37569. data = this.contents = new Data(this.rawData);
  37570. if (data.readString(4) === 'ttcf') {
  37571. if (!name) {
  37572. throw new Error("Must specify a font name for TTC files.");
  37573. }
  37574. version = data.readInt();
  37575. numFonts = data.readInt();
  37576. offsets = [];
  37577. for (i = _i = 0; 0 <= numFonts ? _i < numFonts : _i > numFonts; i = 0 <= numFonts ? ++_i : --_i) {
  37578. offsets[i] = data.readInt();
  37579. }
  37580. for (i = _j = 0, _len = offsets.length; _j < _len; i = ++_j) {
  37581. offset = offsets[i];
  37582. data.pos = offset;
  37583. this.parse();
  37584. if (this.name.postscriptName === name) {
  37585. return;
  37586. }
  37587. }
  37588. throw new Error("Font " + name + " not found in TTC file.");
  37589. } else {
  37590. data.pos = 0;
  37591. this.parse();
  37592. }
  37593. }
  37594. TTFFont.prototype.parse = function() {
  37595. this.directory = new Directory(this.contents);
  37596. this.head = new HeadTable(this);
  37597. this.name = new NameTable(this);
  37598. this.cmap = new CmapTable(this);
  37599. this.hhea = new HheaTable(this);
  37600. this.maxp = new MaxpTable(this);
  37601. this.hmtx = new HmtxTable(this);
  37602. this.post = new PostTable(this);
  37603. this.os2 = new OS2Table(this);
  37604. this.loca = new LocaTable(this);
  37605. this.glyf = new GlyfTable(this);
  37606. this.ascender = (this.os2.exists && this.os2.ascender) || this.hhea.ascender;
  37607. this.decender = (this.os2.exists && this.os2.decender) || this.hhea.decender;
  37608. this.lineGap = (this.os2.exists && this.os2.lineGap) || this.hhea.lineGap;
  37609. return this.bbox = [this.head.xMin, this.head.yMin, this.head.xMax, this.head.yMax];
  37610. };
  37611. TTFFont.prototype.characterToGlyph = function(character) {
  37612. var _ref;
  37613. return ((_ref = this.cmap.unicode) != null ? _ref.codeMap[character] : void 0) || 0;
  37614. };
  37615. TTFFont.prototype.widthOfGlyph = function(glyph) {
  37616. var scale;
  37617. scale = 1000.0 / this.head.unitsPerEm;
  37618. return this.hmtx.forGlyph(glyph).advance * scale;
  37619. };
  37620. return TTFFont;
  37621. })();
  37622. module.exports = TTFFont;
  37623. }).call(this);
  37624. /***/ },
  37625. /* 65 */
  37626. /***/ function(module, exports, __webpack_require__) {
  37627. // Generated by CoffeeScript 1.7.1
  37628. (function() {
  37629. var CmapTable, Subset, utils,
  37630. __indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
  37631. CmapTable = __webpack_require__(82);
  37632. utils = __webpack_require__(89);
  37633. Subset = (function() {
  37634. function Subset(font) {
  37635. this.font = font;
  37636. this.subset = {};
  37637. this.unicodes = {};
  37638. this.next = 33;
  37639. }
  37640. Subset.prototype.use = function(character) {
  37641. var i, _i, _ref;
  37642. if (typeof character === 'string') {
  37643. for (i = _i = 0, _ref = character.length; 0 <= _ref ? _i < _ref : _i > _ref; i = 0 <= _ref ? ++_i : --_i) {
  37644. this.use(character.charCodeAt(i));
  37645. }
  37646. return;
  37647. }
  37648. if (!this.unicodes[character]) {
  37649. this.subset[this.next] = character;
  37650. return this.unicodes[character] = this.next++;
  37651. }
  37652. };
  37653. Subset.prototype.encodeText = function(text) {
  37654. var char, i, string, _i, _ref;
  37655. string = '';
  37656. for (i = _i = 0, _ref = text.length; 0 <= _ref ? _i < _ref : _i > _ref; i = 0 <= _ref ? ++_i : --_i) {
  37657. char = this.unicodes[text.charCodeAt(i)];
  37658. string += String.fromCharCode(char);
  37659. }
  37660. return string;
  37661. };
  37662. Subset.prototype.generateCmap = function() {
  37663. var mapping, roman, unicode, unicodeCmap, _ref;
  37664. unicodeCmap = this.font.cmap.tables[0].codeMap;
  37665. mapping = {};
  37666. _ref = this.subset;
  37667. for (roman in _ref) {
  37668. unicode = _ref[roman];
  37669. mapping[roman] = unicodeCmap[unicode];
  37670. }
  37671. return mapping;
  37672. };
  37673. Subset.prototype.glyphIDs = function() {
  37674. var ret, roman, unicode, unicodeCmap, val, _ref;
  37675. unicodeCmap = this.font.cmap.tables[0].codeMap;
  37676. ret = [0];
  37677. _ref = this.subset;
  37678. for (roman in _ref) {
  37679. unicode = _ref[roman];
  37680. val = unicodeCmap[unicode];
  37681. if ((val != null) && __indexOf.call(ret, val) < 0) {
  37682. ret.push(val);
  37683. }
  37684. }
  37685. return ret.sort();
  37686. };
  37687. Subset.prototype.glyphsFor = function(glyphIDs) {
  37688. var additionalIDs, glyph, glyphs, id, _i, _len, _ref;
  37689. glyphs = {};
  37690. for (_i = 0, _len = glyphIDs.length; _i < _len; _i++) {
  37691. id = glyphIDs[_i];
  37692. glyphs[id] = this.font.glyf.glyphFor(id);
  37693. }
  37694. additionalIDs = [];
  37695. for (id in glyphs) {
  37696. glyph = glyphs[id];
  37697. if (glyph != null ? glyph.compound : void 0) {
  37698. additionalIDs.push.apply(additionalIDs, glyph.glyphIDs);
  37699. }
  37700. }
  37701. if (additionalIDs.length > 0) {
  37702. _ref = this.glyphsFor(additionalIDs);
  37703. for (id in _ref) {
  37704. glyph = _ref[id];
  37705. glyphs[id] = glyph;
  37706. }
  37707. }
  37708. return glyphs;
  37709. };
  37710. Subset.prototype.encode = function() {
  37711. var cmap, code, glyf, glyphs, id, ids, loca, name, new2old, newIDs, nextGlyphID, old2new, oldID, oldIDs, tables, _ref, _ref1;
  37712. cmap = CmapTable.encode(this.generateCmap(), 'unicode');
  37713. glyphs = this.glyphsFor(this.glyphIDs());
  37714. old2new = {
  37715. 0: 0
  37716. };
  37717. _ref = cmap.charMap;
  37718. for (code in _ref) {
  37719. ids = _ref[code];
  37720. old2new[ids.old] = ids["new"];
  37721. }
  37722. nextGlyphID = cmap.maxGlyphID;
  37723. for (oldID in glyphs) {
  37724. if (!(oldID in old2new)) {
  37725. old2new[oldID] = nextGlyphID++;
  37726. }
  37727. }
  37728. new2old = utils.invert(old2new);
  37729. newIDs = Object.keys(new2old).sort(function(a, b) {
  37730. return a - b;
  37731. });
  37732. oldIDs = (function() {
  37733. var _i, _len, _results;
  37734. _results = [];
  37735. for (_i = 0, _len = newIDs.length; _i < _len; _i++) {
  37736. id = newIDs[_i];
  37737. _results.push(new2old[id]);
  37738. }
  37739. return _results;
  37740. })();
  37741. glyf = this.font.glyf.encode(glyphs, oldIDs, old2new);
  37742. loca = this.font.loca.encode(glyf.offsets);
  37743. name = this.font.name.encode();
  37744. this.postscriptName = name.postscriptName;
  37745. this.cmap = {};
  37746. _ref1 = cmap.charMap;
  37747. for (code in _ref1) {
  37748. ids = _ref1[code];
  37749. this.cmap[code] = ids.old;
  37750. }
  37751. tables = {
  37752. cmap: cmap.table,
  37753. glyf: glyf.table,
  37754. loca: loca.table,
  37755. hmtx: this.font.hmtx.encode(oldIDs),
  37756. hhea: this.font.hhea.encode(oldIDs),
  37757. maxp: this.font.maxp.encode(oldIDs),
  37758. post: this.font.post.encode(oldIDs),
  37759. name: name.table,
  37760. head: this.font.head.encode(loca)
  37761. };
  37762. if (this.font.os2.exists) {
  37763. tables['OS/2'] = this.font.os2.raw();
  37764. }
  37765. return this.font.directory.encode(tables);
  37766. };
  37767. return Subset;
  37768. })();
  37769. module.exports = Subset;
  37770. }).call(this);
  37771. /***/ },
  37772. /* 66 */
  37773. /***/ function(module, exports, __webpack_require__) {
  37774. // Generated by CoffeeScript 1.7.1
  37775. (function() {
  37776. var AI, AL, BA, BK, CB, CI_BRK, CJ, CP_BRK, CR, DI_BRK, ID, IN_BRK, LF, LineBreaker, NL, NS, PR_BRK, SA, SG, SP, UnicodeTrie, WJ, XX, characterClasses, classTrie, pairTable, _ref, _ref1;
  37777. UnicodeTrie = __webpack_require__(100);
  37778. classTrie = new UnicodeTrie(__webpack_require__(106));
  37779. _ref = __webpack_require__(92), BK = _ref.BK, CR = _ref.CR, LF = _ref.LF, NL = _ref.NL, CB = _ref.CB, BA = _ref.BA, SP = _ref.SP, WJ = _ref.WJ, SP = _ref.SP, BK = _ref.BK, LF = _ref.LF, NL = _ref.NL, AI = _ref.AI, AL = _ref.AL, SA = _ref.SA, SG = _ref.SG, XX = _ref.XX, CJ = _ref.CJ, ID = _ref.ID, NS = _ref.NS, characterClasses = _ref.characterClasses;
  37780. _ref1 = __webpack_require__(91), DI_BRK = _ref1.DI_BRK, IN_BRK = _ref1.IN_BRK, CI_BRK = _ref1.CI_BRK, CP_BRK = _ref1.CP_BRK, PR_BRK = _ref1.PR_BRK, pairTable = _ref1.pairTable;
  37781. LineBreaker = (function() {
  37782. var Break, mapClass, mapFirst;
  37783. function LineBreaker(string) {
  37784. this.string = string;
  37785. this.pos = 0;
  37786. this.lastPos = 0;
  37787. this.curClass = null;
  37788. this.nextClass = null;
  37789. }
  37790. LineBreaker.prototype.nextCodePoint = function() {
  37791. var code, next;
  37792. code = this.string.charCodeAt(this.pos++);
  37793. next = this.string.charCodeAt(this.pos);
  37794. if ((0xd800 <= code && code <= 0xdbff) && (0xdc00 <= next && next <= 0xdfff)) {
  37795. this.pos++;
  37796. return ((code - 0xd800) * 0x400) + (next - 0xdc00) + 0x10000;
  37797. }
  37798. return code;
  37799. };
  37800. mapClass = function(c) {
  37801. switch (c) {
  37802. case AI:
  37803. return AL;
  37804. case SA:
  37805. case SG:
  37806. case XX:
  37807. return AL;
  37808. case CJ:
  37809. return NS;
  37810. default:
  37811. return c;
  37812. }
  37813. };
  37814. mapFirst = function(c) {
  37815. switch (c) {
  37816. case LF:
  37817. case NL:
  37818. return BK;
  37819. case CB:
  37820. return BA;
  37821. case SP:
  37822. return WJ;
  37823. default:
  37824. return c;
  37825. }
  37826. };
  37827. LineBreaker.prototype.nextCharClass = function(first) {
  37828. if (first == null) {
  37829. first = false;
  37830. }
  37831. return mapClass(classTrie.get(this.nextCodePoint()));
  37832. };
  37833. Break = (function() {
  37834. function Break(position, required) {
  37835. this.position = position;
  37836. this.required = required != null ? required : false;
  37837. }
  37838. return Break;
  37839. })();
  37840. LineBreaker.prototype.nextBreak = function() {
  37841. var cur, lastClass, shouldBreak;
  37842. if (this.curClass == null) {
  37843. this.curClass = mapFirst(this.nextCharClass());
  37844. }
  37845. while (this.pos < this.string.length) {
  37846. this.lastPos = this.pos;
  37847. lastClass = this.nextClass;
  37848. this.nextClass = this.nextCharClass();
  37849. if (this.curClass === BK || (this.curClass === CR && this.nextClass !== LF)) {
  37850. this.curClass = mapFirst(mapClass(this.nextClass));
  37851. return new Break(this.lastPos, true);
  37852. }
  37853. cur = (function() {
  37854. switch (this.nextClass) {
  37855. case SP:
  37856. return this.curClass;
  37857. case BK:
  37858. case LF:
  37859. case NL:
  37860. return BK;
  37861. case CR:
  37862. return CR;
  37863. case CB:
  37864. return BA;
  37865. }
  37866. }).call(this);
  37867. if (cur != null) {
  37868. this.curClass = cur;
  37869. if (this.nextClass === CB) {
  37870. return new Break(this.lastPos);
  37871. }
  37872. continue;
  37873. }
  37874. shouldBreak = false;
  37875. switch (pairTable[this.curClass][this.nextClass]) {
  37876. case DI_BRK:
  37877. shouldBreak = true;
  37878. break;
  37879. case IN_BRK:
  37880. shouldBreak = lastClass === SP;
  37881. break;
  37882. case CI_BRK:
  37883. shouldBreak = lastClass === SP;
  37884. if (!shouldBreak) {
  37885. continue;
  37886. }
  37887. break;
  37888. case CP_BRK:
  37889. if (lastClass !== SP) {
  37890. continue;
  37891. }
  37892. }
  37893. this.curClass = this.nextClass;
  37894. if (shouldBreak) {
  37895. return new Break(this.lastPos);
  37896. }
  37897. }
  37898. if (this.pos >= this.string.length) {
  37899. if (this.lastPos < this.string.length) {
  37900. this.lastPos = this.string.length;
  37901. return new Break(this.string.length);
  37902. } else {
  37903. return null;
  37904. }
  37905. }
  37906. };
  37907. return LineBreaker;
  37908. })();
  37909. module.exports = LineBreaker;
  37910. }).call(this);
  37911. /***/ },
  37912. /* 67 */
  37913. /***/ function(module, exports, __webpack_require__) {
  37914. /* WEBPACK VAR INJECTION */(function(process) {// Copyright Joyent, Inc. and other Node contributors.
  37915. //
  37916. // Permission is hereby granted, free of charge, to any person obtaining a
  37917. // copy of this software and associated documentation files (the
  37918. // "Software"), to deal in the Software without restriction, including
  37919. // without limitation the rights to use, copy, modify, merge, publish,
  37920. // distribute, sublicense, and/or sell copies of the Software, and to permit
  37921. // persons to whom the Software is furnished to do so, subject to the
  37922. // following conditions:
  37923. //
  37924. // The above copyright notice and this permission notice shall be included
  37925. // in all copies or substantial portions of the Software.
  37926. //
  37927. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  37928. // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  37929. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
  37930. // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  37931. // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  37932. // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  37933. // USE OR OTHER DEALINGS IN THE SOFTWARE.
  37934. // A bit simpler than readable streams.
  37935. // Implement an async ._write(chunk, cb), and it'll handle all
  37936. // the drain event emission and buffering.
  37937. module.exports = Writable;
  37938. /*<replacement>*/
  37939. var Buffer = __webpack_require__(4).Buffer;
  37940. /*</replacement>*/
  37941. Writable.WritableState = WritableState;
  37942. /*<replacement>*/
  37943. var util = __webpack_require__(105);
  37944. util.inherits = __webpack_require__(104);
  37945. /*</replacement>*/
  37946. var Stream = __webpack_require__(46);
  37947. util.inherits(Writable, Stream);
  37948. function WriteReq(chunk, encoding, cb) {
  37949. this.chunk = chunk;
  37950. this.encoding = encoding;
  37951. this.callback = cb;
  37952. }
  37953. function WritableState(options, stream) {
  37954. var Duplex = __webpack_require__(69);
  37955. options = options || {};
  37956. // the point at which write() starts returning false
  37957. // Note: 0 is a valid value, means that we always return false if
  37958. // the entire buffer is not flushed immediately on write()
  37959. var hwm = options.highWaterMark;
  37960. var defaultHwm = options.objectMode ? 16 : 16 * 1024;
  37961. this.highWaterMark = (hwm || hwm === 0) ? hwm : defaultHwm;
  37962. // object stream flag to indicate whether or not this stream
  37963. // contains buffers or objects.
  37964. this.objectMode = !!options.objectMode;
  37965. if (stream instanceof Duplex)
  37966. this.objectMode = this.objectMode || !!options.writableObjectMode;
  37967. // cast to ints.
  37968. this.highWaterMark = ~~this.highWaterMark;
  37969. this.needDrain = false;
  37970. // at the start of calling end()
  37971. this.ending = false;
  37972. // when end() has been called, and returned
  37973. this.ended = false;
  37974. // when 'finish' is emitted
  37975. this.finished = false;
  37976. // should we decode strings into buffers before passing to _write?
  37977. // this is here so that some node-core streams can optimize string
  37978. // handling at a lower level.
  37979. var noDecode = options.decodeStrings === false;
  37980. this.decodeStrings = !noDecode;
  37981. // Crypto is kind of old and crusty. Historically, its default string
  37982. // encoding is 'binary' so we have to make this configurable.
  37983. // Everything else in the universe uses 'utf8', though.
  37984. this.defaultEncoding = options.defaultEncoding || 'utf8';
  37985. // not an actual buffer we keep track of, but a measurement
  37986. // of how much we're waiting to get pushed to some underlying
  37987. // socket or file.
  37988. this.length = 0;
  37989. // a flag to see when we're in the middle of a write.
  37990. this.writing = false;
  37991. // when true all writes will be buffered until .uncork() call
  37992. this.corked = 0;
  37993. // a flag to be able to tell if the onwrite cb is called immediately,
  37994. // or on a later tick. We set this to true at first, because any
  37995. // actions that shouldn't happen until "later" should generally also
  37996. // not happen before the first write call.
  37997. this.sync = true;
  37998. // a flag to know if we're processing previously buffered items, which
  37999. // may call the _write() callback in the same tick, so that we don't
  38000. // end up in an overlapped onwrite situation.
  38001. this.bufferProcessing = false;
  38002. // the callback that's passed to _write(chunk,cb)
  38003. this.onwrite = function(er) {
  38004. onwrite(stream, er);
  38005. };
  38006. // the callback that the user supplies to write(chunk,encoding,cb)
  38007. this.writecb = null;
  38008. // the amount that is being written when _write is called.
  38009. this.writelen = 0;
  38010. this.buffer = [];
  38011. // number of pending user-supplied write callbacks
  38012. // this must be 0 before 'finish' can be emitted
  38013. this.pendingcb = 0;
  38014. // emit prefinish if the only thing we're waiting for is _write cbs
  38015. // This is relevant for synchronous Transform streams
  38016. this.prefinished = false;
  38017. // True if the error was already emitted and should not be thrown again
  38018. this.errorEmitted = false;
  38019. }
  38020. function Writable(options) {
  38021. var Duplex = __webpack_require__(69);
  38022. // Writable ctor is applied to Duplexes, though they're not
  38023. // instanceof Writable, they're instanceof Readable.
  38024. if (!(this instanceof Writable) && !(this instanceof Duplex))
  38025. return new Writable(options);
  38026. this._writableState = new WritableState(options, this);
  38027. // legacy.
  38028. this.writable = true;
  38029. Stream.call(this);
  38030. }
  38031. // Otherwise people can pipe Writable streams, which is just wrong.
  38032. Writable.prototype.pipe = function() {
  38033. this.emit('error', new Error('Cannot pipe. Not readable.'));
  38034. };
  38035. function writeAfterEnd(stream, state, cb) {
  38036. var er = new Error('write after end');
  38037. // TODO: defer error events consistently everywhere, not just the cb
  38038. stream.emit('error', er);
  38039. process.nextTick(function() {
  38040. cb(er);
  38041. });
  38042. }
  38043. // If we get something that is not a buffer, string, null, or undefined,
  38044. // and we're not in objectMode, then that's an error.
  38045. // Otherwise stream chunks are all considered to be of length=1, and the
  38046. // watermarks determine how many objects to keep in the buffer, rather than
  38047. // how many bytes or characters.
  38048. function validChunk(stream, state, chunk, cb) {
  38049. var valid = true;
  38050. if (!util.isBuffer(chunk) &&
  38051. !util.isString(chunk) &&
  38052. !util.isNullOrUndefined(chunk) &&
  38053. !state.objectMode) {
  38054. var er = new TypeError('Invalid non-string/buffer chunk');
  38055. stream.emit('error', er);
  38056. process.nextTick(function() {
  38057. cb(er);
  38058. });
  38059. valid = false;
  38060. }
  38061. return valid;
  38062. }
  38063. Writable.prototype.write = function(chunk, encoding, cb) {
  38064. var state = this._writableState;
  38065. var ret = false;
  38066. if (util.isFunction(encoding)) {
  38067. cb = encoding;
  38068. encoding = null;
  38069. }
  38070. if (util.isBuffer(chunk))
  38071. encoding = 'buffer';
  38072. else if (!encoding)
  38073. encoding = state.defaultEncoding;
  38074. if (!util.isFunction(cb))
  38075. cb = function() {};
  38076. if (state.ended)
  38077. writeAfterEnd(this, state, cb);
  38078. else if (validChunk(this, state, chunk, cb)) {
  38079. state.pendingcb++;
  38080. ret = writeOrBuffer(this, state, chunk, encoding, cb);
  38081. }
  38082. return ret;
  38083. };
  38084. Writable.prototype.cork = function() {
  38085. var state = this._writableState;
  38086. state.corked++;
  38087. };
  38088. Writable.prototype.uncork = function() {
  38089. var state = this._writableState;
  38090. if (state.corked) {
  38091. state.corked--;
  38092. if (!state.writing &&
  38093. !state.corked &&
  38094. !state.finished &&
  38095. !state.bufferProcessing &&
  38096. state.buffer.length)
  38097. clearBuffer(this, state);
  38098. }
  38099. };
  38100. function decodeChunk(state, chunk, encoding) {
  38101. if (!state.objectMode &&
  38102. state.decodeStrings !== false &&
  38103. util.isString(chunk)) {
  38104. chunk = new Buffer(chunk, encoding);
  38105. }
  38106. return chunk;
  38107. }
  38108. // if we're already writing something, then just put this
  38109. // in the queue, and wait our turn. Otherwise, call _write
  38110. // If we return false, then we need a drain event, so set that flag.
  38111. function writeOrBuffer(stream, state, chunk, encoding, cb) {
  38112. chunk = decodeChunk(state, chunk, encoding);
  38113. if (util.isBuffer(chunk))
  38114. encoding = 'buffer';
  38115. var len = state.objectMode ? 1 : chunk.length;
  38116. state.length += len;
  38117. var ret = state.length < state.highWaterMark;
  38118. // we must ensure that previous needDrain will not be reset to false.
  38119. if (!ret)
  38120. state.needDrain = true;
  38121. if (state.writing || state.corked)
  38122. state.buffer.push(new WriteReq(chunk, encoding, cb));
  38123. else
  38124. doWrite(stream, state, false, len, chunk, encoding, cb);
  38125. return ret;
  38126. }
  38127. function doWrite(stream, state, writev, len, chunk, encoding, cb) {
  38128. state.writelen = len;
  38129. state.writecb = cb;
  38130. state.writing = true;
  38131. state.sync = true;
  38132. if (writev)
  38133. stream._writev(chunk, state.onwrite);
  38134. else
  38135. stream._write(chunk, encoding, state.onwrite);
  38136. state.sync = false;
  38137. }
  38138. function onwriteError(stream, state, sync, er, cb) {
  38139. if (sync)
  38140. process.nextTick(function() {
  38141. state.pendingcb--;
  38142. cb(er);
  38143. });
  38144. else {
  38145. state.pendingcb--;
  38146. cb(er);
  38147. }
  38148. stream._writableState.errorEmitted = true;
  38149. stream.emit('error', er);
  38150. }
  38151. function onwriteStateUpdate(state) {
  38152. state.writing = false;
  38153. state.writecb = null;
  38154. state.length -= state.writelen;
  38155. state.writelen = 0;
  38156. }
  38157. function onwrite(stream, er) {
  38158. var state = stream._writableState;
  38159. var sync = state.sync;
  38160. var cb = state.writecb;
  38161. onwriteStateUpdate(state);
  38162. if (er)
  38163. onwriteError(stream, state, sync, er, cb);
  38164. else {
  38165. // Check if we're actually ready to finish, but don't emit yet
  38166. var finished = needFinish(stream, state);
  38167. if (!finished &&
  38168. !state.corked &&
  38169. !state.bufferProcessing &&
  38170. state.buffer.length) {
  38171. clearBuffer(stream, state);
  38172. }
  38173. if (sync) {
  38174. process.nextTick(function() {
  38175. afterWrite(stream, state, finished, cb);
  38176. });
  38177. } else {
  38178. afterWrite(stream, state, finished, cb);
  38179. }
  38180. }
  38181. }
  38182. function afterWrite(stream, state, finished, cb) {
  38183. if (!finished)
  38184. onwriteDrain(stream, state);
  38185. state.pendingcb--;
  38186. cb();
  38187. finishMaybe(stream, state);
  38188. }
  38189. // Must force callback to be called on nextTick, so that we don't
  38190. // emit 'drain' before the write() consumer gets the 'false' return
  38191. // value, and has a chance to attach a 'drain' listener.
  38192. function onwriteDrain(stream, state) {
  38193. if (state.length === 0 && state.needDrain) {
  38194. state.needDrain = false;
  38195. stream.emit('drain');
  38196. }
  38197. }
  38198. // if there's something in the buffer waiting, then process it
  38199. function clearBuffer(stream, state) {
  38200. state.bufferProcessing = true;
  38201. if (stream._writev && state.buffer.length > 1) {
  38202. // Fast case, write everything using _writev()
  38203. var cbs = [];
  38204. for (var c = 0; c < state.buffer.length; c++)
  38205. cbs.push(state.buffer[c].callback);
  38206. // count the one we are adding, as well.
  38207. // TODO(isaacs) clean this up
  38208. state.pendingcb++;
  38209. doWrite(stream, state, true, state.length, state.buffer, '', function(err) {
  38210. for (var i = 0; i < cbs.length; i++) {
  38211. state.pendingcb--;
  38212. cbs[i](err);
  38213. }
  38214. });
  38215. // Clear buffer
  38216. state.buffer = [];
  38217. } else {
  38218. // Slow case, write chunks one-by-one
  38219. for (var c = 0; c < state.buffer.length; c++) {
  38220. var entry = state.buffer[c];
  38221. var chunk = entry.chunk;
  38222. var encoding = entry.encoding;
  38223. var cb = entry.callback;
  38224. var len = state.objectMode ? 1 : chunk.length;
  38225. doWrite(stream, state, false, len, chunk, encoding, cb);
  38226. // if we didn't call the onwrite immediately, then
  38227. // it means that we need to wait until it does.
  38228. // also, that means that the chunk and cb are currently
  38229. // being processed, so move the buffer counter past them.
  38230. if (state.writing) {
  38231. c++;
  38232. break;
  38233. }
  38234. }
  38235. if (c < state.buffer.length)
  38236. state.buffer = state.buffer.slice(c);
  38237. else
  38238. state.buffer.length = 0;
  38239. }
  38240. state.bufferProcessing = false;
  38241. }
  38242. Writable.prototype._write = function(chunk, encoding, cb) {
  38243. cb(new Error('not implemented'));
  38244. };
  38245. Writable.prototype._writev = null;
  38246. Writable.prototype.end = function(chunk, encoding, cb) {
  38247. var state = this._writableState;
  38248. if (util.isFunction(chunk)) {
  38249. cb = chunk;
  38250. chunk = null;
  38251. encoding = null;
  38252. } else if (util.isFunction(encoding)) {
  38253. cb = encoding;
  38254. encoding = null;
  38255. }
  38256. if (!util.isNullOrUndefined(chunk))
  38257. this.write(chunk, encoding);
  38258. // .end() fully uncorks
  38259. if (state.corked) {
  38260. state.corked = 1;
  38261. this.uncork();
  38262. }
  38263. // ignore unnecessary end() calls.
  38264. if (!state.ending && !state.finished)
  38265. endWritable(this, state, cb);
  38266. };
  38267. function needFinish(stream, state) {
  38268. return (state.ending &&
  38269. state.length === 0 &&
  38270. !state.finished &&
  38271. !state.writing);
  38272. }
  38273. function prefinish(stream, state) {
  38274. if (!state.prefinished) {
  38275. state.prefinished = true;
  38276. stream.emit('prefinish');
  38277. }
  38278. }
  38279. function finishMaybe(stream, state) {
  38280. var need = needFinish(stream, state);
  38281. if (need) {
  38282. if (state.pendingcb === 0) {
  38283. prefinish(stream, state);
  38284. state.finished = true;
  38285. stream.emit('finish');
  38286. } else
  38287. prefinish(stream, state);
  38288. }
  38289. return need;
  38290. }
  38291. function endWritable(stream, state, cb) {
  38292. state.ending = true;
  38293. finishMaybe(stream, state);
  38294. if (cb) {
  38295. if (state.finished)
  38296. process.nextTick(cb);
  38297. else
  38298. stream.once('finish', cb);
  38299. }
  38300. state.ended = true;
  38301. }
  38302. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(61)))
  38303. /***/ },
  38304. /* 68 */
  38305. /***/ function(module, exports, __webpack_require__) {
  38306. // Copyright Joyent, Inc. and other Node contributors.
  38307. //
  38308. // Permission is hereby granted, free of charge, to any person obtaining a
  38309. // copy of this software and associated documentation files (the
  38310. // "Software"), to deal in the Software without restriction, including
  38311. // without limitation the rights to use, copy, modify, merge, publish,
  38312. // distribute, sublicense, and/or sell copies of the Software, and to permit
  38313. // persons to whom the Software is furnished to do so, subject to the
  38314. // following conditions:
  38315. //
  38316. // The above copyright notice and this permission notice shall be included
  38317. // in all copies or substantial portions of the Software.
  38318. //
  38319. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  38320. // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  38321. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
  38322. // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  38323. // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  38324. // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  38325. // USE OR OTHER DEALINGS IN THE SOFTWARE.
  38326. // a passthrough stream.
  38327. // basically just the most minimal sort of Transform stream.
  38328. // Every written chunk gets output as-is.
  38329. module.exports = PassThrough;
  38330. var Transform = __webpack_require__(70);
  38331. /*<replacement>*/
  38332. var util = __webpack_require__(105);
  38333. util.inherits = __webpack_require__(104);
  38334. /*</replacement>*/
  38335. util.inherits(PassThrough, Transform);
  38336. function PassThrough(options) {
  38337. if (!(this instanceof PassThrough))
  38338. return new PassThrough(options);
  38339. Transform.call(this, options);
  38340. }
  38341. PassThrough.prototype._transform = function(chunk, encoding, cb) {
  38342. cb(null, chunk);
  38343. };
  38344. /***/ },
  38345. /* 69 */
  38346. /***/ function(module, exports, __webpack_require__) {
  38347. /* WEBPACK VAR INJECTION */(function(process) {// Copyright Joyent, Inc. and other Node contributors.
  38348. //
  38349. // Permission is hereby granted, free of charge, to any person obtaining a
  38350. // copy of this software and associated documentation files (the
  38351. // "Software"), to deal in the Software without restriction, including
  38352. // without limitation the rights to use, copy, modify, merge, publish,
  38353. // distribute, sublicense, and/or sell copies of the Software, and to permit
  38354. // persons to whom the Software is furnished to do so, subject to the
  38355. // following conditions:
  38356. //
  38357. // The above copyright notice and this permission notice shall be included
  38358. // in all copies or substantial portions of the Software.
  38359. //
  38360. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  38361. // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  38362. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
  38363. // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  38364. // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  38365. // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  38366. // USE OR OTHER DEALINGS IN THE SOFTWARE.
  38367. // a duplex stream is just a stream that is both readable and writable.
  38368. // Since JS doesn't have multiple prototypal inheritance, this class
  38369. // prototypally inherits from Readable, and then parasitically from
  38370. // Writable.
  38371. module.exports = Duplex;
  38372. /*<replacement>*/
  38373. var objectKeys = Object.keys || function (obj) {
  38374. var keys = [];
  38375. for (var key in obj) keys.push(key);
  38376. return keys;
  38377. }
  38378. /*</replacement>*/
  38379. /*<replacement>*/
  38380. var util = __webpack_require__(105);
  38381. util.inherits = __webpack_require__(104);
  38382. /*</replacement>*/
  38383. var Readable = __webpack_require__(71);
  38384. var Writable = __webpack_require__(67);
  38385. util.inherits(Duplex, Readable);
  38386. forEach(objectKeys(Writable.prototype), function(method) {
  38387. if (!Duplex.prototype[method])
  38388. Duplex.prototype[method] = Writable.prototype[method];
  38389. });
  38390. function Duplex(options) {
  38391. if (!(this instanceof Duplex))
  38392. return new Duplex(options);
  38393. Readable.call(this, options);
  38394. Writable.call(this, options);
  38395. if (options && options.readable === false)
  38396. this.readable = false;
  38397. if (options && options.writable === false)
  38398. this.writable = false;
  38399. this.allowHalfOpen = true;
  38400. if (options && options.allowHalfOpen === false)
  38401. this.allowHalfOpen = false;
  38402. this.once('end', onend);
  38403. }
  38404. // the no-half-open enforcer
  38405. function onend() {
  38406. // if we allow half-open state, or if the writable side ended,
  38407. // then we're ok.
  38408. if (this.allowHalfOpen || this._writableState.ended)
  38409. return;
  38410. // no more data can be written.
  38411. // But allow more writes to happen in this tick.
  38412. process.nextTick(this.end.bind(this));
  38413. }
  38414. function forEach (xs, f) {
  38415. for (var i = 0, l = xs.length; i < l; i++) {
  38416. f(xs[i], i);
  38417. }
  38418. }
  38419. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(61)))
  38420. /***/ },
  38421. /* 70 */
  38422. /***/ function(module, exports, __webpack_require__) {
  38423. // Copyright Joyent, Inc. and other Node contributors.
  38424. //
  38425. // Permission is hereby granted, free of charge, to any person obtaining a
  38426. // copy of this software and associated documentation files (the
  38427. // "Software"), to deal in the Software without restriction, including
  38428. // without limitation the rights to use, copy, modify, merge, publish,
  38429. // distribute, sublicense, and/or sell copies of the Software, and to permit
  38430. // persons to whom the Software is furnished to do so, subject to the
  38431. // following conditions:
  38432. //
  38433. // The above copyright notice and this permission notice shall be included
  38434. // in all copies or substantial portions of the Software.
  38435. //
  38436. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  38437. // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  38438. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
  38439. // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  38440. // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  38441. // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  38442. // USE OR OTHER DEALINGS IN THE SOFTWARE.
  38443. // a transform stream is a readable/writable stream where you do
  38444. // something with the data. Sometimes it's called a "filter",
  38445. // but that's not a great name for it, since that implies a thing where
  38446. // some bits pass through, and others are simply ignored. (That would
  38447. // be a valid example of a transform, of course.)
  38448. //
  38449. // While the output is causally related to the input, it's not a
  38450. // necessarily symmetric or synchronous transformation. For example,
  38451. // a zlib stream might take multiple plain-text writes(), and then
  38452. // emit a single compressed chunk some time in the future.
  38453. //
  38454. // Here's how this works:
  38455. //
  38456. // The Transform stream has all the aspects of the readable and writable
  38457. // stream classes. When you write(chunk), that calls _write(chunk,cb)
  38458. // internally, and returns false if there's a lot of pending writes
  38459. // buffered up. When you call read(), that calls _read(n) until
  38460. // there's enough pending readable data buffered up.
  38461. //
  38462. // In a transform stream, the written data is placed in a buffer. When
  38463. // _read(n) is called, it transforms the queued up data, calling the
  38464. // buffered _write cb's as it consumes chunks. If consuming a single
  38465. // written chunk would result in multiple output chunks, then the first
  38466. // outputted bit calls the readcb, and subsequent chunks just go into
  38467. // the read buffer, and will cause it to emit 'readable' if necessary.
  38468. //
  38469. // This way, back-pressure is actually determined by the reading side,
  38470. // since _read has to be called to start processing a new chunk. However,
  38471. // a pathological inflate type of transform can cause excessive buffering
  38472. // here. For example, imagine a stream where every byte of input is
  38473. // interpreted as an integer from 0-255, and then results in that many
  38474. // bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in
  38475. // 1kb of data being output. In this case, you could write a very small
  38476. // amount of input, and end up with a very large amount of output. In
  38477. // such a pathological inflating mechanism, there'd be no way to tell
  38478. // the system to stop doing the transform. A single 4MB write could
  38479. // cause the system to run out of memory.
  38480. //
  38481. // However, even in such a pathological case, only a single written chunk
  38482. // would be consumed, and then the rest would wait (un-transformed) until
  38483. // the results of the previous transformed chunk were consumed.
  38484. module.exports = Transform;
  38485. var Duplex = __webpack_require__(69);
  38486. /*<replacement>*/
  38487. var util = __webpack_require__(105);
  38488. util.inherits = __webpack_require__(104);
  38489. /*</replacement>*/
  38490. util.inherits(Transform, Duplex);
  38491. function TransformState(options, stream) {
  38492. this.afterTransform = function(er, data) {
  38493. return afterTransform(stream, er, data);
  38494. };
  38495. this.needTransform = false;
  38496. this.transforming = false;
  38497. this.writecb = null;
  38498. this.writechunk = null;
  38499. }
  38500. function afterTransform(stream, er, data) {
  38501. var ts = stream._transformState;
  38502. ts.transforming = false;
  38503. var cb = ts.writecb;
  38504. if (!cb)
  38505. return stream.emit('error', new Error('no writecb in Transform class'));
  38506. ts.writechunk = null;
  38507. ts.writecb = null;
  38508. if (!util.isNullOrUndefined(data))
  38509. stream.push(data);
  38510. if (cb)
  38511. cb(er);
  38512. var rs = stream._readableState;
  38513. rs.reading = false;
  38514. if (rs.needReadable || rs.length < rs.highWaterMark) {
  38515. stream._read(rs.highWaterMark);
  38516. }
  38517. }
  38518. function Transform(options) {
  38519. if (!(this instanceof Transform))
  38520. return new Transform(options);
  38521. Duplex.call(this, options);
  38522. this._transformState = new TransformState(options, this);
  38523. // when the writable side finishes, then flush out anything remaining.
  38524. var stream = this;
  38525. // start out asking for a readable event once data is transformed.
  38526. this._readableState.needReadable = true;
  38527. // we have implemented the _read method, and done the other things
  38528. // that Readable wants before the first _read call, so unset the
  38529. // sync guard flag.
  38530. this._readableState.sync = false;
  38531. this.once('prefinish', function() {
  38532. if (util.isFunction(this._flush))
  38533. this._flush(function(er) {
  38534. done(stream, er);
  38535. });
  38536. else
  38537. done(stream);
  38538. });
  38539. }
  38540. Transform.prototype.push = function(chunk, encoding) {
  38541. this._transformState.needTransform = false;
  38542. return Duplex.prototype.push.call(this, chunk, encoding);
  38543. };
  38544. // This is the part where you do stuff!
  38545. // override this function in implementation classes.
  38546. // 'chunk' is an input chunk.
  38547. //
  38548. // Call `push(newChunk)` to pass along transformed output
  38549. // to the readable side. You may call 'push' zero or more times.
  38550. //
  38551. // Call `cb(err)` when you are done with this chunk. If you pass
  38552. // an error, then that'll put the hurt on the whole operation. If you
  38553. // never call cb(), then you'll never get another chunk.
  38554. Transform.prototype._transform = function(chunk, encoding, cb) {
  38555. throw new Error('not implemented');
  38556. };
  38557. Transform.prototype._write = function(chunk, encoding, cb) {
  38558. var ts = this._transformState;
  38559. ts.writecb = cb;
  38560. ts.writechunk = chunk;
  38561. ts.writeencoding = encoding;
  38562. if (!ts.transforming) {
  38563. var rs = this._readableState;
  38564. if (ts.needTransform ||
  38565. rs.needReadable ||
  38566. rs.length < rs.highWaterMark)
  38567. this._read(rs.highWaterMark);
  38568. }
  38569. };
  38570. // Doesn't matter what the args are here.
  38571. // _transform does all the work.
  38572. // That we got here means that the readable side wants more data.
  38573. Transform.prototype._read = function(n) {
  38574. var ts = this._transformState;
  38575. if (!util.isNull(ts.writechunk) && ts.writecb && !ts.transforming) {
  38576. ts.transforming = true;
  38577. this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);
  38578. } else {
  38579. // mark that we need a transform, so that any data that comes in
  38580. // will get processed, now that we've asked for it.
  38581. ts.needTransform = true;
  38582. }
  38583. };
  38584. function done(stream, er) {
  38585. if (er)
  38586. return stream.emit('error', er);
  38587. // if there's nothing in the write buffer, then that means
  38588. // that nothing more will ever be provided
  38589. var ws = stream._writableState;
  38590. var ts = stream._transformState;
  38591. if (ws.length)
  38592. throw new Error('calling transform done when ws.length != 0');
  38593. if (ts.transforming)
  38594. throw new Error('calling transform done when still transforming');
  38595. return stream.push(null);
  38596. }
  38597. /***/ },
  38598. /* 71 */
  38599. /***/ function(module, exports, __webpack_require__) {
  38600. /* WEBPACK VAR INJECTION */(function(process) {// Copyright Joyent, Inc. and other Node contributors.
  38601. //
  38602. // Permission is hereby granted, free of charge, to any person obtaining a
  38603. // copy of this software and associated documentation files (the
  38604. // "Software"), to deal in the Software without restriction, including
  38605. // without limitation the rights to use, copy, modify, merge, publish,
  38606. // distribute, sublicense, and/or sell copies of the Software, and to permit
  38607. // persons to whom the Software is furnished to do so, subject to the
  38608. // following conditions:
  38609. //
  38610. // The above copyright notice and this permission notice shall be included
  38611. // in all copies or substantial portions of the Software.
  38612. //
  38613. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  38614. // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  38615. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
  38616. // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  38617. // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  38618. // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  38619. // USE OR OTHER DEALINGS IN THE SOFTWARE.
  38620. module.exports = Readable;
  38621. /*<replacement>*/
  38622. var isArray = __webpack_require__(107);
  38623. /*</replacement>*/
  38624. /*<replacement>*/
  38625. var Buffer = __webpack_require__(4).Buffer;
  38626. /*</replacement>*/
  38627. Readable.ReadableState = ReadableState;
  38628. var EE = __webpack_require__(54).EventEmitter;
  38629. /*<replacement>*/
  38630. if (!EE.listenerCount) EE.listenerCount = function(emitter, type) {
  38631. return emitter.listeners(type).length;
  38632. };
  38633. /*</replacement>*/
  38634. var Stream = __webpack_require__(46);
  38635. /*<replacement>*/
  38636. var util = __webpack_require__(105);
  38637. util.inherits = __webpack_require__(104);
  38638. /*</replacement>*/
  38639. var StringDecoder;
  38640. /*<replacement>*/
  38641. var debug = __webpack_require__(93);
  38642. if (debug && debug.debuglog) {
  38643. debug = debug.debuglog('stream');
  38644. } else {
  38645. debug = function () {};
  38646. }
  38647. /*</replacement>*/
  38648. util.inherits(Readable, Stream);
  38649. function ReadableState(options, stream) {
  38650. var Duplex = __webpack_require__(69);
  38651. options = options || {};
  38652. // the point at which it stops calling _read() to fill the buffer
  38653. // Note: 0 is a valid value, means "don't call _read preemptively ever"
  38654. var hwm = options.highWaterMark;
  38655. var defaultHwm = options.objectMode ? 16 : 16 * 1024;
  38656. this.highWaterMark = (hwm || hwm === 0) ? hwm : defaultHwm;
  38657. // cast to ints.
  38658. this.highWaterMark = ~~this.highWaterMark;
  38659. this.buffer = [];
  38660. this.length = 0;
  38661. this.pipes = null;
  38662. this.pipesCount = 0;
  38663. this.flowing = null;
  38664. this.ended = false;
  38665. this.endEmitted = false;
  38666. this.reading = false;
  38667. // a flag to be able to tell if the onwrite cb is called immediately,
  38668. // or on a later tick. We set this to true at first, because any
  38669. // actions that shouldn't happen until "later" should generally also
  38670. // not happen before the first write call.
  38671. this.sync = true;
  38672. // whenever we return null, then we set a flag to say
  38673. // that we're awaiting a 'readable' event emission.
  38674. this.needReadable = false;
  38675. this.emittedReadable = false;
  38676. this.readableListening = false;
  38677. // object stream flag. Used to make read(n) ignore n and to
  38678. // make all the buffer merging and length checks go away
  38679. this.objectMode = !!options.objectMode;
  38680. if (stream instanceof Duplex)
  38681. this.objectMode = this.objectMode || !!options.readableObjectMode;
  38682. // Crypto is kind of old and crusty. Historically, its default string
  38683. // encoding is 'binary' so we have to make this configurable.
  38684. // Everything else in the universe uses 'utf8', though.
  38685. this.defaultEncoding = options.defaultEncoding || 'utf8';
  38686. // when piping, we only care about 'readable' events that happen
  38687. // after read()ing all the bytes and not getting any pushback.
  38688. this.ranOut = false;
  38689. // the number of writers that are awaiting a drain event in .pipe()s
  38690. this.awaitDrain = 0;
  38691. // if true, a maybeReadMore has been scheduled
  38692. this.readingMore = false;
  38693. this.decoder = null;
  38694. this.encoding = null;
  38695. if (options.encoding) {
  38696. if (!StringDecoder)
  38697. StringDecoder = __webpack_require__(101).StringDecoder;
  38698. this.decoder = new StringDecoder(options.encoding);
  38699. this.encoding = options.encoding;
  38700. }
  38701. }
  38702. function Readable(options) {
  38703. var Duplex = __webpack_require__(69);
  38704. if (!(this instanceof Readable))
  38705. return new Readable(options);
  38706. this._readableState = new ReadableState(options, this);
  38707. // legacy
  38708. this.readable = true;
  38709. Stream.call(this);
  38710. }
  38711. // Manually shove something into the read() buffer.
  38712. // This returns true if the highWaterMark has not been hit yet,
  38713. // similar to how Writable.write() returns true if you should
  38714. // write() some more.
  38715. Readable.prototype.push = function(chunk, encoding) {
  38716. var state = this._readableState;
  38717. if (util.isString(chunk) && !state.objectMode) {
  38718. encoding = encoding || state.defaultEncoding;
  38719. if (encoding !== state.encoding) {
  38720. chunk = new Buffer(chunk, encoding);
  38721. encoding = '';
  38722. }
  38723. }
  38724. return readableAddChunk(this, state, chunk, encoding, false);
  38725. };
  38726. // Unshift should *always* be something directly out of read()
  38727. Readable.prototype.unshift = function(chunk) {
  38728. var state = this._readableState;
  38729. return readableAddChunk(this, state, chunk, '', true);
  38730. };
  38731. function readableAddChunk(stream, state, chunk, encoding, addToFront) {
  38732. var er = chunkInvalid(state, chunk);
  38733. if (er) {
  38734. stream.emit('error', er);
  38735. } else if (util.isNullOrUndefined(chunk)) {
  38736. state.reading = false;
  38737. if (!state.ended)
  38738. onEofChunk(stream, state);
  38739. } else if (state.objectMode || chunk && chunk.length > 0) {
  38740. if (state.ended && !addToFront) {
  38741. var e = new Error('stream.push() after EOF');
  38742. stream.emit('error', e);
  38743. } else if (state.endEmitted && addToFront) {
  38744. var e = new Error('stream.unshift() after end event');
  38745. stream.emit('error', e);
  38746. } else {
  38747. if (state.decoder && !addToFront && !encoding)
  38748. chunk = state.decoder.write(chunk);
  38749. if (!addToFront)
  38750. state.reading = false;
  38751. // if we want the data now, just emit it.
  38752. if (state.flowing && state.length === 0 && !state.sync) {
  38753. stream.emit('data', chunk);
  38754. stream.read(0);
  38755. } else {
  38756. // update the buffer info.
  38757. state.length += state.objectMode ? 1 : chunk.length;
  38758. if (addToFront)
  38759. state.buffer.unshift(chunk);
  38760. else
  38761. state.buffer.push(chunk);
  38762. if (state.needReadable)
  38763. emitReadable(stream);
  38764. }
  38765. maybeReadMore(stream, state);
  38766. }
  38767. } else if (!addToFront) {
  38768. state.reading = false;
  38769. }
  38770. return needMoreData(state);
  38771. }
  38772. // if it's past the high water mark, we can push in some more.
  38773. // Also, if we have no data yet, we can stand some
  38774. // more bytes. This is to work around cases where hwm=0,
  38775. // such as the repl. Also, if the push() triggered a
  38776. // readable event, and the user called read(largeNumber) such that
  38777. // needReadable was set, then we ought to push more, so that another
  38778. // 'readable' event will be triggered.
  38779. function needMoreData(state) {
  38780. return !state.ended &&
  38781. (state.needReadable ||
  38782. state.length < state.highWaterMark ||
  38783. state.length === 0);
  38784. }
  38785. // backwards compatibility.
  38786. Readable.prototype.setEncoding = function(enc) {
  38787. if (!StringDecoder)
  38788. StringDecoder = __webpack_require__(101).StringDecoder;
  38789. this._readableState.decoder = new StringDecoder(enc);
  38790. this._readableState.encoding = enc;
  38791. return this;
  38792. };
  38793. // Don't raise the hwm > 128MB
  38794. var MAX_HWM = 0x800000;
  38795. function roundUpToNextPowerOf2(n) {
  38796. if (n >= MAX_HWM) {
  38797. n = MAX_HWM;
  38798. } else {
  38799. // Get the next highest power of 2
  38800. n--;
  38801. for (var p = 1; p < 32; p <<= 1) n |= n >> p;
  38802. n++;
  38803. }
  38804. return n;
  38805. }
  38806. function howMuchToRead(n, state) {
  38807. if (state.length === 0 && state.ended)
  38808. return 0;
  38809. if (state.objectMode)
  38810. return n === 0 ? 0 : 1;
  38811. if (isNaN(n) || util.isNull(n)) {
  38812. // only flow one buffer at a time
  38813. if (state.flowing && state.buffer.length)
  38814. return state.buffer[0].length;
  38815. else
  38816. return state.length;
  38817. }
  38818. if (n <= 0)
  38819. return 0;
  38820. // If we're asking for more than the target buffer level,
  38821. // then raise the water mark. Bump up to the next highest
  38822. // power of 2, to prevent increasing it excessively in tiny
  38823. // amounts.
  38824. if (n > state.highWaterMark)
  38825. state.highWaterMark = roundUpToNextPowerOf2(n);
  38826. // don't have that much. return null, unless we've ended.
  38827. if (n > state.length) {
  38828. if (!state.ended) {
  38829. state.needReadable = true;
  38830. return 0;
  38831. } else
  38832. return state.length;
  38833. }
  38834. return n;
  38835. }
  38836. // you can override either this method, or the async _read(n) below.
  38837. Readable.prototype.read = function(n) {
  38838. debug('read', n);
  38839. var state = this._readableState;
  38840. var nOrig = n;
  38841. if (!util.isNumber(n) || n > 0)
  38842. state.emittedReadable = false;
  38843. // if we're doing read(0) to trigger a readable event, but we
  38844. // already have a bunch of data in the buffer, then just trigger
  38845. // the 'readable' event and move on.
  38846. if (n === 0 &&
  38847. state.needReadable &&
  38848. (state.length >= state.highWaterMark || state.ended)) {
  38849. debug('read: emitReadable', state.length, state.ended);
  38850. if (state.length === 0 && state.ended)
  38851. endReadable(this);
  38852. else
  38853. emitReadable(this);
  38854. return null;
  38855. }
  38856. n = howMuchToRead(n, state);
  38857. // if we've ended, and we're now clear, then finish it up.
  38858. if (n === 0 && state.ended) {
  38859. if (state.length === 0)
  38860. endReadable(this);
  38861. return null;
  38862. }
  38863. // All the actual chunk generation logic needs to be
  38864. // *below* the call to _read. The reason is that in certain
  38865. // synthetic stream cases, such as passthrough streams, _read
  38866. // may be a completely synchronous operation which may change
  38867. // the state of the read buffer, providing enough data when
  38868. // before there was *not* enough.
  38869. //
  38870. // So, the steps are:
  38871. // 1. Figure out what the state of things will be after we do
  38872. // a read from the buffer.
  38873. //
  38874. // 2. If that resulting state will trigger a _read, then call _read.
  38875. // Note that this may be asynchronous, or synchronous. Yes, it is
  38876. // deeply ugly to write APIs this way, but that still doesn't mean
  38877. // that the Readable class should behave improperly, as streams are
  38878. // designed to be sync/async agnostic.
  38879. // Take note if the _read call is sync or async (ie, if the read call
  38880. // has returned yet), so that we know whether or not it's safe to emit
  38881. // 'readable' etc.
  38882. //
  38883. // 3. Actually pull the requested chunks out of the buffer and return.
  38884. // if we need a readable event, then we need to do some reading.
  38885. var doRead = state.needReadable;
  38886. debug('need readable', doRead);
  38887. // if we currently have less than the highWaterMark, then also read some
  38888. if (state.length === 0 || state.length - n < state.highWaterMark) {
  38889. doRead = true;
  38890. debug('length less than watermark', doRead);
  38891. }
  38892. // however, if we've ended, then there's no point, and if we're already
  38893. // reading, then it's unnecessary.
  38894. if (state.ended || state.reading) {
  38895. doRead = false;
  38896. debug('reading or ended', doRead);
  38897. }
  38898. if (doRead) {
  38899. debug('do read');
  38900. state.reading = true;
  38901. state.sync = true;
  38902. // if the length is currently zero, then we *need* a readable event.
  38903. if (state.length === 0)
  38904. state.needReadable = true;
  38905. // call internal read method
  38906. this._read(state.highWaterMark);
  38907. state.sync = false;
  38908. }
  38909. // If _read pushed data synchronously, then `reading` will be false,
  38910. // and we need to re-evaluate how much data we can return to the user.
  38911. if (doRead && !state.reading)
  38912. n = howMuchToRead(nOrig, state);
  38913. var ret;
  38914. if (n > 0)
  38915. ret = fromList(n, state);
  38916. else
  38917. ret = null;
  38918. if (util.isNull(ret)) {
  38919. state.needReadable = true;
  38920. n = 0;
  38921. }
  38922. state.length -= n;
  38923. // If we have nothing in the buffer, then we want to know
  38924. // as soon as we *do* get something into the buffer.
  38925. if (state.length === 0 && !state.ended)
  38926. state.needReadable = true;
  38927. // If we tried to read() past the EOF, then emit end on the next tick.
  38928. if (nOrig !== n && state.ended && state.length === 0)
  38929. endReadable(this);
  38930. if (!util.isNull(ret))
  38931. this.emit('data', ret);
  38932. return ret;
  38933. };
  38934. function chunkInvalid(state, chunk) {
  38935. var er = null;
  38936. if (!util.isBuffer(chunk) &&
  38937. !util.isString(chunk) &&
  38938. !util.isNullOrUndefined(chunk) &&
  38939. !state.objectMode) {
  38940. er = new TypeError('Invalid non-string/buffer chunk');
  38941. }
  38942. return er;
  38943. }
  38944. function onEofChunk(stream, state) {
  38945. if (state.decoder && !state.ended) {
  38946. var chunk = state.decoder.end();
  38947. if (chunk && chunk.length) {
  38948. state.buffer.push(chunk);
  38949. state.length += state.objectMode ? 1 : chunk.length;
  38950. }
  38951. }
  38952. state.ended = true;
  38953. // emit 'readable' now to make sure it gets picked up.
  38954. emitReadable(stream);
  38955. }
  38956. // Don't emit readable right away in sync mode, because this can trigger
  38957. // another read() call => stack overflow. This way, it might trigger
  38958. // a nextTick recursion warning, but that's not so bad.
  38959. function emitReadable(stream) {
  38960. var state = stream._readableState;
  38961. state.needReadable = false;
  38962. if (!state.emittedReadable) {
  38963. debug('emitReadable', state.flowing);
  38964. state.emittedReadable = true;
  38965. if (state.sync)
  38966. process.nextTick(function() {
  38967. emitReadable_(stream);
  38968. });
  38969. else
  38970. emitReadable_(stream);
  38971. }
  38972. }
  38973. function emitReadable_(stream) {
  38974. debug('emit readable');
  38975. stream.emit('readable');
  38976. flow(stream);
  38977. }
  38978. // at this point, the user has presumably seen the 'readable' event,
  38979. // and called read() to consume some data. that may have triggered
  38980. // in turn another _read(n) call, in which case reading = true if
  38981. // it's in progress.
  38982. // However, if we're not ended, or reading, and the length < hwm,
  38983. // then go ahead and try to read some more preemptively.
  38984. function maybeReadMore(stream, state) {
  38985. if (!state.readingMore) {
  38986. state.readingMore = true;
  38987. process.nextTick(function() {
  38988. maybeReadMore_(stream, state);
  38989. });
  38990. }
  38991. }
  38992. function maybeReadMore_(stream, state) {
  38993. var len = state.length;
  38994. while (!state.reading && !state.flowing && !state.ended &&
  38995. state.length < state.highWaterMark) {
  38996. debug('maybeReadMore read 0');
  38997. stream.read(0);
  38998. if (len === state.length)
  38999. // didn't get any data, stop spinning.
  39000. break;
  39001. else
  39002. len = state.length;
  39003. }
  39004. state.readingMore = false;
  39005. }
  39006. // abstract method. to be overridden in specific implementation classes.
  39007. // call cb(er, data) where data is <= n in length.
  39008. // for virtual (non-string, non-buffer) streams, "length" is somewhat
  39009. // arbitrary, and perhaps not very meaningful.
  39010. Readable.prototype._read = function(n) {
  39011. this.emit('error', new Error('not implemented'));
  39012. };
  39013. Readable.prototype.pipe = function(dest, pipeOpts) {
  39014. var src = this;
  39015. var state = this._readableState;
  39016. switch (state.pipesCount) {
  39017. case 0:
  39018. state.pipes = dest;
  39019. break;
  39020. case 1:
  39021. state.pipes = [state.pipes, dest];
  39022. break;
  39023. default:
  39024. state.pipes.push(dest);
  39025. break;
  39026. }
  39027. state.pipesCount += 1;
  39028. debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts);
  39029. var doEnd = (!pipeOpts || pipeOpts.end !== false) &&
  39030. dest !== process.stdout &&
  39031. dest !== process.stderr;
  39032. var endFn = doEnd ? onend : cleanup;
  39033. if (state.endEmitted)
  39034. process.nextTick(endFn);
  39035. else
  39036. src.once('end', endFn);
  39037. dest.on('unpipe', onunpipe);
  39038. function onunpipe(readable) {
  39039. debug('onunpipe');
  39040. if (readable === src) {
  39041. cleanup();
  39042. }
  39043. }
  39044. function onend() {
  39045. debug('onend');
  39046. dest.end();
  39047. }
  39048. // when the dest drains, it reduces the awaitDrain counter
  39049. // on the source. This would be more elegant with a .once()
  39050. // handler in flow(), but adding and removing repeatedly is
  39051. // too slow.
  39052. var ondrain = pipeOnDrain(src);
  39053. dest.on('drain', ondrain);
  39054. function cleanup() {
  39055. debug('cleanup');
  39056. // cleanup event handlers once the pipe is broken
  39057. dest.removeListener('close', onclose);
  39058. dest.removeListener('finish', onfinish);
  39059. dest.removeListener('drain', ondrain);
  39060. dest.removeListener('error', onerror);
  39061. dest.removeListener('unpipe', onunpipe);
  39062. src.removeListener('end', onend);
  39063. src.removeListener('end', cleanup);
  39064. src.removeListener('data', ondata);
  39065. // if the reader is waiting for a drain event from this
  39066. // specific writer, then it would cause it to never start
  39067. // flowing again.
  39068. // So, if this is awaiting a drain, then we just call it now.
  39069. // If we don't know, then assume that we are waiting for one.
  39070. if (state.awaitDrain &&
  39071. (!dest._writableState || dest._writableState.needDrain))
  39072. ondrain();
  39073. }
  39074. src.on('data', ondata);
  39075. function ondata(chunk) {
  39076. debug('ondata');
  39077. var ret = dest.write(chunk);
  39078. if (false === ret) {
  39079. debug('false write response, pause',
  39080. src._readableState.awaitDrain);
  39081. src._readableState.awaitDrain++;
  39082. src.pause();
  39083. }
  39084. }
  39085. // if the dest has an error, then stop piping into it.
  39086. // however, don't suppress the throwing behavior for this.
  39087. function onerror(er) {
  39088. debug('onerror', er);
  39089. unpipe();
  39090. dest.removeListener('error', onerror);
  39091. if (EE.listenerCount(dest, 'error') === 0)
  39092. dest.emit('error', er);
  39093. }
  39094. // This is a brutally ugly hack to make sure that our error handler
  39095. // is attached before any userland ones. NEVER DO THIS.
  39096. if (!dest._events || !dest._events.error)
  39097. dest.on('error', onerror);
  39098. else if (isArray(dest._events.error))
  39099. dest._events.error.unshift(onerror);
  39100. else
  39101. dest._events.error = [onerror, dest._events.error];
  39102. // Both close and finish should trigger unpipe, but only once.
  39103. function onclose() {
  39104. dest.removeListener('finish', onfinish);
  39105. unpipe();
  39106. }
  39107. dest.once('close', onclose);
  39108. function onfinish() {
  39109. debug('onfinish');
  39110. dest.removeListener('close', onclose);
  39111. unpipe();
  39112. }
  39113. dest.once('finish', onfinish);
  39114. function unpipe() {
  39115. debug('unpipe');
  39116. src.unpipe(dest);
  39117. }
  39118. // tell the dest that it's being piped to
  39119. dest.emit('pipe', src);
  39120. // start the flow if it hasn't been started already.
  39121. if (!state.flowing) {
  39122. debug('pipe resume');
  39123. src.resume();
  39124. }
  39125. return dest;
  39126. };
  39127. function pipeOnDrain(src) {
  39128. return function() {
  39129. var state = src._readableState;
  39130. debug('pipeOnDrain', state.awaitDrain);
  39131. if (state.awaitDrain)
  39132. state.awaitDrain--;
  39133. if (state.awaitDrain === 0 && EE.listenerCount(src, 'data')) {
  39134. state.flowing = true;
  39135. flow(src);
  39136. }
  39137. };
  39138. }
  39139. Readable.prototype.unpipe = function(dest) {
  39140. var state = this._readableState;
  39141. // if we're not piping anywhere, then do nothing.
  39142. if (state.pipesCount === 0)
  39143. return this;
  39144. // just one destination. most common case.
  39145. if (state.pipesCount === 1) {
  39146. // passed in one, but it's not the right one.
  39147. if (dest && dest !== state.pipes)
  39148. return this;
  39149. if (!dest)
  39150. dest = state.pipes;
  39151. // got a match.
  39152. state.pipes = null;
  39153. state.pipesCount = 0;
  39154. state.flowing = false;
  39155. if (dest)
  39156. dest.emit('unpipe', this);
  39157. return this;
  39158. }
  39159. // slow case. multiple pipe destinations.
  39160. if (!dest) {
  39161. // remove all.
  39162. var dests = state.pipes;
  39163. var len = state.pipesCount;
  39164. state.pipes = null;
  39165. state.pipesCount = 0;
  39166. state.flowing = false;
  39167. for (var i = 0; i < len; i++)
  39168. dests[i].emit('unpipe', this);
  39169. return this;
  39170. }
  39171. // try to find the right one.
  39172. var i = indexOf(state.pipes, dest);
  39173. if (i === -1)
  39174. return this;
  39175. state.pipes.splice(i, 1);
  39176. state.pipesCount -= 1;
  39177. if (state.pipesCount === 1)
  39178. state.pipes = state.pipes[0];
  39179. dest.emit('unpipe', this);
  39180. return this;
  39181. };
  39182. // set up data events if they are asked for
  39183. // Ensure readable listeners eventually get something
  39184. Readable.prototype.on = function(ev, fn) {
  39185. var res = Stream.prototype.on.call(this, ev, fn);
  39186. // If listening to data, and it has not explicitly been paused,
  39187. // then call resume to start the flow of data on the next tick.
  39188. if (ev === 'data' && false !== this._readableState.flowing) {
  39189. this.resume();
  39190. }
  39191. if (ev === 'readable' && this.readable) {
  39192. var state = this._readableState;
  39193. if (!state.readableListening) {
  39194. state.readableListening = true;
  39195. state.emittedReadable = false;
  39196. state.needReadable = true;
  39197. if (!state.reading) {
  39198. var self = this;
  39199. process.nextTick(function() {
  39200. debug('readable nexttick read 0');
  39201. self.read(0);
  39202. });
  39203. } else if (state.length) {
  39204. emitReadable(this, state);
  39205. }
  39206. }
  39207. }
  39208. return res;
  39209. };
  39210. Readable.prototype.addListener = Readable.prototype.on;
  39211. // pause() and resume() are remnants of the legacy readable stream API
  39212. // If the user uses them, then switch into old mode.
  39213. Readable.prototype.resume = function() {
  39214. var state = this._readableState;
  39215. if (!state.flowing) {
  39216. debug('resume');
  39217. state.flowing = true;
  39218. if (!state.reading) {
  39219. debug('resume read 0');
  39220. this.read(0);
  39221. }
  39222. resume(this, state);
  39223. }
  39224. return this;
  39225. };
  39226. function resume(stream, state) {
  39227. if (!state.resumeScheduled) {
  39228. state.resumeScheduled = true;
  39229. process.nextTick(function() {
  39230. resume_(stream, state);
  39231. });
  39232. }
  39233. }
  39234. function resume_(stream, state) {
  39235. state.resumeScheduled = false;
  39236. stream.emit('resume');
  39237. flow(stream);
  39238. if (state.flowing && !state.reading)
  39239. stream.read(0);
  39240. }
  39241. Readable.prototype.pause = function() {
  39242. debug('call pause flowing=%j', this._readableState.flowing);
  39243. if (false !== this._readableState.flowing) {
  39244. debug('pause');
  39245. this._readableState.flowing = false;
  39246. this.emit('pause');
  39247. }
  39248. return this;
  39249. };
  39250. function flow(stream) {
  39251. var state = stream._readableState;
  39252. debug('flow', state.flowing);
  39253. if (state.flowing) {
  39254. do {
  39255. var chunk = stream.read();
  39256. } while (null !== chunk && state.flowing);
  39257. }
  39258. }
  39259. // wrap an old-style stream as the async data source.
  39260. // This is *not* part of the readable stream interface.
  39261. // It is an ugly unfortunate mess of history.
  39262. Readable.prototype.wrap = function(stream) {
  39263. var state = this._readableState;
  39264. var paused = false;
  39265. var self = this;
  39266. stream.on('end', function() {
  39267. debug('wrapped end');
  39268. if (state.decoder && !state.ended) {
  39269. var chunk = state.decoder.end();
  39270. if (chunk && chunk.length)
  39271. self.push(chunk);
  39272. }
  39273. self.push(null);
  39274. });
  39275. stream.on('data', function(chunk) {
  39276. debug('wrapped data');
  39277. if (state.decoder)
  39278. chunk = state.decoder.write(chunk);
  39279. if (!chunk || !state.objectMode && !chunk.length)
  39280. return;
  39281. var ret = self.push(chunk);
  39282. if (!ret) {
  39283. paused = true;
  39284. stream.pause();
  39285. }
  39286. });
  39287. // proxy all the other methods.
  39288. // important when wrapping filters and duplexes.
  39289. for (var i in stream) {
  39290. if (util.isFunction(stream[i]) && util.isUndefined(this[i])) {
  39291. this[i] = function(method) { return function() {
  39292. return stream[method].apply(stream, arguments);
  39293. }}(i);
  39294. }
  39295. }
  39296. // proxy certain important events.
  39297. var events = ['error', 'close', 'destroy', 'pause', 'resume'];
  39298. forEach(events, function(ev) {
  39299. stream.on(ev, self.emit.bind(self, ev));
  39300. });
  39301. // when we try to consume some more bytes, simply unpause the
  39302. // underlying stream.
  39303. self._read = function(n) {
  39304. debug('wrapped _read', n);
  39305. if (paused) {
  39306. paused = false;
  39307. stream.resume();
  39308. }
  39309. };
  39310. return self;
  39311. };
  39312. // exposed for testing purposes only.
  39313. Readable._fromList = fromList;
  39314. // Pluck off n bytes from an array of buffers.
  39315. // Length is the combined lengths of all the buffers in the list.
  39316. function fromList(n, state) {
  39317. var list = state.buffer;
  39318. var length = state.length;
  39319. var stringMode = !!state.decoder;
  39320. var objectMode = !!state.objectMode;
  39321. var ret;
  39322. // nothing in the list, definitely empty.
  39323. if (list.length === 0)
  39324. return null;
  39325. if (length === 0)
  39326. ret = null;
  39327. else if (objectMode)
  39328. ret = list.shift();
  39329. else if (!n || n >= length) {
  39330. // read it all, truncate the array.
  39331. if (stringMode)
  39332. ret = list.join('');
  39333. else
  39334. ret = Buffer.concat(list, length);
  39335. list.length = 0;
  39336. } else {
  39337. // read just some of it.
  39338. if (n < list[0].length) {
  39339. // just take a part of the first list item.
  39340. // slice is the same for buffers and strings.
  39341. var buf = list[0];
  39342. ret = buf.slice(0, n);
  39343. list[0] = buf.slice(n);
  39344. } else if (n === list[0].length) {
  39345. // first list is a perfect match
  39346. ret = list.shift();
  39347. } else {
  39348. // complex case.
  39349. // we have enough to cover it, but it spans past the first buffer.
  39350. if (stringMode)
  39351. ret = '';
  39352. else
  39353. ret = new Buffer(n);
  39354. var c = 0;
  39355. for (var i = 0, l = list.length; i < l && c < n; i++) {
  39356. var buf = list[0];
  39357. var cpy = Math.min(n - c, buf.length);
  39358. if (stringMode)
  39359. ret += buf.slice(0, cpy);
  39360. else
  39361. buf.copy(ret, c, 0, cpy);
  39362. if (cpy < buf.length)
  39363. list[0] = buf.slice(cpy);
  39364. else
  39365. list.shift();
  39366. c += cpy;
  39367. }
  39368. }
  39369. }
  39370. return ret;
  39371. }
  39372. function endReadable(stream) {
  39373. var state = stream._readableState;
  39374. // If we get here before consuming all the bytes, then that is a
  39375. // bug in node. Should never happen.
  39376. if (state.length > 0)
  39377. throw new Error('endReadable called on non-empty stream');
  39378. if (!state.endEmitted) {
  39379. state.ended = true;
  39380. process.nextTick(function() {
  39381. // Check that we didn't get one last unshift.
  39382. if (!state.endEmitted && state.length === 0) {
  39383. state.endEmitted = true;
  39384. stream.readable = false;
  39385. stream.emit('end');
  39386. }
  39387. });
  39388. }
  39389. }
  39390. function forEach (xs, f) {
  39391. for (var i = 0, l = xs.length; i < l; i++) {
  39392. f(xs[i], i);
  39393. }
  39394. }
  39395. function indexOf (xs, x) {
  39396. for (var i = 0, l = xs.length; i < l; i++) {
  39397. if (xs[i] === x) return i;
  39398. }
  39399. return -1;
  39400. }
  39401. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(61)))
  39402. /***/ },
  39403. /* 72 */
  39404. /***/ function(module, exports, __webpack_require__) {
  39405. module.exports = function isBuffer(arg) {
  39406. return arg && typeof arg === 'object'
  39407. && typeof arg.copy === 'function'
  39408. && typeof arg.fill === 'function'
  39409. && typeof arg.readUInt8 === 'function';
  39410. }
  39411. /***/ },
  39412. /* 73 */
  39413. /***/ function(module, exports, __webpack_require__) {
  39414. 'use strict';
  39415. module.exports = {
  39416. '2': 'need dictionary', /* Z_NEED_DICT 2 */
  39417. '1': 'stream end', /* Z_STREAM_END 1 */
  39418. '0': '', /* Z_OK 0 */
  39419. '-1': 'file error', /* Z_ERRNO (-1) */
  39420. '-2': 'stream error', /* Z_STREAM_ERROR (-2) */
  39421. '-3': 'data error', /* Z_DATA_ERROR (-3) */
  39422. '-4': 'insufficient memory', /* Z_MEM_ERROR (-4) */
  39423. '-5': 'buffer error', /* Z_BUF_ERROR (-5) */
  39424. '-6': 'incompatible version' /* Z_VERSION_ERROR (-6) */
  39425. };
  39426. /***/ },
  39427. /* 74 */
  39428. /***/ function(module, exports, __webpack_require__) {
  39429. 'use strict';
  39430. var utils = __webpack_require__(98);
  39431. var trees = __webpack_require__(95);
  39432. var adler32 = __webpack_require__(96);
  39433. var crc32 = __webpack_require__(97);
  39434. var msg = __webpack_require__(73);
  39435. /* Public constants ==========================================================*/
  39436. /* ===========================================================================*/
  39437. /* Allowed flush values; see deflate() and inflate() below for details */
  39438. var Z_NO_FLUSH = 0;
  39439. var Z_PARTIAL_FLUSH = 1;
  39440. //var Z_SYNC_FLUSH = 2;
  39441. var Z_FULL_FLUSH = 3;
  39442. var Z_FINISH = 4;
  39443. var Z_BLOCK = 5;
  39444. //var Z_TREES = 6;
  39445. /* Return codes for the compression/decompression functions. Negative values
  39446. * are errors, positive values are used for special but normal events.
  39447. */
  39448. var Z_OK = 0;
  39449. var Z_STREAM_END = 1;
  39450. //var Z_NEED_DICT = 2;
  39451. //var Z_ERRNO = -1;
  39452. var Z_STREAM_ERROR = -2;
  39453. var Z_DATA_ERROR = -3;
  39454. //var Z_MEM_ERROR = -4;
  39455. var Z_BUF_ERROR = -5;
  39456. //var Z_VERSION_ERROR = -6;
  39457. /* compression levels */
  39458. //var Z_NO_COMPRESSION = 0;
  39459. //var Z_BEST_SPEED = 1;
  39460. //var Z_BEST_COMPRESSION = 9;
  39461. var Z_DEFAULT_COMPRESSION = -1;
  39462. var Z_FILTERED = 1;
  39463. var Z_HUFFMAN_ONLY = 2;
  39464. var Z_RLE = 3;
  39465. var Z_FIXED = 4;
  39466. var Z_DEFAULT_STRATEGY = 0;
  39467. /* Possible values of the data_type field (though see inflate()) */
  39468. //var Z_BINARY = 0;
  39469. //var Z_TEXT = 1;
  39470. //var Z_ASCII = 1; // = Z_TEXT
  39471. var Z_UNKNOWN = 2;
  39472. /* The deflate compression method */
  39473. var Z_DEFLATED = 8;
  39474. /*============================================================================*/
  39475. var MAX_MEM_LEVEL = 9;
  39476. /* Maximum value for memLevel in deflateInit2 */
  39477. var MAX_WBITS = 15;
  39478. /* 32K LZ77 window */
  39479. var DEF_MEM_LEVEL = 8;
  39480. var LENGTH_CODES = 29;
  39481. /* number of length codes, not counting the special END_BLOCK code */
  39482. var LITERALS = 256;
  39483. /* number of literal bytes 0..255 */
  39484. var L_CODES = LITERALS + 1 + LENGTH_CODES;
  39485. /* number of Literal or Length codes, including the END_BLOCK code */
  39486. var D_CODES = 30;
  39487. /* number of distance codes */
  39488. var BL_CODES = 19;
  39489. /* number of codes used to transfer the bit lengths */
  39490. var HEAP_SIZE = 2*L_CODES + 1;
  39491. /* maximum heap size */
  39492. var MAX_BITS = 15;
  39493. /* All codes must not exceed MAX_BITS bits */
  39494. var MIN_MATCH = 3;
  39495. var MAX_MATCH = 258;
  39496. var MIN_LOOKAHEAD = (MAX_MATCH + MIN_MATCH + 1);
  39497. var PRESET_DICT = 0x20;
  39498. var INIT_STATE = 42;
  39499. var EXTRA_STATE = 69;
  39500. var NAME_STATE = 73;
  39501. var COMMENT_STATE = 91;
  39502. var HCRC_STATE = 103;
  39503. var BUSY_STATE = 113;
  39504. var FINISH_STATE = 666;
  39505. var BS_NEED_MORE = 1; /* block not completed, need more input or more output */
  39506. var BS_BLOCK_DONE = 2; /* block flush performed */
  39507. var BS_FINISH_STARTED = 3; /* finish started, need only more output at next deflate */
  39508. var BS_FINISH_DONE = 4; /* finish done, accept no more input or output */
  39509. var OS_CODE = 0x03; // Unix :) . Don't detect, use this default.
  39510. function err(strm, errorCode) {
  39511. strm.msg = msg[errorCode];
  39512. return errorCode;
  39513. }
  39514. function rank(f) {
  39515. return ((f) << 1) - ((f) > 4 ? 9 : 0);
  39516. }
  39517. function zero(buf) { var len = buf.length; while (--len >= 0) { buf[len] = 0; } }
  39518. /* =========================================================================
  39519. * Flush as much pending output as possible. All deflate() output goes
  39520. * through this function so some applications may wish to modify it
  39521. * to avoid allocating a large strm->output buffer and copying into it.
  39522. * (See also read_buf()).
  39523. */
  39524. function flush_pending(strm) {
  39525. var s = strm.state;
  39526. //_tr_flush_bits(s);
  39527. var len = s.pending;
  39528. if (len > strm.avail_out) {
  39529. len = strm.avail_out;
  39530. }
  39531. if (len === 0) { return; }
  39532. utils.arraySet(strm.output, s.pending_buf, s.pending_out, len, strm.next_out);
  39533. strm.next_out += len;
  39534. s.pending_out += len;
  39535. strm.total_out += len;
  39536. strm.avail_out -= len;
  39537. s.pending -= len;
  39538. if (s.pending === 0) {
  39539. s.pending_out = 0;
  39540. }
  39541. }
  39542. function flush_block_only (s, last) {
  39543. trees._tr_flush_block(s, (s.block_start >= 0 ? s.block_start : -1), s.strstart - s.block_start, last);
  39544. s.block_start = s.strstart;
  39545. flush_pending(s.strm);
  39546. }
  39547. function put_byte(s, b) {
  39548. s.pending_buf[s.pending++] = b;
  39549. }
  39550. /* =========================================================================
  39551. * Put a short in the pending buffer. The 16-bit value is put in MSB order.
  39552. * IN assertion: the stream state is correct and there is enough room in
  39553. * pending_buf.
  39554. */
  39555. function putShortMSB(s, b) {
  39556. // put_byte(s, (Byte)(b >> 8));
  39557. // put_byte(s, (Byte)(b & 0xff));
  39558. s.pending_buf[s.pending++] = (b >>> 8) & 0xff;
  39559. s.pending_buf[s.pending++] = b & 0xff;
  39560. }
  39561. /* ===========================================================================
  39562. * Read a new buffer from the current input stream, update the adler32
  39563. * and total number of bytes read. All deflate() input goes through
  39564. * this function so some applications may wish to modify it to avoid
  39565. * allocating a large strm->input buffer and copying from it.
  39566. * (See also flush_pending()).
  39567. */
  39568. function read_buf(strm, buf, start, size) {
  39569. var len = strm.avail_in;
  39570. if (len > size) { len = size; }
  39571. if (len === 0) { return 0; }
  39572. strm.avail_in -= len;
  39573. utils.arraySet(buf, strm.input, strm.next_in, len, start);
  39574. if (strm.state.wrap === 1) {
  39575. strm.adler = adler32(strm.adler, buf, len, start);
  39576. }
  39577. else if (strm.state.wrap === 2) {
  39578. strm.adler = crc32(strm.adler, buf, len, start);
  39579. }
  39580. strm.next_in += len;
  39581. strm.total_in += len;
  39582. return len;
  39583. }
  39584. /* ===========================================================================
  39585. * Set match_start to the longest match starting at the given string and
  39586. * return its length. Matches shorter or equal to prev_length are discarded,
  39587. * in which case the result is equal to prev_length and match_start is
  39588. * garbage.
  39589. * IN assertions: cur_match is the head of the hash chain for the current
  39590. * string (strstart) and its distance is <= MAX_DIST, and prev_length >= 1
  39591. * OUT assertion: the match length is not greater than s->lookahead.
  39592. */
  39593. function longest_match(s, cur_match) {
  39594. var chain_length = s.max_chain_length; /* max hash chain length */
  39595. var scan = s.strstart; /* current string */
  39596. var match; /* matched string */
  39597. var len; /* length of current match */
  39598. var best_len = s.prev_length; /* best match length so far */
  39599. var nice_match = s.nice_match; /* stop if match long enough */
  39600. var limit = (s.strstart > (s.w_size - MIN_LOOKAHEAD)) ?
  39601. s.strstart - (s.w_size - MIN_LOOKAHEAD) : 0/*NIL*/;
  39602. var _win = s.window; // shortcut
  39603. var wmask = s.w_mask;
  39604. var prev = s.prev;
  39605. /* Stop when cur_match becomes <= limit. To simplify the code,
  39606. * we prevent matches with the string of window index 0.
  39607. */
  39608. var strend = s.strstart + MAX_MATCH;
  39609. var scan_end1 = _win[scan + best_len - 1];
  39610. var scan_end = _win[scan + best_len];
  39611. /* The code is optimized for HASH_BITS >= 8 and MAX_MATCH-2 multiple of 16.
  39612. * It is easy to get rid of this optimization if necessary.
  39613. */
  39614. // Assert(s->hash_bits >= 8 && MAX_MATCH == 258, "Code too clever");
  39615. /* Do not waste too much time if we already have a good match: */
  39616. if (s.prev_length >= s.good_match) {
  39617. chain_length >>= 2;
  39618. }
  39619. /* Do not look for matches beyond the end of the input. This is necessary
  39620. * to make deflate deterministic.
  39621. */
  39622. if (nice_match > s.lookahead) { nice_match = s.lookahead; }
  39623. // Assert((ulg)s->strstart <= s->window_size-MIN_LOOKAHEAD, "need lookahead");
  39624. do {
  39625. // Assert(cur_match < s->strstart, "no future");
  39626. match = cur_match;
  39627. /* Skip to next match if the match length cannot increase
  39628. * or if the match length is less than 2. Note that the checks below
  39629. * for insufficient lookahead only occur occasionally for performance
  39630. * reasons. Therefore uninitialized memory will be accessed, and
  39631. * conditional jumps will be made that depend on those values.
  39632. * However the length of the match is limited to the lookahead, so
  39633. * the output of deflate is not affected by the uninitialized values.
  39634. */
  39635. if (_win[match + best_len] !== scan_end ||
  39636. _win[match + best_len - 1] !== scan_end1 ||
  39637. _win[match] !== _win[scan] ||
  39638. _win[++match] !== _win[scan + 1]) {
  39639. continue;
  39640. }
  39641. /* The check at best_len-1 can be removed because it will be made
  39642. * again later. (This heuristic is not always a win.)
  39643. * It is not necessary to compare scan[2] and match[2] since they
  39644. * are always equal when the other bytes match, given that
  39645. * the hash keys are equal and that HASH_BITS >= 8.
  39646. */
  39647. scan += 2;
  39648. match++;
  39649. // Assert(*scan == *match, "match[2]?");
  39650. /* We check for insufficient lookahead only every 8th comparison;
  39651. * the 256th check will be made at strstart+258.
  39652. */
  39653. do {
  39654. /*jshint noempty:false*/
  39655. } while (_win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&
  39656. _win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&
  39657. _win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&
  39658. _win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&
  39659. scan < strend);
  39660. // Assert(scan <= s->window+(unsigned)(s->window_size-1), "wild scan");
  39661. len = MAX_MATCH - (strend - scan);
  39662. scan = strend - MAX_MATCH;
  39663. if (len > best_len) {
  39664. s.match_start = cur_match;
  39665. best_len = len;
  39666. if (len >= nice_match) {
  39667. break;
  39668. }
  39669. scan_end1 = _win[scan + best_len - 1];
  39670. scan_end = _win[scan + best_len];
  39671. }
  39672. } while ((cur_match = prev[cur_match & wmask]) > limit && --chain_length !== 0);
  39673. if (best_len <= s.lookahead) {
  39674. return best_len;
  39675. }
  39676. return s.lookahead;
  39677. }
  39678. /* ===========================================================================
  39679. * Fill the window when the lookahead becomes insufficient.
  39680. * Updates strstart and lookahead.
  39681. *
  39682. * IN assertion: lookahead < MIN_LOOKAHEAD
  39683. * OUT assertions: strstart <= window_size-MIN_LOOKAHEAD
  39684. * At least one byte has been read, or avail_in == 0; reads are
  39685. * performed for at least two bytes (required for the zip translate_eol
  39686. * option -- not supported here).
  39687. */
  39688. function fill_window(s) {
  39689. var _w_size = s.w_size;
  39690. var p, n, m, more, str;
  39691. //Assert(s->lookahead < MIN_LOOKAHEAD, "already enough lookahead");
  39692. do {
  39693. more = s.window_size - s.lookahead - s.strstart;
  39694. // JS ints have 32 bit, block below not needed
  39695. /* Deal with !@#$% 64K limit: */
  39696. //if (sizeof(int) <= 2) {
  39697. // if (more == 0 && s->strstart == 0 && s->lookahead == 0) {
  39698. // more = wsize;
  39699. //
  39700. // } else if (more == (unsigned)(-1)) {
  39701. // /* Very unlikely, but possible on 16 bit machine if
  39702. // * strstart == 0 && lookahead == 1 (input done a byte at time)
  39703. // */
  39704. // more--;
  39705. // }
  39706. //}
  39707. /* If the window is almost full and there is insufficient lookahead,
  39708. * move the upper half to the lower one to make room in the upper half.
  39709. */
  39710. if (s.strstart >= _w_size + (_w_size - MIN_LOOKAHEAD)) {
  39711. utils.arraySet(s.window, s.window, _w_size, _w_size, 0);
  39712. s.match_start -= _w_size;
  39713. s.strstart -= _w_size;
  39714. /* we now have strstart >= MAX_DIST */
  39715. s.block_start -= _w_size;
  39716. /* Slide the hash table (could be avoided with 32 bit values
  39717. at the expense of memory usage). We slide even when level == 0
  39718. to keep the hash table consistent if we switch back to level > 0
  39719. later. (Using level 0 permanently is not an optimal usage of
  39720. zlib, so we don't care about this pathological case.)
  39721. */
  39722. n = s.hash_size;
  39723. p = n;
  39724. do {
  39725. m = s.head[--p];
  39726. s.head[p] = (m >= _w_size ? m - _w_size : 0);
  39727. } while (--n);
  39728. n = _w_size;
  39729. p = n;
  39730. do {
  39731. m = s.prev[--p];
  39732. s.prev[p] = (m >= _w_size ? m - _w_size : 0);
  39733. /* If n is not on any hash chain, prev[n] is garbage but
  39734. * its value will never be used.
  39735. */
  39736. } while (--n);
  39737. more += _w_size;
  39738. }
  39739. if (s.strm.avail_in === 0) {
  39740. break;
  39741. }
  39742. /* If there was no sliding:
  39743. * strstart <= WSIZE+MAX_DIST-1 && lookahead <= MIN_LOOKAHEAD - 1 &&
  39744. * more == window_size - lookahead - strstart
  39745. * => more >= window_size - (MIN_LOOKAHEAD-1 + WSIZE + MAX_DIST-1)
  39746. * => more >= window_size - 2*WSIZE + 2
  39747. * In the BIG_MEM or MMAP case (not yet supported),
  39748. * window_size == input_size + MIN_LOOKAHEAD &&
  39749. * strstart + s->lookahead <= input_size => more >= MIN_LOOKAHEAD.
  39750. * Otherwise, window_size == 2*WSIZE so more >= 2.
  39751. * If there was sliding, more >= WSIZE. So in all cases, more >= 2.
  39752. */
  39753. //Assert(more >= 2, "more < 2");
  39754. n = read_buf(s.strm, s.window, s.strstart + s.lookahead, more);
  39755. s.lookahead += n;
  39756. /* Initialize the hash value now that we have some input: */
  39757. if (s.lookahead + s.insert >= MIN_MATCH) {
  39758. str = s.strstart - s.insert;
  39759. s.ins_h = s.window[str];
  39760. /* UPDATE_HASH(s, s->ins_h, s->window[str + 1]); */
  39761. s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[str + 1]) & s.hash_mask;
  39762. //#if MIN_MATCH != 3
  39763. // Call update_hash() MIN_MATCH-3 more times
  39764. //#endif
  39765. while (s.insert) {
  39766. /* UPDATE_HASH(s, s->ins_h, s->window[str + MIN_MATCH-1]); */
  39767. s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[str + MIN_MATCH-1]) & s.hash_mask;
  39768. s.prev[str & s.w_mask] = s.head[s.ins_h];
  39769. s.head[s.ins_h] = str;
  39770. str++;
  39771. s.insert--;
  39772. if (s.lookahead + s.insert < MIN_MATCH) {
  39773. break;
  39774. }
  39775. }
  39776. }
  39777. /* If the whole input has less than MIN_MATCH bytes, ins_h is garbage,
  39778. * but this is not important since only literal bytes will be emitted.
  39779. */
  39780. } while (s.lookahead < MIN_LOOKAHEAD && s.strm.avail_in !== 0);
  39781. /* If the WIN_INIT bytes after the end of the current data have never been
  39782. * written, then zero those bytes in order to avoid memory check reports of
  39783. * the use of uninitialized (or uninitialised as Julian writes) bytes by
  39784. * the longest match routines. Update the high water mark for the next
  39785. * time through here. WIN_INIT is set to MAX_MATCH since the longest match
  39786. * routines allow scanning to strstart + MAX_MATCH, ignoring lookahead.
  39787. */
  39788. // if (s.high_water < s.window_size) {
  39789. // var curr = s.strstart + s.lookahead;
  39790. // var init = 0;
  39791. //
  39792. // if (s.high_water < curr) {
  39793. // /* Previous high water mark below current data -- zero WIN_INIT
  39794. // * bytes or up to end of window, whichever is less.
  39795. // */
  39796. // init = s.window_size - curr;
  39797. // if (init > WIN_INIT)
  39798. // init = WIN_INIT;
  39799. // zmemzero(s->window + curr, (unsigned)init);
  39800. // s->high_water = curr + init;
  39801. // }
  39802. // else if (s->high_water < (ulg)curr + WIN_INIT) {
  39803. // /* High water mark at or above current data, but below current data
  39804. // * plus WIN_INIT -- zero out to current data plus WIN_INIT, or up
  39805. // * to end of window, whichever is less.
  39806. // */
  39807. // init = (ulg)curr + WIN_INIT - s->high_water;
  39808. // if (init > s->window_size - s->high_water)
  39809. // init = s->window_size - s->high_water;
  39810. // zmemzero(s->window + s->high_water, (unsigned)init);
  39811. // s->high_water += init;
  39812. // }
  39813. // }
  39814. //
  39815. // Assert((ulg)s->strstart <= s->window_size - MIN_LOOKAHEAD,
  39816. // "not enough room for search");
  39817. }
  39818. /* ===========================================================================
  39819. * Copy without compression as much as possible from the input stream, return
  39820. * the current block state.
  39821. * This function does not insert new strings in the dictionary since
  39822. * uncompressible data is probably not useful. This function is used
  39823. * only for the level=0 compression option.
  39824. * NOTE: this function should be optimized to avoid extra copying from
  39825. * window to pending_buf.
  39826. */
  39827. function deflate_stored(s, flush) {
  39828. /* Stored blocks are limited to 0xffff bytes, pending_buf is limited
  39829. * to pending_buf_size, and each stored block has a 5 byte header:
  39830. */
  39831. var max_block_size = 0xffff;
  39832. if (max_block_size > s.pending_buf_size - 5) {
  39833. max_block_size = s.pending_buf_size - 5;
  39834. }
  39835. /* Copy as much as possible from input to output: */
  39836. for (;;) {
  39837. /* Fill the window as much as possible: */
  39838. if (s.lookahead <= 1) {
  39839. //Assert(s->strstart < s->w_size+MAX_DIST(s) ||
  39840. // s->block_start >= (long)s->w_size, "slide too late");
  39841. // if (!(s.strstart < s.w_size + (s.w_size - MIN_LOOKAHEAD) ||
  39842. // s.block_start >= s.w_size)) {
  39843. // throw new Error("slide too late");
  39844. // }
  39845. fill_window(s);
  39846. if (s.lookahead === 0 && flush === Z_NO_FLUSH) {
  39847. return BS_NEED_MORE;
  39848. }
  39849. if (s.lookahead === 0) {
  39850. break;
  39851. }
  39852. /* flush the current block */
  39853. }
  39854. //Assert(s->block_start >= 0L, "block gone");
  39855. // if (s.block_start < 0) throw new Error("block gone");
  39856. s.strstart += s.lookahead;
  39857. s.lookahead = 0;
  39858. /* Emit a stored block if pending_buf will be full: */
  39859. var max_start = s.block_start + max_block_size;
  39860. if (s.strstart === 0 || s.strstart >= max_start) {
  39861. /* strstart == 0 is possible when wraparound on 16-bit machine */
  39862. s.lookahead = s.strstart - max_start;
  39863. s.strstart = max_start;
  39864. /*** FLUSH_BLOCK(s, 0); ***/
  39865. flush_block_only(s, false);
  39866. if (s.strm.avail_out === 0) {
  39867. return BS_NEED_MORE;
  39868. }
  39869. /***/
  39870. }
  39871. /* Flush if we may have to slide, otherwise block_start may become
  39872. * negative and the data will be gone:
  39873. */
  39874. if (s.strstart - s.block_start >= (s.w_size - MIN_LOOKAHEAD)) {
  39875. /*** FLUSH_BLOCK(s, 0); ***/
  39876. flush_block_only(s, false);
  39877. if (s.strm.avail_out === 0) {
  39878. return BS_NEED_MORE;
  39879. }
  39880. /***/
  39881. }
  39882. }
  39883. s.insert = 0;
  39884. if (flush === Z_FINISH) {
  39885. /*** FLUSH_BLOCK(s, 1); ***/
  39886. flush_block_only(s, true);
  39887. if (s.strm.avail_out === 0) {
  39888. return BS_FINISH_STARTED;
  39889. }
  39890. /***/
  39891. return BS_FINISH_DONE;
  39892. }
  39893. if (s.strstart > s.block_start) {
  39894. /*** FLUSH_BLOCK(s, 0); ***/
  39895. flush_block_only(s, false);
  39896. if (s.strm.avail_out === 0) {
  39897. return BS_NEED_MORE;
  39898. }
  39899. /***/
  39900. }
  39901. return BS_NEED_MORE;
  39902. }
  39903. /* ===========================================================================
  39904. * Compress as much as possible from the input stream, return the current
  39905. * block state.
  39906. * This function does not perform lazy evaluation of matches and inserts
  39907. * new strings in the dictionary only for unmatched strings or for short
  39908. * matches. It is used only for the fast compression options.
  39909. */
  39910. function deflate_fast(s, flush) {
  39911. var hash_head; /* head of the hash chain */
  39912. var bflush; /* set if current block must be flushed */
  39913. for (;;) {
  39914. /* Make sure that we always have enough lookahead, except
  39915. * at the end of the input file. We need MAX_MATCH bytes
  39916. * for the next match, plus MIN_MATCH bytes to insert the
  39917. * string following the next match.
  39918. */
  39919. if (s.lookahead < MIN_LOOKAHEAD) {
  39920. fill_window(s);
  39921. if (s.lookahead < MIN_LOOKAHEAD && flush === Z_NO_FLUSH) {
  39922. return BS_NEED_MORE;
  39923. }
  39924. if (s.lookahead === 0) {
  39925. break; /* flush the current block */
  39926. }
  39927. }
  39928. /* Insert the string window[strstart .. strstart+2] in the
  39929. * dictionary, and set hash_head to the head of the hash chain:
  39930. */
  39931. hash_head = 0/*NIL*/;
  39932. if (s.lookahead >= MIN_MATCH) {
  39933. /*** INSERT_STRING(s, s.strstart, hash_head); ***/
  39934. s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask;
  39935. hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];
  39936. s.head[s.ins_h] = s.strstart;
  39937. /***/
  39938. }
  39939. /* Find the longest match, discarding those <= prev_length.
  39940. * At this point we have always match_length < MIN_MATCH
  39941. */
  39942. if (hash_head !== 0/*NIL*/ && ((s.strstart - hash_head) <= (s.w_size - MIN_LOOKAHEAD))) {
  39943. /* To simplify the code, we prevent matches with the string
  39944. * of window index 0 (in particular we have to avoid a match
  39945. * of the string with itself at the start of the input file).
  39946. */
  39947. s.match_length = longest_match(s, hash_head);
  39948. /* longest_match() sets match_start */
  39949. }
  39950. if (s.match_length >= MIN_MATCH) {
  39951. // check_match(s, s.strstart, s.match_start, s.match_length); // for debug only
  39952. /*** _tr_tally_dist(s, s.strstart - s.match_start,
  39953. s.match_length - MIN_MATCH, bflush); ***/
  39954. bflush = trees._tr_tally(s, s.strstart - s.match_start, s.match_length - MIN_MATCH);
  39955. s.lookahead -= s.match_length;
  39956. /* Insert new strings in the hash table only if the match length
  39957. * is not too large. This saves time but degrades compression.
  39958. */
  39959. if (s.match_length <= s.max_lazy_match/*max_insert_length*/ && s.lookahead >= MIN_MATCH) {
  39960. s.match_length--; /* string at strstart already in table */
  39961. do {
  39962. s.strstart++;
  39963. /*** INSERT_STRING(s, s.strstart, hash_head); ***/
  39964. s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask;
  39965. hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];
  39966. s.head[s.ins_h] = s.strstart;
  39967. /***/
  39968. /* strstart never exceeds WSIZE-MAX_MATCH, so there are
  39969. * always MIN_MATCH bytes ahead.
  39970. */
  39971. } while (--s.match_length !== 0);
  39972. s.strstart++;
  39973. } else
  39974. {
  39975. s.strstart += s.match_length;
  39976. s.match_length = 0;
  39977. s.ins_h = s.window[s.strstart];
  39978. /* UPDATE_HASH(s, s.ins_h, s.window[s.strstart+1]); */
  39979. s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + 1]) & s.hash_mask;
  39980. //#if MIN_MATCH != 3
  39981. // Call UPDATE_HASH() MIN_MATCH-3 more times
  39982. //#endif
  39983. /* If lookahead < MIN_MATCH, ins_h is garbage, but it does not
  39984. * matter since it will be recomputed at next deflate call.
  39985. */
  39986. }
  39987. } else {
  39988. /* No match, output a literal byte */
  39989. //Tracevv((stderr,"%c", s.window[s.strstart]));
  39990. /*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/
  39991. bflush = trees._tr_tally(s, 0, s.window[s.strstart]);
  39992. s.lookahead--;
  39993. s.strstart++;
  39994. }
  39995. if (bflush) {
  39996. /*** FLUSH_BLOCK(s, 0); ***/
  39997. flush_block_only(s, false);
  39998. if (s.strm.avail_out === 0) {
  39999. return BS_NEED_MORE;
  40000. }
  40001. /***/
  40002. }
  40003. }
  40004. s.insert = ((s.strstart < (MIN_MATCH-1)) ? s.strstart : MIN_MATCH-1);
  40005. if (flush === Z_FINISH) {
  40006. /*** FLUSH_BLOCK(s, 1); ***/
  40007. flush_block_only(s, true);
  40008. if (s.strm.avail_out === 0) {
  40009. return BS_FINISH_STARTED;
  40010. }
  40011. /***/
  40012. return BS_FINISH_DONE;
  40013. }
  40014. if (s.last_lit) {
  40015. /*** FLUSH_BLOCK(s, 0); ***/
  40016. flush_block_only(s, false);
  40017. if (s.strm.avail_out === 0) {
  40018. return BS_NEED_MORE;
  40019. }
  40020. /***/
  40021. }
  40022. return BS_BLOCK_DONE;
  40023. }
  40024. /* ===========================================================================
  40025. * Same as above, but achieves better compression. We use a lazy
  40026. * evaluation for matches: a match is finally adopted only if there is
  40027. * no better match at the next window position.
  40028. */
  40029. function deflate_slow(s, flush) {
  40030. var hash_head; /* head of hash chain */
  40031. var bflush; /* set if current block must be flushed */
  40032. var max_insert;
  40033. /* Process the input block. */
  40034. for (;;) {
  40035. /* Make sure that we always have enough lookahead, except
  40036. * at the end of the input file. We need MAX_MATCH bytes
  40037. * for the next match, plus MIN_MATCH bytes to insert the
  40038. * string following the next match.
  40039. */
  40040. if (s.lookahead < MIN_LOOKAHEAD) {
  40041. fill_window(s);
  40042. if (s.lookahead < MIN_LOOKAHEAD && flush === Z_NO_FLUSH) {
  40043. return BS_NEED_MORE;
  40044. }
  40045. if (s.lookahead === 0) { break; } /* flush the current block */
  40046. }
  40047. /* Insert the string window[strstart .. strstart+2] in the
  40048. * dictionary, and set hash_head to the head of the hash chain:
  40049. */
  40050. hash_head = 0/*NIL*/;
  40051. if (s.lookahead >= MIN_MATCH) {
  40052. /*** INSERT_STRING(s, s.strstart, hash_head); ***/
  40053. s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask;
  40054. hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];
  40055. s.head[s.ins_h] = s.strstart;
  40056. /***/
  40057. }
  40058. /* Find the longest match, discarding those <= prev_length.
  40059. */
  40060. s.prev_length = s.match_length;
  40061. s.prev_match = s.match_start;
  40062. s.match_length = MIN_MATCH-1;
  40063. if (hash_head !== 0/*NIL*/ && s.prev_length < s.max_lazy_match &&
  40064. s.strstart - hash_head <= (s.w_size-MIN_LOOKAHEAD)/*MAX_DIST(s)*/) {
  40065. /* To simplify the code, we prevent matches with the string
  40066. * of window index 0 (in particular we have to avoid a match
  40067. * of the string with itself at the start of the input file).
  40068. */
  40069. s.match_length = longest_match(s, hash_head);
  40070. /* longest_match() sets match_start */
  40071. if (s.match_length <= 5 &&
  40072. (s.strategy === Z_FILTERED || (s.match_length === MIN_MATCH && s.strstart - s.match_start > 4096/*TOO_FAR*/))) {
  40073. /* If prev_match is also MIN_MATCH, match_start is garbage
  40074. * but we will ignore the current match anyway.
  40075. */
  40076. s.match_length = MIN_MATCH-1;
  40077. }
  40078. }
  40079. /* If there was a match at the previous step and the current
  40080. * match is not better, output the previous match:
  40081. */
  40082. if (s.prev_length >= MIN_MATCH && s.match_length <= s.prev_length) {
  40083. max_insert = s.strstart + s.lookahead - MIN_MATCH;
  40084. /* Do not insert strings in hash table beyond this. */
  40085. //check_match(s, s.strstart-1, s.prev_match, s.prev_length);
  40086. /***_tr_tally_dist(s, s.strstart - 1 - s.prev_match,
  40087. s.prev_length - MIN_MATCH, bflush);***/
  40088. bflush = trees._tr_tally(s, s.strstart - 1- s.prev_match, s.prev_length - MIN_MATCH);
  40089. /* Insert in hash table all strings up to the end of the match.
  40090. * strstart-1 and strstart are already inserted. If there is not
  40091. * enough lookahead, the last two strings are not inserted in
  40092. * the hash table.
  40093. */
  40094. s.lookahead -= s.prev_length-1;
  40095. s.prev_length -= 2;
  40096. do {
  40097. if (++s.strstart <= max_insert) {
  40098. /*** INSERT_STRING(s, s.strstart, hash_head); ***/
  40099. s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask;
  40100. hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];
  40101. s.head[s.ins_h] = s.strstart;
  40102. /***/
  40103. }
  40104. } while (--s.prev_length !== 0);
  40105. s.match_available = 0;
  40106. s.match_length = MIN_MATCH-1;
  40107. s.strstart++;
  40108. if (bflush) {
  40109. /*** FLUSH_BLOCK(s, 0); ***/
  40110. flush_block_only(s, false);
  40111. if (s.strm.avail_out === 0) {
  40112. return BS_NEED_MORE;
  40113. }
  40114. /***/
  40115. }
  40116. } else if (s.match_available) {
  40117. /* If there was no match at the previous position, output a
  40118. * single literal. If there was a match but the current match
  40119. * is longer, truncate the previous match to a single literal.
  40120. */
  40121. //Tracevv((stderr,"%c", s->window[s->strstart-1]));
  40122. /*** _tr_tally_lit(s, s.window[s.strstart-1], bflush); ***/
  40123. bflush = trees._tr_tally(s, 0, s.window[s.strstart-1]);
  40124. if (bflush) {
  40125. /*** FLUSH_BLOCK_ONLY(s, 0) ***/
  40126. flush_block_only(s, false);
  40127. /***/
  40128. }
  40129. s.strstart++;
  40130. s.lookahead--;
  40131. if (s.strm.avail_out === 0) {
  40132. return BS_NEED_MORE;
  40133. }
  40134. } else {
  40135. /* There is no previous match to compare with, wait for
  40136. * the next step to decide.
  40137. */
  40138. s.match_available = 1;
  40139. s.strstart++;
  40140. s.lookahead--;
  40141. }
  40142. }
  40143. //Assert (flush != Z_NO_FLUSH, "no flush?");
  40144. if (s.match_available) {
  40145. //Tracevv((stderr,"%c", s->window[s->strstart-1]));
  40146. /*** _tr_tally_lit(s, s.window[s.strstart-1], bflush); ***/
  40147. bflush = trees._tr_tally(s, 0, s.window[s.strstart-1]);
  40148. s.match_available = 0;
  40149. }
  40150. s.insert = s.strstart < MIN_MATCH-1 ? s.strstart : MIN_MATCH-1;
  40151. if (flush === Z_FINISH) {
  40152. /*** FLUSH_BLOCK(s, 1); ***/
  40153. flush_block_only(s, true);
  40154. if (s.strm.avail_out === 0) {
  40155. return BS_FINISH_STARTED;
  40156. }
  40157. /***/
  40158. return BS_FINISH_DONE;
  40159. }
  40160. if (s.last_lit) {
  40161. /*** FLUSH_BLOCK(s, 0); ***/
  40162. flush_block_only(s, false);
  40163. if (s.strm.avail_out === 0) {
  40164. return BS_NEED_MORE;
  40165. }
  40166. /***/
  40167. }
  40168. return BS_BLOCK_DONE;
  40169. }
  40170. /* ===========================================================================
  40171. * For Z_RLE, simply look for runs of bytes, generate matches only of distance
  40172. * one. Do not maintain a hash table. (It will be regenerated if this run of
  40173. * deflate switches away from Z_RLE.)
  40174. */
  40175. function deflate_rle(s, flush) {
  40176. var bflush; /* set if current block must be flushed */
  40177. var prev; /* byte at distance one to match */
  40178. var scan, strend; /* scan goes up to strend for length of run */
  40179. var _win = s.window;
  40180. for (;;) {
  40181. /* Make sure that we always have enough lookahead, except
  40182. * at the end of the input file. We need MAX_MATCH bytes
  40183. * for the longest run, plus one for the unrolled loop.
  40184. */
  40185. if (s.lookahead <= MAX_MATCH) {
  40186. fill_window(s);
  40187. if (s.lookahead <= MAX_MATCH && flush === Z_NO_FLUSH) {
  40188. return BS_NEED_MORE;
  40189. }
  40190. if (s.lookahead === 0) { break; } /* flush the current block */
  40191. }
  40192. /* See how many times the previous byte repeats */
  40193. s.match_length = 0;
  40194. if (s.lookahead >= MIN_MATCH && s.strstart > 0) {
  40195. scan = s.strstart - 1;
  40196. prev = _win[scan];
  40197. if (prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan]) {
  40198. strend = s.strstart + MAX_MATCH;
  40199. do {
  40200. /*jshint noempty:false*/
  40201. } while (prev === _win[++scan] && prev === _win[++scan] &&
  40202. prev === _win[++scan] && prev === _win[++scan] &&
  40203. prev === _win[++scan] && prev === _win[++scan] &&
  40204. prev === _win[++scan] && prev === _win[++scan] &&
  40205. scan < strend);
  40206. s.match_length = MAX_MATCH - (strend - scan);
  40207. if (s.match_length > s.lookahead) {
  40208. s.match_length = s.lookahead;
  40209. }
  40210. }
  40211. //Assert(scan <= s->window+(uInt)(s->window_size-1), "wild scan");
  40212. }
  40213. /* Emit match if have run of MIN_MATCH or longer, else emit literal */
  40214. if (s.match_length >= MIN_MATCH) {
  40215. //check_match(s, s.strstart, s.strstart - 1, s.match_length);
  40216. /*** _tr_tally_dist(s, 1, s.match_length - MIN_MATCH, bflush); ***/
  40217. bflush = trees._tr_tally(s, 1, s.match_length - MIN_MATCH);
  40218. s.lookahead -= s.match_length;
  40219. s.strstart += s.match_length;
  40220. s.match_length = 0;
  40221. } else {
  40222. /* No match, output a literal byte */
  40223. //Tracevv((stderr,"%c", s->window[s->strstart]));
  40224. /*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/
  40225. bflush = trees._tr_tally(s, 0, s.window[s.strstart]);
  40226. s.lookahead--;
  40227. s.strstart++;
  40228. }
  40229. if (bflush) {
  40230. /*** FLUSH_BLOCK(s, 0); ***/
  40231. flush_block_only(s, false);
  40232. if (s.strm.avail_out === 0) {
  40233. return BS_NEED_MORE;
  40234. }
  40235. /***/
  40236. }
  40237. }
  40238. s.insert = 0;
  40239. if (flush === Z_FINISH) {
  40240. /*** FLUSH_BLOCK(s, 1); ***/
  40241. flush_block_only(s, true);
  40242. if (s.strm.avail_out === 0) {
  40243. return BS_FINISH_STARTED;
  40244. }
  40245. /***/
  40246. return BS_FINISH_DONE;
  40247. }
  40248. if (s.last_lit) {
  40249. /*** FLUSH_BLOCK(s, 0); ***/
  40250. flush_block_only(s, false);
  40251. if (s.strm.avail_out === 0) {
  40252. return BS_NEED_MORE;
  40253. }
  40254. /***/
  40255. }
  40256. return BS_BLOCK_DONE;
  40257. }
  40258. /* ===========================================================================
  40259. * For Z_HUFFMAN_ONLY, do not look for matches. Do not maintain a hash table.
  40260. * (It will be regenerated if this run of deflate switches away from Huffman.)
  40261. */
  40262. function deflate_huff(s, flush) {
  40263. var bflush; /* set if current block must be flushed */
  40264. for (;;) {
  40265. /* Make sure that we have a literal to write. */
  40266. if (s.lookahead === 0) {
  40267. fill_window(s);
  40268. if (s.lookahead === 0) {
  40269. if (flush === Z_NO_FLUSH) {
  40270. return BS_NEED_MORE;
  40271. }
  40272. break; /* flush the current block */
  40273. }
  40274. }
  40275. /* Output a literal byte */
  40276. s.match_length = 0;
  40277. //Tracevv((stderr,"%c", s->window[s->strstart]));
  40278. /*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/
  40279. bflush = trees._tr_tally(s, 0, s.window[s.strstart]);
  40280. s.lookahead--;
  40281. s.strstart++;
  40282. if (bflush) {
  40283. /*** FLUSH_BLOCK(s, 0); ***/
  40284. flush_block_only(s, false);
  40285. if (s.strm.avail_out === 0) {
  40286. return BS_NEED_MORE;
  40287. }
  40288. /***/
  40289. }
  40290. }
  40291. s.insert = 0;
  40292. if (flush === Z_FINISH) {
  40293. /*** FLUSH_BLOCK(s, 1); ***/
  40294. flush_block_only(s, true);
  40295. if (s.strm.avail_out === 0) {
  40296. return BS_FINISH_STARTED;
  40297. }
  40298. /***/
  40299. return BS_FINISH_DONE;
  40300. }
  40301. if (s.last_lit) {
  40302. /*** FLUSH_BLOCK(s, 0); ***/
  40303. flush_block_only(s, false);
  40304. if (s.strm.avail_out === 0) {
  40305. return BS_NEED_MORE;
  40306. }
  40307. /***/
  40308. }
  40309. return BS_BLOCK_DONE;
  40310. }
  40311. /* Values for max_lazy_match, good_match and max_chain_length, depending on
  40312. * the desired pack level (0..9). The values given below have been tuned to
  40313. * exclude worst case performance for pathological files. Better values may be
  40314. * found for specific files.
  40315. */
  40316. var Config = function (good_length, max_lazy, nice_length, max_chain, func) {
  40317. this.good_length = good_length;
  40318. this.max_lazy = max_lazy;
  40319. this.nice_length = nice_length;
  40320. this.max_chain = max_chain;
  40321. this.func = func;
  40322. };
  40323. var configuration_table;
  40324. configuration_table = [
  40325. /* good lazy nice chain */
  40326. new Config(0, 0, 0, 0, deflate_stored), /* 0 store only */
  40327. new Config(4, 4, 8, 4, deflate_fast), /* 1 max speed, no lazy matches */
  40328. new Config(4, 5, 16, 8, deflate_fast), /* 2 */
  40329. new Config(4, 6, 32, 32, deflate_fast), /* 3 */
  40330. new Config(4, 4, 16, 16, deflate_slow), /* 4 lazy matches */
  40331. new Config(8, 16, 32, 32, deflate_slow), /* 5 */
  40332. new Config(8, 16, 128, 128, deflate_slow), /* 6 */
  40333. new Config(8, 32, 128, 256, deflate_slow), /* 7 */
  40334. new Config(32, 128, 258, 1024, deflate_slow), /* 8 */
  40335. new Config(32, 258, 258, 4096, deflate_slow) /* 9 max compression */
  40336. ];
  40337. /* ===========================================================================
  40338. * Initialize the "longest match" routines for a new zlib stream
  40339. */
  40340. function lm_init(s) {
  40341. s.window_size = 2 * s.w_size;
  40342. /*** CLEAR_HASH(s); ***/
  40343. zero(s.head); // Fill with NIL (= 0);
  40344. /* Set the default configuration parameters:
  40345. */
  40346. s.max_lazy_match = configuration_table[s.level].max_lazy;
  40347. s.good_match = configuration_table[s.level].good_length;
  40348. s.nice_match = configuration_table[s.level].nice_length;
  40349. s.max_chain_length = configuration_table[s.level].max_chain;
  40350. s.strstart = 0;
  40351. s.block_start = 0;
  40352. s.lookahead = 0;
  40353. s.insert = 0;
  40354. s.match_length = s.prev_length = MIN_MATCH - 1;
  40355. s.match_available = 0;
  40356. s.ins_h = 0;
  40357. }
  40358. function DeflateState() {
  40359. this.strm = null; /* pointer back to this zlib stream */
  40360. this.status = 0; /* as the name implies */
  40361. this.pending_buf = null; /* output still pending */
  40362. this.pending_buf_size = 0; /* size of pending_buf */
  40363. this.pending_out = 0; /* next pending byte to output to the stream */
  40364. this.pending = 0; /* nb of bytes in the pending buffer */
  40365. this.wrap = 0; /* bit 0 true for zlib, bit 1 true for gzip */
  40366. this.gzhead = null; /* gzip header information to write */
  40367. this.gzindex = 0; /* where in extra, name, or comment */
  40368. this.method = Z_DEFLATED; /* can only be DEFLATED */
  40369. this.last_flush = -1; /* value of flush param for previous deflate call */
  40370. this.w_size = 0; /* LZ77 window size (32K by default) */
  40371. this.w_bits = 0; /* log2(w_size) (8..16) */
  40372. this.w_mask = 0; /* w_size - 1 */
  40373. this.window = null;
  40374. /* Sliding window. Input bytes are read into the second half of the window,
  40375. * and move to the first half later to keep a dictionary of at least wSize
  40376. * bytes. With this organization, matches are limited to a distance of
  40377. * wSize-MAX_MATCH bytes, but this ensures that IO is always
  40378. * performed with a length multiple of the block size.
  40379. */
  40380. this.window_size = 0;
  40381. /* Actual size of window: 2*wSize, except when the user input buffer
  40382. * is directly used as sliding window.
  40383. */
  40384. this.prev = null;
  40385. /* Link to older string with same hash index. To limit the size of this
  40386. * array to 64K, this link is maintained only for the last 32K strings.
  40387. * An index in this array is thus a window index modulo 32K.
  40388. */
  40389. this.head = null; /* Heads of the hash chains or NIL. */
  40390. this.ins_h = 0; /* hash index of string to be inserted */
  40391. this.hash_size = 0; /* number of elements in hash table */
  40392. this.hash_bits = 0; /* log2(hash_size) */
  40393. this.hash_mask = 0; /* hash_size-1 */
  40394. this.hash_shift = 0;
  40395. /* Number of bits by which ins_h must be shifted at each input
  40396. * step. It must be such that after MIN_MATCH steps, the oldest
  40397. * byte no longer takes part in the hash key, that is:
  40398. * hash_shift * MIN_MATCH >= hash_bits
  40399. */
  40400. this.block_start = 0;
  40401. /* Window position at the beginning of the current output block. Gets
  40402. * negative when the window is moved backwards.
  40403. */
  40404. this.match_length = 0; /* length of best match */
  40405. this.prev_match = 0; /* previous match */
  40406. this.match_available = 0; /* set if previous match exists */
  40407. this.strstart = 0; /* start of string to insert */
  40408. this.match_start = 0; /* start of matching string */
  40409. this.lookahead = 0; /* number of valid bytes ahead in window */
  40410. this.prev_length = 0;
  40411. /* Length of the best match at previous step. Matches not greater than this
  40412. * are discarded. This is used in the lazy match evaluation.
  40413. */
  40414. this.max_chain_length = 0;
  40415. /* To speed up deflation, hash chains are never searched beyond this
  40416. * length. A higher limit improves compression ratio but degrades the
  40417. * speed.
  40418. */
  40419. this.max_lazy_match = 0;
  40420. /* Attempt to find a better match only when the current match is strictly
  40421. * smaller than this value. This mechanism is used only for compression
  40422. * levels >= 4.
  40423. */
  40424. // That's alias to max_lazy_match, don't use directly
  40425. //this.max_insert_length = 0;
  40426. /* Insert new strings in the hash table only if the match length is not
  40427. * greater than this length. This saves time but degrades compression.
  40428. * max_insert_length is used only for compression levels <= 3.
  40429. */
  40430. this.level = 0; /* compression level (1..9) */
  40431. this.strategy = 0; /* favor or force Huffman coding*/
  40432. this.good_match = 0;
  40433. /* Use a faster search when the previous match is longer than this */
  40434. this.nice_match = 0; /* Stop searching when current match exceeds this */
  40435. /* used by trees.c: */
  40436. /* Didn't use ct_data typedef below to suppress compiler warning */
  40437. // struct ct_data_s dyn_ltree[HEAP_SIZE]; /* literal and length tree */
  40438. // struct ct_data_s dyn_dtree[2*D_CODES+1]; /* distance tree */
  40439. // struct ct_data_s bl_tree[2*BL_CODES+1]; /* Huffman tree for bit lengths */
  40440. // Use flat array of DOUBLE size, with interleaved fata,
  40441. // because JS does not support effective
  40442. this.dyn_ltree = new utils.Buf16(HEAP_SIZE * 2);
  40443. this.dyn_dtree = new utils.Buf16((2*D_CODES+1) * 2);
  40444. this.bl_tree = new utils.Buf16((2*BL_CODES+1) * 2);
  40445. zero(this.dyn_ltree);
  40446. zero(this.dyn_dtree);
  40447. zero(this.bl_tree);
  40448. this.l_desc = null; /* desc. for literal tree */
  40449. this.d_desc = null; /* desc. for distance tree */
  40450. this.bl_desc = null; /* desc. for bit length tree */
  40451. //ush bl_count[MAX_BITS+1];
  40452. this.bl_count = new utils.Buf16(MAX_BITS+1);
  40453. /* number of codes at each bit length for an optimal tree */
  40454. //int heap[2*L_CODES+1]; /* heap used to build the Huffman trees */
  40455. this.heap = new utils.Buf16(2*L_CODES+1); /* heap used to build the Huffman trees */
  40456. zero(this.heap);
  40457. this.heap_len = 0; /* number of elements in the heap */
  40458. this.heap_max = 0; /* element of largest frequency */
  40459. /* The sons of heap[n] are heap[2*n] and heap[2*n+1]. heap[0] is not used.
  40460. * The same heap array is used to build all trees.
  40461. */
  40462. this.depth = new utils.Buf16(2*L_CODES+1); //uch depth[2*L_CODES+1];
  40463. zero(this.depth);
  40464. /* Depth of each subtree used as tie breaker for trees of equal frequency
  40465. */
  40466. this.l_buf = 0; /* buffer index for literals or lengths */
  40467. this.lit_bufsize = 0;
  40468. /* Size of match buffer for literals/lengths. There are 4 reasons for
  40469. * limiting lit_bufsize to 64K:
  40470. * - frequencies can be kept in 16 bit counters
  40471. * - if compression is not successful for the first block, all input
  40472. * data is still in the window so we can still emit a stored block even
  40473. * when input comes from standard input. (This can also be done for
  40474. * all blocks if lit_bufsize is not greater than 32K.)
  40475. * - if compression is not successful for a file smaller than 64K, we can
  40476. * even emit a stored file instead of a stored block (saving 5 bytes).
  40477. * This is applicable only for zip (not gzip or zlib).
  40478. * - creating new Huffman trees less frequently may not provide fast
  40479. * adaptation to changes in the input data statistics. (Take for
  40480. * example a binary file with poorly compressible code followed by
  40481. * a highly compressible string table.) Smaller buffer sizes give
  40482. * fast adaptation but have of course the overhead of transmitting
  40483. * trees more frequently.
  40484. * - I can't count above 4
  40485. */
  40486. this.last_lit = 0; /* running index in l_buf */
  40487. this.d_buf = 0;
  40488. /* Buffer index for distances. To simplify the code, d_buf and l_buf have
  40489. * the same number of elements. To use different lengths, an extra flag
  40490. * array would be necessary.
  40491. */
  40492. this.opt_len = 0; /* bit length of current block with optimal trees */
  40493. this.static_len = 0; /* bit length of current block with static trees */
  40494. this.matches = 0; /* number of string matches in current block */
  40495. this.insert = 0; /* bytes at end of window left to insert */
  40496. this.bi_buf = 0;
  40497. /* Output buffer. bits are inserted starting at the bottom (least
  40498. * significant bits).
  40499. */
  40500. this.bi_valid = 0;
  40501. /* Number of valid bits in bi_buf. All bits above the last valid bit
  40502. * are always zero.
  40503. */
  40504. // Used for window memory init. We safely ignore it for JS. That makes
  40505. // sense only for pointers and memory check tools.
  40506. //this.high_water = 0;
  40507. /* High water mark offset in window for initialized bytes -- bytes above
  40508. * this are set to zero in order to avoid memory check warnings when
  40509. * longest match routines access bytes past the input. This is then
  40510. * updated to the new high water mark.
  40511. */
  40512. }
  40513. function deflateResetKeep(strm) {
  40514. var s;
  40515. if (!strm || !strm.state) {
  40516. return err(strm, Z_STREAM_ERROR);
  40517. }
  40518. strm.total_in = strm.total_out = 0;
  40519. strm.data_type = Z_UNKNOWN;
  40520. s = strm.state;
  40521. s.pending = 0;
  40522. s.pending_out = 0;
  40523. if (s.wrap < 0) {
  40524. s.wrap = -s.wrap;
  40525. /* was made negative by deflate(..., Z_FINISH); */
  40526. }
  40527. s.status = (s.wrap ? INIT_STATE : BUSY_STATE);
  40528. strm.adler = (s.wrap === 2) ?
  40529. 0 // crc32(0, Z_NULL, 0)
  40530. :
  40531. 1; // adler32(0, Z_NULL, 0)
  40532. s.last_flush = Z_NO_FLUSH;
  40533. trees._tr_init(s);
  40534. return Z_OK;
  40535. }
  40536. function deflateReset(strm) {
  40537. var ret = deflateResetKeep(strm);
  40538. if (ret === Z_OK) {
  40539. lm_init(strm.state);
  40540. }
  40541. return ret;
  40542. }
  40543. function deflateSetHeader(strm, head) {
  40544. if (!strm || !strm.state) { return Z_STREAM_ERROR; }
  40545. if (strm.state.wrap !== 2) { return Z_STREAM_ERROR; }
  40546. strm.state.gzhead = head;
  40547. return Z_OK;
  40548. }
  40549. function deflateInit2(strm, level, method, windowBits, memLevel, strategy) {
  40550. if (!strm) { // === Z_NULL
  40551. return Z_STREAM_ERROR;
  40552. }
  40553. var wrap = 1;
  40554. if (level === Z_DEFAULT_COMPRESSION) {
  40555. level = 6;
  40556. }
  40557. if (windowBits < 0) { /* suppress zlib wrapper */
  40558. wrap = 0;
  40559. windowBits = -windowBits;
  40560. }
  40561. else if (windowBits > 15) {
  40562. wrap = 2; /* write gzip wrapper instead */
  40563. windowBits -= 16;
  40564. }
  40565. if (memLevel < 1 || memLevel > MAX_MEM_LEVEL || method !== Z_DEFLATED ||
  40566. windowBits < 8 || windowBits > 15 || level < 0 || level > 9 ||
  40567. strategy < 0 || strategy > Z_FIXED) {
  40568. return err(strm, Z_STREAM_ERROR);
  40569. }
  40570. if (windowBits === 8) {
  40571. windowBits = 9;
  40572. }
  40573. /* until 256-byte window bug fixed */
  40574. var s = new DeflateState();
  40575. strm.state = s;
  40576. s.strm = strm;
  40577. s.wrap = wrap;
  40578. s.gzhead = null;
  40579. s.w_bits = windowBits;
  40580. s.w_size = 1 << s.w_bits;
  40581. s.w_mask = s.w_size - 1;
  40582. s.hash_bits = memLevel + 7;
  40583. s.hash_size = 1 << s.hash_bits;
  40584. s.hash_mask = s.hash_size - 1;
  40585. s.hash_shift = ~~((s.hash_bits + MIN_MATCH - 1) / MIN_MATCH);
  40586. s.window = new utils.Buf8(s.w_size * 2);
  40587. s.head = new utils.Buf16(s.hash_size);
  40588. s.prev = new utils.Buf16(s.w_size);
  40589. // Don't need mem init magic for JS.
  40590. //s.high_water = 0; /* nothing written to s->window yet */
  40591. s.lit_bufsize = 1 << (memLevel + 6); /* 16K elements by default */
  40592. s.pending_buf_size = s.lit_bufsize * 4;
  40593. s.pending_buf = new utils.Buf8(s.pending_buf_size);
  40594. s.d_buf = s.lit_bufsize >> 1;
  40595. s.l_buf = (1 + 2) * s.lit_bufsize;
  40596. s.level = level;
  40597. s.strategy = strategy;
  40598. s.method = method;
  40599. return deflateReset(strm);
  40600. }
  40601. function deflateInit(strm, level) {
  40602. return deflateInit2(strm, level, Z_DEFLATED, MAX_WBITS, DEF_MEM_LEVEL, Z_DEFAULT_STRATEGY);
  40603. }
  40604. function deflate(strm, flush) {
  40605. var old_flush, s;
  40606. var beg, val; // for gzip header write only
  40607. if (!strm || !strm.state ||
  40608. flush > Z_BLOCK || flush < 0) {
  40609. return strm ? err(strm, Z_STREAM_ERROR) : Z_STREAM_ERROR;
  40610. }
  40611. s = strm.state;
  40612. if (!strm.output ||
  40613. (!strm.input && strm.avail_in !== 0) ||
  40614. (s.status === FINISH_STATE && flush !== Z_FINISH)) {
  40615. return err(strm, (strm.avail_out === 0) ? Z_BUF_ERROR : Z_STREAM_ERROR);
  40616. }
  40617. s.strm = strm; /* just in case */
  40618. old_flush = s.last_flush;
  40619. s.last_flush = flush;
  40620. /* Write the header */
  40621. if (s.status === INIT_STATE) {
  40622. if (s.wrap === 2) { // GZIP header
  40623. strm.adler = 0; //crc32(0L, Z_NULL, 0);
  40624. put_byte(s, 31);
  40625. put_byte(s, 139);
  40626. put_byte(s, 8);
  40627. if (!s.gzhead) { // s->gzhead == Z_NULL
  40628. put_byte(s, 0);
  40629. put_byte(s, 0);
  40630. put_byte(s, 0);
  40631. put_byte(s, 0);
  40632. put_byte(s, 0);
  40633. put_byte(s, s.level === 9 ? 2 :
  40634. (s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ?
  40635. 4 : 0));
  40636. put_byte(s, OS_CODE);
  40637. s.status = BUSY_STATE;
  40638. }
  40639. else {
  40640. put_byte(s, (s.gzhead.text ? 1 : 0) +
  40641. (s.gzhead.hcrc ? 2 : 0) +
  40642. (!s.gzhead.extra ? 0 : 4) +
  40643. (!s.gzhead.name ? 0 : 8) +
  40644. (!s.gzhead.comment ? 0 : 16)
  40645. );
  40646. put_byte(s, s.gzhead.time & 0xff);
  40647. put_byte(s, (s.gzhead.time >> 8) & 0xff);
  40648. put_byte(s, (s.gzhead.time >> 16) & 0xff);
  40649. put_byte(s, (s.gzhead.time >> 24) & 0xff);
  40650. put_byte(s, s.level === 9 ? 2 :
  40651. (s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ?
  40652. 4 : 0));
  40653. put_byte(s, s.gzhead.os & 0xff);
  40654. if (s.gzhead.extra && s.gzhead.extra.length) {
  40655. put_byte(s, s.gzhead.extra.length & 0xff);
  40656. put_byte(s, (s.gzhead.extra.length >> 8) & 0xff);
  40657. }
  40658. if (s.gzhead.hcrc) {
  40659. strm.adler = crc32(strm.adler, s.pending_buf, s.pending, 0);
  40660. }
  40661. s.gzindex = 0;
  40662. s.status = EXTRA_STATE;
  40663. }
  40664. }
  40665. else // DEFLATE header
  40666. {
  40667. var header = (Z_DEFLATED + ((s.w_bits - 8) << 4)) << 8;
  40668. var level_flags = -1;
  40669. if (s.strategy >= Z_HUFFMAN_ONLY || s.level < 2) {
  40670. level_flags = 0;
  40671. } else if (s.level < 6) {
  40672. level_flags = 1;
  40673. } else if (s.level === 6) {
  40674. level_flags = 2;
  40675. } else {
  40676. level_flags = 3;
  40677. }
  40678. header |= (level_flags << 6);
  40679. if (s.strstart !== 0) { header |= PRESET_DICT; }
  40680. header += 31 - (header % 31);
  40681. s.status = BUSY_STATE;
  40682. putShortMSB(s, header);
  40683. /* Save the adler32 of the preset dictionary: */
  40684. if (s.strstart !== 0) {
  40685. putShortMSB(s, strm.adler >>> 16);
  40686. putShortMSB(s, strm.adler & 0xffff);
  40687. }
  40688. strm.adler = 1; // adler32(0L, Z_NULL, 0);
  40689. }
  40690. }
  40691. //#ifdef GZIP
  40692. if (s.status === EXTRA_STATE) {
  40693. if (s.gzhead.extra/* != Z_NULL*/) {
  40694. beg = s.pending; /* start of bytes to update crc */
  40695. while (s.gzindex < (s.gzhead.extra.length & 0xffff)) {
  40696. if (s.pending === s.pending_buf_size) {
  40697. if (s.gzhead.hcrc && s.pending > beg) {
  40698. strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
  40699. }
  40700. flush_pending(strm);
  40701. beg = s.pending;
  40702. if (s.pending === s.pending_buf_size) {
  40703. break;
  40704. }
  40705. }
  40706. put_byte(s, s.gzhead.extra[s.gzindex] & 0xff);
  40707. s.gzindex++;
  40708. }
  40709. if (s.gzhead.hcrc && s.pending > beg) {
  40710. strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
  40711. }
  40712. if (s.gzindex === s.gzhead.extra.length) {
  40713. s.gzindex = 0;
  40714. s.status = NAME_STATE;
  40715. }
  40716. }
  40717. else {
  40718. s.status = NAME_STATE;
  40719. }
  40720. }
  40721. if (s.status === NAME_STATE) {
  40722. if (s.gzhead.name/* != Z_NULL*/) {
  40723. beg = s.pending; /* start of bytes to update crc */
  40724. //int val;
  40725. do {
  40726. if (s.pending === s.pending_buf_size) {
  40727. if (s.gzhead.hcrc && s.pending > beg) {
  40728. strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
  40729. }
  40730. flush_pending(strm);
  40731. beg = s.pending;
  40732. if (s.pending === s.pending_buf_size) {
  40733. val = 1;
  40734. break;
  40735. }
  40736. }
  40737. // JS specific: little magic to add zero terminator to end of string
  40738. if (s.gzindex < s.gzhead.name.length) {
  40739. val = s.gzhead.name.charCodeAt(s.gzindex++) & 0xff;
  40740. } else {
  40741. val = 0;
  40742. }
  40743. put_byte(s, val);
  40744. } while (val !== 0);
  40745. if (s.gzhead.hcrc && s.pending > beg){
  40746. strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
  40747. }
  40748. if (val === 0) {
  40749. s.gzindex = 0;
  40750. s.status = COMMENT_STATE;
  40751. }
  40752. }
  40753. else {
  40754. s.status = COMMENT_STATE;
  40755. }
  40756. }
  40757. if (s.status === COMMENT_STATE) {
  40758. if (s.gzhead.comment/* != Z_NULL*/) {
  40759. beg = s.pending; /* start of bytes to update crc */
  40760. //int val;
  40761. do {
  40762. if (s.pending === s.pending_buf_size) {
  40763. if (s.gzhead.hcrc && s.pending > beg) {
  40764. strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
  40765. }
  40766. flush_pending(strm);
  40767. beg = s.pending;
  40768. if (s.pending === s.pending_buf_size) {
  40769. val = 1;
  40770. break;
  40771. }
  40772. }
  40773. // JS specific: little magic to add zero terminator to end of string
  40774. if (s.gzindex < s.gzhead.comment.length) {
  40775. val = s.gzhead.comment.charCodeAt(s.gzindex++) & 0xff;
  40776. } else {
  40777. val = 0;
  40778. }
  40779. put_byte(s, val);
  40780. } while (val !== 0);
  40781. if (s.gzhead.hcrc && s.pending > beg) {
  40782. strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
  40783. }
  40784. if (val === 0) {
  40785. s.status = HCRC_STATE;
  40786. }
  40787. }
  40788. else {
  40789. s.status = HCRC_STATE;
  40790. }
  40791. }
  40792. if (s.status === HCRC_STATE) {
  40793. if (s.gzhead.hcrc) {
  40794. if (s.pending + 2 > s.pending_buf_size) {
  40795. flush_pending(strm);
  40796. }
  40797. if (s.pending + 2 <= s.pending_buf_size) {
  40798. put_byte(s, strm.adler & 0xff);
  40799. put_byte(s, (strm.adler >> 8) & 0xff);
  40800. strm.adler = 0; //crc32(0L, Z_NULL, 0);
  40801. s.status = BUSY_STATE;
  40802. }
  40803. }
  40804. else {
  40805. s.status = BUSY_STATE;
  40806. }
  40807. }
  40808. //#endif
  40809. /* Flush as much pending output as possible */
  40810. if (s.pending !== 0) {
  40811. flush_pending(strm);
  40812. if (strm.avail_out === 0) {
  40813. /* Since avail_out is 0, deflate will be called again with
  40814. * more output space, but possibly with both pending and
  40815. * avail_in equal to zero. There won't be anything to do,
  40816. * but this is not an error situation so make sure we
  40817. * return OK instead of BUF_ERROR at next call of deflate:
  40818. */
  40819. s.last_flush = -1;
  40820. return Z_OK;
  40821. }
  40822. /* Make sure there is something to do and avoid duplicate consecutive
  40823. * flushes. For repeated and useless calls with Z_FINISH, we keep
  40824. * returning Z_STREAM_END instead of Z_BUF_ERROR.
  40825. */
  40826. } else if (strm.avail_in === 0 && rank(flush) <= rank(old_flush) &&
  40827. flush !== Z_FINISH) {
  40828. return err(strm, Z_BUF_ERROR);
  40829. }
  40830. /* User must not provide more input after the first FINISH: */
  40831. if (s.status === FINISH_STATE && strm.avail_in !== 0) {
  40832. return err(strm, Z_BUF_ERROR);
  40833. }
  40834. /* Start a new block or continue the current one.
  40835. */
  40836. if (strm.avail_in !== 0 || s.lookahead !== 0 ||
  40837. (flush !== Z_NO_FLUSH && s.status !== FINISH_STATE)) {
  40838. var bstate = (s.strategy === Z_HUFFMAN_ONLY) ? deflate_huff(s, flush) :
  40839. (s.strategy === Z_RLE ? deflate_rle(s, flush) :
  40840. configuration_table[s.level].func(s, flush));
  40841. if (bstate === BS_FINISH_STARTED || bstate === BS_FINISH_DONE) {
  40842. s.status = FINISH_STATE;
  40843. }
  40844. if (bstate === BS_NEED_MORE || bstate === BS_FINISH_STARTED) {
  40845. if (strm.avail_out === 0) {
  40846. s.last_flush = -1;
  40847. /* avoid BUF_ERROR next call, see above */
  40848. }
  40849. return Z_OK;
  40850. /* If flush != Z_NO_FLUSH && avail_out == 0, the next call
  40851. * of deflate should use the same flush parameter to make sure
  40852. * that the flush is complete. So we don't have to output an
  40853. * empty block here, this will be done at next call. This also
  40854. * ensures that for a very small output buffer, we emit at most
  40855. * one empty block.
  40856. */
  40857. }
  40858. if (bstate === BS_BLOCK_DONE) {
  40859. if (flush === Z_PARTIAL_FLUSH) {
  40860. trees._tr_align(s);
  40861. }
  40862. else if (flush !== Z_BLOCK) { /* FULL_FLUSH or SYNC_FLUSH */
  40863. trees._tr_stored_block(s, 0, 0, false);
  40864. /* For a full flush, this empty block will be recognized
  40865. * as a special marker by inflate_sync().
  40866. */
  40867. if (flush === Z_FULL_FLUSH) {
  40868. /*** CLEAR_HASH(s); ***/ /* forget history */
  40869. zero(s.head); // Fill with NIL (= 0);
  40870. if (s.lookahead === 0) {
  40871. s.strstart = 0;
  40872. s.block_start = 0;
  40873. s.insert = 0;
  40874. }
  40875. }
  40876. }
  40877. flush_pending(strm);
  40878. if (strm.avail_out === 0) {
  40879. s.last_flush = -1; /* avoid BUF_ERROR at next call, see above */
  40880. return Z_OK;
  40881. }
  40882. }
  40883. }
  40884. //Assert(strm->avail_out > 0, "bug2");
  40885. //if (strm.avail_out <= 0) { throw new Error("bug2");}
  40886. if (flush !== Z_FINISH) { return Z_OK; }
  40887. if (s.wrap <= 0) { return Z_STREAM_END; }
  40888. /* Write the trailer */
  40889. if (s.wrap === 2) {
  40890. put_byte(s, strm.adler & 0xff);
  40891. put_byte(s, (strm.adler >> 8) & 0xff);
  40892. put_byte(s, (strm.adler >> 16) & 0xff);
  40893. put_byte(s, (strm.adler >> 24) & 0xff);
  40894. put_byte(s, strm.total_in & 0xff);
  40895. put_byte(s, (strm.total_in >> 8) & 0xff);
  40896. put_byte(s, (strm.total_in >> 16) & 0xff);
  40897. put_byte(s, (strm.total_in >> 24) & 0xff);
  40898. }
  40899. else
  40900. {
  40901. putShortMSB(s, strm.adler >>> 16);
  40902. putShortMSB(s, strm.adler & 0xffff);
  40903. }
  40904. flush_pending(strm);
  40905. /* If avail_out is zero, the application will call deflate again
  40906. * to flush the rest.
  40907. */
  40908. if (s.wrap > 0) { s.wrap = -s.wrap; }
  40909. /* write the trailer only once! */
  40910. return s.pending !== 0 ? Z_OK : Z_STREAM_END;
  40911. }
  40912. function deflateEnd(strm) {
  40913. var status;
  40914. if (!strm/*== Z_NULL*/ || !strm.state/*== Z_NULL*/) {
  40915. return Z_STREAM_ERROR;
  40916. }
  40917. status = strm.state.status;
  40918. if (status !== INIT_STATE &&
  40919. status !== EXTRA_STATE &&
  40920. status !== NAME_STATE &&
  40921. status !== COMMENT_STATE &&
  40922. status !== HCRC_STATE &&
  40923. status !== BUSY_STATE &&
  40924. status !== FINISH_STATE
  40925. ) {
  40926. return err(strm, Z_STREAM_ERROR);
  40927. }
  40928. strm.state = null;
  40929. return status === BUSY_STATE ? err(strm, Z_DATA_ERROR) : Z_OK;
  40930. }
  40931. /* =========================================================================
  40932. * Copy the source state to the destination state
  40933. */
  40934. //function deflateCopy(dest, source) {
  40935. //
  40936. //}
  40937. exports.deflateInit = deflateInit;
  40938. exports.deflateInit2 = deflateInit2;
  40939. exports.deflateReset = deflateReset;
  40940. exports.deflateResetKeep = deflateResetKeep;
  40941. exports.deflateSetHeader = deflateSetHeader;
  40942. exports.deflate = deflate;
  40943. exports.deflateEnd = deflateEnd;
  40944. exports.deflateInfo = 'pako deflate (from Nodeca project)';
  40945. /* Not implemented
  40946. exports.deflateBound = deflateBound;
  40947. exports.deflateCopy = deflateCopy;
  40948. exports.deflateSetDictionary = deflateSetDictionary;
  40949. exports.deflateParams = deflateParams;
  40950. exports.deflatePending = deflatePending;
  40951. exports.deflatePrime = deflatePrime;
  40952. exports.deflateTune = deflateTune;
  40953. */
  40954. /***/ },
  40955. /* 75 */
  40956. /***/ function(module, exports, __webpack_require__) {
  40957. 'use strict';
  40958. var utils = __webpack_require__(98);
  40959. var adler32 = __webpack_require__(96);
  40960. var crc32 = __webpack_require__(97);
  40961. var inflate_fast = __webpack_require__(102);
  40962. var inflate_table = __webpack_require__(103);
  40963. var CODES = 0;
  40964. var LENS = 1;
  40965. var DISTS = 2;
  40966. /* Public constants ==========================================================*/
  40967. /* ===========================================================================*/
  40968. /* Allowed flush values; see deflate() and inflate() below for details */
  40969. //var Z_NO_FLUSH = 0;
  40970. //var Z_PARTIAL_FLUSH = 1;
  40971. //var Z_SYNC_FLUSH = 2;
  40972. //var Z_FULL_FLUSH = 3;
  40973. var Z_FINISH = 4;
  40974. var Z_BLOCK = 5;
  40975. var Z_TREES = 6;
  40976. /* Return codes for the compression/decompression functions. Negative values
  40977. * are errors, positive values are used for special but normal events.
  40978. */
  40979. var Z_OK = 0;
  40980. var Z_STREAM_END = 1;
  40981. var Z_NEED_DICT = 2;
  40982. //var Z_ERRNO = -1;
  40983. var Z_STREAM_ERROR = -2;
  40984. var Z_DATA_ERROR = -3;
  40985. var Z_MEM_ERROR = -4;
  40986. var Z_BUF_ERROR = -5;
  40987. //var Z_VERSION_ERROR = -6;
  40988. /* The deflate compression method */
  40989. var Z_DEFLATED = 8;
  40990. /* STATES ====================================================================*/
  40991. /* ===========================================================================*/
  40992. var HEAD = 1; /* i: waiting for magic header */
  40993. var FLAGS = 2; /* i: waiting for method and flags (gzip) */
  40994. var TIME = 3; /* i: waiting for modification time (gzip) */
  40995. var OS = 4; /* i: waiting for extra flags and operating system (gzip) */
  40996. var EXLEN = 5; /* i: waiting for extra length (gzip) */
  40997. var EXTRA = 6; /* i: waiting for extra bytes (gzip) */
  40998. var NAME = 7; /* i: waiting for end of file name (gzip) */
  40999. var COMMENT = 8; /* i: waiting for end of comment (gzip) */
  41000. var HCRC = 9; /* i: waiting for header crc (gzip) */
  41001. var DICTID = 10; /* i: waiting for dictionary check value */
  41002. var DICT = 11; /* waiting for inflateSetDictionary() call */
  41003. var TYPE = 12; /* i: waiting for type bits, including last-flag bit */
  41004. var TYPEDO = 13; /* i: same, but skip check to exit inflate on new block */
  41005. var STORED = 14; /* i: waiting for stored size (length and complement) */
  41006. var COPY_ = 15; /* i/o: same as COPY below, but only first time in */
  41007. var COPY = 16; /* i/o: waiting for input or output to copy stored block */
  41008. var TABLE = 17; /* i: waiting for dynamic block table lengths */
  41009. var LENLENS = 18; /* i: waiting for code length code lengths */
  41010. var CODELENS = 19; /* i: waiting for length/lit and distance code lengths */
  41011. var LEN_ = 20; /* i: same as LEN below, but only first time in */
  41012. var LEN = 21; /* i: waiting for length/lit/eob code */
  41013. var LENEXT = 22; /* i: waiting for length extra bits */
  41014. var DIST = 23; /* i: waiting for distance code */
  41015. var DISTEXT = 24; /* i: waiting for distance extra bits */
  41016. var MATCH = 25; /* o: waiting for output space to copy string */
  41017. var LIT = 26; /* o: waiting for output space to write literal */
  41018. var CHECK = 27; /* i: waiting for 32-bit check value */
  41019. var LENGTH = 28; /* i: waiting for 32-bit length (gzip) */
  41020. var DONE = 29; /* finished check, done -- remain here until reset */
  41021. var BAD = 30; /* got a data error -- remain here until reset */
  41022. var MEM = 31; /* got an inflate() memory error -- remain here until reset */
  41023. var SYNC = 32; /* looking for synchronization bytes to restart inflate() */
  41024. /* ===========================================================================*/
  41025. var ENOUGH_LENS = 852;
  41026. var ENOUGH_DISTS = 592;
  41027. //var ENOUGH = (ENOUGH_LENS+ENOUGH_DISTS);
  41028. var MAX_WBITS = 15;
  41029. /* 32K LZ77 window */
  41030. var DEF_WBITS = MAX_WBITS;
  41031. function ZSWAP32(q) {
  41032. return (((q >>> 24) & 0xff) +
  41033. ((q >>> 8) & 0xff00) +
  41034. ((q & 0xff00) << 8) +
  41035. ((q & 0xff) << 24));
  41036. }
  41037. function InflateState() {
  41038. this.mode = 0; /* current inflate mode */
  41039. this.last = false; /* true if processing last block */
  41040. this.wrap = 0; /* bit 0 true for zlib, bit 1 true for gzip */
  41041. this.havedict = false; /* true if dictionary provided */
  41042. this.flags = 0; /* gzip header method and flags (0 if zlib) */
  41043. this.dmax = 0; /* zlib header max distance (INFLATE_STRICT) */
  41044. this.check = 0; /* protected copy of check value */
  41045. this.total = 0; /* protected copy of output count */
  41046. // TODO: may be {}
  41047. this.head = null; /* where to save gzip header information */
  41048. /* sliding window */
  41049. this.wbits = 0; /* log base 2 of requested window size */
  41050. this.wsize = 0; /* window size or zero if not using window */
  41051. this.whave = 0; /* valid bytes in the window */
  41052. this.wnext = 0; /* window write index */
  41053. this.window = null; /* allocated sliding window, if needed */
  41054. /* bit accumulator */
  41055. this.hold = 0; /* input bit accumulator */
  41056. this.bits = 0; /* number of bits in "in" */
  41057. /* for string and stored block copying */
  41058. this.length = 0; /* literal or length of data to copy */
  41059. this.offset = 0; /* distance back to copy string from */
  41060. /* for table and code decoding */
  41061. this.extra = 0; /* extra bits needed */
  41062. /* fixed and dynamic code tables */
  41063. this.lencode = null; /* starting table for length/literal codes */
  41064. this.distcode = null; /* starting table for distance codes */
  41065. this.lenbits = 0; /* index bits for lencode */
  41066. this.distbits = 0; /* index bits for distcode */
  41067. /* dynamic table building */
  41068. this.ncode = 0; /* number of code length code lengths */
  41069. this.nlen = 0; /* number of length code lengths */
  41070. this.ndist = 0; /* number of distance code lengths */
  41071. this.have = 0; /* number of code lengths in lens[] */
  41072. this.next = null; /* next available space in codes[] */
  41073. this.lens = new utils.Buf16(320); /* temporary storage for code lengths */
  41074. this.work = new utils.Buf16(288); /* work area for code table building */
  41075. /*
  41076. because we don't have pointers in js, we use lencode and distcode directly
  41077. as buffers so we don't need codes
  41078. */
  41079. //this.codes = new utils.Buf32(ENOUGH); /* space for code tables */
  41080. this.lendyn = null; /* dynamic table for length/literal codes (JS specific) */
  41081. this.distdyn = null; /* dynamic table for distance codes (JS specific) */
  41082. this.sane = 0; /* if false, allow invalid distance too far */
  41083. this.back = 0; /* bits back of last unprocessed length/lit */
  41084. this.was = 0; /* initial length of match */
  41085. }
  41086. function inflateResetKeep(strm) {
  41087. var state;
  41088. if (!strm || !strm.state) { return Z_STREAM_ERROR; }
  41089. state = strm.state;
  41090. strm.total_in = strm.total_out = state.total = 0;
  41091. strm.msg = ''; /*Z_NULL*/
  41092. if (state.wrap) { /* to support ill-conceived Java test suite */
  41093. strm.adler = state.wrap & 1;
  41094. }
  41095. state.mode = HEAD;
  41096. state.last = 0;
  41097. state.havedict = 0;
  41098. state.dmax = 32768;
  41099. state.head = null/*Z_NULL*/;
  41100. state.hold = 0;
  41101. state.bits = 0;
  41102. //state.lencode = state.distcode = state.next = state.codes;
  41103. state.lencode = state.lendyn = new utils.Buf32(ENOUGH_LENS);
  41104. state.distcode = state.distdyn = new utils.Buf32(ENOUGH_DISTS);
  41105. state.sane = 1;
  41106. state.back = -1;
  41107. //Tracev((stderr, "inflate: reset\n"));
  41108. return Z_OK;
  41109. }
  41110. function inflateReset(strm) {
  41111. var state;
  41112. if (!strm || !strm.state) { return Z_STREAM_ERROR; }
  41113. state = strm.state;
  41114. state.wsize = 0;
  41115. state.whave = 0;
  41116. state.wnext = 0;
  41117. return inflateResetKeep(strm);
  41118. }
  41119. function inflateReset2(strm, windowBits) {
  41120. var wrap;
  41121. var state;
  41122. /* get the state */
  41123. if (!strm || !strm.state) { return Z_STREAM_ERROR; }
  41124. state = strm.state;
  41125. /* extract wrap request from windowBits parameter */
  41126. if (windowBits < 0) {
  41127. wrap = 0;
  41128. windowBits = -windowBits;
  41129. }
  41130. else {
  41131. wrap = (windowBits >> 4) + 1;
  41132. if (windowBits < 48) {
  41133. windowBits &= 15;
  41134. }
  41135. }
  41136. /* set number of window bits, free window if different */
  41137. if (windowBits && (windowBits < 8 || windowBits > 15)) {
  41138. return Z_STREAM_ERROR;
  41139. }
  41140. if (state.window !== null && state.wbits !== windowBits) {
  41141. state.window = null;
  41142. }
  41143. /* update state and reset the rest of it */
  41144. state.wrap = wrap;
  41145. state.wbits = windowBits;
  41146. return inflateReset(strm);
  41147. }
  41148. function inflateInit2(strm, windowBits) {
  41149. var ret;
  41150. var state;
  41151. if (!strm) { return Z_STREAM_ERROR; }
  41152. //strm.msg = Z_NULL; /* in case we return an error */
  41153. state = new InflateState();
  41154. //if (state === Z_NULL) return Z_MEM_ERROR;
  41155. //Tracev((stderr, "inflate: allocated\n"));
  41156. strm.state = state;
  41157. state.window = null/*Z_NULL*/;
  41158. ret = inflateReset2(strm, windowBits);
  41159. if (ret !== Z_OK) {
  41160. strm.state = null/*Z_NULL*/;
  41161. }
  41162. return ret;
  41163. }
  41164. function inflateInit(strm) {
  41165. return inflateInit2(strm, DEF_WBITS);
  41166. }
  41167. /*
  41168. Return state with length and distance decoding tables and index sizes set to
  41169. fixed code decoding. Normally this returns fixed tables from inffixed.h.
  41170. If BUILDFIXED is defined, then instead this routine builds the tables the
  41171. first time it's called, and returns those tables the first time and
  41172. thereafter. This reduces the size of the code by about 2K bytes, in
  41173. exchange for a little execution time. However, BUILDFIXED should not be
  41174. used for threaded applications, since the rewriting of the tables and virgin
  41175. may not be thread-safe.
  41176. */
  41177. var virgin = true;
  41178. var lenfix, distfix; // We have no pointers in JS, so keep tables separate
  41179. function fixedtables(state) {
  41180. /* build fixed huffman tables if first call (may not be thread safe) */
  41181. if (virgin) {
  41182. var sym;
  41183. lenfix = new utils.Buf32(512);
  41184. distfix = new utils.Buf32(32);
  41185. /* literal/length table */
  41186. sym = 0;
  41187. while (sym < 144) { state.lens[sym++] = 8; }
  41188. while (sym < 256) { state.lens[sym++] = 9; }
  41189. while (sym < 280) { state.lens[sym++] = 7; }
  41190. while (sym < 288) { state.lens[sym++] = 8; }
  41191. inflate_table(LENS, state.lens, 0, 288, lenfix, 0, state.work, {bits: 9});
  41192. /* distance table */
  41193. sym = 0;
  41194. while (sym < 32) { state.lens[sym++] = 5; }
  41195. inflate_table(DISTS, state.lens, 0, 32, distfix, 0, state.work, {bits: 5});
  41196. /* do this just once */
  41197. virgin = false;
  41198. }
  41199. state.lencode = lenfix;
  41200. state.lenbits = 9;
  41201. state.distcode = distfix;
  41202. state.distbits = 5;
  41203. }
  41204. /*
  41205. Update the window with the last wsize (normally 32K) bytes written before
  41206. returning. If window does not exist yet, create it. This is only called
  41207. when a window is already in use, or when output has been written during this
  41208. inflate call, but the end of the deflate stream has not been reached yet.
  41209. It is also called to create a window for dictionary data when a dictionary
  41210. is loaded.
  41211. Providing output buffers larger than 32K to inflate() should provide a speed
  41212. advantage, since only the last 32K of output is copied to the sliding window
  41213. upon return from inflate(), and since all distances after the first 32K of
  41214. output will fall in the output data, making match copies simpler and faster.
  41215. The advantage may be dependent on the size of the processor's data caches.
  41216. */
  41217. function updatewindow(strm, src, end, copy) {
  41218. var dist;
  41219. var state = strm.state;
  41220. /* if it hasn't been done already, allocate space for the window */
  41221. if (state.window === null) {
  41222. state.wsize = 1 << state.wbits;
  41223. state.wnext = 0;
  41224. state.whave = 0;
  41225. state.window = new utils.Buf8(state.wsize);
  41226. }
  41227. /* copy state->wsize or less output bytes into the circular window */
  41228. if (copy >= state.wsize) {
  41229. utils.arraySet(state.window,src, end - state.wsize, state.wsize, 0);
  41230. state.wnext = 0;
  41231. state.whave = state.wsize;
  41232. }
  41233. else {
  41234. dist = state.wsize - state.wnext;
  41235. if (dist > copy) {
  41236. dist = copy;
  41237. }
  41238. //zmemcpy(state->window + state->wnext, end - copy, dist);
  41239. utils.arraySet(state.window,src, end - copy, dist, state.wnext);
  41240. copy -= dist;
  41241. if (copy) {
  41242. //zmemcpy(state->window, end - copy, copy);
  41243. utils.arraySet(state.window,src, end - copy, copy, 0);
  41244. state.wnext = copy;
  41245. state.whave = state.wsize;
  41246. }
  41247. else {
  41248. state.wnext += dist;
  41249. if (state.wnext === state.wsize) { state.wnext = 0; }
  41250. if (state.whave < state.wsize) { state.whave += dist; }
  41251. }
  41252. }
  41253. return 0;
  41254. }
  41255. function inflate(strm, flush) {
  41256. var state;
  41257. var input, output; // input/output buffers
  41258. var next; /* next input INDEX */
  41259. var put; /* next output INDEX */
  41260. var have, left; /* available input and output */
  41261. var hold; /* bit buffer */
  41262. var bits; /* bits in bit buffer */
  41263. var _in, _out; /* save starting available input and output */
  41264. var copy; /* number of stored or match bytes to copy */
  41265. var from; /* where to copy match bytes from */
  41266. var from_source;
  41267. var here = 0; /* current decoding table entry */
  41268. var here_bits, here_op, here_val; // paked "here" denormalized (JS specific)
  41269. //var last; /* parent table entry */
  41270. var last_bits, last_op, last_val; // paked "last" denormalized (JS specific)
  41271. var len; /* length to copy for repeats, bits to drop */
  41272. var ret; /* return code */
  41273. var hbuf = new utils.Buf8(4); /* buffer for gzip header crc calculation */
  41274. var opts;
  41275. var n; // temporary var for NEED_BITS
  41276. var order = /* permutation of code lengths */
  41277. [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
  41278. if (!strm || !strm.state || !strm.output ||
  41279. (!strm.input && strm.avail_in !== 0)) {
  41280. return Z_STREAM_ERROR;
  41281. }
  41282. state = strm.state;
  41283. if (state.mode === TYPE) { state.mode = TYPEDO; } /* skip check */
  41284. //--- LOAD() ---
  41285. put = strm.next_out;
  41286. output = strm.output;
  41287. left = strm.avail_out;
  41288. next = strm.next_in;
  41289. input = strm.input;
  41290. have = strm.avail_in;
  41291. hold = state.hold;
  41292. bits = state.bits;
  41293. //---
  41294. _in = have;
  41295. _out = left;
  41296. ret = Z_OK;
  41297. inf_leave: // goto emulation
  41298. for (;;) {
  41299. switch (state.mode) {
  41300. case HEAD:
  41301. if (state.wrap === 0) {
  41302. state.mode = TYPEDO;
  41303. break;
  41304. }
  41305. //=== NEEDBITS(16);
  41306. while (bits < 16) {
  41307. if (have === 0) { break inf_leave; }
  41308. have--;
  41309. hold += input[next++] << bits;
  41310. bits += 8;
  41311. }
  41312. //===//
  41313. if ((state.wrap & 2) && hold === 0x8b1f) { /* gzip header */
  41314. state.check = 0/*crc32(0L, Z_NULL, 0)*/;
  41315. //=== CRC2(state.check, hold);
  41316. hbuf[0] = hold & 0xff;
  41317. hbuf[1] = (hold >>> 8) & 0xff;
  41318. state.check = crc32(state.check, hbuf, 2, 0);
  41319. //===//
  41320. //=== INITBITS();
  41321. hold = 0;
  41322. bits = 0;
  41323. //===//
  41324. state.mode = FLAGS;
  41325. break;
  41326. }
  41327. state.flags = 0; /* expect zlib header */
  41328. if (state.head) {
  41329. state.head.done = false;
  41330. }
  41331. if (!(state.wrap & 1) || /* check if zlib header allowed */
  41332. (((hold & 0xff)/*BITS(8)*/ << 8) + (hold >> 8)) % 31) {
  41333. strm.msg = 'incorrect header check';
  41334. state.mode = BAD;
  41335. break;
  41336. }
  41337. if ((hold & 0x0f)/*BITS(4)*/ !== Z_DEFLATED) {
  41338. strm.msg = 'unknown compression method';
  41339. state.mode = BAD;
  41340. break;
  41341. }
  41342. //--- DROPBITS(4) ---//
  41343. hold >>>= 4;
  41344. bits -= 4;
  41345. //---//
  41346. len = (hold & 0x0f)/*BITS(4)*/ + 8;
  41347. if (state.wbits === 0) {
  41348. state.wbits = len;
  41349. }
  41350. else if (len > state.wbits) {
  41351. strm.msg = 'invalid window size';
  41352. state.mode = BAD;
  41353. break;
  41354. }
  41355. state.dmax = 1 << len;
  41356. //Tracev((stderr, "inflate: zlib header ok\n"));
  41357. strm.adler = state.check = 1/*adler32(0L, Z_NULL, 0)*/;
  41358. state.mode = hold & 0x200 ? DICTID : TYPE;
  41359. //=== INITBITS();
  41360. hold = 0;
  41361. bits = 0;
  41362. //===//
  41363. break;
  41364. case FLAGS:
  41365. //=== NEEDBITS(16); */
  41366. while (bits < 16) {
  41367. if (have === 0) { break inf_leave; }
  41368. have--;
  41369. hold += input[next++] << bits;
  41370. bits += 8;
  41371. }
  41372. //===//
  41373. state.flags = hold;
  41374. if ((state.flags & 0xff) !== Z_DEFLATED) {
  41375. strm.msg = 'unknown compression method';
  41376. state.mode = BAD;
  41377. break;
  41378. }
  41379. if (state.flags & 0xe000) {
  41380. strm.msg = 'unknown header flags set';
  41381. state.mode = BAD;
  41382. break;
  41383. }
  41384. if (state.head) {
  41385. state.head.text = ((hold >> 8) & 1);
  41386. }
  41387. if (state.flags & 0x0200) {
  41388. //=== CRC2(state.check, hold);
  41389. hbuf[0] = hold & 0xff;
  41390. hbuf[1] = (hold >>> 8) & 0xff;
  41391. state.check = crc32(state.check, hbuf, 2, 0);
  41392. //===//
  41393. }
  41394. //=== INITBITS();
  41395. hold = 0;
  41396. bits = 0;
  41397. //===//
  41398. state.mode = TIME;
  41399. /* falls through */
  41400. case TIME:
  41401. //=== NEEDBITS(32); */
  41402. while (bits < 32) {
  41403. if (have === 0) { break inf_leave; }
  41404. have--;
  41405. hold += input[next++] << bits;
  41406. bits += 8;
  41407. }
  41408. //===//
  41409. if (state.head) {
  41410. state.head.time = hold;
  41411. }
  41412. if (state.flags & 0x0200) {
  41413. //=== CRC4(state.check, hold)
  41414. hbuf[0] = hold & 0xff;
  41415. hbuf[1] = (hold >>> 8) & 0xff;
  41416. hbuf[2] = (hold >>> 16) & 0xff;
  41417. hbuf[3] = (hold >>> 24) & 0xff;
  41418. state.check = crc32(state.check, hbuf, 4, 0);
  41419. //===
  41420. }
  41421. //=== INITBITS();
  41422. hold = 0;
  41423. bits = 0;
  41424. //===//
  41425. state.mode = OS;
  41426. /* falls through */
  41427. case OS:
  41428. //=== NEEDBITS(16); */
  41429. while (bits < 16) {
  41430. if (have === 0) { break inf_leave; }
  41431. have--;
  41432. hold += input[next++] << bits;
  41433. bits += 8;
  41434. }
  41435. //===//
  41436. if (state.head) {
  41437. state.head.xflags = (hold & 0xff);
  41438. state.head.os = (hold >> 8);
  41439. }
  41440. if (state.flags & 0x0200) {
  41441. //=== CRC2(state.check, hold);
  41442. hbuf[0] = hold & 0xff;
  41443. hbuf[1] = (hold >>> 8) & 0xff;
  41444. state.check = crc32(state.check, hbuf, 2, 0);
  41445. //===//
  41446. }
  41447. //=== INITBITS();
  41448. hold = 0;
  41449. bits = 0;
  41450. //===//
  41451. state.mode = EXLEN;
  41452. /* falls through */
  41453. case EXLEN:
  41454. if (state.flags & 0x0400) {
  41455. //=== NEEDBITS(16); */
  41456. while (bits < 16) {
  41457. if (have === 0) { break inf_leave; }
  41458. have--;
  41459. hold += input[next++] << bits;
  41460. bits += 8;
  41461. }
  41462. //===//
  41463. state.length = hold;
  41464. if (state.head) {
  41465. state.head.extra_len = hold;
  41466. }
  41467. if (state.flags & 0x0200) {
  41468. //=== CRC2(state.check, hold);
  41469. hbuf[0] = hold & 0xff;
  41470. hbuf[1] = (hold >>> 8) & 0xff;
  41471. state.check = crc32(state.check, hbuf, 2, 0);
  41472. //===//
  41473. }
  41474. //=== INITBITS();
  41475. hold = 0;
  41476. bits = 0;
  41477. //===//
  41478. }
  41479. else if (state.head) {
  41480. state.head.extra = null/*Z_NULL*/;
  41481. }
  41482. state.mode = EXTRA;
  41483. /* falls through */
  41484. case EXTRA:
  41485. if (state.flags & 0x0400) {
  41486. copy = state.length;
  41487. if (copy > have) { copy = have; }
  41488. if (copy) {
  41489. if (state.head) {
  41490. len = state.head.extra_len - state.length;
  41491. if (!state.head.extra) {
  41492. // Use untyped array for more conveniend processing later
  41493. state.head.extra = new Array(state.head.extra_len);
  41494. }
  41495. utils.arraySet(
  41496. state.head.extra,
  41497. input,
  41498. next,
  41499. // extra field is limited to 65536 bytes
  41500. // - no need for additional size check
  41501. copy,
  41502. /*len + copy > state.head.extra_max - len ? state.head.extra_max : copy,*/
  41503. len
  41504. );
  41505. //zmemcpy(state.head.extra + len, next,
  41506. // len + copy > state.head.extra_max ?
  41507. // state.head.extra_max - len : copy);
  41508. }
  41509. if (state.flags & 0x0200) {
  41510. state.check = crc32(state.check, input, copy, next);
  41511. }
  41512. have -= copy;
  41513. next += copy;
  41514. state.length -= copy;
  41515. }
  41516. if (state.length) { break inf_leave; }
  41517. }
  41518. state.length = 0;
  41519. state.mode = NAME;
  41520. /* falls through */
  41521. case NAME:
  41522. if (state.flags & 0x0800) {
  41523. if (have === 0) { break inf_leave; }
  41524. copy = 0;
  41525. do {
  41526. // TODO: 2 or 1 bytes?
  41527. len = input[next + copy++];
  41528. /* use constant limit because in js we should not preallocate memory */
  41529. if (state.head && len &&
  41530. (state.length < 65536 /*state.head.name_max*/)) {
  41531. state.head.name += String.fromCharCode(len);
  41532. }
  41533. } while (len && copy < have);
  41534. if (state.flags & 0x0200) {
  41535. state.check = crc32(state.check, input, copy, next);
  41536. }
  41537. have -= copy;
  41538. next += copy;
  41539. if (len) { break inf_leave; }
  41540. }
  41541. else if (state.head) {
  41542. state.head.name = null;
  41543. }
  41544. state.length = 0;
  41545. state.mode = COMMENT;
  41546. /* falls through */
  41547. case COMMENT:
  41548. if (state.flags & 0x1000) {
  41549. if (have === 0) { break inf_leave; }
  41550. copy = 0;
  41551. do {
  41552. len = input[next + copy++];
  41553. /* use constant limit because in js we should not preallocate memory */
  41554. if (state.head && len &&
  41555. (state.length < 65536 /*state.head.comm_max*/)) {
  41556. state.head.comment += String.fromCharCode(len);
  41557. }
  41558. } while (len && copy < have);
  41559. if (state.flags & 0x0200) {
  41560. state.check = crc32(state.check, input, copy, next);
  41561. }
  41562. have -= copy;
  41563. next += copy;
  41564. if (len) { break inf_leave; }
  41565. }
  41566. else if (state.head) {
  41567. state.head.comment = null;
  41568. }
  41569. state.mode = HCRC;
  41570. /* falls through */
  41571. case HCRC:
  41572. if (state.flags & 0x0200) {
  41573. //=== NEEDBITS(16); */
  41574. while (bits < 16) {
  41575. if (have === 0) { break inf_leave; }
  41576. have--;
  41577. hold += input[next++] << bits;
  41578. bits += 8;
  41579. }
  41580. //===//
  41581. if (hold !== (state.check & 0xffff)) {
  41582. strm.msg = 'header crc mismatch';
  41583. state.mode = BAD;
  41584. break;
  41585. }
  41586. //=== INITBITS();
  41587. hold = 0;
  41588. bits = 0;
  41589. //===//
  41590. }
  41591. if (state.head) {
  41592. state.head.hcrc = ((state.flags >> 9) & 1);
  41593. state.head.done = true;
  41594. }
  41595. strm.adler = state.check = 0 /*crc32(0L, Z_NULL, 0)*/;
  41596. state.mode = TYPE;
  41597. break;
  41598. case DICTID:
  41599. //=== NEEDBITS(32); */
  41600. while (bits < 32) {
  41601. if (have === 0) { break inf_leave; }
  41602. have--;
  41603. hold += input[next++] << bits;
  41604. bits += 8;
  41605. }
  41606. //===//
  41607. strm.adler = state.check = ZSWAP32(hold);
  41608. //=== INITBITS();
  41609. hold = 0;
  41610. bits = 0;
  41611. //===//
  41612. state.mode = DICT;
  41613. /* falls through */
  41614. case DICT:
  41615. if (state.havedict === 0) {
  41616. //--- RESTORE() ---
  41617. strm.next_out = put;
  41618. strm.avail_out = left;
  41619. strm.next_in = next;
  41620. strm.avail_in = have;
  41621. state.hold = hold;
  41622. state.bits = bits;
  41623. //---
  41624. return Z_NEED_DICT;
  41625. }
  41626. strm.adler = state.check = 1/*adler32(0L, Z_NULL, 0)*/;
  41627. state.mode = TYPE;
  41628. /* falls through */
  41629. case TYPE:
  41630. if (flush === Z_BLOCK || flush === Z_TREES) { break inf_leave; }
  41631. /* falls through */
  41632. case TYPEDO:
  41633. if (state.last) {
  41634. //--- BYTEBITS() ---//
  41635. hold >>>= bits & 7;
  41636. bits -= bits & 7;
  41637. //---//
  41638. state.mode = CHECK;
  41639. break;
  41640. }
  41641. //=== NEEDBITS(3); */
  41642. while (bits < 3) {
  41643. if (have === 0) { break inf_leave; }
  41644. have--;
  41645. hold += input[next++] << bits;
  41646. bits += 8;
  41647. }
  41648. //===//
  41649. state.last = (hold & 0x01)/*BITS(1)*/;
  41650. //--- DROPBITS(1) ---//
  41651. hold >>>= 1;
  41652. bits -= 1;
  41653. //---//
  41654. switch ((hold & 0x03)/*BITS(2)*/) {
  41655. case 0: /* stored block */
  41656. //Tracev((stderr, "inflate: stored block%s\n",
  41657. // state.last ? " (last)" : ""));
  41658. state.mode = STORED;
  41659. break;
  41660. case 1: /* fixed block */
  41661. fixedtables(state);
  41662. //Tracev((stderr, "inflate: fixed codes block%s\n",
  41663. // state.last ? " (last)" : ""));
  41664. state.mode = LEN_; /* decode codes */
  41665. if (flush === Z_TREES) {
  41666. //--- DROPBITS(2) ---//
  41667. hold >>>= 2;
  41668. bits -= 2;
  41669. //---//
  41670. break inf_leave;
  41671. }
  41672. break;
  41673. case 2: /* dynamic block */
  41674. //Tracev((stderr, "inflate: dynamic codes block%s\n",
  41675. // state.last ? " (last)" : ""));
  41676. state.mode = TABLE;
  41677. break;
  41678. case 3:
  41679. strm.msg = 'invalid block type';
  41680. state.mode = BAD;
  41681. }
  41682. //--- DROPBITS(2) ---//
  41683. hold >>>= 2;
  41684. bits -= 2;
  41685. //---//
  41686. break;
  41687. case STORED:
  41688. //--- BYTEBITS() ---// /* go to byte boundary */
  41689. hold >>>= bits & 7;
  41690. bits -= bits & 7;
  41691. //---//
  41692. //=== NEEDBITS(32); */
  41693. while (bits < 32) {
  41694. if (have === 0) { break inf_leave; }
  41695. have--;
  41696. hold += input[next++] << bits;
  41697. bits += 8;
  41698. }
  41699. //===//
  41700. if ((hold & 0xffff) !== ((hold >>> 16) ^ 0xffff)) {
  41701. strm.msg = 'invalid stored block lengths';
  41702. state.mode = BAD;
  41703. break;
  41704. }
  41705. state.length = hold & 0xffff;
  41706. //Tracev((stderr, "inflate: stored length %u\n",
  41707. // state.length));
  41708. //=== INITBITS();
  41709. hold = 0;
  41710. bits = 0;
  41711. //===//
  41712. state.mode = COPY_;
  41713. if (flush === Z_TREES) { break inf_leave; }
  41714. /* falls through */
  41715. case COPY_:
  41716. state.mode = COPY;
  41717. /* falls through */
  41718. case COPY:
  41719. copy = state.length;
  41720. if (copy) {
  41721. if (copy > have) { copy = have; }
  41722. if (copy > left) { copy = left; }
  41723. if (copy === 0) { break inf_leave; }
  41724. //--- zmemcpy(put, next, copy); ---
  41725. utils.arraySet(output, input, next, copy, put);
  41726. //---//
  41727. have -= copy;
  41728. next += copy;
  41729. left -= copy;
  41730. put += copy;
  41731. state.length -= copy;
  41732. break;
  41733. }
  41734. //Tracev((stderr, "inflate: stored end\n"));
  41735. state.mode = TYPE;
  41736. break;
  41737. case TABLE:
  41738. //=== NEEDBITS(14); */
  41739. while (bits < 14) {
  41740. if (have === 0) { break inf_leave; }
  41741. have--;
  41742. hold += input[next++] << bits;
  41743. bits += 8;
  41744. }
  41745. //===//
  41746. state.nlen = (hold & 0x1f)/*BITS(5)*/ + 257;
  41747. //--- DROPBITS(5) ---//
  41748. hold >>>= 5;
  41749. bits -= 5;
  41750. //---//
  41751. state.ndist = (hold & 0x1f)/*BITS(5)*/ + 1;
  41752. //--- DROPBITS(5) ---//
  41753. hold >>>= 5;
  41754. bits -= 5;
  41755. //---//
  41756. state.ncode = (hold & 0x0f)/*BITS(4)*/ + 4;
  41757. //--- DROPBITS(4) ---//
  41758. hold >>>= 4;
  41759. bits -= 4;
  41760. //---//
  41761. //#ifndef PKZIP_BUG_WORKAROUND
  41762. if (state.nlen > 286 || state.ndist > 30) {
  41763. strm.msg = 'too many length or distance symbols';
  41764. state.mode = BAD;
  41765. break;
  41766. }
  41767. //#endif
  41768. //Tracev((stderr, "inflate: table sizes ok\n"));
  41769. state.have = 0;
  41770. state.mode = LENLENS;
  41771. /* falls through */
  41772. case LENLENS:
  41773. while (state.have < state.ncode) {
  41774. //=== NEEDBITS(3);
  41775. while (bits < 3) {
  41776. if (have === 0) { break inf_leave; }
  41777. have--;
  41778. hold += input[next++] << bits;
  41779. bits += 8;
  41780. }
  41781. //===//
  41782. state.lens[order[state.have++]] = (hold & 0x07);//BITS(3);
  41783. //--- DROPBITS(3) ---//
  41784. hold >>>= 3;
  41785. bits -= 3;
  41786. //---//
  41787. }
  41788. while (state.have < 19) {
  41789. state.lens[order[state.have++]] = 0;
  41790. }
  41791. // We have separate tables & no pointers. 2 commented lines below not needed.
  41792. //state.next = state.codes;
  41793. //state.lencode = state.next;
  41794. // Switch to use dynamic table
  41795. state.lencode = state.lendyn;
  41796. state.lenbits = 7;
  41797. opts = {bits: state.lenbits};
  41798. ret = inflate_table(CODES, state.lens, 0, 19, state.lencode, 0, state.work, opts);
  41799. state.lenbits = opts.bits;
  41800. if (ret) {
  41801. strm.msg = 'invalid code lengths set';
  41802. state.mode = BAD;
  41803. break;
  41804. }
  41805. //Tracev((stderr, "inflate: code lengths ok\n"));
  41806. state.have = 0;
  41807. state.mode = CODELENS;
  41808. /* falls through */
  41809. case CODELENS:
  41810. while (state.have < state.nlen + state.ndist) {
  41811. for (;;) {
  41812. here = state.lencode[hold & ((1 << state.lenbits) - 1)];/*BITS(state.lenbits)*/
  41813. here_bits = here >>> 24;
  41814. here_op = (here >>> 16) & 0xff;
  41815. here_val = here & 0xffff;
  41816. if ((here_bits) <= bits) { break; }
  41817. //--- PULLBYTE() ---//
  41818. if (have === 0) { break inf_leave; }
  41819. have--;
  41820. hold += input[next++] << bits;
  41821. bits += 8;
  41822. //---//
  41823. }
  41824. if (here_val < 16) {
  41825. //--- DROPBITS(here.bits) ---//
  41826. hold >>>= here_bits;
  41827. bits -= here_bits;
  41828. //---//
  41829. state.lens[state.have++] = here_val;
  41830. }
  41831. else {
  41832. if (here_val === 16) {
  41833. //=== NEEDBITS(here.bits + 2);
  41834. n = here_bits + 2;
  41835. while (bits < n) {
  41836. if (have === 0) { break inf_leave; }
  41837. have--;
  41838. hold += input[next++] << bits;
  41839. bits += 8;
  41840. }
  41841. //===//
  41842. //--- DROPBITS(here.bits) ---//
  41843. hold >>>= here_bits;
  41844. bits -= here_bits;
  41845. //---//
  41846. if (state.have === 0) {
  41847. strm.msg = 'invalid bit length repeat';
  41848. state.mode = BAD;
  41849. break;
  41850. }
  41851. len = state.lens[state.have - 1];
  41852. copy = 3 + (hold & 0x03);//BITS(2);
  41853. //--- DROPBITS(2) ---//
  41854. hold >>>= 2;
  41855. bits -= 2;
  41856. //---//
  41857. }
  41858. else if (here_val === 17) {
  41859. //=== NEEDBITS(here.bits + 3);
  41860. n = here_bits + 3;
  41861. while (bits < n) {
  41862. if (have === 0) { break inf_leave; }
  41863. have--;
  41864. hold += input[next++] << bits;
  41865. bits += 8;
  41866. }
  41867. //===//
  41868. //--- DROPBITS(here.bits) ---//
  41869. hold >>>= here_bits;
  41870. bits -= here_bits;
  41871. //---//
  41872. len = 0;
  41873. copy = 3 + (hold & 0x07);//BITS(3);
  41874. //--- DROPBITS(3) ---//
  41875. hold >>>= 3;
  41876. bits -= 3;
  41877. //---//
  41878. }
  41879. else {
  41880. //=== NEEDBITS(here.bits + 7);
  41881. n = here_bits + 7;
  41882. while (bits < n) {
  41883. if (have === 0) { break inf_leave; }
  41884. have--;
  41885. hold += input[next++] << bits;
  41886. bits += 8;
  41887. }
  41888. //===//
  41889. //--- DROPBITS(here.bits) ---//
  41890. hold >>>= here_bits;
  41891. bits -= here_bits;
  41892. //---//
  41893. len = 0;
  41894. copy = 11 + (hold & 0x7f);//BITS(7);
  41895. //--- DROPBITS(7) ---//
  41896. hold >>>= 7;
  41897. bits -= 7;
  41898. //---//
  41899. }
  41900. if (state.have + copy > state.nlen + state.ndist) {
  41901. strm.msg = 'invalid bit length repeat';
  41902. state.mode = BAD;
  41903. break;
  41904. }
  41905. while (copy--) {
  41906. state.lens[state.have++] = len;
  41907. }
  41908. }
  41909. }
  41910. /* handle error breaks in while */
  41911. if (state.mode === BAD) { break; }
  41912. /* check for end-of-block code (better have one) */
  41913. if (state.lens[256] === 0) {
  41914. strm.msg = 'invalid code -- missing end-of-block';
  41915. state.mode = BAD;
  41916. break;
  41917. }
  41918. /* build code tables -- note: do not change the lenbits or distbits
  41919. values here (9 and 6) without reading the comments in inftrees.h
  41920. concerning the ENOUGH constants, which depend on those values */
  41921. state.lenbits = 9;
  41922. opts = {bits: state.lenbits};
  41923. ret = inflate_table(LENS, state.lens, 0, state.nlen, state.lencode, 0, state.work, opts);
  41924. // We have separate tables & no pointers. 2 commented lines below not needed.
  41925. // state.next_index = opts.table_index;
  41926. state.lenbits = opts.bits;
  41927. // state.lencode = state.next;
  41928. if (ret) {
  41929. strm.msg = 'invalid literal/lengths set';
  41930. state.mode = BAD;
  41931. break;
  41932. }
  41933. state.distbits = 6;
  41934. //state.distcode.copy(state.codes);
  41935. // Switch to use dynamic table
  41936. state.distcode = state.distdyn;
  41937. opts = {bits: state.distbits};
  41938. ret = inflate_table(DISTS, state.lens, state.nlen, state.ndist, state.distcode, 0, state.work, opts);
  41939. // We have separate tables & no pointers. 2 commented lines below not needed.
  41940. // state.next_index = opts.table_index;
  41941. state.distbits = opts.bits;
  41942. // state.distcode = state.next;
  41943. if (ret) {
  41944. strm.msg = 'invalid distances set';
  41945. state.mode = BAD;
  41946. break;
  41947. }
  41948. //Tracev((stderr, 'inflate: codes ok\n'));
  41949. state.mode = LEN_;
  41950. if (flush === Z_TREES) { break inf_leave; }
  41951. /* falls through */
  41952. case LEN_:
  41953. state.mode = LEN;
  41954. /* falls through */
  41955. case LEN:
  41956. if (have >= 6 && left >= 258) {
  41957. //--- RESTORE() ---
  41958. strm.next_out = put;
  41959. strm.avail_out = left;
  41960. strm.next_in = next;
  41961. strm.avail_in = have;
  41962. state.hold = hold;
  41963. state.bits = bits;
  41964. //---
  41965. inflate_fast(strm, _out);
  41966. //--- LOAD() ---
  41967. put = strm.next_out;
  41968. output = strm.output;
  41969. left = strm.avail_out;
  41970. next = strm.next_in;
  41971. input = strm.input;
  41972. have = strm.avail_in;
  41973. hold = state.hold;
  41974. bits = state.bits;
  41975. //---
  41976. if (state.mode === TYPE) {
  41977. state.back = -1;
  41978. }
  41979. break;
  41980. }
  41981. state.back = 0;
  41982. for (;;) {
  41983. here = state.lencode[hold & ((1 << state.lenbits) -1)]; /*BITS(state.lenbits)*/
  41984. here_bits = here >>> 24;
  41985. here_op = (here >>> 16) & 0xff;
  41986. here_val = here & 0xffff;
  41987. if (here_bits <= bits) { break; }
  41988. //--- PULLBYTE() ---//
  41989. if (have === 0) { break inf_leave; }
  41990. have--;
  41991. hold += input[next++] << bits;
  41992. bits += 8;
  41993. //---//
  41994. }
  41995. if (here_op && (here_op & 0xf0) === 0) {
  41996. last_bits = here_bits;
  41997. last_op = here_op;
  41998. last_val = here_val;
  41999. for (;;) {
  42000. here = state.lencode[last_val +
  42001. ((hold & ((1 << (last_bits + last_op)) -1))/*BITS(last.bits + last.op)*/ >> last_bits)];
  42002. here_bits = here >>> 24;
  42003. here_op = (here >>> 16) & 0xff;
  42004. here_val = here & 0xffff;
  42005. if ((last_bits + here_bits) <= bits) { break; }
  42006. //--- PULLBYTE() ---//
  42007. if (have === 0) { break inf_leave; }
  42008. have--;
  42009. hold += input[next++] << bits;
  42010. bits += 8;
  42011. //---//
  42012. }
  42013. //--- DROPBITS(last.bits) ---//
  42014. hold >>>= last_bits;
  42015. bits -= last_bits;
  42016. //---//
  42017. state.back += last_bits;
  42018. }
  42019. //--- DROPBITS(here.bits) ---//
  42020. hold >>>= here_bits;
  42021. bits -= here_bits;
  42022. //---//
  42023. state.back += here_bits;
  42024. state.length = here_val;
  42025. if (here_op === 0) {
  42026. //Tracevv((stderr, here.val >= 0x20 && here.val < 0x7f ?
  42027. // "inflate: literal '%c'\n" :
  42028. // "inflate: literal 0x%02x\n", here.val));
  42029. state.mode = LIT;
  42030. break;
  42031. }
  42032. if (here_op & 32) {
  42033. //Tracevv((stderr, "inflate: end of block\n"));
  42034. state.back = -1;
  42035. state.mode = TYPE;
  42036. break;
  42037. }
  42038. if (here_op & 64) {
  42039. strm.msg = 'invalid literal/length code';
  42040. state.mode = BAD;
  42041. break;
  42042. }
  42043. state.extra = here_op & 15;
  42044. state.mode = LENEXT;
  42045. /* falls through */
  42046. case LENEXT:
  42047. if (state.extra) {
  42048. //=== NEEDBITS(state.extra);
  42049. n = state.extra;
  42050. while (bits < n) {
  42051. if (have === 0) { break inf_leave; }
  42052. have--;
  42053. hold += input[next++] << bits;
  42054. bits += 8;
  42055. }
  42056. //===//
  42057. state.length += hold & ((1 << state.extra) -1)/*BITS(state.extra)*/;
  42058. //--- DROPBITS(state.extra) ---//
  42059. hold >>>= state.extra;
  42060. bits -= state.extra;
  42061. //---//
  42062. state.back += state.extra;
  42063. }
  42064. //Tracevv((stderr, "inflate: length %u\n", state.length));
  42065. state.was = state.length;
  42066. state.mode = DIST;
  42067. /* falls through */
  42068. case DIST:
  42069. for (;;) {
  42070. here = state.distcode[hold & ((1 << state.distbits) -1)];/*BITS(state.distbits)*/
  42071. here_bits = here >>> 24;
  42072. here_op = (here >>> 16) & 0xff;
  42073. here_val = here & 0xffff;
  42074. if ((here_bits) <= bits) { break; }
  42075. //--- PULLBYTE() ---//
  42076. if (have === 0) { break inf_leave; }
  42077. have--;
  42078. hold += input[next++] << bits;
  42079. bits += 8;
  42080. //---//
  42081. }
  42082. if ((here_op & 0xf0) === 0) {
  42083. last_bits = here_bits;
  42084. last_op = here_op;
  42085. last_val = here_val;
  42086. for (;;) {
  42087. here = state.distcode[last_val +
  42088. ((hold & ((1 << (last_bits + last_op)) -1))/*BITS(last.bits + last.op)*/ >> last_bits)];
  42089. here_bits = here >>> 24;
  42090. here_op = (here >>> 16) & 0xff;
  42091. here_val = here & 0xffff;
  42092. if ((last_bits + here_bits) <= bits) { break; }
  42093. //--- PULLBYTE() ---//
  42094. if (have === 0) { break inf_leave; }
  42095. have--;
  42096. hold += input[next++] << bits;
  42097. bits += 8;
  42098. //---//
  42099. }
  42100. //--- DROPBITS(last.bits) ---//
  42101. hold >>>= last_bits;
  42102. bits -= last_bits;
  42103. //---//
  42104. state.back += last_bits;
  42105. }
  42106. //--- DROPBITS(here.bits) ---//
  42107. hold >>>= here_bits;
  42108. bits -= here_bits;
  42109. //---//
  42110. state.back += here_bits;
  42111. if (here_op & 64) {
  42112. strm.msg = 'invalid distance code';
  42113. state.mode = BAD;
  42114. break;
  42115. }
  42116. state.offset = here_val;
  42117. state.extra = (here_op) & 15;
  42118. state.mode = DISTEXT;
  42119. /* falls through */
  42120. case DISTEXT:
  42121. if (state.extra) {
  42122. //=== NEEDBITS(state.extra);
  42123. n = state.extra;
  42124. while (bits < n) {
  42125. if (have === 0) { break inf_leave; }
  42126. have--;
  42127. hold += input[next++] << bits;
  42128. bits += 8;
  42129. }
  42130. //===//
  42131. state.offset += hold & ((1 << state.extra) -1)/*BITS(state.extra)*/;
  42132. //--- DROPBITS(state.extra) ---//
  42133. hold >>>= state.extra;
  42134. bits -= state.extra;
  42135. //---//
  42136. state.back += state.extra;
  42137. }
  42138. //#ifdef INFLATE_STRICT
  42139. if (state.offset > state.dmax) {
  42140. strm.msg = 'invalid distance too far back';
  42141. state.mode = BAD;
  42142. break;
  42143. }
  42144. //#endif
  42145. //Tracevv((stderr, "inflate: distance %u\n", state.offset));
  42146. state.mode = MATCH;
  42147. /* falls through */
  42148. case MATCH:
  42149. if (left === 0) { break inf_leave; }
  42150. copy = _out - left;
  42151. if (state.offset > copy) { /* copy from window */
  42152. copy = state.offset - copy;
  42153. if (copy > state.whave) {
  42154. if (state.sane) {
  42155. strm.msg = 'invalid distance too far back';
  42156. state.mode = BAD;
  42157. break;
  42158. }
  42159. // (!) This block is disabled in zlib defailts,
  42160. // don't enable it for binary compatibility
  42161. //#ifdef INFLATE_ALLOW_INVALID_DISTANCE_TOOFAR_ARRR
  42162. // Trace((stderr, "inflate.c too far\n"));
  42163. // copy -= state.whave;
  42164. // if (copy > state.length) { copy = state.length; }
  42165. // if (copy > left) { copy = left; }
  42166. // left -= copy;
  42167. // state.length -= copy;
  42168. // do {
  42169. // output[put++] = 0;
  42170. // } while (--copy);
  42171. // if (state.length === 0) { state.mode = LEN; }
  42172. // break;
  42173. //#endif
  42174. }
  42175. if (copy > state.wnext) {
  42176. copy -= state.wnext;
  42177. from = state.wsize - copy;
  42178. }
  42179. else {
  42180. from = state.wnext - copy;
  42181. }
  42182. if (copy > state.length) { copy = state.length; }
  42183. from_source = state.window;
  42184. }
  42185. else { /* copy from output */
  42186. from_source = output;
  42187. from = put - state.offset;
  42188. copy = state.length;
  42189. }
  42190. if (copy > left) { copy = left; }
  42191. left -= copy;
  42192. state.length -= copy;
  42193. do {
  42194. output[put++] = from_source[from++];
  42195. } while (--copy);
  42196. if (state.length === 0) { state.mode = LEN; }
  42197. break;
  42198. case LIT:
  42199. if (left === 0) { break inf_leave; }
  42200. output[put++] = state.length;
  42201. left--;
  42202. state.mode = LEN;
  42203. break;
  42204. case CHECK:
  42205. if (state.wrap) {
  42206. //=== NEEDBITS(32);
  42207. while (bits < 32) {
  42208. if (have === 0) { break inf_leave; }
  42209. have--;
  42210. // Use '|' insdead of '+' to make sure that result is signed
  42211. hold |= input[next++] << bits;
  42212. bits += 8;
  42213. }
  42214. //===//
  42215. _out -= left;
  42216. strm.total_out += _out;
  42217. state.total += _out;
  42218. if (_out) {
  42219. strm.adler = state.check =
  42220. /*UPDATE(state.check, put - _out, _out);*/
  42221. (state.flags ? crc32(state.check, output, _out, put - _out) : adler32(state.check, output, _out, put - _out));
  42222. }
  42223. _out = left;
  42224. // NB: crc32 stored as signed 32-bit int, ZSWAP32 returns signed too
  42225. if ((state.flags ? hold : ZSWAP32(hold)) !== state.check) {
  42226. strm.msg = 'incorrect data check';
  42227. state.mode = BAD;
  42228. break;
  42229. }
  42230. //=== INITBITS();
  42231. hold = 0;
  42232. bits = 0;
  42233. //===//
  42234. //Tracev((stderr, "inflate: check matches trailer\n"));
  42235. }
  42236. state.mode = LENGTH;
  42237. /* falls through */
  42238. case LENGTH:
  42239. if (state.wrap && state.flags) {
  42240. //=== NEEDBITS(32);
  42241. while (bits < 32) {
  42242. if (have === 0) { break inf_leave; }
  42243. have--;
  42244. hold += input[next++] << bits;
  42245. bits += 8;
  42246. }
  42247. //===//
  42248. if (hold !== (state.total & 0xffffffff)) {
  42249. strm.msg = 'incorrect length check';
  42250. state.mode = BAD;
  42251. break;
  42252. }
  42253. //=== INITBITS();
  42254. hold = 0;
  42255. bits = 0;
  42256. //===//
  42257. //Tracev((stderr, "inflate: length matches trailer\n"));
  42258. }
  42259. state.mode = DONE;
  42260. /* falls through */
  42261. case DONE:
  42262. ret = Z_STREAM_END;
  42263. break inf_leave;
  42264. case BAD:
  42265. ret = Z_DATA_ERROR;
  42266. break inf_leave;
  42267. case MEM:
  42268. return Z_MEM_ERROR;
  42269. case SYNC:
  42270. /* falls through */
  42271. default:
  42272. return Z_STREAM_ERROR;
  42273. }
  42274. }
  42275. // inf_leave <- here is real place for "goto inf_leave", emulated via "break inf_leave"
  42276. /*
  42277. Return from inflate(), updating the total counts and the check value.
  42278. If there was no progress during the inflate() call, return a buffer
  42279. error. Call updatewindow() to create and/or update the window state.
  42280. Note: a memory error from inflate() is non-recoverable.
  42281. */
  42282. //--- RESTORE() ---
  42283. strm.next_out = put;
  42284. strm.avail_out = left;
  42285. strm.next_in = next;
  42286. strm.avail_in = have;
  42287. state.hold = hold;
  42288. state.bits = bits;
  42289. //---
  42290. if (state.wsize || (_out !== strm.avail_out && state.mode < BAD &&
  42291. (state.mode < CHECK || flush !== Z_FINISH))) {
  42292. if (updatewindow(strm, strm.output, strm.next_out, _out - strm.avail_out)) {
  42293. state.mode = MEM;
  42294. return Z_MEM_ERROR;
  42295. }
  42296. }
  42297. _in -= strm.avail_in;
  42298. _out -= strm.avail_out;
  42299. strm.total_in += _in;
  42300. strm.total_out += _out;
  42301. state.total += _out;
  42302. if (state.wrap && _out) {
  42303. strm.adler = state.check = /*UPDATE(state.check, strm.next_out - _out, _out);*/
  42304. (state.flags ? crc32(state.check, output, _out, strm.next_out - _out) : adler32(state.check, output, _out, strm.next_out - _out));
  42305. }
  42306. strm.data_type = state.bits + (state.last ? 64 : 0) +
  42307. (state.mode === TYPE ? 128 : 0) +
  42308. (state.mode === LEN_ || state.mode === COPY_ ? 256 : 0);
  42309. if (((_in === 0 && _out === 0) || flush === Z_FINISH) && ret === Z_OK) {
  42310. ret = Z_BUF_ERROR;
  42311. }
  42312. return ret;
  42313. }
  42314. function inflateEnd(strm) {
  42315. if (!strm || !strm.state /*|| strm->zfree == (free_func)0*/) {
  42316. return Z_STREAM_ERROR;
  42317. }
  42318. var state = strm.state;
  42319. if (state.window) {
  42320. state.window = null;
  42321. }
  42322. strm.state = null;
  42323. return Z_OK;
  42324. }
  42325. function inflateGetHeader(strm, head) {
  42326. var state;
  42327. /* check state */
  42328. if (!strm || !strm.state) { return Z_STREAM_ERROR; }
  42329. state = strm.state;
  42330. if ((state.wrap & 2) === 0) { return Z_STREAM_ERROR; }
  42331. /* save header structure */
  42332. state.head = head;
  42333. head.done = false;
  42334. return Z_OK;
  42335. }
  42336. exports.inflateReset = inflateReset;
  42337. exports.inflateReset2 = inflateReset2;
  42338. exports.inflateResetKeep = inflateResetKeep;
  42339. exports.inflateInit = inflateInit;
  42340. exports.inflateInit2 = inflateInit2;
  42341. exports.inflate = inflate;
  42342. exports.inflateEnd = inflateEnd;
  42343. exports.inflateGetHeader = inflateGetHeader;
  42344. exports.inflateInfo = 'pako inflate (from Nodeca project)';
  42345. /* Not implemented
  42346. exports.inflateCopy = inflateCopy;
  42347. exports.inflateGetDictionary = inflateGetDictionary;
  42348. exports.inflateMark = inflateMark;
  42349. exports.inflatePrime = inflatePrime;
  42350. exports.inflateSetDictionary = inflateSetDictionary;
  42351. exports.inflateSync = inflateSync;
  42352. exports.inflateSyncPoint = inflateSyncPoint;
  42353. exports.inflateUndermine = inflateUndermine;
  42354. */
  42355. /***/ },
  42356. /* 76 */
  42357. /***/ function(module, exports, __webpack_require__) {
  42358. module.exports = {
  42359. /* Allowed flush values; see deflate() and inflate() below for details */
  42360. Z_NO_FLUSH: 0,
  42361. Z_PARTIAL_FLUSH: 1,
  42362. Z_SYNC_FLUSH: 2,
  42363. Z_FULL_FLUSH: 3,
  42364. Z_FINISH: 4,
  42365. Z_BLOCK: 5,
  42366. Z_TREES: 6,
  42367. /* Return codes for the compression/decompression functions. Negative values
  42368. * are errors, positive values are used for special but normal events.
  42369. */
  42370. Z_OK: 0,
  42371. Z_STREAM_END: 1,
  42372. Z_NEED_DICT: 2,
  42373. Z_ERRNO: -1,
  42374. Z_STREAM_ERROR: -2,
  42375. Z_DATA_ERROR: -3,
  42376. //Z_MEM_ERROR: -4,
  42377. Z_BUF_ERROR: -5,
  42378. //Z_VERSION_ERROR: -6,
  42379. /* compression levels */
  42380. Z_NO_COMPRESSION: 0,
  42381. Z_BEST_SPEED: 1,
  42382. Z_BEST_COMPRESSION: 9,
  42383. Z_DEFAULT_COMPRESSION: -1,
  42384. Z_FILTERED: 1,
  42385. Z_HUFFMAN_ONLY: 2,
  42386. Z_RLE: 3,
  42387. Z_FIXED: 4,
  42388. Z_DEFAULT_STRATEGY: 0,
  42389. /* Possible values of the data_type field (though see inflate()) */
  42390. Z_BINARY: 0,
  42391. Z_TEXT: 1,
  42392. //Z_ASCII: 1, // = Z_TEXT (deprecated)
  42393. Z_UNKNOWN: 2,
  42394. /* The deflate compression method */
  42395. Z_DEFLATED: 8
  42396. //Z_NULL: null // Use -1 or null inline, depending on var type
  42397. };
  42398. /***/ },
  42399. /* 77 */
  42400. /***/ function(module, exports, __webpack_require__) {
  42401. 'use strict';
  42402. function ZStream() {
  42403. /* next input byte */
  42404. this.input = null; // JS specific, because we have no pointers
  42405. this.next_in = 0;
  42406. /* number of bytes available at input */
  42407. this.avail_in = 0;
  42408. /* total number of input bytes read so far */
  42409. this.total_in = 0;
  42410. /* next output byte should be put there */
  42411. this.output = null; // JS specific, because we have no pointers
  42412. this.next_out = 0;
  42413. /* remaining free space at output */
  42414. this.avail_out = 0;
  42415. /* total number of bytes output so far */
  42416. this.total_out = 0;
  42417. /* last error message, NULL if no error */
  42418. this.msg = ''/*Z_NULL*/;
  42419. /* not visible by applications */
  42420. this.state = null;
  42421. /* best guess about the data type: binary or text */
  42422. this.data_type = 2/*Z_UNKNOWN*/;
  42423. /* adler32 value of the uncompressed data */
  42424. this.adler = 0;
  42425. }
  42426. module.exports = ZStream;
  42427. /***/ },
  42428. /* 78 */
  42429. /***/ function(module, exports, __webpack_require__) {
  42430. // Generated by CoffeeScript 1.7.1
  42431. (function() {
  42432. var DFont, Data, Directory, NameTable, fs;
  42433. fs = __webpack_require__(10);
  42434. Data = __webpack_require__(34);
  42435. Directory = __webpack_require__(79);
  42436. NameTable = __webpack_require__(80);
  42437. DFont = (function() {
  42438. DFont.open = function(filename) {
  42439. var contents;
  42440. contents = fs.readFileSync(filename);
  42441. return new DFont(contents);
  42442. };
  42443. function DFont(contents) {
  42444. this.contents = new Data(contents);
  42445. this.parse(this.contents);
  42446. }
  42447. DFont.prototype.parse = function(data) {
  42448. var attr, b2, b3, b4, dataLength, dataOffset, dataOfs, entry, font, handle, i, id, j, len, length, mapLength, mapOffset, maxIndex, maxTypeIndex, name, nameListOffset, nameOfs, p, pos, refListOffset, type, typeListOffset, _i, _j;
  42449. dataOffset = data.readInt();
  42450. mapOffset = data.readInt();
  42451. dataLength = data.readInt();
  42452. mapLength = data.readInt();
  42453. this.map = {};
  42454. data.pos = mapOffset + 24;
  42455. typeListOffset = data.readShort() + mapOffset;
  42456. nameListOffset = data.readShort() + mapOffset;
  42457. data.pos = typeListOffset;
  42458. maxIndex = data.readShort();
  42459. for (i = _i = 0; _i <= maxIndex; i = _i += 1) {
  42460. type = data.readString(4);
  42461. maxTypeIndex = data.readShort();
  42462. refListOffset = data.readShort();
  42463. this.map[type] = {
  42464. list: [],
  42465. named: {}
  42466. };
  42467. pos = data.pos;
  42468. data.pos = typeListOffset + refListOffset;
  42469. for (j = _j = 0; _j <= maxTypeIndex; j = _j += 1) {
  42470. id = data.readShort();
  42471. nameOfs = data.readShort();
  42472. attr = data.readByte();
  42473. b2 = data.readByte() << 16;
  42474. b3 = data.readByte() << 8;
  42475. b4 = data.readByte();
  42476. dataOfs = dataOffset + (0 | b2 | b3 | b4);
  42477. handle = data.readUInt32();
  42478. entry = {
  42479. id: id,
  42480. attributes: attr,
  42481. offset: dataOfs,
  42482. handle: handle
  42483. };
  42484. p = data.pos;
  42485. if (nameOfs !== -1 && (nameListOffset + nameOfs < mapOffset + mapLength)) {
  42486. data.pos = nameListOffset + nameOfs;
  42487. len = data.readByte();
  42488. entry.name = data.readString(len);
  42489. } else if (type === 'sfnt') {
  42490. data.pos = entry.offset;
  42491. length = data.readUInt32();
  42492. font = {};
  42493. font.contents = new Data(data.slice(data.pos, data.pos + length));
  42494. font.directory = new Directory(font.contents);
  42495. name = new NameTable(font);
  42496. entry.name = name.fontName[0].raw;
  42497. }
  42498. data.pos = p;
  42499. this.map[type].list.push(entry);
  42500. if (entry.name) {
  42501. this.map[type].named[entry.name] = entry;
  42502. }
  42503. }
  42504. data.pos = pos;
  42505. }
  42506. };
  42507. DFont.prototype.getNamedFont = function(name) {
  42508. var data, entry, length, pos, ret, _ref;
  42509. data = this.contents;
  42510. pos = data.pos;
  42511. entry = (_ref = this.map.sfnt) != null ? _ref.named[name] : void 0;
  42512. if (!entry) {
  42513. throw new Error("Font " + name + " not found in DFont file.");
  42514. }
  42515. data.pos = entry.offset;
  42516. length = data.readUInt32();
  42517. ret = data.slice(data.pos, data.pos + length);
  42518. data.pos = pos;
  42519. return ret;
  42520. };
  42521. return DFont;
  42522. })();
  42523. module.exports = DFont;
  42524. }).call(this);
  42525. /***/ },
  42526. /* 79 */
  42527. /***/ function(module, exports, __webpack_require__) {
  42528. /* WEBPACK VAR INJECTION */(function(Buffer) {// Generated by CoffeeScript 1.7.1
  42529. (function() {
  42530. var Data, Directory,
  42531. __slice = [].slice;
  42532. Data = __webpack_require__(34);
  42533. Directory = (function() {
  42534. var checksum;
  42535. function Directory(data) {
  42536. var entry, i, _i, _ref;
  42537. this.scalarType = data.readInt();
  42538. this.tableCount = data.readShort();
  42539. this.searchRange = data.readShort();
  42540. this.entrySelector = data.readShort();
  42541. this.rangeShift = data.readShort();
  42542. this.tables = {};
  42543. for (i = _i = 0, _ref = this.tableCount; 0 <= _ref ? _i < _ref : _i > _ref; i = 0 <= _ref ? ++_i : --_i) {
  42544. entry = {
  42545. tag: data.readString(4),
  42546. checksum: data.readInt(),
  42547. offset: data.readInt(),
  42548. length: data.readInt()
  42549. };
  42550. this.tables[entry.tag] = entry;
  42551. }
  42552. }
  42553. Directory.prototype.encode = function(tables) {
  42554. var adjustment, directory, directoryLength, entrySelector, headOffset, log2, offset, rangeShift, searchRange, sum, table, tableCount, tableData, tag;
  42555. tableCount = Object.keys(tables).length;
  42556. log2 = Math.log(2);
  42557. searchRange = Math.floor(Math.log(tableCount) / log2) * 16;
  42558. entrySelector = Math.floor(searchRange / log2);
  42559. rangeShift = tableCount * 16 - searchRange;
  42560. directory = new Data;
  42561. directory.writeInt(this.scalarType);
  42562. directory.writeShort(tableCount);
  42563. directory.writeShort(searchRange);
  42564. directory.writeShort(entrySelector);
  42565. directory.writeShort(rangeShift);
  42566. directoryLength = tableCount * 16;
  42567. offset = directory.pos + directoryLength;
  42568. headOffset = null;
  42569. tableData = [];
  42570. for (tag in tables) {
  42571. table = tables[tag];
  42572. directory.writeString(tag);
  42573. directory.writeInt(checksum(table));
  42574. directory.writeInt(offset);
  42575. directory.writeInt(table.length);
  42576. tableData = tableData.concat(table);
  42577. if (tag === 'head') {
  42578. headOffset = offset;
  42579. }
  42580. offset += table.length;
  42581. while (offset % 4) {
  42582. tableData.push(0);
  42583. offset++;
  42584. }
  42585. }
  42586. directory.write(tableData);
  42587. sum = checksum(directory.data);
  42588. adjustment = 0xB1B0AFBA - sum;
  42589. directory.pos = headOffset + 8;
  42590. directory.writeUInt32(adjustment);
  42591. return new Buffer(directory.data);
  42592. };
  42593. checksum = function(data) {
  42594. var i, sum, tmp, _i, _ref;
  42595. data = __slice.call(data);
  42596. while (data.length % 4) {
  42597. data.push(0);
  42598. }
  42599. tmp = new Data(data);
  42600. sum = 0;
  42601. for (i = _i = 0, _ref = data.length; _i < _ref; i = _i += 4) {
  42602. sum += tmp.readUInt32();
  42603. }
  42604. return sum & 0xFFFFFFFF;
  42605. };
  42606. return Directory;
  42607. })();
  42608. module.exports = Directory;
  42609. }).call(this);
  42610. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4).Buffer))
  42611. /***/ },
  42612. /* 80 */
  42613. /***/ function(module, exports, __webpack_require__) {
  42614. // Generated by CoffeeScript 1.7.1
  42615. (function() {
  42616. var Data, NameEntry, NameTable, Table, utils,
  42617. __hasProp = {}.hasOwnProperty,
  42618. __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
  42619. Table = __webpack_require__(99);
  42620. Data = __webpack_require__(34);
  42621. utils = __webpack_require__(89);
  42622. NameTable = (function(_super) {
  42623. var subsetTag;
  42624. __extends(NameTable, _super);
  42625. function NameTable() {
  42626. return NameTable.__super__.constructor.apply(this, arguments);
  42627. }
  42628. NameTable.prototype.tag = 'name';
  42629. NameTable.prototype.parse = function(data) {
  42630. var count, entries, entry, format, i, name, stringOffset, strings, text, _i, _j, _len, _name;
  42631. data.pos = this.offset;
  42632. format = data.readShort();
  42633. count = data.readShort();
  42634. stringOffset = data.readShort();
  42635. entries = [];
  42636. for (i = _i = 0; 0 <= count ? _i < count : _i > count; i = 0 <= count ? ++_i : --_i) {
  42637. entries.push({
  42638. platformID: data.readShort(),
  42639. encodingID: data.readShort(),
  42640. languageID: data.readShort(),
  42641. nameID: data.readShort(),
  42642. length: data.readShort(),
  42643. offset: this.offset + stringOffset + data.readShort()
  42644. });
  42645. }
  42646. strings = {};
  42647. for (i = _j = 0, _len = entries.length; _j < _len; i = ++_j) {
  42648. entry = entries[i];
  42649. data.pos = entry.offset;
  42650. text = data.readString(entry.length);
  42651. name = new NameEntry(text, entry);
  42652. if (strings[_name = entry.nameID] == null) {
  42653. strings[_name] = [];
  42654. }
  42655. strings[entry.nameID].push(name);
  42656. }
  42657. this.strings = strings;
  42658. this.copyright = strings[0];
  42659. this.fontFamily = strings[1];
  42660. this.fontSubfamily = strings[2];
  42661. this.uniqueSubfamily = strings[3];
  42662. this.fontName = strings[4];
  42663. this.version = strings[5];
  42664. this.postscriptName = strings[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g, "");
  42665. this.trademark = strings[7];
  42666. this.manufacturer = strings[8];
  42667. this.designer = strings[9];
  42668. this.description = strings[10];
  42669. this.vendorUrl = strings[11];
  42670. this.designerUrl = strings[12];
  42671. this.license = strings[13];
  42672. this.licenseUrl = strings[14];
  42673. this.preferredFamily = strings[15];
  42674. this.preferredSubfamily = strings[17];
  42675. this.compatibleFull = strings[18];
  42676. return this.sampleText = strings[19];
  42677. };
  42678. subsetTag = "AAAAAA";
  42679. NameTable.prototype.encode = function() {
  42680. var id, list, nameID, nameTable, postscriptName, strCount, strTable, string, strings, table, val, _i, _len, _ref;
  42681. strings = {};
  42682. _ref = this.strings;
  42683. for (id in _ref) {
  42684. val = _ref[id];
  42685. strings[id] = val;
  42686. }
  42687. postscriptName = new NameEntry("" + subsetTag + "+" + this.postscriptName, {
  42688. platformID: 1,
  42689. encodingID: 0,
  42690. languageID: 0
  42691. });
  42692. strings[6] = [postscriptName];
  42693. subsetTag = utils.successorOf(subsetTag);
  42694. strCount = 0;
  42695. for (id in strings) {
  42696. list = strings[id];
  42697. if (list != null) {
  42698. strCount += list.length;
  42699. }
  42700. }
  42701. table = new Data;
  42702. strTable = new Data;
  42703. table.writeShort(0);
  42704. table.writeShort(strCount);
  42705. table.writeShort(6 + 12 * strCount);
  42706. for (nameID in strings) {
  42707. list = strings[nameID];
  42708. if (list != null) {
  42709. for (_i = 0, _len = list.length; _i < _len; _i++) {
  42710. string = list[_i];
  42711. table.writeShort(string.platformID);
  42712. table.writeShort(string.encodingID);
  42713. table.writeShort(string.languageID);
  42714. table.writeShort(nameID);
  42715. table.writeShort(string.length);
  42716. table.writeShort(strTable.pos);
  42717. strTable.writeString(string.raw);
  42718. }
  42719. }
  42720. }
  42721. return nameTable = {
  42722. postscriptName: postscriptName.raw,
  42723. table: table.data.concat(strTable.data)
  42724. };
  42725. };
  42726. return NameTable;
  42727. })(Table);
  42728. module.exports = NameTable;
  42729. NameEntry = (function() {
  42730. function NameEntry(raw, entry) {
  42731. this.raw = raw;
  42732. this.length = this.raw.length;
  42733. this.platformID = entry.platformID;
  42734. this.encodingID = entry.encodingID;
  42735. this.languageID = entry.languageID;
  42736. }
  42737. return NameEntry;
  42738. })();
  42739. }).call(this);
  42740. /***/ },
  42741. /* 81 */
  42742. /***/ function(module, exports, __webpack_require__) {
  42743. // Generated by CoffeeScript 1.7.1
  42744. (function() {
  42745. var Data, HeadTable, Table,
  42746. __hasProp = {}.hasOwnProperty,
  42747. __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
  42748. Table = __webpack_require__(99);
  42749. Data = __webpack_require__(34);
  42750. HeadTable = (function(_super) {
  42751. __extends(HeadTable, _super);
  42752. function HeadTable() {
  42753. return HeadTable.__super__.constructor.apply(this, arguments);
  42754. }
  42755. HeadTable.prototype.tag = 'head';
  42756. HeadTable.prototype.parse = function(data) {
  42757. data.pos = this.offset;
  42758. this.version = data.readInt();
  42759. this.revision = data.readInt();
  42760. this.checkSumAdjustment = data.readInt();
  42761. this.magicNumber = data.readInt();
  42762. this.flags = data.readShort();
  42763. this.unitsPerEm = data.readShort();
  42764. this.created = data.readLongLong();
  42765. this.modified = data.readLongLong();
  42766. this.xMin = data.readShort();
  42767. this.yMin = data.readShort();
  42768. this.xMax = data.readShort();
  42769. this.yMax = data.readShort();
  42770. this.macStyle = data.readShort();
  42771. this.lowestRecPPEM = data.readShort();
  42772. this.fontDirectionHint = data.readShort();
  42773. this.indexToLocFormat = data.readShort();
  42774. return this.glyphDataFormat = data.readShort();
  42775. };
  42776. HeadTable.prototype.encode = function(loca) {
  42777. var table;
  42778. table = new Data;
  42779. table.writeInt(this.version);
  42780. table.writeInt(this.revision);
  42781. table.writeInt(this.checkSumAdjustment);
  42782. table.writeInt(this.magicNumber);
  42783. table.writeShort(this.flags);
  42784. table.writeShort(this.unitsPerEm);
  42785. table.writeLongLong(this.created);
  42786. table.writeLongLong(this.modified);
  42787. table.writeShort(this.xMin);
  42788. table.writeShort(this.yMin);
  42789. table.writeShort(this.xMax);
  42790. table.writeShort(this.yMax);
  42791. table.writeShort(this.macStyle);
  42792. table.writeShort(this.lowestRecPPEM);
  42793. table.writeShort(this.fontDirectionHint);
  42794. table.writeShort(loca.type);
  42795. table.writeShort(this.glyphDataFormat);
  42796. return table.data;
  42797. };
  42798. return HeadTable;
  42799. })(Table);
  42800. module.exports = HeadTable;
  42801. }).call(this);
  42802. /***/ },
  42803. /* 82 */
  42804. /***/ function(module, exports, __webpack_require__) {
  42805. // Generated by CoffeeScript 1.7.1
  42806. (function() {
  42807. var CmapEntry, CmapTable, Data, Table,
  42808. __hasProp = {}.hasOwnProperty,
  42809. __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
  42810. Table = __webpack_require__(99);
  42811. Data = __webpack_require__(34);
  42812. CmapTable = (function(_super) {
  42813. __extends(CmapTable, _super);
  42814. function CmapTable() {
  42815. return CmapTable.__super__.constructor.apply(this, arguments);
  42816. }
  42817. CmapTable.prototype.tag = 'cmap';
  42818. CmapTable.prototype.parse = function(data) {
  42819. var entry, i, tableCount, _i;
  42820. data.pos = this.offset;
  42821. this.version = data.readUInt16();
  42822. tableCount = data.readUInt16();
  42823. this.tables = [];
  42824. this.unicode = null;
  42825. for (i = _i = 0; 0 <= tableCount ? _i < tableCount : _i > tableCount; i = 0 <= tableCount ? ++_i : --_i) {
  42826. entry = new CmapEntry(data, this.offset);
  42827. this.tables.push(entry);
  42828. if (entry.isUnicode) {
  42829. if (this.unicode == null) {
  42830. this.unicode = entry;
  42831. }
  42832. }
  42833. }
  42834. return true;
  42835. };
  42836. CmapTable.encode = function(charmap, encoding) {
  42837. var result, table;
  42838. if (encoding == null) {
  42839. encoding = 'macroman';
  42840. }
  42841. result = CmapEntry.encode(charmap, encoding);
  42842. table = new Data;
  42843. table.writeUInt16(0);
  42844. table.writeUInt16(1);
  42845. result.table = table.data.concat(result.subtable);
  42846. return result;
  42847. };
  42848. return CmapTable;
  42849. })(Table);
  42850. CmapEntry = (function() {
  42851. function CmapEntry(data, offset) {
  42852. var code, count, endCode, glyphId, glyphIds, i, idDelta, idRangeOffset, index, saveOffset, segCount, segCountX2, start, startCode, tail, _i, _j, _k, _len;
  42853. this.platformID = data.readUInt16();
  42854. this.encodingID = data.readShort();
  42855. this.offset = offset + data.readInt();
  42856. saveOffset = data.pos;
  42857. data.pos = this.offset;
  42858. this.format = data.readUInt16();
  42859. this.length = data.readUInt16();
  42860. this.language = data.readUInt16();
  42861. this.isUnicode = (this.platformID === 3 && this.encodingID === 1 && this.format === 4) || this.platformID === 0 && this.format === 4;
  42862. this.codeMap = {};
  42863. switch (this.format) {
  42864. case 0:
  42865. for (i = _i = 0; _i < 256; i = ++_i) {
  42866. this.codeMap[i] = data.readByte();
  42867. }
  42868. break;
  42869. case 4:
  42870. segCountX2 = data.readUInt16();
  42871. segCount = segCountX2 / 2;
  42872. data.pos += 6;
  42873. endCode = (function() {
  42874. var _j, _results;
  42875. _results = [];
  42876. for (i = _j = 0; 0 <= segCount ? _j < segCount : _j > segCount; i = 0 <= segCount ? ++_j : --_j) {
  42877. _results.push(data.readUInt16());
  42878. }
  42879. return _results;
  42880. })();
  42881. data.pos += 2;
  42882. startCode = (function() {
  42883. var _j, _results;
  42884. _results = [];
  42885. for (i = _j = 0; 0 <= segCount ? _j < segCount : _j > segCount; i = 0 <= segCount ? ++_j : --_j) {
  42886. _results.push(data.readUInt16());
  42887. }
  42888. return _results;
  42889. })();
  42890. idDelta = (function() {
  42891. var _j, _results;
  42892. _results = [];
  42893. for (i = _j = 0; 0 <= segCount ? _j < segCount : _j > segCount; i = 0 <= segCount ? ++_j : --_j) {
  42894. _results.push(data.readUInt16());
  42895. }
  42896. return _results;
  42897. })();
  42898. idRangeOffset = (function() {
  42899. var _j, _results;
  42900. _results = [];
  42901. for (i = _j = 0; 0 <= segCount ? _j < segCount : _j > segCount; i = 0 <= segCount ? ++_j : --_j) {
  42902. _results.push(data.readUInt16());
  42903. }
  42904. return _results;
  42905. })();
  42906. count = (this.length - data.pos + this.offset) / 2;
  42907. glyphIds = (function() {
  42908. var _j, _results;
  42909. _results = [];
  42910. for (i = _j = 0; 0 <= count ? _j < count : _j > count; i = 0 <= count ? ++_j : --_j) {
  42911. _results.push(data.readUInt16());
  42912. }
  42913. return _results;
  42914. })();
  42915. for (i = _j = 0, _len = endCode.length; _j < _len; i = ++_j) {
  42916. tail = endCode[i];
  42917. start = startCode[i];
  42918. for (code = _k = start; start <= tail ? _k <= tail : _k >= tail; code = start <= tail ? ++_k : --_k) {
  42919. if (idRangeOffset[i] === 0) {
  42920. glyphId = code + idDelta[i];
  42921. } else {
  42922. index = idRangeOffset[i] / 2 + (code - start) - (segCount - i);
  42923. glyphId = glyphIds[index] || 0;
  42924. if (glyphId !== 0) {
  42925. glyphId += idDelta[i];
  42926. }
  42927. }
  42928. this.codeMap[code] = glyphId & 0xFFFF;
  42929. }
  42930. }
  42931. }
  42932. data.pos = saveOffset;
  42933. }
  42934. CmapEntry.encode = function(charmap, encoding) {
  42935. var charMap, code, codeMap, codes, delta, deltas, diff, endCode, endCodes, entrySelector, glyphIDs, i, id, indexes, last, map, nextID, offset, old, rangeOffsets, rangeShift, result, searchRange, segCount, segCountX2, startCode, startCodes, startGlyph, subtable, _i, _j, _k, _l, _len, _len1, _len2, _len3, _len4, _len5, _len6, _len7, _m, _n, _name, _o, _p, _q;
  42936. subtable = new Data;
  42937. codes = Object.keys(charmap).sort(function(a, b) {
  42938. return a - b;
  42939. });
  42940. switch (encoding) {
  42941. case 'macroman':
  42942. id = 0;
  42943. indexes = (function() {
  42944. var _i, _results;
  42945. _results = [];
  42946. for (i = _i = 0; _i < 256; i = ++_i) {
  42947. _results.push(0);
  42948. }
  42949. return _results;
  42950. })();
  42951. map = {
  42952. 0: 0
  42953. };
  42954. codeMap = {};
  42955. for (_i = 0, _len = codes.length; _i < _len; _i++) {
  42956. code = codes[_i];
  42957. if (map[_name = charmap[code]] == null) {
  42958. map[_name] = ++id;
  42959. }
  42960. codeMap[code] = {
  42961. old: charmap[code],
  42962. "new": map[charmap[code]]
  42963. };
  42964. indexes[code] = map[charmap[code]];
  42965. }
  42966. subtable.writeUInt16(1);
  42967. subtable.writeUInt16(0);
  42968. subtable.writeUInt32(12);
  42969. subtable.writeUInt16(0);
  42970. subtable.writeUInt16(262);
  42971. subtable.writeUInt16(0);
  42972. subtable.write(indexes);
  42973. return result = {
  42974. charMap: codeMap,
  42975. subtable: subtable.data,
  42976. maxGlyphID: id + 1
  42977. };
  42978. case 'unicode':
  42979. startCodes = [];
  42980. endCodes = [];
  42981. nextID = 0;
  42982. map = {};
  42983. charMap = {};
  42984. last = diff = null;
  42985. for (_j = 0, _len1 = codes.length; _j < _len1; _j++) {
  42986. code = codes[_j];
  42987. old = charmap[code];
  42988. if (map[old] == null) {
  42989. map[old] = ++nextID;
  42990. }
  42991. charMap[code] = {
  42992. old: old,
  42993. "new": map[old]
  42994. };
  42995. delta = map[old] - code;
  42996. if ((last == null) || delta !== diff) {
  42997. if (last) {
  42998. endCodes.push(last);
  42999. }
  43000. startCodes.push(code);
  43001. diff = delta;
  43002. }
  43003. last = code;
  43004. }
  43005. if (last) {
  43006. endCodes.push(last);
  43007. }
  43008. endCodes.push(0xFFFF);
  43009. startCodes.push(0xFFFF);
  43010. segCount = startCodes.length;
  43011. segCountX2 = segCount * 2;
  43012. searchRange = 2 * Math.pow(Math.log(segCount) / Math.LN2, 2);
  43013. entrySelector = Math.log(searchRange / 2) / Math.LN2;
  43014. rangeShift = 2 * segCount - searchRange;
  43015. deltas = [];
  43016. rangeOffsets = [];
  43017. glyphIDs = [];
  43018. for (i = _k = 0, _len2 = startCodes.length; _k < _len2; i = ++_k) {
  43019. startCode = startCodes[i];
  43020. endCode = endCodes[i];
  43021. if (startCode === 0xFFFF) {
  43022. deltas.push(0);
  43023. rangeOffsets.push(0);
  43024. break;
  43025. }
  43026. startGlyph = charMap[startCode]["new"];
  43027. if (startCode - startGlyph >= 0x8000) {
  43028. deltas.push(0);
  43029. rangeOffsets.push(2 * (glyphIDs.length + segCount - i));
  43030. for (code = _l = startCode; startCode <= endCode ? _l <= endCode : _l >= endCode; code = startCode <= endCode ? ++_l : --_l) {
  43031. glyphIDs.push(charMap[code]["new"]);
  43032. }
  43033. } else {
  43034. deltas.push(startGlyph - startCode);
  43035. rangeOffsets.push(0);
  43036. }
  43037. }
  43038. subtable.writeUInt16(3);
  43039. subtable.writeUInt16(1);
  43040. subtable.writeUInt32(12);
  43041. subtable.writeUInt16(4);
  43042. subtable.writeUInt16(16 + segCount * 8 + glyphIDs.length * 2);
  43043. subtable.writeUInt16(0);
  43044. subtable.writeUInt16(segCountX2);
  43045. subtable.writeUInt16(searchRange);
  43046. subtable.writeUInt16(entrySelector);
  43047. subtable.writeUInt16(rangeShift);
  43048. for (_m = 0, _len3 = endCodes.length; _m < _len3; _m++) {
  43049. code = endCodes[_m];
  43050. subtable.writeUInt16(code);
  43051. }
  43052. subtable.writeUInt16(0);
  43053. for (_n = 0, _len4 = startCodes.length; _n < _len4; _n++) {
  43054. code = startCodes[_n];
  43055. subtable.writeUInt16(code);
  43056. }
  43057. for (_o = 0, _len5 = deltas.length; _o < _len5; _o++) {
  43058. delta = deltas[_o];
  43059. subtable.writeUInt16(delta);
  43060. }
  43061. for (_p = 0, _len6 = rangeOffsets.length; _p < _len6; _p++) {
  43062. offset = rangeOffsets[_p];
  43063. subtable.writeUInt16(offset);
  43064. }
  43065. for (_q = 0, _len7 = glyphIDs.length; _q < _len7; _q++) {
  43066. id = glyphIDs[_q];
  43067. subtable.writeUInt16(id);
  43068. }
  43069. return result = {
  43070. charMap: charMap,
  43071. subtable: subtable.data,
  43072. maxGlyphID: nextID + 1
  43073. };
  43074. }
  43075. };
  43076. return CmapEntry;
  43077. })();
  43078. module.exports = CmapTable;
  43079. }).call(this);
  43080. /***/ },
  43081. /* 83 */
  43082. /***/ function(module, exports, __webpack_require__) {
  43083. // Generated by CoffeeScript 1.7.1
  43084. (function() {
  43085. var Data, HmtxTable, Table,
  43086. __hasProp = {}.hasOwnProperty,
  43087. __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
  43088. Table = __webpack_require__(99);
  43089. Data = __webpack_require__(34);
  43090. HmtxTable = (function(_super) {
  43091. __extends(HmtxTable, _super);
  43092. function HmtxTable() {
  43093. return HmtxTable.__super__.constructor.apply(this, arguments);
  43094. }
  43095. HmtxTable.prototype.tag = 'hmtx';
  43096. HmtxTable.prototype.parse = function(data) {
  43097. var i, last, lsbCount, m, _i, _j, _ref, _results;
  43098. data.pos = this.offset;
  43099. this.metrics = [];
  43100. for (i = _i = 0, _ref = this.file.hhea.numberOfMetrics; 0 <= _ref ? _i < _ref : _i > _ref; i = 0 <= _ref ? ++_i : --_i) {
  43101. this.metrics.push({
  43102. advance: data.readUInt16(),
  43103. lsb: data.readInt16()
  43104. });
  43105. }
  43106. lsbCount = this.file.maxp.numGlyphs - this.file.hhea.numberOfMetrics;
  43107. this.leftSideBearings = (function() {
  43108. var _j, _results;
  43109. _results = [];
  43110. for (i = _j = 0; 0 <= lsbCount ? _j < lsbCount : _j > lsbCount; i = 0 <= lsbCount ? ++_j : --_j) {
  43111. _results.push(data.readInt16());
  43112. }
  43113. return _results;
  43114. })();
  43115. this.widths = (function() {
  43116. var _j, _len, _ref1, _results;
  43117. _ref1 = this.metrics;
  43118. _results = [];
  43119. for (_j = 0, _len = _ref1.length; _j < _len; _j++) {
  43120. m = _ref1[_j];
  43121. _results.push(m.advance);
  43122. }
  43123. return _results;
  43124. }).call(this);
  43125. last = this.widths[this.widths.length - 1];
  43126. _results = [];
  43127. for (i = _j = 0; 0 <= lsbCount ? _j < lsbCount : _j > lsbCount; i = 0 <= lsbCount ? ++_j : --_j) {
  43128. _results.push(this.widths.push(last));
  43129. }
  43130. return _results;
  43131. };
  43132. HmtxTable.prototype.forGlyph = function(id) {
  43133. var metrics;
  43134. if (id in this.metrics) {
  43135. return this.metrics[id];
  43136. }
  43137. return metrics = {
  43138. advance: this.metrics[this.metrics.length - 1].advance,
  43139. lsb: this.leftSideBearings[id - this.metrics.length]
  43140. };
  43141. };
  43142. HmtxTable.prototype.encode = function(mapping) {
  43143. var id, metric, table, _i, _len;
  43144. table = new Data;
  43145. for (_i = 0, _len = mapping.length; _i < _len; _i++) {
  43146. id = mapping[_i];
  43147. metric = this.forGlyph(id);
  43148. table.writeUInt16(metric.advance);
  43149. table.writeUInt16(metric.lsb);
  43150. }
  43151. return table.data;
  43152. };
  43153. return HmtxTable;
  43154. })(Table);
  43155. module.exports = HmtxTable;
  43156. }).call(this);
  43157. /***/ },
  43158. /* 84 */
  43159. /***/ function(module, exports, __webpack_require__) {
  43160. // Generated by CoffeeScript 1.7.1
  43161. (function() {
  43162. var Data, HheaTable, Table,
  43163. __hasProp = {}.hasOwnProperty,
  43164. __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
  43165. Table = __webpack_require__(99);
  43166. Data = __webpack_require__(34);
  43167. HheaTable = (function(_super) {
  43168. __extends(HheaTable, _super);
  43169. function HheaTable() {
  43170. return HheaTable.__super__.constructor.apply(this, arguments);
  43171. }
  43172. HheaTable.prototype.tag = 'hhea';
  43173. HheaTable.prototype.parse = function(data) {
  43174. data.pos = this.offset;
  43175. this.version = data.readInt();
  43176. this.ascender = data.readShort();
  43177. this.decender = data.readShort();
  43178. this.lineGap = data.readShort();
  43179. this.advanceWidthMax = data.readShort();
  43180. this.minLeftSideBearing = data.readShort();
  43181. this.minRightSideBearing = data.readShort();
  43182. this.xMaxExtent = data.readShort();
  43183. this.caretSlopeRise = data.readShort();
  43184. this.caretSlopeRun = data.readShort();
  43185. this.caretOffset = data.readShort();
  43186. data.pos += 4 * 2;
  43187. this.metricDataFormat = data.readShort();
  43188. return this.numberOfMetrics = data.readUInt16();
  43189. };
  43190. HheaTable.prototype.encode = function(ids) {
  43191. var i, table, _i, _ref;
  43192. table = new Data;
  43193. table.writeInt(this.version);
  43194. table.writeShort(this.ascender);
  43195. table.writeShort(this.decender);
  43196. table.writeShort(this.lineGap);
  43197. table.writeShort(this.advanceWidthMax);
  43198. table.writeShort(this.minLeftSideBearing);
  43199. table.writeShort(this.minRightSideBearing);
  43200. table.writeShort(this.xMaxExtent);
  43201. table.writeShort(this.caretSlopeRise);
  43202. table.writeShort(this.caretSlopeRun);
  43203. table.writeShort(this.caretOffset);
  43204. for (i = _i = 0, _ref = 4 * 2; 0 <= _ref ? _i < _ref : _i > _ref; i = 0 <= _ref ? ++_i : --_i) {
  43205. table.writeByte(0);
  43206. }
  43207. table.writeShort(this.metricDataFormat);
  43208. table.writeUInt16(ids.length);
  43209. return table.data;
  43210. };
  43211. return HheaTable;
  43212. })(Table);
  43213. module.exports = HheaTable;
  43214. }).call(this);
  43215. /***/ },
  43216. /* 85 */
  43217. /***/ function(module, exports, __webpack_require__) {
  43218. // Generated by CoffeeScript 1.7.1
  43219. (function() {
  43220. var Data, MaxpTable, Table,
  43221. __hasProp = {}.hasOwnProperty,
  43222. __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
  43223. Table = __webpack_require__(99);
  43224. Data = __webpack_require__(34);
  43225. MaxpTable = (function(_super) {
  43226. __extends(MaxpTable, _super);
  43227. function MaxpTable() {
  43228. return MaxpTable.__super__.constructor.apply(this, arguments);
  43229. }
  43230. MaxpTable.prototype.tag = 'maxp';
  43231. MaxpTable.prototype.parse = function(data) {
  43232. data.pos = this.offset;
  43233. this.version = data.readInt();
  43234. this.numGlyphs = data.readUInt16();
  43235. this.maxPoints = data.readUInt16();
  43236. this.maxContours = data.readUInt16();
  43237. this.maxCompositePoints = data.readUInt16();
  43238. this.maxComponentContours = data.readUInt16();
  43239. this.maxZones = data.readUInt16();
  43240. this.maxTwilightPoints = data.readUInt16();
  43241. this.maxStorage = data.readUInt16();
  43242. this.maxFunctionDefs = data.readUInt16();
  43243. this.maxInstructionDefs = data.readUInt16();
  43244. this.maxStackElements = data.readUInt16();
  43245. this.maxSizeOfInstructions = data.readUInt16();
  43246. this.maxComponentElements = data.readUInt16();
  43247. return this.maxComponentDepth = data.readUInt16();
  43248. };
  43249. MaxpTable.prototype.encode = function(ids) {
  43250. var table;
  43251. table = new Data;
  43252. table.writeInt(this.version);
  43253. table.writeUInt16(ids.length);
  43254. table.writeUInt16(this.maxPoints);
  43255. table.writeUInt16(this.maxContours);
  43256. table.writeUInt16(this.maxCompositePoints);
  43257. table.writeUInt16(this.maxComponentContours);
  43258. table.writeUInt16(this.maxZones);
  43259. table.writeUInt16(this.maxTwilightPoints);
  43260. table.writeUInt16(this.maxStorage);
  43261. table.writeUInt16(this.maxFunctionDefs);
  43262. table.writeUInt16(this.maxInstructionDefs);
  43263. table.writeUInt16(this.maxStackElements);
  43264. table.writeUInt16(this.maxSizeOfInstructions);
  43265. table.writeUInt16(this.maxComponentElements);
  43266. table.writeUInt16(this.maxComponentDepth);
  43267. return table.data;
  43268. };
  43269. return MaxpTable;
  43270. })(Table);
  43271. module.exports = MaxpTable;
  43272. }).call(this);
  43273. /***/ },
  43274. /* 86 */
  43275. /***/ function(module, exports, __webpack_require__) {
  43276. // Generated by CoffeeScript 1.7.1
  43277. (function() {
  43278. var Data, PostTable, Table,
  43279. __hasProp = {}.hasOwnProperty,
  43280. __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
  43281. Table = __webpack_require__(99);
  43282. Data = __webpack_require__(34);
  43283. PostTable = (function(_super) {
  43284. var POSTSCRIPT_GLYPHS;
  43285. __extends(PostTable, _super);
  43286. function PostTable() {
  43287. return PostTable.__super__.constructor.apply(this, arguments);
  43288. }
  43289. PostTable.prototype.tag = 'post';
  43290. PostTable.prototype.parse = function(data) {
  43291. var i, length, numberOfGlyphs, _i, _results;
  43292. data.pos = this.offset;
  43293. this.format = data.readInt();
  43294. this.italicAngle = data.readInt();
  43295. this.underlinePosition = data.readShort();
  43296. this.underlineThickness = data.readShort();
  43297. this.isFixedPitch = data.readInt();
  43298. this.minMemType42 = data.readInt();
  43299. this.maxMemType42 = data.readInt();
  43300. this.minMemType1 = data.readInt();
  43301. this.maxMemType1 = data.readInt();
  43302. switch (this.format) {
  43303. case 0x00010000:
  43304. break;
  43305. case 0x00020000:
  43306. numberOfGlyphs = data.readUInt16();
  43307. this.glyphNameIndex = [];
  43308. for (i = _i = 0; 0 <= numberOfGlyphs ? _i < numberOfGlyphs : _i > numberOfGlyphs; i = 0 <= numberOfGlyphs ? ++_i : --_i) {
  43309. this.glyphNameIndex.push(data.readUInt16());
  43310. }
  43311. this.names = [];
  43312. _results = [];
  43313. while (data.pos < this.offset + this.length) {
  43314. length = data.readByte();
  43315. _results.push(this.names.push(data.readString(length)));
  43316. }
  43317. return _results;
  43318. break;
  43319. case 0x00025000:
  43320. numberOfGlyphs = data.readUInt16();
  43321. return this.offsets = data.read(numberOfGlyphs);
  43322. case 0x00030000:
  43323. break;
  43324. case 0x00040000:
  43325. return this.map = (function() {
  43326. var _j, _ref, _results1;
  43327. _results1 = [];
  43328. for (i = _j = 0, _ref = this.file.maxp.numGlyphs; 0 <= _ref ? _j < _ref : _j > _ref; i = 0 <= _ref ? ++_j : --_j) {
  43329. _results1.push(data.readUInt32());
  43330. }
  43331. return _results1;
  43332. }).call(this);
  43333. }
  43334. };
  43335. PostTable.prototype.glyphFor = function(code) {
  43336. var index;
  43337. switch (this.format) {
  43338. case 0x00010000:
  43339. return POSTSCRIPT_GLYPHS[code] || '.notdef';
  43340. case 0x00020000:
  43341. index = this.glyphNameIndex[code];
  43342. if (index <= 257) {
  43343. return POSTSCRIPT_GLYPHS[index];
  43344. } else {
  43345. return this.names[index - 258] || '.notdef';
  43346. }
  43347. break;
  43348. case 0x00025000:
  43349. return POSTSCRIPT_GLYPHS[code + this.offsets[code]] || '.notdef';
  43350. case 0x00030000:
  43351. return '.notdef';
  43352. case 0x00040000:
  43353. return this.map[code] || 0xFFFF;
  43354. }
  43355. };
  43356. PostTable.prototype.encode = function(mapping) {
  43357. var id, index, indexes, position, post, raw, string, strings, table, _i, _j, _k, _len, _len1, _len2;
  43358. if (!this.exists) {
  43359. return null;
  43360. }
  43361. raw = this.raw();
  43362. if (this.format === 0x00030000) {
  43363. return raw;
  43364. }
  43365. table = new Data(raw.slice(0, 32));
  43366. table.writeUInt32(0x00020000);
  43367. table.pos = 32;
  43368. indexes = [];
  43369. strings = [];
  43370. for (_i = 0, _len = mapping.length; _i < _len; _i++) {
  43371. id = mapping[_i];
  43372. post = this.glyphFor(id);
  43373. position = POSTSCRIPT_GLYPHS.indexOf(post);
  43374. if (position !== -1) {
  43375. indexes.push(position);
  43376. } else {
  43377. indexes.push(257 + strings.length);
  43378. strings.push(post);
  43379. }
  43380. }
  43381. table.writeUInt16(Object.keys(mapping).length);
  43382. for (_j = 0, _len1 = indexes.length; _j < _len1; _j++) {
  43383. index = indexes[_j];
  43384. table.writeUInt16(index);
  43385. }
  43386. for (_k = 0, _len2 = strings.length; _k < _len2; _k++) {
  43387. string = strings[_k];
  43388. table.writeByte(string.length);
  43389. table.writeString(string);
  43390. }
  43391. return table.data;
  43392. };
  43393. POSTSCRIPT_GLYPHS = '.notdef .null nonmarkingreturn space exclam quotedbl numbersign dollar percent\nampersand quotesingle parenleft parenright asterisk plus comma hyphen period slash\nzero one two three four five six seven eight nine colon semicolon less equal greater\nquestion at A B C D E F G H I J K L M N O P Q R S T U V W X Y Z\nbracketleft backslash bracketright asciicircum underscore grave\na b c d e f g h i j k l m n o p q r s t u v w x y z\nbraceleft bar braceright asciitilde Adieresis Aring Ccedilla Eacute Ntilde Odieresis\nUdieresis aacute agrave acircumflex adieresis atilde aring ccedilla eacute egrave\necircumflex edieresis iacute igrave icircumflex idieresis ntilde oacute ograve\nocircumflex odieresis otilde uacute ugrave ucircumflex udieresis dagger degree cent\nsterling section bullet paragraph germandbls registered copyright trademark acute\ndieresis notequal AE Oslash infinity plusminus lessequal greaterequal yen mu\npartialdiff summation product pi integral ordfeminine ordmasculine Omega ae oslash\nquestiondown exclamdown logicalnot radical florin approxequal Delta guillemotleft\nguillemotright ellipsis nonbreakingspace Agrave Atilde Otilde OE oe endash emdash\nquotedblleft quotedblright quoteleft quoteright divide lozenge ydieresis Ydieresis\nfraction currency guilsinglleft guilsinglright fi fl daggerdbl periodcentered\nquotesinglbase quotedblbase perthousand Acircumflex Ecircumflex Aacute Edieresis\nEgrave Iacute Icircumflex Idieresis Igrave Oacute Ocircumflex apple Ograve Uacute\nUcircumflex Ugrave dotlessi circumflex tilde macron breve dotaccent ring cedilla\nhungarumlaut ogonek caron Lslash lslash Scaron scaron Zcaron zcaron brokenbar Eth\neth Yacute yacute Thorn thorn minus multiply onesuperior twosuperior threesuperior\nonehalf onequarter threequarters franc Gbreve gbreve Idotaccent Scedilla scedilla\nCacute cacute Ccaron ccaron dcroat'.split(/\s+/g);
  43394. return PostTable;
  43395. })(Table);
  43396. module.exports = PostTable;
  43397. }).call(this);
  43398. /***/ },
  43399. /* 87 */
  43400. /***/ function(module, exports, __webpack_require__) {
  43401. // Generated by CoffeeScript 1.7.1
  43402. (function() {
  43403. var OS2Table, Table,
  43404. __hasProp = {}.hasOwnProperty,
  43405. __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
  43406. Table = __webpack_require__(99);
  43407. OS2Table = (function(_super) {
  43408. __extends(OS2Table, _super);
  43409. function OS2Table() {
  43410. return OS2Table.__super__.constructor.apply(this, arguments);
  43411. }
  43412. OS2Table.prototype.tag = 'OS/2';
  43413. OS2Table.prototype.parse = function(data) {
  43414. var i;
  43415. data.pos = this.offset;
  43416. this.version = data.readUInt16();
  43417. this.averageCharWidth = data.readShort();
  43418. this.weightClass = data.readUInt16();
  43419. this.widthClass = data.readUInt16();
  43420. this.type = data.readShort();
  43421. this.ySubscriptXSize = data.readShort();
  43422. this.ySubscriptYSize = data.readShort();
  43423. this.ySubscriptXOffset = data.readShort();
  43424. this.ySubscriptYOffset = data.readShort();
  43425. this.ySuperscriptXSize = data.readShort();
  43426. this.ySuperscriptYSize = data.readShort();
  43427. this.ySuperscriptXOffset = data.readShort();
  43428. this.ySuperscriptYOffset = data.readShort();
  43429. this.yStrikeoutSize = data.readShort();
  43430. this.yStrikeoutPosition = data.readShort();
  43431. this.familyClass = data.readShort();
  43432. this.panose = (function() {
  43433. var _i, _results;
  43434. _results = [];
  43435. for (i = _i = 0; _i < 10; i = ++_i) {
  43436. _results.push(data.readByte());
  43437. }
  43438. return _results;
  43439. })();
  43440. this.charRange = (function() {
  43441. var _i, _results;
  43442. _results = [];
  43443. for (i = _i = 0; _i < 4; i = ++_i) {
  43444. _results.push(data.readInt());
  43445. }
  43446. return _results;
  43447. })();
  43448. this.vendorID = data.readString(4);
  43449. this.selection = data.readShort();
  43450. this.firstCharIndex = data.readShort();
  43451. this.lastCharIndex = data.readShort();
  43452. if (this.version > 0) {
  43453. this.ascent = data.readShort();
  43454. this.descent = data.readShort();
  43455. this.lineGap = data.readShort();
  43456. this.winAscent = data.readShort();
  43457. this.winDescent = data.readShort();
  43458. this.codePageRange = (function() {
  43459. var _i, _results;
  43460. _results = [];
  43461. for (i = _i = 0; _i < 2; i = ++_i) {
  43462. _results.push(data.readInt());
  43463. }
  43464. return _results;
  43465. })();
  43466. if (this.version > 1) {
  43467. this.xHeight = data.readShort();
  43468. this.capHeight = data.readShort();
  43469. this.defaultChar = data.readShort();
  43470. this.breakChar = data.readShort();
  43471. return this.maxContext = data.readShort();
  43472. }
  43473. }
  43474. };
  43475. OS2Table.prototype.encode = function() {
  43476. return this.raw();
  43477. };
  43478. return OS2Table;
  43479. })(Table);
  43480. module.exports = OS2Table;
  43481. }).call(this);
  43482. /***/ },
  43483. /* 88 */
  43484. /***/ function(module, exports, __webpack_require__) {
  43485. // Generated by CoffeeScript 1.7.1
  43486. (function() {
  43487. var Data, LocaTable, Table,
  43488. __hasProp = {}.hasOwnProperty,
  43489. __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
  43490. Table = __webpack_require__(99);
  43491. Data = __webpack_require__(34);
  43492. LocaTable = (function(_super) {
  43493. __extends(LocaTable, _super);
  43494. function LocaTable() {
  43495. return LocaTable.__super__.constructor.apply(this, arguments);
  43496. }
  43497. LocaTable.prototype.tag = 'loca';
  43498. LocaTable.prototype.parse = function(data) {
  43499. var format, i;
  43500. data.pos = this.offset;
  43501. format = this.file.head.indexToLocFormat;
  43502. if (format === 0) {
  43503. return this.offsets = (function() {
  43504. var _i, _ref, _results;
  43505. _results = [];
  43506. for (i = _i = 0, _ref = this.length; _i < _ref; i = _i += 2) {
  43507. _results.push(data.readUInt16() * 2);
  43508. }
  43509. return _results;
  43510. }).call(this);
  43511. } else {
  43512. return this.offsets = (function() {
  43513. var _i, _ref, _results;
  43514. _results = [];
  43515. for (i = _i = 0, _ref = this.length; _i < _ref; i = _i += 4) {
  43516. _results.push(data.readUInt32());
  43517. }
  43518. return _results;
  43519. }).call(this);
  43520. }
  43521. };
  43522. LocaTable.prototype.indexOf = function(id) {
  43523. return this.offsets[id];
  43524. };
  43525. LocaTable.prototype.lengthOf = function(id) {
  43526. return this.offsets[id + 1] - this.offsets[id];
  43527. };
  43528. LocaTable.prototype.encode = function(offsets) {
  43529. var o, offset, ret, table, _i, _j, _k, _len, _len1, _len2, _ref;
  43530. table = new Data;
  43531. for (_i = 0, _len = offsets.length; _i < _len; _i++) {
  43532. offset = offsets[_i];
  43533. if (!(offset > 0xFFFF)) {
  43534. continue;
  43535. }
  43536. _ref = this.offsets;
  43537. for (_j = 0, _len1 = _ref.length; _j < _len1; _j++) {
  43538. o = _ref[_j];
  43539. table.writeUInt32(o);
  43540. }
  43541. return ret = {
  43542. format: 1,
  43543. table: table.data
  43544. };
  43545. }
  43546. for (_k = 0, _len2 = offsets.length; _k < _len2; _k++) {
  43547. o = offsets[_k];
  43548. table.writeUInt16(o / 2);
  43549. }
  43550. return ret = {
  43551. format: 0,
  43552. table: table.data
  43553. };
  43554. };
  43555. return LocaTable;
  43556. })(Table);
  43557. module.exports = LocaTable;
  43558. }).call(this);
  43559. /***/ },
  43560. /* 89 */
  43561. /***/ function(module, exports, __webpack_require__) {
  43562. // Generated by CoffeeScript 1.7.1
  43563. /*
  43564. * An implementation of Ruby's string.succ method.
  43565. * By Devon Govett
  43566. *
  43567. * Returns the successor to str. The successor is calculated by incrementing characters starting
  43568. * from the rightmost alphanumeric (or the rightmost character if there are no alphanumerics) in the
  43569. * string. Incrementing a digit always results in another digit, and incrementing a letter results in
  43570. * another letter of the same case.
  43571. *
  43572. * If the increment generates a carry, the character to the left of it is incremented. This
  43573. * process repeats until there is no carry, adding an additional character if necessary.
  43574. *
  43575. * succ("abcd") == "abce"
  43576. * succ("THX1138") == "THX1139"
  43577. * succ("<<koala>>") == "<<koalb>>"
  43578. * succ("1999zzz") == "2000aaa"
  43579. * succ("ZZZ9999") == "AAAA0000"
  43580. */
  43581. (function() {
  43582. exports.successorOf = function(input) {
  43583. var added, alphabet, carry, i, index, isUpperCase, last, length, next, result;
  43584. alphabet = 'abcdefghijklmnopqrstuvwxyz';
  43585. length = alphabet.length;
  43586. result = input;
  43587. i = input.length;
  43588. while (i >= 0) {
  43589. last = input.charAt(--i);
  43590. if (isNaN(last)) {
  43591. index = alphabet.indexOf(last.toLowerCase());
  43592. if (index === -1) {
  43593. next = last;
  43594. carry = true;
  43595. } else {
  43596. next = alphabet.charAt((index + 1) % length);
  43597. isUpperCase = last === last.toUpperCase();
  43598. if (isUpperCase) {
  43599. next = next.toUpperCase();
  43600. }
  43601. carry = index + 1 >= length;
  43602. if (carry && i === 0) {
  43603. added = isUpperCase ? 'A' : 'a';
  43604. result = added + next + result.slice(1);
  43605. break;
  43606. }
  43607. }
  43608. } else {
  43609. next = +last + 1;
  43610. carry = next > 9;
  43611. if (carry) {
  43612. next = 0;
  43613. }
  43614. if (carry && i === 0) {
  43615. result = '1' + next + result.slice(1);
  43616. break;
  43617. }
  43618. }
  43619. result = result.slice(0, i) + next + result.slice(i + 1);
  43620. if (!carry) {
  43621. break;
  43622. }
  43623. }
  43624. return result;
  43625. };
  43626. exports.invert = function(object) {
  43627. var key, ret, val;
  43628. ret = {};
  43629. for (key in object) {
  43630. val = object[key];
  43631. ret[val] = key;
  43632. }
  43633. return ret;
  43634. };
  43635. }).call(this);
  43636. /***/ },
  43637. /* 90 */
  43638. /***/ function(module, exports, __webpack_require__) {
  43639. // Generated by CoffeeScript 1.7.1
  43640. (function() {
  43641. var CompoundGlyph, Data, GlyfTable, SimpleGlyph, Table,
  43642. __hasProp = {}.hasOwnProperty,
  43643. __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
  43644. __slice = [].slice;
  43645. Table = __webpack_require__(99);
  43646. Data = __webpack_require__(34);
  43647. GlyfTable = (function(_super) {
  43648. __extends(GlyfTable, _super);
  43649. function GlyfTable() {
  43650. return GlyfTable.__super__.constructor.apply(this, arguments);
  43651. }
  43652. GlyfTable.prototype.tag = 'glyf';
  43653. GlyfTable.prototype.parse = function(data) {
  43654. return this.cache = {};
  43655. };
  43656. GlyfTable.prototype.glyphFor = function(id) {
  43657. var data, index, length, loca, numberOfContours, raw, xMax, xMin, yMax, yMin;
  43658. if (id in this.cache) {
  43659. return this.cache[id];
  43660. }
  43661. loca = this.file.loca;
  43662. data = this.file.contents;
  43663. index = loca.indexOf(id);
  43664. length = loca.lengthOf(id);
  43665. if (length === 0) {
  43666. return this.cache[id] = null;
  43667. }
  43668. data.pos = this.offset + index;
  43669. raw = new Data(data.read(length));
  43670. numberOfContours = raw.readShort();
  43671. xMin = raw.readShort();
  43672. yMin = raw.readShort();
  43673. xMax = raw.readShort();
  43674. yMax = raw.readShort();
  43675. if (numberOfContours === -1) {
  43676. this.cache[id] = new CompoundGlyph(raw, xMin, yMin, xMax, yMax);
  43677. } else {
  43678. this.cache[id] = new SimpleGlyph(raw, numberOfContours, xMin, yMin, xMax, yMax);
  43679. }
  43680. return this.cache[id];
  43681. };
  43682. GlyfTable.prototype.encode = function(glyphs, mapping, old2new) {
  43683. var glyph, id, offsets, table, _i, _len;
  43684. table = [];
  43685. offsets = [];
  43686. for (_i = 0, _len = mapping.length; _i < _len; _i++) {
  43687. id = mapping[_i];
  43688. glyph = glyphs[id];
  43689. offsets.push(table.length);
  43690. if (glyph) {
  43691. table = table.concat(glyph.encode(old2new));
  43692. }
  43693. }
  43694. offsets.push(table.length);
  43695. return {
  43696. table: table,
  43697. offsets: offsets
  43698. };
  43699. };
  43700. return GlyfTable;
  43701. })(Table);
  43702. SimpleGlyph = (function() {
  43703. function SimpleGlyph(raw, numberOfContours, xMin, yMin, xMax, yMax) {
  43704. this.raw = raw;
  43705. this.numberOfContours = numberOfContours;
  43706. this.xMin = xMin;
  43707. this.yMin = yMin;
  43708. this.xMax = xMax;
  43709. this.yMax = yMax;
  43710. this.compound = false;
  43711. }
  43712. SimpleGlyph.prototype.encode = function() {
  43713. return this.raw.data;
  43714. };
  43715. return SimpleGlyph;
  43716. })();
  43717. CompoundGlyph = (function() {
  43718. var ARG_1_AND_2_ARE_WORDS, MORE_COMPONENTS, WE_HAVE_AN_X_AND_Y_SCALE, WE_HAVE_A_SCALE, WE_HAVE_A_TWO_BY_TWO, WE_HAVE_INSTRUCTIONS;
  43719. ARG_1_AND_2_ARE_WORDS = 0x0001;
  43720. WE_HAVE_A_SCALE = 0x0008;
  43721. MORE_COMPONENTS = 0x0020;
  43722. WE_HAVE_AN_X_AND_Y_SCALE = 0x0040;
  43723. WE_HAVE_A_TWO_BY_TWO = 0x0080;
  43724. WE_HAVE_INSTRUCTIONS = 0x0100;
  43725. function CompoundGlyph(raw, xMin, yMin, xMax, yMax) {
  43726. var data, flags;
  43727. this.raw = raw;
  43728. this.xMin = xMin;
  43729. this.yMin = yMin;
  43730. this.xMax = xMax;
  43731. this.yMax = yMax;
  43732. this.compound = true;
  43733. this.glyphIDs = [];
  43734. this.glyphOffsets = [];
  43735. data = this.raw;
  43736. while (true) {
  43737. flags = data.readShort();
  43738. this.glyphOffsets.push(data.pos);
  43739. this.glyphIDs.push(data.readShort());
  43740. if (!(flags & MORE_COMPONENTS)) {
  43741. break;
  43742. }
  43743. if (flags & ARG_1_AND_2_ARE_WORDS) {
  43744. data.pos += 4;
  43745. } else {
  43746. data.pos += 2;
  43747. }
  43748. if (flags & WE_HAVE_A_TWO_BY_TWO) {
  43749. data.pos += 8;
  43750. } else if (flags & WE_HAVE_AN_X_AND_Y_SCALE) {
  43751. data.pos += 4;
  43752. } else if (flags & WE_HAVE_A_SCALE) {
  43753. data.pos += 2;
  43754. }
  43755. }
  43756. }
  43757. CompoundGlyph.prototype.encode = function(mapping) {
  43758. var i, id, result, _i, _len, _ref;
  43759. result = new Data(__slice.call(this.raw.data));
  43760. _ref = this.glyphIDs;
  43761. for (i = _i = 0, _len = _ref.length; _i < _len; i = ++_i) {
  43762. id = _ref[i];
  43763. result.pos = this.glyphOffsets[i];
  43764. result.writeShort(mapping[id]);
  43765. }
  43766. return result.data;
  43767. };
  43768. return CompoundGlyph;
  43769. })();
  43770. module.exports = GlyfTable;
  43771. }).call(this);
  43772. /***/ },
  43773. /* 91 */
  43774. /***/ function(module, exports, __webpack_require__) {
  43775. // Generated by CoffeeScript 1.7.1
  43776. (function() {
  43777. var CI_BRK, CP_BRK, DI_BRK, IN_BRK, PR_BRK;
  43778. exports.DI_BRK = DI_BRK = 0;
  43779. exports.IN_BRK = IN_BRK = 1;
  43780. exports.CI_BRK = CI_BRK = 2;
  43781. exports.CP_BRK = CP_BRK = 3;
  43782. exports.PR_BRK = PR_BRK = 4;
  43783. exports.pairTable = [[PR_BRK, PR_BRK, PR_BRK, PR_BRK, PR_BRK, PR_BRK, PR_BRK, PR_BRK, PR_BRK, PR_BRK, PR_BRK, PR_BRK, PR_BRK, PR_BRK, PR_BRK, PR_BRK, PR_BRK, PR_BRK, PR_BRK, PR_BRK, PR_BRK, CP_BRK, PR_BRK, PR_BRK, PR_BRK, PR_BRK, PR_BRK, PR_BRK, PR_BRK], [DI_BRK, PR_BRK, PR_BRK, IN_BRK, IN_BRK, PR_BRK, PR_BRK, PR_BRK, PR_BRK, IN_BRK, IN_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, IN_BRK, IN_BRK, DI_BRK, DI_BRK, PR_BRK, CI_BRK, PR_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK], [DI_BRK, PR_BRK, PR_BRK, IN_BRK, IN_BRK, PR_BRK, PR_BRK, PR_BRK, PR_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, DI_BRK, DI_BRK, IN_BRK, IN_BRK, DI_BRK, DI_BRK, PR_BRK, CI_BRK, PR_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK], [PR_BRK, PR_BRK, PR_BRK, IN_BRK, IN_BRK, IN_BRK, PR_BRK, PR_BRK, PR_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, PR_BRK, CI_BRK, PR_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK], [IN_BRK, PR_BRK, PR_BRK, IN_BRK, IN_BRK, IN_BRK, PR_BRK, PR_BRK, PR_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, PR_BRK, CI_BRK, PR_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK], [DI_BRK, PR_BRK, PR_BRK, IN_BRK, IN_BRK, IN_BRK, PR_BRK, PR_BRK, PR_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, IN_BRK, IN_BRK, DI_BRK, DI_BRK, PR_BRK, CI_BRK, PR_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK], [DI_BRK, PR_BRK, PR_BRK, IN_BRK, IN_BRK, IN_BRK, PR_BRK, PR_BRK, PR_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, IN_BRK, IN_BRK, DI_BRK, DI_BRK, PR_BRK, CI_BRK, PR_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK], [DI_BRK, PR_BRK, PR_BRK, IN_BRK, IN_BRK, IN_BRK, PR_BRK, PR_BRK, PR_BRK, DI_BRK, DI_BRK, IN_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, IN_BRK, IN_BRK, DI_BRK, DI_BRK, PR_BRK, CI_BRK, PR_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK], [DI_BRK, PR_BRK, PR_BRK, IN_BRK, IN_BRK, IN_BRK, PR_BRK, PR_BRK, PR_BRK, DI_BRK, DI_BRK, IN_BRK, IN_BRK, IN_BRK, DI_BRK, DI_BRK, IN_BRK, IN_BRK, DI_BRK, DI_BRK, PR_BRK, CI_BRK, PR_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK], [IN_BRK, PR_BRK, PR_BRK, IN_BRK, IN_BRK, IN_BRK, PR_BRK, PR_BRK, PR_BRK, DI_BRK, DI_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, DI_BRK, IN_BRK, IN_BRK, DI_BRK, DI_BRK, PR_BRK, CI_BRK, PR_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, DI_BRK], [IN_BRK, PR_BRK, PR_BRK, IN_BRK, IN_BRK, IN_BRK, PR_BRK, PR_BRK, PR_BRK, DI_BRK, DI_BRK, IN_BRK, IN_BRK, IN_BRK, DI_BRK, DI_BRK, IN_BRK, IN_BRK, DI_BRK, DI_BRK, PR_BRK, CI_BRK, PR_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK], [IN_BRK, PR_BRK, PR_BRK, IN_BRK, IN_BRK, IN_BRK, PR_BRK, PR_BRK, PR_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, DI_BRK, IN_BRK, IN_BRK, IN_BRK, DI_BRK, DI_BRK, PR_BRK, CI_BRK, PR_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK], [IN_BRK, PR_BRK, PR_BRK, IN_BRK, IN_BRK, IN_BRK, PR_BRK, PR_BRK, PR_BRK, DI_BRK, DI_BRK, IN_BRK, IN_BRK, IN_BRK, DI_BRK, IN_BRK, IN_BRK, IN_BRK, DI_BRK, DI_BRK, PR_BRK, CI_BRK, PR_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK], [IN_BRK, PR_BRK, PR_BRK, IN_BRK, IN_BRK, IN_BRK, PR_BRK, PR_BRK, PR_BRK, DI_BRK, DI_BRK, IN_BRK, IN_BRK, IN_BRK, DI_BRK, IN_BRK, IN_BRK, IN_BRK, DI_BRK, DI_BRK, PR_BRK, CI_BRK, PR_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK], [DI_BRK, PR_BRK, PR_BRK, IN_BRK, IN_BRK, IN_BRK, PR_BRK, PR_BRK, PR_BRK, DI_BRK, IN_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, IN_BRK, IN_BRK, IN_BRK, DI_BRK, DI_BRK, PR_BRK, CI_BRK, PR_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK], [DI_BRK, PR_BRK, PR_BRK, IN_BRK, IN_BRK, IN_BRK, PR_BRK, PR_BRK, PR_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, IN_BRK, IN_BRK, IN_BRK, DI_BRK, DI_BRK, PR_BRK, CI_BRK, PR_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK], [DI_BRK, PR_BRK, PR_BRK, IN_BRK, DI_BRK, IN_BRK, PR_BRK, PR_BRK, PR_BRK, DI_BRK, DI_BRK, IN_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, IN_BRK, IN_BRK, DI_BRK, DI_BRK, PR_BRK, CI_BRK, PR_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK], [DI_BRK, PR_BRK, PR_BRK, IN_BRK, DI_BRK, IN_BRK, PR_BRK, PR_BRK, PR_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, IN_BRK, IN_BRK, DI_BRK, DI_BRK, PR_BRK, CI_BRK, PR_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK], [IN_BRK, PR_BRK, PR_BRK, IN_BRK, IN_BRK, IN_BRK, PR_BRK, PR_BRK, PR_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, PR_BRK, CI_BRK, PR_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK], [DI_BRK, PR_BRK, PR_BRK, IN_BRK, IN_BRK, IN_BRK, PR_BRK, PR_BRK, PR_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, IN_BRK, IN_BRK, DI_BRK, PR_BRK, PR_BRK, CI_BRK, PR_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK], [DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, PR_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK], [IN_BRK, PR_BRK, PR_BRK, IN_BRK, IN_BRK, IN_BRK, PR_BRK, PR_BRK, PR_BRK, DI_BRK, DI_BRK, IN_BRK, IN_BRK, IN_BRK, DI_BRK, IN_BRK, IN_BRK, IN_BRK, DI_BRK, DI_BRK, PR_BRK, CI_BRK, PR_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK], [IN_BRK, PR_BRK, PR_BRK, IN_BRK, IN_BRK, IN_BRK, PR_BRK, PR_BRK, PR_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, PR_BRK, CI_BRK, PR_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK], [DI_BRK, PR_BRK, PR_BRK, IN_BRK, IN_BRK, IN_BRK, PR_BRK, PR_BRK, PR_BRK, DI_BRK, IN_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, IN_BRK, IN_BRK, IN_BRK, DI_BRK, DI_BRK, PR_BRK, CI_BRK, PR_BRK, DI_BRK, DI_BRK, DI_BRK, IN_BRK, IN_BRK, DI_BRK], [DI_BRK, PR_BRK, PR_BRK, IN_BRK, IN_BRK, IN_BRK, PR_BRK, PR_BRK, PR_BRK, DI_BRK, IN_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, IN_BRK, IN_BRK, IN_BRK, DI_BRK, DI_BRK, PR_BRK, CI_BRK, PR_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, IN_BRK, DI_BRK], [DI_BRK, PR_BRK, PR_BRK, IN_BRK, IN_BRK, IN_BRK, PR_BRK, PR_BRK, PR_BRK, DI_BRK, IN_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, IN_BRK, IN_BRK, IN_BRK, DI_BRK, DI_BRK, PR_BRK, CI_BRK, PR_BRK, IN_BRK, IN_BRK, IN_BRK, IN_BRK, DI_BRK, DI_BRK], [DI_BRK, PR_BRK, PR_BRK, IN_BRK, IN_BRK, IN_BRK, PR_BRK, PR_BRK, PR_BRK, DI_BRK, IN_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, IN_BRK, IN_BRK, IN_BRK, DI_BRK, DI_BRK, PR_BRK, CI_BRK, PR_BRK, DI_BRK, DI_BRK, DI_BRK, IN_BRK, IN_BRK, DI_BRK], [DI_BRK, PR_BRK, PR_BRK, IN_BRK, IN_BRK, IN_BRK, PR_BRK, PR_BRK, PR_BRK, DI_BRK, IN_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, IN_BRK, IN_BRK, IN_BRK, DI_BRK, DI_BRK, PR_BRK, CI_BRK, PR_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, IN_BRK, DI_BRK], [DI_BRK, PR_BRK, PR_BRK, IN_BRK, IN_BRK, IN_BRK, PR_BRK, PR_BRK, PR_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, IN_BRK, IN_BRK, DI_BRK, DI_BRK, PR_BRK, CI_BRK, PR_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, DI_BRK, IN_BRK]];
  43784. }).call(this);
  43785. /***/ },
  43786. /* 92 */
  43787. /***/ function(module, exports, __webpack_require__) {
  43788. // Generated by CoffeeScript 1.7.1
  43789. (function() {
  43790. var AI, AL, B2, BA, BB, BK, CB, CJ, CL, CM, CP, CR, EX, GL, H2, H3, HL, HY, ID, IN, IS, JL, JT, JV, LF, NL, NS, NU, OP, PO, PR, QU, RI, SA, SG, SP, SY, WJ, XX, ZW;
  43791. exports.OP = OP = 0;
  43792. exports.CL = CL = 1;
  43793. exports.CP = CP = 2;
  43794. exports.QU = QU = 3;
  43795. exports.GL = GL = 4;
  43796. exports.NS = NS = 5;
  43797. exports.EX = EX = 6;
  43798. exports.SY = SY = 7;
  43799. exports.IS = IS = 8;
  43800. exports.PR = PR = 9;
  43801. exports.PO = PO = 10;
  43802. exports.NU = NU = 11;
  43803. exports.AL = AL = 12;
  43804. exports.HL = HL = 13;
  43805. exports.ID = ID = 14;
  43806. exports.IN = IN = 15;
  43807. exports.HY = HY = 16;
  43808. exports.BA = BA = 17;
  43809. exports.BB = BB = 18;
  43810. exports.B2 = B2 = 19;
  43811. exports.ZW = ZW = 20;
  43812. exports.CM = CM = 21;
  43813. exports.WJ = WJ = 22;
  43814. exports.H2 = H2 = 23;
  43815. exports.H3 = H3 = 24;
  43816. exports.JL = JL = 25;
  43817. exports.JV = JV = 26;
  43818. exports.JT = JT = 27;
  43819. exports.RI = RI = 28;
  43820. exports.AI = AI = 29;
  43821. exports.BK = BK = 30;
  43822. exports.CB = CB = 31;
  43823. exports.CJ = CJ = 32;
  43824. exports.CR = CR = 33;
  43825. exports.LF = LF = 34;
  43826. exports.NL = NL = 35;
  43827. exports.SA = SA = 36;
  43828. exports.SG = SG = 37;
  43829. exports.SP = SP = 38;
  43830. exports.XX = XX = 39;
  43831. }).call(this);
  43832. /***/ },
  43833. /* 93 */
  43834. /***/ function(module, exports, __webpack_require__) {
  43835. /* (ignored) */
  43836. /***/ },
  43837. /* 94 */
  43838. /***/ function(module, exports, __webpack_require__) {
  43839. if (typeof Object.create === 'function') {
  43840. // implementation from standard node.js 'util' module
  43841. module.exports = function inherits(ctor, superCtor) {
  43842. ctor.super_ = superCtor
  43843. ctor.prototype = Object.create(superCtor.prototype, {
  43844. constructor: {
  43845. value: ctor,
  43846. enumerable: false,
  43847. writable: true,
  43848. configurable: true
  43849. }
  43850. });
  43851. };
  43852. } else {
  43853. // old school shim for old browsers
  43854. module.exports = function inherits(ctor, superCtor) {
  43855. ctor.super_ = superCtor
  43856. var TempCtor = function () {}
  43857. TempCtor.prototype = superCtor.prototype
  43858. ctor.prototype = new TempCtor()
  43859. ctor.prototype.constructor = ctor
  43860. }
  43861. }
  43862. /***/ },
  43863. /* 95 */
  43864. /***/ function(module, exports, __webpack_require__) {
  43865. 'use strict';
  43866. var utils = __webpack_require__(98);
  43867. /* Public constants ==========================================================*/
  43868. /* ===========================================================================*/
  43869. //var Z_FILTERED = 1;
  43870. //var Z_HUFFMAN_ONLY = 2;
  43871. //var Z_RLE = 3;
  43872. var Z_FIXED = 4;
  43873. //var Z_DEFAULT_STRATEGY = 0;
  43874. /* Possible values of the data_type field (though see inflate()) */
  43875. var Z_BINARY = 0;
  43876. var Z_TEXT = 1;
  43877. //var Z_ASCII = 1; // = Z_TEXT
  43878. var Z_UNKNOWN = 2;
  43879. /*============================================================================*/
  43880. function zero(buf) { var len = buf.length; while (--len >= 0) { buf[len] = 0; } }
  43881. // From zutil.h
  43882. var STORED_BLOCK = 0;
  43883. var STATIC_TREES = 1;
  43884. var DYN_TREES = 2;
  43885. /* The three kinds of block type */
  43886. var MIN_MATCH = 3;
  43887. var MAX_MATCH = 258;
  43888. /* The minimum and maximum match lengths */
  43889. // From deflate.h
  43890. /* ===========================================================================
  43891. * Internal compression state.
  43892. */
  43893. var LENGTH_CODES = 29;
  43894. /* number of length codes, not counting the special END_BLOCK code */
  43895. var LITERALS = 256;
  43896. /* number of literal bytes 0..255 */
  43897. var L_CODES = LITERALS + 1 + LENGTH_CODES;
  43898. /* number of Literal or Length codes, including the END_BLOCK code */
  43899. var D_CODES = 30;
  43900. /* number of distance codes */
  43901. var BL_CODES = 19;
  43902. /* number of codes used to transfer the bit lengths */
  43903. var HEAP_SIZE = 2*L_CODES + 1;
  43904. /* maximum heap size */
  43905. var MAX_BITS = 15;
  43906. /* All codes must not exceed MAX_BITS bits */
  43907. var Buf_size = 16;
  43908. /* size of bit buffer in bi_buf */
  43909. /* ===========================================================================
  43910. * Constants
  43911. */
  43912. var MAX_BL_BITS = 7;
  43913. /* Bit length codes must not exceed MAX_BL_BITS bits */
  43914. var END_BLOCK = 256;
  43915. /* end of block literal code */
  43916. var REP_3_6 = 16;
  43917. /* repeat previous bit length 3-6 times (2 bits of repeat count) */
  43918. var REPZ_3_10 = 17;
  43919. /* repeat a zero length 3-10 times (3 bits of repeat count) */
  43920. var REPZ_11_138 = 18;
  43921. /* repeat a zero length 11-138 times (7 bits of repeat count) */
  43922. var extra_lbits = /* extra bits for each length code */
  43923. [0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0];
  43924. var extra_dbits = /* extra bits for each distance code */
  43925. [0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];
  43926. var extra_blbits = /* extra bits for each bit length code */
  43927. [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7];
  43928. var bl_order =
  43929. [16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];
  43930. /* The lengths of the bit length codes are sent in order of decreasing
  43931. * probability, to avoid transmitting the lengths for unused bit length codes.
  43932. */
  43933. /* ===========================================================================
  43934. * Local data. These are initialized only once.
  43935. */
  43936. // We pre-fill arrays with 0 to avoid uninitialized gaps
  43937. var DIST_CODE_LEN = 512; /* see definition of array dist_code below */
  43938. // !!!! Use flat array insdead of structure, Freq = i*2, Len = i*2+1
  43939. var static_ltree = new Array((L_CODES+2) * 2);
  43940. zero(static_ltree);
  43941. /* The static literal tree. Since the bit lengths are imposed, there is no
  43942. * need for the L_CODES extra codes used during heap construction. However
  43943. * The codes 286 and 287 are needed to build a canonical tree (see _tr_init
  43944. * below).
  43945. */
  43946. var static_dtree = new Array(D_CODES * 2);
  43947. zero(static_dtree);
  43948. /* The static distance tree. (Actually a trivial tree since all codes use
  43949. * 5 bits.)
  43950. */
  43951. var _dist_code = new Array(DIST_CODE_LEN);
  43952. zero(_dist_code);
  43953. /* Distance codes. The first 256 values correspond to the distances
  43954. * 3 .. 258, the last 256 values correspond to the top 8 bits of
  43955. * the 15 bit distances.
  43956. */
  43957. var _length_code = new Array(MAX_MATCH-MIN_MATCH+1);
  43958. zero(_length_code);
  43959. /* length code for each normalized match length (0 == MIN_MATCH) */
  43960. var base_length = new Array(LENGTH_CODES);
  43961. zero(base_length);
  43962. /* First normalized length for each code (0 = MIN_MATCH) */
  43963. var base_dist = new Array(D_CODES);
  43964. zero(base_dist);
  43965. /* First normalized distance for each code (0 = distance of 1) */
  43966. var StaticTreeDesc = function (static_tree, extra_bits, extra_base, elems, max_length) {
  43967. this.static_tree = static_tree; /* static tree or NULL */
  43968. this.extra_bits = extra_bits; /* extra bits for each code or NULL */
  43969. this.extra_base = extra_base; /* base index for extra_bits */
  43970. this.elems = elems; /* max number of elements in the tree */
  43971. this.max_length = max_length; /* max bit length for the codes */
  43972. // show if `static_tree` has data or dummy - needed for monomorphic objects
  43973. this.has_stree = static_tree && static_tree.length;
  43974. };
  43975. var static_l_desc;
  43976. var static_d_desc;
  43977. var static_bl_desc;
  43978. var TreeDesc = function(dyn_tree, stat_desc) {
  43979. this.dyn_tree = dyn_tree; /* the dynamic tree */
  43980. this.max_code = 0; /* largest code with non zero frequency */
  43981. this.stat_desc = stat_desc; /* the corresponding static tree */
  43982. };
  43983. function d_code(dist) {
  43984. return dist < 256 ? _dist_code[dist] : _dist_code[256 + (dist >>> 7)];
  43985. }
  43986. /* ===========================================================================
  43987. * Output a short LSB first on the stream.
  43988. * IN assertion: there is enough room in pendingBuf.
  43989. */
  43990. function put_short (s, w) {
  43991. // put_byte(s, (uch)((w) & 0xff));
  43992. // put_byte(s, (uch)((ush)(w) >> 8));
  43993. s.pending_buf[s.pending++] = (w) & 0xff;
  43994. s.pending_buf[s.pending++] = (w >>> 8) & 0xff;
  43995. }
  43996. /* ===========================================================================
  43997. * Send a value on a given number of bits.
  43998. * IN assertion: length <= 16 and value fits in length bits.
  43999. */
  44000. function send_bits(s, value, length) {
  44001. if (s.bi_valid > (Buf_size - length)) {
  44002. s.bi_buf |= (value << s.bi_valid) & 0xffff;
  44003. put_short(s, s.bi_buf);
  44004. s.bi_buf = value >> (Buf_size - s.bi_valid);
  44005. s.bi_valid += length - Buf_size;
  44006. } else {
  44007. s.bi_buf |= (value << s.bi_valid) & 0xffff;
  44008. s.bi_valid += length;
  44009. }
  44010. }
  44011. function send_code(s, c, tree) {
  44012. send_bits(s, tree[c*2]/*.Code*/, tree[c*2 + 1]/*.Len*/);
  44013. }
  44014. /* ===========================================================================
  44015. * Reverse the first len bits of a code, using straightforward code (a faster
  44016. * method would use a table)
  44017. * IN assertion: 1 <= len <= 15
  44018. */
  44019. function bi_reverse(code, len) {
  44020. var res = 0;
  44021. do {
  44022. res |= code & 1;
  44023. code >>>= 1;
  44024. res <<= 1;
  44025. } while (--len > 0);
  44026. return res >>> 1;
  44027. }
  44028. /* ===========================================================================
  44029. * Flush the bit buffer, keeping at most 7 bits in it.
  44030. */
  44031. function bi_flush(s) {
  44032. if (s.bi_valid === 16) {
  44033. put_short(s, s.bi_buf);
  44034. s.bi_buf = 0;
  44035. s.bi_valid = 0;
  44036. } else if (s.bi_valid >= 8) {
  44037. s.pending_buf[s.pending++] = s.bi_buf & 0xff;
  44038. s.bi_buf >>= 8;
  44039. s.bi_valid -= 8;
  44040. }
  44041. }
  44042. /* ===========================================================================
  44043. * Compute the optimal bit lengths for a tree and update the total bit length
  44044. * for the current block.
  44045. * IN assertion: the fields freq and dad are set, heap[heap_max] and
  44046. * above are the tree nodes sorted by increasing frequency.
  44047. * OUT assertions: the field len is set to the optimal bit length, the
  44048. * array bl_count contains the frequencies for each bit length.
  44049. * The length opt_len is updated; static_len is also updated if stree is
  44050. * not null.
  44051. */
  44052. function gen_bitlen(s, desc)
  44053. // deflate_state *s;
  44054. // tree_desc *desc; /* the tree descriptor */
  44055. {
  44056. var tree = desc.dyn_tree;
  44057. var max_code = desc.max_code;
  44058. var stree = desc.stat_desc.static_tree;
  44059. var has_stree = desc.stat_desc.has_stree;
  44060. var extra = desc.stat_desc.extra_bits;
  44061. var base = desc.stat_desc.extra_base;
  44062. var max_length = desc.stat_desc.max_length;
  44063. var h; /* heap index */
  44064. var n, m; /* iterate over the tree elements */
  44065. var bits; /* bit length */
  44066. var xbits; /* extra bits */
  44067. var f; /* frequency */
  44068. var overflow = 0; /* number of elements with bit length too large */
  44069. for (bits = 0; bits <= MAX_BITS; bits++) {
  44070. s.bl_count[bits] = 0;
  44071. }
  44072. /* In a first pass, compute the optimal bit lengths (which may
  44073. * overflow in the case of the bit length tree).
  44074. */
  44075. tree[s.heap[s.heap_max]*2 + 1]/*.Len*/ = 0; /* root of the heap */
  44076. for (h = s.heap_max+1; h < HEAP_SIZE; h++) {
  44077. n = s.heap[h];
  44078. bits = tree[tree[n*2 +1]/*.Dad*/ * 2 + 1]/*.Len*/ + 1;
  44079. if (bits > max_length) {
  44080. bits = max_length;
  44081. overflow++;
  44082. }
  44083. tree[n*2 + 1]/*.Len*/ = bits;
  44084. /* We overwrite tree[n].Dad which is no longer needed */
  44085. if (n > max_code) { continue; } /* not a leaf node */
  44086. s.bl_count[bits]++;
  44087. xbits = 0;
  44088. if (n >= base) {
  44089. xbits = extra[n-base];
  44090. }
  44091. f = tree[n * 2]/*.Freq*/;
  44092. s.opt_len += f * (bits + xbits);
  44093. if (has_stree) {
  44094. s.static_len += f * (stree[n*2 + 1]/*.Len*/ + xbits);
  44095. }
  44096. }
  44097. if (overflow === 0) { return; }
  44098. // Trace((stderr,"\nbit length overflow\n"));
  44099. /* This happens for example on obj2 and pic of the Calgary corpus */
  44100. /* Find the first bit length which could increase: */
  44101. do {
  44102. bits = max_length-1;
  44103. while (s.bl_count[bits] === 0) { bits--; }
  44104. s.bl_count[bits]--; /* move one leaf down the tree */
  44105. s.bl_count[bits+1] += 2; /* move one overflow item as its brother */
  44106. s.bl_count[max_length]--;
  44107. /* The brother of the overflow item also moves one step up,
  44108. * but this does not affect bl_count[max_length]
  44109. */
  44110. overflow -= 2;
  44111. } while (overflow > 0);
  44112. /* Now recompute all bit lengths, scanning in increasing frequency.
  44113. * h is still equal to HEAP_SIZE. (It is simpler to reconstruct all
  44114. * lengths instead of fixing only the wrong ones. This idea is taken
  44115. * from 'ar' written by Haruhiko Okumura.)
  44116. */
  44117. for (bits = max_length; bits !== 0; bits--) {
  44118. n = s.bl_count[bits];
  44119. while (n !== 0) {
  44120. m = s.heap[--h];
  44121. if (m > max_code) { continue; }
  44122. if (tree[m*2 + 1]/*.Len*/ !== bits) {
  44123. // Trace((stderr,"code %d bits %d->%d\n", m, tree[m].Len, bits));
  44124. s.opt_len += (bits - tree[m*2 + 1]/*.Len*/)*tree[m*2]/*.Freq*/;
  44125. tree[m*2 + 1]/*.Len*/ = bits;
  44126. }
  44127. n--;
  44128. }
  44129. }
  44130. }
  44131. /* ===========================================================================
  44132. * Generate the codes for a given tree and bit counts (which need not be
  44133. * optimal).
  44134. * IN assertion: the array bl_count contains the bit length statistics for
  44135. * the given tree and the field len is set for all tree elements.
  44136. * OUT assertion: the field code is set for all tree elements of non
  44137. * zero code length.
  44138. */
  44139. function gen_codes(tree, max_code, bl_count)
  44140. // ct_data *tree; /* the tree to decorate */
  44141. // int max_code; /* largest code with non zero frequency */
  44142. // ushf *bl_count; /* number of codes at each bit length */
  44143. {
  44144. var next_code = new Array(MAX_BITS+1); /* next code value for each bit length */
  44145. var code = 0; /* running code value */
  44146. var bits; /* bit index */
  44147. var n; /* code index */
  44148. /* The distribution counts are first used to generate the code values
  44149. * without bit reversal.
  44150. */
  44151. for (bits = 1; bits <= MAX_BITS; bits++) {
  44152. next_code[bits] = code = (code + bl_count[bits-1]) << 1;
  44153. }
  44154. /* Check that the bit counts in bl_count are consistent. The last code
  44155. * must be all ones.
  44156. */
  44157. //Assert (code + bl_count[MAX_BITS]-1 == (1<<MAX_BITS)-1,
  44158. // "inconsistent bit counts");
  44159. //Tracev((stderr,"\ngen_codes: max_code %d ", max_code));
  44160. for (n = 0; n <= max_code; n++) {
  44161. var len = tree[n*2 + 1]/*.Len*/;
  44162. if (len === 0) { continue; }
  44163. /* Now reverse the bits */
  44164. tree[n*2]/*.Code*/ = bi_reverse(next_code[len]++, len);
  44165. //Tracecv(tree != static_ltree, (stderr,"\nn %3d %c l %2d c %4x (%x) ",
  44166. // n, (isgraph(n) ? n : ' '), len, tree[n].Code, next_code[len]-1));
  44167. }
  44168. }
  44169. /* ===========================================================================
  44170. * Initialize the various 'constant' tables.
  44171. */
  44172. function tr_static_init() {
  44173. var n; /* iterates over tree elements */
  44174. var bits; /* bit counter */
  44175. var length; /* length value */
  44176. var code; /* code value */
  44177. var dist; /* distance index */
  44178. var bl_count = new Array(MAX_BITS+1);
  44179. /* number of codes at each bit length for an optimal tree */
  44180. // do check in _tr_init()
  44181. //if (static_init_done) return;
  44182. /* For some embedded targets, global variables are not initialized: */
  44183. /*#ifdef NO_INIT_GLOBAL_POINTERS
  44184. static_l_desc.static_tree = static_ltree;
  44185. static_l_desc.extra_bits = extra_lbits;
  44186. static_d_desc.static_tree = static_dtree;
  44187. static_d_desc.extra_bits = extra_dbits;
  44188. static_bl_desc.extra_bits = extra_blbits;
  44189. #endif*/
  44190. /* Initialize the mapping length (0..255) -> length code (0..28) */
  44191. length = 0;
  44192. for (code = 0; code < LENGTH_CODES-1; code++) {
  44193. base_length[code] = length;
  44194. for (n = 0; n < (1<<extra_lbits[code]); n++) {
  44195. _length_code[length++] = code;
  44196. }
  44197. }
  44198. //Assert (length == 256, "tr_static_init: length != 256");
  44199. /* Note that the length 255 (match length 258) can be represented
  44200. * in two different ways: code 284 + 5 bits or code 285, so we
  44201. * overwrite length_code[255] to use the best encoding:
  44202. */
  44203. _length_code[length-1] = code;
  44204. /* Initialize the mapping dist (0..32K) -> dist code (0..29) */
  44205. dist = 0;
  44206. for (code = 0 ; code < 16; code++) {
  44207. base_dist[code] = dist;
  44208. for (n = 0; n < (1<<extra_dbits[code]); n++) {
  44209. _dist_code[dist++] = code;
  44210. }
  44211. }
  44212. //Assert (dist == 256, "tr_static_init: dist != 256");
  44213. dist >>= 7; /* from now on, all distances are divided by 128 */
  44214. for ( ; code < D_CODES; code++) {
  44215. base_dist[code] = dist << 7;
  44216. for (n = 0; n < (1<<(extra_dbits[code]-7)); n++) {
  44217. _dist_code[256 + dist++] = code;
  44218. }
  44219. }
  44220. //Assert (dist == 256, "tr_static_init: 256+dist != 512");
  44221. /* Construct the codes of the static literal tree */
  44222. for (bits = 0; bits <= MAX_BITS; bits++) {
  44223. bl_count[bits] = 0;
  44224. }
  44225. n = 0;
  44226. while (n <= 143) {
  44227. static_ltree[n*2 + 1]/*.Len*/ = 8;
  44228. n++;
  44229. bl_count[8]++;
  44230. }
  44231. while (n <= 255) {
  44232. static_ltree[n*2 + 1]/*.Len*/ = 9;
  44233. n++;
  44234. bl_count[9]++;
  44235. }
  44236. while (n <= 279) {
  44237. static_ltree[n*2 + 1]/*.Len*/ = 7;
  44238. n++;
  44239. bl_count[7]++;
  44240. }
  44241. while (n <= 287) {
  44242. static_ltree[n*2 + 1]/*.Len*/ = 8;
  44243. n++;
  44244. bl_count[8]++;
  44245. }
  44246. /* Codes 286 and 287 do not exist, but we must include them in the
  44247. * tree construction to get a canonical Huffman tree (longest code
  44248. * all ones)
  44249. */
  44250. gen_codes(static_ltree, L_CODES+1, bl_count);
  44251. /* The static distance tree is trivial: */
  44252. for (n = 0; n < D_CODES; n++) {
  44253. static_dtree[n*2 + 1]/*.Len*/ = 5;
  44254. static_dtree[n*2]/*.Code*/ = bi_reverse(n, 5);
  44255. }
  44256. // Now data ready and we can init static trees
  44257. static_l_desc = new StaticTreeDesc(static_ltree, extra_lbits, LITERALS+1, L_CODES, MAX_BITS);
  44258. static_d_desc = new StaticTreeDesc(static_dtree, extra_dbits, 0, D_CODES, MAX_BITS);
  44259. static_bl_desc =new StaticTreeDesc(new Array(0), extra_blbits, 0, BL_CODES, MAX_BL_BITS);
  44260. //static_init_done = true;
  44261. }
  44262. /* ===========================================================================
  44263. * Initialize a new block.
  44264. */
  44265. function init_block(s) {
  44266. var n; /* iterates over tree elements */
  44267. /* Initialize the trees. */
  44268. for (n = 0; n < L_CODES; n++) { s.dyn_ltree[n*2]/*.Freq*/ = 0; }
  44269. for (n = 0; n < D_CODES; n++) { s.dyn_dtree[n*2]/*.Freq*/ = 0; }
  44270. for (n = 0; n < BL_CODES; n++) { s.bl_tree[n*2]/*.Freq*/ = 0; }
  44271. s.dyn_ltree[END_BLOCK*2]/*.Freq*/ = 1;
  44272. s.opt_len = s.static_len = 0;
  44273. s.last_lit = s.matches = 0;
  44274. }
  44275. /* ===========================================================================
  44276. * Flush the bit buffer and align the output on a byte boundary
  44277. */
  44278. function bi_windup(s)
  44279. {
  44280. if (s.bi_valid > 8) {
  44281. put_short(s, s.bi_buf);
  44282. } else if (s.bi_valid > 0) {
  44283. //put_byte(s, (Byte)s->bi_buf);
  44284. s.pending_buf[s.pending++] = s.bi_buf;
  44285. }
  44286. s.bi_buf = 0;
  44287. s.bi_valid = 0;
  44288. }
  44289. /* ===========================================================================
  44290. * Copy a stored block, storing first the length and its
  44291. * one's complement if requested.
  44292. */
  44293. function copy_block(s, buf, len, header)
  44294. //DeflateState *s;
  44295. //charf *buf; /* the input data */
  44296. //unsigned len; /* its length */
  44297. //int header; /* true if block header must be written */
  44298. {
  44299. bi_windup(s); /* align on byte boundary */
  44300. if (header) {
  44301. put_short(s, len);
  44302. put_short(s, ~len);
  44303. }
  44304. // while (len--) {
  44305. // put_byte(s, *buf++);
  44306. // }
  44307. utils.arraySet(s.pending_buf, s.window, buf, len, s.pending);
  44308. s.pending += len;
  44309. }
  44310. /* ===========================================================================
  44311. * Compares to subtrees, using the tree depth as tie breaker when
  44312. * the subtrees have equal frequency. This minimizes the worst case length.
  44313. */
  44314. function smaller(tree, n, m, depth) {
  44315. var _n2 = n*2;
  44316. var _m2 = m*2;
  44317. return (tree[_n2]/*.Freq*/ < tree[_m2]/*.Freq*/ ||
  44318. (tree[_n2]/*.Freq*/ === tree[_m2]/*.Freq*/ && depth[n] <= depth[m]));
  44319. }
  44320. /* ===========================================================================
  44321. * Restore the heap property by moving down the tree starting at node k,
  44322. * exchanging a node with the smallest of its two sons if necessary, stopping
  44323. * when the heap property is re-established (each father smaller than its
  44324. * two sons).
  44325. */
  44326. function pqdownheap(s, tree, k)
  44327. // deflate_state *s;
  44328. // ct_data *tree; /* the tree to restore */
  44329. // int k; /* node to move down */
  44330. {
  44331. var v = s.heap[k];
  44332. var j = k << 1; /* left son of k */
  44333. while (j <= s.heap_len) {
  44334. /* Set j to the smallest of the two sons: */
  44335. if (j < s.heap_len &&
  44336. smaller(tree, s.heap[j+1], s.heap[j], s.depth)) {
  44337. j++;
  44338. }
  44339. /* Exit if v is smaller than both sons */
  44340. if (smaller(tree, v, s.heap[j], s.depth)) { break; }
  44341. /* Exchange v with the smallest son */
  44342. s.heap[k] = s.heap[j];
  44343. k = j;
  44344. /* And continue down the tree, setting j to the left son of k */
  44345. j <<= 1;
  44346. }
  44347. s.heap[k] = v;
  44348. }
  44349. // inlined manually
  44350. // var SMALLEST = 1;
  44351. /* ===========================================================================
  44352. * Send the block data compressed using the given Huffman trees
  44353. */
  44354. function compress_block(s, ltree, dtree)
  44355. // deflate_state *s;
  44356. // const ct_data *ltree; /* literal tree */
  44357. // const ct_data *dtree; /* distance tree */
  44358. {
  44359. var dist; /* distance of matched string */
  44360. var lc; /* match length or unmatched char (if dist == 0) */
  44361. var lx = 0; /* running index in l_buf */
  44362. var code; /* the code to send */
  44363. var extra; /* number of extra bits to send */
  44364. if (s.last_lit !== 0) {
  44365. do {
  44366. dist = (s.pending_buf[s.d_buf + lx*2] << 8) | (s.pending_buf[s.d_buf + lx*2 + 1]);
  44367. lc = s.pending_buf[s.l_buf + lx];
  44368. lx++;
  44369. if (dist === 0) {
  44370. send_code(s, lc, ltree); /* send a literal byte */
  44371. //Tracecv(isgraph(lc), (stderr," '%c' ", lc));
  44372. } else {
  44373. /* Here, lc is the match length - MIN_MATCH */
  44374. code = _length_code[lc];
  44375. send_code(s, code+LITERALS+1, ltree); /* send the length code */
  44376. extra = extra_lbits[code];
  44377. if (extra !== 0) {
  44378. lc -= base_length[code];
  44379. send_bits(s, lc, extra); /* send the extra length bits */
  44380. }
  44381. dist--; /* dist is now the match distance - 1 */
  44382. code = d_code(dist);
  44383. //Assert (code < D_CODES, "bad d_code");
  44384. send_code(s, code, dtree); /* send the distance code */
  44385. extra = extra_dbits[code];
  44386. if (extra !== 0) {
  44387. dist -= base_dist[code];
  44388. send_bits(s, dist, extra); /* send the extra distance bits */
  44389. }
  44390. } /* literal or match pair ? */
  44391. /* Check that the overlay between pending_buf and d_buf+l_buf is ok: */
  44392. //Assert((uInt)(s->pending) < s->lit_bufsize + 2*lx,
  44393. // "pendingBuf overflow");
  44394. } while (lx < s.last_lit);
  44395. }
  44396. send_code(s, END_BLOCK, ltree);
  44397. }
  44398. /* ===========================================================================
  44399. * Construct one Huffman tree and assigns the code bit strings and lengths.
  44400. * Update the total bit length for the current block.
  44401. * IN assertion: the field freq is set for all tree elements.
  44402. * OUT assertions: the fields len and code are set to the optimal bit length
  44403. * and corresponding code. The length opt_len is updated; static_len is
  44404. * also updated if stree is not null. The field max_code is set.
  44405. */
  44406. function build_tree(s, desc)
  44407. // deflate_state *s;
  44408. // tree_desc *desc; /* the tree descriptor */
  44409. {
  44410. var tree = desc.dyn_tree;
  44411. var stree = desc.stat_desc.static_tree;
  44412. var has_stree = desc.stat_desc.has_stree;
  44413. var elems = desc.stat_desc.elems;
  44414. var n, m; /* iterate over heap elements */
  44415. var max_code = -1; /* largest code with non zero frequency */
  44416. var node; /* new node being created */
  44417. /* Construct the initial heap, with least frequent element in
  44418. * heap[SMALLEST]. The sons of heap[n] are heap[2*n] and heap[2*n+1].
  44419. * heap[0] is not used.
  44420. */
  44421. s.heap_len = 0;
  44422. s.heap_max = HEAP_SIZE;
  44423. for (n = 0; n < elems; n++) {
  44424. if (tree[n * 2]/*.Freq*/ !== 0) {
  44425. s.heap[++s.heap_len] = max_code = n;
  44426. s.depth[n] = 0;
  44427. } else {
  44428. tree[n*2 + 1]/*.Len*/ = 0;
  44429. }
  44430. }
  44431. /* The pkzip format requires that at least one distance code exists,
  44432. * and that at least one bit should be sent even if there is only one
  44433. * possible code. So to avoid special checks later on we force at least
  44434. * two codes of non zero frequency.
  44435. */
  44436. while (s.heap_len < 2) {
  44437. node = s.heap[++s.heap_len] = (max_code < 2 ? ++max_code : 0);
  44438. tree[node * 2]/*.Freq*/ = 1;
  44439. s.depth[node] = 0;
  44440. s.opt_len--;
  44441. if (has_stree) {
  44442. s.static_len -= stree[node*2 + 1]/*.Len*/;
  44443. }
  44444. /* node is 0 or 1 so it does not have extra bits */
  44445. }
  44446. desc.max_code = max_code;
  44447. /* The elements heap[heap_len/2+1 .. heap_len] are leaves of the tree,
  44448. * establish sub-heaps of increasing lengths:
  44449. */
  44450. for (n = (s.heap_len >> 1/*int /2*/); n >= 1; n--) { pqdownheap(s, tree, n); }
  44451. /* Construct the Huffman tree by repeatedly combining the least two
  44452. * frequent nodes.
  44453. */
  44454. node = elems; /* next internal node of the tree */
  44455. do {
  44456. //pqremove(s, tree, n); /* n = node of least frequency */
  44457. /*** pqremove ***/
  44458. n = s.heap[1/*SMALLEST*/];
  44459. s.heap[1/*SMALLEST*/] = s.heap[s.heap_len--];
  44460. pqdownheap(s, tree, 1/*SMALLEST*/);
  44461. /***/
  44462. m = s.heap[1/*SMALLEST*/]; /* m = node of next least frequency */
  44463. s.heap[--s.heap_max] = n; /* keep the nodes sorted by frequency */
  44464. s.heap[--s.heap_max] = m;
  44465. /* Create a new node father of n and m */
  44466. tree[node * 2]/*.Freq*/ = tree[n * 2]/*.Freq*/ + tree[m * 2]/*.Freq*/;
  44467. s.depth[node] = (s.depth[n] >= s.depth[m] ? s.depth[n] : s.depth[m]) + 1;
  44468. tree[n*2 + 1]/*.Dad*/ = tree[m*2 + 1]/*.Dad*/ = node;
  44469. /* and insert the new node in the heap */
  44470. s.heap[1/*SMALLEST*/] = node++;
  44471. pqdownheap(s, tree, 1/*SMALLEST*/);
  44472. } while (s.heap_len >= 2);
  44473. s.heap[--s.heap_max] = s.heap[1/*SMALLEST*/];
  44474. /* At this point, the fields freq and dad are set. We can now
  44475. * generate the bit lengths.
  44476. */
  44477. gen_bitlen(s, desc);
  44478. /* The field len is now set, we can generate the bit codes */
  44479. gen_codes(tree, max_code, s.bl_count);
  44480. }
  44481. /* ===========================================================================
  44482. * Scan a literal or distance tree to determine the frequencies of the codes
  44483. * in the bit length tree.
  44484. */
  44485. function scan_tree(s, tree, max_code)
  44486. // deflate_state *s;
  44487. // ct_data *tree; /* the tree to be scanned */
  44488. // int max_code; /* and its largest code of non zero frequency */
  44489. {
  44490. var n; /* iterates over all tree elements */
  44491. var prevlen = -1; /* last emitted length */
  44492. var curlen; /* length of current code */
  44493. var nextlen = tree[0*2 + 1]/*.Len*/; /* length of next code */
  44494. var count = 0; /* repeat count of the current code */
  44495. var max_count = 7; /* max repeat count */
  44496. var min_count = 4; /* min repeat count */
  44497. if (nextlen === 0) {
  44498. max_count = 138;
  44499. min_count = 3;
  44500. }
  44501. tree[(max_code+1)*2 + 1]/*.Len*/ = 0xffff; /* guard */
  44502. for (n = 0; n <= max_code; n++) {
  44503. curlen = nextlen;
  44504. nextlen = tree[(n+1)*2 + 1]/*.Len*/;
  44505. if (++count < max_count && curlen === nextlen) {
  44506. continue;
  44507. } else if (count < min_count) {
  44508. s.bl_tree[curlen * 2]/*.Freq*/ += count;
  44509. } else if (curlen !== 0) {
  44510. if (curlen !== prevlen) { s.bl_tree[curlen * 2]/*.Freq*/++; }
  44511. s.bl_tree[REP_3_6*2]/*.Freq*/++;
  44512. } else if (count <= 10) {
  44513. s.bl_tree[REPZ_3_10*2]/*.Freq*/++;
  44514. } else {
  44515. s.bl_tree[REPZ_11_138*2]/*.Freq*/++;
  44516. }
  44517. count = 0;
  44518. prevlen = curlen;
  44519. if (nextlen === 0) {
  44520. max_count = 138;
  44521. min_count = 3;
  44522. } else if (curlen === nextlen) {
  44523. max_count = 6;
  44524. min_count = 3;
  44525. } else {
  44526. max_count = 7;
  44527. min_count = 4;
  44528. }
  44529. }
  44530. }
  44531. /* ===========================================================================
  44532. * Send a literal or distance tree in compressed form, using the codes in
  44533. * bl_tree.
  44534. */
  44535. function send_tree(s, tree, max_code)
  44536. // deflate_state *s;
  44537. // ct_data *tree; /* the tree to be scanned */
  44538. // int max_code; /* and its largest code of non zero frequency */
  44539. {
  44540. var n; /* iterates over all tree elements */
  44541. var prevlen = -1; /* last emitted length */
  44542. var curlen; /* length of current code */
  44543. var nextlen = tree[0*2 + 1]/*.Len*/; /* length of next code */
  44544. var count = 0; /* repeat count of the current code */
  44545. var max_count = 7; /* max repeat count */
  44546. var min_count = 4; /* min repeat count */
  44547. /* tree[max_code+1].Len = -1; */ /* guard already set */
  44548. if (nextlen === 0) {
  44549. max_count = 138;
  44550. min_count = 3;
  44551. }
  44552. for (n = 0; n <= max_code; n++) {
  44553. curlen = nextlen;
  44554. nextlen = tree[(n+1)*2 + 1]/*.Len*/;
  44555. if (++count < max_count && curlen === nextlen) {
  44556. continue;
  44557. } else if (count < min_count) {
  44558. do { send_code(s, curlen, s.bl_tree); } while (--count !== 0);
  44559. } else if (curlen !== 0) {
  44560. if (curlen !== prevlen) {
  44561. send_code(s, curlen, s.bl_tree);
  44562. count--;
  44563. }
  44564. //Assert(count >= 3 && count <= 6, " 3_6?");
  44565. send_code(s, REP_3_6, s.bl_tree);
  44566. send_bits(s, count-3, 2);
  44567. } else if (count <= 10) {
  44568. send_code(s, REPZ_3_10, s.bl_tree);
  44569. send_bits(s, count-3, 3);
  44570. } else {
  44571. send_code(s, REPZ_11_138, s.bl_tree);
  44572. send_bits(s, count-11, 7);
  44573. }
  44574. count = 0;
  44575. prevlen = curlen;
  44576. if (nextlen === 0) {
  44577. max_count = 138;
  44578. min_count = 3;
  44579. } else if (curlen === nextlen) {
  44580. max_count = 6;
  44581. min_count = 3;
  44582. } else {
  44583. max_count = 7;
  44584. min_count = 4;
  44585. }
  44586. }
  44587. }
  44588. /* ===========================================================================
  44589. * Construct the Huffman tree for the bit lengths and return the index in
  44590. * bl_order of the last bit length code to send.
  44591. */
  44592. function build_bl_tree(s) {
  44593. var max_blindex; /* index of last bit length code of non zero freq */
  44594. /* Determine the bit length frequencies for literal and distance trees */
  44595. scan_tree(s, s.dyn_ltree, s.l_desc.max_code);
  44596. scan_tree(s, s.dyn_dtree, s.d_desc.max_code);
  44597. /* Build the bit length tree: */
  44598. build_tree(s, s.bl_desc);
  44599. /* opt_len now includes the length of the tree representations, except
  44600. * the lengths of the bit lengths codes and the 5+5+4 bits for the counts.
  44601. */
  44602. /* Determine the number of bit length codes to send. The pkzip format
  44603. * requires that at least 4 bit length codes be sent. (appnote.txt says
  44604. * 3 but the actual value used is 4.)
  44605. */
  44606. for (max_blindex = BL_CODES-1; max_blindex >= 3; max_blindex--) {
  44607. if (s.bl_tree[bl_order[max_blindex]*2 + 1]/*.Len*/ !== 0) {
  44608. break;
  44609. }
  44610. }
  44611. /* Update opt_len to include the bit length tree and counts */
  44612. s.opt_len += 3*(max_blindex+1) + 5+5+4;
  44613. //Tracev((stderr, "\ndyn trees: dyn %ld, stat %ld",
  44614. // s->opt_len, s->static_len));
  44615. return max_blindex;
  44616. }
  44617. /* ===========================================================================
  44618. * Send the header for a block using dynamic Huffman trees: the counts, the
  44619. * lengths of the bit length codes, the literal tree and the distance tree.
  44620. * IN assertion: lcodes >= 257, dcodes >= 1, blcodes >= 4.
  44621. */
  44622. function send_all_trees(s, lcodes, dcodes, blcodes)
  44623. // deflate_state *s;
  44624. // int lcodes, dcodes, blcodes; /* number of codes for each tree */
  44625. {
  44626. var rank; /* index in bl_order */
  44627. //Assert (lcodes >= 257 && dcodes >= 1 && blcodes >= 4, "not enough codes");
  44628. //Assert (lcodes <= L_CODES && dcodes <= D_CODES && blcodes <= BL_CODES,
  44629. // "too many codes");
  44630. //Tracev((stderr, "\nbl counts: "));
  44631. send_bits(s, lcodes-257, 5); /* not +255 as stated in appnote.txt */
  44632. send_bits(s, dcodes-1, 5);
  44633. send_bits(s, blcodes-4, 4); /* not -3 as stated in appnote.txt */
  44634. for (rank = 0; rank < blcodes; rank++) {
  44635. //Tracev((stderr, "\nbl code %2d ", bl_order[rank]));
  44636. send_bits(s, s.bl_tree[bl_order[rank]*2 + 1]/*.Len*/, 3);
  44637. }
  44638. //Tracev((stderr, "\nbl tree: sent %ld", s->bits_sent));
  44639. send_tree(s, s.dyn_ltree, lcodes-1); /* literal tree */
  44640. //Tracev((stderr, "\nlit tree: sent %ld", s->bits_sent));
  44641. send_tree(s, s.dyn_dtree, dcodes-1); /* distance tree */
  44642. //Tracev((stderr, "\ndist tree: sent %ld", s->bits_sent));
  44643. }
  44644. /* ===========================================================================
  44645. * Check if the data type is TEXT or BINARY, using the following algorithm:
  44646. * - TEXT if the two conditions below are satisfied:
  44647. * a) There are no non-portable control characters belonging to the
  44648. * "black list" (0..6, 14..25, 28..31).
  44649. * b) There is at least one printable character belonging to the
  44650. * "white list" (9 {TAB}, 10 {LF}, 13 {CR}, 32..255).
  44651. * - BINARY otherwise.
  44652. * - The following partially-portable control characters form a
  44653. * "gray list" that is ignored in this detection algorithm:
  44654. * (7 {BEL}, 8 {BS}, 11 {VT}, 12 {FF}, 26 {SUB}, 27 {ESC}).
  44655. * IN assertion: the fields Freq of dyn_ltree are set.
  44656. */
  44657. function detect_data_type(s) {
  44658. /* black_mask is the bit mask of black-listed bytes
  44659. * set bits 0..6, 14..25, and 28..31
  44660. * 0xf3ffc07f = binary 11110011111111111100000001111111
  44661. */
  44662. var black_mask = 0xf3ffc07f;
  44663. var n;
  44664. /* Check for non-textual ("black-listed") bytes. */
  44665. for (n = 0; n <= 31; n++, black_mask >>>= 1) {
  44666. if ((black_mask & 1) && (s.dyn_ltree[n*2]/*.Freq*/ !== 0)) {
  44667. return Z_BINARY;
  44668. }
  44669. }
  44670. /* Check for textual ("white-listed") bytes. */
  44671. if (s.dyn_ltree[9 * 2]/*.Freq*/ !== 0 || s.dyn_ltree[10 * 2]/*.Freq*/ !== 0 ||
  44672. s.dyn_ltree[13 * 2]/*.Freq*/ !== 0) {
  44673. return Z_TEXT;
  44674. }
  44675. for (n = 32; n < LITERALS; n++) {
  44676. if (s.dyn_ltree[n * 2]/*.Freq*/ !== 0) {
  44677. return Z_TEXT;
  44678. }
  44679. }
  44680. /* There are no "black-listed" or "white-listed" bytes:
  44681. * this stream either is empty or has tolerated ("gray-listed") bytes only.
  44682. */
  44683. return Z_BINARY;
  44684. }
  44685. var static_init_done = false;
  44686. /* ===========================================================================
  44687. * Initialize the tree data structures for a new zlib stream.
  44688. */
  44689. function _tr_init(s)
  44690. {
  44691. if (!static_init_done) {
  44692. tr_static_init();
  44693. static_init_done = true;
  44694. }
  44695. s.l_desc = new TreeDesc(s.dyn_ltree, static_l_desc);
  44696. s.d_desc = new TreeDesc(s.dyn_dtree, static_d_desc);
  44697. s.bl_desc = new TreeDesc(s.bl_tree, static_bl_desc);
  44698. s.bi_buf = 0;
  44699. s.bi_valid = 0;
  44700. /* Initialize the first block of the first file: */
  44701. init_block(s);
  44702. }
  44703. /* ===========================================================================
  44704. * Send a stored block
  44705. */
  44706. function _tr_stored_block(s, buf, stored_len, last)
  44707. //DeflateState *s;
  44708. //charf *buf; /* input block */
  44709. //ulg stored_len; /* length of input block */
  44710. //int last; /* one if this is the last block for a file */
  44711. {
  44712. send_bits(s, (STORED_BLOCK<<1)+(last ? 1 : 0), 3); /* send block type */
  44713. copy_block(s, buf, stored_len, true); /* with header */
  44714. }
  44715. /* ===========================================================================
  44716. * Send one empty static block to give enough lookahead for inflate.
  44717. * This takes 10 bits, of which 7 may remain in the bit buffer.
  44718. */
  44719. function _tr_align(s) {
  44720. send_bits(s, STATIC_TREES<<1, 3);
  44721. send_code(s, END_BLOCK, static_ltree);
  44722. bi_flush(s);
  44723. }
  44724. /* ===========================================================================
  44725. * Determine the best encoding for the current block: dynamic trees, static
  44726. * trees or store, and output the encoded block to the zip file.
  44727. */
  44728. function _tr_flush_block(s, buf, stored_len, last)
  44729. //DeflateState *s;
  44730. //charf *buf; /* input block, or NULL if too old */
  44731. //ulg stored_len; /* length of input block */
  44732. //int last; /* one if this is the last block for a file */
  44733. {
  44734. var opt_lenb, static_lenb; /* opt_len and static_len in bytes */
  44735. var max_blindex = 0; /* index of last bit length code of non zero freq */
  44736. /* Build the Huffman trees unless a stored block is forced */
  44737. if (s.level > 0) {
  44738. /* Check if the file is binary or text */
  44739. if (s.strm.data_type === Z_UNKNOWN) {
  44740. s.strm.data_type = detect_data_type(s);
  44741. }
  44742. /* Construct the literal and distance trees */
  44743. build_tree(s, s.l_desc);
  44744. // Tracev((stderr, "\nlit data: dyn %ld, stat %ld", s->opt_len,
  44745. // s->static_len));
  44746. build_tree(s, s.d_desc);
  44747. // Tracev((stderr, "\ndist data: dyn %ld, stat %ld", s->opt_len,
  44748. // s->static_len));
  44749. /* At this point, opt_len and static_len are the total bit lengths of
  44750. * the compressed block data, excluding the tree representations.
  44751. */
  44752. /* Build the bit length tree for the above two trees, and get the index
  44753. * in bl_order of the last bit length code to send.
  44754. */
  44755. max_blindex = build_bl_tree(s);
  44756. /* Determine the best encoding. Compute the block lengths in bytes. */
  44757. opt_lenb = (s.opt_len+3+7) >>> 3;
  44758. static_lenb = (s.static_len+3+7) >>> 3;
  44759. // Tracev((stderr, "\nopt %lu(%lu) stat %lu(%lu) stored %lu lit %u ",
  44760. // opt_lenb, s->opt_len, static_lenb, s->static_len, stored_len,
  44761. // s->last_lit));
  44762. if (static_lenb <= opt_lenb) { opt_lenb = static_lenb; }
  44763. } else {
  44764. // Assert(buf != (char*)0, "lost buf");
  44765. opt_lenb = static_lenb = stored_len + 5; /* force a stored block */
  44766. }
  44767. if ((stored_len+4 <= opt_lenb) && (buf !== -1)) {
  44768. /* 4: two words for the lengths */
  44769. /* The test buf != NULL is only necessary if LIT_BUFSIZE > WSIZE.
  44770. * Otherwise we can't have processed more than WSIZE input bytes since
  44771. * the last block flush, because compression would have been
  44772. * successful. If LIT_BUFSIZE <= WSIZE, it is never too late to
  44773. * transform a block into a stored block.
  44774. */
  44775. _tr_stored_block(s, buf, stored_len, last);
  44776. } else if (s.strategy === Z_FIXED || static_lenb === opt_lenb) {
  44777. send_bits(s, (STATIC_TREES<<1) + (last ? 1 : 0), 3);
  44778. compress_block(s, static_ltree, static_dtree);
  44779. } else {
  44780. send_bits(s, (DYN_TREES<<1) + (last ? 1 : 0), 3);
  44781. send_all_trees(s, s.l_desc.max_code+1, s.d_desc.max_code+1, max_blindex+1);
  44782. compress_block(s, s.dyn_ltree, s.dyn_dtree);
  44783. }
  44784. // Assert (s->compressed_len == s->bits_sent, "bad compressed size");
  44785. /* The above check is made mod 2^32, for files larger than 512 MB
  44786. * and uLong implemented on 32 bits.
  44787. */
  44788. init_block(s);
  44789. if (last) {
  44790. bi_windup(s);
  44791. }
  44792. // Tracev((stderr,"\ncomprlen %lu(%lu) ", s->compressed_len>>3,
  44793. // s->compressed_len-7*last));
  44794. }
  44795. /* ===========================================================================
  44796. * Save the match info and tally the frequency counts. Return true if
  44797. * the current block must be flushed.
  44798. */
  44799. function _tr_tally(s, dist, lc)
  44800. // deflate_state *s;
  44801. // unsigned dist; /* distance of matched string */
  44802. // unsigned lc; /* match length-MIN_MATCH or unmatched char (if dist==0) */
  44803. {
  44804. //var out_length, in_length, dcode;
  44805. s.pending_buf[s.d_buf + s.last_lit * 2] = (dist >>> 8) & 0xff;
  44806. s.pending_buf[s.d_buf + s.last_lit * 2 + 1] = dist & 0xff;
  44807. s.pending_buf[s.l_buf + s.last_lit] = lc & 0xff;
  44808. s.last_lit++;
  44809. if (dist === 0) {
  44810. /* lc is the unmatched char */
  44811. s.dyn_ltree[lc*2]/*.Freq*/++;
  44812. } else {
  44813. s.matches++;
  44814. /* Here, lc is the match length - MIN_MATCH */
  44815. dist--; /* dist = match distance - 1 */
  44816. //Assert((ush)dist < (ush)MAX_DIST(s) &&
  44817. // (ush)lc <= (ush)(MAX_MATCH-MIN_MATCH) &&
  44818. // (ush)d_code(dist) < (ush)D_CODES, "_tr_tally: bad match");
  44819. s.dyn_ltree[(_length_code[lc]+LITERALS+1) * 2]/*.Freq*/++;
  44820. s.dyn_dtree[d_code(dist) * 2]/*.Freq*/++;
  44821. }
  44822. // (!) This block is disabled in zlib defailts,
  44823. // don't enable it for binary compatibility
  44824. //#ifdef TRUNCATE_BLOCK
  44825. // /* Try to guess if it is profitable to stop the current block here */
  44826. // if ((s.last_lit & 0x1fff) === 0 && s.level > 2) {
  44827. // /* Compute an upper bound for the compressed length */
  44828. // out_length = s.last_lit*8;
  44829. // in_length = s.strstart - s.block_start;
  44830. //
  44831. // for (dcode = 0; dcode < D_CODES; dcode++) {
  44832. // out_length += s.dyn_dtree[dcode*2]/*.Freq*/ * (5 + extra_dbits[dcode]);
  44833. // }
  44834. // out_length >>>= 3;
  44835. // //Tracev((stderr,"\nlast_lit %u, in %ld, out ~%ld(%ld%%) ",
  44836. // // s->last_lit, in_length, out_length,
  44837. // // 100L - out_length*100L/in_length));
  44838. // if (s.matches < (s.last_lit>>1)/*int /2*/ && out_length < (in_length>>1)/*int /2*/) {
  44839. // return true;
  44840. // }
  44841. // }
  44842. //#endif
  44843. return (s.last_lit === s.lit_bufsize-1);
  44844. /* We avoid equality with lit_bufsize because of wraparound at 64K
  44845. * on 16 bit machines and because stored blocks are restricted to
  44846. * 64K-1 bytes.
  44847. */
  44848. }
  44849. exports._tr_init = _tr_init;
  44850. exports._tr_stored_block = _tr_stored_block;
  44851. exports._tr_flush_block = _tr_flush_block;
  44852. exports._tr_tally = _tr_tally;
  44853. exports._tr_align = _tr_align;
  44854. /***/ },
  44855. /* 96 */
  44856. /***/ function(module, exports, __webpack_require__) {
  44857. 'use strict';
  44858. // Note: adler32 takes 12% for level 0 and 2% for level 6.
  44859. // It doesn't worth to make additional optimizationa as in original.
  44860. // Small size is preferable.
  44861. function adler32(adler, buf, len, pos) {
  44862. var s1 = (adler & 0xffff) |0
  44863. , s2 = ((adler >>> 16) & 0xffff) |0
  44864. , n = 0;
  44865. while (len !== 0) {
  44866. // Set limit ~ twice less than 5552, to keep
  44867. // s2 in 31-bits, because we force signed ints.
  44868. // in other case %= will fail.
  44869. n = len > 2000 ? 2000 : len;
  44870. len -= n;
  44871. do {
  44872. s1 = (s1 + buf[pos++]) |0;
  44873. s2 = (s2 + s1) |0;
  44874. } while (--n);
  44875. s1 %= 65521;
  44876. s2 %= 65521;
  44877. }
  44878. return (s1 | (s2 << 16)) |0;
  44879. }
  44880. module.exports = adler32;
  44881. /***/ },
  44882. /* 97 */
  44883. /***/ function(module, exports, __webpack_require__) {
  44884. 'use strict';
  44885. // Note: we can't get significant speed boost here.
  44886. // So write code to minimize size - no pregenerated tables
  44887. // and array tools dependencies.
  44888. // Use ordinary array, since untyped makes no boost here
  44889. function makeTable() {
  44890. var c, table = [];
  44891. for(var n =0; n < 256; n++){
  44892. c = n;
  44893. for(var k =0; k < 8; k++){
  44894. c = ((c&1) ? (0xEDB88320 ^ (c >>> 1)) : (c >>> 1));
  44895. }
  44896. table[n] = c;
  44897. }
  44898. return table;
  44899. }
  44900. // Create table on load. Just 255 signed longs. Not a problem.
  44901. var crcTable = makeTable();
  44902. function crc32(crc, buf, len, pos) {
  44903. var t = crcTable
  44904. , end = pos + len;
  44905. crc = crc ^ (-1);
  44906. for (var i = pos; i < end; i++ ) {
  44907. crc = (crc >>> 8) ^ t[(crc ^ buf[i]) & 0xFF];
  44908. }
  44909. return (crc ^ (-1)); // >>> 0;
  44910. }
  44911. module.exports = crc32;
  44912. /***/ },
  44913. /* 98 */
  44914. /***/ function(module, exports, __webpack_require__) {
  44915. 'use strict';
  44916. var TYPED_OK = (typeof Uint8Array !== 'undefined') &&
  44917. (typeof Uint16Array !== 'undefined') &&
  44918. (typeof Int32Array !== 'undefined');
  44919. exports.assign = function (obj /*from1, from2, from3, ...*/) {
  44920. var sources = Array.prototype.slice.call(arguments, 1);
  44921. while (sources.length) {
  44922. var source = sources.shift();
  44923. if (!source) { continue; }
  44924. if (typeof(source) !== 'object') {
  44925. throw new TypeError(source + 'must be non-object');
  44926. }
  44927. for (var p in source) {
  44928. if (source.hasOwnProperty(p)) {
  44929. obj[p] = source[p];
  44930. }
  44931. }
  44932. }
  44933. return obj;
  44934. };
  44935. // reduce buffer size, avoiding mem copy
  44936. exports.shrinkBuf = function (buf, size) {
  44937. if (buf.length === size) { return buf; }
  44938. if (buf.subarray) { return buf.subarray(0, size); }
  44939. buf.length = size;
  44940. return buf;
  44941. };
  44942. var fnTyped = {
  44943. arraySet: function (dest, src, src_offs, len, dest_offs) {
  44944. if (src.subarray && dest.subarray) {
  44945. dest.set(src.subarray(src_offs, src_offs+len), dest_offs);
  44946. return;
  44947. }
  44948. // Fallback to ordinary array
  44949. for(var i=0; i<len; i++) {
  44950. dest[dest_offs + i] = src[src_offs + i];
  44951. }
  44952. },
  44953. // Join array of chunks to single array.
  44954. flattenChunks: function(chunks) {
  44955. var i, l, len, pos, chunk, result;
  44956. // calculate data length
  44957. len = 0;
  44958. for (i=0, l=chunks.length; i<l; i++) {
  44959. len += chunks[i].length;
  44960. }
  44961. // join chunks
  44962. result = new Uint8Array(len);
  44963. pos = 0;
  44964. for (i=0, l=chunks.length; i<l; i++) {
  44965. chunk = chunks[i];
  44966. result.set(chunk, pos);
  44967. pos += chunk.length;
  44968. }
  44969. return result;
  44970. }
  44971. };
  44972. var fnUntyped = {
  44973. arraySet: function (dest, src, src_offs, len, dest_offs) {
  44974. for(var i=0; i<len; i++) {
  44975. dest[dest_offs + i] = src[src_offs + i];
  44976. }
  44977. },
  44978. // Join array of chunks to single array.
  44979. flattenChunks: function(chunks) {
  44980. return [].concat.apply([], chunks);
  44981. }
  44982. };
  44983. // Enable/Disable typed arrays use, for testing
  44984. //
  44985. exports.setTyped = function (on) {
  44986. if (on) {
  44987. exports.Buf8 = Uint8Array;
  44988. exports.Buf16 = Uint16Array;
  44989. exports.Buf32 = Int32Array;
  44990. exports.assign(exports, fnTyped);
  44991. } else {
  44992. exports.Buf8 = Array;
  44993. exports.Buf16 = Array;
  44994. exports.Buf32 = Array;
  44995. exports.assign(exports, fnUntyped);
  44996. }
  44997. };
  44998. exports.setTyped(TYPED_OK);
  44999. /***/ },
  45000. /* 99 */
  45001. /***/ function(module, exports, __webpack_require__) {
  45002. // Generated by CoffeeScript 1.7.1
  45003. (function() {
  45004. var Table;
  45005. Table = (function() {
  45006. function Table(file) {
  45007. var info;
  45008. this.file = file;
  45009. info = this.file.directory.tables[this.tag];
  45010. this.exists = !!info;
  45011. if (info) {
  45012. this.offset = info.offset, this.length = info.length;
  45013. this.parse(this.file.contents);
  45014. }
  45015. }
  45016. Table.prototype.parse = function() {};
  45017. Table.prototype.encode = function() {};
  45018. Table.prototype.raw = function() {
  45019. if (!this.exists) {
  45020. return null;
  45021. }
  45022. this.file.contents.pos = this.offset;
  45023. return this.file.contents.read(this.length);
  45024. };
  45025. return Table;
  45026. })();
  45027. module.exports = Table;
  45028. }).call(this);
  45029. /***/ },
  45030. /* 100 */
  45031. /***/ function(module, exports, __webpack_require__) {
  45032. // Generated by CoffeeScript 1.7.1
  45033. var UnicodeTrie,
  45034. __slice = [].slice;
  45035. UnicodeTrie = (function() {
  45036. var DATA_BLOCK_LENGTH, DATA_GRANULARITY, DATA_MASK, INDEX_1_OFFSET, INDEX_2_BLOCK_LENGTH, INDEX_2_BMP_LENGTH, INDEX_2_MASK, INDEX_SHIFT, LSCP_INDEX_2_LENGTH, LSCP_INDEX_2_OFFSET, OMITTED_BMP_INDEX_1_LENGTH, SHIFT_1, SHIFT_1_2, SHIFT_2, UTF8_2B_INDEX_2_LENGTH, UTF8_2B_INDEX_2_OFFSET;
  45037. SHIFT_1 = 6 + 5;
  45038. SHIFT_2 = 5;
  45039. SHIFT_1_2 = SHIFT_1 - SHIFT_2;
  45040. OMITTED_BMP_INDEX_1_LENGTH = 0x10000 >> SHIFT_1;
  45041. INDEX_2_BLOCK_LENGTH = 1 << SHIFT_1_2;
  45042. INDEX_2_MASK = INDEX_2_BLOCK_LENGTH - 1;
  45043. INDEX_SHIFT = 2;
  45044. DATA_BLOCK_LENGTH = 1 << SHIFT_2;
  45045. DATA_MASK = DATA_BLOCK_LENGTH - 1;
  45046. LSCP_INDEX_2_OFFSET = 0x10000 >> SHIFT_2;
  45047. LSCP_INDEX_2_LENGTH = 0x400 >> SHIFT_2;
  45048. INDEX_2_BMP_LENGTH = LSCP_INDEX_2_OFFSET + LSCP_INDEX_2_LENGTH;
  45049. UTF8_2B_INDEX_2_OFFSET = INDEX_2_BMP_LENGTH;
  45050. UTF8_2B_INDEX_2_LENGTH = 0x800 >> 6;
  45051. INDEX_1_OFFSET = UTF8_2B_INDEX_2_OFFSET + UTF8_2B_INDEX_2_LENGTH;
  45052. DATA_GRANULARITY = 1 << INDEX_SHIFT;
  45053. function UnicodeTrie(json) {
  45054. var _ref, _ref1;
  45055. if (json == null) {
  45056. json = {};
  45057. }
  45058. this.data = json.data || [];
  45059. this.highStart = (_ref = json.highStart) != null ? _ref : 0;
  45060. this.errorValue = (_ref1 = json.errorValue) != null ? _ref1 : -1;
  45061. }
  45062. UnicodeTrie.prototype.get = function(codePoint) {
  45063. var index;
  45064. if (codePoint < 0 || codePoint > 0x10ffff) {
  45065. return this.errorValue;
  45066. }
  45067. if (codePoint < 0xd800 || (codePoint > 0xdbff && codePoint <= 0xffff)) {
  45068. index = (this.data[codePoint >> SHIFT_2] << INDEX_SHIFT) + (codePoint & DATA_MASK);
  45069. return this.data[index];
  45070. }
  45071. if (codePoint <= 0xffff) {
  45072. index = (this.data[LSCP_INDEX_2_OFFSET + ((codePoint - 0xd800) >> SHIFT_2)] << INDEX_SHIFT) + (codePoint & DATA_MASK);
  45073. return this.data[index];
  45074. }
  45075. if (codePoint < this.highStart) {
  45076. index = this.data[(INDEX_1_OFFSET - OMITTED_BMP_INDEX_1_LENGTH) + (codePoint >> SHIFT_1)];
  45077. index = this.data[index + ((codePoint >> SHIFT_2) & INDEX_2_MASK)];
  45078. index = (index << INDEX_SHIFT) + (codePoint & DATA_MASK);
  45079. return this.data[index];
  45080. }
  45081. return this.data[this.data.length - DATA_GRANULARITY];
  45082. };
  45083. UnicodeTrie.prototype.toJSON = function() {
  45084. var res;
  45085. res = {
  45086. data: __slice.call(this.data),
  45087. highStart: this.highStart,
  45088. errorValue: this.errorValue
  45089. };
  45090. return res;
  45091. };
  45092. return UnicodeTrie;
  45093. })();
  45094. module.exports = UnicodeTrie;
  45095. /***/ },
  45096. /* 101 */
  45097. /***/ function(module, exports, __webpack_require__) {
  45098. // Copyright Joyent, Inc. and other Node contributors.
  45099. //
  45100. // Permission is hereby granted, free of charge, to any person obtaining a
  45101. // copy of this software and associated documentation files (the
  45102. // "Software"), to deal in the Software without restriction, including
  45103. // without limitation the rights to use, copy, modify, merge, publish,
  45104. // distribute, sublicense, and/or sell copies of the Software, and to permit
  45105. // persons to whom the Software is furnished to do so, subject to the
  45106. // following conditions:
  45107. //
  45108. // The above copyright notice and this permission notice shall be included
  45109. // in all copies or substantial portions of the Software.
  45110. //
  45111. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  45112. // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  45113. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
  45114. // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  45115. // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  45116. // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  45117. // USE OR OTHER DEALINGS IN THE SOFTWARE.
  45118. var Buffer = __webpack_require__(4).Buffer;
  45119. var isBufferEncoding = Buffer.isEncoding
  45120. || function(encoding) {
  45121. switch (encoding && encoding.toLowerCase()) {
  45122. case 'hex': case 'utf8': case 'utf-8': case 'ascii': case 'binary': case 'base64': case 'ucs2': case 'ucs-2': case 'utf16le': case 'utf-16le': case 'raw': return true;
  45123. default: return false;
  45124. }
  45125. }
  45126. function assertEncoding(encoding) {
  45127. if (encoding && !isBufferEncoding(encoding)) {
  45128. throw new Error('Unknown encoding: ' + encoding);
  45129. }
  45130. }
  45131. // StringDecoder provides an interface for efficiently splitting a series of
  45132. // buffers into a series of JS strings without breaking apart multi-byte
  45133. // characters. CESU-8 is handled as part of the UTF-8 encoding.
  45134. //
  45135. // @TODO Handling all encodings inside a single object makes it very difficult
  45136. // to reason about this code, so it should be split up in the future.
  45137. // @TODO There should be a utf8-strict encoding that rejects invalid UTF-8 code
  45138. // points as used by CESU-8.
  45139. var StringDecoder = exports.StringDecoder = function(encoding) {
  45140. this.encoding = (encoding || 'utf8').toLowerCase().replace(/[-_]/, '');
  45141. assertEncoding(encoding);
  45142. switch (this.encoding) {
  45143. case 'utf8':
  45144. // CESU-8 represents each of Surrogate Pair by 3-bytes
  45145. this.surrogateSize = 3;
  45146. break;
  45147. case 'ucs2':
  45148. case 'utf16le':
  45149. // UTF-16 represents each of Surrogate Pair by 2-bytes
  45150. this.surrogateSize = 2;
  45151. this.detectIncompleteChar = utf16DetectIncompleteChar;
  45152. break;
  45153. case 'base64':
  45154. // Base-64 stores 3 bytes in 4 chars, and pads the remainder.
  45155. this.surrogateSize = 3;
  45156. this.detectIncompleteChar = base64DetectIncompleteChar;
  45157. break;
  45158. default:
  45159. this.write = passThroughWrite;
  45160. return;
  45161. }
  45162. // Enough space to store all bytes of a single character. UTF-8 needs 4
  45163. // bytes, but CESU-8 may require up to 6 (3 bytes per surrogate).
  45164. this.charBuffer = new Buffer(6);
  45165. // Number of bytes received for the current incomplete multi-byte character.
  45166. this.charReceived = 0;
  45167. // Number of bytes expected for the current incomplete multi-byte character.
  45168. this.charLength = 0;
  45169. };
  45170. // write decodes the given buffer and returns it as JS string that is
  45171. // guaranteed to not contain any partial multi-byte characters. Any partial
  45172. // character found at the end of the buffer is buffered up, and will be
  45173. // returned when calling write again with the remaining bytes.
  45174. //
  45175. // Note: Converting a Buffer containing an orphan surrogate to a String
  45176. // currently works, but converting a String to a Buffer (via `new Buffer`, or
  45177. // Buffer#write) will replace incomplete surrogates with the unicode
  45178. // replacement character. See https://codereview.chromium.org/121173009/ .
  45179. StringDecoder.prototype.write = function(buffer) {
  45180. var charStr = '';
  45181. // if our last write ended with an incomplete multibyte character
  45182. while (this.charLength) {
  45183. // determine how many remaining bytes this buffer has to offer for this char
  45184. var available = (buffer.length >= this.charLength - this.charReceived) ?
  45185. this.charLength - this.charReceived :
  45186. buffer.length;
  45187. // add the new bytes to the char buffer
  45188. buffer.copy(this.charBuffer, this.charReceived, 0, available);
  45189. this.charReceived += available;
  45190. if (this.charReceived < this.charLength) {
  45191. // still not enough chars in this buffer? wait for more ...
  45192. return '';
  45193. }
  45194. // remove bytes belonging to the current character from the buffer
  45195. buffer = buffer.slice(available, buffer.length);
  45196. // get the character that was split
  45197. charStr = this.charBuffer.slice(0, this.charLength).toString(this.encoding);
  45198. // CESU-8: lead surrogate (D800-DBFF) is also the incomplete character
  45199. var charCode = charStr.charCodeAt(charStr.length - 1);
  45200. if (charCode >= 0xD800 && charCode <= 0xDBFF) {
  45201. this.charLength += this.surrogateSize;
  45202. charStr = '';
  45203. continue;
  45204. }
  45205. this.charReceived = this.charLength = 0;
  45206. // if there are no more bytes in this buffer, just emit our char
  45207. if (buffer.length === 0) {
  45208. return charStr;
  45209. }
  45210. break;
  45211. }
  45212. // determine and set charLength / charReceived
  45213. this.detectIncompleteChar(buffer);
  45214. var end = buffer.length;
  45215. if (this.charLength) {
  45216. // buffer the incomplete character bytes we got
  45217. buffer.copy(this.charBuffer, 0, buffer.length - this.charReceived, end);
  45218. end -= this.charReceived;
  45219. }
  45220. charStr += buffer.toString(this.encoding, 0, end);
  45221. var end = charStr.length - 1;
  45222. var charCode = charStr.charCodeAt(end);
  45223. // CESU-8: lead surrogate (D800-DBFF) is also the incomplete character
  45224. if (charCode >= 0xD800 && charCode <= 0xDBFF) {
  45225. var size = this.surrogateSize;
  45226. this.charLength += size;
  45227. this.charReceived += size;
  45228. this.charBuffer.copy(this.charBuffer, size, 0, size);
  45229. buffer.copy(this.charBuffer, 0, 0, size);
  45230. return charStr.substring(0, end);
  45231. }
  45232. // or just emit the charStr
  45233. return charStr;
  45234. };
  45235. // detectIncompleteChar determines if there is an incomplete UTF-8 character at
  45236. // the end of the given buffer. If so, it sets this.charLength to the byte
  45237. // length that character, and sets this.charReceived to the number of bytes
  45238. // that are available for this character.
  45239. StringDecoder.prototype.detectIncompleteChar = function(buffer) {
  45240. // determine how many bytes we have to check at the end of this buffer
  45241. var i = (buffer.length >= 3) ? 3 : buffer.length;
  45242. // Figure out if one of the last i bytes of our buffer announces an
  45243. // incomplete char.
  45244. for (; i > 0; i--) {
  45245. var c = buffer[buffer.length - i];
  45246. // See http://en.wikipedia.org/wiki/UTF-8#Description
  45247. // 110XXXXX
  45248. if (i == 1 && c >> 5 == 0x06) {
  45249. this.charLength = 2;
  45250. break;
  45251. }
  45252. // 1110XXXX
  45253. if (i <= 2 && c >> 4 == 0x0E) {
  45254. this.charLength = 3;
  45255. break;
  45256. }
  45257. // 11110XXX
  45258. if (i <= 3 && c >> 3 == 0x1E) {
  45259. this.charLength = 4;
  45260. break;
  45261. }
  45262. }
  45263. this.charReceived = i;
  45264. };
  45265. StringDecoder.prototype.end = function(buffer) {
  45266. var res = '';
  45267. if (buffer && buffer.length)
  45268. res = this.write(buffer);
  45269. if (this.charReceived) {
  45270. var cr = this.charReceived;
  45271. var buf = this.charBuffer;
  45272. var enc = this.encoding;
  45273. res += buf.slice(0, cr).toString(enc);
  45274. }
  45275. return res;
  45276. };
  45277. function passThroughWrite(buffer) {
  45278. return buffer.toString(this.encoding);
  45279. }
  45280. function utf16DetectIncompleteChar(buffer) {
  45281. this.charReceived = buffer.length % 2;
  45282. this.charLength = this.charReceived ? 2 : 0;
  45283. }
  45284. function base64DetectIncompleteChar(buffer) {
  45285. this.charReceived = buffer.length % 3;
  45286. this.charLength = this.charReceived ? 3 : 0;
  45287. }
  45288. /***/ },
  45289. /* 102 */
  45290. /***/ function(module, exports, __webpack_require__) {
  45291. 'use strict';
  45292. // See state defs from inflate.js
  45293. var BAD = 30; /* got a data error -- remain here until reset */
  45294. var TYPE = 12; /* i: waiting for type bits, including last-flag bit */
  45295. /*
  45296. Decode literal, length, and distance codes and write out the resulting
  45297. literal and match bytes until either not enough input or output is
  45298. available, an end-of-block is encountered, or a data error is encountered.
  45299. When large enough input and output buffers are supplied to inflate(), for
  45300. example, a 16K input buffer and a 64K output buffer, more than 95% of the
  45301. inflate execution time is spent in this routine.
  45302. Entry assumptions:
  45303. state.mode === LEN
  45304. strm.avail_in >= 6
  45305. strm.avail_out >= 258
  45306. start >= strm.avail_out
  45307. state.bits < 8
  45308. On return, state.mode is one of:
  45309. LEN -- ran out of enough output space or enough available input
  45310. TYPE -- reached end of block code, inflate() to interpret next block
  45311. BAD -- error in block data
  45312. Notes:
  45313. - The maximum input bits used by a length/distance pair is 15 bits for the
  45314. length code, 5 bits for the length extra, 15 bits for the distance code,
  45315. and 13 bits for the distance extra. This totals 48 bits, or six bytes.
  45316. Therefore if strm.avail_in >= 6, then there is enough input to avoid
  45317. checking for available input while decoding.
  45318. - The maximum bytes that a single length/distance pair can output is 258
  45319. bytes, which is the maximum length that can be coded. inflate_fast()
  45320. requires strm.avail_out >= 258 for each loop to avoid checking for
  45321. output space.
  45322. */
  45323. module.exports = function inflate_fast(strm, start) {
  45324. var state;
  45325. var _in; /* local strm.input */
  45326. var last; /* have enough input while in < last */
  45327. var _out; /* local strm.output */
  45328. var beg; /* inflate()'s initial strm.output */
  45329. var end; /* while out < end, enough space available */
  45330. //#ifdef INFLATE_STRICT
  45331. var dmax; /* maximum distance from zlib header */
  45332. //#endif
  45333. var wsize; /* window size or zero if not using window */
  45334. var whave; /* valid bytes in the window */
  45335. var wnext; /* window write index */
  45336. var window; /* allocated sliding window, if wsize != 0 */
  45337. var hold; /* local strm.hold */
  45338. var bits; /* local strm.bits */
  45339. var lcode; /* local strm.lencode */
  45340. var dcode; /* local strm.distcode */
  45341. var lmask; /* mask for first level of length codes */
  45342. var dmask; /* mask for first level of distance codes */
  45343. var here; /* retrieved table entry */
  45344. var op; /* code bits, operation, extra bits, or */
  45345. /* window position, window bytes to copy */
  45346. var len; /* match length, unused bytes */
  45347. var dist; /* match distance */
  45348. var from; /* where to copy match from */
  45349. var from_source;
  45350. var input, output; // JS specific, because we have no pointers
  45351. /* copy state to local variables */
  45352. state = strm.state;
  45353. //here = state.here;
  45354. _in = strm.next_in;
  45355. input = strm.input;
  45356. last = _in + (strm.avail_in - 5);
  45357. _out = strm.next_out;
  45358. output = strm.output;
  45359. beg = _out - (start - strm.avail_out);
  45360. end = _out + (strm.avail_out - 257);
  45361. //#ifdef INFLATE_STRICT
  45362. dmax = state.dmax;
  45363. //#endif
  45364. wsize = state.wsize;
  45365. whave = state.whave;
  45366. wnext = state.wnext;
  45367. window = state.window;
  45368. hold = state.hold;
  45369. bits = state.bits;
  45370. lcode = state.lencode;
  45371. dcode = state.distcode;
  45372. lmask = (1 << state.lenbits) - 1;
  45373. dmask = (1 << state.distbits) - 1;
  45374. /* decode literals and length/distances until end-of-block or not enough
  45375. input data or output space */
  45376. top:
  45377. do {
  45378. if (bits < 15) {
  45379. hold += input[_in++] << bits;
  45380. bits += 8;
  45381. hold += input[_in++] << bits;
  45382. bits += 8;
  45383. }
  45384. here = lcode[hold & lmask];
  45385. dolen:
  45386. for (;;) { // Goto emulation
  45387. op = here >>> 24/*here.bits*/;
  45388. hold >>>= op;
  45389. bits -= op;
  45390. op = (here >>> 16) & 0xff/*here.op*/;
  45391. if (op === 0) { /* literal */
  45392. //Tracevv((stderr, here.val >= 0x20 && here.val < 0x7f ?
  45393. // "inflate: literal '%c'\n" :
  45394. // "inflate: literal 0x%02x\n", here.val));
  45395. output[_out++] = here & 0xffff/*here.val*/;
  45396. }
  45397. else if (op & 16) { /* length base */
  45398. len = here & 0xffff/*here.val*/;
  45399. op &= 15; /* number of extra bits */
  45400. if (op) {
  45401. if (bits < op) {
  45402. hold += input[_in++] << bits;
  45403. bits += 8;
  45404. }
  45405. len += hold & ((1 << op) - 1);
  45406. hold >>>= op;
  45407. bits -= op;
  45408. }
  45409. //Tracevv((stderr, "inflate: length %u\n", len));
  45410. if (bits < 15) {
  45411. hold += input[_in++] << bits;
  45412. bits += 8;
  45413. hold += input[_in++] << bits;
  45414. bits += 8;
  45415. }
  45416. here = dcode[hold & dmask];
  45417. dodist:
  45418. for (;;) { // goto emulation
  45419. op = here >>> 24/*here.bits*/;
  45420. hold >>>= op;
  45421. bits -= op;
  45422. op = (here >>> 16) & 0xff/*here.op*/;
  45423. if (op & 16) { /* distance base */
  45424. dist = here & 0xffff/*here.val*/;
  45425. op &= 15; /* number of extra bits */
  45426. if (bits < op) {
  45427. hold += input[_in++] << bits;
  45428. bits += 8;
  45429. if (bits < op) {
  45430. hold += input[_in++] << bits;
  45431. bits += 8;
  45432. }
  45433. }
  45434. dist += hold & ((1 << op) - 1);
  45435. //#ifdef INFLATE_STRICT
  45436. if (dist > dmax) {
  45437. strm.msg = 'invalid distance too far back';
  45438. state.mode = BAD;
  45439. break top;
  45440. }
  45441. //#endif
  45442. hold >>>= op;
  45443. bits -= op;
  45444. //Tracevv((stderr, "inflate: distance %u\n", dist));
  45445. op = _out - beg; /* max distance in output */
  45446. if (dist > op) { /* see if copy from window */
  45447. op = dist - op; /* distance back in window */
  45448. if (op > whave) {
  45449. if (state.sane) {
  45450. strm.msg = 'invalid distance too far back';
  45451. state.mode = BAD;
  45452. break top;
  45453. }
  45454. // (!) This block is disabled in zlib defailts,
  45455. // don't enable it for binary compatibility
  45456. //#ifdef INFLATE_ALLOW_INVALID_DISTANCE_TOOFAR_ARRR
  45457. // if (len <= op - whave) {
  45458. // do {
  45459. // output[_out++] = 0;
  45460. // } while (--len);
  45461. // continue top;
  45462. // }
  45463. // len -= op - whave;
  45464. // do {
  45465. // output[_out++] = 0;
  45466. // } while (--op > whave);
  45467. // if (op === 0) {
  45468. // from = _out - dist;
  45469. // do {
  45470. // output[_out++] = output[from++];
  45471. // } while (--len);
  45472. // continue top;
  45473. // }
  45474. //#endif
  45475. }
  45476. from = 0; // window index
  45477. from_source = window;
  45478. if (wnext === 0) { /* very common case */
  45479. from += wsize - op;
  45480. if (op < len) { /* some from window */
  45481. len -= op;
  45482. do {
  45483. output[_out++] = window[from++];
  45484. } while (--op);
  45485. from = _out - dist; /* rest from output */
  45486. from_source = output;
  45487. }
  45488. }
  45489. else if (wnext < op) { /* wrap around window */
  45490. from += wsize + wnext - op;
  45491. op -= wnext;
  45492. if (op < len) { /* some from end of window */
  45493. len -= op;
  45494. do {
  45495. output[_out++] = window[from++];
  45496. } while (--op);
  45497. from = 0;
  45498. if (wnext < len) { /* some from start of window */
  45499. op = wnext;
  45500. len -= op;
  45501. do {
  45502. output[_out++] = window[from++];
  45503. } while (--op);
  45504. from = _out - dist; /* rest from output */
  45505. from_source = output;
  45506. }
  45507. }
  45508. }
  45509. else { /* contiguous in window */
  45510. from += wnext - op;
  45511. if (op < len) { /* some from window */
  45512. len -= op;
  45513. do {
  45514. output[_out++] = window[from++];
  45515. } while (--op);
  45516. from = _out - dist; /* rest from output */
  45517. from_source = output;
  45518. }
  45519. }
  45520. while (len > 2) {
  45521. output[_out++] = from_source[from++];
  45522. output[_out++] = from_source[from++];
  45523. output[_out++] = from_source[from++];
  45524. len -= 3;
  45525. }
  45526. if (len) {
  45527. output[_out++] = from_source[from++];
  45528. if (len > 1) {
  45529. output[_out++] = from_source[from++];
  45530. }
  45531. }
  45532. }
  45533. else {
  45534. from = _out - dist; /* copy direct from output */
  45535. do { /* minimum length is three */
  45536. output[_out++] = output[from++];
  45537. output[_out++] = output[from++];
  45538. output[_out++] = output[from++];
  45539. len -= 3;
  45540. } while (len > 2);
  45541. if (len) {
  45542. output[_out++] = output[from++];
  45543. if (len > 1) {
  45544. output[_out++] = output[from++];
  45545. }
  45546. }
  45547. }
  45548. }
  45549. else if ((op & 64) === 0) { /* 2nd level distance code */
  45550. here = dcode[(here & 0xffff)/*here.val*/ + (hold & ((1 << op) - 1))];
  45551. continue dodist;
  45552. }
  45553. else {
  45554. strm.msg = 'invalid distance code';
  45555. state.mode = BAD;
  45556. break top;
  45557. }
  45558. break; // need to emulate goto via "continue"
  45559. }
  45560. }
  45561. else if ((op & 64) === 0) { /* 2nd level length code */
  45562. here = lcode[(here & 0xffff)/*here.val*/ + (hold & ((1 << op) - 1))];
  45563. continue dolen;
  45564. }
  45565. else if (op & 32) { /* end-of-block */
  45566. //Tracevv((stderr, "inflate: end of block\n"));
  45567. state.mode = TYPE;
  45568. break top;
  45569. }
  45570. else {
  45571. strm.msg = 'invalid literal/length code';
  45572. state.mode = BAD;
  45573. break top;
  45574. }
  45575. break; // need to emulate goto via "continue"
  45576. }
  45577. } while (_in < last && _out < end);
  45578. /* return unused bytes (on entry, bits < 8, so in won't go too far back) */
  45579. len = bits >> 3;
  45580. _in -= len;
  45581. bits -= len << 3;
  45582. hold &= (1 << bits) - 1;
  45583. /* update state and return */
  45584. strm.next_in = _in;
  45585. strm.next_out = _out;
  45586. strm.avail_in = (_in < last ? 5 + (last - _in) : 5 - (_in - last));
  45587. strm.avail_out = (_out < end ? 257 + (end - _out) : 257 - (_out - end));
  45588. state.hold = hold;
  45589. state.bits = bits;
  45590. return;
  45591. };
  45592. /***/ },
  45593. /* 103 */
  45594. /***/ function(module, exports, __webpack_require__) {
  45595. 'use strict';
  45596. var utils = __webpack_require__(98);
  45597. var MAXBITS = 15;
  45598. var ENOUGH_LENS = 852;
  45599. var ENOUGH_DISTS = 592;
  45600. //var ENOUGH = (ENOUGH_LENS+ENOUGH_DISTS);
  45601. var CODES = 0;
  45602. var LENS = 1;
  45603. var DISTS = 2;
  45604. var lbase = [ /* Length codes 257..285 base */
  45605. 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31,
  45606. 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0
  45607. ];
  45608. var lext = [ /* Length codes 257..285 extra */
  45609. 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18,
  45610. 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78
  45611. ];
  45612. var dbase = [ /* Distance codes 0..29 base */
  45613. 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193,
  45614. 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145,
  45615. 8193, 12289, 16385, 24577, 0, 0
  45616. ];
  45617. var dext = [ /* Distance codes 0..29 extra */
  45618. 16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22,
  45619. 23, 23, 24, 24, 25, 25, 26, 26, 27, 27,
  45620. 28, 28, 29, 29, 64, 64
  45621. ];
  45622. module.exports = function inflate_table(type, lens, lens_index, codes, table, table_index, work, opts)
  45623. {
  45624. var bits = opts.bits;
  45625. //here = opts.here; /* table entry for duplication */
  45626. var len = 0; /* a code's length in bits */
  45627. var sym = 0; /* index of code symbols */
  45628. var min = 0, max = 0; /* minimum and maximum code lengths */
  45629. var root = 0; /* number of index bits for root table */
  45630. var curr = 0; /* number of index bits for current table */
  45631. var drop = 0; /* code bits to drop for sub-table */
  45632. var left = 0; /* number of prefix codes available */
  45633. var used = 0; /* code entries in table used */
  45634. var huff = 0; /* Huffman code */
  45635. var incr; /* for incrementing code, index */
  45636. var fill; /* index for replicating entries */
  45637. var low; /* low bits for current root entry */
  45638. var mask; /* mask for low root bits */
  45639. var next; /* next available space in table */
  45640. var base = null; /* base value table to use */
  45641. var base_index = 0;
  45642. // var shoextra; /* extra bits table to use */
  45643. var end; /* use base and extra for symbol > end */
  45644. var count = new utils.Buf16(MAXBITS+1); //[MAXBITS+1]; /* number of codes of each length */
  45645. var offs = new utils.Buf16(MAXBITS+1); //[MAXBITS+1]; /* offsets in table for each length */
  45646. var extra = null;
  45647. var extra_index = 0;
  45648. var here_bits, here_op, here_val;
  45649. /*
  45650. Process a set of code lengths to create a canonical Huffman code. The
  45651. code lengths are lens[0..codes-1]. Each length corresponds to the
  45652. symbols 0..codes-1. The Huffman code is generated by first sorting the
  45653. symbols by length from short to long, and retaining the symbol order
  45654. for codes with equal lengths. Then the code starts with all zero bits
  45655. for the first code of the shortest length, and the codes are integer
  45656. increments for the same length, and zeros are appended as the length
  45657. increases. For the deflate format, these bits are stored backwards
  45658. from their more natural integer increment ordering, and so when the
  45659. decoding tables are built in the large loop below, the integer codes
  45660. are incremented backwards.
  45661. This routine assumes, but does not check, that all of the entries in
  45662. lens[] are in the range 0..MAXBITS. The caller must assure this.
  45663. 1..MAXBITS is interpreted as that code length. zero means that that
  45664. symbol does not occur in this code.
  45665. The codes are sorted by computing a count of codes for each length,
  45666. creating from that a table of starting indices for each length in the
  45667. sorted table, and then entering the symbols in order in the sorted
  45668. table. The sorted table is work[], with that space being provided by
  45669. the caller.
  45670. The length counts are used for other purposes as well, i.e. finding
  45671. the minimum and maximum length codes, determining if there are any
  45672. codes at all, checking for a valid set of lengths, and looking ahead
  45673. at length counts to determine sub-table sizes when building the
  45674. decoding tables.
  45675. */
  45676. /* accumulate lengths for codes (assumes lens[] all in 0..MAXBITS) */
  45677. for (len = 0; len <= MAXBITS; len++) {
  45678. count[len] = 0;
  45679. }
  45680. for (sym = 0; sym < codes; sym++) {
  45681. count[lens[lens_index + sym]]++;
  45682. }
  45683. /* bound code lengths, force root to be within code lengths */
  45684. root = bits;
  45685. for (max = MAXBITS; max >= 1; max--) {
  45686. if (count[max] !== 0) { break; }
  45687. }
  45688. if (root > max) {
  45689. root = max;
  45690. }
  45691. if (max === 0) { /* no symbols to code at all */
  45692. //table.op[opts.table_index] = 64; //here.op = (var char)64; /* invalid code marker */
  45693. //table.bits[opts.table_index] = 1; //here.bits = (var char)1;
  45694. //table.val[opts.table_index++] = 0; //here.val = (var short)0;
  45695. table[table_index++] = (1 << 24) | (64 << 16) | 0;
  45696. //table.op[opts.table_index] = 64;
  45697. //table.bits[opts.table_index] = 1;
  45698. //table.val[opts.table_index++] = 0;
  45699. table[table_index++] = (1 << 24) | (64 << 16) | 0;
  45700. opts.bits = 1;
  45701. return 0; /* no symbols, but wait for decoding to report error */
  45702. }
  45703. for (min = 1; min < max; min++) {
  45704. if (count[min] !== 0) { break; }
  45705. }
  45706. if (root < min) {
  45707. root = min;
  45708. }
  45709. /* check for an over-subscribed or incomplete set of lengths */
  45710. left = 1;
  45711. for (len = 1; len <= MAXBITS; len++) {
  45712. left <<= 1;
  45713. left -= count[len];
  45714. if (left < 0) {
  45715. return -1;
  45716. } /* over-subscribed */
  45717. }
  45718. if (left > 0 && (type === CODES || max !== 1)) {
  45719. return -1; /* incomplete set */
  45720. }
  45721. /* generate offsets into symbol table for each length for sorting */
  45722. offs[1] = 0;
  45723. for (len = 1; len < MAXBITS; len++) {
  45724. offs[len + 1] = offs[len] + count[len];
  45725. }
  45726. /* sort symbols by length, by symbol order within each length */
  45727. for (sym = 0; sym < codes; sym++) {
  45728. if (lens[lens_index + sym] !== 0) {
  45729. work[offs[lens[lens_index + sym]]++] = sym;
  45730. }
  45731. }
  45732. /*
  45733. Create and fill in decoding tables. In this loop, the table being
  45734. filled is at next and has curr index bits. The code being used is huff
  45735. with length len. That code is converted to an index by dropping drop
  45736. bits off of the bottom. For codes where len is less than drop + curr,
  45737. those top drop + curr - len bits are incremented through all values to
  45738. fill the table with replicated entries.
  45739. root is the number of index bits for the root table. When len exceeds
  45740. root, sub-tables are created pointed to by the root entry with an index
  45741. of the low root bits of huff. This is saved in low to check for when a
  45742. new sub-table should be started. drop is zero when the root table is
  45743. being filled, and drop is root when sub-tables are being filled.
  45744. When a new sub-table is needed, it is necessary to look ahead in the
  45745. code lengths to determine what size sub-table is needed. The length
  45746. counts are used for this, and so count[] is decremented as codes are
  45747. entered in the tables.
  45748. used keeps track of how many table entries have been allocated from the
  45749. provided *table space. It is checked for LENS and DIST tables against
  45750. the constants ENOUGH_LENS and ENOUGH_DISTS to guard against changes in
  45751. the initial root table size constants. See the comments in inftrees.h
  45752. for more information.
  45753. sym increments through all symbols, and the loop terminates when
  45754. all codes of length max, i.e. all codes, have been processed. This
  45755. routine permits incomplete codes, so another loop after this one fills
  45756. in the rest of the decoding tables with invalid code markers.
  45757. */
  45758. /* set up for code type */
  45759. // poor man optimization - use if-else instead of switch,
  45760. // to avoid deopts in old v8
  45761. if (type === CODES) {
  45762. base = extra = work; /* dummy value--not used */
  45763. end = 19;
  45764. } else if (type === LENS) {
  45765. base = lbase;
  45766. base_index -= 257;
  45767. extra = lext;
  45768. extra_index -= 257;
  45769. end = 256;
  45770. } else { /* DISTS */
  45771. base = dbase;
  45772. extra = dext;
  45773. end = -1;
  45774. }
  45775. /* initialize opts for loop */
  45776. huff = 0; /* starting code */
  45777. sym = 0; /* starting code symbol */
  45778. len = min; /* starting code length */
  45779. next = table_index; /* current table to fill in */
  45780. curr = root; /* current table index bits */
  45781. drop = 0; /* current bits to drop from code for index */
  45782. low = -1; /* trigger new sub-table when len > root */
  45783. used = 1 << root; /* use root table entries */
  45784. mask = used - 1; /* mask for comparing low */
  45785. /* check available table space */
  45786. if ((type === LENS && used > ENOUGH_LENS) ||
  45787. (type === DISTS && used > ENOUGH_DISTS)) {
  45788. return 1;
  45789. }
  45790. var i=0;
  45791. /* process all codes and make table entries */
  45792. for (;;) {
  45793. i++;
  45794. /* create table entry */
  45795. here_bits = len - drop;
  45796. if (work[sym] < end) {
  45797. here_op = 0;
  45798. here_val = work[sym];
  45799. }
  45800. else if (work[sym] > end) {
  45801. here_op = extra[extra_index + work[sym]];
  45802. here_val = base[base_index + work[sym]];
  45803. }
  45804. else {
  45805. here_op = 32 + 64; /* end of block */
  45806. here_val = 0;
  45807. }
  45808. /* replicate for those indices with low len bits equal to huff */
  45809. incr = 1 << (len - drop);
  45810. fill = 1 << curr;
  45811. min = fill; /* save offset to next table */
  45812. do {
  45813. fill -= incr;
  45814. table[next + (huff >> drop) + fill] = (here_bits << 24) | (here_op << 16) | here_val |0;
  45815. } while (fill !== 0);
  45816. /* backwards increment the len-bit code huff */
  45817. incr = 1 << (len - 1);
  45818. while (huff & incr) {
  45819. incr >>= 1;
  45820. }
  45821. if (incr !== 0) {
  45822. huff &= incr - 1;
  45823. huff += incr;
  45824. } else {
  45825. huff = 0;
  45826. }
  45827. /* go to next symbol, update count, len */
  45828. sym++;
  45829. if (--count[len] === 0) {
  45830. if (len === max) { break; }
  45831. len = lens[lens_index + work[sym]];
  45832. }
  45833. /* create new sub-table if needed */
  45834. if (len > root && (huff & mask) !== low) {
  45835. /* if first time, transition to sub-tables */
  45836. if (drop === 0) {
  45837. drop = root;
  45838. }
  45839. /* increment past last table */
  45840. next += min; /* here min is 1 << curr */
  45841. /* determine length of next table */
  45842. curr = len - drop;
  45843. left = 1 << curr;
  45844. while (curr + drop < max) {
  45845. left -= count[curr + drop];
  45846. if (left <= 0) { break; }
  45847. curr++;
  45848. left <<= 1;
  45849. }
  45850. /* check for enough space */
  45851. used += 1 << curr;
  45852. if ((type === LENS && used > ENOUGH_LENS) ||
  45853. (type === DISTS && used > ENOUGH_DISTS)) {
  45854. return 1;
  45855. }
  45856. /* point entry in root table to sub-table */
  45857. low = huff & mask;
  45858. /*table.op[low] = curr;
  45859. table.bits[low] = root;
  45860. table.val[low] = next - opts.table_index;*/
  45861. table[low] = (root << 24) | (curr << 16) | (next - table_index) |0;
  45862. }
  45863. }
  45864. /* fill in remaining table entry if code is incomplete (guaranteed to have
  45865. at most one remaining entry, since if the code is incomplete, the
  45866. maximum code length that was allowed to get this far is one bit) */
  45867. if (huff !== 0) {
  45868. //table.op[next + huff] = 64; /* invalid code marker */
  45869. //table.bits[next + huff] = len - drop;
  45870. //table.val[next + huff] = 0;
  45871. table[next + huff] = ((len - drop) << 24) | (64 << 16) |0;
  45872. }
  45873. /* set return parameters */
  45874. //opts.table_index += used;
  45875. opts.bits = root;
  45876. return 0;
  45877. };
  45878. /***/ },
  45879. /* 104 */
  45880. /***/ function(module, exports, __webpack_require__) {
  45881. if (typeof Object.create === 'function') {
  45882. // implementation from standard node.js 'util' module
  45883. module.exports = function inherits(ctor, superCtor) {
  45884. ctor.super_ = superCtor
  45885. ctor.prototype = Object.create(superCtor.prototype, {
  45886. constructor: {
  45887. value: ctor,
  45888. enumerable: false,
  45889. writable: true,
  45890. configurable: true
  45891. }
  45892. });
  45893. };
  45894. } else {
  45895. // old school shim for old browsers
  45896. module.exports = function inherits(ctor, superCtor) {
  45897. ctor.super_ = superCtor
  45898. var TempCtor = function () {}
  45899. TempCtor.prototype = superCtor.prototype
  45900. ctor.prototype = new TempCtor()
  45901. ctor.prototype.constructor = ctor
  45902. }
  45903. }
  45904. /***/ },
  45905. /* 105 */
  45906. /***/ function(module, exports, __webpack_require__) {
  45907. /* WEBPACK VAR INJECTION */(function(Buffer) {// Copyright Joyent, Inc. and other Node contributors.
  45908. //
  45909. // Permission is hereby granted, free of charge, to any person obtaining a
  45910. // copy of this software and associated documentation files (the
  45911. // "Software"), to deal in the Software without restriction, including
  45912. // without limitation the rights to use, copy, modify, merge, publish,
  45913. // distribute, sublicense, and/or sell copies of the Software, and to permit
  45914. // persons to whom the Software is furnished to do so, subject to the
  45915. // following conditions:
  45916. //
  45917. // The above copyright notice and this permission notice shall be included
  45918. // in all copies or substantial portions of the Software.
  45919. //
  45920. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  45921. // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  45922. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
  45923. // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  45924. // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  45925. // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  45926. // USE OR OTHER DEALINGS IN THE SOFTWARE.
  45927. // NOTE: These type checking functions intentionally don't use `instanceof`
  45928. // because it is fragile and can be easily faked with `Object.create()`.
  45929. function isArray(ar) {
  45930. return Array.isArray(ar);
  45931. }
  45932. exports.isArray = isArray;
  45933. function isBoolean(arg) {
  45934. return typeof arg === 'boolean';
  45935. }
  45936. exports.isBoolean = isBoolean;
  45937. function isNull(arg) {
  45938. return arg === null;
  45939. }
  45940. exports.isNull = isNull;
  45941. function isNullOrUndefined(arg) {
  45942. return arg == null;
  45943. }
  45944. exports.isNullOrUndefined = isNullOrUndefined;
  45945. function isNumber(arg) {
  45946. return typeof arg === 'number';
  45947. }
  45948. exports.isNumber = isNumber;
  45949. function isString(arg) {
  45950. return typeof arg === 'string';
  45951. }
  45952. exports.isString = isString;
  45953. function isSymbol(arg) {
  45954. return typeof arg === 'symbol';
  45955. }
  45956. exports.isSymbol = isSymbol;
  45957. function isUndefined(arg) {
  45958. return arg === void 0;
  45959. }
  45960. exports.isUndefined = isUndefined;
  45961. function isRegExp(re) {
  45962. return isObject(re) && objectToString(re) === '[object RegExp]';
  45963. }
  45964. exports.isRegExp = isRegExp;
  45965. function isObject(arg) {
  45966. return typeof arg === 'object' && arg !== null;
  45967. }
  45968. exports.isObject = isObject;
  45969. function isDate(d) {
  45970. return isObject(d) && objectToString(d) === '[object Date]';
  45971. }
  45972. exports.isDate = isDate;
  45973. function isError(e) {
  45974. return isObject(e) &&
  45975. (objectToString(e) === '[object Error]' || e instanceof Error);
  45976. }
  45977. exports.isError = isError;
  45978. function isFunction(arg) {
  45979. return typeof arg === 'function';
  45980. }
  45981. exports.isFunction = isFunction;
  45982. function isPrimitive(arg) {
  45983. return arg === null ||
  45984. typeof arg === 'boolean' ||
  45985. typeof arg === 'number' ||
  45986. typeof arg === 'string' ||
  45987. typeof arg === 'symbol' || // ES6 symbol
  45988. typeof arg === 'undefined';
  45989. }
  45990. exports.isPrimitive = isPrimitive;
  45991. function isBuffer(arg) {
  45992. return Buffer.isBuffer(arg);
  45993. }
  45994. exports.isBuffer = isBuffer;
  45995. function objectToString(o) {
  45996. return Object.prototype.toString.call(o);
  45997. }
  45998. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4).Buffer))
  45999. /***/ },
  46000. /* 106 */
  46001. /***/ function(module, exports, __webpack_require__) {
  46002. module.exports = {
  46003. "data": [
  46004. 1961,
  46005. 1969,
  46006. 1977,
  46007. 1985,
  46008. 2025,
  46009. 2033,
  46010. 2041,
  46011. 2049,
  46012. 2057,
  46013. 2065,
  46014. 2073,
  46015. 2081,
  46016. 2089,
  46017. 2097,
  46018. 2105,
  46019. 2113,
  46020. 2121,
  46021. 2129,
  46022. 2137,
  46023. 2145,
  46024. 2153,
  46025. 2161,
  46026. 2169,
  46027. 2177,
  46028. 2185,
  46029. 2193,
  46030. 2201,
  46031. 2209,
  46032. 2217,
  46033. 2225,
  46034. 2233,
  46035. 2241,
  46036. 2249,
  46037. 2257,
  46038. 2265,
  46039. 2273,
  46040. 2281,
  46041. 2289,
  46042. 2297,
  46043. 2305,
  46044. 2313,
  46045. 2321,
  46046. 2329,
  46047. 2337,
  46048. 2345,
  46049. 2353,
  46050. 2361,
  46051. 2369,
  46052. 2377,
  46053. 2385,
  46054. 2393,
  46055. 2401,
  46056. 2409,
  46057. 2417,
  46058. 2425,
  46059. 2433,
  46060. 2441,
  46061. 2449,
  46062. 2457,
  46063. 2465,
  46064. 2473,
  46065. 2481,
  46066. 2489,
  46067. 2497,
  46068. 2505,
  46069. 2513,
  46070. 2521,
  46071. 2529,
  46072. 2529,
  46073. 2537,
  46074. 2009,
  46075. 2545,
  46076. 2553,
  46077. 2561,
  46078. 2569,
  46079. 2577,
  46080. 2585,
  46081. 2593,
  46082. 2601,
  46083. 2609,
  46084. 2617,
  46085. 2625,
  46086. 2633,
  46087. 2641,
  46088. 2649,
  46089. 2657,
  46090. 2665,
  46091. 2673,
  46092. 2681,
  46093. 2689,
  46094. 2697,
  46095. 2705,
  46096. 2713,
  46097. 2721,
  46098. 2729,
  46099. 2737,
  46100. 2745,
  46101. 2753,
  46102. 2761,
  46103. 2769,
  46104. 2777,
  46105. 2785,
  46106. 2793,
  46107. 2801,
  46108. 2809,
  46109. 2817,
  46110. 2825,
  46111. 2833,
  46112. 2841,
  46113. 2849,
  46114. 2857,
  46115. 2865,
  46116. 2873,
  46117. 2881,
  46118. 2889,
  46119. 2009,
  46120. 2897,
  46121. 2905,
  46122. 2913,
  46123. 2009,
  46124. 2921,
  46125. 2929,
  46126. 2937,
  46127. 2945,
  46128. 2953,
  46129. 2961,
  46130. 2969,
  46131. 2009,
  46132. 2977,
  46133. 2977,
  46134. 2985,
  46135. 2993,
  46136. 3001,
  46137. 3009,
  46138. 3009,
  46139. 3009,
  46140. 3017,
  46141. 3017,
  46142. 3017,
  46143. 3025,
  46144. 3025,
  46145. 3033,
  46146. 3041,
  46147. 3041,
  46148. 3049,
  46149. 3049,
  46150. 3049,
  46151. 3049,
  46152. 3049,
  46153. 3049,
  46154. 3049,
  46155. 3049,
  46156. 3049,
  46157. 3049,
  46158. 3057,
  46159. 3065,
  46160. 3073,
  46161. 3073,
  46162. 3073,
  46163. 3081,
  46164. 3089,
  46165. 3097,
  46166. 3097,
  46167. 3097,
  46168. 3097,
  46169. 3097,
  46170. 3097,
  46171. 3097,
  46172. 3097,
  46173. 3097,
  46174. 3097,
  46175. 3097,
  46176. 3097,
  46177. 3097,
  46178. 3097,
  46179. 3097,
  46180. 3097,
  46181. 3097,
  46182. 3097,
  46183. 3097,
  46184. 3105,
  46185. 3113,
  46186. 3113,
  46187. 3121,
  46188. 3129,
  46189. 3137,
  46190. 3145,
  46191. 3153,
  46192. 3161,
  46193. 3161,
  46194. 3169,
  46195. 3177,
  46196. 3185,
  46197. 3193,
  46198. 3193,
  46199. 3193,
  46200. 3193,
  46201. 3201,
  46202. 3209,
  46203. 3209,
  46204. 3217,
  46205. 3225,
  46206. 3233,
  46207. 3241,
  46208. 3241,
  46209. 3241,
  46210. 3249,
  46211. 3257,
  46212. 3265,
  46213. 3273,
  46214. 3273,
  46215. 3281,
  46216. 3289,
  46217. 3297,
  46218. 2009,
  46219. 2009,
  46220. 3305,
  46221. 3313,
  46222. 3321,
  46223. 3329,
  46224. 3337,
  46225. 3345,
  46226. 3353,
  46227. 3361,
  46228. 3369,
  46229. 3377,
  46230. 3385,
  46231. 3393,
  46232. 2009,
  46233. 2009,
  46234. 3401,
  46235. 3409,
  46236. 3417,
  46237. 3417,
  46238. 3417,
  46239. 3417,
  46240. 3417,
  46241. 3417,
  46242. 3425,
  46243. 3425,
  46244. 3433,
  46245. 3433,
  46246. 3433,
  46247. 3433,
  46248. 3433,
  46249. 3433,
  46250. 3433,
  46251. 3433,
  46252. 3433,
  46253. 3433,
  46254. 3433,
  46255. 3433,
  46256. 3433,
  46257. 3433,
  46258. 3433,
  46259. 3441,
  46260. 3449,
  46261. 3457,
  46262. 3465,
  46263. 3473,
  46264. 3481,
  46265. 3489,
  46266. 3497,
  46267. 3505,
  46268. 3513,
  46269. 3521,
  46270. 3529,
  46271. 3537,
  46272. 3545,
  46273. 3553,
  46274. 3561,
  46275. 3569,
  46276. 3577,
  46277. 3585,
  46278. 3593,
  46279. 3601,
  46280. 3609,
  46281. 3617,
  46282. 3625,
  46283. 3625,
  46284. 3633,
  46285. 3641,
  46286. 3649,
  46287. 3649,
  46288. 3649,
  46289. 3649,
  46290. 3649,
  46291. 3657,
  46292. 3665,
  46293. 3665,
  46294. 3673,
  46295. 3681,
  46296. 3681,
  46297. 3681,
  46298. 3681,
  46299. 3689,
  46300. 3697,
  46301. 3697,
  46302. 3705,
  46303. 3713,
  46304. 3721,
  46305. 3729,
  46306. 3737,
  46307. 3745,
  46308. 3753,
  46309. 3761,
  46310. 3769,
  46311. 3777,
  46312. 3785,
  46313. 3793,
  46314. 3801,
  46315. 3809,
  46316. 3817,
  46317. 3825,
  46318. 3833,
  46319. 3841,
  46320. 3849,
  46321. 3857,
  46322. 3865,
  46323. 3873,
  46324. 3881,
  46325. 3881,
  46326. 3881,
  46327. 3881,
  46328. 3881,
  46329. 3881,
  46330. 3881,
  46331. 3881,
  46332. 3881,
  46333. 3881,
  46334. 3881,
  46335. 3881,
  46336. 3889,
  46337. 3897,
  46338. 3905,
  46339. 3913,
  46340. 3921,
  46341. 3921,
  46342. 3921,
  46343. 3921,
  46344. 3921,
  46345. 3921,
  46346. 3921,
  46347. 3921,
  46348. 3921,
  46349. 3921,
  46350. 3929,
  46351. 2009,
  46352. 2009,
  46353. 2009,
  46354. 2009,
  46355. 2009,
  46356. 3937,
  46357. 3937,
  46358. 3937,
  46359. 3937,
  46360. 3937,
  46361. 3937,
  46362. 3937,
  46363. 3945,
  46364. 3953,
  46365. 3953,
  46366. 3953,
  46367. 3961,
  46368. 3969,
  46369. 3969,
  46370. 3977,
  46371. 3985,
  46372. 3993,
  46373. 4001,
  46374. 2009,
  46375. 2009,
  46376. 4009,
  46377. 4009,
  46378. 4009,
  46379. 4009,
  46380. 4009,
  46381. 4009,
  46382. 4009,
  46383. 4009,
  46384. 4009,
  46385. 4009,
  46386. 4009,
  46387. 4009,
  46388. 4017,
  46389. 4025,
  46390. 4033,
  46391. 4041,
  46392. 4049,
  46393. 4057,
  46394. 4065,
  46395. 4073,
  46396. 4081,
  46397. 4081,
  46398. 4081,
  46399. 4081,
  46400. 4081,
  46401. 4081,
  46402. 4081,
  46403. 4089,
  46404. 4097,
  46405. 4097,
  46406. 4105,
  46407. 4113,
  46408. 4113,
  46409. 4113,
  46410. 4113,
  46411. 4113,
  46412. 4113,
  46413. 4113,
  46414. 4113,
  46415. 4113,
  46416. 4113,
  46417. 4113,
  46418. 4113,
  46419. 4113,
  46420. 4113,
  46421. 4113,
  46422. 4113,
  46423. 4113,
  46424. 4113,
  46425. 4113,
  46426. 4113,
  46427. 4113,
  46428. 4113,
  46429. 4113,
  46430. 4113,
  46431. 4113,
  46432. 4113,
  46433. 4113,
  46434. 4113,
  46435. 4113,
  46436. 4113,
  46437. 4113,
  46438. 4113,
  46439. 4113,
  46440. 4113,
  46441. 4113,
  46442. 4113,
  46443. 4113,
  46444. 4113,
  46445. 4113,
  46446. 4113,
  46447. 4113,
  46448. 4113,
  46449. 4113,
  46450. 4113,
  46451. 4113,
  46452. 4113,
  46453. 4113,
  46454. 4113,
  46455. 4113,
  46456. 4113,
  46457. 4113,
  46458. 4113,
  46459. 4113,
  46460. 4113,
  46461. 4113,
  46462. 4113,
  46463. 4113,
  46464. 4113,
  46465. 4113,
  46466. 4113,
  46467. 4113,
  46468. 4113,
  46469. 4113,
  46470. 4113,
  46471. 4113,
  46472. 4113,
  46473. 4113,
  46474. 4113,
  46475. 4113,
  46476. 4113,
  46477. 4113,
  46478. 4113,
  46479. 4113,
  46480. 4113,
  46481. 4113,
  46482. 4113,
  46483. 4113,
  46484. 4113,
  46485. 4113,
  46486. 4113,
  46487. 4113,
  46488. 4113,
  46489. 4113,
  46490. 4113,
  46491. 4113,
  46492. 4113,
  46493. 4113,
  46494. 4113,
  46495. 4113,
  46496. 4113,
  46497. 4113,
  46498. 4113,
  46499. 4113,
  46500. 4113,
  46501. 4113,
  46502. 4113,
  46503. 4113,
  46504. 4113,
  46505. 4113,
  46506. 4113,
  46507. 4113,
  46508. 4113,
  46509. 4113,
  46510. 4113,
  46511. 4113,
  46512. 4113,
  46513. 4113,
  46514. 4113,
  46515. 4113,
  46516. 4113,
  46517. 4113,
  46518. 4113,
  46519. 4113,
  46520. 4113,
  46521. 4113,
  46522. 4113,
  46523. 4113,
  46524. 4113,
  46525. 4113,
  46526. 4113,
  46527. 4113,
  46528. 4113,
  46529. 4113,
  46530. 4113,
  46531. 4113,
  46532. 4113,
  46533. 4113,
  46534. 4113,
  46535. 4113,
  46536. 4113,
  46537. 4113,
  46538. 4113,
  46539. 4113,
  46540. 4113,
  46541. 4113,
  46542. 4113,
  46543. 4113,
  46544. 4113,
  46545. 4113,
  46546. 4113,
  46547. 4113,
  46548. 4113,
  46549. 4113,
  46550. 4113,
  46551. 4113,
  46552. 4113,
  46553. 4113,
  46554. 4113,
  46555. 4113,
  46556. 4113,
  46557. 4113,
  46558. 4113,
  46559. 4113,
  46560. 4113,
  46561. 4113,
  46562. 4113,
  46563. 4113,
  46564. 4113,
  46565. 4113,
  46566. 4113,
  46567. 4113,
  46568. 4113,
  46569. 4113,
  46570. 4113,
  46571. 4113,
  46572. 4113,
  46573. 4113,
  46574. 4113,
  46575. 4113,
  46576. 4113,
  46577. 4113,
  46578. 4113,
  46579. 4113,
  46580. 4113,
  46581. 4113,
  46582. 4113,
  46583. 4113,
  46584. 4113,
  46585. 4113,
  46586. 4113,
  46587. 4113,
  46588. 4113,
  46589. 4113,
  46590. 4113,
  46591. 4113,
  46592. 4113,
  46593. 4113,
  46594. 4113,
  46595. 4113,
  46596. 4113,
  46597. 4113,
  46598. 4113,
  46599. 4113,
  46600. 4113,
  46601. 4113,
  46602. 4113,
  46603. 4113,
  46604. 4113,
  46605. 4113,
  46606. 4113,
  46607. 4113,
  46608. 4113,
  46609. 4113,
  46610. 4113,
  46611. 4113,
  46612. 4113,
  46613. 4113,
  46614. 4113,
  46615. 4113,
  46616. 4113,
  46617. 4113,
  46618. 4113,
  46619. 4113,
  46620. 4113,
  46621. 4113,
  46622. 4113,
  46623. 4113,
  46624. 4113,
  46625. 4113,
  46626. 4121,
  46627. 4121,
  46628. 4129,
  46629. 4129,
  46630. 4129,
  46631. 4129,
  46632. 4129,
  46633. 4129,
  46634. 4129,
  46635. 4129,
  46636. 4129,
  46637. 4129,
  46638. 4129,
  46639. 4129,
  46640. 4129,
  46641. 4129,
  46642. 4129,
  46643. 4129,
  46644. 4129,
  46645. 4129,
  46646. 4129,
  46647. 4129,
  46648. 4129,
  46649. 4129,
  46650. 4129,
  46651. 4129,
  46652. 4129,
  46653. 4129,
  46654. 4129,
  46655. 4129,
  46656. 4129,
  46657. 4129,
  46658. 4129,
  46659. 4129,
  46660. 4129,
  46661. 4129,
  46662. 4129,
  46663. 4129,
  46664. 4129,
  46665. 4129,
  46666. 4129,
  46667. 4129,
  46668. 4129,
  46669. 4129,
  46670. 4129,
  46671. 4129,
  46672. 4129,
  46673. 4129,
  46674. 4129,
  46675. 4129,
  46676. 4129,
  46677. 4129,
  46678. 4129,
  46679. 4129,
  46680. 4129,
  46681. 4129,
  46682. 4129,
  46683. 4129,
  46684. 4129,
  46685. 4129,
  46686. 4129,
  46687. 4129,
  46688. 4129,
  46689. 4129,
  46690. 4129,
  46691. 4129,
  46692. 4129,
  46693. 4129,
  46694. 4129,
  46695. 4129,
  46696. 4129,
  46697. 4129,
  46698. 4129,
  46699. 4129,
  46700. 4129,
  46701. 4129,
  46702. 4129,
  46703. 4129,
  46704. 4129,
  46705. 4129,
  46706. 4129,
  46707. 4129,
  46708. 4129,
  46709. 4129,
  46710. 4129,
  46711. 4129,
  46712. 4129,
  46713. 4129,
  46714. 4129,
  46715. 4129,
  46716. 4129,
  46717. 4129,
  46718. 4129,
  46719. 4129,
  46720. 4129,
  46721. 4129,
  46722. 4129,
  46723. 4129,
  46724. 4129,
  46725. 4129,
  46726. 4129,
  46727. 4129,
  46728. 4129,
  46729. 4129,
  46730. 4129,
  46731. 4129,
  46732. 4129,
  46733. 4129,
  46734. 4129,
  46735. 4129,
  46736. 4129,
  46737. 4129,
  46738. 4129,
  46739. 4129,
  46740. 4129,
  46741. 4129,
  46742. 4129,
  46743. 4129,
  46744. 4129,
  46745. 4129,
  46746. 4129,
  46747. 4129,
  46748. 4129,
  46749. 4129,
  46750. 4129,
  46751. 4129,
  46752. 4129,
  46753. 4129,
  46754. 4129,
  46755. 4129,
  46756. 4129,
  46757. 4129,
  46758. 4129,
  46759. 4129,
  46760. 4129,
  46761. 4129,
  46762. 4129,
  46763. 4129,
  46764. 4129,
  46765. 4129,
  46766. 4129,
  46767. 4129,
  46768. 4129,
  46769. 4129,
  46770. 4129,
  46771. 4129,
  46772. 4129,
  46773. 4129,
  46774. 4129,
  46775. 4129,
  46776. 4129,
  46777. 4129,
  46778. 4129,
  46779. 4129,
  46780. 4129,
  46781. 4129,
  46782. 4129,
  46783. 4129,
  46784. 4129,
  46785. 4129,
  46786. 4129,
  46787. 4129,
  46788. 4129,
  46789. 4129,
  46790. 4129,
  46791. 4129,
  46792. 4129,
  46793. 4129,
  46794. 4129,
  46795. 4129,
  46796. 4129,
  46797. 4129,
  46798. 4129,
  46799. 4129,
  46800. 4129,
  46801. 4129,
  46802. 4129,
  46803. 4129,
  46804. 4129,
  46805. 4129,
  46806. 4129,
  46807. 4129,
  46808. 4129,
  46809. 4129,
  46810. 4129,
  46811. 4129,
  46812. 4129,
  46813. 4129,
  46814. 4129,
  46815. 4129,
  46816. 4129,
  46817. 4129,
  46818. 4129,
  46819. 4129,
  46820. 4129,
  46821. 4129,
  46822. 4129,
  46823. 4129,
  46824. 4129,
  46825. 4129,
  46826. 4129,
  46827. 4129,
  46828. 4129,
  46829. 4129,
  46830. 4129,
  46831. 4129,
  46832. 4129,
  46833. 4129,
  46834. 4129,
  46835. 4129,
  46836. 4129,
  46837. 4129,
  46838. 4129,
  46839. 4129,
  46840. 4129,
  46841. 4129,
  46842. 4129,
  46843. 4129,
  46844. 4129,
  46845. 4129,
  46846. 4129,
  46847. 4129,
  46848. 4129,
  46849. 4129,
  46850. 4129,
  46851. 4129,
  46852. 4129,
  46853. 4129,
  46854. 4129,
  46855. 4129,
  46856. 4129,
  46857. 4129,
  46858. 4129,
  46859. 4129,
  46860. 4129,
  46861. 4129,
  46862. 4129,
  46863. 4129,
  46864. 4129,
  46865. 4129,
  46866. 4129,
  46867. 4129,
  46868. 4129,
  46869. 4129,
  46870. 4129,
  46871. 4129,
  46872. 4129,
  46873. 4129,
  46874. 4129,
  46875. 4129,
  46876. 4129,
  46877. 4129,
  46878. 4129,
  46879. 4129,
  46880. 4129,
  46881. 4129,
  46882. 4129,
  46883. 4129,
  46884. 4129,
  46885. 4129,
  46886. 4129,
  46887. 4129,
  46888. 4129,
  46889. 4129,
  46890. 4129,
  46891. 4129,
  46892. 4129,
  46893. 4129,
  46894. 4129,
  46895. 4129,
  46896. 4129,
  46897. 4129,
  46898. 4129,
  46899. 4129,
  46900. 4129,
  46901. 4129,
  46902. 4129,
  46903. 4129,
  46904. 4129,
  46905. 4129,
  46906. 4129,
  46907. 4129,
  46908. 4129,
  46909. 4129,
  46910. 4129,
  46911. 4129,
  46912. 4129,
  46913. 4129,
  46914. 4129,
  46915. 4129,
  46916. 4129,
  46917. 4129,
  46918. 4129,
  46919. 4129,
  46920. 4129,
  46921. 4129,
  46922. 4129,
  46923. 4129,
  46924. 4129,
  46925. 4129,
  46926. 4129,
  46927. 4129,
  46928. 4129,
  46929. 4129,
  46930. 4129,
  46931. 4129,
  46932. 4129,
  46933. 4129,
  46934. 4129,
  46935. 4129,
  46936. 4129,
  46937. 4129,
  46938. 4129,
  46939. 4129,
  46940. 4129,
  46941. 4129,
  46942. 4129,
  46943. 4129,
  46944. 4129,
  46945. 4129,
  46946. 4129,
  46947. 4129,
  46948. 4129,
  46949. 4129,
  46950. 4129,
  46951. 4129,
  46952. 4129,
  46953. 4129,
  46954. 4129,
  46955. 4129,
  46956. 4129,
  46957. 4129,
  46958. 4129,
  46959. 4129,
  46960. 4129,
  46961. 4129,
  46962. 4129,
  46963. 4129,
  46964. 4129,
  46965. 4129,
  46966. 4129,
  46967. 4129,
  46968. 4129,
  46969. 4129,
  46970. 4129,
  46971. 4129,
  46972. 4129,
  46973. 4129,
  46974. 4129,
  46975. 4129,
  46976. 4129,
  46977. 4129,
  46978. 4129,
  46979. 4129,
  46980. 4129,
  46981. 4129,
  46982. 4129,
  46983. 4129,
  46984. 4129,
  46985. 4129,
  46986. 4129,
  46987. 4129,
  46988. 4129,
  46989. 4129,
  46990. 4129,
  46991. 4129,
  46992. 4129,
  46993. 4129,
  46994. 4129,
  46995. 4129,
  46996. 4129,
  46997. 4129,
  46998. 4129,
  46999. 4129,
  47000. 4129,
  47001. 4129,
  47002. 4129,
  47003. 4129,
  47004. 4129,
  47005. 4129,
  47006. 4129,
  47007. 4129,
  47008. 4129,
  47009. 4129,
  47010. 4129,
  47011. 4129,
  47012. 4129,
  47013. 4129,
  47014. 4129,
  47015. 4129,
  47016. 4129,
  47017. 4129,
  47018. 4129,
  47019. 4129,
  47020. 4129,
  47021. 4129,
  47022. 4129,
  47023. 4129,
  47024. 4129,
  47025. 4129,
  47026. 4129,
  47027. 4129,
  47028. 4129,
  47029. 4129,
  47030. 4129,
  47031. 4129,
  47032. 4129,
  47033. 4129,
  47034. 4129,
  47035. 4129,
  47036. 4129,
  47037. 4129,
  47038. 4129,
  47039. 4129,
  47040. 4129,
  47041. 4129,
  47042. 4129,
  47043. 4129,
  47044. 4129,
  47045. 4129,
  47046. 4129,
  47047. 4129,
  47048. 4129,
  47049. 4129,
  47050. 4129,
  47051. 4129,
  47052. 4129,
  47053. 4129,
  47054. 4129,
  47055. 4129,
  47056. 4129,
  47057. 4129,
  47058. 4129,
  47059. 4129,
  47060. 4129,
  47061. 4129,
  47062. 4129,
  47063. 4129,
  47064. 4129,
  47065. 4129,
  47066. 4129,
  47067. 4129,
  47068. 4129,
  47069. 4129,
  47070. 4129,
  47071. 4129,
  47072. 4129,
  47073. 4129,
  47074. 4129,
  47075. 4129,
  47076. 4129,
  47077. 4129,
  47078. 4129,
  47079. 4129,
  47080. 4129,
  47081. 4129,
  47082. 4129,
  47083. 4129,
  47084. 4129,
  47085. 4129,
  47086. 4129,
  47087. 4129,
  47088. 4129,
  47089. 4129,
  47090. 4129,
  47091. 4129,
  47092. 4129,
  47093. 4129,
  47094. 4129,
  47095. 4129,
  47096. 4129,
  47097. 4129,
  47098. 4129,
  47099. 4129,
  47100. 4129,
  47101. 4129,
  47102. 4129,
  47103. 4129,
  47104. 4129,
  47105. 4129,
  47106. 4129,
  47107. 4129,
  47108. 4129,
  47109. 4129,
  47110. 4129,
  47111. 4129,
  47112. 4129,
  47113. 4129,
  47114. 4129,
  47115. 4129,
  47116. 4129,
  47117. 4129,
  47118. 4129,
  47119. 4129,
  47120. 4129,
  47121. 4129,
  47122. 4129,
  47123. 4129,
  47124. 4129,
  47125. 4129,
  47126. 4129,
  47127. 4129,
  47128. 4129,
  47129. 4129,
  47130. 4129,
  47131. 4129,
  47132. 4129,
  47133. 4129,
  47134. 4129,
  47135. 4129,
  47136. 4129,
  47137. 4129,
  47138. 4129,
  47139. 4129,
  47140. 4129,
  47141. 4129,
  47142. 4129,
  47143. 4129,
  47144. 4129,
  47145. 4129,
  47146. 4129,
  47147. 4129,
  47148. 4129,
  47149. 4129,
  47150. 4129,
  47151. 4129,
  47152. 4129,
  47153. 4129,
  47154. 4129,
  47155. 4129,
  47156. 4129,
  47157. 4129,
  47158. 4129,
  47159. 4129,
  47160. 4129,
  47161. 4129,
  47162. 4129,
  47163. 4129,
  47164. 4129,
  47165. 4129,
  47166. 4129,
  47167. 4129,
  47168. 4129,
  47169. 4129,
  47170. 4129,
  47171. 4129,
  47172. 4129,
  47173. 4129,
  47174. 4129,
  47175. 4129,
  47176. 4129,
  47177. 4129,
  47178. 4129,
  47179. 4129,
  47180. 4129,
  47181. 4129,
  47182. 4129,
  47183. 4129,
  47184. 4129,
  47185. 4129,
  47186. 4129,
  47187. 4129,
  47188. 4129,
  47189. 4129,
  47190. 4129,
  47191. 4129,
  47192. 4129,
  47193. 4129,
  47194. 4129,
  47195. 4129,
  47196. 4129,
  47197. 4129,
  47198. 4129,
  47199. 4129,
  47200. 4129,
  47201. 4129,
  47202. 4129,
  47203. 4129,
  47204. 4129,
  47205. 4129,
  47206. 4129,
  47207. 4129,
  47208. 4129,
  47209. 4129,
  47210. 4129,
  47211. 4129,
  47212. 4129,
  47213. 4129,
  47214. 4129,
  47215. 4129,
  47216. 4129,
  47217. 4129,
  47218. 4129,
  47219. 4129,
  47220. 4129,
  47221. 4129,
  47222. 4129,
  47223. 4129,
  47224. 4129,
  47225. 4129,
  47226. 4129,
  47227. 4129,
  47228. 4129,
  47229. 4129,
  47230. 4129,
  47231. 4129,
  47232. 4129,
  47233. 4129,
  47234. 4129,
  47235. 4129,
  47236. 4129,
  47237. 4129,
  47238. 4129,
  47239. 4129,
  47240. 4129,
  47241. 4129,
  47242. 4129,
  47243. 4129,
  47244. 4129,
  47245. 4129,
  47246. 4129,
  47247. 4129,
  47248. 4129,
  47249. 4129,
  47250. 4129,
  47251. 4129,
  47252. 4129,
  47253. 4129,
  47254. 4129,
  47255. 4129,
  47256. 4129,
  47257. 4129,
  47258. 4129,
  47259. 4129,
  47260. 4129,
  47261. 4129,
  47262. 4129,
  47263. 4129,
  47264. 4129,
  47265. 4129,
  47266. 4129,
  47267. 4129,
  47268. 4129,
  47269. 4129,
  47270. 4129,
  47271. 4129,
  47272. 4129,
  47273. 4129,
  47274. 4129,
  47275. 4129,
  47276. 4129,
  47277. 4129,
  47278. 4129,
  47279. 4129,
  47280. 4129,
  47281. 4129,
  47282. 4129,
  47283. 4129,
  47284. 4137,
  47285. 4145,
  47286. 4145,
  47287. 4145,
  47288. 4145,
  47289. 4145,
  47290. 4145,
  47291. 4145,
  47292. 4145,
  47293. 4145,
  47294. 4145,
  47295. 4145,
  47296. 4145,
  47297. 4145,
  47298. 4145,
  47299. 4145,
  47300. 4145,
  47301. 4145,
  47302. 4145,
  47303. 4145,
  47304. 4145,
  47305. 4145,
  47306. 4145,
  47307. 4145,
  47308. 4145,
  47309. 4145,
  47310. 4145,
  47311. 4145,
  47312. 4145,
  47313. 4145,
  47314. 4145,
  47315. 4145,
  47316. 4145,
  47317. 4145,
  47318. 4145,
  47319. 4145,
  47320. 4145,
  47321. 4145,
  47322. 4153,
  47323. 4161,
  47324. 4169,
  47325. 4169,
  47326. 4169,
  47327. 4169,
  47328. 4169,
  47329. 4169,
  47330. 4169,
  47331. 4169,
  47332. 4177,
  47333. 4185,
  47334. 4193,
  47335. 4201,
  47336. 4209,
  47337. 4217,
  47338. 4217,
  47339. 4225,
  47340. 4233,
  47341. 4233,
  47342. 4233,
  47343. 4233,
  47344. 4233,
  47345. 4233,
  47346. 4233,
  47347. 4233,
  47348. 4241,
  47349. 4249,
  47350. 4257,
  47351. 4265,
  47352. 4273,
  47353. 4281,
  47354. 4289,
  47355. 4297,
  47356. 4305,
  47357. 4313,
  47358. 4321,
  47359. 4329,
  47360. 4337,
  47361. 4345,
  47362. 4353,
  47363. 4361,
  47364. 4361,
  47365. 4369,
  47366. 4377,
  47367. 4385,
  47368. 4385,
  47369. 4385,
  47370. 4385,
  47371. 4393,
  47372. 4401,
  47373. 4409,
  47374. 4409,
  47375. 4409,
  47376. 4409,
  47377. 4409,
  47378. 4409,
  47379. 4417,
  47380. 4425,
  47381. 4433,
  47382. 4441,
  47383. 4449,
  47384. 4457,
  47385. 4465,
  47386. 4473,
  47387. 4481,
  47388. 4489,
  47389. 4497,
  47390. 4505,
  47391. 4513,
  47392. 4521,
  47393. 4529,
  47394. 4537,
  47395. 4545,
  47396. 4553,
  47397. 4561,
  47398. 4569,
  47399. 4577,
  47400. 4585,
  47401. 4593,
  47402. 4601,
  47403. 4609,
  47404. 4617,
  47405. 4625,
  47406. 4633,
  47407. 4641,
  47408. 4649,
  47409. 4657,
  47410. 4665,
  47411. 4673,
  47412. 4681,
  47413. 4689,
  47414. 4697,
  47415. 4705,
  47416. 4713,
  47417. 4721,
  47418. 4729,
  47419. 4737,
  47420. 4745,
  47421. 4753,
  47422. 4761,
  47423. 4769,
  47424. 4777,
  47425. 4785,
  47426. 4793,
  47427. 4801,
  47428. 4809,
  47429. 4817,
  47430. 4825,
  47431. 4833,
  47432. 4841,
  47433. 4849,
  47434. 4857,
  47435. 4865,
  47436. 4873,
  47437. 4881,
  47438. 4889,
  47439. 4897,
  47440. 4905,
  47441. 4913,
  47442. 4921,
  47443. 4929,
  47444. 4937,
  47445. 4945,
  47446. 4953,
  47447. 4961,
  47448. 4969,
  47449. 4977,
  47450. 4985,
  47451. 4993,
  47452. 5001,
  47453. 5009,
  47454. 5017,
  47455. 5025,
  47456. 5033,
  47457. 5041,
  47458. 5049,
  47459. 5057,
  47460. 5065,
  47461. 5073,
  47462. 5081,
  47463. 5089,
  47464. 5097,
  47465. 5105,
  47466. 5113,
  47467. 5121,
  47468. 5129,
  47469. 5137,
  47470. 5145,
  47471. 5153,
  47472. 5161,
  47473. 5169,
  47474. 5177,
  47475. 5185,
  47476. 5193,
  47477. 5201,
  47478. 5209,
  47479. 5217,
  47480. 5225,
  47481. 5233,
  47482. 5241,
  47483. 5249,
  47484. 5257,
  47485. 5265,
  47486. 5273,
  47487. 5281,
  47488. 5289,
  47489. 5297,
  47490. 5305,
  47491. 5313,
  47492. 5321,
  47493. 5329,
  47494. 5337,
  47495. 5345,
  47496. 5353,
  47497. 5361,
  47498. 5369,
  47499. 5377,
  47500. 5385,
  47501. 5393,
  47502. 5401,
  47503. 5409,
  47504. 5417,
  47505. 5425,
  47506. 5433,
  47507. 5441,
  47508. 5449,
  47509. 5457,
  47510. 5465,
  47511. 5473,
  47512. 5481,
  47513. 5489,
  47514. 5497,
  47515. 5505,
  47516. 5513,
  47517. 5521,
  47518. 5529,
  47519. 5537,
  47520. 5545,
  47521. 5553,
  47522. 5561,
  47523. 5569,
  47524. 5577,
  47525. 5585,
  47526. 5593,
  47527. 5601,
  47528. 5609,
  47529. 5617,
  47530. 5625,
  47531. 5633,
  47532. 5641,
  47533. 5649,
  47534. 5657,
  47535. 5665,
  47536. 5673,
  47537. 5681,
  47538. 5689,
  47539. 5697,
  47540. 5705,
  47541. 5713,
  47542. 5721,
  47543. 5729,
  47544. 5737,
  47545. 5745,
  47546. 5753,
  47547. 5761,
  47548. 5769,
  47549. 5777,
  47550. 5785,
  47551. 5793,
  47552. 5801,
  47553. 5809,
  47554. 5817,
  47555. 5825,
  47556. 5833,
  47557. 5841,
  47558. 5849,
  47559. 5857,
  47560. 5865,
  47561. 5873,
  47562. 5881,
  47563. 5889,
  47564. 5897,
  47565. 5905,
  47566. 5913,
  47567. 5921,
  47568. 5929,
  47569. 5937,
  47570. 5945,
  47571. 5953,
  47572. 5961,
  47573. 5969,
  47574. 5977,
  47575. 5985,
  47576. 5993,
  47577. 6001,
  47578. 6009,
  47579. 6017,
  47580. 6025,
  47581. 6033,
  47582. 6041,
  47583. 6049,
  47584. 6057,
  47585. 6065,
  47586. 6073,
  47587. 6081,
  47588. 6089,
  47589. 6097,
  47590. 6105,
  47591. 6113,
  47592. 6121,
  47593. 6129,
  47594. 6137,
  47595. 6145,
  47596. 6153,
  47597. 6161,
  47598. 6169,
  47599. 6177,
  47600. 6185,
  47601. 6193,
  47602. 6201,
  47603. 6209,
  47604. 6217,
  47605. 6225,
  47606. 6233,
  47607. 6241,
  47608. 6249,
  47609. 6257,
  47610. 6265,
  47611. 6273,
  47612. 6281,
  47613. 6289,
  47614. 6297,
  47615. 6305,
  47616. 6313,
  47617. 6321,
  47618. 6329,
  47619. 6337,
  47620. 6345,
  47621. 6353,
  47622. 6361,
  47623. 6369,
  47624. 6377,
  47625. 6385,
  47626. 6393,
  47627. 6401,
  47628. 6409,
  47629. 6417,
  47630. 6425,
  47631. 6433,
  47632. 6441,
  47633. 6449,
  47634. 6457,
  47635. 6465,
  47636. 6473,
  47637. 6481,
  47638. 6489,
  47639. 6497,
  47640. 6505,
  47641. 6513,
  47642. 6521,
  47643. 6529,
  47644. 6537,
  47645. 6545,
  47646. 6553,
  47647. 6561,
  47648. 6569,
  47649. 6577,
  47650. 6585,
  47651. 6593,
  47652. 6601,
  47653. 6609,
  47654. 6617,
  47655. 6625,
  47656. 6633,
  47657. 6641,
  47658. 6649,
  47659. 6657,
  47660. 6665,
  47661. 6673,
  47662. 6681,
  47663. 6689,
  47664. 6697,
  47665. 6705,
  47666. 6713,
  47667. 6721,
  47668. 6729,
  47669. 6737,
  47670. 6745,
  47671. 6753,
  47672. 6761,
  47673. 6769,
  47674. 6777,
  47675. 6785,
  47676. 6793,
  47677. 6801,
  47678. 6809,
  47679. 6817,
  47680. 6825,
  47681. 6833,
  47682. 6841,
  47683. 6849,
  47684. 6857,
  47685. 6865,
  47686. 6873,
  47687. 6881,
  47688. 6889,
  47689. 6897,
  47690. 6905,
  47691. 6913,
  47692. 6921,
  47693. 6929,
  47694. 6937,
  47695. 6945,
  47696. 6953,
  47697. 6961,
  47698. 6969,
  47699. 6977,
  47700. 6985,
  47701. 6993,
  47702. 7001,
  47703. 7009,
  47704. 7017,
  47705. 7025,
  47706. 7033,
  47707. 7041,
  47708. 7049,
  47709. 7057,
  47710. 7065,
  47711. 7073,
  47712. 7081,
  47713. 7089,
  47714. 7097,
  47715. 7105,
  47716. 7113,
  47717. 7121,
  47718. 7129,
  47719. 7137,
  47720. 7145,
  47721. 7153,
  47722. 7161,
  47723. 7169,
  47724. 7177,
  47725. 7185,
  47726. 7193,
  47727. 7201,
  47728. 7209,
  47729. 7217,
  47730. 7225,
  47731. 7233,
  47732. 2009,
  47733. 2009,
  47734. 2009,
  47735. 2009,
  47736. 2009,
  47737. 2009,
  47738. 2009,
  47739. 2009,
  47740. 2009,
  47741. 2009,
  47742. 2009,
  47743. 2009,
  47744. 2009,
  47745. 2009,
  47746. 2009,
  47747. 2009,
  47748. 2009,
  47749. 2009,
  47750. 2009,
  47751. 2009,
  47752. 2009,
  47753. 2009,
  47754. 2009,
  47755. 2009,
  47756. 2009,
  47757. 2009,
  47758. 2009,
  47759. 2009,
  47760. 2009,
  47761. 2009,
  47762. 2009,
  47763. 2009,
  47764. 7241,
  47765. 7241,
  47766. 7241,
  47767. 7241,
  47768. 7241,
  47769. 7241,
  47770. 7241,
  47771. 7241,
  47772. 7241,
  47773. 7241,
  47774. 7241,
  47775. 7241,
  47776. 7241,
  47777. 7241,
  47778. 7241,
  47779. 7241,
  47780. 7241,
  47781. 7241,
  47782. 7241,
  47783. 7241,
  47784. 7241,
  47785. 7241,
  47786. 7241,
  47787. 7241,
  47788. 7241,
  47789. 7241,
  47790. 7241,
  47791. 7241,
  47792. 7241,
  47793. 7241,
  47794. 7241,
  47795. 7241,
  47796. 2009,
  47797. 2009,
  47798. 2009,
  47799. 2009,
  47800. 2009,
  47801. 2009,
  47802. 2009,
  47803. 2009,
  47804. 2009,
  47805. 2009,
  47806. 2009,
  47807. 2009,
  47808. 2009,
  47809. 2009,
  47810. 2009,
  47811. 2009,
  47812. 2009,
  47813. 2009,
  47814. 2009,
  47815. 2009,
  47816. 2009,
  47817. 2009,
  47818. 2009,
  47819. 2009,
  47820. 2009,
  47821. 2009,
  47822. 2009,
  47823. 2009,
  47824. 2009,
  47825. 2009,
  47826. 2009,
  47827. 2009,
  47828. 2009,
  47829. 2009,
  47830. 2009,
  47831. 2009,
  47832. 2009,
  47833. 2009,
  47834. 2009,
  47835. 2009,
  47836. 2009,
  47837. 2009,
  47838. 2009,
  47839. 2009,
  47840. 2009,
  47841. 2009,
  47842. 2009,
  47843. 2009,
  47844. 2009,
  47845. 2009,
  47846. 2009,
  47847. 2009,
  47848. 2009,
  47849. 2009,
  47850. 2009,
  47851. 2009,
  47852. 2009,
  47853. 2009,
  47854. 2009,
  47855. 2009,
  47856. 2009,
  47857. 2009,
  47858. 2009,
  47859. 2009,
  47860. 2009,
  47861. 2009,
  47862. 2009,
  47863. 2009,
  47864. 2009,
  47865. 2009,
  47866. 2009,
  47867. 2009,
  47868. 2009,
  47869. 2009,
  47870. 2009,
  47871. 2009,
  47872. 2009,
  47873. 2009,
  47874. 2009,
  47875. 2009,
  47876. 2009,
  47877. 2009,
  47878. 2009,
  47879. 2009,
  47880. 2009,
  47881. 2009,
  47882. 2009,
  47883. 2009,
  47884. 2009,
  47885. 2009,
  47886. 2009,
  47887. 2009,
  47888. 2009,
  47889. 2009,
  47890. 2009,
  47891. 2009,
  47892. 2009,
  47893. 2009,
  47894. 2009,
  47895. 2009,
  47896. 2009,
  47897. 2009,
  47898. 2009,
  47899. 2009,
  47900. 2009,
  47901. 2009,
  47902. 2009,
  47903. 2009,
  47904. 2009,
  47905. 2009,
  47906. 2009,
  47907. 2009,
  47908. 2009,
  47909. 2009,
  47910. 2009,
  47911. 2009,
  47912. 2009,
  47913. 2009,
  47914. 2009,
  47915. 2009,
  47916. 2009,
  47917. 2009,
  47918. 2009,
  47919. 2009,
  47920. 2009,
  47921. 2009,
  47922. 2009,
  47923. 2009,
  47924. 2009,
  47925. 2009,
  47926. 2009,
  47927. 2009,
  47928. 2009,
  47929. 2009,
  47930. 2009,
  47931. 2009,
  47932. 2009,
  47933. 2009,
  47934. 2009,
  47935. 2009,
  47936. 2009,
  47937. 2009,
  47938. 2009,
  47939. 2009,
  47940. 2009,
  47941. 2009,
  47942. 2009,
  47943. 2009,
  47944. 2009,
  47945. 2009,
  47946. 2009,
  47947. 2009,
  47948. 2009,
  47949. 2009,
  47950. 2009,
  47951. 2009,
  47952. 2009,
  47953. 2009,
  47954. 2009,
  47955. 2009,
  47956. 2009,
  47957. 2009,
  47958. 2009,
  47959. 2009,
  47960. 2009,
  47961. 2009,
  47962. 2009,
  47963. 2009,
  47964. 2009,
  47965. 2009,
  47966. 2009,
  47967. 2009,
  47968. 2009,
  47969. 2009,
  47970. 2009,
  47971. 2009,
  47972. 2009,
  47973. 2009,
  47974. 2009,
  47975. 2009,
  47976. 2009,
  47977. 2009,
  47978. 2009,
  47979. 2009,
  47980. 2009,
  47981. 2009,
  47982. 2009,
  47983. 2009,
  47984. 2009,
  47985. 2009,
  47986. 2009,
  47987. 2009,
  47988. 2009,
  47989. 2009,
  47990. 2009,
  47991. 2009,
  47992. 2009,
  47993. 2009,
  47994. 2009,
  47995. 2009,
  47996. 7249,
  47997. 7249,
  47998. 7249,
  47999. 7249,
  48000. 7249,
  48001. 7249,
  48002. 7249,
  48003. 7249,
  48004. 7249,
  48005. 7249,
  48006. 7249,
  48007. 7249,
  48008. 7249,
  48009. 7249,
  48010. 7249,
  48011. 7249,
  48012. 7257,
  48013. 7265,
  48014. 7273,
  48015. 7281,
  48016. 7281,
  48017. 7281,
  48018. 7281,
  48019. 7281,
  48020. 7281,
  48021. 7281,
  48022. 7281,
  48023. 7281,
  48024. 7281,
  48025. 7281,
  48026. 7281,
  48027. 7281,
  48028. 7281,
  48029. 7289,
  48030. 7297,
  48031. 7305,
  48032. 7305,
  48033. 7305,
  48034. 7305,
  48035. 7313,
  48036. 7321,
  48037. 7329,
  48038. 7337,
  48039. 7345,
  48040. 7353,
  48041. 7353,
  48042. 7353,
  48043. 7361,
  48044. 7369,
  48045. 7377,
  48046. 7385,
  48047. 7393,
  48048. 7401,
  48049. 7409,
  48050. 7417,
  48051. 7425,
  48052. 7241,
  48053. 7241,
  48054. 7241,
  48055. 7241,
  48056. 7241,
  48057. 7241,
  48058. 7241,
  48059. 7241,
  48060. 7241,
  48061. 7241,
  48062. 7241,
  48063. 7241,
  48064. 7241,
  48065. 7241,
  48066. 7241,
  48067. 7241,
  48068. 7241,
  48069. 7241,
  48070. 7241,
  48071. 7241,
  48072. 7241,
  48073. 7241,
  48074. 7241,
  48075. 7241,
  48076. 7241,
  48077. 7241,
  48078. 7241,
  48079. 7241,
  48080. 7241,
  48081. 7241,
  48082. 7241,
  48083. 7241,
  48084. 7972,
  48085. 7972,
  48086. 8100,
  48087. 8164,
  48088. 8228,
  48089. 8292,
  48090. 8356,
  48091. 8420,
  48092. 8484,
  48093. 8548,
  48094. 8612,
  48095. 8676,
  48096. 8740,
  48097. 8804,
  48098. 8868,
  48099. 8932,
  48100. 8996,
  48101. 9060,
  48102. 9124,
  48103. 9188,
  48104. 9252,
  48105. 9316,
  48106. 9380,
  48107. 9444,
  48108. 9508,
  48109. 9572,
  48110. 9636,
  48111. 9700,
  48112. 9764,
  48113. 9828,
  48114. 9892,
  48115. 9956,
  48116. 2593,
  48117. 2657,
  48118. 2721,
  48119. 2529,
  48120. 2785,
  48121. 2529,
  48122. 2849,
  48123. 2913,
  48124. 2977,
  48125. 3041,
  48126. 3105,
  48127. 3169,
  48128. 3233,
  48129. 3297,
  48130. 2529,
  48131. 2529,
  48132. 2529,
  48133. 2529,
  48134. 2529,
  48135. 2529,
  48136. 2529,
  48137. 2529,
  48138. 3361,
  48139. 2529,
  48140. 2529,
  48141. 2529,
  48142. 3425,
  48143. 2529,
  48144. 2529,
  48145. 3489,
  48146. 3553,
  48147. 2529,
  48148. 3617,
  48149. 3681,
  48150. 3745,
  48151. 3809,
  48152. 3873,
  48153. 3937,
  48154. 4001,
  48155. 4065,
  48156. 4129,
  48157. 4193,
  48158. 4257,
  48159. 4321,
  48160. 4385,
  48161. 4449,
  48162. 4513,
  48163. 4577,
  48164. 4641,
  48165. 4705,
  48166. 4769,
  48167. 4833,
  48168. 4897,
  48169. 4961,
  48170. 5025,
  48171. 5089,
  48172. 5153,
  48173. 5217,
  48174. 5281,
  48175. 5345,
  48176. 5409,
  48177. 5473,
  48178. 5537,
  48179. 5601,
  48180. 5665,
  48181. 5729,
  48182. 5793,
  48183. 5857,
  48184. 5921,
  48185. 5985,
  48186. 6049,
  48187. 6113,
  48188. 6177,
  48189. 6241,
  48190. 6305,
  48191. 6369,
  48192. 6433,
  48193. 6497,
  48194. 6561,
  48195. 6625,
  48196. 6689,
  48197. 6753,
  48198. 6817,
  48199. 6881,
  48200. 6945,
  48201. 7009,
  48202. 7073,
  48203. 7137,
  48204. 7201,
  48205. 7265,
  48206. 7329,
  48207. 7393,
  48208. 7457,
  48209. 7521,
  48210. 7585,
  48211. 7649,
  48212. 2529,
  48213. 2529,
  48214. 2529,
  48215. 2529,
  48216. 2529,
  48217. 2529,
  48218. 2529,
  48219. 2529,
  48220. 2529,
  48221. 2529,
  48222. 2529,
  48223. 2529,
  48224. 2529,
  48225. 2529,
  48226. 2529,
  48227. 2529,
  48228. 2529,
  48229. 2529,
  48230. 2529,
  48231. 2529,
  48232. 2529,
  48233. 2529,
  48234. 2529,
  48235. 2529,
  48236. 2529,
  48237. 2529,
  48238. 2529,
  48239. 2529,
  48240. 2529,
  48241. 2529,
  48242. 2529,
  48243. 2529,
  48244. 2529,
  48245. 2529,
  48246. 2529,
  48247. 2529,
  48248. 2529,
  48249. 2529,
  48250. 2529,
  48251. 2529,
  48252. 2529,
  48253. 2529,
  48254. 2529,
  48255. 2529,
  48256. 2529,
  48257. 2529,
  48258. 2529,
  48259. 2529,
  48260. 2529,
  48261. 2529,
  48262. 2529,
  48263. 2529,
  48264. 2529,
  48265. 2529,
  48266. 2529,
  48267. 2529,
  48268. 2529,
  48269. 2529,
  48270. 2529,
  48271. 2529,
  48272. 2529,
  48273. 2529,
  48274. 2529,
  48275. 2529,
  48276. 2529,
  48277. 2529,
  48278. 2529,
  48279. 2529,
  48280. 2529,
  48281. 2529,
  48282. 2529,
  48283. 2529,
  48284. 2529,
  48285. 2529,
  48286. 2529,
  48287. 2529,
  48288. 2529,
  48289. 2529,
  48290. 2529,
  48291. 2529,
  48292. 2529,
  48293. 2529,
  48294. 2529,
  48295. 2529,
  48296. 2529,
  48297. 2529,
  48298. 2529,
  48299. 2529,
  48300. 2529,
  48301. 2529,
  48302. 2529,
  48303. 2529,
  48304. 2529,
  48305. 2529,
  48306. 2529,
  48307. 2529,
  48308. 2529,
  48309. 2529,
  48310. 2529,
  48311. 2529,
  48312. 2529,
  48313. 2529,
  48314. 2529,
  48315. 2529,
  48316. 2529,
  48317. 2529,
  48318. 2529,
  48319. 2529,
  48320. 2529,
  48321. 2529,
  48322. 2529,
  48323. 2529,
  48324. 2529,
  48325. 2529,
  48326. 2529,
  48327. 2529,
  48328. 2529,
  48329. 2529,
  48330. 2529,
  48331. 2529,
  48332. 2529,
  48333. 2529,
  48334. 2529,
  48335. 2529,
  48336. 2529,
  48337. 2529,
  48338. 2529,
  48339. 2529,
  48340. 2529,
  48341. 2529,
  48342. 2529,
  48343. 2529,
  48344. 2529,
  48345. 2529,
  48346. 2529,
  48347. 2529,
  48348. 2529,
  48349. 2529,
  48350. 2529,
  48351. 2529,
  48352. 2529,
  48353. 2529,
  48354. 2529,
  48355. 2529,
  48356. 2529,
  48357. 2529,
  48358. 2529,
  48359. 2529,
  48360. 2529,
  48361. 2529,
  48362. 2529,
  48363. 2529,
  48364. 2529,
  48365. 2529,
  48366. 2529,
  48367. 2529,
  48368. 2529,
  48369. 2529,
  48370. 2529,
  48371. 2529,
  48372. 2529,
  48373. 2529,
  48374. 2529,
  48375. 2529,
  48376. 2529,
  48377. 2529,
  48378. 2529,
  48379. 2529,
  48380. 2529,
  48381. 2529,
  48382. 2529,
  48383. 2529,
  48384. 2529,
  48385. 2529,
  48386. 2529,
  48387. 2529,
  48388. 2529,
  48389. 2529,
  48390. 2529,
  48391. 2529,
  48392. 2529,
  48393. 2529,
  48394. 2529,
  48395. 2529,
  48396. 2529,
  48397. 2529,
  48398. 2529,
  48399. 2529,
  48400. 2529,
  48401. 2529,
  48402. 2529,
  48403. 2529,
  48404. 2529,
  48405. 2529,
  48406. 2529,
  48407. 2529,
  48408. 2529,
  48409. 2529,
  48410. 2529,
  48411. 2529,
  48412. 2529,
  48413. 2529,
  48414. 2529,
  48415. 2529,
  48416. 2529,
  48417. 2529,
  48418. 2529,
  48419. 2529,
  48420. 2529,
  48421. 2529,
  48422. 2529,
  48423. 2529,
  48424. 2529,
  48425. 2529,
  48426. 2529,
  48427. 2529,
  48428. 2529,
  48429. 2529,
  48430. 2529,
  48431. 2529,
  48432. 2529,
  48433. 2529,
  48434. 2529,
  48435. 2529,
  48436. 2529,
  48437. 2529,
  48438. 2529,
  48439. 2529,
  48440. 2529,
  48441. 2529,
  48442. 2529,
  48443. 2529,
  48444. 2529,
  48445. 2529,
  48446. 2529,
  48447. 2529,
  48448. 2529,
  48449. 2529,
  48450. 2529,
  48451. 2529,
  48452. 2529,
  48453. 2529,
  48454. 2529,
  48455. 2529,
  48456. 2529,
  48457. 2529,
  48458. 2529,
  48459. 2529,
  48460. 2529,
  48461. 2529,
  48462. 2529,
  48463. 2529,
  48464. 2529,
  48465. 2529,
  48466. 2529,
  48467. 2529,
  48468. 2529,
  48469. 2529,
  48470. 2529,
  48471. 2529,
  48472. 2529,
  48473. 2529,
  48474. 2529,
  48475. 2529,
  48476. 2529,
  48477. 2529,
  48478. 2529,
  48479. 2529,
  48480. 2529,
  48481. 2529,
  48482. 2529,
  48483. 2529,
  48484. 2529,
  48485. 2529,
  48486. 2529,
  48487. 2529,
  48488. 2529,
  48489. 2529,
  48490. 2529,
  48491. 2529,
  48492. 2529,
  48493. 2529,
  48494. 2529,
  48495. 2529,
  48496. 2529,
  48497. 2529,
  48498. 2529,
  48499. 2529,
  48500. 2529,
  48501. 2529,
  48502. 2529,
  48503. 2529,
  48504. 2529,
  48505. 2529,
  48506. 2529,
  48507. 2529,
  48508. 2529,
  48509. 2529,
  48510. 2529,
  48511. 2529,
  48512. 2529,
  48513. 2529,
  48514. 2529,
  48515. 2529,
  48516. 2529,
  48517. 2529,
  48518. 2529,
  48519. 2529,
  48520. 2529,
  48521. 2529,
  48522. 2529,
  48523. 2529,
  48524. 2529,
  48525. 2529,
  48526. 2529,
  48527. 2529,
  48528. 2529,
  48529. 2529,
  48530. 2529,
  48531. 2529,
  48532. 7713,
  48533. 2009,
  48534. 2009,
  48535. 2009,
  48536. 2009,
  48537. 2009,
  48538. 2009,
  48539. 2009,
  48540. 2009,
  48541. 2009,
  48542. 2009,
  48543. 2009,
  48544. 2009,
  48545. 2009,
  48546. 2009,
  48547. 2009,
  48548. 2009,
  48549. 2009,
  48550. 2009,
  48551. 2009,
  48552. 2009,
  48553. 2009,
  48554. 2009,
  48555. 2009,
  48556. 2009,
  48557. 2009,
  48558. 2009,
  48559. 2009,
  48560. 2009,
  48561. 2009,
  48562. 2009,
  48563. 2009,
  48564. 2009,
  48565. 2009,
  48566. 2009,
  48567. 2009,
  48568. 2009,
  48569. 2009,
  48570. 2009,
  48571. 2009,
  48572. 2009,
  48573. 2009,
  48574. 2009,
  48575. 2009,
  48576. 2009,
  48577. 2009,
  48578. 2009,
  48579. 2009,
  48580. 2009,
  48581. 2009,
  48582. 2009,
  48583. 2009,
  48584. 2009,
  48585. 2009,
  48586. 2009,
  48587. 2009,
  48588. 2009,
  48589. 2009,
  48590. 2009,
  48591. 2009,
  48592. 2009,
  48593. 2009,
  48594. 2009,
  48595. 2009,
  48596. 2009,
  48597. 7433,
  48598. 7433,
  48599. 7433,
  48600. 7433,
  48601. 7433,
  48602. 7433,
  48603. 7433,
  48604. 7441,
  48605. 7449,
  48606. 7457,
  48607. 7457,
  48608. 7457,
  48609. 7457,
  48610. 7457,
  48611. 7457,
  48612. 7465,
  48613. 2009,
  48614. 2009,
  48615. 2009,
  48616. 2009,
  48617. 7473,
  48618. 7473,
  48619. 7473,
  48620. 7473,
  48621. 7473,
  48622. 7473,
  48623. 7473,
  48624. 7473,
  48625. 7481,
  48626. 7489,
  48627. 7497,
  48628. 7505,
  48629. 7505,
  48630. 7505,
  48631. 7505,
  48632. 7505,
  48633. 7513,
  48634. 7521,
  48635. 2009,
  48636. 2009,
  48637. 2009,
  48638. 2009,
  48639. 2009,
  48640. 2009,
  48641. 2009,
  48642. 2009,
  48643. 2009,
  48644. 2009,
  48645. 2009,
  48646. 2009,
  48647. 2009,
  48648. 2009,
  48649. 2009,
  48650. 2009,
  48651. 2009,
  48652. 2009,
  48653. 2009,
  48654. 2009,
  48655. 2009,
  48656. 2009,
  48657. 2009,
  48658. 2009,
  48659. 2009,
  48660. 2009,
  48661. 7529,
  48662. 7529,
  48663. 7537,
  48664. 7545,
  48665. 7545,
  48666. 7545,
  48667. 7545,
  48668. 7545,
  48669. 7553,
  48670. 7561,
  48671. 7561,
  48672. 7561,
  48673. 7561,
  48674. 7561,
  48675. 7561,
  48676. 7561,
  48677. 7569,
  48678. 7577,
  48679. 7585,
  48680. 7593,
  48681. 7593,
  48682. 7593,
  48683. 7593,
  48684. 7593,
  48685. 7593,
  48686. 7601,
  48687. 7609,
  48688. 7609,
  48689. 7609,
  48690. 7609,
  48691. 7609,
  48692. 7609,
  48693. 7609,
  48694. 7609,
  48695. 7609,
  48696. 7609,
  48697. 7609,
  48698. 7609,
  48699. 7609,
  48700. 7609,
  48701. 7609,
  48702. 7609,
  48703. 7609,
  48704. 7609,
  48705. 7609,
  48706. 7609,
  48707. 7609,
  48708. 7609,
  48709. 7609,
  48710. 7609,
  48711. 7609,
  48712. 7617,
  48713. 2009,
  48714. 2009,
  48715. 2009,
  48716. 2009,
  48717. 2009,
  48718. 2009,
  48719. 2009,
  48720. 2009,
  48721. 2009,
  48722. 2009,
  48723. 2009,
  48724. 2009,
  48725. 7625,
  48726. 7633,
  48727. 7641,
  48728. 7649,
  48729. 7657,
  48730. 7665,
  48731. 7673,
  48732. 7681,
  48733. 7689,
  48734. 7697,
  48735. 7705,
  48736. 2009,
  48737. 7713,
  48738. 7721,
  48739. 7729,
  48740. 2009,
  48741. 2009,
  48742. 2009,
  48743. 2009,
  48744. 2009,
  48745. 2009,
  48746. 2009,
  48747. 2009,
  48748. 2009,
  48749. 2009,
  48750. 2009,
  48751. 2009,
  48752. 2009,
  48753. 2009,
  48754. 2009,
  48755. 2009,
  48756. 2009,
  48757. 2009,
  48758. 2009,
  48759. 2009,
  48760. 2009,
  48761. 2009,
  48762. 2009,
  48763. 2009,
  48764. 2009,
  48765. 2009,
  48766. 2009,
  48767. 2009,
  48768. 2009,
  48769. 2009,
  48770. 2009,
  48771. 2009,
  48772. 2009,
  48773. 2009,
  48774. 2009,
  48775. 2009,
  48776. 2009,
  48777. 7737,
  48778. 7745,
  48779. 7753,
  48780. 2009,
  48781. 2009,
  48782. 2009,
  48783. 2009,
  48784. 2009,
  48785. 2009,
  48786. 2009,
  48787. 2009,
  48788. 2009,
  48789. 7761,
  48790. 7761,
  48791. 7761,
  48792. 7761,
  48793. 7761,
  48794. 7761,
  48795. 7761,
  48796. 7761,
  48797. 7761,
  48798. 7761,
  48799. 7761,
  48800. 7761,
  48801. 7761,
  48802. 7761,
  48803. 7761,
  48804. 7761,
  48805. 7761,
  48806. 7761,
  48807. 7761,
  48808. 7761,
  48809. 7761,
  48810. 7761,
  48811. 7761,
  48812. 7761,
  48813. 7761,
  48814. 7761,
  48815. 7761,
  48816. 7761,
  48817. 7761,
  48818. 7761,
  48819. 7761,
  48820. 7761,
  48821. 7761,
  48822. 7761,
  48823. 7761,
  48824. 7769,
  48825. 2009,
  48826. 2009,
  48827. 2009,
  48828. 2009,
  48829. 2009,
  48830. 2009,
  48831. 2009,
  48832. 2009,
  48833. 2009,
  48834. 2009,
  48835. 2009,
  48836. 2009,
  48837. 2009,
  48838. 2009,
  48839. 2009,
  48840. 2009,
  48841. 2009,
  48842. 2009,
  48843. 2009,
  48844. 2009,
  48845. 2009,
  48846. 2009,
  48847. 2009,
  48848. 2009,
  48849. 2009,
  48850. 2009,
  48851. 2009,
  48852. 2009,
  48853. 7777,
  48854. 7777,
  48855. 7777,
  48856. 7777,
  48857. 7777,
  48858. 7777,
  48859. 7777,
  48860. 7777,
  48861. 7777,
  48862. 7777,
  48863. 7777,
  48864. 7777,
  48865. 7777,
  48866. 7777,
  48867. 7777,
  48868. 7777,
  48869. 7777,
  48870. 7777,
  48871. 7785,
  48872. 7793,
  48873. 7801,
  48874. 7809,
  48875. 7809,
  48876. 7809,
  48877. 7809,
  48878. 7809,
  48879. 7809,
  48880. 7817,
  48881. 7825,
  48882. 7825,
  48883. 7825,
  48884. 7825,
  48885. 7825,
  48886. 7825,
  48887. 7825,
  48888. 7825,
  48889. 7825,
  48890. 7825,
  48891. 7825,
  48892. 7825,
  48893. 7825,
  48894. 7825,
  48895. 7825,
  48896. 7825,
  48897. 7825,
  48898. 7825,
  48899. 7825,
  48900. 7825,
  48901. 7825,
  48902. 7825,
  48903. 7825,
  48904. 7825,
  48905. 7825,
  48906. 7825,
  48907. 7825,
  48908. 7825,
  48909. 7825,
  48910. 7825,
  48911. 7825,
  48912. 7825,
  48913. 7825,
  48914. 7825,
  48915. 7825,
  48916. 7825,
  48917. 7825,
  48918. 7825,
  48919. 7825,
  48920. 7825,
  48921. 7825,
  48922. 7825,
  48923. 7825,
  48924. 7825,
  48925. 7825,
  48926. 7825,
  48927. 7825,
  48928. 7825,
  48929. 7825,
  48930. 7825,
  48931. 7825,
  48932. 7825,
  48933. 7825,
  48934. 7825,
  48935. 7825,
  48936. 7825,
  48937. 7825,
  48938. 7825,
  48939. 7825,
  48940. 7825,
  48941. 7825,
  48942. 7825,
  48943. 7825,
  48944. 7825,
  48945. 7825,
  48946. 7825,
  48947. 7825,
  48948. 7825,
  48949. 7825,
  48950. 7825,
  48951. 7825,
  48952. 7825,
  48953. 7825,
  48954. 7825,
  48955. 7825,
  48956. 7825,
  48957. 7825,
  48958. 7825,
  48959. 7825,
  48960. 7825,
  48961. 7825,
  48962. 7825,
  48963. 7825,
  48964. 7825,
  48965. 7825,
  48966. 7825,
  48967. 7825,
  48968. 7825,
  48969. 7825,
  48970. 7825,
  48971. 7825,
  48972. 7825,
  48973. 7825,
  48974. 7825,
  48975. 7825,
  48976. 7825,
  48977. 7825,
  48978. 7825,
  48979. 7825,
  48980. 7825,
  48981. 7825,
  48982. 7825,
  48983. 7825,
  48984. 7825,
  48985. 7825,
  48986. 7825,
  48987. 7825,
  48988. 7825,
  48989. 7825,
  48990. 7825,
  48991. 7825,
  48992. 7825,
  48993. 7825,
  48994. 7825,
  48995. 7825,
  48996. 7825,
  48997. 7825,
  48998. 7825,
  48999. 7825,
  49000. 7825,
  49001. 7825,
  49002. 7825,
  49003. 7825,
  49004. 7825,
  49005. 7825,
  49006. 7825,
  49007. 7825,
  49008. 7825,
  49009. 7825,
  49010. 7825,
  49011. 7825,
  49012. 7825,
  49013. 7825,
  49014. 7825,
  49015. 7825,
  49016. 7825,
  49017. 7825,
  49018. 7825,
  49019. 7825,
  49020. 7825,
  49021. 7825,
  49022. 7825,
  49023. 7825,
  49024. 7825,
  49025. 7825,
  49026. 7825,
  49027. 7825,
  49028. 7825,
  49029. 7825,
  49030. 7825,
  49031. 7825,
  49032. 7825,
  49033. 7825,
  49034. 7825,
  49035. 7825,
  49036. 7825,
  49037. 7825,
  49038. 7825,
  49039. 7825,
  49040. 7825,
  49041. 7825,
  49042. 7825,
  49043. 7825,
  49044. 7825,
  49045. 7825,
  49046. 7825,
  49047. 7825,
  49048. 7825,
  49049. 7825,
  49050. 7825,
  49051. 7825,
  49052. 7825,
  49053. 7825,
  49054. 7825,
  49055. 7825,
  49056. 7825,
  49057. 7825,
  49058. 7825,
  49059. 7825,
  49060. 7825,
  49061. 7825,
  49062. 7825,
  49063. 7825,
  49064. 7825,
  49065. 7825,
  49066. 7825,
  49067. 7825,
  49068. 7825,
  49069. 7825,
  49070. 7825,
  49071. 7825,
  49072. 7825,
  49073. 7825,
  49074. 7825,
  49075. 7825,
  49076. 7825,
  49077. 7825,
  49078. 7825,
  49079. 7825,
  49080. 7825,
  49081. 7825,
  49082. 7825,
  49083. 7825,
  49084. 7825,
  49085. 7825,
  49086. 7825,
  49087. 7825,
  49088. 7825,
  49089. 7825,
  49090. 7825,
  49091. 7825,
  49092. 7825,
  49093. 7825,
  49094. 7825,
  49095. 7825,
  49096. 7825,
  49097. 7825,
  49098. 7825,
  49099. 7825,
  49100. 7825,
  49101. 7825,
  49102. 7825,
  49103. 7825,
  49104. 7825,
  49105. 7825,
  49106. 7825,
  49107. 7825,
  49108. 7825,
  49109. 7825,
  49110. 7825,
  49111. 7825,
  49112. 7825,
  49113. 7825,
  49114. 7825,
  49115. 7825,
  49116. 7825,
  49117. 7825,
  49118. 7825,
  49119. 7825,
  49120. 7825,
  49121. 7825,
  49122. 7825,
  49123. 7825,
  49124. 7825,
  49125. 7825,
  49126. 7825,
  49127. 7825,
  49128. 7825,
  49129. 7825,
  49130. 7825,
  49131. 7825,
  49132. 7825,
  49133. 7825,
  49134. 7825,
  49135. 7825,
  49136. 7825,
  49137. 7825,
  49138. 7825,
  49139. 7825,
  49140. 7825,
  49141. 7825,
  49142. 7825,
  49143. 7825,
  49144. 7825,
  49145. 7825,
  49146. 7825,
  49147. 7825,
  49148. 7825,
  49149. 7825,
  49150. 7825,
  49151. 7825,
  49152. 7825,
  49153. 7825,
  49154. 7825,
  49155. 7825,
  49156. 7825,
  49157. 7825,
  49158. 7825,
  49159. 7825,
  49160. 7825,
  49161. 7825,
  49162. 7825,
  49163. 7825,
  49164. 7825,
  49165. 7825,
  49166. 7825,
  49167. 7825,
  49168. 7825,
  49169. 7825,
  49170. 7825,
  49171. 7825,
  49172. 7825,
  49173. 7825,
  49174. 7825,
  49175. 7825,
  49176. 7825,
  49177. 7825,
  49178. 7825,
  49179. 7825,
  49180. 7825,
  49181. 7825,
  49182. 7825,
  49183. 7825,
  49184. 7825,
  49185. 7825,
  49186. 7825,
  49187. 7825,
  49188. 7825,
  49189. 7825,
  49190. 7825,
  49191. 7825,
  49192. 7825,
  49193. 7825,
  49194. 7825,
  49195. 7825,
  49196. 7825,
  49197. 7825,
  49198. 7825,
  49199. 7825,
  49200. 7825,
  49201. 7825,
  49202. 7825,
  49203. 7825,
  49204. 7825,
  49205. 7825,
  49206. 7825,
  49207. 7825,
  49208. 7825,
  49209. 7825,
  49210. 7825,
  49211. 7825,
  49212. 7825,
  49213. 7825,
  49214. 7825,
  49215. 7825,
  49216. 7825,
  49217. 7825,
  49218. 7825,
  49219. 7825,
  49220. 7825,
  49221. 7825,
  49222. 7825,
  49223. 7825,
  49224. 7825,
  49225. 7825,
  49226. 7825,
  49227. 7825,
  49228. 7825,
  49229. 7825,
  49230. 7825,
  49231. 7825,
  49232. 7825,
  49233. 7825,
  49234. 7825,
  49235. 7825,
  49236. 7825,
  49237. 7825,
  49238. 7825,
  49239. 7825,
  49240. 7825,
  49241. 7825,
  49242. 7825,
  49243. 7825,
  49244. 7825,
  49245. 7825,
  49246. 7825,
  49247. 7825,
  49248. 7825,
  49249. 7825,
  49250. 7825,
  49251. 7825,
  49252. 7825,
  49253. 7825,
  49254. 7825,
  49255. 7825,
  49256. 7825,
  49257. 7825,
  49258. 7825,
  49259. 7825,
  49260. 7825,
  49261. 7825,
  49262. 7825,
  49263. 7825,
  49264. 7825,
  49265. 7825,
  49266. 7825,
  49267. 7825,
  49268. 7825,
  49269. 7825,
  49270. 7825,
  49271. 7825,
  49272. 7825,
  49273. 7825,
  49274. 7825,
  49275. 7825,
  49276. 7825,
  49277. 7825,
  49278. 7825,
  49279. 7825,
  49280. 7825,
  49281. 7825,
  49282. 7825,
  49283. 7825,
  49284. 7825,
  49285. 7825,
  49286. 7825,
  49287. 7825,
  49288. 7825,
  49289. 7825,
  49290. 7825,
  49291. 7825,
  49292. 7825,
  49293. 7825,
  49294. 7825,
  49295. 7825,
  49296. 7825,
  49297. 7825,
  49298. 7825,
  49299. 7825,
  49300. 7825,
  49301. 7825,
  49302. 7825,
  49303. 7825,
  49304. 7825,
  49305. 7825,
  49306. 7825,
  49307. 7825,
  49308. 7825,
  49309. 7825,
  49310. 7825,
  49311. 7825,
  49312. 7825,
  49313. 7825,
  49314. 7825,
  49315. 7825,
  49316. 7825,
  49317. 7825,
  49318. 7825,
  49319. 7825,
  49320. 7825,
  49321. 7825,
  49322. 7825,
  49323. 7825,
  49324. 7825,
  49325. 7825,
  49326. 7825,
  49327. 7825,
  49328. 7825,
  49329. 7825,
  49330. 7825,
  49331. 7825,
  49332. 7825,
  49333. 7825,
  49334. 7825,
  49335. 7825,
  49336. 7825,
  49337. 7825,
  49338. 7825,
  49339. 7825,
  49340. 7825,
  49341. 7825,
  49342. 7825,
  49343. 7825,
  49344. 7825,
  49345. 7825,
  49346. 7825,
  49347. 7825,
  49348. 7825,
  49349. 7825,
  49350. 7825,
  49351. 7825,
  49352. 7825,
  49353. 7825,
  49354. 7825,
  49355. 7825,
  49356. 7825,
  49357. 7825,
  49358. 7825,
  49359. 7833,
  49360. 7841,
  49361. 7849,
  49362. 2009,
  49363. 2009,
  49364. 2009,
  49365. 7857,
  49366. 2009,
  49367. 2009,
  49368. 2009,
  49369. 2009,
  49370. 2009,
  49371. 2009,
  49372. 2009,
  49373. 2009,
  49374. 2009,
  49375. 2009,
  49376. 2009,
  49377. 2009,
  49378. 2009,
  49379. 2009,
  49380. 2009,
  49381. 2009,
  49382. 2009,
  49383. 2009,
  49384. 2009,
  49385. 2009,
  49386. 2009,
  49387. 2009,
  49388. 2009,
  49389. 2009,
  49390. 2009,
  49391. 2009,
  49392. 2009,
  49393. 2009,
  49394. 2009,
  49395. 2009,
  49396. 2009,
  49397. 2009,
  49398. 2009,
  49399. 2009,
  49400. 2009,
  49401. 2009,
  49402. 2009,
  49403. 2009,
  49404. 2009,
  49405. 2009,
  49406. 2009,
  49407. 2009,
  49408. 2009,
  49409. 2009,
  49410. 2009,
  49411. 2009,
  49412. 2009,
  49413. 2009,
  49414. 2009,
  49415. 2009,
  49416. 2009,
  49417. 2009,
  49418. 2009,
  49419. 2009,
  49420. 2009,
  49421. 2009,
  49422. 2009,
  49423. 2009,
  49424. 2009,
  49425. 2009,
  49426. 2009,
  49427. 2009,
  49428. 2009,
  49429. 7865,
  49430. 7865,
  49431. 7865,
  49432. 7865,
  49433. 7865,
  49434. 7865,
  49435. 7865,
  49436. 7865,
  49437. 7865,
  49438. 7865,
  49439. 7865,
  49440. 7873,
  49441. 7881,
  49442. 7889,
  49443. 7897,
  49444. 7897,
  49445. 7897,
  49446. 7897,
  49447. 7905,
  49448. 7913,
  49449. 7913,
  49450. 7913,
  49451. 7913,
  49452. 7913,
  49453. 7913,
  49454. 7913,
  49455. 7913,
  49456. 7913,
  49457. 7913,
  49458. 7913,
  49459. 7913,
  49460. 7913,
  49461. 7913,
  49462. 7913,
  49463. 7913,
  49464. 7913,
  49465. 7913,
  49466. 7913,
  49467. 7913,
  49468. 7913,
  49469. 7913,
  49470. 7913,
  49471. 7913,
  49472. 7913,
  49473. 7913,
  49474. 7913,
  49475. 7913,
  49476. 7913,
  49477. 7913,
  49478. 7913,
  49479. 7913,
  49480. 7913,
  49481. 7913,
  49482. 7913,
  49483. 7913,
  49484. 7913,
  49485. 7913,
  49486. 7913,
  49487. 7913,
  49488. 7913,
  49489. 7913,
  49490. 7913,
  49491. 7921,
  49492. 7929,
  49493. 2009,
  49494. 2009,
  49495. 2009,
  49496. 2009,
  49497. 2009,
  49498. 2009,
  49499. 2009,
  49500. 2009,
  49501. 2009,
  49502. 2009,
  49503. 2009,
  49504. 2009,
  49505. 2009,
  49506. 2009,
  49507. 2009,
  49508. 2009,
  49509. 2009,
  49510. 2009,
  49511. 2009,
  49512. 2009,
  49513. 2009,
  49514. 2009,
  49515. 2009,
  49516. 2009,
  49517. 2009,
  49518. 2009,
  49519. 2009,
  49520. 2009,
  49521. 2009,
  49522. 2009,
  49523. 2009,
  49524. 2009,
  49525. 2009,
  49526. 2009,
  49527. 2009,
  49528. 2009,
  49529. 2009,
  49530. 2009,
  49531. 2009,
  49532. 2009,
  49533. 2009,
  49534. 2009,
  49535. 2009,
  49536. 2009,
  49537. 2009,
  49538. 2009,
  49539. 2009,
  49540. 2009,
  49541. 7937,
  49542. 7937,
  49543. 7937,
  49544. 7937,
  49545. 7937,
  49546. 7937,
  49547. 7937,
  49548. 7945,
  49549. 2009,
  49550. 2009,
  49551. 2009,
  49552. 2009,
  49553. 2009,
  49554. 2009,
  49555. 2009,
  49556. 2009,
  49557. 7953,
  49558. 7953,
  49559. 7953,
  49560. 7953,
  49561. 7953,
  49562. 7953,
  49563. 7953,
  49564. 2009,
  49565. 7961,
  49566. 7969,
  49567. 7977,
  49568. 7985,
  49569. 7993,
  49570. 2009,
  49571. 2009,
  49572. 8001,
  49573. 8009,
  49574. 8009,
  49575. 8009,
  49576. 8009,
  49577. 8009,
  49578. 8009,
  49579. 8009,
  49580. 8009,
  49581. 8009,
  49582. 8009,
  49583. 8009,
  49584. 8009,
  49585. 8009,
  49586. 8017,
  49587. 8025,
  49588. 8025,
  49589. 8025,
  49590. 8025,
  49591. 8025,
  49592. 8025,
  49593. 8025,
  49594. 8033,
  49595. 8041,
  49596. 8049,
  49597. 8057,
  49598. 8065,
  49599. 8073,
  49600. 8081,
  49601. 8081,
  49602. 8081,
  49603. 8081,
  49604. 8081,
  49605. 8081,
  49606. 8081,
  49607. 8081,
  49608. 8081,
  49609. 8081,
  49610. 8081,
  49611. 8089,
  49612. 2009,
  49613. 8097,
  49614. 8097,
  49615. 8097,
  49616. 8105,
  49617. 2009,
  49618. 2009,
  49619. 2009,
  49620. 2009,
  49621. 8113,
  49622. 8113,
  49623. 8113,
  49624. 8113,
  49625. 8113,
  49626. 8113,
  49627. 8113,
  49628. 8113,
  49629. 8113,
  49630. 8113,
  49631. 8113,
  49632. 8113,
  49633. 8113,
  49634. 8113,
  49635. 8113,
  49636. 8113,
  49637. 8113,
  49638. 8113,
  49639. 8113,
  49640. 8113,
  49641. 8113,
  49642. 8113,
  49643. 8113,
  49644. 8113,
  49645. 8113,
  49646. 8113,
  49647. 8113,
  49648. 8113,
  49649. 8113,
  49650. 8113,
  49651. 8113,
  49652. 8113,
  49653. 8113,
  49654. 8113,
  49655. 8113,
  49656. 8113,
  49657. 8113,
  49658. 8113,
  49659. 8113,
  49660. 8113,
  49661. 8113,
  49662. 8113,
  49663. 8113,
  49664. 8113,
  49665. 8113,
  49666. 8113,
  49667. 8113,
  49668. 8113,
  49669. 8113,
  49670. 8113,
  49671. 8113,
  49672. 8113,
  49673. 8113,
  49674. 8113,
  49675. 8113,
  49676. 8113,
  49677. 8113,
  49678. 8113,
  49679. 8113,
  49680. 8113,
  49681. 8113,
  49682. 8113,
  49683. 8113,
  49684. 8113,
  49685. 8113,
  49686. 8113,
  49687. 8113,
  49688. 8113,
  49689. 8113,
  49690. 8113,
  49691. 8113,
  49692. 8113,
  49693. 8113,
  49694. 8113,
  49695. 8113,
  49696. 8113,
  49697. 8113,
  49698. 8113,
  49699. 8113,
  49700. 8113,
  49701. 8113,
  49702. 8113,
  49703. 8113,
  49704. 8113,
  49705. 8113,
  49706. 8113,
  49707. 8113,
  49708. 8113,
  49709. 8113,
  49710. 8113,
  49711. 8113,
  49712. 8113,
  49713. 8113,
  49714. 8113,
  49715. 8113,
  49716. 8113,
  49717. 8113,
  49718. 8113,
  49719. 8113,
  49720. 8113,
  49721. 8113,
  49722. 8113,
  49723. 8113,
  49724. 8113,
  49725. 8113,
  49726. 8113,
  49727. 8113,
  49728. 8113,
  49729. 8113,
  49730. 8113,
  49731. 8113,
  49732. 8113,
  49733. 8113,
  49734. 8113,
  49735. 8113,
  49736. 8113,
  49737. 8113,
  49738. 8113,
  49739. 8113,
  49740. 8113,
  49741. 8113,
  49742. 8113,
  49743. 8113,
  49744. 8113,
  49745. 8113,
  49746. 8113,
  49747. 8113,
  49748. 8113,
  49749. 8113,
  49750. 8113,
  49751. 8113,
  49752. 8113,
  49753. 8113,
  49754. 8113,
  49755. 8113,
  49756. 8113,
  49757. 8113,
  49758. 8113,
  49759. 8113,
  49760. 8113,
  49761. 8113,
  49762. 8113,
  49763. 8113,
  49764. 8113,
  49765. 8113,
  49766. 8113,
  49767. 8113,
  49768. 8113,
  49769. 8113,
  49770. 8113,
  49771. 8113,
  49772. 8113,
  49773. 8113,
  49774. 8113,
  49775. 8113,
  49776. 8113,
  49777. 8113,
  49778. 8113,
  49779. 8113,
  49780. 8113,
  49781. 8113,
  49782. 8113,
  49783. 8113,
  49784. 8113,
  49785. 8113,
  49786. 8113,
  49787. 8113,
  49788. 8113,
  49789. 8113,
  49790. 8113,
  49791. 8113,
  49792. 8113,
  49793. 8113,
  49794. 8113,
  49795. 8113,
  49796. 8113,
  49797. 8113,
  49798. 8113,
  49799. 8113,
  49800. 8113,
  49801. 8113,
  49802. 8113,
  49803. 8113,
  49804. 8113,
  49805. 8113,
  49806. 8113,
  49807. 8113,
  49808. 8113,
  49809. 8113,
  49810. 8113,
  49811. 8113,
  49812. 8113,
  49813. 8113,
  49814. 8113,
  49815. 8113,
  49816. 8113,
  49817. 8113,
  49818. 8113,
  49819. 8113,
  49820. 8113,
  49821. 8113,
  49822. 8113,
  49823. 8113,
  49824. 8113,
  49825. 8113,
  49826. 8113,
  49827. 8113,
  49828. 8113,
  49829. 8113,
  49830. 8113,
  49831. 8113,
  49832. 8113,
  49833. 8113,
  49834. 8113,
  49835. 8113,
  49836. 8113,
  49837. 8113,
  49838. 8113,
  49839. 8113,
  49840. 8113,
  49841. 8113,
  49842. 8113,
  49843. 8113,
  49844. 8113,
  49845. 8113,
  49846. 8113,
  49847. 8113,
  49848. 8113,
  49849. 8113,
  49850. 8113,
  49851. 8113,
  49852. 8113,
  49853. 8113,
  49854. 8113,
  49855. 8113,
  49856. 8113,
  49857. 8113,
  49858. 8113,
  49859. 8113,
  49860. 8113,
  49861. 8113,
  49862. 8113,
  49863. 8113,
  49864. 8113,
  49865. 8113,
  49866. 8113,
  49867. 8113,
  49868. 8113,
  49869. 8113,
  49870. 8113,
  49871. 8113,
  49872. 8113,
  49873. 8113,
  49874. 8113,
  49875. 8113,
  49876. 8113,
  49877. 8113,
  49878. 8113,
  49879. 8113,
  49880. 8113,
  49881. 8113,
  49882. 8113,
  49883. 8113,
  49884. 8113,
  49885. 8113,
  49886. 8113,
  49887. 8113,
  49888. 8113,
  49889. 8113,
  49890. 8113,
  49891. 8113,
  49892. 8113,
  49893. 8113,
  49894. 8113,
  49895. 8113,
  49896. 8113,
  49897. 8113,
  49898. 8113,
  49899. 8113,
  49900. 8113,
  49901. 8113,
  49902. 8113,
  49903. 8113,
  49904. 8113,
  49905. 8113,
  49906. 8113,
  49907. 8113,
  49908. 8113,
  49909. 8113,
  49910. 8113,
  49911. 8113,
  49912. 8113,
  49913. 8113,
  49914. 8113,
  49915. 8113,
  49916. 8113,
  49917. 8113,
  49918. 8113,
  49919. 8113,
  49920. 8113,
  49921. 8113,
  49922. 8113,
  49923. 8113,
  49924. 8113,
  49925. 8113,
  49926. 8113,
  49927. 8113,
  49928. 8113,
  49929. 8113,
  49930. 8113,
  49931. 8113,
  49932. 8113,
  49933. 8113,
  49934. 8113,
  49935. 8113,
  49936. 8113,
  49937. 8113,
  49938. 8113,
  49939. 8113,
  49940. 8113,
  49941. 8113,
  49942. 8113,
  49943. 8113,
  49944. 8113,
  49945. 8113,
  49946. 8113,
  49947. 8113,
  49948. 8113,
  49949. 8113,
  49950. 8113,
  49951. 8113,
  49952. 8113,
  49953. 8113,
  49954. 8113,
  49955. 8113,
  49956. 8113,
  49957. 8113,
  49958. 8113,
  49959. 8113,
  49960. 8113,
  49961. 8113,
  49962. 8113,
  49963. 8113,
  49964. 8113,
  49965. 8113,
  49966. 8113,
  49967. 8113,
  49968. 8113,
  49969. 8113,
  49970. 8113,
  49971. 8113,
  49972. 8113,
  49973. 8113,
  49974. 8113,
  49975. 8113,
  49976. 8113,
  49977. 8113,
  49978. 8113,
  49979. 8113,
  49980. 8113,
  49981. 8113,
  49982. 8113,
  49983. 8113,
  49984. 8113,
  49985. 8113,
  49986. 8113,
  49987. 8113,
  49988. 8113,
  49989. 8113,
  49990. 8113,
  49991. 8113,
  49992. 8113,
  49993. 8113,
  49994. 8113,
  49995. 8113,
  49996. 8113,
  49997. 8113,
  49998. 8113,
  49999. 8113,
  50000. 8113,
  50001. 8113,
  50002. 8113,
  50003. 8113,
  50004. 8113,
  50005. 8113,
  50006. 8113,
  50007. 8113,
  50008. 8113,
  50009. 8113,
  50010. 8113,
  50011. 8113,
  50012. 8113,
  50013. 8113,
  50014. 8113,
  50015. 8113,
  50016. 8113,
  50017. 8113,
  50018. 8113,
  50019. 8113,
  50020. 8113,
  50021. 8113,
  50022. 8113,
  50023. 8113,
  50024. 8113,
  50025. 8113,
  50026. 8113,
  50027. 8113,
  50028. 8113,
  50029. 8113,
  50030. 8113,
  50031. 8113,
  50032. 8113,
  50033. 8113,
  50034. 8113,
  50035. 8113,
  50036. 8113,
  50037. 8113,
  50038. 8113,
  50039. 8113,
  50040. 8113,
  50041. 8113,
  50042. 8113,
  50043. 8113,
  50044. 8113,
  50045. 8113,
  50046. 8113,
  50047. 8113,
  50048. 8113,
  50049. 8113,
  50050. 8113,
  50051. 8113,
  50052. 8113,
  50053. 8113,
  50054. 8113,
  50055. 8113,
  50056. 8113,
  50057. 8113,
  50058. 8113,
  50059. 8113,
  50060. 8113,
  50061. 8113,
  50062. 8113,
  50063. 8113,
  50064. 8113,
  50065. 8113,
  50066. 8113,
  50067. 8113,
  50068. 8113,
  50069. 8113,
  50070. 8113,
  50071. 8113,
  50072. 8113,
  50073. 8113,
  50074. 8113,
  50075. 8113,
  50076. 8113,
  50077. 8113,
  50078. 8113,
  50079. 8113,
  50080. 8113,
  50081. 8113,
  50082. 8113,
  50083. 8113,
  50084. 8113,
  50085. 8113,
  50086. 8113,
  50087. 8113,
  50088. 8113,
  50089. 8113,
  50090. 8113,
  50091. 8113,
  50092. 8113,
  50093. 8113,
  50094. 8113,
  50095. 8113,
  50096. 8113,
  50097. 8113,
  50098. 8113,
  50099. 8113,
  50100. 8113,
  50101. 8113,
  50102. 8113,
  50103. 8113,
  50104. 8113,
  50105. 8113,
  50106. 8113,
  50107. 8113,
  50108. 8113,
  50109. 8113,
  50110. 8113,
  50111. 8113,
  50112. 8113,
  50113. 8113,
  50114. 8113,
  50115. 8113,
  50116. 8113,
  50117. 8113,
  50118. 8113,
  50119. 8113,
  50120. 8113,
  50121. 8113,
  50122. 8113,
  50123. 8113,
  50124. 8113,
  50125. 8113,
  50126. 8113,
  50127. 8113,
  50128. 8113,
  50129. 8113,
  50130. 8113,
  50131. 8113,
  50132. 8113,
  50133. 8113,
  50134. 8113,
  50135. 8113,
  50136. 8113,
  50137. 8113,
  50138. 8113,
  50139. 8113,
  50140. 8113,
  50141. 8113,
  50142. 8113,
  50143. 8113,
  50144. 8113,
  50145. 8113,
  50146. 8113,
  50147. 8113,
  50148. 8113,
  50149. 8113,
  50150. 8113,
  50151. 8113,
  50152. 8113,
  50153. 8113,
  50154. 8113,
  50155. 8113,
  50156. 8113,
  50157. 8113,
  50158. 8113,
  50159. 8113,
  50160. 8113,
  50161. 8113,
  50162. 8113,
  50163. 8113,
  50164. 8113,
  50165. 8113,
  50166. 8113,
  50167. 8113,
  50168. 8113,
  50169. 8113,
  50170. 8113,
  50171. 8113,
  50172. 8113,
  50173. 8113,
  50174. 8113,
  50175. 8113,
  50176. 8113,
  50177. 8113,
  50178. 8113,
  50179. 8113,
  50180. 8113,
  50181. 8113,
  50182. 8113,
  50183. 8113,
  50184. 8113,
  50185. 8113,
  50186. 8113,
  50187. 8113,
  50188. 8113,
  50189. 8113,
  50190. 8113,
  50191. 8113,
  50192. 8113,
  50193. 8113,
  50194. 8113,
  50195. 8113,
  50196. 8113,
  50197. 8113,
  50198. 8113,
  50199. 8113,
  50200. 8113,
  50201. 8113,
  50202. 8113,
  50203. 8113,
  50204. 8113,
  50205. 8113,
  50206. 8113,
  50207. 8113,
  50208. 8113,
  50209. 8113,
  50210. 8113,
  50211. 8113,
  50212. 8113,
  50213. 8113,
  50214. 8113,
  50215. 8113,
  50216. 8113,
  50217. 8113,
  50218. 8113,
  50219. 8113,
  50220. 8113,
  50221. 8113,
  50222. 8113,
  50223. 8113,
  50224. 8113,
  50225. 8113,
  50226. 8113,
  50227. 8113,
  50228. 8113,
  50229. 8113,
  50230. 8113,
  50231. 8113,
  50232. 8113,
  50233. 8113,
  50234. 8113,
  50235. 8113,
  50236. 8113,
  50237. 8113,
  50238. 8113,
  50239. 8113,
  50240. 8113,
  50241. 8113,
  50242. 8113,
  50243. 8113,
  50244. 8113,
  50245. 8113,
  50246. 8113,
  50247. 8113,
  50248. 8113,
  50249. 8113,
  50250. 8113,
  50251. 8113,
  50252. 8113,
  50253. 8113,
  50254. 8113,
  50255. 8113,
  50256. 8113,
  50257. 8113,
  50258. 8113,
  50259. 8113,
  50260. 8113,
  50261. 8113,
  50262. 8113,
  50263. 8113,
  50264. 8113,
  50265. 8113,
  50266. 8113,
  50267. 8113,
  50268. 8113,
  50269. 8113,
  50270. 8113,
  50271. 8113,
  50272. 8113,
  50273. 8113,
  50274. 8113,
  50275. 8113,
  50276. 8113,
  50277. 8113,
  50278. 8113,
  50279. 8113,
  50280. 8113,
  50281. 8113,
  50282. 8113,
  50283. 8113,
  50284. 8113,
  50285. 8113,
  50286. 8113,
  50287. 8113,
  50288. 8113,
  50289. 8113,
  50290. 8113,
  50291. 8113,
  50292. 8113,
  50293. 8113,
  50294. 8113,
  50295. 8113,
  50296. 8113,
  50297. 8113,
  50298. 8113,
  50299. 8113,
  50300. 8113,
  50301. 8113,
  50302. 8113,
  50303. 8113,
  50304. 8113,
  50305. 8113,
  50306. 8113,
  50307. 8113,
  50308. 8113,
  50309. 8113,
  50310. 8113,
  50311. 8113,
  50312. 8113,
  50313. 8113,
  50314. 8113,
  50315. 8113,
  50316. 8113,
  50317. 8113,
  50318. 8113,
  50319. 8113,
  50320. 8113,
  50321. 8113,
  50322. 8113,
  50323. 8113,
  50324. 8113,
  50325. 8113,
  50326. 8113,
  50327. 8113,
  50328. 8113,
  50329. 8113,
  50330. 8113,
  50331. 8113,
  50332. 8113,
  50333. 8113,
  50334. 8113,
  50335. 8113,
  50336. 8113,
  50337. 8113,
  50338. 8113,
  50339. 8113,
  50340. 8113,
  50341. 8113,
  50342. 8113,
  50343. 8113,
  50344. 8113,
  50345. 8113,
  50346. 8113,
  50347. 8113,
  50348. 8113,
  50349. 8113,
  50350. 8113,
  50351. 8113,
  50352. 8113,
  50353. 8113,
  50354. 8113,
  50355. 8113,
  50356. 8113,
  50357. 8113,
  50358. 8113,
  50359. 8113,
  50360. 8113,
  50361. 8113,
  50362. 8113,
  50363. 8113,
  50364. 8113,
  50365. 8113,
  50366. 8113,
  50367. 8113,
  50368. 8113,
  50369. 8113,
  50370. 8113,
  50371. 8113,
  50372. 8113,
  50373. 8113,
  50374. 8113,
  50375. 8113,
  50376. 8113,
  50377. 8113,
  50378. 8113,
  50379. 8113,
  50380. 8113,
  50381. 8113,
  50382. 8113,
  50383. 8113,
  50384. 8113,
  50385. 8113,
  50386. 8113,
  50387. 8113,
  50388. 8113,
  50389. 8113,
  50390. 8113,
  50391. 8113,
  50392. 8113,
  50393. 8113,
  50394. 8113,
  50395. 8113,
  50396. 8113,
  50397. 8113,
  50398. 8113,
  50399. 8113,
  50400. 8113,
  50401. 8113,
  50402. 8113,
  50403. 8113,
  50404. 8113,
  50405. 8113,
  50406. 8113,
  50407. 8113,
  50408. 8113,
  50409. 8113,
  50410. 8113,
  50411. 8113,
  50412. 8113,
  50413. 8113,
  50414. 8113,
  50415. 8113,
  50416. 8113,
  50417. 8113,
  50418. 8113,
  50419. 8113,
  50420. 8113,
  50421. 8113,
  50422. 8113,
  50423. 8113,
  50424. 8113,
  50425. 8113,
  50426. 8113,
  50427. 8113,
  50428. 8113,
  50429. 8113,
  50430. 8113,
  50431. 8113,
  50432. 8113,
  50433. 8113,
  50434. 8113,
  50435. 8113,
  50436. 8113,
  50437. 8113,
  50438. 8113,
  50439. 8113,
  50440. 8113,
  50441. 8113,
  50442. 8113,
  50443. 8113,
  50444. 8113,
  50445. 8113,
  50446. 8113,
  50447. 8113,
  50448. 8113,
  50449. 8113,
  50450. 8113,
  50451. 8113,
  50452. 8113,
  50453. 8113,
  50454. 8113,
  50455. 8113,
  50456. 8113,
  50457. 8113,
  50458. 8113,
  50459. 8113,
  50460. 8113,
  50461. 8113,
  50462. 8113,
  50463. 8113,
  50464. 8113,
  50465. 8113,
  50466. 8113,
  50467. 8113,
  50468. 8113,
  50469. 8113,
  50470. 8113,
  50471. 8113,
  50472. 8113,
  50473. 8113,
  50474. 8113,
  50475. 8113,
  50476. 8113,
  50477. 8113,
  50478. 8113,
  50479. 8113,
  50480. 8113,
  50481. 8113,
  50482. 8113,
  50483. 8113,
  50484. 8113,
  50485. 8113,
  50486. 8113,
  50487. 8113,
  50488. 8113,
  50489. 8113,
  50490. 8113,
  50491. 8113,
  50492. 8113,
  50493. 8113,
  50494. 8113,
  50495. 8113,
  50496. 8113,
  50497. 8113,
  50498. 8113,
  50499. 8113,
  50500. 8113,
  50501. 8113,
  50502. 8113,
  50503. 8113,
  50504. 8113,
  50505. 8113,
  50506. 8113,
  50507. 8113,
  50508. 8113,
  50509. 8113,
  50510. 8113,
  50511. 8113,
  50512. 8113,
  50513. 8113,
  50514. 8113,
  50515. 8113,
  50516. 8113,
  50517. 8113,
  50518. 8113,
  50519. 8113,
  50520. 8113,
  50521. 8113,
  50522. 8113,
  50523. 8113,
  50524. 8113,
  50525. 8113,
  50526. 8113,
  50527. 8113,
  50528. 8113,
  50529. 8113,
  50530. 8113,
  50531. 8113,
  50532. 8113,
  50533. 8113,
  50534. 8113,
  50535. 8113,
  50536. 8113,
  50537. 8113,
  50538. 8113,
  50539. 8113,
  50540. 8113,
  50541. 8113,
  50542. 8113,
  50543. 8113,
  50544. 8113,
  50545. 8113,
  50546. 8113,
  50547. 8113,
  50548. 8113,
  50549. 8113,
  50550. 8113,
  50551. 8113,
  50552. 8113,
  50553. 8113,
  50554. 8113,
  50555. 8113,
  50556. 8113,
  50557. 8113,
  50558. 8113,
  50559. 8113,
  50560. 8113,
  50561. 8113,
  50562. 8113,
  50563. 8113,
  50564. 8113,
  50565. 8113,
  50566. 8113,
  50567. 8113,
  50568. 8113,
  50569. 8113,
  50570. 8113,
  50571. 8113,
  50572. 8113,
  50573. 8113,
  50574. 8113,
  50575. 8113,
  50576. 8113,
  50577. 8113,
  50578. 8113,
  50579. 8113,
  50580. 8113,
  50581. 8113,
  50582. 8113,
  50583. 8113,
  50584. 8113,
  50585. 8113,
  50586. 8113,
  50587. 8113,
  50588. 8113,
  50589. 8113,
  50590. 8113,
  50591. 8113,
  50592. 8113,
  50593. 8113,
  50594. 8113,
  50595. 8113,
  50596. 8113,
  50597. 8113,
  50598. 8113,
  50599. 8113,
  50600. 8113,
  50601. 8113,
  50602. 8113,
  50603. 8113,
  50604. 8113,
  50605. 8113,
  50606. 8113,
  50607. 8113,
  50608. 8113,
  50609. 8113,
  50610. 8113,
  50611. 8113,
  50612. 8113,
  50613. 8113,
  50614. 8113,
  50615. 8113,
  50616. 8113,
  50617. 8113,
  50618. 8113,
  50619. 8113,
  50620. 8113,
  50621. 8113,
  50622. 8113,
  50623. 8113,
  50624. 8113,
  50625. 8113,
  50626. 8113,
  50627. 8113,
  50628. 8113,
  50629. 8113,
  50630. 8113,
  50631. 8113,
  50632. 8113,
  50633. 8113,
  50634. 8113,
  50635. 8113,
  50636. 8113,
  50637. 8113,
  50638. 8113,
  50639. 8113,
  50640. 8113,
  50641. 8113,
  50642. 8113,
  50643. 8113,
  50644. 8113,
  50645. 8113,
  50646. 8113,
  50647. 8113,
  50648. 8113,
  50649. 8113,
  50650. 8113,
  50651. 8113,
  50652. 8113,
  50653. 8113,
  50654. 8113,
  50655. 8113,
  50656. 8113,
  50657. 8113,
  50658. 8113,
  50659. 8113,
  50660. 8113,
  50661. 8113,
  50662. 8113,
  50663. 8113,
  50664. 8113,
  50665. 8113,
  50666. 8113,
  50667. 8113,
  50668. 8113,
  50669. 8113,
  50670. 8113,
  50671. 8113,
  50672. 8113,
  50673. 8113,
  50674. 8113,
  50675. 8113,
  50676. 8113,
  50677. 8113,
  50678. 8113,
  50679. 8113,
  50680. 8113,
  50681. 8113,
  50682. 8113,
  50683. 8113,
  50684. 8113,
  50685. 8113,
  50686. 8113,
  50687. 8113,
  50688. 8113,
  50689. 8113,
  50690. 8113,
  50691. 8113,
  50692. 8113,
  50693. 8113,
  50694. 8113,
  50695. 8113,
  50696. 8113,
  50697. 8113,
  50698. 8113,
  50699. 8113,
  50700. 8113,
  50701. 8113,
  50702. 8113,
  50703. 8113,
  50704. 8113,
  50705. 8113,
  50706. 8113,
  50707. 8113,
  50708. 8113,
  50709. 8113,
  50710. 8113,
  50711. 8113,
  50712. 8113,
  50713. 8113,
  50714. 8113,
  50715. 8113,
  50716. 8113,
  50717. 8113,
  50718. 8113,
  50719. 8113,
  50720. 8113,
  50721. 8113,
  50722. 8113,
  50723. 8113,
  50724. 8113,
  50725. 8113,
  50726. 8113,
  50727. 8113,
  50728. 8113,
  50729. 8113,
  50730. 8113,
  50731. 8113,
  50732. 8113,
  50733. 8113,
  50734. 8113,
  50735. 8113,
  50736. 8113,
  50737. 8113,
  50738. 8113,
  50739. 8113,
  50740. 8113,
  50741. 8113,
  50742. 8113,
  50743. 8113,
  50744. 8113,
  50745. 8113,
  50746. 8113,
  50747. 8113,
  50748. 8113,
  50749. 8113,
  50750. 8113,
  50751. 8113,
  50752. 8113,
  50753. 8113,
  50754. 8113,
  50755. 8113,
  50756. 8113,
  50757. 8113,
  50758. 8113,
  50759. 8113,
  50760. 8113,
  50761. 8113,
  50762. 8113,
  50763. 8113,
  50764. 8113,
  50765. 8113,
  50766. 8113,
  50767. 8113,
  50768. 8113,
  50769. 8113,
  50770. 8113,
  50771. 8113,
  50772. 8113,
  50773. 8113,
  50774. 8113,
  50775. 8113,
  50776. 8113,
  50777. 8113,
  50778. 8113,
  50779. 8113,
  50780. 8113,
  50781. 8113,
  50782. 8113,
  50783. 8113,
  50784. 8113,
  50785. 8113,
  50786. 8113,
  50787. 8113,
  50788. 8113,
  50789. 8113,
  50790. 8113,
  50791. 8113,
  50792. 8113,
  50793. 8113,
  50794. 8113,
  50795. 8113,
  50796. 8113,
  50797. 8113,
  50798. 8113,
  50799. 8113,
  50800. 8113,
  50801. 8113,
  50802. 8113,
  50803. 8113,
  50804. 8113,
  50805. 8113,
  50806. 8113,
  50807. 8113,
  50808. 8113,
  50809. 8113,
  50810. 8113,
  50811. 8113,
  50812. 8113,
  50813. 8113,
  50814. 8113,
  50815. 8113,
  50816. 8113,
  50817. 8113,
  50818. 8113,
  50819. 8113,
  50820. 8113,
  50821. 8113,
  50822. 8113,
  50823. 8113,
  50824. 8113,
  50825. 8113,
  50826. 8113,
  50827. 8113,
  50828. 8113,
  50829. 8113,
  50830. 8113,
  50831. 8113,
  50832. 8113,
  50833. 8113,
  50834. 8113,
  50835. 8113,
  50836. 8113,
  50837. 8113,
  50838. 8113,
  50839. 8113,
  50840. 8113,
  50841. 8113,
  50842. 8113,
  50843. 8113,
  50844. 8113,
  50845. 8113,
  50846. 8113,
  50847. 8113,
  50848. 8113,
  50849. 8113,
  50850. 8113,
  50851. 8113,
  50852. 8113,
  50853. 8113,
  50854. 8113,
  50855. 8113,
  50856. 8113,
  50857. 8113,
  50858. 8113,
  50859. 8113,
  50860. 8113,
  50861. 8113,
  50862. 8113,
  50863. 8113,
  50864. 8113,
  50865. 8113,
  50866. 8113,
  50867. 8113,
  50868. 8113,
  50869. 8113,
  50870. 8113,
  50871. 8113,
  50872. 8113,
  50873. 8113,
  50874. 8113,
  50875. 8113,
  50876. 8113,
  50877. 8113,
  50878. 8113,
  50879. 8113,
  50880. 8113,
  50881. 8113,
  50882. 8113,
  50883. 8113,
  50884. 8113,
  50885. 8113,
  50886. 8113,
  50887. 8113,
  50888. 8113,
  50889. 8113,
  50890. 8113,
  50891. 8113,
  50892. 8113,
  50893. 8113,
  50894. 8113,
  50895. 8113,
  50896. 8113,
  50897. 8113,
  50898. 8113,
  50899. 8113,
  50900. 8113,
  50901. 8113,
  50902. 8113,
  50903. 8113,
  50904. 8113,
  50905. 8113,
  50906. 8113,
  50907. 8113,
  50908. 8113,
  50909. 8113,
  50910. 8113,
  50911. 8113,
  50912. 8113,
  50913. 8113,
  50914. 8113,
  50915. 8113,
  50916. 8113,
  50917. 8113,
  50918. 8113,
  50919. 8113,
  50920. 8113,
  50921. 8113,
  50922. 8113,
  50923. 8113,
  50924. 8113,
  50925. 8113,
  50926. 8113,
  50927. 8113,
  50928. 8113,
  50929. 8113,
  50930. 8113,
  50931. 8113,
  50932. 8113,
  50933. 8113,
  50934. 8113,
  50935. 8113,
  50936. 8113,
  50937. 8113,
  50938. 8113,
  50939. 8113,
  50940. 8113,
  50941. 8113,
  50942. 8113,
  50943. 8113,
  50944. 8113,
  50945. 8113,
  50946. 8113,
  50947. 8113,
  50948. 8113,
  50949. 8113,
  50950. 8113,
  50951. 8113,
  50952. 8113,
  50953. 8113,
  50954. 8113,
  50955. 8113,
  50956. 8113,
  50957. 8113,
  50958. 8113,
  50959. 8113,
  50960. 8113,
  50961. 8113,
  50962. 8113,
  50963. 8113,
  50964. 8113,
  50965. 8113,
  50966. 8113,
  50967. 8113,
  50968. 8113,
  50969. 8113,
  50970. 8113,
  50971. 8113,
  50972. 8113,
  50973. 8113,
  50974. 8113,
  50975. 8113,
  50976. 8113,
  50977. 8113,
  50978. 8113,
  50979. 8113,
  50980. 8113,
  50981. 8113,
  50982. 8113,
  50983. 8113,
  50984. 8113,
  50985. 8113,
  50986. 8113,
  50987. 8113,
  50988. 8113,
  50989. 8113,
  50990. 8113,
  50991. 8113,
  50992. 8113,
  50993. 8113,
  50994. 8113,
  50995. 8113,
  50996. 8113,
  50997. 8113,
  50998. 8113,
  50999. 8113,
  51000. 8113,
  51001. 8113,
  51002. 8113,
  51003. 8113,
  51004. 8113,
  51005. 8113,
  51006. 8113,
  51007. 8113,
  51008. 8113,
  51009. 8113,
  51010. 8113,
  51011. 8113,
  51012. 8113,
  51013. 8113,
  51014. 8113,
  51015. 8113,
  51016. 8113,
  51017. 8113,
  51018. 8113,
  51019. 8113,
  51020. 8113,
  51021. 8113,
  51022. 8113,
  51023. 8113,
  51024. 8113,
  51025. 8113,
  51026. 8113,
  51027. 8113,
  51028. 8113,
  51029. 8113,
  51030. 8113,
  51031. 8113,
  51032. 8113,
  51033. 8113,
  51034. 8113,
  51035. 8113,
  51036. 8113,
  51037. 8113,
  51038. 8113,
  51039. 8113,
  51040. 8113,
  51041. 8113,
  51042. 8113,
  51043. 8113,
  51044. 8113,
  51045. 8113,
  51046. 8113,
  51047. 8113,
  51048. 8113,
  51049. 8113,
  51050. 8113,
  51051. 8113,
  51052. 8113,
  51053. 8113,
  51054. 8113,
  51055. 8113,
  51056. 8113,
  51057. 8113,
  51058. 8113,
  51059. 8113,
  51060. 8113,
  51061. 8113,
  51062. 8113,
  51063. 8113,
  51064. 8113,
  51065. 8113,
  51066. 8113,
  51067. 8113,
  51068. 8113,
  51069. 8113,
  51070. 8113,
  51071. 8113,
  51072. 8113,
  51073. 8113,
  51074. 8113,
  51075. 8113,
  51076. 8113,
  51077. 8113,
  51078. 8113,
  51079. 8113,
  51080. 8113,
  51081. 8113,
  51082. 8113,
  51083. 8113,
  51084. 8113,
  51085. 8113,
  51086. 8113,
  51087. 8113,
  51088. 8113,
  51089. 8113,
  51090. 8113,
  51091. 8113,
  51092. 8113,
  51093. 8113,
  51094. 8113,
  51095. 8113,
  51096. 8113,
  51097. 8113,
  51098. 8113,
  51099. 8113,
  51100. 8113,
  51101. 8113,
  51102. 8113,
  51103. 8113,
  51104. 8113,
  51105. 8113,
  51106. 8113,
  51107. 8113,
  51108. 8113,
  51109. 8113,
  51110. 8113,
  51111. 8113,
  51112. 8113,
  51113. 8113,
  51114. 8113,
  51115. 8113,
  51116. 8113,
  51117. 8113,
  51118. 8113,
  51119. 8113,
  51120. 8113,
  51121. 8113,
  51122. 8113,
  51123. 8113,
  51124. 8113,
  51125. 8113,
  51126. 8113,
  51127. 8113,
  51128. 8113,
  51129. 8113,
  51130. 8113,
  51131. 8113,
  51132. 8113,
  51133. 8113,
  51134. 8113,
  51135. 8113,
  51136. 8113,
  51137. 8113,
  51138. 8113,
  51139. 8113,
  51140. 8113,
  51141. 8113,
  51142. 8113,
  51143. 8113,
  51144. 8113,
  51145. 8113,
  51146. 8113,
  51147. 8113,
  51148. 8113,
  51149. 8113,
  51150. 8113,
  51151. 8113,
  51152. 8113,
  51153. 8113,
  51154. 8113,
  51155. 8113,
  51156. 8113,
  51157. 8113,
  51158. 8113,
  51159. 8113,
  51160. 8113,
  51161. 8113,
  51162. 8113,
  51163. 8113,
  51164. 8113,
  51165. 8113,
  51166. 8113,
  51167. 8113,
  51168. 8113,
  51169. 8113,
  51170. 8113,
  51171. 8113,
  51172. 8113,
  51173. 8113,
  51174. 8113,
  51175. 8113,
  51176. 8113,
  51177. 8113,
  51178. 8113,
  51179. 8113,
  51180. 8113,
  51181. 8113,
  51182. 8113,
  51183. 8113,
  51184. 8113,
  51185. 8113,
  51186. 8113,
  51187. 8113,
  51188. 8113,
  51189. 8113,
  51190. 8113,
  51191. 8113,
  51192. 8113,
  51193. 8113,
  51194. 8113,
  51195. 8113,
  51196. 8113,
  51197. 8113,
  51198. 8113,
  51199. 8113,
  51200. 8113,
  51201. 8113,
  51202. 8113,
  51203. 8113,
  51204. 8113,
  51205. 8113,
  51206. 8113,
  51207. 8113,
  51208. 8113,
  51209. 8113,
  51210. 8113,
  51211. 8113,
  51212. 8113,
  51213. 8113,
  51214. 8113,
  51215. 8113,
  51216. 8113,
  51217. 8113,
  51218. 8113,
  51219. 8113,
  51220. 8113,
  51221. 8113,
  51222. 8113,
  51223. 8113,
  51224. 8113,
  51225. 8113,
  51226. 8113,
  51227. 8113,
  51228. 8113,
  51229. 8113,
  51230. 8113,
  51231. 8113,
  51232. 8113,
  51233. 8113,
  51234. 8113,
  51235. 8113,
  51236. 8113,
  51237. 8113,
  51238. 8113,
  51239. 8113,
  51240. 8113,
  51241. 8113,
  51242. 8113,
  51243. 8113,
  51244. 8113,
  51245. 8113,
  51246. 8113,
  51247. 8113,
  51248. 8113,
  51249. 8113,
  51250. 8113,
  51251. 8113,
  51252. 8113,
  51253. 8113,
  51254. 8113,
  51255. 8113,
  51256. 8113,
  51257. 8113,
  51258. 8113,
  51259. 8113,
  51260. 8113,
  51261. 8113,
  51262. 8113,
  51263. 8113,
  51264. 8113,
  51265. 8113,
  51266. 8113,
  51267. 8113,
  51268. 8113,
  51269. 8113,
  51270. 8113,
  51271. 8113,
  51272. 8113,
  51273. 8113,
  51274. 8113,
  51275. 8113,
  51276. 8113,
  51277. 8113,
  51278. 8113,
  51279. 8113,
  51280. 8113,
  51281. 8113,
  51282. 8113,
  51283. 8113,
  51284. 8113,
  51285. 8113,
  51286. 8113,
  51287. 8113,
  51288. 8113,
  51289. 8113,
  51290. 8113,
  51291. 8113,
  51292. 8113,
  51293. 8113,
  51294. 8113,
  51295. 8113,
  51296. 8113,
  51297. 8113,
  51298. 8113,
  51299. 8113,
  51300. 8113,
  51301. 8113,
  51302. 8113,
  51303. 8113,
  51304. 8113,
  51305. 8113,
  51306. 8113,
  51307. 8113,
  51308. 8113,
  51309. 8113,
  51310. 8113,
  51311. 8113,
  51312. 8113,
  51313. 8113,
  51314. 8113,
  51315. 8113,
  51316. 8113,
  51317. 8113,
  51318. 8113,
  51319. 8113,
  51320. 8113,
  51321. 8113,
  51322. 8113,
  51323. 8113,
  51324. 8113,
  51325. 8113,
  51326. 8113,
  51327. 8113,
  51328. 8113,
  51329. 8113,
  51330. 8113,
  51331. 8113,
  51332. 8113,
  51333. 8113,
  51334. 8113,
  51335. 8113,
  51336. 8113,
  51337. 8113,
  51338. 8113,
  51339. 8113,
  51340. 8113,
  51341. 8113,
  51342. 8113,
  51343. 8113,
  51344. 8113,
  51345. 8113,
  51346. 8113,
  51347. 8113,
  51348. 8113,
  51349. 8113,
  51350. 8113,
  51351. 8113,
  51352. 8113,
  51353. 8113,
  51354. 8113,
  51355. 8113,
  51356. 8113,
  51357. 8113,
  51358. 8113,
  51359. 8113,
  51360. 8113,
  51361. 8113,
  51362. 8113,
  51363. 8113,
  51364. 8113,
  51365. 8113,
  51366. 8113,
  51367. 8113,
  51368. 8113,
  51369. 8113,
  51370. 8113,
  51371. 8113,
  51372. 8113,
  51373. 8113,
  51374. 8113,
  51375. 8113,
  51376. 8113,
  51377. 8113,
  51378. 8113,
  51379. 8113,
  51380. 8113,
  51381. 8113,
  51382. 8113,
  51383. 8113,
  51384. 8113,
  51385. 8113,
  51386. 8113,
  51387. 8113,
  51388. 8113,
  51389. 8113,
  51390. 8113,
  51391. 8113,
  51392. 8113,
  51393. 8113,
  51394. 8113,
  51395. 8113,
  51396. 8113,
  51397. 8113,
  51398. 8113,
  51399. 8113,
  51400. 8113,
  51401. 8113,
  51402. 8113,
  51403. 8113,
  51404. 8113,
  51405. 8113,
  51406. 8113,
  51407. 8113,
  51408. 8113,
  51409. 8113,
  51410. 8113,
  51411. 8113,
  51412. 8113,
  51413. 8113,
  51414. 8113,
  51415. 8113,
  51416. 8113,
  51417. 8113,
  51418. 8113,
  51419. 8113,
  51420. 8113,
  51421. 8113,
  51422. 8113,
  51423. 8113,
  51424. 8113,
  51425. 8113,
  51426. 8113,
  51427. 8113,
  51428. 8113,
  51429. 8113,
  51430. 8113,
  51431. 8113,
  51432. 8113,
  51433. 8113,
  51434. 8113,
  51435. 8113,
  51436. 8113,
  51437. 8113,
  51438. 8113,
  51439. 8113,
  51440. 8113,
  51441. 8113,
  51442. 8113,
  51443. 8113,
  51444. 8113,
  51445. 8113,
  51446. 8113,
  51447. 8113,
  51448. 8113,
  51449. 8113,
  51450. 8113,
  51451. 8113,
  51452. 8113,
  51453. 8113,
  51454. 8113,
  51455. 8113,
  51456. 8113,
  51457. 8113,
  51458. 8113,
  51459. 8113,
  51460. 8113,
  51461. 8113,
  51462. 8113,
  51463. 8113,
  51464. 8113,
  51465. 8113,
  51466. 8113,
  51467. 8113,
  51468. 8113,
  51469. 8113,
  51470. 8113,
  51471. 8113,
  51472. 8113,
  51473. 8113,
  51474. 8113,
  51475. 8113,
  51476. 8113,
  51477. 8113,
  51478. 8113,
  51479. 8113,
  51480. 8113,
  51481. 8113,
  51482. 8113,
  51483. 8113,
  51484. 8113,
  51485. 8113,
  51486. 8113,
  51487. 8113,
  51488. 8113,
  51489. 8113,
  51490. 8113,
  51491. 8113,
  51492. 8113,
  51493. 8113,
  51494. 8113,
  51495. 8113,
  51496. 8113,
  51497. 8113,
  51498. 8113,
  51499. 8113,
  51500. 8113,
  51501. 8113,
  51502. 8113,
  51503. 8113,
  51504. 8113,
  51505. 8113,
  51506. 8113,
  51507. 8113,
  51508. 8113,
  51509. 8113,
  51510. 8113,
  51511. 8113,
  51512. 8113,
  51513. 8113,
  51514. 8113,
  51515. 8113,
  51516. 8113,
  51517. 8113,
  51518. 8113,
  51519. 8113,
  51520. 8113,
  51521. 8113,
  51522. 8113,
  51523. 8113,
  51524. 8113,
  51525. 8113,
  51526. 8113,
  51527. 8113,
  51528. 8113,
  51529. 8113,
  51530. 8113,
  51531. 8113,
  51532. 8113,
  51533. 8113,
  51534. 8113,
  51535. 8113,
  51536. 8113,
  51537. 8113,
  51538. 8113,
  51539. 8113,
  51540. 8113,
  51541. 8113,
  51542. 8113,
  51543. 8113,
  51544. 8113,
  51545. 8113,
  51546. 8113,
  51547. 8113,
  51548. 8113,
  51549. 8113,
  51550. 8113,
  51551. 8113,
  51552. 8113,
  51553. 8113,
  51554. 8113,
  51555. 8113,
  51556. 8113,
  51557. 8113,
  51558. 8113,
  51559. 8113,
  51560. 8113,
  51561. 8113,
  51562. 8113,
  51563. 8113,
  51564. 8113,
  51565. 8113,
  51566. 8113,
  51567. 8113,
  51568. 8113,
  51569. 8113,
  51570. 8113,
  51571. 8113,
  51572. 8113,
  51573. 8113,
  51574. 8113,
  51575. 8113,
  51576. 8113,
  51577. 8113,
  51578. 8113,
  51579. 8113,
  51580. 8113,
  51581. 8113,
  51582. 8113,
  51583. 8113,
  51584. 8113,
  51585. 8113,
  51586. 8113,
  51587. 8113,
  51588. 8113,
  51589. 8113,
  51590. 8113,
  51591. 8113,
  51592. 8113,
  51593. 8113,
  51594. 8113,
  51595. 8113,
  51596. 8113,
  51597. 8113,
  51598. 8113,
  51599. 8113,
  51600. 8113,
  51601. 8113,
  51602. 8113,
  51603. 8113,
  51604. 8113,
  51605. 8113,
  51606. 8113,
  51607. 8113,
  51608. 8113,
  51609. 8113,
  51610. 8113,
  51611. 8113,
  51612. 8113,
  51613. 8113,
  51614. 8113,
  51615. 8113,
  51616. 8113,
  51617. 8113,
  51618. 8113,
  51619. 8113,
  51620. 8113,
  51621. 8113,
  51622. 8113,
  51623. 8113,
  51624. 8113,
  51625. 8113,
  51626. 8113,
  51627. 8113,
  51628. 8113,
  51629. 8113,
  51630. 8113,
  51631. 8113,
  51632. 8113,
  51633. 8113,
  51634. 8113,
  51635. 8113,
  51636. 8113,
  51637. 8113,
  51638. 8113,
  51639. 8113,
  51640. 8113,
  51641. 8113,
  51642. 8113,
  51643. 8113,
  51644. 8113,
  51645. 8113,
  51646. 8113,
  51647. 8113,
  51648. 8113,
  51649. 8113,
  51650. 8113,
  51651. 8113,
  51652. 8113,
  51653. 8113,
  51654. 8113,
  51655. 8113,
  51656. 8113,
  51657. 8113,
  51658. 8113,
  51659. 8113,
  51660. 8113,
  51661. 8113,
  51662. 8113,
  51663. 8113,
  51664. 8113,
  51665. 8113,
  51666. 8113,
  51667. 8113,
  51668. 8113,
  51669. 8113,
  51670. 8113,
  51671. 8113,
  51672. 8113,
  51673. 8113,
  51674. 8113,
  51675. 8113,
  51676. 8113,
  51677. 8113,
  51678. 8113,
  51679. 8113,
  51680. 8113,
  51681. 8113,
  51682. 8113,
  51683. 8113,
  51684. 8113,
  51685. 8113,
  51686. 8113,
  51687. 8113,
  51688. 8113,
  51689. 8113,
  51690. 8113,
  51691. 8113,
  51692. 8113,
  51693. 8113,
  51694. 8113,
  51695. 8113,
  51696. 8113,
  51697. 8113,
  51698. 8113,
  51699. 8113,
  51700. 8113,
  51701. 8113,
  51702. 8113,
  51703. 8113,
  51704. 8113,
  51705. 8113,
  51706. 8113,
  51707. 8113,
  51708. 8113,
  51709. 8113,
  51710. 8113,
  51711. 8113,
  51712. 8113,
  51713. 8113,
  51714. 8113,
  51715. 8113,
  51716. 8113,
  51717. 8113,
  51718. 8113,
  51719. 8113,
  51720. 8113,
  51721. 8113,
  51722. 8113,
  51723. 8113,
  51724. 8113,
  51725. 8113,
  51726. 8113,
  51727. 8113,
  51728. 8113,
  51729. 8113,
  51730. 8113,
  51731. 8113,
  51732. 8113,
  51733. 8113,
  51734. 8113,
  51735. 8113,
  51736. 8113,
  51737. 8113,
  51738. 8113,
  51739. 8113,
  51740. 8113,
  51741. 8113,
  51742. 8113,
  51743. 8113,
  51744. 8113,
  51745. 8113,
  51746. 8113,
  51747. 8113,
  51748. 8113,
  51749. 8113,
  51750. 8113,
  51751. 8113,
  51752. 8113,
  51753. 8113,
  51754. 8113,
  51755. 8113,
  51756. 8113,
  51757. 8113,
  51758. 8113,
  51759. 8113,
  51760. 8113,
  51761. 8113,
  51762. 8113,
  51763. 8113,
  51764. 8113,
  51765. 8113,
  51766. 8113,
  51767. 8113,
  51768. 8113,
  51769. 8113,
  51770. 8113,
  51771. 8113,
  51772. 8113,
  51773. 8113,
  51774. 8113,
  51775. 8113,
  51776. 8113,
  51777. 8113,
  51778. 8113,
  51779. 8113,
  51780. 8113,
  51781. 8113,
  51782. 8113,
  51783. 8113,
  51784. 8113,
  51785. 8113,
  51786. 8113,
  51787. 8113,
  51788. 8113,
  51789. 8113,
  51790. 8113,
  51791. 8113,
  51792. 8113,
  51793. 8113,
  51794. 8113,
  51795. 8113,
  51796. 8113,
  51797. 8113,
  51798. 8113,
  51799. 8113,
  51800. 8113,
  51801. 8113,
  51802. 8113,
  51803. 8113,
  51804. 8113,
  51805. 8113,
  51806. 8113,
  51807. 8113,
  51808. 8113,
  51809. 8113,
  51810. 8113,
  51811. 8113,
  51812. 8113,
  51813. 8113,
  51814. 8113,
  51815. 8113,
  51816. 8113,
  51817. 8113,
  51818. 8113,
  51819. 8113,
  51820. 8113,
  51821. 8113,
  51822. 8113,
  51823. 8113,
  51824. 8113,
  51825. 8113,
  51826. 8113,
  51827. 8113,
  51828. 8113,
  51829. 8113,
  51830. 8113,
  51831. 8113,
  51832. 8113,
  51833. 8113,
  51834. 8113,
  51835. 8113,
  51836. 8113,
  51837. 8113,
  51838. 8113,
  51839. 8113,
  51840. 8113,
  51841. 8113,
  51842. 8113,
  51843. 8113,
  51844. 8113,
  51845. 8113,
  51846. 8113,
  51847. 8113,
  51848. 8113,
  51849. 8113,
  51850. 8113,
  51851. 8113,
  51852. 8113,
  51853. 8113,
  51854. 8113,
  51855. 8113,
  51856. 8113,
  51857. 8113,
  51858. 8113,
  51859. 8113,
  51860. 8113,
  51861. 8113,
  51862. 8113,
  51863. 8113,
  51864. 8113,
  51865. 8113,
  51866. 8113,
  51867. 8113,
  51868. 8113,
  51869. 8113,
  51870. 8113,
  51871. 8113,
  51872. 8113,
  51873. 8113,
  51874. 8113,
  51875. 8113,
  51876. 8113,
  51877. 8113,
  51878. 8113,
  51879. 8113,
  51880. 8113,
  51881. 8113,
  51882. 8113,
  51883. 8113,
  51884. 8113,
  51885. 8113,
  51886. 8113,
  51887. 8113,
  51888. 8113,
  51889. 8113,
  51890. 8113,
  51891. 8113,
  51892. 8113,
  51893. 8113,
  51894. 8113,
  51895. 8113,
  51896. 8113,
  51897. 8113,
  51898. 8113,
  51899. 8113,
  51900. 8113,
  51901. 8113,
  51902. 8113,
  51903. 8113,
  51904. 8113,
  51905. 8113,
  51906. 8113,
  51907. 8113,
  51908. 8113,
  51909. 8113,
  51910. 8113,
  51911. 8113,
  51912. 8113,
  51913. 8113,
  51914. 8113,
  51915. 8113,
  51916. 8113,
  51917. 8113,
  51918. 8113,
  51919. 8113,
  51920. 8113,
  51921. 8113,
  51922. 8113,
  51923. 8113,
  51924. 8113,
  51925. 8113,
  51926. 8113,
  51927. 8113,
  51928. 8113,
  51929. 8113,
  51930. 8113,
  51931. 8113,
  51932. 8113,
  51933. 8113,
  51934. 8113,
  51935. 8113,
  51936. 8113,
  51937. 8113,
  51938. 8113,
  51939. 8113,
  51940. 8113,
  51941. 8113,
  51942. 8113,
  51943. 8113,
  51944. 8113,
  51945. 8113,
  51946. 8113,
  51947. 8113,
  51948. 8113,
  51949. 8113,
  51950. 8113,
  51951. 8113,
  51952. 8113,
  51953. 8113,
  51954. 8113,
  51955. 8113,
  51956. 8113,
  51957. 8113,
  51958. 8113,
  51959. 8113,
  51960. 8113,
  51961. 8113,
  51962. 8113,
  51963. 8113,
  51964. 8113,
  51965. 8113,
  51966. 8113,
  51967. 8113,
  51968. 8113,
  51969. 8113,
  51970. 8113,
  51971. 8113,
  51972. 8113,
  51973. 8113,
  51974. 8113,
  51975. 8113,
  51976. 8113,
  51977. 8113,
  51978. 8113,
  51979. 8113,
  51980. 8113,
  51981. 8113,
  51982. 8113,
  51983. 8113,
  51984. 8113,
  51985. 8113,
  51986. 8113,
  51987. 8113,
  51988. 8113,
  51989. 8113,
  51990. 8113,
  51991. 8113,
  51992. 8113,
  51993. 8113,
  51994. 8113,
  51995. 8113,
  51996. 8113,
  51997. 8113,
  51998. 8113,
  51999. 8113,
  52000. 8113,
  52001. 8113,
  52002. 8113,
  52003. 8113,
  52004. 8113,
  52005. 8113,
  52006. 8113,
  52007. 8113,
  52008. 8113,
  52009. 8113,
  52010. 8113,
  52011. 8113,
  52012. 8113,
  52013. 8113,
  52014. 8113,
  52015. 8113,
  52016. 8113,
  52017. 8113,
  52018. 8113,
  52019. 8113,
  52020. 8113,
  52021. 8113,
  52022. 8113,
  52023. 8113,
  52024. 8113,
  52025. 8113,
  52026. 8113,
  52027. 8113,
  52028. 8113,
  52029. 8113,
  52030. 8113,
  52031. 8113,
  52032. 8113,
  52033. 8113,
  52034. 8113,
  52035. 8113,
  52036. 8113,
  52037. 8113,
  52038. 8113,
  52039. 8113,
  52040. 8113,
  52041. 8113,
  52042. 8113,
  52043. 8113,
  52044. 8113,
  52045. 8113,
  52046. 8113,
  52047. 8113,
  52048. 8113,
  52049. 8113,
  52050. 8113,
  52051. 8113,
  52052. 8113,
  52053. 8113,
  52054. 8113,
  52055. 8113,
  52056. 8113,
  52057. 8113,
  52058. 8113,
  52059. 8113,
  52060. 8113,
  52061. 8113,
  52062. 8113,
  52063. 8113,
  52064. 8113,
  52065. 8113,
  52066. 8113,
  52067. 8113,
  52068. 8113,
  52069. 8113,
  52070. 8113,
  52071. 8113,
  52072. 8113,
  52073. 8113,
  52074. 8113,
  52075. 8113,
  52076. 8113,
  52077. 8113,
  52078. 8113,
  52079. 8113,
  52080. 8113,
  52081. 8113,
  52082. 8113,
  52083. 8113,
  52084. 8113,
  52085. 8113,
  52086. 8113,
  52087. 8113,
  52088. 8113,
  52089. 8113,
  52090. 8113,
  52091. 8113,
  52092. 8113,
  52093. 8113,
  52094. 8113,
  52095. 8113,
  52096. 8113,
  52097. 8113,
  52098. 8113,
  52099. 8113,
  52100. 8113,
  52101. 8113,
  52102. 8113,
  52103. 8113,
  52104. 8113,
  52105. 8113,
  52106. 8113,
  52107. 8113,
  52108. 8113,
  52109. 8113,
  52110. 8113,
  52111. 8113,
  52112. 8113,
  52113. 8113,
  52114. 8113,
  52115. 8113,
  52116. 8113,
  52117. 8113,
  52118. 8113,
  52119. 8113,
  52120. 8113,
  52121. 8113,
  52122. 8113,
  52123. 8113,
  52124. 8113,
  52125. 8113,
  52126. 8113,
  52127. 8113,
  52128. 8113,
  52129. 8113,
  52130. 8113,
  52131. 8113,
  52132. 8113,
  52133. 8113,
  52134. 8113,
  52135. 8113,
  52136. 8113,
  52137. 8113,
  52138. 8113,
  52139. 8113,
  52140. 8113,
  52141. 8113,
  52142. 8113,
  52143. 8113,
  52144. 8113,
  52145. 8113,
  52146. 8113,
  52147. 8113,
  52148. 8113,
  52149. 8113,
  52150. 8113,
  52151. 8113,
  52152. 8113,
  52153. 8113,
  52154. 8113,
  52155. 8113,
  52156. 8113,
  52157. 8113,
  52158. 8113,
  52159. 8113,
  52160. 8113,
  52161. 8113,
  52162. 8113,
  52163. 8113,
  52164. 8113,
  52165. 8113,
  52166. 8113,
  52167. 8113,
  52168. 8113,
  52169. 8113,
  52170. 8113,
  52171. 8113,
  52172. 8113,
  52173. 8113,
  52174. 8113,
  52175. 8113,
  52176. 8113,
  52177. 8113,
  52178. 8113,
  52179. 8113,
  52180. 8113,
  52181. 8113,
  52182. 8113,
  52183. 8113,
  52184. 8113,
  52185. 8113,
  52186. 8113,
  52187. 8113,
  52188. 8113,
  52189. 8113,
  52190. 8113,
  52191. 8113,
  52192. 8113,
  52193. 8113,
  52194. 8113,
  52195. 8113,
  52196. 8113,
  52197. 8113,
  52198. 8113,
  52199. 8113,
  52200. 8113,
  52201. 8113,
  52202. 8113,
  52203. 8113,
  52204. 8113,
  52205. 8113,
  52206. 8113,
  52207. 8113,
  52208. 8113,
  52209. 8113,
  52210. 8113,
  52211. 8113,
  52212. 8113,
  52213. 8113,
  52214. 8113,
  52215. 8113,
  52216. 8113,
  52217. 8113,
  52218. 8113,
  52219. 8113,
  52220. 8113,
  52221. 8113,
  52222. 8113,
  52223. 8113,
  52224. 8113,
  52225. 8113,
  52226. 8113,
  52227. 8113,
  52228. 8113,
  52229. 8113,
  52230. 8113,
  52231. 8113,
  52232. 8113,
  52233. 8113,
  52234. 8113,
  52235. 8113,
  52236. 8113,
  52237. 8113,
  52238. 8113,
  52239. 8113,
  52240. 8113,
  52241. 8113,
  52242. 8113,
  52243. 8113,
  52244. 8113,
  52245. 8113,
  52246. 8113,
  52247. 8113,
  52248. 8113,
  52249. 8113,
  52250. 8113,
  52251. 8113,
  52252. 8113,
  52253. 8113,
  52254. 8113,
  52255. 8113,
  52256. 8113,
  52257. 8113,
  52258. 8113,
  52259. 8113,
  52260. 8113,
  52261. 8113,
  52262. 8113,
  52263. 8113,
  52264. 8113,
  52265. 8113,
  52266. 8113,
  52267. 8113,
  52268. 8113,
  52269. 8113,
  52270. 8113,
  52271. 8113,
  52272. 8113,
  52273. 8113,
  52274. 8113,
  52275. 8113,
  52276. 8113,
  52277. 8113,
  52278. 8113,
  52279. 8113,
  52280. 8113,
  52281. 8113,
  52282. 8113,
  52283. 8113,
  52284. 8113,
  52285. 8113,
  52286. 8113,
  52287. 8113,
  52288. 8113,
  52289. 8113,
  52290. 8113,
  52291. 8113,
  52292. 8113,
  52293. 8113,
  52294. 8113,
  52295. 8113,
  52296. 8113,
  52297. 8113,
  52298. 8113,
  52299. 8113,
  52300. 8113,
  52301. 8113,
  52302. 8113,
  52303. 8113,
  52304. 8113,
  52305. 8113,
  52306. 8113,
  52307. 8113,
  52308. 8113,
  52309. 8113,
  52310. 8113,
  52311. 8113,
  52312. 8113,
  52313. 8113,
  52314. 8113,
  52315. 8113,
  52316. 8113,
  52317. 8113,
  52318. 8113,
  52319. 8113,
  52320. 8113,
  52321. 8113,
  52322. 8113,
  52323. 8113,
  52324. 8113,
  52325. 8113,
  52326. 8113,
  52327. 8113,
  52328. 8113,
  52329. 8113,
  52330. 8113,
  52331. 8113,
  52332. 8113,
  52333. 8113,
  52334. 8113,
  52335. 8113,
  52336. 8113,
  52337. 8113,
  52338. 8113,
  52339. 8113,
  52340. 8113,
  52341. 8113,
  52342. 8113,
  52343. 8113,
  52344. 8113,
  52345. 8113,
  52346. 8113,
  52347. 8113,
  52348. 8113,
  52349. 8113,
  52350. 8113,
  52351. 8113,
  52352. 8113,
  52353. 8113,
  52354. 8113,
  52355. 8113,
  52356. 8113,
  52357. 8113,
  52358. 8113,
  52359. 8113,
  52360. 8113,
  52361. 8113,
  52362. 8113,
  52363. 8113,
  52364. 8113,
  52365. 8113,
  52366. 8113,
  52367. 8113,
  52368. 8113,
  52369. 8113,
  52370. 8113,
  52371. 8113,
  52372. 8113,
  52373. 8113,
  52374. 8113,
  52375. 8113,
  52376. 8113,
  52377. 8113,
  52378. 8113,
  52379. 8113,
  52380. 8113,
  52381. 8113,
  52382. 8113,
  52383. 8113,
  52384. 8113,
  52385. 8113,
  52386. 8113,
  52387. 8113,
  52388. 8113,
  52389. 8113,
  52390. 8113,
  52391. 8113,
  52392. 8113,
  52393. 8113,
  52394. 8113,
  52395. 8113,
  52396. 8113,
  52397. 8113,
  52398. 8113,
  52399. 8113,
  52400. 8113,
  52401. 8113,
  52402. 8113,
  52403. 8113,
  52404. 8113,
  52405. 8113,
  52406. 8113,
  52407. 8113,
  52408. 8113,
  52409. 8113,
  52410. 8113,
  52411. 8113,
  52412. 8113,
  52413. 8113,
  52414. 8113,
  52415. 8113,
  52416. 8113,
  52417. 8113,
  52418. 8113,
  52419. 8113,
  52420. 8113,
  52421. 8113,
  52422. 8113,
  52423. 8113,
  52424. 8113,
  52425. 8113,
  52426. 8113,
  52427. 8113,
  52428. 8113,
  52429. 8113,
  52430. 8113,
  52431. 8113,
  52432. 8113,
  52433. 8113,
  52434. 8113,
  52435. 8113,
  52436. 8113,
  52437. 8113,
  52438. 8113,
  52439. 8113,
  52440. 8113,
  52441. 8113,
  52442. 8113,
  52443. 8113,
  52444. 8113,
  52445. 8113,
  52446. 8113,
  52447. 8113,
  52448. 8113,
  52449. 8113,
  52450. 8113,
  52451. 8113,
  52452. 8113,
  52453. 8113,
  52454. 8113,
  52455. 8113,
  52456. 8113,
  52457. 8113,
  52458. 8113,
  52459. 8113,
  52460. 8113,
  52461. 8113,
  52462. 8113,
  52463. 8113,
  52464. 8113,
  52465. 8113,
  52466. 8113,
  52467. 8113,
  52468. 8113,
  52469. 8113,
  52470. 8113,
  52471. 8113,
  52472. 8113,
  52473. 8113,
  52474. 8113,
  52475. 8113,
  52476. 8113,
  52477. 8113,
  52478. 8113,
  52479. 8113,
  52480. 8113,
  52481. 8113,
  52482. 8113,
  52483. 8113,
  52484. 8113,
  52485. 8113,
  52486. 8113,
  52487. 8113,
  52488. 8113,
  52489. 8113,
  52490. 8113,
  52491. 8113,
  52492. 8113,
  52493. 8113,
  52494. 8113,
  52495. 8113,
  52496. 8113,
  52497. 8113,
  52498. 8113,
  52499. 8113,
  52500. 8113,
  52501. 8113,
  52502. 8113,
  52503. 8113,
  52504. 8113,
  52505. 8113,
  52506. 8113,
  52507. 8113,
  52508. 8113,
  52509. 8113,
  52510. 8113,
  52511. 8113,
  52512. 8113,
  52513. 8113,
  52514. 8113,
  52515. 8113,
  52516. 8113,
  52517. 8113,
  52518. 8113,
  52519. 8113,
  52520. 8113,
  52521. 8113,
  52522. 8113,
  52523. 8113,
  52524. 8113,
  52525. 8113,
  52526. 8113,
  52527. 8113,
  52528. 8113,
  52529. 8113,
  52530. 8113,
  52531. 8113,
  52532. 8113,
  52533. 8113,
  52534. 8113,
  52535. 8113,
  52536. 8113,
  52537. 8113,
  52538. 8113,
  52539. 8113,
  52540. 8113,
  52541. 8113,
  52542. 8113,
  52543. 8113,
  52544. 8113,
  52545. 8113,
  52546. 8113,
  52547. 8113,
  52548. 8113,
  52549. 8113,
  52550. 8113,
  52551. 8113,
  52552. 8113,
  52553. 8113,
  52554. 8113,
  52555. 8113,
  52556. 8113,
  52557. 8113,
  52558. 8113,
  52559. 8113,
  52560. 8113,
  52561. 8113,
  52562. 8113,
  52563. 8113,
  52564. 8113,
  52565. 8113,
  52566. 8113,
  52567. 8113,
  52568. 8113,
  52569. 8113,
  52570. 8113,
  52571. 8113,
  52572. 8113,
  52573. 8113,
  52574. 8113,
  52575. 8113,
  52576. 8113,
  52577. 8113,
  52578. 8113,
  52579. 8113,
  52580. 8113,
  52581. 8113,
  52582. 8113,
  52583. 8113,
  52584. 8113,
  52585. 8113,
  52586. 8113,
  52587. 8113,
  52588. 8113,
  52589. 8113,
  52590. 8113,
  52591. 8113,
  52592. 8113,
  52593. 8113,
  52594. 8113,
  52595. 8113,
  52596. 8113,
  52597. 8113,
  52598. 8113,
  52599. 8113,
  52600. 8113,
  52601. 8113,
  52602. 8113,
  52603. 8113,
  52604. 8113,
  52605. 8113,
  52606. 8113,
  52607. 8113,
  52608. 8113,
  52609. 8113,
  52610. 8113,
  52611. 8113,
  52612. 8113,
  52613. 8113,
  52614. 8113,
  52615. 8113,
  52616. 8113,
  52617. 8113,
  52618. 8113,
  52619. 8113,
  52620. 8113,
  52621. 8113,
  52622. 8113,
  52623. 8113,
  52624. 8113,
  52625. 8113,
  52626. 8113,
  52627. 8113,
  52628. 8113,
  52629. 8113,
  52630. 8113,
  52631. 8113,
  52632. 8113,
  52633. 8113,
  52634. 8113,
  52635. 8113,
  52636. 8113,
  52637. 8113,
  52638. 8113,
  52639. 8113,
  52640. 8113,
  52641. 8113,
  52642. 8113,
  52643. 8113,
  52644. 8113,
  52645. 8113,
  52646. 8113,
  52647. 8113,
  52648. 8113,
  52649. 8113,
  52650. 8113,
  52651. 8113,
  52652. 8113,
  52653. 8113,
  52654. 8113,
  52655. 8113,
  52656. 8113,
  52657. 8113,
  52658. 8113,
  52659. 8113,
  52660. 8113,
  52661. 8113,
  52662. 8113,
  52663. 8113,
  52664. 8113,
  52665. 8113,
  52666. 8113,
  52667. 8113,
  52668. 8113,
  52669. 8113,
  52670. 8113,
  52671. 8113,
  52672. 8113,
  52673. 8113,
  52674. 8113,
  52675. 8113,
  52676. 8113,
  52677. 8113,
  52678. 8113,
  52679. 8113,
  52680. 8113,
  52681. 8113,
  52682. 8113,
  52683. 8113,
  52684. 8113,
  52685. 8113,
  52686. 8113,
  52687. 8113,
  52688. 8113,
  52689. 8113,
  52690. 8113,
  52691. 8113,
  52692. 8113,
  52693. 8113,
  52694. 8113,
  52695. 8113,
  52696. 8113,
  52697. 8113,
  52698. 8113,
  52699. 8113,
  52700. 8113,
  52701. 8113,
  52702. 8113,
  52703. 8113,
  52704. 8113,
  52705. 8113,
  52706. 8113,
  52707. 8113,
  52708. 8113,
  52709. 8113,
  52710. 8113,
  52711. 8113,
  52712. 8113,
  52713. 8113,
  52714. 8113,
  52715. 8113,
  52716. 8113,
  52717. 8113,
  52718. 8113,
  52719. 8113,
  52720. 8113,
  52721. 8113,
  52722. 8113,
  52723. 8113,
  52724. 8113,
  52725. 8113,
  52726. 8113,
  52727. 8113,
  52728. 8113,
  52729. 8113,
  52730. 8113,
  52731. 8113,
  52732. 8113,
  52733. 8113,
  52734. 8113,
  52735. 8113,
  52736. 8113,
  52737. 8113,
  52738. 8113,
  52739. 8113,
  52740. 8113,
  52741. 8113,
  52742. 8113,
  52743. 8113,
  52744. 8113,
  52745. 8113,
  52746. 8113,
  52747. 8113,
  52748. 8113,
  52749. 8113,
  52750. 8113,
  52751. 8113,
  52752. 8113,
  52753. 8113,
  52754. 8113,
  52755. 8113,
  52756. 8113,
  52757. 8113,
  52758. 8113,
  52759. 8113,
  52760. 8113,
  52761. 8113,
  52762. 8113,
  52763. 8113,
  52764. 8113,
  52765. 8113,
  52766. 8113,
  52767. 8113,
  52768. 8113,
  52769. 8113,
  52770. 8113,
  52771. 8113,
  52772. 8113,
  52773. 8113,
  52774. 8113,
  52775. 8113,
  52776. 8113,
  52777. 8113,
  52778. 8113,
  52779. 8113,
  52780. 8113,
  52781. 8113,
  52782. 8113,
  52783. 8113,
  52784. 8113,
  52785. 8113,
  52786. 8113,
  52787. 8113,
  52788. 8113,
  52789. 8113,
  52790. 8113,
  52791. 8113,
  52792. 8113,
  52793. 8113,
  52794. 8113,
  52795. 8113,
  52796. 8113,
  52797. 8113,
  52798. 8113,
  52799. 8113,
  52800. 8113,
  52801. 8113,
  52802. 8113,
  52803. 8113,
  52804. 8113,
  52805. 8113,
  52806. 8113,
  52807. 8113,
  52808. 8113,
  52809. 8113,
  52810. 8113,
  52811. 8113,
  52812. 8113,
  52813. 8113,
  52814. 8113,
  52815. 8113,
  52816. 8113,
  52817. 8113,
  52818. 8113,
  52819. 8113,
  52820. 8113,
  52821. 8113,
  52822. 8113,
  52823. 8113,
  52824. 8113,
  52825. 8113,
  52826. 8113,
  52827. 8113,
  52828. 8113,
  52829. 8113,
  52830. 8113,
  52831. 8113,
  52832. 8113,
  52833. 8113,
  52834. 8113,
  52835. 8113,
  52836. 8113,
  52837. 8113,
  52838. 8113,
  52839. 8113,
  52840. 8113,
  52841. 8113,
  52842. 8113,
  52843. 8113,
  52844. 8113,
  52845. 8113,
  52846. 8113,
  52847. 8113,
  52848. 8113,
  52849. 8113,
  52850. 8113,
  52851. 8113,
  52852. 8113,
  52853. 8113,
  52854. 8113,
  52855. 8113,
  52856. 8113,
  52857. 8113,
  52858. 8113,
  52859. 8113,
  52860. 8113,
  52861. 8113,
  52862. 8113,
  52863. 8113,
  52864. 8113,
  52865. 8113,
  52866. 8113,
  52867. 8113,
  52868. 8113,
  52869. 8113,
  52870. 8113,
  52871. 8113,
  52872. 8113,
  52873. 8113,
  52874. 8113,
  52875. 8113,
  52876. 8113,
  52877. 8113,
  52878. 8113,
  52879. 8113,
  52880. 8113,
  52881. 8113,
  52882. 8113,
  52883. 8113,
  52884. 8113,
  52885. 8113,
  52886. 8113,
  52887. 8113,
  52888. 8113,
  52889. 8113,
  52890. 8113,
  52891. 8113,
  52892. 8113,
  52893. 8113,
  52894. 8113,
  52895. 8113,
  52896. 8113,
  52897. 8113,
  52898. 8113,
  52899. 8113,
  52900. 8113,
  52901. 8113,
  52902. 8113,
  52903. 8113,
  52904. 8113,
  52905. 8113,
  52906. 8113,
  52907. 8113,
  52908. 8113,
  52909. 8113,
  52910. 8113,
  52911. 8113,
  52912. 8113,
  52913. 8113,
  52914. 8113,
  52915. 8113,
  52916. 8113,
  52917. 8113,
  52918. 8113,
  52919. 8113,
  52920. 8113,
  52921. 8113,
  52922. 8113,
  52923. 8113,
  52924. 8113,
  52925. 8113,
  52926. 8113,
  52927. 8113,
  52928. 8113,
  52929. 8113,
  52930. 8113,
  52931. 8113,
  52932. 8113,
  52933. 8113,
  52934. 8113,
  52935. 8113,
  52936. 8113,
  52937. 8113,
  52938. 8113,
  52939. 8113,
  52940. 8113,
  52941. 8113,
  52942. 8113,
  52943. 8113,
  52944. 8113,
  52945. 8113,
  52946. 8113,
  52947. 8113,
  52948. 8113,
  52949. 8113,
  52950. 8113,
  52951. 8113,
  52952. 8113,
  52953. 8113,
  52954. 8113,
  52955. 8113,
  52956. 8113,
  52957. 8113,
  52958. 8113,
  52959. 8113,
  52960. 8113,
  52961. 8113,
  52962. 8113,
  52963. 8113,
  52964. 8113,
  52965. 8113,
  52966. 8113,
  52967. 8113,
  52968. 8113,
  52969. 8113,
  52970. 8113,
  52971. 8113,
  52972. 8113,
  52973. 8113,
  52974. 8113,
  52975. 8113,
  52976. 8113,
  52977. 8113,
  52978. 8113,
  52979. 8113,
  52980. 8113,
  52981. 8113,
  52982. 8113,
  52983. 8113,
  52984. 8113,
  52985. 8113,
  52986. 8113,
  52987. 8113,
  52988. 8113,
  52989. 8113,
  52990. 8113,
  52991. 8113,
  52992. 8113,
  52993. 8113,
  52994. 8113,
  52995. 8113,
  52996. 8113,
  52997. 8113,
  52998. 8113,
  52999. 8113,
  53000. 8113,
  53001. 8113,
  53002. 8113,
  53003. 8113,
  53004. 8113,
  53005. 8113,
  53006. 8113,
  53007. 8113,
  53008. 8113,
  53009. 8113,
  53010. 8113,
  53011. 8113,
  53012. 8113,
  53013. 8113,
  53014. 8113,
  53015. 8113,
  53016. 8113,
  53017. 8113,
  53018. 8113,
  53019. 8113,
  53020. 8113,
  53021. 8113,
  53022. 8113,
  53023. 8113,
  53024. 8113,
  53025. 8113,
  53026. 8113,
  53027. 8113,
  53028. 8113,
  53029. 8113,
  53030. 8113,
  53031. 8113,
  53032. 8113,
  53033. 8113,
  53034. 8113,
  53035. 8113,
  53036. 8113,
  53037. 8113,
  53038. 8113,
  53039. 8113,
  53040. 8113,
  53041. 8113,
  53042. 8113,
  53043. 8113,
  53044. 8113,
  53045. 8113,
  53046. 8113,
  53047. 8113,
  53048. 8113,
  53049. 8113,
  53050. 8113,
  53051. 8113,
  53052. 8113,
  53053. 8113,
  53054. 8113,
  53055. 8113,
  53056. 8113,
  53057. 8113,
  53058. 8113,
  53059. 8113,
  53060. 8113,
  53061. 8113,
  53062. 8113,
  53063. 8113,
  53064. 8113,
  53065. 8113,
  53066. 8113,
  53067. 8113,
  53068. 8113,
  53069. 8113,
  53070. 8113,
  53071. 8113,
  53072. 8113,
  53073. 8113,
  53074. 8113,
  53075. 8113,
  53076. 8113,
  53077. 8113,
  53078. 8113,
  53079. 8113,
  53080. 8113,
  53081. 8113,
  53082. 8113,
  53083. 8113,
  53084. 8113,
  53085. 8113,
  53086. 8113,
  53087. 8113,
  53088. 8113,
  53089. 8113,
  53090. 8113,
  53091. 8113,
  53092. 8113,
  53093. 8113,
  53094. 8113,
  53095. 8113,
  53096. 8113,
  53097. 8113,
  53098. 8113,
  53099. 8113,
  53100. 8113,
  53101. 8113,
  53102. 8113,
  53103. 8113,
  53104. 8113,
  53105. 8113,
  53106. 8113,
  53107. 8113,
  53108. 8113,
  53109. 8113,
  53110. 8113,
  53111. 8113,
  53112. 8113,
  53113. 8113,
  53114. 8113,
  53115. 8113,
  53116. 8113,
  53117. 8113,
  53118. 8113,
  53119. 8113,
  53120. 8113,
  53121. 8113,
  53122. 8113,
  53123. 8113,
  53124. 8113,
  53125. 8113,
  53126. 8113,
  53127. 8113,
  53128. 8113,
  53129. 8113,
  53130. 8113,
  53131. 8113,
  53132. 8113,
  53133. 8113,
  53134. 8113,
  53135. 8113,
  53136. 8113,
  53137. 8113,
  53138. 8113,
  53139. 8113,
  53140. 8113,
  53141. 8113,
  53142. 8113,
  53143. 8113,
  53144. 8113,
  53145. 8113,
  53146. 8113,
  53147. 8113,
  53148. 8113,
  53149. 8113,
  53150. 8113,
  53151. 8113,
  53152. 8113,
  53153. 8113,
  53154. 8113,
  53155. 8113,
  53156. 8113,
  53157. 8113,
  53158. 8113,
  53159. 8113,
  53160. 8113,
  53161. 8113,
  53162. 8113,
  53163. 8113,
  53164. 8113,
  53165. 8113,
  53166. 8113,
  53167. 8113,
  53168. 8113,
  53169. 8113,
  53170. 8113,
  53171. 8113,
  53172. 8113,
  53173. 8113,
  53174. 8113,
  53175. 8113,
  53176. 8113,
  53177. 8113,
  53178. 8113,
  53179. 8113,
  53180. 8113,
  53181. 8113,
  53182. 8113,
  53183. 8113,
  53184. 8113,
  53185. 8113,
  53186. 8113,
  53187. 8113,
  53188. 8113,
  53189. 8113,
  53190. 8113,
  53191. 8113,
  53192. 8113,
  53193. 8113,
  53194. 8113,
  53195. 8113,
  53196. 8113,
  53197. 8113,
  53198. 8113,
  53199. 8113,
  53200. 8113,
  53201. 8113,
  53202. 8113,
  53203. 8113,
  53204. 8113,
  53205. 8113,
  53206. 8113,
  53207. 8113,
  53208. 8113,
  53209. 8113,
  53210. 8113,
  53211. 8113,
  53212. 8113,
  53213. 8113,
  53214. 8113,
  53215. 8113,
  53216. 8113,
  53217. 8113,
  53218. 8113,
  53219. 8113,
  53220. 8113,
  53221. 8113,
  53222. 8113,
  53223. 8113,
  53224. 8113,
  53225. 8113,
  53226. 8113,
  53227. 8113,
  53228. 8113,
  53229. 8113,
  53230. 8113,
  53231. 8113,
  53232. 8113,
  53233. 8113,
  53234. 8113,
  53235. 8113,
  53236. 8113,
  53237. 8113,
  53238. 8113,
  53239. 8113,
  53240. 8113,
  53241. 8113,
  53242. 8113,
  53243. 8113,
  53244. 8113,
  53245. 8113,
  53246. 8113,
  53247. 8113,
  53248. 8113,
  53249. 8113,
  53250. 8113,
  53251. 8113,
  53252. 8113,
  53253. 8113,
  53254. 8113,
  53255. 8113,
  53256. 8113,
  53257. 8113,
  53258. 8113,
  53259. 8113,
  53260. 8113,
  53261. 8113,
  53262. 8113,
  53263. 8113,
  53264. 8113,
  53265. 8113,
  53266. 8113,
  53267. 8113,
  53268. 8113,
  53269. 8113,
  53270. 8113,
  53271. 8113,
  53272. 8113,
  53273. 8113,
  53274. 8113,
  53275. 8113,
  53276. 8113,
  53277. 8113,
  53278. 8113,
  53279. 8113,
  53280. 8113,
  53281. 8113,
  53282. 8113,
  53283. 8113,
  53284. 8113,
  53285. 8113,
  53286. 8113,
  53287. 8113,
  53288. 8113,
  53289. 8113,
  53290. 8113,
  53291. 8113,
  53292. 8113,
  53293. 8113,
  53294. 8113,
  53295. 8113,
  53296. 8113,
  53297. 8113,
  53298. 8113,
  53299. 8113,
  53300. 8113,
  53301. 8113,
  53302. 8113,
  53303. 8113,
  53304. 8113,
  53305. 8113,
  53306. 8113,
  53307. 8113,
  53308. 8113,
  53309. 8113,
  53310. 8113,
  53311. 8113,
  53312. 8113,
  53313. 8113,
  53314. 8113,
  53315. 8113,
  53316. 8113,
  53317. 8113,
  53318. 8113,
  53319. 8113,
  53320. 8113,
  53321. 8113,
  53322. 8113,
  53323. 8113,
  53324. 8113,
  53325. 8113,
  53326. 8113,
  53327. 8113,
  53328. 8113,
  53329. 8113,
  53330. 8113,
  53331. 8113,
  53332. 8113,
  53333. 8113,
  53334. 8113,
  53335. 8113,
  53336. 8113,
  53337. 8113,
  53338. 8113,
  53339. 8113,
  53340. 8113,
  53341. 8113,
  53342. 8113,
  53343. 8113,
  53344. 8113,
  53345. 8113,
  53346. 8113,
  53347. 8113,
  53348. 8113,
  53349. 8113,
  53350. 8113,
  53351. 8113,
  53352. 8113,
  53353. 8113,
  53354. 8113,
  53355. 8113,
  53356. 8113,
  53357. 8113,
  53358. 8113,
  53359. 8113,
  53360. 8113,
  53361. 8113,
  53362. 8113,
  53363. 8113,
  53364. 8113,
  53365. 8113,
  53366. 8113,
  53367. 8113,
  53368. 8113,
  53369. 8113,
  53370. 8113,
  53371. 8113,
  53372. 8113,
  53373. 8113,
  53374. 8113,
  53375. 8113,
  53376. 8113,
  53377. 8113,
  53378. 8113,
  53379. 8113,
  53380. 8113,
  53381. 8113,
  53382. 8113,
  53383. 8113,
  53384. 8113,
  53385. 8113,
  53386. 8113,
  53387. 8113,
  53388. 8113,
  53389. 8113,
  53390. 8113,
  53391. 8113,
  53392. 8113,
  53393. 8113,
  53394. 8113,
  53395. 8113,
  53396. 8113,
  53397. 8113,
  53398. 8113,
  53399. 8113,
  53400. 8113,
  53401. 8113,
  53402. 8113,
  53403. 8113,
  53404. 8113,
  53405. 8113,
  53406. 8113,
  53407. 8113,
  53408. 8113,
  53409. 8113,
  53410. 8113,
  53411. 8113,
  53412. 8113,
  53413. 8113,
  53414. 8113,
  53415. 8113,
  53416. 8113,
  53417. 8113,
  53418. 8113,
  53419. 8113,
  53420. 8113,
  53421. 8113,
  53422. 8113,
  53423. 8113,
  53424. 8113,
  53425. 8113,
  53426. 8113,
  53427. 8113,
  53428. 8113,
  53429. 8113,
  53430. 8113,
  53431. 8113,
  53432. 8113,
  53433. 8113,
  53434. 8113,
  53435. 8113,
  53436. 8113,
  53437. 8113,
  53438. 8113,
  53439. 8113,
  53440. 8113,
  53441. 8113,
  53442. 8113,
  53443. 8113,
  53444. 8113,
  53445. 8113,
  53446. 8113,
  53447. 8113,
  53448. 8113,
  53449. 8113,
  53450. 8113,
  53451. 8113,
  53452. 8113,
  53453. 8113,
  53454. 8113,
  53455. 8113,
  53456. 8113,
  53457. 8113,
  53458. 8113,
  53459. 8113,
  53460. 8113,
  53461. 8113,
  53462. 8113,
  53463. 8113,
  53464. 8113,
  53465. 8113,
  53466. 8113,
  53467. 8113,
  53468. 8113,
  53469. 8113,
  53470. 8113,
  53471. 8113,
  53472. 8113,
  53473. 8113,
  53474. 8113,
  53475. 8113,
  53476. 8113,
  53477. 8113,
  53478. 8113,
  53479. 8113,
  53480. 8113,
  53481. 8113,
  53482. 8113,
  53483. 8113,
  53484. 8113,
  53485. 8113,
  53486. 8113,
  53487. 8113,
  53488. 8113,
  53489. 8113,
  53490. 8113,
  53491. 8113,
  53492. 8113,
  53493. 8113,
  53494. 8113,
  53495. 8113,
  53496. 8113,
  53497. 8113,
  53498. 8113,
  53499. 8113,
  53500. 8113,
  53501. 8113,
  53502. 8113,
  53503. 8113,
  53504. 8113,
  53505. 8113,
  53506. 8113,
  53507. 8113,
  53508. 8113,
  53509. 8113,
  53510. 8113,
  53511. 8113,
  53512. 8113,
  53513. 8113,
  53514. 8113,
  53515. 8113,
  53516. 8113,
  53517. 8113,
  53518. 8113,
  53519. 8113,
  53520. 8113,
  53521. 8113,
  53522. 8113,
  53523. 8113,
  53524. 8113,
  53525. 8113,
  53526. 8113,
  53527. 8113,
  53528. 8113,
  53529. 8113,
  53530. 8113,
  53531. 8113,
  53532. 8113,
  53533. 8113,
  53534. 8113,
  53535. 8113,
  53536. 8113,
  53537. 8113,
  53538. 8113,
  53539. 8113,
  53540. 8113,
  53541. 8113,
  53542. 8113,
  53543. 8113,
  53544. 8113,
  53545. 8113,
  53546. 8113,
  53547. 8113,
  53548. 8113,
  53549. 8113,
  53550. 8113,
  53551. 8113,
  53552. 8113,
  53553. 8113,
  53554. 8113,
  53555. 8113,
  53556. 8113,
  53557. 8113,
  53558. 8113,
  53559. 8113,
  53560. 8113,
  53561. 8113,
  53562. 8113,
  53563. 8113,
  53564. 8113,
  53565. 8113,
  53566. 8113,
  53567. 8113,
  53568. 8113,
  53569. 8113,
  53570. 8113,
  53571. 8113,
  53572. 8113,
  53573. 8113,
  53574. 8113,
  53575. 8113,
  53576. 8113,
  53577. 8113,
  53578. 8113,
  53579. 8113,
  53580. 8113,
  53581. 8113,
  53582. 8113,
  53583. 8113,
  53584. 8113,
  53585. 8113,
  53586. 8113,
  53587. 8113,
  53588. 8113,
  53589. 8113,
  53590. 8113,
  53591. 8113,
  53592. 8113,
  53593. 8113,
  53594. 8113,
  53595. 8113,
  53596. 8113,
  53597. 8113,
  53598. 8113,
  53599. 8113,
  53600. 8113,
  53601. 8113,
  53602. 8113,
  53603. 8113,
  53604. 8113,
  53605. 8113,
  53606. 8113,
  53607. 8113,
  53608. 8113,
  53609. 8113,
  53610. 8113,
  53611. 8113,
  53612. 8113,
  53613. 8113,
  53614. 8113,
  53615. 8113,
  53616. 8113,
  53617. 8113,
  53618. 8113,
  53619. 8113,
  53620. 8113,
  53621. 8113,
  53622. 8113,
  53623. 8113,
  53624. 8113,
  53625. 8113,
  53626. 8113,
  53627. 8113,
  53628. 8113,
  53629. 8113,
  53630. 8113,
  53631. 8113,
  53632. 8113,
  53633. 8113,
  53634. 8113,
  53635. 8113,
  53636. 8113,
  53637. 8113,
  53638. 8113,
  53639. 8113,
  53640. 8113,
  53641. 8113,
  53642. 8113,
  53643. 8113,
  53644. 8113,
  53645. 8113,
  53646. 8113,
  53647. 8113,
  53648. 8113,
  53649. 8113,
  53650. 8113,
  53651. 8113,
  53652. 8113,
  53653. 8113,
  53654. 8113,
  53655. 8113,
  53656. 8113,
  53657. 8113,
  53658. 8113,
  53659. 8113,
  53660. 8113,
  53661. 8113,
  53662. 8113,
  53663. 8113,
  53664. 8113,
  53665. 8113,
  53666. 8113,
  53667. 8113,
  53668. 8113,
  53669. 8113,
  53670. 8113,
  53671. 8113,
  53672. 8113,
  53673. 8113,
  53674. 8113,
  53675. 8113,
  53676. 8113,
  53677. 8113,
  53678. 8113,
  53679. 8113,
  53680. 8113,
  53681. 8113,
  53682. 8113,
  53683. 8113,
  53684. 8113,
  53685. 8113,
  53686. 8113,
  53687. 8113,
  53688. 8113,
  53689. 8113,
  53690. 8113,
  53691. 8113,
  53692. 8113,
  53693. 8113,
  53694. 8113,
  53695. 8113,
  53696. 8113,
  53697. 8113,
  53698. 8113,
  53699. 8113,
  53700. 8113,
  53701. 8113,
  53702. 8113,
  53703. 8113,
  53704. 8113,
  53705. 8113,
  53706. 8113,
  53707. 8113,
  53708. 8113,
  53709. 8113,
  53710. 8113,
  53711. 8113,
  53712. 8113,
  53713. 8113,
  53714. 8113,
  53715. 8113,
  53716. 8121,
  53717. 8129,
  53718. 8137,
  53719. 8137,
  53720. 8137,
  53721. 8137,
  53722. 8137,
  53723. 8137,
  53724. 8137,
  53725. 8137,
  53726. 8137,
  53727. 8137,
  53728. 8137,
  53729. 8137,
  53730. 8137,
  53731. 8137,
  53732. 8145,
  53733. 2009,
  53734. 2009,
  53735. 2009,
  53736. 2009,
  53737. 2009,
  53738. 2009,
  53739. 2009,
  53740. 2009,
  53741. 2009,
  53742. 2009,
  53743. 2009,
  53744. 2009,
  53745. 2009,
  53746. 2009,
  53747. 2009,
  53748. 2009,
  53749. 2009,
  53750. 2009,
  53751. 2009,
  53752. 2009,
  53753. 2009,
  53754. 2009,
  53755. 2009,
  53756. 2009,
  53757. 2009,
  53758. 2009,
  53759. 2009,
  53760. 2009,
  53761. 2009,
  53762. 2009,
  53763. 2009,
  53764. 2009,
  53765. 2009,
  53766. 2009,
  53767. 2009,
  53768. 2009,
  53769. 2009,
  53770. 2009,
  53771. 2009,
  53772. 2009,
  53773. 2009,
  53774. 2009,
  53775. 2009,
  53776. 2009,
  53777. 2009,
  53778. 2009,
  53779. 2009,
  53780. 2009,
  53781. 2009,
  53782. 2009,
  53783. 2009,
  53784. 2009,
  53785. 2009,
  53786. 2009,
  53787. 2009,
  53788. 2009,
  53789. 2009,
  53790. 2009,
  53791. 2009,
  53792. 2009,
  53793. 2009,
  53794. 2009,
  53795. 2009,
  53796. 2009,
  53797. 2009,
  53798. 2009,
  53799. 2009,
  53800. 2009,
  53801. 2009,
  53802. 2009,
  53803. 2009,
  53804. 2009,
  53805. 2009,
  53806. 2009,
  53807. 2009,
  53808. 2009,
  53809. 2009,
  53810. 2009,
  53811. 2009,
  53812. 2009,
  53813. 2009,
  53814. 2009,
  53815. 2009,
  53816. 2009,
  53817. 2009,
  53818. 2009,
  53819. 2009,
  53820. 2009,
  53821. 2009,
  53822. 2009,
  53823. 2009,
  53824. 2009,
  53825. 2009,
  53826. 2009,
  53827. 2009,
  53828. 2009,
  53829. 2009,
  53830. 2009,
  53831. 2009,
  53832. 2009,
  53833. 2009,
  53834. 2009,
  53835. 2009,
  53836. 2009,
  53837. 2009,
  53838. 2009,
  53839. 2009,
  53840. 2009,
  53841. 2009,
  53842. 2009,
  53843. 2009,
  53844. 2009,
  53845. 67496,
  53846. 67496,
  53847. 67496,
  53848. 21,
  53849. 21,
  53850. 21,
  53851. 21,
  53852. 21,
  53853. 21,
  53854. 21,
  53855. 21,
  53856. 21,
  53857. 17,
  53858. 34,
  53859. 30,
  53860. 30,
  53861. 33,
  53862. 21,
  53863. 21,
  53864. 21,
  53865. 21,
  53866. 21,
  53867. 21,
  53868. 21,
  53869. 21,
  53870. 21,
  53871. 21,
  53872. 21,
  53873. 21,
  53874. 21,
  53875. 21,
  53876. 21,
  53877. 21,
  53878. 21,
  53879. 21,
  53880. 38,
  53881. 6,
  53882. 3,
  53883. 12,
  53884. 9,
  53885. 10,
  53886. 12,
  53887. 3,
  53888. 0,
  53889. 2,
  53890. 12,
  53891. 9,
  53892. 8,
  53893. 16,
  53894. 8,
  53895. 7,
  53896. 11,
  53897. 11,
  53898. 11,
  53899. 11,
  53900. 11,
  53901. 11,
  53902. 11,
  53903. 11,
  53904. 11,
  53905. 11,
  53906. 8,
  53907. 8,
  53908. 12,
  53909. 12,
  53910. 12,
  53911. 6,
  53912. 12,
  53913. 12,
  53914. 12,
  53915. 12,
  53916. 12,
  53917. 12,
  53918. 12,
  53919. 12,
  53920. 12,
  53921. 12,
  53922. 12,
  53923. 12,
  53924. 12,
  53925. 12,
  53926. 12,
  53927. 12,
  53928. 12,
  53929. 12,
  53930. 12,
  53931. 12,
  53932. 12,
  53933. 12,
  53934. 12,
  53935. 12,
  53936. 12,
  53937. 12,
  53938. 12,
  53939. 0,
  53940. 9,
  53941. 2,
  53942. 12,
  53943. 12,
  53944. 12,
  53945. 12,
  53946. 12,
  53947. 12,
  53948. 12,
  53949. 12,
  53950. 12,
  53951. 12,
  53952. 12,
  53953. 12,
  53954. 12,
  53955. 12,
  53956. 12,
  53957. 12,
  53958. 12,
  53959. 12,
  53960. 12,
  53961. 12,
  53962. 12,
  53963. 12,
  53964. 12,
  53965. 12,
  53966. 12,
  53967. 12,
  53968. 12,
  53969. 12,
  53970. 12,
  53971. 0,
  53972. 17,
  53973. 1,
  53974. 12,
  53975. 21,
  53976. 0,
  53977. 0,
  53978. 0,
  53979. 0,
  53980. 0,
  53981. 0,
  53982. 0,
  53983. 0,
  53984. 0,
  53985. 0,
  53986. 0,
  53987. 0,
  53988. 0,
  53989. 0,
  53990. 0,
  53991. 0,
  53992. 0,
  53993. 0,
  53994. 0,
  53995. 0,
  53996. 0,
  53997. 0,
  53998. 0,
  53999. 0,
  54000. 0,
  54001. 0,
  54002. 0,
  54003. 0,
  54004. 0,
  54005. 0,
  54006. 0,
  54007. 0,
  54008. 0,
  54009. 0,
  54010. 0,
  54011. 0,
  54012. 0,
  54013. 0,
  54014. 0,
  54015. 0,
  54016. 0,
  54017. 0,
  54018. 0,
  54019. 0,
  54020. 0,
  54021. 0,
  54022. 0,
  54023. 0,
  54024. 0,
  54025. 0,
  54026. 0,
  54027. 0,
  54028. 0,
  54029. 0,
  54030. 0,
  54031. 0,
  54032. 0,
  54033. 0,
  54034. 0,
  54035. 0,
  54036. 0,
  54037. 0,
  54038. 0,
  54039. 0,
  54040. 39,
  54041. 39,
  54042. 39,
  54043. 39,
  54044. 39,
  54045. 39,
  54046. 39,
  54047. 39,
  54048. 39,
  54049. 39,
  54050. 39,
  54051. 39,
  54052. 39,
  54053. 39,
  54054. 39,
  54055. 39,
  54056. 39,
  54057. 39,
  54058. 39,
  54059. 39,
  54060. 39,
  54061. 39,
  54062. 39,
  54063. 39,
  54064. 39,
  54065. 39,
  54066. 39,
  54067. 39,
  54068. 39,
  54069. 39,
  54070. 39,
  54071. 39,
  54072. 39,
  54073. 39,
  54074. 39,
  54075. 39,
  54076. 39,
  54077. 39,
  54078. 39,
  54079. 39,
  54080. 39,
  54081. 39,
  54082. 39,
  54083. 39,
  54084. 39,
  54085. 39,
  54086. 39,
  54087. 39,
  54088. 39,
  54089. 39,
  54090. 39,
  54091. 39,
  54092. 39,
  54093. 39,
  54094. 39,
  54095. 39,
  54096. 39,
  54097. 39,
  54098. 39,
  54099. 39,
  54100. 39,
  54101. 39,
  54102. 39,
  54103. 39,
  54104. 21,
  54105. 21,
  54106. 21,
  54107. 21,
  54108. 21,
  54109. 35,
  54110. 21,
  54111. 21,
  54112. 21,
  54113. 21,
  54114. 21,
  54115. 21,
  54116. 21,
  54117. 21,
  54118. 21,
  54119. 21,
  54120. 21,
  54121. 21,
  54122. 21,
  54123. 21,
  54124. 21,
  54125. 21,
  54126. 21,
  54127. 21,
  54128. 21,
  54129. 21,
  54130. 21,
  54131. 21,
  54132. 21,
  54133. 21,
  54134. 21,
  54135. 21,
  54136. 4,
  54137. 0,
  54138. 10,
  54139. 9,
  54140. 9,
  54141. 9,
  54142. 12,
  54143. 29,
  54144. 29,
  54145. 12,
  54146. 29,
  54147. 3,
  54148. 12,
  54149. 17,
  54150. 12,
  54151. 12,
  54152. 10,
  54153. 9,
  54154. 29,
  54155. 29,
  54156. 18,
  54157. 12,
  54158. 29,
  54159. 29,
  54160. 29,
  54161. 29,
  54162. 29,
  54163. 3,
  54164. 29,
  54165. 29,
  54166. 29,
  54167. 0,
  54168. 12,
  54169. 12,
  54170. 12,
  54171. 12,
  54172. 12,
  54173. 12,
  54174. 12,
  54175. 12,
  54176. 12,
  54177. 12,
  54178. 12,
  54179. 12,
  54180. 12,
  54181. 12,
  54182. 12,
  54183. 12,
  54184. 12,
  54185. 12,
  54186. 12,
  54187. 12,
  54188. 12,
  54189. 12,
  54190. 12,
  54191. 29,
  54192. 12,
  54193. 12,
  54194. 12,
  54195. 12,
  54196. 12,
  54197. 12,
  54198. 12,
  54199. 12,
  54200. 12,
  54201. 12,
  54202. 12,
  54203. 12,
  54204. 12,
  54205. 12,
  54206. 12,
  54207. 12,
  54208. 12,
  54209. 12,
  54210. 12,
  54211. 12,
  54212. 12,
  54213. 12,
  54214. 12,
  54215. 12,
  54216. 12,
  54217. 12,
  54218. 12,
  54219. 12,
  54220. 12,
  54221. 12,
  54222. 12,
  54223. 29,
  54224. 12,
  54225. 12,
  54226. 12,
  54227. 12,
  54228. 12,
  54229. 12,
  54230. 12,
  54231. 12,
  54232. 12,
  54233. 12,
  54234. 12,
  54235. 12,
  54236. 12,
  54237. 12,
  54238. 12,
  54239. 12,
  54240. 12,
  54241. 12,
  54242. 12,
  54243. 12,
  54244. 12,
  54245. 12,
  54246. 12,
  54247. 12,
  54248. 12,
  54249. 12,
  54250. 12,
  54251. 12,
  54252. 12,
  54253. 12,
  54254. 12,
  54255. 12,
  54256. 12,
  54257. 12,
  54258. 12,
  54259. 12,
  54260. 12,
  54261. 12,
  54262. 12,
  54263. 12,
  54264. 12,
  54265. 12,
  54266. 12,
  54267. 12,
  54268. 12,
  54269. 12,
  54270. 12,
  54271. 12,
  54272. 12,
  54273. 12,
  54274. 12,
  54275. 12,
  54276. 12,
  54277. 12,
  54278. 12,
  54279. 12,
  54280. 12,
  54281. 12,
  54282. 12,
  54283. 12,
  54284. 12,
  54285. 12,
  54286. 12,
  54287. 12,
  54288. 12,
  54289. 12,
  54290. 12,
  54291. 12,
  54292. 12,
  54293. 12,
  54294. 12,
  54295. 12,
  54296. 12,
  54297. 12,
  54298. 12,
  54299. 12,
  54300. 12,
  54301. 12,
  54302. 12,
  54303. 12,
  54304. 12,
  54305. 12,
  54306. 12,
  54307. 12,
  54308. 12,
  54309. 12,
  54310. 12,
  54311. 12,
  54312. 12,
  54313. 12,
  54314. 12,
  54315. 12,
  54316. 12,
  54317. 12,
  54318. 12,
  54319. 12,
  54320. 12,
  54321. 12,
  54322. 12,
  54323. 12,
  54324. 12,
  54325. 12,
  54326. 12,
  54327. 12,
  54328. 12,
  54329. 12,
  54330. 12,
  54331. 12,
  54332. 12,
  54333. 12,
  54334. 12,
  54335. 12,
  54336. 12,
  54337. 12,
  54338. 12,
  54339. 12,
  54340. 12,
  54341. 12,
  54342. 12,
  54343. 12,
  54344. 12,
  54345. 12,
  54346. 12,
  54347. 12,
  54348. 12,
  54349. 12,
  54350. 12,
  54351. 12,
  54352. 12,
  54353. 12,
  54354. 12,
  54355. 12,
  54356. 12,
  54357. 12,
  54358. 12,
  54359. 12,
  54360. 12,
  54361. 12,
  54362. 12,
  54363. 12,
  54364. 12,
  54365. 12,
  54366. 12,
  54367. 12,
  54368. 12,
  54369. 12,
  54370. 12,
  54371. 12,
  54372. 12,
  54373. 12,
  54374. 12,
  54375. 12,
  54376. 12,
  54377. 12,
  54378. 12,
  54379. 12,
  54380. 12,
  54381. 12,
  54382. 12,
  54383. 12,
  54384. 12,
  54385. 12,
  54386. 12,
  54387. 12,
  54388. 12,
  54389. 12,
  54390. 12,
  54391. 12,
  54392. 12,
  54393. 12,
  54394. 12,
  54395. 12,
  54396. 12,
  54397. 12,
  54398. 12,
  54399. 12,
  54400. 12,
  54401. 12,
  54402. 12,
  54403. 12,
  54404. 12,
  54405. 12,
  54406. 12,
  54407. 12,
  54408. 12,
  54409. 12,
  54410. 12,
  54411. 12,
  54412. 12,
  54413. 12,
  54414. 12,
  54415. 12,
  54416. 12,
  54417. 12,
  54418. 12,
  54419. 12,
  54420. 12,
  54421. 12,
  54422. 12,
  54423. 12,
  54424. 12,
  54425. 12,
  54426. 12,
  54427. 12,
  54428. 12,
  54429. 12,
  54430. 12,
  54431. 12,
  54432. 12,
  54433. 12,
  54434. 12,
  54435. 12,
  54436. 12,
  54437. 12,
  54438. 12,
  54439. 12,
  54440. 12,
  54441. 12,
  54442. 12,
  54443. 12,
  54444. 12,
  54445. 12,
  54446. 12,
  54447. 12,
  54448. 12,
  54449. 12,
  54450. 12,
  54451. 12,
  54452. 12,
  54453. 12,
  54454. 12,
  54455. 12,
  54456. 12,
  54457. 12,
  54458. 12,
  54459. 12,
  54460. 12,
  54461. 12,
  54462. 12,
  54463. 12,
  54464. 12,
  54465. 12,
  54466. 12,
  54467. 12,
  54468. 12,
  54469. 12,
  54470. 12,
  54471. 12,
  54472. 12,
  54473. 12,
  54474. 12,
  54475. 12,
  54476. 12,
  54477. 12,
  54478. 12,
  54479. 12,
  54480. 12,
  54481. 12,
  54482. 12,
  54483. 12,
  54484. 12,
  54485. 12,
  54486. 12,
  54487. 12,
  54488. 12,
  54489. 12,
  54490. 12,
  54491. 12,
  54492. 12,
  54493. 12,
  54494. 12,
  54495. 12,
  54496. 12,
  54497. 12,
  54498. 12,
  54499. 12,
  54500. 12,
  54501. 12,
  54502. 12,
  54503. 12,
  54504. 12,
  54505. 12,
  54506. 12,
  54507. 12,
  54508. 12,
  54509. 12,
  54510. 12,
  54511. 12,
  54512. 12,
  54513. 12,
  54514. 12,
  54515. 12,
  54516. 12,
  54517. 12,
  54518. 12,
  54519. 12,
  54520. 12,
  54521. 12,
  54522. 12,
  54523. 12,
  54524. 12,
  54525. 12,
  54526. 12,
  54527. 12,
  54528. 12,
  54529. 12,
  54530. 12,
  54531. 12,
  54532. 12,
  54533. 12,
  54534. 12,
  54535. 12,
  54536. 12,
  54537. 12,
  54538. 12,
  54539. 12,
  54540. 12,
  54541. 12,
  54542. 12,
  54543. 12,
  54544. 12,
  54545. 12,
  54546. 12,
  54547. 12,
  54548. 12,
  54549. 12,
  54550. 12,
  54551. 12,
  54552. 12,
  54553. 12,
  54554. 12,
  54555. 12,
  54556. 12,
  54557. 12,
  54558. 12,
  54559. 12,
  54560. 12,
  54561. 12,
  54562. 12,
  54563. 12,
  54564. 12,
  54565. 12,
  54566. 12,
  54567. 12,
  54568. 12,
  54569. 12,
  54570. 12,
  54571. 12,
  54572. 12,
  54573. 12,
  54574. 12,
  54575. 12,
  54576. 12,
  54577. 12,
  54578. 12,
  54579. 12,
  54580. 12,
  54581. 12,
  54582. 12,
  54583. 12,
  54584. 12,
  54585. 12,
  54586. 12,
  54587. 12,
  54588. 12,
  54589. 12,
  54590. 12,
  54591. 12,
  54592. 12,
  54593. 12,
  54594. 12,
  54595. 12,
  54596. 12,
  54597. 12,
  54598. 12,
  54599. 12,
  54600. 12,
  54601. 12,
  54602. 12,
  54603. 12,
  54604. 12,
  54605. 12,
  54606. 12,
  54607. 12,
  54608. 12,
  54609. 12,
  54610. 12,
  54611. 12,
  54612. 12,
  54613. 12,
  54614. 12,
  54615. 12,
  54616. 12,
  54617. 12,
  54618. 12,
  54619. 12,
  54620. 12,
  54621. 12,
  54622. 12,
  54623. 12,
  54624. 12,
  54625. 12,
  54626. 12,
  54627. 12,
  54628. 12,
  54629. 12,
  54630. 12,
  54631. 12,
  54632. 12,
  54633. 12,
  54634. 12,
  54635. 12,
  54636. 12,
  54637. 12,
  54638. 12,
  54639. 12,
  54640. 12,
  54641. 12,
  54642. 12,
  54643. 12,
  54644. 12,
  54645. 12,
  54646. 12,
  54647. 12,
  54648. 12,
  54649. 12,
  54650. 12,
  54651. 12,
  54652. 12,
  54653. 12,
  54654. 12,
  54655. 12,
  54656. 12,
  54657. 12,
  54658. 12,
  54659. 12,
  54660. 12,
  54661. 12,
  54662. 12,
  54663. 12,
  54664. 12,
  54665. 12,
  54666. 12,
  54667. 12,
  54668. 12,
  54669. 12,
  54670. 12,
  54671. 12,
  54672. 12,
  54673. 12,
  54674. 12,
  54675. 12,
  54676. 12,
  54677. 12,
  54678. 12,
  54679. 12,
  54680. 12,
  54681. 12,
  54682. 12,
  54683. 12,
  54684. 12,
  54685. 12,
  54686. 12,
  54687. 29,
  54688. 18,
  54689. 29,
  54690. 29,
  54691. 29,
  54692. 18,
  54693. 29,
  54694. 12,
  54695. 12,
  54696. 29,
  54697. 12,
  54698. 12,
  54699. 12,
  54700. 12,
  54701. 12,
  54702. 12,
  54703. 12,
  54704. 29,
  54705. 29,
  54706. 29,
  54707. 29,
  54708. 12,
  54709. 29,
  54710. 12,
  54711. 18,
  54712. 12,
  54713. 12,
  54714. 12,
  54715. 12,
  54716. 12,
  54717. 12,
  54718. 12,
  54719. 12,
  54720. 12,
  54721. 12,
  54722. 12,
  54723. 12,
  54724. 12,
  54725. 12,
  54726. 12,
  54727. 12,
  54728. 12,
  54729. 12,
  54730. 12,
  54731. 12,
  54732. 12,
  54733. 12,
  54734. 12,
  54735. 12,
  54736. 12,
  54737. 12,
  54738. 12,
  54739. 12,
  54740. 12,
  54741. 12,
  54742. 12,
  54743. 12,
  54744. 21,
  54745. 21,
  54746. 21,
  54747. 21,
  54748. 21,
  54749. 21,
  54750. 21,
  54751. 21,
  54752. 21,
  54753. 21,
  54754. 21,
  54755. 21,
  54756. 21,
  54757. 21,
  54758. 21,
  54759. 21,
  54760. 21,
  54761. 21,
  54762. 21,
  54763. 21,
  54764. 21,
  54765. 21,
  54766. 21,
  54767. 21,
  54768. 21,
  54769. 21,
  54770. 21,
  54771. 21,
  54772. 21,
  54773. 21,
  54774. 21,
  54775. 21,
  54776. 21,
  54777. 21,
  54778. 21,
  54779. 21,
  54780. 21,
  54781. 21,
  54782. 21,
  54783. 21,
  54784. 21,
  54785. 21,
  54786. 21,
  54787. 21,
  54788. 21,
  54789. 21,
  54790. 21,
  54791. 21,
  54792. 21,
  54793. 21,
  54794. 21,
  54795. 21,
  54796. 21,
  54797. 21,
  54798. 21,
  54799. 21,
  54800. 21,
  54801. 21,
  54802. 21,
  54803. 21,
  54804. 21,
  54805. 21,
  54806. 21,
  54807. 21,
  54808. 21,
  54809. 21,
  54810. 21,
  54811. 21,
  54812. 21,
  54813. 21,
  54814. 21,
  54815. 21,
  54816. 21,
  54817. 21,
  54818. 21,
  54819. 21,
  54820. 21,
  54821. 21,
  54822. 21,
  54823. 4,
  54824. 21,
  54825. 21,
  54826. 21,
  54827. 21,
  54828. 21,
  54829. 21,
  54830. 21,
  54831. 21,
  54832. 21,
  54833. 21,
  54834. 21,
  54835. 21,
  54836. 4,
  54837. 4,
  54838. 4,
  54839. 4,
  54840. 4,
  54841. 4,
  54842. 4,
  54843. 21,
  54844. 21,
  54845. 21,
  54846. 21,
  54847. 21,
  54848. 21,
  54849. 21,
  54850. 21,
  54851. 21,
  54852. 21,
  54853. 21,
  54854. 21,
  54855. 21,
  54856. 12,
  54857. 12,
  54858. 12,
  54859. 12,
  54860. 12,
  54861. 12,
  54862. 12,
  54863. 12,
  54864. 12,
  54865. 12,
  54866. 12,
  54867. 12,
  54868. 12,
  54869. 12,
  54870. 8,
  54871. 39,
  54872. 39,
  54873. 39,
  54874. 39,
  54875. 39,
  54876. 12,
  54877. 12,
  54878. 12,
  54879. 12,
  54880. 12,
  54881. 12,
  54882. 12,
  54883. 12,
  54884. 12,
  54885. 12,
  54886. 12,
  54887. 12,
  54888. 12,
  54889. 12,
  54890. 12,
  54891. 12,
  54892. 12,
  54893. 12,
  54894. 12,
  54895. 12,
  54896. 12,
  54897. 12,
  54898. 12,
  54899. 12,
  54900. 12,
  54901. 12,
  54902. 12,
  54903. 12,
  54904. 12,
  54905. 12,
  54906. 12,
  54907. 12,
  54908. 12,
  54909. 12,
  54910. 12,
  54911. 12,
  54912. 12,
  54913. 12,
  54914. 12,
  54915. 12,
  54916. 12,
  54917. 12,
  54918. 12,
  54919. 12,
  54920. 12,
  54921. 12,
  54922. 12,
  54923. 12,
  54924. 12,
  54925. 12,
  54926. 12,
  54927. 12,
  54928. 12,
  54929. 12,
  54930. 12,
  54931. 12,
  54932. 12,
  54933. 12,
  54934. 12,
  54935. 12,
  54936. 12,
  54937. 12,
  54938. 12,
  54939. 12,
  54940. 12,
  54941. 12,
  54942. 12,
  54943. 12,
  54944. 12,
  54945. 12,
  54946. 12,
  54947. 12,
  54948. 12,
  54949. 12,
  54950. 12,
  54951. 12,
  54952. 12,
  54953. 12,
  54954. 12,
  54955. 12,
  54956. 12,
  54957. 12,
  54958. 12,
  54959. 12,
  54960. 12,
  54961. 12,
  54962. 12,
  54963. 12,
  54964. 12,
  54965. 12,
  54966. 12,
  54967. 12,
  54968. 12,
  54969. 12,
  54970. 12,
  54971. 12,
  54972. 12,
  54973. 12,
  54974. 12,
  54975. 12,
  54976. 12,
  54977. 12,
  54978. 12,
  54979. 12,
  54980. 12,
  54981. 12,
  54982. 12,
  54983. 12,
  54984. 12,
  54985. 12,
  54986. 12,
  54987. 12,
  54988. 12,
  54989. 12,
  54990. 12,
  54991. 12,
  54992. 12,
  54993. 12,
  54994. 12,
  54995. 12,
  54996. 12,
  54997. 12,
  54998. 12,
  54999. 12,
  55000. 12,
  55001. 12,
  55002. 12,
  55003. 12,
  55004. 12,
  55005. 12,
  55006. 12,
  55007. 12,
  55008. 12,
  55009. 12,
  55010. 12,
  55011. 12,
  55012. 12,
  55013. 12,
  55014. 12,
  55015. 12,
  55016. 12,
  55017. 12,
  55018. 12,
  55019. 12,
  55020. 12,
  55021. 12,
  55022. 12,
  55023. 12,
  55024. 12,
  55025. 12,
  55026. 12,
  55027. 12,
  55028. 12,
  55029. 12,
  55030. 12,
  55031. 12,
  55032. 12,
  55033. 12,
  55034. 12,
  55035. 12,
  55036. 12,
  55037. 12,
  55038. 12,
  55039. 12,
  55040. 12,
  55041. 12,
  55042. 12,
  55043. 12,
  55044. 12,
  55045. 12,
  55046. 12,
  55047. 12,
  55048. 12,
  55049. 12,
  55050. 12,
  55051. 12,
  55052. 12,
  55053. 12,
  55054. 12,
  55055. 12,
  55056. 12,
  55057. 12,
  55058. 12,
  55059. 12,
  55060. 12,
  55061. 12,
  55062. 12,
  55063. 12,
  55064. 12,
  55065. 12,
  55066. 12,
  55067. 12,
  55068. 12,
  55069. 12,
  55070. 12,
  55071. 12,
  55072. 12,
  55073. 12,
  55074. 12,
  55075. 12,
  55076. 12,
  55077. 12,
  55078. 12,
  55079. 12,
  55080. 12,
  55081. 12,
  55082. 12,
  55083. 12,
  55084. 12,
  55085. 12,
  55086. 12,
  55087. 12,
  55088. 12,
  55089. 12,
  55090. 12,
  55091. 12,
  55092. 12,
  55093. 12,
  55094. 12,
  55095. 12,
  55096. 12,
  55097. 12,
  55098. 12,
  55099. 12,
  55100. 12,
  55101. 12,
  55102. 12,
  55103. 12,
  55104. 12,
  55105. 12,
  55106. 12,
  55107. 12,
  55108. 12,
  55109. 12,
  55110. 12,
  55111. 12,
  55112. 12,
  55113. 12,
  55114. 12,
  55115. 12,
  55116. 12,
  55117. 12,
  55118. 12,
  55119. 12,
  55120. 12,
  55121. 12,
  55122. 12,
  55123. 12,
  55124. 12,
  55125. 12,
  55126. 12,
  55127. 12,
  55128. 12,
  55129. 12,
  55130. 12,
  55131. 21,
  55132. 21,
  55133. 21,
  55134. 21,
  55135. 21,
  55136. 21,
  55137. 21,
  55138. 12,
  55139. 12,
  55140. 12,
  55141. 12,
  55142. 12,
  55143. 12,
  55144. 12,
  55145. 12,
  55146. 12,
  55147. 12,
  55148. 12,
  55149. 12,
  55150. 12,
  55151. 12,
  55152. 12,
  55153. 12,
  55154. 12,
  55155. 12,
  55156. 12,
  55157. 12,
  55158. 12,
  55159. 12,
  55160. 12,
  55161. 12,
  55162. 12,
  55163. 12,
  55164. 12,
  55165. 12,
  55166. 12,
  55167. 12,
  55168. 12,
  55169. 12,
  55170. 12,
  55171. 12,
  55172. 12,
  55173. 12,
  55174. 12,
  55175. 12,
  55176. 12,
  55177. 12,
  55178. 12,
  55179. 12,
  55180. 12,
  55181. 12,
  55182. 12,
  55183. 12,
  55184. 12,
  55185. 12,
  55186. 12,
  55187. 12,
  55188. 12,
  55189. 12,
  55190. 12,
  55191. 12,
  55192. 12,
  55193. 12,
  55194. 12,
  55195. 12,
  55196. 12,
  55197. 12,
  55198. 12,
  55199. 12,
  55200. 12,
  55201. 12,
  55202. 12,
  55203. 12,
  55204. 12,
  55205. 12,
  55206. 12,
  55207. 12,
  55208. 12,
  55209. 12,
  55210. 12,
  55211. 12,
  55212. 12,
  55213. 12,
  55214. 12,
  55215. 12,
  55216. 12,
  55217. 12,
  55218. 12,
  55219. 12,
  55220. 12,
  55221. 12,
  55222. 12,
  55223. 12,
  55224. 12,
  55225. 12,
  55226. 12,
  55227. 12,
  55228. 12,
  55229. 12,
  55230. 12,
  55231. 12,
  55232. 12,
  55233. 12,
  55234. 12,
  55235. 12,
  55236. 12,
  55237. 12,
  55238. 12,
  55239. 12,
  55240. 12,
  55241. 12,
  55242. 12,
  55243. 12,
  55244. 12,
  55245. 12,
  55246. 12,
  55247. 12,
  55248. 12,
  55249. 12,
  55250. 12,
  55251. 12,
  55252. 12,
  55253. 12,
  55254. 12,
  55255. 12,
  55256. 12,
  55257. 12,
  55258. 12,
  55259. 12,
  55260. 12,
  55261. 12,
  55262. 12,
  55263. 12,
  55264. 12,
  55265. 12,
  55266. 12,
  55267. 12,
  55268. 12,
  55269. 12,
  55270. 12,
  55271. 12,
  55272. 12,
  55273. 12,
  55274. 12,
  55275. 12,
  55276. 12,
  55277. 12,
  55278. 12,
  55279. 12,
  55280. 12,
  55281. 12,
  55282. 12,
  55283. 12,
  55284. 12,
  55285. 12,
  55286. 12,
  55287. 12,
  55288. 12,
  55289. 12,
  55290. 12,
  55291. 12,
  55292. 12,
  55293. 12,
  55294. 12,
  55295. 12,
  55296. 12,
  55297. 12,
  55298. 12,
  55299. 12,
  55300. 12,
  55301. 12,
  55302. 12,
  55303. 12,
  55304. 12,
  55305. 12,
  55306. 12,
  55307. 12,
  55308. 12,
  55309. 12,
  55310. 12,
  55311. 12,
  55312. 12,
  55313. 12,
  55314. 12,
  55315. 12,
  55316. 12,
  55317. 12,
  55318. 12,
  55319. 12,
  55320. 12,
  55321. 12,
  55322. 12,
  55323. 12,
  55324. 12,
  55325. 12,
  55326. 12,
  55327. 12,
  55328. 12,
  55329. 12,
  55330. 12,
  55331. 12,
  55332. 12,
  55333. 12,
  55334. 12,
  55335. 12,
  55336. 12,
  55337. 12,
  55338. 12,
  55339. 12,
  55340. 12,
  55341. 12,
  55342. 12,
  55343. 12,
  55344. 12,
  55345. 12,
  55346. 12,
  55347. 12,
  55348. 12,
  55349. 12,
  55350. 12,
  55351. 12,
  55352. 12,
  55353. 12,
  55354. 12,
  55355. 12,
  55356. 12,
  55357. 12,
  55358. 12,
  55359. 12,
  55360. 12,
  55361. 12,
  55362. 12,
  55363. 12,
  55364. 12,
  55365. 12,
  55366. 12,
  55367. 12,
  55368. 12,
  55369. 12,
  55370. 12,
  55371. 12,
  55372. 12,
  55373. 12,
  55374. 12,
  55375. 12,
  55376. 12,
  55377. 12,
  55378. 12,
  55379. 12,
  55380. 12,
  55381. 12,
  55382. 12,
  55383. 12,
  55384. 12,
  55385. 12,
  55386. 12,
  55387. 12,
  55388. 12,
  55389. 12,
  55390. 12,
  55391. 12,
  55392. 39,
  55393. 8,
  55394. 17,
  55395. 39,
  55396. 39,
  55397. 39,
  55398. 39,
  55399. 9,
  55400. 39,
  55401. 21,
  55402. 21,
  55403. 21,
  55404. 21,
  55405. 21,
  55406. 21,
  55407. 21,
  55408. 21,
  55409. 21,
  55410. 21,
  55411. 21,
  55412. 21,
  55413. 21,
  55414. 21,
  55415. 21,
  55416. 21,
  55417. 21,
  55418. 21,
  55419. 21,
  55420. 21,
  55421. 21,
  55422. 21,
  55423. 21,
  55424. 21,
  55425. 21,
  55426. 21,
  55427. 21,
  55428. 21,
  55429. 21,
  55430. 21,
  55431. 21,
  55432. 21,
  55433. 21,
  55434. 21,
  55435. 21,
  55436. 21,
  55437. 21,
  55438. 21,
  55439. 21,
  55440. 21,
  55441. 21,
  55442. 21,
  55443. 21,
  55444. 21,
  55445. 21,
  55446. 17,
  55447. 21,
  55448. 12,
  55449. 21,
  55450. 21,
  55451. 12,
  55452. 21,
  55453. 21,
  55454. 6,
  55455. 21,
  55456. 39,
  55457. 39,
  55458. 39,
  55459. 39,
  55460. 39,
  55461. 39,
  55462. 39,
  55463. 39,
  55464. 13,
  55465. 13,
  55466. 13,
  55467. 13,
  55468. 13,
  55469. 13,
  55470. 13,
  55471. 13,
  55472. 13,
  55473. 13,
  55474. 13,
  55475. 13,
  55476. 13,
  55477. 13,
  55478. 13,
  55479. 13,
  55480. 13,
  55481. 13,
  55482. 13,
  55483. 13,
  55484. 13,
  55485. 13,
  55486. 13,
  55487. 13,
  55488. 13,
  55489. 13,
  55490. 13,
  55491. 13,
  55492. 13,
  55493. 13,
  55494. 13,
  55495. 13,
  55496. 13,
  55497. 13,
  55498. 13,
  55499. 12,
  55500. 12,
  55501. 12,
  55502. 12,
  55503. 12,
  55504. 12,
  55505. 12,
  55506. 12,
  55507. 12,
  55508. 12,
  55509. 12,
  55510. 12,
  55511. 12,
  55512. 12,
  55513. 12,
  55514. 12,
  55515. 12,
  55516. 12,
  55517. 12,
  55518. 12,
  55519. 12,
  55520. 12,
  55521. 10,
  55522. 10,
  55523. 10,
  55524. 8,
  55525. 8,
  55526. 12,
  55527. 12,
  55528. 21,
  55529. 21,
  55530. 21,
  55531. 21,
  55532. 21,
  55533. 21,
  55534. 21,
  55535. 21,
  55536. 21,
  55537. 21,
  55538. 21,
  55539. 6,
  55540. 6,
  55541. 6,
  55542. 6,
  55543. 6,
  55544. 12,
  55545. 12,
  55546. 12,
  55547. 12,
  55548. 12,
  55549. 12,
  55550. 12,
  55551. 12,
  55552. 12,
  55553. 12,
  55554. 12,
  55555. 12,
  55556. 12,
  55557. 12,
  55558. 12,
  55559. 12,
  55560. 12,
  55561. 12,
  55562. 12,
  55563. 12,
  55564. 12,
  55565. 12,
  55566. 12,
  55567. 12,
  55568. 12,
  55569. 12,
  55570. 12,
  55571. 12,
  55572. 12,
  55573. 12,
  55574. 12,
  55575. 12,
  55576. 12,
  55577. 12,
  55578. 12,
  55579. 12,
  55580. 12,
  55581. 12,
  55582. 12,
  55583. 12,
  55584. 12,
  55585. 12,
  55586. 12,
  55587. 21,
  55588. 21,
  55589. 21,
  55590. 21,
  55591. 21,
  55592. 21,
  55593. 21,
  55594. 21,
  55595. 21,
  55596. 21,
  55597. 21,
  55598. 21,
  55599. 21,
  55600. 21,
  55601. 21,
  55602. 21,
  55603. 21,
  55604. 21,
  55605. 21,
  55606. 21,
  55607. 21,
  55608. 11,
  55609. 11,
  55610. 11,
  55611. 11,
  55612. 11,
  55613. 11,
  55614. 11,
  55615. 11,
  55616. 11,
  55617. 11,
  55618. 10,
  55619. 11,
  55620. 11,
  55621. 12,
  55622. 12,
  55623. 12,
  55624. 21,
  55625. 12,
  55626. 12,
  55627. 12,
  55628. 12,
  55629. 12,
  55630. 12,
  55631. 12,
  55632. 12,
  55633. 12,
  55634. 12,
  55635. 12,
  55636. 12,
  55637. 12,
  55638. 12,
  55639. 12,
  55640. 12,
  55641. 12,
  55642. 12,
  55643. 12,
  55644. 12,
  55645. 12,
  55646. 12,
  55647. 12,
  55648. 12,
  55649. 12,
  55650. 12,
  55651. 12,
  55652. 12,
  55653. 12,
  55654. 12,
  55655. 12,
  55656. 12,
  55657. 12,
  55658. 12,
  55659. 12,
  55660. 12,
  55661. 12,
  55662. 12,
  55663. 12,
  55664. 12,
  55665. 12,
  55666. 12,
  55667. 12,
  55668. 12,
  55669. 12,
  55670. 12,
  55671. 12,
  55672. 12,
  55673. 12,
  55674. 12,
  55675. 12,
  55676. 12,
  55677. 12,
  55678. 12,
  55679. 12,
  55680. 12,
  55681. 12,
  55682. 12,
  55683. 12,
  55684. 12,
  55685. 12,
  55686. 12,
  55687. 12,
  55688. 12,
  55689. 12,
  55690. 12,
  55691. 12,
  55692. 12,
  55693. 12,
  55694. 12,
  55695. 12,
  55696. 12,
  55697. 12,
  55698. 12,
  55699. 12,
  55700. 12,
  55701. 12,
  55702. 12,
  55703. 12,
  55704. 12,
  55705. 12,
  55706. 12,
  55707. 12,
  55708. 12,
  55709. 12,
  55710. 12,
  55711. 12,
  55712. 12,
  55713. 12,
  55714. 12,
  55715. 12,
  55716. 12,
  55717. 12,
  55718. 12,
  55719. 12,
  55720. 12,
  55721. 12,
  55722. 12,
  55723. 12,
  55724. 6,
  55725. 12,
  55726. 21,
  55727. 21,
  55728. 21,
  55729. 21,
  55730. 21,
  55731. 21,
  55732. 21,
  55733. 12,
  55734. 12,
  55735. 21,
  55736. 21,
  55737. 21,
  55738. 21,
  55739. 21,
  55740. 21,
  55741. 12,
  55742. 12,
  55743. 21,
  55744. 21,
  55745. 12,
  55746. 21,
  55747. 21,
  55748. 21,
  55749. 21,
  55750. 12,
  55751. 12,
  55752. 11,
  55753. 11,
  55754. 11,
  55755. 11,
  55756. 11,
  55757. 11,
  55758. 11,
  55759. 11,
  55760. 11,
  55761. 11,
  55762. 12,
  55763. 12,
  55764. 12,
  55765. 12,
  55766. 12,
  55767. 12,
  55768. 12,
  55769. 12,
  55770. 12,
  55771. 12,
  55772. 12,
  55773. 12,
  55774. 12,
  55775. 12,
  55776. 12,
  55777. 12,
  55778. 12,
  55779. 12,
  55780. 12,
  55781. 12,
  55782. 12,
  55783. 12,
  55784. 12,
  55785. 21,
  55786. 12,
  55787. 12,
  55788. 12,
  55789. 12,
  55790. 12,
  55791. 12,
  55792. 12,
  55793. 12,
  55794. 12,
  55795. 12,
  55796. 12,
  55797. 12,
  55798. 12,
  55799. 12,
  55800. 12,
  55801. 12,
  55802. 12,
  55803. 12,
  55804. 12,
  55805. 12,
  55806. 12,
  55807. 12,
  55808. 12,
  55809. 12,
  55810. 12,
  55811. 12,
  55812. 12,
  55813. 12,
  55814. 12,
  55815. 12,
  55816. 21,
  55817. 21,
  55818. 21,
  55819. 21,
  55820. 21,
  55821. 21,
  55822. 21,
  55823. 21,
  55824. 21,
  55825. 21,
  55826. 21,
  55827. 21,
  55828. 21,
  55829. 21,
  55830. 21,
  55831. 21,
  55832. 21,
  55833. 21,
  55834. 21,
  55835. 21,
  55836. 21,
  55837. 21,
  55838. 21,
  55839. 21,
  55840. 21,
  55841. 21,
  55842. 21,
  55843. 39,
  55844. 39,
  55845. 12,
  55846. 12,
  55847. 12,
  55848. 12,
  55849. 12,
  55850. 12,
  55851. 12,
  55852. 12,
  55853. 12,
  55854. 12,
  55855. 12,
  55856. 12,
  55857. 12,
  55858. 12,
  55859. 12,
  55860. 12,
  55861. 12,
  55862. 12,
  55863. 12,
  55864. 12,
  55865. 12,
  55866. 12,
  55867. 12,
  55868. 12,
  55869. 12,
  55870. 12,
  55871. 12,
  55872. 12,
  55873. 12,
  55874. 12,
  55875. 12,
  55876. 12,
  55877. 12,
  55878. 12,
  55879. 12,
  55880. 12,
  55881. 12,
  55882. 12,
  55883. 12,
  55884. 12,
  55885. 12,
  55886. 12,
  55887. 12,
  55888. 12,
  55889. 12,
  55890. 12,
  55891. 12,
  55892. 12,
  55893. 12,
  55894. 12,
  55895. 12,
  55896. 12,
  55897. 12,
  55898. 12,
  55899. 12,
  55900. 12,
  55901. 12,
  55902. 12,
  55903. 12,
  55904. 12,
  55905. 12,
  55906. 12,
  55907. 12,
  55908. 12,
  55909. 12,
  55910. 12,
  55911. 12,
  55912. 12,
  55913. 12,
  55914. 12,
  55915. 12,
  55916. 12,
  55917. 12,
  55918. 12,
  55919. 12,
  55920. 12,
  55921. 12,
  55922. 12,
  55923. 12,
  55924. 12,
  55925. 12,
  55926. 12,
  55927. 12,
  55928. 12,
  55929. 12,
  55930. 12,
  55931. 12,
  55932. 12,
  55933. 12,
  55934. 21,
  55935. 21,
  55936. 21,
  55937. 21,
  55938. 21,
  55939. 21,
  55940. 21,
  55941. 21,
  55942. 21,
  55943. 21,
  55944. 21,
  55945. 12,
  55946. 39,
  55947. 39,
  55948. 39,
  55949. 39,
  55950. 39,
  55951. 39,
  55952. 39,
  55953. 39,
  55954. 39,
  55955. 39,
  55956. 39,
  55957. 39,
  55958. 39,
  55959. 39,
  55960. 11,
  55961. 11,
  55962. 11,
  55963. 11,
  55964. 11,
  55965. 11,
  55966. 11,
  55967. 11,
  55968. 11,
  55969. 11,
  55970. 12,
  55971. 12,
  55972. 12,
  55973. 12,
  55974. 12,
  55975. 12,
  55976. 12,
  55977. 12,
  55978. 12,
  55979. 12,
  55980. 12,
  55981. 12,
  55982. 12,
  55983. 12,
  55984. 12,
  55985. 12,
  55986. 12,
  55987. 12,
  55988. 12,
  55989. 12,
  55990. 12,
  55991. 12,
  55992. 12,
  55993. 12,
  55994. 12,
  55995. 12,
  55996. 12,
  55997. 12,
  55998. 12,
  55999. 12,
  56000. 12,
  56001. 12,
  56002. 12,
  56003. 21,
  56004. 21,
  56005. 21,
  56006. 21,
  56007. 21,
  56008. 21,
  56009. 21,
  56010. 21,
  56011. 21,
  56012. 12,
  56013. 12,
  56014. 12,
  56015. 12,
  56016. 8,
  56017. 6,
  56018. 12,
  56019. 12,
  56020. 12,
  56021. 12,
  56022. 12,
  56023. 12,
  56024. 12,
  56025. 12,
  56026. 12,
  56027. 12,
  56028. 12,
  56029. 12,
  56030. 12,
  56031. 12,
  56032. 12,
  56033. 12,
  56034. 12,
  56035. 12,
  56036. 12,
  56037. 12,
  56038. 12,
  56039. 12,
  56040. 12,
  56041. 12,
  56042. 12,
  56043. 12,
  56044. 12,
  56045. 12,
  56046. 21,
  56047. 21,
  56048. 21,
  56049. 21,
  56050. 12,
  56051. 21,
  56052. 21,
  56053. 21,
  56054. 21,
  56055. 21,
  56056. 21,
  56057. 21,
  56058. 21,
  56059. 21,
  56060. 12,
  56061. 21,
  56062. 21,
  56063. 21,
  56064. 12,
  56065. 21,
  56066. 21,
  56067. 21,
  56068. 21,
  56069. 21,
  56070. 39,
  56071. 39,
  56072. 12,
  56073. 12,
  56074. 12,
  56075. 12,
  56076. 12,
  56077. 12,
  56078. 12,
  56079. 12,
  56080. 12,
  56081. 12,
  56082. 12,
  56083. 12,
  56084. 12,
  56085. 12,
  56086. 12,
  56087. 12,
  56088. 12,
  56089. 12,
  56090. 12,
  56091. 12,
  56092. 12,
  56093. 12,
  56094. 12,
  56095. 12,
  56096. 12,
  56097. 12,
  56098. 12,
  56099. 12,
  56100. 12,
  56101. 12,
  56102. 12,
  56103. 12,
  56104. 12,
  56105. 12,
  56106. 12,
  56107. 12,
  56108. 12,
  56109. 12,
  56110. 12,
  56111. 12,
  56112. 12,
  56113. 21,
  56114. 21,
  56115. 21,
  56116. 39,
  56117. 39,
  56118. 12,
  56119. 12,
  56120. 12,
  56121. 12,
  56122. 12,
  56123. 12,
  56124. 12,
  56125. 12,
  56126. 12,
  56127. 12,
  56128. 12,
  56129. 12,
  56130. 12,
  56131. 12,
  56132. 12,
  56133. 12,
  56134. 12,
  56135. 12,
  56136. 12,
  56137. 12,
  56138. 12,
  56139. 12,
  56140. 12,
  56141. 12,
  56142. 12,
  56143. 12,
  56144. 12,
  56145. 12,
  56146. 12,
  56147. 12,
  56148. 12,
  56149. 12,
  56150. 12,
  56151. 12,
  56152. 12,
  56153. 12,
  56154. 12,
  56155. 12,
  56156. 12,
  56157. 12,
  56158. 12,
  56159. 12,
  56160. 12,
  56161. 12,
  56162. 12,
  56163. 12,
  56164. 12,
  56165. 39,
  56166. 39,
  56167. 39,
  56168. 39,
  56169. 39,
  56170. 39,
  56171. 39,
  56172. 39,
  56173. 39,
  56174. 39,
  56175. 39,
  56176. 39,
  56177. 39,
  56178. 39,
  56179. 39,
  56180. 39,
  56181. 39,
  56182. 39,
  56183. 39,
  56184. 39,
  56185. 39,
  56186. 39,
  56187. 39,
  56188. 21,
  56189. 21,
  56190. 21,
  56191. 21,
  56192. 21,
  56193. 21,
  56194. 21,
  56195. 21,
  56196. 21,
  56197. 21,
  56198. 21,
  56199. 21,
  56200. 21,
  56201. 21,
  56202. 21,
  56203. 21,
  56204. 21,
  56205. 21,
  56206. 21,
  56207. 21,
  56208. 21,
  56209. 21,
  56210. 21,
  56211. 21,
  56212. 21,
  56213. 21,
  56214. 21,
  56215. 21,
  56216. 21,
  56217. 21,
  56218. 21,
  56219. 21,
  56220. 12,
  56221. 12,
  56222. 12,
  56223. 12,
  56224. 12,
  56225. 12,
  56226. 12,
  56227. 12,
  56228. 12,
  56229. 12,
  56230. 12,
  56231. 12,
  56232. 12,
  56233. 12,
  56234. 12,
  56235. 12,
  56236. 12,
  56237. 12,
  56238. 12,
  56239. 12,
  56240. 12,
  56241. 12,
  56242. 12,
  56243. 12,
  56244. 12,
  56245. 12,
  56246. 12,
  56247. 12,
  56248. 12,
  56249. 12,
  56250. 12,
  56251. 12,
  56252. 12,
  56253. 12,
  56254. 12,
  56255. 12,
  56256. 12,
  56257. 12,
  56258. 12,
  56259. 12,
  56260. 12,
  56261. 12,
  56262. 12,
  56263. 12,
  56264. 12,
  56265. 12,
  56266. 12,
  56267. 12,
  56268. 12,
  56269. 12,
  56270. 12,
  56271. 12,
  56272. 12,
  56273. 12,
  56274. 21,
  56275. 21,
  56276. 21,
  56277. 12,
  56278. 21,
  56279. 21,
  56280. 21,
  56281. 21,
  56282. 21,
  56283. 21,
  56284. 21,
  56285. 21,
  56286. 21,
  56287. 21,
  56288. 21,
  56289. 21,
  56290. 21,
  56291. 21,
  56292. 21,
  56293. 21,
  56294. 21,
  56295. 21,
  56296. 12,
  56297. 21,
  56298. 21,
  56299. 21,
  56300. 21,
  56301. 21,
  56302. 21,
  56303. 21,
  56304. 12,
  56305. 12,
  56306. 12,
  56307. 12,
  56308. 12,
  56309. 12,
  56310. 12,
  56311. 12,
  56312. 12,
  56313. 12,
  56314. 21,
  56315. 21,
  56316. 17,
  56317. 17,
  56318. 11,
  56319. 11,
  56320. 11,
  56321. 11,
  56322. 11,
  56323. 11,
  56324. 11,
  56325. 11,
  56326. 11,
  56327. 11,
  56328. 12,
  56329. 12,
  56330. 12,
  56331. 12,
  56332. 12,
  56333. 12,
  56334. 12,
  56335. 12,
  56336. 12,
  56337. 12,
  56338. 12,
  56339. 12,
  56340. 12,
  56341. 12,
  56342. 12,
  56343. 12,
  56344. 39,
  56345. 21,
  56346. 21,
  56347. 21,
  56348. 39,
  56349. 12,
  56350. 12,
  56351. 12,
  56352. 12,
  56353. 12,
  56354. 12,
  56355. 12,
  56356. 12,
  56357. 12,
  56358. 12,
  56359. 12,
  56360. 12,
  56361. 12,
  56362. 12,
  56363. 12,
  56364. 12,
  56365. 12,
  56366. 12,
  56367. 12,
  56368. 12,
  56369. 12,
  56370. 12,
  56371. 12,
  56372. 12,
  56373. 12,
  56374. 12,
  56375. 12,
  56376. 12,
  56377. 12,
  56378. 12,
  56379. 12,
  56380. 12,
  56381. 12,
  56382. 12,
  56383. 12,
  56384. 12,
  56385. 12,
  56386. 12,
  56387. 12,
  56388. 12,
  56389. 12,
  56390. 12,
  56391. 12,
  56392. 12,
  56393. 12,
  56394. 12,
  56395. 12,
  56396. 12,
  56397. 12,
  56398. 12,
  56399. 12,
  56400. 12,
  56401. 12,
  56402. 39,
  56403. 39,
  56404. 21,
  56405. 12,
  56406. 21,
  56407. 21,
  56408. 21,
  56409. 21,
  56410. 21,
  56411. 21,
  56412. 21,
  56413. 21,
  56414. 21,
  56415. 21,
  56416. 21,
  56417. 21,
  56418. 21,
  56419. 21,
  56420. 21,
  56421. 21,
  56422. 12,
  56423. 39,
  56424. 39,
  56425. 39,
  56426. 39,
  56427. 39,
  56428. 39,
  56429. 39,
  56430. 39,
  56431. 21,
  56432. 39,
  56433. 39,
  56434. 39,
  56435. 39,
  56436. 12,
  56437. 12,
  56438. 12,
  56439. 12,
  56440. 12,
  56441. 12,
  56442. 21,
  56443. 21,
  56444. 39,
  56445. 39,
  56446. 11,
  56447. 11,
  56448. 11,
  56449. 11,
  56450. 11,
  56451. 11,
  56452. 11,
  56453. 11,
  56454. 11,
  56455. 11,
  56456. 12,
  56457. 12,
  56458. 10,
  56459. 10,
  56460. 12,
  56461. 12,
  56462. 12,
  56463. 12,
  56464. 12,
  56465. 10,
  56466. 12,
  56467. 9,
  56468. 39,
  56469. 39,
  56470. 39,
  56471. 39,
  56472. 39,
  56473. 21,
  56474. 21,
  56475. 21,
  56476. 39,
  56477. 12,
  56478. 12,
  56479. 12,
  56480. 12,
  56481. 12,
  56482. 12,
  56483. 12,
  56484. 12,
  56485. 12,
  56486. 12,
  56487. 12,
  56488. 12,
  56489. 12,
  56490. 12,
  56491. 12,
  56492. 12,
  56493. 12,
  56494. 12,
  56495. 12,
  56496. 12,
  56497. 12,
  56498. 12,
  56499. 12,
  56500. 12,
  56501. 12,
  56502. 12,
  56503. 12,
  56504. 12,
  56505. 12,
  56506. 12,
  56507. 12,
  56508. 12,
  56509. 12,
  56510. 12,
  56511. 12,
  56512. 12,
  56513. 12,
  56514. 12,
  56515. 12,
  56516. 12,
  56517. 12,
  56518. 12,
  56519. 12,
  56520. 12,
  56521. 12,
  56522. 12,
  56523. 12,
  56524. 12,
  56525. 12,
  56526. 12,
  56527. 12,
  56528. 12,
  56529. 12,
  56530. 39,
  56531. 39,
  56532. 21,
  56533. 21,
  56534. 21,
  56535. 21,
  56536. 21,
  56537. 21,
  56538. 21,
  56539. 21,
  56540. 21,
  56541. 21,
  56542. 21,
  56543. 21,
  56544. 21,
  56545. 21,
  56546. 21,
  56547. 21,
  56548. 21,
  56549. 21,
  56550. 21,
  56551. 21,
  56552. 21,
  56553. 21,
  56554. 39,
  56555. 39,
  56556. 39,
  56557. 39,
  56558. 39,
  56559. 39,
  56560. 39,
  56561. 12,
  56562. 12,
  56563. 12,
  56564. 12,
  56565. 12,
  56566. 12,
  56567. 39,
  56568. 39,
  56569. 39,
  56570. 39,
  56571. 39,
  56572. 39,
  56573. 39,
  56574. 11,
  56575. 11,
  56576. 11,
  56577. 11,
  56578. 11,
  56579. 11,
  56580. 11,
  56581. 11,
  56582. 11,
  56583. 11,
  56584. 21,
  56585. 21,
  56586. 12,
  56587. 12,
  56588. 12,
  56589. 21,
  56590. 21,
  56591. 21,
  56592. 21,
  56593. 21,
  56594. 21,
  56595. 21,
  56596. 21,
  56597. 21,
  56598. 21,
  56599. 21,
  56600. 21,
  56601. 21,
  56602. 21,
  56603. 21,
  56604. 39,
  56605. 12,
  56606. 12,
  56607. 12,
  56608. 12,
  56609. 12,
  56610. 12,
  56611. 12,
  56612. 12,
  56613. 12,
  56614. 12,
  56615. 12,
  56616. 12,
  56617. 12,
  56618. 12,
  56619. 12,
  56620. 12,
  56621. 12,
  56622. 12,
  56623. 12,
  56624. 12,
  56625. 12,
  56626. 12,
  56627. 12,
  56628. 12,
  56629. 12,
  56630. 12,
  56631. 12,
  56632. 12,
  56633. 12,
  56634. 12,
  56635. 12,
  56636. 12,
  56637. 12,
  56638. 12,
  56639. 12,
  56640. 12,
  56641. 12,
  56642. 12,
  56643. 12,
  56644. 12,
  56645. 12,
  56646. 12,
  56647. 12,
  56648. 12,
  56649. 12,
  56650. 12,
  56651. 12,
  56652. 12,
  56653. 12,
  56654. 12,
  56655. 12,
  56656. 12,
  56657. 12,
  56658. 39,
  56659. 39,
  56660. 21,
  56661. 12,
  56662. 21,
  56663. 21,
  56664. 21,
  56665. 21,
  56666. 21,
  56667. 21,
  56668. 21,
  56669. 21,
  56670. 21,
  56671. 21,
  56672. 21,
  56673. 21,
  56674. 21,
  56675. 21,
  56676. 21,
  56677. 21,
  56678. 39,
  56679. 39,
  56680. 12,
  56681. 12,
  56682. 12,
  56683. 12,
  56684. 12,
  56685. 12,
  56686. 12,
  56687. 12,
  56688. 12,
  56689. 12,
  56690. 12,
  56691. 12,
  56692. 12,
  56693. 12,
  56694. 12,
  56695. 12,
  56696. 12,
  56697. 12,
  56698. 21,
  56699. 21,
  56700. 39,
  56701. 39,
  56702. 11,
  56703. 11,
  56704. 11,
  56705. 11,
  56706. 11,
  56707. 11,
  56708. 11,
  56709. 11,
  56710. 11,
  56711. 11,
  56712. 12,
  56713. 9,
  56714. 39,
  56715. 39,
  56716. 39,
  56717. 39,
  56718. 39,
  56719. 39,
  56720. 39,
  56721. 39,
  56722. 39,
  56723. 39,
  56724. 39,
  56725. 39,
  56726. 39,
  56727. 39,
  56728. 39,
  56729. 21,
  56730. 21,
  56731. 21,
  56732. 39,
  56733. 12,
  56734. 12,
  56735. 12,
  56736. 12,
  56737. 12,
  56738. 12,
  56739. 12,
  56740. 12,
  56741. 12,
  56742. 12,
  56743. 12,
  56744. 12,
  56745. 12,
  56746. 12,
  56747. 12,
  56748. 12,
  56749. 12,
  56750. 12,
  56751. 12,
  56752. 12,
  56753. 12,
  56754. 12,
  56755. 12,
  56756. 12,
  56757. 12,
  56758. 12,
  56759. 12,
  56760. 12,
  56761. 12,
  56762. 12,
  56763. 12,
  56764. 12,
  56765. 12,
  56766. 12,
  56767. 12,
  56768. 12,
  56769. 12,
  56770. 12,
  56771. 12,
  56772. 12,
  56773. 12,
  56774. 12,
  56775. 12,
  56776. 12,
  56777. 12,
  56778. 12,
  56779. 12,
  56780. 12,
  56781. 12,
  56782. 12,
  56783. 12,
  56784. 12,
  56785. 12,
  56786. 39,
  56787. 39,
  56788. 21,
  56789. 12,
  56790. 21,
  56791. 21,
  56792. 21,
  56793. 21,
  56794. 21,
  56795. 21,
  56796. 21,
  56797. 21,
  56798. 21,
  56799. 21,
  56800. 21,
  56801. 21,
  56802. 21,
  56803. 21,
  56804. 21,
  56805. 21,
  56806. 21,
  56807. 21,
  56808. 21,
  56809. 21,
  56810. 21,
  56811. 21,
  56812. 21,
  56813. 21,
  56814. 21,
  56815. 21,
  56816. 39,
  56817. 39,
  56818. 39,
  56819. 39,
  56820. 12,
  56821. 12,
  56822. 12,
  56823. 12,
  56824. 12,
  56825. 12,
  56826. 21,
  56827. 21,
  56828. 39,
  56829. 39,
  56830. 11,
  56831. 11,
  56832. 11,
  56833. 11,
  56834. 11,
  56835. 11,
  56836. 11,
  56837. 11,
  56838. 11,
  56839. 11,
  56840. 12,
  56841. 12,
  56842. 12,
  56843. 12,
  56844. 12,
  56845. 12,
  56846. 12,
  56847. 12,
  56848. 39,
  56849. 39,
  56850. 39,
  56851. 39,
  56852. 39,
  56853. 39,
  56854. 39,
  56855. 39,
  56856. 39,
  56857. 39,
  56858. 21,
  56859. 12,
  56860. 12,
  56861. 12,
  56862. 12,
  56863. 12,
  56864. 12,
  56865. 12,
  56866. 12,
  56867. 12,
  56868. 12,
  56869. 12,
  56870. 12,
  56871. 12,
  56872. 12,
  56873. 12,
  56874. 12,
  56875. 12,
  56876. 12,
  56877. 12,
  56878. 12,
  56879. 12,
  56880. 12,
  56881. 12,
  56882. 12,
  56883. 12,
  56884. 12,
  56885. 12,
  56886. 12,
  56887. 12,
  56888. 12,
  56889. 12,
  56890. 12,
  56891. 12,
  56892. 12,
  56893. 12,
  56894. 12,
  56895. 12,
  56896. 12,
  56897. 12,
  56898. 12,
  56899. 12,
  56900. 12,
  56901. 12,
  56902. 12,
  56903. 12,
  56904. 12,
  56905. 12,
  56906. 12,
  56907. 12,
  56908. 12,
  56909. 12,
  56910. 12,
  56911. 12,
  56912. 12,
  56913. 12,
  56914. 39,
  56915. 39,
  56916. 39,
  56917. 39,
  56918. 21,
  56919. 21,
  56920. 21,
  56921. 21,
  56922. 21,
  56923. 21,
  56924. 21,
  56925. 21,
  56926. 21,
  56927. 21,
  56928. 21,
  56929. 21,
  56930. 21,
  56931. 21,
  56932. 21,
  56933. 21,
  56934. 39,
  56935. 39,
  56936. 12,
  56937. 39,
  56938. 39,
  56939. 39,
  56940. 39,
  56941. 39,
  56942. 39,
  56943. 21,
  56944. 39,
  56945. 39,
  56946. 39,
  56947. 39,
  56948. 39,
  56949. 39,
  56950. 39,
  56951. 39,
  56952. 39,
  56953. 39,
  56954. 39,
  56955. 39,
  56956. 39,
  56957. 39,
  56958. 11,
  56959. 11,
  56960. 11,
  56961. 11,
  56962. 11,
  56963. 11,
  56964. 11,
  56965. 11,
  56966. 11,
  56967. 11,
  56968. 12,
  56969. 12,
  56970. 12,
  56971. 12,
  56972. 12,
  56973. 12,
  56974. 12,
  56975. 12,
  56976. 12,
  56977. 9,
  56978. 12,
  56979. 39,
  56980. 39,
  56981. 39,
  56982. 39,
  56983. 39,
  56984. 39,
  56985. 21,
  56986. 21,
  56987. 21,
  56988. 39,
  56989. 12,
  56990. 12,
  56991. 12,
  56992. 12,
  56993. 12,
  56994. 12,
  56995. 12,
  56996. 12,
  56997. 12,
  56998. 12,
  56999. 12,
  57000. 12,
  57001. 12,
  57002. 12,
  57003. 12,
  57004. 12,
  57005. 12,
  57006. 12,
  57007. 12,
  57008. 12,
  57009. 12,
  57010. 12,
  57011. 12,
  57012. 12,
  57013. 12,
  57014. 12,
  57015. 12,
  57016. 12,
  57017. 12,
  57018. 12,
  57019. 12,
  57020. 12,
  57021. 12,
  57022. 12,
  57023. 12,
  57024. 12,
  57025. 12,
  57026. 12,
  57027. 12,
  57028. 12,
  57029. 12,
  57030. 12,
  57031. 12,
  57032. 12,
  57033. 12,
  57034. 12,
  57035. 12,
  57036. 12,
  57037. 12,
  57038. 12,
  57039. 12,
  57040. 12,
  57041. 12,
  57042. 12,
  57043. 12,
  57044. 12,
  57045. 12,
  57046. 21,
  57047. 21,
  57048. 21,
  57049. 21,
  57050. 21,
  57051. 21,
  57052. 21,
  57053. 21,
  57054. 21,
  57055. 21,
  57056. 21,
  57057. 21,
  57058. 21,
  57059. 21,
  57060. 21,
  57061. 21,
  57062. 21,
  57063. 21,
  57064. 21,
  57065. 21,
  57066. 21,
  57067. 21,
  57068. 21,
  57069. 21,
  57070. 21,
  57071. 39,
  57072. 12,
  57073. 12,
  57074. 12,
  57075. 12,
  57076. 12,
  57077. 12,
  57078. 12,
  57079. 12,
  57080. 12,
  57081. 12,
  57082. 21,
  57083. 21,
  57084. 39,
  57085. 39,
  57086. 11,
  57087. 11,
  57088. 11,
  57089. 11,
  57090. 11,
  57091. 11,
  57092. 11,
  57093. 11,
  57094. 11,
  57095. 11,
  57096. 39,
  57097. 39,
  57098. 39,
  57099. 39,
  57100. 39,
  57101. 39,
  57102. 39,
  57103. 39,
  57104. 12,
  57105. 12,
  57106. 12,
  57107. 12,
  57108. 12,
  57109. 12,
  57110. 12,
  57111. 12,
  57112. 39,
  57113. 39,
  57114. 21,
  57115. 21,
  57116. 39,
  57117. 12,
  57118. 12,
  57119. 12,
  57120. 12,
  57121. 12,
  57122. 12,
  57123. 12,
  57124. 12,
  57125. 12,
  57126. 12,
  57127. 12,
  57128. 12,
  57129. 12,
  57130. 12,
  57131. 12,
  57132. 12,
  57133. 12,
  57134. 12,
  57135. 12,
  57136. 12,
  57137. 12,
  57138. 12,
  57139. 12,
  57140. 12,
  57141. 12,
  57142. 12,
  57143. 12,
  57144. 12,
  57145. 12,
  57146. 12,
  57147. 12,
  57148. 12,
  57149. 12,
  57150. 12,
  57151. 12,
  57152. 12,
  57153. 12,
  57154. 12,
  57155. 12,
  57156. 12,
  57157. 12,
  57158. 12,
  57159. 12,
  57160. 12,
  57161. 12,
  57162. 12,
  57163. 12,
  57164. 12,
  57165. 12,
  57166. 12,
  57167. 12,
  57168. 12,
  57169. 12,
  57170. 39,
  57171. 39,
  57172. 21,
  57173. 12,
  57174. 21,
  57175. 21,
  57176. 21,
  57177. 21,
  57178. 21,
  57179. 21,
  57180. 21,
  57181. 21,
  57182. 21,
  57183. 21,
  57184. 21,
  57185. 21,
  57186. 21,
  57187. 21,
  57188. 21,
  57189. 21,
  57190. 21,
  57191. 21,
  57192. 21,
  57193. 21,
  57194. 21,
  57195. 21,
  57196. 21,
  57197. 21,
  57198. 21,
  57199. 39,
  57200. 39,
  57201. 39,
  57202. 39,
  57203. 39,
  57204. 39,
  57205. 39,
  57206. 12,
  57207. 12,
  57208. 12,
  57209. 12,
  57210. 21,
  57211. 21,
  57212. 39,
  57213. 39,
  57214. 11,
  57215. 11,
  57216. 11,
  57217. 11,
  57218. 11,
  57219. 11,
  57220. 11,
  57221. 11,
  57222. 11,
  57223. 11,
  57224. 39,
  57225. 12,
  57226. 12,
  57227. 39,
  57228. 39,
  57229. 39,
  57230. 39,
  57231. 39,
  57232. 39,
  57233. 39,
  57234. 39,
  57235. 39,
  57236. 39,
  57237. 39,
  57238. 39,
  57239. 39,
  57240. 39,
  57241. 39,
  57242. 21,
  57243. 21,
  57244. 39,
  57245. 12,
  57246. 12,
  57247. 12,
  57248. 12,
  57249. 12,
  57250. 12,
  57251. 12,
  57252. 12,
  57253. 12,
  57254. 12,
  57255. 12,
  57256. 12,
  57257. 12,
  57258. 12,
  57259. 12,
  57260. 12,
  57261. 12,
  57262. 12,
  57263. 12,
  57264. 12,
  57265. 12,
  57266. 12,
  57267. 12,
  57268. 12,
  57269. 12,
  57270. 12,
  57271. 12,
  57272. 12,
  57273. 12,
  57274. 12,
  57275. 12,
  57276. 12,
  57277. 12,
  57278. 12,
  57279. 12,
  57280. 12,
  57281. 12,
  57282. 12,
  57283. 12,
  57284. 12,
  57285. 12,
  57286. 12,
  57287. 12,
  57288. 12,
  57289. 12,
  57290. 12,
  57291. 12,
  57292. 12,
  57293. 12,
  57294. 12,
  57295. 12,
  57296. 12,
  57297. 12,
  57298. 12,
  57299. 12,
  57300. 12,
  57301. 12,
  57302. 21,
  57303. 21,
  57304. 21,
  57305. 21,
  57306. 21,
  57307. 21,
  57308. 21,
  57309. 21,
  57310. 21,
  57311. 21,
  57312. 21,
  57313. 21,
  57314. 21,
  57315. 21,
  57316. 21,
  57317. 21,
  57318. 12,
  57319. 39,
  57320. 39,
  57321. 39,
  57322. 39,
  57323. 39,
  57324. 39,
  57325. 39,
  57326. 39,
  57327. 21,
  57328. 39,
  57329. 39,
  57330. 39,
  57331. 39,
  57332. 39,
  57333. 39,
  57334. 39,
  57335. 39,
  57336. 12,
  57337. 12,
  57338. 21,
  57339. 21,
  57340. 39,
  57341. 39,
  57342. 11,
  57343. 11,
  57344. 11,
  57345. 11,
  57346. 11,
  57347. 11,
  57348. 11,
  57349. 11,
  57350. 11,
  57351. 11,
  57352. 12,
  57353. 12,
  57354. 12,
  57355. 12,
  57356. 12,
  57357. 12,
  57358. 39,
  57359. 39,
  57360. 39,
  57361. 10,
  57362. 12,
  57363. 12,
  57364. 12,
  57365. 12,
  57366. 12,
  57367. 12,
  57368. 39,
  57369. 39,
  57370. 21,
  57371. 21,
  57372. 39,
  57373. 12,
  57374. 12,
  57375. 12,
  57376. 12,
  57377. 12,
  57378. 12,
  57379. 12,
  57380. 12,
  57381. 12,
  57382. 12,
  57383. 12,
  57384. 12,
  57385. 12,
  57386. 12,
  57387. 12,
  57388. 12,
  57389. 12,
  57390. 12,
  57391. 12,
  57392. 12,
  57393. 12,
  57394. 12,
  57395. 12,
  57396. 12,
  57397. 12,
  57398. 12,
  57399. 12,
  57400. 12,
  57401. 12,
  57402. 12,
  57403. 12,
  57404. 12,
  57405. 12,
  57406. 12,
  57407. 12,
  57408. 12,
  57409. 12,
  57410. 12,
  57411. 12,
  57412. 12,
  57413. 12,
  57414. 12,
  57415. 12,
  57416. 12,
  57417. 12,
  57418. 12,
  57419. 12,
  57420. 12,
  57421. 12,
  57422. 12,
  57423. 12,
  57424. 12,
  57425. 12,
  57426. 12,
  57427. 12,
  57428. 12,
  57429. 12,
  57430. 12,
  57431. 12,
  57432. 12,
  57433. 12,
  57434. 12,
  57435. 12,
  57436. 12,
  57437. 12,
  57438. 12,
  57439. 39,
  57440. 39,
  57441. 39,
  57442. 21,
  57443. 21,
  57444. 21,
  57445. 21,
  57446. 21,
  57447. 21,
  57448. 21,
  57449. 21,
  57450. 21,
  57451. 21,
  57452. 21,
  57453. 21,
  57454. 21,
  57455. 21,
  57456. 21,
  57457. 21,
  57458. 21,
  57459. 21,
  57460. 21,
  57461. 21,
  57462. 21,
  57463. 21,
  57464. 21,
  57465. 21,
  57466. 21,
  57467. 21,
  57468. 21,
  57469. 21,
  57470. 21,
  57471. 21,
  57472. 21,
  57473. 21,
  57474. 21,
  57475. 21,
  57476. 21,
  57477. 21,
  57478. 21,
  57479. 21,
  57480. 21,
  57481. 21,
  57482. 21,
  57483. 21,
  57484. 12,
  57485. 39,
  57486. 39,
  57487. 39,
  57488. 39,
  57489. 39,
  57490. 39,
  57491. 39,
  57492. 39,
  57493. 39,
  57494. 39,
  57495. 39,
  57496. 39,
  57497. 36,
  57498. 36,
  57499. 36,
  57500. 36,
  57501. 36,
  57502. 36,
  57503. 36,
  57504. 36,
  57505. 36,
  57506. 36,
  57507. 36,
  57508. 36,
  57509. 36,
  57510. 36,
  57511. 36,
  57512. 36,
  57513. 36,
  57514. 36,
  57515. 36,
  57516. 36,
  57517. 36,
  57518. 36,
  57519. 36,
  57520. 36,
  57521. 36,
  57522. 36,
  57523. 36,
  57524. 36,
  57525. 36,
  57526. 36,
  57527. 36,
  57528. 36,
  57529. 36,
  57530. 36,
  57531. 36,
  57532. 36,
  57533. 36,
  57534. 36,
  57535. 36,
  57536. 36,
  57537. 36,
  57538. 36,
  57539. 36,
  57540. 36,
  57541. 36,
  57542. 36,
  57543. 36,
  57544. 36,
  57545. 36,
  57546. 36,
  57547. 36,
  57548. 36,
  57549. 36,
  57550. 36,
  57551. 36,
  57552. 36,
  57553. 36,
  57554. 36,
  57555. 39,
  57556. 39,
  57557. 39,
  57558. 39,
  57559. 9,
  57560. 36,
  57561. 36,
  57562. 36,
  57563. 36,
  57564. 36,
  57565. 36,
  57566. 36,
  57567. 36,
  57568. 36,
  57569. 36,
  57570. 36,
  57571. 36,
  57572. 36,
  57573. 36,
  57574. 36,
  57575. 12,
  57576. 11,
  57577. 11,
  57578. 11,
  57579. 11,
  57580. 11,
  57581. 11,
  57582. 11,
  57583. 11,
  57584. 11,
  57585. 11,
  57586. 17,
  57587. 17,
  57588. 39,
  57589. 39,
  57590. 39,
  57591. 39,
  57592. 39,
  57593. 36,
  57594. 36,
  57595. 36,
  57596. 36,
  57597. 36,
  57598. 36,
  57599. 36,
  57600. 36,
  57601. 36,
  57602. 36,
  57603. 36,
  57604. 36,
  57605. 36,
  57606. 36,
  57607. 36,
  57608. 36,
  57609. 36,
  57610. 36,
  57611. 36,
  57612. 36,
  57613. 36,
  57614. 36,
  57615. 36,
  57616. 36,
  57617. 36,
  57618. 36,
  57619. 36,
  57620. 36,
  57621. 36,
  57622. 36,
  57623. 36,
  57624. 36,
  57625. 36,
  57626. 36,
  57627. 36,
  57628. 36,
  57629. 36,
  57630. 36,
  57631. 36,
  57632. 36,
  57633. 36,
  57634. 36,
  57635. 36,
  57636. 36,
  57637. 36,
  57638. 36,
  57639. 36,
  57640. 36,
  57641. 36,
  57642. 36,
  57643. 36,
  57644. 36,
  57645. 36,
  57646. 36,
  57647. 36,
  57648. 36,
  57649. 36,
  57650. 36,
  57651. 36,
  57652. 36,
  57653. 36,
  57654. 36,
  57655. 36,
  57656. 36,
  57657. 36,
  57658. 36,
  57659. 36,
  57660. 36,
  57661. 36,
  57662. 36,
  57663. 36,
  57664. 36,
  57665. 36,
  57666. 36,
  57667. 36,
  57668. 36,
  57669. 36,
  57670. 39,
  57671. 39,
  57672. 11,
  57673. 11,
  57674. 11,
  57675. 11,
  57676. 11,
  57677. 11,
  57678. 11,
  57679. 11,
  57680. 11,
  57681. 11,
  57682. 39,
  57683. 39,
  57684. 36,
  57685. 36,
  57686. 36,
  57687. 36,
  57688. 12,
  57689. 18,
  57690. 18,
  57691. 18,
  57692. 18,
  57693. 12,
  57694. 18,
  57695. 18,
  57696. 4,
  57697. 18,
  57698. 18,
  57699. 17,
  57700. 4,
  57701. 6,
  57702. 6,
  57703. 6,
  57704. 6,
  57705. 6,
  57706. 4,
  57707. 12,
  57708. 6,
  57709. 12,
  57710. 12,
  57711. 12,
  57712. 21,
  57713. 21,
  57714. 12,
  57715. 12,
  57716. 12,
  57717. 12,
  57718. 12,
  57719. 12,
  57720. 11,
  57721. 11,
  57722. 11,
  57723. 11,
  57724. 11,
  57725. 11,
  57726. 11,
  57727. 11,
  57728. 11,
  57729. 11,
  57730. 12,
  57731. 12,
  57732. 12,
  57733. 12,
  57734. 12,
  57735. 12,
  57736. 12,
  57737. 12,
  57738. 12,
  57739. 12,
  57740. 17,
  57741. 21,
  57742. 12,
  57743. 21,
  57744. 12,
  57745. 21,
  57746. 0,
  57747. 1,
  57748. 0,
  57749. 1,
  57750. 21,
  57751. 21,
  57752. 12,
  57753. 12,
  57754. 12,
  57755. 12,
  57756. 12,
  57757. 12,
  57758. 12,
  57759. 12,
  57760. 12,
  57761. 12,
  57762. 12,
  57763. 12,
  57764. 12,
  57765. 12,
  57766. 12,
  57767. 12,
  57768. 12,
  57769. 12,
  57770. 12,
  57771. 12,
  57772. 12,
  57773. 12,
  57774. 12,
  57775. 12,
  57776. 12,
  57777. 12,
  57778. 12,
  57779. 12,
  57780. 12,
  57781. 12,
  57782. 12,
  57783. 12,
  57784. 12,
  57785. 12,
  57786. 12,
  57787. 12,
  57788. 12,
  57789. 12,
  57790. 12,
  57791. 12,
  57792. 12,
  57793. 12,
  57794. 12,
  57795. 12,
  57796. 12,
  57797. 39,
  57798. 39,
  57799. 39,
  57800. 39,
  57801. 21,
  57802. 21,
  57803. 21,
  57804. 21,
  57805. 21,
  57806. 21,
  57807. 21,
  57808. 21,
  57809. 21,
  57810. 21,
  57811. 21,
  57812. 21,
  57813. 21,
  57814. 21,
  57815. 17,
  57816. 21,
  57817. 21,
  57818. 21,
  57819. 21,
  57820. 21,
  57821. 17,
  57822. 21,
  57823. 21,
  57824. 12,
  57825. 12,
  57826. 12,
  57827. 12,
  57828. 12,
  57829. 21,
  57830. 21,
  57831. 21,
  57832. 21,
  57833. 21,
  57834. 21,
  57835. 21,
  57836. 21,
  57837. 21,
  57838. 21,
  57839. 21,
  57840. 21,
  57841. 21,
  57842. 21,
  57843. 21,
  57844. 21,
  57845. 21,
  57846. 21,
  57847. 21,
  57848. 21,
  57849. 21,
  57850. 21,
  57851. 21,
  57852. 21,
  57853. 21,
  57854. 21,
  57855. 21,
  57856. 21,
  57857. 21,
  57858. 21,
  57859. 21,
  57860. 21,
  57861. 21,
  57862. 21,
  57863. 21,
  57864. 21,
  57865. 21,
  57866. 21,
  57867. 21,
  57868. 21,
  57869. 21,
  57870. 21,
  57871. 21,
  57872. 21,
  57873. 21,
  57874. 21,
  57875. 21,
  57876. 21,
  57877. 39,
  57878. 17,
  57879. 17,
  57880. 12,
  57881. 12,
  57882. 12,
  57883. 12,
  57884. 12,
  57885. 12,
  57886. 21,
  57887. 12,
  57888. 12,
  57889. 12,
  57890. 12,
  57891. 12,
  57892. 12,
  57893. 12,
  57894. 12,
  57895. 12,
  57896. 18,
  57897. 18,
  57898. 17,
  57899. 18,
  57900. 12,
  57901. 12,
  57902. 12,
  57903. 12,
  57904. 12,
  57905. 4,
  57906. 4,
  57907. 39,
  57908. 39,
  57909. 39,
  57910. 39,
  57911. 39,
  57912. 36,
  57913. 36,
  57914. 36,
  57915. 36,
  57916. 36,
  57917. 36,
  57918. 36,
  57919. 36,
  57920. 36,
  57921. 36,
  57922. 36,
  57923. 36,
  57924. 36,
  57925. 36,
  57926. 36,
  57927. 36,
  57928. 36,
  57929. 36,
  57930. 36,
  57931. 36,
  57932. 36,
  57933. 36,
  57934. 36,
  57935. 36,
  57936. 36,
  57937. 36,
  57938. 36,
  57939. 36,
  57940. 36,
  57941. 36,
  57942. 36,
  57943. 36,
  57944. 11,
  57945. 11,
  57946. 11,
  57947. 11,
  57948. 11,
  57949. 11,
  57950. 11,
  57951. 11,
  57952. 11,
  57953. 11,
  57954. 17,
  57955. 17,
  57956. 12,
  57957. 12,
  57958. 12,
  57959. 12,
  57960. 36,
  57961. 36,
  57962. 36,
  57963. 36,
  57964. 36,
  57965. 36,
  57966. 36,
  57967. 36,
  57968. 36,
  57969. 36,
  57970. 36,
  57971. 36,
  57972. 36,
  57973. 36,
  57974. 36,
  57975. 36,
  57976. 36,
  57977. 36,
  57978. 36,
  57979. 36,
  57980. 36,
  57981. 36,
  57982. 36,
  57983. 36,
  57984. 36,
  57985. 36,
  57986. 36,
  57987. 36,
  57988. 36,
  57989. 36,
  57990. 36,
  57991. 36,
  57992. 36,
  57993. 36,
  57994. 36,
  57995. 36,
  57996. 36,
  57997. 36,
  57998. 36,
  57999. 36,
  58000. 36,
  58001. 36,
  58002. 36,
  58003. 36,
  58004. 36,
  58005. 36,
  58006. 36,
  58007. 36,
  58008. 36,
  58009. 36,
  58010. 36,
  58011. 36,
  58012. 36,
  58013. 36,
  58014. 36,
  58015. 36,
  58016. 36,
  58017. 36,
  58018. 36,
  58019. 36,
  58020. 36,
  58021. 36,
  58022. 36,
  58023. 36,
  58024. 11,
  58025. 11,
  58026. 11,
  58027. 11,
  58028. 11,
  58029. 11,
  58030. 11,
  58031. 11,
  58032. 11,
  58033. 11,
  58034. 36,
  58035. 36,
  58036. 36,
  58037. 36,
  58038. 36,
  58039. 36,
  58040. 12,
  58041. 12,
  58042. 12,
  58043. 12,
  58044. 12,
  58045. 12,
  58046. 12,
  58047. 12,
  58048. 12,
  58049. 12,
  58050. 12,
  58051. 12,
  58052. 12,
  58053. 12,
  58054. 12,
  58055. 12,
  58056. 12,
  58057. 12,
  58058. 12,
  58059. 12,
  58060. 12,
  58061. 12,
  58062. 12,
  58063. 12,
  58064. 12,
  58065. 12,
  58066. 12,
  58067. 12,
  58068. 12,
  58069. 12,
  58070. 12,
  58071. 12,
  58072. 25,
  58073. 25,
  58074. 25,
  58075. 25,
  58076. 25,
  58077. 25,
  58078. 25,
  58079. 25,
  58080. 25,
  58081. 25,
  58082. 25,
  58083. 25,
  58084. 25,
  58085. 25,
  58086. 25,
  58087. 25,
  58088. 25,
  58089. 25,
  58090. 25,
  58091. 25,
  58092. 25,
  58093. 25,
  58094. 25,
  58095. 25,
  58096. 25,
  58097. 25,
  58098. 25,
  58099. 25,
  58100. 25,
  58101. 25,
  58102. 25,
  58103. 25,
  58104. 26,
  58105. 26,
  58106. 26,
  58107. 26,
  58108. 26,
  58109. 26,
  58110. 26,
  58111. 26,
  58112. 26,
  58113. 26,
  58114. 26,
  58115. 26,
  58116. 26,
  58117. 26,
  58118. 26,
  58119. 26,
  58120. 26,
  58121. 26,
  58122. 26,
  58123. 26,
  58124. 26,
  58125. 26,
  58126. 26,
  58127. 26,
  58128. 26,
  58129. 26,
  58130. 26,
  58131. 26,
  58132. 26,
  58133. 26,
  58134. 26,
  58135. 26,
  58136. 26,
  58137. 26,
  58138. 26,
  58139. 26,
  58140. 26,
  58141. 26,
  58142. 26,
  58143. 26,
  58144. 27,
  58145. 27,
  58146. 27,
  58147. 27,
  58148. 27,
  58149. 27,
  58150. 27,
  58151. 27,
  58152. 27,
  58153. 27,
  58154. 27,
  58155. 27,
  58156. 27,
  58157. 27,
  58158. 27,
  58159. 27,
  58160. 27,
  58161. 27,
  58162. 27,
  58163. 27,
  58164. 27,
  58165. 27,
  58166. 27,
  58167. 27,
  58168. 27,
  58169. 27,
  58170. 27,
  58171. 27,
  58172. 27,
  58173. 27,
  58174. 27,
  58175. 27,
  58176. 27,
  58177. 27,
  58178. 27,
  58179. 27,
  58180. 27,
  58181. 27,
  58182. 27,
  58183. 27,
  58184. 27,
  58185. 27,
  58186. 27,
  58187. 27,
  58188. 27,
  58189. 27,
  58190. 27,
  58191. 27,
  58192. 27,
  58193. 27,
  58194. 27,
  58195. 27,
  58196. 27,
  58197. 27,
  58198. 27,
  58199. 27,
  58200. 12,
  58201. 12,
  58202. 12,
  58203. 12,
  58204. 12,
  58205. 12,
  58206. 12,
  58207. 12,
  58208. 12,
  58209. 12,
  58210. 12,
  58211. 12,
  58212. 12,
  58213. 12,
  58214. 12,
  58215. 12,
  58216. 12,
  58217. 12,
  58218. 12,
  58219. 12,
  58220. 12,
  58221. 12,
  58222. 12,
  58223. 12,
  58224. 12,
  58225. 12,
  58226. 12,
  58227. 12,
  58228. 12,
  58229. 12,
  58230. 12,
  58231. 12,
  58232. 12,
  58233. 12,
  58234. 12,
  58235. 12,
  58236. 12,
  58237. 12,
  58238. 12,
  58239. 12,
  58240. 12,
  58241. 12,
  58242. 12,
  58243. 12,
  58244. 12,
  58245. 12,
  58246. 12,
  58247. 12,
  58248. 12,
  58249. 12,
  58250. 12,
  58251. 12,
  58252. 12,
  58253. 12,
  58254. 12,
  58255. 12,
  58256. 12,
  58257. 12,
  58258. 12,
  58259. 39,
  58260. 39,
  58261. 21,
  58262. 21,
  58263. 21,
  58264. 12,
  58265. 17,
  58266. 12,
  58267. 12,
  58268. 12,
  58269. 12,
  58270. 12,
  58271. 12,
  58272. 12,
  58273. 12,
  58274. 12,
  58275. 12,
  58276. 12,
  58277. 12,
  58278. 12,
  58279. 12,
  58280. 12,
  58281. 12,
  58282. 12,
  58283. 12,
  58284. 12,
  58285. 12,
  58286. 12,
  58287. 12,
  58288. 12,
  58289. 12,
  58290. 12,
  58291. 12,
  58292. 12,
  58293. 12,
  58294. 12,
  58295. 12,
  58296. 12,
  58297. 12,
  58298. 12,
  58299. 12,
  58300. 12,
  58301. 12,
  58302. 12,
  58303. 12,
  58304. 12,
  58305. 12,
  58306. 12,
  58307. 12,
  58308. 12,
  58309. 12,
  58310. 12,
  58311. 12,
  58312. 12,
  58313. 12,
  58314. 12,
  58315. 12,
  58316. 12,
  58317. 12,
  58318. 12,
  58319. 12,
  58320. 12,
  58321. 12,
  58322. 12,
  58323. 12,
  58324. 12,
  58325. 12,
  58326. 12,
  58327. 12,
  58328. 12,
  58329. 12,
  58330. 12,
  58331. 12,
  58332. 12,
  58333. 12,
  58334. 12,
  58335. 12,
  58336. 12,
  58337. 12,
  58338. 12,
  58339. 12,
  58340. 12,
  58341. 12,
  58342. 12,
  58343. 12,
  58344. 12,
  58345. 12,
  58346. 12,
  58347. 12,
  58348. 12,
  58349. 39,
  58350. 39,
  58351. 39,
  58352. 39,
  58353. 39,
  58354. 39,
  58355. 39,
  58356. 39,
  58357. 39,
  58358. 39,
  58359. 39,
  58360. 17,
  58361. 12,
  58362. 12,
  58363. 12,
  58364. 12,
  58365. 12,
  58366. 12,
  58367. 12,
  58368. 12,
  58369. 12,
  58370. 12,
  58371. 12,
  58372. 12,
  58373. 12,
  58374. 12,
  58375. 12,
  58376. 12,
  58377. 12,
  58378. 12,
  58379. 12,
  58380. 12,
  58381. 12,
  58382. 12,
  58383. 12,
  58384. 12,
  58385. 12,
  58386. 12,
  58387. 12,
  58388. 12,
  58389. 12,
  58390. 12,
  58391. 12,
  58392. 12,
  58393. 12,
  58394. 12,
  58395. 12,
  58396. 12,
  58397. 12,
  58398. 12,
  58399. 12,
  58400. 12,
  58401. 12,
  58402. 12,
  58403. 12,
  58404. 12,
  58405. 12,
  58406. 12,
  58407. 12,
  58408. 12,
  58409. 12,
  58410. 12,
  58411. 12,
  58412. 12,
  58413. 12,
  58414. 12,
  58415. 12,
  58416. 12,
  58417. 12,
  58418. 12,
  58419. 12,
  58420. 12,
  58421. 12,
  58422. 12,
  58423. 12,
  58424. 17,
  58425. 12,
  58426. 12,
  58427. 12,
  58428. 12,
  58429. 12,
  58430. 12,
  58431. 12,
  58432. 12,
  58433. 12,
  58434. 12,
  58435. 12,
  58436. 12,
  58437. 12,
  58438. 12,
  58439. 12,
  58440. 12,
  58441. 12,
  58442. 12,
  58443. 12,
  58444. 12,
  58445. 12,
  58446. 12,
  58447. 12,
  58448. 12,
  58449. 12,
  58450. 12,
  58451. 0,
  58452. 1,
  58453. 39,
  58454. 39,
  58455. 39,
  58456. 12,
  58457. 12,
  58458. 12,
  58459. 12,
  58460. 12,
  58461. 12,
  58462. 12,
  58463. 12,
  58464. 12,
  58465. 12,
  58466. 12,
  58467. 12,
  58468. 12,
  58469. 12,
  58470. 12,
  58471. 12,
  58472. 12,
  58473. 12,
  58474. 12,
  58475. 12,
  58476. 12,
  58477. 12,
  58478. 12,
  58479. 12,
  58480. 12,
  58481. 12,
  58482. 12,
  58483. 12,
  58484. 12,
  58485. 12,
  58486. 12,
  58487. 12,
  58488. 12,
  58489. 12,
  58490. 12,
  58491. 12,
  58492. 12,
  58493. 12,
  58494. 12,
  58495. 12,
  58496. 12,
  58497. 12,
  58498. 12,
  58499. 17,
  58500. 17,
  58501. 17,
  58502. 12,
  58503. 12,
  58504. 12,
  58505. 12,
  58506. 12,
  58507. 12,
  58508. 12,
  58509. 12,
  58510. 12,
  58511. 12,
  58512. 12,
  58513. 12,
  58514. 12,
  58515. 12,
  58516. 12,
  58517. 12,
  58518. 12,
  58519. 12,
  58520. 12,
  58521. 12,
  58522. 12,
  58523. 12,
  58524. 12,
  58525. 12,
  58526. 12,
  58527. 12,
  58528. 12,
  58529. 12,
  58530. 12,
  58531. 12,
  58532. 12,
  58533. 12,
  58534. 12,
  58535. 12,
  58536. 12,
  58537. 12,
  58538. 21,
  58539. 21,
  58540. 21,
  58541. 39,
  58542. 39,
  58543. 39,
  58544. 39,
  58545. 39,
  58546. 39,
  58547. 39,
  58548. 39,
  58549. 39,
  58550. 39,
  58551. 39,
  58552. 12,
  58553. 12,
  58554. 12,
  58555. 12,
  58556. 12,
  58557. 12,
  58558. 12,
  58559. 12,
  58560. 12,
  58561. 12,
  58562. 12,
  58563. 12,
  58564. 12,
  58565. 12,
  58566. 12,
  58567. 12,
  58568. 12,
  58569. 12,
  58570. 21,
  58571. 21,
  58572. 21,
  58573. 17,
  58574. 17,
  58575. 39,
  58576. 39,
  58577. 39,
  58578. 39,
  58579. 39,
  58580. 39,
  58581. 39,
  58582. 39,
  58583. 39,
  58584. 12,
  58585. 12,
  58586. 12,
  58587. 12,
  58588. 12,
  58589. 12,
  58590. 12,
  58591. 12,
  58592. 12,
  58593. 12,
  58594. 12,
  58595. 12,
  58596. 12,
  58597. 12,
  58598. 12,
  58599. 12,
  58600. 12,
  58601. 12,
  58602. 21,
  58603. 21,
  58604. 39,
  58605. 39,
  58606. 39,
  58607. 39,
  58608. 39,
  58609. 39,
  58610. 39,
  58611. 39,
  58612. 39,
  58613. 39,
  58614. 39,
  58615. 39,
  58616. 12,
  58617. 12,
  58618. 12,
  58619. 12,
  58620. 12,
  58621. 12,
  58622. 12,
  58623. 12,
  58624. 12,
  58625. 12,
  58626. 12,
  58627. 12,
  58628. 12,
  58629. 12,
  58630. 12,
  58631. 12,
  58632. 12,
  58633. 39,
  58634. 21,
  58635. 21,
  58636. 39,
  58637. 39,
  58638. 39,
  58639. 39,
  58640. 39,
  58641. 39,
  58642. 39,
  58643. 39,
  58644. 39,
  58645. 39,
  58646. 39,
  58647. 39,
  58648. 36,
  58649. 36,
  58650. 36,
  58651. 36,
  58652. 36,
  58653. 36,
  58654. 36,
  58655. 36,
  58656. 36,
  58657. 36,
  58658. 36,
  58659. 36,
  58660. 36,
  58661. 36,
  58662. 36,
  58663. 36,
  58664. 36,
  58665. 36,
  58666. 36,
  58667. 36,
  58668. 36,
  58669. 36,
  58670. 36,
  58671. 36,
  58672. 36,
  58673. 36,
  58674. 36,
  58675. 36,
  58676. 36,
  58677. 36,
  58678. 36,
  58679. 36,
  58680. 36,
  58681. 36,
  58682. 36,
  58683. 36,
  58684. 36,
  58685. 36,
  58686. 36,
  58687. 36,
  58688. 36,
  58689. 36,
  58690. 36,
  58691. 36,
  58692. 36,
  58693. 36,
  58694. 36,
  58695. 36,
  58696. 36,
  58697. 36,
  58698. 36,
  58699. 36,
  58700. 17,
  58701. 17,
  58702. 5,
  58703. 36,
  58704. 17,
  58705. 12,
  58706. 17,
  58707. 9,
  58708. 36,
  58709. 36,
  58710. 39,
  58711. 39,
  58712. 11,
  58713. 11,
  58714. 11,
  58715. 11,
  58716. 11,
  58717. 11,
  58718. 11,
  58719. 11,
  58720. 11,
  58721. 11,
  58722. 39,
  58723. 39,
  58724. 39,
  58725. 39,
  58726. 39,
  58727. 39,
  58728. 12,
  58729. 12,
  58730. 12,
  58731. 12,
  58732. 12,
  58733. 12,
  58734. 12,
  58735. 12,
  58736. 12,
  58737. 12,
  58738. 12,
  58739. 12,
  58740. 12,
  58741. 12,
  58742. 12,
  58743. 12,
  58744. 12,
  58745. 12,
  58746. 6,
  58747. 6,
  58748. 17,
  58749. 17,
  58750. 18,
  58751. 12,
  58752. 6,
  58753. 6,
  58754. 12,
  58755. 21,
  58756. 21,
  58757. 21,
  58758. 4,
  58759. 39,
  58760. 11,
  58761. 11,
  58762. 11,
  58763. 11,
  58764. 11,
  58765. 11,
  58766. 11,
  58767. 11,
  58768. 11,
  58769. 11,
  58770. 39,
  58771. 39,
  58772. 39,
  58773. 39,
  58774. 39,
  58775. 39,
  58776. 12,
  58777. 12,
  58778. 12,
  58779. 12,
  58780. 12,
  58781. 12,
  58782. 12,
  58783. 12,
  58784. 12,
  58785. 12,
  58786. 12,
  58787. 12,
  58788. 12,
  58789. 12,
  58790. 12,
  58791. 12,
  58792. 12,
  58793. 12,
  58794. 12,
  58795. 12,
  58796. 12,
  58797. 12,
  58798. 12,
  58799. 12,
  58800. 12,
  58801. 12,
  58802. 12,
  58803. 12,
  58804. 12,
  58805. 12,
  58806. 12,
  58807. 12,
  58808. 12,
  58809. 12,
  58810. 12,
  58811. 12,
  58812. 12,
  58813. 12,
  58814. 12,
  58815. 12,
  58816. 12,
  58817. 21,
  58818. 12,
  58819. 12,
  58820. 12,
  58821. 12,
  58822. 12,
  58823. 12,
  58824. 12,
  58825. 12,
  58826. 12,
  58827. 12,
  58828. 12,
  58829. 12,
  58830. 12,
  58831. 12,
  58832. 12,
  58833. 12,
  58834. 12,
  58835. 12,
  58836. 12,
  58837. 12,
  58838. 12,
  58839. 12,
  58840. 12,
  58841. 12,
  58842. 12,
  58843. 12,
  58844. 12,
  58845. 12,
  58846. 12,
  58847. 12,
  58848. 12,
  58849. 12,
  58850. 12,
  58851. 12,
  58852. 12,
  58853. 12,
  58854. 12,
  58855. 12,
  58856. 12,
  58857. 12,
  58858. 12,
  58859. 12,
  58860. 12,
  58861. 12,
  58862. 12,
  58863. 12,
  58864. 12,
  58865. 12,
  58866. 12,
  58867. 12,
  58868. 12,
  58869. 12,
  58870. 12,
  58871. 12,
  58872. 12,
  58873. 12,
  58874. 12,
  58875. 12,
  58876. 12,
  58877. 12,
  58878. 12,
  58879. 12,
  58880. 12,
  58881. 12,
  58882. 12,
  58883. 12,
  58884. 12,
  58885. 12,
  58886. 12,
  58887. 12,
  58888. 12,
  58889. 12,
  58890. 12,
  58891. 12,
  58892. 12,
  58893. 12,
  58894. 12,
  58895. 12,
  58896. 12,
  58897. 12,
  58898. 12,
  58899. 12,
  58900. 12,
  58901. 39,
  58902. 39,
  58903. 39,
  58904. 21,
  58905. 21,
  58906. 21,
  58907. 21,
  58908. 21,
  58909. 21,
  58910. 21,
  58911. 21,
  58912. 21,
  58913. 21,
  58914. 21,
  58915. 21,
  58916. 21,
  58917. 21,
  58918. 21,
  58919. 21,
  58920. 21,
  58921. 21,
  58922. 21,
  58923. 21,
  58924. 21,
  58925. 21,
  58926. 21,
  58927. 21,
  58928. 21,
  58929. 21,
  58930. 21,
  58931. 21,
  58932. 39,
  58933. 39,
  58934. 39,
  58935. 39,
  58936. 12,
  58937. 39,
  58938. 39,
  58939. 39,
  58940. 6,
  58941. 6,
  58942. 11,
  58943. 11,
  58944. 11,
  58945. 11,
  58946. 11,
  58947. 11,
  58948. 11,
  58949. 11,
  58950. 11,
  58951. 11,
  58952. 36,
  58953. 36,
  58954. 36,
  58955. 36,
  58956. 36,
  58957. 36,
  58958. 36,
  58959. 36,
  58960. 36,
  58961. 36,
  58962. 36,
  58963. 36,
  58964. 36,
  58965. 36,
  58966. 36,
  58967. 36,
  58968. 36,
  58969. 36,
  58970. 36,
  58971. 36,
  58972. 36,
  58973. 36,
  58974. 36,
  58975. 36,
  58976. 36,
  58977. 36,
  58978. 36,
  58979. 36,
  58980. 36,
  58981. 36,
  58982. 36,
  58983. 36,
  58984. 36,
  58985. 36,
  58986. 36,
  58987. 36,
  58988. 36,
  58989. 36,
  58990. 36,
  58991. 36,
  58992. 36,
  58993. 36,
  58994. 36,
  58995. 36,
  58996. 36,
  58997. 36,
  58998. 36,
  58999. 36,
  59000. 36,
  59001. 36,
  59002. 36,
  59003. 36,
  59004. 36,
  59005. 36,
  59006. 36,
  59007. 36,
  59008. 36,
  59009. 36,
  59010. 39,
  59011. 39,
  59012. 39,
  59013. 39,
  59014. 39,
  59015. 39,
  59016. 11,
  59017. 11,
  59018. 11,
  59019. 11,
  59020. 11,
  59021. 11,
  59022. 11,
  59023. 11,
  59024. 11,
  59025. 11,
  59026. 36,
  59027. 36,
  59028. 36,
  59029. 36,
  59030. 36,
  59031. 36,
  59032. 12,
  59033. 12,
  59034. 12,
  59035. 12,
  59036. 12,
  59037. 12,
  59038. 12,
  59039. 12,
  59040. 12,
  59041. 12,
  59042. 12,
  59043. 12,
  59044. 12,
  59045. 12,
  59046. 12,
  59047. 12,
  59048. 12,
  59049. 12,
  59050. 12,
  59051. 12,
  59052. 12,
  59053. 12,
  59054. 12,
  59055. 12,
  59056. 12,
  59057. 12,
  59058. 12,
  59059. 12,
  59060. 12,
  59061. 12,
  59062. 12,
  59063. 12,
  59064. 12,
  59065. 12,
  59066. 12,
  59067. 12,
  59068. 12,
  59069. 12,
  59070. 12,
  59071. 12,
  59072. 12,
  59073. 12,
  59074. 12,
  59075. 12,
  59076. 12,
  59077. 12,
  59078. 12,
  59079. 12,
  59080. 12,
  59081. 12,
  59082. 12,
  59083. 12,
  59084. 12,
  59085. 12,
  59086. 12,
  59087. 21,
  59088. 21,
  59089. 21,
  59090. 21,
  59091. 21,
  59092. 39,
  59093. 39,
  59094. 12,
  59095. 12,
  59096. 36,
  59097. 36,
  59098. 36,
  59099. 36,
  59100. 36,
  59101. 36,
  59102. 36,
  59103. 36,
  59104. 36,
  59105. 36,
  59106. 36,
  59107. 36,
  59108. 36,
  59109. 36,
  59110. 36,
  59111. 36,
  59112. 36,
  59113. 36,
  59114. 36,
  59115. 36,
  59116. 36,
  59117. 36,
  59118. 36,
  59119. 36,
  59120. 36,
  59121. 36,
  59122. 36,
  59123. 36,
  59124. 36,
  59125. 36,
  59126. 36,
  59127. 36,
  59128. 36,
  59129. 36,
  59130. 36,
  59131. 36,
  59132. 36,
  59133. 36,
  59134. 36,
  59135. 36,
  59136. 36,
  59137. 36,
  59138. 36,
  59139. 36,
  59140. 36,
  59141. 36,
  59142. 36,
  59143. 36,
  59144. 36,
  59145. 36,
  59146. 36,
  59147. 36,
  59148. 36,
  59149. 36,
  59150. 36,
  59151. 36,
  59152. 36,
  59153. 36,
  59154. 36,
  59155. 36,
  59156. 36,
  59157. 39,
  59158. 39,
  59159. 21,
  59160. 11,
  59161. 11,
  59162. 11,
  59163. 11,
  59164. 11,
  59165. 11,
  59166. 11,
  59167. 11,
  59168. 11,
  59169. 11,
  59170. 11,
  59171. 11,
  59172. 11,
  59173. 11,
  59174. 11,
  59175. 11,
  59176. 11,
  59177. 11,
  59178. 11,
  59179. 11,
  59180. 11,
  59181. 11,
  59182. 11,
  59183. 11,
  59184. 11,
  59185. 11,
  59186. 39,
  59187. 39,
  59188. 39,
  59189. 39,
  59190. 39,
  59191. 39,
  59192. 36,
  59193. 36,
  59194. 36,
  59195. 36,
  59196. 36,
  59197. 36,
  59198. 36,
  59199. 36,
  59200. 36,
  59201. 36,
  59202. 36,
  59203. 36,
  59204. 36,
  59205. 36,
  59206. 39,
  59207. 39,
  59208. 39,
  59209. 39,
  59210. 39,
  59211. 39,
  59212. 39,
  59213. 39,
  59214. 39,
  59215. 39,
  59216. 39,
  59217. 39,
  59218. 39,
  59219. 39,
  59220. 39,
  59221. 39,
  59222. 39,
  59223. 39,
  59224. 21,
  59225. 21,
  59226. 21,
  59227. 21,
  59228. 21,
  59229. 12,
  59230. 12,
  59231. 12,
  59232. 12,
  59233. 12,
  59234. 12,
  59235. 12,
  59236. 12,
  59237. 12,
  59238. 12,
  59239. 12,
  59240. 12,
  59241. 12,
  59242. 12,
  59243. 12,
  59244. 12,
  59245. 12,
  59246. 12,
  59247. 12,
  59248. 12,
  59249. 12,
  59250. 12,
  59251. 12,
  59252. 12,
  59253. 12,
  59254. 12,
  59255. 12,
  59256. 12,
  59257. 12,
  59258. 12,
  59259. 12,
  59260. 12,
  59261. 12,
  59262. 12,
  59263. 12,
  59264. 12,
  59265. 12,
  59266. 12,
  59267. 12,
  59268. 12,
  59269. 12,
  59270. 12,
  59271. 12,
  59272. 12,
  59273. 12,
  59274. 12,
  59275. 12,
  59276. 21,
  59277. 21,
  59278. 21,
  59279. 21,
  59280. 21,
  59281. 21,
  59282. 21,
  59283. 21,
  59284. 21,
  59285. 21,
  59286. 21,
  59287. 21,
  59288. 21,
  59289. 21,
  59290. 21,
  59291. 21,
  59292. 21,
  59293. 12,
  59294. 12,
  59295. 12,
  59296. 12,
  59297. 12,
  59298. 12,
  59299. 12,
  59300. 39,
  59301. 39,
  59302. 39,
  59303. 39,
  59304. 11,
  59305. 11,
  59306. 11,
  59307. 11,
  59308. 11,
  59309. 11,
  59310. 11,
  59311. 11,
  59312. 11,
  59313. 11,
  59314. 17,
  59315. 17,
  59316. 12,
  59317. 17,
  59318. 17,
  59319. 17,
  59320. 17,
  59321. 12,
  59322. 12,
  59323. 12,
  59324. 12,
  59325. 12,
  59326. 12,
  59327. 12,
  59328. 12,
  59329. 12,
  59330. 12,
  59331. 21,
  59332. 21,
  59333. 21,
  59334. 21,
  59335. 21,
  59336. 21,
  59337. 21,
  59338. 21,
  59339. 21,
  59340. 12,
  59341. 12,
  59342. 12,
  59343. 12,
  59344. 12,
  59345. 12,
  59346. 12,
  59347. 12,
  59348. 12,
  59349. 39,
  59350. 39,
  59351. 39,
  59352. 21,
  59353. 21,
  59354. 21,
  59355. 12,
  59356. 12,
  59357. 12,
  59358. 12,
  59359. 12,
  59360. 12,
  59361. 12,
  59362. 12,
  59363. 12,
  59364. 12,
  59365. 12,
  59366. 12,
  59367. 12,
  59368. 12,
  59369. 12,
  59370. 12,
  59371. 12,
  59372. 12,
  59373. 12,
  59374. 12,
  59375. 12,
  59376. 12,
  59377. 12,
  59378. 12,
  59379. 12,
  59380. 12,
  59381. 12,
  59382. 12,
  59383. 12,
  59384. 12,
  59385. 21,
  59386. 21,
  59387. 21,
  59388. 21,
  59389. 21,
  59390. 21,
  59391. 21,
  59392. 21,
  59393. 21,
  59394. 21,
  59395. 21,
  59396. 21,
  59397. 21,
  59398. 12,
  59399. 12,
  59400. 11,
  59401. 11,
  59402. 11,
  59403. 11,
  59404. 11,
  59405. 11,
  59406. 11,
  59407. 11,
  59408. 11,
  59409. 11,
  59410. 12,
  59411. 12,
  59412. 12,
  59413. 12,
  59414. 12,
  59415. 12,
  59416. 12,
  59417. 12,
  59418. 12,
  59419. 12,
  59420. 12,
  59421. 12,
  59422. 12,
  59423. 12,
  59424. 12,
  59425. 12,
  59426. 12,
  59427. 12,
  59428. 12,
  59429. 12,
  59430. 12,
  59431. 12,
  59432. 12,
  59433. 12,
  59434. 12,
  59435. 12,
  59436. 12,
  59437. 12,
  59438. 12,
  59439. 12,
  59440. 12,
  59441. 12,
  59442. 12,
  59443. 12,
  59444. 12,
  59445. 12,
  59446. 12,
  59447. 12,
  59448. 12,
  59449. 12,
  59450. 12,
  59451. 12,
  59452. 12,
  59453. 12,
  59454. 21,
  59455. 21,
  59456. 21,
  59457. 21,
  59458. 21,
  59459. 21,
  59460. 21,
  59461. 21,
  59462. 21,
  59463. 21,
  59464. 21,
  59465. 21,
  59466. 21,
  59467. 21,
  59468. 39,
  59469. 39,
  59470. 39,
  59471. 39,
  59472. 39,
  59473. 39,
  59474. 39,
  59475. 39,
  59476. 12,
  59477. 12,
  59478. 12,
  59479. 12,
  59480. 12,
  59481. 12,
  59482. 12,
  59483. 12,
  59484. 12,
  59485. 12,
  59486. 12,
  59487. 12,
  59488. 12,
  59489. 12,
  59490. 12,
  59491. 12,
  59492. 12,
  59493. 12,
  59494. 12,
  59495. 12,
  59496. 12,
  59497. 12,
  59498. 12,
  59499. 12,
  59500. 12,
  59501. 12,
  59502. 12,
  59503. 12,
  59504. 12,
  59505. 12,
  59506. 12,
  59507. 12,
  59508. 12,
  59509. 12,
  59510. 12,
  59511. 12,
  59512. 12,
  59513. 12,
  59514. 12,
  59515. 12,
  59516. 21,
  59517. 21,
  59518. 21,
  59519. 21,
  59520. 21,
  59521. 21,
  59522. 21,
  59523. 21,
  59524. 21,
  59525. 21,
  59526. 21,
  59527. 21,
  59528. 21,
  59529. 21,
  59530. 21,
  59531. 21,
  59532. 21,
  59533. 21,
  59534. 21,
  59535. 21,
  59536. 39,
  59537. 39,
  59538. 39,
  59539. 17,
  59540. 17,
  59541. 17,
  59542. 17,
  59543. 17,
  59544. 11,
  59545. 11,
  59546. 11,
  59547. 11,
  59548. 11,
  59549. 11,
  59550. 11,
  59551. 11,
  59552. 11,
  59553. 11,
  59554. 39,
  59555. 39,
  59556. 39,
  59557. 12,
  59558. 12,
  59559. 12,
  59560. 11,
  59561. 11,
  59562. 11,
  59563. 11,
  59564. 11,
  59565. 11,
  59566. 11,
  59567. 11,
  59568. 11,
  59569. 11,
  59570. 12,
  59571. 12,
  59572. 12,
  59573. 12,
  59574. 12,
  59575. 12,
  59576. 12,
  59577. 12,
  59578. 12,
  59579. 12,
  59580. 12,
  59581. 12,
  59582. 12,
  59583. 12,
  59584. 12,
  59585. 12,
  59586. 12,
  59587. 12,
  59588. 12,
  59589. 12,
  59590. 12,
  59591. 12,
  59592. 12,
  59593. 12,
  59594. 12,
  59595. 12,
  59596. 12,
  59597. 12,
  59598. 12,
  59599. 12,
  59600. 12,
  59601. 12,
  59602. 12,
  59603. 12,
  59604. 12,
  59605. 12,
  59606. 17,
  59607. 17,
  59608. 12,
  59609. 12,
  59610. 12,
  59611. 12,
  59612. 12,
  59613. 12,
  59614. 12,
  59615. 12,
  59616. 39,
  59617. 39,
  59618. 39,
  59619. 39,
  59620. 39,
  59621. 39,
  59622. 39,
  59623. 39,
  59624. 21,
  59625. 21,
  59626. 21,
  59627. 12,
  59628. 21,
  59629. 21,
  59630. 21,
  59631. 21,
  59632. 21,
  59633. 21,
  59634. 21,
  59635. 21,
  59636. 21,
  59637. 21,
  59638. 21,
  59639. 21,
  59640. 21,
  59641. 21,
  59642. 21,
  59643. 21,
  59644. 21,
  59645. 21,
  59646. 21,
  59647. 21,
  59648. 21,
  59649. 12,
  59650. 12,
  59651. 12,
  59652. 12,
  59653. 21,
  59654. 12,
  59655. 12,
  59656. 12,
  59657. 12,
  59658. 21,
  59659. 21,
  59660. 21,
  59661. 12,
  59662. 12,
  59663. 12,
  59664. 12,
  59665. 12,
  59666. 12,
  59667. 12,
  59668. 12,
  59669. 12,
  59670. 12,
  59671. 12,
  59672. 12,
  59673. 12,
  59674. 12,
  59675. 12,
  59676. 12,
  59677. 12,
  59678. 12,
  59679. 12,
  59680. 12,
  59681. 12,
  59682. 12,
  59683. 12,
  59684. 12,
  59685. 12,
  59686. 12,
  59687. 12,
  59688. 12,
  59689. 12,
  59690. 12,
  59691. 12,
  59692. 12,
  59693. 12,
  59694. 12,
  59695. 12,
  59696. 12,
  59697. 12,
  59698. 12,
  59699. 12,
  59700. 12,
  59701. 12,
  59702. 12,
  59703. 12,
  59704. 21,
  59705. 21,
  59706. 21,
  59707. 21,
  59708. 21,
  59709. 21,
  59710. 21,
  59711. 21,
  59712. 21,
  59713. 21,
  59714. 21,
  59715. 21,
  59716. 21,
  59717. 21,
  59718. 21,
  59719. 21,
  59720. 21,
  59721. 21,
  59722. 21,
  59723. 21,
  59724. 21,
  59725. 21,
  59726. 21,
  59727. 21,
  59728. 21,
  59729. 21,
  59730. 21,
  59731. 21,
  59732. 21,
  59733. 21,
  59734. 21,
  59735. 21,
  59736. 12,
  59737. 12,
  59738. 12,
  59739. 12,
  59740. 12,
  59741. 12,
  59742. 12,
  59743. 12,
  59744. 12,
  59745. 12,
  59746. 12,
  59747. 12,
  59748. 12,
  59749. 12,
  59750. 12,
  59751. 12,
  59752. 12,
  59753. 12,
  59754. 12,
  59755. 12,
  59756. 12,
  59757. 12,
  59758. 12,
  59759. 12,
  59760. 12,
  59761. 12,
  59762. 12,
  59763. 12,
  59764. 12,
  59765. 12,
  59766. 12,
  59767. 12,
  59768. 12,
  59769. 12,
  59770. 12,
  59771. 12,
  59772. 12,
  59773. 12,
  59774. 12,
  59775. 12,
  59776. 12,
  59777. 12,
  59778. 12,
  59779. 12,
  59780. 12,
  59781. 12,
  59782. 12,
  59783. 12,
  59784. 12,
  59785. 12,
  59786. 12,
  59787. 12,
  59788. 12,
  59789. 12,
  59790. 12,
  59791. 12,
  59792. 12,
  59793. 12,
  59794. 12,
  59795. 12,
  59796. 12,
  59797. 18,
  59798. 12,
  59799. 39,
  59800. 17,
  59801. 17,
  59802. 17,
  59803. 17,
  59804. 17,
  59805. 17,
  59806. 17,
  59807. 4,
  59808. 17,
  59809. 17,
  59810. 17,
  59811. 20,
  59812. 21,
  59813. 21,
  59814. 21,
  59815. 21,
  59816. 17,
  59817. 4,
  59818. 17,
  59819. 17,
  59820. 19,
  59821. 29,
  59822. 29,
  59823. 12,
  59824. 3,
  59825. 3,
  59826. 0,
  59827. 3,
  59828. 3,
  59829. 3,
  59830. 0,
  59831. 3,
  59832. 29,
  59833. 29,
  59834. 12,
  59835. 12,
  59836. 15,
  59837. 15,
  59838. 15,
  59839. 17,
  59840. 30,
  59841. 30,
  59842. 21,
  59843. 21,
  59844. 21,
  59845. 21,
  59846. 21,
  59847. 4,
  59848. 10,
  59849. 10,
  59850. 10,
  59851. 10,
  59852. 10,
  59853. 10,
  59854. 10,
  59855. 10,
  59856. 12,
  59857. 3,
  59858. 3,
  59859. 29,
  59860. 5,
  59861. 5,
  59862. 12,
  59863. 12,
  59864. 12,
  59865. 12,
  59866. 12,
  59867. 12,
  59868. 8,
  59869. 0,
  59870. 1,
  59871. 5,
  59872. 5,
  59873. 5,
  59874. 12,
  59875. 12,
  59876. 12,
  59877. 12,
  59878. 12,
  59879. 12,
  59880. 12,
  59881. 12,
  59882. 12,
  59883. 12,
  59884. 12,
  59885. 12,
  59886. 17,
  59887. 12,
  59888. 17,
  59889. 17,
  59890. 17,
  59891. 17,
  59892. 12,
  59893. 17,
  59894. 17,
  59895. 17,
  59896. 22,
  59897. 12,
  59898. 12,
  59899. 12,
  59900. 12,
  59901. 39,
  59902. 39,
  59903. 39,
  59904. 39,
  59905. 39,
  59906. 21,
  59907. 21,
  59908. 21,
  59909. 21,
  59910. 21,
  59911. 21,
  59912. 12,
  59913. 12,
  59914. 39,
  59915. 39,
  59916. 29,
  59917. 12,
  59918. 12,
  59919. 12,
  59920. 12,
  59921. 12,
  59922. 12,
  59923. 12,
  59924. 12,
  59925. 0,
  59926. 1,
  59927. 29,
  59928. 12,
  59929. 29,
  59930. 29,
  59931. 29,
  59932. 29,
  59933. 12,
  59934. 12,
  59935. 12,
  59936. 12,
  59937. 12,
  59938. 12,
  59939. 12,
  59940. 12,
  59941. 0,
  59942. 1,
  59943. 39,
  59944. 12,
  59945. 12,
  59946. 12,
  59947. 12,
  59948. 12,
  59949. 12,
  59950. 12,
  59951. 12,
  59952. 12,
  59953. 12,
  59954. 12,
  59955. 12,
  59956. 12,
  59957. 39,
  59958. 39,
  59959. 39,
  59960. 9,
  59961. 9,
  59962. 9,
  59963. 9,
  59964. 9,
  59965. 9,
  59966. 9,
  59967. 10,
  59968. 9,
  59969. 9,
  59970. 9,
  59971. 9,
  59972. 9,
  59973. 9,
  59974. 9,
  59975. 9,
  59976. 9,
  59977. 9,
  59978. 9,
  59979. 9,
  59980. 9,
  59981. 9,
  59982. 10,
  59983. 9,
  59984. 9,
  59985. 9,
  59986. 9,
  59987. 39,
  59988. 39,
  59989. 39,
  59990. 39,
  59991. 39,
  59992. 39,
  59993. 39,
  59994. 39,
  59995. 39,
  59996. 39,
  59997. 39,
  59998. 39,
  59999. 39,
  60000. 39,
  60001. 39,
  60002. 39,
  60003. 39,
  60004. 39,
  60005. 39,
  60006. 39,
  60007. 39,
  60008. 21,
  60009. 21,
  60010. 21,
  60011. 21,
  60012. 21,
  60013. 21,
  60014. 21,
  60015. 21,
  60016. 21,
  60017. 21,
  60018. 21,
  60019. 21,
  60020. 21,
  60021. 21,
  60022. 21,
  60023. 21,
  60024. 21,
  60025. 21,
  60026. 21,
  60027. 21,
  60028. 21,
  60029. 21,
  60030. 21,
  60031. 21,
  60032. 21,
  60033. 21,
  60034. 21,
  60035. 21,
  60036. 21,
  60037. 21,
  60038. 21,
  60039. 21,
  60040. 21,
  60041. 39,
  60042. 39,
  60043. 39,
  60044. 39,
  60045. 39,
  60046. 39,
  60047. 39,
  60048. 39,
  60049. 39,
  60050. 39,
  60051. 39,
  60052. 39,
  60053. 39,
  60054. 39,
  60055. 39,
  60056. 12,
  60057. 12,
  60058. 12,
  60059. 10,
  60060. 12,
  60061. 29,
  60062. 12,
  60063. 12,
  60064. 12,
  60065. 10,
  60066. 12,
  60067. 12,
  60068. 12,
  60069. 12,
  60070. 12,
  60071. 12,
  60072. 12,
  60073. 12,
  60074. 12,
  60075. 29,
  60076. 12,
  60077. 12,
  60078. 9,
  60079. 12,
  60080. 12,
  60081. 12,
  60082. 12,
  60083. 12,
  60084. 12,
  60085. 12,
  60086. 12,
  60087. 12,
  60088. 12,
  60089. 29,
  60090. 29,
  60091. 12,
  60092. 12,
  60093. 12,
  60094. 12,
  60095. 12,
  60096. 12,
  60097. 12,
  60098. 12,
  60099. 29,
  60100. 12,
  60101. 12,
  60102. 12,
  60103. 12,
  60104. 12,
  60105. 12,
  60106. 12,
  60107. 12,
  60108. 12,
  60109. 12,
  60110. 12,
  60111. 12,
  60112. 12,
  60113. 12,
  60114. 12,
  60115. 12,
  60116. 12,
  60117. 12,
  60118. 12,
  60119. 12,
  60120. 12,
  60121. 12,
  60122. 12,
  60123. 12,
  60124. 12,
  60125. 12,
  60126. 12,
  60127. 12,
  60128. 12,
  60129. 12,
  60130. 12,
  60131. 12,
  60132. 12,
  60133. 12,
  60134. 12,
  60135. 12,
  60136. 12,
  60137. 12,
  60138. 12,
  60139. 12,
  60140. 29,
  60141. 29,
  60142. 12,
  60143. 12,
  60144. 12,
  60145. 12,
  60146. 12,
  60147. 29,
  60148. 12,
  60149. 12,
  60150. 29,
  60151. 12,
  60152. 29,
  60153. 29,
  60154. 29,
  60155. 29,
  60156. 29,
  60157. 29,
  60158. 29,
  60159. 29,
  60160. 29,
  60161. 29,
  60162. 29,
  60163. 29,
  60164. 12,
  60165. 12,
  60166. 12,
  60167. 12,
  60168. 29,
  60169. 29,
  60170. 29,
  60171. 29,
  60172. 29,
  60173. 29,
  60174. 29,
  60175. 29,
  60176. 29,
  60177. 29,
  60178. 12,
  60179. 12,
  60180. 12,
  60181. 12,
  60182. 12,
  60183. 12,
  60184. 12,
  60185. 12,
  60186. 12,
  60187. 12,
  60188. 12,
  60189. 12,
  60190. 12,
  60191. 12,
  60192. 12,
  60193. 29,
  60194. 29,
  60195. 29,
  60196. 29,
  60197. 29,
  60198. 29,
  60199. 29,
  60200. 29,
  60201. 29,
  60202. 29,
  60203. 29,
  60204. 29,
  60205. 29,
  60206. 29,
  60207. 29,
  60208. 29,
  60209. 29,
  60210. 12,
  60211. 12,
  60212. 12,
  60213. 12,
  60214. 12,
  60215. 12,
  60216. 12,
  60217. 12,
  60218. 12,
  60219. 12,
  60220. 12,
  60221. 12,
  60222. 12,
  60223. 12,
  60224. 12,
  60225. 12,
  60226. 12,
  60227. 12,
  60228. 12,
  60229. 12,
  60230. 12,
  60231. 12,
  60232. 12,
  60233. 12,
  60234. 12,
  60235. 12,
  60236. 12,
  60237. 12,
  60238. 12,
  60239. 12,
  60240. 12,
  60241. 12,
  60242. 12,
  60243. 12,
  60244. 12,
  60245. 12,
  60246. 12,
  60247. 12,
  60248. 12,
  60249. 12,
  60250. 12,
  60251. 12,
  60252. 12,
  60253. 12,
  60254. 12,
  60255. 12,
  60256. 12,
  60257. 12,
  60258. 12,
  60259. 12,
  60260. 12,
  60261. 12,
  60262. 12,
  60263. 12,
  60264. 12,
  60265. 12,
  60266. 29,
  60267. 12,
  60268. 29,
  60269. 12,
  60270. 12,
  60271. 12,
  60272. 12,
  60273. 12,
  60274. 12,
  60275. 12,
  60276. 12,
  60277. 12,
  60278. 12,
  60279. 12,
  60280. 12,
  60281. 12,
  60282. 12,
  60283. 12,
  60284. 12,
  60285. 12,
  60286. 12,
  60287. 12,
  60288. 12,
  60289. 12,
  60290. 12,
  60291. 12,
  60292. 12,
  60293. 12,
  60294. 12,
  60295. 12,
  60296. 12,
  60297. 12,
  60298. 12,
  60299. 12,
  60300. 12,
  60301. 12,
  60302. 12,
  60303. 12,
  60304. 12,
  60305. 12,
  60306. 12,
  60307. 12,
  60308. 12,
  60309. 12,
  60310. 12,
  60311. 12,
  60312. 29,
  60313. 12,
  60314. 29,
  60315. 29,
  60316. 12,
  60317. 12,
  60318. 12,
  60319. 29,
  60320. 29,
  60321. 12,
  60322. 12,
  60323. 29,
  60324. 12,
  60325. 12,
  60326. 12,
  60327. 29,
  60328. 12,
  60329. 29,
  60330. 9,
  60331. 9,
  60332. 12,
  60333. 29,
  60334. 12,
  60335. 12,
  60336. 12,
  60337. 12,
  60338. 29,
  60339. 12,
  60340. 12,
  60341. 29,
  60342. 29,
  60343. 29,
  60344. 29,
  60345. 12,
  60346. 12,
  60347. 29,
  60348. 12,
  60349. 29,
  60350. 12,
  60351. 29,
  60352. 29,
  60353. 29,
  60354. 29,
  60355. 29,
  60356. 29,
  60357. 12,
  60358. 29,
  60359. 12,
  60360. 12,
  60361. 12,
  60362. 12,
  60363. 12,
  60364. 29,
  60365. 29,
  60366. 29,
  60367. 29,
  60368. 12,
  60369. 12,
  60370. 12,
  60371. 12,
  60372. 29,
  60373. 29,
  60374. 12,
  60375. 12,
  60376. 12,
  60377. 12,
  60378. 12,
  60379. 12,
  60380. 12,
  60381. 12,
  60382. 12,
  60383. 12,
  60384. 29,
  60385. 12,
  60386. 12,
  60387. 12,
  60388. 29,
  60389. 12,
  60390. 12,
  60391. 12,
  60392. 12,
  60393. 12,
  60394. 29,
  60395. 12,
  60396. 12,
  60397. 12,
  60398. 12,
  60399. 12,
  60400. 12,
  60401. 12,
  60402. 12,
  60403. 12,
  60404. 12,
  60405. 12,
  60406. 12,
  60407. 12,
  60408. 29,
  60409. 29,
  60410. 12,
  60411. 12,
  60412. 29,
  60413. 29,
  60414. 29,
  60415. 29,
  60416. 12,
  60417. 12,
  60418. 29,
  60419. 29,
  60420. 12,
  60421. 12,
  60422. 29,
  60423. 29,
  60424. 12,
  60425. 12,
  60426. 12,
  60427. 12,
  60428. 12,
  60429. 12,
  60430. 12,
  60431. 12,
  60432. 12,
  60433. 12,
  60434. 12,
  60435. 12,
  60436. 12,
  60437. 12,
  60438. 12,
  60439. 12,
  60440. 12,
  60441. 12,
  60442. 29,
  60443. 29,
  60444. 12,
  60445. 12,
  60446. 29,
  60447. 29,
  60448. 12,
  60449. 12,
  60450. 12,
  60451. 12,
  60452. 12,
  60453. 12,
  60454. 12,
  60455. 12,
  60456. 12,
  60457. 12,
  60458. 12,
  60459. 12,
  60460. 12,
  60461. 29,
  60462. 12,
  60463. 12,
  60464. 12,
  60465. 29,
  60466. 12,
  60467. 12,
  60468. 12,
  60469. 12,
  60470. 12,
  60471. 12,
  60472. 12,
  60473. 12,
  60474. 12,
  60475. 12,
  60476. 12,
  60477. 29,
  60478. 12,
  60479. 12,
  60480. 12,
  60481. 12,
  60482. 12,
  60483. 12,
  60484. 12,
  60485. 12,
  60486. 12,
  60487. 12,
  60488. 12,
  60489. 12,
  60490. 12,
  60491. 12,
  60492. 12,
  60493. 12,
  60494. 12,
  60495. 12,
  60496. 12,
  60497. 12,
  60498. 12,
  60499. 12,
  60500. 12,
  60501. 12,
  60502. 12,
  60503. 29,
  60504. 12,
  60505. 12,
  60506. 12,
  60507. 12,
  60508. 12,
  60509. 12,
  60510. 12,
  60511. 12,
  60512. 12,
  60513. 12,
  60514. 12,
  60515. 12,
  60516. 12,
  60517. 12,
  60518. 12,
  60519. 12,
  60520. 12,
  60521. 12,
  60522. 12,
  60523. 12,
  60524. 12,
  60525. 12,
  60526. 12,
  60527. 12,
  60528. 12,
  60529. 12,
  60530. 12,
  60531. 12,
  60532. 12,
  60533. 12,
  60534. 12,
  60535. 12,
  60536. 12,
  60537. 12,
  60538. 12,
  60539. 12,
  60540. 12,
  60541. 12,
  60542. 12,
  60543. 12,
  60544. 12,
  60545. 12,
  60546. 12,
  60547. 12,
  60548. 12,
  60549. 12,
  60550. 12,
  60551. 12,
  60552. 12,
  60553. 12,
  60554. 29,
  60555. 12,
  60556. 12,
  60557. 12,
  60558. 12,
  60559. 12,
  60560. 12,
  60561. 12,
  60562. 14,
  60563. 14,
  60564. 12,
  60565. 12,
  60566. 12,
  60567. 12,
  60568. 12,
  60569. 12,
  60570. 12,
  60571. 12,
  60572. 12,
  60573. 12,
  60574. 12,
  60575. 12,
  60576. 12,
  60577. 0,
  60578. 1,
  60579. 12,
  60580. 12,
  60581. 12,
  60582. 12,
  60583. 12,
  60584. 12,
  60585. 12,
  60586. 12,
  60587. 12,
  60588. 12,
  60589. 12,
  60590. 12,
  60591. 12,
  60592. 12,
  60593. 12,
  60594. 12,
  60595. 12,
  60596. 12,
  60597. 12,
  60598. 12,
  60599. 12,
  60600. 12,
  60601. 12,
  60602. 12,
  60603. 12,
  60604. 12,
  60605. 12,
  60606. 12,
  60607. 12,
  60608. 12,
  60609. 12,
  60610. 12,
  60611. 12,
  60612. 12,
  60613. 12,
  60614. 12,
  60615. 12,
  60616. 12,
  60617. 12,
  60618. 12,
  60619. 12,
  60620. 12,
  60621. 12,
  60622. 12,
  60623. 12,
  60624. 12,
  60625. 12,
  60626. 12,
  60627. 12,
  60628. 12,
  60629. 12,
  60630. 12,
  60631. 12,
  60632. 12,
  60633. 12,
  60634. 12,
  60635. 12,
  60636. 12,
  60637. 12,
  60638. 12,
  60639. 12,
  60640. 12,
  60641. 12,
  60642. 12,
  60643. 12,
  60644. 12,
  60645. 12,
  60646. 12,
  60647. 12,
  60648. 14,
  60649. 14,
  60650. 14,
  60651. 14,
  60652. 39,
  60653. 39,
  60654. 39,
  60655. 39,
  60656. 39,
  60657. 39,
  60658. 39,
  60659. 39,
  60660. 39,
  60661. 39,
  60662. 39,
  60663. 39,
  60664. 12,
  60665. 12,
  60666. 12,
  60667. 12,
  60668. 12,
  60669. 12,
  60670. 12,
  60671. 12,
  60672. 12,
  60673. 12,
  60674. 12,
  60675. 12,
  60676. 12,
  60677. 12,
  60678. 12,
  60679. 12,
  60680. 12,
  60681. 12,
  60682. 12,
  60683. 12,
  60684. 12,
  60685. 12,
  60686. 12,
  60687. 12,
  60688. 12,
  60689. 12,
  60690. 12,
  60691. 12,
  60692. 12,
  60693. 12,
  60694. 12,
  60695. 12,
  60696. 12,
  60697. 12,
  60698. 12,
  60699. 12,
  60700. 12,
  60701. 12,
  60702. 12,
  60703. 12,
  60704. 12,
  60705. 12,
  60706. 12,
  60707. 39,
  60708. 39,
  60709. 39,
  60710. 39,
  60711. 39,
  60712. 39,
  60713. 39,
  60714. 39,
  60715. 39,
  60716. 39,
  60717. 39,
  60718. 39,
  60719. 39,
  60720. 39,
  60721. 39,
  60722. 39,
  60723. 39,
  60724. 39,
  60725. 39,
  60726. 39,
  60727. 39,
  60728. 29,
  60729. 29,
  60730. 29,
  60731. 29,
  60732. 29,
  60733. 29,
  60734. 29,
  60735. 29,
  60736. 29,
  60737. 29,
  60738. 29,
  60739. 29,
  60740. 29,
  60741. 29,
  60742. 29,
  60743. 29,
  60744. 29,
  60745. 29,
  60746. 29,
  60747. 29,
  60748. 29,
  60749. 29,
  60750. 29,
  60751. 29,
  60752. 29,
  60753. 29,
  60754. 29,
  60755. 29,
  60756. 29,
  60757. 29,
  60758. 29,
  60759. 29,
  60760. 29,
  60761. 29,
  60762. 29,
  60763. 29,
  60764. 29,
  60765. 29,
  60766. 29,
  60767. 29,
  60768. 29,
  60769. 29,
  60770. 29,
  60771. 29,
  60772. 29,
  60773. 29,
  60774. 29,
  60775. 29,
  60776. 29,
  60777. 29,
  60778. 29,
  60779. 29,
  60780. 29,
  60781. 29,
  60782. 29,
  60783. 29,
  60784. 29,
  60785. 29,
  60786. 29,
  60787. 29,
  60788. 29,
  60789. 29,
  60790. 29,
  60791. 12,
  60792. 29,
  60793. 29,
  60794. 29,
  60795. 29,
  60796. 29,
  60797. 29,
  60798. 29,
  60799. 29,
  60800. 29,
  60801. 29,
  60802. 29,
  60803. 29,
  60804. 29,
  60805. 29,
  60806. 29,
  60807. 29,
  60808. 29,
  60809. 29,
  60810. 29,
  60811. 29,
  60812. 29,
  60813. 29,
  60814. 29,
  60815. 29,
  60816. 29,
  60817. 29,
  60818. 29,
  60819. 29,
  60820. 29,
  60821. 29,
  60822. 29,
  60823. 29,
  60824. 29,
  60825. 29,
  60826. 29,
  60827. 29,
  60828. 29,
  60829. 29,
  60830. 29,
  60831. 29,
  60832. 29,
  60833. 29,
  60834. 29,
  60835. 29,
  60836. 12,
  60837. 12,
  60838. 12,
  60839. 12,
  60840. 29,
  60841. 29,
  60842. 29,
  60843. 29,
  60844. 29,
  60845. 29,
  60846. 29,
  60847. 29,
  60848. 29,
  60849. 29,
  60850. 29,
  60851. 29,
  60852. 29,
  60853. 29,
  60854. 29,
  60855. 29,
  60856. 29,
  60857. 29,
  60858. 29,
  60859. 29,
  60860. 29,
  60861. 29,
  60862. 29,
  60863. 29,
  60864. 29,
  60865. 29,
  60866. 29,
  60867. 29,
  60868. 29,
  60869. 29,
  60870. 29,
  60871. 29,
  60872. 29,
  60873. 29,
  60874. 29,
  60875. 29,
  60876. 29,
  60877. 12,
  60878. 12,
  60879. 12,
  60880. 12,
  60881. 12,
  60882. 12,
  60883. 12,
  60884. 12,
  60885. 12,
  60886. 12,
  60887. 12,
  60888. 29,
  60889. 29,
  60890. 29,
  60891. 29,
  60892. 29,
  60893. 29,
  60894. 29,
  60895. 29,
  60896. 29,
  60897. 29,
  60898. 29,
  60899. 29,
  60900. 29,
  60901. 29,
  60902. 29,
  60903. 29,
  60904. 12,
  60905. 12,
  60906. 29,
  60907. 29,
  60908. 29,
  60909. 29,
  60910. 12,
  60911. 12,
  60912. 12,
  60913. 12,
  60914. 12,
  60915. 12,
  60916. 12,
  60917. 12,
  60918. 12,
  60919. 12,
  60920. 29,
  60921. 29,
  60922. 12,
  60923. 29,
  60924. 29,
  60925. 29,
  60926. 29,
  60927. 29,
  60928. 29,
  60929. 29,
  60930. 12,
  60931. 12,
  60932. 12,
  60933. 12,
  60934. 12,
  60935. 12,
  60936. 12,
  60937. 12,
  60938. 29,
  60939. 29,
  60940. 12,
  60941. 12,
  60942. 29,
  60943. 29,
  60944. 12,
  60945. 12,
  60946. 12,
  60947. 12,
  60948. 29,
  60949. 29,
  60950. 12,
  60951. 12,
  60952. 29,
  60953. 29,
  60954. 12,
  60955. 12,
  60956. 12,
  60957. 12,
  60958. 29,
  60959. 29,
  60960. 29,
  60961. 12,
  60962. 12,
  60963. 29,
  60964. 12,
  60965. 12,
  60966. 29,
  60967. 29,
  60968. 29,
  60969. 29,
  60970. 12,
  60971. 12,
  60972. 12,
  60973. 12,
  60974. 12,
  60975. 12,
  60976. 12,
  60977. 12,
  60978. 12,
  60979. 12,
  60980. 12,
  60981. 12,
  60982. 12,
  60983. 12,
  60984. 12,
  60985. 12,
  60986. 29,
  60987. 29,
  60988. 29,
  60989. 29,
  60990. 12,
  60991. 12,
  60992. 12,
  60993. 12,
  60994. 12,
  60995. 12,
  60996. 12,
  60997. 12,
  60998. 12,
  60999. 29,
  61000. 12,
  61001. 12,
  61002. 12,
  61003. 12,
  61004. 12,
  61005. 12,
  61006. 12,
  61007. 12,
  61008. 12,
  61009. 12,
  61010. 12,
  61011. 12,
  61012. 12,
  61013. 12,
  61014. 12,
  61015. 12,
  61016. 14,
  61017. 14,
  61018. 14,
  61019. 14,
  61020. 12,
  61021. 29,
  61022. 29,
  61023. 12,
  61024. 12,
  61025. 29,
  61026. 12,
  61027. 12,
  61028. 12,
  61029. 12,
  61030. 29,
  61031. 29,
  61032. 12,
  61033. 12,
  61034. 12,
  61035. 12,
  61036. 14,
  61037. 14,
  61038. 29,
  61039. 29,
  61040. 14,
  61041. 12,
  61042. 14,
  61043. 14,
  61044. 14,
  61045. 14,
  61046. 14,
  61047. 14,
  61048. 12,
  61049. 12,
  61050. 12,
  61051. 12,
  61052. 12,
  61053. 12,
  61054. 12,
  61055. 12,
  61056. 12,
  61057. 12,
  61058. 12,
  61059. 12,
  61060. 12,
  61061. 12,
  61062. 12,
  61063. 12,
  61064. 12,
  61065. 12,
  61066. 12,
  61067. 12,
  61068. 12,
  61069. 12,
  61070. 12,
  61071. 12,
  61072. 12,
  61073. 14,
  61074. 14,
  61075. 14,
  61076. 12,
  61077. 12,
  61078. 12,
  61079. 12,
  61080. 29,
  61081. 12,
  61082. 29,
  61083. 12,
  61084. 12,
  61085. 12,
  61086. 12,
  61087. 12,
  61088. 12,
  61089. 12,
  61090. 12,
  61091. 12,
  61092. 12,
  61093. 12,
  61094. 12,
  61095. 12,
  61096. 12,
  61097. 12,
  61098. 12,
  61099. 12,
  61100. 12,
  61101. 12,
  61102. 12,
  61103. 12,
  61104. 12,
  61105. 12,
  61106. 12,
  61107. 12,
  61108. 12,
  61109. 12,
  61110. 12,
  61111. 12,
  61112. 29,
  61113. 29,
  61114. 12,
  61115. 29,
  61116. 29,
  61117. 29,
  61118. 12,
  61119. 29,
  61120. 14,
  61121. 29,
  61122. 29,
  61123. 12,
  61124. 29,
  61125. 29,
  61126. 12,
  61127. 29,
  61128. 12,
  61129. 12,
  61130. 12,
  61131. 12,
  61132. 12,
  61133. 12,
  61134. 12,
  61135. 12,
  61136. 12,
  61137. 12,
  61138. 12,
  61139. 12,
  61140. 12,
  61141. 12,
  61142. 12,
  61143. 14,
  61144. 12,
  61145. 12,
  61146. 12,
  61147. 12,
  61148. 12,
  61149. 12,
  61150. 12,
  61151. 12,
  61152. 12,
  61153. 12,
  61154. 12,
  61155. 12,
  61156. 12,
  61157. 12,
  61158. 12,
  61159. 12,
  61160. 12,
  61161. 12,
  61162. 12,
  61163. 12,
  61164. 12,
  61165. 12,
  61166. 12,
  61167. 12,
  61168. 12,
  61169. 12,
  61170. 12,
  61171. 12,
  61172. 12,
  61173. 12,
  61174. 29,
  61175. 29,
  61176. 12,
  61177. 12,
  61178. 12,
  61179. 12,
  61180. 12,
  61181. 12,
  61182. 12,
  61183. 12,
  61184. 12,
  61185. 12,
  61186. 12,
  61187. 12,
  61188. 12,
  61189. 12,
  61190. 12,
  61191. 12,
  61192. 12,
  61193. 12,
  61194. 12,
  61195. 12,
  61196. 12,
  61197. 12,
  61198. 12,
  61199. 12,
  61200. 12,
  61201. 12,
  61202. 12,
  61203. 12,
  61204. 12,
  61205. 14,
  61206. 14,
  61207. 14,
  61208. 14,
  61209. 14,
  61210. 14,
  61211. 14,
  61212. 14,
  61213. 14,
  61214. 14,
  61215. 14,
  61216. 14,
  61217. 29,
  61218. 29,
  61219. 29,
  61220. 29,
  61221. 14,
  61222. 12,
  61223. 14,
  61224. 14,
  61225. 14,
  61226. 29,
  61227. 14,
  61228. 14,
  61229. 29,
  61230. 29,
  61231. 29,
  61232. 14,
  61233. 14,
  61234. 29,
  61235. 29,
  61236. 14,
  61237. 29,
  61238. 29,
  61239. 14,
  61240. 14,
  61241. 14,
  61242. 12,
  61243. 29,
  61244. 12,
  61245. 12,
  61246. 12,
  61247. 12,
  61248. 29,
  61249. 29,
  61250. 14,
  61251. 29,
  61252. 29,
  61253. 29,
  61254. 29,
  61255. 29,
  61256. 29,
  61257. 14,
  61258. 14,
  61259. 14,
  61260. 14,
  61261. 14,
  61262. 29,
  61263. 14,
  61264. 14,
  61265. 14,
  61266. 14,
  61267. 29,
  61268. 29,
  61269. 14,
  61270. 14,
  61271. 14,
  61272. 14,
  61273. 14,
  61274. 14,
  61275. 14,
  61276. 14,
  61277. 12,
  61278. 12,
  61279. 12,
  61280. 14,
  61281. 14,
  61282. 14,
  61283. 14,
  61284. 14,
  61285. 14,
  61286. 12,
  61287. 12,
  61288. 12,
  61289. 12,
  61290. 12,
  61291. 12,
  61292. 12,
  61293. 12,
  61294. 12,
  61295. 12,
  61296. 12,
  61297. 12,
  61298. 12,
  61299. 12,
  61300. 12,
  61301. 12,
  61302. 12,
  61303. 12,
  61304. 12,
  61305. 12,
  61306. 12,
  61307. 12,
  61308. 12,
  61309. 12,
  61310. 12,
  61311. 12,
  61312. 12,
  61313. 12,
  61314. 12,
  61315. 12,
  61316. 12,
  61317. 12,
  61318. 12,
  61319. 12,
  61320. 12,
  61321. 12,
  61322. 12,
  61323. 12,
  61324. 12,
  61325. 12,
  61326. 12,
  61327. 12,
  61328. 12,
  61329. 12,
  61330. 12,
  61331. 12,
  61332. 12,
  61333. 12,
  61334. 12,
  61335. 12,
  61336. 12,
  61337. 12,
  61338. 12,
  61339. 12,
  61340. 12,
  61341. 12,
  61342. 12,
  61343. 12,
  61344. 12,
  61345. 12,
  61346. 12,
  61347. 12,
  61348. 12,
  61349. 12,
  61350. 12,
  61351. 12,
  61352. 12,
  61353. 12,
  61354. 12,
  61355. 12,
  61356. 12,
  61357. 12,
  61358. 12,
  61359. 29,
  61360. 12,
  61361. 12,
  61362. 12,
  61363. 3,
  61364. 3,
  61365. 3,
  61366. 3,
  61367. 12,
  61368. 12,
  61369. 12,
  61370. 6,
  61371. 6,
  61372. 12,
  61373. 12,
  61374. 12,
  61375. 12,
  61376. 0,
  61377. 1,
  61378. 0,
  61379. 1,
  61380. 0,
  61381. 1,
  61382. 0,
  61383. 1,
  61384. 0,
  61385. 1,
  61386. 0,
  61387. 1,
  61388. 0,
  61389. 1,
  61390. 29,
  61391. 29,
  61392. 29,
  61393. 29,
  61394. 29,
  61395. 29,
  61396. 29,
  61397. 29,
  61398. 29,
  61399. 29,
  61400. 29,
  61401. 29,
  61402. 29,
  61403. 29,
  61404. 29,
  61405. 29,
  61406. 29,
  61407. 29,
  61408. 29,
  61409. 29,
  61410. 29,
  61411. 29,
  61412. 29,
  61413. 29,
  61414. 29,
  61415. 29,
  61416. 29,
  61417. 29,
  61418. 29,
  61419. 29,
  61420. 12,
  61421. 12,
  61422. 12,
  61423. 12,
  61424. 12,
  61425. 12,
  61426. 12,
  61427. 12,
  61428. 12,
  61429. 12,
  61430. 12,
  61431. 12,
  61432. 12,
  61433. 12,
  61434. 12,
  61435. 12,
  61436. 12,
  61437. 12,
  61438. 12,
  61439. 12,
  61440. 12,
  61441. 12,
  61442. 12,
  61443. 12,
  61444. 12,
  61445. 12,
  61446. 12,
  61447. 12,
  61448. 12,
  61449. 12,
  61450. 12,
  61451. 12,
  61452. 12,
  61453. 12,
  61454. 12,
  61455. 12,
  61456. 12,
  61457. 12,
  61458. 12,
  61459. 12,
  61460. 12,
  61461. 12,
  61462. 12,
  61463. 12,
  61464. 12,
  61465. 12,
  61466. 12,
  61467. 12,
  61468. 12,
  61469. 0,
  61470. 1,
  61471. 12,
  61472. 12,
  61473. 12,
  61474. 12,
  61475. 12,
  61476. 12,
  61477. 12,
  61478. 12,
  61479. 12,
  61480. 12,
  61481. 12,
  61482. 12,
  61483. 12,
  61484. 12,
  61485. 12,
  61486. 12,
  61487. 12,
  61488. 12,
  61489. 12,
  61490. 12,
  61491. 12,
  61492. 12,
  61493. 12,
  61494. 12,
  61495. 12,
  61496. 12,
  61497. 12,
  61498. 12,
  61499. 12,
  61500. 12,
  61501. 12,
  61502. 0,
  61503. 1,
  61504. 0,
  61505. 1,
  61506. 0,
  61507. 1,
  61508. 0,
  61509. 1,
  61510. 0,
  61511. 1,
  61512. 12,
  61513. 12,
  61514. 12,
  61515. 12,
  61516. 12,
  61517. 12,
  61518. 12,
  61519. 12,
  61520. 12,
  61521. 12,
  61522. 12,
  61523. 12,
  61524. 12,
  61525. 12,
  61526. 12,
  61527. 12,
  61528. 12,
  61529. 12,
  61530. 12,
  61531. 12,
  61532. 12,
  61533. 12,
  61534. 12,
  61535. 12,
  61536. 12,
  61537. 12,
  61538. 12,
  61539. 12,
  61540. 12,
  61541. 12,
  61542. 12,
  61543. 12,
  61544. 12,
  61545. 12,
  61546. 12,
  61547. 12,
  61548. 12,
  61549. 12,
  61550. 12,
  61551. 12,
  61552. 12,
  61553. 12,
  61554. 12,
  61555. 12,
  61556. 12,
  61557. 12,
  61558. 12,
  61559. 12,
  61560. 12,
  61561. 12,
  61562. 12,
  61563. 0,
  61564. 1,
  61565. 0,
  61566. 1,
  61567. 0,
  61568. 1,
  61569. 0,
  61570. 1,
  61571. 0,
  61572. 1,
  61573. 0,
  61574. 1,
  61575. 0,
  61576. 1,
  61577. 0,
  61578. 1,
  61579. 0,
  61580. 1,
  61581. 0,
  61582. 1,
  61583. 0,
  61584. 1,
  61585. 12,
  61586. 12,
  61587. 12,
  61588. 12,
  61589. 12,
  61590. 12,
  61591. 12,
  61592. 12,
  61593. 12,
  61594. 12,
  61595. 12,
  61596. 12,
  61597. 12,
  61598. 12,
  61599. 12,
  61600. 12,
  61601. 12,
  61602. 12,
  61603. 12,
  61604. 12,
  61605. 12,
  61606. 12,
  61607. 12,
  61608. 12,
  61609. 12,
  61610. 12,
  61611. 12,
  61612. 12,
  61613. 12,
  61614. 12,
  61615. 12,
  61616. 12,
  61617. 12,
  61618. 12,
  61619. 12,
  61620. 12,
  61621. 12,
  61622. 12,
  61623. 12,
  61624. 12,
  61625. 12,
  61626. 12,
  61627. 12,
  61628. 12,
  61629. 12,
  61630. 12,
  61631. 12,
  61632. 12,
  61633. 12,
  61634. 12,
  61635. 12,
  61636. 12,
  61637. 12,
  61638. 12,
  61639. 12,
  61640. 12,
  61641. 12,
  61642. 12,
  61643. 12,
  61644. 12,
  61645. 12,
  61646. 12,
  61647. 12,
  61648. 0,
  61649. 1,
  61650. 0,
  61651. 1,
  61652. 12,
  61653. 12,
  61654. 12,
  61655. 12,
  61656. 12,
  61657. 12,
  61658. 12,
  61659. 12,
  61660. 12,
  61661. 12,
  61662. 12,
  61663. 12,
  61664. 12,
  61665. 12,
  61666. 12,
  61667. 12,
  61668. 12,
  61669. 12,
  61670. 12,
  61671. 12,
  61672. 12,
  61673. 12,
  61674. 12,
  61675. 12,
  61676. 12,
  61677. 12,
  61678. 12,
  61679. 12,
  61680. 12,
  61681. 12,
  61682. 12,
  61683. 12,
  61684. 0,
  61685. 1,
  61686. 12,
  61687. 12,
  61688. 12,
  61689. 12,
  61690. 12,
  61691. 12,
  61692. 12,
  61693. 12,
  61694. 12,
  61695. 12,
  61696. 12,
  61697. 12,
  61698. 12,
  61699. 12,
  61700. 12,
  61701. 12,
  61702. 12,
  61703. 12,
  61704. 12,
  61705. 12,
  61706. 12,
  61707. 12,
  61708. 12,
  61709. 12,
  61710. 12,
  61711. 12,
  61712. 12,
  61713. 12,
  61714. 12,
  61715. 12,
  61716. 12,
  61717. 12,
  61718. 12,
  61719. 12,
  61720. 12,
  61721. 12,
  61722. 12,
  61723. 12,
  61724. 12,
  61725. 12,
  61726. 12,
  61727. 12,
  61728. 12,
  61729. 12,
  61730. 12,
  61731. 12,
  61732. 12,
  61733. 12,
  61734. 12,
  61735. 12,
  61736. 12,
  61737. 12,
  61738. 12,
  61739. 12,
  61740. 12,
  61741. 29,
  61742. 29,
  61743. 29,
  61744. 29,
  61745. 29,
  61746. 39,
  61747. 39,
  61748. 39,
  61749. 39,
  61750. 39,
  61751. 39,
  61752. 12,
  61753. 12,
  61754. 12,
  61755. 12,
  61756. 12,
  61757. 12,
  61758. 12,
  61759. 12,
  61760. 12,
  61761. 12,
  61762. 12,
  61763. 12,
  61764. 12,
  61765. 12,
  61766. 12,
  61767. 12,
  61768. 12,
  61769. 12,
  61770. 12,
  61771. 12,
  61772. 12,
  61773. 12,
  61774. 12,
  61775. 12,
  61776. 12,
  61777. 12,
  61778. 12,
  61779. 12,
  61780. 12,
  61781. 12,
  61782. 12,
  61783. 12,
  61784. 12,
  61785. 12,
  61786. 12,
  61787. 12,
  61788. 12,
  61789. 12,
  61790. 12,
  61791. 12,
  61792. 12,
  61793. 12,
  61794. 12,
  61795. 12,
  61796. 12,
  61797. 12,
  61798. 12,
  61799. 21,
  61800. 21,
  61801. 21,
  61802. 12,
  61803. 12,
  61804. 39,
  61805. 39,
  61806. 39,
  61807. 39,
  61808. 39,
  61809. 6,
  61810. 17,
  61811. 17,
  61812. 17,
  61813. 12,
  61814. 6,
  61815. 17,
  61816. 12,
  61817. 12,
  61818. 12,
  61819. 12,
  61820. 12,
  61821. 12,
  61822. 12,
  61823. 12,
  61824. 12,
  61825. 12,
  61826. 12,
  61827. 12,
  61828. 12,
  61829. 12,
  61830. 12,
  61831. 12,
  61832. 12,
  61833. 12,
  61834. 12,
  61835. 12,
  61836. 12,
  61837. 12,
  61838. 12,
  61839. 12,
  61840. 12,
  61841. 12,
  61842. 12,
  61843. 12,
  61844. 12,
  61845. 12,
  61846. 12,
  61847. 12,
  61848. 12,
  61849. 12,
  61850. 12,
  61851. 12,
  61852. 12,
  61853. 12,
  61854. 12,
  61855. 12,
  61856. 12,
  61857. 12,
  61858. 12,
  61859. 12,
  61860. 12,
  61861. 12,
  61862. 12,
  61863. 12,
  61864. 17,
  61865. 39,
  61866. 39,
  61867. 39,
  61868. 39,
  61869. 39,
  61870. 39,
  61871. 39,
  61872. 39,
  61873. 39,
  61874. 39,
  61875. 39,
  61876. 39,
  61877. 39,
  61878. 39,
  61879. 21,
  61880. 12,
  61881. 12,
  61882. 12,
  61883. 12,
  61884. 12,
  61885. 12,
  61886. 12,
  61887. 12,
  61888. 12,
  61889. 12,
  61890. 12,
  61891. 12,
  61892. 12,
  61893. 12,
  61894. 12,
  61895. 12,
  61896. 12,
  61897. 12,
  61898. 12,
  61899. 12,
  61900. 12,
  61901. 12,
  61902. 12,
  61903. 12,
  61904. 12,
  61905. 12,
  61906. 12,
  61907. 12,
  61908. 12,
  61909. 12,
  61910. 12,
  61911. 12,
  61912. 12,
  61913. 12,
  61914. 12,
  61915. 12,
  61916. 12,
  61917. 12,
  61918. 12,
  61919. 12,
  61920. 12,
  61921. 12,
  61922. 12,
  61923. 12,
  61924. 12,
  61925. 12,
  61926. 12,
  61927. 12,
  61928. 12,
  61929. 12,
  61930. 12,
  61931. 12,
  61932. 12,
  61933. 12,
  61934. 12,
  61935. 12,
  61936. 12,
  61937. 12,
  61938. 12,
  61939. 12,
  61940. 12,
  61941. 12,
  61942. 12,
  61943. 39,
  61944. 21,
  61945. 21,
  61946. 21,
  61947. 21,
  61948. 21,
  61949. 21,
  61950. 21,
  61951. 21,
  61952. 21,
  61953. 21,
  61954. 21,
  61955. 21,
  61956. 21,
  61957. 21,
  61958. 21,
  61959. 21,
  61960. 21,
  61961. 21,
  61962. 21,
  61963. 21,
  61964. 21,
  61965. 21,
  61966. 21,
  61967. 21,
  61968. 21,
  61969. 21,
  61970. 21,
  61971. 21,
  61972. 21,
  61973. 21,
  61974. 21,
  61975. 21,
  61976. 3,
  61977. 3,
  61978. 3,
  61979. 3,
  61980. 3,
  61981. 3,
  61982. 3,
  61983. 3,
  61984. 3,
  61985. 3,
  61986. 3,
  61987. 3,
  61988. 3,
  61989. 3,
  61990. 17,
  61991. 17,
  61992. 17,
  61993. 17,
  61994. 17,
  61995. 17,
  61996. 17,
  61997. 17,
  61998. 12,
  61999. 17,
  62000. 0,
  62001. 17,
  62002. 12,
  62003. 12,
  62004. 3,
  62005. 3,
  62006. 12,
  62007. 12,
  62008. 3,
  62009. 3,
  62010. 0,
  62011. 1,
  62012. 0,
  62013. 1,
  62014. 0,
  62015. 1,
  62016. 0,
  62017. 1,
  62018. 17,
  62019. 17,
  62020. 17,
  62021. 17,
  62022. 6,
  62023. 12,
  62024. 17,
  62025. 17,
  62026. 12,
  62027. 17,
  62028. 17,
  62029. 12,
  62030. 12,
  62031. 12,
  62032. 12,
  62033. 12,
  62034. 19,
  62035. 19,
  62036. 39,
  62037. 39,
  62038. 39,
  62039. 39,
  62040. 14,
  62041. 14,
  62042. 14,
  62043. 14,
  62044. 14,
  62045. 14,
  62046. 14,
  62047. 14,
  62048. 14,
  62049. 14,
  62050. 14,
  62051. 14,
  62052. 14,
  62053. 14,
  62054. 14,
  62055. 14,
  62056. 14,
  62057. 14,
  62058. 14,
  62059. 14,
  62060. 14,
  62061. 14,
  62062. 14,
  62063. 14,
  62064. 14,
  62065. 14,
  62066. 14,
  62067. 14,
  62068. 14,
  62069. 14,
  62070. 14,
  62071. 14,
  62072. 14,
  62073. 1,
  62074. 1,
  62075. 14,
  62076. 14,
  62077. 5,
  62078. 14,
  62079. 14,
  62080. 0,
  62081. 1,
  62082. 0,
  62083. 1,
  62084. 0,
  62085. 1,
  62086. 0,
  62087. 1,
  62088. 0,
  62089. 1,
  62090. 14,
  62091. 14,
  62092. 0,
  62093. 1,
  62094. 0,
  62095. 1,
  62096. 0,
  62097. 1,
  62098. 0,
  62099. 1,
  62100. 5,
  62101. 0,
  62102. 1,
  62103. 1,
  62104. 14,
  62105. 14,
  62106. 14,
  62107. 14,
  62108. 14,
  62109. 14,
  62110. 14,
  62111. 14,
  62112. 14,
  62113. 14,
  62114. 21,
  62115. 21,
  62116. 21,
  62117. 21,
  62118. 21,
  62119. 21,
  62120. 14,
  62121. 14,
  62122. 14,
  62123. 14,
  62124. 14,
  62125. 14,
  62126. 14,
  62127. 14,
  62128. 14,
  62129. 14,
  62130. 14,
  62131. 5,
  62132. 5,
  62133. 14,
  62134. 14,
  62135. 14,
  62136. 39,
  62137. 32,
  62138. 14,
  62139. 32,
  62140. 14,
  62141. 32,
  62142. 14,
  62143. 32,
  62144. 14,
  62145. 32,
  62146. 14,
  62147. 14,
  62148. 14,
  62149. 14,
  62150. 14,
  62151. 14,
  62152. 14,
  62153. 14,
  62154. 14,
  62155. 14,
  62156. 14,
  62157. 14,
  62158. 14,
  62159. 14,
  62160. 14,
  62161. 14,
  62162. 14,
  62163. 14,
  62164. 14,
  62165. 14,
  62166. 14,
  62167. 14,
  62168. 14,
  62169. 14,
  62170. 14,
  62171. 32,
  62172. 14,
  62173. 14,
  62174. 14,
  62175. 14,
  62176. 14,
  62177. 14,
  62178. 14,
  62179. 14,
  62180. 14,
  62181. 14,
  62182. 14,
  62183. 14,
  62184. 14,
  62185. 14,
  62186. 14,
  62187. 14,
  62188. 14,
  62189. 14,
  62190. 14,
  62191. 14,
  62192. 14,
  62193. 14,
  62194. 14,
  62195. 14,
  62196. 14,
  62197. 14,
  62198. 14,
  62199. 14,
  62200. 14,
  62201. 14,
  62202. 14,
  62203. 32,
  62204. 14,
  62205. 32,
  62206. 14,
  62207. 32,
  62208. 14,
  62209. 14,
  62210. 14,
  62211. 14,
  62212. 14,
  62213. 14,
  62214. 32,
  62215. 14,
  62216. 14,
  62217. 14,
  62218. 14,
  62219. 14,
  62220. 14,
  62221. 32,
  62222. 32,
  62223. 39,
  62224. 39,
  62225. 21,
  62226. 21,
  62227. 5,
  62228. 5,
  62229. 5,
  62230. 5,
  62231. 14,
  62232. 5,
  62233. 32,
  62234. 14,
  62235. 32,
  62236. 14,
  62237. 32,
  62238. 14,
  62239. 32,
  62240. 14,
  62241. 32,
  62242. 14,
  62243. 14,
  62244. 14,
  62245. 14,
  62246. 14,
  62247. 14,
  62248. 14,
  62249. 14,
  62250. 14,
  62251. 14,
  62252. 14,
  62253. 14,
  62254. 14,
  62255. 14,
  62256. 14,
  62257. 14,
  62258. 14,
  62259. 14,
  62260. 14,
  62261. 14,
  62262. 14,
  62263. 14,
  62264. 14,
  62265. 14,
  62266. 14,
  62267. 32,
  62268. 14,
  62269. 14,
  62270. 14,
  62271. 14,
  62272. 14,
  62273. 14,
  62274. 14,
  62275. 14,
  62276. 14,
  62277. 14,
  62278. 14,
  62279. 14,
  62280. 14,
  62281. 14,
  62282. 14,
  62283. 14,
  62284. 14,
  62285. 14,
  62286. 14,
  62287. 14,
  62288. 14,
  62289. 14,
  62290. 14,
  62291. 14,
  62292. 14,
  62293. 14,
  62294. 14,
  62295. 14,
  62296. 14,
  62297. 14,
  62298. 14,
  62299. 32,
  62300. 14,
  62301. 32,
  62302. 14,
  62303. 32,
  62304. 14,
  62305. 14,
  62306. 14,
  62307. 14,
  62308. 14,
  62309. 14,
  62310. 32,
  62311. 14,
  62312. 14,
  62313. 14,
  62314. 14,
  62315. 14,
  62316. 14,
  62317. 32,
  62318. 32,
  62319. 14,
  62320. 14,
  62321. 14,
  62322. 14,
  62323. 5,
  62324. 32,
  62325. 5,
  62326. 5,
  62327. 14,
  62328. 14,
  62329. 14,
  62330. 14,
  62331. 14,
  62332. 14,
  62333. 14,
  62334. 14,
  62335. 14,
  62336. 14,
  62337. 14,
  62338. 14,
  62339. 14,
  62340. 14,
  62341. 14,
  62342. 14,
  62343. 14,
  62344. 14,
  62345. 14,
  62346. 14,
  62347. 14,
  62348. 14,
  62349. 14,
  62350. 14,
  62351. 14,
  62352. 14,
  62353. 14,
  62354. 14,
  62355. 14,
  62356. 14,
  62357. 14,
  62358. 14,
  62359. 14,
  62360. 14,
  62361. 14,
  62362. 14,
  62363. 14,
  62364. 39,
  62365. 39,
  62366. 39,
  62367. 39,
  62368. 39,
  62369. 39,
  62370. 39,
  62371. 39,
  62372. 39,
  62373. 39,
  62374. 39,
  62375. 39,
  62376. 32,
  62377. 32,
  62378. 32,
  62379. 32,
  62380. 32,
  62381. 32,
  62382. 32,
  62383. 32,
  62384. 32,
  62385. 32,
  62386. 32,
  62387. 32,
  62388. 32,
  62389. 32,
  62390. 32,
  62391. 32,
  62392. 14,
  62393. 14,
  62394. 14,
  62395. 14,
  62396. 14,
  62397. 14,
  62398. 14,
  62399. 14,
  62400. 14,
  62401. 14,
  62402. 14,
  62403. 14,
  62404. 14,
  62405. 14,
  62406. 14,
  62407. 14,
  62408. 14,
  62409. 14,
  62410. 14,
  62411. 14,
  62412. 14,
  62413. 14,
  62414. 14,
  62415. 14,
  62416. 14,
  62417. 14,
  62418. 14,
  62419. 14,
  62420. 14,
  62421. 14,
  62422. 14,
  62423. 14,
  62424. 14,
  62425. 14,
  62426. 14,
  62427. 14,
  62428. 14,
  62429. 14,
  62430. 14,
  62431. 14,
  62432. 29,
  62433. 29,
  62434. 29,
  62435. 29,
  62436. 29,
  62437. 29,
  62438. 29,
  62439. 29,
  62440. 14,
  62441. 14,
  62442. 14,
  62443. 14,
  62444. 14,
  62445. 14,
  62446. 14,
  62447. 14,
  62448. 14,
  62449. 14,
  62450. 14,
  62451. 14,
  62452. 14,
  62453. 14,
  62454. 14,
  62455. 14,
  62456. 14,
  62457. 14,
  62458. 14,
  62459. 14,
  62460. 14,
  62461. 14,
  62462. 14,
  62463. 14,
  62464. 14,
  62465. 14,
  62466. 14,
  62467. 14,
  62468. 14,
  62469. 14,
  62470. 14,
  62471. 14,
  62472. 14,
  62473. 14,
  62474. 14,
  62475. 14,
  62476. 14,
  62477. 14,
  62478. 14,
  62479. 14,
  62480. 14,
  62481. 14,
  62482. 14,
  62483. 14,
  62484. 14,
  62485. 14,
  62486. 14,
  62487. 14,
  62488. 12,
  62489. 12,
  62490. 12,
  62491. 12,
  62492. 12,
  62493. 12,
  62494. 12,
  62495. 12,
  62496. 12,
  62497. 12,
  62498. 12,
  62499. 12,
  62500. 12,
  62501. 12,
  62502. 12,
  62503. 12,
  62504. 12,
  62505. 12,
  62506. 12,
  62507. 12,
  62508. 12,
  62509. 12,
  62510. 12,
  62511. 12,
  62512. 12,
  62513. 12,
  62514. 12,
  62515. 12,
  62516. 12,
  62517. 12,
  62518. 12,
  62519. 12,
  62520. 14,
  62521. 14,
  62522. 14,
  62523. 14,
  62524. 14,
  62525. 14,
  62526. 14,
  62527. 14,
  62528. 14,
  62529. 14,
  62530. 14,
  62531. 14,
  62532. 14,
  62533. 14,
  62534. 14,
  62535. 14,
  62536. 14,
  62537. 14,
  62538. 14,
  62539. 14,
  62540. 14,
  62541. 14,
  62542. 14,
  62543. 14,
  62544. 14,
  62545. 14,
  62546. 14,
  62547. 14,
  62548. 14,
  62549. 14,
  62550. 14,
  62551. 14,
  62552. 14,
  62553. 14,
  62554. 14,
  62555. 14,
  62556. 14,
  62557. 14,
  62558. 14,
  62559. 14,
  62560. 14,
  62561. 14,
  62562. 14,
  62563. 14,
  62564. 14,
  62565. 14,
  62566. 14,
  62567. 14,
  62568. 14,
  62569. 14,
  62570. 14,
  62571. 14,
  62572. 14,
  62573. 5,
  62574. 14,
  62575. 14,
  62576. 14,
  62577. 14,
  62578. 14,
  62579. 14,
  62580. 14,
  62581. 14,
  62582. 14,
  62583. 14,
  62584. 14,
  62585. 14,
  62586. 14,
  62587. 14,
  62588. 14,
  62589. 14,
  62590. 14,
  62591. 14,
  62592. 14,
  62593. 14,
  62594. 14,
  62595. 14,
  62596. 14,
  62597. 14,
  62598. 14,
  62599. 14,
  62600. 14,
  62601. 14,
  62602. 14,
  62603. 14,
  62604. 14,
  62605. 14,
  62606. 14,
  62607. 14,
  62608. 14,
  62609. 14,
  62610. 14,
  62611. 14,
  62612. 14,
  62613. 14,
  62614. 14,
  62615. 14,
  62616. 14,
  62617. 14,
  62618. 14,
  62619. 14,
  62620. 14,
  62621. 14,
  62622. 14,
  62623. 39,
  62624. 39,
  62625. 39,
  62626. 39,
  62627. 39,
  62628. 39,
  62629. 39,
  62630. 39,
  62631. 39,
  62632. 12,
  62633. 12,
  62634. 12,
  62635. 12,
  62636. 12,
  62637. 12,
  62638. 12,
  62639. 12,
  62640. 12,
  62641. 12,
  62642. 12,
  62643. 12,
  62644. 12,
  62645. 12,
  62646. 12,
  62647. 12,
  62648. 12,
  62649. 12,
  62650. 12,
  62651. 12,
  62652. 12,
  62653. 12,
  62654. 12,
  62655. 12,
  62656. 12,
  62657. 12,
  62658. 12,
  62659. 12,
  62660. 12,
  62661. 12,
  62662. 12,
  62663. 12,
  62664. 12,
  62665. 12,
  62666. 12,
  62667. 12,
  62668. 12,
  62669. 12,
  62670. 12,
  62671. 12,
  62672. 12,
  62673. 12,
  62674. 12,
  62675. 12,
  62676. 12,
  62677. 12,
  62678. 17,
  62679. 17,
  62680. 12,
  62681. 12,
  62682. 12,
  62683. 12,
  62684. 12,
  62685. 12,
  62686. 12,
  62687. 12,
  62688. 12,
  62689. 12,
  62690. 12,
  62691. 12,
  62692. 12,
  62693. 12,
  62694. 12,
  62695. 12,
  62696. 12,
  62697. 12,
  62698. 12,
  62699. 12,
  62700. 12,
  62701. 12,
  62702. 12,
  62703. 12,
  62704. 12,
  62705. 12,
  62706. 12,
  62707. 12,
  62708. 12,
  62709. 12,
  62710. 12,
  62711. 12,
  62712. 12,
  62713. 12,
  62714. 12,
  62715. 12,
  62716. 12,
  62717. 12,
  62718. 12,
  62719. 12,
  62720. 12,
  62721. 12,
  62722. 12,
  62723. 12,
  62724. 12,
  62725. 17,
  62726. 6,
  62727. 17,
  62728. 12,
  62729. 12,
  62730. 12,
  62731. 12,
  62732. 12,
  62733. 12,
  62734. 12,
  62735. 12,
  62736. 12,
  62737. 12,
  62738. 12,
  62739. 12,
  62740. 12,
  62741. 12,
  62742. 12,
  62743. 12,
  62744. 11,
  62745. 11,
  62746. 11,
  62747. 11,
  62748. 11,
  62749. 11,
  62750. 11,
  62751. 11,
  62752. 11,
  62753. 11,
  62754. 12,
  62755. 12,
  62756. 12,
  62757. 12,
  62758. 12,
  62759. 12,
  62760. 12,
  62761. 12,
  62762. 12,
  62763. 12,
  62764. 12,
  62765. 12,
  62766. 12,
  62767. 12,
  62768. 12,
  62769. 12,
  62770. 12,
  62771. 12,
  62772. 12,
  62773. 12,
  62774. 12,
  62775. 12,
  62776. 12,
  62777. 12,
  62778. 12,
  62779. 12,
  62780. 12,
  62781. 12,
  62782. 12,
  62783. 12,
  62784. 12,
  62785. 12,
  62786. 12,
  62787. 12,
  62788. 12,
  62789. 12,
  62790. 12,
  62791. 12,
  62792. 12,
  62793. 12,
  62794. 12,
  62795. 12,
  62796. 12,
  62797. 12,
  62798. 12,
  62799. 12,
  62800. 12,
  62801. 12,
  62802. 12,
  62803. 12,
  62804. 12,
  62805. 12,
  62806. 12,
  62807. 12,
  62808. 12,
  62809. 12,
  62810. 12,
  62811. 12,
  62812. 12,
  62813. 12,
  62814. 12,
  62815. 12,
  62816. 12,
  62817. 12,
  62818. 12,
  62819. 12,
  62820. 12,
  62821. 12,
  62822. 12,
  62823. 21,
  62824. 21,
  62825. 21,
  62826. 21,
  62827. 12,
  62828. 21,
  62829. 21,
  62830. 21,
  62831. 21,
  62832. 21,
  62833. 21,
  62834. 21,
  62835. 21,
  62836. 21,
  62837. 21,
  62838. 12,
  62839. 12,
  62840. 12,
  62841. 12,
  62842. 12,
  62843. 12,
  62844. 12,
  62845. 12,
  62846. 12,
  62847. 12,
  62848. 12,
  62849. 12,
  62850. 12,
  62851. 12,
  62852. 12,
  62853. 12,
  62854. 12,
  62855. 12,
  62856. 12,
  62857. 12,
  62858. 12,
  62859. 12,
  62860. 12,
  62861. 12,
  62862. 12,
  62863. 12,
  62864. 39,
  62865. 39,
  62866. 39,
  62867. 39,
  62868. 39,
  62869. 39,
  62870. 39,
  62871. 21,
  62872. 12,
  62873. 12,
  62874. 12,
  62875. 12,
  62876. 12,
  62877. 12,
  62878. 12,
  62879. 12,
  62880. 12,
  62881. 12,
  62882. 12,
  62883. 12,
  62884. 12,
  62885. 12,
  62886. 12,
  62887. 12,
  62888. 12,
  62889. 12,
  62890. 12,
  62891. 12,
  62892. 12,
  62893. 12,
  62894. 12,
  62895. 12,
  62896. 12,
  62897. 12,
  62898. 12,
  62899. 12,
  62900. 12,
  62901. 12,
  62902. 12,
  62903. 12,
  62904. 12,
  62905. 12,
  62906. 12,
  62907. 12,
  62908. 12,
  62909. 12,
  62910. 12,
  62911. 12,
  62912. 12,
  62913. 12,
  62914. 12,
  62915. 12,
  62916. 12,
  62917. 12,
  62918. 12,
  62919. 12,
  62920. 21,
  62921. 21,
  62922. 12,
  62923. 17,
  62924. 17,
  62925. 17,
  62926. 17,
  62927. 17,
  62928. 39,
  62929. 39,
  62930. 39,
  62931. 39,
  62932. 39,
  62933. 39,
  62934. 39,
  62935. 39,
  62936. 12,
  62937. 12,
  62938. 12,
  62939. 12,
  62940. 12,
  62941. 12,
  62942. 12,
  62943. 12,
  62944. 12,
  62945. 12,
  62946. 12,
  62947. 12,
  62948. 12,
  62949. 12,
  62950. 12,
  62951. 12,
  62952. 12,
  62953. 12,
  62954. 12,
  62955. 12,
  62956. 12,
  62957. 12,
  62958. 12,
  62959. 12,
  62960. 12,
  62961. 12,
  62962. 12,
  62963. 12,
  62964. 12,
  62965. 12,
  62966. 12,
  62967. 12,
  62968. 12,
  62969. 12,
  62970. 21,
  62971. 12,
  62972. 12,
  62973. 12,
  62974. 21,
  62975. 12,
  62976. 12,
  62977. 12,
  62978. 12,
  62979. 21,
  62980. 12,
  62981. 12,
  62982. 12,
  62983. 12,
  62984. 12,
  62985. 12,
  62986. 12,
  62987. 12,
  62988. 12,
  62989. 12,
  62990. 12,
  62991. 12,
  62992. 12,
  62993. 12,
  62994. 12,
  62995. 12,
  62996. 12,
  62997. 12,
  62998. 12,
  62999. 12,
  63000. 12,
  63001. 12,
  63002. 12,
  63003. 21,
  63004. 21,
  63005. 21,
  63006. 21,
  63007. 21,
  63008. 12,
  63009. 12,
  63010. 12,
  63011. 12,
  63012. 12,
  63013. 12,
  63014. 12,
  63015. 12,
  63016. 12,
  63017. 12,
  63018. 12,
  63019. 12,
  63020. 12,
  63021. 12,
  63022. 12,
  63023. 12,
  63024. 10,
  63025. 12,
  63026. 12,
  63027. 12,
  63028. 12,
  63029. 12,
  63030. 12,
  63031. 12,
  63032. 12,
  63033. 12,
  63034. 12,
  63035. 12,
  63036. 12,
  63037. 12,
  63038. 12,
  63039. 12,
  63040. 12,
  63041. 12,
  63042. 12,
  63043. 12,
  63044. 12,
  63045. 12,
  63046. 12,
  63047. 12,
  63048. 12,
  63049. 12,
  63050. 12,
  63051. 12,
  63052. 12,
  63053. 12,
  63054. 12,
  63055. 12,
  63056. 12,
  63057. 12,
  63058. 12,
  63059. 12,
  63060. 12,
  63061. 12,
  63062. 12,
  63063. 12,
  63064. 12,
  63065. 12,
  63066. 12,
  63067. 12,
  63068. 12,
  63069. 12,
  63070. 12,
  63071. 12,
  63072. 12,
  63073. 12,
  63074. 12,
  63075. 12,
  63076. 12,
  63077. 12,
  63078. 12,
  63079. 12,
  63080. 12,
  63081. 12,
  63082. 12,
  63083. 12,
  63084. 18,
  63085. 18,
  63086. 6,
  63087. 6,
  63088. 39,
  63089. 39,
  63090. 39,
  63091. 39,
  63092. 39,
  63093. 39,
  63094. 39,
  63095. 39,
  63096. 21,
  63097. 21,
  63098. 12,
  63099. 12,
  63100. 12,
  63101. 12,
  63102. 12,
  63103. 12,
  63104. 12,
  63105. 12,
  63106. 12,
  63107. 12,
  63108. 12,
  63109. 12,
  63110. 12,
  63111. 12,
  63112. 12,
  63113. 12,
  63114. 12,
  63115. 12,
  63116. 12,
  63117. 12,
  63118. 12,
  63119. 12,
  63120. 12,
  63121. 12,
  63122. 12,
  63123. 12,
  63124. 12,
  63125. 12,
  63126. 12,
  63127. 12,
  63128. 12,
  63129. 12,
  63130. 12,
  63131. 12,
  63132. 12,
  63133. 12,
  63134. 12,
  63135. 12,
  63136. 12,
  63137. 12,
  63138. 12,
  63139. 12,
  63140. 12,
  63141. 12,
  63142. 12,
  63143. 12,
  63144. 12,
  63145. 12,
  63146. 12,
  63147. 12,
  63148. 21,
  63149. 21,
  63150. 21,
  63151. 21,
  63152. 21,
  63153. 21,
  63154. 21,
  63155. 21,
  63156. 21,
  63157. 21,
  63158. 21,
  63159. 21,
  63160. 21,
  63161. 21,
  63162. 21,
  63163. 21,
  63164. 21,
  63165. 39,
  63166. 39,
  63167. 39,
  63168. 39,
  63169. 39,
  63170. 39,
  63171. 39,
  63172. 39,
  63173. 39,
  63174. 17,
  63175. 17,
  63176. 11,
  63177. 11,
  63178. 11,
  63179. 11,
  63180. 11,
  63181. 11,
  63182. 11,
  63183. 11,
  63184. 11,
  63185. 11,
  63186. 39,
  63187. 39,
  63188. 39,
  63189. 39,
  63190. 39,
  63191. 39,
  63192. 21,
  63193. 21,
  63194. 21,
  63195. 21,
  63196. 21,
  63197. 21,
  63198. 21,
  63199. 21,
  63200. 21,
  63201. 21,
  63202. 21,
  63203. 21,
  63204. 21,
  63205. 21,
  63206. 21,
  63207. 21,
  63208. 21,
  63209. 21,
  63210. 12,
  63211. 12,
  63212. 12,
  63213. 12,
  63214. 12,
  63215. 12,
  63216. 12,
  63217. 12,
  63218. 12,
  63219. 12,
  63220. 39,
  63221. 39,
  63222. 39,
  63223. 39,
  63224. 11,
  63225. 11,
  63226. 11,
  63227. 11,
  63228. 11,
  63229. 11,
  63230. 11,
  63231. 11,
  63232. 11,
  63233. 11,
  63234. 12,
  63235. 12,
  63236. 12,
  63237. 12,
  63238. 12,
  63239. 12,
  63240. 12,
  63241. 12,
  63242. 12,
  63243. 12,
  63244. 12,
  63245. 12,
  63246. 12,
  63247. 12,
  63248. 12,
  63249. 12,
  63250. 12,
  63251. 12,
  63252. 12,
  63253. 12,
  63254. 12,
  63255. 12,
  63256. 12,
  63257. 12,
  63258. 12,
  63259. 12,
  63260. 12,
  63261. 12,
  63262. 21,
  63263. 21,
  63264. 21,
  63265. 21,
  63266. 21,
  63267. 21,
  63268. 21,
  63269. 21,
  63270. 17,
  63271. 17,
  63272. 12,
  63273. 12,
  63274. 12,
  63275. 12,
  63276. 12,
  63277. 12,
  63278. 12,
  63279. 12,
  63280. 12,
  63281. 12,
  63282. 12,
  63283. 12,
  63284. 12,
  63285. 12,
  63286. 12,
  63287. 12,
  63288. 12,
  63289. 12,
  63290. 12,
  63291. 12,
  63292. 12,
  63293. 12,
  63294. 12,
  63295. 21,
  63296. 21,
  63297. 21,
  63298. 21,
  63299. 21,
  63300. 21,
  63301. 21,
  63302. 21,
  63303. 21,
  63304. 21,
  63305. 21,
  63306. 21,
  63307. 21,
  63308. 39,
  63309. 39,
  63310. 39,
  63311. 39,
  63312. 39,
  63313. 39,
  63314. 39,
  63315. 39,
  63316. 39,
  63317. 39,
  63318. 39,
  63319. 12,
  63320. 25,
  63321. 25,
  63322. 25,
  63323. 25,
  63324. 25,
  63325. 25,
  63326. 25,
  63327. 25,
  63328. 25,
  63329. 25,
  63330. 25,
  63331. 25,
  63332. 25,
  63333. 25,
  63334. 25,
  63335. 25,
  63336. 25,
  63337. 25,
  63338. 25,
  63339. 25,
  63340. 25,
  63341. 25,
  63342. 25,
  63343. 25,
  63344. 25,
  63345. 25,
  63346. 25,
  63347. 25,
  63348. 25,
  63349. 39,
  63350. 39,
  63351. 39,
  63352. 21,
  63353. 21,
  63354. 21,
  63355. 21,
  63356. 12,
  63357. 12,
  63358. 12,
  63359. 12,
  63360. 12,
  63361. 12,
  63362. 12,
  63363. 12,
  63364. 12,
  63365. 12,
  63366. 12,
  63367. 12,
  63368. 12,
  63369. 12,
  63370. 12,
  63371. 12,
  63372. 12,
  63373. 12,
  63374. 12,
  63375. 12,
  63376. 12,
  63377. 12,
  63378. 12,
  63379. 12,
  63380. 12,
  63381. 12,
  63382. 12,
  63383. 12,
  63384. 12,
  63385. 12,
  63386. 12,
  63387. 12,
  63388. 12,
  63389. 12,
  63390. 12,
  63391. 12,
  63392. 12,
  63393. 12,
  63394. 12,
  63395. 12,
  63396. 12,
  63397. 12,
  63398. 12,
  63399. 12,
  63400. 12,
  63401. 12,
  63402. 12,
  63403. 21,
  63404. 21,
  63405. 21,
  63406. 21,
  63407. 21,
  63408. 21,
  63409. 21,
  63410. 21,
  63411. 21,
  63412. 21,
  63413. 21,
  63414. 21,
  63415. 21,
  63416. 21,
  63417. 12,
  63418. 12,
  63419. 12,
  63420. 12,
  63421. 12,
  63422. 12,
  63423. 17,
  63424. 17,
  63425. 17,
  63426. 12,
  63427. 12,
  63428. 12,
  63429. 12,
  63430. 12,
  63431. 12,
  63432. 11,
  63433. 11,
  63434. 11,
  63435. 11,
  63436. 11,
  63437. 11,
  63438. 11,
  63439. 11,
  63440. 11,
  63441. 11,
  63442. 39,
  63443. 39,
  63444. 39,
  63445. 39,
  63446. 12,
  63447. 12,
  63448. 12,
  63449. 12,
  63450. 12,
  63451. 12,
  63452. 12,
  63453. 12,
  63454. 12,
  63455. 12,
  63456. 12,
  63457. 12,
  63458. 12,
  63459. 12,
  63460. 12,
  63461. 12,
  63462. 12,
  63463. 12,
  63464. 12,
  63465. 12,
  63466. 12,
  63467. 12,
  63468. 12,
  63469. 12,
  63470. 12,
  63471. 12,
  63472. 12,
  63473. 12,
  63474. 12,
  63475. 12,
  63476. 12,
  63477. 12,
  63478. 12,
  63479. 12,
  63480. 12,
  63481. 12,
  63482. 12,
  63483. 12,
  63484. 12,
  63485. 12,
  63486. 12,
  63487. 12,
  63488. 12,
  63489. 21,
  63490. 21,
  63491. 21,
  63492. 21,
  63493. 21,
  63494. 21,
  63495. 21,
  63496. 21,
  63497. 21,
  63498. 21,
  63499. 21,
  63500. 21,
  63501. 21,
  63502. 21,
  63503. 39,
  63504. 39,
  63505. 39,
  63506. 39,
  63507. 39,
  63508. 39,
  63509. 39,
  63510. 39,
  63511. 39,
  63512. 12,
  63513. 12,
  63514. 12,
  63515. 21,
  63516. 12,
  63517. 12,
  63518. 12,
  63519. 12,
  63520. 12,
  63521. 12,
  63522. 12,
  63523. 12,
  63524. 21,
  63525. 21,
  63526. 39,
  63527. 39,
  63528. 11,
  63529. 11,
  63530. 11,
  63531. 11,
  63532. 11,
  63533. 11,
  63534. 11,
  63535. 11,
  63536. 11,
  63537. 11,
  63538. 39,
  63539. 39,
  63540. 12,
  63541. 17,
  63542. 17,
  63543. 17,
  63544. 36,
  63545. 36,
  63546. 36,
  63547. 36,
  63548. 36,
  63549. 36,
  63550. 36,
  63551. 36,
  63552. 36,
  63553. 36,
  63554. 36,
  63555. 36,
  63556. 36,
  63557. 36,
  63558. 36,
  63559. 36,
  63560. 36,
  63561. 36,
  63562. 36,
  63563. 36,
  63564. 36,
  63565. 36,
  63566. 36,
  63567. 36,
  63568. 36,
  63569. 36,
  63570. 36,
  63571. 36,
  63572. 36,
  63573. 36,
  63574. 36,
  63575. 36,
  63576. 12,
  63577. 12,
  63578. 12,
  63579. 12,
  63580. 12,
  63581. 12,
  63582. 12,
  63583. 12,
  63584. 12,
  63585. 12,
  63586. 12,
  63587. 21,
  63588. 21,
  63589. 21,
  63590. 21,
  63591. 21,
  63592. 17,
  63593. 17,
  63594. 12,
  63595. 12,
  63596. 12,
  63597. 21,
  63598. 21,
  63599. 39,
  63600. 39,
  63601. 39,
  63602. 39,
  63603. 39,
  63604. 39,
  63605. 39,
  63606. 39,
  63607. 39,
  63608. 39,
  63609. 12,
  63610. 12,
  63611. 12,
  63612. 12,
  63613. 12,
  63614. 12,
  63615. 12,
  63616. 12,
  63617. 12,
  63618. 12,
  63619. 12,
  63620. 12,
  63621. 12,
  63622. 12,
  63623. 12,
  63624. 12,
  63625. 12,
  63626. 12,
  63627. 12,
  63628. 12,
  63629. 12,
  63630. 12,
  63631. 12,
  63632. 12,
  63633. 12,
  63634. 12,
  63635. 12,
  63636. 12,
  63637. 12,
  63638. 12,
  63639. 12,
  63640. 12,
  63641. 12,
  63642. 12,
  63643. 12,
  63644. 12,
  63645. 12,
  63646. 12,
  63647. 12,
  63648. 12,
  63649. 12,
  63650. 12,
  63651. 12,
  63652. 12,
  63653. 12,
  63654. 12,
  63655. 12,
  63656. 12,
  63657. 12,
  63658. 12,
  63659. 12,
  63660. 12,
  63661. 12,
  63662. 12,
  63663. 12,
  63664. 12,
  63665. 12,
  63666. 12,
  63667. 12,
  63668. 12,
  63669. 12,
  63670. 12,
  63671. 12,
  63672. 12,
  63673. 12,
  63674. 12,
  63675. 21,
  63676. 21,
  63677. 21,
  63678. 21,
  63679. 21,
  63680. 21,
  63681. 21,
  63682. 21,
  63683. 17,
  63684. 21,
  63685. 21,
  63686. 39,
  63687. 39,
  63688. 11,
  63689. 11,
  63690. 11,
  63691. 11,
  63692. 11,
  63693. 11,
  63694. 11,
  63695. 11,
  63696. 11,
  63697. 11,
  63698. 39,
  63699. 39,
  63700. 39,
  63701. 39,
  63702. 39,
  63703. 39,
  63704. 23,
  63705. 24,
  63706. 24,
  63707. 24,
  63708. 24,
  63709. 24,
  63710. 24,
  63711. 24,
  63712. 24,
  63713. 24,
  63714. 24,
  63715. 24,
  63716. 24,
  63717. 24,
  63718. 24,
  63719. 24,
  63720. 24,
  63721. 24,
  63722. 24,
  63723. 24,
  63724. 24,
  63725. 24,
  63726. 24,
  63727. 24,
  63728. 24,
  63729. 24,
  63730. 24,
  63731. 24,
  63732. 23,
  63733. 24,
  63734. 24,
  63735. 24,
  63736. 24,
  63737. 24,
  63738. 24,
  63739. 24,
  63740. 24,
  63741. 24,
  63742. 24,
  63743. 24,
  63744. 24,
  63745. 24,
  63746. 24,
  63747. 24,
  63748. 24,
  63749. 24,
  63750. 24,
  63751. 24,
  63752. 24,
  63753. 24,
  63754. 24,
  63755. 24,
  63756. 24,
  63757. 24,
  63758. 24,
  63759. 24,
  63760. 23,
  63761. 24,
  63762. 24,
  63763. 24,
  63764. 24,
  63765. 24,
  63766. 24,
  63767. 24,
  63768. 24,
  63769. 24,
  63770. 24,
  63771. 24,
  63772. 24,
  63773. 24,
  63774. 24,
  63775. 24,
  63776. 24,
  63777. 24,
  63778. 24,
  63779. 24,
  63780. 24,
  63781. 24,
  63782. 24,
  63783. 24,
  63784. 24,
  63785. 24,
  63786. 24,
  63787. 24,
  63788. 23,
  63789. 24,
  63790. 24,
  63791. 24,
  63792. 24,
  63793. 24,
  63794. 24,
  63795. 24,
  63796. 24,
  63797. 24,
  63798. 24,
  63799. 24,
  63800. 24,
  63801. 24,
  63802. 24,
  63803. 24,
  63804. 24,
  63805. 24,
  63806. 24,
  63807. 24,
  63808. 24,
  63809. 24,
  63810. 24,
  63811. 24,
  63812. 24,
  63813. 24,
  63814. 24,
  63815. 24,
  63816. 23,
  63817. 24,
  63818. 24,
  63819. 24,
  63820. 24,
  63821. 24,
  63822. 24,
  63823. 24,
  63824. 24,
  63825. 24,
  63826. 24,
  63827. 24,
  63828. 24,
  63829. 24,
  63830. 24,
  63831. 24,
  63832. 24,
  63833. 24,
  63834. 24,
  63835. 24,
  63836. 24,
  63837. 24,
  63838. 24,
  63839. 24,
  63840. 24,
  63841. 24,
  63842. 24,
  63843. 24,
  63844. 23,
  63845. 24,
  63846. 24,
  63847. 24,
  63848. 24,
  63849. 24,
  63850. 24,
  63851. 24,
  63852. 24,
  63853. 24,
  63854. 24,
  63855. 24,
  63856. 24,
  63857. 24,
  63858. 24,
  63859. 24,
  63860. 24,
  63861. 24,
  63862. 24,
  63863. 24,
  63864. 24,
  63865. 24,
  63866. 24,
  63867. 24,
  63868. 24,
  63869. 24,
  63870. 24,
  63871. 24,
  63872. 23,
  63873. 24,
  63874. 24,
  63875. 24,
  63876. 24,
  63877. 24,
  63878. 24,
  63879. 24,
  63880. 24,
  63881. 24,
  63882. 24,
  63883. 24,
  63884. 24,
  63885. 24,
  63886. 24,
  63887. 24,
  63888. 24,
  63889. 24,
  63890. 24,
  63891. 24,
  63892. 24,
  63893. 24,
  63894. 24,
  63895. 24,
  63896. 24,
  63897. 24,
  63898. 24,
  63899. 24,
  63900. 23,
  63901. 24,
  63902. 24,
  63903. 24,
  63904. 24,
  63905. 24,
  63906. 24,
  63907. 24,
  63908. 24,
  63909. 24,
  63910. 24,
  63911. 24,
  63912. 24,
  63913. 24,
  63914. 24,
  63915. 24,
  63916. 24,
  63917. 24,
  63918. 24,
  63919. 24,
  63920. 24,
  63921. 24,
  63922. 24,
  63923. 24,
  63924. 24,
  63925. 24,
  63926. 24,
  63927. 24,
  63928. 23,
  63929. 24,
  63930. 24,
  63931. 24,
  63932. 24,
  63933. 24,
  63934. 24,
  63935. 24,
  63936. 24,
  63937. 24,
  63938. 24,
  63939. 24,
  63940. 24,
  63941. 24,
  63942. 24,
  63943. 24,
  63944. 24,
  63945. 24,
  63946. 24,
  63947. 24,
  63948. 24,
  63949. 24,
  63950. 24,
  63951. 24,
  63952. 24,
  63953. 24,
  63954. 24,
  63955. 24,
  63956. 23,
  63957. 24,
  63958. 24,
  63959. 24,
  63960. 24,
  63961. 24,
  63962. 24,
  63963. 24,
  63964. 24,
  63965. 24,
  63966. 24,
  63967. 24,
  63968. 24,
  63969. 24,
  63970. 24,
  63971. 24,
  63972. 24,
  63973. 24,
  63974. 24,
  63975. 24,
  63976. 24,
  63977. 24,
  63978. 24,
  63979. 24,
  63980. 24,
  63981. 24,
  63982. 24,
  63983. 24,
  63984. 23,
  63985. 24,
  63986. 24,
  63987. 24,
  63988. 24,
  63989. 24,
  63990. 24,
  63991. 24,
  63992. 24,
  63993. 24,
  63994. 24,
  63995. 24,
  63996. 24,
  63997. 24,
  63998. 24,
  63999. 24,
  64000. 24,
  64001. 24,
  64002. 24,
  64003. 24,
  64004. 24,
  64005. 24,
  64006. 24,
  64007. 24,
  64008. 24,
  64009. 24,
  64010. 24,
  64011. 24,
  64012. 23,
  64013. 24,
  64014. 24,
  64015. 24,
  64016. 24,
  64017. 24,
  64018. 24,
  64019. 24,
  64020. 24,
  64021. 24,
  64022. 24,
  64023. 24,
  64024. 24,
  64025. 24,
  64026. 24,
  64027. 24,
  64028. 24,
  64029. 24,
  64030. 24,
  64031. 24,
  64032. 24,
  64033. 24,
  64034. 24,
  64035. 24,
  64036. 24,
  64037. 24,
  64038. 24,
  64039. 24,
  64040. 23,
  64041. 24,
  64042. 24,
  64043. 24,
  64044. 24,
  64045. 24,
  64046. 24,
  64047. 24,
  64048. 24,
  64049. 24,
  64050. 24,
  64051. 24,
  64052. 24,
  64053. 24,
  64054. 24,
  64055. 24,
  64056. 24,
  64057. 24,
  64058. 24,
  64059. 24,
  64060. 24,
  64061. 24,
  64062. 24,
  64063. 24,
  64064. 24,
  64065. 24,
  64066. 24,
  64067. 24,
  64068. 23,
  64069. 24,
  64070. 24,
  64071. 24,
  64072. 24,
  64073. 24,
  64074. 24,
  64075. 24,
  64076. 24,
  64077. 24,
  64078. 24,
  64079. 24,
  64080. 24,
  64081. 24,
  64082. 24,
  64083. 24,
  64084. 24,
  64085. 24,
  64086. 24,
  64087. 24,
  64088. 24,
  64089. 24,
  64090. 24,
  64091. 24,
  64092. 24,
  64093. 24,
  64094. 24,
  64095. 24,
  64096. 23,
  64097. 24,
  64098. 24,
  64099. 24,
  64100. 24,
  64101. 24,
  64102. 24,
  64103. 24,
  64104. 24,
  64105. 24,
  64106. 24,
  64107. 24,
  64108. 24,
  64109. 24,
  64110. 24,
  64111. 24,
  64112. 24,
  64113. 24,
  64114. 24,
  64115. 24,
  64116. 24,
  64117. 24,
  64118. 24,
  64119. 24,
  64120. 24,
  64121. 24,
  64122. 24,
  64123. 24,
  64124. 23,
  64125. 24,
  64126. 24,
  64127. 24,
  64128. 24,
  64129. 24,
  64130. 24,
  64131. 24,
  64132. 24,
  64133. 24,
  64134. 24,
  64135. 24,
  64136. 24,
  64137. 24,
  64138. 24,
  64139. 24,
  64140. 24,
  64141. 24,
  64142. 24,
  64143. 24,
  64144. 24,
  64145. 24,
  64146. 24,
  64147. 24,
  64148. 24,
  64149. 24,
  64150. 24,
  64151. 24,
  64152. 23,
  64153. 24,
  64154. 24,
  64155. 24,
  64156. 24,
  64157. 24,
  64158. 24,
  64159. 24,
  64160. 24,
  64161. 24,
  64162. 24,
  64163. 24,
  64164. 24,
  64165. 24,
  64166. 24,
  64167. 24,
  64168. 24,
  64169. 24,
  64170. 24,
  64171. 24,
  64172. 24,
  64173. 24,
  64174. 24,
  64175. 24,
  64176. 24,
  64177. 24,
  64178. 24,
  64179. 24,
  64180. 23,
  64181. 24,
  64182. 24,
  64183. 24,
  64184. 24,
  64185. 24,
  64186. 24,
  64187. 24,
  64188. 24,
  64189. 24,
  64190. 24,
  64191. 24,
  64192. 24,
  64193. 24,
  64194. 24,
  64195. 24,
  64196. 24,
  64197. 24,
  64198. 24,
  64199. 24,
  64200. 24,
  64201. 24,
  64202. 24,
  64203. 24,
  64204. 24,
  64205. 24,
  64206. 24,
  64207. 24,
  64208. 23,
  64209. 24,
  64210. 24,
  64211. 24,
  64212. 24,
  64213. 24,
  64214. 24,
  64215. 24,
  64216. 24,
  64217. 24,
  64218. 24,
  64219. 24,
  64220. 24,
  64221. 24,
  64222. 24,
  64223. 24,
  64224. 24,
  64225. 24,
  64226. 24,
  64227. 24,
  64228. 24,
  64229. 24,
  64230. 24,
  64231. 24,
  64232. 24,
  64233. 24,
  64234. 24,
  64235. 24,
  64236. 23,
  64237. 24,
  64238. 24,
  64239. 24,
  64240. 24,
  64241. 24,
  64242. 24,
  64243. 24,
  64244. 24,
  64245. 24,
  64246. 24,
  64247. 24,
  64248. 24,
  64249. 24,
  64250. 24,
  64251. 24,
  64252. 24,
  64253. 24,
  64254. 24,
  64255. 24,
  64256. 24,
  64257. 24,
  64258. 24,
  64259. 24,
  64260. 24,
  64261. 24,
  64262. 24,
  64263. 24,
  64264. 23,
  64265. 24,
  64266. 24,
  64267. 24,
  64268. 24,
  64269. 24,
  64270. 24,
  64271. 24,
  64272. 24,
  64273. 24,
  64274. 24,
  64275. 24,
  64276. 24,
  64277. 24,
  64278. 24,
  64279. 24,
  64280. 24,
  64281. 24,
  64282. 24,
  64283. 24,
  64284. 24,
  64285. 24,
  64286. 24,
  64287. 24,
  64288. 24,
  64289. 24,
  64290. 24,
  64291. 24,
  64292. 23,
  64293. 24,
  64294. 24,
  64295. 24,
  64296. 24,
  64297. 24,
  64298. 24,
  64299. 24,
  64300. 24,
  64301. 24,
  64302. 24,
  64303. 24,
  64304. 24,
  64305. 24,
  64306. 24,
  64307. 24,
  64308. 24,
  64309. 24,
  64310. 24,
  64311. 24,
  64312. 24,
  64313. 24,
  64314. 24,
  64315. 24,
  64316. 24,
  64317. 24,
  64318. 24,
  64319. 24,
  64320. 23,
  64321. 24,
  64322. 24,
  64323. 24,
  64324. 24,
  64325. 24,
  64326. 24,
  64327. 24,
  64328. 24,
  64329. 24,
  64330. 24,
  64331. 24,
  64332. 24,
  64333. 24,
  64334. 24,
  64335. 24,
  64336. 24,
  64337. 24,
  64338. 24,
  64339. 24,
  64340. 24,
  64341. 24,
  64342. 24,
  64343. 24,
  64344. 24,
  64345. 24,
  64346. 24,
  64347. 24,
  64348. 23,
  64349. 24,
  64350. 24,
  64351. 24,
  64352. 24,
  64353. 24,
  64354. 24,
  64355. 24,
  64356. 24,
  64357. 24,
  64358. 24,
  64359. 24,
  64360. 24,
  64361. 24,
  64362. 24,
  64363. 24,
  64364. 24,
  64365. 24,
  64366. 24,
  64367. 24,
  64368. 24,
  64369. 24,
  64370. 24,
  64371. 24,
  64372. 24,
  64373. 24,
  64374. 24,
  64375. 24,
  64376. 23,
  64377. 24,
  64378. 24,
  64379. 24,
  64380. 24,
  64381. 24,
  64382. 24,
  64383. 24,
  64384. 24,
  64385. 24,
  64386. 24,
  64387. 24,
  64388. 24,
  64389. 24,
  64390. 24,
  64391. 24,
  64392. 24,
  64393. 24,
  64394. 24,
  64395. 24,
  64396. 24,
  64397. 24,
  64398. 24,
  64399. 24,
  64400. 24,
  64401. 24,
  64402. 24,
  64403. 24,
  64404. 23,
  64405. 24,
  64406. 24,
  64407. 24,
  64408. 24,
  64409. 24,
  64410. 24,
  64411. 24,
  64412. 24,
  64413. 24,
  64414. 24,
  64415. 24,
  64416. 24,
  64417. 24,
  64418. 24,
  64419. 24,
  64420. 24,
  64421. 24,
  64422. 24,
  64423. 24,
  64424. 24,
  64425. 24,
  64426. 24,
  64427. 24,
  64428. 24,
  64429. 24,
  64430. 24,
  64431. 24,
  64432. 23,
  64433. 24,
  64434. 24,
  64435. 24,
  64436. 24,
  64437. 24,
  64438. 24,
  64439. 24,
  64440. 24,
  64441. 24,
  64442. 24,
  64443. 24,
  64444. 24,
  64445. 24,
  64446. 24,
  64447. 24,
  64448. 24,
  64449. 24,
  64450. 24,
  64451. 24,
  64452. 24,
  64453. 24,
  64454. 24,
  64455. 24,
  64456. 24,
  64457. 24,
  64458. 24,
  64459. 24,
  64460. 23,
  64461. 24,
  64462. 24,
  64463. 24,
  64464. 24,
  64465. 24,
  64466. 24,
  64467. 24,
  64468. 24,
  64469. 24,
  64470. 24,
  64471. 24,
  64472. 24,
  64473. 24,
  64474. 24,
  64475. 24,
  64476. 24,
  64477. 24,
  64478. 24,
  64479. 24,
  64480. 24,
  64481. 24,
  64482. 24,
  64483. 24,
  64484. 24,
  64485. 24,
  64486. 24,
  64487. 24,
  64488. 23,
  64489. 24,
  64490. 24,
  64491. 24,
  64492. 24,
  64493. 24,
  64494. 24,
  64495. 24,
  64496. 24,
  64497. 24,
  64498. 24,
  64499. 24,
  64500. 24,
  64501. 24,
  64502. 24,
  64503. 24,
  64504. 24,
  64505. 24,
  64506. 24,
  64507. 24,
  64508. 24,
  64509. 24,
  64510. 24,
  64511. 24,
  64512. 24,
  64513. 24,
  64514. 24,
  64515. 24,
  64516. 23,
  64517. 24,
  64518. 24,
  64519. 24,
  64520. 24,
  64521. 24,
  64522. 24,
  64523. 24,
  64524. 24,
  64525. 24,
  64526. 24,
  64527. 24,
  64528. 24,
  64529. 24,
  64530. 24,
  64531. 24,
  64532. 24,
  64533. 24,
  64534. 24,
  64535. 24,
  64536. 24,
  64537. 24,
  64538. 24,
  64539. 24,
  64540. 24,
  64541. 24,
  64542. 24,
  64543. 24,
  64544. 23,
  64545. 24,
  64546. 24,
  64547. 24,
  64548. 24,
  64549. 24,
  64550. 24,
  64551. 24,
  64552. 24,
  64553. 24,
  64554. 24,
  64555. 24,
  64556. 24,
  64557. 24,
  64558. 24,
  64559. 24,
  64560. 24,
  64561. 24,
  64562. 24,
  64563. 24,
  64564. 24,
  64565. 24,
  64566. 24,
  64567. 24,
  64568. 24,
  64569. 24,
  64570. 24,
  64571. 24,
  64572. 23,
  64573. 24,
  64574. 24,
  64575. 24,
  64576. 24,
  64577. 24,
  64578. 24,
  64579. 24,
  64580. 24,
  64581. 24,
  64582. 24,
  64583. 24,
  64584. 24,
  64585. 24,
  64586. 24,
  64587. 24,
  64588. 24,
  64589. 24,
  64590. 24,
  64591. 24,
  64592. 24,
  64593. 24,
  64594. 24,
  64595. 24,
  64596. 24,
  64597. 24,
  64598. 24,
  64599. 24,
  64600. 23,
  64601. 24,
  64602. 24,
  64603. 24,
  64604. 24,
  64605. 24,
  64606. 24,
  64607. 24,
  64608. 24,
  64609. 24,
  64610. 24,
  64611. 24,
  64612. 24,
  64613. 24,
  64614. 24,
  64615. 24,
  64616. 24,
  64617. 24,
  64618. 24,
  64619. 24,
  64620. 24,
  64621. 24,
  64622. 24,
  64623. 24,
  64624. 24,
  64625. 24,
  64626. 24,
  64627. 24,
  64628. 23,
  64629. 24,
  64630. 24,
  64631. 24,
  64632. 24,
  64633. 24,
  64634. 24,
  64635. 24,
  64636. 24,
  64637. 24,
  64638. 24,
  64639. 24,
  64640. 24,
  64641. 24,
  64642. 24,
  64643. 24,
  64644. 24,
  64645. 24,
  64646. 24,
  64647. 24,
  64648. 24,
  64649. 24,
  64650. 24,
  64651. 24,
  64652. 24,
  64653. 24,
  64654. 24,
  64655. 24,
  64656. 23,
  64657. 24,
  64658. 24,
  64659. 24,
  64660. 24,
  64661. 24,
  64662. 24,
  64663. 24,
  64664. 24,
  64665. 24,
  64666. 24,
  64667. 24,
  64668. 24,
  64669. 24,
  64670. 24,
  64671. 24,
  64672. 24,
  64673. 24,
  64674. 24,
  64675. 24,
  64676. 24,
  64677. 24,
  64678. 24,
  64679. 24,
  64680. 24,
  64681. 24,
  64682. 24,
  64683. 24,
  64684. 23,
  64685. 24,
  64686. 24,
  64687. 24,
  64688. 24,
  64689. 24,
  64690. 24,
  64691. 24,
  64692. 24,
  64693. 24,
  64694. 24,
  64695. 24,
  64696. 24,
  64697. 24,
  64698. 24,
  64699. 24,
  64700. 24,
  64701. 24,
  64702. 24,
  64703. 24,
  64704. 24,
  64705. 24,
  64706. 24,
  64707. 24,
  64708. 24,
  64709. 24,
  64710. 24,
  64711. 24,
  64712. 23,
  64713. 24,
  64714. 24,
  64715. 24,
  64716. 24,
  64717. 24,
  64718. 24,
  64719. 24,
  64720. 24,
  64721. 24,
  64722. 24,
  64723. 24,
  64724. 24,
  64725. 24,
  64726. 24,
  64727. 24,
  64728. 24,
  64729. 24,
  64730. 24,
  64731. 24,
  64732. 24,
  64733. 24,
  64734. 24,
  64735. 24,
  64736. 24,
  64737. 24,
  64738. 24,
  64739. 24,
  64740. 23,
  64741. 24,
  64742. 24,
  64743. 24,
  64744. 24,
  64745. 24,
  64746. 24,
  64747. 24,
  64748. 24,
  64749. 24,
  64750. 24,
  64751. 24,
  64752. 24,
  64753. 24,
  64754. 24,
  64755. 24,
  64756. 24,
  64757. 24,
  64758. 24,
  64759. 24,
  64760. 24,
  64761. 24,
  64762. 24,
  64763. 24,
  64764. 24,
  64765. 24,
  64766. 24,
  64767. 24,
  64768. 23,
  64769. 24,
  64770. 24,
  64771. 24,
  64772. 24,
  64773. 24,
  64774. 24,
  64775. 24,
  64776. 24,
  64777. 24,
  64778. 24,
  64779. 24,
  64780. 24,
  64781. 24,
  64782. 24,
  64783. 24,
  64784. 24,
  64785. 24,
  64786. 24,
  64787. 24,
  64788. 24,
  64789. 24,
  64790. 24,
  64791. 24,
  64792. 24,
  64793. 24,
  64794. 24,
  64795. 24,
  64796. 23,
  64797. 24,
  64798. 24,
  64799. 24,
  64800. 24,
  64801. 24,
  64802. 24,
  64803. 24,
  64804. 24,
  64805. 24,
  64806. 24,
  64807. 24,
  64808. 24,
  64809. 24,
  64810. 24,
  64811. 24,
  64812. 24,
  64813. 24,
  64814. 24,
  64815. 24,
  64816. 24,
  64817. 24,
  64818. 24,
  64819. 24,
  64820. 24,
  64821. 24,
  64822. 24,
  64823. 24,
  64824. 23,
  64825. 24,
  64826. 24,
  64827. 24,
  64828. 24,
  64829. 24,
  64830. 24,
  64831. 24,
  64832. 24,
  64833. 24,
  64834. 24,
  64835. 24,
  64836. 24,
  64837. 24,
  64838. 24,
  64839. 24,
  64840. 24,
  64841. 24,
  64842. 24,
  64843. 24,
  64844. 24,
  64845. 24,
  64846. 24,
  64847. 24,
  64848. 24,
  64849. 24,
  64850. 24,
  64851. 24,
  64852. 23,
  64853. 24,
  64854. 24,
  64855. 24,
  64856. 24,
  64857. 24,
  64858. 24,
  64859. 24,
  64860. 24,
  64861. 24,
  64862. 24,
  64863. 24,
  64864. 24,
  64865. 24,
  64866. 24,
  64867. 24,
  64868. 24,
  64869. 24,
  64870. 24,
  64871. 24,
  64872. 24,
  64873. 24,
  64874. 24,
  64875. 24,
  64876. 24,
  64877. 24,
  64878. 24,
  64879. 24,
  64880. 23,
  64881. 24,
  64882. 24,
  64883. 24,
  64884. 24,
  64885. 24,
  64886. 24,
  64887. 24,
  64888. 24,
  64889. 24,
  64890. 24,
  64891. 24,
  64892. 24,
  64893. 24,
  64894. 24,
  64895. 24,
  64896. 24,
  64897. 24,
  64898. 24,
  64899. 24,
  64900. 24,
  64901. 24,
  64902. 24,
  64903. 24,
  64904. 24,
  64905. 24,
  64906. 24,
  64907. 24,
  64908. 23,
  64909. 24,
  64910. 24,
  64911. 24,
  64912. 24,
  64913. 24,
  64914. 24,
  64915. 24,
  64916. 24,
  64917. 24,
  64918. 24,
  64919. 24,
  64920. 24,
  64921. 24,
  64922. 24,
  64923. 24,
  64924. 24,
  64925. 24,
  64926. 24,
  64927. 24,
  64928. 24,
  64929. 24,
  64930. 24,
  64931. 24,
  64932. 24,
  64933. 24,
  64934. 24,
  64935. 24,
  64936. 23,
  64937. 24,
  64938. 24,
  64939. 24,
  64940. 24,
  64941. 24,
  64942. 24,
  64943. 24,
  64944. 24,
  64945. 24,
  64946. 24,
  64947. 24,
  64948. 24,
  64949. 24,
  64950. 24,
  64951. 24,
  64952. 24,
  64953. 24,
  64954. 24,
  64955. 24,
  64956. 24,
  64957. 24,
  64958. 24,
  64959. 24,
  64960. 24,
  64961. 24,
  64962. 24,
  64963. 24,
  64964. 23,
  64965. 24,
  64966. 24,
  64967. 24,
  64968. 24,
  64969. 24,
  64970. 24,
  64971. 24,
  64972. 24,
  64973. 24,
  64974. 24,
  64975. 24,
  64976. 24,
  64977. 24,
  64978. 24,
  64979. 24,
  64980. 24,
  64981. 24,
  64982. 24,
  64983. 24,
  64984. 24,
  64985. 24,
  64986. 24,
  64987. 24,
  64988. 24,
  64989. 24,
  64990. 24,
  64991. 24,
  64992. 23,
  64993. 24,
  64994. 24,
  64995. 24,
  64996. 24,
  64997. 24,
  64998. 24,
  64999. 24,
  65000. 24,
  65001. 24,
  65002. 24,
  65003. 24,
  65004. 24,
  65005. 24,
  65006. 24,
  65007. 24,
  65008. 24,
  65009. 24,
  65010. 24,
  65011. 24,
  65012. 24,
  65013. 24,
  65014. 24,
  65015. 24,
  65016. 24,
  65017. 24,
  65018. 24,
  65019. 24,
  65020. 23,
  65021. 24,
  65022. 24,
  65023. 24,
  65024. 24,
  65025. 24,
  65026. 24,
  65027. 24,
  65028. 24,
  65029. 24,
  65030. 24,
  65031. 24,
  65032. 24,
  65033. 24,
  65034. 24,
  65035. 24,
  65036. 24,
  65037. 24,
  65038. 24,
  65039. 24,
  65040. 24,
  65041. 24,
  65042. 24,
  65043. 24,
  65044. 24,
  65045. 24,
  65046. 24,
  65047. 24,
  65048. 23,
  65049. 24,
  65050. 24,
  65051. 24,
  65052. 24,
  65053. 24,
  65054. 24,
  65055. 24,
  65056. 24,
  65057. 24,
  65058. 24,
  65059. 24,
  65060. 24,
  65061. 24,
  65062. 24,
  65063. 24,
  65064. 24,
  65065. 24,
  65066. 24,
  65067. 24,
  65068. 24,
  65069. 24,
  65070. 24,
  65071. 24,
  65072. 24,
  65073. 24,
  65074. 24,
  65075. 24,
  65076. 23,
  65077. 24,
  65078. 24,
  65079. 24,
  65080. 24,
  65081. 24,
  65082. 24,
  65083. 24,
  65084. 24,
  65085. 24,
  65086. 24,
  65087. 24,
  65088. 24,
  65089. 24,
  65090. 24,
  65091. 24,
  65092. 24,
  65093. 24,
  65094. 24,
  65095. 24,
  65096. 24,
  65097. 24,
  65098. 24,
  65099. 24,
  65100. 24,
  65101. 24,
  65102. 24,
  65103. 24,
  65104. 23,
  65105. 24,
  65106. 24,
  65107. 24,
  65108. 24,
  65109. 24,
  65110. 24,
  65111. 24,
  65112. 24,
  65113. 24,
  65114. 24,
  65115. 24,
  65116. 24,
  65117. 24,
  65118. 24,
  65119. 24,
  65120. 24,
  65121. 24,
  65122. 24,
  65123. 24,
  65124. 24,
  65125. 24,
  65126. 24,
  65127. 24,
  65128. 24,
  65129. 24,
  65130. 24,
  65131. 24,
  65132. 23,
  65133. 24,
  65134. 24,
  65135. 24,
  65136. 24,
  65137. 24,
  65138. 24,
  65139. 24,
  65140. 24,
  65141. 24,
  65142. 24,
  65143. 24,
  65144. 24,
  65145. 24,
  65146. 24,
  65147. 24,
  65148. 24,
  65149. 24,
  65150. 24,
  65151. 24,
  65152. 24,
  65153. 24,
  65154. 24,
  65155. 24,
  65156. 24,
  65157. 24,
  65158. 24,
  65159. 24,
  65160. 23,
  65161. 24,
  65162. 24,
  65163. 24,
  65164. 24,
  65165. 24,
  65166. 24,
  65167. 24,
  65168. 24,
  65169. 24,
  65170. 24,
  65171. 24,
  65172. 24,
  65173. 24,
  65174. 24,
  65175. 24,
  65176. 24,
  65177. 24,
  65178. 24,
  65179. 24,
  65180. 24,
  65181. 24,
  65182. 24,
  65183. 24,
  65184. 24,
  65185. 24,
  65186. 24,
  65187. 24,
  65188. 23,
  65189. 24,
  65190. 24,
  65191. 24,
  65192. 24,
  65193. 24,
  65194. 24,
  65195. 24,
  65196. 24,
  65197. 24,
  65198. 24,
  65199. 24,
  65200. 24,
  65201. 24,
  65202. 24,
  65203. 24,
  65204. 24,
  65205. 24,
  65206. 24,
  65207. 24,
  65208. 24,
  65209. 24,
  65210. 24,
  65211. 24,
  65212. 24,
  65213. 24,
  65214. 24,
  65215. 24,
  65216. 23,
  65217. 24,
  65218. 24,
  65219. 24,
  65220. 24,
  65221. 24,
  65222. 24,
  65223. 24,
  65224. 24,
  65225. 24,
  65226. 24,
  65227. 24,
  65228. 24,
  65229. 24,
  65230. 24,
  65231. 24,
  65232. 24,
  65233. 24,
  65234. 24,
  65235. 24,
  65236. 24,
  65237. 24,
  65238. 24,
  65239. 24,
  65240. 24,
  65241. 24,
  65242. 24,
  65243. 24,
  65244. 23,
  65245. 24,
  65246. 24,
  65247. 24,
  65248. 24,
  65249. 24,
  65250. 24,
  65251. 24,
  65252. 24,
  65253. 24,
  65254. 24,
  65255. 24,
  65256. 24,
  65257. 24,
  65258. 24,
  65259. 24,
  65260. 24,
  65261. 24,
  65262. 24,
  65263. 24,
  65264. 24,
  65265. 24,
  65266. 24,
  65267. 24,
  65268. 24,
  65269. 24,
  65270. 24,
  65271. 24,
  65272. 23,
  65273. 24,
  65274. 24,
  65275. 24,
  65276. 24,
  65277. 24,
  65278. 24,
  65279. 24,
  65280. 24,
  65281. 24,
  65282. 24,
  65283. 24,
  65284. 24,
  65285. 24,
  65286. 24,
  65287. 24,
  65288. 24,
  65289. 24,
  65290. 24,
  65291. 24,
  65292. 24,
  65293. 24,
  65294. 24,
  65295. 24,
  65296. 24,
  65297. 24,
  65298. 24,
  65299. 24,
  65300. 23,
  65301. 24,
  65302. 24,
  65303. 24,
  65304. 24,
  65305. 24,
  65306. 24,
  65307. 24,
  65308. 24,
  65309. 24,
  65310. 24,
  65311. 24,
  65312. 24,
  65313. 24,
  65314. 24,
  65315. 24,
  65316. 24,
  65317. 24,
  65318. 24,
  65319. 24,
  65320. 24,
  65321. 24,
  65322. 24,
  65323. 24,
  65324. 24,
  65325. 24,
  65326. 24,
  65327. 24,
  65328. 23,
  65329. 24,
  65330. 24,
  65331. 24,
  65332. 24,
  65333. 24,
  65334. 24,
  65335. 24,
  65336. 24,
  65337. 24,
  65338. 24,
  65339. 24,
  65340. 24,
  65341. 24,
  65342. 24,
  65343. 24,
  65344. 24,
  65345. 24,
  65346. 24,
  65347. 24,
  65348. 24,
  65349. 24,
  65350. 24,
  65351. 24,
  65352. 24,
  65353. 24,
  65354. 24,
  65355. 24,
  65356. 23,
  65357. 24,
  65358. 24,
  65359. 24,
  65360. 24,
  65361. 24,
  65362. 24,
  65363. 24,
  65364. 24,
  65365. 24,
  65366. 24,
  65367. 24,
  65368. 24,
  65369. 24,
  65370. 24,
  65371. 24,
  65372. 24,
  65373. 24,
  65374. 24,
  65375. 24,
  65376. 24,
  65377. 24,
  65378. 24,
  65379. 24,
  65380. 24,
  65381. 24,
  65382. 24,
  65383. 24,
  65384. 23,
  65385. 24,
  65386. 24,
  65387. 24,
  65388. 24,
  65389. 24,
  65390. 24,
  65391. 24,
  65392. 24,
  65393. 24,
  65394. 24,
  65395. 24,
  65396. 24,
  65397. 24,
  65398. 24,
  65399. 24,
  65400. 24,
  65401. 24,
  65402. 24,
  65403. 24,
  65404. 24,
  65405. 24,
  65406. 24,
  65407. 24,
  65408. 24,
  65409. 24,
  65410. 24,
  65411. 24,
  65412. 23,
  65413. 24,
  65414. 24,
  65415. 24,
  65416. 24,
  65417. 24,
  65418. 24,
  65419. 24,
  65420. 24,
  65421. 24,
  65422. 24,
  65423. 24,
  65424. 24,
  65425. 24,
  65426. 24,
  65427. 24,
  65428. 24,
  65429. 24,
  65430. 24,
  65431. 24,
  65432. 24,
  65433. 24,
  65434. 24,
  65435. 24,
  65436. 24,
  65437. 24,
  65438. 24,
  65439. 24,
  65440. 23,
  65441. 24,
  65442. 24,
  65443. 24,
  65444. 24,
  65445. 24,
  65446. 24,
  65447. 24,
  65448. 24,
  65449. 24,
  65450. 24,
  65451. 24,
  65452. 24,
  65453. 24,
  65454. 24,
  65455. 24,
  65456. 24,
  65457. 24,
  65458. 24,
  65459. 24,
  65460. 24,
  65461. 24,
  65462. 24,
  65463. 24,
  65464. 24,
  65465. 24,
  65466. 24,
  65467. 24,
  65468. 23,
  65469. 24,
  65470. 24,
  65471. 24,
  65472. 24,
  65473. 24,
  65474. 24,
  65475. 24,
  65476. 24,
  65477. 24,
  65478. 24,
  65479. 24,
  65480. 24,
  65481. 24,
  65482. 24,
  65483. 24,
  65484. 24,
  65485. 24,
  65486. 24,
  65487. 24,
  65488. 24,
  65489. 24,
  65490. 24,
  65491. 24,
  65492. 24,
  65493. 24,
  65494. 24,
  65495. 24,
  65496. 23,
  65497. 24,
  65498. 24,
  65499. 24,
  65500. 24,
  65501. 24,
  65502. 24,
  65503. 24,
  65504. 24,
  65505. 24,
  65506. 24,
  65507. 24,
  65508. 24,
  65509. 24,
  65510. 24,
  65511. 24,
  65512. 24,
  65513. 24,
  65514. 24,
  65515. 24,
  65516. 24,
  65517. 24,
  65518. 24,
  65519. 24,
  65520. 24,
  65521. 24,
  65522. 24,
  65523. 24,
  65524. 23,
  65525. 24,
  65526. 24,
  65527. 24,
  65528. 24,
  65529. 24,
  65530. 24,
  65531. 24,
  65532. 24,
  65533. 24,
  65534. 24,
  65535. 24,
  65536. 24,
  65537. 24,
  65538. 24,
  65539. 24,
  65540. 24,
  65541. 24,
  65542. 24,
  65543. 24,
  65544. 24,
  65545. 24,
  65546. 24,
  65547. 24,
  65548. 24,
  65549. 24,
  65550. 24,
  65551. 24,
  65552. 23,
  65553. 24,
  65554. 24,
  65555. 24,
  65556. 24,
  65557. 24,
  65558. 24,
  65559. 24,
  65560. 24,
  65561. 24,
  65562. 24,
  65563. 24,
  65564. 24,
  65565. 24,
  65566. 24,
  65567. 24,
  65568. 24,
  65569. 24,
  65570. 24,
  65571. 24,
  65572. 24,
  65573. 24,
  65574. 24,
  65575. 24,
  65576. 24,
  65577. 24,
  65578. 24,
  65579. 24,
  65580. 23,
  65581. 24,
  65582. 24,
  65583. 24,
  65584. 24,
  65585. 24,
  65586. 24,
  65587. 24,
  65588. 24,
  65589. 24,
  65590. 24,
  65591. 24,
  65592. 24,
  65593. 24,
  65594. 24,
  65595. 24,
  65596. 24,
  65597. 24,
  65598. 24,
  65599. 24,
  65600. 24,
  65601. 24,
  65602. 24,
  65603. 24,
  65604. 24,
  65605. 24,
  65606. 24,
  65607. 24,
  65608. 23,
  65609. 24,
  65610. 24,
  65611. 24,
  65612. 24,
  65613. 24,
  65614. 24,
  65615. 24,
  65616. 24,
  65617. 24,
  65618. 24,
  65619. 24,
  65620. 24,
  65621. 24,
  65622. 24,
  65623. 24,
  65624. 24,
  65625. 24,
  65626. 24,
  65627. 24,
  65628. 24,
  65629. 24,
  65630. 24,
  65631. 24,
  65632. 24,
  65633. 24,
  65634. 24,
  65635. 24,
  65636. 23,
  65637. 24,
  65638. 24,
  65639. 24,
  65640. 24,
  65641. 24,
  65642. 24,
  65643. 24,
  65644. 24,
  65645. 24,
  65646. 24,
  65647. 24,
  65648. 24,
  65649. 24,
  65650. 24,
  65651. 24,
  65652. 24,
  65653. 24,
  65654. 24,
  65655. 24,
  65656. 24,
  65657. 24,
  65658. 24,
  65659. 24,
  65660. 24,
  65661. 24,
  65662. 24,
  65663. 24,
  65664. 23,
  65665. 24,
  65666. 24,
  65667. 24,
  65668. 24,
  65669. 24,
  65670. 24,
  65671. 24,
  65672. 24,
  65673. 24,
  65674. 24,
  65675. 24,
  65676. 24,
  65677. 24,
  65678. 24,
  65679. 24,
  65680. 24,
  65681. 24,
  65682. 24,
  65683. 24,
  65684. 24,
  65685. 24,
  65686. 24,
  65687. 24,
  65688. 24,
  65689. 24,
  65690. 24,
  65691. 24,
  65692. 23,
  65693. 24,
  65694. 24,
  65695. 24,
  65696. 24,
  65697. 24,
  65698. 24,
  65699. 24,
  65700. 24,
  65701. 24,
  65702. 24,
  65703. 24,
  65704. 24,
  65705. 24,
  65706. 24,
  65707. 24,
  65708. 24,
  65709. 24,
  65710. 24,
  65711. 24,
  65712. 24,
  65713. 24,
  65714. 24,
  65715. 24,
  65716. 24,
  65717. 24,
  65718. 24,
  65719. 24,
  65720. 23,
  65721. 24,
  65722. 24,
  65723. 24,
  65724. 24,
  65725. 24,
  65726. 24,
  65727. 24,
  65728. 24,
  65729. 24,
  65730. 24,
  65731. 24,
  65732. 24,
  65733. 24,
  65734. 24,
  65735. 24,
  65736. 24,
  65737. 24,
  65738. 24,
  65739. 24,
  65740. 24,
  65741. 24,
  65742. 24,
  65743. 24,
  65744. 24,
  65745. 24,
  65746. 24,
  65747. 24,
  65748. 23,
  65749. 24,
  65750. 24,
  65751. 24,
  65752. 24,
  65753. 24,
  65754. 24,
  65755. 24,
  65756. 24,
  65757. 24,
  65758. 24,
  65759. 24,
  65760. 24,
  65761. 24,
  65762. 24,
  65763. 24,
  65764. 24,
  65765. 24,
  65766. 24,
  65767. 24,
  65768. 24,
  65769. 24,
  65770. 24,
  65771. 24,
  65772. 24,
  65773. 24,
  65774. 24,
  65775. 24,
  65776. 23,
  65777. 24,
  65778. 24,
  65779. 24,
  65780. 24,
  65781. 24,
  65782. 24,
  65783. 24,
  65784. 24,
  65785. 24,
  65786. 24,
  65787. 24,
  65788. 24,
  65789. 24,
  65790. 24,
  65791. 24,
  65792. 24,
  65793. 24,
  65794. 24,
  65795. 24,
  65796. 24,
  65797. 24,
  65798. 24,
  65799. 24,
  65800. 24,
  65801. 24,
  65802. 24,
  65803. 24,
  65804. 23,
  65805. 24,
  65806. 24,
  65807. 24,
  65808. 24,
  65809. 24,
  65810. 24,
  65811. 24,
  65812. 24,
  65813. 24,
  65814. 24,
  65815. 24,
  65816. 24,
  65817. 24,
  65818. 24,
  65819. 24,
  65820. 24,
  65821. 24,
  65822. 24,
  65823. 24,
  65824. 24,
  65825. 24,
  65826. 24,
  65827. 24,
  65828. 24,
  65829. 24,
  65830. 24,
  65831. 24,
  65832. 23,
  65833. 24,
  65834. 24,
  65835. 24,
  65836. 24,
  65837. 24,
  65838. 24,
  65839. 24,
  65840. 24,
  65841. 24,
  65842. 24,
  65843. 24,
  65844. 24,
  65845. 24,
  65846. 24,
  65847. 24,
  65848. 24,
  65849. 24,
  65850. 24,
  65851. 24,
  65852. 24,
  65853. 24,
  65854. 24,
  65855. 24,
  65856. 24,
  65857. 24,
  65858. 24,
  65859. 24,
  65860. 23,
  65861. 24,
  65862. 24,
  65863. 24,
  65864. 24,
  65865. 24,
  65866. 24,
  65867. 24,
  65868. 24,
  65869. 24,
  65870. 24,
  65871. 24,
  65872. 24,
  65873. 24,
  65874. 24,
  65875. 24,
  65876. 24,
  65877. 24,
  65878. 24,
  65879. 24,
  65880. 24,
  65881. 24,
  65882. 24,
  65883. 24,
  65884. 24,
  65885. 24,
  65886. 24,
  65887. 24,
  65888. 23,
  65889. 24,
  65890. 24,
  65891. 24,
  65892. 24,
  65893. 24,
  65894. 24,
  65895. 24,
  65896. 24,
  65897. 24,
  65898. 24,
  65899. 24,
  65900. 24,
  65901. 24,
  65902. 24,
  65903. 24,
  65904. 24,
  65905. 24,
  65906. 24,
  65907. 24,
  65908. 24,
  65909. 24,
  65910. 24,
  65911. 24,
  65912. 24,
  65913. 24,
  65914. 24,
  65915. 24,
  65916. 23,
  65917. 24,
  65918. 24,
  65919. 24,
  65920. 24,
  65921. 24,
  65922. 24,
  65923. 24,
  65924. 24,
  65925. 24,
  65926. 24,
  65927. 24,
  65928. 24,
  65929. 24,
  65930. 24,
  65931. 24,
  65932. 24,
  65933. 24,
  65934. 24,
  65935. 24,
  65936. 24,
  65937. 24,
  65938. 24,
  65939. 24,
  65940. 24,
  65941. 24,
  65942. 24,
  65943. 24,
  65944. 23,
  65945. 24,
  65946. 24,
  65947. 24,
  65948. 24,
  65949. 24,
  65950. 24,
  65951. 24,
  65952. 24,
  65953. 24,
  65954. 24,
  65955. 24,
  65956. 24,
  65957. 24,
  65958. 24,
  65959. 24,
  65960. 24,
  65961. 24,
  65962. 24,
  65963. 24,
  65964. 24,
  65965. 24,
  65966. 24,
  65967. 24,
  65968. 24,
  65969. 24,
  65970. 24,
  65971. 24,
  65972. 23,
  65973. 24,
  65974. 24,
  65975. 24,
  65976. 24,
  65977. 24,
  65978. 24,
  65979. 24,
  65980. 24,
  65981. 24,
  65982. 24,
  65983. 24,
  65984. 24,
  65985. 24,
  65986. 24,
  65987. 24,
  65988. 24,
  65989. 24,
  65990. 24,
  65991. 24,
  65992. 24,
  65993. 24,
  65994. 24,
  65995. 24,
  65996. 24,
  65997. 24,
  65998. 24,
  65999. 24,
  66000. 23,
  66001. 24,
  66002. 24,
  66003. 24,
  66004. 24,
  66005. 24,
  66006. 24,
  66007. 24,
  66008. 24,
  66009. 24,
  66010. 24,
  66011. 24,
  66012. 24,
  66013. 24,
  66014. 24,
  66015. 24,
  66016. 24,
  66017. 24,
  66018. 24,
  66019. 24,
  66020. 24,
  66021. 24,
  66022. 24,
  66023. 24,
  66024. 24,
  66025. 24,
  66026. 24,
  66027. 24,
  66028. 23,
  66029. 24,
  66030. 24,
  66031. 24,
  66032. 24,
  66033. 24,
  66034. 24,
  66035. 24,
  66036. 24,
  66037. 24,
  66038. 24,
  66039. 24,
  66040. 24,
  66041. 24,
  66042. 24,
  66043. 24,
  66044. 24,
  66045. 24,
  66046. 24,
  66047. 24,
  66048. 24,
  66049. 24,
  66050. 24,
  66051. 24,
  66052. 24,
  66053. 24,
  66054. 24,
  66055. 24,
  66056. 23,
  66057. 24,
  66058. 24,
  66059. 24,
  66060. 24,
  66061. 24,
  66062. 24,
  66063. 24,
  66064. 24,
  66065. 24,
  66066. 24,
  66067. 24,
  66068. 24,
  66069. 24,
  66070. 24,
  66071. 24,
  66072. 24,
  66073. 24,
  66074. 24,
  66075. 24,
  66076. 24,
  66077. 24,
  66078. 24,
  66079. 24,
  66080. 24,
  66081. 24,
  66082. 24,
  66083. 24,
  66084. 23,
  66085. 24,
  66086. 24,
  66087. 24,
  66088. 24,
  66089. 24,
  66090. 24,
  66091. 24,
  66092. 24,
  66093. 24,
  66094. 24,
  66095. 24,
  66096. 24,
  66097. 24,
  66098. 24,
  66099. 24,
  66100. 24,
  66101. 24,
  66102. 24,
  66103. 24,
  66104. 24,
  66105. 24,
  66106. 24,
  66107. 24,
  66108. 24,
  66109. 24,
  66110. 24,
  66111. 24,
  66112. 23,
  66113. 24,
  66114. 24,
  66115. 24,
  66116. 24,
  66117. 24,
  66118. 24,
  66119. 24,
  66120. 24,
  66121. 24,
  66122. 24,
  66123. 24,
  66124. 24,
  66125. 24,
  66126. 24,
  66127. 24,
  66128. 24,
  66129. 24,
  66130. 24,
  66131. 24,
  66132. 24,
  66133. 24,
  66134. 24,
  66135. 24,
  66136. 24,
  66137. 24,
  66138. 24,
  66139. 24,
  66140. 23,
  66141. 24,
  66142. 24,
  66143. 24,
  66144. 24,
  66145. 24,
  66146. 24,
  66147. 24,
  66148. 24,
  66149. 24,
  66150. 24,
  66151. 24,
  66152. 24,
  66153. 24,
  66154. 24,
  66155. 24,
  66156. 24,
  66157. 24,
  66158. 24,
  66159. 24,
  66160. 24,
  66161. 24,
  66162. 24,
  66163. 24,
  66164. 24,
  66165. 24,
  66166. 24,
  66167. 24,
  66168. 23,
  66169. 24,
  66170. 24,
  66171. 24,
  66172. 24,
  66173. 24,
  66174. 24,
  66175. 24,
  66176. 24,
  66177. 24,
  66178. 24,
  66179. 24,
  66180. 24,
  66181. 24,
  66182. 24,
  66183. 24,
  66184. 24,
  66185. 24,
  66186. 24,
  66187. 24,
  66188. 24,
  66189. 24,
  66190. 24,
  66191. 24,
  66192. 24,
  66193. 24,
  66194. 24,
  66195. 24,
  66196. 23,
  66197. 24,
  66198. 24,
  66199. 24,
  66200. 24,
  66201. 24,
  66202. 24,
  66203. 24,
  66204. 24,
  66205. 24,
  66206. 24,
  66207. 24,
  66208. 24,
  66209. 24,
  66210. 24,
  66211. 24,
  66212. 24,
  66213. 24,
  66214. 24,
  66215. 24,
  66216. 24,
  66217. 24,
  66218. 24,
  66219. 24,
  66220. 24,
  66221. 24,
  66222. 24,
  66223. 24,
  66224. 23,
  66225. 24,
  66226. 24,
  66227. 24,
  66228. 24,
  66229. 24,
  66230. 24,
  66231. 24,
  66232. 24,
  66233. 24,
  66234. 24,
  66235. 24,
  66236. 24,
  66237. 24,
  66238. 24,
  66239. 24,
  66240. 24,
  66241. 24,
  66242. 24,
  66243. 24,
  66244. 24,
  66245. 24,
  66246. 24,
  66247. 24,
  66248. 24,
  66249. 24,
  66250. 24,
  66251. 24,
  66252. 23,
  66253. 24,
  66254. 24,
  66255. 24,
  66256. 24,
  66257. 24,
  66258. 24,
  66259. 24,
  66260. 24,
  66261. 24,
  66262. 24,
  66263. 24,
  66264. 24,
  66265. 24,
  66266. 24,
  66267. 24,
  66268. 24,
  66269. 24,
  66270. 24,
  66271. 24,
  66272. 24,
  66273. 24,
  66274. 24,
  66275. 24,
  66276. 24,
  66277. 24,
  66278. 24,
  66279. 24,
  66280. 23,
  66281. 24,
  66282. 24,
  66283. 24,
  66284. 24,
  66285. 24,
  66286. 24,
  66287. 24,
  66288. 24,
  66289. 24,
  66290. 24,
  66291. 24,
  66292. 24,
  66293. 24,
  66294. 24,
  66295. 24,
  66296. 24,
  66297. 24,
  66298. 24,
  66299. 24,
  66300. 24,
  66301. 24,
  66302. 24,
  66303. 24,
  66304. 24,
  66305. 24,
  66306. 24,
  66307. 24,
  66308. 23,
  66309. 24,
  66310. 24,
  66311. 24,
  66312. 24,
  66313. 24,
  66314. 24,
  66315. 24,
  66316. 24,
  66317. 24,
  66318. 24,
  66319. 24,
  66320. 24,
  66321. 24,
  66322. 24,
  66323. 24,
  66324. 24,
  66325. 24,
  66326. 24,
  66327. 24,
  66328. 24,
  66329. 24,
  66330. 24,
  66331. 24,
  66332. 24,
  66333. 24,
  66334. 24,
  66335. 24,
  66336. 23,
  66337. 24,
  66338. 24,
  66339. 24,
  66340. 24,
  66341. 24,
  66342. 24,
  66343. 24,
  66344. 24,
  66345. 24,
  66346. 24,
  66347. 24,
  66348. 24,
  66349. 24,
  66350. 24,
  66351. 24,
  66352. 24,
  66353. 24,
  66354. 24,
  66355. 24,
  66356. 24,
  66357. 24,
  66358. 24,
  66359. 24,
  66360. 24,
  66361. 24,
  66362. 24,
  66363. 24,
  66364. 23,
  66365. 24,
  66366. 24,
  66367. 24,
  66368. 24,
  66369. 24,
  66370. 24,
  66371. 24,
  66372. 24,
  66373. 24,
  66374. 24,
  66375. 24,
  66376. 24,
  66377. 24,
  66378. 24,
  66379. 24,
  66380. 24,
  66381. 24,
  66382. 24,
  66383. 24,
  66384. 24,
  66385. 24,
  66386. 24,
  66387. 24,
  66388. 24,
  66389. 24,
  66390. 24,
  66391. 24,
  66392. 23,
  66393. 24,
  66394. 24,
  66395. 24,
  66396. 24,
  66397. 24,
  66398. 24,
  66399. 24,
  66400. 24,
  66401. 24,
  66402. 24,
  66403. 24,
  66404. 24,
  66405. 24,
  66406. 24,
  66407. 24,
  66408. 24,
  66409. 24,
  66410. 24,
  66411. 24,
  66412. 24,
  66413. 24,
  66414. 24,
  66415. 24,
  66416. 24,
  66417. 24,
  66418. 24,
  66419. 24,
  66420. 23,
  66421. 24,
  66422. 24,
  66423. 24,
  66424. 24,
  66425. 24,
  66426. 24,
  66427. 24,
  66428. 24,
  66429. 24,
  66430. 24,
  66431. 24,
  66432. 24,
  66433. 24,
  66434. 24,
  66435. 24,
  66436. 24,
  66437. 24,
  66438. 24,
  66439. 24,
  66440. 24,
  66441. 24,
  66442. 24,
  66443. 24,
  66444. 24,
  66445. 24,
  66446. 24,
  66447. 24,
  66448. 23,
  66449. 24,
  66450. 24,
  66451. 24,
  66452. 24,
  66453. 24,
  66454. 24,
  66455. 24,
  66456. 24,
  66457. 24,
  66458. 24,
  66459. 24,
  66460. 24,
  66461. 24,
  66462. 24,
  66463. 24,
  66464. 24,
  66465. 24,
  66466. 24,
  66467. 24,
  66468. 24,
  66469. 24,
  66470. 24,
  66471. 24,
  66472. 24,
  66473. 24,
  66474. 24,
  66475. 24,
  66476. 23,
  66477. 24,
  66478. 24,
  66479. 24,
  66480. 24,
  66481. 24,
  66482. 24,
  66483. 24,
  66484. 24,
  66485. 24,
  66486. 24,
  66487. 24,
  66488. 24,
  66489. 24,
  66490. 24,
  66491. 24,
  66492. 24,
  66493. 24,
  66494. 24,
  66495. 24,
  66496. 24,
  66497. 24,
  66498. 24,
  66499. 24,
  66500. 24,
  66501. 24,
  66502. 24,
  66503. 24,
  66504. 23,
  66505. 24,
  66506. 24,
  66507. 24,
  66508. 24,
  66509. 24,
  66510. 24,
  66511. 24,
  66512. 24,
  66513. 24,
  66514. 24,
  66515. 24,
  66516. 24,
  66517. 24,
  66518. 24,
  66519. 24,
  66520. 24,
  66521. 24,
  66522. 24,
  66523. 24,
  66524. 24,
  66525. 24,
  66526. 24,
  66527. 24,
  66528. 24,
  66529. 24,
  66530. 24,
  66531. 24,
  66532. 23,
  66533. 24,
  66534. 24,
  66535. 24,
  66536. 24,
  66537. 24,
  66538. 24,
  66539. 24,
  66540. 24,
  66541. 24,
  66542. 24,
  66543. 24,
  66544. 24,
  66545. 24,
  66546. 24,
  66547. 24,
  66548. 24,
  66549. 24,
  66550. 24,
  66551. 24,
  66552. 24,
  66553. 24,
  66554. 24,
  66555. 24,
  66556. 24,
  66557. 24,
  66558. 24,
  66559. 24,
  66560. 23,
  66561. 24,
  66562. 24,
  66563. 24,
  66564. 24,
  66565. 24,
  66566. 24,
  66567. 24,
  66568. 24,
  66569. 24,
  66570. 24,
  66571. 24,
  66572. 24,
  66573. 24,
  66574. 24,
  66575. 24,
  66576. 24,
  66577. 24,
  66578. 24,
  66579. 24,
  66580. 24,
  66581. 24,
  66582. 24,
  66583. 24,
  66584. 24,
  66585. 24,
  66586. 24,
  66587. 24,
  66588. 23,
  66589. 24,
  66590. 24,
  66591. 24,
  66592. 24,
  66593. 24,
  66594. 24,
  66595. 24,
  66596. 24,
  66597. 24,
  66598. 24,
  66599. 24,
  66600. 24,
  66601. 24,
  66602. 24,
  66603. 24,
  66604. 24,
  66605. 24,
  66606. 24,
  66607. 24,
  66608. 24,
  66609. 24,
  66610. 24,
  66611. 24,
  66612. 24,
  66613. 24,
  66614. 24,
  66615. 24,
  66616. 23,
  66617. 24,
  66618. 24,
  66619. 24,
  66620. 24,
  66621. 24,
  66622. 24,
  66623. 24,
  66624. 24,
  66625. 24,
  66626. 24,
  66627. 24,
  66628. 24,
  66629. 24,
  66630. 24,
  66631. 24,
  66632. 24,
  66633. 24,
  66634. 24,
  66635. 24,
  66636. 24,
  66637. 24,
  66638. 24,
  66639. 24,
  66640. 24,
  66641. 24,
  66642. 24,
  66643. 24,
  66644. 23,
  66645. 24,
  66646. 24,
  66647. 24,
  66648. 24,
  66649. 24,
  66650. 24,
  66651. 24,
  66652. 24,
  66653. 24,
  66654. 24,
  66655. 24,
  66656. 24,
  66657. 24,
  66658. 24,
  66659. 24,
  66660. 24,
  66661. 24,
  66662. 24,
  66663. 24,
  66664. 24,
  66665. 24,
  66666. 24,
  66667. 24,
  66668. 24,
  66669. 24,
  66670. 24,
  66671. 24,
  66672. 23,
  66673. 24,
  66674. 24,
  66675. 24,
  66676. 24,
  66677. 24,
  66678. 24,
  66679. 24,
  66680. 24,
  66681. 24,
  66682. 24,
  66683. 24,
  66684. 24,
  66685. 24,
  66686. 24,
  66687. 24,
  66688. 24,
  66689. 24,
  66690. 24,
  66691. 24,
  66692. 24,
  66693. 24,
  66694. 24,
  66695. 24,
  66696. 24,
  66697. 24,
  66698. 24,
  66699. 24,
  66700. 23,
  66701. 24,
  66702. 24,
  66703. 24,
  66704. 24,
  66705. 24,
  66706. 24,
  66707. 24,
  66708. 24,
  66709. 24,
  66710. 24,
  66711. 24,
  66712. 24,
  66713. 24,
  66714. 24,
  66715. 24,
  66716. 24,
  66717. 24,
  66718. 24,
  66719. 24,
  66720. 24,
  66721. 24,
  66722. 24,
  66723. 24,
  66724. 24,
  66725. 24,
  66726. 24,
  66727. 24,
  66728. 23,
  66729. 24,
  66730. 24,
  66731. 24,
  66732. 24,
  66733. 24,
  66734. 24,
  66735. 24,
  66736. 24,
  66737. 24,
  66738. 24,
  66739. 24,
  66740. 24,
  66741. 24,
  66742. 24,
  66743. 24,
  66744. 24,
  66745. 24,
  66746. 24,
  66747. 24,
  66748. 24,
  66749. 24,
  66750. 24,
  66751. 24,
  66752. 24,
  66753. 24,
  66754. 24,
  66755. 24,
  66756. 23,
  66757. 24,
  66758. 24,
  66759. 24,
  66760. 24,
  66761. 24,
  66762. 24,
  66763. 24,
  66764. 24,
  66765. 24,
  66766. 24,
  66767. 24,
  66768. 24,
  66769. 24,
  66770. 24,
  66771. 24,
  66772. 24,
  66773. 24,
  66774. 24,
  66775. 24,
  66776. 24,
  66777. 24,
  66778. 24,
  66779. 24,
  66780. 24,
  66781. 24,
  66782. 24,
  66783. 24,
  66784. 23,
  66785. 24,
  66786. 24,
  66787. 24,
  66788. 24,
  66789. 24,
  66790. 24,
  66791. 24,
  66792. 24,
  66793. 24,
  66794. 24,
  66795. 24,
  66796. 24,
  66797. 24,
  66798. 24,
  66799. 24,
  66800. 24,
  66801. 24,
  66802. 24,
  66803. 24,
  66804. 24,
  66805. 24,
  66806. 24,
  66807. 24,
  66808. 24,
  66809. 24,
  66810. 24,
  66811. 24,
  66812. 23,
  66813. 24,
  66814. 24,
  66815. 24,
  66816. 24,
  66817. 24,
  66818. 24,
  66819. 24,
  66820. 24,
  66821. 24,
  66822. 24,
  66823. 24,
  66824. 24,
  66825. 24,
  66826. 24,
  66827. 24,
  66828. 24,
  66829. 24,
  66830. 24,
  66831. 24,
  66832. 24,
  66833. 24,
  66834. 24,
  66835. 24,
  66836. 24,
  66837. 24,
  66838. 24,
  66839. 24,
  66840. 23,
  66841. 24,
  66842. 24,
  66843. 24,
  66844. 24,
  66845. 24,
  66846. 24,
  66847. 24,
  66848. 24,
  66849. 24,
  66850. 24,
  66851. 24,
  66852. 24,
  66853. 24,
  66854. 24,
  66855. 24,
  66856. 24,
  66857. 24,
  66858. 24,
  66859. 24,
  66860. 24,
  66861. 24,
  66862. 24,
  66863. 24,
  66864. 24,
  66865. 24,
  66866. 24,
  66867. 24,
  66868. 23,
  66869. 24,
  66870. 24,
  66871. 24,
  66872. 24,
  66873. 24,
  66874. 24,
  66875. 24,
  66876. 24,
  66877. 24,
  66878. 24,
  66879. 24,
  66880. 24,
  66881. 24,
  66882. 24,
  66883. 24,
  66884. 24,
  66885. 24,
  66886. 24,
  66887. 24,
  66888. 24,
  66889. 24,
  66890. 24,
  66891. 24,
  66892. 24,
  66893. 24,
  66894. 24,
  66895. 24,
  66896. 23,
  66897. 24,
  66898. 24,
  66899. 24,
  66900. 24,
  66901. 24,
  66902. 24,
  66903. 24,
  66904. 24,
  66905. 24,
  66906. 24,
  66907. 24,
  66908. 24,
  66909. 24,
  66910. 24,
  66911. 24,
  66912. 24,
  66913. 24,
  66914. 24,
  66915. 24,
  66916. 24,
  66917. 24,
  66918. 24,
  66919. 24,
  66920. 24,
  66921. 24,
  66922. 24,
  66923. 24,
  66924. 23,
  66925. 24,
  66926. 24,
  66927. 24,
  66928. 24,
  66929. 24,
  66930. 24,
  66931. 24,
  66932. 24,
  66933. 24,
  66934. 24,
  66935. 24,
  66936. 24,
  66937. 24,
  66938. 24,
  66939. 24,
  66940. 24,
  66941. 24,
  66942. 24,
  66943. 24,
  66944. 24,
  66945. 24,
  66946. 24,
  66947. 24,
  66948. 24,
  66949. 24,
  66950. 24,
  66951. 24,
  66952. 23,
  66953. 24,
  66954. 24,
  66955. 24,
  66956. 24,
  66957. 24,
  66958. 24,
  66959. 24,
  66960. 24,
  66961. 24,
  66962. 24,
  66963. 24,
  66964. 24,
  66965. 24,
  66966. 24,
  66967. 24,
  66968. 24,
  66969. 24,
  66970. 24,
  66971. 24,
  66972. 24,
  66973. 24,
  66974. 24,
  66975. 24,
  66976. 24,
  66977. 24,
  66978. 24,
  66979. 24,
  66980. 23,
  66981. 24,
  66982. 24,
  66983. 24,
  66984. 24,
  66985. 24,
  66986. 24,
  66987. 24,
  66988. 24,
  66989. 24,
  66990. 24,
  66991. 24,
  66992. 24,
  66993. 24,
  66994. 24,
  66995. 24,
  66996. 24,
  66997. 24,
  66998. 24,
  66999. 24,
  67000. 24,
  67001. 24,
  67002. 24,
  67003. 24,
  67004. 24,
  67005. 24,
  67006. 24,
  67007. 24,
  67008. 23,
  67009. 24,
  67010. 24,
  67011. 24,
  67012. 24,
  67013. 24,
  67014. 24,
  67015. 24,
  67016. 24,
  67017. 24,
  67018. 24,
  67019. 24,
  67020. 24,
  67021. 24,
  67022. 24,
  67023. 24,
  67024. 24,
  67025. 24,
  67026. 24,
  67027. 24,
  67028. 24,
  67029. 24,
  67030. 24,
  67031. 24,
  67032. 24,
  67033. 24,
  67034. 24,
  67035. 24,
  67036. 23,
  67037. 24,
  67038. 24,
  67039. 24,
  67040. 24,
  67041. 24,
  67042. 24,
  67043. 24,
  67044. 24,
  67045. 24,
  67046. 24,
  67047. 24,
  67048. 24,
  67049. 24,
  67050. 24,
  67051. 24,
  67052. 24,
  67053. 24,
  67054. 24,
  67055. 24,
  67056. 24,
  67057. 24,
  67058. 24,
  67059. 24,
  67060. 24,
  67061. 24,
  67062. 24,
  67063. 24,
  67064. 23,
  67065. 24,
  67066. 24,
  67067. 24,
  67068. 24,
  67069. 24,
  67070. 24,
  67071. 24,
  67072. 24,
  67073. 24,
  67074. 24,
  67075. 24,
  67076. 24,
  67077. 24,
  67078. 24,
  67079. 24,
  67080. 24,
  67081. 24,
  67082. 24,
  67083. 24,
  67084. 24,
  67085. 24,
  67086. 24,
  67087. 24,
  67088. 24,
  67089. 24,
  67090. 24,
  67091. 24,
  67092. 23,
  67093. 24,
  67094. 24,
  67095. 24,
  67096. 24,
  67097. 24,
  67098. 24,
  67099. 24,
  67100. 24,
  67101. 24,
  67102. 24,
  67103. 24,
  67104. 24,
  67105. 24,
  67106. 24,
  67107. 24,
  67108. 24,
  67109. 24,
  67110. 24,
  67111. 24,
  67112. 24,
  67113. 24,
  67114. 24,
  67115. 24,
  67116. 24,
  67117. 24,
  67118. 24,
  67119. 24,
  67120. 23,
  67121. 24,
  67122. 24,
  67123. 24,
  67124. 24,
  67125. 24,
  67126. 24,
  67127. 24,
  67128. 24,
  67129. 24,
  67130. 24,
  67131. 24,
  67132. 24,
  67133. 24,
  67134. 24,
  67135. 24,
  67136. 24,
  67137. 24,
  67138. 24,
  67139. 24,
  67140. 24,
  67141. 24,
  67142. 24,
  67143. 24,
  67144. 24,
  67145. 24,
  67146. 24,
  67147. 24,
  67148. 23,
  67149. 24,
  67150. 24,
  67151. 24,
  67152. 24,
  67153. 24,
  67154. 24,
  67155. 24,
  67156. 24,
  67157. 24,
  67158. 24,
  67159. 24,
  67160. 24,
  67161. 24,
  67162. 24,
  67163. 24,
  67164. 24,
  67165. 24,
  67166. 24,
  67167. 24,
  67168. 24,
  67169. 24,
  67170. 24,
  67171. 24,
  67172. 24,
  67173. 24,
  67174. 24,
  67175. 24,
  67176. 23,
  67177. 24,
  67178. 24,
  67179. 24,
  67180. 24,
  67181. 24,
  67182. 24,
  67183. 24,
  67184. 24,
  67185. 24,
  67186. 24,
  67187. 24,
  67188. 24,
  67189. 24,
  67190. 24,
  67191. 24,
  67192. 24,
  67193. 24,
  67194. 24,
  67195. 24,
  67196. 24,
  67197. 24,
  67198. 24,
  67199. 24,
  67200. 24,
  67201. 24,
  67202. 24,
  67203. 24,
  67204. 23,
  67205. 24,
  67206. 24,
  67207. 24,
  67208. 24,
  67209. 24,
  67210. 24,
  67211. 24,
  67212. 24,
  67213. 24,
  67214. 24,
  67215. 24,
  67216. 24,
  67217. 24,
  67218. 24,
  67219. 24,
  67220. 24,
  67221. 24,
  67222. 24,
  67223. 24,
  67224. 24,
  67225. 24,
  67226. 24,
  67227. 24,
  67228. 24,
  67229. 24,
  67230. 24,
  67231. 24,
  67232. 23,
  67233. 24,
  67234. 24,
  67235. 24,
  67236. 24,
  67237. 24,
  67238. 24,
  67239. 24,
  67240. 24,
  67241. 24,
  67242. 24,
  67243. 24,
  67244. 24,
  67245. 24,
  67246. 24,
  67247. 24,
  67248. 24,
  67249. 24,
  67250. 24,
  67251. 24,
  67252. 24,
  67253. 24,
  67254. 24,
  67255. 24,
  67256. 24,
  67257. 24,
  67258. 24,
  67259. 24,
  67260. 23,
  67261. 24,
  67262. 24,
  67263. 24,
  67264. 24,
  67265. 24,
  67266. 24,
  67267. 24,
  67268. 24,
  67269. 24,
  67270. 24,
  67271. 24,
  67272. 24,
  67273. 24,
  67274. 24,
  67275. 24,
  67276. 24,
  67277. 24,
  67278. 24,
  67279. 24,
  67280. 24,
  67281. 24,
  67282. 24,
  67283. 24,
  67284. 24,
  67285. 24,
  67286. 24,
  67287. 24,
  67288. 23,
  67289. 24,
  67290. 24,
  67291. 24,
  67292. 24,
  67293. 24,
  67294. 24,
  67295. 24,
  67296. 24,
  67297. 24,
  67298. 24,
  67299. 24,
  67300. 24,
  67301. 24,
  67302. 24,
  67303. 24,
  67304. 24,
  67305. 24,
  67306. 24,
  67307. 24,
  67308. 24,
  67309. 24,
  67310. 24,
  67311. 24,
  67312. 24,
  67313. 24,
  67314. 24,
  67315. 24,
  67316. 23,
  67317. 24,
  67318. 24,
  67319. 24,
  67320. 24,
  67321. 24,
  67322. 24,
  67323. 24,
  67324. 24,
  67325. 24,
  67326. 24,
  67327. 24,
  67328. 24,
  67329. 24,
  67330. 24,
  67331. 24,
  67332. 24,
  67333. 24,
  67334. 24,
  67335. 24,
  67336. 24,
  67337. 24,
  67338. 24,
  67339. 24,
  67340. 24,
  67341. 24,
  67342. 24,
  67343. 24,
  67344. 23,
  67345. 24,
  67346. 24,
  67347. 24,
  67348. 24,
  67349. 24,
  67350. 24,
  67351. 24,
  67352. 24,
  67353. 24,
  67354. 24,
  67355. 24,
  67356. 24,
  67357. 24,
  67358. 24,
  67359. 24,
  67360. 24,
  67361. 24,
  67362. 24,
  67363. 24,
  67364. 24,
  67365. 24,
  67366. 24,
  67367. 24,
  67368. 24,
  67369. 24,
  67370. 24,
  67371. 24,
  67372. 23,
  67373. 24,
  67374. 24,
  67375. 24,
  67376. 24,
  67377. 24,
  67378. 24,
  67379. 24,
  67380. 24,
  67381. 24,
  67382. 24,
  67383. 24,
  67384. 24,
  67385. 24,
  67386. 24,
  67387. 24,
  67388. 24,
  67389. 24,
  67390. 24,
  67391. 24,
  67392. 24,
  67393. 24,
  67394. 24,
  67395. 24,
  67396. 24,
  67397. 24,
  67398. 24,
  67399. 24,
  67400. 23,
  67401. 24,
  67402. 24,
  67403. 24,
  67404. 24,
  67405. 24,
  67406. 24,
  67407. 24,
  67408. 24,
  67409. 24,
  67410. 24,
  67411. 24,
  67412. 24,
  67413. 24,
  67414. 24,
  67415. 24,
  67416. 24,
  67417. 24,
  67418. 24,
  67419. 24,
  67420. 24,
  67421. 24,
  67422. 24,
  67423. 24,
  67424. 24,
  67425. 24,
  67426. 24,
  67427. 24,
  67428. 23,
  67429. 24,
  67430. 24,
  67431. 24,
  67432. 24,
  67433. 24,
  67434. 24,
  67435. 24,
  67436. 24,
  67437. 24,
  67438. 24,
  67439. 24,
  67440. 24,
  67441. 24,
  67442. 24,
  67443. 24,
  67444. 24,
  67445. 24,
  67446. 24,
  67447. 24,
  67448. 24,
  67449. 24,
  67450. 24,
  67451. 24,
  67452. 24,
  67453. 24,
  67454. 24,
  67455. 24,
  67456. 23,
  67457. 24,
  67458. 24,
  67459. 24,
  67460. 24,
  67461. 24,
  67462. 24,
  67463. 24,
  67464. 24,
  67465. 24,
  67466. 24,
  67467. 24,
  67468. 24,
  67469. 24,
  67470. 24,
  67471. 24,
  67472. 24,
  67473. 24,
  67474. 24,
  67475. 24,
  67476. 24,
  67477. 24,
  67478. 24,
  67479. 24,
  67480. 24,
  67481. 24,
  67482. 24,
  67483. 24,
  67484. 23,
  67485. 24,
  67486. 24,
  67487. 24,
  67488. 24,
  67489. 24,
  67490. 24,
  67491. 24,
  67492. 24,
  67493. 24,
  67494. 24,
  67495. 24,
  67496. 24,
  67497. 24,
  67498. 24,
  67499. 24,
  67500. 24,
  67501. 24,
  67502. 24,
  67503. 24,
  67504. 24,
  67505. 24,
  67506. 24,
  67507. 24,
  67508. 24,
  67509. 24,
  67510. 24,
  67511. 24,
  67512. 23,
  67513. 24,
  67514. 24,
  67515. 24,
  67516. 24,
  67517. 24,
  67518. 24,
  67519. 24,
  67520. 24,
  67521. 24,
  67522. 24,
  67523. 24,
  67524. 24,
  67525. 24,
  67526. 24,
  67527. 24,
  67528. 24,
  67529. 24,
  67530. 24,
  67531. 24,
  67532. 24,
  67533. 24,
  67534. 24,
  67535. 24,
  67536. 24,
  67537. 24,
  67538. 24,
  67539. 24,
  67540. 23,
  67541. 24,
  67542. 24,
  67543. 24,
  67544. 24,
  67545. 24,
  67546. 24,
  67547. 24,
  67548. 24,
  67549. 24,
  67550. 24,
  67551. 24,
  67552. 24,
  67553. 24,
  67554. 24,
  67555. 24,
  67556. 24,
  67557. 24,
  67558. 24,
  67559. 24,
  67560. 24,
  67561. 24,
  67562. 24,
  67563. 24,
  67564. 24,
  67565. 24,
  67566. 24,
  67567. 24,
  67568. 23,
  67569. 24,
  67570. 24,
  67571. 24,
  67572. 24,
  67573. 24,
  67574. 24,
  67575. 24,
  67576. 24,
  67577. 24,
  67578. 24,
  67579. 24,
  67580. 24,
  67581. 24,
  67582. 24,
  67583. 24,
  67584. 24,
  67585. 24,
  67586. 24,
  67587. 24,
  67588. 24,
  67589. 24,
  67590. 24,
  67591. 24,
  67592. 24,
  67593. 24,
  67594. 24,
  67595. 24,
  67596. 23,
  67597. 24,
  67598. 24,
  67599. 24,
  67600. 24,
  67601. 24,
  67602. 24,
  67603. 24,
  67604. 24,
  67605. 24,
  67606. 24,
  67607. 24,
  67608. 24,
  67609. 24,
  67610. 24,
  67611. 24,
  67612. 24,
  67613. 24,
  67614. 24,
  67615. 24,
  67616. 24,
  67617. 24,
  67618. 24,
  67619. 24,
  67620. 24,
  67621. 24,
  67622. 24,
  67623. 24,
  67624. 23,
  67625. 24,
  67626. 24,
  67627. 24,
  67628. 24,
  67629. 24,
  67630. 24,
  67631. 24,
  67632. 24,
  67633. 24,
  67634. 24,
  67635. 24,
  67636. 24,
  67637. 24,
  67638. 24,
  67639. 24,
  67640. 24,
  67641. 24,
  67642. 24,
  67643. 24,
  67644. 24,
  67645. 24,
  67646. 24,
  67647. 24,
  67648. 24,
  67649. 24,
  67650. 24,
  67651. 24,
  67652. 23,
  67653. 24,
  67654. 24,
  67655. 24,
  67656. 24,
  67657. 24,
  67658. 24,
  67659. 24,
  67660. 24,
  67661. 24,
  67662. 24,
  67663. 24,
  67664. 24,
  67665. 24,
  67666. 24,
  67667. 24,
  67668. 24,
  67669. 24,
  67670. 24,
  67671. 24,
  67672. 24,
  67673. 24,
  67674. 24,
  67675. 24,
  67676. 24,
  67677. 24,
  67678. 24,
  67679. 24,
  67680. 23,
  67681. 24,
  67682. 24,
  67683. 24,
  67684. 24,
  67685. 24,
  67686. 24,
  67687. 24,
  67688. 24,
  67689. 24,
  67690. 24,
  67691. 24,
  67692. 24,
  67693. 24,
  67694. 24,
  67695. 24,
  67696. 24,
  67697. 24,
  67698. 24,
  67699. 24,
  67700. 24,
  67701. 24,
  67702. 24,
  67703. 24,
  67704. 24,
  67705. 24,
  67706. 24,
  67707. 24,
  67708. 23,
  67709. 24,
  67710. 24,
  67711. 24,
  67712. 24,
  67713. 24,
  67714. 24,
  67715. 24,
  67716. 24,
  67717. 24,
  67718. 24,
  67719. 24,
  67720. 24,
  67721. 24,
  67722. 24,
  67723. 24,
  67724. 24,
  67725. 24,
  67726. 24,
  67727. 24,
  67728. 24,
  67729. 24,
  67730. 24,
  67731. 24,
  67732. 24,
  67733. 24,
  67734. 24,
  67735. 24,
  67736. 23,
  67737. 24,
  67738. 24,
  67739. 24,
  67740. 24,
  67741. 24,
  67742. 24,
  67743. 24,
  67744. 24,
  67745. 24,
  67746. 24,
  67747. 24,
  67748. 24,
  67749. 24,
  67750. 24,
  67751. 24,
  67752. 24,
  67753. 24,
  67754. 24,
  67755. 24,
  67756. 24,
  67757. 24,
  67758. 24,
  67759. 24,
  67760. 24,
  67761. 24,
  67762. 24,
  67763. 24,
  67764. 23,
  67765. 24,
  67766. 24,
  67767. 24,
  67768. 24,
  67769. 24,
  67770. 24,
  67771. 24,
  67772. 24,
  67773. 24,
  67774. 24,
  67775. 24,
  67776. 24,
  67777. 24,
  67778. 24,
  67779. 24,
  67780. 24,
  67781. 24,
  67782. 24,
  67783. 24,
  67784. 24,
  67785. 24,
  67786. 24,
  67787. 24,
  67788. 24,
  67789. 24,
  67790. 24,
  67791. 24,
  67792. 23,
  67793. 24,
  67794. 24,
  67795. 24,
  67796. 24,
  67797. 24,
  67798. 24,
  67799. 24,
  67800. 24,
  67801. 24,
  67802. 24,
  67803. 24,
  67804. 24,
  67805. 24,
  67806. 24,
  67807. 24,
  67808. 24,
  67809. 24,
  67810. 24,
  67811. 24,
  67812. 24,
  67813. 24,
  67814. 24,
  67815. 24,
  67816. 24,
  67817. 24,
  67818. 24,
  67819. 24,
  67820. 23,
  67821. 24,
  67822. 24,
  67823. 24,
  67824. 24,
  67825. 24,
  67826. 24,
  67827. 24,
  67828. 24,
  67829. 24,
  67830. 24,
  67831. 24,
  67832. 24,
  67833. 24,
  67834. 24,
  67835. 24,
  67836. 24,
  67837. 24,
  67838. 24,
  67839. 24,
  67840. 24,
  67841. 24,
  67842. 24,
  67843. 24,
  67844. 24,
  67845. 24,
  67846. 24,
  67847. 24,
  67848. 23,
  67849. 24,
  67850. 24,
  67851. 24,
  67852. 24,
  67853. 24,
  67854. 24,
  67855. 24,
  67856. 24,
  67857. 24,
  67858. 24,
  67859. 24,
  67860. 24,
  67861. 24,
  67862. 24,
  67863. 24,
  67864. 24,
  67865. 24,
  67866. 24,
  67867. 24,
  67868. 24,
  67869. 24,
  67870. 24,
  67871. 24,
  67872. 24,
  67873. 24,
  67874. 24,
  67875. 24,
  67876. 23,
  67877. 24,
  67878. 24,
  67879. 24,
  67880. 24,
  67881. 24,
  67882. 24,
  67883. 24,
  67884. 24,
  67885. 24,
  67886. 24,
  67887. 24,
  67888. 24,
  67889. 24,
  67890. 24,
  67891. 24,
  67892. 24,
  67893. 24,
  67894. 24,
  67895. 24,
  67896. 24,
  67897. 24,
  67898. 24,
  67899. 24,
  67900. 24,
  67901. 24,
  67902. 24,
  67903. 24,
  67904. 23,
  67905. 24,
  67906. 24,
  67907. 24,
  67908. 24,
  67909. 24,
  67910. 24,
  67911. 24,
  67912. 24,
  67913. 24,
  67914. 24,
  67915. 24,
  67916. 24,
  67917. 24,
  67918. 24,
  67919. 24,
  67920. 24,
  67921. 24,
  67922. 24,
  67923. 24,
  67924. 24,
  67925. 24,
  67926. 24,
  67927. 24,
  67928. 24,
  67929. 24,
  67930. 24,
  67931. 24,
  67932. 23,
  67933. 24,
  67934. 24,
  67935. 24,
  67936. 24,
  67937. 24,
  67938. 24,
  67939. 24,
  67940. 24,
  67941. 24,
  67942. 24,
  67943. 24,
  67944. 24,
  67945. 24,
  67946. 24,
  67947. 24,
  67948. 24,
  67949. 24,
  67950. 24,
  67951. 24,
  67952. 24,
  67953. 24,
  67954. 24,
  67955. 24,
  67956. 24,
  67957. 24,
  67958. 24,
  67959. 24,
  67960. 23,
  67961. 24,
  67962. 24,
  67963. 24,
  67964. 24,
  67965. 24,
  67966. 24,
  67967. 24,
  67968. 24,
  67969. 24,
  67970. 24,
  67971. 24,
  67972. 24,
  67973. 24,
  67974. 24,
  67975. 24,
  67976. 24,
  67977. 24,
  67978. 24,
  67979. 24,
  67980. 24,
  67981. 24,
  67982. 24,
  67983. 24,
  67984. 24,
  67985. 24,
  67986. 24,
  67987. 24,
  67988. 23,
  67989. 24,
  67990. 24,
  67991. 24,
  67992. 24,
  67993. 24,
  67994. 24,
  67995. 24,
  67996. 24,
  67997. 24,
  67998. 24,
  67999. 24,
  68000. 24,
  68001. 24,
  68002. 24,
  68003. 24,
  68004. 24,
  68005. 24,
  68006. 24,
  68007. 24,
  68008. 24,
  68009. 24,
  68010. 24,
  68011. 24,
  68012. 24,
  68013. 24,
  68014. 24,
  68015. 24,
  68016. 23,
  68017. 24,
  68018. 24,
  68019. 24,
  68020. 24,
  68021. 24,
  68022. 24,
  68023. 24,
  68024. 24,
  68025. 24,
  68026. 24,
  68027. 24,
  68028. 24,
  68029. 24,
  68030. 24,
  68031. 24,
  68032. 24,
  68033. 24,
  68034. 24,
  68035. 24,
  68036. 24,
  68037. 24,
  68038. 24,
  68039. 24,
  68040. 24,
  68041. 24,
  68042. 24,
  68043. 24,
  68044. 23,
  68045. 24,
  68046. 24,
  68047. 24,
  68048. 24,
  68049. 24,
  68050. 24,
  68051. 24,
  68052. 24,
  68053. 24,
  68054. 24,
  68055. 24,
  68056. 24,
  68057. 24,
  68058. 24,
  68059. 24,
  68060. 24,
  68061. 24,
  68062. 24,
  68063. 24,
  68064. 24,
  68065. 24,
  68066. 24,
  68067. 24,
  68068. 24,
  68069. 24,
  68070. 24,
  68071. 24,
  68072. 23,
  68073. 24,
  68074. 24,
  68075. 24,
  68076. 24,
  68077. 24,
  68078. 24,
  68079. 24,
  68080. 24,
  68081. 24,
  68082. 24,
  68083. 24,
  68084. 24,
  68085. 24,
  68086. 24,
  68087. 24,
  68088. 24,
  68089. 24,
  68090. 24,
  68091. 24,
  68092. 24,
  68093. 24,
  68094. 24,
  68095. 24,
  68096. 24,
  68097. 24,
  68098. 24,
  68099. 24,
  68100. 23,
  68101. 24,
  68102. 24,
  68103. 24,
  68104. 24,
  68105. 24,
  68106. 24,
  68107. 24,
  68108. 24,
  68109. 24,
  68110. 24,
  68111. 24,
  68112. 24,
  68113. 24,
  68114. 24,
  68115. 24,
  68116. 24,
  68117. 24,
  68118. 24,
  68119. 24,
  68120. 24,
  68121. 24,
  68122. 24,
  68123. 24,
  68124. 24,
  68125. 24,
  68126. 24,
  68127. 24,
  68128. 23,
  68129. 24,
  68130. 24,
  68131. 24,
  68132. 24,
  68133. 24,
  68134. 24,
  68135. 24,
  68136. 24,
  68137. 24,
  68138. 24,
  68139. 24,
  68140. 24,
  68141. 24,
  68142. 24,
  68143. 24,
  68144. 24,
  68145. 24,
  68146. 24,
  68147. 24,
  68148. 24,
  68149. 24,
  68150. 24,
  68151. 24,
  68152. 24,
  68153. 24,
  68154. 24,
  68155. 24,
  68156. 23,
  68157. 24,
  68158. 24,
  68159. 24,
  68160. 24,
  68161. 24,
  68162. 24,
  68163. 24,
  68164. 24,
  68165. 24,
  68166. 24,
  68167. 24,
  68168. 24,
  68169. 24,
  68170. 24,
  68171. 24,
  68172. 24,
  68173. 24,
  68174. 24,
  68175. 24,
  68176. 24,
  68177. 24,
  68178. 24,
  68179. 24,
  68180. 24,
  68181. 24,
  68182. 24,
  68183. 24,
  68184. 23,
  68185. 24,
  68186. 24,
  68187. 24,
  68188. 24,
  68189. 24,
  68190. 24,
  68191. 24,
  68192. 24,
  68193. 24,
  68194. 24,
  68195. 24,
  68196. 24,
  68197. 24,
  68198. 24,
  68199. 24,
  68200. 24,
  68201. 24,
  68202. 24,
  68203. 24,
  68204. 24,
  68205. 24,
  68206. 24,
  68207. 24,
  68208. 24,
  68209. 24,
  68210. 24,
  68211. 24,
  68212. 23,
  68213. 24,
  68214. 24,
  68215. 24,
  68216. 24,
  68217. 24,
  68218. 24,
  68219. 24,
  68220. 24,
  68221. 24,
  68222. 24,
  68223. 24,
  68224. 24,
  68225. 24,
  68226. 24,
  68227. 24,
  68228. 24,
  68229. 24,
  68230. 24,
  68231. 24,
  68232. 24,
  68233. 24,
  68234. 24,
  68235. 24,
  68236. 24,
  68237. 24,
  68238. 24,
  68239. 24,
  68240. 23,
  68241. 24,
  68242. 24,
  68243. 24,
  68244. 24,
  68245. 24,
  68246. 24,
  68247. 24,
  68248. 24,
  68249. 24,
  68250. 24,
  68251. 24,
  68252. 24,
  68253. 24,
  68254. 24,
  68255. 24,
  68256. 24,
  68257. 24,
  68258. 24,
  68259. 24,
  68260. 24,
  68261. 24,
  68262. 24,
  68263. 24,
  68264. 24,
  68265. 24,
  68266. 24,
  68267. 24,
  68268. 23,
  68269. 24,
  68270. 24,
  68271. 24,
  68272. 24,
  68273. 24,
  68274. 24,
  68275. 24,
  68276. 24,
  68277. 24,
  68278. 24,
  68279. 24,
  68280. 24,
  68281. 24,
  68282. 24,
  68283. 24,
  68284. 24,
  68285. 24,
  68286. 24,
  68287. 24,
  68288. 24,
  68289. 24,
  68290. 24,
  68291. 24,
  68292. 24,
  68293. 24,
  68294. 24,
  68295. 24,
  68296. 23,
  68297. 24,
  68298. 24,
  68299. 24,
  68300. 24,
  68301. 24,
  68302. 24,
  68303. 24,
  68304. 24,
  68305. 24,
  68306. 24,
  68307. 24,
  68308. 24,
  68309. 24,
  68310. 24,
  68311. 24,
  68312. 24,
  68313. 24,
  68314. 24,
  68315. 24,
  68316. 24,
  68317. 24,
  68318. 24,
  68319. 24,
  68320. 24,
  68321. 24,
  68322. 24,
  68323. 24,
  68324. 23,
  68325. 24,
  68326. 24,
  68327. 24,
  68328. 24,
  68329. 24,
  68330. 24,
  68331. 24,
  68332. 24,
  68333. 24,
  68334. 24,
  68335. 24,
  68336. 24,
  68337. 24,
  68338. 24,
  68339. 24,
  68340. 24,
  68341. 24,
  68342. 24,
  68343. 24,
  68344. 24,
  68345. 24,
  68346. 24,
  68347. 24,
  68348. 24,
  68349. 24,
  68350. 24,
  68351. 24,
  68352. 23,
  68353. 24,
  68354. 24,
  68355. 24,
  68356. 24,
  68357. 24,
  68358. 24,
  68359. 24,
  68360. 24,
  68361. 24,
  68362. 24,
  68363. 24,
  68364. 24,
  68365. 24,
  68366. 24,
  68367. 24,
  68368. 24,
  68369. 24,
  68370. 24,
  68371. 24,
  68372. 24,
  68373. 24,
  68374. 24,
  68375. 24,
  68376. 24,
  68377. 24,
  68378. 24,
  68379. 24,
  68380. 23,
  68381. 24,
  68382. 24,
  68383. 24,
  68384. 24,
  68385. 24,
  68386. 24,
  68387. 24,
  68388. 24,
  68389. 24,
  68390. 24,
  68391. 24,
  68392. 24,
  68393. 24,
  68394. 24,
  68395. 24,
  68396. 24,
  68397. 24,
  68398. 24,
  68399. 24,
  68400. 24,
  68401. 24,
  68402. 24,
  68403. 24,
  68404. 24,
  68405. 24,
  68406. 24,
  68407. 24,
  68408. 23,
  68409. 24,
  68410. 24,
  68411. 24,
  68412. 24,
  68413. 24,
  68414. 24,
  68415. 24,
  68416. 24,
  68417. 24,
  68418. 24,
  68419. 24,
  68420. 24,
  68421. 24,
  68422. 24,
  68423. 24,
  68424. 24,
  68425. 24,
  68426. 24,
  68427. 24,
  68428. 24,
  68429. 24,
  68430. 24,
  68431. 24,
  68432. 24,
  68433. 24,
  68434. 24,
  68435. 24,
  68436. 23,
  68437. 24,
  68438. 24,
  68439. 24,
  68440. 24,
  68441. 24,
  68442. 24,
  68443. 24,
  68444. 24,
  68445. 24,
  68446. 24,
  68447. 24,
  68448. 24,
  68449. 24,
  68450. 24,
  68451. 24,
  68452. 24,
  68453. 24,
  68454. 24,
  68455. 24,
  68456. 24,
  68457. 24,
  68458. 24,
  68459. 24,
  68460. 24,
  68461. 24,
  68462. 24,
  68463. 24,
  68464. 23,
  68465. 24,
  68466. 24,
  68467. 24,
  68468. 24,
  68469. 24,
  68470. 24,
  68471. 24,
  68472. 24,
  68473. 24,
  68474. 24,
  68475. 24,
  68476. 24,
  68477. 24,
  68478. 24,
  68479. 24,
  68480. 24,
  68481. 24,
  68482. 24,
  68483. 24,
  68484. 24,
  68485. 24,
  68486. 24,
  68487. 24,
  68488. 24,
  68489. 24,
  68490. 24,
  68491. 24,
  68492. 23,
  68493. 24,
  68494. 24,
  68495. 24,
  68496. 24,
  68497. 24,
  68498. 24,
  68499. 24,
  68500. 24,
  68501. 24,
  68502. 24,
  68503. 24,
  68504. 24,
  68505. 24,
  68506. 24,
  68507. 24,
  68508. 24,
  68509. 24,
  68510. 24,
  68511. 24,
  68512. 24,
  68513. 24,
  68514. 24,
  68515. 24,
  68516. 24,
  68517. 24,
  68518. 24,
  68519. 24,
  68520. 23,
  68521. 24,
  68522. 24,
  68523. 24,
  68524. 24,
  68525. 24,
  68526. 24,
  68527. 24,
  68528. 24,
  68529. 24,
  68530. 24,
  68531. 24,
  68532. 24,
  68533. 24,
  68534. 24,
  68535. 24,
  68536. 24,
  68537. 24,
  68538. 24,
  68539. 24,
  68540. 24,
  68541. 24,
  68542. 24,
  68543. 24,
  68544. 24,
  68545. 24,
  68546. 24,
  68547. 24,
  68548. 23,
  68549. 24,
  68550. 24,
  68551. 24,
  68552. 24,
  68553. 24,
  68554. 24,
  68555. 24,
  68556. 24,
  68557. 24,
  68558. 24,
  68559. 24,
  68560. 24,
  68561. 24,
  68562. 24,
  68563. 24,
  68564. 24,
  68565. 24,
  68566. 24,
  68567. 24,
  68568. 24,
  68569. 24,
  68570. 24,
  68571. 24,
  68572. 24,
  68573. 24,
  68574. 24,
  68575. 24,
  68576. 23,
  68577. 24,
  68578. 24,
  68579. 24,
  68580. 24,
  68581. 24,
  68582. 24,
  68583. 24,
  68584. 24,
  68585. 24,
  68586. 24,
  68587. 24,
  68588. 24,
  68589. 24,
  68590. 24,
  68591. 24,
  68592. 24,
  68593. 24,
  68594. 24,
  68595. 24,
  68596. 24,
  68597. 24,
  68598. 24,
  68599. 24,
  68600. 24,
  68601. 24,
  68602. 24,
  68603. 24,
  68604. 23,
  68605. 24,
  68606. 24,
  68607. 24,
  68608. 24,
  68609. 24,
  68610. 24,
  68611. 24,
  68612. 24,
  68613. 24,
  68614. 24,
  68615. 24,
  68616. 24,
  68617. 24,
  68618. 24,
  68619. 24,
  68620. 24,
  68621. 24,
  68622. 24,
  68623. 24,
  68624. 24,
  68625. 24,
  68626. 24,
  68627. 24,
  68628. 24,
  68629. 24,
  68630. 24,
  68631. 24,
  68632. 23,
  68633. 24,
  68634. 24,
  68635. 24,
  68636. 24,
  68637. 24,
  68638. 24,
  68639. 24,
  68640. 24,
  68641. 24,
  68642. 24,
  68643. 24,
  68644. 24,
  68645. 24,
  68646. 24,
  68647. 24,
  68648. 24,
  68649. 24,
  68650. 24,
  68651. 24,
  68652. 24,
  68653. 24,
  68654. 24,
  68655. 24,
  68656. 24,
  68657. 24,
  68658. 24,
  68659. 24,
  68660. 23,
  68661. 24,
  68662. 24,
  68663. 24,
  68664. 24,
  68665. 24,
  68666. 24,
  68667. 24,
  68668. 24,
  68669. 24,
  68670. 24,
  68671. 24,
  68672. 24,
  68673. 24,
  68674. 24,
  68675. 24,
  68676. 24,
  68677. 24,
  68678. 24,
  68679. 24,
  68680. 24,
  68681. 24,
  68682. 24,
  68683. 24,
  68684. 24,
  68685. 24,
  68686. 24,
  68687. 24,
  68688. 23,
  68689. 24,
  68690. 24,
  68691. 24,
  68692. 24,
  68693. 24,
  68694. 24,
  68695. 24,
  68696. 24,
  68697. 24,
  68698. 24,
  68699. 24,
  68700. 24,
  68701. 24,
  68702. 24,
  68703. 24,
  68704. 24,
  68705. 24,
  68706. 24,
  68707. 24,
  68708. 24,
  68709. 24,
  68710. 24,
  68711. 24,
  68712. 24,
  68713. 24,
  68714. 24,
  68715. 24,
  68716. 23,
  68717. 24,
  68718. 24,
  68719. 24,
  68720. 24,
  68721. 24,
  68722. 24,
  68723. 24,
  68724. 24,
  68725. 24,
  68726. 24,
  68727. 24,
  68728. 24,
  68729. 24,
  68730. 24,
  68731. 24,
  68732. 24,
  68733. 24,
  68734. 24,
  68735. 24,
  68736. 24,
  68737. 24,
  68738. 24,
  68739. 24,
  68740. 24,
  68741. 24,
  68742. 24,
  68743. 24,
  68744. 23,
  68745. 24,
  68746. 24,
  68747. 24,
  68748. 24,
  68749. 24,
  68750. 24,
  68751. 24,
  68752. 24,
  68753. 24,
  68754. 24,
  68755. 24,
  68756. 24,
  68757. 24,
  68758. 24,
  68759. 24,
  68760. 24,
  68761. 24,
  68762. 24,
  68763. 24,
  68764. 24,
  68765. 24,
  68766. 24,
  68767. 24,
  68768. 24,
  68769. 24,
  68770. 24,
  68771. 24,
  68772. 23,
  68773. 24,
  68774. 24,
  68775. 24,
  68776. 24,
  68777. 24,
  68778. 24,
  68779. 24,
  68780. 24,
  68781. 24,
  68782. 24,
  68783. 24,
  68784. 24,
  68785. 24,
  68786. 24,
  68787. 24,
  68788. 24,
  68789. 24,
  68790. 24,
  68791. 24,
  68792. 24,
  68793. 24,
  68794. 24,
  68795. 24,
  68796. 24,
  68797. 24,
  68798. 24,
  68799. 24,
  68800. 23,
  68801. 24,
  68802. 24,
  68803. 24,
  68804. 24,
  68805. 24,
  68806. 24,
  68807. 24,
  68808. 24,
  68809. 24,
  68810. 24,
  68811. 24,
  68812. 24,
  68813. 24,
  68814. 24,
  68815. 24,
  68816. 24,
  68817. 24,
  68818. 24,
  68819. 24,
  68820. 24,
  68821. 24,
  68822. 24,
  68823. 24,
  68824. 24,
  68825. 24,
  68826. 24,
  68827. 24,
  68828. 23,
  68829. 24,
  68830. 24,
  68831. 24,
  68832. 24,
  68833. 24,
  68834. 24,
  68835. 24,
  68836. 24,
  68837. 24,
  68838. 24,
  68839. 24,
  68840. 24,
  68841. 24,
  68842. 24,
  68843. 24,
  68844. 24,
  68845. 24,
  68846. 24,
  68847. 24,
  68848. 24,
  68849. 24,
  68850. 24,
  68851. 24,
  68852. 24,
  68853. 24,
  68854. 24,
  68855. 24,
  68856. 23,
  68857. 24,
  68858. 24,
  68859. 24,
  68860. 24,
  68861. 24,
  68862. 24,
  68863. 24,
  68864. 24,
  68865. 24,
  68866. 24,
  68867. 24,
  68868. 24,
  68869. 24,
  68870. 24,
  68871. 24,
  68872. 24,
  68873. 24,
  68874. 24,
  68875. 24,
  68876. 24,
  68877. 24,
  68878. 24,
  68879. 24,
  68880. 24,
  68881. 24,
  68882. 24,
  68883. 24,
  68884. 23,
  68885. 24,
  68886. 24,
  68887. 24,
  68888. 24,
  68889. 24,
  68890. 24,
  68891. 24,
  68892. 24,
  68893. 24,
  68894. 24,
  68895. 24,
  68896. 24,
  68897. 24,
  68898. 24,
  68899. 24,
  68900. 24,
  68901. 24,
  68902. 24,
  68903. 24,
  68904. 24,
  68905. 24,
  68906. 24,
  68907. 24,
  68908. 24,
  68909. 24,
  68910. 24,
  68911. 24,
  68912. 23,
  68913. 24,
  68914. 24,
  68915. 24,
  68916. 24,
  68917. 24,
  68918. 24,
  68919. 24,
  68920. 24,
  68921. 24,
  68922. 24,
  68923. 24,
  68924. 24,
  68925. 24,
  68926. 24,
  68927. 24,
  68928. 24,
  68929. 24,
  68930. 24,
  68931. 24,
  68932. 24,
  68933. 24,
  68934. 24,
  68935. 24,
  68936. 24,
  68937. 24,
  68938. 24,
  68939. 24,
  68940. 23,
  68941. 24,
  68942. 24,
  68943. 24,
  68944. 24,
  68945. 24,
  68946. 24,
  68947. 24,
  68948. 24,
  68949. 24,
  68950. 24,
  68951. 24,
  68952. 24,
  68953. 24,
  68954. 24,
  68955. 24,
  68956. 24,
  68957. 24,
  68958. 24,
  68959. 24,
  68960. 24,
  68961. 24,
  68962. 24,
  68963. 24,
  68964. 24,
  68965. 24,
  68966. 24,
  68967. 24,
  68968. 23,
  68969. 24,
  68970. 24,
  68971. 24,
  68972. 24,
  68973. 24,
  68974. 24,
  68975. 24,
  68976. 24,
  68977. 24,
  68978. 24,
  68979. 24,
  68980. 24,
  68981. 24,
  68982. 24,
  68983. 24,
  68984. 24,
  68985. 24,
  68986. 24,
  68987. 24,
  68988. 24,
  68989. 24,
  68990. 24,
  68991. 24,
  68992. 24,
  68993. 24,
  68994. 24,
  68995. 24,
  68996. 23,
  68997. 24,
  68998. 24,
  68999. 24,
  69000. 24,
  69001. 24,
  69002. 24,
  69003. 24,
  69004. 24,
  69005. 24,
  69006. 24,
  69007. 24,
  69008. 24,
  69009. 24,
  69010. 24,
  69011. 24,
  69012. 24,
  69013. 24,
  69014. 24,
  69015. 24,
  69016. 24,
  69017. 24,
  69018. 24,
  69019. 24,
  69020. 24,
  69021. 24,
  69022. 24,
  69023. 24,
  69024. 23,
  69025. 24,
  69026. 24,
  69027. 24,
  69028. 24,
  69029. 24,
  69030. 24,
  69031. 24,
  69032. 24,
  69033. 24,
  69034. 24,
  69035. 24,
  69036. 24,
  69037. 24,
  69038. 24,
  69039. 24,
  69040. 24,
  69041. 24,
  69042. 24,
  69043. 24,
  69044. 24,
  69045. 24,
  69046. 24,
  69047. 24,
  69048. 24,
  69049. 24,
  69050. 24,
  69051. 24,
  69052. 23,
  69053. 24,
  69054. 24,
  69055. 24,
  69056. 24,
  69057. 24,
  69058. 24,
  69059. 24,
  69060. 24,
  69061. 24,
  69062. 24,
  69063. 24,
  69064. 24,
  69065. 24,
  69066. 24,
  69067. 24,
  69068. 24,
  69069. 24,
  69070. 24,
  69071. 24,
  69072. 24,
  69073. 24,
  69074. 24,
  69075. 24,
  69076. 24,
  69077. 24,
  69078. 24,
  69079. 24,
  69080. 23,
  69081. 24,
  69082. 24,
  69083. 24,
  69084. 24,
  69085. 24,
  69086. 24,
  69087. 24,
  69088. 24,
  69089. 24,
  69090. 24,
  69091. 24,
  69092. 24,
  69093. 24,
  69094. 24,
  69095. 24,
  69096. 24,
  69097. 24,
  69098. 24,
  69099. 24,
  69100. 24,
  69101. 24,
  69102. 24,
  69103. 24,
  69104. 24,
  69105. 24,
  69106. 24,
  69107. 24,
  69108. 23,
  69109. 24,
  69110. 24,
  69111. 24,
  69112. 24,
  69113. 24,
  69114. 24,
  69115. 24,
  69116. 24,
  69117. 24,
  69118. 24,
  69119. 24,
  69120. 24,
  69121. 24,
  69122. 24,
  69123. 24,
  69124. 24,
  69125. 24,
  69126. 24,
  69127. 24,
  69128. 24,
  69129. 24,
  69130. 24,
  69131. 24,
  69132. 24,
  69133. 24,
  69134. 24,
  69135. 24,
  69136. 23,
  69137. 24,
  69138. 24,
  69139. 24,
  69140. 24,
  69141. 24,
  69142. 24,
  69143. 24,
  69144. 24,
  69145. 24,
  69146. 24,
  69147. 24,
  69148. 24,
  69149. 24,
  69150. 24,
  69151. 24,
  69152. 24,
  69153. 24,
  69154. 24,
  69155. 24,
  69156. 24,
  69157. 24,
  69158. 24,
  69159. 24,
  69160. 24,
  69161. 24,
  69162. 24,
  69163. 24,
  69164. 23,
  69165. 24,
  69166. 24,
  69167. 24,
  69168. 24,
  69169. 24,
  69170. 24,
  69171. 24,
  69172. 24,
  69173. 24,
  69174. 24,
  69175. 24,
  69176. 24,
  69177. 24,
  69178. 24,
  69179. 24,
  69180. 24,
  69181. 24,
  69182. 24,
  69183. 24,
  69184. 24,
  69185. 24,
  69186. 24,
  69187. 24,
  69188. 24,
  69189. 24,
  69190. 24,
  69191. 24,
  69192. 23,
  69193. 24,
  69194. 24,
  69195. 24,
  69196. 24,
  69197. 24,
  69198. 24,
  69199. 24,
  69200. 24,
  69201. 24,
  69202. 24,
  69203. 24,
  69204. 24,
  69205. 24,
  69206. 24,
  69207. 24,
  69208. 24,
  69209. 24,
  69210. 24,
  69211. 24,
  69212. 24,
  69213. 24,
  69214. 24,
  69215. 24,
  69216. 24,
  69217. 24,
  69218. 24,
  69219. 24,
  69220. 23,
  69221. 24,
  69222. 24,
  69223. 24,
  69224. 24,
  69225. 24,
  69226. 24,
  69227. 24,
  69228. 24,
  69229. 24,
  69230. 24,
  69231. 24,
  69232. 24,
  69233. 24,
  69234. 24,
  69235. 24,
  69236. 24,
  69237. 24,
  69238. 24,
  69239. 24,
  69240. 24,
  69241. 24,
  69242. 24,
  69243. 24,
  69244. 24,
  69245. 24,
  69246. 24,
  69247. 24,
  69248. 23,
  69249. 24,
  69250. 24,
  69251. 24,
  69252. 24,
  69253. 24,
  69254. 24,
  69255. 24,
  69256. 24,
  69257. 24,
  69258. 24,
  69259. 24,
  69260. 24,
  69261. 24,
  69262. 24,
  69263. 24,
  69264. 24,
  69265. 24,
  69266. 24,
  69267. 24,
  69268. 24,
  69269. 24,
  69270. 24,
  69271. 24,
  69272. 24,
  69273. 24,
  69274. 24,
  69275. 24,
  69276. 23,
  69277. 24,
  69278. 24,
  69279. 24,
  69280. 24,
  69281. 24,
  69282. 24,
  69283. 24,
  69284. 24,
  69285. 24,
  69286. 24,
  69287. 24,
  69288. 24,
  69289. 24,
  69290. 24,
  69291. 24,
  69292. 24,
  69293. 24,
  69294. 24,
  69295. 24,
  69296. 24,
  69297. 24,
  69298. 24,
  69299. 24,
  69300. 24,
  69301. 24,
  69302. 24,
  69303. 24,
  69304. 23,
  69305. 24,
  69306. 24,
  69307. 24,
  69308. 24,
  69309. 24,
  69310. 24,
  69311. 24,
  69312. 24,
  69313. 24,
  69314. 24,
  69315. 24,
  69316. 24,
  69317. 24,
  69318. 24,
  69319. 24,
  69320. 24,
  69321. 24,
  69322. 24,
  69323. 24,
  69324. 24,
  69325. 24,
  69326. 24,
  69327. 24,
  69328. 24,
  69329. 24,
  69330. 24,
  69331. 24,
  69332. 23,
  69333. 24,
  69334. 24,
  69335. 24,
  69336. 24,
  69337. 24,
  69338. 24,
  69339. 24,
  69340. 24,
  69341. 24,
  69342. 24,
  69343. 24,
  69344. 24,
  69345. 24,
  69346. 24,
  69347. 24,
  69348. 24,
  69349. 24,
  69350. 24,
  69351. 24,
  69352. 24,
  69353. 24,
  69354. 24,
  69355. 24,
  69356. 24,
  69357. 24,
  69358. 24,
  69359. 24,
  69360. 23,
  69361. 24,
  69362. 24,
  69363. 24,
  69364. 24,
  69365. 24,
  69366. 24,
  69367. 24,
  69368. 24,
  69369. 24,
  69370. 24,
  69371. 24,
  69372. 24,
  69373. 24,
  69374. 24,
  69375. 24,
  69376. 24,
  69377. 24,
  69378. 24,
  69379. 24,
  69380. 24,
  69381. 24,
  69382. 24,
  69383. 24,
  69384. 24,
  69385. 24,
  69386. 24,
  69387. 24,
  69388. 23,
  69389. 24,
  69390. 24,
  69391. 24,
  69392. 24,
  69393. 24,
  69394. 24,
  69395. 24,
  69396. 24,
  69397. 24,
  69398. 24,
  69399. 24,
  69400. 24,
  69401. 24,
  69402. 24,
  69403. 24,
  69404. 24,
  69405. 24,
  69406. 24,
  69407. 24,
  69408. 24,
  69409. 24,
  69410. 24,
  69411. 24,
  69412. 24,
  69413. 24,
  69414. 24,
  69415. 24,
  69416. 23,
  69417. 24,
  69418. 24,
  69419. 24,
  69420. 24,
  69421. 24,
  69422. 24,
  69423. 24,
  69424. 24,
  69425. 24,
  69426. 24,
  69427. 24,
  69428. 24,
  69429. 24,
  69430. 24,
  69431. 24,
  69432. 24,
  69433. 24,
  69434. 24,
  69435. 24,
  69436. 24,
  69437. 24,
  69438. 24,
  69439. 24,
  69440. 24,
  69441. 24,
  69442. 24,
  69443. 24,
  69444. 23,
  69445. 24,
  69446. 24,
  69447. 24,
  69448. 24,
  69449. 24,
  69450. 24,
  69451. 24,
  69452. 24,
  69453. 24,
  69454. 24,
  69455. 24,
  69456. 24,
  69457. 24,
  69458. 24,
  69459. 24,
  69460. 24,
  69461. 24,
  69462. 24,
  69463. 24,
  69464. 24,
  69465. 24,
  69466. 24,
  69467. 24,
  69468. 24,
  69469. 24,
  69470. 24,
  69471. 24,
  69472. 23,
  69473. 24,
  69474. 24,
  69475. 24,
  69476. 24,
  69477. 24,
  69478. 24,
  69479. 24,
  69480. 24,
  69481. 24,
  69482. 24,
  69483. 24,
  69484. 24,
  69485. 24,
  69486. 24,
  69487. 24,
  69488. 24,
  69489. 24,
  69490. 24,
  69491. 24,
  69492. 24,
  69493. 24,
  69494. 24,
  69495. 24,
  69496. 24,
  69497. 24,
  69498. 24,
  69499. 24,
  69500. 23,
  69501. 24,
  69502. 24,
  69503. 24,
  69504. 24,
  69505. 24,
  69506. 24,
  69507. 24,
  69508. 24,
  69509. 24,
  69510. 24,
  69511. 24,
  69512. 24,
  69513. 24,
  69514. 24,
  69515. 24,
  69516. 24,
  69517. 24,
  69518. 24,
  69519. 24,
  69520. 24,
  69521. 24,
  69522. 24,
  69523. 24,
  69524. 24,
  69525. 24,
  69526. 24,
  69527. 24,
  69528. 23,
  69529. 24,
  69530. 24,
  69531. 24,
  69532. 24,
  69533. 24,
  69534. 24,
  69535. 24,
  69536. 24,
  69537. 24,
  69538. 24,
  69539. 24,
  69540. 24,
  69541. 24,
  69542. 24,
  69543. 24,
  69544. 24,
  69545. 24,
  69546. 24,
  69547. 24,
  69548. 24,
  69549. 24,
  69550. 24,
  69551. 24,
  69552. 24,
  69553. 24,
  69554. 24,
  69555. 24,
  69556. 23,
  69557. 24,
  69558. 24,
  69559. 24,
  69560. 24,
  69561. 24,
  69562. 24,
  69563. 24,
  69564. 24,
  69565. 24,
  69566. 24,
  69567. 24,
  69568. 24,
  69569. 24,
  69570. 24,
  69571. 24,
  69572. 24,
  69573. 24,
  69574. 24,
  69575. 24,
  69576. 24,
  69577. 24,
  69578. 24,
  69579. 24,
  69580. 24,
  69581. 24,
  69582. 24,
  69583. 24,
  69584. 23,
  69585. 24,
  69586. 24,
  69587. 24,
  69588. 24,
  69589. 24,
  69590. 24,
  69591. 24,
  69592. 24,
  69593. 24,
  69594. 24,
  69595. 24,
  69596. 24,
  69597. 24,
  69598. 24,
  69599. 24,
  69600. 24,
  69601. 24,
  69602. 24,
  69603. 24,
  69604. 24,
  69605. 24,
  69606. 24,
  69607. 24,
  69608. 24,
  69609. 24,
  69610. 24,
  69611. 24,
  69612. 23,
  69613. 24,
  69614. 24,
  69615. 24,
  69616. 24,
  69617. 24,
  69618. 24,
  69619. 24,
  69620. 24,
  69621. 24,
  69622. 24,
  69623. 24,
  69624. 24,
  69625. 24,
  69626. 24,
  69627. 24,
  69628. 24,
  69629. 24,
  69630. 24,
  69631. 24,
  69632. 24,
  69633. 24,
  69634. 24,
  69635. 24,
  69636. 24,
  69637. 24,
  69638. 24,
  69639. 24,
  69640. 23,
  69641. 24,
  69642. 24,
  69643. 24,
  69644. 24,
  69645. 24,
  69646. 24,
  69647. 24,
  69648. 24,
  69649. 24,
  69650. 24,
  69651. 24,
  69652. 24,
  69653. 24,
  69654. 24,
  69655. 24,
  69656. 24,
  69657. 24,
  69658. 24,
  69659. 24,
  69660. 24,
  69661. 24,
  69662. 24,
  69663. 24,
  69664. 24,
  69665. 24,
  69666. 24,
  69667. 24,
  69668. 23,
  69669. 24,
  69670. 24,
  69671. 24,
  69672. 24,
  69673. 24,
  69674. 24,
  69675. 24,
  69676. 24,
  69677. 24,
  69678. 24,
  69679. 24,
  69680. 24,
  69681. 24,
  69682. 24,
  69683. 24,
  69684. 24,
  69685. 24,
  69686. 24,
  69687. 24,
  69688. 24,
  69689. 24,
  69690. 24,
  69691. 24,
  69692. 24,
  69693. 24,
  69694. 24,
  69695. 24,
  69696. 23,
  69697. 24,
  69698. 24,
  69699. 24,
  69700. 24,
  69701. 24,
  69702. 24,
  69703. 24,
  69704. 24,
  69705. 24,
  69706. 24,
  69707. 24,
  69708. 24,
  69709. 24,
  69710. 24,
  69711. 24,
  69712. 24,
  69713. 24,
  69714. 24,
  69715. 24,
  69716. 24,
  69717. 24,
  69718. 24,
  69719. 24,
  69720. 24,
  69721. 24,
  69722. 24,
  69723. 24,
  69724. 23,
  69725. 24,
  69726. 24,
  69727. 24,
  69728. 24,
  69729. 24,
  69730. 24,
  69731. 24,
  69732. 24,
  69733. 24,
  69734. 24,
  69735. 24,
  69736. 24,
  69737. 24,
  69738. 24,
  69739. 24,
  69740. 24,
  69741. 24,
  69742. 24,
  69743. 24,
  69744. 24,
  69745. 24,
  69746. 24,
  69747. 24,
  69748. 24,
  69749. 24,
  69750. 24,
  69751. 24,
  69752. 23,
  69753. 24,
  69754. 24,
  69755. 24,
  69756. 24,
  69757. 24,
  69758. 24,
  69759. 24,
  69760. 24,
  69761. 24,
  69762. 24,
  69763. 24,
  69764. 24,
  69765. 24,
  69766. 24,
  69767. 24,
  69768. 24,
  69769. 24,
  69770. 24,
  69771. 24,
  69772. 24,
  69773. 24,
  69774. 24,
  69775. 24,
  69776. 24,
  69777. 24,
  69778. 24,
  69779. 24,
  69780. 23,
  69781. 24,
  69782. 24,
  69783. 24,
  69784. 24,
  69785. 24,
  69786. 24,
  69787. 24,
  69788. 24,
  69789. 24,
  69790. 24,
  69791. 24,
  69792. 24,
  69793. 24,
  69794. 24,
  69795. 24,
  69796. 24,
  69797. 24,
  69798. 24,
  69799. 24,
  69800. 24,
  69801. 24,
  69802. 24,
  69803. 24,
  69804. 24,
  69805. 24,
  69806. 24,
  69807. 24,
  69808. 23,
  69809. 24,
  69810. 24,
  69811. 24,
  69812. 24,
  69813. 24,
  69814. 24,
  69815. 24,
  69816. 24,
  69817. 24,
  69818. 24,
  69819. 24,
  69820. 24,
  69821. 24,
  69822. 24,
  69823. 24,
  69824. 24,
  69825. 24,
  69826. 24,
  69827. 24,
  69828. 24,
  69829. 24,
  69830. 24,
  69831. 24,
  69832. 24,
  69833. 24,
  69834. 24,
  69835. 24,
  69836. 23,
  69837. 24,
  69838. 24,
  69839. 24,
  69840. 24,
  69841. 24,
  69842. 24,
  69843. 24,
  69844. 24,
  69845. 24,
  69846. 24,
  69847. 24,
  69848. 24,
  69849. 24,
  69850. 24,
  69851. 24,
  69852. 24,
  69853. 24,
  69854. 24,
  69855. 24,
  69856. 24,
  69857. 24,
  69858. 24,
  69859. 24,
  69860. 24,
  69861. 24,
  69862. 24,
  69863. 24,
  69864. 23,
  69865. 24,
  69866. 24,
  69867. 24,
  69868. 24,
  69869. 24,
  69870. 24,
  69871. 24,
  69872. 24,
  69873. 24,
  69874. 24,
  69875. 24,
  69876. 24,
  69877. 24,
  69878. 24,
  69879. 24,
  69880. 24,
  69881. 24,
  69882. 24,
  69883. 24,
  69884. 24,
  69885. 24,
  69886. 24,
  69887. 24,
  69888. 24,
  69889. 24,
  69890. 24,
  69891. 24,
  69892. 23,
  69893. 24,
  69894. 24,
  69895. 24,
  69896. 24,
  69897. 24,
  69898. 24,
  69899. 24,
  69900. 24,
  69901. 24,
  69902. 24,
  69903. 24,
  69904. 24,
  69905. 24,
  69906. 24,
  69907. 24,
  69908. 24,
  69909. 24,
  69910. 24,
  69911. 24,
  69912. 24,
  69913. 24,
  69914. 24,
  69915. 24,
  69916. 24,
  69917. 24,
  69918. 24,
  69919. 24,
  69920. 23,
  69921. 24,
  69922. 24,
  69923. 24,
  69924. 24,
  69925. 24,
  69926. 24,
  69927. 24,
  69928. 24,
  69929. 24,
  69930. 24,
  69931. 24,
  69932. 24,
  69933. 24,
  69934. 24,
  69935. 24,
  69936. 24,
  69937. 24,
  69938. 24,
  69939. 24,
  69940. 24,
  69941. 24,
  69942. 24,
  69943. 24,
  69944. 24,
  69945. 24,
  69946. 24,
  69947. 24,
  69948. 23,
  69949. 24,
  69950. 24,
  69951. 24,
  69952. 24,
  69953. 24,
  69954. 24,
  69955. 24,
  69956. 24,
  69957. 24,
  69958. 24,
  69959. 24,
  69960. 24,
  69961. 24,
  69962. 24,
  69963. 24,
  69964. 24,
  69965. 24,
  69966. 24,
  69967. 24,
  69968. 24,
  69969. 24,
  69970. 24,
  69971. 24,
  69972. 24,
  69973. 24,
  69974. 24,
  69975. 24,
  69976. 23,
  69977. 24,
  69978. 24,
  69979. 24,
  69980. 24,
  69981. 24,
  69982. 24,
  69983. 24,
  69984. 24,
  69985. 24,
  69986. 24,
  69987. 24,
  69988. 24,
  69989. 24,
  69990. 24,
  69991. 24,
  69992. 24,
  69993. 24,
  69994. 24,
  69995. 24,
  69996. 24,
  69997. 24,
  69998. 24,
  69999. 24,
  70000. 24,
  70001. 24,
  70002. 24,
  70003. 24,
  70004. 23,
  70005. 24,
  70006. 24,
  70007. 24,
  70008. 24,
  70009. 24,
  70010. 24,
  70011. 24,
  70012. 24,
  70013. 24,
  70014. 24,
  70015. 24,
  70016. 24,
  70017. 24,
  70018. 24,
  70019. 24,
  70020. 24,
  70021. 24,
  70022. 24,
  70023. 24,
  70024. 24,
  70025. 24,
  70026. 24,
  70027. 24,
  70028. 24,
  70029. 24,
  70030. 24,
  70031. 24,
  70032. 23,
  70033. 24,
  70034. 24,
  70035. 24,
  70036. 24,
  70037. 24,
  70038. 24,
  70039. 24,
  70040. 24,
  70041. 24,
  70042. 24,
  70043. 24,
  70044. 24,
  70045. 24,
  70046. 24,
  70047. 24,
  70048. 24,
  70049. 24,
  70050. 24,
  70051. 24,
  70052. 24,
  70053. 24,
  70054. 24,
  70055. 24,
  70056. 24,
  70057. 24,
  70058. 24,
  70059. 24,
  70060. 23,
  70061. 24,
  70062. 24,
  70063. 24,
  70064. 24,
  70065. 24,
  70066. 24,
  70067. 24,
  70068. 24,
  70069. 24,
  70070. 24,
  70071. 24,
  70072. 24,
  70073. 24,
  70074. 24,
  70075. 24,
  70076. 24,
  70077. 24,
  70078. 24,
  70079. 24,
  70080. 24,
  70081. 24,
  70082. 24,
  70083. 24,
  70084. 24,
  70085. 24,
  70086. 24,
  70087. 24,
  70088. 23,
  70089. 24,
  70090. 24,
  70091. 24,
  70092. 24,
  70093. 24,
  70094. 24,
  70095. 24,
  70096. 24,
  70097. 24,
  70098. 24,
  70099. 24,
  70100. 24,
  70101. 24,
  70102. 24,
  70103. 24,
  70104. 24,
  70105. 24,
  70106. 24,
  70107. 24,
  70108. 24,
  70109. 24,
  70110. 24,
  70111. 24,
  70112. 24,
  70113. 24,
  70114. 24,
  70115. 24,
  70116. 23,
  70117. 24,
  70118. 24,
  70119. 24,
  70120. 24,
  70121. 24,
  70122. 24,
  70123. 24,
  70124. 24,
  70125. 24,
  70126. 24,
  70127. 24,
  70128. 24,
  70129. 24,
  70130. 24,
  70131. 24,
  70132. 24,
  70133. 24,
  70134. 24,
  70135. 24,
  70136. 24,
  70137. 24,
  70138. 24,
  70139. 24,
  70140. 24,
  70141. 24,
  70142. 24,
  70143. 24,
  70144. 23,
  70145. 24,
  70146. 24,
  70147. 24,
  70148. 24,
  70149. 24,
  70150. 24,
  70151. 24,
  70152. 24,
  70153. 24,
  70154. 24,
  70155. 24,
  70156. 24,
  70157. 24,
  70158. 24,
  70159. 24,
  70160. 24,
  70161. 24,
  70162. 24,
  70163. 24,
  70164. 24,
  70165. 24,
  70166. 24,
  70167. 24,
  70168. 24,
  70169. 24,
  70170. 24,
  70171. 24,
  70172. 23,
  70173. 24,
  70174. 24,
  70175. 24,
  70176. 24,
  70177. 24,
  70178. 24,
  70179. 24,
  70180. 24,
  70181. 24,
  70182. 24,
  70183. 24,
  70184. 24,
  70185. 24,
  70186. 24,
  70187. 24,
  70188. 24,
  70189. 24,
  70190. 24,
  70191. 24,
  70192. 24,
  70193. 24,
  70194. 24,
  70195. 24,
  70196. 24,
  70197. 24,
  70198. 24,
  70199. 24,
  70200. 23,
  70201. 24,
  70202. 24,
  70203. 24,
  70204. 24,
  70205. 24,
  70206. 24,
  70207. 24,
  70208. 24,
  70209. 24,
  70210. 24,
  70211. 24,
  70212. 24,
  70213. 24,
  70214. 24,
  70215. 24,
  70216. 24,
  70217. 24,
  70218. 24,
  70219. 24,
  70220. 24,
  70221. 24,
  70222. 24,
  70223. 24,
  70224. 24,
  70225. 24,
  70226. 24,
  70227. 24,
  70228. 23,
  70229. 24,
  70230. 24,
  70231. 24,
  70232. 24,
  70233. 24,
  70234. 24,
  70235. 24,
  70236. 24,
  70237. 24,
  70238. 24,
  70239. 24,
  70240. 24,
  70241. 24,
  70242. 24,
  70243. 24,
  70244. 24,
  70245. 24,
  70246. 24,
  70247. 24,
  70248. 24,
  70249. 24,
  70250. 24,
  70251. 24,
  70252. 24,
  70253. 24,
  70254. 24,
  70255. 24,
  70256. 23,
  70257. 24,
  70258. 24,
  70259. 24,
  70260. 24,
  70261. 24,
  70262. 24,
  70263. 24,
  70264. 24,
  70265. 24,
  70266. 24,
  70267. 24,
  70268. 24,
  70269. 24,
  70270. 24,
  70271. 24,
  70272. 24,
  70273. 24,
  70274. 24,
  70275. 24,
  70276. 24,
  70277. 24,
  70278. 24,
  70279. 24,
  70280. 24,
  70281. 24,
  70282. 24,
  70283. 24,
  70284. 23,
  70285. 24,
  70286. 24,
  70287. 24,
  70288. 24,
  70289. 24,
  70290. 24,
  70291. 24,
  70292. 24,
  70293. 24,
  70294. 24,
  70295. 24,
  70296. 24,
  70297. 24,
  70298. 24,
  70299. 24,
  70300. 24,
  70301. 24,
  70302. 24,
  70303. 24,
  70304. 24,
  70305. 24,
  70306. 24,
  70307. 24,
  70308. 24,
  70309. 24,
  70310. 24,
  70311. 24,
  70312. 23,
  70313. 24,
  70314. 24,
  70315. 24,
  70316. 24,
  70317. 24,
  70318. 24,
  70319. 24,
  70320. 24,
  70321. 24,
  70322. 24,
  70323. 24,
  70324. 24,
  70325. 24,
  70326. 24,
  70327. 24,
  70328. 24,
  70329. 24,
  70330. 24,
  70331. 24,
  70332. 24,
  70333. 24,
  70334. 24,
  70335. 24,
  70336. 24,
  70337. 24,
  70338. 24,
  70339. 24,
  70340. 23,
  70341. 24,
  70342. 24,
  70343. 24,
  70344. 24,
  70345. 24,
  70346. 24,
  70347. 24,
  70348. 24,
  70349. 24,
  70350. 24,
  70351. 24,
  70352. 24,
  70353. 24,
  70354. 24,
  70355. 24,
  70356. 24,
  70357. 24,
  70358. 24,
  70359. 24,
  70360. 24,
  70361. 24,
  70362. 24,
  70363. 24,
  70364. 24,
  70365. 24,
  70366. 24,
  70367. 24,
  70368. 23,
  70369. 24,
  70370. 24,
  70371. 24,
  70372. 24,
  70373. 24,
  70374. 24,
  70375. 24,
  70376. 24,
  70377. 24,
  70378. 24,
  70379. 24,
  70380. 24,
  70381. 24,
  70382. 24,
  70383. 24,
  70384. 24,
  70385. 24,
  70386. 24,
  70387. 24,
  70388. 24,
  70389. 24,
  70390. 24,
  70391. 24,
  70392. 24,
  70393. 24,
  70394. 24,
  70395. 24,
  70396. 23,
  70397. 24,
  70398. 24,
  70399. 24,
  70400. 24,
  70401. 24,
  70402. 24,
  70403. 24,
  70404. 24,
  70405. 24,
  70406. 24,
  70407. 24,
  70408. 24,
  70409. 24,
  70410. 24,
  70411. 24,
  70412. 24,
  70413. 24,
  70414. 24,
  70415. 24,
  70416. 24,
  70417. 24,
  70418. 24,
  70419. 24,
  70420. 24,
  70421. 24,
  70422. 24,
  70423. 24,
  70424. 23,
  70425. 24,
  70426. 24,
  70427. 24,
  70428. 24,
  70429. 24,
  70430. 24,
  70431. 24,
  70432. 24,
  70433. 24,
  70434. 24,
  70435. 24,
  70436. 24,
  70437. 24,
  70438. 24,
  70439. 24,
  70440. 24,
  70441. 24,
  70442. 24,
  70443. 24,
  70444. 24,
  70445. 24,
  70446. 24,
  70447. 24,
  70448. 24,
  70449. 24,
  70450. 24,
  70451. 24,
  70452. 23,
  70453. 24,
  70454. 24,
  70455. 24,
  70456. 24,
  70457. 24,
  70458. 24,
  70459. 24,
  70460. 24,
  70461. 24,
  70462. 24,
  70463. 24,
  70464. 24,
  70465. 24,
  70466. 24,
  70467. 24,
  70468. 24,
  70469. 24,
  70470. 24,
  70471. 24,
  70472. 24,
  70473. 24,
  70474. 24,
  70475. 24,
  70476. 24,
  70477. 24,
  70478. 24,
  70479. 24,
  70480. 23,
  70481. 24,
  70482. 24,
  70483. 24,
  70484. 24,
  70485. 24,
  70486. 24,
  70487. 24,
  70488. 24,
  70489. 24,
  70490. 24,
  70491. 24,
  70492. 24,
  70493. 24,
  70494. 24,
  70495. 24,
  70496. 24,
  70497. 24,
  70498. 24,
  70499. 24,
  70500. 24,
  70501. 24,
  70502. 24,
  70503. 24,
  70504. 24,
  70505. 24,
  70506. 24,
  70507. 24,
  70508. 23,
  70509. 24,
  70510. 24,
  70511. 24,
  70512. 24,
  70513. 24,
  70514. 24,
  70515. 24,
  70516. 24,
  70517. 24,
  70518. 24,
  70519. 24,
  70520. 24,
  70521. 24,
  70522. 24,
  70523. 24,
  70524. 24,
  70525. 24,
  70526. 24,
  70527. 24,
  70528. 24,
  70529. 24,
  70530. 24,
  70531. 24,
  70532. 24,
  70533. 24,
  70534. 24,
  70535. 24,
  70536. 23,
  70537. 24,
  70538. 24,
  70539. 24,
  70540. 24,
  70541. 24,
  70542. 24,
  70543. 24,
  70544. 24,
  70545. 24,
  70546. 24,
  70547. 24,
  70548. 24,
  70549. 24,
  70550. 24,
  70551. 24,
  70552. 24,
  70553. 24,
  70554. 24,
  70555. 24,
  70556. 24,
  70557. 24,
  70558. 24,
  70559. 24,
  70560. 24,
  70561. 24,
  70562. 24,
  70563. 24,
  70564. 23,
  70565. 24,
  70566. 24,
  70567. 24,
  70568. 24,
  70569. 24,
  70570. 24,
  70571. 24,
  70572. 24,
  70573. 24,
  70574. 24,
  70575. 24,
  70576. 24,
  70577. 24,
  70578. 24,
  70579. 24,
  70580. 24,
  70581. 24,
  70582. 24,
  70583. 24,
  70584. 24,
  70585. 24,
  70586. 24,
  70587. 24,
  70588. 24,
  70589. 24,
  70590. 24,
  70591. 24,
  70592. 23,
  70593. 24,
  70594. 24,
  70595. 24,
  70596. 24,
  70597. 24,
  70598. 24,
  70599. 24,
  70600. 24,
  70601. 24,
  70602. 24,
  70603. 24,
  70604. 24,
  70605. 24,
  70606. 24,
  70607. 24,
  70608. 24,
  70609. 24,
  70610. 24,
  70611. 24,
  70612. 24,
  70613. 24,
  70614. 24,
  70615. 24,
  70616. 24,
  70617. 24,
  70618. 24,
  70619. 24,
  70620. 23,
  70621. 24,
  70622. 24,
  70623. 24,
  70624. 24,
  70625. 24,
  70626. 24,
  70627. 24,
  70628. 24,
  70629. 24,
  70630. 24,
  70631. 24,
  70632. 24,
  70633. 24,
  70634. 24,
  70635. 24,
  70636. 24,
  70637. 24,
  70638. 24,
  70639. 24,
  70640. 24,
  70641. 24,
  70642. 24,
  70643. 24,
  70644. 24,
  70645. 24,
  70646. 24,
  70647. 24,
  70648. 23,
  70649. 24,
  70650. 24,
  70651. 24,
  70652. 24,
  70653. 24,
  70654. 24,
  70655. 24,
  70656. 24,
  70657. 24,
  70658. 24,
  70659. 24,
  70660. 24,
  70661. 24,
  70662. 24,
  70663. 24,
  70664. 24,
  70665. 24,
  70666. 24,
  70667. 24,
  70668. 24,
  70669. 24,
  70670. 24,
  70671. 24,
  70672. 24,
  70673. 24,
  70674. 24,
  70675. 24,
  70676. 23,
  70677. 24,
  70678. 24,
  70679. 24,
  70680. 24,
  70681. 24,
  70682. 24,
  70683. 24,
  70684. 24,
  70685. 24,
  70686. 24,
  70687. 24,
  70688. 24,
  70689. 24,
  70690. 24,
  70691. 24,
  70692. 24,
  70693. 24,
  70694. 24,
  70695. 24,
  70696. 24,
  70697. 24,
  70698. 24,
  70699. 24,
  70700. 24,
  70701. 24,
  70702. 24,
  70703. 24,
  70704. 23,
  70705. 24,
  70706. 24,
  70707. 24,
  70708. 24,
  70709. 24,
  70710. 24,
  70711. 24,
  70712. 24,
  70713. 24,
  70714. 24,
  70715. 24,
  70716. 24,
  70717. 24,
  70718. 24,
  70719. 24,
  70720. 24,
  70721. 24,
  70722. 24,
  70723. 24,
  70724. 24,
  70725. 24,
  70726. 24,
  70727. 24,
  70728. 24,
  70729. 24,
  70730. 24,
  70731. 24,
  70732. 23,
  70733. 24,
  70734. 24,
  70735. 24,
  70736. 24,
  70737. 24,
  70738. 24,
  70739. 24,
  70740. 24,
  70741. 24,
  70742. 24,
  70743. 24,
  70744. 24,
  70745. 24,
  70746. 24,
  70747. 24,
  70748. 24,
  70749. 24,
  70750. 24,
  70751. 24,
  70752. 24,
  70753. 24,
  70754. 24,
  70755. 24,
  70756. 24,
  70757. 24,
  70758. 24,
  70759. 24,
  70760. 23,
  70761. 24,
  70762. 24,
  70763. 24,
  70764. 24,
  70765. 24,
  70766. 24,
  70767. 24,
  70768. 24,
  70769. 24,
  70770. 24,
  70771. 24,
  70772. 24,
  70773. 24,
  70774. 24,
  70775. 24,
  70776. 24,
  70777. 24,
  70778. 24,
  70779. 24,
  70780. 24,
  70781. 24,
  70782. 24,
  70783. 24,
  70784. 24,
  70785. 24,
  70786. 24,
  70787. 24,
  70788. 23,
  70789. 24,
  70790. 24,
  70791. 24,
  70792. 24,
  70793. 24,
  70794. 24,
  70795. 24,
  70796. 24,
  70797. 24,
  70798. 24,
  70799. 24,
  70800. 24,
  70801. 24,
  70802. 24,
  70803. 24,
  70804. 24,
  70805. 24,
  70806. 24,
  70807. 24,
  70808. 24,
  70809. 24,
  70810. 24,
  70811. 24,
  70812. 24,
  70813. 24,
  70814. 24,
  70815. 24,
  70816. 23,
  70817. 24,
  70818. 24,
  70819. 24,
  70820. 24,
  70821. 24,
  70822. 24,
  70823. 24,
  70824. 24,
  70825. 24,
  70826. 24,
  70827. 24,
  70828. 24,
  70829. 24,
  70830. 24,
  70831. 24,
  70832. 24,
  70833. 24,
  70834. 24,
  70835. 24,
  70836. 24,
  70837. 24,
  70838. 24,
  70839. 24,
  70840. 24,
  70841. 24,
  70842. 24,
  70843. 24,
  70844. 23,
  70845. 24,
  70846. 24,
  70847. 24,
  70848. 24,
  70849. 24,
  70850. 24,
  70851. 24,
  70852. 24,
  70853. 24,
  70854. 24,
  70855. 24,
  70856. 24,
  70857. 24,
  70858. 24,
  70859. 24,
  70860. 24,
  70861. 24,
  70862. 24,
  70863. 24,
  70864. 24,
  70865. 24,
  70866. 24,
  70867. 24,
  70868. 24,
  70869. 24,
  70870. 24,
  70871. 24,
  70872. 23,
  70873. 24,
  70874. 24,
  70875. 24,
  70876. 24,
  70877. 24,
  70878. 24,
  70879. 24,
  70880. 24,
  70881. 24,
  70882. 24,
  70883. 24,
  70884. 24,
  70885. 24,
  70886. 24,
  70887. 24,
  70888. 24,
  70889. 24,
  70890. 24,
  70891. 24,
  70892. 24,
  70893. 24,
  70894. 24,
  70895. 24,
  70896. 24,
  70897. 24,
  70898. 24,
  70899. 24,
  70900. 23,
  70901. 24,
  70902. 24,
  70903. 24,
  70904. 24,
  70905. 24,
  70906. 24,
  70907. 24,
  70908. 24,
  70909. 24,
  70910. 24,
  70911. 24,
  70912. 24,
  70913. 24,
  70914. 24,
  70915. 24,
  70916. 24,
  70917. 24,
  70918. 24,
  70919. 24,
  70920. 24,
  70921. 24,
  70922. 24,
  70923. 24,
  70924. 24,
  70925. 24,
  70926. 24,
  70927. 24,
  70928. 23,
  70929. 24,
  70930. 24,
  70931. 24,
  70932. 24,
  70933. 24,
  70934. 24,
  70935. 24,
  70936. 24,
  70937. 24,
  70938. 24,
  70939. 24,
  70940. 24,
  70941. 24,
  70942. 24,
  70943. 24,
  70944. 24,
  70945. 24,
  70946. 24,
  70947. 24,
  70948. 24,
  70949. 24,
  70950. 24,
  70951. 24,
  70952. 24,
  70953. 24,
  70954. 24,
  70955. 24,
  70956. 23,
  70957. 24,
  70958. 24,
  70959. 24,
  70960. 24,
  70961. 24,
  70962. 24,
  70963. 24,
  70964. 24,
  70965. 24,
  70966. 24,
  70967. 24,
  70968. 24,
  70969. 24,
  70970. 24,
  70971. 24,
  70972. 24,
  70973. 24,
  70974. 24,
  70975. 24,
  70976. 24,
  70977. 24,
  70978. 24,
  70979. 24,
  70980. 24,
  70981. 24,
  70982. 24,
  70983. 24,
  70984. 23,
  70985. 24,
  70986. 24,
  70987. 24,
  70988. 24,
  70989. 24,
  70990. 24,
  70991. 24,
  70992. 24,
  70993. 24,
  70994. 24,
  70995. 24,
  70996. 24,
  70997. 24,
  70998. 24,
  70999. 24,
  71000. 24,
  71001. 24,
  71002. 24,
  71003. 24,
  71004. 24,
  71005. 24,
  71006. 24,
  71007. 24,
  71008. 24,
  71009. 24,
  71010. 24,
  71011. 24,
  71012. 23,
  71013. 24,
  71014. 24,
  71015. 24,
  71016. 24,
  71017. 24,
  71018. 24,
  71019. 24,
  71020. 24,
  71021. 24,
  71022. 24,
  71023. 24,
  71024. 24,
  71025. 24,
  71026. 24,
  71027. 24,
  71028. 24,
  71029. 24,
  71030. 24,
  71031. 24,
  71032. 24,
  71033. 24,
  71034. 24,
  71035. 24,
  71036. 24,
  71037. 24,
  71038. 24,
  71039. 24,
  71040. 23,
  71041. 24,
  71042. 24,
  71043. 24,
  71044. 24,
  71045. 24,
  71046. 24,
  71047. 24,
  71048. 24,
  71049. 24,
  71050. 24,
  71051. 24,
  71052. 24,
  71053. 24,
  71054. 24,
  71055. 24,
  71056. 24,
  71057. 24,
  71058. 24,
  71059. 24,
  71060. 24,
  71061. 24,
  71062. 24,
  71063. 24,
  71064. 24,
  71065. 24,
  71066. 24,
  71067. 24,
  71068. 23,
  71069. 24,
  71070. 24,
  71071. 24,
  71072. 24,
  71073. 24,
  71074. 24,
  71075. 24,
  71076. 24,
  71077. 24,
  71078. 24,
  71079. 24,
  71080. 24,
  71081. 24,
  71082. 24,
  71083. 24,
  71084. 24,
  71085. 24,
  71086. 24,
  71087. 24,
  71088. 24,
  71089. 24,
  71090. 24,
  71091. 24,
  71092. 24,
  71093. 24,
  71094. 24,
  71095. 24,
  71096. 23,
  71097. 24,
  71098. 24,
  71099. 24,
  71100. 24,
  71101. 24,
  71102. 24,
  71103. 24,
  71104. 24,
  71105. 24,
  71106. 24,
  71107. 24,
  71108. 24,
  71109. 24,
  71110. 24,
  71111. 24,
  71112. 24,
  71113. 24,
  71114. 24,
  71115. 24,
  71116. 24,
  71117. 24,
  71118. 24,
  71119. 24,
  71120. 24,
  71121. 24,
  71122. 24,
  71123. 24,
  71124. 23,
  71125. 24,
  71126. 24,
  71127. 24,
  71128. 24,
  71129. 24,
  71130. 24,
  71131. 24,
  71132. 24,
  71133. 24,
  71134. 24,
  71135. 24,
  71136. 24,
  71137. 24,
  71138. 24,
  71139. 24,
  71140. 24,
  71141. 24,
  71142. 24,
  71143. 24,
  71144. 24,
  71145. 24,
  71146. 24,
  71147. 24,
  71148. 24,
  71149. 24,
  71150. 24,
  71151. 24,
  71152. 23,
  71153. 24,
  71154. 24,
  71155. 24,
  71156. 24,
  71157. 24,
  71158. 24,
  71159. 24,
  71160. 24,
  71161. 24,
  71162. 24,
  71163. 24,
  71164. 24,
  71165. 24,
  71166. 24,
  71167. 24,
  71168. 24,
  71169. 24,
  71170. 24,
  71171. 24,
  71172. 24,
  71173. 24,
  71174. 24,
  71175. 24,
  71176. 24,
  71177. 24,
  71178. 24,
  71179. 24,
  71180. 23,
  71181. 24,
  71182. 24,
  71183. 24,
  71184. 24,
  71185. 24,
  71186. 24,
  71187. 24,
  71188. 24,
  71189. 24,
  71190. 24,
  71191. 24,
  71192. 24,
  71193. 24,
  71194. 24,
  71195. 24,
  71196. 24,
  71197. 24,
  71198. 24,
  71199. 24,
  71200. 24,
  71201. 24,
  71202. 24,
  71203. 24,
  71204. 24,
  71205. 24,
  71206. 24,
  71207. 24,
  71208. 23,
  71209. 24,
  71210. 24,
  71211. 24,
  71212. 24,
  71213. 24,
  71214. 24,
  71215. 24,
  71216. 24,
  71217. 24,
  71218. 24,
  71219. 24,
  71220. 24,
  71221. 24,
  71222. 24,
  71223. 24,
  71224. 24,
  71225. 24,
  71226. 24,
  71227. 24,
  71228. 24,
  71229. 24,
  71230. 24,
  71231. 24,
  71232. 24,
  71233. 24,
  71234. 24,
  71235. 24,
  71236. 23,
  71237. 24,
  71238. 24,
  71239. 24,
  71240. 24,
  71241. 24,
  71242. 24,
  71243. 24,
  71244. 24,
  71245. 24,
  71246. 24,
  71247. 24,
  71248. 24,
  71249. 24,
  71250. 24,
  71251. 24,
  71252. 24,
  71253. 24,
  71254. 24,
  71255. 24,
  71256. 24,
  71257. 24,
  71258. 24,
  71259. 24,
  71260. 24,
  71261. 24,
  71262. 24,
  71263. 24,
  71264. 23,
  71265. 24,
  71266. 24,
  71267. 24,
  71268. 24,
  71269. 24,
  71270. 24,
  71271. 24,
  71272. 24,
  71273. 24,
  71274. 24,
  71275. 24,
  71276. 24,
  71277. 24,
  71278. 24,
  71279. 24,
  71280. 24,
  71281. 24,
  71282. 24,
  71283. 24,
  71284. 24,
  71285. 24,
  71286. 24,
  71287. 24,
  71288. 24,
  71289. 24,
  71290. 24,
  71291. 24,
  71292. 23,
  71293. 24,
  71294. 24,
  71295. 24,
  71296. 24,
  71297. 24,
  71298. 24,
  71299. 24,
  71300. 24,
  71301. 24,
  71302. 24,
  71303. 24,
  71304. 24,
  71305. 24,
  71306. 24,
  71307. 24,
  71308. 24,
  71309. 24,
  71310. 24,
  71311. 24,
  71312. 24,
  71313. 24,
  71314. 24,
  71315. 24,
  71316. 24,
  71317. 24,
  71318. 24,
  71319. 24,
  71320. 23,
  71321. 24,
  71322. 24,
  71323. 24,
  71324. 24,
  71325. 24,
  71326. 24,
  71327. 24,
  71328. 24,
  71329. 24,
  71330. 24,
  71331. 24,
  71332. 24,
  71333. 24,
  71334. 24,
  71335. 24,
  71336. 24,
  71337. 24,
  71338. 24,
  71339. 24,
  71340. 24,
  71341. 24,
  71342. 24,
  71343. 24,
  71344. 24,
  71345. 24,
  71346. 24,
  71347. 24,
  71348. 23,
  71349. 24,
  71350. 24,
  71351. 24,
  71352. 24,
  71353. 24,
  71354. 24,
  71355. 24,
  71356. 24,
  71357. 24,
  71358. 24,
  71359. 24,
  71360. 24,
  71361. 24,
  71362. 24,
  71363. 24,
  71364. 24,
  71365. 24,
  71366. 24,
  71367. 24,
  71368. 24,
  71369. 24,
  71370. 24,
  71371. 24,
  71372. 24,
  71373. 24,
  71374. 24,
  71375. 24,
  71376. 23,
  71377. 24,
  71378. 24,
  71379. 24,
  71380. 24,
  71381. 24,
  71382. 24,
  71383. 24,
  71384. 24,
  71385. 24,
  71386. 24,
  71387. 24,
  71388. 24,
  71389. 24,
  71390. 24,
  71391. 24,
  71392. 24,
  71393. 24,
  71394. 24,
  71395. 24,
  71396. 24,
  71397. 24,
  71398. 24,
  71399. 24,
  71400. 24,
  71401. 24,
  71402. 24,
  71403. 24,
  71404. 23,
  71405. 24,
  71406. 24,
  71407. 24,
  71408. 24,
  71409. 24,
  71410. 24,
  71411. 24,
  71412. 24,
  71413. 24,
  71414. 24,
  71415. 24,
  71416. 24,
  71417. 24,
  71418. 24,
  71419. 24,
  71420. 24,
  71421. 24,
  71422. 24,
  71423. 24,
  71424. 24,
  71425. 24,
  71426. 24,
  71427. 24,
  71428. 24,
  71429. 24,
  71430. 24,
  71431. 24,
  71432. 23,
  71433. 24,
  71434. 24,
  71435. 24,
  71436. 24,
  71437. 24,
  71438. 24,
  71439. 24,
  71440. 24,
  71441. 24,
  71442. 24,
  71443. 24,
  71444. 24,
  71445. 24,
  71446. 24,
  71447. 24,
  71448. 24,
  71449. 24,
  71450. 24,
  71451. 24,
  71452. 24,
  71453. 24,
  71454. 24,
  71455. 24,
  71456. 24,
  71457. 24,
  71458. 24,
  71459. 24,
  71460. 23,
  71461. 24,
  71462. 24,
  71463. 24,
  71464. 24,
  71465. 24,
  71466. 24,
  71467. 24,
  71468. 24,
  71469. 24,
  71470. 24,
  71471. 24,
  71472. 24,
  71473. 24,
  71474. 24,
  71475. 24,
  71476. 24,
  71477. 24,
  71478. 24,
  71479. 24,
  71480. 24,
  71481. 24,
  71482. 24,
  71483. 24,
  71484. 24,
  71485. 24,
  71486. 24,
  71487. 24,
  71488. 23,
  71489. 24,
  71490. 24,
  71491. 24,
  71492. 24,
  71493. 24,
  71494. 24,
  71495. 24,
  71496. 24,
  71497. 24,
  71498. 24,
  71499. 24,
  71500. 24,
  71501. 24,
  71502. 24,
  71503. 24,
  71504. 24,
  71505. 24,
  71506. 24,
  71507. 24,
  71508. 24,
  71509. 24,
  71510. 24,
  71511. 24,
  71512. 24,
  71513. 24,
  71514. 24,
  71515. 24,
  71516. 23,
  71517. 24,
  71518. 24,
  71519. 24,
  71520. 24,
  71521. 24,
  71522. 24,
  71523. 24,
  71524. 24,
  71525. 24,
  71526. 24,
  71527. 24,
  71528. 24,
  71529. 24,
  71530. 24,
  71531. 24,
  71532. 24,
  71533. 24,
  71534. 24,
  71535. 24,
  71536. 24,
  71537. 24,
  71538. 24,
  71539. 24,
  71540. 24,
  71541. 24,
  71542. 24,
  71543. 24,
  71544. 23,
  71545. 24,
  71546. 24,
  71547. 24,
  71548. 24,
  71549. 24,
  71550. 24,
  71551. 24,
  71552. 24,
  71553. 24,
  71554. 24,
  71555. 24,
  71556. 24,
  71557. 24,
  71558. 24,
  71559. 24,
  71560. 24,
  71561. 24,
  71562. 24,
  71563. 24,
  71564. 24,
  71565. 24,
  71566. 24,
  71567. 24,
  71568. 24,
  71569. 24,
  71570. 24,
  71571. 24,
  71572. 23,
  71573. 24,
  71574. 24,
  71575. 24,
  71576. 24,
  71577. 24,
  71578. 24,
  71579. 24,
  71580. 24,
  71581. 24,
  71582. 24,
  71583. 24,
  71584. 24,
  71585. 24,
  71586. 24,
  71587. 24,
  71588. 24,
  71589. 24,
  71590. 24,
  71591. 24,
  71592. 24,
  71593. 24,
  71594. 24,
  71595. 24,
  71596. 24,
  71597. 24,
  71598. 24,
  71599. 24,
  71600. 23,
  71601. 24,
  71602. 24,
  71603. 24,
  71604. 24,
  71605. 24,
  71606. 24,
  71607. 24,
  71608. 24,
  71609. 24,
  71610. 24,
  71611. 24,
  71612. 24,
  71613. 24,
  71614. 24,
  71615. 24,
  71616. 24,
  71617. 24,
  71618. 24,
  71619. 24,
  71620. 24,
  71621. 24,
  71622. 24,
  71623. 24,
  71624. 24,
  71625. 24,
  71626. 24,
  71627. 24,
  71628. 23,
  71629. 24,
  71630. 24,
  71631. 24,
  71632. 24,
  71633. 24,
  71634. 24,
  71635. 24,
  71636. 24,
  71637. 24,
  71638. 24,
  71639. 24,
  71640. 24,
  71641. 24,
  71642. 24,
  71643. 24,
  71644. 24,
  71645. 24,
  71646. 24,
  71647. 24,
  71648. 24,
  71649. 24,
  71650. 24,
  71651. 24,
  71652. 24,
  71653. 24,
  71654. 24,
  71655. 24,
  71656. 23,
  71657. 24,
  71658. 24,
  71659. 24,
  71660. 24,
  71661. 24,
  71662. 24,
  71663. 24,
  71664. 24,
  71665. 24,
  71666. 24,
  71667. 24,
  71668. 24,
  71669. 24,
  71670. 24,
  71671. 24,
  71672. 24,
  71673. 24,
  71674. 24,
  71675. 24,
  71676. 24,
  71677. 24,
  71678. 24,
  71679. 24,
  71680. 24,
  71681. 24,
  71682. 24,
  71683. 24,
  71684. 23,
  71685. 24,
  71686. 24,
  71687. 24,
  71688. 24,
  71689. 24,
  71690. 24,
  71691. 24,
  71692. 24,
  71693. 24,
  71694. 24,
  71695. 24,
  71696. 24,
  71697. 24,
  71698. 24,
  71699. 24,
  71700. 24,
  71701. 24,
  71702. 24,
  71703. 24,
  71704. 24,
  71705. 24,
  71706. 24,
  71707. 24,
  71708. 24,
  71709. 24,
  71710. 24,
  71711. 24,
  71712. 23,
  71713. 24,
  71714. 24,
  71715. 24,
  71716. 24,
  71717. 24,
  71718. 24,
  71719. 24,
  71720. 24,
  71721. 24,
  71722. 24,
  71723. 24,
  71724. 24,
  71725. 24,
  71726. 24,
  71727. 24,
  71728. 24,
  71729. 24,
  71730. 24,
  71731. 24,
  71732. 24,
  71733. 24,
  71734. 24,
  71735. 24,
  71736. 24,
  71737. 24,
  71738. 24,
  71739. 24,
  71740. 23,
  71741. 24,
  71742. 24,
  71743. 24,
  71744. 24,
  71745. 24,
  71746. 24,
  71747. 24,
  71748. 24,
  71749. 24,
  71750. 24,
  71751. 24,
  71752. 24,
  71753. 24,
  71754. 24,
  71755. 24,
  71756. 24,
  71757. 24,
  71758. 24,
  71759. 24,
  71760. 24,
  71761. 24,
  71762. 24,
  71763. 24,
  71764. 24,
  71765. 24,
  71766. 24,
  71767. 24,
  71768. 23,
  71769. 24,
  71770. 24,
  71771. 24,
  71772. 24,
  71773. 24,
  71774. 24,
  71775. 24,
  71776. 24,
  71777. 24,
  71778. 24,
  71779. 24,
  71780. 24,
  71781. 24,
  71782. 24,
  71783. 24,
  71784. 24,
  71785. 24,
  71786. 24,
  71787. 24,
  71788. 24,
  71789. 24,
  71790. 24,
  71791. 24,
  71792. 24,
  71793. 24,
  71794. 24,
  71795. 24,
  71796. 23,
  71797. 24,
  71798. 24,
  71799. 24,
  71800. 24,
  71801. 24,
  71802. 24,
  71803. 24,
  71804. 24,
  71805. 24,
  71806. 24,
  71807. 24,
  71808. 24,
  71809. 24,
  71810. 24,
  71811. 24,
  71812. 24,
  71813. 24,
  71814. 24,
  71815. 24,
  71816. 24,
  71817. 24,
  71818. 24,
  71819. 24,
  71820. 24,
  71821. 24,
  71822. 24,
  71823. 24,
  71824. 23,
  71825. 24,
  71826. 24,
  71827. 24,
  71828. 24,
  71829. 24,
  71830. 24,
  71831. 24,
  71832. 24,
  71833. 24,
  71834. 24,
  71835. 24,
  71836. 24,
  71837. 24,
  71838. 24,
  71839. 24,
  71840. 24,
  71841. 24,
  71842. 24,
  71843. 24,
  71844. 24,
  71845. 24,
  71846. 24,
  71847. 24,
  71848. 24,
  71849. 24,
  71850. 24,
  71851. 24,
  71852. 23,
  71853. 24,
  71854. 24,
  71855. 24,
  71856. 24,
  71857. 24,
  71858. 24,
  71859. 24,
  71860. 24,
  71861. 24,
  71862. 24,
  71863. 24,
  71864. 24,
  71865. 24,
  71866. 24,
  71867. 24,
  71868. 24,
  71869. 24,
  71870. 24,
  71871. 24,
  71872. 24,
  71873. 24,
  71874. 24,
  71875. 24,
  71876. 24,
  71877. 24,
  71878. 24,
  71879. 24,
  71880. 23,
  71881. 24,
  71882. 24,
  71883. 24,
  71884. 24,
  71885. 24,
  71886. 24,
  71887. 24,
  71888. 24,
  71889. 24,
  71890. 24,
  71891. 24,
  71892. 24,
  71893. 24,
  71894. 24,
  71895. 24,
  71896. 24,
  71897. 24,
  71898. 24,
  71899. 24,
  71900. 24,
  71901. 24,
  71902. 24,
  71903. 24,
  71904. 24,
  71905. 24,
  71906. 24,
  71907. 24,
  71908. 23,
  71909. 24,
  71910. 24,
  71911. 24,
  71912. 24,
  71913. 24,
  71914. 24,
  71915. 24,
  71916. 24,
  71917. 24,
  71918. 24,
  71919. 24,
  71920. 24,
  71921. 24,
  71922. 24,
  71923. 24,
  71924. 24,
  71925. 24,
  71926. 24,
  71927. 24,
  71928. 24,
  71929. 24,
  71930. 24,
  71931. 24,
  71932. 24,
  71933. 24,
  71934. 24,
  71935. 24,
  71936. 23,
  71937. 24,
  71938. 24,
  71939. 24,
  71940. 24,
  71941. 24,
  71942. 24,
  71943. 24,
  71944. 24,
  71945. 24,
  71946. 24,
  71947. 24,
  71948. 24,
  71949. 24,
  71950. 24,
  71951. 24,
  71952. 24,
  71953. 24,
  71954. 24,
  71955. 24,
  71956. 24,
  71957. 24,
  71958. 24,
  71959. 24,
  71960. 24,
  71961. 24,
  71962. 24,
  71963. 24,
  71964. 23,
  71965. 24,
  71966. 24,
  71967. 24,
  71968. 24,
  71969. 24,
  71970. 24,
  71971. 24,
  71972. 24,
  71973. 24,
  71974. 24,
  71975. 24,
  71976. 24,
  71977. 24,
  71978. 24,
  71979. 24,
  71980. 24,
  71981. 24,
  71982. 24,
  71983. 24,
  71984. 24,
  71985. 24,
  71986. 24,
  71987. 24,
  71988. 24,
  71989. 24,
  71990. 24,
  71991. 24,
  71992. 23,
  71993. 24,
  71994. 24,
  71995. 24,
  71996. 24,
  71997. 24,
  71998. 24,
  71999. 24,
  72000. 24,
  72001. 24,
  72002. 24,
  72003. 24,
  72004. 24,
  72005. 24,
  72006. 24,
  72007. 24,
  72008. 24,
  72009. 24,
  72010. 24,
  72011. 24,
  72012. 24,
  72013. 24,
  72014. 24,
  72015. 24,
  72016. 24,
  72017. 24,
  72018. 24,
  72019. 24,
  72020. 23,
  72021. 24,
  72022. 24,
  72023. 24,
  72024. 24,
  72025. 24,
  72026. 24,
  72027. 24,
  72028. 24,
  72029. 24,
  72030. 24,
  72031. 24,
  72032. 24,
  72033. 24,
  72034. 24,
  72035. 24,
  72036. 24,
  72037. 24,
  72038. 24,
  72039. 24,
  72040. 24,
  72041. 24,
  72042. 24,
  72043. 24,
  72044. 24,
  72045. 24,
  72046. 24,
  72047. 24,
  72048. 23,
  72049. 24,
  72050. 24,
  72051. 24,
  72052. 24,
  72053. 24,
  72054. 24,
  72055. 24,
  72056. 24,
  72057. 24,
  72058. 24,
  72059. 24,
  72060. 24,
  72061. 24,
  72062. 24,
  72063. 24,
  72064. 24,
  72065. 24,
  72066. 24,
  72067. 24,
  72068. 24,
  72069. 24,
  72070. 24,
  72071. 24,
  72072. 24,
  72073. 24,
  72074. 24,
  72075. 24,
  72076. 23,
  72077. 24,
  72078. 24,
  72079. 24,
  72080. 24,
  72081. 24,
  72082. 24,
  72083. 24,
  72084. 24,
  72085. 24,
  72086. 24,
  72087. 24,
  72088. 24,
  72089. 24,
  72090. 24,
  72091. 24,
  72092. 24,
  72093. 24,
  72094. 24,
  72095. 24,
  72096. 24,
  72097. 24,
  72098. 24,
  72099. 24,
  72100. 24,
  72101. 24,
  72102. 24,
  72103. 24,
  72104. 23,
  72105. 24,
  72106. 24,
  72107. 24,
  72108. 24,
  72109. 24,
  72110. 24,
  72111. 24,
  72112. 24,
  72113. 24,
  72114. 24,
  72115. 24,
  72116. 24,
  72117. 24,
  72118. 24,
  72119. 24,
  72120. 24,
  72121. 24,
  72122. 24,
  72123. 24,
  72124. 24,
  72125. 24,
  72126. 24,
  72127. 24,
  72128. 24,
  72129. 24,
  72130. 24,
  72131. 24,
  72132. 23,
  72133. 24,
  72134. 24,
  72135. 24,
  72136. 24,
  72137. 24,
  72138. 24,
  72139. 24,
  72140. 24,
  72141. 24,
  72142. 24,
  72143. 24,
  72144. 24,
  72145. 24,
  72146. 24,
  72147. 24,
  72148. 24,
  72149. 24,
  72150. 24,
  72151. 24,
  72152. 24,
  72153. 24,
  72154. 24,
  72155. 24,
  72156. 24,
  72157. 24,
  72158. 24,
  72159. 24,
  72160. 23,
  72161. 24,
  72162. 24,
  72163. 24,
  72164. 24,
  72165. 24,
  72166. 24,
  72167. 24,
  72168. 24,
  72169. 24,
  72170. 24,
  72171. 24,
  72172. 24,
  72173. 24,
  72174. 24,
  72175. 24,
  72176. 24,
  72177. 24,
  72178. 24,
  72179. 24,
  72180. 24,
  72181. 24,
  72182. 24,
  72183. 24,
  72184. 24,
  72185. 24,
  72186. 24,
  72187. 24,
  72188. 23,
  72189. 24,
  72190. 24,
  72191. 24,
  72192. 24,
  72193. 24,
  72194. 24,
  72195. 24,
  72196. 24,
  72197. 24,
  72198. 24,
  72199. 24,
  72200. 24,
  72201. 24,
  72202. 24,
  72203. 24,
  72204. 24,
  72205. 24,
  72206. 24,
  72207. 24,
  72208. 24,
  72209. 24,
  72210. 24,
  72211. 24,
  72212. 24,
  72213. 24,
  72214. 24,
  72215. 24,
  72216. 23,
  72217. 24,
  72218. 24,
  72219. 24,
  72220. 24,
  72221. 24,
  72222. 24,
  72223. 24,
  72224. 24,
  72225. 24,
  72226. 24,
  72227. 24,
  72228. 24,
  72229. 24,
  72230. 24,
  72231. 24,
  72232. 24,
  72233. 24,
  72234. 24,
  72235. 24,
  72236. 24,
  72237. 24,
  72238. 24,
  72239. 24,
  72240. 24,
  72241. 24,
  72242. 24,
  72243. 24,
  72244. 23,
  72245. 24,
  72246. 24,
  72247. 24,
  72248. 24,
  72249. 24,
  72250. 24,
  72251. 24,
  72252. 24,
  72253. 24,
  72254. 24,
  72255. 24,
  72256. 24,
  72257. 24,
  72258. 24,
  72259. 24,
  72260. 24,
  72261. 24,
  72262. 24,
  72263. 24,
  72264. 24,
  72265. 24,
  72266. 24,
  72267. 24,
  72268. 24,
  72269. 24,
  72270. 24,
  72271. 24,
  72272. 23,
  72273. 24,
  72274. 24,
  72275. 24,
  72276. 24,
  72277. 24,
  72278. 24,
  72279. 24,
  72280. 24,
  72281. 24,
  72282. 24,
  72283. 24,
  72284. 24,
  72285. 24,
  72286. 24,
  72287. 24,
  72288. 24,
  72289. 24,
  72290. 24,
  72291. 24,
  72292. 24,
  72293. 24,
  72294. 24,
  72295. 24,
  72296. 24,
  72297. 24,
  72298. 24,
  72299. 24,
  72300. 23,
  72301. 24,
  72302. 24,
  72303. 24,
  72304. 24,
  72305. 24,
  72306. 24,
  72307. 24,
  72308. 24,
  72309. 24,
  72310. 24,
  72311. 24,
  72312. 24,
  72313. 24,
  72314. 24,
  72315. 24,
  72316. 24,
  72317. 24,
  72318. 24,
  72319. 24,
  72320. 24,
  72321. 24,
  72322. 24,
  72323. 24,
  72324. 24,
  72325. 24,
  72326. 24,
  72327. 24,
  72328. 23,
  72329. 24,
  72330. 24,
  72331. 24,
  72332. 24,
  72333. 24,
  72334. 24,
  72335. 24,
  72336. 24,
  72337. 24,
  72338. 24,
  72339. 24,
  72340. 24,
  72341. 24,
  72342. 24,
  72343. 24,
  72344. 24,
  72345. 24,
  72346. 24,
  72347. 24,
  72348. 24,
  72349. 24,
  72350. 24,
  72351. 24,
  72352. 24,
  72353. 24,
  72354. 24,
  72355. 24,
  72356. 23,
  72357. 24,
  72358. 24,
  72359. 24,
  72360. 24,
  72361. 24,
  72362. 24,
  72363. 24,
  72364. 24,
  72365. 24,
  72366. 24,
  72367. 24,
  72368. 24,
  72369. 24,
  72370. 24,
  72371. 24,
  72372. 24,
  72373. 24,
  72374. 24,
  72375. 24,
  72376. 24,
  72377. 24,
  72378. 24,
  72379. 24,
  72380. 24,
  72381. 24,
  72382. 24,
  72383. 24,
  72384. 23,
  72385. 24,
  72386. 24,
  72387. 24,
  72388. 24,
  72389. 24,
  72390. 24,
  72391. 24,
  72392. 24,
  72393. 24,
  72394. 24,
  72395. 24,
  72396. 24,
  72397. 24,
  72398. 24,
  72399. 24,
  72400. 24,
  72401. 24,
  72402. 24,
  72403. 24,
  72404. 24,
  72405. 24,
  72406. 24,
  72407. 24,
  72408. 24,
  72409. 24,
  72410. 24,
  72411. 24,
  72412. 23,
  72413. 24,
  72414. 24,
  72415. 24,
  72416. 24,
  72417. 24,
  72418. 24,
  72419. 24,
  72420. 24,
  72421. 24,
  72422. 24,
  72423. 24,
  72424. 24,
  72425. 24,
  72426. 24,
  72427. 24,
  72428. 24,
  72429. 24,
  72430. 24,
  72431. 24,
  72432. 24,
  72433. 24,
  72434. 24,
  72435. 24,
  72436. 24,
  72437. 24,
  72438. 24,
  72439. 24,
  72440. 23,
  72441. 24,
  72442. 24,
  72443. 24,
  72444. 24,
  72445. 24,
  72446. 24,
  72447. 24,
  72448. 24,
  72449. 24,
  72450. 24,
  72451. 24,
  72452. 24,
  72453. 24,
  72454. 24,
  72455. 24,
  72456. 24,
  72457. 24,
  72458. 24,
  72459. 24,
  72460. 24,
  72461. 24,
  72462. 24,
  72463. 24,
  72464. 24,
  72465. 24,
  72466. 24,
  72467. 24,
  72468. 23,
  72469. 24,
  72470. 24,
  72471. 24,
  72472. 24,
  72473. 24,
  72474. 24,
  72475. 24,
  72476. 24,
  72477. 24,
  72478. 24,
  72479. 24,
  72480. 24,
  72481. 24,
  72482. 24,
  72483. 24,
  72484. 24,
  72485. 24,
  72486. 24,
  72487. 24,
  72488. 24,
  72489. 24,
  72490. 24,
  72491. 24,
  72492. 24,
  72493. 24,
  72494. 24,
  72495. 24,
  72496. 23,
  72497. 24,
  72498. 24,
  72499. 24,
  72500. 24,
  72501. 24,
  72502. 24,
  72503. 24,
  72504. 24,
  72505. 24,
  72506. 24,
  72507. 24,
  72508. 24,
  72509. 24,
  72510. 24,
  72511. 24,
  72512. 24,
  72513. 24,
  72514. 24,
  72515. 24,
  72516. 24,
  72517. 24,
  72518. 24,
  72519. 24,
  72520. 24,
  72521. 24,
  72522. 24,
  72523. 24,
  72524. 23,
  72525. 24,
  72526. 24,
  72527. 24,
  72528. 24,
  72529. 24,
  72530. 24,
  72531. 24,
  72532. 24,
  72533. 24,
  72534. 24,
  72535. 24,
  72536. 24,
  72537. 24,
  72538. 24,
  72539. 24,
  72540. 24,
  72541. 24,
  72542. 24,
  72543. 24,
  72544. 24,
  72545. 24,
  72546. 24,
  72547. 24,
  72548. 24,
  72549. 24,
  72550. 24,
  72551. 24,
  72552. 23,
  72553. 24,
  72554. 24,
  72555. 24,
  72556. 24,
  72557. 24,
  72558. 24,
  72559. 24,
  72560. 24,
  72561. 24,
  72562. 24,
  72563. 24,
  72564. 24,
  72565. 24,
  72566. 24,
  72567. 24,
  72568. 24,
  72569. 24,
  72570. 24,
  72571. 24,
  72572. 24,
  72573. 24,
  72574. 24,
  72575. 24,
  72576. 24,
  72577. 24,
  72578. 24,
  72579. 24,
  72580. 23,
  72581. 24,
  72582. 24,
  72583. 24,
  72584. 24,
  72585. 24,
  72586. 24,
  72587. 24,
  72588. 24,
  72589. 24,
  72590. 24,
  72591. 24,
  72592. 24,
  72593. 24,
  72594. 24,
  72595. 24,
  72596. 24,
  72597. 24,
  72598. 24,
  72599. 24,
  72600. 24,
  72601. 24,
  72602. 24,
  72603. 24,
  72604. 24,
  72605. 24,
  72606. 24,
  72607. 24,
  72608. 23,
  72609. 24,
  72610. 24,
  72611. 24,
  72612. 24,
  72613. 24,
  72614. 24,
  72615. 24,
  72616. 24,
  72617. 24,
  72618. 24,
  72619. 24,
  72620. 24,
  72621. 24,
  72622. 24,
  72623. 24,
  72624. 24,
  72625. 24,
  72626. 24,
  72627. 24,
  72628. 24,
  72629. 24,
  72630. 24,
  72631. 24,
  72632. 24,
  72633. 24,
  72634. 24,
  72635. 24,
  72636. 23,
  72637. 24,
  72638. 24,
  72639. 24,
  72640. 24,
  72641. 24,
  72642. 24,
  72643. 24,
  72644. 24,
  72645. 24,
  72646. 24,
  72647. 24,
  72648. 24,
  72649. 24,
  72650. 24,
  72651. 24,
  72652. 24,
  72653. 24,
  72654. 24,
  72655. 24,
  72656. 24,
  72657. 24,
  72658. 24,
  72659. 24,
  72660. 24,
  72661. 24,
  72662. 24,
  72663. 24,
  72664. 23,
  72665. 24,
  72666. 24,
  72667. 24,
  72668. 24,
  72669. 24,
  72670. 24,
  72671. 24,
  72672. 24,
  72673. 24,
  72674. 24,
  72675. 24,
  72676. 24,
  72677. 24,
  72678. 24,
  72679. 24,
  72680. 24,
  72681. 24,
  72682. 24,
  72683. 24,
  72684. 24,
  72685. 24,
  72686. 24,
  72687. 24,
  72688. 24,
  72689. 24,
  72690. 24,
  72691. 24,
  72692. 23,
  72693. 24,
  72694. 24,
  72695. 24,
  72696. 24,
  72697. 24,
  72698. 24,
  72699. 24,
  72700. 24,
  72701. 24,
  72702. 24,
  72703. 24,
  72704. 24,
  72705. 24,
  72706. 24,
  72707. 24,
  72708. 24,
  72709. 24,
  72710. 24,
  72711. 24,
  72712. 24,
  72713. 24,
  72714. 24,
  72715. 24,
  72716. 24,
  72717. 24,
  72718. 24,
  72719. 24,
  72720. 23,
  72721. 24,
  72722. 24,
  72723. 24,
  72724. 24,
  72725. 24,
  72726. 24,
  72727. 24,
  72728. 24,
  72729. 24,
  72730. 24,
  72731. 24,
  72732. 24,
  72733. 24,
  72734. 24,
  72735. 24,
  72736. 24,
  72737. 24,
  72738. 24,
  72739. 24,
  72740. 24,
  72741. 24,
  72742. 24,
  72743. 24,
  72744. 24,
  72745. 24,
  72746. 24,
  72747. 24,
  72748. 23,
  72749. 24,
  72750. 24,
  72751. 24,
  72752. 24,
  72753. 24,
  72754. 24,
  72755. 24,
  72756. 24,
  72757. 24,
  72758. 24,
  72759. 24,
  72760. 24,
  72761. 24,
  72762. 24,
  72763. 24,
  72764. 24,
  72765. 24,
  72766. 24,
  72767. 24,
  72768. 24,
  72769. 24,
  72770. 24,
  72771. 24,
  72772. 24,
  72773. 24,
  72774. 24,
  72775. 24,
  72776. 23,
  72777. 24,
  72778. 24,
  72779. 24,
  72780. 24,
  72781. 24,
  72782. 24,
  72783. 24,
  72784. 24,
  72785. 24,
  72786. 24,
  72787. 24,
  72788. 24,
  72789. 24,
  72790. 24,
  72791. 24,
  72792. 24,
  72793. 24,
  72794. 24,
  72795. 24,
  72796. 24,
  72797. 24,
  72798. 24,
  72799. 24,
  72800. 24,
  72801. 24,
  72802. 24,
  72803. 24,
  72804. 23,
  72805. 24,
  72806. 24,
  72807. 24,
  72808. 24,
  72809. 24,
  72810. 24,
  72811. 24,
  72812. 24,
  72813. 24,
  72814. 24,
  72815. 24,
  72816. 24,
  72817. 24,
  72818. 24,
  72819. 24,
  72820. 24,
  72821. 24,
  72822. 24,
  72823. 24,
  72824. 24,
  72825. 24,
  72826. 24,
  72827. 24,
  72828. 24,
  72829. 24,
  72830. 24,
  72831. 24,
  72832. 23,
  72833. 24,
  72834. 24,
  72835. 24,
  72836. 24,
  72837. 24,
  72838. 24,
  72839. 24,
  72840. 24,
  72841. 24,
  72842. 24,
  72843. 24,
  72844. 24,
  72845. 24,
  72846. 24,
  72847. 24,
  72848. 24,
  72849. 24,
  72850. 24,
  72851. 24,
  72852. 24,
  72853. 24,
  72854. 24,
  72855. 24,
  72856. 24,
  72857. 24,
  72858. 24,
  72859. 24,
  72860. 23,
  72861. 24,
  72862. 24,
  72863. 24,
  72864. 24,
  72865. 24,
  72866. 24,
  72867. 24,
  72868. 24,
  72869. 24,
  72870. 24,
  72871. 24,
  72872. 24,
  72873. 24,
  72874. 24,
  72875. 24,
  72876. 24,
  72877. 24,
  72878. 24,
  72879. 24,
  72880. 24,
  72881. 24,
  72882. 24,
  72883. 24,
  72884. 24,
  72885. 24,
  72886. 24,
  72887. 24,
  72888. 23,
  72889. 24,
  72890. 24,
  72891. 24,
  72892. 24,
  72893. 24,
  72894. 24,
  72895. 24,
  72896. 24,
  72897. 24,
  72898. 24,
  72899. 24,
  72900. 24,
  72901. 24,
  72902. 24,
  72903. 24,
  72904. 24,
  72905. 24,
  72906. 24,
  72907. 24,
  72908. 24,
  72909. 24,
  72910. 24,
  72911. 24,
  72912. 24,
  72913. 24,
  72914. 24,
  72915. 24,
  72916. 23,
  72917. 24,
  72918. 24,
  72919. 24,
  72920. 24,
  72921. 24,
  72922. 24,
  72923. 24,
  72924. 24,
  72925. 24,
  72926. 24,
  72927. 24,
  72928. 24,
  72929. 24,
  72930. 24,
  72931. 24,
  72932. 24,
  72933. 24,
  72934. 24,
  72935. 24,
  72936. 24,
  72937. 24,
  72938. 24,
  72939. 24,
  72940. 24,
  72941. 24,
  72942. 24,
  72943. 24,
  72944. 23,
  72945. 24,
  72946. 24,
  72947. 24,
  72948. 24,
  72949. 24,
  72950. 24,
  72951. 24,
  72952. 24,
  72953. 24,
  72954. 24,
  72955. 24,
  72956. 24,
  72957. 24,
  72958. 24,
  72959. 24,
  72960. 24,
  72961. 24,
  72962. 24,
  72963. 24,
  72964. 24,
  72965. 24,
  72966. 24,
  72967. 24,
  72968. 24,
  72969. 24,
  72970. 24,
  72971. 24,
  72972. 23,
  72973. 24,
  72974. 24,
  72975. 24,
  72976. 24,
  72977. 24,
  72978. 24,
  72979. 24,
  72980. 24,
  72981. 24,
  72982. 24,
  72983. 24,
  72984. 24,
  72985. 24,
  72986. 24,
  72987. 24,
  72988. 24,
  72989. 24,
  72990. 24,
  72991. 24,
  72992. 24,
  72993. 24,
  72994. 24,
  72995. 24,
  72996. 24,
  72997. 24,
  72998. 24,
  72999. 24,
  73000. 23,
  73001. 24,
  73002. 24,
  73003. 24,
  73004. 24,
  73005. 24,
  73006. 24,
  73007. 24,
  73008. 24,
  73009. 24,
  73010. 24,
  73011. 24,
  73012. 24,
  73013. 24,
  73014. 24,
  73015. 24,
  73016. 24,
  73017. 24,
  73018. 24,
  73019. 24,
  73020. 24,
  73021. 24,
  73022. 24,
  73023. 24,
  73024. 24,
  73025. 24,
  73026. 24,
  73027. 24,
  73028. 23,
  73029. 24,
  73030. 24,
  73031. 24,
  73032. 24,
  73033. 24,
  73034. 24,
  73035. 24,
  73036. 24,
  73037. 24,
  73038. 24,
  73039. 24,
  73040. 24,
  73041. 24,
  73042. 24,
  73043. 24,
  73044. 24,
  73045. 24,
  73046. 24,
  73047. 24,
  73048. 24,
  73049. 24,
  73050. 24,
  73051. 24,
  73052. 24,
  73053. 24,
  73054. 24,
  73055. 24,
  73056. 23,
  73057. 24,
  73058. 24,
  73059. 24,
  73060. 24,
  73061. 24,
  73062. 24,
  73063. 24,
  73064. 24,
  73065. 24,
  73066. 24,
  73067. 24,
  73068. 24,
  73069. 24,
  73070. 24,
  73071. 24,
  73072. 24,
  73073. 24,
  73074. 24,
  73075. 24,
  73076. 24,
  73077. 24,
  73078. 24,
  73079. 24,
  73080. 24,
  73081. 24,
  73082. 24,
  73083. 24,
  73084. 23,
  73085. 24,
  73086. 24,
  73087. 24,
  73088. 24,
  73089. 24,
  73090. 24,
  73091. 24,
  73092. 24,
  73093. 24,
  73094. 24,
  73095. 24,
  73096. 24,
  73097. 24,
  73098. 24,
  73099. 24,
  73100. 24,
  73101. 24,
  73102. 24,
  73103. 24,
  73104. 24,
  73105. 24,
  73106. 24,
  73107. 24,
  73108. 24,
  73109. 24,
  73110. 24,
  73111. 24,
  73112. 23,
  73113. 24,
  73114. 24,
  73115. 24,
  73116. 24,
  73117. 24,
  73118. 24,
  73119. 24,
  73120. 24,
  73121. 24,
  73122. 24,
  73123. 24,
  73124. 24,
  73125. 24,
  73126. 24,
  73127. 24,
  73128. 24,
  73129. 24,
  73130. 24,
  73131. 24,
  73132. 24,
  73133. 24,
  73134. 24,
  73135. 24,
  73136. 24,
  73137. 24,
  73138. 24,
  73139. 24,
  73140. 23,
  73141. 24,
  73142. 24,
  73143. 24,
  73144. 24,
  73145. 24,
  73146. 24,
  73147. 24,
  73148. 24,
  73149. 24,
  73150. 24,
  73151. 24,
  73152. 24,
  73153. 24,
  73154. 24,
  73155. 24,
  73156. 24,
  73157. 24,
  73158. 24,
  73159. 24,
  73160. 24,
  73161. 24,
  73162. 24,
  73163. 24,
  73164. 24,
  73165. 24,
  73166. 24,
  73167. 24,
  73168. 23,
  73169. 24,
  73170. 24,
  73171. 24,
  73172. 24,
  73173. 24,
  73174. 24,
  73175. 24,
  73176. 24,
  73177. 24,
  73178. 24,
  73179. 24,
  73180. 24,
  73181. 24,
  73182. 24,
  73183. 24,
  73184. 24,
  73185. 24,
  73186. 24,
  73187. 24,
  73188. 24,
  73189. 24,
  73190. 24,
  73191. 24,
  73192. 24,
  73193. 24,
  73194. 24,
  73195. 24,
  73196. 23,
  73197. 24,
  73198. 24,
  73199. 24,
  73200. 24,
  73201. 24,
  73202. 24,
  73203. 24,
  73204. 24,
  73205. 24,
  73206. 24,
  73207. 24,
  73208. 24,
  73209. 24,
  73210. 24,
  73211. 24,
  73212. 24,
  73213. 24,
  73214. 24,
  73215. 24,
  73216. 24,
  73217. 24,
  73218. 24,
  73219. 24,
  73220. 24,
  73221. 24,
  73222. 24,
  73223. 24,
  73224. 23,
  73225. 24,
  73226. 24,
  73227. 24,
  73228. 24,
  73229. 24,
  73230. 24,
  73231. 24,
  73232. 24,
  73233. 24,
  73234. 24,
  73235. 24,
  73236. 24,
  73237. 24,
  73238. 24,
  73239. 24,
  73240. 24,
  73241. 24,
  73242. 24,
  73243. 24,
  73244. 24,
  73245. 24,
  73246. 24,
  73247. 24,
  73248. 24,
  73249. 24,
  73250. 24,
  73251. 24,
  73252. 23,
  73253. 24,
  73254. 24,
  73255. 24,
  73256. 24,
  73257. 24,
  73258. 24,
  73259. 24,
  73260. 24,
  73261. 24,
  73262. 24,
  73263. 24,
  73264. 24,
  73265. 24,
  73266. 24,
  73267. 24,
  73268. 24,
  73269. 24,
  73270. 24,
  73271. 24,
  73272. 24,
  73273. 24,
  73274. 24,
  73275. 24,
  73276. 24,
  73277. 24,
  73278. 24,
  73279. 24,
  73280. 23,
  73281. 24,
  73282. 24,
  73283. 24,
  73284. 24,
  73285. 24,
  73286. 24,
  73287. 24,
  73288. 24,
  73289. 24,
  73290. 24,
  73291. 24,
  73292. 24,
  73293. 24,
  73294. 24,
  73295. 24,
  73296. 24,
  73297. 24,
  73298. 24,
  73299. 24,
  73300. 24,
  73301. 24,
  73302. 24,
  73303. 24,
  73304. 24,
  73305. 24,
  73306. 24,
  73307. 24,
  73308. 23,
  73309. 24,
  73310. 24,
  73311. 24,
  73312. 24,
  73313. 24,
  73314. 24,
  73315. 24,
  73316. 24,
  73317. 24,
  73318. 24,
  73319. 24,
  73320. 24,
  73321. 24,
  73322. 24,
  73323. 24,
  73324. 24,
  73325. 24,
  73326. 24,
  73327. 24,
  73328. 24,
  73329. 24,
  73330. 24,
  73331. 24,
  73332. 24,
  73333. 24,
  73334. 24,
  73335. 24,
  73336. 23,
  73337. 24,
  73338. 24,
  73339. 24,
  73340. 24,
  73341. 24,
  73342. 24,
  73343. 24,
  73344. 24,
  73345. 24,
  73346. 24,
  73347. 24,
  73348. 24,
  73349. 24,
  73350. 24,
  73351. 24,
  73352. 24,
  73353. 24,
  73354. 24,
  73355. 24,
  73356. 24,
  73357. 24,
  73358. 24,
  73359. 24,
  73360. 24,
  73361. 24,
  73362. 24,
  73363. 24,
  73364. 23,
  73365. 24,
  73366. 24,
  73367. 24,
  73368. 24,
  73369. 24,
  73370. 24,
  73371. 24,
  73372. 24,
  73373. 24,
  73374. 24,
  73375. 24,
  73376. 24,
  73377. 24,
  73378. 24,
  73379. 24,
  73380. 24,
  73381. 24,
  73382. 24,
  73383. 24,
  73384. 24,
  73385. 24,
  73386. 24,
  73387. 24,
  73388. 24,
  73389. 24,
  73390. 24,
  73391. 24,
  73392. 23,
  73393. 24,
  73394. 24,
  73395. 24,
  73396. 24,
  73397. 24,
  73398. 24,
  73399. 24,
  73400. 24,
  73401. 24,
  73402. 24,
  73403. 24,
  73404. 24,
  73405. 24,
  73406. 24,
  73407. 24,
  73408. 24,
  73409. 24,
  73410. 24,
  73411. 24,
  73412. 24,
  73413. 24,
  73414. 24,
  73415. 24,
  73416. 24,
  73417. 24,
  73418. 24,
  73419. 24,
  73420. 23,
  73421. 24,
  73422. 24,
  73423. 24,
  73424. 24,
  73425. 24,
  73426. 24,
  73427. 24,
  73428. 24,
  73429. 24,
  73430. 24,
  73431. 24,
  73432. 24,
  73433. 24,
  73434. 24,
  73435. 24,
  73436. 24,
  73437. 24,
  73438. 24,
  73439. 24,
  73440. 24,
  73441. 24,
  73442. 24,
  73443. 24,
  73444. 24,
  73445. 24,
  73446. 24,
  73447. 24,
  73448. 23,
  73449. 24,
  73450. 24,
  73451. 24,
  73452. 24,
  73453. 24,
  73454. 24,
  73455. 24,
  73456. 24,
  73457. 24,
  73458. 24,
  73459. 24,
  73460. 24,
  73461. 24,
  73462. 24,
  73463. 24,
  73464. 24,
  73465. 24,
  73466. 24,
  73467. 24,
  73468. 24,
  73469. 24,
  73470. 24,
  73471. 24,
  73472. 24,
  73473. 24,
  73474. 24,
  73475. 24,
  73476. 23,
  73477. 24,
  73478. 24,
  73479. 24,
  73480. 24,
  73481. 24,
  73482. 24,
  73483. 24,
  73484. 24,
  73485. 24,
  73486. 24,
  73487. 24,
  73488. 24,
  73489. 24,
  73490. 24,
  73491. 24,
  73492. 24,
  73493. 24,
  73494. 24,
  73495. 24,
  73496. 24,
  73497. 24,
  73498. 24,
  73499. 24,
  73500. 24,
  73501. 24,
  73502. 24,
  73503. 24,
  73504. 23,
  73505. 24,
  73506. 24,
  73507. 24,
  73508. 24,
  73509. 24,
  73510. 24,
  73511. 24,
  73512. 24,
  73513. 24,
  73514. 24,
  73515. 24,
  73516. 24,
  73517. 24,
  73518. 24,
  73519. 24,
  73520. 24,
  73521. 24,
  73522. 24,
  73523. 24,
  73524. 24,
  73525. 24,
  73526. 24,
  73527. 24,
  73528. 24,
  73529. 24,
  73530. 24,
  73531. 24,
  73532. 23,
  73533. 24,
  73534. 24,
  73535. 24,
  73536. 24,
  73537. 24,
  73538. 24,
  73539. 24,
  73540. 24,
  73541. 24,
  73542. 24,
  73543. 24,
  73544. 24,
  73545. 24,
  73546. 24,
  73547. 24,
  73548. 24,
  73549. 24,
  73550. 24,
  73551. 24,
  73552. 24,
  73553. 24,
  73554. 24,
  73555. 24,
  73556. 24,
  73557. 24,
  73558. 24,
  73559. 24,
  73560. 23,
  73561. 24,
  73562. 24,
  73563. 24,
  73564. 24,
  73565. 24,
  73566. 24,
  73567. 24,
  73568. 24,
  73569. 24,
  73570. 24,
  73571. 24,
  73572. 24,
  73573. 24,
  73574. 24,
  73575. 24,
  73576. 24,
  73577. 24,
  73578. 24,
  73579. 24,
  73580. 24,
  73581. 24,
  73582. 24,
  73583. 24,
  73584. 24,
  73585. 24,
  73586. 24,
  73587. 24,
  73588. 23,
  73589. 24,
  73590. 24,
  73591. 24,
  73592. 24,
  73593. 24,
  73594. 24,
  73595. 24,
  73596. 24,
  73597. 24,
  73598. 24,
  73599. 24,
  73600. 24,
  73601. 24,
  73602. 24,
  73603. 24,
  73604. 24,
  73605. 24,
  73606. 24,
  73607. 24,
  73608. 24,
  73609. 24,
  73610. 24,
  73611. 24,
  73612. 24,
  73613. 24,
  73614. 24,
  73615. 24,
  73616. 23,
  73617. 24,
  73618. 24,
  73619. 24,
  73620. 24,
  73621. 24,
  73622. 24,
  73623. 24,
  73624. 24,
  73625. 24,
  73626. 24,
  73627. 24,
  73628. 24,
  73629. 24,
  73630. 24,
  73631. 24,
  73632. 24,
  73633. 24,
  73634. 24,
  73635. 24,
  73636. 24,
  73637. 24,
  73638. 24,
  73639. 24,
  73640. 24,
  73641. 24,
  73642. 24,
  73643. 24,
  73644. 23,
  73645. 24,
  73646. 24,
  73647. 24,
  73648. 24,
  73649. 24,
  73650. 24,
  73651. 24,
  73652. 24,
  73653. 24,
  73654. 24,
  73655. 24,
  73656. 24,
  73657. 24,
  73658. 24,
  73659. 24,
  73660. 24,
  73661. 24,
  73662. 24,
  73663. 24,
  73664. 24,
  73665. 24,
  73666. 24,
  73667. 24,
  73668. 24,
  73669. 24,
  73670. 24,
  73671. 24,
  73672. 23,
  73673. 24,
  73674. 24,
  73675. 24,
  73676. 24,
  73677. 24,
  73678. 24,
  73679. 24,
  73680. 24,
  73681. 24,
  73682. 24,
  73683. 24,
  73684. 24,
  73685. 24,
  73686. 24,
  73687. 24,
  73688. 24,
  73689. 24,
  73690. 24,
  73691. 24,
  73692. 24,
  73693. 24,
  73694. 24,
  73695. 24,
  73696. 24,
  73697. 24,
  73698. 24,
  73699. 24,
  73700. 23,
  73701. 24,
  73702. 24,
  73703. 24,
  73704. 24,
  73705. 24,
  73706. 24,
  73707. 24,
  73708. 24,
  73709. 24,
  73710. 24,
  73711. 24,
  73712. 24,
  73713. 24,
  73714. 24,
  73715. 24,
  73716. 24,
  73717. 24,
  73718. 24,
  73719. 24,
  73720. 24,
  73721. 24,
  73722. 24,
  73723. 24,
  73724. 24,
  73725. 24,
  73726. 24,
  73727. 24,
  73728. 23,
  73729. 24,
  73730. 24,
  73731. 24,
  73732. 24,
  73733. 24,
  73734. 24,
  73735. 24,
  73736. 24,
  73737. 24,
  73738. 24,
  73739. 24,
  73740. 24,
  73741. 24,
  73742. 24,
  73743. 24,
  73744. 24,
  73745. 24,
  73746. 24,
  73747. 24,
  73748. 24,
  73749. 24,
  73750. 24,
  73751. 24,
  73752. 24,
  73753. 24,
  73754. 24,
  73755. 24,
  73756. 23,
  73757. 24,
  73758. 24,
  73759. 24,
  73760. 24,
  73761. 24,
  73762. 24,
  73763. 24,
  73764. 24,
  73765. 24,
  73766. 24,
  73767. 24,
  73768. 24,
  73769. 24,
  73770. 24,
  73771. 24,
  73772. 24,
  73773. 24,
  73774. 24,
  73775. 24,
  73776. 24,
  73777. 24,
  73778. 24,
  73779. 24,
  73780. 24,
  73781. 24,
  73782. 24,
  73783. 24,
  73784. 23,
  73785. 24,
  73786. 24,
  73787. 24,
  73788. 24,
  73789. 24,
  73790. 24,
  73791. 24,
  73792. 24,
  73793. 24,
  73794. 24,
  73795. 24,
  73796. 24,
  73797. 24,
  73798. 24,
  73799. 24,
  73800. 24,
  73801. 24,
  73802. 24,
  73803. 24,
  73804. 24,
  73805. 24,
  73806. 24,
  73807. 24,
  73808. 24,
  73809. 24,
  73810. 24,
  73811. 24,
  73812. 23,
  73813. 24,
  73814. 24,
  73815. 24,
  73816. 24,
  73817. 24,
  73818. 24,
  73819. 24,
  73820. 24,
  73821. 24,
  73822. 24,
  73823. 24,
  73824. 24,
  73825. 24,
  73826. 24,
  73827. 24,
  73828. 24,
  73829. 24,
  73830. 24,
  73831. 24,
  73832. 24,
  73833. 24,
  73834. 24,
  73835. 24,
  73836. 24,
  73837. 24,
  73838. 24,
  73839. 24,
  73840. 23,
  73841. 24,
  73842. 24,
  73843. 24,
  73844. 24,
  73845. 24,
  73846. 24,
  73847. 24,
  73848. 24,
  73849. 24,
  73850. 24,
  73851. 24,
  73852. 24,
  73853. 24,
  73854. 24,
  73855. 24,
  73856. 24,
  73857. 24,
  73858. 24,
  73859. 24,
  73860. 24,
  73861. 24,
  73862. 24,
  73863. 24,
  73864. 24,
  73865. 24,
  73866. 24,
  73867. 24,
  73868. 23,
  73869. 24,
  73870. 24,
  73871. 24,
  73872. 24,
  73873. 24,
  73874. 24,
  73875. 24,
  73876. 24,
  73877. 24,
  73878. 24,
  73879. 24,
  73880. 24,
  73881. 24,
  73882. 24,
  73883. 24,
  73884. 24,
  73885. 24,
  73886. 24,
  73887. 24,
  73888. 24,
  73889. 24,
  73890. 24,
  73891. 24,
  73892. 24,
  73893. 24,
  73894. 24,
  73895. 24,
  73896. 23,
  73897. 24,
  73898. 24,
  73899. 24,
  73900. 24,
  73901. 24,
  73902. 24,
  73903. 24,
  73904. 24,
  73905. 24,
  73906. 24,
  73907. 24,
  73908. 24,
  73909. 24,
  73910. 24,
  73911. 24,
  73912. 24,
  73913. 24,
  73914. 24,
  73915. 24,
  73916. 24,
  73917. 24,
  73918. 24,
  73919. 24,
  73920. 24,
  73921. 24,
  73922. 24,
  73923. 24,
  73924. 23,
  73925. 24,
  73926. 24,
  73927. 24,
  73928. 24,
  73929. 24,
  73930. 24,
  73931. 24,
  73932. 24,
  73933. 24,
  73934. 24,
  73935. 24,
  73936. 24,
  73937. 24,
  73938. 24,
  73939. 24,
  73940. 24,
  73941. 24,
  73942. 24,
  73943. 24,
  73944. 24,
  73945. 24,
  73946. 24,
  73947. 24,
  73948. 24,
  73949. 24,
  73950. 24,
  73951. 24,
  73952. 23,
  73953. 24,
  73954. 24,
  73955. 24,
  73956. 24,
  73957. 24,
  73958. 24,
  73959. 24,
  73960. 24,
  73961. 24,
  73962. 24,
  73963. 24,
  73964. 24,
  73965. 24,
  73966. 24,
  73967. 24,
  73968. 24,
  73969. 24,
  73970. 24,
  73971. 24,
  73972. 24,
  73973. 24,
  73974. 24,
  73975. 24,
  73976. 24,
  73977. 24,
  73978. 24,
  73979. 24,
  73980. 23,
  73981. 24,
  73982. 24,
  73983. 24,
  73984. 24,
  73985. 24,
  73986. 24,
  73987. 24,
  73988. 24,
  73989. 24,
  73990. 24,
  73991. 24,
  73992. 24,
  73993. 24,
  73994. 24,
  73995. 24,
  73996. 24,
  73997. 24,
  73998. 24,
  73999. 24,
  74000. 24,
  74001. 24,
  74002. 24,
  74003. 24,
  74004. 24,
  74005. 24,
  74006. 24,
  74007. 24,
  74008. 23,
  74009. 24,
  74010. 24,
  74011. 24,
  74012. 24,
  74013. 24,
  74014. 24,
  74015. 24,
  74016. 24,
  74017. 24,
  74018. 24,
  74019. 24,
  74020. 24,
  74021. 24,
  74022. 24,
  74023. 24,
  74024. 24,
  74025. 24,
  74026. 24,
  74027. 24,
  74028. 24,
  74029. 24,
  74030. 24,
  74031. 24,
  74032. 24,
  74033. 24,
  74034. 24,
  74035. 24,
  74036. 23,
  74037. 24,
  74038. 24,
  74039. 24,
  74040. 24,
  74041. 24,
  74042. 24,
  74043. 24,
  74044. 24,
  74045. 24,
  74046. 24,
  74047. 24,
  74048. 24,
  74049. 24,
  74050. 24,
  74051. 24,
  74052. 24,
  74053. 24,
  74054. 24,
  74055. 24,
  74056. 24,
  74057. 24,
  74058. 24,
  74059. 24,
  74060. 24,
  74061. 24,
  74062. 24,
  74063. 24,
  74064. 23,
  74065. 24,
  74066. 24,
  74067. 24,
  74068. 24,
  74069. 24,
  74070. 24,
  74071. 24,
  74072. 24,
  74073. 24,
  74074. 24,
  74075. 24,
  74076. 24,
  74077. 24,
  74078. 24,
  74079. 24,
  74080. 24,
  74081. 24,
  74082. 24,
  74083. 24,
  74084. 24,
  74085. 24,
  74086. 24,
  74087. 24,
  74088. 24,
  74089. 24,
  74090. 24,
  74091. 24,
  74092. 23,
  74093. 24,
  74094. 24,
  74095. 24,
  74096. 24,
  74097. 24,
  74098. 24,
  74099. 24,
  74100. 24,
  74101. 24,
  74102. 24,
  74103. 24,
  74104. 24,
  74105. 24,
  74106. 24,
  74107. 24,
  74108. 24,
  74109. 24,
  74110. 24,
  74111. 24,
  74112. 24,
  74113. 24,
  74114. 24,
  74115. 24,
  74116. 24,
  74117. 24,
  74118. 24,
  74119. 24,
  74120. 23,
  74121. 24,
  74122. 24,
  74123. 24,
  74124. 24,
  74125. 24,
  74126. 24,
  74127. 24,
  74128. 24,
  74129. 24,
  74130. 24,
  74131. 24,
  74132. 24,
  74133. 24,
  74134. 24,
  74135. 24,
  74136. 24,
  74137. 24,
  74138. 24,
  74139. 24,
  74140. 24,
  74141. 24,
  74142. 24,
  74143. 24,
  74144. 24,
  74145. 24,
  74146. 24,
  74147. 24,
  74148. 23,
  74149. 24,
  74150. 24,
  74151. 24,
  74152. 24,
  74153. 24,
  74154. 24,
  74155. 24,
  74156. 24,
  74157. 24,
  74158. 24,
  74159. 24,
  74160. 24,
  74161. 24,
  74162. 24,
  74163. 24,
  74164. 24,
  74165. 24,
  74166. 24,
  74167. 24,
  74168. 24,
  74169. 24,
  74170. 24,
  74171. 24,
  74172. 24,
  74173. 24,
  74174. 24,
  74175. 24,
  74176. 23,
  74177. 24,
  74178. 24,
  74179. 24,
  74180. 24,
  74181. 24,
  74182. 24,
  74183. 24,
  74184. 24,
  74185. 24,
  74186. 24,
  74187. 24,
  74188. 24,
  74189. 24,
  74190. 24,
  74191. 24,
  74192. 24,
  74193. 24,
  74194. 24,
  74195. 24,
  74196. 24,
  74197. 24,
  74198. 24,
  74199. 24,
  74200. 24,
  74201. 24,
  74202. 24,
  74203. 24,
  74204. 23,
  74205. 24,
  74206. 24,
  74207. 24,
  74208. 24,
  74209. 24,
  74210. 24,
  74211. 24,
  74212. 24,
  74213. 24,
  74214. 24,
  74215. 24,
  74216. 24,
  74217. 24,
  74218. 24,
  74219. 24,
  74220. 24,
  74221. 24,
  74222. 24,
  74223. 24,
  74224. 24,
  74225. 24,
  74226. 24,
  74227. 24,
  74228. 24,
  74229. 24,
  74230. 24,
  74231. 24,
  74232. 23,
  74233. 24,
  74234. 24,
  74235. 24,
  74236. 24,
  74237. 24,
  74238. 24,
  74239. 24,
  74240. 24,
  74241. 24,
  74242. 24,
  74243. 24,
  74244. 24,
  74245. 24,
  74246. 24,
  74247. 24,
  74248. 24,
  74249. 24,
  74250. 24,
  74251. 24,
  74252. 24,
  74253. 24,
  74254. 24,
  74255. 24,
  74256. 24,
  74257. 24,
  74258. 24,
  74259. 24,
  74260. 23,
  74261. 24,
  74262. 24,
  74263. 24,
  74264. 24,
  74265. 24,
  74266. 24,
  74267. 24,
  74268. 24,
  74269. 24,
  74270. 24,
  74271. 24,
  74272. 24,
  74273. 24,
  74274. 24,
  74275. 24,
  74276. 24,
  74277. 24,
  74278. 24,
  74279. 24,
  74280. 24,
  74281. 24,
  74282. 24,
  74283. 24,
  74284. 24,
  74285. 24,
  74286. 24,
  74287. 24,
  74288. 23,
  74289. 24,
  74290. 24,
  74291. 24,
  74292. 24,
  74293. 24,
  74294. 24,
  74295. 24,
  74296. 24,
  74297. 24,
  74298. 24,
  74299. 24,
  74300. 24,
  74301. 24,
  74302. 24,
  74303. 24,
  74304. 24,
  74305. 24,
  74306. 24,
  74307. 24,
  74308. 24,
  74309. 24,
  74310. 24,
  74311. 24,
  74312. 24,
  74313. 24,
  74314. 24,
  74315. 24,
  74316. 23,
  74317. 24,
  74318. 24,
  74319. 24,
  74320. 24,
  74321. 24,
  74322. 24,
  74323. 24,
  74324. 24,
  74325. 24,
  74326. 24,
  74327. 24,
  74328. 24,
  74329. 24,
  74330. 24,
  74331. 24,
  74332. 24,
  74333. 24,
  74334. 24,
  74335. 24,
  74336. 24,
  74337. 24,
  74338. 24,
  74339. 24,
  74340. 24,
  74341. 24,
  74342. 24,
  74343. 24,
  74344. 23,
  74345. 24,
  74346. 24,
  74347. 24,
  74348. 24,
  74349. 24,
  74350. 24,
  74351. 24,
  74352. 24,
  74353. 24,
  74354. 24,
  74355. 24,
  74356. 24,
  74357. 24,
  74358. 24,
  74359. 24,
  74360. 24,
  74361. 24,
  74362. 24,
  74363. 24,
  74364. 24,
  74365. 24,
  74366. 24,
  74367. 24,
  74368. 24,
  74369. 24,
  74370. 24,
  74371. 24,
  74372. 23,
  74373. 24,
  74374. 24,
  74375. 24,
  74376. 24,
  74377. 24,
  74378. 24,
  74379. 24,
  74380. 24,
  74381. 24,
  74382. 24,
  74383. 24,
  74384. 24,
  74385. 24,
  74386. 24,
  74387. 24,
  74388. 24,
  74389. 24,
  74390. 24,
  74391. 24,
  74392. 24,
  74393. 24,
  74394. 24,
  74395. 24,
  74396. 24,
  74397. 24,
  74398. 24,
  74399. 24,
  74400. 23,
  74401. 24,
  74402. 24,
  74403. 24,
  74404. 24,
  74405. 24,
  74406. 24,
  74407. 24,
  74408. 24,
  74409. 24,
  74410. 24,
  74411. 24,
  74412. 24,
  74413. 24,
  74414. 24,
  74415. 24,
  74416. 24,
  74417. 24,
  74418. 24,
  74419. 24,
  74420. 24,
  74421. 24,
  74422. 24,
  74423. 24,
  74424. 24,
  74425. 24,
  74426. 24,
  74427. 24,
  74428. 23,
  74429. 24,
  74430. 24,
  74431. 24,
  74432. 24,
  74433. 24,
  74434. 24,
  74435. 24,
  74436. 24,
  74437. 24,
  74438. 24,
  74439. 24,
  74440. 24,
  74441. 24,
  74442. 24,
  74443. 24,
  74444. 24,
  74445. 24,
  74446. 24,
  74447. 24,
  74448. 24,
  74449. 24,
  74450. 24,
  74451. 24,
  74452. 24,
  74453. 24,
  74454. 24,
  74455. 24,
  74456. 23,
  74457. 24,
  74458. 24,
  74459. 24,
  74460. 24,
  74461. 24,
  74462. 24,
  74463. 24,
  74464. 24,
  74465. 24,
  74466. 24,
  74467. 24,
  74468. 24,
  74469. 24,
  74470. 24,
  74471. 24,
  74472. 24,
  74473. 24,
  74474. 24,
  74475. 24,
  74476. 24,
  74477. 24,
  74478. 24,
  74479. 24,
  74480. 24,
  74481. 24,
  74482. 24,
  74483. 24,
  74484. 23,
  74485. 24,
  74486. 24,
  74487. 24,
  74488. 24,
  74489. 24,
  74490. 24,
  74491. 24,
  74492. 24,
  74493. 24,
  74494. 24,
  74495. 24,
  74496. 24,
  74497. 24,
  74498. 24,
  74499. 24,
  74500. 24,
  74501. 24,
  74502. 24,
  74503. 24,
  74504. 24,
  74505. 24,
  74506. 24,
  74507. 24,
  74508. 24,
  74509. 24,
  74510. 24,
  74511. 24,
  74512. 23,
  74513. 24,
  74514. 24,
  74515. 24,
  74516. 24,
  74517. 24,
  74518. 24,
  74519. 24,
  74520. 24,
  74521. 24,
  74522. 24,
  74523. 24,
  74524. 24,
  74525. 24,
  74526. 24,
  74527. 24,
  74528. 24,
  74529. 24,
  74530. 24,
  74531. 24,
  74532. 24,
  74533. 24,
  74534. 24,
  74535. 24,
  74536. 24,
  74537. 24,
  74538. 24,
  74539. 24,
  74540. 23,
  74541. 24,
  74542. 24,
  74543. 24,
  74544. 24,
  74545. 24,
  74546. 24,
  74547. 24,
  74548. 24,
  74549. 24,
  74550. 24,
  74551. 24,
  74552. 24,
  74553. 24,
  74554. 24,
  74555. 24,
  74556. 24,
  74557. 24,
  74558. 24,
  74559. 24,
  74560. 24,
  74561. 24,
  74562. 24,
  74563. 24,
  74564. 24,
  74565. 24,
  74566. 24,
  74567. 24,
  74568. 23,
  74569. 24,
  74570. 24,
  74571. 24,
  74572. 24,
  74573. 24,
  74574. 24,
  74575. 24,
  74576. 24,
  74577. 24,
  74578. 24,
  74579. 24,
  74580. 24,
  74581. 24,
  74582. 24,
  74583. 24,
  74584. 24,
  74585. 24,
  74586. 24,
  74587. 24,
  74588. 24,
  74589. 24,
  74590. 24,
  74591. 24,
  74592. 24,
  74593. 24,
  74594. 24,
  74595. 24,
  74596. 23,
  74597. 24,
  74598. 24,
  74599. 24,
  74600. 24,
  74601. 24,
  74602. 24,
  74603. 24,
  74604. 24,
  74605. 24,
  74606. 24,
  74607. 24,
  74608. 24,
  74609. 24,
  74610. 24,
  74611. 24,
  74612. 24,
  74613. 24,
  74614. 24,
  74615. 24,
  74616. 24,
  74617. 24,
  74618. 24,
  74619. 24,
  74620. 24,
  74621. 24,
  74622. 24,
  74623. 24,
  74624. 23,
  74625. 24,
  74626. 24,
  74627. 24,
  74628. 24,
  74629. 24,
  74630. 24,
  74631. 24,
  74632. 24,
  74633. 24,
  74634. 24,
  74635. 24,
  74636. 24,
  74637. 24,
  74638. 24,
  74639. 24,
  74640. 24,
  74641. 24,
  74642. 24,
  74643. 24,
  74644. 24,
  74645. 24,
  74646. 24,
  74647. 24,
  74648. 24,
  74649. 24,
  74650. 24,
  74651. 24,
  74652. 23,
  74653. 24,
  74654. 24,
  74655. 24,
  74656. 24,
  74657. 24,
  74658. 24,
  74659. 24,
  74660. 24,
  74661. 24,
  74662. 24,
  74663. 24,
  74664. 24,
  74665. 24,
  74666. 24,
  74667. 24,
  74668. 24,
  74669. 24,
  74670. 24,
  74671. 24,
  74672. 24,
  74673. 24,
  74674. 24,
  74675. 24,
  74676. 24,
  74677. 24,
  74678. 24,
  74679. 24,
  74680. 23,
  74681. 24,
  74682. 24,
  74683. 24,
  74684. 24,
  74685. 24,
  74686. 24,
  74687. 24,
  74688. 24,
  74689. 24,
  74690. 24,
  74691. 24,
  74692. 24,
  74693. 24,
  74694. 24,
  74695. 24,
  74696. 24,
  74697. 24,
  74698. 24,
  74699. 24,
  74700. 24,
  74701. 24,
  74702. 24,
  74703. 24,
  74704. 24,
  74705. 24,
  74706. 24,
  74707. 24,
  74708. 23,
  74709. 24,
  74710. 24,
  74711. 24,
  74712. 24,
  74713. 24,
  74714. 24,
  74715. 24,
  74716. 24,
  74717. 24,
  74718. 24,
  74719. 24,
  74720. 24,
  74721. 24,
  74722. 24,
  74723. 24,
  74724. 24,
  74725. 24,
  74726. 24,
  74727. 24,
  74728. 24,
  74729. 24,
  74730. 24,
  74731. 24,
  74732. 24,
  74733. 24,
  74734. 24,
  74735. 24,
  74736. 23,
  74737. 24,
  74738. 24,
  74739. 24,
  74740. 24,
  74741. 24,
  74742. 24,
  74743. 24,
  74744. 24,
  74745. 24,
  74746. 24,
  74747. 24,
  74748. 24,
  74749. 24,
  74750. 24,
  74751. 24,
  74752. 24,
  74753. 24,
  74754. 24,
  74755. 24,
  74756. 24,
  74757. 24,
  74758. 24,
  74759. 24,
  74760. 24,
  74761. 24,
  74762. 24,
  74763. 24,
  74764. 23,
  74765. 24,
  74766. 24,
  74767. 24,
  74768. 24,
  74769. 24,
  74770. 24,
  74771. 24,
  74772. 24,
  74773. 24,
  74774. 24,
  74775. 24,
  74776. 24,
  74777. 24,
  74778. 24,
  74779. 24,
  74780. 24,
  74781. 24,
  74782. 24,
  74783. 24,
  74784. 24,
  74785. 24,
  74786. 24,
  74787. 24,
  74788. 24,
  74789. 24,
  74790. 24,
  74791. 24,
  74792. 23,
  74793. 24,
  74794. 24,
  74795. 24,
  74796. 24,
  74797. 24,
  74798. 24,
  74799. 24,
  74800. 24,
  74801. 24,
  74802. 24,
  74803. 24,
  74804. 24,
  74805. 24,
  74806. 24,
  74807. 24,
  74808. 24,
  74809. 24,
  74810. 24,
  74811. 24,
  74812. 24,
  74813. 24,
  74814. 24,
  74815. 24,
  74816. 24,
  74817. 24,
  74818. 24,
  74819. 24,
  74820. 23,
  74821. 24,
  74822. 24,
  74823. 24,
  74824. 24,
  74825. 24,
  74826. 24,
  74827. 24,
  74828. 24,
  74829. 24,
  74830. 24,
  74831. 24,
  74832. 24,
  74833. 24,
  74834. 24,
  74835. 24,
  74836. 24,
  74837. 24,
  74838. 24,
  74839. 24,
  74840. 24,
  74841. 24,
  74842. 24,
  74843. 24,
  74844. 24,
  74845. 24,
  74846. 24,
  74847. 24,
  74848. 23,
  74849. 24,
  74850. 24,
  74851. 24,
  74852. 24,
  74853. 24,
  74854. 24,
  74855. 24,
  74856. 24,
  74857. 24,
  74858. 24,
  74859. 24,
  74860. 24,
  74861. 24,
  74862. 24,
  74863. 24,
  74864. 24,
  74865. 24,
  74866. 24,
  74867. 24,
  74868. 24,
  74869. 24,
  74870. 24,
  74871. 24,
  74872. 24,
  74873. 24,
  74874. 24,
  74875. 24,
  74876. 39,
  74877. 39,
  74878. 39,
  74879. 39,
  74880. 39,
  74881. 39,
  74882. 39,
  74883. 39,
  74884. 39,
  74885. 39,
  74886. 39,
  74887. 39,
  74888. 26,
  74889. 26,
  74890. 26,
  74891. 26,
  74892. 26,
  74893. 26,
  74894. 26,
  74895. 26,
  74896. 26,
  74897. 26,
  74898. 26,
  74899. 26,
  74900. 26,
  74901. 26,
  74902. 26,
  74903. 26,
  74904. 26,
  74905. 26,
  74906. 26,
  74907. 26,
  74908. 26,
  74909. 26,
  74910. 26,
  74911. 39,
  74912. 39,
  74913. 39,
  74914. 39,
  74915. 27,
  74916. 27,
  74917. 27,
  74918. 27,
  74919. 27,
  74920. 27,
  74921. 27,
  74922. 27,
  74923. 27,
  74924. 27,
  74925. 27,
  74926. 27,
  74927. 27,
  74928. 27,
  74929. 27,
  74930. 27,
  74931. 27,
  74932. 27,
  74933. 27,
  74934. 27,
  74935. 27,
  74936. 27,
  74937. 27,
  74938. 27,
  74939. 27,
  74940. 27,
  74941. 27,
  74942. 27,
  74943. 27,
  74944. 27,
  74945. 27,
  74946. 27,
  74947. 27,
  74948. 27,
  74949. 27,
  74950. 27,
  74951. 27,
  74952. 27,
  74953. 27,
  74954. 27,
  74955. 27,
  74956. 27,
  74957. 27,
  74958. 27,
  74959. 27,
  74960. 27,
  74961. 27,
  74962. 27,
  74963. 27,
  74964. 39,
  74965. 39,
  74966. 39,
  74967. 39,
  74968. 37,
  74969. 37,
  74970. 37,
  74971. 37,
  74972. 37,
  74973. 37,
  74974. 37,
  74975. 37,
  74976. 37,
  74977. 37,
  74978. 37,
  74979. 37,
  74980. 37,
  74981. 37,
  74982. 37,
  74983. 37,
  74984. 37,
  74985. 37,
  74986. 37,
  74987. 37,
  74988. 37,
  74989. 37,
  74990. 37,
  74991. 37,
  74992. 37,
  74993. 37,
  74994. 37,
  74995. 37,
  74996. 37,
  74997. 37,
  74998. 37,
  74999. 37,
  75000. 14,
  75001. 14,
  75002. 14,
  75003. 14,
  75004. 14,
  75005. 14,
  75006. 14,
  75007. 14,
  75008. 14,
  75009. 14,
  75010. 14,
  75011. 14,
  75012. 14,
  75013. 14,
  75014. 14,
  75015. 14,
  75016. 14,
  75017. 14,
  75018. 14,
  75019. 14,
  75020. 14,
  75021. 14,
  75022. 14,
  75023. 14,
  75024. 14,
  75025. 14,
  75026. 14,
  75027. 14,
  75028. 14,
  75029. 14,
  75030. 14,
  75031. 14,
  75032. 12,
  75033. 12,
  75034. 12,
  75035. 12,
  75036. 12,
  75037. 12,
  75038. 12,
  75039. 12,
  75040. 12,
  75041. 12,
  75042. 12,
  75043. 12,
  75044. 12,
  75045. 12,
  75046. 12,
  75047. 12,
  75048. 12,
  75049. 12,
  75050. 12,
  75051. 12,
  75052. 12,
  75053. 12,
  75054. 12,
  75055. 12,
  75056. 39,
  75057. 39,
  75058. 39,
  75059. 39,
  75060. 39,
  75061. 13,
  75062. 21,
  75063. 13,
  75064. 13,
  75065. 13,
  75066. 13,
  75067. 13,
  75068. 13,
  75069. 13,
  75070. 13,
  75071. 13,
  75072. 13,
  75073. 12,
  75074. 13,
  75075. 13,
  75076. 13,
  75077. 13,
  75078. 13,
  75079. 13,
  75080. 13,
  75081. 13,
  75082. 13,
  75083. 13,
  75084. 13,
  75085. 13,
  75086. 13,
  75087. 13,
  75088. 13,
  75089. 13,
  75090. 13,
  75091. 13,
  75092. 13,
  75093. 13,
  75094. 13,
  75095. 13,
  75096. 13,
  75097. 13,
  75098. 13,
  75099. 13,
  75100. 13,
  75101. 13,
  75102. 13,
  75103. 13,
  75104. 13,
  75105. 13,
  75106. 13,
  75107. 13,
  75108. 13,
  75109. 13,
  75110. 13,
  75111. 13,
  75112. 12,
  75113. 12,
  75114. 12,
  75115. 12,
  75116. 12,
  75117. 12,
  75118. 12,
  75119. 12,
  75120. 12,
  75121. 12,
  75122. 12,
  75123. 12,
  75124. 12,
  75125. 12,
  75126. 12,
  75127. 12,
  75128. 12,
  75129. 12,
  75130. 12,
  75131. 12,
  75132. 12,
  75133. 12,
  75134. 12,
  75135. 12,
  75136. 12,
  75137. 12,
  75138. 12,
  75139. 12,
  75140. 12,
  75141. 12,
  75142. 12,
  75143. 12,
  75144. 12,
  75145. 12,
  75146. 12,
  75147. 12,
  75148. 12,
  75149. 12,
  75150. 12,
  75151. 12,
  75152. 12,
  75153. 12,
  75154. 12,
  75155. 12,
  75156. 12,
  75157. 12,
  75158. 12,
  75159. 12,
  75160. 12,
  75161. 12,
  75162. 12,
  75163. 12,
  75164. 12,
  75165. 12,
  75166. 12,
  75167. 12,
  75168. 12,
  75169. 12,
  75170. 12,
  75171. 12,
  75172. 12,
  75173. 12,
  75174. 12,
  75175. 12,
  75176. 12,
  75177. 12,
  75178. 12,
  75179. 12,
  75180. 12,
  75181. 12,
  75182. 12,
  75183. 12,
  75184. 12,
  75185. 12,
  75186. 12,
  75187. 12,
  75188. 12,
  75189. 12,
  75190. 0,
  75191. 1,
  75192. 39,
  75193. 39,
  75194. 39,
  75195. 39,
  75196. 39,
  75197. 39,
  75198. 39,
  75199. 39,
  75200. 39,
  75201. 39,
  75202. 39,
  75203. 39,
  75204. 39,
  75205. 39,
  75206. 39,
  75207. 39,
  75208. 12,
  75209. 12,
  75210. 12,
  75211. 12,
  75212. 12,
  75213. 12,
  75214. 12,
  75215. 12,
  75216. 12,
  75217. 12,
  75218. 12,
  75219. 12,
  75220. 12,
  75221. 12,
  75222. 12,
  75223. 12,
  75224. 12,
  75225. 12,
  75226. 12,
  75227. 12,
  75228. 12,
  75229. 12,
  75230. 12,
  75231. 12,
  75232. 12,
  75233. 12,
  75234. 12,
  75235. 12,
  75236. 12,
  75237. 12,
  75238. 12,
  75239. 12,
  75240. 12,
  75241. 12,
  75242. 12,
  75243. 12,
  75244. 12,
  75245. 12,
  75246. 12,
  75247. 12,
  75248. 12,
  75249. 12,
  75250. 12,
  75251. 12,
  75252. 12,
  75253. 12,
  75254. 12,
  75255. 12,
  75256. 12,
  75257. 12,
  75258. 12,
  75259. 12,
  75260. 12,
  75261. 12,
  75262. 12,
  75263. 12,
  75264. 12,
  75265. 12,
  75266. 12,
  75267. 12,
  75268. 12,
  75269. 12,
  75270. 12,
  75271. 12,
  75272. 12,
  75273. 12,
  75274. 12,
  75275. 12,
  75276. 12,
  75277. 12,
  75278. 12,
  75279. 12,
  75280. 12,
  75281. 12,
  75282. 12,
  75283. 12,
  75284. 10,
  75285. 12,
  75286. 39,
  75287. 39,
  75288. 21,
  75289. 21,
  75290. 21,
  75291. 21,
  75292. 21,
  75293. 21,
  75294. 21,
  75295. 21,
  75296. 21,
  75297. 21,
  75298. 21,
  75299. 21,
  75300. 21,
  75301. 21,
  75302. 21,
  75303. 21,
  75304. 8,
  75305. 1,
  75306. 1,
  75307. 8,
  75308. 8,
  75309. 6,
  75310. 6,
  75311. 0,
  75312. 1,
  75313. 15,
  75314. 39,
  75315. 39,
  75316. 39,
  75317. 39,
  75318. 39,
  75319. 39,
  75320. 21,
  75321. 21,
  75322. 21,
  75323. 21,
  75324. 21,
  75325. 21,
  75326. 21,
  75327. 39,
  75328. 39,
  75329. 39,
  75330. 39,
  75331. 39,
  75332. 39,
  75333. 39,
  75334. 39,
  75335. 39,
  75336. 14,
  75337. 14,
  75338. 14,
  75339. 14,
  75340. 14,
  75341. 0,
  75342. 1,
  75343. 0,
  75344. 1,
  75345. 0,
  75346. 1,
  75347. 0,
  75348. 1,
  75349. 0,
  75350. 1,
  75351. 0,
  75352. 1,
  75353. 0,
  75354. 1,
  75355. 0,
  75356. 1,
  75357. 14,
  75358. 14,
  75359. 0,
  75360. 1,
  75361. 14,
  75362. 14,
  75363. 14,
  75364. 14,
  75365. 14,
  75366. 14,
  75367. 14,
  75368. 1,
  75369. 14,
  75370. 1,
  75371. 39,
  75372. 5,
  75373. 5,
  75374. 6,
  75375. 6,
  75376. 14,
  75377. 0,
  75378. 1,
  75379. 0,
  75380. 1,
  75381. 0,
  75382. 1,
  75383. 14,
  75384. 14,
  75385. 14,
  75386. 14,
  75387. 14,
  75388. 14,
  75389. 14,
  75390. 14,
  75391. 14,
  75392. 14,
  75393. 9,
  75394. 10,
  75395. 14,
  75396. 39,
  75397. 39,
  75398. 39,
  75399. 39,
  75400. 12,
  75401. 12,
  75402. 12,
  75403. 12,
  75404. 12,
  75405. 12,
  75406. 12,
  75407. 12,
  75408. 12,
  75409. 12,
  75410. 12,
  75411. 12,
  75412. 12,
  75413. 12,
  75414. 12,
  75415. 12,
  75416. 12,
  75417. 12,
  75418. 12,
  75419. 12,
  75420. 12,
  75421. 12,
  75422. 12,
  75423. 12,
  75424. 12,
  75425. 12,
  75426. 12,
  75427. 12,
  75428. 12,
  75429. 12,
  75430. 12,
  75431. 12,
  75432. 12,
  75433. 12,
  75434. 12,
  75435. 12,
  75436. 12,
  75437. 12,
  75438. 12,
  75439. 12,
  75440. 12,
  75441. 12,
  75442. 12,
  75443. 12,
  75444. 12,
  75445. 12,
  75446. 12,
  75447. 12,
  75448. 12,
  75449. 12,
  75450. 12,
  75451. 12,
  75452. 12,
  75453. 12,
  75454. 12,
  75455. 12,
  75456. 12,
  75457. 12,
  75458. 12,
  75459. 12,
  75460. 12,
  75461. 12,
  75462. 12,
  75463. 12,
  75464. 12,
  75465. 12,
  75466. 12,
  75467. 12,
  75468. 12,
  75469. 12,
  75470. 12,
  75471. 12,
  75472. 12,
  75473. 12,
  75474. 12,
  75475. 12,
  75476. 12,
  75477. 39,
  75478. 39,
  75479. 22,
  75480. 39,
  75481. 6,
  75482. 14,
  75483. 14,
  75484. 9,
  75485. 10,
  75486. 14,
  75487. 14,
  75488. 0,
  75489. 1,
  75490. 14,
  75491. 14,
  75492. 1,
  75493. 14,
  75494. 1,
  75495. 14,
  75496. 14,
  75497. 14,
  75498. 14,
  75499. 14,
  75500. 14,
  75501. 14,
  75502. 14,
  75503. 14,
  75504. 14,
  75505. 14,
  75506. 5,
  75507. 5,
  75508. 14,
  75509. 14,
  75510. 14,
  75511. 6,
  75512. 14,
  75513. 14,
  75514. 14,
  75515. 14,
  75516. 14,
  75517. 14,
  75518. 14,
  75519. 14,
  75520. 14,
  75521. 14,
  75522. 14,
  75523. 14,
  75524. 14,
  75525. 14,
  75526. 14,
  75527. 14,
  75528. 14,
  75529. 14,
  75530. 14,
  75531. 14,
  75532. 14,
  75533. 14,
  75534. 14,
  75535. 14,
  75536. 14,
  75537. 14,
  75538. 14,
  75539. 0,
  75540. 14,
  75541. 1,
  75542. 14,
  75543. 14,
  75544. 14,
  75545. 14,
  75546. 14,
  75547. 14,
  75548. 14,
  75549. 14,
  75550. 14,
  75551. 14,
  75552. 14,
  75553. 14,
  75554. 14,
  75555. 14,
  75556. 14,
  75557. 14,
  75558. 14,
  75559. 14,
  75560. 14,
  75561. 14,
  75562. 14,
  75563. 14,
  75564. 14,
  75565. 14,
  75566. 14,
  75567. 14,
  75568. 14,
  75569. 14,
  75570. 14,
  75571. 0,
  75572. 14,
  75573. 1,
  75574. 14,
  75575. 0,
  75576. 1,
  75577. 1,
  75578. 0,
  75579. 1,
  75580. 1,
  75581. 5,
  75582. 12,
  75583. 32,
  75584. 32,
  75585. 32,
  75586. 32,
  75587. 32,
  75588. 32,
  75589. 32,
  75590. 32,
  75591. 32,
  75592. 32,
  75593. 12,
  75594. 12,
  75595. 12,
  75596. 12,
  75597. 12,
  75598. 12,
  75599. 12,
  75600. 12,
  75601. 12,
  75602. 12,
  75603. 12,
  75604. 12,
  75605. 12,
  75606. 12,
  75607. 12,
  75608. 12,
  75609. 12,
  75610. 12,
  75611. 12,
  75612. 12,
  75613. 12,
  75614. 12,
  75615. 12,
  75616. 12,
  75617. 12,
  75618. 12,
  75619. 12,
  75620. 12,
  75621. 12,
  75622. 12,
  75623. 12,
  75624. 12,
  75625. 12,
  75626. 12,
  75627. 12,
  75628. 12,
  75629. 12,
  75630. 12,
  75631. 12,
  75632. 12,
  75633. 12,
  75634. 12,
  75635. 12,
  75636. 12,
  75637. 12,
  75638. 5,
  75639. 5,
  75640. 12,
  75641. 12,
  75642. 12,
  75643. 12,
  75644. 12,
  75645. 12,
  75646. 12,
  75647. 12,
  75648. 12,
  75649. 12,
  75650. 12,
  75651. 12,
  75652. 12,
  75653. 12,
  75654. 12,
  75655. 12,
  75656. 12,
  75657. 12,
  75658. 12,
  75659. 12,
  75660. 12,
  75661. 12,
  75662. 12,
  75663. 12,
  75664. 12,
  75665. 12,
  75666. 12,
  75667. 12,
  75668. 12,
  75669. 12,
  75670. 12,
  75671. 12,
  75672. 12,
  75673. 12,
  75674. 12,
  75675. 12,
  75676. 12,
  75677. 12,
  75678. 12,
  75679. 12,
  75680. 12,
  75681. 12,
  75682. 12,
  75683. 12,
  75684. 12,
  75685. 12,
  75686. 12,
  75687. 12,
  75688. 12,
  75689. 12,
  75690. 12,
  75691. 12,
  75692. 12,
  75693. 12,
  75694. 12,
  75695. 12,
  75696. 12,
  75697. 12,
  75698. 12,
  75699. 12,
  75700. 12,
  75701. 39,
  75702. 39,
  75703. 39,
  75704. 10,
  75705. 9,
  75706. 14,
  75707. 14,
  75708. 14,
  75709. 9,
  75710. 9,
  75711. 39,
  75712. 12,
  75713. 12,
  75714. 12,
  75715. 12,
  75716. 12,
  75717. 12,
  75718. 12,
  75719. 39,
  75720. 39,
  75721. 39,
  75722. 39,
  75723. 39,
  75724. 39,
  75725. 39,
  75726. 39,
  75727. 39,
  75728. 39,
  75729. 21,
  75730. 21,
  75731. 21,
  75732. 31,
  75733. 29,
  75734. 39,
  75735. 39,
  75736. 12,
  75737. 12,
  75738. 12,
  75739. 12,
  75740. 12,
  75741. 12,
  75742. 12,
  75743. 12,
  75744. 12,
  75745. 12,
  75746. 12,
  75747. 12,
  75748. 12,
  75749. 12,
  75750. 12,
  75751. 12,
  75752. 12,
  75753. 12,
  75754. 12,
  75755. 12,
  75756. 12,
  75757. 12,
  75758. 12,
  75759. 12,
  75760. 12,
  75761. 12,
  75762. 12,
  75763. 12,
  75764. 12,
  75765. 12,
  75766. 12,
  75767. 12,
  75768. 12,
  75769. 12,
  75770. 12,
  75771. 12,
  75772. 12,
  75773. 12,
  75774. 12,
  75775. 12,
  75776. 12,
  75777. 12,
  75778. 12,
  75779. 12,
  75780. 12,
  75781. 12,
  75782. 12,
  75783. 12,
  75784. 12,
  75785. 12,
  75786. 12,
  75787. 12,
  75788. 12,
  75789. 12,
  75790. 12,
  75791. 12,
  75792. 12,
  75793. 12,
  75794. 12,
  75795. 39,
  75796. 39,
  75797. 39,
  75798. 39,
  75799. 39,
  75800. 17,
  75801. 17,
  75802. 17,
  75803. 39,
  75804. 39,
  75805. 39,
  75806. 39,
  75807. 12,
  75808. 12,
  75809. 12,
  75810. 12,
  75811. 12,
  75812. 12,
  75813. 12,
  75814. 12,
  75815. 12,
  75816. 12,
  75817. 12,
  75818. 12,
  75819. 12,
  75820. 12,
  75821. 12,
  75822. 12,
  75823. 12,
  75824. 12,
  75825. 12,
  75826. 12,
  75827. 12,
  75828. 12,
  75829. 12,
  75830. 12,
  75831. 12,
  75832. 12,
  75833. 12,
  75834. 12,
  75835. 12,
  75836. 12,
  75837. 12,
  75838. 12,
  75839. 12,
  75840. 12,
  75841. 12,
  75842. 12,
  75843. 12,
  75844. 12,
  75845. 12,
  75846. 12,
  75847. 12,
  75848. 12,
  75849. 12,
  75850. 12,
  75851. 12,
  75852. 12,
  75853. 12,
  75854. 12,
  75855. 12,
  75856. 12,
  75857. 12,
  75858. 12,
  75859. 12,
  75860. 12,
  75861. 12,
  75862. 12,
  75863. 12,
  75864. 12,
  75865. 12,
  75866. 12,
  75867. 12,
  75868. 12,
  75869. 12,
  75870. 12,
  75871. 12,
  75872. 12,
  75873. 12,
  75874. 12,
  75875. 12,
  75876. 12,
  75877. 12,
  75878. 12,
  75879. 12,
  75880. 12,
  75881. 12,
  75882. 12,
  75883. 12,
  75884. 12,
  75885. 12,
  75886. 12,
  75887. 12,
  75888. 12,
  75889. 12,
  75890. 12,
  75891. 12,
  75892. 12,
  75893. 21,
  75894. 39,
  75895. 39,
  75896. 12,
  75897. 12,
  75898. 12,
  75899. 12,
  75900. 12,
  75901. 12,
  75902. 12,
  75903. 12,
  75904. 12,
  75905. 12,
  75906. 12,
  75907. 12,
  75908. 12,
  75909. 12,
  75910. 12,
  75911. 12,
  75912. 12,
  75913. 12,
  75914. 12,
  75915. 12,
  75916. 12,
  75917. 12,
  75918. 12,
  75919. 12,
  75920. 12,
  75921. 12,
  75922. 12,
  75923. 12,
  75924. 12,
  75925. 12,
  75926. 12,
  75927. 12,
  75928. 12,
  75929. 12,
  75930. 12,
  75931. 12,
  75932. 12,
  75933. 12,
  75934. 12,
  75935. 12,
  75936. 12,
  75937. 12,
  75938. 12,
  75939. 12,
  75940. 12,
  75941. 12,
  75942. 12,
  75943. 12,
  75944. 12,
  75945. 12,
  75946. 12,
  75947. 12,
  75948. 12,
  75949. 12,
  75950. 12,
  75951. 12,
  75952. 12,
  75953. 12,
  75954. 12,
  75955. 12,
  75956. 12,
  75957. 12,
  75958. 39,
  75959. 17,
  75960. 12,
  75961. 12,
  75962. 12,
  75963. 12,
  75964. 12,
  75965. 12,
  75966. 12,
  75967. 12,
  75968. 12,
  75969. 12,
  75970. 12,
  75971. 12,
  75972. 12,
  75973. 12,
  75974. 12,
  75975. 12,
  75976. 12,
  75977. 12,
  75978. 12,
  75979. 12,
  75980. 12,
  75981. 12,
  75982. 12,
  75983. 12,
  75984. 12,
  75985. 12,
  75986. 12,
  75987. 12,
  75988. 12,
  75989. 12,
  75990. 12,
  75991. 12,
  75992. 12,
  75993. 12,
  75994. 12,
  75995. 12,
  75996. 12,
  75997. 12,
  75998. 12,
  75999. 12,
  76000. 12,
  76001. 12,
  76002. 12,
  76003. 12,
  76004. 12,
  76005. 12,
  76006. 12,
  76007. 12,
  76008. 17,
  76009. 12,
  76010. 12,
  76011. 12,
  76012. 12,
  76013. 12,
  76014. 12,
  76015. 12,
  76016. 12,
  76017. 12,
  76018. 12,
  76019. 12,
  76020. 12,
  76021. 12,
  76022. 12,
  76023. 12,
  76024. 12,
  76025. 12,
  76026. 12,
  76027. 12,
  76028. 12,
  76029. 12,
  76030. 12,
  76031. 12,
  76032. 12,
  76033. 12,
  76034. 12,
  76035. 12,
  76036. 12,
  76037. 12,
  76038. 12,
  76039. 12,
  76040. 12,
  76041. 12,
  76042. 12,
  76043. 12,
  76044. 12,
  76045. 12,
  76046. 12,
  76047. 12,
  76048. 12,
  76049. 12,
  76050. 12,
  76051. 12,
  76052. 12,
  76053. 12,
  76054. 12,
  76055. 12,
  76056. 12,
  76057. 12,
  76058. 12,
  76059. 12,
  76060. 12,
  76061. 12,
  76062. 12,
  76063. 12,
  76064. 12,
  76065. 12,
  76066. 12,
  76067. 12,
  76068. 12,
  76069. 12,
  76070. 12,
  76071. 12,
  76072. 12,
  76073. 12,
  76074. 12,
  76075. 12,
  76076. 12,
  76077. 12,
  76078. 12,
  76079. 12,
  76080. 12,
  76081. 12,
  76082. 12,
  76083. 12,
  76084. 12,
  76085. 12,
  76086. 39,
  76087. 39,
  76088. 11,
  76089. 11,
  76090. 11,
  76091. 11,
  76092. 11,
  76093. 11,
  76094. 11,
  76095. 11,
  76096. 11,
  76097. 11,
  76098. 39,
  76099. 39,
  76100. 39,
  76101. 39,
  76102. 39,
  76103. 39,
  76104. 39,
  76105. 39,
  76106. 39,
  76107. 39,
  76108. 39,
  76109. 39,
  76110. 39,
  76111. 39,
  76112. 39,
  76113. 39,
  76114. 39,
  76115. 39,
  76116. 39,
  76117. 39,
  76118. 39,
  76119. 39,
  76120. 12,
  76121. 12,
  76122. 12,
  76123. 12,
  76124. 12,
  76125. 12,
  76126. 12,
  76127. 12,
  76128. 12,
  76129. 12,
  76130. 12,
  76131. 12,
  76132. 12,
  76133. 12,
  76134. 12,
  76135. 12,
  76136. 12,
  76137. 12,
  76138. 12,
  76139. 12,
  76140. 12,
  76141. 12,
  76142. 12,
  76143. 12,
  76144. 12,
  76145. 12,
  76146. 12,
  76147. 12,
  76148. 12,
  76149. 12,
  76150. 12,
  76151. 12,
  76152. 12,
  76153. 12,
  76154. 12,
  76155. 12,
  76156. 12,
  76157. 12,
  76158. 12,
  76159. 12,
  76160. 12,
  76161. 12,
  76162. 12,
  76163. 12,
  76164. 12,
  76165. 12,
  76166. 12,
  76167. 12,
  76168. 12,
  76169. 12,
  76170. 12,
  76171. 12,
  76172. 12,
  76173. 12,
  76174. 39,
  76175. 17,
  76176. 12,
  76177. 12,
  76178. 12,
  76179. 12,
  76180. 12,
  76181. 12,
  76182. 12,
  76183. 12,
  76184. 12,
  76185. 12,
  76186. 12,
  76187. 12,
  76188. 12,
  76189. 12,
  76190. 12,
  76191. 12,
  76192. 12,
  76193. 12,
  76194. 12,
  76195. 12,
  76196. 12,
  76197. 12,
  76198. 12,
  76199. 12,
  76200. 12,
  76201. 12,
  76202. 12,
  76203. 12,
  76204. 12,
  76205. 12,
  76206. 12,
  76207. 12,
  76208. 12,
  76209. 12,
  76210. 12,
  76211. 12,
  76212. 12,
  76213. 12,
  76214. 12,
  76215. 12,
  76216. 12,
  76217. 12,
  76218. 12,
  76219. 12,
  76220. 12,
  76221. 12,
  76222. 12,
  76223. 12,
  76224. 12,
  76225. 12,
  76226. 12,
  76227. 12,
  76228. 12,
  76229. 12,
  76230. 12,
  76231. 12,
  76232. 12,
  76233. 12,
  76234. 12,
  76235. 12,
  76236. 12,
  76237. 12,
  76238. 12,
  76239. 12,
  76240. 12,
  76241. 12,
  76242. 12,
  76243. 12,
  76244. 39,
  76245. 39,
  76246. 39,
  76247. 17,
  76248. 12,
  76249. 12,
  76250. 12,
  76251. 12,
  76252. 12,
  76253. 12,
  76254. 12,
  76255. 12,
  76256. 12,
  76257. 12,
  76258. 12,
  76259. 12,
  76260. 12,
  76261. 12,
  76262. 12,
  76263. 12,
  76264. 12,
  76265. 12,
  76266. 12,
  76267. 12,
  76268. 12,
  76269. 12,
  76270. 12,
  76271. 12,
  76272. 12,
  76273. 12,
  76274. 12,
  76275. 12,
  76276. 12,
  76277. 12,
  76278. 12,
  76279. 12,
  76280. 12,
  76281. 21,
  76282. 21,
  76283. 21,
  76284. 21,
  76285. 21,
  76286. 21,
  76287. 21,
  76288. 21,
  76289. 21,
  76290. 21,
  76291. 21,
  76292. 21,
  76293. 21,
  76294. 21,
  76295. 21,
  76296. 12,
  76297. 12,
  76298. 12,
  76299. 12,
  76300. 12,
  76301. 12,
  76302. 12,
  76303. 12,
  76304. 12,
  76305. 12,
  76306. 12,
  76307. 12,
  76308. 12,
  76309. 12,
  76310. 12,
  76311. 12,
  76312. 12,
  76313. 12,
  76314. 12,
  76315. 12,
  76316. 12,
  76317. 12,
  76318. 12,
  76319. 12,
  76320. 12,
  76321. 12,
  76322. 12,
  76323. 12,
  76324. 12,
  76325. 12,
  76326. 12,
  76327. 12,
  76328. 12,
  76329. 12,
  76330. 12,
  76331. 12,
  76332. 39,
  76333. 39,
  76334. 39,
  76335. 39,
  76336. 21,
  76337. 21,
  76338. 21,
  76339. 21,
  76340. 21,
  76341. 21,
  76342. 21,
  76343. 21,
  76344. 12,
  76345. 12,
  76346. 12,
  76347. 12,
  76348. 12,
  76349. 12,
  76350. 12,
  76351. 12,
  76352. 39,
  76353. 39,
  76354. 39,
  76355. 39,
  76356. 39,
  76357. 39,
  76358. 39,
  76359. 39,
  76360. 17,
  76361. 17,
  76362. 17,
  76363. 17,
  76364. 17,
  76365. 17,
  76366. 17,
  76367. 17,
  76368. 12,
  76369. 12,
  76370. 12,
  76371. 12,
  76372. 12,
  76373. 12,
  76374. 12,
  76375. 12,
  76376. 12,
  76377. 12,
  76378. 12,
  76379. 12,
  76380. 12,
  76381. 12,
  76382. 12,
  76383. 12,
  76384. 12,
  76385. 12,
  76386. 12,
  76387. 12,
  76388. 12,
  76389. 12,
  76390. 12,
  76391. 12,
  76392. 12,
  76393. 12,
  76394. 12,
  76395. 12,
  76396. 12,
  76397. 12,
  76398. 12,
  76399. 12,
  76400. 12,
  76401. 12,
  76402. 12,
  76403. 12,
  76404. 12,
  76405. 12,
  76406. 12,
  76407. 12,
  76408. 12,
  76409. 12,
  76410. 12,
  76411. 12,
  76412. 12,
  76413. 12,
  76414. 12,
  76415. 12,
  76416. 12,
  76417. 12,
  76418. 12,
  76419. 12,
  76420. 12,
  76421. 12,
  76422. 12,
  76423. 12,
  76424. 12,
  76425. 12,
  76426. 12,
  76427. 12,
  76428. 12,
  76429. 12,
  76430. 39,
  76431. 39,
  76432. 39,
  76433. 17,
  76434. 17,
  76435. 17,
  76436. 17,
  76437. 17,
  76438. 17,
  76439. 17,
  76440. 12,
  76441. 12,
  76442. 12,
  76443. 12,
  76444. 12,
  76445. 12,
  76446. 12,
  76447. 12,
  76448. 12,
  76449. 12,
  76450. 12,
  76451. 12,
  76452. 12,
  76453. 12,
  76454. 12,
  76455. 12,
  76456. 12,
  76457. 12,
  76458. 12,
  76459. 12,
  76460. 12,
  76461. 12,
  76462. 12,
  76463. 12,
  76464. 12,
  76465. 12,
  76466. 12,
  76467. 12,
  76468. 12,
  76469. 12,
  76470. 12,
  76471. 12,
  76472. 12,
  76473. 12,
  76474. 12,
  76475. 12,
  76476. 12,
  76477. 12,
  76478. 12,
  76479. 12,
  76480. 12,
  76481. 12,
  76482. 12,
  76483. 12,
  76484. 12,
  76485. 12,
  76486. 12,
  76487. 12,
  76488. 12,
  76489. 12,
  76490. 12,
  76491. 12,
  76492. 12,
  76493. 12,
  76494. 12,
  76495. 12,
  76496. 12,
  76497. 12,
  76498. 12,
  76499. 12,
  76500. 12,
  76501. 12,
  76502. 12,
  76503. 39,
  76504. 21,
  76505. 21,
  76506. 21,
  76507. 12,
  76508. 12,
  76509. 12,
  76510. 12,
  76511. 12,
  76512. 12,
  76513. 12,
  76514. 12,
  76515. 12,
  76516. 12,
  76517. 12,
  76518. 12,
  76519. 12,
  76520. 12,
  76521. 12,
  76522. 12,
  76523. 12,
  76524. 12,
  76525. 12,
  76526. 12,
  76527. 12,
  76528. 12,
  76529. 12,
  76530. 12,
  76531. 12,
  76532. 12,
  76533. 12,
  76534. 12,
  76535. 12,
  76536. 12,
  76537. 12,
  76538. 12,
  76539. 12,
  76540. 12,
  76541. 12,
  76542. 12,
  76543. 12,
  76544. 12,
  76545. 12,
  76546. 12,
  76547. 12,
  76548. 12,
  76549. 12,
  76550. 12,
  76551. 12,
  76552. 12,
  76553. 12,
  76554. 12,
  76555. 12,
  76556. 12,
  76557. 12,
  76558. 12,
  76559. 12,
  76560. 21,
  76561. 21,
  76562. 21,
  76563. 21,
  76564. 21,
  76565. 21,
  76566. 21,
  76567. 21,
  76568. 21,
  76569. 21,
  76570. 21,
  76571. 21,
  76572. 21,
  76573. 21,
  76574. 21,
  76575. 17,
  76576. 17,
  76577. 12,
  76578. 12,
  76579. 12,
  76580. 12,
  76581. 12,
  76582. 12,
  76583. 12,
  76584. 12,
  76585. 12,
  76586. 12,
  76587. 12,
  76588. 12,
  76589. 12,
  76590. 12,
  76591. 12,
  76592. 12,
  76593. 12,
  76594. 12,
  76595. 12,
  76596. 12,
  76597. 12,
  76598. 12,
  76599. 12,
  76600. 12,
  76601. 12,
  76602. 12,
  76603. 12,
  76604. 12,
  76605. 12,
  76606. 11,
  76607. 11,
  76608. 11,
  76609. 11,
  76610. 11,
  76611. 11,
  76612. 11,
  76613. 11,
  76614. 11,
  76615. 11,
  76616. 39,
  76617. 39,
  76618. 39,
  76619. 39,
  76620. 39,
  76621. 39,
  76622. 39,
  76623. 39,
  76624. 39,
  76625. 39,
  76626. 39,
  76627. 39,
  76628. 39,
  76629. 39,
  76630. 39,
  76631. 39,
  76632. 21,
  76633. 21,
  76634. 21,
  76635. 12,
  76636. 12,
  76637. 12,
  76638. 12,
  76639. 12,
  76640. 12,
  76641. 12,
  76642. 12,
  76643. 12,
  76644. 12,
  76645. 12,
  76646. 12,
  76647. 12,
  76648. 12,
  76649. 12,
  76650. 12,
  76651. 12,
  76652. 12,
  76653. 12,
  76654. 12,
  76655. 12,
  76656. 12,
  76657. 12,
  76658. 12,
  76659. 12,
  76660. 12,
  76661. 12,
  76662. 12,
  76663. 12,
  76664. 12,
  76665. 12,
  76666. 12,
  76667. 12,
  76668. 12,
  76669. 12,
  76670. 12,
  76671. 12,
  76672. 12,
  76673. 12,
  76674. 12,
  76675. 12,
  76676. 12,
  76677. 12,
  76678. 12,
  76679. 12,
  76680. 21,
  76681. 21,
  76682. 21,
  76683. 21,
  76684. 21,
  76685. 21,
  76686. 21,
  76687. 21,
  76688. 21,
  76689. 21,
  76690. 21,
  76691. 12,
  76692. 12,
  76693. 12,
  76694. 17,
  76695. 17,
  76696. 17,
  76697. 17,
  76698. 39,
  76699. 39,
  76700. 39,
  76701. 39,
  76702. 39,
  76703. 39,
  76704. 39,
  76705. 39,
  76706. 39,
  76707. 39,
  76708. 39,
  76709. 39,
  76710. 39,
  76711. 39,
  76712. 12,
  76713. 12,
  76714. 12,
  76715. 12,
  76716. 12,
  76717. 12,
  76718. 12,
  76719. 12,
  76720. 12,
  76721. 12,
  76722. 12,
  76723. 12,
  76724. 12,
  76725. 12,
  76726. 12,
  76727. 12,
  76728. 12,
  76729. 12,
  76730. 12,
  76731. 12,
  76732. 12,
  76733. 12,
  76734. 12,
  76735. 12,
  76736. 12,
  76737. 39,
  76738. 39,
  76739. 39,
  76740. 39,
  76741. 39,
  76742. 39,
  76743. 39,
  76744. 11,
  76745. 11,
  76746. 11,
  76747. 11,
  76748. 11,
  76749. 11,
  76750. 11,
  76751. 11,
  76752. 11,
  76753. 11,
  76754. 39,
  76755. 39,
  76756. 39,
  76757. 39,
  76758. 39,
  76759. 39,
  76760. 21,
  76761. 21,
  76762. 21,
  76763. 12,
  76764. 12,
  76765. 12,
  76766. 12,
  76767. 12,
  76768. 12,
  76769. 12,
  76770. 12,
  76771. 12,
  76772. 12,
  76773. 12,
  76774. 12,
  76775. 12,
  76776. 12,
  76777. 12,
  76778. 12,
  76779. 12,
  76780. 12,
  76781. 12,
  76782. 12,
  76783. 12,
  76784. 12,
  76785. 12,
  76786. 12,
  76787. 12,
  76788. 12,
  76789. 12,
  76790. 12,
  76791. 12,
  76792. 12,
  76793. 12,
  76794. 12,
  76795. 12,
  76796. 12,
  76797. 12,
  76798. 12,
  76799. 21,
  76800. 21,
  76801. 21,
  76802. 21,
  76803. 21,
  76804. 21,
  76805. 21,
  76806. 21,
  76807. 21,
  76808. 21,
  76809. 21,
  76810. 21,
  76811. 21,
  76812. 21,
  76813. 39,
  76814. 11,
  76815. 11,
  76816. 11,
  76817. 11,
  76818. 11,
  76819. 11,
  76820. 11,
  76821. 11,
  76822. 11,
  76823. 11,
  76824. 17,
  76825. 17,
  76826. 17,
  76827. 17,
  76828. 39,
  76829. 39,
  76830. 39,
  76831. 39,
  76832. 39,
  76833. 39,
  76834. 39,
  76835. 39,
  76836. 39,
  76837. 39,
  76838. 39,
  76839. 39,
  76840. 39,
  76841. 39,
  76842. 39,
  76843. 39,
  76844. 39,
  76845. 39,
  76846. 39,
  76847. 39,
  76848. 39,
  76849. 39,
  76850. 39,
  76851. 39,
  76852. 39,
  76853. 39,
  76854. 39,
  76855. 39,
  76856. 21,
  76857. 21,
  76858. 21,
  76859. 12,
  76860. 12,
  76861. 12,
  76862. 12,
  76863. 12,
  76864. 12,
  76865. 12,
  76866. 12,
  76867. 12,
  76868. 12,
  76869. 12,
  76870. 12,
  76871. 12,
  76872. 12,
  76873. 12,
  76874. 12,
  76875. 12,
  76876. 12,
  76877. 12,
  76878. 12,
  76879. 12,
  76880. 12,
  76881. 12,
  76882. 12,
  76883. 12,
  76884. 12,
  76885. 12,
  76886. 12,
  76887. 12,
  76888. 12,
  76889. 12,
  76890. 12,
  76891. 12,
  76892. 12,
  76893. 12,
  76894. 12,
  76895. 12,
  76896. 12,
  76897. 12,
  76898. 12,
  76899. 12,
  76900. 12,
  76901. 12,
  76902. 12,
  76903. 12,
  76904. 12,
  76905. 12,
  76906. 12,
  76907. 21,
  76908. 21,
  76909. 21,
  76910. 21,
  76911. 21,
  76912. 21,
  76913. 21,
  76914. 21,
  76915. 21,
  76916. 21,
  76917. 21,
  76918. 21,
  76919. 21,
  76920. 21,
  76921. 12,
  76922. 12,
  76923. 12,
  76924. 12,
  76925. 17,
  76926. 17,
  76927. 12,
  76928. 17,
  76929. 39,
  76930. 39,
  76931. 39,
  76932. 39,
  76933. 39,
  76934. 39,
  76935. 39,
  76936. 11,
  76937. 11,
  76938. 11,
  76939. 11,
  76940. 11,
  76941. 11,
  76942. 11,
  76943. 11,
  76944. 11,
  76945. 11,
  76946. 39,
  76947. 39,
  76948. 39,
  76949. 39,
  76950. 39,
  76951. 39,
  76952. 12,
  76953. 12,
  76954. 12,
  76955. 12,
  76956. 12,
  76957. 12,
  76958. 12,
  76959. 12,
  76960. 12,
  76961. 12,
  76962. 12,
  76963. 12,
  76964. 12,
  76965. 12,
  76966. 12,
  76967. 12,
  76968. 12,
  76969. 12,
  76970. 12,
  76971. 12,
  76972. 12,
  76973. 12,
  76974. 12,
  76975. 12,
  76976. 12,
  76977. 12,
  76978. 12,
  76979. 12,
  76980. 12,
  76981. 12,
  76982. 12,
  76983. 12,
  76984. 12,
  76985. 12,
  76986. 12,
  76987. 12,
  76988. 12,
  76989. 12,
  76990. 12,
  76991. 12,
  76992. 12,
  76993. 12,
  76994. 12,
  76995. 21,
  76996. 21,
  76997. 21,
  76998. 21,
  76999. 21,
  77000. 21,
  77001. 21,
  77002. 21,
  77003. 21,
  77004. 21,
  77005. 21,
  77006. 21,
  77007. 21,
  77008. 39,
  77009. 39,
  77010. 39,
  77011. 39,
  77012. 39,
  77013. 39,
  77014. 39,
  77015. 39,
  77016. 11,
  77017. 11,
  77018. 11,
  77019. 11,
  77020. 11,
  77021. 11,
  77022. 11,
  77023. 11,
  77024. 11,
  77025. 11,
  77026. 39,
  77027. 39,
  77028. 39,
  77029. 39,
  77030. 39,
  77031. 39,
  77032. 39,
  77033. 39,
  77034. 39,
  77035. 39,
  77036. 39,
  77037. 39,
  77038. 39,
  77039. 39,
  77040. 39,
  77041. 39,
  77042. 39,
  77043. 39,
  77044. 39,
  77045. 39,
  77046. 39,
  77047. 39,
  77048. 12,
  77049. 12,
  77050. 12,
  77051. 12,
  77052. 12,
  77053. 12,
  77054. 12,
  77055. 12,
  77056. 12,
  77057. 12,
  77058. 12,
  77059. 12,
  77060. 12,
  77061. 12,
  77062. 12,
  77063. 12,
  77064. 12,
  77065. 12,
  77066. 12,
  77067. 12,
  77068. 12,
  77069. 12,
  77070. 12,
  77071. 12,
  77072. 12,
  77073. 12,
  77074. 12,
  77075. 12,
  77076. 12,
  77077. 12,
  77078. 12,
  77079. 12,
  77080. 12,
  77081. 12,
  77082. 12,
  77083. 39,
  77084. 39,
  77085. 39,
  77086. 39,
  77087. 39,
  77088. 39,
  77089. 39,
  77090. 39,
  77091. 39,
  77092. 39,
  77093. 39,
  77094. 39,
  77095. 39,
  77096. 17,
  77097. 17,
  77098. 17,
  77099. 17,
  77100. 39,
  77101. 39,
  77102. 39,
  77103. 39,
  77104. 39,
  77105. 39,
  77106. 39,
  77107. 39,
  77108. 39,
  77109. 39,
  77110. 39,
  77111. 39,
  77112. 12,
  77113. 12,
  77114. 12,
  77115. 12,
  77116. 12,
  77117. 12,
  77118. 12,
  77119. 12,
  77120. 12,
  77121. 12,
  77122. 12,
  77123. 12,
  77124. 12,
  77125. 12,
  77126. 12,
  77127. 12,
  77128. 12,
  77129. 12,
  77130. 12,
  77131. 12,
  77132. 12,
  77133. 12,
  77134. 12,
  77135. 12,
  77136. 12,
  77137. 12,
  77138. 12,
  77139. 12,
  77140. 12,
  77141. 12,
  77142. 12,
  77143. 12,
  77144. 12,
  77145. 12,
  77146. 12,
  77147. 12,
  77148. 12,
  77149. 12,
  77150. 12,
  77151. 12,
  77152. 12,
  77153. 12,
  77154. 12,
  77155. 12,
  77156. 12,
  77157. 12,
  77158. 12,
  77159. 12,
  77160. 12,
  77161. 12,
  77162. 12,
  77163. 12,
  77164. 12,
  77165. 12,
  77166. 12,
  77167. 12,
  77168. 0,
  77169. 0,
  77170. 0,
  77171. 1,
  77172. 1,
  77173. 1,
  77174. 12,
  77175. 12,
  77176. 12,
  77177. 12,
  77178. 12,
  77179. 12,
  77180. 12,
  77181. 12,
  77182. 12,
  77183. 12,
  77184. 12,
  77185. 12,
  77186. 12,
  77187. 12,
  77188. 12,
  77189. 12,
  77190. 12,
  77191. 12,
  77192. 12,
  77193. 12,
  77194. 12,
  77195. 12,
  77196. 12,
  77197. 12,
  77198. 12,
  77199. 12,
  77200. 12,
  77201. 12,
  77202. 12,
  77203. 12,
  77204. 12,
  77205. 12,
  77206. 12,
  77207. 12,
  77208. 12,
  77209. 12,
  77210. 1,
  77211. 12,
  77212. 12,
  77213. 12,
  77214. 0,
  77215. 1,
  77216. 0,
  77217. 1,
  77218. 12,
  77219. 12,
  77220. 12,
  77221. 12,
  77222. 12,
  77223. 12,
  77224. 12,
  77225. 12,
  77226. 12,
  77227. 12,
  77228. 12,
  77229. 12,
  77230. 12,
  77231. 12,
  77232. 12,
  77233. 12,
  77234. 12,
  77235. 12,
  77236. 12,
  77237. 12,
  77238. 12,
  77239. 12,
  77240. 12,
  77241. 12,
  77242. 12,
  77243. 12,
  77244. 12,
  77245. 12,
  77246. 12,
  77247. 12,
  77248. 12,
  77249. 12,
  77250. 12,
  77251. 12,
  77252. 12,
  77253. 12,
  77254. 12,
  77255. 12,
  77256. 12,
  77257. 12,
  77258. 12,
  77259. 12,
  77260. 12,
  77261. 12,
  77262. 12,
  77263. 12,
  77264. 12,
  77265. 12,
  77266. 12,
  77267. 12,
  77268. 12,
  77269. 12,
  77270. 12,
  77271. 12,
  77272. 12,
  77273. 12,
  77274. 12,
  77275. 12,
  77276. 12,
  77277. 12,
  77278. 12,
  77279. 12,
  77280. 12,
  77281. 12,
  77282. 12,
  77283. 12,
  77284. 12,
  77285. 12,
  77286. 12,
  77287. 12,
  77288. 12,
  77289. 12,
  77290. 12,
  77291. 12,
  77292. 12,
  77293. 12,
  77294. 12,
  77295. 12,
  77296. 12,
  77297. 0,
  77298. 1,
  77299. 1,
  77300. 12,
  77301. 12,
  77302. 12,
  77303. 12,
  77304. 12,
  77305. 12,
  77306. 12,
  77307. 12,
  77308. 12,
  77309. 12,
  77310. 12,
  77311. 12,
  77312. 12,
  77313. 12,
  77314. 12,
  77315. 12,
  77316. 12,
  77317. 12,
  77318. 12,
  77319. 12,
  77320. 12,
  77321. 12,
  77322. 12,
  77323. 12,
  77324. 12,
  77325. 12,
  77326. 12,
  77327. 12,
  77328. 12,
  77329. 12,
  77330. 12,
  77331. 12,
  77332. 12,
  77333. 12,
  77334. 12,
  77335. 12,
  77336. 12,
  77337. 12,
  77338. 12,
  77339. 12,
  77340. 12,
  77341. 12,
  77342. 12,
  77343. 12,
  77344. 12,
  77345. 12,
  77346. 12,
  77347. 12,
  77348. 12,
  77349. 12,
  77350. 12,
  77351. 12,
  77352. 12,
  77353. 21,
  77354. 21,
  77355. 21,
  77356. 21,
  77357. 21,
  77358. 21,
  77359. 21,
  77360. 21,
  77361. 21,
  77362. 21,
  77363. 21,
  77364. 21,
  77365. 21,
  77366. 21,
  77367. 21,
  77368. 21,
  77369. 21,
  77370. 21,
  77371. 21,
  77372. 21,
  77373. 21,
  77374. 21,
  77375. 21,
  77376. 21,
  77377. 21,
  77378. 21,
  77379. 21,
  77380. 21,
  77381. 21,
  77382. 21,
  77383. 21,
  77384. 21,
  77385. 21,
  77386. 21,
  77387. 21,
  77388. 21,
  77389. 21,
  77390. 21,
  77391. 21,
  77392. 21,
  77393. 21,
  77394. 21,
  77395. 21,
  77396. 21,
  77397. 21,
  77398. 21,
  77399. 21,
  77400. 21,
  77401. 21,
  77402. 21,
  77403. 21,
  77404. 21,
  77405. 21,
  77406. 21,
  77407. 21,
  77408. 21,
  77409. 21,
  77410. 21,
  77411. 21,
  77412. 21,
  77413. 21,
  77414. 21,
  77415. 21,
  77416. 21,
  77417. 21,
  77418. 21,
  77419. 12,
  77420. 12,
  77421. 12,
  77422. 12,
  77423. 12,
  77424. 12,
  77425. 12,
  77426. 12,
  77427. 12,
  77428. 12,
  77429. 12,
  77430. 12,
  77431. 12,
  77432. 14,
  77433. 14,
  77434. 39,
  77435. 39,
  77436. 39,
  77437. 39,
  77438. 39,
  77439. 39,
  77440. 39,
  77441. 39,
  77442. 39,
  77443. 39,
  77444. 39,
  77445. 39,
  77446. 39,
  77447. 39,
  77448. 39,
  77449. 39,
  77450. 39,
  77451. 39,
  77452. 39,
  77453. 39,
  77454. 39,
  77455. 39,
  77456. 39,
  77457. 39,
  77458. 39,
  77459. 39,
  77460. 39,
  77461. 39,
  77462. 39,
  77463. 39,
  77464. 12,
  77465. 12,
  77466. 12,
  77467. 12,
  77468. 12,
  77469. 12,
  77470. 12,
  77471. 12,
  77472. 12,
  77473. 12,
  77474. 12,
  77475. 12,
  77476. 12,
  77477. 12,
  77478. 12,
  77479. 12,
  77480. 12,
  77481. 12,
  77482. 12,
  77483. 12,
  77484. 12,
  77485. 12,
  77486. 12,
  77487. 12,
  77488. 12,
  77489. 12,
  77490. 12,
  77491. 12,
  77492. 12,
  77493. 12,
  77494. 12,
  77495. 12,
  77496. 12,
  77497. 12,
  77498. 12,
  77499. 12,
  77500. 12,
  77501. 21,
  77502. 21,
  77503. 21,
  77504. 21,
  77505. 21,
  77506. 12,
  77507. 12,
  77508. 12,
  77509. 21,
  77510. 21,
  77511. 21,
  77512. 21,
  77513. 21,
  77514. 21,
  77515. 21,
  77516. 21,
  77517. 21,
  77518. 21,
  77519. 21,
  77520. 21,
  77521. 21,
  77522. 21,
  77523. 21,
  77524. 21,
  77525. 21,
  77526. 21,
  77527. 21,
  77528. 21,
  77529. 21,
  77530. 21,
  77531. 12,
  77532. 12,
  77533. 21,
  77534. 21,
  77535. 21,
  77536. 21,
  77537. 21,
  77538. 21,
  77539. 21,
  77540. 12,
  77541. 12,
  77542. 12,
  77543. 12,
  77544. 12,
  77545. 12,
  77546. 12,
  77547. 12,
  77548. 12,
  77549. 12,
  77550. 12,
  77551. 12,
  77552. 12,
  77553. 12,
  77554. 12,
  77555. 12,
  77556. 12,
  77557. 12,
  77558. 12,
  77559. 12,
  77560. 12,
  77561. 12,
  77562. 12,
  77563. 12,
  77564. 12,
  77565. 12,
  77566. 12,
  77567. 12,
  77568. 12,
  77569. 12,
  77570. 21,
  77571. 21,
  77572. 21,
  77573. 21,
  77574. 12,
  77575. 12,
  77576. 12,
  77577. 12,
  77578. 12,
  77579. 12,
  77580. 12,
  77581. 12,
  77582. 12,
  77583. 12,
  77584. 12,
  77585. 12,
  77586. 12,
  77587. 12,
  77588. 12,
  77589. 12,
  77590. 12,
  77591. 12,
  77592. 12,
  77593. 12,
  77594. 12,
  77595. 12,
  77596. 12,
  77597. 12,
  77598. 12,
  77599. 12,
  77600. 12,
  77601. 12,
  77602. 12,
  77603. 12,
  77604. 12,
  77605. 12,
  77606. 12,
  77607. 12,
  77608. 12,
  77609. 12,
  77610. 12,
  77611. 12,
  77612. 12,
  77613. 12,
  77614. 12,
  77615. 12,
  77616. 12,
  77617. 12,
  77618. 12,
  77619. 12,
  77620. 12,
  77621. 12,
  77622. 12,
  77623. 12,
  77624. 12,
  77625. 12,
  77626. 21,
  77627. 21,
  77628. 21,
  77629. 12,
  77630. 12,
  77631. 12,
  77632. 12,
  77633. 12,
  77634. 12,
  77635. 12,
  77636. 12,
  77637. 12,
  77638. 12,
  77639. 12,
  77640. 12,
  77641. 12,
  77642. 12,
  77643. 12,
  77644. 12,
  77645. 12,
  77646. 12,
  77647. 12,
  77648. 12,
  77649. 12,
  77650. 12,
  77651. 12,
  77652. 12,
  77653. 12,
  77654. 12,
  77655. 12,
  77656. 12,
  77657. 12,
  77658. 12,
  77659. 12,
  77660. 12,
  77661. 12,
  77662. 12,
  77663. 12,
  77664. 12,
  77665. 12,
  77666. 12,
  77667. 12,
  77668. 12,
  77669. 12,
  77670. 12,
  77671. 12,
  77672. 12,
  77673. 12,
  77674. 12,
  77675. 12,
  77676. 12,
  77677. 12,
  77678. 12,
  77679. 12,
  77680. 12,
  77681. 12,
  77682. 12,
  77683. 12,
  77684. 12,
  77685. 12,
  77686. 12,
  77687. 12,
  77688. 12,
  77689. 12,
  77690. 12,
  77691. 12,
  77692. 12,
  77693. 12,
  77694. 12,
  77695. 12,
  77696. 12,
  77697. 12,
  77698. 12,
  77699. 12,
  77700. 39,
  77701. 39,
  77702. 11,
  77703. 11,
  77704. 11,
  77705. 11,
  77706. 11,
  77707. 11,
  77708. 11,
  77709. 11,
  77710. 11,
  77711. 11,
  77712. 11,
  77713. 11,
  77714. 11,
  77715. 11,
  77716. 11,
  77717. 11,
  77718. 11,
  77719. 11,
  77720. 11,
  77721. 11,
  77722. 11,
  77723. 11,
  77724. 11,
  77725. 11,
  77726. 11,
  77727. 11,
  77728. 11,
  77729. 11,
  77730. 11,
  77731. 11,
  77732. 11,
  77733. 11,
  77734. 11,
  77735. 11,
  77736. 11,
  77737. 11,
  77738. 11,
  77739. 11,
  77740. 11,
  77741. 11,
  77742. 11,
  77743. 11,
  77744. 11,
  77745. 11,
  77746. 11,
  77747. 11,
  77748. 11,
  77749. 11,
  77750. 11,
  77751. 11,
  77752. 12,
  77753. 12,
  77754. 12,
  77755. 12,
  77756. 12,
  77757. 12,
  77758. 12,
  77759. 12,
  77760. 12,
  77761. 12,
  77762. 12,
  77763. 12,
  77764. 12,
  77765. 12,
  77766. 12,
  77767. 12,
  77768. 12,
  77769. 12,
  77770. 12,
  77771. 12,
  77772. 12,
  77773. 12,
  77774. 12,
  77775. 12,
  77776. 12,
  77777. 12,
  77778. 12,
  77779. 12,
  77780. 12,
  77781. 12,
  77782. 12,
  77783. 12,
  77784. 12,
  77785. 12,
  77786. 12,
  77787. 12,
  77788. 12,
  77789. 12,
  77790. 12,
  77791. 12,
  77792. 12,
  77793. 12,
  77794. 12,
  77795. 12,
  77796. 12,
  77797. 12,
  77798. 12,
  77799. 12,
  77800. 12,
  77801. 12,
  77802. 39,
  77803. 39,
  77804. 39,
  77805. 39,
  77806. 39,
  77807. 39,
  77808. 39,
  77809. 39,
  77810. 39,
  77811. 39,
  77812. 39,
  77813. 39,
  77814. 39,
  77815. 39,
  77816. 14,
  77817. 14,
  77818. 14,
  77819. 14,
  77820. 14,
  77821. 14,
  77822. 14,
  77823. 14,
  77824. 14,
  77825. 14,
  77826. 14,
  77827. 14,
  77828. 14,
  77829. 14,
  77830. 14,
  77831. 14,
  77832. 14,
  77833. 14,
  77834. 14,
  77835. 14,
  77836. 14,
  77837. 14,
  77838. 14,
  77839. 14,
  77840. 14,
  77841. 14,
  77842. 14,
  77843. 14,
  77844. 14,
  77845. 14,
  77846. 14,
  77847. 14,
  77848. 29,
  77849. 29,
  77850. 29,
  77851. 29,
  77852. 29,
  77853. 29,
  77854. 29,
  77855. 29,
  77856. 29,
  77857. 29,
  77858. 29,
  77859. 29,
  77860. 29,
  77861. 29,
  77862. 29,
  77863. 29,
  77864. 29,
  77865. 29,
  77866. 29,
  77867. 29,
  77868. 29,
  77869. 29,
  77870. 29,
  77871. 29,
  77872. 29,
  77873. 29,
  77874. 29,
  77875. 29,
  77876. 29,
  77877. 29,
  77878. 29,
  77879. 29,
  77880. 29,
  77881. 29,
  77882. 29,
  77883. 29,
  77884. 29,
  77885. 29,
  77886. 29,
  77887. 29,
  77888. 29,
  77889. 29,
  77890. 29,
  77891. 29,
  77892. 29,
  77893. 29,
  77894. 12,
  77895. 39,
  77896. 29,
  77897. 29,
  77898. 29,
  77899. 29,
  77900. 29,
  77901. 29,
  77902. 29,
  77903. 29,
  77904. 29,
  77905. 29,
  77906. 29,
  77907. 29,
  77908. 29,
  77909. 29,
  77910. 29,
  77911. 29,
  77912. 29,
  77913. 29,
  77914. 29,
  77915. 29,
  77916. 29,
  77917. 29,
  77918. 29,
  77919. 29,
  77920. 29,
  77921. 29,
  77922. 29,
  77923. 29,
  77924. 29,
  77925. 29,
  77926. 29,
  77927. 29,
  77928. 29,
  77929. 29,
  77930. 29,
  77931. 29,
  77932. 29,
  77933. 29,
  77934. 29,
  77935. 29,
  77936. 29,
  77937. 29,
  77938. 29,
  77939. 29,
  77940. 29,
  77941. 29,
  77942. 29,
  77943. 29,
  77944. 29,
  77945. 29,
  77946. 29,
  77947. 29,
  77948. 29,
  77949. 29,
  77950. 29,
  77951. 29,
  77952. 29,
  77953. 29,
  77954. 12,
  77955. 12,
  77956. 39,
  77957. 39,
  77958. 39,
  77959. 39,
  77960. 29,
  77961. 29,
  77962. 29,
  77963. 29,
  77964. 29,
  77965. 29,
  77966. 29,
  77967. 29,
  77968. 29,
  77969. 29,
  77970. 29,
  77971. 29,
  77972. 29,
  77973. 29,
  77974. 29,
  77975. 29,
  77976. 29,
  77977. 29,
  77978. 29,
  77979. 29,
  77980. 29,
  77981. 29,
  77982. 29,
  77983. 29,
  77984. 29,
  77985. 29,
  77986. 29,
  77987. 29,
  77988. 29,
  77989. 29,
  77990. 29,
  77991. 29,
  77992. 29,
  77993. 29,
  77994. 29,
  77995. 29,
  77996. 29,
  77997. 29,
  77998. 29,
  77999. 29,
  78000. 29,
  78001. 29,
  78002. 29,
  78003. 39,
  78004. 39,
  78005. 39,
  78006. 39,
  78007. 39,
  78008. 39,
  78009. 39,
  78010. 39,
  78011. 39,
  78012. 39,
  78013. 39,
  78014. 28,
  78015. 28,
  78016. 28,
  78017. 28,
  78018. 28,
  78019. 28,
  78020. 28,
  78021. 28,
  78022. 28,
  78023. 28,
  78024. 28,
  78025. 28,
  78026. 28,
  78027. 28,
  78028. 28,
  78029. 28,
  78030. 28,
  78031. 28,
  78032. 28,
  78033. 28,
  78034. 28,
  78035. 28,
  78036. 28,
  78037. 28,
  78038. 28,
  78039. 28,
  78040. 14,
  78041. 14,
  78042. 14,
  78043. 14,
  78044. 14,
  78045. 14,
  78046. 14,
  78047. 14,
  78048. 14,
  78049. 14,
  78050. 14,
  78051. 14,
  78052. 14,
  78053. 14,
  78054. 14,
  78055. 14,
  78056. 14,
  78057. 14,
  78058. 14,
  78059. 14,
  78060. 14,
  78061. 14,
  78062. 14,
  78063. 14,
  78064. 14,
  78065. 14,
  78066. 14,
  78067. 14,
  78068. 14,
  78069. 14,
  78070. 14,
  78071. 14,
  78072. 14,
  78073. 14,
  78074. 14,
  78075. 14,
  78076. 14,
  78077. 14,
  78078. 14,
  78079. 14,
  78080. 14,
  78081. 14,
  78082. 14,
  78083. 14,
  78084. 14,
  78085. 14,
  78086. 14,
  78087. 14,
  78088. 14,
  78089. 14,
  78090. 14,
  78091. 14,
  78092. 14,
  78093. 12,
  78094. 12,
  78095. 14,
  78096. 14,
  78097. 14,
  78098. 14,
  78099. 14,
  78100. 12,
  78101. 14,
  78102. 14,
  78103. 14,
  78104. 14,
  78105. 14,
  78106. 14,
  78107. 14,
  78108. 14,
  78109. 14,
  78110. 14,
  78111. 14,
  78112. 14,
  78113. 14,
  78114. 14,
  78115. 14,
  78116. 14,
  78117. 14,
  78118. 14,
  78119. 14,
  78120. 14,
  78121. 14,
  78122. 14,
  78123. 14,
  78124. 14,
  78125. 14,
  78126. 14,
  78127. 14,
  78128. 14,
  78129. 14,
  78130. 14,
  78131. 14,
  78132. 14,
  78133. 14,
  78134. 14,
  78135. 14,
  78136. 12,
  78137. 14,
  78138. 12,
  78139. 14,
  78140. 12,
  78141. 14,
  78142. 14,
  78143. 14,
  78144. 14,
  78145. 14,
  78146. 14,
  78147. 14,
  78148. 14,
  78149. 14,
  78150. 14,
  78151. 12,
  78152. 14,
  78153. 12,
  78154. 12,
  78155. 14,
  78156. 14,
  78157. 14,
  78158. 14,
  78159. 14,
  78160. 14,
  78161. 14,
  78162. 14,
  78163. 14,
  78164. 14,
  78165. 14,
  78166. 14,
  78167. 14,
  78168. 14,
  78169. 14,
  78170. 14,
  78171. 14,
  78172. 14,
  78173. 14,
  78174. 14,
  78175. 14,
  78176. 14,
  78177. 14,
  78178. 14,
  78179. 14,
  78180. 14,
  78181. 14,
  78182. 14,
  78183. 14,
  78184. 14,
  78185. 14,
  78186. 14,
  78187. 14,
  78188. 14,
  78189. 14,
  78190. 14,
  78191. 14,
  78192. 14,
  78193. 14,
  78194. 14,
  78195. 14,
  78196. 14,
  78197. 14,
  78198. 14,
  78199. 14,
  78200. 14,
  78201. 14,
  78202. 14,
  78203. 14,
  78204. 14,
  78205. 14,
  78206. 14,
  78207. 14,
  78208. 14,
  78209. 14,
  78210. 14,
  78211. 14,
  78212. 14,
  78213. 14,
  78214. 14,
  78215. 14,
  78216. 14,
  78217. 14,
  78218. 14,
  78219. 14,
  78220. 14,
  78221. 14,
  78222. 14,
  78223. 14,
  78224. 14,
  78225. 14,
  78226. 14,
  78227. 14,
  78228. 14,
  78229. 39,
  78230. 39,
  78231. 39,
  78232. 12,
  78233. 12,
  78234. 12,
  78235. 12,
  78236. 12,
  78237. 12,
  78238. 12,
  78239. 14,
  78240. 14,
  78241. 14,
  78242. 14,
  78243. 14,
  78244. 14,
  78245. 14,
  78246. 14,
  78247. 14,
  78248. 14,
  78249. 14,
  78250. 14,
  78251. 14,
  78252. 14,
  78253. 14,
  78254. 14,
  78255. 12,
  78256. 12,
  78257. 12,
  78258. 12,
  78259. 12,
  78260. 12,
  78261. 12,
  78262. 12,
  78263. 12,
  78264. 12,
  78265. 12,
  78266. 12,
  78267. 12,
  78268. 12,
  78269. 14,
  78270. 14,
  78271. 14,
  78272. 14,
  78273. 14,
  78274. 14,
  78275. 14,
  78276. 14,
  78277. 14,
  78278. 14,
  78279. 14,
  78280. 14,
  78281. 14,
  78282. 12,
  78283. 12,
  78284. 12,
  78285. 12,
  78286. 12,
  78287. 12,
  78288. 12,
  78289. 12,
  78290. 12,
  78291. 12,
  78292. 12,
  78293. 12,
  78294. 12,
  78295. 12,
  78296. 12,
  78297. 12,
  78298. 12,
  78299. 12,
  78300. 39,
  78301. 39,
  78302. 39,
  78303. 39,
  78304. 39,
  78305. 39,
  78306. 39,
  78307. 39,
  78308. 39,
  78309. 39,
  78310. 39,
  78311. 39,
  78312. 14,
  78313. 14,
  78314. 14,
  78315. 14,
  78316. 14,
  78317. 14,
  78318. 14,
  78319. 14,
  78320. 14,
  78321. 14,
  78322. 14,
  78323. 14,
  78324. 14,
  78325. 14,
  78326. 14,
  78327. 14,
  78328. 14,
  78329. 14,
  78330. 14,
  78331. 14,
  78332. 14,
  78333. 14,
  78334. 14,
  78335. 14,
  78336. 14,
  78337. 14,
  78338. 14,
  78339. 14,
  78340. 14,
  78341. 14,
  78342. 14,
  78343. 14,
  78344. 14,
  78345. 14,
  78346. 14,
  78347. 14,
  78348. 14,
  78349. 14,
  78350. 14,
  78351. 14,
  78352. 14,
  78353. 14,
  78354. 14,
  78355. 14,
  78356. 14,
  78357. 14,
  78358. 14,
  78359. 14,
  78360. 14,
  78361. 14,
  78362. 14,
  78363. 14,
  78364. 14,
  78365. 14,
  78366. 39,
  78367. 39,
  78368. 39,
  78369. 39,
  78370. 39,
  78371. 39,
  78372. 39,
  78373. 39,
  78374. 39,
  78375. 39,
  78376. 39,
  78377. 39,
  78378. 39,
  78379. 39,
  78380. 39,
  78381. 39,
  78382. 39,
  78383. 39,
  78384. 39,
  78385. 39,
  78386. 39,
  78387. 39,
  78388. 39,
  78389. 39,
  78390. 39,
  78391. 39,
  78392. 12,
  78393. 12,
  78394. 12,
  78395. 12,
  78396. 12,
  78397. 12,
  78398. 12,
  78399. 12,
  78400. 12,
  78401. 12,
  78402. 12,
  78403. 12,
  78404. 12,
  78405. 12,
  78406. 12,
  78407. 12,
  78408. 12,
  78409. 12,
  78410. 12,
  78411. 12,
  78412. 12,
  78413. 12,
  78414. 12,
  78415. 12,
  78416. 12,
  78417. 12,
  78418. 12,
  78419. 12,
  78420. 12,
  78421. 12,
  78422. 12,
  78423. 12,
  78424. 12,
  78425. 12,
  78426. 12,
  78427. 12,
  78428. 12,
  78429. 12,
  78430. 12,
  78431. 12,
  78432. 12,
  78433. 12,
  78434. 12,
  78435. 12,
  78436. 12,
  78437. 12,
  78438. 12,
  78439. 12,
  78440. 12,
  78441. 12,
  78442. 12,
  78443. 12,
  78444. 39,
  78445. 39,
  78446. 39,
  78447. 39,
  78448. 39,
  78449. 39,
  78450. 39,
  78451. 39,
  78452. 39,
  78453. 39,
  78454. 39,
  78455. 39,
  78456. 14,
  78457. 14,
  78458. 14,
  78459. 14,
  78460. 14,
  78461. 14,
  78462. 14,
  78463. 14,
  78464. 14,
  78465. 14,
  78466. 14,
  78467. 14,
  78468. 14,
  78469. 14,
  78470. 14,
  78471. 14,
  78472. 14,
  78473. 14,
  78474. 14,
  78475. 14,
  78476. 14,
  78477. 14,
  78478. 14,
  78479. 14,
  78480. 14,
  78481. 14,
  78482. 14,
  78483. 14,
  78484. 14,
  78485. 14,
  78486. 14,
  78487. 14,
  78488. 14,
  78489. 14,
  78490. 14,
  78491. 14,
  78492. 14,
  78493. 14,
  78494. 14,
  78495. 14,
  78496. 14,
  78497. 14,
  78498. 14,
  78499. 14,
  78500. 14,
  78501. 14,
  78502. 14,
  78503. 14,
  78504. 14,
  78505. 14,
  78506. 14,
  78507. 14,
  78508. 14,
  78509. 14,
  78510. 14,
  78511. 14,
  78512. 14,
  78513. 14,
  78514. 14,
  78515. 14,
  78516. 14,
  78517. 14,
  78518. 39,
  78519. 39,
  78520. 39,
  78521. 21,
  78522. 21,
  78523. 21,
  78524. 21,
  78525. 21,
  78526. 21,
  78527. 21,
  78528. 21,
  78529. 21,
  78530. 21,
  78531. 21,
  78532. 21,
  78533. 21,
  78534. 21,
  78535. 21,
  78536. 21,
  78537. 21,
  78538. 21,
  78539. 21,
  78540. 21,
  78541. 21,
  78542. 21,
  78543. 21,
  78544. 21,
  78545. 21,
  78546. 21,
  78547. 21,
  78548. 21,
  78549. 21,
  78550. 21,
  78551. 21,
  78552. 21,
  78553. 21,
  78554. 21,
  78555. 21,
  78556. 21,
  78557. 21,
  78558. 21,
  78559. 21,
  78560. 21,
  78561. 21,
  78562. 21,
  78563. 21,
  78564. 21,
  78565. 21,
  78566. 21,
  78567. 21,
  78568. 21,
  78569. 21,
  78570. 21,
  78571. 21,
  78572. 21,
  78573. 21,
  78574. 21,
  78575. 21,
  78576. 21,
  78577. 21,
  78578. 21,
  78579. 21,
  78580. 21,
  78581. 21,
  78582. 21,
  78583. 21,
  78584. 21,
  78585. 21,
  78586. 21,
  78587. 21,
  78588. 21,
  78589. 21,
  78590. 21,
  78591. 21,
  78592. 21,
  78593. 21,
  78594. 21,
  78595. 21,
  78596. 21,
  78597. 21,
  78598. 21,
  78599. 21,
  78600. 39,
  78601. 39,
  78602. 39,
  78603. 39,
  78604. 39,
  78605. 39,
  78606. 39,
  78607. 39,
  78608. 39,
  78609. 39,
  78610. 39,
  78611. 39,
  78612. 39,
  78613. 39,
  78614. 39,
  78615. 39,
  78616. 39,
  78617. 39,
  78618. 39,
  78619. 39
  78620. ],
  78621. "highStart": 919552,
  78622. "errorValue": 0
  78623. }
  78624. /***/ },
  78625. /* 107 */
  78626. /***/ function(module, exports, __webpack_require__) {
  78627. module.exports = Array.isArray || function (arr) {
  78628. return Object.prototype.toString.call(arr) == '[object Array]';
  78629. };
  78630. /***/ }
  78631. /******/ ]);
  78632. window.pdfMake = window.pdfMake || {}; window.pdfMake.vfs = {"LICENSE.txt":"DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBBcGFjaGUgTGljZW5zZQ0KICAgICAgICAgICAgICAgICAgICAgICAgICAgVmVyc2lvbiAyLjAsIEphbnVhcnkgMjAwNA0KICAgICAgICAgICAgICAgICAgICAgICAgaHR0cDovL3d3dy5hcGFjaGUub3JnL2xpY2Vuc2VzLw0KDQogICBURVJNUyBBTkQgQ09ORElUSU9OUyBGT1IgVVNFLCBSRVBST0RVQ1RJT04sIEFORCBESVNUUklCVVRJT04NCg0KICAgMS4gRGVmaW5pdGlvbnMuDQoNCiAgICAgICJMaWNlbnNlIiBzaGFsbCBtZWFuIHRoZSB0ZXJtcyBhbmQgY29uZGl0aW9ucyBmb3IgdXNlLCByZXByb2R1Y3Rpb24sDQogICAgICBhbmQgZGlzdHJpYnV0aW9uIGFzIGRlZmluZWQgYnkgU2VjdGlvbnMgMSB0aHJvdWdoIDkgb2YgdGhpcyBkb2N1bWVudC4NCg0KICAgICAgIkxpY2Vuc29yIiBzaGFsbCBtZWFuIHRoZSBjb3B5cmlnaHQgb3duZXIgb3Ig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HMwcjAwYWMzI2NwcOASMiJjcTIzczNyM3MxMCGjW/HL8m1R7VQBIkKxQzEwIcXSxjYyBAyB7IJo0cjTUFQf75jb6V/r1WOQgFgxEVj5wBQ5W+jQEH////1QAABH8HIgImACMAAAAHAEIBawFd////1QAABMMHHwImACMAAAAHAHMCFwFZ////1QAABI0HRgImACMAAAAHAJoBBgFd////1QAABNQHUQImACMAAAAHAKABJQFg////1QAABMwHDAImACMAAAAHAGgBBwFc////1QAABH8HiAImACMAAAAHAJ4BkgGo////1QAABMYHnwImACMAAAAHAdQBiQEs//8AYv5EBPgFxQAmACUAAAAHAHcBt//3//8AWAAABPIHIgImACcAAAAHAEIBNwFd//8AWAAABPIHHwImACcAAAAHAHMB4wFZ//8AWAAABPIHRgImACcAAAAHAJoA0gFd//8AWAAABPIHDAImACcAAAAHAGgA0wFc//8AYgAAAkQHIgImACsAAAAHAEL//AFd//8AYgAAA1MHHwImACsAAAAHAHMApwFZ//8AYgAAAx4HRgImACsAAAAHAJr/lwFd//8AYgAAA10HDAImACsAAAAHAGj/mAFc//8AWAAABXoHUQImADAAAAAHAKABTgFg//8AXv/rBTYHNwAmADEAAAAHAEIBjAFy//8AXv/rBTYHNAAmADEAAAAHAHMCOAFu//8AXv/rBTYHWwAmADEAAAAHAJoBJwFy//8AXv/rBTYHZgAmADEAAAAHAKABRgF1//8AXv/rBTYHIQAmADEAAAAHAGgBKAFx//8AZ//rBVcHIgImADcAAAAHAEIBdwFd//8AZ//rBVcHHwImADcAAAAHAHMCIwFZ//8AZ//rBVcHRgImADcAAAAHAJoBEgFd//8AZ//rBVcHDAImADcAAAAHAGgBEwFc//8A7gAABVMHHQImADsAAAAHAHMB6QFX//8AOv/sA/cF4AImAEMAAAAHAEIAswAb//8AOv/sBAsF3QImAEMAAAAHAHMBXwAX//8AOv/sA/cGBAImAEMAAAAGAJpOGwAA//8AOv/sBBwGDwImAEMAAAAGAKBtHgAA//8AOv/sBBQFygImAEMAAAAGAGhPGgAA//8AOv/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wAABEkEjQImAakAAAAHAdP/Uv97//8ACwAABEkEjQImAakAAAAHAdP/Uv97//8AvQAABCUEjQImAbgAAAAGAdMo9wAA////1AAAA+gF3wImAaYAAAAHAEIA2QAa////1AAABDEF3AImAaYAAAAHAHMBhQAW////1AAAA/sGAwImAaYAAAAGAJp0GgAA////1AAABEIGDgImAaYAAAAHAKAAkwAd////1AAABDoFyQImAaYAAAAGAGh1GQAA////1AAAA+gGRQImAaYAAAAHAJ4BAABl////1AAABDQGXQImAaYAAAAHAdQA9//q//8ATf5HBEIEnQImAagAAAAHAHcBU//6//8APgAABB0F3wImAaoAAAAHAEIAqgAa//8APgAABB0F3AImAaoAAAAHAHMBVgAW//8APgAABB0GAwImAaoAAAAGAJpFGgAA//8APgAABB0FyQImAaoAAAAGAGhGGQAA//8APgAAAd8F3wImAa4AAAAGAEKXGgAA//8APgAAAu4F3AImAa4AAAAGAHNCFgAA//8APgAAArkGAwImAa4AAAAHAJr/MgAa//8APgAAAvgFyQImAa4AAAAHAGj/MwAZ//8APgAABL4GDgImAbMAAAAHAKAAsQAd//8ATf/vBG8F7wImAbQAAAAHAEIA3QAq//8ATf/vBG8F7AImAbQAAAAHAHMBiQAm//8ATf/vBG8GEwImAbQAAAAGAJp4KgAA//8ATf/vBG8GHgImAbQAAAAHAKAAlwAt//8ATf/vBG8F2QImAbQAAAAGAGh5KQAA//8AWP/vBLwF4AImAbkAAAAHAEIA9QAb//8AWP/vBLwF3QImAbkAAAAHAHMBoQAX//8AWP/vBLwGBAImAbkAAAAHAJoAkAAb//8AWP/vBLwFygImAbkAAAAHAGgAkQAa//8AtQAABIEF2wImAb0AAAAHAHMBWAAV////1AAABEwFtwImAaYAAAAHAG4AlAAH////1AAABB4GCQImAaYAAAAHAJwAzwBZAAL/1P5QA+gEjQAaAB4AAAETIw4BBwYWMzI2NwcOASMiJjc+ATcnIQMjAQMhAycDHcs3V2IJBhsoGTAXByBMMk9YDwtqZin+J5i8Ap74AXBRAwSN+3M+ZDwl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//AA//6wRSBbACBgAsAAD//wA+AAAFNQWwAAYALQAA//8APgAABTUGxwAmAC0AAAAHAHMBxQEB//8Ao//rBUUHTAImANkAAAAHAJwBPgGc////1QAABH8FsAIGACMAAP//AFgAAATQBbACBgAkAAD//wBXAAAEuQWwAgYArAAA//8AWAAABPIFsAIGACcAAP//AFgAAAV6B0wCJgDXAAAABwCcAY4BnP//AFgAAAazBbACBgAvAAD//wBYAAAFeQWwAgYAKgAA//8AXv/rBTYFxQAGADEAAP//AFgAAAV7BbACBgCxAAD//wBYAAAFGAWwAgYAMgAA//8AYv/rBPgFxQAGACUAAP//AOwAAAULBbACBgA2AAD////8AAAFHQWwAgYAOgAA//8AOv/sA/cETgIGAEMAAP//AEf/7APrBE4CBgBHAAD//wBAAAAERwX1AiYA6wAAAAcAnADIAEX//wBG/+wEHAROAgYAUQAA////4v5gBCYETgIGAFIAAAABAEf/7AP7BE4AGwAAJTI2NzMGBCMiAj8BNgAzMhYHIzYmIyIGDwEGFgHxWqAPrBn+8qbXuyUHJwER4a7BGqwQameNpBoHHFWBeFyazwEy6ir1ASfeqmyG4qQqsdYAAP///7z+SwQqBDoCBgBbAAD////pAAAD8QQ6AgYAWgAA//8AR//sA/IFywImAEcAAAAGAGgtGwAA//8APgAAA5UFyAImAOcAAAAHAHMA5wAC//8AO//sA8kETgIGAFUAAP//AEQAAAIxBhgCBgBLAAD//wA+AAAC9gW1AiYAigAAAAcAaP8xAAX///8d/ksCOQYYAgYATAAA//8AQAAABGEFxwImAOwAAAAHAHMBTQAB////vP5LBCoF9QImAFsAAAAGAJx/RQAA//8A7AAABuwHIgImADkAAAAHAEICAQFd//8AsgAABfoFywImAFkAAAAHAEIBegAG//8A7AAABuwHHwImADkAAAAHAHMCrQFZ//8AsgAABfoFyAImAFkAAAAHAHMCJgAC//8A7AAABuwHDAImADkAAAAHAGgBnQFc//8AsgAABfoFtQImAFkAAAAHAGgBFgAF//8A7gAABVMHIAImADsAAAAHAEIBPQFb////vP5LBCoF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XEFsAImANgAAAAHAZoD/AAA////1f5LBEkEOgImAO0AAAAHAZoDHwAA////1f6xBH8FsAImACMAAAAHAKgErAAA//8AOv6xA/cETgImAEMAAAAHAKgEBQAA////1QAABH8HxgImACMAAAAHAKYE5QFT//8AOv/sA/cGhAImAEMAAAAHAKYELQAR////1QAABg4HqAImACMAAAAHAaMA8AEW//8AOv/sBVYGZwImAEMAAAAGAaM41QAA////1QAABLcHpQImACMAAAAHAaIA+gEl//8AOv/sA/8GZAImAEMAAAAGAaJC5AAA////1QAABZ4H2wImACMAAAAHAaEA9QEN//8AOv/sBOYGmgImAEMAAAAGAaE9zAAA////1QAABLYH5QImACMAAAAHAaAA9gET//8AOv/sA/4GpAImAEMAAAAGAaA+0gAA////1f6xBI0HRgImACMAAAAnAJoBBgFdAAcAqASsAAD//wA6/rED9wYEAiYAQwAAACYAmk4bAAcAqAQFAAAAAP///9UAAASqB90CJgAjAAAABwGfASkBVP//ADr/7AP3BpsCJgBDAAAABgGfcRIAAP///9UAAATOB+ACJgAjAAAABwGkAS8BZ///ADr/7AQWBp4CJgBDAAAABgGkdyUAAP///9UAAASVCEsCJgAjAAAABwGeASkBSf//ADr/7AP3BwkCJgBDAAAABgGecQcAAP///9UAAATMCB8CJgAjAAAABwGdASsBUf//ADr/7AQUBt0CJgBDAAAABgGdcw8AAP///9X+sQSwB0wCJgAjAAAAJwCcAWEBnAAHAKgErAAA//8AOv6xA/gGCgImAEMAAAAnAJwAqQBaAAcAqAQFAAD//wBY/rsE8gWwAiYAJwAAAAcAqAR3AAr//wBH/rED6wROAiYARwAAAAcAqARRAAD//wBYAAAE8gfGAiYAJwAAAAcApgSxAVP//wBH/+wD6waFAiYARwAAAAcApgQLABL//wBYAAAE8gdRAiYAJwAAAAcAoADxAWD//wBH/+wD+gYQAiYARwAAAAYAoEsfAAD//wBYAAAF2geoAiYAJwAAAAcBowC8ARb//wBH/+wFNAZoAiYARwAAAAYBoxbWAAD//wBYAAAE8gelAiYAJwAAAAcBog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UAAAABwCoBLEAAP//AEb+qAUJBLACJgCVAAAABwCoBEj/9///AGf+qgVXBbACJgA3AAAABwCoBLL/+f//AFr+sQQ7BDoCJgBXAAAABwCoBAsAAP//AGf/6wVXB8YCJgA3AAAABwCmBPEBU///AFr/7AQ7BnACJgBXAAAABwCmBED//f//AGf/6walBx8CJgCWAAAABwBzAiIBWf//AFr/7AVXBcgCJgCXAAAABwBzAXIAAv//AGf/6walByICJgCWAAAABwBCAXYBXf//AFr/7AVXBcsCJgCXAAAABwBCAMYABv//AGf/6walB8YCJgCWAAAABwCmBPABU///AFr/7AVXBnACJgCXAAAABwCmBED//f//AGf/6walB1ECJgCWAAAABwCgATABYP//AFr/7AVXBfoCJgCXAAAABwCgAIAACf//AGf+qQalBg0CJgCWAAAABwCoBLH/+P//AFr+sQVXBJECJgCXAAAABwCoBAsAAP//AO7+uwVTBbACJgA7AAAABwCoBH0ACv///7z+FAQqBDoCJgBbAAAABwCoBKj/Y///AO4AAAVTB8QCJgA7AAAABwCmBLcBUf///7z+SwQqBnACJgBbAAAABwCmBAP//f//AO4AAAVTB08CJgA7AAAABwCgAPcBXv///7z+SwQqBfoCJgBbAAAABgCgQwkAAAACAET/6wUmBhgAGgAoAAABIwMjNycOASMiAj8BGgEzMhYXEyM3MzczBzMBBhYzMjY3Ey4BIyIGBwUItPedCQM8kFiwri8EOO7BWIcrN+oe6SS1JLX8AyRhiUx1M2Uba1R8nyYE0vsuaAI/QAE06hUBHAEUSEUBEZWxsfyis9FTTwH6RE/ZvQD//wAT/u4FJgYYACYARgAAACcB0wH8AkYABgBBfYMAAP//AD7+mQU1BbAAJgAtAAAABwGcA/QAAP//AED+mQRhBDoCJgDsAAAABwGcAxMAAP//AFj+mQV5BbACJgAqAAAABwGcBBwAAP//AED+mQRGBDoCJgDvAAAABwGcAzQAAP//AOz+mQULBbACJgA2AAAABwGcAggAAP//AJD+mQP3BDoCJgDxAAAABwGcAZgAAP////z+mQUdBbACJgA6AAAABwGcA5YAAP///+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8HRAImARQAAAAHAKcEOwFW////4wAABBgGMgImARUAAAAHAKcD1wBE//8AU/5LCIQETgAmAFEAAAAHAFsEiAAA//8AdP5LCYsFxQAmADEAAAAHAFsFjwAA//8ASv46BHsFxQImANYAAAAHAZwBkv+g//8ATf47A8QETQImAOoAAAAHAZwBOf+h//8AdP4+BNgFxQImACUAAAAHAZwB0/+k//8AUf4+A/cETgImAEUAAAAHAZwBS/+k//8AEwAABO8FsAIGADsAAP//ACD+XwP1BDoCBgC4AAD//wCtAAABoAWwAgYAKwAA//8AGAAAB4kHXAImANUAAAAHAJwCHAGs//8AFwAABl8GBQImAOkAAAAHAJwBpQBV//8ArQAAAaAFsAIGACsAAP//ABoAAAUoB1wCJgAjAAAABwCcAOoBrP//AF7/7AQBBhoCJgBDAAAABgCcb2oAAP//ABoAAAUoBw0CJgAjAAAABwBoAJMBXf//AF7/7AQBBcsCJgBDAAAABgBoGBsAAP////YAAAdXBbACBgB/AAD//wA0/+sGhAROAgYAhAAA//8AnwAABHUHXAImACcAAAAHAJwAsgGs//8AWf/sA/gGGwImAEcAAAAGAJxxawAA//8AU//qBRsG2gImAUEAAAAHAGgAcwEq//8AWf/sA/gEUAIGAJkAAP//AFn/7AP4BcwCJgCZAAAABgBoGhwAAP//ABgAAAeJBw0CJgDVAAAABwBoAcUBXf//ABcAAAZfBbYCJgDpAAAABwBoAU4ABv//AEr/6wR7ByICJgDWAAAABwBoAFgBcv//AE3/7APEBcoCJgDqAAAABgBoABoAAP//AJoAAAULBvYCJgDXAAAABwBuAOUBRv//AIYAAAQSBaACJgDrAAAABgBuXfAAAP//AJoAAAULBw0CJgDXAAAABwBoAMYBXf//AIYAAAQSBbYCJgDrAAAABgBoPgYAAP//AHT/6wUbByICJgAxAAAABwBoALoBcv//AFP/7AQ0BcsCJgBRAAAABgBoNRsAAP//AGr/6wURBcUCBgESAAD//wBS/+wEMwROAgYBEwAA//8Aav/rBREHCAImARIAAAAHAGgAxgFY//8AUv/sBDMF5wImARMAA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/uRBbD7kgABADAAAAT0BbAADwAAAREjESEDCgErATUzMhIbAQT0uv3xEQ677jMojHEMFgWw+lAFGv3r/l3+npUBEQFfAqsAAQBR/+sEyAWwABQAAAEXATMBDgEjIiYnNx4BMzI2PwEBMwJOSwFY1/38PIiaGUEKBgpAEktCKCr+DtAC+8MDePtAhIEGA5ACAkpSVgQ+AAADAFP/xAXjBewAFQAeACcAAAEzIAAREAAhIxUjNSMgABEQACEzNTMDIgYVFBY7AREzETMyNjU0JiMDeBsBAgFO/rL+/hu5Hf79/rQBTAEDHbnWxtHRxh25HcTS0sQFHv69/vv++f67xsYBQwEHAQUBRc7+nenMzucDavyW6c7L6AAAAAABALT+oQWSBbAACwAAEzMRIREzETMDIxEhtLkC17mVEqX72QWw+uUFG/rp/ggBXwABAJcAAATEBbAAEwAAAREjEQ4BIyImNREzERQWMzI2NxEExLlhsHv187qMomm8ZwWw+lACYR0azvIBxv46q38cHAK4AAEAtAAABtIFsAALAAABESERMxEhETMRIREBbgH6uQH4ufniBbD65QUb+uUFG/pQBbAAAAABALT+oQdrBbAADwAAAREhETMRIREzETMDIxEhEQFuAfq5Afi5mRKm+gEFsPrlBRv65QUb+uX+DAFfBbAAAAAAAgARAAAFuAWwAAwAFQAAEyERITIWFRQGIyERIQERITI2NTQmIxECVQFo7vz97f3f/mQCVQFonJSUnAWw/ajhx8joBRv9qP3Sn355mAAAAAADALUAAAY1BbAACgATABcAAAEhMhYVFAYjIREzGQEhMjY1NCYjASMRMwFuAWju/P3t/d+5AWiclJScA1+5uQNY4cfI6AWw/RP90p9+eZj9PQWwAAACAKYAAASxBbAACgATAAABITIWFRQGIyERMxkBITI2NTQmIwFfAWju/P3t/d+5AWiclJScA1jhx8joBbD9E/3Sn355mAAAAAABALH/7AT2BcYAHwAAEzQAMzIAGQEQACMiADUzFBYzMhI9ASE1ITU0AiMiBhWxAST2+wEw/tD7+/7hubWsq8f9uwJFx6ustQPf1QES/qb+7f7//uz+qAEB46CvAQjNOJU2zgE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jESM1MxEhNSEVIREzA5zduebm/jUET/413QM2/MoDNpUBT5aW/rEAAf/j/+wCXwVBAB8AAAERMxUjFTMVIxEUFjMyNjcXDgEjIiY1ESM1MzUjNTMRAXLQ0O3tNi8YMRUZGl0ucYDV1ZubBUH++Y2+lf69UD8HBoMRFY2eAUOVvo0BB///ACcAAAUiByICJgAjAAAABwBCARQBXf//ACcAAAUiBx8CJgAjAAAABwBzAc4BWf//ACcAAAUiB0YCJgAjAAAABwCaANABXf//ACcAAAUiB1ECJgAjAAAABwCgAMoBYP//ACcAAAUiBwwCJgAjAAAABwBoAKoBXP//ACcAAAUiB4gCJgAjAAAABwCeAVEBqP//ACcAAAUiB58CJgAjAAAABwHUAWEBLP//AIP+RATJBcUCJgAlAAAABwB3Adv/9///ALYAAAR1ByICJgAnAAAABwBCAOABXf//ALYAAAR1Bx8CJgAnAAAABwBzAZoBWf//ALYAAAR1B0YCJgAnAAAABwCaAJwBXf//ALYAAAR1BwwCJgAnAAAABwBoAHYBXP///9wAAAF8ByICJgArAAAABwBC/40BXf//AMMAAAJkBx8CJgArAAAABwBzAEYBWf////IAAAJPB0YCJgArAAAABwCa/0kBXf///8wAAAJ1BwwCJgArAAAABwBo/yMBXP//ALYAAAT+B1ECJgAwAAAABwCgAPsBYP//AIL/6wUNBzcCJgAxAAAABwBCATQBcv//AIL/6wUNBzQCJgAxAAAABwBzAe4Bbv//AIL/6wUNB1sCJgAxAAAABwCaAPABcv//AIL/6wUNB2YCJgAxAAAABwCgAOoBdf//AIL/6wUNByECJgAxAAAABwBoAMoBcf//AJb/6wTXByICJgA3AAAABwBCASYBXf//AJb/6wTXBx8CJgA3AAAABwBzAeABWf//AJb/6wTXB0YCJgA3AAAABwCaAOIBXf//AJb/6wTXBwwCJgA3AAAABwBoALwBXP//AB4AAATTBx0CJgA7AAAABwBzAaABV///AHL/7APsBeACJgBDAAAABwBCAJYAG///AHL/7APsBd0CJgBDAAAABwBzAVAAF///AHL/7APsBgQCJgBDAAAABgC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AAD//wBnBCMA/QYYAgYACQAA//8AaQQUAh8GGAIGAAQAAP//AKkAAAN1BbAAJgQbAAAABwQbAg8AAP//AEIAAAQYBi0AJgBIAAAABwBOAr4AAP///7T+SwJABd0CJgCYAAAABwCb/0n/9P//ADAD5wFHBhgCBgFmAAD//wC2AAAGTQcfAiYALwAAAAcAcwKpAVn//wCQAAAGcgXdAiYATwAAAAcAcwK7ABf//wAn/ocFIgWwAiYAIwAAAAcAogFPAAD//wBy/ocD7AROAiYAQwAAAAcAogCeAAD///8+/+sFDQaiAiYAMQAAAAcB1f7PAMz//wBCAAAGiwYtACYASAAAAAcBkgK+AAD//wBCAAAG1gYtACYASAAAACcASAK+AAAABwBOBXwAAP//ALYAAAR1ByICJgAnAAAABwBCAOABXf//ALYAAAT+ByICJgDXAAAABwBCAUoBXf//AGL/7APpBeECJgBHAAAABwBCAJsAHP//AJwAAAQBBcsCJgDrAAAABwBCALsABv//AF0AAAUYBbACBgC0AAD//wBf/ikFQwQ6AgYAyAAA//8AFwAABNoHRwImARQAAAAHAKcENwFZ////+QAABAsGHwImARUAAAAHAKcD0gAx//8AYP5LCGwETgAmAFEAAAAHAFsEiAAA//8Agv5LCXQFxQAmADEAAAAHAFsFkAAA//8AUf5RBGcFxQImANYAAAAHAZwBnP+4//8AWP5SA6wETAImAOoAAAAHAZwBQ/+5//8Ag/5RBMkFxQImACUAAAAHAZwB7v+4//8AYf5RA/IETgImAEUAAAAHAZwBWP+4//8AHgAABNMFsAIGADsAAP//AC7+YAPfBDoCBgC4AAD//wDDAAABfAWwAgYAKwAA//8AGwAABygHTAImANUAAAAHAJwB+AGc//8AFQAABgQF9QImAOkAAAAHAJwBjQBF//8AwwAAAXwFsAIGACsAAP//ACcAAAUiB0wCJgAjAAAABwCcAPsBnP//AHL/7APsBgoCJgBDAAAABgCcfVoAAP//ACcAAAUiBwwCJgAjAAAABwBoAKoBXP//AHL/7APsBcoCJgBDAAAABgBoLBoAAP////IAAAdXBbACBgB/AAD//wA9/+sGfAROAgYAhAAA//8AtgAABHUHTAImACcAAAAHAJwAxwGc//8AYv/sA+kGCwImAEcAAAAHAJwAggBb//8AX//rBRAG3gImAUEAAAAHAGgAfQEu//8AYv/sA+kETwIGAJkAAP//AGL/7APpBcsCJgCZAAAABgBoMRsAAP//ABsAAAcoBwwCJgDVAAAABwBoAacBXP//ABUAAAYEBbUCJgDpAAAABwBoATwABf//AFH/6wRnByECJgDWAAAABwBoAGEBcf//AFj/7QOsBckCJgDqAAAABgBoCBkAAP//ALYAAAT+BvoCJgDXAAAABwBuAQQBSv//AJwAAAQBBaQCJgDrAAAABgBudfQAAP//ALYAAAT+BwwCJgDXAAAABwBoAOABXP//AJwAAAQBBbUCJgDrAAAABgBoUQUAAP//AIL/6wUNByECJgAxAAAABwBoAMoBcf//AGD/7AQnBcoCJgBRAAAABgBoSRoAAP//AHP/6wT+BcUCBgESAAD//wBg/+wEJwROAgYBEwAA//8Ac//rBP4HBwImARIAAAAHAGgA0gFX//8AYP/sBCcF5gImARMAAAAGAGgyNgAA//8Asf/sBPYHIgImAOIAAAAHAGgAtwFy//8AZP/rA+AFygImAPoAAAAGAGgmGgAA//8AUf/rBMgG+gImANkAAAAHAG4ArQFK//8AG/5LA+QFpAImAFsAAAAGAG4p9AAA//8AUf/rBMgHDAImANkAAAAHAGgAiQFc//8AG/5LA+QFtQImAFsAAAAGAGgFBQAA//8AUf/rBMgHSwImANkAAAAHAKEBNgFd//8AG/5LA/oF9AImAFsAAAAHAKEAsgAG//8AlwAABMQHDAImANwAAAAHAGgAswFc//8AZwAAA70FtQImAPQAAAAGAGgOBQAA//8AtQAABjUHDAAmAOEPAAAnACsEuQAAAAcAaAF9AVz//wCdAAAFfwW1ACYA+QAAACcAigQqAAAABwBoARcABf//AEH+SwUXBbACJgA6AAAABwGaA7AAAP//AC7+SwQfBDoCJgBaAAAABwGaArgAAP//AGT/7APwBhgCBgBGAAD//wAw/ksFrAWwAiYA2AAAAAcBmgRFAAD//wAo/ksEuwQ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GI1JsdAAAAAAAAAAAAAAAAEJsZCBVbnRGI1JsdAAAAAAAAAAAAAAAAFJzbHRVbnRGI1B4bEBSAAAAAAAAAAAACnZlY3RvckRhdGFib29sAQAAAABQZ1BzZW51bQAAAABQZ1BzAAAAAFBnUEMAAAAATGVmdFVudEYjUmx0AAAAAAAAAAAAAAAAVG9wIFVudEYjUmx0AAAAAAAAAAAAAAAAU2NsIFVudEYjUHJjQFkAAAAAAAA4QklNA+0AAAAAABAASAAAAAEAAgBIAAAAAQACOEJJTQQmAAAAAAAOAAAAAAAAAAAAAD+AAAA4QklNBA0AAAAAAAQAAAB4OEJJTQQZAAAAAAAEAAAAHjhCSU0D8wAAAAAACQAAAAAAAAAAAQA4QklNJxAAAAAAAAoAAQAAAAAAAAACOEJJTQP1AAAAAABIAC9mZgABAGxmZgAGAAAAAAABAC9mZgABAKGZmgAGAAAAAAABADIAAAABAFoAAAAGAAAAAAABADUAAAABAC0AAAAGAAAAAAABOEJJTQP4AAAAAABwAAD/////////////////////////////A+gAAAAA/////////////////////////////wPoAAAAAP////////////////////////////8D6AAAAAD/////////////////////////////A+gAADhCSU0EAAAAAAAAAgABOEJJTQQCAAAAAAAEAAAAADhCSU0EMAAAAAAAAgEBOEJJTQQtAAAAAAAGAAEAAAACOEJJTQQIAAAAAAAQAAAAAQAAAkAAAAJAAAAAADhCSU0EHgAAAAAABAAAAAA4QklNBBoAAAAAA0sAAAAGAAAAAAAAAAAAAAE2AAACtwAAAAsAQgBlAHoAIABuAGEAegB3AHkALQAxAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAK3AAABNgAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAABAAAAABAAAAAAAAbnVsbAAAAAIAAAAGYm91bmRzT2JqYwAAAAEAAAAAAABSY3QxAAAABAAAAABUb3AgbG9uZwAAAAAAAAAATGVmdGxvbmcAAAAAAAAAAEJ0b21sb25nAAABNgAAAABSZ2h0bG9uZwA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AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPD94cGFja2V0IGVuZD0idyI/Pv/iDFhJQ0NfUFJPRklMRQABAQAADEhMaW5vAhAAAG1udHJSR0IgWFlaIAfOAAIACQAGADEAAGFjc3BNU0ZUAAAAAElFQyBzUkdCAAAAAAAAAAAAAAABAAD21gABAAAAANMtSFAgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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VrhlUMQCA/EtyBJ+z9GE2pV7mFeJZrj91yUhCrfaDCgqB0PfAqlCn72UTO3qjjzJrUgMePbuciQxHNq8jt3uSbmYQychRaM3xjoBtTfv/lYYhlNSmjsfUYCat2JCasG5FeO4oBk+it2KxDn8aMhPwCQNQGu/KoC1riyFplai7+sSm2P78bSg8iDsDVqjpTBRZxvoqrzCMGo0ZBoRUUT4eXvg2tMTKlBfWHIR8CA9eRrU7bgDqMQDbA23HwEu+9UcjqFHWoG3XCQjdDKl0ySESemwIIVwzArT4gNulf9jgARu1YgCesBJJQ8lFaA16EkdMK7rrd9a9N+UY5LUL9kclr1O5pkiB3qOJDRtraFlCiR1ZjzrTnUjYA0Aof9jgqPej1ISZvMPq/vkHpAjkFK/F8VNiP+CyYEK5o9SZqLtZ3qeabGIioPTpTpkJBI4lCdL43C/GFkK/FzDGg79skFNqEolChWYNIKVdeVCe9BTbHZiqypKQtXoApKkh6Up0ag6fPAeagd7cf1urFKenQhweXTx33/AONsI5p3f//Z"};
  78633. /*! DataTables 1.10.8
  78634. * ©2008-2014 SpryMedia Ltd - datatables.net/license
  78635. */
  78636. /**
  78637. * @summary DataTables
  78638. * @description Paginate, search and order HTML tables
  78639. * @version 1.10.8
  78640. * @file jquery.dataTables.js
  78641. * @author SpryMedia Ltd (www.sprymedia.co.uk)
  78642. * @contact www.sprymedia.co.uk/contact
  78643. * @copyright Copyright 2008-2014 SpryMedia Ltd.
  78644. *
  78645. * This source file is free software, available under the following license:
  78646. * MIT license - http://datatables.net/license
  78647. *
  78648. * This source file is distributed in the hope that it will be useful, but
  78649. * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  78650. * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
  78651. *
  78652. * For details please refer to: http://www.datatables.net
  78653. */
  78654. /*jslint evil: true, undef: true, browser: true */
  78655. /*globals $,require,jQuery,define,_selector_run,_selector_opts,_selector_first,_selector_row_indexes,_ext,_Api,_api_register,_api_registerPlural,_re_new_lines,_re_html,_re_formatted_numeric,_re_escape_regex,_empty,_intVal,_numToDecimal,_isNumber,_isHtml,_htmlNumeric,_pluck,_pluck_order,_range,_stripHtml,_unique,_fnBuildAjax,_fnAjaxUpdate,_fnAjaxParameters,_fnAjaxUpdateDraw,_fnAjaxDataSrc,_fnAddColumn,_fnColumnOptions,_fnAdjustColumnSizing,_fnVisibleToColumnIndex,_fnColumnIndexToVisible,_fnVisbleColumns,_fnGetColumns,_fnColumnTypes,_fnApplyColumnDefs,_fnHungarianMap,_fnCamelToHungarian,_fnLanguageCompat,_fnBrowserDetect,_fnAddData,_fnAddTr,_fnNodeToDataIndex,_fnNodeToColumnIndex,_fnGetCellData,_fnSetCellData,_fnSplitObjNotation,_fnGetObjectDataFn,_fnSetObjectDataFn,_fnGetDataMaster,_fnClearTable,_fnDeleteIndex,_fnInvalidate,_fnGetRowElements,_fnCreateTr,_fnBuildHead,_fnDrawHead,_fnDraw,_fnReDraw,_fnAddOptionsHtml,_fnDetectHeader,_fnGetUniqueThs,_fnFeatureHtmlFilter,_fnFilterComplete,_fnFilterCustom,_fnFilterColumn,_fnFilter,_fnFilterCreateSearch,_fnEscapeRegex,_fnFilterData,_fnFeatureHtmlInfo,_fnUpdateInfo,_fnInfoMacros,_fnInitialise,_fnInitComplete,_fnLengthChange,_fnFeatureHtmlLength,_fnFeatureHtmlPaginate,_fnPageChange,_fnFeatureHtmlProcessing,_fnProcessingDisplay,_fnFeatureHtmlTable,_fnScrollDraw,_fnApplyToChildren,_fnCalculateColumnWidths,_fnThrottle,_fnConvertToWidth,_fnGetWidestNode,_fnGetMaxLenString,_fnStringToCss,_fnScrollBarWidth,_fnSortFlatten,_fnSort,_fnSortAria,_fnSortListener,_fnSortAttachListener,_fnSortingClasses,_fnSortData,_fnSaveState,_fnLoadState,_fnSettingsFromNode,_fnLog,_fnMap,_fnBindAction,_fnCallbackReg,_fnCallbackFire,_fnLengthOverflow,_fnRenderer,_fnDataSource,_fnRowAttributes*/
  78656. (/** @lends <global> */function( window, document, undefined ) {
  78657. (function( factory ) {
  78658. "use strict";
  78659. if ( typeof define === 'function' && define.amd ) {
  78660. // Define as an AMD module if possible
  78661. define( 'datatables', ['jquery'], factory );
  78662. }
  78663. else if ( typeof exports === 'object' ) {
  78664. // Node/CommonJS
  78665. module.exports = factory( require( 'jquery' ) );
  78666. }
  78667. else if ( jQuery && !jQuery.fn.dataTable ) {
  78668. // Define using browser globals otherwise
  78669. // Prevent multiple instantiations if the script is loaded twice
  78670. factory( jQuery );
  78671. }
  78672. }
  78673. (/** @lends <global> */function( $ ) {
  78674. "use strict";
  78675. /**
  78676. * DataTables is a plug-in for the jQuery Javascript library. It is a highly
  78677. * flexible tool, based upon the foundations of progressive enhancement,
  78678. * which will add advanced interaction controls to any HTML table. For a
  78679. * full list of features please refer to
  78680. * [DataTables.net](href="http://datatables.net).
  78681. *
  78682. * Note that the `DataTable` object is not a global variable but is aliased
  78683. * to `jQuery.fn.DataTable` and `jQuery.fn.dataTable` through which it may
  78684. * be accessed.
  78685. *
  78686. * @class
  78687. * @param {object} [init={}] Configuration object for DataTables. Options
  78688. * are defined by {@link DataTable.defaults}
  78689. * @requires jQuery 1.7+
  78690. *
  78691. * @example
  78692. * // Basic initialisation
  78693. * $(document).ready( function {
  78694. * $('#example').dataTable();
  78695. * } );
  78696. *
  78697. * @example
  78698. * // Initialisation with configuration options - in this case, disable
  78699. * // pagination and sorting.
  78700. * $(document).ready( function {
  78701. * $('#example').dataTable( {
  78702. * "paginate": false,
  78703. * "sort": false
  78704. * } );
  78705. * } );
  78706. */
  78707. var DataTable;
  78708. /*
  78709. * It is useful to have variables which are scoped locally so only the
  78710. * DataTables functions can access them and they don't leak into global space.
  78711. * At the same time these functions are often useful over multiple files in the
  78712. * core and API, so we list, or at least document, all variables which are used
  78713. * by DataTables as private variables here. This also ensures that there is no
  78714. * clashing of variable names and that they can easily referenced for reuse.
  78715. */
  78716. // Defined else where
  78717. // _selector_run
  78718. // _selector_opts
  78719. // _selector_first
  78720. // _selector_row_indexes
  78721. var _ext; // DataTable.ext
  78722. var _Api; // DataTable.Api
  78723. var _api_register; // DataTable.Api.register
  78724. var _api_registerPlural; // DataTable.Api.registerPlural
  78725. var _re_dic = {};
  78726. var _re_new_lines = /[\r\n]/g;
  78727. var _re_html = /<.*?>/g;
  78728. var _re_date_start = /^[\w\+\-]/;
  78729. var _re_date_end = /[\w\+\-]$/;
  78730. // Escape regular expression special characters
  78731. var _re_escape_regex = new RegExp( '(\\' + [ '/', '.', '*', '+', '?', '|', '(', ')', '[', ']', '{', '}', '\\', '$', '^', '-' ].join('|\\') + ')', 'g' );
  78732. // http://en.wikipedia.org/wiki/Foreign_exchange_market
  78733. // - \u20BD - Russian ruble.
  78734. // - \u20a9 - South Korean Won
  78735. // - \u20BA - Turkish Lira
  78736. // - \u20B9 - Indian Rupee
  78737. // - R - Brazil (R$) and South Africa
  78738. // - fr - Swiss Franc
  78739. // - kr - Swedish krona, Norwegian krone and Danish krone
  78740. // - \u2009 is thin space and \u202F is narrow no-break space, both used in many
  78741. // standards as thousands separators.
  78742. var _re_formatted_numeric = /[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfk]/gi;
  78743. var _empty = function ( d ) {
  78744. return !d || d === true || d === '-' ? true : false;
  78745. };
  78746. var _intVal = function ( s ) {
  78747. var integer = parseInt( s, 10 );
  78748. return !isNaN(integer) && isFinite(s) ? integer : null;
  78749. };
  78750. // Convert from a formatted number with characters other than `.` as the
  78751. // decimal place, to a Javascript number
  78752. var _numToDecimal = function ( num, decimalPoint ) {
  78753. // Cache created regular expressions for speed as this function is called often
  78754. if ( ! _re_dic[ decimalPoint ] ) {
  78755. _re_dic[ decimalPoint ] = new RegExp( _fnEscapeRegex( decimalPoint ), 'g' );
  78756. }
  78757. return typeof num === 'string' && decimalPoint !== '.' ?
  78758. num.replace( /\./g, '' ).replace( _re_dic[ decimalPoint ], '.' ) :
  78759. num;
  78760. };
  78761. var _isNumber = function ( d, decimalPoint, formatted ) {
  78762. var strType = typeof d === 'string';
  78763. // If empty return immediately so there must be a number if it is a
  78764. // formatted string (this stops the string "k", or "kr", etc being detected
  78765. // as a formatted number for currency
  78766. if ( _empty( d ) ) {
  78767. return true;
  78768. }
  78769. if ( decimalPoint && strType ) {
  78770. d = _numToDecimal( d, decimalPoint );
  78771. }
  78772. if ( formatted && strType ) {
  78773. d = d.replace( _re_formatted_numeric, '' );
  78774. }
  78775. return !isNaN( parseFloat(d) ) && isFinite( d );
  78776. };
  78777. // A string without HTML in it can be considered to be HTML still
  78778. var _isHtml = function ( d ) {
  78779. return _empty( d ) || typeof d === 'string';
  78780. };
  78781. var _htmlNumeric = function ( d, decimalPoint, formatted ) {
  78782. if ( _empty( d ) ) {
  78783. return true;
  78784. }
  78785. var html = _isHtml( d );
  78786. return ! html ?
  78787. null :
  78788. _isNumber( _stripHtml( d ), decimalPoint, formatted ) ?
  78789. true :
  78790. null;
  78791. };
  78792. var _pluck = function ( a, prop, prop2 ) {
  78793. var out = [];
  78794. var i=0, ien=a.length;
  78795. // Could have the test in the loop for slightly smaller code, but speed
  78796. // is essential here
  78797. if ( prop2 !== undefined ) {
  78798. for ( ; i<ien ; i++ ) {
  78799. if ( a[i] && a[i][ prop ] ) {
  78800. out.push( a[i][ prop ][ prop2 ] );
  78801. }
  78802. }
  78803. }
  78804. else {
  78805. for ( ; i<ien ; i++ ) {
  78806. if ( a[i] ) {
  78807. out.push( a[i][ prop ] );
  78808. }
  78809. }
  78810. }
  78811. return out;
  78812. };
  78813. // Basically the same as _pluck, but rather than looping over `a` we use `order`
  78814. // as the indexes to pick from `a`
  78815. var _pluck_order = function ( a, order, prop, prop2 )
  78816. {
  78817. var out = [];
  78818. var i=0, ien=order.length;
  78819. // Could have the test in the loop for slightly smaller code, but speed
  78820. // is essential here
  78821. if ( prop2 !== undefined ) {
  78822. for ( ; i<ien ; i++ ) {
  78823. if ( a[ order[i] ][ prop ] ) {
  78824. out.push( a[ order[i] ][ prop ][ prop2 ] );
  78825. }
  78826. }
  78827. }
  78828. else {
  78829. for ( ; i<ien ; i++ ) {
  78830. out.push( a[ order[i] ][ prop ] );
  78831. }
  78832. }
  78833. return out;
  78834. };
  78835. var _range = function ( len, start )
  78836. {
  78837. var out = [];
  78838. var end;
  78839. if ( start === undefined ) {
  78840. start = 0;
  78841. end = len;
  78842. }
  78843. else {
  78844. end = start;
  78845. start = len;
  78846. }
  78847. for ( var i=start ; i<end ; i++ ) {
  78848. out.push( i );
  78849. }
  78850. return out;
  78851. };
  78852. var _removeEmpty = function ( a )
  78853. {
  78854. var out = [];
  78855. for ( var i=0, ien=a.length ; i<ien ; i++ ) {
  78856. if ( a[i] ) { // careful - will remove all falsy values!
  78857. out.push( a[i] );
  78858. }
  78859. }
  78860. return out;
  78861. };
  78862. var _stripHtml = function ( d ) {
  78863. return d.replace( _re_html, '' );
  78864. };
  78865. /**
  78866. * Find the unique elements in a source array.
  78867. *
  78868. * @param {array} src Source array
  78869. * @return {array} Array of unique items
  78870. * @ignore
  78871. */
  78872. var _unique = function ( src )
  78873. {
  78874. // A faster unique method is to use object keys to identify used values,
  78875. // but this doesn't work with arrays or objects, which we must also
  78876. // consider. See jsperf.com/compare-array-unique-versions/4 for more
  78877. // information.
  78878. var
  78879. out = [],
  78880. val,
  78881. i, ien=src.length,
  78882. j, k=0;
  78883. again: for ( i=0 ; i<ien ; i++ ) {
  78884. val = src[i];
  78885. for ( j=0 ; j<k ; j++ ) {
  78886. if ( out[j] === val ) {
  78887. continue again;
  78888. }
  78889. }
  78890. out.push( val );
  78891. k++;
  78892. }
  78893. return out;
  78894. };
  78895. /**
  78896. * Create a mapping object that allows camel case parameters to be looked up
  78897. * for their Hungarian counterparts. The mapping is stored in a private
  78898. * parameter called `_hungarianMap` which can be accessed on the source object.
  78899. * @param {object} o
  78900. * @memberof DataTable#oApi
  78901. */
  78902. function _fnHungarianMap ( o )
  78903. {
  78904. var
  78905. hungarian = 'a aa ai ao as b fn i m o s ',
  78906. match,
  78907. newKey,
  78908. map = {};
  78909. $.each( o, function (key, val) {
  78910. match = key.match(/^([^A-Z]+?)([A-Z])/);
  78911. if ( match && hungarian.indexOf(match[1]+' ') !== -1 )
  78912. {
  78913. newKey = key.replace( match[0], match[2].toLowerCase() );
  78914. map[ newKey ] = key;
  78915. if ( match[1] === 'o' )
  78916. {
  78917. _fnHungarianMap( o[key] );
  78918. }
  78919. }
  78920. } );
  78921. o._hungarianMap = map;
  78922. }
  78923. /**
  78924. * Convert from camel case parameters to Hungarian, based on a Hungarian map
  78925. * created by _fnHungarianMap.
  78926. * @param {object} src The model object which holds all parameters that can be
  78927. * mapped.
  78928. * @param {object} user The object to convert from camel case to Hungarian.
  78929. * @param {boolean} force When set to `true`, properties which already have a
  78930. * Hungarian value in the `user` object will be overwritten. Otherwise they
  78931. * won't be.
  78932. * @memberof DataTable#oApi
  78933. */
  78934. function _fnCamelToHungarian ( src, user, force )
  78935. {
  78936. if ( ! src._hungarianMap ) {
  78937. _fnHungarianMap( src );
  78938. }
  78939. var hungarianKey;
  78940. $.each( user, function (key, val) {
  78941. hungarianKey = src._hungarianMap[ key ];
  78942. if ( hungarianKey !== undefined && (force || user[hungarianKey] === undefined) )
  78943. {
  78944. // For objects, we need to buzz down into the object to copy parameters
  78945. if ( hungarianKey.charAt(0) === 'o' )
  78946. {
  78947. // Copy the camelCase options over to the hungarian
  78948. if ( ! user[ hungarianKey ] ) {
  78949. user[ hungarianKey ] = {};
  78950. }
  78951. $.extend( true, user[hungarianKey], user[key] );
  78952. _fnCamelToHungarian( src[hungarianKey], user[hungarianKey], force );
  78953. }
  78954. else {
  78955. user[hungarianKey] = user[ key ];
  78956. }
  78957. }
  78958. } );
  78959. }
  78960. /**
  78961. * Language compatibility - when certain options are given, and others aren't, we
  78962. * need to duplicate the values over, in order to provide backwards compatibility
  78963. * with older language files.
  78964. * @param {object} oSettings dataTables settings object
  78965. * @memberof DataTable#oApi
  78966. */
  78967. function _fnLanguageCompat( lang )
  78968. {
  78969. var defaults = DataTable.defaults.oLanguage;
  78970. var zeroRecords = lang.sZeroRecords;
  78971. /* Backwards compatibility - if there is no sEmptyTable given, then use the same as
  78972. * sZeroRecords - assuming that is given.
  78973. */
  78974. if ( ! lang.sEmptyTable && zeroRecords &&
  78975. defaults.sEmptyTable === "No data available in table" )
  78976. {
  78977. _fnMap( lang, lang, 'sZeroRecords', 'sEmptyTable' );
  78978. }
  78979. /* Likewise with loading records */
  78980. if ( ! lang.sLoadingRecords && zeroRecords &&
  78981. defaults.sLoadingRecords === "Loading..." )
  78982. {
  78983. _fnMap( lang, lang, 'sZeroRecords', 'sLoadingRecords' );
  78984. }
  78985. // Old parameter name of the thousands separator mapped onto the new
  78986. if ( lang.sInfoThousands ) {
  78987. lang.sThousands = lang.sInfoThousands;
  78988. }
  78989. var decimal = lang.sDecimal;
  78990. if ( decimal ) {
  78991. _addNumericSort( decimal );
  78992. }
  78993. }
  78994. /**
  78995. * Map one parameter onto another
  78996. * @param {object} o Object to map
  78997. * @param {*} knew The new parameter name
  78998. * @param {*} old The old parameter name
  78999. */
  79000. var _fnCompatMap = function ( o, knew, old ) {
  79001. if ( o[ knew ] !== undefined ) {
  79002. o[ old ] = o[ knew ];
  79003. }
  79004. };
  79005. /**
  79006. * Provide backwards compatibility for the main DT options. Note that the new
  79007. * options are mapped onto the old parameters, so this is an external interface
  79008. * change only.
  79009. * @param {object} init Object to map
  79010. */
  79011. function _fnCompatOpts ( init )
  79012. {
  79013. _fnCompatMap( init, 'ordering', 'bSort' );
  79014. _fnCompatMap( init, 'orderMulti', 'bSortMulti' );
  79015. _fnCompatMap( init, 'orderClasses', 'bSortClasses' );
  79016. _fnCompatMap( init, 'orderCellsTop', 'bSortCellsTop' );
  79017. _fnCompatMap( init, 'order', 'aaSorting' );
  79018. _fnCompatMap( init, 'orderFixed', 'aaSortingFixed' );
  79019. _fnCompatMap( init, 'paging', 'bPaginate' );
  79020. _fnCompatMap( init, 'pagingType', 'sPaginationType' );
  79021. _fnCompatMap( init, 'pageLength', 'iDisplayLength' );
  79022. _fnCompatMap( init, 'searching', 'bFilter' );
  79023. // Boolean initialisation of x-scrolling
  79024. if ( typeof init.sScrollX === 'boolean' ) {
  79025. init.sScrollX = init.sScrollX ? '100%' : '';
  79026. }
  79027. // Column search objects are in an array, so it needs to be converted
  79028. // element by element
  79029. var searchCols = init.aoSearchCols;
  79030. if ( searchCols ) {
  79031. for ( var i=0, ien=searchCols.length ; i<ien ; i++ ) {
  79032. if ( searchCols[i] ) {
  79033. _fnCamelToHungarian( DataTable.models.oSearch, searchCols[i] );
  79034. }
  79035. }
  79036. }
  79037. }
  79038. /**
  79039. * Provide backwards compatibility for column options. Note that the new options
  79040. * are mapped onto the old parameters, so this is an external interface change
  79041. * only.
  79042. * @param {object} init Object to map
  79043. */
  79044. function _fnCompatCols ( init )
  79045. {
  79046. _fnCompatMap( init, 'orderable', 'bSortable' );
  79047. _fnCompatMap( init, 'orderData', 'aDataSort' );
  79048. _fnCompatMap( init, 'orderSequence', 'asSorting' );
  79049. _fnCompatMap( init, 'orderDataType', 'sortDataType' );
  79050. // orderData can be given as an integer
  79051. var dataSort = init.aDataSort;
  79052. if ( dataSort && ! $.isArray( dataSort ) ) {
  79053. init.aDataSort = [ dataSort ];
  79054. }
  79055. }
  79056. /**
  79057. * Browser feature detection for capabilities, quirks
  79058. * @param {object} settings dataTables settings object
  79059. * @memberof DataTable#oApi
  79060. */
  79061. function _fnBrowserDetect( settings )
  79062. {
  79063. var browser = settings.oBrowser;
  79064. // Scrolling feature / quirks detection
  79065. var n = $('<div/>')
  79066. .css( {
  79067. position: 'fixed',
  79068. top: 0,
  79069. left: 0,
  79070. height: 1,
  79071. width: 1,
  79072. overflow: 'hidden'
  79073. } )
  79074. .append(
  79075. $('<div/>')
  79076. .css( {
  79077. position: 'absolute',
  79078. top: 1,
  79079. left: 1,
  79080. width: 100,
  79081. overflow: 'scroll'
  79082. } )
  79083. .append(
  79084. $('<div class="test"/>')
  79085. .css( {
  79086. width: '100%',
  79087. height: 10
  79088. } )
  79089. )
  79090. )
  79091. .appendTo( 'body' );
  79092. var test = n.find('.test');
  79093. // IE6/7 will oversize a width 100% element inside a scrolling element, to
  79094. // include the width of the scrollbar, while other browsers ensure the inner
  79095. // element is contained without forcing scrolling
  79096. browser.bScrollOversize = test[0].offsetWidth === 100;
  79097. // In rtl text layout, some browsers (most, but not all) will place the
  79098. // scrollbar on the left, rather than the right.
  79099. browser.bScrollbarLeft = Math.round( test.offset().left ) !== 1;
  79100. // IE8- don't provide height and width for getBoundingClientRect
  79101. browser.bBounding = n[0].getBoundingClientRect().width ? true : false;
  79102. n.remove();
  79103. }
  79104. /**
  79105. * Array.prototype reduce[Right] method, used for browsers which don't support
  79106. * JS 1.6. Done this way to reduce code size, since we iterate either way
  79107. * @param {object} settings dataTables settings object
  79108. * @memberof DataTable#oApi
  79109. */
  79110. function _fnReduce ( that, fn, init, start, end, inc )
  79111. {
  79112. var
  79113. i = start,
  79114. value,
  79115. isSet = false;
  79116. if ( init !== undefined ) {
  79117. value = init;
  79118. isSet = true;
  79119. }
  79120. while ( i !== end ) {
  79121. if ( ! that.hasOwnProperty(i) ) {
  79122. continue;
  79123. }
  79124. value = isSet ?
  79125. fn( value, that[i], i, that ) :
  79126. that[i];
  79127. isSet = true;
  79128. i += inc;
  79129. }
  79130. return value;
  79131. }
  79132. /**
  79133. * Add a column to the list used for the table with default values
  79134. * @param {object} oSettings dataTables settings object
  79135. * @param {node} nTh The th element for this column
  79136. * @memberof DataTable#oApi
  79137. */
  79138. function _fnAddColumn( oSettings, nTh )
  79139. {
  79140. // Add column to aoColumns array
  79141. var oDefaults = DataTable.defaults.column;
  79142. var iCol = oSettings.aoColumns.length;
  79143. var oCol = $.extend( {}, DataTable.models.oColumn, oDefaults, {
  79144. "nTh": nTh ? nTh : document.createElement('th'),
  79145. "sTitle": oDefaults.sTitle ? oDefaults.sTitle : nTh ? nTh.innerHTML : '',
  79146. "aDataSort": oDefaults.aDataSort ? oDefaults.aDataSort : [iCol],
  79147. "mData": oDefaults.mData ? oDefaults.mData : iCol,
  79148. idx: iCol
  79149. } );
  79150. oSettings.aoColumns.push( oCol );
  79151. // Add search object for column specific search. Note that the `searchCols[ iCol ]`
  79152. // passed into extend can be undefined. This allows the user to give a default
  79153. // with only some of the parameters defined, and also not give a default
  79154. var searchCols = oSettings.aoPreSearchCols;
  79155. searchCols[ iCol ] = $.extend( {}, DataTable.models.oSearch, searchCols[ iCol ] );
  79156. // Use the default column options function to initialise classes etc
  79157. _fnColumnOptions( oSettings, iCol, $(nTh).data() );
  79158. }
  79159. /**
  79160. * Apply options for a column
  79161. * @param {object} oSettings dataTables settings object
  79162. * @param {int} iCol column index to consider
  79163. * @param {object} oOptions object with sType, bVisible and bSearchable etc
  79164. * @memberof DataTable#oApi
  79165. */
  79166. function _fnColumnOptions( oSettings, iCol, oOptions )
  79167. {
  79168. var oCol = oSettings.aoColumns[ iCol ];
  79169. var oClasses = oSettings.oClasses;
  79170. var th = $(oCol.nTh);
  79171. // Try to get width information from the DOM. We can't get it from CSS
  79172. // as we'd need to parse the CSS stylesheet. `width` option can override
  79173. if ( ! oCol.sWidthOrig ) {
  79174. // Width attribute
  79175. oCol.sWidthOrig = th.attr('width') || null;
  79176. // Style attribute
  79177. var t = (th.attr('style') || '').match(/width:\s*(\d+[pxem%]+)/);
  79178. if ( t ) {
  79179. oCol.sWidthOrig = t[1];
  79180. }
  79181. }
  79182. /* User specified column options */
  79183. if ( oOptions !== undefined && oOptions !== null )
  79184. {
  79185. // Backwards compatibility
  79186. _fnCompatCols( oOptions );
  79187. // Map camel case parameters to their Hungarian counterparts
  79188. _fnCamelToHungarian( DataTable.defaults.column, oOptions );
  79189. /* Backwards compatibility for mDataProp */
  79190. if ( oOptions.mDataProp !== undefined && !oOptions.mData )
  79191. {
  79192. oOptions.mData = oOptions.mDataProp;
  79193. }
  79194. if ( oOptions.sType )
  79195. {
  79196. oCol._sManualType = oOptions.sType;
  79197. }
  79198. // `class` is a reserved word in Javascript, so we need to provide
  79199. // the ability to use a valid name for the camel case input
  79200. if ( oOptions.className && ! oOptions.sClass )
  79201. {
  79202. oOptions.sClass = oOptions.className;
  79203. }
  79204. $.extend( oCol, oOptions );
  79205. _fnMap( oCol, oOptions, "sWidth", "sWidthOrig" );
  79206. /* iDataSort to be applied (backwards compatibility), but aDataSort will take
  79207. * priority if defined
  79208. */
  79209. if ( oOptions.iDataSort !== undefined )
  79210. {
  79211. oCol.aDataSort = [ oOptions.iDataSort ];
  79212. }
  79213. _fnMap( oCol, oOptions, "aDataSort" );
  79214. }
  79215. /* Cache the data get and set functions for speed */
  79216. var mDataSrc = oCol.mData;
  79217. var mData = _fnGetObjectDataFn( mDataSrc );
  79218. var mRender = oCol.mRender ? _fnGetObjectDataFn( oCol.mRender ) : null;
  79219. var attrTest = function( src ) {
  79220. return typeof src === 'string' && src.indexOf('@') !== -1;
  79221. };
  79222. oCol._bAttrSrc = $.isPlainObject( mDataSrc ) && (
  79223. attrTest(mDataSrc.sort) || attrTest(mDataSrc.type) || attrTest(mDataSrc.filter)
  79224. );
  79225. oCol.fnGetData = function (rowData, type, meta) {
  79226. var innerData = mData( rowData, type, undefined, meta );
  79227. return mRender && type ?
  79228. mRender( innerData, type, rowData, meta ) :
  79229. innerData;
  79230. };
  79231. oCol.fnSetData = function ( rowData, val, meta ) {
  79232. return _fnSetObjectDataFn( mDataSrc )( rowData, val, meta );
  79233. };
  79234. // Indicate if DataTables should read DOM data as an object or array
  79235. // Used in _fnGetRowElements
  79236. if ( typeof mDataSrc !== 'number' ) {
  79237. oSettings._rowReadObject = true;
  79238. }
  79239. /* Feature sorting overrides column specific when off */
  79240. if ( !oSettings.oFeatures.bSort )
  79241. {
  79242. oCol.bSortable = false;
  79243. th.addClass( oClasses.sSortableNone ); // Have to add class here as order event isn't called
  79244. }
  79245. /* Check that the class assignment is correct for sorting */
  79246. var bAsc = $.inArray('asc', oCol.asSorting) !== -1;
  79247. var bDesc = $.inArray('desc', oCol.asSorting) !== -1;
  79248. if ( !oCol.bSortable || (!bAsc && !bDesc) )
  79249. {
  79250. oCol.sSortingClass = oClasses.sSortableNone;
  79251. oCol.sSortingClassJUI = "";
  79252. }
  79253. else if ( bAsc && !bDesc )
  79254. {
  79255. oCol.sSortingClass = oClasses.sSortableAsc;
  79256. oCol.sSortingClassJUI = oClasses.sSortJUIAscAllowed;
  79257. }
  79258. else if ( !bAsc && bDesc )
  79259. {
  79260. oCol.sSortingClass = oClasses.sSortableDesc;
  79261. oCol.sSortingClassJUI = oClasses.sSortJUIDescAllowed;
  79262. }
  79263. else
  79264. {
  79265. oCol.sSortingClass = oClasses.sSortable;
  79266. oCol.sSortingClassJUI = oClasses.sSortJUI;
  79267. }
  79268. }
  79269. /**
  79270. * Adjust the table column widths for new data. Note: you would probably want to
  79271. * do a redraw after calling this function!
  79272. * @param {object} settings dataTables settings object
  79273. * @memberof DataTable#oApi
  79274. */
  79275. function _fnAdjustColumnSizing ( settings )
  79276. {
  79277. /* Not interested in doing column width calculation if auto-width is disabled */
  79278. if ( settings.oFeatures.bAutoWidth !== false )
  79279. {
  79280. var columns = settings.aoColumns;
  79281. _fnCalculateColumnWidths( settings );
  79282. for ( var i=0 , iLen=columns.length ; i<iLen ; i++ )
  79283. {
  79284. columns[i].nTh.style.width = columns[i].sWidth;
  79285. }
  79286. }
  79287. var scroll = settings.oScroll;
  79288. if ( scroll.sY !== '' || scroll.sX !== '')
  79289. {
  79290. _fnScrollDraw( settings );
  79291. }
  79292. _fnCallbackFire( settings, null, 'column-sizing', [settings] );
  79293. }
  79294. /**
  79295. * Covert the index of a visible column to the index in the data array (take account
  79296. * of hidden columns)
  79297. * @param {object} oSettings dataTables settings object
  79298. * @param {int} iMatch Visible column index to lookup
  79299. * @returns {int} i the data index
  79300. * @memberof DataTable#oApi
  79301. */
  79302. function _fnVisibleToColumnIndex( oSettings, iMatch )
  79303. {
  79304. var aiVis = _fnGetColumns( oSettings, 'bVisible' );
  79305. return typeof aiVis[iMatch] === 'number' ?
  79306. aiVis[iMatch] :
  79307. null;
  79308. }
  79309. /**
  79310. * Covert the index of an index in the data array and convert it to the visible
  79311. * column index (take account of hidden columns)
  79312. * @param {int} iMatch Column index to lookup
  79313. * @param {object} oSettings dataTables settings object
  79314. * @returns {int} i the data index
  79315. * @memberof DataTable#oApi
  79316. */
  79317. function _fnColumnIndexToVisible( oSettings, iMatch )
  79318. {
  79319. var aiVis = _fnGetColumns( oSettings, 'bVisible' );
  79320. var iPos = $.inArray( iMatch, aiVis );
  79321. return iPos !== -1 ? iPos : null;
  79322. }
  79323. /**
  79324. * Get the number of visible columns
  79325. * @param {object} oSettings dataTables settings object
  79326. * @returns {int} i the number of visible columns
  79327. * @memberof DataTable#oApi
  79328. */
  79329. function _fnVisbleColumns( oSettings )
  79330. {
  79331. return _fnGetColumns( oSettings, 'bVisible' ).length;
  79332. }
  79333. /**
  79334. * Get an array of column indexes that match a given property
  79335. * @param {object} oSettings dataTables settings object
  79336. * @param {string} sParam Parameter in aoColumns to look for - typically
  79337. * bVisible or bSearchable
  79338. * @returns {array} Array of indexes with matched properties
  79339. * @memberof DataTable#oApi
  79340. */
  79341. function _fnGetColumns( oSettings, sParam )
  79342. {
  79343. var a = [];
  79344. $.map( oSettings.aoColumns, function(val, i) {
  79345. if ( val[sParam] ) {
  79346. a.push( i );
  79347. }
  79348. } );
  79349. return a;
  79350. }
  79351. /**
  79352. * Calculate the 'type' of a column
  79353. * @param {object} settings dataTables settings object
  79354. * @memberof DataTable#oApi
  79355. */
  79356. function _fnColumnTypes ( settings )
  79357. {
  79358. var columns = settings.aoColumns;
  79359. var data = settings.aoData;
  79360. var types = DataTable.ext.type.detect;
  79361. var i, ien, j, jen, k, ken;
  79362. var col, cell, detectedType, cache;
  79363. // For each column, spin over the
  79364. for ( i=0, ien=columns.length ; i<ien ; i++ ) {
  79365. col = columns[i];
  79366. cache = [];
  79367. if ( ! col.sType && col._sManualType ) {
  79368. col.sType = col._sManualType;
  79369. }
  79370. else if ( ! col.sType ) {
  79371. for ( j=0, jen=types.length ; j<jen ; j++ ) {
  79372. for ( k=0, ken=data.length ; k<ken ; k++ ) {
  79373. // Use a cache array so we only need to get the type data
  79374. // from the formatter once (when using multiple detectors)
  79375. if ( cache[k] === undefined ) {
  79376. cache[k] = _fnGetCellData( settings, k, i, 'type' );
  79377. }
  79378. detectedType = types[j]( cache[k], settings );
  79379. // If null, then this type can't apply to this column, so
  79380. // rather than testing all cells, break out. There is an
  79381. // exception for the last type which is `html`. We need to
  79382. // scan all rows since it is possible to mix string and HTML
  79383. // types
  79384. if ( ! detectedType && j !== types.length-1 ) {
  79385. break;
  79386. }
  79387. // Only a single match is needed for html type since it is
  79388. // bottom of the pile and very similar to string
  79389. if ( detectedType === 'html' ) {
  79390. break;
  79391. }
  79392. }
  79393. // Type is valid for all data points in the column - use this
  79394. // type
  79395. if ( detectedType ) {
  79396. col.sType = detectedType;
  79397. break;
  79398. }
  79399. }
  79400. // Fall back - if no type was detected, always use string
  79401. if ( ! col.sType ) {
  79402. col.sType = 'string';
  79403. }
  79404. }
  79405. }
  79406. }
  79407. /**
  79408. * Take the column definitions and static columns arrays and calculate how
  79409. * they relate to column indexes. The callback function will then apply the
  79410. * definition found for a column to a suitable configuration object.
  79411. * @param {object} oSettings dataTables settings object
  79412. * @param {array} aoColDefs The aoColumnDefs array that is to be applied
  79413. * @param {array} aoCols The aoColumns array that defines columns individually
  79414. * @param {function} fn Callback function - takes two parameters, the calculated
  79415. * column index and the definition for that column.
  79416. * @memberof DataTable#oApi
  79417. */
  79418. function _fnApplyColumnDefs( oSettings, aoColDefs, aoCols, fn )
  79419. {
  79420. var i, iLen, j, jLen, k, kLen, def;
  79421. var columns = oSettings.aoColumns;
  79422. // Column definitions with aTargets
  79423. if ( aoColDefs )
  79424. {
  79425. /* Loop over the definitions array - loop in reverse so first instance has priority */
  79426. for ( i=aoColDefs.length-1 ; i>=0 ; i-- )
  79427. {
  79428. def = aoColDefs[i];
  79429. /* Each definition can target multiple columns, as it is an array */
  79430. var aTargets = def.targets !== undefined ?
  79431. def.targets :
  79432. def.aTargets;
  79433. if ( ! $.isArray( aTargets ) )
  79434. {
  79435. aTargets = [ aTargets ];
  79436. }
  79437. for ( j=0, jLen=aTargets.length ; j<jLen ; j++ )
  79438. {
  79439. if ( typeof aTargets[j] === 'number' && aTargets[j] >= 0 )
  79440. {
  79441. /* Add columns that we don't yet know about */
  79442. while( columns.length <= aTargets[j] )
  79443. {
  79444. _fnAddColumn( oSettings );
  79445. }
  79446. /* Integer, basic index */
  79447. fn( aTargets[j], def );
  79448. }
  79449. else if ( typeof aTargets[j] === 'number' && aTargets[j] < 0 )
  79450. {
  79451. /* Negative integer, right to left column counting */
  79452. fn( columns.length+aTargets[j], def );
  79453. }
  79454. else if ( typeof aTargets[j] === 'string' )
  79455. {
  79456. /* Class name matching on TH element */
  79457. for ( k=0, kLen=columns.length ; k<kLen ; k++ )
  79458. {
  79459. if ( aTargets[j] == "_all" ||
  79460. $(columns[k].nTh).hasClass( aTargets[j] ) )
  79461. {
  79462. fn( k, def );
  79463. }
  79464. }
  79465. }
  79466. }
  79467. }
  79468. }
  79469. // Statically defined columns array
  79470. if ( aoCols )
  79471. {
  79472. for ( i=0, iLen=aoCols.length ; i<iLen ; i++ )
  79473. {
  79474. fn( i, aoCols[i] );
  79475. }
  79476. }
  79477. }
  79478. /**
  79479. * Add a data array to the table, creating DOM node etc. This is the parallel to
  79480. * _fnGatherData, but for adding rows from a Javascript source, rather than a
  79481. * DOM source.
  79482. * @param {object} oSettings dataTables settings object
  79483. * @param {array} aData data array to be added
  79484. * @param {node} [nTr] TR element to add to the table - optional. If not given,
  79485. * DataTables will create a row automatically
  79486. * @param {array} [anTds] Array of TD|TH elements for the row - must be given
  79487. * if nTr is.
  79488. * @returns {int} >=0 if successful (index of new aoData entry), -1 if failed
  79489. * @memberof DataTable#oApi
  79490. */
  79491. function _fnAddData ( oSettings, aDataIn, nTr, anTds )
  79492. {
  79493. /* Create the object for storing information about this new row */
  79494. var iRow = oSettings.aoData.length;
  79495. var oData = $.extend( true, {}, DataTable.models.oRow, {
  79496. src: nTr ? 'dom' : 'data',
  79497. idx: iRow
  79498. } );
  79499. oData._aData = aDataIn;
  79500. oSettings.aoData.push( oData );
  79501. /* Create the cells */
  79502. var nTd, sThisType;
  79503. var columns = oSettings.aoColumns;
  79504. for ( var i=0, iLen=columns.length ; i<iLen ; i++ )
  79505. {
  79506. // When working with a row, the data source object must be populated. In
  79507. // all other cases, the data source object is already populated, so we
  79508. // don't overwrite it, which might break bindings etc
  79509. if ( nTr ) {
  79510. _fnSetCellData( oSettings, iRow, i, _fnGetCellData( oSettings, iRow, i ) );
  79511. }
  79512. columns[i].sType = null;
  79513. }
  79514. /* Add to the display array */
  79515. oSettings.aiDisplayMaster.push( iRow );
  79516. var id = oSettings.rowIdFn( aDataIn );
  79517. if ( id !== undefined ) {
  79518. oSettings.aIds[ id ] = oData;
  79519. }
  79520. /* Create the DOM information, or register it if already present */
  79521. if ( nTr || ! oSettings.oFeatures.bDeferRender )
  79522. {
  79523. _fnCreateTr( oSettings, iRow, nTr, anTds );
  79524. }
  79525. return iRow;
  79526. }
  79527. /**
  79528. * Add one or more TR elements to the table. Generally we'd expect to
  79529. * use this for reading data from a DOM sourced table, but it could be
  79530. * used for an TR element. Note that if a TR is given, it is used (i.e.
  79531. * it is not cloned).
  79532. * @param {object} settings dataTables settings object
  79533. * @param {array|node|jQuery} trs The TR element(s) to add to the table
  79534. * @returns {array} Array of indexes for the added rows
  79535. * @memberof DataTable#oApi
  79536. */
  79537. function _fnAddTr( settings, trs )
  79538. {
  79539. var row;
  79540. // Allow an individual node to be passed in
  79541. if ( ! (trs instanceof $) ) {
  79542. trs = $(trs);
  79543. }
  79544. return trs.map( function (i, el) {
  79545. row = _fnGetRowElements( settings, el );
  79546. return _fnAddData( settings, row.data, el, row.cells );
  79547. } );
  79548. }
  79549. /**
  79550. * Take a TR element and convert it to an index in aoData
  79551. * @param {object} oSettings dataTables settings object
  79552. * @param {node} n the TR element to find
  79553. * @returns {int} index if the node is found, null if not
  79554. * @memberof DataTable#oApi
  79555. */
  79556. function _fnNodeToDataIndex( oSettings, n )
  79557. {
  79558. return (n._DT_RowIndex!==undefined) ? n._DT_RowIndex : null;
  79559. }
  79560. /**
  79561. * Take a TD element and convert it into a column data index (not the visible index)
  79562. * @param {object} oSettings dataTables settings object
  79563. * @param {int} iRow The row number the TD/TH can be found in
  79564. * @param {node} n The TD/TH element to find
  79565. * @returns {int} index if the node is found, -1 if not
  79566. * @memberof DataTable#oApi
  79567. */
  79568. function _fnNodeToColumnIndex( oSettings, iRow, n )
  79569. {
  79570. return $.inArray( n, oSettings.aoData[ iRow ].anCells );
  79571. }
  79572. /**
  79573. * Get the data for a given cell from the internal cache, taking into account data mapping
  79574. * @param {object} settings dataTables settings object
  79575. * @param {int} rowIdx aoData row id
  79576. * @param {int} colIdx Column index
  79577. * @param {string} type data get type ('display', 'type' 'filter' 'sort')
  79578. * @returns {*} Cell data
  79579. * @memberof DataTable#oApi
  79580. */
  79581. function _fnGetCellData( settings, rowIdx, colIdx, type )
  79582. {
  79583. var draw = settings.iDraw;
  79584. var col = settings.aoColumns[colIdx];
  79585. var rowData = settings.aoData[rowIdx]._aData;
  79586. var defaultContent = col.sDefaultContent;
  79587. var cellData = col.fnGetData( rowData, type, {
  79588. settings: settings,
  79589. row: rowIdx,
  79590. col: colIdx
  79591. } );
  79592. if ( cellData === undefined ) {
  79593. if ( settings.iDrawError != draw && defaultContent === null ) {
  79594. _fnLog( settings, 0, "Requested unknown parameter "+
  79595. (typeof col.mData=='function' ? '{function}' : "'"+col.mData+"'")+
  79596. " for row "+rowIdx, 4 );
  79597. settings.iDrawError = draw;
  79598. }
  79599. return defaultContent;
  79600. }
  79601. /* When the data source is null, we can use default column data */
  79602. if ( (cellData === rowData || cellData === null) && defaultContent !== null ) {
  79603. cellData = defaultContent;
  79604. }
  79605. else if ( typeof cellData === 'function' ) {
  79606. // If the data source is a function, then we run it and use the return,
  79607. // executing in the scope of the data object (for instances)
  79608. return cellData.call( rowData );
  79609. }
  79610. if ( cellData === null && type == 'display' ) {
  79611. return '';
  79612. }
  79613. return cellData;
  79614. }
  79615. /**
  79616. * Set the value for a specific cell, into the internal data cache
  79617. * @param {object} settings dataTables settings object
  79618. * @param {int} rowIdx aoData row id
  79619. * @param {int} colIdx Column index
  79620. * @param {*} val Value to set
  79621. * @memberof DataTable#oApi
  79622. */
  79623. function _fnSetCellData( settings, rowIdx, colIdx, val )
  79624. {
  79625. var col = settings.aoColumns[colIdx];
  79626. var rowData = settings.aoData[rowIdx]._aData;
  79627. col.fnSetData( rowData, val, {
  79628. settings: settings,
  79629. row: rowIdx,
  79630. col: colIdx
  79631. } );
  79632. }
  79633. // Private variable that is used to match action syntax in the data property object
  79634. var __reArray = /\[.*?\]$/;
  79635. var __reFn = /\(\)$/;
  79636. /**
  79637. * Split string on periods, taking into account escaped periods
  79638. * @param {string} str String to split
  79639. * @return {array} Split string
  79640. */
  79641. function _fnSplitObjNotation( str )
  79642. {
  79643. return $.map( str.match(/(\\.|[^\.])+/g) || [''], function ( s ) {
  79644. return s.replace(/\\./g, '.');
  79645. } );
  79646. }
  79647. /**
  79648. * Return a function that can be used to get data from a source object, taking
  79649. * into account the ability to use nested objects as a source
  79650. * @param {string|int|function} mSource The data source for the object
  79651. * @returns {function} Data get function
  79652. * @memberof DataTable#oApi
  79653. */
  79654. function _fnGetObjectDataFn( mSource )
  79655. {
  79656. if ( $.isPlainObject( mSource ) )
  79657. {
  79658. /* Build an object of get functions, and wrap them in a single call */
  79659. var o = {};
  79660. $.each( mSource, function (key, val) {
  79661. if ( val ) {
  79662. o[key] = _fnGetObjectDataFn( val );
  79663. }
  79664. } );
  79665. return function (data, type, row, meta) {
  79666. var t = o[type] || o._;
  79667. return t !== undefined ?
  79668. t(data, type, row, meta) :
  79669. data;
  79670. };
  79671. }
  79672. else if ( mSource === null )
  79673. {
  79674. /* Give an empty string for rendering / sorting etc */
  79675. return function (data) { // type, row and meta also passed, but not used
  79676. return data;
  79677. };
  79678. }
  79679. else if ( typeof mSource === 'function' )
  79680. {
  79681. return function (data, type, row, meta) {
  79682. return mSource( data, type, row, meta );
  79683. };
  79684. }
  79685. else if ( typeof mSource === 'string' && (mSource.indexOf('.') !== -1 ||
  79686. mSource.indexOf('[') !== -1 || mSource.indexOf('(') !== -1) )
  79687. {
  79688. /* If there is a . in the source string then the data source is in a
  79689. * nested object so we loop over the data for each level to get the next
  79690. * level down. On each loop we test for undefined, and if found immediately
  79691. * return. This allows entire objects to be missing and sDefaultContent to
  79692. * be used if defined, rather than throwing an error
  79693. */
  79694. var fetchData = function (data, type, src) {
  79695. var arrayNotation, funcNotation, out, innerSrc;
  79696. if ( src !== "" )
  79697. {
  79698. var a = _fnSplitObjNotation( src );
  79699. for ( var i=0, iLen=a.length ; i<iLen ; i++ )
  79700. {
  79701. // Check if we are dealing with special notation
  79702. arrayNotation = a[i].match(__reArray);
  79703. funcNotation = a[i].match(__reFn);
  79704. if ( arrayNotation )
  79705. {
  79706. // Array notation
  79707. a[i] = a[i].replace(__reArray, '');
  79708. // Condition allows simply [] to be passed in
  79709. if ( a[i] !== "" ) {
  79710. data = data[ a[i] ];
  79711. }
  79712. out = [];
  79713. // Get the remainder of the nested object to get
  79714. a.splice( 0, i+1 );
  79715. innerSrc = a.join('.');
  79716. // Traverse each entry in the array getting the properties requested
  79717. for ( var j=0, jLen=data.length ; j<jLen ; j++ ) {
  79718. out.push( fetchData( data[j], type, innerSrc ) );
  79719. }
  79720. // If a string is given in between the array notation indicators, that
  79721. // is used to join the strings together, otherwise an array is returned
  79722. var join = arrayNotation[0].substring(1, arrayNotation[0].length-1);
  79723. data = (join==="") ? out : out.join(join);
  79724. // The inner call to fetchData has already traversed through the remainder
  79725. // of the source requested, so we exit from the loop
  79726. break;
  79727. }
  79728. else if ( funcNotation )
  79729. {
  79730. // Function call
  79731. a[i] = a[i].replace(__reFn, '');
  79732. data = data[ a[i] ]();
  79733. continue;
  79734. }
  79735. if ( data === null || data[ a[i] ] === undefined )
  79736. {
  79737. return undefined;
  79738. }
  79739. data = data[ a[i] ];
  79740. }
  79741. }
  79742. return data;
  79743. };
  79744. return function (data, type) { // row and meta also passed, but not used
  79745. return fetchData( data, type, mSource );
  79746. };
  79747. }
  79748. else
  79749. {
  79750. /* Array or flat object mapping */
  79751. return function (data, type) { // row and meta also passed, but not used
  79752. return data[mSource];
  79753. };
  79754. }
  79755. }
  79756. /**
  79757. * Return a function that can be used to set data from a source object, taking
  79758. * into account the ability to use nested objects as a source
  79759. * @param {string|int|function} mSource The data source for the object
  79760. * @returns {function} Data set function
  79761. * @memberof DataTable#oApi
  79762. */
  79763. function _fnSetObjectDataFn( mSource )
  79764. {
  79765. if ( $.isPlainObject( mSource ) )
  79766. {
  79767. /* Unlike get, only the underscore (global) option is used for for
  79768. * setting data since we don't know the type here. This is why an object
  79769. * option is not documented for `mData` (which is read/write), but it is
  79770. * for `mRender` which is read only.
  79771. */
  79772. return _fnSetObjectDataFn( mSource._ );
  79773. }
  79774. else if ( mSource === null )
  79775. {
  79776. /* Nothing to do when the data source is null */
  79777. return function () {};
  79778. }
  79779. else if ( typeof mSource === 'function' )
  79780. {
  79781. return function (data, val, meta) {
  79782. mSource( data, 'set', val, meta );
  79783. };
  79784. }
  79785. else if ( typeof mSource === 'string' && (mSource.indexOf('.') !== -1 ||
  79786. mSource.indexOf('[') !== -1 || mSource.indexOf('(') !== -1) )
  79787. {
  79788. /* Like the get, we need to get data from a nested object */
  79789. var setData = function (data, val, src) {
  79790. var a = _fnSplitObjNotation( src ), b;
  79791. var aLast = a[a.length-1];
  79792. var arrayNotation, funcNotation, o, innerSrc;
  79793. for ( var i=0, iLen=a.length-1 ; i<iLen ; i++ )
  79794. {
  79795. // Check if we are dealing with an array notation request
  79796. arrayNotation = a[i].match(__reArray);
  79797. funcNotation = a[i].match(__reFn);
  79798. if ( arrayNotation )
  79799. {
  79800. a[i] = a[i].replace(__reArray, '');
  79801. data[ a[i] ] = [];
  79802. // Get the remainder of the nested object to set so we can recurse
  79803. b = a.slice();
  79804. b.splice( 0, i+1 );
  79805. innerSrc = b.join('.');
  79806. // Traverse each entry in the array setting the properties requested
  79807. for ( var j=0, jLen=val.length ; j<jLen ; j++ )
  79808. {
  79809. o = {};
  79810. setData( o, val[j], innerSrc );
  79811. data[ a[i] ].push( o );
  79812. }
  79813. // The inner call to setData has already traversed through the remainder
  79814. // of the source and has set the data, thus we can exit here
  79815. return;
  79816. }
  79817. else if ( funcNotation )
  79818. {
  79819. // Function call
  79820. a[i] = a[i].replace(__reFn, '');
  79821. data = data[ a[i] ]( val );
  79822. }
  79823. // If the nested object doesn't currently exist - since we are
  79824. // trying to set the value - create it
  79825. if ( data[ a[i] ] === null || data[ a[i] ] === undefined )
  79826. {
  79827. data[ a[i] ] = {};
  79828. }
  79829. data = data[ a[i] ];
  79830. }
  79831. // Last item in the input - i.e, the actual set
  79832. if ( aLast.match(__reFn ) )
  79833. {
  79834. // Function call
  79835. data = data[ aLast.replace(__reFn, '') ]( val );
  79836. }
  79837. else
  79838. {
  79839. // If array notation is used, we just want to strip it and use the property name
  79840. // and assign the value. If it isn't used, then we get the result we want anyway
  79841. data[ aLast.replace(__reArray, '') ] = val;
  79842. }
  79843. };
  79844. return function (data, val) { // meta is also passed in, but not used
  79845. return setData( data, val, mSource );
  79846. };
  79847. }
  79848. else
  79849. {
  79850. /* Array or flat object mapping */
  79851. return function (data, val) { // meta is also passed in, but not used
  79852. data[mSource] = val;
  79853. };
  79854. }
  79855. }
  79856. /**
  79857. * Return an array with the full table data
  79858. * @param {object} oSettings dataTables settings object
  79859. * @returns array {array} aData Master data array
  79860. * @memberof DataTable#oApi
  79861. */
  79862. function _fnGetDataMaster ( settings )
  79863. {
  79864. return _pluck( settings.aoData, '_aData' );
  79865. }
  79866. /**
  79867. * Nuke the table
  79868. * @param {object} oSettings dataTables settings object
  79869. * @memberof DataTable#oApi
  79870. */
  79871. function _fnClearTable( settings )
  79872. {
  79873. settings.aoData.length = 0;
  79874. settings.aiDisplayMaster.length = 0;
  79875. settings.aiDisplay.length = 0;
  79876. }
  79877. /**
  79878. * Take an array of integers (index array) and remove a target integer (value - not
  79879. * the key!)
  79880. * @param {array} a Index array to target
  79881. * @param {int} iTarget value to find
  79882. * @memberof DataTable#oApi
  79883. */
  79884. function _fnDeleteIndex( a, iTarget, splice )
  79885. {
  79886. var iTargetIndex = -1;
  79887. for ( var i=0, iLen=a.length ; i<iLen ; i++ )
  79888. {
  79889. if ( a[i] == iTarget )
  79890. {
  79891. iTargetIndex = i;
  79892. }
  79893. else if ( a[i] > iTarget )
  79894. {
  79895. a[i]--;
  79896. }
  79897. }
  79898. if ( iTargetIndex != -1 && splice === undefined )
  79899. {
  79900. a.splice( iTargetIndex, 1 );
  79901. }
  79902. }
  79903. /**
  79904. * Mark cached data as invalid such that a re-read of the data will occur when
  79905. * the cached data is next requested. Also update from the data source object.
  79906. *
  79907. * @param {object} settings DataTables settings object
  79908. * @param {int} rowIdx Row index to invalidate
  79909. * @param {string} [src] Source to invalidate from: undefined, 'auto', 'dom'
  79910. * or 'data'
  79911. * @param {int} [colIdx] Column index to invalidate. If undefined the whole
  79912. * row will be invalidated
  79913. * @memberof DataTable#oApi
  79914. *
  79915. * @todo For the modularisation of v1.11 this will need to become a callback, so
  79916. * the sort and filter methods can subscribe to it. That will required
  79917. * initialisation options for sorting, which is why it is not already baked in
  79918. */
  79919. function _fnInvalidate( settings, rowIdx, src, colIdx )
  79920. {
  79921. var row = settings.aoData[ rowIdx ];
  79922. var i, ien;
  79923. var cellWrite = function ( cell, col ) {
  79924. // This is very frustrating, but in IE if you just write directly
  79925. // to innerHTML, and elements that are overwritten are GC'ed,
  79926. // even if there is a reference to them elsewhere
  79927. while ( cell.childNodes.length ) {
  79928. cell.removeChild( cell.firstChild );
  79929. }
  79930. cell.innerHTML = _fnGetCellData( settings, rowIdx, col, 'display' );
  79931. };
  79932. // Are we reading last data from DOM or the data object?
  79933. if ( src === 'dom' || ((! src || src === 'auto') && row.src === 'dom') ) {
  79934. // Read the data from the DOM
  79935. row._aData = _fnGetRowElements(
  79936. settings, row, colIdx, colIdx === undefined ? undefined : row._aData
  79937. )
  79938. .data;
  79939. }
  79940. else {
  79941. // Reading from data object, update the DOM
  79942. var cells = row.anCells;
  79943. if ( cells ) {
  79944. if ( colIdx !== undefined ) {
  79945. cellWrite( cells[colIdx], colIdx );
  79946. }
  79947. else {
  79948. for ( i=0, ien=cells.length ; i<ien ; i++ ) {
  79949. cellWrite( cells[i], i );
  79950. }
  79951. }
  79952. }
  79953. }
  79954. // For both row and cell invalidation, the cached data for sorting and
  79955. // filtering is nulled out
  79956. row._aSortData = null;
  79957. row._aFilterData = null;
  79958. // Invalidate the type for a specific column (if given) or all columns since
  79959. // the data might have changed
  79960. var cols = settings.aoColumns;
  79961. if ( colIdx !== undefined ) {
  79962. cols[ colIdx ].sType = null;
  79963. }
  79964. else {
  79965. for ( i=0, ien=cols.length ; i<ien ; i++ ) {
  79966. cols[i].sType = null;
  79967. }
  79968. // Update DataTables special `DT_*` attributes for the row
  79969. _fnRowAttributes( settings, row );
  79970. }
  79971. }
  79972. /**
  79973. * Build a data source object from an HTML row, reading the contents of the
  79974. * cells that are in the row.
  79975. *
  79976. * @param {object} settings DataTables settings object
  79977. * @param {node|object} TR element from which to read data or existing row
  79978. * object from which to re-read the data from the cells
  79979. * @param {int} [colIdx] Optional column index
  79980. * @param {array|object} [d] Data source object. If `colIdx` is given then this
  79981. * parameter should also be given and will be used to write the data into.
  79982. * Only the column in question will be written
  79983. * @returns {object} Object with two parameters: `data` the data read, in
  79984. * document order, and `cells` and array of nodes (they can be useful to the
  79985. * caller, so rather than needing a second traversal to get them, just return
  79986. * them from here).
  79987. * @memberof DataTable#oApi
  79988. */
  79989. function _fnGetRowElements( settings, row, colIdx, d )
  79990. {
  79991. var
  79992. tds = [],
  79993. td = row.firstChild,
  79994. name, col, o, i=0, contents,
  79995. columns = settings.aoColumns,
  79996. objectRead = settings._rowReadObject;
  79997. // Allow the data object to be passed in, or construct
  79998. d = d || objectRead ? {} : [];
  79999. var attr = function ( str, td ) {
  80000. if ( typeof str === 'string' ) {
  80001. var idx = str.indexOf('@');
  80002. if ( idx !== -1 ) {
  80003. var attr = str.substring( idx+1 );
  80004. var setter = _fnSetObjectDataFn( str );
  80005. setter( d, td.getAttribute( attr ) );
  80006. }
  80007. }
  80008. };
  80009. // Read data from a cell and store into the data object
  80010. var cellProcess = function ( cell ) {
  80011. if ( colIdx === undefined || colIdx === i ) {
  80012. col = columns[i];
  80013. contents = $.trim(cell.innerHTML);
  80014. if ( col && col._bAttrSrc ) {
  80015. var setter = _fnSetObjectDataFn( col.mData._ );
  80016. setter( d, contents );
  80017. attr( col.mData.sort, cell );
  80018. attr( col.mData.type, cell );
  80019. attr( col.mData.filter, cell );
  80020. }
  80021. else {
  80022. // Depending on the `data` option for the columns the data can
  80023. // be read to either an object or an array.
  80024. if ( objectRead ) {
  80025. if ( ! col._setter ) {
  80026. // Cache the setter function
  80027. col._setter = _fnSetObjectDataFn( col.mData );
  80028. }
  80029. col._setter( d, contents );
  80030. }
  80031. else {
  80032. d[i] = contents;
  80033. }
  80034. }
  80035. }
  80036. i++;
  80037. };
  80038. if ( td ) {
  80039. // `tr` element was passed in
  80040. while ( td ) {
  80041. name = td.nodeName.toUpperCase();
  80042. if ( name == "TD" || name == "TH" ) {
  80043. cellProcess( td );
  80044. tds.push( td );
  80045. }
  80046. td = td.nextSibling;
  80047. }
  80048. }
  80049. else {
  80050. // Existing row object passed in
  80051. tds = row.anCells;
  80052. for ( var j=0, jen=tds.length ; j<jen ; j++ ) {
  80053. cellProcess( tds[j] );
  80054. }
  80055. }
  80056. // Read the ID from the DOM if present
  80057. var id = row.getAttribute( 'id' );
  80058. if ( id ) {
  80059. _fnSetObjectDataFn( settings.rowId )( d, id );
  80060. }
  80061. return {
  80062. data: d,
  80063. cells: tds
  80064. };
  80065. }
  80066. /**
  80067. * Create a new TR element (and it's TD children) for a row
  80068. * @param {object} oSettings dataTables settings object
  80069. * @param {int} iRow Row to consider
  80070. * @param {node} [nTrIn] TR element to add to the table - optional. If not given,
  80071. * DataTables will create a row automatically
  80072. * @param {array} [anTds] Array of TD|TH elements for the row - must be given
  80073. * if nTr is.
  80074. * @memberof DataTable#oApi
  80075. */
  80076. function _fnCreateTr ( oSettings, iRow, nTrIn, anTds )
  80077. {
  80078. var
  80079. row = oSettings.aoData[iRow],
  80080. rowData = row._aData,
  80081. cells = [],
  80082. nTr, nTd, oCol,
  80083. i, iLen;
  80084. if ( row.nTr === null )
  80085. {
  80086. nTr = nTrIn || document.createElement('tr');
  80087. row.nTr = nTr;
  80088. row.anCells = cells;
  80089. /* Use a private property on the node to allow reserve mapping from the node
  80090. * to the aoData array for fast look up
  80091. */
  80092. nTr._DT_RowIndex = iRow;
  80093. /* Special parameters can be given by the data source to be used on the row */
  80094. _fnRowAttributes( oSettings, row );
  80095. /* Process each column */
  80096. for ( i=0, iLen=oSettings.aoColumns.length ; i<iLen ; i++ )
  80097. {
  80098. oCol = oSettings.aoColumns[i];
  80099. nTd = nTrIn ? anTds[i] : document.createElement( oCol.sCellType );
  80100. cells.push( nTd );
  80101. // Need to create the HTML if new, or if a rendering function is defined
  80102. if ( !nTrIn || oCol.mRender || oCol.mData !== i )
  80103. {
  80104. nTd.innerHTML = _fnGetCellData( oSettings, iRow, i, 'display' );
  80105. }
  80106. /* Add user defined class */
  80107. if ( oCol.sClass )
  80108. {
  80109. nTd.className += ' '+oCol.sClass;
  80110. }
  80111. // Visibility - add or remove as required
  80112. if ( oCol.bVisible && ! nTrIn )
  80113. {
  80114. nTr.appendChild( nTd );
  80115. }
  80116. else if ( ! oCol.bVisible && nTrIn )
  80117. {
  80118. nTd.parentNode.removeChild( nTd );
  80119. }
  80120. if ( oCol.fnCreatedCell )
  80121. {
  80122. oCol.fnCreatedCell.call( oSettings.oInstance,
  80123. nTd, _fnGetCellData( oSettings, iRow, i ), rowData, iRow, i
  80124. );
  80125. }
  80126. }
  80127. _fnCallbackFire( oSettings, 'aoRowCreatedCallback', null, [nTr, rowData, iRow] );
  80128. }
  80129. // Remove once webkit bug 131819 and Chromium bug 365619 have been resolved
  80130. // and deployed
  80131. row.nTr.setAttribute( 'role', 'row' );
  80132. }
  80133. /**
  80134. * Add attributes to a row based on the special `DT_*` parameters in a data
  80135. * source object.
  80136. * @param {object} settings DataTables settings object
  80137. * @param {object} DataTables row object for the row to be modified
  80138. * @memberof DataTable#oApi
  80139. */
  80140. function _fnRowAttributes( settings, row )
  80141. {
  80142. var tr = row.nTr;
  80143. var data = row._aData;
  80144. if ( tr ) {
  80145. var id = settings.rowIdFn( data );
  80146. if ( id ) {
  80147. tr.id = id;
  80148. }
  80149. if ( data.DT_RowClass ) {
  80150. // Remove any classes added by DT_RowClass before
  80151. var a = data.DT_RowClass.split(' ');
  80152. row.__rowc = row.__rowc ?
  80153. _unique( row.__rowc.concat( a ) ) :
  80154. a;
  80155. $(tr)
  80156. .removeClass( row.__rowc.join(' ') )
  80157. .addClass( data.DT_RowClass );
  80158. }
  80159. if ( data.DT_RowAttr ) {
  80160. $(tr).attr( data.DT_RowAttr );
  80161. }
  80162. if ( data.DT_RowData ) {
  80163. $(tr).data( data.DT_RowData );
  80164. }
  80165. }
  80166. }
  80167. /**
  80168. * Create the HTML header for the table
  80169. * @param {object} oSettings dataTables settings object
  80170. * @memberof DataTable#oApi
  80171. */
  80172. function _fnBuildHead( oSettings )
  80173. {
  80174. var i, ien, cell, row, column;
  80175. var thead = oSettings.nTHead;
  80176. var tfoot = oSettings.nTFoot;
  80177. var createHeader = $('th, td', thead).length === 0;
  80178. var classes = oSettings.oClasses;
  80179. var columns = oSettings.aoColumns;
  80180. if ( createHeader ) {
  80181. row = $('<tr/>').appendTo( thead );
  80182. }
  80183. for ( i=0, ien=columns.length ; i<ien ; i++ ) {
  80184. column = columns[i];
  80185. cell = $( column.nTh ).addClass( column.sClass );
  80186. if ( createHeader ) {
  80187. cell.appendTo( row );
  80188. }
  80189. // 1.11 move into sorting
  80190. if ( oSettings.oFeatures.bSort ) {
  80191. cell.addClass( column.sSortingClass );
  80192. if ( column.bSortable !== false ) {
  80193. cell
  80194. .attr( 'tabindex', oSettings.iTabIndex )
  80195. .attr( 'aria-controls', oSettings.sTableId );
  80196. _fnSortAttachListener( oSettings, column.nTh, i );
  80197. }
  80198. }
  80199. if ( column.sTitle != cell[0].innerHTML ) {
  80200. cell.html( column.sTitle );
  80201. }
  80202. _fnRenderer( oSettings, 'header' )(
  80203. oSettings, cell, column, classes
  80204. );
  80205. }
  80206. if ( createHeader ) {
  80207. _fnDetectHeader( oSettings.aoHeader, thead );
  80208. }
  80209. /* ARIA role for the rows */
  80210. $(thead).find('>tr').attr('role', 'row');
  80211. /* Deal with the footer - add classes if required */
  80212. $(thead).find('>tr>th, >tr>td').addClass( classes.sHeaderTH );
  80213. $(tfoot).find('>tr>th, >tr>td').addClass( classes.sFooterTH );
  80214. // Cache the footer cells. Note that we only take the cells from the first
  80215. // row in the footer. If there is more than one row the user wants to
  80216. // interact with, they need to use the table().foot() method. Note also this
  80217. // allows cells to be used for multiple columns using colspan
  80218. if ( tfoot !== null ) {
  80219. var cells = oSettings.aoFooter[0];
  80220. for ( i=0, ien=cells.length ; i<ien ; i++ ) {
  80221. column = columns[i];
  80222. column.nTf = cells[i].cell;
  80223. if ( column.sClass ) {
  80224. $(column.nTf).addClass( column.sClass );
  80225. }
  80226. }
  80227. }
  80228. }
  80229. /**
  80230. * Draw the header (or footer) element based on the column visibility states. The
  80231. * methodology here is to use the layout array from _fnDetectHeader, modified for
  80232. * the instantaneous column visibility, to construct the new layout. The grid is
  80233. * traversed over cell at a time in a rows x columns grid fashion, although each
  80234. * cell insert can cover multiple elements in the grid - which is tracks using the
  80235. * aApplied array. Cell inserts in the grid will only occur where there isn't
  80236. * already a cell in that position.
  80237. * @param {object} oSettings dataTables settings object
  80238. * @param array {objects} aoSource Layout array from _fnDetectHeader
  80239. * @param {boolean} [bIncludeHidden=false] If true then include the hidden columns in the calc,
  80240. * @memberof DataTable#oApi
  80241. */
  80242. function _fnDrawHead( oSettings, aoSource, bIncludeHidden )
  80243. {
  80244. var i, iLen, j, jLen, k, kLen, n, nLocalTr;
  80245. var aoLocal = [];
  80246. var aApplied = [];
  80247. var iColumns = oSettings.aoColumns.length;
  80248. var iRowspan, iColspan;
  80249. if ( ! aoSource )
  80250. {
  80251. return;
  80252. }
  80253. if ( bIncludeHidden === undefined )
  80254. {
  80255. bIncludeHidden = false;
  80256. }
  80257. /* Make a copy of the master layout array, but without the visible columns in it */
  80258. for ( i=0, iLen=aoSource.length ; i<iLen ; i++ )
  80259. {
  80260. aoLocal[i] = aoSource[i].slice();
  80261. aoLocal[i].nTr = aoSource[i].nTr;
  80262. /* Remove any columns which are currently hidden */
  80263. for ( j=iColumns-1 ; j>=0 ; j-- )
  80264. {
  80265. if ( !oSettings.aoColumns[j].bVisible && !bIncludeHidden )
  80266. {
  80267. aoLocal[i].splice( j, 1 );
  80268. }
  80269. }
  80270. /* Prep the applied array - it needs an element for each row */
  80271. aApplied.push( [] );
  80272. }
  80273. for ( i=0, iLen=aoLocal.length ; i<iLen ; i++ )
  80274. {
  80275. nLocalTr = aoLocal[i].nTr;
  80276. /* All cells are going to be replaced, so empty out the row */
  80277. if ( nLocalTr )
  80278. {
  80279. while( (n = nLocalTr.firstChild) )
  80280. {
  80281. nLocalTr.removeChild( n );
  80282. }
  80283. }
  80284. for ( j=0, jLen=aoLocal[i].length ; j<jLen ; j++ )
  80285. {
  80286. iRowspan = 1;
  80287. iColspan = 1;
  80288. /* Check to see if there is already a cell (row/colspan) covering our target
  80289. * insert point. If there is, then there is nothing to do.
  80290. */
  80291. if ( aApplied[i][j] === undefined )
  80292. {
  80293. nLocalTr.appendChild( aoLocal[i][j].cell );
  80294. aApplied[i][j] = 1;
  80295. /* Expand the cell to cover as many rows as needed */
  80296. while ( aoLocal[i+iRowspan] !== undefined &&
  80297. aoLocal[i][j].cell == aoLocal[i+iRowspan][j].cell )
  80298. {
  80299. aApplied[i+iRowspan][j] = 1;
  80300. iRowspan++;
  80301. }
  80302. /* Expand the cell to cover as many columns as needed */
  80303. while ( aoLocal[i][j+iColspan] !== undefined &&
  80304. aoLocal[i][j].cell == aoLocal[i][j+iColspan].cell )
  80305. {
  80306. /* Must update the applied array over the rows for the columns */
  80307. for ( k=0 ; k<iRowspan ; k++ )
  80308. {
  80309. aApplied[i+k][j+iColspan] = 1;
  80310. }
  80311. iColspan++;
  80312. }
  80313. /* Do the actual expansion in the DOM */
  80314. $(aoLocal[i][j].cell)
  80315. .attr('rowspan', iRowspan)
  80316. .attr('colspan', iColspan);
  80317. }
  80318. }
  80319. }
  80320. }
  80321. /**
  80322. * Insert the required TR nodes into the table for display
  80323. * @param {object} oSettings dataTables settings object
  80324. * @memberof DataTable#oApi
  80325. */
  80326. function _fnDraw( oSettings )
  80327. {
  80328. /* Provide a pre-callback function which can be used to cancel the draw is false is returned */
  80329. var aPreDraw = _fnCallbackFire( oSettings, 'aoPreDrawCallback', 'preDraw', [oSettings] );
  80330. if ( $.inArray( false, aPreDraw ) !== -1 )
  80331. {
  80332. _fnProcessingDisplay( oSettings, false );
  80333. return;
  80334. }
  80335. var i, iLen, n;
  80336. var anRows = [];
  80337. var iRowCount = 0;
  80338. var asStripeClasses = oSettings.asStripeClasses;
  80339. var iStripes = asStripeClasses.length;
  80340. var iOpenRows = oSettings.aoOpenRows.length;
  80341. var oLang = oSettings.oLanguage;
  80342. var iInitDisplayStart = oSettings.iInitDisplayStart;
  80343. var bServerSide = _fnDataSource( oSettings ) == 'ssp';
  80344. var aiDisplay = oSettings.aiDisplay;
  80345. oSettings.bDrawing = true;
  80346. /* Check and see if we have an initial draw position from state saving */
  80347. if ( iInitDisplayStart !== undefined && iInitDisplayStart !== -1 )
  80348. {
  80349. oSettings._iDisplayStart = bServerSide ?
  80350. iInitDisplayStart :
  80351. iInitDisplayStart >= oSettings.fnRecordsDisplay() ?
  80352. 0 :
  80353. iInitDisplayStart;
  80354. oSettings.iInitDisplayStart = -1;
  80355. }
  80356. var iDisplayStart = oSettings._iDisplayStart;
  80357. var iDisplayEnd = oSettings.fnDisplayEnd();
  80358. /* Server-side processing draw intercept */
  80359. if ( oSettings.bDeferLoading )
  80360. {
  80361. oSettings.bDeferLoading = false;
  80362. oSettings.iDraw++;
  80363. _fnProcessingDisplay( oSettings, false );
  80364. }
  80365. else if ( !bServerSide )
  80366. {
  80367. oSettings.iDraw++;
  80368. }
  80369. else if ( !oSettings.bDestroying && !_fnAjaxUpdate( oSettings ) )
  80370. {
  80371. return;
  80372. }
  80373. if ( aiDisplay.length !== 0 )
  80374. {
  80375. var iStart = bServerSide ? 0 : iDisplayStart;
  80376. var iEnd = bServerSide ? oSettings.aoData.length : iDisplayEnd;
  80377. for ( var j=iStart ; j<iEnd ; j++ )
  80378. {
  80379. var iDataIndex = aiDisplay[j];
  80380. var aoData = oSettings.aoData[ iDataIndex ];
  80381. if ( aoData.nTr === null )
  80382. {
  80383. _fnCreateTr( oSettings, iDataIndex );
  80384. }
  80385. var nRow = aoData.nTr;
  80386. /* Remove the old striping classes and then add the new one */
  80387. if ( iStripes !== 0 )
  80388. {
  80389. var sStripe = asStripeClasses[ iRowCount % iStripes ];
  80390. if ( aoData._sRowStripe != sStripe )
  80391. {
  80392. $(nRow).removeClass( aoData._sRowStripe ).addClass( sStripe );
  80393. aoData._sRowStripe = sStripe;
  80394. }
  80395. }
  80396. // Row callback functions - might want to manipulate the row
  80397. // iRowCount and j are not currently documented. Are they at all
  80398. // useful?
  80399. _fnCallbackFire( oSettings, 'aoRowCallback', null,
  80400. [nRow, aoData._aData, iRowCount, j] );
  80401. anRows.push( nRow );
  80402. iRowCount++;
  80403. }
  80404. }
  80405. else
  80406. {
  80407. /* Table is empty - create a row with an empty message in it */
  80408. var sZero = oLang.sZeroRecords;
  80409. if ( oSettings.iDraw == 1 && _fnDataSource( oSettings ) == 'ajax' )
  80410. {
  80411. sZero = oLang.sLoadingRecords;
  80412. }
  80413. else if ( oLang.sEmptyTable && oSettings.fnRecordsTotal() === 0 )
  80414. {
  80415. sZero = oLang.sEmptyTable;
  80416. }
  80417. anRows[ 0 ] = $( '<tr/>', { 'class': iStripes ? asStripeClasses[0] : '' } )
  80418. .append( $('<td />', {
  80419. 'valign': 'top',
  80420. 'colSpan': _fnVisbleColumns( oSettings ),
  80421. 'class': oSettings.oClasses.sRowEmpty
  80422. } ).html( sZero ) )[0];
  80423. }
  80424. /* Header and footer callbacks */
  80425. _fnCallbackFire( oSettings, 'aoHeaderCallback', 'header', [ $(oSettings.nTHead).children('tr')[0],
  80426. _fnGetDataMaster( oSettings ), iDisplayStart, iDisplayEnd, aiDisplay ] );
  80427. _fnCallbackFire( oSettings, 'aoFooterCallback', 'footer', [ $(oSettings.nTFoot).children('tr')[0],
  80428. _fnGetDataMaster( oSettings ), iDisplayStart, iDisplayEnd, aiDisplay ] );
  80429. var body = $(oSettings.nTBody);
  80430. body.children().detach();
  80431. body.append( $(anRows) );
  80432. /* Call all required callback functions for the end of a draw */
  80433. _fnCallbackFire( oSettings, 'aoDrawCallback', 'draw', [oSettings] );
  80434. /* Draw is complete, sorting and filtering must be as well */
  80435. oSettings.bSorted = false;
  80436. oSettings.bFiltered = false;
  80437. oSettings.bDrawing = false;
  80438. }
  80439. /**
  80440. * Redraw the table - taking account of the various features which are enabled
  80441. * @param {object} oSettings dataTables settings object
  80442. * @param {boolean} [holdPosition] Keep the current paging position. By default
  80443. * the paging is reset to the first page
  80444. * @memberof DataTable#oApi
  80445. */
  80446. function _fnReDraw( settings, holdPosition )
  80447. {
  80448. var
  80449. features = settings.oFeatures,
  80450. sort = features.bSort,
  80451. filter = features.bFilter;
  80452. if ( sort ) {
  80453. _fnSort( settings );
  80454. }
  80455. if ( filter ) {
  80456. _fnFilterComplete( settings, settings.oPreviousSearch );
  80457. }
  80458. else {
  80459. // No filtering, so we want to just use the display master
  80460. settings.aiDisplay = settings.aiDisplayMaster.slice();
  80461. }
  80462. if ( holdPosition !== true ) {
  80463. settings._iDisplayStart = 0;
  80464. }
  80465. // Let any modules know about the draw hold position state (used by
  80466. // scrolling internally)
  80467. settings._drawHold = holdPosition;
  80468. _fnDraw( settings );
  80469. settings._drawHold = false;
  80470. }
  80471. /**
  80472. * Add the options to the page HTML for the table
  80473. * @param {object} oSettings dataTables settings object
  80474. * @memberof DataTable#oApi
  80475. */
  80476. function _fnAddOptionsHtml ( oSettings )
  80477. {
  80478. var classes = oSettings.oClasses;
  80479. var table = $(oSettings.nTable);
  80480. var holding = $('<div/>').insertBefore( table ); // Holding element for speed
  80481. var features = oSettings.oFeatures;
  80482. // All DataTables are wrapped in a div
  80483. var insert = $('<div/>', {
  80484. id: oSettings.sTableId+'_wrapper',
  80485. 'class': classes.sWrapper + (oSettings.nTFoot ? '' : ' '+classes.sNoFooter)
  80486. } );
  80487. oSettings.nHolding = holding[0];
  80488. oSettings.nTableWrapper = insert[0];
  80489. oSettings.nTableReinsertBefore = oSettings.nTable.nextSibling;
  80490. /* Loop over the user set positioning and place the elements as needed */
  80491. var aDom = oSettings.sDom.split('');
  80492. var featureNode, cOption, nNewNode, cNext, sAttr, j;
  80493. for ( var i=0 ; i<aDom.length ; i++ )
  80494. {
  80495. featureNode = null;
  80496. cOption = aDom[i];
  80497. if ( cOption == '<' )
  80498. {
  80499. /* New container div */
  80500. nNewNode = $('<div/>')[0];
  80501. /* Check to see if we should append an id and/or a class name to the container */
  80502. cNext = aDom[i+1];
  80503. if ( cNext == "'" || cNext == '"' )
  80504. {
  80505. sAttr = "";
  80506. j = 2;
  80507. while ( aDom[i+j] != cNext )
  80508. {
  80509. sAttr += aDom[i+j];
  80510. j++;
  80511. }
  80512. /* Replace jQuery UI constants @todo depreciated */
  80513. if ( sAttr == "H" )
  80514. {
  80515. sAttr = classes.sJUIHeader;
  80516. }
  80517. else if ( sAttr == "F" )
  80518. {
  80519. sAttr = classes.sJUIFooter;
  80520. }
  80521. /* The attribute can be in the format of "#id.class", "#id" or "class" This logic
  80522. * breaks the string into parts and applies them as needed
  80523. */
  80524. if ( sAttr.indexOf('.') != -1 )
  80525. {
  80526. var aSplit = sAttr.split('.');
  80527. nNewNode.id = aSplit[0].substr(1, aSplit[0].length-1);
  80528. nNewNode.className = aSplit[1];
  80529. }
  80530. else if ( sAttr.charAt(0) == "#" )
  80531. {
  80532. nNewNode.id = sAttr.substr(1, sAttr.length-1);
  80533. }
  80534. else
  80535. {
  80536. nNewNode.className = sAttr;
  80537. }
  80538. i += j; /* Move along the position array */
  80539. }
  80540. insert.append( nNewNode );
  80541. insert = $(nNewNode);
  80542. }
  80543. else if ( cOption == '>' )
  80544. {
  80545. /* End container div */
  80546. insert = insert.parent();
  80547. }
  80548. // @todo Move options into their own plugins?
  80549. else if ( cOption == 'l' && features.bPaginate && features.bLengthChange )
  80550. {
  80551. /* Length */
  80552. featureNode = _fnFeatureHtmlLength( oSettings );
  80553. }
  80554. else if ( cOption == 'f' && features.bFilter )
  80555. {
  80556. /* Filter */
  80557. featureNode = _fnFeatureHtmlFilter( oSettings );
  80558. }
  80559. else if ( cOption == 'r' && features.bProcessing )
  80560. {
  80561. /* pRocessing */
  80562. featureNode = _fnFeatureHtmlProcessing( oSettings );
  80563. }
  80564. else if ( cOption == 't' )
  80565. {
  80566. /* Table */
  80567. featureNode = _fnFeatureHtmlTable( oSettings );
  80568. }
  80569. else if ( cOption == 'i' && features.bInfo )
  80570. {
  80571. /* Info */
  80572. featureNode = _fnFeatureHtmlInfo( oSettings );
  80573. }
  80574. else if ( cOption == 'p' && features.bPaginate )
  80575. {
  80576. /* Pagination */
  80577. featureNode = _fnFeatureHtmlPaginate( oSettings );
  80578. }
  80579. else if ( DataTable.ext.feature.length !== 0 )
  80580. {
  80581. /* Plug-in features */
  80582. var aoFeatures = DataTable.ext.feature;
  80583. for ( var k=0, kLen=aoFeatures.length ; k<kLen ; k++ )
  80584. {
  80585. if ( cOption == aoFeatures[k].cFeature )
  80586. {
  80587. featureNode = aoFeatures[k].fnInit( oSettings );
  80588. break;
  80589. }
  80590. }
  80591. }
  80592. /* Add to the 2D features array */
  80593. if ( featureNode )
  80594. {
  80595. var aanFeatures = oSettings.aanFeatures;
  80596. if ( ! aanFeatures[cOption] )
  80597. {
  80598. aanFeatures[cOption] = [];
  80599. }
  80600. aanFeatures[cOption].push( featureNode );
  80601. insert.append( featureNode );
  80602. }
  80603. }
  80604. /* Built our DOM structure - replace the holding div with what we want */
  80605. holding.replaceWith( insert );
  80606. oSettings.nHolding = null;
  80607. }
  80608. /**
  80609. * Use the DOM source to create up an array of header cells. The idea here is to
  80610. * create a layout grid (array) of rows x columns, which contains a reference
  80611. * to the cell that that point in the grid (regardless of col/rowspan), such that
  80612. * any column / row could be removed and the new grid constructed
  80613. * @param array {object} aLayout Array to store the calculated layout in
  80614. * @param {node} nThead The header/footer element for the table
  80615. * @memberof DataTable#oApi
  80616. */
  80617. function _fnDetectHeader ( aLayout, nThead )
  80618. {
  80619. var nTrs = $(nThead).children('tr');
  80620. var nTr, nCell;
  80621. var i, k, l, iLen, jLen, iColShifted, iColumn, iColspan, iRowspan;
  80622. var bUnique;
  80623. var fnShiftCol = function ( a, i, j ) {
  80624. var k = a[i];
  80625. while ( k[j] ) {
  80626. j++;
  80627. }
  80628. return j;
  80629. };
  80630. aLayout.splice( 0, aLayout.length );
  80631. /* We know how many rows there are in the layout - so prep it */
  80632. for ( i=0, iLen=nTrs.length ; i<iLen ; i++ )
  80633. {
  80634. aLayout.push( [] );
  80635. }
  80636. /* Calculate a layout array */
  80637. for ( i=0, iLen=nTrs.length ; i<iLen ; i++ )
  80638. {
  80639. nTr = nTrs[i];
  80640. iColumn = 0;
  80641. /* For every cell in the row... */
  80642. nCell = nTr.firstChild;
  80643. while ( nCell ) {
  80644. if ( nCell.nodeName.toUpperCase() == "TD" ||
  80645. nCell.nodeName.toUpperCase() == "TH" )
  80646. {
  80647. /* Get the col and rowspan attributes from the DOM and sanitise them */
  80648. iColspan = nCell.getAttribute('colspan') * 1;
  80649. iRowspan = nCell.getAttribute('rowspan') * 1;
  80650. iColspan = (!iColspan || iColspan===0 || iColspan===1) ? 1 : iColspan;
  80651. iRowspan = (!iRowspan || iRowspan===0 || iRowspan===1) ? 1 : iRowspan;
  80652. /* There might be colspan cells already in this row, so shift our target
  80653. * accordingly
  80654. */
  80655. iColShifted = fnShiftCol( aLayout, i, iColumn );
  80656. /* Cache calculation for unique columns */
  80657. bUnique = iColspan === 1 ? true : false;
  80658. /* If there is col / rowspan, copy the information into the layout grid */
  80659. for ( l=0 ; l<iColspan ; l++ )
  80660. {
  80661. for ( k=0 ; k<iRowspan ; k++ )
  80662. {
  80663. aLayout[i+k][iColShifted+l] = {
  80664. "cell": nCell,
  80665. "unique": bUnique
  80666. };
  80667. aLayout[i+k].nTr = nTr;
  80668. }
  80669. }
  80670. }
  80671. nCell = nCell.nextSibling;
  80672. }
  80673. }
  80674. }
  80675. /**
  80676. * Get an array of unique th elements, one for each column
  80677. * @param {object} oSettings dataTables settings object
  80678. * @param {node} nHeader automatically detect the layout from this node - optional
  80679. * @param {array} aLayout thead/tfoot layout from _fnDetectHeader - optional
  80680. * @returns array {node} aReturn list of unique th's
  80681. * @memberof DataTable#oApi
  80682. */
  80683. function _fnGetUniqueThs ( oSettings, nHeader, aLayout )
  80684. {
  80685. var aReturn = [];
  80686. if ( !aLayout )
  80687. {
  80688. aLayout = oSettings.aoHeader;
  80689. if ( nHeader )
  80690. {
  80691. aLayout = [];
  80692. _fnDetectHeader( aLayout, nHeader );
  80693. }
  80694. }
  80695. for ( var i=0, iLen=aLayout.length ; i<iLen ; i++ )
  80696. {
  80697. for ( var j=0, jLen=aLayout[i].length ; j<jLen ; j++ )
  80698. {
  80699. if ( aLayout[i][j].unique &&
  80700. (!aReturn[j] || !oSettings.bSortCellsTop) )
  80701. {
  80702. aReturn[j] = aLayout[i][j].cell;
  80703. }
  80704. }
  80705. }
  80706. return aReturn;
  80707. }
  80708. /**
  80709. * Create an Ajax call based on the table's settings, taking into account that
  80710. * parameters can have multiple forms, and backwards compatibility.
  80711. *
  80712. * @param {object} oSettings dataTables settings object
  80713. * @param {array} data Data to send to the server, required by
  80714. * DataTables - may be augmented by developer callbacks
  80715. * @param {function} fn Callback function to run when data is obtained
  80716. */
  80717. function _fnBuildAjax( oSettings, data, fn )
  80718. {
  80719. // Compatibility with 1.9-, allow fnServerData and event to manipulate
  80720. _fnCallbackFire( oSettings, 'aoServerParams', 'serverParams', [data] );
  80721. // Convert to object based for 1.10+ if using the old array scheme which can
  80722. // come from server-side processing or serverParams
  80723. if ( data && $.isArray(data) ) {
  80724. var tmp = {};
  80725. var rbracket = /(.*?)\[\]$/;
  80726. $.each( data, function (key, val) {
  80727. var match = val.name.match(rbracket);
  80728. if ( match ) {
  80729. // Support for arrays
  80730. var name = match[0];
  80731. if ( ! tmp[ name ] ) {
  80732. tmp[ name ] = [];
  80733. }
  80734. tmp[ name ].push( val.value );
  80735. }
  80736. else {
  80737. tmp[val.name] = val.value;
  80738. }
  80739. } );
  80740. data = tmp;
  80741. }
  80742. var ajaxData;
  80743. var ajax = oSettings.ajax;
  80744. var instance = oSettings.oInstance;
  80745. var callback = function ( json ) {
  80746. _fnCallbackFire( oSettings, null, 'xhr', [oSettings, json, oSettings.jqXHR] );
  80747. fn( json );
  80748. };
  80749. if ( $.isPlainObject( ajax ) && ajax.data )
  80750. {
  80751. ajaxData = ajax.data;
  80752. var newData = $.isFunction( ajaxData ) ?
  80753. ajaxData( data, oSettings ) : // fn can manipulate data or return
  80754. ajaxData; // an object object or array to merge
  80755. // If the function returned something, use that alone
  80756. data = $.isFunction( ajaxData ) && newData ?
  80757. newData :
  80758. $.extend( true, data, newData );
  80759. // Remove the data property as we've resolved it already and don't want
  80760. // jQuery to do it again (it is restored at the end of the function)
  80761. delete ajax.data;
  80762. }
  80763. var baseAjax = {
  80764. "data": data,
  80765. "success": function (json) {
  80766. var error = json.error || json.sError;
  80767. if ( error ) {
  80768. _fnLog( oSettings, 0, error );
  80769. }
  80770. oSettings.json = json;
  80771. callback( json );
  80772. },
  80773. "dataType": "json",
  80774. "cache": false,
  80775. "type": oSettings.sServerMethod,
  80776. "error": function (xhr, error, thrown) {
  80777. var ret = _fnCallbackFire( oSettings, null, 'xhr', [oSettings, null, oSettings.jqXHR] );
  80778. if ( $.inArray( true, ret ) === -1 ) {
  80779. if ( error == "parsererror" ) {
  80780. _fnLog( oSettings, 0, 'Invalid JSON response', 1 );
  80781. }
  80782. else if ( xhr.readyState === 4 ) {
  80783. _fnLog( oSettings, 0, 'Ajax error', 7 );
  80784. }
  80785. }
  80786. _fnProcessingDisplay( oSettings, false );
  80787. }
  80788. };
  80789. // Store the data submitted for the API
  80790. oSettings.oAjaxData = data;
  80791. // Allow plug-ins and external processes to modify the data
  80792. _fnCallbackFire( oSettings, null, 'preXhr', [oSettings, data] );
  80793. if ( oSettings.fnServerData )
  80794. {
  80795. // DataTables 1.9- compatibility
  80796. oSettings.fnServerData.call( instance,
  80797. oSettings.sAjaxSource,
  80798. $.map( data, function (val, key) { // Need to convert back to 1.9 trad format
  80799. return { name: key, value: val };
  80800. } ),
  80801. callback,
  80802. oSettings
  80803. );
  80804. }
  80805. else if ( oSettings.sAjaxSource || typeof ajax === 'string' )
  80806. {
  80807. // DataTables 1.9- compatibility
  80808. oSettings.jqXHR = $.ajax( $.extend( baseAjax, {
  80809. url: ajax || oSettings.sAjaxSource
  80810. } ) );
  80811. }
  80812. else if ( $.isFunction( ajax ) )
  80813. {
  80814. // Is a function - let the caller define what needs to be done
  80815. oSettings.jqXHR = ajax.call( instance, data, callback, oSettings );
  80816. }
  80817. else
  80818. {
  80819. // Object to extend the base settings
  80820. oSettings.jqXHR = $.ajax( $.extend( baseAjax, ajax ) );
  80821. // Restore for next time around
  80822. ajax.data = ajaxData;
  80823. }
  80824. }
  80825. /**
  80826. * Update the table using an Ajax call
  80827. * @param {object} settings dataTables settings object
  80828. * @returns {boolean} Block the table drawing or not
  80829. * @memberof DataTable#oApi
  80830. */
  80831. function _fnAjaxUpdate( settings )
  80832. {
  80833. if ( settings.bAjaxDataGet ) {
  80834. settings.iDraw++;
  80835. _fnProcessingDisplay( settings, true );
  80836. _fnBuildAjax(
  80837. settings,
  80838. _fnAjaxParameters( settings ),
  80839. function(json) {
  80840. _fnAjaxUpdateDraw( settings, json );
  80841. }
  80842. );
  80843. return false;
  80844. }
  80845. return true;
  80846. }
  80847. /**
  80848. * Build up the parameters in an object needed for a server-side processing
  80849. * request. Note that this is basically done twice, is different ways - a modern
  80850. * method which is used by default in DataTables 1.10 which uses objects and
  80851. * arrays, or the 1.9- method with is name / value pairs. 1.9 method is used if
  80852. * the sAjaxSource option is used in the initialisation, or the legacyAjax
  80853. * option is set.
  80854. * @param {object} oSettings dataTables settings object
  80855. * @returns {bool} block the table drawing or not
  80856. * @memberof DataTable#oApi
  80857. */
  80858. function _fnAjaxParameters( settings )
  80859. {
  80860. var
  80861. columns = settings.aoColumns,
  80862. columnCount = columns.length,
  80863. features = settings.oFeatures,
  80864. preSearch = settings.oPreviousSearch,
  80865. preColSearch = settings.aoPreSearchCols,
  80866. i, data = [], dataProp, column, columnSearch,
  80867. sort = _fnSortFlatten( settings ),
  80868. displayStart = settings._iDisplayStart,
  80869. displayLength = features.bPaginate !== false ?
  80870. settings._iDisplayLength :
  80871. -1;
  80872. var param = function ( name, value ) {
  80873. data.push( { 'name': name, 'value': value } );
  80874. };
  80875. // DataTables 1.9- compatible method
  80876. param( 'sEcho', settings.iDraw );
  80877. param( 'iColumns', columnCount );
  80878. param( 'sColumns', _pluck( columns, 'sName' ).join(',') );
  80879. param( 'iDisplayStart', displayStart );
  80880. param( 'iDisplayLength', displayLength );
  80881. // DataTables 1.10+ method
  80882. var d = {
  80883. draw: settings.iDraw,
  80884. columns: [],
  80885. order: [],
  80886. start: displayStart,
  80887. length: displayLength,
  80888. search: {
  80889. value: preSearch.sSearch,
  80890. regex: preSearch.bRegex
  80891. }
  80892. };
  80893. for ( i=0 ; i<columnCount ; i++ ) {
  80894. column = columns[i];
  80895. columnSearch = preColSearch[i];
  80896. dataProp = typeof column.mData=="function" ? 'function' : column.mData ;
  80897. d.columns.push( {
  80898. data: dataProp,
  80899. name: column.sName,
  80900. searchable: column.bSearchable,
  80901. orderable: column.bSortable,
  80902. search: {
  80903. value: columnSearch.sSearch,
  80904. regex: columnSearch.bRegex
  80905. }
  80906. } );
  80907. param( "mDataProp_"+i, dataProp );
  80908. if ( features.bFilter ) {
  80909. param( 'sSearch_'+i, columnSearch.sSearch );
  80910. param( 'bRegex_'+i, columnSearch.bRegex );
  80911. param( 'bSearchable_'+i, column.bSearchable );
  80912. }
  80913. if ( features.bSort ) {
  80914. param( 'bSortable_'+i, column.bSortable );
  80915. }
  80916. }
  80917. if ( features.bFilter ) {
  80918. param( 'sSearch', preSearch.sSearch );
  80919. param( 'bRegex', preSearch.bRegex );
  80920. }
  80921. if ( features.bSort ) {
  80922. $.each( sort, function ( i, val ) {
  80923. d.order.push( { column: val.col, dir: val.dir } );
  80924. param( 'iSortCol_'+i, val.col );
  80925. param( 'sSortDir_'+i, val.dir );
  80926. } );
  80927. param( 'iSortingCols', sort.length );
  80928. }
  80929. // If the legacy.ajax parameter is null, then we automatically decide which
  80930. // form to use, based on sAjaxSource
  80931. var legacy = DataTable.ext.legacy.ajax;
  80932. if ( legacy === null ) {
  80933. return settings.sAjaxSource ? data : d;
  80934. }
  80935. // Otherwise, if legacy has been specified then we use that to decide on the
  80936. // form
  80937. return legacy ? data : d;
  80938. }
  80939. /**
  80940. * Data the data from the server (nuking the old) and redraw the table
  80941. * @param {object} oSettings dataTables settings object
  80942. * @param {object} json json data return from the server.
  80943. * @param {string} json.sEcho Tracking flag for DataTables to match requests
  80944. * @param {int} json.iTotalRecords Number of records in the data set, not accounting for filtering
  80945. * @param {int} json.iTotalDisplayRecords Number of records in the data set, accounting for filtering
  80946. * @param {array} json.aaData The data to display on this page
  80947. * @param {string} [json.sColumns] Column ordering (sName, comma separated)
  80948. * @memberof DataTable#oApi
  80949. */
  80950. function _fnAjaxUpdateDraw ( settings, json )
  80951. {
  80952. // v1.10 uses camelCase variables, while 1.9 uses Hungarian notation.
  80953. // Support both
  80954. var compat = function ( old, modern ) {
  80955. return json[old] !== undefined ? json[old] : json[modern];
  80956. };
  80957. var data = _fnAjaxDataSrc( settings, json );
  80958. var draw = compat( 'sEcho', 'draw' );
  80959. var recordsTotal = compat( 'iTotalRecords', 'recordsTotal' );
  80960. var recordsFiltered = compat( 'iTotalDisplayRecords', 'recordsFiltered' );
  80961. if ( draw ) {
  80962. // Protect against out of sequence returns
  80963. if ( draw*1 < settings.iDraw ) {
  80964. return;
  80965. }
  80966. settings.iDraw = draw * 1;
  80967. }
  80968. _fnClearTable( settings );
  80969. settings._iRecordsTotal = parseInt(recordsTotal, 10);
  80970. settings._iRecordsDisplay = parseInt(recordsFiltered, 10);
  80971. for ( var i=0, ien=data.length ; i<ien ; i++ ) {
  80972. _fnAddData( settings, data[i] );
  80973. }
  80974. settings.aiDisplay = settings.aiDisplayMaster.slice();
  80975. settings.bAjaxDataGet = false;
  80976. _fnDraw( settings );
  80977. if ( ! settings._bInitComplete ) {
  80978. _fnInitComplete( settings, json );
  80979. }
  80980. settings.bAjaxDataGet = true;
  80981. _fnProcessingDisplay( settings, false );
  80982. }
  80983. /**
  80984. * Get the data from the JSON data source to use for drawing a table. Using
  80985. * `_fnGetObjectDataFn` allows the data to be sourced from a property of the
  80986. * source object, or from a processing function.
  80987. * @param {object} oSettings dataTables settings object
  80988. * @param {object} json Data source object / array from the server
  80989. * @return {array} Array of data to use
  80990. */
  80991. function _fnAjaxDataSrc ( oSettings, json )
  80992. {
  80993. var dataSrc = $.isPlainObject( oSettings.ajax ) && oSettings.ajax.dataSrc !== undefined ?
  80994. oSettings.ajax.dataSrc :
  80995. oSettings.sAjaxDataProp; // Compatibility with 1.9-.
  80996. // Compatibility with 1.9-. In order to read from aaData, check if the
  80997. // default has been changed, if not, check for aaData
  80998. if ( dataSrc === 'data' ) {
  80999. return json.aaData || json[dataSrc];
  81000. }
  81001. return dataSrc !== "" ?
  81002. _fnGetObjectDataFn( dataSrc )( json ) :
  81003. json;
  81004. }
  81005. /**
  81006. * Generate the node required for filtering text
  81007. * @returns {node} Filter control element
  81008. * @param {object} oSettings dataTables settings object
  81009. * @memberof DataTable#oApi
  81010. */
  81011. function _fnFeatureHtmlFilter ( settings )
  81012. {
  81013. var classes = settings.oClasses;
  81014. var tableId = settings.sTableId;
  81015. var language = settings.oLanguage;
  81016. var previousSearch = settings.oPreviousSearch;
  81017. var features = settings.aanFeatures;
  81018. var input = '<input type="search" class="'+classes.sFilterInput+'"/>';
  81019. var str = language.sSearch;
  81020. str = str.match(/_INPUT_/) ?
  81021. str.replace('_INPUT_', input) :
  81022. str+input;
  81023. var filter = $('<div/>', {
  81024. 'id': ! features.f ? tableId+'_filter' : null,
  81025. 'class': classes.sFilter
  81026. } )
  81027. .append( $('<label/>' ).append( str ) );
  81028. var searchFn = function() {
  81029. /* Update all other filter input elements for the new display */
  81030. var n = features.f;
  81031. var val = !this.value ? "" : this.value; // mental IE8 fix :-(
  81032. /* Now do the filter */
  81033. if ( val != previousSearch.sSearch ) {
  81034. _fnFilterComplete( settings, {
  81035. "sSearch": val,
  81036. "bRegex": previousSearch.bRegex,
  81037. "bSmart": previousSearch.bSmart ,
  81038. "bCaseInsensitive": previousSearch.bCaseInsensitive
  81039. } );
  81040. // Need to redraw, without resorting
  81041. settings._iDisplayStart = 0;
  81042. _fnDraw( settings );
  81043. }
  81044. };
  81045. var searchDelay = settings.searchDelay !== null ?
  81046. settings.searchDelay :
  81047. _fnDataSource( settings ) === 'ssp' ?
  81048. 400 :
  81049. 0;
  81050. var jqFilter = $('input', filter)
  81051. .val( previousSearch.sSearch )
  81052. .attr( 'placeholder', language.sSearchPlaceholder )
  81053. .bind(
  81054. 'keyup.DT search.DT input.DT paste.DT cut.DT',
  81055. searchDelay ?
  81056. _fnThrottle( searchFn, searchDelay ) :
  81057. searchFn
  81058. )
  81059. .bind( 'keypress.DT', function(e) {
  81060. /* Prevent form submission */
  81061. if ( e.keyCode == 13 ) {
  81062. return false;
  81063. }
  81064. } )
  81065. .attr('aria-controls', tableId);
  81066. // Update the input elements whenever the table is filtered
  81067. $(settings.nTable).on( 'search.dt.DT', function ( ev, s ) {
  81068. if ( settings === s ) {
  81069. // IE9 throws an 'unknown error' if document.activeElement is used
  81070. // inside an iframe or frame...
  81071. try {
  81072. if ( jqFilter[0] !== document.activeElement ) {
  81073. jqFilter.val( previousSearch.sSearch );
  81074. }
  81075. }
  81076. catch ( e ) {}
  81077. }
  81078. } );
  81079. return filter[0];
  81080. }
  81081. /**
  81082. * Filter the table using both the global filter and column based filtering
  81083. * @param {object} oSettings dataTables settings object
  81084. * @param {object} oSearch search information
  81085. * @param {int} [iForce] force a research of the master array (1) or not (undefined or 0)
  81086. * @memberof DataTable#oApi
  81087. */
  81088. function _fnFilterComplete ( oSettings, oInput, iForce )
  81089. {
  81090. var oPrevSearch = oSettings.oPreviousSearch;
  81091. var aoPrevSearch = oSettings.aoPreSearchCols;
  81092. var fnSaveFilter = function ( oFilter ) {
  81093. /* Save the filtering values */
  81094. oPrevSearch.sSearch = oFilter.sSearch;
  81095. oPrevSearch.bRegex = oFilter.bRegex;
  81096. oPrevSearch.bSmart = oFilter.bSmart;
  81097. oPrevSearch.bCaseInsensitive = oFilter.bCaseInsensitive;
  81098. };
  81099. var fnRegex = function ( o ) {
  81100. // Backwards compatibility with the bEscapeRegex option
  81101. return o.bEscapeRegex !== undefined ? !o.bEscapeRegex : o.bRegex;
  81102. };
  81103. // Resolve any column types that are unknown due to addition or invalidation
  81104. // @todo As per sort - can this be moved into an event handler?
  81105. _fnColumnTypes( oSettings );
  81106. /* In server-side processing all filtering is done by the server, so no point hanging around here */
  81107. if ( _fnDataSource( oSettings ) != 'ssp' )
  81108. {
  81109. /* Global filter */
  81110. _fnFilter( oSettings, oInput.sSearch, iForce, fnRegex(oInput), oInput.bSmart, oInput.bCaseInsensitive );
  81111. fnSaveFilter( oInput );
  81112. /* Now do the individual column filter */
  81113. for ( var i=0 ; i<aoPrevSearch.length ; i++ )
  81114. {
  81115. _fnFilterColumn( oSettings, aoPrevSearch[i].sSearch, i, fnRegex(aoPrevSearch[i]),
  81116. aoPrevSearch[i].bSmart, aoPrevSearch[i].bCaseInsensitive );
  81117. }
  81118. /* Custom filtering */
  81119. _fnFilterCustom( oSettings );
  81120. }
  81121. else
  81122. {
  81123. fnSaveFilter( oInput );
  81124. }
  81125. /* Tell the draw function we have been filtering */
  81126. oSettings.bFiltered = true;
  81127. _fnCallbackFire( oSettings, null, 'search', [oSettings] );
  81128. }
  81129. /**
  81130. * Apply custom filtering functions
  81131. * @param {object} oSettings dataTables settings object
  81132. * @memberof DataTable#oApi
  81133. */
  81134. function _fnFilterCustom( settings )
  81135. {
  81136. var filters = DataTable.ext.search;
  81137. var displayRows = settings.aiDisplay;
  81138. var row, rowIdx;
  81139. for ( var i=0, ien=filters.length ; i<ien ; i++ ) {
  81140. var rows = [];
  81141. // Loop over each row and see if it should be included
  81142. for ( var j=0, jen=displayRows.length ; j<jen ; j++ ) {
  81143. rowIdx = displayRows[ j ];
  81144. row = settings.aoData[ rowIdx ];
  81145. if ( filters[i]( settings, row._aFilterData, rowIdx, row._aData, j ) ) {
  81146. rows.push( rowIdx );
  81147. }
  81148. }
  81149. // So the array reference doesn't break set the results into the
  81150. // existing array
  81151. displayRows.length = 0;
  81152. displayRows.push.apply( displayRows, rows );
  81153. }
  81154. }
  81155. /**
  81156. * Filter the table on a per-column basis
  81157. * @param {object} oSettings dataTables settings object
  81158. * @param {string} sInput string to filter on
  81159. * @param {int} iColumn column to filter
  81160. * @param {bool} bRegex treat search string as a regular expression or not
  81161. * @param {bool} bSmart use smart filtering or not
  81162. * @param {bool} bCaseInsensitive Do case insenstive matching or not
  81163. * @memberof DataTable#oApi
  81164. */
  81165. function _fnFilterColumn ( settings, searchStr, colIdx, regex, smart, caseInsensitive )
  81166. {
  81167. if ( searchStr === '' ) {
  81168. return;
  81169. }
  81170. var data;
  81171. var display = settings.aiDisplay;
  81172. var rpSearch = _fnFilterCreateSearch( searchStr, regex, smart, caseInsensitive );
  81173. for ( var i=display.length-1 ; i>=0 ; i-- ) {
  81174. data = settings.aoData[ display[i] ]._aFilterData[ colIdx ];
  81175. if ( ! rpSearch.test( data ) ) {
  81176. display.splice( i, 1 );
  81177. }
  81178. }
  81179. }
  81180. /**
  81181. * Filter the data table based on user input and draw the table
  81182. * @param {object} settings dataTables settings object
  81183. * @param {string} input string to filter on
  81184. * @param {int} force optional - force a research of the master array (1) or not (undefined or 0)
  81185. * @param {bool} regex treat as a regular expression or not
  81186. * @param {bool} smart perform smart filtering or not
  81187. * @param {bool} caseInsensitive Do case insenstive matching or not
  81188. * @memberof DataTable#oApi
  81189. */
  81190. function _fnFilter( settings, input, force, regex, smart, caseInsensitive )
  81191. {
  81192. var rpSearch = _fnFilterCreateSearch( input, regex, smart, caseInsensitive );
  81193. var prevSearch = settings.oPreviousSearch.sSearch;
  81194. var displayMaster = settings.aiDisplayMaster;
  81195. var display, invalidated, i;
  81196. // Need to take account of custom filtering functions - always filter
  81197. if ( DataTable.ext.search.length !== 0 ) {
  81198. force = true;
  81199. }
  81200. // Check if any of the rows were invalidated
  81201. invalidated = _fnFilterData( settings );
  81202. // If the input is blank - we just want the full data set
  81203. if ( input.length <= 0 ) {
  81204. settings.aiDisplay = displayMaster.slice();
  81205. }
  81206. else {
  81207. // New search - start from the master array
  81208. if ( invalidated ||
  81209. force ||
  81210. prevSearch.length > input.length ||
  81211. input.indexOf(prevSearch) !== 0 ||
  81212. settings.bSorted // On resort, the display master needs to be
  81213. // re-filtered since indexes will have changed
  81214. ) {
  81215. settings.aiDisplay = displayMaster.slice();
  81216. }
  81217. // Search the display array
  81218. display = settings.aiDisplay;
  81219. for ( i=display.length-1 ; i>=0 ; i-- ) {
  81220. if ( ! rpSearch.test( settings.aoData[ display[i] ]._sFilterRow ) ) {
  81221. display.splice( i, 1 );
  81222. }
  81223. }
  81224. }
  81225. }
  81226. /**
  81227. * Build a regular expression object suitable for searching a table
  81228. * @param {string} sSearch string to search for
  81229. * @param {bool} bRegex treat as a regular expression or not
  81230. * @param {bool} bSmart perform smart filtering or not
  81231. * @param {bool} bCaseInsensitive Do case insensitive matching or not
  81232. * @returns {RegExp} constructed object
  81233. * @memberof DataTable#oApi
  81234. */
  81235. function _fnFilterCreateSearch( search, regex, smart, caseInsensitive )
  81236. {
  81237. search = regex ?
  81238. search :
  81239. _fnEscapeRegex( search );
  81240. if ( smart ) {
  81241. /* For smart filtering we want to allow the search to work regardless of
  81242. * word order. We also want double quoted text to be preserved, so word
  81243. * order is important - a la google. So this is what we want to
  81244. * generate:
  81245. *
  81246. * ^(?=.*?\bone\b)(?=.*?\btwo three\b)(?=.*?\bfour\b).*$
  81247. */
  81248. var a = $.map( search.match( /"[^"]+"|[^ ]+/g ) || [''], function ( word ) {
  81249. if ( word.charAt(0) === '"' ) {
  81250. var m = word.match( /^"(.*)"$/ );
  81251. word = m ? m[1] : word;
  81252. }
  81253. return word.replace('"', '');
  81254. } );
  81255. search = '^(?=.*?'+a.join( ')(?=.*?' )+').*$';
  81256. }
  81257. return new RegExp( search, caseInsensitive ? 'i' : '' );
  81258. }
  81259. /**
  81260. * Escape a string such that it can be used in a regular expression
  81261. * @param {string} sVal string to escape
  81262. * @returns {string} escaped string
  81263. * @memberof DataTable#oApi
  81264. */
  81265. function _fnEscapeRegex ( sVal )
  81266. {
  81267. return sVal.replace( _re_escape_regex, '\\$1' );
  81268. }
  81269. var __filter_div = $('<div>')[0];
  81270. var __filter_div_textContent = __filter_div.textContent !== undefined;
  81271. // Update the filtering data for each row if needed (by invalidation or first run)
  81272. function _fnFilterData ( settings )
  81273. {
  81274. var columns = settings.aoColumns;
  81275. var column;
  81276. var i, j, ien, jen, filterData, cellData, row;
  81277. var fomatters = DataTable.ext.type.search;
  81278. var wasInvalidated = false;
  81279. for ( i=0, ien=settings.aoData.length ; i<ien ; i++ ) {
  81280. row = settings.aoData[i];
  81281. if ( ! row._aFilterData ) {
  81282. filterData = [];
  81283. for ( j=0, jen=columns.length ; j<jen ; j++ ) {
  81284. column = columns[j];
  81285. if ( column.bSearchable ) {
  81286. cellData = _fnGetCellData( settings, i, j, 'filter' );
  81287. if ( fomatters[ column.sType ] ) {
  81288. cellData = fomatters[ column.sType ]( cellData );
  81289. }
  81290. // Search in DataTables 1.10 is string based. In 1.11 this
  81291. // should be altered to also allow strict type checking.
  81292. if ( cellData === null ) {
  81293. cellData = '';
  81294. }
  81295. if ( typeof cellData !== 'string' && cellData.toString ) {
  81296. cellData = cellData.toString();
  81297. }
  81298. }
  81299. else {
  81300. cellData = '';
  81301. }
  81302. // If it looks like there is an HTML entity in the string,
  81303. // attempt to decode it so sorting works as expected. Note that
  81304. // we could use a single line of jQuery to do this, but the DOM
  81305. // method used here is much faster http://jsperf.com/html-decode
  81306. if ( cellData.indexOf && cellData.indexOf('&') !== -1 ) {
  81307. __filter_div.innerHTML = cellData;
  81308. cellData = __filter_div_textContent ?
  81309. __filter_div.textContent :
  81310. __filter_div.innerText;
  81311. }
  81312. if ( cellData.replace ) {
  81313. cellData = cellData.replace(/[\r\n]/g, '');
  81314. }
  81315. filterData.push( cellData );
  81316. }
  81317. row._aFilterData = filterData;
  81318. row._sFilterRow = filterData.join(' ');
  81319. wasInvalidated = true;
  81320. }
  81321. }
  81322. return wasInvalidated;
  81323. }
  81324. /**
  81325. * Convert from the internal Hungarian notation to camelCase for external
  81326. * interaction
  81327. * @param {object} obj Object to convert
  81328. * @returns {object} Inverted object
  81329. * @memberof DataTable#oApi
  81330. */
  81331. function _fnSearchToCamel ( obj )
  81332. {
  81333. return {
  81334. search: obj.sSearch,
  81335. smart: obj.bSmart,
  81336. regex: obj.bRegex,
  81337. caseInsensitive: obj.bCaseInsensitive
  81338. };
  81339. }
  81340. /**
  81341. * Convert from camelCase notation to the internal Hungarian. We could use the
  81342. * Hungarian convert function here, but this is cleaner
  81343. * @param {object} obj Object to convert
  81344. * @returns {object} Inverted object
  81345. * @memberof DataTable#oApi
  81346. */
  81347. function _fnSearchToHung ( obj )
  81348. {
  81349. return {
  81350. sSearch: obj.search,
  81351. bSmart: obj.smart,
  81352. bRegex: obj.regex,
  81353. bCaseInsensitive: obj.caseInsensitive
  81354. };
  81355. }
  81356. /**
  81357. * Generate the node required for the info display
  81358. * @param {object} oSettings dataTables settings object
  81359. * @returns {node} Information element
  81360. * @memberof DataTable#oApi
  81361. */
  81362. function _fnFeatureHtmlInfo ( settings )
  81363. {
  81364. var
  81365. tid = settings.sTableId,
  81366. nodes = settings.aanFeatures.i,
  81367. n = $('<div/>', {
  81368. 'class': settings.oClasses.sInfo,
  81369. 'id': ! nodes ? tid+'_info' : null
  81370. } );
  81371. if ( ! nodes ) {
  81372. // Update display on each draw
  81373. settings.aoDrawCallback.push( {
  81374. "fn": _fnUpdateInfo,
  81375. "sName": "information"
  81376. } );
  81377. n
  81378. .attr( 'role', 'status' )
  81379. .attr( 'aria-live', 'polite' );
  81380. // Table is described by our info div
  81381. $(settings.nTable).attr( 'aria-describedby', tid+'_info' );
  81382. }
  81383. return n[0];
  81384. }
  81385. /**
  81386. * Update the information elements in the display
  81387. * @param {object} settings dataTables settings object
  81388. * @memberof DataTable#oApi
  81389. */
  81390. function _fnUpdateInfo ( settings )
  81391. {
  81392. /* Show information about the table */
  81393. var nodes = settings.aanFeatures.i;
  81394. if ( nodes.length === 0 ) {
  81395. return;
  81396. }
  81397. var
  81398. lang = settings.oLanguage,
  81399. start = settings._iDisplayStart+1,
  81400. end = settings.fnDisplayEnd(),
  81401. max = settings.fnRecordsTotal(),
  81402. total = settings.fnRecordsDisplay(),
  81403. out = total ?
  81404. lang.sInfo :
  81405. lang.sInfoEmpty;
  81406. if ( total !== max ) {
  81407. /* Record set after filtering */
  81408. out += ' ' + lang.sInfoFiltered;
  81409. }
  81410. // Convert the macros
  81411. out += lang.sInfoPostFix;
  81412. out = _fnInfoMacros( settings, out );
  81413. var callback = lang.fnInfoCallback;
  81414. if ( callback !== null ) {
  81415. out = callback.call( settings.oInstance,
  81416. settings, start, end, max, total, out
  81417. );
  81418. }
  81419. $(nodes).html( out );
  81420. }
  81421. function _fnInfoMacros ( settings, str )
  81422. {
  81423. // When infinite scrolling, we are always starting at 1. _iDisplayStart is used only
  81424. // internally
  81425. var
  81426. formatter = settings.fnFormatNumber,
  81427. start = settings._iDisplayStart+1,
  81428. len = settings._iDisplayLength,
  81429. vis = settings.fnRecordsDisplay(),
  81430. all = len === -1;
  81431. return str.
  81432. replace(/_START_/g, formatter.call( settings, start ) ).
  81433. replace(/_END_/g, formatter.call( settings, settings.fnDisplayEnd() ) ).
  81434. replace(/_MAX_/g, formatter.call( settings, settings.fnRecordsTotal() ) ).
  81435. replace(/_TOTAL_/g, formatter.call( settings, vis ) ).
  81436. replace(/_PAGE_/g, formatter.call( settings, all ? 1 : Math.ceil( start / len ) ) ).
  81437. replace(/_PAGES_/g, formatter.call( settings, all ? 1 : Math.ceil( vis / len ) ) );
  81438. }
  81439. /**
  81440. * Draw the table for the first time, adding all required features
  81441. * @param {object} settings dataTables settings object
  81442. * @memberof DataTable#oApi
  81443. */
  81444. function _fnInitialise ( settings )
  81445. {
  81446. var i, iLen, iAjaxStart=settings.iInitDisplayStart;
  81447. var columns = settings.aoColumns, column;
  81448. var features = settings.oFeatures;
  81449. var deferLoading = settings.bDeferLoading; // value modified by the draw
  81450. /* Ensure that the table data is fully initialised */
  81451. if ( ! settings.bInitialised ) {
  81452. setTimeout( function(){ _fnInitialise( settings ); }, 200 );
  81453. return;
  81454. }
  81455. /* Show the display HTML options */
  81456. _fnAddOptionsHtml( settings );
  81457. /* Build and draw the header / footer for the table */
  81458. _fnBuildHead( settings );
  81459. _fnDrawHead( settings, settings.aoHeader );
  81460. _fnDrawHead( settings, settings.aoFooter );
  81461. /* Okay to show that something is going on now */
  81462. _fnProcessingDisplay( settings, true );
  81463. /* Calculate sizes for columns */
  81464. if ( features.bAutoWidth ) {
  81465. _fnCalculateColumnWidths( settings );
  81466. }
  81467. for ( i=0, iLen=columns.length ; i<iLen ; i++ ) {
  81468. column = columns[i];
  81469. if ( column.sWidth ) {
  81470. column.nTh.style.width = _fnStringToCss( column.sWidth );
  81471. }
  81472. }
  81473. _fnCallbackFire( settings, null, 'preInit', [settings] );
  81474. // If there is default sorting required - let's do it. The sort function
  81475. // will do the drawing for us. Otherwise we draw the table regardless of the
  81476. // Ajax source - this allows the table to look initialised for Ajax sourcing
  81477. // data (show 'loading' message possibly)
  81478. _fnReDraw( settings );
  81479. // Server-side processing init complete is done by _fnAjaxUpdateDraw
  81480. var dataSrc = _fnDataSource( settings );
  81481. if ( dataSrc != 'ssp' || deferLoading ) {
  81482. // if there is an ajax source load the data
  81483. if ( dataSrc == 'ajax' ) {
  81484. _fnBuildAjax( settings, [], function(json) {
  81485. var aData = _fnAjaxDataSrc( settings, json );
  81486. // Got the data - add it to the table
  81487. for ( i=0 ; i<aData.length ; i++ ) {
  81488. _fnAddData( settings, aData[i] );
  81489. }
  81490. // Reset the init display for cookie saving. We've already done
  81491. // a filter, and therefore cleared it before. So we need to make
  81492. // it appear 'fresh'
  81493. settings.iInitDisplayStart = iAjaxStart;
  81494. _fnReDraw( settings );
  81495. _fnProcessingDisplay( settings, false );
  81496. _fnInitComplete( settings, json );
  81497. }, settings );
  81498. }
  81499. else {
  81500. _fnProcessingDisplay( settings, false );
  81501. _fnInitComplete( settings );
  81502. }
  81503. }
  81504. }
  81505. /**
  81506. * Draw the table for the first time, adding all required features
  81507. * @param {object} oSettings dataTables settings object
  81508. * @param {object} [json] JSON from the server that completed the table, if using Ajax source
  81509. * with client-side processing (optional)
  81510. * @memberof DataTable#oApi
  81511. */
  81512. function _fnInitComplete ( settings, json )
  81513. {
  81514. settings._bInitComplete = true;
  81515. // When data was added after the initialisation (data or Ajax) we need to
  81516. // calculate the column sizing
  81517. if ( json || settings.oInit.aaData ) {
  81518. _fnAdjustColumnSizing( settings );
  81519. }
  81520. _fnCallbackFire( settings, 'aoInitComplete', 'init', [settings, json] );
  81521. }
  81522. function _fnLengthChange ( settings, val )
  81523. {
  81524. var len = parseInt( val, 10 );
  81525. settings._iDisplayLength = len;
  81526. _fnLengthOverflow( settings );
  81527. // Fire length change event
  81528. _fnCallbackFire( settings, null, 'length', [settings, len] );
  81529. }
  81530. /**
  81531. * Generate the node required for user display length changing
  81532. * @param {object} settings dataTables settings object
  81533. * @returns {node} Display length feature node
  81534. * @memberof DataTable#oApi
  81535. */
  81536. function _fnFeatureHtmlLength ( settings )
  81537. {
  81538. var
  81539. classes = settings.oClasses,
  81540. tableId = settings.sTableId,
  81541. menu = settings.aLengthMenu,
  81542. d2 = $.isArray( menu[0] ),
  81543. lengths = d2 ? menu[0] : menu,
  81544. language = d2 ? menu[1] : menu;
  81545. var select = $('<select/>', {
  81546. 'name': tableId+'_length',
  81547. 'aria-controls': tableId,
  81548. 'class': classes.sLengthSelect
  81549. } );
  81550. for ( var i=0, ien=lengths.length ; i<ien ; i++ ) {
  81551. select[0][ i ] = new Option( language[i], lengths[i] );
  81552. }
  81553. var div = $('<div><label/></div>').addClass( classes.sLength );
  81554. if ( ! settings.aanFeatures.l ) {
  81555. div[0].id = tableId+'_length';
  81556. }
  81557. div.children().append(
  81558. settings.oLanguage.sLengthMenu.replace( '_MENU_', select[0].outerHTML )
  81559. );
  81560. // Can't use `select` variable as user might provide their own and the
  81561. // reference is broken by the use of outerHTML
  81562. $('select', div)
  81563. .val( settings._iDisplayLength )
  81564. .bind( 'change.DT', function(e) {
  81565. _fnLengthChange( settings, $(this).val() );
  81566. _fnDraw( settings );
  81567. } );
  81568. // Update node value whenever anything changes the table's length
  81569. $(settings.nTable).bind( 'length.dt.DT', function (e, s, len) {
  81570. if ( settings === s ) {
  81571. $('select', div).val( len );
  81572. }
  81573. } );
  81574. return div[0];
  81575. }
  81576. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  81577. * Note that most of the paging logic is done in
  81578. * DataTable.ext.pager
  81579. */
  81580. /**
  81581. * Generate the node required for default pagination
  81582. * @param {object} oSettings dataTables settings object
  81583. * @returns {node} Pagination feature node
  81584. * @memberof DataTable#oApi
  81585. */
  81586. function _fnFeatureHtmlPaginate ( settings )
  81587. {
  81588. var
  81589. type = settings.sPaginationType,
  81590. plugin = DataTable.ext.pager[ type ],
  81591. modern = typeof plugin === 'function',
  81592. redraw = function( settings ) {
  81593. _fnDraw( settings );
  81594. },
  81595. node = $('<div/>').addClass( settings.oClasses.sPaging + type )[0],
  81596. features = settings.aanFeatures;
  81597. if ( ! modern ) {
  81598. plugin.fnInit( settings, node, redraw );
  81599. }
  81600. /* Add a draw callback for the pagination on first instance, to update the paging display */
  81601. if ( ! features.p )
  81602. {
  81603. node.id = settings.sTableId+'_paginate';
  81604. settings.aoDrawCallback.push( {
  81605. "fn": function( settings ) {
  81606. if ( modern ) {
  81607. var
  81608. start = settings._iDisplayStart,
  81609. len = settings._iDisplayLength,
  81610. visRecords = settings.fnRecordsDisplay(),
  81611. all = len === -1,
  81612. page = all ? 0 : Math.ceil( start / len ),
  81613. pages = all ? 1 : Math.ceil( visRecords / len ),
  81614. buttons = plugin(page, pages),
  81615. i, ien;
  81616. for ( i=0, ien=features.p.length ; i<ien ; i++ ) {
  81617. _fnRenderer( settings, 'pageButton' )(
  81618. settings, features.p[i], i, buttons, page, pages
  81619. );
  81620. }
  81621. }
  81622. else {
  81623. plugin.fnUpdate( settings, redraw );
  81624. }
  81625. },
  81626. "sName": "pagination"
  81627. } );
  81628. }
  81629. return node;
  81630. }
  81631. /**
  81632. * Alter the display settings to change the page
  81633. * @param {object} settings DataTables settings object
  81634. * @param {string|int} action Paging action to take: "first", "previous",
  81635. * "next" or "last" or page number to jump to (integer)
  81636. * @param [bool] redraw Automatically draw the update or not
  81637. * @returns {bool} true page has changed, false - no change
  81638. * @memberof DataTable#oApi
  81639. */
  81640. function _fnPageChange ( settings, action, redraw )
  81641. {
  81642. var
  81643. start = settings._iDisplayStart,
  81644. len = settings._iDisplayLength,
  81645. records = settings.fnRecordsDisplay();
  81646. if ( records === 0 || len === -1 )
  81647. {
  81648. start = 0;
  81649. }
  81650. else if ( typeof action === "number" )
  81651. {
  81652. start = action * len;
  81653. if ( start > records )
  81654. {
  81655. start = 0;
  81656. }
  81657. }
  81658. else if ( action == "first" )
  81659. {
  81660. start = 0;
  81661. }
  81662. else if ( action == "previous" )
  81663. {
  81664. start = len >= 0 ?
  81665. start - len :
  81666. 0;
  81667. if ( start < 0 )
  81668. {
  81669. start = 0;
  81670. }
  81671. }
  81672. else if ( action == "next" )
  81673. {
  81674. if ( start + len < records )
  81675. {
  81676. start += len;
  81677. }
  81678. }
  81679. else if ( action == "last" )
  81680. {
  81681. start = Math.floor( (records-1) / len) * len;
  81682. }
  81683. else
  81684. {
  81685. _fnLog( settings, 0, "Unknown paging action: "+action, 5 );
  81686. }
  81687. var changed = settings._iDisplayStart !== start;
  81688. settings._iDisplayStart = start;
  81689. if ( changed ) {
  81690. _fnCallbackFire( settings, null, 'page', [settings] );
  81691. if ( redraw ) {
  81692. _fnDraw( settings );
  81693. }
  81694. }
  81695. return changed;
  81696. }
  81697. /**
  81698. * Generate the node required for the processing node
  81699. * @param {object} settings dataTables settings object
  81700. * @returns {node} Processing element
  81701. * @memberof DataTable#oApi
  81702. */
  81703. function _fnFeatureHtmlProcessing ( settings )
  81704. {
  81705. return $('<div/>', {
  81706. 'id': ! settings.aanFeatures.r ? settings.sTableId+'_processing' : null,
  81707. 'class': settings.oClasses.sProcessing
  81708. } )
  81709. .html( settings.oLanguage.sProcessing )
  81710. .insertBefore( settings.nTable )[0];
  81711. }
  81712. /**
  81713. * Display or hide the processing indicator
  81714. * @param {object} settings dataTables settings object
  81715. * @param {bool} show Show the processing indicator (true) or not (false)
  81716. * @memberof DataTable#oApi
  81717. */
  81718. function _fnProcessingDisplay ( settings, show )
  81719. {
  81720. if ( settings.oFeatures.bProcessing ) {
  81721. $(settings.aanFeatures.r).css( 'display', show ? 'block' : 'none' );
  81722. }
  81723. _fnCallbackFire( settings, null, 'processing', [settings, show] );
  81724. }
  81725. /**
  81726. * Add any control elements for the table - specifically scrolling
  81727. * @param {object} settings dataTables settings object
  81728. * @returns {node} Node to add to the DOM
  81729. * @memberof DataTable#oApi
  81730. */
  81731. function _fnFeatureHtmlTable ( settings )
  81732. {
  81733. var table = $(settings.nTable);
  81734. // Add the ARIA grid role to the table
  81735. table.attr( 'role', 'grid' );
  81736. // Scrolling from here on in
  81737. var scroll = settings.oScroll;
  81738. if ( scroll.sX === '' && scroll.sY === '' ) {
  81739. return settings.nTable;
  81740. }
  81741. var scrollX = scroll.sX;
  81742. var scrollY = scroll.sY;
  81743. var classes = settings.oClasses;
  81744. var caption = table.children('caption');
  81745. var captionSide = caption.length ? caption[0]._captionSide : null;
  81746. var headerClone = $( table[0].cloneNode(false) );
  81747. var footerClone = $( table[0].cloneNode(false) );
  81748. var footer = table.children('tfoot');
  81749. var _div = '<div/>';
  81750. var size = function ( s ) {
  81751. return !s ? null : _fnStringToCss( s );
  81752. };
  81753. // This is fairly messy, but with x scrolling enabled, if the table has a
  81754. // width attribute, regardless of any width applied using the column width
  81755. // options, the browser will shrink or grow the table as needed to fit into
  81756. // that 100%. That would make the width options useless. So we remove it.
  81757. // This is okay, under the assumption that width:100% is applied to the
  81758. // table in CSS (it is in the default stylesheet) which will set the table
  81759. // width as appropriate (the attribute and css behave differently...)
  81760. if ( scroll.sX && table.attr('width') === '100%' ) {
  81761. table.removeAttr('width');
  81762. }
  81763. if ( ! footer.length ) {
  81764. footer = null;
  81765. }
  81766. /*
  81767. * The HTML structure that we want to generate in this function is:
  81768. * div - scroller
  81769. * div - scroll head
  81770. * div - scroll head inner
  81771. * table - scroll head table
  81772. * thead - thead
  81773. * div - scroll body
  81774. * table - table (master table)
  81775. * thead - thead clone for sizing
  81776. * tbody - tbody
  81777. * div - scroll foot
  81778. * div - scroll foot inner
  81779. * table - scroll foot table
  81780. * tfoot - tfoot
  81781. */
  81782. var scroller = $( _div, { 'class': classes.sScrollWrapper } )
  81783. .append(
  81784. $(_div, { 'class': classes.sScrollHead } )
  81785. .css( {
  81786. overflow: 'hidden',
  81787. position: 'relative',
  81788. border: 0,
  81789. width: scrollX ? size(scrollX) : '100%'
  81790. } )
  81791. .append(
  81792. $(_div, { 'class': classes.sScrollHeadInner } )
  81793. .css( {
  81794. 'box-sizing': 'content-box',
  81795. width: scroll.sXInner || '100%'
  81796. } )
  81797. .append(
  81798. headerClone
  81799. .removeAttr('id')
  81800. .css( 'margin-left', 0 )
  81801. .append( captionSide === 'top' ? caption : null )
  81802. .append(
  81803. table.children('thead')
  81804. )
  81805. )
  81806. )
  81807. )
  81808. .append(
  81809. $(_div, { 'class': classes.sScrollBody } )
  81810. .css( {
  81811. position: 'relative',
  81812. overflow: 'auto',
  81813. width: size( scrollX )
  81814. } )
  81815. .append( table )
  81816. );
  81817. if ( footer ) {
  81818. scroller.append(
  81819. $(_div, { 'class': classes.sScrollFoot } )
  81820. .css( {
  81821. overflow: 'hidden',
  81822. border: 0,
  81823. width: scrollX ? size(scrollX) : '100%'
  81824. } )
  81825. .append(
  81826. $(_div, { 'class': classes.sScrollFootInner } )
  81827. .append(
  81828. footerClone
  81829. .removeAttr('id')
  81830. .css( 'margin-left', 0 )
  81831. .append( captionSide === 'bottom' ? caption : null )
  81832. .append(
  81833. table.children('tfoot')
  81834. )
  81835. )
  81836. )
  81837. );
  81838. }
  81839. var children = scroller.children();
  81840. var scrollHead = children[0];
  81841. var scrollBody = children[1];
  81842. var scrollFoot = footer ? children[2] : null;
  81843. // When the body is scrolled, then we also want to scroll the headers
  81844. if ( scrollX ) {
  81845. $(scrollBody).on( 'scroll.DT', function (e) {
  81846. var scrollLeft = this.scrollLeft;
  81847. scrollHead.scrollLeft = scrollLeft;
  81848. if ( footer ) {
  81849. scrollFoot.scrollLeft = scrollLeft;
  81850. }
  81851. } );
  81852. }
  81853. $(scrollBody).css(
  81854. scrollY && scroll.bCollapse ? 'max-height' : 'height',
  81855. scrollY
  81856. );
  81857. settings.nScrollHead = scrollHead;
  81858. settings.nScrollBody = scrollBody;
  81859. settings.nScrollFoot = scrollFoot;
  81860. // On redraw - align columns
  81861. settings.aoDrawCallback.push( {
  81862. "fn": _fnScrollDraw,
  81863. "sName": "scrolling"
  81864. } );
  81865. return scroller[0];
  81866. }
  81867. /**
  81868. * Update the header, footer and body tables for resizing - i.e. column
  81869. * alignment.
  81870. *
  81871. * Welcome to the most horrible function DataTables. The process that this
  81872. * function follows is basically:
  81873. * 1. Re-create the table inside the scrolling div
  81874. * 2. Take live measurements from the DOM
  81875. * 3. Apply the measurements to align the columns
  81876. * 4. Clean up
  81877. *
  81878. * @param {object} settings dataTables settings object
  81879. * @memberof DataTable#oApi
  81880. */
  81881. function _fnScrollDraw ( settings )
  81882. {
  81883. // Given that this is such a monster function, a lot of variables are use
  81884. // to try and keep the minimised size as small as possible
  81885. var
  81886. scroll = settings.oScroll,
  81887. scrollX = scroll.sX,
  81888. scrollXInner = scroll.sXInner,
  81889. scrollY = scroll.sY,
  81890. barWidth = scroll.iBarWidth,
  81891. divHeader = $(settings.nScrollHead),
  81892. divHeaderStyle = divHeader[0].style,
  81893. divHeaderInner = divHeader.children('div'),
  81894. divHeaderInnerStyle = divHeaderInner[0].style,
  81895. divHeaderTable = divHeaderInner.children('table'),
  81896. divBodyEl = settings.nScrollBody,
  81897. divBody = $(divBodyEl),
  81898. divBodyStyle = divBodyEl.style,
  81899. divFooter = $(settings.nScrollFoot),
  81900. divFooterInner = divFooter.children('div'),
  81901. divFooterTable = divFooterInner.children('table'),
  81902. header = $(settings.nTHead),
  81903. table = $(settings.nTable),
  81904. tableEl = table[0],
  81905. tableStyle = tableEl.style,
  81906. footer = settings.nTFoot ? $(settings.nTFoot) : null,
  81907. browser = settings.oBrowser,
  81908. ie67 = browser.bScrollOversize,
  81909. headerTrgEls, footerTrgEls,
  81910. headerSrcEls, footerSrcEls,
  81911. headerCopy, footerCopy,
  81912. headerWidths=[], footerWidths=[],
  81913. headerContent=[],
  81914. idx, correction, sanityWidth,
  81915. zeroOut = function(nSizer) {
  81916. var style = nSizer.style;
  81917. style.paddingTop = "0";
  81918. style.paddingBottom = "0";
  81919. style.borderTopWidth = "0";
  81920. style.borderBottomWidth = "0";
  81921. style.height = 0;
  81922. };
  81923. /*
  81924. * 1. Re-create the table inside the scrolling div
  81925. */
  81926. // Remove the old minimised thead and tfoot elements in the inner table
  81927. table.children('thead, tfoot').remove();
  81928. // Clone the current header and footer elements and then place it into the inner table
  81929. headerCopy = header.clone().prependTo( table );
  81930. headerTrgEls = header.find('tr'); // original header is in its own table
  81931. headerSrcEls = headerCopy.find('tr');
  81932. headerCopy.find('th, td').removeAttr('tabindex');
  81933. if ( footer ) {
  81934. footerCopy = footer.clone().prependTo( table );
  81935. footerTrgEls = footer.find('tr'); // the original tfoot is in its own table and must be sized
  81936. footerSrcEls = footerCopy.find('tr');
  81937. }
  81938. /*
  81939. * 2. Take live measurements from the DOM - do not alter the DOM itself!
  81940. */
  81941. // Remove old sizing and apply the calculated column widths
  81942. // Get the unique column headers in the newly created (cloned) header. We want to apply the
  81943. // calculated sizes to this header
  81944. if ( ! scrollX )
  81945. {
  81946. divBodyStyle.width = '100%';
  81947. divHeader[0].style.width = '100%';
  81948. }
  81949. $.each( _fnGetUniqueThs( settings, headerCopy ), function ( i, el ) {
  81950. idx = _fnVisibleToColumnIndex( settings, i );
  81951. el.style.width = settings.aoColumns[idx].sWidth;
  81952. } );
  81953. if ( footer ) {
  81954. _fnApplyToChildren( function(n) {
  81955. n.style.width = "";
  81956. }, footerSrcEls );
  81957. }
  81958. // Size the table as a whole
  81959. sanityWidth = table.outerWidth();
  81960. if ( scrollX === "" ) {
  81961. // No x scrolling
  81962. tableStyle.width = "100%";
  81963. // IE7 will make the width of the table when 100% include the scrollbar
  81964. // - which is shouldn't. When there is a scrollbar we need to take this
  81965. // into account.
  81966. if ( ie67 && (table.find('tbody').height() > divBodyEl.offsetHeight ||
  81967. divBody.css('overflow-y') == "scroll")
  81968. ) {
  81969. tableStyle.width = _fnStringToCss( table.outerWidth() - barWidth);
  81970. }
  81971. // Recalculate the sanity width
  81972. sanityWidth = table.outerWidth();
  81973. }
  81974. else if ( scrollXInner !== "" ) {
  81975. // legacy x scroll inner has been given - use it
  81976. tableStyle.width = _fnStringToCss(scrollXInner);
  81977. // Recalculate the sanity width
  81978. sanityWidth = table.outerWidth();
  81979. }
  81980. // Hidden header should have zero height, so remove padding and borders. Then
  81981. // set the width based on the real headers
  81982. // Apply all styles in one pass
  81983. _fnApplyToChildren( zeroOut, headerSrcEls );
  81984. // Read all widths in next pass
  81985. _fnApplyToChildren( function(nSizer) {
  81986. headerContent.push( nSizer.innerHTML );
  81987. headerWidths.push( _fnStringToCss( $(nSizer).css('width') ) );
  81988. }, headerSrcEls );
  81989. // Apply all widths in final pass
  81990. _fnApplyToChildren( function(nToSize, i) {
  81991. nToSize.style.width = headerWidths[i];
  81992. }, headerTrgEls );
  81993. $(headerSrcEls).height(0);
  81994. /* Same again with the footer if we have one */
  81995. if ( footer )
  81996. {
  81997. _fnApplyToChildren( zeroOut, footerSrcEls );
  81998. _fnApplyToChildren( function(nSizer) {
  81999. footerWidths.push( _fnStringToCss( $(nSizer).css('width') ) );
  82000. }, footerSrcEls );
  82001. _fnApplyToChildren( function(nToSize, i) {
  82002. nToSize.style.width = footerWidths[i];
  82003. }, footerTrgEls );
  82004. $(footerSrcEls).height(0);
  82005. }
  82006. /*
  82007. * 3. Apply the measurements
  82008. */
  82009. // "Hide" the header and footer that we used for the sizing. We need to keep
  82010. // the content of the cell so that the width applied to the header and body
  82011. // both match, but we want to hide it completely. We want to also fix their
  82012. // width to what they currently are
  82013. _fnApplyToChildren( function(nSizer, i) {
  82014. nSizer.innerHTML = '<div class="dataTables_sizing" style="height:0;overflow:hidden;">'+headerContent[i]+'</div>';
  82015. nSizer.style.width = headerWidths[i];
  82016. }, headerSrcEls );
  82017. if ( footer )
  82018. {
  82019. _fnApplyToChildren( function(nSizer, i) {
  82020. nSizer.innerHTML = "";
  82021. nSizer.style.width = footerWidths[i];
  82022. }, footerSrcEls );
  82023. }
  82024. // Sanity check that the table is of a sensible width. If not then we are going to get
  82025. // misalignment - try to prevent this by not allowing the table to shrink below its min width
  82026. if ( table.outerWidth() < sanityWidth )
  82027. {
  82028. // The min width depends upon if we have a vertical scrollbar visible or not */
  82029. correction = ((divBodyEl.scrollHeight > divBodyEl.offsetHeight ||
  82030. divBody.css('overflow-y') == "scroll")) ?
  82031. sanityWidth+barWidth :
  82032. sanityWidth;
  82033. // IE6/7 are a law unto themselves...
  82034. if ( ie67 && (divBodyEl.scrollHeight >
  82035. divBodyEl.offsetHeight || divBody.css('overflow-y') == "scroll")
  82036. ) {
  82037. tableStyle.width = _fnStringToCss( correction-barWidth );
  82038. }
  82039. // And give the user a warning that we've stopped the table getting too small
  82040. if ( scrollX === "" || scrollXInner !== "" ) {
  82041. _fnLog( settings, 1, 'Possible column misalignment', 6 );
  82042. }
  82043. }
  82044. else
  82045. {
  82046. correction = '100%';
  82047. }
  82048. // Apply to the container elements
  82049. divBodyStyle.width = _fnStringToCss( correction );
  82050. divHeaderStyle.width = _fnStringToCss( correction );
  82051. if ( footer ) {
  82052. settings.nScrollFoot.style.width = _fnStringToCss( correction );
  82053. }
  82054. /*
  82055. * 4. Clean up
  82056. */
  82057. if ( ! scrollY ) {
  82058. /* IE7< puts a vertical scrollbar in place (when it shouldn't be) due to subtracting
  82059. * the scrollbar height from the visible display, rather than adding it on. We need to
  82060. * set the height in order to sort this. Don't want to do it in any other browsers.
  82061. */
  82062. if ( ie67 ) {
  82063. divBodyStyle.height = _fnStringToCss( tableEl.offsetHeight+barWidth );
  82064. }
  82065. }
  82066. /* Finally set the width's of the header and footer tables */
  82067. var iOuterWidth = table.outerWidth();
  82068. divHeaderTable[0].style.width = _fnStringToCss( iOuterWidth );
  82069. divHeaderInnerStyle.width = _fnStringToCss( iOuterWidth );
  82070. // Figure out if there are scrollbar present - if so then we need a the header and footer to
  82071. // provide a bit more space to allow "overflow" scrolling (i.e. past the scrollbar)
  82072. var bScrolling = table.height() > divBodyEl.clientHeight || divBody.css('overflow-y') == "scroll";
  82073. var padding = 'padding' + (browser.bScrollbarLeft ? 'Left' : 'Right' );
  82074. divHeaderInnerStyle[ padding ] = bScrolling ? barWidth+"px" : "0px";
  82075. if ( footer ) {
  82076. divFooterTable[0].style.width = _fnStringToCss( iOuterWidth );
  82077. divFooterInner[0].style.width = _fnStringToCss( iOuterWidth );
  82078. divFooterInner[0].style[padding] = bScrolling ? barWidth+"px" : "0px";
  82079. }
  82080. /* Adjust the position of the header in case we loose the y-scrollbar */
  82081. divBody.scroll();
  82082. // If sorting or filtering has occurred, jump the scrolling back to the top
  82083. // only if we aren't holding the position
  82084. if ( (settings.bSorted || settings.bFiltered) && ! settings._drawHold ) {
  82085. divBodyEl.scrollTop = 0;
  82086. }
  82087. }
  82088. /**
  82089. * Apply a given function to the display child nodes of an element array (typically
  82090. * TD children of TR rows
  82091. * @param {function} fn Method to apply to the objects
  82092. * @param array {nodes} an1 List of elements to look through for display children
  82093. * @param array {nodes} an2 Another list (identical structure to the first) - optional
  82094. * @memberof DataTable#oApi
  82095. */
  82096. function _fnApplyToChildren( fn, an1, an2 )
  82097. {
  82098. var index=0, i=0, iLen=an1.length;
  82099. var nNode1, nNode2;
  82100. while ( i < iLen ) {
  82101. nNode1 = an1[i].firstChild;
  82102. nNode2 = an2 ? an2[i].firstChild : null;
  82103. while ( nNode1 ) {
  82104. if ( nNode1.nodeType === 1 ) {
  82105. if ( an2 ) {
  82106. fn( nNode1, nNode2, index );
  82107. }
  82108. else {
  82109. fn( nNode1, index );
  82110. }
  82111. index++;
  82112. }
  82113. nNode1 = nNode1.nextSibling;
  82114. nNode2 = an2 ? nNode2.nextSibling : null;
  82115. }
  82116. i++;
  82117. }
  82118. }
  82119. var __re_html_remove = /<.*?>/g;
  82120. /**
  82121. * Calculate the width of columns for the table
  82122. * @param {object} oSettings dataTables settings object
  82123. * @memberof DataTable#oApi
  82124. */
  82125. function _fnCalculateColumnWidths ( oSettings )
  82126. {
  82127. var
  82128. table = oSettings.nTable,
  82129. columns = oSettings.aoColumns,
  82130. scroll = oSettings.oScroll,
  82131. scrollY = scroll.sY,
  82132. scrollX = scroll.sX,
  82133. scrollXInner = scroll.sXInner,
  82134. columnCount = columns.length,
  82135. visibleColumns = _fnGetColumns( oSettings, 'bVisible' ),
  82136. headerCells = $('th', oSettings.nTHead),
  82137. tableWidthAttr = table.getAttribute('width'), // from DOM element
  82138. tableContainer = table.parentNode,
  82139. userInputs = false,
  82140. i, column, columnIdx, width, outerWidth,
  82141. browser = oSettings.oBrowser,
  82142. ie67 = browser.bScrollOversize;
  82143. var styleWidth = table.style.width;
  82144. if ( styleWidth && styleWidth.indexOf('%') !== -1 ) {
  82145. tableWidthAttr = styleWidth;
  82146. }
  82147. /* Convert any user input sizes into pixel sizes */
  82148. for ( i=0 ; i<visibleColumns.length ; i++ ) {
  82149. column = columns[ visibleColumns[i] ];
  82150. if ( column.sWidth !== null ) {
  82151. column.sWidth = _fnConvertToWidth( column.sWidthOrig, tableContainer );
  82152. userInputs = true;
  82153. }
  82154. }
  82155. /* If the number of columns in the DOM equals the number that we have to
  82156. * process in DataTables, then we can use the offsets that are created by
  82157. * the web- browser. No custom sizes can be set in order for this to happen,
  82158. * nor scrolling used
  82159. */
  82160. if ( ie67 || ! userInputs && ! scrollX && ! scrollY &&
  82161. columnCount == _fnVisbleColumns( oSettings ) &&
  82162. columnCount == headerCells.length
  82163. ) {
  82164. for ( i=0 ; i<columnCount ; i++ ) {
  82165. columns[i].sWidth = _fnStringToCss( headerCells.eq(i).width() );
  82166. }
  82167. }
  82168. else
  82169. {
  82170. // Otherwise construct a single row, worst case, table with the widest
  82171. // node in the data, assign any user defined widths, then insert it into
  82172. // the DOM and allow the browser to do all the hard work of calculating
  82173. // table widths
  82174. var tmpTable = $(table).clone() // don't use cloneNode - IE8 will remove events on the main table
  82175. .css( 'visibility', 'hidden' )
  82176. .removeAttr( 'id' );
  82177. // Clean up the table body
  82178. tmpTable.find('tbody tr').remove();
  82179. var tr = $('<tr/>').appendTo( tmpTable.find('tbody') );
  82180. // Clone the table header and footer - we can't use the header / footer
  82181. // from the cloned table, since if scrolling is active, the table's
  82182. // real header and footer are contained in different table tags
  82183. tmpTable.find('thead, tfoot').remove();
  82184. tmpTable
  82185. .append( $(oSettings.nTHead).clone() )
  82186. .append( $(oSettings.nTFoot).clone() );
  82187. // Remove any assigned widths from the footer (from scrolling)
  82188. tmpTable.find('tfoot th, tfoot td').css('width', '');
  82189. // Apply custom sizing to the cloned header
  82190. headerCells = _fnGetUniqueThs( oSettings, tmpTable.find('thead')[0] );
  82191. for ( i=0 ; i<visibleColumns.length ; i++ ) {
  82192. column = columns[ visibleColumns[i] ];
  82193. headerCells[i].style.width = column.sWidthOrig !== null && column.sWidthOrig !== '' ?
  82194. _fnStringToCss( column.sWidthOrig ) :
  82195. '';
  82196. }
  82197. // Find the widest cell for each column and put it into the table
  82198. if ( oSettings.aoData.length ) {
  82199. for ( i=0 ; i<visibleColumns.length ; i++ ) {
  82200. columnIdx = visibleColumns[i];
  82201. column = columns[ columnIdx ];
  82202. $( _fnGetWidestNode( oSettings, columnIdx ) )
  82203. .clone( false )
  82204. .append( column.sContentPadding )
  82205. .appendTo( tr );
  82206. }
  82207. }
  82208. // Table has been built, attach to the document so we can work with it.
  82209. // A holding element is used, positioned at the top of the container
  82210. // with minimal height, so it has no effect on if the container scrolls
  82211. // or not. Otherwise it might trigger scrolling when it actually isn't
  82212. // needed
  82213. var holder = $('<div/>').css( scrollX || scrollY ?
  82214. {
  82215. position: 'absolute',
  82216. top: 0,
  82217. left: 0,
  82218. height: 1,
  82219. right: 0,
  82220. overflow: 'hidden'
  82221. } :
  82222. {}
  82223. )
  82224. .append( tmpTable )
  82225. .appendTo( tableContainer );
  82226. // When scrolling (X or Y) we want to set the width of the table as
  82227. // appropriate. However, when not scrolling leave the table width as it
  82228. // is. This results in slightly different, but I think correct behaviour
  82229. if ( scrollX && scrollXInner ) {
  82230. tmpTable.width( scrollXInner );
  82231. }
  82232. else if ( scrollX ) {
  82233. tmpTable.css( 'width', 'auto' );
  82234. if ( tmpTable.width() < tableContainer.clientWidth ) {
  82235. tmpTable.width( tableContainer.clientWidth );
  82236. }
  82237. }
  82238. else if ( scrollY ) {
  82239. tmpTable.width( tableContainer.clientWidth );
  82240. }
  82241. else if ( tableWidthAttr ) {
  82242. tmpTable.width( tableWidthAttr );
  82243. }
  82244. // Browsers need a bit of a hand when a width is assigned to any columns
  82245. // when x-scrolling as they tend to collapse the table to the min-width,
  82246. // even if we sent the column widths. So we need to keep track of what
  82247. // the table width should be by summing the user given values, and the
  82248. // automatic values
  82249. if ( scrollX )
  82250. {
  82251. var total = 0;
  82252. for ( i=0 ; i<visibleColumns.length ; i++ ) {
  82253. column = columns[ visibleColumns[i] ];
  82254. // Much prefer to use getBoundingClientRect due to its sub-pixel
  82255. // resolution, but IE8- do not support the width property.
  82256. outerWidth = browser.bBounding ?
  82257. headerCells[i].getBoundingClientRect().width :
  82258. $(headerCells[i]).outerWidth();
  82259. total += column.sWidthOrig === null ?
  82260. outerWidth :
  82261. parseInt( column.sWidth, 10 ) + outerWidth - $(headerCells[i]).width();
  82262. }
  82263. tmpTable.width( _fnStringToCss( total ) );
  82264. table.style.width = _fnStringToCss( total );
  82265. }
  82266. // Get the width of each column in the constructed table
  82267. for ( i=0 ; i<visibleColumns.length ; i++ ) {
  82268. column = columns[ visibleColumns[i] ];
  82269. width = $(headerCells[i]).width();
  82270. if ( width ) {
  82271. column.sWidth = _fnStringToCss( width );
  82272. }
  82273. }
  82274. table.style.width = _fnStringToCss( tmpTable.css('width') );
  82275. // Finished with the table - ditch it
  82276. holder.remove();
  82277. }
  82278. // If there is a width attr, we want to attach an event listener which
  82279. // allows the table sizing to automatically adjust when the window is
  82280. // resized. Use the width attr rather than CSS, since we can't know if the
  82281. // CSS is a relative value or absolute - DOM read is always px.
  82282. if ( tableWidthAttr ) {
  82283. table.style.width = _fnStringToCss( tableWidthAttr );
  82284. }
  82285. if ( (tableWidthAttr || scrollX) && ! oSettings._reszEvt ) {
  82286. var bindResize = function () {
  82287. $(window).bind('resize.DT-'+oSettings.sInstance, _fnThrottle( function () {
  82288. _fnAdjustColumnSizing( oSettings );
  82289. } ) );
  82290. };
  82291. // IE6/7 will crash if we bind a resize event handler on page load.
  82292. // To be removed in 1.11 which drops IE6/7 support
  82293. if ( ie67 ) {
  82294. setTimeout( bindResize, 1000 );
  82295. }
  82296. else {
  82297. bindResize();
  82298. }
  82299. oSettings._reszEvt = true;
  82300. }
  82301. }
  82302. /**
  82303. * Throttle the calls to a function. Arguments and context are maintained for
  82304. * the throttled function
  82305. * @param {function} fn Function to be called
  82306. * @param {int} [freq=200] call frequency in mS
  82307. * @returns {function} wrapped function
  82308. * @memberof DataTable#oApi
  82309. */
  82310. function _fnThrottle( fn, freq ) {
  82311. var
  82312. frequency = freq !== undefined ? freq : 200,
  82313. last,
  82314. timer;
  82315. return function () {
  82316. var
  82317. that = this,
  82318. now = +new Date(),
  82319. args = arguments;
  82320. if ( last && now < last + frequency ) {
  82321. clearTimeout( timer );
  82322. timer = setTimeout( function () {
  82323. last = undefined;
  82324. fn.apply( that, args );
  82325. }, frequency );
  82326. }
  82327. else {
  82328. last = now;
  82329. fn.apply( that, args );
  82330. }
  82331. };
  82332. }
  82333. /**
  82334. * Convert a CSS unit width to pixels (e.g. 2em)
  82335. * @param {string} width width to be converted
  82336. * @param {node} parent parent to get the with for (required for relative widths) - optional
  82337. * @returns {int} width in pixels
  82338. * @memberof DataTable#oApi
  82339. */
  82340. function _fnConvertToWidth ( width, parent )
  82341. {
  82342. if ( ! width ) {
  82343. return 0;
  82344. }
  82345. var n = $('<div/>')
  82346. .css( 'width', _fnStringToCss( width ) )
  82347. .appendTo( parent || document.body );
  82348. var val = n[0].offsetWidth;
  82349. n.remove();
  82350. return val;
  82351. }
  82352. /**
  82353. * Get the widest node
  82354. * @param {object} settings dataTables settings object
  82355. * @param {int} colIdx column of interest
  82356. * @returns {node} widest table node
  82357. * @memberof DataTable#oApi
  82358. */
  82359. function _fnGetWidestNode( settings, colIdx )
  82360. {
  82361. var idx = _fnGetMaxLenString( settings, colIdx );
  82362. if ( idx < 0 ) {
  82363. return null;
  82364. }
  82365. var data = settings.aoData[ idx ];
  82366. return ! data.nTr ? // Might not have been created when deferred rendering
  82367. $('<td/>').html( _fnGetCellData( settings, idx, colIdx, 'display' ) )[0] :
  82368. data.anCells[ colIdx ];
  82369. }
  82370. /**
  82371. * Get the maximum strlen for each data column
  82372. * @param {object} settings dataTables settings object
  82373. * @param {int} colIdx column of interest
  82374. * @returns {string} max string length for each column
  82375. * @memberof DataTable#oApi
  82376. */
  82377. function _fnGetMaxLenString( settings, colIdx )
  82378. {
  82379. var s, max=-1, maxIdx = -1;
  82380. for ( var i=0, ien=settings.aoData.length ; i<ien ; i++ ) {
  82381. s = _fnGetCellData( settings, i, colIdx, 'display' )+'';
  82382. s = s.replace( __re_html_remove, '' );
  82383. if ( s.length > max ) {
  82384. max = s.length;
  82385. maxIdx = i;
  82386. }
  82387. }
  82388. return maxIdx;
  82389. }
  82390. /**
  82391. * Append a CSS unit (only if required) to a string
  82392. * @param {string} value to css-ify
  82393. * @returns {string} value with css unit
  82394. * @memberof DataTable#oApi
  82395. */
  82396. function _fnStringToCss( s )
  82397. {
  82398. if ( s === null ) {
  82399. return '0px';
  82400. }
  82401. if ( typeof s == 'number' ) {
  82402. return s < 0 ?
  82403. '0px' :
  82404. s+'px';
  82405. }
  82406. // Check it has a unit character already
  82407. return s.match(/\d$/) ?
  82408. s+'px' :
  82409. s;
  82410. }
  82411. /**
  82412. * Get the width of a scroll bar in this browser being used
  82413. * @returns {int} width in pixels
  82414. * @memberof DataTable#oApi
  82415. */
  82416. function _fnScrollBarWidth ()
  82417. {
  82418. // On first run a static variable is set, since this is only needed once.
  82419. // Subsequent runs will just use the previously calculated value
  82420. var width = DataTable.__scrollbarWidth;
  82421. if ( width === undefined ) {
  82422. var sizer = $('<p/>').css( {
  82423. position: 'absolute',
  82424. top: 0,
  82425. left: 0,
  82426. width: '100%',
  82427. height: 150,
  82428. padding: 0,
  82429. overflow: 'scroll',
  82430. visibility: 'hidden'
  82431. } )
  82432. .appendTo('body');
  82433. width = sizer[0].offsetWidth - sizer[0].clientWidth;
  82434. DataTable.__scrollbarWidth = width;
  82435. sizer.remove();
  82436. }
  82437. return width;
  82438. }
  82439. function _fnSortFlatten ( settings )
  82440. {
  82441. var
  82442. i, iLen, k, kLen,
  82443. aSort = [],
  82444. aiOrig = [],
  82445. aoColumns = settings.aoColumns,
  82446. aDataSort, iCol, sType, srcCol,
  82447. fixed = settings.aaSortingFixed,
  82448. fixedObj = $.isPlainObject( fixed ),
  82449. nestedSort = [],
  82450. add = function ( a ) {
  82451. if ( a.length && ! $.isArray( a[0] ) ) {
  82452. // 1D array
  82453. nestedSort.push( a );
  82454. }
  82455. else {
  82456. // 2D array
  82457. nestedSort.push.apply( nestedSort, a );
  82458. }
  82459. };
  82460. // Build the sort array, with pre-fix and post-fix options if they have been
  82461. // specified
  82462. if ( $.isArray( fixed ) ) {
  82463. add( fixed );
  82464. }
  82465. if ( fixedObj && fixed.pre ) {
  82466. add( fixed.pre );
  82467. }
  82468. add( settings.aaSorting );
  82469. if (fixedObj && fixed.post ) {
  82470. add( fixed.post );
  82471. }
  82472. for ( i=0 ; i<nestedSort.length ; i++ )
  82473. {
  82474. srcCol = nestedSort[i][0];
  82475. aDataSort = aoColumns[ srcCol ].aDataSort;
  82476. for ( k=0, kLen=aDataSort.length ; k<kLen ; k++ )
  82477. {
  82478. iCol = aDataSort[k];
  82479. sType = aoColumns[ iCol ].sType || 'string';
  82480. if ( nestedSort[i]._idx === undefined ) {
  82481. nestedSort[i]._idx = $.inArray( nestedSort[i][1], aoColumns[iCol].asSorting );
  82482. }
  82483. aSort.push( {
  82484. src: srcCol,
  82485. col: iCol,
  82486. dir: nestedSort[i][1],
  82487. index: nestedSort[i]._idx,
  82488. type: sType,
  82489. formatter: DataTable.ext.type.order[ sType+"-pre" ]
  82490. } );
  82491. }
  82492. }
  82493. return aSort;
  82494. }
  82495. /**
  82496. * Change the order of the table
  82497. * @param {object} oSettings dataTables settings object
  82498. * @memberof DataTable#oApi
  82499. * @todo This really needs split up!
  82500. */
  82501. function _fnSort ( oSettings )
  82502. {
  82503. var
  82504. i, ien, iLen, j, jLen, k, kLen,
  82505. sDataType, nTh,
  82506. aiOrig = [],
  82507. oExtSort = DataTable.ext.type.order,
  82508. aoData = oSettings.aoData,
  82509. aoColumns = oSettings.aoColumns,
  82510. aDataSort, data, iCol, sType, oSort,
  82511. formatters = 0,
  82512. sortCol,
  82513. displayMaster = oSettings.aiDisplayMaster,
  82514. aSort;
  82515. // Resolve any column types that are unknown due to addition or invalidation
  82516. // @todo Can this be moved into a 'data-ready' handler which is called when
  82517. // data is going to be used in the table?
  82518. _fnColumnTypes( oSettings );
  82519. aSort = _fnSortFlatten( oSettings );
  82520. for ( i=0, ien=aSort.length ; i<ien ; i++ ) {
  82521. sortCol = aSort[i];
  82522. // Track if we can use the fast sort algorithm
  82523. if ( sortCol.formatter ) {
  82524. formatters++;
  82525. }
  82526. // Load the data needed for the sort, for each cell
  82527. _fnSortData( oSettings, sortCol.col );
  82528. }
  82529. /* No sorting required if server-side or no sorting array */
  82530. if ( _fnDataSource( oSettings ) != 'ssp' && aSort.length !== 0 )
  82531. {
  82532. // Create a value - key array of the current row positions such that we can use their
  82533. // current position during the sort, if values match, in order to perform stable sorting
  82534. for ( i=0, iLen=displayMaster.length ; i<iLen ; i++ ) {
  82535. aiOrig[ displayMaster[i] ] = i;
  82536. }
  82537. /* Do the sort - here we want multi-column sorting based on a given data source (column)
  82538. * and sorting function (from oSort) in a certain direction. It's reasonably complex to
  82539. * follow on it's own, but this is what we want (example two column sorting):
  82540. * fnLocalSorting = function(a,b){
  82541. * var iTest;
  82542. * iTest = oSort['string-asc']('data11', 'data12');
  82543. * if (iTest !== 0)
  82544. * return iTest;
  82545. * iTest = oSort['numeric-desc']('data21', 'data22');
  82546. * if (iTest !== 0)
  82547. * return iTest;
  82548. * return oSort['numeric-asc']( aiOrig[a], aiOrig[b] );
  82549. * }
  82550. * Basically we have a test for each sorting column, if the data in that column is equal,
  82551. * test the next column. If all columns match, then we use a numeric sort on the row
  82552. * positions in the original data array to provide a stable sort.
  82553. *
  82554. * Note - I know it seems excessive to have two sorting methods, but the first is around
  82555. * 15% faster, so the second is only maintained for backwards compatibility with sorting
  82556. * methods which do not have a pre-sort formatting function.
  82557. */
  82558. if ( formatters === aSort.length ) {
  82559. // All sort types have formatting functions
  82560. displayMaster.sort( function ( a, b ) {
  82561. var
  82562. x, y, k, test, sort,
  82563. len=aSort.length,
  82564. dataA = aoData[a]._aSortData,
  82565. dataB = aoData[b]._aSortData;
  82566. for ( k=0 ; k<len ; k++ ) {
  82567. sort = aSort[k];
  82568. x = dataA[ sort.col ];
  82569. y = dataB[ sort.col ];
  82570. test = x<y ? -1 : x>y ? 1 : 0;
  82571. if ( test !== 0 ) {
  82572. return sort.dir === 'asc' ? test : -test;
  82573. }
  82574. }
  82575. x = aiOrig[a];
  82576. y = aiOrig[b];
  82577. return x<y ? -1 : x>y ? 1 : 0;
  82578. } );
  82579. }
  82580. else {
  82581. // Depreciated - remove in 1.11 (providing a plug-in option)
  82582. // Not all sort types have formatting methods, so we have to call their sorting
  82583. // methods.
  82584. displayMaster.sort( function ( a, b ) {
  82585. var
  82586. x, y, k, l, test, sort, fn,
  82587. len=aSort.length,
  82588. dataA = aoData[a]._aSortData,
  82589. dataB = aoData[b]._aSortData;
  82590. for ( k=0 ; k<len ; k++ ) {
  82591. sort = aSort[k];
  82592. x = dataA[ sort.col ];
  82593. y = dataB[ sort.col ];
  82594. fn = oExtSort[ sort.type+"-"+sort.dir ] || oExtSort[ "string-"+sort.dir ];
  82595. test = fn( x, y );
  82596. if ( test !== 0 ) {
  82597. return test;
  82598. }
  82599. }
  82600. x = aiOrig[a];
  82601. y = aiOrig[b];
  82602. return x<y ? -1 : x>y ? 1 : 0;
  82603. } );
  82604. }
  82605. }
  82606. /* Tell the draw function that we have sorted the data */
  82607. oSettings.bSorted = true;
  82608. }
  82609. function _fnSortAria ( settings )
  82610. {
  82611. var label;
  82612. var nextSort;
  82613. var columns = settings.aoColumns;
  82614. var aSort = _fnSortFlatten( settings );
  82615. var oAria = settings.oLanguage.oAria;
  82616. // ARIA attributes - need to loop all columns, to update all (removing old
  82617. // attributes as needed)
  82618. for ( var i=0, iLen=columns.length ; i<iLen ; i++ )
  82619. {
  82620. var col = columns[i];
  82621. var asSorting = col.asSorting;
  82622. var sTitle = col.sTitle.replace( /<.*?>/g, "" );
  82623. var th = col.nTh;
  82624. // IE7 is throwing an error when setting these properties with jQuery's
  82625. // attr() and removeAttr() methods...
  82626. th.removeAttribute('aria-sort');
  82627. /* In ARIA only the first sorting column can be marked as sorting - no multi-sort option */
  82628. if ( col.bSortable ) {
  82629. if ( aSort.length > 0 && aSort[0].col == i ) {
  82630. th.setAttribute('aria-sort', aSort[0].dir=="asc" ? "ascending" : "descending" );
  82631. nextSort = asSorting[ aSort[0].index+1 ] || asSorting[0];
  82632. }
  82633. else {
  82634. nextSort = asSorting[0];
  82635. }
  82636. label = sTitle + ( nextSort === "asc" ?
  82637. oAria.sSortAscending :
  82638. oAria.sSortDescending
  82639. );
  82640. }
  82641. else {
  82642. label = sTitle;
  82643. }
  82644. th.setAttribute('aria-label', label);
  82645. }
  82646. }
  82647. /**
  82648. * Function to run on user sort request
  82649. * @param {object} settings dataTables settings object
  82650. * @param {node} attachTo node to attach the handler to
  82651. * @param {int} colIdx column sorting index
  82652. * @param {boolean} [append=false] Append the requested sort to the existing
  82653. * sort if true (i.e. multi-column sort)
  82654. * @param {function} [callback] callback function
  82655. * @memberof DataTable#oApi
  82656. */
  82657. function _fnSortListener ( settings, colIdx, append, callback )
  82658. {
  82659. var col = settings.aoColumns[ colIdx ];
  82660. var sorting = settings.aaSorting;
  82661. var asSorting = col.asSorting;
  82662. var nextSortIdx;
  82663. var next = function ( a, overflow ) {
  82664. var idx = a._idx;
  82665. if ( idx === undefined ) {
  82666. idx = $.inArray( a[1], asSorting );
  82667. }
  82668. return idx+1 < asSorting.length ?
  82669. idx+1 :
  82670. overflow ?
  82671. null :
  82672. 0;
  82673. };
  82674. // Convert to 2D array if needed
  82675. if ( typeof sorting[0] === 'number' ) {
  82676. sorting = settings.aaSorting = [ sorting ];
  82677. }
  82678. // If appending the sort then we are multi-column sorting
  82679. if ( append && settings.oFeatures.bSortMulti ) {
  82680. // Are we already doing some kind of sort on this column?
  82681. var sortIdx = $.inArray( colIdx, _pluck(sorting, '0') );
  82682. if ( sortIdx !== -1 ) {
  82683. // Yes, modify the sort
  82684. nextSortIdx = next( sorting[sortIdx], true );
  82685. if ( nextSortIdx === null && sorting.length === 1 ) {
  82686. nextSortIdx = 0; // can't remove sorting completely
  82687. }
  82688. if ( nextSortIdx === null ) {
  82689. sorting.splice( sortIdx, 1 );
  82690. }
  82691. else {
  82692. sorting[sortIdx][1] = asSorting[ nextSortIdx ];
  82693. sorting[sortIdx]._idx = nextSortIdx;
  82694. }
  82695. }
  82696. else {
  82697. // No sort on this column yet
  82698. sorting.push( [ colIdx, asSorting[0], 0 ] );
  82699. sorting[sorting.length-1]._idx = 0;
  82700. }
  82701. }
  82702. else if ( sorting.length && sorting[0][0] == colIdx ) {
  82703. // Single column - already sorting on this column, modify the sort
  82704. nextSortIdx = next( sorting[0] );
  82705. sorting.length = 1;
  82706. sorting[0][1] = asSorting[ nextSortIdx ];
  82707. sorting[0]._idx = nextSortIdx;
  82708. }
  82709. else {
  82710. // Single column - sort only on this column
  82711. sorting.length = 0;
  82712. sorting.push( [ colIdx, asSorting[0] ] );
  82713. sorting[0]._idx = 0;
  82714. }
  82715. // Run the sort by calling a full redraw
  82716. _fnReDraw( settings );
  82717. // callback used for async user interaction
  82718. if ( typeof callback == 'function' ) {
  82719. callback( settings );
  82720. }
  82721. }
  82722. /**
  82723. * Attach a sort handler (click) to a node
  82724. * @param {object} settings dataTables settings object
  82725. * @param {node} attachTo node to attach the handler to
  82726. * @param {int} colIdx column sorting index
  82727. * @param {function} [callback] callback function
  82728. * @memberof DataTable#oApi
  82729. */
  82730. function _fnSortAttachListener ( settings, attachTo, colIdx, callback )
  82731. {
  82732. var col = settings.aoColumns[ colIdx ];
  82733. _fnBindAction( attachTo, {}, function (e) {
  82734. /* If the column is not sortable - don't to anything */
  82735. if ( col.bSortable === false ) {
  82736. return;
  82737. }
  82738. // If processing is enabled use a timeout to allow the processing
  82739. // display to be shown - otherwise to it synchronously
  82740. if ( settings.oFeatures.bProcessing ) {
  82741. _fnProcessingDisplay( settings, true );
  82742. setTimeout( function() {
  82743. _fnSortListener( settings, colIdx, e.shiftKey, callback );
  82744. // In server-side processing, the draw callback will remove the
  82745. // processing display
  82746. if ( _fnDataSource( settings ) !== 'ssp' ) {
  82747. _fnProcessingDisplay( settings, false );
  82748. }
  82749. }, 0 );
  82750. }
  82751. else {
  82752. _fnSortListener( settings, colIdx, e.shiftKey, callback );
  82753. }
  82754. } );
  82755. }
  82756. /**
  82757. * Set the sorting classes on table's body, Note: it is safe to call this function
  82758. * when bSort and bSortClasses are false
  82759. * @param {object} oSettings dataTables settings object
  82760. * @memberof DataTable#oApi
  82761. */
  82762. function _fnSortingClasses( settings )
  82763. {
  82764. var oldSort = settings.aLastSort;
  82765. var sortClass = settings.oClasses.sSortColumn;
  82766. var sort = _fnSortFlatten( settings );
  82767. var features = settings.oFeatures;
  82768. var i, ien, colIdx;
  82769. if ( features.bSort && features.bSortClasses ) {
  82770. // Remove old sorting classes
  82771. for ( i=0, ien=oldSort.length ; i<ien ; i++ ) {
  82772. colIdx = oldSort[i].src;
  82773. // Remove column sorting
  82774. $( _pluck( settings.aoData, 'anCells', colIdx ) )
  82775. .removeClass( sortClass + (i<2 ? i+1 : 3) );
  82776. }
  82777. // Add new column sorting
  82778. for ( i=0, ien=sort.length ; i<ien ; i++ ) {
  82779. colIdx = sort[i].src;
  82780. $( _pluck( settings.aoData, 'anCells', colIdx ) )
  82781. .addClass( sortClass + (i<2 ? i+1 : 3) );
  82782. }
  82783. }
  82784. settings.aLastSort = sort;
  82785. }
  82786. // Get the data to sort a column, be it from cache, fresh (populating the
  82787. // cache), or from a sort formatter
  82788. function _fnSortData( settings, idx )
  82789. {
  82790. // Custom sorting function - provided by the sort data type
  82791. var column = settings.aoColumns[ idx ];
  82792. var customSort = DataTable.ext.order[ column.sSortDataType ];
  82793. var customData;
  82794. if ( customSort ) {
  82795. customData = customSort.call( settings.oInstance, settings, idx,
  82796. _fnColumnIndexToVisible( settings, idx )
  82797. );
  82798. }
  82799. // Use / populate cache
  82800. var row, cellData;
  82801. var formatter = DataTable.ext.type.order[ column.sType+"-pre" ];
  82802. for ( var i=0, ien=settings.aoData.length ; i<ien ; i++ ) {
  82803. row = settings.aoData[i];
  82804. if ( ! row._aSortData ) {
  82805. row._aSortData = [];
  82806. }
  82807. if ( ! row._aSortData[idx] || customSort ) {
  82808. cellData = customSort ?
  82809. customData[i] : // If there was a custom sort function, use data from there
  82810. _fnGetCellData( settings, i, idx, 'sort' );
  82811. row._aSortData[ idx ] = formatter ?
  82812. formatter( cellData ) :
  82813. cellData;
  82814. }
  82815. }
  82816. }
  82817. /**
  82818. * Save the state of a table
  82819. * @param {object} oSettings dataTables settings object
  82820. * @memberof DataTable#oApi
  82821. */
  82822. function _fnSaveState ( settings )
  82823. {
  82824. if ( !settings.oFeatures.bStateSave || settings.bDestroying )
  82825. {
  82826. return;
  82827. }
  82828. /* Store the interesting variables */
  82829. var state = {
  82830. time: +new Date(),
  82831. start: settings._iDisplayStart,
  82832. length: settings._iDisplayLength,
  82833. order: $.extend( true, [], settings.aaSorting ),
  82834. search: _fnSearchToCamel( settings.oPreviousSearch ),
  82835. columns: $.map( settings.aoColumns, function ( col, i ) {
  82836. return {
  82837. visible: col.bVisible,
  82838. search: _fnSearchToCamel( settings.aoPreSearchCols[i] )
  82839. };
  82840. } )
  82841. };
  82842. _fnCallbackFire( settings, "aoStateSaveParams", 'stateSaveParams', [settings, state] );
  82843. settings.oSavedState = state;
  82844. settings.fnStateSaveCallback.call( settings.oInstance, settings, state );
  82845. }
  82846. /**
  82847. * Attempt to load a saved table state
  82848. * @param {object} oSettings dataTables settings object
  82849. * @param {object} oInit DataTables init object so we can override settings
  82850. * @memberof DataTable#oApi
  82851. */
  82852. function _fnLoadState ( settings, oInit )
  82853. {
  82854. var i, ien;
  82855. var columns = settings.aoColumns;
  82856. if ( ! settings.oFeatures.bStateSave ) {
  82857. return;
  82858. }
  82859. var state = settings.fnStateLoadCallback.call( settings.oInstance, settings );
  82860. if ( ! state || ! state.time ) {
  82861. return;
  82862. }
  82863. /* Allow custom and plug-in manipulation functions to alter the saved data set and
  82864. * cancelling of loading by returning false
  82865. */
  82866. var abStateLoad = _fnCallbackFire( settings, 'aoStateLoadParams', 'stateLoadParams', [settings, state] );
  82867. if ( $.inArray( false, abStateLoad ) !== -1 ) {
  82868. return;
  82869. }
  82870. /* Reject old data */
  82871. var duration = settings.iStateDuration;
  82872. if ( duration > 0 && state.time < +new Date() - (duration*1000) ) {
  82873. return;
  82874. }
  82875. // Number of columns have changed - all bets are off, no restore of settings
  82876. if ( columns.length !== state.columns.length ) {
  82877. return;
  82878. }
  82879. // Store the saved state so it might be accessed at any time
  82880. settings.oLoadedState = $.extend( true, {}, state );
  82881. // Restore key features - todo - for 1.11 this needs to be done by
  82882. // subscribed events
  82883. if ( state.start !== undefined ) {
  82884. settings._iDisplayStart = state.start;
  82885. settings.iInitDisplayStart = state.start;
  82886. }
  82887. if ( state.length !== undefined ) {
  82888. settings._iDisplayLength = state.length;
  82889. }
  82890. // Order
  82891. if ( state.order !== undefined ) {
  82892. settings.aaSorting = [];
  82893. $.each( state.order, function ( i, col ) {
  82894. settings.aaSorting.push( col[0] >= columns.length ?
  82895. [ 0, col[1] ] :
  82896. col
  82897. );
  82898. } );
  82899. }
  82900. // Search
  82901. if ( state.search !== undefined ) {
  82902. $.extend( settings.oPreviousSearch, _fnSearchToHung( state.search ) );
  82903. }
  82904. // Columns
  82905. for ( i=0, ien=state.columns.length ; i<ien ; i++ ) {
  82906. var col = state.columns[i];
  82907. // Visibility
  82908. if ( col.visible !== undefined ) {
  82909. columns[i].bVisible = col.visible;
  82910. }
  82911. // Search
  82912. if ( col.search !== undefined ) {
  82913. $.extend( settings.aoPreSearchCols[i], _fnSearchToHung( col.search ) );
  82914. }
  82915. }
  82916. _fnCallbackFire( settings, 'aoStateLoaded', 'stateLoaded', [settings, state] );
  82917. }
  82918. /**
  82919. * Return the settings object for a particular table
  82920. * @param {node} table table we are using as a dataTable
  82921. * @returns {object} Settings object - or null if not found
  82922. * @memberof DataTable#oApi
  82923. */
  82924. function _fnSettingsFromNode ( table )
  82925. {
  82926. var settings = DataTable.settings;
  82927. var idx = $.inArray( table, _pluck( settings, 'nTable' ) );
  82928. return idx !== -1 ?
  82929. settings[ idx ] :
  82930. null;
  82931. }
  82932. /**
  82933. * Log an error message
  82934. * @param {object} settings dataTables settings object
  82935. * @param {int} level log error messages, or display them to the user
  82936. * @param {string} msg error message
  82937. * @param {int} tn Technical note id to get more information about the error.
  82938. * @memberof DataTable#oApi
  82939. */
  82940. function _fnLog( settings, level, msg, tn )
  82941. {
  82942. msg = 'DataTables warning: '+
  82943. (settings ? 'table id='+settings.sTableId+' - ' : '')+msg;
  82944. if ( tn ) {
  82945. msg += '. For more information about this error, please see '+
  82946. 'http://datatables.net/tn/'+tn;
  82947. }
  82948. if ( ! level ) {
  82949. // Backwards compatibility pre 1.10
  82950. var ext = DataTable.ext;
  82951. var type = ext.sErrMode || ext.errMode;
  82952. if ( settings ) {
  82953. _fnCallbackFire( settings, null, 'error', [ settings, tn, msg ] );
  82954. }
  82955. if ( type == 'alert' ) {
  82956. alert( msg );
  82957. }
  82958. else if ( type == 'throw' ) {
  82959. throw new Error(msg);
  82960. }
  82961. else if ( typeof type == 'function' ) {
  82962. type( settings, tn, msg );
  82963. }
  82964. }
  82965. else if ( window.console && console.log ) {
  82966. console.log( msg );
  82967. }
  82968. }
  82969. /**
  82970. * See if a property is defined on one object, if so assign it to the other object
  82971. * @param {object} ret target object
  82972. * @param {object} src source object
  82973. * @param {string} name property
  82974. * @param {string} [mappedName] name to map too - optional, name used if not given
  82975. * @memberof DataTable#oApi
  82976. */
  82977. function _fnMap( ret, src, name, mappedName )
  82978. {
  82979. if ( $.isArray( name ) ) {
  82980. $.each( name, function (i, val) {
  82981. if ( $.isArray( val ) ) {
  82982. _fnMap( ret, src, val[0], val[1] );
  82983. }
  82984. else {
  82985. _fnMap( ret, src, val );
  82986. }
  82987. } );
  82988. return;
  82989. }
  82990. if ( mappedName === undefined ) {
  82991. mappedName = name;
  82992. }
  82993. if ( src[name] !== undefined ) {
  82994. ret[mappedName] = src[name];
  82995. }
  82996. }
  82997. /**
  82998. * Extend objects - very similar to jQuery.extend, but deep copy objects, and
  82999. * shallow copy arrays. The reason we need to do this, is that we don't want to
  83000. * deep copy array init values (such as aaSorting) since the dev wouldn't be
  83001. * able to override them, but we do want to deep copy arrays.
  83002. * @param {object} out Object to extend
  83003. * @param {object} extender Object from which the properties will be applied to
  83004. * out
  83005. * @param {boolean} breakRefs If true, then arrays will be sliced to take an
  83006. * independent copy with the exception of the `data` or `aaData` parameters
  83007. * if they are present. This is so you can pass in a collection to
  83008. * DataTables and have that used as your data source without breaking the
  83009. * references
  83010. * @returns {object} out Reference, just for convenience - out === the return.
  83011. * @memberof DataTable#oApi
  83012. * @todo This doesn't take account of arrays inside the deep copied objects.
  83013. */
  83014. function _fnExtend( out, extender, breakRefs )
  83015. {
  83016. var val;
  83017. for ( var prop in extender ) {
  83018. if ( extender.hasOwnProperty(prop) ) {
  83019. val = extender[prop];
  83020. if ( $.isPlainObject( val ) ) {
  83021. if ( ! $.isPlainObject( out[prop] ) ) {
  83022. out[prop] = {};
  83023. }
  83024. $.extend( true, out[prop], val );
  83025. }
  83026. else if ( breakRefs && prop !== 'data' && prop !== 'aaData' && $.isArray(val) ) {
  83027. out[prop] = val.slice();
  83028. }
  83029. else {
  83030. out[prop] = val;
  83031. }
  83032. }
  83033. }
  83034. return out;
  83035. }
  83036. /**
  83037. * Bind an event handers to allow a click or return key to activate the callback.
  83038. * This is good for accessibility since a return on the keyboard will have the
  83039. * same effect as a click, if the element has focus.
  83040. * @param {element} n Element to bind the action to
  83041. * @param {object} oData Data object to pass to the triggered function
  83042. * @param {function} fn Callback function for when the event is triggered
  83043. * @memberof DataTable#oApi
  83044. */
  83045. function _fnBindAction( n, oData, fn )
  83046. {
  83047. $(n)
  83048. .bind( 'click.DT', oData, function (e) {
  83049. n.blur(); // Remove focus outline for mouse users
  83050. fn(e);
  83051. } )
  83052. .bind( 'keypress.DT', oData, function (e){
  83053. if ( e.which === 13 ) {
  83054. e.preventDefault();
  83055. fn(e);
  83056. }
  83057. } )
  83058. .bind( 'selectstart.DT', function () {
  83059. /* Take the brutal approach to cancelling text selection */
  83060. return false;
  83061. } );
  83062. }
  83063. /**
  83064. * Register a callback function. Easily allows a callback function to be added to
  83065. * an array store of callback functions that can then all be called together.
  83066. * @param {object} oSettings dataTables settings object
  83067. * @param {string} sStore Name of the array storage for the callbacks in oSettings
  83068. * @param {function} fn Function to be called back
  83069. * @param {string} sName Identifying name for the callback (i.e. a label)
  83070. * @memberof DataTable#oApi
  83071. */
  83072. function _fnCallbackReg( oSettings, sStore, fn, sName )
  83073. {
  83074. if ( fn )
  83075. {
  83076. oSettings[sStore].push( {
  83077. "fn": fn,
  83078. "sName": sName
  83079. } );
  83080. }
  83081. }
  83082. /**
  83083. * Fire callback functions and trigger events. Note that the loop over the
  83084. * callback array store is done backwards! Further note that you do not want to
  83085. * fire off triggers in time sensitive applications (for example cell creation)
  83086. * as its slow.
  83087. * @param {object} settings dataTables settings object
  83088. * @param {string} callbackArr Name of the array storage for the callbacks in
  83089. * oSettings
  83090. * @param {string} eventName Name of the jQuery custom event to trigger. If
  83091. * null no trigger is fired
  83092. * @param {array} args Array of arguments to pass to the callback function /
  83093. * trigger
  83094. * @memberof DataTable#oApi
  83095. */
  83096. function _fnCallbackFire( settings, callbackArr, eventName, args )
  83097. {
  83098. var ret = [];
  83099. if ( callbackArr ) {
  83100. ret = $.map( settings[callbackArr].slice().reverse(), function (val, i) {
  83101. return val.fn.apply( settings.oInstance, args );
  83102. } );
  83103. }
  83104. if ( eventName !== null ) {
  83105. var e = $.Event( eventName+'.dt' );
  83106. $(settings.nTable).trigger( e, args );
  83107. ret.push( e.result );
  83108. }
  83109. return ret;
  83110. }
  83111. function _fnLengthOverflow ( settings )
  83112. {
  83113. var
  83114. start = settings._iDisplayStart,
  83115. end = settings.fnDisplayEnd(),
  83116. len = settings._iDisplayLength;
  83117. /* If we have space to show extra rows (backing up from the end point - then do so */
  83118. if ( start >= end )
  83119. {
  83120. start = end - len;
  83121. }
  83122. // Keep the start record on the current page
  83123. start -= (start % len);
  83124. if ( len === -1 || start < 0 )
  83125. {
  83126. start = 0;
  83127. }
  83128. settings._iDisplayStart = start;
  83129. }
  83130. function _fnRenderer( settings, type )
  83131. {
  83132. var renderer = settings.renderer;
  83133. var host = DataTable.ext.renderer[type];
  83134. if ( $.isPlainObject( renderer ) && renderer[type] ) {
  83135. // Specific renderer for this type. If available use it, otherwise use
  83136. // the default.
  83137. return host[renderer[type]] || host._;
  83138. }
  83139. else if ( typeof renderer === 'string' ) {
  83140. // Common renderer - if there is one available for this type use it,
  83141. // otherwise use the default
  83142. return host[renderer] || host._;
  83143. }
  83144. // Use the default
  83145. return host._;
  83146. }
  83147. /**
  83148. * Detect the data source being used for the table. Used to simplify the code
  83149. * a little (ajax) and to make it compress a little smaller.
  83150. *
  83151. * @param {object} settings dataTables settings object
  83152. * @returns {string} Data source
  83153. * @memberof DataTable#oApi
  83154. */
  83155. function _fnDataSource ( settings )
  83156. {
  83157. if ( settings.oFeatures.bServerSide ) {
  83158. return 'ssp';
  83159. }
  83160. else if ( settings.ajax || settings.sAjaxSource ) {
  83161. return 'ajax';
  83162. }
  83163. return 'dom';
  83164. }
  83165. DataTable = function( options )
  83166. {
  83167. /**
  83168. * Perform a jQuery selector action on the table's TR elements (from the tbody) and
  83169. * return the resulting jQuery object.
  83170. * @param {string|node|jQuery} sSelector jQuery selector or node collection to act on
  83171. * @param {object} [oOpts] Optional parameters for modifying the rows to be included
  83172. * @param {string} [oOpts.filter=none] Select TR elements that meet the current filter
  83173. * criterion ("applied") or all TR elements (i.e. no filter).
  83174. * @param {string} [oOpts.order=current] Order of the TR elements in the processed array.
  83175. * Can be either 'current', whereby the current sorting of the table is used, or
  83176. * 'original' whereby the original order the data was read into the table is used.
  83177. * @param {string} [oOpts.page=all] Limit the selection to the currently displayed page
  83178. * ("current") or not ("all"). If 'current' is given, then order is assumed to be
  83179. * 'current' and filter is 'applied', regardless of what they might be given as.
  83180. * @returns {object} jQuery object, filtered by the given selector.
  83181. * @dtopt API
  83182. * @deprecated Since v1.10
  83183. *
  83184. * @example
  83185. * $(document).ready(function() {
  83186. * var oTable = $('#example').dataTable();
  83187. *
  83188. * // Highlight every second row
  83189. * oTable.$('tr:odd').css('backgroundColor', 'blue');
  83190. * } );
  83191. *
  83192. * @example
  83193. * $(document).ready(function() {
  83194. * var oTable = $('#example').dataTable();
  83195. *
  83196. * // Filter to rows with 'Webkit' in them, add a background colour and then
  83197. * // remove the filter, thus highlighting the 'Webkit' rows only.
  83198. * oTable.fnFilter('Webkit');
  83199. * oTable.$('tr', {"search": "applied"}).css('backgroundColor', 'blue');
  83200. * oTable.fnFilter('');
  83201. * } );
  83202. */
  83203. this.$ = function ( sSelector, oOpts )
  83204. {
  83205. return this.api(true).$( sSelector, oOpts );
  83206. };
  83207. /**
  83208. * Almost identical to $ in operation, but in this case returns the data for the matched
  83209. * rows - as such, the jQuery selector used should match TR row nodes or TD/TH cell nodes
  83210. * rather than any descendants, so the data can be obtained for the row/cell. If matching
  83211. * rows are found, the data returned is the original data array/object that was used to
  83212. * create the row (or a generated array if from a DOM source).
  83213. *
  83214. * This method is often useful in-combination with $ where both functions are given the
  83215. * same parameters and the array indexes will match identically.
  83216. * @param {string|node|jQuery} sSelector jQuery selector or node collection to act on
  83217. * @param {object} [oOpts] Optional parameters for modifying the rows to be included
  83218. * @param {string} [oOpts.filter=none] Select elements that meet the current filter
  83219. * criterion ("applied") or all elements (i.e. no filter).
  83220. * @param {string} [oOpts.order=current] Order of the data in the processed array.
  83221. * Can be either 'current', whereby the current sorting of the table is used, or
  83222. * 'original' whereby the original order the data was read into the table is used.
  83223. * @param {string} [oOpts.page=all] Limit the selection to the currently displayed page
  83224. * ("current") or not ("all"). If 'current' is given, then order is assumed to be
  83225. * 'current' and filter is 'applied', regardless of what they might be given as.
  83226. * @returns {array} Data for the matched elements. If any elements, as a result of the
  83227. * selector, were not TR, TD or TH elements in the DataTable, they will have a null
  83228. * entry in the array.
  83229. * @dtopt API
  83230. * @deprecated Since v1.10
  83231. *
  83232. * @example
  83233. * $(document).ready(function() {
  83234. * var oTable = $('#example').dataTable();
  83235. *
  83236. * // Get the data from the first row in the table
  83237. * var data = oTable._('tr:first');
  83238. *
  83239. * // Do something useful with the data
  83240. * alert( "First cell is: "+data[0] );
  83241. * } );
  83242. *
  83243. * @example
  83244. * $(document).ready(function() {
  83245. * var oTable = $('#example').dataTable();
  83246. *
  83247. * // Filter to 'Webkit' and get all data for
  83248. * oTable.fnFilter('Webkit');
  83249. * var data = oTable._('tr', {"search": "applied"});
  83250. *
  83251. * // Do something with the data
  83252. * alert( data.length+" rows matched the search" );
  83253. * } );
  83254. */
  83255. this._ = function ( sSelector, oOpts )
  83256. {
  83257. return this.api(true).rows( sSelector, oOpts ).data();
  83258. };
  83259. /**
  83260. * Create a DataTables Api instance, with the currently selected tables for
  83261. * the Api's context.
  83262. * @param {boolean} [traditional=false] Set the API instance's context to be
  83263. * only the table referred to by the `DataTable.ext.iApiIndex` option, as was
  83264. * used in the API presented by DataTables 1.9- (i.e. the traditional mode),
  83265. * or if all tables captured in the jQuery object should be used.
  83266. * @return {DataTables.Api}
  83267. */
  83268. this.api = function ( traditional )
  83269. {
  83270. return traditional ?
  83271. new _Api(
  83272. _fnSettingsFromNode( this[ _ext.iApiIndex ] )
  83273. ) :
  83274. new _Api( this );
  83275. };
  83276. /**
  83277. * Add a single new row or multiple rows of data to the table. Please note
  83278. * that this is suitable for client-side processing only - if you are using
  83279. * server-side processing (i.e. "bServerSide": true), then to add data, you
  83280. * must add it to the data source, i.e. the server-side, through an Ajax call.
  83281. * @param {array|object} data The data to be added to the table. This can be:
  83282. * <ul>
  83283. * <li>1D array of data - add a single row with the data provided</li>
  83284. * <li>2D array of arrays - add multiple rows in a single call</li>
  83285. * <li>object - data object when using <i>mData</i></li>
  83286. * <li>array of objects - multiple data objects when using <i>mData</i></li>
  83287. * </ul>
  83288. * @param {bool} [redraw=true] redraw the table or not
  83289. * @returns {array} An array of integers, representing the list of indexes in
  83290. * <i>aoData</i> ({@link DataTable.models.oSettings}) that have been added to
  83291. * the table.
  83292. * @dtopt API
  83293. * @deprecated Since v1.10
  83294. *
  83295. * @example
  83296. * // Global var for counter
  83297. * var giCount = 2;
  83298. *
  83299. * $(document).ready(function() {
  83300. * $('#example').dataTable();
  83301. * } );
  83302. *
  83303. * function fnClickAddRow() {
  83304. * $('#example').dataTable().fnAddData( [
  83305. * giCount+".1",
  83306. * giCount+".2",
  83307. * giCount+".3",
  83308. * giCount+".4" ]
  83309. * );
  83310. *
  83311. * giCount++;
  83312. * }
  83313. */
  83314. this.fnAddData = function( data, redraw )
  83315. {
  83316. var api = this.api( true );
  83317. /* Check if we want to add multiple rows or not */
  83318. var rows = $.isArray(data) && ( $.isArray(data[0]) || $.isPlainObject(data[0]) ) ?
  83319. api.rows.add( data ) :
  83320. api.row.add( data );
  83321. if ( redraw === undefined || redraw ) {
  83322. api.draw();
  83323. }
  83324. return rows.flatten().toArray();
  83325. };
  83326. /**
  83327. * This function will make DataTables recalculate the column sizes, based on the data
  83328. * contained in the table and the sizes applied to the columns (in the DOM, CSS or
  83329. * through the sWidth parameter). This can be useful when the width of the table's
  83330. * parent element changes (for example a window resize).
  83331. * @param {boolean} [bRedraw=true] Redraw the table or not, you will typically want to
  83332. * @dtopt API
  83333. * @deprecated Since v1.10
  83334. *
  83335. * @example
  83336. * $(document).ready(function() {
  83337. * var oTable = $('#example').dataTable( {
  83338. * "sScrollY": "200px",
  83339. * "bPaginate": false
  83340. * } );
  83341. *
  83342. * $(window).bind('resize', function () {
  83343. * oTable.fnAdjustColumnSizing();
  83344. * } );
  83345. * } );
  83346. */
  83347. this.fnAdjustColumnSizing = function ( bRedraw )
  83348. {
  83349. var api = this.api( true ).columns.adjust();
  83350. var settings = api.settings()[0];
  83351. var scroll = settings.oScroll;
  83352. if ( bRedraw === undefined || bRedraw ) {
  83353. api.draw( false );
  83354. }
  83355. else if ( scroll.sX !== "" || scroll.sY !== "" ) {
  83356. /* If not redrawing, but scrolling, we want to apply the new column sizes anyway */
  83357. _fnScrollDraw( settings );
  83358. }
  83359. };
  83360. /**
  83361. * Quickly and simply clear a table
  83362. * @param {bool} [bRedraw=true] redraw the table or not
  83363. * @dtopt API
  83364. * @deprecated Since v1.10
  83365. *
  83366. * @example
  83367. * $(document).ready(function() {
  83368. * var oTable = $('#example').dataTable();
  83369. *
  83370. * // Immediately 'nuke' the current rows (perhaps waiting for an Ajax callback...)
  83371. * oTable.fnClearTable();
  83372. * } );
  83373. */
  83374. this.fnClearTable = function( bRedraw )
  83375. {
  83376. var api = this.api( true ).clear();
  83377. if ( bRedraw === undefined || bRedraw ) {
  83378. api.draw();
  83379. }
  83380. };
  83381. /**
  83382. * The exact opposite of 'opening' a row, this function will close any rows which
  83383. * are currently 'open'.
  83384. * @param {node} nTr the table row to 'close'
  83385. * @returns {int} 0 on success, or 1 if failed (can't find the row)
  83386. * @dtopt API
  83387. * @deprecated Since v1.10
  83388. *
  83389. * @example
  83390. * $(document).ready(function() {
  83391. * var oTable;
  83392. *
  83393. * // 'open' an information row when a row is clicked on
  83394. * $('#example tbody tr').click( function () {
  83395. * if ( oTable.fnIsOpen(this) ) {
  83396. * oTable.fnClose( this );
  83397. * } else {
  83398. * oTable.fnOpen( this, "Temporary row opened", "info_row" );
  83399. * }
  83400. * } );
  83401. *
  83402. * oTable = $('#example').dataTable();
  83403. * } );
  83404. */
  83405. this.fnClose = function( nTr )
  83406. {
  83407. this.api( true ).row( nTr ).child.hide();
  83408. };
  83409. /**
  83410. * Remove a row for the table
  83411. * @param {mixed} target The index of the row from aoData to be deleted, or
  83412. * the TR element you want to delete
  83413. * @param {function|null} [callBack] Callback function
  83414. * @param {bool} [redraw=true] Redraw the table or not
  83415. * @returns {array} The row that was deleted
  83416. * @dtopt API
  83417. * @deprecated Since v1.10
  83418. *
  83419. * @example
  83420. * $(document).ready(function() {
  83421. * var oTable = $('#example').dataTable();
  83422. *
  83423. * // Immediately remove the first row
  83424. * oTable.fnDeleteRow( 0 );
  83425. * } );
  83426. */
  83427. this.fnDeleteRow = function( target, callback, redraw )
  83428. {
  83429. var api = this.api( true );
  83430. var rows = api.rows( target );
  83431. var settings = rows.settings()[0];
  83432. var data = settings.aoData[ rows[0][0] ];
  83433. rows.remove();
  83434. if ( callback ) {
  83435. callback.call( this, settings, data );
  83436. }
  83437. if ( redraw === undefined || redraw ) {
  83438. api.draw();
  83439. }
  83440. return data;
  83441. };
  83442. /**
  83443. * Restore the table to it's original state in the DOM by removing all of DataTables
  83444. * enhancements, alterations to the DOM structure of the table and event listeners.
  83445. * @param {boolean} [remove=false] Completely remove the table from the DOM
  83446. * @dtopt API
  83447. * @deprecated Since v1.10
  83448. *
  83449. * @example
  83450. * $(document).ready(function() {
  83451. * // This example is fairly pointless in reality, but shows how fnDestroy can be used
  83452. * var oTable = $('#example').dataTable();
  83453. * oTable.fnDestroy();
  83454. * } );
  83455. */
  83456. this.fnDestroy = function ( remove )
  83457. {
  83458. this.api( true ).destroy( remove );
  83459. };
  83460. /**
  83461. * Redraw the table
  83462. * @param {bool} [complete=true] Re-filter and resort (if enabled) the table before the draw.
  83463. * @dtopt API
  83464. * @deprecated Since v1.10
  83465. *
  83466. * @example
  83467. * $(document).ready(function() {
  83468. * var oTable = $('#example').dataTable();
  83469. *
  83470. * // Re-draw the table - you wouldn't want to do it here, but it's an example :-)
  83471. * oTable.fnDraw();
  83472. * } );
  83473. */
  83474. this.fnDraw = function( complete )
  83475. {
  83476. // Note that this isn't an exact match to the old call to _fnDraw - it takes
  83477. // into account the new data, but can hold position.
  83478. this.api( true ).draw( complete );
  83479. };
  83480. /**
  83481. * Filter the input based on data
  83482. * @param {string} sInput String to filter the table on
  83483. * @param {int|null} [iColumn] Column to limit filtering to
  83484. * @param {bool} [bRegex=false] Treat as regular expression or not
  83485. * @param {bool} [bSmart=true] Perform smart filtering or not
  83486. * @param {bool} [bShowGlobal=true] Show the input global filter in it's input box(es)
  83487. * @param {bool} [bCaseInsensitive=true] Do case-insensitive matching (true) or not (false)
  83488. * @dtopt API
  83489. * @deprecated Since v1.10
  83490. *
  83491. * @example
  83492. * $(document).ready(function() {
  83493. * var oTable = $('#example').dataTable();
  83494. *
  83495. * // Sometime later - filter...
  83496. * oTable.fnFilter( 'test string' );
  83497. * } );
  83498. */
  83499. this.fnFilter = function( sInput, iColumn, bRegex, bSmart, bShowGlobal, bCaseInsensitive )
  83500. {
  83501. var api = this.api( true );
  83502. if ( iColumn === null || iColumn === undefined ) {
  83503. api.search( sInput, bRegex, bSmart, bCaseInsensitive );
  83504. }
  83505. else {
  83506. api.column( iColumn ).search( sInput, bRegex, bSmart, bCaseInsensitive );
  83507. }
  83508. api.draw();
  83509. };
  83510. /**
  83511. * Get the data for the whole table, an individual row or an individual cell based on the
  83512. * provided parameters.
  83513. * @param {int|node} [src] A TR row node, TD/TH cell node or an integer. If given as
  83514. * a TR node then the data source for the whole row will be returned. If given as a
  83515. * TD/TH cell node then iCol will be automatically calculated and the data for the
  83516. * cell returned. If given as an integer, then this is treated as the aoData internal
  83517. * data index for the row (see fnGetPosition) and the data for that row used.
  83518. * @param {int} [col] Optional column index that you want the data of.
  83519. * @returns {array|object|string} If mRow is undefined, then the data for all rows is
  83520. * returned. If mRow is defined, just data for that row, and is iCol is
  83521. * defined, only data for the designated cell is returned.
  83522. * @dtopt API
  83523. * @deprecated Since v1.10
  83524. *
  83525. * @example
  83526. * // Row data
  83527. * $(document).ready(function() {
  83528. * oTable = $('#example').dataTable();
  83529. *
  83530. * oTable.$('tr').click( function () {
  83531. * var data = oTable.fnGetData( this );
  83532. * // ... do something with the array / object of data for the row
  83533. * } );
  83534. * } );
  83535. *
  83536. * @example
  83537. * // Individual cell data
  83538. * $(document).ready(function() {
  83539. * oTable = $('#example').dataTable();
  83540. *
  83541. * oTable.$('td').click( function () {
  83542. * var sData = oTable.fnGetData( this );
  83543. * alert( 'The cell clicked on had the value of '+sData );
  83544. * } );
  83545. * } );
  83546. */
  83547. this.fnGetData = function( src, col )
  83548. {
  83549. var api = this.api( true );
  83550. if ( src !== undefined ) {
  83551. var type = src.nodeName ? src.nodeName.toLowerCase() : '';
  83552. return col !== undefined || type == 'td' || type == 'th' ?
  83553. api.cell( src, col ).data() :
  83554. api.row( src ).data() || null;
  83555. }
  83556. return api.data().toArray();
  83557. };
  83558. /**
  83559. * Get an array of the TR nodes that are used in the table's body. Note that you will
  83560. * typically want to use the '$' API method in preference to this as it is more
  83561. * flexible.
  83562. * @param {int} [iRow] Optional row index for the TR element you want
  83563. * @returns {array|node} If iRow is undefined, returns an array of all TR elements
  83564. * in the table's body, or iRow is defined, just the TR element requested.
  83565. * @dtopt API
  83566. * @deprecated Since v1.10
  83567. *
  83568. * @example
  83569. * $(document).ready(function() {
  83570. * var oTable = $('#example').dataTable();
  83571. *
  83572. * // Get the nodes from the table
  83573. * var nNodes = oTable.fnGetNodes( );
  83574. * } );
  83575. */
  83576. this.fnGetNodes = function( iRow )
  83577. {
  83578. var api = this.api( true );
  83579. return iRow !== undefined ?
  83580. api.row( iRow ).node() :
  83581. api.rows().nodes().flatten().toArray();
  83582. };
  83583. /**
  83584. * Get the array indexes of a particular cell from it's DOM element
  83585. * and column index including hidden columns
  83586. * @param {node} node this can either be a TR, TD or TH in the table's body
  83587. * @returns {int} If nNode is given as a TR, then a single index is returned, or
  83588. * if given as a cell, an array of [row index, column index (visible),
  83589. * column index (all)] is given.
  83590. * @dtopt API
  83591. * @deprecated Since v1.10
  83592. *
  83593. * @example
  83594. * $(document).ready(function() {
  83595. * $('#example tbody td').click( function () {
  83596. * // Get the position of the current data from the node
  83597. * var aPos = oTable.fnGetPosition( this );
  83598. *
  83599. * // Get the data array for this row
  83600. * var aData = oTable.fnGetData( aPos[0] );
  83601. *
  83602. * // Update the data array and return the value
  83603. * aData[ aPos[1] ] = 'clicked';
  83604. * this.innerHTML = 'clicked';
  83605. * } );
  83606. *
  83607. * // Init DataTables
  83608. * oTable = $('#example').dataTable();
  83609. * } );
  83610. */
  83611. this.fnGetPosition = function( node )
  83612. {
  83613. var api = this.api( true );
  83614. var nodeName = node.nodeName.toUpperCase();
  83615. if ( nodeName == 'TR' ) {
  83616. return api.row( node ).index();
  83617. }
  83618. else if ( nodeName == 'TD' || nodeName == 'TH' ) {
  83619. var cell = api.cell( node ).index();
  83620. return [
  83621. cell.row,
  83622. cell.columnVisible,
  83623. cell.column
  83624. ];
  83625. }
  83626. return null;
  83627. };
  83628. /**
  83629. * Check to see if a row is 'open' or not.
  83630. * @param {node} nTr the table row to check
  83631. * @returns {boolean} true if the row is currently open, false otherwise
  83632. * @dtopt API
  83633. * @deprecated Since v1.10
  83634. *
  83635. * @example
  83636. * $(document).ready(function() {
  83637. * var oTable;
  83638. *
  83639. * // 'open' an information row when a row is clicked on
  83640. * $('#example tbody tr').click( function () {
  83641. * if ( oTable.fnIsOpen(this) ) {
  83642. * oTable.fnClose( this );
  83643. * } else {
  83644. * oTable.fnOpen( this, "Temporary row opened", "info_row" );
  83645. * }
  83646. * } );
  83647. *
  83648. * oTable = $('#example').dataTable();
  83649. * } );
  83650. */
  83651. this.fnIsOpen = function( nTr )
  83652. {
  83653. return this.api( true ).row( nTr ).child.isShown();
  83654. };
  83655. /**
  83656. * This function will place a new row directly after a row which is currently
  83657. * on display on the page, with the HTML contents that is passed into the
  83658. * function. This can be used, for example, to ask for confirmation that a
  83659. * particular record should be deleted.
  83660. * @param {node} nTr The table row to 'open'
  83661. * @param {string|node|jQuery} mHtml The HTML to put into the row
  83662. * @param {string} sClass Class to give the new TD cell
  83663. * @returns {node} The row opened. Note that if the table row passed in as the
  83664. * first parameter, is not found in the table, this method will silently
  83665. * return.
  83666. * @dtopt API
  83667. * @deprecated Since v1.10
  83668. *
  83669. * @example
  83670. * $(document).ready(function() {
  83671. * var oTable;
  83672. *
  83673. * // 'open' an information row when a row is clicked on
  83674. * $('#example tbody tr').click( function () {
  83675. * if ( oTable.fnIsOpen(this) ) {
  83676. * oTable.fnClose( this );
  83677. * } else {
  83678. * oTable.fnOpen( this, "Temporary row opened", "info_row" );
  83679. * }
  83680. * } );
  83681. *
  83682. * oTable = $('#example').dataTable();
  83683. * } );
  83684. */
  83685. this.fnOpen = function( nTr, mHtml, sClass )
  83686. {
  83687. return this.api( true )
  83688. .row( nTr )
  83689. .child( mHtml, sClass )
  83690. .show()
  83691. .child()[0];
  83692. };
  83693. /**
  83694. * Change the pagination - provides the internal logic for pagination in a simple API
  83695. * function. With this function you can have a DataTables table go to the next,
  83696. * previous, first or last pages.
  83697. * @param {string|int} mAction Paging action to take: "first", "previous", "next" or "last"
  83698. * or page number to jump to (integer), note that page 0 is the first page.
  83699. * @param {bool} [bRedraw=true] Redraw the table or not
  83700. * @dtopt API
  83701. * @deprecated Since v1.10
  83702. *
  83703. * @example
  83704. * $(document).ready(function() {
  83705. * var oTable = $('#example').dataTable();
  83706. * oTable.fnPageChange( 'next' );
  83707. * } );
  83708. */
  83709. this.fnPageChange = function ( mAction, bRedraw )
  83710. {
  83711. var api = this.api( true ).page( mAction );
  83712. if ( bRedraw === undefined || bRedraw ) {
  83713. api.draw(false);
  83714. }
  83715. };
  83716. /**
  83717. * Show a particular column
  83718. * @param {int} iCol The column whose display should be changed
  83719. * @param {bool} bShow Show (true) or hide (false) the column
  83720. * @param {bool} [bRedraw=true] Redraw the table or not
  83721. * @dtopt API
  83722. * @deprecated Since v1.10
  83723. *
  83724. * @example
  83725. * $(document).ready(function() {
  83726. * var oTable = $('#example').dataTable();
  83727. *
  83728. * // Hide the second column after initialisation
  83729. * oTable.fnSetColumnVis( 1, false );
  83730. * } );
  83731. */
  83732. this.fnSetColumnVis = function ( iCol, bShow, bRedraw )
  83733. {
  83734. var api = this.api( true ).column( iCol ).visible( bShow );
  83735. if ( bRedraw === undefined || bRedraw ) {
  83736. api.columns.adjust().draw();
  83737. }
  83738. };
  83739. /**
  83740. * Get the settings for a particular table for external manipulation
  83741. * @returns {object} DataTables settings object. See
  83742. * {@link DataTable.models.oSettings}
  83743. * @dtopt API
  83744. * @deprecated Since v1.10
  83745. *
  83746. * @example
  83747. * $(document).ready(function() {
  83748. * var oTable = $('#example').dataTable();
  83749. * var oSettings = oTable.fnSettings();
  83750. *
  83751. * // Show an example parameter from the settings
  83752. * alert( oSettings._iDisplayStart );
  83753. * } );
  83754. */
  83755. this.fnSettings = function()
  83756. {
  83757. return _fnSettingsFromNode( this[_ext.iApiIndex] );
  83758. };
  83759. /**
  83760. * Sort the table by a particular column
  83761. * @param {int} iCol the data index to sort on. Note that this will not match the
  83762. * 'display index' if you have hidden data entries
  83763. * @dtopt API
  83764. * @deprecated Since v1.10
  83765. *
  83766. * @example
  83767. * $(document).ready(function() {
  83768. * var oTable = $('#example').dataTable();
  83769. *
  83770. * // Sort immediately with columns 0 and 1
  83771. * oTable.fnSort( [ [0,'asc'], [1,'asc'] ] );
  83772. * } );
  83773. */
  83774. this.fnSort = function( aaSort )
  83775. {
  83776. this.api( true ).order( aaSort ).draw();
  83777. };
  83778. /**
  83779. * Attach a sort listener to an element for a given column
  83780. * @param {node} nNode the element to attach the sort listener to
  83781. * @param {int} iColumn the column that a click on this node will sort on
  83782. * @param {function} [fnCallback] callback function when sort is run
  83783. * @dtopt API
  83784. * @deprecated Since v1.10
  83785. *
  83786. * @example
  83787. * $(document).ready(function() {
  83788. * var oTable = $('#example').dataTable();
  83789. *
  83790. * // Sort on column 1, when 'sorter' is clicked on
  83791. * oTable.fnSortListener( document.getElementById('sorter'), 1 );
  83792. * } );
  83793. */
  83794. this.fnSortListener = function( nNode, iColumn, fnCallback )
  83795. {
  83796. this.api( true ).order.listener( nNode, iColumn, fnCallback );
  83797. };
  83798. /**
  83799. * Update a table cell or row - this method will accept either a single value to
  83800. * update the cell with, an array of values with one element for each column or
  83801. * an object in the same format as the original data source. The function is
  83802. * self-referencing in order to make the multi column updates easier.
  83803. * @param {object|array|string} mData Data to update the cell/row with
  83804. * @param {node|int} mRow TR element you want to update or the aoData index
  83805. * @param {int} [iColumn] The column to update, give as null or undefined to
  83806. * update a whole row.
  83807. * @param {bool} [bRedraw=true] Redraw the table or not
  83808. * @param {bool} [bAction=true] Perform pre-draw actions or not
  83809. * @returns {int} 0 on success, 1 on error
  83810. * @dtopt API
  83811. * @deprecated Since v1.10
  83812. *
  83813. * @example
  83814. * $(document).ready(function() {
  83815. * var oTable = $('#example').dataTable();
  83816. * oTable.fnUpdate( 'Example update', 0, 0 ); // Single cell
  83817. * oTable.fnUpdate( ['a', 'b', 'c', 'd', 'e'], $('tbody tr')[0] ); // Row
  83818. * } );
  83819. */
  83820. this.fnUpdate = function( mData, mRow, iColumn, bRedraw, bAction )
  83821. {
  83822. var api = this.api( true );
  83823. if ( iColumn === undefined || iColumn === null ) {
  83824. api.row( mRow ).data( mData );
  83825. }
  83826. else {
  83827. api.cell( mRow, iColumn ).data( mData );
  83828. }
  83829. if ( bAction === undefined || bAction ) {
  83830. api.columns.adjust();
  83831. }
  83832. if ( bRedraw === undefined || bRedraw ) {
  83833. api.draw();
  83834. }
  83835. return 0;
  83836. };
  83837. /**
  83838. * Provide a common method for plug-ins to check the version of DataTables being used, in order
  83839. * to ensure compatibility.
  83840. * @param {string} sVersion Version string to check for, in the format "X.Y.Z". Note that the
  83841. * formats "X" and "X.Y" are also acceptable.
  83842. * @returns {boolean} true if this version of DataTables is greater or equal to the required
  83843. * version, or false if this version of DataTales is not suitable
  83844. * @method
  83845. * @dtopt API
  83846. * @deprecated Since v1.10
  83847. *
  83848. * @example
  83849. * $(document).ready(function() {
  83850. * var oTable = $('#example').dataTable();
  83851. * alert( oTable.fnVersionCheck( '1.9.0' ) );
  83852. * } );
  83853. */
  83854. this.fnVersionCheck = _ext.fnVersionCheck;
  83855. var _that = this;
  83856. var emptyInit = options === undefined;
  83857. var len = this.length;
  83858. if ( emptyInit ) {
  83859. options = {};
  83860. }
  83861. this.oApi = this.internal = _ext.internal;
  83862. // Extend with old style plug-in API methods
  83863. for ( var fn in DataTable.ext.internal ) {
  83864. if ( fn ) {
  83865. this[fn] = _fnExternApiFunc(fn);
  83866. }
  83867. }
  83868. this.each(function() {
  83869. // For each initialisation we want to give it a clean initialisation
  83870. // object that can be bashed around
  83871. var o = {};
  83872. var oInit = len > 1 ? // optimisation for single table case
  83873. _fnExtend( o, options, true ) :
  83874. options;
  83875. /*global oInit,_that,emptyInit*/
  83876. var i=0, iLen, j, jLen, k, kLen;
  83877. var sId = this.getAttribute( 'id' );
  83878. var bInitHandedOff = false;
  83879. var defaults = DataTable.defaults;
  83880. var $this = $(this);
  83881. /* Sanity check */
  83882. if ( this.nodeName.toLowerCase() != 'table' )
  83883. {
  83884. _fnLog( null, 0, 'Non-table node initialisation ('+this.nodeName+')', 2 );
  83885. return;
  83886. }
  83887. /* Backwards compatibility for the defaults */
  83888. _fnCompatOpts( defaults );
  83889. _fnCompatCols( defaults.column );
  83890. /* Convert the camel-case defaults to Hungarian */
  83891. _fnCamelToHungarian( defaults, defaults, true );
  83892. _fnCamelToHungarian( defaults.column, defaults.column, true );
  83893. /* Setting up the initialisation object */
  83894. _fnCamelToHungarian( defaults, $.extend( oInit, $this.data() ) );
  83895. /* Check to see if we are re-initialising a table */
  83896. var allSettings = DataTable.settings;
  83897. for ( i=0, iLen=allSettings.length ; i<iLen ; i++ )
  83898. {
  83899. var s = allSettings[i];
  83900. /* Base check on table node */
  83901. if ( s.nTable == this || s.nTHead.parentNode == this || (s.nTFoot && s.nTFoot.parentNode == this) )
  83902. {
  83903. var bRetrieve = oInit.bRetrieve !== undefined ? oInit.bRetrieve : defaults.bRetrieve;
  83904. var bDestroy = oInit.bDestroy !== undefined ? oInit.bDestroy : defaults.bDestroy;
  83905. if ( emptyInit || bRetrieve )
  83906. {
  83907. return s.oInstance;
  83908. }
  83909. else if ( bDestroy )
  83910. {
  83911. s.oInstance.fnDestroy();
  83912. break;
  83913. }
  83914. else
  83915. {
  83916. _fnLog( s, 0, 'Cannot reinitialise DataTable', 3 );
  83917. return;
  83918. }
  83919. }
  83920. /* If the element we are initialising has the same ID as a table which was previously
  83921. * initialised, but the table nodes don't match (from before) then we destroy the old
  83922. * instance by simply deleting it. This is under the assumption that the table has been
  83923. * destroyed by other methods. Anyone using non-id selectors will need to do this manually
  83924. */
  83925. if ( s.sTableId == this.id )
  83926. {
  83927. allSettings.splice( i, 1 );
  83928. break;
  83929. }
  83930. }
  83931. /* Ensure the table has an ID - required for accessibility */
  83932. if ( sId === null || sId === "" )
  83933. {
  83934. sId = "DataTables_Table_"+(DataTable.ext._unique++);
  83935. this.id = sId;
  83936. }
  83937. /* Create the settings object for this table and set some of the default parameters */
  83938. var oSettings = $.extend( true, {}, DataTable.models.oSettings, {
  83939. "sDestroyWidth": $this[0].style.width,
  83940. "sInstance": sId,
  83941. "sTableId": sId
  83942. } );
  83943. oSettings.nTable = this;
  83944. oSettings.oApi = _that.internal;
  83945. oSettings.oInit = oInit;
  83946. allSettings.push( oSettings );
  83947. // Need to add the instance after the instance after the settings object has been added
  83948. // to the settings array, so we can self reference the table instance if more than one
  83949. oSettings.oInstance = (_that.length===1) ? _that : $this.dataTable();
  83950. // Backwards compatibility, before we apply all the defaults
  83951. _fnCompatOpts( oInit );
  83952. if ( oInit.oLanguage )
  83953. {
  83954. _fnLanguageCompat( oInit.oLanguage );
  83955. }
  83956. // If the length menu is given, but the init display length is not, use the length menu
  83957. if ( oInit.aLengthMenu && ! oInit.iDisplayLength )
  83958. {
  83959. oInit.iDisplayLength = $.isArray( oInit.aLengthMenu[0] ) ?
  83960. oInit.aLengthMenu[0][0] : oInit.aLengthMenu[0];
  83961. }
  83962. // Apply the defaults and init options to make a single init object will all
  83963. // options defined from defaults and instance options.
  83964. oInit = _fnExtend( $.extend( true, {}, defaults ), oInit );
  83965. // Map the initialisation options onto the settings object
  83966. _fnMap( oSettings.oFeatures, oInit, [
  83967. "bPaginate",
  83968. "bLengthChange",
  83969. "bFilter",
  83970. "bSort",
  83971. "bSortMulti",
  83972. "bInfo",
  83973. "bProcessing",
  83974. "bAutoWidth",
  83975. "bSortClasses",
  83976. "bServerSide",
  83977. "bDeferRender"
  83978. ] );
  83979. _fnMap( oSettings, oInit, [
  83980. "asStripeClasses",
  83981. "ajax",
  83982. "fnServerData",
  83983. "fnFormatNumber",
  83984. "sServerMethod",
  83985. "aaSorting",
  83986. "aaSortingFixed",
  83987. "aLengthMenu",
  83988. "sPaginationType",
  83989. "sAjaxSource",
  83990. "sAjaxDataProp",
  83991. "iStateDuration",
  83992. "sDom",
  83993. "bSortCellsTop",
  83994. "iTabIndex",
  83995. "fnStateLoadCallback",
  83996. "fnStateSaveCallback",
  83997. "renderer",
  83998. "searchDelay",
  83999. "rowId",
  84000. [ "iCookieDuration", "iStateDuration" ], // backwards compat
  84001. [ "oSearch", "oPreviousSearch" ],
  84002. [ "aoSearchCols", "aoPreSearchCols" ],
  84003. [ "iDisplayLength", "_iDisplayLength" ],
  84004. [ "bJQueryUI", "bJUI" ]
  84005. ] );
  84006. _fnMap( oSettings.oScroll, oInit, [
  84007. [ "sScrollX", "sX" ],
  84008. [ "sScrollXInner", "sXInner" ],
  84009. [ "sScrollY", "sY" ],
  84010. [ "bScrollCollapse", "bCollapse" ]
  84011. ] );
  84012. _fnMap( oSettings.oLanguage, oInit, "fnInfoCallback" );
  84013. /* Callback functions which are array driven */
  84014. _fnCallbackReg( oSettings, 'aoDrawCallback', oInit.fnDrawCallback, 'user' );
  84015. _fnCallbackReg( oSettings, 'aoServerParams', oInit.fnServerParams, 'user' );
  84016. _fnCallbackReg( oSettings, 'aoStateSaveParams', oInit.fnStateSaveParams, 'user' );
  84017. _fnCallbackReg( oSettings, 'aoStateLoadParams', oInit.fnStateLoadParams, 'user' );
  84018. _fnCallbackReg( oSettings, 'aoStateLoaded', oInit.fnStateLoaded, 'user' );
  84019. _fnCallbackReg( oSettings, 'aoRowCallback', oInit.fnRowCallback, 'user' );
  84020. _fnCallbackReg( oSettings, 'aoRowCreatedCallback', oInit.fnCreatedRow, 'user' );
  84021. _fnCallbackReg( oSettings, 'aoHeaderCallback', oInit.fnHeaderCallback, 'user' );
  84022. _fnCallbackReg( oSettings, 'aoFooterCallback', oInit.fnFooterCallback, 'user' );
  84023. _fnCallbackReg( oSettings, 'aoInitComplete', oInit.fnInitComplete, 'user' );
  84024. _fnCallbackReg( oSettings, 'aoPreDrawCallback', oInit.fnPreDrawCallback, 'user' );
  84025. oSettings.rowIdFn = _fnGetObjectDataFn( oInit.rowId );
  84026. var oClasses = oSettings.oClasses;
  84027. // @todo Remove in 1.11
  84028. if ( oInit.bJQueryUI )
  84029. {
  84030. /* Use the JUI classes object for display. You could clone the oStdClasses object if
  84031. * you want to have multiple tables with multiple independent classes
  84032. */
  84033. $.extend( oClasses, DataTable.ext.oJUIClasses, oInit.oClasses );
  84034. if ( oInit.sDom === defaults.sDom && defaults.sDom === "lfrtip" )
  84035. {
  84036. /* Set the DOM to use a layout suitable for jQuery UI's theming */
  84037. oSettings.sDom = '<"H"lfr>t<"F"ip>';
  84038. }
  84039. if ( ! oSettings.renderer ) {
  84040. oSettings.renderer = 'jqueryui';
  84041. }
  84042. else if ( $.isPlainObject( oSettings.renderer ) && ! oSettings.renderer.header ) {
  84043. oSettings.renderer.header = 'jqueryui';
  84044. }
  84045. }
  84046. else
  84047. {
  84048. $.extend( oClasses, DataTable.ext.classes, oInit.oClasses );
  84049. }
  84050. $this.addClass( oClasses.sTable );
  84051. /* Calculate the scroll bar width and cache it for use later on */
  84052. if ( oSettings.oScroll.sX !== "" || oSettings.oScroll.sY !== "" )
  84053. {
  84054. oSettings.oScroll.iBarWidth = _fnScrollBarWidth();
  84055. }
  84056. if ( oSettings.iInitDisplayStart === undefined )
  84057. {
  84058. /* Display start point, taking into account the save saving */
  84059. oSettings.iInitDisplayStart = oInit.iDisplayStart;
  84060. oSettings._iDisplayStart = oInit.iDisplayStart;
  84061. }
  84062. if ( oInit.iDeferLoading !== null )
  84063. {
  84064. oSettings.bDeferLoading = true;
  84065. var tmp = $.isArray( oInit.iDeferLoading );
  84066. oSettings._iRecordsDisplay = tmp ? oInit.iDeferLoading[0] : oInit.iDeferLoading;
  84067. oSettings._iRecordsTotal = tmp ? oInit.iDeferLoading[1] : oInit.iDeferLoading;
  84068. }
  84069. /* Language definitions */
  84070. var oLanguage = oSettings.oLanguage;
  84071. $.extend( true, oLanguage, oInit.oLanguage );
  84072. if ( oLanguage.sUrl !== "" )
  84073. {
  84074. /* Get the language definitions from a file - because this Ajax call makes the language
  84075. * get async to the remainder of this function we use bInitHandedOff to indicate that
  84076. * _fnInitialise will be fired by the returned Ajax handler, rather than the constructor
  84077. */
  84078. $.ajax( {
  84079. dataType: 'json',
  84080. url: oLanguage.sUrl,
  84081. success: function ( json ) {
  84082. _fnLanguageCompat( json );
  84083. _fnCamelToHungarian( defaults.oLanguage, json );
  84084. $.extend( true, oLanguage, json );
  84085. _fnInitialise( oSettings );
  84086. },
  84087. error: function () {
  84088. // Error occurred loading language file, continue on as best we can
  84089. _fnInitialise( oSettings );
  84090. }
  84091. } );
  84092. bInitHandedOff = true;
  84093. }
  84094. /*
  84095. * Stripes
  84096. */
  84097. if ( oInit.asStripeClasses === null )
  84098. {
  84099. oSettings.asStripeClasses =[
  84100. oClasses.sStripeOdd,
  84101. oClasses.sStripeEven
  84102. ];
  84103. }
  84104. /* Remove row stripe classes if they are already on the table row */
  84105. var stripeClasses = oSettings.asStripeClasses;
  84106. var rowOne = $this.children('tbody').find('tr').eq(0);
  84107. if ( $.inArray( true, $.map( stripeClasses, function(el, i) {
  84108. return rowOne.hasClass(el);
  84109. } ) ) !== -1 ) {
  84110. $('tbody tr', this).removeClass( stripeClasses.join(' ') );
  84111. oSettings.asDestroyStripes = stripeClasses.slice();
  84112. }
  84113. /*
  84114. * Columns
  84115. * See if we should load columns automatically or use defined ones
  84116. */
  84117. var anThs = [];
  84118. var aoColumnsInit;
  84119. var nThead = this.getElementsByTagName('thead');
  84120. if ( nThead.length !== 0 )
  84121. {
  84122. _fnDetectHeader( oSettings.aoHeader, nThead[0] );
  84123. anThs = _fnGetUniqueThs( oSettings );
  84124. }
  84125. /* If not given a column array, generate one with nulls */
  84126. if ( oInit.aoColumns === null )
  84127. {
  84128. aoColumnsInit = [];
  84129. for ( i=0, iLen=anThs.length ; i<iLen ; i++ )
  84130. {
  84131. aoColumnsInit.push( null );
  84132. }
  84133. }
  84134. else
  84135. {
  84136. aoColumnsInit = oInit.aoColumns;
  84137. }
  84138. /* Add the columns */
  84139. for ( i=0, iLen=aoColumnsInit.length ; i<iLen ; i++ )
  84140. {
  84141. _fnAddColumn( oSettings, anThs ? anThs[i] : null );
  84142. }
  84143. /* Apply the column definitions */
  84144. _fnApplyColumnDefs( oSettings, oInit.aoColumnDefs, aoColumnsInit, function (iCol, oDef) {
  84145. _fnColumnOptions( oSettings, iCol, oDef );
  84146. } );
  84147. /* HTML5 attribute detection - build an mData object automatically if the
  84148. * attributes are found
  84149. */
  84150. if ( rowOne.length ) {
  84151. var a = function ( cell, name ) {
  84152. return cell.getAttribute( 'data-'+name ) !== null ? name : null;
  84153. };
  84154. $.each( _fnGetRowElements( oSettings, rowOne[0] ).cells, function (i, cell) {
  84155. var col = oSettings.aoColumns[i];
  84156. if ( col.mData === i ) {
  84157. var sort = a( cell, 'sort' ) || a( cell, 'order' );
  84158. var filter = a( cell, 'filter' ) || a( cell, 'search' );
  84159. if ( sort !== null || filter !== null ) {
  84160. col.mData = {
  84161. _: i+'.display',
  84162. sort: sort !== null ? i+'.@data-'+sort : undefined,
  84163. type: sort !== null ? i+'.@data-'+sort : undefined,
  84164. filter: filter !== null ? i+'.@data-'+filter : undefined
  84165. };
  84166. _fnColumnOptions( oSettings, i );
  84167. }
  84168. }
  84169. } );
  84170. }
  84171. var features = oSettings.oFeatures;
  84172. /* Must be done after everything which can be overridden by the state saving! */
  84173. if ( oInit.bStateSave )
  84174. {
  84175. features.bStateSave = true;
  84176. _fnLoadState( oSettings, oInit );
  84177. _fnCallbackReg( oSettings, 'aoDrawCallback', _fnSaveState, 'state_save' );
  84178. }
  84179. /*
  84180. * Sorting
  84181. * @todo For modularisation (1.11) this needs to do into a sort start up handler
  84182. */
  84183. // If aaSorting is not defined, then we use the first indicator in asSorting
  84184. // in case that has been altered, so the default sort reflects that option
  84185. if ( oInit.aaSorting === undefined )
  84186. {
  84187. var sorting = oSettings.aaSorting;
  84188. for ( i=0, iLen=sorting.length ; i<iLen ; i++ )
  84189. {
  84190. sorting[i][1] = oSettings.aoColumns[ i ].asSorting[0];
  84191. }
  84192. }
  84193. /* Do a first pass on the sorting classes (allows any size changes to be taken into
  84194. * account, and also will apply sorting disabled classes if disabled
  84195. */
  84196. _fnSortingClasses( oSettings );
  84197. if ( features.bSort )
  84198. {
  84199. _fnCallbackReg( oSettings, 'aoDrawCallback', function () {
  84200. if ( oSettings.bSorted ) {
  84201. var aSort = _fnSortFlatten( oSettings );
  84202. var sortedColumns = {};
  84203. $.each( aSort, function (i, val) {
  84204. sortedColumns[ val.src ] = val.dir;
  84205. } );
  84206. _fnCallbackFire( oSettings, null, 'order', [oSettings, aSort, sortedColumns] );
  84207. _fnSortAria( oSettings );
  84208. }
  84209. } );
  84210. }
  84211. _fnCallbackReg( oSettings, 'aoDrawCallback', function () {
  84212. if ( oSettings.bSorted || _fnDataSource( oSettings ) === 'ssp' || features.bDeferRender ) {
  84213. _fnSortingClasses( oSettings );
  84214. }
  84215. }, 'sc' );
  84216. /*
  84217. * Final init
  84218. * Cache the header, body and footer as required, creating them if needed
  84219. */
  84220. /* Browser support detection */
  84221. _fnBrowserDetect( oSettings );
  84222. // Work around for Webkit bug 83867 - store the caption-side before removing from doc
  84223. var captions = $this.children('caption').each( function () {
  84224. this._captionSide = $this.css('caption-side');
  84225. } );
  84226. var thead = $this.children('thead');
  84227. if ( thead.length === 0 )
  84228. {
  84229. thead = $('<thead/>').appendTo(this);
  84230. }
  84231. oSettings.nTHead = thead[0];
  84232. var tbody = $this.children('tbody');
  84233. if ( tbody.length === 0 )
  84234. {
  84235. tbody = $('<tbody/>').appendTo(this);
  84236. }
  84237. oSettings.nTBody = tbody[0];
  84238. var tfoot = $this.children('tfoot');
  84239. if ( tfoot.length === 0 && captions.length > 0 && (oSettings.oScroll.sX !== "" || oSettings.oScroll.sY !== "") )
  84240. {
  84241. // If we are a scrolling table, and no footer has been given, then we need to create
  84242. // a tfoot element for the caption element to be appended to
  84243. tfoot = $('<tfoot/>').appendTo(this);
  84244. }
  84245. if ( tfoot.length === 0 || tfoot.children().length === 0 ) {
  84246. $this.addClass( oClasses.sNoFooter );
  84247. }
  84248. else if ( tfoot.length > 0 ) {
  84249. oSettings.nTFoot = tfoot[0];
  84250. _fnDetectHeader( oSettings.aoFooter, oSettings.nTFoot );
  84251. }
  84252. /* Check if there is data passing into the constructor */
  84253. if ( oInit.aaData )
  84254. {
  84255. for ( i=0 ; i<oInit.aaData.length ; i++ )
  84256. {
  84257. _fnAddData( oSettings, oInit.aaData[ i ] );
  84258. }
  84259. }
  84260. else if ( oSettings.bDeferLoading || _fnDataSource( oSettings ) == 'dom' )
  84261. {
  84262. /* Grab the data from the page - only do this when deferred loading or no Ajax
  84263. * source since there is no point in reading the DOM data if we are then going
  84264. * to replace it with Ajax data
  84265. */
  84266. _fnAddTr( oSettings, $(oSettings.nTBody).children('tr') );
  84267. }
  84268. /* Copy the data index array */
  84269. oSettings.aiDisplay = oSettings.aiDisplayMaster.slice();
  84270. /* Initialisation complete - table can be drawn */
  84271. oSettings.bInitialised = true;
  84272. /* Check if we need to initialise the table (it might not have been handed off to the
  84273. * language processor)
  84274. */
  84275. if ( bInitHandedOff === false )
  84276. {
  84277. _fnInitialise( oSettings );
  84278. }
  84279. } );
  84280. _that = null;
  84281. return this;
  84282. };
  84283. /**
  84284. * Computed structure of the DataTables API, defined by the options passed to
  84285. * `DataTable.Api.register()` when building the API.
  84286. *
  84287. * The structure is built in order to speed creation and extension of the Api
  84288. * objects since the extensions are effectively pre-parsed.
  84289. *
  84290. * The array is an array of objects with the following structure, where this
  84291. * base array represents the Api prototype base:
  84292. *
  84293. * [
  84294. * {
  84295. * name: 'data' -- string - Property name
  84296. * val: function () {}, -- function - Api method (or undefined if just an object
  84297. * methodExt: [ ... ], -- array - Array of Api object definitions to extend the method result
  84298. * propExt: [ ... ] -- array - Array of Api object definitions to extend the property
  84299. * },
  84300. * {
  84301. * name: 'row'
  84302. * val: {},
  84303. * methodExt: [ ... ],
  84304. * propExt: [
  84305. * {
  84306. * name: 'data'
  84307. * val: function () {},
  84308. * methodExt: [ ... ],
  84309. * propExt: [ ... ]
  84310. * },
  84311. * ...
  84312. * ]
  84313. * }
  84314. * ]
  84315. *
  84316. * @type {Array}
  84317. * @ignore
  84318. */
  84319. var __apiStruct = [];
  84320. /**
  84321. * `Array.prototype` reference.
  84322. *
  84323. * @type object
  84324. * @ignore
  84325. */
  84326. var __arrayProto = Array.prototype;
  84327. /**
  84328. * Abstraction for `context` parameter of the `Api` constructor to allow it to
  84329. * take several different forms for ease of use.
  84330. *
  84331. * Each of the input parameter types will be converted to a DataTables settings
  84332. * object where possible.
  84333. *
  84334. * @param {string|node|jQuery|object} mixed DataTable identifier. Can be one
  84335. * of:
  84336. *
  84337. * * `string` - jQuery selector. Any DataTables' matching the given selector
  84338. * with be found and used.
  84339. * * `node` - `TABLE` node which has already been formed into a DataTable.
  84340. * * `jQuery` - A jQuery object of `TABLE` nodes.
  84341. * * `object` - DataTables settings object
  84342. * * `DataTables.Api` - API instance
  84343. * @return {array|null} Matching DataTables settings objects. `null` or
  84344. * `undefined` is returned if no matching DataTable is found.
  84345. * @ignore
  84346. */
  84347. var _toSettings = function ( mixed )
  84348. {
  84349. var idx, jq;
  84350. var settings = DataTable.settings;
  84351. var tables = $.map( settings, function (el, i) {
  84352. return el.nTable;
  84353. } );
  84354. if ( ! mixed ) {
  84355. return [];
  84356. }
  84357. else if ( mixed.nTable && mixed.oApi ) {
  84358. // DataTables settings object
  84359. return [ mixed ];
  84360. }
  84361. else if ( mixed.nodeName && mixed.nodeName.toLowerCase() === 'table' ) {
  84362. // Table node
  84363. idx = $.inArray( mixed, tables );
  84364. return idx !== -1 ? [ settings[idx] ] : null;
  84365. }
  84366. else if ( mixed && typeof mixed.settings === 'function' ) {
  84367. return mixed.settings().toArray();
  84368. }
  84369. else if ( typeof mixed === 'string' ) {
  84370. // jQuery selector
  84371. jq = $(mixed);
  84372. }
  84373. else if ( mixed instanceof $ ) {
  84374. // jQuery object (also DataTables instance)
  84375. jq = mixed;
  84376. }
  84377. if ( jq ) {
  84378. return jq.map( function(i) {
  84379. idx = $.inArray( this, tables );
  84380. return idx !== -1 ? settings[idx] : null;
  84381. } ).toArray();
  84382. }
  84383. };
  84384. /**
  84385. * DataTables API class - used to control and interface with one or more
  84386. * DataTables enhanced tables.
  84387. *
  84388. * The API class is heavily based on jQuery, presenting a chainable interface
  84389. * that you can use to interact with tables. Each instance of the API class has
  84390. * a "context" - i.e. the tables that it will operate on. This could be a single
  84391. * table, all tables on a page or a sub-set thereof.
  84392. *
  84393. * Additionally the API is designed to allow you to easily work with the data in
  84394. * the tables, retrieving and manipulating it as required. This is done by
  84395. * presenting the API class as an array like interface. The contents of the
  84396. * array depend upon the actions requested by each method (for example
  84397. * `rows().nodes()` will return an array of nodes, while `rows().data()` will
  84398. * return an array of objects or arrays depending upon your table's
  84399. * configuration). The API object has a number of array like methods (`push`,
  84400. * `pop`, `reverse` etc) as well as additional helper methods (`each`, `pluck`,
  84401. * `unique` etc) to assist your working with the data held in a table.
  84402. *
  84403. * Most methods (those which return an Api instance) are chainable, which means
  84404. * the return from a method call also has all of the methods available that the
  84405. * top level object had. For example, these two calls are equivalent:
  84406. *
  84407. * // Not chained
  84408. * api.row.add( {...} );
  84409. * api.draw();
  84410. *
  84411. * // Chained
  84412. * api.row.add( {...} ).draw();
  84413. *
  84414. * @class DataTable.Api
  84415. * @param {array|object|string|jQuery} context DataTable identifier. This is
  84416. * used to define which DataTables enhanced tables this API will operate on.
  84417. * Can be one of:
  84418. *
  84419. * * `string` - jQuery selector. Any DataTables' matching the given selector
  84420. * with be found and used.
  84421. * * `node` - `TABLE` node which has already been formed into a DataTable.
  84422. * * `jQuery` - A jQuery object of `TABLE` nodes.
  84423. * * `object` - DataTables settings object
  84424. * @param {array} [data] Data to initialise the Api instance with.
  84425. *
  84426. * @example
  84427. * // Direct initialisation during DataTables construction
  84428. * var api = $('#example').DataTable();
  84429. *
  84430. * @example
  84431. * // Initialisation using a DataTables jQuery object
  84432. * var api = $('#example').dataTable().api();
  84433. *
  84434. * @example
  84435. * // Initialisation as a constructor
  84436. * var api = new $.fn.DataTable.Api( 'table.dataTable' );
  84437. */
  84438. _Api = function ( context, data )
  84439. {
  84440. if ( ! (this instanceof _Api) ) {
  84441. return new _Api( context, data );
  84442. }
  84443. var settings = [];
  84444. var ctxSettings = function ( o ) {
  84445. var a = _toSettings( o );
  84446. if ( a ) {
  84447. settings.push.apply( settings, a );
  84448. }
  84449. };
  84450. if ( $.isArray( context ) ) {
  84451. for ( var i=0, ien=context.length ; i<ien ; i++ ) {
  84452. ctxSettings( context[i] );
  84453. }
  84454. }
  84455. else {
  84456. ctxSettings( context );
  84457. }
  84458. // Remove duplicates
  84459. this.context = _unique( settings );
  84460. // Initial data
  84461. if ( data ) {
  84462. this.push.apply( this, data.toArray ? data.toArray() : data );
  84463. }
  84464. // selector
  84465. this.selector = {
  84466. rows: null,
  84467. cols: null,
  84468. opts: null
  84469. };
  84470. _Api.extend( this, this, __apiStruct );
  84471. };
  84472. DataTable.Api = _Api;
  84473. _Api.prototype = /** @lends DataTables.Api */{
  84474. any: function ()
  84475. {
  84476. return this.count() !== 0;
  84477. },
  84478. concat: __arrayProto.concat,
  84479. context: [], // array of table settings objects
  84480. count: function ()
  84481. {
  84482. return this.flatten().length;
  84483. },
  84484. each: function ( fn )
  84485. {
  84486. for ( var i=0, ien=this.length ; i<ien; i++ ) {
  84487. fn.call( this, this[i], i, this );
  84488. }
  84489. return this;
  84490. },
  84491. eq: function ( idx )
  84492. {
  84493. var ctx = this.context;
  84494. return ctx.length > idx ?
  84495. new _Api( ctx[idx], this[idx] ) :
  84496. null;
  84497. },
  84498. filter: function ( fn )
  84499. {
  84500. var a = [];
  84501. if ( __arrayProto.filter ) {
  84502. a = __arrayProto.filter.call( this, fn, this );
  84503. }
  84504. else {
  84505. // Compatibility for browsers without EMCA-252-5 (JS 1.6)
  84506. for ( var i=0, ien=this.length ; i<ien ; i++ ) {
  84507. if ( fn.call( this, this[i], i, this ) ) {
  84508. a.push( this[i] );
  84509. }
  84510. }
  84511. }
  84512. return new _Api( this.context, a );
  84513. },
  84514. flatten: function ()
  84515. {
  84516. var a = [];
  84517. return new _Api( this.context, a.concat.apply( a, this.toArray() ) );
  84518. },
  84519. join: __arrayProto.join,
  84520. indexOf: __arrayProto.indexOf || function (obj, start)
  84521. {
  84522. for ( var i=(start || 0), ien=this.length ; i<ien ; i++ ) {
  84523. if ( this[i] === obj ) {
  84524. return i;
  84525. }
  84526. }
  84527. return -1;
  84528. },
  84529. iterator: function ( flatten, type, fn, alwaysNew ) {
  84530. var
  84531. a = [], ret,
  84532. i, ien, j, jen,
  84533. context = this.context,
  84534. rows, items, item,
  84535. selector = this.selector;
  84536. // Argument shifting
  84537. if ( typeof flatten === 'string' ) {
  84538. alwaysNew = fn;
  84539. fn = type;
  84540. type = flatten;
  84541. flatten = false;
  84542. }
  84543. for ( i=0, ien=context.length ; i<ien ; i++ ) {
  84544. var apiInst = new _Api( context[i] );
  84545. if ( type === 'table' ) {
  84546. ret = fn.call( apiInst, context[i], i );
  84547. if ( ret !== undefined ) {
  84548. a.push( ret );
  84549. }
  84550. }
  84551. else if ( type === 'columns' || type === 'rows' ) {
  84552. // this has same length as context - one entry for each table
  84553. ret = fn.call( apiInst, context[i], this[i], i );
  84554. if ( ret !== undefined ) {
  84555. a.push( ret );
  84556. }
  84557. }
  84558. else if ( type === 'column' || type === 'column-rows' || type === 'row' || type === 'cell' ) {
  84559. // columns and rows share the same structure.
  84560. // 'this' is an array of column indexes for each context
  84561. items = this[i];
  84562. if ( type === 'column-rows' ) {
  84563. rows = _selector_row_indexes( context[i], selector.opts );
  84564. }
  84565. for ( j=0, jen=items.length ; j<jen ; j++ ) {
  84566. item = items[j];
  84567. if ( type === 'cell' ) {
  84568. ret = fn.call( apiInst, context[i], item.row, item.column, i, j );
  84569. }
  84570. else {
  84571. ret = fn.call( apiInst, context[i], item, i, j, rows );
  84572. }
  84573. if ( ret !== undefined ) {
  84574. a.push( ret );
  84575. }
  84576. }
  84577. }
  84578. }
  84579. if ( a.length || alwaysNew ) {
  84580. var api = new _Api( context, flatten ? a.concat.apply( [], a ) : a );
  84581. var apiSelector = api.selector;
  84582. apiSelector.rows = selector.rows;
  84583. apiSelector.cols = selector.cols;
  84584. apiSelector.opts = selector.opts;
  84585. return api;
  84586. }
  84587. return this;
  84588. },
  84589. lastIndexOf: __arrayProto.lastIndexOf || function (obj, start)
  84590. {
  84591. // Bit cheeky...
  84592. return this.indexOf.apply( this.toArray.reverse(), arguments );
  84593. },
  84594. length: 0,
  84595. map: function ( fn )
  84596. {
  84597. var a = [];
  84598. if ( __arrayProto.map ) {
  84599. a = __arrayProto.map.call( this, fn, this );
  84600. }
  84601. else {
  84602. // Compatibility for browsers without EMCA-252-5 (JS 1.6)
  84603. for ( var i=0, ien=this.length ; i<ien ; i++ ) {
  84604. a.push( fn.call( this, this[i], i ) );
  84605. }
  84606. }
  84607. return new _Api( this.context, a );
  84608. },
  84609. pluck: function ( prop )
  84610. {
  84611. return this.map( function ( el ) {
  84612. return el[ prop ];
  84613. } );
  84614. },
  84615. pop: __arrayProto.pop,
  84616. push: __arrayProto.push,
  84617. // Does not return an API instance
  84618. reduce: __arrayProto.reduce || function ( fn, init )
  84619. {
  84620. return _fnReduce( this, fn, init, 0, this.length, 1 );
  84621. },
  84622. reduceRight: __arrayProto.reduceRight || function ( fn, init )
  84623. {
  84624. return _fnReduce( this, fn, init, this.length-1, -1, -1 );
  84625. },
  84626. reverse: __arrayProto.reverse,
  84627. // Object with rows, columns and opts
  84628. selector: null,
  84629. shift: __arrayProto.shift,
  84630. sort: __arrayProto.sort, // ? name - order?
  84631. splice: __arrayProto.splice,
  84632. toArray: function ()
  84633. {
  84634. return __arrayProto.slice.call( this );
  84635. },
  84636. to$: function ()
  84637. {
  84638. return $( this );
  84639. },
  84640. toJQuery: function ()
  84641. {
  84642. return $( this );
  84643. },
  84644. unique: function ()
  84645. {
  84646. return new _Api( this.context, _unique(this) );
  84647. },
  84648. unshift: __arrayProto.unshift
  84649. };
  84650. _Api.extend = function ( scope, obj, ext )
  84651. {
  84652. // Only extend API instances and static properties of the API
  84653. if ( ! ext.length || ! obj || ( ! (obj instanceof _Api) && ! obj.__dt_wrapper ) ) {
  84654. return;
  84655. }
  84656. var
  84657. i, ien,
  84658. j, jen,
  84659. struct, inner,
  84660. methodScoping = function ( scope, fn, struc ) {
  84661. return function () {
  84662. var ret = fn.apply( scope, arguments );
  84663. // Method extension
  84664. _Api.extend( ret, ret, struc.methodExt );
  84665. return ret;
  84666. };
  84667. };
  84668. for ( i=0, ien=ext.length ; i<ien ; i++ ) {
  84669. struct = ext[i];
  84670. // Value
  84671. obj[ struct.name ] = typeof struct.val === 'function' ?
  84672. methodScoping( scope, struct.val, struct ) :
  84673. $.isPlainObject( struct.val ) ?
  84674. {} :
  84675. struct.val;
  84676. obj[ struct.name ].__dt_wrapper = true;
  84677. // Property extension
  84678. _Api.extend( scope, obj[ struct.name ], struct.propExt );
  84679. }
  84680. };
  84681. // @todo - Is there need for an augment function?
  84682. // _Api.augment = function ( inst, name )
  84683. // {
  84684. // // Find src object in the structure from the name
  84685. // var parts = name.split('.');
  84686. // _Api.extend( inst, obj );
  84687. // };
  84688. // [
  84689. // {
  84690. // name: 'data' -- string - Property name
  84691. // val: function () {}, -- function - Api method (or undefined if just an object
  84692. // methodExt: [ ... ], -- array - Array of Api object definitions to extend the method result
  84693. // propExt: [ ... ] -- array - Array of Api object definitions to extend the property
  84694. // },
  84695. // {
  84696. // name: 'row'
  84697. // val: {},
  84698. // methodExt: [ ... ],
  84699. // propExt: [
  84700. // {
  84701. // name: 'data'
  84702. // val: function () {},
  84703. // methodExt: [ ... ],
  84704. // propExt: [ ... ]
  84705. // },
  84706. // ...
  84707. // ]
  84708. // }
  84709. // ]
  84710. _Api.register = _api_register = function ( name, val )
  84711. {
  84712. if ( $.isArray( name ) ) {
  84713. for ( var j=0, jen=name.length ; j<jen ; j++ ) {
  84714. _Api.register( name[j], val );
  84715. }
  84716. return;
  84717. }
  84718. var
  84719. i, ien,
  84720. heir = name.split('.'),
  84721. struct = __apiStruct,
  84722. key, method;
  84723. var find = function ( src, name ) {
  84724. for ( var i=0, ien=src.length ; i<ien ; i++ ) {
  84725. if ( src[i].name === name ) {
  84726. return src[i];
  84727. }
  84728. }
  84729. return null;
  84730. };
  84731. for ( i=0, ien=heir.length ; i<ien ; i++ ) {
  84732. method = heir[i].indexOf('()') !== -1;
  84733. key = method ?
  84734. heir[i].replace('()', '') :
  84735. heir[i];
  84736. var src = find( struct, key );
  84737. if ( ! src ) {
  84738. src = {
  84739. name: key,
  84740. val: {},
  84741. methodExt: [],
  84742. propExt: []
  84743. };
  84744. struct.push( src );
  84745. }
  84746. if ( i === ien-1 ) {
  84747. src.val = val;
  84748. }
  84749. else {
  84750. struct = method ?
  84751. src.methodExt :
  84752. src.propExt;
  84753. }
  84754. }
  84755. };
  84756. _Api.registerPlural = _api_registerPlural = function ( pluralName, singularName, val ) {
  84757. _Api.register( pluralName, val );
  84758. _Api.register( singularName, function () {
  84759. var ret = val.apply( this, arguments );
  84760. if ( ret === this ) {
  84761. // Returned item is the API instance that was passed in, return it
  84762. return this;
  84763. }
  84764. else if ( ret instanceof _Api ) {
  84765. // New API instance returned, want the value from the first item
  84766. // in the returned array for the singular result.
  84767. return ret.length ?
  84768. $.isArray( ret[0] ) ?
  84769. new _Api( ret.context, ret[0] ) : // Array results are 'enhanced'
  84770. ret[0] :
  84771. undefined;
  84772. }
  84773. // Non-API return - just fire it back
  84774. return ret;
  84775. } );
  84776. };
  84777. /**
  84778. * Selector for HTML tables. Apply the given selector to the give array of
  84779. * DataTables settings objects.
  84780. *
  84781. * @param {string|integer} [selector] jQuery selector string or integer
  84782. * @param {array} Array of DataTables settings objects to be filtered
  84783. * @return {array}
  84784. * @ignore
  84785. */
  84786. var __table_selector = function ( selector, a )
  84787. {
  84788. // Integer is used to pick out a table by index
  84789. if ( typeof selector === 'number' ) {
  84790. return [ a[ selector ] ];
  84791. }
  84792. // Perform a jQuery selector on the table nodes
  84793. var nodes = $.map( a, function (el, i) {
  84794. return el.nTable;
  84795. } );
  84796. return $(nodes)
  84797. .filter( selector )
  84798. .map( function (i) {
  84799. // Need to translate back from the table node to the settings
  84800. var idx = $.inArray( this, nodes );
  84801. return a[ idx ];
  84802. } )
  84803. .toArray();
  84804. };
  84805. /**
  84806. * Context selector for the API's context (i.e. the tables the API instance
  84807. * refers to.
  84808. *
  84809. * @name DataTable.Api#tables
  84810. * @param {string|integer} [selector] Selector to pick which tables the iterator
  84811. * should operate on. If not given, all tables in the current context are
  84812. * used. This can be given as a jQuery selector (for example `':gt(0)'`) to
  84813. * select multiple tables or as an integer to select a single table.
  84814. * @returns {DataTable.Api} Returns a new API instance if a selector is given.
  84815. */
  84816. _api_register( 'tables()', function ( selector ) {
  84817. // A new instance is created if there was a selector specified
  84818. return selector ?
  84819. new _Api( __table_selector( selector, this.context ) ) :
  84820. this;
  84821. } );
  84822. _api_register( 'table()', function ( selector ) {
  84823. var tables = this.tables( selector );
  84824. var ctx = tables.context;
  84825. // Truncate to the first matched table
  84826. return ctx.length ?
  84827. new _Api( ctx[0] ) :
  84828. tables;
  84829. } );
  84830. _api_registerPlural( 'tables().nodes()', 'table().node()' , function () {
  84831. return this.iterator( 'table', function ( ctx ) {
  84832. return ctx.nTable;
  84833. }, 1 );
  84834. } );
  84835. _api_registerPlural( 'tables().body()', 'table().body()' , function () {
  84836. return this.iterator( 'table', function ( ctx ) {
  84837. return ctx.nTBody;
  84838. }, 1 );
  84839. } );
  84840. _api_registerPlural( 'tables().header()', 'table().header()' , function () {
  84841. return this.iterator( 'table', function ( ctx ) {
  84842. return ctx.nTHead;
  84843. }, 1 );
  84844. } );
  84845. _api_registerPlural( 'tables().footer()', 'table().footer()' , function () {
  84846. return this.iterator( 'table', function ( ctx ) {
  84847. return ctx.nTFoot;
  84848. }, 1 );
  84849. } );
  84850. _api_registerPlural( 'tables().containers()', 'table().container()' , function () {
  84851. return this.iterator( 'table', function ( ctx ) {
  84852. return ctx.nTableWrapper;
  84853. }, 1 );
  84854. } );
  84855. /**
  84856. * Redraw the tables in the current context.
  84857. */
  84858. _api_register( 'draw()', function ( paging ) {
  84859. return this.iterator( 'table', function ( settings ) {
  84860. if ( paging === 'page' ) {
  84861. _fnDraw( settings );
  84862. }
  84863. else {
  84864. if ( typeof paging === 'string' ) {
  84865. paging = paging === 'full-hold' ?
  84866. false :
  84867. true;
  84868. }
  84869. _fnReDraw( settings, paging===false );
  84870. }
  84871. } );
  84872. } );
  84873. /**
  84874. * Get the current page index.
  84875. *
  84876. * @return {integer} Current page index (zero based)
  84877. *//**
  84878. * Set the current page.
  84879. *
  84880. * Note that if you attempt to show a page which does not exist, DataTables will
  84881. * not throw an error, but rather reset the paging.
  84882. *
  84883. * @param {integer|string} action The paging action to take. This can be one of:
  84884. * * `integer` - The page index to jump to
  84885. * * `string` - An action to take:
  84886. * * `first` - Jump to first page.
  84887. * * `next` - Jump to the next page
  84888. * * `previous` - Jump to previous page
  84889. * * `last` - Jump to the last page.
  84890. * @returns {DataTables.Api} this
  84891. */
  84892. _api_register( 'page()', function ( action ) {
  84893. if ( action === undefined ) {
  84894. return this.page.info().page; // not an expensive call
  84895. }
  84896. // else, have an action to take on all tables
  84897. return this.iterator( 'table', function ( settings ) {
  84898. _fnPageChange( settings, action );
  84899. } );
  84900. } );
  84901. /**
  84902. * Paging information for the first table in the current context.
  84903. *
  84904. * If you require paging information for another table, use the `table()` method
  84905. * with a suitable selector.
  84906. *
  84907. * @return {object} Object with the following properties set:
  84908. * * `page` - Current page index (zero based - i.e. the first page is `0`)
  84909. * * `pages` - Total number of pages
  84910. * * `start` - Display index for the first record shown on the current page
  84911. * * `end` - Display index for the last record shown on the current page
  84912. * * `length` - Display length (number of records). Note that generally `start
  84913. * + length = end`, but this is not always true, for example if there are
  84914. * only 2 records to show on the final page, with a length of 10.
  84915. * * `recordsTotal` - Full data set length
  84916. * * `recordsDisplay` - Data set length once the current filtering criterion
  84917. * are applied.
  84918. */
  84919. _api_register( 'page.info()', function ( action ) {
  84920. if ( this.context.length === 0 ) {
  84921. return undefined;
  84922. }
  84923. var
  84924. settings = this.context[0],
  84925. start = settings._iDisplayStart,
  84926. len = settings._iDisplayLength,
  84927. visRecords = settings.fnRecordsDisplay(),
  84928. all = len === -1;
  84929. return {
  84930. "page": all ? 0 : Math.floor( start / len ),
  84931. "pages": all ? 1 : Math.ceil( visRecords / len ),
  84932. "start": start,
  84933. "end": settings.fnDisplayEnd(),
  84934. "length": len,
  84935. "recordsTotal": settings.fnRecordsTotal(),
  84936. "recordsDisplay": visRecords,
  84937. "serverSide": _fnDataSource( settings ) === 'ssp'
  84938. };
  84939. } );
  84940. /**
  84941. * Get the current page length.
  84942. *
  84943. * @return {integer} Current page length. Note `-1` indicates that all records
  84944. * are to be shown.
  84945. *//**
  84946. * Set the current page length.
  84947. *
  84948. * @param {integer} Page length to set. Use `-1` to show all records.
  84949. * @returns {DataTables.Api} this
  84950. */
  84951. _api_register( 'page.len()', function ( len ) {
  84952. // Note that we can't call this function 'length()' because `length`
  84953. // is a Javascript property of functions which defines how many arguments
  84954. // the function expects.
  84955. if ( len === undefined ) {
  84956. return this.context.length !== 0 ?
  84957. this.context[0]._iDisplayLength :
  84958. undefined;
  84959. }
  84960. // else, set the page length
  84961. return this.iterator( 'table', function ( settings ) {
  84962. _fnLengthChange( settings, len );
  84963. } );
  84964. } );
  84965. var __reload = function ( settings, holdPosition, callback ) {
  84966. // Use the draw event to trigger a callback
  84967. if ( callback ) {
  84968. var api = new _Api( settings );
  84969. api.one( 'draw', function () {
  84970. callback( api.ajax.json() );
  84971. } );
  84972. }
  84973. if ( _fnDataSource( settings ) == 'ssp' ) {
  84974. _fnReDraw( settings, holdPosition );
  84975. }
  84976. else {
  84977. _fnProcessingDisplay( settings, true );
  84978. // Cancel an existing request
  84979. var xhr = settings.jqXHR;
  84980. if ( xhr && xhr.readyState !== 4 ) {
  84981. xhr.abort();
  84982. }
  84983. // Trigger xhr
  84984. _fnBuildAjax( settings, [], function( json ) {
  84985. _fnClearTable( settings );
  84986. var data = _fnAjaxDataSrc( settings, json );
  84987. for ( var i=0, ien=data.length ; i<ien ; i++ ) {
  84988. _fnAddData( settings, data[i] );
  84989. }
  84990. _fnReDraw( settings, holdPosition );
  84991. _fnProcessingDisplay( settings, false );
  84992. } );
  84993. }
  84994. };
  84995. /**
  84996. * Get the JSON response from the last Ajax request that DataTables made to the
  84997. * server. Note that this returns the JSON from the first table in the current
  84998. * context.
  84999. *
  85000. * @return {object} JSON received from the server.
  85001. */
  85002. _api_register( 'ajax.json()', function () {
  85003. var ctx = this.context;
  85004. if ( ctx.length > 0 ) {
  85005. return ctx[0].json;
  85006. }
  85007. // else return undefined;
  85008. } );
  85009. /**
  85010. * Get the data submitted in the last Ajax request
  85011. */
  85012. _api_register( 'ajax.params()', function () {
  85013. var ctx = this.context;
  85014. if ( ctx.length > 0 ) {
  85015. return ctx[0].oAjaxData;
  85016. }
  85017. // else return undefined;
  85018. } );
  85019. /**
  85020. * Reload tables from the Ajax data source. Note that this function will
  85021. * automatically re-draw the table when the remote data has been loaded.
  85022. *
  85023. * @param {boolean} [reset=true] Reset (default) or hold the current paging
  85024. * position. A full re-sort and re-filter is performed when this method is
  85025. * called, which is why the pagination reset is the default action.
  85026. * @returns {DataTables.Api} this
  85027. */
  85028. _api_register( 'ajax.reload()', function ( callback, resetPaging ) {
  85029. return this.iterator( 'table', function (settings) {
  85030. __reload( settings, resetPaging===false, callback );
  85031. } );
  85032. } );
  85033. /**
  85034. * Get the current Ajax URL. Note that this returns the URL from the first
  85035. * table in the current context.
  85036. *
  85037. * @return {string} Current Ajax source URL
  85038. *//**
  85039. * Set the Ajax URL. Note that this will set the URL for all tables in the
  85040. * current context.
  85041. *
  85042. * @param {string} url URL to set.
  85043. * @returns {DataTables.Api} this
  85044. */
  85045. _api_register( 'ajax.url()', function ( url ) {
  85046. var ctx = this.context;
  85047. if ( url === undefined ) {
  85048. // get
  85049. if ( ctx.length === 0 ) {
  85050. return undefined;
  85051. }
  85052. ctx = ctx[0];
  85053. return ctx.ajax ?
  85054. $.isPlainObject( ctx.ajax ) ?
  85055. ctx.ajax.url :
  85056. ctx.ajax :
  85057. ctx.sAjaxSource;
  85058. }
  85059. // set
  85060. return this.iterator( 'table', function ( settings ) {
  85061. if ( $.isPlainObject( settings.ajax ) ) {
  85062. settings.ajax.url = url;
  85063. }
  85064. else {
  85065. settings.ajax = url;
  85066. }
  85067. // No need to consider sAjaxSource here since DataTables gives priority
  85068. // to `ajax` over `sAjaxSource`. So setting `ajax` here, renders any
  85069. // value of `sAjaxSource` redundant.
  85070. } );
  85071. } );
  85072. /**
  85073. * Load data from the newly set Ajax URL. Note that this method is only
  85074. * available when `ajax.url()` is used to set a URL. Additionally, this method
  85075. * has the same effect as calling `ajax.reload()` but is provided for
  85076. * convenience when setting a new URL. Like `ajax.reload()` it will
  85077. * automatically redraw the table once the remote data has been loaded.
  85078. *
  85079. * @returns {DataTables.Api} this
  85080. */
  85081. _api_register( 'ajax.url().load()', function ( callback, resetPaging ) {
  85082. // Same as a reload, but makes sense to present it for easy access after a
  85083. // url change
  85084. return this.iterator( 'table', function ( ctx ) {
  85085. __reload( ctx, resetPaging===false, callback );
  85086. } );
  85087. } );
  85088. var _selector_run = function ( type, selector, selectFn, settings, opts )
  85089. {
  85090. var
  85091. out = [], res,
  85092. a, i, ien, j, jen,
  85093. selectorType = typeof selector;
  85094. // Can't just check for isArray here, as an API or jQuery instance might be
  85095. // given with their array like look
  85096. if ( ! selector || selectorType === 'string' || selectorType === 'function' || selector.length === undefined ) {
  85097. selector = [ selector ];
  85098. }
  85099. for ( i=0, ien=selector.length ; i<ien ; i++ ) {
  85100. a = selector[i] && selector[i].split ?
  85101. selector[i].split(',') :
  85102. [ selector[i] ];
  85103. for ( j=0, jen=a.length ; j<jen ; j++ ) {
  85104. res = selectFn( typeof a[j] === 'string' ? $.trim(a[j]) : a[j] );
  85105. if ( res && res.length ) {
  85106. out.push.apply( out, res );
  85107. }
  85108. }
  85109. }
  85110. // selector extensions
  85111. var ext = _ext.selector[ type ];
  85112. if ( ext.length ) {
  85113. for ( i=0, ien=ext.length ; i<ien ; i++ ) {
  85114. out = ext[i]( settings, opts, out );
  85115. }
  85116. }
  85117. return out;
  85118. };
  85119. var _selector_opts = function ( opts )
  85120. {
  85121. if ( ! opts ) {
  85122. opts = {};
  85123. }
  85124. // Backwards compatibility for 1.9- which used the terminology filter rather
  85125. // than search
  85126. if ( opts.filter && opts.search === undefined ) {
  85127. opts.search = opts.filter;
  85128. }
  85129. return $.extend( {
  85130. search: 'none',
  85131. order: 'current',
  85132. page: 'all'
  85133. }, opts );
  85134. };
  85135. var _selector_first = function ( inst )
  85136. {
  85137. // Reduce the API instance to the first item found
  85138. for ( var i=0, ien=inst.length ; i<ien ; i++ ) {
  85139. if ( inst[i].length > 0 ) {
  85140. // Assign the first element to the first item in the instance
  85141. // and truncate the instance and context
  85142. inst[0] = inst[i];
  85143. inst[0].length = 1;
  85144. inst.length = 1;
  85145. inst.context = [ inst.context[i] ];
  85146. return inst;
  85147. }
  85148. }
  85149. // Not found - return an empty instance
  85150. inst.length = 0;
  85151. return inst;
  85152. };
  85153. var _selector_row_indexes = function ( settings, opts )
  85154. {
  85155. var
  85156. i, ien, tmp, a=[],
  85157. displayFiltered = settings.aiDisplay,
  85158. displayMaster = settings.aiDisplayMaster;
  85159. var
  85160. search = opts.search, // none, applied, removed
  85161. order = opts.order, // applied, current, index (original - compatibility with 1.9)
  85162. page = opts.page; // all, current
  85163. if ( _fnDataSource( settings ) == 'ssp' ) {
  85164. // In server-side processing mode, most options are irrelevant since
  85165. // rows not shown don't exist and the index order is the applied order
  85166. // Removed is a special case - for consistency just return an empty
  85167. // array
  85168. return search === 'removed' ?
  85169. [] :
  85170. _range( 0, displayMaster.length );
  85171. }
  85172. else if ( page == 'current' ) {
  85173. // Current page implies that order=current and fitler=applied, since it is
  85174. // fairly senseless otherwise, regardless of what order and search actually
  85175. // are
  85176. for ( i=settings._iDisplayStart, ien=settings.fnDisplayEnd() ; i<ien ; i++ ) {
  85177. a.push( displayFiltered[i] );
  85178. }
  85179. }
  85180. else if ( order == 'current' || order == 'applied' ) {
  85181. a = search == 'none' ?
  85182. displayMaster.slice() : // no search
  85183. search == 'applied' ?
  85184. displayFiltered.slice() : // applied search
  85185. $.map( displayMaster, function (el, i) { // removed search
  85186. return $.inArray( el, displayFiltered ) === -1 ? el : null;
  85187. } );
  85188. }
  85189. else if ( order == 'index' || order == 'original' ) {
  85190. for ( i=0, ien=settings.aoData.length ; i<ien ; i++ ) {
  85191. if ( search == 'none' ) {
  85192. a.push( i );
  85193. }
  85194. else { // applied | removed
  85195. tmp = $.inArray( i, displayFiltered );
  85196. if ((tmp === -1 && search == 'removed') ||
  85197. (tmp >= 0 && search == 'applied') )
  85198. {
  85199. a.push( i );
  85200. }
  85201. }
  85202. }
  85203. }
  85204. return a;
  85205. };
  85206. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  85207. * Rows
  85208. *
  85209. * {} - no selector - use all available rows
  85210. * {integer} - row aoData index
  85211. * {node} - TR node
  85212. * {string} - jQuery selector to apply to the TR elements
  85213. * {array} - jQuery array of nodes, or simply an array of TR nodes
  85214. *
  85215. */
  85216. var __row_selector = function ( settings, selector, opts )
  85217. {
  85218. var run = function ( sel ) {
  85219. var selInt = _intVal( sel );
  85220. var i, ien;
  85221. // Short cut - selector is a number and no options provided (default is
  85222. // all records, so no need to check if the index is in there, since it
  85223. // must be - dev error if the index doesn't exist).
  85224. if ( selInt !== null && ! opts ) {
  85225. return [ selInt ];
  85226. }
  85227. var rows = _selector_row_indexes( settings, opts );
  85228. if ( selInt !== null && $.inArray( selInt, rows ) !== -1 ) {
  85229. // Selector - integer
  85230. return [ selInt ];
  85231. }
  85232. else if ( ! sel ) {
  85233. // Selector - none
  85234. return rows;
  85235. }
  85236. // Selector - function
  85237. if ( typeof sel === 'function' ) {
  85238. return $.map( rows, function (idx) {
  85239. var row = settings.aoData[ idx ];
  85240. return sel( idx, row._aData, row.nTr ) ? idx : null;
  85241. } );
  85242. }
  85243. // Get nodes in the order from the `rows` array with null values removed
  85244. var nodes = _removeEmpty(
  85245. _pluck_order( settings.aoData, rows, 'nTr' )
  85246. );
  85247. // Selector - node
  85248. if ( sel.nodeName ) {
  85249. if ( $.inArray( sel, nodes ) !== -1 ) {
  85250. return [ sel._DT_RowIndex ]; // sel is a TR node that is in the table
  85251. // and DataTables adds a prop for fast lookup
  85252. }
  85253. }
  85254. // ID selector. Want to always be able to select rows by id, regardless
  85255. // of if the tr element has been created or not, so can't rely upon
  85256. // jQuery here - hence a custom implementation. This does not match
  85257. // Sizzle's fast selector or HTML4 - in HTML5 the ID can be anything,
  85258. // but to select it using a CSS selector engine (like Sizzle or
  85259. // querySelect) it would need to need to be escaped for some characters.
  85260. // DataTables simplifies this for row selectors since you can select
  85261. // only a row. A # indicates an id any anything that follows is the id -
  85262. // unescaped.
  85263. if ( typeof sel === 'string' && sel.charAt(0) === '#' ) {
  85264. // get row index from id
  85265. var rowObj = settings.aIds[ sel.replace( /^#/, '' ) ];
  85266. if ( rowObj !== undefined ) {
  85267. return [ rowObj.idx ];
  85268. }
  85269. // need to fall through to jQuery in case there is DOM id that
  85270. // matches
  85271. }
  85272. // Selector - jQuery selector string, array of nodes or jQuery object/
  85273. // As jQuery's .filter() allows jQuery objects to be passed in filter,
  85274. // it also allows arrays, so this will cope with all three options
  85275. return $(nodes)
  85276. .filter( sel )
  85277. .map( function () {
  85278. return this._DT_RowIndex;
  85279. } )
  85280. .toArray();
  85281. };
  85282. return _selector_run( 'row', selector, run, settings, opts );
  85283. };
  85284. _api_register( 'rows()', function ( selector, opts ) {
  85285. // argument shifting
  85286. if ( selector === undefined ) {
  85287. selector = '';
  85288. }
  85289. else if ( $.isPlainObject( selector ) ) {
  85290. opts = selector;
  85291. selector = '';
  85292. }
  85293. opts = _selector_opts( opts );
  85294. var inst = this.iterator( 'table', function ( settings ) {
  85295. return __row_selector( settings, selector, opts );
  85296. }, 1 );
  85297. // Want argument shifting here and in __row_selector?
  85298. inst.selector.rows = selector;
  85299. inst.selector.opts = opts;
  85300. return inst;
  85301. } );
  85302. _api_register( 'rows().nodes()', function () {
  85303. return this.iterator( 'row', function ( settings, row ) {
  85304. return settings.aoData[ row ].nTr || undefined;
  85305. }, 1 );
  85306. } );
  85307. _api_register( 'rows().data()', function () {
  85308. return this.iterator( true, 'rows', function ( settings, rows ) {
  85309. return _pluck_order( settings.aoData, rows, '_aData' );
  85310. }, 1 );
  85311. } );
  85312. _api_registerPlural( 'rows().cache()', 'row().cache()', function ( type ) {
  85313. return this.iterator( 'row', function ( settings, row ) {
  85314. var r = settings.aoData[ row ];
  85315. return type === 'search' ? r._aFilterData : r._aSortData;
  85316. }, 1 );
  85317. } );
  85318. _api_registerPlural( 'rows().invalidate()', 'row().invalidate()', function ( src ) {
  85319. return this.iterator( 'row', function ( settings, row ) {
  85320. _fnInvalidate( settings, row, src );
  85321. } );
  85322. } );
  85323. _api_registerPlural( 'rows().indexes()', 'row().index()', function () {
  85324. return this.iterator( 'row', function ( settings, row ) {
  85325. return row;
  85326. }, 1 );
  85327. } );
  85328. _api_registerPlural( 'rows().ids()', 'row().id()', function ( hash ) {
  85329. var a = [];
  85330. var context = this.context;
  85331. // `iterator` will drop undefined values, but in this case we want them
  85332. for ( var i=0, ien=context.length ; i<ien ; i++ ) {
  85333. for ( var j=0, jen=this[i].length ; j<jen ; j++ ) {
  85334. var id = context[i].rowIdFn( context[i].aoData[ this[i][j] ]._aData );
  85335. a.push( (hash === true ? '#' : '' )+ id );
  85336. }
  85337. }
  85338. return new _Api( context, a );
  85339. } );
  85340. _api_registerPlural( 'rows().remove()', 'row().remove()', function () {
  85341. var that = this;
  85342. this.iterator( 'row', function ( settings, row, thatIdx ) {
  85343. var data = settings.aoData;
  85344. data.splice( row, 1 );
  85345. // Update the _DT_RowIndex parameter on all rows in the table
  85346. for ( var i=0, ien=data.length ; i<ien ; i++ ) {
  85347. if ( data[i].nTr !== null ) {
  85348. data[i].nTr._DT_RowIndex = i;
  85349. }
  85350. }
  85351. // Delete from the display arrays
  85352. _fnDeleteIndex( settings.aiDisplayMaster, row );
  85353. _fnDeleteIndex( settings.aiDisplay, row );
  85354. _fnDeleteIndex( that[ thatIdx ], row, false ); // maintain local indexes
  85355. // Check for an 'overflow' they case for displaying the table
  85356. _fnLengthOverflow( settings );
  85357. } );
  85358. this.iterator( 'table', function ( settings ) {
  85359. for ( var i=0, ien=settings.aoData.length ; i<ien ; i++ ) {
  85360. settings.aoData[i].idx = i;
  85361. }
  85362. } );
  85363. return this;
  85364. } );
  85365. _api_register( 'rows.add()', function ( rows ) {
  85366. var newRows = this.iterator( 'table', function ( settings ) {
  85367. var row, i, ien;
  85368. var out = [];
  85369. for ( i=0, ien=rows.length ; i<ien ; i++ ) {
  85370. row = rows[i];
  85371. if ( row.nodeName && row.nodeName.toUpperCase() === 'TR' ) {
  85372. out.push( _fnAddTr( settings, row )[0] );
  85373. }
  85374. else {
  85375. out.push( _fnAddData( settings, row ) );
  85376. }
  85377. }
  85378. return out;
  85379. }, 1 );
  85380. // Return an Api.rows() extended instance, so rows().nodes() etc can be used
  85381. var modRows = this.rows( -1 );
  85382. modRows.pop();
  85383. modRows.push.apply( modRows, newRows.toArray() );
  85384. return modRows;
  85385. } );
  85386. /**
  85387. *
  85388. */
  85389. _api_register( 'row()', function ( selector, opts ) {
  85390. return _selector_first( this.rows( selector, opts ) );
  85391. } );
  85392. _api_register( 'row().data()', function ( data ) {
  85393. var ctx = this.context;
  85394. if ( data === undefined ) {
  85395. // Get
  85396. return ctx.length && this.length ?
  85397. ctx[0].aoData[ this[0] ]._aData :
  85398. undefined;
  85399. }
  85400. // Set
  85401. ctx[0].aoData[ this[0] ]._aData = data;
  85402. // Automatically invalidate
  85403. _fnInvalidate( ctx[0], this[0], 'data' );
  85404. return this;
  85405. } );
  85406. _api_register( 'row().node()', function () {
  85407. var ctx = this.context;
  85408. return ctx.length && this.length ?
  85409. ctx[0].aoData[ this[0] ].nTr || null :
  85410. null;
  85411. } );
  85412. _api_register( 'row.add()', function ( row ) {
  85413. // Allow a jQuery object to be passed in - only a single row is added from
  85414. // it though - the first element in the set
  85415. if ( row instanceof $ && row.length ) {
  85416. row = row[0];
  85417. }
  85418. var rows = this.iterator( 'table', function ( settings ) {
  85419. if ( row.nodeName && row.nodeName.toUpperCase() === 'TR' ) {
  85420. return _fnAddTr( settings, row )[0];
  85421. }
  85422. return _fnAddData( settings, row );
  85423. } );
  85424. // Return an Api.rows() extended instance, with the newly added row selected
  85425. return this.row( rows[0] );
  85426. } );
  85427. var __details_add = function ( ctx, row, data, klass )
  85428. {
  85429. // Convert to array of TR elements
  85430. var rows = [];
  85431. var addRow = function ( r, k ) {
  85432. // Recursion to allow for arrays of jQuery objects
  85433. if ( $.isArray( r ) || r instanceof $ ) {
  85434. for ( var i=0, ien=r.length ; i<ien ; i++ ) {
  85435. addRow( r[i], k );
  85436. }
  85437. return;
  85438. }
  85439. // If we get a TR element, then just add it directly - up to the dev
  85440. // to add the correct number of columns etc
  85441. if ( r.nodeName && r.nodeName.toLowerCase() === 'tr' ) {
  85442. rows.push( r );
  85443. }
  85444. else {
  85445. // Otherwise create a row with a wrapper
  85446. var created = $('<tr><td/></tr>').addClass( k );
  85447. $('td', created)
  85448. .addClass( k )
  85449. .html( r )
  85450. [0].colSpan = _fnVisbleColumns( ctx );
  85451. rows.push( created[0] );
  85452. }
  85453. };
  85454. addRow( data, klass );
  85455. if ( row._details ) {
  85456. row._details.remove();
  85457. }
  85458. row._details = $(rows);
  85459. // If the children were already shown, that state should be retained
  85460. if ( row._detailsShow ) {
  85461. row._details.insertAfter( row.nTr );
  85462. }
  85463. };
  85464. var __details_remove = function ( api, idx )
  85465. {
  85466. var ctx = api.context;
  85467. if ( ctx.length ) {
  85468. var row = ctx[0].aoData[ idx !== undefined ? idx : api[0] ];
  85469. if ( row && row._details ) {
  85470. row._details.remove();
  85471. row._detailsShow = undefined;
  85472. row._details = undefined;
  85473. }
  85474. }
  85475. };
  85476. var __details_display = function ( api, show ) {
  85477. var ctx = api.context;
  85478. if ( ctx.length && api.length ) {
  85479. var row = ctx[0].aoData[ api[0] ];
  85480. if ( row._details ) {
  85481. row._detailsShow = show;
  85482. if ( show ) {
  85483. row._details.insertAfter( row.nTr );
  85484. }
  85485. else {
  85486. row._details.detach();
  85487. }
  85488. __details_events( ctx[0] );
  85489. }
  85490. }
  85491. };
  85492. var __details_events = function ( settings )
  85493. {
  85494. var api = new _Api( settings );
  85495. var namespace = '.dt.DT_details';
  85496. var drawEvent = 'draw'+namespace;
  85497. var colvisEvent = 'column-visibility'+namespace;
  85498. var destroyEvent = 'destroy'+namespace;
  85499. var data = settings.aoData;
  85500. api.off( drawEvent +' '+ colvisEvent +' '+ destroyEvent );
  85501. if ( _pluck( data, '_details' ).length > 0 ) {
  85502. // On each draw, insert the required elements into the document
  85503. api.on( drawEvent, function ( e, ctx ) {
  85504. if ( settings !== ctx ) {
  85505. return;
  85506. }
  85507. api.rows( {page:'current'} ).eq(0).each( function (idx) {
  85508. // Internal data grab
  85509. var row = data[ idx ];
  85510. if ( row._detailsShow ) {
  85511. row._details.insertAfter( row.nTr );
  85512. }
  85513. } );
  85514. } );
  85515. // Column visibility change - update the colspan
  85516. api.on( colvisEvent, function ( e, ctx, idx, vis ) {
  85517. if ( settings !== ctx ) {
  85518. return;
  85519. }
  85520. // Update the colspan for the details rows (note, only if it already has
  85521. // a colspan)
  85522. var row, visible = _fnVisbleColumns( ctx );
  85523. for ( var i=0, ien=data.length ; i<ien ; i++ ) {
  85524. row = data[i];
  85525. if ( row._details ) {
  85526. row._details.children('td[colspan]').attr('colspan', visible );
  85527. }
  85528. }
  85529. } );
  85530. // Table destroyed - nuke any child rows
  85531. api.on( destroyEvent, function ( e, ctx ) {
  85532. if ( settings !== ctx ) {
  85533. return;
  85534. }
  85535. for ( var i=0, ien=data.length ; i<ien ; i++ ) {
  85536. if ( data[i]._details ) {
  85537. __details_remove( api, i );
  85538. }
  85539. }
  85540. } );
  85541. }
  85542. };
  85543. // Strings for the method names to help minification
  85544. var _emp = '';
  85545. var _child_obj = _emp+'row().child';
  85546. var _child_mth = _child_obj+'()';
  85547. // data can be:
  85548. // tr
  85549. // string
  85550. // jQuery or array of any of the above
  85551. _api_register( _child_mth, function ( data, klass ) {
  85552. var ctx = this.context;
  85553. if ( data === undefined ) {
  85554. // get
  85555. return ctx.length && this.length ?
  85556. ctx[0].aoData[ this[0] ]._details :
  85557. undefined;
  85558. }
  85559. else if ( data === true ) {
  85560. // show
  85561. this.child.show();
  85562. }
  85563. else if ( data === false ) {
  85564. // remove
  85565. __details_remove( this );
  85566. }
  85567. else if ( ctx.length && this.length ) {
  85568. // set
  85569. __details_add( ctx[0], ctx[0].aoData[ this[0] ], data, klass );
  85570. }
  85571. return this;
  85572. } );
  85573. _api_register( [
  85574. _child_obj+'.show()',
  85575. _child_mth+'.show()' // only when `child()` was called with parameters (without
  85576. ], function ( show ) { // it returns an object and this method is not executed)
  85577. __details_display( this, true );
  85578. return this;
  85579. } );
  85580. _api_register( [
  85581. _child_obj+'.hide()',
  85582. _child_mth+'.hide()' // only when `child()` was called with parameters (without
  85583. ], function () { // it returns an object and this method is not executed)
  85584. __details_display( this, false );
  85585. return this;
  85586. } );
  85587. _api_register( [
  85588. _child_obj+'.remove()',
  85589. _child_mth+'.remove()' // only when `child()` was called with parameters (without
  85590. ], function () { // it returns an object and this method is not executed)
  85591. __details_remove( this );
  85592. return this;
  85593. } );
  85594. _api_register( _child_obj+'.isShown()', function () {
  85595. var ctx = this.context;
  85596. if ( ctx.length && this.length ) {
  85597. // _detailsShown as false or undefined will fall through to return false
  85598. return ctx[0].aoData[ this[0] ]._detailsShow || false;
  85599. }
  85600. return false;
  85601. } );
  85602. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  85603. * Columns
  85604. *
  85605. * {integer} - column index (>=0 count from left, <0 count from right)
  85606. * "{integer}:visIdx" - visible column index (i.e. translate to column index) (>=0 count from left, <0 count from right)
  85607. * "{integer}:visible" - alias for {integer}:visIdx (>=0 count from left, <0 count from right)
  85608. * "{string}:name" - column name
  85609. * "{string}" - jQuery selector on column header nodes
  85610. *
  85611. */
  85612. // can be an array of these items, comma separated list, or an array of comma
  85613. // separated lists
  85614. var __re_column_selector = /^(.+):(name|visIdx|visible)$/;
  85615. // r1 and r2 are redundant - but it means that the parameters match for the
  85616. // iterator callback in columns().data()
  85617. var __columnData = function ( settings, column, r1, r2, rows ) {
  85618. var a = [];
  85619. for ( var row=0, ien=rows.length ; row<ien ; row++ ) {
  85620. a.push( _fnGetCellData( settings, rows[row], column ) );
  85621. }
  85622. return a;
  85623. };
  85624. var __column_selector = function ( settings, selector, opts )
  85625. {
  85626. var
  85627. columns = settings.aoColumns,
  85628. names = _pluck( columns, 'sName' ),
  85629. nodes = _pluck( columns, 'nTh' );
  85630. var run = function ( s ) {
  85631. var selInt = _intVal( s );
  85632. // Selector - all
  85633. if ( s === '' ) {
  85634. return _range( columns.length );
  85635. }
  85636. // Selector - index
  85637. if ( selInt !== null ) {
  85638. return [ selInt >= 0 ?
  85639. selInt : // Count from left
  85640. columns.length + selInt // Count from right (+ because its a negative value)
  85641. ];
  85642. }
  85643. // Selector = function
  85644. if ( typeof s === 'function' ) {
  85645. var rows = _selector_row_indexes( settings, opts );
  85646. return $.map( columns, function (col, idx) {
  85647. return s(
  85648. idx,
  85649. __columnData( settings, idx, 0, 0, rows ),
  85650. nodes[ idx ]
  85651. ) ? idx : null;
  85652. } );
  85653. }
  85654. // jQuery or string selector
  85655. var match = typeof s === 'string' ?
  85656. s.match( __re_column_selector ) :
  85657. '';
  85658. if ( match ) {
  85659. switch( match[2] ) {
  85660. case 'visIdx':
  85661. case 'visible':
  85662. var idx = parseInt( match[1], 10 );
  85663. // Visible index given, convert to column index
  85664. if ( idx < 0 ) {
  85665. // Counting from the right
  85666. var visColumns = $.map( columns, function (col,i) {
  85667. return col.bVisible ? i : null;
  85668. } );
  85669. return [ visColumns[ visColumns.length + idx ] ];
  85670. }
  85671. // Counting from the left
  85672. return [ _fnVisibleToColumnIndex( settings, idx ) ];
  85673. case 'name':
  85674. // match by name. `names` is column index complete and in order
  85675. return $.map( names, function (name, i) {
  85676. return name === match[1] ? i : null;
  85677. } );
  85678. }
  85679. }
  85680. else {
  85681. // jQuery selector on the TH elements for the columns
  85682. return $( nodes )
  85683. .filter( s )
  85684. .map( function () {
  85685. return $.inArray( this, nodes ); // `nodes` is column index complete and in order
  85686. } )
  85687. .toArray();
  85688. }
  85689. };
  85690. return _selector_run( 'column', selector, run, settings, opts );
  85691. };
  85692. var __setColumnVis = function ( settings, column, vis, recalc ) {
  85693. var
  85694. cols = settings.aoColumns,
  85695. col = cols[ column ],
  85696. data = settings.aoData,
  85697. row, cells, i, ien, tr;
  85698. // Get
  85699. if ( vis === undefined ) {
  85700. return col.bVisible;
  85701. }
  85702. // Set
  85703. // No change
  85704. if ( col.bVisible === vis ) {
  85705. return;
  85706. }
  85707. if ( vis ) {
  85708. // Insert column
  85709. // Need to decide if we should use appendChild or insertBefore
  85710. var insertBefore = $.inArray( true, _pluck(cols, 'bVisible'), column+1 );
  85711. for ( i=0, ien=data.length ; i<ien ; i++ ) {
  85712. tr = data[i].nTr;
  85713. cells = data[i].anCells;
  85714. if ( tr ) {
  85715. // insertBefore can act like appendChild if 2nd arg is null
  85716. tr.insertBefore( cells[ column ], cells[ insertBefore ] || null );
  85717. }
  85718. }
  85719. }
  85720. else {
  85721. // Remove column
  85722. $( _pluck( settings.aoData, 'anCells', column ) ).detach();
  85723. }
  85724. // Common actions
  85725. col.bVisible = vis;
  85726. _fnDrawHead( settings, settings.aoHeader );
  85727. _fnDrawHead( settings, settings.aoFooter );
  85728. if ( recalc === undefined || recalc ) {
  85729. // Automatically adjust column sizing
  85730. _fnAdjustColumnSizing( settings );
  85731. // Realign columns for scrolling
  85732. if ( settings.oScroll.sX || settings.oScroll.sY ) {
  85733. _fnScrollDraw( settings );
  85734. }
  85735. }
  85736. _fnCallbackFire( settings, null, 'column-visibility', [settings, column, vis] );
  85737. _fnSaveState( settings );
  85738. };
  85739. _api_register( 'columns()', function ( selector, opts ) {
  85740. // argument shifting
  85741. if ( selector === undefined ) {
  85742. selector = '';
  85743. }
  85744. else if ( $.isPlainObject( selector ) ) {
  85745. opts = selector;
  85746. selector = '';
  85747. }
  85748. opts = _selector_opts( opts );
  85749. var inst = this.iterator( 'table', function ( settings ) {
  85750. return __column_selector( settings, selector, opts );
  85751. }, 1 );
  85752. // Want argument shifting here and in _row_selector?
  85753. inst.selector.cols = selector;
  85754. inst.selector.opts = opts;
  85755. return inst;
  85756. } );
  85757. _api_registerPlural( 'columns().header()', 'column().header()', function ( selector, opts ) {
  85758. return this.iterator( 'column', function ( settings, column ) {
  85759. return settings.aoColumns[column].nTh;
  85760. }, 1 );
  85761. } );
  85762. _api_registerPlural( 'columns().footer()', 'column().footer()', function ( selector, opts ) {
  85763. return this.iterator( 'column', function ( settings, column ) {
  85764. return settings.aoColumns[column].nTf;
  85765. }, 1 );
  85766. } );
  85767. _api_registerPlural( 'columns().data()', 'column().data()', function () {
  85768. return this.iterator( 'column-rows', __columnData, 1 );
  85769. } );
  85770. _api_registerPlural( 'columns().dataSrc()', 'column().dataSrc()', function () {
  85771. return this.iterator( 'column', function ( settings, column ) {
  85772. return settings.aoColumns[column].mData;
  85773. }, 1 );
  85774. } );
  85775. _api_registerPlural( 'columns().cache()', 'column().cache()', function ( type ) {
  85776. return this.iterator( 'column-rows', function ( settings, column, i, j, rows ) {
  85777. return _pluck_order( settings.aoData, rows,
  85778. type === 'search' ? '_aFilterData' : '_aSortData', column
  85779. );
  85780. }, 1 );
  85781. } );
  85782. _api_registerPlural( 'columns().nodes()', 'column().nodes()', function () {
  85783. return this.iterator( 'column-rows', function ( settings, column, i, j, rows ) {
  85784. return _pluck_order( settings.aoData, rows, 'anCells', column ) ;
  85785. }, 1 );
  85786. } );
  85787. _api_registerPlural( 'columns().visible()', 'column().visible()', function ( vis, calc ) {
  85788. return this.iterator( 'column', function ( settings, column ) {
  85789. if ( vis === undefined ) {
  85790. return settings.aoColumns[ column ].bVisible;
  85791. } // else
  85792. __setColumnVis( settings, column, vis, calc );
  85793. } );
  85794. } );
  85795. _api_registerPlural( 'columns().indexes()', 'column().index()', function ( type ) {
  85796. return this.iterator( 'column', function ( settings, column ) {
  85797. return type === 'visible' ?
  85798. _fnColumnIndexToVisible( settings, column ) :
  85799. column;
  85800. }, 1 );
  85801. } );
  85802. _api_register( 'columns.adjust()', function () {
  85803. return this.iterator( 'table', function ( settings ) {
  85804. _fnAdjustColumnSizing( settings );
  85805. }, 1 );
  85806. } );
  85807. _api_register( 'column.index()', function ( type, idx ) {
  85808. if ( this.context.length !== 0 ) {
  85809. var ctx = this.context[0];
  85810. if ( type === 'fromVisible' || type === 'toData' ) {
  85811. return _fnVisibleToColumnIndex( ctx, idx );
  85812. }
  85813. else if ( type === 'fromData' || type === 'toVisible' ) {
  85814. return _fnColumnIndexToVisible( ctx, idx );
  85815. }
  85816. }
  85817. } );
  85818. _api_register( 'column()', function ( selector, opts ) {
  85819. return _selector_first( this.columns( selector, opts ) );
  85820. } );
  85821. var __cell_selector = function ( settings, selector, opts )
  85822. {
  85823. var data = settings.aoData;
  85824. var rows = _selector_row_indexes( settings, opts );
  85825. var cells = _removeEmpty( _pluck_order( data, rows, 'anCells' ) );
  85826. var allCells = $( [].concat.apply([], cells) );
  85827. var row;
  85828. var columns = settings.aoColumns.length;
  85829. var a, i, ien, j, o, host;
  85830. var run = function ( s ) {
  85831. var fnSelector = typeof s === 'function';
  85832. if ( s === null || s === undefined || fnSelector ) {
  85833. // All cells and function selectors
  85834. a = [];
  85835. for ( i=0, ien=rows.length ; i<ien ; i++ ) {
  85836. row = rows[i];
  85837. for ( j=0 ; j<columns ; j++ ) {
  85838. o = {
  85839. row: row,
  85840. column: j
  85841. };
  85842. if ( fnSelector ) {
  85843. // Selector - function
  85844. host = settings.aoData[ row ];
  85845. if ( s( o, _fnGetCellData(settings, row, j), host.anCells ? host.anCells[j] : null ) ) {
  85846. a.push( o );
  85847. }
  85848. }
  85849. else {
  85850. // Selector - all
  85851. a.push( o );
  85852. }
  85853. }
  85854. }
  85855. return a;
  85856. }
  85857. // Selector - index
  85858. if ( $.isPlainObject( s ) ) {
  85859. return [s];
  85860. }
  85861. // Selector - jQuery filtered cells
  85862. return allCells
  85863. .filter( s )
  85864. .map( function (i, el) {
  85865. row = el.parentNode._DT_RowIndex;
  85866. return {
  85867. row: row,
  85868. column: $.inArray( el, data[ row ].anCells )
  85869. };
  85870. } )
  85871. .toArray();
  85872. };
  85873. return _selector_run( 'cell', selector, run, settings, opts );
  85874. };
  85875. _api_register( 'cells()', function ( rowSelector, columnSelector, opts ) {
  85876. // Argument shifting
  85877. if ( $.isPlainObject( rowSelector ) ) {
  85878. // Indexes
  85879. if ( rowSelector.row === undefined ) {
  85880. // Selector options in first parameter
  85881. opts = rowSelector;
  85882. rowSelector = null;
  85883. }
  85884. else {
  85885. // Cell index objects in first parameter
  85886. opts = columnSelector;
  85887. columnSelector = null;
  85888. }
  85889. }
  85890. if ( $.isPlainObject( columnSelector ) ) {
  85891. opts = columnSelector;
  85892. columnSelector = null;
  85893. }
  85894. // Cell selector
  85895. if ( columnSelector === null || columnSelector === undefined ) {
  85896. return this.iterator( 'table', function ( settings ) {
  85897. return __cell_selector( settings, rowSelector, _selector_opts( opts ) );
  85898. } );
  85899. }
  85900. // Row + column selector
  85901. var columns = this.columns( columnSelector, opts );
  85902. var rows = this.rows( rowSelector, opts );
  85903. var a, i, ien, j, jen;
  85904. var cells = this.iterator( 'table', function ( settings, idx ) {
  85905. a = [];
  85906. for ( i=0, ien=rows[idx].length ; i<ien ; i++ ) {
  85907. for ( j=0, jen=columns[idx].length ; j<jen ; j++ ) {
  85908. a.push( {
  85909. row: rows[idx][i],
  85910. column: columns[idx][j]
  85911. } );
  85912. }
  85913. }
  85914. return a;
  85915. }, 1 );
  85916. $.extend( cells.selector, {
  85917. cols: columnSelector,
  85918. rows: rowSelector,
  85919. opts: opts
  85920. } );
  85921. return cells;
  85922. } );
  85923. _api_registerPlural( 'cells().nodes()', 'cell().node()', function () {
  85924. return this.iterator( 'cell', function ( settings, row, column ) {
  85925. var cells = settings.aoData[ row ].anCells;
  85926. return cells ?
  85927. cells[ column ] :
  85928. undefined;
  85929. }, 1 );
  85930. } );
  85931. _api_register( 'cells().data()', function () {
  85932. return this.iterator( 'cell', function ( settings, row, column ) {
  85933. return _fnGetCellData( settings, row, column );
  85934. }, 1 );
  85935. } );
  85936. _api_registerPlural( 'cells().cache()', 'cell().cache()', function ( type ) {
  85937. type = type === 'search' ? '_aFilterData' : '_aSortData';
  85938. return this.iterator( 'cell', function ( settings, row, column ) {
  85939. return settings.aoData[ row ][ type ][ column ];
  85940. }, 1 );
  85941. } );
  85942. _api_registerPlural( 'cells().render()', 'cell().render()', function ( type ) {
  85943. return this.iterator( 'cell', function ( settings, row, column ) {
  85944. return _fnGetCellData( settings, row, column, type );
  85945. }, 1 );
  85946. } );
  85947. _api_registerPlural( 'cells().indexes()', 'cell().index()', function () {
  85948. return this.iterator( 'cell', function ( settings, row, column ) {
  85949. return {
  85950. row: row,
  85951. column: column,
  85952. columnVisible: _fnColumnIndexToVisible( settings, column )
  85953. };
  85954. }, 1 );
  85955. } );
  85956. _api_registerPlural( 'cells().invalidate()', 'cell().invalidate()', function ( src ) {
  85957. return this.iterator( 'cell', function ( settings, row, column ) {
  85958. _fnInvalidate( settings, row, src, column );
  85959. } );
  85960. } );
  85961. _api_register( 'cell()', function ( rowSelector, columnSelector, opts ) {
  85962. return _selector_first( this.cells( rowSelector, columnSelector, opts ) );
  85963. } );
  85964. _api_register( 'cell().data()', function ( data ) {
  85965. var ctx = this.context;
  85966. var cell = this[0];
  85967. if ( data === undefined ) {
  85968. // Get
  85969. return ctx.length && cell.length ?
  85970. _fnGetCellData( ctx[0], cell[0].row, cell[0].column ) :
  85971. undefined;
  85972. }
  85973. // Set
  85974. _fnSetCellData( ctx[0], cell[0].row, cell[0].column, data );
  85975. _fnInvalidate( ctx[0], cell[0].row, 'data', cell[0].column );
  85976. return this;
  85977. } );
  85978. /**
  85979. * Get current ordering (sorting) that has been applied to the table.
  85980. *
  85981. * @returns {array} 2D array containing the sorting information for the first
  85982. * table in the current context. Each element in the parent array represents
  85983. * a column being sorted upon (i.e. multi-sorting with two columns would have
  85984. * 2 inner arrays). The inner arrays may have 2 or 3 elements. The first is
  85985. * the column index that the sorting condition applies to, the second is the
  85986. * direction of the sort (`desc` or `asc`) and, optionally, the third is the
  85987. * index of the sorting order from the `column.sorting` initialisation array.
  85988. *//**
  85989. * Set the ordering for the table.
  85990. *
  85991. * @param {integer} order Column index to sort upon.
  85992. * @param {string} direction Direction of the sort to be applied (`asc` or `desc`)
  85993. * @returns {DataTables.Api} this
  85994. *//**
  85995. * Set the ordering for the table.
  85996. *
  85997. * @param {array} order 1D array of sorting information to be applied.
  85998. * @param {array} [...] Optional additional sorting conditions
  85999. * @returns {DataTables.Api} this
  86000. *//**
  86001. * Set the ordering for the table.
  86002. *
  86003. * @param {array} order 2D array of sorting information to be applied.
  86004. * @returns {DataTables.Api} this
  86005. */
  86006. _api_register( 'order()', function ( order, dir ) {
  86007. var ctx = this.context;
  86008. if ( order === undefined ) {
  86009. // get
  86010. return ctx.length !== 0 ?
  86011. ctx[0].aaSorting :
  86012. undefined;
  86013. }
  86014. // set
  86015. if ( typeof order === 'number' ) {
  86016. // Simple column / direction passed in
  86017. order = [ [ order, dir ] ];
  86018. }
  86019. else if ( ! $.isArray( order[0] ) ) {
  86020. // Arguments passed in (list of 1D arrays)
  86021. order = Array.prototype.slice.call( arguments );
  86022. }
  86023. // otherwise a 2D array was passed in
  86024. return this.iterator( 'table', function ( settings ) {
  86025. settings.aaSorting = order.slice();
  86026. } );
  86027. } );
  86028. /**
  86029. * Attach a sort listener to an element for a given column
  86030. *
  86031. * @param {node|jQuery|string} node Identifier for the element(s) to attach the
  86032. * listener to. This can take the form of a single DOM node, a jQuery
  86033. * collection of nodes or a jQuery selector which will identify the node(s).
  86034. * @param {integer} column the column that a click on this node will sort on
  86035. * @param {function} [callback] callback function when sort is run
  86036. * @returns {DataTables.Api} this
  86037. */
  86038. _api_register( 'order.listener()', function ( node, column, callback ) {
  86039. return this.iterator( 'table', function ( settings ) {
  86040. _fnSortAttachListener( settings, node, column, callback );
  86041. } );
  86042. } );
  86043. // Order by the selected column(s)
  86044. _api_register( [
  86045. 'columns().order()',
  86046. 'column().order()'
  86047. ], function ( dir ) {
  86048. var that = this;
  86049. return this.iterator( 'table', function ( settings, i ) {
  86050. var sort = [];
  86051. $.each( that[i], function (j, col) {
  86052. sort.push( [ col, dir ] );
  86053. } );
  86054. settings.aaSorting = sort;
  86055. } );
  86056. } );
  86057. _api_register( 'search()', function ( input, regex, smart, caseInsen ) {
  86058. var ctx = this.context;
  86059. if ( input === undefined ) {
  86060. // get
  86061. return ctx.length !== 0 ?
  86062. ctx[0].oPreviousSearch.sSearch :
  86063. undefined;
  86064. }
  86065. // set
  86066. return this.iterator( 'table', function ( settings ) {
  86067. if ( ! settings.oFeatures.bFilter ) {
  86068. return;
  86069. }
  86070. _fnFilterComplete( settings, $.extend( {}, settings.oPreviousSearch, {
  86071. "sSearch": input+"",
  86072. "bRegex": regex === null ? false : regex,
  86073. "bSmart": smart === null ? true : smart,
  86074. "bCaseInsensitive": caseInsen === null ? true : caseInsen
  86075. } ), 1 );
  86076. } );
  86077. } );
  86078. _api_registerPlural(
  86079. 'columns().search()',
  86080. 'column().search()',
  86081. function ( input, regex, smart, caseInsen ) {
  86082. return this.iterator( 'column', function ( settings, column ) {
  86083. var preSearch = settings.aoPreSearchCols;
  86084. if ( input === undefined ) {
  86085. // get
  86086. return preSearch[ column ].sSearch;
  86087. }
  86088. // set
  86089. if ( ! settings.oFeatures.bFilter ) {
  86090. return;
  86091. }
  86092. $.extend( preSearch[ column ], {
  86093. "sSearch": input+"",
  86094. "bRegex": regex === null ? false : regex,
  86095. "bSmart": smart === null ? true : smart,
  86096. "bCaseInsensitive": caseInsen === null ? true : caseInsen
  86097. } );
  86098. _fnFilterComplete( settings, settings.oPreviousSearch, 1 );
  86099. } );
  86100. }
  86101. );
  86102. /*
  86103. * State API methods
  86104. */
  86105. _api_register( 'state()', function () {
  86106. return this.context.length ?
  86107. this.context[0].oSavedState :
  86108. null;
  86109. } );
  86110. _api_register( 'state.clear()', function () {
  86111. return this.iterator( 'table', function ( settings ) {
  86112. // Save an empty object
  86113. settings.fnStateSaveCallback.call( settings.oInstance, settings, {} );
  86114. } );
  86115. } );
  86116. _api_register( 'state.loaded()', function () {
  86117. return this.context.length ?
  86118. this.context[0].oLoadedState :
  86119. null;
  86120. } );
  86121. _api_register( 'state.save()', function () {
  86122. return this.iterator( 'table', function ( settings ) {
  86123. _fnSaveState( settings );
  86124. } );
  86125. } );
  86126. /**
  86127. * Provide a common method for plug-ins to check the version of DataTables being
  86128. * used, in order to ensure compatibility.
  86129. *
  86130. * @param {string} version Version string to check for, in the format "X.Y.Z".
  86131. * Note that the formats "X" and "X.Y" are also acceptable.
  86132. * @returns {boolean} true if this version of DataTables is greater or equal to
  86133. * the required version, or false if this version of DataTales is not
  86134. * suitable
  86135. * @static
  86136. * @dtopt API-Static
  86137. *
  86138. * @example
  86139. * alert( $.fn.dataTable.versionCheck( '1.9.0' ) );
  86140. */
  86141. DataTable.versionCheck = DataTable.fnVersionCheck = function( version )
  86142. {
  86143. var aThis = DataTable.version.split('.');
  86144. var aThat = version.split('.');
  86145. var iThis, iThat;
  86146. for ( var i=0, iLen=aThat.length ; i<iLen ; i++ ) {
  86147. iThis = parseInt( aThis[i], 10 ) || 0;
  86148. iThat = parseInt( aThat[i], 10 ) || 0;
  86149. // Parts are the same, keep comparing
  86150. if (iThis === iThat) {
  86151. continue;
  86152. }
  86153. // Parts are different, return immediately
  86154. return iThis > iThat;
  86155. }
  86156. return true;
  86157. };
  86158. /**
  86159. * Check if a `<table>` node is a DataTable table already or not.
  86160. *
  86161. * @param {node|jquery|string} table Table node, jQuery object or jQuery
  86162. * selector for the table to test. Note that if more than more than one
  86163. * table is passed on, only the first will be checked
  86164. * @returns {boolean} true the table given is a DataTable, or false otherwise
  86165. * @static
  86166. * @dtopt API-Static
  86167. *
  86168. * @example
  86169. * if ( ! $.fn.DataTable.isDataTable( '#example' ) ) {
  86170. * $('#example').dataTable();
  86171. * }
  86172. */
  86173. DataTable.isDataTable = DataTable.fnIsDataTable = function ( table )
  86174. {
  86175. var t = $(table).get(0);
  86176. var is = false;
  86177. $.each( DataTable.settings, function (i, o) {
  86178. var head = o.nScrollHead ? $('table', o.nScrollHead)[0] : null;
  86179. var foot = o.nScrollFoot ? $('table', o.nScrollFoot)[0] : null;
  86180. if ( o.nTable === t || head === t || foot === t ) {
  86181. is = true;
  86182. }
  86183. } );
  86184. return is;
  86185. };
  86186. /**
  86187. * Get all DataTable tables that have been initialised - optionally you can
  86188. * select to get only currently visible tables.
  86189. *
  86190. * @param {boolean} [visible=false] Flag to indicate if you want all (default)
  86191. * or visible tables only.
  86192. * @returns {array} Array of `table` nodes (not DataTable instances) which are
  86193. * DataTables
  86194. * @static
  86195. * @dtopt API-Static
  86196. *
  86197. * @example
  86198. * $.each( $.fn.dataTable.tables(true), function () {
  86199. * $(table).DataTable().columns.adjust();
  86200. * } );
  86201. */
  86202. DataTable.tables = DataTable.fnTables = function ( visible )
  86203. {
  86204. var api = false;
  86205. if ( $.isPlainObject( visible ) ) {
  86206. api = visible.api;
  86207. visible = visible.visible;
  86208. }
  86209. var a = $.map( DataTable.settings, function (o) {
  86210. if ( !visible || (visible && $(o.nTable).is(':visible')) ) {
  86211. return o.nTable;
  86212. }
  86213. } );
  86214. return api ?
  86215. new _Api( a ) :
  86216. a;
  86217. };
  86218. /**
  86219. * DataTables utility methods
  86220. *
  86221. * This namespace provides helper methods that DataTables uses internally to
  86222. * create a DataTable, but which are not exclusively used only for DataTables.
  86223. * These methods can be used by extension authors to save the duplication of
  86224. * code.
  86225. *
  86226. * @namespace
  86227. */
  86228. DataTable.util = {
  86229. /**
  86230. * Throttle the calls to a function. Arguments and context are maintained
  86231. * for the throttled function.
  86232. *
  86233. * @param {function} fn Function to be called
  86234. * @param {integer} freq Call frequency in mS
  86235. * @return {function} Wrapped function
  86236. */
  86237. throttle: _fnThrottle,
  86238. /**
  86239. * Escape a string such that it can be used in a regular expression
  86240. *
  86241. * @param {string} sVal string to escape
  86242. * @returns {string} escaped string
  86243. */
  86244. escapeRegex: _fnEscapeRegex
  86245. };
  86246. /**
  86247. * Convert from camel case parameters to Hungarian notation. This is made public
  86248. * for the extensions to provide the same ability as DataTables core to accept
  86249. * either the 1.9 style Hungarian notation, or the 1.10+ style camelCase
  86250. * parameters.
  86251. *
  86252. * @param {object} src The model object which holds all parameters that can be
  86253. * mapped.
  86254. * @param {object} user The object to convert from camel case to Hungarian.
  86255. * @param {boolean} force When set to `true`, properties which already have a
  86256. * Hungarian value in the `user` object will be overwritten. Otherwise they
  86257. * won't be.
  86258. */
  86259. DataTable.camelToHungarian = _fnCamelToHungarian;
  86260. /**
  86261. *
  86262. */
  86263. _api_register( '$()', function ( selector, opts ) {
  86264. var
  86265. rows = this.rows( opts ).nodes(), // Get all rows
  86266. jqRows = $(rows);
  86267. return $( [].concat(
  86268. jqRows.filter( selector ).toArray(),
  86269. jqRows.find( selector ).toArray()
  86270. ) );
  86271. } );
  86272. // jQuery functions to operate on the tables
  86273. $.each( [ 'on', 'one', 'off' ], function (i, key) {
  86274. _api_register( key+'()', function ( /* event, handler */ ) {
  86275. var args = Array.prototype.slice.call(arguments);
  86276. // Add the `dt` namespace automatically if it isn't already present
  86277. if ( ! args[0].match(/\.dt\b/) ) {
  86278. args[0] += '.dt';
  86279. }
  86280. var inst = $( this.tables().nodes() );
  86281. inst[key].apply( inst, args );
  86282. return this;
  86283. } );
  86284. } );
  86285. _api_register( 'clear()', function () {
  86286. return this.iterator( 'table', function ( settings ) {
  86287. _fnClearTable( settings );
  86288. } );
  86289. } );
  86290. _api_register( 'settings()', function () {
  86291. return new _Api( this.context, this.context );
  86292. } );
  86293. _api_register( 'init()', function () {
  86294. var ctx = this.context;
  86295. return ctx.length ? ctx[0].oInit : null;
  86296. } );
  86297. _api_register( 'data()', function () {
  86298. return this.iterator( 'table', function ( settings ) {
  86299. return _pluck( settings.aoData, '_aData' );
  86300. } ).flatten();
  86301. } );
  86302. _api_register( 'destroy()', function ( remove ) {
  86303. remove = remove || false;
  86304. return this.iterator( 'table', function ( settings ) {
  86305. var orig = settings.nTableWrapper.parentNode;
  86306. var classes = settings.oClasses;
  86307. var table = settings.nTable;
  86308. var tbody = settings.nTBody;
  86309. var thead = settings.nTHead;
  86310. var tfoot = settings.nTFoot;
  86311. var jqTable = $(table);
  86312. var jqTbody = $(tbody);
  86313. var jqWrapper = $(settings.nTableWrapper);
  86314. var rows = $.map( settings.aoData, function (r) { return r.nTr; } );
  86315. var i, ien;
  86316. // Flag to note that the table is currently being destroyed - no action
  86317. // should be taken
  86318. settings.bDestroying = true;
  86319. // Fire off the destroy callbacks for plug-ins etc
  86320. _fnCallbackFire( settings, "aoDestroyCallback", "destroy", [settings] );
  86321. // If not being removed from the document, make all columns visible
  86322. if ( ! remove ) {
  86323. new _Api( settings ).columns().visible( true );
  86324. }
  86325. // Blitz all `DT` namespaced events (these are internal events, the
  86326. // lowercase, `dt` events are user subscribed and they are responsible
  86327. // for removing them
  86328. jqWrapper.unbind('.DT').find(':not(tbody *)').unbind('.DT');
  86329. $(window).unbind('.DT-'+settings.sInstance);
  86330. // When scrolling we had to break the table up - restore it
  86331. if ( table != thead.parentNode ) {
  86332. jqTable.children('thead').detach();
  86333. jqTable.append( thead );
  86334. }
  86335. if ( tfoot && table != tfoot.parentNode ) {
  86336. jqTable.children('tfoot').detach();
  86337. jqTable.append( tfoot );
  86338. }
  86339. settings.aaSorting = [];
  86340. settings.aaSortingFixed = [];
  86341. _fnSortingClasses( settings );
  86342. $( rows ).removeClass( settings.asStripeClasses.join(' ') );
  86343. $('th, td', thead).removeClass( classes.sSortable+' '+
  86344. classes.sSortableAsc+' '+classes.sSortableDesc+' '+classes.sSortableNone
  86345. );
  86346. if ( settings.bJUI ) {
  86347. $('th span.'+classes.sSortIcon+ ', td span.'+classes.sSortIcon, thead).detach();
  86348. $('th, td', thead).each( function () {
  86349. var wrapper = $('div.'+classes.sSortJUIWrapper, this);
  86350. $(this).append( wrapper.contents() );
  86351. wrapper.detach();
  86352. } );
  86353. }
  86354. // Add the TR elements back into the table in their original order
  86355. jqTbody.children().detach();
  86356. jqTbody.append( rows );
  86357. // Remove the DataTables generated nodes, events and classes
  86358. var removedMethod = remove ? 'remove' : 'detach';
  86359. jqTable[ removedMethod ]();
  86360. jqWrapper[ removedMethod ]();
  86361. // If we need to reattach the table to the document
  86362. if ( ! remove && orig ) {
  86363. // insertBefore acts like appendChild if !arg[1]
  86364. orig.insertBefore( table, settings.nTableReinsertBefore );
  86365. // Restore the width of the original table - was read from the style property,
  86366. // so we can restore directly to that
  86367. jqTable
  86368. .css( 'width', settings.sDestroyWidth )
  86369. .removeClass( classes.sTable );
  86370. // If the were originally stripe classes - then we add them back here.
  86371. // Note this is not fool proof (for example if not all rows had stripe
  86372. // classes - but it's a good effort without getting carried away
  86373. ien = settings.asDestroyStripes.length;
  86374. if ( ien ) {
  86375. jqTbody.children().each( function (i) {
  86376. $(this).addClass( settings.asDestroyStripes[i % ien] );
  86377. } );
  86378. }
  86379. }
  86380. /* Remove the settings object from the settings array */
  86381. var idx = $.inArray( settings, DataTable.settings );
  86382. if ( idx !== -1 ) {
  86383. DataTable.settings.splice( idx, 1 );
  86384. }
  86385. } );
  86386. } );
  86387. // Add the `every()` method for rows, columns and cells in a compact form
  86388. $.each( [ 'column', 'row', 'cell' ], function ( i, type ) {
  86389. _api_register( type+'s().every()', function ( fn ) {
  86390. return this.iterator( type, function ( settings, arg1, arg2, arg3, arg4 ) {
  86391. // Rows and columns:
  86392. // arg1 - index
  86393. // arg2 - table counter
  86394. // arg3 - loop counter
  86395. // arg4 - undefined
  86396. // Cells:
  86397. // arg1 - row index
  86398. // arg2 - column index
  86399. // arg3 - table counter
  86400. // arg4 - loop counter
  86401. fn.call(
  86402. new _Api( settings )[ type ]( arg1, type==='cell' ? arg2 : undefined ),
  86403. arg1, arg2, arg3, arg4
  86404. );
  86405. } );
  86406. } );
  86407. } );
  86408. // i18n method for extensions to be able to use the language object from the
  86409. // DataTable
  86410. _api_register( 'i18n()', function ( token, def, plural ) {
  86411. var ctx = this.context[0];
  86412. var resolved = _fnGetObjectDataFn( token )( ctx.oLanguage );
  86413. if ( resolved === undefined ) {
  86414. resolved = def;
  86415. }
  86416. if ( plural !== undefined && $.isPlainObject( resolved ) ) {
  86417. resolved = resolved[ plural ] !== undefined ?
  86418. resolved[ plural ] :
  86419. resolved._;
  86420. }
  86421. return resolved.replace( '%d', plural ); // nb: plural might be undefined,
  86422. } );
  86423. /**
  86424. * Version string for plug-ins to check compatibility. Allowed format is
  86425. * `a.b.c-d` where: a:int, b:int, c:int, d:string(dev|beta|alpha). `d` is used
  86426. * only for non-release builds. See http://semver.org/ for more information.
  86427. * @member
  86428. * @type string
  86429. * @default Version number
  86430. */
  86431. DataTable.version = "1.10.8";
  86432. /**
  86433. * Private data store, containing all of the settings objects that are
  86434. * created for the tables on a given page.
  86435. *
  86436. * Note that the `DataTable.settings` object is aliased to
  86437. * `jQuery.fn.dataTableExt` through which it may be accessed and
  86438. * manipulated, or `jQuery.fn.dataTable.settings`.
  86439. * @member
  86440. * @type array
  86441. * @default []
  86442. * @private
  86443. */
  86444. DataTable.settings = [];
  86445. /**
  86446. * Object models container, for the various models that DataTables has
  86447. * available to it. These models define the objects that are used to hold
  86448. * the active state and configuration of the table.
  86449. * @namespace
  86450. */
  86451. DataTable.models = {};
  86452. /**
  86453. * Template object for the way in which DataTables holds information about
  86454. * search information for the global filter and individual column filters.
  86455. * @namespace
  86456. */
  86457. DataTable.models.oSearch = {
  86458. /**
  86459. * Flag to indicate if the filtering should be case insensitive or not
  86460. * @type boolean
  86461. * @default true
  86462. */
  86463. "bCaseInsensitive": true,
  86464. /**
  86465. * Applied search term
  86466. * @type string
  86467. * @default <i>Empty string</i>
  86468. */
  86469. "sSearch": "",
  86470. /**
  86471. * Flag to indicate if the search term should be interpreted as a
  86472. * regular expression (true) or not (false) and therefore and special
  86473. * regex characters escaped.
  86474. * @type boolean
  86475. * @default false
  86476. */
  86477. "bRegex": false,
  86478. /**
  86479. * Flag to indicate if DataTables is to use its smart filtering or not.
  86480. * @type boolean
  86481. * @default true
  86482. */
  86483. "bSmart": true
  86484. };
  86485. /**
  86486. * Template object for the way in which DataTables holds information about
  86487. * each individual row. This is the object format used for the settings
  86488. * aoData array.
  86489. * @namespace
  86490. */
  86491. DataTable.models.oRow = {
  86492. /**
  86493. * TR element for the row
  86494. * @type node
  86495. * @default null
  86496. */
  86497. "nTr": null,
  86498. /**
  86499. * Array of TD elements for each row. This is null until the row has been
  86500. * created.
  86501. * @type array nodes
  86502. * @default []
  86503. */
  86504. "anCells": null,
  86505. /**
  86506. * Data object from the original data source for the row. This is either
  86507. * an array if using the traditional form of DataTables, or an object if
  86508. * using mData options. The exact type will depend on the passed in
  86509. * data from the data source, or will be an array if using DOM a data
  86510. * source.
  86511. * @type array|object
  86512. * @default []
  86513. */
  86514. "_aData": [],
  86515. /**
  86516. * Sorting data cache - this array is ostensibly the same length as the
  86517. * number of columns (although each index is generated only as it is
  86518. * needed), and holds the data that is used for sorting each column in the
  86519. * row. We do this cache generation at the start of the sort in order that
  86520. * the formatting of the sort data need be done only once for each cell
  86521. * per sort. This array should not be read from or written to by anything
  86522. * other than the master sorting methods.
  86523. * @type array
  86524. * @default null
  86525. * @private
  86526. */
  86527. "_aSortData": null,
  86528. /**
  86529. * Per cell filtering data cache. As per the sort data cache, used to
  86530. * increase the performance of the filtering in DataTables
  86531. * @type array
  86532. * @default null
  86533. * @private
  86534. */
  86535. "_aFilterData": null,
  86536. /**
  86537. * Filtering data cache. This is the same as the cell filtering cache, but
  86538. * in this case a string rather than an array. This is easily computed with
  86539. * a join on `_aFilterData`, but is provided as a cache so the join isn't
  86540. * needed on every search (memory traded for performance)
  86541. * @type array
  86542. * @default null
  86543. * @private
  86544. */
  86545. "_sFilterRow": null,
  86546. /**
  86547. * Cache of the class name that DataTables has applied to the row, so we
  86548. * can quickly look at this variable rather than needing to do a DOM check
  86549. * on className for the nTr property.
  86550. * @type string
  86551. * @default <i>Empty string</i>
  86552. * @private
  86553. */
  86554. "_sRowStripe": "",
  86555. /**
  86556. * Denote if the original data source was from the DOM, or the data source
  86557. * object. This is used for invalidating data, so DataTables can
  86558. * automatically read data from the original source, unless uninstructed
  86559. * otherwise.
  86560. * @type string
  86561. * @default null
  86562. * @private
  86563. */
  86564. "src": null,
  86565. /**
  86566. * Index in the aoData array. This saves an indexOf lookup when we have the
  86567. * object, but want to know the index
  86568. * @type integer
  86569. * @default -1
  86570. * @private
  86571. */
  86572. "idx": -1
  86573. };
  86574. /**
  86575. * Template object for the column information object in DataTables. This object
  86576. * is held in the settings aoColumns array and contains all the information that
  86577. * DataTables needs about each individual column.
  86578. *
  86579. * Note that this object is related to {@link DataTable.defaults.column}
  86580. * but this one is the internal data store for DataTables's cache of columns.
  86581. * It should NOT be manipulated outside of DataTables. Any configuration should
  86582. * be done through the initialisation options.
  86583. * @namespace
  86584. */
  86585. DataTable.models.oColumn = {
  86586. /**
  86587. * Column index. This could be worked out on-the-fly with $.inArray, but it
  86588. * is faster to just hold it as a variable
  86589. * @type integer
  86590. * @default null
  86591. */
  86592. "idx": null,
  86593. /**
  86594. * A list of the columns that sorting should occur on when this column
  86595. * is sorted. That this property is an array allows multi-column sorting
  86596. * to be defined for a column (for example first name / last name columns
  86597. * would benefit from this). The values are integers pointing to the
  86598. * columns to be sorted on (typically it will be a single integer pointing
  86599. * at itself, but that doesn't need to be the case).
  86600. * @type array
  86601. */
  86602. "aDataSort": null,
  86603. /**
  86604. * Define the sorting directions that are applied to the column, in sequence
  86605. * as the column is repeatedly sorted upon - i.e. the first value is used
  86606. * as the sorting direction when the column if first sorted (clicked on).
  86607. * Sort it again (click again) and it will move on to the next index.
  86608. * Repeat until loop.
  86609. * @type array
  86610. */
  86611. "asSorting": null,
  86612. /**
  86613. * Flag to indicate if the column is searchable, and thus should be included
  86614. * in the filtering or not.
  86615. * @type boolean
  86616. */
  86617. "bSearchable": null,
  86618. /**
  86619. * Flag to indicate if the column is sortable or not.
  86620. * @type boolean
  86621. */
  86622. "bSortable": null,
  86623. /**
  86624. * Flag to indicate if the column is currently visible in the table or not
  86625. * @type boolean
  86626. */
  86627. "bVisible": null,
  86628. /**
  86629. * Store for manual type assignment using the `column.type` option. This
  86630. * is held in store so we can manipulate the column's `sType` property.
  86631. * @type string
  86632. * @default null
  86633. * @private
  86634. */
  86635. "_sManualType": null,
  86636. /**
  86637. * Flag to indicate if HTML5 data attributes should be used as the data
  86638. * source for filtering or sorting. True is either are.
  86639. * @type boolean
  86640. * @default false
  86641. * @private
  86642. */
  86643. "_bAttrSrc": false,
  86644. /**
  86645. * Developer definable function that is called whenever a cell is created (Ajax source,
  86646. * etc) or processed for input (DOM source). This can be used as a compliment to mRender
  86647. * allowing you to modify the DOM element (add background colour for example) when the
  86648. * element is available.
  86649. * @type function
  86650. * @param {element} nTd The TD node that has been created
  86651. * @param {*} sData The Data for the cell
  86652. * @param {array|object} oData The data for the whole row
  86653. * @param {int} iRow The row index for the aoData data store
  86654. * @default null
  86655. */
  86656. "fnCreatedCell": null,
  86657. /**
  86658. * Function to get data from a cell in a column. You should <b>never</b>
  86659. * access data directly through _aData internally in DataTables - always use
  86660. * the method attached to this property. It allows mData to function as
  86661. * required. This function is automatically assigned by the column
  86662. * initialisation method
  86663. * @type function
  86664. * @param {array|object} oData The data array/object for the array
  86665. * (i.e. aoData[]._aData)
  86666. * @param {string} sSpecific The specific data type you want to get -
  86667. * 'display', 'type' 'filter' 'sort'
  86668. * @returns {*} The data for the cell from the given row's data
  86669. * @default null
  86670. */
  86671. "fnGetData": null,
  86672. /**
  86673. * Function to set data for a cell in the column. You should <b>never</b>
  86674. * set the data directly to _aData internally in DataTables - always use
  86675. * this method. It allows mData to function as required. This function
  86676. * is automatically assigned by the column initialisation method
  86677. * @type function
  86678. * @param {array|object} oData The data array/object for the array
  86679. * (i.e. aoData[]._aData)
  86680. * @param {*} sValue Value to set
  86681. * @default null
  86682. */
  86683. "fnSetData": null,
  86684. /**
  86685. * Property to read the value for the cells in the column from the data
  86686. * source array / object. If null, then the default content is used, if a
  86687. * function is given then the return from the function is used.
  86688. * @type function|int|string|null
  86689. * @default null
  86690. */
  86691. "mData": null,
  86692. /**
  86693. * Partner property to mData which is used (only when defined) to get
  86694. * the data - i.e. it is basically the same as mData, but without the
  86695. * 'set' option, and also the data fed to it is the result from mData.
  86696. * This is the rendering method to match the data method of mData.
  86697. * @type function|int|string|null
  86698. * @default null
  86699. */
  86700. "mRender": null,
  86701. /**
  86702. * Unique header TH/TD element for this column - this is what the sorting
  86703. * listener is attached to (if sorting is enabled.)
  86704. * @type node
  86705. * @default null
  86706. */
  86707. "nTh": null,
  86708. /**
  86709. * Unique footer TH/TD element for this column (if there is one). Not used
  86710. * in DataTables as such, but can be used for plug-ins to reference the
  86711. * footer for each column.
  86712. * @type node
  86713. * @default null
  86714. */
  86715. "nTf": null,
  86716. /**
  86717. * The class to apply to all TD elements in the table's TBODY for the column
  86718. * @type string
  86719. * @default null
  86720. */
  86721. "sClass": null,
  86722. /**
  86723. * When DataTables calculates the column widths to assign to each column,
  86724. * it finds the longest string in each column and then constructs a
  86725. * temporary table and reads the widths from that. The problem with this
  86726. * is that "mmm" is much wider then "iiii", but the latter is a longer
  86727. * string - thus the calculation can go wrong (doing it properly and putting
  86728. * it into an DOM object and measuring that is horribly(!) slow). Thus as
  86729. * a "work around" we provide this option. It will append its value to the
  86730. * text that is found to be the longest string for the column - i.e. padding.
  86731. * @type string
  86732. */
  86733. "sContentPadding": null,
  86734. /**
  86735. * Allows a default value to be given for a column's data, and will be used
  86736. * whenever a null data source is encountered (this can be because mData
  86737. * is set to null, or because the data source itself is null).
  86738. * @type string
  86739. * @default null
  86740. */
  86741. "sDefaultContent": null,
  86742. /**
  86743. * Name for the column, allowing reference to the column by name as well as
  86744. * by index (needs a lookup to work by name).
  86745. * @type string
  86746. */
  86747. "sName": null,
  86748. /**
  86749. * Custom sorting data type - defines which of the available plug-ins in
  86750. * afnSortData the custom sorting will use - if any is defined.
  86751. * @type string
  86752. * @default std
  86753. */
  86754. "sSortDataType": 'std',
  86755. /**
  86756. * Class to be applied to the header element when sorting on this column
  86757. * @type string
  86758. * @default null
  86759. */
  86760. "sSortingClass": null,
  86761. /**
  86762. * Class to be applied to the header element when sorting on this column -
  86763. * when jQuery UI theming is used.
  86764. * @type string
  86765. * @default null
  86766. */
  86767. "sSortingClassJUI": null,
  86768. /**
  86769. * Title of the column - what is seen in the TH element (nTh).
  86770. * @type string
  86771. */
  86772. "sTitle": null,
  86773. /**
  86774. * Column sorting and filtering type
  86775. * @type string
  86776. * @default null
  86777. */
  86778. "sType": null,
  86779. /**
  86780. * Width of the column
  86781. * @type string
  86782. * @default null
  86783. */
  86784. "sWidth": null,
  86785. /**
  86786. * Width of the column when it was first "encountered"
  86787. * @type string
  86788. * @default null
  86789. */
  86790. "sWidthOrig": null
  86791. };
  86792. /*
  86793. * Developer note: The properties of the object below are given in Hungarian
  86794. * notation, that was used as the interface for DataTables prior to v1.10, however
  86795. * from v1.10 onwards the primary interface is camel case. In order to avoid
  86796. * breaking backwards compatibility utterly with this change, the Hungarian
  86797. * version is still, internally the primary interface, but is is not documented
  86798. * - hence the @name tags in each doc comment. This allows a Javascript function
  86799. * to create a map from Hungarian notation to camel case (going the other direction
  86800. * would require each property to be listed, which would at around 3K to the size
  86801. * of DataTables, while this method is about a 0.5K hit.
  86802. *
  86803. * Ultimately this does pave the way for Hungarian notation to be dropped
  86804. * completely, but that is a massive amount of work and will break current
  86805. * installs (therefore is on-hold until v2).
  86806. */
  86807. /**
  86808. * Initialisation options that can be given to DataTables at initialisation
  86809. * time.
  86810. * @namespace
  86811. */
  86812. DataTable.defaults = {
  86813. /**
  86814. * An array of data to use for the table, passed in at initialisation which
  86815. * will be used in preference to any data which is already in the DOM. This is
  86816. * particularly useful for constructing tables purely in Javascript, for
  86817. * example with a custom Ajax call.
  86818. * @type array
  86819. * @default null
  86820. *
  86821. * @dtopt Option
  86822. * @name DataTable.defaults.data
  86823. *
  86824. * @example
  86825. * // Using a 2D array data source
  86826. * $(document).ready( function () {
  86827. * $('#example').dataTable( {
  86828. * "data": [
  86829. * ['Trident', 'Internet Explorer 4.0', 'Win 95+', 4, 'X'],
  86830. * ['Trident', 'Internet Explorer 5.0', 'Win 95+', 5, 'C'],
  86831. * ],
  86832. * "columns": [
  86833. * { "title": "Engine" },
  86834. * { "title": "Browser" },
  86835. * { "title": "Platform" },
  86836. * { "title": "Version" },
  86837. * { "title": "Grade" }
  86838. * ]
  86839. * } );
  86840. * } );
  86841. *
  86842. * @example
  86843. * // Using an array of objects as a data source (`data`)
  86844. * $(document).ready( function () {
  86845. * $('#example').dataTable( {
  86846. * "data": [
  86847. * {
  86848. * "engine": "Trident",
  86849. * "browser": "Internet Explorer 4.0",
  86850. * "platform": "Win 95+",
  86851. * "version": 4,
  86852. * "grade": "X"
  86853. * },
  86854. * {
  86855. * "engine": "Trident",
  86856. * "browser": "Internet Explorer 5.0",
  86857. * "platform": "Win 95+",
  86858. * "version": 5,
  86859. * "grade": "C"
  86860. * }
  86861. * ],
  86862. * "columns": [
  86863. * { "title": "Engine", "data": "engine" },
  86864. * { "title": "Browser", "data": "browser" },
  86865. * { "title": "Platform", "data": "platform" },
  86866. * { "title": "Version", "data": "version" },
  86867. * { "title": "Grade", "data": "grade" }
  86868. * ]
  86869. * } );
  86870. * } );
  86871. */
  86872. "aaData": null,
  86873. /**
  86874. * If ordering is enabled, then DataTables will perform a first pass sort on
  86875. * initialisation. You can define which column(s) the sort is performed
  86876. * upon, and the sorting direction, with this variable. The `sorting` array
  86877. * should contain an array for each column to be sorted initially containing
  86878. * the column's index and a direction string ('asc' or 'desc').
  86879. * @type array
  86880. * @default [[0,'asc']]
  86881. *
  86882. * @dtopt Option
  86883. * @name DataTable.defaults.order
  86884. *
  86885. * @example
  86886. * // Sort by 3rd column first, and then 4th column
  86887. * $(document).ready( function() {
  86888. * $('#example').dataTable( {
  86889. * "order": [[2,'asc'], [3,'desc']]
  86890. * } );
  86891. * } );
  86892. *
  86893. * // No initial sorting
  86894. * $(document).ready( function() {
  86895. * $('#example').dataTable( {
  86896. * "order": []
  86897. * } );
  86898. * } );
  86899. */
  86900. "aaSorting": [[0,'asc']],
  86901. /**
  86902. * This parameter is basically identical to the `sorting` parameter, but
  86903. * cannot be overridden by user interaction with the table. What this means
  86904. * is that you could have a column (visible or hidden) which the sorting
  86905. * will always be forced on first - any sorting after that (from the user)
  86906. * will then be performed as required. This can be useful for grouping rows
  86907. * together.
  86908. * @type array
  86909. * @default null
  86910. *
  86911. * @dtopt Option
  86912. * @name DataTable.defaults.orderFixed
  86913. *
  86914. * @example
  86915. * $(document).ready( function() {
  86916. * $('#example').dataTable( {
  86917. * "orderFixed": [[0,'asc']]
  86918. * } );
  86919. * } )
  86920. */
  86921. "aaSortingFixed": [],
  86922. /**
  86923. * DataTables can be instructed to load data to display in the table from a
  86924. * Ajax source. This option defines how that Ajax call is made and where to.
  86925. *
  86926. * The `ajax` property has three different modes of operation, depending on
  86927. * how it is defined. These are:
  86928. *
  86929. * * `string` - Set the URL from where the data should be loaded from.
  86930. * * `object` - Define properties for `jQuery.ajax`.
  86931. * * `function` - Custom data get function
  86932. *
  86933. * `string`
  86934. * --------
  86935. *
  86936. * As a string, the `ajax` property simply defines the URL from which
  86937. * DataTables will load data.
  86938. *
  86939. * `object`
  86940. * --------
  86941. *
  86942. * As an object, the parameters in the object are passed to
  86943. * [jQuery.ajax](http://api.jquery.com/jQuery.ajax/) allowing fine control
  86944. * of the Ajax request. DataTables has a number of default parameters which
  86945. * you can override using this option. Please refer to the jQuery
  86946. * documentation for a full description of the options available, although
  86947. * the following parameters provide additional options in DataTables or
  86948. * require special consideration:
  86949. *
  86950. * * `data` - As with jQuery, `data` can be provided as an object, but it
  86951. * can also be used as a function to manipulate the data DataTables sends
  86952. * to the server. The function takes a single parameter, an object of
  86953. * parameters with the values that DataTables has readied for sending. An
  86954. * object may be returned which will be merged into the DataTables
  86955. * defaults, or you can add the items to the object that was passed in and
  86956. * not return anything from the function. This supersedes `fnServerParams`
  86957. * from DataTables 1.9-.
  86958. *
  86959. * * `dataSrc` - By default DataTables will look for the property `data` (or
  86960. * `aaData` for compatibility with DataTables 1.9-) when obtaining data
  86961. * from an Ajax source or for server-side processing - this parameter
  86962. * allows that property to be changed. You can use Javascript dotted
  86963. * object notation to get a data source for multiple levels of nesting, or
  86964. * it my be used as a function. As a function it takes a single parameter,
  86965. * the JSON returned from the server, which can be manipulated as
  86966. * required, with the returned value being that used by DataTables as the
  86967. * data source for the table. This supersedes `sAjaxDataProp` from
  86968. * DataTables 1.9-.
  86969. *
  86970. * * `success` - Should not be overridden it is used internally in
  86971. * DataTables. To manipulate / transform the data returned by the server
  86972. * use `ajax.dataSrc`, or use `ajax` as a function (see below).
  86973. *
  86974. * `function`
  86975. * ----------
  86976. *
  86977. * As a function, making the Ajax call is left up to yourself allowing
  86978. * complete control of the Ajax request. Indeed, if desired, a method other
  86979. * than Ajax could be used to obtain the required data, such as Web storage
  86980. * or an AIR database.
  86981. *
  86982. * The function is given four parameters and no return is required. The
  86983. * parameters are:
  86984. *
  86985. * 1. _object_ - Data to send to the server
  86986. * 2. _function_ - Callback function that must be executed when the required
  86987. * data has been obtained. That data should be passed into the callback
  86988. * as the only parameter
  86989. * 3. _object_ - DataTables settings object for the table
  86990. *
  86991. * Note that this supersedes `fnServerData` from DataTables 1.9-.
  86992. *
  86993. * @type string|object|function
  86994. * @default null
  86995. *
  86996. * @dtopt Option
  86997. * @name DataTable.defaults.ajax
  86998. * @since 1.10.0
  86999. *
  87000. * @example
  87001. * // Get JSON data from a file via Ajax.
  87002. * // Note DataTables expects data in the form `{ data: [ ...data... ] }` by default).
  87003. * $('#example').dataTable( {
  87004. * "ajax": "data.json"
  87005. * } );
  87006. *
  87007. * @example
  87008. * // Get JSON data from a file via Ajax, using `dataSrc` to change
  87009. * // `data` to `tableData` (i.e. `{ tableData: [ ...data... ] }`)
  87010. * $('#example').dataTable( {
  87011. * "ajax": {
  87012. * "url": "data.json",
  87013. * "dataSrc": "tableData"
  87014. * }
  87015. * } );
  87016. *
  87017. * @example
  87018. * // Get JSON data from a file via Ajax, using `dataSrc` to read data
  87019. * // from a plain array rather than an array in an object
  87020. * $('#example').dataTable( {
  87021. * "ajax": {
  87022. * "url": "data.json",
  87023. * "dataSrc": ""
  87024. * }
  87025. * } );
  87026. *
  87027. * @example
  87028. * // Manipulate the data returned from the server - add a link to data
  87029. * // (note this can, should, be done using `render` for the column - this
  87030. * // is just a simple example of how the data can be manipulated).
  87031. * $('#example').dataTable( {
  87032. * "ajax": {
  87033. * "url": "data.json",
  87034. * "dataSrc": function ( json ) {
  87035. * for ( var i=0, ien=json.length ; i<ien ; i++ ) {
  87036. * json[i][0] = '<a href="/message/'+json[i][0]+'>View message</a>';
  87037. * }
  87038. * return json;
  87039. * }
  87040. * }
  87041. * } );
  87042. *
  87043. * @example
  87044. * // Add data to the request
  87045. * $('#example').dataTable( {
  87046. * "ajax": {
  87047. * "url": "data.json",
  87048. * "data": function ( d ) {
  87049. * return {
  87050. * "extra_search": $('#extra').val()
  87051. * };
  87052. * }
  87053. * }
  87054. * } );
  87055. *
  87056. * @example
  87057. * // Send request as POST
  87058. * $('#example').dataTable( {
  87059. * "ajax": {
  87060. * "url": "data.json",
  87061. * "type": "POST"
  87062. * }
  87063. * } );
  87064. *
  87065. * @example
  87066. * // Get the data from localStorage (could interface with a form for
  87067. * // adding, editing and removing rows).
  87068. * $('#example').dataTable( {
  87069. * "ajax": function (data, callback, settings) {
  87070. * callback(
  87071. * JSON.parse( localStorage.getItem('dataTablesData') )
  87072. * );
  87073. * }
  87074. * } );
  87075. */
  87076. "ajax": null,
  87077. /**
  87078. * This parameter allows you to readily specify the entries in the length drop
  87079. * down menu that DataTables shows when pagination is enabled. It can be
  87080. * either a 1D array of options which will be used for both the displayed
  87081. * option and the value, or a 2D array which will use the array in the first
  87082. * position as the value, and the array in the second position as the
  87083. * displayed options (useful for language strings such as 'All').
  87084. *
  87085. * Note that the `pageLength` property will be automatically set to the
  87086. * first value given in this array, unless `pageLength` is also provided.
  87087. * @type array
  87088. * @default [ 10, 25, 50, 100 ]
  87089. *
  87090. * @dtopt Option
  87091. * @name DataTable.defaults.lengthMenu
  87092. *
  87093. * @example
  87094. * $(document).ready( function() {
  87095. * $('#example').dataTable( {
  87096. * "lengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]]
  87097. * } );
  87098. * } );
  87099. */
  87100. "aLengthMenu": [ 10, 25, 50, 100 ],
  87101. /**
  87102. * The `columns` option in the initialisation parameter allows you to define
  87103. * details about the way individual columns behave. For a full list of
  87104. * column options that can be set, please see
  87105. * {@link DataTable.defaults.column}. Note that if you use `columns` to
  87106. * define your columns, you must have an entry in the array for every single
  87107. * column that you have in your table (these can be null if you don't which
  87108. * to specify any options).
  87109. * @member
  87110. *
  87111. * @name DataTable.defaults.column
  87112. */
  87113. "aoColumns": null,
  87114. /**
  87115. * Very similar to `columns`, `columnDefs` allows you to target a specific
  87116. * column, multiple columns, or all columns, using the `targets` property of
  87117. * each object in the array. This allows great flexibility when creating
  87118. * tables, as the `columnDefs` arrays can be of any length, targeting the
  87119. * columns you specifically want. `columnDefs` may use any of the column
  87120. * options available: {@link DataTable.defaults.column}, but it _must_
  87121. * have `targets` defined in each object in the array. Values in the `targets`
  87122. * array may be:
  87123. * <ul>
  87124. * <li>a string - class name will be matched on the TH for the column</li>
  87125. * <li>0 or a positive integer - column index counting from the left</li>
  87126. * <li>a negative integer - column index counting from the right</li>
  87127. * <li>the string "_all" - all columns (i.e. assign a default)</li>
  87128. * </ul>
  87129. * @member
  87130. *
  87131. * @name DataTable.defaults.columnDefs
  87132. */
  87133. "aoColumnDefs": null,
  87134. /**
  87135. * Basically the same as `search`, this parameter defines the individual column
  87136. * filtering state at initialisation time. The array must be of the same size
  87137. * as the number of columns, and each element be an object with the parameters
  87138. * `search` and `escapeRegex` (the latter is optional). 'null' is also
  87139. * accepted and the default will be used.
  87140. * @type array
  87141. * @default []
  87142. *
  87143. * @dtopt Option
  87144. * @name DataTable.defaults.searchCols
  87145. *
  87146. * @example
  87147. * $(document).ready( function() {
  87148. * $('#example').dataTable( {
  87149. * "searchCols": [
  87150. * null,
  87151. * { "search": "My filter" },
  87152. * null,
  87153. * { "search": "^[0-9]", "escapeRegex": false }
  87154. * ]
  87155. * } );
  87156. * } )
  87157. */
  87158. "aoSearchCols": [],
  87159. /**
  87160. * An array of CSS classes that should be applied to displayed rows. This
  87161. * array may be of any length, and DataTables will apply each class
  87162. * sequentially, looping when required.
  87163. * @type array
  87164. * @default null <i>Will take the values determined by the `oClasses.stripe*`
  87165. * options</i>
  87166. *
  87167. * @dtopt Option
  87168. * @name DataTable.defaults.stripeClasses
  87169. *
  87170. * @example
  87171. * $(document).ready( function() {
  87172. * $('#example').dataTable( {
  87173. * "stripeClasses": [ 'strip1', 'strip2', 'strip3' ]
  87174. * } );
  87175. * } )
  87176. */
  87177. "asStripeClasses": null,
  87178. /**
  87179. * Enable or disable automatic column width calculation. This can be disabled
  87180. * as an optimisation (it takes some time to calculate the widths) if the
  87181. * tables widths are passed in using `columns`.
  87182. * @type boolean
  87183. * @default true
  87184. *
  87185. * @dtopt Features
  87186. * @name DataTable.defaults.autoWidth
  87187. *
  87188. * @example
  87189. * $(document).ready( function () {
  87190. * $('#example').dataTable( {
  87191. * "autoWidth": false
  87192. * } );
  87193. * } );
  87194. */
  87195. "bAutoWidth": true,
  87196. /**
  87197. * Deferred rendering can provide DataTables with a huge speed boost when you
  87198. * are using an Ajax or JS data source for the table. This option, when set to
  87199. * true, will cause DataTables to defer the creation of the table elements for
  87200. * each row until they are needed for a draw - saving a significant amount of
  87201. * time.
  87202. * @type boolean
  87203. * @default false
  87204. *
  87205. * @dtopt Features
  87206. * @name DataTable.defaults.deferRender
  87207. *
  87208. * @example
  87209. * $(document).ready( function() {
  87210. * $('#example').dataTable( {
  87211. * "ajax": "sources/arrays.txt",
  87212. * "deferRender": true
  87213. * } );
  87214. * } );
  87215. */
  87216. "bDeferRender": false,
  87217. /**
  87218. * Replace a DataTable which matches the given selector and replace it with
  87219. * one which has the properties of the new initialisation object passed. If no
  87220. * table matches the selector, then the new DataTable will be constructed as
  87221. * per normal.
  87222. * @type boolean
  87223. * @default false
  87224. *
  87225. * @dtopt Options
  87226. * @name DataTable.defaults.destroy
  87227. *
  87228. * @example
  87229. * $(document).ready( function() {
  87230. * $('#example').dataTable( {
  87231. * "srollY": "200px",
  87232. * "paginate": false
  87233. * } );
  87234. *
  87235. * // Some time later....
  87236. * $('#example').dataTable( {
  87237. * "filter": false,
  87238. * "destroy": true
  87239. * } );
  87240. * } );
  87241. */
  87242. "bDestroy": false,
  87243. /**
  87244. * Enable or disable filtering of data. Filtering in DataTables is "smart" in
  87245. * that it allows the end user to input multiple words (space separated) and
  87246. * will match a row containing those words, even if not in the order that was
  87247. * specified (this allow matching across multiple columns). Note that if you
  87248. * wish to use filtering in DataTables this must remain 'true' - to remove the
  87249. * default filtering input box and retain filtering abilities, please use
  87250. * {@link DataTable.defaults.dom}.
  87251. * @type boolean
  87252. * @default true
  87253. *
  87254. * @dtopt Features
  87255. * @name DataTable.defaults.searching
  87256. *
  87257. * @example
  87258. * $(document).ready( function () {
  87259. * $('#example').dataTable( {
  87260. * "searching": false
  87261. * } );
  87262. * } );
  87263. */
  87264. "bFilter": true,
  87265. /**
  87266. * Enable or disable the table information display. This shows information
  87267. * about the data that is currently visible on the page, including information
  87268. * about filtered data if that action is being performed.
  87269. * @type boolean
  87270. * @default true
  87271. *
  87272. * @dtopt Features
  87273. * @name DataTable.defaults.info
  87274. *
  87275. * @example
  87276. * $(document).ready( function () {
  87277. * $('#example').dataTable( {
  87278. * "info": false
  87279. * } );
  87280. * } );
  87281. */
  87282. "bInfo": true,
  87283. /**
  87284. * Enable jQuery UI ThemeRoller support (required as ThemeRoller requires some
  87285. * slightly different and additional mark-up from what DataTables has
  87286. * traditionally used).
  87287. * @type boolean
  87288. * @default false
  87289. *
  87290. * @dtopt Features
  87291. * @name DataTable.defaults.jQueryUI
  87292. *
  87293. * @example
  87294. * $(document).ready( function() {
  87295. * $('#example').dataTable( {
  87296. * "jQueryUI": true
  87297. * } );
  87298. * } );
  87299. */
  87300. "bJQueryUI": false,
  87301. /**
  87302. * Allows the end user to select the size of a formatted page from a select
  87303. * menu (sizes are 10, 25, 50 and 100). Requires pagination (`paginate`).
  87304. * @type boolean
  87305. * @default true
  87306. *
  87307. * @dtopt Features
  87308. * @name DataTable.defaults.lengthChange
  87309. *
  87310. * @example
  87311. * $(document).ready( function () {
  87312. * $('#example').dataTable( {
  87313. * "lengthChange": false
  87314. * } );
  87315. * } );
  87316. */
  87317. "bLengthChange": true,
  87318. /**
  87319. * Enable or disable pagination.
  87320. * @type boolean
  87321. * @default true
  87322. *
  87323. * @dtopt Features
  87324. * @name DataTable.defaults.paging
  87325. *
  87326. * @example
  87327. * $(document).ready( function () {
  87328. * $('#example').dataTable( {
  87329. * "paging": false
  87330. * } );
  87331. * } );
  87332. */
  87333. "bPaginate": true,
  87334. /**
  87335. * Enable or disable the display of a 'processing' indicator when the table is
  87336. * being processed (e.g. a sort). This is particularly useful for tables with
  87337. * large amounts of data where it can take a noticeable amount of time to sort
  87338. * the entries.
  87339. * @type boolean
  87340. * @default false
  87341. *
  87342. * @dtopt Features
  87343. * @name DataTable.defaults.processing
  87344. *
  87345. * @example
  87346. * $(document).ready( function () {
  87347. * $('#example').dataTable( {
  87348. * "processing": true
  87349. * } );
  87350. * } );
  87351. */
  87352. "bProcessing": false,
  87353. /**
  87354. * Retrieve the DataTables object for the given selector. Note that if the
  87355. * table has already been initialised, this parameter will cause DataTables
  87356. * to simply return the object that has already been set up - it will not take
  87357. * account of any changes you might have made to the initialisation object
  87358. * passed to DataTables (setting this parameter to true is an acknowledgement
  87359. * that you understand this). `destroy` can be used to reinitialise a table if
  87360. * you need.
  87361. * @type boolean
  87362. * @default false
  87363. *
  87364. * @dtopt Options
  87365. * @name DataTable.defaults.retrieve
  87366. *
  87367. * @example
  87368. * $(document).ready( function() {
  87369. * initTable();
  87370. * tableActions();
  87371. * } );
  87372. *
  87373. * function initTable ()
  87374. * {
  87375. * return $('#example').dataTable( {
  87376. * "scrollY": "200px",
  87377. * "paginate": false,
  87378. * "retrieve": true
  87379. * } );
  87380. * }
  87381. *
  87382. * function tableActions ()
  87383. * {
  87384. * var table = initTable();
  87385. * // perform API operations with oTable
  87386. * }
  87387. */
  87388. "bRetrieve": false,
  87389. /**
  87390. * When vertical (y) scrolling is enabled, DataTables will force the height of
  87391. * the table's viewport to the given height at all times (useful for layout).
  87392. * However, this can look odd when filtering data down to a small data set,
  87393. * and the footer is left "floating" further down. This parameter (when
  87394. * enabled) will cause DataTables to collapse the table's viewport down when
  87395. * the result set will fit within the given Y height.
  87396. * @type boolean
  87397. * @default false
  87398. *
  87399. * @dtopt Options
  87400. * @name DataTable.defaults.scrollCollapse
  87401. *
  87402. * @example
  87403. * $(document).ready( function() {
  87404. * $('#example').dataTable( {
  87405. * "scrollY": "200",
  87406. * "scrollCollapse": true
  87407. * } );
  87408. * } );
  87409. */
  87410. "bScrollCollapse": false,
  87411. /**
  87412. * Configure DataTables to use server-side processing. Note that the
  87413. * `ajax` parameter must also be given in order to give DataTables a
  87414. * source to obtain the required data for each draw.
  87415. * @type boolean
  87416. * @default false
  87417. *
  87418. * @dtopt Features
  87419. * @dtopt Server-side
  87420. * @name DataTable.defaults.serverSide
  87421. *
  87422. * @example
  87423. * $(document).ready( function () {
  87424. * $('#example').dataTable( {
  87425. * "serverSide": true,
  87426. * "ajax": "xhr.php"
  87427. * } );
  87428. * } );
  87429. */
  87430. "bServerSide": false,
  87431. /**
  87432. * Enable or disable sorting of columns. Sorting of individual columns can be
  87433. * disabled by the `sortable` option for each column.
  87434. * @type boolean
  87435. * @default true
  87436. *
  87437. * @dtopt Features
  87438. * @name DataTable.defaults.ordering
  87439. *
  87440. * @example
  87441. * $(document).ready( function () {
  87442. * $('#example').dataTable( {
  87443. * "ordering": false
  87444. * } );
  87445. * } );
  87446. */
  87447. "bSort": true,
  87448. /**
  87449. * Enable or display DataTables' ability to sort multiple columns at the
  87450. * same time (activated by shift-click by the user).
  87451. * @type boolean
  87452. * @default true
  87453. *
  87454. * @dtopt Options
  87455. * @name DataTable.defaults.orderMulti
  87456. *
  87457. * @example
  87458. * // Disable multiple column sorting ability
  87459. * $(document).ready( function () {
  87460. * $('#example').dataTable( {
  87461. * "orderMulti": false
  87462. * } );
  87463. * } );
  87464. */
  87465. "bSortMulti": true,
  87466. /**
  87467. * Allows control over whether DataTables should use the top (true) unique
  87468. * cell that is found for a single column, or the bottom (false - default).
  87469. * This is useful when using complex headers.
  87470. * @type boolean
  87471. * @default false
  87472. *
  87473. * @dtopt Options
  87474. * @name DataTable.defaults.orderCellsTop
  87475. *
  87476. * @example
  87477. * $(document).ready( function() {
  87478. * $('#example').dataTable( {
  87479. * "orderCellsTop": true
  87480. * } );
  87481. * } );
  87482. */
  87483. "bSortCellsTop": false,
  87484. /**
  87485. * Enable or disable the addition of the classes `sorting\_1`, `sorting\_2` and
  87486. * `sorting\_3` to the columns which are currently being sorted on. This is
  87487. * presented as a feature switch as it can increase processing time (while
  87488. * classes are removed and added) so for large data sets you might want to
  87489. * turn this off.
  87490. * @type boolean
  87491. * @default true
  87492. *
  87493. * @dtopt Features
  87494. * @name DataTable.defaults.orderClasses
  87495. *
  87496. * @example
  87497. * $(document).ready( function () {
  87498. * $('#example').dataTable( {
  87499. * "orderClasses": false
  87500. * } );
  87501. * } );
  87502. */
  87503. "bSortClasses": true,
  87504. /**
  87505. * Enable or disable state saving. When enabled HTML5 `localStorage` will be
  87506. * used to save table display information such as pagination information,
  87507. * display length, filtering and sorting. As such when the end user reloads
  87508. * the page the display display will match what thy had previously set up.
  87509. *
  87510. * Due to the use of `localStorage` the default state saving is not supported
  87511. * in IE6 or 7. If state saving is required in those browsers, use
  87512. * `stateSaveCallback` to provide a storage solution such as cookies.
  87513. * @type boolean
  87514. * @default false
  87515. *
  87516. * @dtopt Features
  87517. * @name DataTable.defaults.stateSave
  87518. *
  87519. * @example
  87520. * $(document).ready( function () {
  87521. * $('#example').dataTable( {
  87522. * "stateSave": true
  87523. * } );
  87524. * } );
  87525. */
  87526. "bStateSave": false,
  87527. /**
  87528. * This function is called when a TR element is created (and all TD child
  87529. * elements have been inserted), or registered if using a DOM source, allowing
  87530. * manipulation of the TR element (adding classes etc).
  87531. * @type function
  87532. * @param {node} row "TR" element for the current row
  87533. * @param {array} data Raw data array for this row
  87534. * @param {int} dataIndex The index of this row in the internal aoData array
  87535. *
  87536. * @dtopt Callbacks
  87537. * @name DataTable.defaults.createdRow
  87538. *
  87539. * @example
  87540. * $(document).ready( function() {
  87541. * $('#example').dataTable( {
  87542. * "createdRow": function( row, data, dataIndex ) {
  87543. * // Bold the grade for all 'A' grade browsers
  87544. * if ( data[4] == "A" )
  87545. * {
  87546. * $('td:eq(4)', row).html( '<b>A</b>' );
  87547. * }
  87548. * }
  87549. * } );
  87550. * } );
  87551. */
  87552. "fnCreatedRow": null,
  87553. /**
  87554. * This function is called on every 'draw' event, and allows you to
  87555. * dynamically modify any aspect you want about the created DOM.
  87556. * @type function
  87557. * @param {object} settings DataTables settings object
  87558. *
  87559. * @dtopt Callbacks
  87560. * @name DataTable.defaults.drawCallback
  87561. *
  87562. * @example
  87563. * $(document).ready( function() {
  87564. * $('#example').dataTable( {
  87565. * "drawCallback": function( settings ) {
  87566. * alert( 'DataTables has redrawn the table' );
  87567. * }
  87568. * } );
  87569. * } );
  87570. */
  87571. "fnDrawCallback": null,
  87572. /**
  87573. * Identical to fnHeaderCallback() but for the table footer this function
  87574. * allows you to modify the table footer on every 'draw' event.
  87575. * @type function
  87576. * @param {node} foot "TR" element for the footer
  87577. * @param {array} data Full table data (as derived from the original HTML)
  87578. * @param {int} start Index for the current display starting point in the
  87579. * display array
  87580. * @param {int} end Index for the current display ending point in the
  87581. * display array
  87582. * @param {array int} display Index array to translate the visual position
  87583. * to the full data array
  87584. *
  87585. * @dtopt Callbacks
  87586. * @name DataTable.defaults.footerCallback
  87587. *
  87588. * @example
  87589. * $(document).ready( function() {
  87590. * $('#example').dataTable( {
  87591. * "footerCallback": function( tfoot, data, start, end, display ) {
  87592. * tfoot.getElementsByTagName('th')[0].innerHTML = "Starting index is "+start;
  87593. * }
  87594. * } );
  87595. * } )
  87596. */
  87597. "fnFooterCallback": null,
  87598. /**
  87599. * When rendering large numbers in the information element for the table
  87600. * (i.e. "Showing 1 to 10 of 57 entries") DataTables will render large numbers
  87601. * to have a comma separator for the 'thousands' units (e.g. 1 million is
  87602. * rendered as "1,000,000") to help readability for the end user. This
  87603. * function will override the default method DataTables uses.
  87604. * @type function
  87605. * @member
  87606. * @param {int} toFormat number to be formatted
  87607. * @returns {string} formatted string for DataTables to show the number
  87608. *
  87609. * @dtopt Callbacks
  87610. * @name DataTable.defaults.formatNumber
  87611. *
  87612. * @example
  87613. * // Format a number using a single quote for the separator (note that
  87614. * // this can also be done with the language.thousands option)
  87615. * $(document).ready( function() {
  87616. * $('#example').dataTable( {
  87617. * "formatNumber": function ( toFormat ) {
  87618. * return toFormat.toString().replace(
  87619. * /\B(?=(\d{3})+(?!\d))/g, "'"
  87620. * );
  87621. * };
  87622. * } );
  87623. * } );
  87624. */
  87625. "fnFormatNumber": function ( toFormat ) {
  87626. return toFormat.toString().replace(
  87627. /\B(?=(\d{3})+(?!\d))/g,
  87628. this.oLanguage.sThousands
  87629. );
  87630. },
  87631. /**
  87632. * This function is called on every 'draw' event, and allows you to
  87633. * dynamically modify the header row. This can be used to calculate and
  87634. * display useful information about the table.
  87635. * @type function
  87636. * @param {node} head "TR" element for the header
  87637. * @param {array} data Full table data (as derived from the original HTML)
  87638. * @param {int} start Index for the current display starting point in the
  87639. * display array
  87640. * @param {int} end Index for the current display ending point in the
  87641. * display array
  87642. * @param {array int} display Index array to translate the visual position
  87643. * to the full data array
  87644. *
  87645. * @dtopt Callbacks
  87646. * @name DataTable.defaults.headerCallback
  87647. *
  87648. * @example
  87649. * $(document).ready( function() {
  87650. * $('#example').dataTable( {
  87651. * "fheaderCallback": function( head, data, start, end, display ) {
  87652. * head.getElementsByTagName('th')[0].innerHTML = "Displaying "+(end-start)+" records";
  87653. * }
  87654. * } );
  87655. * } )
  87656. */
  87657. "fnHeaderCallback": null,
  87658. /**
  87659. * The information element can be used to convey information about the current
  87660. * state of the table. Although the internationalisation options presented by
  87661. * DataTables are quite capable of dealing with most customisations, there may
  87662. * be times where you wish to customise the string further. This callback
  87663. * allows you to do exactly that.
  87664. * @type function
  87665. * @param {object} oSettings DataTables settings object
  87666. * @param {int} start Starting position in data for the draw
  87667. * @param {int} end End position in data for the draw
  87668. * @param {int} max Total number of rows in the table (regardless of
  87669. * filtering)
  87670. * @param {int} total Total number of rows in the data set, after filtering
  87671. * @param {string} pre The string that DataTables has formatted using it's
  87672. * own rules
  87673. * @returns {string} The string to be displayed in the information element.
  87674. *
  87675. * @dtopt Callbacks
  87676. * @name DataTable.defaults.infoCallback
  87677. *
  87678. * @example
  87679. * $('#example').dataTable( {
  87680. * "infoCallback": function( settings, start, end, max, total, pre ) {
  87681. * return start +" to "+ end;
  87682. * }
  87683. * } );
  87684. */
  87685. "fnInfoCallback": null,
  87686. /**
  87687. * Called when the table has been initialised. Normally DataTables will
  87688. * initialise sequentially and there will be no need for this function,
  87689. * however, this does not hold true when using external language information
  87690. * since that is obtained using an async XHR call.
  87691. * @type function
  87692. * @param {object} settings DataTables settings object
  87693. * @param {object} json The JSON object request from the server - only
  87694. * present if client-side Ajax sourced data is used
  87695. *
  87696. * @dtopt Callbacks
  87697. * @name DataTable.defaults.initComplete
  87698. *
  87699. * @example
  87700. * $(document).ready( function() {
  87701. * $('#example').dataTable( {
  87702. * "initComplete": function(settings, json) {
  87703. * alert( 'DataTables has finished its initialisation.' );
  87704. * }
  87705. * } );
  87706. * } )
  87707. */
  87708. "fnInitComplete": null,
  87709. /**
  87710. * Called at the very start of each table draw and can be used to cancel the
  87711. * draw by returning false, any other return (including undefined) results in
  87712. * the full draw occurring).
  87713. * @type function
  87714. * @param {object} settings DataTables settings object
  87715. * @returns {boolean} False will cancel the draw, anything else (including no
  87716. * return) will allow it to complete.
  87717. *
  87718. * @dtopt Callbacks
  87719. * @name DataTable.defaults.preDrawCallback
  87720. *
  87721. * @example
  87722. * $(document).ready( function() {
  87723. * $('#example').dataTable( {
  87724. * "preDrawCallback": function( settings ) {
  87725. * if ( $('#test').val() == 1 ) {
  87726. * return false;
  87727. * }
  87728. * }
  87729. * } );
  87730. * } );
  87731. */
  87732. "fnPreDrawCallback": null,
  87733. /**
  87734. * This function allows you to 'post process' each row after it have been
  87735. * generated for each table draw, but before it is rendered on screen. This
  87736. * function might be used for setting the row class name etc.
  87737. * @type function
  87738. * @param {node} row "TR" element for the current row
  87739. * @param {array} data Raw data array for this row
  87740. * @param {int} displayIndex The display index for the current table draw
  87741. * @param {int} displayIndexFull The index of the data in the full list of
  87742. * rows (after filtering)
  87743. *
  87744. * @dtopt Callbacks
  87745. * @name DataTable.defaults.rowCallback
  87746. *
  87747. * @example
  87748. * $(document).ready( function() {
  87749. * $('#example').dataTable( {
  87750. * "rowCallback": function( row, data, displayIndex, displayIndexFull ) {
  87751. * // Bold the grade for all 'A' grade browsers
  87752. * if ( data[4] == "A" ) {
  87753. * $('td:eq(4)', row).html( '<b>A</b>' );
  87754. * }
  87755. * }
  87756. * } );
  87757. * } );
  87758. */
  87759. "fnRowCallback": null,
  87760. /**
  87761. * __Deprecated__ The functionality provided by this parameter has now been
  87762. * superseded by that provided through `ajax`, which should be used instead.
  87763. *
  87764. * This parameter allows you to override the default function which obtains
  87765. * the data from the server so something more suitable for your application.
  87766. * For example you could use POST data, or pull information from a Gears or
  87767. * AIR database.
  87768. * @type function
  87769. * @member
  87770. * @param {string} source HTTP source to obtain the data from (`ajax`)
  87771. * @param {array} data A key/value pair object containing the data to send
  87772. * to the server
  87773. * @param {function} callback to be called on completion of the data get
  87774. * process that will draw the data on the page.
  87775. * @param {object} settings DataTables settings object
  87776. *
  87777. * @dtopt Callbacks
  87778. * @dtopt Server-side
  87779. * @name DataTable.defaults.serverData
  87780. *
  87781. * @deprecated 1.10. Please use `ajax` for this functionality now.
  87782. */
  87783. "fnServerData": null,
  87784. /**
  87785. * __Deprecated__ The functionality provided by this parameter has now been
  87786. * superseded by that provided through `ajax`, which should be used instead.
  87787. *
  87788. * It is often useful to send extra data to the server when making an Ajax
  87789. * request - for example custom filtering information, and this callback
  87790. * function makes it trivial to send extra information to the server. The
  87791. * passed in parameter is the data set that has been constructed by
  87792. * DataTables, and you can add to this or modify it as you require.
  87793. * @type function
  87794. * @param {array} data Data array (array of objects which are name/value
  87795. * pairs) that has been constructed by DataTables and will be sent to the
  87796. * server. In the case of Ajax sourced data with server-side processing
  87797. * this will be an empty array, for server-side processing there will be a
  87798. * significant number of parameters!
  87799. * @returns {undefined} Ensure that you modify the data array passed in,
  87800. * as this is passed by reference.
  87801. *
  87802. * @dtopt Callbacks
  87803. * @dtopt Server-side
  87804. * @name DataTable.defaults.serverParams
  87805. *
  87806. * @deprecated 1.10. Please use `ajax` for this functionality now.
  87807. */
  87808. "fnServerParams": null,
  87809. /**
  87810. * Load the table state. With this function you can define from where, and how, the
  87811. * state of a table is loaded. By default DataTables will load from `localStorage`
  87812. * but you might wish to use a server-side database or cookies.
  87813. * @type function
  87814. * @member
  87815. * @param {object} settings DataTables settings object
  87816. * @return {object} The DataTables state object to be loaded
  87817. *
  87818. * @dtopt Callbacks
  87819. * @name DataTable.defaults.stateLoadCallback
  87820. *
  87821. * @example
  87822. * $(document).ready( function() {
  87823. * $('#example').dataTable( {
  87824. * "stateSave": true,
  87825. * "stateLoadCallback": function (settings) {
  87826. * var o;
  87827. *
  87828. * // Send an Ajax request to the server to get the data. Note that
  87829. * // this is a synchronous request.
  87830. * $.ajax( {
  87831. * "url": "/state_load",
  87832. * "async": false,
  87833. * "dataType": "json",
  87834. * "success": function (json) {
  87835. * o = json;
  87836. * }
  87837. * } );
  87838. *
  87839. * return o;
  87840. * }
  87841. * } );
  87842. * } );
  87843. */
  87844. "fnStateLoadCallback": function ( settings ) {
  87845. try {
  87846. return JSON.parse(
  87847. (settings.iStateDuration === -1 ? sessionStorage : localStorage).getItem(
  87848. 'DataTables_'+settings.sInstance+'_'+location.pathname
  87849. )
  87850. );
  87851. } catch (e) {}
  87852. },
  87853. /**
  87854. * Callback which allows modification of the saved state prior to loading that state.
  87855. * This callback is called when the table is loading state from the stored data, but
  87856. * prior to the settings object being modified by the saved state. Note that for
  87857. * plug-in authors, you should use the `stateLoadParams` event to load parameters for
  87858. * a plug-in.
  87859. * @type function
  87860. * @param {object} settings DataTables settings object
  87861. * @param {object} data The state object that is to be loaded
  87862. *
  87863. * @dtopt Callbacks
  87864. * @name DataTable.defaults.stateLoadParams
  87865. *
  87866. * @example
  87867. * // Remove a saved filter, so filtering is never loaded
  87868. * $(document).ready( function() {
  87869. * $('#example').dataTable( {
  87870. * "stateSave": true,
  87871. * "stateLoadParams": function (settings, data) {
  87872. * data.oSearch.sSearch = "";
  87873. * }
  87874. * } );
  87875. * } );
  87876. *
  87877. * @example
  87878. * // Disallow state loading by returning false
  87879. * $(document).ready( function() {
  87880. * $('#example').dataTable( {
  87881. * "stateSave": true,
  87882. * "stateLoadParams": function (settings, data) {
  87883. * return false;
  87884. * }
  87885. * } );
  87886. * } );
  87887. */
  87888. "fnStateLoadParams": null,
  87889. /**
  87890. * Callback that is called when the state has been loaded from the state saving method
  87891. * and the DataTables settings object has been modified as a result of the loaded state.
  87892. * @type function
  87893. * @param {object} settings DataTables settings object
  87894. * @param {object} data The state object that was loaded
  87895. *
  87896. * @dtopt Callbacks
  87897. * @name DataTable.defaults.stateLoaded
  87898. *
  87899. * @example
  87900. * // Show an alert with the filtering value that was saved
  87901. * $(document).ready( function() {
  87902. * $('#example').dataTable( {
  87903. * "stateSave": true,
  87904. * "stateLoaded": function (settings, data) {
  87905. * alert( 'Saved filter was: '+data.oSearch.sSearch );
  87906. * }
  87907. * } );
  87908. * } );
  87909. */
  87910. "fnStateLoaded": null,
  87911. /**
  87912. * Save the table state. This function allows you to define where and how the state
  87913. * information for the table is stored By default DataTables will use `localStorage`
  87914. * but you might wish to use a server-side database or cookies.
  87915. * @type function
  87916. * @member
  87917. * @param {object} settings DataTables settings object
  87918. * @param {object} data The state object to be saved
  87919. *
  87920. * @dtopt Callbacks
  87921. * @name DataTable.defaults.stateSaveCallback
  87922. *
  87923. * @example
  87924. * $(document).ready( function() {
  87925. * $('#example').dataTable( {
  87926. * "stateSave": true,
  87927. * "stateSaveCallback": function (settings, data) {
  87928. * // Send an Ajax request to the server with the state object
  87929. * $.ajax( {
  87930. * "url": "/state_save",
  87931. * "data": data,
  87932. * "dataType": "json",
  87933. * "method": "POST"
  87934. * "success": function () {}
  87935. * } );
  87936. * }
  87937. * } );
  87938. * } );
  87939. */
  87940. "fnStateSaveCallback": function ( settings, data ) {
  87941. try {
  87942. (settings.iStateDuration === -1 ? sessionStorage : localStorage).setItem(
  87943. 'DataTables_'+settings.sInstance+'_'+location.pathname,
  87944. JSON.stringify( data )
  87945. );
  87946. } catch (e) {}
  87947. },
  87948. /**
  87949. * Callback which allows modification of the state to be saved. Called when the table
  87950. * has changed state a new state save is required. This method allows modification of
  87951. * the state saving object prior to actually doing the save, including addition or
  87952. * other state properties or modification. Note that for plug-in authors, you should
  87953. * use the `stateSaveParams` event to save parameters for a plug-in.
  87954. * @type function
  87955. * @param {object} settings DataTables settings object
  87956. * @param {object} data The state object to be saved
  87957. *
  87958. * @dtopt Callbacks
  87959. * @name DataTable.defaults.stateSaveParams
  87960. *
  87961. * @example
  87962. * // Remove a saved filter, so filtering is never saved
  87963. * $(document).ready( function() {
  87964. * $('#example').dataTable( {
  87965. * "stateSave": true,
  87966. * "stateSaveParams": function (settings, data) {
  87967. * data.oSearch.sSearch = "";
  87968. * }
  87969. * } );
  87970. * } );
  87971. */
  87972. "fnStateSaveParams": null,
  87973. /**
  87974. * Duration for which the saved state information is considered valid. After this period
  87975. * has elapsed the state will be returned to the default.
  87976. * Value is given in seconds.
  87977. * @type int
  87978. * @default 7200 <i>(2 hours)</i>
  87979. *
  87980. * @dtopt Options
  87981. * @name DataTable.defaults.stateDuration
  87982. *
  87983. * @example
  87984. * $(document).ready( function() {
  87985. * $('#example').dataTable( {
  87986. * "stateDuration": 60*60*24; // 1 day
  87987. * } );
  87988. * } )
  87989. */
  87990. "iStateDuration": 7200,
  87991. /**
  87992. * When enabled DataTables will not make a request to the server for the first
  87993. * page draw - rather it will use the data already on the page (no sorting etc
  87994. * will be applied to it), thus saving on an XHR at load time. `deferLoading`
  87995. * is used to indicate that deferred loading is required, but it is also used
  87996. * to tell DataTables how many records there are in the full table (allowing
  87997. * the information element and pagination to be displayed correctly). In the case
  87998. * where a filtering is applied to the table on initial load, this can be
  87999. * indicated by giving the parameter as an array, where the first element is
  88000. * the number of records available after filtering and the second element is the
  88001. * number of records without filtering (allowing the table information element
  88002. * to be shown correctly).
  88003. * @type int | array
  88004. * @default null
  88005. *
  88006. * @dtopt Options
  88007. * @name DataTable.defaults.deferLoading
  88008. *
  88009. * @example
  88010. * // 57 records available in the table, no filtering applied
  88011. * $(document).ready( function() {
  88012. * $('#example').dataTable( {
  88013. * "serverSide": true,
  88014. * "ajax": "scripts/server_processing.php",
  88015. * "deferLoading": 57
  88016. * } );
  88017. * } );
  88018. *
  88019. * @example
  88020. * // 57 records after filtering, 100 without filtering (an initial filter applied)
  88021. * $(document).ready( function() {
  88022. * $('#example').dataTable( {
  88023. * "serverSide": true,
  88024. * "ajax": "scripts/server_processing.php",
  88025. * "deferLoading": [ 57, 100 ],
  88026. * "search": {
  88027. * "search": "my_filter"
  88028. * }
  88029. * } );
  88030. * } );
  88031. */
  88032. "iDeferLoading": null,
  88033. /**
  88034. * Number of rows to display on a single page when using pagination. If
  88035. * feature enabled (`lengthChange`) then the end user will be able to override
  88036. * this to a custom setting using a pop-up menu.
  88037. * @type int
  88038. * @default 10
  88039. *
  88040. * @dtopt Options
  88041. * @name DataTable.defaults.pageLength
  88042. *
  88043. * @example
  88044. * $(document).ready( function() {
  88045. * $('#example').dataTable( {
  88046. * "pageLength": 50
  88047. * } );
  88048. * } )
  88049. */
  88050. "iDisplayLength": 10,
  88051. /**
  88052. * Define the starting point for data display when using DataTables with
  88053. * pagination. Note that this parameter is the number of records, rather than
  88054. * the page number, so if you have 10 records per page and want to start on
  88055. * the third page, it should be "20".
  88056. * @type int
  88057. * @default 0
  88058. *
  88059. * @dtopt Options
  88060. * @name DataTable.defaults.displayStart
  88061. *
  88062. * @example
  88063. * $(document).ready( function() {
  88064. * $('#example').dataTable( {
  88065. * "displayStart": 20
  88066. * } );
  88067. * } )
  88068. */
  88069. "iDisplayStart": 0,
  88070. /**
  88071. * By default DataTables allows keyboard navigation of the table (sorting, paging,
  88072. * and filtering) by adding a `tabindex` attribute to the required elements. This
  88073. * allows you to tab through the controls and press the enter key to activate them.
  88074. * The tabindex is default 0, meaning that the tab follows the flow of the document.
  88075. * You can overrule this using this parameter if you wish. Use a value of -1 to
  88076. * disable built-in keyboard navigation.
  88077. * @type int
  88078. * @default 0
  88079. *
  88080. * @dtopt Options
  88081. * @name DataTable.defaults.tabIndex
  88082. *
  88083. * @example
  88084. * $(document).ready( function() {
  88085. * $('#example').dataTable( {
  88086. * "tabIndex": 1
  88087. * } );
  88088. * } );
  88089. */
  88090. "iTabIndex": 0,
  88091. /**
  88092. * Classes that DataTables assigns to the various components and features
  88093. * that it adds to the HTML table. This allows classes to be configured
  88094. * during initialisation in addition to through the static
  88095. * {@link DataTable.ext.oStdClasses} object).
  88096. * @namespace
  88097. * @name DataTable.defaults.classes
  88098. */
  88099. "oClasses": {},
  88100. /**
  88101. * All strings that DataTables uses in the user interface that it creates
  88102. * are defined in this object, allowing you to modified them individually or
  88103. * completely replace them all as required.
  88104. * @namespace
  88105. * @name DataTable.defaults.language
  88106. */
  88107. "oLanguage": {
  88108. /**
  88109. * Strings that are used for WAI-ARIA labels and controls only (these are not
  88110. * actually visible on the page, but will be read by screenreaders, and thus
  88111. * must be internationalised as well).
  88112. * @namespace
  88113. * @name DataTable.defaults.language.aria
  88114. */
  88115. "oAria": {
  88116. /**
  88117. * ARIA label that is added to the table headers when the column may be
  88118. * sorted ascending by activing the column (click or return when focused).
  88119. * Note that the column header is prefixed to this string.
  88120. * @type string
  88121. * @default : activate to sort column ascending
  88122. *
  88123. * @dtopt Language
  88124. * @name DataTable.defaults.language.aria.sortAscending
  88125. *
  88126. * @example
  88127. * $(document).ready( function() {
  88128. * $('#example').dataTable( {
  88129. * "language": {
  88130. * "aria": {
  88131. * "sortAscending": " - click/return to sort ascending"
  88132. * }
  88133. * }
  88134. * } );
  88135. * } );
  88136. */
  88137. "sSortAscending": ": activate to sort column ascending",
  88138. /**
  88139. * ARIA label that is added to the table headers when the column may be
  88140. * sorted descending by activing the column (click or return when focused).
  88141. * Note that the column header is prefixed to this string.
  88142. * @type string
  88143. * @default : activate to sort column ascending
  88144. *
  88145. * @dtopt Language
  88146. * @name DataTable.defaults.language.aria.sortDescending
  88147. *
  88148. * @example
  88149. * $(document).ready( function() {
  88150. * $('#example').dataTable( {
  88151. * "language": {
  88152. * "aria": {
  88153. * "sortDescending": " - click/return to sort descending"
  88154. * }
  88155. * }
  88156. * } );
  88157. * } );
  88158. */
  88159. "sSortDescending": ": activate to sort column descending"
  88160. },
  88161. /**
  88162. * Pagination string used by DataTables for the built-in pagination
  88163. * control types.
  88164. * @namespace
  88165. * @name DataTable.defaults.language.paginate
  88166. */
  88167. "oPaginate": {
  88168. /**
  88169. * Text to use when using the 'full_numbers' type of pagination for the
  88170. * button to take the user to the first page.
  88171. * @type string
  88172. * @default First
  88173. *
  88174. * @dtopt Language
  88175. * @name DataTable.defaults.language.paginate.first
  88176. *
  88177. * @example
  88178. * $(document).ready( function() {
  88179. * $('#example').dataTable( {
  88180. * "language": {
  88181. * "paginate": {
  88182. * "first": "First page"
  88183. * }
  88184. * }
  88185. * } );
  88186. * } );
  88187. */
  88188. "sFirst": "First",
  88189. /**
  88190. * Text to use when using the 'full_numbers' type of pagination for the
  88191. * button to take the user to the last page.
  88192. * @type string
  88193. * @default Last
  88194. *
  88195. * @dtopt Language
  88196. * @name DataTable.defaults.language.paginate.last
  88197. *
  88198. * @example
  88199. * $(document).ready( function() {
  88200. * $('#example').dataTable( {
  88201. * "language": {
  88202. * "paginate": {
  88203. * "last": "Last page"
  88204. * }
  88205. * }
  88206. * } );
  88207. * } );
  88208. */
  88209. "sLast": "Last",
  88210. /**
  88211. * Text to use for the 'next' pagination button (to take the user to the
  88212. * next page).
  88213. * @type string
  88214. * @default Next
  88215. *
  88216. * @dtopt Language
  88217. * @name DataTable.defaults.language.paginate.next
  88218. *
  88219. * @example
  88220. * $(document).ready( function() {
  88221. * $('#example').dataTable( {
  88222. * "language": {
  88223. * "paginate": {
  88224. * "next": "Next page"
  88225. * }
  88226. * }
  88227. * } );
  88228. * } );
  88229. */
  88230. "sNext": "Next",
  88231. /**
  88232. * Text to use for the 'previous' pagination button (to take the user to
  88233. * the previous page).
  88234. * @type string
  88235. * @default Previous
  88236. *
  88237. * @dtopt Language
  88238. * @name DataTable.defaults.language.paginate.previous
  88239. *
  88240. * @example
  88241. * $(document).ready( function() {
  88242. * $('#example').dataTable( {
  88243. * "language": {
  88244. * "paginate": {
  88245. * "previous": "Previous page"
  88246. * }
  88247. * }
  88248. * } );
  88249. * } );
  88250. */
  88251. "sPrevious": "Previous"
  88252. },
  88253. /**
  88254. * This string is shown in preference to `zeroRecords` when the table is
  88255. * empty of data (regardless of filtering). Note that this is an optional
  88256. * parameter - if it is not given, the value of `zeroRecords` will be used
  88257. * instead (either the default or given value).
  88258. * @type string
  88259. * @default No data available in table
  88260. *
  88261. * @dtopt Language
  88262. * @name DataTable.defaults.language.emptyTable
  88263. *
  88264. * @example
  88265. * $(document).ready( function() {
  88266. * $('#example').dataTable( {
  88267. * "language": {
  88268. * "emptyTable": "No data available in table"
  88269. * }
  88270. * } );
  88271. * } );
  88272. */
  88273. "sEmptyTable": "No data available in table",
  88274. /**
  88275. * This string gives information to the end user about the information
  88276. * that is current on display on the page. The following tokens can be
  88277. * used in the string and will be dynamically replaced as the table
  88278. * display updates. This tokens can be placed anywhere in the string, or
  88279. * removed as needed by the language requires:
  88280. *
  88281. * * `\_START\_` - Display index of the first record on the current page
  88282. * * `\_END\_` - Display index of the last record on the current page
  88283. * * `\_TOTAL\_` - Number of records in the table after filtering
  88284. * * `\_MAX\_` - Number of records in the table without filtering
  88285. * * `\_PAGE\_` - Current page number
  88286. * * `\_PAGES\_` - Total number of pages of data in the table
  88287. *
  88288. * @type string
  88289. * @default Showing _START_ to _END_ of _TOTAL_ entries
  88290. *
  88291. * @dtopt Language
  88292. * @name DataTable.defaults.language.info
  88293. *
  88294. * @example
  88295. * $(document).ready( function() {
  88296. * $('#example').dataTable( {
  88297. * "language": {
  88298. * "info": "Showing page _PAGE_ of _PAGES_"
  88299. * }
  88300. * } );
  88301. * } );
  88302. */
  88303. "sInfo": "Showing _START_ to _END_ of _TOTAL_ entries",
  88304. /**
  88305. * Display information string for when the table is empty. Typically the
  88306. * format of this string should match `info`.
  88307. * @type string
  88308. * @default Showing 0 to 0 of 0 entries
  88309. *
  88310. * @dtopt Language
  88311. * @name DataTable.defaults.language.infoEmpty
  88312. *
  88313. * @example
  88314. * $(document).ready( function() {
  88315. * $('#example').dataTable( {
  88316. * "language": {
  88317. * "infoEmpty": "No entries to show"
  88318. * }
  88319. * } );
  88320. * } );
  88321. */
  88322. "sInfoEmpty": "Showing 0 to 0 of 0 entries",
  88323. /**
  88324. * When a user filters the information in a table, this string is appended
  88325. * to the information (`info`) to give an idea of how strong the filtering
  88326. * is. The variable _MAX_ is dynamically updated.
  88327. * @type string
  88328. * @default (filtered from _MAX_ total entries)
  88329. *
  88330. * @dtopt Language
  88331. * @name DataTable.defaults.language.infoFiltered
  88332. *
  88333. * @example
  88334. * $(document).ready( function() {
  88335. * $('#example').dataTable( {
  88336. * "language": {
  88337. * "infoFiltered": " - filtering from _MAX_ records"
  88338. * }
  88339. * } );
  88340. * } );
  88341. */
  88342. "sInfoFiltered": "(filtered from _MAX_ total entries)",
  88343. /**
  88344. * If can be useful to append extra information to the info string at times,
  88345. * and this variable does exactly that. This information will be appended to
  88346. * the `info` (`infoEmpty` and `infoFiltered` in whatever combination they are
  88347. * being used) at all times.
  88348. * @type string
  88349. * @default <i>Empty string</i>
  88350. *
  88351. * @dtopt Language
  88352. * @name DataTable.defaults.language.infoPostFix
  88353. *
  88354. * @example
  88355. * $(document).ready( function() {
  88356. * $('#example').dataTable( {
  88357. * "language": {
  88358. * "infoPostFix": "All records shown are derived from real information."
  88359. * }
  88360. * } );
  88361. * } );
  88362. */
  88363. "sInfoPostFix": "",
  88364. /**
  88365. * This decimal place operator is a little different from the other
  88366. * language options since DataTables doesn't output floating point
  88367. * numbers, so it won't ever use this for display of a number. Rather,
  88368. * what this parameter does is modify the sort methods of the table so
  88369. * that numbers which are in a format which has a character other than
  88370. * a period (`.`) as a decimal place will be sorted numerically.
  88371. *
  88372. * Note that numbers with different decimal places cannot be shown in
  88373. * the same table and still be sortable, the table must be consistent.
  88374. * However, multiple different tables on the page can use different
  88375. * decimal place characters.
  88376. * @type string
  88377. * @default
  88378. *
  88379. * @dtopt Language
  88380. * @name DataTable.defaults.language.decimal
  88381. *
  88382. * @example
  88383. * $(document).ready( function() {
  88384. * $('#example').dataTable( {
  88385. * "language": {
  88386. * "decimal": ","
  88387. * "thousands": "."
  88388. * }
  88389. * } );
  88390. * } );
  88391. */
  88392. "sDecimal": "",
  88393. /**
  88394. * DataTables has a build in number formatter (`formatNumber`) which is
  88395. * used to format large numbers that are used in the table information.
  88396. * By default a comma is used, but this can be trivially changed to any
  88397. * character you wish with this parameter.
  88398. * @type string
  88399. * @default ,
  88400. *
  88401. * @dtopt Language
  88402. * @name DataTable.defaults.language.thousands
  88403. *
  88404. * @example
  88405. * $(document).ready( function() {
  88406. * $('#example').dataTable( {
  88407. * "language": {
  88408. * "thousands": "'"
  88409. * }
  88410. * } );
  88411. * } );
  88412. */
  88413. "sThousands": ",",
  88414. /**
  88415. * Detail the action that will be taken when the drop down menu for the
  88416. * pagination length option is changed. The '_MENU_' variable is replaced
  88417. * with a default select list of 10, 25, 50 and 100, and can be replaced
  88418. * with a custom select box if required.
  88419. * @type string
  88420. * @default Show _MENU_ entries
  88421. *
  88422. * @dtopt Language
  88423. * @name DataTable.defaults.language.lengthMenu
  88424. *
  88425. * @example
  88426. * // Language change only
  88427. * $(document).ready( function() {
  88428. * $('#example').dataTable( {
  88429. * "language": {
  88430. * "lengthMenu": "Display _MENU_ records"
  88431. * }
  88432. * } );
  88433. * } );
  88434. *
  88435. * @example
  88436. * // Language and options change
  88437. * $(document).ready( function() {
  88438. * $('#example').dataTable( {
  88439. * "language": {
  88440. * "lengthMenu": 'Display <select>'+
  88441. * '<option value="10">10</option>'+
  88442. * '<option value="20">20</option>'+
  88443. * '<option value="30">30</option>'+
  88444. * '<option value="40">40</option>'+
  88445. * '<option value="50">50</option>'+
  88446. * '<option value="-1">All</option>'+
  88447. * '</select> records'
  88448. * }
  88449. * } );
  88450. * } );
  88451. */
  88452. "sLengthMenu": "Show _MENU_ entries",
  88453. /**
  88454. * When using Ajax sourced data and during the first draw when DataTables is
  88455. * gathering the data, this message is shown in an empty row in the table to
  88456. * indicate to the end user the the data is being loaded. Note that this
  88457. * parameter is not used when loading data by server-side processing, just
  88458. * Ajax sourced data with client-side processing.
  88459. * @type string
  88460. * @default Loading...
  88461. *
  88462. * @dtopt Language
  88463. * @name DataTable.defaults.language.loadingRecords
  88464. *
  88465. * @example
  88466. * $(document).ready( function() {
  88467. * $('#example').dataTable( {
  88468. * "language": {
  88469. * "loadingRecords": "Please wait - loading..."
  88470. * }
  88471. * } );
  88472. * } );
  88473. */
  88474. "sLoadingRecords": "Loading...",
  88475. /**
  88476. * Text which is displayed when the table is processing a user action
  88477. * (usually a sort command or similar).
  88478. * @type string
  88479. * @default Processing...
  88480. *
  88481. * @dtopt Language
  88482. * @name DataTable.defaults.language.processing
  88483. *
  88484. * @example
  88485. * $(document).ready( function() {
  88486. * $('#example').dataTable( {
  88487. * "language": {
  88488. * "processing": "DataTables is currently busy"
  88489. * }
  88490. * } );
  88491. * } );
  88492. */
  88493. "sProcessing": "Processing...",
  88494. /**
  88495. * Details the actions that will be taken when the user types into the
  88496. * filtering input text box. The variable "_INPUT_", if used in the string,
  88497. * is replaced with the HTML text box for the filtering input allowing
  88498. * control over where it appears in the string. If "_INPUT_" is not given
  88499. * then the input box is appended to the string automatically.
  88500. * @type string
  88501. * @default Search:
  88502. *
  88503. * @dtopt Language
  88504. * @name DataTable.defaults.language.search
  88505. *
  88506. * @example
  88507. * // Input text box will be appended at the end automatically
  88508. * $(document).ready( function() {
  88509. * $('#example').dataTable( {
  88510. * "language": {
  88511. * "search": "Filter records:"
  88512. * }
  88513. * } );
  88514. * } );
  88515. *
  88516. * @example
  88517. * // Specify where the filter should appear
  88518. * $(document).ready( function() {
  88519. * $('#example').dataTable( {
  88520. * "language": {
  88521. * "search": "Apply filter _INPUT_ to table"
  88522. * }
  88523. * } );
  88524. * } );
  88525. */
  88526. "sSearch": "Search:",
  88527. /**
  88528. * Assign a `placeholder` attribute to the search `input` element
  88529. * @type string
  88530. * @default
  88531. *
  88532. * @dtopt Language
  88533. * @name DataTable.defaults.language.searchPlaceholder
  88534. */
  88535. "sSearchPlaceholder": "",
  88536. /**
  88537. * All of the language information can be stored in a file on the
  88538. * server-side, which DataTables will look up if this parameter is passed.
  88539. * It must store the URL of the language file, which is in a JSON format,
  88540. * and the object has the same properties as the oLanguage object in the
  88541. * initialiser object (i.e. the above parameters). Please refer to one of
  88542. * the example language files to see how this works in action.
  88543. * @type string
  88544. * @default <i>Empty string - i.e. disabled</i>
  88545. *
  88546. * @dtopt Language
  88547. * @name DataTable.defaults.language.url
  88548. *
  88549. * @example
  88550. * $(document).ready( function() {
  88551. * $('#example').dataTable( {
  88552. * "language": {
  88553. * "url": "http://www.sprymedia.co.uk/dataTables/lang.txt"
  88554. * }
  88555. * } );
  88556. * } );
  88557. */
  88558. "sUrl": "",
  88559. /**
  88560. * Text shown inside the table records when the is no information to be
  88561. * displayed after filtering. `emptyTable` is shown when there is simply no
  88562. * information in the table at all (regardless of filtering).
  88563. * @type string
  88564. * @default No matching records found
  88565. *
  88566. * @dtopt Language
  88567. * @name DataTable.defaults.language.zeroRecords
  88568. *
  88569. * @example
  88570. * $(document).ready( function() {
  88571. * $('#example').dataTable( {
  88572. * "language": {
  88573. * "zeroRecords": "No records to display"
  88574. * }
  88575. * } );
  88576. * } );
  88577. */
  88578. "sZeroRecords": "No matching records found"
  88579. },
  88580. /**
  88581. * This parameter allows you to have define the global filtering state at
  88582. * initialisation time. As an object the `search` parameter must be
  88583. * defined, but all other parameters are optional. When `regex` is true,
  88584. * the search string will be treated as a regular expression, when false
  88585. * (default) it will be treated as a straight string. When `smart`
  88586. * DataTables will use it's smart filtering methods (to word match at
  88587. * any point in the data), when false this will not be done.
  88588. * @namespace
  88589. * @extends DataTable.models.oSearch
  88590. *
  88591. * @dtopt Options
  88592. * @name DataTable.defaults.search
  88593. *
  88594. * @example
  88595. * $(document).ready( function() {
  88596. * $('#example').dataTable( {
  88597. * "search": {"search": "Initial search"}
  88598. * } );
  88599. * } )
  88600. */
  88601. "oSearch": $.extend( {}, DataTable.models.oSearch ),
  88602. /**
  88603. * __Deprecated__ The functionality provided by this parameter has now been
  88604. * superseded by that provided through `ajax`, which should be used instead.
  88605. *
  88606. * By default DataTables will look for the property `data` (or `aaData` for
  88607. * compatibility with DataTables 1.9-) when obtaining data from an Ajax
  88608. * source or for server-side processing - this parameter allows that
  88609. * property to be changed. You can use Javascript dotted object notation to
  88610. * get a data source for multiple levels of nesting.
  88611. * @type string
  88612. * @default data
  88613. *
  88614. * @dtopt Options
  88615. * @dtopt Server-side
  88616. * @name DataTable.defaults.ajaxDataProp
  88617. *
  88618. * @deprecated 1.10. Please use `ajax` for this functionality now.
  88619. */
  88620. "sAjaxDataProp": "data",
  88621. /**
  88622. * __Deprecated__ The functionality provided by this parameter has now been
  88623. * superseded by that provided through `ajax`, which should be used instead.
  88624. *
  88625. * You can instruct DataTables to load data from an external
  88626. * source using this parameter (use aData if you want to pass data in you
  88627. * already have). Simply provide a url a JSON object can be obtained from.
  88628. * @type string
  88629. * @default null
  88630. *
  88631. * @dtopt Options
  88632. * @dtopt Server-side
  88633. * @name DataTable.defaults.ajaxSource
  88634. *
  88635. * @deprecated 1.10. Please use `ajax` for this functionality now.
  88636. */
  88637. "sAjaxSource": null,
  88638. /**
  88639. * This initialisation variable allows you to specify exactly where in the
  88640. * DOM you want DataTables to inject the various controls it adds to the page
  88641. * (for example you might want the pagination controls at the top of the
  88642. * table). DIV elements (with or without a custom class) can also be added to
  88643. * aid styling. The follow syntax is used:
  88644. * <ul>
  88645. * <li>The following options are allowed:
  88646. * <ul>
  88647. * <li>'l' - Length changing</li>
  88648. * <li>'f' - Filtering input</li>
  88649. * <li>'t' - The table!</li>
  88650. * <li>'i' - Information</li>
  88651. * <li>'p' - Pagination</li>
  88652. * <li>'r' - pRocessing</li>
  88653. * </ul>
  88654. * </li>
  88655. * <li>The following constants are allowed:
  88656. * <ul>
  88657. * <li>'H' - jQueryUI theme "header" classes ('fg-toolbar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix')</li>
  88658. * <li>'F' - jQueryUI theme "footer" classes ('fg-toolbar ui-widget-header ui-corner-bl ui-corner-br ui-helper-clearfix')</li>
  88659. * </ul>
  88660. * </li>
  88661. * <li>The following syntax is expected:
  88662. * <ul>
  88663. * <li>'&lt;' and '&gt;' - div elements</li>
  88664. * <li>'&lt;"class" and '&gt;' - div with a class</li>
  88665. * <li>'&lt;"#id" and '&gt;' - div with an ID</li>
  88666. * </ul>
  88667. * </li>
  88668. * <li>Examples:
  88669. * <ul>
  88670. * <li>'&lt;"wrapper"flipt&gt;'</li>
  88671. * <li>'&lt;lf&lt;t&gt;ip&gt;'</li>
  88672. * </ul>
  88673. * </li>
  88674. * </ul>
  88675. * @type string
  88676. * @default lfrtip <i>(when `jQueryUI` is false)</i> <b>or</b>
  88677. * <"H"lfr>t<"F"ip> <i>(when `jQueryUI` is true)</i>
  88678. *
  88679. * @dtopt Options
  88680. * @name DataTable.defaults.dom
  88681. *
  88682. * @example
  88683. * $(document).ready( function() {
  88684. * $('#example').dataTable( {
  88685. * "dom": '&lt;"top"i&gt;rt&lt;"bottom"flp&gt;&lt;"clear"&gt;'
  88686. * } );
  88687. * } );
  88688. */
  88689. "sDom": "lfrtip",
  88690. /**
  88691. * Search delay option. This will throttle full table searches that use the
  88692. * DataTables provided search input element (it does not effect calls to
  88693. * `dt-api search()`, providing a delay before the search is made.
  88694. * @type integer
  88695. * @default 0
  88696. *
  88697. * @dtopt Options
  88698. * @name DataTable.defaults.searchDelay
  88699. *
  88700. * @example
  88701. * $(document).ready( function() {
  88702. * $('#example').dataTable( {
  88703. * "searchDelay": 200
  88704. * } );
  88705. * } )
  88706. */
  88707. "searchDelay": null,
  88708. /**
  88709. * DataTables features four different built-in options for the buttons to
  88710. * display for pagination control:
  88711. *
  88712. * * `simple` - 'Previous' and 'Next' buttons only
  88713. * * 'simple_numbers` - 'Previous' and 'Next' buttons, plus page numbers
  88714. * * `full` - 'First', 'Previous', 'Next' and 'Last' buttons
  88715. * * `full_numbers` - 'First', 'Previous', 'Next' and 'Last' buttons, plus
  88716. * page numbers
  88717. *
  88718. * Further methods can be added using {@link DataTable.ext.oPagination}.
  88719. * @type string
  88720. * @default simple_numbers
  88721. *
  88722. * @dtopt Options
  88723. * @name DataTable.defaults.pagingType
  88724. *
  88725. * @example
  88726. * $(document).ready( function() {
  88727. * $('#example').dataTable( {
  88728. * "pagingType": "full_numbers"
  88729. * } );
  88730. * } )
  88731. */
  88732. "sPaginationType": "simple_numbers",
  88733. /**
  88734. * Enable horizontal scrolling. When a table is too wide to fit into a
  88735. * certain layout, or you have a large number of columns in the table, you
  88736. * can enable x-scrolling to show the table in a viewport, which can be
  88737. * scrolled. This property can be `true` which will allow the table to
  88738. * scroll horizontally when needed, or any CSS unit, or a number (in which
  88739. * case it will be treated as a pixel measurement). Setting as simply `true`
  88740. * is recommended.
  88741. * @type boolean|string
  88742. * @default <i>blank string - i.e. disabled</i>
  88743. *
  88744. * @dtopt Features
  88745. * @name DataTable.defaults.scrollX
  88746. *
  88747. * @example
  88748. * $(document).ready( function() {
  88749. * $('#example').dataTable( {
  88750. * "scrollX": true,
  88751. * "scrollCollapse": true
  88752. * } );
  88753. * } );
  88754. */
  88755. "sScrollX": "",
  88756. /**
  88757. * This property can be used to force a DataTable to use more width than it
  88758. * might otherwise do when x-scrolling is enabled. For example if you have a
  88759. * table which requires to be well spaced, this parameter is useful for
  88760. * "over-sizing" the table, and thus forcing scrolling. This property can by
  88761. * any CSS unit, or a number (in which case it will be treated as a pixel
  88762. * measurement).
  88763. * @type string
  88764. * @default <i>blank string - i.e. disabled</i>
  88765. *
  88766. * @dtopt Options
  88767. * @name DataTable.defaults.scrollXInner
  88768. *
  88769. * @example
  88770. * $(document).ready( function() {
  88771. * $('#example').dataTable( {
  88772. * "scrollX": "100%",
  88773. * "scrollXInner": "110%"
  88774. * } );
  88775. * } );
  88776. */
  88777. "sScrollXInner": "",
  88778. /**
  88779. * Enable vertical scrolling. Vertical scrolling will constrain the DataTable
  88780. * to the given height, and enable scrolling for any data which overflows the
  88781. * current viewport. This can be used as an alternative to paging to display
  88782. * a lot of data in a small area (although paging and scrolling can both be
  88783. * enabled at the same time). This property can be any CSS unit, or a number
  88784. * (in which case it will be treated as a pixel measurement).
  88785. * @type string
  88786. * @default <i>blank string - i.e. disabled</i>
  88787. *
  88788. * @dtopt Features
  88789. * @name DataTable.defaults.scrollY
  88790. *
  88791. * @example
  88792. * $(document).ready( function() {
  88793. * $('#example').dataTable( {
  88794. * "scrollY": "200px",
  88795. * "paginate": false
  88796. * } );
  88797. * } );
  88798. */
  88799. "sScrollY": "",
  88800. /**
  88801. * __Deprecated__ The functionality provided by this parameter has now been
  88802. * superseded by that provided through `ajax`, which should be used instead.
  88803. *
  88804. * Set the HTTP method that is used to make the Ajax call for server-side
  88805. * processing or Ajax sourced data.
  88806. * @type string
  88807. * @default GET
  88808. *
  88809. * @dtopt Options
  88810. * @dtopt Server-side
  88811. * @name DataTable.defaults.serverMethod
  88812. *
  88813. * @deprecated 1.10. Please use `ajax` for this functionality now.
  88814. */
  88815. "sServerMethod": "GET",
  88816. /**
  88817. * DataTables makes use of renderers when displaying HTML elements for
  88818. * a table. These renderers can be added or modified by plug-ins to
  88819. * generate suitable mark-up for a site. For example the Bootstrap
  88820. * integration plug-in for DataTables uses a paging button renderer to
  88821. * display pagination buttons in the mark-up required by Bootstrap.
  88822. *
  88823. * For further information about the renderers available see
  88824. * DataTable.ext.renderer
  88825. * @type string|object
  88826. * @default null
  88827. *
  88828. * @name DataTable.defaults.renderer
  88829. *
  88830. */
  88831. "renderer": null,
  88832. /**
  88833. * Set the data property name that DataTables should use to get a row's id
  88834. * to set as the `id` property in the node.
  88835. * @type string
  88836. * @default DT_RowId
  88837. *
  88838. * @name DataTable.defaults.rowId
  88839. */
  88840. "rowId": "DT_RowId"
  88841. };
  88842. _fnHungarianMap( DataTable.defaults );
  88843. /*
  88844. * Developer note - See note in model.defaults.js about the use of Hungarian
  88845. * notation and camel case.
  88846. */
  88847. /**
  88848. * Column options that can be given to DataTables at initialisation time.
  88849. * @namespace
  88850. */
  88851. DataTable.defaults.column = {
  88852. /**
  88853. * Define which column(s) an order will occur on for this column. This
  88854. * allows a column's ordering to take multiple columns into account when
  88855. * doing a sort or use the data from a different column. For example first
  88856. * name / last name columns make sense to do a multi-column sort over the
  88857. * two columns.
  88858. * @type array|int
  88859. * @default null <i>Takes the value of the column index automatically</i>
  88860. *
  88861. * @name DataTable.defaults.column.orderData
  88862. * @dtopt Columns
  88863. *
  88864. * @example
  88865. * // Using `columnDefs`
  88866. * $(document).ready( function() {
  88867. * $('#example').dataTable( {
  88868. * "columnDefs": [
  88869. * { "orderData": [ 0, 1 ], "targets": [ 0 ] },
  88870. * { "orderData": [ 1, 0 ], "targets": [ 1 ] },
  88871. * { "orderData": 2, "targets": [ 2 ] }
  88872. * ]
  88873. * } );
  88874. * } );
  88875. *
  88876. * @example
  88877. * // Using `columns`
  88878. * $(document).ready( function() {
  88879. * $('#example').dataTable( {
  88880. * "columns": [
  88881. * { "orderData": [ 0, 1 ] },
  88882. * { "orderData": [ 1, 0 ] },
  88883. * { "orderData": 2 },
  88884. * null,
  88885. * null
  88886. * ]
  88887. * } );
  88888. * } );
  88889. */
  88890. "aDataSort": null,
  88891. "iDataSort": -1,
  88892. /**
  88893. * You can control the default ordering direction, and even alter the
  88894. * behaviour of the sort handler (i.e. only allow ascending ordering etc)
  88895. * using this parameter.
  88896. * @type array
  88897. * @default [ 'asc', 'desc' ]
  88898. *
  88899. * @name DataTable.defaults.column.orderSequence
  88900. * @dtopt Columns
  88901. *
  88902. * @example
  88903. * // Using `columnDefs`
  88904. * $(document).ready( function() {
  88905. * $('#example').dataTable( {
  88906. * "columnDefs": [
  88907. * { "orderSequence": [ "asc" ], "targets": [ 1 ] },
  88908. * { "orderSequence": [ "desc", "asc", "asc" ], "targets": [ 2 ] },
  88909. * { "orderSequence": [ "desc" ], "targets": [ 3 ] }
  88910. * ]
  88911. * } );
  88912. * } );
  88913. *
  88914. * @example
  88915. * // Using `columns`
  88916. * $(document).ready( function() {
  88917. * $('#example').dataTable( {
  88918. * "columns": [
  88919. * null,
  88920. * { "orderSequence": [ "asc" ] },
  88921. * { "orderSequence": [ "desc", "asc", "asc" ] },
  88922. * { "orderSequence": [ "desc" ] },
  88923. * null
  88924. * ]
  88925. * } );
  88926. * } );
  88927. */
  88928. "asSorting": [ 'asc', 'desc' ],
  88929. /**
  88930. * Enable or disable filtering on the data in this column.
  88931. * @type boolean
  88932. * @default true
  88933. *
  88934. * @name DataTable.defaults.column.searchable
  88935. * @dtopt Columns
  88936. *
  88937. * @example
  88938. * // Using `columnDefs`
  88939. * $(document).ready( function() {
  88940. * $('#example').dataTable( {
  88941. * "columnDefs": [
  88942. * { "searchable": false, "targets": [ 0 ] }
  88943. * ] } );
  88944. * } );
  88945. *
  88946. * @example
  88947. * // Using `columns`
  88948. * $(document).ready( function() {
  88949. * $('#example').dataTable( {
  88950. * "columns": [
  88951. * { "searchable": false },
  88952. * null,
  88953. * null,
  88954. * null,
  88955. * null
  88956. * ] } );
  88957. * } );
  88958. */
  88959. "bSearchable": true,
  88960. /**
  88961. * Enable or disable ordering on this column.
  88962. * @type boolean
  88963. * @default true
  88964. *
  88965. * @name DataTable.defaults.column.orderable
  88966. * @dtopt Columns
  88967. *
  88968. * @example
  88969. * // Using `columnDefs`
  88970. * $(document).ready( function() {
  88971. * $('#example').dataTable( {
  88972. * "columnDefs": [
  88973. * { "orderable": false, "targets": [ 0 ] }
  88974. * ] } );
  88975. * } );
  88976. *
  88977. * @example
  88978. * // Using `columns`
  88979. * $(document).ready( function() {
  88980. * $('#example').dataTable( {
  88981. * "columns": [
  88982. * { "orderable": false },
  88983. * null,
  88984. * null,
  88985. * null,
  88986. * null
  88987. * ] } );
  88988. * } );
  88989. */
  88990. "bSortable": true,
  88991. /**
  88992. * Enable or disable the display of this column.
  88993. * @type boolean
  88994. * @default true
  88995. *
  88996. * @name DataTable.defaults.column.visible
  88997. * @dtopt Columns
  88998. *
  88999. * @example
  89000. * // Using `columnDefs`
  89001. * $(document).ready( function() {
  89002. * $('#example').dataTable( {
  89003. * "columnDefs": [
  89004. * { "visible": false, "targets": [ 0 ] }
  89005. * ] } );
  89006. * } );
  89007. *
  89008. * @example
  89009. * // Using `columns`
  89010. * $(document).ready( function() {
  89011. * $('#example').dataTable( {
  89012. * "columns": [
  89013. * { "visible": false },
  89014. * null,
  89015. * null,
  89016. * null,
  89017. * null
  89018. * ] } );
  89019. * } );
  89020. */
  89021. "bVisible": true,
  89022. /**
  89023. * Developer definable function that is called whenever a cell is created (Ajax source,
  89024. * etc) or processed for input (DOM source). This can be used as a compliment to mRender
  89025. * allowing you to modify the DOM element (add background colour for example) when the
  89026. * element is available.
  89027. * @type function
  89028. * @param {element} td The TD node that has been created
  89029. * @param {*} cellData The Data for the cell
  89030. * @param {array|object} rowData The data for the whole row
  89031. * @param {int} row The row index for the aoData data store
  89032. * @param {int} col The column index for aoColumns
  89033. *
  89034. * @name DataTable.defaults.column.createdCell
  89035. * @dtopt Columns
  89036. *
  89037. * @example
  89038. * $(document).ready( function() {
  89039. * $('#example').dataTable( {
  89040. * "columnDefs": [ {
  89041. * "targets": [3],
  89042. * "createdCell": function (td, cellData, rowData, row, col) {
  89043. * if ( cellData == "1.7" ) {
  89044. * $(td).css('color', 'blue')
  89045. * }
  89046. * }
  89047. * } ]
  89048. * });
  89049. * } );
  89050. */
  89051. "fnCreatedCell": null,
  89052. /**
  89053. * This parameter has been replaced by `data` in DataTables to ensure naming
  89054. * consistency. `dataProp` can still be used, as there is backwards
  89055. * compatibility in DataTables for this option, but it is strongly
  89056. * recommended that you use `data` in preference to `dataProp`.
  89057. * @name DataTable.defaults.column.dataProp
  89058. */
  89059. /**
  89060. * This property can be used to read data from any data source property,
  89061. * including deeply nested objects / properties. `data` can be given in a
  89062. * number of different ways which effect its behaviour:
  89063. *
  89064. * * `integer` - treated as an array index for the data source. This is the
  89065. * default that DataTables uses (incrementally increased for each column).
  89066. * * `string` - read an object property from the data source. There are
  89067. * three 'special' options that can be used in the string to alter how
  89068. * DataTables reads the data from the source object:
  89069. * * `.` - Dotted Javascript notation. Just as you use a `.` in
  89070. * Javascript to read from nested objects, so to can the options
  89071. * specified in `data`. For example: `browser.version` or
  89072. * `browser.name`. If your object parameter name contains a period, use
  89073. * `\\` to escape it - i.e. `first\\.name`.
  89074. * * `[]` - Array notation. DataTables can automatically combine data
  89075. * from and array source, joining the data with the characters provided
  89076. * between the two brackets. For example: `name[, ]` would provide a
  89077. * comma-space separated list from the source array. If no characters
  89078. * are provided between the brackets, the original array source is
  89079. * returned.
  89080. * * `()` - Function notation. Adding `()` to the end of a parameter will
  89081. * execute a function of the name given. For example: `browser()` for a
  89082. * simple function on the data source, `browser.version()` for a
  89083. * function in a nested property or even `browser().version` to get an
  89084. * object property if the function called returns an object. Note that
  89085. * function notation is recommended for use in `render` rather than
  89086. * `data` as it is much simpler to use as a renderer.
  89087. * * `null` - use the original data source for the row rather than plucking
  89088. * data directly from it. This action has effects on two other
  89089. * initialisation options:
  89090. * * `defaultContent` - When null is given as the `data` option and
  89091. * `defaultContent` is specified for the column, the value defined by
  89092. * `defaultContent` will be used for the cell.
  89093. * * `render` - When null is used for the `data` option and the `render`
  89094. * option is specified for the column, the whole data source for the
  89095. * row is used for the renderer.
  89096. * * `function` - the function given will be executed whenever DataTables
  89097. * needs to set or get the data for a cell in the column. The function
  89098. * takes three parameters:
  89099. * * Parameters:
  89100. * * `{array|object}` The data source for the row
  89101. * * `{string}` The type call data requested - this will be 'set' when
  89102. * setting data or 'filter', 'display', 'type', 'sort' or undefined
  89103. * when gathering data. Note that when `undefined` is given for the
  89104. * type DataTables expects to get the raw data for the object back<
  89105. * * `{*}` Data to set when the second parameter is 'set'.
  89106. * * Return:
  89107. * * The return value from the function is not required when 'set' is
  89108. * the type of call, but otherwise the return is what will be used
  89109. * for the data requested.
  89110. *
  89111. * Note that `data` is a getter and setter option. If you just require
  89112. * formatting of data for output, you will likely want to use `render` which
  89113. * is simply a getter and thus simpler to use.
  89114. *
  89115. * Note that prior to DataTables 1.9.2 `data` was called `mDataProp`. The
  89116. * name change reflects the flexibility of this property and is consistent
  89117. * with the naming of mRender. If 'mDataProp' is given, then it will still
  89118. * be used by DataTables, as it automatically maps the old name to the new
  89119. * if required.
  89120. *
  89121. * @type string|int|function|null
  89122. * @default null <i>Use automatically calculated column index</i>
  89123. *
  89124. * @name DataTable.defaults.column.data
  89125. * @dtopt Columns
  89126. *
  89127. * @example
  89128. * // Read table data from objects
  89129. * // JSON structure for each row:
  89130. * // {
  89131. * // "engine": {value},
  89132. * // "browser": {value},
  89133. * // "platform": {value},
  89134. * // "version": {value},
  89135. * // "grade": {value}
  89136. * // }
  89137. * $(document).ready( function() {
  89138. * $('#example').dataTable( {
  89139. * "ajaxSource": "sources/objects.txt",
  89140. * "columns": [
  89141. * { "data": "engine" },
  89142. * { "data": "browser" },
  89143. * { "data": "platform" },
  89144. * { "data": "version" },
  89145. * { "data": "grade" }
  89146. * ]
  89147. * } );
  89148. * } );
  89149. *
  89150. * @example
  89151. * // Read information from deeply nested objects
  89152. * // JSON structure for each row:
  89153. * // {
  89154. * // "engine": {value},
  89155. * // "browser": {value},
  89156. * // "platform": {
  89157. * // "inner": {value}
  89158. * // },
  89159. * // "details": [
  89160. * // {value}, {value}
  89161. * // ]
  89162. * // }
  89163. * $(document).ready( function() {
  89164. * $('#example').dataTable( {
  89165. * "ajaxSource": "sources/deep.txt",
  89166. * "columns": [
  89167. * { "data": "engine" },
  89168. * { "data": "browser" },
  89169. * { "data": "platform.inner" },
  89170. * { "data": "platform.details.0" },
  89171. * { "data": "platform.details.1" }
  89172. * ]
  89173. * } );
  89174. * } );
  89175. *
  89176. * @example
  89177. * // Using `data` as a function to provide different information for
  89178. * // sorting, filtering and display. In this case, currency (price)
  89179. * $(document).ready( function() {
  89180. * $('#example').dataTable( {
  89181. * "columnDefs": [ {
  89182. * "targets": [ 0 ],
  89183. * "data": function ( source, type, val ) {
  89184. * if (type === 'set') {
  89185. * source.price = val;
  89186. * // Store the computed dislay and filter values for efficiency
  89187. * source.price_display = val=="" ? "" : "$"+numberFormat(val);
  89188. * source.price_filter = val=="" ? "" : "$"+numberFormat(val)+" "+val;
  89189. * return;
  89190. * }
  89191. * else if (type === 'display') {
  89192. * return source.price_display;
  89193. * }
  89194. * else if (type === 'filter') {
  89195. * return source.price_filter;
  89196. * }
  89197. * // 'sort', 'type' and undefined all just use the integer
  89198. * return source.price;
  89199. * }
  89200. * } ]
  89201. * } );
  89202. * } );
  89203. *
  89204. * @example
  89205. * // Using default content
  89206. * $(document).ready( function() {
  89207. * $('#example').dataTable( {
  89208. * "columnDefs": [ {
  89209. * "targets": [ 0 ],
  89210. * "data": null,
  89211. * "defaultContent": "Click to edit"
  89212. * } ]
  89213. * } );
  89214. * } );
  89215. *
  89216. * @example
  89217. * // Using array notation - outputting a list from an array
  89218. * $(document).ready( function() {
  89219. * $('#example').dataTable( {
  89220. * "columnDefs": [ {
  89221. * "targets": [ 0 ],
  89222. * "data": "name[, ]"
  89223. * } ]
  89224. * } );
  89225. * } );
  89226. *
  89227. */
  89228. "mData": null,
  89229. /**
  89230. * This property is the rendering partner to `data` and it is suggested that
  89231. * when you want to manipulate data for display (including filtering,
  89232. * sorting etc) without altering the underlying data for the table, use this
  89233. * property. `render` can be considered to be the the read only companion to
  89234. * `data` which is read / write (then as such more complex). Like `data`
  89235. * this option can be given in a number of different ways to effect its
  89236. * behaviour:
  89237. *
  89238. * * `integer` - treated as an array index for the data source. This is the
  89239. * default that DataTables uses (incrementally increased for each column).
  89240. * * `string` - read an object property from the data source. There are
  89241. * three 'special' options that can be used in the string to alter how
  89242. * DataTables reads the data from the source object:
  89243. * * `.` - Dotted Javascript notation. Just as you use a `.` in
  89244. * Javascript to read from nested objects, so to can the options
  89245. * specified in `data`. For example: `browser.version` or
  89246. * `browser.name`. If your object parameter name contains a period, use
  89247. * `\\` to escape it - i.e. `first\\.name`.
  89248. * * `[]` - Array notation. DataTables can automatically combine data
  89249. * from and array source, joining the data with the characters provided
  89250. * between the two brackets. For example: `name[, ]` would provide a
  89251. * comma-space separated list from the source array. If no characters
  89252. * are provided between the brackets, the original array source is
  89253. * returned.
  89254. * * `()` - Function notation. Adding `()` to the end of a parameter will
  89255. * execute a function of the name given. For example: `browser()` for a
  89256. * simple function on the data source, `browser.version()` for a
  89257. * function in a nested property or even `browser().version` to get an
  89258. * object property if the function called returns an object.
  89259. * * `object` - use different data for the different data types requested by
  89260. * DataTables ('filter', 'display', 'type' or 'sort'). The property names
  89261. * of the object is the data type the property refers to and the value can
  89262. * defined using an integer, string or function using the same rules as
  89263. * `render` normally does. Note that an `_` option _must_ be specified.
  89264. * This is the default value to use if you haven't specified a value for
  89265. * the data type requested by DataTables.
  89266. * * `function` - the function given will be executed whenever DataTables
  89267. * needs to set or get the data for a cell in the column. The function
  89268. * takes three parameters:
  89269. * * Parameters:
  89270. * * {array|object} The data source for the row (based on `data`)
  89271. * * {string} The type call data requested - this will be 'filter',
  89272. * 'display', 'type' or 'sort'.
  89273. * * {array|object} The full data source for the row (not based on
  89274. * `data`)
  89275. * * Return:
  89276. * * The return value from the function is what will be used for the
  89277. * data requested.
  89278. *
  89279. * @type string|int|function|object|null
  89280. * @default null Use the data source value.
  89281. *
  89282. * @name DataTable.defaults.column.render
  89283. * @dtopt Columns
  89284. *
  89285. * @example
  89286. * // Create a comma separated list from an array of objects
  89287. * $(document).ready( function() {
  89288. * $('#example').dataTable( {
  89289. * "ajaxSource": "sources/deep.txt",
  89290. * "columns": [
  89291. * { "data": "engine" },
  89292. * { "data": "browser" },
  89293. * {
  89294. * "data": "platform",
  89295. * "render": "[, ].name"
  89296. * }
  89297. * ]
  89298. * } );
  89299. * } );
  89300. *
  89301. * @example
  89302. * // Execute a function to obtain data
  89303. * $(document).ready( function() {
  89304. * $('#example').dataTable( {
  89305. * "columnDefs": [ {
  89306. * "targets": [ 0 ],
  89307. * "data": null, // Use the full data source object for the renderer's source
  89308. * "render": "browserName()"
  89309. * } ]
  89310. * } );
  89311. * } );
  89312. *
  89313. * @example
  89314. * // As an object, extracting different data for the different types
  89315. * // This would be used with a data source such as:
  89316. * // { "phone": 5552368, "phone_filter": "5552368 555-2368", "phone_display": "555-2368" }
  89317. * // Here the `phone` integer is used for sorting and type detection, while `phone_filter`
  89318. * // (which has both forms) is used for filtering for if a user inputs either format, while
  89319. * // the formatted phone number is the one that is shown in the table.
  89320. * $(document).ready( function() {
  89321. * $('#example').dataTable( {
  89322. * "columnDefs": [ {
  89323. * "targets": [ 0 ],
  89324. * "data": null, // Use the full data source object for the renderer's source
  89325. * "render": {
  89326. * "_": "phone",
  89327. * "filter": "phone_filter",
  89328. * "display": "phone_display"
  89329. * }
  89330. * } ]
  89331. * } );
  89332. * } );
  89333. *
  89334. * @example
  89335. * // Use as a function to create a link from the data source
  89336. * $(document).ready( function() {
  89337. * $('#example').dataTable( {
  89338. * "columnDefs": [ {
  89339. * "targets": [ 0 ],
  89340. * "data": "download_link",
  89341. * "render": function ( data, type, full ) {
  89342. * return '<a href="'+data+'">Download</a>';
  89343. * }
  89344. * } ]
  89345. * } );
  89346. * } );
  89347. */
  89348. "mRender": null,
  89349. /**
  89350. * Change the cell type created for the column - either TD cells or TH cells. This
  89351. * can be useful as TH cells have semantic meaning in the table body, allowing them
  89352. * to act as a header for a row (you may wish to add scope='row' to the TH elements).
  89353. * @type string
  89354. * @default td
  89355. *
  89356. * @name DataTable.defaults.column.cellType
  89357. * @dtopt Columns
  89358. *
  89359. * @example
  89360. * // Make the first column use TH cells
  89361. * $(document).ready( function() {
  89362. * $('#example').dataTable( {
  89363. * "columnDefs": [ {
  89364. * "targets": [ 0 ],
  89365. * "cellType": "th"
  89366. * } ]
  89367. * } );
  89368. * } );
  89369. */
  89370. "sCellType": "td",
  89371. /**
  89372. * Class to give to each cell in this column.
  89373. * @type string
  89374. * @default <i>Empty string</i>
  89375. *
  89376. * @name DataTable.defaults.column.class
  89377. * @dtopt Columns
  89378. *
  89379. * @example
  89380. * // Using `columnDefs`
  89381. * $(document).ready( function() {
  89382. * $('#example').dataTable( {
  89383. * "columnDefs": [
  89384. * { "class": "my_class", "targets": [ 0 ] }
  89385. * ]
  89386. * } );
  89387. * } );
  89388. *
  89389. * @example
  89390. * // Using `columns`
  89391. * $(document).ready( function() {
  89392. * $('#example').dataTable( {
  89393. * "columns": [
  89394. * { "class": "my_class" },
  89395. * null,
  89396. * null,
  89397. * null,
  89398. * null
  89399. * ]
  89400. * } );
  89401. * } );
  89402. */
  89403. "sClass": "",
  89404. /**
  89405. * When DataTables calculates the column widths to assign to each column,
  89406. * it finds the longest string in each column and then constructs a
  89407. * temporary table and reads the widths from that. The problem with this
  89408. * is that "mmm" is much wider then "iiii", but the latter is a longer
  89409. * string - thus the calculation can go wrong (doing it properly and putting
  89410. * it into an DOM object and measuring that is horribly(!) slow). Thus as
  89411. * a "work around" we provide this option. It will append its value to the
  89412. * text that is found to be the longest string for the column - i.e. padding.
  89413. * Generally you shouldn't need this!
  89414. * @type string
  89415. * @default <i>Empty string<i>
  89416. *
  89417. * @name DataTable.defaults.column.contentPadding
  89418. * @dtopt Columns
  89419. *
  89420. * @example
  89421. * // Using `columns`
  89422. * $(document).ready( function() {
  89423. * $('#example').dataTable( {
  89424. * "columns": [
  89425. * null,
  89426. * null,
  89427. * null,
  89428. * {
  89429. * "contentPadding": "mmm"
  89430. * }
  89431. * ]
  89432. * } );
  89433. * } );
  89434. */
  89435. "sContentPadding": "",
  89436. /**
  89437. * Allows a default value to be given for a column's data, and will be used
  89438. * whenever a null data source is encountered (this can be because `data`
  89439. * is set to null, or because the data source itself is null).
  89440. * @type string
  89441. * @default null
  89442. *
  89443. * @name DataTable.defaults.column.defaultContent
  89444. * @dtopt Columns
  89445. *
  89446. * @example
  89447. * // Using `columnDefs`
  89448. * $(document).ready( function() {
  89449. * $('#example').dataTable( {
  89450. * "columnDefs": [
  89451. * {
  89452. * "data": null,
  89453. * "defaultContent": "Edit",
  89454. * "targets": [ -1 ]
  89455. * }
  89456. * ]
  89457. * } );
  89458. * } );
  89459. *
  89460. * @example
  89461. * // Using `columns`
  89462. * $(document).ready( function() {
  89463. * $('#example').dataTable( {
  89464. * "columns": [
  89465. * null,
  89466. * null,
  89467. * null,
  89468. * {
  89469. * "data": null,
  89470. * "defaultContent": "Edit"
  89471. * }
  89472. * ]
  89473. * } );
  89474. * } );
  89475. */
  89476. "sDefaultContent": null,
  89477. /**
  89478. * This parameter is only used in DataTables' server-side processing. It can
  89479. * be exceptionally useful to know what columns are being displayed on the
  89480. * client side, and to map these to database fields. When defined, the names
  89481. * also allow DataTables to reorder information from the server if it comes
  89482. * back in an unexpected order (i.e. if you switch your columns around on the
  89483. * client-side, your server-side code does not also need updating).
  89484. * @type string
  89485. * @default <i>Empty string</i>
  89486. *
  89487. * @name DataTable.defaults.column.name
  89488. * @dtopt Columns
  89489. *
  89490. * @example
  89491. * // Using `columnDefs`
  89492. * $(document).ready( function() {
  89493. * $('#example').dataTable( {
  89494. * "columnDefs": [
  89495. * { "name": "engine", "targets": [ 0 ] },
  89496. * { "name": "browser", "targets": [ 1 ] },
  89497. * { "name": "platform", "targets": [ 2 ] },
  89498. * { "name": "version", "targets": [ 3 ] },
  89499. * { "name": "grade", "targets": [ 4 ] }
  89500. * ]
  89501. * } );
  89502. * } );
  89503. *
  89504. * @example
  89505. * // Using `columns`
  89506. * $(document).ready( function() {
  89507. * $('#example').dataTable( {
  89508. * "columns": [
  89509. * { "name": "engine" },
  89510. * { "name": "browser" },
  89511. * { "name": "platform" },
  89512. * { "name": "version" },
  89513. * { "name": "grade" }
  89514. * ]
  89515. * } );
  89516. * } );
  89517. */
  89518. "sName": "",
  89519. /**
  89520. * Defines a data source type for the ordering which can be used to read
  89521. * real-time information from the table (updating the internally cached
  89522. * version) prior to ordering. This allows ordering to occur on user
  89523. * editable elements such as form inputs.
  89524. * @type string
  89525. * @default std
  89526. *
  89527. * @name DataTable.defaults.column.orderDataType
  89528. * @dtopt Columns
  89529. *
  89530. * @example
  89531. * // Using `columnDefs`
  89532. * $(document).ready( function() {
  89533. * $('#example').dataTable( {
  89534. * "columnDefs": [
  89535. * { "orderDataType": "dom-text", "targets": [ 2, 3 ] },
  89536. * { "type": "numeric", "targets": [ 3 ] },
  89537. * { "orderDataType": "dom-select", "targets": [ 4 ] },
  89538. * { "orderDataType": "dom-checkbox", "targets": [ 5 ] }
  89539. * ]
  89540. * } );
  89541. * } );
  89542. *
  89543. * @example
  89544. * // Using `columns`
  89545. * $(document).ready( function() {
  89546. * $('#example').dataTable( {
  89547. * "columns": [
  89548. * null,
  89549. * null,
  89550. * { "orderDataType": "dom-text" },
  89551. * { "orderDataType": "dom-text", "type": "numeric" },
  89552. * { "orderDataType": "dom-select" },
  89553. * { "orderDataType": "dom-checkbox" }
  89554. * ]
  89555. * } );
  89556. * } );
  89557. */
  89558. "sSortDataType": "std",
  89559. /**
  89560. * The title of this column.
  89561. * @type string
  89562. * @default null <i>Derived from the 'TH' value for this column in the
  89563. * original HTML table.</i>
  89564. *
  89565. * @name DataTable.defaults.column.title
  89566. * @dtopt Columns
  89567. *
  89568. * @example
  89569. * // Using `columnDefs`
  89570. * $(document).ready( function() {
  89571. * $('#example').dataTable( {
  89572. * "columnDefs": [
  89573. * { "title": "My column title", "targets": [ 0 ] }
  89574. * ]
  89575. * } );
  89576. * } );
  89577. *
  89578. * @example
  89579. * // Using `columns`
  89580. * $(document).ready( function() {
  89581. * $('#example').dataTable( {
  89582. * "columns": [
  89583. * { "title": "My column title" },
  89584. * null,
  89585. * null,
  89586. * null,
  89587. * null
  89588. * ]
  89589. * } );
  89590. * } );
  89591. */
  89592. "sTitle": null,
  89593. /**
  89594. * The type allows you to specify how the data for this column will be
  89595. * ordered. Four types (string, numeric, date and html (which will strip
  89596. * HTML tags before ordering)) are currently available. Note that only date
  89597. * formats understood by Javascript's Date() object will be accepted as type
  89598. * date. For example: "Mar 26, 2008 5:03 PM". May take the values: 'string',
  89599. * 'numeric', 'date' or 'html' (by default). Further types can be adding
  89600. * through plug-ins.
  89601. * @type string
  89602. * @default null <i>Auto-detected from raw data</i>
  89603. *
  89604. * @name DataTable.defaults.column.type
  89605. * @dtopt Columns
  89606. *
  89607. * @example
  89608. * // Using `columnDefs`
  89609. * $(document).ready( function() {
  89610. * $('#example').dataTable( {
  89611. * "columnDefs": [
  89612. * { "type": "html", "targets": [ 0 ] }
  89613. * ]
  89614. * } );
  89615. * } );
  89616. *
  89617. * @example
  89618. * // Using `columns`
  89619. * $(document).ready( function() {
  89620. * $('#example').dataTable( {
  89621. * "columns": [
  89622. * { "type": "html" },
  89623. * null,
  89624. * null,
  89625. * null,
  89626. * null
  89627. * ]
  89628. * } );
  89629. * } );
  89630. */
  89631. "sType": null,
  89632. /**
  89633. * Defining the width of the column, this parameter may take any CSS value
  89634. * (3em, 20px etc). DataTables applies 'smart' widths to columns which have not
  89635. * been given a specific width through this interface ensuring that the table
  89636. * remains readable.
  89637. * @type string
  89638. * @default null <i>Automatic</i>
  89639. *
  89640. * @name DataTable.defaults.column.width
  89641. * @dtopt Columns
  89642. *
  89643. * @example
  89644. * // Using `columnDefs`
  89645. * $(document).ready( function() {
  89646. * $('#example').dataTable( {
  89647. * "columnDefs": [
  89648. * { "width": "20%", "targets": [ 0 ] }
  89649. * ]
  89650. * } );
  89651. * } );
  89652. *
  89653. * @example
  89654. * // Using `columns`
  89655. * $(document).ready( function() {
  89656. * $('#example').dataTable( {
  89657. * "columns": [
  89658. * { "width": "20%" },
  89659. * null,
  89660. * null,
  89661. * null,
  89662. * null
  89663. * ]
  89664. * } );
  89665. * } );
  89666. */
  89667. "sWidth": null
  89668. };
  89669. _fnHungarianMap( DataTable.defaults.column );
  89670. /**
  89671. * DataTables settings object - this holds all the information needed for a
  89672. * given table, including configuration, data and current application of the
  89673. * table options. DataTables does not have a single instance for each DataTable
  89674. * with the settings attached to that instance, but rather instances of the
  89675. * DataTable "class" are created on-the-fly as needed (typically by a
  89676. * $().dataTable() call) and the settings object is then applied to that
  89677. * instance.
  89678. *
  89679. * Note that this object is related to {@link DataTable.defaults} but this
  89680. * one is the internal data store for DataTables's cache of columns. It should
  89681. * NOT be manipulated outside of DataTables. Any configuration should be done
  89682. * through the initialisation options.
  89683. * @namespace
  89684. * @todo Really should attach the settings object to individual instances so we
  89685. * don't need to create new instances on each $().dataTable() call (if the
  89686. * table already exists). It would also save passing oSettings around and
  89687. * into every single function. However, this is a very significant
  89688. * architecture change for DataTables and will almost certainly break
  89689. * backwards compatibility with older installations. This is something that
  89690. * will be done in 2.0.
  89691. */
  89692. DataTable.models.oSettings = {
  89693. /**
  89694. * Primary features of DataTables and their enablement state.
  89695. * @namespace
  89696. */
  89697. "oFeatures": {
  89698. /**
  89699. * Flag to say if DataTables should automatically try to calculate the
  89700. * optimum table and columns widths (true) or not (false).
  89701. * Note that this parameter will be set by the initialisation routine. To
  89702. * set a default use {@link DataTable.defaults}.
  89703. * @type boolean
  89704. */
  89705. "bAutoWidth": null,
  89706. /**
  89707. * Delay the creation of TR and TD elements until they are actually
  89708. * needed by a driven page draw. This can give a significant speed
  89709. * increase for Ajax source and Javascript source data, but makes no
  89710. * difference at all fro DOM and server-side processing tables.
  89711. * Note that this parameter will be set by the initialisation routine. To
  89712. * set a default use {@link DataTable.defaults}.
  89713. * @type boolean
  89714. */
  89715. "bDeferRender": null,
  89716. /**
  89717. * Enable filtering on the table or not. Note that if this is disabled
  89718. * then there is no filtering at all on the table, including fnFilter.
  89719. * To just remove the filtering input use sDom and remove the 'f' option.
  89720. * Note that this parameter will be set by the initialisation routine. To
  89721. * set a default use {@link DataTable.defaults}.
  89722. * @type boolean
  89723. */
  89724. "bFilter": null,
  89725. /**
  89726. * Table information element (the 'Showing x of y records' div) enable
  89727. * flag.
  89728. * Note that this parameter will be set by the initialisation routine. To
  89729. * set a default use {@link DataTable.defaults}.
  89730. * @type boolean
  89731. */
  89732. "bInfo": null,
  89733. /**
  89734. * Present a user control allowing the end user to change the page size
  89735. * when pagination is enabled.
  89736. * Note that this parameter will be set by the initialisation routine. To
  89737. * set a default use {@link DataTable.defaults}.
  89738. * @type boolean
  89739. */
  89740. "bLengthChange": null,
  89741. /**
  89742. * Pagination enabled or not. Note that if this is disabled then length
  89743. * changing must also be disabled.
  89744. * Note that this parameter will be set by the initialisation routine. To
  89745. * set a default use {@link DataTable.defaults}.
  89746. * @type boolean
  89747. */
  89748. "bPaginate": null,
  89749. /**
  89750. * Processing indicator enable flag whenever DataTables is enacting a
  89751. * user request - typically an Ajax request for server-side processing.
  89752. * Note that this parameter will be set by the initialisation routine. To
  89753. * set a default use {@link DataTable.defaults}.
  89754. * @type boolean
  89755. */
  89756. "bProcessing": null,
  89757. /**
  89758. * Server-side processing enabled flag - when enabled DataTables will
  89759. * get all data from the server for every draw - there is no filtering,
  89760. * sorting or paging done on the client-side.
  89761. * Note that this parameter will be set by the initialisation routine. To
  89762. * set a default use {@link DataTable.defaults}.
  89763. * @type boolean
  89764. */
  89765. "bServerSide": null,
  89766. /**
  89767. * Sorting enablement flag.
  89768. * Note that this parameter will be set by the initialisation routine. To
  89769. * set a default use {@link DataTable.defaults}.
  89770. * @type boolean
  89771. */
  89772. "bSort": null,
  89773. /**
  89774. * Multi-column sorting
  89775. * Note that this parameter will be set by the initialisation routine. To
  89776. * set a default use {@link DataTable.defaults}.
  89777. * @type boolean
  89778. */
  89779. "bSortMulti": null,
  89780. /**
  89781. * Apply a class to the columns which are being sorted to provide a
  89782. * visual highlight or not. This can slow things down when enabled since
  89783. * there is a lot of DOM interaction.
  89784. * Note that this parameter will be set by the initialisation routine. To
  89785. * set a default use {@link DataTable.defaults}.
  89786. * @type boolean
  89787. */
  89788. "bSortClasses": null,
  89789. /**
  89790. * State saving enablement flag.
  89791. * Note that this parameter will be set by the initialisation routine. To
  89792. * set a default use {@link DataTable.defaults}.
  89793. * @type boolean
  89794. */
  89795. "bStateSave": null
  89796. },
  89797. /**
  89798. * Scrolling settings for a table.
  89799. * @namespace
  89800. */
  89801. "oScroll": {
  89802. /**
  89803. * When the table is shorter in height than sScrollY, collapse the
  89804. * table container down to the height of the table (when true).
  89805. * Note that this parameter will be set by the initialisation routine. To
  89806. * set a default use {@link DataTable.defaults}.
  89807. * @type boolean
  89808. */
  89809. "bCollapse": null,
  89810. /**
  89811. * Width of the scrollbar for the web-browser's platform. Calculated
  89812. * during table initialisation.
  89813. * @type int
  89814. * @default 0
  89815. */
  89816. "iBarWidth": 0,
  89817. /**
  89818. * Viewport width for horizontal scrolling. Horizontal scrolling is
  89819. * disabled if an empty string.
  89820. * Note that this parameter will be set by the initialisation routine. To
  89821. * set a default use {@link DataTable.defaults}.
  89822. * @type string
  89823. */
  89824. "sX": null,
  89825. /**
  89826. * Width to expand the table to when using x-scrolling. Typically you
  89827. * should not need to use this.
  89828. * Note that this parameter will be set by the initialisation routine. To
  89829. * set a default use {@link DataTable.defaults}.
  89830. * @type string
  89831. * @deprecated
  89832. */
  89833. "sXInner": null,
  89834. /**
  89835. * Viewport height for vertical scrolling. Vertical scrolling is disabled
  89836. * if an empty string.
  89837. * Note that this parameter will be set by the initialisation routine. To
  89838. * set a default use {@link DataTable.defaults}.
  89839. * @type string
  89840. */
  89841. "sY": null
  89842. },
  89843. /**
  89844. * Language information for the table.
  89845. * @namespace
  89846. * @extends DataTable.defaults.oLanguage
  89847. */
  89848. "oLanguage": {
  89849. /**
  89850. * Information callback function. See
  89851. * {@link DataTable.defaults.fnInfoCallback}
  89852. * @type function
  89853. * @default null
  89854. */
  89855. "fnInfoCallback": null
  89856. },
  89857. /**
  89858. * Browser support parameters
  89859. * @namespace
  89860. */
  89861. "oBrowser": {
  89862. /**
  89863. * Indicate if the browser incorrectly calculates width:100% inside a
  89864. * scrolling element (IE6/7)
  89865. * @type boolean
  89866. * @default false
  89867. */
  89868. "bScrollOversize": false,
  89869. /**
  89870. * Determine if the vertical scrollbar is on the right or left of the
  89871. * scrolling container - needed for rtl language layout, although not
  89872. * all browsers move the scrollbar (Safari).
  89873. * @type boolean
  89874. * @default false
  89875. */
  89876. "bScrollbarLeft": false,
  89877. /**
  89878. * Flag for if `getBoundingClientRect` is fully supported or not
  89879. * @type boolean
  89880. * @default false
  89881. */
  89882. "bBounding": false
  89883. },
  89884. "ajax": null,
  89885. /**
  89886. * Array referencing the nodes which are used for the features. The
  89887. * parameters of this object match what is allowed by sDom - i.e.
  89888. * <ul>
  89889. * <li>'l' - Length changing</li>
  89890. * <li>'f' - Filtering input</li>
  89891. * <li>'t' - The table!</li>
  89892. * <li>'i' - Information</li>
  89893. * <li>'p' - Pagination</li>
  89894. * <li>'r' - pRocessing</li>
  89895. * </ul>
  89896. * @type array
  89897. * @default []
  89898. */
  89899. "aanFeatures": [],
  89900. /**
  89901. * Store data information - see {@link DataTable.models.oRow} for detailed
  89902. * information.
  89903. * @type array
  89904. * @default []
  89905. */
  89906. "aoData": [],
  89907. /**
  89908. * Array of indexes which are in the current display (after filtering etc)
  89909. * @type array
  89910. * @default []
  89911. */
  89912. "aiDisplay": [],
  89913. /**
  89914. * Array of indexes for display - no filtering
  89915. * @type array
  89916. * @default []
  89917. */
  89918. "aiDisplayMaster": [],
  89919. /**
  89920. * Map of row ids to data indexes
  89921. * @type object
  89922. * @default {}
  89923. */
  89924. "aIds": {},
  89925. /**
  89926. * Store information about each column that is in use
  89927. * @type array
  89928. * @default []
  89929. */
  89930. "aoColumns": [],
  89931. /**
  89932. * Store information about the table's header
  89933. * @type array
  89934. * @default []
  89935. */
  89936. "aoHeader": [],
  89937. /**
  89938. * Store information about the table's footer
  89939. * @type array
  89940. * @default []
  89941. */
  89942. "aoFooter": [],
  89943. /**
  89944. * Store the applied global search information in case we want to force a
  89945. * research or compare the old search to a new one.
  89946. * Note that this parameter will be set by the initialisation routine. To
  89947. * set a default use {@link DataTable.defaults}.
  89948. * @namespace
  89949. * @extends DataTable.models.oSearch
  89950. */
  89951. "oPreviousSearch": {},
  89952. /**
  89953. * Store the applied search for each column - see
  89954. * {@link DataTable.models.oSearch} for the format that is used for the
  89955. * filtering information for each column.
  89956. * @type array
  89957. * @default []
  89958. */
  89959. "aoPreSearchCols": [],
  89960. /**
  89961. * Sorting that is applied to the table. Note that the inner arrays are
  89962. * used in the following manner:
  89963. * <ul>
  89964. * <li>Index 0 - column number</li>
  89965. * <li>Index 1 - current sorting direction</li>
  89966. * </ul>
  89967. * Note that this parameter will be set by the initialisation routine. To
  89968. * set a default use {@link DataTable.defaults}.
  89969. * @type array
  89970. * @todo These inner arrays should really be objects
  89971. */
  89972. "aaSorting": null,
  89973. /**
  89974. * Sorting that is always applied to the table (i.e. prefixed in front of
  89975. * aaSorting).
  89976. * Note that this parameter will be set by the initialisation routine. To
  89977. * set a default use {@link DataTable.defaults}.
  89978. * @type array
  89979. * @default []
  89980. */
  89981. "aaSortingFixed": [],
  89982. /**
  89983. * Classes to use for the striping of a table.
  89984. * Note that this parameter will be set by the initialisation routine. To
  89985. * set a default use {@link DataTable.defaults}.
  89986. * @type array
  89987. * @default []
  89988. */
  89989. "asStripeClasses": null,
  89990. /**
  89991. * If restoring a table - we should restore its striping classes as well
  89992. * @type array
  89993. * @default []
  89994. */
  89995. "asDestroyStripes": [],
  89996. /**
  89997. * If restoring a table - we should restore its width
  89998. * @type int
  89999. * @default 0
  90000. */
  90001. "sDestroyWidth": 0,
  90002. /**
  90003. * Callback functions array for every time a row is inserted (i.e. on a draw).
  90004. * @type array
  90005. * @default []
  90006. */
  90007. "aoRowCallback": [],
  90008. /**
  90009. * Callback functions for the header on each draw.
  90010. * @type array
  90011. * @default []
  90012. */
  90013. "aoHeaderCallback": [],
  90014. /**
  90015. * Callback function for the footer on each draw.
  90016. * @type array
  90017. * @default []
  90018. */
  90019. "aoFooterCallback": [],
  90020. /**
  90021. * Array of callback functions for draw callback functions
  90022. * @type array
  90023. * @default []
  90024. */
  90025. "aoDrawCallback": [],
  90026. /**
  90027. * Array of callback functions for row created function
  90028. * @type array
  90029. * @default []
  90030. */
  90031. "aoRowCreatedCallback": [],
  90032. /**
  90033. * Callback functions for just before the table is redrawn. A return of
  90034. * false will be used to cancel the draw.
  90035. * @type array
  90036. * @default []
  90037. */
  90038. "aoPreDrawCallback": [],
  90039. /**
  90040. * Callback functions for when the table has been initialised.
  90041. * @type array
  90042. * @default []
  90043. */
  90044. "aoInitComplete": [],
  90045. /**
  90046. * Callbacks for modifying the settings to be stored for state saving, prior to
  90047. * saving state.
  90048. * @type array
  90049. * @default []
  90050. */
  90051. "aoStateSaveParams": [],
  90052. /**
  90053. * Callbacks for modifying the settings that have been stored for state saving
  90054. * prior to using the stored values to restore the state.
  90055. * @type array
  90056. * @default []
  90057. */
  90058. "aoStateLoadParams": [],
  90059. /**
  90060. * Callbacks for operating on the settings object once the saved state has been
  90061. * loaded
  90062. * @type array
  90063. * @default []
  90064. */
  90065. "aoStateLoaded": [],
  90066. /**
  90067. * Cache the table ID for quick access
  90068. * @type string
  90069. * @default <i>Empty string</i>
  90070. */
  90071. "sTableId": "",
  90072. /**
  90073. * The TABLE node for the main table
  90074. * @type node
  90075. * @default null
  90076. */
  90077. "nTable": null,
  90078. /**
  90079. * Permanent ref to the thead element
  90080. * @type node
  90081. * @default null
  90082. */
  90083. "nTHead": null,
  90084. /**
  90085. * Permanent ref to the tfoot element - if it exists
  90086. * @type node
  90087. * @default null
  90088. */
  90089. "nTFoot": null,
  90090. /**
  90091. * Permanent ref to the tbody element
  90092. * @type node
  90093. * @default null
  90094. */
  90095. "nTBody": null,
  90096. /**
  90097. * Cache the wrapper node (contains all DataTables controlled elements)
  90098. * @type node
  90099. * @default null
  90100. */
  90101. "nTableWrapper": null,
  90102. /**
  90103. * Indicate if when using server-side processing the loading of data
  90104. * should be deferred until the second draw.
  90105. * Note that this parameter will be set by the initialisation routine. To
  90106. * set a default use {@link DataTable.defaults}.
  90107. * @type boolean
  90108. * @default false
  90109. */
  90110. "bDeferLoading": false,
  90111. /**
  90112. * Indicate if all required information has been read in
  90113. * @type boolean
  90114. * @default false
  90115. */
  90116. "bInitialised": false,
  90117. /**
  90118. * Information about open rows. Each object in the array has the parameters
  90119. * 'nTr' and 'nParent'
  90120. * @type array
  90121. * @default []
  90122. */
  90123. "aoOpenRows": [],
  90124. /**
  90125. * Dictate the positioning of DataTables' control elements - see
  90126. * {@link DataTable.model.oInit.sDom}.
  90127. * Note that this parameter will be set by the initialisation routine. To
  90128. * set a default use {@link DataTable.defaults}.
  90129. * @type string
  90130. * @default null
  90131. */
  90132. "sDom": null,
  90133. /**
  90134. * Search delay (in mS)
  90135. * @type integer
  90136. * @default null
  90137. */
  90138. "searchDelay": null,
  90139. /**
  90140. * Which type of pagination should be used.
  90141. * Note that this parameter will be set by the initialisation routine. To
  90142. * set a default use {@link DataTable.defaults}.
  90143. * @type string
  90144. * @default two_button
  90145. */
  90146. "sPaginationType": "two_button",
  90147. /**
  90148. * The state duration (for `stateSave`) in seconds.
  90149. * Note that this parameter will be set by the initialisation routine. To
  90150. * set a default use {@link DataTable.defaults}.
  90151. * @type int
  90152. * @default 0
  90153. */
  90154. "iStateDuration": 0,
  90155. /**
  90156. * Array of callback functions for state saving. Each array element is an
  90157. * object with the following parameters:
  90158. * <ul>
  90159. * <li>function:fn - function to call. Takes two parameters, oSettings
  90160. * and the JSON string to save that has been thus far created. Returns
  90161. * a JSON string to be inserted into a json object
  90162. * (i.e. '"param": [ 0, 1, 2]')</li>
  90163. * <li>string:sName - name of callback</li>
  90164. * </ul>
  90165. * @type array
  90166. * @default []
  90167. */
  90168. "aoStateSave": [],
  90169. /**
  90170. * Array of callback functions for state loading. Each array element is an
  90171. * object with the following parameters:
  90172. * <ul>
  90173. * <li>function:fn - function to call. Takes two parameters, oSettings
  90174. * and the object stored. May return false to cancel state loading</li>
  90175. * <li>string:sName - name of callback</li>
  90176. * </ul>
  90177. * @type array
  90178. * @default []
  90179. */
  90180. "aoStateLoad": [],
  90181. /**
  90182. * State that was saved. Useful for back reference
  90183. * @type object
  90184. * @default null
  90185. */
  90186. "oSavedState": null,
  90187. /**
  90188. * State that was loaded. Useful for back reference
  90189. * @type object
  90190. * @default null
  90191. */
  90192. "oLoadedState": null,
  90193. /**
  90194. * Source url for AJAX data for the table.
  90195. * Note that this parameter will be set by the initialisation routine. To
  90196. * set a default use {@link DataTable.defaults}.
  90197. * @type string
  90198. * @default null
  90199. */
  90200. "sAjaxSource": null,
  90201. /**
  90202. * Property from a given object from which to read the table data from. This
  90203. * can be an empty string (when not server-side processing), in which case
  90204. * it is assumed an an array is given directly.
  90205. * Note that this parameter will be set by the initialisation routine. To
  90206. * set a default use {@link DataTable.defaults}.
  90207. * @type string
  90208. */
  90209. "sAjaxDataProp": null,
  90210. /**
  90211. * Note if draw should be blocked while getting data
  90212. * @type boolean
  90213. * @default true
  90214. */
  90215. "bAjaxDataGet": true,
  90216. /**
  90217. * The last jQuery XHR object that was used for server-side data gathering.
  90218. * This can be used for working with the XHR information in one of the
  90219. * callbacks
  90220. * @type object
  90221. * @default null
  90222. */
  90223. "jqXHR": null,
  90224. /**
  90225. * JSON returned from the server in the last Ajax request
  90226. * @type object
  90227. * @default undefined
  90228. */
  90229. "json": undefined,
  90230. /**
  90231. * Data submitted as part of the last Ajax request
  90232. * @type object
  90233. * @default undefined
  90234. */
  90235. "oAjaxData": undefined,
  90236. /**
  90237. * Function to get the server-side data.
  90238. * Note that this parameter will be set by the initialisation routine. To
  90239. * set a default use {@link DataTable.defaults}.
  90240. * @type function
  90241. */
  90242. "fnServerData": null,
  90243. /**
  90244. * Functions which are called prior to sending an Ajax request so extra
  90245. * parameters can easily be sent to the server
  90246. * @type array
  90247. * @default []
  90248. */
  90249. "aoServerParams": [],
  90250. /**
  90251. * Send the XHR HTTP method - GET or POST (could be PUT or DELETE if
  90252. * required).
  90253. * Note that this parameter will be set by the initialisation routine. To
  90254. * set a default use {@link DataTable.defaults}.
  90255. * @type string
  90256. */
  90257. "sServerMethod": null,
  90258. /**
  90259. * Format numbers for display.
  90260. * Note that this parameter will be set by the initialisation routine. To
  90261. * set a default use {@link DataTable.defaults}.
  90262. * @type function
  90263. */
  90264. "fnFormatNumber": null,
  90265. /**
  90266. * List of options that can be used for the user selectable length menu.
  90267. * Note that this parameter will be set by the initialisation routine. To
  90268. * set a default use {@link DataTable.defaults}.
  90269. * @type array
  90270. * @default []
  90271. */
  90272. "aLengthMenu": null,
  90273. /**
  90274. * Counter for the draws that the table does. Also used as a tracker for
  90275. * server-side processing
  90276. * @type int
  90277. * @default 0
  90278. */
  90279. "iDraw": 0,
  90280. /**
  90281. * Indicate if a redraw is being done - useful for Ajax
  90282. * @type boolean
  90283. * @default false
  90284. */
  90285. "bDrawing": false,
  90286. /**
  90287. * Draw index (iDraw) of the last error when parsing the returned data
  90288. * @type int
  90289. * @default -1
  90290. */
  90291. "iDrawError": -1,
  90292. /**
  90293. * Paging display length
  90294. * @type int
  90295. * @default 10
  90296. */
  90297. "_iDisplayLength": 10,
  90298. /**
  90299. * Paging start point - aiDisplay index
  90300. * @type int
  90301. * @default 0
  90302. */
  90303. "_iDisplayStart": 0,
  90304. /**
  90305. * Server-side processing - number of records in the result set
  90306. * (i.e. before filtering), Use fnRecordsTotal rather than
  90307. * this property to get the value of the number of records, regardless of
  90308. * the server-side processing setting.
  90309. * @type int
  90310. * @default 0
  90311. * @private
  90312. */
  90313. "_iRecordsTotal": 0,
  90314. /**
  90315. * Server-side processing - number of records in the current display set
  90316. * (i.e. after filtering). Use fnRecordsDisplay rather than
  90317. * this property to get the value of the number of records, regardless of
  90318. * the server-side processing setting.
  90319. * @type boolean
  90320. * @default 0
  90321. * @private
  90322. */
  90323. "_iRecordsDisplay": 0,
  90324. /**
  90325. * Flag to indicate if jQuery UI marking and classes should be used.
  90326. * Note that this parameter will be set by the initialisation routine. To
  90327. * set a default use {@link DataTable.defaults}.
  90328. * @type boolean
  90329. */
  90330. "bJUI": null,
  90331. /**
  90332. * The classes to use for the table
  90333. * @type object
  90334. * @default {}
  90335. */
  90336. "oClasses": {},
  90337. /**
  90338. * Flag attached to the settings object so you can check in the draw
  90339. * callback if filtering has been done in the draw. Deprecated in favour of
  90340. * events.
  90341. * @type boolean
  90342. * @default false
  90343. * @deprecated
  90344. */
  90345. "bFiltered": false,
  90346. /**
  90347. * Flag attached to the settings object so you can check in the draw
  90348. * callback if sorting has been done in the draw. Deprecated in favour of
  90349. * events.
  90350. * @type boolean
  90351. * @default false
  90352. * @deprecated
  90353. */
  90354. "bSorted": false,
  90355. /**
  90356. * Indicate that if multiple rows are in the header and there is more than
  90357. * one unique cell per column, if the top one (true) or bottom one (false)
  90358. * should be used for sorting / title by DataTables.
  90359. * Note that this parameter will be set by the initialisation routine. To
  90360. * set a default use {@link DataTable.defaults}.
  90361. * @type boolean
  90362. */
  90363. "bSortCellsTop": null,
  90364. /**
  90365. * Initialisation object that is used for the table
  90366. * @type object
  90367. * @default null
  90368. */
  90369. "oInit": null,
  90370. /**
  90371. * Destroy callback functions - for plug-ins to attach themselves to the
  90372. * destroy so they can clean up markup and events.
  90373. * @type array
  90374. * @default []
  90375. */
  90376. "aoDestroyCallback": [],
  90377. /**
  90378. * Get the number of records in the current record set, before filtering
  90379. * @type function
  90380. */
  90381. "fnRecordsTotal": function ()
  90382. {
  90383. return _fnDataSource( this ) == 'ssp' ?
  90384. this._iRecordsTotal * 1 :
  90385. this.aiDisplayMaster.length;
  90386. },
  90387. /**
  90388. * Get the number of records in the current record set, after filtering
  90389. * @type function
  90390. */
  90391. "fnRecordsDisplay": function ()
  90392. {
  90393. return _fnDataSource( this ) == 'ssp' ?
  90394. this._iRecordsDisplay * 1 :
  90395. this.aiDisplay.length;
  90396. },
  90397. /**
  90398. * Get the display end point - aiDisplay index
  90399. * @type function
  90400. */
  90401. "fnDisplayEnd": function ()
  90402. {
  90403. var
  90404. len = this._iDisplayLength,
  90405. start = this._iDisplayStart,
  90406. calc = start + len,
  90407. records = this.aiDisplay.length,
  90408. features = this.oFeatures,
  90409. paginate = features.bPaginate;
  90410. if ( features.bServerSide ) {
  90411. return paginate === false || len === -1 ?
  90412. start + records :
  90413. Math.min( start+len, this._iRecordsDisplay );
  90414. }
  90415. else {
  90416. return ! paginate || calc>records || len===-1 ?
  90417. records :
  90418. calc;
  90419. }
  90420. },
  90421. /**
  90422. * The DataTables object for this table
  90423. * @type object
  90424. * @default null
  90425. */
  90426. "oInstance": null,
  90427. /**
  90428. * Unique identifier for each instance of the DataTables object. If there
  90429. * is an ID on the table node, then it takes that value, otherwise an
  90430. * incrementing internal counter is used.
  90431. * @type string
  90432. * @default null
  90433. */
  90434. "sInstance": null,
  90435. /**
  90436. * tabindex attribute value that is added to DataTables control elements, allowing
  90437. * keyboard navigation of the table and its controls.
  90438. */
  90439. "iTabIndex": 0,
  90440. /**
  90441. * DIV container for the footer scrolling table if scrolling
  90442. */
  90443. "nScrollHead": null,
  90444. /**
  90445. * DIV container for the footer scrolling table if scrolling
  90446. */
  90447. "nScrollFoot": null,
  90448. /**
  90449. * Last applied sort
  90450. * @type array
  90451. * @default []
  90452. */
  90453. "aLastSort": [],
  90454. /**
  90455. * Stored plug-in instances
  90456. * @type object
  90457. * @default {}
  90458. */
  90459. "oPlugins": {},
  90460. /**
  90461. * Function used to get a row's id from the row's data
  90462. * @type function
  90463. * @default null
  90464. */
  90465. "rowIdFn": null,
  90466. /**
  90467. * Data location where to store a row's id
  90468. * @type string
  90469. * @default null
  90470. */
  90471. "rowId": null
  90472. };
  90473. /**
  90474. * Extension object for DataTables that is used to provide all extension
  90475. * options.
  90476. *
  90477. * Note that the `DataTable.ext` object is available through
  90478. * `jQuery.fn.dataTable.ext` where it may be accessed and manipulated. It is
  90479. * also aliased to `jQuery.fn.dataTableExt` for historic reasons.
  90480. * @namespace
  90481. * @extends DataTable.models.ext
  90482. */
  90483. /**
  90484. * DataTables extensions
  90485. *
  90486. * This namespace acts as a collection area for plug-ins that can be used to
  90487. * extend DataTables capabilities. Indeed many of the build in methods
  90488. * use this method to provide their own capabilities (sorting methods for
  90489. * example).
  90490. *
  90491. * Note that this namespace is aliased to `jQuery.fn.dataTableExt` for legacy
  90492. * reasons
  90493. *
  90494. * @namespace
  90495. */
  90496. DataTable.ext = _ext = {
  90497. /**
  90498. * Buttons. For use with the Buttons extension for DataTables. This is
  90499. * defined here so other extensions can define buttons regardless of load
  90500. * order. It is _not_ used by DataTables core.
  90501. *
  90502. * @type object
  90503. * @default {}
  90504. */
  90505. buttons: {},
  90506. /**
  90507. * Element class names
  90508. *
  90509. * @type object
  90510. * @default {}
  90511. */
  90512. classes: {},
  90513. /**
  90514. * Error reporting.
  90515. *
  90516. * How should DataTables report an error. Can take the value 'alert',
  90517. * 'throw', 'none' or a function.
  90518. *
  90519. * @type string|function
  90520. * @default alert
  90521. */
  90522. errMode: "alert",
  90523. /**
  90524. * Feature plug-ins.
  90525. *
  90526. * This is an array of objects which describe the feature plug-ins that are
  90527. * available to DataTables. These feature plug-ins are then available for
  90528. * use through the `dom` initialisation option.
  90529. *
  90530. * Each feature plug-in is described by an object which must have the
  90531. * following properties:
  90532. *
  90533. * * `fnInit` - function that is used to initialise the plug-in,
  90534. * * `cFeature` - a character so the feature can be enabled by the `dom`
  90535. * instillation option. This is case sensitive.
  90536. *
  90537. * The `fnInit` function has the following input parameters:
  90538. *
  90539. * 1. `{object}` DataTables settings object: see
  90540. * {@link DataTable.models.oSettings}
  90541. *
  90542. * And the following return is expected:
  90543. *
  90544. * * {node|null} The element which contains your feature. Note that the
  90545. * return may also be void if your plug-in does not require to inject any
  90546. * DOM elements into DataTables control (`dom`) - for example this might
  90547. * be useful when developing a plug-in which allows table control via
  90548. * keyboard entry
  90549. *
  90550. * @type array
  90551. *
  90552. * @example
  90553. * $.fn.dataTable.ext.features.push( {
  90554. * "fnInit": function( oSettings ) {
  90555. * return new TableTools( { "oDTSettings": oSettings } );
  90556. * },
  90557. * "cFeature": "T"
  90558. * } );
  90559. */
  90560. feature: [],
  90561. /**
  90562. * Row searching.
  90563. *
  90564. * This method of searching is complimentary to the default type based
  90565. * searching, and a lot more comprehensive as it allows you complete control
  90566. * over the searching logic. Each element in this array is a function
  90567. * (parameters described below) that is called for every row in the table,
  90568. * and your logic decides if it should be included in the searching data set
  90569. * or not.
  90570. *
  90571. * Searching functions have the following input parameters:
  90572. *
  90573. * 1. `{object}` DataTables settings object: see
  90574. * {@link DataTable.models.oSettings}
  90575. * 2. `{array|object}` Data for the row to be processed (same as the
  90576. * original format that was passed in as the data source, or an array
  90577. * from a DOM data source
  90578. * 3. `{int}` Row index ({@link DataTable.models.oSettings.aoData}), which
  90579. * can be useful to retrieve the `TR` element if you need DOM interaction.
  90580. *
  90581. * And the following return is expected:
  90582. *
  90583. * * {boolean} Include the row in the searched result set (true) or not
  90584. * (false)
  90585. *
  90586. * Note that as with the main search ability in DataTables, technically this
  90587. * is "filtering", since it is subtractive. However, for consistency in
  90588. * naming we call it searching here.
  90589. *
  90590. * @type array
  90591. * @default []
  90592. *
  90593. * @example
  90594. * // The following example shows custom search being applied to the
  90595. * // fourth column (i.e. the data[3] index) based on two input values
  90596. * // from the end-user, matching the data in a certain range.
  90597. * $.fn.dataTable.ext.search.push(
  90598. * function( settings, data, dataIndex ) {
  90599. * var min = document.getElementById('min').value * 1;
  90600. * var max = document.getElementById('max').value * 1;
  90601. * var version = data[3] == "-" ? 0 : data[3]*1;
  90602. *
  90603. * if ( min == "" && max == "" ) {
  90604. * return true;
  90605. * }
  90606. * else if ( min == "" && version < max ) {
  90607. * return true;
  90608. * }
  90609. * else if ( min < version && "" == max ) {
  90610. * return true;
  90611. * }
  90612. * else if ( min < version && version < max ) {
  90613. * return true;
  90614. * }
  90615. * return false;
  90616. * }
  90617. * );
  90618. */
  90619. search: [],
  90620. /**
  90621. * Selector extensions
  90622. *
  90623. * The `selector` option can be used to extend the options available for the
  90624. * selector modifier options (`selector-modifier` object data type) that
  90625. * each of the three built in selector types offer (row, column and cell +
  90626. * their plural counterparts). For example the Select extension uses this
  90627. * mechanism to provide an option to select only rows, columns and cells
  90628. * that have been marked as selected by the end user (`{selected: true}`),
  90629. * which can be used in conjunction with the existing built in selector
  90630. * options.
  90631. *
  90632. * Each property is an array to which functions can be pushed. The functions
  90633. * take three attributes:
  90634. *
  90635. * * Settings object for the host table
  90636. * * Options object (`selector-modifier` object type)
  90637. * * Array of selected item indexes
  90638. *
  90639. * The return is an array of the resulting item indexes after the custom
  90640. * selector has been applied.
  90641. *
  90642. * @type object
  90643. */
  90644. selector: {
  90645. cell: [],
  90646. column: [],
  90647. row: []
  90648. },
  90649. /**
  90650. * Internal functions, exposed for used in plug-ins.
  90651. *
  90652. * Please note that you should not need to use the internal methods for
  90653. * anything other than a plug-in (and even then, try to avoid if possible).
  90654. * The internal function may change between releases.
  90655. *
  90656. * @type object
  90657. * @default {}
  90658. */
  90659. internal: {},
  90660. /**
  90661. * Legacy configuration options. Enable and disable legacy options that
  90662. * are available in DataTables.
  90663. *
  90664. * @type object
  90665. */
  90666. legacy: {
  90667. /**
  90668. * Enable / disable DataTables 1.9 compatible server-side processing
  90669. * requests
  90670. *
  90671. * @type boolean
  90672. * @default null
  90673. */
  90674. ajax: null
  90675. },
  90676. /**
  90677. * Pagination plug-in methods.
  90678. *
  90679. * Each entry in this object is a function and defines which buttons should
  90680. * be shown by the pagination rendering method that is used for the table:
  90681. * {@link DataTable.ext.renderer.pageButton}. The renderer addresses how the
  90682. * buttons are displayed in the document, while the functions here tell it
  90683. * what buttons to display. This is done by returning an array of button
  90684. * descriptions (what each button will do).
  90685. *
  90686. * Pagination types (the four built in options and any additional plug-in
  90687. * options defined here) can be used through the `paginationType`
  90688. * initialisation parameter.
  90689. *
  90690. * The functions defined take two parameters:
  90691. *
  90692. * 1. `{int} page` The current page index
  90693. * 2. `{int} pages` The number of pages in the table
  90694. *
  90695. * Each function is expected to return an array where each element of the
  90696. * array can be one of:
  90697. *
  90698. * * `first` - Jump to first page when activated
  90699. * * `last` - Jump to last page when activated
  90700. * * `previous` - Show previous page when activated
  90701. * * `next` - Show next page when activated
  90702. * * `{int}` - Show page of the index given
  90703. * * `{array}` - A nested array containing the above elements to add a
  90704. * containing 'DIV' element (might be useful for styling).
  90705. *
  90706. * Note that DataTables v1.9- used this object slightly differently whereby
  90707. * an object with two functions would be defined for each plug-in. That
  90708. * ability is still supported by DataTables 1.10+ to provide backwards
  90709. * compatibility, but this option of use is now decremented and no longer
  90710. * documented in DataTables 1.10+.
  90711. *
  90712. * @type object
  90713. * @default {}
  90714. *
  90715. * @example
  90716. * // Show previous, next and current page buttons only
  90717. * $.fn.dataTableExt.oPagination.current = function ( page, pages ) {
  90718. * return [ 'previous', page, 'next' ];
  90719. * };
  90720. */
  90721. pager: {},
  90722. renderer: {
  90723. pageButton: {},
  90724. header: {}
  90725. },
  90726. /**
  90727. * Ordering plug-ins - custom data source
  90728. *
  90729. * The extension options for ordering of data available here is complimentary
  90730. * to the default type based ordering that DataTables typically uses. It
  90731. * allows much greater control over the the data that is being used to
  90732. * order a column, but is necessarily therefore more complex.
  90733. *
  90734. * This type of ordering is useful if you want to do ordering based on data
  90735. * live from the DOM (for example the contents of an 'input' element) rather
  90736. * than just the static string that DataTables knows of.
  90737. *
  90738. * The way these plug-ins work is that you create an array of the values you
  90739. * wish to be ordering for the column in question and then return that
  90740. * array. The data in the array much be in the index order of the rows in
  90741. * the table (not the currently ordering order!). Which order data gathering
  90742. * function is run here depends on the `dt-init columns.orderDataType`
  90743. * parameter that is used for the column (if any).
  90744. *
  90745. * The functions defined take two parameters:
  90746. *
  90747. * 1. `{object}` DataTables settings object: see
  90748. * {@link DataTable.models.oSettings}
  90749. * 2. `{int}` Target column index
  90750. *
  90751. * Each function is expected to return an array:
  90752. *
  90753. * * `{array}` Data for the column to be ordering upon
  90754. *
  90755. * @type array
  90756. *
  90757. * @example
  90758. * // Ordering using `input` node values
  90759. * $.fn.dataTable.ext.order['dom-text'] = function ( settings, col )
  90760. * {
  90761. * return this.api().column( col, {order:'index'} ).nodes().map( function ( td, i ) {
  90762. * return $('input', td).val();
  90763. * } );
  90764. * }
  90765. */
  90766. order: {},
  90767. /**
  90768. * Type based plug-ins.
  90769. *
  90770. * Each column in DataTables has a type assigned to it, either by automatic
  90771. * detection or by direct assignment using the `type` option for the column.
  90772. * The type of a column will effect how it is ordering and search (plug-ins
  90773. * can also make use of the column type if required).
  90774. *
  90775. * @namespace
  90776. */
  90777. type: {
  90778. /**
  90779. * Type detection functions.
  90780. *
  90781. * The functions defined in this object are used to automatically detect
  90782. * a column's type, making initialisation of DataTables super easy, even
  90783. * when complex data is in the table.
  90784. *
  90785. * The functions defined take two parameters:
  90786. *
  90787. * 1. `{*}` Data from the column cell to be analysed
  90788. * 2. `{settings}` DataTables settings object. This can be used to
  90789. * perform context specific type detection - for example detection
  90790. * based on language settings such as using a comma for a decimal
  90791. * place. Generally speaking the options from the settings will not
  90792. * be required
  90793. *
  90794. * Each function is expected to return:
  90795. *
  90796. * * `{string|null}` Data type detected, or null if unknown (and thus
  90797. * pass it on to the other type detection functions.
  90798. *
  90799. * @type array
  90800. *
  90801. * @example
  90802. * // Currency type detection plug-in:
  90803. * $.fn.dataTable.ext.type.detect.push(
  90804. * function ( data, settings ) {
  90805. * // Check the numeric part
  90806. * if ( ! $.isNumeric( data.substring(1) ) ) {
  90807. * return null;
  90808. * }
  90809. *
  90810. * // Check prefixed by currency
  90811. * if ( data.charAt(0) == '$' || data.charAt(0) == '&pound;' ) {
  90812. * return 'currency';
  90813. * }
  90814. * return null;
  90815. * }
  90816. * );
  90817. */
  90818. detect: [],
  90819. /**
  90820. * Type based search formatting.
  90821. *
  90822. * The type based searching functions can be used to pre-format the
  90823. * data to be search on. For example, it can be used to strip HTML
  90824. * tags or to de-format telephone numbers for numeric only searching.
  90825. *
  90826. * Note that is a search is not defined for a column of a given type,
  90827. * no search formatting will be performed.
  90828. *
  90829. * Pre-processing of searching data plug-ins - When you assign the sType
  90830. * for a column (or have it automatically detected for you by DataTables
  90831. * or a type detection plug-in), you will typically be using this for
  90832. * custom sorting, but it can also be used to provide custom searching
  90833. * by allowing you to pre-processing the data and returning the data in
  90834. * the format that should be searched upon. This is done by adding
  90835. * functions this object with a parameter name which matches the sType
  90836. * for that target column. This is the corollary of <i>afnSortData</i>
  90837. * for searching data.
  90838. *
  90839. * The functions defined take a single parameter:
  90840. *
  90841. * 1. `{*}` Data from the column cell to be prepared for searching
  90842. *
  90843. * Each function is expected to return:
  90844. *
  90845. * * `{string|null}` Formatted string that will be used for the searching.
  90846. *
  90847. * @type object
  90848. * @default {}
  90849. *
  90850. * @example
  90851. * $.fn.dataTable.ext.type.search['title-numeric'] = function ( d ) {
  90852. * return d.replace(/\n/g," ").replace( /<.*?>/g, "" );
  90853. * }
  90854. */
  90855. search: {},
  90856. /**
  90857. * Type based ordering.
  90858. *
  90859. * The column type tells DataTables what ordering to apply to the table
  90860. * when a column is sorted upon. The order for each type that is defined,
  90861. * is defined by the functions available in this object.
  90862. *
  90863. * Each ordering option can be described by three properties added to
  90864. * this object:
  90865. *
  90866. * * `{type}-pre` - Pre-formatting function
  90867. * * `{type}-asc` - Ascending order function
  90868. * * `{type}-desc` - Descending order function
  90869. *
  90870. * All three can be used together, only `{type}-pre` or only
  90871. * `{type}-asc` and `{type}-desc` together. It is generally recommended
  90872. * that only `{type}-pre` is used, as this provides the optimal
  90873. * implementation in terms of speed, although the others are provided
  90874. * for compatibility with existing Javascript sort functions.
  90875. *
  90876. * `{type}-pre`: Functions defined take a single parameter:
  90877. *
  90878. * 1. `{*}` Data from the column cell to be prepared for ordering
  90879. *
  90880. * And return:
  90881. *
  90882. * * `{*}` Data to be sorted upon
  90883. *
  90884. * `{type}-asc` and `{type}-desc`: Functions are typical Javascript sort
  90885. * functions, taking two parameters:
  90886. *
  90887. * 1. `{*}` Data to compare to the second parameter
  90888. * 2. `{*}` Data to compare to the first parameter
  90889. *
  90890. * And returning:
  90891. *
  90892. * * `{*}` Ordering match: <0 if first parameter should be sorted lower
  90893. * than the second parameter, ===0 if the two parameters are equal and
  90894. * >0 if the first parameter should be sorted height than the second
  90895. * parameter.
  90896. *
  90897. * @type object
  90898. * @default {}
  90899. *
  90900. * @example
  90901. * // Numeric ordering of formatted numbers with a pre-formatter
  90902. * $.extend( $.fn.dataTable.ext.type.order, {
  90903. * "string-pre": function(x) {
  90904. * a = (a === "-" || a === "") ? 0 : a.replace( /[^\d\-\.]/g, "" );
  90905. * return parseFloat( a );
  90906. * }
  90907. * } );
  90908. *
  90909. * @example
  90910. * // Case-sensitive string ordering, with no pre-formatting method
  90911. * $.extend( $.fn.dataTable.ext.order, {
  90912. * "string-case-asc": function(x,y) {
  90913. * return ((x < y) ? -1 : ((x > y) ? 1 : 0));
  90914. * },
  90915. * "string-case-desc": function(x,y) {
  90916. * return ((x < y) ? 1 : ((x > y) ? -1 : 0));
  90917. * }
  90918. * } );
  90919. */
  90920. order: {}
  90921. },
  90922. /**
  90923. * Unique DataTables instance counter
  90924. *
  90925. * @type int
  90926. * @private
  90927. */
  90928. _unique: 0,
  90929. //
  90930. // Depreciated
  90931. // The following properties are retained for backwards compatiblity only.
  90932. // The should not be used in new projects and will be removed in a future
  90933. // version
  90934. //
  90935. /**
  90936. * Version check function.
  90937. * @type function
  90938. * @depreciated Since 1.10
  90939. */
  90940. fnVersionCheck: DataTable.fnVersionCheck,
  90941. /**
  90942. * Index for what 'this' index API functions should use
  90943. * @type int
  90944. * @deprecated Since v1.10
  90945. */
  90946. iApiIndex: 0,
  90947. /**
  90948. * jQuery UI class container
  90949. * @type object
  90950. * @deprecated Since v1.10
  90951. */
  90952. oJUIClasses: {},
  90953. /**
  90954. * Software version
  90955. * @type string
  90956. * @deprecated Since v1.10
  90957. */
  90958. sVersion: DataTable.version
  90959. };
  90960. //
  90961. // Backwards compatibility. Alias to pre 1.10 Hungarian notation counter parts
  90962. //
  90963. $.extend( _ext, {
  90964. afnFiltering: _ext.search,
  90965. aTypes: _ext.type.detect,
  90966. ofnSearch: _ext.type.search,
  90967. oSort: _ext.type.order,
  90968. afnSortData: _ext.order,
  90969. aoFeatures: _ext.feature,
  90970. oApi: _ext.internal,
  90971. oStdClasses: _ext.classes,
  90972. oPagination: _ext.pager
  90973. } );
  90974. $.extend( DataTable.ext.classes, {
  90975. "sTable": "dataTable",
  90976. "sNoFooter": "no-footer",
  90977. /* Paging buttons */
  90978. "sPageButton": "paginate_button",
  90979. "sPageButtonActive": "current",
  90980. "sPageButtonDisabled": "disabled",
  90981. /* Striping classes */
  90982. "sStripeOdd": "odd",
  90983. "sStripeEven": "even",
  90984. /* Empty row */
  90985. "sRowEmpty": "dataTables_empty",
  90986. /* Features */
  90987. "sWrapper": "dataTables_wrapper",
  90988. "sFilter": "dataTables_filter",
  90989. "sInfo": "dataTables_info",
  90990. "sPaging": "dataTables_paginate paging_", /* Note that the type is postfixed */
  90991. "sLength": "dataTables_length",
  90992. "sProcessing": "dataTables_processing",
  90993. /* Sorting */
  90994. "sSortAsc": "sorting_asc",
  90995. "sSortDesc": "sorting_desc",
  90996. "sSortable": "sorting", /* Sortable in both directions */
  90997. "sSortableAsc": "sorting_asc_disabled",
  90998. "sSortableDesc": "sorting_desc_disabled",
  90999. "sSortableNone": "sorting_disabled",
  91000. "sSortColumn": "sorting_", /* Note that an int is postfixed for the sorting order */
  91001. /* Filtering */
  91002. "sFilterInput": "",
  91003. /* Page length */
  91004. "sLengthSelect": "",
  91005. /* Scrolling */
  91006. "sScrollWrapper": "dataTables_scroll",
  91007. "sScrollHead": "dataTables_scrollHead",
  91008. "sScrollHeadInner": "dataTables_scrollHeadInner",
  91009. "sScrollBody": "dataTables_scrollBody",
  91010. "sScrollFoot": "dataTables_scrollFoot",
  91011. "sScrollFootInner": "dataTables_scrollFootInner",
  91012. /* Misc */
  91013. "sHeaderTH": "",
  91014. "sFooterTH": "",
  91015. // Deprecated
  91016. "sSortJUIAsc": "",
  91017. "sSortJUIDesc": "",
  91018. "sSortJUI": "",
  91019. "sSortJUIAscAllowed": "",
  91020. "sSortJUIDescAllowed": "",
  91021. "sSortJUIWrapper": "",
  91022. "sSortIcon": "",
  91023. "sJUIHeader": "",
  91024. "sJUIFooter": ""
  91025. } );
  91026. (function() {
  91027. // Reused strings for better compression. Closure compiler appears to have a
  91028. // weird edge case where it is trying to expand strings rather than use the
  91029. // variable version. This results in about 200 bytes being added, for very
  91030. // little preference benefit since it this run on script load only.
  91031. var _empty = '';
  91032. _empty = '';
  91033. var _stateDefault = _empty + 'ui-state-default';
  91034. var _sortIcon = _empty + 'css_right ui-icon ui-icon-';
  91035. var _headerFooter = _empty + 'fg-toolbar ui-toolbar ui-widget-header ui-helper-clearfix';
  91036. $.extend( DataTable.ext.oJUIClasses, DataTable.ext.classes, {
  91037. /* Full numbers paging buttons */
  91038. "sPageButton": "fg-button ui-button "+_stateDefault,
  91039. "sPageButtonActive": "ui-state-disabled",
  91040. "sPageButtonDisabled": "ui-state-disabled",
  91041. /* Features */
  91042. "sPaging": "dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi "+
  91043. "ui-buttonset-multi paging_", /* Note that the type is postfixed */
  91044. /* Sorting */
  91045. "sSortAsc": _stateDefault+" sorting_asc",
  91046. "sSortDesc": _stateDefault+" sorting_desc",
  91047. "sSortable": _stateDefault+" sorting",
  91048. "sSortableAsc": _stateDefault+" sorting_asc_disabled",
  91049. "sSortableDesc": _stateDefault+" sorting_desc_disabled",
  91050. "sSortableNone": _stateDefault+" sorting_disabled",
  91051. "sSortJUIAsc": _sortIcon+"triangle-1-n",
  91052. "sSortJUIDesc": _sortIcon+"triangle-1-s",
  91053. "sSortJUI": _sortIcon+"carat-2-n-s",
  91054. "sSortJUIAscAllowed": _sortIcon+"carat-1-n",
  91055. "sSortJUIDescAllowed": _sortIcon+"carat-1-s",
  91056. "sSortJUIWrapper": "DataTables_sort_wrapper",
  91057. "sSortIcon": "DataTables_sort_icon",
  91058. /* Scrolling */
  91059. "sScrollHead": "dataTables_scrollHead "+_stateDefault,
  91060. "sScrollFoot": "dataTables_scrollFoot "+_stateDefault,
  91061. /* Misc */
  91062. "sHeaderTH": _stateDefault,
  91063. "sFooterTH": _stateDefault,
  91064. "sJUIHeader": _headerFooter+" ui-corner-tl ui-corner-tr",
  91065. "sJUIFooter": _headerFooter+" ui-corner-bl ui-corner-br"
  91066. } );
  91067. }());
  91068. var extPagination = DataTable.ext.pager;
  91069. function _numbers ( page, pages ) {
  91070. var
  91071. numbers = [],
  91072. buttons = extPagination.numbers_length,
  91073. half = Math.floor( buttons / 2 ),
  91074. i = 1;
  91075. if ( pages <= buttons ) {
  91076. numbers = _range( 0, pages );
  91077. }
  91078. else if ( page <= half ) {
  91079. numbers = _range( 0, buttons-2 );
  91080. numbers.push( 'ellipsis' );
  91081. numbers.push( pages-1 );
  91082. }
  91083. else if ( page >= pages - 1 - half ) {
  91084. numbers = _range( pages-(buttons-2), pages );
  91085. numbers.splice( 0, 0, 'ellipsis' ); // no unshift in ie6
  91086. numbers.splice( 0, 0, 0 );
  91087. }
  91088. else {
  91089. numbers = _range( page-half+2, page+half-1 );
  91090. numbers.push( 'ellipsis' );
  91091. numbers.push( pages-1 );
  91092. numbers.splice( 0, 0, 'ellipsis' );
  91093. numbers.splice( 0, 0, 0 );
  91094. }
  91095. numbers.DT_el = 'span';
  91096. return numbers;
  91097. }
  91098. $.extend( extPagination, {
  91099. simple: function ( page, pages ) {
  91100. return [ 'previous', 'next' ];
  91101. },
  91102. full: function ( page, pages ) {
  91103. return [ 'first', 'previous', 'next', 'last' ];
  91104. },
  91105. numbers: function ( page, pages ) {
  91106. return [ _numbers(page, pages) ];
  91107. },
  91108. simple_numbers: function ( page, pages ) {
  91109. return [ 'previous', _numbers(page, pages), 'next' ];
  91110. },
  91111. full_numbers: function ( page, pages ) {
  91112. return [ 'first', 'previous', _numbers(page, pages), 'next', 'last' ];
  91113. },
  91114. // For testing and plug-ins to use
  91115. _numbers: _numbers,
  91116. // Number of number buttons (including ellipsis) to show. _Must be odd!_
  91117. numbers_length: 7
  91118. } );
  91119. $.extend( true, DataTable.ext.renderer, {
  91120. pageButton: {
  91121. _: function ( settings, host, idx, buttons, page, pages ) {
  91122. var classes = settings.oClasses;
  91123. var lang = settings.oLanguage.oPaginate;
  91124. var btnDisplay, btnClass, counter=0;
  91125. var attach = function( container, buttons ) {
  91126. var i, ien, node, button;
  91127. var clickHandler = function ( e ) {
  91128. _fnPageChange( settings, e.data.action, true );
  91129. };
  91130. for ( i=0, ien=buttons.length ; i<ien ; i++ ) {
  91131. button = buttons[i];
  91132. if ( $.isArray( button ) ) {
  91133. var inner = $( '<'+(button.DT_el || 'div')+'/>' )
  91134. .appendTo( container );
  91135. attach( inner, button );
  91136. }
  91137. else {
  91138. btnDisplay = null;
  91139. btnClass = '';
  91140. switch ( button ) {
  91141. case 'ellipsis':
  91142. container.append('<span class="ellipsis">&#x2026;</span>');
  91143. break;
  91144. case 'first':
  91145. btnDisplay = lang.sFirst;
  91146. btnClass = button + (page > 0 ?
  91147. '' : ' '+classes.sPageButtonDisabled);
  91148. break;
  91149. case 'previous':
  91150. btnDisplay = lang.sPrevious;
  91151. btnClass = button + (page > 0 ?
  91152. '' : ' '+classes.sPageButtonDisabled);
  91153. break;
  91154. case 'next':
  91155. btnDisplay = lang.sNext;
  91156. btnClass = button + (page < pages-1 ?
  91157. '' : ' '+classes.sPageButtonDisabled);
  91158. break;
  91159. case 'last':
  91160. btnDisplay = lang.sLast;
  91161. btnClass = button + (page < pages-1 ?
  91162. '' : ' '+classes.sPageButtonDisabled);
  91163. break;
  91164. default:
  91165. btnDisplay = button + 1;
  91166. btnClass = page === button ?
  91167. classes.sPageButtonActive : '';
  91168. break;
  91169. }
  91170. if ( btnDisplay !== null ) {
  91171. node = $('<a>', {
  91172. 'class': classes.sPageButton+' '+btnClass,
  91173. 'aria-controls': settings.sTableId,
  91174. 'data-dt-idx': counter,
  91175. 'tabindex': settings.iTabIndex,
  91176. 'id': idx === 0 && typeof button === 'string' ?
  91177. settings.sTableId +'_'+ button :
  91178. null
  91179. } )
  91180. .html( btnDisplay )
  91181. .appendTo( container );
  91182. _fnBindAction(
  91183. node, {action: button}, clickHandler
  91184. );
  91185. counter++;
  91186. }
  91187. }
  91188. }
  91189. };
  91190. // IE9 throws an 'unknown error' if document.activeElement is used
  91191. // inside an iframe or frame. Try / catch the error. Not good for
  91192. // accessibility, but neither are frames.
  91193. var activeEl;
  91194. try {
  91195. // Because this approach is destroying and recreating the paging
  91196. // elements, focus is lost on the select button which is bad for
  91197. // accessibility. So we want to restore focus once the draw has
  91198. // completed
  91199. activeEl = $(host).find(document.activeElement).data('dt-idx');
  91200. }
  91201. catch (e) {}
  91202. attach( $(host).empty(), buttons );
  91203. if ( activeEl ) {
  91204. $(host).find( '[data-dt-idx='+activeEl+']' ).focus();
  91205. }
  91206. }
  91207. }
  91208. } );
  91209. // Built in type detection. See model.ext.aTypes for information about
  91210. // what is required from this methods.
  91211. $.extend( DataTable.ext.type.detect, [
  91212. // Plain numbers - first since V8 detects some plain numbers as dates
  91213. // e.g. Date.parse('55') (but not all, e.g. Date.parse('22')...).
  91214. function ( d, settings )
  91215. {
  91216. var decimal = settings.oLanguage.sDecimal;
  91217. return _isNumber( d, decimal ) ? 'num'+decimal : null;
  91218. },
  91219. // Dates (only those recognised by the browser's Date.parse)
  91220. function ( d, settings )
  91221. {
  91222. // V8 will remove any unknown characters at the start and end of the
  91223. // expression, leading to false matches such as `$245.12` or `10%` being
  91224. // a valid date. See forum thread 18941 for detail.
  91225. if ( d && !(d instanceof Date) && ( ! _re_date_start.test(d) || ! _re_date_end.test(d) ) ) {
  91226. return null;
  91227. }
  91228. var parsed = Date.parse(d);
  91229. return (parsed !== null && !isNaN(parsed)) || _empty(d) ? 'date' : null;
  91230. },
  91231. // Formatted numbers
  91232. function ( d, settings )
  91233. {
  91234. var decimal = settings.oLanguage.sDecimal;
  91235. return _isNumber( d, decimal, true ) ? 'num-fmt'+decimal : null;
  91236. },
  91237. // HTML numeric
  91238. function ( d, settings )
  91239. {
  91240. var decimal = settings.oLanguage.sDecimal;
  91241. return _htmlNumeric( d, decimal ) ? 'html-num'+decimal : null;
  91242. },
  91243. // HTML numeric, formatted
  91244. function ( d, settings )
  91245. {
  91246. var decimal = settings.oLanguage.sDecimal;
  91247. return _htmlNumeric( d, decimal, true ) ? 'html-num-fmt'+decimal : null;
  91248. },
  91249. // HTML (this is strict checking - there must be html)
  91250. function ( d, settings )
  91251. {
  91252. return _empty( d ) || (typeof d === 'string' && d.indexOf('<') !== -1) ?
  91253. 'html' : null;
  91254. }
  91255. ] );
  91256. // Filter formatting functions. See model.ext.ofnSearch for information about
  91257. // what is required from these methods.
  91258. //
  91259. // Note that additional search methods are added for the html numbers and
  91260. // html formatted numbers by `_addNumericSort()` when we know what the decimal
  91261. // place is
  91262. $.extend( DataTable.ext.type.search, {
  91263. html: function ( data ) {
  91264. return _empty(data) ?
  91265. data :
  91266. typeof data === 'string' ?
  91267. data
  91268. .replace( _re_new_lines, " " )
  91269. .replace( _re_html, "" ) :
  91270. '';
  91271. },
  91272. string: function ( data ) {
  91273. return _empty(data) ?
  91274. data :
  91275. typeof data === 'string' ?
  91276. data.replace( _re_new_lines, " " ) :
  91277. data;
  91278. }
  91279. } );
  91280. var __numericReplace = function ( d, decimalPlace, re1, re2 ) {
  91281. if ( d !== 0 && (!d || d === '-') ) {
  91282. return -Infinity;
  91283. }
  91284. // If a decimal place other than `.` is used, it needs to be given to the
  91285. // function so we can detect it and replace with a `.` which is the only
  91286. // decimal place Javascript recognises - it is not locale aware.
  91287. if ( decimalPlace ) {
  91288. d = _numToDecimal( d, decimalPlace );
  91289. }
  91290. if ( d.replace ) {
  91291. if ( re1 ) {
  91292. d = d.replace( re1, '' );
  91293. }
  91294. if ( re2 ) {
  91295. d = d.replace( re2, '' );
  91296. }
  91297. }
  91298. return d * 1;
  91299. };
  91300. // Add the numeric 'deformatting' functions for sorting and search. This is done
  91301. // in a function to provide an easy ability for the language options to add
  91302. // additional methods if a non-period decimal place is used.
  91303. function _addNumericSort ( decimalPlace ) {
  91304. $.each(
  91305. {
  91306. // Plain numbers
  91307. "num": function ( d ) {
  91308. return __numericReplace( d, decimalPlace );
  91309. },
  91310. // Formatted numbers
  91311. "num-fmt": function ( d ) {
  91312. return __numericReplace( d, decimalPlace, _re_formatted_numeric );
  91313. },
  91314. // HTML numeric
  91315. "html-num": function ( d ) {
  91316. return __numericReplace( d, decimalPlace, _re_html );
  91317. },
  91318. // HTML numeric, formatted
  91319. "html-num-fmt": function ( d ) {
  91320. return __numericReplace( d, decimalPlace, _re_html, _re_formatted_numeric );
  91321. }
  91322. },
  91323. function ( key, fn ) {
  91324. // Add the ordering method
  91325. _ext.type.order[ key+decimalPlace+'-pre' ] = fn;
  91326. // For HTML types add a search formatter that will strip the HTML
  91327. if ( key.match(/^html\-/) ) {
  91328. _ext.type.search[ key+decimalPlace ] = _ext.type.search.html;
  91329. }
  91330. }
  91331. );
  91332. }
  91333. // Default sort methods
  91334. $.extend( _ext.type.order, {
  91335. // Dates
  91336. "date-pre": function ( d ) {
  91337. return Date.parse( d ) || 0;
  91338. },
  91339. // html
  91340. "html-pre": function ( a ) {
  91341. return _empty(a) ?
  91342. '' :
  91343. a.replace ?
  91344. a.replace( /<.*?>/g, "" ).toLowerCase() :
  91345. a+'';
  91346. },
  91347. // string
  91348. "string-pre": function ( a ) {
  91349. // This is a little complex, but faster than always calling toString,
  91350. // http://jsperf.com/tostring-v-check
  91351. return _empty(a) ?
  91352. '' :
  91353. typeof a === 'string' ?
  91354. a.toLowerCase() :
  91355. ! a.toString ?
  91356. '' :
  91357. a.toString();
  91358. },
  91359. // string-asc and -desc are retained only for compatibility with the old
  91360. // sort methods
  91361. "string-asc": function ( x, y ) {
  91362. return ((x < y) ? -1 : ((x > y) ? 1 : 0));
  91363. },
  91364. "string-desc": function ( x, y ) {
  91365. return ((x < y) ? 1 : ((x > y) ? -1 : 0));
  91366. }
  91367. } );
  91368. // Numeric sorting types - order doesn't matter here
  91369. _addNumericSort( '' );
  91370. $.extend( true, DataTable.ext.renderer, {
  91371. header: {
  91372. _: function ( settings, cell, column, classes ) {
  91373. // No additional mark-up required
  91374. // Attach a sort listener to update on sort - note that using the
  91375. // `DT` namespace will allow the event to be removed automatically
  91376. // on destroy, while the `dt` namespaced event is the one we are
  91377. // listening for
  91378. $(settings.nTable).on( 'order.dt.DT', function ( e, ctx, sorting, columns ) {
  91379. if ( settings !== ctx ) { // need to check this this is the host
  91380. return; // table, not a nested one
  91381. }
  91382. var colIdx = column.idx;
  91383. cell
  91384. .removeClass(
  91385. column.sSortingClass +' '+
  91386. classes.sSortAsc +' '+
  91387. classes.sSortDesc
  91388. )
  91389. .addClass( columns[ colIdx ] == 'asc' ?
  91390. classes.sSortAsc : columns[ colIdx ] == 'desc' ?
  91391. classes.sSortDesc :
  91392. column.sSortingClass
  91393. );
  91394. } );
  91395. },
  91396. jqueryui: function ( settings, cell, column, classes ) {
  91397. $('<div/>')
  91398. .addClass( classes.sSortJUIWrapper )
  91399. .append( cell.contents() )
  91400. .append( $('<span/>')
  91401. .addClass( classes.sSortIcon+' '+column.sSortingClassJUI )
  91402. )
  91403. .appendTo( cell );
  91404. // Attach a sort listener to update on sort
  91405. $(settings.nTable).on( 'order.dt.DT', function ( e, ctx, sorting, columns ) {
  91406. if ( settings !== ctx ) {
  91407. return;
  91408. }
  91409. var colIdx = column.idx;
  91410. cell
  91411. .removeClass( classes.sSortAsc +" "+classes.sSortDesc )
  91412. .addClass( columns[ colIdx ] == 'asc' ?
  91413. classes.sSortAsc : columns[ colIdx ] == 'desc' ?
  91414. classes.sSortDesc :
  91415. column.sSortingClass
  91416. );
  91417. cell
  91418. .find( 'span.'+classes.sSortIcon )
  91419. .removeClass(
  91420. classes.sSortJUIAsc +" "+
  91421. classes.sSortJUIDesc +" "+
  91422. classes.sSortJUI +" "+
  91423. classes.sSortJUIAscAllowed +" "+
  91424. classes.sSortJUIDescAllowed
  91425. )
  91426. .addClass( columns[ colIdx ] == 'asc' ?
  91427. classes.sSortJUIAsc : columns[ colIdx ] == 'desc' ?
  91428. classes.sSortJUIDesc :
  91429. column.sSortingClassJUI
  91430. );
  91431. } );
  91432. }
  91433. }
  91434. } );
  91435. /*
  91436. * Public helper functions. These aren't used internally by DataTables, or
  91437. * called by any of the options passed into DataTables, but they can be used
  91438. * externally by developers working with DataTables. They are helper functions
  91439. * to make working with DataTables a little bit easier.
  91440. */
  91441. /**
  91442. * Helpers for `columns.render`.
  91443. *
  91444. * The options defined here can be used with the `columns.render` initialisation
  91445. * option to provide a display renderer. The following functions are defined:
  91446. *
  91447. * * `number` - Will format numeric data (defined by `columns.data`) for
  91448. * display, retaining the original unformatted data for sorting and filtering.
  91449. * It takes 5 parameters:
  91450. * * `string` - Thousands grouping separator
  91451. * * `string` - Decimal point indicator
  91452. * * `integer` - Number of decimal points to show
  91453. * * `string` (optional) - Prefix.
  91454. * * `string` (optional) - Postfix (/suffix).
  91455. *
  91456. * @example
  91457. * // Column definition using the number renderer
  91458. * {
  91459. * data: "salary",
  91460. * render: $.fn.dataTable.render.number( '\'', '.', 0, '$' )
  91461. * }
  91462. *
  91463. * @namespace
  91464. */
  91465. DataTable.render = {
  91466. number: function ( thousands, decimal, precision, prefix, postfix ) {
  91467. return {
  91468. display: function ( d ) {
  91469. if ( typeof d !== 'number' && typeof d !== 'string' ) {
  91470. return d;
  91471. }
  91472. var negative = d < 0 ? '-' : '';
  91473. d = Math.abs( parseFloat( d ) );
  91474. var intPart = parseInt( d, 10 );
  91475. var floatPart = precision ?
  91476. decimal+(d - intPart).toFixed( precision ).substring( 2 ):
  91477. '';
  91478. return negative + (prefix||'') +
  91479. intPart.toString().replace(
  91480. /\B(?=(\d{3})+(?!\d))/g, thousands
  91481. ) +
  91482. floatPart +
  91483. (postfix||'');
  91484. }
  91485. };
  91486. }
  91487. };
  91488. /*
  91489. * This is really a good bit rubbish this method of exposing the internal methods
  91490. * publicly... - To be fixed in 2.0 using methods on the prototype
  91491. */
  91492. /**
  91493. * Create a wrapper function for exporting an internal functions to an external API.
  91494. * @param {string} fn API function name
  91495. * @returns {function} wrapped function
  91496. * @memberof DataTable#internal
  91497. */
  91498. function _fnExternApiFunc (fn)
  91499. {
  91500. return function() {
  91501. var args = [_fnSettingsFromNode( this[DataTable.ext.iApiIndex] )].concat(
  91502. Array.prototype.slice.call(arguments)
  91503. );
  91504. return DataTable.ext.internal[fn].apply( this, args );
  91505. };
  91506. }
  91507. /**
  91508. * Reference to internal functions for use by plug-in developers. Note that
  91509. * these methods are references to internal functions and are considered to be
  91510. * private. If you use these methods, be aware that they are liable to change
  91511. * between versions.
  91512. * @namespace
  91513. */
  91514. $.extend( DataTable.ext.internal, {
  91515. _fnExternApiFunc: _fnExternApiFunc,
  91516. _fnBuildAjax: _fnBuildAjax,
  91517. _fnAjaxUpdate: _fnAjaxUpdate,
  91518. _fnAjaxParameters: _fnAjaxParameters,
  91519. _fnAjaxUpdateDraw: _fnAjaxUpdateDraw,
  91520. _fnAjaxDataSrc: _fnAjaxDataSrc,
  91521. _fnAddColumn: _fnAddColumn,
  91522. _fnColumnOptions: _fnColumnOptions,
  91523. _fnAdjustColumnSizing: _fnAdjustColumnSizing,
  91524. _fnVisibleToColumnIndex: _fnVisibleToColumnIndex,
  91525. _fnColumnIndexToVisible: _fnColumnIndexToVisible,
  91526. _fnVisbleColumns: _fnVisbleColumns,
  91527. _fnGetColumns: _fnGetColumns,
  91528. _fnColumnTypes: _fnColumnTypes,
  91529. _fnApplyColumnDefs: _fnApplyColumnDefs,
  91530. _fnHungarianMap: _fnHungarianMap,
  91531. _fnCamelToHungarian: _fnCamelToHungarian,
  91532. _fnLanguageCompat: _fnLanguageCompat,
  91533. _fnBrowserDetect: _fnBrowserDetect,
  91534. _fnAddData: _fnAddData,
  91535. _fnAddTr: _fnAddTr,
  91536. _fnNodeToDataIndex: _fnNodeToDataIndex,
  91537. _fnNodeToColumnIndex: _fnNodeToColumnIndex,
  91538. _fnGetCellData: _fnGetCellData,
  91539. _fnSetCellData: _fnSetCellData,
  91540. _fnSplitObjNotation: _fnSplitObjNotation,
  91541. _fnGetObjectDataFn: _fnGetObjectDataFn,
  91542. _fnSetObjectDataFn: _fnSetObjectDataFn,
  91543. _fnGetDataMaster: _fnGetDataMaster,
  91544. _fnClearTable: _fnClearTable,
  91545. _fnDeleteIndex: _fnDeleteIndex,
  91546. _fnInvalidate: _fnInvalidate,
  91547. _fnGetRowElements: _fnGetRowElements,
  91548. _fnCreateTr: _fnCreateTr,
  91549. _fnBuildHead: _fnBuildHead,
  91550. _fnDrawHead: _fnDrawHead,
  91551. _fnDraw: _fnDraw,
  91552. _fnReDraw: _fnReDraw,
  91553. _fnAddOptionsHtml: _fnAddOptionsHtml,
  91554. _fnDetectHeader: _fnDetectHeader,
  91555. _fnGetUniqueThs: _fnGetUniqueThs,
  91556. _fnFeatureHtmlFilter: _fnFeatureHtmlFilter,
  91557. _fnFilterComplete: _fnFilterComplete,
  91558. _fnFilterCustom: _fnFilterCustom,
  91559. _fnFilterColumn: _fnFilterColumn,
  91560. _fnFilter: _fnFilter,
  91561. _fnFilterCreateSearch: _fnFilterCreateSearch,
  91562. _fnEscapeRegex: _fnEscapeRegex,
  91563. _fnFilterData: _fnFilterData,
  91564. _fnFeatureHtmlInfo: _fnFeatureHtmlInfo,
  91565. _fnUpdateInfo: _fnUpdateInfo,
  91566. _fnInfoMacros: _fnInfoMacros,
  91567. _fnInitialise: _fnInitialise,
  91568. _fnInitComplete: _fnInitComplete,
  91569. _fnLengthChange: _fnLengthChange,
  91570. _fnFeatureHtmlLength: _fnFeatureHtmlLength,
  91571. _fnFeatureHtmlPaginate: _fnFeatureHtmlPaginate,
  91572. _fnPageChange: _fnPageChange,
  91573. _fnFeatureHtmlProcessing: _fnFeatureHtmlProcessing,
  91574. _fnProcessingDisplay: _fnProcessingDisplay,
  91575. _fnFeatureHtmlTable: _fnFeatureHtmlTable,
  91576. _fnScrollDraw: _fnScrollDraw,
  91577. _fnApplyToChildren: _fnApplyToChildren,
  91578. _fnCalculateColumnWidths: _fnCalculateColumnWidths,
  91579. _fnThrottle: _fnThrottle,
  91580. _fnConvertToWidth: _fnConvertToWidth,
  91581. _fnGetWidestNode: _fnGetWidestNode,
  91582. _fnGetMaxLenString: _fnGetMaxLenString,
  91583. _fnStringToCss: _fnStringToCss,
  91584. _fnScrollBarWidth: _fnScrollBarWidth,
  91585. _fnSortFlatten: _fnSortFlatten,
  91586. _fnSort: _fnSort,
  91587. _fnSortAria: _fnSortAria,
  91588. _fnSortListener: _fnSortListener,
  91589. _fnSortAttachListener: _fnSortAttachListener,
  91590. _fnSortingClasses: _fnSortingClasses,
  91591. _fnSortData: _fnSortData,
  91592. _fnSaveState: _fnSaveState,
  91593. _fnLoadState: _fnLoadState,
  91594. _fnSettingsFromNode: _fnSettingsFromNode,
  91595. _fnLog: _fnLog,
  91596. _fnMap: _fnMap,
  91597. _fnBindAction: _fnBindAction,
  91598. _fnCallbackReg: _fnCallbackReg,
  91599. _fnCallbackFire: _fnCallbackFire,
  91600. _fnLengthOverflow: _fnLengthOverflow,
  91601. _fnRenderer: _fnRenderer,
  91602. _fnDataSource: _fnDataSource,
  91603. _fnRowAttributes: _fnRowAttributes,
  91604. _fnCalculateEnd: function () {} // Used by a lot of plug-ins, but redundant
  91605. // in 1.10, so this dead-end function is
  91606. // added to prevent errors
  91607. } );
  91608. // jQuery access
  91609. $.fn.dataTable = DataTable;
  91610. // Legacy aliases
  91611. $.fn.dataTableSettings = DataTable.settings;
  91612. $.fn.dataTableExt = DataTable.ext;
  91613. // With a capital `D` we return a DataTables API instance rather than a
  91614. // jQuery object
  91615. $.fn.DataTable = function ( opts ) {
  91616. return $(this).dataTable( opts ).api();
  91617. };
  91618. // All properties that are available to $.fn.dataTable should also be
  91619. // available on $.fn.DataTable
  91620. $.each( DataTable, function ( prop, val ) {
  91621. $.fn.DataTable[ prop ] = val;
  91622. } );
  91623. // Information about events fired by DataTables - for documentation.
  91624. /**
  91625. * Draw event, fired whenever the table is redrawn on the page, at the same
  91626. * point as fnDrawCallback. This may be useful for binding events or
  91627. * performing calculations when the table is altered at all.
  91628. * @name DataTable#draw.dt
  91629. * @event
  91630. * @param {event} e jQuery event object
  91631. * @param {object} o DataTables settings object {@link DataTable.models.oSettings}
  91632. */
  91633. /**
  91634. * Search event, fired when the searching applied to the table (using the
  91635. * built-in global search, or column filters) is altered.
  91636. * @name DataTable#search.dt
  91637. * @event
  91638. * @param {event} e jQuery event object
  91639. * @param {object} o DataTables settings object {@link DataTable.models.oSettings}
  91640. */
  91641. /**
  91642. * Page change event, fired when the paging of the table is altered.
  91643. * @name DataTable#page.dt
  91644. * @event
  91645. * @param {event} e jQuery event object
  91646. * @param {object} o DataTables settings object {@link DataTable.models.oSettings}
  91647. */
  91648. /**
  91649. * Order event, fired when the ordering applied to the table is altered.
  91650. * @name DataTable#order.dt
  91651. * @event
  91652. * @param {event} e jQuery event object
  91653. * @param {object} o DataTables settings object {@link DataTable.models.oSettings}
  91654. */
  91655. /**
  91656. * DataTables initialisation complete event, fired when the table is fully
  91657. * drawn, including Ajax data loaded, if Ajax data is required.
  91658. * @name DataTable#init.dt
  91659. * @event
  91660. * @param {event} e jQuery event object
  91661. * @param {object} oSettings DataTables settings object
  91662. * @param {object} json The JSON object request from the server - only
  91663. * present if client-side Ajax sourced data is used</li></ol>
  91664. */
  91665. /**
  91666. * State save event, fired when the table has changed state a new state save
  91667. * is required. This event allows modification of the state saving object
  91668. * prior to actually doing the save, including addition or other state
  91669. * properties (for plug-ins) or modification of a DataTables core property.
  91670. * @name DataTable#stateSaveParams.dt
  91671. * @event
  91672. * @param {event} e jQuery event object
  91673. * @param {object} oSettings DataTables settings object
  91674. * @param {object} json The state information to be saved
  91675. */
  91676. /**
  91677. * State load event, fired when the table is loading state from the stored
  91678. * data, but prior to the settings object being modified by the saved state
  91679. * - allowing modification of the saved state is required or loading of
  91680. * state for a plug-in.
  91681. * @name DataTable#stateLoadParams.dt
  91682. * @event
  91683. * @param {event} e jQuery event object
  91684. * @param {object} oSettings DataTables settings object
  91685. * @param {object} json The saved state information
  91686. */
  91687. /**
  91688. * State loaded event, fired when state has been loaded from stored data and
  91689. * the settings object has been modified by the loaded data.
  91690. * @name DataTable#stateLoaded.dt
  91691. * @event
  91692. * @param {event} e jQuery event object
  91693. * @param {object} oSettings DataTables settings object
  91694. * @param {object} json The saved state information
  91695. */
  91696. /**
  91697. * Processing event, fired when DataTables is doing some kind of processing
  91698. * (be it, order, searcg or anything else). It can be used to indicate to
  91699. * the end user that there is something happening, or that something has
  91700. * finished.
  91701. * @name DataTable#processing.dt
  91702. * @event
  91703. * @param {event} e jQuery event object
  91704. * @param {object} oSettings DataTables settings object
  91705. * @param {boolean} bShow Flag for if DataTables is doing processing or not
  91706. */
  91707. /**
  91708. * Ajax (XHR) event, fired whenever an Ajax request is completed from a
  91709. * request to made to the server for new data. This event is called before
  91710. * DataTables processed the returned data, so it can also be used to pre-
  91711. * process the data returned from the server, if needed.
  91712. *
  91713. * Note that this trigger is called in `fnServerData`, if you override
  91714. * `fnServerData` and which to use this event, you need to trigger it in you
  91715. * success function.
  91716. * @name DataTable#xhr.dt
  91717. * @event
  91718. * @param {event} e jQuery event object
  91719. * @param {object} o DataTables settings object {@link DataTable.models.oSettings}
  91720. * @param {object} json JSON returned from the server
  91721. *
  91722. * @example
  91723. * // Use a custom property returned from the server in another DOM element
  91724. * $('#table').dataTable().on('xhr.dt', function (e, settings, json) {
  91725. * $('#status').html( json.status );
  91726. * } );
  91727. *
  91728. * @example
  91729. * // Pre-process the data returned from the server
  91730. * $('#table').dataTable().on('xhr.dt', function (e, settings, json) {
  91731. * for ( var i=0, ien=json.aaData.length ; i<ien ; i++ ) {
  91732. * json.aaData[i].sum = json.aaData[i].one + json.aaData[i].two;
  91733. * }
  91734. * // Note no return - manipulate the data directly in the JSON object.
  91735. * } );
  91736. */
  91737. /**
  91738. * Destroy event, fired when the DataTable is destroyed by calling fnDestroy
  91739. * or passing the bDestroy:true parameter in the initialisation object. This
  91740. * can be used to remove bound events, added DOM nodes, etc.
  91741. * @name DataTable#destroy.dt
  91742. * @event
  91743. * @param {event} e jQuery event object
  91744. * @param {object} o DataTables settings object {@link DataTable.models.oSettings}
  91745. */
  91746. /**
  91747. * Page length change event, fired when number of records to show on each
  91748. * page (the length) is changed.
  91749. * @name DataTable#length.dt
  91750. * @event
  91751. * @param {event} e jQuery event object
  91752. * @param {object} o DataTables settings object {@link DataTable.models.oSettings}
  91753. * @param {integer} len New length
  91754. */
  91755. /**
  91756. * Column sizing has changed.
  91757. * @name DataTable#column-sizing.dt
  91758. * @event
  91759. * @param {event} e jQuery event object
  91760. * @param {object} o DataTables settings object {@link DataTable.models.oSettings}
  91761. */
  91762. /**
  91763. * Column visibility has changed.
  91764. * @name DataTable#column-visibility.dt
  91765. * @event
  91766. * @param {event} e jQuery event object
  91767. * @param {object} o DataTables settings object {@link DataTable.models.oSettings}
  91768. * @param {int} column Column index
  91769. * @param {bool} vis `false` if column now hidden, or `true` if visible
  91770. */
  91771. return $.fn.dataTable;
  91772. }));
  91773. }(window, document));
  91774. jQuery.fn.dataTable.ext.builder = "dt\/pdfmake-0.1.18,dt-1.10.8,af-2.0.0,b-1.0.1,b-colvis-1.0.1,b-flash-1.0.1,b-html5-1.0.1,b-print-1.0.1,cr-1.2.0,fc-3.1.0,fh-3.0.0,kt-2.0.0,r-1.0.7,rr-1.0.0,sc-1.3.0,se-1.0.0";
  91775. /*! AutoFill 2.0.0
  91776. * ©2008-2015 SpryMedia Ltd - datatables.net/license
  91777. */
  91778. /**
  91779. * @summary AutoFill
  91780. * @description Add Excel like click and drag auto-fill options to DataTables
  91781. * @version 2.0.0
  91782. * @file dataTables.autoFill.js
  91783. * @author SpryMedia Ltd (www.sprymedia.co.uk)
  91784. * @contact www.sprymedia.co.uk/contact
  91785. * @copyright Copyright 2010-2015 SpryMedia Ltd.
  91786. *
  91787. * This source file is free software, available under the following license:
  91788. * MIT license - http://datatables.net/license/mit
  91789. *
  91790. * This source file is distributed in the hope that it will be useful, but
  91791. * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  91792. * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
  91793. *
  91794. * For details please refer to: http://www.datatables.net
  91795. */
  91796. (function( window, document, undefined ) {
  91797. var factory = function( $, DataTable ) {
  91798. "use strict";
  91799. var _instance = 0;
  91800. /**
  91801. * AutoFill provides Excel like auto-fill features for a DataTable
  91802. *
  91803. * @class AutoFill
  91804. * @constructor
  91805. * @param {object} oTD DataTables settings object
  91806. * @param {object} oConfig Configuration object for AutoFill
  91807. */
  91808. var AutoFill = function( dt, opts )
  91809. {
  91810. if ( ! DataTable.versionCheck || ! DataTable.versionCheck( '1.10.8' ) ) {
  91811. throw( "Warning: AutoFill requires DataTables 1.10.8 or greater");
  91812. }
  91813. // User and defaults configuration object
  91814. this.c = $.extend( true, {},
  91815. DataTable.defaults.autoFill,
  91816. AutoFill.defaults,
  91817. opts
  91818. );
  91819. /**
  91820. * @namespace Settings object which contains customisable information for AutoFill instance
  91821. */
  91822. this.s = {
  91823. /** @type {DataTable.Api} DataTables' API instance */
  91824. dt: new DataTable.Api( dt ),
  91825. /** @type {String} Unique namespace for events attached to the document */
  91826. namespace: '.autoFill'+(_instance++),
  91827. /** @type {Object} Cached dimension information for use in the mouse move event handler */
  91828. scroll: {},
  91829. /** @type {integer} Interval object used for smooth scrolling */
  91830. scrollInterval: null
  91831. };
  91832. /**
  91833. * @namespace Common and useful DOM elements for the class instance
  91834. */
  91835. this.dom = {
  91836. /** @type {jQuery} AutoFill handle */
  91837. handle: $('<div class="dt-autofill-handle"/>'),
  91838. /**
  91839. * @type {Object} Selected cells outline - Need to use 4 elements,
  91840. * otherwise the mouse over if you back into the selected rectangle
  91841. * will be over that element, rather than the cells!
  91842. */
  91843. select: {
  91844. top: $('<div class="dt-autofill-select top"/>'),
  91845. right: $('<div class="dt-autofill-select right"/>'),
  91846. bottom: $('<div class="dt-autofill-select bottom"/>'),
  91847. left: $('<div class="dt-autofill-select left"/>')
  91848. },
  91849. /** @type {jQuery} Fill type chooser background */
  91850. background: $('<div class="dt-autofill-background"/>'),
  91851. /** @type {jQuery} Fill type chooser */
  91852. list: $('<div class="dt-autofill-list">'+this.s.dt.i18n('autoFill.info', '')+'<ul/></div>'),
  91853. /** @type {jQuery} DataTables scrolling container */
  91854. dtScroll: null
  91855. };
  91856. /* Constructor logic */
  91857. this._constructor();
  91858. };
  91859. AutoFill.prototype = {
  91860. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  91861. * Constructor
  91862. */
  91863. /**
  91864. * Initialise the RowReorder instance
  91865. *
  91866. * @private
  91867. */
  91868. _constructor: function ()
  91869. {
  91870. var that = this;
  91871. var dt = this.s.dt;
  91872. var dtScroll = $('div.dataTables_scrollBody', this.s.dt.table().container());
  91873. if ( dtScroll.length ) {
  91874. this.dom.dtScroll = dtScroll;
  91875. // Need to scroll container to be the offset parent
  91876. if ( dtScroll.css('position') === 'static' ) {
  91877. dtScroll.css( 'position', 'relative' );
  91878. }
  91879. }
  91880. this._focusListener();
  91881. this.dom.handle.on( 'mousedown', function (e) {
  91882. that._mousedown( e );
  91883. return false;
  91884. } );
  91885. dt.on( 'destroy.autoFill', function () {
  91886. dt.off( '.autoFill' );
  91887. $(dt.table().body()).off( that.s.namespace );
  91888. $(document.body).off( that.s.namespace );
  91889. } );
  91890. },
  91891. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  91892. * Private methods
  91893. */
  91894. /**
  91895. * Display the AutoFill drag handle by appending it to a table cell. This
  91896. * is the opposite of the _detach method.
  91897. *
  91898. * @param {node} node TD/TH cell to insert the handle into
  91899. * @private
  91900. */
  91901. _attach: function ( node )
  91902. {
  91903. var dt = this.s.dt;
  91904. var idx = dt.cell( node ).index();
  91905. if ( ! idx || dt.columns( this.c.columns ).indexes().indexOf( idx.column ) === -1 ) {
  91906. this._detach();
  91907. return;
  91908. }
  91909. this.dom.attachedTo = node;
  91910. this.dom.handle.appendTo( node );
  91911. },
  91912. /**
  91913. * Determine can the fill type should be. This can be automatic, or ask the
  91914. * end user.
  91915. *
  91916. * @param {array} cells Information about the selected cells from the key
  91917. * up function
  91918. * @private
  91919. */
  91920. _actionSelector: function ( cells )
  91921. {
  91922. var that = this;
  91923. var dt = this.s.dt;
  91924. var actions = AutoFill.actions;
  91925. var available = [];
  91926. // "Ask" each plug-in if it wants to handle this data
  91927. $.each( actions, function ( key, action ) {
  91928. if ( action.available( dt, cells ) ) {
  91929. available.push( key );
  91930. }
  91931. } );
  91932. if ( available.length === 1 && this.c.alwaysAsk === false ) {
  91933. // Only one action available - enact it immediately
  91934. var result = actions[ available[0] ].execute( dt, cells );
  91935. this._update( result, cells );
  91936. }
  91937. else {
  91938. // Multiple actions available - ask the end user what they want to do
  91939. var list = this.dom.list.children('ul').empty();
  91940. // Add a cancel option
  91941. available.push( 'cancel' );
  91942. $.each( available, function ( i, name ) {
  91943. list.append( $('<li/>')
  91944. .append(
  91945. '<div class="dt-autofill-question">'+
  91946. actions[ name ].option( dt, cells )+
  91947. '<div>'
  91948. )
  91949. .append( $('<div class="dt-autofill-button">' )
  91950. .append( $('<button class="'+AutoFill.classes.btn+'">'+dt.i18n('autoFill.button', '&gt;')+'</button>')
  91951. .on( 'click', function () {
  91952. var result = actions[ name ].execute(
  91953. dt, cells, $(this).closest('li')
  91954. );
  91955. that._update( result, cells );
  91956. that.dom.background.remove();
  91957. that.dom.list.remove();
  91958. } )
  91959. )
  91960. )
  91961. );
  91962. } );
  91963. this.dom.background.appendTo( 'body' );
  91964. this.dom.list.appendTo( 'body' );
  91965. this.dom.list.css( 'margin-top', this.dom.list.outerHeight()/2 * -1 );
  91966. }
  91967. },
  91968. /**
  91969. * Remove the AutoFill handle from the document
  91970. *
  91971. * @private
  91972. */
  91973. _detach: function ()
  91974. {
  91975. this.dom.attachedTo = null;
  91976. this.dom.handle.detach();
  91977. },
  91978. /**
  91979. * Draw the selection outline by calculating the range between the start
  91980. * and end cells, then placing the highlighting elements to draw a rectangle
  91981. *
  91982. * @param {node} target End cell
  91983. * @param {object} e Originating event
  91984. * @private
  91985. */
  91986. _drawSelection: function ( target, e )
  91987. {
  91988. // Calculate boundary for start cell to this one
  91989. var dt = this.s.dt;
  91990. var start = this.s.start;
  91991. var startCell = $(this.dom.start);
  91992. var endCell = $(target);
  91993. var end = {
  91994. row: endCell.parent().index(),
  91995. column: endCell.index()
  91996. };
  91997. // Be sure that is a DataTables controlled cell
  91998. if ( ! dt.cell( endCell ).any() ) {
  91999. return;
  92000. }
  92001. // if target is not in the columns available - do nothing
  92002. if ( dt.columns( this.c.columns ).indexes().indexOf( end.column ) === -1 ) {
  92003. return;
  92004. }
  92005. this.s.end = end;
  92006. var top, bottom, left, right, height, width;
  92007. top = start.row < end.row ? startCell : endCell;
  92008. bottom = start.row < end.row ? endCell : startCell;
  92009. left = start.column < end.column ? startCell : endCell;
  92010. right = start.column < end.column ? endCell : startCell;
  92011. top = top.position().top;
  92012. left = left.position().left;
  92013. height = bottom.position().top + bottom.outerHeight() - top;
  92014. width = right.position().left + right.outerWidth() - left;
  92015. var dtScroll = this.dom.dtScroll;
  92016. if ( dtScroll ) {
  92017. top += dtScroll.scrollTop();
  92018. left += dtScroll.scrollLeft();
  92019. }
  92020. var select = this.dom.select;
  92021. select.top.css( {
  92022. top: top,
  92023. left: left,
  92024. width: width
  92025. } );
  92026. select.left.css( {
  92027. top: top,
  92028. left: left,
  92029. height: height
  92030. } );
  92031. select.bottom.css( {
  92032. top: top + height,
  92033. left: left,
  92034. width: width
  92035. } );
  92036. select.right.css( {
  92037. top: top,
  92038. left: left + width,
  92039. height: height
  92040. } );
  92041. },
  92042. /**
  92043. * Use the Editor API to perform an update based on the new data for the
  92044. * cells
  92045. *
  92046. * @param {array} cells Information about the selected cells from the key
  92047. * up function
  92048. * @private
  92049. */
  92050. _editor: function ( cells )
  92051. {
  92052. var dt = this.s.dt;
  92053. var editor = this.c.editor;
  92054. if ( ! editor ) {
  92055. return;
  92056. }
  92057. // Build the object structure for Editor's multi-row editing
  92058. var idValues = {};
  92059. var nodes = [];
  92060. for ( var i=0, ien=cells.length ; i<ien ; i++ ) {
  92061. for ( var j=0, jen=cells[i].length ; j<jen ; j++ ) {
  92062. var cell = cells[i][j];
  92063. // Determine the field name for the cell being edited
  92064. var col = dt.settings()[0].aoColumns[ cell.index.column ];
  92065. var dataSrc = col.editField !== undefined ?
  92066. col.editField :
  92067. col.mData;
  92068. if ( ! dataSrc ) {
  92069. throw 'Could not automatically determine field name. '+
  92070. 'Please see https://datatables.net/tn/11';
  92071. }
  92072. if ( ! idValues[ dataSrc ] ) {
  92073. idValues[ dataSrc ] = {};
  92074. }
  92075. var id = dt.row( cell.index.row ).id();
  92076. idValues[ dataSrc ][ id ] = cell.set;
  92077. // Keep a list of cells so we can activate the bubble editing
  92078. // with them
  92079. nodes.push( cell.index );
  92080. }
  92081. }
  92082. // Perform the edit using bubble editing as it allows us to specify
  92083. // the cells to be edited, rather than using full rows
  92084. editor
  92085. .bubble( nodes, false )
  92086. .multiSet( idValues )
  92087. .submit();
  92088. },
  92089. /**
  92090. * Emit an event on the DataTable for listeners
  92091. *
  92092. * @param {string} name Event name
  92093. * @param {array} args Event arguments
  92094. * @private
  92095. */
  92096. _emitEvent: function ( name, args )
  92097. {
  92098. this.s.dt.iterator( 'table', function ( ctx, i ) {
  92099. $(ctx.nTable).triggerHandler( name+'.dt', args );
  92100. } );
  92101. },
  92102. /**
  92103. * Attach suitable listeners (based on the configuration) that will attach
  92104. * and detach the AutoFill handle in the document.
  92105. *
  92106. * @private
  92107. */
  92108. _focusListener: function ()
  92109. {
  92110. var that = this;
  92111. var dt = this.s.dt;
  92112. var namespace = this.s.namespace;
  92113. var focus = this.c.focus !== null ?
  92114. this.c.focus :
  92115. dt.settings()[0].keytable ?
  92116. 'focus' :
  92117. 'hover';
  92118. // All event listeners attached here are removed in the `destroy`
  92119. // callback in the constructor
  92120. if ( focus === 'focus' ) {
  92121. dt
  92122. .on( 'key-focus.autoFill', function ( e, dt, cell ) {
  92123. that._attach( cell.node() );
  92124. } )
  92125. .on( 'key-blur.autoFill', function ( e, dt, cell ) {
  92126. that._detach();
  92127. } );
  92128. }
  92129. else if ( focus === 'click' ) {
  92130. $(dt.table().body()).on( 'click'+namespace, 'td, th', function (e) {
  92131. that._attach( this );
  92132. } );
  92133. $(document.body).on( 'click'+namespace, function (e) {
  92134. if ( ! $(e.target).parents().filter( dt.table().body() ).length ) {
  92135. that._detach();
  92136. }
  92137. } );
  92138. }
  92139. else {
  92140. $(dt.table().body())
  92141. .on( 'mouseenter'+namespace, 'td, th', function (e) {
  92142. that._attach( this );
  92143. } )
  92144. .on( 'mouseleave'+namespace, function (e) {
  92145. that._detach();
  92146. } );
  92147. }
  92148. },
  92149. /**
  92150. * Start mouse drag - selects the start cell
  92151. *
  92152. * @param {object} e Mouse down event
  92153. * @private
  92154. */
  92155. _mousedown: function ( e )
  92156. {
  92157. var that = this;
  92158. var dt = this.s.dt;
  92159. this.dom.start = this.dom.attachedTo;
  92160. this.s.start = {
  92161. row: $(this.dom.start).parent().index(),
  92162. column: $(this.dom.start).index()
  92163. };
  92164. $(document.body)
  92165. .on( 'mousemove.autoFill', function (e) {
  92166. that._mousemove( e );
  92167. } )
  92168. .on( 'mouseup.autoFill', function (e) {
  92169. that._mouseup( e );
  92170. } );
  92171. var select = this.dom.select;
  92172. var offsetParent = $(this.s.dt.table().body()).offsetParent();
  92173. select.top.appendTo( offsetParent );
  92174. select.left.appendTo( offsetParent );
  92175. select.right.appendTo( offsetParent );
  92176. select.bottom.appendTo( offsetParent );
  92177. this._drawSelection( this.dom.start, e );
  92178. this.dom.handle.css( 'display', 'none' );
  92179. // Cache scrolling information so mouse move doesn't need to read.
  92180. // This assumes that the window and DT scroller will not change size
  92181. // during an AutoFill drag, which I think is a fair assumption
  92182. var scrollWrapper = this.dom.dtScroll;
  92183. this.s.scroll = {
  92184. windowHeight: $(window).height(),
  92185. windowWidth: $(window).width(),
  92186. dtTop: scrollWrapper ? scrollWrapper.offset().top : null,
  92187. dtLeft: scrollWrapper ? scrollWrapper.offset().left : null,
  92188. dtHeight: scrollWrapper ? scrollWrapper.outerHeight() : null,
  92189. dtWidth: scrollWrapper ? scrollWrapper.outerWidth() : null
  92190. };
  92191. },
  92192. /**
  92193. * Mouse drag - selects the end cell and update the selection display for
  92194. * the end user
  92195. *
  92196. * @param {object} e Mouse move event
  92197. * @private
  92198. */
  92199. _mousemove: function ( e )
  92200. {
  92201. var that = this;
  92202. var dt = this.s.dt;
  92203. var name = e.target.nodeName.toLowerCase();
  92204. if ( name !== 'td' && name !== 'th' ) {
  92205. return;
  92206. }
  92207. this._drawSelection( e.target, e );
  92208. this._shiftScroll( e );
  92209. },
  92210. /**
  92211. * End mouse drag - perform the update actions
  92212. *
  92213. * @param {object} e Mouse up event
  92214. * @private
  92215. */
  92216. _mouseup: function ( e )
  92217. {
  92218. $(document.body).off( '.autoFill' );
  92219. var dt = this.s.dt;
  92220. var select = this.dom.select;
  92221. select.top.remove();
  92222. select.left.remove();
  92223. select.right.remove();
  92224. select.bottom.remove();
  92225. this.dom.handle.css( 'display', 'block' );
  92226. // Display complete - now do something useful with the selection!
  92227. var start = this.s.start;
  92228. var end = this.s.end;
  92229. // Haven't selected multiple cells, so nothing to do
  92230. if ( start.row === end.row && start.column === end.column ) {
  92231. return;
  92232. }
  92233. // Build a matrix representation of the selected rows
  92234. var rows = this._range( start.row, end.row );
  92235. var columns = this._range( start.column, end.column );
  92236. var selected = [];
  92237. // Can't use Array.prototype.map as IE8 doesn't support it
  92238. // Can't use $.map as jQuery flattens 2D arrays
  92239. // Need to use a good old fashioned for loop
  92240. for ( var rowIdx=0 ; rowIdx<rows.length ; rowIdx++ ) {
  92241. selected.push(
  92242. $.map( columns, function (column) {
  92243. var cell = dt.cell( ':eq('+rows[rowIdx]+')', column+':visible', {page:'current'} );
  92244. return {
  92245. cell: cell,
  92246. data: cell.data(),
  92247. index: cell.index()
  92248. };
  92249. } )
  92250. );
  92251. }
  92252. this._actionSelector( selected );
  92253. },
  92254. /**
  92255. * Create an array with a range of numbers defined by the start and end
  92256. * parameters passed in (inclusive!).
  92257. *
  92258. * @param {integer} start Start
  92259. * @param {integer} end End
  92260. * @private
  92261. */
  92262. _range: function ( start, end )
  92263. {
  92264. var out = [];
  92265. var i;
  92266. if ( start <= end ) {
  92267. for ( i=start ; i<=end ; i++ ) {
  92268. out.push( i );
  92269. }
  92270. }
  92271. else {
  92272. for ( i=start ; i>=end ; i-- ) {
  92273. out.push( i );
  92274. }
  92275. }
  92276. return out;
  92277. },
  92278. /**
  92279. * Move the window and DataTables scrolling during a drag to scroll new
  92280. * content into view. This is done by proximity to the edge of the scrolling
  92281. * container of the mouse - for example near the top edge of the window
  92282. * should scroll up. This is a little complicated as there are two elements
  92283. * that can be scrolled - the window and the DataTables scrolling view port
  92284. * (if scrollX and / or scrollY is enabled).
  92285. *
  92286. * @param {object} e Mouse move event object
  92287. * @private
  92288. */
  92289. _shiftScroll: function ( e )
  92290. {
  92291. var that = this;
  92292. var dt = this.s.dt;
  92293. var scroll = this.s.scroll;
  92294. var runInterval = false;
  92295. var scrollSpeed = 5;
  92296. var buffer = 65;
  92297. var
  92298. windowY = e.pageY - document.body.scrollTop,
  92299. windowX = e.pageX - document.body.scrollLeft,
  92300. windowVert, windowHoriz,
  92301. dtVert, dtHoriz;
  92302. // Window calculations - based on the mouse position in the window,
  92303. // regardless of scrolling
  92304. if ( windowY < buffer ) {
  92305. windowVert = scrollSpeed * -1;
  92306. }
  92307. else if ( windowY > scroll.windowHeight - buffer ) {
  92308. windowVert = scrollSpeed;
  92309. }
  92310. if ( windowX < buffer ) {
  92311. windowHoriz = scrollSpeed * -1;
  92312. }
  92313. else if ( windowX > scroll.windowWidth - buffer ) {
  92314. windowHoriz = scrollSpeed;
  92315. }
  92316. // DataTables scrolling calculations - based on the table's position in
  92317. // the document and the mouse position on the page
  92318. if ( scroll.dtTop !== null && e.pageY < scroll.dtTop + buffer ) {
  92319. dtVert = scrollSpeed * -1;
  92320. }
  92321. else if ( scroll.dtTop !== null && e.pageY > scroll.dtTop + scroll.dtHeight - buffer ) {
  92322. dtVert = scrollSpeed;
  92323. }
  92324. if ( scroll.dtLeft !== null && e.pageX < scroll.dtLeft + buffer ) {
  92325. dtHoriz = scrollSpeed * -1;
  92326. }
  92327. else if ( scroll.dtLeft !== null && e.pageX > scroll.dtLeft + scroll.dtWidth - buffer ) {
  92328. dtHoriz = scrollSpeed;
  92329. }
  92330. // This is where it gets interesting. We want to continue scrolling
  92331. // without requiring a mouse move, so we need an interval to be
  92332. // triggered. The interval should continue until it is no longer needed,
  92333. // but it must also use the latest scroll commands (for example consider
  92334. // that the mouse might move from scrolling up to scrolling left, all
  92335. // with the same interval running. We use the `scroll` object to "pass"
  92336. // this information to the interval. Can't use local variables as they
  92337. // wouldn't be the ones that are used by an already existing interval!
  92338. if ( windowVert || windowHoriz || dtVert || dtHoriz ) {
  92339. scroll.windowVert = windowVert;
  92340. scroll.windowHoriz = windowHoriz;
  92341. scroll.dtVert = dtVert;
  92342. scroll.dtHoriz = dtHoriz;
  92343. runInterval = true;
  92344. }
  92345. else if ( this.s.scrollInterval ) {
  92346. // Don't need to scroll - remove any existing timer
  92347. clearInterval( this.s.scrollInterval );
  92348. this.s.scrollInterval = null;
  92349. }
  92350. // If we need to run the interval to scroll and there is no existing
  92351. // interval (if there is an existing one, it will continue to run)
  92352. if ( ! this.s.scrollInterval && runInterval ) {
  92353. this.s.scrollInterval = setInterval( function () {
  92354. // Don't need to worry about setting scroll <0 or beyond the
  92355. // scroll bound as the browser will just reject that.
  92356. if ( scroll.windowVert ) {
  92357. document.body.scrollTop += scroll.windowVert;
  92358. }
  92359. if ( scroll.windowHoriz ) {
  92360. document.body.scrollLeft += scroll.windowHoriz;
  92361. }
  92362. // DataTables scrolling
  92363. if ( scroll.dtVert || scroll.dtHoriz ) {
  92364. var scroller = that.dom.dtScroll[0];
  92365. if ( scroll.dtVert ) {
  92366. scroller.scrollTop += scroll.dtVert;
  92367. }
  92368. if ( scroll.dtHoriz ) {
  92369. scroller.scrollLeft += scroll.dtHoriz;
  92370. }
  92371. }
  92372. }, 20 );
  92373. }
  92374. },
  92375. /**
  92376. * Update the DataTable after the user has selected what they want to do
  92377. *
  92378. * @param {false|undefined} result Return from the `execute` method - can
  92379. * be false internally to do nothing. This is not documented for plug-ins
  92380. * and is used only by the cancel option.
  92381. * @param {array} cells Information about the selected cells from the key
  92382. * up function, argumented with the set values
  92383. * @private
  92384. */
  92385. _update: function ( result, cells )
  92386. {
  92387. // Do nothing on `false` return from an execute function
  92388. if ( result === false ) {
  92389. return;
  92390. }
  92391. var dt = this.s.dt;
  92392. var cell;
  92393. // Potentially allow modifications to the cells matrix
  92394. this._emitEvent( 'preAutoFill', [ dt, cells ] );
  92395. this._editor( cells );
  92396. // Automatic updates are not performed if `update` is null and the
  92397. // `editor` parameter is passed in - the reason being that Editor will
  92398. // update the data once submitted
  92399. var update = this.c.update !== null ?
  92400. this.c.update :
  92401. this.c.editor ?
  92402. false :
  92403. true;
  92404. if ( update ) {
  92405. for ( var i=0, ien=cells.length ; i<ien ; i++ ) {
  92406. for ( var j=0, jen=cells[i].length ; j<jen ; j++ ) {
  92407. cell = cells[i][j];
  92408. cell.cell.data( cell.set );
  92409. }
  92410. }
  92411. dt.draw(false);
  92412. }
  92413. this._emitEvent( 'autoFill', [ dt, cells ] );
  92414. }
  92415. };
  92416. /**
  92417. * AutoFill actions. The options here determine how AutoFill will fill the data
  92418. * in the table when the user has selected a range of cells. Please see the
  92419. * documentation on the DataTables site for full details on how to create plug-
  92420. * ins.
  92421. *
  92422. * @type {Object}
  92423. */
  92424. AutoFill.actions = {
  92425. increment: {
  92426. available: function ( dt, cells ) {
  92427. return $.isNumeric( cells[0][0].data );
  92428. },
  92429. option: function ( dt, cells ) {
  92430. return dt.i18n(
  92431. 'autoFill.increment',
  92432. 'Increment / decrement each cell by: <input type="number" value="1">'
  92433. );
  92434. },
  92435. execute: function ( dt, cells, node ) {
  92436. var value = cells[0][0].data * 1;
  92437. var increment = $('input', node).val() * 1;
  92438. for ( var i=0, ien=cells.length ; i<ien ; i++ ) {
  92439. for ( var j=0, jen=cells[i].length ; j<jen ; j++ ) {
  92440. cells[i][j].set = value;
  92441. value += increment;
  92442. }
  92443. }
  92444. }
  92445. },
  92446. fill: {
  92447. available: function ( dt, cells ) {
  92448. return true;
  92449. },
  92450. option: function ( dt, cells ) {
  92451. return dt.i18n('autoFill.fill', 'Fill all cells with <i>'+cells[0][0].data+'</i>' );
  92452. },
  92453. execute: function ( dt, cells, node ) {
  92454. var value = cells[0][0].data;
  92455. for ( var i=0, ien=cells.length ; i<ien ; i++ ) {
  92456. for ( var j=0, jen=cells[i].length ; j<jen ; j++ ) {
  92457. cells[i][j].set = value;
  92458. }
  92459. }
  92460. }
  92461. },
  92462. fillHorizontal: {
  92463. available: function ( dt, cells ) {
  92464. return cells.length > 1 && cells[0].length > 1;
  92465. },
  92466. option: function ( dt, cells ) {
  92467. return dt.i18n('autoFill.fillHorizontal', 'Fill cells horizontally' );
  92468. },
  92469. execute: function ( dt, cells, node ) {
  92470. for ( var i=0, ien=cells.length ; i<ien ; i++ ) {
  92471. for ( var j=0, jen=cells[i].length ; j<jen ; j++ ) {
  92472. cells[i][j].set = cells[i][0].data;
  92473. }
  92474. }
  92475. }
  92476. },
  92477. fillVertical: {
  92478. available: function ( dt, cells ) {
  92479. return cells.length > 1 && cells[0].length > 1;
  92480. },
  92481. option: function ( dt, cells ) {
  92482. return dt.i18n('autoFill.fillVertical', 'Fill cells vertically' );
  92483. },
  92484. execute: function ( dt, cells, node ) {
  92485. for ( var i=0, ien=cells.length ; i<ien ; i++ ) {
  92486. for ( var j=0, jen=cells[i].length ; j<jen ; j++ ) {
  92487. cells[i][j].set = cells[0][j].data;
  92488. }
  92489. }
  92490. }
  92491. },
  92492. // Special type that does not make itself available, but is added
  92493. // automatically by AutoFill if a multi-choice list is shown. This allows
  92494. // sensible code reuse
  92495. cancel: {
  92496. available: function () {
  92497. return false;
  92498. },
  92499. option: function ( dt ) {
  92500. return dt.i18n('autoFill.cancel', 'Cancel' );
  92501. },
  92502. execute: function () {
  92503. return false;
  92504. }
  92505. }
  92506. };
  92507. /**
  92508. * AutoFill version
  92509. *
  92510. * @static
  92511. * @type String
  92512. */
  92513. AutoFill.version = '2.0.0';
  92514. /**
  92515. * AutoFill defaults
  92516. *
  92517. * @namespace
  92518. */
  92519. AutoFill.defaults = {
  92520. /** @type {Boolean} Ask user what they want to do, even for a single option */
  92521. alwaysAsk: false,
  92522. /** @type {string|null} What will trigger a focus */
  92523. focus: null, // focus, click, hover
  92524. /** @type {column-selector} Columns to provide auto fill for */
  92525. columns: '', // all
  92526. /** @type {boolean|null} Update the cells after a drag */
  92527. update: null, // false is editor given, true otherwise
  92528. /** @type {DataTable.Editor} Editor instance for automatic submission */
  92529. editor: null
  92530. };
  92531. /**
  92532. * Classes used by AutoFill that are configurable
  92533. *
  92534. * @namespace
  92535. */
  92536. AutoFill.classes = {
  92537. /** @type {String} Class used by the selection button */
  92538. btn: 'btn'
  92539. };
  92540. // Attach a listener to the document which listens for DataTables initialisation
  92541. // events so we can automatically initialise
  92542. $(document).on( 'init.dt.autofill', function (e, settings, json) {
  92543. if ( e.namespace !== 'dt' ) {
  92544. return;
  92545. }
  92546. var init = settings.oInit.autoFill;
  92547. var defaults = DataTable.defaults.autoFill;
  92548. if ( init || defaults ) {
  92549. var opts = $.extend( {}, init, defaults );
  92550. if ( init !== false ) {
  92551. new AutoFill( settings, opts );
  92552. }
  92553. }
  92554. } );
  92555. // Alias for access
  92556. DataTable.AutoFill = AutoFill;
  92557. DataTable.AutoFill = AutoFill;
  92558. return AutoFill;
  92559. };
  92560. // Define as an AMD module if possible
  92561. if ( typeof define === 'function' && define.amd ) {
  92562. define( ['jquery', 'datatables'], factory );
  92563. }
  92564. else if ( typeof exports === 'object' ) {
  92565. // Node/CommonJS
  92566. factory( require('jquery'), require('datatables') );
  92567. }
  92568. else if ( jQuery && !jQuery.fn.dataTable.AutoFill ) {
  92569. // Otherwise simply initialise as normal, stopping multiple evaluation
  92570. factory( jQuery, jQuery.fn.dataTable );
  92571. }
  92572. }(window, document));
  92573. /*! Buttons for DataTables 1.0.1
  92574. * ©2015 SpryMedia Ltd - datatables.net/license
  92575. */
  92576. (function(window, document, undefined) {
  92577. var factory = function( $, DataTable ) {
  92578. "use strict";
  92579. // Used for namespacing events added to the document by each instance, so they
  92580. // can be removed on destroy
  92581. var _instCounter = 0;
  92582. // Button namespacing counter for namespacing events on individual buttons
  92583. var _buttonCounter = 0;
  92584. var _dtButtons = DataTable.ext.buttons;
  92585. /**
  92586. * [Buttons description]
  92587. * @param {[type]}
  92588. * @param {[type]}
  92589. */
  92590. var Buttons = function( dt, config )
  92591. {
  92592. // Allow a boolean true for defaults
  92593. if ( config === true ) {
  92594. config = {};
  92595. }
  92596. // For easy configuration of buttons an array can be given
  92597. if ( $.isArray( config ) ) {
  92598. config = { buttons: config };
  92599. }
  92600. this.c = $.extend( true, {}, Buttons.defaults, config );
  92601. // Don't want a deep copy for the buttons
  92602. if ( config.buttons ) {
  92603. this.c.buttons = config.buttons;
  92604. }
  92605. this.s = {
  92606. dt: new DataTable.Api( dt ),
  92607. buttons: [],
  92608. subButtons: [],
  92609. listenKeys: '',
  92610. namespace: 'dtb'+(_instCounter++)
  92611. };
  92612. this.dom = {
  92613. container: $('<'+this.c.dom.container.tag+'/>')
  92614. .addClass( this.c.dom.container.className )
  92615. };
  92616. this._constructor();
  92617. };
  92618. $.extend( Buttons.prototype, {
  92619. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  92620. * Public methods
  92621. */
  92622. /**
  92623. * Get the action of a button
  92624. * @param {int|string} Button index
  92625. * @return {function}
  92626. *//**
  92627. * Set the action of a button
  92628. * @param {int|string} Button index
  92629. * @param {function} Function to set
  92630. * @return {Buttons} Self for chaining
  92631. */
  92632. action: function ( idx, action )
  92633. {
  92634. var button = this._indexToButton( idx ).conf;
  92635. if ( action === undefined ) {
  92636. return button.action;
  92637. }
  92638. button.action = action;
  92639. return this;
  92640. },
  92641. /**
  92642. * Add an active class to the button to make to look active
  92643. * @param {int|string} Button index
  92644. * @param {boolean} [flag=true] Enable / disable flag
  92645. * @return {Buttons} Self for chaining
  92646. */
  92647. active: function ( idx, flag ) {
  92648. var button = this._indexToButton( idx );
  92649. button.node.toggleClass(
  92650. this.c.dom.button.active,
  92651. flag === undefined ? true : flag
  92652. );
  92653. return this;
  92654. },
  92655. /**
  92656. * Add a new button
  92657. * @param {int|string} Button index for where to insert the button
  92658. * @param {object} Button configuration object, base string name or function
  92659. * @return {Buttons} Self for chaining
  92660. */
  92661. add: function ( idx, config )
  92662. {
  92663. if ( typeof idx === 'string' && idx.indexOf('-') !== -1 ) {
  92664. var idxs = idx.split('-');
  92665. this.c.buttons[idxs[0]*1].buttons.splice( idxs[1]*1, 0, config );
  92666. }
  92667. else {
  92668. this.c.buttons.splice( idx*1, 0, config );
  92669. }
  92670. this.dom.container.empty();
  92671. this._buildButtons( this.c.buttons );
  92672. return this;
  92673. },
  92674. /**
  92675. * Get the container node for the buttons
  92676. * @return {jQuery} Buttons node
  92677. */
  92678. container: function ()
  92679. {
  92680. return this.dom.container;
  92681. },
  92682. /**
  92683. * Disable a button
  92684. * @param {int|string} Button index
  92685. * @return {Buttons} Self for chaining
  92686. */
  92687. disable: function ( idx ) {
  92688. var button = this._indexToButton( idx );
  92689. button.node.addClass( this.c.dom.button.disabled );
  92690. return this;
  92691. },
  92692. /**
  92693. * Destroy the instance, cleaning up event handlers and removing DOM
  92694. * elements
  92695. * @return {Buttons} Self for chaining
  92696. */
  92697. destroy: function ()
  92698. {
  92699. // Key event listener
  92700. $('body').off( 'keyup.'+this.s.namespace );
  92701. // Individual button destroy (so they can remove their own events if
  92702. // needed
  92703. var buttons = this.s.buttons;
  92704. var subButtons = this.s.subButtons;
  92705. var i, ien, j, jen;
  92706. for ( i=0, ien=buttons.length ; i<ien ; i++ ) {
  92707. this.removePrep( i );
  92708. for ( j=0, jen=subButtons[i].length; j<0 ; j++ ) {
  92709. this.removePrep( i+'-'+j );
  92710. }
  92711. }
  92712. this.removeCommit();
  92713. // Container
  92714. this.dom.container.remove();
  92715. // Remove from the settings object collection
  92716. var buttonInsts = this.s.dt.settings()[0];
  92717. for ( i=0, ien=buttonInsts.length ; i<ien ; i++ ) {
  92718. if ( buttonInsts.inst === this ) {
  92719. buttonInsts.splice( i, 1 );
  92720. break;
  92721. }
  92722. }
  92723. return this;
  92724. },
  92725. /**
  92726. * Enable / disable a button
  92727. * @param {int|string} Button index
  92728. * @param {boolean} [flag=true] Enable / disable flag
  92729. * @return {Buttons} Self for chaining
  92730. */
  92731. enable: function ( idx, flag )
  92732. {
  92733. if ( flag === false ) {
  92734. return this.disable( idx );
  92735. }
  92736. var button = this._indexToButton( idx );
  92737. button.node.removeClass( this.c.dom.button.disabled );
  92738. return this;
  92739. },
  92740. /**
  92741. * Get the instance name for the button set selector
  92742. * @return {string} Instance name
  92743. */
  92744. name: function ()
  92745. {
  92746. return this.c.name;
  92747. },
  92748. /**
  92749. * Get a button's node
  92750. * @param {int|string} Button index
  92751. * @return {jQuery} Button element
  92752. */
  92753. node: function ( idx )
  92754. {
  92755. var button = this._indexToButton( idx );
  92756. return button.node;
  92757. },
  92758. /**
  92759. * Tidy up any buttons that have been scheduled for removal. This is
  92760. * required so multiple buttons can be removed without upsetting the button
  92761. * indexes while removing them.
  92762. * @param {int|string} Button index
  92763. * @return {Buttons} Self for chaining
  92764. */
  92765. removeCommit: function ()
  92766. {
  92767. var buttons = this.s.buttons;
  92768. var subButtons = this.s.subButtons;
  92769. var i, ien, j;
  92770. for ( i=buttons.length-1 ; i>=0 ; i-- ) {
  92771. if ( buttons[i] === null ) {
  92772. buttons.splice( i, 1 );
  92773. subButtons.splice( i, 1 );
  92774. this.c.buttons.splice( i, 1 );
  92775. }
  92776. }
  92777. for ( i=0, ien=subButtons.length ; i<ien ; i++ ) {
  92778. for ( j=subButtons[i].length-1 ; j>=0 ; j-- ) {
  92779. if ( subButtons[i][j] === null ) {
  92780. subButtons[i].splice( j, 1 );
  92781. this.c.buttons[i].buttons.splice( j, 1 );
  92782. }
  92783. }
  92784. }
  92785. return this;
  92786. },
  92787. /**
  92788. * Scheduled a button for removal. This is required so multiple buttons can
  92789. * be removed without upsetting the button indexes while removing them.
  92790. * @return {Buttons} Self for chaining
  92791. */
  92792. removePrep: function ( idx )
  92793. {
  92794. var button;
  92795. var dt = this.s.dt;
  92796. if ( typeof idx === 'number' || idx.indexOf('-') === -1 ) {
  92797. // Top level button
  92798. button = this.s.buttons[ idx*1 ];
  92799. if ( button.conf.destroy ) {
  92800. button.conf.destroy.call( dt.button(idx), dt, button, button.conf );
  92801. }
  92802. button.node.remove();
  92803. this._removeKey( button.conf );
  92804. this.s.buttons[ idx*1 ] = null;
  92805. }
  92806. else {
  92807. // Collection button
  92808. var idxs = idx.split('-');
  92809. button = this.s.subButtons[ idxs[0]*1 ][ idxs[1]*1 ];
  92810. if ( button.conf.destroy ) {
  92811. button.conf.destroy.call( dt.button(idx), dt, button, button.conf );
  92812. }
  92813. button.node.remove();
  92814. this._removeKey( button.conf );
  92815. this.s.subButtons[ idxs[0]*1 ][ idxs[1]*1 ] = null;
  92816. }
  92817. return this;
  92818. },
  92819. /**
  92820. * Get the text for a button
  92821. * @param {int|string} Button index
  92822. * @return {string} Button text
  92823. *//**
  92824. * Set the text for a button
  92825. * @param {int|string|function} Button index
  92826. * @param {string} Text
  92827. * @return {Buttons} Self for chaining
  92828. */
  92829. text: function ( idx, label )
  92830. {
  92831. var button = this._indexToButton( idx );
  92832. var linerTag = this.c.dom.buttonLiner.tag;
  92833. var dt = this.s.dt;
  92834. var text = function ( opt ) {
  92835. return typeof opt === 'function' ?
  92836. opt( dt, button.node, button.conf ) :
  92837. opt;
  92838. };
  92839. if ( label === undefined ) {
  92840. return text( button.conf.text );
  92841. }
  92842. button.conf.text = label;
  92843. if ( linerTag ) {
  92844. button.node.children( linerTag ).html( text(label) );
  92845. }
  92846. else {
  92847. button.node.html( text(label) );
  92848. }
  92849. return this;
  92850. },
  92851. /**
  92852. * Calculate button index from a node
  92853. * @param {node} Button node (_not_ a jQuery object)
  92854. * @return {string} Index. Undefined if not found
  92855. */
  92856. toIndex: function ( node )
  92857. {
  92858. var i, ien, j, jen;
  92859. var buttons = this.s.buttons;
  92860. var subButtons = this.s.subButtons;
  92861. // Loop the main buttons first
  92862. for ( i=0, ien=buttons.length ; i<ien ; i++ ) {
  92863. if ( buttons[i].node[0] === node ) {
  92864. return i+'';
  92865. }
  92866. }
  92867. // Then the sub-buttons
  92868. for ( i=0, ien=subButtons.length ; i<ien ; i++ ) {
  92869. for ( j=0, jen=subButtons[i].length ; j<jen ; j++ ) {
  92870. if ( subButtons[i][j].node[0] === node ) {
  92871. return i+'-'+j;
  92872. }
  92873. }
  92874. }
  92875. },
  92876. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  92877. * Constructor
  92878. */
  92879. /**
  92880. * Buttons constructor
  92881. * @private
  92882. */
  92883. _constructor: function ()
  92884. {
  92885. var that = this;
  92886. var dt = this.s.dt;
  92887. var dtSettings = dt.settings()[0];
  92888. if ( ! dtSettings._buttons ) {
  92889. dtSettings._buttons = [];
  92890. }
  92891. dtSettings._buttons.push( {
  92892. inst: this,
  92893. name: this.c.name
  92894. } );
  92895. this._buildButtons( this.c.buttons );
  92896. dt.on( 'destroy', function () {
  92897. that.destroy();
  92898. } );
  92899. // Global key event binding to listen for button keys
  92900. $('body').on( 'keyup.'+this.s.namespace, function ( e ) {
  92901. if ( ! document.activeElement || document.activeElement === document.body ) {
  92902. // SUse a string of characters for fast lookup of if we need to
  92903. // handle this
  92904. var character = String.fromCharCode(e.keyCode).toLowerCase();
  92905. if ( that.s.listenKeys.toLowerCase().indexOf( character ) !== -1 ) {
  92906. that._keypress( character, e );
  92907. }
  92908. }
  92909. } );
  92910. },
  92911. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  92912. * Private methods
  92913. */
  92914. /**
  92915. * Add a new button to the key press listener
  92916. * @param {object} Resolved button configuration object
  92917. * @private
  92918. */
  92919. _addKey: function ( conf )
  92920. {
  92921. if ( conf.key ) {
  92922. this.s.listenKeys += $.isPlainObject( conf.key ) ?
  92923. conf.key.key :
  92924. conf.key;
  92925. }
  92926. },
  92927. /**
  92928. * Create buttons from an array of buttons
  92929. * @param {array} Buttons to create
  92930. * @param {jQuery} Container node into which the created button should be
  92931. * inserted.
  92932. * @param {int} Counter for sub-buttons to be stored in a collection
  92933. * @private
  92934. */
  92935. _buildButtons: function ( buttons, container, collectionCounter )
  92936. {
  92937. var dt = this.s.dt;
  92938. if ( ! container ) {
  92939. container = this.dom.container;
  92940. this.s.buttons = [];
  92941. this.s.subButtons = [];
  92942. }
  92943. for ( var i=0, ien=buttons.length ; i<ien ; i++ ) {
  92944. var conf = this._resolveExtends( buttons[i] );
  92945. if ( ! conf ) {
  92946. continue;
  92947. }
  92948. // If the configuration is an array, then expand the buttons at this
  92949. // point
  92950. if ( $.isArray( conf ) ) {
  92951. this._buildButtons( conf, container, collectionCounter );
  92952. continue;
  92953. }
  92954. var button = this._buildButton(
  92955. conf,
  92956. collectionCounter!==undefined ? true : false
  92957. );
  92958. if ( ! button ) {
  92959. continue;
  92960. }
  92961. var buttonNode = button.node;
  92962. container.append( button.inserter );
  92963. if ( collectionCounter === undefined ) {
  92964. this.s.buttons.push( {
  92965. node: buttonNode,
  92966. conf: conf,
  92967. inserter: button.inserter
  92968. } );
  92969. this.s.subButtons.push( [] );
  92970. }
  92971. else {
  92972. this.s.subButtons[ collectionCounter ].push( {
  92973. node: buttonNode,
  92974. conf: conf,
  92975. inserter: button.inserter
  92976. } );
  92977. }
  92978. if ( conf.buttons ) {
  92979. var collectionDom = this.c.dom.collection;
  92980. conf._collection = $('<'+collectionDom.tag+'/>')
  92981. .addClass( collectionDom.className );
  92982. this._buildButtons( conf.buttons, conf._collection, i );
  92983. }
  92984. // init call is made here, rather than buildButton as it needs to
  92985. // have been added to the buttons / subButtons array first
  92986. if ( conf.init ) {
  92987. conf.init.call( dt.button( buttonNode ), dt, buttonNode, conf );
  92988. }
  92989. }
  92990. },
  92991. /**
  92992. * Create an individual button
  92993. * @param {object} config Resolved button configuration
  92994. * @param {boolean} collectionButton `true` if a collection button
  92995. * @return {jQuery} Created button node (jQuery)
  92996. * @private
  92997. */
  92998. _buildButton: function ( config, collectionButton )
  92999. {
  93000. var that = this;
  93001. var buttonDom = this.c.dom.button;
  93002. var linerDom = this.c.dom.buttonLiner;
  93003. var collectionDom = this.c.dom.collection;
  93004. var dt = this.s.dt;
  93005. var text = function ( opt ) {
  93006. return typeof opt === 'function' ?
  93007. opt( dt, button, config ) :
  93008. opt;
  93009. };
  93010. if ( collectionButton && collectionDom.button ) {
  93011. buttonDom = collectionDom.button;
  93012. }
  93013. if ( collectionButton && collectionDom.buttonLiner ) {
  93014. linerDom = collectionDom.buttonLiner;
  93015. }
  93016. // Make sure that the button is available based on whatever requirements
  93017. // it has. For example, Flash buttons require Flash
  93018. if ( config.available && ! config.available( dt, config ) ) {
  93019. return false;
  93020. }
  93021. var button = $('<'+buttonDom.tag+'/>')
  93022. .addClass( buttonDom.className )
  93023. .attr( 'tabindex', this.s.dt.settings()[0].iTabIndex )
  93024. .attr( 'aria-controls', this.s.dt.table().node().id )
  93025. .on( 'click.dtb', function (e) {
  93026. e.preventDefault();
  93027. if ( ! button.hasClass( buttonDom.disabled ) && config.action ) {
  93028. config.action.call( dt.button( button ), e, dt, button, config );
  93029. }
  93030. button.blur();
  93031. } )
  93032. .on( 'keyup.dtb', function (e) {
  93033. if ( e.keyCode === 13 ) {
  93034. if ( ! button.hasClass( buttonDom.disabled ) && config.action ) {
  93035. config.action.call( dt.button( button ), e, dt, button, config );
  93036. }
  93037. }
  93038. } );
  93039. if ( linerDom.tag ) {
  93040. button.append(
  93041. $('<'+linerDom.tag+'/>')
  93042. .html( text( config.text ) )
  93043. .addClass( linerDom.className )
  93044. );
  93045. }
  93046. else {
  93047. button.html( text( config.text ) );
  93048. }
  93049. if ( config.enabled === false ) {
  93050. button.addClass( buttonDom.disabled );
  93051. }
  93052. if ( config.className ) {
  93053. button.addClass( config.className );
  93054. }
  93055. if ( ! config.namespace ) {
  93056. config.namespace = '.dt-button-'+(_buttonCounter++);
  93057. }
  93058. var buttonContainer = this.c.dom.buttonContainer;
  93059. var inserter;
  93060. if ( buttonContainer ) {
  93061. inserter = $('<'+buttonContainer.tag+'/>')
  93062. .addClass( buttonContainer.className )
  93063. .append( button );
  93064. }
  93065. else {
  93066. inserter = button;
  93067. }
  93068. this._addKey( config );
  93069. return {
  93070. node: button,
  93071. inserter: inserter
  93072. };
  93073. },
  93074. /**
  93075. * Get a button's host information from a button index
  93076. * @param {int|string} Button index
  93077. * @return {object} Button information - object contains `node` and `conf`
  93078. * properties
  93079. * @private
  93080. */
  93081. _indexToButton: function ( idx )
  93082. {
  93083. if ( typeof idx === 'number' || idx.indexOf('-') === -1 ) {
  93084. return this.s.buttons[ idx*1 ];
  93085. }
  93086. var idxs = idx.split('-');
  93087. return this.s.subButtons[ idxs[0]*1 ][ idxs[1]*1 ];
  93088. },
  93089. /**
  93090. * Handle a key press - determine if any button's key configured matches
  93091. * what was typed and trigger the action if so.
  93092. * @param {string} The character pressed
  93093. * @param {object} Key event that triggered this call
  93094. * @private
  93095. */
  93096. _keypress: function ( character, e )
  93097. {
  93098. var i, ien, j, jen;
  93099. var buttons = this.s.buttons;
  93100. var subButtons = this.s.subButtons;
  93101. var run = function ( conf, node ) {
  93102. if ( ! conf.key ) {
  93103. return;
  93104. }
  93105. if ( conf.key === character ) {
  93106. node.click();
  93107. }
  93108. else if ( $.isPlainObject( conf.key ) ) {
  93109. if ( conf.key.key !== character ) {
  93110. return;
  93111. }
  93112. if ( conf.key.shiftKey && ! e.shiftKey ) {
  93113. return;
  93114. }
  93115. if ( conf.key.altKey && ! e.altKey ) {
  93116. return;
  93117. }
  93118. if ( conf.key.ctrlKey && ! e.ctrlKey ) {
  93119. return;
  93120. }
  93121. if ( conf.key.metaKey && ! e.metaKey ) {
  93122. return;
  93123. }
  93124. // Made it this far - it is good
  93125. node.click();
  93126. }
  93127. };
  93128. // Loop the main buttons first
  93129. for ( i=0, ien=buttons.length ; i<ien ; i++ ) {
  93130. run( buttons[i].conf, buttons[i].node );
  93131. }
  93132. // Then the sub-buttons
  93133. for ( i=0, ien=subButtons.length ; i<ien ; i++ ) {
  93134. for ( j=0, jen=subButtons[i].length ; j<jen ; j++ ) {
  93135. run( subButtons[i][j].conf, subButtons[i][j].node );
  93136. }
  93137. }
  93138. },
  93139. /**
  93140. * Remove a key from the key listener for this instance (to be used when a
  93141. * button is removed)
  93142. * @param {object} Button configuration
  93143. */
  93144. _removeKey: function ( conf )
  93145. {
  93146. if ( conf.key ) {
  93147. var character = $.isPlainObject( conf.key ) ?
  93148. conf.key.key :
  93149. conf.key;
  93150. // Remove only one character, as multiple buttons could have the
  93151. // same listening key
  93152. var a = this.s.listenKeys.split('');
  93153. var idx = $.inArray( character, a );
  93154. a.splice( idx, 1 );
  93155. this.s.listenKeys = a.join('');
  93156. }
  93157. },
  93158. /**
  93159. * Resolve a button configuration
  93160. * @param {string|function|object} Button config to resolve
  93161. * @return {object} Button configuration
  93162. */
  93163. _resolveExtends: function ( conf )
  93164. {
  93165. var dt = this.s.dt;
  93166. var i, ien;
  93167. var toConfObject = function ( base ) {
  93168. var loop = 0;
  93169. // Loop until we have resolved to a button configuration, or an
  93170. // array of button configurations (which will be iterated
  93171. // separately)
  93172. while ( ! $.isPlainObject(base) && ! $.isArray(base) ) {
  93173. if ( typeof base === 'function' ) {
  93174. base = base( dt, conf );
  93175. if ( ! base ) {
  93176. return false;
  93177. }
  93178. }
  93179. else if ( typeof base === 'string' ) {
  93180. if ( ! _dtButtons[ base ] ) {
  93181. throw 'Unknown button type: '+base;
  93182. }
  93183. base = _dtButtons[ base ];
  93184. }
  93185. loop++;
  93186. if ( loop > 30 ) {
  93187. // Protect against misconfiguration killing the browser
  93188. throw 'Buttons: Too many iterations';
  93189. }
  93190. }
  93191. return $.isArray( base ) ?
  93192. base :
  93193. $.extend( {}, base );
  93194. };
  93195. conf = toConfObject( conf );
  93196. while ( conf && conf.extend ) {
  93197. // Use `toConfObject` in case the button definition being extended
  93198. // is itself a string or a function
  93199. var objArray = toConfObject( _dtButtons[ conf.extend ] );
  93200. if ( $.isArray( objArray ) ) {
  93201. return objArray;
  93202. }
  93203. // Stash the current class name
  93204. var originalClassName = objArray.className;
  93205. conf = $.extend( {}, objArray, conf );
  93206. // The extend will have overwritten the original class name if the
  93207. // `conf` object also assigned a class, but we want to concatenate
  93208. // them so they are list that is combined from all extended buttons
  93209. if ( originalClassName && conf.className !== originalClassName ) {
  93210. conf.className = originalClassName+' '+conf.className;
  93211. }
  93212. // Buttons to be added to a collection -gives the ability to define
  93213. // if buttons should be added to the start or end of a collection
  93214. var postfixButtons = conf.postfixButtons;
  93215. if ( postfixButtons ) {
  93216. if ( ! conf.buttons ) {
  93217. conf.buttons = [];
  93218. }
  93219. for ( i=0, ien=postfixButtons.length ; i<ien ; i++ ) {
  93220. conf.buttons.push( postfixButtons[i] );
  93221. }
  93222. conf.postfixButtons = null;
  93223. }
  93224. var prefixButtons = conf.prefixButtons;
  93225. if ( prefixButtons ) {
  93226. if ( ! conf.buttons ) {
  93227. conf.buttons = [];
  93228. }
  93229. for ( i=0, ien=prefixButtons.length ; i<ien ; i++ ) {
  93230. conf.buttons.splice( i, 0, prefixButtons[i] );
  93231. }
  93232. conf.prefixButtons = null;
  93233. }
  93234. // Although we want the `conf` object to overwrite almost all of
  93235. // the properties of the object being extended, the `extend`
  93236. // property should come from the object being extended
  93237. conf.extend = objArray.extend;
  93238. }
  93239. return conf;
  93240. }
  93241. } );
  93242. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  93243. * Statics
  93244. */
  93245. /**
  93246. * Show / hide a background layer behind a collection
  93247. * @param {boolean} Flag to indicate if the background should be shown or
  93248. * hidden
  93249. * @param {string} Class to assign to the background
  93250. * @static
  93251. */
  93252. Buttons.background = function ( show, className, fade ) {
  93253. if ( fade === undefined ) {
  93254. fade = 400;
  93255. }
  93256. if ( show ) {
  93257. $('<div/>')
  93258. .addClass( className )
  93259. .css( 'display', 'none' )
  93260. .appendTo( 'body' )
  93261. .fadeIn( fade );
  93262. }
  93263. else {
  93264. $('body > div.'+className)
  93265. .fadeOut( fade, function () {
  93266. $(this).remove();
  93267. } );
  93268. }
  93269. };
  93270. /**
  93271. * Instance selector - select Buttons instances based on an instance selector
  93272. * value from the buttons assigned to a DataTable. This is only useful if
  93273. * multiple instances are attached to a DataTable.
  93274. * @param {string|int|array} Instance selector - see `instance-selector`
  93275. * documentation on the DataTables site
  93276. * @param {array} Button instance array that was attached to the DataTables
  93277. * settings object
  93278. * @return {array} Buttons instances
  93279. * @static
  93280. */
  93281. Buttons.instanceSelector = function ( group, buttons )
  93282. {
  93283. if ( ! group ) {
  93284. return $.map( buttons, function ( v ) {
  93285. return v.inst;
  93286. } );
  93287. }
  93288. var ret = [];
  93289. var names = $.map( buttons, function ( v ) {
  93290. return v.name;
  93291. } );
  93292. // Flatten the group selector into an array of single options
  93293. var process = function ( input ) {
  93294. if ( $.isArray( input ) ) {
  93295. for ( var i=0, ien=input.length ; i<ien ; i++ ) {
  93296. process( input[i] );
  93297. }
  93298. return;
  93299. }
  93300. if ( typeof input === 'string' ) {
  93301. if ( input.indexOf( ',' ) !== -1 ) {
  93302. // String selector, list of names
  93303. process( input.split(',') );
  93304. }
  93305. else {
  93306. // String selector individual name
  93307. var idx = $.inArray( $.trim(input), names );
  93308. if ( idx !== -1 ) {
  93309. ret.push( buttons[ idx ].inst );
  93310. }
  93311. }
  93312. }
  93313. else if ( typeof input === 'number' ) {
  93314. // Index selector
  93315. ret.push( buttons[ input ].inst );
  93316. }
  93317. };
  93318. process( group );
  93319. return ret;
  93320. };
  93321. /**
  93322. * Button selector - select one or more buttons from a selector input so some
  93323. * operation can be performed on them.
  93324. * @param {array} Button instances array that the selector should operate on
  93325. * @param {string|int|node|jQuery|array} Button selector - see
  93326. * `button-selector` documentation on the DataTables site
  93327. * @return {array} Array of objects containing `inst` and `idx` properties of
  93328. * the selected buttons so you know which instance each button belongs to.
  93329. * @static
  93330. */
  93331. Buttons.buttonSelector = function ( insts, selector )
  93332. {
  93333. var ret = [];
  93334. var run = function ( selector, inst ) {
  93335. var i, ien, j, jen;
  93336. var buttons = [];
  93337. $.each( inst.s.buttons, function (i, v) {
  93338. if ( v !== null ) {
  93339. buttons.push( {
  93340. node: v.node[0],
  93341. name: v.name
  93342. } );
  93343. }
  93344. } );
  93345. $.each( inst.s.subButtons, function (i, v) {
  93346. $.each( v, function (j, w) {
  93347. if ( w !== null ) {
  93348. buttons.push( {
  93349. node: w.node[0],
  93350. name: w.name
  93351. } );
  93352. }
  93353. } );
  93354. } );
  93355. var nodes = $.map( buttons, function (v) {
  93356. return v.node;
  93357. } );
  93358. if ( $.isArray( selector ) || selector instanceof $ ) {
  93359. for ( i=0, ien=selector.length ; i<ien ; i++ ) {
  93360. run( selector[i], inst );
  93361. }
  93362. return;
  93363. }
  93364. if ( selector === null || selector === undefined || selector === '*' ) {
  93365. // Select all
  93366. for ( i=0, ien=buttons.length ; i<ien ; i++ ) {
  93367. ret.push( {
  93368. inst: inst,
  93369. idx: inst.toIndex( buttons[i].node )
  93370. } );
  93371. }
  93372. }
  93373. else if ( typeof selector === 'number' ) {
  93374. // Main button index selector
  93375. ret.push( {
  93376. inst: inst,
  93377. idx: selector
  93378. } );
  93379. }
  93380. else if ( typeof selector === 'string' ) {
  93381. if ( selector.indexOf( ',' ) !== -1 ) {
  93382. // Split
  93383. var a = selector.split(',');
  93384. for ( i=0, ien=a.length ; i<ien ; i++ ) {
  93385. run( $.trim(a[i]), inst );
  93386. }
  93387. }
  93388. else if ( selector.match( /^\d+(\-\d+)?$/ ) ) {
  93389. // Sub-button index selector
  93390. ret.push( {
  93391. inst: inst,
  93392. idx: selector
  93393. } );
  93394. }
  93395. else if ( selector.indexOf( ':name' ) !== -1 ) {
  93396. // Button name selector
  93397. var name = selector.replace( ':name', '' );
  93398. for ( i=0, ien=buttons.length ; i<ien ; i++ ) {
  93399. if ( buttons[i].name === name ) {
  93400. ret.push( {
  93401. inst: inst,
  93402. idx: inst.toIndex( buttons[i].node )
  93403. } );
  93404. }
  93405. }
  93406. }
  93407. else {
  93408. // jQuery selector on the nodes
  93409. $( nodes ).filter( selector ).each( function () {
  93410. ret.push( {
  93411. inst: inst,
  93412. idx: inst.toIndex( this )
  93413. } );
  93414. } );
  93415. }
  93416. }
  93417. else if ( typeof selector === 'object' && selector.nodeName ) {
  93418. // Node selector
  93419. var idx = $.inArray( selector, nodes );
  93420. if ( idx !== -1 ) {
  93421. ret.push( {
  93422. inst: inst,
  93423. idx: inst.toIndex( nodes[ idx ] )
  93424. } );
  93425. }
  93426. }
  93427. };
  93428. for ( var i=0, ien=insts.length ; i<ien ; i++ ) {
  93429. var inst = insts[i];
  93430. run( selector, inst );
  93431. }
  93432. return ret;
  93433. };
  93434. /**
  93435. * Buttons defaults. For full documentation, please refer to the docs/option
  93436. * directory or the DataTables site.
  93437. * @type {Object}
  93438. * @static
  93439. */
  93440. Buttons.defaults = {
  93441. buttons: [ 'copy', 'excel', 'csv', 'pdf', 'print' ],
  93442. name: 'main',
  93443. tabIndex: 0,
  93444. dom: {
  93445. container: {
  93446. tag: 'div',
  93447. className: 'dt-buttons'
  93448. },
  93449. collection: {
  93450. tag: 'div',
  93451. className: 'dt-button-collection'
  93452. },
  93453. button: {
  93454. tag: 'a',
  93455. className: 'dt-button',
  93456. active: 'active',
  93457. disabled: 'disabled'
  93458. },
  93459. buttonLiner: {
  93460. tag: 'span',
  93461. className: ''
  93462. }
  93463. }
  93464. };
  93465. /**
  93466. * Version information
  93467. * @type {string}
  93468. * @static
  93469. */
  93470. Buttons.version = '1.0.1';
  93471. $.extend( _dtButtons, {
  93472. collection: {
  93473. text: function ( dt, button, config ) {
  93474. return dt.i18n( 'buttons.collection', 'Collection' );
  93475. },
  93476. className: 'buttons-collection',
  93477. action: function ( e, dt, button, config ) {
  93478. var background;
  93479. var host = button;
  93480. var hostOffset = host.offset();
  93481. var tableContainer = $( dt.table().container() );
  93482. config._collection
  93483. .addClass( config.collectionLayout )
  93484. .css( 'display', 'none' )
  93485. .appendTo( 'body' )
  93486. .fadeIn( config.fade );
  93487. if ( config._collection.css( 'position' ) === 'absolute' ) {
  93488. config._collection.css( {
  93489. top: hostOffset.top + host.outerHeight(),
  93490. left: hostOffset.left
  93491. } );
  93492. var listRight = hostOffset.left + config._collection.outerWidth();
  93493. var tableRight = tableContainer.offset().left + tableContainer.width();
  93494. if ( listRight > tableRight ) {
  93495. config._collection.css( 'left', hostOffset.left - ( listRight - tableRight ) );
  93496. }
  93497. }
  93498. else {
  93499. // Fix position - centre on screen
  93500. var top = config._collection.height() / 2;
  93501. if ( top > $(window).height() / 2 ) {
  93502. top = $(window).height() / 2;
  93503. }
  93504. config._collection.css( 'marginTop', top*-1 );
  93505. }
  93506. if ( config.background ) {
  93507. Buttons.background( true, config.backgroundClassName, config.fade );
  93508. }
  93509. // Need to break the 'thread' for the collection button being
  93510. // activated by a click - it would also trigger this event
  93511. setTimeout( function () {
  93512. $(document).on( 'click.dtb-collection', function (e) {
  93513. if ( ! $(e.target).parents().andSelf().filter( config._collection ).length ) {
  93514. config._collection
  93515. .fadeOut( config.fade, function () {
  93516. config._collection.detach();
  93517. } );
  93518. Buttons.background( false, config.backgroundClassName, config.fade );
  93519. $(document).off( 'click.dtb-collection' );
  93520. }
  93521. } );
  93522. }, 10 );
  93523. },
  93524. background: true,
  93525. collectionLayout: '',
  93526. backgroundClassName: 'dt-button-background',
  93527. fade: 400
  93528. },
  93529. copy: function ( dt, conf ) {
  93530. if ( conf.preferHtml && _dtButtons.copyHtml5 ) {
  93531. return 'copyHtml5';
  93532. }
  93533. // Common option that will use the HTML5 or Flash export buttons
  93534. // For copy, the Flash option gets priority since it is one click only
  93535. if ( _dtButtons.copyFlash && _dtButtons.copyFlash.available( dt, conf ) ) {
  93536. return 'copyFlash';
  93537. }
  93538. if ( _dtButtons.copyHtml5 ) {
  93539. return 'copyHtml5';
  93540. }
  93541. },
  93542. csv: function ( dt, conf ) {
  93543. // Common option that will use the HTML5 or Flash export buttons
  93544. if ( _dtButtons.csvHtml5 && _dtButtons.csvHtml5.available( dt, conf ) ) {
  93545. return 'csvHtml5';
  93546. }
  93547. if ( _dtButtons.csvFlash && _dtButtons.csvFlash.available( dt, conf ) ) {
  93548. return 'csvFlash';
  93549. }
  93550. },
  93551. excel: function ( dt, conf ) {
  93552. // Common option that will use the HTML5 or Flash export buttons
  93553. if ( _dtButtons.excelHtml5 && _dtButtons.excelHtml5.available( dt, conf ) ) {
  93554. return 'excelHtml5';
  93555. }
  93556. if ( _dtButtons.excelFlash && _dtButtons.excelFlash.available( dt, conf ) ) {
  93557. return 'excelFlash';
  93558. }
  93559. },
  93560. pdf: function ( dt, conf ) {
  93561. // Common option that will use the HTML5 or Flash export buttons
  93562. if ( _dtButtons.pdfHtml5 && _dtButtons.pdfHtml5.available( dt, conf ) ) {
  93563. return 'pdfHtml5';
  93564. }
  93565. if ( _dtButtons.pdfFlash && _dtButtons.pdfFlash.available( dt, conf ) ) {
  93566. return 'pdfFlash';
  93567. }
  93568. }
  93569. } );
  93570. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  93571. * DataTables API
  93572. *
  93573. * For complete documentation, please refer to the docs/api directory or the
  93574. * DataTables site
  93575. */
  93576. // Buttons group and individual button selector
  93577. DataTable.Api.register( 'buttons()', function ( group, selector ) {
  93578. // Argument shifting
  93579. if ( selector === undefined ) {
  93580. selector = group;
  93581. group = undefined;
  93582. }
  93583. return this.iterator( true, 'table', function ( ctx ) {
  93584. if ( ctx._buttons ) {
  93585. return Buttons.buttonSelector(
  93586. Buttons.instanceSelector( group, ctx._buttons ),
  93587. selector
  93588. );
  93589. }
  93590. }, true );
  93591. } );
  93592. // Individual button selector
  93593. DataTable.Api.register( 'button()', function ( group, selector ) {
  93594. // just run buttons() and truncate
  93595. var buttons = this.buttons( group, selector );
  93596. if ( buttons.length > 1 ) {
  93597. buttons.splice( 1, buttons.length );
  93598. }
  93599. return buttons;
  93600. } );
  93601. // Active buttons
  93602. DataTable.Api.register( ['buttons().active()', 'button().active()'], function ( flag ) {
  93603. return this.each( function ( set ) {
  93604. set.inst.active( set.idx, flag );
  93605. } );
  93606. } );
  93607. // Get / set button action
  93608. DataTable.Api.registerPlural( 'buttons().action()', 'button().action()', function ( action ) {
  93609. if ( action === undefined ) {
  93610. return this.map( function ( set ) {
  93611. return set.inst.action( set.idx );
  93612. } );
  93613. }
  93614. return this.each( function ( set ) {
  93615. set.inst.action( set.idx, action );
  93616. } );
  93617. } );
  93618. // Enable / disable buttons
  93619. DataTable.Api.register( ['buttons().enable()', 'button().enable()'], function ( flag ) {
  93620. return this.each( function ( set ) {
  93621. set.inst.enable( set.idx, flag );
  93622. } );
  93623. } );
  93624. // Disable buttons
  93625. DataTable.Api.register( ['buttons().disable()', 'button().disable()'], function () {
  93626. return this.each( function ( set ) {
  93627. set.inst.disable( set.idx );
  93628. } );
  93629. } );
  93630. // Get button nodes
  93631. DataTable.Api.registerPlural( 'buttons().nodes()', 'button().node()', function () {
  93632. var jq = $();
  93633. // jQuery will automatically reduce duplicates to a single entry
  93634. $( this.each( function ( set ) {
  93635. jq = jq.add( set.inst.node( set.idx ) );
  93636. } ) );
  93637. return jq;
  93638. } );
  93639. // Get / set button text (i.e. the button labels)
  93640. DataTable.Api.registerPlural( 'buttons().text()', 'button().text()', function ( label ) {
  93641. if ( label === undefined ) {
  93642. return this.map( function ( set ) {
  93643. return set.inst.text( set.idx );
  93644. } );
  93645. }
  93646. return this.each( function ( set ) {
  93647. set.inst.text( set.idx, label );
  93648. } );
  93649. } );
  93650. // Trigger a button's action
  93651. DataTable.Api.registerPlural( 'buttons().trigger()', 'button().trigger()', function () {
  93652. return this.each( function ( set ) {
  93653. set.inst.node( set.idx ).trigger( 'click' );
  93654. } );
  93655. } );
  93656. // Get the container elements for the button sets selected
  93657. DataTable.Api.registerPlural( 'buttons().containers()', 'buttons().container()', function () {
  93658. var jq = $();
  93659. // jQuery will automatically reduce duplicates to a single entry
  93660. $( this.each( function ( set ) {
  93661. jq = jq.add( set.inst.container() );
  93662. } ) );
  93663. return jq;
  93664. } );
  93665. // Add a new button
  93666. DataTable.Api.register( 'button().add()', function ( idx, conf ) {
  93667. if ( this.length === 1 ) {
  93668. this[0].inst.add( idx, conf );
  93669. }
  93670. return this.button( idx );
  93671. } );
  93672. // Destroy the button sets selected
  93673. DataTable.Api.register( 'buttons().destroy()', function ( idx ) {
  93674. this.pluck( 'inst' ).unique().each( function ( inst ) {
  93675. inst.destroy();
  93676. } );
  93677. return this;
  93678. } );
  93679. // Remove a button
  93680. DataTable.Api.registerPlural( 'buttons().remove()', 'buttons().remove()', function () {
  93681. // Need to split into prep and commit so the indexes remain constant during the remove
  93682. this.each( function ( set ) {
  93683. set.inst.removePrep( set.idx );
  93684. } );
  93685. this.pluck( 'inst' ).unique().each( function ( inst ) {
  93686. inst.removeCommit();
  93687. } );
  93688. return this;
  93689. } );
  93690. // Information box that can be used by buttons
  93691. var _infoTimer;
  93692. DataTable.Api.register( 'buttons.info()', function ( title, message, time ) {
  93693. var that = this;
  93694. if ( title === false ) {
  93695. $('#datatables_buttons_info').fadeOut( function () {
  93696. $(this).remove();
  93697. } );
  93698. clearTimeout( _infoTimer );
  93699. _infoTimer = null;
  93700. return this;
  93701. }
  93702. if ( _infoTimer ) {
  93703. clearTimeout( _infoTimer );
  93704. }
  93705. if ( $('#datatables_buttons_info').length ) {
  93706. $('#datatables_buttons_info').remove();
  93707. }
  93708. title = title ? '<h2>'+title+'</h2>' : '';
  93709. $('<div id="datatables_buttons_info" class="dt-button-info"/>')
  93710. .html( title )
  93711. .append( $('<div/>')[ typeof message === 'string' ? 'html' : 'append' ]( message ) )
  93712. .css( 'display', 'none' )
  93713. .appendTo( 'body' )
  93714. .fadeIn();
  93715. if ( time !== undefined && time !== 0 ) {
  93716. _infoTimer = setTimeout( function () {
  93717. that.buttons.info( false );
  93718. }, time );
  93719. }
  93720. return this;
  93721. } );
  93722. // Get data from the table for export - this is common to a number of plug-in
  93723. // buttons so it is included in the Buttons core library
  93724. DataTable.Api.register( 'buttons.exportData()', function ( options ) {
  93725. if ( this.context.length ) {
  93726. return _exportData( new DataTable.Api( this.context[0] ), options );
  93727. }
  93728. } );
  93729. var _exportData = function ( dt, inOpts )
  93730. {
  93731. var config = $.extend( true, {}, {
  93732. rows: null,
  93733. columns: '',
  93734. modifier: {
  93735. search: 'applied',
  93736. order: 'applied'
  93737. },
  93738. orthogonal: 'display',
  93739. stripHtml: true,
  93740. stripNewlines: true,
  93741. trim: true
  93742. }, inOpts );
  93743. var strip = function ( str ) {
  93744. if ( typeof str !== 'string' ) {
  93745. return str;
  93746. }
  93747. if ( config.stripHtml ) {
  93748. str = str.replace( /<.*?>/g, '' );
  93749. }
  93750. if ( config.trim ) {
  93751. str = str.replace( /^\s+|\s+$/g, '' );
  93752. }
  93753. if ( config.trim ) {
  93754. str = str.replace( /\n/g, ' ' );
  93755. }
  93756. return str;
  93757. };
  93758. var header = dt.columns( config.columns ).indexes().map( function (idx, i) {
  93759. return strip( dt.column( idx ).header().innerHTML );
  93760. } ).toArray();
  93761. var footer = dt.table().footer() ?
  93762. dt.columns( config.columns ).indexes().map( function (idx, i) {
  93763. var el = dt.column( idx ).footer();
  93764. return el ?
  93765. strip( el.innerHTML ) :
  93766. '';
  93767. } ).toArray() :
  93768. null;
  93769. var body = dt.rows( config.rows, config.modifier ).indexes().map( function (rowIdx, i) {
  93770. return dt.cells( rowIdx, config.columns ).indexes().map( function (cellIdx) {
  93771. return strip( dt.cell( cellIdx ).render( config.orthogonal ) );
  93772. } ).toArray();
  93773. } ).toArray();
  93774. return {
  93775. header: header,
  93776. footer: footer,
  93777. body: body
  93778. };
  93779. };
  93780. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  93781. * DataTables interface
  93782. */
  93783. // Attach to DataTables objects for global access
  93784. $.fn.dataTable.Buttons = Buttons;
  93785. $.fn.DataTable.Buttons = Buttons;
  93786. // DataTables creation - check if the buttons have been defined for this table,
  93787. // they will have been if the `B` option was used in `dom`, otherwise we should
  93788. // create the buttons instance here so they can be inserted into the document
  93789. // using the API
  93790. $(document).on( 'init.dt.dtb', function (e, settings, json) {
  93791. if ( e.namespace !== 'dt' ) {
  93792. return;
  93793. }
  93794. var opts = settings.oInit.buttons || DataTable.defaults.buttons;
  93795. if ( opts && ! settings._buttons ) {
  93796. new Buttons( settings, opts ).container();
  93797. }
  93798. } );
  93799. // DataTables `dom` feature option
  93800. DataTable.ext.feature.push( {
  93801. fnInit: function( settings ) {
  93802. var api = new DataTable.Api( settings );
  93803. var opts = api.init().buttons;
  93804. return new Buttons( api, opts ).container();
  93805. },
  93806. cFeature: "B"
  93807. } );
  93808. return Buttons;
  93809. }; // /factory
  93810. // Define as an AMD module if possible
  93811. if ( typeof define === 'function' && define.amd ) {
  93812. define( ['jquery', 'datatables'], factory );
  93813. }
  93814. else if ( typeof exports === 'object' ) {
  93815. // Node/CommonJS
  93816. factory( require('jquery'), require('datatables') );
  93817. }
  93818. else if ( jQuery && !jQuery.fn.dataTable.Buttons ) {
  93819. // Otherwise simply initialise as normal, stopping multiple evaluation
  93820. factory( jQuery, jQuery.fn.dataTable );
  93821. }
  93822. })(window, document);
  93823. /*!
  93824. * Column visibility buttons for Buttons and DataTables.
  93825. * 2015 SpryMedia Ltd - datatables.net/license
  93826. */
  93827. (function($, DataTable) {
  93828. "use strict";
  93829. $.extend( DataTable.ext.buttons, {
  93830. // A collection of column visibility buttons
  93831. colvis: function ( dt, conf ) {
  93832. return {
  93833. extend: 'collection',
  93834. text: function ( dt ) {
  93835. return dt.i18n( 'buttons.colvis', 'Column visibility' );
  93836. },
  93837. className: 'buttons-colvis',
  93838. buttons: [ {
  93839. extend: 'columnsToggle',
  93840. columns: conf.columns
  93841. } ]
  93842. };
  93843. },
  93844. // Selected columns with individual buttons - toggle column visibility
  93845. columnsToggle: function ( dt, conf ) {
  93846. var columns = dt.columns( conf.columns ).indexes().map( function ( idx ) {
  93847. return {
  93848. extend: 'columnToggle',
  93849. columns: idx
  93850. };
  93851. } ).toArray();
  93852. return columns;
  93853. },
  93854. // Single button to toggle column visibility
  93855. columnToggle: function ( dt, conf ) {
  93856. return {
  93857. extend: 'columnVisibility',
  93858. columns: conf.columns
  93859. };
  93860. },
  93861. // Selected columns with individual buttons - set column visibility
  93862. columnsVisibility: function ( dt, conf ) {
  93863. var columns = dt.columns( conf.columns ).indexes().map( function ( idx ) {
  93864. return {
  93865. extend: 'columnVisibility',
  93866. columns: idx,
  93867. visibility: conf.visibility
  93868. };
  93869. } ).toArray();
  93870. return columns;
  93871. },
  93872. // Single button to set column visibility
  93873. columnVisibility: {
  93874. columns: null, // column selector
  93875. text: function ( dt, button, conf ) {
  93876. return conf._columnText( dt, conf.columns );
  93877. },
  93878. className: 'buttons-columnVisibility',
  93879. action: function ( e, dt, button, conf ) {
  93880. var col = dt.column( conf.columns );
  93881. col.visible( conf.visibility !== undefined ?
  93882. conf.visibility :
  93883. ! col.visible()
  93884. );
  93885. },
  93886. init: function ( dt, button, conf ) {
  93887. var that = this;
  93888. var col = dt.column( conf.columns );
  93889. dt
  93890. .on( 'column-visibility.dt'+conf.namespace, function (e, settings, column, state) {
  93891. if ( column === conf.columns ) {
  93892. that.active( state );
  93893. }
  93894. } )
  93895. .on( 'column-reorder.dt'+conf.namespace, function (e, settings, details) {
  93896. var col = dt.column( conf.columns );
  93897. button.text( conf._columnText( dt, conf.columns ) );
  93898. that.active( col.visible() );
  93899. } );
  93900. this.active( col.visible() );
  93901. },
  93902. destroy: function ( dt, button, conf ) {
  93903. dt
  93904. .off( 'column-visibility.dt'+conf.namespace )
  93905. .off( 'column-reorder.dt'+conf.namespace );
  93906. },
  93907. _columnText: function ( dt, col ) {
  93908. // Use DataTables' internal data structure until this is presented
  93909. // is a public API. The other option is to use
  93910. // `$( column(col).node() ).text()` but the node might not have been
  93911. // populated when Buttons is constructed.
  93912. var idx = dt.column( col ).index();
  93913. return dt.settings()[0].aoColumns[ idx ].sTitle
  93914. .replace(/\n/g," ") // remove new lines
  93915. .replace( /<.*?>/g, "" ) // strip HTML
  93916. .replace(/^\s+|\s+$/g,""); // trim
  93917. }
  93918. },
  93919. colvisRestore: {
  93920. className: 'buttons-colvisRestore',
  93921. text: function ( dt ) {
  93922. return dt.i18n( 'buttons.colvisRestore', 'Restore visibility' );
  93923. },
  93924. init: function ( dt, button, conf ) {
  93925. conf._visOriginal = dt.columns().indexes().map( function ( idx ) {
  93926. return dt.column( idx ).visible();
  93927. } ).toArray();
  93928. },
  93929. action: function ( e, dt, button, conf ) {
  93930. dt.columns().every( function ( i ) {
  93931. this.visible( conf._visOriginal[ i ] );
  93932. } );
  93933. }
  93934. },
  93935. colvisGroup: {
  93936. className: 'buttons-colvisGroup',
  93937. action: function ( e, dt, button, conf ) {
  93938. dt.columns( conf.show ).visible( true );
  93939. dt.columns( conf.hide ).visible( false );
  93940. },
  93941. show: [],
  93942. hide: []
  93943. }
  93944. } );
  93945. })(jQuery, jQuery.fn.dataTable);
  93946. /*!
  93947. * Flash export buttons for Buttons and DataTables.
  93948. * 2015 SpryMedia Ltd - datatables.net/license
  93949. *
  93950. * ZeroClipbaord - MIT license
  93951. * Copyright (c) 2012 Joseph Huckaby
  93952. */
  93953. (function($, DataTable) {
  93954. "use strict";
  93955. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  93956. * ZeroClipboard dependency
  93957. */
  93958. /*
  93959. * ZeroClipboard 1.0.4 with modifications
  93960. * Author: Joseph Huckaby
  93961. * License: MIT
  93962. *
  93963. * Copyright (c) 2012 Joseph Huckaby
  93964. */
  93965. var ZeroClipboard_TableTools = {
  93966. version: "1.0.4-TableTools2",
  93967. clients: {}, // registered upload clients on page, indexed by id
  93968. moviePath: '', // URL to movie
  93969. nextId: 1, // ID of next movie
  93970. $: function(thingy) {
  93971. // simple DOM lookup utility function
  93972. if (typeof(thingy) == 'string') {
  93973. thingy = document.getElementById(thingy);
  93974. }
  93975. if (!thingy.addClass) {
  93976. // extend element with a few useful methods
  93977. thingy.hide = function() { this.style.display = 'none'; };
  93978. thingy.show = function() { this.style.display = ''; };
  93979. thingy.addClass = function(name) { this.removeClass(name); this.className += ' ' + name; };
  93980. thingy.removeClass = function(name) {
  93981. this.className = this.className.replace( new RegExp("\\s*" + name + "\\s*"), " ").replace(/^\s+/, '').replace(/\s+$/, '');
  93982. };
  93983. thingy.hasClass = function(name) {
  93984. return !!this.className.match( new RegExp("\\s*" + name + "\\s*") );
  93985. };
  93986. }
  93987. return thingy;
  93988. },
  93989. setMoviePath: function(path) {
  93990. // set path to ZeroClipboard.swf
  93991. this.moviePath = path;
  93992. },
  93993. dispatch: function(id, eventName, args) {
  93994. // receive event from flash movie, send to client
  93995. var client = this.clients[id];
  93996. if (client) {
  93997. client.receiveEvent(eventName, args);
  93998. }
  93999. },
  94000. register: function(id, client) {
  94001. // register new client to receive events
  94002. this.clients[id] = client;
  94003. },
  94004. getDOMObjectPosition: function(obj) {
  94005. // get absolute coordinates for dom element
  94006. var info = {
  94007. left: 0,
  94008. top: 0,
  94009. width: obj.width ? obj.width : obj.offsetWidth,
  94010. height: obj.height ? obj.height : obj.offsetHeight
  94011. };
  94012. if ( obj.style.width !== "" ) {
  94013. info.width = obj.style.width.replace("px","");
  94014. }
  94015. if ( obj.style.height !== "" ) {
  94016. info.height = obj.style.height.replace("px","");
  94017. }
  94018. while (obj) {
  94019. info.left += obj.offsetLeft;
  94020. info.top += obj.offsetTop;
  94021. obj = obj.offsetParent;
  94022. }
  94023. return info;
  94024. },
  94025. Client: function(elem) {
  94026. // constructor for new simple upload client
  94027. this.handlers = {};
  94028. // unique ID
  94029. this.id = ZeroClipboard_TableTools.nextId++;
  94030. this.movieId = 'ZeroClipboard_TableToolsMovie_' + this.id;
  94031. // register client with singleton to receive flash events
  94032. ZeroClipboard_TableTools.register(this.id, this);
  94033. // create movie
  94034. if (elem) {
  94035. this.glue(elem);
  94036. }
  94037. }
  94038. };
  94039. ZeroClipboard_TableTools.Client.prototype = {
  94040. id: 0, // unique ID for us
  94041. ready: false, // whether movie is ready to receive events or not
  94042. movie: null, // reference to movie object
  94043. clipText: '', // text to copy to clipboard
  94044. fileName: '', // default file save name
  94045. action: 'copy', // action to perform
  94046. handCursorEnabled: true, // whether to show hand cursor, or default pointer cursor
  94047. cssEffects: true, // enable CSS mouse effects on dom container
  94048. handlers: null, // user event handlers
  94049. sized: false,
  94050. glue: function(elem, title) {
  94051. // glue to DOM element
  94052. // elem can be ID or actual DOM element object
  94053. this.domElement = ZeroClipboard_TableTools.$(elem);
  94054. // float just above object, or zIndex 99 if dom element isn't set
  94055. var zIndex = 99;
  94056. if (this.domElement.style.zIndex) {
  94057. zIndex = parseInt(this.domElement.style.zIndex, 10) + 1;
  94058. }
  94059. // find X/Y position of domElement
  94060. var box = ZeroClipboard_TableTools.getDOMObjectPosition(this.domElement);
  94061. // create floating DIV above element
  94062. this.div = document.createElement('div');
  94063. var style = this.div.style;
  94064. style.position = 'absolute';
  94065. style.left = '0px';
  94066. style.top = '0px';
  94067. style.width = (box.width) + 'px';
  94068. style.height = box.height + 'px';
  94069. style.zIndex = zIndex;
  94070. if ( typeof title != "undefined" && title !== "" ) {
  94071. this.div.title = title;
  94072. }
  94073. if ( box.width !== 0 && box.height !== 0 ) {
  94074. this.sized = true;
  94075. }
  94076. // style.backgroundColor = '#f00'; // debug
  94077. if ( this.domElement ) {
  94078. this.domElement.appendChild(this.div);
  94079. this.div.innerHTML = this.getHTML( box.width, box.height ).replace(/&/g, '&amp;');
  94080. }
  94081. },
  94082. positionElement: function() {
  94083. var box = ZeroClipboard_TableTools.getDOMObjectPosition(this.domElement);
  94084. var style = this.div.style;
  94085. style.position = 'absolute';
  94086. //style.left = (this.domElement.offsetLeft)+'px';
  94087. //style.top = this.domElement.offsetTop+'px';
  94088. style.width = box.width + 'px';
  94089. style.height = box.height + 'px';
  94090. if ( box.width !== 0 && box.height !== 0 ) {
  94091. this.sized = true;
  94092. } else {
  94093. return;
  94094. }
  94095. var flash = this.div.childNodes[0];
  94096. flash.width = box.width;
  94097. flash.height = box.height;
  94098. },
  94099. getHTML: function(width, height) {
  94100. // return HTML for movie
  94101. var html = '';
  94102. var flashvars = 'id=' + this.id +
  94103. '&width=' + width +
  94104. '&height=' + height;
  94105. if (navigator.userAgent.match(/MSIE/)) {
  94106. // IE gets an OBJECT tag
  94107. var protocol = location.href.match(/^https/i) ? 'https://' : 'http://';
  94108. html += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="'+protocol+'download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="'+width+'" height="'+height+'" id="'+this.movieId+'" align="middle"><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="false" /><param name="movie" value="'+ZeroClipboard_TableTools.moviePath+'" /><param name="loop" value="false" /><param name="menu" value="false" /><param name="quality" value="best" /><param name="bgcolor" value="#ffffff" /><param name="flashvars" value="'+flashvars+'"/><param name="wmode" value="transparent"/></object>';
  94109. }
  94110. else {
  94111. // all other browsers get an EMBED tag
  94112. html += '<embed id="'+this.movieId+'" src="'+ZeroClipboard_TableTools.moviePath+'" loop="false" menu="false" quality="best" bgcolor="#ffffff" width="'+width+'" height="'+height+'" name="'+this.movieId+'" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="'+flashvars+'" wmode="transparent" />';
  94113. }
  94114. return html;
  94115. },
  94116. hide: function() {
  94117. // temporarily hide floater offscreen
  94118. if (this.div) {
  94119. this.div.style.left = '-2000px';
  94120. }
  94121. },
  94122. show: function() {
  94123. // show ourselves after a call to hide()
  94124. this.reposition();
  94125. },
  94126. destroy: function() {
  94127. // destroy control and floater
  94128. var that = this;
  94129. if (this.domElement && this.div) {
  94130. $(this.div).remove();
  94131. this.domElement = null;
  94132. this.div = null;
  94133. $.each( ZeroClipboard_TableTools.clients, function ( id, client ) {
  94134. if ( client === that ) {
  94135. delete ZeroClipboard_TableTools.clients[ id ];
  94136. }
  94137. } );
  94138. }
  94139. },
  94140. reposition: function(elem) {
  94141. // reposition our floating div, optionally to new container
  94142. // warning: container CANNOT change size, only position
  94143. if (elem) {
  94144. this.domElement = ZeroClipboard_TableTools.$(elem);
  94145. if (!this.domElement) {
  94146. this.hide();
  94147. }
  94148. }
  94149. if (this.domElement && this.div) {
  94150. var box = ZeroClipboard_TableTools.getDOMObjectPosition(this.domElement);
  94151. var style = this.div.style;
  94152. style.left = '' + box.left + 'px';
  94153. style.top = '' + box.top + 'px';
  94154. }
  94155. },
  94156. clearText: function() {
  94157. // clear the text to be copy / saved
  94158. this.clipText = '';
  94159. if (this.ready) {
  94160. this.movie.clearText();
  94161. }
  94162. },
  94163. appendText: function(newText) {
  94164. // append text to that which is to be copied / saved
  94165. this.clipText += newText;
  94166. if (this.ready) { this.movie.appendText(newText) ;}
  94167. },
  94168. setText: function(newText) {
  94169. // set text to be copied to be copied / saved
  94170. this.clipText = newText;
  94171. if (this.ready) { this.movie.setText(newText) ;}
  94172. },
  94173. setFileName: function(newText) {
  94174. // set the file name
  94175. this.fileName = newText;
  94176. if (this.ready) {
  94177. this.movie.setFileName(newText);
  94178. }
  94179. },
  94180. setAction: function(newText) {
  94181. // set action (save or copy)
  94182. this.action = newText;
  94183. if (this.ready) {
  94184. this.movie.setAction(newText);
  94185. }
  94186. },
  94187. addEventListener: function(eventName, func) {
  94188. // add user event listener for event
  94189. // event types: load, queueStart, fileStart, fileComplete, queueComplete, progress, error, cancel
  94190. eventName = eventName.toString().toLowerCase().replace(/^on/, '');
  94191. if (!this.handlers[eventName]) {
  94192. this.handlers[eventName] = [];
  94193. }
  94194. this.handlers[eventName].push(func);
  94195. },
  94196. setHandCursor: function(enabled) {
  94197. // enable hand cursor (true), or default arrow cursor (false)
  94198. this.handCursorEnabled = enabled;
  94199. if (this.ready) {
  94200. this.movie.setHandCursor(enabled);
  94201. }
  94202. },
  94203. setCSSEffects: function(enabled) {
  94204. // enable or disable CSS effects on DOM container
  94205. this.cssEffects = !!enabled;
  94206. },
  94207. receiveEvent: function(eventName, args) {
  94208. var self;
  94209. // receive event from flash
  94210. eventName = eventName.toString().toLowerCase().replace(/^on/, '');
  94211. // special behavior for certain events
  94212. switch (eventName) {
  94213. case 'load':
  94214. // movie claims it is ready, but in IE this isn't always the case...
  94215. // bug fix: Cannot extend EMBED DOM elements in Firefox, must use traditional function
  94216. this.movie = document.getElementById(this.movieId);
  94217. if (!this.movie) {
  94218. self = this;
  94219. setTimeout( function() { self.receiveEvent('load', null); }, 1 );
  94220. return;
  94221. }
  94222. // firefox on pc needs a "kick" in order to set these in certain cases
  94223. if (!this.ready && navigator.userAgent.match(/Firefox/) && navigator.userAgent.match(/Windows/)) {
  94224. self = this;
  94225. setTimeout( function() { self.receiveEvent('load', null); }, 100 );
  94226. this.ready = true;
  94227. return;
  94228. }
  94229. this.ready = true;
  94230. this.movie.clearText();
  94231. this.movie.appendText( this.clipText );
  94232. this.movie.setFileName( this.fileName );
  94233. this.movie.setAction( this.action );
  94234. this.movie.setHandCursor( this.handCursorEnabled );
  94235. break;
  94236. case 'mouseover':
  94237. if (this.domElement && this.cssEffects) {
  94238. //this.domElement.addClass('hover');
  94239. if (this.recoverActive) {
  94240. this.domElement.addClass('active');
  94241. }
  94242. }
  94243. break;
  94244. case 'mouseout':
  94245. if (this.domElement && this.cssEffects) {
  94246. this.recoverActive = false;
  94247. if (this.domElement.hasClass('active')) {
  94248. this.domElement.removeClass('active');
  94249. this.recoverActive = true;
  94250. }
  94251. //this.domElement.removeClass('hover');
  94252. }
  94253. break;
  94254. case 'mousedown':
  94255. if (this.domElement && this.cssEffects) {
  94256. this.domElement.addClass('active');
  94257. }
  94258. break;
  94259. case 'mouseup':
  94260. if (this.domElement && this.cssEffects) {
  94261. this.domElement.removeClass('active');
  94262. this.recoverActive = false;
  94263. }
  94264. break;
  94265. } // switch eventName
  94266. if (this.handlers[eventName]) {
  94267. for (var idx = 0, len = this.handlers[eventName].length; idx < len; idx++) {
  94268. var func = this.handlers[eventName][idx];
  94269. if (typeof(func) == 'function') {
  94270. // actual function reference
  94271. func(this, args);
  94272. }
  94273. else if ((typeof(func) == 'object') && (func.length == 2)) {
  94274. // PHP style object + method, i.e. [myObject, 'myMethod']
  94275. func[0][ func[1] ](this, args);
  94276. }
  94277. else if (typeof(func) == 'string') {
  94278. // name of function
  94279. window[func](this, args);
  94280. }
  94281. } // foreach event handler defined
  94282. } // user defined handler for event
  94283. }
  94284. };
  94285. ZeroClipboard_TableTools.hasFlash = function ()
  94286. {
  94287. try {
  94288. var fo = new ActiveXObject('ShockwaveFlash.ShockwaveFlash');
  94289. if (fo) {
  94290. return true;
  94291. }
  94292. }
  94293. catch (e) {
  94294. if (
  94295. navigator.mimeTypes &&
  94296. navigator.mimeTypes['application/x-shockwave-flash'] !== undefined &&
  94297. navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin
  94298. ) {
  94299. return true;
  94300. }
  94301. }
  94302. return false;
  94303. };
  94304. // For the Flash binding to work, ZeroClipboard_TableTools must be on the global
  94305. // object list
  94306. window.ZeroClipboard_TableTools = ZeroClipboard_TableTools;
  94307. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  94308. * Local (private) functions
  94309. */
  94310. /**
  94311. * If a Buttons instance is initlaised before it is placed into the DOM, Flash
  94312. * won't be able to bind to it, so we need to wait until it is available, this
  94313. * method abstracts that out.
  94314. *
  94315. * @param {ZeroClipboard} flash ZeroClipboard instance
  94316. * @param {jQuery} node Button
  94317. */
  94318. var _glue = function ( flash, node )
  94319. {
  94320. var id = node.attr('id');
  94321. if ( node.parents('html').length ) {
  94322. flash.glue( node[0], '' );
  94323. }
  94324. else {
  94325. setTimeout( function () {
  94326. _glue( flash, node );
  94327. }, 500 );
  94328. }
  94329. };
  94330. /**
  94331. * Get the title / file name for an exported file.
  94332. *
  94333. * @param {object} config Button configuration
  94334. * @param {boolean} incExtension Include the file name extension
  94335. */
  94336. var _filename = function ( config, incExtension )
  94337. {
  94338. var title = config.title;
  94339. if ( title.indexOf( '*' ) !== -1 ) {
  94340. title = title.replace( '*', $('title').text() );
  94341. }
  94342. // Strip characters which the OS will object to
  94343. title = title.replace(/[^a-zA-Z0-9_\u00A1-\uFFFF\.,\-_ !\(\)]/g, "");
  94344. return incExtension === undefined || incExtension === true ?
  94345. title+config.extension :
  94346. title;
  94347. };
  94348. /**
  94349. * Set the flash text. This has to be broken up into chunks as the Javascript /
  94350. * Flash bridge has a size limit. There is no indication in the Flash
  94351. * documentation what this is, and it probably depends upon the browser.
  94352. * Experimentation shows that the point is around 50k when data starts to get
  94353. * lost, so an 8K limit used here is safe.
  94354. *
  94355. * @param {ZeroClipboard} flash ZeroClipboard instance
  94356. * @param {string} data Data to send to Flash
  94357. */
  94358. var _setText = function ( flash, data )
  94359. {
  94360. var parts = data.match(/[\s\S]{1,8192}/g) || [];
  94361. flash.clearText();
  94362. for ( var i=0, len=parts.length ; i<len ; i++ )
  94363. {
  94364. flash.appendText( parts[i] );
  94365. }
  94366. };
  94367. /**
  94368. * Get the newline character(s)
  94369. *
  94370. * @param {object} config Button configuration
  94371. * @return {string} Newline character
  94372. */
  94373. var _newLine = function ( config )
  94374. {
  94375. return config.newline ?
  94376. config.newline :
  94377. navigator.userAgent.match(/Windows/) ?
  94378. '\r\n' :
  94379. '\n';
  94380. };
  94381. /**
  94382. * Combine the data from the `buttons.exportData` method into a string that
  94383. * will be used in the export file.
  94384. *
  94385. * @param {DataTable.Api} dt DataTables API instance
  94386. * @param {object} config Button configuration
  94387. * @return {object} The data to export
  94388. */
  94389. var _exportData = function ( dt, config )
  94390. {
  94391. var newLine = _newLine( config );
  94392. var data = dt.buttons.exportData( config.exportOptions );
  94393. var join = function ( a ) {
  94394. return config.fieldBoundary +
  94395. a.join( config.fieldBoundary + config.fieldSeparator + config.fieldBoundary ) +
  94396. config.fieldBoundary;
  94397. };
  94398. var header = config.header ? join( data.header )+newLine : '';
  94399. var footer = config.footer ? newLine+join( data.footer ) : '';
  94400. var body = [];
  94401. for ( var i=0, ien=data.body.length ; i<ien ; i++ ) {
  94402. body.push( join( data.body[i] ) );
  94403. }
  94404. return {
  94405. str: header + body.join( newLine ) + footer,
  94406. rows: body.length
  94407. };
  94408. };
  94409. // Basic initialisation for the buttons is common between them
  94410. var flashButton = {
  94411. available: function () {
  94412. return ZeroClipboard_TableTools.hasFlash();
  94413. },
  94414. init: function ( dt, button, config ) {
  94415. // Insert the Flash movie
  94416. ZeroClipboard_TableTools.moviePath = DataTable.Buttons.swfPath;
  94417. var flash = new ZeroClipboard_TableTools.Client();
  94418. flash.setHandCursor( true );
  94419. flash.addEventListener('mouseDown', function(client) {
  94420. config._fromFlash = true;
  94421. dt.button( button[0] ).trigger();
  94422. config._fromFlash = false;
  94423. } );
  94424. _glue( flash, button );
  94425. config._flash = flash;
  94426. },
  94427. destroy: function ( dt, button, config ) {
  94428. config._flash.destroy();
  94429. },
  94430. fieldSeparator: ',',
  94431. fieldBoundary: '"',
  94432. exportOptions: {},
  94433. title: '*',
  94434. extension: '.csv',
  94435. header: true,
  94436. footer: false
  94437. };
  94438. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  94439. * DataTables options and methods
  94440. */
  94441. // Set the default SWF path
  94442. DataTable.Buttons.swfPath = '//cdn.datatables.net/buttons/1.0.0/swf/flashExport.swf';
  94443. // Method to allow Flash buttons to be resized when made visible - as they are
  94444. // of zero height and width if initialised hidden
  94445. DataTable.Api.register( 'buttons.resize()', function () {
  94446. $.each( ZeroClipboard_TableTools.clients, function ( i, client ) {
  94447. if ( client.domElement !== undefined && client.domElement.parentNode ) {
  94448. client.positionElement();
  94449. }
  94450. } );
  94451. } );
  94452. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  94453. * Button definitions
  94454. */
  94455. // Copy to clipboard
  94456. DataTable.ext.buttons.copyFlash = $.extend( {}, flashButton, {
  94457. className: 'buttons-copy buttons-flash',
  94458. text: function ( dt ) {
  94459. return dt.i18n( 'buttons.copy', 'Copy' );
  94460. },
  94461. action: function ( e, dt, button, config ) {
  94462. // Check that the trigger did actually occur due to a Flash activation
  94463. if ( ! config._fromFlash ) {
  94464. return;
  94465. }
  94466. var flash = config._flash;
  94467. var data = _exportData( dt, config );
  94468. flash.setAction( 'copy' );
  94469. _setText( flash, data.str );
  94470. dt.buttons.info(
  94471. dt.i18n( 'buttons.copyTitle', 'Copy to clipboard' ),
  94472. dt.i18n( 'buttons.copyInfo', {
  94473. _: 'Copied %d rows to clipboard',
  94474. 1: 'Copied 1 row to clipboard'
  94475. }, data.rows ),
  94476. 3000
  94477. );
  94478. },
  94479. fieldSeparator: '\t',
  94480. fieldBoundary: ''
  94481. } );
  94482. // CSV save file
  94483. DataTable.ext.buttons.csvFlash = $.extend( {}, flashButton, {
  94484. className: 'buttons-csv buttons-flash',
  94485. text: function ( dt ) {
  94486. return dt.i18n( 'buttons.csv', 'CSV' );
  94487. },
  94488. action: function ( e, dt, button, config ) {
  94489. // Set the text
  94490. var flash = config._flash;
  94491. var data = _exportData( dt, config );
  94492. flash.setAction( 'csv' );
  94493. flash.setFileName( _filename( config ) );
  94494. _setText( flash, data.str );
  94495. }
  94496. } );
  94497. // Excel save file - this is really a CSV file using UTF-8 that Excel can read
  94498. DataTable.ext.buttons.excelFlash = $.extend( {}, flashButton, {
  94499. className: 'buttons-excel buttons-flash',
  94500. text: function ( dt ) {
  94501. return dt.i18n( 'buttons.excel', 'Excel' );
  94502. },
  94503. action: function ( e, dt, button, config ) {
  94504. // Set the text
  94505. var xml = '';
  94506. var flash = config._flash;
  94507. var data = dt.buttons.exportData( config.exportOptions );
  94508. var addRow = function ( row ) {
  94509. var cells = [];
  94510. for ( var i=0, ien=row.length ; i<ien ; i++ ) {
  94511. cells.push( $.isNumeric( row[i] ) ?
  94512. '<c t="n"><v>'+row[i]+'</v></c>' :
  94513. '<c t="inlineStr"><is><t>'+row[i]+'</t></is></c>'
  94514. );
  94515. }
  94516. return '<row>'+cells.join('')+'</row>';
  94517. };
  94518. if ( config.header ) {
  94519. xml += addRow( data.header );
  94520. }
  94521. for ( var i=0, ien=data.body.length ; i<ien ; i++ ) {
  94522. xml += addRow( data.body[i] );
  94523. }
  94524. if ( config.footer ) {
  94525. xml += addRow( data.footer );
  94526. }
  94527. flash.setAction( 'excel' );
  94528. flash.setFileName( _filename( config ) );
  94529. _setText( flash, xml );
  94530. },
  94531. extension: '.xlsx'
  94532. } );
  94533. // PDF export
  94534. DataTable.ext.buttons.pdfFlash = $.extend( {}, flashButton, {
  94535. className: 'buttons-pdf buttons-flash',
  94536. text: function ( dt ) {
  94537. return dt.i18n( 'buttons.pdf', 'PDF' );
  94538. },
  94539. action: function ( e, dt, button, config ) {
  94540. // Set the text
  94541. var flash = config._flash;
  94542. var data = dt.buttons.exportData( config.exportOptions );
  94543. var totalWidth = dt.table().node().offsetWidth;
  94544. // Calculate the column width ratios for layout of the table in the PDF
  94545. var ratios = dt.columns( config.columns ).indexes().map( function ( idx ) {
  94546. return dt.column( idx ).header().offsetWidth / totalWidth;
  94547. } );
  94548. flash.setAction( 'pdf' );
  94549. flash.setFileName( _filename( config ) );
  94550. _setText( flash, JSON.stringify( {
  94551. title: _filename(config, false),
  94552. message: config.message,
  94553. colWidth: ratios.toArray(),
  94554. orientation: config.orientation,
  94555. size: config.pageSize,
  94556. header: config.header ? data.header : null,
  94557. footer: config.footer ? data.footer : null,
  94558. body: data.body
  94559. } ) );
  94560. },
  94561. extension: '.pdf',
  94562. orientation: 'portrait',
  94563. pageSize: 'A4',
  94564. message: '',
  94565. newline: '\n'
  94566. } );
  94567. })(jQuery, jQuery.fn.dataTable);
  94568. /*!
  94569. * HTML5 export buttons for Buttons and DataTables.
  94570. * 2015 SpryMedia Ltd - datatables.net/license
  94571. *
  94572. * FileSaver.js (2015-05-07.2) - MIT license
  94573. * Copyright © 2015 Eli Grey - http://eligrey.com
  94574. */
  94575. (function($, DataTable) {
  94576. "use strict";
  94577. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  94578. * FileSaver.js dependency
  94579. */
  94580. /*jslint bitwise: true, indent: 4, laxbreak: true, laxcomma: true, smarttabs: true, plusplus: true */
  94581. var _saveAs = (function(view) {
  94582. // IE <10 is explicitly unsupported
  94583. if (typeof navigator !== "undefined" && /MSIE [1-9]\./.test(navigator.userAgent)) {
  94584. return;
  94585. }
  94586. var
  94587. doc = view.document
  94588. // only get URL when necessary in case Blob.js hasn't overridden it yet
  94589. , get_URL = function() {
  94590. return view.URL || view.webkitURL || view;
  94591. }
  94592. , save_link = doc.createElementNS("http://www.w3.org/1999/xhtml", "a")
  94593. , can_use_save_link = "download" in save_link
  94594. , click = function(node) {
  94595. var event = doc.createEvent("MouseEvents");
  94596. event.initMouseEvent(
  94597. "click", true, false, view, 0, 0, 0, 0, 0
  94598. , false, false, false, false, 0, null
  94599. );
  94600. node.dispatchEvent(event);
  94601. }
  94602. , webkit_req_fs = view.webkitRequestFileSystem
  94603. , req_fs = view.requestFileSystem || webkit_req_fs || view.mozRequestFileSystem
  94604. , throw_outside = function(ex) {
  94605. (view.setImmediate || view.setTimeout)(function() {
  94606. throw ex;
  94607. }, 0);
  94608. }
  94609. , force_saveable_type = "application/octet-stream"
  94610. , fs_min_size = 0
  94611. // See https://code.google.com/p/chromium/issues/detail?id=375297#c7 and
  94612. // https://github.com/eligrey/FileSaver.js/commit/485930a#commitcomment-8768047
  94613. // for the reasoning behind the timeout and revocation flow
  94614. , arbitrary_revoke_timeout = 500 // in ms
  94615. , revoke = function(file) {
  94616. var revoker = function() {
  94617. if (typeof file === "string") { // file is an object URL
  94618. get_URL().revokeObjectURL(file);
  94619. } else { // file is a File
  94620. file.remove();
  94621. }
  94622. };
  94623. if (view.chrome) {
  94624. revoker();
  94625. } else {
  94626. setTimeout(revoker, arbitrary_revoke_timeout);
  94627. }
  94628. }
  94629. , dispatch = function(filesaver, event_types, event) {
  94630. event_types = [].concat(event_types);
  94631. var i = event_types.length;
  94632. while (i--) {
  94633. var listener = filesaver["on" + event_types[i]];
  94634. if (typeof listener === "function") {
  94635. try {
  94636. listener.call(filesaver, event || filesaver);
  94637. } catch (ex) {
  94638. throw_outside(ex);
  94639. }
  94640. }
  94641. }
  94642. }
  94643. , auto_bom = function(blob) {
  94644. // prepend BOM for UTF-8 XML and text/* types (including HTML)
  94645. if (/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(blob.type)) {
  94646. return new Blob(["\ufeff", blob], {type: blob.type});
  94647. }
  94648. return blob;
  94649. }
  94650. , FileSaver = function(blob, name) {
  94651. blob = auto_bom(blob);
  94652. // First try a.download, then web filesystem, then object URLs
  94653. var
  94654. filesaver = this
  94655. , type = blob.type
  94656. , blob_changed = false
  94657. , object_url
  94658. , target_view
  94659. , dispatch_all = function() {
  94660. dispatch(filesaver, "writestart progress write writeend".split(" "));
  94661. }
  94662. // on any filesys errors revert to saving with object URLs
  94663. , fs_error = function() {
  94664. // don't create more object URLs than needed
  94665. if (blob_changed || !object_url) {
  94666. object_url = get_URL().createObjectURL(blob);
  94667. }
  94668. if (target_view) {
  94669. target_view.location.href = object_url;
  94670. } else {
  94671. var new_tab = view.open(object_url, "_blank");
  94672. if (new_tab === undefined && typeof safari !== "undefined") {
  94673. //Apple do not allow window.open, see http://bit.ly/1kZffRI
  94674. view.location.href = object_url;
  94675. }
  94676. }
  94677. filesaver.readyState = filesaver.DONE;
  94678. dispatch_all();
  94679. revoke(object_url);
  94680. }
  94681. , abortable = function(func) {
  94682. return function() {
  94683. if (filesaver.readyState !== filesaver.DONE) {
  94684. return func.apply(this, arguments);
  94685. }
  94686. };
  94687. }
  94688. , create_if_not_found = {create: true, exclusive: false}
  94689. , slice
  94690. ;
  94691. filesaver.readyState = filesaver.INIT;
  94692. if (!name) {
  94693. name = "download";
  94694. }
  94695. if (can_use_save_link) {
  94696. object_url = get_URL().createObjectURL(blob);
  94697. save_link.href = object_url;
  94698. save_link.download = name;
  94699. click(save_link);
  94700. filesaver.readyState = filesaver.DONE;
  94701. dispatch_all();
  94702. revoke(object_url);
  94703. return;
  94704. }
  94705. // Object and web filesystem URLs have a problem saving in Google Chrome when
  94706. // viewed in a tab, so I force save with application/octet-stream
  94707. // http://code.google.com/p/chromium/issues/detail?id=91158
  94708. // Update: Google errantly closed 91158, I submitted it again:
  94709. // https://code.google.com/p/chromium/issues/detail?id=389642
  94710. if (view.chrome && type && type !== force_saveable_type) {
  94711. slice = blob.slice || blob.webkitSlice;
  94712. blob = slice.call(blob, 0, blob.size, force_saveable_type);
  94713. blob_changed = true;
  94714. }
  94715. // Since I can't be sure that the guessed media type will trigger a download
  94716. // in WebKit, I append .download to the filename.
  94717. // https://bugs.webkit.org/show_bug.cgi?id=65440
  94718. if (webkit_req_fs && name !== "download") {
  94719. name += ".download";
  94720. }
  94721. if (type === force_saveable_type || webkit_req_fs) {
  94722. target_view = view;
  94723. }
  94724. if (!req_fs) {
  94725. fs_error();
  94726. return;
  94727. }
  94728. fs_min_size += blob.size;
  94729. req_fs(view.TEMPORARY, fs_min_size, abortable(function(fs) {
  94730. fs.root.getDirectory("saved", create_if_not_found, abortable(function(dir) {
  94731. var save = function() {
  94732. dir.getFile(name, create_if_not_found, abortable(function(file) {
  94733. file.createWriter(abortable(function(writer) {
  94734. writer.onwriteend = function(event) {
  94735. target_view.location.href = file.toURL();
  94736. filesaver.readyState = filesaver.DONE;
  94737. dispatch(filesaver, "writeend", event);
  94738. revoke(file);
  94739. };
  94740. writer.onerror = function() {
  94741. var error = writer.error;
  94742. if (error.code !== error.ABORT_ERR) {
  94743. fs_error();
  94744. }
  94745. };
  94746. "writestart progress write abort".split(" ").forEach(function(event) {
  94747. writer["on" + event] = filesaver["on" + event];
  94748. });
  94749. writer.write(blob);
  94750. filesaver.abort = function() {
  94751. writer.abort();
  94752. filesaver.readyState = filesaver.DONE;
  94753. };
  94754. filesaver.readyState = filesaver.WRITING;
  94755. }), fs_error);
  94756. }), fs_error);
  94757. };
  94758. dir.getFile(name, {create: false}, abortable(function(file) {
  94759. // delete file if it already exists
  94760. file.remove();
  94761. save();
  94762. }), abortable(function(ex) {
  94763. if (ex.code === ex.NOT_FOUND_ERR) {
  94764. save();
  94765. } else {
  94766. fs_error();
  94767. }
  94768. }));
  94769. }), fs_error);
  94770. }), fs_error);
  94771. }
  94772. , FS_proto = FileSaver.prototype
  94773. , saveAs = function(blob, name) {
  94774. return new FileSaver(blob, name);
  94775. }
  94776. ;
  94777. // IE 10+ (native saveAs)
  94778. if (typeof navigator !== "undefined" && navigator.msSaveOrOpenBlob) {
  94779. return function(blob, name) {
  94780. return navigator.msSaveOrOpenBlob(auto_bom(blob), name);
  94781. };
  94782. }
  94783. FS_proto.abort = function() {
  94784. var filesaver = this;
  94785. filesaver.readyState = filesaver.DONE;
  94786. dispatch(filesaver, "abort");
  94787. };
  94788. FS_proto.readyState = FS_proto.INIT = 0;
  94789. FS_proto.WRITING = 1;
  94790. FS_proto.DONE = 2;
  94791. FS_proto.error =
  94792. FS_proto.onwritestart =
  94793. FS_proto.onprogress =
  94794. FS_proto.onwrite =
  94795. FS_proto.onabort =
  94796. FS_proto.onerror =
  94797. FS_proto.onwriteend =
  94798. null;
  94799. return saveAs;
  94800. }(window));
  94801. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  94802. * Local (private) functions
  94803. */
  94804. /**
  94805. * Get the title / file name for an exported file.
  94806. *
  94807. * @param {object} config Button configuration
  94808. * @param {boolean} incExtension Include the file name extension
  94809. */
  94810. var _filename = function ( config, incExtension )
  94811. {
  94812. var title = config.title;
  94813. if ( title.indexOf( '*' ) !== -1 ) {
  94814. title = title.replace( '*', $('title').text() );
  94815. }
  94816. // Strip characters which the OS will object to
  94817. title = title.replace(/[^a-zA-Z0-9_\u00A1-\uFFFF\.,\-_ !\(\)]/g, "");
  94818. return incExtension === undefined || incExtension === true ?
  94819. title+config.extension :
  94820. title;
  94821. };
  94822. /**
  94823. * Get the newline character(s)
  94824. *
  94825. * @param {object} config Button configuration
  94826. * @return {string} Newline character
  94827. */
  94828. var _newLine = function ( config )
  94829. {
  94830. return config.newline ?
  94831. config.newline :
  94832. navigator.userAgent.match(/Windows/) ?
  94833. '\r\n' :
  94834. '\n';
  94835. };
  94836. /**
  94837. * Combine the data from the `buttons.exportData` method into a string that
  94838. * will be used in the export file.
  94839. *
  94840. * @param {DataTable.Api} dt DataTables API instance
  94841. * @param {object} config Button configuration
  94842. * @return {object} The data to export
  94843. */
  94844. var _exportData = function ( dt, config )
  94845. {
  94846. var newLine = _newLine( config );
  94847. var data = dt.buttons.exportData( config.exportOptions );
  94848. var join = function ( a ) {
  94849. return config.fieldBoundary +
  94850. a.join( config.fieldBoundary + config.fieldSeparator + config.fieldBoundary ) +
  94851. config.fieldBoundary;
  94852. };
  94853. var header = config.header ? join( data.header )+newLine : '';
  94854. var footer = config.footer ? newLine+join( data.footer ) : '';
  94855. var body = [];
  94856. for ( var i=0, ien=data.body.length ; i<ien ; i++ ) {
  94857. body.push( join( data.body[i] ) );
  94858. }
  94859. return {
  94860. str: header + body.join( newLine ) + footer,
  94861. rows: body.length
  94862. };
  94863. };
  94864. /**
  94865. * Safari's data: support for creating and downloading files is really poor, so
  94866. * various options need to be disabled in it. See
  94867. * https://bugs.webkit.org/show_bug.cgi?id=102914
  94868. *
  94869. * @return {Boolean} `true` if Safari
  94870. */
  94871. var _isSafari = function ()
  94872. {
  94873. return navigator.userAgent.indexOf('Safari') !== -1 &&
  94874. navigator.userAgent.indexOf('Chrome') === -1 &&
  94875. navigator.userAgent.indexOf('Opera') === -1;
  94876. };
  94877. // Excel - Pre-defined strings to build a minimal XLSX file
  94878. var excelStrings = {
  94879. "_rels/.rels": '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\
  94880. <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\
  94881. <Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/>\
  94882. </Relationships>',
  94883. "xl/_rels/workbook.xml.rels": '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\
  94884. <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\
  94885. <Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet1.xml"/>\
  94886. </Relationships>',
  94887. "[Content_Types].xml": '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\
  94888. <Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">\
  94889. <Default Extension="xml" ContentType="application/xml"/>\
  94890. <Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/>\
  94891. <Default Extension="jpeg" ContentType="image/jpeg"/>\
  94892. <Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"/>\
  94893. <Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/>\
  94894. </Types>',
  94895. "xl/workbook.xml": '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\
  94896. <workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">\
  94897. <fileVersion appName="xl" lastEdited="5" lowestEdited="5" rupBuild="24816"/>\
  94898. <workbookPr showInkAnnotation="0" autoCompressPictures="0"/>\
  94899. <bookViews>\
  94900. <workbookView xWindow="0" yWindow="0" windowWidth="25600" windowHeight="19020" tabRatio="500"/>\
  94901. </bookViews>\
  94902. <sheets>\
  94903. <sheet name="Sheet1" sheetId="1" r:id="rId1"/>\
  94904. </sheets>\
  94905. </workbook>',
  94906. "xl/worksheets/sheet1.xml": '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\
  94907. <worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac">\
  94908. <sheetData>\
  94909. __DATA__\
  94910. </sheetData>\
  94911. </worksheet>'
  94912. };
  94913. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  94914. * Buttons
  94915. */
  94916. //
  94917. // Copy to clipboard
  94918. //
  94919. DataTable.ext.buttons.copyHtml5 = {
  94920. className: 'buttons-copy buttons-html5',
  94921. text: function ( dt ) {
  94922. return dt.i18n( 'buttons.copy', 'Copy' );
  94923. },
  94924. action: function ( e, dt, button, config ) {
  94925. // This button is slightly sneaky as there is no HTML API to copy text
  94926. // to a clipboard, so what it does is use the buttons information
  94927. // element with an also completely hidden textarea that contains the
  94928. // data to be copied. That is pre-selected so the user just needs to
  94929. // activate their system clipboard.
  94930. var newLine = _newLine( config );
  94931. var output = _exportData( dt, config ).str;
  94932. var message = $('<span>'+dt.i18n( 'buttons.copyKeys',
  94933. 'Press <i>ctrl</i> or <i>\u2318</i> + <i>C</i> to copy the table data<br>to your system clipboard.<br><br>'+
  94934. 'To cancel, click this message or press escape.' )+'</span>'
  94935. )
  94936. .append( $('<div/>')
  94937. .css( {
  94938. height: 1,
  94939. width: 1,
  94940. overflow: 'hidden'
  94941. } )
  94942. .append(
  94943. $('<textarea readonly/>').val( output )
  94944. )
  94945. );
  94946. dt.buttons.info( dt.i18n( 'buttons.copyTitle', 'Copy to clipboard' ), message, 0 );
  94947. // Select the text so when the user activates their system clipboard
  94948. // it will copy that text
  94949. message.find('textarea')[0].focus();
  94950. message.find('textarea')[0].select();
  94951. // Event to hide the message when the user is done
  94952. var container = $(message).closest('.dt-button-info');
  94953. var close = function () {
  94954. container.off( 'click.buttons-copy' );
  94955. $(document).off( '.buttons-copy' );
  94956. dt.buttons.info( false );
  94957. };
  94958. container.on( 'click.buttons-copy', close );
  94959. $(document)
  94960. .on( 'keydown.buttons-copy', function (e) {
  94961. if ( e.keyCode === 27 ) { // esc
  94962. close();
  94963. }
  94964. } )
  94965. .on( 'copy.buttons-copy cut.buttons-copy', function () {
  94966. close();
  94967. } );
  94968. },
  94969. exportOptions: {},
  94970. fieldSeparator: '\t',
  94971. fieldBoundary: '',
  94972. header: true,
  94973. footer: false
  94974. };
  94975. //
  94976. // CSV export
  94977. //
  94978. DataTable.ext.buttons.csvHtml5 = {
  94979. className: 'buttons-csv buttons-html5',
  94980. available: function () {
  94981. return window.FileReader !== undefined && window.Blob;
  94982. },
  94983. text: function ( dt ) {
  94984. return dt.i18n( 'buttons.csv', 'CSV' );
  94985. },
  94986. action: function ( e, dt, button, config ) {
  94987. // Set the text
  94988. var newLine = _newLine( config );
  94989. var output = _exportData( dt, config ).str;
  94990. _saveAs(
  94991. new Blob( [output], {type : 'text/csv'} ),
  94992. _filename( config )
  94993. );
  94994. },
  94995. title: '*',
  94996. extension: '.csv',
  94997. exportOptions: {},
  94998. fieldSeparator: ',',
  94999. fieldBoundary: '',
  95000. header: true,
  95001. footer: false
  95002. };
  95003. //
  95004. // Excel (xlsx) export
  95005. //
  95006. DataTable.ext.buttons.excelHtml5 = {
  95007. className: 'buttons-excel buttons-html5',
  95008. available: function () {
  95009. return window.FileReader !== undefined && window.JSZip !== undefined && ! _isSafari();
  95010. },
  95011. text: function ( dt ) {
  95012. return dt.i18n( 'buttons.excel', 'Excel' );
  95013. },
  95014. action: function ( e, dt, button, config ) {
  95015. // Set the text
  95016. var xml = '';
  95017. var data = dt.buttons.exportData( config.exportOptions );
  95018. var addRow = function ( row ) {
  95019. var cells = [];
  95020. for ( var i=0, ien=row.length ; i<ien ; i++ ) {
  95021. cells.push( $.isNumeric( row[i] ) ?
  95022. '<c t="n"><v>'+row[i]+'</v></c>' :
  95023. '<c t="inlineStr"><is><t>'+row[i]+'</t></is></c>'
  95024. );
  95025. }
  95026. return '<row>'+cells.join('')+'</row>';
  95027. };
  95028. if ( config.header ) {
  95029. xml += addRow( data.header );
  95030. }
  95031. for ( var i=0, ien=data.body.length ; i<ien ; i++ ) {
  95032. xml += addRow( data.body[i] );
  95033. }
  95034. if ( config.footer ) {
  95035. xml += addRow( data.footer );
  95036. }
  95037. var zip = new window.JSZip();
  95038. var _rels = zip.folder("_rels");
  95039. var xl = zip.folder("xl");
  95040. var xl_rels = zip.folder("xl/_rels");
  95041. var xl_worksheets = zip.folder("xl/worksheets");
  95042. zip.file( '[Content_Types].xml', excelStrings['[Content_Types].xml'] );
  95043. _rels.file( '.rels', excelStrings['_rels/.rels'] );
  95044. xl.file( 'workbook.xml', excelStrings['xl/workbook.xml'] );
  95045. xl_rels.file( 'workbook.xml.rels', excelStrings['xl/_rels/workbook.xml.rels'] );
  95046. xl_worksheets.file( 'sheet1.xml', excelStrings['xl/worksheets/sheet1.xml'].replace( '__DATA__', xml ) );
  95047. _saveAs(
  95048. zip.generate( {type:"blob"} ),
  95049. _filename( config )
  95050. );
  95051. },
  95052. title: '*',
  95053. extension: '.xlsx',
  95054. exportOptions: {},
  95055. header: true,
  95056. footer: false
  95057. };
  95058. //
  95059. // PDF export - using pdfMake - http://pdfmake.org
  95060. //
  95061. DataTable.ext.buttons.pdfHtml5 = {
  95062. className: 'buttons-pdf buttons-html5',
  95063. available: function () {
  95064. return window.FileReader !== undefined && window.pdfMake;
  95065. },
  95066. text: function ( dt ) {
  95067. return dt.i18n( 'buttons.pdf', 'PDF' );
  95068. },
  95069. action: function ( e, dt, button, config ) {
  95070. var newLine = _newLine( config );
  95071. var data = dt.buttons.exportData( config.exportOptions );
  95072. var rows = [];
  95073. if ( config.header ) {
  95074. rows.push( $.map( data.header, function ( d ) {
  95075. return {
  95076. text: d,
  95077. style: 'tableHeader'
  95078. };
  95079. } ) );
  95080. }
  95081. for ( var i=0, ien=data.body.length ; i<ien ; i++ ) {
  95082. rows.push( $.map( data.body[i], function ( d ) {
  95083. return {
  95084. text: d,
  95085. style: i % 2 ? 'tableBodyEven' : 'tableBodyOdd'
  95086. };
  95087. } ) );
  95088. }
  95089. if ( config.footer ) {
  95090. rows.push( $.map( data.footer, function ( d ) {
  95091. return {
  95092. text: d,
  95093. style: 'tableFooter'
  95094. };
  95095. } ) );
  95096. }
  95097. var doc = {
  95098. pageSize: config.pageSize,
  95099. pageOrientation: config.orientation,
  95100. content: [
  95101. {
  95102. table: {
  95103. headerRows: 1,
  95104. body: rows
  95105. },
  95106. layout: 'noBorders'
  95107. }
  95108. ],
  95109. styles: {
  95110. tableHeader: {
  95111. bold: true,
  95112. fontSize: 11,
  95113. color: 'white',
  95114. fillColor: '#2d4154',
  95115. alignment: 'center'
  95116. },
  95117. tableBodyEven: {},
  95118. tableBodyOdd: {
  95119. fillColor: '#f3f3f3'
  95120. },
  95121. tableFooter: {
  95122. bold: true,
  95123. fontSize: 11,
  95124. color: 'white',
  95125. fillColor: '#2d4154'
  95126. },
  95127. title: {
  95128. alignment: 'center',
  95129. fontSize: 15
  95130. },
  95131. message: {}
  95132. },
  95133. defaultStyle: {
  95134. fontSize: 10
  95135. }
  95136. };
  95137. if ( config.message ) {
  95138. doc.content.unshift( {
  95139. text: config.message,
  95140. style: 'message',
  95141. margin: [ 0, 0, 0, 12 ]
  95142. } );
  95143. }
  95144. if ( config.title ) {
  95145. doc.content.unshift( {
  95146. text: _filename( config, false ),
  95147. style: 'title',
  95148. margin: [ 0, 0, 0, 12 ]
  95149. } );
  95150. }
  95151. if ( config.customize ) {
  95152. config.customize( doc );
  95153. }
  95154. var pdf = window.pdfMake.createPdf( doc );
  95155. if ( config.download === 'open' && ! _isSafari() ) {
  95156. pdf.open();
  95157. }
  95158. else {
  95159. pdf.getBuffer( function (buffer) {
  95160. var blob = new Blob( [buffer], {type:'application/pdf'} );
  95161. _saveAs( blob, _filename( config ) );
  95162. } );
  95163. }
  95164. },
  95165. title: '*',
  95166. extension: '.pdf',
  95167. exportOptions: {},
  95168. orientation: 'portrait',
  95169. pageSize: 'A4',
  95170. header: true,
  95171. footer: false,
  95172. message: null,
  95173. customize: null,
  95174. download: 'download'
  95175. };
  95176. })(jQuery, jQuery.fn.dataTable);
  95177. /*!
  95178. * Print button for Buttons and DataTables.
  95179. * 2015 SpryMedia Ltd - datatables.net/license
  95180. */
  95181. (function($, DataTable) {
  95182. "use strict";
  95183. var _link = document.createElement( 'a' );
  95184. /**
  95185. * Convert a `link` tag's URL from a relative to an absolute address so it will
  95186. * work correctly in the popup window which has no base URL.
  95187. *
  95188. * @param {node} el Element to convert
  95189. */
  95190. var _relToAbs = function( el ) {
  95191. var url;
  95192. var clone = $(el).clone()[0];
  95193. var linkHost;
  95194. if ( clone.nodeName.toLowerCase() === 'link' ) {
  95195. _link.href = clone.href;
  95196. linkHost = _link.host;
  95197. // IE doesn't have a trailing slash on the host
  95198. if ( linkHost.indexOf('/') === -1 ) {
  95199. linkHost += '/';
  95200. }
  95201. clone.href = _link.protocol+"//"+linkHost+_link.pathname+_link.search;
  95202. }
  95203. return clone.outerHTML;
  95204. };
  95205. DataTable.ext.buttons.print = {
  95206. className: 'buttons-print',
  95207. text: function ( dt ) {
  95208. return dt.i18n( 'buttons.print', 'Print' );
  95209. },
  95210. action: function ( e, dt, button, config ) {
  95211. var data = dt.buttons.exportData( config.exportOptions );
  95212. var addRow = function ( d, tag ) {
  95213. var str = '<tr>';
  95214. for ( var i=0, ien=d.length ; i<ien ; i++ ) {
  95215. str += '<'+tag+'>'+d[i]+'</'+tag+'>';
  95216. }
  95217. return str + '</tr>';
  95218. };
  95219. // Construct a table for printing
  95220. var html = '<table class="'+dt.table().node().className+'">';
  95221. if ( config.header ) {
  95222. html += '<thead>'+ addRow( data.header, 'th' ) +'</thead>';
  95223. }
  95224. html += '<tbody>';
  95225. for ( var i=0, ien=data.body.length ; i<ien ; i++ ) {
  95226. html += addRow( data.body[i], 'td' );
  95227. }
  95228. html += '</tbody>';
  95229. if ( config.footer ) {
  95230. html += '<thead>'+ addRow( data.footer, 'th' ) +'</thead>';
  95231. }
  95232. // Open a new window for the printable table
  95233. var win = window.open( '', '' );
  95234. var title = config.title.replace( '*', $('title').text() );
  95235. win.document.close();
  95236. // Inject the title and also a copy of the style and link tags from this
  95237. // document so the table can retain its base styling. Note that we have
  95238. // to use string manipulation as IE won't allow elements to be created
  95239. // in the host document and then appended to the new window.
  95240. var head = '<title>'+title+'</title>';
  95241. $('style, link').each( function () {
  95242. head += _relToAbs( this );
  95243. } );
  95244. $(win.document.head).html( head );
  95245. // Inject the table and other surrounding information
  95246. $(win.document.body).html(
  95247. '<h1>'+title+'</h1>'+
  95248. '<div>'+config.message+'</div>'+
  95249. html
  95250. );
  95251. if ( config.customize ) {
  95252. config.customize( win );
  95253. }
  95254. setTimeout( function () {
  95255. if ( config.autoPrint ) {
  95256. win.print(); // blocking - so close will not
  95257. win.close(); // execute until this is done
  95258. }
  95259. }, 250 );
  95260. },
  95261. title: '*',
  95262. message: '',
  95263. exportOptions: {},
  95264. header: true,
  95265. footer: false,
  95266. autoPrint: true,
  95267. customize: null
  95268. };
  95269. })(jQuery, jQuery.fn.dataTable);
  95270. /*! ColReorder 1.2.0
  95271. * ©2010-2014 SpryMedia Ltd - datatables.net/license
  95272. */
  95273. /**
  95274. * @summary ColReorder
  95275. * @description Provide the ability to reorder columns in a DataTable
  95276. * @version 1.2.0
  95277. * @file dataTables.colReorder.js
  95278. * @author SpryMedia Ltd (www.sprymedia.co.uk)
  95279. * @contact www.sprymedia.co.uk/contact
  95280. * @copyright Copyright 2010-2014 SpryMedia Ltd.
  95281. *
  95282. * This source file is free software, available under the following license:
  95283. * MIT license - http://datatables.net/license/mit
  95284. *
  95285. * This source file is distributed in the hope that it will be useful, but
  95286. * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  95287. * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
  95288. *
  95289. * For details please refer to: http://www.datatables.net
  95290. */
  95291. (function(window, document, undefined) {
  95292. /**
  95293. * Switch the key value pairing of an index array to be value key (i.e. the old value is now the
  95294. * key). For example consider [ 2, 0, 1 ] this would be returned as [ 1, 2, 0 ].
  95295. * @method fnInvertKeyValues
  95296. * @param array aIn Array to switch around
  95297. * @returns array
  95298. */
  95299. function fnInvertKeyValues( aIn )
  95300. {
  95301. var aRet=[];
  95302. for ( var i=0, iLen=aIn.length ; i<iLen ; i++ )
  95303. {
  95304. aRet[ aIn[i] ] = i;
  95305. }
  95306. return aRet;
  95307. }
  95308. /**
  95309. * Modify an array by switching the position of two elements
  95310. * @method fnArraySwitch
  95311. * @param array aArray Array to consider, will be modified by reference (i.e. no return)
  95312. * @param int iFrom From point
  95313. * @param int iTo Insert point
  95314. * @returns void
  95315. */
  95316. function fnArraySwitch( aArray, iFrom, iTo )
  95317. {
  95318. var mStore = aArray.splice( iFrom, 1 )[0];
  95319. aArray.splice( iTo, 0, mStore );
  95320. }
  95321. /**
  95322. * Switch the positions of nodes in a parent node (note this is specifically designed for
  95323. * table rows). Note this function considers all element nodes under the parent!
  95324. * @method fnDomSwitch
  95325. * @param string sTag Tag to consider
  95326. * @param int iFrom Element to move
  95327. * @param int Point to element the element to (before this point), can be null for append
  95328. * @returns void
  95329. */
  95330. function fnDomSwitch( nParent, iFrom, iTo )
  95331. {
  95332. var anTags = [];
  95333. for ( var i=0, iLen=nParent.childNodes.length ; i<iLen ; i++ )
  95334. {
  95335. if ( nParent.childNodes[i].nodeType == 1 )
  95336. {
  95337. anTags.push( nParent.childNodes[i] );
  95338. }
  95339. }
  95340. var nStore = anTags[ iFrom ];
  95341. if ( iTo !== null )
  95342. {
  95343. nParent.insertBefore( nStore, anTags[iTo] );
  95344. }
  95345. else
  95346. {
  95347. nParent.appendChild( nStore );
  95348. }
  95349. }
  95350. var factory = function( $, DataTable ) {
  95351. "use strict";
  95352. /**
  95353. * Plug-in for DataTables which will reorder the internal column structure by taking the column
  95354. * from one position (iFrom) and insert it into a given point (iTo).
  95355. * @method $.fn.dataTableExt.oApi.fnColReorder
  95356. * @param object oSettings DataTables settings object - automatically added by DataTables!
  95357. * @param int iFrom Take the column to be repositioned from this point
  95358. * @param int iTo and insert it into this point
  95359. * @returns void
  95360. */
  95361. $.fn.dataTableExt.oApi.fnColReorder = function ( oSettings, iFrom, iTo )
  95362. {
  95363. var i, iLen, j, jLen, iCols=oSettings.aoColumns.length, nTrs, oCol;
  95364. var attrMap = function ( obj, prop, mapping ) {
  95365. if ( ! obj[ prop ] || typeof obj[ prop ] === 'function' ) {
  95366. return;
  95367. }
  95368. var a = obj[ prop ].split('.');
  95369. var num = a.shift();
  95370. if ( isNaN( num*1 ) ) {
  95371. return;
  95372. }
  95373. obj[ prop ] = mapping[ num*1 ]+'.'+a.join('.');
  95374. };
  95375. /* Sanity check in the input */
  95376. if ( iFrom == iTo )
  95377. {
  95378. /* Pointless reorder */
  95379. return;
  95380. }
  95381. if ( iFrom < 0 || iFrom >= iCols )
  95382. {
  95383. this.oApi._fnLog( oSettings, 1, "ColReorder 'from' index is out of bounds: "+iFrom );
  95384. return;
  95385. }
  95386. if ( iTo < 0 || iTo >= iCols )
  95387. {
  95388. this.oApi._fnLog( oSettings, 1, "ColReorder 'to' index is out of bounds: "+iTo );
  95389. return;
  95390. }
  95391. /*
  95392. * Calculate the new column array index, so we have a mapping between the old and new
  95393. */
  95394. var aiMapping = [];
  95395. for ( i=0, iLen=iCols ; i<iLen ; i++ )
  95396. {
  95397. aiMapping[i] = i;
  95398. }
  95399. fnArraySwitch( aiMapping, iFrom, iTo );
  95400. var aiInvertMapping = fnInvertKeyValues( aiMapping );
  95401. /*
  95402. * Convert all internal indexing to the new column order indexes
  95403. */
  95404. /* Sorting */
  95405. for ( i=0, iLen=oSettings.aaSorting.length ; i<iLen ; i++ )
  95406. {
  95407. oSettings.aaSorting[i][0] = aiInvertMapping[ oSettings.aaSorting[i][0] ];
  95408. }
  95409. /* Fixed sorting */
  95410. if ( oSettings.aaSortingFixed !== null )
  95411. {
  95412. for ( i=0, iLen=oSettings.aaSortingFixed.length ; i<iLen ; i++ )
  95413. {
  95414. oSettings.aaSortingFixed[i][0] = aiInvertMapping[ oSettings.aaSortingFixed[i][0] ];
  95415. }
  95416. }
  95417. /* Data column sorting (the column which the sort for a given column should take place on) */
  95418. for ( i=0, iLen=iCols ; i<iLen ; i++ )
  95419. {
  95420. oCol = oSettings.aoColumns[i];
  95421. for ( j=0, jLen=oCol.aDataSort.length ; j<jLen ; j++ )
  95422. {
  95423. oCol.aDataSort[j] = aiInvertMapping[ oCol.aDataSort[j] ];
  95424. }
  95425. // Update the column indexes
  95426. oCol.idx = aiInvertMapping[ oCol.idx ];
  95427. }
  95428. // Update 1.10 optimised sort class removal variable
  95429. $.each( oSettings.aLastSort, function (i, val) {
  95430. oSettings.aLastSort[i].src = aiInvertMapping[ val.src ];
  95431. } );
  95432. /* Update the Get and Set functions for each column */
  95433. for ( i=0, iLen=iCols ; i<iLen ; i++ )
  95434. {
  95435. oCol = oSettings.aoColumns[i];
  95436. if ( typeof oCol.mData == 'number' ) {
  95437. oCol.mData = aiInvertMapping[ oCol.mData ];
  95438. // regenerate the get / set functions
  95439. oSettings.oApi._fnColumnOptions( oSettings, i, {} );
  95440. }
  95441. else if ( $.isPlainObject( oCol.mData ) ) {
  95442. // HTML5 data sourced
  95443. attrMap( oCol.mData, '_', aiInvertMapping );
  95444. attrMap( oCol.mData, 'filter', aiInvertMapping );
  95445. attrMap( oCol.mData, 'sort', aiInvertMapping );
  95446. attrMap( oCol.mData, 'type', aiInvertMapping );
  95447. // regenerate the get / set functions
  95448. oSettings.oApi._fnColumnOptions( oSettings, i, {} );
  95449. }
  95450. }
  95451. /*
  95452. * Move the DOM elements
  95453. */
  95454. if ( oSettings.aoColumns[iFrom].bVisible )
  95455. {
  95456. /* Calculate the current visible index and the point to insert the node before. The insert
  95457. * before needs to take into account that there might not be an element to insert before,
  95458. * in which case it will be null, and an appendChild should be used
  95459. */
  95460. var iVisibleIndex = this.oApi._fnColumnIndexToVisible( oSettings, iFrom );
  95461. var iInsertBeforeIndex = null;
  95462. i = iTo < iFrom ? iTo : iTo + 1;
  95463. while ( iInsertBeforeIndex === null && i < iCols )
  95464. {
  95465. iInsertBeforeIndex = this.oApi._fnColumnIndexToVisible( oSettings, i );
  95466. i++;
  95467. }
  95468. /* Header */
  95469. nTrs = oSettings.nTHead.getElementsByTagName('tr');
  95470. for ( i=0, iLen=nTrs.length ; i<iLen ; i++ )
  95471. {
  95472. fnDomSwitch( nTrs[i], iVisibleIndex, iInsertBeforeIndex );
  95473. }
  95474. /* Footer */
  95475. if ( oSettings.nTFoot !== null )
  95476. {
  95477. nTrs = oSettings.nTFoot.getElementsByTagName('tr');
  95478. for ( i=0, iLen=nTrs.length ; i<iLen ; i++ )
  95479. {
  95480. fnDomSwitch( nTrs[i], iVisibleIndex, iInsertBeforeIndex );
  95481. }
  95482. }
  95483. /* Body */
  95484. for ( i=0, iLen=oSettings.aoData.length ; i<iLen ; i++ )
  95485. {
  95486. if ( oSettings.aoData[i].nTr !== null )
  95487. {
  95488. fnDomSwitch( oSettings.aoData[i].nTr, iVisibleIndex, iInsertBeforeIndex );
  95489. }
  95490. }
  95491. }
  95492. /*
  95493. * Move the internal array elements
  95494. */
  95495. /* Columns */
  95496. fnArraySwitch( oSettings.aoColumns, iFrom, iTo );
  95497. /* Search columns */
  95498. fnArraySwitch( oSettings.aoPreSearchCols, iFrom, iTo );
  95499. /* Array array - internal data anodes cache */
  95500. for ( i=0, iLen=oSettings.aoData.length ; i<iLen ; i++ )
  95501. {
  95502. var data = oSettings.aoData[i];
  95503. if ( data.anCells ) {
  95504. fnArraySwitch( data.anCells, iFrom, iTo );
  95505. }
  95506. // For DOM sourced data, the invalidate will reread the cell into
  95507. // the data array, but for data sources as an array, they need to
  95508. // be flipped
  95509. if ( data.src !== 'dom' && $.isArray( data._aData ) ) {
  95510. fnArraySwitch( data._aData, iFrom, iTo );
  95511. }
  95512. }
  95513. /* Reposition the header elements in the header layout array */
  95514. for ( i=0, iLen=oSettings.aoHeader.length ; i<iLen ; i++ )
  95515. {
  95516. fnArraySwitch( oSettings.aoHeader[i], iFrom, iTo );
  95517. }
  95518. if ( oSettings.aoFooter !== null )
  95519. {
  95520. for ( i=0, iLen=oSettings.aoFooter.length ; i<iLen ; i++ )
  95521. {
  95522. fnArraySwitch( oSettings.aoFooter[i], iFrom, iTo );
  95523. }
  95524. }
  95525. // Invalidate row cached data for sorting, filtering etc
  95526. var api = new $.fn.dataTable.Api( oSettings );
  95527. api.rows().invalidate();
  95528. /*
  95529. * Update DataTables' event handlers
  95530. */
  95531. /* Sort listener */
  95532. for ( i=0, iLen=iCols ; i<iLen ; i++ )
  95533. {
  95534. $(oSettings.aoColumns[i].nTh).off('click.DT');
  95535. this.oApi._fnSortAttachListener( oSettings, oSettings.aoColumns[i].nTh, i );
  95536. }
  95537. /* Fire an event so other plug-ins can update */
  95538. $(oSettings.oInstance).trigger( 'column-reorder.dt', [ oSettings, {
  95539. from: iFrom,
  95540. to: iTo,
  95541. mapping: aiInvertMapping,
  95542. // Old style parameters for compatibility
  95543. iFrom: iFrom,
  95544. iTo: iTo,
  95545. aiInvertMapping: aiInvertMapping
  95546. } ] );
  95547. };
  95548. /**
  95549. * ColReorder provides column visibility control for DataTables
  95550. * @class ColReorder
  95551. * @constructor
  95552. * @param {object} dt DataTables settings object
  95553. * @param {object} opts ColReorder options
  95554. */
  95555. var ColReorder = function( dt, opts )
  95556. {
  95557. var settings = new $.fn.dataTable.Api( dt ).settings()[0];
  95558. // Ensure that we can't initialise on the same table twice
  95559. if ( settings._colReorder ) {
  95560. return settings._colReorder;
  95561. }
  95562. // Allow the options to be a boolean for defaults
  95563. if ( opts === true ) {
  95564. opts = {};
  95565. }
  95566. // Convert from camelCase to Hungarian, just as DataTables does
  95567. var camelToHungarian = $.fn.dataTable.camelToHungarian;
  95568. if ( camelToHungarian ) {
  95569. camelToHungarian( ColReorder.defaults, ColReorder.defaults, true );
  95570. camelToHungarian( ColReorder.defaults, opts || {} );
  95571. }
  95572. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  95573. * Public class variables
  95574. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  95575. /**
  95576. * @namespace Settings object which contains customisable information for ColReorder instance
  95577. */
  95578. this.s = {
  95579. /**
  95580. * DataTables settings object
  95581. * @property dt
  95582. * @type Object
  95583. * @default null
  95584. */
  95585. "dt": null,
  95586. /**
  95587. * Initialisation object used for this instance
  95588. * @property init
  95589. * @type object
  95590. * @default {}
  95591. */
  95592. "init": $.extend( true, {}, ColReorder.defaults, opts ),
  95593. /**
  95594. * Number of columns to fix (not allow to be reordered)
  95595. * @property fixed
  95596. * @type int
  95597. * @default 0
  95598. */
  95599. "fixed": 0,
  95600. /**
  95601. * Number of columns to fix counting from right (not allow to be reordered)
  95602. * @property fixedRight
  95603. * @type int
  95604. * @default 0
  95605. */
  95606. "fixedRight": 0,
  95607. /**
  95608. * Callback function for once the reorder has been done
  95609. * @property reorderCallback
  95610. * @type function
  95611. * @default null
  95612. */
  95613. "reorderCallback": null,
  95614. /**
  95615. * @namespace Information used for the mouse drag
  95616. */
  95617. "mouse": {
  95618. "startX": -1,
  95619. "startY": -1,
  95620. "offsetX": -1,
  95621. "offsetY": -1,
  95622. "target": -1,
  95623. "targetIndex": -1,
  95624. "fromIndex": -1
  95625. },
  95626. /**
  95627. * Information which is used for positioning the insert cusor and knowing where to do the
  95628. * insert. Array of objects with the properties:
  95629. * x: x-axis position
  95630. * to: insert point
  95631. * @property aoTargets
  95632. * @type array
  95633. * @default []
  95634. */
  95635. "aoTargets": []
  95636. };
  95637. /**
  95638. * @namespace Common and useful DOM elements for the class instance
  95639. */
  95640. this.dom = {
  95641. /**
  95642. * Dragging element (the one the mouse is moving)
  95643. * @property drag
  95644. * @type element
  95645. * @default null
  95646. */
  95647. "drag": null,
  95648. /**
  95649. * The insert cursor
  95650. * @property pointer
  95651. * @type element
  95652. * @default null
  95653. */
  95654. "pointer": null
  95655. };
  95656. /* Constructor logic */
  95657. this.s.dt = settings;
  95658. this.s.dt._colReorder = this;
  95659. this._fnConstruct();
  95660. return this;
  95661. };
  95662. ColReorder.prototype = {
  95663. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  95664. * Public methods
  95665. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  95666. /**
  95667. * Reset the column ordering to the original ordering that was detected on
  95668. * start up.
  95669. * @return {this} Returns `this` for chaining.
  95670. *
  95671. * @example
  95672. * // DataTables initialisation with ColReorder
  95673. * var table = $('#example').dataTable( {
  95674. * "sDom": 'Rlfrtip'
  95675. * } );
  95676. *
  95677. * // Add click event to a button to reset the ordering
  95678. * $('#resetOrdering').click( function (e) {
  95679. * e.preventDefault();
  95680. * $.fn.dataTable.ColReorder( table ).fnReset();
  95681. * } );
  95682. */
  95683. "fnReset": function ()
  95684. {
  95685. var a = [];
  95686. for ( var i=0, iLen=this.s.dt.aoColumns.length ; i<iLen ; i++ )
  95687. {
  95688. a.push( this.s.dt.aoColumns[i]._ColReorder_iOrigCol );
  95689. }
  95690. this._fnOrderColumns( a );
  95691. return this;
  95692. },
  95693. /**
  95694. * `Deprecated` - Get the current order of the columns, as an array.
  95695. * @return {array} Array of column identifiers
  95696. * @deprecated `fnOrder` should be used in preference to this method.
  95697. * `fnOrder` acts as a getter/setter.
  95698. */
  95699. "fnGetCurrentOrder": function ()
  95700. {
  95701. return this.fnOrder();
  95702. },
  95703. /**
  95704. * Get the current order of the columns, as an array. Note that the values
  95705. * given in the array are unique identifiers for each column. Currently
  95706. * these are the original ordering of the columns that was detected on
  95707. * start up, but this could potentially change in future.
  95708. * @return {array} Array of column identifiers
  95709. *
  95710. * @example
  95711. * // Get column ordering for the table
  95712. * var order = $.fn.dataTable.ColReorder( dataTable ).fnOrder();
  95713. *//**
  95714. * Set the order of the columns, from the positions identified in the
  95715. * ordering array given. Note that ColReorder takes a brute force approach
  95716. * to reordering, so it is possible multiple reordering events will occur
  95717. * before the final order is settled upon.
  95718. * @param {array} [set] Array of column identifiers in the new order. Note
  95719. * that every column must be included, uniquely, in this array.
  95720. * @return {this} Returns `this` for chaining.
  95721. *
  95722. * @example
  95723. * // Swap the first and second columns
  95724. * $.fn.dataTable.ColReorder( dataTable ).fnOrder( [1, 0, 2, 3, 4] );
  95725. *
  95726. * @example
  95727. * // Move the first column to the end for the table `#example`
  95728. * var curr = $.fn.dataTable.ColReorder( '#example' ).fnOrder();
  95729. * var first = curr.shift();
  95730. * curr.push( first );
  95731. * $.fn.dataTable.ColReorder( '#example' ).fnOrder( curr );
  95732. *
  95733. * @example
  95734. * // Reverse the table's order
  95735. * $.fn.dataTable.ColReorder( '#example' ).fnOrder(
  95736. * $.fn.dataTable.ColReorder( '#example' ).fnOrder().reverse()
  95737. * );
  95738. */
  95739. "fnOrder": function ( set )
  95740. {
  95741. if ( set === undefined )
  95742. {
  95743. var a = [];
  95744. for ( var i=0, iLen=this.s.dt.aoColumns.length ; i<iLen ; i++ )
  95745. {
  95746. a.push( this.s.dt.aoColumns[i]._ColReorder_iOrigCol );
  95747. }
  95748. return a;
  95749. }
  95750. this._fnOrderColumns( fnInvertKeyValues( set ) );
  95751. return this;
  95752. },
  95753. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  95754. * Private methods (they are of course public in JS, but recommended as private)
  95755. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  95756. /**
  95757. * Constructor logic
  95758. * @method _fnConstruct
  95759. * @returns void
  95760. * @private
  95761. */
  95762. "_fnConstruct": function ()
  95763. {
  95764. var that = this;
  95765. var iLen = this.s.dt.aoColumns.length;
  95766. var table = this.s.dt.nTable;
  95767. var i;
  95768. /* Columns discounted from reordering - counting left to right */
  95769. if ( this.s.init.iFixedColumns )
  95770. {
  95771. this.s.fixed = this.s.init.iFixedColumns;
  95772. }
  95773. if ( this.s.init.iFixedColumnsLeft )
  95774. {
  95775. this.s.fixed = this.s.init.iFixedColumnsLeft;
  95776. }
  95777. /* Columns discounted from reordering - counting right to left */
  95778. this.s.fixedRight = this.s.init.iFixedColumnsRight ?
  95779. this.s.init.iFixedColumnsRight :
  95780. 0;
  95781. /* Drop callback initialisation option */
  95782. if ( this.s.init.fnReorderCallback )
  95783. {
  95784. this.s.reorderCallback = this.s.init.fnReorderCallback;
  95785. }
  95786. /* Add event handlers for the drag and drop, and also mark the original column order */
  95787. for ( i = 0; i < iLen; i++ )
  95788. {
  95789. if ( i > this.s.fixed-1 && i < iLen - this.s.fixedRight )
  95790. {
  95791. this._fnMouseListener( i, this.s.dt.aoColumns[i].nTh );
  95792. }
  95793. /* Mark the original column order for later reference */
  95794. this.s.dt.aoColumns[i]._ColReorder_iOrigCol = i;
  95795. }
  95796. /* State saving */
  95797. this.s.dt.oApi._fnCallbackReg( this.s.dt, 'aoStateSaveParams', function (oS, oData) {
  95798. that._fnStateSave.call( that, oData );
  95799. }, "ColReorder_State" );
  95800. /* An initial column order has been specified */
  95801. var aiOrder = null;
  95802. if ( this.s.init.aiOrder )
  95803. {
  95804. aiOrder = this.s.init.aiOrder.slice();
  95805. }
  95806. /* State loading, overrides the column order given */
  95807. if ( this.s.dt.oLoadedState && typeof this.s.dt.oLoadedState.ColReorder != 'undefined' &&
  95808. this.s.dt.oLoadedState.ColReorder.length == this.s.dt.aoColumns.length )
  95809. {
  95810. aiOrder = this.s.dt.oLoadedState.ColReorder;
  95811. }
  95812. /* If we have an order to apply - do so */
  95813. if ( aiOrder )
  95814. {
  95815. /* We might be called during or after the DataTables initialisation. If before, then we need
  95816. * to wait until the draw is done, if after, then do what we need to do right away
  95817. */
  95818. if ( !that.s.dt._bInitComplete )
  95819. {
  95820. var bDone = false;
  95821. $(table).on( 'draw.dt.colReorder', function () {
  95822. if ( !that.s.dt._bInitComplete && !bDone )
  95823. {
  95824. bDone = true;
  95825. var resort = fnInvertKeyValues( aiOrder );
  95826. that._fnOrderColumns.call( that, resort );
  95827. }
  95828. } );
  95829. }
  95830. else
  95831. {
  95832. var resort = fnInvertKeyValues( aiOrder );
  95833. that._fnOrderColumns.call( that, resort );
  95834. }
  95835. }
  95836. else {
  95837. this._fnSetColumnIndexes();
  95838. }
  95839. // Destroy clean up
  95840. $(table).on( 'destroy.dt.colReorder', function () {
  95841. $(table).off( 'destroy.dt.colReorder draw.dt.colReorder' );
  95842. $(that.s.dt.nTHead).find( '*' ).off( '.ColReorder' );
  95843. $.each( that.s.dt.aoColumns, function (i, column) {
  95844. $(column.nTh).removeAttr('data-column-index');
  95845. } );
  95846. that.s.dt._colReorder = null;
  95847. that.s = null;
  95848. } );
  95849. },
  95850. /**
  95851. * Set the column order from an array
  95852. * @method _fnOrderColumns
  95853. * @param array a An array of integers which dictate the column order that should be applied
  95854. * @returns void
  95855. * @private
  95856. */
  95857. "_fnOrderColumns": function ( a )
  95858. {
  95859. if ( a.length != this.s.dt.aoColumns.length )
  95860. {
  95861. this.s.dt.oInstance.oApi._fnLog( this.s.dt, 1, "ColReorder - array reorder does not "+
  95862. "match known number of columns. Skipping." );
  95863. return;
  95864. }
  95865. for ( var i=0, iLen=a.length ; i<iLen ; i++ )
  95866. {
  95867. var currIndex = $.inArray( i, a );
  95868. if ( i != currIndex )
  95869. {
  95870. /* Reorder our switching array */
  95871. fnArraySwitch( a, currIndex, i );
  95872. /* Do the column reorder in the table */
  95873. this.s.dt.oInstance.fnColReorder( currIndex, i );
  95874. }
  95875. }
  95876. /* When scrolling we need to recalculate the column sizes to allow for the shift */
  95877. if ( this.s.dt.oScroll.sX !== "" || this.s.dt.oScroll.sY !== "" )
  95878. {
  95879. this.s.dt.oInstance.fnAdjustColumnSizing( false );
  95880. }
  95881. /* Save the state */
  95882. this.s.dt.oInstance.oApi._fnSaveState( this.s.dt );
  95883. this._fnSetColumnIndexes();
  95884. if ( this.s.reorderCallback !== null )
  95885. {
  95886. this.s.reorderCallback.call( this );
  95887. }
  95888. },
  95889. /**
  95890. * Because we change the indexes of columns in the table, relative to their starting point
  95891. * we need to reorder the state columns to what they are at the starting point so we can
  95892. * then rearrange them again on state load!
  95893. * @method _fnStateSave
  95894. * @param object oState DataTables state
  95895. * @returns string JSON encoded cookie string for DataTables
  95896. * @private
  95897. */
  95898. "_fnStateSave": function ( oState )
  95899. {
  95900. var i, iLen, aCopy, iOrigColumn;
  95901. var oSettings = this.s.dt;
  95902. var columns = oSettings.aoColumns;
  95903. oState.ColReorder = [];
  95904. /* Sorting */
  95905. if ( oState.aaSorting ) {
  95906. // 1.10.0-
  95907. for ( i=0 ; i<oState.aaSorting.length ; i++ ) {
  95908. oState.aaSorting[i][0] = columns[ oState.aaSorting[i][0] ]._ColReorder_iOrigCol;
  95909. }
  95910. var aSearchCopy = $.extend( true, [], oState.aoSearchCols );
  95911. for ( i=0, iLen=columns.length ; i<iLen ; i++ )
  95912. {
  95913. iOrigColumn = columns[i]._ColReorder_iOrigCol;
  95914. /* Column filter */
  95915. oState.aoSearchCols[ iOrigColumn ] = aSearchCopy[i];
  95916. /* Visibility */
  95917. oState.abVisCols[ iOrigColumn ] = columns[i].bVisible;
  95918. /* Column reordering */
  95919. oState.ColReorder.push( iOrigColumn );
  95920. }
  95921. }
  95922. else if ( oState.order ) {
  95923. // 1.10.1+
  95924. for ( i=0 ; i<oState.order.length ; i++ ) {
  95925. oState.order[i][0] = columns[ oState.order[i][0] ]._ColReorder_iOrigCol;
  95926. }
  95927. var stateColumnsCopy = $.extend( true, [], oState.columns );
  95928. for ( i=0, iLen=columns.length ; i<iLen ; i++ )
  95929. {
  95930. iOrigColumn = columns[i]._ColReorder_iOrigCol;
  95931. /* Columns */
  95932. oState.columns[ iOrigColumn ] = stateColumnsCopy[i];
  95933. /* Column reordering */
  95934. oState.ColReorder.push( iOrigColumn );
  95935. }
  95936. }
  95937. },
  95938. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  95939. * Mouse drop and drag
  95940. */
  95941. /**
  95942. * Add a mouse down listener to a particluar TH element
  95943. * @method _fnMouseListener
  95944. * @param int i Column index
  95945. * @param element nTh TH element clicked on
  95946. * @returns void
  95947. * @private
  95948. */
  95949. "_fnMouseListener": function ( i, nTh )
  95950. {
  95951. var that = this;
  95952. $(nTh).on( 'mousedown.ColReorder', function (e) {
  95953. e.preventDefault();
  95954. that._fnMouseDown.call( that, e, nTh );
  95955. } );
  95956. },
  95957. /**
  95958. * Mouse down on a TH element in the table header
  95959. * @method _fnMouseDown
  95960. * @param event e Mouse event
  95961. * @param element nTh TH element to be dragged
  95962. * @returns void
  95963. * @private
  95964. */
  95965. "_fnMouseDown": function ( e, nTh )
  95966. {
  95967. var that = this;
  95968. /* Store information about the mouse position */
  95969. var target = $(e.target).closest('th, td');
  95970. var offset = target.offset();
  95971. var idx = parseInt( $(nTh).attr('data-column-index'), 10 );
  95972. if ( idx === undefined ) {
  95973. return;
  95974. }
  95975. this.s.mouse.startX = e.pageX;
  95976. this.s.mouse.startY = e.pageY;
  95977. this.s.mouse.offsetX = e.pageX - offset.left;
  95978. this.s.mouse.offsetY = e.pageY - offset.top;
  95979. this.s.mouse.target = this.s.dt.aoColumns[ idx ].nTh;//target[0];
  95980. this.s.mouse.targetIndex = idx;
  95981. this.s.mouse.fromIndex = idx;
  95982. this._fnRegions();
  95983. /* Add event handlers to the document */
  95984. $(document)
  95985. .on( 'mousemove.ColReorder', function (e) {
  95986. that._fnMouseMove.call( that, e );
  95987. } )
  95988. .on( 'mouseup.ColReorder', function (e) {
  95989. that._fnMouseUp.call( that, e );
  95990. } );
  95991. },
  95992. /**
  95993. * Deal with a mouse move event while dragging a node
  95994. * @method _fnMouseMove
  95995. * @param event e Mouse event
  95996. * @returns void
  95997. * @private
  95998. */
  95999. "_fnMouseMove": function ( e )
  96000. {
  96001. var that = this;
  96002. if ( this.dom.drag === null )
  96003. {
  96004. /* Only create the drag element if the mouse has moved a specific distance from the start
  96005. * point - this allows the user to make small mouse movements when sorting and not have a
  96006. * possibly confusing drag element showing up
  96007. */
  96008. if ( Math.pow(
  96009. Math.pow(e.pageX - this.s.mouse.startX, 2) +
  96010. Math.pow(e.pageY - this.s.mouse.startY, 2), 0.5 ) < 5 )
  96011. {
  96012. return;
  96013. }
  96014. this._fnCreateDragNode();
  96015. }
  96016. /* Position the element - we respect where in the element the click occured */
  96017. this.dom.drag.css( {
  96018. left: e.pageX - this.s.mouse.offsetX,
  96019. top: e.pageY - this.s.mouse.offsetY
  96020. } );
  96021. /* Based on the current mouse position, calculate where the insert should go */
  96022. var bSet = false;
  96023. var lastToIndex = this.s.mouse.toIndex;
  96024. for ( var i=1, iLen=this.s.aoTargets.length ; i<iLen ; i++ )
  96025. {
  96026. if ( e.pageX < this.s.aoTargets[i-1].x + ((this.s.aoTargets[i].x-this.s.aoTargets[i-1].x)/2) )
  96027. {
  96028. this.dom.pointer.css( 'left', this.s.aoTargets[i-1].x );
  96029. this.s.mouse.toIndex = this.s.aoTargets[i-1].to;
  96030. bSet = true;
  96031. break;
  96032. }
  96033. }
  96034. // The insert element wasn't positioned in the array (less than
  96035. // operator), so we put it at the end
  96036. if ( !bSet )
  96037. {
  96038. this.dom.pointer.css( 'left', this.s.aoTargets[this.s.aoTargets.length-1].x );
  96039. this.s.mouse.toIndex = this.s.aoTargets[this.s.aoTargets.length-1].to;
  96040. }
  96041. // Perform reordering if realtime updating is on and the column has moved
  96042. if ( this.s.init.bRealtime && lastToIndex !== this.s.mouse.toIndex ) {
  96043. this.s.dt.oInstance.fnColReorder( this.s.mouse.fromIndex, this.s.mouse.toIndex );
  96044. this.s.mouse.fromIndex = this.s.mouse.toIndex;
  96045. this._fnRegions();
  96046. }
  96047. },
  96048. /**
  96049. * Finish off the mouse drag and insert the column where needed
  96050. * @method _fnMouseUp
  96051. * @param event e Mouse event
  96052. * @returns void
  96053. * @private
  96054. */
  96055. "_fnMouseUp": function ( e )
  96056. {
  96057. var that = this;
  96058. $(document).off( 'mousemove.ColReorder mouseup.ColReorder' );
  96059. if ( this.dom.drag !== null )
  96060. {
  96061. /* Remove the guide elements */
  96062. this.dom.drag.remove();
  96063. this.dom.pointer.remove();
  96064. this.dom.drag = null;
  96065. this.dom.pointer = null;
  96066. /* Actually do the reorder */
  96067. this.s.dt.oInstance.fnColReorder( this.s.mouse.fromIndex, this.s.mouse.toIndex );
  96068. this._fnSetColumnIndexes();
  96069. /* When scrolling we need to recalculate the column sizes to allow for the shift */
  96070. if ( this.s.dt.oScroll.sX !== "" || this.s.dt.oScroll.sY !== "" )
  96071. {
  96072. this.s.dt.oInstance.fnAdjustColumnSizing( false );
  96073. }
  96074. /* Save the state */
  96075. this.s.dt.oInstance.oApi._fnSaveState( this.s.dt );
  96076. if ( this.s.reorderCallback !== null )
  96077. {
  96078. this.s.reorderCallback.call( this );
  96079. }
  96080. }
  96081. },
  96082. /**
  96083. * Calculate a cached array with the points of the column inserts, and the
  96084. * 'to' points
  96085. * @method _fnRegions
  96086. * @returns void
  96087. * @private
  96088. */
  96089. "_fnRegions": function ()
  96090. {
  96091. var aoColumns = this.s.dt.aoColumns;
  96092. this.s.aoTargets.splice( 0, this.s.aoTargets.length );
  96093. this.s.aoTargets.push( {
  96094. "x": $(this.s.dt.nTable).offset().left,
  96095. "to": 0
  96096. } );
  96097. var iToPoint = 0;
  96098. for ( var i=0, iLen=aoColumns.length ; i<iLen ; i++ )
  96099. {
  96100. /* For the column / header in question, we want it's position to remain the same if the
  96101. * position is just to it's immediate left or right, so we only incremement the counter for
  96102. * other columns
  96103. */
  96104. if ( i != this.s.mouse.fromIndex )
  96105. {
  96106. iToPoint++;
  96107. }
  96108. if ( aoColumns[i].bVisible )
  96109. {
  96110. this.s.aoTargets.push( {
  96111. "x": $(aoColumns[i].nTh).offset().left + $(aoColumns[i].nTh).outerWidth(),
  96112. "to": iToPoint
  96113. } );
  96114. }
  96115. }
  96116. /* Disallow columns for being reordered by drag and drop, counting right to left */
  96117. if ( this.s.fixedRight !== 0 )
  96118. {
  96119. this.s.aoTargets.splice( this.s.aoTargets.length - this.s.fixedRight );
  96120. }
  96121. /* Disallow columns for being reordered by drag and drop, counting left to right */
  96122. if ( this.s.fixed !== 0 )
  96123. {
  96124. this.s.aoTargets.splice( 0, this.s.fixed );
  96125. }
  96126. },
  96127. /**
  96128. * Copy the TH element that is being drags so the user has the idea that they are actually
  96129. * moving it around the page.
  96130. * @method _fnCreateDragNode
  96131. * @returns void
  96132. * @private
  96133. */
  96134. "_fnCreateDragNode": function ()
  96135. {
  96136. var scrolling = this.s.dt.oScroll.sX !== "" || this.s.dt.oScroll.sY !== "";
  96137. var origCell = this.s.dt.aoColumns[ this.s.mouse.targetIndex ].nTh;
  96138. var origTr = origCell.parentNode;
  96139. var origThead = origTr.parentNode;
  96140. var origTable = origThead.parentNode;
  96141. var cloneCell = $(origCell).clone();
  96142. // This is a slightly odd combination of jQuery and DOM, but it is the
  96143. // fastest and least resource intensive way I could think of cloning
  96144. // the table with just a single header cell in it.
  96145. this.dom.drag = $(origTable.cloneNode(false))
  96146. .addClass( 'DTCR_clonedTable' )
  96147. .append(
  96148. $(origThead.cloneNode(false)).append(
  96149. $(origTr.cloneNode(false)).append(
  96150. cloneCell[0]
  96151. )
  96152. )
  96153. )
  96154. .css( {
  96155. position: 'absolute',
  96156. top: 0,
  96157. left: 0,
  96158. width: $(origCell).outerWidth(),
  96159. height: $(origCell).outerHeight()
  96160. } )
  96161. .appendTo( 'body' );
  96162. this.dom.pointer = $('<div></div>')
  96163. .addClass( 'DTCR_pointer' )
  96164. .css( {
  96165. position: 'absolute',
  96166. top: scrolling ?
  96167. $('div.dataTables_scroll', this.s.dt.nTableWrapper).offset().top :
  96168. $(this.s.dt.nTable).offset().top,
  96169. height : scrolling ?
  96170. $('div.dataTables_scroll', this.s.dt.nTableWrapper).height() :
  96171. $(this.s.dt.nTable).height()
  96172. } )
  96173. .appendTo( 'body' );
  96174. },
  96175. /**
  96176. * Add a data attribute to the column headers, so we know the index of
  96177. * the row to be reordered. This allows fast detection of the index, and
  96178. * for this plug-in to work with FixedHeader which clones the nodes.
  96179. * @private
  96180. */
  96181. "_fnSetColumnIndexes": function ()
  96182. {
  96183. $.each( this.s.dt.aoColumns, function (i, column) {
  96184. $(column.nTh).attr('data-column-index', i);
  96185. } );
  96186. }
  96187. };
  96188. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  96189. * Static parameters
  96190. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  96191. /**
  96192. * ColReorder default settings for initialisation
  96193. * @namespace
  96194. * @static
  96195. */
  96196. ColReorder.defaults = {
  96197. /**
  96198. * Predefined ordering for the columns that will be applied automatically
  96199. * on initialisation. If not specified then the order that the columns are
  96200. * found to be in the HTML is the order used.
  96201. * @type array
  96202. * @default null
  96203. * @static
  96204. */
  96205. aiOrder: null,
  96206. /**
  96207. * Redraw the table's column ordering as the end user draws the column
  96208. * (`true`) or wait until the mouse is released (`false` - default). Note
  96209. * that this will perform a redraw on each reordering, which involves an
  96210. * Ajax request each time if you are using server-side processing in
  96211. * DataTables.
  96212. * @type boolean
  96213. * @default false
  96214. * @static
  96215. */
  96216. bRealtime: true,
  96217. /**
  96218. * Indicate how many columns should be fixed in position (counting from the
  96219. * left). This will typically be 1 if used, but can be as high as you like.
  96220. * @type int
  96221. * @default 0
  96222. * @static
  96223. */
  96224. iFixedColumnsLeft: 0,
  96225. /**
  96226. * As `iFixedColumnsRight` but counting from the right.
  96227. * @type int
  96228. * @default 0
  96229. * @static
  96230. */
  96231. iFixedColumnsRight: 0,
  96232. /**
  96233. * Callback function that is fired when columns are reordered. The `column-
  96234. * reorder` event is preferred over this callback
  96235. * @type function():void
  96236. * @default null
  96237. * @static
  96238. */
  96239. fnReorderCallback: null
  96240. };
  96241. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  96242. * Constants
  96243. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  96244. /**
  96245. * ColReorder version
  96246. * @constant version
  96247. * @type String
  96248. * @default As code
  96249. */
  96250. ColReorder.version = "1.2.0";
  96251. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  96252. * DataTables interfaces
  96253. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  96254. // Expose
  96255. $.fn.dataTable.ColReorder = ColReorder;
  96256. $.fn.DataTable.ColReorder = ColReorder;
  96257. // Register a new feature with DataTables
  96258. if ( typeof $.fn.dataTable == "function" &&
  96259. typeof $.fn.dataTableExt.fnVersionCheck == "function" &&
  96260. $.fn.dataTableExt.fnVersionCheck('1.10.8') )
  96261. {
  96262. $.fn.dataTableExt.aoFeatures.push( {
  96263. "fnInit": function( settings ) {
  96264. var table = settings.oInstance;
  96265. if ( ! settings._colReorder ) {
  96266. var dtInit = settings.oInit;
  96267. var opts = dtInit.colReorder || dtInit.oColReorder || {};
  96268. new ColReorder( settings, opts );
  96269. }
  96270. else {
  96271. table.oApi._fnLog( settings, 1, "ColReorder attempted to initialise twice. Ignoring second" );
  96272. }
  96273. return null; /* No node for DataTables to insert */
  96274. },
  96275. "cFeature": "R",
  96276. "sFeature": "ColReorder"
  96277. } );
  96278. }
  96279. else {
  96280. alert( "Warning: ColReorder requires DataTables 1.10.8 or greater - www.datatables.net/download");
  96281. }
  96282. // Attach a listener to the document which listens for DataTables initialisation
  96283. // events so we can automatically initialise
  96284. $(document).on( 'preInit.dt.colReorder', function (e, settings) {
  96285. if ( e.namespace !== 'dt' ) {
  96286. return;
  96287. }
  96288. var init = settings.oInit.colReorder;
  96289. var defaults = DataTable.defaults.colReorder;
  96290. if ( init || defaults ) {
  96291. var opts = $.extend( {}, init, defaults );
  96292. if ( init !== false ) {
  96293. new ColReorder( settings, opts );
  96294. }
  96295. }
  96296. } );
  96297. // API augmentation
  96298. $.fn.dataTable.Api.register( 'colReorder.reset()', function () {
  96299. return this.iterator( 'table', function ( ctx ) {
  96300. ctx._colReorder.fnReset();
  96301. } );
  96302. } );
  96303. $.fn.dataTable.Api.register( 'colReorder.order()', function ( set ) {
  96304. if ( set ) {
  96305. return this.iterator( 'table', function ( ctx ) {
  96306. ctx._colReorder.fnOrder( set );
  96307. } );
  96308. }
  96309. return this.context.length ?
  96310. this.context[0]._colReorder.fnOrder() :
  96311. null;
  96312. } );
  96313. return ColReorder;
  96314. }; // /factory
  96315. // Define as an AMD module if possible
  96316. if ( typeof define === 'function' && define.amd ) {
  96317. define( ['jquery', 'datatables'], factory );
  96318. }
  96319. else if ( typeof exports === 'object' ) {
  96320. // Node/CommonJS
  96321. factory( require('jquery'), require('datatables') );
  96322. }
  96323. else if ( jQuery && !jQuery.fn.dataTable.ColReorder ) {
  96324. // Otherwise simply initialise as normal, stopping multiple evaluation
  96325. factory( jQuery, jQuery.fn.dataTable );
  96326. }
  96327. })(window, document);
  96328. /*! FixedColumns 3.1.0
  96329. * ©2010-2014 SpryMedia Ltd - datatables.net/license
  96330. */
  96331. /**
  96332. * @summary FixedColumns
  96333. * @description Freeze columns in place on a scrolling DataTable
  96334. * @version 3.1.0
  96335. * @file dataTables.fixedColumns.js
  96336. * @author SpryMedia Ltd (www.sprymedia.co.uk)
  96337. * @contact www.sprymedia.co.uk/contact
  96338. * @copyright Copyright 2010-2014 SpryMedia Ltd.
  96339. *
  96340. * This source file is free software, available under the following license:
  96341. * MIT license - http://datatables.net/license/mit
  96342. *
  96343. * This source file is distributed in the hope that it will be useful, but
  96344. * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  96345. * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
  96346. *
  96347. * For details please refer to: http://www.datatables.net
  96348. */
  96349. (function(window, document, undefined) {
  96350. var factory = function( $, DataTable ) {
  96351. "use strict";
  96352. /**
  96353. * When making use of DataTables' x-axis scrolling feature, you may wish to
  96354. * fix the left most column in place. This plug-in for DataTables provides
  96355. * exactly this option (note for non-scrolling tables, please use the
  96356. * FixedHeader plug-in, which can fix headers, footers and columns). Key
  96357. * features include:
  96358. *
  96359. * * Freezes the left or right most columns to the side of the table
  96360. * * Option to freeze two or more columns
  96361. * * Full integration with DataTables' scrolling options
  96362. * * Speed - FixedColumns is fast in its operation
  96363. *
  96364. * @class
  96365. * @constructor
  96366. * @global
  96367. * @param {object} dt DataTables instance. With DataTables 1.10 this can also
  96368. * be a jQuery collection, a jQuery selector, DataTables API instance or
  96369. * settings object.
  96370. * @param {object} [init={}] Configuration object for FixedColumns. Options are
  96371. * defined by {@link FixedColumns.defaults}
  96372. *
  96373. * @requires jQuery 1.7+
  96374. * @requires DataTables 1.8.0+
  96375. *
  96376. * @example
  96377. * var table = $('#example').dataTable( {
  96378. * "scrollX": "100%"
  96379. * } );
  96380. * new $.fn.dataTable.fixedColumns( table );
  96381. */
  96382. var FixedColumns = function ( dt, init ) {
  96383. var that = this;
  96384. /* Sanity check - you just know it will happen */
  96385. if ( ! ( this instanceof FixedColumns ) ) {
  96386. alert( "FixedColumns warning: FixedColumns must be initialised with the 'new' keyword." );
  96387. return;
  96388. }
  96389. if ( init === undefined || init === true ) {
  96390. init = {};
  96391. }
  96392. // Use the DataTables Hungarian notation mapping method, if it exists to
  96393. // provide forwards compatibility for camel case variables
  96394. var camelToHungarian = $.fn.dataTable.camelToHungarian;
  96395. if ( camelToHungarian ) {
  96396. camelToHungarian( FixedColumns.defaults, FixedColumns.defaults, true );
  96397. camelToHungarian( FixedColumns.defaults, init );
  96398. }
  96399. // v1.10 allows the settings object to be got form a number of sources
  96400. var dtSettings = new $.fn.dataTable.Api( dt ).settings()[0];
  96401. /**
  96402. * Settings object which contains customisable information for FixedColumns instance
  96403. * @namespace
  96404. * @extends FixedColumns.defaults
  96405. * @private
  96406. */
  96407. this.s = {
  96408. /**
  96409. * DataTables settings objects
  96410. * @type object
  96411. * @default Obtained from DataTables instance
  96412. */
  96413. "dt": dtSettings,
  96414. /**
  96415. * Number of columns in the DataTable - stored for quick access
  96416. * @type int
  96417. * @default Obtained from DataTables instance
  96418. */
  96419. "iTableColumns": dtSettings.aoColumns.length,
  96420. /**
  96421. * Original outer widths of the columns as rendered by DataTables - used to calculate
  96422. * the FixedColumns grid bounding box
  96423. * @type array.<int>
  96424. * @default []
  96425. */
  96426. "aiOuterWidths": [],
  96427. /**
  96428. * Original inner widths of the columns as rendered by DataTables - used to apply widths
  96429. * to the columns
  96430. * @type array.<int>
  96431. * @default []
  96432. */
  96433. "aiInnerWidths": []
  96434. };
  96435. /**
  96436. * DOM elements used by the class instance
  96437. * @namespace
  96438. * @private
  96439. *
  96440. */
  96441. this.dom = {
  96442. /**
  96443. * DataTables scrolling element
  96444. * @type node
  96445. * @default null
  96446. */
  96447. "scroller": null,
  96448. /**
  96449. * DataTables header table
  96450. * @type node
  96451. * @default null
  96452. */
  96453. "header": null,
  96454. /**
  96455. * DataTables body table
  96456. * @type node
  96457. * @default null
  96458. */
  96459. "body": null,
  96460. /**
  96461. * DataTables footer table
  96462. * @type node
  96463. * @default null
  96464. */
  96465. "footer": null,
  96466. /**
  96467. * Display grid elements
  96468. * @namespace
  96469. */
  96470. "grid": {
  96471. /**
  96472. * Grid wrapper. This is the container element for the 3x3 grid
  96473. * @type node
  96474. * @default null
  96475. */
  96476. "wrapper": null,
  96477. /**
  96478. * DataTables scrolling element. This element is the DataTables
  96479. * component in the display grid (making up the main table - i.e.
  96480. * not the fixed columns).
  96481. * @type node
  96482. * @default null
  96483. */
  96484. "dt": null,
  96485. /**
  96486. * Left fixed column grid components
  96487. * @namespace
  96488. */
  96489. "left": {
  96490. "wrapper": null,
  96491. "head": null,
  96492. "body": null,
  96493. "foot": null
  96494. },
  96495. /**
  96496. * Right fixed column grid components
  96497. * @namespace
  96498. */
  96499. "right": {
  96500. "wrapper": null,
  96501. "head": null,
  96502. "body": null,
  96503. "foot": null
  96504. }
  96505. },
  96506. /**
  96507. * Cloned table nodes
  96508. * @namespace
  96509. */
  96510. "clone": {
  96511. /**
  96512. * Left column cloned table nodes
  96513. * @namespace
  96514. */
  96515. "left": {
  96516. /**
  96517. * Cloned header table
  96518. * @type node
  96519. * @default null
  96520. */
  96521. "header": null,
  96522. /**
  96523. * Cloned body table
  96524. * @type node
  96525. * @default null
  96526. */
  96527. "body": null,
  96528. /**
  96529. * Cloned footer table
  96530. * @type node
  96531. * @default null
  96532. */
  96533. "footer": null
  96534. },
  96535. /**
  96536. * Right column cloned table nodes
  96537. * @namespace
  96538. */
  96539. "right": {
  96540. /**
  96541. * Cloned header table
  96542. * @type node
  96543. * @default null
  96544. */
  96545. "header": null,
  96546. /**
  96547. * Cloned body table
  96548. * @type node
  96549. * @default null
  96550. */
  96551. "body": null,
  96552. /**
  96553. * Cloned footer table
  96554. * @type node
  96555. * @default null
  96556. */
  96557. "footer": null
  96558. }
  96559. }
  96560. };
  96561. if ( dtSettings._oFixedColumns ) {
  96562. throw 'FixedColumns already initialised on this table';
  96563. }
  96564. /* Attach the instance to the DataTables instance so it can be accessed easily */
  96565. dtSettings._oFixedColumns = this;
  96566. /* Let's do it */
  96567. if ( ! dtSettings._bInitComplete )
  96568. {
  96569. dtSettings.oApi._fnCallbackReg( dtSettings, 'aoInitComplete', function () {
  96570. that._fnConstruct( init );
  96571. }, 'FixedColumns' );
  96572. }
  96573. else
  96574. {
  96575. this._fnConstruct( init );
  96576. }
  96577. };
  96578. FixedColumns.prototype = /** @lends FixedColumns.prototype */{
  96579. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  96580. * Public methods
  96581. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  96582. /**
  96583. * Update the fixed columns - including headers and footers. Note that FixedColumns will
  96584. * automatically update the display whenever the host DataTable redraws.
  96585. * @returns {void}
  96586. * @example
  96587. * var table = $('#example').dataTable( {
  96588. * "scrollX": "100%"
  96589. * } );
  96590. * var fc = new $.fn.dataTable.fixedColumns( table );
  96591. *
  96592. * // at some later point when the table has been manipulated....
  96593. * fc.fnUpdate();
  96594. */
  96595. "fnUpdate": function ()
  96596. {
  96597. this._fnDraw( true );
  96598. },
  96599. /**
  96600. * Recalculate the resizes of the 3x3 grid that FixedColumns uses for display of the table.
  96601. * This is useful if you update the width of the table container. Note that FixedColumns will
  96602. * perform this function automatically when the window.resize event is fired.
  96603. * @returns {void}
  96604. * @example
  96605. * var table = $('#example').dataTable( {
  96606. * "scrollX": "100%"
  96607. * } );
  96608. * var fc = new $.fn.dataTable.fixedColumns( table );
  96609. *
  96610. * // Resize the table container and then have FixedColumns adjust its layout....
  96611. * $('#content').width( 1200 );
  96612. * fc.fnRedrawLayout();
  96613. */
  96614. "fnRedrawLayout": function ()
  96615. {
  96616. this._fnColCalc();
  96617. this._fnGridLayout();
  96618. this.fnUpdate();
  96619. },
  96620. /**
  96621. * Mark a row such that it's height should be recalculated when using 'semiauto' row
  96622. * height matching. This function will have no effect when 'none' or 'auto' row height
  96623. * matching is used.
  96624. * @param {Node} nTr TR element that should have it's height recalculated
  96625. * @returns {void}
  96626. * @example
  96627. * var table = $('#example').dataTable( {
  96628. * "scrollX": "100%"
  96629. * } );
  96630. * var fc = new $.fn.dataTable.fixedColumns( table );
  96631. *
  96632. * // manipulate the table - mark the row as needing an update then update the table
  96633. * // this allows the redraw performed by DataTables fnUpdate to recalculate the row
  96634. * // height
  96635. * fc.fnRecalculateHeight();
  96636. * table.fnUpdate( $('#example tbody tr:eq(0)')[0], ["insert date", 1, 2, 3 ... ]);
  96637. */
  96638. "fnRecalculateHeight": function ( nTr )
  96639. {
  96640. delete nTr._DTTC_iHeight;
  96641. nTr.style.height = 'auto';
  96642. },
  96643. /**
  96644. * Set the height of a given row - provides cross browser compatibility
  96645. * @param {Node} nTarget TR element that should have it's height recalculated
  96646. * @param {int} iHeight Height in pixels to set
  96647. * @returns {void}
  96648. * @example
  96649. * var table = $('#example').dataTable( {
  96650. * "scrollX": "100%"
  96651. * } );
  96652. * var fc = new $.fn.dataTable.fixedColumns( table );
  96653. *
  96654. * // You may want to do this after manipulating a row in the fixed column
  96655. * fc.fnSetRowHeight( $('#example tbody tr:eq(0)')[0], 50 );
  96656. */
  96657. "fnSetRowHeight": function ( nTarget, iHeight )
  96658. {
  96659. nTarget.style.height = iHeight+"px";
  96660. },
  96661. /**
  96662. * Get data index information about a row or cell in the table body.
  96663. * This function is functionally identical to fnGetPosition in DataTables,
  96664. * taking the same parameter (TH, TD or TR node) and returning exactly the
  96665. * the same information (data index information). THe difference between
  96666. * the two is that this method takes into account the fixed columns in the
  96667. * table, so you can pass in nodes from the master table, or the cloned
  96668. * tables and get the index position for the data in the main table.
  96669. * @param {node} node TR, TH or TD element to get the information about
  96670. * @returns {int} If nNode is given as a TR, then a single index is
  96671. * returned, or if given as a cell, an array of [row index, column index
  96672. * (visible), column index (all)] is given.
  96673. */
  96674. "fnGetPosition": function ( node )
  96675. {
  96676. var idx;
  96677. var inst = this.s.dt.oInstance;
  96678. if ( ! $(node).parents('.DTFC_Cloned').length )
  96679. {
  96680. // Not in a cloned table
  96681. return inst.fnGetPosition( node );
  96682. }
  96683. else
  96684. {
  96685. // Its in the cloned table, so need to look up position
  96686. if ( node.nodeName.toLowerCase() === 'tr' ) {
  96687. idx = $(node).index();
  96688. return inst.fnGetPosition( $('tr', this.s.dt.nTBody)[ idx ] );
  96689. }
  96690. else
  96691. {
  96692. var colIdx = $(node).index();
  96693. idx = $(node.parentNode).index();
  96694. var row = inst.fnGetPosition( $('tr', this.s.dt.nTBody)[ idx ] );
  96695. return [
  96696. row,
  96697. colIdx,
  96698. inst.oApi._fnVisibleToColumnIndex( this.s.dt, colIdx )
  96699. ];
  96700. }
  96701. }
  96702. },
  96703. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  96704. * Private methods (they are of course public in JS, but recommended as private)
  96705. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  96706. /**
  96707. * Initialisation for FixedColumns
  96708. * @param {Object} oInit User settings for initialisation
  96709. * @returns {void}
  96710. * @private
  96711. */
  96712. "_fnConstruct": function ( oInit )
  96713. {
  96714. var i, iLen, iWidth,
  96715. that = this;
  96716. /* Sanity checking */
  96717. if ( typeof this.s.dt.oInstance.fnVersionCheck != 'function' ||
  96718. this.s.dt.oInstance.fnVersionCheck( '1.8.0' ) !== true )
  96719. {
  96720. alert( "FixedColumns "+FixedColumns.VERSION+" required DataTables 1.8.0 or later. "+
  96721. "Please upgrade your DataTables installation" );
  96722. return;
  96723. }
  96724. if ( this.s.dt.oScroll.sX === "" )
  96725. {
  96726. this.s.dt.oInstance.oApi._fnLog( this.s.dt, 1, "FixedColumns is not needed (no "+
  96727. "x-scrolling in DataTables enabled), so no action will be taken. Use 'FixedHeader' for "+
  96728. "column fixing when scrolling is not enabled" );
  96729. return;
  96730. }
  96731. /* Apply the settings from the user / defaults */
  96732. this.s = $.extend( true, this.s, FixedColumns.defaults, oInit );
  96733. /* Set up the DOM as we need it and cache nodes */
  96734. var classes = this.s.dt.oClasses;
  96735. this.dom.grid.dt = $(this.s.dt.nTable).parents('div.'+classes.sScrollWrapper)[0];
  96736. this.dom.scroller = $('div.'+classes.sScrollBody, this.dom.grid.dt )[0];
  96737. /* Set up the DOM that we want for the fixed column layout grid */
  96738. this._fnColCalc();
  96739. this._fnGridSetup();
  96740. /* Event handlers */
  96741. var mouseController;
  96742. // When the body is scrolled - scroll the left and right columns
  96743. $(this.dom.scroller)
  96744. .on( 'mouseover.DTFC touchstart.DTFC', function () {
  96745. mouseController = 'main';
  96746. } )
  96747. .on( 'scroll.DTFC', function (e) {
  96748. if ( ! mouseController && e.originalEvent ) {
  96749. mouseController = 'main';
  96750. }
  96751. if ( mouseController === 'main' ) {
  96752. if ( that.s.iLeftColumns > 0 ) {
  96753. that.dom.grid.left.liner.scrollTop = that.dom.scroller.scrollTop;
  96754. }
  96755. if ( that.s.iRightColumns > 0 ) {
  96756. that.dom.grid.right.liner.scrollTop = that.dom.scroller.scrollTop;
  96757. }
  96758. }
  96759. } );
  96760. var wheelType = 'onwheel' in document.createElement('div') ?
  96761. 'wheel.DTFC' :
  96762. 'mousewheel.DTFC';
  96763. if ( that.s.iLeftColumns > 0 ) {
  96764. // When scrolling the left column, scroll the body and right column
  96765. $(that.dom.grid.left.liner)
  96766. .on( 'mouseover.DTFC touchstart.DTFC', function () {
  96767. mouseController = 'left';
  96768. } )
  96769. .on( 'scroll.DTFC', function ( e ) {
  96770. if ( ! mouseController && e.originalEvent ) {
  96771. mouseController = 'left';
  96772. }
  96773. if ( mouseController === 'left' ) {
  96774. that.dom.scroller.scrollTop = that.dom.grid.left.liner.scrollTop;
  96775. if ( that.s.iRightColumns > 0 ) {
  96776. that.dom.grid.right.liner.scrollTop = that.dom.grid.left.liner.scrollTop;
  96777. }
  96778. }
  96779. } )
  96780. .on( wheelType, function(e) {
  96781. // Pass horizontal scrolling through
  96782. var xDelta = e.type === 'wheel' ?
  96783. -e.originalEvent.deltaX :
  96784. e.originalEvent.wheelDeltaX;
  96785. that.dom.scroller.scrollLeft -= xDelta;
  96786. } );
  96787. }
  96788. if ( that.s.iRightColumns > 0 ) {
  96789. // When scrolling the right column, scroll the body and the left column
  96790. $(that.dom.grid.right.liner)
  96791. .on( 'mouseover.DTFC touchstart.DTFC', function () {
  96792. mouseController = 'right';
  96793. } )
  96794. .on( 'scroll.DTFC', function ( e ) {
  96795. if ( ! mouseController && e.originalEvent ) {
  96796. mouseController = 'right';
  96797. }
  96798. if ( mouseController === 'right' ) {
  96799. that.dom.scroller.scrollTop = that.dom.grid.right.liner.scrollTop;
  96800. if ( that.s.iLeftColumns > 0 ) {
  96801. that.dom.grid.left.liner.scrollTop = that.dom.grid.right.liner.scrollTop;
  96802. }
  96803. }
  96804. } )
  96805. .on( wheelType, function(e) {
  96806. // Pass horizontal scrolling through
  96807. var xDelta = e.type === 'wheel' ?
  96808. -e.originalEvent.deltaX :
  96809. e.originalEvent.wheelDeltaX;
  96810. that.dom.scroller.scrollLeft -= xDelta;
  96811. } );
  96812. }
  96813. $(window).on( 'resize.DTFC', function () {
  96814. that._fnGridLayout.call( that );
  96815. } );
  96816. var bFirstDraw = true;
  96817. var jqTable = $(this.s.dt.nTable);
  96818. jqTable
  96819. .on( 'draw.dt.DTFC', function () {
  96820. that._fnDraw.call( that, bFirstDraw );
  96821. bFirstDraw = false;
  96822. } )
  96823. .on( 'column-sizing.dt.DTFC', function () {
  96824. that._fnColCalc();
  96825. that._fnGridLayout( that );
  96826. } )
  96827. .on( 'column-visibility.dt.DTFC', function () {
  96828. that._fnColCalc();
  96829. that._fnGridLayout( that );
  96830. that._fnDraw( true );
  96831. } )
  96832. .on( 'destroy.dt.DTFC', function () {
  96833. jqTable.off( 'column-sizing.dt.DTFC column-visibility.dt.DTFC destroy.dt.DTFC draw.dt.DTFC' );
  96834. $(that.dom.scroller).off( 'mouseover.DTFC touchstart.DTFC scroll.DTFC' );
  96835. $(window).off( 'resize.DTFC' );
  96836. $(that.dom.grid.left.liner).off( 'mouseover.DTFC touchstart.DTFC scroll.DTFC '+wheelType );
  96837. $(that.dom.grid.left.wrapper).remove();
  96838. $(that.dom.grid.right.liner).off( 'mouseover.DTFC touchstart.DTFC scroll.DTFC '+wheelType );
  96839. $(that.dom.grid.right.wrapper).remove();
  96840. } );
  96841. /* Get things right to start with - note that due to adjusting the columns, there must be
  96842. * another redraw of the main table. It doesn't need to be a full redraw however.
  96843. */
  96844. this._fnGridLayout();
  96845. this.s.dt.oInstance.fnDraw(false);
  96846. },
  96847. /**
  96848. * Calculate the column widths for the grid layout
  96849. * @returns {void}
  96850. * @private
  96851. */
  96852. "_fnColCalc": function ()
  96853. {
  96854. var that = this;
  96855. var iLeftWidth = 0;
  96856. var iRightWidth = 0;
  96857. this.s.aiInnerWidths = [];
  96858. this.s.aiOuterWidths = [];
  96859. $.each( this.s.dt.aoColumns, function (i, col) {
  96860. var th = $(col.nTh);
  96861. var border;
  96862. if ( ! th.filter(':visible').length ) {
  96863. that.s.aiInnerWidths.push( 0 );
  96864. that.s.aiOuterWidths.push( 0 );
  96865. }
  96866. else
  96867. {
  96868. // Inner width is used to assign widths to cells
  96869. // Outer width is used to calculate the container
  96870. var iWidth = th.outerWidth();
  96871. // When working with the left most-cell, need to add on the
  96872. // table's border to the outerWidth, since we need to take
  96873. // account of it, but it isn't in any cell
  96874. if ( that.s.aiOuterWidths.length === 0 ) {
  96875. border = $(that.s.dt.nTable).css('border-left-width');
  96876. iWidth += typeof border === 'string' ? 1 : parseInt( border, 10 );
  96877. }
  96878. // Likewise with the final column on the right
  96879. if ( that.s.aiOuterWidths.length === that.s.dt.aoColumns.length-1 ) {
  96880. border = $(that.s.dt.nTable).css('border-right-width');
  96881. iWidth += typeof border === 'string' ? 1 : parseInt( border, 10 );
  96882. }
  96883. that.s.aiOuterWidths.push( iWidth );
  96884. that.s.aiInnerWidths.push( th.width() );
  96885. if ( i < that.s.iLeftColumns )
  96886. {
  96887. iLeftWidth += iWidth;
  96888. }
  96889. if ( that.s.iTableColumns-that.s.iRightColumns <= i )
  96890. {
  96891. iRightWidth += iWidth;
  96892. }
  96893. }
  96894. } );
  96895. this.s.iLeftWidth = iLeftWidth;
  96896. this.s.iRightWidth = iRightWidth;
  96897. },
  96898. /**
  96899. * Set up the DOM for the fixed column. The way the layout works is to create a 1x3 grid
  96900. * for the left column, the DataTable (for which we just reuse the scrolling element DataTable
  96901. * puts into the DOM) and the right column. In each of he two fixed column elements there is a
  96902. * grouping wrapper element and then a head, body and footer wrapper. In each of these we then
  96903. * place the cloned header, body or footer tables. This effectively gives as 3x3 grid structure.
  96904. * @returns {void}
  96905. * @private
  96906. */
  96907. "_fnGridSetup": function ()
  96908. {
  96909. var that = this;
  96910. var oOverflow = this._fnDTOverflow();
  96911. var block;
  96912. this.dom.body = this.s.dt.nTable;
  96913. this.dom.header = this.s.dt.nTHead.parentNode;
  96914. this.dom.header.parentNode.parentNode.style.position = "relative";
  96915. var nSWrapper =
  96916. $('<div class="DTFC_ScrollWrapper" style="position:relative; clear:both;">'+
  96917. '<div class="DTFC_LeftWrapper" style="position:absolute; top:0; left:0;">'+
  96918. '<div class="DTFC_LeftHeadWrapper" style="position:relative; top:0; left:0; overflow:hidden;"></div>'+
  96919. '<div class="DTFC_LeftBodyWrapper" style="position:relative; top:0; left:0; overflow:hidden;">'+
  96920. '<div class="DTFC_LeftBodyLiner" style="position:relative; top:0; left:0; overflow-y:scroll;"></div>'+
  96921. '</div>'+
  96922. '<div class="DTFC_LeftFootWrapper" style="position:relative; top:0; left:0; overflow:hidden;"></div>'+
  96923. '</div>'+
  96924. '<div class="DTFC_RightWrapper" style="position:absolute; top:0; left:0;">'+
  96925. '<div class="DTFC_RightHeadWrapper" style="position:relative; top:0; left:0;">'+
  96926. '<div class="DTFC_RightHeadBlocker DTFC_Blocker" style="position:absolute; top:0; bottom:0;"></div>'+
  96927. '</div>'+
  96928. '<div class="DTFC_RightBodyWrapper" style="position:relative; top:0; left:0; overflow:hidden;">'+
  96929. '<div class="DTFC_RightBodyLiner" style="position:relative; top:0; left:0; overflow-y:scroll;"></div>'+
  96930. '</div>'+
  96931. '<div class="DTFC_RightFootWrapper" style="position:relative; top:0; left:0;">'+
  96932. '<div class="DTFC_RightFootBlocker DTFC_Blocker" style="position:absolute; top:0; bottom:0;"></div>'+
  96933. '</div>'+
  96934. '</div>'+
  96935. '</div>')[0];
  96936. var nLeft = nSWrapper.childNodes[0];
  96937. var nRight = nSWrapper.childNodes[1];
  96938. this.dom.grid.dt.parentNode.insertBefore( nSWrapper, this.dom.grid.dt );
  96939. nSWrapper.appendChild( this.dom.grid.dt );
  96940. this.dom.grid.wrapper = nSWrapper;
  96941. if ( this.s.iLeftColumns > 0 )
  96942. {
  96943. this.dom.grid.left.wrapper = nLeft;
  96944. this.dom.grid.left.head = nLeft.childNodes[0];
  96945. this.dom.grid.left.body = nLeft.childNodes[1];
  96946. this.dom.grid.left.liner = $('div.DTFC_LeftBodyLiner', nSWrapper)[0];
  96947. nSWrapper.appendChild( nLeft );
  96948. }
  96949. if ( this.s.iRightColumns > 0 )
  96950. {
  96951. this.dom.grid.right.wrapper = nRight;
  96952. this.dom.grid.right.head = nRight.childNodes[0];
  96953. this.dom.grid.right.body = nRight.childNodes[1];
  96954. this.dom.grid.right.liner = $('div.DTFC_RightBodyLiner', nSWrapper)[0];
  96955. block = $('div.DTFC_RightHeadBlocker', nSWrapper)[0];
  96956. block.style.width = oOverflow.bar+"px";
  96957. block.style.right = -oOverflow.bar+"px";
  96958. this.dom.grid.right.headBlock = block;
  96959. block = $('div.DTFC_RightFootBlocker', nSWrapper)[0];
  96960. block.style.width = oOverflow.bar+"px";
  96961. block.style.right = -oOverflow.bar+"px";
  96962. this.dom.grid.right.footBlock = block;
  96963. nSWrapper.appendChild( nRight );
  96964. }
  96965. if ( this.s.dt.nTFoot )
  96966. {
  96967. this.dom.footer = this.s.dt.nTFoot.parentNode;
  96968. if ( this.s.iLeftColumns > 0 )
  96969. {
  96970. this.dom.grid.left.foot = nLeft.childNodes[2];
  96971. }
  96972. if ( this.s.iRightColumns > 0 )
  96973. {
  96974. this.dom.grid.right.foot = nRight.childNodes[2];
  96975. }
  96976. }
  96977. },
  96978. /**
  96979. * Style and position the grid used for the FixedColumns layout
  96980. * @returns {void}
  96981. * @private
  96982. */
  96983. "_fnGridLayout": function ()
  96984. {
  96985. var oGrid = this.dom.grid;
  96986. var iWidth = $(oGrid.wrapper).width();
  96987. var iBodyHeight = $(this.s.dt.nTable.parentNode).outerHeight();
  96988. var iFullHeight = $(this.s.dt.nTable.parentNode.parentNode).outerHeight();
  96989. var oOverflow = this._fnDTOverflow();
  96990. var
  96991. iLeftWidth = this.s.iLeftWidth,
  96992. iRightWidth = this.s.iRightWidth,
  96993. iRight;
  96994. var scrollbarAdjust = function ( node, width ) {
  96995. if ( ! oOverflow.bar ) {
  96996. // If there is no scrollbar (Macs) we need to hide the auto scrollbar
  96997. node.style.width = (width+20)+"px";
  96998. node.style.paddingRight = "20px";
  96999. node.style.boxSizing = "border-box";
  97000. }
  97001. else {
  97002. // Otherwise just overflow by the scrollbar
  97003. node.style.width = (width+oOverflow.bar)+"px";
  97004. }
  97005. };
  97006. // When x scrolling - don't paint the fixed columns over the x scrollbar
  97007. if ( oOverflow.x )
  97008. {
  97009. iBodyHeight -= oOverflow.bar;
  97010. }
  97011. oGrid.wrapper.style.height = iFullHeight+"px";
  97012. if ( this.s.iLeftColumns > 0 )
  97013. {
  97014. oGrid.left.wrapper.style.width = iLeftWidth+"px";
  97015. oGrid.left.wrapper.style.height = "1px";
  97016. oGrid.left.body.style.height = iBodyHeight+"px";
  97017. if ( oGrid.left.foot ) {
  97018. oGrid.left.foot.style.top = (oOverflow.x ? oOverflow.bar : 0)+"px"; // shift footer for scrollbar
  97019. }
  97020. scrollbarAdjust( oGrid.left.liner, iLeftWidth );
  97021. oGrid.left.liner.style.height = iBodyHeight+"px";
  97022. }
  97023. if ( this.s.iRightColumns > 0 )
  97024. {
  97025. iRight = iWidth - iRightWidth;
  97026. if ( oOverflow.y )
  97027. {
  97028. iRight -= oOverflow.bar;
  97029. }
  97030. oGrid.right.wrapper.style.width = iRightWidth+"px";
  97031. oGrid.right.wrapper.style.left = iRight+"px";
  97032. oGrid.right.wrapper.style.height = "1px";
  97033. oGrid.right.body.style.height = iBodyHeight+"px";
  97034. if ( oGrid.right.foot ) {
  97035. oGrid.right.foot.style.top = (oOverflow.x ? oOverflow.bar : 0)+"px";
  97036. }
  97037. scrollbarAdjust( oGrid.right.liner, iRightWidth );
  97038. oGrid.right.liner.style.height = iBodyHeight+"px";
  97039. oGrid.right.headBlock.style.display = oOverflow.y ? 'block' : 'none';
  97040. oGrid.right.footBlock.style.display = oOverflow.y ? 'block' : 'none';
  97041. }
  97042. },
  97043. /**
  97044. * Get information about the DataTable's scrolling state - specifically if the table is scrolling
  97045. * on either the x or y axis, and also the scrollbar width.
  97046. * @returns {object} Information about the DataTables scrolling state with the properties:
  97047. * 'x', 'y' and 'bar'
  97048. * @private
  97049. */
  97050. "_fnDTOverflow": function ()
  97051. {
  97052. var nTable = this.s.dt.nTable;
  97053. var nTableScrollBody = nTable.parentNode;
  97054. var out = {
  97055. "x": false,
  97056. "y": false,
  97057. "bar": this.s.dt.oScroll.iBarWidth
  97058. };
  97059. if ( nTable.offsetWidth > nTableScrollBody.clientWidth )
  97060. {
  97061. out.x = true;
  97062. }
  97063. if ( nTable.offsetHeight > nTableScrollBody.clientHeight )
  97064. {
  97065. out.y = true;
  97066. }
  97067. return out;
  97068. },
  97069. /**
  97070. * Clone and position the fixed columns
  97071. * @returns {void}
  97072. * @param {Boolean} bAll Indicate if the header and footer should be updated as well (true)
  97073. * @private
  97074. */
  97075. "_fnDraw": function ( bAll )
  97076. {
  97077. this._fnGridLayout();
  97078. this._fnCloneLeft( bAll );
  97079. this._fnCloneRight( bAll );
  97080. /* Draw callback function */
  97081. if ( this.s.fnDrawCallback !== null )
  97082. {
  97083. this.s.fnDrawCallback.call( this, this.dom.clone.left, this.dom.clone.right );
  97084. }
  97085. /* Event triggering */
  97086. $(this).trigger( 'draw.dtfc', {
  97087. "leftClone": this.dom.clone.left,
  97088. "rightClone": this.dom.clone.right
  97089. } );
  97090. },
  97091. /**
  97092. * Clone the right columns
  97093. * @returns {void}
  97094. * @param {Boolean} bAll Indicate if the header and footer should be updated as well (true)
  97095. * @private
  97096. */
  97097. "_fnCloneRight": function ( bAll )
  97098. {
  97099. if ( this.s.iRightColumns <= 0 ) {
  97100. return;
  97101. }
  97102. var that = this,
  97103. i, jq,
  97104. aiColumns = [];
  97105. for ( i=this.s.iTableColumns-this.s.iRightColumns ; i<this.s.iTableColumns ; i++ ) {
  97106. if ( this.s.dt.aoColumns[i].bVisible ) {
  97107. aiColumns.push( i );
  97108. }
  97109. }
  97110. this._fnClone( this.dom.clone.right, this.dom.grid.right, aiColumns, bAll );
  97111. },
  97112. /**
  97113. * Clone the left columns
  97114. * @returns {void}
  97115. * @param {Boolean} bAll Indicate if the header and footer should be updated as well (true)
  97116. * @private
  97117. */
  97118. "_fnCloneLeft": function ( bAll )
  97119. {
  97120. if ( this.s.iLeftColumns <= 0 ) {
  97121. return;
  97122. }
  97123. var that = this,
  97124. i, jq,
  97125. aiColumns = [];
  97126. for ( i=0 ; i<this.s.iLeftColumns ; i++ ) {
  97127. if ( this.s.dt.aoColumns[i].bVisible ) {
  97128. aiColumns.push( i );
  97129. }
  97130. }
  97131. this._fnClone( this.dom.clone.left, this.dom.grid.left, aiColumns, bAll );
  97132. },
  97133. /**
  97134. * Make a copy of the layout object for a header or footer element from DataTables. Note that
  97135. * this method will clone the nodes in the layout object.
  97136. * @returns {Array} Copy of the layout array
  97137. * @param {Object} aoOriginal Layout array from DataTables (aoHeader or aoFooter)
  97138. * @param {Object} aiColumns Columns to copy
  97139. * @param {boolean} events Copy cell events or not
  97140. * @private
  97141. */
  97142. "_fnCopyLayout": function ( aoOriginal, aiColumns, events )
  97143. {
  97144. var aReturn = [];
  97145. var aClones = [];
  97146. var aCloned = [];
  97147. for ( var i=0, iLen=aoOriginal.length ; i<iLen ; i++ )
  97148. {
  97149. var aRow = [];
  97150. aRow.nTr = $(aoOriginal[i].nTr).clone(events, false)[0];
  97151. for ( var j=0, jLen=this.s.iTableColumns ; j<jLen ; j++ )
  97152. {
  97153. if ( $.inArray( j, aiColumns ) === -1 )
  97154. {
  97155. continue;
  97156. }
  97157. var iCloned = $.inArray( aoOriginal[i][j].cell, aCloned );
  97158. if ( iCloned === -1 )
  97159. {
  97160. var nClone = $(aoOriginal[i][j].cell).clone(events, false)[0];
  97161. aClones.push( nClone );
  97162. aCloned.push( aoOriginal[i][j].cell );
  97163. aRow.push( {
  97164. "cell": nClone,
  97165. "unique": aoOriginal[i][j].unique
  97166. } );
  97167. }
  97168. else
  97169. {
  97170. aRow.push( {
  97171. "cell": aClones[ iCloned ],
  97172. "unique": aoOriginal[i][j].unique
  97173. } );
  97174. }
  97175. }
  97176. aReturn.push( aRow );
  97177. }
  97178. return aReturn;
  97179. },
  97180. /**
  97181. * Clone the DataTable nodes and place them in the DOM (sized correctly)
  97182. * @returns {void}
  97183. * @param {Object} oClone Object containing the header, footer and body cloned DOM elements
  97184. * @param {Object} oGrid Grid object containing the display grid elements for the cloned
  97185. * column (left or right)
  97186. * @param {Array} aiColumns Column indexes which should be operated on from the DataTable
  97187. * @param {Boolean} bAll Indicate if the header and footer should be updated as well (true)
  97188. * @private
  97189. */
  97190. "_fnClone": function ( oClone, oGrid, aiColumns, bAll )
  97191. {
  97192. var that = this,
  97193. i, iLen, j, jLen, jq, nTarget, iColumn, nClone, iIndex, aoCloneLayout,
  97194. jqCloneThead, aoFixedHeader,
  97195. dt = this.s.dt;
  97196. /*
  97197. * Header
  97198. */
  97199. if ( bAll )
  97200. {
  97201. $(oClone.header).remove();
  97202. oClone.header = $(this.dom.header).clone(true, false)[0];
  97203. oClone.header.className += " DTFC_Cloned";
  97204. oClone.header.style.width = "100%";
  97205. oGrid.head.appendChild( oClone.header );
  97206. /* Copy the DataTables layout cache for the header for our floating column */
  97207. aoCloneLayout = this._fnCopyLayout( dt.aoHeader, aiColumns, true );
  97208. jqCloneThead = $('>thead', oClone.header);
  97209. jqCloneThead.empty();
  97210. /* Add the created cloned TR elements to the table */
  97211. for ( i=0, iLen=aoCloneLayout.length ; i<iLen ; i++ )
  97212. {
  97213. jqCloneThead[0].appendChild( aoCloneLayout[i].nTr );
  97214. }
  97215. /* Use the handy _fnDrawHead function in DataTables to do the rowspan/colspan
  97216. * calculations for us
  97217. */
  97218. dt.oApi._fnDrawHead( dt, aoCloneLayout, true );
  97219. }
  97220. else
  97221. {
  97222. /* To ensure that we copy cell classes exactly, regardless of colspan, multiple rows
  97223. * etc, we make a copy of the header from the DataTable again, but don't insert the
  97224. * cloned cells, just copy the classes across. To get the matching layout for the
  97225. * fixed component, we use the DataTables _fnDetectHeader method, allowing 1:1 mapping
  97226. */
  97227. aoCloneLayout = this._fnCopyLayout( dt.aoHeader, aiColumns, false );
  97228. aoFixedHeader=[];
  97229. dt.oApi._fnDetectHeader( aoFixedHeader, $('>thead', oClone.header)[0] );
  97230. for ( i=0, iLen=aoCloneLayout.length ; i<iLen ; i++ )
  97231. {
  97232. for ( j=0, jLen=aoCloneLayout[i].length ; j<jLen ; j++ )
  97233. {
  97234. aoFixedHeader[i][j].cell.className = aoCloneLayout[i][j].cell.className;
  97235. // If jQuery UI theming is used we need to copy those elements as well
  97236. $('span.DataTables_sort_icon', aoFixedHeader[i][j].cell).each( function () {
  97237. this.className = $('span.DataTables_sort_icon', aoCloneLayout[i][j].cell)[0].className;
  97238. } );
  97239. }
  97240. }
  97241. }
  97242. this._fnEqualiseHeights( 'thead', this.dom.header, oClone.header );
  97243. /*
  97244. * Body
  97245. */
  97246. if ( this.s.sHeightMatch == 'auto' )
  97247. {
  97248. /* Remove any heights which have been applied already and let the browser figure it out */
  97249. $('>tbody>tr', that.dom.body).css('height', 'auto');
  97250. }
  97251. if ( oClone.body !== null )
  97252. {
  97253. $(oClone.body).remove();
  97254. oClone.body = null;
  97255. }
  97256. oClone.body = $(this.dom.body).clone(true)[0];
  97257. oClone.body.className += " DTFC_Cloned";
  97258. oClone.body.style.paddingBottom = dt.oScroll.iBarWidth+"px";
  97259. oClone.body.style.marginBottom = (dt.oScroll.iBarWidth*2)+"px"; /* For IE */
  97260. if ( oClone.body.getAttribute('id') !== null )
  97261. {
  97262. oClone.body.removeAttribute('id');
  97263. }
  97264. $('>thead>tr', oClone.body).empty();
  97265. $('>tfoot', oClone.body).remove();
  97266. var nBody = $('tbody', oClone.body)[0];
  97267. $(nBody).empty();
  97268. if ( dt.aiDisplay.length > 0 )
  97269. {
  97270. /* Copy the DataTables' header elements to force the column width in exactly the
  97271. * same way that DataTables does it - have the header element, apply the width and
  97272. * colapse it down
  97273. */
  97274. var nInnerThead = $('>thead>tr', oClone.body)[0];
  97275. for ( iIndex=0 ; iIndex<aiColumns.length ; iIndex++ )
  97276. {
  97277. iColumn = aiColumns[iIndex];
  97278. nClone = $(dt.aoColumns[iColumn].nTh).clone(true)[0];
  97279. nClone.innerHTML = "";
  97280. var oStyle = nClone.style;
  97281. oStyle.paddingTop = "0";
  97282. oStyle.paddingBottom = "0";
  97283. oStyle.borderTopWidth = "0";
  97284. oStyle.borderBottomWidth = "0";
  97285. oStyle.height = 0;
  97286. oStyle.width = that.s.aiInnerWidths[iColumn]+"px";
  97287. nInnerThead.appendChild( nClone );
  97288. }
  97289. /* Add in the tbody elements, cloning form the master table */
  97290. $('>tbody>tr', that.dom.body).each( function (z) {
  97291. var n = this.cloneNode(false);
  97292. n.removeAttribute('id');
  97293. var i = that.s.dt.oFeatures.bServerSide===false ?
  97294. that.s.dt.aiDisplay[ that.s.dt._iDisplayStart+z ] : z;
  97295. var aTds = that.s.dt.aoData[ i ].anCells || $(this).children('td, th');
  97296. for ( iIndex=0 ; iIndex<aiColumns.length ; iIndex++ )
  97297. {
  97298. iColumn = aiColumns[iIndex];
  97299. if ( aTds.length > 0 )
  97300. {
  97301. nClone = $( aTds[iColumn] ).clone(true, true)[0];
  97302. n.appendChild( nClone );
  97303. }
  97304. }
  97305. nBody.appendChild( n );
  97306. } );
  97307. }
  97308. else
  97309. {
  97310. $('>tbody>tr', that.dom.body).each( function (z) {
  97311. nClone = this.cloneNode(true);
  97312. nClone.className += ' DTFC_NoData';
  97313. $('td', nClone).html('');
  97314. nBody.appendChild( nClone );
  97315. } );
  97316. }
  97317. oClone.body.style.width = "100%";
  97318. oClone.body.style.margin = "0";
  97319. oClone.body.style.padding = "0";
  97320. // Interop with Scroller - need to use a height forcing element in the
  97321. // scrolling area in the same way that Scroller does in the body scroll.
  97322. if ( dt.oScroller !== undefined )
  97323. {
  97324. var scrollerForcer = dt.oScroller.dom.force;
  97325. if ( ! oGrid.forcer ) {
  97326. oGrid.forcer = scrollerForcer.cloneNode( true );
  97327. oGrid.liner.appendChild( oGrid.forcer );
  97328. }
  97329. else {
  97330. oGrid.forcer.style.height = scrollerForcer.style.height;
  97331. }
  97332. }
  97333. oGrid.liner.appendChild( oClone.body );
  97334. this._fnEqualiseHeights( 'tbody', that.dom.body, oClone.body );
  97335. /*
  97336. * Footer
  97337. */
  97338. if ( dt.nTFoot !== null )
  97339. {
  97340. if ( bAll )
  97341. {
  97342. if ( oClone.footer !== null )
  97343. {
  97344. oClone.footer.parentNode.removeChild( oClone.footer );
  97345. }
  97346. oClone.footer = $(this.dom.footer).clone(true, true)[0];
  97347. oClone.footer.className += " DTFC_Cloned";
  97348. oClone.footer.style.width = "100%";
  97349. oGrid.foot.appendChild( oClone.footer );
  97350. /* Copy the footer just like we do for the header */
  97351. aoCloneLayout = this._fnCopyLayout( dt.aoFooter, aiColumns, true );
  97352. var jqCloneTfoot = $('>tfoot', oClone.footer);
  97353. jqCloneTfoot.empty();
  97354. for ( i=0, iLen=aoCloneLayout.length ; i<iLen ; i++ )
  97355. {
  97356. jqCloneTfoot[0].appendChild( aoCloneLayout[i].nTr );
  97357. }
  97358. dt.oApi._fnDrawHead( dt, aoCloneLayout, true );
  97359. }
  97360. else
  97361. {
  97362. aoCloneLayout = this._fnCopyLayout( dt.aoFooter, aiColumns, false );
  97363. var aoCurrFooter=[];
  97364. dt.oApi._fnDetectHeader( aoCurrFooter, $('>tfoot', oClone.footer)[0] );
  97365. for ( i=0, iLen=aoCloneLayout.length ; i<iLen ; i++ )
  97366. {
  97367. for ( j=0, jLen=aoCloneLayout[i].length ; j<jLen ; j++ )
  97368. {
  97369. aoCurrFooter[i][j].cell.className = aoCloneLayout[i][j].cell.className;
  97370. }
  97371. }
  97372. }
  97373. this._fnEqualiseHeights( 'tfoot', this.dom.footer, oClone.footer );
  97374. }
  97375. /* Equalise the column widths between the header footer and body - body get's priority */
  97376. var anUnique = dt.oApi._fnGetUniqueThs( dt, $('>thead', oClone.header)[0] );
  97377. $(anUnique).each( function (i) {
  97378. iColumn = aiColumns[i];
  97379. this.style.width = that.s.aiInnerWidths[iColumn]+"px";
  97380. } );
  97381. if ( that.s.dt.nTFoot !== null )
  97382. {
  97383. anUnique = dt.oApi._fnGetUniqueThs( dt, $('>tfoot', oClone.footer)[0] );
  97384. $(anUnique).each( function (i) {
  97385. iColumn = aiColumns[i];
  97386. this.style.width = that.s.aiInnerWidths[iColumn]+"px";
  97387. } );
  97388. }
  97389. },
  97390. /**
  97391. * From a given table node (THEAD etc), get a list of TR direct child elements
  97392. * @param {Node} nIn Table element to search for TR elements (THEAD, TBODY or TFOOT element)
  97393. * @returns {Array} List of TR elements found
  97394. * @private
  97395. */
  97396. "_fnGetTrNodes": function ( nIn )
  97397. {
  97398. var aOut = [];
  97399. for ( var i=0, iLen=nIn.childNodes.length ; i<iLen ; i++ )
  97400. {
  97401. if ( nIn.childNodes[i].nodeName.toUpperCase() == "TR" )
  97402. {
  97403. aOut.push( nIn.childNodes[i] );
  97404. }
  97405. }
  97406. return aOut;
  97407. },
  97408. /**
  97409. * Equalise the heights of the rows in a given table node in a cross browser way
  97410. * @returns {void}
  97411. * @param {String} nodeName Node type - thead, tbody or tfoot
  97412. * @param {Node} original Original node to take the heights from
  97413. * @param {Node} clone Copy the heights to
  97414. * @private
  97415. */
  97416. "_fnEqualiseHeights": function ( nodeName, original, clone )
  97417. {
  97418. if ( this.s.sHeightMatch == 'none' && nodeName !== 'thead' && nodeName !== 'tfoot' )
  97419. {
  97420. return;
  97421. }
  97422. var that = this,
  97423. i, iLen, iHeight, iHeight2, iHeightOriginal, iHeightClone,
  97424. rootOriginal = original.getElementsByTagName(nodeName)[0],
  97425. rootClone = clone.getElementsByTagName(nodeName)[0],
  97426. jqBoxHack = $('>'+nodeName+'>tr:eq(0)', original).children(':first'),
  97427. iBoxHack = jqBoxHack.outerHeight() - jqBoxHack.height(),
  97428. anOriginal = this._fnGetTrNodes( rootOriginal ),
  97429. anClone = this._fnGetTrNodes( rootClone ),
  97430. heights = [];
  97431. for ( i=0, iLen=anClone.length ; i<iLen ; i++ )
  97432. {
  97433. iHeightOriginal = anOriginal[i].offsetHeight;
  97434. iHeightClone = anClone[i].offsetHeight;
  97435. iHeight = iHeightClone > iHeightOriginal ? iHeightClone : iHeightOriginal;
  97436. if ( this.s.sHeightMatch == 'semiauto' )
  97437. {
  97438. anOriginal[i]._DTTC_iHeight = iHeight;
  97439. }
  97440. heights.push( iHeight );
  97441. }
  97442. for ( i=0, iLen=anClone.length ; i<iLen ; i++ )
  97443. {
  97444. anClone[i].style.height = heights[i]+"px";
  97445. anOriginal[i].style.height = heights[i]+"px";
  97446. }
  97447. }
  97448. };
  97449. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  97450. * Statics
  97451. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  97452. /**
  97453. * FixedColumns default settings for initialisation
  97454. * @name FixedColumns.defaults
  97455. * @namespace
  97456. * @static
  97457. */
  97458. FixedColumns.defaults = /** @lends FixedColumns.defaults */{
  97459. /**
  97460. * Number of left hand columns to fix in position
  97461. * @type int
  97462. * @default 1
  97463. * @static
  97464. * @example
  97465. * var = $('#example').dataTable( {
  97466. * "scrollX": "100%"
  97467. * } );
  97468. * new $.fn.dataTable.fixedColumns( table, {
  97469. * "leftColumns": 2
  97470. * } );
  97471. */
  97472. "iLeftColumns": 1,
  97473. /**
  97474. * Number of right hand columns to fix in position
  97475. * @type int
  97476. * @default 0
  97477. * @static
  97478. * @example
  97479. * var table = $('#example').dataTable( {
  97480. * "scrollX": "100%"
  97481. * } );
  97482. * new $.fn.dataTable.fixedColumns( table, {
  97483. * "rightColumns": 1
  97484. * } );
  97485. */
  97486. "iRightColumns": 0,
  97487. /**
  97488. * Draw callback function which is called when FixedColumns has redrawn the fixed assets
  97489. * @type function(object, object):void
  97490. * @default null
  97491. * @static
  97492. * @example
  97493. * var table = $('#example').dataTable( {
  97494. * "scrollX": "100%"
  97495. * } );
  97496. * new $.fn.dataTable.fixedColumns( table, {
  97497. * "drawCallback": function () {
  97498. * alert( "FixedColumns redraw" );
  97499. * }
  97500. * } );
  97501. */
  97502. "fnDrawCallback": null,
  97503. /**
  97504. * Height matching algorthim to use. This can be "none" which will result in no height
  97505. * matching being applied by FixedColumns (height matching could be forced by CSS in this
  97506. * case), "semiauto" whereby the height calculation will be performed once, and the result
  97507. * cached to be used again (fnRecalculateHeight can be used to force recalculation), or
  97508. * "auto" when height matching is performed on every draw (slowest but must accurate)
  97509. * @type string
  97510. * @default semiauto
  97511. * @static
  97512. * @example
  97513. * var table = $('#example').dataTable( {
  97514. * "scrollX": "100%"
  97515. * } );
  97516. * new $.fn.dataTable.fixedColumns( table, {
  97517. * "heightMatch": "auto"
  97518. * } );
  97519. */
  97520. "sHeightMatch": "semiauto"
  97521. };
  97522. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  97523. * Constants
  97524. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  97525. /**
  97526. * FixedColumns version
  97527. * @name FixedColumns.version
  97528. * @type String
  97529. * @default See code
  97530. * @static
  97531. */
  97532. FixedColumns.version = "3.1.0";
  97533. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  97534. * DataTables API integration
  97535. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  97536. DataTable.Api.register( 'fixedColumns()', function () {
  97537. return this;
  97538. } );
  97539. DataTable.Api.register( 'fixedColumns().update()', function () {
  97540. return this.iterator( 'table', function ( ctx ) {
  97541. if ( ctx._oFixedColumns ) {
  97542. ctx._oFixedColumns.fnUpdate();
  97543. }
  97544. } );
  97545. } );
  97546. DataTable.Api.register( 'fixedColumns().relayout()', function () {
  97547. return this.iterator( 'table', function ( ctx ) {
  97548. if ( ctx._oFixedColumns ) {
  97549. ctx._oFixedColumns.fnRedrawLayout();
  97550. }
  97551. } );
  97552. } );
  97553. DataTable.Api.register( 'rows().recalcHeight()', function () {
  97554. return this.iterator( 'row', function ( ctx, idx ) {
  97555. if ( ctx._oFixedColumns ) {
  97556. ctx._oFixedColumns.fnRecalculateHeight( this.row(idx).node() );
  97557. }
  97558. } );
  97559. } );
  97560. DataTable.Api.register( 'fixedColumns().rowIndex()', function ( row ) {
  97561. row = $(row);
  97562. return row.parents('.DTFC_Cloned').length ?
  97563. this.rows( { page: 'current' } ).indexes()[ row.index() ] :
  97564. this.row( row ).index();
  97565. } );
  97566. DataTable.Api.register( 'fixedColumns().cellIndex()', function ( cell ) {
  97567. cell = $(cell);
  97568. if ( cell.parents('.DTFC_Cloned').length ) {
  97569. var rowClonedIdx = cell.parent().index();
  97570. var rowIdx = this.rows( { page: 'current' } ).indexes()[ rowClonedIdx ];
  97571. var columnIdx;
  97572. if ( cell.parents('.DTFC_LeftWrapper').length ) {
  97573. columnIdx = cell.index();
  97574. }
  97575. else {
  97576. var columns = this.columns().flatten().length;
  97577. columnIdx = columns - this.context[0]._oFixedColumns.s.iRightColumns + cell.index();
  97578. }
  97579. return {
  97580. row: rowIdx,
  97581. column: this.column.index( 'toData', columnIdx ),
  97582. columnVisible: columnIdx
  97583. };
  97584. }
  97585. else {
  97586. return this.cell( cell ).index();
  97587. }
  97588. } );
  97589. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  97590. * Initialisation
  97591. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  97592. // Attach a listener to the document which listens for DataTables initialisation
  97593. // events so we can automatically initialise
  97594. $(document).on( 'init.dt.fixedColumns', function (e, settings) {
  97595. if ( e.namespace !== 'dt' ) {
  97596. return;
  97597. }
  97598. var init = settings.oInit.fixedColumns;
  97599. var defaults = DataTable.defaults.fixedColumns;
  97600. if ( init || defaults ) {
  97601. var opts = $.extend( {}, init, defaults );
  97602. if ( init !== false ) {
  97603. new FixedColumns( settings, opts );
  97604. }
  97605. }
  97606. } );
  97607. // Make FixedColumns accessible from the DataTables instance
  97608. $.fn.dataTable.FixedColumns = FixedColumns;
  97609. $.fn.DataTable.FixedColumns = FixedColumns;
  97610. return FixedColumns;
  97611. }; // /factory
  97612. // Define as an AMD module if possible
  97613. if ( typeof define === 'function' && define.amd ) {
  97614. define( ['jquery', 'datatables'], factory );
  97615. }
  97616. else if ( typeof exports === 'object' ) {
  97617. // Node/CommonJS
  97618. factory( require('jquery'), require('datatables') );
  97619. }
  97620. else if ( jQuery && !jQuery.fn.dataTable.FixedColumns ) {
  97621. // Otherwise simply initialise as normal, stopping multiple evaluation
  97622. factory( jQuery, jQuery.fn.dataTable );
  97623. }
  97624. })(window, document);
  97625. /*! FixedHeader 3.0.0
  97626. * ©2009-2015 SpryMedia Ltd - datatables.net/license
  97627. */
  97628. /**
  97629. * @summary FixedHeader
  97630. * @description Fix a table's header or footer, so it is always visible while
  97631. * scrolling
  97632. * @version 3.0.0
  97633. * @file dataTables.fixedHeader.js
  97634. * @author SpryMedia Ltd (www.sprymedia.co.uk)
  97635. * @contact www.sprymedia.co.uk/contact
  97636. * @copyright Copyright 2009-2015 SpryMedia Ltd.
  97637. *
  97638. * This source file is free software, available under the following license:
  97639. * MIT license - http://datatables.net/license/mit
  97640. *
  97641. * This source file is distributed in the hope that it will be useful, but
  97642. * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  97643. * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
  97644. *
  97645. * For details please refer to: http://www.datatables.net
  97646. */
  97647. (function(window, document, undefined) {
  97648. var factory = function( $, DataTable ) {
  97649. "use strict";
  97650. var _instCounter = 0;
  97651. var FixedHeader = function ( dt, config ) {
  97652. // Sanity check - you just know it will happen
  97653. if ( ! (this instanceof FixedHeader) ) {
  97654. throw "FixedHeader must be initialised with the 'new' keyword.";
  97655. }
  97656. // Allow a boolean true for defaults
  97657. if ( config === true ) {
  97658. config = {};
  97659. }
  97660. dt = new DataTable.Api( dt );
  97661. this.c = $.extend( true, {}, FixedHeader.defaults, config );
  97662. this.s = {
  97663. dt: dt,
  97664. position: {
  97665. theadTop: 0,
  97666. tbodyTop: 0,
  97667. tfootTop: 0,
  97668. tfootBottom: 0,
  97669. width: 0,
  97670. left: 0,
  97671. tfootHeight: 0,
  97672. theadHeight: 0,
  97673. windowHeight: $(window).height(),
  97674. visible: true
  97675. },
  97676. headerMode: null,
  97677. footerMode: null,
  97678. namespace: '.dtfc'+(_instCounter++)
  97679. };
  97680. this.dom = {
  97681. floatingHeader: null,
  97682. thead: $(dt.table().header()),
  97683. tbody: $(dt.table().body()),
  97684. tfoot: $(dt.table().footer()),
  97685. header: {
  97686. host: null,
  97687. floating: null,
  97688. placeholder: null
  97689. },
  97690. footer: {
  97691. host: null,
  97692. floating: null,
  97693. placeholder: null
  97694. }
  97695. };
  97696. this.dom.header.host = this.dom.thead.parent();
  97697. this.dom.footer.host = this.dom.tfoot.parent();
  97698. var dtSettings = dt.settings()[0];
  97699. if ( dtSettings._fixedHeader ) {
  97700. throw "FixedHeader already initialised on table "+dtSettings.nTable.id;
  97701. }
  97702. dtSettings._fixedHeader = this;
  97703. this._constructor();
  97704. };
  97705. /*
  97706. * Variable: FixedHeader
  97707. * Purpose: Prototype for FixedHeader
  97708. * Scope: global
  97709. */
  97710. FixedHeader.prototype = {
  97711. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  97712. * API methods
  97713. */
  97714. /**
  97715. * Recalculate the position of the fixed elements and force them into place
  97716. */
  97717. update: function () {
  97718. this._positions();
  97719. this._scroll( true );
  97720. },
  97721. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  97722. * Constructor
  97723. */
  97724. /**
  97725. * FixedHeader constructor - adding the required event listeners and
  97726. * simple initialisation
  97727. *
  97728. * @private
  97729. */
  97730. _constructor: function ()
  97731. {
  97732. var that = this;
  97733. var dt = this.s.dt;
  97734. $(window)
  97735. .on( 'scroll'+this.s.namespace, function () {
  97736. that._scroll();
  97737. } )
  97738. .on( 'resize'+this.s.namespace, function () {
  97739. that.s.position.windowHeight = $(window).height();
  97740. that._positions();
  97741. that._scroll( true );
  97742. } );
  97743. dt
  97744. .on( 'column-reorder.dt.dtfc column-visibility.dt.dtfc', function () {
  97745. that._positions();
  97746. that._scroll( true );
  97747. } )
  97748. .on( 'draw.dtfc', function () {
  97749. that._positions();
  97750. that._scroll();
  97751. } );
  97752. dt.on( 'destroy.dtfc', function () {
  97753. dt.off( '.dtfc' );
  97754. $(window).off( this.s.namespace );
  97755. } );
  97756. this._positions();
  97757. this._scroll();
  97758. },
  97759. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  97760. * Private methods
  97761. */
  97762. /**
  97763. * Clone a fixed item to act as a place holder for the original element
  97764. * which is moved into a clone of the table element, and moved around the
  97765. * document to give the fixed effect.
  97766. *
  97767. * @param {string} item 'header' or 'footer'
  97768. * @param {boolean} force Force the clone to happen, or allow automatic
  97769. * decision (reuse existing if available)
  97770. * @private
  97771. */
  97772. _clone: function ( item, force )
  97773. {
  97774. var dt = this.s.dt;
  97775. var itemDom = this.dom[ item ];
  97776. var itemElement = item === 'header' ?
  97777. this.dom.thead :
  97778. this.dom.tfoot;
  97779. if ( ! force && itemDom.floating ) {
  97780. // existing floating element - reuse it
  97781. itemDom.floating.removeClass( 'fixedHeader-floating fixedHeader-locked' );
  97782. }
  97783. else {
  97784. if ( itemDom.floating ) {
  97785. itemDom.placeholder.remove();
  97786. itemDom.floating.children().detach();
  97787. itemDom.floating.remove();
  97788. }
  97789. itemDom.floating = $( dt.table().node().cloneNode( false ) )
  97790. .removeAttr( 'id' )
  97791. .append( itemElement )
  97792. .appendTo( 'body' );
  97793. // Insert a fake thead/tfoot into the DataTable to stop it jumping around
  97794. itemDom.placeholder = itemElement.clone( false );
  97795. itemDom.host.append( itemDom.placeholder );
  97796. // Footer needs sizes cloned across
  97797. if ( item === 'footer' ) {
  97798. this._footerMatch( itemDom.placeholder, itemDom.floating );
  97799. }
  97800. }
  97801. },
  97802. /**
  97803. * Copy widths from the cells in one element to another. This is required
  97804. * for the footer as the footer in the main table takes its sizes from the
  97805. * header columns. That isn't present in the footer so to have it still
  97806. * align correctly, the sizes need to be copied over.
  97807. *
  97808. * @param {jQuery} from Copy widths from
  97809. * @param {jQuery} to Copy widths to
  97810. * @private
  97811. */
  97812. _footerMatch: function ( from, to ) {
  97813. var type = function ( name ) {
  97814. var toWidths = $(name, from)
  97815. .map( function () {
  97816. return $(this).width();
  97817. } ).toArray();
  97818. $(name, to).each( function ( i ) {
  97819. $(this).width( toWidths[i] );
  97820. } );
  97821. };
  97822. type( 'th' );
  97823. type( 'td' );
  97824. },
  97825. /**
  97826. * Remove assigned widths from the cells in an element. This is required
  97827. * when inserting the footer back into the main table so the size is defined
  97828. * by the header columns.
  97829. *
  97830. * @private
  97831. */
  97832. _footerUnsize: function () {
  97833. var footer = this.dom.footer.floating;
  97834. if ( footer ) {
  97835. $('th, td', footer).css( 'width', '' );
  97836. }
  97837. },
  97838. /**
  97839. * Change from one display mode to another. Each fixed item can be in one
  97840. * of:
  97841. *
  97842. * * `in-place` - In the main DataTable
  97843. * * `in` - Floating over the DataTable
  97844. * * `below` - (Header only) Fixed to the bottom of the table body
  97845. * * `above` - (Footer only) Fixed to the top of the table body
  97846. *
  97847. * @param {string} mode Mode that the item should be shown in
  97848. * @param {string} item 'header' or 'footer'
  97849. * @param {boolean} forceChange Force a redraw of the mode, even if already
  97850. * in that mode.
  97851. * @private
  97852. */
  97853. _modeChange: function ( mode, item, forceChange )
  97854. {
  97855. var dt = this.s.dt;
  97856. var itemDom = this.dom[ item ];
  97857. var position = this.s.position;
  97858. if ( mode === 'in-place' ) {
  97859. // Insert the header back into the table's real header
  97860. if ( itemDom.placeholder ) {
  97861. itemDom.placeholder.remove();
  97862. itemDom.placeholder = null;
  97863. }
  97864. itemDom.host.append( item === 'header' ?
  97865. this.dom.thead :
  97866. this.dom.tfoot
  97867. );
  97868. if ( itemDom.floating ) {
  97869. itemDom.floating.remove();
  97870. itemDom.floating = null;
  97871. }
  97872. if ( item === 'footer' ) {
  97873. this._footerUnsize();
  97874. }
  97875. }
  97876. else if ( mode === 'in' ) {
  97877. // Remove the header from the read header and insert into a fixed
  97878. // positioned floating table clone
  97879. this._clone( item, forceChange );
  97880. itemDom.floating
  97881. .addClass( 'fixedHeader-floating' )
  97882. .css( item === 'header' ? 'top' : 'bottom', this.c[item+'Offset'] )
  97883. .css( 'left', position.left+'px' )
  97884. .css( 'width', position.width+'px' );
  97885. if ( item === 'footer' ) {
  97886. itemDom.floating.css( 'top', '' );
  97887. }
  97888. }
  97889. else if ( mode === 'below' ) { // only used for the header
  97890. // Fix the position of the floating header at base of the table body
  97891. this._clone( item, forceChange );
  97892. itemDom.floating
  97893. .addClass( 'fixedHeader-locked' )
  97894. .css( 'top', position.tfootTop - position.theadHeight )
  97895. .css( 'left', position.left+'px' )
  97896. .css( 'width', position.width+'px' );
  97897. }
  97898. else if ( mode === 'above' ) { // only used for the footer
  97899. // Fix the position of the floating footer at top of the table body
  97900. this._clone( item, forceChange );
  97901. itemDom.floating
  97902. .addClass( 'fixedHeader-locked' )
  97903. .css( 'top', position.tbodyTop )
  97904. .css( 'left', position.left+'px' )
  97905. .css( 'width', position.width+'px' );
  97906. }
  97907. this.s[item+'Mode'] = mode;
  97908. },
  97909. /**
  97910. * Cache the positional information that is required for the mode
  97911. * calculations that FixedHeader performs.
  97912. *
  97913. * @private
  97914. */
  97915. _positions: function ()
  97916. {
  97917. var dt = this.s.dt;
  97918. var table = dt.table();
  97919. var position = this.s.position;
  97920. var dom = this.dom;
  97921. var tableNode = $(table.node());
  97922. // Need to use the header and footer that are in the main table,
  97923. // regardless of if they are clones, since they hold the positions we
  97924. // want to measure from
  97925. var thead = tableNode.children('thead');
  97926. var tfoot = tableNode.children('tfoot');
  97927. var tbody = dom.tbody;
  97928. position.visible = tableNode.is(':visible');
  97929. position.width = tableNode.outerWidth();
  97930. position.left = tableNode.offset().left;
  97931. position.theadTop = thead.offset().top;
  97932. position.tbodyTop = tbody.offset().top;
  97933. position.theadHeight = position.tbodyTop - position.theadTop;
  97934. if ( tfoot.length ) {
  97935. position.tfootTop = tfoot.offset().top;
  97936. position.tfootBottom = position.tfootTop + tfoot.outerHeight();
  97937. position.tfootHeight = position.tfootBottom - position.tfootTop;
  97938. }
  97939. else {
  97940. position.tfootTop = position.tbodyTop + tbody.outerHeight();
  97941. position.tfootBottom = position.tfootTop;
  97942. position.tfootHeight = position.tfootTop;
  97943. }
  97944. },
  97945. /**
  97946. * Mode calculation - determine what mode the fixed items should be placed
  97947. * into.
  97948. *
  97949. * @param {boolean} forceChange Force a redraw of the mode, even if already
  97950. * in that mode.
  97951. * @private
  97952. */
  97953. _scroll: function ( forceChange )
  97954. {
  97955. var windowTop = $(document).scrollTop();
  97956. var position = this.s.position;
  97957. var headerMode, footerMode;
  97958. if ( this.c.header ) {
  97959. if ( ! position.visible || windowTop <= position.theadTop - this.c.headerOffset ) {
  97960. headerMode = 'in-place';
  97961. }
  97962. else if ( windowTop <= position.tfootTop - position.theadHeight - this.c.headerOffset ) {
  97963. headerMode = 'in';
  97964. }
  97965. else {
  97966. headerMode = 'below';
  97967. }
  97968. if ( forceChange || headerMode !== this.s.headerMode ) {
  97969. this._modeChange( headerMode, 'header', forceChange );
  97970. }
  97971. }
  97972. if ( this.c.footer && this.dom.tfoot.length ) {
  97973. if ( ! position.visible || windowTop + position.windowHeight >= position.tfootBottom + this.c.footerOffset ) {
  97974. footerMode = 'in-place';
  97975. }
  97976. else if ( position.windowHeight + windowTop > position.tbodyTop + position.tfootHeight + this.c.footerOffset ) {
  97977. footerMode = 'in';
  97978. }
  97979. else {
  97980. footerMode = 'above';
  97981. }
  97982. if ( forceChange || footerMode !== this.s.footerMode ) {
  97983. this._modeChange( footerMode, 'footer', forceChange );
  97984. }
  97985. }
  97986. }
  97987. };
  97988. /**
  97989. * Version
  97990. * @type {String}
  97991. * @static
  97992. */
  97993. FixedHeader.version = "3.0.0";
  97994. /**
  97995. * Defaults
  97996. * @type {Object}
  97997. * @static
  97998. */
  97999. FixedHeader.defaults = {
  98000. header: true,
  98001. footer: false,
  98002. headerOffset: 0,
  98003. footerOffset: 0
  98004. };
  98005. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  98006. * DataTables interfaces
  98007. */
  98008. // Attach for constructor access
  98009. $.fn.dataTable.FixedHeader = FixedHeader;
  98010. $.fn.DataTable.FixedHeader = FixedHeader;
  98011. // DataTables creation - check if the FixedHeader option has been defined on the
  98012. // table and if so, initialise
  98013. $(document).on( 'init.dt.dtb', function (e, settings, json) {
  98014. if ( e.namespace !== 'dt' ) {
  98015. return;
  98016. }
  98017. var opts = settings.oInit.fixedHeader || DataTable.defaults.fixedHeader;
  98018. if ( opts && ! settings._buttons ) {
  98019. new FixedHeader( settings, opts );
  98020. }
  98021. } );
  98022. // DataTables API methods
  98023. DataTable.Api.register( 'fixedHeader()', function () {} );
  98024. DataTable.Api.register( 'fixedHeader.adjust()', function () {
  98025. return this.iterator( 'table', function ( ctx ) {
  98026. var fh = ctx._fixedHeader;
  98027. if ( fh ) {
  98028. fh.update();
  98029. }
  98030. } );
  98031. } );
  98032. return FixedHeader;
  98033. }; // /factory
  98034. // Define as an AMD module if possible
  98035. if ( typeof define === 'function' && define.amd ) {
  98036. define( ['jquery', 'datatables'], factory );
  98037. }
  98038. else if ( typeof exports === 'object' ) {
  98039. // Node/CommonJS
  98040. factory( require('jquery'), require('datatables') );
  98041. }
  98042. else if ( jQuery && !jQuery.fn.dataTable.FixedHeader ) {
  98043. // Otherwise simply initialise as normal, stopping multiple evaluation
  98044. factory( jQuery, jQuery.fn.dataTable );
  98045. }
  98046. })(window, document);
  98047. /*! KeyTable 2.0.0
  98048. * ©2009-2015 SpryMedia Ltd - datatables.net/license
  98049. */
  98050. /**
  98051. * @summary KeyTable
  98052. * @description Spreadsheet like keyboard navigation for DataTables
  98053. * @version 2.0.0
  98054. * @file dataTables.keyTable.js
  98055. * @author SpryMedia Ltd (www.sprymedia.co.uk)
  98056. * @contact www.sprymedia.co.uk/contact
  98057. * @copyright Copyright 2009-2015 SpryMedia Ltd.
  98058. *
  98059. * This source file is free software, available under the following license:
  98060. * MIT license - http://datatables.net/license/mit
  98061. *
  98062. * This source file is distributed in the hope that it will be useful, but
  98063. * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  98064. * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
  98065. *
  98066. * For details please refer to: http://www.datatables.net
  98067. */
  98068. (function(window, document, undefined) {
  98069. var factory = function( $, DataTable ) {
  98070. "use strict";
  98071. var KeyTable = function ( dt, opts ) {
  98072. // Sanity check that we are using DataTables 1.10 or newer
  98073. if ( ! DataTable.versionCheck || ! DataTable.versionCheck( '1.10.8' ) ) {
  98074. throw 'KeyTable requires DataTables 1.10.8 or newer';
  98075. }
  98076. // User and defaults configuration object
  98077. this.c = $.extend( true, {},
  98078. DataTable.defaults.keyTable,
  98079. KeyTable.defaults,
  98080. opts
  98081. );
  98082. // Internal settings
  98083. this.s = {
  98084. /** @type {DataTable.Api} DataTables' API instance */
  98085. dt: new DataTable.Api( dt ),
  98086. enable: true
  98087. };
  98088. // DOM items
  98089. this.dom = {
  98090. };
  98091. // Check if row reorder has already been initialised on this table
  98092. var settings = this.s.dt.settings()[0];
  98093. var exisiting = settings.keytable;
  98094. if ( exisiting ) {
  98095. return exisiting;
  98096. }
  98097. settings.keytable = this;
  98098. this._constructor();
  98099. };
  98100. KeyTable.prototype = {
  98101. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  98102. * API methods for DataTables API interface
  98103. */
  98104. /**
  98105. * Blur the table's cell focus
  98106. */
  98107. blur: function ()
  98108. {
  98109. this._blur();
  98110. },
  98111. /**
  98112. * Enable cell focus for the table
  98113. *
  98114. * @param {string} state Can be `true`, `false` or `-string navigation-only`
  98115. */
  98116. enable: function ( state )
  98117. {
  98118. this.s.enable = state;
  98119. },
  98120. /**
  98121. * Focus on a cell
  98122. * @param {integer} row Row index
  98123. * @param {integer} column Column index
  98124. */
  98125. focus: function ( row, column )
  98126. {
  98127. this._focus( this.s.dt.cell( row, column ) );
  98128. },
  98129. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  98130. * Constructor
  98131. */
  98132. /**
  98133. * Initialise the KeyTable instance
  98134. *
  98135. * @private
  98136. */
  98137. _constructor: function ()
  98138. {
  98139. this._tabInput();
  98140. var that = this;
  98141. var dt = this.s.dt;
  98142. var table = $( dt.table().node() );
  98143. // Need to be able to calculate the cell positions relative to the table
  98144. if ( table.css('position') === 'static' ) {
  98145. table.css( 'position', 'relative' );
  98146. }
  98147. // Click to focus
  98148. $( dt.table().body() ).on( 'click.keyTable', 'th, td', function () {
  98149. if ( that.s.enable === false ) {
  98150. return;
  98151. }
  98152. var cell = dt.cell( this );
  98153. if ( ! cell.any() ) {
  98154. return;
  98155. }
  98156. that._focus( cell );
  98157. } );
  98158. // Key events
  98159. $( document.body ).on( 'keydown.keyTable', function (e) {
  98160. that._key( e );
  98161. } );
  98162. // Click blur
  98163. if ( this.c.blurable ) {
  98164. $( document.body ).on( 'click.keyTable', function ( e ) {
  98165. // Click on the search input will blur focus
  98166. if ( $(e.target).parents( '.dataTables_filter' ).length ) {
  98167. that._blur();
  98168. }
  98169. // If the click was inside the DataTables container, don't blur
  98170. if ( $(e.target).parents().filter( dt.table().container() ).length ) {
  98171. return;
  98172. }
  98173. // Don't blur in Editor form
  98174. if ( $(e.target).parents('div.DTE').length ) {
  98175. return;
  98176. }
  98177. that._blur();
  98178. } );
  98179. }
  98180. if ( this.c.editor ) {
  98181. dt.on( 'key.kt', function ( e, dt, key, cell, orig ) {
  98182. that._editor( key, orig );
  98183. } );
  98184. }
  98185. // Stave saving
  98186. if ( dt.settings()[0].oFeatures.bStateSave ) {
  98187. dt.on( 'stateSaveParams.keyTable', function (e, s, d) {
  98188. d.keyTable = that.s.lastFocus ?
  98189. that.s.lastFocus.index() :
  98190. null;
  98191. } );
  98192. }
  98193. dt.on( 'destroy.keyTable', function () {
  98194. dt.off( '.keyTable' );
  98195. $( dt.table().body() ).off( 'click.keyTable', 'th, td' );
  98196. $( document.body )
  98197. .off( 'keydown.keyTable' )
  98198. .off( 'click.keyTable' );
  98199. } );
  98200. // Initial focus comes from state or options
  98201. var state = dt.state.loaded();
  98202. if ( state && state.keyTable ) {
  98203. dt.cell( state.keyTable ).focus();
  98204. }
  98205. else if ( this.c.focus ) {
  98206. dt.cell( this.c.focus ).focus();
  98207. }
  98208. },
  98209. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  98210. * Private methods
  98211. */
  98212. /**
  98213. * Blur the control
  98214. *
  98215. * @private
  98216. */
  98217. _blur: function ()
  98218. {
  98219. if ( ! this.s.enable || ! this.s.lastFocus ) {
  98220. return;
  98221. }
  98222. var cell = this.s.lastFocus;
  98223. $( cell.node() ).removeClass( this.c.className );
  98224. this.s.lastFocus = null;
  98225. this._emitEvent( 'key-blur', [ this.s.dt, cell ] );
  98226. },
  98227. /**
  98228. * Get an array of the column indexes that KeyTable can operate on. This
  98229. * is a merge of the user supplied columns and the visible columns.
  98230. *
  98231. * @private
  98232. */
  98233. _columns: function ()
  98234. {
  98235. var dt = this.s.dt;
  98236. var user = dt.columns( this.c.columns ).indexes();
  98237. var out = [];
  98238. dt.columns( ':visible' ).every( function (i) {
  98239. if ( user.indexOf( i ) !== -1 ) {
  98240. out.push( i );
  98241. }
  98242. } );
  98243. return out;
  98244. },
  98245. /**
  98246. * Perform excel like navigation for Editor by triggering an edit on key
  98247. * press
  98248. *
  98249. * @param {integer} key Key code for the pressed key
  98250. * @param {object} orig Original event
  98251. * @private
  98252. */
  98253. _editor: function ( key, orig )
  98254. {
  98255. var dt = this.s.dt;
  98256. var editor = this.c.editor;
  98257. orig.stopPropagation();
  98258. editor.inline( this.s.lastFocus.index() );
  98259. // Excel style - select all text
  98260. var input = $('div.DTE input');
  98261. if ( input.length ) {
  98262. input[0].select();
  98263. }
  98264. // Reduce the keys the Keys listens for
  98265. dt.keys.enable( 'navigation-only' );
  98266. // On blur of the navigation submit
  98267. dt.one( 'key-blur.editor', function () {
  98268. if ( editor.displayed() ) {
  98269. editor.submit();
  98270. }
  98271. } );
  98272. // Restore full key navigation on close
  98273. editor.one( 'close', function () {
  98274. dt.keys.enable( true );
  98275. dt.off( 'key-blur.editor' );
  98276. } );
  98277. },
  98278. /**
  98279. * Emit an event on the DataTable for listeners
  98280. *
  98281. * @param {string} name Event name
  98282. * @param {array} args Event arguments
  98283. * @private
  98284. */
  98285. _emitEvent: function ( name, args )
  98286. {
  98287. this.s.dt.iterator( 'table', function ( ctx, i ) {
  98288. $(ctx.nTable).triggerHandler( name, args );
  98289. } );
  98290. },
  98291. /**
  98292. * Focus on a particular cell, shifting the table's paging if required
  98293. *
  98294. * @param {DataTables.Api|integer} row Can be given as an API instance that
  98295. * contains the cell to focus or as an integer. As the latter it is the
  98296. * visible row index - NOT the data index
  98297. * @param {integer} [column] Not required if a cell is given as the first
  98298. * parameter. Otherwise this is the column data index for the cell to
  98299. * focus on
  98300. * @private
  98301. */
  98302. _focus: function ( row, column )
  98303. {
  98304. var that = this;
  98305. var dt = this.s.dt;
  98306. var pageInfo = dt.page.info();
  98307. var lastFocus = this.s.lastFocus;
  98308. if ( ! this.s.enable ) {
  98309. return;
  98310. }
  98311. if ( typeof row !== 'number' ) {
  98312. // Convert the cell to a row and column
  98313. var index = row.index();
  98314. column = index.column;
  98315. row = dt
  98316. .rows( { filter: 'applied', order: 'applied' } )
  98317. .indexes()
  98318. .indexOf( index.row );
  98319. // For server-side processing normalise the row by adding the start
  98320. // point, since `rows().indexes()` includes only rows that are
  98321. // available at the client-side
  98322. if ( pageInfo.serverSide ) {
  98323. row += pageInfo.start;
  98324. }
  98325. }
  98326. // Is the row on the current page? If not, we need to redraw to show the
  98327. // page
  98328. if ( row < pageInfo.start || row >= pageInfo.start+pageInfo.length ) {
  98329. dt
  98330. .one( 'draw', function () {
  98331. that._focus( row, column );
  98332. } )
  98333. .page( Math.floor( row / pageInfo.length ) )
  98334. .draw( false );
  98335. return;
  98336. }
  98337. // In the available columns?
  98338. if ( $.inArray( column, this._columns() ) === -1 ) {
  98339. return;
  98340. }
  98341. // De-normalise the server-side processing row, so we select the row
  98342. // in its displayed position
  98343. if ( pageInfo.serverSide ) {
  98344. row -= pageInfo.start;
  98345. }
  98346. var cell = dt.cell( ':eq('+row+')', column );
  98347. if ( lastFocus ) {
  98348. // Don't trigger a refocus on the same cell
  98349. if ( lastFocus.node() === cell.node() ) {
  98350. return;
  98351. }
  98352. // Otherwise blur the old focus
  98353. this._blur();
  98354. }
  98355. var node = $( cell.node() );
  98356. node.addClass( this.c.className );
  98357. // Shift viewpoint and page to make cell visible
  98358. this._scroll( $(window), $(document.body), node, 'offset' );
  98359. var bodyParent = dt.table().body().parentNode;
  98360. if ( bodyParent !== dt.table().header().parentNode ) {
  98361. var parent = $(bodyParent.parentNode);
  98362. this._scroll( parent, parent, node, 'position' );
  98363. }
  98364. // Event and finish
  98365. this.s.lastFocus = cell;
  98366. this._emitEvent( 'key-focus', [ this.s.dt, cell ] );
  98367. dt.state.save();
  98368. },
  98369. /**
  98370. * Handle key press
  98371. *
  98372. * @param {object} e Event
  98373. * @private
  98374. */
  98375. _key: function ( e )
  98376. {
  98377. if ( ! this.s.enable ) {
  98378. return;
  98379. }
  98380. if ( e.keyCode === 0 || e.ctrlKey || e.metaKey || e.altKey ) {
  98381. return;
  98382. }
  98383. // If not focused, then there is no key action to take
  98384. var cell = this.s.lastFocus;
  98385. if ( ! cell ) {
  98386. return;
  98387. }
  98388. var that = this;
  98389. var dt = this.s.dt;
  98390. // If we are not listening for this key, do nothing
  98391. if ( this.c.keys && $.inArray( e.keyCode, this.c.keys ) === -1 ) {
  98392. return;
  98393. }
  98394. switch( e.keyCode ) {
  98395. case 9: // tab
  98396. this._shift( e, e.shiftKey ? 'left' : 'right', true );
  98397. break;
  98398. case 27: // esc
  98399. if ( this.s.blurable && this.s.enable === true ) {
  98400. this._blur();
  98401. }
  98402. break;
  98403. case 33: // page up (previous page)
  98404. case 34: // page down (next page)
  98405. e.preventDefault();
  98406. var index = dt.cells( {page: 'current'} ).nodes().indexOf( cell.node() );
  98407. dt
  98408. .one( 'draw', function () {
  98409. var nodes = dt.cells( {page: 'current'} ).nodes();
  98410. that._focus( dt.cell( index < nodes.length ?
  98411. nodes[ index ] :
  98412. nodes[ nodes.length-1 ]
  98413. ) );
  98414. } )
  98415. .page( e.keyCode === 33 ? 'previous' : 'next' )
  98416. .draw( false );
  98417. break;
  98418. case 35: // end (end of current page)
  98419. case 36: // home (start of current page)
  98420. e.preventDefault();
  98421. var indexes = dt.cells( {page: 'current'} ).indexes();
  98422. this._focus( dt.cell(
  98423. indexes[ e.keyCode === 35 ? indexes.length-1 : 0 ]
  98424. ) );
  98425. break;
  98426. case 37: // left arrow
  98427. this._shift( e, 'left' );
  98428. break;
  98429. case 38: // up arrow
  98430. this._shift( e, 'up' );
  98431. break;
  98432. case 39: // right arrow
  98433. this._shift( e, 'right' );
  98434. break;
  98435. case 40: // down arrow
  98436. this._shift( e, 'down' );
  98437. break;
  98438. default:
  98439. // Everything else - pass through only when fully enabled
  98440. if ( this.s.enable === true ) {
  98441. this._emitEvent( 'key', [ dt, e.keyCode, this.s.lastFocus, e ] );
  98442. }
  98443. break;
  98444. }
  98445. },
  98446. /**
  98447. * Scroll a container to make a cell visible in it. This can be used for
  98448. * both DataTables scrolling and native window scrolling.
  98449. *
  98450. * @param {jQuery} container Scrolling container
  98451. * @param {jQuery} scroller Item being scrolled
  98452. * @param {jQuery} cell Cell in the scroller
  98453. * @param {string} posOff `position` or `offset` - which to use for the
  98454. * calculation. `offset` for the document, otherwise `position`
  98455. * @private
  98456. */
  98457. _scroll: function ( container, scroller, cell, posOff )
  98458. {
  98459. var offset = cell[posOff]();
  98460. var height = cell.outerHeight();
  98461. var width = cell.outerWidth();
  98462. var scrollTop = scroller.scrollTop();
  98463. var scrollLeft = scroller.scrollLeft();
  98464. var containerHeight = container.height();
  98465. var containerWidth = container.width();
  98466. // Top correction
  98467. if ( offset.top < scrollTop ) {
  98468. scroller.scrollTop( offset.top );
  98469. }
  98470. // Left correction
  98471. if ( offset.left < scrollLeft ) {
  98472. scroller.scrollLeft( offset.left );
  98473. }
  98474. // Bottom correction
  98475. if ( offset.top + height > scrollTop + containerHeight ) {
  98476. scroller.scrollTop( offset.top + height - containerHeight );
  98477. }
  98478. // Right correction
  98479. if ( offset.left + width > scrollLeft + containerWidth ) {
  98480. scroller.scrollLeft( offset.left + width - containerWidth );
  98481. }
  98482. },
  98483. /**
  98484. * Calculate a single offset movement in the table - up, down, left and
  98485. * right and then perform the focus if possible
  98486. *
  98487. * @param {object} e Event object
  98488. * @param {string} direction Movement direction
  98489. * @param {boolean} keyBlurable `true` if the key press can result in the
  98490. * table being blurred. This is so arrow keys won't blur the table, but
  98491. * tab will.
  98492. * @private
  98493. */
  98494. _shift: function ( e, direction, keyBlurable )
  98495. {
  98496. var that = this;
  98497. var dt = this.s.dt;
  98498. var pageInfo = dt.page.info();
  98499. var rows = pageInfo.recordsDisplay;
  98500. var currentCell = this.s.lastFocus;
  98501. var columns = this._columns();
  98502. if ( ! currentCell ) {
  98503. return;
  98504. }
  98505. var currRow = dt
  98506. .rows( { filter: 'applied', order: 'applied' } )
  98507. .indexes()
  98508. .indexOf( currentCell.index().row );
  98509. // When server-side processing, `rows().indexes()` only gives the rows
  98510. // that are available at the client-side, so we need to normalise the
  98511. // row's current position by the display start point
  98512. if ( pageInfo.serverSide ) {
  98513. currRow += pageInfo.start;
  98514. }
  98515. var currCol = dt
  98516. .columns( columns )
  98517. .indexes()
  98518. .indexOf( currentCell.index().column );
  98519. var
  98520. row = currRow,
  98521. column = columns[ currCol ]; // row is the display, column is an index
  98522. if ( direction === 'right' ) {
  98523. if ( currCol >= columns.length - 1 ) {
  98524. row++;
  98525. column = columns[0];
  98526. }
  98527. else {
  98528. column = columns[ currCol+1 ];
  98529. }
  98530. }
  98531. else if ( direction === 'left' ) {
  98532. if ( currCol === 0 ) {
  98533. row--;
  98534. column = columns[ columns.length - 1 ];
  98535. }
  98536. else {
  98537. column = columns[ currCol-1 ];
  98538. }
  98539. }
  98540. else if ( direction === 'up' ) {
  98541. row--;
  98542. }
  98543. else if ( direction === 'down' ) {
  98544. row++;
  98545. }
  98546. if ( row >= 0 && row < rows &&
  98547. column >= 0 && column <= columns.length
  98548. ) {
  98549. e.preventDefault();
  98550. this._focus( row, column );
  98551. }
  98552. else if ( ! keyBlurable || ! this.c.blurable ) {
  98553. // No new focus, but if the table isn't blurable, then don't loose
  98554. // focus
  98555. e.preventDefault();
  98556. }
  98557. else {
  98558. this._blur();
  98559. }
  98560. },
  98561. /**
  98562. * Create a hidden input element that can receive focus on behalf of the
  98563. * table
  98564. *
  98565. * @private
  98566. */
  98567. _tabInput: function ()
  98568. {
  98569. var that = this;
  98570. var dt = this.s.dt;
  98571. var tabIndex = this.c.tabIndex !== null ?
  98572. this.c.tabIndex :
  98573. dt.settings()[0].iTabIndex;
  98574. if ( tabIndex == -1 ) {
  98575. return;
  98576. }
  98577. var div = $('<div><input type="text" tabindex="'+tabIndex+'"/></div>')
  98578. .css( {
  98579. position: 'absolute',
  98580. height: 1,
  98581. width: 0,
  98582. overflow: 'hidden'
  98583. } )
  98584. .insertBefore( dt.table().node() );
  98585. div.children().on( 'focus', function () {
  98586. that._focus( dt.cell(':eq(0)', {page: 'current'}) );
  98587. } );
  98588. }
  98589. };
  98590. /**
  98591. * KeyTable default settings for initialisation
  98592. *
  98593. * @namespace
  98594. * @name KeyTable.defaults
  98595. * @static
  98596. */
  98597. KeyTable.defaults = {
  98598. /**
  98599. * Can focus be removed from the table
  98600. * @type {Boolean}
  98601. */
  98602. blurable: true,
  98603. /**
  98604. * Class to give to the focused cell
  98605. * @type {String}
  98606. */
  98607. className: 'focus',
  98608. /**
  98609. * Columns that can be focused. This is automatically merged with the
  98610. * visible columns as only visible columns can gain focus.
  98611. * @type {String}
  98612. */
  98613. columns: '', // all
  98614. /**
  98615. * Editor instance to automatically perform Excel like navigation
  98616. * @type {Editor}
  98617. */
  98618. editor: null,
  98619. /**
  98620. * Select a cell to automatically select on start up. `null` for no
  98621. * automatic selection
  98622. * @type {cell-selector}
  98623. */
  98624. focus: null,
  98625. /**
  98626. * Array of keys to listen for
  98627. * @type {null|array}
  98628. */
  98629. keys: null,
  98630. /**
  98631. * Tab index for where the table should sit in the document's tab flow
  98632. * @type {integer|null}
  98633. */
  98634. tabIndex: null
  98635. };
  98636. KeyTable.version = "2.0.0";
  98637. $.fn.dataTable.KeyTable = KeyTable;
  98638. $.fn.DataTable.KeyTable = KeyTable;
  98639. DataTable.Api.register( 'cell.blur()', function () {
  98640. return this.iterator( 'table', function (ctx) {
  98641. if ( ctx.keytable ) {
  98642. ctx.keytable.blur();
  98643. }
  98644. } );
  98645. } );
  98646. DataTable.Api.register( 'cell().focus()', function () {
  98647. return this.iterator( 'cell', function (ctx, row, column) {
  98648. if ( ctx.keytable ) {
  98649. ctx.keytable.focus( row, column );
  98650. }
  98651. } );
  98652. } );
  98653. DataTable.Api.register( 'keys.disable()', function () {
  98654. return this.iterator( 'table', function (ctx) {
  98655. if ( ctx.keytable ) {
  98656. ctx.keytable.enable( false );
  98657. }
  98658. } );
  98659. } );
  98660. DataTable.Api.register( 'keys.enable()', function ( opts ) {
  98661. return this.iterator( 'table', function (ctx) {
  98662. if ( ctx.keytable ) {
  98663. ctx.keytable.enable( opts === undefined ? true : opts );
  98664. }
  98665. } );
  98666. } );
  98667. // Attach a listener to the document which listens for DataTables initialisation
  98668. // events so we can automatically initialise
  98669. $(document).on( 'preInit.dt.dtk', function (e, settings, json) {
  98670. if ( e.namespace !== 'dt' ) {
  98671. return;
  98672. }
  98673. var init = settings.oInit.keys;
  98674. var defaults = DataTable.defaults.keys;
  98675. if ( init || defaults ) {
  98676. var opts = $.extend( {}, init, defaults );
  98677. if ( init !== false ) {
  98678. new KeyTable( settings, opts );
  98679. }
  98680. }
  98681. } );
  98682. return KeyTable;
  98683. }; // /factory
  98684. // Define as an AMD module if possible
  98685. if ( typeof define === 'function' && define.amd ) {
  98686. define( ['jquery', 'datatables'], factory );
  98687. }
  98688. else if ( typeof exports === 'object' ) {
  98689. // Node/CommonJS
  98690. factory( require('jquery'), require('datatables') );
  98691. }
  98692. else if ( jQuery && !jQuery.fn.dataTable.KeyTable ) {
  98693. // Otherwise simply initialise as normal, stopping multiple evaluation
  98694. factory( jQuery, jQuery.fn.dataTable );
  98695. }
  98696. })(window, document);
  98697. /*! Responsive 1.0.7
  98698. * 2014-2015 SpryMedia Ltd - datatables.net/license
  98699. */
  98700. /**
  98701. * @summary Responsive
  98702. * @description Responsive tables plug-in for DataTables
  98703. * @version 1.0.7
  98704. * @file dataTables.responsive.js
  98705. * @author SpryMedia Ltd (www.sprymedia.co.uk)
  98706. * @contact www.sprymedia.co.uk/contact
  98707. * @copyright Copyright 2014-2015 SpryMedia Ltd.
  98708. *
  98709. * This source file is free software, available under the following license:
  98710. * MIT license - http://datatables.net/license/mit
  98711. *
  98712. * This source file is distributed in the hope that it will be useful, but
  98713. * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  98714. * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
  98715. *
  98716. * For details please refer to: http://www.datatables.net
  98717. */
  98718. (function(window, document, undefined) {
  98719. var factory = function( $, DataTable ) {
  98720. "use strict";
  98721. /**
  98722. * Responsive is a plug-in for the DataTables library that makes use of
  98723. * DataTables' ability to change the visibility of columns, changing the
  98724. * visibility of columns so the displayed columns fit into the table container.
  98725. * The end result is that complex tables will be dynamically adjusted to fit
  98726. * into the viewport, be it on a desktop, tablet or mobile browser.
  98727. *
  98728. * Responsive for DataTables has two modes of operation, which can used
  98729. * individually or combined:
  98730. *
  98731. * * Class name based control - columns assigned class names that match the
  98732. * breakpoint logic can be shown / hidden as required for each breakpoint.
  98733. * * Automatic control - columns are automatically hidden when there is no
  98734. * room left to display them. Columns removed from the right.
  98735. *
  98736. * In additional to column visibility control, Responsive also has built into
  98737. * options to use DataTables' child row display to show / hide the information
  98738. * from the table that has been hidden. There are also two modes of operation
  98739. * for this child row display:
  98740. *
  98741. * * Inline - when the control element that the user can use to show / hide
  98742. * child rows is displayed inside the first column of the table.
  98743. * * Column - where a whole column is dedicated to be the show / hide control.
  98744. *
  98745. * Initialisation of Responsive is performed by:
  98746. *
  98747. * * Adding the class `responsive` or `dt-responsive` to the table. In this case
  98748. * Responsive will automatically be initialised with the default configuration
  98749. * options when the DataTable is created.
  98750. * * Using the `responsive` option in the DataTables configuration options. This
  98751. * can also be used to specify the configuration options, or simply set to
  98752. * `true` to use the defaults.
  98753. *
  98754. * @class
  98755. * @param {object} settings DataTables settings object for the host table
  98756. * @param {object} [opts] Configuration options
  98757. * @requires jQuery 1.7+
  98758. * @requires DataTables 1.10.1+
  98759. *
  98760. * @example
  98761. * $('#example').DataTable( {
  98762. * responsive: true
  98763. * } );
  98764. * } );
  98765. */
  98766. var Responsive = function ( settings, opts ) {
  98767. // Sanity check that we are using DataTables 1.10 or newer
  98768. if ( ! DataTable.versionCheck || ! DataTable.versionCheck( '1.10.1' ) ) {
  98769. throw 'DataTables Responsive requires DataTables 1.10.1 or newer';
  98770. }
  98771. this.s = {
  98772. dt: new DataTable.Api( settings ),
  98773. columns: []
  98774. };
  98775. // Check if responsive has already been initialised on this table
  98776. if ( this.s.dt.settings()[0].responsive ) {
  98777. return;
  98778. }
  98779. // details is an object, but for simplicity the user can give it as a string
  98780. if ( opts && typeof opts.details === 'string' ) {
  98781. opts.details = { type: opts.details };
  98782. }
  98783. this.c = $.extend( true, {}, Responsive.defaults, DataTable.defaults.responsive, opts );
  98784. settings.responsive = this;
  98785. this._constructor();
  98786. };
  98787. Responsive.prototype = {
  98788. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  98789. * Constructor
  98790. */
  98791. /**
  98792. * Initialise the Responsive instance
  98793. *
  98794. * @private
  98795. */
  98796. _constructor: function ()
  98797. {
  98798. var that = this;
  98799. var dt = this.s.dt;
  98800. dt.settings()[0]._responsive = this;
  98801. // Use DataTables' private throttle function to avoid processor thrashing
  98802. $(window).on( 'resize.dtr orientationchange.dtr', dt.settings()[0].oApi._fnThrottle( function () {
  98803. that._resize();
  98804. } ) );
  98805. // Destroy event handler
  98806. dt.on( 'destroy.dtr', function () {
  98807. $(window).off( 'resize.dtr orientationchange.dtr draw.dtr' );
  98808. } );
  98809. // Reorder the breakpoints array here in case they have been added out
  98810. // of order
  98811. this.c.breakpoints.sort( function (a, b) {
  98812. return a.width < b.width ? 1 :
  98813. a.width > b.width ? -1 : 0;
  98814. } );
  98815. // Determine which columns are already hidden, and should therefore
  98816. // remain hidden. todo - should this be done? See thread 22677
  98817. //
  98818. // this.s.alwaysHidden = dt.columns(':hidden').indexes();
  98819. this._classLogic();
  98820. this._resizeAuto();
  98821. // Details handler
  98822. var details = this.c.details;
  98823. if ( details.type ) {
  98824. that._detailsInit();
  98825. this._detailsVis();
  98826. dt.on( 'column-visibility.dtr', function () {
  98827. that._detailsVis();
  98828. } );
  98829. // Redraw the details box on each draw. This is used until
  98830. // DataTables implements a native `updated` event for rows
  98831. dt.on( 'draw.dtr', function () {
  98832. dt.rows( {page: 'current'} ).iterator( 'row', function ( settings, idx ) {
  98833. var row = dt.row( idx );
  98834. if ( row.child.isShown() ) {
  98835. var info = that.c.details.renderer( dt, idx );
  98836. row.child( info, 'child' ).show();
  98837. }
  98838. } );
  98839. } );
  98840. $(dt.table().node()).addClass( 'dtr-'+details.type );
  98841. }
  98842. // First pass - draw the table for the current viewport size
  98843. this._resize();
  98844. },
  98845. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  98846. * Private methods
  98847. */
  98848. /**
  98849. * Calculate the visibility for the columns in a table for a given
  98850. * breakpoint. The result is pre-determined based on the class logic if
  98851. * class names are used to control all columns, but the width of the table
  98852. * is also used if there are columns which are to be automatically shown
  98853. * and hidden.
  98854. *
  98855. * @param {string} breakpoint Breakpoint name to use for the calculation
  98856. * @return {array} Array of boolean values initiating the visibility of each
  98857. * column.
  98858. * @private
  98859. */
  98860. _columnsVisiblity: function ( breakpoint )
  98861. {
  98862. var dt = this.s.dt;
  98863. var columns = this.s.columns;
  98864. var i, ien;
  98865. // Class logic - determine which columns are in this breakpoint based
  98866. // on the classes. If no class control (i.e. `auto`) then `-` is used
  98867. // to indicate this to the rest of the function
  98868. var display = $.map( columns, function ( col ) {
  98869. return col.auto && col.minWidth === null ?
  98870. false :
  98871. col.auto === true ?
  98872. '-' :
  98873. $.inArray( breakpoint, col.includeIn ) !== -1;
  98874. } );
  98875. // Auto column control - first pass: how much width is taken by the
  98876. // ones that must be included from the non-auto columns
  98877. var requiredWidth = 0;
  98878. for ( i=0, ien=display.length ; i<ien ; i++ ) {
  98879. if ( display[i] === true ) {
  98880. requiredWidth += columns[i].minWidth;
  98881. }
  98882. }
  98883. // Second pass, use up any remaining width for other columns. For
  98884. // scrolling tables we need to subtract the width of the scrollbar. It
  98885. // may not be requires which makes this sub-optimal, but it would
  98886. // require another full redraw to make complete use of those extra few
  98887. // pixels
  98888. var scrolling = dt.settings()[0].oScroll;
  98889. var bar = scrolling.sY || scrolling.sX ? scrolling.iBarWidth : 0;
  98890. var widthAvailable = dt.table().container().offsetWidth - bar;
  98891. var usedWidth = widthAvailable - requiredWidth;
  98892. // Control column needs to always be included. This makes it sub-
  98893. // optimal in terms of using the available with, but to stop layout
  98894. // thrashing or overflow. Also we need to account for the control column
  98895. // width first so we know how much width is available for the other
  98896. // columns, since the control column might not be the first one shown
  98897. for ( i=0, ien=display.length ; i<ien ; i++ ) {
  98898. if ( columns[i].control ) {
  98899. usedWidth -= columns[i].minWidth;
  98900. }
  98901. }
  98902. // Allow columns to be shown (counting from the left) until we run out
  98903. // of room
  98904. var empty = false;
  98905. for ( i=0, ien=display.length ; i<ien ; i++ ) {
  98906. if ( display[i] === '-' && ! columns[i].control ) {
  98907. // Once we've found a column that won't fit we don't let any
  98908. // others display either, or columns might disappear in the
  98909. // middle of the table
  98910. if ( empty || usedWidth - columns[i].minWidth < 0 ) {
  98911. empty = true;
  98912. display[i] = false;
  98913. }
  98914. else {
  98915. display[i] = true;
  98916. }
  98917. usedWidth -= columns[i].minWidth;
  98918. }
  98919. }
  98920. // Determine if the 'control' column should be shown (if there is one).
  98921. // This is the case when there is a hidden column (that is not the
  98922. // control column). The two loops look inefficient here, but they are
  98923. // trivial and will fly through. We need to know the outcome from the
  98924. // first , before the action in the second can be taken
  98925. var showControl = false;
  98926. for ( i=0, ien=columns.length ; i<ien ; i++ ) {
  98927. if ( ! columns[i].control && ! columns[i].never && ! display[i] ) {
  98928. showControl = true;
  98929. break;
  98930. }
  98931. }
  98932. for ( i=0, ien=columns.length ; i<ien ; i++ ) {
  98933. if ( columns[i].control ) {
  98934. display[i] = showControl;
  98935. }
  98936. }
  98937. // Finally we need to make sure that there is at least one column that
  98938. // is visible
  98939. if ( $.inArray( true, display ) === -1 ) {
  98940. display[0] = true;
  98941. }
  98942. return display;
  98943. },
  98944. /**
  98945. * Create the internal `columns` array with information about the columns
  98946. * for the table. This includes determining which breakpoints the column
  98947. * will appear in, based upon class names in the column, which makes up the
  98948. * vast majority of this method.
  98949. *
  98950. * @private
  98951. */
  98952. _classLogic: function ()
  98953. {
  98954. var that = this;
  98955. var calc = {};
  98956. var breakpoints = this.c.breakpoints;
  98957. var columns = this.s.dt.columns().eq(0).map( function (i) {
  98958. var className = this.column(i).header().className;
  98959. return {
  98960. className: className,
  98961. includeIn: [],
  98962. auto: false,
  98963. control: false,
  98964. never: className.match(/\bnever\b/) ? true : false
  98965. };
  98966. } );
  98967. // Simply add a breakpoint to `includeIn` array, ensuring that there are
  98968. // no duplicates
  98969. var add = function ( colIdx, name ) {
  98970. var includeIn = columns[ colIdx ].includeIn;
  98971. if ( $.inArray( name, includeIn ) === -1 ) {
  98972. includeIn.push( name );
  98973. }
  98974. };
  98975. var column = function ( colIdx, name, operator, matched ) {
  98976. var size, i, ien;
  98977. if ( ! operator ) {
  98978. columns[ colIdx ].includeIn.push( name );
  98979. }
  98980. else if ( operator === 'max-' ) {
  98981. // Add this breakpoint and all smaller
  98982. size = that._find( name ).width;
  98983. for ( i=0, ien=breakpoints.length ; i<ien ; i++ ) {
  98984. if ( breakpoints[i].width <= size ) {
  98985. add( colIdx, breakpoints[i].name );
  98986. }
  98987. }
  98988. }
  98989. else if ( operator === 'min-' ) {
  98990. // Add this breakpoint and all larger
  98991. size = that._find( name ).width;
  98992. for ( i=0, ien=breakpoints.length ; i<ien ; i++ ) {
  98993. if ( breakpoints[i].width >= size ) {
  98994. add( colIdx, breakpoints[i].name );
  98995. }
  98996. }
  98997. }
  98998. else if ( operator === 'not-' ) {
  98999. // Add all but this breakpoint (xxx need extra information)
  99000. for ( i=0, ien=breakpoints.length ; i<ien ; i++ ) {
  99001. if ( breakpoints[i].name.indexOf( matched ) === -1 ) {
  99002. add( colIdx, breakpoints[i].name );
  99003. }
  99004. }
  99005. }
  99006. };
  99007. // Loop over each column and determine if it has a responsive control
  99008. // class
  99009. columns.each( function ( col, i ) {
  99010. var classNames = col.className.split(' ');
  99011. var hasClass = false;
  99012. // Split the class name up so multiple rules can be applied if needed
  99013. for ( var k=0, ken=classNames.length ; k<ken ; k++ ) {
  99014. var className = $.trim( classNames[k] );
  99015. if ( className === 'all' ) {
  99016. // Include in all
  99017. hasClass = true;
  99018. col.includeIn = $.map( breakpoints, function (a) {
  99019. return a.name;
  99020. } );
  99021. return;
  99022. }
  99023. else if ( className === 'none' || className === 'never' ) {
  99024. // Include in none (default) and no auto
  99025. hasClass = true;
  99026. return;
  99027. }
  99028. else if ( className === 'control' ) {
  99029. // Special column that is only visible, when one of the other
  99030. // columns is hidden. This is used for the details control
  99031. hasClass = true;
  99032. col.control = true;
  99033. return;
  99034. }
  99035. $.each( breakpoints, function ( j, breakpoint ) {
  99036. // Does this column have a class that matches this breakpoint?
  99037. var brokenPoint = breakpoint.name.split('-');
  99038. var re = new RegExp( '(min\\-|max\\-|not\\-)?('+brokenPoint[0]+')(\\-[_a-zA-Z0-9])?' );
  99039. var match = className.match( re );
  99040. if ( match ) {
  99041. hasClass = true;
  99042. if ( match[2] === brokenPoint[0] && match[3] === '-'+brokenPoint[1] ) {
  99043. // Class name matches breakpoint name fully
  99044. column( i, breakpoint.name, match[1], match[2]+match[3] );
  99045. }
  99046. else if ( match[2] === brokenPoint[0] && ! match[3] ) {
  99047. // Class name matched primary breakpoint name with no qualifier
  99048. column( i, breakpoint.name, match[1], match[2] );
  99049. }
  99050. }
  99051. } );
  99052. }
  99053. // If there was no control class, then automatic sizing is used
  99054. if ( ! hasClass ) {
  99055. col.auto = true;
  99056. }
  99057. } );
  99058. this.s.columns = columns;
  99059. },
  99060. /**
  99061. * Initialisation for the details handler
  99062. *
  99063. * @private
  99064. */
  99065. _detailsInit: function ()
  99066. {
  99067. var that = this;
  99068. var dt = this.s.dt;
  99069. var details = this.c.details;
  99070. // The inline type always uses the first child as the target
  99071. if ( details.type === 'inline' ) {
  99072. details.target = 'td:first-child';
  99073. }
  99074. // type.target can be a string jQuery selector or a column index
  99075. var target = details.target;
  99076. var selector = typeof target === 'string' ? target : 'td';
  99077. // Click handler to show / hide the details rows when they are available
  99078. $( dt.table().body() ).on( 'click', selector, function (e) {
  99079. // If the table is not collapsed (i.e. there is no hidden columns)
  99080. // then take no action
  99081. if ( ! $(dt.table().node()).hasClass('collapsed' ) ) {
  99082. return;
  99083. }
  99084. // Check that the row is actually a DataTable's controlled node
  99085. if ( ! dt.row( $(this).closest('tr') ).length ) {
  99086. return;
  99087. }
  99088. // For column index, we determine if we should act or not in the
  99089. // handler - otherwise it is already okay
  99090. if ( typeof target === 'number' ) {
  99091. var targetIdx = target < 0 ?
  99092. dt.columns().eq(0).length + target :
  99093. target;
  99094. if ( dt.cell( this ).index().column !== targetIdx ) {
  99095. return;
  99096. }
  99097. }
  99098. // $().closest() includes itself in its check
  99099. var row = dt.row( $(this).closest('tr') );
  99100. if ( row.child.isShown() ) {
  99101. row.child( false );
  99102. $( row.node() ).removeClass( 'parent' );
  99103. }
  99104. else {
  99105. var info = that.c.details.renderer( dt, row[0] );
  99106. row.child( info, 'child' ).show();
  99107. $( row.node() ).addClass( 'parent' );
  99108. }
  99109. } );
  99110. },
  99111. /**
  99112. * Update the child rows in the table whenever the column visibility changes
  99113. *
  99114. * @private
  99115. */
  99116. _detailsVis: function ()
  99117. {
  99118. var that = this;
  99119. var dt = this.s.dt;
  99120. // Find how many columns are hidden
  99121. var hiddenColumns = dt.columns().indexes().filter( function ( idx ) {
  99122. var col = dt.column( idx );
  99123. if ( col.visible() ) {
  99124. return null;
  99125. }
  99126. // Only counts as hidden if it doesn't have the `never` class
  99127. return $( col.header() ).hasClass( 'never' ) ? null : idx;
  99128. } );
  99129. var haveHidden = true;
  99130. if ( hiddenColumns.length === 0 || ( hiddenColumns.length === 1 && this.s.columns[ hiddenColumns[0] ].control ) ) {
  99131. haveHidden = false;
  99132. }
  99133. if ( haveHidden ) {
  99134. // Show all existing child rows
  99135. dt.rows( { page: 'current' } ).eq(0).each( function (idx) {
  99136. var row = dt.row( idx );
  99137. if ( row.child() ) {
  99138. var info = that.c.details.renderer( dt, row[0] );
  99139. // The renderer can return false to have no child row
  99140. if ( info === false ) {
  99141. row.child.hide();
  99142. }
  99143. else {
  99144. row.child( info, 'child' ).show();
  99145. }
  99146. }
  99147. } );
  99148. }
  99149. else {
  99150. // Hide all existing child rows
  99151. dt.rows( { page: 'current' } ).eq(0).each( function (idx) {
  99152. dt.row( idx ).child.hide();
  99153. } );
  99154. }
  99155. },
  99156. /**
  99157. * Find a breakpoint object from a name
  99158. * @param {string} name Breakpoint name to find
  99159. * @return {object} Breakpoint description object
  99160. */
  99161. _find: function ( name )
  99162. {
  99163. var breakpoints = this.c.breakpoints;
  99164. for ( var i=0, ien=breakpoints.length ; i<ien ; i++ ) {
  99165. if ( breakpoints[i].name === name ) {
  99166. return breakpoints[i];
  99167. }
  99168. }
  99169. },
  99170. /**
  99171. * Alter the table display for a resized viewport. This involves first
  99172. * determining what breakpoint the window currently is in, getting the
  99173. * column visibilities to apply and then setting them.
  99174. *
  99175. * @private
  99176. */
  99177. _resize: function ()
  99178. {
  99179. var dt = this.s.dt;
  99180. var width = $(window).width();
  99181. var breakpoints = this.c.breakpoints;
  99182. var breakpoint = breakpoints[0].name;
  99183. var columns = this.s.columns;
  99184. var i, ien;
  99185. // Determine what breakpoint we are currently at
  99186. for ( i=breakpoints.length-1 ; i>=0 ; i-- ) {
  99187. if ( width <= breakpoints[i].width ) {
  99188. breakpoint = breakpoints[i].name;
  99189. break;
  99190. }
  99191. }
  99192. // Show the columns for that break point
  99193. var columnsVis = this._columnsVisiblity( breakpoint );
  99194. // Set the class before the column visibility is changed so event
  99195. // listeners know what the state is. Need to determine if there are
  99196. // any columns that are not visible but can be shown
  99197. var collapsedClass = false;
  99198. for ( i=0, ien=columns.length ; i<ien ; i++ ) {
  99199. if ( columnsVis[i] === false && ! columns[i].never ) {
  99200. collapsedClass = true;
  99201. break;
  99202. }
  99203. }
  99204. $( dt.table().node() ).toggleClass('collapsed', collapsedClass );
  99205. dt.columns().eq(0).each( function ( colIdx, i ) {
  99206. dt.column( colIdx ).visible( columnsVis[i] );
  99207. } );
  99208. },
  99209. /**
  99210. * Determine the width of each column in the table so the auto column hiding
  99211. * has that information to work with. This method is never going to be 100%
  99212. * perfect since column widths can change slightly per page, but without
  99213. * seriously compromising performance this is quite effective.
  99214. *
  99215. * @private
  99216. */
  99217. _resizeAuto: function ()
  99218. {
  99219. var dt = this.s.dt;
  99220. var columns = this.s.columns;
  99221. // Are we allowed to do auto sizing?
  99222. if ( ! this.c.auto ) {
  99223. return;
  99224. }
  99225. // Are there any columns that actually need auto-sizing, or do they all
  99226. // have classes defined
  99227. if ( $.inArray( true, $.map( columns, function (c) { return c.auto; } ) ) === -1 ) {
  99228. return;
  99229. }
  99230. // Clone the table with the current data in it
  99231. var tableWidth = dt.table().node().offsetWidth;
  99232. var columnWidths = dt.columns;
  99233. var clonedTable = dt.table().node().cloneNode( false );
  99234. var clonedHeader = $( dt.table().header().cloneNode( false ) ).appendTo( clonedTable );
  99235. var clonedBody = $( dt.table().body().cloneNode( false ) ).appendTo( clonedTable );
  99236. $( dt.table().footer() ).clone( false ).appendTo( clonedTable );
  99237. // This is a bit slow, but we need to get a clone of each row that
  99238. // includes all columns. As such, try to do this as little as possible.
  99239. dt.rows( { page: 'current' } ).indexes().flatten().each( function ( idx ) {
  99240. var clone = dt.row( idx ).node().cloneNode( true );
  99241. if ( dt.columns( ':hidden' ).flatten().length ) {
  99242. $(clone).append( dt.cells( idx, ':hidden' ).nodes().to$().clone() );
  99243. }
  99244. $(clone).appendTo( clonedBody );
  99245. } );
  99246. var cells = dt.columns().header().to$().clone( false );
  99247. $('<tr/>')
  99248. .append( cells )
  99249. .appendTo( clonedHeader );
  99250. // In the inline case extra padding is applied to the first column to
  99251. // give space for the show / hide icon. We need to use this in the
  99252. // calculation
  99253. if ( this.c.details.type === 'inline' ) {
  99254. $(clonedTable).addClass( 'dtr-inline collapsed' );
  99255. }
  99256. var inserted = $('<div/>')
  99257. .css( {
  99258. width: 1,
  99259. height: 1,
  99260. overflow: 'hidden'
  99261. } )
  99262. .append( clonedTable );
  99263. // Remove columns which are not to be included
  99264. inserted.find('th.never, td.never').remove();
  99265. inserted.insertBefore( dt.table().node() );
  99266. // The cloned header now contains the smallest that each column can be
  99267. dt.columns().eq(0).each( function ( idx ) {
  99268. columns[idx].minWidth = cells[ idx ].offsetWidth || 0;
  99269. } );
  99270. inserted.remove();
  99271. }
  99272. };
  99273. /**
  99274. * List of default breakpoints. Each item in the array is an object with two
  99275. * properties:
  99276. *
  99277. * * `name` - the breakpoint name.
  99278. * * `width` - the breakpoint width
  99279. *
  99280. * @name Responsive.breakpoints
  99281. * @static
  99282. */
  99283. Responsive.breakpoints = [
  99284. { name: 'desktop', width: Infinity },
  99285. { name: 'tablet-l', width: 1024 },
  99286. { name: 'tablet-p', width: 768 },
  99287. { name: 'mobile-l', width: 480 },
  99288. { name: 'mobile-p', width: 320 }
  99289. ];
  99290. /**
  99291. * Responsive default settings for initialisation
  99292. *
  99293. * @namespace
  99294. * @name Responsive.defaults
  99295. * @static
  99296. */
  99297. Responsive.defaults = {
  99298. /**
  99299. * List of breakpoints for the instance. Note that this means that each
  99300. * instance can have its own breakpoints. Additionally, the breakpoints
  99301. * cannot be changed once an instance has been creased.
  99302. *
  99303. * @type {Array}
  99304. * @default Takes the value of `Responsive.breakpoints`
  99305. */
  99306. breakpoints: Responsive.breakpoints,
  99307. /**
  99308. * Enable / disable auto hiding calculations. It can help to increase
  99309. * performance slightly if you disable this option, but all columns would
  99310. * need to have breakpoint classes assigned to them
  99311. *
  99312. * @type {Boolean}
  99313. * @default `true`
  99314. */
  99315. auto: true,
  99316. /**
  99317. * Details control. If given as a string value, the `type` property of the
  99318. * default object is set to that value, and the defaults used for the rest
  99319. * of the object - this is for ease of implementation.
  99320. *
  99321. * The object consists of the following properties:
  99322. *
  99323. * * `renderer` - function that is called for display of the child row data.
  99324. * The default function will show the data from the hidden columns
  99325. * * `target` - Used as the selector for what objects to attach the child
  99326. * open / close to
  99327. * * `type` - `false` to disable the details display, `inline` or `column`
  99328. * for the two control types
  99329. *
  99330. * @type {Object|string}
  99331. */
  99332. details: {
  99333. renderer: function ( api, rowIdx ) {
  99334. var data = api.cells( rowIdx, ':hidden' ).eq(0).map( function ( cell ) {
  99335. var header = $( api.column( cell.column ).header() );
  99336. var idx = api.cell( cell ).index();
  99337. if ( header.hasClass( 'control' ) || header.hasClass( 'never' ) ) {
  99338. return '';
  99339. }
  99340. // Use a non-public DT API method to render the data for display
  99341. // This needs to be updated when DT adds a suitable method for
  99342. // this type of data retrieval
  99343. var dtPrivate = api.settings()[0];
  99344. var cellData = dtPrivate.oApi._fnGetCellData(
  99345. dtPrivate, idx.row, idx.column, 'display'
  99346. );
  99347. var title = header.text();
  99348. if ( title ) {
  99349. title = title + ':';
  99350. }
  99351. return '<li data-dtr-index="'+idx.column+'">'+
  99352. '<span class="dtr-title">'+
  99353. title+
  99354. '</span> '+
  99355. '<span class="dtr-data">'+
  99356. cellData+
  99357. '</span>'+
  99358. '</li>';
  99359. } ).toArray().join('');
  99360. return data ?
  99361. $('<ul data-dtr-index="'+rowIdx+'"/>').append( data ) :
  99362. false;
  99363. },
  99364. target: 0,
  99365. type: 'inline'
  99366. }
  99367. };
  99368. /*
  99369. * API
  99370. */
  99371. var Api = $.fn.dataTable.Api;
  99372. // Doesn't do anything - work around for a bug in DT... Not documented
  99373. Api.register( 'responsive()', function () {
  99374. return this;
  99375. } );
  99376. Api.register( 'responsive.index()', function ( li ) {
  99377. li = $(li);
  99378. return {
  99379. column: li.data('dtr-index'),
  99380. row: li.parent().data('dtr-index')
  99381. };
  99382. } );
  99383. Api.register( 'responsive.rebuild()', function () {
  99384. return this.iterator( 'table', function ( ctx ) {
  99385. if ( ctx._responsive ) {
  99386. ctx._responsive._classLogic();
  99387. }
  99388. } );
  99389. } );
  99390. Api.register( 'responsive.recalc()', function () {
  99391. return this.iterator( 'table', function ( ctx ) {
  99392. if ( ctx._responsive ) {
  99393. ctx._responsive._resizeAuto();
  99394. ctx._responsive._resize();
  99395. }
  99396. } );
  99397. } );
  99398. /**
  99399. * Version information
  99400. *
  99401. * @name Responsive.version
  99402. * @static
  99403. */
  99404. Responsive.version = '1.0.7';
  99405. $.fn.dataTable.Responsive = Responsive;
  99406. $.fn.DataTable.Responsive = Responsive;
  99407. // Attach a listener to the document which listens for DataTables initialisation
  99408. // events so we can automatically initialise
  99409. $(document).on( 'init.dt.dtr', function (e, settings, json) {
  99410. if ( e.namespace !== 'dt' ) {
  99411. return;
  99412. }
  99413. if ( $(settings.nTable).hasClass( 'responsive' ) ||
  99414. $(settings.nTable).hasClass( 'dt-responsive' ) ||
  99415. settings.oInit.responsive ||
  99416. DataTable.defaults.responsive
  99417. ) {
  99418. var init = settings.oInit.responsive;
  99419. if ( init !== false ) {
  99420. new Responsive( settings, $.isPlainObject( init ) ? init : {} );
  99421. }
  99422. }
  99423. } );
  99424. return Responsive;
  99425. }; // /factory
  99426. // Define as an AMD module if possible
  99427. if ( typeof define === 'function' && define.amd ) {
  99428. define( ['jquery', 'datatables'], factory );
  99429. }
  99430. else if ( typeof exports === 'object' ) {
  99431. // Node/CommonJS
  99432. factory( require('jquery'), require('datatables') );
  99433. }
  99434. else if ( jQuery && !jQuery.fn.dataTable.Responsive ) {
  99435. // Otherwise simply initialise as normal, stopping multiple evaluation
  99436. factory( jQuery, jQuery.fn.dataTable );
  99437. }
  99438. })(window, document);
  99439. /*! RowReorder 1.0.0
  99440. * 2015 SpryMedia Ltd - datatables.net/license
  99441. */
  99442. /**
  99443. * @summary RowReorder
  99444. * @description Row reordering extension for DataTables
  99445. * @version 1.0.0
  99446. * @file dataTables.rowReorder.js
  99447. * @author SpryMedia Ltd (www.sprymedia.co.uk)
  99448. * @contact www.sprymedia.co.uk/contact
  99449. * @copyright Copyright 2015 SpryMedia Ltd.
  99450. *
  99451. * This source file is free software, available under the following license:
  99452. * MIT license - http://datatables.net/license/mit
  99453. *
  99454. * This source file is distributed in the hope that it will be useful, but
  99455. * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  99456. * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
  99457. *
  99458. * For details please refer to: http://www.datatables.net
  99459. */
  99460. (function(window, document, undefined) {
  99461. var factory = function( $, DataTable ) {
  99462. "use strict";
  99463. /**
  99464. * RowReorder provides the ability in DataTables to click and drag rows to
  99465. * reorder them. When a row is dropped the data for the rows effected will be
  99466. * updated to reflect the change. Normally this data point should also be the
  99467. * column being sorted upon in the DataTable but this does not need to be the
  99468. * case. RowReorder implements a "data swap" method - so the rows being
  99469. * reordered take the value of the data point from the row that used to occupy
  99470. * the row's new position.
  99471. *
  99472. * Initialisation is done by either:
  99473. *
  99474. * * `rowReorder` parameter in the DataTable initialisation object
  99475. * * `new $.fn.dataTable.RowReorder( table, opts )` after DataTables
  99476. * initialisation.
  99477. *
  99478. * @class
  99479. * @param {object} settings DataTables settings object for the host table
  99480. * @param {object} [opts] Configuration options
  99481. * @requires jQuery 1.7+
  99482. * @requires DataTables 1.10.7+
  99483. */
  99484. var RowReorder = function ( dt, opts ) {
  99485. // Sanity check that we are using DataTables 1.10 or newer
  99486. if ( ! DataTable.versionCheck || ! DataTable.versionCheck( '1.10.8' ) ) {
  99487. throw 'DataTables RowReorder requires DataTables 1.10.8 or newer';
  99488. }
  99489. // User and defaults configuration object
  99490. this.c = $.extend( true, {},
  99491. DataTable.defaults.rowReorder,
  99492. RowReorder.defaults,
  99493. opts
  99494. );
  99495. // Internal settings
  99496. this.s = {
  99497. /** @type {integer} Scroll body top cache */
  99498. bodyTop: null,
  99499. /** @type {DataTable.Api} DataTables' API instance */
  99500. dt: new DataTable.Api( dt ),
  99501. /** @type {function} Data fetch function */
  99502. getDataFn: DataTable.ext.oApi._fnGetObjectDataFn( this.c.dataSrc ),
  99503. /** @type {array} Pixel positions for row insertion calculation */
  99504. middles: null,
  99505. /** @type {function} Data set function */
  99506. setDataFn: DataTable.ext.oApi._fnSetObjectDataFn( this.c.dataSrc ),
  99507. /** @type {Object} Mouse down information */
  99508. start: {
  99509. top: 0,
  99510. left: 0,
  99511. offsetTop: 0,
  99512. offsetLeft: 0,
  99513. nodes: []
  99514. },
  99515. /** @type {integer} Window height cached value */
  99516. windowHeight: 0
  99517. };
  99518. // DOM items
  99519. this.dom = {
  99520. /** @type {jQuery} Cloned row being moved around */
  99521. clone: null
  99522. };
  99523. // Check if row reorder has already been initialised on this table
  99524. var settings = this.s.dt.settings()[0];
  99525. var exisiting = settings.rowreorder;
  99526. if ( exisiting ) {
  99527. return exisiting;
  99528. }
  99529. settings.rowreorder = this;
  99530. this._constructor();
  99531. };
  99532. RowReorder.prototype = {
  99533. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  99534. * Constructor
  99535. */
  99536. /**
  99537. * Initialise the RowReorder instance
  99538. *
  99539. * @private
  99540. */
  99541. _constructor: function ()
  99542. {
  99543. var that = this;
  99544. var dt = this.s.dt;
  99545. var table = $( dt.table().node() );
  99546. // Need to be able to calculate the row positions relative to the table
  99547. if ( table.css('position') === 'static' ) {
  99548. table.css( 'position', 'relative' );
  99549. }
  99550. // listen for mouse down on the target column - we have to implement
  99551. // this rather than using HTML5 drag and drop as drag and drop doesn't
  99552. // appear to work on table rows at this time. Also mobile browsers are
  99553. // not supported
  99554. $( table ).on( 'mousedown.rowReorder touchstart.rowReorder', this.c.selector, function (e) {
  99555. var tr = $(this).closest('tr');
  99556. // Double check that it is a DataTable row
  99557. if ( dt.row( tr ).any() ) {
  99558. that._mouseDown( e, tr );
  99559. return false;
  99560. }
  99561. } );
  99562. dt.on( 'destroy', function () {
  99563. table.off( 'mousedown.rowReorder' );
  99564. } );
  99565. },
  99566. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  99567. * Private methods
  99568. */
  99569. /**
  99570. * Cache the measurements that RowReorder needs in the mouse move handler
  99571. * to attempt to speed things up, rather than reading from the DOM.
  99572. *
  99573. * @private
  99574. */
  99575. _cachePositions: function ()
  99576. {
  99577. var dt = this.s.dt;
  99578. // Frustratingly, if we add `position:relative` to the tbody, the
  99579. // position is still relatively to the parent. So we need to adjust
  99580. // for that
  99581. var headerHeight = $( dt.table().node() ).find('thead').outerHeight();
  99582. // Need to pass the nodes through jQuery to get them in document order,
  99583. // not what DataTables thinks it is, since we have been altering the
  99584. // order
  99585. var nodes = $.unique( dt.rows( { page: 'current' } ).nodes().toArray() );
  99586. var tops = $.map( nodes, function ( node, i ) {
  99587. return $(node).position().top - headerHeight;
  99588. } );
  99589. var middles = $.map( tops, function ( top, i ) {
  99590. return tops.length < i-1 ?
  99591. (top + tops[i+1]) / 2 :
  99592. (top + top + $( dt.row( ':last-child' ).node() ).outerHeight() ) / 2;
  99593. } );
  99594. this.s.middles = middles;
  99595. this.s.bodyTop = $( dt.table().body() ).offset().top;
  99596. this.s.windowHeight = $(window).height();
  99597. },
  99598. /**
  99599. * Clone a row so it can be floated around the screen
  99600. *
  99601. * @param {jQuery} target Node to be cloned
  99602. * @private
  99603. */
  99604. _clone: function ( target )
  99605. {
  99606. var dt = this.s.dt;
  99607. var clone = $( dt.table().node().cloneNode(false) )
  99608. .addClass( 'dt-rowReorder-float' )
  99609. .append('<tbody/>')
  99610. .append( target.clone( false ) );
  99611. // Match the table and column widths - read all sizes before setting
  99612. // to reduce reflows
  99613. var tableWidth = target.outerWidth();
  99614. var tableHeight = target.outerHeight();
  99615. var sizes = target.children().map( function () {
  99616. return $(this).width();
  99617. } );
  99618. clone
  99619. .width( tableWidth )
  99620. .height( tableHeight )
  99621. .find('tr').children().each( function (i) {
  99622. this.style.width = sizes[i]+'px';
  99623. } );
  99624. // Insert into the document to have it floating around
  99625. clone.appendTo( 'body' );
  99626. this.dom.clone = clone;
  99627. },
  99628. /**
  99629. * Update the cloned item's position in the document
  99630. *
  99631. * @param {object} e Event giving the mouse's position
  99632. * @private
  99633. */
  99634. _clonePosition: function ( e )
  99635. {
  99636. var start = this.s.start;
  99637. var topDiff = this._eventToPage( e, 'Y' ) - start.top;
  99638. var leftDiff = this._eventToPage( e, 'X' ) - start.left;
  99639. var snap = this.c.snapX;
  99640. var left;
  99641. if ( snap === true ) {
  99642. left = start.offsetLeft;
  99643. }
  99644. else if ( typeof snap === 'number' ) {
  99645. left = start.offsetLeft + snap;
  99646. }
  99647. else {
  99648. left = leftDiff + start.offsetLeft;
  99649. }
  99650. this.dom.clone.css( {
  99651. top: topDiff + start.offsetTop,
  99652. left: left
  99653. } );
  99654. },
  99655. /**
  99656. * Emit an event on the DataTable for listeners
  99657. *
  99658. * @param {string} name Event name
  99659. * @param {array} args Event arguments
  99660. * @private
  99661. */
  99662. _emitEvent: function ( name, args )
  99663. {
  99664. this.s.dt.iterator( 'table', function ( ctx, i ) {
  99665. $(ctx.nTable).triggerHandler( name+'.dt', args );
  99666. } );
  99667. },
  99668. /**
  99669. * Get pageX/Y position from an event, regardless of if it is a mouse or
  99670. * touch event.
  99671. *
  99672. * @param {object} e Event
  99673. * @param {string} pos X or Y (must be a capital)
  99674. * @private
  99675. */
  99676. _eventToPage: function ( e, pos )
  99677. {
  99678. if ( e.type.indexOf( 'touch' ) !== -1 ) {
  99679. return e.originalEvent.touches[0][ 'page'+pos ];
  99680. }
  99681. return e[ 'page'+pos ];
  99682. },
  99683. /**
  99684. * Mouse down event handler. Read initial positions and add event handlers
  99685. * for the move.
  99686. *
  99687. * @param {object} e Mouse event
  99688. * @param {jQuery} target TR element that is to be moved
  99689. * @private
  99690. */
  99691. _mouseDown: function ( e, target )
  99692. {
  99693. var that = this;
  99694. var dt = this.s.dt;
  99695. var start = this.s.start;
  99696. var offset = target.offset();
  99697. start.top = this._eventToPage( e, 'Y' );
  99698. start.left = this._eventToPage( e, 'X' );
  99699. start.offsetTop = offset.top;
  99700. start.offsetLeft = offset.left;
  99701. start.nodes = $.unique( dt.rows( { page: 'current' } ).nodes().toArray() );
  99702. this._cachePositions();
  99703. this._clone( target );
  99704. this._clonePosition( e );
  99705. this.dom.target = target;
  99706. target.addClass( 'dt-rowReorder-moving' );
  99707. $( document )
  99708. .on( 'mouseup.rowReorder touchend.rowReorder', function (e) {
  99709. that._mouseUp(e);
  99710. } )
  99711. .on( 'mousemove.rowReorder touchmove.rowReorder', function (e) {
  99712. that._mouseMove(e);
  99713. } );
  99714. // Check if window is x-scrolling - if not, disable it for the duration
  99715. // of the drag
  99716. if ( $(window).width() === $(document).width() ) {
  99717. $(document.body).addClass( 'dt-rowReorder-noOverflow' );
  99718. }
  99719. },
  99720. /**
  99721. * Mouse move event handler - move the cloned row and shuffle the table's
  99722. * rows if required.
  99723. *
  99724. * @param {object} e Mouse event
  99725. * @private
  99726. */
  99727. _mouseMove: function ( e )
  99728. {
  99729. this._clonePosition( e );
  99730. // Transform the mouse position into a position in the table's body
  99731. var bodyY = this._eventToPage( e, 'Y' ) - this.s.bodyTop;
  99732. var middles = this.s.middles;
  99733. var insertPoint = null;
  99734. var dt = this.s.dt;
  99735. var body = dt.table().body();
  99736. // Determine where the row should be inserted based on the mouse
  99737. // position
  99738. for ( var i=0, ien=middles.length ; i<ien ; i++ ) {
  99739. if ( bodyY < middles[i] ) {
  99740. insertPoint = i;
  99741. break;
  99742. }
  99743. }
  99744. if ( insertPoint === null ) {
  99745. insertPoint = middles.length;
  99746. }
  99747. // Perform the DOM shuffle if it has changed from last time
  99748. if ( this.s.lastInsert === null || this.s.lastInsert !== insertPoint ) {
  99749. if ( insertPoint === 0 ) {
  99750. this.dom.target.prependTo( body );
  99751. }
  99752. else {
  99753. var nodes = $.unique( dt.rows( { page: 'current' } ).nodes().toArray() );
  99754. if ( insertPoint > this.s.lastInsert ) {
  99755. this.dom.target.before( nodes[ insertPoint-1 ] );
  99756. }
  99757. else {
  99758. this.dom.target.after( nodes[ insertPoint ] );
  99759. }
  99760. }
  99761. this._cachePositions();
  99762. this.s.lastInsert = insertPoint;
  99763. }
  99764. // scroll window up and down when reaching the edges
  99765. var windowY = this._eventToPage( e, 'Y' ) - document.body.scrollTop;
  99766. var scrollInterval = this.s.scrollInterval;
  99767. if ( windowY < 65 ) {
  99768. if ( ! scrollInterval ) {
  99769. this.s.scrollInterval = setInterval( function () {
  99770. document.body.scrollTop -= 5;
  99771. }, 15 );
  99772. }
  99773. }
  99774. else if ( this.s.windowHeight - windowY < 65 ) {
  99775. if ( ! scrollInterval ) {
  99776. this.s.scrollInterval = setInterval( function () {
  99777. document.body.scrollTop += 5;
  99778. }, 15 );
  99779. }
  99780. }
  99781. else {
  99782. clearInterval( scrollInterval );
  99783. this.s.scrollInterval = null;
  99784. }
  99785. },
  99786. /**
  99787. * Mouse up event handler - release the event handlers and perform the
  99788. * table updates
  99789. *
  99790. * @param {object} e Mouse event
  99791. * @private
  99792. */
  99793. _mouseUp: function ( e )
  99794. {
  99795. var dt = this.s.dt;
  99796. var i, ien;
  99797. this.dom.clone.remove();
  99798. this.dom.clone = null;
  99799. this.dom.target.removeClass( 'dt-rowReorder-moving' );
  99800. //this.dom.target = null;
  99801. $(document).off( '.rowReorder' );
  99802. $(document.body).removeClass( 'dt-rowReorder-noOverflow' );
  99803. // Calculate the difference
  99804. var startNodes = this.s.start.nodes;
  99805. var endNodes = $.unique( dt.rows( { page: 'current' } ).nodes().toArray() );
  99806. var idDiff = {};
  99807. var fullDiff = [];
  99808. var diffNodes = [];
  99809. var getDataFn = this.s.getDataFn;
  99810. var setDataFn = this.s.setDataFn;
  99811. for ( i=0, ien=startNodes.length ; i<ien ; i++ ) {
  99812. if ( startNodes[i] !== endNodes[i] ) {
  99813. var id = dt.row( endNodes[i] ).id();
  99814. var endRowData = dt.row( endNodes[i] ).data();
  99815. var startRowData = dt.row( startNodes[i] ).data();
  99816. if ( id ) {
  99817. idDiff[ id ] = getDataFn( startRowData );
  99818. }
  99819. fullDiff.push( {
  99820. node: endNodes[i],
  99821. oldData: getDataFn( endRowData ),
  99822. newData: getDataFn( startRowData ),
  99823. newPosition: i,
  99824. oldPosition: $.inArray( endNodes[i], startNodes )
  99825. } );
  99826. diffNodes.push( endNodes[i] );
  99827. }
  99828. }
  99829. // Emit event
  99830. this._emitEvent( 'row-reorder', [ fullDiff, {
  99831. dataSrc: this.c.dataSrc,
  99832. nodes: diffNodes,
  99833. values: idDiff
  99834. } ] );
  99835. // Editor interface
  99836. if ( this.c.editor ) {
  99837. this.c.editor
  99838. .edit( diffNodes, false, {
  99839. submit: 'changed'
  99840. } )
  99841. .multiSet( this.c.dataSrc, idDiff )
  99842. .submit();
  99843. }
  99844. // Do update if required
  99845. if ( this.c.update ) {
  99846. for ( i=0, ien=fullDiff.length ; i<ien ; i++ ) {
  99847. var row = dt.row( fullDiff[i].node );
  99848. var rowData = row.data();
  99849. setDataFn( rowData, fullDiff[i].newData );
  99850. row.invalidate( 'data' );
  99851. }
  99852. dt.draw( false );
  99853. }
  99854. }
  99855. };
  99856. /**
  99857. * RowReorder default settings for initialisation
  99858. *
  99859. * @namespace
  99860. * @name RowReorder.defaults
  99861. * @static
  99862. */
  99863. RowReorder.defaults = {
  99864. /**
  99865. * Data point in the host row's data source object for where to get and set
  99866. * the data to reorder. This will normally also be the sorting column.
  99867. *
  99868. * @type {Number}
  99869. */
  99870. dataSrc: 0,
  99871. /**
  99872. * Editor instance that will be used to perform the update
  99873. *
  99874. * @type {DataTable.Editor}
  99875. */
  99876. editor: null,
  99877. /**
  99878. * Drag handle selector. This defines the element that when dragged will
  99879. * reorder a row.
  99880. *
  99881. * @type {String}
  99882. */
  99883. selector: 'td:first-child',
  99884. /**
  99885. * Optionally lock the dragged row's x-position. This can be `true` to
  99886. * fix the position match the host table's, `false` to allow free movement
  99887. * of the row, or a number to define an offset from the host table.
  99888. *
  99889. * @type {Boolean|number}
  99890. */
  99891. snapX: false,
  99892. /**
  99893. * Update the table's data on drop
  99894. *
  99895. * @type {Boolean}
  99896. */
  99897. update: true
  99898. };
  99899. /**
  99900. * Version information
  99901. *
  99902. * @name RowReorder.version
  99903. * @static
  99904. */
  99905. RowReorder.version = '1.0.0';
  99906. $.fn.dataTable.RowReorder = RowReorder;
  99907. $.fn.DataTable.RowReorder = RowReorder;
  99908. // Attach a listener to the document which listens for DataTables initialisation
  99909. // events so we can automatically initialise
  99910. $(document).on( 'init.dt.dtr', function (e, settings, json) {
  99911. if ( e.namespace !== 'dt' ) {
  99912. return;
  99913. }
  99914. var init = settings.oInit.rowReorder;
  99915. var defaults = DataTable.defaults.rowReorder;
  99916. if ( init || defaults ) {
  99917. var opts = $.extend( {}, init, defaults );
  99918. if ( init !== false ) {
  99919. new RowReorder( settings, opts );
  99920. }
  99921. }
  99922. } );
  99923. return RowReorder;
  99924. }; // /factory
  99925. // Define as an AMD module if possible
  99926. if ( typeof define === 'function' && define.amd ) {
  99927. define( ['jquery', 'datatables'], factory );
  99928. }
  99929. else if ( typeof exports === 'object' ) {
  99930. // Node/CommonJS
  99931. factory( require('jquery'), require('datatables') );
  99932. }
  99933. else if ( jQuery && !jQuery.fn.dataTable.RowReorder ) {
  99934. // Otherwise simply initialise as normal, stopping multiple evaluation
  99935. factory( jQuery, jQuery.fn.dataTable );
  99936. }
  99937. })(window, document);
  99938. /*! Scroller 1.3.0
  99939. * ©2011-2015 SpryMedia Ltd - datatables.net/license
  99940. */
  99941. /**
  99942. * @summary Scroller
  99943. * @description Virtual rendering for DataTables
  99944. * @version 1.3.0
  99945. * @file dataTables.scroller.js
  99946. * @author SpryMedia Ltd (www.sprymedia.co.uk)
  99947. * @contact www.sprymedia.co.uk/contact
  99948. * @copyright Copyright 2011-2015 SpryMedia Ltd.
  99949. *
  99950. * This source file is free software, available under the following license:
  99951. * MIT license - http://datatables.net/license/mit
  99952. *
  99953. * This source file is distributed in the hope that it will be useful, but
  99954. * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  99955. * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
  99956. *
  99957. * For details please refer to: http://www.datatables.net
  99958. */
  99959. (function(window, document, undefined){
  99960. var factory = function( $, DataTable ) {
  99961. "use strict";
  99962. /**
  99963. * Scroller is a virtual rendering plug-in for DataTables which allows large
  99964. * datasets to be drawn on screen every quickly. What the virtual rendering means
  99965. * is that only the visible portion of the table (and a bit to either side to make
  99966. * the scrolling smooth) is drawn, while the scrolling container gives the
  99967. * visual impression that the whole table is visible. This is done by making use
  99968. * of the pagination abilities of DataTables and moving the table around in the
  99969. * scrolling container DataTables adds to the page. The scrolling container is
  99970. * forced to the height it would be for the full table display using an extra
  99971. * element.
  99972. *
  99973. * Note that rows in the table MUST all be the same height. Information in a cell
  99974. * which expands on to multiple lines will cause some odd behaviour in the scrolling.
  99975. *
  99976. * Scroller is initialised by simply including the letter 'S' in the sDom for the
  99977. * table you want to have this feature enabled on. Note that the 'S' must come
  99978. * AFTER the 't' parameter in `dom`.
  99979. *
  99980. * Key features include:
  99981. * <ul class="limit_length">
  99982. * <li>Speed! The aim of Scroller for DataTables is to make rendering large data sets fast</li>
  99983. * <li>Full compatibility with deferred rendering in DataTables for maximum speed</li>
  99984. * <li>Display millions of rows</li>
  99985. * <li>Integration with state saving in DataTables (scrolling position is saved)</li>
  99986. * <li>Easy to use</li>
  99987. * </ul>
  99988. *
  99989. * @class
  99990. * @constructor
  99991. * @global
  99992. * @param {object} dt DataTables settings object or API instance
  99993. * @param {object} [opts={}] Configuration object for FixedColumns. Options
  99994. * are defined by {@link Scroller.defaults}
  99995. *
  99996. * @requires jQuery 1.7+
  99997. * @requires DataTables 1.10.0+
  99998. *
  99999. * @example
  100000. * $(document).ready(function() {
  100001. * $('#example').DataTable( {
  100002. * "scrollY": "200px",
  100003. * "ajax": "media/dataset/large.txt",
  100004. * "dom": "frtiS",
  100005. * "deferRender": true
  100006. * } );
  100007. * } );
  100008. */
  100009. var Scroller = function ( dt, opts ) {
  100010. /* Sanity check - you just know it will happen */
  100011. if ( ! (this instanceof Scroller) ) {
  100012. alert( "Scroller warning: Scroller must be initialised with the 'new' keyword." );
  100013. return;
  100014. }
  100015. if ( opts === undefined ) {
  100016. opts = {};
  100017. }
  100018. /**
  100019. * Settings object which contains customisable information for the Scroller instance
  100020. * @namespace
  100021. * @private
  100022. * @extends Scroller.defaults
  100023. */
  100024. this.s = {
  100025. /**
  100026. * DataTables settings object
  100027. * @type object
  100028. * @default Passed in as first parameter to constructor
  100029. */
  100030. "dt": $.fn.dataTable.Api( dt ).settings()[0],
  100031. /**
  100032. * Pixel location of the top of the drawn table in the viewport
  100033. * @type int
  100034. * @default 0
  100035. */
  100036. "tableTop": 0,
  100037. /**
  100038. * Pixel location of the bottom of the drawn table in the viewport
  100039. * @type int
  100040. * @default 0
  100041. */
  100042. "tableBottom": 0,
  100043. /**
  100044. * Pixel location of the boundary for when the next data set should be loaded and drawn
  100045. * when scrolling up the way.
  100046. * @type int
  100047. * @default 0
  100048. * @private
  100049. */
  100050. "redrawTop": 0,
  100051. /**
  100052. * Pixel location of the boundary for when the next data set should be loaded and drawn
  100053. * when scrolling down the way. Note that this is actually calculated as the offset from
  100054. * the top.
  100055. * @type int
  100056. * @default 0
  100057. * @private
  100058. */
  100059. "redrawBottom": 0,
  100060. /**
  100061. * Auto row height or not indicator
  100062. * @type bool
  100063. * @default 0
  100064. */
  100065. "autoHeight": true,
  100066. /**
  100067. * Number of rows calculated as visible in the visible viewport
  100068. * @type int
  100069. * @default 0
  100070. */
  100071. "viewportRows": 0,
  100072. /**
  100073. * setTimeout reference for state saving, used when state saving is enabled in the DataTable
  100074. * and when the user scrolls the viewport in order to stop the cookie set taking too much
  100075. * CPU!
  100076. * @type int
  100077. * @default 0
  100078. */
  100079. "stateTO": null,
  100080. /**
  100081. * setTimeout reference for the redraw, used when server-side processing is enabled in the
  100082. * DataTables in order to prevent DoSing the server
  100083. * @type int
  100084. * @default null
  100085. */
  100086. "drawTO": null,
  100087. heights: {
  100088. jump: null,
  100089. page: null,
  100090. virtual: null,
  100091. scroll: null,
  100092. /**
  100093. * Height of rows in the table
  100094. * @type int
  100095. * @default 0
  100096. */
  100097. row: null,
  100098. /**
  100099. * Pixel height of the viewport
  100100. * @type int
  100101. * @default 0
  100102. */
  100103. viewport: null
  100104. },
  100105. topRowFloat: 0,
  100106. scrollDrawDiff: null,
  100107. loaderVisible: false
  100108. };
  100109. // @todo The defaults should extend a `c` property and the internal settings
  100110. // only held in the `s` property. At the moment they are mixed
  100111. this.s = $.extend( this.s, Scroller.oDefaults, opts );
  100112. // Workaround for row height being read from height object (see above comment)
  100113. this.s.heights.row = this.s.rowHeight;
  100114. /**
  100115. * DOM elements used by the class instance
  100116. * @private
  100117. * @namespace
  100118. *
  100119. */
  100120. this.dom = {
  100121. "force": document.createElement('div'),
  100122. "scroller": null,
  100123. "table": null,
  100124. "loader": null
  100125. };
  100126. // Attach the instance to the DataTables instance so it can be accessed in
  100127. // future. Don't initialise Scroller twice on the same table
  100128. if ( this.s.dt.oScroller ) {
  100129. return;
  100130. }
  100131. this.s.dt.oScroller = this;
  100132. /* Let's do it */
  100133. this._fnConstruct();
  100134. };
  100135. Scroller.prototype = /** @lends Scroller.prototype */{
  100136. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  100137. * Public methods
  100138. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  100139. /**
  100140. * Calculate the pixel position from the top of the scrolling container for
  100141. * a given row
  100142. * @param {int} iRow Row number to calculate the position of
  100143. * @returns {int} Pixels
  100144. * @example
  100145. * $(document).ready(function() {
  100146. * $('#example').dataTable( {
  100147. * "sScrollY": "200px",
  100148. * "sAjaxSource": "media/dataset/large.txt",
  100149. * "sDom": "frtiS",
  100150. * "bDeferRender": true,
  100151. * "fnInitComplete": function (o) {
  100152. * // Find where row 25 is
  100153. * alert( o.oScroller.fnRowToPixels( 25 ) );
  100154. * }
  100155. * } );
  100156. * } );
  100157. */
  100158. "fnRowToPixels": function ( rowIdx, intParse, virtual )
  100159. {
  100160. var pixels;
  100161. if ( virtual ) {
  100162. pixels = this._domain( 'virtualToPhysical', rowIdx * this.s.heights.row );
  100163. }
  100164. else {
  100165. var diff = rowIdx - this.s.baseRowTop;
  100166. pixels = this.s.baseScrollTop + (diff * this.s.heights.row);
  100167. }
  100168. return intParse || intParse === undefined ?
  100169. parseInt( pixels, 10 ) :
  100170. pixels;
  100171. },
  100172. /**
  100173. * Calculate the row number that will be found at the given pixel position
  100174. * (y-scroll).
  100175. *
  100176. * Please note that when the height of the full table exceeds 1 million
  100177. * pixels, Scroller switches into a non-linear mode for the scrollbar to fit
  100178. * all of the records into a finite area, but this function returns a linear
  100179. * value (relative to the last non-linear positioning).
  100180. * @param {int} iPixels Offset from top to calculate the row number of
  100181. * @param {int} [intParse=true] If an integer value should be returned
  100182. * @param {int} [virtual=false] Perform the calculations in the virtual domain
  100183. * @returns {int} Row index
  100184. * @example
  100185. * $(document).ready(function() {
  100186. * $('#example').dataTable( {
  100187. * "sScrollY": "200px",
  100188. * "sAjaxSource": "media/dataset/large.txt",
  100189. * "sDom": "frtiS",
  100190. * "bDeferRender": true,
  100191. * "fnInitComplete": function (o) {
  100192. * // Find what row number is at 500px
  100193. * alert( o.oScroller.fnPixelsToRow( 500 ) );
  100194. * }
  100195. * } );
  100196. * } );
  100197. */
  100198. "fnPixelsToRow": function ( pixels, intParse, virtual )
  100199. {
  100200. var diff = pixels - this.s.baseScrollTop;
  100201. var row = virtual ?
  100202. this._domain( 'physicalToVirtual', pixels ) / this.s.heights.row :
  100203. ( diff / this.s.heights.row ) + this.s.baseRowTop;
  100204. return intParse || intParse === undefined ?
  100205. parseInt( row, 10 ) :
  100206. row;
  100207. },
  100208. /**
  100209. * Calculate the row number that will be found at the given pixel position (y-scroll)
  100210. * @param {int} iRow Row index to scroll to
  100211. * @param {bool} [bAnimate=true] Animate the transition or not
  100212. * @returns {void}
  100213. * @example
  100214. * $(document).ready(function() {
  100215. * $('#example').dataTable( {
  100216. * "sScrollY": "200px",
  100217. * "sAjaxSource": "media/dataset/large.txt",
  100218. * "sDom": "frtiS",
  100219. * "bDeferRender": true,
  100220. * "fnInitComplete": function (o) {
  100221. * // Immediately scroll to row 1000
  100222. * o.oScroller.fnScrollToRow( 1000 );
  100223. * }
  100224. * } );
  100225. *
  100226. * // Sometime later on use the following to scroll to row 500...
  100227. * var oSettings = $('#example').dataTable().fnSettings();
  100228. * oSettings.oScroller.fnScrollToRow( 500 );
  100229. * } );
  100230. */
  100231. "fnScrollToRow": function ( iRow, bAnimate )
  100232. {
  100233. var that = this;
  100234. var ani = false;
  100235. var px = this.fnRowToPixels( iRow );
  100236. // We need to know if the table will redraw or not before doing the
  100237. // scroll. If it will not redraw, then we need to use the currently
  100238. // displayed table, and scroll with the physical pixels. Otherwise, we
  100239. // need to calculate the table's new position from the virtual
  100240. // transform.
  100241. var preRows = ((this.s.displayBuffer-1)/2) * this.s.viewportRows;
  100242. var drawRow = iRow - preRows;
  100243. if ( drawRow < 0 ) {
  100244. drawRow = 0;
  100245. }
  100246. if ( (px > this.s.redrawBottom || px < this.s.redrawTop) && this.s.dt._iDisplayStart !== drawRow ) {
  100247. ani = true;
  100248. px = this.fnRowToPixels( iRow, false, true );
  100249. }
  100250. if ( typeof bAnimate == 'undefined' || bAnimate )
  100251. {
  100252. this.s.ani = ani;
  100253. $(this.dom.scroller).animate( {
  100254. "scrollTop": px
  100255. }, function () {
  100256. // This needs to happen after the animation has completed and
  100257. // the final scroll event fired
  100258. setTimeout( function () {
  100259. that.s.ani = false;
  100260. }, 25 );
  100261. } );
  100262. }
  100263. else
  100264. {
  100265. $(this.dom.scroller).scrollTop( px );
  100266. }
  100267. },
  100268. /**
  100269. * Calculate and store information about how many rows are to be displayed
  100270. * in the scrolling viewport, based on current dimensions in the browser's
  100271. * rendering. This can be particularly useful if the table is initially
  100272. * drawn in a hidden element - for example in a tab.
  100273. * @param {bool} [bRedraw=true] Redraw the table automatically after the recalculation, with
  100274. * the new dimensions forming the basis for the draw.
  100275. * @returns {void}
  100276. * @example
  100277. * $(document).ready(function() {
  100278. * // Make the example container hidden to throw off the browser's sizing
  100279. * document.getElementById('container').style.display = "none";
  100280. * var oTable = $('#example').dataTable( {
  100281. * "sScrollY": "200px",
  100282. * "sAjaxSource": "media/dataset/large.txt",
  100283. * "sDom": "frtiS",
  100284. * "bDeferRender": true,
  100285. * "fnInitComplete": function (o) {
  100286. * // Immediately scroll to row 1000
  100287. * o.oScroller.fnScrollToRow( 1000 );
  100288. * }
  100289. * } );
  100290. *
  100291. * setTimeout( function () {
  100292. * // Make the example container visible and recalculate the scroller sizes
  100293. * document.getElementById('container').style.display = "block";
  100294. * oTable.fnSettings().oScroller.fnMeasure();
  100295. * }, 3000 );
  100296. */
  100297. "fnMeasure": function ( bRedraw )
  100298. {
  100299. if ( this.s.autoHeight )
  100300. {
  100301. this._fnCalcRowHeight();
  100302. }
  100303. var heights = this.s.heights;
  100304. heights.viewport = $(this.dom.scroller).height();
  100305. this.s.viewportRows = parseInt( heights.viewport / heights.row, 10 )+1;
  100306. this.s.dt._iDisplayLength = this.s.viewportRows * this.s.displayBuffer;
  100307. if ( bRedraw === undefined || bRedraw )
  100308. {
  100309. this.s.dt.oInstance.fnDraw();
  100310. }
  100311. },
  100312. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  100313. * Private methods (they are of course public in JS, but recommended as private)
  100314. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  100315. /**
  100316. * Initialisation for Scroller
  100317. * @returns {void}
  100318. * @private
  100319. */
  100320. "_fnConstruct": function ()
  100321. {
  100322. var that = this;
  100323. /* Sanity check */
  100324. if ( !this.s.dt.oFeatures.bPaginate ) {
  100325. this.s.dt.oApi._fnLog( this.s.dt, 0, 'Pagination must be enabled for Scroller' );
  100326. return;
  100327. }
  100328. /* Insert a div element that we can use to force the DT scrolling container to
  100329. * the height that would be required if the whole table was being displayed
  100330. */
  100331. this.dom.force.style.position = "relative";
  100332. this.dom.force.style.top = "0px";
  100333. this.dom.force.style.left = "0px";
  100334. this.dom.force.style.width = "1px";
  100335. this.dom.scroller = $('div.'+this.s.dt.oClasses.sScrollBody, this.s.dt.nTableWrapper)[0];
  100336. this.dom.scroller.appendChild( this.dom.force );
  100337. this.dom.scroller.style.position = "relative";
  100338. this.dom.table = $('>table', this.dom.scroller)[0];
  100339. this.dom.table.style.position = "absolute";
  100340. this.dom.table.style.top = "0px";
  100341. this.dom.table.style.left = "0px";
  100342. // Add class to 'announce' that we are a Scroller table
  100343. $(this.s.dt.nTableWrapper).addClass('DTS');
  100344. // Add a 'loading' indicator
  100345. if ( this.s.loadingIndicator )
  100346. {
  100347. this.dom.loader = $('<div class="dataTables_processing DTS_Loading">'+this.s.dt.oLanguage.sLoadingRecords+'</div>')
  100348. .css('display', 'none');
  100349. $(this.dom.scroller.parentNode)
  100350. .css('position', 'relative')
  100351. .append( this.dom.loader );
  100352. }
  100353. /* Initial size calculations */
  100354. if ( this.s.heights.row && this.s.heights.row != 'auto' )
  100355. {
  100356. this.s.autoHeight = false;
  100357. }
  100358. this.fnMeasure( false );
  100359. /* Scrolling callback to see if a page change is needed - use a throttled
  100360. * function for the save save callback so we aren't hitting it on every
  100361. * scroll
  100362. */
  100363. this.s.ingnoreScroll = true;
  100364. this.s.stateSaveThrottle = this.s.dt.oApi._fnThrottle( function () {
  100365. that.s.dt.oApi._fnSaveState( that.s.dt );
  100366. }, 500 );
  100367. $(this.dom.scroller).on( 'scroll.DTS', function (e) {
  100368. that._fnScroll.call( that );
  100369. } );
  100370. /* In iOS we catch the touchstart event in case the user tries to scroll
  100371. * while the display is already scrolling
  100372. */
  100373. $(this.dom.scroller).on('touchstart.DTS', function () {
  100374. that._fnScroll.call( that );
  100375. } );
  100376. /* Update the scroller when the DataTable is redrawn */
  100377. this.s.dt.aoDrawCallback.push( {
  100378. "fn": function () {
  100379. if ( that.s.dt.bInitialised ) {
  100380. that._fnDrawCallback.call( that );
  100381. }
  100382. },
  100383. "sName": "Scroller"
  100384. } );
  100385. /* On resize, update the information element, since the number of rows shown might change */
  100386. $(window).on( 'resize.DTS', function () {
  100387. that.fnMeasure( false );
  100388. that._fnInfo();
  100389. } );
  100390. /* Add a state saving parameter to the DT state saving so we can restore the exact
  100391. * position of the scrolling
  100392. */
  100393. var initialStateSave = true;
  100394. this.s.dt.oApi._fnCallbackReg( this.s.dt, 'aoStateSaveParams', function (oS, oData) {
  100395. /* Set iScroller to saved scroll position on initialization.
  100396. */
  100397. if(initialStateSave && that.s.dt.oLoadedState){
  100398. oData.iScroller = that.s.dt.oLoadedState.iScroller;
  100399. oData.iScrollerTopRow = that.s.dt.oLoadedState.iScrollerTopRow;
  100400. initialStateSave = false;
  100401. } else {
  100402. oData.iScroller = that.dom.scroller.scrollTop;
  100403. oData.iScrollerTopRow = that.s.topRowFloat;
  100404. }
  100405. }, "Scroller_State" );
  100406. if ( this.s.dt.oLoadedState ) {
  100407. this.s.topRowFloat = this.s.dt.oLoadedState.iScrollerTopRow || 0;
  100408. }
  100409. $(this.s.dt.nTable).on( 'init.dt', function () {
  100410. that.fnMeasure();
  100411. } );
  100412. /* Destructor */
  100413. this.s.dt.aoDestroyCallback.push( {
  100414. "sName": "Scroller",
  100415. "fn": function () {
  100416. $(window).off( 'resize.DTS' );
  100417. $(that.dom.scroller).off('touchstart.DTS scroll.DTS');
  100418. $(that.s.dt.nTableWrapper).removeClass('DTS');
  100419. $('div.DTS_Loading', that.dom.scroller.parentNode).remove();
  100420. $(that.s.dt.nTable).off( 'init.dt' );
  100421. that.dom.table.style.position = "";
  100422. that.dom.table.style.top = "";
  100423. that.dom.table.style.left = "";
  100424. }
  100425. } );
  100426. },
  100427. /**
  100428. * Scrolling function - fired whenever the scrolling position is changed.
  100429. * This method needs to use the stored values to see if the table should be
  100430. * redrawn as we are moving towards the end of the information that is
  100431. * currently drawn or not. If needed, then it will redraw the table based on
  100432. * the new position.
  100433. * @returns {void}
  100434. * @private
  100435. */
  100436. "_fnScroll": function ()
  100437. {
  100438. var
  100439. that = this,
  100440. heights = this.s.heights,
  100441. iScrollTop = this.dom.scroller.scrollTop,
  100442. iTopRow;
  100443. if ( this.s.skip ) {
  100444. return;
  100445. }
  100446. if ( this.s.ingnoreScroll ) {
  100447. return;
  100448. }
  100449. /* If the table has been sorted or filtered, then we use the redraw that
  100450. * DataTables as done, rather than performing our own
  100451. */
  100452. if ( this.s.dt.bFiltered || this.s.dt.bSorted ) {
  100453. this.s.lastScrollTop = 0;
  100454. return;
  100455. }
  100456. /* Update the table's information display for what is now in the viewport */
  100457. this._fnInfo();
  100458. /* We don't want to state save on every scroll event - that's heavy
  100459. * handed, so use a timeout to update the state saving only when the
  100460. * scrolling has finished
  100461. */
  100462. clearTimeout( this.s.stateTO );
  100463. this.s.stateTO = setTimeout( function () {
  100464. that.s.dt.oApi._fnSaveState( that.s.dt );
  100465. }, 250 );
  100466. /* Check if the scroll point is outside the trigger boundary which would required
  100467. * a DataTables redraw
  100468. */
  100469. if ( iScrollTop < this.s.redrawTop || iScrollTop > this.s.redrawBottom ) {
  100470. var preRows = Math.ceil( ((this.s.displayBuffer-1)/2) * this.s.viewportRows );
  100471. if ( Math.abs( iScrollTop - this.s.lastScrollTop ) > heights.viewport || this.s.ani ) {
  100472. iTopRow = parseInt(this._domain( 'physicalToVirtual', iScrollTop ) / heights.row, 10) - preRows;
  100473. this.s.topRowFloat = (this._domain( 'physicalToVirtual', iScrollTop ) / heights.row);
  100474. }
  100475. else {
  100476. iTopRow = this.fnPixelsToRow( iScrollTop ) - preRows;
  100477. this.s.topRowFloat = this.fnPixelsToRow( iScrollTop, false );
  100478. }
  100479. if ( iTopRow <= 0 ) {
  100480. /* At the start of the table */
  100481. iTopRow = 0;
  100482. }
  100483. else if ( iTopRow + this.s.dt._iDisplayLength > this.s.dt.fnRecordsDisplay() ) {
  100484. /* At the end of the table */
  100485. iTopRow = this.s.dt.fnRecordsDisplay() - this.s.dt._iDisplayLength;
  100486. if ( iTopRow < 0 ) {
  100487. iTopRow = 0;
  100488. }
  100489. }
  100490. else if ( iTopRow % 2 !== 0 ) {
  100491. // For the row-striping classes (odd/even) we want only to start
  100492. // on evens otherwise the stripes will change between draws and
  100493. // look rubbish
  100494. iTopRow++;
  100495. }
  100496. if ( iTopRow != this.s.dt._iDisplayStart ) {
  100497. /* Cache the new table position for quick lookups */
  100498. this.s.tableTop = $(this.s.dt.nTable).offset().top;
  100499. this.s.tableBottom = $(this.s.dt.nTable).height() + this.s.tableTop;
  100500. var draw = function () {
  100501. if ( that.s.scrollDrawReq === null ) {
  100502. that.s.scrollDrawReq = iScrollTop;
  100503. }
  100504. that.s.dt._iDisplayStart = iTopRow;
  100505. that.s.dt.oApi._fnDraw( that.s.dt );
  100506. };
  100507. /* Do the DataTables redraw based on the calculated start point - note that when
  100508. * using server-side processing we introduce a small delay to not DoS the server...
  100509. */
  100510. if ( this.s.dt.oFeatures.bServerSide ) {
  100511. clearTimeout( this.s.drawTO );
  100512. this.s.drawTO = setTimeout( draw, this.s.serverWait );
  100513. }
  100514. else {
  100515. draw();
  100516. }
  100517. if ( this.dom.loader && ! this.s.loaderVisible ) {
  100518. this.dom.loader.css( 'display', 'block' );
  100519. this.s.loaderVisible = true;
  100520. }
  100521. }
  100522. }
  100523. this.s.lastScrollTop = iScrollTop;
  100524. this.s.stateSaveThrottle();
  100525. },
  100526. /**
  100527. * Convert from one domain to another. The physical domain is the actual
  100528. * pixel count on the screen, while the virtual is if we had browsers which
  100529. * had scrolling containers of infinite height (i.e. the absolute value)
  100530. *
  100531. * @param {string} dir Domain transform direction, `virtualToPhysical` or
  100532. * `physicalToVirtual`
  100533. * @returns {number} Calculated transform
  100534. * @private
  100535. */
  100536. _domain: function ( dir, val )
  100537. {
  100538. var heights = this.s.heights;
  100539. var coeff;
  100540. // If the virtual and physical height match, then we use a linear
  100541. // transform between the two, allowing the scrollbar to be linear
  100542. if ( heights.virtual === heights.scroll ) {
  100543. coeff = (heights.virtual-heights.viewport) / (heights.scroll-heights.viewport);
  100544. if ( dir === 'virtualToPhysical' ) {
  100545. return val / coeff;
  100546. }
  100547. else if ( dir === 'physicalToVirtual' ) {
  100548. return val * coeff;
  100549. }
  100550. }
  100551. // Otherwise, we want a non-linear scrollbar to take account of the
  100552. // redrawing regions at the start and end of the table, otherwise these
  100553. // can stutter badly - on large tables 30px (for example) scroll might
  100554. // be hundreds of rows, so the table would be redrawing every few px at
  100555. // the start and end. Use a simple quadratic to stop this. It does mean
  100556. // the scrollbar is non-linear, but with such massive data sets, the
  100557. // scrollbar is going to be a best guess anyway
  100558. var xMax = (heights.scroll - heights.viewport) / 2;
  100559. var yMax = (heights.virtual - heights.viewport) / 2;
  100560. coeff = yMax / ( xMax * xMax );
  100561. if ( dir === 'virtualToPhysical' ) {
  100562. if ( val < yMax ) {
  100563. return Math.pow(val / coeff, 0.5);
  100564. }
  100565. else {
  100566. val = (yMax*2) - val;
  100567. return val < 0 ?
  100568. heights.scroll :
  100569. (xMax*2) - Math.pow(val / coeff, 0.5);
  100570. }
  100571. }
  100572. else if ( dir === 'physicalToVirtual' ) {
  100573. if ( val < xMax ) {
  100574. return val * val * coeff;
  100575. }
  100576. else {
  100577. val = (xMax*2) - val;
  100578. return val < 0 ?
  100579. heights.virtual :
  100580. (yMax*2) - (val * val * coeff);
  100581. }
  100582. }
  100583. },
  100584. /**
  100585. * Draw callback function which is fired when the DataTable is redrawn. The main function of
  100586. * this method is to position the drawn table correctly the scrolling container for the rows
  100587. * that is displays as a result of the scrolling position.
  100588. * @returns {void}
  100589. * @private
  100590. */
  100591. "_fnDrawCallback": function ()
  100592. {
  100593. var
  100594. that = this,
  100595. heights = this.s.heights,
  100596. iScrollTop = this.dom.scroller.scrollTop,
  100597. iActualScrollTop = iScrollTop,
  100598. iScrollBottom = iScrollTop + heights.viewport,
  100599. iTableHeight = $(this.s.dt.nTable).height(),
  100600. displayStart = this.s.dt._iDisplayStart,
  100601. displayLen = this.s.dt._iDisplayLength,
  100602. displayEnd = this.s.dt.fnRecordsDisplay();
  100603. // Disable the scroll event listener while we are updating the DOM
  100604. this.s.skip = true;
  100605. // Resize the scroll forcing element
  100606. this._fnScrollForce();
  100607. // Reposition the scrolling for the updated virtual position if needed
  100608. if ( displayStart === 0 ) {
  100609. // Linear calculation at the top of the table
  100610. iScrollTop = this.s.topRowFloat * heights.row;
  100611. }
  100612. else if ( displayStart + displayLen >= displayEnd ) {
  100613. // Linear calculation that the bottom as well
  100614. iScrollTop = heights.scroll - ((displayEnd - this.s.topRowFloat) * heights.row);
  100615. }
  100616. else {
  100617. // Domain scaled in the middle
  100618. iScrollTop = this._domain( 'virtualToPhysical', this.s.topRowFloat * heights.row );
  100619. }
  100620. this.dom.scroller.scrollTop = iScrollTop;
  100621. // Store positional information so positional calculations can be based
  100622. // upon the current table draw position
  100623. this.s.baseScrollTop = iScrollTop;
  100624. this.s.baseRowTop = this.s.topRowFloat;
  100625. // Position the table in the virtual scroller
  100626. var tableTop = iScrollTop - ((this.s.topRowFloat - displayStart) * heights.row);
  100627. if ( displayStart === 0 ) {
  100628. tableTop = 0;
  100629. }
  100630. else if ( displayStart + displayLen >= displayEnd ) {
  100631. tableTop = heights.scroll - iTableHeight;
  100632. }
  100633. this.dom.table.style.top = tableTop+'px';
  100634. /* Cache some information for the scroller */
  100635. this.s.tableTop = tableTop;
  100636. this.s.tableBottom = iTableHeight + this.s.tableTop;
  100637. // Calculate the boundaries for where a redraw will be triggered by the
  100638. // scroll event listener
  100639. var boundaryPx = (iScrollTop - this.s.tableTop) * this.s.boundaryScale;
  100640. this.s.redrawTop = iScrollTop - boundaryPx;
  100641. this.s.redrawBottom = iScrollTop + boundaryPx;
  100642. this.s.skip = false;
  100643. // Restore the scrolling position that was saved by DataTable's state
  100644. // saving Note that this is done on the second draw when data is Ajax
  100645. // sourced, and the first draw when DOM soured
  100646. if ( this.s.dt.oFeatures.bStateSave && this.s.dt.oLoadedState !== null &&
  100647. typeof this.s.dt.oLoadedState.iScroller != 'undefined' )
  100648. {
  100649. // A quirk of DataTables is that the draw callback will occur on an
  100650. // empty set if Ajax sourced, but not if server-side processing.
  100651. var ajaxSourced = (this.s.dt.sAjaxSource || that.s.dt.ajax) && ! this.s.dt.oFeatures.bServerSide ?
  100652. true :
  100653. false;
  100654. if ( ( ajaxSourced && this.s.dt.iDraw == 2) ||
  100655. (!ajaxSourced && this.s.dt.iDraw == 1) )
  100656. {
  100657. setTimeout( function () {
  100658. $(that.dom.scroller).scrollTop( that.s.dt.oLoadedState.iScroller );
  100659. that.s.redrawTop = that.s.dt.oLoadedState.iScroller - (heights.viewport/2);
  100660. // In order to prevent layout thrashing we need another
  100661. // small delay
  100662. setTimeout( function () {
  100663. that.s.ingnoreScroll = false;
  100664. }, 0 );
  100665. }, 0 );
  100666. }
  100667. }
  100668. else {
  100669. that.s.ingnoreScroll = false;
  100670. }
  100671. // Because of the order of the DT callbacks, the info update will
  100672. // take precedence over the one we want here. So a 'thread' break is
  100673. // needed
  100674. setTimeout( function () {
  100675. that._fnInfo.call( that );
  100676. }, 0 );
  100677. // Hide the loading indicator
  100678. if ( this.dom.loader && this.s.loaderVisible ) {
  100679. this.dom.loader.css( 'display', 'none' );
  100680. this.s.loaderVisible = false;
  100681. }
  100682. },
  100683. /**
  100684. * Force the scrolling container to have height beyond that of just the
  100685. * table that has been drawn so the user can scroll the whole data set.
  100686. *
  100687. * Note that if the calculated required scrolling height exceeds a maximum
  100688. * value (1 million pixels - hard-coded) the forcing element will be set
  100689. * only to that maximum value and virtual / physical domain transforms will
  100690. * be used to allow Scroller to display tables of any number of records.
  100691. * @returns {void}
  100692. * @private
  100693. */
  100694. _fnScrollForce: function ()
  100695. {
  100696. var heights = this.s.heights;
  100697. var max = 1000000;
  100698. heights.virtual = heights.row * this.s.dt.fnRecordsDisplay();
  100699. heights.scroll = heights.virtual;
  100700. if ( heights.scroll > max ) {
  100701. heights.scroll = max;
  100702. }
  100703. // Minimum height so there is always a row visible (the 'no rows found'
  100704. // if reduced to zero filtering)
  100705. this.dom.force.style.height = heights.scroll > this.s.heights.row ?
  100706. heights.scroll+'px' :
  100707. this.s.heights.row+'px';
  100708. },
  100709. /**
  100710. * Automatic calculation of table row height. This is just a little tricky here as using
  100711. * initialisation DataTables has tale the table out of the document, so we need to create
  100712. * a new table and insert it into the document, calculate the row height and then whip the
  100713. * table out.
  100714. * @returns {void}
  100715. * @private
  100716. */
  100717. "_fnCalcRowHeight": function ()
  100718. {
  100719. var dt = this.s.dt;
  100720. var origTable = dt.nTable;
  100721. var nTable = origTable.cloneNode( false );
  100722. var tbody = $('<tbody/>').appendTo( nTable );
  100723. var container = $(
  100724. '<div class="'+dt.oClasses.sWrapper+' DTS">'+
  100725. '<div class="'+dt.oClasses.sScrollWrapper+'">'+
  100726. '<div class="'+dt.oClasses.sScrollBody+'"></div>'+
  100727. '</div>'+
  100728. '</div>'
  100729. );
  100730. // Want 3 rows in the sizing table so :first-child and :last-child
  100731. // CSS styles don't come into play - take the size of the middle row
  100732. $('tbody tr:lt(4)', origTable).clone().appendTo( tbody );
  100733. while( $('tr', tbody).length < 3 ) {
  100734. tbody.append( '<tr><td>&nbsp;</td></tr>' );
  100735. }
  100736. $('div.'+dt.oClasses.sScrollBody, container).append( nTable );
  100737. // If initialised using `dom`, use the holding element as the insert point
  100738. container.appendTo( this.s.dt.nHolding || origTable.parentNode );
  100739. this.s.heights.row = $('tr', tbody).eq(1).outerHeight();
  100740. container.remove();
  100741. },
  100742. /**
  100743. * Update any information elements that are controlled by the DataTable based on the scrolling
  100744. * viewport and what rows are visible in it. This function basically acts in the same way as
  100745. * _fnUpdateInfo in DataTables, and effectively replaces that function.
  100746. * @returns {void}
  100747. * @private
  100748. */
  100749. "_fnInfo": function ()
  100750. {
  100751. if ( !this.s.dt.oFeatures.bInfo )
  100752. {
  100753. return;
  100754. }
  100755. var
  100756. dt = this.s.dt,
  100757. language = dt.oLanguage,
  100758. iScrollTop = this.dom.scroller.scrollTop,
  100759. iStart = Math.floor( this.fnPixelsToRow(iScrollTop, false, this.s.ani)+1 ),
  100760. iMax = dt.fnRecordsTotal(),
  100761. iTotal = dt.fnRecordsDisplay(),
  100762. iPossibleEnd = Math.ceil( this.fnPixelsToRow(iScrollTop+this.s.heights.viewport, false, this.s.ani) ),
  100763. iEnd = iTotal < iPossibleEnd ? iTotal : iPossibleEnd,
  100764. sStart = dt.fnFormatNumber( iStart ),
  100765. sEnd = dt.fnFormatNumber( iEnd ),
  100766. sMax = dt.fnFormatNumber( iMax ),
  100767. sTotal = dt.fnFormatNumber( iTotal ),
  100768. sOut;
  100769. if ( dt.fnRecordsDisplay() === 0 &&
  100770. dt.fnRecordsDisplay() == dt.fnRecordsTotal() )
  100771. {
  100772. /* Empty record set */
  100773. sOut = language.sInfoEmpty+ language.sInfoPostFix;
  100774. }
  100775. else if ( dt.fnRecordsDisplay() === 0 )
  100776. {
  100777. /* Empty record set after filtering */
  100778. sOut = language.sInfoEmpty +' '+
  100779. language.sInfoFiltered.replace('_MAX_', sMax)+
  100780. language.sInfoPostFix;
  100781. }
  100782. else if ( dt.fnRecordsDisplay() == dt.fnRecordsTotal() )
  100783. {
  100784. /* Normal record set */
  100785. sOut = language.sInfo.
  100786. replace('_START_', sStart).
  100787. replace('_END_', sEnd).
  100788. replace('_MAX_', sMax).
  100789. replace('_TOTAL_', sTotal)+
  100790. language.sInfoPostFix;
  100791. }
  100792. else
  100793. {
  100794. /* Record set after filtering */
  100795. sOut = language.sInfo.
  100796. replace('_START_', sStart).
  100797. replace('_END_', sEnd).
  100798. replace('_MAX_', sMax).
  100799. replace('_TOTAL_', sTotal) +' '+
  100800. language.sInfoFiltered.replace(
  100801. '_MAX_',
  100802. dt.fnFormatNumber(dt.fnRecordsTotal())
  100803. )+
  100804. language.sInfoPostFix;
  100805. }
  100806. var callback = language.fnInfoCallback;
  100807. if ( callback ) {
  100808. sOut = callback.call( dt.oInstance,
  100809. dt, iStart, iEnd, iMax, iTotal, sOut
  100810. );
  100811. }
  100812. var n = dt.aanFeatures.i;
  100813. if ( typeof n != 'undefined' )
  100814. {
  100815. for ( var i=0, iLen=n.length ; i<iLen ; i++ )
  100816. {
  100817. $(n[i]).html( sOut );
  100818. }
  100819. }
  100820. }
  100821. };
  100822. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  100823. * Statics
  100824. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  100825. /**
  100826. * Scroller default settings for initialisation
  100827. * @namespace
  100828. * @name Scroller.defaults
  100829. * @static
  100830. */
  100831. Scroller.defaults = /** @lends Scroller.defaults */{
  100832. /**
  100833. * Indicate if Scroller show show trace information on the console or not. This can be
  100834. * useful when debugging Scroller or if just curious as to what it is doing, but should
  100835. * be turned off for production.
  100836. * @type bool
  100837. * @default false
  100838. * @static
  100839. * @example
  100840. * var oTable = $('#example').dataTable( {
  100841. * "sScrollY": "200px",
  100842. * "sDom": "frtiS",
  100843. * "bDeferRender": true,
  100844. * "oScroller": {
  100845. * "trace": true
  100846. * }
  100847. * } );
  100848. */
  100849. "trace": false,
  100850. /**
  100851. * Scroller will attempt to automatically calculate the height of rows for it's internal
  100852. * calculations. However the height that is used can be overridden using this parameter.
  100853. * @type int|string
  100854. * @default auto
  100855. * @static
  100856. * @example
  100857. * var oTable = $('#example').dataTable( {
  100858. * "sScrollY": "200px",
  100859. * "sDom": "frtiS",
  100860. * "bDeferRender": true,
  100861. * "oScroller": {
  100862. * "rowHeight": 30
  100863. * }
  100864. * } );
  100865. */
  100866. "rowHeight": "auto",
  100867. /**
  100868. * When using server-side processing, Scroller will wait a small amount of time to allow
  100869. * the scrolling to finish before requesting more data from the server. This prevents
  100870. * you from DoSing your own server! The wait time can be configured by this parameter.
  100871. * @type int
  100872. * @default 200
  100873. * @static
  100874. * @example
  100875. * var oTable = $('#example').dataTable( {
  100876. * "sScrollY": "200px",
  100877. * "sDom": "frtiS",
  100878. * "bDeferRender": true,
  100879. * "oScroller": {
  100880. * "serverWait": 100
  100881. * }
  100882. * } );
  100883. */
  100884. "serverWait": 200,
  100885. /**
  100886. * The display buffer is what Scroller uses to calculate how many rows it should pre-fetch
  100887. * for scrolling. Scroller automatically adjusts DataTables' display length to pre-fetch
  100888. * rows that will be shown in "near scrolling" (i.e. just beyond the current display area).
  100889. * The value is based upon the number of rows that can be displayed in the viewport (i.e.
  100890. * a value of 1), and will apply the display range to records before before and after the
  100891. * current viewport - i.e. a factor of 3 will allow Scroller to pre-fetch 1 viewport's worth
  100892. * of rows before the current viewport, the current viewport's rows and 1 viewport's worth
  100893. * of rows after the current viewport. Adjusting this value can be useful for ensuring
  100894. * smooth scrolling based on your data set.
  100895. * @type int
  100896. * @default 7
  100897. * @static
  100898. * @example
  100899. * var oTable = $('#example').dataTable( {
  100900. * "sScrollY": "200px",
  100901. * "sDom": "frtiS",
  100902. * "bDeferRender": true,
  100903. * "oScroller": {
  100904. * "displayBuffer": 10
  100905. * }
  100906. * } );
  100907. */
  100908. "displayBuffer": 9,
  100909. /**
  100910. * Scroller uses the boundary scaling factor to decide when to redraw the table - which it
  100911. * typically does before you reach the end of the currently loaded data set (in order to
  100912. * allow the data to look continuous to a user scrolling through the data). If given as 0
  100913. * then the table will be redrawn whenever the viewport is scrolled, while 1 would not
  100914. * redraw the table until the currently loaded data has all been shown. You will want
  100915. * something in the middle - the default factor of 0.5 is usually suitable.
  100916. * @type float
  100917. * @default 0.5
  100918. * @static
  100919. * @example
  100920. * var oTable = $('#example').dataTable( {
  100921. * "sScrollY": "200px",
  100922. * "sDom": "frtiS",
  100923. * "bDeferRender": true,
  100924. * "oScroller": {
  100925. * "boundaryScale": 0.75
  100926. * }
  100927. * } );
  100928. */
  100929. "boundaryScale": 0.5,
  100930. /**
  100931. * Show (or not) the loading element in the background of the table. Note that you should
  100932. * include the dataTables.scroller.css file for this to be displayed correctly.
  100933. * @type boolean
  100934. * @default false
  100935. * @static
  100936. * @example
  100937. * var oTable = $('#example').dataTable( {
  100938. * "sScrollY": "200px",
  100939. * "sDom": "frtiS",
  100940. * "bDeferRender": true,
  100941. * "oScroller": {
  100942. * "loadingIndicator": true
  100943. * }
  100944. * } );
  100945. */
  100946. "loadingIndicator": false
  100947. };
  100948. Scroller.oDefaults = Scroller.defaults;
  100949. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  100950. * Constants
  100951. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  100952. /**
  100953. * Scroller version
  100954. * @type String
  100955. * @default See code
  100956. * @name Scroller.version
  100957. * @static
  100958. */
  100959. Scroller.version = "1.3.0";
  100960. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  100961. * Initialisation
  100962. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  100963. // Legacy `dom` parameter initialisation support
  100964. if ( typeof $.fn.dataTable == "function" &&
  100965. typeof $.fn.dataTableExt.fnVersionCheck == "function" &&
  100966. $.fn.dataTableExt.fnVersionCheck('1.10.0') )
  100967. {
  100968. $.fn.dataTableExt.aoFeatures.push( {
  100969. "fnInit": function( oDTSettings ) {
  100970. var init = oDTSettings.oInit;
  100971. var opts = init.scroller || init.oScroller || {};
  100972. new Scroller( oDTSettings, opts );
  100973. },
  100974. "cFeature": "S",
  100975. "sFeature": "Scroller"
  100976. } );
  100977. }
  100978. else
  100979. {
  100980. alert( "Warning: Scroller requires DataTables 1.10.0 or greater - www.datatables.net/download");
  100981. }
  100982. // Attach a listener to the document which listens for DataTables initialisation
  100983. // events so we can automatically initialise
  100984. $(document).on( 'preInit.dt.dtscroller', function (e, settings) {
  100985. if ( e.namespace !== 'dt' ) {
  100986. return;
  100987. }
  100988. var init = settings.oInit.scroller;
  100989. var defaults = DataTable.defaults.scroller;
  100990. if ( init || defaults ) {
  100991. var opts = $.extend( {}, init, defaults );
  100992. if ( init !== false ) {
  100993. new Scroller( settings, opts );
  100994. }
  100995. }
  100996. } );
  100997. // Attach Scroller to DataTables so it can be accessed as an 'extra'
  100998. $.fn.dataTable.Scroller = Scroller;
  100999. $.fn.DataTable.Scroller = Scroller;
  101000. // DataTables 1.10 API method aliases
  101001. var Api = $.fn.dataTable.Api;
  101002. Api.register( 'scroller()', function () {
  101003. return this;
  101004. } );
  101005. // Undocumented and deprecated - is it actually useful at all?
  101006. Api.register( 'scroller().rowToPixels()', function ( rowIdx, intParse, virtual ) {
  101007. var ctx = this.context;
  101008. if ( ctx.length && ctx[0].oScroller ) {
  101009. return ctx[0].oScroller.fnRowToPixels( rowIdx, intParse, virtual );
  101010. }
  101011. // undefined
  101012. } );
  101013. // Undocumented and deprecated - is it actually useful at all?
  101014. Api.register( 'scroller().pixelsToRow()', function ( pixels, intParse, virtual ) {
  101015. var ctx = this.context;
  101016. if ( ctx.length && ctx[0].oScroller ) {
  101017. return ctx[0].oScroller.fnPixelsToRow( pixels, intParse, virtual );
  101018. }
  101019. // undefined
  101020. } );
  101021. // Undocumented and deprecated - use `row().scrollTo()` instead
  101022. Api.register( 'scroller().scrollToRow()', function ( row, ani ) {
  101023. this.iterator( 'table', function ( ctx ) {
  101024. if ( ctx.oScroller ) {
  101025. ctx.oScroller.fnScrollToRow( row, ani );
  101026. }
  101027. } );
  101028. return this;
  101029. } );
  101030. Api.register( 'row().scrollTo()', function ( ani ) {
  101031. var that = this;
  101032. this.iterator( 'row', function ( ctx, rowIdx ) {
  101033. if ( ctx.oScroller ) {
  101034. var displayIdx = that
  101035. .rows( { order: 'applied', search: 'applied' } )
  101036. .indexes()
  101037. .indexOf( rowIdx );
  101038. ctx.oScroller.fnScrollToRow( displayIdx, ani );
  101039. }
  101040. } );
  101041. return this;
  101042. } );
  101043. Api.register( 'scroller.measure()', function ( redraw ) {
  101044. this.iterator( 'table', function ( ctx ) {
  101045. if ( ctx.oScroller ) {
  101046. ctx.oScroller.fnMeasure( redraw );
  101047. }
  101048. } );
  101049. return this;
  101050. } );
  101051. return Scroller;
  101052. }; // /factory
  101053. // Define as an AMD module if possible
  101054. if ( typeof define === 'function' && define.amd ) {
  101055. define( ['jquery', 'datatables'], factory );
  101056. }
  101057. else if ( typeof exports === 'object' ) {
  101058. // Node/CommonJS
  101059. factory( require('jquery'), require('datatables') );
  101060. }
  101061. else if ( jQuery && !jQuery.fn.dataTable.Scroller ) {
  101062. // Otherwise simply initialise as normal, stopping multiple evaluation
  101063. factory( jQuery, jQuery.fn.dataTable );
  101064. }
  101065. })(window, document);
  101066. /*! Select for DataTables 1.0.0
  101067. * 2015 SpryMedia Ltd - datatables.net/license/mit
  101068. */
  101069. /**
  101070. * @summary Select for DataTables
  101071. * @description A collection of API methods, events and buttons for DataTables
  101072. * that provides selection options of the items in a DataTable
  101073. * @version 1.0.0
  101074. * @file dataTables.select.js
  101075. * @author SpryMedia Ltd (www.sprymedia.co.uk)
  101076. * @contact datatables.net/forums
  101077. * @copyright Copyright 2015 SpryMedia Ltd.
  101078. *
  101079. * This source file is free software, available under the following license:
  101080. * MIT license - http://datatables.net/license/mit
  101081. *
  101082. * This source file is distributed in the hope that it will be useful, but
  101083. * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  101084. * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
  101085. *
  101086. * For details please refer to: http://www.datatables.net/extensions/select
  101087. */
  101088. (function(window, document, undefined) {
  101089. var factory = function( $, DataTable ) {
  101090. "use strict";
  101091. // Version information for debugger
  101092. DataTable.select = {};
  101093. DataTable.select.version = '1.0.0';
  101094. /*
  101095. Select is a collection of API methods, event handlers, event emitters and
  101096. buttons (for the `Buttons` extension) for DataTables. It provides the following
  101097. features, with an overview of how they are implemented:
  101098. ## Selection of rows, columns and cells. Whether an item is selected or not is
  101099. stored in:
  101100. * rows: a `_select_selected` property which contains a boolean value of the
  101101. DataTables' `aoData` object for each row
  101102. * columns: a `_select_selected` property which contains a boolean value of the
  101103. DataTables' `aoColumns` object for each column
  101104. * cells: a `_selected_cells` property which contains an array of boolean values
  101105. of the `aoData` object for each row. The array is the same length as the
  101106. columns array, with each element of it representing a cell.
  101107. This method of using boolean flags allows Select to operate when nodes have not
  101108. been created for rows / cells (DataTables' defer rendering feature).
  101109. ## API methods
  101110. A range of API methods are available for triggering selection and de-selection
  101111. of rows. Methods are also available to configure the selection events that can
  101112. be triggered by an end user (such as which items are to be selected). To a large
  101113. extent, these of API methods *is* Select. It is basically a collection of helper
  101114. functions that can be used to select items in a DataTable.
  101115. Configuration of select is held in the object `_select` which is attached to the
  101116. DataTables settings object on initialisation. Select being available on a table
  101117. is not optional when Select is loaded, but its default is for selection only to
  101118. be available via the API - so the end user wouldn't be able to select rows
  101119. without additional configuration.
  101120. The `_select` object contains the following properties:
  101121. ```
  101122. {
  101123. items:string - Can be `rows`, `columns` or `cells`. Defines what item
  101124. will be selected if the user is allowed to activate row
  101125. selection using the mouse.
  101126. style:string - Can be `none`, `single`, `multi` or `os`. Defines the
  101127. interaction style when selecting items
  101128. blurable:boolean - If row selection can be cleared by clicking outside of
  101129. the table
  101130. info:boolean - If the selection summary should be shown in the table
  101131. information elements
  101132. }
  101133. ```
  101134. In addition to the API methods, Select also extends the DataTables selector
  101135. options for rows, columns and cells adding a `selected` option to the selector
  101136. options object, allowing the developer to select only selected items or
  101137. unselected items.
  101138. ## Mouse selection of items
  101139. Clicking on items can be used to select items. This is done by a simple event
  101140. handler that will select the items using the API methods.
  101141. */
  101142. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  101143. * Local functions
  101144. */
  101145. /**
  101146. * Add one or more cells to the selection when shift clicking in OS selection
  101147. * style cell selection.
  101148. *
  101149. * Cell range is more complicated than row and column as we want to select
  101150. * in the visible grid rather than by index in sequence. For example, if you
  101151. * click first in cell 1-1 and then shift click in 2-2 - cells 1-2 and 2-1
  101152. * should also be selected (and not 1-3, 1-4. etc)
  101153. *
  101154. * @param {DataTable.Api} dt DataTable
  101155. * @param {object} idx Cell index to select to
  101156. * @param {object} last Cell index to select from
  101157. * @private
  101158. */
  101159. function cellRange( dt, idx, last )
  101160. {
  101161. var indexes;
  101162. var columnIndexes;
  101163. var rowIndexes;
  101164. var selectColumns = function ( start, end ) {
  101165. if ( start > end ) {
  101166. var tmp = end;
  101167. end = start;
  101168. start = tmp;
  101169. }
  101170. var record = false;
  101171. return dt.columns( ':visible' ).indexes().filter( function (i) {
  101172. if ( i === start ) {
  101173. record = true;
  101174. }
  101175. if ( i === end ) { // not else if, as start might === end
  101176. record = false;
  101177. return true;
  101178. }
  101179. return record;
  101180. } );
  101181. };
  101182. var selectRows = function ( start, end ) {
  101183. var indexes = dt.rows( { search: 'applied' } ).indexes();
  101184. // Which comes first - might need to swap
  101185. if ( indexes.indexOf( start ) > indexes.indexOf( end ) ) {
  101186. var tmp = end;
  101187. end = start;
  101188. start = tmp;
  101189. }
  101190. var record = false;
  101191. return indexes.filter( function (i) {
  101192. if ( i === start ) {
  101193. record = true;
  101194. }
  101195. if ( i === end ) {
  101196. record = false;
  101197. return true;
  101198. }
  101199. return record;
  101200. } );
  101201. };
  101202. if ( ! dt.cells( { selected: true } ).any() && ! last ) {
  101203. // select from the top left cell to this one
  101204. columnIndexes = selectColumns( 0, idx.column );
  101205. rowIndexes = selectRows( 0 , idx.row );
  101206. }
  101207. else {
  101208. // Get column indexes between old and new
  101209. columnIndexes = selectColumns( last.column, idx.column );
  101210. rowIndexes = selectRows( last.row , idx.row );
  101211. }
  101212. indexes = dt.cells( rowIndexes, columnIndexes ).flatten();
  101213. if ( ! dt.cells( idx, { selected: true } ).any() ) {
  101214. // Select range
  101215. dt.cells( indexes ).select();
  101216. }
  101217. else {
  101218. // Deselect range
  101219. dt.cells( indexes ).deselect();
  101220. }
  101221. }
  101222. /**
  101223. * Disable mouse selection by removing the selectors
  101224. *
  101225. * @param {DataTable.Api} dt DataTable to remove events from
  101226. * @private
  101227. */
  101228. function disableMouseSelection( dt )
  101229. {
  101230. var ctx = dt.settings()[0];
  101231. var selector = ctx._select.selector;
  101232. $( dt.table().body() )
  101233. .off( 'mousedown.dtSelect', selector )
  101234. .off( 'mouseup.dtSelect', selector )
  101235. .off( 'click.dtSelect', selector );
  101236. $('body').off( 'click.dtSelect' );
  101237. }
  101238. /**
  101239. * Attach mouse listeners to the table to allow mouse selection of items
  101240. *
  101241. * @param {DataTable.Api} dt DataTable to remove events from
  101242. * @private
  101243. */
  101244. function enableMouseSelection ( dt )
  101245. {
  101246. var body = $( dt.table().body() );
  101247. var ctx = dt.settings()[0];
  101248. var selector = ctx._select.selector;
  101249. body
  101250. .on( 'mousedown.dtSelect', selector, function(e) {
  101251. // Disallow text selection for shift clicking on the table so multi
  101252. // element selection doesn't look terrible!
  101253. if ( e.shiftKey ) {
  101254. body
  101255. .css( '-moz-user-select', 'none' )
  101256. .one('selectstart.dtSelect', selector, function () {
  101257. return false;
  101258. } );
  101259. }
  101260. } )
  101261. .on( 'mouseup.dtSelect', selector, function(e) {
  101262. // Allow text selection to occur again, Mozilla style (tested in FF
  101263. // 35.0.1 - still required)
  101264. body.css( '-moz-user-select', '' );
  101265. } )
  101266. .on( 'click.dtSelect', selector, function ( e ) {
  101267. var items = dt.select.items();
  101268. var cellIndex = dt.cell( this ).index();
  101269. var idx;
  101270. var ctx = dt.settings()[0];
  101271. // Ignore clicks inside a sub-table
  101272. if ( $(e.target).closest('tbody')[0] != body[0] ) {
  101273. return;
  101274. }
  101275. // Check the cell actually belongs to the host DataTable (so child rows,
  101276. // etc, are ignored)
  101277. if ( ! dt.cell( e.target ).any() ) {
  101278. return;
  101279. }
  101280. if ( items === 'row' ) {
  101281. idx = cellIndex.row;
  101282. typeSelect( e, dt, ctx, 'row', idx );
  101283. }
  101284. else if ( items === 'column' ) {
  101285. idx = dt.cell( e.target ).index().column;
  101286. typeSelect( e, dt, ctx, 'column', idx );
  101287. }
  101288. else if ( items === 'cell' ) {
  101289. idx = dt.cell( e.target ).index();
  101290. typeSelect( e, dt, ctx, 'cell', idx );
  101291. }
  101292. ctx._select_lastCell = cellIndex;
  101293. } );
  101294. // Blurable
  101295. $('body').on( 'click.dtSelect', function ( e ) {
  101296. if ( ctx._select.blurable ) {
  101297. // If the click was inside the DataTables container, don't blur
  101298. if ( $(e.target).parents().filter( dt.table().container() ).length ) {
  101299. return;
  101300. }
  101301. // Don't blur in Editor form
  101302. if ( $(e.target).parents('div.DTE').length ) {
  101303. return;
  101304. }
  101305. clear( ctx, true );
  101306. }
  101307. } );
  101308. }
  101309. /**
  101310. * Trigger an event on a DataTable
  101311. *
  101312. * @param {DataTable.Api} api DataTable to trigger events on
  101313. * @param {boolean} selected true if selected, false if deselected
  101314. * @param {string} type Item type acting on
  101315. * @param {boolean} any Require that there are values before
  101316. * triggering
  101317. * @private
  101318. */
  101319. function eventTrigger ( api, type, args, any )
  101320. {
  101321. if ( any && ! api.flatten().length ) {
  101322. return;
  101323. }
  101324. args.unshift( api );
  101325. $(api.table().node()).triggerHandler( type+'.dt', args );
  101326. }
  101327. /**
  101328. * Update the information element of the DataTable showing information about the
  101329. * items selected. This is done by adding tags to the existing text
  101330. *
  101331. * @param {DataTable.Api} api DataTable to update
  101332. * @private
  101333. */
  101334. function info ( api )
  101335. {
  101336. var ctx = api.settings()[0];
  101337. if ( ! ctx._select.info ) {
  101338. return;
  101339. }
  101340. var output = $('<span class="select-info"/>');
  101341. var add = function ( name, num ) {
  101342. output.append( $('<span class="select-item"/>').append( api.i18n(
  101343. 'select.'+name+'s',
  101344. { _: '%d '+name+'s selected', 0: '', 1: '1 '+name+' selected' },
  101345. num
  101346. ) ) );
  101347. };
  101348. add( 'row', api.rows( { selected: true } ).flatten().length );
  101349. add( 'column', api.columns( { selected: true } ).flatten().length );
  101350. add( 'cell', api.cells( { selected: true } ).flatten().length );
  101351. // Internal knowledge of DataTables to loop over all information elements
  101352. $.each( ctx.aanFeatures.i, function ( i, el ) {
  101353. el = $(el);
  101354. var exisiting = el.children('span.select-info');
  101355. if ( exisiting.length ) {
  101356. exisiting.remove();
  101357. }
  101358. if ( output.text() !== '' ) {
  101359. el.append( output );
  101360. }
  101361. } );
  101362. }
  101363. /**
  101364. * Initialisation of a new table. Attach event handlers and callbacks to allow
  101365. * Select to operate correctly.
  101366. *
  101367. * This will occur _after_ the initial DataTables initialisation, although
  101368. * before Ajax data is rendered, if there is ajax data
  101369. *
  101370. * @param {DataTable.settings} ctx Settings object to operate on
  101371. * @private
  101372. */
  101373. function init ( ctx ) {
  101374. var api = new DataTable.Api( ctx );
  101375. // Row callback so that classes can be added to rows and cells if the item
  101376. // was selected before the element was created. This will happen with the
  101377. // `deferRender` option enabled.
  101378. //
  101379. // This method of attaching to `aoRowCreatedCallback` is a hack until
  101380. // DataTables has proper events for row manipulation If you are reviewing
  101381. // this code to create your own plug-ins, please do not do this!
  101382. ctx.aoRowCreatedCallback.push( {
  101383. fn: function ( row, data, index ) {
  101384. var i, ien;
  101385. var d = ctx.aoData[ index ];
  101386. // Row
  101387. if ( d._select_selected ) {
  101388. $( row ).addClass( 'selected' );
  101389. }
  101390. // Cells and columns - if separated out, we would need to do two
  101391. // loops, so it makes sense to combine them into a single one
  101392. for ( i=0, ien=ctx.aoColumns.length ; i<ien ; i++ ) {
  101393. if ( ctx.aoColumns[i]._select_selected || (d._selected_cells && d._selected_cells[i]) ) {
  101394. $(d.anCells[i]).addClass( 'selected' );
  101395. }
  101396. }
  101397. },
  101398. sName: 'select-deferRender'
  101399. } );
  101400. // On Ajax reload we want to reselect all rows which are currently selected,
  101401. // if there is an rowId (i.e. a unique value to identify each row with)
  101402. api.on( 'preXhr.dt.dtSelect', function () {
  101403. // note that column selection doesn't need to be cached and then
  101404. // reselected, as they are already selected
  101405. var rows = api.rows( { selected: true } ).ids( true ).filter( function ( d ) {
  101406. return d !== undefined;
  101407. } );
  101408. var cells = api.cells( { selected: true } ).eq(0).map( function ( cellIdx ) {
  101409. var id = api.row( cellIdx.row ).id( true );
  101410. return id ?
  101411. { row: id, column: cellIdx.column } :
  101412. undefined;
  101413. } ).filter( function ( d ) {
  101414. return d !== undefined;
  101415. } );
  101416. // On the next draw, reselect the currently selected items
  101417. api.one( 'draw.dt.dtSelect', function () {
  101418. api.rows( rows ).select();
  101419. // `cells` is not a cell index selector, so it needs a loop
  101420. if ( cells.any() ) {
  101421. cells.each( function ( id ) {
  101422. api.cells( id.row, id.column ).select();
  101423. } );
  101424. }
  101425. } );
  101426. } );
  101427. // Update the table information element with selected item summary
  101428. api.on( 'draw.dtSelect.dt select.dtSelect.dt deselect.dtSelect.dt', function () {
  101429. info( api );
  101430. } );
  101431. // Clean up and release
  101432. api.on( 'destroy.dtSelect', function () {
  101433. disableMouseSelection( api );
  101434. api.off( '.dtSelect' );
  101435. } );
  101436. }
  101437. /**
  101438. * Add one or more items (rows or columns) to the selection when shift clicking
  101439. * in OS selection style
  101440. *
  101441. * @param {DataTable.Api} dt DataTable
  101442. * @param {string} type Row or column range selector
  101443. * @param {object} idx Item index to select to
  101444. * @param {object} last Item index to select from
  101445. * @private
  101446. */
  101447. function rowColumnRange( dt, type, idx, last )
  101448. {
  101449. // Add a range of rows from the last selected row to this one
  101450. var indexes = dt[type+'s']( { search: 'applied' } ).indexes();
  101451. var idx1 = $.inArray( last, indexes );
  101452. var idx2 = $.inArray( idx, indexes );
  101453. if ( ! dt[type+'s']( { selected: true } ).any() && idx1 === -1 ) {
  101454. // select from top to here - slightly odd, but both Windows and Mac OS
  101455. // do this
  101456. indexes.splice( $.inArray( idx, indexes )+1, indexes.length );
  101457. }
  101458. else {
  101459. // reverse so we can shift click 'up' as well as down
  101460. if ( idx1 > idx2 ) {
  101461. var tmp = idx2;
  101462. idx2 = idx1;
  101463. idx1 = tmp;
  101464. }
  101465. indexes.splice( idx2+1, indexes.length );
  101466. indexes.splice( 0, idx1 );
  101467. }
  101468. if ( ! dt[type]( idx, { selected: true } ).any() ) {
  101469. // Select range
  101470. dt[type+'s']( indexes ).select();
  101471. }
  101472. else {
  101473. // Deselect range - need to keep the clicked on row selected
  101474. indexes.splice( $.inArray( idx, indexes ), 1 );
  101475. dt[type+'s']( indexes ).deselect();
  101476. }
  101477. }
  101478. /**
  101479. * Clear all selected items
  101480. *
  101481. * @param {DataTable.settings} ctx Settings object of the host DataTable
  101482. * @param {boolean} [force=false] Force the de-selection to happen, regardless
  101483. * of selection style
  101484. * @private
  101485. */
  101486. function clear( ctx, force )
  101487. {
  101488. if ( force || ctx._select.style === 'single' ) {
  101489. var api = new DataTable.Api( ctx );
  101490. api.rows( { selected: true } ).deselect();
  101491. api.columns( { selected: true } ).deselect();
  101492. api.cells( { selected: true } ).deselect();
  101493. }
  101494. }
  101495. /**
  101496. * Select items based on the current configuration for style and items.
  101497. *
  101498. * @param {object} e Mouse event object
  101499. * @param {DataTables.Api} dt DataTable
  101500. * @param {DataTable.settings} ctx Settings object of the host DataTable
  101501. * @param {string} type Items to select
  101502. * @param {int|object} idx Index of the item to select
  101503. * @private
  101504. */
  101505. function typeSelect ( e, dt, ctx, type, idx )
  101506. {
  101507. var style = dt.select.style();
  101508. var isSelected = dt[type]( idx, { selected: true } ).any();
  101509. if ( style === 'os' ) {
  101510. if ( e.ctrlKey || e.metaKey ) {
  101511. // Add or remove from the selection
  101512. dt[type]( idx ).select( ! isSelected );
  101513. }
  101514. else if ( e.shiftKey ) {
  101515. if ( type === 'cell' ) {
  101516. cellRange( dt, idx, ctx._select_lastCell || null );
  101517. }
  101518. else {
  101519. rowColumnRange( dt, type, idx, ctx._select_lastCell ?
  101520. ctx._select_lastCell[type] :
  101521. null
  101522. );
  101523. }
  101524. }
  101525. else {
  101526. // No cmd or shift click - deselect if selected, or select
  101527. // this row only
  101528. var selected = dt[type+'s']( { selected: true } );
  101529. if ( isSelected && selected.flatten().length === 1 ) {
  101530. dt[type]( idx ).deselect();
  101531. }
  101532. else {
  101533. selected.deselect();
  101534. dt[type]( idx ).select();
  101535. }
  101536. }
  101537. }
  101538. else {
  101539. dt[ type ]( idx ).select( ! isSelected );
  101540. }
  101541. }
  101542. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  101543. * DataTables selectors
  101544. */
  101545. // row and column are basically identical just assigned to different properties
  101546. // and checking a different array, so we can dynamically create the functions to
  101547. // reduce the code size
  101548. $.each( [
  101549. { type: 'row', prop: 'aoData' },
  101550. { type: 'column', prop: 'aoColumns' }
  101551. ], function ( i, o ) {
  101552. DataTable.ext.selector[ o.type ].push( function ( settings, opts, indexes ) {
  101553. var selected = opts.selected;
  101554. var data;
  101555. var out = [];
  101556. if ( selected === undefined ) {
  101557. return indexes;
  101558. }
  101559. for ( var i=0, ien=indexes.length ; i<ien ; i++ ) {
  101560. data = settings[ o.prop ][ indexes[i] ];
  101561. if ( (selected === true && data._select_selected === true) ||
  101562. (selected === false && ! data._select_selected )
  101563. ) {
  101564. out.push( indexes[i] );
  101565. }
  101566. }
  101567. return out;
  101568. } );
  101569. } );
  101570. DataTable.ext.selector.cell.push( function ( settings, opts, cells ) {
  101571. var selected = opts.selected;
  101572. var rowData;
  101573. var out = [];
  101574. if ( selected === undefined ) {
  101575. return cells;
  101576. }
  101577. for ( var i=0, ien=cells.length ; i<ien ; i++ ) {
  101578. rowData = settings.aoData[ cells[i].row ];
  101579. if ( (selected === true && rowData._selected_cells && rowData._selected_cells[ cells[i].column ] === true) ||
  101580. (selected === false && ( ! rowData._selected_cells || ! rowData._selected_cells[ cells[i].column ] ) )
  101581. ) {
  101582. out.push( cells[i] );
  101583. }
  101584. }
  101585. return out;
  101586. } );
  101587. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  101588. * DataTables API
  101589. *
  101590. * For complete documentation, please refer to the docs/api directory or the
  101591. * DataTables site
  101592. */
  101593. // Local variables to improve compression
  101594. var apiRegister = DataTable.Api.register;
  101595. var apiRegisterPlural = DataTable.Api.registerPlural;
  101596. apiRegister( 'select()', function () {} );
  101597. apiRegister( 'select.blurable()', function ( flag ) {
  101598. if ( flag === undefined ) {
  101599. return this.context[0]._select.blurable;
  101600. }
  101601. return this.iterator( 'table', function ( ctx ) {
  101602. ctx._select.blurable = flag;
  101603. } );
  101604. } );
  101605. apiRegister( 'select.info()', function ( flag ) {
  101606. if ( info === undefined ) {
  101607. return this.context[0]._select.info;
  101608. }
  101609. return this.iterator( 'table', function ( ctx ) {
  101610. ctx._select.info = flag;
  101611. } );
  101612. } );
  101613. apiRegister( 'select.items()', function ( items ) {
  101614. if ( items === undefined ) {
  101615. return this.context[0]._select.items;
  101616. }
  101617. return this.iterator( 'table', function ( ctx ) {
  101618. ctx._select.items = items;
  101619. eventTrigger( new DataTable.Api( ctx ), 'selectItems', [ items ] );
  101620. } );
  101621. } );
  101622. // Takes effect from the _next_ selection. None disables future selection, but
  101623. // does not clear the current selection. Use the `deselect` methods for that
  101624. apiRegister( 'select.style()', function ( style ) {
  101625. if ( style === undefined ) {
  101626. return this.context[0]._select.style;
  101627. }
  101628. return this.iterator( 'table', function ( ctx ) {
  101629. ctx._select.style = style;
  101630. if ( ! ctx._select_init ) {
  101631. init( ctx );
  101632. }
  101633. // Add / remove mouse event handlers. They aren't required when only
  101634. // API selection is available
  101635. var dt = new DataTable.Api( ctx );
  101636. disableMouseSelection( dt );
  101637. if ( style !== 'api' ) {
  101638. enableMouseSelection( dt );
  101639. }
  101640. eventTrigger( new DataTable.Api( ctx ), 'selectStyle', [ style ] );
  101641. } );
  101642. } );
  101643. apiRegister( 'select.selector()', function ( selector ) {
  101644. if ( selector === undefined ) {
  101645. return this.context[0]._select.selector;
  101646. }
  101647. return this.iterator( 'table', function ( ctx ) {
  101648. disableMouseSelection( new DataTable.Api( ctx ) );
  101649. ctx._select.selector = selector;
  101650. if ( ctx._select.style !== 'api' ) {
  101651. enableMouseSelection( new DataTable.Api( ctx ) );
  101652. }
  101653. } );
  101654. } );
  101655. apiRegisterPlural( 'rows().select()', 'row().select()', function ( select ) {
  101656. var api = this;
  101657. if ( select === false ) {
  101658. return this.deselect();
  101659. }
  101660. this.iterator( 'row', function ( ctx, idx ) {
  101661. clear( ctx );
  101662. ctx.aoData[ idx ]._select_selected = true;
  101663. $( ctx.aoData[ idx ].nTr ).addClass( 'selected' );
  101664. } );
  101665. this.iterator( 'table', function ( ctx, i ) {
  101666. eventTrigger( api, 'select', [ 'row', api[i] ], true );
  101667. } );
  101668. return this;
  101669. } );
  101670. apiRegisterPlural( 'columns().select()', 'column().select()', function ( select ) {
  101671. var api = this;
  101672. if ( select === false ) {
  101673. return this.deselect();
  101674. }
  101675. this.iterator( 'column', function ( ctx, idx ) {
  101676. clear( ctx );
  101677. ctx.aoColumns[ idx ]._select_selected = true;
  101678. var column = new DataTable.Api( ctx ).column( idx );
  101679. $( column.header() ).addClass( 'selected' );
  101680. $( column.footer() ).addClass( 'selected' );
  101681. column.nodes().to$().addClass( 'selected' );
  101682. } );
  101683. this.iterator( 'table', function ( ctx, i ) {
  101684. eventTrigger( api, 'select', [ 'column', api[i] ], true );
  101685. } );
  101686. return this;
  101687. } );
  101688. apiRegisterPlural( 'cells().select()', 'cell().select()', function ( select ) {
  101689. var api = this;
  101690. if ( select === false ) {
  101691. return this.deselect();
  101692. }
  101693. this.iterator( 'cell', function ( ctx, rowIdx, colIdx ) {
  101694. clear( ctx );
  101695. var data = ctx.aoData[ rowIdx ];
  101696. if ( data._selected_cells === undefined ) {
  101697. data._selected_cells = [];
  101698. }
  101699. data._selected_cells[ colIdx ] = true;
  101700. if ( data.anCells ) {
  101701. $( data.anCells[ colIdx ] ).addClass( 'selected' );
  101702. }
  101703. } );
  101704. this.iterator( 'table', function ( ctx, i ) {
  101705. eventTrigger( api, 'select', [ 'cell', api[i] ], true );
  101706. } );
  101707. return this;
  101708. } );
  101709. apiRegisterPlural( 'rows().deselect()', 'row().deselect()', function () {
  101710. var api = this;
  101711. this.iterator( 'row', function ( ctx, idx ) {
  101712. ctx.aoData[ idx ]._select_selected = false;
  101713. $( ctx.aoData[ idx ].nTr ).removeClass( 'selected' );
  101714. } );
  101715. this.iterator( 'table', function ( ctx, i ) {
  101716. eventTrigger( api, 'deselect', [ 'row', api[i] ], true );
  101717. } );
  101718. return this;
  101719. } );
  101720. apiRegisterPlural( 'columns().deselect()', 'column().deselect()', function () {
  101721. var api = this;
  101722. this.iterator( 'column', function ( ctx, idx ) {
  101723. ctx.aoColumns[ idx ]._select_selected = false;
  101724. var api = new DataTable.Api( ctx );
  101725. var column = api.column( idx );
  101726. $( column.header() ).removeClass( 'selected' );
  101727. $( column.footer() ).removeClass( 'selected' );
  101728. // Need to loop over each cell, rather than just using
  101729. // `column().nodes()` as cells which are individually selected should
  101730. // not have the `selected` class removed from them
  101731. api.cells( null, idx ).indexes().each( function (cellIdx) {
  101732. var data = ctx.aoData[ cellIdx.row ];
  101733. var cellSelected = data._selected_cells;
  101734. if ( data.anCells && (! cellSelected || ! cellSelected[ cellIdx.column ]) ) {
  101735. $( data.anCells[ cellIdx.column ] ).removeClass( 'selected' );
  101736. }
  101737. } );
  101738. } );
  101739. this.iterator( 'table', function ( ctx, i ) {
  101740. eventTrigger( api, 'deselect', [ 'column', api[i] ], true );
  101741. } );
  101742. return this;
  101743. } );
  101744. apiRegisterPlural( 'cells().deselect()', 'cell().deselect()', function () {
  101745. var api = this;
  101746. this.iterator( 'cell', function ( ctx, rowIdx, colIdx ) {
  101747. var data = ctx.aoData[ rowIdx ];
  101748. data._selected_cells[ colIdx ] = false;
  101749. // Remove class only if the cells exist, and the cell is not column
  101750. // selected, in which case the class should remain (since it is selected
  101751. // in the column)
  101752. if ( data.anCells && ! ctx.aoColumns[ colIdx ]._select_selected ) {
  101753. $( data.anCells[ colIdx ] ).removeClass( 'selected' );
  101754. }
  101755. } );
  101756. this.iterator( 'table', function ( ctx, i ) {
  101757. eventTrigger( api, 'deselect', [ 'cell', api[i] ], true );
  101758. } );
  101759. return this;
  101760. } );
  101761. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  101762. * Buttons
  101763. */
  101764. function i18n( label, def ) {
  101765. return function (dt) {
  101766. return dt.i18n( 'buttons.'+label, def );
  101767. };
  101768. }
  101769. $.extend( DataTable.ext.buttons, {
  101770. selected: {
  101771. text: i18n( 'selected', 'Selected' ),
  101772. className: 'buttons-selected',
  101773. init: function ( dt, button, config ) {
  101774. var that = this;
  101775. // .DT namespace listeners are removed by DataTables automatically
  101776. // on table destroy
  101777. dt.on( 'select.dt.DT deselect.dt.DT', function () {
  101778. var enable = that.rows( { selected: true } ).any() ||
  101779. that.columns( { selected: true } ).any() ||
  101780. that.cells( { selected: true } ).any();
  101781. that.enable( enable );
  101782. } );
  101783. this.disable();
  101784. }
  101785. },
  101786. selectedSingle: {
  101787. text: i18n( 'selectedSingle', 'Selected single' ),
  101788. className: 'buttons-selected-single',
  101789. init: function ( dt, button, config ) {
  101790. var that = this;
  101791. dt.on( 'select.dt.DT deselect.dt.DT', function () {
  101792. var count = dt.rows( { selected: true } ).flatten().length +
  101793. dt.columns( { selected: true } ).flatten().length +
  101794. dt.cells( { selected: true } ).flatten().length;
  101795. that.enable( count === 1 );
  101796. } );
  101797. this.disable();
  101798. }
  101799. },
  101800. selectAll: {
  101801. text: i18n( 'selectAll', 'Select all' ),
  101802. className: 'buttons-select-all',
  101803. action: function () {
  101804. var items = this.select.items();
  101805. this[ items+'s' ]().select();
  101806. }
  101807. },
  101808. selectNone: {
  101809. text: i18n( 'selectNone', 'Deselect all' ),
  101810. className: 'buttons-select-none',
  101811. action: function () {
  101812. clear( this.settings()[0], true );
  101813. }
  101814. }
  101815. } );
  101816. $.each( [ 'Row', 'Column', 'Cell' ], function ( i, item ) {
  101817. var lc = item.toLowerCase();
  101818. DataTable.ext.buttons[ 'select'+item+'s' ] = {
  101819. text: i18n( 'select'+item+'s', 'Select '+lc+'s' ),
  101820. className: 'buttons-select-'+lc+'s',
  101821. action: function () {
  101822. this.select.items( lc );
  101823. },
  101824. init: function ( dt, button, config ) {
  101825. var that = this;
  101826. dt.on( 'selectItems.dt.DT', function ( e, ctx, items ) {
  101827. that.active( items === lc );
  101828. } );
  101829. }
  101830. };
  101831. } );
  101832. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  101833. * Initialisation
  101834. */
  101835. // DataTables creation - check if the buttons have been defined for this table,
  101836. // they will have been if the `B` option was used in `dom`, otherwise we should
  101837. // create the buttons instance here so they can be inserted into the document
  101838. // using the API
  101839. $(document).on( 'init.dt.dtSelect', function (e, ctx, json) {
  101840. if ( e.namespace !== 'dt' ) {
  101841. return;
  101842. }
  101843. var opts = ctx.oInit.select || DataTable.defaults.select;
  101844. var dt = new DataTable.Api( ctx );
  101845. // Set defaults
  101846. var items = 'row';
  101847. var style = 'api';
  101848. var blurable = false;
  101849. var info = true;
  101850. var selector = 'td, th';
  101851. ctx._select = {};
  101852. // Initialisation customisations
  101853. if ( opts === true ) {
  101854. style = 'os';
  101855. }
  101856. else if ( typeof opts === 'string' ) {
  101857. style = opts;
  101858. }
  101859. else if ( $.isPlainObject( opts ) ) {
  101860. if ( opts.blurable !== undefined ) {
  101861. blurable = opts.blurable;
  101862. }
  101863. if ( opts.info !== undefined ) {
  101864. info = opts.info;
  101865. }
  101866. if ( opts.items !== undefined ) {
  101867. items = opts.items;
  101868. }
  101869. if ( opts.style !== undefined ) {
  101870. style = opts.style;
  101871. }
  101872. if ( opts.selector !== undefined ) {
  101873. selector = opts.selector;
  101874. }
  101875. }
  101876. dt.select.selector( selector );
  101877. dt.select.items( items );
  101878. dt.select.style( style );
  101879. dt.select.blurable( blurable );
  101880. dt.select.info( info );
  101881. // If the init options haven't enabled select, but there is a selectable
  101882. // class name, then enable
  101883. if ( $( dt.table().node() ).hasClass( 'selectable' ) ) {
  101884. dt.select.style( 'os' );
  101885. }
  101886. } );
  101887. }; // /factory
  101888. // Define as an AMD module if possible
  101889. if ( typeof define === 'function' && define.amd ) {
  101890. define( ['jquery', 'datatables'], factory );
  101891. }
  101892. else if ( typeof exports === 'object' ) {
  101893. // Node/CommonJS
  101894. factory( require('jquery'), require('datatables') );
  101895. }
  101896. else if ( jQuery && !jQuery.fn.dataTable.select ) {
  101897. // Otherwise simply initialise as normal, stopping multiple evaluation
  101898. factory( jQuery, jQuery.fn.dataTable );
  101899. }
  101900. })(window, document);
  101901. /*!
  101902. * jquery.inputmask.bundle.js
  101903. * http://github.com/RobinHerbots/jquery.inputmask
  101904. * Copyright (c) 2010 - 2015 Robin Herbots
  101905. * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
  101906. * Version: 3.2.1-29
  101907. */
  101908. !function($) {
  101909. function Inputmask(options) {
  101910. this.el = void 0, this.opts = $.extend(!0, {}, this.defaults, options), this.noMasksCache = options && void 0 !== options.definitions,
  101911. this.userOptions = options || {}, resolveAlias(this.opts.alias, options, this.opts);
  101912. }
  101913. function isInputEventSupported(eventName) {
  101914. var el = document.createElement("input"), evName = "on" + eventName, isSupported = evName in el;
  101915. return isSupported || (el.setAttribute(evName, "return;"), isSupported = "function" == typeof el[evName]),
  101916. el = null, isSupported;
  101917. }
  101918. function isInputTypeSupported(inputType) {
  101919. var isSupported = "text" === inputType || "tel" === inputType || "password" === inputType;
  101920. if (!isSupported) {
  101921. var el = document.createElement("input");
  101922. el.setAttribute("type", inputType), isSupported = "text" === el.type, el = null;
  101923. }
  101924. return isSupported;
  101925. }
  101926. function resolveAlias(aliasStr, options, opts) {
  101927. var aliasDefinition = opts.aliases[aliasStr];
  101928. return aliasDefinition ? (aliasDefinition.alias && resolveAlias(aliasDefinition.alias, void 0, opts),
  101929. $.extend(!0, opts, aliasDefinition), $.extend(!0, opts, options), !0) : (null === opts.mask && (opts.mask = aliasStr),
  101930. !1);
  101931. }
  101932. function importAttributeOptions(npt, opts, userOptions) {
  101933. function importOption(option) {
  101934. var optionData = npt.getAttribute("data-inputmask-" + option.toLowerCase());
  101935. null !== optionData && (optionData = "boolean" == typeof optionData ? optionData : optionData.toString(),
  101936. "string" == typeof optionData && 0 === option.indexOf("on") && (optionData = eval("(" + optionData + ")")),
  101937. "mask" === option && 0 === optionData.indexOf("[") ? (userOptions[option] = optionData.replace(/[\s[\]]/g, "").split(","),
  101938. userOptions[option][0] = userOptions[option][0].replace("'", ""), userOptions[option][userOptions[option].length - 1] = userOptions[option][userOptions[option].length - 1].replace("'", "")) : userOptions[option] = optionData);
  101939. }
  101940. var attrOptions = npt.getAttribute("data-inputmask");
  101941. if (attrOptions && "" !== attrOptions) try {
  101942. attrOptions = attrOptions.replace(new RegExp("'", "g"), '"');
  101943. var dataoptions = $.parseJSON("{" + attrOptions + "}");
  101944. $.extend(!0, userOptions, dataoptions);
  101945. } catch (ex) {}
  101946. for (var option in opts) importOption(option);
  101947. if (userOptions.alias) {
  101948. resolveAlias(userOptions.alias, userOptions, opts);
  101949. for (option in opts) importOption(option);
  101950. }
  101951. return $.extend(!0, opts, userOptions), opts;
  101952. }
  101953. function generateMaskSet(opts, nocache) {
  101954. function analyseMask(mask) {
  101955. function MaskToken(isGroup, isOptional, isQuantifier, isAlternator) {
  101956. this.matches = [], this.isGroup = isGroup || !1, this.isOptional = isOptional || !1,
  101957. this.isQuantifier = isQuantifier || !1, this.isAlternator = isAlternator || !1,
  101958. this.quantifier = {
  101959. min: 1,
  101960. max: 1
  101961. };
  101962. }
  101963. function insertTestDefinition(mtoken, element, position) {
  101964. var maskdef = opts.definitions[element];
  101965. position = void 0 !== position ? position : mtoken.matches.length;
  101966. var prevMatch = mtoken.matches[position - 1];
  101967. if (maskdef && !escaped) {
  101968. maskdef.placeholder = $.isFunction(maskdef.placeholder) ? maskdef.placeholder.call(this, opts) : maskdef.placeholder;
  101969. for (var prevalidators = maskdef.prevalidator, prevalidatorsL = prevalidators ? prevalidators.length : 0, i = 1; i < maskdef.cardinality; i++) {
  101970. var prevalidator = prevalidatorsL >= i ? prevalidators[i - 1] : [], validator = prevalidator.validator, cardinality = prevalidator.cardinality;
  101971. mtoken.matches.splice(position++, 0, {
  101972. fn: validator ? "string" == typeof validator ? new RegExp(validator) : new function() {
  101973. this.test = validator;
  101974. }() : new RegExp("."),
  101975. cardinality: cardinality ? cardinality : 1,
  101976. optionality: mtoken.isOptional,
  101977. newBlockMarker: void 0 === prevMatch || prevMatch.def !== (maskdef.definitionSymbol || element),
  101978. casing: maskdef.casing,
  101979. def: maskdef.definitionSymbol || element,
  101980. placeholder: maskdef.placeholder,
  101981. mask: element
  101982. }), prevMatch = mtoken.matches[position - 1];
  101983. }
  101984. mtoken.matches.splice(position++, 0, {
  101985. fn: maskdef.validator ? "string" == typeof maskdef.validator ? new RegExp(maskdef.validator) : new function() {
  101986. this.test = maskdef.validator;
  101987. }() : new RegExp("."),
  101988. cardinality: maskdef.cardinality,
  101989. optionality: mtoken.isOptional,
  101990. newBlockMarker: void 0 === prevMatch || prevMatch.def !== (maskdef.definitionSymbol || element),
  101991. casing: maskdef.casing,
  101992. def: maskdef.definitionSymbol || element,
  101993. placeholder: maskdef.placeholder,
  101994. mask: element
  101995. });
  101996. } else mtoken.matches.splice(position++, 0, {
  101997. fn: null,
  101998. cardinality: 0,
  101999. optionality: mtoken.isOptional,
  102000. newBlockMarker: void 0 === prevMatch || prevMatch.def !== element,
  102001. casing: null,
  102002. def: element,
  102003. placeholder: void 0,
  102004. mask: element
  102005. }), escaped = !1;
  102006. }
  102007. function verifyGroupMarker(lastMatch, isOpenGroup) {
  102008. lastMatch.isGroup && (lastMatch.isGroup = !1, insertTestDefinition(lastMatch, opts.groupmarker.start, 0),
  102009. isOpenGroup !== !0 && insertTestDefinition(lastMatch, opts.groupmarker.end));
  102010. }
  102011. function maskCurrentToken(m, currentToken, lastMatch, extraCondition) {
  102012. currentToken.matches.length > 0 && (void 0 === extraCondition || extraCondition) && (lastMatch = currentToken.matches[currentToken.matches.length - 1],
  102013. verifyGroupMarker(lastMatch)), insertTestDefinition(currentToken, m);
  102014. }
  102015. function defaultCase() {
  102016. if (openenings.length > 0) {
  102017. if (currentOpeningToken = openenings[openenings.length - 1], maskCurrentToken(m, currentOpeningToken, lastMatch, !currentOpeningToken.isAlternator),
  102018. currentOpeningToken.isAlternator) {
  102019. alternator = openenings.pop();
  102020. for (var mndx = 0; mndx < alternator.matches.length; mndx++) alternator.matches[mndx].isGroup = !1;
  102021. openenings.length > 0 ? (currentOpeningToken = openenings[openenings.length - 1],
  102022. currentOpeningToken.matches.push(alternator)) : currentToken.matches.push(alternator);
  102023. }
  102024. } else maskCurrentToken(m, currentToken, lastMatch);
  102025. }
  102026. function reverseTokens(maskToken) {
  102027. function reverseStatic(st) {
  102028. return st === opts.optionalmarker.start ? st = opts.optionalmarker.end : st === opts.optionalmarker.end ? st = opts.optionalmarker.start : st === opts.groupmarker.start ? st = opts.groupmarker.end : st === opts.groupmarker.end && (st = opts.groupmarker.start),
  102029. st;
  102030. }
  102031. maskToken.matches = maskToken.matches.reverse();
  102032. for (var match in maskToken.matches) {
  102033. var intMatch = parseInt(match);
  102034. if (maskToken.matches[match].isQuantifier && maskToken.matches[intMatch + 1] && maskToken.matches[intMatch + 1].isGroup) {
  102035. var qt = maskToken.matches[match];
  102036. maskToken.matches.splice(match, 1), maskToken.matches.splice(intMatch + 1, 0, qt);
  102037. }
  102038. void 0 !== maskToken.matches[match].matches ? maskToken.matches[match] = reverseTokens(maskToken.matches[match]) : maskToken.matches[match] = reverseStatic(maskToken.matches[match]);
  102039. }
  102040. return maskToken;
  102041. }
  102042. for (var match, m, openingToken, currentOpeningToken, alternator, lastMatch, groupToken, tokenizer = /(?:[?*+]|\{[0-9\+\*]+(?:,[0-9\+\*]*)?\})|[^.?*+^${[]()|\\]+|./g, escaped = !1, currentToken = new MaskToken(), openenings = [], maskTokens = []; match = tokenizer.exec(mask); ) if (m = match[0],
  102043. escaped) defaultCase(); else switch (m.charAt(0)) {
  102044. case opts.escapeChar:
  102045. escaped = !0;
  102046. break;
  102047. case opts.optionalmarker.end:
  102048. case opts.groupmarker.end:
  102049. if (openingToken = openenings.pop(), void 0 !== openingToken) if (openenings.length > 0) {
  102050. if (currentOpeningToken = openenings[openenings.length - 1], currentOpeningToken.matches.push(openingToken),
  102051. currentOpeningToken.isAlternator) {
  102052. alternator = openenings.pop();
  102053. for (var mndx = 0; mndx < alternator.matches.length; mndx++) alternator.matches[mndx].isGroup = !1;
  102054. openenings.length > 0 ? (currentOpeningToken = openenings[openenings.length - 1],
  102055. currentOpeningToken.matches.push(alternator)) : currentToken.matches.push(alternator);
  102056. }
  102057. } else currentToken.matches.push(openingToken); else defaultCase();
  102058. break;
  102059. case opts.optionalmarker.start:
  102060. openenings.push(new MaskToken(!1, !0));
  102061. break;
  102062. case opts.groupmarker.start:
  102063. openenings.push(new MaskToken(!0));
  102064. break;
  102065. case opts.quantifiermarker.start:
  102066. var quantifier = new MaskToken(!1, !1, !0);
  102067. m = m.replace(/[{}]/g, "");
  102068. var mq = m.split(","), mq0 = isNaN(mq[0]) ? mq[0] : parseInt(mq[0]), mq1 = 1 === mq.length ? mq0 : isNaN(mq[1]) ? mq[1] : parseInt(mq[1]);
  102069. if (("*" === mq1 || "+" === mq1) && (mq0 = "*" === mq1 ? 0 : 1), quantifier.quantifier = {
  102070. min: mq0,
  102071. max: mq1
  102072. }, openenings.length > 0) {
  102073. var matches = openenings[openenings.length - 1].matches;
  102074. match = matches.pop(), match.isGroup || (groupToken = new MaskToken(!0), groupToken.matches.push(match),
  102075. match = groupToken), matches.push(match), matches.push(quantifier);
  102076. } else match = currentToken.matches.pop(), match.isGroup || (groupToken = new MaskToken(!0),
  102077. groupToken.matches.push(match), match = groupToken), currentToken.matches.push(match),
  102078. currentToken.matches.push(quantifier);
  102079. break;
  102080. case opts.alternatormarker:
  102081. openenings.length > 0 ? (currentOpeningToken = openenings[openenings.length - 1],
  102082. lastMatch = currentOpeningToken.matches.pop()) : lastMatch = currentToken.matches.pop(),
  102083. lastMatch.isAlternator ? openenings.push(lastMatch) : (alternator = new MaskToken(!1, !1, !1, !0),
  102084. alternator.matches.push(lastMatch), openenings.push(alternator));
  102085. break;
  102086. default:
  102087. defaultCase();
  102088. }
  102089. for (;openenings.length > 0; ) openingToken = openenings.pop(), verifyGroupMarker(openingToken, !0),
  102090. currentToken.matches.push(openingToken);
  102091. return currentToken.matches.length > 0 && (lastMatch = currentToken.matches[currentToken.matches.length - 1],
  102092. verifyGroupMarker(lastMatch), maskTokens.push(currentToken)), opts.numericInput && reverseTokens(maskTokens[0]),
  102093. maskTokens;
  102094. }
  102095. function generateMask(mask, metadata) {
  102096. if (null === mask || "" === mask) return void 0;
  102097. if (1 === mask.length && opts.greedy === !1 && 0 !== opts.repeat && (opts.placeholder = ""),
  102098. opts.repeat > 0 || "*" === opts.repeat || "+" === opts.repeat) {
  102099. var repeatStart = "*" === opts.repeat ? 0 : "+" === opts.repeat ? 1 : opts.repeat;
  102100. mask = opts.groupmarker.start + mask + opts.groupmarker.end + opts.quantifiermarker.start + repeatStart + "," + opts.repeat + opts.quantifiermarker.end;
  102101. }
  102102. var masksetDefinition;
  102103. return void 0 === Inputmask.prototype.masksCache[mask] || nocache === !0 ? (masksetDefinition = {
  102104. mask: mask,
  102105. maskToken: analyseMask(mask),
  102106. validPositions: {},
  102107. _buffer: void 0,
  102108. buffer: void 0,
  102109. tests: {},
  102110. metadata: metadata
  102111. }, nocache !== !0 && (Inputmask.prototype.masksCache[opts.numericInput ? mask.split("").reverse().join("") : mask] = masksetDefinition)) : masksetDefinition = $.extend(!0, {}, Inputmask.prototype.masksCache[mask]),
  102112. masksetDefinition;
  102113. }
  102114. function preProcessMask(mask) {
  102115. return mask = mask.toString();
  102116. }
  102117. var ms;
  102118. if ($.isFunction(opts.mask) && (opts.mask = opts.mask.call(this, opts)), $.isArray(opts.mask)) {
  102119. if (opts.mask.length > 1) {
  102120. opts.keepStatic = null === opts.keepStatic ? !0 : opts.keepStatic;
  102121. var altMask = "(";
  102122. return $.each(opts.numericInput ? opts.mask.reverse() : opts.mask, function(ndx, msk) {
  102123. altMask.length > 1 && (altMask += ")|("), altMask += preProcessMask(void 0 === msk.mask || $.isFunction(msk.mask) ? msk : msk.mask);
  102124. }), altMask += ")", generateMask(altMask, opts.mask);
  102125. }
  102126. opts.mask = opts.mask.pop();
  102127. }
  102128. return opts.mask && (ms = void 0 === opts.mask.mask || $.isFunction(opts.mask.mask) ? generateMask(preProcessMask(opts.mask), opts.mask) : generateMask(preProcessMask(opts.mask.mask), opts.mask)),
  102129. ms;
  102130. }
  102131. function maskScope(actionObj, maskset, opts) {
  102132. function getMaskTemplate(baseOnInput, minimalPos, includeInput) {
  102133. minimalPos = minimalPos || 0;
  102134. var ndxIntlzr, test, testPos, maskTemplate = [], pos = 0;
  102135. do {
  102136. if (baseOnInput === !0 && getMaskSet().validPositions[pos]) {
  102137. var validPos = getMaskSet().validPositions[pos];
  102138. test = validPos.match, ndxIntlzr = validPos.locator.slice(), maskTemplate.push(includeInput === !0 ? validPos.input : getPlaceholder(pos, test));
  102139. } else testPos = getTestTemplate(pos, ndxIntlzr, pos - 1), test = testPos.match,
  102140. ndxIntlzr = testPos.locator.slice(), maskTemplate.push(getPlaceholder(pos, test));
  102141. pos++;
  102142. } while ((void 0 === maxLength || maxLength > pos - 1) && null !== test.fn || null === test.fn && "" !== test.def || minimalPos >= pos);
  102143. return maskTemplate.pop(), maskTemplate;
  102144. }
  102145. function getMaskSet() {
  102146. return maskset;
  102147. }
  102148. function resetMaskSet(soft) {
  102149. var maskset = getMaskSet();
  102150. maskset.buffer = void 0, maskset.tests = {}, soft !== !0 && (maskset._buffer = void 0,
  102151. maskset.validPositions = {}, maskset.p = 0);
  102152. }
  102153. function getLastValidPosition(closestTo, strict) {
  102154. var maskset = getMaskSet(), lastValidPosition = -1, valids = maskset.validPositions;
  102155. void 0 === closestTo && (closestTo = -1);
  102156. var before = lastValidPosition, after = lastValidPosition;
  102157. for (var posNdx in valids) {
  102158. var psNdx = parseInt(posNdx);
  102159. valids[psNdx] && (strict || null !== valids[psNdx].match.fn) && (closestTo >= psNdx && (before = psNdx),
  102160. psNdx >= closestTo && (after = psNdx));
  102161. }
  102162. return lastValidPosition = -1 !== before && closestTo - before > 1 || closestTo > after ? before : after;
  102163. }
  102164. function setValidPosition(pos, validTest, fromSetValid) {
  102165. if (opts.insertMode && void 0 !== getMaskSet().validPositions[pos] && void 0 === fromSetValid) {
  102166. var i, positionsClone = $.extend(!0, {}, getMaskSet().validPositions), lvp = getLastValidPosition();
  102167. for (i = pos; lvp >= i; i++) delete getMaskSet().validPositions[i];
  102168. getMaskSet().validPositions[pos] = validTest;
  102169. var j, valid = !0, vps = getMaskSet().validPositions;
  102170. for (i = j = pos; lvp >= i; i++) {
  102171. var t = positionsClone[i];
  102172. if (void 0 !== t) for (var posMatch = j, prevPosMatch = -1; posMatch < getMaskLength() && (null == t.match.fn && vps[i] && (vps[i].match.optionalQuantifier === !0 || vps[i].match.optionality === !0) || null != t.match.fn); ) {
  102173. if (null === t.match.fn || !opts.keepStatic && vps[i] && (void 0 !== vps[i + 1] && getTests(i + 1, vps[i].locator.slice(), i).length > 1 || void 0 !== vps[i].alternation) ? posMatch++ : posMatch = seekNext(j),
  102174. positionCanMatchDefinition(posMatch, t.match.def)) {
  102175. valid = isValid(posMatch, t.input, !0, !0) !== !1, j = posMatch;
  102176. break;
  102177. }
  102178. if (valid = null == t.match.fn, prevPosMatch === posMatch) break;
  102179. prevPosMatch = posMatch;
  102180. }
  102181. if (!valid) break;
  102182. }
  102183. if (!valid) return getMaskSet().validPositions = $.extend(!0, {}, positionsClone),
  102184. !1;
  102185. } else getMaskSet().validPositions[pos] = validTest;
  102186. return !0;
  102187. }
  102188. function stripValidPositions(start, end, nocheck, strict) {
  102189. var i, startPos = start;
  102190. for (getMaskSet().p = start, i = startPos; end > i; i++) void 0 !== getMaskSet().validPositions[i] && (nocheck === !0 || opts.canClearPosition(getMaskSet(), i, getLastValidPosition(), strict, opts) !== !1) && delete getMaskSet().validPositions[i];
  102191. for (resetMaskSet(!0), i = startPos + 1; i <= getLastValidPosition(); ) {
  102192. for (;void 0 !== getMaskSet().validPositions[startPos]; ) startPos++;
  102193. var s = getMaskSet().validPositions[startPos];
  102194. startPos > i && (i = startPos + 1);
  102195. var t = getMaskSet().validPositions[i];
  102196. void 0 !== t && isMask(i) && void 0 === s ? (positionCanMatchDefinition(startPos, t.match.def) && isValid(startPos, t.input, !0) !== !1 && (delete getMaskSet().validPositions[i],
  102197. i++), startPos++) : i++;
  102198. }
  102199. var lvp = getLastValidPosition(), ml = getMaskLength();
  102200. for (strict !== !0 && nocheck !== !0 && void 0 !== getMaskSet().validPositions[lvp] && getMaskSet().validPositions[lvp].input === opts.radixPoint && delete getMaskSet().validPositions[lvp],
  102201. i = lvp + 1; ml >= i; i++) getMaskSet().validPositions[i] && delete getMaskSet().validPositions[i];
  102202. resetMaskSet(!0);
  102203. }
  102204. function getTestTemplate(pos, ndxIntlzr, tstPs) {
  102205. var testPos = getMaskSet().validPositions[pos];
  102206. if (void 0 === testPos) for (var testPositions = getTests(pos, ndxIntlzr, tstPs), lvp = getLastValidPosition(), lvTest = getMaskSet().validPositions[lvp] || getTests(0)[0], lvTestAltArr = void 0 !== lvTest.alternation ? lvTest.locator[lvTest.alternation].toString().split(",") : [], ndx = 0; ndx < testPositions.length && (testPos = testPositions[ndx],
  102207. !(testPos.match && (opts.greedy && testPos.match.optionalQuantifier !== !0 || (testPos.match.optionality === !1 || testPos.match.newBlockMarker === !1) && testPos.match.optionalQuantifier !== !0) && (void 0 === lvTest.alternation || lvTest.alternation !== testPos.alternation || void 0 !== testPos.locator[lvTest.alternation] && checkAlternationMatch(testPos.locator[lvTest.alternation].toString().split(","), lvTestAltArr)))); ndx++) ;
  102208. return testPos;
  102209. }
  102210. function getTest(pos) {
  102211. return getMaskSet().validPositions[pos] ? getMaskSet().validPositions[pos].match : getTests(pos)[0].match;
  102212. }
  102213. function positionCanMatchDefinition(pos, def) {
  102214. for (var valid = !1, tests = getTests(pos), tndx = 0; tndx < tests.length; tndx++) if (tests[tndx].match && tests[tndx].match.def === def) {
  102215. valid = !0;
  102216. break;
  102217. }
  102218. return valid;
  102219. }
  102220. function getTests(pos, ndxIntlzr, tstPs, cacheable) {
  102221. function resolveTestFromToken(maskToken, ndxInitializer, loopNdx, quantifierRecurse) {
  102222. function handleMatch(match, loopNdx, quantifierRecurse) {
  102223. if (testPos > 1e4) throw "Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. " + getMaskSet().mask;
  102224. if (testPos === pos && void 0 === match.matches) return matches.push({
  102225. match: match,
  102226. locator: loopNdx.reverse()
  102227. }), !0;
  102228. if (void 0 !== match.matches) {
  102229. if (match.isGroup && quantifierRecurse !== match) {
  102230. if (match = handleMatch(maskToken.matches[$.inArray(match, maskToken.matches) + 1], loopNdx)) return !0;
  102231. } else if (match.isOptional) {
  102232. var optionalToken = match;
  102233. if (match = resolveTestFromToken(match, ndxInitializer, loopNdx, quantifierRecurse)) {
  102234. if (latestMatch = matches[matches.length - 1].match, isFirstMatch = 0 === $.inArray(latestMatch, optionalToken.matches),
  102235. !isFirstMatch) return !0;
  102236. insertStop = !0, testPos = pos;
  102237. }
  102238. } else if (match.isAlternator) {
  102239. var maltMatches, alternateToken = match, malternateMatches = [], currentMatches = matches.slice(), loopNdxCnt = loopNdx.length, altIndex = ndxInitializer.length > 0 ? ndxInitializer.shift() : -1;
  102240. if (-1 === altIndex || "string" == typeof altIndex) {
  102241. var currentPos = testPos, ndxInitializerClone = ndxInitializer.slice(), altIndexArr = [];
  102242. "string" == typeof altIndex && (altIndexArr = altIndex.split(","));
  102243. for (var amndx = 0; amndx < alternateToken.matches.length; amndx++) {
  102244. if (matches = [], match = handleMatch(alternateToken.matches[amndx], [ amndx ].concat(loopNdx), quantifierRecurse) || match,
  102245. match !== !0 && void 0 !== match && altIndexArr[altIndexArr.length - 1] < alternateToken.matches.length) {
  102246. var ntndx = maskToken.matches.indexOf(match) + 1;
  102247. maskToken.matches.length > ntndx && (match = handleMatch(maskToken.matches[ntndx], [ ntndx ].concat(loopNdx.slice(1, loopNdx.length)), quantifierRecurse),
  102248. match && (altIndexArr.push(ntndx.toString()), $.each(matches, function(ndx, lmnt) {
  102249. lmnt.alternation = loopNdx.length - 1;
  102250. })));
  102251. }
  102252. maltMatches = matches.slice(), testPos = currentPos, matches = [];
  102253. for (var i = 0; i < ndxInitializerClone.length; i++) ndxInitializer[i] = ndxInitializerClone[i];
  102254. for (var ndx1 = 0; ndx1 < maltMatches.length; ndx1++) {
  102255. var altMatch = maltMatches[ndx1];
  102256. altMatch.alternation = altMatch.alternation || loopNdxCnt;
  102257. for (var ndx2 = 0; ndx2 < malternateMatches.length; ndx2++) {
  102258. var altMatch2 = malternateMatches[ndx2];
  102259. if (altMatch.match.mask === altMatch2.match.mask && ("string" != typeof altIndex || -1 !== $.inArray(altMatch.locator[altMatch.alternation].toString(), altIndexArr))) {
  102260. maltMatches.splice(ndx1, 1), ndx1--, altMatch2.locator[altMatch.alternation] = altMatch2.locator[altMatch.alternation] + "," + altMatch.locator[altMatch.alternation],
  102261. altMatch2.alternation = altMatch.alternation;
  102262. break;
  102263. }
  102264. }
  102265. }
  102266. malternateMatches = malternateMatches.concat(maltMatches);
  102267. }
  102268. "string" == typeof altIndex && (malternateMatches = $.map(malternateMatches, function(lmnt, ndx) {
  102269. if (isFinite(ndx)) {
  102270. var mamatch, alternation = lmnt.alternation, altLocArr = lmnt.locator[alternation].toString().split(",");
  102271. lmnt.locator[alternation] = void 0, lmnt.alternation = void 0;
  102272. for (var alndx = 0; alndx < altLocArr.length; alndx++) mamatch = -1 !== $.inArray(altLocArr[alndx], altIndexArr),
  102273. mamatch && (void 0 !== lmnt.locator[alternation] ? (lmnt.locator[alternation] += ",",
  102274. lmnt.locator[alternation] += altLocArr[alndx]) : lmnt.locator[alternation] = parseInt(altLocArr[alndx]),
  102275. lmnt.alternation = alternation);
  102276. if (void 0 !== lmnt.locator[alternation]) return lmnt;
  102277. }
  102278. })), matches = currentMatches.concat(malternateMatches), testPos = pos, insertStop = matches.length > 0;
  102279. } else match = alternateToken.matches[altIndex] ? handleMatch(alternateToken.matches[altIndex], [ altIndex ].concat(loopNdx), quantifierRecurse) : !1;
  102280. if (match) return !0;
  102281. } else if (match.isQuantifier && quantifierRecurse !== maskToken.matches[$.inArray(match, maskToken.matches) - 1]) for (var qt = match, qndx = ndxInitializer.length > 0 ? ndxInitializer.shift() : 0; qndx < (isNaN(qt.quantifier.max) ? qndx + 1 : qt.quantifier.max) && pos >= testPos; qndx++) {
  102282. var tokenGroup = maskToken.matches[$.inArray(qt, maskToken.matches) - 1];
  102283. if (match = handleMatch(tokenGroup, [ qndx ].concat(loopNdx), tokenGroup)) {
  102284. if (latestMatch = matches[matches.length - 1].match, latestMatch.optionalQuantifier = qndx > qt.quantifier.min - 1,
  102285. isFirstMatch = 0 === $.inArray(latestMatch, tokenGroup.matches)) {
  102286. if (qndx > qt.quantifier.min - 1) {
  102287. insertStop = !0, testPos = pos;
  102288. break;
  102289. }
  102290. return !0;
  102291. }
  102292. return !0;
  102293. }
  102294. } else if (match = resolveTestFromToken(match, ndxInitializer, loopNdx, quantifierRecurse)) return !0;
  102295. } else testPos++;
  102296. }
  102297. for (var tndx = ndxInitializer.length > 0 ? ndxInitializer.shift() : 0; tndx < maskToken.matches.length; tndx++) if (maskToken.matches[tndx].isQuantifier !== !0) {
  102298. var match = handleMatch(maskToken.matches[tndx], [ tndx ].concat(loopNdx), quantifierRecurse);
  102299. if (match && testPos === pos) return match;
  102300. if (testPos > pos) break;
  102301. }
  102302. }
  102303. var latestMatch, isFirstMatch, maskTokens = getMaskSet().maskToken, testPos = ndxIntlzr ? tstPs : 0, ndxInitializer = ndxIntlzr || [ 0 ], matches = [], insertStop = !1;
  102304. if (cacheable === !0 && getMaskSet().tests[pos]) return getMaskSet().tests[pos];
  102305. if (void 0 === ndxIntlzr) {
  102306. for (var test, previousPos = pos - 1; void 0 === (test = getMaskSet().validPositions[previousPos]) && previousPos > -1 && (!getMaskSet().tests[previousPos] || void 0 === (test = getMaskSet().tests[previousPos][0])); ) previousPos--;
  102307. void 0 !== test && previousPos > -1 && (testPos = previousPos, ndxInitializer = test.locator.slice());
  102308. }
  102309. for (var mtndx = ndxInitializer.shift(); mtndx < maskTokens.length; mtndx++) {
  102310. var match = resolveTestFromToken(maskTokens[mtndx], ndxInitializer, [ mtndx ]);
  102311. if (match && testPos === pos || testPos > pos) break;
  102312. }
  102313. return (0 === matches.length || insertStop) && matches.push({
  102314. match: {
  102315. fn: null,
  102316. cardinality: 0,
  102317. optionality: !0,
  102318. casing: null,
  102319. def: ""
  102320. },
  102321. locator: []
  102322. }), getMaskSet().tests[pos] = $.extend(!0, [], matches), getMaskSet().tests[pos];
  102323. }
  102324. function getBufferTemplate() {
  102325. return void 0 === getMaskSet()._buffer && (getMaskSet()._buffer = getMaskTemplate(!1, 1)),
  102326. getMaskSet()._buffer;
  102327. }
  102328. function getBuffer() {
  102329. return void 0 === getMaskSet().buffer && (getMaskSet().buffer = getMaskTemplate(!0, getLastValidPosition(), !0)),
  102330. getMaskSet().buffer;
  102331. }
  102332. function refreshFromBuffer(start, end, buffer) {
  102333. var i;
  102334. if (buffer = buffer || getBuffer().slice(), start === !0) resetMaskSet(), start = 0,
  102335. end = buffer.length; else for (i = start; end > i; i++) delete getMaskSet().validPositions[i],
  102336. delete getMaskSet().tests[i];
  102337. for (i = start; end > i; i++) resetMaskSet(!0), buffer[i] !== opts.skipOptionalPartCharacter && isValid(i, buffer[i], !0, !0);
  102338. }
  102339. function casing(elem, test) {
  102340. switch (test.casing) {
  102341. case "upper":
  102342. elem = elem.toUpperCase();
  102343. break;
  102344. case "lower":
  102345. elem = elem.toLowerCase();
  102346. }
  102347. return elem;
  102348. }
  102349. function checkAlternationMatch(altArr1, altArr2) {
  102350. for (var altArrC = opts.greedy ? altArr2 : altArr2.slice(0, 1), isMatch = !1, alndx = 0; alndx < altArr1.length; alndx++) if (-1 !== $.inArray(altArr1[alndx], altArrC)) {
  102351. isMatch = !0;
  102352. break;
  102353. }
  102354. return isMatch;
  102355. }
  102356. function isValid(pos, c, strict, fromSetValid) {
  102357. function _isValid(position, c, strict, fromSetValid) {
  102358. var rslt = !1;
  102359. return $.each(getTests(position), function(ndx, tst) {
  102360. for (var test = tst.match, loopend = c ? 1 : 0, chrs = "", i = test.cardinality; i > loopend; i--) chrs += getBufferElement(position - (i - 1));
  102361. if (c && (chrs += c), rslt = null != test.fn ? test.fn.test(chrs, getMaskSet(), position, strict, opts) : c !== test.def && c !== opts.skipOptionalPartCharacter || "" === test.def ? !1 : {
  102362. c: test.def,
  102363. pos: position
  102364. }, rslt !== !1) {
  102365. var elem = void 0 !== rslt.c ? rslt.c : c;
  102366. elem = elem === opts.skipOptionalPartCharacter && null === test.fn ? test.def : elem;
  102367. var validatedPos = position, possibleModifiedBuffer = getBuffer();
  102368. if (void 0 !== rslt.remove && ($.isArray(rslt.remove) || (rslt.remove = [ rslt.remove ]),
  102369. $.each(rslt.remove.sort(function(a, b) {
  102370. return b - a;
  102371. }), function(ndx, lmnt) {
  102372. stripValidPositions(lmnt, lmnt + 1, !0);
  102373. })), void 0 !== rslt.insert && ($.isArray(rslt.insert) || (rslt.insert = [ rslt.insert ]),
  102374. $.each(rslt.insert.sort(function(a, b) {
  102375. return a - b;
  102376. }), function(ndx, lmnt) {
  102377. isValid(lmnt.pos, lmnt.c, !0);
  102378. })), rslt.refreshFromBuffer) {
  102379. var refresh = rslt.refreshFromBuffer;
  102380. if (strict = !0, refreshFromBuffer(refresh === !0 ? refresh : refresh.start, refresh.end, possibleModifiedBuffer),
  102381. void 0 === rslt.pos && void 0 === rslt.c) return rslt.pos = getLastValidPosition(),
  102382. !1;
  102383. if (validatedPos = void 0 !== rslt.pos ? rslt.pos : position, validatedPos !== position) return rslt = $.extend(rslt, isValid(validatedPos, elem, !0)),
  102384. !1;
  102385. } else if (rslt !== !0 && void 0 !== rslt.pos && rslt.pos !== position && (validatedPos = rslt.pos,
  102386. refreshFromBuffer(position, validatedPos), validatedPos !== position)) return rslt = $.extend(rslt, isValid(validatedPos, elem, !0)),
  102387. !1;
  102388. return rslt !== !0 && void 0 === rslt.pos && void 0 === rslt.c ? !1 : (ndx > 0 && resetMaskSet(!0),
  102389. setValidPosition(validatedPos, $.extend({}, tst, {
  102390. input: casing(elem, test)
  102391. }), fromSetValid) || (rslt = !1), !1);
  102392. }
  102393. }), rslt;
  102394. }
  102395. function alternate(pos, c, strict, fromSetValid) {
  102396. for (var lastAlt, alternation, isValidRslt, altPos, i, validPos, validPsClone = $.extend(!0, {}, getMaskSet().validPositions), lAlt = getLastValidPosition(); lAlt >= 0 && (altPos = getMaskSet().validPositions[lAlt],
  102397. !altPos || void 0 === altPos.alternation || (lastAlt = lAlt, alternation = getMaskSet().validPositions[lastAlt].alternation,
  102398. getTestTemplate(lastAlt).locator[altPos.alternation] === altPos.locator[altPos.alternation])); lAlt--) ;
  102399. if (void 0 !== alternation) {
  102400. lastAlt = parseInt(lastAlt);
  102401. for (var decisionPos in getMaskSet().validPositions) if (decisionPos = parseInt(decisionPos),
  102402. altPos = getMaskSet().validPositions[decisionPos], decisionPos >= lastAlt && void 0 !== altPos.alternation) {
  102403. var altNdxs = getMaskSet().validPositions[lastAlt].locator[alternation].toString().split(","), decisionTaker = altPos.locator[alternation] || altNdxs[0];
  102404. decisionTaker.length > 0 && (decisionTaker = decisionTaker.split(",")[0]);
  102405. for (var mndx = 0; mndx < altNdxs.length; mndx++) if (decisionTaker < altNdxs[mndx]) {
  102406. for (var possibilityPos, possibilities, dp = decisionPos; dp >= 0; dp--) if (possibilityPos = getMaskSet().validPositions[dp],
  102407. void 0 !== possibilityPos) {
  102408. possibilities = possibilityPos.locator[alternation], possibilityPos.locator[alternation] = parseInt(altNdxs[mndx]);
  102409. break;
  102410. }
  102411. if (decisionTaker !== possibilityPos.locator[alternation]) {
  102412. var validInputs = [], staticInputsBeforePos = 0;
  102413. for (i = decisionPos + 1; i < getLastValidPosition() + 1; i++) validPos = getMaskSet().validPositions[i],
  102414. validPos && (null != validPos.match.fn ? validInputs.push(validPos.input) : pos > i && staticInputsBeforePos++),
  102415. delete getMaskSet().validPositions[i], delete getMaskSet().tests[i];
  102416. for (resetMaskSet(!0), opts.keepStatic = !opts.keepStatic, isValidRslt = !0; validInputs.length > 0; ) {
  102417. var input = validInputs.shift();
  102418. if (input !== opts.skipOptionalPartCharacter && !(isValidRslt = isValid(getLastValidPosition() + 1, input, !1, !0))) break;
  102419. }
  102420. if (possibilityPos.alternation = alternation, possibilityPos.locator[alternation] = possibilities,
  102421. isValidRslt) {
  102422. var targetLvp = getLastValidPosition(pos) + 1, staticInputsBeforePosAlternate = 0;
  102423. for (i = decisionPos + 1; i < getLastValidPosition() + 1; i++) validPos = getMaskSet().validPositions[i],
  102424. validPos && null == validPos.match.fn && pos > i && staticInputsBeforePosAlternate++;
  102425. pos += staticInputsBeforePosAlternate - staticInputsBeforePos, isValidRslt = isValid(pos > targetLvp ? targetLvp : pos, c, strict, fromSetValid);
  102426. }
  102427. if (opts.keepStatic = !opts.keepStatic, isValidRslt) return isValidRslt;
  102428. resetMaskSet(), getMaskSet().validPositions = $.extend(!0, {}, validPsClone);
  102429. }
  102430. }
  102431. break;
  102432. }
  102433. }
  102434. return !1;
  102435. }
  102436. function trackbackAlternations(originalPos, newPos) {
  102437. for (var vp = getMaskSet().validPositions[newPos], targetLocator = vp.locator, tll = targetLocator.length, ps = originalPos; newPos > ps; ps++) if (!isMask(ps)) {
  102438. var tests = getTests(ps), bestMatch = tests[0], equality = -1;
  102439. $.each(tests, function(ndx, tst) {
  102440. for (var i = 0; tll > i; i++) tst.locator[i] && checkAlternationMatch(tst.locator[i].toString().split(","), targetLocator[i].toString().split(",")) && i > equality && (equality = i,
  102441. bestMatch = tst);
  102442. }), setValidPosition(ps, $.extend({}, bestMatch, {
  102443. input: bestMatch.match.def
  102444. }), !0);
  102445. }
  102446. }
  102447. strict = strict === !0;
  102448. for (var buffer = getBuffer(), pndx = pos - 1; pndx > -1 && !getMaskSet().validPositions[pndx]; pndx--) ;
  102449. for (pndx++; pos > pndx; pndx++) void 0 === getMaskSet().validPositions[pndx] && ((!isMask(pndx) || buffer[pndx] !== getPlaceholder(pndx)) && getTests(pndx).length > 1 || buffer[pndx] === opts.radixPoint || "0" === buffer[pndx] && $.inArray(opts.radixPoint, buffer) < pndx) && _isValid(pndx, buffer[pndx], !0);
  102450. var maskPos = pos, result = !1, positionsClone = $.extend(!0, {}, getMaskSet().validPositions);
  102451. if (maskPos < getMaskLength() && (getBuffer(), result = _isValid(maskPos, c, strict, fromSetValid),
  102452. (!strict || fromSetValid) && result === !1)) {
  102453. var currentPosValid = getMaskSet().validPositions[maskPos];
  102454. if (!currentPosValid || null !== currentPosValid.match.fn || currentPosValid.match.def !== c && c !== opts.skipOptionalPartCharacter) {
  102455. if ((opts.insertMode || void 0 === getMaskSet().validPositions[seekNext(maskPos)]) && !isMask(maskPos)) for (var nPos = maskPos + 1, snPos = seekNext(maskPos); snPos >= nPos; nPos++) if (result = _isValid(nPos, c, strict, fromSetValid),
  102456. result !== !1) {
  102457. trackbackAlternations(maskPos, nPos), maskPos = nPos;
  102458. break;
  102459. }
  102460. } else result = {
  102461. caret: seekNext(maskPos)
  102462. };
  102463. }
  102464. if (result === !1 && opts.keepStatic && isComplete(buffer) && (result = alternate(pos, c, strict, fromSetValid)),
  102465. result === !0 && (result = {
  102466. pos: maskPos
  102467. }), $.isFunction(opts.postValidation) && result !== !1 && !strict) {
  102468. resetMaskSet(!0);
  102469. var postValidResult = opts.postValidation(getBuffer(), opts);
  102470. if (postValidResult) {
  102471. if (postValidResult.refreshFromBuffer) {
  102472. var refresh = postValidResult.refreshFromBuffer;
  102473. refreshFromBuffer(refresh === !0 ? refresh : refresh.start, refresh.end, postValidResult.buffer),
  102474. resetMaskSet(!0), result = postValidResult;
  102475. }
  102476. } else resetMaskSet(!0), getMaskSet().validPositions = $.extend(!0, {}, positionsClone),
  102477. result = !1;
  102478. }
  102479. return result;
  102480. }
  102481. function isMask(pos) {
  102482. var test = getTest(pos);
  102483. if (null != test.fn) return test.fn;
  102484. if (!opts.keepStatic && void 0 === getMaskSet().validPositions[pos]) {
  102485. for (var tests = getTests(pos), staticAlternations = !0, i = 0; i < tests.length; i++) if ("" !== tests[i].match.def && (void 0 === tests[i].alternation || tests[i].locator[tests[i].alternation].length > 1)) {
  102486. staticAlternations = !1;
  102487. break;
  102488. }
  102489. return staticAlternations;
  102490. }
  102491. return !1;
  102492. }
  102493. function getMaskLength() {
  102494. var maskLength;
  102495. maxLength = $el.prop("maxLength"), -1 === maxLength && (maxLength = void 0);
  102496. var pos, lvp = getLastValidPosition(), testPos = getMaskSet().validPositions[lvp], ndxIntlzr = void 0 !== testPos ? testPos.locator.slice() : void 0;
  102497. for (pos = lvp + 1; void 0 === testPos || null !== testPos.match.fn || null === testPos.match.fn && "" !== testPos.match.def; pos++) testPos = getTestTemplate(pos, ndxIntlzr, pos - 1),
  102498. ndxIntlzr = testPos.locator.slice();
  102499. var lastTest = getTest(pos - 1);
  102500. return maskLength = "" !== lastTest.def ? pos : pos - 1, void 0 === maxLength || maxLength > maskLength ? maskLength : maxLength;
  102501. }
  102502. function seekNext(pos, newBlock) {
  102503. var maskL = getMaskLength();
  102504. if (pos >= maskL) return maskL;
  102505. for (var position = pos; ++position < maskL && (newBlock === !0 && (getTest(position).newBlockMarker !== !0 || !isMask(position)) || newBlock !== !0 && !isMask(position) && (opts.nojumps !== !0 || opts.nojumpsThreshold > position)); ) ;
  102506. return position;
  102507. }
  102508. function seekPrevious(pos, newBlock) {
  102509. var position = pos;
  102510. if (0 >= position) return 0;
  102511. for (;--position > 0 && (newBlock === !0 && getTest(position).newBlockMarker !== !0 || newBlock !== !0 && !isMask(position)); ) ;
  102512. return position;
  102513. }
  102514. function getBufferElement(position) {
  102515. return void 0 === getMaskSet().validPositions[position] ? getPlaceholder(position) : getMaskSet().validPositions[position].input;
  102516. }
  102517. function writeBuffer(input, buffer, caretPos, event, triggerInputEvent) {
  102518. if (event && $.isFunction(opts.onBeforeWrite)) {
  102519. var result = opts.onBeforeWrite.call(input, event, buffer, caretPos, opts);
  102520. if (result) {
  102521. if (result.refreshFromBuffer) {
  102522. var refresh = result.refreshFromBuffer;
  102523. refreshFromBuffer(refresh === !0 ? refresh : refresh.start, refresh.end, result.buffer || buffer),
  102524. resetMaskSet(!0), buffer = getBuffer();
  102525. }
  102526. caretPos = void 0 !== result.caret ? result.caret : caretPos;
  102527. }
  102528. }
  102529. input.inputmask._valueSet(buffer.join("")), void 0 === caretPos || void 0 !== event && "blur" === event.type || caret(input, caretPos),
  102530. triggerInputEvent === !0 && (skipInputEvent = !0, $(input).trigger("input"));
  102531. }
  102532. function getPlaceholder(pos, test) {
  102533. if (test = test || getTest(pos), void 0 !== test.placeholder) return test.placeholder;
  102534. if (null === test.fn) {
  102535. if (!opts.keepStatic && void 0 === getMaskSet().validPositions[pos]) {
  102536. for (var prevTest, tests = getTests(pos), hasAlternations = !1, i = 0; i < tests.length; i++) {
  102537. if (prevTest && "" !== tests[i].match.def && tests[i].match.def !== prevTest.match.def && (void 0 === tests[i].alternation || tests[i].alternation === prevTest.alternation)) {
  102538. hasAlternations = !0;
  102539. break;
  102540. }
  102541. tests[i].match.optionality !== !0 && tests[i].match.optionalQuantifier !== !0 && (prevTest = tests[i]);
  102542. }
  102543. if (hasAlternations) return opts.placeholder.charAt(pos % opts.placeholder.length);
  102544. }
  102545. return test.def;
  102546. }
  102547. return opts.placeholder.charAt(pos % opts.placeholder.length);
  102548. }
  102549. function checkVal(input, writeOut, strict, nptvl) {
  102550. function isTemplateMatch() {
  102551. var isMatch = !1, charCodeNdx = getBufferTemplate().slice(initialNdx, seekNext(initialNdx)).join("").indexOf(charCodes);
  102552. if (-1 !== charCodeNdx && !isMask(initialNdx)) {
  102553. isMatch = !0;
  102554. for (var bufferTemplateArr = getBufferTemplate().slice(initialNdx, initialNdx + charCodeNdx), i = 0; i < bufferTemplateArr.length; i++) if (" " !== bufferTemplateArr[i]) {
  102555. isMatch = !1;
  102556. break;
  102557. }
  102558. }
  102559. return isMatch;
  102560. }
  102561. var inputValue = void 0 !== nptvl ? nptvl.slice() : input.inputmask._valueGet().split(""), charCodes = "", initialNdx = 0;
  102562. if (resetMaskSet(), getMaskSet().p = seekNext(-1), writeOut && input.inputmask._valueSet(""),
  102563. !strict) if (opts.autoUnmask !== !0) {
  102564. var staticInput = getBufferTemplate().slice(0, seekNext(-1)).join(""), matches = inputValue.join("").match(new RegExp("^" + Inputmask.escapeRegex(staticInput), "g"));
  102565. matches && matches.length > 0 && (inputValue.splice(0, matches.length * staticInput.length),
  102566. initialNdx = seekNext(initialNdx));
  102567. } else initialNdx = seekNext(initialNdx);
  102568. $.each(inputValue, function(ndx, charCode) {
  102569. var keypress = $.Event("keypress");
  102570. keypress.which = charCode.charCodeAt(0), charCodes += charCode;
  102571. var lvp = getLastValidPosition(void 0, !0), lvTest = getMaskSet().validPositions[lvp], nextTest = getTestTemplate(lvp + 1, lvTest ? lvTest.locator.slice() : void 0, lvp);
  102572. if (!isTemplateMatch() || strict || opts.autoUnmask) {
  102573. var pos = strict ? ndx : null == nextTest.match.fn && nextTest.match.optionality && lvp + 1 < getMaskSet().p ? lvp + 1 : getMaskSet().p;
  102574. keypressEvent.call(input, keypress, !0, !1, strict, pos), initialNdx = pos + 1,
  102575. charCodes = "";
  102576. } else keypressEvent.call(input, keypress, !0, !1, !0, lvp + 1);
  102577. }), writeOut && writeBuffer(input, getBuffer(), document.activeElement === input ? seekNext(getLastValidPosition(0)) : void 0, $.Event("checkval"));
  102578. }
  102579. function unmaskedvalue($input) {
  102580. if ($input[0].inputmask && !$input.hasClass("hasDatepicker")) {
  102581. var umValue = [], vps = getMaskSet().validPositions;
  102582. for (var pndx in vps) vps[pndx].match && null != vps[pndx].match.fn && umValue.push(vps[pndx].input);
  102583. var unmaskedValue = 0 === umValue.length ? null : (isRTL ? umValue.reverse() : umValue).join("");
  102584. if (null !== unmaskedValue) {
  102585. var bufferValue = (isRTL ? getBuffer().slice().reverse() : getBuffer()).join("");
  102586. $.isFunction(opts.onUnMask) && (unmaskedValue = opts.onUnMask.call($input, bufferValue, unmaskedValue, opts) || unmaskedValue);
  102587. }
  102588. return unmaskedValue;
  102589. }
  102590. return $input[0].inputmask._valueGet();
  102591. }
  102592. function caret(input, begin, end) {
  102593. function translatePosition(pos) {
  102594. if (isRTL && "number" == typeof pos && (!opts.greedy || "" !== opts.placeholder)) {
  102595. var bffrLght = getBuffer().join("").length;
  102596. pos = bffrLght - pos;
  102597. }
  102598. return pos;
  102599. }
  102600. var range;
  102601. if ("number" != typeof begin) return input.setSelectionRange ? (begin = input.selectionStart,
  102602. end = input.selectionEnd) : window.getSelection ? (range = window.getSelection().getRangeAt(0),
  102603. (range.commonAncestorContainer.parentNode === input || range.commonAncestorContainer === input) && (begin = range.startOffset,
  102604. end = range.endOffset)) : document.selection && document.selection.createRange && (range = document.selection.createRange(),
  102605. begin = 0 - range.duplicate().moveStart("character", -1e5), end = begin + range.text.length),
  102606. {
  102607. begin: translatePosition(begin),
  102608. end: translatePosition(end)
  102609. };
  102610. if (begin = translatePosition(begin), end = translatePosition(end), end = "number" == typeof end ? end : begin,
  102611. $(input).is(":visible")) {
  102612. var scrollCalc = input.style.fontSize.replace("px", "") * end;
  102613. if (input.scrollLeft = scrollCalc > input.scrollWidth ? scrollCalc : 0, androidchrome || opts.insertMode !== !1 || begin !== end || end++,
  102614. input.setSelectionRange) input.selectionStart = begin, input.selectionEnd = end; else if (window.getSelection) {
  102615. if (range = document.createRange(), void 0 === input.firstChild) {
  102616. var textNode = document.createTextNode("");
  102617. input.appendChild(textNode);
  102618. }
  102619. range.setStart(input.firstChild, begin < input.inputmask._valueGet().length ? begin : input.inputmask._valueGet().length),
  102620. range.setEnd(input.firstChild, end < input.inputmask._valueGet().length ? end : input.inputmask._valueGet().length),
  102621. range.collapse(!0);
  102622. var sel = window.getSelection();
  102623. sel.removeAllRanges(), sel.addRange(range);
  102624. } else input.createTextRange && (range = input.createTextRange(), range.collapse(!0),
  102625. range.moveEnd("character", end), range.moveStart("character", begin), range.select());
  102626. }
  102627. }
  102628. function determineLastRequiredPosition(returnDefinition) {
  102629. var pos, testPos, buffer = getBuffer(), bl = buffer.length, lvp = getLastValidPosition(), positions = {}, lvTest = getMaskSet().validPositions[lvp], ndxIntlzr = void 0 !== lvTest ? lvTest.locator.slice() : void 0;
  102630. for (pos = lvp + 1; pos < buffer.length; pos++) testPos = getTestTemplate(pos, ndxIntlzr, pos - 1),
  102631. ndxIntlzr = testPos.locator.slice(), positions[pos] = $.extend(!0, {}, testPos);
  102632. var lvTestAlt = lvTest && void 0 !== lvTest.alternation ? lvTest.locator[lvTest.alternation] : void 0;
  102633. for (pos = bl - 1; pos > lvp && (testPos = positions[pos], (testPos.match.optionality || testPos.match.optionalQuantifier || lvTestAlt && (lvTestAlt !== positions[pos].locator[lvTest.alternation] && null != testPos.match.fn || null === testPos.match.fn && testPos.locator[lvTest.alternation] && checkAlternationMatch(testPos.locator[lvTest.alternation].toString().split(","), lvTestAlt.toString().split(",")) && "" !== getTests(pos)[0].def)) && buffer[pos] === getPlaceholder(pos, testPos.match)); pos--) bl--;
  102634. return returnDefinition ? {
  102635. l: bl,
  102636. def: positions[bl] ? positions[bl].match : void 0
  102637. } : bl;
  102638. }
  102639. function clearOptionalTail(buffer) {
  102640. for (var rl = determineLastRequiredPosition(), lmib = buffer.length - 1; lmib > rl && !isMask(lmib); lmib--) ;
  102641. return buffer.splice(rl, lmib + 1 - rl), buffer;
  102642. }
  102643. function isComplete(buffer) {
  102644. if ($.isFunction(opts.isComplete)) return opts.isComplete.call($el, buffer, opts);
  102645. if ("*" === opts.repeat) return void 0;
  102646. var complete = !1, lrp = determineLastRequiredPosition(!0), aml = seekPrevious(lrp.l);
  102647. if (void 0 === lrp.def || lrp.def.newBlockMarker || lrp.def.optionality || lrp.def.optionalQuantifier) {
  102648. complete = !0;
  102649. for (var i = 0; aml >= i; i++) {
  102650. var test = getTestTemplate(i).match;
  102651. if (null !== test.fn && void 0 === getMaskSet().validPositions[i] && test.optionality !== !0 && test.optionalQuantifier !== !0 || null === test.fn && buffer[i] !== getPlaceholder(i, test)) {
  102652. complete = !1;
  102653. break;
  102654. }
  102655. }
  102656. }
  102657. return complete;
  102658. }
  102659. function isSelection(begin, end) {
  102660. return isRTL ? begin - end > 1 || begin - end === 1 && opts.insertMode : end - begin > 1 || end - begin === 1 && opts.insertMode;
  102661. }
  102662. function installEventRuler(npt) {
  102663. var events = $._data(npt).events, inComposition = !1;
  102664. $.each(events, function(eventType, eventHandlers) {
  102665. $.each(eventHandlers, function(ndx, eventHandler) {
  102666. if ("inputmask" === eventHandler.namespace) {
  102667. var handler = eventHandler.handler;
  102668. eventHandler.handler = function(e) {
  102669. if (void 0 === this.inputmask) {
  102670. var imOpts = $.data(this, "_inputmask_opts");
  102671. imOpts ? new Inputmask(imOpts).mask(this) : $(this).unbind(".inputmask");
  102672. } else {
  102673. if ("setvalue" === e.type || !(this.disabled || this.readOnly && !("keydown" === e.type && e.ctrlKey && 67 === e.keyCode || opts.tabThrough === !1 && e.keyCode === Inputmask.keyCode.TAB))) {
  102674. switch (e.type) {
  102675. case "input":
  102676. if (skipInputEvent === !0 || inComposition === !0) return skipInputEvent = !1, e.preventDefault();
  102677. break;
  102678. case "keydown":
  102679. skipKeyPressEvent = !1, inComposition = !1;
  102680. break;
  102681. case "keypress":
  102682. if (skipKeyPressEvent === !0) return e.preventDefault();
  102683. skipKeyPressEvent = !0;
  102684. break;
  102685. case "compositionstart":
  102686. inComposition = !0;
  102687. break;
  102688. case "compositionupdate":
  102689. skipInputEvent = !0;
  102690. break;
  102691. case "compositionend":
  102692. inComposition = !1;
  102693. }
  102694. return handler.apply(this, arguments);
  102695. }
  102696. e.preventDefault();
  102697. }
  102698. };
  102699. }
  102700. });
  102701. });
  102702. }
  102703. function patchValueProperty(npt) {
  102704. function patchValhook(type) {
  102705. if ($.valHooks && void 0 === $.valHooks[type] || $.valHooks[type].inputmaskpatch !== !0) {
  102706. var valhookGet = $.valHooks[type] && $.valHooks[type].get ? $.valHooks[type].get : function(elem) {
  102707. return elem.value;
  102708. }, valhookSet = $.valHooks[type] && $.valHooks[type].set ? $.valHooks[type].set : function(elem, value) {
  102709. return elem.value = value, elem;
  102710. };
  102711. $.valHooks[type] = {
  102712. get: function(elem) {
  102713. if (elem.inputmask) {
  102714. if (elem.inputmask.opts.autoUnmask) return elem.inputmask.unmaskedvalue();
  102715. var result = valhookGet(elem), maskset = elem.inputmask.maskset, bufferTemplate = maskset._buffer;
  102716. return bufferTemplate = bufferTemplate ? bufferTemplate.join("") : "", result !== bufferTemplate ? result : "";
  102717. }
  102718. return valhookGet(elem);
  102719. },
  102720. set: function(elem, value) {
  102721. var result, $elem = $(elem);
  102722. return result = valhookSet(elem, value), elem.inputmask && $elem.triggerHandler("setvalue.inputmask"),
  102723. result;
  102724. },
  102725. inputmaskpatch: !0
  102726. };
  102727. }
  102728. }
  102729. function getter() {
  102730. return this.inputmask ? this.inputmask.opts.autoUnmask ? this.inputmask.unmaskedvalue() : valueGet.call(this) !== getBufferTemplate().join("") ? valueGet.call(this) : "" : valueGet.call(this);
  102731. }
  102732. function setter(value) {
  102733. valueSet.call(this, value), this.inputmask && $(this).triggerHandler("setvalue.inputmask");
  102734. }
  102735. function installNativeValueSetFallback(npt) {
  102736. $(npt).bind("mouseenter.inputmask", function(event) {
  102737. var $input = $(this), input = this, value = input.inputmask._valueGet();
  102738. "" !== value && value !== getBuffer().join("") && $input.triggerHandler("setvalue.inputmask");
  102739. });
  102740. //!! the bound handlers are executed in the order they where bound
  102741. var events = $._data(npt).events, handlers = events.mouseover;
  102742. if (handlers) {
  102743. for (var ourHandler = handlers[handlers.length - 1], i = handlers.length - 1; i > 0; i--) handlers[i] = handlers[i - 1];
  102744. handlers[0] = ourHandler;
  102745. }
  102746. }
  102747. var valueGet, valueSet;
  102748. npt.inputmask.__valueGet || (Object.getOwnPropertyDescriptor && void 0 === npt.value ? (valueGet = function() {
  102749. return this.textContent;
  102750. }, valueSet = function(value) {
  102751. this.textContent = value;
  102752. }, Object.defineProperty(npt, "value", {
  102753. get: getter,
  102754. set: setter
  102755. })) : document.__lookupGetter__ && npt.__lookupGetter__("value") ? (valueGet = npt.__lookupGetter__("value"),
  102756. valueSet = npt.__lookupSetter__("value"), npt.__defineGetter__("value", getter),
  102757. npt.__defineSetter__("value", setter)) : (valueGet = function() {
  102758. return npt.value;
  102759. }, valueSet = function(value) {
  102760. npt.value = value;
  102761. }, patchValhook(npt.type), installNativeValueSetFallback(npt)), npt.inputmask.__valueGet = valueGet,
  102762. npt.inputmask._valueGet = function(overruleRTL) {
  102763. return isRTL && overruleRTL !== !0 ? valueGet.call(this.el).split("").reverse().join("") : valueGet.call(this.el);
  102764. }, npt.inputmask.__valueSet = valueSet, npt.inputmask._valueSet = function(value, overruleRTL) {
  102765. valueSet.call(this.el, overruleRTL !== !0 && isRTL ? value.split("").reverse().join("") : value);
  102766. });
  102767. }
  102768. function handleRemove(input, k, pos, strict) {
  102769. function generalize() {
  102770. if (opts.keepStatic) {
  102771. resetMaskSet(!0);
  102772. var lastAlt, validInputs = [], positionsClone = $.extend(!0, {}, getMaskSet().validPositions);
  102773. for (lastAlt = getLastValidPosition(); lastAlt >= 0; lastAlt--) {
  102774. var validPos = getMaskSet().validPositions[lastAlt];
  102775. if (validPos && (null != validPos.match.fn && validInputs.push(validPos.input),
  102776. delete getMaskSet().validPositions[lastAlt], void 0 !== validPos.alternation && validPos.locator[validPos.alternation] === getTestTemplate(lastAlt).locator[validPos.alternation])) break;
  102777. }
  102778. if (lastAlt > -1) for (;validInputs.length > 0; ) {
  102779. getMaskSet().p = seekNext(getLastValidPosition());
  102780. var keypress = $.Event("keypress");
  102781. keypress.which = validInputs.pop().charCodeAt(0), keypressEvent.call(input, keypress, !0, !1, !1, getMaskSet().p);
  102782. } else getMaskSet().validPositions = $.extend(!0, {}, positionsClone);
  102783. }
  102784. }
  102785. if ((opts.numericInput || isRTL) && (k === Inputmask.keyCode.BACKSPACE ? k = Inputmask.keyCode.DELETE : k === Inputmask.keyCode.DELETE && (k = Inputmask.keyCode.BACKSPACE),
  102786. isRTL)) {
  102787. var pend = pos.end;
  102788. pos.end = pos.begin, pos.begin = pend;
  102789. }
  102790. k === Inputmask.keyCode.BACKSPACE && (pos.end - pos.begin < 1 || opts.insertMode === !1) ? (pos.begin = seekPrevious(pos.begin),
  102791. void 0 === getMaskSet().validPositions[pos.begin] || getMaskSet().validPositions[pos.begin].input !== opts.groupSeparator && getMaskSet().validPositions[pos.begin].input !== opts.radixPoint || pos.begin--) : k === Inputmask.keyCode.DELETE && pos.begin === pos.end && (pos.end = isMask(pos.end) ? pos.end + 1 : seekNext(pos.end) + 1,
  102792. void 0 === getMaskSet().validPositions[pos.begin] || getMaskSet().validPositions[pos.begin].input !== opts.groupSeparator && getMaskSet().validPositions[pos.begin].input !== opts.radixPoint || pos.end++),
  102793. stripValidPositions(pos.begin, pos.end, !1, strict), strict !== !0 && generalize();
  102794. var lvp = getLastValidPosition(pos.begin);
  102795. lvp < pos.begin ? (-1 === lvp && resetMaskSet(), getMaskSet().p = seekNext(lvp)) : strict !== !0 && (getMaskSet().p = pos.begin);
  102796. }
  102797. function keydownEvent(e) {
  102798. var input = this, $input = $(input), k = e.keyCode, pos = caret(input);
  102799. k === Inputmask.keyCode.BACKSPACE || k === Inputmask.keyCode.DELETE || iphone && 127 === k || e.ctrlKey && 88 === k && !isInputEventSupported("cut") ? (e.preventDefault(),
  102800. 88 === k && (undoValue = getBuffer().join("")), handleRemove(input, k, pos), writeBuffer(input, getBuffer(), getMaskSet().p, e, undoValue !== getBuffer().join("")),
  102801. input.inputmask._valueGet() === getBufferTemplate().join("") ? $input.trigger("cleared") : isComplete(getBuffer()) === !0 && $input.trigger("complete"),
  102802. opts.showTooltip && $input.prop("title", getMaskSet().mask)) : k === Inputmask.keyCode.END || k === Inputmask.keyCode.PAGE_DOWN ? setTimeout(function() {
  102803. var caretPos = seekNext(getLastValidPosition());
  102804. opts.insertMode || caretPos !== getMaskLength() || e.shiftKey || caretPos--, caret(input, e.shiftKey ? pos.begin : caretPos, caretPos);
  102805. }, 0) : k === Inputmask.keyCode.HOME && !e.shiftKey || k === Inputmask.keyCode.PAGE_UP ? caret(input, 0, e.shiftKey ? pos.begin : 0) : (opts.undoOnEscape && k === Inputmask.keyCode.ESCAPE || 90 === k && e.ctrlKey) && e.altKey !== !0 ? (checkVal(input, !0, !1, undoValue.split("")),
  102806. $input.click()) : k !== Inputmask.keyCode.INSERT || e.shiftKey || e.ctrlKey ? opts.tabThrough === !0 && k === Inputmask.keyCode.TAB ? (e.shiftKey === !0 ? (null === getTest(pos.begin).fn && (pos.begin = seekNext(pos.begin)),
  102807. pos.end = seekPrevious(pos.begin, !0), pos.begin = seekPrevious(pos.end, !0)) : (pos.begin = seekNext(pos.begin, !0),
  102808. pos.end = seekNext(pos.begin, !0), pos.end < getMaskLength() && pos.end--), pos.begin < getMaskLength() && (e.preventDefault(),
  102809. caret(input, pos.begin, pos.end))) : opts.insertMode !== !1 || e.shiftKey || (k === Inputmask.keyCode.RIGHT ? setTimeout(function() {
  102810. var caretPos = caret(input);
  102811. caret(input, caretPos.begin);
  102812. }, 0) : k === Inputmask.keyCode.LEFT && setTimeout(function() {
  102813. var caretPos = caret(input);
  102814. caret(input, isRTL ? caretPos.begin + 1 : caretPos.begin - 1);
  102815. }, 0)) : (opts.insertMode = !opts.insertMode, caret(input, opts.insertMode || pos.begin !== getMaskLength() ? pos.begin : pos.begin - 1)),
  102816. opts.onKeyDown.call(this, e, getBuffer(), caret(input).begin, opts), ignorable = -1 !== $.inArray(k, opts.ignorables);
  102817. }
  102818. function keypressEvent(e, checkval, writeOut, strict, ndx) {
  102819. var input = this, $input = $(input), k = e.which || e.charCode || e.keyCode;
  102820. if (!(checkval === !0 || e.ctrlKey && e.altKey) && (e.ctrlKey || e.metaKey || ignorable)) return k === Inputmask.keyCode.ENTER && undoValue !== getBuffer().join("") && setTimeout(function() {
  102821. $input.change(), undoValue = getBuffer().join("");
  102822. }, 0), !0;
  102823. if (k) {
  102824. 46 === k && e.shiftKey === !1 && "," === opts.radixPoint && (k = 44);
  102825. var forwardPosition, pos = checkval ? {
  102826. begin: ndx,
  102827. end: ndx
  102828. } : caret(input), c = String.fromCharCode(k), isSlctn = isSelection(pos.begin, pos.end);
  102829. isSlctn && (getMaskSet().undoPositions = $.extend(!0, {}, getMaskSet().validPositions),
  102830. handleRemove(input, Inputmask.keyCode.DELETE, pos, !0), pos.begin = getMaskSet().p,
  102831. opts.insertMode || (opts.insertMode = !opts.insertMode, setValidPosition(pos.begin, strict),
  102832. opts.insertMode = !opts.insertMode), isSlctn = !opts.multi), getMaskSet().writeOutBuffer = !0;
  102833. var p = isRTL && !isSlctn ? pos.end : pos.begin, valResult = isValid(p, c, strict);
  102834. if (valResult !== !1) {
  102835. if (valResult !== !0 && (p = void 0 !== valResult.pos ? valResult.pos : p, c = void 0 !== valResult.c ? valResult.c : c),
  102836. resetMaskSet(!0), void 0 !== valResult.caret) forwardPosition = valResult.caret; else {
  102837. var vps = getMaskSet().validPositions;
  102838. forwardPosition = !opts.keepStatic && (void 0 !== vps[p + 1] && getTests(p + 1, vps[p].locator.slice(), p).length > 1 || void 0 !== vps[p].alternation) ? p + 1 : seekNext(p);
  102839. }
  102840. getMaskSet().p = forwardPosition;
  102841. }
  102842. if (writeOut !== !1) {
  102843. var self = this;
  102844. if (setTimeout(function() {
  102845. opts.onKeyValidation.call(self, valResult, opts);
  102846. }, 0), getMaskSet().writeOutBuffer && valResult !== !1) {
  102847. var buffer = getBuffer();
  102848. writeBuffer(input, buffer, checkval ? void 0 : opts.numericInput ? seekPrevious(forwardPosition) : forwardPosition, e, checkval !== !0),
  102849. checkval !== !0 && setTimeout(function() {
  102850. isComplete(buffer) === !0 && $input.trigger("complete");
  102851. }, 0);
  102852. } else isSlctn && (getMaskSet().buffer = void 0, getMaskSet().validPositions = getMaskSet().undoPositions);
  102853. } else isSlctn && (getMaskSet().buffer = void 0, getMaskSet().validPositions = getMaskSet().undoPositions);
  102854. if (opts.showTooltip && $input.prop("title", getMaskSet().mask), checkval && $.isFunction(opts.onBeforeWrite)) {
  102855. var result = opts.onBeforeWrite.call(this, e, getBuffer(), forwardPosition, opts);
  102856. if (result && result.refreshFromBuffer) {
  102857. var refresh = result.refreshFromBuffer;
  102858. refreshFromBuffer(refresh === !0 ? refresh : refresh.start, refresh.end, result.buffer),
  102859. resetMaskSet(!0), result.caret && (getMaskSet().p = result.caret);
  102860. }
  102861. }
  102862. if (e.preventDefault(), checkval) return valResult;
  102863. }
  102864. }
  102865. function pasteEvent(e) {
  102866. var input = this, $input = $(input), inputValue = input.inputmask._valueGet(!0), caretPos = caret(input);
  102867. if ("propertychange" === e.type && input.inputmask._valueGet().length <= getMaskLength()) return !0;
  102868. if ("paste" === e.type) {
  102869. var valueBeforeCaret = inputValue.substr(0, caretPos.begin), valueAfterCaret = inputValue.substr(caretPos.end, inputValue.length);
  102870. valueBeforeCaret === getBufferTemplate().slice(0, caretPos.begin).join("") && (valueBeforeCaret = ""),
  102871. valueAfterCaret === getBufferTemplate().slice(caretPos.end).join("") && (valueAfterCaret = ""),
  102872. window.clipboardData && window.clipboardData.getData ? inputValue = valueBeforeCaret + window.clipboardData.getData("Text") + valueAfterCaret : e.originalEvent && e.originalEvent.clipboardData && e.originalEvent.clipboardData.getData && (inputValue = valueBeforeCaret + e.originalEvent.clipboardData.getData("text/plain") + valueAfterCaret);
  102873. }
  102874. var pasteValue = inputValue;
  102875. if ($.isFunction(opts.onBeforePaste)) {
  102876. if (pasteValue = opts.onBeforePaste.call(input, inputValue, opts), pasteValue === !1) return e.preventDefault(),
  102877. !1;
  102878. pasteValue || (pasteValue = inputValue);
  102879. }
  102880. return checkVal(input, !1, !1, isRTL ? pasteValue.split("").reverse() : pasteValue.toString().split("")),
  102881. writeBuffer(input, getBuffer(), void 0, e, !0), $input.click(), isComplete(getBuffer()) === !0 && $input.trigger("complete"),
  102882. !1;
  102883. }
  102884. function inputFallBackEvent(e) {
  102885. var input = this;
  102886. checkVal(input, !0, !1), isComplete(getBuffer()) === !0 && $(input).trigger("complete"),
  102887. e.preventDefault();
  102888. }
  102889. function compositionStartEvent(e) {
  102890. var input = this;
  102891. undoValue = getBuffer().join(""), ("" === compositionData || 0 !== e.originalEvent.data.indexOf(compositionData)) && (compositionCaretPos = caret(input));
  102892. }
  102893. function compositionUpdateEvent(e) {
  102894. var input = this, caretPos = caret(input);
  102895. 0 === e.originalEvent.data.indexOf(compositionData) && (resetMaskSet(), caretPos = compositionCaretPos);
  102896. var newData = e.originalEvent.data;
  102897. caret(input, caretPos.begin, caretPos.end);
  102898. for (var i = 0; i < newData.length; i++) {
  102899. var keypress = $.Event("keypress");
  102900. keypress.which = newData.charCodeAt(i), skipKeyPressEvent = !1, ignorable = !1,
  102901. keypressEvent.call(input, keypress);
  102902. }
  102903. setTimeout(function() {
  102904. var forwardPosition = getMaskSet().p;
  102905. writeBuffer(input, getBuffer(), opts.numericInput ? seekPrevious(forwardPosition) : forwardPosition);
  102906. }, 0), compositionData = e.originalEvent.data;
  102907. }
  102908. function compositionEndEvent(e) {}
  102909. function setValueEvent(e) {
  102910. var input = this, value = input.inputmask._valueGet();
  102911. input.inputmask._valueSet($.isFunction(opts.onBeforeMask) ? opts.onBeforeMask.call(input, value, opts) || value : value),
  102912. checkVal(input, !0, !1), undoValue = getBuffer().join(""), (opts.clearMaskOnLostFocus || opts.clearIncomplete) && input.inputmask._valueGet() === getBufferTemplate().join("") && input.inputmask._valueSet("");
  102913. }
  102914. function focusEvent(e) {
  102915. var input = this, nptValue = input.inputmask._valueGet();
  102916. opts.showMaskOnFocus && (!opts.showMaskOnHover || opts.showMaskOnHover && "" === nptValue) ? input.inputmask._valueGet() !== getBuffer().join("") && writeBuffer(input, getBuffer(), seekNext(getLastValidPosition())) : mouseEnter === !1 && caret(input, seekNext(getLastValidPosition())),
  102917. opts.positionCaretOnTab === !0 && setTimeout(function() {
  102918. caret(input, seekNext(getLastValidPosition()));
  102919. }, 0), undoValue = getBuffer().join("");
  102920. }
  102921. function mouseleaveEvent(e) {
  102922. var $input = $(this), input = this;
  102923. if (mouseEnter = !1, opts.clearMaskOnLostFocus) {
  102924. var buffer = getBuffer().slice(), nptValue = input.inputmask._valueGet();
  102925. document.activeElement !== input && nptValue !== $input.attr("placeholder") && "" !== nptValue && (-1 === getLastValidPosition() && nptValue === getBufferTemplate().join("") ? buffer = [] : clearOptionalTail(buffer),
  102926. writeBuffer(input, buffer));
  102927. }
  102928. }
  102929. function clickEvent(e) {
  102930. function doRadixFocus(clickPos) {
  102931. if (opts.radixFocus && "" !== opts.radixPoint) {
  102932. var vps = getMaskSet().validPositions;
  102933. if (void 0 === vps[clickPos] || vps[clickPos].input === getPlaceholder(clickPos)) {
  102934. if (clickPos < seekNext(-1)) return !0;
  102935. var radixPos = $.inArray(opts.radixPoint, getBuffer());
  102936. if (-1 !== radixPos) {
  102937. for (var vp in vps) if (vp > radixPos && vps[vp].input !== getPlaceholder(vp)) return !1;
  102938. return !0;
  102939. }
  102940. }
  102941. }
  102942. return !1;
  102943. }
  102944. var input = this;
  102945. if (document.activeElement === input) {
  102946. var selectedCaret = caret(input);
  102947. if (selectedCaret.begin === selectedCaret.end) if (doRadixFocus(selectedCaret.begin)) caret(input, $.inArray(opts.radixPoint, getBuffer())); else {
  102948. var clickPosition = selectedCaret.begin, lastPosition = seekNext(getLastValidPosition(clickPosition));
  102949. lastPosition > clickPosition ? caret(input, isMask(clickPosition) || isMask(clickPosition - 1) ? clickPosition : seekNext(clickPosition)) : caret(input, opts.numericInput ? 0 : lastPosition);
  102950. }
  102951. }
  102952. }
  102953. function dblclickEvent(e) {
  102954. var input = this;
  102955. setTimeout(function() {
  102956. caret(input, 0, seekNext(getLastValidPosition()));
  102957. }, 0);
  102958. }
  102959. function cutEvent(e) {
  102960. skipInputEvent = !0;
  102961. var input = this, $input = $(input), pos = caret(input);
  102962. if (isRTL) {
  102963. var clipboardData = window.clipboardData || e.originalEvent.clipboardData, clipData = clipboardData.getData("text").split("").reverse().join("");
  102964. clipboardData.setData("text", clipData);
  102965. }
  102966. handleRemove(input, Inputmask.keyCode.DELETE, pos), writeBuffer(input, getBuffer(), getMaskSet().p, e, undoValue !== getBuffer().join("")),
  102967. input.inputmask._valueGet() === getBufferTemplate().join("") && $input.trigger("cleared"),
  102968. opts.showTooltip && (input.title = getMaskSet().mask);
  102969. }
  102970. function blurEvent(e) {
  102971. var $input = $(this), input = this;
  102972. if (input.inputmask) {
  102973. var nptValue = input.inputmask._valueGet(), buffer = getBuffer().slice();
  102974. undoValue !== buffer.join("") && setTimeout(function() {
  102975. $input.change(), undoValue = buffer.join("");
  102976. }, 0), "" !== nptValue && (opts.clearMaskOnLostFocus && (-1 === getLastValidPosition() && nptValue === getBufferTemplate().join("") ? buffer = [] : clearOptionalTail(buffer)),
  102977. isComplete(buffer) === !1 && (setTimeout(function() {
  102978. $input.trigger("incomplete");
  102979. }, 0), opts.clearIncomplete && (resetMaskSet(), buffer = opts.clearMaskOnLostFocus ? [] : getBufferTemplate().slice())),
  102980. writeBuffer(input, buffer, void 0, e));
  102981. }
  102982. }
  102983. function mouseenterEvent(e) {
  102984. var input = this;
  102985. mouseEnter = !0, document.activeElement !== input && opts.showMaskOnHover && input.inputmask._valueGet() !== getBuffer().join("") && writeBuffer(input, getBuffer());
  102986. }
  102987. function mask(el) {
  102988. $el = $(el), opts.showTooltip && $el.prop("title", getMaskSet().mask), ("rtl" === el.dir || opts.rightAlign) && (el.style.textAlign = "right"),
  102989. ("rtl" === el.dir || opts.numericInput) && (el.dir = "ltr", el.removeAttribute("dir"),
  102990. el.inputmask.isRTL = !0, isRTL = !0), $el.unbind(".inputmask"), ("INPUT" === el.tagName && isInputTypeSupported(el.getAttribute("type")) || el.isContentEditable) && ($el.closest("form").bind("submit", function() {
  102991. undoValue !== getBuffer().join("") && $el.change(), opts.clearMaskOnLostFocus && -1 === getLastValidPosition() && el.inputmask._valueGet && el.inputmask._valueGet() === getBufferTemplate().join("") && el.inputmask._valueSet(""),
  102992. opts.removeMaskOnSubmit && (el.inputmask._valueSet(el.inputmask.unmaskedvalue(), !0),
  102993. setTimeout(function() {
  102994. writeBuffer(el, getBuffer());
  102995. }, 0));
  102996. }).bind("reset", function() {
  102997. setTimeout(function() {
  102998. $el.triggerHandler("setvalue.inputmask");
  102999. }, 0);
  103000. }), $el.bind("mouseenter.inputmask", mouseenterEvent).bind("blur.inputmask", blurEvent).bind("focus.inputmask", focusEvent).bind("mouseleave.inputmask", mouseleaveEvent).bind("click.inputmask", clickEvent).bind("dblclick.inputmask", dblclickEvent).bind(PasteEventType + ".inputmask dragdrop.inputmask drop.inputmask", pasteEvent).bind("cut.inputmask", cutEvent).bind("complete.inputmask", opts.oncomplete).bind("incomplete.inputmask", opts.onincomplete).bind("cleared.inputmask", opts.oncleared).bind("keydown.inputmask", keydownEvent).bind("keypress.inputmask", keypressEvent),
  103001. androidfirefox || $el.bind("compositionstart.inputmask", compositionStartEvent).bind("compositionupdate.inputmask", compositionUpdateEvent).bind("compositionend.inputmask", compositionEndEvent),
  103002. "paste" === PasteEventType && $el.bind("input.inputmask", inputFallBackEvent)),
  103003. $el.bind("setvalue.inputmask", setValueEvent), patchValueProperty(el);
  103004. var initialValue = $.isFunction(opts.onBeforeMask) ? opts.onBeforeMask.call(el, el.inputmask._valueGet(), opts) || el.inputmask._valueGet() : el.inputmask._valueGet();
  103005. checkVal(el, !0, !1, initialValue.split(""));
  103006. var buffer = getBuffer().slice();
  103007. undoValue = buffer.join("");
  103008. var activeElement;
  103009. try {
  103010. activeElement = document.activeElement;
  103011. } catch (e) {}
  103012. isComplete(buffer) === !1 && opts.clearIncomplete && resetMaskSet(), opts.clearMaskOnLostFocus && (buffer.join("") === getBufferTemplate().join("") ? buffer = [] : clearOptionalTail(buffer)),
  103013. writeBuffer(el, buffer), activeElement === el && caret(el, seekNext(getLastValidPosition())),
  103014. installEventRuler(el);
  103015. }
  103016. var undoValue, compositionCaretPos, compositionData, el, $el, maxLength, valueBuffer, isRTL = !1, skipKeyPressEvent = !1, skipInputEvent = !1, ignorable = !1, mouseEnter = !0;
  103017. if (void 0 !== actionObj) switch (actionObj.action) {
  103018. case "isComplete":
  103019. return el = actionObj.el, $el = $(el), maskset = el.inputmask.maskset, opts = el.inputmask.opts,
  103020. isComplete(actionObj.buffer);
  103021. case "unmaskedvalue":
  103022. return el = actionObj.el, void 0 === el ? ($el = $({}), el = $el[0], el.inputmask = new Inputmask(),
  103023. el.inputmask.opts = opts, el.inputmask.el = el, el.inputmask.maskset = maskset,
  103024. el.inputmask.isRTL = opts.numericInput, opts.numericInput && (isRTL = !0), valueBuffer = ($.isFunction(opts.onBeforeMask) ? opts.onBeforeMask.call($el, actionObj.value, opts) || actionObj.value : actionObj.value).split(""),
  103025. checkVal($el, !1, !1, isRTL ? valueBuffer.reverse() : valueBuffer), $.isFunction(opts.onBeforeWrite) && opts.onBeforeWrite.call(this, void 0, getBuffer(), 0, opts)) : $el = $(el),
  103026. maskset = el.inputmask.maskset, opts = el.inputmask.opts, isRTL = el.inputmask.isRTL,
  103027. unmaskedvalue($el);
  103028. case "mask":
  103029. undoValue = getBuffer().join(""), mask(actionObj.el);
  103030. break;
  103031. case "format":
  103032. return $el = $({}), $el[0].inputmask = new Inputmask(), $el[0].inputmask.opts = opts,
  103033. $el[0].inputmask.el = $el[0], $el[0].inputmask.maskset = maskset, $el[0].inputmask.isRTL = opts.numericInput,
  103034. opts.numericInput && (isRTL = !0), valueBuffer = ($.isFunction(opts.onBeforeMask) ? opts.onBeforeMask.call($el, actionObj.value, opts) || actionObj.value : actionObj.value).split(""),
  103035. checkVal($el, !1, !1, isRTL ? valueBuffer.reverse() : valueBuffer), $.isFunction(opts.onBeforeWrite) && opts.onBeforeWrite.call(this, void 0, getBuffer(), 0, opts),
  103036. actionObj.metadata ? {
  103037. value: isRTL ? getBuffer().slice().reverse().join("") : getBuffer().join(""),
  103038. metadata: $el.inputmask("getmetadata")
  103039. } : isRTL ? getBuffer().slice().reverse().join("") : getBuffer().join("");
  103040. case "isValid":
  103041. $el = $({}), $el[0].inputmask = new Inputmask(), $el[0].inputmask.opts = opts, $el[0].inputmask.el = $el[0],
  103042. $el[0].inputmask.maskset = maskset, $el[0].inputmask.isRTL = opts.numericInput,
  103043. opts.numericInput && (isRTL = !0), valueBuffer = actionObj.value.split(""), checkVal($el, !1, !0, isRTL ? valueBuffer.reverse() : valueBuffer);
  103044. for (var buffer = getBuffer(), rl = determineLastRequiredPosition(), lmib = buffer.length - 1; lmib > rl && !isMask(lmib); lmib--) ;
  103045. return buffer.splice(rl, lmib + 1 - rl), isComplete(buffer) && actionObj.value === buffer.join("");
  103046. case "getemptymask":
  103047. return el = actionObj.el, $el = $(el), maskset = el.inputmask.maskset, opts = el.inputmask.opts,
  103048. getBufferTemplate();
  103049. case "remove":
  103050. el = actionObj.el, $el = $(el), maskset = el.inputmask.maskset, opts = el.inputmask.opts,
  103051. el.inputmask._valueSet(unmaskedvalue($el)), $el.unbind(".inputmask");
  103052. var valueProperty;
  103053. Object.getOwnPropertyDescriptor && (valueProperty = Object.getOwnPropertyDescriptor(el, "value")),
  103054. valueProperty && valueProperty.get ? el.inputmask.__valueGet && Object.defineProperty(el, "value", {
  103055. get: el.inputmask.__valueGet,
  103056. set: el.inputmask.__valueSet
  103057. }) : document.__lookupGetter__ && el.__lookupGetter__("value") && el.inputmask.__valueGet && (el.__defineGetter__("value", el.inputmask.__valueGet),
  103058. el.__defineSetter__("value", el.inputmask.__valueSet)), el.inputmask = void 0;
  103059. break;
  103060. case "getmetadata":
  103061. if (el = actionObj.el, $el = $(el), maskset = el.inputmask.maskset, opts = el.inputmask.opts,
  103062. $.isArray(maskset.metadata)) {
  103063. for (var alternation, lvp = getLastValidPosition(), firstAlt = lvp; firstAlt >= 0; firstAlt--) if (getMaskSet().validPositions[firstAlt] && void 0 !== getMaskSet().validPositions[firstAlt].alternation) {
  103064. alternation = getMaskSet().validPositions[firstAlt].alternation;
  103065. break;
  103066. }
  103067. return void 0 !== alternation ? maskset.metadata[getMaskSet().validPositions[lvp].locator[alternation]] : maskset.metadata[0];
  103068. }
  103069. return maskset.metadata;
  103070. }
  103071. }
  103072. Inputmask.prototype = {
  103073. defaults: {
  103074. placeholder: "_",
  103075. optionalmarker: {
  103076. start: "[",
  103077. end: "]"
  103078. },
  103079. quantifiermarker: {
  103080. start: "{",
  103081. end: "}"
  103082. },
  103083. groupmarker: {
  103084. start: "(",
  103085. end: ")"
  103086. },
  103087. alternatormarker: "|",
  103088. escapeChar: "\\",
  103089. mask: null,
  103090. oncomplete: $.noop,
  103091. onincomplete: $.noop,
  103092. oncleared: $.noop,
  103093. repeat: 0,
  103094. greedy: !0,
  103095. autoUnmask: !1,
  103096. removeMaskOnSubmit: !1,
  103097. clearMaskOnLostFocus: !0,
  103098. insertMode: !0,
  103099. clearIncomplete: !1,
  103100. aliases: {},
  103101. alias: null,
  103102. onKeyDown: $.noop,
  103103. onBeforeMask: null,
  103104. onBeforePaste: null,
  103105. onBeforeWrite: null,
  103106. onUnMask: null,
  103107. showMaskOnFocus: !0,
  103108. showMaskOnHover: !0,
  103109. onKeyValidation: $.noop,
  103110. skipOptionalPartCharacter: " ",
  103111. showTooltip: !1,
  103112. numericInput: !1,
  103113. rightAlign: !1,
  103114. undoOnEscape: !0,
  103115. radixPoint: "",
  103116. groupSeparator: "",
  103117. radixFocus: !1,
  103118. nojumps: !1,
  103119. nojumpsThreshold: 0,
  103120. keepStatic: null,
  103121. positionCaretOnTab: !1,
  103122. tabThrough: !1,
  103123. supportsInputType: [],
  103124. definitions: {
  103125. "9": {
  103126. validator: "[0-9]",
  103127. cardinality: 1,
  103128. definitionSymbol: "*"
  103129. },
  103130. a: {
  103131. validator: "[A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",
  103132. cardinality: 1,
  103133. definitionSymbol: "*"
  103134. },
  103135. "*": {
  103136. validator: "[0-9A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",
  103137. cardinality: 1
  103138. }
  103139. },
  103140. ignorables: [ 8, 9, 13, 19, 27, 33, 34, 35, 36, 37, 38, 39, 40, 45, 46, 93, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123 ],
  103141. isComplete: null,
  103142. canClearPosition: $.noop,
  103143. postValidation: null
  103144. },
  103145. masksCache: {},
  103146. mask: function(el) {
  103147. var scopedOpts = $.extend(!0, {}, this.opts);
  103148. importAttributeOptions(el, scopedOpts, $.extend(!0, {}, this.userOptions));
  103149. var maskset = generateMaskSet(scopedOpts, this.noMasksCache);
  103150. return void 0 !== maskset && (el.inputmask = el.inputmask || new Inputmask(), el.inputmask.opts = scopedOpts,
  103151. el.inputmask.noMasksCache = this.noMasksCache, el.inputmask.userOptions = $.extend(!0, {}, this.userOptions),
  103152. el.inputmask.el = el, el.inputmask.maskset = maskset, el.inputmask.isRTL = !1, $.data(el, "_inputmask_opts", scopedOpts),
  103153. maskScope({
  103154. action: "mask",
  103155. el: el
  103156. }, maskset, el.inputmask.opts)), el;
  103157. },
  103158. option: function(options) {
  103159. return "string" == typeof options ? this.opts[options] : "object" == typeof options ? ($.extend(this.opts, options),
  103160. $.extend(this.userOptions, options), this) : void 0;
  103161. },
  103162. unmaskedvalue: function() {
  103163. return this.el ? maskScope({
  103164. action: "unmaskedvalue",
  103165. el: this.el
  103166. }) : void 0;
  103167. },
  103168. remove: function() {
  103169. return this.el ? (maskScope({
  103170. action: "remove",
  103171. el: this.el
  103172. }), this.el.inputmask = void 0, this.el) : void 0;
  103173. },
  103174. getemptymask: function() {
  103175. return this.el ? maskScope({
  103176. action: "getemptymask",
  103177. el: this.el
  103178. }) : void 0;
  103179. },
  103180. hasMaskedValue: function() {
  103181. return !this.opts.autoUnmask;
  103182. },
  103183. isComplete: function() {
  103184. return this.el ? maskScope({
  103185. action: "isComplete",
  103186. buffer: this.el.inputmask._valueGet().split(""),
  103187. el: this.el
  103188. }) : void 0;
  103189. },
  103190. getmetadata: function() {
  103191. return this.el ? maskScope({
  103192. action: "getmetadata",
  103193. el: this.el
  103194. }) : void 0;
  103195. }
  103196. }, Inputmask.extendDefaults = function(options) {
  103197. $.extend(Inputmask.prototype.defaults, options);
  103198. }, Inputmask.extendDefinitions = function(definition) {
  103199. $.extend(Inputmask.prototype.defaults.definitions, definition);
  103200. }, Inputmask.extendAliases = function(alias) {
  103201. $.extend(Inputmask.prototype.defaults.aliases, alias);
  103202. }, Inputmask.format = function(value, options, metadata) {
  103203. var opts = $.extend(!0, {}, Inputmask.prototype.defaults, options);
  103204. return resolveAlias(opts.alias, options, opts), maskScope({
  103205. action: "format",
  103206. value: value,
  103207. metadata: metadata
  103208. }, generateMaskSet(opts, options && void 0 !== options.definitions), opts);
  103209. }, Inputmask.unmask = function(value, options) {
  103210. var opts = $.extend(!0, {}, Inputmask.prototype.defaults, options);
  103211. return resolveAlias(opts.alias, options, opts), maskScope({
  103212. action: "unmaskedvalue",
  103213. value: value
  103214. }, generateMaskSet(opts, options && void 0 !== options.definitions), opts);
  103215. }, Inputmask.isValid = function(value, options) {
  103216. var opts = $.extend(!0, {}, Inputmask.prototype.defaults, options);
  103217. return resolveAlias(opts.alias, options, opts), maskScope({
  103218. action: "isValid",
  103219. value: value
  103220. }, generateMaskSet(opts, options && void 0 !== options.definitions), opts);
  103221. }, Inputmask.escapeRegex = function(str) {
  103222. var specials = [ "/", ".", "*", "+", "?", "|", "(", ")", "[", "]", "{", "}", "\\", "$", "^" ];
  103223. return str.replace(new RegExp("(\\" + specials.join("|\\") + ")", "gim"), "\\$1");
  103224. }, Inputmask.keyCode = {
  103225. ALT: 18,
  103226. BACKSPACE: 8,
  103227. CAPS_LOCK: 20,
  103228. COMMA: 188,
  103229. COMMAND: 91,
  103230. COMMAND_LEFT: 91,
  103231. COMMAND_RIGHT: 93,
  103232. CONTROL: 17,
  103233. DELETE: 46,
  103234. DOWN: 40,
  103235. END: 35,
  103236. ENTER: 13,
  103237. ESCAPE: 27,
  103238. HOME: 36,
  103239. INSERT: 45,
  103240. LEFT: 37,
  103241. MENU: 93,
  103242. NUMPAD_ADD: 107,
  103243. NUMPAD_DECIMAL: 110,
  103244. NUMPAD_DIVIDE: 111,
  103245. NUMPAD_ENTER: 108,
  103246. NUMPAD_MULTIPLY: 106,
  103247. NUMPAD_SUBTRACT: 109,
  103248. PAGE_DOWN: 34,
  103249. PAGE_UP: 33,
  103250. PERIOD: 190,
  103251. RIGHT: 39,
  103252. SHIFT: 16,
  103253. SPACE: 32,
  103254. TAB: 9,
  103255. UP: 38,
  103256. WINDOWS: 91
  103257. };
  103258. var ua = navigator.userAgent, iphone = null !== ua.match(new RegExp("iphone", "i")), androidchrome = null !== ua.match(new RegExp("android.*chrome.*", "i")), androidfirefox = null !== ua.match(new RegExp("android.*firefox.*", "i")), PasteEventType = isInputEventSupported("paste") ? "paste" : isInputEventSupported("input") ? "input" : "propertychange";
  103259. return window.Inputmask = Inputmask, Inputmask;
  103260. }(jQuery), function($, Inputmask) {
  103261. return void 0 === $.fn.inputmask && ($.fn.inputmask = function(fn, options) {
  103262. var nptmask, input;
  103263. if (options = options || {}, "string" == typeof fn) switch (fn) {
  103264. case "mask":
  103265. return nptmask = new Inputmask(options), this.each(function() {
  103266. nptmask.mask(this);
  103267. });
  103268. case "unmaskedvalue":
  103269. return input = this.jquery && this.length > 0 ? this[0] : this, input.inputmask ? input.inputmask.unmaskedvalue() : $(input).val();
  103270. case "remove":
  103271. return this.each(function() {
  103272. this.inputmask && this.inputmask.remove();
  103273. });
  103274. case "getemptymask":
  103275. return input = this.jquery && this.length > 0 ? this[0] : this, input.inputmask ? input.inputmask.getemptymask() : "";
  103276. case "hasMaskedValue":
  103277. return input = this.jquery && this.length > 0 ? this[0] : this, input.inputmask ? input.inputmask.hasMaskedValue() : !1;
  103278. case "isComplete":
  103279. return input = this.jquery && this.length > 0 ? this[0] : this, input.inputmask ? input.inputmask.isComplete() : !0;
  103280. case "getmetadata":
  103281. return input = this.jquery && this.length > 0 ? this[0] : this, input.inputmask ? input.inputmask.getmetadata() : void 0;
  103282. case "setvalue":
  103283. input = this.jquery && this.length > 0 ? this[0] : this, $(input).val(options),
  103284. void 0 !== input.inputmask && $(input).triggerHandler("setvalue.inputmask");
  103285. break;
  103286. case "option":
  103287. if ("string" != typeof options) return this.each(function() {
  103288. return void 0 !== this.inputmask ? this.inputmask.option(options) : void 0;
  103289. });
  103290. if (input = this.jquery && this.length > 0 ? this[0] : this, void 0 !== input.inputmask) return input.inputmask.option(options);
  103291. break;
  103292. default:
  103293. return options.alias = fn, nptmask = new Inputmask(options), this.each(function() {
  103294. nptmask.mask(this);
  103295. });
  103296. } else {
  103297. if ("object" == typeof fn) return nptmask = new Inputmask(fn), this.each(void 0 === fn.mask && void 0 === fn.alias ? function() {
  103298. return void 0 !== this.inputmask ? this.inputmask.option(fn) : void nptmask.mask(this);
  103299. } : function() {
  103300. nptmask.mask(this);
  103301. });
  103302. if (void 0 === fn) return this.each(function() {
  103303. nptmask = new Inputmask(options), nptmask.mask(this);
  103304. });
  103305. }
  103306. }), $.fn.inputmask;
  103307. }(jQuery, Inputmask), function($, Inputmask) {
  103308. return Inputmask.extendDefinitions({
  103309. h: {
  103310. validator: "[01][0-9]|2[0-3]",
  103311. cardinality: 2,
  103312. prevalidator: [ {
  103313. validator: "[0-2]",
  103314. cardinality: 1
  103315. } ]
  103316. },
  103317. s: {
  103318. validator: "[0-5][0-9]",
  103319. cardinality: 2,
  103320. prevalidator: [ {
  103321. validator: "[0-5]",
  103322. cardinality: 1
  103323. } ]
  103324. },
  103325. d: {
  103326. validator: "0[1-9]|[12][0-9]|3[01]",
  103327. cardinality: 2,
  103328. prevalidator: [ {
  103329. validator: "[0-3]",
  103330. cardinality: 1
  103331. } ]
  103332. },
  103333. m: {
  103334. validator: "0[1-9]|1[012]",
  103335. cardinality: 2,
  103336. prevalidator: [ {
  103337. validator: "[01]",
  103338. cardinality: 1
  103339. } ]
  103340. },
  103341. y: {
  103342. validator: "(19|20)\\d{2}",
  103343. cardinality: 4,
  103344. prevalidator: [ {
  103345. validator: "[12]",
  103346. cardinality: 1
  103347. }, {
  103348. validator: "(19|20)",
  103349. cardinality: 2
  103350. }, {
  103351. validator: "(19|20)\\d",
  103352. cardinality: 3
  103353. } ]
  103354. }
  103355. }), Inputmask.extendAliases({
  103356. "dd/mm/yyyy": {
  103357. mask: "1/2/y",
  103358. placeholder: "dd/mm/yyyy",
  103359. regex: {
  103360. val1pre: new RegExp("[0-3]"),
  103361. val1: new RegExp("0[1-9]|[12][0-9]|3[01]"),
  103362. val2pre: function(separator) {
  103363. var escapedSeparator = Inputmask.escapeRegex.call(this, separator);
  103364. return new RegExp("((0[1-9]|[12][0-9]|3[01])" + escapedSeparator + "[01])");
  103365. },
  103366. val2: function(separator) {
  103367. var escapedSeparator = Inputmask.escapeRegex.call(this, separator);
  103368. return new RegExp("((0[1-9]|[12][0-9])" + escapedSeparator + "(0[1-9]|1[012]))|(30" + escapedSeparator + "(0[13-9]|1[012]))|(31" + escapedSeparator + "(0[13578]|1[02]))");
  103369. }
  103370. },
  103371. leapday: "29/02/",
  103372. separator: "/",
  103373. yearrange: {
  103374. minyear: 1900,
  103375. maxyear: 2099
  103376. },
  103377. isInYearRange: function(chrs, minyear, maxyear) {
  103378. if (isNaN(chrs)) return !1;
  103379. var enteredyear = parseInt(chrs.concat(minyear.toString().slice(chrs.length))), enteredyear2 = parseInt(chrs.concat(maxyear.toString().slice(chrs.length)));
  103380. return (isNaN(enteredyear) ? !1 : enteredyear >= minyear && maxyear >= enteredyear) || (isNaN(enteredyear2) ? !1 : enteredyear2 >= minyear && maxyear >= enteredyear2);
  103381. },
  103382. determinebaseyear: function(minyear, maxyear, hint) {
  103383. var currentyear = new Date().getFullYear();
  103384. if (minyear > currentyear) return minyear;
  103385. if (currentyear > maxyear) {
  103386. for (var maxYearPrefix = maxyear.toString().slice(0, 2), maxYearPostfix = maxyear.toString().slice(2, 4); maxYearPrefix + hint > maxyear; ) maxYearPrefix--;
  103387. var maxxYear = maxYearPrefix + maxYearPostfix;
  103388. return minyear > maxxYear ? minyear : maxxYear;
  103389. }
  103390. return currentyear;
  103391. },
  103392. onKeyDown: function(e, buffer, caretPos, opts) {
  103393. var $input = $(this);
  103394. if (e.ctrlKey && e.keyCode === Inputmask.keyCode.RIGHT) {
  103395. var today = new Date();
  103396. $input.val(today.getDate().toString() + (today.getMonth() + 1).toString() + today.getFullYear().toString()),
  103397. $input.triggerHandler("setvalue.inputmask");
  103398. }
  103399. },
  103400. getFrontValue: function(mask, buffer, opts) {
  103401. for (var start = 0, length = 0, i = 0; i < mask.length && "2" !== mask.charAt(i); i++) {
  103402. var definition = opts.definitions[mask.charAt(i)];
  103403. definition ? (start += length, length = definition.cardinality) : length++;
  103404. }
  103405. return buffer.join("").substr(start, length);
  103406. },
  103407. definitions: {
  103408. "1": {
  103409. validator: function(chrs, maskset, pos, strict, opts) {
  103410. var isValid = opts.regex.val1.test(chrs);
  103411. return strict || isValid || chrs.charAt(1) !== opts.separator && -1 === "-./".indexOf(chrs.charAt(1)) || !(isValid = opts.regex.val1.test("0" + chrs.charAt(0))) ? isValid : (maskset.buffer[pos - 1] = "0",
  103412. {
  103413. refreshFromBuffer: {
  103414. start: pos - 1,
  103415. end: pos
  103416. },
  103417. pos: pos,
  103418. c: chrs.charAt(0)
  103419. });
  103420. },
  103421. cardinality: 2,
  103422. prevalidator: [ {
  103423. validator: function(chrs, maskset, pos, strict, opts) {
  103424. var pchrs = chrs;
  103425. isNaN(maskset.buffer[pos + 1]) || (pchrs += maskset.buffer[pos + 1]);
  103426. var isValid = 1 === pchrs.length ? opts.regex.val1pre.test(pchrs) : opts.regex.val1.test(pchrs);
  103427. if (!strict && !isValid) {
  103428. if (isValid = opts.regex.val1.test(chrs + "0")) return maskset.buffer[pos] = chrs,
  103429. maskset.buffer[++pos] = "0", {
  103430. pos: pos,
  103431. c: "0"
  103432. };
  103433. if (isValid = opts.regex.val1.test("0" + chrs)) return maskset.buffer[pos] = "0",
  103434. pos++, {
  103435. pos: pos
  103436. };
  103437. }
  103438. return isValid;
  103439. },
  103440. cardinality: 1
  103441. } ]
  103442. },
  103443. "2": {
  103444. validator: function(chrs, maskset, pos, strict, opts) {
  103445. var frontValue = opts.getFrontValue(maskset.mask, maskset.buffer, opts);
  103446. -1 !== frontValue.indexOf(opts.placeholder[0]) && (frontValue = "01" + opts.separator);
  103447. var isValid = opts.regex.val2(opts.separator).test(frontValue + chrs);
  103448. if (!strict && !isValid && (chrs.charAt(1) === opts.separator || -1 !== "-./".indexOf(chrs.charAt(1))) && (isValid = opts.regex.val2(opts.separator).test(frontValue + "0" + chrs.charAt(0)))) return maskset.buffer[pos - 1] = "0",
  103449. {
  103450. refreshFromBuffer: {
  103451. start: pos - 1,
  103452. end: pos
  103453. },
  103454. pos: pos,
  103455. c: chrs.charAt(0)
  103456. };
  103457. if (opts.mask.indexOf("2") === opts.mask.length - 1 && isValid) {
  103458. var dayMonthValue = maskset.buffer.join("").substr(4, 4) + chrs;
  103459. if (dayMonthValue !== opts.leapday) return !0;
  103460. var year = parseInt(maskset.buffer.join("").substr(0, 4), 10);
  103461. return year % 4 === 0 ? year % 100 === 0 ? year % 400 === 0 ? !0 : !1 : !0 : !1;
  103462. }
  103463. return isValid;
  103464. },
  103465. cardinality: 2,
  103466. prevalidator: [ {
  103467. validator: function(chrs, maskset, pos, strict, opts) {
  103468. isNaN(maskset.buffer[pos + 1]) || (chrs += maskset.buffer[pos + 1]);
  103469. var frontValue = opts.getFrontValue(maskset.mask, maskset.buffer, opts);
  103470. -1 !== frontValue.indexOf(opts.placeholder[0]) && (frontValue = "01" + opts.separator);
  103471. var isValid = 1 === chrs.length ? opts.regex.val2pre(opts.separator).test(frontValue + chrs) : opts.regex.val2(opts.separator).test(frontValue + chrs);
  103472. return strict || isValid || !(isValid = opts.regex.val2(opts.separator).test(frontValue + "0" + chrs)) ? isValid : (maskset.buffer[pos] = "0",
  103473. pos++, {
  103474. pos: pos
  103475. });
  103476. },
  103477. cardinality: 1
  103478. } ]
  103479. },
  103480. y: {
  103481. validator: function(chrs, maskset, pos, strict, opts) {
  103482. if (opts.isInYearRange(chrs, opts.yearrange.minyear, opts.yearrange.maxyear)) {
  103483. var dayMonthValue = maskset.buffer.join("").substr(0, 6);
  103484. if (dayMonthValue !== opts.leapday) return !0;
  103485. var year = parseInt(chrs, 10);
  103486. return year % 4 === 0 ? year % 100 === 0 ? year % 400 === 0 ? !0 : !1 : !0 : !1;
  103487. }
  103488. return !1;
  103489. },
  103490. cardinality: 4,
  103491. prevalidator: [ {
  103492. validator: function(chrs, maskset, pos, strict, opts) {
  103493. var isValid = opts.isInYearRange(chrs, opts.yearrange.minyear, opts.yearrange.maxyear);
  103494. if (!strict && !isValid) {
  103495. var yearPrefix = opts.determinebaseyear(opts.yearrange.minyear, opts.yearrange.maxyear, chrs + "0").toString().slice(0, 1);
  103496. if (isValid = opts.isInYearRange(yearPrefix + chrs, opts.yearrange.minyear, opts.yearrange.maxyear)) return maskset.buffer[pos++] = yearPrefix.charAt(0),
  103497. {
  103498. pos: pos
  103499. };
  103500. if (yearPrefix = opts.determinebaseyear(opts.yearrange.minyear, opts.yearrange.maxyear, chrs + "0").toString().slice(0, 2),
  103501. isValid = opts.isInYearRange(yearPrefix + chrs, opts.yearrange.minyear, opts.yearrange.maxyear)) return maskset.buffer[pos++] = yearPrefix.charAt(0),
  103502. maskset.buffer[pos++] = yearPrefix.charAt(1), {
  103503. pos: pos
  103504. };
  103505. }
  103506. return isValid;
  103507. },
  103508. cardinality: 1
  103509. }, {
  103510. validator: function(chrs, maskset, pos, strict, opts) {
  103511. var isValid = opts.isInYearRange(chrs, opts.yearrange.minyear, opts.yearrange.maxyear);
  103512. if (!strict && !isValid) {
  103513. var yearPrefix = opts.determinebaseyear(opts.yearrange.minyear, opts.yearrange.maxyear, chrs).toString().slice(0, 2);
  103514. if (isValid = opts.isInYearRange(chrs[0] + yearPrefix[1] + chrs[1], opts.yearrange.minyear, opts.yearrange.maxyear)) return maskset.buffer[pos++] = yearPrefix.charAt(1),
  103515. {
  103516. pos: pos
  103517. };
  103518. if (yearPrefix = opts.determinebaseyear(opts.yearrange.minyear, opts.yearrange.maxyear, chrs).toString().slice(0, 2),
  103519. opts.isInYearRange(yearPrefix + chrs, opts.yearrange.minyear, opts.yearrange.maxyear)) {
  103520. var dayMonthValue = maskset.buffer.join("").substr(0, 6);
  103521. if (dayMonthValue !== opts.leapday) isValid = !0; else {
  103522. var year = parseInt(chrs, 10);
  103523. isValid = year % 4 === 0 ? year % 100 === 0 ? year % 400 === 0 ? !0 : !1 : !0 : !1;
  103524. }
  103525. } else isValid = !1;
  103526. if (isValid) return maskset.buffer[pos - 1] = yearPrefix.charAt(0), maskset.buffer[pos++] = yearPrefix.charAt(1),
  103527. maskset.buffer[pos++] = chrs.charAt(0), {
  103528. refreshFromBuffer: {
  103529. start: pos - 3,
  103530. end: pos
  103531. },
  103532. pos: pos
  103533. };
  103534. }
  103535. return isValid;
  103536. },
  103537. cardinality: 2
  103538. }, {
  103539. validator: function(chrs, maskset, pos, strict, opts) {
  103540. return opts.isInYearRange(chrs, opts.yearrange.minyear, opts.yearrange.maxyear);
  103541. },
  103542. cardinality: 3
  103543. } ]
  103544. }
  103545. },
  103546. insertMode: !1,
  103547. autoUnmask: !1
  103548. },
  103549. "mm/dd/yyyy": {
  103550. placeholder: "mm/dd/yyyy",
  103551. alias: "dd/mm/yyyy",
  103552. regex: {
  103553. val2pre: function(separator) {
  103554. var escapedSeparator = Inputmask.escapeRegex.call(this, separator);
  103555. return new RegExp("((0[13-9]|1[012])" + escapedSeparator + "[0-3])|(02" + escapedSeparator + "[0-2])");
  103556. },
  103557. val2: function(separator) {
  103558. var escapedSeparator = Inputmask.escapeRegex.call(this, separator);
  103559. return new RegExp("((0[1-9]|1[012])" + escapedSeparator + "(0[1-9]|[12][0-9]))|((0[13-9]|1[012])" + escapedSeparator + "30)|((0[13578]|1[02])" + escapedSeparator + "31)");
  103560. },
  103561. val1pre: new RegExp("[01]"),
  103562. val1: new RegExp("0[1-9]|1[012]")
  103563. },
  103564. leapday: "02/29/",
  103565. onKeyDown: function(e, buffer, caretPos, opts) {
  103566. var $input = $(this);
  103567. if (e.ctrlKey && e.keyCode === Inputmask.keyCode.RIGHT) {
  103568. var today = new Date();
  103569. $input.val((today.getMonth() + 1).toString() + today.getDate().toString() + today.getFullYear().toString()),
  103570. $input.triggerHandler("setvalue.inputmask");
  103571. }
  103572. }
  103573. },
  103574. "yyyy/mm/dd": {
  103575. mask: "y/1/2",
  103576. placeholder: "yyyy/mm/dd",
  103577. alias: "mm/dd/yyyy",
  103578. leapday: "/02/29",
  103579. onKeyDown: function(e, buffer, caretPos, opts) {
  103580. var $input = $(this);
  103581. if (e.ctrlKey && e.keyCode === Inputmask.keyCode.RIGHT) {
  103582. var today = new Date();
  103583. $input.val(today.getFullYear().toString() + (today.getMonth() + 1).toString() + today.getDate().toString()),
  103584. $input.triggerHandler("setvalue.inputmask");
  103585. }
  103586. }
  103587. },
  103588. "dd.mm.yyyy": {
  103589. mask: "1.2.y",
  103590. placeholder: "dd.mm.yyyy",
  103591. leapday: "29.02.",
  103592. separator: ".",
  103593. alias: "dd/mm/yyyy"
  103594. },
  103595. "dd-mm-yyyy": {
  103596. mask: "1-2-y",
  103597. placeholder: "dd-mm-yyyy",
  103598. leapday: "29-02-",
  103599. separator: "-",
  103600. alias: "dd/mm/yyyy"
  103601. },
  103602. "mm.dd.yyyy": {
  103603. mask: "1.2.y",
  103604. placeholder: "mm.dd.yyyy",
  103605. leapday: "02.29.",
  103606. separator: ".",
  103607. alias: "mm/dd/yyyy"
  103608. },
  103609. "mm-dd-yyyy": {
  103610. mask: "1-2-y",
  103611. placeholder: "mm-dd-yyyy",
  103612. leapday: "02-29-",
  103613. separator: "-",
  103614. alias: "mm/dd/yyyy"
  103615. },
  103616. "yyyy.mm.dd": {
  103617. mask: "y.1.2",
  103618. placeholder: "yyyy.mm.dd",
  103619. leapday: ".02.29",
  103620. separator: ".",
  103621. alias: "yyyy/mm/dd"
  103622. },
  103623. "yyyy-mm-dd": {
  103624. mask: "y-1-2",
  103625. placeholder: "yyyy-mm-dd",
  103626. leapday: "-02-29",
  103627. separator: "-",
  103628. alias: "yyyy/mm/dd"
  103629. },
  103630. datetime: {
  103631. mask: "1/2/y h:s",
  103632. placeholder: "dd/mm/yyyy hh:mm",
  103633. alias: "dd/mm/yyyy",
  103634. regex: {
  103635. hrspre: new RegExp("[012]"),
  103636. hrs24: new RegExp("2[0-4]|1[3-9]"),
  103637. hrs: new RegExp("[01][0-9]|2[0-4]"),
  103638. ampm: new RegExp("^[a|p|A|P][m|M]"),
  103639. mspre: new RegExp("[0-5]"),
  103640. ms: new RegExp("[0-5][0-9]")
  103641. },
  103642. timeseparator: ":",
  103643. hourFormat: "24",
  103644. definitions: {
  103645. h: {
  103646. validator: function(chrs, maskset, pos, strict, opts) {
  103647. if ("24" === opts.hourFormat && 24 === parseInt(chrs, 10)) return maskset.buffer[pos - 1] = "0",
  103648. maskset.buffer[pos] = "0", {
  103649. refreshFromBuffer: {
  103650. start: pos - 1,
  103651. end: pos
  103652. },
  103653. c: "0"
  103654. };
  103655. var isValid = opts.regex.hrs.test(chrs);
  103656. if (!strict && !isValid && (chrs.charAt(1) === opts.timeseparator || -1 !== "-.:".indexOf(chrs.charAt(1))) && (isValid = opts.regex.hrs.test("0" + chrs.charAt(0)))) return maskset.buffer[pos - 1] = "0",
  103657. maskset.buffer[pos] = chrs.charAt(0), pos++, {
  103658. refreshFromBuffer: {
  103659. start: pos - 2,
  103660. end: pos
  103661. },
  103662. pos: pos,
  103663. c: opts.timeseparator
  103664. };
  103665. if (isValid && "24" !== opts.hourFormat && opts.regex.hrs24.test(chrs)) {
  103666. var tmp = parseInt(chrs, 10);
  103667. return 24 === tmp ? (maskset.buffer[pos + 5] = "a", maskset.buffer[pos + 6] = "m") : (maskset.buffer[pos + 5] = "p",
  103668. maskset.buffer[pos + 6] = "m"), tmp -= 12, 10 > tmp ? (maskset.buffer[pos] = tmp.toString(),
  103669. maskset.buffer[pos - 1] = "0") : (maskset.buffer[pos] = tmp.toString().charAt(1),
  103670. maskset.buffer[pos - 1] = tmp.toString().charAt(0)), {
  103671. refreshFromBuffer: {
  103672. start: pos - 1,
  103673. end: pos + 6
  103674. },
  103675. c: maskset.buffer[pos]
  103676. };
  103677. }
  103678. return isValid;
  103679. },
  103680. cardinality: 2,
  103681. prevalidator: [ {
  103682. validator: function(chrs, maskset, pos, strict, opts) {
  103683. var isValid = opts.regex.hrspre.test(chrs);
  103684. return strict || isValid || !(isValid = opts.regex.hrs.test("0" + chrs)) ? isValid : (maskset.buffer[pos] = "0",
  103685. pos++, {
  103686. pos: pos
  103687. });
  103688. },
  103689. cardinality: 1
  103690. } ]
  103691. },
  103692. s: {
  103693. validator: "[0-5][0-9]",
  103694. cardinality: 2,
  103695. prevalidator: [ {
  103696. validator: function(chrs, maskset, pos, strict, opts) {
  103697. var isValid = opts.regex.mspre.test(chrs);
  103698. return strict || isValid || !(isValid = opts.regex.ms.test("0" + chrs)) ? isValid : (maskset.buffer[pos] = "0",
  103699. pos++, {
  103700. pos: pos
  103701. });
  103702. },
  103703. cardinality: 1
  103704. } ]
  103705. },
  103706. t: {
  103707. validator: function(chrs, maskset, pos, strict, opts) {
  103708. return opts.regex.ampm.test(chrs + "m");
  103709. },
  103710. casing: "lower",
  103711. cardinality: 1
  103712. }
  103713. },
  103714. insertMode: !1,
  103715. autoUnmask: !1
  103716. },
  103717. datetime12: {
  103718. mask: "1/2/y h:s t\\m",
  103719. placeholder: "dd/mm/yyyy hh:mm xm",
  103720. alias: "datetime",
  103721. hourFormat: "12"
  103722. },
  103723. "mm/dd/yyyy hh:mm xm": {
  103724. mask: "1/2/y h:s t\\m",
  103725. placeholder: "mm/dd/yyyy hh:mm xm",
  103726. alias: "datetime12",
  103727. regex: {
  103728. val2pre: function(separator) {
  103729. var escapedSeparator = Inputmask.escapeRegex.call(this, separator);
  103730. return new RegExp("((0[13-9]|1[012])" + escapedSeparator + "[0-3])|(02" + escapedSeparator + "[0-2])");
  103731. },
  103732. val2: function(separator) {
  103733. var escapedSeparator = Inputmask.escapeRegex.call(this, separator);
  103734. return new RegExp("((0[1-9]|1[012])" + escapedSeparator + "(0[1-9]|[12][0-9]))|((0[13-9]|1[012])" + escapedSeparator + "30)|((0[13578]|1[02])" + escapedSeparator + "31)");
  103735. },
  103736. val1pre: new RegExp("[01]"),
  103737. val1: new RegExp("0[1-9]|1[012]")
  103738. },
  103739. leapday: "02/29/",
  103740. onKeyDown: function(e, buffer, caretPos, opts) {
  103741. var $input = $(this);
  103742. if (e.ctrlKey && e.keyCode === Inputmask.keyCode.RIGHT) {
  103743. var today = new Date();
  103744. $input.val((today.getMonth() + 1).toString() + today.getDate().toString() + today.getFullYear().toString()),
  103745. $input.triggerHandler("setvalue.inputmask");
  103746. }
  103747. }
  103748. },
  103749. "hh:mm t": {
  103750. mask: "h:s t\\m",
  103751. placeholder: "hh:mm xm",
  103752. alias: "datetime",
  103753. hourFormat: "12"
  103754. },
  103755. "h:s t": {
  103756. mask: "h:s t\\m",
  103757. placeholder: "hh:mm xm",
  103758. alias: "datetime",
  103759. hourFormat: "12"
  103760. },
  103761. "hh:mm:ss": {
  103762. mask: "h:s:s",
  103763. placeholder: "hh:mm:ss",
  103764. alias: "datetime",
  103765. autoUnmask: !1
  103766. },
  103767. "hh:mm": {
  103768. mask: "h:s",
  103769. placeholder: "hh:mm",
  103770. alias: "datetime",
  103771. autoUnmask: !1
  103772. },
  103773. date: {
  103774. alias: "dd/mm/yyyy"
  103775. },
  103776. "mm/yyyy": {
  103777. mask: "1/y",
  103778. placeholder: "mm/yyyy",
  103779. leapday: "donotuse",
  103780. separator: "/",
  103781. alias: "mm/dd/yyyy"
  103782. },
  103783. shamsi: {
  103784. regex: {
  103785. val2pre: function(separator) {
  103786. var escapedSeparator = Inputmask.escapeRegex.call(this, separator);
  103787. return new RegExp("((0[1-9]|1[012])" + escapedSeparator + "[0-3])");
  103788. },
  103789. val2: function(separator) {
  103790. var escapedSeparator = Inputmask.escapeRegex.call(this, separator);
  103791. return new RegExp("((0[1-9]|1[012])" + escapedSeparator + "(0[1-9]|[12][0-9]))|((0[1-9]|1[012])" + escapedSeparator + "30)|((0[1-6])" + escapedSeparator + "31)");
  103792. },
  103793. val1pre: new RegExp("[01]"),
  103794. val1: new RegExp("0[1-9]|1[012]")
  103795. },
  103796. yearrange: {
  103797. minyear: 1300,
  103798. maxyear: 1499
  103799. },
  103800. mask: "y/1/2",
  103801. leapday: "/12/30",
  103802. placeholder: "yyyy/mm/dd",
  103803. alias: "mm/dd/yyyy",
  103804. clearIncomplete: !0
  103805. }
  103806. }), Inputmask;
  103807. }(jQuery, Inputmask), function($, Inputmask) {
  103808. return Inputmask.extendDefinitions({
  103809. A: {
  103810. validator: "[A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",
  103811. cardinality: 1,
  103812. casing: "upper"
  103813. },
  103814. "&": {
  103815. validator: "[0-9A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",
  103816. cardinality: 1,
  103817. casing: "upper"
  103818. },
  103819. "#": {
  103820. validator: "[0-9A-Fa-f]",
  103821. cardinality: 1,
  103822. casing: "upper"
  103823. }
  103824. }), Inputmask.extendAliases({
  103825. url: {
  103826. mask: "ir",
  103827. placeholder: "",
  103828. separator: "",
  103829. defaultPrefix: "http://",
  103830. regex: {
  103831. urlpre1: new RegExp("[fh]"),
  103832. urlpre2: new RegExp("(ft|ht)"),
  103833. urlpre3: new RegExp("(ftp|htt)"),
  103834. urlpre4: new RegExp("(ftp:|http|ftps)"),
  103835. urlpre5: new RegExp("(ftp:/|ftps:|http:|https)"),
  103836. urlpre6: new RegExp("(ftp://|ftps:/|http:/|https:)"),
  103837. urlpre7: new RegExp("(ftp://|ftps://|http://|https:/)"),
  103838. urlpre8: new RegExp("(ftp://|ftps://|http://|https://)")
  103839. },
  103840. definitions: {
  103841. i: {
  103842. validator: function(chrs, maskset, pos, strict, opts) {
  103843. return !0;
  103844. },
  103845. cardinality: 8,
  103846. prevalidator: function() {
  103847. for (var result = [], prefixLimit = 8, i = 0; prefixLimit > i; i++) result[i] = function() {
  103848. var j = i;
  103849. return {
  103850. validator: function(chrs, maskset, pos, strict, opts) {
  103851. if (opts.regex["urlpre" + (j + 1)]) {
  103852. var k, tmp = chrs;
  103853. j + 1 - chrs.length > 0 && (tmp = maskset.buffer.join("").substring(0, j + 1 - chrs.length) + "" + tmp);
  103854. var isValid = opts.regex["urlpre" + (j + 1)].test(tmp);
  103855. if (!strict && !isValid) {
  103856. for (pos -= j, k = 0; k < opts.defaultPrefix.length; k++) maskset.buffer[pos] = opts.defaultPrefix[k],
  103857. pos++;
  103858. for (k = 0; k < tmp.length - 1; k++) maskset.buffer[pos] = tmp[k], pos++;
  103859. return {
  103860. pos: pos
  103861. };
  103862. }
  103863. return isValid;
  103864. }
  103865. return !1;
  103866. },
  103867. cardinality: j
  103868. };
  103869. }();
  103870. return result;
  103871. }()
  103872. },
  103873. r: {
  103874. validator: ".",
  103875. cardinality: 50
  103876. }
  103877. },
  103878. insertMode: !1,
  103879. autoUnmask: !1
  103880. },
  103881. ip: {
  103882. mask: "i[i[i]].i[i[i]].i[i[i]].i[i[i]]",
  103883. definitions: {
  103884. i: {
  103885. validator: function(chrs, maskset, pos, strict, opts) {
  103886. return pos - 1 > -1 && "." !== maskset.buffer[pos - 1] ? (chrs = maskset.buffer[pos - 1] + chrs,
  103887. chrs = pos - 2 > -1 && "." !== maskset.buffer[pos - 2] ? maskset.buffer[pos - 2] + chrs : "0" + chrs) : chrs = "00" + chrs,
  103888. new RegExp("25[0-5]|2[0-4][0-9]|[01][0-9][0-9]").test(chrs);
  103889. },
  103890. cardinality: 1
  103891. }
  103892. }
  103893. },
  103894. email: {
  103895. mask: "*{1,64}[.*{1,64}][.*{1,64}][.*{1,64}]@*{1,64}[.*{2,64}][.*{2,6}][.*{1,2}]",
  103896. greedy: !1,
  103897. onBeforePaste: function(pastedValue, opts) {
  103898. return pastedValue = pastedValue.toLowerCase(), pastedValue.replace("mailto:", "");
  103899. },
  103900. definitions: {
  103901. "*": {
  103902. validator: "[0-9A-Za-z!#$%&'*+/=?^_`{|}~-]",
  103903. cardinality: 1,
  103904. casing: "lower"
  103905. }
  103906. }
  103907. },
  103908. mac: {
  103909. mask: "##:##:##:##:##:##"
  103910. }
  103911. }), Inputmask;
  103912. }(jQuery, Inputmask), function($, Inputmask) {
  103913. return Inputmask.extendAliases({
  103914. numeric: {
  103915. mask: function(opts) {
  103916. function autoEscape(txt) {
  103917. for (var escapedTxt = "", i = 0; i < txt.length; i++) escapedTxt += opts.definitions[txt.charAt(i)] ? "\\" + txt.charAt(i) : txt.charAt(i);
  103918. return escapedTxt;
  103919. }
  103920. if (0 !== opts.repeat && isNaN(opts.integerDigits) && (opts.integerDigits = opts.repeat),
  103921. opts.repeat = 0, opts.groupSeparator === opts.radixPoint && ("." === opts.radixPoint ? opts.groupSeparator = "," : "," === opts.radixPoint ? opts.groupSeparator = "." : opts.groupSeparator = ""),
  103922. " " === opts.groupSeparator && (opts.skipOptionalPartCharacter = void 0), opts.autoGroup = opts.autoGroup && "" !== opts.groupSeparator,
  103923. opts.autoGroup && ("string" == typeof opts.groupSize && isFinite(opts.groupSize) && (opts.groupSize = parseInt(opts.groupSize)),
  103924. isFinite(opts.integerDigits))) {
  103925. var seps = Math.floor(opts.integerDigits / opts.groupSize), mod = opts.integerDigits % opts.groupSize;
  103926. opts.integerDigits = parseInt(opts.integerDigits) + (0 === mod ? seps - 1 : seps),
  103927. opts.integerDigits < 1 && (opts.integerDigits = "*");
  103928. }
  103929. opts.placeholder.length > 1 && (opts.placeholder = opts.placeholder.charAt(0)),
  103930. opts.radixFocus = opts.radixFocus && "" !== opts.placeholder && opts.integerOptional === !0,
  103931. opts.definitions[";"] = opts.definitions["~"], opts.definitions[";"].definitionSymbol = "~",
  103932. opts.numericInput === !0 && (opts.radixFocus = !1, opts.digitsOptional = !1, isNaN(opts.digits) && (opts.digits = 2),
  103933. opts.decimalProtect = !1);
  103934. var mask = autoEscape(opts.prefix);
  103935. return mask += "[+]", mask += opts.integerOptional === !0 ? "~{1," + opts.integerDigits + "}" : "~{" + opts.integerDigits + "}",
  103936. void 0 !== opts.digits && (isNaN(opts.digits) || parseInt(opts.digits) > 0) && (mask += opts.digitsOptional ? "[" + (opts.decimalProtect ? ":" : opts.radixPoint) + ";{1," + opts.digits + "}]" : (opts.decimalProtect ? ":" : opts.radixPoint) + ";{" + opts.digits + "}"),
  103937. "" !== opts.negationSymbol.back && (mask += "[-]"), mask += autoEscape(opts.suffix),
  103938. opts.greedy = !1, mask;
  103939. },
  103940. placeholder: "",
  103941. greedy: !1,
  103942. digits: "*",
  103943. digitsOptional: !0,
  103944. radixPoint: ".",
  103945. radixFocus: !0,
  103946. groupSize: 3,
  103947. groupSeparator: "",
  103948. autoGroup: !1,
  103949. allowPlus: !0,
  103950. allowMinus: !0,
  103951. negationSymbol: {
  103952. front: "-",
  103953. back: ""
  103954. },
  103955. integerDigits: "+",
  103956. integerOptional: !0,
  103957. prefix: "",
  103958. suffix: "",
  103959. rightAlign: !0,
  103960. decimalProtect: !0,
  103961. min: null,
  103962. max: null,
  103963. step: 1,
  103964. insertMode: !0,
  103965. autoUnmask: !1,
  103966. unmaskAsNumber: !1,
  103967. postFormat: function(buffer, pos, reformatOnly, opts) {
  103968. opts.numericInput === !0 && (buffer = buffer.reverse(), isFinite(pos) && (pos = buffer.join("").length - pos - 1));
  103969. var i, l, suffixStripped = !1;
  103970. buffer.length >= opts.suffix.length && buffer.join("").indexOf(opts.suffix) === buffer.length - opts.suffix.length && (buffer.length = buffer.length - opts.suffix.length,
  103971. suffixStripped = !0), pos = pos >= buffer.length ? buffer.length - 1 : pos < opts.prefix.length ? opts.prefix.length : pos;
  103972. var needsRefresh = !1, charAtPos = buffer[pos];
  103973. if ("" === opts.groupSeparator || opts.numericInput !== !0 && -1 !== $.inArray(opts.radixPoint, buffer) && pos > $.inArray(opts.radixPoint, buffer) || new RegExp("[" + Inputmask.escapeRegex(opts.negationSymbol.front) + "+]").test(charAtPos)) {
  103974. if (suffixStripped) for (i = 0, l = opts.suffix.length; l > i; i++) buffer.push(opts.suffix.charAt(i));
  103975. return {
  103976. pos: pos
  103977. };
  103978. }
  103979. var cbuf = buffer.slice();
  103980. charAtPos === opts.groupSeparator && (cbuf.splice(pos--, 1), charAtPos = cbuf[pos]),
  103981. reformatOnly ? charAtPos !== opts.radixPoint && (cbuf[pos] = "?") : cbuf.splice(pos, 0, "?");
  103982. var bufVal = cbuf.join(""), bufValOrigin = bufVal;
  103983. if (bufVal.length > 0 && opts.autoGroup || reformatOnly && -1 !== bufVal.indexOf(opts.groupSeparator)) {
  103984. var escapedGroupSeparator = Inputmask.escapeRegex(opts.groupSeparator);
  103985. needsRefresh = 0 === bufVal.indexOf(opts.groupSeparator), bufVal = bufVal.replace(new RegExp(escapedGroupSeparator, "g"), "");
  103986. var radixSplit = bufVal.split(opts.radixPoint);
  103987. if (bufVal = "" === opts.radixPoint ? bufVal : radixSplit[0], bufVal !== opts.prefix + "?0" && bufVal.length >= opts.groupSize + opts.prefix.length) for (var reg = new RegExp("([-+]?[\\d?]+)([\\d?]{" + opts.groupSize + "})"); reg.test(bufVal); ) bufVal = bufVal.replace(reg, "$1" + opts.groupSeparator + "$2"),
  103988. bufVal = bufVal.replace(opts.groupSeparator + opts.groupSeparator, opts.groupSeparator);
  103989. "" !== opts.radixPoint && radixSplit.length > 1 && (bufVal += opts.radixPoint + radixSplit[1]);
  103990. }
  103991. for (needsRefresh = bufValOrigin !== bufVal, buffer.length = bufVal.length, i = 0,
  103992. l = bufVal.length; l > i; i++) buffer[i] = bufVal.charAt(i);
  103993. var newPos = $.inArray("?", buffer);
  103994. if (-1 === newPos && charAtPos === opts.radixPoint && (newPos = $.inArray(opts.radixPoint, buffer)),
  103995. reformatOnly ? buffer[newPos] = charAtPos : buffer.splice(newPos, 1), !needsRefresh && suffixStripped) for (i = 0,
  103996. l = opts.suffix.length; l > i; i++) buffer.push(opts.suffix.charAt(i));
  103997. return newPos = opts.numericInput && isFinite(pos) ? buffer.join("").length - newPos - 1 : newPos,
  103998. opts.numericInput && (buffer = buffer.reverse(), $.inArray(opts.radixPoint, buffer) < newPos && buffer.join("").length - opts.suffix.length !== newPos && (newPos -= 1)),
  103999. {
  104000. pos: newPos,
  104001. refreshFromBuffer: needsRefresh,
  104002. buffer: buffer
  104003. };
  104004. },
  104005. onBeforeWrite: function(e, buffer, caretPos, opts) {
  104006. if (e && ("blur" === e.type || "checkval" === e.type)) {
  104007. var maskedValue = buffer.join(""), processValue = maskedValue.replace(opts.prefix, "");
  104008. if (processValue = processValue.replace(opts.suffix, ""), processValue = processValue.replace(new RegExp(Inputmask.escapeRegex(opts.groupSeparator), "g"), ""),
  104009. "," === opts.radixPoint && (processValue = processValue.replace(Inputmask.escapeRegex(opts.radixPoint), ".")),
  104010. isFinite(processValue) && isFinite(opts.min) && parseFloat(processValue) < parseFloat(opts.min)) return $.extend(!0, {
  104011. refreshFromBuffer: !0,
  104012. buffer: (opts.prefix + opts.min).split("")
  104013. }, opts.postFormat((opts.prefix + opts.min).split(""), 0, !0, opts));
  104014. if (opts.numericInput !== !0) {
  104015. var tmpBufSplit = "" !== opts.radixPoint ? buffer.join("").split(opts.radixPoint) : [ buffer.join("") ], matchRslt = tmpBufSplit[0].match(opts.regex.integerPart(opts)), matchRsltDigits = 2 === tmpBufSplit.length ? tmpBufSplit[1].match(opts.regex.integerNPart(opts)) : void 0;
  104016. if (matchRslt) {
  104017. matchRslt[0] !== opts.negationSymbol.front + "0" && matchRslt[0] !== opts.negationSymbol.front && "+" !== matchRslt[0] || void 0 !== matchRsltDigits && !matchRsltDigits[0].match(/^0+$/) || buffer.splice(matchRslt.index, 1);
  104018. var radixPosition = $.inArray(opts.radixPoint, buffer);
  104019. if (-1 !== radixPosition) {
  104020. if (isFinite(opts.digits) && !opts.digitsOptional) {
  104021. for (var i = 1; i <= opts.digits; i++) (void 0 === buffer[radixPosition + i] || buffer[radixPosition + i] === opts.placeholder.charAt(0)) && (buffer[radixPosition + i] = "0");
  104022. return {
  104023. refreshFromBuffer: maskedValue !== buffer.join(""),
  104024. buffer: buffer
  104025. };
  104026. }
  104027. if (radixPosition === buffer.length - opts.suffix.length - 1) return buffer.splice(radixPosition, 1),
  104028. {
  104029. refreshFromBuffer: !0,
  104030. buffer: buffer
  104031. };
  104032. }
  104033. }
  104034. }
  104035. }
  104036. if (opts.autoGroup) {
  104037. var rslt = opts.postFormat(buffer, opts.numericInput ? caretPos : caretPos - 1, !0, opts);
  104038. return rslt.caret = caretPos <= opts.prefix.length ? rslt.pos : rslt.pos + 1, rslt;
  104039. }
  104040. },
  104041. regex: {
  104042. integerPart: function(opts) {
  104043. return new RegExp("[" + Inputmask.escapeRegex(opts.negationSymbol.front) + "+]?\\d+");
  104044. },
  104045. integerNPart: function(opts) {
  104046. return new RegExp("[\\d" + Inputmask.escapeRegex(opts.groupSeparator) + "]+");
  104047. }
  104048. },
  104049. signHandler: function(chrs, maskset, pos, strict, opts) {
  104050. if (!strict && opts.allowMinus && "-" === chrs || opts.allowPlus && "+" === chrs) {
  104051. var matchRslt = maskset.buffer.join("").match(opts.regex.integerPart(opts));
  104052. if (matchRslt && matchRslt[0].length > 0) return maskset.buffer[matchRslt.index] === ("-" === chrs ? "+" : opts.negationSymbol.front) ? "-" === chrs ? "" !== opts.negationSymbol.back ? {
  104053. pos: matchRslt.index,
  104054. c: opts.negationSymbol.front,
  104055. remove: matchRslt.index,
  104056. caret: pos,
  104057. insert: {
  104058. pos: maskset.buffer.length - opts.suffix.length - 1,
  104059. c: opts.negationSymbol.back
  104060. }
  104061. } : {
  104062. pos: matchRslt.index,
  104063. c: opts.negationSymbol.front,
  104064. remove: matchRslt.index,
  104065. caret: pos
  104066. } : "" !== opts.negationSymbol.back ? {
  104067. pos: matchRslt.index,
  104068. c: "+",
  104069. remove: [ matchRslt.index, maskset.buffer.length - opts.suffix.length - 1 ],
  104070. caret: pos
  104071. } : {
  104072. pos: matchRslt.index,
  104073. c: "+",
  104074. remove: matchRslt.index,
  104075. caret: pos
  104076. } : maskset.buffer[matchRslt.index] === ("-" === chrs ? opts.negationSymbol.front : "+") ? "-" === chrs && "" !== opts.negationSymbol.back ? {
  104077. remove: [ matchRslt.index, maskset.buffer.length - opts.suffix.length - 1 ],
  104078. caret: pos - 1
  104079. } : {
  104080. remove: matchRslt.index,
  104081. caret: pos - 1
  104082. } : "-" === chrs ? "" !== opts.negationSymbol.back ? {
  104083. pos: matchRslt.index,
  104084. c: opts.negationSymbol.front,
  104085. caret: pos + 1,
  104086. insert: {
  104087. pos: maskset.buffer.length - opts.suffix.length,
  104088. c: opts.negationSymbol.back
  104089. }
  104090. } : {
  104091. pos: matchRslt.index,
  104092. c: opts.negationSymbol.front,
  104093. caret: pos + 1
  104094. } : {
  104095. pos: matchRslt.index,
  104096. c: chrs,
  104097. caret: pos + 1
  104098. };
  104099. }
  104100. return !1;
  104101. },
  104102. radixHandler: function(chrs, maskset, pos, strict, opts) {
  104103. if (!strict && (-1 !== $.inArray(chrs, [ ",", "." ]) && (chrs = opts.radixPoint),
  104104. chrs === opts.radixPoint && void 0 !== opts.digits && (isNaN(opts.digits) || parseInt(opts.digits) > 0))) {
  104105. var radixPos = $.inArray(opts.radixPoint, maskset.buffer), integerValue = maskset.buffer.join("").match(opts.regex.integerPart(opts));
  104106. if (-1 !== radixPos && maskset.validPositions[radixPos]) return maskset.validPositions[radixPos - 1] ? {
  104107. caret: radixPos + 1
  104108. } : {
  104109. pos: integerValue.index,
  104110. c: integerValue[0],
  104111. caret: radixPos + 1
  104112. };
  104113. if (!integerValue || "0" === integerValue[0] && integerValue.index + 1 !== pos) return maskset.buffer[integerValue ? integerValue.index : pos] = "0",
  104114. {
  104115. pos: (integerValue ? integerValue.index : pos) + 1,
  104116. c: opts.radixPoint
  104117. };
  104118. }
  104119. return !1;
  104120. },
  104121. leadingZeroHandler: function(chrs, maskset, pos, strict, opts) {
  104122. if (opts.numericInput === !0) {
  104123. if ("0" === maskset.buffer[maskset.buffer.length - opts.prefix.length - 1]) return {
  104124. pos: pos,
  104125. remove: maskset.buffer.length - opts.prefix.length - 1
  104126. };
  104127. } else {
  104128. var matchRslt = maskset.buffer.join("").match(opts.regex.integerNPart(opts)), radixPosition = $.inArray(opts.radixPoint, maskset.buffer);
  104129. if (matchRslt && !strict && (-1 === radixPosition || radixPosition >= pos)) if (0 === matchRslt[0].indexOf("0")) {
  104130. pos < opts.prefix.length && (pos = matchRslt.index);
  104131. var _radixPosition = $.inArray(opts.radixPoint, maskset._buffer), digitsMatch = maskset._buffer && maskset.buffer.slice(radixPosition).join("") === maskset._buffer.slice(_radixPosition).join("") || 0 === parseInt(maskset.buffer.slice(radixPosition + 1).join("")), integerMatch = maskset._buffer && maskset.buffer.slice(matchRslt.index, radixPosition).join("") === maskset._buffer.slice(opts.prefix.length, _radixPosition).join("") || "0" === maskset.buffer.slice(matchRslt.index, radixPosition).join("");
  104132. if (-1 === radixPosition || digitsMatch && integerMatch) return maskset.buffer.splice(matchRslt.index, 1),
  104133. pos = pos > matchRslt.index ? pos - 1 : matchRslt.index, {
  104134. pos: pos,
  104135. remove: matchRslt.index
  104136. };
  104137. if (matchRslt.index + 1 === pos || "0" === chrs) return maskset.buffer.splice(matchRslt.index, 1),
  104138. pos = matchRslt.index, {
  104139. pos: pos,
  104140. remove: matchRslt.index
  104141. };
  104142. } else if ("0" === chrs && pos <= matchRslt.index && matchRslt[0] !== opts.groupSeparator) return !1;
  104143. }
  104144. return !0;
  104145. },
  104146. postValidation: function(buffer, opts) {
  104147. var isValid = !0, maskedValue = buffer.join(""), processValue = maskedValue.replace(opts.prefix, "");
  104148. return processValue = processValue.replace(opts.suffix, ""), processValue = processValue.replace(new RegExp(Inputmask.escapeRegex(opts.groupSeparator), "g"), ""),
  104149. "," === opts.radixPoint && (processValue = processValue.replace(Inputmask.escapeRegex(opts.radixPoint), ".")),
  104150. processValue = processValue.replace(new RegExp("^" + Inputmask.escapeRegex(opts.negationSymbol.front)), "-"),
  104151. processValue = processValue.replace(new RegExp(Inputmask.escapeRegex(opts.negationSymbol.back) + "$"), ""),
  104152. processValue = processValue === opts.negationSymbol.front ? processValue + "0" : processValue,
  104153. isFinite(processValue) && (null !== opts.max && isFinite(opts.max) && (isValid = parseFloat(processValue) <= parseFloat(opts.max)),
  104154. isValid && null !== opts.min && isFinite(opts.min) && (0 >= processValue || processValue.toString().length >= opts.min.toString().length) && (isValid = parseFloat(processValue) >= parseFloat(opts.min),
  104155. isValid || (isValid = $.extend(!0, {
  104156. refreshFromBuffer: !0,
  104157. buffer: (opts.prefix + opts.min).split("")
  104158. }, opts.postFormat((opts.prefix + opts.min).split(""), 0, !0, opts)), isValid.refreshFromBuffer = !0))),
  104159. isValid;
  104160. },
  104161. definitions: {
  104162. "~": {
  104163. validator: function(chrs, maskset, pos, strict, opts) {
  104164. var isValid = opts.signHandler(chrs, maskset, pos, strict, opts);
  104165. if (!isValid && (isValid = opts.radixHandler(chrs, maskset, pos, strict, opts),
  104166. !isValid && (isValid = strict ? new RegExp("[0-9" + Inputmask.escapeRegex(opts.groupSeparator) + "]").test(chrs) : new RegExp("[0-9]").test(chrs),
  104167. isValid === !0 && (isValid = opts.leadingZeroHandler(chrs, maskset, pos, strict, opts),
  104168. isValid === !0)))) {
  104169. var radixPosition = $.inArray(opts.radixPoint, maskset.buffer);
  104170. isValid = -1 !== radixPosition && opts.digitsOptional === !1 && opts.numericInput !== !0 && pos > radixPosition && !strict ? {
  104171. pos: pos,
  104172. remove: pos
  104173. } : {
  104174. pos: pos
  104175. };
  104176. }
  104177. return isValid;
  104178. },
  104179. cardinality: 1,
  104180. prevalidator: null
  104181. },
  104182. "+": {
  104183. validator: function(chrs, maskset, pos, strict, opts) {
  104184. var isValid = opts.signHandler(chrs, maskset, pos, strict, opts);
  104185. return !isValid && (strict && opts.allowMinus && chrs === opts.negationSymbol.front || opts.allowMinus && "-" === chrs || opts.allowPlus && "+" === chrs) && (isValid = "-" === chrs ? "" !== opts.negationSymbol.back ? {
  104186. pos: pos,
  104187. c: "-" === chrs ? opts.negationSymbol.front : "+",
  104188. caret: pos + 1,
  104189. insert: {
  104190. pos: maskset.buffer.length,
  104191. c: opts.negationSymbol.back
  104192. }
  104193. } : {
  104194. pos: pos,
  104195. c: "-" === chrs ? opts.negationSymbol.front : "+",
  104196. caret: pos + 1
  104197. } : !0), isValid;
  104198. },
  104199. cardinality: 1,
  104200. prevalidator: null,
  104201. placeholder: ""
  104202. },
  104203. "-": {
  104204. validator: function(chrs, maskset, pos, strict, opts) {
  104205. var isValid = opts.signHandler(chrs, maskset, pos, strict, opts);
  104206. return !isValid && strict && opts.allowMinus && chrs === opts.negationSymbol.back && (isValid = !0),
  104207. isValid;
  104208. },
  104209. cardinality: 1,
  104210. prevalidator: null,
  104211. placeholder: ""
  104212. },
  104213. ":": {
  104214. validator: function(chrs, maskset, pos, strict, opts) {
  104215. var isValid = opts.signHandler(chrs, maskset, pos, strict, opts);
  104216. if (!isValid) {
  104217. var radix = "[" + Inputmask.escapeRegex(opts.radixPoint) + ",\\.]";
  104218. isValid = new RegExp(radix).test(chrs), isValid && maskset.validPositions[pos] && maskset.validPositions[pos].match.placeholder === opts.radixPoint && (isValid = {
  104219. caret: pos + 1
  104220. });
  104221. }
  104222. return isValid ? {
  104223. c: opts.radixPoint
  104224. } : isValid;
  104225. },
  104226. cardinality: 1,
  104227. prevalidator: null,
  104228. placeholder: function(opts) {
  104229. return opts.radixPoint;
  104230. }
  104231. }
  104232. },
  104233. onUnMask: function(maskedValue, unmaskedValue, opts) {
  104234. var processValue = maskedValue.replace(opts.prefix, "");
  104235. return processValue = processValue.replace(opts.suffix, ""), processValue = processValue.replace(new RegExp(Inputmask.escapeRegex(opts.groupSeparator), "g"), ""),
  104236. opts.unmaskAsNumber ? (processValue = processValue.replace(Inputmask.escapeRegex.call(this, opts.radixPoint), "."),
  104237. Number(processValue)) : processValue;
  104238. },
  104239. isComplete: function(buffer, opts) {
  104240. var maskedValue = buffer.join(""), bufClone = buffer.slice();
  104241. if (opts.postFormat(bufClone, 0, !0, opts), bufClone.join("") !== maskedValue) return !1;
  104242. var processValue = maskedValue.replace(opts.prefix, "");
  104243. return processValue = processValue.replace(opts.suffix, ""), processValue = processValue.replace(new RegExp(Inputmask.escapeRegex(opts.groupSeparator), "g"), ""),
  104244. "," === opts.radixPoint && (processValue = processValue.replace(Inputmask.escapeRegex(opts.radixPoint), ".")),
  104245. isFinite(processValue);
  104246. },
  104247. onBeforeMask: function(initialValue, opts) {
  104248. if ("" !== opts.radixPoint && isFinite(initialValue)) initialValue = initialValue.toString().replace(".", opts.radixPoint); else {
  104249. var kommaMatches = initialValue.match(/,/g), dotMatches = initialValue.match(/\./g);
  104250. dotMatches && kommaMatches ? dotMatches.length > kommaMatches.length ? (initialValue = initialValue.replace(/\./g, ""),
  104251. initialValue = initialValue.replace(",", opts.radixPoint)) : kommaMatches.length > dotMatches.length ? (initialValue = initialValue.replace(/,/g, ""),
  104252. initialValue = initialValue.replace(".", opts.radixPoint)) : initialValue = initialValue.indexOf(".") < initialValue.indexOf(",") ? initialValue.replace(/\./g, "") : initialValue = initialValue.replace(/,/g, "") : initialValue = initialValue.replace(new RegExp(Inputmask.escapeRegex(opts.groupSeparator), "g"), "");
  104253. }
  104254. if (0 === opts.digits && (-1 !== initialValue.indexOf(".") ? initialValue = initialValue.substring(0, initialValue.indexOf(".")) : -1 !== initialValue.indexOf(",") && (initialValue = initialValue.substring(0, initialValue.indexOf(",")))),
  104255. "" !== opts.radixPoint && isFinite(opts.digits) && -1 !== initialValue.indexOf(opts.radixPoint)) {
  104256. var valueParts = initialValue.split(opts.radixPoint), decPart = valueParts[1].match(new RegExp("\\d*"))[0];
  104257. if (parseInt(opts.digits) < decPart.toString().length) {
  104258. var digitsFactor = Math.pow(10, parseInt(opts.digits));
  104259. initialValue = initialValue.replace(Inputmask.escapeRegex(opts.radixPoint), "."),
  104260. initialValue = Math.round(parseFloat(initialValue) * digitsFactor) / digitsFactor,
  104261. initialValue = initialValue.toString().replace(".", opts.radixPoint);
  104262. }
  104263. }
  104264. return initialValue.toString();
  104265. },
  104266. onBeforePaste: function(pastedValue, opts) {
  104267. return opts.onBeforeMask(pastedValue, opts);
  104268. },
  104269. canClearPosition: function(maskset, position, lvp, strict, opts) {
  104270. var positionInput = maskset.validPositions[position].input, canClear = positionInput !== opts.radixPoint || null !== maskset.validPositions[position].match.fn && opts.decimalProtect === !1 || isFinite(positionInput) || position === lvp || positionInput === opts.groupSeparator || positionInput === opts.negationSymbol.front || positionInput === opts.negationSymbol.back;
  104271. if (canClear && isFinite(positionInput)) {
  104272. var matchRslt, radixPos = $.inArray(opts.radixPoint, maskset.buffer), radixInjection = !1;
  104273. if (void 0 === maskset.validPositions[radixPos] && (maskset.validPositions[radixPos] = {
  104274. input: opts.radixPoint
  104275. }, radixInjection = !0), !strict && maskset.buffer) {
  104276. matchRslt = maskset.buffer.join("").substr(0, position).match(opts.regex.integerNPart(opts));
  104277. var pos = position + 1, isNull = null == matchRslt || 0 === parseInt(matchRslt[0].replace(new RegExp(Inputmask.escapeRegex(opts.groupSeparator), "g"), ""));
  104278. if (isNull) for (;maskset.validPositions[pos] && (maskset.validPositions[pos].input === opts.groupSeparator || "0" === maskset.validPositions[pos].input); ) delete maskset.validPositions[pos],
  104279. pos++;
  104280. }
  104281. var buffer = [];
  104282. for (var vp in maskset.validPositions) void 0 !== maskset.validPositions[vp].input && buffer.push(maskset.validPositions[vp].input);
  104283. if (radixInjection && delete maskset.validPositions[radixPos], radixPos > 0) {
  104284. var bufVal = buffer.join("");
  104285. if (matchRslt = bufVal.match(opts.regex.integerNPart(opts)), matchRslt && radixPos >= position) if (0 === matchRslt[0].indexOf("0")) canClear = matchRslt.index !== position || "0" === opts.placeholder; else {
  104286. var intPart = parseInt(matchRslt[0].replace(new RegExp(Inputmask.escapeRegex(opts.groupSeparator), "g"), "")), radixPart = parseInt(bufVal.split(opts.radixPoint)[1]);
  104287. 10 > intPart && maskset.validPositions[position] && ("0" !== opts.placeholder || radixPart > 0) && (maskset.validPositions[position].input = "0",
  104288. maskset.p = opts.prefix.length + 1, canClear = !1);
  104289. }
  104290. }
  104291. }
  104292. return canClear;
  104293. },
  104294. onKeyDown: function(e, buffer, caretPos, opts) {
  104295. var $input = $(this);
  104296. if (e.ctrlKey) switch (e.keyCode) {
  104297. case Inputmask.keyCode.UP:
  104298. $input.val(parseFloat(this.inputmask.unmaskedvalue()) + parseInt(opts.step)), $input.triggerHandler("setvalue.inputmask");
  104299. break;
  104300. case Inputmask.keyCode.DOWN:
  104301. $input.val(parseFloat(this.inputmask.unmaskedvalue()) - parseInt(opts.step)), $input.triggerHandler("setvalue.inputmask");
  104302. }
  104303. }
  104304. },
  104305. currency: {
  104306. prefix: "$ ",
  104307. groupSeparator: ",",
  104308. alias: "numeric",
  104309. placeholder: "0",
  104310. autoGroup: !0,
  104311. digits: 2,
  104312. digitsOptional: !1,
  104313. clearMaskOnLostFocus: !1
  104314. },
  104315. decimal: {
  104316. alias: "numeric"
  104317. },
  104318. integer: {
  104319. alias: "numeric",
  104320. digits: 0,
  104321. radixPoint: ""
  104322. },
  104323. percentage: {
  104324. alias: "numeric",
  104325. digits: 2,
  104326. radixPoint: ".",
  104327. placeholder: "0",
  104328. autoGroup: !1,
  104329. min: 0,
  104330. max: 100,
  104331. suffix: " %",
  104332. allowPlus: !1,
  104333. allowMinus: !1
  104334. }
  104335. }), Inputmask;
  104336. }(jQuery, Inputmask), function($, Inputmask) {
  104337. return Inputmask.extendAliases({
  104338. phone: {
  104339. url: "phone-codes/phone-codes.js",
  104340. countrycode: "",
  104341. mask: function(opts) {
  104342. opts.definitions["#"] = opts.definitions[9];
  104343. var maskList = [];
  104344. return $.ajax({
  104345. url: opts.url,
  104346. async: !1,
  104347. dataType: "json",
  104348. success: function(response) {
  104349. maskList = response;
  104350. },
  104351. error: function(xhr, ajaxOptions, thrownError) {
  104352. alert(thrownError + " - " + opts.url);
  104353. }
  104354. }), maskList = maskList.sort(function(a, b) {
  104355. return (a.mask || a) < (b.mask || b) ? -1 : 1;
  104356. });
  104357. },
  104358. keepStatic: !1,
  104359. nojumps: !0,
  104360. nojumpsThreshold: 1,
  104361. onBeforeMask: function(value, opts) {
  104362. var processedValue = value.replace(/^0/g, "");
  104363. return (processedValue.indexOf(opts.countrycode) > 1 || -1 === processedValue.indexOf(opts.countrycode)) && (processedValue = "+" + opts.countrycode + processedValue),
  104364. processedValue;
  104365. }
  104366. },
  104367. phonebe: {
  104368. alias: "phone",
  104369. url: "phone-codes/phone-be.js",
  104370. countrycode: "32",
  104371. nojumpsThreshold: 4
  104372. }
  104373. }), Inputmask;
  104374. }(jQuery, Inputmask), function($, Inputmask) {
  104375. return Inputmask.extendAliases({
  104376. Regex: {
  104377. mask: "r",
  104378. greedy: !1,
  104379. repeat: "*",
  104380. regex: null,
  104381. regexTokens: null,
  104382. tokenizer: /\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g,
  104383. quantifierFilter: /[0-9]+[^,]/,
  104384. isComplete: function(buffer, opts) {
  104385. return new RegExp(opts.regex).test(buffer.join(""));
  104386. },
  104387. definitions: {
  104388. r: {
  104389. validator: function(chrs, maskset, pos, strict, opts) {
  104390. function RegexToken(isGroup, isQuantifier) {
  104391. this.matches = [], this.isGroup = isGroup || !1, this.isQuantifier = isQuantifier || !1,
  104392. this.quantifier = {
  104393. min: 1,
  104394. max: 1
  104395. }, this.repeaterPart = void 0;
  104396. }
  104397. function analyseRegex() {
  104398. var match, m, currentToken = new RegexToken(), opengroups = [];
  104399. for (opts.regexTokens = []; match = opts.tokenizer.exec(opts.regex); ) switch (m = match[0],
  104400. m.charAt(0)) {
  104401. case "(":
  104402. opengroups.push(new RegexToken(!0));
  104403. break;
  104404. case ")":
  104405. groupToken = opengroups.pop(), opengroups.length > 0 ? opengroups[opengroups.length - 1].matches.push(groupToken) : currentToken.matches.push(groupToken);
  104406. break;
  104407. case "{":
  104408. case "+":
  104409. case "*":
  104410. var quantifierToken = new RegexToken(!1, !0);
  104411. m = m.replace(/[{}]/g, "");
  104412. var mq = m.split(","), mq0 = isNaN(mq[0]) ? mq[0] : parseInt(mq[0]), mq1 = 1 === mq.length ? mq0 : isNaN(mq[1]) ? mq[1] : parseInt(mq[1]);
  104413. if (quantifierToken.quantifier = {
  104414. min: mq0,
  104415. max: mq1
  104416. }, opengroups.length > 0) {
  104417. var matches = opengroups[opengroups.length - 1].matches;
  104418. match = matches.pop(), match.isGroup || (groupToken = new RegexToken(!0), groupToken.matches.push(match),
  104419. match = groupToken), matches.push(match), matches.push(quantifierToken);
  104420. } else match = currentToken.matches.pop(), match.isGroup || (groupToken = new RegexToken(!0),
  104421. groupToken.matches.push(match), match = groupToken), currentToken.matches.push(match),
  104422. currentToken.matches.push(quantifierToken);
  104423. break;
  104424. default:
  104425. opengroups.length > 0 ? opengroups[opengroups.length - 1].matches.push(m) : currentToken.matches.push(m);
  104426. }
  104427. currentToken.matches.length > 0 && opts.regexTokens.push(currentToken);
  104428. }
  104429. function validateRegexToken(token, fromGroup) {
  104430. var isvalid = !1;
  104431. fromGroup && (regexPart += "(", openGroupCount++);
  104432. for (var mndx = 0; mndx < token.matches.length; mndx++) {
  104433. var matchToken = token.matches[mndx];
  104434. if (matchToken.isGroup === !0) isvalid = validateRegexToken(matchToken, !0); else if (matchToken.isQuantifier === !0) {
  104435. var crrntndx = $.inArray(matchToken, token.matches), matchGroup = token.matches[crrntndx - 1], regexPartBak = regexPart;
  104436. if (isNaN(matchToken.quantifier.max)) {
  104437. for (;matchToken.repeaterPart && matchToken.repeaterPart !== regexPart && matchToken.repeaterPart.length > regexPart.length && !(isvalid = validateRegexToken(matchGroup, !0)); ) ;
  104438. isvalid = isvalid || validateRegexToken(matchGroup, !0), isvalid && (matchToken.repeaterPart = regexPart),
  104439. regexPart = regexPartBak + matchToken.quantifier.max;
  104440. } else {
  104441. for (var i = 0, qm = matchToken.quantifier.max - 1; qm > i && !(isvalid = validateRegexToken(matchGroup, !0)); i++) ;
  104442. regexPart = regexPartBak + "{" + matchToken.quantifier.min + "," + matchToken.quantifier.max + "}";
  104443. }
  104444. } else if (void 0 !== matchToken.matches) for (var k = 0; k < matchToken.length && !(isvalid = validateRegexToken(matchToken[k], fromGroup)); k++) ; else {
  104445. var testExp;
  104446. if ("[" == matchToken.charAt(0)) {
  104447. testExp = regexPart, testExp += matchToken;
  104448. for (var j = 0; openGroupCount > j; j++) testExp += ")";
  104449. var exp = new RegExp("^(" + testExp + ")$");
  104450. isvalid = exp.test(bufferStr);
  104451. } else for (var l = 0, tl = matchToken.length; tl > l; l++) if ("\\" !== matchToken.charAt(l)) {
  104452. testExp = regexPart, testExp += matchToken.substr(0, l + 1), testExp = testExp.replace(/\|$/, "");
  104453. for (var j = 0; openGroupCount > j; j++) testExp += ")";
  104454. var exp = new RegExp("^(" + testExp + ")$");
  104455. if (isvalid = exp.test(bufferStr)) break;
  104456. }
  104457. regexPart += matchToken;
  104458. }
  104459. if (isvalid) break;
  104460. }
  104461. return fromGroup && (regexPart += ")", openGroupCount--), isvalid;
  104462. }
  104463. var groupToken, cbuffer = maskset.buffer.slice(), regexPart = "", isValid = !1, openGroupCount = 0;
  104464. null === opts.regexTokens && analyseRegex(), cbuffer.splice(pos, 0, chrs);
  104465. for (var bufferStr = cbuffer.join(""), i = 0; i < opts.regexTokens.length; i++) {
  104466. var regexToken = opts.regexTokens[i];
  104467. if (isValid = validateRegexToken(regexToken, regexToken.isGroup)) break;
  104468. }
  104469. return isValid;
  104470. },
  104471. cardinality: 1
  104472. }
  104473. }
  104474. }
  104475. }), Inputmask;
  104476. }(jQuery, Inputmask);
  104477. /*!
  104478. * jQuery Migrate - v1.3.0 - 2016-01-13
  104479. * Copyright jQuery Foundation and other contributors
  104480. */
  104481. (function( jQuery, window, undefined ) {
  104482. // See http://bugs.jquery.com/ticket/13335
  104483. // "use strict";
  104484. jQuery.migrateVersion = "1.3.0";
  104485. var warnedAbout = {};
  104486. // List of warnings already given; public read only
  104487. jQuery.migrateWarnings = [];
  104488. // Set to true to prevent console output; migrateWarnings still maintained
  104489. // jQuery.migrateMute = false;
  104490. // Show a message on the console so devs know we're active
  104491. if ( !jQuery.migrateMute && window.console && window.console.log ) {
  104492. window.console.log("JQMIGRATE: Logging is active");
  104493. }
  104494. // Set to false to disable traces that appear with warnings
  104495. if ( jQuery.migrateTrace === undefined ) {
  104496. jQuery.migrateTrace = true;
  104497. }
  104498. // Forget any warnings we've already given; public
  104499. jQuery.migrateReset = function() {
  104500. warnedAbout = {};
  104501. jQuery.migrateWarnings.length = 0;
  104502. };
  104503. function migrateWarn( msg) {
  104504. var console = window.console;
  104505. if ( !warnedAbout[ msg ] ) {
  104506. warnedAbout[ msg ] = true;
  104507. jQuery.migrateWarnings.push( msg );
  104508. if ( console && console.warn && !jQuery.migrateMute ) {
  104509. console.warn( "JQMIGRATE: " + msg );
  104510. if ( jQuery.migrateTrace && console.trace ) {
  104511. console.trace();
  104512. }
  104513. }
  104514. }
  104515. }
  104516. function migrateWarnProp( obj, prop, value, msg ) {
  104517. if ( Object.defineProperty ) {
  104518. // On ES5 browsers (non-oldIE), warn if the code tries to get prop;
  104519. // allow property to be overwritten in case some other plugin wants it
  104520. try {
  104521. Object.defineProperty( obj, prop, {
  104522. configurable: true,
  104523. enumerable: true,
  104524. get: function() {
  104525. migrateWarn( msg );
  104526. return value;
  104527. },
  104528. set: function( newValue ) {
  104529. migrateWarn( msg );
  104530. value = newValue;
  104531. }
  104532. });
  104533. return;
  104534. } catch( err ) {
  104535. // IE8 is a dope about Object.defineProperty, can't warn there
  104536. }
  104537. }
  104538. // Non-ES5 (or broken) browser; just set the property
  104539. jQuery._definePropertyBroken = true;
  104540. obj[ prop ] = value;
  104541. }
  104542. if ( document.compatMode === "BackCompat" ) {
  104543. // jQuery has never supported or tested Quirks Mode
  104544. migrateWarn( "jQuery is not compatible with Quirks Mode" );
  104545. }
  104546. var attrFn = jQuery( "<input/>", { size: 1 } ).attr("size") && jQuery.attrFn,
  104547. oldAttr = jQuery.attr,
  104548. valueAttrGet = jQuery.attrHooks.value && jQuery.attrHooks.value.get ||
  104549. function() { return null; },
  104550. valueAttrSet = jQuery.attrHooks.value && jQuery.attrHooks.value.set ||
  104551. function() { return undefined; },
  104552. rnoType = /^(?:input|button)$/i,
  104553. rnoAttrNodeType = /^[238]$/,
  104554. rboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,
  104555. ruseDefault = /^(?:checked|selected)$/i;
  104556. // jQuery.attrFn
  104557. migrateWarnProp( jQuery, "attrFn", attrFn || {}, "jQuery.attrFn is deprecated" );
  104558. jQuery.attr = function( elem, name, value, pass ) {
  104559. var lowerName = name.toLowerCase(),
  104560. nType = elem && elem.nodeType;
  104561. if ( pass ) {
  104562. // Since pass is used internally, we only warn for new jQuery
  104563. // versions where there isn't a pass arg in the formal params
  104564. if ( oldAttr.length < 4 ) {
  104565. migrateWarn("jQuery.fn.attr( props, pass ) is deprecated");
  104566. }
  104567. if ( elem && !rnoAttrNodeType.test( nType ) &&
  104568. (attrFn ? name in attrFn : jQuery.isFunction(jQuery.fn[name])) ) {
  104569. return jQuery( elem )[ name ]( value );
  104570. }
  104571. }
  104572. // Warn if user tries to set `type`, since it breaks on IE 6/7/8; by checking
  104573. // for disconnected elements we don't warn on $( "<button>", { type: "button" } ).
  104574. if ( name === "type" && value !== undefined && rnoType.test( elem.nodeName ) && elem.parentNode ) {
  104575. migrateWarn("Can't change the 'type' of an input or button in IE 6/7/8");
  104576. }
  104577. // Restore boolHook for boolean property/attribute synchronization
  104578. if ( !jQuery.attrHooks[ lowerName ] && rboolean.test( lowerName ) ) {
  104579. jQuery.attrHooks[ lowerName ] = {
  104580. get: function( elem, name ) {
  104581. // Align boolean attributes with corresponding properties
  104582. // Fall back to attribute presence where some booleans are not supported
  104583. var attrNode,
  104584. property = jQuery.prop( elem, name );
  104585. return property === true || typeof property !== "boolean" &&
  104586. ( attrNode = elem.getAttributeNode(name) ) && attrNode.nodeValue !== false ?
  104587. name.toLowerCase() :
  104588. undefined;
  104589. },
  104590. set: function( elem, value, name ) {
  104591. var propName;
  104592. if ( value === false ) {
  104593. // Remove boolean attributes when set to false
  104594. jQuery.removeAttr( elem, name );
  104595. } else {
  104596. // value is true since we know at this point it's type boolean and not false
  104597. // Set boolean attributes to the same name and set the DOM property
  104598. propName = jQuery.propFix[ name ] || name;
  104599. if ( propName in elem ) {
  104600. // Only set the IDL specifically if it already exists on the element
  104601. elem[ propName ] = true;
  104602. }
  104603. elem.setAttribute( name, name.toLowerCase() );
  104604. }
  104605. return name;
  104606. }
  104607. };
  104608. // Warn only for attributes that can remain distinct from their properties post-1.9
  104609. if ( ruseDefault.test( lowerName ) ) {
  104610. migrateWarn( "jQuery.fn.attr('" + lowerName + "') might use property instead of attribute" );
  104611. }
  104612. }
  104613. return oldAttr.call( jQuery, elem, name, value );
  104614. };
  104615. // attrHooks: value
  104616. jQuery.attrHooks.value = {
  104617. get: function( elem, name ) {
  104618. var nodeName = ( elem.nodeName || "" ).toLowerCase();
  104619. if ( nodeName === "button" ) {
  104620. return valueAttrGet.apply( this, arguments );
  104621. }
  104622. if ( nodeName !== "input" && nodeName !== "option" ) {
  104623. migrateWarn("jQuery.fn.attr('value') no longer gets properties");
  104624. }
  104625. return name in elem ?
  104626. elem.value :
  104627. null;
  104628. },
  104629. set: function( elem, value ) {
  104630. var nodeName = ( elem.nodeName || "" ).toLowerCase();
  104631. if ( nodeName === "button" ) {
  104632. return valueAttrSet.apply( this, arguments );
  104633. }
  104634. if ( nodeName !== "input" && nodeName !== "option" ) {
  104635. migrateWarn("jQuery.fn.attr('value', val) no longer sets properties");
  104636. }
  104637. // Does not return so that setAttribute is also used
  104638. elem.value = value;
  104639. }
  104640. };
  104641. var matched, browser,
  104642. oldInit = jQuery.fn.init,
  104643. oldParseJSON = jQuery.parseJSON,
  104644. rspaceAngle = /^\s*</,
  104645. // Note: XSS check is done below after string is trimmed
  104646. rquickExpr = /^([^<]*)(<[\w\W]+>)([^>]*)$/;
  104647. // $(html) "looks like html" rule change
  104648. jQuery.fn.init = function( selector, context, rootjQuery ) {
  104649. var match, ret;
  104650. if ( selector && typeof selector === "string" && !jQuery.isPlainObject( context ) &&
  104651. (match = rquickExpr.exec( jQuery.trim( selector ) )) && match[ 0 ] ) {
  104652. // This is an HTML string according to the "old" rules; is it still?
  104653. if ( !rspaceAngle.test( selector ) ) {
  104654. migrateWarn("$(html) HTML strings must start with '<' character");
  104655. }
  104656. if ( match[ 3 ] ) {
  104657. migrateWarn("$(html) HTML text after last tag is ignored");
  104658. }
  104659. // Consistently reject any HTML-like string starting with a hash (#9521)
  104660. // Note that this may break jQuery 1.6.x code that otherwise would work.
  104661. if ( match[ 0 ].charAt( 0 ) === "#" ) {
  104662. migrateWarn("HTML string cannot start with a '#' character");
  104663. jQuery.error("JQMIGRATE: Invalid selector string (XSS)");
  104664. }
  104665. // Now process using loose rules; let pre-1.8 play too
  104666. if ( context && context.context ) {
  104667. // jQuery object as context; parseHTML expects a DOM object
  104668. context = context.context;
  104669. }
  104670. if ( jQuery.parseHTML ) {
  104671. return oldInit.call( this,
  104672. jQuery.parseHTML( match[ 2 ], context && context.ownerDocument ||
  104673. context || document, true ), context, rootjQuery );
  104674. }
  104675. }
  104676. // jQuery( "#" ) is a bogus ID selector, but it returned an empty set before jQuery 3.0
  104677. if ( selector === "#" ) {
  104678. migrateWarn( "jQuery( '#' ) is not a valid selector" );
  104679. selector = [];
  104680. }
  104681. ret = oldInit.apply( this, arguments );
  104682. // Fill in selector and context properties so .live() works
  104683. if ( selector && selector.selector !== undefined ) {
  104684. // A jQuery object, copy its properties
  104685. ret.selector = selector.selector;
  104686. ret.context = selector.context;
  104687. } else {
  104688. ret.selector = typeof selector === "string" ? selector : "";
  104689. if ( selector ) {
  104690. ret.context = selector.nodeType? selector : context || document;
  104691. }
  104692. }
  104693. return ret;
  104694. };
  104695. jQuery.fn.init.prototype = jQuery.fn;
  104696. // Let $.parseJSON(falsy_value) return null
  104697. jQuery.parseJSON = function( json ) {
  104698. if ( !json ) {
  104699. migrateWarn("jQuery.parseJSON requires a valid JSON string");
  104700. return null;
  104701. }
  104702. return oldParseJSON.apply( this, arguments );
  104703. };
  104704. jQuery.uaMatch = function( ua ) {
  104705. ua = ua.toLowerCase();
  104706. var match = /(chrome)[ \/]([\w.]+)/.exec( ua ) ||
  104707. /(webkit)[ \/]([\w.]+)/.exec( ua ) ||
  104708. /(opera)(?:.*version|)[ \/]([\w.]+)/.exec( ua ) ||
  104709. /(msie) ([\w.]+)/.exec( ua ) ||
  104710. ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec( ua ) ||
  104711. [];
  104712. return {
  104713. browser: match[ 1 ] || "",
  104714. version: match[ 2 ] || "0"
  104715. };
  104716. };
  104717. // Don't clobber any existing jQuery.browser in case it's different
  104718. if ( !jQuery.browser ) {
  104719. matched = jQuery.uaMatch( navigator.userAgent );
  104720. browser = {};
  104721. if ( matched.browser ) {
  104722. browser[ matched.browser ] = true;
  104723. browser.version = matched.version;
  104724. }
  104725. // Chrome is Webkit, but Webkit is also Safari.
  104726. if ( browser.chrome ) {
  104727. browser.webkit = true;
  104728. } else if ( browser.webkit ) {
  104729. browser.safari = true;
  104730. }
  104731. jQuery.browser = browser;
  104732. }
  104733. // Warn if the code tries to get jQuery.browser
  104734. migrateWarnProp( jQuery, "browser", jQuery.browser, "jQuery.browser is deprecated" );
  104735. // jQuery.boxModel deprecated in 1.3, jQuery.support.boxModel deprecated in 1.7
  104736. jQuery.boxModel = jQuery.support.boxModel = (document.compatMode === "CSS1Compat");
  104737. migrateWarnProp( jQuery, "boxModel", jQuery.boxModel, "jQuery.boxModel is deprecated" );
  104738. migrateWarnProp( jQuery.support, "boxModel", jQuery.support.boxModel, "jQuery.support.boxModel is deprecated" );
  104739. jQuery.sub = function() {
  104740. function jQuerySub( selector, context ) {
  104741. return new jQuerySub.fn.init( selector, context );
  104742. }
  104743. jQuery.extend( true, jQuerySub, this );
  104744. jQuerySub.superclass = this;
  104745. jQuerySub.fn = jQuerySub.prototype = this();
  104746. jQuerySub.fn.constructor = jQuerySub;
  104747. jQuerySub.sub = this.sub;
  104748. jQuerySub.fn.init = function init( selector, context ) {
  104749. var instance = jQuery.fn.init.call( this, selector, context, rootjQuerySub );
  104750. return instance instanceof jQuerySub ?
  104751. instance :
  104752. jQuerySub( instance );
  104753. };
  104754. jQuerySub.fn.init.prototype = jQuerySub.fn;
  104755. var rootjQuerySub = jQuerySub(document);
  104756. migrateWarn( "jQuery.sub() is deprecated" );
  104757. return jQuerySub;
  104758. };
  104759. // The number of elements contained in the matched element set
  104760. jQuery.fn.size = function() {
  104761. migrateWarn( "jQuery.fn.size() is deprecated; use the .length property" );
  104762. return this.length;
  104763. };
  104764. var internalSwapCall = false;
  104765. // If this version of jQuery has .swap(), don't false-alarm on internal uses
  104766. if ( jQuery.swap ) {
  104767. jQuery.each( [ "height", "width", "reliableMarginRight" ], function( _, name ) {
  104768. var oldHook = jQuery.cssHooks[ name ] && jQuery.cssHooks[ name ].get;
  104769. if ( oldHook ) {
  104770. jQuery.cssHooks[ name ].get = function() {
  104771. var ret;
  104772. internalSwapCall = true;
  104773. ret = oldHook.apply( this, arguments );
  104774. internalSwapCall = false;
  104775. return ret;
  104776. };
  104777. }
  104778. });
  104779. }
  104780. jQuery.swap = function( elem, options, callback, args ) {
  104781. var ret, name,
  104782. old = {};
  104783. if ( !internalSwapCall ) {
  104784. migrateWarn( "jQuery.swap() is undocumented and deprecated" );
  104785. }
  104786. // Remember the old values, and insert the new ones
  104787. for ( name in options ) {
  104788. old[ name ] = elem.style[ name ];
  104789. elem.style[ name ] = options[ name ];
  104790. }
  104791. ret = callback.apply( elem, args || [] );
  104792. // Revert the old values
  104793. for ( name in options ) {
  104794. elem.style[ name ] = old[ name ];
  104795. }
  104796. return ret;
  104797. };
  104798. // Ensure that $.ajax gets the new parseJSON defined in core.js
  104799. jQuery.ajaxSetup({
  104800. converters: {
  104801. "text json": jQuery.parseJSON
  104802. }
  104803. });
  104804. var oldFnData = jQuery.fn.data;
  104805. jQuery.fn.data = function( name ) {
  104806. var ret, evt,
  104807. elem = this[0];
  104808. // Handles 1.7 which has this behavior and 1.8 which doesn't
  104809. if ( elem && name === "events" && arguments.length === 1 ) {
  104810. ret = jQuery.data( elem, name );
  104811. evt = jQuery._data( elem, name );
  104812. if ( ( ret === undefined || ret === evt ) && evt !== undefined ) {
  104813. migrateWarn("Use of jQuery.fn.data('events') is deprecated");
  104814. return evt;
  104815. }
  104816. }
  104817. return oldFnData.apply( this, arguments );
  104818. };
  104819. var rscriptType = /\/(java|ecma)script/i;
  104820. // Since jQuery.clean is used internally on older versions, we only shim if it's missing
  104821. if ( !jQuery.clean ) {
  104822. jQuery.clean = function( elems, context, fragment, scripts ) {
  104823. // Set context per 1.8 logic
  104824. context = context || document;
  104825. context = !context.nodeType && context[0] || context;
  104826. context = context.ownerDocument || context;
  104827. migrateWarn("jQuery.clean() is deprecated");
  104828. var i, elem, handleScript, jsTags,
  104829. ret = [];
  104830. jQuery.merge( ret, jQuery.buildFragment( elems, context ).childNodes );
  104831. // Complex logic lifted directly from jQuery 1.8
  104832. if ( fragment ) {
  104833. // Special handling of each script element
  104834. handleScript = function( elem ) {
  104835. // Check if we consider it executable
  104836. if ( !elem.type || rscriptType.test( elem.type ) ) {
  104837. // Detach the script and store it in the scripts array (if provided) or the fragment
  104838. // Return truthy to indicate that it has been handled
  104839. return scripts ?
  104840. scripts.push( elem.parentNode ? elem.parentNode.removeChild( elem ) : elem ) :
  104841. fragment.appendChild( elem );
  104842. }
  104843. };
  104844. for ( i = 0; (elem = ret[i]) != null; i++ ) {
  104845. // Check if we're done after handling an executable script
  104846. if ( !( jQuery.nodeName( elem, "script" ) && handleScript( elem ) ) ) {
  104847. // Append to fragment and handle embedded scripts
  104848. fragment.appendChild( elem );
  104849. if ( typeof elem.getElementsByTagName !== "undefined" ) {
  104850. // handleScript alters the DOM, so use jQuery.merge to ensure snapshot iteration
  104851. jsTags = jQuery.grep( jQuery.merge( [], elem.getElementsByTagName("script") ), handleScript );
  104852. // Splice the scripts into ret after their former ancestor and advance our index beyond them
  104853. ret.splice.apply( ret, [i + 1, 0].concat( jsTags ) );
  104854. i += jsTags.length;
  104855. }
  104856. }
  104857. }
  104858. }
  104859. return ret;
  104860. };
  104861. }
  104862. var eventAdd = jQuery.event.add,
  104863. eventRemove = jQuery.event.remove,
  104864. eventTrigger = jQuery.event.trigger,
  104865. oldToggle = jQuery.fn.toggle,
  104866. oldLive = jQuery.fn.live,
  104867. oldDie = jQuery.fn.die,
  104868. oldLoad = jQuery.fn.load,
  104869. ajaxEvents = "ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",
  104870. rajaxEvent = new RegExp( "\\b(?:" + ajaxEvents + ")\\b" ),
  104871. rhoverHack = /(?:^|\s)hover(\.\S+|)\b/,
  104872. hoverHack = function( events ) {
  104873. if ( typeof( events ) !== "string" || jQuery.event.special.hover ) {
  104874. return events;
  104875. }
  104876. if ( rhoverHack.test( events ) ) {
  104877. migrateWarn("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'");
  104878. }
  104879. return events && events.replace( rhoverHack, "mouseenter$1 mouseleave$1" );
  104880. };
  104881. // Event props removed in 1.9, put them back if needed; no practical way to warn them
  104882. if ( jQuery.event.props && jQuery.event.props[ 0 ] !== "attrChange" ) {
  104883. jQuery.event.props.unshift( "attrChange", "attrName", "relatedNode", "srcElement" );
  104884. }
  104885. // Undocumented jQuery.event.handle was "deprecated" in jQuery 1.7
  104886. if ( jQuery.event.dispatch ) {
  104887. migrateWarnProp( jQuery.event, "handle", jQuery.event.dispatch, "jQuery.event.handle is undocumented and deprecated" );
  104888. }
  104889. // Support for 'hover' pseudo-event and ajax event warnings
  104890. jQuery.event.add = function( elem, types, handler, data, selector ){
  104891. if ( elem !== document && rajaxEvent.test( types ) ) {
  104892. migrateWarn( "AJAX events should be attached to document: " + types );
  104893. }
  104894. eventAdd.call( this, elem, hoverHack( types || "" ), handler, data, selector );
  104895. };
  104896. jQuery.event.remove = function( elem, types, handler, selector, mappedTypes ){
  104897. eventRemove.call( this, elem, hoverHack( types ) || "", handler, selector, mappedTypes );
  104898. };
  104899. jQuery.each( [ "load", "unload", "error" ], function( _, name ) {
  104900. jQuery.fn[ name ] = function() {
  104901. var args = Array.prototype.slice.call( arguments, 0 );
  104902. migrateWarn( "jQuery.fn." + name + "() is deprecated" );
  104903. // If this is an ajax load() the first arg should be the string URL;
  104904. // technically this could also be the "Anything" arg of the event .load()
  104905. // which just goes to show why this dumb signature has been deprecated!
  104906. // jQuery custom builds that exclude the Ajax module justifiably die here.
  104907. if ( name === "load" && typeof arguments[ 0 ] === "string" ) {
  104908. return oldLoad.apply( this, arguments );
  104909. }
  104910. args.splice( 0, 0, name );
  104911. if ( arguments.length ) {
  104912. return this.bind.apply( this, args );
  104913. }
  104914. // Use .triggerHandler here because:
  104915. // - load and unload events don't need to bubble, only applied to window or image
  104916. // - error event should not bubble to window, although it does pre-1.7
  104917. // See http://bugs.jquery.com/ticket/11820
  104918. this.triggerHandler.apply( this, args );
  104919. return this;
  104920. };
  104921. });
  104922. jQuery.fn.toggle = function( fn, fn2 ) {
  104923. // Don't mess with animation or css toggles
  104924. if ( !jQuery.isFunction( fn ) || !jQuery.isFunction( fn2 ) ) {
  104925. return oldToggle.apply( this, arguments );
  104926. }
  104927. migrateWarn("jQuery.fn.toggle(handler, handler...) is deprecated");
  104928. // Save reference to arguments for access in closure
  104929. var args = arguments,
  104930. guid = fn.guid || jQuery.guid++,
  104931. i = 0,
  104932. toggler = function( event ) {
  104933. // Figure out which function to execute
  104934. var lastToggle = ( jQuery._data( this, "lastToggle" + fn.guid ) || 0 ) % i;
  104935. jQuery._data( this, "lastToggle" + fn.guid, lastToggle + 1 );
  104936. // Make sure that clicks stop
  104937. event.preventDefault();
  104938. // and execute the function
  104939. return args[ lastToggle ].apply( this, arguments ) || false;
  104940. };
  104941. // link all the functions, so any of them can unbind this click handler
  104942. toggler.guid = guid;
  104943. while ( i < args.length ) {
  104944. args[ i++ ].guid = guid;
  104945. }
  104946. return this.click( toggler );
  104947. };
  104948. jQuery.fn.live = function( types, data, fn ) {
  104949. migrateWarn("jQuery.fn.live() is deprecated");
  104950. if ( oldLive ) {
  104951. return oldLive.apply( this, arguments );
  104952. }
  104953. jQuery( this.context ).on( types, this.selector, data, fn );
  104954. return this;
  104955. };
  104956. jQuery.fn.die = function( types, fn ) {
  104957. migrateWarn("jQuery.fn.die() is deprecated");
  104958. if ( oldDie ) {
  104959. return oldDie.apply( this, arguments );
  104960. }
  104961. jQuery( this.context ).off( types, this.selector || "**", fn );
  104962. return this;
  104963. };
  104964. // Turn global events into document-triggered events
  104965. jQuery.event.trigger = function( event, data, elem, onlyHandlers ){
  104966. if ( !elem && !rajaxEvent.test( event ) ) {
  104967. migrateWarn( "Global events are undocumented and deprecated" );
  104968. }
  104969. return eventTrigger.call( this, event, data, elem || document, onlyHandlers );
  104970. };
  104971. jQuery.each( ajaxEvents.split("|"),
  104972. function( _, name ) {
  104973. jQuery.event.special[ name ] = {
  104974. setup: function() {
  104975. var elem = this;
  104976. // The document needs no shimming; must be !== for oldIE
  104977. if ( elem !== document ) {
  104978. jQuery.event.add( document, name + "." + jQuery.guid, function() {
  104979. jQuery.event.trigger( name, Array.prototype.slice.call( arguments, 1 ), elem, true );
  104980. });
  104981. jQuery._data( this, name, jQuery.guid++ );
  104982. }
  104983. return false;
  104984. },
  104985. teardown: function() {
  104986. if ( this !== document ) {
  104987. jQuery.event.remove( document, name + "." + jQuery._data( this, name ) );
  104988. }
  104989. return false;
  104990. }
  104991. };
  104992. }
  104993. );
  104994. jQuery.event.special.ready = {
  104995. setup: function() { migrateWarn( "'ready' event is deprecated" ); }
  104996. };
  104997. var oldSelf = jQuery.fn.andSelf || jQuery.fn.addBack,
  104998. oldFind = jQuery.fn.find;
  104999. jQuery.fn.andSelf = function() {
  105000. migrateWarn("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()");
  105001. return oldSelf.apply( this, arguments );
  105002. };
  105003. jQuery.fn.find = function( selector ) {
  105004. var ret = oldFind.apply( this, arguments );
  105005. ret.context = this.context;
  105006. ret.selector = this.selector ? this.selector + " " + selector : selector;
  105007. return ret;
  105008. };
  105009. // jQuery 1.6 did not support Callbacks, do not warn there
  105010. if ( jQuery.Callbacks ) {
  105011. var oldDeferred = jQuery.Deferred,
  105012. tuples = [
  105013. // action, add listener, callbacks, .then handlers, final state
  105014. [ "resolve", "done", jQuery.Callbacks("once memory"),
  105015. jQuery.Callbacks("once memory"), "resolved" ],
  105016. [ "reject", "fail", jQuery.Callbacks("once memory"),
  105017. jQuery.Callbacks("once memory"), "rejected" ],
  105018. [ "notify", "progress", jQuery.Callbacks("memory"),
  105019. jQuery.Callbacks("memory") ]
  105020. ];
  105021. jQuery.Deferred = function( func ) {
  105022. var deferred = oldDeferred(),
  105023. promise = deferred.promise();
  105024. deferred.pipe = promise.pipe = function( /* fnDone, fnFail, fnProgress */ ) {
  105025. var fns = arguments;
  105026. migrateWarn( "deferred.pipe() is deprecated" );
  105027. return jQuery.Deferred(function( newDefer ) {
  105028. jQuery.each( tuples, function( i, tuple ) {
  105029. var fn = jQuery.isFunction( fns[ i ] ) && fns[ i ];
  105030. // deferred.done(function() { bind to newDefer or newDefer.resolve })
  105031. // deferred.fail(function() { bind to newDefer or newDefer.reject })
  105032. // deferred.progress(function() { bind to newDefer or newDefer.notify })
  105033. deferred[ tuple[1] ](function() {
  105034. var returned = fn && fn.apply( this, arguments );
  105035. if ( returned && jQuery.isFunction( returned.promise ) ) {
  105036. returned.promise()
  105037. .done( newDefer.resolve )
  105038. .fail( newDefer.reject )
  105039. .progress( newDefer.notify );
  105040. } else {
  105041. newDefer[ tuple[ 0 ] + "With" ](
  105042. this === promise ? newDefer.promise() : this,
  105043. fn ? [ returned ] : arguments
  105044. );
  105045. }
  105046. });
  105047. });
  105048. fns = null;
  105049. }).promise();
  105050. };
  105051. deferred.isResolved = function() {
  105052. migrateWarn( "deferred.isResolved is deprecated" );
  105053. return deferred.state() === "resolved";
  105054. };
  105055. deferred.isRejected = function() {
  105056. migrateWarn( "deferred.isRejected is deprecated" );
  105057. return deferred.state() === "rejected";
  105058. };
  105059. if ( func ) {
  105060. func.call( deferred, deferred );
  105061. }
  105062. return deferred;
  105063. };
  105064. }
  105065. })( jQuery, window );
  105066. /*
  105067. * MultiSelect v0.9.11
  105068. * Copyright (c) 2012 Louis Cuny
  105069. *
  105070. * This program is free software. It comes without any warranty, to
  105071. * the extent permitted by applicable law. You can redistribute it
  105072. * and/or modify it under the terms of the Do What The Fuck You Want
  105073. * To Public License, Version 2, as published by Sam Hocevar. See
  105074. * http://sam.zoy.org/wtfpl/COPYING for more details.
  105075. */
  105076. !function ($) {
  105077. "use strict";
  105078. /* MULTISELECT CLASS DEFINITION
  105079. * ====================== */
  105080. var MultiSelect = function (element, options) {
  105081. this.options = options;
  105082. this.$element = $(element);
  105083. this.$container = $('<div/>', { 'class': "ms-container" });
  105084. this.$selectableContainer = $('<div/>', { 'class': 'ms-selectable' });
  105085. this.$selectionContainer = $('<div/>', { 'class': 'ms-selection' });
  105086. this.$selectableUl = $('<ul/>', { 'class': "ms-list", 'tabindex' : '-1' });
  105087. this.$selectionUl = $('<ul/>', { 'class': "ms-list", 'tabindex' : '-1' });
  105088. this.scrollTo = 0;
  105089. this.elemsSelector = 'li:visible:not(.ms-optgroup-label,.ms-optgroup-container,.'+options.disabledClass+')';
  105090. };
  105091. MultiSelect.prototype = {
  105092. constructor: MultiSelect,
  105093. init: function(){
  105094. var that = this,
  105095. ms = this.$element;
  105096. if (ms.next('.ms-container').length === 0){
  105097. ms.css({ position: 'absolute', left: '-9999px' });
  105098. ms.attr('id', ms.attr('id') ? ms.attr('id') : Math.ceil(Math.random()*1000)+'multiselect');
  105099. this.$container.attr('id', 'ms-'+ms.attr('id'));
  105100. this.$container.addClass(that.options.cssClass);
  105101. ms.find('option').each(function(){
  105102. that.generateLisFromOption(this);
  105103. });
  105104. this.$selectionUl.find('.ms-optgroup-label').hide();
  105105. if (that.options.selectableHeader){
  105106. that.$selectableContainer.append(that.options.selectableHeader);
  105107. }
  105108. that.$selectableContainer.append(that.$selectableUl);
  105109. if (that.options.selectableFooter){
  105110. that.$selectableContainer.append(that.options.selectableFooter);
  105111. }
  105112. if (that.options.selectionHeader){
  105113. that.$selectionContainer.append(that.options.selectionHeader);
  105114. }
  105115. that.$selectionContainer.append(that.$selectionUl);
  105116. if (that.options.selectionFooter){
  105117. that.$selectionContainer.append(that.options.selectionFooter);
  105118. }
  105119. that.$container.append(that.$selectableContainer);
  105120. that.$container.append(that.$selectionContainer);
  105121. ms.after(that.$container);
  105122. that.activeMouse(that.$selectableUl);
  105123. that.activeKeyboard(that.$selectableUl);
  105124. var action = that.options.dblClick ? 'dblclick' : 'click';
  105125. that.$selectableUl.on(action, '.ms-elem-selectable', function(){
  105126. that.select($(this).data('ms-value'));
  105127. });
  105128. that.$selectionUl.on(action, '.ms-elem-selection', function(){
  105129. that.deselect($(this).data('ms-value'));
  105130. });
  105131. that.activeMouse(that.$selectionUl);
  105132. that.activeKeyboard(that.$selectionUl);
  105133. ms.on('focus', function(){
  105134. that.$selectableUl.focus();
  105135. })
  105136. }
  105137. var selectedValues = ms.find('option:selected').map(function(){ return $(this).val(); }).get();
  105138. that.select(selectedValues, 'init');
  105139. if (typeof that.options.afterInit === 'function') {
  105140. that.options.afterInit.call(this, this.$container);
  105141. }
  105142. },
  105143. 'generateLisFromOption' : function(option, index, $container){
  105144. var that = this,
  105145. ms = that.$element,
  105146. attributes = "",
  105147. $option = $(option);
  105148. for (var cpt = 0; cpt < option.attributes.length; cpt++){
  105149. var attr = option.attributes[cpt];
  105150. if(attr.name !== 'value' && attr.name !== 'disabled'){
  105151. attributes += attr.name+'="'+attr.value+'" ';
  105152. }
  105153. }
  105154. var selectableLi = $('<li '+attributes+'><span>'+that.escapeHTML($option.text())+'</span></li>'),
  105155. selectedLi = selectableLi.clone(),
  105156. value = $option.val(),
  105157. elementId = that.sanitize(value);
  105158. selectableLi
  105159. .data('ms-value', value)
  105160. .addClass('ms-elem-selectable')
  105161. .attr('id', elementId+'-selectable');
  105162. selectedLi
  105163. .data('ms-value', value)
  105164. .addClass('ms-elem-selection')
  105165. .attr('id', elementId+'-selection')
  105166. .hide();
  105167. if ($option.prop('disabled') || ms.prop('disabled')){
  105168. selectedLi.addClass(that.options.disabledClass);
  105169. selectableLi.addClass(that.options.disabledClass);
  105170. }
  105171. var $optgroup = $option.parent('optgroup');
  105172. if ($optgroup.length > 0){
  105173. var optgroupLabel = $optgroup.attr('label'),
  105174. optgroupId = that.sanitize(optgroupLabel),
  105175. $selectableOptgroup = that.$selectableUl.find('#optgroup-selectable-'+optgroupId),
  105176. $selectionOptgroup = that.$selectionUl.find('#optgroup-selection-'+optgroupId);
  105177. if ($selectableOptgroup.length === 0){
  105178. var optgroupContainerTpl = '<li class="ms-optgroup-container"></li>',
  105179. optgroupTpl = '<ul class="ms-optgroup"><li class="ms-optgroup-label"><span>'+optgroupLabel+'</span></li></ul>';
  105180. $selectableOptgroup = $(optgroupContainerTpl);
  105181. $selectionOptgroup = $(optgroupContainerTpl);
  105182. $selectableOptgroup.attr('id', 'optgroup-selectable-'+optgroupId);
  105183. $selectionOptgroup.attr('id', 'optgroup-selection-'+optgroupId);
  105184. $selectableOptgroup.append($(optgroupTpl));
  105185. $selectionOptgroup.append($(optgroupTpl));
  105186. if (that.options.selectableOptgroup){
  105187. $selectableOptgroup.find('.ms-optgroup-label').on('click', function(){
  105188. var values = $optgroup.children(':not(:selected, :disabled)').map(function(){ return $(this).val() }).get();
  105189. that.select(values);
  105190. });
  105191. $selectionOptgroup.find('.ms-optgroup-label').on('click', function(){
  105192. var values = $optgroup.children(':selected:not(:disabled)').map(function(){ return $(this).val() }).get();
  105193. that.deselect(values);
  105194. });
  105195. }
  105196. that.$selectableUl.append($selectableOptgroup);
  105197. that.$selectionUl.append($selectionOptgroup);
  105198. }
  105199. index = index == undefined ? $selectableOptgroup.find('ul').children().length : index + 1;
  105200. selectableLi.insertAt(index, $selectableOptgroup.children());
  105201. selectedLi.insertAt(index, $selectionOptgroup.children());
  105202. } else {
  105203. index = index == undefined ? that.$selectableUl.children().length : index;
  105204. selectableLi.insertAt(index, that.$selectableUl);
  105205. selectedLi.insertAt(index, that.$selectionUl);
  105206. }
  105207. },
  105208. 'addOption' : function(options){
  105209. var that = this;
  105210. if (options.value) options = [options];
  105211. $.each(options, function(index, option){
  105212. if (option.value && that.$element.find("option[value='"+option.value+"']").length === 0){
  105213. var $option = $('<option value="'+option.value+'">'+option.text+'</option>'),
  105214. index = parseInt((typeof option.index === 'undefined' ? that.$element.children().length : option.index)),
  105215. $container = option.nested == undefined ? that.$element : $("optgroup[label='"+option.nested+"']")
  105216. $option.insertAt(index, $container);
  105217. that.generateLisFromOption($option.get(0), index, option.nested);
  105218. }
  105219. })
  105220. },
  105221. 'escapeHTML' : function(text){
  105222. return $("<div>").text(text).html();
  105223. },
  105224. 'activeKeyboard' : function($list){
  105225. var that = this;
  105226. $list.on('focus', function(){
  105227. $(this).addClass('ms-focus');
  105228. })
  105229. .on('blur', function(){
  105230. $(this).removeClass('ms-focus');
  105231. })
  105232. .on('keydown', function(e){
  105233. switch (e.which) {
  105234. case 40:
  105235. case 38:
  105236. e.preventDefault();
  105237. e.stopPropagation();
  105238. that.moveHighlight($(this), (e.which === 38) ? -1 : 1);
  105239. return;
  105240. case 37:
  105241. case 39:
  105242. e.preventDefault();
  105243. e.stopPropagation();
  105244. that.switchList($list);
  105245. return;
  105246. case 9:
  105247. if(that.$element.is('[tabindex]')){
  105248. e.preventDefault();
  105249. var tabindex = parseInt(that.$element.attr('tabindex'), 10);
  105250. tabindex = (e.shiftKey) ? tabindex-1 : tabindex+1;
  105251. $('[tabindex="'+(tabindex)+'"]').focus();
  105252. return;
  105253. }else{
  105254. if(e.shiftKey){
  105255. that.$element.trigger('focus');
  105256. }
  105257. }
  105258. }
  105259. if($.inArray(e.which, that.options.keySelect) > -1){
  105260. e.preventDefault();
  105261. e.stopPropagation();
  105262. that.selectHighlighted($list);
  105263. return;
  105264. }
  105265. });
  105266. },
  105267. 'moveHighlight': function($list, direction){
  105268. var $elems = $list.find(this.elemsSelector),
  105269. $currElem = $elems.filter('.ms-hover'),
  105270. $nextElem = null,
  105271. elemHeight = $elems.first().outerHeight(),
  105272. containerHeight = $list.height(),
  105273. containerSelector = '#'+this.$container.prop('id');
  105274. $elems.removeClass('ms-hover');
  105275. if (direction === 1){ // DOWN
  105276. $nextElem = $currElem.nextAll(this.elemsSelector).first();
  105277. if ($nextElem.length === 0){
  105278. var $optgroupUl = $currElem.parent();
  105279. if ($optgroupUl.hasClass('ms-optgroup')){
  105280. var $optgroupLi = $optgroupUl.parent(),
  105281. $nextOptgroupLi = $optgroupLi.next(':visible');
  105282. if ($nextOptgroupLi.length > 0){
  105283. $nextElem = $nextOptgroupLi.find(this.elemsSelector).first();
  105284. } else {
  105285. $nextElem = $elems.first();
  105286. }
  105287. } else {
  105288. $nextElem = $elems.first();
  105289. }
  105290. }
  105291. } else if (direction === -1){ // UP
  105292. $nextElem = $currElem.prevAll(this.elemsSelector).first();
  105293. if ($nextElem.length === 0){
  105294. var $optgroupUl = $currElem.parent();
  105295. if ($optgroupUl.hasClass('ms-optgroup')){
  105296. var $optgroupLi = $optgroupUl.parent(),
  105297. $prevOptgroupLi = $optgroupLi.prev(':visible');
  105298. if ($prevOptgroupLi.length > 0){
  105299. $nextElem = $prevOptgroupLi.find(this.elemsSelector).last();
  105300. } else {
  105301. $nextElem = $elems.last();
  105302. }
  105303. } else {
  105304. $nextElem = $elems.last();
  105305. }
  105306. }
  105307. }
  105308. if ($nextElem.length > 0){
  105309. $nextElem.addClass('ms-hover');
  105310. var scrollTo = $list.scrollTop() + $nextElem.position().top -
  105311. containerHeight / 2 + elemHeight / 2;
  105312. $list.scrollTop(scrollTo);
  105313. }
  105314. },
  105315. 'selectHighlighted' : function($list){
  105316. var $elems = $list.find(this.elemsSelector),
  105317. $highlightedElem = $elems.filter('.ms-hover').first();
  105318. if ($highlightedElem.length > 0){
  105319. if ($list.parent().hasClass('ms-selectable')){
  105320. this.select($highlightedElem.data('ms-value'));
  105321. } else {
  105322. this.deselect($highlightedElem.data('ms-value'));
  105323. }
  105324. $elems.removeClass('ms-hover');
  105325. }
  105326. },
  105327. 'switchList' : function($list){
  105328. $list.blur();
  105329. this.$container.find(this.elemsSelector).removeClass('ms-hover');
  105330. if ($list.parent().hasClass('ms-selectable')){
  105331. this.$selectionUl.focus();
  105332. } else {
  105333. this.$selectableUl.focus();
  105334. }
  105335. },
  105336. 'activeMouse' : function($list){
  105337. var that = this;
  105338. $('body').on('mouseenter', that.elemsSelector, function(){
  105339. $(this).parents('.ms-container').find(that.elemsSelector).removeClass('ms-hover');
  105340. $(this).addClass('ms-hover');
  105341. });
  105342. $('body').on('mouseleave', that.elemsSelector, function () {
  105343. $(this).parents('.ms-container').find(that.elemsSelector).removeClass('ms-hover');;
  105344. });
  105345. },
  105346. 'refresh' : function() {
  105347. this.destroy();
  105348. this.$element.multiSelect(this.options);
  105349. },
  105350. 'destroy' : function(){
  105351. $("#ms-"+this.$element.attr("id")).remove();
  105352. this.$element.css('position', '').css('left', '')
  105353. this.$element.removeData('multiselect');
  105354. },
  105355. 'select' : function(value, method){
  105356. if (typeof value === 'string'){ value = [value]; }
  105357. var that = this,
  105358. ms = this.$element,
  105359. msIds = $.map(value, function(val){ return(that.sanitize(val)); }),
  105360. selectables = this.$selectableUl.find('#' + msIds.join('-selectable, #')+'-selectable').filter(':not(.'+that.options.disabledClass+')'),
  105361. selections = this.$selectionUl.find('#' + msIds.join('-selection, #') + '-selection').filter(':not(.'+that.options.disabledClass+')'),
  105362. options = ms.find('option:not(:disabled)').filter(function(){ return($.inArray(this.value, value) > -1); });
  105363. if (method === 'init'){
  105364. selectables = this.$selectableUl.find('#' + msIds.join('-selectable, #')+'-selectable'),
  105365. selections = this.$selectionUl.find('#' + msIds.join('-selection, #') + '-selection');
  105366. }
  105367. if (selectables.length > 0){
  105368. selectables.addClass('ms-selected').hide();
  105369. selections.addClass('ms-selected').show();
  105370. options.prop('selected', true);
  105371. that.$container.find(that.elemsSelector).removeClass('ms-hover');
  105372. var selectableOptgroups = that.$selectableUl.children('.ms-optgroup-container');
  105373. if (selectableOptgroups.length > 0){
  105374. selectableOptgroups.each(function(){
  105375. var selectablesLi = $(this).find('.ms-elem-selectable');
  105376. if (selectablesLi.length === selectablesLi.filter('.ms-selected').length){
  105377. $(this).find('.ms-optgroup-label').hide();
  105378. }
  105379. });
  105380. var selectionOptgroups = that.$selectionUl.children('.ms-optgroup-container');
  105381. selectionOptgroups.each(function(){
  105382. var selectionsLi = $(this).find('.ms-elem-selection');
  105383. if (selectionsLi.filter('.ms-selected').length > 0){
  105384. $(this).find('.ms-optgroup-label').show();
  105385. }
  105386. });
  105387. } else {
  105388. if (that.options.keepOrder && method !== 'init'){
  105389. var selectionLiLast = that.$selectionUl.find('.ms-selected');
  105390. if((selectionLiLast.length > 1) && (selectionLiLast.last().get(0) != selections.get(0))) {
  105391. selections.insertAfter(selectionLiLast.last());
  105392. }
  105393. }
  105394. }
  105395. if (method !== 'init'){
  105396. ms.trigger('change');
  105397. if (typeof that.options.afterSelect === 'function') {
  105398. that.options.afterSelect.call(this, value);
  105399. }
  105400. }
  105401. }
  105402. },
  105403. 'deselect' : function(value){
  105404. if (typeof value === 'string'){ value = [value]; }
  105405. var that = this,
  105406. ms = this.$element,
  105407. msIds = $.map(value, function(val){ return(that.sanitize(val)); }),
  105408. selectables = this.$selectableUl.find('#' + msIds.join('-selectable, #')+'-selectable'),
  105409. selections = this.$selectionUl.find('#' + msIds.join('-selection, #')+'-selection').filter('.ms-selected').filter(':not(.'+that.options.disabledClass+')'),
  105410. options = ms.find('option').filter(function(){ return($.inArray(this.value, value) > -1); });
  105411. if (selections.length > 0){
  105412. selectables.removeClass('ms-selected').show();
  105413. selections.removeClass('ms-selected').hide();
  105414. options.prop('selected', false);
  105415. that.$container.find(that.elemsSelector).removeClass('ms-hover');
  105416. var selectableOptgroups = that.$selectableUl.children('.ms-optgroup-container');
  105417. if (selectableOptgroups.length > 0){
  105418. selectableOptgroups.each(function(){
  105419. var selectablesLi = $(this).find('.ms-elem-selectable');
  105420. if (selectablesLi.filter(':not(.ms-selected)').length > 0){
  105421. $(this).find('.ms-optgroup-label').show();
  105422. }
  105423. });
  105424. var selectionOptgroups = that.$selectionUl.children('.ms-optgroup-container');
  105425. selectionOptgroups.each(function(){
  105426. var selectionsLi = $(this).find('.ms-elem-selection');
  105427. if (selectionsLi.filter('.ms-selected').length === 0){
  105428. $(this).find('.ms-optgroup-label').hide();
  105429. }
  105430. });
  105431. }
  105432. ms.trigger('change');
  105433. if (typeof that.options.afterDeselect === 'function') {
  105434. that.options.afterDeselect.call(this, value);
  105435. }
  105436. }
  105437. },
  105438. 'select_all' : function(){
  105439. var ms = this.$element,
  105440. values = ms.val();
  105441. ms.find('option:not(":disabled")').prop('selected', true);
  105442. this.$selectableUl.find('.ms-elem-selectable').filter(':not(.'+this.options.disabledClass+')').addClass('ms-selected').hide();
  105443. this.$selectionUl.find('.ms-optgroup-label').show();
  105444. this.$selectableUl.find('.ms-optgroup-label').hide();
  105445. this.$selectionUl.find('.ms-elem-selection').filter(':not(.'+this.options.disabledClass+')').addClass('ms-selected').show();
  105446. this.$selectionUl.focus();
  105447. ms.trigger('change');
  105448. if (typeof this.options.afterSelect === 'function') {
  105449. var selectedValues = $.grep(ms.val(), function(item){
  105450. return $.inArray(item, values) < 0;
  105451. });
  105452. this.options.afterSelect.call(this, selectedValues);
  105453. }
  105454. },
  105455. 'deselect_all' : function(){
  105456. var ms = this.$element,
  105457. values = ms.val();
  105458. ms.find('option').prop('selected', false);
  105459. this.$selectableUl.find('.ms-elem-selectable').removeClass('ms-selected').show();
  105460. this.$selectionUl.find('.ms-optgroup-label').hide();
  105461. this.$selectableUl.find('.ms-optgroup-label').show();
  105462. this.$selectionUl.find('.ms-elem-selection').removeClass('ms-selected').hide();
  105463. this.$selectableUl.focus();
  105464. ms.trigger('change');
  105465. if (typeof this.options.afterDeselect === 'function') {
  105466. this.options.afterDeselect.call(this, values);
  105467. }
  105468. },
  105469. sanitize: function(value){
  105470. var hash = 0, i, character;
  105471. if (value.length == 0) return hash;
  105472. var ls = 0;
  105473. for (i = 0, ls = value.length; i < ls; i++) {
  105474. character = value.charCodeAt(i);
  105475. hash = ((hash<<5)-hash)+character;
  105476. hash |= 0; // Convert to 32bit integer
  105477. }
  105478. return hash;
  105479. }
  105480. };
  105481. /* MULTISELECT PLUGIN DEFINITION
  105482. * ======================= */
  105483. $.fn.multiSelect = function () {
  105484. var option = arguments[0],
  105485. args = arguments;
  105486. return this.each(function () {
  105487. var $this = $(this),
  105488. data = $this.data('multiselect'),
  105489. options = $.extend({}, $.fn.multiSelect.defaults, $this.data(), typeof option === 'object' && option);
  105490. if (!data){ $this.data('multiselect', (data = new MultiSelect(this, options))); }
  105491. if (typeof option === 'string'){
  105492. data[option](args[1]);
  105493. } else {
  105494. data.init();
  105495. }
  105496. });
  105497. };
  105498. $.fn.multiSelect.defaults = {
  105499. keySelect: [32],
  105500. selectableOptgroup: false,
  105501. disabledClass : 'disabled',
  105502. dblClick : false,
  105503. keepOrder: false,
  105504. cssClass: ''
  105505. };
  105506. $.fn.multiSelect.Constructor = MultiSelect;
  105507. $.fn.insertAt = function(index, $parent) {
  105508. return this.each(function() {
  105509. if (index === 0) {
  105510. $parent.prepend(this);
  105511. } else {
  105512. $parent.children().eq(index - 1).after(this);
  105513. }
  105514. });
  105515. }
  105516. }(window.jQuery);
  105517. /*! Copyright (c) 2011 Piotr Rochala (http://rocha.la)
  105518. * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
  105519. * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
  105520. *
  105521. * Improved by keenthemes for Metronic Theme
  105522. * Version: 1.3.2
  105523. *
  105524. */
  105525. (function($) {
  105526. jQuery.fn.extend({
  105527. slimScroll: function(options) {
  105528. var defaults = {
  105529. // width in pixels of the visible scroll area
  105530. width: 'auto',
  105531. // height in pixels of the visible scroll area
  105532. height: '250px',
  105533. // width in pixels of the scrollbar and rail
  105534. size: '7px',
  105535. // scrollbar color, accepts any hex/color value
  105536. color: '#000',
  105537. // scrollbar position - left/right
  105538. position: 'right',
  105539. // distance in pixels between the side edge and the scrollbar
  105540. distance: '1px',
  105541. // default scroll position on load - top / bottom / $('selector')
  105542. start: 'top',
  105543. // sets scrollbar opacity
  105544. opacity: .4,
  105545. // enables always-on mode for the scrollbar
  105546. alwaysVisible: false,
  105547. // check if we should hide the scrollbar when user is hovering over
  105548. disableFadeOut: false,
  105549. // sets visibility of the rail
  105550. railVisible: false,
  105551. // sets rail color
  105552. railColor: '#333',
  105553. // sets rail opacity
  105554. railOpacity: .2,
  105555. // whether we should use jQuery UI Draggable to enable bar dragging
  105556. railDraggable: true,
  105557. // defautlt CSS class of the slimscroll rail
  105558. railClass: 'slimScrollRail',
  105559. // defautlt CSS class of the slimscroll bar
  105560. barClass: 'slimScrollBar',
  105561. // defautlt CSS class of the slimscroll wrapper
  105562. wrapperClass: 'slimScrollDiv',
  105563. // check if mousewheel should scroll the window if we reach top/bottom
  105564. allowPageScroll: false,
  105565. // scroll amount applied to each mouse wheel step
  105566. wheelStep: 20,
  105567. // scroll amount applied when user is using gestures
  105568. touchScrollStep: 200,
  105569. // sets border radius
  105570. borderRadius: '7px',
  105571. // sets border radius of the rail
  105572. railBorderRadius: '7px',
  105573. // sets animation status on a given scroll(added my keenthemes)
  105574. animate: true
  105575. };
  105576. var o = $.extend(defaults, options);
  105577. // do it for every element that matches selector
  105578. this.each(function() {
  105579. var isOverPanel, isOverBar, isDragg, queueHide, touchDif,
  105580. barHeight, percentScroll, lastScroll,
  105581. divS = '<div></div>',
  105582. minBarHeight = 30,
  105583. releaseScroll = false;
  105584. // used in event handlers and for better minification
  105585. var me = $(this);
  105586. //begin: windows phone fix added by keenthemes
  105587. if ('ontouchstart' in window && window.navigator.msPointerEnabled) {
  105588. me.css("-ms-touch-action", "none");
  105589. }
  105590. //end: windows phone fix added by keenthemes
  105591. // ensure we are not binding it again
  105592. if (me.parent().hasClass(o.wrapperClass)) {
  105593. // start from last bar position
  105594. var offset = me.scrollTop();
  105595. // find bar and rail
  105596. bar = me.parent().find('.' + o.barClass);
  105597. rail = me.parent().find('.' + o.railClass);
  105598. getBarHeight();
  105599. // check if we should scroll existing instance
  105600. if ($.isPlainObject(options)) {
  105601. // Pass height: auto to an existing slimscroll object to force a resize after contents have changed
  105602. if ('height' in options && options.height == 'auto') {
  105603. me.parent().css('height', 'auto');
  105604. me.css('height', 'auto');
  105605. var height = me.parent().parent().height();
  105606. me.parent().css('height', height);
  105607. me.css('height', height);
  105608. }
  105609. if ('scrollTo' in options) {
  105610. // jump to a static point
  105611. offset = parseInt(o.scrollTo);
  105612. } else if ('scrollBy' in options) {
  105613. // jump by value pixels
  105614. offset += parseInt(o.scrollBy);
  105615. } else if ('destroy' in options) {
  105616. // remove slimscroll elements
  105617. bar.remove();
  105618. rail.remove();
  105619. me.unwrap();
  105620. return;
  105621. }
  105622. // scroll content by the given offset
  105623. scrollContent(offset, false, true);
  105624. }
  105625. return;
  105626. }
  105627. // optionally set height to the parent's height
  105628. o.height = (options.height == 'auto') ? me.parent().height() : options.height;
  105629. // wrap content
  105630. var wrapper = $(divS)
  105631. .addClass(o.wrapperClass)
  105632. .css({
  105633. position: 'relative',
  105634. overflow: 'hidden',
  105635. width: o.width,
  105636. height: o.height
  105637. });
  105638. // update style for the div
  105639. me.css({
  105640. overflow: 'hidden',
  105641. width: o.width,
  105642. height: o.height
  105643. });
  105644. // create scrollbar rail
  105645. var rail = $(divS)
  105646. .addClass(o.railClass)
  105647. .css({
  105648. width: o.size,
  105649. height: '100%',
  105650. position: 'absolute',
  105651. top: 0,
  105652. display: (o.alwaysVisible && o.railVisible) ? 'block' : 'none',
  105653. 'border-radius': o.railBorderRadius,
  105654. background: o.railColor,
  105655. opacity: o.railOpacity,
  105656. zIndex: 90
  105657. });
  105658. // create scrollbar
  105659. var bar = $(divS)
  105660. .addClass(o.barClass)
  105661. .css({
  105662. background: o.color,
  105663. width: o.size,
  105664. position: 'absolute',
  105665. top: 0,
  105666. opacity: o.opacity,
  105667. display: o.alwaysVisible ? 'block' : 'none',
  105668. 'border-radius': o.borderRadius,
  105669. BorderRadius: o.borderRadius,
  105670. MozBorderRadius: o.borderRadius,
  105671. WebkitBorderRadius: o.borderRadius,
  105672. zIndex: 99
  105673. });
  105674. // set position
  105675. var posCss = (o.position == 'right') ? {
  105676. right: o.distance
  105677. } : {
  105678. left: o.distance
  105679. };
  105680. rail.css(posCss);
  105681. bar.css(posCss);
  105682. // wrap it
  105683. me.wrap(wrapper);
  105684. // append to parent div
  105685. me.parent().append(bar);
  105686. me.parent().append(rail);
  105687. // make it draggable and no longer dependent on the jqueryUI
  105688. if (o.railDraggable) {
  105689. bar.bind("mousedown", function(e) {
  105690. var $doc = $(document);
  105691. isDragg = true;
  105692. t = parseFloat(bar.css('top'));
  105693. pageY = e.pageY;
  105694. $doc.bind("mousemove.slimscroll", function(e) {
  105695. currTop = t + e.pageY - pageY;
  105696. bar.css('top', currTop);
  105697. scrollContent(0, bar.position().top, false); // scroll content
  105698. });
  105699. $doc.bind("mouseup.slimscroll", function(e) {
  105700. isDragg = false;
  105701. hideBar();
  105702. $doc.unbind('.slimscroll');
  105703. });
  105704. return false;
  105705. }).bind("selectstart.slimscroll", function(e) {
  105706. e.stopPropagation();
  105707. e.preventDefault();
  105708. return false;
  105709. });
  105710. }
  105711. //begin: windows phone fix added by keenthemes
  105712. if ('ontouchstart' in window && window.navigator.msPointerEnabled) {
  105713. me.bind('MSPointerDown', function(e, b) {
  105714. // record where touch started
  105715. touchDif = e.originalEvent.pageY;
  105716. });
  105717. me.bind('MSPointerMove', function(e) {
  105718. // prevent scrolling the page if necessary
  105719. e.originalEvent.preventDefault();
  105720. // see how far user swiped
  105721. var diff = (touchDif - e.originalEvent.pageY) / o.touchScrollStep;
  105722. // scroll content
  105723. scrollContent(diff, true);
  105724. touchDif = e.originalEvent.pageY;
  105725. });
  105726. }
  105727. //end: windows phone fix added by keenthemes
  105728. // on rail over
  105729. rail.hover(function() {
  105730. showBar();
  105731. }, function() {
  105732. hideBar();
  105733. });
  105734. // on bar over
  105735. bar.hover(function() {
  105736. isOverBar = true;
  105737. }, function() {
  105738. isOverBar = false;
  105739. });
  105740. // show on parent mouseover
  105741. me.hover(function() {
  105742. isOverPanel = true;
  105743. showBar();
  105744. hideBar();
  105745. }, function() {
  105746. isOverPanel = false;
  105747. hideBar();
  105748. });
  105749. // support for mobile
  105750. me.bind('touchstart', function(e, b) {
  105751. if (e.originalEvent.touches.length) {
  105752. // record where touch started
  105753. touchDif = e.originalEvent.touches[0].pageY;
  105754. }
  105755. });
  105756. me.bind('touchmove', function(e) {
  105757. // prevent scrolling the page if necessary
  105758. if (!releaseScroll) {
  105759. e.originalEvent.preventDefault();
  105760. }
  105761. if (e.originalEvent.touches.length) {
  105762. // see how far user swiped
  105763. var diff = (touchDif - e.originalEvent.touches[0].pageY) / o.touchScrollStep;
  105764. // scroll content
  105765. scrollContent(diff, true);
  105766. touchDif = e.originalEvent.touches[0].pageY;
  105767. }
  105768. });
  105769. // set up initial height
  105770. getBarHeight();
  105771. // check start position
  105772. if (o.start === 'bottom') {
  105773. // scroll content to bottom
  105774. bar.css({
  105775. top: me.outerHeight() - bar.outerHeight()
  105776. });
  105777. scrollContent(0, true);
  105778. } else if (o.start !== 'top') {
  105779. // assume jQuery selector
  105780. scrollContent($(o.start).position().top, null, true);
  105781. // make sure bar stays hidden
  105782. if (!o.alwaysVisible) {
  105783. bar.hide();
  105784. }
  105785. }
  105786. // attach scroll events
  105787. attachWheel();
  105788. function _onWheel(e) {
  105789. // use mouse wheel only when mouse is over
  105790. if (!isOverPanel) {
  105791. return;
  105792. }
  105793. var e = e || window.event;
  105794. var delta = 0;
  105795. if (e.wheelDelta) {
  105796. delta = -e.wheelDelta / 120;
  105797. }
  105798. if (e.detail) {
  105799. delta = e.detail / 3;
  105800. }
  105801. var target = e.target || e.srcTarget || e.srcElement;
  105802. if ($(target).closest('.' + o.wrapperClass).is(me.parent())) {
  105803. // scroll content
  105804. scrollContent(delta, true);
  105805. }
  105806. // stop window scroll
  105807. if (e.preventDefault && !releaseScroll) {
  105808. e.preventDefault();
  105809. }
  105810. if (!releaseScroll) {
  105811. e.returnValue = false;
  105812. }
  105813. }
  105814. function scrollContent(y, isWheel, isJump) {
  105815. releaseScroll = false;
  105816. var delta = y;
  105817. var maxTop = me.outerHeight() - bar.outerHeight();
  105818. if (isWheel) {
  105819. // move bar with mouse wheel
  105820. delta = parseInt(bar.css('top')) + y * parseInt(o.wheelStep) / 100 * bar.outerHeight();
  105821. // move bar, make sure it doesn't go out
  105822. delta = Math.min(Math.max(delta, 0), maxTop);
  105823. // if scrolling down, make sure a fractional change to the
  105824. // scroll position isn't rounded away when the scrollbar's CSS is set
  105825. // this flooring of delta would happened automatically when
  105826. // bar.css is set below, but we floor here for clarity
  105827. delta = (y > 0) ? Math.ceil(delta) : Math.floor(delta);
  105828. // scroll the scrollbar
  105829. bar.css({
  105830. top: delta + 'px'
  105831. });
  105832. }
  105833. // calculate actual scroll amount
  105834. percentScroll = parseInt(bar.css('top')) / (me.outerHeight() - bar.outerHeight());
  105835. delta = percentScroll * (me[0].scrollHeight - me.outerHeight());
  105836. if (isJump) {
  105837. delta = y;
  105838. var offsetTop = delta / me[0].scrollHeight * me.outerHeight();
  105839. offsetTop = Math.min(Math.max(offsetTop, 0), maxTop);
  105840. bar.css({
  105841. top: offsetTop + 'px'
  105842. });
  105843. }
  105844. // scroll content
  105845. if ('scrollTo' in o && o.animate) {
  105846. me.animate({
  105847. scrollTop: delta
  105848. });
  105849. } else {
  105850. me.scrollTop(delta);
  105851. }
  105852. // fire scrolling event
  105853. me.trigger('slimscrolling', ~~delta);
  105854. // ensure bar is visible
  105855. showBar();
  105856. // trigger hide when scroll is stopped
  105857. hideBar();
  105858. }
  105859. function attachWheel() {
  105860. if (window.addEventListener) {
  105861. this.addEventListener('DOMMouseScroll', _onWheel, false);
  105862. this.addEventListener('mousewheel', _onWheel, false);
  105863. } else {
  105864. document.attachEvent("onmousewheel", _onWheel)
  105865. }
  105866. }
  105867. function getBarHeight() {
  105868. // calculate scrollbar height and make sure it is not too small
  105869. barHeight = Math.max((me.outerHeight() / me[0].scrollHeight) * me.outerHeight(), minBarHeight);
  105870. bar.css({
  105871. height: barHeight + 'px'
  105872. });
  105873. // hide scrollbar if content is not long enough
  105874. var display = barHeight == me.outerHeight() ? 'none' : 'block';
  105875. bar.css({
  105876. display: display
  105877. });
  105878. }
  105879. function showBar() {
  105880. // recalculate bar height
  105881. getBarHeight();
  105882. clearTimeout(queueHide);
  105883. // when bar reached top or bottom
  105884. if (percentScroll == ~~percentScroll) {
  105885. //release wheel
  105886. releaseScroll = o.allowPageScroll;
  105887. // publish approporiate event
  105888. if (lastScroll != percentScroll) {
  105889. var msg = (~~percentScroll == 0) ? 'top' : 'bottom';
  105890. me.trigger('slimscroll', msg);
  105891. }
  105892. } else {
  105893. releaseScroll = false;
  105894. }
  105895. lastScroll = percentScroll;
  105896. // show only when required
  105897. if (barHeight >= me.outerHeight()) {
  105898. //allow window scroll
  105899. releaseScroll = true;
  105900. return;
  105901. }
  105902. bar.stop(true, true).fadeIn('fast');
  105903. if (o.railVisible) {
  105904. rail.stop(true, true).fadeIn('fast');
  105905. }
  105906. }
  105907. function hideBar() {
  105908. // only hide when options allow it
  105909. if (!o.alwaysVisible) {
  105910. queueHide = setTimeout(function() {
  105911. if (!(o.disableFadeOut && isOverPanel) && !isOverBar && !isDragg) {
  105912. bar.fadeOut('slow');
  105913. rail.fadeOut('slow');
  105914. }
  105915. }, 1000);
  105916. }
  105917. }
  105918. });
  105919. // maintain chainability
  105920. return this;
  105921. }
  105922. });
  105923. jQuery.fn.extend({
  105924. slimscroll: jQuery.fn.slimScroll
  105925. });
  105926. })(jQuery);
  105927. /*!
  105928. * Select2 4.0.0
  105929. * https://select2.github.io
  105930. *
  105931. * Released under the MIT license
  105932. * https://github.com/select2/select2/blob/master/LICENSE.md
  105933. */
  105934. (function (factory) {
  105935. if (typeof define === 'function' && define.amd) {
  105936. // AMD. Register as an anonymous module.
  105937. define(['jquery'], factory);
  105938. } else if (typeof exports === 'object') {
  105939. // Node/CommonJS
  105940. factory(require('jquery'));
  105941. } else {
  105942. // Browser globals
  105943. factory(jQuery);
  105944. }
  105945. }(function (jQuery) {
  105946. // This is needed so we can catch the AMD loader configuration and use it
  105947. // The inner file should be wrapped (by `banner.start.js`) in a function that
  105948. // returns the AMD loader references.
  105949. var S2 =
  105950. (function () {
  105951. // Restore the Select2 AMD loader so it can be used
  105952. // Needed mostly in the language files, where the loader is not inserted
  105953. if (jQuery && jQuery.fn && jQuery.fn.select2 && jQuery.fn.select2.amd) {
  105954. var S2 = jQuery.fn.select2.amd;
  105955. }
  105956. var S2;(function () { if (!S2 || !S2.requirejs) {
  105957. if (!S2) { S2 = {}; } else { require = S2; }
  105958. /**
  105959. * @license almond 0.2.9 Copyright (c) 2011-2014, The Dojo Foundation All Rights Reserved.
  105960. * Available via the MIT or new BSD license.
  105961. * see: http://github.com/jrburke/almond for details
  105962. */
  105963. //Going sloppy to avoid 'use strict' string cost, but strict practices should
  105964. //be followed.
  105965. /*jslint sloppy: true */
  105966. /*global setTimeout: false */
  105967. var requirejs, require, define;
  105968. (function (undef) {
  105969. var main, req, makeMap, handlers,
  105970. defined = {},
  105971. waiting = {},
  105972. config = {},
  105973. defining = {},
  105974. hasOwn = Object.prototype.hasOwnProperty,
  105975. aps = [].slice,
  105976. jsSuffixRegExp = /\.js$/;
  105977. function hasProp(obj, prop) {
  105978. return hasOwn.call(obj, prop);
  105979. }
  105980. /**
  105981. * Given a relative module name, like ./something, normalize it to
  105982. * a real name that can be mapped to a path.
  105983. * @param {String} name the relative name
  105984. * @param {String} baseName a real name that the name arg is relative
  105985. * to.
  105986. * @returns {String} normalized name
  105987. */
  105988. function normalize(name, baseName) {
  105989. var nameParts, nameSegment, mapValue, foundMap, lastIndex,
  105990. foundI, foundStarMap, starI, i, j, part,
  105991. baseParts = baseName && baseName.split("/"),
  105992. map = config.map,
  105993. starMap = (map && map['*']) || {};
  105994. //Adjust any relative paths.
  105995. if (name && name.charAt(0) === ".") {
  105996. //If have a base name, try to normalize against it,
  105997. //otherwise, assume it is a top-level require that will
  105998. //be relative to baseUrl in the end.
  105999. if (baseName) {
  106000. //Convert baseName to array, and lop off the last part,
  106001. //so that . matches that "directory" and not name of the baseName's
  106002. //module. For instance, baseName of "one/two/three", maps to
  106003. //"one/two/three.js", but we want the directory, "one/two" for
  106004. //this normalization.
  106005. baseParts = baseParts.slice(0, baseParts.length - 1);
  106006. name = name.split('/');
  106007. lastIndex = name.length - 1;
  106008. // Node .js allowance:
  106009. if (config.nodeIdCompat && jsSuffixRegExp.test(name[lastIndex])) {
  106010. name[lastIndex] = name[lastIndex].replace(jsSuffixRegExp, '');
  106011. }
  106012. name = baseParts.concat(name);
  106013. //start trimDots
  106014. for (i = 0; i < name.length; i += 1) {
  106015. part = name[i];
  106016. if (part === ".") {
  106017. name.splice(i, 1);
  106018. i -= 1;
  106019. } else if (part === "..") {
  106020. if (i === 1 && (name[2] === '..' || name[0] === '..')) {
  106021. //End of the line. Keep at least one non-dot
  106022. //path segment at the front so it can be mapped
  106023. //correctly to disk. Otherwise, there is likely
  106024. //no path mapping for a path starting with '..'.
  106025. //This can still fail, but catches the most reasonable
  106026. //uses of ..
  106027. break;
  106028. } else if (i > 0) {
  106029. name.splice(i - 1, 2);
  106030. i -= 2;
  106031. }
  106032. }
  106033. }
  106034. //end trimDots
  106035. name = name.join("/");
  106036. } else if (name.indexOf('./') === 0) {
  106037. // No baseName, so this is ID is resolved relative
  106038. // to baseUrl, pull off the leading dot.
  106039. name = name.substring(2);
  106040. }
  106041. }
  106042. //Apply map config if available.
  106043. if ((baseParts || starMap) && map) {
  106044. nameParts = name.split('/');
  106045. for (i = nameParts.length; i > 0; i -= 1) {
  106046. nameSegment = nameParts.slice(0, i).join("/");
  106047. if (baseParts) {
  106048. //Find the longest baseName segment match in the config.
  106049. //So, do joins on the biggest to smallest lengths of baseParts.
  106050. for (j = baseParts.length; j > 0; j -= 1) {
  106051. mapValue = map[baseParts.slice(0, j).join('/')];
  106052. //baseName segment has config, find if it has one for
  106053. //this name.
  106054. if (mapValue) {
  106055. mapValue = mapValue[nameSegment];
  106056. if (mapValue) {
  106057. //Match, update name to the new value.
  106058. foundMap = mapValue;
  106059. foundI = i;
  106060. break;
  106061. }
  106062. }
  106063. }
  106064. }
  106065. if (foundMap) {
  106066. break;
  106067. }
  106068. //Check for a star map match, but just hold on to it,
  106069. //if there is a shorter segment match later in a matching
  106070. //config, then favor over this star map.
  106071. if (!foundStarMap && starMap && starMap[nameSegment]) {
  106072. foundStarMap = starMap[nameSegment];
  106073. starI = i;
  106074. }
  106075. }
  106076. if (!foundMap && foundStarMap) {
  106077. foundMap = foundStarMap;
  106078. foundI = starI;
  106079. }
  106080. if (foundMap) {
  106081. nameParts.splice(0, foundI, foundMap);
  106082. name = nameParts.join('/');
  106083. }
  106084. }
  106085. return name;
  106086. }
  106087. function makeRequire(relName, forceSync) {
  106088. return function () {
  106089. //A version of a require function that passes a moduleName
  106090. //value for items that may need to
  106091. //look up paths relative to the moduleName
  106092. return req.apply(undef, aps.call(arguments, 0).concat([relName, forceSync]));
  106093. };
  106094. }
  106095. function makeNormalize(relName) {
  106096. return function (name) {
  106097. return normalize(name, relName);
  106098. };
  106099. }
  106100. function makeLoad(depName) {
  106101. return function (value) {
  106102. defined[depName] = value;
  106103. };
  106104. }
  106105. function callDep(name) {
  106106. if (hasProp(waiting, name)) {
  106107. var args = waiting[name];
  106108. delete waiting[name];
  106109. defining[name] = true;
  106110. main.apply(undef, args);
  106111. }
  106112. if (!hasProp(defined, name) && !hasProp(defining, name)) {
  106113. throw new Error('No ' + name);
  106114. }
  106115. return defined[name];
  106116. }
  106117. //Turns a plugin!resource to [plugin, resource]
  106118. //with the plugin being undefined if the name
  106119. //did not have a plugin prefix.
  106120. function splitPrefix(name) {
  106121. var prefix,
  106122. index = name ? name.indexOf('!') : -1;
  106123. if (index > -1) {
  106124. prefix = name.substring(0, index);
  106125. name = name.substring(index + 1, name.length);
  106126. }
  106127. return [prefix, name];
  106128. }
  106129. /**
  106130. * Makes a name map, normalizing the name, and using a plugin
  106131. * for normalization if necessary. Grabs a ref to plugin
  106132. * too, as an optimization.
  106133. */
  106134. makeMap = function (name, relName) {
  106135. var plugin,
  106136. parts = splitPrefix(name),
  106137. prefix = parts[0];
  106138. name = parts[1];
  106139. if (prefix) {
  106140. prefix = normalize(prefix, relName);
  106141. plugin = callDep(prefix);
  106142. }
  106143. //Normalize according
  106144. if (prefix) {
  106145. if (plugin && plugin.normalize) {
  106146. name = plugin.normalize(name, makeNormalize(relName));
  106147. } else {
  106148. name = normalize(name, relName);
  106149. }
  106150. } else {
  106151. name = normalize(name, relName);
  106152. parts = splitPrefix(name);
  106153. prefix = parts[0];
  106154. name = parts[1];
  106155. if (prefix) {
  106156. plugin = callDep(prefix);
  106157. }
  106158. }
  106159. //Using ridiculous property names for space reasons
  106160. return {
  106161. f: prefix ? prefix + '!' + name : name, //fullName
  106162. n: name,
  106163. pr: prefix,
  106164. p: plugin
  106165. };
  106166. };
  106167. function makeConfig(name) {
  106168. return function () {
  106169. return (config && config.config && config.config[name]) || {};
  106170. };
  106171. }
  106172. handlers = {
  106173. require: function (name) {
  106174. return makeRequire(name);
  106175. },
  106176. exports: function (name) {
  106177. var e = defined[name];
  106178. if (typeof e !== 'undefined') {
  106179. return e;
  106180. } else {
  106181. return (defined[name] = {});
  106182. }
  106183. },
  106184. module: function (name) {
  106185. return {
  106186. id: name,
  106187. uri: '',
  106188. exports: defined[name],
  106189. config: makeConfig(name)
  106190. };
  106191. }
  106192. };
  106193. main = function (name, deps, callback, relName) {
  106194. var cjsModule, depName, ret, map, i,
  106195. args = [],
  106196. callbackType = typeof callback,
  106197. usingExports;
  106198. //Use name if no relName
  106199. relName = relName || name;
  106200. //Call the callback to define the module, if necessary.
  106201. if (callbackType === 'undefined' || callbackType === 'function') {
  106202. //Pull out the defined dependencies and pass the ordered
  106203. //values to the callback.
  106204. //Default to [require, exports, module] if no deps
  106205. deps = !deps.length && callback.length ? ['require', 'exports', 'module'] : deps;
  106206. for (i = 0; i < deps.length; i += 1) {
  106207. map = makeMap(deps[i], relName);
  106208. depName = map.f;
  106209. //Fast path CommonJS standard dependencies.
  106210. if (depName === "require") {
  106211. args[i] = handlers.require(name);
  106212. } else if (depName === "exports") {
  106213. //CommonJS module spec 1.1
  106214. args[i] = handlers.exports(name);
  106215. usingExports = true;
  106216. } else if (depName === "module") {
  106217. //CommonJS module spec 1.1
  106218. cjsModule = args[i] = handlers.module(name);
  106219. } else if (hasProp(defined, depName) ||
  106220. hasProp(waiting, depName) ||
  106221. hasProp(defining, depName)) {
  106222. args[i] = callDep(depName);
  106223. } else if (map.p) {
  106224. map.p.load(map.n, makeRequire(relName, true), makeLoad(depName), {});
  106225. args[i] = defined[depName];
  106226. } else {
  106227. throw new Error(name + ' missing ' + depName);
  106228. }
  106229. }
  106230. ret = callback ? callback.apply(defined[name], args) : undefined;
  106231. if (name) {
  106232. //If setting exports via "module" is in play,
  106233. //favor that over return value and exports. After that,
  106234. //favor a non-undefined return value over exports use.
  106235. if (cjsModule && cjsModule.exports !== undef &&
  106236. cjsModule.exports !== defined[name]) {
  106237. defined[name] = cjsModule.exports;
  106238. } else if (ret !== undef || !usingExports) {
  106239. //Use the return value from the function.
  106240. defined[name] = ret;
  106241. }
  106242. }
  106243. } else if (name) {
  106244. //May just be an object definition for the module. Only
  106245. //worry about defining if have a module name.
  106246. defined[name] = callback;
  106247. }
  106248. };
  106249. requirejs = require = req = function (deps, callback, relName, forceSync, alt) {
  106250. if (typeof deps === "string") {
  106251. if (handlers[deps]) {
  106252. //callback in this case is really relName
  106253. return handlers[deps](callback);
  106254. }
  106255. //Just return the module wanted. In this scenario, the
  106256. //deps arg is the module name, and second arg (if passed)
  106257. //is just the relName.
  106258. //Normalize module name, if it contains . or ..
  106259. return callDep(makeMap(deps, callback).f);
  106260. } else if (!deps.splice) {
  106261. //deps is a config object, not an array.
  106262. config = deps;
  106263. if (config.deps) {
  106264. req(config.deps, config.callback);
  106265. }
  106266. if (!callback) {
  106267. return;
  106268. }
  106269. if (callback.splice) {
  106270. //callback is an array, which means it is a dependency list.
  106271. //Adjust args if there are dependencies
  106272. deps = callback;
  106273. callback = relName;
  106274. relName = null;
  106275. } else {
  106276. deps = undef;
  106277. }
  106278. }
  106279. //Support require(['a'])
  106280. callback = callback || function () {};
  106281. //If relName is a function, it is an errback handler,
  106282. //so remove it.
  106283. if (typeof relName === 'function') {
  106284. relName = forceSync;
  106285. forceSync = alt;
  106286. }
  106287. //Simulate async callback;
  106288. if (forceSync) {
  106289. main(undef, deps, callback, relName);
  106290. } else {
  106291. //Using a non-zero value because of concern for what old browsers
  106292. //do, and latest browsers "upgrade" to 4 if lower value is used:
  106293. //http://www.whatwg.org/specs/web-apps/current-work/multipage/timers.html#dom-windowtimers-settimeout:
  106294. //If want a value immediately, use require('id') instead -- something
  106295. //that works in almond on the global level, but not guaranteed and
  106296. //unlikely to work in other AMD implementations.
  106297. setTimeout(function () {
  106298. main(undef, deps, callback, relName);
  106299. }, 4);
  106300. }
  106301. return req;
  106302. };
  106303. /**
  106304. * Just drops the config on the floor, but returns req in case
  106305. * the config return value is used.
  106306. */
  106307. req.config = function (cfg) {
  106308. return req(cfg);
  106309. };
  106310. /**
  106311. * Expose module registry for debugging and tooling
  106312. */
  106313. requirejs._defined = defined;
  106314. define = function (name, deps, callback) {
  106315. //This module may not have dependencies
  106316. if (!deps.splice) {
  106317. //deps is not an array, so probably means
  106318. //an object literal or factory function for
  106319. //the value. Adjust args.
  106320. callback = deps;
  106321. deps = [];
  106322. }
  106323. if (!hasProp(defined, name) && !hasProp(waiting, name)) {
  106324. waiting[name] = [name, deps, callback];
  106325. }
  106326. };
  106327. define.amd = {
  106328. jQuery: true
  106329. };
  106330. }());
  106331. S2.requirejs = requirejs;S2.require = require;S2.define = define;
  106332. }
  106333. }());
  106334. S2.define("almond", function(){});
  106335. /* global jQuery:false, $:false */
  106336. S2.define('jquery',[],function () {
  106337. var _$ = jQuery || $;
  106338. if (_$ == null && console && console.error) {
  106339. console.error(
  106340. 'Select2: An instance of jQuery or a jQuery-compatible library was not ' +
  106341. 'found. Make sure that you are including jQuery before Select2 on your ' +
  106342. 'web page.'
  106343. );
  106344. }
  106345. return _$;
  106346. });
  106347. S2.define('select2/utils',[
  106348. 'jquery'
  106349. ], function ($) {
  106350. var Utils = {};
  106351. Utils.Extend = function (ChildClass, SuperClass) {
  106352. var __hasProp = {}.hasOwnProperty;
  106353. function BaseConstructor () {
  106354. this.constructor = ChildClass;
  106355. }
  106356. for (var key in SuperClass) {
  106357. if (__hasProp.call(SuperClass, key)) {
  106358. ChildClass[key] = SuperClass[key];
  106359. }
  106360. }
  106361. BaseConstructor.prototype = SuperClass.prototype;
  106362. ChildClass.prototype = new BaseConstructor();
  106363. ChildClass.__super__ = SuperClass.prototype;
  106364. return ChildClass;
  106365. };
  106366. function getMethods (theClass) {
  106367. var proto = theClass.prototype;
  106368. var methods = [];
  106369. for (var methodName in proto) {
  106370. var m = proto[methodName];
  106371. if (typeof m !== 'function') {
  106372. continue;
  106373. }
  106374. if (methodName === 'constructor') {
  106375. continue;
  106376. }
  106377. methods.push(methodName);
  106378. }
  106379. return methods;
  106380. }
  106381. Utils.Decorate = function (SuperClass, DecoratorClass) {
  106382. var decoratedMethods = getMethods(DecoratorClass);
  106383. var superMethods = getMethods(SuperClass);
  106384. function DecoratedClass () {
  106385. var unshift = Array.prototype.unshift;
  106386. var argCount = DecoratorClass.prototype.constructor.length;
  106387. var calledConstructor = SuperClass.prototype.constructor;
  106388. if (argCount > 0) {
  106389. unshift.call(arguments, SuperClass.prototype.constructor);
  106390. calledConstructor = DecoratorClass.prototype.constructor;
  106391. }
  106392. calledConstructor.apply(this, arguments);
  106393. }
  106394. DecoratorClass.displayName = SuperClass.displayName;
  106395. function ctr () {
  106396. this.constructor = DecoratedClass;
  106397. }
  106398. DecoratedClass.prototype = new ctr();
  106399. for (var m = 0; m < superMethods.length; m++) {
  106400. var superMethod = superMethods[m];
  106401. DecoratedClass.prototype[superMethod] =
  106402. SuperClass.prototype[superMethod];
  106403. }
  106404. var calledMethod = function (methodName) {
  106405. // Stub out the original method if it's not decorating an actual method
  106406. var originalMethod = function () {};
  106407. if (methodName in DecoratedClass.prototype) {
  106408. originalMethod = DecoratedClass.prototype[methodName];
  106409. }
  106410. var decoratedMethod = DecoratorClass.prototype[methodName];
  106411. return function () {
  106412. var unshift = Array.prototype.unshift;
  106413. unshift.call(arguments, originalMethod);
  106414. return decoratedMethod.apply(this, arguments);
  106415. };
  106416. };
  106417. for (var d = 0; d < decoratedMethods.length; d++) {
  106418. var decoratedMethod = decoratedMethods[d];
  106419. DecoratedClass.prototype[decoratedMethod] = calledMethod(decoratedMethod);
  106420. }
  106421. return DecoratedClass;
  106422. };
  106423. var Observable = function () {
  106424. this.listeners = {};
  106425. };
  106426. Observable.prototype.on = function (event, callback) {
  106427. this.listeners = this.listeners || {};
  106428. if (event in this.listeners) {
  106429. this.listeners[event].push(callback);
  106430. } else {
  106431. this.listeners[event] = [callback];
  106432. }
  106433. };
  106434. Observable.prototype.trigger = function (event) {
  106435. var slice = Array.prototype.slice;
  106436. this.listeners = this.listeners || {};
  106437. if (event in this.listeners) {
  106438. this.invoke(this.listeners[event], slice.call(arguments, 1));
  106439. }
  106440. if ('*' in this.listeners) {
  106441. this.invoke(this.listeners['*'], arguments);
  106442. }
  106443. };
  106444. Observable.prototype.invoke = function (listeners, params) {
  106445. for (var i = 0, len = listeners.length; i < len; i++) {
  106446. listeners[i].apply(this, params);
  106447. }
  106448. };
  106449. Utils.Observable = Observable;
  106450. Utils.generateChars = function (length) {
  106451. var chars = '';
  106452. for (var i = 0; i < length; i++) {
  106453. var randomChar = Math.floor(Math.random() * 36);
  106454. chars += randomChar.toString(36);
  106455. }
  106456. return chars;
  106457. };
  106458. Utils.bind = function (func, context) {
  106459. return function () {
  106460. func.apply(context, arguments);
  106461. };
  106462. };
  106463. Utils._convertData = function (data) {
  106464. for (var originalKey in data) {
  106465. var keys = originalKey.split('-');
  106466. var dataLevel = data;
  106467. if (keys.length === 1) {
  106468. continue;
  106469. }
  106470. for (var k = 0; k < keys.length; k++) {
  106471. var key = keys[k];
  106472. // Lowercase the first letter
  106473. // By default, dash-separated becomes camelCase
  106474. key = key.substring(0, 1).toLowerCase() + key.substring(1);
  106475. if (!(key in dataLevel)) {
  106476. dataLevel[key] = {};
  106477. }
  106478. if (k == keys.length - 1) {
  106479. dataLevel[key] = data[originalKey];
  106480. }
  106481. dataLevel = dataLevel[key];
  106482. }
  106483. delete data[originalKey];
  106484. }
  106485. return data;
  106486. };
  106487. Utils.hasScroll = function (index, el) {
  106488. // Adapted from the function created by @ShadowScripter
  106489. // and adapted by @BillBarry on the Stack Exchange Code Review website.
  106490. // The original code can be found at
  106491. // http://codereview.stackexchange.com/q/13338
  106492. // and was designed to be used with the Sizzle selector engine.
  106493. var $el = $(el);
  106494. var overflowX = el.style.overflowX;
  106495. var overflowY = el.style.overflowY;
  106496. //Check both x and y declarations
  106497. if (overflowX === overflowY &&
  106498. (overflowY === 'hidden' || overflowY === 'visible')) {
  106499. return false;
  106500. }
  106501. if (overflowX === 'scroll' || overflowY === 'scroll') {
  106502. return true;
  106503. }
  106504. return ($el.innerHeight() < el.scrollHeight ||
  106505. $el.innerWidth() < el.scrollWidth);
  106506. };
  106507. Utils.escapeMarkup = function (markup) {
  106508. var replaceMap = {
  106509. '\\': '&#92;',
  106510. '&': '&amp;',
  106511. '<': '&lt;',
  106512. '>': '&gt;',
  106513. '"': '&quot;',
  106514. '\'': '&#39;',
  106515. '/': '&#47;'
  106516. };
  106517. // Do not try to escape the markup if it's not a string
  106518. if (typeof markup !== 'string') {
  106519. return markup;
  106520. }
  106521. return String(markup).replace(/[&<>"'\/\\]/g, function (match) {
  106522. return replaceMap[match];
  106523. });
  106524. };
  106525. // Append an array of jQuery nodes to a given element.
  106526. Utils.appendMany = function ($element, $nodes) {
  106527. // jQuery 1.7.x does not support $.fn.append() with an array
  106528. // Fall back to a jQuery object collection using $.fn.add()
  106529. if ($.fn.jquery.substr(0, 3) === '1.7') {
  106530. var $jqNodes = $();
  106531. $.map($nodes, function (node) {
  106532. $jqNodes = $jqNodes.add(node);
  106533. });
  106534. $nodes = $jqNodes;
  106535. }
  106536. $element.append($nodes);
  106537. };
  106538. return Utils;
  106539. });
  106540. S2.define('select2/results',[
  106541. 'jquery',
  106542. './utils'
  106543. ], function ($, Utils) {
  106544. function Results ($element, options, dataAdapter) {
  106545. this.$element = $element;
  106546. this.data = dataAdapter;
  106547. this.options = options;
  106548. Results.__super__.constructor.call(this);
  106549. }
  106550. Utils.Extend(Results, Utils.Observable);
  106551. Results.prototype.render = function () {
  106552. var $results = $(
  106553. '<ul class="select2-results__options" role="tree"></ul>'
  106554. );
  106555. if (this.options.get('multiple')) {
  106556. $results.attr('aria-multiselectable', 'true');
  106557. }
  106558. this.$results = $results;
  106559. return $results;
  106560. };
  106561. Results.prototype.clear = function () {
  106562. this.$results.empty();
  106563. };
  106564. Results.prototype.displayMessage = function (params) {
  106565. var escapeMarkup = this.options.get('escapeMarkup');
  106566. this.clear();
  106567. this.hideLoading();
  106568. var $message = $(
  106569. '<li role="treeitem" class="select2-results__option"></li>'
  106570. );
  106571. var message = this.options.get('translations').get(params.message);
  106572. $message.append(
  106573. escapeMarkup(
  106574. message(params.args)
  106575. )
  106576. );
  106577. this.$results.append($message);
  106578. };
  106579. Results.prototype.append = function (data) {
  106580. this.hideLoading();
  106581. var $options = [];
  106582. if (data.results == null || data.results.length === 0) {
  106583. if (this.$results.children().length === 0) {
  106584. this.trigger('results:message', {
  106585. message: 'noResults'
  106586. });
  106587. }
  106588. return;
  106589. }
  106590. data.results = this.sort(data.results);
  106591. for (var d = 0; d < data.results.length; d++) {
  106592. var item = data.results[d];
  106593. var $option = this.option(item);
  106594. $options.push($option);
  106595. }
  106596. this.$results.append($options);
  106597. };
  106598. Results.prototype.position = function ($results, $dropdown) {
  106599. var $resultsContainer = $dropdown.find('.select2-results');
  106600. $resultsContainer.append($results);
  106601. };
  106602. Results.prototype.sort = function (data) {
  106603. var sorter = this.options.get('sorter');
  106604. return sorter(data);
  106605. };
  106606. Results.prototype.setClasses = function () {
  106607. var self = this;
  106608. this.data.current(function (selected) {
  106609. var selectedIds = $.map(selected, function (s) {
  106610. return s.id.toString();
  106611. });
  106612. var $options = self.$results
  106613. .find('.select2-results__option[aria-selected]');
  106614. $options.each(function () {
  106615. var $option = $(this);
  106616. var item = $.data(this, 'data');
  106617. // id needs to be converted to a string when comparing
  106618. var id = '' + item.id;
  106619. if ((item.element != null && item.element.selected) ||
  106620. (item.element == null && $.inArray(id, selectedIds) > -1)) {
  106621. $option.attr('aria-selected', 'true');
  106622. } else {
  106623. $option.attr('aria-selected', 'false');
  106624. }
  106625. });
  106626. var $selected = $options.filter('[aria-selected=true]');
  106627. // Check if there are any selected options
  106628. if ($selected.length > 0) {
  106629. // If there are selected options, highlight the first
  106630. $selected.first().trigger('mouseenter');
  106631. } else {
  106632. // If there are no selected options, highlight the first option
  106633. // in the dropdown
  106634. $options.first().trigger('mouseenter');
  106635. }
  106636. });
  106637. };
  106638. Results.prototype.showLoading = function (params) {
  106639. this.hideLoading();
  106640. var loadingMore = this.options.get('translations').get('searching');
  106641. var loading = {
  106642. disabled: true,
  106643. loading: true,
  106644. text: loadingMore(params)
  106645. };
  106646. var $loading = this.option(loading);
  106647. $loading.className += ' loading-results';
  106648. this.$results.prepend($loading);
  106649. };
  106650. Results.prototype.hideLoading = function () {
  106651. this.$results.find('.loading-results').remove();
  106652. };
  106653. Results.prototype.option = function (data) {
  106654. var option = document.createElement('li');
  106655. option.className = 'select2-results__option';
  106656. var attrs = {
  106657. 'role': 'treeitem',
  106658. 'aria-selected': 'false'
  106659. };
  106660. if (data.disabled) {
  106661. delete attrs['aria-selected'];
  106662. attrs['aria-disabled'] = 'true';
  106663. }
  106664. if (data.id == null) {
  106665. delete attrs['aria-selected'];
  106666. }
  106667. if (data._resultId != null) {
  106668. option.id = data._resultId;
  106669. }
  106670. if (data.title) {
  106671. option.title = data.title;
  106672. }
  106673. if (data.children) {
  106674. attrs.role = 'group';
  106675. attrs['aria-label'] = data.text;
  106676. delete attrs['aria-selected'];
  106677. }
  106678. for (var attr in attrs) {
  106679. var val = attrs[attr];
  106680. option.setAttribute(attr, val);
  106681. }
  106682. if (data.children) {
  106683. var $option = $(option);
  106684. var label = document.createElement('strong');
  106685. label.className = 'select2-results__group';
  106686. var $label = $(label);
  106687. this.template(data, label);
  106688. var $children = [];
  106689. for (var c = 0; c < data.children.length; c++) {
  106690. var child = data.children[c];
  106691. var $child = this.option(child);
  106692. $children.push($child);
  106693. }
  106694. var $childrenContainer = $('<ul></ul>', {
  106695. 'class': 'select2-results__options select2-results__options--nested'
  106696. });
  106697. $childrenContainer.append($children);
  106698. $option.append(label);
  106699. $option.append($childrenContainer);
  106700. } else {
  106701. this.template(data, option);
  106702. }
  106703. $.data(option, 'data', data);
  106704. return option;
  106705. };
  106706. Results.prototype.bind = function (container, $container) {
  106707. var self = this;
  106708. var id = container.id + '-results';
  106709. this.$results.attr('id', id);
  106710. container.on('results:all', function (params) {
  106711. self.clear();
  106712. self.append(params.data);
  106713. if (container.isOpen()) {
  106714. self.setClasses();
  106715. }
  106716. });
  106717. container.on('results:append', function (params) {
  106718. self.append(params.data);
  106719. if (container.isOpen()) {
  106720. self.setClasses();
  106721. }
  106722. });
  106723. container.on('query', function (params) {
  106724. self.showLoading(params);
  106725. });
  106726. container.on('select', function () {
  106727. if (!container.isOpen()) {
  106728. return;
  106729. }
  106730. self.setClasses();
  106731. });
  106732. container.on('unselect', function () {
  106733. if (!container.isOpen()) {
  106734. return;
  106735. }
  106736. self.setClasses();
  106737. });
  106738. container.on('open', function () {
  106739. // When the dropdown is open, aria-expended="true"
  106740. self.$results.attr('aria-expanded', 'true');
  106741. self.$results.attr('aria-hidden', 'false');
  106742. self.setClasses();
  106743. self.ensureHighlightVisible();
  106744. });
  106745. container.on('close', function () {
  106746. // When the dropdown is closed, aria-expended="false"
  106747. self.$results.attr('aria-expanded', 'false');
  106748. self.$results.attr('aria-hidden', 'true');
  106749. self.$results.removeAttr('aria-activedescendant');
  106750. });
  106751. container.on('results:toggle', function () {
  106752. var $highlighted = self.getHighlightedResults();
  106753. if ($highlighted.length === 0) {
  106754. return;
  106755. }
  106756. $highlighted.trigger('mouseup');
  106757. });
  106758. container.on('results:select', function () {
  106759. var $highlighted = self.getHighlightedResults();
  106760. if ($highlighted.length === 0) {
  106761. return;
  106762. }
  106763. var data = $highlighted.data('data');
  106764. if ($highlighted.attr('aria-selected') == 'true') {
  106765. self.trigger('close');
  106766. } else {
  106767. self.trigger('select', {
  106768. data: data
  106769. });
  106770. }
  106771. });
  106772. container.on('results:previous', function () {
  106773. var $highlighted = self.getHighlightedResults();
  106774. var $options = self.$results.find('[aria-selected]');
  106775. var currentIndex = $options.index($highlighted);
  106776. // If we are already at te top, don't move further
  106777. if (currentIndex === 0) {
  106778. return;
  106779. }
  106780. var nextIndex = currentIndex - 1;
  106781. // If none are highlighted, highlight the first
  106782. if ($highlighted.length === 0) {
  106783. nextIndex = 0;
  106784. }
  106785. var $next = $options.eq(nextIndex);
  106786. $next.trigger('mouseenter');
  106787. var currentOffset = self.$results.offset().top;
  106788. var nextTop = $next.offset().top;
  106789. var nextOffset = self.$results.scrollTop() + (nextTop - currentOffset);
  106790. if (nextIndex === 0) {
  106791. self.$results.scrollTop(0);
  106792. } else if (nextTop - currentOffset < 0) {
  106793. self.$results.scrollTop(nextOffset);
  106794. }
  106795. });
  106796. container.on('results:next', function () {
  106797. var $highlighted = self.getHighlightedResults();
  106798. var $options = self.$results.find('[aria-selected]');
  106799. var currentIndex = $options.index($highlighted);
  106800. var nextIndex = currentIndex + 1;
  106801. // If we are at the last option, stay there
  106802. if (nextIndex >= $options.length) {
  106803. return;
  106804. }
  106805. var $next = $options.eq(nextIndex);
  106806. $next.trigger('mouseenter');
  106807. var currentOffset = self.$results.offset().top +
  106808. self.$results.outerHeight(false);
  106809. var nextBottom = $next.offset().top + $next.outerHeight(false);
  106810. var nextOffset = self.$results.scrollTop() + nextBottom - currentOffset;
  106811. if (nextIndex === 0) {
  106812. self.$results.scrollTop(0);
  106813. } else if (nextBottom > currentOffset) {
  106814. self.$results.scrollTop(nextOffset);
  106815. }
  106816. });
  106817. container.on('results:focus', function (params) {
  106818. params.element.addClass('select2-results__option--highlighted');
  106819. });
  106820. container.on('results:message', function (params) {
  106821. self.displayMessage(params);
  106822. });
  106823. if ($.fn.mousewheel) {
  106824. this.$results.on('mousewheel', function (e) {
  106825. var top = self.$results.scrollTop();
  106826. var bottom = (
  106827. self.$results.get(0).scrollHeight -
  106828. self.$results.scrollTop() +
  106829. e.deltaY
  106830. );
  106831. var isAtTop = e.deltaY > 0 && top - e.deltaY <= 0;
  106832. var isAtBottom = e.deltaY < 0 && bottom <= self.$results.height();
  106833. if (isAtTop) {
  106834. self.$results.scrollTop(0);
  106835. e.preventDefault();
  106836. e.stopPropagation();
  106837. } else if (isAtBottom) {
  106838. self.$results.scrollTop(
  106839. self.$results.get(0).scrollHeight - self.$results.height()
  106840. );
  106841. e.preventDefault();
  106842. e.stopPropagation();
  106843. }
  106844. });
  106845. }
  106846. this.$results.on('mouseup', '.select2-results__option[aria-selected]',
  106847. function (evt) {
  106848. var $this = $(this);
  106849. var data = $this.data('data');
  106850. if ($this.attr('aria-selected') === 'true') {
  106851. if (self.options.get('multiple')) {
  106852. self.trigger('unselect', {
  106853. originalEvent: evt,
  106854. data: data
  106855. });
  106856. } else {
  106857. self.trigger('close');
  106858. }
  106859. return;
  106860. }
  106861. self.trigger('select', {
  106862. originalEvent: evt,
  106863. data: data
  106864. });
  106865. });
  106866. this.$results.on('mouseenter', '.select2-results__option[aria-selected]',
  106867. function (evt) {
  106868. var data = $(this).data('data');
  106869. self.getHighlightedResults()
  106870. .removeClass('select2-results__option--highlighted');
  106871. self.trigger('results:focus', {
  106872. data: data,
  106873. element: $(this)
  106874. });
  106875. });
  106876. };
  106877. Results.prototype.getHighlightedResults = function () {
  106878. var $highlighted = this.$results
  106879. .find('.select2-results__option--highlighted');
  106880. return $highlighted;
  106881. };
  106882. Results.prototype.destroy = function () {
  106883. this.$results.remove();
  106884. };
  106885. Results.prototype.ensureHighlightVisible = function () {
  106886. var $highlighted = this.getHighlightedResults();
  106887. if ($highlighted.length === 0) {
  106888. return;
  106889. }
  106890. var $options = this.$results.find('[aria-selected]');
  106891. var currentIndex = $options.index($highlighted);
  106892. var currentOffset = this.$results.offset().top;
  106893. var nextTop = $highlighted.offset().top;
  106894. var nextOffset = this.$results.scrollTop() + (nextTop - currentOffset);
  106895. var offsetDelta = nextTop - currentOffset;
  106896. nextOffset -= $highlighted.outerHeight(false) * 2;
  106897. if (currentIndex <= 2) {
  106898. this.$results.scrollTop(0);
  106899. } else if (offsetDelta > this.$results.outerHeight() || offsetDelta < 0) {
  106900. this.$results.scrollTop(nextOffset);
  106901. }
  106902. };
  106903. Results.prototype.template = function (result, container) {
  106904. var template = this.options.get('templateResult');
  106905. var escapeMarkup = this.options.get('escapeMarkup');
  106906. var content = template(result);
  106907. if (content == null) {
  106908. container.style.display = 'none';
  106909. } else if (typeof content === 'string') {
  106910. container.innerHTML = escapeMarkup(content);
  106911. } else {
  106912. $(container).append(content);
  106913. }
  106914. };
  106915. return Results;
  106916. });
  106917. S2.define('select2/keys',[
  106918. ], function () {
  106919. var KEYS = {
  106920. BACKSPACE: 8,
  106921. TAB: 9,
  106922. ENTER: 13,
  106923. SHIFT: 16,
  106924. CTRL: 17,
  106925. ALT: 18,
  106926. ESC: 27,
  106927. SPACE: 32,
  106928. PAGE_UP: 33,
  106929. PAGE_DOWN: 34,
  106930. END: 35,
  106931. HOME: 36,
  106932. LEFT: 37,
  106933. UP: 38,
  106934. RIGHT: 39,
  106935. DOWN: 40,
  106936. DELETE: 46
  106937. };
  106938. return KEYS;
  106939. });
  106940. S2.define('select2/selection/base',[
  106941. 'jquery',
  106942. '../utils',
  106943. '../keys'
  106944. ], function ($, Utils, KEYS) {
  106945. function BaseSelection ($element, options) {
  106946. this.$element = $element;
  106947. this.options = options;
  106948. BaseSelection.__super__.constructor.call(this);
  106949. }
  106950. Utils.Extend(BaseSelection, Utils.Observable);
  106951. BaseSelection.prototype.render = function () {
  106952. var $selection = $(
  106953. '<span class="select2-selection" role="combobox" ' +
  106954. 'aria-autocomplete="list" aria-haspopup="true" aria-expanded="false">' +
  106955. '</span>'
  106956. );
  106957. this._tabindex = 0;
  106958. if (this.$element.data('old-tabindex') != null) {
  106959. this._tabindex = this.$element.data('old-tabindex');
  106960. } else if (this.$element.attr('tabindex') != null) {
  106961. this._tabindex = this.$element.attr('tabindex');
  106962. }
  106963. $selection.attr('title', this.$element.attr('title'));
  106964. $selection.attr('tabindex', this._tabindex);
  106965. this.$selection = $selection;
  106966. return $selection;
  106967. };
  106968. BaseSelection.prototype.bind = function (container, $container) {
  106969. var self = this;
  106970. var id = container.id + '-container';
  106971. var resultsId = container.id + '-results';
  106972. this.container = container;
  106973. this.$selection.on('focus', function (evt) {
  106974. self.trigger('focus', evt);
  106975. });
  106976. this.$selection.on('blur', function (evt) {
  106977. self.trigger('blur', evt);
  106978. });
  106979. this.$selection.on('keydown', function (evt) {
  106980. self.trigger('keypress', evt);
  106981. if (evt.which === KEYS.SPACE) {
  106982. evt.preventDefault();
  106983. }
  106984. });
  106985. container.on('results:focus', function (params) {
  106986. self.$selection.attr('aria-activedescendant', params.data._resultId);
  106987. });
  106988. container.on('selection:update', function (params) {
  106989. self.update(params.data);
  106990. });
  106991. container.on('open', function () {
  106992. // When the dropdown is open, aria-expanded="true"
  106993. self.$selection.attr('aria-expanded', 'true');
  106994. self.$selection.attr('aria-owns', resultsId);
  106995. self._attachCloseHandler(container);
  106996. });
  106997. container.on('close', function () {
  106998. // When the dropdown is closed, aria-expanded="false"
  106999. self.$selection.attr('aria-expanded', 'false');
  107000. self.$selection.removeAttr('aria-activedescendant');
  107001. self.$selection.removeAttr('aria-owns');
  107002. self.$selection.focus();
  107003. self._detachCloseHandler(container);
  107004. });
  107005. container.on('enable', function () {
  107006. self.$selection.attr('tabindex', self._tabindex);
  107007. });
  107008. container.on('disable', function () {
  107009. self.$selection.attr('tabindex', '-1');
  107010. });
  107011. };
  107012. BaseSelection.prototype._attachCloseHandler = function (container) {
  107013. var self = this;
  107014. $(document.body).on('mousedown.select2.' + container.id, function (e) {
  107015. var $target = $(e.target);
  107016. var $select = $target.closest('.select2');
  107017. var $all = $('.select2.select2-container--open');
  107018. $all.each(function () {
  107019. var $this = $(this);
  107020. if (this == $select[0]) {
  107021. return;
  107022. }
  107023. var $element = $this.data('element');
  107024. $element.select2('close');
  107025. });
  107026. });
  107027. };
  107028. BaseSelection.prototype._detachCloseHandler = function (container) {
  107029. $(document.body).off('mousedown.select2.' + container.id);
  107030. };
  107031. BaseSelection.prototype.position = function ($selection, $container) {
  107032. var $selectionContainer = $container.find('.selection');
  107033. $selectionContainer.append($selection);
  107034. };
  107035. BaseSelection.prototype.destroy = function () {
  107036. this._detachCloseHandler(this.container);
  107037. };
  107038. BaseSelection.prototype.update = function (data) {
  107039. throw new Error('The `update` method must be defined in child classes.');
  107040. };
  107041. return BaseSelection;
  107042. });
  107043. S2.define('select2/selection/single',[
  107044. 'jquery',
  107045. './base',
  107046. '../utils',
  107047. '../keys'
  107048. ], function ($, BaseSelection, Utils, KEYS) {
  107049. function SingleSelection () {
  107050. SingleSelection.__super__.constructor.apply(this, arguments);
  107051. }
  107052. Utils.Extend(SingleSelection, BaseSelection);
  107053. SingleSelection.prototype.render = function () {
  107054. var $selection = SingleSelection.__super__.render.call(this);
  107055. $selection.addClass('select2-selection--single');
  107056. $selection.html(
  107057. '<span class="select2-selection__rendered"></span>' +
  107058. '<span class="select2-selection__arrow" role="presentation">' +
  107059. '<b role="presentation"></b>' +
  107060. '</span>'
  107061. );
  107062. return $selection;
  107063. };
  107064. SingleSelection.prototype.bind = function (container, $container) {
  107065. var self = this;
  107066. SingleSelection.__super__.bind.apply(this, arguments);
  107067. var id = container.id + '-container';
  107068. this.$selection.find('.select2-selection__rendered').attr('id', id);
  107069. this.$selection.attr('aria-labelledby', id);
  107070. this.$selection.on('mousedown', function (evt) {
  107071. // Only respond to left clicks
  107072. if (evt.which !== 1) {
  107073. return;
  107074. }
  107075. self.trigger('toggle', {
  107076. originalEvent: evt
  107077. });
  107078. });
  107079. this.$selection.on('focus', function (evt) {
  107080. // User focuses on the container
  107081. });
  107082. this.$selection.on('blur', function (evt) {
  107083. // User exits the container
  107084. });
  107085. container.on('selection:update', function (params) {
  107086. self.update(params.data);
  107087. });
  107088. };
  107089. SingleSelection.prototype.clear = function () {
  107090. this.$selection.find('.select2-selection__rendered').empty();
  107091. };
  107092. SingleSelection.prototype.display = function (data) {
  107093. var template = this.options.get('templateSelection');
  107094. var escapeMarkup = this.options.get('escapeMarkup');
  107095. return escapeMarkup(template(data));
  107096. };
  107097. SingleSelection.prototype.selectionContainer = function () {
  107098. return $('<span></span>');
  107099. };
  107100. SingleSelection.prototype.update = function (data) {
  107101. if (data.length === 0) {
  107102. this.clear();
  107103. return;
  107104. }
  107105. var selection = data[0];
  107106. var formatted = this.display(selection);
  107107. var $rendered = this.$selection.find('.select2-selection__rendered');
  107108. $rendered.empty().append(formatted);
  107109. $rendered.prop('title', selection.title || selection.text);
  107110. };
  107111. return SingleSelection;
  107112. });
  107113. S2.define('select2/selection/multiple',[
  107114. 'jquery',
  107115. './base',
  107116. '../utils'
  107117. ], function ($, BaseSelection, Utils) {
  107118. function MultipleSelection ($element, options) {
  107119. MultipleSelection.__super__.constructor.apply(this, arguments);
  107120. }
  107121. Utils.Extend(MultipleSelection, BaseSelection);
  107122. MultipleSelection.prototype.render = function () {
  107123. var $selection = MultipleSelection.__super__.render.call(this);
  107124. $selection.addClass('select2-selection--multiple');
  107125. $selection.html(
  107126. '<ul class="select2-selection__rendered"></ul>'
  107127. );
  107128. return $selection;
  107129. };
  107130. MultipleSelection.prototype.bind = function (container, $container) {
  107131. var self = this;
  107132. MultipleSelection.__super__.bind.apply(this, arguments);
  107133. this.$selection.on('click', function (evt) {
  107134. self.trigger('toggle', {
  107135. originalEvent: evt
  107136. });
  107137. });
  107138. this.$selection.on('click', '.select2-selection__choice__remove',
  107139. function (evt) {
  107140. var $remove = $(this);
  107141. var $selection = $remove.parent();
  107142. var data = $selection.data('data');
  107143. self.trigger('unselect', {
  107144. originalEvent: evt,
  107145. data: data
  107146. });
  107147. });
  107148. };
  107149. MultipleSelection.prototype.clear = function () {
  107150. this.$selection.find('.select2-selection__rendered').empty();
  107151. };
  107152. MultipleSelection.prototype.display = function (data) {
  107153. var template = this.options.get('templateSelection');
  107154. var escapeMarkup = this.options.get('escapeMarkup');
  107155. return escapeMarkup(template(data));
  107156. };
  107157. MultipleSelection.prototype.selectionContainer = function () {
  107158. var $container = $(
  107159. '<li class="select2-selection__choice">' +
  107160. '<span class="select2-selection__choice__remove" role="presentation">' +
  107161. '&times;' +
  107162. '</span>' +
  107163. '</li>'
  107164. );
  107165. return $container;
  107166. };
  107167. MultipleSelection.prototype.update = function (data) {
  107168. this.clear();
  107169. if (data.length === 0) {
  107170. return;
  107171. }
  107172. var $selections = [];
  107173. for (var d = 0; d < data.length; d++) {
  107174. var selection = data[d];
  107175. var formatted = this.display(selection);
  107176. var $selection = this.selectionContainer();
  107177. $selection.append(formatted);
  107178. $selection.prop('title', selection.title || selection.text);
  107179. $selection.data('data', selection);
  107180. $selections.push($selection);
  107181. }
  107182. var $rendered = this.$selection.find('.select2-selection__rendered');
  107183. Utils.appendMany($rendered, $selections);
  107184. };
  107185. return MultipleSelection;
  107186. });
  107187. S2.define('select2/selection/placeholder',[
  107188. '../utils'
  107189. ], function (Utils) {
  107190. function Placeholder (decorated, $element, options) {
  107191. this.placeholder = this.normalizePlaceholder(options.get('placeholder'));
  107192. decorated.call(this, $element, options);
  107193. }
  107194. Placeholder.prototype.normalizePlaceholder = function (_, placeholder) {
  107195. if (typeof placeholder === 'string') {
  107196. placeholder = {
  107197. id: '',
  107198. text: placeholder
  107199. };
  107200. }
  107201. return placeholder;
  107202. };
  107203. Placeholder.prototype.createPlaceholder = function (decorated, placeholder) {
  107204. var $placeholder = this.selectionContainer();
  107205. $placeholder.html(this.display(placeholder));
  107206. $placeholder.addClass('select2-selection__placeholder')
  107207. .removeClass('select2-selection__choice');
  107208. return $placeholder;
  107209. };
  107210. Placeholder.prototype.update = function (decorated, data) {
  107211. var singlePlaceholder = (
  107212. data.length == 1 && data[0].id != this.placeholder.id
  107213. );
  107214. var multipleSelections = data.length > 1;
  107215. if (multipleSelections || singlePlaceholder) {
  107216. return decorated.call(this, data);
  107217. }
  107218. this.clear();
  107219. var $placeholder = this.createPlaceholder(this.placeholder);
  107220. this.$selection.find('.select2-selection__rendered').append($placeholder);
  107221. };
  107222. return Placeholder;
  107223. });
  107224. S2.define('select2/selection/allowClear',[
  107225. 'jquery',
  107226. '../keys'
  107227. ], function ($, KEYS) {
  107228. function AllowClear () { }
  107229. AllowClear.prototype.bind = function (decorated, container, $container) {
  107230. var self = this;
  107231. decorated.call(this, container, $container);
  107232. if (this.placeholder == null) {
  107233. if (this.options.get('debug') && window.console && console.error) {
  107234. console.error(
  107235. 'Select2: The `allowClear` option should be used in combination ' +
  107236. 'with the `placeholder` option.'
  107237. );
  107238. }
  107239. }
  107240. this.$selection.on('mousedown', '.select2-selection__clear',
  107241. function (evt) {
  107242. self._handleClear(evt);
  107243. });
  107244. container.on('keypress', function (evt) {
  107245. self._handleKeyboardClear(evt, container);
  107246. });
  107247. };
  107248. AllowClear.prototype._handleClear = function (_, evt) {
  107249. // Ignore the event if it is disabled
  107250. if (this.options.get('disabled')) {
  107251. return;
  107252. }
  107253. var $clear = this.$selection.find('.select2-selection__clear');
  107254. // Ignore the event if nothing has been selected
  107255. if ($clear.length === 0) {
  107256. return;
  107257. }
  107258. evt.stopPropagation();
  107259. var data = $clear.data('data');
  107260. for (var d = 0; d < data.length; d++) {
  107261. var unselectData = {
  107262. data: data[d]
  107263. };
  107264. // Trigger the `unselect` event, so people can prevent it from being
  107265. // cleared.
  107266. this.trigger('unselect', unselectData);
  107267. // If the event was prevented, don't clear it out.
  107268. if (unselectData.prevented) {
  107269. return;
  107270. }
  107271. }
  107272. this.$element.val(this.placeholder.id).trigger('change');
  107273. this.trigger('toggle');
  107274. };
  107275. AllowClear.prototype._handleKeyboardClear = function (_, evt, container) {
  107276. if (container.isOpen()) {
  107277. return;
  107278. }
  107279. if (evt.which == KEYS.DELETE || evt.which == KEYS.BACKSPACE) {
  107280. this._handleClear(evt);
  107281. }
  107282. };
  107283. AllowClear.prototype.update = function (decorated, data) {
  107284. decorated.call(this, data);
  107285. if (this.$selection.find('.select2-selection__placeholder').length > 0 ||
  107286. data.length === 0) {
  107287. return;
  107288. }
  107289. var $remove = $(
  107290. '<span class="select2-selection__clear">' +
  107291. '&times;' +
  107292. '</span>'
  107293. );
  107294. $remove.data('data', data);
  107295. this.$selection.find('.select2-selection__rendered').prepend($remove);
  107296. };
  107297. return AllowClear;
  107298. });
  107299. S2.define('select2/selection/search',[
  107300. 'jquery',
  107301. '../utils',
  107302. '../keys'
  107303. ], function ($, Utils, KEYS) {
  107304. function Search (decorated, $element, options) {
  107305. decorated.call(this, $element, options);
  107306. }
  107307. Search.prototype.render = function (decorated) {
  107308. var $search = $(
  107309. '<li class="select2-search select2-search--inline">' +
  107310. '<input class="select2-search__field" type="search" tabindex="-1"' +
  107311. ' autocomplete="off" autocorrect="off" autocapitalize="off"' +
  107312. ' spellcheck="false" role="textbox" />' +
  107313. '</li>'
  107314. );
  107315. this.$searchContainer = $search;
  107316. this.$search = $search.find('input');
  107317. var $rendered = decorated.call(this);
  107318. return $rendered;
  107319. };
  107320. Search.prototype.bind = function (decorated, container, $container) {
  107321. var self = this;
  107322. decorated.call(this, container, $container);
  107323. container.on('open', function () {
  107324. self.$search.attr('tabindex', 0);
  107325. self.$search.focus();
  107326. });
  107327. container.on('close', function () {
  107328. self.$search.attr('tabindex', -1);
  107329. self.$search.val('');
  107330. self.$search.focus();
  107331. });
  107332. container.on('enable', function () {
  107333. self.$search.prop('disabled', false);
  107334. });
  107335. container.on('disable', function () {
  107336. self.$search.prop('disabled', true);
  107337. });
  107338. this.$selection.on('focusin', '.select2-search--inline', function (evt) {
  107339. self.trigger('focus', evt);
  107340. });
  107341. this.$selection.on('focusout', '.select2-search--inline', function (evt) {
  107342. self.trigger('blur', evt);
  107343. });
  107344. this.$selection.on('keydown', '.select2-search--inline', function (evt) {
  107345. evt.stopPropagation();
  107346. self.trigger('keypress', evt);
  107347. self._keyUpPrevented = evt.isDefaultPrevented();
  107348. var key = evt.which;
  107349. if (key === KEYS.BACKSPACE && self.$search.val() === '') {
  107350. var $previousChoice = self.$searchContainer
  107351. .prev('.select2-selection__choice');
  107352. if ($previousChoice.length > 0) {
  107353. var item = $previousChoice.data('data');
  107354. self.searchRemoveChoice(item);
  107355. evt.preventDefault();
  107356. }
  107357. }
  107358. });
  107359. // Workaround for browsers which do not support the `input` event
  107360. // This will prevent double-triggering of events for browsers which support
  107361. // both the `keyup` and `input` events.
  107362. this.$selection.on('input', '.select2-search--inline', function (evt) {
  107363. // Unbind the duplicated `keyup` event
  107364. self.$selection.off('keyup.search');
  107365. });
  107366. this.$selection.on('keyup.search input', '.select2-search--inline',
  107367. function (evt) {
  107368. self.handleSearch(evt);
  107369. });
  107370. };
  107371. Search.prototype.createPlaceholder = function (decorated, placeholder) {
  107372. this.$search.attr('placeholder', placeholder.text);
  107373. };
  107374. Search.prototype.update = function (decorated, data) {
  107375. this.$search.attr('placeholder', '');
  107376. decorated.call(this, data);
  107377. this.$selection.find('.select2-selection__rendered')
  107378. .append(this.$searchContainer);
  107379. this.resizeSearch();
  107380. };
  107381. Search.prototype.handleSearch = function () {
  107382. this.resizeSearch();
  107383. if (!this._keyUpPrevented) {
  107384. var input = this.$search.val();
  107385. this.trigger('query', {
  107386. term: input
  107387. });
  107388. }
  107389. this._keyUpPrevented = false;
  107390. };
  107391. Search.prototype.searchRemoveChoice = function (decorated, item) {
  107392. this.trigger('unselect', {
  107393. data: item
  107394. });
  107395. this.trigger('open');
  107396. this.$search.val(item.text + ' ');
  107397. };
  107398. Search.prototype.resizeSearch = function () {
  107399. this.$search.css('width', '25px');
  107400. var width = '';
  107401. if (this.$search.attr('placeholder') !== '') {
  107402. width = this.$selection.find('.select2-selection__rendered').innerWidth();
  107403. } else {
  107404. var minimumWidth = this.$search.val().length + 1;
  107405. width = (minimumWidth * 0.75) + 'em';
  107406. }
  107407. this.$search.css('width', width);
  107408. };
  107409. return Search;
  107410. });
  107411. S2.define('select2/selection/eventRelay',[
  107412. 'jquery'
  107413. ], function ($) {
  107414. function EventRelay () { }
  107415. EventRelay.prototype.bind = function (decorated, container, $container) {
  107416. var self = this;
  107417. var relayEvents = [
  107418. 'open', 'opening',
  107419. 'close', 'closing',
  107420. 'select', 'selecting',
  107421. 'unselect', 'unselecting'
  107422. ];
  107423. var preventableEvents = ['opening', 'closing', 'selecting', 'unselecting'];
  107424. decorated.call(this, container, $container);
  107425. container.on('*', function (name, params) {
  107426. // Ignore events that should not be relayed
  107427. if ($.inArray(name, relayEvents) === -1) {
  107428. return;
  107429. }
  107430. // The parameters should always be an object
  107431. params = params || {};
  107432. // Generate the jQuery event for the Select2 event
  107433. var evt = $.Event('select2:' + name, {
  107434. params: params
  107435. });
  107436. self.$element.trigger(evt);
  107437. // Only handle preventable events if it was one
  107438. if ($.inArray(name, preventableEvents) === -1) {
  107439. return;
  107440. }
  107441. params.prevented = evt.isDefaultPrevented();
  107442. });
  107443. };
  107444. return EventRelay;
  107445. });
  107446. S2.define('select2/translation',[
  107447. 'jquery',
  107448. 'require'
  107449. ], function ($, require) {
  107450. function Translation (dict) {
  107451. this.dict = dict || {};
  107452. }
  107453. Translation.prototype.all = function () {
  107454. return this.dict;
  107455. };
  107456. Translation.prototype.get = function (key) {
  107457. return this.dict[key];
  107458. };
  107459. Translation.prototype.extend = function (translation) {
  107460. this.dict = $.extend({}, translation.all(), this.dict);
  107461. };
  107462. // Static functions
  107463. Translation._cache = {};
  107464. Translation.loadPath = function (path) {
  107465. if (!(path in Translation._cache)) {
  107466. var translations = require(path);
  107467. Translation._cache[path] = translations;
  107468. }
  107469. return new Translation(Translation._cache[path]);
  107470. };
  107471. return Translation;
  107472. });
  107473. S2.define('select2/diacritics',[
  107474. ], function () {
  107475. var diacritics = {
  107476. '\u24B6': 'A',
  107477. '\uFF21': 'A',
  107478. '\u00C0': 'A',
  107479. '\u00C1': 'A',
  107480. '\u00C2': 'A',
  107481. '\u1EA6': 'A',
  107482. '\u1EA4': 'A',
  107483. '\u1EAA': 'A',
  107484. '\u1EA8': 'A',
  107485. '\u00C3': 'A',
  107486. '\u0100': 'A',
  107487. '\u0102': 'A',
  107488. '\u1EB0': 'A',
  107489. '\u1EAE': 'A',
  107490. '\u1EB4': 'A',
  107491. '\u1EB2': 'A',
  107492. '\u0226': 'A',
  107493. '\u01E0': 'A',
  107494. '\u00C4': 'A',
  107495. '\u01DE': 'A',
  107496. '\u1EA2': 'A',
  107497. '\u00C5': 'A',
  107498. '\u01FA': 'A',
  107499. '\u01CD': 'A',
  107500. '\u0200': 'A',
  107501. '\u0202': 'A',
  107502. '\u1EA0': 'A',
  107503. '\u1EAC': 'A',
  107504. '\u1EB6': 'A',
  107505. '\u1E00': 'A',
  107506. '\u0104': 'A',
  107507. '\u023A': 'A',
  107508. '\u2C6F': 'A',
  107509. '\uA732': 'AA',
  107510. '\u00C6': 'AE',
  107511. '\u01FC': 'AE',
  107512. '\u01E2': 'AE',
  107513. '\uA734': 'AO',
  107514. '\uA736': 'AU',
  107515. '\uA738': 'AV',
  107516. '\uA73A': 'AV',
  107517. '\uA73C': 'AY',
  107518. '\u24B7': 'B',
  107519. '\uFF22': 'B',
  107520. '\u1E02': 'B',
  107521. '\u1E04': 'B',
  107522. '\u1E06': 'B',
  107523. '\u0243': 'B',
  107524. '\u0182': 'B',
  107525. '\u0181': 'B',
  107526. '\u24B8': 'C',
  107527. '\uFF23': 'C',
  107528. '\u0106': 'C',
  107529. '\u0108': 'C',
  107530. '\u010A': 'C',
  107531. '\u010C': 'C',
  107532. '\u00C7': 'C',
  107533. '\u1E08': 'C',
  107534. '\u0187': 'C',
  107535. '\u023B': 'C',
  107536. '\uA73E': 'C',
  107537. '\u24B9': 'D',
  107538. '\uFF24': 'D',
  107539. '\u1E0A': 'D',
  107540. '\u010E': 'D',
  107541. '\u1E0C': 'D',
  107542. '\u1E10': 'D',
  107543. '\u1E12': 'D',
  107544. '\u1E0E': 'D',
  107545. '\u0110': 'D',
  107546. '\u018B': 'D',
  107547. '\u018A': 'D',
  107548. '\u0189': 'D',
  107549. '\uA779': 'D',
  107550. '\u01F1': 'DZ',
  107551. '\u01C4': 'DZ',
  107552. '\u01F2': 'Dz',
  107553. '\u01C5': 'Dz',
  107554. '\u24BA': 'E',
  107555. '\uFF25': 'E',
  107556. '\u00C8': 'E',
  107557. '\u00C9': 'E',
  107558. '\u00CA': 'E',
  107559. '\u1EC0': 'E',
  107560. '\u1EBE': 'E',
  107561. '\u1EC4': 'E',
  107562. '\u1EC2': 'E',
  107563. '\u1EBC': 'E',
  107564. '\u0112': 'E',
  107565. '\u1E14': 'E',
  107566. '\u1E16': 'E',
  107567. '\u0114': 'E',
  107568. '\u0116': 'E',
  107569. '\u00CB': 'E',
  107570. '\u1EBA': 'E',
  107571. '\u011A': 'E',
  107572. '\u0204': 'E',
  107573. '\u0206': 'E',
  107574. '\u1EB8': 'E',
  107575. '\u1EC6': 'E',
  107576. '\u0228': 'E',
  107577. '\u1E1C': 'E',
  107578. '\u0118': 'E',
  107579. '\u1E18': 'E',
  107580. '\u1E1A': 'E',
  107581. '\u0190': 'E',
  107582. '\u018E': 'E',
  107583. '\u24BB': 'F',
  107584. '\uFF26': 'F',
  107585. '\u1E1E': 'F',
  107586. '\u0191': 'F',
  107587. '\uA77B': 'F',
  107588. '\u24BC': 'G',
  107589. '\uFF27': 'G',
  107590. '\u01F4': 'G',
  107591. '\u011C': 'G',
  107592. '\u1E20': 'G',
  107593. '\u011E': 'G',
  107594. '\u0120': 'G',
  107595. '\u01E6': 'G',
  107596. '\u0122': 'G',
  107597. '\u01E4': 'G',
  107598. '\u0193': 'G',
  107599. '\uA7A0': 'G',
  107600. '\uA77D': 'G',
  107601. '\uA77E': 'G',
  107602. '\u24BD': 'H',
  107603. '\uFF28': 'H',
  107604. '\u0124': 'H',
  107605. '\u1E22': 'H',
  107606. '\u1E26': 'H',
  107607. '\u021E': 'H',
  107608. '\u1E24': 'H',
  107609. '\u1E28': 'H',
  107610. '\u1E2A': 'H',
  107611. '\u0126': 'H',
  107612. '\u2C67': 'H',
  107613. '\u2C75': 'H',
  107614. '\uA78D': 'H',
  107615. '\u24BE': 'I',
  107616. '\uFF29': 'I',
  107617. '\u00CC': 'I',
  107618. '\u00CD': 'I',
  107619. '\u00CE': 'I',
  107620. '\u0128': 'I',
  107621. '\u012A': 'I',
  107622. '\u012C': 'I',
  107623. '\u0130': 'I',
  107624. '\u00CF': 'I',
  107625. '\u1E2E': 'I',
  107626. '\u1EC8': 'I',
  107627. '\u01CF': 'I',
  107628. '\u0208': 'I',
  107629. '\u020A': 'I',
  107630. '\u1ECA': 'I',
  107631. '\u012E': 'I',
  107632. '\u1E2C': 'I',
  107633. '\u0197': 'I',
  107634. '\u24BF': 'J',
  107635. '\uFF2A': 'J',
  107636. '\u0134': 'J',
  107637. '\u0248': 'J',
  107638. '\u24C0': 'K',
  107639. '\uFF2B': 'K',
  107640. '\u1E30': 'K',
  107641. '\u01E8': 'K',
  107642. '\u1E32': 'K',
  107643. '\u0136': 'K',
  107644. '\u1E34': 'K',
  107645. '\u0198': 'K',
  107646. '\u2C69': 'K',
  107647. '\uA740': 'K',
  107648. '\uA742': 'K',
  107649. '\uA744': 'K',
  107650. '\uA7A2': 'K',
  107651. '\u24C1': 'L',
  107652. '\uFF2C': 'L',
  107653. '\u013F': 'L',
  107654. '\u0139': 'L',
  107655. '\u013D': 'L',
  107656. '\u1E36': 'L',
  107657. '\u1E38': 'L',
  107658. '\u013B': 'L',
  107659. '\u1E3C': 'L',
  107660. '\u1E3A': 'L',
  107661. '\u0141': 'L',
  107662. '\u023D': 'L',
  107663. '\u2C62': 'L',
  107664. '\u2C60': 'L',
  107665. '\uA748': 'L',
  107666. '\uA746': 'L',
  107667. '\uA780': 'L',
  107668. '\u01C7': 'LJ',
  107669. '\u01C8': 'Lj',
  107670. '\u24C2': 'M',
  107671. '\uFF2D': 'M',
  107672. '\u1E3E': 'M',
  107673. '\u1E40': 'M',
  107674. '\u1E42': 'M',
  107675. '\u2C6E': 'M',
  107676. '\u019C': 'M',
  107677. '\u24C3': 'N',
  107678. '\uFF2E': 'N',
  107679. '\u01F8': 'N',
  107680. '\u0143': 'N',
  107681. '\u00D1': 'N',
  107682. '\u1E44': 'N',
  107683. '\u0147': 'N',
  107684. '\u1E46': 'N',
  107685. '\u0145': 'N',
  107686. '\u1E4A': 'N',
  107687. '\u1E48': 'N',
  107688. '\u0220': 'N',
  107689. '\u019D': 'N',
  107690. '\uA790': 'N',
  107691. '\uA7A4': 'N',
  107692. '\u01CA': 'NJ',
  107693. '\u01CB': 'Nj',
  107694. '\u24C4': 'O',
  107695. '\uFF2F': 'O',
  107696. '\u00D2': 'O',
  107697. '\u00D3': 'O',
  107698. '\u00D4': 'O',
  107699. '\u1ED2': 'O',
  107700. '\u1ED0': 'O',
  107701. '\u1ED6': 'O',
  107702. '\u1ED4': 'O',
  107703. '\u00D5': 'O',
  107704. '\u1E4C': 'O',
  107705. '\u022C': 'O',
  107706. '\u1E4E': 'O',
  107707. '\u014C': 'O',
  107708. '\u1E50': 'O',
  107709. '\u1E52': 'O',
  107710. '\u014E': 'O',
  107711. '\u022E': 'O',
  107712. '\u0230': 'O',
  107713. '\u00D6': 'O',
  107714. '\u022A': 'O',
  107715. '\u1ECE': 'O',
  107716. '\u0150': 'O',
  107717. '\u01D1': 'O',
  107718. '\u020C': 'O',
  107719. '\u020E': 'O',
  107720. '\u01A0': 'O',
  107721. '\u1EDC': 'O',
  107722. '\u1EDA': 'O',
  107723. '\u1EE0': 'O',
  107724. '\u1EDE': 'O',
  107725. '\u1EE2': 'O',
  107726. '\u1ECC': 'O',
  107727. '\u1ED8': 'O',
  107728. '\u01EA': 'O',
  107729. '\u01EC': 'O',
  107730. '\u00D8': 'O',
  107731. '\u01FE': 'O',
  107732. '\u0186': 'O',
  107733. '\u019F': 'O',
  107734. '\uA74A': 'O',
  107735. '\uA74C': 'O',
  107736. '\u01A2': 'OI',
  107737. '\uA74E': 'OO',
  107738. '\u0222': 'OU',
  107739. '\u24C5': 'P',
  107740. '\uFF30': 'P',
  107741. '\u1E54': 'P',
  107742. '\u1E56': 'P',
  107743. '\u01A4': 'P',
  107744. '\u2C63': 'P',
  107745. '\uA750': 'P',
  107746. '\uA752': 'P',
  107747. '\uA754': 'P',
  107748. '\u24C6': 'Q',
  107749. '\uFF31': 'Q',
  107750. '\uA756': 'Q',
  107751. '\uA758': 'Q',
  107752. '\u024A': 'Q',
  107753. '\u24C7': 'R',
  107754. '\uFF32': 'R',
  107755. '\u0154': 'R',
  107756. '\u1E58': 'R',
  107757. '\u0158': 'R',
  107758. '\u0210': 'R',
  107759. '\u0212': 'R',
  107760. '\u1E5A': 'R',
  107761. '\u1E5C': 'R',
  107762. '\u0156': 'R',
  107763. '\u1E5E': 'R',
  107764. '\u024C': 'R',
  107765. '\u2C64': 'R',
  107766. '\uA75A': 'R',
  107767. '\uA7A6': 'R',
  107768. '\uA782': 'R',
  107769. '\u24C8': 'S',
  107770. '\uFF33': 'S',
  107771. '\u1E9E': 'S',
  107772. '\u015A': 'S',
  107773. '\u1E64': 'S',
  107774. '\u015C': 'S',
  107775. '\u1E60': 'S',
  107776. '\u0160': 'S',
  107777. '\u1E66': 'S',
  107778. '\u1E62': 'S',
  107779. '\u1E68': 'S',
  107780. '\u0218': 'S',
  107781. '\u015E': 'S',
  107782. '\u2C7E': 'S',
  107783. '\uA7A8': 'S',
  107784. '\uA784': 'S',
  107785. '\u24C9': 'T',
  107786. '\uFF34': 'T',
  107787. '\u1E6A': 'T',
  107788. '\u0164': 'T',
  107789. '\u1E6C': 'T',
  107790. '\u021A': 'T',
  107791. '\u0162': 'T',
  107792. '\u1E70': 'T',
  107793. '\u1E6E': 'T',
  107794. '\u0166': 'T',
  107795. '\u01AC': 'T',
  107796. '\u01AE': 'T',
  107797. '\u023E': 'T',
  107798. '\uA786': 'T',
  107799. '\uA728': 'TZ',
  107800. '\u24CA': 'U',
  107801. '\uFF35': 'U',
  107802. '\u00D9': 'U',
  107803. '\u00DA': 'U',
  107804. '\u00DB': 'U',
  107805. '\u0168': 'U',
  107806. '\u1E78': 'U',
  107807. '\u016A': 'U',
  107808. '\u1E7A': 'U',
  107809. '\u016C': 'U',
  107810. '\u00DC': 'U',
  107811. '\u01DB': 'U',
  107812. '\u01D7': 'U',
  107813. '\u01D5': 'U',
  107814. '\u01D9': 'U',
  107815. '\u1EE6': 'U',
  107816. '\u016E': 'U',
  107817. '\u0170': 'U',
  107818. '\u01D3': 'U',
  107819. '\u0214': 'U',
  107820. '\u0216': 'U',
  107821. '\u01AF': 'U',
  107822. '\u1EEA': 'U',
  107823. '\u1EE8': 'U',
  107824. '\u1EEE': 'U',
  107825. '\u1EEC': 'U',
  107826. '\u1EF0': 'U',
  107827. '\u1EE4': 'U',
  107828. '\u1E72': 'U',
  107829. '\u0172': 'U',
  107830. '\u1E76': 'U',
  107831. '\u1E74': 'U',
  107832. '\u0244': 'U',
  107833. '\u24CB': 'V',
  107834. '\uFF36': 'V',
  107835. '\u1E7C': 'V',
  107836. '\u1E7E': 'V',
  107837. '\u01B2': 'V',
  107838. '\uA75E': 'V',
  107839. '\u0245': 'V',
  107840. '\uA760': 'VY',
  107841. '\u24CC': 'W',
  107842. '\uFF37': 'W',
  107843. '\u1E80': 'W',
  107844. '\u1E82': 'W',
  107845. '\u0174': 'W',
  107846. '\u1E86': 'W',
  107847. '\u1E84': 'W',
  107848. '\u1E88': 'W',
  107849. '\u2C72': 'W',
  107850. '\u24CD': 'X',
  107851. '\uFF38': 'X',
  107852. '\u1E8A': 'X',
  107853. '\u1E8C': 'X',
  107854. '\u24CE': 'Y',
  107855. '\uFF39': 'Y',
  107856. '\u1EF2': 'Y',
  107857. '\u00DD': 'Y',
  107858. '\u0176': 'Y',
  107859. '\u1EF8': 'Y',
  107860. '\u0232': 'Y',
  107861. '\u1E8E': 'Y',
  107862. '\u0178': 'Y',
  107863. '\u1EF6': 'Y',
  107864. '\u1EF4': 'Y',
  107865. '\u01B3': 'Y',
  107866. '\u024E': 'Y',
  107867. '\u1EFE': 'Y',
  107868. '\u24CF': 'Z',
  107869. '\uFF3A': 'Z',
  107870. '\u0179': 'Z',
  107871. '\u1E90': 'Z',
  107872. '\u017B': 'Z',
  107873. '\u017D': 'Z',
  107874. '\u1E92': 'Z',
  107875. '\u1E94': 'Z',
  107876. '\u01B5': 'Z',
  107877. '\u0224': 'Z',
  107878. '\u2C7F': 'Z',
  107879. '\u2C6B': 'Z',
  107880. '\uA762': 'Z',
  107881. '\u24D0': 'a',
  107882. '\uFF41': 'a',
  107883. '\u1E9A': 'a',
  107884. '\u00E0': 'a',
  107885. '\u00E1': 'a',
  107886. '\u00E2': 'a',
  107887. '\u1EA7': 'a',
  107888. '\u1EA5': 'a',
  107889. '\u1EAB': 'a',
  107890. '\u1EA9': 'a',
  107891. '\u00E3': 'a',
  107892. '\u0101': 'a',
  107893. '\u0103': 'a',
  107894. '\u1EB1': 'a',
  107895. '\u1EAF': 'a',
  107896. '\u1EB5': 'a',
  107897. '\u1EB3': 'a',
  107898. '\u0227': 'a',
  107899. '\u01E1': 'a',
  107900. '\u00E4': 'a',
  107901. '\u01DF': 'a',
  107902. '\u1EA3': 'a',
  107903. '\u00E5': 'a',
  107904. '\u01FB': 'a',
  107905. '\u01CE': 'a',
  107906. '\u0201': 'a',
  107907. '\u0203': 'a',
  107908. '\u1EA1': 'a',
  107909. '\u1EAD': 'a',
  107910. '\u1EB7': 'a',
  107911. '\u1E01': 'a',
  107912. '\u0105': 'a',
  107913. '\u2C65': 'a',
  107914. '\u0250': 'a',
  107915. '\uA733': 'aa',
  107916. '\u00E6': 'ae',
  107917. '\u01FD': 'ae',
  107918. '\u01E3': 'ae',
  107919. '\uA735': 'ao',
  107920. '\uA737': 'au',
  107921. '\uA739': 'av',
  107922. '\uA73B': 'av',
  107923. '\uA73D': 'ay',
  107924. '\u24D1': 'b',
  107925. '\uFF42': 'b',
  107926. '\u1E03': 'b',
  107927. '\u1E05': 'b',
  107928. '\u1E07': 'b',
  107929. '\u0180': 'b',
  107930. '\u0183': 'b',
  107931. '\u0253': 'b',
  107932. '\u24D2': 'c',
  107933. '\uFF43': 'c',
  107934. '\u0107': 'c',
  107935. '\u0109': 'c',
  107936. '\u010B': 'c',
  107937. '\u010D': 'c',
  107938. '\u00E7': 'c',
  107939. '\u1E09': 'c',
  107940. '\u0188': 'c',
  107941. '\u023C': 'c',
  107942. '\uA73F': 'c',
  107943. '\u2184': 'c',
  107944. '\u24D3': 'd',
  107945. '\uFF44': 'd',
  107946. '\u1E0B': 'd',
  107947. '\u010F': 'd',
  107948. '\u1E0D': 'd',
  107949. '\u1E11': 'd',
  107950. '\u1E13': 'd',
  107951. '\u1E0F': 'd',
  107952. '\u0111': 'd',
  107953. '\u018C': 'd',
  107954. '\u0256': 'd',
  107955. '\u0257': 'd',
  107956. '\uA77A': 'd',
  107957. '\u01F3': 'dz',
  107958. '\u01C6': 'dz',
  107959. '\u24D4': 'e',
  107960. '\uFF45': 'e',
  107961. '\u00E8': 'e',
  107962. '\u00E9': 'e',
  107963. '\u00EA': 'e',
  107964. '\u1EC1': 'e',
  107965. '\u1EBF': 'e',
  107966. '\u1EC5': 'e',
  107967. '\u1EC3': 'e',
  107968. '\u1EBD': 'e',
  107969. '\u0113': 'e',
  107970. '\u1E15': 'e',
  107971. '\u1E17': 'e',
  107972. '\u0115': 'e',
  107973. '\u0117': 'e',
  107974. '\u00EB': 'e',
  107975. '\u1EBB': 'e',
  107976. '\u011B': 'e',
  107977. '\u0205': 'e',
  107978. '\u0207': 'e',
  107979. '\u1EB9': 'e',
  107980. '\u1EC7': 'e',
  107981. '\u0229': 'e',
  107982. '\u1E1D': 'e',
  107983. '\u0119': 'e',
  107984. '\u1E19': 'e',
  107985. '\u1E1B': 'e',
  107986. '\u0247': 'e',
  107987. '\u025B': 'e',
  107988. '\u01DD': 'e',
  107989. '\u24D5': 'f',
  107990. '\uFF46': 'f',
  107991. '\u1E1F': 'f',
  107992. '\u0192': 'f',
  107993. '\uA77C': 'f',
  107994. '\u24D6': 'g',
  107995. '\uFF47': 'g',
  107996. '\u01F5': 'g',
  107997. '\u011D': 'g',
  107998. '\u1E21': 'g',
  107999. '\u011F': 'g',
  108000. '\u0121': 'g',
  108001. '\u01E7': 'g',
  108002. '\u0123': 'g',
  108003. '\u01E5': 'g',
  108004. '\u0260': 'g',
  108005. '\uA7A1': 'g',
  108006. '\u1D79': 'g',
  108007. '\uA77F': 'g',
  108008. '\u24D7': 'h',
  108009. '\uFF48': 'h',
  108010. '\u0125': 'h',
  108011. '\u1E23': 'h',
  108012. '\u1E27': 'h',
  108013. '\u021F': 'h',
  108014. '\u1E25': 'h',
  108015. '\u1E29': 'h',
  108016. '\u1E2B': 'h',
  108017. '\u1E96': 'h',
  108018. '\u0127': 'h',
  108019. '\u2C68': 'h',
  108020. '\u2C76': 'h',
  108021. '\u0265': 'h',
  108022. '\u0195': 'hv',
  108023. '\u24D8': 'i',
  108024. '\uFF49': 'i',
  108025. '\u00EC': 'i',
  108026. '\u00ED': 'i',
  108027. '\u00EE': 'i',
  108028. '\u0129': 'i',
  108029. '\u012B': 'i',
  108030. '\u012D': 'i',
  108031. '\u00EF': 'i',
  108032. '\u1E2F': 'i',
  108033. '\u1EC9': 'i',
  108034. '\u01D0': 'i',
  108035. '\u0209': 'i',
  108036. '\u020B': 'i',
  108037. '\u1ECB': 'i',
  108038. '\u012F': 'i',
  108039. '\u1E2D': 'i',
  108040. '\u0268': 'i',
  108041. '\u0131': 'i',
  108042. '\u24D9': 'j',
  108043. '\uFF4A': 'j',
  108044. '\u0135': 'j',
  108045. '\u01F0': 'j',
  108046. '\u0249': 'j',
  108047. '\u24DA': 'k',
  108048. '\uFF4B': 'k',
  108049. '\u1E31': 'k',
  108050. '\u01E9': 'k',
  108051. '\u1E33': 'k',
  108052. '\u0137': 'k',
  108053. '\u1E35': 'k',
  108054. '\u0199': 'k',
  108055. '\u2C6A': 'k',
  108056. '\uA741': 'k',
  108057. '\uA743': 'k',
  108058. '\uA745': 'k',
  108059. '\uA7A3': 'k',
  108060. '\u24DB': 'l',
  108061. '\uFF4C': 'l',
  108062. '\u0140': 'l',
  108063. '\u013A': 'l',
  108064. '\u013E': 'l',
  108065. '\u1E37': 'l',
  108066. '\u1E39': 'l',
  108067. '\u013C': 'l',
  108068. '\u1E3D': 'l',
  108069. '\u1E3B': 'l',
  108070. '\u017F': 'l',
  108071. '\u0142': 'l',
  108072. '\u019A': 'l',
  108073. '\u026B': 'l',
  108074. '\u2C61': 'l',
  108075. '\uA749': 'l',
  108076. '\uA781': 'l',
  108077. '\uA747': 'l',
  108078. '\u01C9': 'lj',
  108079. '\u24DC': 'm',
  108080. '\uFF4D': 'm',
  108081. '\u1E3F': 'm',
  108082. '\u1E41': 'm',
  108083. '\u1E43': 'm',
  108084. '\u0271': 'm',
  108085. '\u026F': 'm',
  108086. '\u24DD': 'n',
  108087. '\uFF4E': 'n',
  108088. '\u01F9': 'n',
  108089. '\u0144': 'n',
  108090. '\u00F1': 'n',
  108091. '\u1E45': 'n',
  108092. '\u0148': 'n',
  108093. '\u1E47': 'n',
  108094. '\u0146': 'n',
  108095. '\u1E4B': 'n',
  108096. '\u1E49': 'n',
  108097. '\u019E': 'n',
  108098. '\u0272': 'n',
  108099. '\u0149': 'n',
  108100. '\uA791': 'n',
  108101. '\uA7A5': 'n',
  108102. '\u01CC': 'nj',
  108103. '\u24DE': 'o',
  108104. '\uFF4F': 'o',
  108105. '\u00F2': 'o',
  108106. '\u00F3': 'o',
  108107. '\u00F4': 'o',
  108108. '\u1ED3': 'o',
  108109. '\u1ED1': 'o',
  108110. '\u1ED7': 'o',
  108111. '\u1ED5': 'o',
  108112. '\u00F5': 'o',
  108113. '\u1E4D': 'o',
  108114. '\u022D': 'o',
  108115. '\u1E4F': 'o',
  108116. '\u014D': 'o',
  108117. '\u1E51': 'o',
  108118. '\u1E53': 'o',
  108119. '\u014F': 'o',
  108120. '\u022F': 'o',
  108121. '\u0231': 'o',
  108122. '\u00F6': 'o',
  108123. '\u022B': 'o',
  108124. '\u1ECF': 'o',
  108125. '\u0151': 'o',
  108126. '\u01D2': 'o',
  108127. '\u020D': 'o',
  108128. '\u020F': 'o',
  108129. '\u01A1': 'o',
  108130. '\u1EDD': 'o',
  108131. '\u1EDB': 'o',
  108132. '\u1EE1': 'o',
  108133. '\u1EDF': 'o',
  108134. '\u1EE3': 'o',
  108135. '\u1ECD': 'o',
  108136. '\u1ED9': 'o',
  108137. '\u01EB': 'o',
  108138. '\u01ED': 'o',
  108139. '\u00F8': 'o',
  108140. '\u01FF': 'o',
  108141. '\u0254': 'o',
  108142. '\uA74B': 'o',
  108143. '\uA74D': 'o',
  108144. '\u0275': 'o',
  108145. '\u01A3': 'oi',
  108146. '\u0223': 'ou',
  108147. '\uA74F': 'oo',
  108148. '\u24DF': 'p',
  108149. '\uFF50': 'p',
  108150. '\u1E55': 'p',
  108151. '\u1E57': 'p',
  108152. '\u01A5': 'p',
  108153. '\u1D7D': 'p',
  108154. '\uA751': 'p',
  108155. '\uA753': 'p',
  108156. '\uA755': 'p',
  108157. '\u24E0': 'q',
  108158. '\uFF51': 'q',
  108159. '\u024B': 'q',
  108160. '\uA757': 'q',
  108161. '\uA759': 'q',
  108162. '\u24E1': 'r',
  108163. '\uFF52': 'r',
  108164. '\u0155': 'r',
  108165. '\u1E59': 'r',
  108166. '\u0159': 'r',
  108167. '\u0211': 'r',
  108168. '\u0213': 'r',
  108169. '\u1E5B': 'r',
  108170. '\u1E5D': 'r',
  108171. '\u0157': 'r',
  108172. '\u1E5F': 'r',
  108173. '\u024D': 'r',
  108174. '\u027D': 'r',
  108175. '\uA75B': 'r',
  108176. '\uA7A7': 'r',
  108177. '\uA783': 'r',
  108178. '\u24E2': 's',
  108179. '\uFF53': 's',
  108180. '\u00DF': 's',
  108181. '\u015B': 's',
  108182. '\u1E65': 's',
  108183. '\u015D': 's',
  108184. '\u1E61': 's',
  108185. '\u0161': 's',
  108186. '\u1E67': 's',
  108187. '\u1E63': 's',
  108188. '\u1E69': 's',
  108189. '\u0219': 's',
  108190. '\u015F': 's',
  108191. '\u023F': 's',
  108192. '\uA7A9': 's',
  108193. '\uA785': 's',
  108194. '\u1E9B': 's',
  108195. '\u24E3': 't',
  108196. '\uFF54': 't',
  108197. '\u1E6B': 't',
  108198. '\u1E97': 't',
  108199. '\u0165': 't',
  108200. '\u1E6D': 't',
  108201. '\u021B': 't',
  108202. '\u0163': 't',
  108203. '\u1E71': 't',
  108204. '\u1E6F': 't',
  108205. '\u0167': 't',
  108206. '\u01AD': 't',
  108207. '\u0288': 't',
  108208. '\u2C66': 't',
  108209. '\uA787': 't',
  108210. '\uA729': 'tz',
  108211. '\u24E4': 'u',
  108212. '\uFF55': 'u',
  108213. '\u00F9': 'u',
  108214. '\u00FA': 'u',
  108215. '\u00FB': 'u',
  108216. '\u0169': 'u',
  108217. '\u1E79': 'u',
  108218. '\u016B': 'u',
  108219. '\u1E7B': 'u',
  108220. '\u016D': 'u',
  108221. '\u00FC': 'u',
  108222. '\u01DC': 'u',
  108223. '\u01D8': 'u',
  108224. '\u01D6': 'u',
  108225. '\u01DA': 'u',
  108226. '\u1EE7': 'u',
  108227. '\u016F': 'u',
  108228. '\u0171': 'u',
  108229. '\u01D4': 'u',
  108230. '\u0215': 'u',
  108231. '\u0217': 'u',
  108232. '\u01B0': 'u',
  108233. '\u1EEB': 'u',
  108234. '\u1EE9': 'u',
  108235. '\u1EEF': 'u',
  108236. '\u1EED': 'u',
  108237. '\u1EF1': 'u',
  108238. '\u1EE5': 'u',
  108239. '\u1E73': 'u',
  108240. '\u0173': 'u',
  108241. '\u1E77': 'u',
  108242. '\u1E75': 'u',
  108243. '\u0289': 'u',
  108244. '\u24E5': 'v',
  108245. '\uFF56': 'v',
  108246. '\u1E7D': 'v',
  108247. '\u1E7F': 'v',
  108248. '\u028B': 'v',
  108249. '\uA75F': 'v',
  108250. '\u028C': 'v',
  108251. '\uA761': 'vy',
  108252. '\u24E6': 'w',
  108253. '\uFF57': 'w',
  108254. '\u1E81': 'w',
  108255. '\u1E83': 'w',
  108256. '\u0175': 'w',
  108257. '\u1E87': 'w',
  108258. '\u1E85': 'w',
  108259. '\u1E98': 'w',
  108260. '\u1E89': 'w',
  108261. '\u2C73': 'w',
  108262. '\u24E7': 'x',
  108263. '\uFF58': 'x',
  108264. '\u1E8B': 'x',
  108265. '\u1E8D': 'x',
  108266. '\u24E8': 'y',
  108267. '\uFF59': 'y',
  108268. '\u1EF3': 'y',
  108269. '\u00FD': 'y',
  108270. '\u0177': 'y',
  108271. '\u1EF9': 'y',
  108272. '\u0233': 'y',
  108273. '\u1E8F': 'y',
  108274. '\u00FF': 'y',
  108275. '\u1EF7': 'y',
  108276. '\u1E99': 'y',
  108277. '\u1EF5': 'y',
  108278. '\u01B4': 'y',
  108279. '\u024F': 'y',
  108280. '\u1EFF': 'y',
  108281. '\u24E9': 'z',
  108282. '\uFF5A': 'z',
  108283. '\u017A': 'z',
  108284. '\u1E91': 'z',
  108285. '\u017C': 'z',
  108286. '\u017E': 'z',
  108287. '\u1E93': 'z',
  108288. '\u1E95': 'z',
  108289. '\u01B6': 'z',
  108290. '\u0225': 'z',
  108291. '\u0240': 'z',
  108292. '\u2C6C': 'z',
  108293. '\uA763': 'z',
  108294. '\u0386': '\u0391',
  108295. '\u0388': '\u0395',
  108296. '\u0389': '\u0397',
  108297. '\u038A': '\u0399',
  108298. '\u03AA': '\u0399',
  108299. '\u038C': '\u039F',
  108300. '\u038E': '\u03A5',
  108301. '\u03AB': '\u03A5',
  108302. '\u038F': '\u03A9',
  108303. '\u03AC': '\u03B1',
  108304. '\u03AD': '\u03B5',
  108305. '\u03AE': '\u03B7',
  108306. '\u03AF': '\u03B9',
  108307. '\u03CA': '\u03B9',
  108308. '\u0390': '\u03B9',
  108309. '\u03CC': '\u03BF',
  108310. '\u03CD': '\u03C5',
  108311. '\u03CB': '\u03C5',
  108312. '\u03B0': '\u03C5',
  108313. '\u03C9': '\u03C9',
  108314. '\u03C2': '\u03C3'
  108315. };
  108316. return diacritics;
  108317. });
  108318. S2.define('select2/data/base',[
  108319. '../utils'
  108320. ], function (Utils) {
  108321. function BaseAdapter ($element, options) {
  108322. BaseAdapter.__super__.constructor.call(this);
  108323. }
  108324. Utils.Extend(BaseAdapter, Utils.Observable);
  108325. BaseAdapter.prototype.current = function (callback) {
  108326. throw new Error('The `current` method must be defined in child classes.');
  108327. };
  108328. BaseAdapter.prototype.query = function (params, callback) {
  108329. throw new Error('The `query` method must be defined in child classes.');
  108330. };
  108331. BaseAdapter.prototype.bind = function (container, $container) {
  108332. // Can be implemented in subclasses
  108333. };
  108334. BaseAdapter.prototype.destroy = function () {
  108335. // Can be implemented in subclasses
  108336. };
  108337. BaseAdapter.prototype.generateResultId = function (container, data) {
  108338. var id = container.id + '-result-';
  108339. id += Utils.generateChars(4);
  108340. if (data.id != null) {
  108341. id += '-' + data.id.toString();
  108342. } else {
  108343. id += '-' + Utils.generateChars(4);
  108344. }
  108345. return id;
  108346. };
  108347. return BaseAdapter;
  108348. });
  108349. S2.define('select2/data/select',[
  108350. './base',
  108351. '../utils',
  108352. 'jquery'
  108353. ], function (BaseAdapter, Utils, $) {
  108354. function SelectAdapter ($element, options) {
  108355. this.$element = $element;
  108356. this.options = options;
  108357. SelectAdapter.__super__.constructor.call(this);
  108358. }
  108359. Utils.Extend(SelectAdapter, BaseAdapter);
  108360. SelectAdapter.prototype.current = function (callback) {
  108361. var data = [];
  108362. var self = this;
  108363. this.$element.find(':selected').each(function () {
  108364. var $option = $(this);
  108365. var option = self.item($option);
  108366. data.push(option);
  108367. });
  108368. callback(data);
  108369. };
  108370. SelectAdapter.prototype.select = function (data) {
  108371. var self = this;
  108372. data.selected = true;
  108373. // If data.element is a DOM node, use it instead
  108374. if ($(data.element).is('option')) {
  108375. data.element.selected = true;
  108376. this.$element.trigger('change');
  108377. return;
  108378. }
  108379. if (this.$element.prop('multiple')) {
  108380. this.current(function (currentData) {
  108381. var val = [];
  108382. data = [data];
  108383. data.push.apply(data, currentData);
  108384. for (var d = 0; d < data.length; d++) {
  108385. var id = data[d].id;
  108386. if ($.inArray(id, val) === -1) {
  108387. val.push(id);
  108388. }
  108389. }
  108390. self.$element.val(val);
  108391. self.$element.trigger('change');
  108392. });
  108393. } else {
  108394. var val = data.id;
  108395. this.$element.val(val);
  108396. this.$element.trigger('change');
  108397. }
  108398. };
  108399. SelectAdapter.prototype.unselect = function (data) {
  108400. var self = this;
  108401. if (!this.$element.prop('multiple')) {
  108402. return;
  108403. }
  108404. data.selected = false;
  108405. if ($(data.element).is('option')) {
  108406. data.element.selected = false;
  108407. this.$element.trigger('change');
  108408. return;
  108409. }
  108410. this.current(function (currentData) {
  108411. var val = [];
  108412. for (var d = 0; d < currentData.length; d++) {
  108413. var id = currentData[d].id;
  108414. if (id !== data.id && $.inArray(id, val) === -1) {
  108415. val.push(id);
  108416. }
  108417. }
  108418. self.$element.val(val);
  108419. self.$element.trigger('change');
  108420. });
  108421. };
  108422. SelectAdapter.prototype.bind = function (container, $container) {
  108423. var self = this;
  108424. this.container = container;
  108425. container.on('select', function (params) {
  108426. self.select(params.data);
  108427. });
  108428. container.on('unselect', function (params) {
  108429. self.unselect(params.data);
  108430. });
  108431. };
  108432. SelectAdapter.prototype.destroy = function () {
  108433. // Remove anything added to child elements
  108434. this.$element.find('*').each(function () {
  108435. // Remove any custom data set by Select2
  108436. $.removeData(this, 'data');
  108437. });
  108438. };
  108439. SelectAdapter.prototype.query = function (params, callback) {
  108440. var data = [];
  108441. var self = this;
  108442. var $options = this.$element.children();
  108443. $options.each(function () {
  108444. var $option = $(this);
  108445. if (!$option.is('option') && !$option.is('optgroup')) {
  108446. return;
  108447. }
  108448. var option = self.item($option);
  108449. var matches = self.matches(params, option);
  108450. if (matches !== null) {
  108451. data.push(matches);
  108452. }
  108453. });
  108454. callback({
  108455. results: data
  108456. });
  108457. };
  108458. SelectAdapter.prototype.addOptions = function ($options) {
  108459. Utils.appendMany(this.$element, $options);
  108460. };
  108461. SelectAdapter.prototype.option = function (data) {
  108462. var option;
  108463. if (data.children) {
  108464. option = document.createElement('optgroup');
  108465. option.label = data.text;
  108466. } else {
  108467. option = document.createElement('option');
  108468. if (option.textContent !== undefined) {
  108469. option.textContent = data.text;
  108470. } else {
  108471. option.innerText = data.text;
  108472. }
  108473. }
  108474. if (data.id) {
  108475. option.value = data.id;
  108476. }
  108477. if (data.disabled) {
  108478. option.disabled = true;
  108479. }
  108480. if (data.selected) {
  108481. option.selected = true;
  108482. }
  108483. if (data.title) {
  108484. option.title = data.title;
  108485. }
  108486. var $option = $(option);
  108487. var normalizedData = this._normalizeItem(data);
  108488. normalizedData.element = option;
  108489. // Override the option's data with the combined data
  108490. $.data(option, 'data', normalizedData);
  108491. return $option;
  108492. };
  108493. SelectAdapter.prototype.item = function ($option) {
  108494. var data = {};
  108495. data = $.data($option[0], 'data');
  108496. if (data != null) {
  108497. return data;
  108498. }
  108499. if ($option.is('option')) {
  108500. data = {
  108501. id: $option.val(),
  108502. text: $option.text(),
  108503. disabled: $option.prop('disabled'),
  108504. selected: $option.prop('selected'),
  108505. title: $option.prop('title')
  108506. };
  108507. } else if ($option.is('optgroup')) {
  108508. data = {
  108509. text: $option.prop('label'),
  108510. children: [],
  108511. title: $option.prop('title')
  108512. };
  108513. var $children = $option.children('option');
  108514. var children = [];
  108515. for (var c = 0; c < $children.length; c++) {
  108516. var $child = $($children[c]);
  108517. var child = this.item($child);
  108518. children.push(child);
  108519. }
  108520. data.children = children;
  108521. }
  108522. data = this._normalizeItem(data);
  108523. data.element = $option[0];
  108524. $.data($option[0], 'data', data);
  108525. return data;
  108526. };
  108527. SelectAdapter.prototype._normalizeItem = function (item) {
  108528. if (!$.isPlainObject(item)) {
  108529. item = {
  108530. id: item,
  108531. text: item
  108532. };
  108533. }
  108534. item = $.extend({}, {
  108535. text: ''
  108536. }, item);
  108537. var defaults = {
  108538. selected: false,
  108539. disabled: false
  108540. };
  108541. if (item.id != null) {
  108542. item.id = item.id.toString();
  108543. }
  108544. if (item.text != null) {
  108545. item.text = item.text.toString();
  108546. }
  108547. if (item._resultId == null && item.id && this.container != null) {
  108548. item._resultId = this.generateResultId(this.container, item);
  108549. }
  108550. return $.extend({}, defaults, item);
  108551. };
  108552. SelectAdapter.prototype.matches = function (params, data) {
  108553. var matcher = this.options.get('matcher');
  108554. return matcher(params, data);
  108555. };
  108556. return SelectAdapter;
  108557. });
  108558. S2.define('select2/data/array',[
  108559. './select',
  108560. '../utils',
  108561. 'jquery'
  108562. ], function (SelectAdapter, Utils, $) {
  108563. function ArrayAdapter ($element, options) {
  108564. var data = options.get('data') || [];
  108565. ArrayAdapter.__super__.constructor.call(this, $element, options);
  108566. this.addOptions(this.convertToOptions(data));
  108567. }
  108568. Utils.Extend(ArrayAdapter, SelectAdapter);
  108569. ArrayAdapter.prototype.select = function (data) {
  108570. var $option = this.$element.find('option').filter(function (i, elm) {
  108571. return elm.value == data.id.toString();
  108572. });
  108573. if ($option.length === 0) {
  108574. $option = this.option(data);
  108575. this.addOptions($option);
  108576. }
  108577. ArrayAdapter.__super__.select.call(this, data);
  108578. };
  108579. ArrayAdapter.prototype.convertToOptions = function (data) {
  108580. var self = this;
  108581. var $existing = this.$element.find('option');
  108582. var existingIds = $existing.map(function () {
  108583. return self.item($(this)).id;
  108584. }).get();
  108585. var $options = [];
  108586. // Filter out all items except for the one passed in the argument
  108587. function onlyItem (item) {
  108588. return function () {
  108589. return $(this).val() == item.id;
  108590. };
  108591. }
  108592. for (var d = 0; d < data.length; d++) {
  108593. var item = this._normalizeItem(data[d]);
  108594. // Skip items which were pre-loaded, only merge the data
  108595. if ($.inArray(item.id, existingIds) >= 0) {
  108596. var $existingOption = $existing.filter(onlyItem(item));
  108597. var existingData = this.item($existingOption);
  108598. var newData = $.extend(true, {}, existingData, item);
  108599. var $newOption = this.option(existingData);
  108600. $existingOption.replaceWith($newOption);
  108601. continue;
  108602. }
  108603. var $option = this.option(item);
  108604. if (item.children) {
  108605. var $children = this.convertToOptions(item.children);
  108606. Utils.appendMany($option, $children);
  108607. }
  108608. $options.push($option);
  108609. }
  108610. return $options;
  108611. };
  108612. return ArrayAdapter;
  108613. });
  108614. S2.define('select2/data/ajax',[
  108615. './array',
  108616. '../utils',
  108617. 'jquery'
  108618. ], function (ArrayAdapter, Utils, $) {
  108619. function AjaxAdapter ($element, options) {
  108620. this.ajaxOptions = this._applyDefaults(options.get('ajax'));
  108621. if (this.ajaxOptions.processResults != null) {
  108622. this.processResults = this.ajaxOptions.processResults;
  108623. }
  108624. ArrayAdapter.__super__.constructor.call(this, $element, options);
  108625. }
  108626. Utils.Extend(AjaxAdapter, ArrayAdapter);
  108627. AjaxAdapter.prototype._applyDefaults = function (options) {
  108628. var defaults = {
  108629. data: function (params) {
  108630. return {
  108631. q: params.term
  108632. };
  108633. },
  108634. transport: function (params, success, failure) {
  108635. var $request = $.ajax(params);
  108636. $request.then(success);
  108637. $request.fail(failure);
  108638. return $request;
  108639. }
  108640. };
  108641. return $.extend({}, defaults, options, true);
  108642. };
  108643. AjaxAdapter.prototype.processResults = function (results) {
  108644. return results;
  108645. };
  108646. AjaxAdapter.prototype.query = function (params, callback) {
  108647. var matches = [];
  108648. var self = this;
  108649. if (this._request != null) {
  108650. // JSONP requests cannot always be aborted
  108651. if ($.isFunction(this._request.abort)) {
  108652. this._request.abort();
  108653. }
  108654. this._request = null;
  108655. }
  108656. var options = $.extend({
  108657. type: 'GET'
  108658. }, this.ajaxOptions);
  108659. if (typeof options.url === 'function') {
  108660. options.url = options.url(params);
  108661. }
  108662. if (typeof options.data === 'function') {
  108663. options.data = options.data(params);
  108664. }
  108665. function request () {
  108666. var $request = options.transport(options, function (data) {
  108667. var results = self.processResults(data, params);
  108668. if (self.options.get('debug') && window.console && console.error) {
  108669. // Check to make sure that the response included a `results` key.
  108670. if (!results || !results.results || !$.isArray(results.results)) {
  108671. console.error(
  108672. 'Select2: The AJAX results did not return an array in the ' +
  108673. '`results` key of the response.'
  108674. );
  108675. }
  108676. }
  108677. callback(results);
  108678. }, function () {
  108679. // TODO: Handle AJAX errors
  108680. });
  108681. self._request = $request;
  108682. }
  108683. if (this.ajaxOptions.delay && params.term !== '') {
  108684. if (this._queryTimeout) {
  108685. window.clearTimeout(this._queryTimeout);
  108686. }
  108687. this._queryTimeout = window.setTimeout(request, this.ajaxOptions.delay);
  108688. } else {
  108689. request();
  108690. }
  108691. };
  108692. return AjaxAdapter;
  108693. });
  108694. S2.define('select2/data/tags',[
  108695. 'jquery'
  108696. ], function ($) {
  108697. function Tags (decorated, $element, options) {
  108698. var tags = options.get('tags');
  108699. var createTag = options.get('createTag');
  108700. if (createTag !== undefined) {
  108701. this.createTag = createTag;
  108702. }
  108703. decorated.call(this, $element, options);
  108704. if ($.isArray(tags)) {
  108705. for (var t = 0; t < tags.length; t++) {
  108706. var tag = tags[t];
  108707. var item = this._normalizeItem(tag);
  108708. var $option = this.option(item);
  108709. this.$element.append($option);
  108710. }
  108711. }
  108712. }
  108713. Tags.prototype.query = function (decorated, params, callback) {
  108714. var self = this;
  108715. this._removeOldTags();
  108716. if (params.term == null || params.page != null) {
  108717. decorated.call(this, params, callback);
  108718. return;
  108719. }
  108720. function wrapper (obj, child) {
  108721. var data = obj.results;
  108722. for (var i = 0; i < data.length; i++) {
  108723. var option = data[i];
  108724. var checkChildren = (
  108725. option.children != null &&
  108726. !wrapper({
  108727. results: option.children
  108728. }, true)
  108729. );
  108730. var checkText = option.text === params.term;
  108731. if (checkText || checkChildren) {
  108732. if (child) {
  108733. return false;
  108734. }
  108735. obj.data = data;
  108736. callback(obj);
  108737. return;
  108738. }
  108739. }
  108740. if (child) {
  108741. return true;
  108742. }
  108743. var tag = self.createTag(params);
  108744. if (tag != null) {
  108745. var $option = self.option(tag);
  108746. $option.attr('data-select2-tag', true);
  108747. self.addOptions([$option]);
  108748. self.insertTag(data, tag);
  108749. }
  108750. obj.results = data;
  108751. callback(obj);
  108752. }
  108753. decorated.call(this, params, wrapper);
  108754. };
  108755. Tags.prototype.createTag = function (decorated, params) {
  108756. var term = $.trim(params.term);
  108757. if (term === '') {
  108758. return null;
  108759. }
  108760. return {
  108761. id: term,
  108762. text: term
  108763. };
  108764. };
  108765. Tags.prototype.insertTag = function (_, data, tag) {
  108766. data.unshift(tag);
  108767. };
  108768. Tags.prototype._removeOldTags = function (_) {
  108769. var tag = this._lastTag;
  108770. var $options = this.$element.find('option[data-select2-tag]');
  108771. $options.each(function () {
  108772. if (this.selected) {
  108773. return;
  108774. }
  108775. $(this).remove();
  108776. });
  108777. };
  108778. return Tags;
  108779. });
  108780. S2.define('select2/data/tokenizer',[
  108781. 'jquery'
  108782. ], function ($) {
  108783. function Tokenizer (decorated, $element, options) {
  108784. var tokenizer = options.get('tokenizer');
  108785. if (tokenizer !== undefined) {
  108786. this.tokenizer = tokenizer;
  108787. }
  108788. decorated.call(this, $element, options);
  108789. }
  108790. Tokenizer.prototype.bind = function (decorated, container, $container) {
  108791. decorated.call(this, container, $container);
  108792. this.$search = container.dropdown.$search || container.selection.$search ||
  108793. $container.find('.select2-search__field');
  108794. };
  108795. Tokenizer.prototype.query = function (decorated, params, callback) {
  108796. var self = this;
  108797. function select (data) {
  108798. self.select(data);
  108799. }
  108800. params.term = params.term || '';
  108801. var tokenData = this.tokenizer(params, this.options, select);
  108802. if (tokenData.term !== params.term) {
  108803. // Replace the search term if we have the search box
  108804. if (this.$search.length) {
  108805. this.$search.val(tokenData.term);
  108806. this.$search.focus();
  108807. }
  108808. params.term = tokenData.term;
  108809. }
  108810. decorated.call(this, params, callback);
  108811. };
  108812. Tokenizer.prototype.tokenizer = function (_, params, options, callback) {
  108813. var separators = options.get('tokenSeparators') || [];
  108814. var term = params.term;
  108815. var i = 0;
  108816. var createTag = this.createTag || function (params) {
  108817. return {
  108818. id: params.term,
  108819. text: params.term
  108820. };
  108821. };
  108822. while (i < term.length) {
  108823. var termChar = term[i];
  108824. if ($.inArray(termChar, separators) === -1) {
  108825. i++;
  108826. continue;
  108827. }
  108828. var part = term.substr(0, i);
  108829. var partParams = $.extend({}, params, {
  108830. term: part
  108831. });
  108832. var data = createTag(partParams);
  108833. callback(data);
  108834. // Reset the term to not include the tokenized portion
  108835. term = term.substr(i + 1) || '';
  108836. i = 0;
  108837. }
  108838. return {
  108839. term: term
  108840. };
  108841. };
  108842. return Tokenizer;
  108843. });
  108844. S2.define('select2/data/minimumInputLength',[
  108845. ], function () {
  108846. function MinimumInputLength (decorated, $e, options) {
  108847. this.minimumInputLength = options.get('minimumInputLength');
  108848. decorated.call(this, $e, options);
  108849. }
  108850. MinimumInputLength.prototype.query = function (decorated, params, callback) {
  108851. params.term = params.term || '';
  108852. if (params.term.length < this.minimumInputLength) {
  108853. this.trigger('results:message', {
  108854. message: 'inputTooShort',
  108855. args: {
  108856. minimum: this.minimumInputLength,
  108857. input: params.term,
  108858. params: params
  108859. }
  108860. });
  108861. return;
  108862. }
  108863. decorated.call(this, params, callback);
  108864. };
  108865. return MinimumInputLength;
  108866. });
  108867. S2.define('select2/data/maximumInputLength',[
  108868. ], function () {
  108869. function MaximumInputLength (decorated, $e, options) {
  108870. this.maximumInputLength = options.get('maximumInputLength');
  108871. decorated.call(this, $e, options);
  108872. }
  108873. MaximumInputLength.prototype.query = function (decorated, params, callback) {
  108874. params.term = params.term || '';
  108875. if (this.maximumInputLength > 0 &&
  108876. params.term.length > this.maximumInputLength) {
  108877. this.trigger('results:message', {
  108878. message: 'inputTooLong',
  108879. args: {
  108880. maximum: this.maximumInputLength,
  108881. input: params.term,
  108882. params: params
  108883. }
  108884. });
  108885. return;
  108886. }
  108887. decorated.call(this, params, callback);
  108888. };
  108889. return MaximumInputLength;
  108890. });
  108891. S2.define('select2/data/maximumSelectionLength',[
  108892. ], function (){
  108893. function MaximumSelectionLength (decorated, $e, options) {
  108894. this.maximumSelectionLength = options.get('maximumSelectionLength');
  108895. decorated.call(this, $e, options);
  108896. }
  108897. MaximumSelectionLength.prototype.query =
  108898. function (decorated, params, callback) {
  108899. var self = this;
  108900. this.current(function (currentData) {
  108901. var count = currentData != null ? currentData.length : 0;
  108902. if (self.maximumSelectionLength > 0 &&
  108903. count >= self.maximumSelectionLength) {
  108904. self.trigger('results:message', {
  108905. message: 'maximumSelected',
  108906. args: {
  108907. maximum: self.maximumSelectionLength
  108908. }
  108909. });
  108910. return;
  108911. }
  108912. decorated.call(self, params, callback);
  108913. });
  108914. };
  108915. return MaximumSelectionLength;
  108916. });
  108917. S2.define('select2/dropdown',[
  108918. 'jquery',
  108919. './utils'
  108920. ], function ($, Utils) {
  108921. function Dropdown ($element, options) {
  108922. this.$element = $element;
  108923. this.options = options;
  108924. Dropdown.__super__.constructor.call(this);
  108925. }
  108926. Utils.Extend(Dropdown, Utils.Observable);
  108927. Dropdown.prototype.render = function () {
  108928. var $dropdown = $(
  108929. '<span class="select2-dropdown">' +
  108930. '<span class="select2-results"></span>' +
  108931. '</span>'
  108932. );
  108933. $dropdown.attr('dir', this.options.get('dir'));
  108934. this.$dropdown = $dropdown;
  108935. return $dropdown;
  108936. };
  108937. Dropdown.prototype.position = function ($dropdown, $container) {
  108938. // Should be implmented in subclasses
  108939. };
  108940. Dropdown.prototype.destroy = function () {
  108941. // Remove the dropdown from the DOM
  108942. this.$dropdown.remove();
  108943. };
  108944. return Dropdown;
  108945. });
  108946. S2.define('select2/dropdown/search',[
  108947. 'jquery',
  108948. '../utils'
  108949. ], function ($, Utils) {
  108950. function Search () { }
  108951. Search.prototype.render = function (decorated) {
  108952. var $rendered = decorated.call(this);
  108953. var $search = $(
  108954. '<span class="select2-search select2-search--dropdown">' +
  108955. '<input class="select2-search__field" type="search" tabindex="-1"' +
  108956. ' autocomplete="off" autocorrect="off" autocapitalize="off"' +
  108957. ' spellcheck="false" role="textbox" />' +
  108958. '</span>'
  108959. );
  108960. this.$searchContainer = $search;
  108961. this.$search = $search.find('input');
  108962. $rendered.prepend($search);
  108963. return $rendered;
  108964. };
  108965. Search.prototype.bind = function (decorated, container, $container) {
  108966. var self = this;
  108967. decorated.call(this, container, $container);
  108968. this.$search.on('keydown', function (evt) {
  108969. self.trigger('keypress', evt);
  108970. self._keyUpPrevented = evt.isDefaultPrevented();
  108971. });
  108972. // Workaround for browsers which do not support the `input` event
  108973. // This will prevent double-triggering of events for browsers which support
  108974. // both the `keyup` and `input` events.
  108975. this.$search.on('input', function (evt) {
  108976. // Unbind the duplicated `keyup` event
  108977. $(this).off('keyup');
  108978. });
  108979. this.$search.on('keyup input', function (evt) {
  108980. self.handleSearch(evt);
  108981. });
  108982. container.on('open', function () {
  108983. self.$search.attr('tabindex', 0);
  108984. self.$search.focus();
  108985. window.setTimeout(function () {
  108986. self.$search.focus();
  108987. }, 0);
  108988. });
  108989. container.on('close', function () {
  108990. self.$search.attr('tabindex', -1);
  108991. self.$search.val('');
  108992. });
  108993. container.on('results:all', function (params) {
  108994. if (params.query.term == null || params.query.term === '') {
  108995. var showSearch = self.showSearch(params);
  108996. if (showSearch) {
  108997. self.$searchContainer.removeClass('select2-search--hide');
  108998. } else {
  108999. self.$searchContainer.addClass('select2-search--hide');
  109000. }
  109001. }
  109002. });
  109003. };
  109004. Search.prototype.handleSearch = function (evt) {
  109005. if (!this._keyUpPrevented) {
  109006. var input = this.$search.val();
  109007. this.trigger('query', {
  109008. term: input
  109009. });
  109010. }
  109011. this._keyUpPrevented = false;
  109012. };
  109013. Search.prototype.showSearch = function (_, params) {
  109014. return true;
  109015. };
  109016. return Search;
  109017. });
  109018. S2.define('select2/dropdown/hidePlaceholder',[
  109019. ], function () {
  109020. function HidePlaceholder (decorated, $element, options, dataAdapter) {
  109021. this.placeholder = this.normalizePlaceholder(options.get('placeholder'));
  109022. decorated.call(this, $element, options, dataAdapter);
  109023. }
  109024. HidePlaceholder.prototype.append = function (decorated, data) {
  109025. data.results = this.removePlaceholder(data.results);
  109026. decorated.call(this, data);
  109027. };
  109028. HidePlaceholder.prototype.normalizePlaceholder = function (_, placeholder) {
  109029. if (typeof placeholder === 'string') {
  109030. placeholder = {
  109031. id: '',
  109032. text: placeholder
  109033. };
  109034. }
  109035. return placeholder;
  109036. };
  109037. HidePlaceholder.prototype.removePlaceholder = function (_, data) {
  109038. var modifiedData = data.slice(0);
  109039. for (var d = data.length - 1; d >= 0; d--) {
  109040. var item = data[d];
  109041. if (this.placeholder.id === item.id) {
  109042. modifiedData.splice(d, 1);
  109043. }
  109044. }
  109045. return modifiedData;
  109046. };
  109047. return HidePlaceholder;
  109048. });
  109049. S2.define('select2/dropdown/infiniteScroll',[
  109050. 'jquery'
  109051. ], function ($) {
  109052. function InfiniteScroll (decorated, $element, options, dataAdapter) {
  109053. this.lastParams = {};
  109054. decorated.call(this, $element, options, dataAdapter);
  109055. this.$loadingMore = this.createLoadingMore();
  109056. this.loading = false;
  109057. }
  109058. InfiniteScroll.prototype.append = function (decorated, data) {
  109059. this.$loadingMore.remove();
  109060. this.loading = false;
  109061. decorated.call(this, data);
  109062. if (this.showLoadingMore(data)) {
  109063. this.$results.append(this.$loadingMore);
  109064. }
  109065. };
  109066. InfiniteScroll.prototype.bind = function (decorated, container, $container) {
  109067. var self = this;
  109068. decorated.call(this, container, $container);
  109069. container.on('query', function (params) {
  109070. self.lastParams = params;
  109071. self.loading = true;
  109072. });
  109073. container.on('query:append', function (params) {
  109074. self.lastParams = params;
  109075. self.loading = true;
  109076. });
  109077. this.$results.on('scroll', function () {
  109078. var isLoadMoreVisible = $.contains(
  109079. document.documentElement,
  109080. self.$loadingMore[0]
  109081. );
  109082. if (self.loading || !isLoadMoreVisible) {
  109083. return;
  109084. }
  109085. var currentOffset = self.$results.offset().top +
  109086. self.$results.outerHeight(false);
  109087. var loadingMoreOffset = self.$loadingMore.offset().top +
  109088. self.$loadingMore.outerHeight(false);
  109089. if (currentOffset + 50 >= loadingMoreOffset) {
  109090. self.loadMore();
  109091. }
  109092. });
  109093. };
  109094. InfiniteScroll.prototype.loadMore = function () {
  109095. this.loading = true;
  109096. var params = $.extend({}, {page: 1}, this.lastParams);
  109097. params.page++;
  109098. this.trigger('query:append', params);
  109099. };
  109100. InfiniteScroll.prototype.showLoadingMore = function (_, data) {
  109101. return data.pagination && data.pagination.more;
  109102. };
  109103. InfiniteScroll.prototype.createLoadingMore = function () {
  109104. var $option = $(
  109105. '<li class="option load-more" role="treeitem"></li>'
  109106. );
  109107. var message = this.options.get('translations').get('loadingMore');
  109108. $option.html(message(this.lastParams));
  109109. return $option;
  109110. };
  109111. return InfiniteScroll;
  109112. });
  109113. S2.define('select2/dropdown/attachBody',[
  109114. 'jquery',
  109115. '../utils'
  109116. ], function ($, Utils) {
  109117. function AttachBody (decorated, $element, options) {
  109118. this.$dropdownParent = options.get('dropdownParent') || document.body;
  109119. decorated.call(this, $element, options);
  109120. }
  109121. AttachBody.prototype.bind = function (decorated, container, $container) {
  109122. var self = this;
  109123. var setupResultsEvents = false;
  109124. decorated.call(this, container, $container);
  109125. container.on('open', function () {
  109126. self._showDropdown();
  109127. self._attachPositioningHandler(container);
  109128. if (!setupResultsEvents) {
  109129. setupResultsEvents = true;
  109130. container.on('results:all', function () {
  109131. self._positionDropdown();
  109132. self._resizeDropdown();
  109133. });
  109134. container.on('results:append', function () {
  109135. self._positionDropdown();
  109136. self._resizeDropdown();
  109137. });
  109138. }
  109139. });
  109140. container.on('close', function () {
  109141. self._hideDropdown();
  109142. self._detachPositioningHandler(container);
  109143. });
  109144. this.$dropdownContainer.on('mousedown', function (evt) {
  109145. evt.stopPropagation();
  109146. });
  109147. };
  109148. AttachBody.prototype.position = function (decorated, $dropdown, $container) {
  109149. // Clone all of the container classes
  109150. $dropdown.attr('class', $container.attr('class'));
  109151. $dropdown.removeClass('select2');
  109152. $dropdown.addClass('select2-container--open');
  109153. $dropdown.css({
  109154. position: 'absolute',
  109155. top: -999999
  109156. });
  109157. this.$container = $container;
  109158. };
  109159. AttachBody.prototype.render = function (decorated) {
  109160. var $container = $('<span></span>');
  109161. var $dropdown = decorated.call(this);
  109162. $container.append($dropdown);
  109163. this.$dropdownContainer = $container;
  109164. return $container;
  109165. };
  109166. AttachBody.prototype._hideDropdown = function (decorated) {
  109167. this.$dropdownContainer.detach();
  109168. };
  109169. AttachBody.prototype._attachPositioningHandler = function (container) {
  109170. var self = this;
  109171. var scrollEvent = 'scroll.select2.' + container.id;
  109172. var resizeEvent = 'resize.select2.' + container.id;
  109173. var orientationEvent = 'orientationchange.select2.' + container.id;
  109174. var $watchers = this.$container.parents().filter(Utils.hasScroll);
  109175. $watchers.each(function () {
  109176. $(this).data('select2-scroll-position', {
  109177. x: $(this).scrollLeft(),
  109178. y: $(this).scrollTop()
  109179. });
  109180. });
  109181. $watchers.on(scrollEvent, function (ev) {
  109182. var position = $(this).data('select2-scroll-position');
  109183. $(this).scrollTop(position.y);
  109184. });
  109185. $(window).on(scrollEvent + ' ' + resizeEvent + ' ' + orientationEvent,
  109186. function (e) {
  109187. self._positionDropdown();
  109188. self._resizeDropdown();
  109189. });
  109190. };
  109191. AttachBody.prototype._detachPositioningHandler = function (container) {
  109192. var scrollEvent = 'scroll.select2.' + container.id;
  109193. var resizeEvent = 'resize.select2.' + container.id;
  109194. var orientationEvent = 'orientationchange.select2.' + container.id;
  109195. var $watchers = this.$container.parents().filter(Utils.hasScroll);
  109196. $watchers.off(scrollEvent);
  109197. $(window).off(scrollEvent + ' ' + resizeEvent + ' ' + orientationEvent);
  109198. };
  109199. AttachBody.prototype._positionDropdown = function () {
  109200. var $window = $(window);
  109201. var isCurrentlyAbove = this.$dropdown.hasClass('select2-dropdown--above');
  109202. var isCurrentlyBelow = this.$dropdown.hasClass('select2-dropdown--below');
  109203. var newDirection = null;
  109204. var position = this.$container.position();
  109205. var offset = this.$container.offset();
  109206. offset.bottom = offset.top + this.$container.outerHeight(false);
  109207. var container = {
  109208. height: this.$container.outerHeight(false)
  109209. };
  109210. container.top = offset.top;
  109211. container.bottom = offset.top + container.height;
  109212. var dropdown = {
  109213. height: this.$dropdown.outerHeight(false)
  109214. };
  109215. var viewport = {
  109216. top: $window.scrollTop(),
  109217. bottom: $window.scrollTop() + $window.height()
  109218. };
  109219. var enoughRoomAbove = viewport.top < (offset.top - dropdown.height);
  109220. var enoughRoomBelow = viewport.bottom > (offset.bottom + dropdown.height);
  109221. var css = {
  109222. left: offset.left,
  109223. top: container.bottom
  109224. };
  109225. if (!isCurrentlyAbove && !isCurrentlyBelow) {
  109226. newDirection = 'below';
  109227. }
  109228. if (!enoughRoomBelow && enoughRoomAbove && !isCurrentlyAbove) {
  109229. newDirection = 'above';
  109230. } else if (!enoughRoomAbove && enoughRoomBelow && isCurrentlyAbove) {
  109231. newDirection = 'below';
  109232. }
  109233. if (newDirection == 'above' ||
  109234. (isCurrentlyAbove && newDirection !== 'below')) {
  109235. css.top = container.top - dropdown.height;
  109236. }
  109237. if (newDirection != null) {
  109238. this.$dropdown
  109239. .removeClass('select2-dropdown--below select2-dropdown--above')
  109240. .addClass('select2-dropdown--' + newDirection);
  109241. this.$container
  109242. .removeClass('select2-container--below select2-container--above')
  109243. .addClass('select2-container--' + newDirection);
  109244. }
  109245. this.$dropdownContainer.css(css);
  109246. };
  109247. AttachBody.prototype._resizeDropdown = function () {
  109248. this.$dropdownContainer.width();
  109249. var css = {
  109250. width: this.$container.outerWidth(false) + 'px'
  109251. };
  109252. if (this.options.get('dropdownAutoWidth')) {
  109253. css.minWidth = css.width;
  109254. css.width = 'auto';
  109255. }
  109256. this.$dropdown.css(css);
  109257. };
  109258. AttachBody.prototype._showDropdown = function (decorated) {
  109259. this.$dropdownContainer.appendTo(this.$dropdownParent);
  109260. this._positionDropdown();
  109261. this._resizeDropdown();
  109262. };
  109263. return AttachBody;
  109264. });
  109265. S2.define('select2/dropdown/minimumResultsForSearch',[
  109266. ], function () {
  109267. function countResults (data) {
  109268. var count = 0;
  109269. for (var d = 0; d < data.length; d++) {
  109270. var item = data[d];
  109271. if (item.children) {
  109272. count += countResults(item.children);
  109273. } else {
  109274. count++;
  109275. }
  109276. }
  109277. return count;
  109278. }
  109279. function MinimumResultsForSearch (decorated, $element, options, dataAdapter) {
  109280. this.minimumResultsForSearch = options.get('minimumResultsForSearch');
  109281. if (this.minimumResultsForSearch < 0) {
  109282. this.minimumResultsForSearch = Infinity;
  109283. }
  109284. decorated.call(this, $element, options, dataAdapter);
  109285. }
  109286. MinimumResultsForSearch.prototype.showSearch = function (decorated, params) {
  109287. if (countResults(params.data.results) < this.minimumResultsForSearch) {
  109288. return false;
  109289. }
  109290. return decorated.call(this, params);
  109291. };
  109292. return MinimumResultsForSearch;
  109293. });
  109294. S2.define('select2/dropdown/selectOnClose',[
  109295. ], function () {
  109296. function SelectOnClose () { }
  109297. SelectOnClose.prototype.bind = function (decorated, container, $container) {
  109298. var self = this;
  109299. decorated.call(this, container, $container);
  109300. container.on('close', function () {
  109301. self._handleSelectOnClose();
  109302. });
  109303. };
  109304. SelectOnClose.prototype._handleSelectOnClose = function () {
  109305. var $highlightedResults = this.getHighlightedResults();
  109306. if ($highlightedResults.length < 1) {
  109307. return;
  109308. }
  109309. this.trigger('select', {
  109310. data: $highlightedResults.data('data')
  109311. });
  109312. };
  109313. return SelectOnClose;
  109314. });
  109315. S2.define('select2/dropdown/closeOnSelect',[
  109316. ], function () {
  109317. function CloseOnSelect () { }
  109318. CloseOnSelect.prototype.bind = function (decorated, container, $container) {
  109319. var self = this;
  109320. decorated.call(this, container, $container);
  109321. container.on('select', function (evt) {
  109322. self._selectTriggered(evt);
  109323. });
  109324. container.on('unselect', function (evt) {
  109325. self._selectTriggered(evt);
  109326. });
  109327. };
  109328. CloseOnSelect.prototype._selectTriggered = function (_, evt) {
  109329. var originalEvent = evt.originalEvent;
  109330. // Don't close if the control key is being held
  109331. if (originalEvent && originalEvent.ctrlKey) {
  109332. return;
  109333. }
  109334. this.trigger('close');
  109335. };
  109336. return CloseOnSelect;
  109337. });
  109338. S2.define('select2/i18n/en',[],function () {
  109339. // English
  109340. return {
  109341. errorLoading: function () {
  109342. return 'The results could not be loaded.';
  109343. },
  109344. inputTooLong: function (args) {
  109345. var overChars = args.input.length - args.maximum;
  109346. var message = 'Please delete ' + overChars + ' character';
  109347. if (overChars != 1) {
  109348. message += 's';
  109349. }
  109350. return message;
  109351. },
  109352. inputTooShort: function (args) {
  109353. var remainingChars = args.minimum - args.input.length;
  109354. var message = 'Please enter ' + remainingChars + ' or more characters';
  109355. return message;
  109356. },
  109357. loadingMore: function () {
  109358. return 'Loading more results…';
  109359. },
  109360. maximumSelected: function (args) {
  109361. var message = 'You can only select ' + args.maximum + ' item';
  109362. if (args.maximum != 1) {
  109363. message += 's';
  109364. }
  109365. return message;
  109366. },
  109367. noResults: function () {
  109368. return 'No results found';
  109369. },
  109370. searching: function () {
  109371. return 'Searching…';
  109372. }
  109373. };
  109374. });
  109375. S2.define('select2/defaults',[
  109376. 'jquery',
  109377. 'require',
  109378. './results',
  109379. './selection/single',
  109380. './selection/multiple',
  109381. './selection/placeholder',
  109382. './selection/allowClear',
  109383. './selection/search',
  109384. './selection/eventRelay',
  109385. './utils',
  109386. './translation',
  109387. './diacritics',
  109388. './data/select',
  109389. './data/array',
  109390. './data/ajax',
  109391. './data/tags',
  109392. './data/tokenizer',
  109393. './data/minimumInputLength',
  109394. './data/maximumInputLength',
  109395. './data/maximumSelectionLength',
  109396. './dropdown',
  109397. './dropdown/search',
  109398. './dropdown/hidePlaceholder',
  109399. './dropdown/infiniteScroll',
  109400. './dropdown/attachBody',
  109401. './dropdown/minimumResultsForSearch',
  109402. './dropdown/selectOnClose',
  109403. './dropdown/closeOnSelect',
  109404. './i18n/en'
  109405. ], function ($, require,
  109406. ResultsList,
  109407. SingleSelection, MultipleSelection, Placeholder, AllowClear,
  109408. SelectionSearch, EventRelay,
  109409. Utils, Translation, DIACRITICS,
  109410. SelectData, ArrayData, AjaxData, Tags, Tokenizer,
  109411. MinimumInputLength, MaximumInputLength, MaximumSelectionLength,
  109412. Dropdown, DropdownSearch, HidePlaceholder, InfiniteScroll,
  109413. AttachBody, MinimumResultsForSearch, SelectOnClose, CloseOnSelect,
  109414. EnglishTranslation) {
  109415. function Defaults () {
  109416. this.reset();
  109417. }
  109418. Defaults.prototype.apply = function (options) {
  109419. options = $.extend({}, this.defaults, options);
  109420. if (options.dataAdapter == null) {
  109421. if (options.ajax != null) {
  109422. options.dataAdapter = AjaxData;
  109423. } else if (options.data != null) {
  109424. options.dataAdapter = ArrayData;
  109425. } else {
  109426. options.dataAdapter = SelectData;
  109427. }
  109428. if (options.minimumInputLength > 0) {
  109429. options.dataAdapter = Utils.Decorate(
  109430. options.dataAdapter,
  109431. MinimumInputLength
  109432. );
  109433. }
  109434. if (options.maximumInputLength > 0) {
  109435. options.dataAdapter = Utils.Decorate(
  109436. options.dataAdapter,
  109437. MaximumInputLength
  109438. );
  109439. }
  109440. if (options.maximumSelectionLength > 0) {
  109441. options.dataAdapter = Utils.Decorate(
  109442. options.dataAdapter,
  109443. MaximumSelectionLength
  109444. );
  109445. }
  109446. if (options.tags) {
  109447. options.dataAdapter = Utils.Decorate(options.dataAdapter, Tags);
  109448. }
  109449. if (options.tokenSeparators != null || options.tokenizer != null) {
  109450. options.dataAdapter = Utils.Decorate(
  109451. options.dataAdapter,
  109452. Tokenizer
  109453. );
  109454. }
  109455. if (options.query != null) {
  109456. var Query = require(options.amdBase + 'compat/query');
  109457. options.dataAdapter = Utils.Decorate(
  109458. options.dataAdapter,
  109459. Query
  109460. );
  109461. }
  109462. if (options.initSelection != null) {
  109463. var InitSelection = require(options.amdBase + 'compat/initSelection');
  109464. options.dataAdapter = Utils.Decorate(
  109465. options.dataAdapter,
  109466. InitSelection
  109467. );
  109468. }
  109469. }
  109470. if (options.resultsAdapter == null) {
  109471. options.resultsAdapter = ResultsList;
  109472. if (options.ajax != null) {
  109473. options.resultsAdapter = Utils.Decorate(
  109474. options.resultsAdapter,
  109475. InfiniteScroll
  109476. );
  109477. }
  109478. if (options.placeholder != null) {
  109479. options.resultsAdapter = Utils.Decorate(
  109480. options.resultsAdapter,
  109481. HidePlaceholder
  109482. );
  109483. }
  109484. if (options.selectOnClose) {
  109485. options.resultsAdapter = Utils.Decorate(
  109486. options.resultsAdapter,
  109487. SelectOnClose
  109488. );
  109489. }
  109490. }
  109491. if (options.dropdownAdapter == null) {
  109492. if (options.multiple) {
  109493. options.dropdownAdapter = Dropdown;
  109494. } else {
  109495. var SearchableDropdown = Utils.Decorate(Dropdown, DropdownSearch);
  109496. options.dropdownAdapter = SearchableDropdown;
  109497. }
  109498. if (options.minimumResultsForSearch !== 0) {
  109499. options.dropdownAdapter = Utils.Decorate(
  109500. options.dropdownAdapter,
  109501. MinimumResultsForSearch
  109502. );
  109503. }
  109504. if (options.closeOnSelect) {
  109505. options.dropdownAdapter = Utils.Decorate(
  109506. options.dropdownAdapter,
  109507. CloseOnSelect
  109508. );
  109509. }
  109510. if (
  109511. options.dropdownCssClass != null ||
  109512. options.dropdownCss != null ||
  109513. options.adaptDropdownCssClass != null
  109514. ) {
  109515. var DropdownCSS = require(options.amdBase + 'compat/dropdownCss');
  109516. options.dropdownAdapter = Utils.Decorate(
  109517. options.dropdownAdapter,
  109518. DropdownCSS
  109519. );
  109520. }
  109521. options.dropdownAdapter = Utils.Decorate(
  109522. options.dropdownAdapter,
  109523. AttachBody
  109524. );
  109525. }
  109526. if (options.selectionAdapter == null) {
  109527. if (options.multiple) {
  109528. options.selectionAdapter = MultipleSelection;
  109529. } else {
  109530. options.selectionAdapter = SingleSelection;
  109531. }
  109532. // Add the placeholder mixin if a placeholder was specified
  109533. if (options.placeholder != null) {
  109534. options.selectionAdapter = Utils.Decorate(
  109535. options.selectionAdapter,
  109536. Placeholder
  109537. );
  109538. }
  109539. if (options.allowClear) {
  109540. options.selectionAdapter = Utils.Decorate(
  109541. options.selectionAdapter,
  109542. AllowClear
  109543. );
  109544. }
  109545. if (options.multiple) {
  109546. options.selectionAdapter = Utils.Decorate(
  109547. options.selectionAdapter,
  109548. SelectionSearch
  109549. );
  109550. }
  109551. if (
  109552. options.containerCssClass != null ||
  109553. options.containerCss != null ||
  109554. options.adaptContainerCssClass != null
  109555. ) {
  109556. var ContainerCSS = require(options.amdBase + 'compat/containerCss');
  109557. options.selectionAdapter = Utils.Decorate(
  109558. options.selectionAdapter,
  109559. ContainerCSS
  109560. );
  109561. }
  109562. options.selectionAdapter = Utils.Decorate(
  109563. options.selectionAdapter,
  109564. EventRelay
  109565. );
  109566. }
  109567. if (typeof options.language === 'string') {
  109568. // Check if the language is specified with a region
  109569. if (options.language.indexOf('-') > 0) {
  109570. // Extract the region information if it is included
  109571. var languageParts = options.language.split('-');
  109572. var baseLanguage = languageParts[0];
  109573. options.language = [options.language, baseLanguage];
  109574. } else {
  109575. options.language = [options.language];
  109576. }
  109577. }
  109578. if ($.isArray(options.language)) {
  109579. var languages = new Translation();
  109580. options.language.push('en');
  109581. var languageNames = options.language;
  109582. for (var l = 0; l < languageNames.length; l++) {
  109583. var name = languageNames[l];
  109584. var language = {};
  109585. try {
  109586. // Try to load it with the original name
  109587. language = Translation.loadPath(name);
  109588. } catch (e) {
  109589. try {
  109590. // If we couldn't load it, check if it wasn't the full path
  109591. name = this.defaults.amdLanguageBase + name;
  109592. language = Translation.loadPath(name);
  109593. } catch (ex) {
  109594. // The translation could not be loaded at all. Sometimes this is
  109595. // because of a configuration problem, other times this can be
  109596. // because of how Select2 helps load all possible translation files.
  109597. if (options.debug && window.console && console.warn) {
  109598. console.warn(
  109599. 'Select2: The language file for "' + name + '" could not be ' +
  109600. 'automatically loaded. A fallback will be used instead.'
  109601. );
  109602. }
  109603. continue;
  109604. }
  109605. }
  109606. languages.extend(language);
  109607. }
  109608. options.translations = languages;
  109609. } else {
  109610. var baseTranslation = Translation.loadPath(
  109611. this.defaults.amdLanguageBase + 'en'
  109612. );
  109613. var customTranslation = new Translation(options.language);
  109614. customTranslation.extend(baseTranslation);
  109615. options.translations = customTranslation;
  109616. }
  109617. return options;
  109618. };
  109619. Defaults.prototype.reset = function () {
  109620. function stripDiacritics (text) {
  109621. // Used 'uni range + named function' from http://jsperf.com/diacritics/18
  109622. function match(a) {
  109623. return DIACRITICS[a] || a;
  109624. }
  109625. return text.replace(/[^\u0000-\u007E]/g, match);
  109626. }
  109627. function matcher (params, data) {
  109628. // Always return the object if there is nothing to compare
  109629. if ($.trim(params.term) === '') {
  109630. return data;
  109631. }
  109632. // Do a recursive check for options with children
  109633. if (data.children && data.children.length > 0) {
  109634. // Clone the data object if there are children
  109635. // This is required as we modify the object to remove any non-matches
  109636. var match = $.extend(true, {}, data);
  109637. // Check each child of the option
  109638. for (var c = data.children.length - 1; c >= 0; c--) {
  109639. var child = data.children[c];
  109640. var matches = matcher(params, child);
  109641. // If there wasn't a match, remove the object in the array
  109642. if (matches == null) {
  109643. match.children.splice(c, 1);
  109644. }
  109645. }
  109646. // If any children matched, return the new object
  109647. if (match.children.length > 0) {
  109648. return match;
  109649. }
  109650. // If there were no matching children, check just the plain object
  109651. return matcher(params, match);
  109652. }
  109653. var original = stripDiacritics(data.text).toUpperCase();
  109654. var term = stripDiacritics(params.term).toUpperCase();
  109655. // Check if the text contains the term
  109656. if (original.indexOf(term) > -1) {
  109657. return data;
  109658. }
  109659. // If it doesn't contain the term, don't return anything
  109660. return null;
  109661. }
  109662. this.defaults = {
  109663. amdBase: './',
  109664. amdLanguageBase: './i18n/',
  109665. closeOnSelect: true,
  109666. debug: false,
  109667. dropdownAutoWidth: false,
  109668. escapeMarkup: Utils.escapeMarkup,
  109669. language: EnglishTranslation,
  109670. matcher: matcher,
  109671. minimumInputLength: 0,
  109672. maximumInputLength: 0,
  109673. maximumSelectionLength: 0,
  109674. minimumResultsForSearch: 0,
  109675. selectOnClose: false,
  109676. sorter: function (data) {
  109677. return data;
  109678. },
  109679. templateResult: function (result) {
  109680. return result.text;
  109681. },
  109682. templateSelection: function (selection) {
  109683. return selection.text;
  109684. },
  109685. theme: 'default',
  109686. width: 'resolve'
  109687. };
  109688. };
  109689. Defaults.prototype.set = function (key, value) {
  109690. var camelKey = $.camelCase(key);
  109691. var data = {};
  109692. data[camelKey] = value;
  109693. var convertedData = Utils._convertData(data);
  109694. $.extend(this.defaults, convertedData);
  109695. };
  109696. var defaults = new Defaults();
  109697. return defaults;
  109698. });
  109699. S2.define('select2/options',[
  109700. 'require',
  109701. 'jquery',
  109702. './defaults',
  109703. './utils'
  109704. ], function (require, $, Defaults, Utils) {
  109705. function Options (options, $element) {
  109706. this.options = options;
  109707. if ($element != null) {
  109708. this.fromElement($element);
  109709. }
  109710. this.options = Defaults.apply(this.options);
  109711. if ($element && $element.is('input')) {
  109712. var InputCompat = require(this.get('amdBase') + 'compat/inputData');
  109713. this.options.dataAdapter = Utils.Decorate(
  109714. this.options.dataAdapter,
  109715. InputCompat
  109716. );
  109717. }
  109718. }
  109719. Options.prototype.fromElement = function ($e) {
  109720. var excludedData = ['select2'];
  109721. if (this.options.multiple == null) {
  109722. this.options.multiple = $e.prop('multiple');
  109723. }
  109724. if (this.options.disabled == null) {
  109725. this.options.disabled = $e.prop('disabled');
  109726. }
  109727. if (this.options.language == null) {
  109728. if ($e.prop('lang')) {
  109729. this.options.language = $e.prop('lang').toLowerCase();
  109730. } else if ($e.closest('[lang]').prop('lang')) {
  109731. this.options.language = $e.closest('[lang]').prop('lang');
  109732. }
  109733. }
  109734. if (this.options.dir == null) {
  109735. if ($e.prop('dir')) {
  109736. this.options.dir = $e.prop('dir');
  109737. } else if ($e.closest('[dir]').prop('dir')) {
  109738. this.options.dir = $e.closest('[dir]').prop('dir');
  109739. } else {
  109740. this.options.dir = 'ltr';
  109741. }
  109742. }
  109743. $e.prop('disabled', this.options.disabled);
  109744. $e.prop('multiple', this.options.multiple);
  109745. if ($e.data('select2Tags')) {
  109746. if (this.options.debug && window.console && console.warn) {
  109747. console.warn(
  109748. 'Select2: The `data-select2-tags` attribute has been changed to ' +
  109749. 'use the `data-data` and `data-tags="true"` attributes and will be ' +
  109750. 'removed in future versions of Select2.'
  109751. );
  109752. }
  109753. $e.data('data', $e.data('select2Tags'));
  109754. $e.data('tags', true);
  109755. }
  109756. if ($e.data('ajaxUrl')) {
  109757. if (this.options.debug && window.console && console.warn) {
  109758. console.warn(
  109759. 'Select2: The `data-ajax-url` attribute has been changed to ' +
  109760. '`data-ajax--url` and support for the old attribute will be removed' +
  109761. ' in future versions of Select2.'
  109762. );
  109763. }
  109764. $e.attr('ajax--url', $e.data('ajaxUrl'));
  109765. $e.data('ajax--url', $e.data('ajaxUrl'));
  109766. }
  109767. var dataset = {};
  109768. // Prefer the element's `dataset` attribute if it exists
  109769. // jQuery 1.x does not correctly handle data attributes with multiple dashes
  109770. if ($.fn.jquery && $.fn.jquery.substr(0, 2) == '1.' && $e[0].dataset) {
  109771. dataset = $.extend(true, {}, $e[0].dataset, $e.data());
  109772. } else {
  109773. dataset = $e.data();
  109774. }
  109775. var data = $.extend(true, {}, dataset);
  109776. data = Utils._convertData(data);
  109777. for (var key in data) {
  109778. if ($.inArray(key, excludedData) > -1) {
  109779. continue;
  109780. }
  109781. if ($.isPlainObject(this.options[key])) {
  109782. $.extend(this.options[key], data[key]);
  109783. } else {
  109784. this.options[key] = data[key];
  109785. }
  109786. }
  109787. return this;
  109788. };
  109789. Options.prototype.get = function (key) {
  109790. return this.options[key];
  109791. };
  109792. Options.prototype.set = function (key, val) {
  109793. this.options[key] = val;
  109794. };
  109795. return Options;
  109796. });
  109797. S2.define('select2/core',[
  109798. 'jquery',
  109799. './options',
  109800. './utils',
  109801. './keys'
  109802. ], function ($, Options, Utils, KEYS) {
  109803. var Select2 = function ($element, options) {
  109804. if ($element.data('select2') != null) {
  109805. $element.data('select2').destroy();
  109806. }
  109807. this.$element = $element;
  109808. this.id = this._generateId($element);
  109809. options = options || {};
  109810. this.options = new Options(options, $element);
  109811. Select2.__super__.constructor.call(this);
  109812. // Set up the tabindex
  109813. var tabindex = $element.attr('tabindex') || 0;
  109814. $element.data('old-tabindex', tabindex);
  109815. $element.attr('tabindex', '-1');
  109816. // Set up containers and adapters
  109817. var DataAdapter = this.options.get('dataAdapter');
  109818. this.dataAdapter = new DataAdapter($element, this.options);
  109819. var $container = this.render();
  109820. this._placeContainer($container);
  109821. var SelectionAdapter = this.options.get('selectionAdapter');
  109822. this.selection = new SelectionAdapter($element, this.options);
  109823. this.$selection = this.selection.render();
  109824. this.selection.position(this.$selection, $container);
  109825. var DropdownAdapter = this.options.get('dropdownAdapter');
  109826. this.dropdown = new DropdownAdapter($element, this.options);
  109827. this.$dropdown = this.dropdown.render();
  109828. this.dropdown.position(this.$dropdown, $container);
  109829. var ResultsAdapter = this.options.get('resultsAdapter');
  109830. this.results = new ResultsAdapter($element, this.options, this.dataAdapter);
  109831. this.$results = this.results.render();
  109832. this.results.position(this.$results, this.$dropdown);
  109833. // Bind events
  109834. var self = this;
  109835. // Bind the container to all of the adapters
  109836. this._bindAdapters();
  109837. // Register any DOM event handlers
  109838. this._registerDomEvents();
  109839. // Register any internal event handlers
  109840. this._registerDataEvents();
  109841. this._registerSelectionEvents();
  109842. this._registerDropdownEvents();
  109843. this._registerResultsEvents();
  109844. this._registerEvents();
  109845. // Set the initial state
  109846. this.dataAdapter.current(function (initialData) {
  109847. self.trigger('selection:update', {
  109848. data: initialData
  109849. });
  109850. });
  109851. // Hide the original select
  109852. $element.addClass('select2-hidden-accessible');
  109853. $element.attr('aria-hidden', 'true');
  109854. // Synchronize any monitored attributes
  109855. this._syncAttributes();
  109856. $element.data('select2', this);
  109857. };
  109858. Utils.Extend(Select2, Utils.Observable);
  109859. Select2.prototype._generateId = function ($element) {
  109860. var id = '';
  109861. if ($element.attr('id') != null) {
  109862. id = $element.attr('id');
  109863. } else if ($element.attr('name') != null) {
  109864. id = $element.attr('name') + '-' + Utils.generateChars(2);
  109865. } else {
  109866. id = Utils.generateChars(4);
  109867. }
  109868. id = 'select2-' + id;
  109869. return id;
  109870. };
  109871. Select2.prototype._placeContainer = function ($container) {
  109872. $container.insertAfter(this.$element);
  109873. var width = this._resolveWidth(this.$element, this.options.get('width'));
  109874. if (width != null) {
  109875. $container.css('width', width);
  109876. }
  109877. };
  109878. Select2.prototype._resolveWidth = function ($element, method) {
  109879. var WIDTH = /^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;
  109880. if (method == 'resolve') {
  109881. var styleWidth = this._resolveWidth($element, 'style');
  109882. if (styleWidth != null) {
  109883. return styleWidth;
  109884. }
  109885. return this._resolveWidth($element, 'element');
  109886. }
  109887. if (method == 'element') {
  109888. var elementWidth = $element.outerWidth(false);
  109889. if (elementWidth <= 0) {
  109890. return 'auto';
  109891. }
  109892. return elementWidth + 'px';
  109893. }
  109894. if (method == 'style') {
  109895. var style = $element.attr('style');
  109896. if (typeof(style) !== 'string') {
  109897. return null;
  109898. }
  109899. var attrs = style.split(';');
  109900. for (var i = 0, l = attrs.length; i < l; i = i + 1) {
  109901. var attr = attrs[i].replace(/\s/g, '');
  109902. var matches = attr.match(WIDTH);
  109903. if (matches !== null && matches.length >= 1) {
  109904. return matches[1];
  109905. }
  109906. }
  109907. return null;
  109908. }
  109909. return method;
  109910. };
  109911. Select2.prototype._bindAdapters = function () {
  109912. this.dataAdapter.bind(this, this.$container);
  109913. this.selection.bind(this, this.$container);
  109914. this.dropdown.bind(this, this.$container);
  109915. this.results.bind(this, this.$container);
  109916. };
  109917. Select2.prototype._registerDomEvents = function () {
  109918. var self = this;
  109919. this.$element.on('change.select2', function () {
  109920. self.dataAdapter.current(function (data) {
  109921. self.trigger('selection:update', {
  109922. data: data
  109923. });
  109924. });
  109925. });
  109926. this._sync = Utils.bind(this._syncAttributes, this);
  109927. if (this.$element[0].attachEvent) {
  109928. this.$element[0].attachEvent('onpropertychange', this._sync);
  109929. }
  109930. var observer = window.MutationObserver ||
  109931. window.WebKitMutationObserver ||
  109932. window.MozMutationObserver
  109933. ;
  109934. if (observer != null) {
  109935. this._observer = new observer(function (mutations) {
  109936. $.each(mutations, self._sync);
  109937. });
  109938. this._observer.observe(this.$element[0], {
  109939. attributes: true,
  109940. subtree: false
  109941. });
  109942. } else if (this.$element[0].addEventListener) {
  109943. this.$element[0].addEventListener('DOMAttrModified', self._sync, false);
  109944. }
  109945. };
  109946. Select2.prototype._registerDataEvents = function () {
  109947. var self = this;
  109948. this.dataAdapter.on('*', function (name, params) {
  109949. self.trigger(name, params);
  109950. });
  109951. };
  109952. Select2.prototype._registerSelectionEvents = function () {
  109953. var self = this;
  109954. var nonRelayEvents = ['toggle'];
  109955. this.selection.on('toggle', function () {
  109956. self.toggleDropdown();
  109957. });
  109958. this.selection.on('*', function (name, params) {
  109959. if ($.inArray(name, nonRelayEvents) !== -1) {
  109960. return;
  109961. }
  109962. self.trigger(name, params);
  109963. });
  109964. };
  109965. Select2.prototype._registerDropdownEvents = function () {
  109966. var self = this;
  109967. this.dropdown.on('*', function (name, params) {
  109968. self.trigger(name, params);
  109969. });
  109970. };
  109971. Select2.prototype._registerResultsEvents = function () {
  109972. var self = this;
  109973. this.results.on('*', function (name, params) {
  109974. self.trigger(name, params);
  109975. });
  109976. };
  109977. Select2.prototype._registerEvents = function () {
  109978. var self = this;
  109979. this.on('open', function () {
  109980. self.$container.addClass('select2-container--open');
  109981. });
  109982. this.on('close', function () {
  109983. self.$container.removeClass('select2-container--open');
  109984. });
  109985. this.on('enable', function () {
  109986. self.$container.removeClass('select2-container--disabled');
  109987. });
  109988. this.on('disable', function () {
  109989. self.$container.addClass('select2-container--disabled');
  109990. });
  109991. this.on('focus', function () {
  109992. self.$container.addClass('select2-container--focus');
  109993. });
  109994. this.on('blur', function () {
  109995. self.$container.removeClass('select2-container--focus');
  109996. });
  109997. this.on('query', function (params) {
  109998. if (!self.isOpen()) {
  109999. self.trigger('open');
  110000. }
  110001. this.dataAdapter.query(params, function (data) {
  110002. self.trigger('results:all', {
  110003. data: data,
  110004. query: params
  110005. });
  110006. });
  110007. });
  110008. this.on('query:append', function (params) {
  110009. this.dataAdapter.query(params, function (data) {
  110010. self.trigger('results:append', {
  110011. data: data,
  110012. query: params
  110013. });
  110014. });
  110015. });
  110016. this.on('keypress', function (evt) {
  110017. var key = evt.which;
  110018. if (self.isOpen()) {
  110019. if (key === KEYS.ENTER) {
  110020. self.trigger('results:select');
  110021. evt.preventDefault();
  110022. } else if ((key === KEYS.SPACE && evt.ctrlKey)) {
  110023. self.trigger('results:toggle');
  110024. evt.preventDefault();
  110025. } else if (key === KEYS.UP) {
  110026. self.trigger('results:previous');
  110027. evt.preventDefault();
  110028. } else if (key === KEYS.DOWN) {
  110029. self.trigger('results:next');
  110030. evt.preventDefault();
  110031. } else if (key === KEYS.ESC || key === KEYS.TAB) {
  110032. self.close();
  110033. evt.preventDefault();
  110034. }
  110035. } else {
  110036. if (key === KEYS.ENTER || key === KEYS.SPACE ||
  110037. ((key === KEYS.DOWN || key === KEYS.UP) && evt.altKey)) {
  110038. self.open();
  110039. evt.preventDefault();
  110040. }
  110041. }
  110042. });
  110043. };
  110044. Select2.prototype._syncAttributes = function () {
  110045. this.options.set('disabled', this.$element.prop('disabled'));
  110046. if (this.options.get('disabled')) {
  110047. if (this.isOpen()) {
  110048. this.close();
  110049. }
  110050. this.trigger('disable');
  110051. } else {
  110052. this.trigger('enable');
  110053. }
  110054. };
  110055. /**
  110056. * Override the trigger method to automatically trigger pre-events when
  110057. * there are events that can be prevented.
  110058. */
  110059. Select2.prototype.trigger = function (name, args) {
  110060. var actualTrigger = Select2.__super__.trigger;
  110061. var preTriggerMap = {
  110062. 'open': 'opening',
  110063. 'close': 'closing',
  110064. 'select': 'selecting',
  110065. 'unselect': 'unselecting'
  110066. };
  110067. if (name in preTriggerMap) {
  110068. var preTriggerName = preTriggerMap[name];
  110069. var preTriggerArgs = {
  110070. prevented: false,
  110071. name: name,
  110072. args: args
  110073. };
  110074. actualTrigger.call(this, preTriggerName, preTriggerArgs);
  110075. if (preTriggerArgs.prevented) {
  110076. args.prevented = true;
  110077. return;
  110078. }
  110079. }
  110080. actualTrigger.call(this, name, args);
  110081. };
  110082. Select2.prototype.toggleDropdown = function () {
  110083. if (this.options.get('disabled')) {
  110084. return;
  110085. }
  110086. if (this.isOpen()) {
  110087. this.close();
  110088. } else {
  110089. this.open();
  110090. }
  110091. };
  110092. Select2.prototype.open = function () {
  110093. if (this.isOpen()) {
  110094. return;
  110095. }
  110096. this.trigger('query', {});
  110097. this.trigger('open');
  110098. };
  110099. Select2.prototype.close = function () {
  110100. if (!this.isOpen()) {
  110101. return;
  110102. }
  110103. this.trigger('close');
  110104. };
  110105. Select2.prototype.isOpen = function () {
  110106. return this.$container.hasClass('select2-container--open');
  110107. };
  110108. Select2.prototype.enable = function (args) {
  110109. if (this.options.get('debug') && window.console && console.warn) {
  110110. console.warn(
  110111. 'Select2: The `select2("enable")` method has been deprecated and will' +
  110112. ' be removed in later Select2 versions. Use $element.prop("disabled")' +
  110113. ' instead.'
  110114. );
  110115. }
  110116. if (args == null || args.length === 0) {
  110117. args = [true];
  110118. }
  110119. var disabled = !args[0];
  110120. this.$element.prop('disabled', disabled);
  110121. };
  110122. Select2.prototype.data = function () {
  110123. if (this.options.get('debug') &&
  110124. arguments.length > 0 && window.console && console.warn) {
  110125. console.warn(
  110126. 'Select2: Data can no longer be set using `select2("data")`. You ' +
  110127. 'should consider setting the value instead using `$element.val()`.'
  110128. );
  110129. }
  110130. var data = [];
  110131. this.dataAdapter.current(function (currentData) {
  110132. data = currentData;
  110133. });
  110134. return data;
  110135. };
  110136. Select2.prototype.val = function (args) {
  110137. if (this.options.get('debug') && window.console && console.warn) {
  110138. console.warn(
  110139. 'Select2: The `select2("val")` method has been deprecated and will be' +
  110140. ' removed in later Select2 versions. Use $element.val() instead.'
  110141. );
  110142. }
  110143. if (args == null || args.length === 0) {
  110144. return this.$element.val();
  110145. }
  110146. var newVal = args[0];
  110147. if ($.isArray(newVal)) {
  110148. newVal = $.map(newVal, function (obj) {
  110149. return obj.toString();
  110150. });
  110151. }
  110152. this.$element.val(newVal).trigger('change');
  110153. };
  110154. Select2.prototype.destroy = function () {
  110155. this.$container.remove();
  110156. if (this.$element[0].detachEvent) {
  110157. this.$element[0].detachEvent('onpropertychange', this._sync);
  110158. }
  110159. if (this._observer != null) {
  110160. this._observer.disconnect();
  110161. this._observer = null;
  110162. } else if (this.$element[0].removeEventListener) {
  110163. this.$element[0]
  110164. .removeEventListener('DOMAttrModified', this._sync, false);
  110165. }
  110166. this._sync = null;
  110167. this.$element.off('.select2');
  110168. this.$element.attr('tabindex', this.$element.data('old-tabindex'));
  110169. this.$element.removeClass('select2-hidden-accessible');
  110170. this.$element.attr('aria-hidden', 'false');
  110171. this.$element.removeData('select2');
  110172. this.dataAdapter.destroy();
  110173. this.selection.destroy();
  110174. this.dropdown.destroy();
  110175. this.results.destroy();
  110176. this.dataAdapter = null;
  110177. this.selection = null;
  110178. this.dropdown = null;
  110179. this.results = null;
  110180. };
  110181. Select2.prototype.render = function () {
  110182. var $container = $(
  110183. '<span class="select2 select2-container">' +
  110184. '<span class="selection"></span>' +
  110185. '<span class="dropdown-wrapper" aria-hidden="true"></span>' +
  110186. '</span>'
  110187. );
  110188. $container.attr('dir', this.options.get('dir'));
  110189. this.$container = $container;
  110190. this.$container.addClass('select2-container--' + this.options.get('theme'));
  110191. $container.data('element', this.$element);
  110192. return $container;
  110193. };
  110194. return Select2;
  110195. });
  110196. S2.define('jquery.select2',[
  110197. 'jquery',
  110198. 'require',
  110199. './select2/core',
  110200. './select2/defaults'
  110201. ], function ($, require, Select2, Defaults) {
  110202. // Force jQuery.mousewheel to be loaded if it hasn't already
  110203. require('jquery.mousewheel');
  110204. if ($.fn.select2 == null) {
  110205. // All methods that should return the element
  110206. var thisMethods = ['open', 'close', 'destroy'];
  110207. $.fn.select2 = function (options) {
  110208. options = options || {};
  110209. if (typeof options === 'object') {
  110210. this.each(function () {
  110211. var instanceOptions = $.extend({}, options, true);
  110212. var instance = new Select2($(this), instanceOptions);
  110213. });
  110214. return this;
  110215. } else if (typeof options === 'string') {
  110216. var instance = this.data('select2');
  110217. if (instance == null && window.console && console.error) {
  110218. console.error(
  110219. 'The select2(\'' + options + '\') method was called on an ' +
  110220. 'element that is not using Select2.'
  110221. );
  110222. }
  110223. var args = Array.prototype.slice.call(arguments, 1);
  110224. var ret = instance[options](args);
  110225. // Check if we should be returning `this`
  110226. if ($.inArray(options, thisMethods) > -1) {
  110227. return this;
  110228. }
  110229. return ret;
  110230. } else {
  110231. throw new Error('Invalid arguments for Select2: ' + options);
  110232. }
  110233. };
  110234. }
  110235. if ($.fn.select2.defaults == null) {
  110236. $.fn.select2.defaults = Defaults;
  110237. }
  110238. return Select2;
  110239. });
  110240. S2.define('jquery.mousewheel',[
  110241. 'jquery'
  110242. ], function ($) {
  110243. // Used to shim jQuery.mousewheel for non-full builds.
  110244. return $;
  110245. });
  110246. // Return the AMD loader configuration so it can be used outside of this file
  110247. return {
  110248. define: S2.define,
  110249. require: S2.require
  110250. };
  110251. }());
  110252. // Autoload the jQuery bindings
  110253. // We know that all of the modules exist above this, so we're safe
  110254. var select2 = S2.require('jquery.select2');
  110255. // Hold the AMD module references on the jQuery function that was just loaded
  110256. // This allows Select2 to use the internal loader outside of this file, such
  110257. // as in the language files.
  110258. jQuery.fn.select2.amd = S2;
  110259. // Return the Select2 instance for anyone who is importing it.
  110260. return select2;
  110261. }));
  110262. /*
  110263. Uniform v2.1.0
  110264. Copyright © 2009 Josh Pyles / Pixelmatrix Design LLC
  110265. http://pixelmatrixdesign.com
  110266. Requires jQuery 1.3 or newer
  110267. Much thanks to Thomas Reynolds and Buck Wilson for their help and advice on
  110268. this.
  110269. Disabling text selection is made possible by Mathias Bynens
  110270. <http://mathiasbynens.be/> and his noSelect plugin.
  110271. <https://github.com/mathiasbynens/jquery-noselect>, which is embedded.
  110272. Also, thanks to David Kaneda and Eugene Bond for their contributions to the
  110273. plugin.
  110274. Tyler Akins has also rewritten chunks of the plugin, helped close many issues,
  110275. and ensured version 2 got out the door.
  110276. License:
  110277. MIT License - http://www.opensource.org/licenses/mit-license.php
  110278. Enjoy!
  110279. */
  110280. /*global jQuery, window, document, navigator*/
  110281. (function ($, undef) {
  110282. "use strict";
  110283. /**
  110284. * Use .prop() if jQuery supports it, otherwise fall back to .attr()
  110285. *
  110286. * @param jQuery $el jQuery'd element on which we're calling attr/prop
  110287. * @param ... All other parameters are passed to jQuery's function
  110288. * @return The result from jQuery
  110289. */
  110290. function attrOrProp($el) {
  110291. var args = Array.prototype.slice.call(arguments, 1);
  110292. if ($el.prop) {
  110293. // jQuery 1.6+
  110294. return $el.prop.apply($el, args);
  110295. }
  110296. // jQuery 1.5 and below
  110297. return $el.attr.apply($el, args);
  110298. }
  110299. /**
  110300. * For backwards compatibility with older jQuery libraries, only bind
  110301. * one thing at a time. Also, this function adds our namespace to
  110302. * events in one consistent location, shrinking the minified code.
  110303. *
  110304. * The properties on the events object are the names of the events
  110305. * that we are supposed to add to. It can be a space separated list.
  110306. * The namespace will be added automatically.
  110307. *
  110308. * @param jQuery $el
  110309. * @param Object options Uniform options for this element
  110310. * @param Object events Events to bind, properties are event names
  110311. */
  110312. function bindMany($el, options, events) {
  110313. var name, namespaced;
  110314. for (name in events) {
  110315. if (events.hasOwnProperty(name)) {
  110316. namespaced = name.replace(/ |$/g, options.eventNamespace);
  110317. $el.bind(namespaced, events[name]);
  110318. }
  110319. }
  110320. }
  110321. /**
  110322. * Bind the hover, active, focus, and blur UI updates
  110323. *
  110324. * @param jQuery $el Original element
  110325. * @param jQuery $target Target for the events (our div/span)
  110326. * @param Object options Uniform options for the element $target
  110327. */
  110328. function bindUi($el, $target, options) {
  110329. bindMany($el, options, {
  110330. focus: function () {
  110331. $target.addClass(options.focusClass);
  110332. },
  110333. blur: function () {
  110334. $target.removeClass(options.focusClass);
  110335. $target.removeClass(options.activeClass);
  110336. },
  110337. mouseenter: function () {
  110338. $target.addClass(options.hoverClass);
  110339. },
  110340. mouseleave: function () {
  110341. $target.removeClass(options.hoverClass);
  110342. $target.removeClass(options.activeClass);
  110343. },
  110344. "mousedown touchbegin": function () {
  110345. if (!$el.is(":disabled")) {
  110346. $target.addClass(options.activeClass);
  110347. }
  110348. },
  110349. "mouseup touchend": function () {
  110350. $target.removeClass(options.activeClass);
  110351. }
  110352. });
  110353. }
  110354. /**
  110355. * Remove the hover, focus, active classes.
  110356. *
  110357. * @param jQuery $el Element with classes
  110358. * @param Object options Uniform options for the element
  110359. */
  110360. function classClearStandard($el, options) {
  110361. $el.removeClass(options.hoverClass + " " + options.focusClass + " " + options.activeClass);
  110362. }
  110363. /**
  110364. * Add or remove a class, depending on if it's "enabled"
  110365. *
  110366. * @param jQuery $el Element that has the class added/removed
  110367. * @param String className Class or classes to add/remove
  110368. * @param Boolean enabled True to add the class, false to remove
  110369. */
  110370. function classUpdate($el, className, enabled) {
  110371. if (enabled) {
  110372. $el.addClass(className);
  110373. } else {
  110374. $el.removeClass(className);
  110375. }
  110376. }
  110377. /**
  110378. * Updating the "checked" property can be a little tricky. This
  110379. * changed in jQuery 1.6 and now we can pass booleans to .prop().
  110380. * Prior to that, one either adds an attribute ("checked=checked") or
  110381. * removes the attribute.
  110382. *
  110383. * @param jQuery $tag Our Uniform span/div
  110384. * @param jQuery $el Original form element
  110385. * @param Object options Uniform options for this element
  110386. */
  110387. function classUpdateChecked($tag, $el, options) {
  110388. var c = "checked",
  110389. isChecked = $el.is(":" + c);
  110390. if ($el.prop) {
  110391. // jQuery 1.6+
  110392. $el.prop(c, isChecked);
  110393. } else {
  110394. // jQuery 1.5 and below
  110395. if (isChecked) {
  110396. $el.attr(c, c);
  110397. } else {
  110398. $el.removeAttr(c);
  110399. }
  110400. }
  110401. classUpdate($tag, options.checkedClass, isChecked);
  110402. }
  110403. /**
  110404. * Set or remove the "disabled" class for disabled elements, based on
  110405. * if the
  110406. *
  110407. * @param jQuery $tag Our Uniform span/div
  110408. * @param jQuery $el Original form element
  110409. * @param Object options Uniform options for this element
  110410. */
  110411. function classUpdateDisabled($tag, $el, options) {
  110412. classUpdate($tag, options.disabledClass, $el.is(":disabled"));
  110413. }
  110414. /**
  110415. * Wrap an element inside of a container or put the container next
  110416. * to the element. See the code for examples of the different methods.
  110417. *
  110418. * Returns the container that was added to the HTML.
  110419. *
  110420. * @param jQuery $el Element to wrap
  110421. * @param jQuery $container Add this new container around/near $el
  110422. * @param String method One of "after", "before" or "wrap"
  110423. * @return $container after it has been cloned for adding to $el
  110424. */
  110425. function divSpanWrap($el, $container, method) {
  110426. switch (method) {
  110427. case "after":
  110428. // Result: <element /> <container />
  110429. $el.after($container);
  110430. return $el.next();
  110431. case "before":
  110432. // Result: <container /> <element />
  110433. $el.before($container);
  110434. return $el.prev();
  110435. case "wrap":
  110436. // Result: <container> <element /> </container>
  110437. $el.wrap($container);
  110438. return $el.parent();
  110439. }
  110440. return null;
  110441. }
  110442. /**
  110443. * Create a div/span combo for uniforming an element
  110444. *
  110445. * @param jQuery $el Element to wrap
  110446. * @param Object options Options for the element, set by the user
  110447. * @param Object divSpanConfig Options for how we wrap the div/span
  110448. * @return Object Contains the div and span as properties
  110449. */
  110450. function divSpan($el, options, divSpanConfig) {
  110451. var $div, $span, id;
  110452. if (!divSpanConfig) {
  110453. divSpanConfig = {};
  110454. }
  110455. divSpanConfig = $.extend({
  110456. bind: {},
  110457. divClass: null,
  110458. divWrap: "wrap",
  110459. spanClass: null,
  110460. spanHtml: null,
  110461. spanWrap: "wrap"
  110462. }, divSpanConfig);
  110463. $div = $('<div />');
  110464. $span = $('<span />');
  110465. // Automatically hide this div/span if the element is hidden.
  110466. // Do not hide if the element is hidden because a parent is hidden.
  110467. if (options.autoHide && $el.is(':hidden') && $el.css('display') === 'none') {
  110468. $div.hide();
  110469. }
  110470. if (divSpanConfig.divClass) {
  110471. $div.addClass(divSpanConfig.divClass);
  110472. }
  110473. if (options.wrapperClass) {
  110474. $div.addClass(options.wrapperClass);
  110475. }
  110476. if (divSpanConfig.spanClass) {
  110477. $span.addClass(divSpanConfig.spanClass);
  110478. }
  110479. id = attrOrProp($el, 'id');
  110480. if (options.useID && id) {
  110481. attrOrProp($div, 'id', options.idPrefix + '-' + id);
  110482. }
  110483. if (divSpanConfig.spanHtml) {
  110484. $span.html(divSpanConfig.spanHtml);
  110485. }
  110486. $div = divSpanWrap($el, $div, divSpanConfig.divWrap);
  110487. $span = divSpanWrap($el, $span, divSpanConfig.spanWrap);
  110488. classUpdateDisabled($div, $el, options);
  110489. return {
  110490. div: $div,
  110491. span: $span
  110492. };
  110493. }
  110494. /**
  110495. * Wrap an element with a span to apply a global wrapper class
  110496. *
  110497. * @param jQuery $el Element to wrap
  110498. * @param object options
  110499. * @return jQuery Wrapper element
  110500. */
  110501. function wrapWithWrapperClass($el, options) {
  110502. var $span;
  110503. if (!options.wrapperClass) {
  110504. return null;
  110505. }
  110506. $span = $('<span />').addClass(options.wrapperClass);
  110507. $span = divSpanWrap($el, $span, "wrap");
  110508. return $span;
  110509. }
  110510. /**
  110511. * Test if high contrast mode is enabled.
  110512. *
  110513. * In high contrast mode, background images can not be set and
  110514. * they are always returned as 'none'.
  110515. *
  110516. * @return boolean True if in high contrast mode
  110517. */
  110518. function highContrast() {
  110519. var c, $div, el, rgb;
  110520. // High contrast mode deals with white and black
  110521. rgb = 'rgb(120,2,153)';
  110522. $div = $('<div style="width:0;height:0;color:' + rgb + '">');
  110523. $('body').append($div);
  110524. el = $div.get(0);
  110525. // $div.css() will get the style definition, not
  110526. // the actually displaying style
  110527. if (window.getComputedStyle) {
  110528. c = window.getComputedStyle(el, '').color;
  110529. } else {
  110530. c = (el.currentStyle || el.style || {}).color;
  110531. }
  110532. $div.remove();
  110533. return c.replace(/ /g, '') !== rgb;
  110534. }
  110535. /**
  110536. * Change text into safe HTML
  110537. *
  110538. * @param String text
  110539. * @return String HTML version
  110540. */
  110541. function htmlify(text) {
  110542. if (!text) {
  110543. return "";
  110544. }
  110545. return $('<span />').text(text).html();
  110546. }
  110547. /**
  110548. * If not MSIE, return false.
  110549. * If it is, return the version number.
  110550. *
  110551. * @return false|number
  110552. */
  110553. function isMsie() {
  110554. return navigator.cpuClass && !navigator.product;
  110555. }
  110556. /**
  110557. * Return true if this version of IE allows styling
  110558. *
  110559. * @return boolean
  110560. */
  110561. function isMsieSevenOrNewer() {
  110562. if (typeof window.XMLHttpRequest !== 'undefined') {
  110563. return true;
  110564. }
  110565. return false;
  110566. }
  110567. /**
  110568. * Test if the element is a multiselect
  110569. *
  110570. * @param jQuery $el Element
  110571. * @return boolean true/false
  110572. */
  110573. function isMultiselect($el) {
  110574. var elSize;
  110575. if ($el[0].multiple) {
  110576. return true;
  110577. }
  110578. elSize = attrOrProp($el, "size");
  110579. if (!elSize || elSize <= 1) {
  110580. return false;
  110581. }
  110582. return true;
  110583. }
  110584. /**
  110585. * Meaningless utility function. Used mostly for improving minification.
  110586. *
  110587. * @return false
  110588. */
  110589. function returnFalse() {
  110590. return false;
  110591. }
  110592. /**
  110593. * noSelect plugin, very slightly modified
  110594. * http://mths.be/noselect v1.0.3
  110595. *
  110596. * @param jQuery $elem Element that we don't want to select
  110597. * @param Object options Uniform options for the element
  110598. */
  110599. function noSelect($elem, options) {
  110600. var none = 'none';
  110601. bindMany($elem, options, {
  110602. 'selectstart dragstart mousedown': returnFalse
  110603. });
  110604. $elem.css({
  110605. MozUserSelect: none,
  110606. msUserSelect: none,
  110607. webkitUserSelect: none,
  110608. userSelect: none
  110609. });
  110610. }
  110611. /**
  110612. * Updates the filename tag based on the value of the real input
  110613. * element.
  110614. *
  110615. * @param jQuery $el Actual form element
  110616. * @param jQuery $filenameTag Span/div to update
  110617. * @param Object options Uniform options for this element
  110618. */
  110619. function setFilename($el, $filenameTag, options) {
  110620. var filename = $el.val();
  110621. if (filename === "") {
  110622. filename = options.fileDefaultHtml;
  110623. } else {
  110624. filename = filename.split(/[\/\\]+/);
  110625. filename = filename[(filename.length - 1)];
  110626. }
  110627. $filenameTag.text(filename);
  110628. }
  110629. /**
  110630. * Function from jQuery to swap some CSS values, run a callback,
  110631. * then restore the CSS. Modified to pass JSLint and handle undefined
  110632. * values with 'use strict'.
  110633. *
  110634. * @param jQuery $el Element
  110635. * @param object newCss CSS values to swap out
  110636. * @param Function callback Function to run
  110637. */
  110638. function swap($elements, newCss, callback) {
  110639. var restore, item;
  110640. restore = [];
  110641. $elements.each(function () {
  110642. var name;
  110643. for (name in newCss) {
  110644. if (Object.prototype.hasOwnProperty.call(newCss, name)) {
  110645. restore.push({
  110646. el: this,
  110647. name: name,
  110648. old: this.style[name]
  110649. });
  110650. this.style[name] = newCss[name];
  110651. }
  110652. }
  110653. });
  110654. callback();
  110655. while (restore.length) {
  110656. item = restore.pop();
  110657. item.el.style[item.name] = item.old;
  110658. }
  110659. }
  110660. /**
  110661. * The browser doesn't provide sizes of elements that are not visible.
  110662. * This will clone an element and add it to the DOM for calculations.
  110663. *
  110664. * @param jQuery $el
  110665. * @param String method
  110666. */
  110667. function sizingInvisible($el, callback) {
  110668. var targets;
  110669. // We wish to target ourselves and any parents as long as
  110670. // they are not visible
  110671. targets = $el.parents();
  110672. targets.push($el[0]);
  110673. targets = targets.not(':visible');
  110674. swap(targets, {
  110675. visibility: "hidden",
  110676. display: "block",
  110677. position: "absolute"
  110678. }, callback);
  110679. }
  110680. /**
  110681. * Standard way to unwrap the div/span combination from an element
  110682. *
  110683. * @param jQuery $el Element that we wish to preserve
  110684. * @param Object options Uniform options for the element
  110685. * @return Function This generated function will perform the given work
  110686. */
  110687. function unwrapUnwrapUnbindFunction($el, options) {
  110688. return function () {
  110689. $el.unwrap().unwrap().unbind(options.eventNamespace);
  110690. };
  110691. }
  110692. var allowStyling = true, // False if IE6 or other unsupported browsers
  110693. highContrastTest = false, // Was the high contrast test ran?
  110694. uniformHandlers = [ // Objects that take care of "unification"
  110695. {
  110696. // Buttons
  110697. match: function ($el) {
  110698. return $el.is("a, button, :submit, :reset, input[type='button']");
  110699. },
  110700. apply: function ($el, options) {
  110701. var $div, defaultSpanHtml, ds, getHtml, doingClickEvent;
  110702. defaultSpanHtml = options.submitDefaultHtml;
  110703. if ($el.is(":reset")) {
  110704. defaultSpanHtml = options.resetDefaultHtml;
  110705. }
  110706. if ($el.is("a, button")) {
  110707. // Use the HTML inside the tag
  110708. getHtml = function () {
  110709. return $el.html() || defaultSpanHtml;
  110710. };
  110711. } else {
  110712. // Use the value property of the element
  110713. getHtml = function () {
  110714. return htmlify(attrOrProp($el, "value")) || defaultSpanHtml;
  110715. };
  110716. }
  110717. ds = divSpan($el, options, {
  110718. divClass: options.buttonClass,
  110719. spanHtml: getHtml(),
  110720. });
  110721. $div = ds.div;
  110722. bindUi($el, $div, options);
  110723. doingClickEvent = false;
  110724. bindMany($div, options, {
  110725. "click touchend": function () {
  110726. var ev, res, target, href;
  110727. if (doingClickEvent) {
  110728. return;
  110729. }
  110730. if ($el.is(':disabled')) {
  110731. return;
  110732. }
  110733. doingClickEvent = true;
  110734. if ($el[0].dispatchEvent) {
  110735. ev = document.createEvent("MouseEvents");
  110736. ev.initEvent("click", true, true);
  110737. res = $el[0].dispatchEvent(ev);
  110738. if ($el.is('a') && res) {
  110739. target = attrOrProp($el, 'target');
  110740. href = attrOrProp($el, 'href');
  110741. if (!target || target === '_self') {
  110742. document.location.href = href;
  110743. } else {
  110744. window.open(href, target);
  110745. }
  110746. }
  110747. } else {
  110748. $el.click();
  110749. }
  110750. doingClickEvent = false;
  110751. }
  110752. });
  110753. noSelect($div, options);
  110754. return {
  110755. remove: function () {
  110756. // Move $el out
  110757. $div.after($el);
  110758. // Remove div and span
  110759. $div.remove();
  110760. // Unbind events
  110761. $el.unbind(options.eventNamespace);
  110762. return $el;
  110763. },
  110764. update: function () {
  110765. classClearStandard($div, options);
  110766. classUpdateDisabled($div, $el, options);
  110767. $el.detach();
  110768. ds.span.html(getHtml()).append($el);
  110769. }
  110770. };
  110771. }
  110772. },
  110773. {
  110774. // Checkboxes
  110775. match: function ($el) {
  110776. return $el.is(":checkbox");
  110777. },
  110778. apply: function ($el, options) {
  110779. var ds, $div, $span;
  110780. ds = divSpan($el, options, {
  110781. divClass: options.checkboxClass
  110782. });
  110783. $div = ds.div;
  110784. $span = ds.span;
  110785. // Add focus classes, toggling, active, etc.
  110786. bindUi($el, $div, options);
  110787. bindMany($el, options, {
  110788. "click touchend": function () {
  110789. classUpdateChecked($span, $el, options);
  110790. }
  110791. });
  110792. classUpdateChecked($span, $el, options);
  110793. return {
  110794. remove: unwrapUnwrapUnbindFunction($el, options),
  110795. update: function () {
  110796. classClearStandard($div, options);
  110797. $span.removeClass(options.checkedClass);
  110798. classUpdateChecked($span, $el, options);
  110799. classUpdateDisabled($div, $el, options);
  110800. }
  110801. };
  110802. }
  110803. },
  110804. {
  110805. // File selection / uploads
  110806. match: function ($el) {
  110807. return $el.is(":file");
  110808. },
  110809. apply: function ($el, options) {
  110810. var ds, $div, $filename, $button;
  110811. // The "span" is the button
  110812. ds = divSpan($el, options, {
  110813. divClass: options.fileClass,
  110814. spanClass: options.fileButtonClass,
  110815. spanHtml: options.fileButtonHtml,
  110816. spanWrap: "after"
  110817. });
  110818. $div = ds.div;
  110819. $button = ds.span;
  110820. $filename = $("<span />").html(options.fileDefaultHtml);
  110821. $filename.addClass(options.filenameClass);
  110822. $filename = divSpanWrap($el, $filename, "after");
  110823. // Set the size
  110824. if (!attrOrProp($el, "size")) {
  110825. attrOrProp($el, "size", $div.width() / 10);
  110826. }
  110827. // Actions
  110828. function filenameUpdate() {
  110829. setFilename($el, $filename, options);
  110830. }
  110831. bindUi($el, $div, options);
  110832. // Account for input saved across refreshes
  110833. filenameUpdate();
  110834. // IE7 doesn't fire onChange until blur or second fire.
  110835. if (isMsie()) {
  110836. // IE considers browser chrome blocking I/O, so it
  110837. // suspends tiemouts until after the file has
  110838. // been selected.
  110839. bindMany($el, options, {
  110840. click: function () {
  110841. $el.trigger("change");
  110842. setTimeout(filenameUpdate, 0);
  110843. }
  110844. });
  110845. } else {
  110846. // All other browsers behave properly
  110847. bindMany($el, options, {
  110848. change: filenameUpdate
  110849. });
  110850. }
  110851. noSelect($filename, options);
  110852. noSelect($button, options);
  110853. return {
  110854. remove: function () {
  110855. // Remove filename and button
  110856. $filename.remove();
  110857. $button.remove();
  110858. // Unwrap parent div, remove events
  110859. return $el.unwrap().unbind(options.eventNamespace);
  110860. },
  110861. update: function () {
  110862. classClearStandard($div, options);
  110863. setFilename($el, $filename, options);
  110864. classUpdateDisabled($div, $el, options);
  110865. }
  110866. };
  110867. }
  110868. },
  110869. {
  110870. // Input fields (text)
  110871. match: function ($el) {
  110872. if ($el.is("input")) {
  110873. var t = (" " + attrOrProp($el, "type") + " ").toLowerCase(),
  110874. allowed = " color date datetime datetime-local email month number password search tel text time url week ";
  110875. return allowed.indexOf(t) >= 0;
  110876. }
  110877. return false;
  110878. },
  110879. apply: function ($el, options) {
  110880. var elType, $wrapper;
  110881. elType = attrOrProp($el, "type");
  110882. $el.addClass(options.inputClass);
  110883. $wrapper = wrapWithWrapperClass($el, options);
  110884. bindUi($el, $el, options);
  110885. if (options.inputAddTypeAsClass) {
  110886. $el.addClass(elType);
  110887. }
  110888. return {
  110889. remove: function () {
  110890. $el.removeClass(options.inputClass);
  110891. if (options.inputAddTypeAsClass) {
  110892. $el.removeClass(elType);
  110893. }
  110894. if ($wrapper) {
  110895. $el.unwrap();
  110896. }
  110897. },
  110898. update: returnFalse
  110899. };
  110900. }
  110901. },
  110902. {
  110903. // Radio buttons
  110904. match: function ($el) {
  110905. return $el.is(":radio");
  110906. },
  110907. apply: function ($el, options) {
  110908. var ds, $div, $span;
  110909. ds = divSpan($el, options, {
  110910. divClass: options.radioClass
  110911. });
  110912. $div = ds.div;
  110913. $span = ds.span;
  110914. // Add classes for focus, handle active, checked
  110915. bindUi($el, $div, options);
  110916. bindMany($el, options, {
  110917. "click touchend": function () {
  110918. // Find all radios with the same name, then update
  110919. // them with $.uniform.update() so the right
  110920. // per-element options are used
  110921. $.uniform.update($(':radio[name="' + attrOrProp($el, "name") + '"]'));
  110922. }
  110923. });
  110924. classUpdateChecked($span, $el, options);
  110925. return {
  110926. remove: unwrapUnwrapUnbindFunction($el, options),
  110927. update: function () {
  110928. classClearStandard($div, options);
  110929. classUpdateChecked($span, $el, options);
  110930. classUpdateDisabled($div, $el, options);
  110931. }
  110932. };
  110933. }
  110934. },
  110935. {
  110936. // Select lists, but do not style multiselects here
  110937. match: function ($el) {
  110938. if ($el.is("select") && !isMultiselect($el)) {
  110939. return true;
  110940. }
  110941. return false;
  110942. },
  110943. apply: function ($el, options) {
  110944. var ds, $div, $span, origElemWidth;
  110945. if (options.selectAutoWidth) {
  110946. sizingInvisible($el, function () {
  110947. origElemWidth = $el.width();
  110948. });
  110949. }
  110950. ds = divSpan($el, options, {
  110951. divClass: options.selectClass,
  110952. spanHtml: ($el.find(":selected:first") || $el.find("option:first")).html(),
  110953. spanWrap: "before"
  110954. });
  110955. $div = ds.div;
  110956. $span = ds.span;
  110957. if (options.selectAutoWidth) {
  110958. // Use the width of the select and adjust the
  110959. // span and div accordingly
  110960. sizingInvisible($el, function () {
  110961. // Force "display: block" - related to bug #287
  110962. swap($([ $span[0], $div[0] ]), {
  110963. display: "block"
  110964. }, function () {
  110965. var spanPad;
  110966. spanPad = $span.outerWidth() - $span.width();
  110967. $div.width(origElemWidth + spanPad);
  110968. $span.width(origElemWidth);
  110969. });
  110970. });
  110971. } else {
  110972. // Force the select to fill the size of the div
  110973. $div.addClass('fixedWidth');
  110974. }
  110975. // Take care of events
  110976. bindUi($el, $div, options);
  110977. bindMany($el, options, {
  110978. change: function () {
  110979. $span.html($el.find(":selected").html());
  110980. $div.removeClass(options.activeClass);
  110981. },
  110982. "click touchend": function () {
  110983. // IE7 and IE8 may not update the value right
  110984. // until after click event - issue #238
  110985. var selHtml = $el.find(":selected").html();
  110986. if ($span.html() !== selHtml) {
  110987. // Change was detected
  110988. // Fire the change event on the select tag
  110989. $el.trigger('change');
  110990. }
  110991. },
  110992. keyup: function () {
  110993. $span.html($el.find(":selected").html());
  110994. }
  110995. });
  110996. noSelect($span, options);
  110997. return {
  110998. remove: function () {
  110999. // Remove sibling span
  111000. $span.remove();
  111001. // Unwrap parent div
  111002. $el.unwrap().unbind(options.eventNamespace);
  111003. return $el;
  111004. },
  111005. update: function () {
  111006. if (options.selectAutoWidth) {
  111007. // Easier to remove and reapply formatting
  111008. $.uniform.restore($el);
  111009. $el.uniform(options);
  111010. } else {
  111011. classClearStandard($div, options);
  111012. // Reset current selected text
  111013. $span.html($el.find(":selected").html());
  111014. classUpdateDisabled($div, $el, options);
  111015. }
  111016. }
  111017. };
  111018. }
  111019. },
  111020. {
  111021. // Select lists - multiselect lists only
  111022. match: function ($el) {
  111023. if ($el.is("select") && isMultiselect($el)) {
  111024. return true;
  111025. }
  111026. return false;
  111027. },
  111028. apply: function ($el, options) {
  111029. var $wrapper;
  111030. $el.addClass(options.selectMultiClass);
  111031. $wrapper = wrapWithWrapperClass($el, options);
  111032. bindUi($el, $el, options);
  111033. return {
  111034. remove: function () {
  111035. $el.removeClass(options.selectMultiClass);
  111036. if ($wrapper) {
  111037. $el.unwrap();
  111038. }
  111039. },
  111040. update: returnFalse
  111041. };
  111042. }
  111043. },
  111044. {
  111045. // Textareas
  111046. match: function ($el) {
  111047. return $el.is("textarea");
  111048. },
  111049. apply: function ($el, options) {
  111050. var $wrapper;
  111051. $el.addClass(options.textareaClass);
  111052. $wrapper = wrapWithWrapperClass($el, options);
  111053. bindUi($el, $el, options);
  111054. return {
  111055. remove: function () {
  111056. $el.removeClass(options.textareaClass);
  111057. if ($wrapper) {
  111058. $el.unwrap();
  111059. }
  111060. },
  111061. update: returnFalse
  111062. };
  111063. }
  111064. }
  111065. ];
  111066. // IE6 can't be styled - can't set opacity on select
  111067. if (isMsie() && !isMsieSevenOrNewer()) {
  111068. allowStyling = false;
  111069. }
  111070. $.uniform = {
  111071. // Default options that can be overridden globally or when uniformed
  111072. // globally: $.uniform.defaults.fileButtonHtml = "Pick A File";
  111073. // on uniform: $('input').uniform({fileButtonHtml: "Pick a File"});
  111074. defaults: {
  111075. activeClass: "active",
  111076. autoHide: true,
  111077. buttonClass: "button",
  111078. checkboxClass: "checker",
  111079. checkedClass: "checked",
  111080. disabledClass: "disabled",
  111081. eventNamespace: ".uniform",
  111082. fileButtonClass: "action",
  111083. fileButtonHtml: "Choose File",
  111084. fileClass: "uploader",
  111085. fileDefaultHtml: "No file selected",
  111086. filenameClass: "filename",
  111087. focusClass: "focus",
  111088. hoverClass: "hover",
  111089. idPrefix: "uniform",
  111090. inputAddTypeAsClass: true,
  111091. inputClass: "uniform-input",
  111092. radioClass: "radio",
  111093. resetDefaultHtml: "Reset",
  111094. resetSelector: false, // We'll use our own function when you don't specify one
  111095. selectAutoWidth: true,
  111096. selectClass: "selector",
  111097. selectMultiClass: "uniform-multiselect",
  111098. submitDefaultHtml: "Submit", // Only text allowed
  111099. textareaClass: "uniform",
  111100. useID: true,
  111101. wrapperClass: null
  111102. },
  111103. // All uniformed elements - DOM objects
  111104. elements: []
  111105. };
  111106. $.fn.uniform = function (options) {
  111107. var el = this;
  111108. options = $.extend({}, $.uniform.defaults, options);
  111109. // If we are in high contrast mode, do not allow styling
  111110. if (!highContrastTest) {
  111111. highContrastTest = true;
  111112. if (highContrast()) {
  111113. allowStyling = false;
  111114. }
  111115. }
  111116. // Only uniform on browsers that work
  111117. if (!allowStyling) {
  111118. return this;
  111119. }
  111120. // Code for specifying a reset button
  111121. if (options.resetSelector) {
  111122. $(options.resetSelector).mouseup(function () {
  111123. window.setTimeout(function () {
  111124. $.uniform.update(el);
  111125. }, 10);
  111126. });
  111127. }
  111128. return this.each(function () {
  111129. var $el = $(this), i, handler, callbacks;
  111130. // Avoid uniforming elements already uniformed - just update
  111131. if ($el.data("uniformed")) {
  111132. $.uniform.update($el);
  111133. return;
  111134. }
  111135. // See if we have any handler for this type of element
  111136. for (i = 0; i < uniformHandlers.length; i = i + 1) {
  111137. handler = uniformHandlers[i];
  111138. if (handler.match($el, options)) {
  111139. callbacks = handler.apply($el, options);
  111140. $el.data("uniformed", callbacks);
  111141. // Store element in our global array
  111142. $.uniform.elements.push($el.get(0));
  111143. return;
  111144. }
  111145. }
  111146. // Could not style this element
  111147. });
  111148. };
  111149. $.uniform.restore = $.fn.uniform.restore = function (elem) {
  111150. if (elem === undef) {
  111151. elem = $.uniform.elements;
  111152. }
  111153. $(elem).each(function () {
  111154. var $el = $(this), index, elementData;
  111155. elementData = $el.data("uniformed");
  111156. // Skip elements that are not uniformed
  111157. if (!elementData) {
  111158. return;
  111159. }
  111160. // Unbind events, remove additional markup that was added
  111161. elementData.remove();
  111162. // Remove item from list of uniformed elements
  111163. index = $.inArray(this, $.uniform.elements);
  111164. if (index >= 0) {
  111165. $.uniform.elements.splice(index, 1);
  111166. }
  111167. $el.removeData("uniformed");
  111168. });
  111169. };
  111170. $.uniform.update = $.fn.uniform.update = function (elem) {
  111171. if (elem === undef) {
  111172. elem = $.uniform.elements;
  111173. }
  111174. $(elem).each(function () {
  111175. var $el = $(this), elementData;
  111176. elementData = $el.data("uniformed");
  111177. // Skip elements that are not uniformed
  111178. if (!elementData) {
  111179. return;
  111180. }
  111181. elementData.update($el, elementData.options);
  111182. });
  111183. };
  111184. }(jQuery));
  111185. /* ===========================================================
  111186. * Bootstrap: fileinput.js v3.1.3
  111187. * http://jasny.github.com/bootstrap/javascript/#fileinput
  111188. * ===========================================================
  111189. * Copyright 2012-2014 Arnold Daniels
  111190. *
  111191. * Licensed under the Apache License, Version 2.0 (the "License")
  111192. * you may not use this file except in compliance with the License.
  111193. * You may obtain a copy of the License at
  111194. *
  111195. * http://www.apache.org/licenses/LICENSE-2.0
  111196. *
  111197. * Unless required by applicable law or agreed to in writing, software
  111198. * distributed under the License is distributed on an "AS IS" BASIS,
  111199. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  111200. * See the License for the specific language governing permissions and
  111201. * limitations under the License.
  111202. * ========================================================== */
  111203. +function ($) { "use strict";
  111204. var isIE = window.navigator.appName == 'Microsoft Internet Explorer'
  111205. // FILEUPLOAD PUBLIC CLASS DEFINITION
  111206. // =================================
  111207. var Fileinput = function (element, options) {
  111208. this.$element = $(element)
  111209. this.$input = this.$element.find(':file')
  111210. if (this.$input.length === 0) return
  111211. this.name = this.$input.attr('name') || options.name
  111212. this.$hidden = this.$element.find('input[type=hidden][name="' + this.name + '"]')
  111213. if (this.$hidden.length === 0) {
  111214. this.$hidden = $('<input type="hidden">').insertBefore(this.$input)
  111215. }
  111216. this.$preview = this.$element.find('.fileinput-preview')
  111217. var height = this.$preview.css('height')
  111218. if (this.$preview.css('display') !== 'inline' && height !== '0px' && height !== 'none') {
  111219. this.$preview.css('line-height', height)
  111220. }
  111221. this.original = {
  111222. exists: this.$element.hasClass('fileinput-exists'),
  111223. preview: this.$preview.html(),
  111224. hiddenVal: this.$hidden.val()
  111225. }
  111226. this.listen()
  111227. }
  111228. Fileinput.prototype.listen = function() {
  111229. this.$input.on('change.bs.fileinput', $.proxy(this.change, this))
  111230. $(this.$input[0].form).on('reset.bs.fileinput', $.proxy(this.reset, this))
  111231. this.$element.find('[data-trigger="fileinput"]').on('click.bs.fileinput', $.proxy(this.trigger, this))
  111232. this.$element.find('[data-dismiss="fileinput"]').on('click.bs.fileinput', $.proxy(this.clear, this))
  111233. },
  111234. Fileinput.prototype.change = function(e) {
  111235. var files = e.target.files === undefined ? (e.target && e.target.value ? [{ name: e.target.value.replace(/^.+\\/, '')}] : []) : e.target.files
  111236. e.stopPropagation()
  111237. if (files.length === 0) {
  111238. this.clear()
  111239. return
  111240. }
  111241. this.$hidden.val('')
  111242. this.$hidden.attr('name', '')
  111243. this.$input.attr('name', this.name)
  111244. var file = files[0]
  111245. if (this.$preview.length > 0 && (typeof file.type !== "undefined" ? file.type.match(/^image\/(gif|png|jpeg)$/) : file.name.match(/\.(gif|png|jpe?g)$/i)) && typeof FileReader !== "undefined") {
  111246. var reader = new FileReader()
  111247. var preview = this.$preview
  111248. var element = this.$element
  111249. reader.onload = function(re) {
  111250. var $img = $('<img>')
  111251. $img[0].src = re.target.result
  111252. files[0].result = re.target.result
  111253. element.find('.fileinput-filename').text(file.name)
  111254. // if parent has max-height, using `(max-)height: 100%` on child doesn't take padding and border into account
  111255. if (preview.css('max-height') != 'none') $img.css('max-height', parseInt(preview.css('max-height'), 10) - parseInt(preview.css('padding-top'), 10) - parseInt(preview.css('padding-bottom'), 10) - parseInt(preview.css('border-top'), 10) - parseInt(preview.css('border-bottom'), 10))
  111256. preview.html($img)
  111257. element.addClass('fileinput-exists').removeClass('fileinput-new')
  111258. element.trigger('change.bs.fileinput', files)
  111259. }
  111260. reader.readAsDataURL(file)
  111261. } else {
  111262. this.$element.find('.fileinput-filename').text(file.name)
  111263. this.$preview.text(file.name)
  111264. this.$element.addClass('fileinput-exists').removeClass('fileinput-new')
  111265. this.$element.trigger('change.bs.fileinput')
  111266. }
  111267. },
  111268. Fileinput.prototype.clear = function(e) {
  111269. if (e) e.preventDefault()
  111270. this.$hidden.val('')
  111271. this.$hidden.attr('name', this.name)
  111272. this.$input.attr('name', '')
  111273. //ie8+ doesn't support changing the value of input with type=file so clone instead
  111274. if (isIE) {
  111275. var inputClone = this.$input.clone(true);
  111276. this.$input.after(inputClone);
  111277. this.$input.remove();
  111278. this.$input = inputClone;
  111279. } else {
  111280. this.$input.val('')
  111281. }
  111282. this.$preview.html('')
  111283. this.$element.find('.fileinput-filename').text('')
  111284. this.$element.addClass('fileinput-new').removeClass('fileinput-exists')
  111285. if (e !== undefined) {
  111286. this.$input.trigger('change')
  111287. this.$element.trigger('clear.bs.fileinput')
  111288. }
  111289. },
  111290. Fileinput.prototype.reset = function() {
  111291. this.clear()
  111292. this.$hidden.val(this.original.hiddenVal)
  111293. this.$preview.html(this.original.preview)
  111294. this.$element.find('.fileinput-filename').text('')
  111295. if (this.original.exists) this.$element.addClass('fileinput-exists').removeClass('fileinput-new')
  111296. else this.$element.addClass('fileinput-new').removeClass('fileinput-exists')
  111297. this.$element.trigger('reset.bs.fileinput')
  111298. },
  111299. Fileinput.prototype.trigger = function(e) {
  111300. this.$input.trigger('click')
  111301. e.preventDefault()
  111302. }
  111303. // FILEUPLOAD PLUGIN DEFINITION
  111304. // ===========================
  111305. var old = $.fn.fileinput
  111306. $.fn.fileinput = function (options) {
  111307. return this.each(function () {
  111308. var $this = $(this),
  111309. data = $this.data('bs.fileinput')
  111310. if (!data) $this.data('bs.fileinput', (data = new Fileinput(this, options)))
  111311. if (typeof options == 'string') data[options]()
  111312. })
  111313. }
  111314. $.fn.fileinput.Constructor = Fileinput
  111315. // FILEINPUT NO CONFLICT
  111316. // ====================
  111317. $.fn.fileinput.noConflict = function () {
  111318. $.fn.fileinput = old
  111319. return this
  111320. }
  111321. // FILEUPLOAD DATA-API
  111322. // ==================
  111323. $(document).on('click.fileinput.data-api', '[data-provides="fileinput"]', function (e) {
  111324. var $this = $(this)
  111325. if ($this.data('bs.fileinput')) return
  111326. $this.fileinput($this.data())
  111327. var $target = $(e.target).closest('[data-dismiss="fileinput"],[data-trigger="fileinput"]');
  111328. if ($target.length > 0) {
  111329. e.preventDefault()
  111330. $target.trigger('click.bs.fileinput')
  111331. }
  111332. })
  111333. }(window.jQuery);
  111334. var ComponentsDateTimePickers = function () {
  111335. var handleDatePickers = function () {
  111336. if (jQuery().datepicker) {
  111337. $('.date-picker').datepicker({
  111338. rtl: App.isRTL(),
  111339. orientation: "left",
  111340. autoclose: true
  111341. });
  111342. //$('body').removeClass("modal-open"); // fix bug when inline picker is used in modal
  111343. }
  111344. /* Workaround to restrict daterange past date select: http://stackoverflow.com/questions/11933173/how-to-restrict-the-selectable-date-ranges-in-bootstrap-datepicker */
  111345. }
  111346. var handleTimePickers = function () {
  111347. if (jQuery().timepicker) {
  111348. $('.timepicker-default').timepicker({
  111349. autoclose: true,
  111350. showSeconds: true,
  111351. minuteStep: 1
  111352. });
  111353. $('.timepicker-no-seconds').timepicker({
  111354. autoclose: true,
  111355. minuteStep: 5
  111356. });
  111357. $('.timepicker-24').timepicker({
  111358. autoclose: true,
  111359. minuteStep: 5,
  111360. showSeconds: false,
  111361. showMeridian: false
  111362. });
  111363. // handle input group button click
  111364. $('.timepicker').parent('.input-group').on('click', '.input-group-btn', function(e){
  111365. e.preventDefault();
  111366. $(this).parent('.input-group').find('.timepicker').timepicker('showWidget');
  111367. });
  111368. }
  111369. }
  111370. var handleDateRangePickers = function () {
  111371. if (!jQuery().daterangepicker) {
  111372. return;
  111373. }
  111374. $('#defaultrange').daterangepicker({
  111375. opens: (App.isRTL() ? 'left' : 'right'),
  111376. format: 'MM/DD/YYYY',
  111377. separator: ' to ',
  111378. startDate: moment().subtract('days', 29),
  111379. endDate: moment(),
  111380. minDate: '01/01/2012',
  111381. maxDate: '12/31/2018',
  111382. },
  111383. function (start, end) {
  111384. $('#defaultrange input').val(start.format('MMMM D, YYYY') + ' - ' + end.format('MMMM D, YYYY'));
  111385. }
  111386. );
  111387. $('#defaultrange_modal').daterangepicker({
  111388. opens: (App.isRTL() ? 'left' : 'right'),
  111389. format: 'MM/DD/YYYY',
  111390. separator: ' to ',
  111391. startDate: moment().subtract('days', 29),
  111392. endDate: moment(),
  111393. minDate: '01/01/2012',
  111394. maxDate: '12/31/2018',
  111395. },
  111396. function (start, end) {
  111397. $('#defaultrange_modal input').val(start.format('MMMM D, YYYY') + ' - ' + end.format('MMMM D, YYYY'));
  111398. }
  111399. );
  111400. // this is very important fix when daterangepicker is used in modal. in modal when daterange picker is opened and mouse clicked anywhere bootstrap modal removes the modal-open class from the body element.
  111401. // so the below code will fix this issue.
  111402. $('#defaultrange_modal').on('click', function(){
  111403. if ($('#daterangepicker_modal').is(":visible") && $('body').hasClass("modal-open") == false) {
  111404. $('body').addClass("modal-open");
  111405. }
  111406. });
  111407. $('#reportrange').daterangepicker({
  111408. opens: (App.isRTL() ? 'left' : 'right'),
  111409. startDate: moment().subtract('days', 29),
  111410. endDate: moment(),
  111411. minDate: '01/01/2012',
  111412. maxDate: '12/31/2014',
  111413. dateLimit: {
  111414. days: 60
  111415. },
  111416. showDropdowns: true,
  111417. showWeekNumbers: true,
  111418. timePicker: false,
  111419. timePickerIncrement: 1,
  111420. timePicker12Hour: true,
  111421. ranges: {
  111422. 'Today': [moment(), moment()],
  111423. 'Yesterday': [moment().subtract('days', 1), moment().subtract('days', 1)],
  111424. 'Last 7 Days': [moment().subtract('days', 6), moment()],
  111425. 'Last 30 Days': [moment().subtract('days', 29), moment()],
  111426. 'This Month': [moment().startOf('month'), moment().endOf('month')],
  111427. 'Last Month': [moment().subtract('month', 1).startOf('month'), moment().subtract('month', 1).endOf('month')]
  111428. },
  111429. buttonClasses: ['btn'],
  111430. applyClass: 'green',
  111431. cancelClass: 'default',
  111432. format: 'MM/DD/YYYY',
  111433. separator: ' to ',
  111434. locale: {
  111435. applyLabel: 'Apply',
  111436. fromLabel: 'From',
  111437. toLabel: 'To',
  111438. customRangeLabel: 'Custom Range',
  111439. daysOfWeek: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
  111440. monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
  111441. firstDay: 1
  111442. }
  111443. },
  111444. function (start, end) {
  111445. $('#reportrange span').html(start.format('MMMM D, YYYY') + ' - ' + end.format('MMMM D, YYYY'));
  111446. }
  111447. );
  111448. //Set the initial state of the picker label
  111449. $('#reportrange span').html(moment().subtract('days', 29).format('MMMM D, YYYY') + ' - ' + moment().format('MMMM D, YYYY'));
  111450. }
  111451. var handleDatetimePicker = function () {
  111452. if (!jQuery().datetimepicker) {
  111453. return;
  111454. }
  111455. $(".form_datetime").datetimepicker({
  111456. autoclose: true,
  111457. isRTL: App.isRTL(),
  111458. format: "dd MM yyyy - hh:ii",
  111459. pickerPosition: (App.isRTL() ? "bottom-right" : "bottom-left")
  111460. });
  111461. $(".form_advance_datetime").datetimepicker({
  111462. isRTL: App.isRTL(),
  111463. format: "dd MM yyyy - hh:ii",
  111464. autoclose: true,
  111465. todayBtn: true,
  111466. startDate: "2013-02-14 10:00",
  111467. pickerPosition: (App.isRTL() ? "bottom-right" : "bottom-left"),
  111468. minuteStep: 10
  111469. });
  111470. $(".form_meridian_datetime").datetimepicker({
  111471. isRTL: App.isRTL(),
  111472. format: "dd MM yyyy - HH:ii P",
  111473. showMeridian: true,
  111474. autoclose: true,
  111475. pickerPosition: (App.isRTL() ? "bottom-right" : "bottom-left"),
  111476. todayBtn: true
  111477. });
  111478. $('body').removeClass("modal-open"); // fix bug when inline picker is used in modal
  111479. }
  111480. var handleClockfaceTimePickers = function () {
  111481. if (!jQuery().clockface) {
  111482. return;
  111483. }
  111484. $('.clockface_1').clockface();
  111485. $('#clockface_2').clockface({
  111486. format: 'HH:mm',
  111487. trigger: 'manual'
  111488. });
  111489. $('#clockface_2_toggle').click(function (e) {
  111490. e.stopPropagation();
  111491. $('#clockface_2').clockface('toggle');
  111492. });
  111493. $('#clockface_2_modal').clockface({
  111494. format: 'HH:mm',
  111495. trigger: 'manual'
  111496. });
  111497. $('#clockface_2_modal_toggle').click(function (e) {
  111498. e.stopPropagation();
  111499. $('#clockface_2_modal').clockface('toggle');
  111500. });
  111501. $('.clockface_3').clockface({
  111502. format: 'H:mm'
  111503. }).clockface('show', '14:30');
  111504. }
  111505. return {
  111506. //main function to initiate the module
  111507. init: function () {
  111508. handleDatePickers();
  111509. handleTimePickers();
  111510. handleDatetimePicker();
  111511. handleDateRangePickers();
  111512. handleClockfaceTimePickers();
  111513. }
  111514. };
  111515. }();
  111516. if (App.isAngularJsApp() === false) {
  111517. jQuery(document).ready(function() {
  111518. ComponentsDateTimePickers.init();
  111519. });
  111520. }
  111521. ;
  111522. var ComponentsSelect2 = function() {
  111523. var handleDemo = function() {
  111524. // Set the "bootstrap" theme as the default theme for all Select2
  111525. // widgets.
  111526. //
  111527. // @see https://github.com/select2/select2/issues/2927
  111528. $.fn.select2.defaults.set("theme", "bootstrap");
  111529. var placeholder = "Select a State";
  111530. $(".select2, .select2-multiple").select2({
  111531. placeholder: placeholder,
  111532. width: null
  111533. });
  111534. $(".select2-allow-clear").select2({
  111535. allowClear: true,
  111536. placeholder: placeholder,
  111537. width: null
  111538. });
  111539. // @see https://select2.github.io/examples.html#data-ajax
  111540. function formatRepo(repo) {
  111541. if (repo.loading) return repo.text;
  111542. var markup = "<div class='select2-result-repository clearfix'>" +
  111543. "<div class='select2-result-repository__avatar'><img src='" + repo.owner.avatar_url + "' /></div>" +
  111544. "<div class='select2-result-repository__meta'>" +
  111545. "<div class='select2-result-repository__title'>" + repo.full_name + "</div>";
  111546. if (repo.description) {
  111547. markup += "<div class='select2-result-repository__description'>" + repo.description + "</div>";
  111548. }
  111549. markup += "<div class='select2-result-repository__statistics'>" +
  111550. "<div class='select2-result-repository__forks'><span class='glyphicon glyphicon-flash'></span> " + repo.forks_count + " Forks</div>" +
  111551. "<div class='select2-result-repository__stargazers'><span class='glyphicon glyphicon-star'></span> " + repo.stargazers_count + " Stars</div>" +
  111552. "<div class='select2-result-repository__watchers'><span class='glyphicon glyphicon-eye-open'></span> " + repo.watchers_count + " Watchers</div>" +
  111553. "</div>" +
  111554. "</div></div>";
  111555. return markup;
  111556. }
  111557. function formatRepoSelection(repo) {
  111558. return repo.full_name || repo.text;
  111559. }
  111560. $(".js-data-example-ajax").select2({
  111561. width: "off",
  111562. ajax: {
  111563. url: "https://api.github.com/search/repositories",
  111564. dataType: 'json',
  111565. delay: 250,
  111566. data: function(params) {
  111567. return {
  111568. q: params.term, // search term
  111569. page: params.page
  111570. };
  111571. },
  111572. processResults: function(data, page) {
  111573. // parse the results into the format expected by Select2.
  111574. // since we are using custom formatting functions we do not need to
  111575. // alter the remote JSON data
  111576. return {
  111577. results: data.items
  111578. };
  111579. },
  111580. cache: true
  111581. },
  111582. escapeMarkup: function(markup) {
  111583. return markup;
  111584. }, // let our custom formatter work
  111585. minimumInputLength: 1,
  111586. templateResult: formatRepo,
  111587. templateSelection: formatRepoSelection
  111588. });
  111589. $("button[data-select2-open]").click(function() {
  111590. $("#" + $(this).data("select2-open")).select2("open");
  111591. });
  111592. $(":checkbox").on("click", function() {
  111593. $(this).parent().nextAll("select").prop("disabled", !this.checked);
  111594. });
  111595. // copy Bootstrap validation states to Select2 dropdown
  111596. //
  111597. // add .has-waring, .has-error, .has-succes to the Select2 dropdown
  111598. // (was #select2-drop in Select2 v3.x, in Select2 v4 can be selected via
  111599. // body > .select2-container) if _any_ of the opened Select2's parents
  111600. // has one of these forementioned classes (YUCK! ;-))
  111601. $(".select2, .select2-multiple, .select2-allow-clear, .js-data-example-ajax").on("select2:open", function() {
  111602. if ($(this).parents("[class*='has-']").length) {
  111603. var classNames = $(this).parents("[class*='has-']")[0].className.split(/\s+/);
  111604. for (var i = 0; i < classNames.length; ++i) {
  111605. if (classNames[i].match("has-")) {
  111606. $("body > .select2-container").addClass(classNames[i]);
  111607. }
  111608. }
  111609. }
  111610. });
  111611. $(".js-btn-set-scaling-classes").on("click", function() {
  111612. $("#select2-multiple-input-sm, #select2-single-input-sm").next(".select2-container--bootstrap").addClass("input-sm");
  111613. $("#select2-multiple-input-lg, #select2-single-input-lg").next(".select2-container--bootstrap").addClass("input-lg");
  111614. $(this).removeClass("btn-primary btn-outline").prop("disabled", true);
  111615. });
  111616. }
  111617. return {
  111618. //main function to initiate the module
  111619. init: function() {
  111620. handleDemo();
  111621. }
  111622. };
  111623. }();
  111624. if (App.isAngularJsApp() === false) {
  111625. jQuery(document).ready(function() {
  111626. ComponentsSelect2.init();
  111627. });
  111628. }
  111629. ;
  111630. // Copyright 2006 Google Inc.
  111631. //
  111632. // Licensed under the Apache License, Version 2.0 (the "License");
  111633. // you may not use this file except in compliance with the License.
  111634. // You may obtain a copy of the License at
  111635. //
  111636. // http://www.apache.org/licenses/LICENSE-2.0
  111637. //
  111638. // Unless required by applicable law or agreed to in writing, software
  111639. // distributed under the License is distributed on an "AS IS" BASIS,
  111640. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  111641. // See the License for the specific language governing permissions and
  111642. // limitations under the License.
  111643. // Known Issues:
  111644. //
  111645. // * Patterns only support repeat.
  111646. // * Radial gradient are not implemented. The VML version of these look very
  111647. // different from the canvas one.
  111648. // * Clipping paths are not implemented.
  111649. // * Coordsize. The width and height attribute have higher priority than the
  111650. // width and height style values which isn't correct.
  111651. // * Painting mode isn't implemented.
  111652. // * Canvas width/height should is using content-box by default. IE in
  111653. // Quirks mode will draw the canvas using border-box. Either change your
  111654. // doctype to HTML5
  111655. // (http://www.whatwg.org/specs/web-apps/current-work/#the-doctype)
  111656. // or use Box Sizing Behavior from WebFX
  111657. // (http://webfx.eae.net/dhtml/boxsizing/boxsizing.html)
  111658. // * Non uniform scaling does not correctly scale strokes.
  111659. // * Optimize. There is always room for speed improvements.
  111660. // Only add this code if we do not already have a canvas implementation
  111661. if (!document.createElement('canvas').getContext) {
  111662. (function() {
  111663. // alias some functions to make (compiled) code shorter
  111664. var m = Math;
  111665. var mr = m.round;
  111666. var ms = m.sin;
  111667. var mc = m.cos;
  111668. var abs = m.abs;
  111669. var sqrt = m.sqrt;
  111670. // this is used for sub pixel precision
  111671. var Z = 10;
  111672. var Z2 = Z / 2;
  111673. var IE_VERSION = +navigator.userAgent.match(/MSIE ([\d.]+)?/)[1];
  111674. /**
  111675. * This funtion is assigned to the <canvas> elements as element.getContext().
  111676. * @this {HTMLElement}
  111677. * @return {CanvasRenderingContext2D_}
  111678. */
  111679. function getContext() {
  111680. return this.context_ ||
  111681. (this.context_ = new CanvasRenderingContext2D_(this));
  111682. }
  111683. var slice = Array.prototype.slice;
  111684. /**
  111685. * Binds a function to an object. The returned function will always use the
  111686. * passed in {@code obj} as {@code this}.
  111687. *
  111688. * Example:
  111689. *
  111690. * g = bind(f, obj, a, b)
  111691. * g(c, d) // will do f.call(obj, a, b, c, d)
  111692. *
  111693. * @param {Function} f The function to bind the object to
  111694. * @param {Object} obj The object that should act as this when the function
  111695. * is called
  111696. * @param {*} var_args Rest arguments that will be used as the initial
  111697. * arguments when the function is called
  111698. * @return {Function} A new function that has bound this
  111699. */
  111700. function bind(f, obj, var_args) {
  111701. var a = slice.call(arguments, 2);
  111702. return function() {
  111703. return f.apply(obj, a.concat(slice.call(arguments)));
  111704. };
  111705. }
  111706. function encodeHtmlAttribute(s) {
  111707. return String(s).replace(/&/g, '&amp;').replace(/"/g, '&quot;');
  111708. }
  111709. function addNamespace(doc, prefix, urn) {
  111710. if (!doc.namespaces[prefix]) {
  111711. doc.namespaces.add(prefix, urn, '#default#VML');
  111712. }
  111713. }
  111714. function addNamespacesAndStylesheet(doc) {
  111715. addNamespace(doc, 'g_vml_', 'urn:schemas-microsoft-com:vml');
  111716. addNamespace(doc, 'g_o_', 'urn:schemas-microsoft-com:office:office');
  111717. // Setup default CSS. Only add one style sheet per document
  111718. if (!doc.styleSheets['ex_canvas_']) {
  111719. var ss = doc.createStyleSheet();
  111720. ss.owningElement.id = 'ex_canvas_';
  111721. ss.cssText = 'canvas{display:inline-block;overflow:hidden;' +
  111722. // default size is 300x150 in Gecko and Opera
  111723. 'text-align:left;width:300px;height:150px}';
  111724. }
  111725. }
  111726. // Add namespaces and stylesheet at startup.
  111727. addNamespacesAndStylesheet(document);
  111728. var G_vmlCanvasManager_ = {
  111729. init: function(opt_doc) {
  111730. var doc = opt_doc || document;
  111731. // Create a dummy element so that IE will allow canvas elements to be
  111732. // recognized.
  111733. doc.createElement('canvas');
  111734. doc.attachEvent('onreadystatechange', bind(this.init_, this, doc));
  111735. },
  111736. init_: function(doc) {
  111737. // find all canvas elements
  111738. var els = doc.getElementsByTagName('canvas');
  111739. for (var i = 0; i < els.length; i++) {
  111740. this.initElement(els[i]);
  111741. }
  111742. },
  111743. /**
  111744. * Public initializes a canvas element so that it can be used as canvas
  111745. * element from now on. This is called automatically before the page is
  111746. * loaded but if you are creating elements using createElement you need to
  111747. * make sure this is called on the element.
  111748. * @param {HTMLElement} el The canvas element to initialize.
  111749. * @return {HTMLElement} the element that was created.
  111750. */
  111751. initElement: function(el) {
  111752. if (!el.getContext) {
  111753. el.getContext = getContext;
  111754. // Add namespaces and stylesheet to document of the element.
  111755. addNamespacesAndStylesheet(el.ownerDocument);
  111756. // Remove fallback content. There is no way to hide text nodes so we
  111757. // just remove all childNodes. We could hide all elements and remove
  111758. // text nodes but who really cares about the fallback content.
  111759. el.innerHTML = '';
  111760. // do not use inline function because that will leak memory
  111761. el.attachEvent('onpropertychange', onPropertyChange);
  111762. el.attachEvent('onresize', onResize);
  111763. var attrs = el.attributes;
  111764. if (attrs.width && attrs.width.specified) {
  111765. // TODO: use runtimeStyle and coordsize
  111766. // el.getContext().setWidth_(attrs.width.nodeValue);
  111767. el.style.width = attrs.width.nodeValue + 'px';
  111768. } else {
  111769. el.width = el.clientWidth;
  111770. }
  111771. if (attrs.height && attrs.height.specified) {
  111772. // TODO: use runtimeStyle and coordsize
  111773. // el.getContext().setHeight_(attrs.height.nodeValue);
  111774. el.style.height = attrs.height.nodeValue + 'px';
  111775. } else {
  111776. el.height = el.clientHeight;
  111777. }
  111778. //el.getContext().setCoordsize_()
  111779. }
  111780. return el;
  111781. }
  111782. };
  111783. function onPropertyChange(e) {
  111784. var el = e.srcElement;
  111785. switch (e.propertyName) {
  111786. case 'width':
  111787. el.getContext().clearRect();
  111788. el.style.width = el.attributes.width.nodeValue + 'px';
  111789. // In IE8 this does not trigger onresize.
  111790. el.firstChild.style.width = el.clientWidth + 'px';
  111791. break;
  111792. case 'height':
  111793. el.getContext().clearRect();
  111794. el.style.height = el.attributes.height.nodeValue + 'px';
  111795. el.firstChild.style.height = el.clientHeight + 'px';
  111796. break;
  111797. }
  111798. }
  111799. function onResize(e) {
  111800. var el = e.srcElement;
  111801. if (el.firstChild) {
  111802. el.firstChild.style.width = el.clientWidth + 'px';
  111803. el.firstChild.style.height = el.clientHeight + 'px';
  111804. }
  111805. }
  111806. G_vmlCanvasManager_.init();
  111807. // precompute "00" to "FF"
  111808. var decToHex = [];
  111809. for (var i = 0; i < 16; i++) {
  111810. for (var j = 0; j < 16; j++) {
  111811. decToHex[i * 16 + j] = i.toString(16) + j.toString(16);
  111812. }
  111813. }
  111814. function createMatrixIdentity() {
  111815. return [
  111816. [1, 0, 0],
  111817. [0, 1, 0],
  111818. [0, 0, 1]
  111819. ];
  111820. }
  111821. function matrixMultiply(m1, m2) {
  111822. var result = createMatrixIdentity();
  111823. for (var x = 0; x < 3; x++) {
  111824. for (var y = 0; y < 3; y++) {
  111825. var sum = 0;
  111826. for (var z = 0; z < 3; z++) {
  111827. sum += m1[x][z] * m2[z][y];
  111828. }
  111829. result[x][y] = sum;
  111830. }
  111831. }
  111832. return result;
  111833. }
  111834. function copyState(o1, o2) {
  111835. o2.fillStyle = o1.fillStyle;
  111836. o2.lineCap = o1.lineCap;
  111837. o2.lineJoin = o1.lineJoin;
  111838. o2.lineWidth = o1.lineWidth;
  111839. o2.miterLimit = o1.miterLimit;
  111840. o2.shadowBlur = o1.shadowBlur;
  111841. o2.shadowColor = o1.shadowColor;
  111842. o2.shadowOffsetX = o1.shadowOffsetX;
  111843. o2.shadowOffsetY = o1.shadowOffsetY;
  111844. o2.strokeStyle = o1.strokeStyle;
  111845. o2.globalAlpha = o1.globalAlpha;
  111846. o2.font = o1.font;
  111847. o2.textAlign = o1.textAlign;
  111848. o2.textBaseline = o1.textBaseline;
  111849. o2.arcScaleX_ = o1.arcScaleX_;
  111850. o2.arcScaleY_ = o1.arcScaleY_;
  111851. o2.lineScale_ = o1.lineScale_;
  111852. }
  111853. var colorData = {
  111854. aliceblue: '#F0F8FF',
  111855. antiquewhite: '#FAEBD7',
  111856. aquamarine: '#7FFFD4',
  111857. azure: '#F0FFFF',
  111858. beige: '#F5F5DC',
  111859. bisque: '#FFE4C4',
  111860. black: '#000000',
  111861. blanchedalmond: '#FFEBCD',
  111862. blueviolet: '#8A2BE2',
  111863. brown: '#A52A2A',
  111864. burlywood: '#DEB887',
  111865. cadetblue: '#5F9EA0',
  111866. chartreuse: '#7FFF00',
  111867. chocolate: '#D2691E',
  111868. coral: '#FF7F50',
  111869. cornflowerblue: '#6495ED',
  111870. cornsilk: '#FFF8DC',
  111871. crimson: '#DC143C',
  111872. cyan: '#00FFFF',
  111873. darkblue: '#00008B',
  111874. darkcyan: '#008B8B',
  111875. darkgoldenrod: '#B8860B',
  111876. darkgray: '#A9A9A9',
  111877. darkgreen: '#006400',
  111878. darkgrey: '#A9A9A9',
  111879. darkkhaki: '#BDB76B',
  111880. darkmagenta: '#8B008B',
  111881. darkolivegreen: '#556B2F',
  111882. darkorange: '#FF8C00',
  111883. darkorchid: '#9932CC',
  111884. darkred: '#8B0000',
  111885. darksalmon: '#E9967A',
  111886. darkseagreen: '#8FBC8F',
  111887. darkslateblue: '#483D8B',
  111888. darkslategray: '#2F4F4F',
  111889. darkslategrey: '#2F4F4F',
  111890. darkturquoise: '#00CED1',
  111891. darkviolet: '#9400D3',
  111892. deeppink: '#FF1493',
  111893. deepskyblue: '#00BFFF',
  111894. dimgray: '#696969',
  111895. dimgrey: '#696969',
  111896. dodgerblue: '#1E90FF',
  111897. firebrick: '#B22222',
  111898. floralwhite: '#FFFAF0',
  111899. forestgreen: '#228B22',
  111900. gainsboro: '#DCDCDC',
  111901. ghostwhite: '#F8F8FF',
  111902. gold: '#FFD700',
  111903. goldenrod: '#DAA520',
  111904. grey: '#808080',
  111905. greenyellow: '#ADFF2F',
  111906. honeydew: '#F0FFF0',
  111907. hotpink: '#FF69B4',
  111908. indianred: '#CD5C5C',
  111909. indigo: '#4B0082',
  111910. ivory: '#FFFFF0',
  111911. khaki: '#F0E68C',
  111912. lavender: '#E6E6FA',
  111913. lavenderblush: '#FFF0F5',
  111914. lawngreen: '#7CFC00',
  111915. lemonchiffon: '#FFFACD',
  111916. lightblue: '#ADD8E6',
  111917. lightcoral: '#F08080',
  111918. lightcyan: '#E0FFFF',
  111919. lightgoldenrodyellow: '#FAFAD2',
  111920. lightgreen: '#90EE90',
  111921. lightgrey: '#D3D3D3',
  111922. lightpink: '#FFB6C1',
  111923. lightsalmon: '#FFA07A',
  111924. lightseagreen: '#20B2AA',
  111925. lightskyblue: '#87CEFA',
  111926. lightslategray: '#778899',
  111927. lightslategrey: '#778899',
  111928. lightsteelblue: '#B0C4DE',
  111929. lightyellow: '#FFFFE0',
  111930. limegreen: '#32CD32',
  111931. linen: '#FAF0E6',
  111932. magenta: '#FF00FF',
  111933. mediumaquamarine: '#66CDAA',
  111934. mediumblue: '#0000CD',
  111935. mediumorchid: '#BA55D3',
  111936. mediumpurple: '#9370DB',
  111937. mediumseagreen: '#3CB371',
  111938. mediumslateblue: '#7B68EE',
  111939. mediumspringgreen: '#00FA9A',
  111940. mediumturquoise: '#48D1CC',
  111941. mediumvioletred: '#C71585',
  111942. midnightblue: '#191970',
  111943. mintcream: '#F5FFFA',
  111944. mistyrose: '#FFE4E1',
  111945. moccasin: '#FFE4B5',
  111946. navajowhite: '#FFDEAD',
  111947. oldlace: '#FDF5E6',
  111948. olivedrab: '#6B8E23',
  111949. orange: '#FFA500',
  111950. orangered: '#FF4500',
  111951. orchid: '#DA70D6',
  111952. palegoldenrod: '#EEE8AA',
  111953. palegreen: '#98FB98',
  111954. paleturquoise: '#AFEEEE',
  111955. palevioletred: '#DB7093',
  111956. papayawhip: '#FFEFD5',
  111957. peachpuff: '#FFDAB9',
  111958. peru: '#CD853F',
  111959. pink: '#FFC0CB',
  111960. plum: '#DDA0DD',
  111961. powderblue: '#B0E0E6',
  111962. rosybrown: '#BC8F8F',
  111963. royalblue: '#4169E1',
  111964. saddlebrown: '#8B4513',
  111965. salmon: '#FA8072',
  111966. sandybrown: '#F4A460',
  111967. seagreen: '#2E8B57',
  111968. seashell: '#FFF5EE',
  111969. sienna: '#A0522D',
  111970. skyblue: '#87CEEB',
  111971. slateblue: '#6A5ACD',
  111972. slategray: '#708090',
  111973. slategrey: '#708090',
  111974. snow: '#FFFAFA',
  111975. springgreen: '#00FF7F',
  111976. steelblue: '#4682B4',
  111977. tan: '#D2B48C',
  111978. thistle: '#D8BFD8',
  111979. tomato: '#FF6347',
  111980. turquoise: '#40E0D0',
  111981. violet: '#EE82EE',
  111982. wheat: '#F5DEB3',
  111983. whitesmoke: '#F5F5F5',
  111984. yellowgreen: '#9ACD32'
  111985. };
  111986. function getRgbHslContent(styleString) {
  111987. var start = styleString.indexOf('(', 3);
  111988. var end = styleString.indexOf(')', start + 1);
  111989. var parts = styleString.substring(start + 1, end).split(',');
  111990. // add alpha if needed
  111991. if (parts.length != 4 || styleString.charAt(3) != 'a') {
  111992. parts[3] = 1;
  111993. }
  111994. return parts;
  111995. }
  111996. function percent(s) {
  111997. return parseFloat(s) / 100;
  111998. }
  111999. function clamp(v, min, max) {
  112000. return Math.min(max, Math.max(min, v));
  112001. }
  112002. function hslToRgb(parts){
  112003. var r, g, b, h, s, l;
  112004. h = parseFloat(parts[0]) / 360 % 360;
  112005. if (h < 0)
  112006. h++;
  112007. s = clamp(percent(parts[1]), 0, 1);
  112008. l = clamp(percent(parts[2]), 0, 1);
  112009. if (s == 0) {
  112010. r = g = b = l; // achromatic
  112011. } else {
  112012. var q = l < 0.5 ? l * (1 + s) : l + s - l * s;
  112013. var p = 2 * l - q;
  112014. r = hueToRgb(p, q, h + 1 / 3);
  112015. g = hueToRgb(p, q, h);
  112016. b = hueToRgb(p, q, h - 1 / 3);
  112017. }
  112018. return '#' + decToHex[Math.floor(r * 255)] +
  112019. decToHex[Math.floor(g * 255)] +
  112020. decToHex[Math.floor(b * 255)];
  112021. }
  112022. function hueToRgb(m1, m2, h) {
  112023. if (h < 0)
  112024. h++;
  112025. if (h > 1)
  112026. h--;
  112027. if (6 * h < 1)
  112028. return m1 + (m2 - m1) * 6 * h;
  112029. else if (2 * h < 1)
  112030. return m2;
  112031. else if (3 * h < 2)
  112032. return m1 + (m2 - m1) * (2 / 3 - h) * 6;
  112033. else
  112034. return m1;
  112035. }
  112036. var processStyleCache = {};
  112037. function processStyle(styleString) {
  112038. if (styleString in processStyleCache) {
  112039. return processStyleCache[styleString];
  112040. }
  112041. var str, alpha = 1;
  112042. styleString = String(styleString);
  112043. if (styleString.charAt(0) == '#') {
  112044. str = styleString;
  112045. } else if (/^rgb/.test(styleString)) {
  112046. var parts = getRgbHslContent(styleString);
  112047. var str = '#', n;
  112048. for (var i = 0; i < 3; i++) {
  112049. if (parts[i].indexOf('%') != -1) {
  112050. n = Math.floor(percent(parts[i]) * 255);
  112051. } else {
  112052. n = +parts[i];
  112053. }
  112054. str += decToHex[clamp(n, 0, 255)];
  112055. }
  112056. alpha = +parts[3];
  112057. } else if (/^hsl/.test(styleString)) {
  112058. var parts = getRgbHslContent(styleString);
  112059. str = hslToRgb(parts);
  112060. alpha = parts[3];
  112061. } else {
  112062. str = colorData[styleString] || styleString;
  112063. }
  112064. return processStyleCache[styleString] = {color: str, alpha: alpha};
  112065. }
  112066. var DEFAULT_STYLE = {
  112067. style: 'normal',
  112068. variant: 'normal',
  112069. weight: 'normal',
  112070. size: 10,
  112071. family: 'sans-serif'
  112072. };
  112073. // Internal text style cache
  112074. var fontStyleCache = {};
  112075. function processFontStyle(styleString) {
  112076. if (fontStyleCache[styleString]) {
  112077. return fontStyleCache[styleString];
  112078. }
  112079. var el = document.createElement('div');
  112080. var style = el.style;
  112081. try {
  112082. style.font = styleString;
  112083. } catch (ex) {
  112084. // Ignore failures to set to invalid font.
  112085. }
  112086. return fontStyleCache[styleString] = {
  112087. style: style.fontStyle || DEFAULT_STYLE.style,
  112088. variant: style.fontVariant || DEFAULT_STYLE.variant,
  112089. weight: style.fontWeight || DEFAULT_STYLE.weight,
  112090. size: style.fontSize || DEFAULT_STYLE.size,
  112091. family: style.fontFamily || DEFAULT_STYLE.family
  112092. };
  112093. }
  112094. function getComputedStyle(style, element) {
  112095. var computedStyle = {};
  112096. for (var p in style) {
  112097. computedStyle[p] = style[p];
  112098. }
  112099. // Compute the size
  112100. var canvasFontSize = parseFloat(element.currentStyle.fontSize),
  112101. fontSize = parseFloat(style.size);
  112102. if (typeof style.size == 'number') {
  112103. computedStyle.size = style.size;
  112104. } else if (style.size.indexOf('px') != -1) {
  112105. computedStyle.size = fontSize;
  112106. } else if (style.size.indexOf('em') != -1) {
  112107. computedStyle.size = canvasFontSize * fontSize;
  112108. } else if(style.size.indexOf('%') != -1) {
  112109. computedStyle.size = (canvasFontSize / 100) * fontSize;
  112110. } else if (style.size.indexOf('pt') != -1) {
  112111. computedStyle.size = fontSize / .75;
  112112. } else {
  112113. computedStyle.size = canvasFontSize;
  112114. }
  112115. // Different scaling between normal text and VML text. This was found using
  112116. // trial and error to get the same size as non VML text.
  112117. computedStyle.size *= 0.981;
  112118. return computedStyle;
  112119. }
  112120. function buildStyle(style) {
  112121. return style.style + ' ' + style.variant + ' ' + style.weight + ' ' +
  112122. style.size + 'px ' + style.family;
  112123. }
  112124. var lineCapMap = {
  112125. 'butt': 'flat',
  112126. 'round': 'round'
  112127. };
  112128. function processLineCap(lineCap) {
  112129. return lineCapMap[lineCap] || 'square';
  112130. }
  112131. /**
  112132. * This class implements CanvasRenderingContext2D interface as described by
  112133. * the WHATWG.
  112134. * @param {HTMLElement} canvasElement The element that the 2D context should
  112135. * be associated with
  112136. */
  112137. function CanvasRenderingContext2D_(canvasElement) {
  112138. this.m_ = createMatrixIdentity();
  112139. this.mStack_ = [];
  112140. this.aStack_ = [];
  112141. this.currentPath_ = [];
  112142. // Canvas context properties
  112143. this.strokeStyle = '#000';
  112144. this.fillStyle = '#000';
  112145. this.lineWidth = 1;
  112146. this.lineJoin = 'miter';
  112147. this.lineCap = 'butt';
  112148. this.miterLimit = Z * 1;
  112149. this.globalAlpha = 1;
  112150. this.font = '10px sans-serif';
  112151. this.textAlign = 'left';
  112152. this.textBaseline = 'alphabetic';
  112153. this.canvas = canvasElement;
  112154. var cssText = 'width:' + canvasElement.clientWidth + 'px;height:' +
  112155. canvasElement.clientHeight + 'px;overflow:hidden;position:absolute';
  112156. var el = canvasElement.ownerDocument.createElement('div');
  112157. el.style.cssText = cssText;
  112158. canvasElement.appendChild(el);
  112159. var overlayEl = el.cloneNode(false);
  112160. // Use a non transparent background.
  112161. overlayEl.style.backgroundColor = 'red';
  112162. overlayEl.style.filter = 'alpha(opacity=0)';
  112163. canvasElement.appendChild(overlayEl);
  112164. this.element_ = el;
  112165. this.arcScaleX_ = 1;
  112166. this.arcScaleY_ = 1;
  112167. this.lineScale_ = 1;
  112168. }
  112169. var contextPrototype = CanvasRenderingContext2D_.prototype;
  112170. contextPrototype.clearRect = function() {
  112171. if (this.textMeasureEl_) {
  112172. this.textMeasureEl_.removeNode(true);
  112173. this.textMeasureEl_ = null;
  112174. }
  112175. this.element_.innerHTML = '';
  112176. };
  112177. contextPrototype.beginPath = function() {
  112178. // TODO: Branch current matrix so that save/restore has no effect
  112179. // as per safari docs.
  112180. this.currentPath_ = [];
  112181. };
  112182. contextPrototype.moveTo = function(aX, aY) {
  112183. var p = getCoords(this, aX, aY);
  112184. this.currentPath_.push({type: 'moveTo', x: p.x, y: p.y});
  112185. this.currentX_ = p.x;
  112186. this.currentY_ = p.y;
  112187. };
  112188. contextPrototype.lineTo = function(aX, aY) {
  112189. var p = getCoords(this, aX, aY);
  112190. this.currentPath_.push({type: 'lineTo', x: p.x, y: p.y});
  112191. this.currentX_ = p.x;
  112192. this.currentY_ = p.y;
  112193. };
  112194. contextPrototype.bezierCurveTo = function(aCP1x, aCP1y,
  112195. aCP2x, aCP2y,
  112196. aX, aY) {
  112197. var p = getCoords(this, aX, aY);
  112198. var cp1 = getCoords(this, aCP1x, aCP1y);
  112199. var cp2 = getCoords(this, aCP2x, aCP2y);
  112200. bezierCurveTo(this, cp1, cp2, p);
  112201. };
  112202. // Helper function that takes the already fixed cordinates.
  112203. function bezierCurveTo(self, cp1, cp2, p) {
  112204. self.currentPath_.push({
  112205. type: 'bezierCurveTo',
  112206. cp1x: cp1.x,
  112207. cp1y: cp1.y,
  112208. cp2x: cp2.x,
  112209. cp2y: cp2.y,
  112210. x: p.x,
  112211. y: p.y
  112212. });
  112213. self.currentX_ = p.x;
  112214. self.currentY_ = p.y;
  112215. }
  112216. contextPrototype.quadraticCurveTo = function(aCPx, aCPy, aX, aY) {
  112217. // the following is lifted almost directly from
  112218. // http://developer.mozilla.org/en/docs/Canvas_tutorial:Drawing_shapes
  112219. var cp = getCoords(this, aCPx, aCPy);
  112220. var p = getCoords(this, aX, aY);
  112221. var cp1 = {
  112222. x: this.currentX_ + 2.0 / 3.0 * (cp.x - this.currentX_),
  112223. y: this.currentY_ + 2.0 / 3.0 * (cp.y - this.currentY_)
  112224. };
  112225. var cp2 = {
  112226. x: cp1.x + (p.x - this.currentX_) / 3.0,
  112227. y: cp1.y + (p.y - this.currentY_) / 3.0
  112228. };
  112229. bezierCurveTo(this, cp1, cp2, p);
  112230. };
  112231. contextPrototype.arc = function(aX, aY, aRadius,
  112232. aStartAngle, aEndAngle, aClockwise) {
  112233. aRadius *= Z;
  112234. var arcType = aClockwise ? 'at' : 'wa';
  112235. var xStart = aX + mc(aStartAngle) * aRadius - Z2;
  112236. var yStart = aY + ms(aStartAngle) * aRadius - Z2;
  112237. var xEnd = aX + mc(aEndAngle) * aRadius - Z2;
  112238. var yEnd = aY + ms(aEndAngle) * aRadius - Z2;
  112239. // IE won't render arches drawn counter clockwise if xStart == xEnd.
  112240. if (xStart == xEnd && !aClockwise) {
  112241. xStart += 0.125; // Offset xStart by 1/80 of a pixel. Use something
  112242. // that can be represented in binary
  112243. }
  112244. var p = getCoords(this, aX, aY);
  112245. var pStart = getCoords(this, xStart, yStart);
  112246. var pEnd = getCoords(this, xEnd, yEnd);
  112247. this.currentPath_.push({type: arcType,
  112248. x: p.x,
  112249. y: p.y,
  112250. radius: aRadius,
  112251. xStart: pStart.x,
  112252. yStart: pStart.y,
  112253. xEnd: pEnd.x,
  112254. yEnd: pEnd.y});
  112255. };
  112256. contextPrototype.rect = function(aX, aY, aWidth, aHeight) {
  112257. this.moveTo(aX, aY);
  112258. this.lineTo(aX + aWidth, aY);
  112259. this.lineTo(aX + aWidth, aY + aHeight);
  112260. this.lineTo(aX, aY + aHeight);
  112261. this.closePath();
  112262. };
  112263. contextPrototype.strokeRect = function(aX, aY, aWidth, aHeight) {
  112264. var oldPath = this.currentPath_;
  112265. this.beginPath();
  112266. this.moveTo(aX, aY);
  112267. this.lineTo(aX + aWidth, aY);
  112268. this.lineTo(aX + aWidth, aY + aHeight);
  112269. this.lineTo(aX, aY + aHeight);
  112270. this.closePath();
  112271. this.stroke();
  112272. this.currentPath_ = oldPath;
  112273. };
  112274. contextPrototype.fillRect = function(aX, aY, aWidth, aHeight) {
  112275. var oldPath = this.currentPath_;
  112276. this.beginPath();
  112277. this.moveTo(aX, aY);
  112278. this.lineTo(aX + aWidth, aY);
  112279. this.lineTo(aX + aWidth, aY + aHeight);
  112280. this.lineTo(aX, aY + aHeight);
  112281. this.closePath();
  112282. this.fill();
  112283. this.currentPath_ = oldPath;
  112284. };
  112285. contextPrototype.createLinearGradient = function(aX0, aY0, aX1, aY1) {
  112286. var gradient = new CanvasGradient_('gradient');
  112287. gradient.x0_ = aX0;
  112288. gradient.y0_ = aY0;
  112289. gradient.x1_ = aX1;
  112290. gradient.y1_ = aY1;
  112291. return gradient;
  112292. };
  112293. contextPrototype.createRadialGradient = function(aX0, aY0, aR0,
  112294. aX1, aY1, aR1) {
  112295. var gradient = new CanvasGradient_('gradientradial');
  112296. gradient.x0_ = aX0;
  112297. gradient.y0_ = aY0;
  112298. gradient.r0_ = aR0;
  112299. gradient.x1_ = aX1;
  112300. gradient.y1_ = aY1;
  112301. gradient.r1_ = aR1;
  112302. return gradient;
  112303. };
  112304. contextPrototype.drawImage = function(image, var_args) {
  112305. var dx, dy, dw, dh, sx, sy, sw, sh;
  112306. // to find the original width we overide the width and height
  112307. var oldRuntimeWidth = image.runtimeStyle.width;
  112308. var oldRuntimeHeight = image.runtimeStyle.height;
  112309. image.runtimeStyle.width = 'auto';
  112310. image.runtimeStyle.height = 'auto';
  112311. // get the original size
  112312. var w = image.width;
  112313. var h = image.height;
  112314. // and remove overides
  112315. image.runtimeStyle.width = oldRuntimeWidth;
  112316. image.runtimeStyle.height = oldRuntimeHeight;
  112317. if (arguments.length == 3) {
  112318. dx = arguments[1];
  112319. dy = arguments[2];
  112320. sx = sy = 0;
  112321. sw = dw = w;
  112322. sh = dh = h;
  112323. } else if (arguments.length == 5) {
  112324. dx = arguments[1];
  112325. dy = arguments[2];
  112326. dw = arguments[3];
  112327. dh = arguments[4];
  112328. sx = sy = 0;
  112329. sw = w;
  112330. sh = h;
  112331. } else if (arguments.length == 9) {
  112332. sx = arguments[1];
  112333. sy = arguments[2];
  112334. sw = arguments[3];
  112335. sh = arguments[4];
  112336. dx = arguments[5];
  112337. dy = arguments[6];
  112338. dw = arguments[7];
  112339. dh = arguments[8];
  112340. } else {
  112341. throw Error('Invalid number of arguments');
  112342. }
  112343. var d = getCoords(this, dx, dy);
  112344. var w2 = sw / 2;
  112345. var h2 = sh / 2;
  112346. var vmlStr = [];
  112347. var W = 10;
  112348. var H = 10;
  112349. // For some reason that I've now forgotten, using divs didn't work
  112350. vmlStr.push(' <g_vml_:group',
  112351. ' coordsize="', Z * W, ',', Z * H, '"',
  112352. ' coordorigin="0,0"' ,
  112353. ' style="width:', W, 'px;height:', H, 'px;position:absolute;');
  112354. // If filters are necessary (rotation exists), create them
  112355. // filters are bog-slow, so only create them if abbsolutely necessary
  112356. // The following check doesn't account for skews (which don't exist
  112357. // in the canvas spec (yet) anyway.
  112358. if (this.m_[0][0] != 1 || this.m_[0][1] ||
  112359. this.m_[1][1] != 1 || this.m_[1][0]) {
  112360. var filter = [];
  112361. // Note the 12/21 reversal
  112362. filter.push('M11=', this.m_[0][0], ',',
  112363. 'M12=', this.m_[1][0], ',',
  112364. 'M21=', this.m_[0][1], ',',
  112365. 'M22=', this.m_[1][1], ',',
  112366. 'Dx=', mr(d.x / Z), ',',
  112367. 'Dy=', mr(d.y / Z), '');
  112368. // Bounding box calculation (need to minimize displayed area so that
  112369. // filters don't waste time on unused pixels.
  112370. var max = d;
  112371. var c2 = getCoords(this, dx + dw, dy);
  112372. var c3 = getCoords(this, dx, dy + dh);
  112373. var c4 = getCoords(this, dx + dw, dy + dh);
  112374. max.x = m.max(max.x, c2.x, c3.x, c4.x);
  112375. max.y = m.max(max.y, c2.y, c3.y, c4.y);
  112376. vmlStr.push('padding:0 ', mr(max.x / Z), 'px ', mr(max.y / Z),
  112377. 'px 0;filter:progid:DXImageTransform.Microsoft.Matrix(',
  112378. filter.join(''), ", sizingmethod='clip');");
  112379. } else {
  112380. vmlStr.push('top:', mr(d.y / Z), 'px;left:', mr(d.x / Z), 'px;');
  112381. }
  112382. vmlStr.push(' ">' ,
  112383. '<g_vml_:image src="', image.src, '"',
  112384. ' style="width:', Z * dw, 'px;',
  112385. ' height:', Z * dh, 'px"',
  112386. ' cropleft="', sx / w, '"',
  112387. ' croptop="', sy / h, '"',
  112388. ' cropright="', (w - sx - sw) / w, '"',
  112389. ' cropbottom="', (h - sy - sh) / h, '"',
  112390. ' />',
  112391. '</g_vml_:group>');
  112392. this.element_.insertAdjacentHTML('BeforeEnd', vmlStr.join(''));
  112393. };
  112394. contextPrototype.stroke = function(aFill) {
  112395. var lineStr = [];
  112396. var lineOpen = false;
  112397. var W = 10;
  112398. var H = 10;
  112399. lineStr.push('<g_vml_:shape',
  112400. ' filled="', !!aFill, '"',
  112401. ' style="position:absolute;width:', W, 'px;height:', H, 'px;"',
  112402. ' coordorigin="0,0"',
  112403. ' coordsize="', Z * W, ',', Z * H, '"',
  112404. ' stroked="', !aFill, '"',
  112405. ' path="');
  112406. var newSeq = false;
  112407. var min = {x: null, y: null};
  112408. var max = {x: null, y: null};
  112409. for (var i = 0; i < this.currentPath_.length; i++) {
  112410. var p = this.currentPath_[i];
  112411. var c;
  112412. switch (p.type) {
  112413. case 'moveTo':
  112414. c = p;
  112415. lineStr.push(' m ', mr(p.x), ',', mr(p.y));
  112416. break;
  112417. case 'lineTo':
  112418. lineStr.push(' l ', mr(p.x), ',', mr(p.y));
  112419. break;
  112420. case 'close':
  112421. lineStr.push(' x ');
  112422. p = null;
  112423. break;
  112424. case 'bezierCurveTo':
  112425. lineStr.push(' c ',
  112426. mr(p.cp1x), ',', mr(p.cp1y), ',',
  112427. mr(p.cp2x), ',', mr(p.cp2y), ',',
  112428. mr(p.x), ',', mr(p.y));
  112429. break;
  112430. case 'at':
  112431. case 'wa':
  112432. lineStr.push(' ', p.type, ' ',
  112433. mr(p.x - this.arcScaleX_ * p.radius), ',',
  112434. mr(p.y - this.arcScaleY_ * p.radius), ' ',
  112435. mr(p.x + this.arcScaleX_ * p.radius), ',',
  112436. mr(p.y + this.arcScaleY_ * p.radius), ' ',
  112437. mr(p.xStart), ',', mr(p.yStart), ' ',
  112438. mr(p.xEnd), ',', mr(p.yEnd));
  112439. break;
  112440. }
  112441. // TODO: Following is broken for curves due to
  112442. // move to proper paths.
  112443. // Figure out dimensions so we can do gradient fills
  112444. // properly
  112445. if (p) {
  112446. if (min.x == null || p.x < min.x) {
  112447. min.x = p.x;
  112448. }
  112449. if (max.x == null || p.x > max.x) {
  112450. max.x = p.x;
  112451. }
  112452. if (min.y == null || p.y < min.y) {
  112453. min.y = p.y;
  112454. }
  112455. if (max.y == null || p.y > max.y) {
  112456. max.y = p.y;
  112457. }
  112458. }
  112459. }
  112460. lineStr.push(' ">');
  112461. if (!aFill) {
  112462. appendStroke(this, lineStr);
  112463. } else {
  112464. appendFill(this, lineStr, min, max);
  112465. }
  112466. lineStr.push('</g_vml_:shape>');
  112467. this.element_.insertAdjacentHTML('beforeEnd', lineStr.join(''));
  112468. };
  112469. function appendStroke(ctx, lineStr) {
  112470. var a = processStyle(ctx.strokeStyle);
  112471. var color = a.color;
  112472. var opacity = a.alpha * ctx.globalAlpha;
  112473. var lineWidth = ctx.lineScale_ * ctx.lineWidth;
  112474. // VML cannot correctly render a line if the width is less than 1px.
  112475. // In that case, we dilute the color to make the line look thinner.
  112476. if (lineWidth < 1) {
  112477. opacity *= lineWidth;
  112478. }
  112479. lineStr.push(
  112480. '<g_vml_:stroke',
  112481. ' opacity="', opacity, '"',
  112482. ' joinstyle="', ctx.lineJoin, '"',
  112483. ' miterlimit="', ctx.miterLimit, '"',
  112484. ' endcap="', processLineCap(ctx.lineCap), '"',
  112485. ' weight="', lineWidth, 'px"',
  112486. ' color="', color, '" />'
  112487. );
  112488. }
  112489. function appendFill(ctx, lineStr, min, max) {
  112490. var fillStyle = ctx.fillStyle;
  112491. var arcScaleX = ctx.arcScaleX_;
  112492. var arcScaleY = ctx.arcScaleY_;
  112493. var width = max.x - min.x;
  112494. var height = max.y - min.y;
  112495. if (fillStyle instanceof CanvasGradient_) {
  112496. // TODO: Gradients transformed with the transformation matrix.
  112497. var angle = 0;
  112498. var focus = {x: 0, y: 0};
  112499. // additional offset
  112500. var shift = 0;
  112501. // scale factor for offset
  112502. var expansion = 1;
  112503. if (fillStyle.type_ == 'gradient') {
  112504. var x0 = fillStyle.x0_ / arcScaleX;
  112505. var y0 = fillStyle.y0_ / arcScaleY;
  112506. var x1 = fillStyle.x1_ / arcScaleX;
  112507. var y1 = fillStyle.y1_ / arcScaleY;
  112508. var p0 = getCoords(ctx, x0, y0);
  112509. var p1 = getCoords(ctx, x1, y1);
  112510. var dx = p1.x - p0.x;
  112511. var dy = p1.y - p0.y;
  112512. angle = Math.atan2(dx, dy) * 180 / Math.PI;
  112513. // The angle should be a non-negative number.
  112514. if (angle < 0) {
  112515. angle += 360;
  112516. }
  112517. // Very small angles produce an unexpected result because they are
  112518. // converted to a scientific notation string.
  112519. if (angle < 1e-6) {
  112520. angle = 0;
  112521. }
  112522. } else {
  112523. var p0 = getCoords(ctx, fillStyle.x0_, fillStyle.y0_);
  112524. focus = {
  112525. x: (p0.x - min.x) / width,
  112526. y: (p0.y - min.y) / height
  112527. };
  112528. width /= arcScaleX * Z;
  112529. height /= arcScaleY * Z;
  112530. var dimension = m.max(width, height);
  112531. shift = 2 * fillStyle.r0_ / dimension;
  112532. expansion = 2 * fillStyle.r1_ / dimension - shift;
  112533. }
  112534. // We need to sort the color stops in ascending order by offset,
  112535. // otherwise IE won't interpret it correctly.
  112536. var stops = fillStyle.colors_;
  112537. stops.sort(function(cs1, cs2) {
  112538. return cs1.offset - cs2.offset;
  112539. });
  112540. var length = stops.length;
  112541. var color1 = stops[0].color;
  112542. var color2 = stops[length - 1].color;
  112543. var opacity1 = stops[0].alpha * ctx.globalAlpha;
  112544. var opacity2 = stops[length - 1].alpha * ctx.globalAlpha;
  112545. var colors = [];
  112546. for (var i = 0; i < length; i++) {
  112547. var stop = stops[i];
  112548. colors.push(stop.offset * expansion + shift + ' ' + stop.color);
  112549. }
  112550. // When colors attribute is used, the meanings of opacity and o:opacity2
  112551. // are reversed.
  112552. lineStr.push('<g_vml_:fill type="', fillStyle.type_, '"',
  112553. ' method="none" focus="100%"',
  112554. ' color="', color1, '"',
  112555. ' color2="', color2, '"',
  112556. ' colors="', colors.join(','), '"',
  112557. ' opacity="', opacity2, '"',
  112558. ' g_o_:opacity2="', opacity1, '"',
  112559. ' angle="', angle, '"',
  112560. ' focusposition="', focus.x, ',', focus.y, '" />');
  112561. } else if (fillStyle instanceof CanvasPattern_) {
  112562. if (width && height) {
  112563. var deltaLeft = -min.x;
  112564. var deltaTop = -min.y;
  112565. lineStr.push('<g_vml_:fill',
  112566. ' position="',
  112567. deltaLeft / width * arcScaleX * arcScaleX, ',',
  112568. deltaTop / height * arcScaleY * arcScaleY, '"',
  112569. ' type="tile"',
  112570. // TODO: Figure out the correct size to fit the scale.
  112571. //' size="', w, 'px ', h, 'px"',
  112572. ' src="', fillStyle.src_, '" />');
  112573. }
  112574. } else {
  112575. var a = processStyle(ctx.fillStyle);
  112576. var color = a.color;
  112577. var opacity = a.alpha * ctx.globalAlpha;
  112578. lineStr.push('<g_vml_:fill color="', color, '" opacity="', opacity,
  112579. '" />');
  112580. }
  112581. }
  112582. contextPrototype.fill = function() {
  112583. this.stroke(true);
  112584. };
  112585. contextPrototype.closePath = function() {
  112586. this.currentPath_.push({type: 'close'});
  112587. };
  112588. function getCoords(ctx, aX, aY) {
  112589. var m = ctx.m_;
  112590. return {
  112591. x: Z * (aX * m[0][0] + aY * m[1][0] + m[2][0]) - Z2,
  112592. y: Z * (aX * m[0][1] + aY * m[1][1] + m[2][1]) - Z2
  112593. };
  112594. };
  112595. contextPrototype.save = function() {
  112596. var o = {};
  112597. copyState(this, o);
  112598. this.aStack_.push(o);
  112599. this.mStack_.push(this.m_);
  112600. this.m_ = matrixMultiply(createMatrixIdentity(), this.m_);
  112601. };
  112602. contextPrototype.restore = function() {
  112603. if (this.aStack_.length) {
  112604. copyState(this.aStack_.pop(), this);
  112605. this.m_ = this.mStack_.pop();
  112606. }
  112607. };
  112608. function matrixIsFinite(m) {
  112609. return isFinite(m[0][0]) && isFinite(m[0][1]) &&
  112610. isFinite(m[1][0]) && isFinite(m[1][1]) &&
  112611. isFinite(m[2][0]) && isFinite(m[2][1]);
  112612. }
  112613. function setM(ctx, m, updateLineScale) {
  112614. if (!matrixIsFinite(m)) {
  112615. return;
  112616. }
  112617. ctx.m_ = m;
  112618. if (updateLineScale) {
  112619. // Get the line scale.
  112620. // Determinant of this.m_ means how much the area is enlarged by the
  112621. // transformation. So its square root can be used as a scale factor
  112622. // for width.
  112623. var det = m[0][0] * m[1][1] - m[0][1] * m[1][0];
  112624. ctx.lineScale_ = sqrt(abs(det));
  112625. }
  112626. }
  112627. contextPrototype.translate = function(aX, aY) {
  112628. var m1 = [
  112629. [1, 0, 0],
  112630. [0, 1, 0],
  112631. [aX, aY, 1]
  112632. ];
  112633. setM(this, matrixMultiply(m1, this.m_), false);
  112634. };
  112635. contextPrototype.rotate = function(aRot) {
  112636. var c = mc(aRot);
  112637. var s = ms(aRot);
  112638. var m1 = [
  112639. [c, s, 0],
  112640. [-s, c, 0],
  112641. [0, 0, 1]
  112642. ];
  112643. setM(this, matrixMultiply(m1, this.m_), false);
  112644. };
  112645. contextPrototype.scale = function(aX, aY) {
  112646. this.arcScaleX_ *= aX;
  112647. this.arcScaleY_ *= aY;
  112648. var m1 = [
  112649. [aX, 0, 0],
  112650. [0, aY, 0],
  112651. [0, 0, 1]
  112652. ];
  112653. setM(this, matrixMultiply(m1, this.m_), true);
  112654. };
  112655. contextPrototype.transform = function(m11, m12, m21, m22, dx, dy) {
  112656. var m1 = [
  112657. [m11, m12, 0],
  112658. [m21, m22, 0],
  112659. [dx, dy, 1]
  112660. ];
  112661. setM(this, matrixMultiply(m1, this.m_), true);
  112662. };
  112663. contextPrototype.setTransform = function(m11, m12, m21, m22, dx, dy) {
  112664. var m = [
  112665. [m11, m12, 0],
  112666. [m21, m22, 0],
  112667. [dx, dy, 1]
  112668. ];
  112669. setM(this, m, true);
  112670. };
  112671. /**
  112672. * The text drawing function.
  112673. * The maxWidth argument isn't taken in account, since no browser supports
  112674. * it yet.
  112675. */
  112676. contextPrototype.drawText_ = function(text, x, y, maxWidth, stroke) {
  112677. var m = this.m_,
  112678. delta = 1000,
  112679. left = 0,
  112680. right = delta,
  112681. offset = {x: 0, y: 0},
  112682. lineStr = [];
  112683. var fontStyle = getComputedStyle(processFontStyle(this.font),
  112684. this.element_);
  112685. var fontStyleString = buildStyle(fontStyle);
  112686. var elementStyle = this.element_.currentStyle;
  112687. var textAlign = this.textAlign.toLowerCase();
  112688. switch (textAlign) {
  112689. case 'left':
  112690. case 'center':
  112691. case 'right':
  112692. break;
  112693. case 'end':
  112694. textAlign = elementStyle.direction == 'ltr' ? 'right' : 'left';
  112695. break;
  112696. case 'start':
  112697. textAlign = elementStyle.direction == 'rtl' ? 'right' : 'left';
  112698. break;
  112699. default:
  112700. textAlign = 'left';
  112701. }
  112702. // 1.75 is an arbitrary number, as there is no info about the text baseline
  112703. switch (this.textBaseline) {
  112704. case 'hanging':
  112705. case 'top':
  112706. offset.y = fontStyle.size / 1.75;
  112707. break;
  112708. case 'middle':
  112709. break;
  112710. default:
  112711. case null:
  112712. case 'alphabetic':
  112713. case 'ideographic':
  112714. case 'bottom':
  112715. offset.y = -fontStyle.size / 2.25;
  112716. break;
  112717. }
  112718. switch(textAlign) {
  112719. case 'right':
  112720. left = delta;
  112721. right = 0.05;
  112722. break;
  112723. case 'center':
  112724. left = right = delta / 2;
  112725. break;
  112726. }
  112727. var d = getCoords(this, x + offset.x, y + offset.y);
  112728. lineStr.push('<g_vml_:line from="', -left ,' 0" to="', right ,' 0.05" ',
  112729. ' coordsize="100 100" coordorigin="0 0"',
  112730. ' filled="', !stroke, '" stroked="', !!stroke,
  112731. '" style="position:absolute;width:1px;height:1px;">');
  112732. if (stroke) {
  112733. appendStroke(this, lineStr);
  112734. } else {
  112735. // TODO: Fix the min and max params.
  112736. appendFill(this, lineStr, {x: -left, y: 0},
  112737. {x: right, y: fontStyle.size});
  112738. }
  112739. var skewM = m[0][0].toFixed(3) + ',' + m[1][0].toFixed(3) + ',' +
  112740. m[0][1].toFixed(3) + ',' + m[1][1].toFixed(3) + ',0,0';
  112741. var skewOffset = mr(d.x / Z) + ',' + mr(d.y / Z);
  112742. lineStr.push('<g_vml_:skew on="t" matrix="', skewM ,'" ',
  112743. ' offset="', skewOffset, '" origin="', left ,' 0" />',
  112744. '<g_vml_:path textpathok="true" />',
  112745. '<g_vml_:textpath on="true" string="',
  112746. encodeHtmlAttribute(text),
  112747. '" style="v-text-align:', textAlign,
  112748. ';font:', encodeHtmlAttribute(fontStyleString),
  112749. '" /></g_vml_:line>');
  112750. this.element_.insertAdjacentHTML('beforeEnd', lineStr.join(''));
  112751. };
  112752. contextPrototype.fillText = function(text, x, y, maxWidth) {
  112753. this.drawText_(text, x, y, maxWidth, false);
  112754. };
  112755. contextPrototype.strokeText = function(text, x, y, maxWidth) {
  112756. this.drawText_(text, x, y, maxWidth, true);
  112757. };
  112758. contextPrototype.measureText = function(text) {
  112759. if (!this.textMeasureEl_) {
  112760. var s = '<span style="position:absolute;' +
  112761. 'top:-20000px;left:0;padding:0;margin:0;border:none;' +
  112762. 'white-space:pre;"></span>';
  112763. this.element_.insertAdjacentHTML('beforeEnd', s);
  112764. this.textMeasureEl_ = this.element_.lastChild;
  112765. }
  112766. var doc = this.element_.ownerDocument;
  112767. this.textMeasureEl_.innerHTML = '';
  112768. this.textMeasureEl_.style.font = this.font;
  112769. // Don't use innerHTML or innerText because they allow markup/whitespace.
  112770. this.textMeasureEl_.appendChild(doc.createTextNode(text));
  112771. return {width: this.textMeasureEl_.offsetWidth};
  112772. };
  112773. /******** STUBS ********/
  112774. contextPrototype.clip = function() {
  112775. // TODO: Implement
  112776. };
  112777. contextPrototype.arcTo = function() {
  112778. // TODO: Implement
  112779. };
  112780. contextPrototype.createPattern = function(image, repetition) {
  112781. return new CanvasPattern_(image, repetition);
  112782. };
  112783. // Gradient / Pattern Stubs
  112784. function CanvasGradient_(aType) {
  112785. this.type_ = aType;
  112786. this.x0_ = 0;
  112787. this.y0_ = 0;
  112788. this.r0_ = 0;
  112789. this.x1_ = 0;
  112790. this.y1_ = 0;
  112791. this.r1_ = 0;
  112792. this.colors_ = [];
  112793. }
  112794. CanvasGradient_.prototype.addColorStop = function(aOffset, aColor) {
  112795. aColor = processStyle(aColor);
  112796. this.colors_.push({offset: aOffset,
  112797. color: aColor.color,
  112798. alpha: aColor.alpha});
  112799. };
  112800. function CanvasPattern_(image, repetition) {
  112801. assertImageIsValid(image);
  112802. switch (repetition) {
  112803. case 'repeat':
  112804. case null:
  112805. case '':
  112806. this.repetition_ = 'repeat';
  112807. break
  112808. case 'repeat-x':
  112809. case 'repeat-y':
  112810. case 'no-repeat':
  112811. this.repetition_ = repetition;
  112812. break;
  112813. default:
  112814. throwException('SYNTAX_ERR');
  112815. }
  112816. this.src_ = image.src;
  112817. this.width_ = image.width;
  112818. this.height_ = image.height;
  112819. }
  112820. function throwException(s) {
  112821. throw new DOMException_(s);
  112822. }
  112823. function assertImageIsValid(img) {
  112824. if (!img || img.nodeType != 1 || img.tagName != 'IMG') {
  112825. throwException('TYPE_MISMATCH_ERR');
  112826. }
  112827. if (img.readyState != 'complete') {
  112828. throwException('INVALID_STATE_ERR');
  112829. }
  112830. }
  112831. function DOMException_(s) {
  112832. this.code = this[s];
  112833. this.message = s +': DOM Exception ' + this.code;
  112834. }
  112835. var p = DOMException_.prototype = new Error;
  112836. p.INDEX_SIZE_ERR = 1;
  112837. p.DOMSTRING_SIZE_ERR = 2;
  112838. p.HIERARCHY_REQUEST_ERR = 3;
  112839. p.WRONG_DOCUMENT_ERR = 4;
  112840. p.INVALID_CHARACTER_ERR = 5;
  112841. p.NO_DATA_ALLOWED_ERR = 6;
  112842. p.NO_MODIFICATION_ALLOWED_ERR = 7;
  112843. p.NOT_FOUND_ERR = 8;
  112844. p.NOT_SUPPORTED_ERR = 9;
  112845. p.INUSE_ATTRIBUTE_ERR = 10;
  112846. p.INVALID_STATE_ERR = 11;
  112847. p.SYNTAX_ERR = 12;
  112848. p.INVALID_MODIFICATION_ERR = 13;
  112849. p.NAMESPACE_ERR = 14;
  112850. p.INVALID_ACCESS_ERR = 15;
  112851. p.VALIDATION_ERR = 16;
  112852. p.TYPE_MISMATCH_ERR = 17;
  112853. // set up externs
  112854. G_vmlCanvasManager = G_vmlCanvasManager_;
  112855. CanvasRenderingContext2D = CanvasRenderingContext2D_;
  112856. CanvasGradient = CanvasGradient_;
  112857. CanvasPattern = CanvasPattern_;
  112858. DOMException = DOMException_;
  112859. })();
  112860. } // if
  112861. ;
  112862. /* Respond.js: min/max-width media query polyfill. (c) Scott Jehl. MIT Lic. j.mp/respondjs */
  112863. (function( w ){
  112864. "use strict";
  112865. //exposed namespace
  112866. var respond = {};
  112867. w.respond = respond;
  112868. //define update even in native-mq-supporting browsers, to avoid errors
  112869. respond.update = function(){};
  112870. //define ajax obj
  112871. var requestQueue = [],
  112872. xmlHttp = (function() {
  112873. var xmlhttpmethod = false;
  112874. try {
  112875. xmlhttpmethod = new w.XMLHttpRequest();
  112876. }
  112877. catch( e ){
  112878. xmlhttpmethod = new w.ActiveXObject( "Microsoft.XMLHTTP" );
  112879. }
  112880. return function(){
  112881. return xmlhttpmethod;
  112882. };
  112883. })(),
  112884. //tweaked Ajax functions from Quirksmode
  112885. ajax = function( url, callback ) {
  112886. var req = xmlHttp();
  112887. if (!req){
  112888. return;
  112889. }
  112890. req.open( "GET", url, true );
  112891. req.onreadystatechange = function () {
  112892. if ( req.readyState !== 4 || req.status !== 200 && req.status !== 304 ){
  112893. return;
  112894. }
  112895. callback( req.responseText );
  112896. };
  112897. if ( req.readyState === 4 ){
  112898. return;
  112899. }
  112900. req.send( null );
  112901. },
  112902. isUnsupportedMediaQuery = function( query ) {
  112903. return query.replace( respond.regex.minmaxwh, '' ).match( respond.regex.other );
  112904. };
  112905. //expose for testing
  112906. respond.ajax = ajax;
  112907. respond.queue = requestQueue;
  112908. respond.unsupportedmq = isUnsupportedMediaQuery;
  112909. respond.regex = {
  112910. media: /@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,
  112911. keyframes: /@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,
  112912. comments: /\/\*[^*]*\*+([^/][^*]*\*+)*\//gi,
  112913. urls: /(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,
  112914. findStyles: /@media *([^\{]+)\{([\S\s]+?)$/,
  112915. only: /(only\s+)?([a-zA-Z]+)\s?/,
  112916. minw: /\(\s*min\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/,
  112917. maxw: /\(\s*max\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/,
  112918. minmaxwh: /\(\s*m(in|ax)\-(height|width)\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/gi,
  112919. other: /\([^\)]*\)/g
  112920. };
  112921. //expose media query support flag for external use
  112922. respond.mediaQueriesSupported = w.matchMedia && w.matchMedia( "only all" ) !== null && w.matchMedia( "only all" ).matches;
  112923. //if media queries are supported, exit here
  112924. if( respond.mediaQueriesSupported ){
  112925. return;
  112926. }
  112927. //define vars
  112928. var doc = w.document,
  112929. docElem = doc.documentElement,
  112930. mediastyles = [],
  112931. rules = [],
  112932. appendedEls = [],
  112933. parsedSheets = {},
  112934. resizeThrottle = 30,
  112935. head = doc.getElementsByTagName( "head" )[0] || docElem,
  112936. base = doc.getElementsByTagName( "base" )[0],
  112937. links = head.getElementsByTagName( "link" ),
  112938. lastCall,
  112939. resizeDefer,
  112940. //cached container for 1em value, populated the first time it's needed
  112941. eminpx,
  112942. // returns the value of 1em in pixels
  112943. getEmValue = function() {
  112944. var ret,
  112945. div = doc.createElement('div'),
  112946. body = doc.body,
  112947. originalHTMLFontSize = docElem.style.fontSize,
  112948. originalBodyFontSize = body && body.style.fontSize,
  112949. fakeUsed = false;
  112950. div.style.cssText = "position:absolute;font-size:1em;width:1em";
  112951. if( !body ){
  112952. body = fakeUsed = doc.createElement( "body" );
  112953. body.style.background = "none";
  112954. }
  112955. // 1em in a media query is the value of the default font size of the browser
  112956. // reset docElem and body to ensure the correct value is returned
  112957. docElem.style.fontSize = "100%";
  112958. body.style.fontSize = "100%";
  112959. body.appendChild( div );
  112960. if( fakeUsed ){
  112961. docElem.insertBefore( body, docElem.firstChild );
  112962. }
  112963. ret = div.offsetWidth;
  112964. if( fakeUsed ){
  112965. docElem.removeChild( body );
  112966. }
  112967. else {
  112968. body.removeChild( div );
  112969. }
  112970. // restore the original values
  112971. docElem.style.fontSize = originalHTMLFontSize;
  112972. if( originalBodyFontSize ) {
  112973. body.style.fontSize = originalBodyFontSize;
  112974. }
  112975. //also update eminpx before returning
  112976. ret = eminpx = parseFloat(ret);
  112977. return ret;
  112978. },
  112979. //enable/disable styles
  112980. applyMedia = function( fromResize ){
  112981. var name = "clientWidth",
  112982. docElemProp = docElem[ name ],
  112983. currWidth = doc.compatMode === "CSS1Compat" && docElemProp || doc.body[ name ] || docElemProp,
  112984. styleBlocks = {},
  112985. lastLink = links[ links.length-1 ],
  112986. now = (new Date()).getTime();
  112987. //throttle resize calls
  112988. if( fromResize && lastCall && now - lastCall < resizeThrottle ){
  112989. w.clearTimeout( resizeDefer );
  112990. resizeDefer = w.setTimeout( applyMedia, resizeThrottle );
  112991. return;
  112992. }
  112993. else {
  112994. lastCall = now;
  112995. }
  112996. for( var i in mediastyles ){
  112997. if( mediastyles.hasOwnProperty( i ) ){
  112998. var thisstyle = mediastyles[ i ],
  112999. min = thisstyle.minw,
  113000. max = thisstyle.maxw,
  113001. minnull = min === null,
  113002. maxnull = max === null,
  113003. em = "em";
  113004. if( !!min ){
  113005. min = parseFloat( min ) * ( min.indexOf( em ) > -1 ? ( eminpx || getEmValue() ) : 1 );
  113006. }
  113007. if( !!max ){
  113008. max = parseFloat( max ) * ( max.indexOf( em ) > -1 ? ( eminpx || getEmValue() ) : 1 );
  113009. }
  113010. // if there's no media query at all (the () part), or min or max is not null, and if either is present, they're true
  113011. if( !thisstyle.hasquery || ( !minnull || !maxnull ) && ( minnull || currWidth >= min ) && ( maxnull || currWidth <= max ) ){
  113012. if( !styleBlocks[ thisstyle.media ] ){
  113013. styleBlocks[ thisstyle.media ] = [];
  113014. }
  113015. styleBlocks[ thisstyle.media ].push( rules[ thisstyle.rules ] );
  113016. }
  113017. }
  113018. }
  113019. //remove any existing respond style element(s)
  113020. for( var j in appendedEls ){
  113021. if( appendedEls.hasOwnProperty( j ) ){
  113022. if( appendedEls[ j ] && appendedEls[ j ].parentNode === head ){
  113023. head.removeChild( appendedEls[ j ] );
  113024. }
  113025. }
  113026. }
  113027. appendedEls.length = 0;
  113028. //inject active styles, grouped by media type
  113029. for( var k in styleBlocks ){
  113030. if( styleBlocks.hasOwnProperty( k ) ){
  113031. var ss = doc.createElement( "style" ),
  113032. css = styleBlocks[ k ].join( "\n" );
  113033. ss.type = "text/css";
  113034. ss.media = k;
  113035. //originally, ss was appended to a documentFragment and sheets were appended in bulk.
  113036. //this caused crashes in IE in a number of circumstances, such as when the HTML element had a bg image set, so appending beforehand seems best. Thanks to @dvelyk for the initial research on this one!
  113037. head.insertBefore( ss, lastLink.nextSibling );
  113038. if ( ss.styleSheet ){
  113039. ss.styleSheet.cssText = css;
  113040. }
  113041. else {
  113042. ss.appendChild( doc.createTextNode( css ) );
  113043. }
  113044. //push to appendedEls to track for later removal
  113045. appendedEls.push( ss );
  113046. }
  113047. }
  113048. },
  113049. //find media blocks in css text, convert to style blocks
  113050. translate = function( styles, href, media ){
  113051. var qs = styles.replace( respond.regex.comments, '' )
  113052. .replace( respond.regex.keyframes, '' )
  113053. .match( respond.regex.media ),
  113054. ql = qs && qs.length || 0;
  113055. //try to get CSS path
  113056. href = href.substring( 0, href.lastIndexOf( "/" ) );
  113057. var repUrls = function( css ){
  113058. return css.replace( respond.regex.urls, "$1" + href + "$2$3" );
  113059. },
  113060. useMedia = !ql && media;
  113061. //if path exists, tack on trailing slash
  113062. if( href.length ){ href += "/"; }
  113063. //if no internal queries exist, but media attr does, use that
  113064. //note: this currently lacks support for situations where a media attr is specified on a link AND
  113065. //its associated stylesheet has internal CSS media queries.
  113066. //In those cases, the media attribute will currently be ignored.
  113067. if( useMedia ){
  113068. ql = 1;
  113069. }
  113070. for( var i = 0; i < ql; i++ ){
  113071. var fullq, thisq, eachq, eql;
  113072. //media attr
  113073. if( useMedia ){
  113074. fullq = media;
  113075. rules.push( repUrls( styles ) );
  113076. }
  113077. //parse for styles
  113078. else{
  113079. fullq = qs[ i ].match( respond.regex.findStyles ) && RegExp.$1;
  113080. rules.push( RegExp.$2 && repUrls( RegExp.$2 ) );
  113081. }
  113082. eachq = fullq.split( "," );
  113083. eql = eachq.length;
  113084. for( var j = 0; j < eql; j++ ){
  113085. thisq = eachq[ j ];
  113086. if( isUnsupportedMediaQuery( thisq ) ) {
  113087. continue;
  113088. }
  113089. mediastyles.push( {
  113090. media : thisq.split( "(" )[ 0 ].match( respond.regex.only ) && RegExp.$2 || "all",
  113091. rules : rules.length - 1,
  113092. hasquery : thisq.indexOf("(") > -1,
  113093. minw : thisq.match( respond.regex.minw ) && parseFloat( RegExp.$1 ) + ( RegExp.$2 || "" ),
  113094. maxw : thisq.match( respond.regex.maxw ) && parseFloat( RegExp.$1 ) + ( RegExp.$2 || "" )
  113095. } );
  113096. }
  113097. }
  113098. applyMedia();
  113099. },
  113100. //recurse through request queue, get css text
  113101. makeRequests = function(){
  113102. if( requestQueue.length ){
  113103. var thisRequest = requestQueue.shift();
  113104. ajax( thisRequest.href, function( styles ){
  113105. translate( styles, thisRequest.href, thisRequest.media );
  113106. parsedSheets[ thisRequest.href ] = true;
  113107. // by wrapping recursive function call in setTimeout
  113108. // we prevent "Stack overflow" error in IE7
  113109. w.setTimeout(function(){ makeRequests(); },0);
  113110. } );
  113111. }
  113112. },
  113113. //loop stylesheets, send text content to translate
  113114. ripCSS = function(){
  113115. for( var i = 0; i < links.length; i++ ){
  113116. var sheet = links[ i ],
  113117. href = sheet.href,
  113118. media = sheet.media,
  113119. isCSS = sheet.rel && sheet.rel.toLowerCase() === "stylesheet";
  113120. //only links plz and prevent re-parsing
  113121. if( !!href && isCSS && !parsedSheets[ href ] ){
  113122. // selectivizr exposes css through the rawCssText expando
  113123. if (sheet.styleSheet && sheet.styleSheet.rawCssText) {
  113124. translate( sheet.styleSheet.rawCssText, href, media );
  113125. parsedSheets[ href ] = true;
  113126. } else {
  113127. if( (!/^([a-zA-Z:]*\/\/)/.test( href ) && !base) ||
  113128. href.replace( RegExp.$1, "" ).split( "/" )[0] === w.location.host ){
  113129. // IE7 doesn't handle urls that start with '//' for ajax request
  113130. // manually add in the protocol
  113131. if ( href.substring(0,2) === "//" ) { href = w.location.protocol + href; }
  113132. requestQueue.push( {
  113133. href: href,
  113134. media: media
  113135. } );
  113136. }
  113137. }
  113138. }
  113139. }
  113140. makeRequests();
  113141. };
  113142. //translate CSS
  113143. ripCSS();
  113144. //expose update for re-running respond later on
  113145. respond.update = ripCSS;
  113146. //expose getEmValue
  113147. respond.getEmValue = getEmValue;
  113148. //adjust on resize
  113149. function callMedia(){
  113150. applyMedia( true );
  113151. }
  113152. if( w.addEventListener ){
  113153. w.addEventListener( "resize", callMedia, false );
  113154. }
  113155. else if( w.attachEvent ){
  113156. w.attachEvent( "onresize", callMedia );
  113157. }
  113158. })(this);
  113159. /**
  113160. Core script to handle the entire theme and core functions
  113161. **/
  113162. var App = function() {
  113163. // IE mode
  113164. var isRTL = false;
  113165. var isIE8 = false;
  113166. var isIE9 = false;
  113167. var isIE10 = false;
  113168. var resizeHandlers = [];
  113169. var assetsPath = '../assets/';
  113170. var globalImgPath = 'global/img/';
  113171. var globalPluginsPath = 'global/plugins/';
  113172. var globalCssPath = 'global/css/';
  113173. // theme layout color set
  113174. var brandColors = {
  113175. 'blue': '#89C4F4',
  113176. 'red': '#F3565D',
  113177. 'green': '#1bbc9b',
  113178. 'purple': '#9b59b6',
  113179. 'grey': '#95a5a6',
  113180. 'yellow': '#F8CB00'
  113181. };
  113182. // initializes main settings
  113183. var handleInit = function() {
  113184. if ($('body').css('direction') === 'rtl') {
  113185. isRTL = true;
  113186. }
  113187. isIE8 = !!navigator.userAgent.match(/MSIE 8.0/);
  113188. isIE9 = !!navigator.userAgent.match(/MSIE 9.0/);
  113189. isIE10 = !!navigator.userAgent.match(/MSIE 10.0/);
  113190. if (isIE10) {
  113191. $('html').addClass('ie10'); // detect IE10 version
  113192. }
  113193. if (isIE10 || isIE9 || isIE8) {
  113194. $('html').addClass('ie'); // detect IE10 version
  113195. }
  113196. };
  113197. // runs callback functions set by App.addResponsiveHandler().
  113198. var _runResizeHandlers = function() {
  113199. // reinitialize other subscribed elements
  113200. for (var i = 0; i < resizeHandlers.length; i++) {
  113201. var each = resizeHandlers[i];
  113202. each.call();
  113203. }
  113204. };
  113205. // handle the layout reinitialization on window resize
  113206. var handleOnResize = function() {
  113207. var resize;
  113208. if (isIE8) {
  113209. var currheight;
  113210. $(window).resize(function() {
  113211. if (currheight == document.documentElement.clientHeight) {
  113212. return; //quite event since only body resized not window.
  113213. }
  113214. if (resize) {
  113215. clearTimeout(resize);
  113216. }
  113217. resize = setTimeout(function() {
  113218. _runResizeHandlers();
  113219. }, 50); // wait 50ms until window resize finishes.
  113220. currheight = document.documentElement.clientHeight; // store last body client height
  113221. });
  113222. } else {
  113223. $(window).resize(function() {
  113224. if (resize) {
  113225. clearTimeout(resize);
  113226. }
  113227. resize = setTimeout(function() {
  113228. _runResizeHandlers();
  113229. }, 50); // wait 50ms until window resize finishes.
  113230. });
  113231. }
  113232. };
  113233. // Handles portlet tools & actions
  113234. var handlePortletTools = function() {
  113235. // handle portlet remove
  113236. $('body').on('click', '.portlet > .portlet-title > .tools > a.remove', function(e) {
  113237. e.preventDefault();
  113238. var portlet = $(this).closest(".portlet");
  113239. if ($('body').hasClass('page-portlet-fullscreen')) {
  113240. $('body').removeClass('page-portlet-fullscreen');
  113241. }
  113242. portlet.find('.portlet-title .fullscreen').tooltip('destroy');
  113243. portlet.find('.portlet-title > .tools > .reload').tooltip('destroy');
  113244. portlet.find('.portlet-title > .tools > .remove').tooltip('destroy');
  113245. portlet.find('.portlet-title > .tools > .config').tooltip('destroy');
  113246. portlet.find('.portlet-title > .tools > .collapse, .portlet > .portlet-title > .tools > .expand').tooltip('destroy');
  113247. portlet.remove();
  113248. });
  113249. // handle portlet fullscreen
  113250. $('body').on('click', '.portlet > .portlet-title .fullscreen', function(e) {
  113251. e.preventDefault();
  113252. var portlet = $(this).closest(".portlet");
  113253. if (portlet.hasClass('portlet-fullscreen')) {
  113254. $(this).removeClass('on');
  113255. portlet.removeClass('portlet-fullscreen');
  113256. $('body').removeClass('page-portlet-fullscreen');
  113257. portlet.children('.portlet-body').css('height', 'auto');
  113258. } else {
  113259. var height = App.getViewPort().height -
  113260. portlet.children('.portlet-title').outerHeight() -
  113261. parseInt(portlet.children('.portlet-body').css('padding-top')) -
  113262. parseInt(portlet.children('.portlet-body').css('padding-bottom'));
  113263. $(this).addClass('on');
  113264. portlet.addClass('portlet-fullscreen');
  113265. $('body').addClass('page-portlet-fullscreen');
  113266. portlet.children('.portlet-body').css('height', height);
  113267. }
  113268. });
  113269. $('body').on('click', '.portlet > .portlet-title > .tools > a.reload', function(e) {
  113270. e.preventDefault();
  113271. var el = $(this).closest(".portlet").children(".portlet-body");
  113272. var url = $(this).attr("data-url");
  113273. var error = $(this).attr("data-error-display");
  113274. if (url) {
  113275. App.blockUI({
  113276. target: el,
  113277. animate: true,
  113278. overlayColor: 'none'
  113279. });
  113280. $.ajax({
  113281. type: "GET",
  113282. cache: false,
  113283. url: url,
  113284. dataType: "html",
  113285. success: function(res) {
  113286. App.unblockUI(el);
  113287. el.html(res);
  113288. App.initAjax() // reinitialize elements & plugins for newly loaded content
  113289. },
  113290. error: function(xhr, ajaxOptions, thrownError) {
  113291. App.unblockUI(el);
  113292. var msg = 'Error on reloading the content. Please check your connection and try again.';
  113293. if (error == "toastr" && toastr) {
  113294. toastr.error(msg);
  113295. } else if (error == "notific8" && $.notific8) {
  113296. $.notific8('zindex', 11500);
  113297. $.notific8(msg, {
  113298. theme: 'ruby',
  113299. life: 3000
  113300. });
  113301. } else {
  113302. alert(msg);
  113303. }
  113304. }
  113305. });
  113306. } else {
  113307. // for demo purpose
  113308. App.blockUI({
  113309. target: el,
  113310. animate: true,
  113311. overlayColor: 'none'
  113312. });
  113313. window.setTimeout(function() {
  113314. App.unblockUI(el);
  113315. }, 1000);
  113316. }
  113317. });
  113318. // load ajax data on page init
  113319. $('.portlet .portlet-title a.reload[data-load="true"]').click();
  113320. $('body').on('click', '.portlet > .portlet-title > .tools > .collapse, .portlet .portlet-title > .tools > .expand', function(e) {
  113321. e.preventDefault();
  113322. var el = $(this).closest(".portlet").children(".portlet-body");
  113323. if ($(this).hasClass("collapse")) {
  113324. $(this).removeClass("collapse").addClass("expand");
  113325. el.slideUp(200);
  113326. } else {
  113327. $(this).removeClass("expand").addClass("collapse");
  113328. el.slideDown(200);
  113329. }
  113330. });
  113331. };
  113332. // Handles custom checkboxes & radios using jQuery Uniform plugin
  113333. var handleUniform = function() {
  113334. if (!$().uniform) {
  113335. return;
  113336. }
  113337. var test = $("input[type=checkbox]:not(.toggle, .md-check, .md-radiobtn, .make-switch, .icheck), input[type=radio]:not(.toggle, .md-check, .md-radiobtn, .star, .make-switch, .icheck)");
  113338. if (test.size() > 0) {
  113339. test.each(function() {
  113340. if ($(this).parents(".checker").size() === 0) {
  113341. $(this).show();
  113342. $(this).uniform();
  113343. }
  113344. });
  113345. }
  113346. };
  113347. // Handlesmaterial design checkboxes
  113348. var handleMaterialDesign = function() {
  113349. // Material design ckeckbox and radio effects
  113350. $('body').on('click', '.md-checkbox > label, .md-radio > label', function() {
  113351. var the = $(this);
  113352. // find the first span which is our circle/bubble
  113353. var el = $(this).children('span:first-child');
  113354. // add the bubble class (we do this so it doesnt show on page load)
  113355. el.addClass('inc');
  113356. // clone it
  113357. var newone = el.clone(true);
  113358. // add the cloned version before our original
  113359. el.before(newone);
  113360. // remove the original so that it is ready to run on next click
  113361. $("." + el.attr("class") + ":last", the).remove();
  113362. });
  113363. if ($('body').hasClass('page-md')) {
  113364. // Material design click effect
  113365. // credit where credit's due; http://thecodeplayer.com/walkthrough/ripple-click-effect-google-material-design
  113366. var element, circle, d, x, y;
  113367. $('body').on('click', 'a.btn, button.btn, input.btn, label.btn', function(e) {
  113368. element = $(this);
  113369. if(element.find(".md-click-circle").length == 0) {
  113370. element.prepend("<span class='md-click-circle'></span>");
  113371. }
  113372. circle = element.find(".md-click-circle");
  113373. circle.removeClass("md-click-animate");
  113374. if(!circle.height() && !circle.width()) {
  113375. d = Math.max(element.outerWidth(), element.outerHeight());
  113376. circle.css({height: d, width: d});
  113377. }
  113378. x = e.pageX - element.offset().left - circle.width()/2;
  113379. y = e.pageY - element.offset().top - circle.height()/2;
  113380. circle.css({top: y+'px', left: x+'px'}).addClass("md-click-animate");
  113381. setTimeout(function() {
  113382. circle.remove();
  113383. }, 1000);
  113384. });
  113385. }
  113386. // Floating labels
  113387. var handleInput = function(el) {
  113388. if (el.val() != "") {
  113389. el.addClass('edited');
  113390. } else {
  113391. el.removeClass('edited');
  113392. }
  113393. }
  113394. $('body').on('keydown', '.form-md-floating-label .form-control', function(e) {
  113395. handleInput($(this));
  113396. });
  113397. $('body').on('blur', '.form-md-floating-label .form-control', function(e) {
  113398. handleInput($(this));
  113399. });
  113400. $('.form-md-floating-label .form-control').each(function(){
  113401. if ($(this).val().length > 0) {
  113402. $(this).addClass('edited');
  113403. }
  113404. });
  113405. }
  113406. // Handles custom checkboxes & radios using jQuery iCheck plugin
  113407. var handleiCheck = function() {
  113408. if (!$().iCheck) {
  113409. return;
  113410. }
  113411. $('.icheck').each(function() {
  113412. var checkboxClass = $(this).attr('data-checkbox') ? $(this).attr('data-checkbox') : 'icheckbox_minimal-grey';
  113413. var radioClass = $(this).attr('data-radio') ? $(this).attr('data-radio') : 'iradio_minimal-grey';
  113414. if (checkboxClass.indexOf('_line') > -1 || radioClass.indexOf('_line') > -1) {
  113415. $(this).iCheck({
  113416. checkboxClass: checkboxClass,
  113417. radioClass: radioClass,
  113418. insert: '<div class="icheck_line-icon"></div>' + $(this).attr("data-label")
  113419. });
  113420. } else {
  113421. $(this).iCheck({
  113422. checkboxClass: checkboxClass,
  113423. radioClass: radioClass
  113424. });
  113425. }
  113426. });
  113427. };
  113428. // Handles Bootstrap switches
  113429. var handleBootstrapSwitch = function() {
  113430. if (!$().bootstrapSwitch) {
  113431. return;
  113432. }
  113433. $('.make-switch').bootstrapSwitch();
  113434. };
  113435. // Handles Bootstrap confirmations
  113436. var handleBootstrapConfirmation = function() {
  113437. if (!$().confirmation) {
  113438. return;
  113439. }
  113440. $('[data-toggle=confirmation]').confirmation({ container: 'body', btnOkClass: 'btn btn-sm btn-success', btnCancelClass: 'btn btn-sm btn-danger'});
  113441. }
  113442. // Handles Bootstrap Accordions.
  113443. var handleAccordions = function() {
  113444. $('body').on('shown.bs.collapse', '.accordion.scrollable', function(e) {
  113445. App.scrollTo($(e.target));
  113446. });
  113447. };
  113448. // Handles Bootstrap Tabs.
  113449. var handleTabs = function() {
  113450. //activate tab if tab id provided in the URL
  113451. if (location.hash) {
  113452. var tabid = encodeURI(location.hash.substr(1));
  113453. $('a[href="#' + tabid + '"]').parents('.tab-pane:hidden').each(function() {
  113454. var tabid = $(this).attr("id");
  113455. $('a[href="#' + tabid + '"]').click();
  113456. });
  113457. $('a[href="#' + tabid + '"]').click();
  113458. }
  113459. if ($().tabdrop) {
  113460. $('.tabbable-tabdrop .nav-pills, .tabbable-tabdrop .nav-tabs').tabdrop({
  113461. text: '<i class="fa fa-ellipsis-v"></i>&nbsp;<i class="fa fa-angle-down"></i>'
  113462. });
  113463. }
  113464. };
  113465. // Handles Bootstrap Modals.
  113466. var handleModals = function() {
  113467. // fix stackable modal issue: when 2 or more modals opened, closing one of modal will remove .modal-open class.
  113468. $('body').on('hide.bs.modal', function() {
  113469. if ($('.modal:visible').size() > 1 && $('html').hasClass('modal-open') === false) {
  113470. $('html').addClass('modal-open');
  113471. } else if ($('.modal:visible').size() <= 1) {
  113472. $('html').removeClass('modal-open');
  113473. }
  113474. });
  113475. // fix page scrollbars issue
  113476. $('body').on('show.bs.modal', '.modal', function() {
  113477. if ($(this).hasClass("modal-scroll")) {
  113478. $('body').addClass("modal-open-noscroll");
  113479. }
  113480. });
  113481. // fix page scrollbars issue
  113482. $('body').on('hide.bs.modal', '.modal', function() {
  113483. $('body').removeClass("modal-open-noscroll");
  113484. });
  113485. // remove ajax content and remove cache on modal closed
  113486. $('body').on('hidden.bs.modal', '.modal:not(.modal-cached)', function () {
  113487. $(this).removeData('bs.modal');
  113488. });
  113489. };
  113490. // Handles Bootstrap Tooltips.
  113491. var handleTooltips = function() {
  113492. // global tooltips
  113493. $('.tooltips').tooltip();
  113494. // portlet tooltips
  113495. $('.portlet > .portlet-title .fullscreen').tooltip({
  113496. container: 'body',
  113497. title: 'Fullscreen'
  113498. });
  113499. $('.portlet > .portlet-title > .tools > .reload').tooltip({
  113500. container: 'body',
  113501. title: 'Reload'
  113502. });
  113503. $('.portlet > .portlet-title > .tools > .remove').tooltip({
  113504. container: 'body',
  113505. title: 'Remove'
  113506. });
  113507. $('.portlet > .portlet-title > .tools > .config').tooltip({
  113508. container: 'body',
  113509. title: 'Settings'
  113510. });
  113511. $('.portlet > .portlet-title > .tools > .collapse, .portlet > .portlet-title > .tools > .expand').tooltip({
  113512. container: 'body',
  113513. title: 'Collapse/Expand'
  113514. });
  113515. };
  113516. // Handles Bootstrap Dropdowns
  113517. var handleDropdowns = function() {
  113518. /*
  113519. Hold dropdown on click
  113520. */
  113521. $('body').on('click', '.dropdown-menu.hold-on-click', function(e) {
  113522. e.stopPropagation();
  113523. });
  113524. };
  113525. var handleAlerts = function() {
  113526. $('body').on('click', '[data-close="alert"]', function(e) {
  113527. $(this).parent('.alert').hide();
  113528. $(this).closest('.note').hide();
  113529. e.preventDefault();
  113530. });
  113531. $('body').on('click', '[data-close="note"]', function(e) {
  113532. $(this).closest('.note').hide();
  113533. e.preventDefault();
  113534. });
  113535. $('body').on('click', '[data-remove="note"]', function(e) {
  113536. $(this).closest('.note').remove();
  113537. e.preventDefault();
  113538. });
  113539. };
  113540. // Handle Hower Dropdowns
  113541. var handleDropdownHover = function() {
  113542. $('[data-hover="dropdown"]').not('.hover-initialized').each(function() {
  113543. $(this).dropdownHover();
  113544. $(this).addClass('hover-initialized');
  113545. });
  113546. };
  113547. // Handle textarea autosize
  113548. var handleTextareaAutosize = function() {
  113549. if (typeof(autosize) == "function") {
  113550. autosize(document.querySelector('textarea.autosizeme'));
  113551. }
  113552. }
  113553. // Handles Bootstrap Popovers
  113554. // last popep popover
  113555. var lastPopedPopover;
  113556. var handlePopovers = function() {
  113557. $('.popovers').popover();
  113558. // close last displayed popover
  113559. $(document).on('click.bs.popover.data-api', function(e) {
  113560. if (lastPopedPopover) {
  113561. lastPopedPopover.popover('hide');
  113562. }
  113563. });
  113564. };
  113565. // Handles scrollable contents using jQuery SlimScroll plugin.
  113566. var handleScrollers = function() {
  113567. App.initSlimScroll('.scroller');
  113568. };
  113569. // Handles Image Preview using jQuery Fancybox plugin
  113570. var handleFancybox = function() {
  113571. if (!jQuery.fancybox) {
  113572. return;
  113573. }
  113574. if ($(".fancybox-button").size() > 0) {
  113575. $(".fancybox-button").fancybox({
  113576. groupAttr: 'data-rel',
  113577. prevEffect: 'none',
  113578. nextEffect: 'none',
  113579. closeBtn: true,
  113580. helpers: {
  113581. title: {
  113582. type: 'inside'
  113583. }
  113584. }
  113585. });
  113586. }
  113587. };
  113588. // Handles counterup plugin wrapper
  113589. var handleCounterup = function() {
  113590. if (!$().counterUp) {
  113591. return;
  113592. }
  113593. $("[data-counter='counterup']").counterUp({
  113594. delay: 10,
  113595. time: 1000
  113596. });
  113597. };
  113598. // Fix input placeholder issue for IE8 and IE9
  113599. var handleFixInputPlaceholderForIE = function() {
  113600. //fix html5 placeholder attribute for ie7 & ie8
  113601. if (isIE8 || isIE9) { // ie8 & ie9
  113602. // this is html5 placeholder fix for inputs, inputs with placeholder-no-fix class will be skipped(e.g: we need this for password fields)
  113603. $('input[placeholder]:not(.placeholder-no-fix), textarea[placeholder]:not(.placeholder-no-fix)').each(function() {
  113604. var input = $(this);
  113605. if (input.val() === '' && input.attr("placeholder") !== '') {
  113606. input.addClass("placeholder").val(input.attr('placeholder'));
  113607. }
  113608. input.focus(function() {
  113609. if (input.val() == input.attr('placeholder')) {
  113610. input.val('');
  113611. }
  113612. });
  113613. input.blur(function() {
  113614. if (input.val() === '' || input.val() == input.attr('placeholder')) {
  113615. input.val(input.attr('placeholder'));
  113616. }
  113617. });
  113618. });
  113619. }
  113620. };
  113621. // Handle Select2 Dropdowns
  113622. var handleSelect2 = function() {
  113623. if ($().select2) {
  113624. $.fn.select2.defaults.set("theme", "bootstrap");
  113625. $('.select2me').select2({
  113626. placeholder: "Select",
  113627. width: 'auto',
  113628. allowClear: true
  113629. });
  113630. }
  113631. };
  113632. // handle group element heights
  113633. var handleHeight = function() {
  113634. $('[data-auto-height]').each(function() {
  113635. var parent = $(this);
  113636. var items = $('[data-height]', parent);
  113637. var height = 0;
  113638. var mode = parent.attr('data-mode');
  113639. var offset = parseInt(parent.attr('data-offset') ? parent.attr('data-offset') : 0);
  113640. items.each(function() {
  113641. if ($(this).attr('data-height') == "height") {
  113642. $(this).css('height', '');
  113643. } else {
  113644. $(this).css('min-height', '');
  113645. }
  113646. var height_ = (mode == 'base-height' ? $(this).outerHeight() : $(this).outerHeight(true));
  113647. if (height_ > height) {
  113648. height = height_;
  113649. }
  113650. });
  113651. height = height + offset;
  113652. items.each(function() {
  113653. if ($(this).attr('data-height') == "height") {
  113654. $(this).css('height', height);
  113655. } else {
  113656. $(this).css('min-height', height);
  113657. }
  113658. });
  113659. if(parent.attr('data-related')) {
  113660. $(parent.attr('data-related')).css('height', parent.height());
  113661. }
  113662. });
  113663. }
  113664. //* END:CORE HANDLERS *//
  113665. return {
  113666. //main function to initiate the theme
  113667. init: function() {
  113668. //IMPORTANT!!!: Do not modify the core handlers call order.
  113669. //Core handlers
  113670. handleInit(); // initialize core variables
  113671. handleOnResize(); // set and handle responsive
  113672. //UI Component handlers
  113673. handleMaterialDesign(); // handle material design
  113674. handleUniform(); // hanfle custom radio & checkboxes
  113675. handleiCheck(); // handles custom icheck radio and checkboxes
  113676. handleBootstrapSwitch(); // handle bootstrap switch plugin
  113677. handleScrollers(); // handles slim scrolling contents
  113678. handleFancybox(); // handle fancy box
  113679. handleSelect2(); // handle custom Select2 dropdowns
  113680. handlePortletTools(); // handles portlet action bar functionality(refresh, configure, toggle, remove)
  113681. handleAlerts(); //handle closabled alerts
  113682. handleDropdowns(); // handle dropdowns
  113683. handleTabs(); // handle tabs
  113684. handleTooltips(); // handle bootstrap tooltips
  113685. handlePopovers(); // handles bootstrap popovers
  113686. handleAccordions(); //handles accordions
  113687. handleModals(); // handle modals
  113688. handleBootstrapConfirmation(); // handle bootstrap confirmations
  113689. handleTextareaAutosize(); // handle autosize textareas
  113690. handleCounterup(); // handle counterup instances
  113691. //Handle group element heights
  113692. this.addResizeHandler(handleHeight); // handle auto calculating height on window resize
  113693. // Hacks
  113694. handleFixInputPlaceholderForIE(); //IE8 & IE9 input placeholder issue fix
  113695. },
  113696. //main function to initiate core javascript after ajax complete
  113697. initAjax: function() {
  113698. handleUniform(); // handles custom radio & checkboxes
  113699. handleiCheck(); // handles custom icheck radio and checkboxes
  113700. handleBootstrapSwitch(); // handle bootstrap switch plugin
  113701. handleDropdownHover(); // handles dropdown hover
  113702. handleScrollers(); // handles slim scrolling contents
  113703. handleSelect2(); // handle custom Select2 dropdowns
  113704. handleFancybox(); // handle fancy box
  113705. handleDropdowns(); // handle dropdowns
  113706. handleTooltips(); // handle bootstrap tooltips
  113707. handlePopovers(); // handles bootstrap popovers
  113708. handleAccordions(); //handles accordions
  113709. handleBootstrapConfirmation(); // handle bootstrap confirmations
  113710. },
  113711. //init main components
  113712. initComponents: function() {
  113713. this.initAjax();
  113714. },
  113715. //public function to remember last opened popover that needs to be closed on click
  113716. setLastPopedPopover: function(el) {
  113717. lastPopedPopover = el;
  113718. },
  113719. //public function to add callback a function which will be called on window resize
  113720. addResizeHandler: function(func) {
  113721. resizeHandlers.push(func);
  113722. },
  113723. //public functon to call _runresizeHandlers
  113724. runResizeHandlers: function() {
  113725. _runResizeHandlers();
  113726. },
  113727. // wrApper function to scroll(focus) to an element
  113728. scrollTo: function(el, offeset) {
  113729. var pos = (el && el.size() > 0) ? el.offset().top : 0;
  113730. if (el) {
  113731. if ($('body').hasClass('page-header-fixed')) {
  113732. pos = pos - $('.page-header').height();
  113733. } else if ($('body').hasClass('page-header-top-fixed')) {
  113734. pos = pos - $('.page-header-top').height();
  113735. } else if ($('body').hasClass('page-header-menu-fixed')) {
  113736. pos = pos - $('.page-header-menu').height();
  113737. }
  113738. pos = pos + (offeset ? offeset : -1 * el.height());
  113739. }
  113740. $('html,body').animate({
  113741. scrollTop: pos
  113742. }, 'slow');
  113743. },
  113744. initSlimScroll: function(el) {
  113745. $(el).each(function() {
  113746. if ($(this).attr("data-initialized")) {
  113747. return; // exit
  113748. }
  113749. var height;
  113750. if ($(this).attr("data-height")) {
  113751. height = $(this).attr("data-height");
  113752. } else {
  113753. height = $(this).css('height');
  113754. }
  113755. $(this).slimScroll({
  113756. allowPageScroll: true, // allow page scroll when the element scroll is ended
  113757. size: '7px',
  113758. color: ($(this).attr("data-handle-color") ? $(this).attr("data-handle-color") : '#bbb'),
  113759. wrapperClass: ($(this).attr("data-wrapper-class") ? $(this).attr("data-wrapper-class") : 'slimScrollDiv'),
  113760. railColor: ($(this).attr("data-rail-color") ? $(this).attr("data-rail-color") : '#eaeaea'),
  113761. position: isRTL ? 'left' : 'right',
  113762. height: height,
  113763. alwaysVisible: ($(this).attr("data-always-visible") == "1" ? true : false),
  113764. railVisible: ($(this).attr("data-rail-visible") == "1" ? true : false),
  113765. disableFadeOut: true
  113766. });
  113767. $(this).attr("data-initialized", "1");
  113768. });
  113769. },
  113770. destroySlimScroll: function(el) {
  113771. $(el).each(function() {
  113772. if ($(this).attr("data-initialized") === "1") { // destroy existing instance before updating the height
  113773. $(this).removeAttr("data-initialized");
  113774. $(this).removeAttr("style");
  113775. var attrList = {};
  113776. // store the custom attribures so later we will reassign.
  113777. if ($(this).attr("data-handle-color")) {
  113778. attrList["data-handle-color"] = $(this).attr("data-handle-color");
  113779. }
  113780. if ($(this).attr("data-wrapper-class")) {
  113781. attrList["data-wrapper-class"] = $(this).attr("data-wrapper-class");
  113782. }
  113783. if ($(this).attr("data-rail-color")) {
  113784. attrList["data-rail-color"] = $(this).attr("data-rail-color");
  113785. }
  113786. if ($(this).attr("data-always-visible")) {
  113787. attrList["data-always-visible"] = $(this).attr("data-always-visible");
  113788. }
  113789. if ($(this).attr("data-rail-visible")) {
  113790. attrList["data-rail-visible"] = $(this).attr("data-rail-visible");
  113791. }
  113792. $(this).slimScroll({
  113793. wrapperClass: ($(this).attr("data-wrapper-class") ? $(this).attr("data-wrapper-class") : 'slimScrollDiv'),
  113794. destroy: true
  113795. });
  113796. var the = $(this);
  113797. // reassign custom attributes
  113798. $.each(attrList, function(key, value) {
  113799. the.attr(key, value);
  113800. });
  113801. }
  113802. });
  113803. },
  113804. // function to scroll to the top
  113805. scrollTop: function() {
  113806. App.scrollTo();
  113807. },
  113808. // wrApper function to block element(indicate loading)
  113809. blockUI: function(options) {
  113810. options = $.extend(true, {}, options);
  113811. var html = '';
  113812. if (options.animate) {
  113813. html = '<div class="loading-message ' + (options.boxed ? 'loading-message-boxed' : '') + '">' + '<div class="block-spinner-bar"><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div></div>' + '</div>';
  113814. } else if (options.iconOnly) {
  113815. html = '<div class="loading-message ' + (options.boxed ? 'loading-message-boxed' : '') + '"><img src="' + this.getGlobalImgPath() + 'loading-spinner-grey.gif" align=""></div>';
  113816. } else if (options.textOnly) {
  113817. html = '<div class="loading-message ' + (options.boxed ? 'loading-message-boxed' : '') + '"><span>&nbsp;&nbsp;' + (options.message ? options.message : 'LOADING...') + '</span></div>';
  113818. } else {
  113819. html = '<div class="loading-message ' + (options.boxed ? 'loading-message-boxed' : '') + '"><img src="' + this.getGlobalImgPath() + 'loading-spinner-grey.gif" align=""><span>&nbsp;&nbsp;' + (options.message ? options.message : 'LOADING...') + '</span></div>';
  113820. }
  113821. if (options.target) { // element blocking
  113822. var el = $(options.target);
  113823. if (el.height() <= ($(window).height())) {
  113824. options.cenrerY = true;
  113825. }
  113826. el.block({
  113827. message: html,
  113828. baseZ: options.zIndex ? options.zIndex : 1000,
  113829. centerY: options.cenrerY !== undefined ? options.cenrerY : false,
  113830. css: {
  113831. top: '10%',
  113832. border: '0',
  113833. padding: '0',
  113834. backgroundColor: 'none'
  113835. },
  113836. overlayCSS: {
  113837. backgroundColor: options.overlayColor ? options.overlayColor : '#555',
  113838. opacity: options.boxed ? 0.05 : 0.1,
  113839. cursor: 'wait'
  113840. }
  113841. });
  113842. } else { // page blocking
  113843. $.blockUI({
  113844. message: html,
  113845. baseZ: options.zIndex ? options.zIndex : 1000,
  113846. css: {
  113847. border: '0',
  113848. padding: '0',
  113849. backgroundColor: 'none'
  113850. },
  113851. overlayCSS: {
  113852. backgroundColor: options.overlayColor ? options.overlayColor : '#555',
  113853. opacity: options.boxed ? 0.05 : 0.1,
  113854. cursor: 'wait'
  113855. }
  113856. });
  113857. }
  113858. },
  113859. // wrApper function to un-block element(finish loading)
  113860. unblockUI: function(target) {
  113861. if (target) {
  113862. $(target).unblock({
  113863. onUnblock: function() {
  113864. $(target).css('position', '');
  113865. $(target).css('zoom', '');
  113866. }
  113867. });
  113868. } else {
  113869. $.unblockUI();
  113870. }
  113871. },
  113872. startPageLoading: function(options) {
  113873. if (options && options.animate) {
  113874. $('.page-spinner-bar').remove();
  113875. $('body').append('<div class="page-spinner-bar"><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div></div>');
  113876. } else {
  113877. $('.page-loading').remove();
  113878. $('body').append('<div class="page-loading"><img src="' + this.getGlobalImgPath() + 'loading-spinner-grey.gif"/>&nbsp;&nbsp;<span>' + (options && options.message ? options.message : 'Loading...') + '</span></div>');
  113879. }
  113880. },
  113881. stopPageLoading: function() {
  113882. $('.page-loading, .page-spinner-bar').remove();
  113883. },
  113884. alert: function(options) {
  113885. options = $.extend(true, {
  113886. container: "", // alerts parent container(by default placed after the page breadcrumbs)
  113887. place: "append", // "append" or "prepend" in container
  113888. type: 'success', // alert's type
  113889. message: "", // alert's message
  113890. close: true, // make alert closable
  113891. reset: true, // close all previouse alerts first
  113892. focus: true, // auto scroll to the alert after shown
  113893. closeInSeconds: 0, // auto close after defined seconds
  113894. icon: "" // put icon before the message
  113895. }, options);
  113896. var id = App.getUniqueID("App_alert");
  113897. var html = '<div id="' + id + '" class="custom-alerts alert alert-' + options.type + ' fade in">' + (options.close ? '<button type="button" class="close" data-dismiss="alert" aria-hidden="true"></button>' : '') + (options.icon !== "" ? '<i class="fa-lg fa fa-' + options.icon + '"></i> ' : '') + options.message + '</div>';
  113898. if (options.reset) {
  113899. $('.custom-alerts').remove();
  113900. }
  113901. if (!options.container) {
  113902. if ($('body').hasClass("page-container-bg-solid") || $('body').hasClass("page-content-white")) {
  113903. $('.page-title').after(html);
  113904. } else {
  113905. if ($('.page-bar').size() > 0) {
  113906. $('.page-bar').after(html);
  113907. } else {
  113908. $('.page-breadcrumb').after(html);
  113909. }
  113910. }
  113911. } else {
  113912. if (options.place == "append") {
  113913. $(options.container).append(html);
  113914. } else {
  113915. $(options.container).prepend(html);
  113916. }
  113917. }
  113918. if (options.focus) {
  113919. App.scrollTo($('#' + id));
  113920. }
  113921. if (options.closeInSeconds > 0) {
  113922. setTimeout(function() {
  113923. $('#' + id).remove();
  113924. }, options.closeInSeconds * 1000);
  113925. }
  113926. return id;
  113927. },
  113928. // initializes uniform elements
  113929. initUniform: function(els) {
  113930. if (els) {
  113931. $(els).each(function() {
  113932. if ($(this).parents(".checker").size() === 0) {
  113933. $(this).show();
  113934. $(this).uniform();
  113935. }
  113936. });
  113937. } else {
  113938. handleUniform();
  113939. }
  113940. },
  113941. //wrApper function to update/sync jquery uniform checkbox & radios
  113942. updateUniform: function(els) {
  113943. $.uniform.update(els); // update the uniform checkbox & radios UI after the actual input control state changed
  113944. },
  113945. //public function to initialize the fancybox plugin
  113946. initFancybox: function() {
  113947. handleFancybox();
  113948. },
  113949. //public helper function to get actual input value(used in IE9 and IE8 due to placeholder attribute not supported)
  113950. getActualVal: function(el) {
  113951. el = $(el);
  113952. if (el.val() === el.attr("placeholder")) {
  113953. return "";
  113954. }
  113955. return el.val();
  113956. },
  113957. //public function to get a paremeter by name from URL
  113958. getURLParameter: function(paramName) {
  113959. var searchString = window.location.search.substring(1),
  113960. i, val, params = searchString.split("&");
  113961. for (i = 0; i < params.length; i++) {
  113962. val = params[i].split("=");
  113963. if (val[0] == paramName) {
  113964. return unescape(val[1]);
  113965. }
  113966. }
  113967. return null;
  113968. },
  113969. // check for device touch support
  113970. isTouchDevice: function() {
  113971. try {
  113972. document.createEvent("TouchEvent");
  113973. return true;
  113974. } catch (e) {
  113975. return false;
  113976. }
  113977. },
  113978. // To get the correct viewport width based on http://andylangton.co.uk/articles/javascript/get-viewport-size-javascript/
  113979. getViewPort: function() {
  113980. var e = window,
  113981. a = 'inner';
  113982. if (!('innerWidth' in window)) {
  113983. a = 'client';
  113984. e = document.documentElement || document.body;
  113985. }
  113986. return {
  113987. width: e[a + 'Width'],
  113988. height: e[a + 'Height']
  113989. };
  113990. },
  113991. getUniqueID: function(prefix) {
  113992. return 'prefix_' + Math.floor(Math.random() * (new Date()).getTime());
  113993. },
  113994. // check IE8 mode
  113995. isIE8: function() {
  113996. return isIE8;
  113997. },
  113998. // check IE9 mode
  113999. isIE9: function() {
  114000. return isIE9;
  114001. },
  114002. //check RTL mode
  114003. isRTL: function() {
  114004. return isRTL;
  114005. },
  114006. // check IE8 mode
  114007. isAngularJsApp: function() {
  114008. return (typeof angular == 'undefined') ? false : true;
  114009. },
  114010. getAssetsPath: function() {
  114011. return assetsPath;
  114012. },
  114013. setAssetsPath: function(path) {
  114014. assetsPath = path;
  114015. },
  114016. setGlobalImgPath: function(path) {
  114017. globalImgPath = path;
  114018. },
  114019. getGlobalImgPath: function() {
  114020. return assetsPath + globalImgPath;
  114021. },
  114022. setGlobalPluginsPath: function(path) {
  114023. globalPluginsPath = path;
  114024. },
  114025. getGlobalPluginsPath: function() {
  114026. return assetsPath + globalPluginsPath;
  114027. },
  114028. getGlobalCssPath: function() {
  114029. return assetsPath + globalCssPath;
  114030. },
  114031. // get layout color code by color name
  114032. getBrandColor: function(name) {
  114033. if (brandColors[name]) {
  114034. return brandColors[name];
  114035. } else {
  114036. return '';
  114037. }
  114038. },
  114039. getResponsiveBreakpoint: function(size) {
  114040. // bootstrap responsive breakpoints
  114041. var sizes = {
  114042. 'xs' : 480, // extra small
  114043. 'sm' : 768, // small
  114044. 'md' : 992, // medium
  114045. 'lg' : 1200 // large
  114046. };
  114047. return sizes[size] ? sizes[size] : 0;
  114048. }
  114049. };
  114050. }();
  114051. jQuery(document).ready(function() {
  114052. App.init(); // init metronic core componets
  114053. });
  114054. /**
  114055. Demo script to handle the theme demo
  114056. **/
  114057. var Demo = function () {
  114058. // Handle Theme Settings
  114059. var handleTheme = function () {
  114060. var panel = $('.theme-panel');
  114061. if ($('.page-head > .container-fluid').size() === 1) {
  114062. $('.theme-setting-layout', panel).val("fluid");
  114063. } else {
  114064. $('.theme-setting-layout', panel).val("boxed");
  114065. }
  114066. if ($('.top-menu li.dropdown.dropdown-dark').size() > 0) {
  114067. $('.theme-setting-top-menu-style', panel).val("dark");
  114068. } else {
  114069. $('.theme-setting-top-menu-style', panel).val("light");
  114070. }
  114071. if ($('body').hasClass("page-header-top-fixed")) {
  114072. $('.theme-setting-top-menu-mode', panel).val("fixed");
  114073. } else {
  114074. $('.theme-setting-top-menu-mode', panel).val("not-fixed");
  114075. }
  114076. if ($('.hor-menu.hor-menu-light').size() > 0) {
  114077. $('.theme-setting-mega-menu-style', panel).val("light");
  114078. } else {
  114079. $('.theme-setting-mega-menu-style', panel).val("dark");
  114080. }
  114081. if ($('body').hasClass("page-header-menu-fixed")) {
  114082. $('.theme-setting-mega-menu-mode', panel).val("fixed");
  114083. } else {
  114084. $('.theme-setting-mega-menu-mode', panel).val("not-fixed");
  114085. }
  114086. //handle theme layout
  114087. var resetLayout = function () {
  114088. $("body").
  114089. removeClass("page-header-top-fixed").
  114090. removeClass("page-header-menu-fixed");
  114091. $('.page-header-top > .container-fluid').removeClass("container-fluid").addClass('container');
  114092. $('.page-header-menu > .container-fluid').removeClass("container-fluid").addClass('container');
  114093. $('.page-head > .container-fluid').removeClass("container-fluid").addClass('container');
  114094. $('.page-content > .container-fluid').removeClass("container-fluid").addClass('container');
  114095. $('.page-prefooter > .container-fluid').removeClass("container-fluid").addClass('container');
  114096. $('.page-footer > .container-fluid').removeClass("container-fluid").addClass('container');
  114097. };
  114098. var setLayout = function () {
  114099. var layoutMode = $('.theme-setting-layout', panel).val();
  114100. var headerTopMenuStyle = $('.theme-setting-top-menu-style', panel).val();
  114101. var headerTopMenuMode = $('.theme-setting-top-menu-mode', panel).val();
  114102. var headerMegaMenuStyle = $('.theme-setting-mega-menu-style', panel).val();
  114103. var headerMegaMenuMode = $('.theme-setting-mega-menu-mode', panel).val();
  114104. resetLayout(); // reset layout to default state
  114105. if (layoutMode === "fluid") {
  114106. $('.page-header-top > .container').removeClass("container").addClass('container-fluid');
  114107. $('.page-header-menu > .container').removeClass("container").addClass('container-fluid');
  114108. $('.page-head > .container').removeClass("container").addClass('container-fluid');
  114109. $('.page-content > .container').removeClass("container").addClass('container-fluid');
  114110. $('.page-prefooter > .container').removeClass("container").addClass('container-fluid');
  114111. $('.page-footer > .container').removeClass("container").addClass('container-fluid');
  114112. //App.runResizeHandlers();
  114113. }
  114114. if (headerTopMenuStyle === 'dark') {
  114115. $(".top-menu > .navbar-nav > li.dropdown").addClass("dropdown-dark");
  114116. } else {
  114117. $(".top-menu > .navbar-nav > li.dropdown").removeClass("dropdown-dark");
  114118. }
  114119. if (headerTopMenuMode === 'fixed') {
  114120. $("body").addClass("page-header-top-fixed");
  114121. } else {
  114122. $("body").removeClass("page-header-top-fixed");
  114123. }
  114124. if (headerMegaMenuStyle === 'light') {
  114125. $(".hor-menu").addClass("hor-menu-light");
  114126. } else {
  114127. $(".hor-menu").removeClass("hor-menu-light");
  114128. }
  114129. if (headerMegaMenuMode === 'fixed') {
  114130. $("body").addClass("page-header-menu-fixed");
  114131. } else {
  114132. $("body").removeClass("page-header-menu-fixed");
  114133. }
  114134. };
  114135. // handle theme colors
  114136. var setColor = function (color) {
  114137. var color_ = (App.isRTL() ? color + '-rtl' : color);
  114138. $('#style_color').attr("href", Layout.getLayoutCssPath() + 'themes/' + color_ + ".min.css");
  114139. $('.page-logo img').attr("src", Layout.getLayoutImgPath() + 'logo-' + color + '.png');
  114140. };
  114141. $('.theme-colors > li', panel).click(function () {
  114142. var color = $(this).attr("data-theme");
  114143. setColor(color);
  114144. $('.theme-colors > li', panel).removeClass("active");
  114145. $(this).addClass("active");
  114146. });
  114147. $('.theme-setting-top-menu-mode', panel).change(function(){
  114148. var headerTopMenuMode = $('.theme-setting-top-menu-mode', panel).val();
  114149. var headerMegaMenuMode = $('.theme-setting-mega-menu-mode', panel).val();
  114150. if (headerMegaMenuMode === "fixed") {
  114151. alert("The top menu and mega menu can not be fixed at the same time.");
  114152. $('.theme-setting-mega-menu-mode', panel).val("not-fixed");
  114153. headerTopMenuMode = 'not-fixed';
  114154. }
  114155. });
  114156. $('.theme-setting-mega-menu-mode', panel).change(function(){
  114157. var headerTopMenuMode = $('.theme-setting-top-menu-mode', panel).val();
  114158. var headerMegaMenuMode = $('.theme-setting-mega-menu-mode', panel).val();
  114159. if (headerTopMenuMode === "fixed") {
  114160. alert("The top menu and mega menu can not be fixed at the same time.");
  114161. $('.theme-setting-top-menu-mode', panel).val("not-fixed");
  114162. headerTopMenuMode = 'not-fixed';
  114163. }
  114164. });
  114165. $('.theme-setting', panel).change(setLayout);
  114166. };
  114167. // handle theme style
  114168. var setThemeStyle = function(style) {
  114169. var file = (style === 'rounded' ? 'components-rounded' : 'components');
  114170. file = (App.isRTL() ? file + '-rtl' : file);
  114171. $('#style_components').attr("href", App.getGlobalCssPath() + file + ".min.css");
  114172. if (typeof Cookies !== "undefined") {
  114173. Cookies.set('layout-style-option', style);
  114174. }
  114175. };
  114176. return {
  114177. //main function to initiate the theme
  114178. init: function() {
  114179. // handles style customer tool
  114180. handleTheme();
  114181. // handle layout style change
  114182. $('.theme-panel .theme-setting-style').change(function() {
  114183. setThemeStyle($(this).val());
  114184. });
  114185. // set layout style from cookie
  114186. if (typeof Cookies !== "undefined" && Cookies.get('layout-style-option') === 'rounded') {
  114187. setThemeStyle(Cookies.get('layout-style-option'));
  114188. $('.theme-panel .layout-style-option').val(Cookies.get('layout-style-option'));
  114189. }
  114190. }
  114191. };
  114192. }();
  114193. if (App.isAngularJsApp() === false) {
  114194. jQuery(document).ready(function() {
  114195. Demo.init();
  114196. });
  114197. }
  114198. ;
  114199. var FormValidation = function () {
  114200. return {
  114201. //main function to initiate the module
  114202. init: function () {
  114203. // for more info visit the official plugin documentation:
  114204. // http://docs.jquery.com/Plugins/Validation
  114205. var form1 = $('#form');
  114206. var error1 = $('.alert-danger', form1);
  114207. var success1 = $('.alert-success', form1);
  114208. jQuery.validator.setDefaults({
  114209. errorElement: 'span', //default input error message container
  114210. errorClass: 'help-block help-block-error', // default input error message classfocusInvalid: false, // do not focus the last invalid input
  114211. ignore: "",
  114212. invalidHandler: function (event, validator) { //display error alert on form submit
  114213. success1.hide();
  114214. error1.show();
  114215. Metronic.scrollTo(error1, -200);
  114216. },
  114217. highlight: function (element) { // hightlight error inputs
  114218. $(element)
  114219. .closest('.form-group').addClass('has-error'); // set error class to the control group
  114220. },
  114221. unhighlight: function (element) { // revert the change done by hightlight
  114222. $(element)
  114223. .closest('.form-group').removeClass('has-error'); // set error class to the control group
  114224. },
  114225. success: function (label) {
  114226. label
  114227. .closest('.form-group').removeClass('has-error'); // set success class to the control group
  114228. },
  114229. submitHandler: function (form) {
  114230. success1.show();
  114231. error1.hide();
  114232. form.submit();
  114233. }
  114234. });
  114235. }
  114236. };
  114237. }();
  114238. var FormValidationUsers = function () {
  114239. return {
  114240. //main function to initiate the module
  114241. init: function () {
  114242. // for more info visit the official plugin documentation:
  114243. // http://docs.jquery.com/Plugins/Validation
  114244. var form1 = $('.form-users');
  114245. var error1 = $('.alert-error', form1);
  114246. var success1 = $('.alert-success', form1);
  114247. jQuery.validator.setDefaults({
  114248. errorElement: 'span', //default input error message container
  114249. errorClass: 'help-inline', // default input error message class
  114250. focusInvalid: false, // do not focus the last invalid input
  114251. ignore: "",
  114252. invalidHandler: function (event, validator) { //display error alert on form submit
  114253. success1.hide();
  114254. error1.show();
  114255. App.scrollTo(error1, -200);
  114256. },
  114257. highlight: function (element) { // hightlight error inputs
  114258. $(element)
  114259. .closest('.help-inline').removeClass('ok'); // display OK icon
  114260. $(element)
  114261. .closest('.control-group').removeClass('success').addClass('error'); // set error class to the control group
  114262. },
  114263. unhighlight: function (element) { // revert the change dony by hightlight
  114264. $(element)
  114265. .closest('.control-group').removeClass('error'); // set error class to the control group
  114266. },
  114267. success: function (label) {
  114268. label
  114269. .addClass('valid').addClass('help-inline ok') // mark the current input as valid and display OK icon
  114270. .closest('.control-group').removeClass('error').addClass('success'); // set success class to the control group
  114271. },
  114272. submitHandler: function (form) {
  114273. success1.show();
  114274. error1.hide();
  114275. form.submit();
  114276. }
  114277. });
  114278. }
  114279. };
  114280. }();
  114281. var TableAdvanced = function () {
  114282. var initTable1 = function () {
  114283. var table = $('.tableadvanced');
  114284. /* Table tools samples: https://www.datatables.net/release-datatables/extras/TableTools/ */
  114285. $.fn.dataTableExt.oStdClasses.sFilterInput = "form-control input-xlarge input-inline";
  114286. /* Set tabletools buttons and button container */
  114287. var oTable = table.dataTable({
  114288. // Internationalisation. For more info refer to http://datatables.net/manual/i18n
  114289. "language": {
  114290. "aria": {
  114291. "sortAscending": ": activate to sort column ascending",
  114292. "sortDescending": ": activate to sort column descending"
  114293. },
  114294. "emptyTable": "No hay informacion en la tabla",
  114295. "info": "Mostrando del _START_ al _END_ de _TOTAL_ registros",
  114296. "infoEmpty": "No se encontraron coincidencias",
  114297. "infoFiltered": "(filtered1 de _MAX_ registros)",
  114298. "lengthMenu": "Mostrar _MENU_ registros",
  114299. "search": "Buscar:",
  114300. "zeroRecords": "No se encontraron coincidencias"
  114301. },
  114302. "order": [
  114303. // [0, 'asc']
  114304. ],
  114305. "lengthMenu": [
  114306. [20, 50, 75, 100, -1],
  114307. [20, 50, 75, 100, "Todos"] // change per page values here
  114308. ],
  114309. // set the initial value
  114310. "pageLength": 10,
  114311. "dom": "<'row' <'col-md-12'T>><'row'<'col-md-6 col-sm-12'l><'col-md-6 col-sm-12'f>r><'table-scrollable't><'row'<'col-md-5 col-sm-12'i><'col-md-7 col-sm-12'p>>" // horizobtal scrollable datatable
  114312. });
  114313. var tableWrapper = $('.tableadvanced_wrapper'); // datatable creates the table wrapper by adding with id {your_table_jd}_wrapper
  114314. tableWrapper.find('.dataTables_length select').select2(); // initialize select2 dropdown
  114315. }
  114316. return {
  114317. //main function to initiate the module
  114318. init: function () {
  114319. if (!jQuery().dataTable) {
  114320. return;
  114321. }
  114322. initTable1();
  114323. }
  114324. };
  114325. }();
  114326. var TablePagination = function () {
  114327. var initTable3 = function () {
  114328. var table = $('.tablePag');
  114329. // begin: third table
  114330. table.dataTable({
  114331. // Internationalisation. For more info refer to http://datatables.net/manual/i18n
  114332. "language": {
  114333. "aria": {
  114334. "sortAscending": ": activate to sort column ascending",
  114335. "sortDescending": ": activate to sort column descending"
  114336. },
  114337. "emptyTable": "No hay informacion en la tabla",
  114338. "info": "Mostrando del _START_ al _END_ de _TOTAL_ registros",
  114339. "infoEmpty": "No se encontraron coincidencias",
  114340. "infoFiltered": "(filtered1 de _MAX_ registros)",
  114341. "lengthMenu": "Mostrar _MENU_ registros",
  114342. "search": "Buscar:",
  114343. "zeroRecords": "No se encontraron coincidencias"
  114344. },
  114345. "lengthMenu": [
  114346. [20, 50, 75, 100, -1],
  114347. [20, 50, 75, 100, "Todos"] // change per page values here
  114348. ],
  114349. // set the initial value
  114350. "pageLength": 10,
  114351. // Uncomment below line("dom" parameter) to fix the dropdown overflow issue in the datatable cells. The default datatable layout
  114352. // setup uses scrollable div(table-scrollable) with overflow:auto to enable vertical scroll(see: assets/global/plugins/datatables/plugins/bootstrap/dataTables.bootstrap.js).
  114353. // So when dropdowns used the scrollable div should be removed.
  114354. "dom": "<'row'<'col-md-6 col-sm-12'l><'col-md-6 col-sm-12'>r>t<'row'<'col-md-5 col-sm-12'i><'col-md-7 col-sm-12'p>>",
  114355. "bStateSave": true, // save datatable state(pagination, sort, etc) in cookie.
  114356. "order": [
  114357. [0, "asc"]
  114358. ] // set first column as a default sort by asc
  114359. });
  114360. var tableWrapper = jQuery('.tablePag_wrapper');
  114361. // table.find('.group-checkable').change(function () {
  114362. // var set = jQuery(this).attr("data-set");
  114363. // var checked = jQuery(this).is(":checked");
  114364. // jQuery(set).each(function () {
  114365. // if (checked) {
  114366. // $(this).attr("checked", true);
  114367. // } else {
  114368. // $(this).attr("checked", false);
  114369. // }
  114370. // });
  114371. // jQuery.uniform.update(set);
  114372. // });
  114373. tableWrapper.find('.dataTables_length select').select2(); // initialize select2 dropdown
  114374. }
  114375. return {
  114376. //main function to initiate the module
  114377. init: function () {
  114378. if (!jQuery().dataTable) {
  114379. return;
  114380. }
  114381. initTable3();
  114382. }
  114383. };
  114384. }();
  114385. var handleDateFormat = function () {
  114386. var shortDateFormat = 'dd/MM/yyyy';
  114387. var longDateFormat = 'dd/MM/yyyy HH:mm:ss';
  114388. $(".shortDateFormat").each(function (idx, elem) {
  114389. if (jQuery(elem).is(":input")) {
  114390. jQuery(elem).val(jQuery.format.date(jQuery(elem).val(), shortDateFormat));
  114391. } else {
  114392. jQuery(elem).text(jQuery.format.date(jQuery(elem).text(), shortDateFormat));
  114393. }
  114394. });
  114395. $(".longDateFormat").each(function (idx, elem) {
  114396. if (jQuery(elem).is(":input")) {
  114397. jQuery(elem).val(jQuery.format.date(jQuery(elem).val(), longDateFormat));
  114398. } else {
  114399. jQuery(elem).text(jQuery.format.date(jQuery(elem).text(), longDateFormat));
  114400. }
  114401. });
  114402. }
  114403. var handleDatePickers = function () {
  114404. if (jQuery().datepicker) {
  114405. $('.date-picker').datepicker({
  114406. rtl: Metronic.isRTL(),
  114407. orientation: "left",
  114408. autoclose: true
  114409. });
  114410. //$('body').removeClass("modal-open"); // fix bug when inline picker is used in modal
  114411. }
  114412. /* Workaround to restrict daterange past date select: http://stackoverflow.com/questions/11933173/how-to-restrict-the-selectable-date-ranges-in-bootstrap-datepicker */
  114413. }
  114414. var handleMultiSelect = function () {
  114415. $('.multi-select').multiSelect({
  114416. keepOrder: true
  114417. });
  114418. $('#select-all').click(function(){
  114419. $('.multi-select').multiSelect('select_all');
  114420. return false;
  114421. });
  114422. $('#deselect-all').click(function(){
  114423. $('.multi-select').multiSelect('deselect_all');
  114424. return false;
  114425. });
  114426. }
  114427. var oTable;
  114428. var handleInputMasks = function () {
  114429. $.extend($().inputmask.defaults, {
  114430. 'autounmask': true
  114431. });
  114432. $(".mask_phone").inputmask("mask", {"mask": "(999) 999-9999"}); //specifying fn & options
  114433. $(".mask_number").inputmask({ "mask": "9", "repeat": 10, "greedy": false }); // ~ mask "9" or mask "99" or ... mask "9999999999"
  114434. $(".mask_decimal").inputmask('decimal', { rightAlignNumerics: false }); //disables the right alignment of the decimal input
  114435. $(".mask_currency").inputmask('999,999,999.99', { numericInput: true });
  114436. // $(".mask_rfc").inputmask("mask", {"mask":"9-a{1,3}9{1,3}" });
  114437. }
  114438. $(document).ready(function() {
  114439. if($('.numbersep').get(0) ){
  114440. var numbersSeparation = function () {
  114441. var numers = $('span.numbers');
  114442. return numers.each(function(){
  114443. $(this).text( $(this).text().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,") );
  114444. })
  114445. }
  114446. }
  114447. if($('#form').get(0) ){
  114448. FormValidation.init();
  114449. }
  114450. if($('.tableadvanced').get(0) ){
  114451. TableAdvanced.init();
  114452. }
  114453. if($('.tablePag').get(0) ){
  114454. TablePagination.init();
  114455. }
  114456. if($('.longDateFormat').get(0) || $('.shortDateFormat').get(0)){
  114457. handleDateFormat();
  114458. }
  114459. if($('.date-picker').get(0)){
  114460. handleDatePickers();
  114461. }
  114462. if ($('.date-range').get(0) ){
  114463. handleDateRangePickers();
  114464. }
  114465. if ($('.mask_phone').get(0) || $('.mask_number').get(0) || $('.mask_decimal').get(0) || $('.mask_currency').get(0)){
  114466. handleInputMasks();
  114467. }
  114468. if ($('.multi-select').get(0)){
  114469. handleMultiSelect();
  114470. }
  114471. // $('.form_modal').click(function () {
  114472. // var $modal = $('#form_modal');
  114473. // $modal.modal();
  114474. // });
  114475. //Override the default confirm dialog by rails
  114476. $.rails.allowAction = function(link){
  114477. if (link.data("confirm") == undefined){
  114478. return true;
  114479. }
  114480. $.rails.showConfirmationDialog(link);
  114481. return false;
  114482. }
  114483. //User click confirm button
  114484. $.rails.confirmed = function(link){
  114485. link.data("confirm", null);
  114486. link.trigger("click.rails");
  114487. }
  114488. //Display the confirmation dialog
  114489. $.rails.showConfirmationDialog = function(link){
  114490. bootbox.dialog({
  114491. message: link.data("confirm"),
  114492. buttons: {
  114493. "Cancelar": {
  114494. label: "Cancelar",
  114495. className: "btn-default"
  114496. },
  114497. success: {
  114498. label: "OK",
  114499. className: "btn-primary",
  114500. callback: function() {
  114501. $.rails.confirmed(link);
  114502. }
  114503. }
  114504. }
  114505. });
  114506. }
  114507. });
  114508. /***
  114509. Wrapper/Helper Class for datagrid based on jQuery Datatable Plugin
  114510. ***/
  114511. var Datatable = function() {
  114512. var tableOptions; // main options
  114513. var dataTable; // datatable object
  114514. var table; // actual table jquery object
  114515. var tableContainer; // actual table container object
  114516. var tableWrapper; // actual table wrapper jquery object
  114517. var tableInitialized = false;
  114518. var ajaxParams = {}; // set filter mode
  114519. var the;
  114520. var countSelectedRecords = function() {
  114521. var selected = $('tbody > tr > td:nth-child(1) input[type="checkbox"]:checked', table).size();
  114522. var text = tableOptions.dataTable.language.metronicGroupActions;
  114523. if (selected > 0) {
  114524. $('.table-group-actions > span', tableWrapper).text(text.replace("_TOTAL_", selected));
  114525. } else {
  114526. $('.table-group-actions > span', tableWrapper).text("");
  114527. }
  114528. };
  114529. return {
  114530. //main function to initiate the module
  114531. init: function(options) {
  114532. if (!$().dataTable) {
  114533. return;
  114534. }
  114535. the = this;
  114536. // default settings
  114537. options = $.extend(true, {
  114538. src: "", // actual table
  114539. filterApplyAction: "filter",
  114540. filterCancelAction: "filter_cancel",
  114541. resetGroupActionInputOnSuccess: true,
  114542. loadingMessage: 'Loading...',
  114543. dataTable: {
  114544. "dom": "<'row'<'col-md-8 col-sm-12'pli><'col-md-4 col-sm-12'<'table-group-actions pull-right'>>r><'table-responsive't><'row'<'col-md-8 col-sm-12'pli><'col-md-4 col-sm-12'>>", // datatable layout
  114545. "pageLength": 10, // default records per page
  114546. "language": { // language settings
  114547. // metronic spesific
  114548. "metronicGroupActions": "_TOTAL_ records selected: ",
  114549. "metronicAjaxRequestGeneralError": "Could not complete request. Please check your internet connection",
  114550. // data tables spesific
  114551. "lengthMenu": "<span class='seperator'>|</span>View _MENU_ records",
  114552. "info": "<span class='seperator'>|</span>Found total _TOTAL_ records",
  114553. "infoEmpty": "No records found to show",
  114554. "emptyTable": "No data available in table",
  114555. "zeroRecords": "No matching records found",
  114556. "paginate": {
  114557. "previous": "Prev",
  114558. "next": "Next",
  114559. "last": "Last",
  114560. "first": "First",
  114561. "page": "Page",
  114562. "pageOf": "of"
  114563. }
  114564. },
  114565. "orderCellsTop": true,
  114566. "columnDefs": [{ // define columns sorting options(by default all columns are sortable extept the first checkbox column)
  114567. 'orderable': false,
  114568. 'targets': [0]
  114569. }],
  114570. "pagingType": "bootstrap_extended", // pagination type(bootstrap, bootstrap_full_number or bootstrap_extended)
  114571. "autoWidth": false, // disable fixed width and enable fluid table
  114572. "processing": false, // enable/disable display message box on record load
  114573. "serverSide": true, // enable/disable server side ajax loading
  114574. "ajax": { // define ajax settings
  114575. "url": "", // ajax URL
  114576. "type": "POST", // request type
  114577. "timeout": 20000,
  114578. "data": function(data) { // add request parameters before submit
  114579. $.each(ajaxParams, function(key, value) {
  114580. data[key] = value;
  114581. });
  114582. App.blockUI({
  114583. message: tableOptions.loadingMessage,
  114584. target: tableContainer,
  114585. overlayColor: 'none',
  114586. cenrerY: true,
  114587. boxed: true
  114588. });
  114589. },
  114590. "dataSrc": function(res) { // Manipulate the data returned from the server
  114591. if (res.customActionMessage) {
  114592. App.alert({
  114593. type: (res.customActionStatus == 'OK' ? 'success' : 'danger'),
  114594. icon: (res.customActionStatus == 'OK' ? 'check' : 'warning'),
  114595. message: res.customActionMessage,
  114596. container: tableWrapper,
  114597. place: 'prepend'
  114598. });
  114599. }
  114600. if (res.customActionStatus) {
  114601. if (tableOptions.resetGroupActionInputOnSuccess) {
  114602. $('.table-group-action-input', tableWrapper).val("");
  114603. }
  114604. }
  114605. if ($('.group-checkable', table).size() === 1) {
  114606. $('.group-checkable', table).attr("checked", false);
  114607. $.uniform.update($('.group-checkable', table));
  114608. }
  114609. if (tableOptions.onSuccess) {
  114610. tableOptions.onSuccess.call(undefined, the, res);
  114611. }
  114612. App.unblockUI(tableContainer);
  114613. return res.data;
  114614. },
  114615. "error": function() { // handle general connection errors
  114616. if (tableOptions.onError) {
  114617. tableOptions.onError.call(undefined, the);
  114618. }
  114619. App.alert({
  114620. type: 'danger',
  114621. icon: 'warning',
  114622. message: tableOptions.dataTable.language.metronicAjaxRequestGeneralError,
  114623. container: tableWrapper,
  114624. place: 'prepend'
  114625. });
  114626. App.unblockUI(tableContainer);
  114627. }
  114628. },
  114629. "drawCallback": function(oSettings) { // run some code on table redraw
  114630. if (tableInitialized === false) { // check if table has been initialized
  114631. tableInitialized = true; // set table initialized
  114632. table.show(); // display table
  114633. }
  114634. App.initUniform($('input[type="checkbox"]', table)); // reinitialize uniform checkboxes on each table reload
  114635. countSelectedRecords(); // reset selected records indicator
  114636. // callback for ajax data load
  114637. if (tableOptions.onDataLoad) {
  114638. tableOptions.onDataLoad.call(undefined, the);
  114639. }
  114640. }
  114641. }
  114642. }, options);
  114643. tableOptions = options;
  114644. // create table's jquery object
  114645. table = $(options.src);
  114646. tableContainer = table.parents(".table-container");
  114647. // apply the special class that used to restyle the default datatable
  114648. var tmp = $.fn.dataTableExt.oStdClasses;
  114649. $.fn.dataTableExt.oStdClasses.sWrapper = $.fn.dataTableExt.oStdClasses.sWrapper + " dataTables_extended_wrapper";
  114650. $.fn.dataTableExt.oStdClasses.sFilterInput = "form-control input-xs input-sm input-inline";
  114651. $.fn.dataTableExt.oStdClasses.sLengthSelect = "form-control input-xs input-sm input-inline";
  114652. // initialize a datatable
  114653. dataTable = table.DataTable(options.dataTable);
  114654. // revert back to default
  114655. $.fn.dataTableExt.oStdClasses.sWrapper = tmp.sWrapper;
  114656. $.fn.dataTableExt.oStdClasses.sFilterInput = tmp.sFilterInput;
  114657. $.fn.dataTableExt.oStdClasses.sLengthSelect = tmp.sLengthSelect;
  114658. // get table wrapper
  114659. tableWrapper = table.parents('.dataTables_wrapper');
  114660. // build table group actions panel
  114661. if ($('.table-actions-wrapper', tableContainer).size() === 1) {
  114662. $('.table-group-actions', tableWrapper).html($('.table-actions-wrapper', tableContainer).html()); // place the panel inside the wrapper
  114663. $('.table-actions-wrapper', tableContainer).remove(); // remove the template container
  114664. }
  114665. // handle group checkboxes check/uncheck
  114666. $('.group-checkable', table).change(function() {
  114667. var set = table.find('tbody > tr > td:nth-child(1) input[type="checkbox"]');
  114668. var checked = $(this).prop("checked");
  114669. $(set).each(function() {
  114670. $(this).prop("checked", checked);
  114671. });
  114672. $.uniform.update(set);
  114673. countSelectedRecords();
  114674. });
  114675. // handle row's checkbox click
  114676. table.on('change', 'tbody > tr > td:nth-child(1) input[type="checkbox"]', function() {
  114677. countSelectedRecords();
  114678. });
  114679. // handle filter submit button click
  114680. table.on('click', '.filter-submit', function(e) {
  114681. e.preventDefault();
  114682. the.submitFilter();
  114683. });
  114684. // handle filter cancel button click
  114685. table.on('click', '.filter-cancel', function(e) {
  114686. e.preventDefault();
  114687. the.resetFilter();
  114688. });
  114689. },
  114690. submitFilter: function() {
  114691. the.setAjaxParam("action", tableOptions.filterApplyAction);
  114692. // get all typeable inputs
  114693. $('textarea.form-filter, select.form-filter, input.form-filter:not([type="radio"],[type="checkbox"])', table).each(function() {
  114694. the.setAjaxParam($(this).attr("name"), $(this).val());
  114695. });
  114696. // get all checkboxes
  114697. $('input.form-filter[type="checkbox"]:checked', table).each(function() {
  114698. the.addAjaxParam($(this).attr("name"), $(this).val());
  114699. });
  114700. // get all radio buttons
  114701. $('input.form-filter[type="radio"]:checked', table).each(function() {
  114702. the.setAjaxParam($(this).attr("name"), $(this).val());
  114703. });
  114704. dataTable.ajax.reload();
  114705. },
  114706. resetFilter: function() {
  114707. $('textarea.form-filter, select.form-filter, input.form-filter', table).each(function() {
  114708. $(this).val("");
  114709. });
  114710. $('input.form-filter[type="checkbox"]', table).each(function() {
  114711. $(this).attr("checked", false);
  114712. });
  114713. the.clearAjaxParams();
  114714. the.addAjaxParam("action", tableOptions.filterCancelAction);
  114715. dataTable.ajax.reload();
  114716. },
  114717. getSelectedRowsCount: function() {
  114718. return $('tbody > tr > td:nth-child(1) input[type="checkbox"]:checked', table).size();
  114719. },
  114720. getSelectedRows: function() {
  114721. var rows = [];
  114722. $('tbody > tr > td:nth-child(1) input[type="checkbox"]:checked', table).each(function() {
  114723. rows.push($(this).val());
  114724. });
  114725. return rows;
  114726. },
  114727. setAjaxParam: function(name, value) {
  114728. ajaxParams[name] = value;
  114729. },
  114730. addAjaxParam: function(name, value) {
  114731. if (!ajaxParams[name]) {
  114732. ajaxParams[name] = [];
  114733. }
  114734. skip = false;
  114735. for (var i = 0; i < (ajaxParams[name]).length; i++) { // check for duplicates
  114736. if (ajaxParams[name][i] === value) {
  114737. skip = true;
  114738. }
  114739. }
  114740. if (skip === false) {
  114741. ajaxParams[name].push(value);
  114742. }
  114743. },
  114744. clearAjaxParams: function(name, value) {
  114745. ajaxParams = {};
  114746. },
  114747. getDataTable: function() {
  114748. return dataTable;
  114749. },
  114750. getTableWrapper: function() {
  114751. return tableWrapper;
  114752. },
  114753. gettableContainer: function() {
  114754. return tableContainer;
  114755. },
  114756. getTable: function() {
  114757. return table;
  114758. }
  114759. };
  114760. };
  114761. // This is a manifest file that'll be compiled into application.js, which will include all the files
  114762. // listed below.
  114763. //
  114764. // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
  114765. // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
  114766. //
  114767. // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
  114768. // compiled file.
  114769. //
  114770. // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
  114771. // about supported directives.
  114772. //