kline.js 288 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560
  1. !function(e,t){function n(e){var t=ht[e]={};return K.each(e.split(tt),function(e,n){t[n]=!0}),t}function r(e,n,r){if(r===t&&1===e.nodeType){var i="data-"+n.replace(mt,"-$1").toLowerCase();if(r=e.getAttribute(i),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:gt.test(r)?K.parseJSON(r):r}catch(o){}K.data(e,n,r)}else r=t}return r}function i(e){var t;for(t in e)if(("data"!==t||!K.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function o(){return!1}function a(){return!0}function s(e){return!e||!e.parentNode||11===e.parentNode.nodeType}function u(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}function l(e,t,n){if(t=t||0,K.isFunction(t))return K.grep(e,function(e,r){var i=!!t.call(e,r,e);return i===n});if(t.nodeType)return K.grep(e,function(e){return e===t===n});if("string"==typeof t){var r=K.grep(e,function(e){return 1===e.nodeType});if(Ot.test(t))return K.filter(t,r,!n);t=K.filter(t,r)}return K.grep(e,function(e){return K.inArray(e,t)>=0===n})}function c(e){var t=Rt.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function f(e,t){return e.getElementsByTagName(t)[0]||e.appendChild(e.ownerDocument.createElement(t))}function p(e,t){if(1===t.nodeType&&K.hasData(e)){var n,r,i,o=K._data(e),a=K._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;i>r;r++)K.event.add(t,n,s[n][r])}a.data&&(a.data=K.extend({},a.data))}}function d(e,t){var n;1===t.nodeType&&(t.clearAttributes&&t.clearAttributes(),t.mergeAttributes&&t.mergeAttributes(e),n=t.nodeName.toLowerCase(),"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),K.support.html5Clone&&e.innerHTML&&!K.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Qt.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.selected=e.defaultSelected:"input"===n||"textarea"===n?t.defaultValue=e.defaultValue:"script"===n&&t.text!==e.text&&(t.text=e.text),t.removeAttribute(K.expando))}function h(e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName("*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll("*"):[]}function g(e){Qt.test(e.type)&&(e.defaultChecked=e.checked)}function m(e,t){if(t in e)return t;for(var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=vn.length;i--;)if(t=vn[i]+n,t in e)return t;return r}function y(e,t){return e=t||e,"none"===K.css(e,"display")||!K.contains(e.ownerDocument,e)}function v(e,t){for(var n,r,i=[],o=0,a=e.length;a>o;o++)n=e[o],n.style&&(i[o]=K._data(n,"olddisplay"),t?(!i[o]&&"none"===n.style.display&&(n.style.display=""),""===n.style.display&&y(n)&&(i[o]=K._data(n,"olddisplay",T(n.nodeName)))):(r=nn(n,"display"),!i[o]&&"none"!==r&&K._data(n,"olddisplay",r)));for(o=0;a>o;o++)n=e[o],n.style&&(t&&"none"!==n.style.display&&""!==n.style.display||(n.style.display=t?i[o]||"":"none"));return e}function b(e,t,n){var r=fn.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function x(e,t,n,r){for(var i=n===(r?"border":"content")?4:"width"===t?1:0,o=0;4>i;i+=2)"margin"===n&&(o+=K.css(e,n+yn[i],!0)),r?("content"===n&&(o-=parseFloat(nn(e,"padding"+yn[i]))||0),"margin"!==n&&(o-=parseFloat(nn(e,"border"+yn[i]+"Width"))||0)):(o+=parseFloat(nn(e,"padding"+yn[i]))||0,"padding"!==n&&(o+=parseFloat(nn(e,"border"+yn[i]+"Width"))||0));return o}function w(e,t,n){var r="width"===t?e.offsetWidth:e.offsetHeight,i=!0,o=K.support.boxSizing&&"border-box"===K.css(e,"boxSizing");if(0>=r||null==r){if(r=nn(e,t),(0>r||null==r)&&(r=e.style[t]),pn.test(r))return r;i=o&&(K.support.boxSizingReliable||r===e.style[t]),r=parseFloat(r)||0}return r+x(e,t,n||(o?"border":"content"),i)+"px"}function T(e){if(hn[e])return hn[e];var t=K("<"+e+">").appendTo(W.body),n=t.css("display");return t.remove(),("none"===n||""===n)&&(rn=W.body.appendChild(rn||K.extend(W.createElement("iframe"),{frameBorder:0,width:0,height:0})),on&&rn.createElement||(on=(rn.contentWindow||rn.contentDocument).document,on.write("<!doctype html><html><body>"),on.close()),t=on.body.appendChild(on.createElement(e)),n=nn(t,"display"),W.body.removeChild(rn)),hn[e]=n,n}function N(e,t,n,r){var i;if(K.isArray(t))K.each(t,function(t,i){n||wn.test(e)?r(e,i):N(e+"["+("object"==typeof i?t:"")+"]",i,n,r)});else if(n||"object"!==K.type(t))r(e,t);else for(i in t)N(e+"["+i+"]",t[i],n,r)}function C(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i,o,a=t.toLowerCase().split(tt),s=0,u=a.length;if(K.isFunction(n))for(;u>s;s++)r=a[s],o=/^\+/.test(r),o&&(r=r.substr(1)||"*"),i=e[r]=e[r]||[],i[o?"unshift":"push"](n)}}function k(e,n,r,i,o,a){o=o||n.dataTypes[0],a=a||{},a[o]=!0;for(var s,u=e[o],l=0,c=u?u.length:0,f=e===qn;c>l&&(f||!s);l++)s=u[l](n,r,i),"string"==typeof s&&(!f||a[s]?s=t:(n.dataTypes.unshift(s),s=k(e,n,r,i,s,a)));return(f||!s)&&!a["*"]&&(s=k(e,n,r,i,"*",a)),s}function E(e,n){var r,i,o=K.ajaxSettings.flatOptions||{};for(r in n)n[r]!==t&&((o[r]?e:i||(i={}))[r]=n[r]);i&&K.extend(!0,e,i)}function S(e,n,r){var i,o,a,s,u=e.contents,l=e.dataTypes,c=e.responseFields;for(o in c)o in r&&(n[c[o]]=r[o]);for(;"*"===l[0];)l.shift(),i===t&&(i=e.mimeType||n.getResponseHeader("content-type"));if(i)for(o in u)if(u[o]&&u[o].test(i)){l.unshift(o);break}if(l[0]in r)a=l[0];else{for(o in r){if(!l[0]||e.converters[o+" "+l[0]]){a=o;break}s||(s=o)}a=a||s}return a?(a!==l[0]&&l.unshift(a),r[a]):void 0}function j(e,t){var n,r,i,o,a=e.dataTypes.slice(),s=a[0],u={},l=0;if(e.dataFilter&&(t=e.dataFilter(t,e.dataType)),a[1])for(n in e.converters)u[n.toLowerCase()]=e.converters[n];for(;i=a[++l];)if("*"!==i){if("*"!==s&&s!==i){if(n=u[s+" "+i]||u["* "+i],!n)for(r in u)if(o=r.split(" "),o[1]===i&&(n=u[s+" "+o[0]]||u["* "+o[0]])){n===!0?n=u[r]:u[r]!==!0&&(i=o[0],a.splice(l--,0,i));break}if(n!==!0)if(n&&e["throws"])t=n(t);else try{t=n(t)}catch(c){return{state:"parsererror",error:n?c:"No conversion from "+s+" to "+i}}}s=i}return{state:"success",data:t}}function A(){try{return new e.XMLHttpRequest}catch(t){}}function D(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function L(){return setTimeout(function(){Jn=t},0),Jn=K.now()}function H(e,t){K.each(t,function(t,n){for(var r=(er[t]||[]).concat(er["*"]),i=0,o=r.length;o>i;i++)if(r[i].call(e,t,n))return})}function M(e,t,n){var r,i=0,o=Zn.length,a=K.Deferred().always(function(){delete s.elem}),s=function(){for(var t=Jn||L(),n=Math.max(0,u.startTime+u.duration-t),r=1-(n/u.duration||0),i=0,o=u.tweens.length;o>i;i++)u.tweens[i].run(r);return a.notifyWith(e,[u,r,n]),1>r&&o?n:(a.resolveWith(e,[u]),!1)},u=a.promise({elem:e,props:K.extend({},t),opts:K.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Jn||L(),duration:n.duration,tweens:[],createTween:function(t,n){var r=K.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){for(var n=0,r=t?u.tweens.length:0;r>n;n++)u.tweens[n].run(1);return t?a.resolveWith(e,[u,t]):a.rejectWith(e,[u,t]),this}}),l=u.props;for(_(l,u.opts.specialEasing);o>i;i++)if(r=Zn[i].call(u,e,l,u.opts))return r;return H(u,l),K.isFunction(u.opts.start)&&u.opts.start.call(e,u),K.fx.timer(K.extend(s,{anim:u,queue:u.opts.queue,elem:e})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function _(e,t){var n,r,i,o,a;for(n in e)if(r=K.camelCase(n),i=t[r],o=e[n],K.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),a=K.cssHooks[r],a&&"expand"in a){o=a.expand(o),delete e[r];for(n in o)n in e||(e[n]=o[n],t[n]=i)}else t[r]=i}function F(e,t,n){var r,i,o,a,s,u,l,c,f=this,p=e.style,d={},h=[],g=e.nodeType&&y(e);n.queue||(l=K._queueHooks(e,"fx"),null==l.unqueued&&(l.unqueued=0,c=l.empty.fire,l.empty.fire=function(){l.unqueued||c()}),l.unqueued++,f.always(function(){f.always(function(){l.unqueued--,K.queue(e,"fx").length||l.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===K.css(e,"display")&&"none"===K.css(e,"float")&&(K.support.inlineBlockNeedsLayout&&"inline"!==T(e.nodeName)?p.zoom=1:p.display="inline-block")),n.overflow&&(p.overflow="hidden",K.support.shrinkWrapBlocks||f.done(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(r in t)if(o=t[r],Vn.exec(o)){if(delete t[r],o===(g?"hide":"show"))continue;h.push(r)}if(a=h.length)for(s=K._data(e,"fxshow")||K._data(e,"fxshow",{}),g?K(e).show():f.done(function(){K(e).hide()}),f.done(function(){var t;K.removeData(e,"fxshow",!0);for(t in d)K.style(e,t,d[t])}),r=0;a>r;r++)i=h[r],u=f.createTween(i,g?s[i]:0),d[i]=s[i]||K.style(e,i),i in s||(s[i]=u.start,g&&(u.end=u.start,u.start="width"===i||"height"===i?1:0))}function O(e,t,n,r,i){return new O.prototype.init(e,t,n,r,i)}function q(e,t){var n,r={height:e},i=0;for(t=t?1:0;4>i;i+=2-t)n=yn[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function B(e){return K.isWindow(e)?e:9===e.nodeType?e.defaultView||e.parentWindow:!1}var R,P,W=e.document,I=e.location,$=e.navigator,z=e.jQuery,X=e.$,U=Array.prototype.push,Y=Array.prototype.slice,J=Array.prototype.indexOf,Q=Object.prototype.toString,V=Object.prototype.hasOwnProperty,G=String.prototype.trim,K=function(e,t){return new K.fn.init(e,t,R)},Z=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,et=/\S/,tt=/\s+/,nt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,rt=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,it=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ot=/^[\],:{}\s]*$/,at=/(?:^|:|,)(?:\s*\[)+/g,st=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,ut=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,lt=/^-ms-/,ct=/-([\da-z])/gi,ft=function(e,t){return(t+"").toUpperCase()},pt=function(){W.addEventListener?(W.removeEventListener("DOMContentLoaded",pt,!1),K.ready()):"complete"===W.readyState&&(W.detachEvent("onreadystatechange",pt),K.ready())},dt={};K.fn=K.prototype={constructor:K,init:function(e,n,r){var i,o,a;if(!e)return this;if(e.nodeType)return this.context=this[0]=e,this.length=1,this;if("string"==typeof e){if(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:rt.exec(e),i&&(i[1]||!n)){if(i[1])return n=n instanceof K?n[0]:n,a=n&&n.nodeType?n.ownerDocument||n:W,e=K.parseHTML(i[1],a,!0),it.test(i[1])&&K.isPlainObject(n)&&this.attr.call(e,n,!0),K.merge(this,e);if(o=W.getElementById(i[2]),o&&o.parentNode){if(o.id!==i[2])return r.find(e);this.length=1,this[0]=o}return this.context=W,this.selector=e,this}return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e)}return K.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),K.makeArray(e,this))},selector:"",jquery:"1.8.1",length:0,size:function(){return this.length},toArray:function(){return Y.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e,t,n){var r=K.merge(this.constructor(),e);return r.prevObject=this,r.context=this.context,"find"===t?r.selector=this.selector+(this.selector?" ":"")+n:t&&(r.selector=this.selector+"."+t+"("+n+")"),r},each:function(e,t){return K.each(this,e,t)},ready:function(e){return K.ready.promise().done(e),this},eq:function(e){return e=+e,-1===e?this.slice(e):this.slice(e,e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(Y.apply(this,arguments),"slice",Y.call(arguments).join(","))},map:function(e){return this.pushStack(K.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:U,sort:[].sort,splice:[].splice},K.fn.init.prototype=K.fn,K.extend=K.fn.extend=function(){var e,n,r,i,o,a,s=arguments[0]||{},u=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},u=2),"object"!=typeof s&&!K.isFunction(s)&&(s={}),l===u&&(s=this,--u);l>u;u++)if(null!=(e=arguments[u]))for(n in e)r=s[n],i=e[n],s!==i&&(c&&i&&(K.isPlainObject(i)||(o=K.isArray(i)))?(o?(o=!1,a=r&&K.isArray(r)?r:[]):a=r&&K.isPlainObject(r)?r:{},s[n]=K.extend(c,a,i)):i!==t&&(s[n]=i));return s},K.extend({noConflict:function(t){return e.$===K&&(e.$=X),t&&e.jQuery===K&&(e.jQuery=z),K},isReady:!1,readyWait:1,holdReady:function(e){e?K.readyWait++:K.ready(!0)},ready:function(e){if(e===!0?!--K.readyWait:!K.isReady){if(!W.body)return setTimeout(K.ready,1);K.isReady=!0,e!==!0&&--K.readyWait>0||(P.resolveWith(W,[K]),K.fn.trigger&&K(W).trigger("ready").off("ready"))}},isFunction:function(e){return"function"===K.type(e)},isArray:Array.isArray||function(e){return"array"===K.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?String(e):dt[Q.call(e)]||"object"},isPlainObject:function(e){if(!e||"object"!==K.type(e)||e.nodeType||K.isWindow(e))return!1;try{if(e.constructor&&!V.call(e,"constructor")&&!V.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}var r;for(r in e);return r===t||V.call(e,r)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw new Error(e)},parseHTML:function(e,t,n){var r;return e&&"string"==typeof e?("boolean"==typeof t&&(n=t,t=0),t=t||W,(r=it.exec(e))?[t.createElement(r[1])]:(r=K.buildFragment([e],t,n?null:[]),K.merge([],(r.cacheable?K.clone(r.fragment):r.fragment).childNodes))):null},parseJSON:function(t){return t&&"string"==typeof t?(t=K.trim(t),e.JSON&&e.JSON.parse?e.JSON.parse(t):ot.test(t.replace(st,"@").replace(ut,"]").replace(at,""))?new Function("return "+t)():(K.error("Invalid JSON: "+t),void 0)):null},parseXML:function(n){var r,i;if(!n||"string"!=typeof n)return null;try{e.DOMParser?(i=new DOMParser,r=i.parseFromString(n,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(n))}catch(o){r=t}return(!r||!r.documentElement||r.getElementsByTagName("parsererror").length)&&K.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&et.test(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(lt,"ms-").replace(ct,ft)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toUpperCase()===t.toUpperCase()},each:function(e,n,r){var i,o=0,a=e.length,s=a===t||K.isFunction(e);if(r)if(s){for(i in e)if(n.apply(e[i],r)===!1)break}else for(;a>o&&n.apply(e[o++],r)!==!1;);else if(s){for(i in e)if(n.call(e[i],i,e[i])===!1)break}else for(;a>o&&n.call(e[o],o,e[o++])!==!1;);return e},trim:G&&!G.call(" ")?function(e){return null==e?"":G.call(e)}:function(e){return null==e?"":e.toString().replace(nt,"")},makeArray:function(e,t){var n,r=t||[];return null!=e&&(n=K.type(e),null==e.length||"string"===n||"function"===n||"regexp"===n||K.isWindow(e)?U.call(r,e):K.merge(r,e)),r},inArray:function(e,t,n){var r;if(t){if(J)return J.call(t,e,n);for(r=t.length,n=n?0>n?Math.max(0,r+n):n:0;r>n;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,n){var r=n.length,i=e.length,o=0;if("number"==typeof r)for(;r>o;o++)e[i++]=n[o];else for(;n[o]!==t;)e[i++]=n[o++];return e.length=i,e},grep:function(e,t,n){var r,i=[],o=0,a=e.length;for(n=!!n;a>o;o++)r=!!t(e[o],o),n!==r&&i.push(e[o]);return i},map:function(e,n,r){var i,o,a=[],s=0,u=e.length,l=e instanceof K||u!==t&&"number"==typeof u&&(u>0&&e[0]&&e[u-1]||0===u||K.isArray(e));if(l)for(;u>s;s++)i=n(e[s],s,r),null!=i&&(a[a.length]=i);else for(o in e)i=n(e[o],o,r),null!=i&&(a[a.length]=i);return a.concat.apply([],a)},guid:1,proxy:function(e,n){var r,i,o;return"string"==typeof n&&(r=e[n],n=e,e=r),K.isFunction(e)?(i=Y.call(arguments,2),o=function(){return e.apply(n,i.concat(Y.call(arguments)))},o.guid=e.guid=e.guid||o.guid||K.guid++,o):t},access:function(e,n,r,i,o,a,s){var u,l=null==r,c=0,f=e.length;if(r&&"object"==typeof r){for(c in r)K.access(e,n,c,r[c],1,a,i);o=1}else if(i!==t){if(u=s===t&&K.isFunction(i),l&&(u?(u=n,n=function(e,t,n){return u.call(K(e),n)}):(n.call(e,i),n=null)),n)for(;f>c;c++)n(e[c],r,u?i.call(e[c],c,n(e[c],r)):i,s);o=1}return o?e:l?n.call(e):f?n(e[0],r):a},now:function(){return(new Date).getTime()}}),K.ready.promise=function(t){if(!P)if(P=K.Deferred(),"complete"===W.readyState)setTimeout(K.ready,1);else if(W.addEventListener)W.addEventListener("DOMContentLoaded",pt,!1),e.addEventListener("load",K.ready,!1);else{W.attachEvent("onreadystatechange",pt),e.attachEvent("onload",K.ready);var n=!1;try{n=null==e.frameElement&&W.documentElement}catch(r){}n&&n.doScroll&&function i(){if(!K.isReady){try{n.doScroll("left")}catch(e){return setTimeout(i,50)}K.ready()}}()}return P.promise(t)},K.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(e,t){dt["[object "+t+"]"]=t.toLowerCase()}),R=K(W);var ht={};K.Callbacks=function(e){e="string"==typeof e?ht[e]||n(e):K.extend({},e);var r,i,o,a,s,u,l=[],c=!e.once&&[],f=function(t){for(r=e.memory&&t,i=!0,u=a||0,a=0,s=l.length,o=!0;l&&s>u;u++)if(l[u].apply(t[0],t[1])===!1&&e.stopOnFalse){r=!1;break}o=!1,l&&(c?c.length&&f(c.shift()):r?l=[]:p.disable())},p={add:function(){if(l){var t=l.length;!function n(t){K.each(t,function(t,r){var i=K.type(r);"function"!==i||e.unique&&p.has(r)?r&&r.length&&"string"!==i&&n(r):l.push(r)})}(arguments),o?s=l.length:r&&(a=t,f(r))}return this},remove:function(){return l&&K.each(arguments,function(e,t){for(var n;(n=K.inArray(t,l,n))>-1;)l.splice(n,1),o&&(s>=n&&s--,u>=n&&u--)}),this},has:function(e){return K.inArray(e,l)>-1},empty:function(){return l=[],this},disable:function(){return l=c=r=t,this},disabled:function(){return!l},lock:function(){return c=t,r||p.disable(),this},locked:function(){return!c},fireWith:function(e,t){return t=t||[],t=[e,t.slice?t.slice():t],l&&(!i||c)&&(o?c.push(t):f(t)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!i}};return p},K.extend({Deferred:function(e){var t=[["resolve","done",K.Callbacks("once memory"),"resolved"],["reject","fail",K.Callbacks("once memory"),"rejected"],["notify","progress",K.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return K.Deferred(function(n){K.each(t,function(t,r){var o=r[0],a=e[t];i[r[1]](K.isFunction(a)?function(){var e=a.apply(this,arguments);e&&K.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o+"With"](this===i?n:this,[e])}:n[o])}),e=null}).promise()},promise:function(e){return"object"==typeof e?K.extend(e,r):r}},i={};return r.pipe=r.then,K.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=a.fire,i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t,n,r,i=0,o=Y.call(arguments),a=o.length,s=1!==a||e&&K.isFunction(e.promise)?a:0,u=1===s?e:K.Deferred(),l=function(e,n,r){return function(i){n[e]=this,r[e]=arguments.length>1?Y.call(arguments):i,r===t?u.notifyWith(n,r):--s||u.resolveWith(n,r)}};if(a>1)for(t=new Array(a),n=new Array(a),r=new Array(a);a>i;i++)o[i]&&K.isFunction(o[i].promise)?o[i].promise().done(l(i,r,o)).fail(u.reject).progress(l(i,n,t)):--s;return s||u.resolveWith(r,o),u.promise()}}),K.support=function(){var t,n,r,i,o,a,s,u,l,c,f,p=W.createElement("div");if(p.setAttribute("className","t"),p.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",n=p.getElementsByTagName("*"),r=p.getElementsByTagName("a")[0],r.style.cssText="top:1px;float:left;opacity:.5",!n||!n.length||!r)return{};i=W.createElement("select"),o=i.appendChild(W.createElement("option")),a=p.getElementsByTagName("input")[0],t={leadingWhitespace:3===p.firstChild.nodeType,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(r.getAttribute("style")),hrefNormalized:"/a"===r.getAttribute("href"),opacity:/^0.5/.test(r.style.opacity),cssFloat:!!r.style.cssFloat,checkOn:"on"===a.value,optSelected:o.selected,getSetAttribute:"t"!==p.className,enctype:!!W.createElement("form").enctype,html5Clone:"<:nav></:nav>"!==W.createElement("nav").cloneNode(!0).outerHTML,boxModel:"CSS1Compat"===W.compatMode,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},a.checked=!0,t.noCloneChecked=a.cloneNode(!0).checked,i.disabled=!0,t.optDisabled=!o.disabled;try{delete p.test}catch(d){t.deleteExpando=!1}if(!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",f=function(){t.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick"),p.detachEvent("onclick",f)),a=W.createElement("input"),a.value="t",a.setAttribute("type","radio"),t.radioValue="t"===a.value,a.setAttribute("checked","checked"),a.setAttribute("name","t"),p.appendChild(a),s=W.createDocumentFragment(),s.appendChild(p.lastChild),t.checkClone=s.cloneNode(!0).cloneNode(!0).lastChild.checked,t.appendChecked=a.checked,s.removeChild(a),s.appendChild(p),p.attachEvent)for(l in{submit:!0,change:!0,focusin:!0})u="on"+l,c=u in p,c||(p.setAttribute(u,"return;"),c="function"==typeof p[u]),t[l+"Bubbles"]=c;return K(function(){var n,r,i,o,a="padding:0;margin:0;border:0;display:block;overflow:hidden;",s=W.getElementsByTagName("body")[0];s&&(n=W.createElement("div"),n.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",s.insertBefore(n,s.firstChild),r=W.createElement("div"),n.appendChild(r),r.innerHTML="<table><tr><td></td><td>t</td></tr></table>",i=r.getElementsByTagName("td"),i[0].style.cssText="padding:0;margin:0;border:0;display:none",c=0===i[0].offsetHeight,i[0].style.display="",i[1].style.display="none",t.reliableHiddenOffsets=c&&0===i[0].offsetHeight,r.innerHTML="",r.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",t.boxSizing=4===r.offsetWidth,t.doesNotIncludeMarginInBodyOffset=1!==s.offsetTop,e.getComputedStyle&&(t.pixelPosition="1%"!==(e.getComputedStyle(r,null)||{}).top,t.boxSizingReliable="4px"===(e.getComputedStyle(r,null)||{width:"4px"}).width,o=W.createElement("div"),o.style.cssText=r.style.cssText=a,o.style.marginRight=o.style.width="0",r.style.width="1px",r.appendChild(o),t.reliableMarginRight=!parseFloat((e.getComputedStyle(o,null)||{}).marginRight)),"undefined"!=typeof r.style.zoom&&(r.innerHTML="",r.style.cssText=a+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=3===r.offsetWidth,r.style.display="block",r.style.overflow="visible",r.innerHTML="<div></div>",r.firstChild.style.width="5px",t.shrinkWrapBlocks=3!==r.offsetWidth,n.style.zoom=1),s.removeChild(n),n=r=i=o=null)}),s.removeChild(p),n=r=i=o=a=s=p=null,t}();var gt=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,mt=/([A-Z])/g;K.extend({cache:{},deletedIds:[],uuid:0,expando:"jQuery"+(K.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return e=e.nodeType?K.cache[e[K.expando]]:e[K.expando],!!e&&!i(e)},data:function(e,n,r,i){if(K.acceptData(e)){var o,a,s=K.expando,u="string"==typeof n,l=e.nodeType,c=l?K.cache:e,f=l?e[s]:e[s]&&s;if(f&&c[f]&&(i||c[f].data)||!u||r!==t)return f||(l?e[s]=f=K.deletedIds.pop()||++K.uuid:f=s),c[f]||(c[f]={},l||(c[f].toJSON=K.noop)),("object"==typeof n||"function"==typeof n)&&(i?c[f]=K.extend(c[f],n):c[f].data=K.extend(c[f].data,n)),o=c[f],i||(o.data||(o.data={}),o=o.data),r!==t&&(o[K.camelCase(n)]=r),u?(a=o[n],null==a&&(a=o[K.camelCase(n)])):a=o,a}},removeData:function(e,t,n){if(K.acceptData(e)){var r,o,a,s=e.nodeType,u=s?K.cache:e,l=s?e[K.expando]:K.expando;if(u[l]){if(t&&(r=n?u[l]:u[l].data)){K.isArray(t)||(t in r?t=[t]:(t=K.camelCase(t),t=t in r?[t]:t.split(" ")));for(o=0,a=t.length;a>o;o++)delete r[t[o]];if(!(n?i:K.isEmptyObject)(r))return}(n||(delete u[l].data,i(u[l])))&&(s?K.cleanData([e],!0):K.support.deleteExpando||u!=u.window?delete u[l]:u[l]=null)}}},_data:function(e,t,n){return K.data(e,t,n,!0)},acceptData:function(e){var t=e.nodeName&&K.noData[e.nodeName.toLowerCase()];return!t||t!==!0&&e.getAttribute("classid")===t}}),K.fn.extend({data:function(e,n){var i,o,a,s,u,l=this[0],c=0,f=null;if(e===t){if(this.length&&(f=K.data(l),1===l.nodeType&&!K._data(l,"parsedAttrs"))){for(a=l.attributes,u=a.length;u>c;c++)s=a[c].name,0===s.indexOf("data-")&&(s=K.camelCase(s.substring(5)),r(l,s,f[s]));K._data(l,"parsedAttrs",!0)}return f}return"object"==typeof e?this.each(function(){K.data(this,e)}):(i=e.split(".",2),i[1]=i[1]?"."+i[1]:"",o=i[1]+"!",K.access(this,function(n){return n===t?(f=this.triggerHandler("getData"+o,[i[0]]),f===t&&l&&(f=K.data(l,e),f=r(l,e,f)),f===t&&i[1]?this.data(i[0]):f):(i[1]=n,this.each(function(){var t=K(this);t.triggerHandler("setData"+o,i),K.data(this,e,n),t.triggerHandler("changeData"+o,i)}),void 0)},null,n,arguments.length>1,null,!1))},removeData:function(e){return this.each(function(){K.removeData(this,e)})}}),K.extend({queue:function(e,t,n){var r;return e?(t=(t||"fx")+"queue",r=K._data(e,t),n&&(!r||K.isArray(n)?r=K._data(e,t,K.makeArray(n)):r.push(n)),r||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=K.queue(e,t),r=n.length,i=n.shift(),o=K._queueHooks(e,t),a=function(){K.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return K._data(e,n)||K._data(e,n,{empty:K.Callbacks("once memory").add(function(){K.removeData(e,t+"queue",!0),K.removeData(e,n,!0)})})}}),K.fn.extend({queue:function(e,n){var r=2;return"string"!=typeof e&&(n=e,e="fx",r--),arguments.length<r?K.queue(this[0],e):n===t?this:this.each(function(){var t=K.queue(this,e,n);K._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&K.dequeue(this,e)})},dequeue:function(e){return this.each(function(){K.dequeue(this,e)})},delay:function(e,t){return e=K.fx?K.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){var r,i=1,o=K.Deferred(),a=this,s=this.length,u=function(){--i||o.resolveWith(a,[a])};for("string"!=typeof e&&(n=e,e=t),e=e||"fx";s--;)r=K._data(a[s],e+"queueHooks"),r&&r.empty&&(i++,r.empty.add(u));return u(),o.promise(n)}});var yt,vt,bt,xt=/[\t\r\n]/g,wt=/\r/g,Tt=/^(?:button|input)$/i,Nt=/^(?:button|input|object|select|textarea)$/i,Ct=/^a(?:rea|)$/i,kt=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,Et=K.support.getSetAttribute;K.fn.extend({attr:function(e,t){return K.access(this,K.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){K.removeAttr(this,e)})},prop:function(e,t){return K.access(this,K.prop,e,t,arguments.length>1)},removeProp:function(e){return e=K.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(n){}})},addClass:function(e){var t,n,r,i,o,a,s;if(K.isFunction(e))return this.each(function(t){K(this).addClass(e.call(this,t,this.className))});if(e&&"string"==typeof e)for(t=e.split(tt),n=0,r=this.length;r>n;n++)if(i=this[n],1===i.nodeType)if(i.className||1!==t.length){for(o=" "+i.className+" ",a=0,s=t.length;s>a;a++)~o.indexOf(" "+t[a]+" ")||(o+=t[a]+" ");i.className=K.trim(o)}else i.className=e;return this},removeClass:function(e){var n,r,i,o,a,s,u;if(K.isFunction(e))return this.each(function(t){K(this).removeClass(e.call(this,t,this.className))});if(e&&"string"==typeof e||e===t)for(n=(e||"").split(tt),s=0,u=this.length;u>s;s++)if(i=this[s],1===i.nodeType&&i.className){for(r=(" "+i.className+" ").replace(xt," "),o=0,a=n.length;a>o;o++)for(;r.indexOf(" "+n[o]+" ")>-1;)r=r.replace(" "+n[o]+" "," ");i.className=e?K.trim(r):""}return this},toggleClass:function(e,t){var n=typeof e,r="boolean"==typeof t;return K.isFunction(e)?this.each(function(n){K(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n)for(var i,o=0,a=K(this),s=t,u=e.split(tt);i=u[o++];)s=r?s:!a.hasClass(i),a[s?"addClass":"removeClass"](i);else("undefined"===n||"boolean"===n)&&(this.className&&K._data(this,"__className__",this.className),this.className=this.className||e===!1?"":K._data(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,r=this.length;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(xt," ").indexOf(t)>-1)return!0;return!1},val:function(e){var n,r,i,o=this[0];{if(arguments.length)return i=K.isFunction(e),this.each(function(r){var o,a=K(this);1===this.nodeType&&(o=i?e.call(this,r,a.val()):e,null==o?o="":"number"==typeof o?o+="":K.isArray(o)&&(o=K.map(o,function(e){return null==e?"":e+""})),n=K.valHooks[this.type]||K.valHooks[this.nodeName.toLowerCase()],n&&"set"in n&&n.set(this,o,"value")!==t||(this.value=o))});if(o)return n=K.valHooks[o.type]||K.valHooks[o.nodeName.toLowerCase()],n&&"get"in n&&(r=n.get(o,"value"))!==t?r:(r=o.value,"string"==typeof r?r.replace(wt,""):null==r?"":r)}}}),K.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,r,i,o=e.selectedIndex,a=[],s=e.options,u="select-one"===e.type;if(0>o)return null;for(n=u?o:0,r=u?o+1:s.length;r>n;n++)if(i=s[n],!(!i.selected||(K.support.optDisabled?i.disabled:null!==i.getAttribute("disabled"))||i.parentNode.disabled&&K.nodeName(i.parentNode,"optgroup"))){if(t=K(i).val(),u)return t;a.push(t)}return u&&!a.length&&s.length?K(s[o]).val():a},set:function(e,t){var n=K.makeArray(t);return K(e).find("option").each(function(){this.selected=K.inArray(K(this).val(),n)>=0}),n.length||(e.selectedIndex=-1),n}}},attrFn:{},attr:function(e,n,r,i){var o,a,s,u=e.nodeType;if(e&&3!==u&&8!==u&&2!==u)return i&&K.isFunction(K.fn[n])?K(e)[n](r):"undefined"==typeof e.getAttribute?K.prop(e,n,r):(s=1!==u||!K.isXMLDoc(e),s&&(n=n.toLowerCase(),a=K.attrHooks[n]||(kt.test(n)?vt:yt)),r!==t?null===r?(K.removeAttr(e,n),void 0):a&&"set"in a&&s&&(o=a.set(e,r,n))!==t?o:(e.setAttribute(n,""+r),r):a&&"get"in a&&s&&null!==(o=a.get(e,n))?o:(o=e.getAttribute(n),null===o?t:o))},removeAttr:function(e,t){var n,r,i,o,a=0;if(t&&1===e.nodeType)for(r=t.split(tt);a<r.length;a++)i=r[a],i&&(n=K.propFix[i]||i,o=kt.test(i),o||K.attr(e,i,""),e.removeAttribute(Et?i:n),o&&n in e&&(e[n]=!1))},attrHooks:{type:{set:function(e,t){if(Tt.test(e.nodeName)&&e.parentNode)K.error("type property can't be changed");else if(!K.support.radioValue&&"radio"===t&&K.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}},value:{get:function(e,t){return yt&&K.nodeName(e,"button")?yt.get(e,t):t in e?e.value:null},set:function(e,t,n){return yt&&K.nodeName(e,"button")?yt.set(e,t,n):(e.value=t,void 0)}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(e,n,r){var i,o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return a=1!==s||!K.isXMLDoc(e),a&&(n=K.propFix[n]||n,o=K.propHooks[n]),r!==t?o&&"set"in o&&(i=o.set(e,r,n))!==t?i:e[n]=r:o&&"get"in o&&null!==(i=o.get(e,n))?i:e[n]},propHooks:{tabIndex:{get:function(e){var n=e.getAttributeNode("tabindex");return n&&n.specified?parseInt(n.value,10):Nt.test(e.nodeName)||Ct.test(e.nodeName)&&e.href?0:t}}}}),vt={get:function(e,n){var r,i=K.prop(e,n);return i===!0||"boolean"!=typeof i&&(r=e.getAttributeNode(n))&&r.nodeValue!==!1?n.toLowerCase():t},set:function(e,t,n){var r;return t===!1?K.removeAttr(e,n):(r=K.propFix[n]||n,r in e&&(e[r]=!0),e.setAttribute(n,n.toLowerCase())),n}},Et||(bt={name:!0,id:!0,coords:!0},yt=K.valHooks.button={get:function(e,n){var r;return r=e.getAttributeNode(n),r&&(bt[n]?""!==r.value:r.specified)?r.value:t},set:function(e,t,n){var r=e.getAttributeNode(n);return r||(r=W.createAttribute(n),e.setAttributeNode(r)),r.value=t+""}},K.each(["width","height"],function(e,t){K.attrHooks[t]=K.extend(K.attrHooks[t],{set:function(e,n){return""===n?(e.setAttribute(t,"auto"),n):void 0
  2. }})}),K.attrHooks.contenteditable={get:yt.get,set:function(e,t,n){""===t&&(t="false"),yt.set(e,t,n)}}),K.support.hrefNormalized||K.each(["href","src","width","height"],function(e,n){K.attrHooks[n]=K.extend(K.attrHooks[n],{get:function(e){var r=e.getAttribute(n,2);return null===r?t:r}})}),K.support.style||(K.attrHooks.style={get:function(e){return e.style.cssText.toLowerCase()||t},set:function(e,t){return e.style.cssText=""+t}}),K.support.optSelected||(K.propHooks.selected=K.extend(K.propHooks.selected,{get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}})),K.support.enctype||(K.propFix.enctype="encoding"),K.support.checkOn||K.each(["radio","checkbox"],function(){K.valHooks[this]={get:function(e){return null===e.getAttribute("value")?"on":e.value}}}),K.each(["radio","checkbox"],function(){K.valHooks[this]=K.extend(K.valHooks[this],{set:function(e,t){return K.isArray(t)?e.checked=K.inArray(K(e).val(),t)>=0:void 0}})});var St=/^(?:textarea|input|select)$/i,jt=/^([^\.]*|)(?:\.(.+)|)$/,At=/(?:^|\s)hover(\.\S+|)\b/,Dt=/^key/,Lt=/^(?:mouse|contextmenu)|click/,Ht=/^(?:focusinfocus|focusoutblur)$/,Mt=function(e){return K.event.special.hover?e:e.replace(At,"mouseenter$1 mouseleave$1")};K.event={add:function(e,n,r,i,o){var a,s,u,l,c,f,p,d,h,g,m;if(3!==e.nodeType&&8!==e.nodeType&&n&&r&&(a=K._data(e))){for(r.handler&&(h=r,r=h.handler,o=h.selector),r.guid||(r.guid=K.guid++),u=a.events,u||(a.events=u={}),s=a.handle,s||(a.handle=s=function(e){return"undefined"==typeof K||e&&K.event.triggered===e.type?t:K.event.dispatch.apply(s.elem,arguments)},s.elem=e),n=K.trim(Mt(n)).split(" "),l=0;l<n.length;l++)c=jt.exec(n[l])||[],f=c[1],p=(c[2]||"").split(".").sort(),m=K.event.special[f]||{},f=(o?m.delegateType:m.bindType)||f,m=K.event.special[f]||{},d=K.extend({type:f,origType:c[1],data:i,handler:r,guid:r.guid,selector:o,namespace:p.join(".")},h),g=u[f],g||(g=u[f]=[],g.delegateCount=0,m.setup&&m.setup.call(e,i,p,s)!==!1||(e.addEventListener?e.addEventListener(f,s,!1):e.attachEvent&&e.attachEvent("on"+f,s))),m.add&&(m.add.call(e,d),d.handler.guid||(d.handler.guid=r.guid)),o?g.splice(g.delegateCount++,0,d):g.push(d),K.event.global[f]=!0;e=null}},global:{},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,m=K.hasData(e)&&K._data(e);if(m&&(p=m.events)){for(t=K.trim(Mt(t||"")).split(" "),o=0;o<t.length;o++)if(a=jt.exec(t[o])||[],s=u=a[1],l=a[2],s){for(d=K.event.special[s]||{},s=(r?d.delegateType:d.bindType)||s,h=p[s]||[],c=h.length,l=l?new RegExp("(^|\\.)"+l.split(".").sort().join("\\.(?:.*\\.|)")+"(\\.|$)"):null,f=0;f<h.length;f++)g=h[f],!(!i&&u!==g.origType||n&&n.guid!==g.guid||l&&!l.test(g.namespace)||r&&r!==g.selector&&("**"!==r||!g.selector)||(h.splice(f--,1),g.selector&&h.delegateCount--,!d.remove||!d.remove.call(e,g)));0===h.length&&c!==h.length&&((!d.teardown||d.teardown.call(e,l,m.handle)===!1)&&K.removeEvent(e,s,m.handle),delete p[s])}else for(s in p)K.event.remove(e,s+t[o],n,r,!0);K.isEmptyObject(p)&&(delete m.handle,K.removeData(e,"events",!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(n,r,i,o){if(!i||3!==i.nodeType&&8!==i.nodeType){var a,s,u,l,c,f,p,d,h,g,m=n.type||n,y=[];if(Ht.test(m+K.event.triggered))return;if(m.indexOf("!")>=0&&(m=m.slice(0,-1),s=!0),m.indexOf(".")>=0&&(y=m.split("."),m=y.shift(),y.sort()),(!i||K.event.customEvent[m])&&!K.event.global[m])return;if(n="object"==typeof n?n[K.expando]?n:new K.Event(m,n):new K.Event(m),n.type=m,n.isTrigger=!0,n.exclusive=s,n.namespace=y.join("."),n.namespace_re=n.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,f=m.indexOf(":")<0?"on"+m:"",!i){a=K.cache;for(u in a)a[u].events&&a[u].events[m]&&K.event.trigger(n,r,a[u].handle.elem,!0);return}if(n.result=t,n.target||(n.target=i),r=null!=r?K.makeArray(r):[],r.unshift(n),p=K.event.special[m]||{},p.trigger&&p.trigger.apply(i,r)===!1)return;if(h=[[i,p.bindType||m]],!o&&!p.noBubble&&!K.isWindow(i)){for(g=p.delegateType||m,l=Ht.test(g+m)?i:i.parentNode,c=i;l;l=l.parentNode)h.push([l,g]),c=l;c===(i.ownerDocument||W)&&h.push([c.defaultView||c.parentWindow||e,g])}for(u=0;u<h.length&&!n.isPropagationStopped();u++)l=h[u][0],n.type=h[u][1],d=(K._data(l,"events")||{})[n.type]&&K._data(l,"handle"),d&&d.apply(l,r),d=f&&l[f],d&&K.acceptData(l)&&d.apply(l,r)===!1&&n.preventDefault();return n.type=m,!(o||n.isDefaultPrevented()||p._default&&p._default.apply(i.ownerDocument,r)!==!1||"click"===m&&K.nodeName(i,"a")||!K.acceptData(i)||!f||!i[m]||("focus"===m||"blur"===m)&&0===n.target.offsetWidth||K.isWindow(i)||(c=i[f],c&&(i[f]=null),K.event.triggered=m,i[m](),K.event.triggered=t,!c||!(i[f]=c))),n.result}},dispatch:function(n){n=K.event.fix(n||e.event);var r,i,o,a,s,u,l,c,f,p=(K._data(this,"events")||{})[n.type]||[],d=p.delegateCount,h=[].slice.call(arguments),g=!n.exclusive&&!n.namespace,m=K.event.special[n.type]||{},y=[];if(h[0]=n,n.delegateTarget=this,!m.preDispatch||m.preDispatch.call(this,n)!==!1){if(d&&(!n.button||"click"!==n.type))for(o=n.target;o!=this;o=o.parentNode||this)if(o.disabled!==!0||"click"!==n.type){for(s={},l=[],r=0;d>r;r++)c=p[r],f=c.selector,s[f]===t&&(s[f]=K(f,this).index(o)>=0),s[f]&&l.push(c);l.length&&y.push({elem:o,matches:l})}for(p.length>d&&y.push({elem:this,matches:p.slice(d)}),r=0;r<y.length&&!n.isPropagationStopped();r++)for(u=y[r],n.currentTarget=u.elem,i=0;i<u.matches.length&&!n.isImmediatePropagationStopped();i++)c=u.matches[i],(g||!n.namespace&&!c.namespace||n.namespace_re&&n.namespace_re.test(c.namespace))&&(n.data=c.data,n.handleObj=c,a=((K.event.special[c.origType]||{}).handle||c.handler).apply(u.elem,h),a!==t&&(n.result=a,a===!1&&(n.preventDefault(),n.stopPropagation())));return m.postDispatch&&m.postDispatch.call(this,n),n.result}},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,n){var r,i,o,a=n.button,s=n.fromElement;return null==e.pageX&&null!=n.clientX&&(r=e.target.ownerDocument||W,i=r.documentElement,o=r.body,e.pageX=n.clientX+(i&&i.scrollLeft||o&&o.scrollLeft||0)-(i&&i.clientLeft||o&&o.clientLeft||0),e.pageY=n.clientY+(i&&i.scrollTop||o&&o.scrollTop||0)-(i&&i.clientTop||o&&o.clientTop||0)),!e.relatedTarget&&s&&(e.relatedTarget=s===e.target?n.toElement:s),!e.which&&a!==t&&(e.which=1&a?1:2&a?3:4&a?2:0),e}},fix:function(e){if(e[K.expando])return e;var t,n,r=e,i=K.event.fixHooks[e.type]||{},o=i.props?this.props.concat(i.props):this.props;for(e=K.Event(r),t=o.length;t;)n=o[--t],e[n]=r[n];return e.target||(e.target=r.srcElement||W),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,i.filter?i.filter(e,r):e},special:{load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(e,t,n){K.isWindow(this)&&(this.onbeforeunload=n)},teardown:function(e,t){this.onbeforeunload===t&&(this.onbeforeunload=null)}}},simulate:function(e,t,n,r){var i=K.extend(new K.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?K.event.trigger(i,null,t):K.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},K.event.handle=K.event.dispatch,K.removeEvent=W.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var r="on"+t;e.detachEvent&&("undefined"==typeof e[r]&&(e[r]=null),e.detachEvent(r,n))},K.Event=function(e,t){return this instanceof K.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.returnValue===!1||e.getPreventDefault&&e.getPreventDefault()?a:o):this.type=e,t&&K.extend(this,t),this.timeStamp=e&&e.timeStamp||K.now(),this[K.expando]=!0,void 0):new K.Event(e,t)},K.Event.prototype={preventDefault:function(){this.isDefaultPrevented=a;var e=this.originalEvent;e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=a;var e=this.originalEvent;e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=a,this.stopPropagation()},isDefaultPrevented:o,isPropagationStopped:o,isImmediatePropagationStopped:o},K.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){K.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return o.selector,(!i||i!==r&&!K.contains(r,i))&&(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),K.support.submitBubbles||(K.event.special.submit={setup:function(){return K.nodeName(this,"form")?!1:(K.event.add(this,"click._submit keypress._submit",function(e){var n=e.target,r=K.nodeName(n,"input")||K.nodeName(n,"button")?n.form:t;r&&!K._data(r,"_submit_attached")&&(K.event.add(r,"submit._submit",function(e){e._submit_bubble=!0}),K._data(r,"_submit_attached",!0))}),void 0)},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&K.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return K.nodeName(this,"form")?!1:(K.event.remove(this,"._submit"),void 0)}}),K.support.changeBubbles||(K.event.special.change={setup:function(){return St.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(K.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),K.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),K.event.simulate("change",this,e,!0)})),!1):(K.event.add(this,"beforeactivate._change",function(e){var t=e.target;St.test(t.nodeName)&&!K._data(t,"_change_attached")&&(K.event.add(t,"change._change",function(e){this.parentNode&&!e.isSimulated&&!e.isTrigger&&K.event.simulate("change",this.parentNode,e,!0)}),K._data(t,"_change_attached",!0))}),void 0)},handle:function(e){var t=e.target;return this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type?e.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return K.event.remove(this,"._change"),!St.test(this.nodeName)}}),K.support.focusinBubbles||K.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){K.event.simulate(t,e.target,K.event.fix(e),!0)};K.event.special[t]={setup:function(){0===n++&&W.addEventListener(e,r,!0)},teardown:function(){0===--n&&W.removeEventListener(e,r,!0)}}}),K.fn.extend({on:function(e,n,r,i,a){var s,u;if("object"==typeof e){"string"!=typeof n&&(r=r||n,n=t);for(u in e)this.on(u,n,r,e[u],a);return this}if(null==r&&null==i?(i=n,r=n=t):null==i&&("string"==typeof n?(i=r,r=t):(i=r,r=n,n=t)),i===!1)i=o;else if(!i)return this;return 1===a&&(s=i,i=function(e){return K().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=K.guid++)),this.each(function(){K.event.add(this,e,i,r,n)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,n,r){var i,a;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,K(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(a in e)this.off(a,n,e[a]);return this}return(n===!1||"function"==typeof n)&&(r=n,n=t),r===!1&&(r=o),this.each(function(){K.event.remove(this,e,r,n)})},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},live:function(e,t,n){return K(this.context).on(e,this.selector,t,n),this},die:function(e,t){return K(this.context).off(e,this.selector||"**",t),this},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1==arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},trigger:function(e,t){return this.each(function(){K.event.trigger(e,t,this)})},triggerHandler:function(e,t){return this[0]?K.event.trigger(e,t,this[0],!0):void 0},toggle:function(e){var t=arguments,n=e.guid||K.guid++,r=0,i=function(n){var i=(K._data(this,"lastToggle"+e.guid)||0)%r;return K._data(this,"lastToggle"+e.guid,i+1),n.preventDefault(),t[i].apply(this,arguments)||!1};for(i.guid=n;r<t.length;)t[r++].guid=n;return this.click(i)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),K.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){K.fn[t]=function(e,n){return null==n&&(n=e,e=null),arguments.length>0?this.on(t,null,e,n):this.trigger(t)},Dt.test(t)&&(K.event.fixHooks[t]=K.event.keyHooks),Lt.test(t)&&(K.event.fixHooks[t]=K.event.mouseHooks)}),function(e,t){function n(e,t,n,r){n=n||[],t=t||j;var i,o,a,s,u=t.nodeType;if(1!==u&&9!==u)return[];if(!e||"string"!=typeof e)return n;if(a=x(t),!a&&!r&&(i=Q.exec(e)))if(s=i[1]){if(9===u){if(o=t.getElementById(s),!o||!o.parentNode)return n;if(o.id===s)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(s))&&w(t,o)&&o.id===s)return n.push(o),n}else{if(i[2])return H.apply(n,L.call(t.getElementsByTagName(e),0)),n;if((s=i[3])&&st&&t.getElementsByClassName)return H.apply(n,L.call(t.getElementsByClassName(s),0)),n}return h(e,t,n,r,a)}function r(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function i(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function o(e,t,n){if(e===t)return n;for(var r=e.nextSibling;r;){if(r===t)return-1;r=r.nextSibling}return 1}function a(e,t,r,i){var o,a,s,u,l,c,f,p,d,h,g=!r&&t!==j,m=(g?"<s>":"")+e.replace(X,"$1<s>"),y=O[S][m];if(y)return i?0:L.call(y,0);for(l=e,c=[],p=0,d=v.preFilter,h=v.filter;l;){(!o||(a=U.exec(l)))&&(a&&(l=l.slice(a[0].length),s.selector=f),c.push(s=[]),f="",g&&(l=" "+l)),o=!1,(a=Y.exec(l))&&(f+=a[0],l=l.slice(a[0].length),o=s.push({part:a.pop().replace(X," "),string:a[0],captures:a}));for(u in h)(a=nt[u].exec(l))&&(!d[u]||(a=d[u](a,t,r)))&&(f+=a[0],l=l.slice(a[0].length),o=s.push({part:u,string:a.shift(),captures:a}));if(!o)break}return f&&(s.selector=f),i?l.length:l?n.error(e):L.call(O(m,c),0)}function s(e,t,n,r){var i=t.dir,o=D++;return e||(e=function(e){return e===n}),t.first?function(t){for(;t=t[i];)if(1===t.nodeType)return e(t)&&t}:r?function(t){for(;t=t[i];)if(1===t.nodeType&&e(t))return t}:function(t){for(var n,r=o+"."+g,a=r+"."+m;t=t[i];)if(1===t.nodeType){if((n=t[S])===a)return t.sizset;if("string"==typeof n&&0===n.indexOf(r)){if(t.sizset)return t}else{if(t[S]=a,e(t))return t.sizset=!0,t;t.sizset=!1}}}}function u(e,t){return e?function(n){var r=t(n);return r&&e(r===!0?n:r)}:t}function l(e,t,n){for(var r,i,o=0;r=e[o];o++)i=v.relative[r.part]?s(i,v.relative[r.part],t,n):u(i,v.filter[r.part].apply(null,r.captures.concat(t,n)));return i}function c(e){return function(t){for(var n,r=0;n=e[r];r++)if(n(t))return!0;return!1}}function f(e,t,r,i){for(var o=0,a=t.length;a>o;o++)n(e,t[o],r,i)}function p(e,t,r,i,o,a){var s,u=v.setFilters[t.toLowerCase()];return u||n.error(t),(e||!(s=o))&&f(e||"*",i,s=[],o),s.length>0?u(s,r,a):[]}function d(e,r,i,o){for(var a,s,u,l,c,d,h,g,m,y,v,b,x,w=0,T=e.length,N=nt.POS,C=new RegExp("^"+N.source+"(?!"+B+")","i"),k=function(){for(var e=1,n=arguments.length-2;n>e;e++)arguments[e]===t&&(m[e]=t)};T>w;w++){for(a=e[w],s="",g=o,u=0,l=a.length;l>u;u++){if(c=a[u],d=c.string,"PSEUDO"===c.part)for(N.exec(""),h=0;m=N.exec(d);)y=!0,v=N.lastIndex=m.index+m[0].length,v>h&&(s+=d.slice(h,m.index),h=v,b=[r],Y.test(s)&&(g&&(b=g),g=o),(x=G.test(s))&&(s=s.slice(0,-5).replace(Y,"$&*"),h++),m.length>1&&m[0].replace(C,k),g=p(s,m[1],m[2],b,g,x)),s="";y||(s+=d),y=!1}s?Y.test(s)?f(s,g||[r],i,o):n(s,r,i,o?o.concat(g):g):H.apply(i,g)}return 1===T?i:n.uniqueSort(i)}function h(e,t,n,r,i){e=e.replace(X,"$1");var o,s,u,l,c,f,p,h,y,b=a(e,t,i),x=t.nodeType;if(nt.POS.test(e))return d(b,t,n,r);if(r)o=L.call(r,0);else if(1===b.length){if((c=L.call(b[0],0)).length>2&&"ID"===(f=c[0]).part&&9===x&&!i&&v.relative[c[1].part]){if(t=v.find.ID(f.captures[0].replace(tt,""),t,i)[0],!t)return n;e=e.slice(c.shift().string.length)}for(h=(b=V.exec(c[0].string))&&!b.index&&t.parentNode||t,p="",l=c.length-1;l>=0&&(f=c[l],y=f.part,p=f.string+p,!v.relative[y]);l--)if(v.order.test(y)){if(o=v.find[y](f.captures[0].replace(tt,""),h,i),null==o)continue;e=e.slice(0,e.length-p.length)+p.replace(nt[y],""),e||H.apply(n,L.call(o,0));break}}if(e)for(s=T(e,t,i),g=s.dirruns++,null==o&&(o=v.find.TAG("*",V.test(e)&&t.parentNode||t)),l=0;u=o[l];l++)m=s.runs++,s(u)&&n.push(u);return n}var g,m,y,v,b,x,w,T,N,C,k=!0,E="undefined",S=("sizcache"+Math.random()).replace(".",""),j=e.document,A=j.documentElement,D=0,L=[].slice,H=[].push,M=function(e,t){return e[S]=t||!0,e},_=function(){var e={},t=[];return M(function(n,r){return t.push(n)>v.cacheLength&&delete e[t.shift()],e[n]=r},e)},F=_(),O=_(),q=_(),B="[\\x20\\t\\r\\n\\f]",R="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",P=R.replace("w","w#"),W="([*^$|!~]?=)",I="\\["+B+"*("+R+")"+B+"*(?:"+W+B+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+P+")|)|)"+B+"*\\]",$=":("+R+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+I+")|[^:]|\\\\.)*|.*))\\)|)",z=":(nth|eq|gt|lt|first|last|even|odd)(?:\\(((?:-\\d)?\\d*)\\)|)(?=[^-]|$)",X=new RegExp("^"+B+"+|((?:^|[^\\\\])(?:\\\\.)*)"+B+"+$","g"),U=new RegExp("^"+B+"*,"+B+"*"),Y=new RegExp("^"+B+"*([\\x20\\t\\r\\n\\f>+~])"+B+"*"),J=new RegExp($),Q=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,V=/[\x20\t\r\n\f]*[+~]/,G=/:not\($/,Z=/h\d/i,et=/input|select|textarea|button/i,tt=/\\(?!\\)/g,nt={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),NAME:new RegExp("^\\[name=['\"]?("+R+")['\"]?\\]"),TAG:new RegExp("^("+R.replace("w","w*")+")"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|nth|last|first)-child(?:\\("+B+"*(even|odd|(([+-]|)(\\d*)n|)"+B+"*(?:([+-]|)"+B+"*(\\d+)|))"+B+"*\\)|)","i"),POS:new RegExp(z,"ig"),needsContext:new RegExp("^"+B+"*[>+~]|"+z,"i")},rt=function(e){var t=j.createElement("div");try{return e(t)}catch(n){return!1}finally{t=null}},it=rt(function(e){return e.appendChild(j.createComment("")),!e.getElementsByTagName("*").length}),ot=rt(function(e){return e.innerHTML="<a href='#'></a>",e.firstChild&&typeof e.firstChild.getAttribute!==E&&"#"===e.firstChild.getAttribute("href")}),at=rt(function(e){e.innerHTML="<select></select>";var t=typeof e.lastChild.getAttribute("multiple");return"boolean"!==t&&"string"!==t}),st=rt(function(e){return e.innerHTML="<div class='hidden e'></div><div class='hidden'></div>",e.getElementsByClassName&&e.getElementsByClassName("e").length?(e.lastChild.className="e",2===e.getElementsByClassName("e").length):!1}),ut=rt(function(e){e.id=S+0,e.innerHTML="<a name='"+S+"'></a><div name='"+S+"'></div>",A.insertBefore(e,A.firstChild);var t=j.getElementsByName&&j.getElementsByName(S).length===2+j.getElementsByName(S+0).length;return y=!j.getElementById(S),A.removeChild(e),t});try{L.call(A.childNodes,0)[0].nodeType}catch(lt){L=function(e){for(var t,n=[];t=this[e];e++)n.push(t);return n}}n.matches=function(e,t){return n(e,null,null,t)},n.matchesSelector=function(e,t){return n(t,null,null,[e]).length>0},b=n.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=b(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r];r++)n+=b(t);return n},x=n.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},w=n.contains=A.contains?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!!(r&&1===r.nodeType&&n.contains&&n.contains(r))}:A.compareDocumentPosition?function(e,t){return t&&!!(16&e.compareDocumentPosition(t))}:function(e,t){for(;t=t.parentNode;)if(t===e)return!0;return!1},n.attr=function(e,t){var n,r=x(e);return r||(t=t.toLowerCase()),v.attrHandle[t]?v.attrHandle[t](e):at||r?e.getAttribute(t):(n=e.getAttributeNode(t),n?"boolean"==typeof e[t]?e[t]?t:null:n.specified?n.value:null:null)},v=n.selectors={cacheLength:50,createPseudo:M,match:nt,order:new RegExp("ID|TAG"+(ut?"|NAME":"")+(st?"|CLASS":"")),attrHandle:ot?{}:{href:function(e){return e.getAttribute("href",2)},type:function(e){return e.getAttribute("type")}},find:{ID:y?function(e,t,n){if(typeof t.getElementById!==E&&!n){var r=t.getElementById(e);return r&&r.parentNode?[r]:[]}}:function(e,n,r){if(typeof n.getElementById!==E&&!r){var i=n.getElementById(e);return i?i.id===e||typeof i.getAttributeNode!==E&&i.getAttributeNode("id").value===e?[i]:t:[]}},TAG:it?function(e,t){return typeof t.getElementsByTagName!==E?t.getElementsByTagName(e):void 0}:function(e,t){var n=t.getElementsByTagName(e);if("*"===e){for(var r,i=[],o=0;r=n[o];o++)1===r.nodeType&&i.push(r);return i}return n},NAME:function(e,t){return typeof t.getElementsByName!==E?t.getElementsByName(name):void 0},CLASS:function(e,t,n){return typeof t.getElementsByClassName===E||n?void 0:t.getElementsByClassName(e)}},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(tt,""),e[3]=(e[4]||e[5]||"").replace(tt,""),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1]?(e[2]||n.error(e[0]),e[3]=+(e[3]?e[4]+(e[5]||1):2*("even"===e[2]||"odd"===e[2])),e[4]=+(e[6]+e[7]||"odd"===e[2])):e[2]&&n.error(e[0]),e},PSEUDO:function(e,t,n){var r,i;return nt.CHILD.test(e[0])?null:(e[3]?e[2]=e[3]:(r=e[4])&&(J.test(r)&&(i=a(r,t,n,!0))&&(i=r.indexOf(")",r.length-i)-r.length)&&(r=r.slice(0,i),e[0]=e[0].slice(0,i)),e[2]=r),e.slice(0,3))}},filter:{ID:y?function(e){return e=e.replace(tt,""),function(t){return t.getAttribute("id")===e}}:function(e){return e=e.replace(tt,""),function(t){var n=typeof t.getAttributeNode!==E&&t.getAttributeNode("id");return n&&n.value===e}},TAG:function(e){return"*"===e?function(){return!0}:(e=e.replace(tt,"").toLowerCase(),function(t){return t.nodeName&&t.nodeName.toLowerCase()===e})},CLASS:function(e){var t=F[S][e];return t||(t=F(e,new RegExp("(^|"+B+")"+e+"("+B+"|$)"))),function(e){return t.test(e.className||typeof e.getAttribute!==E&&e.getAttribute("class")||"")}},ATTR:function(e,t,r){return t?function(i){var o=n.attr(i,e),a=o+"";if(null==o)return"!="===t;switch(t){case"=":return a===r;case"!=":return a!==r;case"^=":return r&&0===a.indexOf(r);case"*=":return r&&a.indexOf(r)>-1;case"$=":return r&&a.substr(a.length-r.length)===r;case"~=":return(" "+a+" ").indexOf(r)>-1;case"|=":return a===r||a.substr(0,r.length+1)===r+"-"}}:function(t){return null!=n.attr(t,e)}},CHILD:function(e,t,n,r){if("nth"===e){var i=D++;return function(e){var t,o,a=0,s=e;if(1===n&&0===r)return!0;if(t=e.parentNode,t&&(t[S]!==i||!e.sizset)){for(s=t.firstChild;s&&(1!==s.nodeType||(s.sizset=++a,s!==e));s=s.nextSibling);t[S]=i}return o=e.sizset-r,0===n?0===o:0===o%n&&o/n>=0}}return function(t){var n=t;switch(e){case"only":case"first":for(;n=n.previousSibling;)if(1===n.nodeType)return!1;if("first"===e)return!0;n=t;case"last":for(;n=n.nextSibling;)if(1===n.nodeType)return!1;return!0}}},PSEUDO:function(e,t,r,i){var o,a=v.pseudos[e]||v.pseudos[e.toLowerCase()];return a||n.error("unsupported pseudo: "+e),a[S]?a(t,r,i):a.length>1?(o=[e,e,"",t],function(e){return a(e,0,o)}):a}},pseudos:{not:M(function(e,t,n){var r=T(e.replace(X,"$1"),t,n);return function(e){return!r(e)}}),enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},parent:function(e){return!v.pseudos.empty(e)},empty:function(e){var t;for(e=e.firstChild;e;){if(e.nodeName>"@"||3===(t=e.nodeType)||4===t)return!1;e=e.nextSibling}return!0},contains:M(function(e){return function(t){return(t.textContent||t.innerText||b(t)).indexOf(e)>-1}}),has:M(function(e){return function(t){return n(e,t).length>0}}),header:function(e){return Z.test(e.nodeName)},text:function(e){var t,n;return"input"===e.nodeName.toLowerCase()&&"text"===(t=e.type)&&(null==(n=e.getAttribute("type"))||n.toLowerCase()===t)},radio:r("radio"),checkbox:r("checkbox"),file:r("file"),password:r("password"),image:r("image"),submit:i("submit"),reset:i("reset"),button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},input:function(e){return et.test(e.nodeName)},focus:function(e){var t=e.ownerDocument;return!(e!==t.activeElement||t.hasFocus&&!t.hasFocus()||!e.type&&!e.href)},active:function(e){return e===e.ownerDocument.activeElement}},setFilters:{first:function(e,t,n){return n?e.slice(1):[e[0]]},last:function(e,t,n){var r=e.pop();return n?e:[r]},even:function(e,t,n){for(var r=[],i=n?1:0,o=e.length;o>i;i+=2)r.push(e[i]);return r},odd:function(e,t,n){for(var r=[],i=n?0:1,o=e.length;o>i;i+=2)r.push(e[i]);return r},lt:function(e,t,n){return n?e.slice(+t):e.slice(0,+t)},gt:function(e,t,n){return n?e.slice(0,+t+1):e.slice(+t+1)},eq:function(e,t,n){var r=e.splice(+t,1);return n?e:r}}},N=A.compareDocumentPosition?function(e,t){return e===t?(C=!0,0):(e.compareDocumentPosition&&t.compareDocumentPosition?4&e.compareDocumentPosition(t):e.compareDocumentPosition)?-1:1}:function(e,t){if(e===t)return C=!0,0;if(e.sourceIndex&&t.sourceIndex)return e.sourceIndex-t.sourceIndex;var n,r,i=[],a=[],s=e.parentNode,u=t.parentNode,l=s;if(s===u)return o(e,t);if(!s)return-1;if(!u)return 1;for(;l;)i.unshift(l),l=l.parentNode;for(l=u;l;)a.unshift(l),l=l.parentNode;n=i.length,r=a.length;for(var c=0;n>c&&r>c;c++)if(i[c]!==a[c])return o(i[c],a[c]);return c===n?o(e,a[c],-1):o(i[c],t,1)},[0,0].sort(N),k=!C,n.uniqueSort=function(e){var t,n=1;if(C=k,e.sort(N),C)for(;t=e[n];n++)t===e[n-1]&&e.splice(n--,1);return e},n.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},T=n.compile=function(e,t,n){var r,i,o,s=q[S][e];if(s&&s.context===t)return s;for(r=a(e,t,n),i=0,o=r.length;o>i;i++)r[i]=l(r[i],t,n);return s=q(e,c(r)),s.context=t,s.runs=s.dirruns=0,s},j.querySelectorAll&&function(){var e,t=h,r=/'|\\/g,i=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,o=[],s=[":active"],u=A.matchesSelector||A.mozMatchesSelector||A.webkitMatchesSelector||A.oMatchesSelector||A.msMatchesSelector;rt(function(e){e.innerHTML="<select><option selected=''></option></select>",e.querySelectorAll("[selected]").length||o.push("\\["+B+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),e.querySelectorAll(":checked").length||o.push(":checked")}),rt(function(e){e.innerHTML="<p test=''></p>",e.querySelectorAll("[test^='']").length&&o.push("[*^$]="+B+"*(?:\"\"|'')"),e.innerHTML="<input type='hidden'/>",e.querySelectorAll(":enabled").length||o.push(":enabled",":disabled")}),o=o.length&&new RegExp(o.join("|")),h=function(e,n,i,s,u){if(!(s||u||o&&o.test(e)))if(9===n.nodeType)try{return H.apply(i,L.call(n.querySelectorAll(e),0)),i}catch(l){}else if(1===n.nodeType&&"object"!==n.nodeName.toLowerCase()){var c,f,p,d=n.getAttribute("id"),h=d||S,g=V.test(e)&&n.parentNode||n;for(d?h=h.replace(r,"\\$&"):n.setAttribute("id",h),c=a(e,n,u),h="[id='"+h+"']",f=0,p=c.length;p>f;f++)c[f]=h+c[f].selector;try{return H.apply(i,L.call(g.querySelectorAll(c.join(",")),0)),i}catch(l){}finally{d||n.removeAttribute("id")}}return t(e,n,i,s,u)},u&&(rt(function(t){e=u.call(t,"div");try{u.call(t,"[test!='']:sizzle"),s.push(nt.PSEUDO.source,nt.POS.source,"!=")}catch(n){}}),s=new RegExp(s.join("|")),n.matchesSelector=function(t,r){if(r=r.replace(i,"='$1']"),!(x(t)||s.test(r)||o&&o.test(r)))try{var a=u.call(t,r);if(a||e||t.document&&11!==t.document.nodeType)return a}catch(l){}return n(r,null,null,[t]).length>0})}(),v.setFilters.nth=v.setFilters.eq,v.filters=v.pseudos,n.attr=K.attr,K.find=n,K.expr=n.selectors,K.expr[":"]=K.expr.pseudos,K.unique=n.uniqueSort,K.text=n.getText,K.isXMLDoc=n.isXML,K.contains=n.contains}(e);var _t=/Until$/,Ft=/^(?:parents|prev(?:Until|All))/,Ot=/^.[^:#\[\.,]*$/,qt=K.expr.match.needsContext,Bt={children:!0,contents:!0,next:!0,prev:!0};K.fn.extend({find:function(e){var t,n,r,i,o,a,s=this;if("string"!=typeof e)return K(e).filter(function(){for(t=0,n=s.length;n>t;t++)if(K.contains(s[t],this))return!0});for(a=this.pushStack("","find",e),t=0,n=this.length;n>t;t++)if(r=a.length,K.find(e,this[t],a),t>0)for(i=r;i<a.length;i++)for(o=0;r>o;o++)if(a[o]===a[i]){a.splice(i--,1);break}return a},has:function(e){var t,n=K(e,this),r=n.length;return this.filter(function(){for(t=0;r>t;t++)if(K.contains(this,n[t]))return!0})},not:function(e){return this.pushStack(l(this,e,!1),"not",e)},filter:function(e){return this.pushStack(l(this,e,!0),"filter",e)},is:function(e){return!!e&&("string"==typeof e?qt.test(e)?K(e,this.context).index(this[0])>=0:K.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){for(var n,r=0,i=this.length,o=[],a=qt.test(e)||"string"!=typeof e?K(e,t||this.context):0;i>r;r++)for(n=this[r];n&&n.ownerDocument&&n!==t&&11!==n.nodeType;){if(a?a.index(n)>-1:K.find.matchesSelector(n,e)){o.push(n);break}n=n.parentNode}return o=o.length>1?K.unique(o):o,this.pushStack(o,"closest",e)},index:function(e){return e?"string"==typeof e?K.inArray(this[0],K(e)):K.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(e,t){var n="string"==typeof e?K(e,t):K.makeArray(e&&e.nodeType?[e]:e),r=K.merge(this.get(),n);return this.pushStack(s(n[0])||s(r[0])?r:K.unique(r))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),K.fn.andSelf=K.fn.addBack,K.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return K.dir(e,"parentNode")},parentsUntil:function(e,t,n){return K.dir(e,"parentNode",n)},next:function(e){return u(e,"nextSibling")},prev:function(e){return u(e,"previousSibling")},nextAll:function(e){return K.dir(e,"nextSibling")},prevAll:function(e){return K.dir(e,"previousSibling")},nextUntil:function(e,t,n){return K.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return K.dir(e,"previousSibling",n)},siblings:function(e){return K.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return K.sibling(e.firstChild)},contents:function(e){return K.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:K.merge([],e.childNodes)}},function(e,t){K.fn[e]=function(n,r){var i=K.map(this,t,n);return _t.test(e)||(r=n),r&&"string"==typeof r&&(i=K.filter(r,i)),i=this.length>1&&!Bt[e]?K.unique(i):i,this.length>1&&Ft.test(e)&&(i=i.reverse()),this.pushStack(i,e,Y.call(arguments).join(","))}}),K.extend({filter:function(e,t,n){return n&&(e=":not("+e+")"),1===t.length?K.find.matchesSelector(t[0],e)?[t[0]]:[]:K.find.matches(e,t)},dir:function(e,n,r){for(var i=[],o=e[n];o&&9!==o.nodeType&&(r===t||1!==o.nodeType||!K(o).is(r));)1===o.nodeType&&i.push(o),o=o[n];return i},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});var Rt="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",Pt=/ jQuery\d+="(?:null|\d+)"/g,Wt=/^\s+/,It=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,$t=/<([\w:]+)/,zt=/<tbody/i,Xt=/<|&#?\w+;/,Ut=/<(?:script|style|link)/i,Yt=/<(?:script|object|embed|option|style)/i,Jt=new RegExp("<(?:"+Rt+")[\\s/>]","i"),Qt=/^(?:checkbox|radio)$/,Vt=/checked\s*(?:[^=]|=\s*.checked.)/i,Gt=/\/(java|ecma)script/i,Kt=/^\s*<!(?:\[CDATA\[|\-\-)|[\]\-]{2}>\s*$/g,Zt={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},en=c(W),tn=en.appendChild(W.createElement("div"));
  3. Zt.optgroup=Zt.option,Zt.tbody=Zt.tfoot=Zt.colgroup=Zt.caption=Zt.thead,Zt.th=Zt.td,K.support.htmlSerialize||(Zt._default=[1,"X<div>","</div>"]),K.fn.extend({text:function(e){return K.access(this,function(e){return e===t?K.text(this):this.empty().append((this[0]&&this[0].ownerDocument||W).createTextNode(e))},null,e,arguments.length)},wrapAll:function(e){if(K.isFunction(e))return this.each(function(t){K(this).wrapAll(e.call(this,t))});if(this[0]){var t=K(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return K.isFunction(e)?this.each(function(t){K(this).wrapInner(e.call(this,t))}):this.each(function(){var t=K(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=K.isFunction(e);return this.each(function(n){K(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){K.nodeName(this,"body")||K(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(e){(1===this.nodeType||11===this.nodeType)&&this.appendChild(e)})},prepend:function(){return this.domManip(arguments,!0,function(e){(1===this.nodeType||11===this.nodeType)&&this.insertBefore(e,this.firstChild)})},before:function(){if(!s(this[0]))return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this)});if(arguments.length){var e=K.clean(arguments);return this.pushStack(K.merge(e,this),"before",this.selector)}},after:function(){if(!s(this[0]))return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this.nextSibling)});if(arguments.length){var e=K.clean(arguments);return this.pushStack(K.merge(this,e),"after",this.selector)}},remove:function(e,t){for(var n,r=0;null!=(n=this[r]);r++)(!e||K.filter(e,[n]).length)&&(!t&&1===n.nodeType&&(K.cleanData(n.getElementsByTagName("*")),K.cleanData([n])),n.parentNode&&n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)for(1===e.nodeType&&K.cleanData(e.getElementsByTagName("*"));e.firstChild;)e.removeChild(e.firstChild);return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return K.clone(this,e,t)})},html:function(e){return K.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t)return 1===n.nodeType?n.innerHTML.replace(Pt,""):t;if(!("string"!=typeof e||Ut.test(e)||!K.support.htmlSerialize&&Jt.test(e)||!K.support.leadingWhitespace&&Wt.test(e)||Zt[($t.exec(e)||["",""])[1].toLowerCase()])){e=e.replace(It,"<$1></$2>");try{for(;i>r;r++)n=this[r]||{},1===n.nodeType&&(K.cleanData(n.getElementsByTagName("*")),n.innerHTML=e);n=0}catch(o){}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(e){return s(this[0])?this.length?this.pushStack(K(K.isFunction(e)?e():e),"replaceWith",e):this:K.isFunction(e)?this.each(function(t){var n=K(this),r=n.html();n.replaceWith(e.call(this,t,r))}):("string"!=typeof e&&(e=K(e).detach()),this.each(function(){var t=this.nextSibling,n=this.parentNode;K(this).remove(),t?K(t).before(e):K(n).append(e)}))},detach:function(e){return this.remove(e,!0)},domManip:function(e,n,r){e=[].concat.apply([],e);var i,o,a,s,u=0,l=e[0],c=[],p=this.length;if(!K.support.checkClone&&p>1&&"string"==typeof l&&Vt.test(l))return this.each(function(){K(this).domManip(e,n,r)});if(K.isFunction(l))return this.each(function(i){var o=K(this);e[0]=l.call(this,i,n?o.html():t),o.domManip(e,n,r)});if(this[0]){if(i=K.buildFragment(e,this,c),a=i.fragment,o=a.firstChild,1===a.childNodes.length&&(a=o),o)for(n=n&&K.nodeName(o,"tr"),s=i.cacheable||p-1;p>u;u++)r.call(n&&K.nodeName(this[u],"table")?f(this[u],"tbody"):this[u],u===s?a:K.clone(a,!0,!0));a=o=null,c.length&&K.each(c,function(e,t){t.src?K.ajax?K.ajax({url:t.src,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0}):K.error("no ajax"):K.globalEval((t.text||t.textContent||t.innerHTML||"").replace(Kt,"")),t.parentNode&&t.parentNode.removeChild(t)})}return this}}),K.buildFragment=function(e,n,r){var i,o,a,s=e[0];return n=n||W,n=!n.nodeType&&n[0]||n,n=n.ownerDocument||n,1===e.length&&"string"==typeof s&&s.length<512&&n===W&&"<"===s.charAt(0)&&!Yt.test(s)&&(K.support.checkClone||!Vt.test(s))&&(K.support.html5Clone||!Jt.test(s))&&(o=!0,i=K.fragments[s],a=i!==t),i||(i=n.createDocumentFragment(),K.clean(e,n,i,r),o&&(K.fragments[s]=a&&i)),{fragment:i,cacheable:o}},K.fragments={},K.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){K.fn[e]=function(n){var r,i=0,o=[],a=K(n),s=a.length,u=1===this.length&&this[0].parentNode;if((null==u||u&&11===u.nodeType&&1===u.childNodes.length)&&1===s)return a[t](this[0]),this;for(;s>i;i++)r=(i>0?this.clone(!0):this).get(),K(a[i])[t](r),o=o.concat(r);return this.pushStack(o,e,a.selector)}}),K.extend({clone:function(e,t,n){var r,i,o,a;if(K.support.html5Clone||K.isXMLDoc(e)||!Jt.test("<"+e.nodeName+">")?a=e.cloneNode(!0):(tn.innerHTML=e.outerHTML,tn.removeChild(a=tn.firstChild)),!(K.support.noCloneEvent&&K.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||K.isXMLDoc(e)))for(d(e,a),r=h(e),i=h(a),o=0;r[o];++o)i[o]&&d(r[o],i[o]);if(t&&(p(e,a),n))for(r=h(e),i=h(a),o=0;r[o];++o)p(r[o],i[o]);return r=i=null,a},clean:function(e,t,n,r){var i,o,a,s,u,l,f,p,d,h,m,y=t===W&&en,v=[];for(t&&"undefined"!=typeof t.createDocumentFragment||(t=W),i=0;null!=(a=e[i]);i++)if("number"==typeof a&&(a+=""),a){if("string"==typeof a)if(Xt.test(a)){for(y=y||c(t),f=t.createElement("div"),y.appendChild(f),a=a.replace(It,"<$1></$2>"),s=($t.exec(a)||["",""])[1].toLowerCase(),u=Zt[s]||Zt._default,l=u[0],f.innerHTML=u[1]+a+u[2];l--;)f=f.lastChild;if(!K.support.tbody)for(p=zt.test(a),d="table"!==s||p?"<table>"!==u[1]||p?[]:f.childNodes:f.firstChild&&f.firstChild.childNodes,o=d.length-1;o>=0;--o)K.nodeName(d[o],"tbody")&&!d[o].childNodes.length&&d[o].parentNode.removeChild(d[o]);!K.support.leadingWhitespace&&Wt.test(a)&&f.insertBefore(t.createTextNode(Wt.exec(a)[0]),f.firstChild),a=f.childNodes,f.parentNode.removeChild(f)}else a=t.createTextNode(a);a.nodeType?v.push(a):K.merge(v,a)}if(f&&(a=f=y=null),!K.support.appendChecked)for(i=0;null!=(a=v[i]);i++)K.nodeName(a,"input")?g(a):"undefined"!=typeof a.getElementsByTagName&&K.grep(a.getElementsByTagName("input"),g);if(n)for(h=function(e){return!e.type||Gt.test(e.type)?r?r.push(e.parentNode?e.parentNode.removeChild(e):e):n.appendChild(e):void 0},i=0;null!=(a=v[i]);i++)K.nodeName(a,"script")&&h(a)||(n.appendChild(a),"undefined"!=typeof a.getElementsByTagName&&(m=K.grep(K.merge([],a.getElementsByTagName("script")),h),v.splice.apply(v,[i+1,0].concat(m)),i+=m.length));return v},cleanData:function(e,t){for(var n,r,i,o,a=0,s=K.expando,u=K.cache,l=K.support.deleteExpando,c=K.event.special;null!=(i=e[a]);a++)if((t||K.acceptData(i))&&(r=i[s],n=r&&u[r])){if(n.events)for(o in n.events)c[o]?K.event.remove(i,o):K.removeEvent(i,o,n.handle);u[r]&&(delete u[r],l?delete i[s]:i.removeAttribute?i.removeAttribute(s):i[s]=null,K.deletedIds.push(r))}}}),function(){var e,t;K.uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},e=K.uaMatch($.userAgent),t={},e.browser&&(t[e.browser]=!0,t.version=e.version),t.chrome?t.webkit=!0:t.webkit&&(t.safari=!0),K.browser=t,K.sub=function(){function e(t,n){return new e.fn.init(t,n)}K.extend(!0,e,this),e.superclass=this,e.fn=e.prototype=this(),e.fn.constructor=e,e.sub=this.sub,e.fn.init=function n(n,r){return r&&r instanceof K&&!(r instanceof e)&&(r=e(r)),K.fn.init.call(this,n,r,t)},e.fn.init.prototype=e.fn;var t=e(W);return e}}();var nn,rn,on,an=/alpha\([^)]*\)/i,sn=/opacity=([^)]*)/,un=/^(top|right|bottom|left)$/,ln=/^(none|table(?!-c[ea]).+)/,cn=/^margin/,fn=new RegExp("^("+Z+")(.*)$","i"),pn=new RegExp("^("+Z+")(?!px)[a-z%]+$","i"),dn=new RegExp("^([-+])=("+Z+")","i"),hn={},gn={position:"absolute",visibility:"hidden",display:"block"},mn={letterSpacing:0,fontWeight:400},yn=["Top","Right","Bottom","Left"],vn=["Webkit","O","Moz","ms"],bn=K.fn.toggle;K.fn.extend({css:function(e,n){return K.access(this,function(e,n,r){return r!==t?K.style(e,n,r):K.css(e,n)},e,n,arguments.length>1)},show:function(){return v(this,!0)},hide:function(){return v(this)},toggle:function(e,t){var n="boolean"==typeof e;return K.isFunction(e)&&K.isFunction(t)?bn.apply(this,arguments):this.each(function(){(n?e:y(this))?K(this).show():K(this).hide()})}}),K.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=nn(e,"opacity");return""===n?"1":n}}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":K.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,a,s,u=K.camelCase(n),l=e.style;if(n=K.cssProps[u]||(K.cssProps[u]=m(l,u)),s=K.cssHooks[n]||K.cssHooks[u],r===t)return s&&"get"in s&&(o=s.get(e,!1,i))!==t?o:l[n];if(a=typeof r,"string"===a&&(o=dn.exec(r))&&(r=(o[1]+1)*o[2]+parseFloat(K.css(e,n)),a="number"),!(null==r||"number"===a&&isNaN(r)||("number"===a&&!K.cssNumber[u]&&(r+="px"),s&&"set"in s&&(r=s.set(e,r,i))===t)))try{l[n]=r}catch(c){}}},css:function(e,n,r,i){var o,a,s,u=K.camelCase(n);return n=K.cssProps[u]||(K.cssProps[u]=m(e.style,u)),s=K.cssHooks[n]||K.cssHooks[u],s&&"get"in s&&(o=s.get(e,!0,i)),o===t&&(o=nn(e,n)),"normal"===o&&n in mn&&(o=mn[n]),r||i!==t?(a=parseFloat(o),r||K.isNumeric(a)?a||0:o):o},swap:function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];r=n.call(e);for(i in t)e.style[i]=o[i];return r}}),e.getComputedStyle?nn=function(t,n){var r,i,o,a,s=e.getComputedStyle(t,null),u=t.style;return s&&(r=s[n],""===r&&!K.contains(t.ownerDocument,t)&&(r=K.style(t,n)),pn.test(r)&&cn.test(n)&&(i=u.width,o=u.minWidth,a=u.maxWidth,u.minWidth=u.maxWidth=u.width=r,r=s.width,u.width=i,u.minWidth=o,u.maxWidth=a)),r}:W.documentElement.currentStyle&&(nn=function(e,t){var n,r,i=e.currentStyle&&e.currentStyle[t],o=e.style;return null==i&&o&&o[t]&&(i=o[t]),pn.test(i)&&!un.test(t)&&(n=o.left,r=e.runtimeStyle&&e.runtimeStyle.left,r&&(e.runtimeStyle.left=e.currentStyle.left),o.left="fontSize"===t?"1em":i,i=o.pixelLeft+"px",o.left=n,r&&(e.runtimeStyle.left=r)),""===i?"auto":i}),K.each(["height","width"],function(e,t){K.cssHooks[t]={get:function(e,n,r){return n?0===e.offsetWidth&&ln.test(nn(e,"display"))?K.swap(e,gn,function(){return w(e,t,r)}):w(e,t,r):void 0},set:function(e,n,r){return b(e,n,r?x(e,t,r,K.support.boxSizing&&"border-box"===K.css(e,"boxSizing")):0)}}}),K.support.opacity||(K.cssHooks.opacity={get:function(e,t){return sn.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=K.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=r&&r.filter||n.filter||"";n.zoom=1,t>=1&&""===K.trim(o.replace(an,""))&&n.removeAttribute&&(n.removeAttribute("filter"),r&&!r.filter)||(n.filter=an.test(o)?o.replace(an,i):o+" "+i)}}),K(function(){K.support.reliableMarginRight||(K.cssHooks.marginRight={get:function(e,t){return K.swap(e,{display:"inline-block"},function(){return t?nn(e,"marginRight"):void 0})}}),!K.support.pixelPosition&&K.fn.position&&K.each(["top","left"],function(e,t){K.cssHooks[t]={get:function(e,n){if(n){var r=nn(e,t);return pn.test(r)?K(e).position()[t]+"px":r}}}})}),K.expr&&K.expr.filters&&(K.expr.filters.hidden=function(e){return 0===e.offsetWidth&&0===e.offsetHeight||!K.support.reliableHiddenOffsets&&"none"===(e.style&&e.style.display||nn(e,"display"))},K.expr.filters.visible=function(e){return!K.expr.filters.hidden(e)}),K.each({margin:"",padding:"",border:"Width"},function(e,t){K.cssHooks[e+t]={expand:function(n){var r,i="string"==typeof n?n.split(" "):[n],o={};for(r=0;4>r;r++)o[e+yn[r]+t]=i[r]||i[r-2]||i[0];return o}},cn.test(e)||(K.cssHooks[e+t].set=b)});var xn=/%20/g,wn=/\[\]$/,Tn=/\r?\n/g,Nn=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Cn=/^(?:select|textarea)/i;K.fn.extend({serialize:function(){return K.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?K.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||Cn.test(this.nodeName)||Nn.test(this.type))}).map(function(e,t){var n=K(this).val();return null==n?null:K.isArray(n)?K.map(n,function(e){return{name:t.name,value:e.replace(Tn,"\r\n")}}):{name:t.name,value:n.replace(Tn,"\r\n")}}).get()}}),K.param=function(e,n){var r,i=[],o=function(e,t){t=K.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(n===t&&(n=K.ajaxSettings&&K.ajaxSettings.traditional),K.isArray(e)||e.jquery&&!K.isPlainObject(e))K.each(e,function(){o(this.name,this.value)});else for(r in e)N(r,e[r],n,o);return i.join("&").replace(xn,"+")};var kn,En,Sn=/#.*$/,jn=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,An=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,Dn=/^(?:GET|HEAD)$/,Ln=/^\/\//,Hn=/\?/,Mn=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,_n=/([?&])_=[^&]*/,Fn=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,On=K.fn.load,qn={},Bn={},Rn=["*/"]+["*"];try{kn=I.href}catch(Pn){kn=W.createElement("a"),kn.href="",kn=kn.href}En=Fn.exec(kn.toLowerCase())||[],K.fn.load=function(e,n,r){if("string"!=typeof e&&On)return On.apply(this,arguments);if(!this.length)return this;var i,o,a,s=this,u=e.indexOf(" ");return u>=0&&(i=e.slice(u,e.length),e=e.slice(0,u)),K.isFunction(n)?(r=n,n=t):n&&"object"==typeof n&&(o="POST"),K.ajax({url:e,type:o,dataType:"html",data:n,complete:function(e,t){r&&s.each(r,a||[e.responseText,t,e])}}).done(function(e){a=arguments,s.html(i?K("<div>").append(e.replace(Mn,"")).find(i):e)}),this},K.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,t){K.fn[t]=function(e){return this.on(t,e)}}),K.each(["get","post"],function(e,n){K[n]=function(e,r,i,o){return K.isFunction(r)&&(o=o||i,i=r,r=t),K.ajax({type:n,url:e,data:r,success:i,dataType:o})}}),K.extend({getScript:function(e,n){return K.get(e,t,n,"script")},getJSON:function(e,t,n){return K.get(e,t,n,"json")},ajaxSetup:function(e,t){return t?E(e,K.ajaxSettings):(t=e,e=K.ajaxSettings),E(e,t),e},ajaxSettings:{url:kn,isLocal:An.test(En[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":Rn},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":e.String,"text html":!0,"text json":K.parseJSON,"text xml":K.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:C(qn),ajaxTransport:C(Bn),ajax:function(e,n){function r(e,n,r,a){var l,f,v,b,w,N=n;2!==x&&(x=2,u&&clearTimeout(u),s=t,o=a||"",T.readyState=e>0?4:0,r&&(b=S(p,T,r)),e>=200&&300>e||304===e?(p.ifModified&&(w=T.getResponseHeader("Last-Modified"),w&&(K.lastModified[i]=w),w=T.getResponseHeader("Etag"),w&&(K.etag[i]=w)),304===e?(N="notmodified",l=!0):(l=j(p,b),N=l.state,f=l.data,v=l.error,l=!v)):(v=N,(!N||e)&&(N="error",0>e&&(e=0))),T.status=e,T.statusText=""+(n||N),l?g.resolveWith(d,[f,N,T]):g.rejectWith(d,[T,N,v]),T.statusCode(y),y=t,c&&h.trigger("ajax"+(l?"Success":"Error"),[T,p,l?f:v]),m.fireWith(d,[T,N]),c&&(h.trigger("ajaxComplete",[T,p]),--K.active||K.event.trigger("ajaxStop")))}"object"==typeof e&&(n=e,e=t),n=n||{};var i,o,a,s,u,l,c,f,p=K.ajaxSetup({},n),d=p.context||p,h=d!==p&&(d.nodeType||d instanceof K)?K(d):K.event,g=K.Deferred(),m=K.Callbacks("once memory"),y=p.statusCode||{},v={},b={},x=0,w="canceled",T={readyState:0,setRequestHeader:function(e,t){if(!x){var n=e.toLowerCase();e=b[n]=b[n]||e,v[e]=t}return this},getAllResponseHeaders:function(){return 2===x?o:null},getResponseHeader:function(e){var n;if(2===x){if(!a)for(a={};n=jn.exec(o);)a[n[1].toLowerCase()]=n[2];n=a[e.toLowerCase()]}return n===t?null:n},overrideMimeType:function(e){return x||(p.mimeType=e),this},abort:function(e){return e=e||w,s&&s.abort(e),r(0,e),this}};if(g.promise(T),T.success=T.done,T.error=T.fail,T.complete=m.add,T.statusCode=function(e){if(e){var t;if(2>x)for(t in e)y[t]=[y[t],e[t]];else t=e[T.status],T.always(t)}return this},p.url=((e||p.url)+"").replace(Sn,"").replace(Ln,En[1]+"//"),p.dataTypes=K.trim(p.dataType||"*").toLowerCase().split(tt),null==p.crossDomain&&(l=Fn.exec(p.url.toLowerCase()),p.crossDomain=!(!l||l[1]==En[1]&&l[2]==En[2]&&(l[3]||("http:"===l[1]?80:443))==(En[3]||("http:"===En[1]?80:443)))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=K.param(p.data,p.traditional)),k(qn,p,n,T),2===x)return T;if(c=p.global,p.type=p.type.toUpperCase(),p.hasContent=!Dn.test(p.type),c&&0===K.active++&&K.event.trigger("ajaxStart"),!p.hasContent&&(p.data&&(p.url+=(Hn.test(p.url)?"&":"?")+p.data,delete p.data),i=p.url,p.cache===!1)){var N=K.now(),C=p.url.replace(_n,"$1_="+N);p.url=C+(C===p.url?(Hn.test(p.url)?"&":"?")+"_="+N:"")}(p.data&&p.hasContent&&p.contentType!==!1||n.contentType)&&T.setRequestHeader("Content-Type",p.contentType),p.ifModified&&(i=i||p.url,K.lastModified[i]&&T.setRequestHeader("If-Modified-Since",K.lastModified[i]),K.etag[i]&&T.setRequestHeader("If-None-Match",K.etag[i])),T.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Rn+"; q=0.01":""):p.accepts["*"]);for(f in p.headers)T.setRequestHeader(f,p.headers[f]);if(!p.beforeSend||p.beforeSend.call(d,T,p)!==!1&&2!==x){w="abort";for(f in{success:1,error:1,complete:1})T[f](p[f]);if(s=k(Bn,p,n,T)){T.readyState=1,c&&h.trigger("ajaxSend",[T,p]),p.async&&p.timeout>0&&(u=setTimeout(function(){T.abort("timeout")},p.timeout));try{x=1,s.send(v,r)}catch(E){if(!(2>x))throw E;r(-1,E)}}else r(-1,"No Transport");return T}return T.abort()},active:0,lastModified:{},etag:{}});var Wn=[],In=/\?/,$n=/(=)\?(?=&|$)|\?\?/,zn=K.now();K.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Wn.pop()||K.expando+"_"+zn++;return this[e]=!0,e}}),K.ajaxPrefilter("json jsonp",function(n,r,i){var o,a,s,u=n.data,l=n.url,c=n.jsonp!==!1,f=c&&$n.test(l),p=c&&!f&&"string"==typeof u&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&$n.test(u);return"jsonp"===n.dataTypes[0]||f||p?(o=n.jsonpCallback=K.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,a=e[o],f?n.url=l.replace($n,"$1"+o):p?n.data=u.replace($n,"$1"+o):c&&(n.url+=(In.test(l)?"&":"?")+n.jsonp+"="+o),n.converters["script json"]=function(){return s||K.error(o+" was not called"),s[0]},n.dataTypes[0]="json",e[o]=function(){s=arguments},i.always(function(){e[o]=a,n[o]&&(n.jsonpCallback=r.jsonpCallback,Wn.push(o)),s&&K.isFunction(a)&&a(s[0]),s=a=t}),"script"):void 0}),K.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){return K.globalEval(e),e}}}),K.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),K.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=W.head||W.getElementsByTagName("head")[0]||W.documentElement;return{send:function(i,o){n=W.createElement("script"),n.async="async",e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,i){(i||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,r&&n.parentNode&&r.removeChild(n),n=t,i||o(200,"success"))},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(0,1)}}}});var Xn,Un=e.ActiveXObject?function(){for(var e in Xn)Xn[e](0,1)}:!1,Yn=0;K.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&A()||D()}:A,function(e){K.extend(K.support,{ajax:!!e,cors:!!e&&"withCredentials"in e})}(K.ajaxSettings.xhr()),K.support.ajax&&K.ajaxTransport(function(n){if(!n.crossDomain||K.support.cors){var r;return{send:function(i,o){var a,s,u=n.xhr();if(n.username?u.open(n.type,n.url,n.async,n.username,n.password):u.open(n.type,n.url,n.async),n.xhrFields)for(s in n.xhrFields)u[s]=n.xhrFields[s];n.mimeType&&u.overrideMimeType&&u.overrideMimeType(n.mimeType),!n.crossDomain&&!i["X-Requested-With"]&&(i["X-Requested-With"]="XMLHttpRequest");try{for(s in i)u.setRequestHeader(s,i[s])}catch(l){}u.send(n.hasContent&&n.data||null),r=function(e,i){var s,l,c,f,p;try{if(r&&(i||4===u.readyState))if(r=t,a&&(u.onreadystatechange=K.noop,Un&&delete Xn[a]),i)4!==u.readyState&&u.abort();else{s=u.status,c=u.getAllResponseHeaders(),f={},p=u.responseXML,p&&p.documentElement&&(f.xml=p);try{f.text=u.responseText}catch(e){}try{l=u.statusText}catch(d){l=""}s||!n.isLocal||n.crossDomain?1223===s&&(s=204):s=f.text?200:404}}catch(h){i||o(-1,h)}f&&o(s,l,f,c)},n.async?4===u.readyState?setTimeout(r,0):(a=++Yn,Un&&(Xn||(Xn={},K(e).unload(Un)),Xn[a]=r),u.onreadystatechange=r):r()},abort:function(){r&&r(0,1)}}}});var Jn,Qn,Vn=/^(?:toggle|show|hide)$/,Gn=new RegExp("^(?:([-+])=|)("+Z+")([a-z%]*)$","i"),Kn=/queueHooks$/,Zn=[F],er={"*":[function(e,t){var n,r,i,o=this.createTween(e,t),a=Gn.exec(t),s=o.cur(),u=+s||0,l=1;if(a){if(n=+a[2],r=a[3]||(K.cssNumber[e]?"":"px"),"px"!==r&&u){u=K.css(o.elem,e,!0)||n||1;do i=l=l||".5",u/=l,K.style(o.elem,e,u+r),l=o.cur()/s;while(1!==l&&l!==i)}o.unit=r,o.start=u,o.end=a[1]?u+(a[1]+1)*n:n}return o}]};K.Animation=K.extend(M,{tweener:function(e,t){K.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,r=0,i=e.length;i>r;r++)n=e[r],er[n]=er[n]||[],er[n].unshift(t)},prefilter:function(e,t){t?Zn.unshift(e):Zn.push(e)}}),K.Tween=O,O.prototype={constructor:O,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(K.cssNumber[n]?"":"px")},cur:function(){var e=O.propHooks[this.prop];return e&&e.get?e.get(this):O.propHooks._default.get(this)},run:function(e){var t,n=O.propHooks[this.prop];return this.pos=t=this.options.duration?K.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):O.propHooks._default.set(this),this}},O.prototype.init.prototype=O.prototype,O.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=K.css(e.elem,e.prop,!1,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){K.fx.step[e.prop]?K.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[K.cssProps[e.prop]]||K.cssHooks[e.prop])?K.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},O.propHooks.scrollTop=O.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},K.each(["toggle","show","hide"],function(e,t){var n=K.fn[t];K.fn[t]=function(r,i,o){return null==r||"boolean"==typeof r||!e&&K.isFunction(r)&&K.isFunction(i)?n.apply(this,arguments):this.animate(q(t,!0),r,i,o)}}),K.fn.extend({fadeTo:function(e,t,n,r){return this.filter(y).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=K.isEmptyObject(e),o=K.speed(t,n,r),a=function(){var t=M(this,K.extend({},e),o);i&&t.stop(!0)};return i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,n,r){var i=function(e){var t=e.stop;delete e.stop,t(r)};return"string"!=typeof e&&(r=n,n=e,e=t),n&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,n=null!=e&&e+"queueHooks",o=K.timers,a=K._data(this);if(n)a[n]&&a[n].stop&&i(a[n]);else for(n in a)a[n]&&a[n].stop&&Kn.test(n)&&i(a[n]);for(n=o.length;n--;)o[n].elem===this&&(null==e||o[n].queue===e)&&(o[n].anim.stop(r),t=!1,o.splice(n,1));(t||!r)&&K.dequeue(this,e)})}}),K.each({slideDown:q("show"),slideUp:q("hide"),slideToggle:q("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){K.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),K.speed=function(e,t,n){var r=e&&"object"==typeof e?K.extend({},e):{complete:n||!n&&t||K.isFunction(e)&&e,duration:e,easing:n&&t||t&&!K.isFunction(t)&&t};return r.duration=K.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in K.fx.speeds?K.fx.speeds[r.duration]:K.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){K.isFunction(r.old)&&r.old.call(this),r.queue&&K.dequeue(this,r.queue)},r},K.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},K.timers=[],K.fx=O.prototype.init,K.fx.tick=function(){for(var e,t=K.timers,n=0;n<t.length;n++)e=t[n],!e()&&t[n]===e&&t.splice(n--,1);t.length||K.fx.stop()},K.fx.timer=function(e){e()&&K.timers.push(e)&&!Qn&&(Qn=setInterval(K.fx.tick,K.fx.interval))},K.fx.interval=13,K.fx.stop=function(){clearInterval(Qn),Qn=null},K.fx.speeds={slow:600,fast:200,_default:400},K.fx.step={},K.expr&&K.expr.filters&&(K.expr.filters.animated=function(e){return K.grep(K.timers,function(t){return e===t.elem}).length});var tr=/^(?:body|html)$/i;K.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){K.offset.setOffset(this,e,t)});var n,r,i,o,a,s,u,l,c,f,p=this[0],d=p&&p.ownerDocument;if(d)return(i=d.body)===p?K.offset.bodyOffset(p):(r=d.documentElement,K.contains(r,p)?(n=p.getBoundingClientRect(),o=B(d),a=r.clientTop||i.clientTop||0,s=r.clientLeft||i.clientLeft||0,u=o.pageYOffset||r.scrollTop,l=o.pageXOffset||r.scrollLeft,c=n.top+u-a,f=n.left+l-s,{top:c,left:f}):{top:0,left:0})},K.offset={bodyOffset:function(e){var t=e.offsetTop,n=e.offsetLeft;return K.support.doesNotIncludeMarginInBodyOffset&&(t+=parseFloat(K.css(e,"marginTop"))||0,n+=parseFloat(K.css(e,"marginLeft"))||0),{top:t,left:n}},setOffset:function(e,t,n){var r=K.css(e,"position");"static"===r&&(e.style.position="relative");var i,o,a=K(e),s=a.offset(),u=K.css(e,"top"),l=K.css(e,"left"),c=("absolute"===r||"fixed"===r)&&K.inArray("auto",[u,l])>-1,f={},p={};c?(p=a.position(),i=p.top,o=p.left):(i=parseFloat(u)||0,o=parseFloat(l)||0),K.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(f.top=t.top-s.top+i),null!=t.left&&(f.left=t.left-s.left+o),"using"in t?t.using.call(e,f):a.css(f)}},K.fn.extend({position:function(){if(this[0]){var e=this[0],t=this.offsetParent(),n=this.offset(),r=tr.test(t[0].nodeName)?{top:0,left:0}:t.offset();return n.top-=parseFloat(K.css(e,"marginTop"))||0,n.left-=parseFloat(K.css(e,"marginLeft"))||0,r.top+=parseFloat(K.css(t[0],"borderTopWidth"))||0,r.left+=parseFloat(K.css(t[0],"borderLeftWidth"))||0,{top:n.top-r.top,left:n.left-r.left}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||W.body;e&&!tr.test(e.nodeName)&&"static"===K.css(e,"position");)e=e.offsetParent;return e||W.body})}}),K.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=/Y/.test(n);K.fn[e]=function(i){return K.access(this,function(e,i,o){var a=B(e);return o===t?a?n in a?a[n]:a.document.documentElement[i]:e[i]:(a?a.scrollTo(r?K(a).scrollLeft():o,r?o:K(a).scrollTop()):e[i]=o,void 0)},e,i,arguments.length,null)}}),K.each({Height:"height",Width:"width"},function(e,n){K.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){K.fn[i]=function(i,o){var a=arguments.length&&(r||"boolean"!=typeof i),s=r||(i===!0||o===!0?"margin":"border");return K.access(this,function(n,r,i){var o;return K.isWindow(n)?n.document.documentElement["client"+e]:9===n.nodeType?(o=n.documentElement,Math.max(n.body["scroll"+e],o["scroll"+e],n.body["offset"+e],o["offset"+e],o["client"+e])):i===t?K.css(n,r,i,s):K.style(n,r,i,s)},n,a?i:t,a,null)}})}),e.jQuery=e.$=K,"function"==typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return K})}(window),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(e){function t(e){return e}function n(e){return decodeURIComponent(e.replace(i," "))}function r(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return o.json?JSON.parse(e):e}catch(t){}}var i=/\+/g,o=e.cookie=function(i,a,s){if(void 0!==a){if(s=e.extend({},o.defaults,s),"number"==typeof s.expires){var u=s.expires,l=s.expires=new Date;l.setDate(l.getDate()+u)}return a=o.json?JSON.stringify(a):String(a),document.cookie=[o.raw?i:encodeURIComponent(i),"=",o.raw?a:encodeURIComponent(a),s.expires?"; expires="+s.expires.toUTCString():"",s.path?"; path="+s.path:"",s.domain?"; domain="+s.domain:"",s.secure?"; secure":""].join("")}for(var c=o.raw?t:n,f=document.cookie.split("; "),p=i?void 0:{},d=0,h=f.length;h>d;d++){var g=f[d].split("="),m=c(g.shift()),y=c(g.join("="));if(i&&i===m){p=r(y);break}i||(p[m]=r(y))}return p};o.defaults={},e.removeCookie=function(t,n){return void 0!==e.cookie(t)?(e.cookie(t,"",e.extend({},n,{expires:-1})),!0):!1}}),function(e,t){function n(e,t,n){var r=f[t.type]||{};return null==e?n||!t.def?null:t.def:(e=r.floor?~~e:parseFloat(e),isNaN(e)?t.def:r.mod?(e+r.mod)%r.mod:0>e?0:r.max<e?r.max:e)}function r(t){var n=l(),r=n._rgba=[];return t=t.toLowerCase(),h(u,function(e,i){var o,a=i.re.exec(t),s=a&&i.parse(a),u=i.space||"rgba";return s?(o=n[u](s),n[c[u].cache]=o[c[u].cache],r=n._rgba=o._rgba,!1):void 0}),r.length?("0,0,0,0"===r.join()&&e.extend(r,o.transparent),n):o[t]}function i(e,t,n){return n=(n+1)%1,1>6*n?e+6*(t-e)*n:1>2*n?t:2>3*n?e+6*(t-e)*(2/3-n):e}var o,a="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",s=/^([\-+])=\s*(\d+\.?\d*)/,u=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1],e[2],e[3],e[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[2.55*e[1],2.55*e[2],2.55*e[3],e[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(e){return[e[1],e[2]/100,e[3]/100,e[4]]}}],l=e.Color=function(t,n,r,i){return new e.Color.fn.parse(t,n,r,i)},c={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},f={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},p=l.support={},d=e("<p>")[0],h=e.each;d.style.cssText="background-color:rgba(1,1,1,.5)",p.rgba=d.style.backgroundColor.indexOf("rgba")>-1,h(c,function(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}}),l.fn=e.extend(l.prototype,{parse:function(i,a,s,u){if(i===t)return this._rgba=[null,null,null,null],this;(i.jquery||i.nodeType)&&(i=e(i).css(a),a=t);var f=this,p=e.type(i),d=this._rgba=[];return a!==t&&(i=[i,a,s,u],p="array"),"string"===p?this.parse(r(i)||o._default):"array"===p?(h(c.rgba.props,function(e,t){d[t.idx]=n(i[t.idx],t)}),this):"object"===p?(i instanceof l?h(c,function(e,t){i[t.cache]&&(f[t.cache]=i[t.cache].slice())}):h(c,function(t,r){var o=r.cache;h(r.props,function(e,t){if(!f[o]&&r.to){if("alpha"===e||null==i[e])return;f[o]=r.to(f._rgba)}f[o][t.idx]=n(i[e],t,!0)}),f[o]&&e.inArray(null,f[o].slice(0,3))<0&&(f[o][3]=1,r.from&&(f._rgba=r.from(f[o])))}),this):void 0},is:function(e){var t=l(e),n=!0,r=this;return h(c,function(e,i){var o,a=t[i.cache];return a&&(o=r[i.cache]||i.to&&i.to(r._rgba)||[],h(i.props,function(e,t){return null!=a[t.idx]?n=a[t.idx]===o[t.idx]:void 0
  4. })),n}),n},_space:function(){var e=[],t=this;return h(c,function(n,r){t[r.cache]&&e.push(n)}),e.pop()},transition:function(e,t){var r=l(e),i=r._space(),o=c[i],a=0===this.alpha()?l("transparent"):this,s=a[o.cache]||o.to(a._rgba),u=s.slice();return r=r[o.cache],h(o.props,function(e,i){var o=i.idx,a=s[o],l=r[o],c=f[i.type]||{};null!==l&&(null===a?u[o]=l:(c.mod&&(l-a>c.mod/2?a+=c.mod:a-l>c.mod/2&&(a-=c.mod)),u[o]=n((l-a)*t+a,i)))}),this[i](u)},blend:function(t){if(1===this._rgba[3])return this;var n=this._rgba.slice(),r=n.pop(),i=l(t)._rgba;return l(e.map(n,function(e,t){return(1-r)*i[t]+r*e}))},toRgbaString:function(){var t="rgba(",n=e.map(this._rgba,function(e,t){return null==e?t>2?1:0:e});return 1===n[3]&&(n.pop(),t="rgb("),t+n.join()+")"},toHslaString:function(){var t="hsla(",n=e.map(this.hsla(),function(e,t){return null==e&&(e=t>2?1:0),t&&3>t&&(e=Math.round(100*e)+"%"),e});return 1===n[3]&&(n.pop(),t="hsl("),t+n.join()+")"},toHexString:function(t){var n=this._rgba.slice(),r=n.pop();return t&&n.push(~~(255*r)),"#"+e.map(n,function(e){return e=(e||0).toString(16),1===e.length?"0"+e:e}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),l.fn.parse.prototype=l.fn,c.hsla.to=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,a=e[3],s=Math.max(r,i,o),u=Math.min(r,i,o),l=s-u,c=s+u,f=.5*c;return t=u===s?0:r===s?60*(i-o)/l+360:i===s?60*(o-r)/l+120:60*(r-i)/l+240,n=0===l?0:.5>=f?l/c:l/(2-c),[Math.round(t)%360,n,f,null==a?1:a]},c.hsla.from=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t=e[0]/360,n=e[1],r=e[2],o=e[3],a=.5>=r?r*(1+n):r+n-r*n,s=2*r-a;return[Math.round(255*i(s,a,t+1/3)),Math.round(255*i(s,a,t)),Math.round(255*i(s,a,t-1/3)),o]},h(c,function(r,i){var o=i.props,a=i.cache,u=i.to,c=i.from;l.fn[r]=function(r){if(u&&!this[a]&&(this[a]=u(this._rgba)),r===t)return this[a].slice();var i,s=e.type(r),f="array"===s||"object"===s?r:arguments,p=this[a].slice();return h(o,function(e,t){var r=f["object"===s?e:t.idx];null==r&&(r=p[t.idx]),p[t.idx]=n(r,t)}),c?(i=l(c(p)),i[a]=p,i):l(p)},h(o,function(t,n){l.fn[t]||(l.fn[t]=function(i){var o,a=e.type(i),u="alpha"===t?this._hsla?"hsla":"rgba":r,l=this[u](),c=l[n.idx];return"undefined"===a?c:("function"===a&&(i=i.call(this,c),a=e.type(i)),null==i&&n.empty?this:("string"===a&&(o=s.exec(i),o&&(i=c+parseFloat(o[2])*("+"===o[1]?1:-1))),l[n.idx]=i,this[u](l)))})})}),l.hook=function(t){var n=t.split(" ");h(n,function(t,n){e.cssHooks[n]={set:function(t,i){var o,a,s="";if("transparent"!==i&&("string"!==e.type(i)||(o=r(i)))){if(i=l(o||i),!p.rgba&&1!==i._rgba[3]){for(a="backgroundColor"===n?t.parentNode:t;(""===s||"transparent"===s)&&a&&a.style;)try{s=e.css(a,"backgroundColor"),a=a.parentNode}catch(u){}i=i.blend(s&&"transparent"!==s?s:"_default")}i=i.toRgbaString()}try{t.style[n]=i}catch(u){}}},e.fx.step[n]=function(t){t.colorInit||(t.start=l(t.elem,n),t.end=l(t.end),t.colorInit=!0),e.cssHooks[n].set(t.elem,t.start.transition(t.end,t.pos))}})},l.hook(a),e.cssHooks.borderColor={expand:function(e){var t={};return h(["Top","Right","Bottom","Left"],function(n,r){t["border"+r+"Color"]=e}),t}},o=e.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(jQuery),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(e){function t(t){var i,o=t||window.event,a=[].slice.call(arguments,1),s=0,u=0,l=0,c=0,f=0;return t=e.event.fix(o),t.type="mousewheel",o.wheelDelta&&(s=o.wheelDelta),o.detail&&(s=-1*o.detail),o.deltaY&&(l=-1*o.deltaY,s=l),o.deltaX&&(u=o.deltaX,s=-1*u),void 0!==o.wheelDeltaY&&(l=o.wheelDeltaY),void 0!==o.wheelDeltaX&&(u=-1*o.wheelDeltaX),c=Math.abs(s),(!n||n>c)&&(n=c),f=Math.max(Math.abs(l),Math.abs(u)),(!r||r>f)&&(r=f),i=s>0?"floor":"ceil",s=Math[i](s/n),u=Math[i](u/r),l=Math[i](l/r),a.unshift(t,s,u,l),(e.event.dispatch||e.event.handle).apply(this,a)}var n,r,i=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],o="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"];if(e.event.fixHooks)for(var a=i.length;a;)e.event.fixHooks[i[--a]]=e.event.mouseHooks;e.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var e=o.length;e;)this.addEventListener(o[--e],t,!1);else this.onmousewheel=t},teardown:function(){if(this.removeEventListener)for(var e=o.length;e;)this.removeEventListener(o[--e],t,!1);else this.onmousewheel=null}},e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})});
  5. !function() {
  6. var t = {
  7. UN: "#gasks div",
  8. bt: "Volume is disabled for Coinbase.",
  9. KF: " day",
  10. Ro: "Highlight Text",
  11. LQ: "?",
  12. kb: "&",
  13. za: ".unit",
  14. cK: "bid",
  15. SH: "emas",
  16. JX: "12小时",
  17. CI: " max: ",
  18. oY: "asks",
  19. fo: "/",
  20. ee: ".cond_np",
  21. "in": "href",
  22. PP: " ",
  23. vS: "months",
  24. vx: "",
  25. sn: "min",
  26. pZ: "object",
  27. Hm: "-",
  28. VH: "Bitstamp",
  29. fIQY: "rgba(204,0,0,0.6)",
  30. iK: ":8080/difficulty?market=",
  31. dL: "Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec",
  32. cC: "% ",
  33. dX: "trades: ",
  34. MX: "#canvas_shapes",
  35. xw: "undefined",
  36. nG: "<div class=ok>",
  37. bg: "/api.php?method=",
  38. oz: "A recovery mail has been sent to<br>",
  39. ir: ", ",
  40. ZI: "div",
  41. MI: ":first",
  42. Ov: "<br/>",
  43. Lg: "#D58E31",
  44. pp: "passport_",
  45. Pr: "#ask",
  46. Ci: " count: ",
  47. xb: ".link_logout",
  48. ml: "gapWidth",
  49. Yk: "img",
  50. fm: "</td></tr>",
  51. ppwy: "<table class=s1>",
  52. qO: "rgba(0,204,0,0.6)",
  53. lM: "location",
  54. tF: "Expires on ",
  55. VF: ' <span style="color:#666"><small>(',
  56. mG: "<g>$&</g>",
  57. OB: " left)</small></span>",
  58. QG: "Upgrade to premium account.",
  59. TR: "bitcoin:",
  60. aU: "?amount=",
  61. KFPH: "resize",
  62. Tc: "Colors",
  63. Ga: ": ",
  64. ql: " ago",
  65. aN: "&size=7",
  66. Sq: "",
  67. FQ: ".to_cost",
  68. gRMC: "html",
  69. zU: ' class_name="',
  70. Bh: "rgba(10, 10, 10, 0.8)",
  71. fq: "<div",
  72. mi: "/>",
  73. DK: "[",
  74. uZ: "hour",
  75. Bp: "] ",
  76. aX: "",
  77. qd: "failed, ",
  78. Vn: ".to",
  79. Tf: "RUIZCON",
  80. Ss: "Cross is locked.",
  81. xs: "#footer_outer",
  82. xm: "litecoin",
  83. ZE: "买 <span class=yellow>",
  84. gv: ".error",
  85. VW: "dropdown-hover",
  86. uO: "?label=RUIZTON",
  87. nO: "#before_trades",
  88. Tr: "#mode_",
  89. Ln: " 将得到 <span class=red>",
  90. qt: "1小时",
  91. Xe: "花费和收入的平均价为 <span class=grey>",
  92. CE: "时间: ",
  93. lT: "Red Fill",
  94. cM: "高: ",
  95. Sv: "低: ",
  96. uC: "收: ",
  97. KD: ".t",
  98. Kp: "request failed.",
  99. gm: "input[type=submit]",
  100. AYEC: "error",
  101. Dw: "&nbsp;&nbsp;&nbsp;",
  102. ek: "11px Consolas, Monospace",
  103. KG: " asks and ",
  104. RS: "← ",
  105. Oc: "input[name=recover_password]",
  106. sI: "out of orderbook",
  107. am: "12px Consolas, Monospace",
  108. wd: ":8080?symbol=",
  109. nw: "_avg_p",
  110. xS: "#39A033",
  111. DS: "Initialize FullSync System",
  112. ay: "0",
  113. lh: "加载中...",
  114. Zt: "logarithmic",
  115. gR: ".content_logout",
  116. pO: "#setting_",
  117. Nr: "return",
  118. Ie: "kdj",
  119. eH: "#nav",
  120. oi: "/</span>",
  121. Rt: "g",
  122. WV: "price_mas",
  123. Ix: "#markets",
  124. xf: "Buy",
  125. mF: " depth",
  126. ez: "realtime active at ",
  127. SN: "load ",
  128. nd: "Green Arrow",
  129. Cj: '</div><div class="p ',
  130. gnTC: "#FFFFFF",
  131. pH: "→",
  132. bn: "get history data from server for ",
  133. xy: "/Chart/getMarketSpecialtyJson.html",
  134. pnqk: "grey",
  135. th: "parse json failed",
  136. uj: "input[name=",
  137. qE: "bwsid",
  138. Qx: "kdj_params",
  139. yP: "#E31A1C",
  140. Re: "background-color",
  141. Wy: "bitcoin",
  142. QO: "BTCJPY",
  143. Mz: "loop_until_success:error",
  144. qFXZ: "bold 12px Consolas, Monospace",
  145. CF: "<tr><td>",
  146. tr: "#market_",
  147. FY: " - RUIZTON",
  148. Ge: "<div>",
  149. fG: "#",
  150. af: " .table",
  151. PA: "multimap",
  152. mGEy: "6小时",
  153. zZ: "_avg",
  154. NQ: "_reach_p",
  155. LX: "#FB9A99",
  156. Iy: "#CC1414",
  157. qP: "#market",
  158. cb: "#dlg_",
  159. ODqa: "fetch depth failed",
  160. mK: "#realtime_error",
  161. da: "$1<g>$2</g>",
  162. aORv: "bad",
  163. OD: " txes",
  164. QS: '<div class=text>加载失败, 5秒后重新刷新.</div>',
  165. Px: "/Chart/depth.html?symbol=",
  166. aI: "#notify",
  167. tX: "rgba(255,255,255,0.8)",
  168. IQ: "http://",
  169. Jv: "history",
  170. FB: "wait cycle",
  171. BY: "量: ",
  172. xN: "/Chart/getSpecialtyTrades.html",
  173. Ul: ".content_history",
  174. Rg: " missed trade",
  175. uT: " trade",
  176. wP: "realtime: connect to ",
  177. zI: "cross",
  178. VI: "depth bid length ",
  179. Kw: "C$",
  180. Pd: "li.period",
  181. MCXr: "m",
  182. MO: "rgba(204,204,204,0.6)",
  183. Xo: "#F80",
  184. at: "-- STATUS --",
  185. YV: "ws://",
  186. oI: "振幅: ",
  187. ZG: "<span class=eprice>",
  188. QF: ".content_",
  189. Sf: ".",
  190. dLFn: "use PUBNUB",
  191. DW: "#assist",
  192. Hg: "ticker: ",
  193. xp: "涨幅: ",
  194. inuH: ", first is ",
  195. tB: "sdepth",
  196. mO: "#633",
  197. Dj: "depth cache length ",
  198. ZtQW: "good",
  199. ZQ: "<g>",
  200. dF: "onerror",
  201. sw: "depth ask length ",
  202. hM: "stoch_rsi",
  203. im: ".dropdown-data",
  204. mT: "10px Consolas, Monospace",
  205. mv: "li[value=",
  206. Za: "Sun Mon Tue Wed Thu Fri Sat",
  207. vO: "30分",
  208. rw: "#chart_info",
  209. jD: "#show_qr",
  210. IfRU: "5分",
  211. pc: "/kline/sdepth.html?symbol=",
  212. LA: "bottom",
  213. Pc: "</table>",
  214. UP: "rgba(255,255,255,0.4)",
  215. gT: "stock_rsi_params",
  216. WdJF: "#change",
  217. xh: "default",
  218. GI: "number",
  219. UJ: "last tid: ",
  220. AI: "world",
  221. mg: "hr",
  222. Gx: "<div class=ok>Logout successful.</div>",
  223. KB: "theme",
  224. bz: "<div class=row><span class=price></span> <span class=amount></span></div>",
  225. Sa: "1分",
  226. xW: "minute",
  227. MA: "second",
  228. YD: "error, history data is empty",
  229. Nv: "auto",
  230. Zz: "#0A0A0A",
  231. rk: ".line_style",
  232. Wd: ".address",
  233. nR: "1天",
  234. ln: "#FF0",
  235. TD: "#36F",
  236. Zx: "</g></div><div class=t>",
  237. gx: "#49C043",
  238. RW: "function",
  239. kd: "/qr?data=",
  240. eO: "warning",
  241. Je: "remove ",
  242. hS: "#999",
  243. DJ: "ws://websocket.mtgox.com?Currency=",
  244. nM: "#footer",
  245. Om: "#bid",
  246. bDnR: "red",
  247. Vv: "#CCCC00",
  248. JE: "#A6CEE3",
  249. jy: " →",
  250. kN: "ask",
  251. hr: "开: ",
  252. XIYd: "compare",
  253. CD: "margin-top",
  254. bb: "rgba(64,255,64,0.3)",
  255. Yj: "rgba(255,64,64,0.3)",
  256. yM: "Red Stroke",
  257. ps: " 需要花 <span class=green>",
  258. Jj: "rgba(255, 255, 255, 0.8)",
  259. tp: "#000",
  260. xR: " 价格达到 <span class=red>",
  261. FJ: ".symbol_",
  262. Ii: "apply ",
  263. bzZP: ":visible",
  264. uFgO: "#666",
  265. wq: "rgba(51,160,44,0.8)",
  266. VWdP: "#822B82",
  267. ym: "</div>",
  268. Wc: "hide_cursor",
  269. xH: "from",
  270. SZ: "A$",
  271. Vy: "Arrow Text",
  272. vm: "#trades",
  273. tb: "rgba(255,64,64,0.2)",
  274. sl: "_cost_p",
  275. dd: "ltc",
  276. uF: "found ",
  277. kKjb: "to",
  278. Hk: "Realtime timeout",
  279. Fn: "home",
  280. rK: "#slot_hash_rate",
  281. cP: "<i class=fa-arrow-down>",
  282. Tn: "#1F78B4",
  283. Rn: "top",
  284. gq: "Background Mask",
  285. aE: "</span>.<br>",
  286. BhAp: "rgba(0,0,0,0.4)",
  287. ZL: "http://#{host}:8080/#{path}",
  288. Gg: "<div class=v>",
  289. cY: "#pc_to_bw",
  290. yZ: "_str",
  291. iF: "mousedown",
  292. fN: "mouseup",
  293. yi: "onselectstart",
  294. EO: "selected",
  295. pg: "FullSync",
  296. Mzfh: "change",
  297. hB: "input:first",
  298. dG: ".close",
  299. km: "Border",
  300. iW: "passport",
  301. mx: "#363",
  302. kR: "register",
  303. oV: "premium",
  304. TA: "form",
  305. Ub: "#24B324",
  306. dT: "class",
  307. Uv: "MACD",
  308. CO: "Register",
  309. aZLI: "Login",
  310. rj: "row",
  311. lv: ".content_login",
  312. AC: "macd",
  313. my: "mas",
  314. gD: "trade.BTC",
  315. qN: "Initialize Depth Digger",
  316. ak: "center",
  317. Ts: "#dlg_estimate_trading",
  318. KR: "#0D86FF",
  319. nX: "ShapeHint",
  320. cH: "Shape",
  321. Er: "\n",
  322. zb: "Green Area",
  323. tl: "login",
  324. TZ: "PPCBTC",
  325. RR: "t",
  326. qp: ".premium",
  327. Zk: "days",
  328. VG: "depth",
  329. Vd: "amount",
  330. TT: ".qr",
  331. rO: "&sid=",
  332. bC: ".content_home",
  333. pn: "J",
  334. uQ: "_reach",
  335. zy: "height",
  336. vH: "rgba(227,26,28,0.8)",
  337. bD: "passport_logout",
  338. xB: "<div class=error>",
  339. dI: "min: ",
  340. swYM: "assist",
  341. sQ: "BTCGBP",
  342. slew: "estimate_trading",
  343. OG: "#CCC",
  344. qM: "_cost",
  345. vg: "#990F0F",
  346. zv: "#qr",
  347. NH: "<b>Realtime System only works on IE 10+, chrome, FF</b>",
  348. Cq: "bids",
  349. qj: "line_o",
  350. NF: "&now=",
  351. tc: "LTCUSD",
  352. uA: "json",
  353. jb: "Green Fill",
  354. tT: "dark",
  355. Kpzq: "candle_stick_hlc",
  356. db: "<div class=ok>加载中...</div>",
  357. xj: "light",
  358. TAMK: "session",
  359. CiJy: "#main",
  360. Ik: "retry after 5 seconds",
  361. VV: "#header_outer",
  362. Lb: "text",
  363. AM: "#leftbar_outer",
  364. aZ: "Cross is unlocked.",
  365. Zy: "<br> From ",
  366. ca: "#date",
  367. ZC: "passport_recovery_mail",
  368. hJ: "#periods",
  369. kK: "Stick Line",
  370. SV: "simple",
  371. Wr: ".cond_p",
  372. BW: "------",
  373. cg: "remove",
  374. ux: "macd_params",
  375. TnKt: "Now",
  376. wc: "Initialize Real-time System",
  377. FP: "#asks div",
  378. Bm: "rgba(64,255,64,0.2)",
  379. eg: "#bids div",
  380. ld: "#gbids div",
  381. dB: "#canvas_main",
  382. QI: "account_info",
  383. xmsA: "s",
  384. yS: "onclose",
  385. XooO: "string",
  386. qJ: "Eva",
  387. cR: "apply sdepth",
  388. IX: "3分",
  389. nc: "mousemove",
  390. GA: "15分",
  391. RnYc: ".tablist",
  392. pY: "switch to ",
  393. xSUF: "2小时",
  394. Ym: "K",
  395. pj: "gbids",
  396. cd: "↗",
  397. Uu: "src",
  398. CC: "3天",
  399. dD: "#slot_estimated",
  400. HU: "price_ma_cycles",
  401. Ly: "MA%",
  402. eI: "volume_ma_cycles",
  403. Iq: "</td><td>Extend premium",
  404. dr: "DIF",
  405. MU: "DEA",
  406. UZ: "data",
  407. nU: "#wrapper",
  408. Op: "green",
  409. rx: "wss://websocket.mtgox.com?Currency=",
  410. Rz: "#price",
  411. Rf: "PPCUSD",
  412. AY: "switch failed ",
  413. fl: "BTC",
  414. GZ: "locked",
  415. fI: "line",
  416. yl: "XChange",
  417. uq: "cached txes length: ",
  418. Ba: "LTCBTC",
  419. Ns: "alarm",
  420. Uw: "NMCBTC",
  421. FM: ":",
  422. bB: "POST",
  423. Xm: "NMCUSD",
  424. ZJ: "LTCRUR",
  425. Co: "#canvas_cross",
  426. IXIY: "BTCUSD",
  427. xA: "BTCCAD",
  428. XJ: "BTCEUR",
  429. ch: "li",
  430. jR: "ticker_green",
  431. SX: "Axis Background",
  432. nW: "Coinbase",
  433. OM: "Mt.Gox",
  434. gU: "GET",
  435. gO: "barWidth",
  436. zq: "sorted txes length: ",
  437. ZN: ".dropdown",
  438. xU: "BTCAUD",
  439. sD: "#orderbook .orderbook",
  440. eA: "BTCRUR",
  441. UwTG: "#now",
  442. Dk: "<i class=fa-arrow-up>",
  443. Vg: "r",
  444. OF: "Axis Text",
  445. HT: "Cross",
  446. Kl: "↘",
  447. jH: "+",
  448. QX: "#F63",
  449. Wg: "opened",
  450. qMvr: "#close_settings",
  451. sZ: "Main Text",
  452. MH: "submit",
  453. Kz: "<h>$&</h>",
  454. TW: " bids",
  455. Nt: "Green Stroke",
  456. ou: "ucp",
  457. xhvU: " to ",
  458. xC: "none",
  459. Vk: "fast",
  460. fO: "Background",
  461. hl: "ohlc",
  462. yF: "candle_stick",
  463. Pj: "s ago",
  464. gG: "step",
  465. na: "Red Area",
  466. zR: "realtime opened",
  467. Lx: "...</a>",
  468. bq: "<div class=text>加载中...</div>",
  469. sk: "Red Arrow",
  470. uR: "Minor Arrow",
  471. Gv: "Show QR Code",
  472. hp: "<br/>Tx: <a href=//blockchain.info/tx/",
  473. cu: "卖 <span class=yellow>",
  474. nF: "left",
  475. pv: ".inner .text",
  476. jX: ".inner",
  477. wO: "#notify .inner",
  478. XL: "#0088CC",
  479. Xa: "success",
  480. RA: "cny",
  481. cD: "ticker_red",
  482. Ique: '">',
  483. XK: "←",
  484. cKjf: "D",
  485. kw: "rgba(0,0,0,0.8)",
  486. Gadz: "BTCCNY",
  487. sS: ".from",
  488. vf: "#B2DF8A",
  489. EQ: ".direct_address",
  490. WS: "4小时",
  491. XI: "active",
  492. fp: ".price",
  493. mFqN: "#depth",
  494. qF: "]",
  495. OH: "mode",
  496. ao: "#FDBF6F",
  497. ZF: "#switch_theme",
  498. To: "#gasks",
  499. OJ: "#close_ad",
  500. hP: "XPMBTC",
  501. ts: ".link_",
  502. IN: "Hide QR Code",
  503. qk: "#close_qr",
  504. ug: "#settings",
  505. zyHh: "#btn_settings",
  506. Cibs: "<div class=error>Load history failed></div>",
  507. pC: " button",
  508. uN: "#indicator_",
  509. qdhh: "normal",
  510. Rk: " 价格达到 <span class=green>",
  511. wx: "#333",
  512. aO: "get history trades",
  513. Wu: "a[mode=",
  514. KH: "€",
  515. ndlS: "£",
  516. ZkFf: "¥",
  517. et: "#loading",
  518. jq: "#33A02C",
  519. KA: "฿",
  520. KC: "new",
  521. jZ: "#DF8ADF",
  522. RT: "http://#{decided_host}:8080/#{path}",
  523. DI: "gasks",
  524. Io: "&label=RUIZTON",
  525. PH: "middle",
  526. If: "#slot_difficulty",
  527. Oe: "color",
  528. BU: "#6C6",
  529. PJ: "#F66",
  530. Qo: "inherit",
  531. Zm: "logout",
  532. aesP: ".amount",
  533. Lc: "2d",
  534. xa: "delete",
  535. on: "day",
  536. JN: "$",
  537. Is: "depth.",
  538. fn: "</span> ",
  539. Kx: " is not integer.",
  540. Fw: "GHSBTC",
  541. RD: "Cost",
  542. nr: "right",
  543. mP: "Receive",
  544. rU: ".mode",
  545. fH: "draw",
  546. lP: ".to_text",
  547. hI: ".from_text",
  548. YA: "Sell",
  549. Kt: "Spend",
  550. nN: "ToReceive",
  551. kZ: " target=_blank>",
  552. Ce: "10px Arial, Sans",
  553. Uldv: "years",
  554. LB: ".auto_draw",
  555. OY: "a.mode",
  556. fa: "<div class=ok>You don't have any order yet.</div>",
  557. NV: " %",
  558. Dh: "keydown",
  559. Hgvn: "Depth",
  560. MC: "/kline/ticker.html?sid=",
  561. Lk: "&p=1",
  562. ae: "#asks",
  563. YM: "rgba(255,255,0,0.8)",
  564. eD: " successfully.</div>",
  565. Um: "Realtime",
  566. cz: "user_history",
  567. JB: "trades",
  568. Ps: "mtgox.subscribe",
  569. ldit: "private",
  570. qMoJ: "#sidebar_outer",
  571. Lcwk: "%",
  572. gn: '"',
  573. rT: "#connection",
  574. vE: "#help_connection"
  575. }; !
  576. function() {
  577. var n, e, r, o, i, u, a, l, s, c, f, h, d, p, g, m, v, x, y, w, b, k, _, T, F, C, M, S, P, I, O, A, D, R, B, N, q, H, Z, U, K, L, W, z, G, X, Y, j, E, J, V, Q, tn, nn, en, rn, on, un, an, ln, sn, cn, fn, hn, dn, pn, gn, mn, vn, xn, yn, wn, bn, kn, _n, $n, Tn, Fn, Cn, Mn, Sn, Pn, In, On, An, Dn, Rn, Bn, Nn, qn, Hn, Zn, Un, Kn, Ln, Wn, zn, Gn, Xn, Yn, jn, En, Jn, Vn, Qn, te, ne, ee, re, oe, ie, ue, ae, le, se, ce, fe, he, de, pe, ge, me, ve, xe, ye, we, be, ke, _e, $e, Te, Fe, Ce, Me, Se, Pe, Ie, Oe, Ae, De, Re, Be, Ne, qe, He, Ze, Ue, Ke, Le, We, ze, Ge, Xe = {}.hasOwnProperty,
  578. Ye = [].slice; !
  579. function() {
  580. var n, e, r, o, i;
  581. $(function() {
  582. function u() {
  583. var e, r, o, i, u;
  584. return i = $(this),
  585. i.addClass(t.VW),
  586. e = $(t.im, this),
  587. u = .5 * (i.outerWidth() - e.outerWidth()),
  588. o = i.offset().left + i.outerWidth() - $(window).width(),
  589. o > u && (u = o),
  590. r = i.offset().left + i.outerWidth() - e.outerWidth(),
  591. u > r && (u = r),
  592. e.css(t.nr, u),
  593. n = this
  594. }
  595. function a() {
  596. var e;
  597. return $(this).removeClass(t.VW),
  598. e = !1,
  599. n = null
  600. }
  601. function l() {
  602. var t = this;
  603. return e = !0,
  604. n ? (a.call(n), u.call(this), void 0) : this.showing ? void 0 : (this.showing = !0, setTimeout(function() {
  605. return e && (n && a.call(n), u.call(t)),
  606. t.showing = !1
  607. },
  608. 80))
  609. }
  610. function s() {
  611. var t = this;
  612. return e = !1,
  613. this.hiding ? void 0 : (this.hiding = !0, setTimeout(function() {
  614. return e || a.call(t),
  615. t.hiding = !1
  616. },
  617. 80))
  618. }
  619. var c, f, h;
  620. for (e = !1, n = null, h = $(t.ZN), c = 0, f = h.length; f > c; c++) r = h[c],
  621. o = function() {
  622. var n = this;
  623. return $(t.KD, this).click(function() {
  624. return $(t.im, n).is(t.bzZP) ? a.call(n) : u.call(n)
  625. })
  626. },
  627. o.call(r);
  628. return window.$is_mobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),
  629. $is_mobile ? void 0 : (i = !1, $(t.ZN).hover(function() {
  630. return l.call(this)
  631. },
  632. function() {
  633. return s.call(this)
  634. }))
  635. })
  636. } (),
  637. function() {
  638. var n, e, r;
  639. $(function() {
  640. var o;
  641. o = function(n, e) {
  642. var o, i, u, a, l, s, c, f, h;
  643. return u = $(t.pO + e.id),
  644. c = null != (f = null != (h = $.cookie(e.id)) ? h.toLowerCase() : void 0) ? f: t.vx,
  645. i = !1,
  646. o = null,
  647. s = function() {
  648. var n, s;
  649. n = e.options,
  650. s = [];
  651. for (a in n) Xe.call(n, a) && (l = n[a], s.push(function(n, a) {
  652. var l;
  653. return l = $(t.mv + a + t.qF, u),
  654. l.active = function() {
  655. return l.addClass(t.XI),
  656. e.value = a
  657. },
  658. l.click(function() {
  659. return $(t.ch, u).removeClass(t.XI),
  660. l.active(),
  661. $.cookie(e.id, a, {
  662. expires: 3650,
  663. path: "/"
  664. }),
  665. e.refresh ? window.location.reload() : (r(), world_draw_main())
  666. }),
  667. a === c && (i = !0, l.active()),
  668. a === e[t.xh] && (o = l),
  669. l
  670. } (a, l)));
  671. return s
  672. } (),
  673. i ? void 0 : e[t.xh] && o ? o.active() : s[0].active()
  674. };
  675. for (n in $settings) Xe.call($settings, n) && (e = $settings[n], o(n, e));
  676. return (r = function() {
  677. var n;
  678. return (n = $settings.stick_style.value) === t.fI || n === t.qj ? $(t.rk).show() : $(t.rk).hide()
  679. })(),
  680. null
  681. })
  682. } (),
  683. Te = Mn = Re = Cn = _e = on = Fn = Se = ge = c = ie = $e = o = f = tn = me = ne = ee = re = xe = null,
  684. function() {
  685. var n, e;
  686. return Cn = function(t, n) {
  687. var e, r, o;
  688. return o = !1,
  689. r = t,
  690. e = function() {
  691. function e() {
  692. r > 0 ? Re(16,
  693. function() {
  694. e(r -= 16)
  695. }) : i()
  696. }
  697. function i() {
  698. return n(),
  699. o = !1
  700. }
  701. return r = t,
  702. o ? !0 : (o = !0, e(), void 0)
  703. }
  704. },
  705. Cn.statuses = {},
  706. Te = function() {
  707. return console.log.apply(console, arguments)
  708. },
  709. Mn = function() {
  710. return console.log.apply(console, [new Date].concat(Ye.call(arguments)))
  711. },
  712. Re = function(t, n) {
  713. return setTimeout(n, t)
  714. },
  715. on = function() {
  716. var n, e, r, o, i, u, a, l;
  717. for (r = arguments[0], o = 3 <= arguments.length ? Ye.call(arguments, 1, i = arguments.length - 1) : (i = 1, []), e = arguments[i++], l = [], u = 0, a = e.length; a > u; u++) n = e[u],
  718. typeof n === t.pZ && n.length ? l.push(r.apply(null, Ye.call(o).concat(Ye.call(n)))) : l.push(r.apply(null, Ye.call(o).concat([n])));
  719. return l
  720. },
  721. Se = function(n, e) {
  722. return null == e && (e = t.AI),
  723. (typeof console !== t.xw && null !== console ? console.time: void 0) ? (console.time(e), n(), console.timeEnd(e)) : n()
  724. },
  725. ge = function(t) {
  726. return t[t.length - 1]
  727. },
  728. me = function(t) {
  729. var n;
  730. return null != (n = ge(t)) ? n: {}
  731. },
  732. Fn = function(t) {
  733. var n, e, r;
  734. if (t.length) return t.slice(0);
  735. e = {};
  736. for (n in t) Xe.call(t, n) && (r = t[n], e[n] = r);
  737. return e
  738. },
  739. n = 0,
  740. c = function(t) {
  741. var e, r, o;
  742. for (o = [], e = r = 0; t >= 0 ? t > r: r > t; e = t >= 0 ? ++r: --r) o.push(n++);
  743. return o
  744. },
  745. ie = function() {
  746. var n, e, r, o, i, u;
  747. return n = 1 <= arguments.length ? Ye.call(arguments, 0) : [],
  748. e = n.pop(),
  749. i = n[0],
  750. r = n[1],
  751. null == r && (r = {}),
  752. i[i.length - 1] !== t.LQ && (r.nonce = Date.now()),
  753. typeof XDomainRequest !== t.xw && null !== XDomainRequest ? (i = -1 === i.indexOf(t.LQ) ? i + t.LQ + $.param(r) : i + t.kb + $.param(r), u = new XDomainRequest, u.open(t.gU, i), u.onload = function() {
  754. return r = $.parseJSON(u.responseText),
  755. r ? e(null, r) : e(new Error(t.th), null)
  756. },
  757. u.onerror = function() {
  758. return e(t.AYEC, null)
  759. },
  760. u.ontimeout = function() {},
  761. u.onprogress = function() {},
  762. u.timeout = 6e4, u.send(), u) : (o = $.ajax({
  763. url: i,
  764. type: t.gU,
  765. dataType: t.uA,
  766. timeout: 6e4,
  767. data: r
  768. }), o.done(function(t) {
  769. return e(null, t)
  770. }), o.fail(function(n, r, o) {
  771. var i;
  772. return r === t.AYEC && (r = t.vx),
  773. i = o || r || t.vx,
  774. e(new Error(i), null)
  775. }))
  776. },
  777. $e = function(t) {
  778. var n;
  779. return n = function() {
  780. function n(n) {
  781. return n ? t(o) : r.apply(null, e)
  782. }
  783. var e, r, o, i, u;
  784. i = arguments[0],
  785. e = 3 <= arguments.length ? Ye.call(arguments, 1, u = arguments.length - 1) : (u = 1, []),
  786. r = arguments[u++],
  787. i.apply(null, Ye.call(e).concat([function() {
  788. n((o = arguments[0], e = 2 <= arguments.length ? Ye.call(arguments, 1) : [], o))
  789. }]))
  790. }
  791. },
  792. o = function() {
  793. function t() {
  794. this.push_cbs = [],
  795. this.args = [],
  796. this.shift_cbs = []
  797. }
  798. var n;
  799. return t.prototype.push = function() {
  800. var t, n, e, r;
  801. return t = 2 <= arguments.length ? Ye.call(arguments, 0, r = arguments.length - 1) : (r = 0, []),
  802. n = arguments[r++],
  803. (e = this.shift_cbs.shift()) ? this.process(t, e, n) : (this.push_cbs.push(n), this.args.push(t))
  804. },
  805. t.prototype.unshift = function() {
  806. var t, n, e, r;
  807. return t = 2 <= arguments.length ? Ye.call(arguments, 0, r = arguments.length - 1) : (r = 0, []),
  808. n = arguments[r++],
  809. (e = this.shift_cbs.shift()) ? this.process(t, e, n) : (this.push_cbs.unshift(n), this.args.unshift(t))
  810. },
  811. t.prototype.shift = function(t) {
  812. var n, e;
  813. return (e = this.push_cbs.shift()) ? (n = this.args.shift(), this.process(n, t, e)) : this.shift_cbs.push(t)
  814. },
  815. n = 0,
  816. t.prototype.process = function(t, e, r) {
  817. function o() {
  818. return r(),
  819. e.apply(null, t)
  820. }
  821. 100 === ++n ? (n = 0, Re(0,
  822. function() {
  823. o()
  824. })) : o()
  825. },
  826. t
  827. } (),
  828. e = {},
  829. ne = function() {
  830. var t, n, r, o, i;
  831. return o = arguments[0],
  832. t = 3 <= arguments.length ? Ye.call(arguments, 1, i = arguments.length - 1) : (i = 1, []),
  833. n = arguments[i++],
  834. (r = e[o]) ? r.channel.push(t, n) : void 0
  835. },
  836. ee = function() {
  837. var t, n, r, o, i;
  838. return o = arguments[0],
  839. t = 3 <= arguments.length ? Ye.call(arguments, 1, i = arguments.length - 1) : (i = 1, []),
  840. n = arguments[i++],
  841. (r = e[o]) ? r.channel.unshift(t, n) : void 0
  842. },
  843. re = function(t, n) {
  844. var r;
  845. return (r = e[t]) ? r.actions.push(n) : (r = e[t] = {
  846. actions: [n],
  847. channel: new o,
  848. running: !1
  849. },
  850. function() {
  851. function t() {
  852. r.channel.shift(function() {
  853. function i() {
  854. l++,
  855. u()
  856. }
  857. function u() {
  858. s > l ? (n = c[l], n.apply(null, Ye.call(e).concat([function(t) {
  859. i(t)
  860. }]))) : a()
  861. }
  862. function a() {
  863. t(o)
  864. }
  865. var l, s, c;
  866. e = arguments[0],
  867. c = r.actions,
  868. l = 0,
  869. s = c.length,
  870. u()
  871. })
  872. }
  873. var e, o = this;
  874. t()
  875. } ())
  876. },
  877. xe = function() {
  878. function n() {
  879. o(i,
  880. function() {
  881. return r()
  882. })
  883. }
  884. var e, r, o, i, u, a;
  885. return e = 3 <= arguments.length ? Ye.call(arguments, 0, a = arguments.length - 2) : (a = 0, []),
  886. o = arguments[a++],
  887. r = arguments[a++],
  888. u = 2e3,
  889. i = $e(function(e) {
  890. ne(t.Mz, e, u,
  891. function() {
  892. Re(u,
  893. function() {
  894. return u += 2e3,
  895. u > 2e4 && (u = 2e4),
  896. n()
  897. })
  898. })
  899. }),
  900. n()
  901. },
  902. f = _e,
  903. tn = ie,
  904. Te = Te,
  905. Mn = Mn,
  906. Re = Re,
  907. Cn = Cn,
  908. _e = _e,
  909. on = on,
  910. Fn = Fn,
  911. Se = Se,
  912. ge = ge,
  913. c = c,
  914. ie = ie,
  915. $e = $e,
  916. o = o,
  917. f = f,
  918. tn = tn,
  919. me = me,
  920. ne = ne,
  921. ee = ee,
  922. re = re,
  923. xe = xe,
  924. _e = function() {
  925. var n, e, r, o, i, u;
  926. if (1 === arguments.length) _e(t.vx, arguments[0]);
  927. else {
  928. if (i = arguments[0], r = arguments[1], u = typeof window !== t.xw && null !== window ? window: global) for (o in r) Xe.call(r, o) && (e = r[o], u[i + o] = e);
  929. if (n = typeof module !== t.xw && null !== module ? module.exports: void 0) for (o in r) Xe.call(r, o) && (e = r[o], n[o.replace(/^_/, t.vx)] = e)
  930. }
  931. return this
  932. }
  933. } (),
  934. r = n = e = null,
  935. yn = $n = gn = wn = bn = Tn = un = an = sn = cn = hn = ln = fn = dn = vn = kn = mn = pn = xn = _n = null,
  936. function() {
  937. function o(t) {
  938. var n, e, r, o, i;
  939. for (null == t && (t = []), e = {},
  940. r = [], e[R] = [], o = 0, i = t.length; i > o; o++) n = t[o],
  941. e[R][n] = [];
  942. return e[A] = [],
  943. e[D] = [],
  944. e
  945. }
  946. function i(t) {
  947. var n, e;
  948. return e = t[R],
  949. n = e.length,
  950. e[n] = [],
  951. [n, e[n]]
  952. }
  953. function u(t, n, e) {
  954. var r;
  955. return (null != (r = t[A])[n] ? (r = t[A])[n] : r[n] = []).push(e),
  956. e
  957. }
  958. function a(t, n, e) {
  959. return u(t, n, e),
  960. t[D][e](0),
  961. e
  962. }
  963. function l(t, n, e) {
  964. var r, o, i;
  965. return i = function() {
  966. var t;
  967. t = [];
  968. for (r in e) Xe.call(e, r) && (o = e[r], t.push([r, o]));
  969. return t
  970. } (),
  971. Z(t, n, i)
  972. }
  973. function s(t, n, e) {
  974. var r, o, i;
  975. return i = function() {
  976. var t;
  977. t = [];
  978. for (r in e) Xe.call(e, r) && (o = e[r], t.push([r, o]));
  979. return t
  980. } (),
  981. L(t, n, i)
  982. }
  983. function f(t) {
  984. var n;
  985. return n = function() {
  986. var n, e, r, o, i, u, a, l;
  987. if (arguments[2].length ? (r = arguments[0], l = arguments[1], a = arguments[2], o = arguments[3]) : (r = arguments[0], l = arguments[1], n = arguments[2], u = arguments[3], o = arguments[4], a = [[n, u]]), e = function() {
  988. var e, o, i, s;
  989. for (s = [], e = 0, o = a.length; o > e; e++) i = a[e],
  990. n = i[0],
  991. u = i[1],
  992. t(r, l, n, u),
  993. s.push(n);
  994. return s
  995. } (), i = {},
  996. null == o && (o = !0), o) for (n in e) ! i[n] && o && r[A][n] && l >= 0 && h(r, r[A][n], l),
  997. i[n] = !0;
  998. return e
  999. }
  1000. }
  1001. function h(n, e, r) {
  1002. var o, i, u, a;
  1003. if (i = n[D], typeof e === t.GI) i[e].call(this, r);
  1004. else for (u = 0, a = e.length; a > u; u++) o = e[u],
  1005. h(n, o, r);
  1006. return this
  1007. }
  1008. function d(n, e) {
  1009. var r, o, i, u, a;
  1010. if (o = n[R], typeof e === t.GI) return o[e];
  1011. for (a = [], i = 0, u = e.length; u > i; i++) r = e[i],
  1012. o[r] || (o[r] = []),
  1013. a.push(o[r]);
  1014. return a
  1015. }
  1016. function p(t, n, e) {
  1017. var r, o, i, u, a, l;
  1018. for (r = mn(t, e), u = {},
  1019. i = a = 0, l = e.length; l > a; i = ++a) o = e[i],
  1020. u[e[i]] = r[i][n];
  1021. return u
  1022. }
  1023. function g(t, n) {
  1024. var e, r, o, u, a;
  1025. return u = t[R],
  1026. o = t[D],
  1027. a = i(t),
  1028. e = a[0],
  1029. r = a[1],
  1030. o[e] = function(e) {
  1031. return m(t, e,
  1032. function(t) {
  1033. return r[t] = n(t)
  1034. })
  1035. },
  1036. e
  1037. }
  1038. function m(t, n, e) {
  1039. var r, o, i, u;
  1040. for (o = t[R], r = i = n, u = o[0].length; u >= n ? u > i: i > u; r = u >= n ? ++i: --i) e(r);
  1041. return null
  1042. }
  1043. function v(t, n, e) {
  1044. var r, o, u, a, l, s;
  1045. return a = t[R],
  1046. u = t[D],
  1047. s = i(t),
  1048. r = s[0],
  1049. o = s[1],
  1050. l = a[n],
  1051. u[r] = function(t) {
  1052. var n, r, i, u, a, s, c, f;
  1053. for (r = l.length, i = l.slice(t - e, t), u = 0, s = 0, f = i.length; f > s; s++) a = i[s],
  1054. u += a;
  1055. for (n = c = t; r >= t ? r > c: c > r; n = r >= t ? ++c: --c) a = l[n],
  1056. i.length >= e && (u -= i.shift()),
  1057. u += a,
  1058. i.push(a),
  1059. o[n] = u / i.length;
  1060. return this
  1061. },
  1062. r
  1063. }
  1064. function x(t, n, e) {
  1065. var r, o, u, a, l, s;
  1066. return a = t[R],
  1067. u = t[D],
  1068. s = i(t),
  1069. r = s[0],
  1070. o = s[1],
  1071. l = a[n],
  1072. u[r] = function(n) {
  1073. return m(t, n,
  1074. function(t) {
  1075. var n, r, i;
  1076. return n = l[t],
  1077. r = null != (i = o[t - 1]) ? i: n,
  1078. r = (2 * n + (e - 1) * r) / (e + 1),
  1079. o[t] = r
  1080. })
  1081. },
  1082. r
  1083. }
  1084. function y(t, n, e, r) {
  1085. var o, u, a, l, s, c;
  1086. return l = t[R],
  1087. a = t[D],
  1088. c = i(t),
  1089. o = c[0],
  1090. u = c[1],
  1091. s = l[n],
  1092. a[o] = function(n) {
  1093. return m(t, n,
  1094. function(t) {
  1095. var n, o, i;
  1096. return n = s[t],
  1097. o = null != (i = u[t - 1]) ? i: n,
  1098. o = (r * n + (e - r) * o) / e,
  1099. u[t] = o
  1100. })
  1101. },
  1102. o
  1103. }
  1104. function w(t, n, e) {
  1105. var r, o, u, a, l;
  1106. return a = t[R],
  1107. u = t[D],
  1108. l = i(t),
  1109. r = l[0],
  1110. o = l[1],
  1111. u[r] = function(r) {
  1112. return m(t, r,
  1113. function(t) {
  1114. var r, i;
  1115. return i = Math.max(t - e, 0),
  1116. r = t + 1,
  1117. o[t] = Math.min.apply(Math, a[n].slice(i, r))
  1118. })
  1119. },
  1120. r
  1121. }
  1122. function b(t, n, e) {
  1123. var r, o, u, a, l;
  1124. return a = t[R],
  1125. u = t[D],
  1126. l = i(t),
  1127. r = l[0],
  1128. o = l[1],
  1129. u[r] = function(r) {
  1130. return m(t, r,
  1131. function(t) {
  1132. var r, i;
  1133. return i = Math.max(t - e, 0),
  1134. r = t + 1,
  1135. o[t] = Math.max.apply(Math, a[n].slice(i, r))
  1136. })
  1137. },
  1138. r
  1139. }
  1140. function k(t, n, e, r, o) {
  1141. function a(t) {
  1142. return [t, _[t]]
  1143. }
  1144. var l, s, c, f, d, p, v, y, w, b, k, _, $, T, F, C, M;
  1145. return null == e && (e = 12),
  1146. null == r && (r = 26),
  1147. null == o && (o = 9),
  1148. _ = t[R],
  1149. w = t[D],
  1150. $ = a(x(t, n, e)),
  1151. s = $[0],
  1152. k = $[1],
  1153. T = a(x(t, n, r)),
  1154. l = T[0],
  1155. b = T[1],
  1156. F = a(g(t,
  1157. function(t) {
  1158. return k[t] - b[t]
  1159. })),
  1160. f = F[0],
  1161. y = F[1],
  1162. C = a(x(t, f, o)),
  1163. c = C[0],
  1164. v = C[1],
  1165. M = i(t),
  1166. d = M[0],
  1167. p = M[1],
  1168. w[d] = function(n) {
  1169. return h(t, [s, l, f, c], n),
  1170. m(t, n,
  1171. function(t) {
  1172. return p[t] = 2 * (y[t] - v[t])
  1173. })
  1174. },
  1175. w[d](0),
  1176. u(t, n, d),
  1177. [f, c, d]
  1178. }
  1179. function _(t, n, e, r, o, a) {
  1180. function l(t) {
  1181. return X.push(t),
  1182. [t, j[t]]
  1183. }
  1184. var s, c, f, d, p, m, x, k, _, $, T, F, C, M, S, P, I, O, A, B, N, q, H, Z, U, K, L, W, z, G, X, Y, j, E, J, V, Q, tn, nn, en, rn, on, un, an, ln, sn, cn, fn;
  1185. return null == e && (e = 14),
  1186. null == r && (r = 14),
  1187. null == o && (o = 3),
  1188. null == a && (a = 3),
  1189. j = t[R],
  1190. q = t[D],
  1191. X = [],
  1192. A = j[n],
  1193. E = l(g(t,
  1194. function(t) {
  1195. var n;
  1196. return null != (n = A[t - 1]) ? n: A[t]
  1197. })),
  1198. k = E[0],
  1199. U = E[1],
  1200. rn = l(g(t,
  1201. function(t) {
  1202. return Math.max(A[t] - U[t], 0)
  1203. })),
  1204. s = rn[0],
  1205. S = rn[1],
  1206. on = l(g(t,
  1207. function(t) {
  1208. return Math.abs(A[t] - U[t])
  1209. })),
  1210. f = on[0],
  1211. I = on[1],
  1212. un = l(y(t, s, e, 1)),
  1213. c = un[0],
  1214. P = un[1],
  1215. an = l(y(t, f, e, 1)),
  1216. d = an[0],
  1217. O = an[1],
  1218. ln = l(g(t,
  1219. function(t) {
  1220. return 0 === O[t] ? 100 : 100 * (P[t] / O[t])
  1221. })),
  1222. M = ln[0],
  1223. Y = ln[1],
  1224. sn = l(w(t, M, r)),
  1225. _ = sn[0],
  1226. K = sn[1],
  1227. cn = l(b(t, M, r)),
  1228. m = cn[0],
  1229. H = cn[1],
  1230. fn = l(g(t,
  1231. function(t) {
  1232. return Y[t] - K[t]
  1233. })),
  1234. T = fn[0],
  1235. W = fn[1],
  1236. J = l(g(t,
  1237. function(t) {
  1238. return H[t] - K[t]
  1239. })),
  1240. C = J[0],
  1241. G = J[1],
  1242. V = l(v(t, T, o)),
  1243. $ = V[0],
  1244. L = V[1],
  1245. Q = l(v(t, C, o)),
  1246. F = Q[0],
  1247. z = Q[1],
  1248. tn = l(g(t,
  1249. function(t) {
  1250. return 0 === z[t] ? 100 : 100 * (L[t] / z[t])
  1251. })),
  1252. x = tn[0],
  1253. Z = tn[1],
  1254. nn = l(v(t, x, a)),
  1255. p = nn[0],
  1256. N = nn[1],
  1257. en = i(t),
  1258. M = en[0],
  1259. B = en[1],
  1260. q[M] = function(n) {
  1261. return h(t, X, n)
  1262. },
  1263. q[M](0),
  1264. u(t, n, M),
  1265. [x, p]
  1266. }
  1267. function $(t, n, e, r, o) {
  1268. function a(t) {
  1269. return A.push(t),
  1270. [t, N[t]]
  1271. }
  1272. var l, s, c, f, d, p, m, v, x, k, _, $, T, F, C, M, S, P, I, O, A, B, N, q, H, Z, U, K, L, W;
  1273. return f = n[0],
  1274. x = n[1],
  1275. l = n[2],
  1276. null == e && (e = 9),
  1277. null == r && (r = 3),
  1278. null == o && (o = 3),
  1279. N = t[R],
  1280. T = t[D],
  1281. A = [],
  1282. O = N[x],
  1283. _ = N[l],
  1284. C = N[f],
  1285. q = a(w(t, x, e)),
  1286. v = q[0],
  1287. I = q[1],
  1288. H = a(b(t, f, e)),
  1289. c = H[0],
  1290. F = H[1],
  1291. Z = a(g(t,
  1292. function(t) {
  1293. return F[t] - I[t] < 1e-8 ? 100 : 100 * ((_[t] - I[t]) / (F[t] - I[t]))
  1294. })),
  1295. k = Z[0],
  1296. B = Z[1],
  1297. U = a(y(t, k, r, 1)),
  1298. p = U[0],
  1299. S = U[1],
  1300. K = a(y(t, p, o, 1)),
  1301. s = K[0],
  1302. $ = K[1],
  1303. L = a(g(t,
  1304. function(t) {
  1305. return 3 * S[t] - 2 * $[t]
  1306. })),
  1307. d = L[0],
  1308. M = L[1],
  1309. W = i(t),
  1310. m = W[0],
  1311. P = W[1],
  1312. T[m] = function(n) {
  1313. return h(t, A, n)
  1314. },
  1315. T[m](0),
  1316. u(t, f, m),
  1317. u(t, x, m),
  1318. u(t, l, m),
  1319. [p, s, d]
  1320. }
  1321. function T(t, n) {
  1322. var e, r, o, a, l, s, c, f, h, d, p, g, v, x;
  1323. for (a = n[0], r = n[1], o = n[2], e = n[3], d = t[R], c = t[D], h = [], v = i(t), l = v[0], s = v[1], c[l] = function(n) {
  1324. return m(t, n,
  1325. function(t) {
  1326. return s[t] = parseFloat(((d[r][t] + d[o][t] + d[e][t]) / 3).toFixed(8)),
  1327. s[t]
  1328. })
  1329. },
  1330. c[l](0), x = arguments[1], p = 0, g = x.length; g > p; p++) f = x[p],
  1331. u(t, f, l);
  1332. return [l]
  1333. }
  1334. function F(t, n) {
  1335. var e, r, o, a, l, s, c, f, h, d, p, g, v, x;
  1336. for (a = n[0], r = n[1], o = n[2], e = n[3], d = t[R], c = t[D], h = [], v = i(t), l = v[0], s = v[1], c[l] = function(n) {
  1337. return m(t, n,
  1338. function(t) {
  1339. return s[t] = parseFloat(((d[r][t] + d[o][t]) / 2).toFixed(8)),
  1340. s[t]
  1341. })
  1342. },
  1343. c[l](0), x = arguments[1], p = 0, g = x.length; g > p; p++) f = x[p],
  1344. u(t, f, l);
  1345. return [l]
  1346. }
  1347. function C(t, n) {
  1348. return a(t, n, v.apply(null, arguments))
  1349. }
  1350. function M(t, n) {
  1351. return a(t, n, x.apply(null, arguments))
  1352. }
  1353. function S(t, n) {
  1354. var e, r, o, u;
  1355. return o = t[R],
  1356. u = i(t),
  1357. e = u[0],
  1358. r = u[1],
  1359. o[e] = n,
  1360. e
  1361. }
  1362. function P() {
  1363. var n, e, r, o, i, u, a, l;
  1364. for (r = arguments[0], o = 3 <= arguments.length ? Ye.call(arguments, 1, i = arguments.length - 1) : (i = 1, []), e = arguments[i++], l = [], u = 0, a = e.length; a > u; u++) n = e[u],
  1365. typeof n === t.pZ && n.length ? l.push(r.apply(null, Ye.call(o).concat(Ye.call(n)))) : l.push(r.apply(null, Ye.call(o).concat([n])));
  1366. return l
  1367. }
  1368. function I() {
  1369. return P.apply(null, [d].concat(Ye.call(arguments)))
  1370. }
  1371. function O(t, n, e, r) {
  1372. var o;
  1373. return o = d(t, r),
  1374. o.slice(n, +e + 1 || 9e9)
  1375. }
  1376. var A, D, R, B, N, q, H, Z, U, K, L;
  1377. return U = c(3),
  1378. R = U[0],
  1379. A = U[1],
  1380. D = U[2],
  1381. r = R,
  1382. n = A,
  1383. e = D,
  1384. L = f(N = function(t, n, e, r) {
  1385. return t[R][e][n] = r
  1386. }),
  1387. q = f(function(t, n, e) {
  1388. return t[R][e].push(n)
  1389. }),
  1390. Z = f(B = function(t, n, e, r) {
  1391. return t[R][e].splice(n, 0, r)
  1392. }),
  1393. H = f(function(t, n, e) {
  1394. return t[R][e].splice(n, 1)
  1395. }),
  1396. K = L,
  1397. yn = o,
  1398. $n = L,
  1399. gn = H,
  1400. wn = Z,
  1401. bn = l,
  1402. Tn = s,
  1403. un = S,
  1404. an = M,
  1405. sn = C,
  1406. cn = k,
  1407. hn = _,
  1408. ln = $,
  1409. fn = F,
  1410. dn = T,
  1411. vn = p,
  1412. kn = K,
  1413. mn = d,
  1414. pn = P,
  1415. xn = I,
  1416. _n = O
  1417. } (),
  1418. Dn = qn = Nn = An = Rn = On = Sn = Pn = In = Bn = null,
  1419. i = a = u = l = null,
  1420. function() {
  1421. function n(t, n) {
  1422. return t[0] - n[0]
  1423. }
  1424. function e(t) {
  1425. var n;
  1426. return n = {
  1427. group: t
  1428. },
  1429. r(n),
  1430. n
  1431. }
  1432. function r(t) {
  1433. return t[x] = new Q({
  1434. compare: n
  1435. }),
  1436. t[w] = new Q({
  1437. compare: n
  1438. }),
  1439. t[y] = new Q({
  1440. compare: n
  1441. }),
  1442. t[b] = new Q({
  1443. compare: n
  1444. }),
  1445. t
  1446. }
  1447. function o(t, n, e) {
  1448. switch (n) {
  1449. case w:
  1450. return Math.floor(e[k] / t.group) * t.group;
  1451. case x:
  1452. return Math.ceil(e[k] / t.group) * t.group
  1453. }
  1454. }
  1455. function s(t, n, e) {
  1456. var r, i;
  1457. return t[n].insert(e),
  1458. e[$] ? (e = [o(t, n, e), e[$]], i = n === w ? b: y, (r = t[i].find(e)) ? r[$] += e[$] : (r = e, t[i].insert(r))) : void 0
  1459. }
  1460. function f(n, e, r) {
  1461. var i, u;
  1462. if (r && (n[e][t.xa](r), r[$])) return r = [o(n, e, r), r[$]],
  1463. u = e === w ? b: y,
  1464. i = n[u].find(r),
  1465. i && (i[$] -= r[$], i[$] < 1e-12) ? n[u][t.xa](i) : void 0
  1466. }
  1467. function h(n, e) {
  1468. var r, o, i, u, a, l, c, h, d, p, g;
  1469. if (p = e.type_str, c = e.price_int, h = e.total_volume_int, o = e.now, d = p === t.cK ? w: x, a = n[d], g = parseInt(h), l = parseInt(c), i = [l, g, o], u = a.find([l]), f(n, d, u), g && s(n, d, i), d === w) for (; (r = n[x].get(0)) && r[k] <= l;) f(n, x, r);
  1470. else for (; (r = n[w].get( - 1)) && r[k] >= l;) f(n, w, r);
  1471. return n
  1472. }
  1473. function d(n, e, r) {
  1474. var o, i, u, a, l, c, h, d;
  1475. if (null == r && (r = !0), c = e[0], o = e[1], d = e[2], h = d === t.cK ? w: x, l = n[h], u = [c, o], a = l.find([c]), f(n, h, a), o && s(n, h, u), !r) return n;
  1476. if (h === w) for (; (i = n[x].get(0)) && i[k] <= c;) f(n, x, i);
  1477. else for (; (i = n[w].get( - 1)) && i[k] >= c;) f(n, w, i);
  1478. return n
  1479. }
  1480. function p(n, e) {
  1481. var r, o, i, u, a, l;
  1482. if (u = e.price, r = e.amount, a = e.trade_type, a === t.cK) for (l = x, i = n[l]; r > 1e-12 && (o = n[x].get(0)) && o[0] <= u;) {
  1483. if (o[1] > r) {
  1484. f(n, l, o),
  1485. o[1] = o[1] - r,
  1486. s(n, l, o);
  1487. break
  1488. }
  1489. f(n, x, o),
  1490. r -= o[1]
  1491. } else for (l = w; r > 1e-12 && (o = n[w].get( - 1)) && o[0] >= u;) {
  1492. if (o[1] > r) {
  1493. f(n, l, o),
  1494. o[1] = o[1] - r,
  1495. s(n, l, o);
  1496. break
  1497. }
  1498. f(n, w, o),
  1499. r -= o[1]
  1500. }
  1501. return n
  1502. }
  1503. function g(t, n) {
  1504. var e, r, o;
  1505. for (e = 0; (o = t[x].get(0)) && o[k] < n;)++e,
  1506. f(t, x, o);
  1507. for (r = 0; (o = t[w].get( - 1)) && o[k] > n;)++r,
  1508. f(t, w, o);
  1509. return [e, r]
  1510. }
  1511. function m(t, n, e, r) {
  1512. var o, i, u, a, l, s;
  1513. for (o = 0, i = 0, l = 0, s = 0, u = 0; (a = t[x].at(u)) && a[k] <= e;) a[_] >= r ? (++u, ++l) : (++o, f(t, x, a));
  1514. for (u = -1; (a = t[w].at(u)) && a[k] >= n;) a[_] >= r ? (--u, ++s) : (++i, f(t, w, a));
  1515. return [o, i, l, s]
  1516. }
  1517. function v(t) {
  1518. var n, e, r, o;
  1519. return n = t[x],
  1520. r = t[w],
  1521. e = n.slice( - 11, -1),
  1522. o = r.slice(0, 10)
  1523. }
  1524. var x, y, w, b, k, _, $, T, F;
  1525. return T = c(4),
  1526. w = T[0],
  1527. x = T[1],
  1528. b = T[2],
  1529. y = T[3],
  1530. F = [0, 1, 2],
  1531. k = F[0],
  1532. $ = F[1],
  1533. _ = F[2],
  1534. Dn = e,
  1535. qn = h,
  1536. Nn = d,
  1537. An = v,
  1538. Rn = s,
  1539. On = f,
  1540. Sn = g,
  1541. Pn = m,
  1542. In = r,
  1543. Bn = p,
  1544. i = x,
  1545. a = w,
  1546. u = y,
  1547. l = b
  1548. } (),
  1549. Jn = Qn = Vn = Xn = Gn = te = En = null,
  1550. Hn = Zn = null,
  1551. Kn = Un = Wn = zn = Ln = Yn = jn = null,
  1552. function() {
  1553. function n(t, n, e, o, i, u) {
  1554. var a, l, s;
  1555. return s = Ue(n, o, i),
  1556. a = s[0],
  1557. l = s[1],
  1558. l > e ? r(t, a, e, u, l - e) : r(t, a, l, u, e - l)
  1559. }
  1560. function e(t, n, e, o, i, u) {
  1561. var a, l, s;
  1562. return a = Ke(n, e),
  1563. l = Le(n, o),
  1564. s = Le(n, i),
  1565. r(t, a, s, u, l - s)
  1566. }
  1567. function r(t, n, e, r, o) {
  1568. return 0 > o && (e += o, o = -o),
  1569. 0 === o && (o = 1),
  1570. t.fillStyle === t.strokeStyle ? t.fillRect(n, e, r, o) : o > 1 ? (t.fillRect(n, e, r, o), t.strokeRect(n + .5, e + .5, r - 1, o - 1)) : 1 === o ? (t.beginPath(), t.moveTo(n, e + .5), t.lineTo(n + r, e + .5), t.stroke()) : void 0
  1571. }
  1572. function o(t, n, e, r) {
  1573. var o, i, u, a, l, s, c;
  1574. for (t.beginPath(), u = l = 0, s = e.length; s > l; u = ++l) a = e[u],
  1575. c = Ue(n, u, a),
  1576. o = c[0],
  1577. i = c[1],
  1578. r && (o += r),
  1579. u ? t.lineTo(o, i) : t.moveTo(o, i);
  1580. return t.stroke()
  1581. }
  1582. function i(t, n, e, r, o) {
  1583. return t.beginPath(),
  1584. t.moveTo(n, e),
  1585. t.lineTo(n, e - o),
  1586. t.lineTo(n + .866 * o, e - .5 * o),
  1587. t.fill()
  1588. }
  1589. function u(t, n, e, r, o) {
  1590. return t.beginPath(),
  1591. t.moveTo(n, e),
  1592. t.lineTo(n, e - o),
  1593. t.lineTo(n - .866 * o, e - .5 * o),
  1594. t.fill()
  1595. }
  1596. function a(t, n, e, r, o, i) {
  1597. var u, a, l;
  1598. return u = Ke(n, e),
  1599. a = Le(n, r),
  1600. l = Le(n, o),
  1601. i && (u += i),
  1602. t.beginPath(),
  1603. t.moveTo(u + .5, l),
  1604. t.lineTo(u + .5, a),
  1605. t.stroke()
  1606. }
  1607. function l(t, n, e, r) {
  1608. return t.beginPath(),
  1609. t.moveTo(e, n),
  1610. t.lineTo(r, n),
  1611. t.stroke()
  1612. }
  1613. function s(t, n, e, r) {
  1614. return t.beginPath(),
  1615. t.moveTo(n, e),
  1616. t.lineTo(n, r),
  1617. t.stroke()
  1618. }
  1619. function c(t, n, e) {
  1620. var r, o, i, u, a, s, c, f;
  1621. for (r = Fn(n[nn]), u = Fn(n[en]), n = Ge(r, u), s = e(r, u), c = 0, f = s.length; f > c; c++) a = s[c],
  1622. i = Le(n, a),
  1623. o = r.w,
  1624. t.fillText(a, o - 8, i + .5),
  1625. l(t, i + .5, r.w - 4, r.w);
  1626. return null
  1627. }
  1628. function f(t, n) {
  1629. return c(t, n,
  1630. function(t, n) {
  1631. var e, r, o, i, u, a, l;
  1632. for (r = Math.floor(t.h / 32), u = n.h / r, i = n.y, l = [], e = a = 0; r >= 0 ? r >= a: a >= r; e = r >= 0 ? ++a: --a) o = i + e * u,
  1633. l.push(parseFloat(o.toPrecision(5)));
  1634. return l
  1635. })
  1636. }
  1637. function h(t, n) {
  1638. return c(t, n,
  1639. function(t, n) {
  1640. var e, r, o, i, u, a, l, s, c;
  1641. for (o = Math.abs(t.h / 32), a = n.h / o, c = function() {
  1642. var t, n, o, i;
  1643. for (o = [1, 2, 5], i = [], t = 0, n = o.length; n > t; t++) e = o[t],
  1644. r = a / e,
  1645. s = Math.ceil(Math.log(r) / Math.log(10)).toFixed(2),
  1646. s = Math.pow(10, s),
  1647. s = e * s,
  1648. i.push(s);
  1649. return i
  1650. } (), l = Math.min.apply(Math, c), i = Math.ceil(n.y / l) * l, u = []; i < n.y + n.h;) u.push(parseFloat(i.toPrecision(5))),
  1651. i += l;
  1652. return u
  1653. }),
  1654. null
  1655. }
  1656. function d(n, e, r, o) {
  1657. var i, u, a, s, c, f, h, d;
  1658. for (i = Fn(e[nn]), s = Fn(e[en]), e = Ge(i, s, e[rn]), f = o(i, s), n.textAlign = t.ak, h = 0, d = f.length; d > h; h++) c = f[h],
  1659. a = Le(e, c),
  1660. u = i.x,
  1661. r && r !== t.Lb || n.fillText(c, u + 50, a + .5),
  1662. r && r !== t.mg || (l(n, a + .5, u, u + 6), l(n, a + .5, u + i.w - 6, u + i.w));
  1663. return n.textAlign = t.nF,
  1664. null
  1665. }
  1666. function p(t, n) {
  1667. return d(t, n, null,
  1668. function(t, n) {
  1669. var e, r, o, i, u, a, l;
  1670. for (r = Math.floor(t.h / 32), u = n.h / r, i = n.y, l = [], e = a = 0; r >= 0 ? r >= a: a >= r; e = r >= 0 ? ++a: --a) o = i + e * u,
  1671. l.push(parseFloat(o.toPrecision(5)));
  1672. return l
  1673. })
  1674. }
  1675. function g(t, n, e) {
  1676. return d(t, n, null,
  1677. function() {
  1678. return e
  1679. })
  1680. }
  1681. function m(t, n, e) {
  1682. return d(t, n, e,
  1683. function(t, n) {
  1684. var e, r, o, i, u, a, l, s, c;
  1685. for (o = Math.abs(t.h / 32), a = n.h / o, c = function() {
  1686. var t, n, o, i;
  1687. for (o = [1, 2, 5], i = [], t = 0, n = o.length; n > t; t++) e = o[t],
  1688. r = a / e,
  1689. s = Math.ceil(Math.log(r) / Math.log(10)).toFixed(2),
  1690. s = Math.pow(10, s),
  1691. s = e * s,
  1692. i.push(s);
  1693. return i
  1694. } (), l = Math.min.apply(Math, c), i = Math.ceil(n.y / l) * l, u = []; i < n.y + n.h;) u.push(parseFloat(i.toPrecision(5))),
  1695. i += l;
  1696. return u
  1697. }),
  1698. null
  1699. }
  1700. function v(t, n) {
  1701. var e;
  1702. return t.save(),
  1703. t.beginPath(),
  1704. e = Fn(n[nn]),
  1705. e.y += 8,
  1706. e.h -= 16,
  1707. t.moveTo(e.x, e.y),
  1708. t.lineTo(e.x + e.w, e.y),
  1709. t.lineTo(e.x + e.w, e.y + e.h),
  1710. t.lineTo(e.x, e.y + e.h),
  1711. t.clip()
  1712. }
  1713. function x(t, n, e) {
  1714. return v(t, n),
  1715. e(),
  1716. t.restore()
  1717. }
  1718. return Jn = o,
  1719. Qn = n,
  1720. Vn = e,
  1721. Xn = r,
  1722. Gn = l,
  1723. te = a,
  1724. En = s,
  1725. Hn = f,
  1726. Zn = h,
  1727. Kn = p,
  1728. Un = m,
  1729. Wn = v,
  1730. zn = x,
  1731. Ln = g,
  1732. Yn = u,
  1733. jn = i
  1734. } (),
  1735. Q = null,
  1736. function() {
  1737. var n;
  1738. return n = function() {
  1739. function n(n) {
  1740. this.options = null != n ? n: {},
  1741. this.id = ++u,
  1742. this.min = 0,
  1743. this.max = 0,
  1744. this.count = 0,
  1745. this.type = i,
  1746. this.total = 0,
  1747. this.parent = null,
  1748. this.children = [],
  1749. this.next = null,
  1750. this.prev = null,
  1751. this.compare = this.options[t.XIYd],
  1752. this.multimap = this.options[t.PA],
  1753. null == this.compare && (this.compare = function(t, n) {
  1754. return t - n
  1755. })
  1756. }
  1757. var e, r, o, i, u;
  1758. return e = 8,
  1759. r = e << 1,
  1760. o = 0,
  1761. i = 1,
  1762. u = 0,
  1763. n.prototype.insert_value_ = function(t) {
  1764. var n, e, r, o, i, u, a;
  1765. for (e = this.count, n = this.children, r = a = 0; e >= 0 ? e > a: a > e; r = e >= 0 ? ++a: --a) {
  1766. if (u = n[r], i = this.compare(u, t), 0 === i) {
  1767. if (this.multimap) break;
  1768. return
  1769. }
  1770. if (i > 0) break
  1771. }
  1772. if (0 === r) for (this.min = t, o = this; (o = o.parent) && this.compare(o.min, t) > 0;) o.min = t;
  1773. if (r === e) for (this.max = t, o = this; (o = o.parent) && this.compare(o.max, t) < 0;) o.max = t;
  1774. for (this.children.splice(r, 0, t), this.count += 1, o = this; o;) o.total += 1,
  1775. o = o.parent;
  1776. return this.rebuild_(),
  1777. this
  1778. },
  1779. n.prototype.insert_node_ = function(t, n) {
  1780. var e, r, o;
  1781. for (e = this.count, r = o = 0; (e >= 0 ? e > o: o > e) && this.children[r].min !== t; r = e >= 0 ? ++o: --o);
  1782. return n.parent = this,
  1783. this.count += 1,
  1784. this.children.splice(r + 1, 0, n),
  1785. this.rebuild_()
  1786. },
  1787. n.prototype.find_node_ = function(t) {
  1788. var n, e, r, i, u;
  1789. for (i = this; i.type === o;) {
  1790. if (n = i.children, e = i.count, this.compare(t, n[0].min) <= 0) r = 0;
  1791. else if (this.compare(t, n[e - 1].max) >= 0) r = e - 1;
  1792. else for (r = u = 0; (e >= 0 ? e > u: u > e) && !(this.compare(n[r].max, t) >= 0); r = e >= 0 ? ++u: --u);
  1793. i = n[r]
  1794. }
  1795. return i
  1796. },
  1797. n.prototype.has = function(t) {
  1798. var n;
  1799. return n = this.find_node_(t),
  1800. -1 !== n.children.indexOf(t)
  1801. },
  1802. n.prototype.replace_value = function(t) {
  1803. var n, e, r, o, i, u;
  1804. for (r = this.find_node_(t), n = r.children, e = i = 0, u = n.length; u > i; e = ++i) o = n[e],
  1805. 0 === this.compare(o, t) && (n[e] = t);
  1806. return this
  1807. },
  1808. n.prototype.get_node_ = function(t) {
  1809. var n, e, r, i, u;
  1810. if (r = this, t >= this.total) return [null, null];
  1811. if (0 > t) return [null, null];
  1812. for (; r.type === o;) for (e = r.children, i = 0, u = e.length; u > i; i++) {
  1813. if (n = e[i], !(t >= n.total)) {
  1814. r = n;
  1815. break
  1816. }
  1817. t -= n.total
  1818. }
  1819. return [r, t]
  1820. },
  1821. n.prototype.set_min_ = function(t) {
  1822. var n, e;
  1823. for (e = this, n = this.min; e && 0 === this.compare(e.min, n);) e.min = t,
  1824. e = e.parent;
  1825. return this
  1826. },
  1827. n.prototype.set_max_ = function(t) {
  1828. var n, e;
  1829. for (e = this, n = this.max; e && 0 === this.compare(e.max, n);) e.max = t,
  1830. e = e.parent;
  1831. return this
  1832. },
  1833. n.prototype.inc_total_ = function() {
  1834. var t;
  1835. for (t = this; t;) t.total += 1,
  1836. t = t.parent;
  1837. return this
  1838. },
  1839. n.prototype.dec_total_ = function() {
  1840. var t;
  1841. for (t = this; t;) t.total -= 1,
  1842. t = t.parent;
  1843. return this
  1844. },
  1845. n.prototype.clean_node_ = function() {
  1846. var t, n;
  1847. return this.parent ? (this.parent.delete_node_(this), this.type === i ? (null != (t = this.prev) && (t.next = this.next), null != (n = this.next) ? n.prev = this.prev: void 0) : void 0) : this.type = i
  1848. },
  1849. n.prototype.delete_node_ = function(t) {
  1850. var n;
  1851. return n = this.children.indexOf(t),
  1852. this.children.splice(n, 1),
  1853. this.count -= 1,
  1854. 0 === this.count ? this.clean_node_() : (0 === n && this.set_min_(this.children[0].min), n === this.count ? this.set_max_(this.children[this.count - 1].max) : void 0)
  1855. },
  1856. n.prototype.delete_value_ = function(t) {
  1857. var n, e;
  1858. return n = this.children,
  1859. e = this.indexOf_(t),
  1860. -1 !== e && (n.splice(e, 1), this.count -= 1, this.dec_total_(), 0 === this.count ? this.clean_node_() : (0 === e && this.set_min_(n[0]), e === this.count && this.set_max_(n[this.count - 1]))),
  1861. this
  1862. },
  1863. n.prototype.rebuild_ = function() {
  1864. var t, n, u;
  1865. if (! (this.count < r)) return null != this.parent ? (n = this.slice_(e, r - 1), n.parent = this.parent, this.count = e, this.total = this.total - n.total, this.children.splice(e, e), this.max = this.type === i ? this.children[e - 1] : this.children[e - 1].max, this.parent.insert_node_(this.min, n), this.type === i && (this.next && (this.next.prev = n), n.next = this.next, this.next = n)) : (t = this.slice_(0, e - 1), u = this.slice_(e, r - 1), t.parent = this, u.parent = this, t.next = u, u.prev = t, this.count = 2, this.children = [t, u], this.type = o),
  1866. this
  1867. },
  1868. n.prototype.slice_ = function(t, e) {
  1869. var r, o, u, a, l, s, c, f;
  1870. if (u = e - t + 1, a = new n(this.options), a.count = u, a.type = this.type, o = this.children, this.type === i) a.min = o[t],
  1871. a.max = o[e],
  1872. a.children = o.slice(t, +e + 1 || 9e9),
  1873. a.total = u;
  1874. else {
  1875. for (a.min = o[t].min, a.max = o[e].max, a.children = o.slice(t, +e + 1 || 9e9), l = 0, f = a.children, s = 0, c = f.length; c > s; s++) r = f[s],
  1876. r.parent = a,
  1877. l += r.total;
  1878. a.total = l
  1879. }
  1880. return a
  1881. },
  1882. n.prototype.atom = function() {
  1883. var t;
  1884. for (t = this; t.type === o;) t = t.children[0];
  1885. return t
  1886. },
  1887. n.prototype.indexOf_ = function(t) {
  1888. var n, e, r, o, i, u;
  1889. for (u = this.children, n = o = 0, i = u.length; i > o; n = ++o) {
  1890. if (r = u[n], e = this.compare(r, t), 0 === e) return n;
  1891. if (e > 0) return - 1
  1892. }
  1893. return - 1
  1894. },
  1895. n.prototype.insert = function(t) {
  1896. var n;
  1897. return n = this.find_node_(t),
  1898. n.insert_value_(t),
  1899. this
  1900. },
  1901. n.prototype[t.xa] = function(t) {
  1902. var n;
  1903. return n = this.find_node_(t),
  1904. n.delete_value_(t)
  1905. },
  1906. n.prototype.replace = function(n) {
  1907. return this[t.xa](n),
  1908. this.insert(n)
  1909. },
  1910. n.prototype.get = function(t) {
  1911. var n, e, r;
  1912. return 0 > t && (t += this.size()),
  1913. r = this.get_node_(t),
  1914. n = r[0],
  1915. e = r[1],
  1916. n ? n.children[e] : null
  1917. },
  1918. n.prototype.at = function(t) {
  1919. var n, e, r;
  1920. return 0 > t && (t += this.size()),
  1921. r = this.get_node_(t),
  1922. n = r[0],
  1923. e = r[1],
  1924. n ? n.children[e] : null
  1925. },
  1926. n.prototype.find = function(t) {
  1927. return this.find_all(t)[0]
  1928. },
  1929. n.prototype.find_all = function(t) {
  1930. var n, e, r, o, i, u, a;
  1931. if (o = [], n = this.find_node_(t), this.compare(t, n.min) < 0) return [];
  1932. if (this.compare(t, n.max) > 0) return [];
  1933. for (a = n.children, i = 0, u = a.length; u > i; i++) if (r = a[i], e = this.compare(r, t), 0 === e) o.push(r);
  1934. else if (e > 0) break;
  1935. return o
  1936. },
  1937. n.prototype.slice = function(t, n) {
  1938. var e, r, o, i, u;
  1939. if (null == n && (n = this.total - 1), 0 > t && (t += this.total), 0 > n && (n += this.total), 0 > t && (t = 0), n >= this.total && (n = this.total - 1), u = this.get_node_(t), r = u[0], i = u[1], !r) return [];
  1940. for (o = n - t + 1, e = []; o && r;) i < r.count ? (e.push(r.children[i++]), --o) : (r = r.next, i = 0);
  1941. return e
  1942. },
  1943. n.prototype.flatten = function() {
  1944. var t, n, e, r, o, i;
  1945. for (r = [], o = this.atom(); o;) {
  1946. for (n = o.count, t = o.children, e = i = 0; n >= 0 ? n > i: i > n; e = n >= 0 ? ++i: --i) r.push(t[e]);
  1947. o = o.next
  1948. }
  1949. return r
  1950. },
  1951. n.prototype.dump = function(n) {
  1952. var e, r, o, u, a, l, s;
  1953. for (null == n && (n = 0), o = process.stdout, e = u = 0, s = this.count; s >= 0 ? s > u: u > s; e = s >= 0 ? ++u: --u) if (this.type === i) {
  1954. for (r = a = 0; n >= 0 ? n > a: a > n; r = n >= 0 ? ++a: --a) o.write(t.PP);
  1955. o.write(this.children[e] + t.PP)
  1956. } else this.children[e].dump(n + 1);
  1957. for (r = l = 0; n >= 0 ? n > l: l > n; r = n >= 0 ? ++l: --l) o.write(t.PP);
  1958. return o.write(t.dI + this.min + t.CI + this.max + t.Ci + this.count + t.fo + this.total + t.Er),
  1959. this
  1960. },
  1961. n.prototype.delete_if = function() {},
  1962. n.prototype.size = function() {
  1963. return this.total
  1964. },
  1965. n
  1966. } (),
  1967. Q = n,
  1968. null != _e && (Q = Q),
  1969. typeof module !== t.xw && null !== module ? module.exports = Q: void 0
  1970. } (),
  1971. ce = fe = he = ue = ae = le = de = pe = se = null,
  1972. s = null,
  1973. oe = null,
  1974. function() {
  1975. function n(t) {
  1976. var n;
  1977. return n = t.getHours()
  1978. }
  1979. function e(n) {
  1980. var e;
  1981. return e = n.getMinutes(),
  1982. t.vx + e + t.sn
  1983. }
  1984. function r(t) {
  1985. return f[t.getMonth()]
  1986. }
  1987. function o(n) {
  1988. var e, r;
  1989. return r = n.getMonth(),
  1990. e = n.getDate(),
  1991. t.vx + f[r] + t.PP + e
  1992. }
  1993. function i(n) {
  1994. return n.getHours() + t.FM + n.getMinutes()
  1995. }
  1996. function u(n) {
  1997. return oe(n.getHours()) + t.FM + oe(n.getMinutes()) + t.FM + oe(n.getSeconds())
  1998. }
  1999. function a(n) {
  2000. var e, r, o, i, u;
  2001. return e = n.getFullYear(),
  2002. u = oe(n.getMonth() + 1),
  2003. r = oe(n.getDate()),
  2004. o = oe(n.getHours()),
  2005. i = oe(n.getMinutes()),
  2006. t.vx + e + t.Hm + u + t.Hm + r + t.PP + o + t.FM + i
  2007. }
  2008. function l(n) {
  2009. var e, r, o, i, u, a, l, s;
  2010. return r = n.getFullYear(),
  2011. a = n.getMonth() + 1,
  2012. o = n.getDate(),
  2013. i = oe(n.getHours()),
  2014. u = oe(n.getMinutes()),
  2015. l = oe(n.getSeconds()),
  2016. s = h[n.getDay()],
  2017. e = f[n.getMonth()],
  2018. t.vx + s + t.ir + o + t.PP + e + t.PP + i + t.FM + u + t.FM + l
  2019. }
  2020. function c(n) {
  2021. var e, r, o, i, u, a, l, s;
  2022. for (i = [[86400, 86400, t.on], [3600, 3600, t.uZ], [60, 60, t.xW], [0, 1, t.MA]], a = 0, l = i.length; l > a; a++) if (s = i[a], e = s[0], r = s[1], o = s[2], n >= e) return u = parseFloat((n / r).toFixed(1)),
  2023. u > 1 ? u + t.PP + o + t.Pj: u + t.PP + o + t.ql;
  2024. return null
  2025. }
  2026. var f, h;
  2027. return f = t.dL.split(t.PP),
  2028. h = t.Za.split(t.PP),
  2029. oe = function(n) {
  2030. return n = n.toString(),
  2031. 1 === n.length ? t.ay + n: n
  2032. },
  2033. ce = n,
  2034. fe = e,
  2035. he = r,
  2036. ue = o,
  2037. ae = a,
  2038. le = l,
  2039. de = i,
  2040. pe = u,
  2041. se = c,
  2042. s = h,
  2043. oe = oe
  2044. } (),
  2045. be = ke = ye = we = null,
  2046. function() {
  2047. function t(n, e) {
  2048. var r;
  2049. return n[0] && n[0].length ? (n = function() {
  2050. var o, i, u;
  2051. for (u = [], o = 0, i = n.length; i > o; o++) r = n[o],
  2052. u.push(t(r, e));
  2053. return u
  2054. } (), t(n, e)) : e.apply(null, n)
  2055. }
  2056. function n(n) {
  2057. return t(n, Math.max)
  2058. }
  2059. function e(n) {
  2060. return t(n, Math.min)
  2061. }
  2062. function r(t) {
  2063. var e, r;
  2064. return r = function() {
  2065. var n, o, i;
  2066. for (i = [], n = 0, o = t.length; o > n; n++) r = t[n],
  2067. i.push(function() {
  2068. var t, n, o;
  2069. for (o = [], t = 0, n = r.length; n > t; t++) e = r[t],
  2070. o.push(Math.abs(e));
  2071. return o
  2072. } ());
  2073. return i
  2074. } (),
  2075. n(r)
  2076. }
  2077. return be = ke = ye = null,
  2078. be = n,
  2079. ke = e,
  2080. ye = r,
  2081. we = t
  2082. } (),
  2083. h = x = b = null,
  2084. k = m = x = w = d = v = y = _ = p = g = null,
  2085. Me = Fe = Ce = null,
  2086. function() {
  2087. function t() {
  2088. var t, n;
  2089. return n = {},
  2090. t = yn(a),
  2091. n[o] = t,
  2092. n[F] = 0,
  2093. n
  2094. }
  2095. function n(t, n) {
  2096. var e, c, h, d, p, g, m, v, x, y, w, b;
  2097. if (e = t[o], n = Fn(n), n[E] = n[E] - n[E] % t[F], y = r(t, n[E]), h = y[0], d = y[1], h) return p = vn(e, d, a),
  2098. p[l] > n[J] && (p[T] = n[j], p[l] = n[J]),
  2099. p[f] < n[J] && (p[i] = n[j], p[f] = n[J]),
  2100. p[s] < n[j] && (p[s] = n[j]),
  2101. p[$] > n[j] && (p[$] = n[j]),
  2102. p[M] += n[X],
  2103. Tn(e, d, p);
  2104. for (p = {},
  2105. p[C] = n[E], w = [l, f], g = 0, v = w.length; v > g; g++) c = w[g],
  2106. p[c] = n[J];
  2107. for (b = [T, i, s, $], m = 0, x = b.length; x > m; m++) c = b[m],
  2108. p[c] = n[j];
  2109. return p[M] = n[X],
  2110. p[u] = new Date(1e3 * p[C]),
  2111. bn(e, d, p)
  2112. }
  2113. function e(n, e) {
  2114. var r, a, c, h, d, p, g, m, v, x, y, w, b;
  2115. for (c = t(), r = c[o], h = p = 0, v = e.length; v > p; h = ++p) {
  2116. for (d = e[h], d = Fn(d), d[C] = parseInt(d[C]), w = [T, i, s, $], g = 0, x = w.length; x > g; g++) a = w[g],
  2117. d[a] = parseFloat(d[a]);
  2118. for (b = [C, l, f], m = 0, y = b.length; y > m; m++) a = b[m],
  2119. d[a] = parseInt(d[a]);
  2120. d[M] = parseFloat(d[M]),
  2121. d[u] = new Date(1e3 * d[C]),
  2122. bn(r, h, d)
  2123. }
  2124. return c[F] = parseInt(n),
  2125. c
  2126. }
  2127. function r(t, n) {
  2128. var e, r, i;
  2129. if (e = t[o], !(i = mn(e, C))) return [!1, 0];
  2130. for (r = i.length; r--;) if (! (i[r] > n)) {
  2131. if (i[r] < n) break;
  2132. return [!0, r]
  2133. }
  2134. return [!1, r + 1]
  2135. }
  2136. var o, i, u, a, l, s, f, $, T, F, C, M, S, P;
  2137. return S = c(3),
  2138. o = S[0],
  2139. f = S[1],
  2140. F = S[2],
  2141. h = o,
  2142. x = f,
  2143. b = F,
  2144. P = [0, 1, 2, 3, 4, 5, 6, 7, 8],
  2145. C = P[0],
  2146. l = P[1],
  2147. f = P[2],
  2148. T = P[3],
  2149. i = P[4],
  2150. s = P[5],
  2151. $ = P[6],
  2152. M = P[7],
  2153. u = P[8],
  2154. a = P,
  2155. k = C,
  2156. m = l,
  2157. x = f,
  2158. w = T,
  2159. d = i,
  2160. v = s,
  2161. y = $,
  2162. _ = M,
  2163. p = u,
  2164. g = a,
  2165. Me = t,
  2166. Fe = n,
  2167. Ce = e
  2168. } (),
  2169. J = j = X = E = Y = V = null,
  2170. Ne = Be = null,
  2171. function() {
  2172. function t(t) {
  2173. var n;
  2174. return n = {},
  2175. n[u] = parseInt(t.tid),
  2176. n[o] = parseFloat(t.price),
  2177. n[e] = parseFloat(t.amount),
  2178. n[i] = parseInt(t.date),
  2179. n[r] = Date.now(),
  2180. n[a] = t.trade_type,
  2181. n
  2182. }
  2183. function n(t) {
  2184. var n;
  2185. return n = {},
  2186. n[u] = parseInt(t.tid),
  2187. n[o] = parseFloat(t.price),
  2188. n[e] = parseFloat(t.amount),
  2189. n[i] = parseInt(t.date),
  2190. n[r] = Date.now(),
  2191. n[a] = t.trade_type,
  2192. n
  2193. }
  2194. var e, r, o, i, u, a, l;
  2195. return l = c(7),
  2196. u = l[0],
  2197. o = l[1],
  2198. e = l[2],
  2199. i = l[3],
  2200. r = l[4],
  2201. a = l[5],
  2202. J = u,
  2203. j = o,
  2204. X = e,
  2205. E = i,
  2206. Y = r,
  2207. V = a,
  2208. Ne = t,
  2209. Be = n
  2210. } (),
  2211. Ge = He = Ze = qe = Ke = Le = Ue = We = ze = null,
  2212. nn = en = rn = null,
  2213. function() {
  2214. return function() {
  2215. function t(t, n, e) {
  2216. var r;
  2217. return null == e && (e = !1),
  2218. r = [],
  2219. r[f] = Fn(t),
  2220. r[h] = Fn(n),
  2221. r[d] = e,
  2222. r
  2223. }
  2224. function n(t, n) {
  2225. var e, r;
  2226. return e = t[f],
  2227. r = t[h],
  2228. (n - r.x) / r.w * e.w + e.x
  2229. }
  2230. function e(t, n) {
  2231. var e, r, o, i, u, a;
  2232. return e = t[f],
  2233. r = t[h],
  2234. t[d] ? (a = r.y, u = r.y + r.h, i = 0, o = Math.log(u / a), n = Math.log(n / a), (n - i) / o * e.h + e.y) : (n - r.y) / r.h * e.h + e.y
  2235. }
  2236. function r(t, r, o) {
  2237. return [n(t, r), e(t, o)]
  2238. }
  2239. function o(t, e) {
  2240. return Math.round(n(t, e))
  2241. }
  2242. function i(t, n) {
  2243. return Math.round(e(t, n))
  2244. }
  2245. function u(t, n, e) {
  2246. return [o(t, n), i(t, e)]
  2247. }
  2248. function a(t, e) {
  2249. return Math.round(n(t, e)) + .5
  2250. }
  2251. function l(t, n) {
  2252. return Math.round(e(t, n)) + .5
  2253. }
  2254. function s(t, n, e) {
  2255. return [a(t, n), l(t, e)]
  2256. }
  2257. var f, h, d, p;
  2258. return p = c(3),
  2259. f = p[0],
  2260. h = p[1],
  2261. d = p[2],
  2262. Ge = t,
  2263. He = a,
  2264. Ze = l,
  2265. qe = s,
  2266. Ke = o,
  2267. Le = i,
  2268. Ue = u,
  2269. We = r,
  2270. ze = e,
  2271. nn = f,
  2272. en = h,
  2273. rn = d
  2274. } ()
  2275. } (),
  2276. function() {
  2277. $(function(t) {
  2278. return t
  2279. })
  2280. } (),
  2281. function() {
  2282. return window.$theme_dark = {
  2283. Background: t.Zz,
  2284. "Background Mask": t.Bh,
  2285. "Main Text": t.OG,
  2286. "Minor Text": t.wx,
  2287. "Highlight Text": t.ln,
  2288. Border: t.wx,
  2289. Link: t.TD,
  2290. "Activated Link": t.QX,
  2291. "Green Stroke": t.gx,
  2292. "Green Fill": t.xS,
  2293. "Red Stroke": t.Iy,
  2294. "Red Fill": t.vg,
  2295. "Axis Background": t.Bh,
  2296. "Axis Key Text": t.gnTC,
  2297. "Axis Text": t.hS,
  2298. "Green Arrow": t.qO,
  2299. "Red Arrow": t.fIQY,
  2300. "Arrow Text": t.YM,
  2301. Cross: t.UP,
  2302. "Stick Line": t.Vv,
  2303. Colors: [t.JE, t.ao, t.jZ, t.Tn, t.vf, t.LX],
  2304. "Green Area": t.bb,
  2305. "Red Area": t.Yj,
  2306. "Minor Arrow": t.MO,
  2307. Shape: t.tX,
  2308. ShapeHint: "rgba(255,255,255,0.6)"
  2309. },
  2310. window.$theme_light = {
  2311. Background: t.gnTC,
  2312. "Background Mask": t.Jj,
  2313. "Main Text": t.wx,
  2314. "Minor Text": t.OG,
  2315. "Highlight Text": t.tp,
  2316. Border: t.OG,
  2317. Link: t.KR,
  2318. "Activated Link": t.Xo,
  2319. "Green Stroke": t.jq,
  2320. "Green Fill": t.jq,
  2321. "Red Stroke": t.yP,
  2322. "Red Fill": t.yP,
  2323. "Axis Background": t.Jj,
  2324. "Axis Key Text": t.wx,
  2325. "Axis Text": t.uFgO,
  2326. "Red Arrow": t.wq,
  2327. "Green Arrow": t.vH,
  2328. "Arrow Text": t.tp,
  2329. Cross: t.BhAp,
  2330. "Stick Line": t.XL,
  2331. Colors: [t.Ub, t.Lg, t.jZ, t.VWdP, t.vf, t.LX],
  2332. "Green Area": t.Bm,
  2333. "Red Area": t.tb,
  2334. "Minor Arrow": t.hS,
  2335. Shape: t.kw,
  2336. ShapeHint: "rgba(0,0,0,0.6)"
  2337. }
  2338. } (),
  2339. function() {
  2340. /* var n, e, r, o, i, u;
  2341. $(function() {
  2342. function a() {
  2343. Re(6e4,
  2344. function() {
  2345. ie( $host + t.iK + n,//diffi
  2346. function() {
  2347. r = arguments[0],
  2348. e = arguments[1],
  2349. !r && (null != e ? e.ok: void 0) ? (o.text(e.difficulty), u.text(e.hash_rate_504), a(i.text(e.estimated))) : a()
  2350. })
  2351. })
  2352. }
  2353. n = -1 !== $symbol.indexOf(t.dd) ? t.xm: t.Wy,
  2354. o = $(t.If),
  2355. i = $(t.dD),
  2356. u = $(t.rK),
  2357. a()
  2358. })*/
  2359. } (),
  2360. H = W = N = D = z = A = O = S = C = U = q = I = M = G = F = K = Z = L = R = B = T = P = null,
  2361. Ae = Pe = De = Ie = Oe = null,
  2362. function() {
  2363. function n(t, n, e) {
  2364. var r;
  2365. switch (null == n && (n = []), null == e && (e = j), r = {},
  2366. r[un] = t, r[Q] = n, r[m] = e, r[en] = V, r[tn] = !0, t) {
  2367. case w:
  2368. r[tn] = !1;
  2369. break;
  2370. case b:
  2371. r[tn] = !1;
  2372. break;
  2373. case y:
  2374. r[tn] = !1
  2375. }
  2376. return r
  2377. }
  2378. function e() {}
  2379. function r(n, e, r, o) {
  2380. var i, u, a, l, s, c, f, h, d, p, g, x, y, w, b, k, _, $, T, F;
  2381. if (k = n[Q], _ = k[0], f = _[0], p = _[1], $ = k[1], h = $[0], g = $[1], e.beginPath(), i = r[nn], h === f) {
  2382. for (i = r[nn], l = y = 0, b = o.length; b > y && (c = o[l], c !== f); l = ++y);
  2383. u = We(r, l, 0)[0],
  2384. e.moveTo(u + n[ln] + .5, i.y),
  2385. e.lineTo(u + n[ln] + .5, i.y + i.h)
  2386. } else for (n[m] === E && (p = Math.log(p), g = Math.log(g)), s = (g - p) / (h - f), c = 0, x = [], l = w = 0, T = n[v]; T >= 0 ? T >= w: w >= T; l = T >= 0 ? ++w: --w) null != o[l] ? c = o[l] : c += n[rn],
  2387. d = s * (c - f) + p,
  2388. n[m] === E && (d = Math.exp(d)),
  2389. F = We(r, l, d),
  2390. u = F[0],
  2391. a = F[1],
  2392. a > -1e4 && a < 2 * i.y && e.lineTo(u + n[ln], a);
  2393. return e.strokeStyle = n[on][t.cH],
  2394. e.stroke()
  2395. }
  2396. function o() {}
  2397. function i() {}
  2398. function u(n) {
  2399. return function(e, r, o) {
  2400. var i, u, a, l, s, c, f, h, d, p, g, m, v, x, y;
  2401. for (v = e[Q], x = v[0], c = x[0], d = x[1], y = v[1], f = y[0], p = y[1], i = o[nn], g = 0, m = n.length; m > g; g++) h = n[g],
  2402. a = d + (p - d) * h,
  2403. u = Ze(o, a),
  2404. r.beginPath(),
  2405. r.moveTo(i.x, u),
  2406. r.lineTo(i.x + i.w, u),
  2407. r.strokeStyle = e[on][t.nX],
  2408. r.stroke(),
  2409. r.textAlign = t.nF,
  2410. r.textBaseline = t.LA,
  2411. r.font = t.mT,
  2412. l = t.vx + (100 * h).toFixed(1) + t.cC + a.toPrecision(5),
  2413. s = r.measureText(l).width,
  2414. r.fillStyle = e[on][t.gq],
  2415. r.fillRect(i.x, u - 1 - 4 - 10, s + 8, 14),
  2416. r.fillStyle = e[on][t.cH],
  2417. r.fillText(l, i.x + 4, u - 1 - 2);
  2418. return this
  2419. }
  2420. }
  2421. function a() {}
  2422. function l() {}
  2423. function s() {}
  2424. function f(n, e, r, o) {
  2425. var i, u, a, l, s, c, f, h, d, p, g, x, y, w, b, k, _, $, T, F, C, M;
  2426. if (_ = n[Q], $ = _[0], f = $[0], p = $[1], T = _[1], h = T[0], g = T[1], i = r[nn], h === f) {
  2427. for (e.beginPath(), i = r[nn], l = x = 0, b = o.length; b > x && (c = o[l], c !== f); l = ++x);
  2428. u = We(r, l, 0)[0],
  2429. e.moveTo(u + n[ln] + .5, i.y),
  2430. e.lineTo(u + n[ln] + .5, i.y + i.h),
  2431. e.strokeStyle = n[on][t.cH],
  2432. e.stroke()
  2433. } else for (n[m] === E && (p = Math.log(p), g = Math.log(g)), c = 0, s = (g - p) / (h - f), F = [.382, .5, .618, 1], y = 0, k = F.length; k > y; y++) {
  2434. for (Te = F[y], e.beginPath(), l = w = 0, C = n[v]; C >= 0 ? C >= w: w >= C; l = C >= 0 ? ++w: --w) null != o[l] ? c = o[l] : c += n[rn],
  2435. h > f && f > c || f > h && c > f || (d = Te * s * (c - f) + p, n[m] === E && (d = Math.exp(d)), M = We(r, l, d), u = M[0], a = M[1], a > -1e4 && a < 2 * i.y && e.lineTo(u + n[ln], a));
  2436. e.strokeStyle = n[on][t.cH],
  2437. e.stroke()
  2438. }
  2439. return this
  2440. }
  2441. function h(t, n, e, r) {
  2442. return sn[t[un]][t[Q].length](t, n, e, r)
  2443. }
  2444. function d(t, n) {
  2445. var e;
  2446. return e = t[Q],
  2447. e.push(n)
  2448. }
  2449. function p(n) {
  2450. var e;
  2451. return e = n[Q],
  2452. e.length === sn[n[un]][t.MCXr] ? !0 : (e.push(e[e.length - 1]), !1)
  2453. }
  2454. function g(t, n) {
  2455. var e;
  2456. return e = t[Q],
  2457. 0 === e.length ? e.push(n) : e.splice( - 1, 1, n),
  2458. t
  2459. }
  2460. var m, v, x, y, w, b, k, _, $, X, Y, j, E, J, V, Q, tn, en, rn, on, un, an, ln, sn, cn, fn, hn, dn;
  2461. return cn = c(12),
  2462. un = cn[0],
  2463. Q = cn[1],
  2464. J = cn[2],
  2465. m = cn[3],
  2466. _ = cn[4],
  2467. en = cn[5],
  2468. ln = cn[6],
  2469. v = cn[7],
  2470. rn = cn[8],
  2471. tn = cn[9],
  2472. on = cn[10],
  2473. fn = c(2),
  2474. V = fn[0],
  2475. k = fn[1],
  2476. hn = c(2),
  2477. j = hn[0],
  2478. E = hn[1],
  2479. dn = c(7),
  2480. Y = dn[0],
  2481. an = dn[1],
  2482. X = dn[2],
  2483. $ = dn[3],
  2484. w = dn[4],
  2485. x = dn[5],
  2486. y = dn[6],
  2487. b = dn[7],
  2488. sn = {},
  2489. sn[Y] = {
  2490. 1 : e,
  2491. 2 : r,
  2492. m: 2
  2493. },
  2494. sn[an] = {
  2495. 1 : o,
  2496. m: 1
  2497. },
  2498. sn[X] = {
  2499. 1 : i,
  2500. m: 1
  2501. },
  2502. sn[w] = {
  2503. 1 : function() {},
  2504. 2 : u([0, .236, .382, .5, .618, 1]),
  2505. m: 2
  2506. },
  2507. sn[b] = {
  2508. 1 : function() {},
  2509. 2 : u([0, .236, .382, .5, .618, 1, 1.618, 2.618, 4.236]),
  2510. m: 2
  2511. },
  2512. sn[$] = {
  2513. 1 : a,
  2514. 2 : l,
  2515. m: 2
  2516. },
  2517. sn[y] = {
  2518. 1 : s,
  2519. 2 : f,
  2520. m: 2
  2521. },
  2522. H = Q,
  2523. W = un,
  2524. N = J,
  2525. D = Y,
  2526. z = an,
  2527. A = X,
  2528. O = $,
  2529. S = w,
  2530. C = x,
  2531. U = en,
  2532. q = V,
  2533. I = k,
  2534. M = y,
  2535. G = ln,
  2536. F = v,
  2537. K = rn,
  2538. Z = tn,
  2539. L = on,
  2540. R = j,
  2541. B = E,
  2542. T = m,
  2543. P = b,
  2544. Ae = n,
  2545. Pe = d,
  2546. De = g,
  2547. Ie = p,
  2548. Oe = h
  2549. } (),
  2550. function() {
  2551. var n, e = this;
  2552. $(function() {
  2553. function r(t) {
  2554. var n, e, r, o;
  2555. return o = t.outerWidth(),
  2556. n = t.outerHeight(),
  2557. r = ($(window).height() - n) / 3,
  2558. e = ($(window).width() - o) / 2,
  2559. t.css({
  2560. left: e,
  2561. top: r
  2562. })
  2563. }
  2564. function o(t) {
  2565. var n, e, r, o, i, u, a, l, s, c, f, h;
  2566. for (o = t.match(/(\d+)-(\d+)-(\d+) (\d+):(\d+):([\d\.]+)([\+\-]\d+)/), r = c = 0, f = o.length; f > c; r = ++c) u = o[r],
  2567. o[r] = parseInt(u, 10);
  2568. return h = o,
  2569. s = h[0],
  2570. a = h[1],
  2571. o = h[2],
  2572. n = h[3],
  2573. e = h[4],
  2574. r = h[5],
  2575. i = h[6],
  2576. l = h[7],
  2577. t = new Date(a, o - 1, n, e, r, i),
  2578. t.setMinutes(t.getMinutes() - t.getTimezoneOffset() - 60 * l),
  2579. t
  2580. }
  2581. function i(n, e, r) {
  2582. /* var o;
  2583. return o = $.ajax({
  2584. url: t.bg + n,
  2585. type: t.bB,
  2586. dataType: t.uA,
  2587. data: e
  2588. }),
  2589. o.done(function(t) {
  2590. return (null != t ? t.ok: void 0) ? r(t) : (null != t ? t.error: void 0) ? r(t) : r({
  2591. error: 1,
  2592. reason: "Unknown error"
  2593. })
  2594. }),
  2595. o.fail(function(n, e, o) {
  2596. var i;
  2597. return e === t.AYEC && (e = t.vx),
  2598. i = o || e || t.Kp,
  2599. r({
  2600. error: 1,
  2601. reason: i
  2602. })
  2603. })*/
  2604. }
  2605. function u(e, r) {
  2606. return n.target = e,
  2607. n.start_x = r.pageX,
  2608. n.start_y = r.pageY,
  2609. n.target_x = parseInt(e.css(t.nF)),
  2610. n.target_y = parseInt(e.css(t.Rn)),
  2611. !1
  2612. }
  2613. function a() {
  2614. return n = {},
  2615. !1
  2616. }
  2617. function l(e) {
  2618. var r, o, i, u, a;
  2619. if (n.target) return i = n.target,
  2620. r = n.start_x,
  2621. o = n.start_y,
  2622. u = n.target_x,
  2623. a = n.target_y,
  2624. i.css(t.nF, u + e.pageX - r),
  2625. i.css(t.Rn, a + e.pageY - o),
  2626. !1
  2627. }
  2628. function s(n) {
  2629. var e, o, i, l, s, c, f, h;
  2630. for (o = $(t.cb + n.name), i = [], e = [], $(t.RnYc, o).on(t.iF,
  2631. function(t) {
  2632. return u(o, t)
  2633. }), $(t.RnYc, o).on(t.fN,
  2634. function(t) {
  2635. return a(o, t)
  2636. }), $(t.RnYc, o).on(t.yi,
  2637. function() {
  2638. return ! 1
  2639. }), h = n.tabs, s = function(n) {
  2640. var u, a;
  2641. return i.push(a = $(t.ts + n)),
  2642. e.push(u = $(t.QF + n, o)),
  2643. a.click(function() {
  2644. var n, l, s, c, f;
  2645. for (l = 0, c = e.length; c > l; l++) n = e[l],
  2646. n.hide();
  2647. for (s = 0, f = i.length; f > s; s++) n = i[s],
  2648. n.removeClass(t.EO);
  2649. return a.addClass(t.EO),
  2650. $(t.gv, u).hide(),
  2651. u.trigger(t.Mzfh),
  2652. u.show(),
  2653. o.show(),
  2654. o.created || (r(o), o.created = !0),
  2655. $(t.hB, u).focus(),
  2656. !0
  2657. })
  2658. },
  2659. c = 0, f = h.length; f > c; c++) l = h[c],
  2660. s(l);
  2661. return $(t.dG, o).click(function() {
  2662. return o.hide()
  2663. }),
  2664. $(window).on(t.KFPH,
  2665. function() {
  2666. return r(o)
  2667. }),
  2668. o
  2669. }
  2670. return n = {},
  2671. $(window).on(t.nc,
  2672. function(t) {
  2673. return l(t)
  2674. }),
  2675. function() {
  2676. var n, e, r, o, u, a, l;
  2677. for (n = {
  2678. name: t.iW,
  2679. tabs: [t.tl, t.kR, t.oV]
  2680. },
  2681. e = s(n), l = [t.kR, t.tl], o = function(n) {
  2682. var r, o, u, a;
  2683. return r = $(t.QF + n, e),
  2684. o = $(t.TA, r),
  2685. a = $(t.gm),
  2686. u = $(t.gv, r),
  2687. o.bind(t.MH,
  2688. function() {
  2689. return function() {
  2690. var e, a, l;
  2691. u.fadeOut(t.Vk),
  2692. a = o.serializeArray(),
  2693. i(t.pp + n, a,
  2694. function() {
  2695. return l = arguments[0],
  2696. l.error ? ($(t.gv, r).text(l.reason).fadeIn(t.Vk), $(o[0][l.name]).focus()) : (e = n === t.kR ? t.CO: t.aZLI, r.append(t.nG + e + t.eD), o.hide(), setTimeout(function() {
  2697. return o.unbind(t.MH),
  2698. o[0].action = window.location.href,
  2699. o[0].method = t.bB,
  2700. o.submit()
  2701. },
  2702. 400))
  2703. })
  2704. } (),
  2705. !1
  2706. })
  2707. },
  2708. u = 0, a = l.length; a > u; u++) r = l[u],
  2709. o(r);
  2710. return $(t.Oc).click(function() {
  2711. var n, e;
  2712. return n = $(t.lv),
  2713. e = $(t.TA, n),
  2714. function() {
  2715. var r;
  2716. i(t.ZC, e.serializeArray(),
  2717. function() {
  2718. return r = arguments[0],
  2719. r.error ? ($(t.gv, n).text(r.reason).fadeIn(t.Vk), $(e[0][r.name]).focus()) : $(t.gv, n).html(t.vx).append($(t.nG).html(t.oz + r.email + t.Sf)).fadeIn(t.Vk)
  2720. })
  2721. } ()
  2722. })
  2723. } (),
  2724. function() {
  2725. function n() {
  2726. var n, e, u, a, l, s, c, f, h;
  2727. i(t.QI, {},
  2728. function() {
  2729. var i, d, p;
  2730. if (c = arguments[0], !c.error) {
  2731. for (c.is_premium === t.RR ? (u = ae(o(c.expires_on)), a = ((o(c.expires_on).getTime() - Date.now()) / 86400 / 1e3).toFixed(0), f = a > 1 ? t.xmsA: t.vx, $(t.qp, r).html(t.tF + u + t.VF + a + t.KF + f + t.OB)) : $(t.qp, r).html(t.QG), n = $(t.Wd, r), p = $(t.EQ), i = 0, d = p.length; d > i; i++) l = p[i],
  2732. s = $(l),
  2733. e = s.attr(t.Vd),
  2734. h = t.TR + c.address + t.aU + e + t.Io,
  2735. h = t.TR + c.address + t.uO,
  2736. s.attr(t. in , h);
  2737. return n.html(t.vx + c.address),
  2738. $(t.TT, r).attr(t.UZ, $(t.EQ).attr(t. in ))
  2739. }
  2740. })
  2741. }
  2742. var e, r;
  2743. return e = {
  2744. name: t.ou,
  2745. tabs: [t.Fn, t.oV, t.Jv, t.Zm]
  2746. },
  2747. r = s(e),
  2748. $(t.Ul, r).change(function() {
  2749. var n, e, r;
  2750. e = $(this),
  2751. e.html(t.db),
  2752. i(t.cz, {},
  2753. function() {
  2754. var i, u, a, l, s, c, f, h, d;
  2755. return r = arguments[0],
  2756. r.error ? e.html(t.Cibs) : (n = function() {
  2757. var n, e, p, g, m, v, x;
  2758. for (m = r.orders, x = [], n = 0, p = m.length; p > n; n++) switch (f = m[n], l = f.info, i = ae(o(f.created_at)), u = ae(o(l.expires_on)), c = ae(o(l.old_expires_on)), l.type) {
  2759. case "premium":
  2760. case "premium_direct":
  2761. for (v = [t.Uldv, t.vS, t.Zk], e = 0, g = v.length; g > e; e++) a = v[e],
  2762. s = l[a],
  2763. s ? (d = s > 1 ? t.xmsA: t.vx, l[a + t.yZ] = s >= 1e4 ? t.PP + parseInt(s) + t.PP + a.slice(0, -1) + d: t.PP + parseFloat(s.toPrecision(4)) + t.PP + a.slice(0, -1) + d) : l[a + t.yZ] = t.vx;
  2764. h = t.vx,
  2765. l.remark && (h += t.Ov + l.remark),
  2766. l.tx_hash && (h += t.hp + l.tx_hash + t.kZ + l.tx_hash.slice(0, 25) + t.Lx),
  2767. x.push(t.CF + i + t.Iq + l.years_str + l.months_str + l.days_str + t.Zy + c + t.xhvU + u + h + t.fm);
  2768. break;
  2769. default:
  2770. x.push(void 0)
  2771. }
  2772. return x
  2773. } (), n.length ? e.html(t.ppwy + n.join(t.vx) + t.Pc) : e.html(t.fa))
  2774. })
  2775. }),
  2776. $(t.bC, r).change(n),
  2777. n(),
  2778. $(t.xb).click(function() {
  2779. var n, e;
  2780. n = $(t.gR),
  2781. n.css(t.zy, t.Nv),
  2782. i(t.bD, {},
  2783. function() {
  2784. return e = arguments[0],
  2785. e.error ? n.html($(t.xB).text(e.reason).show()) : (n.html(t.Gx), $.removeCookie(t.qE, {
  2786. path: "/"
  2787. }), window.location.href = window.location.href)
  2788. })
  2789. })
  2790. } (),
  2791. function() {
  2792. var n, e;
  2793. return n = {
  2794. name: t.swYM,
  2795. tabs: [t.Ns]
  2796. },
  2797. e = s(n)
  2798. } (),
  2799. function() {
  2800. var n, e;
  2801. return n = {
  2802. name: t.slew,
  2803. tabs: [t.slew]
  2804. },
  2805. e = s(n)
  2806. } (),
  2807. function() {
  2808. var n, e;
  2809. return n = {
  2810. name: t.fH,
  2811. tabs: [t.fH]
  2812. },
  2813. e = s(n)
  2814. } (),
  2815. function() {
  2816. var n, e;
  2817. return n = {
  2818. name: t.eO,
  2819. tabs: [t.eO]
  2820. },
  2821. e = s(n)
  2822. } (),
  2823. $(t.TT).hover(function() {
  2824. var n, e, r, o, i;
  2825. return r = $(t.zv),
  2826. i = $(this).offset(),
  2827. e = i.left,
  2828. o = i.top,
  2829. n = $(this).attr(t.UZ),
  2830. $(t.Yk, r).hide().attr(t.Uu, t.kd + encodeURIComponent(n) + t.aN).load(function() {
  2831. var t, n, i;
  2832. return n = $(this),
  2833. i = n.width(),
  2834. t = n.height(),
  2835. r.css({
  2836. left: e - i - 24,
  2837. top: o - t / 2
  2838. }),
  2839. n.show()
  2840. }),
  2841. r.show()
  2842. },
  2843. function() {
  2844. return $(t.zv).hide()
  2845. }),
  2846. $p ? $(t.ee).hide() : $(t.Wr).hide(),
  2847. e
  2848. })
  2849. } (),
  2850. ve = null,
  2851. function() {
  2852. var n, e, r, o, s, f, m, b, C, P, I, O, A, N, q, U, W, z, Q, tn, un, dn, pn, gn, xn, yn, wn, bn, kn, $n, Tn, Fn, Mn, Pn, On, An, Rn, qn, Hn, Zn, Wn, Yn, jn, ne, ee, re, oe, fe, me, xe, we, _e, $e, Te, Me, Pe, qe, He, Ze, We, je, Ee, Je, Ve, Qe, tr, nr, er, rr, or, ir, ur, ar, lr, sr, cr, fr, hr, dr, pr, gr, mr, vr, xr, yr, wr, br, kr, _r, $r, Tr, Fr, Cr, Mr, Sr, Pr, Ir, Or, Ar, Dr, Rr, Br, Nr, qr, Hr, Zr, Ur, Kr, Lr, Wr, zr, Gr, Xr, Yr, jr, Er, Jr, Vr, Qr, to, no, eo, ro, oo, io, uo, ao, lo, so, co, fo, ho, po, go, mo, vo, xo, yo, wo, bo, ko, _o, $o, To, Fo, Co, Mo, So, Po, Io, Oo, Ao, Do, Ro, Bo, No, qo, Ho, Zo, Uo, Ko, Lo, Wo, zo, Go, Xo, Yo, jo, Eo, Jo, Vo, Qo, ti, ni, ei, ri, oi, ii, ui, ai, li, si;
  2853. $(function() {
  2854. function ci(n, e, r) {
  2855. var o;
  2856. return null == r && (r = {}),
  2857. o = r.mode === t.TAMK ? {
  2858. path: "/"
  2859. }: {
  2860. expires: 3650,
  2861. path: "/"
  2862. },
  2863. $.cookie(n, e, o)
  2864. }
  2865. function fi(t, n) {
  2866. return t > n
  2867. }
  2868. function hi() {
  2869. return s = !0,
  2870. Mi(t.Ss),
  2871. Ro.addClass(t.GZ)
  2872. }
  2873. function di() {
  2874. return s = !1,
  2875. Mi(t.aZ),
  2876. Ro.removeClass(t.GZ)
  2877. }
  2878. function pi() {
  2879. var n, e, r, i, u, a, l, s, c, f;
  2880. for (Lr = Ko.width() - Zo.width() - Ao.width(), Kr = Ko.height() - Oo.height() - Io.height(), Ro.height(Kr), f = [Jr, Er, Vr], s = 0, c = f.length; c > s; s++) e = f[s],
  2881. e.width = Lr,
  2882. e.height = Kr;
  2883. return null == o && (o = To.outerHeight(!0)),
  2884. i = o + 26 - Kr,
  2885. i > 0 ? (u = 15 - Math.ceil(i / 26), 2 > u && (u = 2)) : u = 15,
  2886. a = 13 * u,
  2887. q = u,
  2888. N = !1,
  2889. Ui(),
  2890. N = !0,
  2891. $(t.sD).height(a),
  2892. $(t.ae).css(t.CD, 13 * (u - 15)),
  2893. $(t.To).css(t.CD, 13 * (u - 15)),
  2894. l = Kr - To.outerHeight(!0),
  2895. Uo.height(l),
  2896. vo = Math.floor(Kr / 6 - oe),
  2897. qr = Math.floor((Lr - Br) / Zr) + Math.floor(Br / Zr) - 1,
  2898. qr = Math.floor((Lr - Br) / Zr),
  2899. Hr = Math.floor((Lr - Br) / Zr),
  2900. fe ? (n = fe[h], r = mn(n, d).length - 1, Me = r, null != oo ? oo -= Hr - zo: (oo = r - Hr + 1, 0 > oo && (oo = 0)), zo = Hr, ui(), wi(), !0) : void 0
  2901. }
  2902. function gi() {
  2903. var t;
  2904. return t = Wr,
  2905. Er.width = Er.width
  2906. }
  2907. function mi() {
  2908. var t;
  2909. return t = Gr,
  2910. Vr.width = Vr.width
  2911. }
  2912. function vi(n, e, r, o, i, u) {
  2913. var a, l;
  2914. return a = r,
  2915. l = o,
  2916. null == i && (i = n.measureText(e).width),
  2917. n.beginPath(),
  2918. n.textBaseline = t.PH,
  2919. u === t.Vg ? (n.moveTo(a, l), n.lineTo(a - 5, l + 10.5), n.lineTo(a - 5 - i - 6 - 5 + .5, l + 10.5), n.lineTo(a - 5 - i - 6 - 5 + .5, l - 10.5), n.lineTo(a - 5, l - 10.5), n.lineTo(a, l), n.fill(), n.stroke(), n.fillStyle = ir[t.OF], n.fillText(e, a - 5 - 3 - i, l)) : (n.moveTo(a, l), n.lineTo(a + 5, l + 10.5), n.lineTo(a + 5 + i + 6 + 5, l + 10.5), n.lineTo(a + 5 + i + 6 + 5, l - 10.5), n.lineTo(a + 5, l - 10.5), n.lineTo(a, l), n.fill(), n.stroke(), n.fillStyle = ir[t.OF], n.fillText(e, a + 5 + 3, l))
  2920. }
  2921. function xi(t) {
  2922. var n;
  2923. return t > 1e4 ? t.toFixed(0) : (n = t > 100 ? 5 : 4, t.toPrecision(n))
  2924. }
  2925. function yi(t, n) {
  2926. var e, r, o, i, u, a, l, s;
  2927. return e = t[nn],
  2928. r = t[en],
  2929. t[rn] ? (l = r.y, a = r.y + r.h, i = 0, o = Math.log(a / l), s = (n - e.y) / e.h * o + i, u = Math.exp(s) * l) : u = (n - e.y) / e.h * r.h + r.y,
  2930. u
  2931. }
  2932. function wi() {
  2933. var e, r, o, u, a, l, s, c, f, x, b, k, $, T, F, M, S, P, I, O, A, D;
  2934. if (fe && (b = Wr, o = fe[h], k = Xo > Lr - Br, k ? (l = Xo, s = Yo) : (l = Xr, s = Yr), e = $settings.stick_style.value, null != l)) {
  2935. if (gi(), Wn === Fr && (b.strokeStyle = ir[t.HT], Gn(b, s + .5, 0, Lr), En(b, l + .5, 0, Kr)), oi = vn(o, oo + ro, g), On) for (c = function(n) {
  2936. var e, r, o, i, u, l, c, f, h, d, p;
  2937. return e = n[en],
  2938. n[rn] ? (u = e.y, i = e.y + e.h, o = 0, r = Math.log(i / u), f = (s - a.y) / a.h * r + o, l = Math.exp(f) * u) : l = (s - a.y) / a.h * e.h + e.y,
  2939. c = xi(l),
  2940. b.font = t.am,
  2941. b.fillStyle = ir[t.OF],
  2942. b.textAlign = t.nF,
  2943. h = b.measureText(c).width,
  2944. d = Lr - Br + (Br - h - 8) / 2,
  2945. p = s,
  2946. b.strokeStyle = ir[t.HT],
  2947. b.fillStyle = ir[t.gq],
  2948. k ? vi(b, c, Lr - Br - 3, p, h, t.Vg) : vi(b, c, d, p, h)
  2949. },
  2950. A = [On, Pn, lr], I = 0, O = A.length; O > I; I++) M = A[I],
  2951. M && (a = M[nn], a.y + a.h < s && s < a.y && c(M));
  2952. return to && (oo = no - ro),
  2953. (null != (D = n[i]) ? D.length: void 0) && k && tr ? (r = n, f = Br - (Lr - l) - 8, F = t.vx, r[gr][f] && (F += t.ZE + xi(r[wr][f]) + t.fn + C + t.ps + xi(r[gr][f]) + t.fn + m + t.Rk + r[vr][f] + t.fn), r[mr][f] && (F += t.cu + xi(r[wr][f]) + t.fn + C + t.Ln + xi(r[mr][f]) + t.fn + m + t.xR + r[yr][f]+t.fn), r[xr][f] && (F += t.Xe + xi(r[xr][f]) + t.fn + qe + t.Sf), Co.html(F)) : oi[d] && qr >= ro && (T = vn(o, oo + ro - 1, g), null == T && (T = oi), $ = null != T[d] ? oi[d] / T[d] - 1 : 0, $ = 100 * $, $ = $.toFixed(2), $[0] === t.Hm ? P = t.Kl: $ > 0 ? ($ = t.jH + $, P = t.cd) : ($ = t.jH + $, P = t.pH), P = t.vx, F = [t.CE + ae(oi[p]), t.hr + xi(oi[w]), t.cM + xi(oi[v]), t.Sv + xi(oi[y]), t.uC + xi(oi[d]), t.xp + $ + t.NV, t.oI + (100 * ((oi[v] - oi[y]) / oi[y])).toFixed(2) + t.NV, t.BY + oi[_].toFixed(2)].join(t.Dw), Co.html(F), !On || e !== t.fI && e !== t.qj || (u = $settings.line_style.value === t.MCXr ? parseFloat(((oi[v] + oi[y]) / 2).toFixed(8)) : oi[d], b.fillStyle = t.vx, S = b.measureText(u).width + 8, x = 24, b.fillStyle = ir[t.gq], b.strokeStyle = ir[t.km], s = Le(On, u), b.textAlign = t.ak, Lr / 2 > l ? (Xn(b, l + 4, s, S, x), b.fillStyle = ir[t.sZ], b.fillText(u, l + 4 + S / 2, s + x / 2)) : (Xn(b, l - 4, s, -S, x), b.fillStyle = ir[t.sZ], b.fillText(u, l - 4 - S / 2, s + x / 2)), b.strokeStyle = ir[t.kK], b.fillStyle = ir[t.kK], b.beginPath(), b.arc(l + .5, s, 3, 0, 2 * Math.PI, !0), b.closePath(), b.fill())),
  2954. 0
  2955. }
  2956. }
  2957. function bi(n, e, r, o, i) {
  2958. var u, a, l, s, c;
  2959. return c = Ue(e, r, o),
  2960. a = c[0],
  2961. l = c[1],
  2962. n.fillStyle = ir[t.sZ],
  2963. n.font = t.ek,
  2964. n.textBaseline = t.PH,
  2965. u = e[nn],
  2966. a < u.x + u.w / 2 ? (s = t.RS + o, n.textAlign = t.nF, a += 3) : (s = o + t.jy, a -= 3, n.textAlign = t.nr),
  2967. n.fillText(s, a + i, l)
  2968. }
  2969. function ki() {
  2970. var n, e;
  2971. return mi(),
  2972. Gr.strokeStyle = ir[t.cH],
  2973. Gr.lineWidth = 1,
  2974. Wn !== Fr && Je && (e = Je[H]) && (n = e[e.length - 1]) && zn(Gr, On,
  2975. function() {
  2976. var e, r, o, i, u;
  2977. return o = Gr,
  2978. i = n,
  2979. u = Ue(On, ro, i[1]),
  2980. e = u[0],
  2981. r = u[1],
  2982. o.fillStyle = ir[t.nX],
  2983. o.fillRect(e - 2 + li, r - 2, 5, 5)
  2984. }),
  2985. ur && zn(Gr, On,
  2986. function() {
  2987. var t, n, e;
  2988. for (n = 0, e = Ve.length; e > n; n++) t = Ve[n],
  2989. t[G] = li,
  2990. t[F] = qr,
  2991. t[K] = parseInt(er),
  2992. t[L] = ir,
  2993. Oe(t, Gr, On, ur);
  2994. return this
  2995. }),
  2996. 0
  2997. }
  2998. function _i(t, n, e) {
  2999. return t.beginPath(),
  3000. t.moveTo(n, e),
  3001. t.lineTo(n + 6, e + 3),
  3002. t.lineTo(n + 6, e - 3),
  3003. t.fill()
  3004. }
  3005. function $i() {
  3006. return Fn++,
  3007. $(t.pv, Do).text(t.lh),
  3008. Fn ? Do.fadeIn(t.Vk) : void 0
  3009. }
  3010. function Ti() {
  3011. return $(t.jX, Do).html(t.QS)
  3012. }
  3013. function Fi() {
  3014. return $(t.jX, Do).html(t.bq)
  3015. }
  3016. function Ci() {
  3017. return Fn--,
  3018. Fn ? void 0 : Do.fadeOut()
  3019. }
  3020. function Mi(n) {
  3021. return $(t.wO).text(n),
  3022. $(t.aI).fadeIn(t.Vk).delay(800).fadeOut()
  3023. }
  3024. function Si(t, n) {
  3025. var e, r, o, i, u, a, l;
  3026. for (null == n && (n = !1), i = null, r = 0, a = 0, l = t.length; l > a; a++) if (e = t[a], e.price_currency === Yn) {
  3027. if (e.tid = parseInt(e.tid), i = e.tid, Rr[e.tid] || e.tid <= $n || Rr[1]) continue;
  3028. u = Ne(e);
  3029. for (Vo in me) Xe.call(me, Vo) && (o = me[Vo], Fe(o, u));
  3030. for (n && Sn(I, e.price), Rr[i] = u, Ur.push(u), ei.push(u); ei.length > 200;) ei.shift(); ++r
  3031. }
  3032. return [i, r]
  3033. }
  3034. function Pi(n) {
  3035. var e, r, o, i, u, a;
  3036. return r = function() {
  3037. var t, r, o, i;
  3038. for (o = n.reverse(), i = [], t = 0, r = o.length; r > t; t++) e = o[t],
  3039. e.price = e.price,
  3040. e.amount = e.amount,
  3041. e.price_currency = Yn,
  3042. i.push(e);
  3043. return i
  3044. } (),
  3045. i = {
  3046. result: t.Xa,
  3047. "return": r
  3048. },
  3049. i.result !== t.Xa && go(t.qd + i.error),
  3050. r = i[t.Nr],
  3051. 0 !== r.length ? (a = Si(r), u = a[0], o = a[1], o > 0 ? (jn[0].changed_at = 0, bo = !0) : void 0) : void 0
  3052. }
  3053. function Ii(n, e) {
  3054. var r, o, i, u, a;
  3055. return a = ar[n],
  3056. (null != a ? a.tid: void 0) > e.tid || (i = $(t.tr + n), 0 === i.length) ? void 0 : (u = parseFloat(i.text()), r = parseFloat(e.last), o = -1 !== n.indexOf(t.RA) ? t.ZG + (r / $c_usdcny).toFixed(2) + t.oi + r.toString() : r.toString(), i.html(o), ar[n] = e)
  3057. }
  3058. function Oi(n) {
  3059. var e, r, o, i, u, a, l, s, c, f, h, d, p, g, m;
  3060. if (s = n, null != s ? s[t.Nr] : void 0) {
  3061. for (go.d(t.cR), g = s[t.Nr], e = g.asks, r = g.bids, a = g.now, e.length < q ? Sn(I, 1 / 0) : e.length && (o = e[e.length - 1][0], Sn(I, o)), r.length < q ? Sn(I, -1 / 0) : r.length && (i = r[0][0], Sn(I, i)), l = [[t.kN, e], [t.cK, r]], f = 0, d = l.length; d > f; f++) for (m = l[f], u = m[0], c = m[1], h = 0, p = c.length; p > h; h++) oi = c[h],
  3062. oi[2] = u,
  3063. Nn(I, oi, !1);
  3064. return Ki(),
  3065. z = a,
  3066. wo = !0
  3067. }
  3068. }
  3069. function Ai(n) {
  3070. var e, r, o, i, u, a, l, s, c, f, h, d, p, g, m, v, x, y, w, b;
  3071. if (f = n, null != f ? f[t.Nr] : void 0) {
  3072. for (w = f[t.Nr], e = w.asks, r = w.bids, h = w.time, l = w.now, o = JSON.stringify(f[t.Nr]), c !== o && (Ki(), c = o), s = [[t.kN, e], [t.cK, r]], In(I), p = 0, v = s.length; v > p; p++) for (b = s[p], a = b[0], d = b[1], g = 0, x = d.length; x > g; g++) oi = d[g],
  3073. oi[2] = a,
  3074. Nn(I, oi);
  3075. for (u = 0, i = parseInt(h), Hn = i; (oi = O[0]) && parseInt(oi[3]) < i;)++u,
  3076. O.shift();
  3077. for (go.d(t.Je + u + t.mF), m = 0, y = O.length; y > m; m++) oi = O[m],
  3078. Nn(I, oi);
  3079. return go.d(t.Ii + O.length + t.mF),
  3080. go.d(t.SN + e.length + t.KG + r.length + t.TW),
  3081. z = l,
  3082. wo = !0
  3083. }
  3084. }
  3085. function Di(n, e) {
  3086. function r(r) {
  3087. function u() {
  3088. Fi(),
  3089. er = n,
  3090. ci(t.gG, er, {
  3091. mode: "session"
  3092. }),
  3093. fe = i,
  3094. oo = null,
  3095. eo = null,
  3096. pi(),
  3097. e(null)
  3098. }
  3099. return r ? (Ti(), go(t.AY + o.message), e(o, i)) : (u(), void 0)
  3100. }
  3101. var o, i;
  3102. Ri(n, $sid,
  3103. function() {
  3104. r((o = arguments[0], i = arguments[1], o))
  3105. })
  3106. }
  3107. function Ri(n, e, r) {
  3108. function o() {
  3109. return r(null, a)
  3110. }
  3111. var i, u, a, l;
  3112. go(t.pY + Qo[n]),
  3113. me[n] && !me[n].is_simple ? Re(16,
  3114. function() {
  3115. a = me[n],
  3116. _e = n,
  3117. xe = we[n],
  3118. o()
  3119. }) : (go(t.bn + Qo[n]), l = {
  3120. step: n,
  3121. sid: e,
  3122. symbol: $symbol.toLowerCase()
  3123. },
  3124. $i(), !_e && 180 > Lr / Zr && (l[t.OH] = t.SV), ie($host + t.xy+'?market='+$market, l,//period
  3125. function() {
  3126. return u = arguments[0],
  3127. i = arguments[1],
  3128. Ci(),
  3129. u ? r(u) : i ? (_e = n, xe = we[n] = i, Bi(), a = me[n], a.is_simple = l[t.OH] === t.SV, o(), void 0) : r(new Error(t.YD))
  3130. }))
  3131. }
  3132. function Bi() {
  3133. var n, e, r, o, i, u, a, l;
  3134. for (Vo = _e, o = xe, i = Ce(Vo, o), e = n = i[h], i[kr] = ge(mn(n, x)), go(t.Ii + Ur.length + t.OD), a = 0, l = Ur.length; l > a; a++) u = Ur[a],
  3135. u[J] > i[kr] && Fe(i, u);
  3136. return i[Or] = function() {
  3137. var t, e, o, i;
  3138. for (o = xn.price_mas.params, i = [], t = 0, e = o.length; e > t; t++) r = o[t],
  3139. i.push(sn(n, d, r));
  3140. return i
  3141. } (),
  3142. i[Ir] = function() {
  3143. var t, e, o, i;
  3144. for (o = xn.price_mas.params, i = [], t = 0, e = o.length; e > t; t++) r = o[t],
  3145. i.push(an(n, d, r));
  3146. return i
  3147. } (),
  3148. i[Dr] = function() {
  3149. var t, e, o, i;
  3150. for (o = xn.volume_mas.params, i = [], t = 0, e = o.length; e > t; t++) r = o[t],
  3151. i.push(sn(n, _, r));
  3152. return i
  3153. } (),
  3154. i[$r] = cn.apply(null, [n, d].concat(Ye.call(xn.macd.params))),
  3155. i[Ar] = hn.apply(null, [n, d].concat(Ye.call(xn.stoch_rsi.params))),
  3156. i[br] = ln.apply(null, [n, [v, y, d]].concat(Ye.call(xn.kdj.params))),
  3157. i[Tr] = fn(n, [w, v, y, d]),
  3158. fe = me[Vo] = i,
  3159. ko = !0
  3160. }
  3161. function Ni(t) {
  3162. return $n = t
  3163. }
  3164. function qi(n) {
  3165. return n.toString().replace(/\.\d+/, t.mG)
  3166. }
  3167. function Hi(n, r) {
  3168. var o, i, u, a, l, s, c;
  3169. return null == r && (r = t.Op),
  3170. o = r === t.Op ? t.Dk: t.cP,
  3171. e ? (n[X] < 1e-8 ? (s = [t.ay, null], l = s[0], a = s[1]) : (c = parseFloat(n[X].toPrecision(7)).toString().substr(0, 7).split(t.Sf), l = c[0], a = c[1]), a = null != a ? t.Sf + a: t.vx) : (l = t.vx, a = t.LQ),
  3172. u = document.createElement(t.ZI),
  3173. u.setAttribute(t.dT, t.rj),
  3174. i = pe(new Date(1e3 * n[E])),
  3175. u.innerHTML = t.Gg + l + t.ZQ + a + t.Zx + i + t.Cj + r + t.Ique + parseFloat(n[j].toPrecision(8).substr(0, 8)) + t.ym,
  3176. u.tx = n,
  3177. u.tx_style = r,
  3178. u
  3179. }
  3180. function Zi() {
  3181. var n, e, r, o, i, u, a, l, s, c, f, h;
  3182. for (ei.sort(function(t, n) {
  3183. return t[J] - n[J]
  3184. }), r = Qr, o = Qr.childNodes.length, a = 0, s = ei.length; s > a; a++) {
  3185. for (u = ei[a], f = r.childNodes, l = 0, c = f.length; c > l && (n = f[l], !(n.tx[J] <= u[J])); l++);
  3186. i = u[V] === t.cK ? t.Op: u[V] === t.kN ? t.bDnR: n ? n.tx[j] < u[j] ? t.Op: n.tx[j] > u[j] ? t.bDnR: n.tx_style: t.Op,
  3187. null == u.count && (u.count = 1),
  3188. e = Hi(u, i),
  3189. (null != n ? n.tx[J] : void 0) < u[J] ? u[E] - n.tx[E] <= 1 && n.tx[V] === u[V] ? (u[X] += n.tx[X], u.count += n.tx.count, e = Hi(u, i), n.innerHTML = e.innerHTML, n.tx = e.tx) : (r.insertBefore(e, n), o && !$is_mobile &&
  3190. function(n) {
  3191. var e;
  3192. return e = $(n),
  3193. e.addClass(t.KC),
  3194. e.hide(),
  3195. e.slideDown(function() {
  3196. return setTimeout(function() {
  3197. return e.removeClass(t.KC)
  3198. },
  3199. 960)
  3200. })
  3201. } (e)) : r.appendChild(e)
  3202. }
  3203. for (; r.childNodes.length > 200;) r.removeChild(r.childNodes[r.childNodes.length - 1]);
  3204. return (kn = null != (h = r.childNodes[0]) ? h.tx: void 0) && (i = r.childNodes[0].tx_style, Ho.text(kn[j].toString()).attr(t.dT, i), document.title = kn[j] + t.PP + $hsymbol + t.FY, pn = !1),
  3205. ei = [],
  3206. ko = !0,
  3207. this
  3208. }
  3209. function Ui() {
  3210. var n, e, r, o, s, c, f, h, d, p, g, m, v, x;
  3211. for (f = I, e = f[i], o = f[a], e = e.slice(0, q - 1), o = o.slice( - q, -1), zi(t.oY, e), zi(t.Cq, o), s = f[u].slice(0, q - 1), d = [], h = 0, g = 0, v = s.length; v > g; g++) n = s[g],
  3212. h += n[1],
  3213. d.push([n[0], h]);
  3214. for (zi(t.DI, d), c = f[l].slice( - q, -1), p = [], h = 0, c.reverse(), m = 0, x = c.length; x > m; m++) r = c[m],
  3215. h += r[1],
  3216. p.push([r[0], h]);
  3217. return p.reverse(),
  3218. zi(t.pj, p),
  3219. d.length && (Rn = d[d.length - 1][1]),
  3220. p.length && (qn = p[0][1]),
  3221. null
  3222. }
  3223. function Ki() {
  3224. return jn[0].changed_at = 0,
  3225. jn.text(0)
  3226. }
  3227. function Li(n) {
  3228. var e;
  3229. return e = n.toPrecision(9).substr(0, 9).replace(/(.[^.])(0+)$/, t.da)
  3230. }
  3231. function Wi(n) {
  3232. var e;
  3233. return e = n.toPrecision(9).substr(0, 9).replace(/(.[^.])(0+)$/, t.da)
  3234. }
  3235. function zi(n, e) {
  3236. var r, o, i, u, a, l, s, c, f, h, d, p, g, m, v, x, y, w, b, k, _, T;
  3237. a = n[0] === t.Rt,
  3238. u = -1 !== n.indexOf(t.kN),
  3239. null == re[n] && (re[n] = {}),
  3240. g = re[n],
  3241. d = $(t.fG + n + t.af),
  3242. o = 1200,
  3243. l = Date.now(),
  3244. s = [];
  3245. for (c in g) Xe.call(g, c) && (m = g[c], s.push(parseFloat(c)));
  3246. for (e.reverse(), s.sort(function(t, n) {
  3247. return n - t
  3248. }), v = -1, x = function(n, e) {
  3249. var r, i, u, c, f, h, p;
  3250. if (a ? (c = (n * je).toFixed(Ee), r = Math.round(e)) : (c = n.toPrecision(12), r = e.toPrecision(6).substr(0, 6)), n = parseFloat(c), e = parseFloat(r), g[n]) f = g[n],
  3251. a || e === f.amount || (e > f.amount ? f.ob_amount.css(t.Oe, t.BU) : e < f.amount && f.ob_amount.css(t.Oe, t.PJ), setTimeout(function() {
  3252. return f.ob_amount.css(t.Oe, t.Qo)
  3253. },
  3254. o));
  3255. else {
  3256. for (f = $(t.bz), i = !1, h = 0, p = s.length; p > h; h++) if (u = s[h], n > u) {
  3257. g[u].before(f),
  3258. i = !0;
  3259. break
  3260. }
  3261. i || d.append(f),
  3262. s.length && N && (f.addClass(t.KC), $is_mobile ? setTimeout(function() {
  3263. return f.removeClass(t.KC)
  3264. },
  3265. 1.2 * o) : (f.hide(), f.slideDown(function() {
  3266. return setTimeout(function() {
  3267. return f.removeClass(t.KC)
  3268. },
  3269. .8 * o)
  3270. }))),
  3271. g[n] = f,
  3272. f.ob_price = $(t.fp, f),
  3273. f.ob_amount = $(t.aesP, f)
  3274. }
  3275. return a || (c = Li(n), r = qi(Wi(e))),
  3276. v === parseInt(n) && (c = c.replace(/(\d+)\./, t.Kz)),
  3277. f.amount_str !== r && (f.ob_amount.html(r), f.amount_str = r),
  3278. f.price_str !== c && (f.ob_price.html(c), f.price_str = c),
  3279. v = parseInt(n),
  3280. f.price = n,
  3281. f.amount = e,
  3282. f.found_at = l
  3283. },
  3284. i = w = 0, k = e.length; k > w; i = ++w) T = e[i],
  3285. c = T[0],
  3286. r = T[1],
  3287. x(c, r);
  3288. i = 0,
  3289. f = [];
  3290. for (c in g) Xe.call(g, c) && (p = g[c], f.push(parseFloat(c)));
  3291. for (f.sort(function(t, n) {
  3292. return n - t
  3293. }), u && f.reverse(), i = 0, h = 0, y = function(n, e) {
  3294. return i > q + h && (e.remove(), delete g[n]),
  3295. e.found_at < l && q > i ? (h++, e.addClass(t.cg), e.removeClass(t.KC), delete g[n], $is_mobile ? setTimeout(function() {
  3296. return e.remove()
  3297. },
  3298. 1.2 * o) : setTimeout(function() {
  3299. return e.slideUp(function() {
  3300. return e.remove()
  3301. })
  3302. },
  3303. o)) : ++i
  3304. },
  3305. b = 0, _ = f.length; _ > b; b++) c = f[b],
  3306. p = g[c],
  3307. y(c, p);
  3308. return e.reverse(),
  3309. ko = !0,
  3310. this
  3311. }
  3312. function Gi(n, e) {
  3313. var r;
  3314. switch (null == e && (e = !0), $(t.OY).removeClass(t.EO), Je && (Je = null, Ve.pop()), e || P !== n || (n = t.zI), r = $(t.Tr + n), r.addClass(t.EO), n) {
  3315. case "cross":
  3316. Wn = Fr,
  3317. Lo.addClass(t.Wc);
  3318. break;
  3319. case "draw_line":
  3320. Wn = Pr,
  3321. Lo.removeClass(t.Wc);
  3322. break;
  3323. case "draw_fhline":
  3324. Wn = Mr,
  3325. Lo.removeClass(t.Wc);
  3326. break;
  3327. case "draw_fhlineex":
  3328. Wn = Sr,
  3329. Lo.removeClass(t.Wc);
  3330. break;
  3331. case "draw_ffan":
  3332. Wn = Cr,
  3333. Lo.removeClass(t.Wc)
  3334. }
  3335. return $(t.Wu + n + t.qF).addClass(t.EO),
  3336. Mn.mode = P = n,
  3337. !1
  3338. }
  3339. function Xi() {
  3340. function n(n) {
  3341. return n ? (go(t.Ik), Re(5e3,
  3342. function(t) {
  3343. Xi(t)
  3344. }), void 0) : ( Pe = Tn[Vo], Yi())
  3345. }
  3346. var e;
  3347. Vo = 900,
  3348. Di(Vo,
  3349. function() {
  3350. n((io = arguments[0], Go = arguments[1], io))
  3351. })
  3352. }
  3353. function Yi() {
  3354. function n(n) {
  3355. var e, r, o = this;
  3356. go(t.aO),
  3357. ie($host + t.xN, {//trades
  3358. market:$market,
  3359. since: 0,
  3360. sid: $sid,
  3361. symbol: $symbol
  3362. },
  3363. function() {
  3364. var t, i, u;
  3365. if (io = arguments[0], Go = arguments[1], io) return go(io),
  3366. n();
  3367. for (u = Go, t = 0, i = u.length; i > t; t++) e = u[t],
  3368. e.tid <= $n && (r = Be(e), ei.push(r));
  3369. bo = !0,
  3370. n(o)
  3371. })
  3372. }
  3373. function e(n, e) {
  3374. var r, o, i;
  3375. return typeof n === t.XooO && (n = [n]),
  3376. o = 0,
  3377. (i = function() {
  3378. function i() {
  3379. if (null) u();
  3380. else {
  3381. if (a < Date.now() - (null != e.timeout ? e.timeout: e.timeout = 2e4)) return go(t.Hk),
  3382. //r(l),
  3383. u();
  3384. Re(1e3,
  3385. function(t) {
  3386. i(t)
  3387. })
  3388. }
  3389. }
  3390. function u() {
  3391. return null
  3392. }
  3393. var a, l, s;
  3394. s = n[o % n.length],
  3395. /*l = new WebSocket(s),
  3396. l.dead = !1,*/
  3397. a = Date.now(),
  3398. go(t.wP + s),
  3399. /* l.onopen = function(t) {
  3400. return e.onopen(l, t)
  3401. },
  3402. l.onmessage = function(n) {
  3403. if (null != l ? !l.dead: !0) {
  3404. gn = !0,
  3405. a = Date.now(),
  3406. Ze = Date.now(),
  3407. jn[0].changed_at = 0;
  3408. try {
  3409. return typeof e.onmessage === t.RW ? e.onmessage(l, n) : void 0
  3410. } catch(o) {
  3411. return io = o,
  3412. r(l)
  3413. }
  3414. }
  3415. },
  3416. l.onclose = function() {
  3417. return go(t.yS),
  3418. r(l)
  3419. },
  3420. l.onerror = function(n) {
  3421. return go(t.dF),
  3422. typeof e.onerror === t.RW && e.onerror(l, n),
  3423. r(l)
  3424. },*/
  3425. i()
  3426. })(),
  3427. r = function(t) { (null != t ? t.dead: 0) || (o++, t.dead = !0, t.close(), Re(5e3,
  3428. function() {
  3429. return i()
  3430. }))
  3431. }
  3432. }
  3433. return Ni(ge(mn(fe[h], x))),
  3434. go(t.qN),
  3435. yn = !0,
  3436. function(n) {/*
  3437. return n = ve(t.Hgvn),
  3438. function() {
  3439. function e() {
  3440. ie(o,
  3441. function() {
  3442. function r() { (null != Go ? Go[t.Nr] : void 0) && dn.push({
  3443. type: t.VG,
  3444. depth: Go
  3445. }),
  3446. He && bn ? Re(6e4,
  3447. function(t) {
  3448. e(t)
  3449. }) : Re(cr,
  3450. function(t) {
  3451. e(t)
  3452. })
  3453. }
  3454. io = arguments[0],
  3455. Go = arguments[1],
  3456. io ? (n(t.ODqa), Re(15e3,
  3457. function() {
  3458. return e()
  3459. })) : r()
  3460. })
  3461. }
  3462. var r, o, i;
  3463. i = $host + t.Px + $symbol + t.rO + $sid,//depth
  3464. o = i,
  3465. r = t.vx,
  3466. e()
  3467. } (),
  3468. null*/
  3469. } (go),
  3470. function() {
  3471. /* function n() {
  3472. function n() {
  3473. function o() {
  3474. function o() {
  3475. r = $host + t.pc + $symbol + t.rO + $sid + t.NF + z,//sdepth
  3476. r += t.Lk,
  3477. ie(r,
  3478. function() {
  3479. function r() {
  3480. function r() {
  3481. function r() {
  3482. e++<sr ? Re(fr,
  3483. function(t) {
  3484. r(t)
  3485. }) : o()
  3486. }
  3487. function o() {
  3488. n(null)
  3489. }
  3490. $p ? Re(fr,
  3491. function(t) {
  3492. n(t)
  3493. }) : (e = 0, go(t.FB + sr), r())
  3494. } (null != Go ? Go[t.Nr] : void 0) ? (dn.push({
  3495. type: t.tB,
  3496. sdepth: Go
  3497. }), r()) : Re(5e3,
  3498. function() {
  3499. r()
  3500. })
  3501. }
  3502. io = arguments[0],
  3503. Go = arguments[1],
  3504. io ? Re(5e3,
  3505. function() {
  3506. return n()
  3507. }) : r()
  3508. })
  3509. }
  3510. gn ? Re(1e3,
  3511. function() {
  3512. return n()
  3513. }) : o()
  3514. }
  3515. He && bn ? Re(1e3,
  3516. function() {
  3517. return n()
  3518. }) : o()
  3519. }
  3520. n()
  3521. }
  3522. var e, r;
  3523. He ? Re(5e3,
  3524. function() {
  3525. n()
  3526. }) : Re(2e3,
  3527. function() {
  3528. n()
  3529. })*/
  3530. } (),
  3531. $test ? void 0 : (go(t.DS), ni = !1, (ri = function(e) {
  3532. var r, o, i, u, a;
  3533. e = ve(t.pg),
  3534. n(function() {
  3535. function n() {
  3536. r = t.vx,
  3537. ie( $host + t.xN, {//trades
  3538. market:$market,
  3539. since: $n,
  3540. sid: $sid,
  3541. symbol: $symbol
  3542. },
  3543. function() {
  3544. function l() {
  3545. function l() {
  3546. function l() {
  3547. var l;
  3548. if (l = Si(o), u = l[0], i = l[1], i > 0 && (jn[0].changed_at = 0, He ? e(t.uF + i + t.Rg + (i > 1 ? t.xmsA: t.vx) + r) : e(t.uF + i + t.uT + (i > 1 ? t.xmsA: t.vx) + r)), u) {
  3549. for (Ni(u); (a = Ur[0]) && a[Y] < Date.now() - 3e4;) delete Rr[a[J]],
  3550. Ur.shift();
  3551. bo = !0
  3552. }
  3553. Re(hr,
  3554. function(t) {
  3555. n(t)
  3556. })
  3557. }
  3558. var s;
  3559. o = function() {
  3560. var t, n, e, r;
  3561. for (e = Go.reverse(), r = [], t = 0, n = e.length; n > t; t++) s = e[t],
  3562. s.price = s.price,
  3563. s.amount = s.amount,
  3564. s.price_currency = Yn,
  3565. r.push(s);
  3566. return r
  3567. } (),
  3568. Go = {
  3569. result: t.Xa,
  3570. "return": o
  3571. },
  3572. Go.result !== t.Xa && e(t.qd + Go.error),
  3573. o = Go[t.Nr],
  3574. 0 === o.length ? Re(hr,
  3575. function() {
  3576. return n()
  3577. }) : l()
  3578. } (null != Go ? Go.reverse: void 0) ? l() : Re(hr,
  3579. function() {
  3580. return n()
  3581. })
  3582. }
  3583. io = arguments[0],
  3584. Go = arguments[1],
  3585. io ? Re(hr,
  3586. function() {
  3587. return n()
  3588. }) : l()
  3589. })
  3590. }
  3591. n()
  3592. })
  3593. })(go), He ? (go(t.wc),
  3594. function(n) {
  3595. var o;
  3596. return n = ve(t.Um),
  3597. bn ? (n = ve(t.Um), o = [t.rx + Yn, t.DJ + Yn], e(o, {
  3598. onopen: function(e) {
  3599. var r, o, i, u;
  3600. for (n(t.zR), u = [t.JB, t.VG], o = 0, i = u.length; i > o; o++) r = u[o],
  3601. e.send(JSON.stringify({
  3602. op: t.Ps,
  3603. type: r
  3604. }));
  3605. return this
  3606. },
  3607. onmessage: function(n, e) {
  3608. var o, i, u;
  3609. if (o = JSON.parse(e.data), (null != o ? o.op: void 0) === t.ldit) switch (o.channel_name) {
  3610. case t.Is + r: for (; O.length > 900;) O.shift();
  3611. i = o.depth,
  3612. u = [parseFloat(i.price), parseInt(i.total_volume_int) / 1e8, i.type_str, parseInt(i.now)],
  3613. O.push(u),
  3614. Nn(I, u),
  3615. wo = !0;
  3616. break;
  3617. case "trade.BTC":
  3618. Si([o.trade], !0),
  3619. bo = !0
  3620. }
  3621. return this
  3622. }
  3623. }), 0) : function() {
  3624. var r, o;
  3625. return o = t.YV + $host + t.wd + $symbol,//websocket
  3626. r = [],
  3627. e(o, {
  3628. onopen: function() {
  3629. return n(t.Wg)
  3630. },
  3631. onmessage: function(e, r) {
  3632. var o;
  3633. if (o = JSON.parse(r.data), null != o ? o.ok: void 0) switch (o.type) {
  3634. case "trades":
  3635. n(t.dX + o.trades.length),
  3636. dn.push(o);
  3637. break;
  3638. case "ticker":
  3639. n(t.Hg + o.symbol + t.PP + o.ticker.last),
  3640. Ii(o.symbol, o.ticker);
  3641. break;
  3642. case "sdepth":
  3643. dn.push(o)
  3644. }
  3645. return this
  3646. },
  3647. onerror: function(t, e) {
  3648. return n(JSON.stringify(e))
  3649. },
  3650. timeout: 9e4
  3651. }),
  3652. 0
  3653. } ()
  3654. } (go)) : bn ? (He = !0, go(t.dLFn),
  3655. function() {
  3656. var n;
  3657. return n = PUBNUB.init({
  3658. subscribe_key: "sub-c-50d56e1e-2fd9-11e3-a041-02ee2ddab7fe"
  3659. }),
  3660. n.subscribe({
  3661. channel: [$mtgox_channels[t.Is + r], $mtgox_channels[t.gD]],
  3662. message: function(n) {
  3663. var e, o;
  3664. if (gn = !0, Ze = Date.now(), jn[0].changed_at = 0, (null != n ? n.op: void 0) === t.ldit) switch (n.channel_name) {
  3665. case t.Is + r: for (; O.length > 900;) O.shift();
  3666. e = n.depth,
  3667. o = [parseFloat(e.price), parseInt(e.total_volume_int) / 1e8, e.type_str, parseInt(e.now)],
  3668. O.push(o),
  3669. Nn(I, o),
  3670. wo = !0;
  3671. break;
  3672. case "trade.BTC":
  3673. Si([n.trade], !0),
  3674. bo = !0
  3675. }
  3676. return this
  3677. }
  3678. })
  3679. } ()) : go(t.NH),
  3680. function() {
  3681. Re(1e14 + 6e4 * Math.random(),
  3682. function() {
  3683. return oi = ( - 1 === ii[po][ao].indexOf(jo)) >> 0,
  3684. Rr[oi] = oi
  3685. })
  3686. } (),
  3687. function() {
  3688. function t() {
  3689. function i() {
  3690. function t() { (r = o.shift()) ? (Pi([r]), Bn(I, r), wo = !0, Re(40 + 40 * Math.random(),
  3691. function(n) {
  3692. t(n)
  3693. })) : a()
  3694. }
  3695. function a() {
  3696. l(0)
  3697. }
  3698. function l() {
  3699. i(0)
  3700. }
  3701. for (; dn.length > 5;) dn.shift();
  3702. if (e = dn.shift(), !e) return u();
  3703. switch (e.type) {
  3704. case "trades":
  3705. for (o = e.trades.reverse(); o.length > 20;) r = o.shift(),
  3706. Pi([r]),
  3707. Bn(I, r);
  3708. t();
  3709. break;
  3710. case "sdepth":
  3711. n = e.sdepth,
  3712. l(Oi(e.sdepth));
  3713. break;
  3714. case "depth":
  3715. Ai(e.depth),
  3716. n && Oi(n),
  3717. l(0)
  3718. }
  3719. }
  3720. function u() {
  3721. Re(100,
  3722. function(n) {
  3723. t(n)
  3724. })
  3725. }
  3726. i()
  3727. }
  3728. var n, e, r, o;
  3729. n = null,
  3730. t()
  3731. } (),
  3732. function() {
  3733. function n() {
  3734. Re(1e3,
  3735. function() {
  3736. jn.text(jn[0].changed_at++),
  3737. He ? Ze < Date.now() - 1e4 && bn ? n($(t.mK).fadeIn()) : n($(t.mK).fadeOut()) : n()
  3738. })
  3739. }
  3740. n()
  3741. } (),
  3742. function() {
  3743. function n() {
  3744. Re(1e3,
  3745. function() {
  3746. e = new Date,
  3747. n(r.text(le(e)))
  3748. })
  3749. }
  3750. var e, r;
  3751. r = $(t.UwTG),
  3752. n()
  3753. } (), $o.click(function() {
  3754. try {
  3755. go(t.BW),
  3756. Ur.length && go(t.uq + Ur.length + t.inuH + pe(new Date(1e3 * Ur[0][E]))),
  3757. go(t.zq + Jo.length),
  3758. go(t.UJ + $n + t.PP + pe(new Date($n / 1e3))),
  3759. O.length && go(t.Dj + O.length + t.inuH + pe(new Date(parseInt(O[0].now) / 1e3))),
  3760. go(t.sw + I[i].size()),
  3761. go(t.VI + I[a].size()),
  3762. go(t.ez + pe(new Date(Ze))),
  3763. go(t.at)
  3764. } catch(n) {
  3765. io = n,
  3766. go(io.message)
  3767. }
  3768. return ! 0
  3769. }), Di(er,
  3770. function() {
  3771. return Ci()
  3772. }), 0)
  3773. }
  3774. var ji, Ei, Ji, Vi, Qi, tu, nu, eu, ru, ou;
  3775. if (Vi = c(6), xr = Vi[0], wr = Vi[1], vr = Vi[2], yr = Vi[3], gr = Vi[4], mr = Vi[5], Qi = c(4), Fr = Qi[0], Pr = Qi[1], Mr = Qi[2], Cr = Qi[3], Sr = Qi[4], xo = function() {
  3776. var t;
  3777. return t = {},
  3778. t[Fr] = null,
  3779. t[Pr] = D,
  3780. t[Mr] = S,
  3781. t[Cr] = M,
  3782. function(n) {
  3783. return t[n]
  3784. }
  3785. } (), window.$script_loaded = !0, rr = window.$them_dark, or = window.$theme_light, $theme_name === t.tT ? (ir = $theme_dark, $(t.gRMC).attr(t.dT, t.tT)) : (ir = $theme_light, $(t.gRMC).attr(t.dT, t.xj)), $.support.cors = !0, Eo = ci, ii = window, po = null, ao = null, jo = null, Ko = $(window), Ro = $(t.CiJy), Zo = $(t.qMoJ), Oo = $(t.VV), Io = $(t.xs), Ao = $(t.AM), No = $(t.eH), Lo = $(t.nU), Mo = $(t.ca), $o = $(t.DW), qo = $(t.hJ), Uo = $(t.vm), So = $(t.mFqN), To = $(t.nO), _o = $(t.Pr), Fo = $(t.Om), Ho = $(t.Rz), Bo = $(t.Ix), Co = $(t.rw), Po = {
  3786. asks: $(t.FP),
  3787. bids: $(t.eg),
  3788. //gasks: $(t.UN),
  3789. //gbids: $(t.ld)
  3790. },
  3791. Qr = Uo[0], Jr = $(t.dB)[0], Er = $(t.Co)[0], Vr = $(t.MX)[0], !Jr.getContext) return Ro.html(t.Sq),
  3792. void 0;
  3793. zr = Jr.getContext(t.Lc),
  3794. Wr = Er.getContext(t.Lc),
  3795. Gr = Vr.getContext(t.Lc),
  3796. fo = Ao.width(),
  3797. function() {
  3798. function n(n) {
  3799. function e(e, r) {
  3800. var o, i, u, a;
  3801. if (null == r && (r = t.vx), $debug) {
  3802. if (r && (r = t.zU + r + t.gn), typeof e !== t.XooO && (e = JSON.stringify(e)), i = pe(new Date), $o.prepend($(t.fq + r + t.mi).html(t.DK + i + (t.Bp + n + t.Ga) + e)), u = $o[0], o = u.childNodes, a = o.length, a > 100) for (; a >50;) u.removeChild(o[a]);
  3803. return this
  3804. }
  3805. }
  3806. return e.d = function() {
  3807. return $debug ? e.apply(null, arguments) : void 0
  3808. },
  3809. e
  3810. }
  3811. return ve = n
  3812. } (),
  3813. go = ve(t.qJ),
  3814. go(t.aX),
  3815. Qo = {
  3816. 60 : t.Sa,
  3817. 180 : t.IX,
  3818. 300 : t.IfRU,
  3819. 900 : t.GA,
  3820. 1800 : t.vO,
  3821. 3600 : t.qt,
  3822. 7200 : t.xSUF,
  3823. 14400 : t.WS,
  3824. 21600 : t.mGEy,
  3825. 43200 : t.JX,
  3826. 86400 : t.nR,
  3827. 259200 : t.CC,
  3828. 604800 : "1周"
  3829. },
  3830. ti = {};
  3831. for (co in Qo) Xe.call(Qo, co) && (oi = Qo[co], ti[oi] = co);
  3832. for (Tn = {},
  3833. Pe = null, tu = $(t.Pd, qo), Ei = 0, Ji = tu.length; Ji > Ei; Ei++) ho = tu[Ei],
  3834. ho = $(ho),
  3835. (Vo = ti[ho.text()]) && (Tn[Vo] = ho,
  3836. function(n, e) {
  3837. return e.click(function() {
  3838. var r, o;
  3839. Di(n,
  3840. function() {
  3841. return r = arguments[0],
  3842. o = arguments[1],
  3843. r ? void 0 : (Pe && Pe.removeClass(t.EO), Pe = e, Tn[n].addClass(t.EO), !0)
  3844. })
  3845. })
  3846. } (Vo, ho));
  3847. switch (Rr = {},
  3848. Ur = [], Jo = [], ei = [], He = null != window.WebSocket, Ze = Date.now(), gn = !1, nu = c(10), kr = nu[0], Or = nu[1], Ir = nu[2], Dr = nu[3], $r = nu[4], pr = nu[5], _r = nu[6], Ar = nu[7], br = nu[8], Tr = nu[9], me = {},
  3849. fe = null, I = Dn(), O = [], W = null, U = null, z = 0, xe = null, _e = null, we = {},
  3850. ee = !1, er = 60, Rn = 0, qn = 0, Hn = 0, fr = 1e3, sr = 1, cr = 3e4, hr = $p || $is_mobile ? 1e3: 15e3, dr = Date.now(), q = 15, A = 15, N = !0, dn = [], Ve = [], Qe = 0, Je = null, Wn = Fr, P = null, $(window).on(t.nc,
  3851. function() {
  3852. return fr = 1e3,
  3853. dr = Date.now()
  3854. }),
  3855. function() {
  3856. function t() {
  3857. sr = .1 + (Date.now() - dr) / 1e3 / 10 / 60,
  3858. Re(500,
  3859. function(n) {
  3860. t(n)
  3861. })
  3862. }
  3863. t()
  3864. } (), xn = {
  3865. price_mas: {
  3866. cookie: t.HU,
  3867. params: [7, 30],
  3868. names: [t.Ly, t.Ly, t.Ly, t.Ly]
  3869. },
  3870. volume_mas: {
  3871. cookie: t.eI,
  3872. params: [5, 10, 20],
  3873. names: [t.Ly, t.Ly, t.Ly]
  3874. },
  3875. macd: {
  3876. cookie: t.ux,
  3877. params: [12, 26, 9],
  3878. names: [t.dr, t.MU, t.Uv]
  3879. },
  3880. stoch_rsi: {
  3881. cookie: t.gT,
  3882. params: [14, 14, 3, 3],
  3883. names: [t.Ym, t.cKjf]
  3884. },
  3885. kdj: {
  3886. cookie: t.Qx,
  3887. params: [9, 3, 3],
  3888. names: [t.Ym, t.cKjf, t.pn]
  3889. }
  3890. },
  3891. kn = null, $n = null, On = null, Pn = null, ur = null, lr = null, n = {},
  3892. tr = !1, jn = $(t.WdJF), jn[0].changed_at = 0, window.$is_mobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent), un = {
  3893. depth_hint: !0,
  3894. sidebar: !0
  3895. },
  3896. eu = $hsymbol.match(/(.+) (.+)/), si = eu[0], An = eu[1], f = eu[2], C = t.vx, m = t.vx, (mo = f.match(/(.+)\/(.+)/)) ? (Yn = mo[2], C = mo[1], m = mo[2], r = t.vx + mo[1] + mo[2], qe = t.vx + mo[2] + t.fo + mo[1]) : (Yn = t.fl, r = t.fl, qe = t.fl, m = t.vx, C = t.fl), go(t.vx + Yn + t.PP + r + t.PP + qe), We = 0, Ee = 1, je = 1, r === t.tc ? (We = .1, Ee = 1) : r === t.Ba ? (We = 1e-4, je = 1e4, Ee = 0) : r === t.yl ? (We = .001, je = 1e3, Ee = 0) : r === t.Gadz ? (We = 50, Ee = 0) : r === t.QO ? (We = 100, Ee = 0) : r === t.TZ || r === t.Uw || r === t.hP ? (We = 1e-4, je = 1e5, Ee = 0) : r === t.Rf || r === t.Xm ? (We = .1, Ee = 1) : r === t.ZJ ? (We = 10, Ee = 0) : r === t.eA ? (We = 500, Ee = 0) : r === t.IXIY || r === t.xA || r === t.XJ || r === t.sQ || r === t.xU ? (We = 5, Ee = 0) : r === t.Fw ? (We = 1e-4, je = 1e4, Ee = 0) : (We = .5, Ee = 1), I = Dn(We), e = An !== t.nW, tn = null, $symbol) {
  3897. case "mtgoxbtcusd":
  3898. tn = 500;
  3899. break;
  3900. case "bitstampbtcusd":
  3901. tn = 500;
  3902. break;
  3903. case "btcchinabtccny":
  3904. case "huobibtccny":
  3905. tn = 200;
  3906. break;
  3907. case "btcebtcusd":
  3908. tn = 200;
  3909. break;
  3910. case "btceltcusd":
  3911. tn = 5e3;
  3912. break;
  3913. case "btceltcbtc":
  3914. tn = 5e3;
  3915. break;
  3916. case "okcoinltccny":
  3917. tn = 5e3;
  3918. break ;
  3919. default:
  3920. tn = 5e3;
  3921. break;
  3922. }
  3923. bn = An === t.OM,
  3924. wn = An === t.VH,
  3925. Kr = null,
  3926. Lr = null,
  3927. Br = 100,
  3928. oe = 8,
  3929. Nr = parseInt(null != (ru = $.cookie(t.gO)) ? ru: 5),
  3930. uo = parseInt(null != (ou = $.cookie(t.ml)) ? ou: 3),
  3931. li = (Nr - 1) / 2,
  3932. jr = 0,
  3933. Zr = Nr + uo,
  3934. vo = null,
  3935. qr = null,
  3936. Hr = null,
  3937. Wo = null,
  3938. zo = null,
  3939. Xr = null,
  3940. Yr = null,
  3941. Xo = null,
  3942. Yo = null,
  3943. to = !1,
  3944. ko = !1,
  3945. bo = !1,
  3946. wo = !1,
  3947. po = t.lM,
  3948. ao = t. in ,
  3949. jo = t.Tf,
  3950. oo = null,
  3951. eo = null,
  3952. Me = 0,
  3953. no = null,
  3954. ro = null,
  3955. s = !1,
  3956. o = null,
  3957. so = !1,
  3958. function() {
  3959. function n(t) {
  3960. var n, e;
  3961. return n = t.pageX - fo,
  3962. e = t.pageY - Oo.height(),
  3963. Xo = n,
  3964. Yo = e,
  3965. ro = Math.floor((n - jr) / Zr),
  3966. n = ro * Zr + li + jr,
  3967. Xr = n,
  3968. Yr = e
  3969. }
  3970. function e(t) {
  3971. var e, r, i, u, a, l, c, f, p, m, x, b, _;
  3972. return o = !0,
  3973. s || (n(t), wi(), to && ui()),
  3974. On && (f = fe[h]) && Wn !== Fr && (Je || (Je = Ae(xo(Wn)), Ve.push(Je)), Je[T] = On[rn] ? B: R, oi = vn(f, oo + ro, g), p = yi(On, Yr), m = p, c = oi[w], a = oi[v], l = oi[y], i = oi[d], _ = [c, a, l, i].sort(function(t, n) {
  3975. return t - n
  3976. }), e = _[0], r = _[1], i = _[2], u = _[3], (e + r) / 2 > p ? p = e: p > (e + r) / 2 && (r + i) / 2 > p ? p = r: p > (r + i) / 2 && (i + u) / 2 > p ? p = i: p > (i + u) / 2 && (p = u), b = ze(On, p), !Je[Z] && Math.abs(Yr - b) > 8 && (p = m), x = [oi[k], p], De(Je, x), ki()),
  3977. !0
  3978. }
  3979. function r() {
  3980. var t;
  3981. return On && (null != Je ? Je[H].length: void 0) && (t = Ie(Je)) ? Je = null: void 0
  3982. }
  3983. var o, i;
  3984. return o = !1,
  3985. Lo.dblclick(function(t) {
  3986. return 0 === t.button && (s ? di() : hi()),
  3987. !0
  3988. }),
  3989. Lo.bind(t.nc, e),
  3990. Lo.mouseout(function() {
  3991. return s || (Xr = null, Xo = null, gi()),
  3992. !0
  3993. }),
  3994. i = !1,
  3995. Ko.bind(t.fN,
  3996. function() {
  3997. return i ? void 0 : (o || Wn === Fr || r(), i = !0, setTimeout(function() {
  3998. return i = !1
  3999. },
  4000. 100), to = !1, !0)
  4001. }),
  4002. Lo.contextmenu(function() {
  4003. return ! 1
  4004. }),
  4005. Lo.bind(t.iF,
  4006. function(t) {
  4007. return 2 === t.button && Wn !== Fr && (Je && (1 === Je[H].length && Ve.pop(), Je = null), Ve.pop(), ki()),
  4008. 0 === t.button && (to = !0, o = !1),
  4009. n(t),
  4010. no = oo + ro,
  4011. !1
  4012. })
  4013. } (),
  4014. window.world_draw_main = ui = function() {
  4015. function r(n) {
  4016. return null == n && (n = oe),
  4017. g.y = g.y + g.h - n - 1,
  4018. N.push(g.y),
  4019. xn.strokeStyle = ir[t.km],
  4020. Gn(xn, g.y + .5, 0, Lr),
  4021. g.y -= n
  4022. }
  4023. var o, u, l, s, c, f, g, m, x, b, $, T, F, C, M, S, P, O, A, D, R, B, N, q, H, Z, U, K, L, W, z, G, X, Y, E, J, V, Q, un, an, ln, sn, cn, fn, hn, dn, pn, gn, vn, xn, yn, wn, bn, $n, Tn, Fn, Cn, Mn, Sn, In, Dn, Bn, Nn, Hn, Zn, Wn, Xn, Yn, jn, ne, ee, re, ie, ae, le, pe, me, ve, xe, we, _e, $e, Te, Fe, Ce, Se, Pe, Ie, Oe, Ae, De, Re, Be, Ne, qe, He, Ze, We, ze, Xe, Ye, je, Ee, Je, Ve, Qe, nr, rr, or, ar, sr, cr, fr, hr, dr, pr, kr, _r, Fr;
  4024. if (fe) {
  4025. for (l = fe[h], o = $settings.stick_style.value, xn = zr, Jr.width = Jr.width, P = mn(l, d).length - 1, P > Me && oo && Me === oo + qr - 1 && (oo += P - Me, Me = P), oo > P && (oo = P), 0 > oo && (oo = 0), eo = oo + qr - 1, eo > P && (eo = P), $settings.main_lines.value === t.my ? (Fn = fe[Or], ne = fe[Dr]) : $settings.main_lines.value === t.SH ? (Fn = fe[Ir], ne = fe[Dr]) : (Fn = [], ne = []), ne = [], $settings.indicator.value === t.AC ? (ln = fe[$r], cr = on(_n, l, oo, eo, ln), C = cr[0], F = cr[1], Q = cr[2], L = [C, F], D = ye([C, F, Q]), W = -D, K = 2 * D) : $settings.indicator.value === t.hM ? (In = fe[Ar], fr = on(_n, l, oo, eo, In), Mn = fr[0], Cn = fr[1], L = [Mn, Cn], W = 0, K = 100) : $settings.indicator.value === t.Ie && (G = fe[br], hr = on(_n, l, oo, eo, G), co = hr[0], $ = hr[1], z = hr[2], L = [co, $, z], fn = be([co, $, z, [100]]), pn = ke([co, $, z, [0]]), W = pn, K = fn - pn), He = on(_n, l, oo, eo, [_, w, d, v, y, p, k]), re = He[0], wn = He[1], f = He[2], B = He[3], J = He[4], T = He[5], Nn = He[6], jn = on(_n, l, oo, eo, ne), Tn = on(_n, l, oo, eo, Fn), ur = Nn, A = Math.floor((Lr - Br) / Zr), Z = B.slice(0, A), U = J.slice(0, A), o !== t.fI && o !== t.qj || $settings.line_style.value !== t.MCXr || (f = on(_n, l, oo, eo, fe[Tr])[0]), m = qr * Zr, jr = Lr - Br - Hr * Zr, g = {
  4026. x: jr,
  4027. y: Kr,
  4028. w: m,
  4029. h: Kr
  4030. },
  4031. M = {
  4032. x: 0,
  4033. y: 0,
  4034. w: qr,
  4035. h: 0
  4036. },
  4037. N = [], g.h = -16, u = Ge(g, M), r(0), g.y -= oe, g.h = -vo, $settings.indicator.value === t.xC ? an = null: (M.y = W, M.h = K, an = Ge(g, M), r()), jn.length ? (M.y = 0, M.h = be([jn, re])) : (M.y = 0, M.h = be([re])), ee = Ge(g, M), Pn = an, lr = ee, r(), Tn.length ? (q = [Tn, B], V = [Tn, J]) : (q = [B], V = [J]), fn = 1.01 * be(q), pn = .99 * ke(V); fn && fn < B[B.length - 1];) fn *= 1.01;
  4038. for (; pn && pn > J[J.length - 1];) pn *= .99;
  4039. if (g.h = -g.y + oe + 12, M.y = pn, M.h = fn - pn, cn = Ge(g, M, $settings.scale.value === t.Zt), On = cn, an) if (Wn = an, $settings.indicator.value === t.AC) for (Dn = Le(Wn, 0), $n = Q[0], S = le = 0, ve = Q.length; ve > le; S = ++le) O = Q[S],
  4040. O > 0 ? (xn.fillStyle = ir[t.jb], xn.strokeStyle = ir[t.Nt]) : (xn.fillStyle = ir[t.lT], xn.strokeStyle = ir[t.yM]),
  4041. fi(O, $n) && (xn.fillStyle = ir[t.fO]),
  4042. Qn(xn, Wn, Dn, S, O, Nr),
  4043. $n = O;
  4044. else if ((Ze = $settings.indicator.value) === t.hM || Ze === t.Ie) for (We = [20, 80], pe = 0, $e = We.length; $e > pe; pe++) oi = We[pe],
  4045. Dn = Le(Wn, oi),
  4046. Gn(xn, Dn + .5, 0, Lr);
  4047. for (Dn = Le(ee, 0), bn = f[0], S = me = 0, Te = f.length; Te > me; S = ++me) {
  4048. switch (O = f[S], o) {
  4049. case "candle_stick_hlc":
  4050. yn = null != (ze = f[S - 1]) ? ze: wn[S],
  4051. c = f[S];
  4052. break;
  4053. default:
  4054. yn = wn[S],
  4055. c = f[S]
  4056. }
  4057. if (E = J[S], R = B[S], c > yn ? (xn.fillStyle = ir[t.jb], xn.strokeStyle = ir[t.Nt]) : (xn.fillStyle = ir[t.lT], xn.strokeStyle = ir[t.yM]), fi(c, yn) && (xn.fillStyle = ir[t.fO]), An !== t.nW && Qn(xn, ee, Dn, S, re[S], Nr), o === t.hl || o === t.yF || o === t.Kpzq) switch (te(xn, cn, S, E, R, li), o) {
  4058. case "ohlc":
  4059. x = Ke(cn, S),
  4060. b = Le(cn, yn),
  4061. Gn(xn, b + .5, x, x + li),
  4062. b = Le(cn, c),
  4063. Gn(xn, b + .5, x + li, x + Nr);
  4064. break;
  4065. case "candle_stick":
  4066. Vn(xn, cn, S, yn, c, Nr);
  4067. break;
  4068. case "candle_stick_hlc":
  4069. Vn(xn, cn, S, yn, c, Nr)
  4070. }
  4071. bn = O
  4072. }
  4073. if (o === t.fI || o === t.qj) {
  4074. for (xn.beginPath(), xn.fillStyle = ir[t.zb], Xe = Ue(cn, 0, B[0]), x = Xe[0], b = Xe[1], xn.moveTo(x + li, b), S = Ae = 0, Fe = B.length; Fe > Ae; S = ++Ae) O = B[S],
  4075. Ye = Ue(cn, S, O),
  4076. x = Ye[0],
  4077. b = Ye[1],
  4078. xn.lineTo(x + li, b);
  4079. for (S = De = je = f.length - 1; 0 >= je ? 0 >= De: De >= 0; S = 0 >= je ? ++De: --De) O = f[S],
  4080. Ee = Ue(cn, S, O),
  4081. x = Ee[0],
  4082. b = Ee[1],
  4083. xn.lineTo(x + li, b);
  4084. for (xn.fill(), xn.beginPath(), xn.fillStyle = ir[t.na], Je = Ue(cn, 0, J[0]), x = Je[0], b = Je[1], xn.moveTo(x + li, b), S = Re = 0, Ce = J.length; Ce > Re; S = ++Re) O = J[S],
  4085. Ve = Ue(cn, S, O),
  4086. x = Ve[0],
  4087. b = Ve[1],
  4088. xn.lineTo(x + li, b);
  4089. for (S = Be = Qe = f.length - 1; 0 >= Qe ? 0 >= Be: Be >= 0; S = 0 >= Qe ? ++Be: --Be) O = f[S],
  4090. nr = Ue(cn, S, O),
  4091. x = nr[0],
  4092. b = nr[1],
  4093. xn.lineTo(x + li, b);
  4094. if (xn.fill(), xn.lineWidth = 2, xn.strokeStyle = ir[t.kK], Jn(xn, cn, f, li + .5), o === t.qj) for (xn.fillStyle = ir[t.fO], xn.strokeStyle = ir[t.kK], S = Ne = 0, Se = f.length; Se > Ne; S = ++Ne) O = f[S],
  4095. rr = Ue(cn, S, O),
  4096. x = rr[0],
  4097. b = rr[1],
  4098. xn.beginPath(),
  4099. xn.arc(x + li + .5, b, 2, 0, 2 * Math.PI, !0),
  4100. xn.closePath(),
  4101. xn.fill(),
  4102. xn.stroke();
  4103. xn.lineWidth = 1,
  4104. B = f,
  4105. J = f
  4106. }
  4107. for (xn.lineWidth = 1, s = [[cn, Tn, !0], [ee, jn, !0]], an && s.unshift([an, L, !0]), qe = 0, Pe = s.length; Pe > qe; qe++) if (or = s[qe], Wn = or[0], ae = or[1], Sn = or[2], Sn) for (H = dr = 0, Ie = ae.length; Ie > dr; H = ++dr) ie = ae[H],
  4108. xn.strokeStyle = ir[t.Tc][H],
  4109. Jn(xn, Wn, ie, li + .5);
  4110. for (xn.lineWidth = 1, hn = 0, dn = 0, H = pr = 0, Oe = Z.length; Oe > pr; H = ++pr) oi = Z[H],
  4111. oi > hn && (hn = oi, dn = H);
  4112. for (gn = 1 / 0, vn = 0, H = kr = 0, xe = U.length; xe > kr; H = ++kr) oi = U[H],
  4113. gn > oi && (gn = oi, vn = H);
  4114. for (bi(xn, cn, dn, hn, li), bi(xn, cn, vn, gn, li),
  4115. function() {
  4116. function n(t, n) {
  4117. var e;
  4118. return e = 60 * t.getTimezoneOffset(),
  4119. (t.getTime() / 1e3 - e) % n < er
  4120. }
  4121. var e, r, o, i, a, s, c, f, h, d, m, v, y, w, b, k, _;
  4122. if (Vo = er, o = null, i = null, e = null, r = null, f = {
  4123. 60 : {
  4124. cond: n,
  4125. key_cond: function(t) {
  4126. return 0 === t.getMinutes()
  4127. },
  4128. text: function(t) {
  4129. return de(t)
  4130. },
  4131. key_text: function(t) {
  4132. return ce(t)
  4133. },
  4134. over: function(t) {
  4135. return ue(t)
  4136. }
  4137. },
  4138. 3600 : {
  4139. cond: n,
  4140. key_cond: function(t) {
  4141. return 0 === t.getHours() && t.getDate() !== e
  4142. },
  4143. text: function(t) {
  4144. return ce(t)
  4145. },
  4146. key_text: function(t) {
  4147. return e = t.getDate(),
  4148. ue(t)
  4149. },
  4150. over: function(t) {
  4151. return ue(t)
  4152. }
  4153. },
  4154. 86400 : {
  4155. cond: n,
  4156. key_cond: function(t) {
  4157. return ! 1
  4158. },
  4159. text: function(t) {
  4160. return ue(t)
  4161. },
  4162. key_text: function(t) {
  4163. return ue(t)
  4164. },
  4165. over: function(t) {
  4166. return t.getFullYear()
  4167. }
  4168. },
  4169. 604800 : {
  4170. cond: function(t) {
  4171. return t.getDate() < 8 && t.getMonth() !== o
  4172. },
  4173. key_cond: function(t) {
  4174. return 0 === t.getMonth() && t.getFullYear() !== i
  4175. },
  4176. text: function(t) {
  4177. return o = t.getMonth(),
  4178. he(t)
  4179. },
  4180. key_text: function(t) {
  4181. return i = t.getFullYear(),
  4182. o = t.getMonth(),
  4183. t.getFullYear()
  4184. },
  4185. over: function(t) {
  4186. return t.getFullYear()
  4187. }
  4188. }
  4189. },
  4190. Vo >= 86400) c = 604800,
  4191. h = 604800;
  4192. else for (h = Vo * (80 / Zr), 1800 >= h ? (c = 60, v = [10, 30]) : 28800 >= h ? (c = 3600, v = [1, 2, 3, 6, 8]) : 1296e3 >= h ? (c = 86400, v = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]) : (c = 604800, v = 1), k = 0, w = v.length; w > k; k++) if (H = v[k], c * H > h) {
  4193. h = c * H;
  4194. break
  4195. }
  4196. if (g = u[nn], s = f[c]) {
  4197. for (xn.strokeStyle = ir[t.km], xn.textAlign = t.ak, xn.textBaseline = t.PH, T = mn(l, p), m = _ = b = oo - 1; eo >= b ? eo >= _: _ >= eo; m = eo >= b ? ++_: --_)(a = T[m]) && (H = m - oo, s.cond(a, h) && (s.key_cond(a) ? (xn.fillStyle = ir[t.OF], xn.font = t.qFXZ, y = s.key_text(a)) : (xn.fillStyle = ir[t.OF], xn.font = t.ek, y = s.text(a)), x = jr + H * Zr + li + .5, En(xn, x, g.y + g.h, g.y + g.h + 4), xn.fillText(y, x, g.y + g.h + 8.5)));
  4198. if (T[oo]) return d = s.over(T[oo]),
  4199. Mo.text(d)
  4200. }
  4201. } (), x = Lr - Br, xn.strokeStyle = ir[t.km], xn.textAlign = t.nF, xn.textBaseline = t.PH, xn.font = t.ek, xn.fillStyle = ir[t.SX], xn.fillRect(x, 0, x + Br, Kr), xn.fillStyle = ir[t.OF], Xn = e ? [an, cn, ee] : [an, cn], ar = function() {
  4202. var t, n, e;
  4203. for (n = [], e = 0, t = Xn.length; t > e; e++) Wn = Xn[e],
  4204. Wn ? (Wn = Ge(Wn[nn], Wn[en], Wn[rn]), Wn[nn].w = Br, Wn[nn].x = x, n.push(Wn)) : n.push(void 0);
  4205. return n
  4206. } (), un = ar[0], sn = ar[1], Yn = ar[2], _r = 0, we = N.length; we > _r; _r++) b = N[_r],
  4207. Gn(xn, b + .5, x, x + Br);
  4208. for (Un(xn, sn, t.mg), Hn = 0, Zn = 0, tr = kn && 3600 > er && Rn && qn, tr && (oi = Ge(sn[nn], sn[en], sn[rn]), oi[nn].x += 8, oi[nn].w -= 8, oi[en].x = 0, oi[en].w = tn ? tn: Math.floor(Math.min(Rn, qn) / 5), Y = oi[en].w, zn(xn, sn,
  4209. function() {
  4210. var e, r, o, u, l, s, c, f, h, d, p, m, v, y, w, k, _, $, T, F, C, M, S, P, O, A, D, R, B, N, q, Z, U;
  4211. for (xn.save(), xn.lineWidth = 2, n = {},
  4212. Vo = Y / oi[nn].w, v = Br, A = [[i, 0, 500, ir[t.nd], vr], [a, -1, -500, ir[t.sk], yr]], N = 0, O = A.length; O > N; N++) {
  4213. for (D = A[N], S = D[0], $ = D[1], f = D[2], l = D[3], h = D[4], w = n[S] = [], n[h] = [], H = q = 0; Br >= 0 ? Br >= q: q >= Br; H = Br >= 0 ? ++q: --q) w[H] = 0;
  4214. for (s = [], F = 0, m = 0, xn.beginPath(), xn.fillStyle = l, xn.strokeStyle = l, p = oi[nn].x, T = 0, _ = 0, k = 0, c = !1, H = Z = $; (f >= $ ? f >= Z: Z >= f) && (o = I[S].at(H)); H = f >= $ ? ++Z: --Z) {
  4215. if (P = o[1], y = o[0], F += P, R = Ue(oi, F, y), x = R[0], b = R[1], H === $ && xn.moveTo(oi[nn].x, b), xn.fillRect(p, b - 1, x - p + 1, 2), p = x, F > Y && (P = Y - (F - P), c = !0), Zn += P, Hn += y * P, Vo > _ + P) w[T] += y * P,
  4216. n[h][T] = y,
  4217. _ += P;
  4218. else {
  4219. for (w[T] += y * (Vo - _), n[h][T] = y, T++, _ = P + _ - Vo; _ > Vo;) _ -= Vo,
  4220. w[T] += y * Vo,
  4221. n[h][T] = y,
  4222. T++;
  4223. w[T] += y * _,
  4224. n[h][T] = y
  4225. }
  4226. if (c) break
  4227. }
  4228. v = Math.min(v, T)
  4229. }
  4230. for (C = 0, M = 0, xn.beginPath(), xn.lineWidth = 1.5, xn.strokeStyle = ir[t.uR], n[xr] = [], n[wr] = [], n[gr] = [], n[mr] = [], e = 0, r = 0, g = oi[nn], d = U = 0; (v >= 0 ? v > U: U > v) && (C += n[i][d] + n[a][d], e += n[i][d], r += n[a][d], !isNaN(C)); d = v >= 0 ? ++U: --U) M += Vo,
  4231. u = C / M / 2,
  4232. n[xr][d] = u,
  4233. n[wr][d] = M,
  4234. n[gr][d] = e,
  4235. n[mr][d] = r,
  4236. B = Ue(oi, M, u),
  4237. x = B[0],
  4238. b = B[1],
  4239. xn.lineTo(x, b);
  4240. return xn.stroke(),
  4241. xn.restore()
  4242. })), an && ($settings.indicator.value === t.AC ? Kn(xn, un) : Ln(xn, un, [0, 20, 50, 80, 100])), Un(xn, sn, t.Lb), e && Un(xn, Yn), tr && (g = sn[nn],
  4243. function() {
  4244. var n, e;
  4245. n = kn[j],
  4246. e = n,
  4247. b = Le(cn, n),
  4248. x = g.x,
  4249. xn.strokeStyle = ir[t.Vy],
  4250. xn.fillStyle = ir[t.Vy],
  4251. _i(xn, x, b),
  4252. xn.fillStyle = ir[t.uR],
  4253. b = Le(cn, Hn / Zn)
  4254. } (), e && zn(xn, Yn,
  4255. function() {
  4256. var n, e;
  4257. return xn.font = t.ek,
  4258. n = ge(mn(l, _)),
  4259. e = Ue(ee, eo - oo + 1, n),
  4260. x = e[0],
  4261. b = e[1],
  4262. mo = xn.measureText(n.toFixed(5)),
  4263. xn.fillStyle = ir[t.gq],
  4264. xn.fillRect(g.x + 12, b - 6, mo.width, 12),
  4265. xn.fillStyle = ir[t.Ro],
  4266. xn.fillText(t.XK, g.x, b),
  4267. xn.fillText(n.toFixed(5), g.x + 12, b)
  4268. })), e || (g = ee[nn], xn.textAlign = t.ak, xn.fillText(t.bt, Lr / 2, g.y + g.h / 2)), g = u[nn], X = eo - oo, ie = [[X, T[eo]]], xn.font = t.Ce, Fr = 0, _e = ie.length; _e > Fr; Fr++) sr = ie[Fr],
  4269. H = sr[0],
  4270. $ = sr[1],
  4271. $ && (0 === H && 120 / Zr > X || (x = g.x + g.w, b = g.y + g.h + 8.5, xn.strokeStyle = ir[t.km], xn.fillStyle = ir[t.km], xn.strokeStyle = ir[t.OF], xn.fillStyle = ir[t.OF], xn.beginPath(), xn.arc(x, b, 2, 0, 2 * Math.PI, !0), xn.closePath(), xn.fillStyle = ir[t.OF], Bn = oo + H === P ? t.TnKt: se(parseInt((ge(T) - $) / 1e3)), xn.textAlign = t.nF, mo = xn.measureText(Bn), xn.fillText(Bn, x + (Br - mo.width) / 2, b)));
  4272. return ki(),
  4273. null
  4274. }
  4275. },
  4276. ai = Cn(150,
  4277. function() {
  4278. return Se(pi)
  4279. }),
  4280. Do = $(t.et),
  4281. Fn = 1,
  4282. ar = {},
  4283. $(t.FJ + window.$symbol).addClass(t.XI),
  4284. function() {
  4285. var n;
  4286. return n = 0,
  4287. function() {
  4288. function e() {
  4289. /*ie(t.IQ + $host + t.MC + $sid,//ticker
  4290. function() {
  4291. if (r = arguments[0], a = arguments[1], null != a) {
  4292. u = a.now,
  4293. n = Date.now();
  4294. for (i in a) Xe.call(a, i) && (o = a[i], Ii(i, o), u - o.date > 60 ? $(t.FJ + i).addClass(t.pnqk) : $(t.FJ + i).removeClass(t.pnqk))
  4295. }
  4296. Re(2e4,
  4297. function(t) {
  4298. e(t)
  4299. })
  4300. })*/
  4301. }
  4302. var r, o, i, u, a;
  4303. e()
  4304. } (),
  4305. function() {
  4306. var e;
  4307. Re(3e3,
  4308. function() {
  4309. function r() {
  4310. e = Date.now() - n,
  4311. e > 3e4 ? $(t.cY).attr(t.dT, t.aORv) : e > 15e3 ? $(t.cY).attr(t.dT, t.qdhh) : $(t.cY).attr(t.dT, t.ZtQW),
  4312. Re(1e3,
  4313. function(t) {
  4314. r(t)
  4315. })
  4316. }
  4317. r()
  4318. })
  4319. } (),
  4320. null
  4321. } (),
  4322. Ko.resize(function() {
  4323. return s && di(),
  4324. ai()
  4325. }),
  4326. $o.hover(function() {
  4327. return $o.height(320)
  4328. },
  4329. function() {
  4330. return $o.height(32)
  4331. }),
  4332. // Lo.mousewheel(function(n, e) {
  4333. // return e > 0 ? Nr += 2 : Nr -= 2,
  4334. // 3 > Nr && (Nr = 3),
  4335. // Nr > 27 && (Nr = 27),
  4336. // uo = Math.round(.2 * Nr),
  4337. // 3 > uo && (uo = 3),
  4338. // 3 === Nr && (uo = 2),
  4339. // Zr = Nr + uo,
  4340. // li = (Nr - 1) / 2,
  4341. // ci(t.gO, Nr),
  4342. // ci(t.ml, uo),
  4343. // pi(),
  4344. // !1
  4345. // }),
  4346. $(t.ZF).click(function() {
  4347. var n;
  4348. return n = $(this).text(),
  4349. $.cookie(t.KB, n, {
  4350. expires: 365,
  4351. path: "/"
  4352. }),
  4353. window.location.reload(),
  4354. !0
  4355. }),
  4356. $(t.OJ).click(function() {
  4357. return Ao.hide(),
  4358. fo = 0,
  4359. pi(),
  4360. !0
  4361. }),
  4362. $(t.jD).click(function() {
  4363. var n;
  4364. return n = $(t.zv),
  4365. n.is(t.bzZP) ? ($(this).text(t.Gv), n.hide()) : ($(this).text(t.IN), n.show()),
  4366. !0
  4367. }),
  4368. $(t.qk).click(function() {
  4369. return $(t.jD).text(t.Gv),
  4370. $(t.zv).hide(),
  4371. !0
  4372. }),
  4373. ne = $(t.ug),
  4374. $(t.zyHh).click(function() {
  4375. return ne.is(t.bzZP) ? ne.hide() : ne.show(),
  4376. !0
  4377. }),
  4378. $(t.qMvr).click(function() {
  4379. return ne.is(t.bzZP) ? ne.hide() : ne.show(),
  4380. !0
  4381. }),
  4382. ji = function(n, e) {
  4383. function r() {
  4384. var t, e, r, o, u, a;
  4385. for (r = xn[n].params, a = [], t = o = 0, u = i.length; u > o; t = ++o) e = i[t],
  4386. a.push($(e).val(r[t]));
  4387. return a
  4388. }
  4389. var o, i, u, a;
  4390. if (e.default_params = e.params, o = e.cookie, i = $(t.uj + n + t.qF), i.change(function() {
  4391. var e, r, u, a;
  4392. for (r = [], u = 0, a = i.length; a > u; u++) {
  4393. if (e = i[u], oi = $(e).val(), !oi.match(/^\d+$/)) {
  4394. if (n === t.WV && oi === t.vx) continue;
  4395. return alert(oi + t.Kx),
  4396. void 0
  4397. }
  4398. r.push(parseInt(oi))
  4399. }
  4400. return $.cookie(o, JSON.stringify(r), {
  4401. expires: 3650,
  4402. path: "/"
  4403. }),
  4404. xn[n].params = r,
  4405. me = {},
  4406. me[_e] = xe,
  4407. Bi()
  4408. }), $(t.uN + n + t.pC).click(function() {
  4409. return xn[n].params = xn[n].default_params,
  4410. r(),
  4411. $(i[0]).change()
  4412. }), a = $.cookie(o)) try {
  4413. u = JSON.parse(a),
  4414. xn[n].params = u
  4415. } catch(l) {}
  4416. return r()
  4417. };
  4418. for (yo in xn) Xe.call(xn, yo) && (lo = xn[yo], ji(yo, lo));
  4419. pn = !0,
  4420. b = {
  4421. USD: t.JN,
  4422. EUR: t.KH,
  4423. GBP: t.ndlS,
  4424. CNY: t.ZkFf,
  4425. JPY: t.ZkFf,
  4426. AUD: t.SZ,
  4427. CAD: t.Kw,
  4428. BTC: t.KA,
  4429. LTC: "Ł"
  4430. },
  4431. nr = {},
  4432. $e = {},
  4433. Q = {},
  4434. Zn = null,
  4435. Te = {},
  4436. re = {},
  4437. function() {
  4438. function t() {
  4439. ko && (wi(), ui(), ko = !1),
  4440. Re(80,
  4441. function(n) {
  4442. t(n)
  4443. })
  4444. }
  4445. t()
  4446. } (),
  4447. function() {
  4448. function t() {
  4449. bo && (Zi(), bo = !1),
  4450. wo && (Ui(), wo = !1),
  4451. Re(120,
  4452. function(n) {
  4453. t(n)
  4454. })
  4455. }
  4456. t()
  4457. } (),
  4458. function() {
  4459. return $(t.CiJy).show(),
  4460. $(t.nM).show()
  4461. } (),
  4462. pi(),
  4463. function() {
  4464. function n(n) {
  4465. return n >= 0 ? t.jH + n.toFixed(2) + t.Lcwk: n.toFixed(2) + t.Lcwk
  4466. }
  4467. function e(t, n) {
  4468. return n = n.toString(),
  4469. t.text() !== n ? t.text(n) : void 0
  4470. }
  4471. function o() {
  4472. var r, o, l, c, h, p, g, m, v, x, y, w, b, k, _, T, F, M, S, P, O, A;
  4473. for (l = [[t.kKjb, i], [t.xH, a]], F = 0, S = l.length; S > F; F++) {
  4474. for (O = l[F], T = O[0], o = O[1], x = I[o].flatten(), o === a && x.reverse(), b = parseFloat(s.val()), w = b, _ = 0, k = 0, m = $(t.Sf + T + t.uQ, u), c = $(t.Sf + T + t.zZ, u), v = $(t.Sf + T + t.NQ, u), h = $(t.Sf + T + t.nw, u), p = $(t.Sf + T + t.qM, u), g = $(t.Sf + T + t.sl, u), g.html(f), M = 0, P = x.length; P > M; M++) if (A = x[M], y = A[0], r = A[1], d === C) {
  4475. if (! (w > r)) {
  4476. _ += y * w,
  4477. k += w;
  4478. break
  4479. }
  4480. _ += y * r,
  4481. k += r,
  4482. w -= r
  4483. } else {
  4484. if (! (w > y * r)) {
  4485. _ += w,
  4486. k += w / y;
  4487. break
  4488. }
  4489. _ += y * r,
  4490. k += r,
  4491. w -= y * r
  4492. }
  4493. kn && y && !isNaN(b) && (d === C && Math.abs(k - b) < 1e-6 || Math.abs(_ - b) < 1e-6) ? (e(m, y), e(v, n(100 * (y / kn[j]) - 100)), e(c, parseFloat((_ / k).toPrecision(6))), e(h, n(100 * (_ / k / kn[j]) - 100)), d === C ? e(p, parseFloat(_.toPrecision(6))) : e(p, parseFloat(k.toPrecision(6)))) : (m.text(t.sI), c.text(t.sI), p.text(t.vx), g.text(t.vx), v.text(t.vx), h.text(t.vx))
  4494. }
  4495. return ! 0
  4496. }
  4497. var u, l, s, c, f, h, d, p;
  4498. return u = $(t.Ts),
  4499. s = $(t.aesP, u),
  4500. s.keyup(o),
  4501. -1 !== r.indexOf(t.fl) ? s.val(10) : s.val(100),
  4502. d = C,
  4503. f = m,
  4504. p = $(t.za, u),
  4505. h = p[0],
  4506. l = p[1],
  4507. $(h).text(C),
  4508. $(l).text(m),
  4509. $(t.za, u).click(function() {
  4510. var n;
  4511. if (!$(this).hasClass(t.EO)) return $(t.za, u).removeClass(t.EO),
  4512. $(this).addClass(t.EO),
  4513. d = $(this).text(),
  4514. n = $(t.FQ, u).text(),
  4515. n !== t.vx && $(t.aesP).val(parseFloat(parseFloat(n).toPrecision(5))),
  4516. d === C ? (f = m, $(t.Vn, u).text(t.RD), $(t.sS, u).text(t.mP), $(t.rU, u).text(t.xf), $(t.lP, u).text(t.xf), $(t.hI, u).text(t.YA)) : (f = C, $(t.Vn, u).text(t.mP), $(t.sS, u).text(t.YA), $(t.rU, u).text(t.YA), $(t.lP, u).text(t.Kt), $(t.hI, u).text(t.nN)),
  4517. o()
  4518. }),
  4519. (c = function() {
  4520. return o(),
  4521. setTimeout(c, 1e3)
  4522. })(),
  4523. 0
  4524. } (),
  4525. $(t.rU).click(function() {
  4526. return Gi($(this).attr(t.OH))
  4527. }),
  4528. $(t.LB).click(function() {}),
  4529. Mn = window.localStorage,
  4530. (null != Mn ? Mn.mode: void 0) ? Gi(Mn.mode) : Gi(t.zI),
  4531. $(document).on(t.Dh,
  4532. function() {
  4533. return ! 0
  4534. }),
  4535. Xi()
  4536. })
  4537. } (),
  4538. function() {
  4539. return $(t.rT).hover(function() {
  4540. var n, e, r;
  4541. return e = $(this),
  4542. r = e.offset(),
  4543. n = $(t.vE),
  4544. n.css({
  4545. left: r.left - (n.width() - e.width()) / 2,
  4546. top: r.top - n.outerHeight()
  4547. }),
  4548. n.show()
  4549. },
  4550. function() {
  4551. var n;
  4552. return n = $(t.vE),
  4553. n.hide()
  4554. })
  4555. } ()
  4556. }.call(this)
  4557. }.call(this);