cs.js 235 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517
  1. /**
  2. * @license cs 0.3.1 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
  3. * Available via the MIT or new BSD license.
  4. * see: http://github.com/jrburke/require-cs for details
  5. *
  6. * CoffeeScript is Copyright (c) 2011 Jeremy Ashkenas
  7. * http://jashkenas.github.com/coffee-script/
  8. * CoffeeScriptVersion: '1.1.2'
  9. */
  10. if (typeof define !== 'function') { var define = (require('../../../amdefine'))(module); }
  11. /* Yes, deliciously evil. */
  12. /*jslint evil: true, strict: false, plusplus: false, regexp: false */
  13. /*global require: false, XMLHttpRequest: false, ActiveXObject: false,
  14. define: false, process: false, window: false */
  15. (function () {
  16. //>>excludeStart('excludeCoffeeScript', pragmas.excludeCoffeeScript)
  17. var fs, getXhr, CoffeeScript,
  18. progIds = ['Msxml2.XMLHTTP', 'Microsoft.XMLHTTP', 'Msxml2.XMLHTTP.4.0'],
  19. fetchText = function () {
  20. throw new Error('Environment unsupported.');
  21. },
  22. buildMap = [];
  23. //START COFFEESCRIPT
  24. CoffeeScript = (function () {
  25. var __MODULES = {}; function require(name) { return __MODULES[name.substring(2)]; };
  26. (function () {
  27. var exports = __MODULES['helpers'] = {};
  28. (function() {
  29. var extend, flatten;
  30. exports.starts = function(string, literal, start) {
  31. return literal === string.substr(start, literal.length);
  32. };
  33. exports.ends = function(string, literal, back) {
  34. var len;
  35. len = literal.length;
  36. return literal === string.substr(string.length - len - (back || 0), len);
  37. };
  38. exports.compact = function(array) {
  39. var item, _i, _len, _results;
  40. _results = [];
  41. for (_i = 0, _len = array.length; _i < _len; _i++) {
  42. item = array[_i];
  43. if (item) {
  44. _results.push(item);
  45. }
  46. }
  47. return _results;
  48. };
  49. exports.count = function(string, substr) {
  50. var num, pos;
  51. num = pos = 0;
  52. if (!substr.length) {
  53. return 1 / 0;
  54. }
  55. while (pos = 1 + string.indexOf(substr, pos)) {
  56. num++;
  57. }
  58. return num;
  59. };
  60. exports.merge = function(options, overrides) {
  61. return extend(extend({}, options), overrides);
  62. };
  63. extend = exports.extend = function(object, properties) {
  64. var key, val;
  65. for (key in properties) {
  66. val = properties[key];
  67. object[key] = val;
  68. }
  69. return object;
  70. };
  71. exports.flatten = flatten = function(array) {
  72. var element, flattened, _i, _len;
  73. flattened = [];
  74. for (_i = 0, _len = array.length; _i < _len; _i++) {
  75. element = array[_i];
  76. if (element instanceof Array) {
  77. flattened = flattened.concat(flatten(element));
  78. } else {
  79. flattened.push(element);
  80. }
  81. }
  82. return flattened;
  83. };
  84. exports.del = function(obj, key) {
  85. var val;
  86. val = obj[key];
  87. delete obj[key];
  88. return val;
  89. };
  90. exports.last = function(array, back) {
  91. return array[array.length - (back || 0) - 1];
  92. };
  93. }).call(this);
  94. return exports;
  95. }());(function () {
  96. var exports = __MODULES['rewriter'] = {};
  97. (function() {
  98. var BALANCED_PAIRS, EXPRESSION_CLOSE, EXPRESSION_END, EXPRESSION_START, IMPLICIT_BLOCK, IMPLICIT_CALL, IMPLICIT_END, IMPLICIT_FUNC, IMPLICIT_UNSPACED_CALL, INVERSES, LINEBREAKS, SINGLE_CLOSERS, SINGLE_LINERS, left, rite, _i, _len, _ref;
  99. var __indexOf = Array.prototype.indexOf || function(item) {
  100. for (var i = 0, l = this.length; i < l; i++) {
  101. if (this[i] === item) return i;
  102. }
  103. return -1;
  104. }, __slice = Array.prototype.slice;
  105. exports.Rewriter = (function() {
  106. function Rewriter() {}
  107. Rewriter.prototype.rewrite = function(tokens) {
  108. this.tokens = tokens;
  109. this.removeLeadingNewlines();
  110. this.removeMidExpressionNewlines();
  111. this.closeOpenCalls();
  112. this.closeOpenIndexes();
  113. this.addImplicitIndentation();
  114. this.tagPostfixConditionals();
  115. this.addImplicitBraces();
  116. this.addImplicitParentheses();
  117. this.ensureBalance(BALANCED_PAIRS);
  118. this.rewriteClosingParens();
  119. return this.tokens;
  120. };
  121. Rewriter.prototype.scanTokens = function(block) {
  122. var i, token, tokens;
  123. tokens = this.tokens;
  124. i = 0;
  125. while (token = tokens[i]) {
  126. i += block.call(this, token, i, tokens);
  127. }
  128. return true;
  129. };
  130. Rewriter.prototype.detectEnd = function(i, condition, action) {
  131. var levels, token, tokens, _ref, _ref2;
  132. tokens = this.tokens;
  133. levels = 0;
  134. while (token = tokens[i]) {
  135. if (levels === 0 && condition.call(this, token, i)) {
  136. return action.call(this, token, i);
  137. }
  138. if (!token || levels < 0) {
  139. return action.call(this, token, i - 1);
  140. }
  141. if (_ref = token[0], __indexOf.call(EXPRESSION_START, _ref) >= 0) {
  142. levels += 1;
  143. } else if (_ref2 = token[0], __indexOf.call(EXPRESSION_END, _ref2) >= 0) {
  144. levels -= 1;
  145. }
  146. i += 1;
  147. }
  148. return i - 1;
  149. };
  150. Rewriter.prototype.removeLeadingNewlines = function() {
  151. var i, tag, _len, _ref;
  152. _ref = this.tokens;
  153. for (i = 0, _len = _ref.length; i < _len; i++) {
  154. tag = _ref[i][0];
  155. if (tag !== 'TERMINATOR') {
  156. break;
  157. }
  158. }
  159. if (i) {
  160. return this.tokens.splice(0, i);
  161. }
  162. };
  163. Rewriter.prototype.removeMidExpressionNewlines = function() {
  164. return this.scanTokens(function(token, i, tokens) {
  165. var _ref;
  166. if (!(token[0] === 'TERMINATOR' && (_ref = this.tag(i + 1), __indexOf.call(EXPRESSION_CLOSE, _ref) >= 0))) {
  167. return 1;
  168. }
  169. tokens.splice(i, 1);
  170. return 0;
  171. });
  172. };
  173. Rewriter.prototype.closeOpenCalls = function() {
  174. var action, condition;
  175. condition = function(token, i) {
  176. var _ref;
  177. return ((_ref = token[0]) === ')' || _ref === 'CALL_END') || token[0] === 'OUTDENT' && this.tag(i - 1) === ')';
  178. };
  179. action = function(token, i) {
  180. return this.tokens[token[0] === 'OUTDENT' ? i - 1 : i][0] = 'CALL_END';
  181. };
  182. return this.scanTokens(function(token, i) {
  183. if (token[0] === 'CALL_START') {
  184. this.detectEnd(i + 1, condition, action);
  185. }
  186. return 1;
  187. });
  188. };
  189. Rewriter.prototype.closeOpenIndexes = function() {
  190. var action, condition;
  191. condition = function(token, i) {
  192. var _ref;
  193. return (_ref = token[0]) === ']' || _ref === 'INDEX_END';
  194. };
  195. action = function(token, i) {
  196. return token[0] = 'INDEX_END';
  197. };
  198. return this.scanTokens(function(token, i) {
  199. if (token[0] === 'INDEX_START') {
  200. this.detectEnd(i + 1, condition, action);
  201. }
  202. return 1;
  203. });
  204. };
  205. Rewriter.prototype.addImplicitBraces = function() {
  206. var action, condition, stack, start, startIndent;
  207. stack = [];
  208. start = null;
  209. startIndent = 0;
  210. condition = function(token, i) {
  211. var one, tag, three, two, _ref, _ref2;
  212. _ref = this.tokens.slice(i + 1, (i + 3 + 1) || 9e9), one = _ref[0], two = _ref[1], three = _ref[2];
  213. if ('HERECOMMENT' === (one != null ? one[0] : void 0)) {
  214. return false;
  215. }
  216. tag = token[0];
  217. return ((tag === 'TERMINATOR' || tag === 'OUTDENT') && !((two != null ? two[0] : void 0) === ':' || (one != null ? one[0] : void 0) === '@' && (three != null ? three[0] : void 0) === ':')) || (tag === ',' && one && ((_ref2 = one[0]) !== 'IDENTIFIER' && _ref2 !== 'NUMBER' && _ref2 !== 'STRING' && _ref2 !== '@' && _ref2 !== 'TERMINATOR' && _ref2 !== 'OUTDENT'));
  218. };
  219. action = function(token, i) {
  220. var tok;
  221. tok = ['}', '}', token[2]];
  222. tok.generated = true;
  223. return this.tokens.splice(i, 0, tok);
  224. };
  225. return this.scanTokens(function(token, i, tokens) {
  226. var ago, idx, tag, tok, value, _ref, _ref2;
  227. if (_ref = (tag = token[0]), __indexOf.call(EXPRESSION_START, _ref) >= 0) {
  228. stack.push([(tag === 'INDENT' && this.tag(i - 1) === '{' ? '{' : tag), i]);
  229. return 1;
  230. }
  231. if (__indexOf.call(EXPRESSION_END, tag) >= 0) {
  232. start = stack.pop();
  233. return 1;
  234. }
  235. if (!(tag === ':' && ((ago = this.tag(i - 2)) === ':' || ((_ref2 = stack[stack.length - 1]) != null ? _ref2[0] : void 0) !== '{'))) {
  236. return 1;
  237. }
  238. stack.push(['{']);
  239. idx = ago === '@' ? i - 2 : i - 1;
  240. while (this.tag(idx - 2) === 'HERECOMMENT') {
  241. idx -= 2;
  242. }
  243. value = new String('{');
  244. value.generated = true;
  245. tok = ['{', value, token[2]];
  246. tok.generated = true;
  247. tokens.splice(idx, 0, tok);
  248. this.detectEnd(i + 2, condition, action);
  249. return 2;
  250. });
  251. };
  252. Rewriter.prototype.addImplicitParentheses = function() {
  253. var action, noCall;
  254. noCall = false;
  255. action = function(token, i) {
  256. var idx;
  257. idx = token[0] === 'OUTDENT' ? i + 1 : i;
  258. return this.tokens.splice(idx, 0, ['CALL_END', ')', token[2]]);
  259. };
  260. return this.scanTokens(function(token, i, tokens) {
  261. var callObject, current, next, prev, seenControl, seenSingle, tag, _ref, _ref2, _ref3;
  262. tag = token[0];
  263. if (tag === 'CLASS' || tag === 'IF') {
  264. noCall = true;
  265. }
  266. _ref = tokens.slice(i - 1, (i + 1 + 1) || 9e9), prev = _ref[0], current = _ref[1], next = _ref[2];
  267. callObject = !noCall && tag === 'INDENT' && next && next.generated && next[0] === '{' && prev && (_ref2 = prev[0], __indexOf.call(IMPLICIT_FUNC, _ref2) >= 0);
  268. seenSingle = false;
  269. seenControl = false;
  270. if (__indexOf.call(LINEBREAKS, tag) >= 0) {
  271. noCall = false;
  272. }
  273. if (prev && !prev.spaced && tag === '?') {
  274. token.call = true;
  275. }
  276. if (token.fromThen) {
  277. return 1;
  278. }
  279. if (!(callObject || (prev != null ? prev.spaced : void 0) && (prev.call || (_ref3 = prev[0], __indexOf.call(IMPLICIT_FUNC, _ref3) >= 0)) && (__indexOf.call(IMPLICIT_CALL, tag) >= 0 || !(token.spaced || token.newLine) && __indexOf.call(IMPLICIT_UNSPACED_CALL, tag) >= 0))) {
  280. return 1;
  281. }
  282. tokens.splice(i, 0, ['CALL_START', '(', token[2]]);
  283. this.detectEnd(i + 1, function(token, i) {
  284. var post, _ref4;
  285. tag = token[0];
  286. if (!seenSingle && token.fromThen) {
  287. return true;
  288. }
  289. if (tag === 'IF' || tag === 'ELSE' || tag === 'CATCH' || tag === '->' || tag === '=>') {
  290. seenSingle = true;
  291. }
  292. if (tag === 'IF' || tag === 'ELSE' || tag === 'SWITCH' || tag === 'TRY') {
  293. seenControl = true;
  294. }
  295. if ((tag === '.' || tag === '?.' || tag === '::') && this.tag(i - 1) === 'OUTDENT') {
  296. return true;
  297. }
  298. return !token.generated && this.tag(i - 1) !== ',' && (__indexOf.call(IMPLICIT_END, tag) >= 0 || (tag === 'INDENT' && !seenControl)) && (tag !== 'INDENT' || (this.tag(i - 2) !== 'CLASS' && (_ref4 = this.tag(i - 1), __indexOf.call(IMPLICIT_BLOCK, _ref4) < 0) && !((post = this.tokens[i + 1]) && post.generated && post[0] === '{')));
  299. }, action);
  300. if (prev[0] === '?') {
  301. prev[0] = 'FUNC_EXIST';
  302. }
  303. return 2;
  304. });
  305. };
  306. Rewriter.prototype.addImplicitIndentation = function() {
  307. return this.scanTokens(function(token, i, tokens) {
  308. var action, condition, indent, outdent, starter, tag, _ref, _ref2;
  309. tag = token[0];
  310. if (tag === 'TERMINATOR' && this.tag(i + 1) === 'THEN') {
  311. tokens.splice(i, 1);
  312. return 0;
  313. }
  314. if (tag === 'ELSE' && this.tag(i - 1) !== 'OUTDENT') {
  315. tokens.splice.apply(tokens, [i, 0].concat(__slice.call(this.indentation(token))));
  316. return 2;
  317. }
  318. if (tag === 'CATCH' && ((_ref = this.tag(i + 2)) === 'OUTDENT' || _ref === 'TERMINATOR' || _ref === 'FINALLY')) {
  319. tokens.splice.apply(tokens, [i + 2, 0].concat(__slice.call(this.indentation(token))));
  320. return 4;
  321. }
  322. if (__indexOf.call(SINGLE_LINERS, tag) >= 0 && this.tag(i + 1) !== 'INDENT' && !(tag === 'ELSE' && this.tag(i + 1) === 'IF')) {
  323. starter = tag;
  324. _ref2 = this.indentation(token), indent = _ref2[0], outdent = _ref2[1];
  325. if (starter === 'THEN') {
  326. indent.fromThen = true;
  327. }
  328. indent.generated = outdent.generated = true;
  329. tokens.splice(i + 1, 0, indent);
  330. condition = function(token, i) {
  331. var _ref3;
  332. return token[1] !== ';' && (_ref3 = token[0], __indexOf.call(SINGLE_CLOSERS, _ref3) >= 0) && !(token[0] === 'ELSE' && (starter !== 'IF' && starter !== 'THEN'));
  333. };
  334. action = function(token, i) {
  335. return this.tokens.splice((this.tag(i - 1) === ',' ? i - 1 : i), 0, outdent);
  336. };
  337. this.detectEnd(i + 2, condition, action);
  338. if (tag === 'THEN') {
  339. tokens.splice(i, 1);
  340. }
  341. return 1;
  342. }
  343. return 1;
  344. });
  345. };
  346. Rewriter.prototype.tagPostfixConditionals = function() {
  347. var condition;
  348. condition = function(token, i) {
  349. var _ref;
  350. return (_ref = token[0]) === 'TERMINATOR' || _ref === 'INDENT';
  351. };
  352. return this.scanTokens(function(token, i) {
  353. var original;
  354. if (token[0] !== 'IF') {
  355. return 1;
  356. }
  357. original = token;
  358. this.detectEnd(i + 1, condition, function(token, i) {
  359. if (token[0] !== 'INDENT') {
  360. return original[0] = 'POST_' + original[0];
  361. }
  362. });
  363. return 1;
  364. });
  365. };
  366. Rewriter.prototype.ensureBalance = function(pairs) {
  367. var close, level, levels, open, openLine, tag, token, _i, _j, _len, _len2, _ref, _ref2;
  368. levels = {};
  369. openLine = {};
  370. _ref = this.tokens;
  371. for (_i = 0, _len = _ref.length; _i < _len; _i++) {
  372. token = _ref[_i];
  373. tag = token[0];
  374. for (_j = 0, _len2 = pairs.length; _j < _len2; _j++) {
  375. _ref2 = pairs[_j], open = _ref2[0], close = _ref2[1];
  376. levels[open] |= 0;
  377. if (tag === open) {
  378. if (levels[open]++ === 0) {
  379. openLine[open] = token[2];
  380. }
  381. } else if (tag === close && --levels[open] < 0) {
  382. throw Error("too many " + token[1] + " on line " + (token[2] + 1));
  383. }
  384. }
  385. }
  386. for (open in levels) {
  387. level = levels[open];
  388. if (level > 0) {
  389. throw Error("unclosed " + open + " on line " + (openLine[open] + 1));
  390. }
  391. }
  392. return this;
  393. };
  394. Rewriter.prototype.rewriteClosingParens = function() {
  395. var debt, key, stack;
  396. stack = [];
  397. debt = {};
  398. for (key in INVERSES) {
  399. debt[key] = 0;
  400. }
  401. return this.scanTokens(function(token, i, tokens) {
  402. var inv, match, mtag, oppos, tag, val, _ref;
  403. if (_ref = (tag = token[0]), __indexOf.call(EXPRESSION_START, _ref) >= 0) {
  404. stack.push(token);
  405. return 1;
  406. }
  407. if (__indexOf.call(EXPRESSION_END, tag) < 0) {
  408. return 1;
  409. }
  410. if (debt[inv = INVERSES[tag]] > 0) {
  411. debt[inv] -= 1;
  412. tokens.splice(i, 1);
  413. return 0;
  414. }
  415. match = stack.pop();
  416. mtag = match[0];
  417. oppos = INVERSES[mtag];
  418. if (tag === oppos) {
  419. return 1;
  420. }
  421. debt[mtag] += 1;
  422. val = [oppos, mtag === 'INDENT' ? match[1] : oppos];
  423. if (this.tag(i + 2) === mtag) {
  424. tokens.splice(i + 3, 0, val);
  425. stack.push(match);
  426. } else {
  427. tokens.splice(i, 0, val);
  428. }
  429. return 1;
  430. });
  431. };
  432. Rewriter.prototype.indentation = function(token) {
  433. return [['INDENT', 2, token[2]], ['OUTDENT', 2, token[2]]];
  434. };
  435. Rewriter.prototype.tag = function(i) {
  436. var _ref;
  437. return (_ref = this.tokens[i]) != null ? _ref[0] : void 0;
  438. };
  439. return Rewriter;
  440. })();
  441. BALANCED_PAIRS = [['(', ')'], ['[', ']'], ['{', '}'], ['INDENT', 'OUTDENT'], ['CALL_START', 'CALL_END'], ['PARAM_START', 'PARAM_END'], ['INDEX_START', 'INDEX_END']];
  442. INVERSES = {};
  443. EXPRESSION_START = [];
  444. EXPRESSION_END = [];
  445. for (_i = 0, _len = BALANCED_PAIRS.length; _i < _len; _i++) {
  446. _ref = BALANCED_PAIRS[_i], left = _ref[0], rite = _ref[1];
  447. EXPRESSION_START.push(INVERSES[rite] = left);
  448. EXPRESSION_END.push(INVERSES[left] = rite);
  449. }
  450. EXPRESSION_CLOSE = ['CATCH', 'WHEN', 'ELSE', 'FINALLY'].concat(EXPRESSION_END);
  451. IMPLICIT_FUNC = ['IDENTIFIER', 'SUPER', ')', 'CALL_END', ']', 'INDEX_END', '@', 'THIS'];
  452. IMPLICIT_CALL = ['IDENTIFIER', 'NUMBER', 'STRING', 'JS', 'REGEX', 'NEW', 'PARAM_START', 'CLASS', 'IF', 'TRY', 'SWITCH', 'THIS', 'BOOL', 'UNARY', 'SUPER', '@', '->', '=>', '[', '(', '{', '--', '++'];
  453. IMPLICIT_UNSPACED_CALL = ['+', '-'];
  454. IMPLICIT_BLOCK = ['->', '=>', '{', '[', ','];
  455. IMPLICIT_END = ['POST_IF', 'FOR', 'WHILE', 'UNTIL', 'WHEN', 'BY', 'LOOP', 'TERMINATOR'];
  456. SINGLE_LINERS = ['ELSE', '->', '=>', 'TRY', 'FINALLY', 'THEN'];
  457. SINGLE_CLOSERS = ['TERMINATOR', 'CATCH', 'FINALLY', 'ELSE', 'OUTDENT', 'LEADING_WHEN'];
  458. LINEBREAKS = ['TERMINATOR', 'INDENT', 'OUTDENT'];
  459. }).call(this);
  460. return exports;
  461. }());(function () {
  462. var exports = __MODULES['lexer'] = {};
  463. (function() {
  464. var ASSIGNED, BOOL, CALLABLE, CODE, COFFEE_ALIASES, COFFEE_ALIAS_MAP, COFFEE_KEYWORDS, COMMENT, COMPARE, COMPOUND_ASSIGN, HEREDOC, HEREDOC_ILLEGAL, HEREDOC_INDENT, HEREGEX, HEREGEX_OMIT, IDENTIFIER, INDEXABLE, JSTOKEN, JS_FORBIDDEN, JS_KEYWORDS, LINE_BREAK, LINE_CONTINUER, LOGIC, Lexer, MATH, MULTILINER, MULTI_DENT, NOT_REGEX, NOT_SPACED_REGEX, NO_NEWLINE, NUMBER, OPERATOR, REGEX, RELATION, RESERVED, Rewriter, SHIFT, SIMPLESTR, TRAILING_SPACES, UNARY, WHITESPACE, compact, count, key, last, starts, _ref;
  465. var __indexOf = Array.prototype.indexOf || function(item) {
  466. for (var i = 0, l = this.length; i < l; i++) {
  467. if (this[i] === item) return i;
  468. }
  469. return -1;
  470. };
  471. Rewriter = require('./rewriter').Rewriter;
  472. _ref = require('./helpers'), count = _ref.count, starts = _ref.starts, compact = _ref.compact, last = _ref.last;
  473. exports.Lexer = Lexer = (function() {
  474. function Lexer() {}
  475. Lexer.prototype.tokenize = function(code, opts) {
  476. var i;
  477. if (opts == null) {
  478. opts = {};
  479. }
  480. if (WHITESPACE.test(code)) {
  481. code = "\n" + code;
  482. }
  483. code = code.replace(/\r/g, '').replace(TRAILING_SPACES, '');
  484. this.code = code;
  485. this.line = opts.line || 0;
  486. this.indent = 0;
  487. this.indebt = 0;
  488. this.outdebt = 0;
  489. this.indents = [];
  490. this.tokens = [];
  491. i = 0;
  492. while (this.chunk = code.slice(i)) {
  493. i += this.identifierToken() || this.commentToken() || this.whitespaceToken() || this.lineToken() || this.heredocToken() || this.stringToken() || this.numberToken() || this.regexToken() || this.jsToken() || this.literalToken();
  494. }
  495. this.closeIndentation();
  496. if (opts.rewrite === false) {
  497. return this.tokens;
  498. }
  499. return (new Rewriter).rewrite(this.tokens);
  500. };
  501. Lexer.prototype.identifierToken = function() {
  502. var colon, forcedIdentifier, id, input, match, prev, tag, _ref2, _ref3;
  503. if (!(match = IDENTIFIER.exec(this.chunk))) {
  504. return 0;
  505. }
  506. input = match[0], id = match[1], colon = match[2];
  507. if (id === 'own' && this.tag() === 'FOR') {
  508. this.token('OWN', id);
  509. return id.length;
  510. }
  511. forcedIdentifier = colon || (prev = last(this.tokens)) && (((_ref2 = prev[0]) === '.' || _ref2 === '?.' || _ref2 === '::') || !prev.spaced && prev[0] === '@');
  512. tag = 'IDENTIFIER';
  513. if (!forcedIdentifier && (__indexOf.call(JS_KEYWORDS, id) >= 0 || __indexOf.call(COFFEE_KEYWORDS, id) >= 0)) {
  514. tag = id.toUpperCase();
  515. if (tag === 'WHEN' && (_ref3 = this.tag(), __indexOf.call(LINE_BREAK, _ref3) >= 0)) {
  516. tag = 'LEADING_WHEN';
  517. } else if (tag === 'FOR') {
  518. this.seenFor = true;
  519. } else if (tag === 'UNLESS') {
  520. tag = 'IF';
  521. } else if (__indexOf.call(UNARY, tag) >= 0) {
  522. tag = 'UNARY';
  523. } else if (__indexOf.call(RELATION, tag) >= 0) {
  524. if (tag !== 'INSTANCEOF' && this.seenFor) {
  525. tag = 'FOR' + tag;
  526. this.seenFor = false;
  527. } else {
  528. tag = 'RELATION';
  529. if (this.value() === '!') {
  530. this.tokens.pop();
  531. id = '!' + id;
  532. }
  533. }
  534. }
  535. }
  536. if (__indexOf.call(JS_FORBIDDEN, id) >= 0) {
  537. if (forcedIdentifier) {
  538. tag = 'IDENTIFIER';
  539. id = new String(id);
  540. id.reserved = true;
  541. } else if (__indexOf.call(RESERVED, id) >= 0) {
  542. this.identifierError(id);
  543. }
  544. }
  545. if (!forcedIdentifier) {
  546. if (__indexOf.call(COFFEE_ALIASES, id) >= 0) {
  547. id = COFFEE_ALIAS_MAP[id];
  548. }
  549. tag = (function() {
  550. switch (id) {
  551. case '!':
  552. return 'UNARY';
  553. case '==':
  554. case '!=':
  555. return 'COMPARE';
  556. case '&&':
  557. case '||':
  558. return 'LOGIC';
  559. case 'true':
  560. case 'false':
  561. case 'null':
  562. case 'undefined':
  563. return 'BOOL';
  564. case 'break':
  565. case 'continue':
  566. case 'debugger':
  567. return 'STATEMENT';
  568. default:
  569. return tag;
  570. }
  571. })();
  572. }
  573. this.token(tag, id);
  574. if (colon) {
  575. this.token(':', ':');
  576. }
  577. return input.length;
  578. };
  579. Lexer.prototype.numberToken = function() {
  580. var match, number;
  581. if (!(match = NUMBER.exec(this.chunk))) {
  582. return 0;
  583. }
  584. number = match[0];
  585. this.token('NUMBER', number);
  586. return number.length;
  587. };
  588. Lexer.prototype.stringToken = function() {
  589. var match, string;
  590. switch (this.chunk.charAt(0)) {
  591. case "'":
  592. if (!(match = SIMPLESTR.exec(this.chunk))) {
  593. return 0;
  594. }
  595. this.token('STRING', (string = match[0]).replace(MULTILINER, '\\\n'));
  596. break;
  597. case '"':
  598. if (!(string = this.balancedString(this.chunk, '"'))) {
  599. return 0;
  600. }
  601. if (0 < string.indexOf('#{', 1)) {
  602. this.interpolateString(string.slice(1, -1));
  603. } else {
  604. this.token('STRING', this.escapeLines(string));
  605. }
  606. break;
  607. default:
  608. return 0;
  609. }
  610. this.line += count(string, '\n');
  611. return string.length;
  612. };
  613. Lexer.prototype.heredocToken = function() {
  614. var doc, heredoc, match, quote;
  615. if (!(match = HEREDOC.exec(this.chunk))) {
  616. return 0;
  617. }
  618. heredoc = match[0];
  619. quote = heredoc.charAt(0);
  620. doc = this.sanitizeHeredoc(match[2], {
  621. quote: quote,
  622. indent: null
  623. });
  624. if (quote === '"' && 0 <= doc.indexOf('#{')) {
  625. this.interpolateString(doc, {
  626. heredoc: true
  627. });
  628. } else {
  629. this.token('STRING', this.makeString(doc, quote, true));
  630. }
  631. this.line += count(heredoc, '\n');
  632. return heredoc.length;
  633. };
  634. Lexer.prototype.commentToken = function() {
  635. var comment, here, match;
  636. if (!(match = this.chunk.match(COMMENT))) {
  637. return 0;
  638. }
  639. comment = match[0], here = match[1];
  640. if (here) {
  641. this.token('HERECOMMENT', this.sanitizeHeredoc(here, {
  642. herecomment: true,
  643. indent: Array(this.indent + 1).join(' ')
  644. }));
  645. this.token('TERMINATOR', '\n');
  646. }
  647. this.line += count(comment, '\n');
  648. return comment.length;
  649. };
  650. Lexer.prototype.jsToken = function() {
  651. var match, script;
  652. if (!(this.chunk.charAt(0) === '`' && (match = JSTOKEN.exec(this.chunk)))) {
  653. return 0;
  654. }
  655. this.token('JS', (script = match[0]).slice(1, -1));
  656. return script.length;
  657. };
  658. Lexer.prototype.regexToken = function() {
  659. var length, match, prev, regex, _ref2;
  660. if (this.chunk.charAt(0) !== '/') {
  661. return 0;
  662. }
  663. if (match = HEREGEX.exec(this.chunk)) {
  664. length = this.heregexToken(match);
  665. this.line += count(match[0], '\n');
  666. return length;
  667. }
  668. prev = last(this.tokens);
  669. if (prev && (_ref2 = prev[0], __indexOf.call((prev.spaced ? NOT_REGEX : NOT_SPACED_REGEX), _ref2) >= 0)) {
  670. return 0;
  671. }
  672. if (!(match = REGEX.exec(this.chunk))) {
  673. return 0;
  674. }
  675. regex = match[0];
  676. this.token('REGEX', regex === '//' ? '/(?:)/' : regex);
  677. return regex.length;
  678. };
  679. Lexer.prototype.heregexToken = function(match) {
  680. var body, flags, heregex, re, tag, tokens, value, _i, _len, _ref2, _ref3, _ref4, _ref5;
  681. heregex = match[0], body = match[1], flags = match[2];
  682. if (0 > body.indexOf('#{')) {
  683. re = body.replace(HEREGEX_OMIT, '').replace(/\//g, '\\/');
  684. this.token('REGEX', "/" + (re || '(?:)') + "/" + flags);
  685. return heregex.length;
  686. }
  687. this.token('IDENTIFIER', 'RegExp');
  688. this.tokens.push(['CALL_START', '(']);
  689. tokens = [];
  690. _ref2 = this.interpolateString(body, {
  691. regex: true
  692. });
  693. for (_i = 0, _len = _ref2.length; _i < _len; _i++) {
  694. _ref3 = _ref2[_i], tag = _ref3[0], value = _ref3[1];
  695. if (tag === 'TOKENS') {
  696. tokens.push.apply(tokens, value);
  697. } else {
  698. if (!(value = value.replace(HEREGEX_OMIT, ''))) {
  699. continue;
  700. }
  701. value = value.replace(/\\/g, '\\\\');
  702. tokens.push(['STRING', this.makeString(value, '"', true)]);
  703. }
  704. tokens.push(['+', '+']);
  705. }
  706. tokens.pop();
  707. if (((_ref4 = tokens[0]) != null ? _ref4[0] : void 0) !== 'STRING') {
  708. this.tokens.push(['STRING', '""'], ['+', '+']);
  709. }
  710. (_ref5 = this.tokens).push.apply(_ref5, tokens);
  711. if (flags) {
  712. this.tokens.push([',', ','], ['STRING', '"' + flags + '"']);
  713. }
  714. this.token(')', ')');
  715. return heregex.length;
  716. };
  717. Lexer.prototype.lineToken = function() {
  718. var diff, indent, match, noNewlines, prev, size;
  719. if (!(match = MULTI_DENT.exec(this.chunk))) {
  720. return 0;
  721. }
  722. indent = match[0];
  723. this.line += count(indent, '\n');
  724. prev = last(this.tokens, 1);
  725. size = indent.length - 1 - indent.lastIndexOf('\n');
  726. noNewlines = this.unfinished();
  727. if (size - this.indebt === this.indent) {
  728. if (noNewlines) {
  729. this.suppressNewlines();
  730. } else {
  731. this.newlineToken();
  732. }
  733. return indent.length;
  734. }
  735. if (size > this.indent) {
  736. if (noNewlines) {
  737. this.indebt = size - this.indent;
  738. this.suppressNewlines();
  739. return indent.length;
  740. }
  741. diff = size - this.indent + this.outdebt;
  742. this.token('INDENT', diff);
  743. this.indents.push(diff);
  744. this.outdebt = this.indebt = 0;
  745. } else {
  746. this.indebt = 0;
  747. this.outdentToken(this.indent - size, noNewlines);
  748. }
  749. this.indent = size;
  750. return indent.length;
  751. };
  752. Lexer.prototype.outdentToken = function(moveOut, noNewlines, close) {
  753. var dent, len;
  754. while (moveOut > 0) {
  755. len = this.indents.length - 1;
  756. if (this.indents[len] === void 0) {
  757. moveOut = 0;
  758. } else if (this.indents[len] === this.outdebt) {
  759. moveOut -= this.outdebt;
  760. this.outdebt = 0;
  761. } else if (this.indents[len] < this.outdebt) {
  762. this.outdebt -= this.indents[len];
  763. moveOut -= this.indents[len];
  764. } else {
  765. dent = this.indents.pop() - this.outdebt;
  766. moveOut -= dent;
  767. this.outdebt = 0;
  768. this.token('OUTDENT', dent);
  769. }
  770. }
  771. if (dent) {
  772. this.outdebt -= moveOut;
  773. }
  774. if (!(this.tag() === 'TERMINATOR' || noNewlines)) {
  775. this.token('TERMINATOR', '\n');
  776. }
  777. return this;
  778. };
  779. Lexer.prototype.whitespaceToken = function() {
  780. var match, nline, prev;
  781. if (!((match = WHITESPACE.exec(this.chunk)) || (nline = this.chunk.charAt(0) === '\n'))) {
  782. return 0;
  783. }
  784. prev = last(this.tokens);
  785. if (prev) {
  786. prev[match ? 'spaced' : 'newLine'] = true;
  787. }
  788. if (match) {
  789. return match[0].length;
  790. } else {
  791. return 0;
  792. }
  793. };
  794. Lexer.prototype.newlineToken = function() {
  795. if (this.tag() !== 'TERMINATOR') {
  796. this.token('TERMINATOR', '\n');
  797. }
  798. return this;
  799. };
  800. Lexer.prototype.suppressNewlines = function() {
  801. if (this.value() === '\\') {
  802. this.tokens.pop();
  803. }
  804. return this;
  805. };
  806. Lexer.prototype.literalToken = function() {
  807. var match, prev, tag, value, _ref2, _ref3, _ref4, _ref5;
  808. if (match = OPERATOR.exec(this.chunk)) {
  809. value = match[0];
  810. if (CODE.test(value)) {
  811. this.tagParameters();
  812. }
  813. } else {
  814. value = this.chunk.charAt(0);
  815. }
  816. tag = value;
  817. prev = last(this.tokens);
  818. if (value === '=' && prev) {
  819. if (!prev[1].reserved && (_ref2 = prev[1], __indexOf.call(JS_FORBIDDEN, _ref2) >= 0)) {
  820. this.assignmentError();
  821. }
  822. if ((_ref3 = prev[1]) === '||' || _ref3 === '&&') {
  823. prev[0] = 'COMPOUND_ASSIGN';
  824. prev[1] += '=';
  825. return value.length;
  826. }
  827. }
  828. if (value === ';') {
  829. tag = 'TERMINATOR';
  830. } else if (__indexOf.call(MATH, value) >= 0) {
  831. tag = 'MATH';
  832. } else if (__indexOf.call(COMPARE, value) >= 0) {
  833. tag = 'COMPARE';
  834. } else if (__indexOf.call(COMPOUND_ASSIGN, value) >= 0) {
  835. tag = 'COMPOUND_ASSIGN';
  836. } else if (__indexOf.call(UNARY, value) >= 0) {
  837. tag = 'UNARY';
  838. } else if (__indexOf.call(SHIFT, value) >= 0) {
  839. tag = 'SHIFT';
  840. } else if (__indexOf.call(LOGIC, value) >= 0 || value === '?' && (prev != null ? prev.spaced : void 0)) {
  841. tag = 'LOGIC';
  842. } else if (prev && !prev.spaced) {
  843. if (value === '(' && (_ref4 = prev[0], __indexOf.call(CALLABLE, _ref4) >= 0)) {
  844. if (prev[0] === '?') {
  845. prev[0] = 'FUNC_EXIST';
  846. }
  847. tag = 'CALL_START';
  848. } else if (value === '[' && (_ref5 = prev[0], __indexOf.call(INDEXABLE, _ref5) >= 0)) {
  849. tag = 'INDEX_START';
  850. switch (prev[0]) {
  851. case '?':
  852. prev[0] = 'INDEX_SOAK';
  853. break;
  854. case '::':
  855. prev[0] = 'INDEX_PROTO';
  856. }
  857. }
  858. }
  859. this.token(tag, value);
  860. return value.length;
  861. };
  862. Lexer.prototype.sanitizeHeredoc = function(doc, options) {
  863. var attempt, herecomment, indent, match, _ref2;
  864. indent = options.indent, herecomment = options.herecomment;
  865. if (herecomment) {
  866. if (HEREDOC_ILLEGAL.test(doc)) {
  867. throw new Error("block comment cannot contain \"*/\", starting on line " + (this.line + 1));
  868. }
  869. if (doc.indexOf('\n') <= 0) {
  870. return doc;
  871. }
  872. } else {
  873. while (match = HEREDOC_INDENT.exec(doc)) {
  874. attempt = match[1];
  875. if (indent === null || (0 < (_ref2 = attempt.length) && _ref2 < indent.length)) {
  876. indent = attempt;
  877. }
  878. }
  879. }
  880. if (indent) {
  881. doc = doc.replace(RegExp("\\n" + indent, "g"), '\n');
  882. }
  883. if (!herecomment) {
  884. doc = doc.replace(/^\n/, '');
  885. }
  886. return doc;
  887. };
  888. Lexer.prototype.tagParameters = function() {
  889. var i, stack, tok, tokens;
  890. if (this.tag() !== ')') {
  891. return this;
  892. }
  893. stack = [];
  894. tokens = this.tokens;
  895. i = tokens.length;
  896. tokens[--i][0] = 'PARAM_END';
  897. while (tok = tokens[--i]) {
  898. switch (tok[0]) {
  899. case ')':
  900. stack.push(tok);
  901. break;
  902. case '(':
  903. case 'CALL_START':
  904. if (stack.length) {
  905. stack.pop();
  906. } else if (tok[0] === '(') {
  907. tok[0] = 'PARAM_START';
  908. return this;
  909. } else {
  910. return this;
  911. }
  912. }
  913. }
  914. return this;
  915. };
  916. Lexer.prototype.closeIndentation = function() {
  917. return this.outdentToken(this.indent);
  918. };
  919. Lexer.prototype.identifierError = function(word) {
  920. throw SyntaxError("Reserved word \"" + word + "\" on line " + (this.line + 1));
  921. };
  922. Lexer.prototype.assignmentError = function() {
  923. throw SyntaxError("Reserved word \"" + (this.value()) + "\" on line " + (this.line + 1) + " can't be assigned");
  924. };
  925. Lexer.prototype.balancedString = function(str, end) {
  926. var i, letter, match, prev, stack, _ref2;
  927. stack = [end];
  928. for (i = 1, _ref2 = str.length; 1 <= _ref2 ? i < _ref2 : i > _ref2; 1 <= _ref2 ? i++ : i--) {
  929. switch (letter = str.charAt(i)) {
  930. case '\\':
  931. i++;
  932. continue;
  933. case end:
  934. stack.pop();
  935. if (!stack.length) {
  936. return str.slice(0, i + 1);
  937. }
  938. end = stack[stack.length - 1];
  939. continue;
  940. }
  941. if (end === '}' && (letter === '"' || letter === "'")) {
  942. stack.push(end = letter);
  943. } else if (end === '}' && letter === '/' && (match = HEREGEX.exec(str.slice(i)) || REGEX.exec(str.slice(i)))) {
  944. i += match[0].length - 1;
  945. } else if (end === '}' && letter === '{') {
  946. stack.push(end = '}');
  947. } else if (end === '"' && prev === '#' && letter === '{') {
  948. stack.push(end = '}');
  949. }
  950. prev = letter;
  951. }
  952. throw new Error("missing " + (stack.pop()) + ", starting on line " + (this.line + 1));
  953. };
  954. Lexer.prototype.interpolateString = function(str, options) {
  955. var expr, heredoc, i, inner, interpolated, len, letter, nested, pi, regex, tag, tokens, value, _len, _ref2, _ref3, _ref4;
  956. if (options == null) {
  957. options = {};
  958. }
  959. heredoc = options.heredoc, regex = options.regex;
  960. tokens = [];
  961. pi = 0;
  962. i = -1;
  963. while (letter = str.charAt(i += 1)) {
  964. if (letter === '\\') {
  965. i += 1;
  966. continue;
  967. }
  968. if (!(letter === '#' && str.charAt(i + 1) === '{' && (expr = this.balancedString(str.slice(i + 1), '}')))) {
  969. continue;
  970. }
  971. if (pi < i) {
  972. tokens.push(['NEOSTRING', str.slice(pi, i)]);
  973. }
  974. inner = expr.slice(1, -1);
  975. if (inner.length) {
  976. nested = new Lexer().tokenize(inner, {
  977. line: this.line,
  978. rewrite: false
  979. });
  980. nested.pop();
  981. if (((_ref2 = nested[0]) != null ? _ref2[0] : void 0) === 'TERMINATOR') {
  982. nested.shift();
  983. }
  984. if (len = nested.length) {
  985. if (len > 1) {
  986. nested.unshift(['(', '(']);
  987. nested.push([')', ')']);
  988. }
  989. tokens.push(['TOKENS', nested]);
  990. }
  991. }
  992. i += expr.length;
  993. pi = i + 1;
  994. }
  995. if ((i > pi && pi < str.length)) {
  996. tokens.push(['NEOSTRING', str.slice(pi)]);
  997. }
  998. if (regex) {
  999. return tokens;
  1000. }
  1001. if (!tokens.length) {
  1002. return this.token('STRING', '""');
  1003. }
  1004. if (tokens[0][0] !== 'NEOSTRING') {
  1005. tokens.unshift(['', '']);
  1006. }
  1007. if (interpolated = tokens.length > 1) {
  1008. this.token('(', '(');
  1009. }
  1010. for (i = 0, _len = tokens.length; i < _len; i++) {
  1011. _ref3 = tokens[i], tag = _ref3[0], value = _ref3[1];
  1012. if (i) {
  1013. this.token('+', '+');
  1014. }
  1015. if (tag === 'TOKENS') {
  1016. (_ref4 = this.tokens).push.apply(_ref4, value);
  1017. } else {
  1018. this.token('STRING', this.makeString(value, '"', heredoc));
  1019. }
  1020. }
  1021. if (interpolated) {
  1022. this.token(')', ')');
  1023. }
  1024. return tokens;
  1025. };
  1026. Lexer.prototype.token = function(tag, value) {
  1027. return this.tokens.push([tag, value, this.line]);
  1028. };
  1029. Lexer.prototype.tag = function(index, tag) {
  1030. var tok;
  1031. return (tok = last(this.tokens, index)) && (tag ? tok[0] = tag : tok[0]);
  1032. };
  1033. Lexer.prototype.value = function(index, val) {
  1034. var tok;
  1035. return (tok = last(this.tokens, index)) && (val ? tok[1] = val : tok[1]);
  1036. };
  1037. Lexer.prototype.unfinished = function() {
  1038. var prev, value;
  1039. return LINE_CONTINUER.test(this.chunk) || (prev = last(this.tokens, 1)) && prev[0] !== '.' && (value = this.value()) && !value.reserved && NO_NEWLINE.test(value) && !CODE.test(value) && !ASSIGNED.test(this.chunk);
  1040. };
  1041. Lexer.prototype.escapeLines = function(str, heredoc) {
  1042. return str.replace(MULTILINER, heredoc ? '\\n' : '');
  1043. };
  1044. Lexer.prototype.makeString = function(body, quote, heredoc) {
  1045. if (!body) {
  1046. return quote + quote;
  1047. }
  1048. body = body.replace(/\\([\s\S])/g, function(match, contents) {
  1049. if (contents === '\n' || contents === quote) {
  1050. return contents;
  1051. } else {
  1052. return match;
  1053. }
  1054. });
  1055. body = body.replace(RegExp("" + quote, "g"), '\\$&');
  1056. return quote + this.escapeLines(body, heredoc) + quote;
  1057. };
  1058. return Lexer;
  1059. })();
  1060. JS_KEYWORDS = ['true', 'false', 'null', 'this', 'new', 'delete', 'typeof', 'in', 'instanceof', 'return', 'throw', 'break', 'continue', 'debugger', 'if', 'else', 'switch', 'for', 'while', 'do', 'try', 'catch', 'finally', 'class', 'extends', 'super'];
  1061. COFFEE_KEYWORDS = ['undefined', 'then', 'unless', 'until', 'loop', 'of', 'by', 'when'];
  1062. COFFEE_ALIAS_MAP = {
  1063. and: '&&',
  1064. or: '||',
  1065. is: '==',
  1066. isnt: '!=',
  1067. not: '!',
  1068. yes: 'true',
  1069. no: 'false',
  1070. on: 'true',
  1071. off: 'false'
  1072. };
  1073. COFFEE_ALIASES = (function() {
  1074. var _results;
  1075. _results = [];
  1076. for (key in COFFEE_ALIAS_MAP) {
  1077. _results.push(key);
  1078. }
  1079. return _results;
  1080. })();
  1081. COFFEE_KEYWORDS = COFFEE_KEYWORDS.concat(COFFEE_ALIASES);
  1082. RESERVED = ['case', 'default', 'function', 'var', 'void', 'with', 'const', 'let', 'enum', 'export', 'import', 'native', '__hasProp', '__extends', '__slice', '__bind', '__indexOf'];
  1083. JS_FORBIDDEN = JS_KEYWORDS.concat(RESERVED);
  1084. exports.RESERVED = RESERVED.concat(JS_KEYWORDS).concat(COFFEE_KEYWORDS);
  1085. IDENTIFIER = /^([$A-Za-z_\x7f-\uffff][$\w\x7f-\uffff]*)([^\n\S]*:(?!:))?/;
  1086. NUMBER = /^0x[\da-f]+|^\d*\.?\d+(?:e[+-]?\d+)?/i;
  1087. HEREDOC = /^("""|''')([\s\S]*?)(?:\n[^\n\S]*)?\1/;
  1088. OPERATOR = /^(?:[-=]>|[-+*\/%<>&|^!?=]=|>>>=?|([-+:])\1|([&|<>])\2=?|\?\.|\.{2,3})/;
  1089. WHITESPACE = /^[^\n\S]+/;
  1090. COMMENT = /^###([^#][\s\S]*?)(?:###[^\n\S]*|(?:###)?$)|^(?:\s*#(?!##[^#]).*)+/;
  1091. CODE = /^[-=]>/;
  1092. MULTI_DENT = /^(?:\n[^\n\S]*)+/;
  1093. SIMPLESTR = /^'[^\\']*(?:\\.[^\\']*)*'/;
  1094. JSTOKEN = /^`[^\\`]*(?:\\.[^\\`]*)*`/;
  1095. REGEX = /^\/(?![\s=])[^[\/\n\\]*(?:(?:\\[\s\S]|\[[^\]\n\\]*(?:\\[\s\S][^\]\n\\]*)*])[^[\/\n\\]*)*\/[imgy]{0,4}(?!\w)/;
  1096. HEREGEX = /^\/{3}([\s\S]+?)\/{3}([imgy]{0,4})(?!\w)/;
  1097. HEREGEX_OMIT = /\s+(?:#.*)?/g;
  1098. MULTILINER = /\n/g;
  1099. HEREDOC_INDENT = /\n+([^\n\S]*)/g;
  1100. HEREDOC_ILLEGAL = /\*\//;
  1101. ASSIGNED = /^\s*@?([$A-Za-z_][$\w\x7f-\uffff]*|['"].*['"])[^\n\S]*?[:=][^:=>]/;
  1102. LINE_CONTINUER = /^\s*(?:,|\??\.(?![.\d])|::)/;
  1103. TRAILING_SPACES = /\s+$/;
  1104. NO_NEWLINE = /^(?:[-+*&|\/%=<>!.\\][<>=&|]*|and|or|is(?:nt)?|n(?:ot|ew)|delete|typeof|instanceof)$/;
  1105. COMPOUND_ASSIGN = ['-=', '+=', '/=', '*=', '%=', '||=', '&&=', '?=', '<<=', '>>=', '>>>=', '&=', '^=', '|='];
  1106. UNARY = ['!', '~', 'NEW', 'TYPEOF', 'DELETE', 'DO'];
  1107. LOGIC = ['&&', '||', '&', '|', '^'];
  1108. SHIFT = ['<<', '>>', '>>>'];
  1109. COMPARE = ['==', '!=', '<', '>', '<=', '>='];
  1110. MATH = ['*', '/', '%'];
  1111. RELATION = ['IN', 'OF', 'INSTANCEOF'];
  1112. BOOL = ['TRUE', 'FALSE', 'NULL', 'UNDEFINED'];
  1113. NOT_REGEX = ['NUMBER', 'REGEX', 'BOOL', '++', '--', ']'];
  1114. NOT_SPACED_REGEX = NOT_REGEX.concat(')', '}', 'THIS', 'IDENTIFIER', 'STRING');
  1115. CALLABLE = ['IDENTIFIER', 'STRING', 'REGEX', ')', ']', '}', '?', '::', '@', 'THIS', 'SUPER'];
  1116. INDEXABLE = CALLABLE.concat('NUMBER', 'BOOL');
  1117. LINE_BREAK = ['INDENT', 'OUTDENT', 'TERMINATOR'];
  1118. }).call(this);
  1119. return exports;
  1120. }());(function () {
  1121. var exports = __MODULES['parser'] = {};
  1122. /* Jison generated parser */
  1123. var parser = (function(){
  1124. var parser = {trace: function trace() { },
  1125. yy: {},
  1126. symbols_: {"error":2,"Root":3,"Body":4,"Block":5,"TERMINATOR":6,"Line":7,"Expression":8,"Statement":9,"Return":10,"Throw":11,"Comment":12,"STATEMENT":13,"Value":14,"Invocation":15,"Code":16,"Operation":17,"Assign":18,"If":19,"Try":20,"While":21,"For":22,"Switch":23,"Class":24,"INDENT":25,"OUTDENT":26,"Identifier":27,"IDENTIFIER":28,"AlphaNumeric":29,"NUMBER":30,"STRING":31,"Literal":32,"JS":33,"REGEX":34,"BOOL":35,"Assignable":36,"=":37,"AssignObj":38,"ObjAssignable":39,":":40,"ThisProperty":41,"RETURN":42,"HERECOMMENT":43,"PARAM_START":44,"ParamList":45,"PARAM_END":46,"FuncGlyph":47,"->":48,"=>":49,"OptComma":50,",":51,"Param":52,"ParamVar":53,"...":54,"Array":55,"Object":56,"Splat":57,"SimpleAssignable":58,"Accessor":59,"Parenthetical":60,"Range":61,"This":62,".":63,"?.":64,"::":65,"Index":66,"INDEX_START":67,"IndexValue":68,"INDEX_END":69,"INDEX_SOAK":70,"INDEX_PROTO":71,"Slice":72,"{":73,"AssignList":74,"}":75,"CLASS":76,"EXTENDS":77,"OptFuncExist":78,"Arguments":79,"SUPER":80,"FUNC_EXIST":81,"CALL_START":82,"CALL_END":83,"ArgList":84,"THIS":85,"@":86,"[":87,"]":88,"RangeDots":89,"..":90,"Arg":91,"SimpleArgs":92,"TRY":93,"Catch":94,"FINALLY":95,"CATCH":96,"THROW":97,"(":98,")":99,"WhileSource":100,"WHILE":101,"WHEN":102,"UNTIL":103,"Loop":104,"LOOP":105,"ForBody":106,"FOR":107,"ForStart":108,"ForSource":109,"ForVariables":110,"OWN":111,"ForValue":112,"FORIN":113,"FOROF":114,"BY":115,"SWITCH":116,"Whens":117,"ELSE":118,"When":119,"LEADING_WHEN":120,"IfBlock":121,"IF":122,"POST_IF":123,"UNARY":124,"-":125,"+":126,"--":127,"++":128,"?":129,"MATH":130,"SHIFT":131,"COMPARE":132,"LOGIC":133,"RELATION":134,"COMPOUND_ASSIGN":135,"$accept":0,"$end":1},
  1127. terminals_: {2:"error",6:"TERMINATOR",13:"STATEMENT",25:"INDENT",26:"OUTDENT",28:"IDENTIFIER",30:"NUMBER",31:"STRING",33:"JS",34:"REGEX",35:"BOOL",37:"=",40:":",42:"RETURN",43:"HERECOMMENT",44:"PARAM_START",46:"PARAM_END",48:"->",49:"=>",51:",",54:"...",63:".",64:"?.",65:"::",67:"INDEX_START",69:"INDEX_END",70:"INDEX_SOAK",71:"INDEX_PROTO",73:"{",75:"}",76:"CLASS",77:"EXTENDS",80:"SUPER",81:"FUNC_EXIST",82:"CALL_START",83:"CALL_END",85:"THIS",86:"@",87:"[",88:"]",90:"..",93:"TRY",95:"FINALLY",96:"CATCH",97:"THROW",98:"(",99:")",101:"WHILE",102:"WHEN",103:"UNTIL",105:"LOOP",107:"FOR",111:"OWN",113:"FORIN",114:"FOROF",115:"BY",116:"SWITCH",118:"ELSE",120:"LEADING_WHEN",122:"IF",123:"POST_IF",124:"UNARY",125:"-",126:"+",127:"--",128:"++",129:"?",130:"MATH",131:"SHIFT",132:"COMPARE",133:"LOGIC",134:"RELATION",135:"COMPOUND_ASSIGN"},
  1128. productions_: [0,[3,0],[3,1],[3,2],[4,1],[4,3],[4,2],[7,1],[7,1],[9,1],[9,1],[9,1],[9,1],[8,1],[8,1],[8,1],[8,1],[8,1],[8,1],[8,1],[8,1],[8,1],[8,1],[8,1],[5,2],[5,3],[27,1],[29,1],[29,1],[32,1],[32,1],[32,1],[32,1],[18,3],[18,5],[38,1],[38,3],[38,5],[38,1],[39,1],[39,1],[39,1],[10,2],[10,1],[12,1],[16,5],[16,2],[47,1],[47,1],[50,0],[50,1],[45,0],[45,1],[45,3],[52,1],[52,2],[52,3],[53,1],[53,1],[53,1],[53,1],[57,2],[58,1],[58,2],[58,2],[58,1],[36,1],[36,1],[36,1],[14,1],[14,1],[14,1],[14,1],[14,1],[59,2],[59,2],[59,2],[59,1],[59,1],[66,3],[66,2],[66,2],[68,1],[68,1],[56,4],[74,0],[74,1],[74,3],[74,4],[74,6],[24,1],[24,2],[24,3],[24,4],[24,2],[24,3],[24,4],[24,5],[15,3],[15,3],[15,1],[15,2],[78,0],[78,1],[79,2],[79,4],[62,1],[62,1],[41,2],[55,2],[55,4],[89,1],[89,1],[61,5],[72,3],[72,2],[72,2],[84,1],[84,3],[84,4],[84,4],[84,6],[91,1],[91,1],[92,1],[92,3],[20,2],[20,3],[20,4],[20,5],[94,3],[11,2],[60,3],[60,5],[100,2],[100,4],[100,2],[100,4],[21,2],[21,2],[21,2],[21,1],[104,2],[104,2],[22,2],[22,2],[22,2],[106,2],[106,2],[108,2],[108,3],[112,1],[112,1],[112,1],[110,1],[110,3],[109,2],[109,2],[109,4],[109,4],[109,4],[109,6],[109,6],[23,5],[23,7],[23,4],[23,6],[117,1],[117,2],[119,3],[119,4],[121,3],[121,5],[19,1],[19,3],[19,3],[19,3],[17,2],[17,2],[17,2],[17,2],[17,2],[17,2],[17,2],[17,2],[17,3],[17,3],[17,3],[17,3],[17,3],[17,3],[17,3],[17,3],[17,5],[17,3]],
  1129. performAction: function anonymous(yytext,yyleng,yylineno,yy,yystate,$$,_$) {
  1130. var $0 = $$.length - 1;
  1131. switch (yystate) {
  1132. case 1:return this.$ = new yy.Block;
  1133. break;
  1134. case 2:return this.$ = $$[$0];
  1135. break;
  1136. case 3:return this.$ = $$[$0-1];
  1137. break;
  1138. case 4:this.$ = yy.Block.wrap([$$[$0]]);
  1139. break;
  1140. case 5:this.$ = $$[$0-2].push($$[$0]);
  1141. break;
  1142. case 6:this.$ = $$[$0-1];
  1143. break;
  1144. case 7:this.$ = $$[$0];
  1145. break;
  1146. case 8:this.$ = $$[$0];
  1147. break;
  1148. case 9:this.$ = $$[$0];
  1149. break;
  1150. case 10:this.$ = $$[$0];
  1151. break;
  1152. case 11:this.$ = $$[$0];
  1153. break;
  1154. case 12:this.$ = new yy.Literal($$[$0]);
  1155. break;
  1156. case 13:this.$ = $$[$0];
  1157. break;
  1158. case 14:this.$ = $$[$0];
  1159. break;
  1160. case 15:this.$ = $$[$0];
  1161. break;
  1162. case 16:this.$ = $$[$0];
  1163. break;
  1164. case 17:this.$ = $$[$0];
  1165. break;
  1166. case 18:this.$ = $$[$0];
  1167. break;
  1168. case 19:this.$ = $$[$0];
  1169. break;
  1170. case 20:this.$ = $$[$0];
  1171. break;
  1172. case 21:this.$ = $$[$0];
  1173. break;
  1174. case 22:this.$ = $$[$0];
  1175. break;
  1176. case 23:this.$ = $$[$0];
  1177. break;
  1178. case 24:this.$ = new yy.Block;
  1179. break;
  1180. case 25:this.$ = $$[$0-1];
  1181. break;
  1182. case 26:this.$ = new yy.Literal($$[$0]);
  1183. break;
  1184. case 27:this.$ = new yy.Literal($$[$0]);
  1185. break;
  1186. case 28:this.$ = new yy.Literal($$[$0]);
  1187. break;
  1188. case 29:this.$ = $$[$0];
  1189. break;
  1190. case 30:this.$ = new yy.Literal($$[$0]);
  1191. break;
  1192. case 31:this.$ = new yy.Literal($$[$0]);
  1193. break;
  1194. case 32:this.$ = (function () {
  1195. var val;
  1196. val = new yy.Literal($$[$0]);
  1197. if ($$[$0] === 'undefined') {
  1198. val.isUndefined = true;
  1199. }
  1200. return val;
  1201. }());
  1202. break;
  1203. case 33:this.$ = new yy.Assign($$[$0-2], $$[$0]);
  1204. break;
  1205. case 34:this.$ = new yy.Assign($$[$0-4], $$[$0-1]);
  1206. break;
  1207. case 35:this.$ = new yy.Value($$[$0]);
  1208. break;
  1209. case 36:this.$ = new yy.Assign(new yy.Value($$[$0-2]), $$[$0], 'object');
  1210. break;
  1211. case 37:this.$ = new yy.Assign(new yy.Value($$[$0-4]), $$[$0-1], 'object');
  1212. break;
  1213. case 38:this.$ = $$[$0];
  1214. break;
  1215. case 39:this.$ = $$[$0];
  1216. break;
  1217. case 40:this.$ = $$[$0];
  1218. break;
  1219. case 41:this.$ = $$[$0];
  1220. break;
  1221. case 42:this.$ = new yy.Return($$[$0]);
  1222. break;
  1223. case 43:this.$ = new yy.Return;
  1224. break;
  1225. case 44:this.$ = new yy.Comment($$[$0]);
  1226. break;
  1227. case 45:this.$ = new yy.Code($$[$0-3], $$[$0], $$[$0-1]);
  1228. break;
  1229. case 46:this.$ = new yy.Code([], $$[$0], $$[$0-1]);
  1230. break;
  1231. case 47:this.$ = 'func';
  1232. break;
  1233. case 48:this.$ = 'boundfunc';
  1234. break;
  1235. case 49:this.$ = $$[$0];
  1236. break;
  1237. case 50:this.$ = $$[$0];
  1238. break;
  1239. case 51:this.$ = [];
  1240. break;
  1241. case 52:this.$ = [$$[$0]];
  1242. break;
  1243. case 53:this.$ = $$[$0-2].concat($$[$0]);
  1244. break;
  1245. case 54:this.$ = new yy.Param($$[$0]);
  1246. break;
  1247. case 55:this.$ = new yy.Param($$[$0-1], null, true);
  1248. break;
  1249. case 56:this.$ = new yy.Param($$[$0-2], $$[$0]);
  1250. break;
  1251. case 57:this.$ = $$[$0];
  1252. break;
  1253. case 58:this.$ = $$[$0];
  1254. break;
  1255. case 59:this.$ = $$[$0];
  1256. break;
  1257. case 60:this.$ = $$[$0];
  1258. break;
  1259. case 61:this.$ = new yy.Splat($$[$0-1]);
  1260. break;
  1261. case 62:this.$ = new yy.Value($$[$0]);
  1262. break;
  1263. case 63:this.$ = $$[$0-1].push($$[$0]);
  1264. break;
  1265. case 64:this.$ = new yy.Value($$[$0-1], [$$[$0]]);
  1266. break;
  1267. case 65:this.$ = $$[$0];
  1268. break;
  1269. case 66:this.$ = $$[$0];
  1270. break;
  1271. case 67:this.$ = new yy.Value($$[$0]);
  1272. break;
  1273. case 68:this.$ = new yy.Value($$[$0]);
  1274. break;
  1275. case 69:this.$ = $$[$0];
  1276. break;
  1277. case 70:this.$ = new yy.Value($$[$0]);
  1278. break;
  1279. case 71:this.$ = new yy.Value($$[$0]);
  1280. break;
  1281. case 72:this.$ = new yy.Value($$[$0]);
  1282. break;
  1283. case 73:this.$ = $$[$0];
  1284. break;
  1285. case 74:this.$ = new yy.Access($$[$0]);
  1286. break;
  1287. case 75:this.$ = new yy.Access($$[$0], 'soak');
  1288. break;
  1289. case 76:this.$ = new yy.Access($$[$0], 'proto');
  1290. break;
  1291. case 77:this.$ = new yy.Access(new yy.Literal('prototype'));
  1292. break;
  1293. case 78:this.$ = $$[$0];
  1294. break;
  1295. case 79:this.$ = $$[$0-1];
  1296. break;
  1297. case 80:this.$ = yy.extend($$[$0], {
  1298. soak: true
  1299. });
  1300. break;
  1301. case 81:this.$ = yy.extend($$[$0], {
  1302. proto: true
  1303. });
  1304. break;
  1305. case 82:this.$ = new yy.Index($$[$0]);
  1306. break;
  1307. case 83:this.$ = new yy.Slice($$[$0]);
  1308. break;
  1309. case 84:this.$ = new yy.Obj($$[$0-2], $$[$0-3].generated);
  1310. break;
  1311. case 85:this.$ = [];
  1312. break;
  1313. case 86:this.$ = [$$[$0]];
  1314. break;
  1315. case 87:this.$ = $$[$0-2].concat($$[$0]);
  1316. break;
  1317. case 88:this.$ = $$[$0-3].concat($$[$0]);
  1318. break;
  1319. case 89:this.$ = $$[$0-5].concat($$[$0-2]);
  1320. break;
  1321. case 90:this.$ = new yy.Class;
  1322. break;
  1323. case 91:this.$ = new yy.Class(null, null, $$[$0]);
  1324. break;
  1325. case 92:this.$ = new yy.Class(null, $$[$0]);
  1326. break;
  1327. case 93:this.$ = new yy.Class(null, $$[$0-1], $$[$0]);
  1328. break;
  1329. case 94:this.$ = new yy.Class($$[$0]);
  1330. break;
  1331. case 95:this.$ = new yy.Class($$[$0-1], null, $$[$0]);
  1332. break;
  1333. case 96:this.$ = new yy.Class($$[$0-2], $$[$0]);
  1334. break;
  1335. case 97:this.$ = new yy.Class($$[$0-3], $$[$0-1], $$[$0]);
  1336. break;
  1337. case 98:this.$ = new yy.Call($$[$0-2], $$[$0], $$[$0-1]);
  1338. break;
  1339. case 99:this.$ = new yy.Call($$[$0-2], $$[$0], $$[$0-1]);
  1340. break;
  1341. case 100:this.$ = new yy.Call('super', [new yy.Splat(new yy.Literal('arguments'))]);
  1342. break;
  1343. case 101:this.$ = new yy.Call('super', $$[$0]);
  1344. break;
  1345. case 102:this.$ = false;
  1346. break;
  1347. case 103:this.$ = true;
  1348. break;
  1349. case 104:this.$ = [];
  1350. break;
  1351. case 105:this.$ = $$[$0-2];
  1352. break;
  1353. case 106:this.$ = new yy.Value(new yy.Literal('this'));
  1354. break;
  1355. case 107:this.$ = new yy.Value(new yy.Literal('this'));
  1356. break;
  1357. case 108:this.$ = new yy.Value(new yy.Literal('this'), [new yy.Access($$[$0])], 'this');
  1358. break;
  1359. case 109:this.$ = new yy.Arr([]);
  1360. break;
  1361. case 110:this.$ = new yy.Arr($$[$0-2]);
  1362. break;
  1363. case 111:this.$ = 'inclusive';
  1364. break;
  1365. case 112:this.$ = 'exclusive';
  1366. break;
  1367. case 113:this.$ = new yy.Range($$[$0-3], $$[$0-1], $$[$0-2]);
  1368. break;
  1369. case 114:this.$ = new yy.Range($$[$0-2], $$[$0], $$[$0-1]);
  1370. break;
  1371. case 115:this.$ = new yy.Range($$[$0-1], null, $$[$0]);
  1372. break;
  1373. case 116:this.$ = new yy.Range(null, $$[$0], $$[$0-1]);
  1374. break;
  1375. case 117:this.$ = [$$[$0]];
  1376. break;
  1377. case 118:this.$ = $$[$0-2].concat($$[$0]);
  1378. break;
  1379. case 119:this.$ = $$[$0-3].concat($$[$0]);
  1380. break;
  1381. case 120:this.$ = $$[$0-2];
  1382. break;
  1383. case 121:this.$ = $$[$0-5].concat($$[$0-2]);
  1384. break;
  1385. case 122:this.$ = $$[$0];
  1386. break;
  1387. case 123:this.$ = $$[$0];
  1388. break;
  1389. case 124:this.$ = $$[$0];
  1390. break;
  1391. case 125:this.$ = [].concat($$[$0-2], $$[$0]);
  1392. break;
  1393. case 126:this.$ = new yy.Try($$[$0]);
  1394. break;
  1395. case 127:this.$ = new yy.Try($$[$0-1], $$[$0][0], $$[$0][1]);
  1396. break;
  1397. case 128:this.$ = new yy.Try($$[$0-2], null, null, $$[$0]);
  1398. break;
  1399. case 129:this.$ = new yy.Try($$[$0-3], $$[$0-2][0], $$[$0-2][1], $$[$0]);
  1400. break;
  1401. case 130:this.$ = [$$[$0-1], $$[$0]];
  1402. break;
  1403. case 131:this.$ = new yy.Throw($$[$0]);
  1404. break;
  1405. case 132:this.$ = new yy.Parens($$[$0-1]);
  1406. break;
  1407. case 133:this.$ = new yy.Parens($$[$0-2]);
  1408. break;
  1409. case 134:this.$ = new yy.While($$[$0]);
  1410. break;
  1411. case 135:this.$ = new yy.While($$[$0-2], {
  1412. guard: $$[$0]
  1413. });
  1414. break;
  1415. case 136:this.$ = new yy.While($$[$0], {
  1416. invert: true
  1417. });
  1418. break;
  1419. case 137:this.$ = new yy.While($$[$0-2], {
  1420. invert: true,
  1421. guard: $$[$0]
  1422. });
  1423. break;
  1424. case 138:this.$ = $$[$0-1].addBody($$[$0]);
  1425. break;
  1426. case 139:this.$ = $$[$0].addBody(yy.Block.wrap([$$[$0-1]]));
  1427. break;
  1428. case 140:this.$ = $$[$0].addBody(yy.Block.wrap([$$[$0-1]]));
  1429. break;
  1430. case 141:this.$ = $$[$0];
  1431. break;
  1432. case 142:this.$ = new yy.While(new yy.Literal('true')).addBody($$[$0]);
  1433. break;
  1434. case 143:this.$ = new yy.While(new yy.Literal('true')).addBody(yy.Block.wrap([$$[$0]]));
  1435. break;
  1436. case 144:this.$ = new yy.For($$[$0-1], $$[$0]);
  1437. break;
  1438. case 145:this.$ = new yy.For($$[$0-1], $$[$0]);
  1439. break;
  1440. case 146:this.$ = new yy.For($$[$0], $$[$0-1]);
  1441. break;
  1442. case 147:this.$ = {
  1443. source: new yy.Value($$[$0])
  1444. };
  1445. break;
  1446. case 148:this.$ = (function () {
  1447. $$[$0].own = $$[$0-1].own;
  1448. $$[$0].name = $$[$0-1][0];
  1449. $$[$0].index = $$[$0-1][1];
  1450. return $$[$0];
  1451. }());
  1452. break;
  1453. case 149:this.$ = $$[$0];
  1454. break;
  1455. case 150:this.$ = (function () {
  1456. $$[$0].own = true;
  1457. return $$[$0];
  1458. }());
  1459. break;
  1460. case 151:this.$ = $$[$0];
  1461. break;
  1462. case 152:this.$ = new yy.Value($$[$0]);
  1463. break;
  1464. case 153:this.$ = new yy.Value($$[$0]);
  1465. break;
  1466. case 154:this.$ = [$$[$0]];
  1467. break;
  1468. case 155:this.$ = [$$[$0-2], $$[$0]];
  1469. break;
  1470. case 156:this.$ = {
  1471. source: $$[$0]
  1472. };
  1473. break;
  1474. case 157:this.$ = {
  1475. source: $$[$0],
  1476. object: true
  1477. };
  1478. break;
  1479. case 158:this.$ = {
  1480. source: $$[$0-2],
  1481. guard: $$[$0]
  1482. };
  1483. break;
  1484. case 159:this.$ = {
  1485. source: $$[$0-2],
  1486. guard: $$[$0],
  1487. object: true
  1488. };
  1489. break;
  1490. case 160:this.$ = {
  1491. source: $$[$0-2],
  1492. step: $$[$0]
  1493. };
  1494. break;
  1495. case 161:this.$ = {
  1496. source: $$[$0-4],
  1497. guard: $$[$0-2],
  1498. step: $$[$0]
  1499. };
  1500. break;
  1501. case 162:this.$ = {
  1502. source: $$[$0-4],
  1503. step: $$[$0-2],
  1504. guard: $$[$0]
  1505. };
  1506. break;
  1507. case 163:this.$ = new yy.Switch($$[$0-3], $$[$0-1]);
  1508. break;
  1509. case 164:this.$ = new yy.Switch($$[$0-5], $$[$0-3], $$[$0-1]);
  1510. break;
  1511. case 165:this.$ = new yy.Switch(null, $$[$0-1]);
  1512. break;
  1513. case 166:this.$ = new yy.Switch(null, $$[$0-3], $$[$0-1]);
  1514. break;
  1515. case 167:this.$ = $$[$0];
  1516. break;
  1517. case 168:this.$ = $$[$0-1].concat($$[$0]);
  1518. break;
  1519. case 169:this.$ = [[$$[$0-1], $$[$0]]];
  1520. break;
  1521. case 170:this.$ = [[$$[$0-2], $$[$0-1]]];
  1522. break;
  1523. case 171:this.$ = new yy.If($$[$0-1], $$[$0], {
  1524. type: $$[$0-2]
  1525. });
  1526. break;
  1527. case 172:this.$ = $$[$0-4].addElse(new yy.If($$[$0-1], $$[$0], {
  1528. type: $$[$0-2]
  1529. }));
  1530. break;
  1531. case 173:this.$ = $$[$0];
  1532. break;
  1533. case 174:this.$ = $$[$0-2].addElse($$[$0]);
  1534. break;
  1535. case 175:this.$ = new yy.If($$[$0], yy.Block.wrap([$$[$0-2]]), {
  1536. type: $$[$0-1],
  1537. statement: true
  1538. });
  1539. break;
  1540. case 176:this.$ = new yy.If($$[$0], yy.Block.wrap([$$[$0-2]]), {
  1541. type: $$[$0-1],
  1542. statement: true
  1543. });
  1544. break;
  1545. case 177:this.$ = new yy.Op($$[$0-1], $$[$0]);
  1546. break;
  1547. case 178:this.$ = new yy.Op('-', $$[$0]);
  1548. break;
  1549. case 179:this.$ = new yy.Op('+', $$[$0]);
  1550. break;
  1551. case 180:this.$ = new yy.Op('--', $$[$0]);
  1552. break;
  1553. case 181:this.$ = new yy.Op('++', $$[$0]);
  1554. break;
  1555. case 182:this.$ = new yy.Op('--', $$[$0-1], null, true);
  1556. break;
  1557. case 183:this.$ = new yy.Op('++', $$[$0-1], null, true);
  1558. break;
  1559. case 184:this.$ = new yy.Existence($$[$0-1]);
  1560. break;
  1561. case 185:this.$ = new yy.Op('+', $$[$0-2], $$[$0]);
  1562. break;
  1563. case 186:this.$ = new yy.Op('-', $$[$0-2], $$[$0]);
  1564. break;
  1565. case 187:this.$ = new yy.Op($$[$0-1], $$[$0-2], $$[$0]);
  1566. break;
  1567. case 188:this.$ = new yy.Op($$[$0-1], $$[$0-2], $$[$0]);
  1568. break;
  1569. case 189:this.$ = new yy.Op($$[$0-1], $$[$0-2], $$[$0]);
  1570. break;
  1571. case 190:this.$ = new yy.Op($$[$0-1], $$[$0-2], $$[$0]);
  1572. break;
  1573. case 191:this.$ = (function () {
  1574. if ($$[$0-1].charAt(0) === '!') {
  1575. return new yy.Op($$[$0-1].slice(1), $$[$0-2], $$[$0]).invert();
  1576. } else {
  1577. return new yy.Op($$[$0-1], $$[$0-2], $$[$0]);
  1578. }
  1579. }());
  1580. break;
  1581. case 192:this.$ = new yy.Assign($$[$0-2], $$[$0], $$[$0-1]);
  1582. break;
  1583. case 193:this.$ = new yy.Assign($$[$0-4], $$[$0-1], $$[$0-3]);
  1584. break;
  1585. case 194:this.$ = new yy.Extends($$[$0-2], $$[$0]);
  1586. break;
  1587. }
  1588. },
  1589. table: [{1:[2,1],3:1,4:2,5:3,7:4,8:6,9:7,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,25:[1,5],27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{1:[3]},{1:[2,2],6:[1,71]},{6:[1,72]},{1:[2,4],6:[2,4],26:[2,4],99:[2,4]},{4:74,7:4,8:6,9:7,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,26:[1,73],27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{1:[2,7],6:[2,7],26:[2,7],99:[2,7],100:84,101:[1,62],103:[1,63],106:85,107:[1,65],108:66,123:[1,83],125:[1,77],126:[1,76],129:[1,75],130:[1,78],131:[1,79],132:[1,80],133:[1,81],134:[1,82]},{1:[2,8],6:[2,8],26:[2,8],99:[2,8],100:87,101:[1,62],103:[1,63],106:88,107:[1,65],108:66,123:[1,86]},{1:[2,13],6:[2,13],25:[2,13],26:[2,13],46:[2,13],51:[2,13],54:[2,13],59:90,63:[1,92],64:[1,93],65:[1,94],66:95,67:[1,96],69:[2,13],70:[1,97],71:[1,98],75:[2,13],78:89,81:[1,91],82:[2,102],83:[2,13],88:[2,13],90:[2,13],99:[2,13],101:[2,13],102:[2,13],103:[2,13],107:[2,13],115:[2,13],123:[2,13],125:[2,13],126:[2,13],129:[2,13],130:[2,13],131:[2,13],132:[2,13],133:[2,13],134:[2,13]},{1:[2,14],6:[2,14],25:[2,14],26:[2,14],46:[2,14],51:[2,14],54:[2,14],59:100,63:[1,92],64:[1,93],65:[1,94],66:95,67:[1,96],69:[2,14],70:[1,97],71:[1,98],75:[2,14],78:99,81:[1,91],82:[2,102],83:[2,14],88:[2,14],90:[2,14],99:[2,14],101:[2,14],102:[2,14],103:[2,14],107:[2,14],115:[2,14],123:[2,14],125:[2,14],126:[2,14],129:[2,14],130:[2,14],131:[2,14],132:[2,14],133:[2,14],134:[2,14]},{1:[2,15],6:[2,15],25:[2,15],26:[2,15],46:[2,15],51:[2,15],54:[2,15],69:[2,15],75:[2,15],83:[2,15],88:[2,15],90:[2,15],99:[2,15],101:[2,15],102:[2,15],103:[2,15],107:[2,15],115:[2,15],123:[2,15],125:[2,15],126:[2,15],129:[2,15],130:[2,15],131:[2,15],132:[2,15],133:[2,15],134:[2,15]},{1:[2,16],6:[2,16],25:[2,16],26:[2,16],46:[2,16],51:[2,16],54:[2,16],69:[2,16],75:[2,16],83:[2,16],88:[2,16],90:[2,16],99:[2,16],101:[2,16],102:[2,16],103:[2,16],107:[2,16],115:[2,16],123:[2,16],125:[2,16],126:[2,16],129:[2,16],130:[2,16],131:[2,16],132:[2,16],133:[2,16],134:[2,16]},{1:[2,17],6:[2,17],25:[2,17],26:[2,17],46:[2,17],51:[2,17],54:[2,17],69:[2,17],75:[2,17],83:[2,17],88:[2,17],90:[2,17],99:[2,17],101:[2,17],102:[2,17],103:[2,17],107:[2,17],115:[2,17],123:[2,17],125:[2,17],126:[2,17],129:[2,17],130:[2,17],131:[2,17],132:[2,17],133:[2,17],134:[2,17]},{1:[2,18],6:[2,18],25:[2,18],26:[2,18],46:[2,18],51:[2,18],54:[2,18],69:[2,18],75:[2,18],83:[2,18],88:[2,18],90:[2,18],99:[2,18],101:[2,18],102:[2,18],103:[2,18],107:[2,18],115:[2,18],123:[2,18],125:[2,18],126:[2,18],129:[2,18],130:[2,18],131:[2,18],132:[2,18],133:[2,18],134:[2,18]},{1:[2,19],6:[2,19],25:[2,19],26:[2,19],46:[2,19],51:[2,19],54:[2,19],69:[2,19],75:[2,19],83:[2,19],88:[2,19],90:[2,19],99:[2,19],101:[2,19],102:[2,19],103:[2,19],107:[2,19],115:[2,19],123:[2,19],125:[2,19],126:[2,19],129:[2,19],130:[2,19],131:[2,19],132:[2,19],133:[2,19],134:[2,19]},{1:[2,20],6:[2,20],25:[2,20],26:[2,20],46:[2,20],51:[2,20],54:[2,20],69:[2,20],75:[2,20],83:[2,20],88:[2,20],90:[2,20],99:[2,20],101:[2,20],102:[2,20],103:[2,20],107:[2,20],115:[2,20],123:[2,20],125:[2,20],126:[2,20],129:[2,20],130:[2,20],131:[2,20],132:[2,20],133:[2,20],134:[2,20]},{1:[2,21],6:[2,21],25:[2,21],26:[2,21],46:[2,21],51:[2,21],54:[2,21],69:[2,21],75:[2,21],83:[2,21],88:[2,21],90:[2,21],99:[2,21],101:[2,21],102:[2,21],103:[2,21],107:[2,21],115:[2,21],123:[2,21],125:[2,21],126:[2,21],129:[2,21],130:[2,21],131:[2,21],132:[2,21],133:[2,21],134:[2,21]},{1:[2,22],6:[2,22],25:[2,22],26:[2,22],46:[2,22],51:[2,22],54:[2,22],69:[2,22],75:[2,22],83:[2,22],88:[2,22],90:[2,22],99:[2,22],101:[2,22],102:[2,22],103:[2,22],107:[2,22],115:[2,22],123:[2,22],125:[2,22],126:[2,22],129:[2,22],130:[2,22],131:[2,22],132:[2,22],133:[2,22],134:[2,22]},{1:[2,23],6:[2,23],25:[2,23],26:[2,23],46:[2,23],51:[2,23],54:[2,23],69:[2,23],75:[2,23],83:[2,23],88:[2,23],90:[2,23],99:[2,23],101:[2,23],102:[2,23],103:[2,23],107:[2,23],115:[2,23],123:[2,23],125:[2,23],126:[2,23],129:[2,23],130:[2,23],131:[2,23],132:[2,23],133:[2,23],134:[2,23]},{1:[2,9],6:[2,9],26:[2,9],99:[2,9],101:[2,9],103:[2,9],107:[2,9],123:[2,9]},{1:[2,10],6:[2,10],26:[2,10],99:[2,10],101:[2,10],103:[2,10],107:[2,10],123:[2,10]},{1:[2,11],6:[2,11],26:[2,11],99:[2,11],101:[2,11],103:[2,11],107:[2,11],123:[2,11]},{1:[2,12],6:[2,12],26:[2,12],99:[2,12],101:[2,12],103:[2,12],107:[2,12],123:[2,12]},{1:[2,69],6:[2,69],25:[2,69],26:[2,69],37:[1,101],46:[2,69],51:[2,69],54:[2,69],63:[2,69],64:[2,69],65:[2,69],67:[2,69],69:[2,69],70:[2,69],71:[2,69],75:[2,69],81:[2,69],82:[2,69],83:[2,69],88:[2,69],90:[2,69],99:[2,69],101:[2,69],102:[2,69],103:[2,69],107:[2,69],115:[2,69],123:[2,69],125:[2,69],126:[2,69],129:[2,69],130:[2,69],131:[2,69],132:[2,69],133:[2,69],134:[2,69]},{1:[2,70],6:[2,70],25:[2,70],26:[2,70],46:[2,70],51:[2,70],54:[2,70],63:[2,70],64:[2,70],65:[2,70],67:[2,70],69:[2,70],70:[2,70],71:[2,70],75:[2,70],81:[2,70],82:[2,70],83:[2,70],88:[2,70],90:[2,70],99:[2,70],101:[2,70],102:[2,70],103:[2,70],107:[2,70],115:[2,70],123:[2,70],125:[2,70],126:[2,70],129:[2,70],130:[2,70],131:[2,70],132:[2,70],133:[2,70],134:[2,70]},{1:[2,71],6:[2,71],25:[2,71],26:[2,71],46:[2,71],51:[2,71],54:[2,71],63:[2,71],64:[2,71],65:[2,71],67:[2,71],69:[2,71],70:[2,71],71:[2,71],75:[2,71],81:[2,71],82:[2,71],83:[2,71],88:[2,71],90:[2,71],99:[2,71],101:[2,71],102:[2,71],103:[2,71],107:[2,71],115:[2,71],123:[2,71],125:[2,71],126:[2,71],129:[2,71],130:[2,71],131:[2,71],132:[2,71],133:[2,71],134:[2,71]},{1:[2,72],6:[2,72],25:[2,72],26:[2,72],46:[2,72],51:[2,72],54:[2,72],63:[2,72],64:[2,72],65:[2,72],67:[2,72],69:[2,72],70:[2,72],71:[2,72],75:[2,72],81:[2,72],82:[2,72],83:[2,72],88:[2,72],90:[2,72],99:[2,72],101:[2,72],102:[2,72],103:[2,72],107:[2,72],115:[2,72],123:[2,72],125:[2,72],126:[2,72],129:[2,72],130:[2,72],131:[2,72],132:[2,72],133:[2,72],134:[2,72]},{1:[2,73],6:[2,73],25:[2,73],26:[2,73],46:[2,73],51:[2,73],54:[2,73],63:[2,73],64:[2,73],65:[2,73],67:[2,73],69:[2,73],70:[2,73],71:[2,73],75:[2,73],81:[2,73],82:[2,73],83:[2,73],88:[2,73],90:[2,73],99:[2,73],101:[2,73],102:[2,73],103:[2,73],107:[2,73],115:[2,73],123:[2,73],125:[2,73],126:[2,73],129:[2,73],130:[2,73],131:[2,73],132:[2,73],133:[2,73],134:[2,73]},{1:[2,100],6:[2,100],25:[2,100],26:[2,100],46:[2,100],51:[2,100],54:[2,100],63:[2,100],64:[2,100],65:[2,100],67:[2,100],69:[2,100],70:[2,100],71:[2,100],75:[2,100],79:102,81:[2,100],82:[1,103],83:[2,100],88:[2,100],90:[2,100],99:[2,100],101:[2,100],102:[2,100],103:[2,100],107:[2,100],115:[2,100],123:[2,100],125:[2,100],126:[2,100],129:[2,100],130:[2,100],131:[2,100],132:[2,100],133:[2,100],134:[2,100]},{27:107,28:[1,70],41:108,45:104,46:[2,51],51:[2,51],52:105,53:106,55:109,56:110,73:[1,67],86:[1,111],87:[1,112]},{5:113,25:[1,5]},{8:114,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{8:116,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{8:117,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{14:119,15:120,27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:121,41:60,55:47,56:48,58:118,60:25,61:26,62:27,73:[1,67],80:[1,28],85:[1,55],86:[1,56],87:[1,54],98:[1,53]},{14:119,15:120,27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:121,41:60,55:47,56:48,58:122,60:25,61:26,62:27,73:[1,67],80:[1,28],85:[1,55],86:[1,56],87:[1,54],98:[1,53]},{1:[2,66],6:[2,66],25:[2,66],26:[2,66],37:[2,66],46:[2,66],51:[2,66],54:[2,66],63:[2,66],64:[2,66],65:[2,66],67:[2,66],69:[2,66],70:[2,66],71:[2,66],75:[2,66],77:[1,126],81:[2,66],82:[2,66],83:[2,66],88:[2,66],90:[2,66],99:[2,66],101:[2,66],102:[2,66],103:[2,66],107:[2,66],115:[2,66],123:[2,66],125:[2,66],126:[2,66],127:[1,123],128:[1,124],129:[2,66],130:[2,66],131:[2,66],132:[2,66],133:[2,66],134:[2,66],135:[1,125]},{1:[2,173],6:[2,173],25:[2,173],26:[2,173],46:[2,173],51:[2,173],54:[2,173],69:[2,173],75:[2,173],83:[2,173],88:[2,173],90:[2,173],99:[2,173],101:[2,173],102:[2,173],103:[2,173],107:[2,173],115:[2,173],118:[1,127],123:[2,173],125:[2,173],126:[2,173],129:[2,173],130:[2,173],131:[2,173],132:[2,173],133:[2,173],134:[2,173]},{5:128,25:[1,5]},{5:129,25:[1,5]},{1:[2,141],6:[2,141],25:[2,141],26:[2,141],46:[2,141],51:[2,141],54:[2,141],69:[2,141],75:[2,141],83:[2,141],88:[2,141],90:[2,141],99:[2,141],101:[2,141],102:[2,141],103:[2,141],107:[2,141],115:[2,141],123:[2,141],125:[2,141],126:[2,141],129:[2,141],130:[2,141],131:[2,141],132:[2,141],133:[2,141],134:[2,141]},{5:130,25:[1,5]},{8:131,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,25:[1,132],27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{1:[2,90],5:133,6:[2,90],14:119,15:120,25:[1,5],26:[2,90],27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:121,41:60,46:[2,90],51:[2,90],54:[2,90],55:47,56:48,58:135,60:25,61:26,62:27,69:[2,90],73:[1,67],75:[2,90],77:[1,134],80:[1,28],83:[2,90],85:[1,55],86:[1,56],87:[1,54],88:[2,90],90:[2,90],98:[1,53],99:[2,90],101:[2,90],102:[2,90],103:[2,90],107:[2,90],115:[2,90],123:[2,90],125:[2,90],126:[2,90],129:[2,90],130:[2,90],131:[2,90],132:[2,90],133:[2,90],134:[2,90]},{1:[2,43],6:[2,43],8:136,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,26:[2,43],27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],99:[2,43],100:39,101:[2,43],103:[2,43],104:40,105:[1,64],106:41,107:[2,43],108:66,116:[1,42],121:37,122:[1,61],123:[2,43],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{8:137,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{1:[2,44],6:[2,44],25:[2,44],26:[2,44],51:[2,44],75:[2,44],99:[2,44],101:[2,44],103:[2,44],107:[2,44],123:[2,44]},{1:[2,67],6:[2,67],25:[2,67],26:[2,67],37:[2,67],46:[2,67],51:[2,67],54:[2,67],63:[2,67],64:[2,67],65:[2,67],67:[2,67],69:[2,67],70:[2,67],71:[2,67],75:[2,67],81:[2,67],82:[2,67],83:[2,67],88:[2,67],90:[2,67],99:[2,67],101:[2,67],102:[2,67],103:[2,67],107:[2,67],115:[2,67],123:[2,67],125:[2,67],126:[2,67],129:[2,67],130:[2,67],131:[2,67],132:[2,67],133:[2,67],134:[2,67]},{1:[2,68],6:[2,68],25:[2,68],26:[2,68],37:[2,68],46:[2,68],51:[2,68],54:[2,68],63:[2,68],64:[2,68],65:[2,68],67:[2,68],69:[2,68],70:[2,68],71:[2,68],75:[2,68],81:[2,68],82:[2,68],83:[2,68],88:[2,68],90:[2,68],99:[2,68],101:[2,68],102:[2,68],103:[2,68],107:[2,68],115:[2,68],123:[2,68],125:[2,68],126:[2,68],129:[2,68],130:[2,68],131:[2,68],132:[2,68],133:[2,68],134:[2,68]},{1:[2,29],6:[2,29],25:[2,29],26:[2,29],46:[2,29],51:[2,29],54:[2,29],63:[2,29],64:[2,29],65:[2,29],67:[2,29],69:[2,29],70:[2,29],71:[2,29],75:[2,29],81:[2,29],82:[2,29],83:[2,29],88:[2,29],90:[2,29],99:[2,29],101:[2,29],102:[2,29],103:[2,29],107:[2,29],115:[2,29],123:[2,29],125:[2,29],126:[2,29],129:[2,29],130:[2,29],131:[2,29],132:[2,29],133:[2,29],134:[2,29]},{1:[2,30],6:[2,30],25:[2,30],26:[2,30],46:[2,30],51:[2,30],54:[2,30],63:[2,30],64:[2,30],65:[2,30],67:[2,30],69:[2,30],70:[2,30],71:[2,30],75:[2,30],81:[2,30],82:[2,30],83:[2,30],88:[2,30],90:[2,30],99:[2,30],101:[2,30],102:[2,30],103:[2,30],107:[2,30],115:[2,30],123:[2,30],125:[2,30],126:[2,30],129:[2,30],130:[2,30],131:[2,30],132:[2,30],133:[2,30],134:[2,30]},{1:[2,31],6:[2,31],25:[2,31],26:[2,31],46:[2,31],51:[2,31],54:[2,31],63:[2,31],64:[2,31],65:[2,31],67:[2,31],69:[2,31],70:[2,31],71:[2,31],75:[2,31],81:[2,31],82:[2,31],83:[2,31],88:[2,31],90:[2,31],99:[2,31],101:[2,31],102:[2,31],103:[2,31],107:[2,31],115:[2,31],123:[2,31],125:[2,31],126:[2,31],129:[2,31],130:[2,31],131:[2,31],132:[2,31],133:[2,31],134:[2,31]},{1:[2,32],6:[2,32],25:[2,32],26:[2,32],46:[2,32],51:[2,32],54:[2,32],63:[2,32],64:[2,32],65:[2,32],67:[2,32],69:[2,32],70:[2,32],71:[2,32],75:[2,32],81:[2,32],82:[2,32],83:[2,32],88:[2,32],90:[2,32],99:[2,32],101:[2,32],102:[2,32],103:[2,32],107:[2,32],115:[2,32],123:[2,32],125:[2,32],126:[2,32],129:[2,32],130:[2,32],131:[2,32],132:[2,32],133:[2,32],134:[2,32]},{4:138,7:4,8:6,9:7,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,25:[1,139],27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{8:140,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,25:[1,144],27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,57:145,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],84:142,85:[1,55],86:[1,56],87:[1,54],88:[1,141],91:143,93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{1:[2,106],6:[2,106],25:[2,106],26:[2,106],46:[2,106],51:[2,106],54:[2,106],63:[2,106],64:[2,106],65:[2,106],67:[2,106],69:[2,106],70:[2,106],71:[2,106],75:[2,106],81:[2,106],82:[2,106],83:[2,106],88:[2,106],90:[2,106],99:[2,106],101:[2,106],102:[2,106],103:[2,106],107:[2,106],115:[2,106],123:[2,106],125:[2,106],126:[2,106],129:[2,106],130:[2,106],131:[2,106],132:[2,106],133:[2,106],134:[2,106]},{1:[2,107],6:[2,107],25:[2,107],26:[2,107],27:146,28:[1,70],46:[2,107],51:[2,107],54:[2,107],63:[2,107],64:[2,107],65:[2,107],67:[2,107],69:[2,107],70:[2,107],71:[2,107],75:[2,107],81:[2,107],82:[2,107],83:[2,107],88:[2,107],90:[2,107],99:[2,107],101:[2,107],102:[2,107],103:[2,107],107:[2,107],115:[2,107],123:[2,107],125:[2,107],126:[2,107],129:[2,107],130:[2,107],131:[2,107],132:[2,107],133:[2,107],134:[2,107]},{25:[2,47]},{25:[2,48]},{1:[2,62],6:[2,62],25:[2,62],26:[2,62],37:[2,62],46:[2,62],51:[2,62],54:[2,62],63:[2,62],64:[2,62],65:[2,62],67:[2,62],69:[2,62],70:[2,62],71:[2,62],75:[2,62],77:[2,62],81:[2,62],82:[2,62],83:[2,62],88:[2,62],90:[2,62],99:[2,62],101:[2,62],102:[2,62],103:[2,62],107:[2,62],115:[2,62],123:[2,62],125:[2,62],126:[2,62],127:[2,62],128:[2,62],129:[2,62],130:[2,62],131:[2,62],132:[2,62],133:[2,62],134:[2,62],135:[2,62]},{1:[2,65],6:[2,65],25:[2,65],26:[2,65],37:[2,65],46:[2,65],51:[2,65],54:[2,65],63:[2,65],64:[2,65],65:[2,65],67:[2,65],69:[2,65],70:[2,65],71:[2,65],75:[2,65],77:[2,65],81:[2,65],82:[2,65],83:[2,65],88:[2,65],90:[2,65],99:[2,65],101:[2,65],102:[2,65],103:[2,65],107:[2,65],115:[2,65],123:[2,65],125:[2,65],126:[2,65],127:[2,65],128:[2,65],129:[2,65],130:[2,65],131:[2,65],132:[2,65],133:[2,65],134:[2,65],135:[2,65]},{8:147,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{8:148,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{8:149,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{5:150,8:151,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,25:[1,5],27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{27:156,28:[1,70],55:157,56:158,61:152,73:[1,67],87:[1,54],110:153,111:[1,154],112:155},{109:159,113:[1,160],114:[1,161]},{6:[2,85],12:165,25:[2,85],27:166,28:[1,70],29:167,30:[1,68],31:[1,69],38:163,39:164,41:168,43:[1,46],51:[2,85],74:162,75:[2,85],86:[1,111]},{1:[2,27],6:[2,27],25:[2,27],26:[2,27],40:[2,27],46:[2,27],51:[2,27],54:[2,27],63:[2,27],64:[2,27],65:[2,27],67:[2,27],69:[2,27],70:[2,27],71:[2,27],75:[2,27],81:[2,27],82:[2,27],83:[2,27],88:[2,27],90:[2,27],99:[2,27],101:[2,27],102:[2,27],103:[2,27],107:[2,27],115:[2,27],123:[2,27],125:[2,27],126:[2,27],129:[2,27],130:[2,27],131:[2,27],132:[2,27],133:[2,27],134:[2,27]},{1:[2,28],6:[2,28],25:[2,28],26:[2,28],40:[2,28],46:[2,28],51:[2,28],54:[2,28],63:[2,28],64:[2,28],65:[2,28],67:[2,28],69:[2,28],70:[2,28],71:[2,28],75:[2,28],81:[2,28],82:[2,28],83:[2,28],88:[2,28],90:[2,28],99:[2,28],101:[2,28],102:[2,28],103:[2,28],107:[2,28],115:[2,28],123:[2,28],125:[2,28],126:[2,28],129:[2,28],130:[2,28],131:[2,28],132:[2,28],133:[2,28],134:[2,28]},{1:[2,26],6:[2,26],25:[2,26],26:[2,26],37:[2,26],40:[2,26],46:[2,26],51:[2,26],54:[2,26],63:[2,26],64:[2,26],65:[2,26],67:[2,26],69:[2,26],70:[2,26],71:[2,26],75:[2,26],77:[2,26],81:[2,26],82:[2,26],83:[2,26],88:[2,26],90:[2,26],99:[2,26],101:[2,26],102:[2,26],103:[2,26],107:[2,26],113:[2,26],114:[2,26],115:[2,26],123:[2,26],125:[2,26],126:[2,26],127:[2,26],128:[2,26],129:[2,26],130:[2,26],131:[2,26],132:[2,26],133:[2,26],134:[2,26],135:[2,26]},{1:[2,6],6:[2,6],7:169,8:6,9:7,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,26:[2,6],27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],99:[2,6],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{1:[2,3]},{1:[2,24],6:[2,24],25:[2,24],26:[2,24],46:[2,24],51:[2,24],54:[2,24],69:[2,24],75:[2,24],83:[2,24],88:[2,24],90:[2,24],95:[2,24],96:[2,24],99:[2,24],101:[2,24],102:[2,24],103:[2,24],107:[2,24],115:[2,24],118:[2,24],120:[2,24],123:[2,24],125:[2,24],126:[2,24],129:[2,24],130:[2,24],131:[2,24],132:[2,24],133:[2,24],134:[2,24]},{6:[1,71],26:[1,170]},{1:[2,184],6:[2,184],25:[2,184],26:[2,184],46:[2,184],51:[2,184],54:[2,184],69:[2,184],75:[2,184],83:[2,184],88:[2,184],90:[2,184],99:[2,184],101:[2,184],102:[2,184],103:[2,184],107:[2,184],115:[2,184],123:[2,184],125:[2,184],126:[2,184],129:[2,184],130:[2,184],131:[2,184],132:[2,184],133:[2,184],134:[2,184]},{8:171,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{8:172,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{8:173,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{8:174,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{8:175,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{8:176,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{8:177,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{8:178,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{1:[2,140],6:[2,140],25:[2,140],26:[2,140],46:[2,140],51:[2,140],54:[2,140],69:[2,140],75:[2,140],83:[2,140],88:[2,140],90:[2,140],99:[2,140],101:[2,140],102:[2,140],103:[2,140],107:[2,140],115:[2,140],123:[2,140],125:[2,140],126:[2,140],129:[2,140],130:[2,140],131:[2,140],132:[2,140],133:[2,140],134:[2,140]},{1:[2,145],6:[2,145],25:[2,145],26:[2,145],46:[2,145],51:[2,145],54:[2,145],69:[2,145],75:[2,145],83:[2,145],88:[2,145],90:[2,145],99:[2,145],101:[2,145],102:[2,145],103:[2,145],107:[2,145],115:[2,145],123:[2,145],125:[2,145],126:[2,145],129:[2,145],130:[2,145],131:[2,145],132:[2,145],133:[2,145],134:[2,145]},{8:179,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{1:[2,139],6:[2,139],25:[2,139],26:[2,139],46:[2,139],51:[2,139],54:[2,139],69:[2,139],75:[2,139],83:[2,139],88:[2,139],90:[2,139],99:[2,139],101:[2,139],102:[2,139],103:[2,139],107:[2,139],115:[2,139],123:[2,139],125:[2,139],126:[2,139],129:[2,139],130:[2,139],131:[2,139],132:[2,139],133:[2,139],134:[2,139]},{1:[2,144],6:[2,144],25:[2,144],26:[2,144],46:[2,144],51:[2,144],54:[2,144],69:[2,144],75:[2,144],83:[2,144],88:[2,144],90:[2,144],99:[2,144],101:[2,144],102:[2,144],103:[2,144],107:[2,144],115:[2,144],123:[2,144],125:[2,144],126:[2,144],129:[2,144],130:[2,144],131:[2,144],132:[2,144],133:[2,144],134:[2,144]},{79:180,82:[1,103]},{1:[2,63],6:[2,63],25:[2,63],26:[2,63],37:[2,63],46:[2,63],51:[2,63],54:[2,63],63:[2,63],64:[2,63],65:[2,63],67:[2,63],69:[2,63],70:[2,63],71:[2,63],75:[2,63],77:[2,63],81:[2,63],82:[2,63],83:[2,63],88:[2,63],90:[2,63],99:[2,63],101:[2,63],102:[2,63],103:[2,63],107:[2,63],115:[2,63],123:[2,63],125:[2,63],126:[2,63],127:[2,63],128:[2,63],129:[2,63],130:[2,63],131:[2,63],132:[2,63],133:[2,63],134:[2,63],135:[2,63]},{82:[2,103]},{27:181,28:[1,70]},{27:182,28:[1,70]},{1:[2,77],6:[2,77],25:[2,77],26:[2,77],27:183,28:[1,70],37:[2,77],46:[2,77],51:[2,77],54:[2,77],63:[2,77],64:[2,77],65:[2,77],67:[2,77],69:[2,77],70:[2,77],71:[2,77],75:[2,77],77:[2,77],81:[2,77],82:[2,77],83:[2,77],88:[2,77],90:[2,77],99:[2,77],101:[2,77],102:[2,77],103:[2,77],107:[2,77],115:[2,77],123:[2,77],125:[2,77],126:[2,77],127:[2,77],128:[2,77],129:[2,77],130:[2,77],131:[2,77],132:[2,77],133:[2,77],134:[2,77],135:[2,77]},{1:[2,78],6:[2,78],25:[2,78],26:[2,78],37:[2,78],46:[2,78],51:[2,78],54:[2,78],63:[2,78],64:[2,78],65:[2,78],67:[2,78],69:[2,78],70:[2,78],71:[2,78],75:[2,78],77:[2,78],81:[2,78],82:[2,78],83:[2,78],88:[2,78],90:[2,78],99:[2,78],101:[2,78],102:[2,78],103:[2,78],107:[2,78],115:[2,78],123:[2,78],125:[2,78],126:[2,78],127:[2,78],128:[2,78],129:[2,78],130:[2,78],131:[2,78],132:[2,78],133:[2,78],134:[2,78],135:[2,78]},{8:185,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],54:[1,189],55:47,56:48,58:36,60:25,61:26,62:27,68:184,72:186,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],89:187,90:[1,188],93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{66:190,67:[1,96],70:[1,97],71:[1,98]},{66:191,67:[1,96],70:[1,97],71:[1,98]},{79:192,82:[1,103]},{1:[2,64],6:[2,64],25:[2,64],26:[2,64],37:[2,64],46:[2,64],51:[2,64],54:[2,64],63:[2,64],64:[2,64],65:[2,64],67:[2,64],69:[2,64],70:[2,64],71:[2,64],75:[2,64],77:[2,64],81:[2,64],82:[2,64],83:[2,64],88:[2,64],90:[2,64],99:[2,64],101:[2,64],102:[2,64],103:[2,64],107:[2,64],115:[2,64],123:[2,64],125:[2,64],126:[2,64],127:[2,64],128:[2,64],129:[2,64],130:[2,64],131:[2,64],132:[2,64],133:[2,64],134:[2,64],135:[2,64]},{8:193,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,25:[1,194],27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{1:[2,101],6:[2,101],25:[2,101],26:[2,101],46:[2,101],51:[2,101],54:[2,101],63:[2,101],64:[2,101],65:[2,101],67:[2,101],69:[2,101],70:[2,101],71:[2,101],75:[2,101],81:[2,101],82:[2,101],83:[2,101],88:[2,101],90:[2,101],99:[2,101],101:[2,101],102:[2,101],103:[2,101],107:[2,101],115:[2,101],123:[2,101],125:[2,101],126:[2,101],129:[2,101],130:[2,101],131:[2,101],132:[2,101],133:[2,101],134:[2,101]},{8:197,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,25:[1,144],27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,57:145,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],83:[1,195],84:196,85:[1,55],86:[1,56],87:[1,54],91:143,93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{46:[1,198],51:[1,199]},{46:[2,52],51:[2,52]},{37:[1,201],46:[2,54],51:[2,54],54:[1,200]},{37:[2,57],46:[2,57],51:[2,57],54:[2,57]},{37:[2,58],46:[2,58],51:[2,58],54:[2,58]},{37:[2,59],46:[2,59],51:[2,59],54:[2,59]},{37:[2,60],46:[2,60],51:[2,60],54:[2,60]},{27:146,28:[1,70]},{8:197,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,25:[1,144],27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,57:145,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],84:142,85:[1,55],86:[1,56],87:[1,54],88:[1,141],91:143,93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{1:[2,46],6:[2,46],25:[2,46],26:[2,46],46:[2,46],51:[2,46],54:[2,46],69:[2,46],75:[2,46],83:[2,46],88:[2,46],90:[2,46],99:[2,46],101:[2,46],102:[2,46],103:[2,46],107:[2,46],115:[2,46],123:[2,46],125:[2,46],126:[2,46],129:[2,46],130:[2,46],131:[2,46],132:[2,46],133:[2,46],134:[2,46]},{1:[2,177],6:[2,177],25:[2,177],26:[2,177],46:[2,177],51:[2,177],54:[2,177],69:[2,177],75:[2,177],83:[2,177],88:[2,177],90:[2,177],99:[2,177],100:84,101:[2,177],102:[2,177],103:[2,177],106:85,107:[2,177],108:66,115:[2,177],123:[2,177],125:[2,177],126:[2,177],129:[1,75],130:[2,177],131:[2,177],132:[2,177],133:[2,177],134:[2,177]},{100:87,101:[1,62],103:[1,63],106:88,107:[1,65],108:66,123:[1,86]},{1:[2,178],6:[2,178],25:[2,178],26:[2,178],46:[2,178],51:[2,178],54:[2,178],69:[2,178],75:[2,178],83:[2,178],88:[2,178],90:[2,178],99:[2,178],100:84,101:[2,178],102:[2,178],103:[2,178],106:85,107:[2,178],108:66,115:[2,178],123:[2,178],125:[2,178],126:[2,178],129:[1,75],130:[2,178],131:[2,178],132:[2,178],133:[2,178],134:[2,178]},{1:[2,179],6:[2,179],25:[2,179],26:[2,179],46:[2,179],51:[2,179],54:[2,179],69:[2,179],75:[2,179],83:[2,179],88:[2,179],90:[2,179],99:[2,179],100:84,101:[2,179],102:[2,179],103:[2,179],106:85,107:[2,179],108:66,115:[2,179],123:[2,179],125:[2,179],126:[2,179],129:[1,75],130:[2,179],131:[2,179],132:[2,179],133:[2,179],134:[2,179]},{1:[2,180],6:[2,180],25:[2,180],26:[2,180],46:[2,180],51:[2,180],54:[2,180],63:[2,66],64:[2,66],65:[2,66],67:[2,66],69:[2,180],70:[2,66],71:[2,66],75:[2,180],81:[2,66],82:[2,66],83:[2,180],88:[2,180],90:[2,180],99:[2,180],101:[2,180],102:[2,180],103:[2,180],107:[2,180],115:[2,180],123:[2,180],125:[2,180],126:[2,180],129:[2,180],130:[2,180],131:[2,180],132:[2,180],133:[2,180],134:[2,180]},{59:90,63:[1,92],64:[1,93],65:[1,94],66:95,67:[1,96],70:[1,97],71:[1,98],78:89,81:[1,91],82:[2,102]},{59:100,63:[1,92],64:[1,93],65:[1,94],66:95,67:[1,96],70:[1,97],71:[1,98],78:99,81:[1,91],82:[2,102]},{1:[2,69],6:[2,69],25:[2,69],26:[2,69],46:[2,69],51:[2,69],54:[2,69],63:[2,69],64:[2,69],65:[2,69],67:[2,69],69:[2,69],70:[2,69],71:[2,69],75:[2,69],81:[2,69],82:[2,69],83:[2,69],88:[2,69],90:[2,69],99:[2,69],101:[2,69],102:[2,69],103:[2,69],107:[2,69],115:[2,69],123:[2,69],125:[2,69],126:[2,69],129:[2,69],130:[2,69],131:[2,69],132:[2,69],133:[2,69],134:[2,69]},{1:[2,181],6:[2,181],25:[2,181],26:[2,181],46:[2,181],51:[2,181],54:[2,181],63:[2,66],64:[2,66],65:[2,66],67:[2,66],69:[2,181],70:[2,66],71:[2,66],75:[2,181],81:[2,66],82:[2,66],83:[2,181],88:[2,181],90:[2,181],99:[2,181],101:[2,181],102:[2,181],103:[2,181],107:[2,181],115:[2,181],123:[2,181],125:[2,181],126:[2,181],129:[2,181],130:[2,181],131:[2,181],132:[2,181],133:[2,181],134:[2,181]},{1:[2,182],6:[2,182],25:[2,182],26:[2,182],46:[2,182],51:[2,182],54:[2,182],69:[2,182],75:[2,182],83:[2,182],88:[2,182],90:[2,182],99:[2,182],101:[2,182],102:[2,182],103:[2,182],107:[2,182],115:[2,182],123:[2,182],125:[2,182],126:[2,182],129:[2,182],130:[2,182],131:[2,182],132:[2,182],133:[2,182],134:[2,182]},{1:[2,183],6:[2,183],25:[2,183],26:[2,183],46:[2,183],51:[2,183],54:[2,183],69:[2,183],75:[2,183],83:[2,183],88:[2,183],90:[2,183],99:[2,183],101:[2,183],102:[2,183],103:[2,183],107:[2,183],115:[2,183],123:[2,183],125:[2,183],126:[2,183],129:[2,183],130:[2,183],131:[2,183],132:[2,183],133:[2,183],134:[2,183]},{8:202,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,25:[1,203],27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{8:204,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{5:205,25:[1,5],122:[1,206]},{1:[2,126],6:[2,126],25:[2,126],26:[2,126],46:[2,126],51:[2,126],54:[2,126],69:[2,126],75:[2,126],83:[2,126],88:[2,126],90:[2,126],94:207,95:[1,208],96:[1,209],99:[2,126],101:[2,126],102:[2,126],103:[2,126],107:[2,126],115:[2,126],123:[2,126],125:[2,126],126:[2,126],129:[2,126],130:[2,126],131:[2,126],132:[2,126],133:[2,126],134:[2,126]},{1:[2,138],6:[2,138],25:[2,138],26:[2,138],46:[2,138],51:[2,138],54:[2,138],69:[2,138],75:[2,138],83:[2,138],88:[2,138],90:[2,138],99:[2,138],101:[2,138],102:[2,138],103:[2,138],107:[2,138],115:[2,138],123:[2,138],125:[2,138],126:[2,138],129:[2,138],130:[2,138],131:[2,138],132:[2,138],133:[2,138],134:[2,138]},{1:[2,146],6:[2,146],25:[2,146],26:[2,146],46:[2,146],51:[2,146],54:[2,146],69:[2,146],75:[2,146],83:[2,146],88:[2,146],90:[2,146],99:[2,146],101:[2,146],102:[2,146],103:[2,146],107:[2,146],115:[2,146],123:[2,146],125:[2,146],126:[2,146],129:[2,146],130:[2,146],131:[2,146],132:[2,146],133:[2,146],134:[2,146]},{25:[1,210],100:84,101:[1,62],103:[1,63],106:85,107:[1,65],108:66,123:[1,83],125:[1,77],126:[1,76],129:[1,75],130:[1,78],131:[1,79],132:[1,80],133:[1,81],134:[1,82]},{117:211,119:212,120:[1,213]},{1:[2,91],6:[2,91],25:[2,91],26:[2,91],46:[2,91],51:[2,91],54:[2,91],69:[2,91],75:[2,91],83:[2,91],88:[2,91],90:[2,91],99:[2,91],101:[2,91],102:[2,91],103:[2,91],107:[2,91],115:[2,91],123:[2,91],125:[2,91],126:[2,91],129:[2,91],130:[2,91],131:[2,91],132:[2,91],133:[2,91],134:[2,91]},{14:214,15:120,27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:121,41:60,55:47,56:48,58:215,60:25,61:26,62:27,73:[1,67],80:[1,28],85:[1,55],86:[1,56],87:[1,54],98:[1,53]},{1:[2,94],5:216,6:[2,94],25:[1,5],26:[2,94],46:[2,94],51:[2,94],54:[2,94],63:[2,66],64:[2,66],65:[2,66],67:[2,66],69:[2,94],70:[2,66],71:[2,66],75:[2,94],77:[1,217],81:[2,66],82:[2,66],83:[2,94],88:[2,94],90:[2,94],99:[2,94],101:[2,94],102:[2,94],103:[2,94],107:[2,94],115:[2,94],123:[2,94],125:[2,94],126:[2,94],129:[2,94],130:[2,94],131:[2,94],132:[2,94],133:[2,94],134:[2,94]},{1:[2,42],6:[2,42],26:[2,42],99:[2,42],100:84,101:[2,42],103:[2,42],106:85,107:[2,42],108:66,123:[2,42],125:[1,77],126:[1,76],129:[1,75],130:[1,78],131:[1,79],132:[1,80],133:[1,81],134:[1,82]},{1:[2,131],6:[2,131],26:[2,131],99:[2,131],100:84,101:[2,131],103:[2,131],106:85,107:[2,131],108:66,123:[2,131],125:[1,77],126:[1,76],129:[1,75],130:[1,78],131:[1,79],132:[1,80],133:[1,81],134:[1,82]},{6:[1,71],99:[1,218]},{4:219,7:4,8:6,9:7,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{6:[2,122],25:[2,122],51:[2,122],54:[1,221],88:[2,122],89:220,90:[1,188],100:84,101:[1,62],103:[1,63],106:85,107:[1,65],108:66,123:[1,83],125:[1,77],126:[1,76],129:[1,75],130:[1,78],131:[1,79],132:[1,80],133:[1,81],134:[1,82]},{1:[2,109],6:[2,109],25:[2,109],26:[2,109],37:[2,109],46:[2,109],51:[2,109],54:[2,109],63:[2,109],64:[2,109],65:[2,109],67:[2,109],69:[2,109],70:[2,109],71:[2,109],75:[2,109],81:[2,109],82:[2,109],83:[2,109],88:[2,109],90:[2,109],99:[2,109],101:[2,109],102:[2,109],103:[2,109],107:[2,109],113:[2,109],114:[2,109],115:[2,109],123:[2,109],125:[2,109],126:[2,109],129:[2,109],130:[2,109],131:[2,109],132:[2,109],133:[2,109],134:[2,109]},{6:[2,49],25:[2,49],50:222,51:[1,223],88:[2,49]},{6:[2,117],25:[2,117],26:[2,117],51:[2,117],83:[2,117],88:[2,117]},{8:197,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,25:[1,144],27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,57:145,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],84:224,85:[1,55],86:[1,56],87:[1,54],91:143,93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{6:[2,123],25:[2,123],26:[2,123],51:[2,123],83:[2,123],88:[2,123]},{1:[2,108],6:[2,108],25:[2,108],26:[2,108],37:[2,108],40:[2,108],46:[2,108],51:[2,108],54:[2,108],63:[2,108],64:[2,108],65:[2,108],67:[2,108],69:[2,108],70:[2,108],71:[2,108],75:[2,108],77:[2,108],81:[2,108],82:[2,108],83:[2,108],88:[2,108],90:[2,108],99:[2,108],101:[2,108],102:[2,108],103:[2,108],107:[2,108],115:[2,108],123:[2,108],125:[2,108],126:[2,108],127:[2,108],128:[2,108],129:[2,108],130:[2,108],131:[2,108],132:[2,108],133:[2,108],134:[2,108],135:[2,108]},{5:225,25:[1,5],100:84,101:[1,62],103:[1,63],106:85,107:[1,65],108:66,123:[1,83],125:[1,77],126:[1,76],129:[1,75],130:[1,78],131:[1,79],132:[1,80],133:[1,81],134:[1,82]},{1:[2,134],6:[2,134],25:[2,134],26:[2,134],46:[2,134],51:[2,134],54:[2,134],69:[2,134],75:[2,134],83:[2,134],88:[2,134],90:[2,134],99:[2,134],100:84,101:[1,62],102:[1,226],103:[1,63],106:85,107:[1,65],108:66,115:[2,134],123:[2,134],125:[1,77],126:[1,76],129:[1,75],130:[1,78],131:[1,79],132:[1,80],133:[1,81],134:[1,82]},{1:[2,136],6:[2,136],25:[2,136],26:[2,136],46:[2,136],51:[2,136],54:[2,136],69:[2,136],75:[2,136],83:[2,136],88:[2,136],90:[2,136],99:[2,136],100:84,101:[1,62],102:[1,227],103:[1,63],106:85,107:[1,65],108:66,115:[2,136],123:[2,136],125:[1,77],126:[1,76],129:[1,75],130:[1,78],131:[1,79],132:[1,80],133:[1,81],134:[1,82]},{1:[2,142],6:[2,142],25:[2,142],26:[2,142],46:[2,142],51:[2,142],54:[2,142],69:[2,142],75:[2,142],83:[2,142],88:[2,142],90:[2,142],99:[2,142],101:[2,142],102:[2,142],103:[2,142],107:[2,142],115:[2,142],123:[2,142],125:[2,142],126:[2,142],129:[2,142],130:[2,142],131:[2,142],132:[2,142],133:[2,142],134:[2,142]},{1:[2,143],6:[2,143],25:[2,143],26:[2,143],46:[2,143],51:[2,143],54:[2,143],69:[2,143],75:[2,143],83:[2,143],88:[2,143],90:[2,143],99:[2,143],100:84,101:[1,62],102:[2,143],103:[1,63],106:85,107:[1,65],108:66,115:[2,143],123:[2,143],125:[1,77],126:[1,76],129:[1,75],130:[1,78],131:[1,79],132:[1,80],133:[1,81],134:[1,82]},{1:[2,147],6:[2,147],25:[2,147],26:[2,147],46:[2,147],51:[2,147],54:[2,147],69:[2,147],75:[2,147],83:[2,147],88:[2,147],90:[2,147],99:[2,147],101:[2,147],102:[2,147],103:[2,147],107:[2,147],115:[2,147],123:[2,147],125:[2,147],126:[2,147],129:[2,147],130:[2,147],131:[2,147],132:[2,147],133:[2,147],134:[2,147]},{113:[2,149],114:[2,149]},{27:156,28:[1,70],55:157,56:158,73:[1,67],87:[1,112],110:228,112:155},{51:[1,229],113:[2,154],114:[2,154]},{51:[2,151],113:[2,151],114:[2,151]},{51:[2,152],113:[2,152],114:[2,152]},{51:[2,153],113:[2,153],114:[2,153]},{1:[2,148],6:[2,148],25:[2,148],26:[2,148],46:[2,148],51:[2,148],54:[2,148],69:[2,148],75:[2,148],83:[2,148],88:[2,148],90:[2,148],99:[2,148],101:[2,148],102:[2,148],103:[2,148],107:[2,148],115:[2,148],123:[2,148],125:[2,148],126:[2,148],129:[2,148],130:[2,148],131:[2,148],132:[2,148],133:[2,148],134:[2,148]},{8:230,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{8:231,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{6:[2,49],25:[2,49],50:232,51:[1,233],75:[2,49]},{6:[2,86],25:[2,86],26:[2,86],51:[2,86],75:[2,86]},{6:[2,35],25:[2,35],26:[2,35],40:[1,234],51:[2,35],75:[2,35]},{6:[2,38],25:[2,38],26:[2,38],51:[2,38],75:[2,38]},{6:[2,39],25:[2,39],26:[2,39],40:[2,39],51:[2,39],75:[2,39]},{6:[2,40],25:[2,40],26:[2,40],40:[2,40],51:[2,40],75:[2,40]},{6:[2,41],25:[2,41],26:[2,41],40:[2,41],51:[2,41],75:[2,41]},{1:[2,5],6:[2,5],26:[2,5],99:[2,5]},{1:[2,25],6:[2,25],25:[2,25],26:[2,25],46:[2,25],51:[2,25],54:[2,25],69:[2,25],75:[2,25],83:[2,25],88:[2,25],90:[2,25],95:[2,25],96:[2,25],99:[2,25],101:[2,25],102:[2,25],103:[2,25],107:[2,25],115:[2,25],118:[2,25],120:[2,25],123:[2,25],125:[2,25],126:[2,25],129:[2,25],130:[2,25],131:[2,25],132:[2,25],133:[2,25],134:[2,25]},{1:[2,185],6:[2,185],25:[2,185],26:[2,185],46:[2,185],51:[2,185],54:[2,185],69:[2,185],75:[2,185],83:[2,185],88:[2,185],90:[2,185],99:[2,185],100:84,101:[2,185],102:[2,185],103:[2,185],106:85,107:[2,185],108:66,115:[2,185],123:[2,185],125:[2,185],126:[2,185],129:[1,75],130:[1,78],131:[2,185],132:[2,185],133:[2,185],134:[2,185]},{1:[2,186],6:[2,186],25:[2,186],26:[2,186],46:[2,186],51:[2,186],54:[2,186],69:[2,186],75:[2,186],83:[2,186],88:[2,186],90:[2,186],99:[2,186],100:84,101:[2,186],102:[2,186],103:[2,186],106:85,107:[2,186],108:66,115:[2,186],123:[2,186],125:[2,186],126:[2,186],129:[1,75],130:[1,78],131:[2,186],132:[2,186],133:[2,186],134:[2,186]},{1:[2,187],6:[2,187],25:[2,187],26:[2,187],46:[2,187],51:[2,187],54:[2,187],69:[2,187],75:[2,187],83:[2,187],88:[2,187],90:[2,187],99:[2,187],100:84,101:[2,187],102:[2,187],103:[2,187],106:85,107:[2,187],108:66,115:[2,187],123:[2,187],125:[2,187],126:[2,187],129:[1,75],130:[2,187],131:[2,187],132:[2,187],133:[2,187],134:[2,187]},{1:[2,188],6:[2,188],25:[2,188],26:[2,188],46:[2,188],51:[2,188],54:[2,188],69:[2,188],75:[2,188],83:[2,188],88:[2,188],90:[2,188],99:[2,188],100:84,101:[2,188],102:[2,188],103:[2,188],106:85,107:[2,188],108:66,115:[2,188],123:[2,188],125:[1,77],126:[1,76],129:[1,75],130:[1,78],131:[2,188],132:[2,188],133:[2,188],134:[2,188]},{1:[2,189],6:[2,189],25:[2,189],26:[2,189],46:[2,189],51:[2,189],54:[2,189],69:[2,189],75:[2,189],83:[2,189],88:[2,189],90:[2,189],99:[2,189],100:84,101:[2,189],102:[2,189],103:[2,189],106:85,107:[2,189],108:66,115:[2,189],123:[2,189],125:[1,77],126:[1,76],129:[1,75],130:[1,78],131:[1,79],132:[2,189],133:[2,189],134:[1,82]},{1:[2,190],6:[2,190],25:[2,190],26:[2,190],46:[2,190],51:[2,190],54:[2,190],69:[2,190],75:[2,190],83:[2,190],88:[2,190],90:[2,190],99:[2,190],100:84,101:[2,190],102:[2,190],103:[2,190],106:85,107:[2,190],108:66,115:[2,190],123:[2,190],125:[1,77],126:[1,76],129:[1,75],130:[1,78],131:[1,79],132:[1,80],133:[2,190],134:[1,82]},{1:[2,191],6:[2,191],25:[2,191],26:[2,191],46:[2,191],51:[2,191],54:[2,191],69:[2,191],75:[2,191],83:[2,191],88:[2,191],90:[2,191],99:[2,191],100:84,101:[2,191],102:[2,191],103:[2,191],106:85,107:[2,191],108:66,115:[2,191],123:[2,191],125:[1,77],126:[1,76],129:[1,75],130:[1,78],131:[1,79],132:[2,191],133:[2,191],134:[2,191]},{1:[2,176],6:[2,176],25:[2,176],26:[2,176],46:[2,176],51:[2,176],54:[2,176],69:[2,176],75:[2,176],83:[2,176],88:[2,176],90:[2,176],99:[2,176],100:84,101:[1,62],102:[2,176],103:[1,63],106:85,107:[1,65],108:66,115:[2,176],123:[1,83],125:[1,77],126:[1,76],129:[1,75],130:[1,78],131:[1,79],132:[1,80],133:[1,81],134:[1,82]},{1:[2,175],6:[2,175],25:[2,175],26:[2,175],46:[2,175],51:[2,175],54:[2,175],69:[2,175],75:[2,175],83:[2,175],88:[2,175],90:[2,175],99:[2,175],100:84,101:[1,62],102:[2,175],103:[1,63],106:85,107:[1,65],108:66,115:[2,175],123:[1,83],125:[1,77],126:[1,76],129:[1,75],130:[1,78],131:[1,79],132:[1,80],133:[1,81],134:[1,82]},{1:[2,98],6:[2,98],25:[2,98],26:[2,98],46:[2,98],51:[2,98],54:[2,98],63:[2,98],64:[2,98],65:[2,98],67:[2,98],69:[2,98],70:[2,98],71:[2,98],75:[2,98],81:[2,98],82:[2,98],83:[2,98],88:[2,98],90:[2,98],99:[2,98],101:[2,98],102:[2,98],103:[2,98],107:[2,98],115:[2,98],123:[2,98],125:[2,98],126:[2,98],129:[2,98],130:[2,98],131:[2,98],132:[2,98],133:[2,98],134:[2,98]},{1:[2,74],6:[2,74],25:[2,74],26:[2,74],37:[2,74],46:[2,74],51:[2,74],54:[2,74],63:[2,74],64:[2,74],65:[2,74],67:[2,74],69:[2,74],70:[2,74],71:[2,74],75:[2,74],77:[2,74],81:[2,74],82:[2,74],83:[2,74],88:[2,74],90:[2,74],99:[2,74],101:[2,74],102:[2,74],103:[2,74],107:[2,74],115:[2,74],123:[2,74],125:[2,74],126:[2,74],127:[2,74],128:[2,74],129:[2,74],130:[2,74],131:[2,74],132:[2,74],133:[2,74],134:[2,74],135:[2,74]},{1:[2,75],6:[2,75],25:[2,75],26:[2,75],37:[2,75],46:[2,75],51:[2,75],54:[2,75],63:[2,75],64:[2,75],65:[2,75],67:[2,75],69:[2,75],70:[2,75],71:[2,75],75:[2,75],77:[2,75],81:[2,75],82:[2,75],83:[2,75],88:[2,75],90:[2,75],99:[2,75],101:[2,75],102:[2,75],103:[2,75],107:[2,75],115:[2,75],123:[2,75],125:[2,75],126:[2,75],127:[2,75],128:[2,75],129:[2,75],130:[2,75],131:[2,75],132:[2,75],133:[2,75],134:[2,75],135:[2,75]},{1:[2,76],6:[2,76],25:[2,76],26:[2,76],37:[2,76],46:[2,76],51:[2,76],54:[2,76],63:[2,76],64:[2,76],65:[2,76],67:[2,76],69:[2,76],70:[2,76],71:[2,76],75:[2,76],77:[2,76],81:[2,76],82:[2,76],83:[2,76],88:[2,76],90:[2,76],99:[2,76],101:[2,76],102:[2,76],103:[2,76],107:[2,76],115:[2,76],123:[2,76],125:[2,76],126:[2,76],127:[2,76],128:[2,76],129:[2,76],130:[2,76],131:[2,76],132:[2,76],133:[2,76],134:[2,76],135:[2,76]},{69:[1,235]},{54:[1,189],69:[2,82],89:236,90:[1,188],100:84,101:[1,62],103:[1,63],106:85,107:[1,65],108:66,123:[1,83],125:[1,77],126:[1,76],129:[1,75],130:[1,78],131:[1,79],132:[1,80],133:[1,81],134:[1,82]},{69:[2,83]},{8:237,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{13:[2,111],28:[2,111],30:[2,111],31:[2,111],33:[2,111],34:[2,111],35:[2,111],42:[2,111],43:[2,111],44:[2,111],48:[2,111],49:[2,111],69:[2,111],73:[2,111],76:[2,111],80:[2,111],85:[2,111],86:[2,111],87:[2,111],93:[2,111],97:[2,111],98:[2,111],101:[2,111],103:[2,111],105:[2,111],107:[2,111],116:[2,111],122:[2,111],124:[2,111],125:[2,111],126:[2,111],127:[2,111],128:[2,111]},{13:[2,112],28:[2,112],30:[2,112],31:[2,112],33:[2,112],34:[2,112],35:[2,112],42:[2,112],43:[2,112],44:[2,112],48:[2,112],49:[2,112],69:[2,112],73:[2,112],76:[2,112],80:[2,112],85:[2,112],86:[2,112],87:[2,112],93:[2,112],97:[2,112],98:[2,112],101:[2,112],103:[2,112],105:[2,112],107:[2,112],116:[2,112],122:[2,112],124:[2,112],125:[2,112],126:[2,112],127:[2,112],128:[2,112]},{1:[2,80],6:[2,80],25:[2,80],26:[2,80],37:[2,80],46:[2,80],51:[2,80],54:[2,80],63:[2,80],64:[2,80],65:[2,80],67:[2,80],69:[2,80],70:[2,80],71:[2,80],75:[2,80],77:[2,80],81:[2,80],82:[2,80],83:[2,80],88:[2,80],90:[2,80],99:[2,80],101:[2,80],102:[2,80],103:[2,80],107:[2,80],115:[2,80],123:[2,80],125:[2,80],126:[2,80],127:[2,80],128:[2,80],129:[2,80],130:[2,80],131:[2,80],132:[2,80],133:[2,80],134:[2,80],135:[2,80]},{1:[2,81],6:[2,81],25:[2,81],26:[2,81],37:[2,81],46:[2,81],51:[2,81],54:[2,81],63:[2,81],64:[2,81],65:[2,81],67:[2,81],69:[2,81],70:[2,81],71:[2,81],75:[2,81],77:[2,81],81:[2,81],82:[2,81],83:[2,81],88:[2,81],90:[2,81],99:[2,81],101:[2,81],102:[2,81],103:[2,81],107:[2,81],115:[2,81],123:[2,81],125:[2,81],126:[2,81],127:[2,81],128:[2,81],129:[2,81],130:[2,81],131:[2,81],132:[2,81],133:[2,81],134:[2,81],135:[2,81]},{1:[2,99],6:[2,99],25:[2,99],26:[2,99],46:[2,99],51:[2,99],54:[2,99],63:[2,99],64:[2,99],65:[2,99],67:[2,99],69:[2,99],70:[2,99],71:[2,99],75:[2,99],81:[2,99],82:[2,99],83:[2,99],88:[2,99],90:[2,99],99:[2,99],101:[2,99],102:[2,99],103:[2,99],107:[2,99],115:[2,99],123:[2,99],125:[2,99],126:[2,99],129:[2,99],130:[2,99],131:[2,99],132:[2,99],133:[2,99],134:[2,99]},{1:[2,33],6:[2,33],25:[2,33],26:[2,33],46:[2,33],51:[2,33],54:[2,33],69:[2,33],75:[2,33],83:[2,33],88:[2,33],90:[2,33],99:[2,33],100:84,101:[2,33],102:[2,33],103:[2,33],106:85,107:[2,33],108:66,115:[2,33],123:[2,33],125:[1,77],126:[1,76],129:[1,75],130:[1,78],131:[1,79],132:[1,80],133:[1,81],134:[1,82]},{8:238,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{1:[2,104],6:[2,104],25:[2,104],26:[2,104],46:[2,104],51:[2,104],54:[2,104],63:[2,104],64:[2,104],65:[2,104],67:[2,104],69:[2,104],70:[2,104],71:[2,104],75:[2,104],81:[2,104],82:[2,104],83:[2,104],88:[2,104],90:[2,104],99:[2,104],101:[2,104],102:[2,104],103:[2,104],107:[2,104],115:[2,104],123:[2,104],125:[2,104],126:[2,104],129:[2,104],130:[2,104],131:[2,104],132:[2,104],133:[2,104],134:[2,104]},{6:[2,49],25:[2,49],50:239,51:[1,223],83:[2,49]},{6:[2,122],25:[2,122],26:[2,122],51:[2,122],54:[1,240],83:[2,122],88:[2,122],100:84,101:[1,62],103:[1,63],106:85,107:[1,65],108:66,123:[1,83],125:[1,77],126:[1,76],129:[1,75],130:[1,78],131:[1,79],132:[1,80],133:[1,81],134:[1,82]},{47:241,48:[1,57],49:[1,58]},{27:107,28:[1,70],41:108,52:242,53:106,55:109,56:110,73:[1,67],86:[1,111],87:[1,112]},{46:[2,55],51:[2,55]},{8:243,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{1:[2,192],6:[2,192],25:[2,192],26:[2,192],46:[2,192],51:[2,192],54:[2,192],69:[2,192],75:[2,192],83:[2,192],88:[2,192],90:[2,192],99:[2,192],100:84,101:[2,192],102:[2,192],103:[2,192],106:85,107:[2,192],108:66,115:[2,192],123:[2,192],125:[1,77],126:[1,76],129:[1,75],130:[1,78],131:[1,79],132:[1,80],133:[1,81],134:[1,82]},{8:244,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{1:[2,194],6:[2,194],25:[2,194],26:[2,194],46:[2,194],51:[2,194],54:[2,194],69:[2,194],75:[2,194],83:[2,194],88:[2,194],90:[2,194],99:[2,194],100:84,101:[2,194],102:[2,194],103:[2,194],106:85,107:[2,194],108:66,115:[2,194],123:[2,194],125:[1,77],126:[1,76],129:[1,75],130:[1,78],131:[1,79],132:[1,80],133:[1,81],134:[1,82]},{1:[2,174],6:[2,174],25:[2,174],26:[2,174],46:[2,174],51:[2,174],54:[2,174],69:[2,174],75:[2,174],83:[2,174],88:[2,174],90:[2,174],99:[2,174],101:[2,174],102:[2,174],103:[2,174],107:[2,174],115:[2,174],123:[2,174],125:[2,174],126:[2,174],129:[2,174],130:[2,174],131:[2,174],132:[2,174],133:[2,174],134:[2,174]},{8:245,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{1:[2,127],6:[2,127],25:[2,127],26:[2,127],46:[2,127],51:[2,127],54:[2,127],69:[2,127],75:[2,127],83:[2,127],88:[2,127],90:[2,127],95:[1,246],99:[2,127],101:[2,127],102:[2,127],103:[2,127],107:[2,127],115:[2,127],123:[2,127],125:[2,127],126:[2,127],129:[2,127],130:[2,127],131:[2,127],132:[2,127],133:[2,127],134:[2,127]},{5:247,25:[1,5]},{27:248,28:[1,70]},{117:249,119:212,120:[1,213]},{26:[1,250],118:[1,251],119:252,120:[1,213]},{26:[2,167],118:[2,167],120:[2,167]},{8:254,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],92:253,93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{1:[2,92],5:255,6:[2,92],25:[1,5],26:[2,92],46:[2,92],51:[2,92],54:[2,92],59:90,63:[1,92],64:[1,93],65:[1,94],66:95,67:[1,96],69:[2,92],70:[1,97],71:[1,98],75:[2,92],78:89,81:[1,91],82:[2,102],83:[2,92],88:[2,92],90:[2,92],99:[2,92],101:[2,92],102:[2,92],103:[2,92],107:[2,92],115:[2,92],123:[2,92],125:[2,92],126:[2,92],129:[2,92],130:[2,92],131:[2,92],132:[2,92],133:[2,92],134:[2,92]},{1:[2,66],6:[2,66],25:[2,66],26:[2,66],46:[2,66],51:[2,66],54:[2,66],63:[2,66],64:[2,66],65:[2,66],67:[2,66],69:[2,66],70:[2,66],71:[2,66],75:[2,66],81:[2,66],82:[2,66],83:[2,66],88:[2,66],90:[2,66],99:[2,66],101:[2,66],102:[2,66],103:[2,66],107:[2,66],115:[2,66],123:[2,66],125:[2,66],126:[2,66],129:[2,66],130:[2,66],131:[2,66],132:[2,66],133:[2,66],134:[2,66]},{1:[2,95],6:[2,95],25:[2,95],26:[2,95],46:[2,95],51:[2,95],54:[2,95],69:[2,95],75:[2,95],83:[2,95],88:[2,95],90:[2,95],99:[2,95],101:[2,95],102:[2,95],103:[2,95],107:[2,95],115:[2,95],123:[2,95],125:[2,95],126:[2,95],129:[2,95],130:[2,95],131:[2,95],132:[2,95],133:[2,95],134:[2,95]},{14:256,15:120,27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:121,41:60,55:47,56:48,58:215,60:25,61:26,62:27,73:[1,67],80:[1,28],85:[1,55],86:[1,56],87:[1,54],98:[1,53]},{1:[2,132],6:[2,132],25:[2,132],26:[2,132],46:[2,132],51:[2,132],54:[2,132],63:[2,132],64:[2,132],65:[2,132],67:[2,132],69:[2,132],70:[2,132],71:[2,132],75:[2,132],81:[2,132],82:[2,132],83:[2,132],88:[2,132],90:[2,132],99:[2,132],101:[2,132],102:[2,132],103:[2,132],107:[2,132],115:[2,132],123:[2,132],125:[2,132],126:[2,132],129:[2,132],130:[2,132],131:[2,132],132:[2,132],133:[2,132],134:[2,132]},{6:[1,71],26:[1,257]},{8:258,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{6:[2,61],13:[2,112],25:[2,61],28:[2,112],30:[2,112],31:[2,112],33:[2,112],34:[2,112],35:[2,112],42:[2,112],43:[2,112],44:[2,112],48:[2,112],49:[2,112],51:[2,61],73:[2,112],76:[2,112],80:[2,112],85:[2,112],86:[2,112],87:[2,112],88:[2,61],93:[2,112],97:[2,112],98:[2,112],101:[2,112],103:[2,112],105:[2,112],107:[2,112],116:[2,112],122:[2,112],124:[2,112],125:[2,112],126:[2,112],127:[2,112],128:[2,112]},{6:[1,260],25:[1,261],88:[1,259]},{6:[2,50],8:197,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,25:[2,50],26:[2,50],27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,57:145,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],83:[2,50],85:[1,55],86:[1,56],87:[1,54],88:[2,50],91:262,93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{6:[2,49],25:[2,49],26:[2,49],50:263,51:[1,223]},{1:[2,171],6:[2,171],25:[2,171],26:[2,171],46:[2,171],51:[2,171],54:[2,171],69:[2,171],75:[2,171],83:[2,171],88:[2,171],90:[2,171],99:[2,171],101:[2,171],102:[2,171],103:[2,171],107:[2,171],115:[2,171],118:[2,171],123:[2,171],125:[2,171],126:[2,171],129:[2,171],130:[2,171],131:[2,171],132:[2,171],133:[2,171],134:[2,171]},{8:264,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{8:265,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{113:[2,150],114:[2,150]},{27:156,28:[1,70],55:157,56:158,73:[1,67],87:[1,112],112:266},{1:[2,156],6:[2,156],25:[2,156],26:[2,156],46:[2,156],51:[2,156],54:[2,156],69:[2,156],75:[2,156],83:[2,156],88:[2,156],90:[2,156],99:[2,156],100:84,101:[2,156],102:[1,267],103:[2,156],106:85,107:[2,156],108:66,115:[1,268],123:[2,156],125:[1,77],126:[1,76],129:[1,75],130:[1,78],131:[1,79],132:[1,80],133:[1,81],134:[1,82]},{1:[2,157],6:[2,157],25:[2,157],26:[2,157],46:[2,157],51:[2,157],54:[2,157],69:[2,157],75:[2,157],83:[2,157],88:[2,157],90:[2,157],99:[2,157],100:84,101:[2,157],102:[1,269],103:[2,157],106:85,107:[2,157],108:66,115:[2,157],123:[2,157],125:[1,77],126:[1,76],129:[1,75],130:[1,78],131:[1,79],132:[1,80],133:[1,81],134:[1,82]},{6:[1,271],25:[1,272],75:[1,270]},{6:[2,50],12:165,25:[2,50],26:[2,50],27:166,28:[1,70],29:167,30:[1,68],31:[1,69],38:273,39:164,41:168,43:[1,46],75:[2,50],86:[1,111]},{8:274,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,25:[1,275],27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{1:[2,79],6:[2,79],25:[2,79],26:[2,79],37:[2,79],46:[2,79],51:[2,79],54:[2,79],63:[2,79],64:[2,79],65:[2,79],67:[2,79],69:[2,79],70:[2,79],71:[2,79],75:[2,79],77:[2,79],81:[2,79],82:[2,79],83:[2,79],88:[2,79],90:[2,79],99:[2,79],101:[2,79],102:[2,79],103:[2,79],107:[2,79],115:[2,79],123:[2,79],125:[2,79],126:[2,79],127:[2,79],128:[2,79],129:[2,79],130:[2,79],131:[2,79],132:[2,79],133:[2,79],134:[2,79],135:[2,79]},{8:276,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,69:[2,115],73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{69:[2,116],100:84,101:[1,62],103:[1,63],106:85,107:[1,65],108:66,123:[1,83],125:[1,77],126:[1,76],129:[1,75],130:[1,78],131:[1,79],132:[1,80],133:[1,81],134:[1,82]},{26:[1,277],100:84,101:[1,62],103:[1,63],106:85,107:[1,65],108:66,123:[1,83],125:[1,77],126:[1,76],129:[1,75],130:[1,78],131:[1,79],132:[1,80],133:[1,81],134:[1,82]},{6:[1,260],25:[1,261],83:[1,278]},{6:[2,61],25:[2,61],26:[2,61],51:[2,61],83:[2,61],88:[2,61]},{5:279,25:[1,5]},{46:[2,53],51:[2,53]},{46:[2,56],51:[2,56],100:84,101:[1,62],103:[1,63],106:85,107:[1,65],108:66,123:[1,83],125:[1,77],126:[1,76],129:[1,75],130:[1,78],131:[1,79],132:[1,80],133:[1,81],134:[1,82]},{26:[1,280],100:84,101:[1,62],103:[1,63],106:85,107:[1,65],108:66,123:[1,83],125:[1,77],126:[1,76],129:[1,75],130:[1,78],131:[1,79],132:[1,80],133:[1,81],134:[1,82]},{5:281,25:[1,5],100:84,101:[1,62],103:[1,63],106:85,107:[1,65],108:66,123:[1,83],125:[1,77],126:[1,76],129:[1,75],130:[1,78],131:[1,79],132:[1,80],133:[1,81],134:[1,82]},{5:282,25:[1,5]},{1:[2,128],6:[2,128],25:[2,128],26:[2,128],46:[2,128],51:[2,128],54:[2,128],69:[2,128],75:[2,128],83:[2,128],88:[2,128],90:[2,128],99:[2,128],101:[2,128],102:[2,128],103:[2,128],107:[2,128],115:[2,128],123:[2,128],125:[2,128],126:[2,128],129:[2,128],130:[2,128],131:[2,128],132:[2,128],133:[2,128],134:[2,128]},{5:283,25:[1,5]},{26:[1,284],118:[1,285],119:252,120:[1,213]},{1:[2,165],6:[2,165],25:[2,165],26:[2,165],46:[2,165],51:[2,165],54:[2,165],69:[2,165],75:[2,165],83:[2,165],88:[2,165],90:[2,165],99:[2,165],101:[2,165],102:[2,165],103:[2,165],107:[2,165],115:[2,165],123:[2,165],125:[2,165],126:[2,165],129:[2,165],130:[2,165],131:[2,165],132:[2,165],133:[2,165],134:[2,165]},{5:286,25:[1,5]},{26:[2,168],118:[2,168],120:[2,168]},{5:287,25:[1,5],51:[1,288]},{25:[2,124],51:[2,124],100:84,101:[1,62],103:[1,63],106:85,107:[1,65],108:66,123:[1,83],125:[1,77],126:[1,76],129:[1,75],130:[1,78],131:[1,79],132:[1,80],133:[1,81],134:[1,82]},{1:[2,93],6:[2,93],25:[2,93],26:[2,93],46:[2,93],51:[2,93],54:[2,93],69:[2,93],75:[2,93],83:[2,93],88:[2,93],90:[2,93],99:[2,93],101:[2,93],102:[2,93],103:[2,93],107:[2,93],115:[2,93],123:[2,93],125:[2,93],126:[2,93],129:[2,93],130:[2,93],131:[2,93],132:[2,93],133:[2,93],134:[2,93]},{1:[2,96],5:289,6:[2,96],25:[1,5],26:[2,96],46:[2,96],51:[2,96],54:[2,96],59:90,63:[1,92],64:[1,93],65:[1,94],66:95,67:[1,96],69:[2,96],70:[1,97],71:[1,98],75:[2,96],78:89,81:[1,91],82:[2,102],83:[2,96],88:[2,96],90:[2,96],99:[2,96],101:[2,96],102:[2,96],103:[2,96],107:[2,96],115:[2,96],123:[2,96],125:[2,96],126:[2,96],129:[2,96],130:[2,96],131:[2,96],132:[2,96],133:[2,96],134:[2,96]},{99:[1,290]},{88:[1,291],100:84,101:[1,62],103:[1,63],106:85,107:[1,65],108:66,123:[1,83],125:[1,77],126:[1,76],129:[1,75],130:[1,78],131:[1,79],132:[1,80],133:[1,81],134:[1,82]},{1:[2,110],6:[2,110],25:[2,110],26:[2,110],37:[2,110],46:[2,110],51:[2,110],54:[2,110],63:[2,110],64:[2,110],65:[2,110],67:[2,110],69:[2,110],70:[2,110],71:[2,110],75:[2,110],81:[2,110],82:[2,110],83:[2,110],88:[2,110],90:[2,110],99:[2,110],101:[2,110],102:[2,110],103:[2,110],107:[2,110],113:[2,110],114:[2,110],115:[2,110],123:[2,110],125:[2,110],126:[2,110],129:[2,110],130:[2,110],131:[2,110],132:[2,110],133:[2,110],134:[2,110]},{8:197,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,57:145,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],91:292,93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{8:197,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,25:[1,144],27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,57:145,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],84:293,85:[1,55],86:[1,56],87:[1,54],91:143,93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{6:[2,118],25:[2,118],26:[2,118],51:[2,118],83:[2,118],88:[2,118]},{6:[1,260],25:[1,261],26:[1,294]},{1:[2,135],6:[2,135],25:[2,135],26:[2,135],46:[2,135],51:[2,135],54:[2,135],69:[2,135],75:[2,135],83:[2,135],88:[2,135],90:[2,135],99:[2,135],100:84,101:[1,62],102:[2,135],103:[1,63],106:85,107:[1,65],108:66,115:[2,135],123:[2,135],125:[1,77],126:[1,76],129:[1,75],130:[1,78],131:[1,79],132:[1,80],133:[1,81],134:[1,82]},{1:[2,137],6:[2,137],25:[2,137],26:[2,137],46:[2,137],51:[2,137],54:[2,137],69:[2,137],75:[2,137],83:[2,137],88:[2,137],90:[2,137],99:[2,137],100:84,101:[1,62],102:[2,137],103:[1,63],106:85,107:[1,65],108:66,115:[2,137],123:[2,137],125:[1,77],126:[1,76],129:[1,75],130:[1,78],131:[1,79],132:[1,80],133:[1,81],134:[1,82]},{113:[2,155],114:[2,155]},{8:295,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{8:296,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{8:297,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{1:[2,84],6:[2,84],25:[2,84],26:[2,84],37:[2,84],46:[2,84],51:[2,84],54:[2,84],63:[2,84],64:[2,84],65:[2,84],67:[2,84],69:[2,84],70:[2,84],71:[2,84],75:[2,84],81:[2,84],82:[2,84],83:[2,84],88:[2,84],90:[2,84],99:[2,84],101:[2,84],102:[2,84],103:[2,84],107:[2,84],113:[2,84],114:[2,84],115:[2,84],123:[2,84],125:[2,84],126:[2,84],129:[2,84],130:[2,84],131:[2,84],132:[2,84],133:[2,84],134:[2,84]},{12:165,27:166,28:[1,70],29:167,30:[1,68],31:[1,69],38:298,39:164,41:168,43:[1,46],86:[1,111]},{6:[2,85],12:165,25:[2,85],26:[2,85],27:166,28:[1,70],29:167,30:[1,68],31:[1,69],38:163,39:164,41:168,43:[1,46],51:[2,85],74:299,86:[1,111]},{6:[2,87],25:[2,87],26:[2,87],51:[2,87],75:[2,87]},{6:[2,36],25:[2,36],26:[2,36],51:[2,36],75:[2,36],100:84,101:[1,62],103:[1,63],106:85,107:[1,65],108:66,123:[1,83],125:[1,77],126:[1,76],129:[1,75],130:[1,78],131:[1,79],132:[1,80],133:[1,81],134:[1,82]},{8:300,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{69:[2,114],100:84,101:[1,62],103:[1,63],106:85,107:[1,65],108:66,123:[1,83],125:[1,77],126:[1,76],129:[1,75],130:[1,78],131:[1,79],132:[1,80],133:[1,81],134:[1,82]},{1:[2,34],6:[2,34],25:[2,34],26:[2,34],46:[2,34],51:[2,34],54:[2,34],69:[2,34],75:[2,34],83:[2,34],88:[2,34],90:[2,34],99:[2,34],101:[2,34],102:[2,34],103:[2,34],107:[2,34],115:[2,34],123:[2,34],125:[2,34],126:[2,34],129:[2,34],130:[2,34],131:[2,34],132:[2,34],133:[2,34],134:[2,34]},{1:[2,105],6:[2,105],25:[2,105],26:[2,105],46:[2,105],51:[2,105],54:[2,105],63:[2,105],64:[2,105],65:[2,105],67:[2,105],69:[2,105],70:[2,105],71:[2,105],75:[2,105],81:[2,105],82:[2,105],83:[2,105],88:[2,105],90:[2,105],99:[2,105],101:[2,105],102:[2,105],103:[2,105],107:[2,105],115:[2,105],123:[2,105],125:[2,105],126:[2,105],129:[2,105],130:[2,105],131:[2,105],132:[2,105],133:[2,105],134:[2,105]},{1:[2,45],6:[2,45],25:[2,45],26:[2,45],46:[2,45],51:[2,45],54:[2,45],69:[2,45],75:[2,45],83:[2,45],88:[2,45],90:[2,45],99:[2,45],101:[2,45],102:[2,45],103:[2,45],107:[2,45],115:[2,45],123:[2,45],125:[2,45],126:[2,45],129:[2,45],130:[2,45],131:[2,45],132:[2,45],133:[2,45],134:[2,45]},{1:[2,193],6:[2,193],25:[2,193],26:[2,193],46:[2,193],51:[2,193],54:[2,193],69:[2,193],75:[2,193],83:[2,193],88:[2,193],90:[2,193],99:[2,193],101:[2,193],102:[2,193],103:[2,193],107:[2,193],115:[2,193],123:[2,193],125:[2,193],126:[2,193],129:[2,193],130:[2,193],131:[2,193],132:[2,193],133:[2,193],134:[2,193]},{1:[2,172],6:[2,172],25:[2,172],26:[2,172],46:[2,172],51:[2,172],54:[2,172],69:[2,172],75:[2,172],83:[2,172],88:[2,172],90:[2,172],99:[2,172],101:[2,172],102:[2,172],103:[2,172],107:[2,172],115:[2,172],118:[2,172],123:[2,172],125:[2,172],126:[2,172],129:[2,172],130:[2,172],131:[2,172],132:[2,172],133:[2,172],134:[2,172]},{1:[2,129],6:[2,129],25:[2,129],26:[2,129],46:[2,129],51:[2,129],54:[2,129],69:[2,129],75:[2,129],83:[2,129],88:[2,129],90:[2,129],99:[2,129],101:[2,129],102:[2,129],103:[2,129],107:[2,129],115:[2,129],123:[2,129],125:[2,129],126:[2,129],129:[2,129],130:[2,129],131:[2,129],132:[2,129],133:[2,129],134:[2,129]},{1:[2,130],6:[2,130],25:[2,130],26:[2,130],46:[2,130],51:[2,130],54:[2,130],69:[2,130],75:[2,130],83:[2,130],88:[2,130],90:[2,130],95:[2,130],99:[2,130],101:[2,130],102:[2,130],103:[2,130],107:[2,130],115:[2,130],123:[2,130],125:[2,130],126:[2,130],129:[2,130],130:[2,130],131:[2,130],132:[2,130],133:[2,130],134:[2,130]},{1:[2,163],6:[2,163],25:[2,163],26:[2,163],46:[2,163],51:[2,163],54:[2,163],69:[2,163],75:[2,163],83:[2,163],88:[2,163],90:[2,163],99:[2,163],101:[2,163],102:[2,163],103:[2,163],107:[2,163],115:[2,163],123:[2,163],125:[2,163],126:[2,163],129:[2,163],130:[2,163],131:[2,163],132:[2,163],133:[2,163],134:[2,163]},{5:301,25:[1,5]},{26:[1,302]},{6:[1,303],26:[2,169],118:[2,169],120:[2,169]},{8:304,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{1:[2,97],6:[2,97],25:[2,97],26:[2,97],46:[2,97],51:[2,97],54:[2,97],69:[2,97],75:[2,97],83:[2,97],88:[2,97],90:[2,97],99:[2,97],101:[2,97],102:[2,97],103:[2,97],107:[2,97],115:[2,97],123:[2,97],125:[2,97],126:[2,97],129:[2,97],130:[2,97],131:[2,97],132:[2,97],133:[2,97],134:[2,97]},{1:[2,133],6:[2,133],25:[2,133],26:[2,133],46:[2,133],51:[2,133],54:[2,133],63:[2,133],64:[2,133],65:[2,133],67:[2,133],69:[2,133],70:[2,133],71:[2,133],75:[2,133],81:[2,133],82:[2,133],83:[2,133],88:[2,133],90:[2,133],99:[2,133],101:[2,133],102:[2,133],103:[2,133],107:[2,133],115:[2,133],123:[2,133],125:[2,133],126:[2,133],129:[2,133],130:[2,133],131:[2,133],132:[2,133],133:[2,133],134:[2,133]},{1:[2,113],6:[2,113],25:[2,113],26:[2,113],46:[2,113],51:[2,113],54:[2,113],63:[2,113],64:[2,113],65:[2,113],67:[2,113],69:[2,113],70:[2,113],71:[2,113],75:[2,113],81:[2,113],82:[2,113],83:[2,113],88:[2,113],90:[2,113],99:[2,113],101:[2,113],102:[2,113],103:[2,113],107:[2,113],115:[2,113],123:[2,113],125:[2,113],126:[2,113],129:[2,113],130:[2,113],131:[2,113],132:[2,113],133:[2,113],134:[2,113]},{6:[2,119],25:[2,119],26:[2,119],51:[2,119],83:[2,119],88:[2,119]},{6:[2,49],25:[2,49],26:[2,49],50:305,51:[1,223]},{6:[2,120],25:[2,120],26:[2,120],51:[2,120],83:[2,120],88:[2,120]},{1:[2,158],6:[2,158],25:[2,158],26:[2,158],46:[2,158],51:[2,158],54:[2,158],69:[2,158],75:[2,158],83:[2,158],88:[2,158],90:[2,158],99:[2,158],100:84,101:[2,158],102:[2,158],103:[2,158],106:85,107:[2,158],108:66,115:[1,306],123:[2,158],125:[1,77],126:[1,76],129:[1,75],130:[1,78],131:[1,79],132:[1,80],133:[1,81],134:[1,82]},{1:[2,160],6:[2,160],25:[2,160],26:[2,160],46:[2,160],51:[2,160],54:[2,160],69:[2,160],75:[2,160],83:[2,160],88:[2,160],90:[2,160],99:[2,160],100:84,101:[2,160],102:[1,307],103:[2,160],106:85,107:[2,160],108:66,115:[2,160],123:[2,160],125:[1,77],126:[1,76],129:[1,75],130:[1,78],131:[1,79],132:[1,80],133:[1,81],134:[1,82]},{1:[2,159],6:[2,159],25:[2,159],26:[2,159],46:[2,159],51:[2,159],54:[2,159],69:[2,159],75:[2,159],83:[2,159],88:[2,159],90:[2,159],99:[2,159],100:84,101:[2,159],102:[2,159],103:[2,159],106:85,107:[2,159],108:66,115:[2,159],123:[2,159],125:[1,77],126:[1,76],129:[1,75],130:[1,78],131:[1,79],132:[1,80],133:[1,81],134:[1,82]},{6:[2,88],25:[2,88],26:[2,88],51:[2,88],75:[2,88]},{6:[2,49],25:[2,49],26:[2,49],50:308,51:[1,233]},{26:[1,309],100:84,101:[1,62],103:[1,63],106:85,107:[1,65],108:66,123:[1,83],125:[1,77],126:[1,76],129:[1,75],130:[1,78],131:[1,79],132:[1,80],133:[1,81],134:[1,82]},{26:[1,310]},{1:[2,166],6:[2,166],25:[2,166],26:[2,166],46:[2,166],51:[2,166],54:[2,166],69:[2,166],75:[2,166],83:[2,166],88:[2,166],90:[2,166],99:[2,166],101:[2,166],102:[2,166],103:[2,166],107:[2,166],115:[2,166],123:[2,166],125:[2,166],126:[2,166],129:[2,166],130:[2,166],131:[2,166],132:[2,166],133:[2,166],134:[2,166]},{26:[2,170],118:[2,170],120:[2,170]},{25:[2,125],51:[2,125],100:84,101:[1,62],103:[1,63],106:85,107:[1,65],108:66,123:[1,83],125:[1,77],126:[1,76],129:[1,75],130:[1,78],131:[1,79],132:[1,80],133:[1,81],134:[1,82]},{6:[1,260],25:[1,261],26:[1,311]},{8:312,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{8:313,9:115,10:19,11:20,12:21,13:[1,22],14:8,15:9,16:10,17:11,18:12,19:13,20:14,21:15,22:16,23:17,24:18,27:59,28:[1,70],29:49,30:[1,68],31:[1,69],32:24,33:[1,50],34:[1,51],35:[1,52],36:23,41:60,42:[1,44],43:[1,46],44:[1,29],47:30,48:[1,57],49:[1,58],55:47,56:48,58:36,60:25,61:26,62:27,73:[1,67],76:[1,43],80:[1,28],85:[1,55],86:[1,56],87:[1,54],93:[1,38],97:[1,45],98:[1,53],100:39,101:[1,62],103:[1,63],104:40,105:[1,64],106:41,107:[1,65],108:66,116:[1,42],121:37,122:[1,61],124:[1,31],125:[1,32],126:[1,33],127:[1,34],128:[1,35]},{6:[1,271],25:[1,272],26:[1,314]},{6:[2,37],25:[2,37],26:[2,37],51:[2,37],75:[2,37]},{1:[2,164],6:[2,164],25:[2,164],26:[2,164],46:[2,164],51:[2,164],54:[2,164],69:[2,164],75:[2,164],83:[2,164],88:[2,164],90:[2,164],99:[2,164],101:[2,164],102:[2,164],103:[2,164],107:[2,164],115:[2,164],123:[2,164],125:[2,164],126:[2,164],129:[2,164],130:[2,164],131:[2,164],132:[2,164],133:[2,164],134:[2,164]},{6:[2,121],25:[2,121],26:[2,121],51:[2,121],83:[2,121],88:[2,121]},{1:[2,161],6:[2,161],25:[2,161],26:[2,161],46:[2,161],51:[2,161],54:[2,161],69:[2,161],75:[2,161],83:[2,161],88:[2,161],90:[2,161],99:[2,161],100:84,101:[2,161],102:[2,161],103:[2,161],106:85,107:[2,161],108:66,115:[2,161],123:[2,161],125:[1,77],126:[1,76],129:[1,75],130:[1,78],131:[1,79],132:[1,80],133:[1,81],134:[1,82]},{1:[2,162],6:[2,162],25:[2,162],26:[2,162],46:[2,162],51:[2,162],54:[2,162],69:[2,162],75:[2,162],83:[2,162],88:[2,162],90:[2,162],99:[2,162],100:84,101:[2,162],102:[2,162],103:[2,162],106:85,107:[2,162],108:66,115:[2,162],123:[2,162],125:[1,77],126:[1,76],129:[1,75],130:[1,78],131:[1,79],132:[1,80],133:[1,81],134:[1,82]},{6:[2,89],25:[2,89],26:[2,89],51:[2,89],75:[2,89]}],
  1590. defaultActions: {57:[2,47],58:[2,48],72:[2,3],91:[2,103],186:[2,83]},
  1591. parseError: function parseError(str, hash) {
  1592. throw new Error(str);
  1593. },
  1594. parse: function parse(input) {
  1595. var self = this,
  1596. stack = [0],
  1597. vstack = [null], // semantic value stack
  1598. lstack = [], // location stack
  1599. table = this.table,
  1600. yytext = '',
  1601. yylineno = 0,
  1602. yyleng = 0,
  1603. recovering = 0,
  1604. TERROR = 2,
  1605. EOF = 1;
  1606. //this.reductionCount = this.shiftCount = 0;
  1607. this.lexer.setInput(input);
  1608. this.lexer.yy = this.yy;
  1609. this.yy.lexer = this.lexer;
  1610. if (typeof this.lexer.yylloc == 'undefined')
  1611. this.lexer.yylloc = {};
  1612. var yyloc = this.lexer.yylloc;
  1613. lstack.push(yyloc);
  1614. if (typeof this.yy.parseError === 'function')
  1615. this.parseError = this.yy.parseError;
  1616. function popStack (n) {
  1617. stack.length = stack.length - 2*n;
  1618. vstack.length = vstack.length - n;
  1619. lstack.length = lstack.length - n;
  1620. }
  1621. function lex() {
  1622. var token;
  1623. token = self.lexer.lex() || 1; // $end = 1
  1624. // if token isn't its numeric value, convert
  1625. if (typeof token !== 'number') {
  1626. token = self.symbols_[token] || token;
  1627. }
  1628. return token;
  1629. };
  1630. var symbol, preErrorSymbol, state, action, a, r, yyval={},p,len,newState, expected;
  1631. while (true) {
  1632. // retreive state number from top of stack
  1633. state = stack[stack.length-1];
  1634. // use default actions if available
  1635. if (this.defaultActions[state]) {
  1636. action = this.defaultActions[state];
  1637. } else {
  1638. if (symbol == null)
  1639. symbol = lex();
  1640. // read action for current state and first input
  1641. action = table[state] && table[state][symbol];
  1642. }
  1643. // handle parse error
  1644. if (typeof action === 'undefined' || !action.length || !action[0]) {
  1645. if (!recovering) {
  1646. // Report error
  1647. expected = [];
  1648. for (p in table[state]) if (this.terminals_[p] && p > 2) {
  1649. expected.push("'"+this.terminals_[p]+"'");
  1650. }
  1651. var errStr = '';
  1652. if (this.lexer.showPosition) {
  1653. errStr = 'Parse error on line '+(yylineno+1)+":\n"+this.lexer.showPosition()+'\nExpecting '+expected.join(', ');
  1654. } else {
  1655. errStr = 'Parse error on line '+(yylineno+1)+": Unexpected " +
  1656. (symbol == 1 /*EOF*/ ? "end of input" :
  1657. ("'"+(this.terminals_[symbol] || symbol)+"'"));
  1658. }
  1659. this.parseError(errStr,
  1660. {text: this.lexer.match, token: this.terminals_[symbol] || symbol, line: this.lexer.yylineno, loc: yyloc, expected: expected});
  1661. }
  1662. // just recovered from another error
  1663. if (recovering == 3) {
  1664. if (symbol == EOF) {
  1665. throw new Error(errStr || 'Parsing halted.');
  1666. }
  1667. // discard current lookahead and grab another
  1668. yyleng = this.lexer.yyleng;
  1669. yytext = this.lexer.yytext;
  1670. yylineno = this.lexer.yylineno;
  1671. yyloc = this.lexer.yylloc;
  1672. symbol = lex();
  1673. }
  1674. // try to recover from error
  1675. while (1) {
  1676. // check for error recovery rule in this state
  1677. if ((TERROR.toString()) in table[state]) {
  1678. break;
  1679. }
  1680. if (state == 0) {
  1681. throw new Error(errStr || 'Parsing halted.');
  1682. }
  1683. popStack(1);
  1684. state = stack[stack.length-1];
  1685. }
  1686. preErrorSymbol = symbol; // save the lookahead token
  1687. symbol = TERROR; // insert generic error symbol as new lookahead
  1688. state = stack[stack.length-1];
  1689. action = table[state] && table[state][TERROR];
  1690. recovering = 3; // allow 3 real symbols to be shifted before reporting a new error
  1691. }
  1692. // this shouldn't happen, unless resolve defaults are off
  1693. if (action[0] instanceof Array && action.length > 1) {
  1694. throw new Error('Parse Error: multiple actions possible at state: '+state+', token: '+symbol);
  1695. }
  1696. switch (action[0]) {
  1697. case 1: // shift
  1698. //this.shiftCount++;
  1699. stack.push(symbol);
  1700. vstack.push(this.lexer.yytext);
  1701. lstack.push(this.lexer.yylloc);
  1702. stack.push(action[1]); // push state
  1703. symbol = null;
  1704. if (!preErrorSymbol) { // normal execution/no error
  1705. yyleng = this.lexer.yyleng;
  1706. yytext = this.lexer.yytext;
  1707. yylineno = this.lexer.yylineno;
  1708. yyloc = this.lexer.yylloc;
  1709. if (recovering > 0)
  1710. recovering--;
  1711. } else { // error just occurred, resume old lookahead f/ before error
  1712. symbol = preErrorSymbol;
  1713. preErrorSymbol = null;
  1714. }
  1715. break;
  1716. case 2: // reduce
  1717. //this.reductionCount++;
  1718. len = this.productions_[action[1]][1];
  1719. // perform semantic action
  1720. yyval.$ = vstack[vstack.length-len]; // default to $$ = $1
  1721. // default location, uses first token for firsts, last for lasts
  1722. yyval._$ = {
  1723. first_line: lstack[lstack.length-(len||1)].first_line,
  1724. last_line: lstack[lstack.length-1].last_line,
  1725. first_column: lstack[lstack.length-(len||1)].first_column,
  1726. last_column: lstack[lstack.length-1].last_column
  1727. };
  1728. r = this.performAction.call(yyval, yytext, yyleng, yylineno, this.yy, action[1], vstack, lstack);
  1729. if (typeof r !== 'undefined') {
  1730. return r;
  1731. }
  1732. // pop off stack
  1733. if (len) {
  1734. stack = stack.slice(0,-1*len*2);
  1735. vstack = vstack.slice(0, -1*len);
  1736. lstack = lstack.slice(0, -1*len);
  1737. }
  1738. stack.push(this.productions_[action[1]][0]); // push nonterminal (reduce)
  1739. vstack.push(yyval.$);
  1740. lstack.push(yyval._$);
  1741. // goto new state = table[STATE][NONTERMINAL]
  1742. newState = table[stack[stack.length-2]][stack[stack.length-1]];
  1743. stack.push(newState);
  1744. break;
  1745. case 3: // accept
  1746. return true;
  1747. }
  1748. }
  1749. return true;
  1750. }};
  1751. return parser;
  1752. })();
  1753. if (typeof require !== 'undefined' && typeof exports !== 'undefined') {
  1754. exports.parser = parser;
  1755. exports.parse = function () { return parser.parse.apply(parser, arguments); }
  1756. exports.main = function commonjsMain(args) {
  1757. if (!args[1])
  1758. throw new Error('Usage: '+args[0]+' FILE');
  1759. if (typeof process !== 'undefined') {
  1760. var source = require('fs').readFileSync(require('path').join(process.cwd(), args[1]), "utf8");
  1761. } else {
  1762. var cwd = require("file").path(require("file").cwd());
  1763. var source = cwd.join(args[1]).read({charset: "utf-8"});
  1764. }
  1765. return exports.parser.parse(source);
  1766. }
  1767. if (typeof module !== 'undefined' && require.main === module) {
  1768. exports.main(typeof process !== 'undefined' ? process.argv.slice(1) : require("system").args);
  1769. }
  1770. }return exports;
  1771. }());(function () {
  1772. var exports = __MODULES['scope'] = {};
  1773. (function() {
  1774. var Scope, extend, last, _ref;
  1775. _ref = require('./helpers'), extend = _ref.extend, last = _ref.last;
  1776. exports.Scope = Scope = (function() {
  1777. Scope.root = null;
  1778. function Scope(parent, expressions, method) {
  1779. this.parent = parent;
  1780. this.expressions = expressions;
  1781. this.method = method;
  1782. this.variables = [
  1783. {
  1784. name: 'arguments',
  1785. type: 'arguments'
  1786. }
  1787. ];
  1788. this.positions = {};
  1789. if (!this.parent) {
  1790. Scope.root = this;
  1791. }
  1792. }
  1793. Scope.prototype.add = function(name, type, immediate) {
  1794. var pos;
  1795. if (this.shared && !immediate) {
  1796. return this.parent.add(name, type, immediate);
  1797. }
  1798. if (typeof (pos = this.positions[name]) === 'number') {
  1799. return this.variables[pos].type = type;
  1800. } else {
  1801. return this.positions[name] = this.variables.push({
  1802. name: name,
  1803. type: type
  1804. }) - 1;
  1805. }
  1806. };
  1807. Scope.prototype.find = function(name, options) {
  1808. if (this.check(name, options)) {
  1809. return true;
  1810. }
  1811. this.add(name, 'var');
  1812. return false;
  1813. };
  1814. Scope.prototype.parameter = function(name) {
  1815. if (this.shared && this.parent.check(name, true)) {
  1816. return;
  1817. }
  1818. return this.add(name, 'param');
  1819. };
  1820. Scope.prototype.check = function(name, immediate) {
  1821. var found, _ref2;
  1822. found = !!this.type(name);
  1823. if (found || immediate) {
  1824. return found;
  1825. }
  1826. return !!((_ref2 = this.parent) != null ? _ref2.check(name) : void 0);
  1827. };
  1828. Scope.prototype.temporary = function(name, index) {
  1829. if (name.length > 1) {
  1830. return '_' + name + (index > 1 ? index : '');
  1831. } else {
  1832. return '_' + (index + parseInt(name, 36)).toString(36).replace(/\d/g, 'a');
  1833. }
  1834. };
  1835. Scope.prototype.type = function(name) {
  1836. var v, _i, _len, _ref2;
  1837. _ref2 = this.variables;
  1838. for (_i = 0, _len = _ref2.length; _i < _len; _i++) {
  1839. v = _ref2[_i];
  1840. if (v.name === name) {
  1841. return v.type;
  1842. }
  1843. }
  1844. return null;
  1845. };
  1846. Scope.prototype.freeVariable = function(type) {
  1847. var index, temp;
  1848. index = 0;
  1849. while (this.check((temp = this.temporary(type, index)))) {
  1850. index++;
  1851. }
  1852. this.add(temp, 'var', true);
  1853. return temp;
  1854. };
  1855. Scope.prototype.assign = function(name, value) {
  1856. this.add(name, {
  1857. value: value,
  1858. assigned: true
  1859. });
  1860. return this.hasAssignments = true;
  1861. };
  1862. Scope.prototype.hasDeclarations = function() {
  1863. return !!this.declaredVariables().length;
  1864. };
  1865. Scope.prototype.declaredVariables = function() {
  1866. var realVars, tempVars, v, _i, _len, _ref2;
  1867. realVars = [];
  1868. tempVars = [];
  1869. _ref2 = this.variables;
  1870. for (_i = 0, _len = _ref2.length; _i < _len; _i++) {
  1871. v = _ref2[_i];
  1872. if (v.type === 'var') {
  1873. (v.name.charAt(0) === '_' ? tempVars : realVars).push(v.name);
  1874. }
  1875. }
  1876. return realVars.sort().concat(tempVars.sort());
  1877. };
  1878. Scope.prototype.assignedVariables = function() {
  1879. var v, _i, _len, _ref2, _results;
  1880. _ref2 = this.variables;
  1881. _results = [];
  1882. for (_i = 0, _len = _ref2.length; _i < _len; _i++) {
  1883. v = _ref2[_i];
  1884. if (v.type.assigned) {
  1885. _results.push("" + v.name + " = " + v.type.value);
  1886. }
  1887. }
  1888. return _results;
  1889. };
  1890. return Scope;
  1891. })();
  1892. }).call(this);
  1893. return exports;
  1894. }());(function () {
  1895. var exports = __MODULES['nodes'] = {};
  1896. (function() {
  1897. var Access, Arr, Assign, Base, Block, Call, Class, Closure, Code, Comment, Existence, Extends, For, IDENTIFIER, IDENTIFIER_STR, IS_STRING, If, In, Index, LEVEL_ACCESS, LEVEL_COND, LEVEL_LIST, LEVEL_OP, LEVEL_PAREN, LEVEL_TOP, Literal, METHOD_DEF, NEGATE, NO, Obj, Op, Param, Parens, Push, Range, Return, SIMPLENUM, Scope, Slice, Splat, Switch, TAB, THIS, Throw, Try, UTILITIES, Value, While, YES, compact, del, ends, extend, flatten, last, merge, multident, starts, unfoldSoak, utility, _ref;
  1898. var __hasProp = Object.prototype.hasOwnProperty, __extends = function(child, parent) {
  1899. for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; }
  1900. function ctor() { this.constructor = child; }
  1901. ctor.prototype = parent.prototype;
  1902. child.prototype = new ctor;
  1903. child.__super__ = parent.prototype;
  1904. return child;
  1905. }, __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }, __indexOf = Array.prototype.indexOf || function(item) {
  1906. for (var i = 0, l = this.length; i < l; i++) {
  1907. if (this[i] === item) return i;
  1908. }
  1909. return -1;
  1910. };
  1911. Scope = require('./scope').Scope;
  1912. _ref = require('./helpers'), compact = _ref.compact, flatten = _ref.flatten, extend = _ref.extend, merge = _ref.merge, del = _ref.del, starts = _ref.starts, ends = _ref.ends, last = _ref.last;
  1913. exports.extend = extend;
  1914. YES = function() {
  1915. return true;
  1916. };
  1917. NO = function() {
  1918. return false;
  1919. };
  1920. THIS = function() {
  1921. return this;
  1922. };
  1923. NEGATE = function() {
  1924. this.negated = !this.negated;
  1925. return this;
  1926. };
  1927. exports.Base = Base = (function() {
  1928. function Base() {}
  1929. Base.prototype.compile = function(o, lvl) {
  1930. var node;
  1931. o = extend({}, o);
  1932. if (lvl) {
  1933. o.level = lvl;
  1934. }
  1935. node = this.unfoldSoak(o) || this;
  1936. node.tab = o.indent;
  1937. if (o.level === LEVEL_TOP || !node.isStatement(o)) {
  1938. return node.compileNode(o);
  1939. } else {
  1940. return node.compileClosure(o);
  1941. }
  1942. };
  1943. Base.prototype.compileClosure = function(o) {
  1944. if (this.jumps() || this instanceof Throw) {
  1945. throw SyntaxError('cannot use a pure statement in an expression.');
  1946. }
  1947. o.sharedScope = true;
  1948. return Closure.wrap(this).compileNode(o);
  1949. };
  1950. Base.prototype.cache = function(o, level, reused) {
  1951. var ref, sub;
  1952. if (!this.isComplex()) {
  1953. ref = level ? this.compile(o, level) : this;
  1954. return [ref, ref];
  1955. } else {
  1956. ref = new Literal(reused || o.scope.freeVariable('ref'));
  1957. sub = new Assign(ref, this);
  1958. if (level) {
  1959. return [sub.compile(o, level), ref.value];
  1960. } else {
  1961. return [sub, ref];
  1962. }
  1963. }
  1964. };
  1965. Base.prototype.compileLoopReference = function(o, name) {
  1966. var src, tmp;
  1967. src = tmp = this.compile(o, LEVEL_LIST);
  1968. if (!((-Infinity < +src && +src < Infinity) || IDENTIFIER.test(src) && o.scope.check(src, true))) {
  1969. src = "" + (tmp = o.scope.freeVariable(name)) + " = " + src;
  1970. }
  1971. return [src, tmp];
  1972. };
  1973. Base.prototype.makeReturn = function() {
  1974. return new Return(this);
  1975. };
  1976. Base.prototype.contains = function(pred) {
  1977. var contains;
  1978. contains = false;
  1979. this.traverseChildren(false, function(node) {
  1980. if (pred(node)) {
  1981. contains = true;
  1982. return false;
  1983. }
  1984. });
  1985. return contains;
  1986. };
  1987. Base.prototype.containsType = function(type) {
  1988. return this instanceof type || this.contains(function(node) {
  1989. return node instanceof type;
  1990. });
  1991. };
  1992. Base.prototype.lastNonComment = function(list) {
  1993. var i;
  1994. i = list.length;
  1995. while (i--) {
  1996. if (!(list[i] instanceof Comment)) {
  1997. return list[i];
  1998. }
  1999. }
  2000. return null;
  2001. };
  2002. Base.prototype.toString = function(idt, name) {
  2003. var tree;
  2004. if (idt == null) {
  2005. idt = '';
  2006. }
  2007. if (name == null) {
  2008. name = this.constructor.name;
  2009. }
  2010. tree = '\n' + idt + name;
  2011. if (this.soak) {
  2012. tree += '?';
  2013. }
  2014. this.eachChild(function(node) {
  2015. return tree += node.toString(idt + TAB);
  2016. });
  2017. return tree;
  2018. };
  2019. Base.prototype.eachChild = function(func) {
  2020. var attr, child, _i, _j, _len, _len2, _ref2, _ref3;
  2021. if (!this.children) {
  2022. return this;
  2023. }
  2024. _ref2 = this.children;
  2025. for (_i = 0, _len = _ref2.length; _i < _len; _i++) {
  2026. attr = _ref2[_i];
  2027. if (this[attr]) {
  2028. _ref3 = flatten([this[attr]]);
  2029. for (_j = 0, _len2 = _ref3.length; _j < _len2; _j++) {
  2030. child = _ref3[_j];
  2031. if (func(child) === false) {
  2032. return this;
  2033. }
  2034. }
  2035. }
  2036. }
  2037. return this;
  2038. };
  2039. Base.prototype.traverseChildren = function(crossScope, func) {
  2040. return this.eachChild(function(child) {
  2041. if (func(child) === false) {
  2042. return false;
  2043. }
  2044. return child.traverseChildren(crossScope, func);
  2045. });
  2046. };
  2047. Base.prototype.invert = function() {
  2048. return new Op('!', this);
  2049. };
  2050. Base.prototype.unwrapAll = function() {
  2051. var node;
  2052. node = this;
  2053. while (node !== (node = node.unwrap())) {
  2054. continue;
  2055. }
  2056. return node;
  2057. };
  2058. Base.prototype.children = [];
  2059. Base.prototype.isStatement = NO;
  2060. Base.prototype.jumps = NO;
  2061. Base.prototype.isComplex = YES;
  2062. Base.prototype.isChainable = NO;
  2063. Base.prototype.isAssignable = NO;
  2064. Base.prototype.unwrap = THIS;
  2065. Base.prototype.unfoldSoak = NO;
  2066. Base.prototype.assigns = NO;
  2067. return Base;
  2068. })();
  2069. exports.Block = Block = (function() {
  2070. __extends(Block, Base);
  2071. function Block(nodes) {
  2072. this.expressions = compact(flatten(nodes || []));
  2073. }
  2074. Block.prototype.children = ['expressions'];
  2075. Block.prototype.push = function(node) {
  2076. this.expressions.push(node);
  2077. return this;
  2078. };
  2079. Block.prototype.pop = function() {
  2080. return this.expressions.pop();
  2081. };
  2082. Block.prototype.unshift = function(node) {
  2083. this.expressions.unshift(node);
  2084. return this;
  2085. };
  2086. Block.prototype.unwrap = function() {
  2087. if (this.expressions.length === 1) {
  2088. return this.expressions[0];
  2089. } else {
  2090. return this;
  2091. }
  2092. };
  2093. Block.prototype.isEmpty = function() {
  2094. return !this.expressions.length;
  2095. };
  2096. Block.prototype.isStatement = function(o) {
  2097. var exp, _i, _len, _ref2;
  2098. _ref2 = this.expressions;
  2099. for (_i = 0, _len = _ref2.length; _i < _len; _i++) {
  2100. exp = _ref2[_i];
  2101. if (exp.isStatement(o)) {
  2102. return true;
  2103. }
  2104. }
  2105. return false;
  2106. };
  2107. Block.prototype.jumps = function(o) {
  2108. var exp, _i, _len, _ref2;
  2109. _ref2 = this.expressions;
  2110. for (_i = 0, _len = _ref2.length; _i < _len; _i++) {
  2111. exp = _ref2[_i];
  2112. if (exp.jumps(o)) {
  2113. return exp;
  2114. }
  2115. }
  2116. };
  2117. Block.prototype.makeReturn = function() {
  2118. var expr, len;
  2119. len = this.expressions.length;
  2120. while (len--) {
  2121. expr = this.expressions[len];
  2122. if (!(expr instanceof Comment)) {
  2123. this.expressions[len] = expr.makeReturn();
  2124. if (expr instanceof Return && !expr.expression) {
  2125. this.expressions.splice(len, 1);
  2126. }
  2127. break;
  2128. }
  2129. }
  2130. return this;
  2131. };
  2132. Block.prototype.compile = function(o, level) {
  2133. if (o == null) {
  2134. o = {};
  2135. }
  2136. if (o.scope) {
  2137. return Block.__super__.compile.call(this, o, level);
  2138. } else {
  2139. return this.compileRoot(o);
  2140. }
  2141. };
  2142. Block.prototype.compileNode = function(o) {
  2143. var code, codes, node, top, _i, _len, _ref2;
  2144. this.tab = o.indent;
  2145. top = o.level === LEVEL_TOP;
  2146. codes = [];
  2147. _ref2 = this.expressions;
  2148. for (_i = 0, _len = _ref2.length; _i < _len; _i++) {
  2149. node = _ref2[_i];
  2150. node = node.unwrapAll();
  2151. node = node.unfoldSoak(o) || node;
  2152. if (node instanceof Block) {
  2153. codes.push(node.compileNode(o));
  2154. } else if (top) {
  2155. node.front = true;
  2156. code = node.compile(o);
  2157. codes.push(node.isStatement(o) ? code : this.tab + code + ';');
  2158. } else {
  2159. codes.push(node.compile(o, LEVEL_LIST));
  2160. }
  2161. }
  2162. if (top) {
  2163. return codes.join('\n');
  2164. }
  2165. code = codes.join(', ') || 'void 0';
  2166. if (codes.length > 1 && o.level >= LEVEL_LIST) {
  2167. return "(" + code + ")";
  2168. } else {
  2169. return code;
  2170. }
  2171. };
  2172. Block.prototype.compileRoot = function(o) {
  2173. var code;
  2174. o.indent = this.tab = o.bare ? '' : TAB;
  2175. o.scope = new Scope(null, this, null);
  2176. o.level = LEVEL_TOP;
  2177. code = this.compileWithDeclarations(o);
  2178. if (o.bare) {
  2179. return code;
  2180. } else {
  2181. return "(function() {\n" + code + "\n}).call(this);\n";
  2182. }
  2183. };
  2184. Block.prototype.compileWithDeclarations = function(o) {
  2185. var assigns, code, declars, exp, i, post, rest, scope, _len, _ref2;
  2186. code = post = '';
  2187. _ref2 = this.expressions;
  2188. for (i = 0, _len = _ref2.length; i < _len; i++) {
  2189. exp = _ref2[i];
  2190. exp = exp.unwrap();
  2191. if (!(exp instanceof Comment || exp instanceof Literal)) {
  2192. break;
  2193. }
  2194. }
  2195. o = merge(o, {
  2196. level: LEVEL_TOP
  2197. });
  2198. if (i) {
  2199. rest = this.expressions.splice(i, this.expressions.length);
  2200. code = this.compileNode(o);
  2201. this.expressions = rest;
  2202. }
  2203. post = this.compileNode(o);
  2204. scope = o.scope;
  2205. if (scope.expressions === this) {
  2206. declars = o.scope.hasDeclarations();
  2207. assigns = scope.hasAssignments;
  2208. if ((declars || assigns) && i) {
  2209. code += '\n';
  2210. }
  2211. if (declars) {
  2212. code += "" + this.tab + "var " + (scope.declaredVariables().join(', ')) + ";\n";
  2213. }
  2214. if (assigns) {
  2215. code += "" + this.tab + "var " + (multident(scope.assignedVariables().join(', '), this.tab)) + ";\n";
  2216. }
  2217. }
  2218. return code + post;
  2219. };
  2220. Block.wrap = function(nodes) {
  2221. if (nodes.length === 1 && nodes[0] instanceof Block) {
  2222. return nodes[0];
  2223. }
  2224. return new Block(nodes);
  2225. };
  2226. return Block;
  2227. })();
  2228. exports.Literal = Literal = (function() {
  2229. __extends(Literal, Base);
  2230. function Literal(value) {
  2231. this.value = value;
  2232. }
  2233. Literal.prototype.makeReturn = function() {
  2234. if (this.isStatement()) {
  2235. return this;
  2236. } else {
  2237. return new Return(this);
  2238. }
  2239. };
  2240. Literal.prototype.isAssignable = function() {
  2241. return IDENTIFIER.test(this.value);
  2242. };
  2243. Literal.prototype.isStatement = function() {
  2244. var _ref2;
  2245. return (_ref2 = this.value) === 'break' || _ref2 === 'continue' || _ref2 === 'debugger';
  2246. };
  2247. Literal.prototype.isComplex = NO;
  2248. Literal.prototype.assigns = function(name) {
  2249. return name === this.value;
  2250. };
  2251. Literal.prototype.jumps = function(o) {
  2252. if (!this.isStatement()) {
  2253. return false;
  2254. }
  2255. if (!(o && (o.loop || o.block && (this.value !== 'continue')))) {
  2256. return this;
  2257. } else {
  2258. return false;
  2259. }
  2260. };
  2261. Literal.prototype.compileNode = function(o) {
  2262. var code;
  2263. code = this.isUndefined ? o.level >= LEVEL_ACCESS ? '(void 0)' : 'void 0' : this.value.reserved ? "\"" + this.value + "\"" : this.value;
  2264. if (this.isStatement()) {
  2265. return "" + this.tab + code + ";";
  2266. } else {
  2267. return code;
  2268. }
  2269. };
  2270. Literal.prototype.toString = function() {
  2271. return ' "' + this.value + '"';
  2272. };
  2273. return Literal;
  2274. })();
  2275. exports.Return = Return = (function() {
  2276. __extends(Return, Base);
  2277. function Return(expr) {
  2278. if (expr && !expr.unwrap().isUndefined) {
  2279. this.expression = expr;
  2280. }
  2281. }
  2282. Return.prototype.children = ['expression'];
  2283. Return.prototype.isStatement = YES;
  2284. Return.prototype.makeReturn = THIS;
  2285. Return.prototype.jumps = THIS;
  2286. Return.prototype.compile = function(o, level) {
  2287. var expr, _ref2;
  2288. expr = (_ref2 = this.expression) != null ? _ref2.makeReturn() : void 0;
  2289. if (expr && !(expr instanceof Return)) {
  2290. return expr.compile(o, level);
  2291. } else {
  2292. return Return.__super__.compile.call(this, o, level);
  2293. }
  2294. };
  2295. Return.prototype.compileNode = function(o) {
  2296. return this.tab + ("return" + (this.expression ? ' ' + this.expression.compile(o, LEVEL_PAREN) : '') + ";");
  2297. };
  2298. return Return;
  2299. })();
  2300. exports.Value = Value = (function() {
  2301. __extends(Value, Base);
  2302. function Value(base, props, tag) {
  2303. if (!props && base instanceof Value) {
  2304. return base;
  2305. }
  2306. this.base = base;
  2307. this.properties = props || [];
  2308. if (tag) {
  2309. this[tag] = true;
  2310. }
  2311. return this;
  2312. }
  2313. Value.prototype.children = ['base', 'properties'];
  2314. Value.prototype.push = function(prop) {
  2315. this.properties.push(prop);
  2316. return this;
  2317. };
  2318. Value.prototype.hasProperties = function() {
  2319. return !!this.properties.length;
  2320. };
  2321. Value.prototype.isArray = function() {
  2322. return !this.properties.length && this.base instanceof Arr;
  2323. };
  2324. Value.prototype.isComplex = function() {
  2325. return this.hasProperties() || this.base.isComplex();
  2326. };
  2327. Value.prototype.isAssignable = function() {
  2328. return this.hasProperties() || this.base.isAssignable();
  2329. };
  2330. Value.prototype.isSimpleNumber = function() {
  2331. return this.base instanceof Literal && SIMPLENUM.test(this.base.value);
  2332. };
  2333. Value.prototype.isAtomic = function() {
  2334. var node, _i, _len, _ref2;
  2335. _ref2 = this.properties.concat(this.base);
  2336. for (_i = 0, _len = _ref2.length; _i < _len; _i++) {
  2337. node = _ref2[_i];
  2338. if (node.soak || node instanceof Call) {
  2339. return false;
  2340. }
  2341. }
  2342. return true;
  2343. };
  2344. Value.prototype.isStatement = function(o) {
  2345. return !this.properties.length && this.base.isStatement(o);
  2346. };
  2347. Value.prototype.assigns = function(name) {
  2348. return !this.properties.length && this.base.assigns(name);
  2349. };
  2350. Value.prototype.jumps = function(o) {
  2351. return !this.properties.length && this.base.jumps(o);
  2352. };
  2353. Value.prototype.isObject = function(onlyGenerated) {
  2354. if (this.properties.length) {
  2355. return false;
  2356. }
  2357. return (this.base instanceof Obj) && (!onlyGenerated || this.base.generated);
  2358. };
  2359. Value.prototype.isSplice = function() {
  2360. return last(this.properties) instanceof Slice;
  2361. };
  2362. Value.prototype.makeReturn = function() {
  2363. if (this.properties.length) {
  2364. return Value.__super__.makeReturn.call(this);
  2365. } else {
  2366. return this.base.makeReturn();
  2367. }
  2368. };
  2369. Value.prototype.unwrap = function() {
  2370. if (this.properties.length) {
  2371. return this;
  2372. } else {
  2373. return this.base;
  2374. }
  2375. };
  2376. Value.prototype.cacheReference = function(o) {
  2377. var base, bref, name, nref;
  2378. name = last(this.properties);
  2379. if (this.properties.length < 2 && !this.base.isComplex() && !(name != null ? name.isComplex() : void 0)) {
  2380. return [this, this];
  2381. }
  2382. base = new Value(this.base, this.properties.slice(0, -1));
  2383. if (base.isComplex()) {
  2384. bref = new Literal(o.scope.freeVariable('base'));
  2385. base = new Value(new Parens(new Assign(bref, base)));
  2386. }
  2387. if (!name) {
  2388. return [base, bref];
  2389. }
  2390. if (name.isComplex()) {
  2391. nref = new Literal(o.scope.freeVariable('name'));
  2392. name = new Index(new Assign(nref, name.index));
  2393. nref = new Index(nref);
  2394. }
  2395. return [base.push(name), new Value(bref || base.base, [nref || name])];
  2396. };
  2397. Value.prototype.compileNode = function(o) {
  2398. var code, prop, props, _i, _len;
  2399. this.base.front = this.front;
  2400. props = this.properties;
  2401. code = this.base.compile(o, props.length ? LEVEL_ACCESS : null);
  2402. if ((this.base instanceof Parens || props.length) && SIMPLENUM.test(code)) {
  2403. code = "" + code + ".";
  2404. }
  2405. for (_i = 0, _len = props.length; _i < _len; _i++) {
  2406. prop = props[_i];
  2407. code += prop.compile(o);
  2408. }
  2409. return code;
  2410. };
  2411. Value.prototype.unfoldSoak = function(o) {
  2412. var result;
  2413. if (this.unfoldedSoak != null) {
  2414. return this.unfoldedSoak;
  2415. }
  2416. result = __bind(function() {
  2417. var fst, i, ifn, prop, ref, snd, _len, _ref2;
  2418. if (ifn = this.base.unfoldSoak(o)) {
  2419. Array.prototype.push.apply(ifn.body.properties, this.properties);
  2420. return ifn;
  2421. }
  2422. _ref2 = this.properties;
  2423. for (i = 0, _len = _ref2.length; i < _len; i++) {
  2424. prop = _ref2[i];
  2425. if (prop.soak) {
  2426. prop.soak = false;
  2427. fst = new Value(this.base, this.properties.slice(0, i));
  2428. snd = new Value(this.base, this.properties.slice(i));
  2429. if (fst.isComplex()) {
  2430. ref = new Literal(o.scope.freeVariable('ref'));
  2431. fst = new Parens(new Assign(ref, fst));
  2432. snd.base = ref;
  2433. }
  2434. return new If(new Existence(fst), snd, {
  2435. soak: true
  2436. });
  2437. }
  2438. }
  2439. return null;
  2440. }, this)();
  2441. return this.unfoldedSoak = result || false;
  2442. };
  2443. return Value;
  2444. })();
  2445. exports.Comment = Comment = (function() {
  2446. __extends(Comment, Base);
  2447. function Comment(comment) {
  2448. this.comment = comment;
  2449. }
  2450. Comment.prototype.isStatement = YES;
  2451. Comment.prototype.makeReturn = THIS;
  2452. Comment.prototype.compileNode = function(o, level) {
  2453. var code;
  2454. code = '/*' + multident(this.comment, this.tab) + '*/';
  2455. if ((level || o.level) === LEVEL_TOP) {
  2456. code = o.indent + code;
  2457. }
  2458. return code;
  2459. };
  2460. return Comment;
  2461. })();
  2462. exports.Call = Call = (function() {
  2463. __extends(Call, Base);
  2464. function Call(variable, args, soak) {
  2465. this.args = args != null ? args : [];
  2466. this.soak = soak;
  2467. this.isNew = false;
  2468. this.isSuper = variable === 'super';
  2469. this.variable = this.isSuper ? null : variable;
  2470. }
  2471. Call.prototype.children = ['variable', 'args'];
  2472. Call.prototype.newInstance = function() {
  2473. var base;
  2474. base = this.variable.base || this.variable;
  2475. if (base instanceof Call && !base.isNew) {
  2476. base.newInstance();
  2477. } else {
  2478. this.isNew = true;
  2479. }
  2480. return this;
  2481. };
  2482. Call.prototype.superReference = function(o) {
  2483. var method, name;
  2484. method = o.scope.method;
  2485. if (!method) {
  2486. throw SyntaxError('cannot call super outside of a function.');
  2487. }
  2488. name = method.name;
  2489. if (name == null) {
  2490. throw SyntaxError('cannot call super on an anonymous function.');
  2491. }
  2492. if (method.klass) {
  2493. return (new Value(new Literal(method.klass), [new Access(new Literal("__super__")), new Access(new Literal(name))])).compile(o);
  2494. } else {
  2495. return "" + name + ".__super__.constructor";
  2496. }
  2497. };
  2498. Call.prototype.unfoldSoak = function(o) {
  2499. var call, ifn, left, list, rite, _i, _len, _ref2, _ref3;
  2500. if (this.soak) {
  2501. if (this.variable) {
  2502. if (ifn = unfoldSoak(o, this, 'variable')) {
  2503. return ifn;
  2504. }
  2505. _ref2 = new Value(this.variable).cacheReference(o), left = _ref2[0], rite = _ref2[1];
  2506. } else {
  2507. left = new Literal(this.superReference(o));
  2508. rite = new Value(left);
  2509. }
  2510. rite = new Call(rite, this.args);
  2511. rite.isNew = this.isNew;
  2512. left = new Literal("typeof " + (left.compile(o)) + " === \"function\"");
  2513. return new If(left, new Value(rite), {
  2514. soak: true
  2515. });
  2516. }
  2517. call = this;
  2518. list = [];
  2519. while (true) {
  2520. if (call.variable instanceof Call) {
  2521. list.push(call);
  2522. call = call.variable;
  2523. continue;
  2524. }
  2525. if (!(call.variable instanceof Value)) {
  2526. break;
  2527. }
  2528. list.push(call);
  2529. if (!((call = call.variable.base) instanceof Call)) {
  2530. break;
  2531. }
  2532. }
  2533. _ref3 = list.reverse();
  2534. for (_i = 0, _len = _ref3.length; _i < _len; _i++) {
  2535. call = _ref3[_i];
  2536. if (ifn) {
  2537. if (call.variable instanceof Call) {
  2538. call.variable = ifn;
  2539. } else {
  2540. call.variable.base = ifn;
  2541. }
  2542. }
  2543. ifn = unfoldSoak(o, call, 'variable');
  2544. }
  2545. return ifn;
  2546. };
  2547. Call.prototype.filterImplicitObjects = function(list) {
  2548. var node, nodes, obj, prop, properties, _i, _j, _len, _len2, _ref2;
  2549. nodes = [];
  2550. for (_i = 0, _len = list.length; _i < _len; _i++) {
  2551. node = list[_i];
  2552. if (!((typeof node.isObject === "function" ? node.isObject() : void 0) && node.base.generated)) {
  2553. nodes.push(node);
  2554. continue;
  2555. }
  2556. obj = null;
  2557. _ref2 = node.base.properties;
  2558. for (_j = 0, _len2 = _ref2.length; _j < _len2; _j++) {
  2559. prop = _ref2[_j];
  2560. if (prop instanceof Assign || prop instanceof Comment) {
  2561. if (!obj) {
  2562. nodes.push(obj = new Obj(properties = [], true));
  2563. }
  2564. properties.push(prop);
  2565. } else {
  2566. nodes.push(prop);
  2567. obj = null;
  2568. }
  2569. }
  2570. }
  2571. return nodes;
  2572. };
  2573. Call.prototype.compileNode = function(o) {
  2574. var arg, args, code, _ref2;
  2575. if ((_ref2 = this.variable) != null) {
  2576. _ref2.front = this.front;
  2577. }
  2578. if (code = Splat.compileSplattedArray(o, this.args, true)) {
  2579. return this.compileSplat(o, code);
  2580. }
  2581. args = this.filterImplicitObjects(this.args);
  2582. args = ((function() {
  2583. var _i, _len, _results;
  2584. _results = [];
  2585. for (_i = 0, _len = args.length; _i < _len; _i++) {
  2586. arg = args[_i];
  2587. _results.push(arg.compile(o, LEVEL_LIST));
  2588. }
  2589. return _results;
  2590. })()).join(', ');
  2591. if (this.isSuper) {
  2592. return this.superReference(o) + (".call(this" + (args && ', ' + args) + ")");
  2593. } else {
  2594. return (this.isNew ? 'new ' : '') + this.variable.compile(o, LEVEL_ACCESS) + ("(" + args + ")");
  2595. }
  2596. };
  2597. Call.prototype.compileSuper = function(args, o) {
  2598. return "" + (this.superReference(o)) + ".call(this" + (args.length ? ', ' : '') + args + ")";
  2599. };
  2600. Call.prototype.compileSplat = function(o, splatArgs) {
  2601. var base, fun, idt, name, ref;
  2602. if (this.isSuper) {
  2603. return "" + (this.superReference(o)) + ".apply(this, " + splatArgs + ")";
  2604. }
  2605. if (this.isNew) {
  2606. idt = this.tab + TAB;
  2607. return "(function(func, args, ctor) {\n" + idt + "ctor.prototype = func.prototype;\n" + idt + "var child = new ctor, result = func.apply(child, args);\n" + idt + "return typeof result === \"object\" ? result : child;\n" + this.tab + "})(" + (this.variable.compile(o, LEVEL_LIST)) + ", " + splatArgs + ", function() {})";
  2608. }
  2609. base = new Value(this.variable);
  2610. if ((name = base.properties.pop()) && base.isComplex()) {
  2611. ref = o.scope.freeVariable('ref');
  2612. fun = "(" + ref + " = " + (base.compile(o, LEVEL_LIST)) + ")" + (name.compile(o));
  2613. } else {
  2614. fun = base.compile(o, LEVEL_ACCESS);
  2615. if (SIMPLENUM.test(fun)) {
  2616. fun = "(" + fun + ")";
  2617. }
  2618. if (name) {
  2619. ref = fun;
  2620. fun += name.compile(o);
  2621. } else {
  2622. ref = 'null';
  2623. }
  2624. }
  2625. return "" + fun + ".apply(" + ref + ", " + splatArgs + ")";
  2626. };
  2627. return Call;
  2628. })();
  2629. exports.Extends = Extends = (function() {
  2630. __extends(Extends, Base);
  2631. function Extends(child, parent) {
  2632. this.child = child;
  2633. this.parent = parent;
  2634. }
  2635. Extends.prototype.children = ['child', 'parent'];
  2636. Extends.prototype.compile = function(o) {
  2637. utility('hasProp');
  2638. return new Call(new Value(new Literal(utility('extends'))), [this.child, this.parent]).compile(o);
  2639. };
  2640. return Extends;
  2641. })();
  2642. exports.Access = Access = (function() {
  2643. __extends(Access, Base);
  2644. function Access(name, tag) {
  2645. this.name = name;
  2646. this.name.asKey = true;
  2647. this.proto = tag === 'proto' ? '.prototype' : '';
  2648. this.soak = tag === 'soak';
  2649. }
  2650. Access.prototype.children = ['name'];
  2651. Access.prototype.compile = function(o) {
  2652. var name;
  2653. name = this.name.compile(o);
  2654. return this.proto + (IDENTIFIER.test(name) ? "." + name : "[" + name + "]");
  2655. };
  2656. Access.prototype.isComplex = NO;
  2657. return Access;
  2658. })();
  2659. exports.Index = Index = (function() {
  2660. __extends(Index, Base);
  2661. function Index(index) {
  2662. this.index = index;
  2663. }
  2664. Index.prototype.children = ['index'];
  2665. Index.prototype.compile = function(o) {
  2666. return (this.proto ? '.prototype' : '') + ("[" + (this.index.compile(o, LEVEL_PAREN)) + "]");
  2667. };
  2668. Index.prototype.isComplex = function() {
  2669. return this.index.isComplex();
  2670. };
  2671. return Index;
  2672. })();
  2673. exports.Range = Range = (function() {
  2674. __extends(Range, Base);
  2675. Range.prototype.children = ['from', 'to'];
  2676. function Range(from, to, tag) {
  2677. this.from = from;
  2678. this.to = to;
  2679. this.exclusive = tag === 'exclusive';
  2680. this.equals = this.exclusive ? '' : '=';
  2681. }
  2682. Range.prototype.compileVariables = function(o) {
  2683. var step, _ref2, _ref3, _ref4, _ref5;
  2684. o = merge(o, {
  2685. top: true
  2686. });
  2687. _ref2 = this.from.cache(o, LEVEL_LIST), this.fromC = _ref2[0], this.fromVar = _ref2[1];
  2688. _ref3 = this.to.cache(o, LEVEL_LIST), this.toC = _ref3[0], this.toVar = _ref3[1];
  2689. if (step = del(o, 'step')) {
  2690. _ref4 = step.cache(o, LEVEL_LIST), this.step = _ref4[0], this.stepVar = _ref4[1];
  2691. }
  2692. _ref5 = [this.fromVar.match(SIMPLENUM), this.toVar.match(SIMPLENUM)], this.fromNum = _ref5[0], this.toNum = _ref5[1];
  2693. if (this.stepVar) {
  2694. return this.stepNum = this.stepVar.match(SIMPLENUM);
  2695. }
  2696. };
  2697. Range.prototype.compileNode = function(o) {
  2698. var cond, condPart, from, gt, idx, known, lt, stepPart, to, varPart, _ref2, _ref3;
  2699. if (!this.fromVar) {
  2700. this.compileVariables(o);
  2701. }
  2702. if (!o.index) {
  2703. return this.compileArray(o);
  2704. }
  2705. known = this.fromNum && this.toNum;
  2706. idx = del(o, 'index');
  2707. varPart = "" + idx + " = " + this.fromC;
  2708. if (this.toC !== this.toVar) {
  2709. varPart += ", " + this.toC;
  2710. }
  2711. if (this.step !== this.stepVar) {
  2712. varPart += ", " + this.step;
  2713. }
  2714. _ref2 = ["" + idx + " <" + this.equals, "" + idx + " >" + this.equals], lt = _ref2[0], gt = _ref2[1];
  2715. condPart = this.stepNum ? condPart = +this.stepNum > 0 ? "" + lt + " " + this.toVar : "" + gt + " " + this.toVar : known ? ((_ref3 = [+this.fromNum, +this.toNum], from = _ref3[0], to = _ref3[1], _ref3), condPart = from <= to ? "" + lt + " " + to : "" + gt + " " + to) : (cond = "" + this.fromVar + " <= " + this.toVar, condPart = "" + cond + " ? " + lt + " " + this.toVar + " : " + gt + " " + this.toVar);
  2716. stepPart = this.stepVar ? "" + idx + " += " + this.stepVar : known ? from <= to ? "" + idx + "++" : "" + idx + "--" : "" + cond + " ? " + idx + "++ : " + idx + "--";
  2717. return "" + varPart + "; " + condPart + "; " + stepPart;
  2718. };
  2719. Range.prototype.compileArray = function(o) {
  2720. var args, body, cond, hasArgs, i, idt, post, pre, range, result, vars, _i, _ref2, _ref3, _results;
  2721. if (this.fromNum && this.toNum && Math.abs(this.fromNum - this.toNum) <= 20) {
  2722. range = (function() {
  2723. _results = [];
  2724. for (var _i = _ref2 = +this.fromNum, _ref3 = +this.toNum; _ref2 <= _ref3 ? _i <= _ref3 : _i >= _ref3; _ref2 <= _ref3 ? _i++ : _i--){ _results.push(_i); }
  2725. return _results;
  2726. }).apply(this);
  2727. if (this.exclusive) {
  2728. range.pop();
  2729. }
  2730. return "[" + (range.join(', ')) + "]";
  2731. }
  2732. idt = this.tab + TAB;
  2733. i = o.scope.freeVariable('i');
  2734. result = o.scope.freeVariable('results');
  2735. pre = "\n" + idt + result + " = [];";
  2736. if (this.fromNum && this.toNum) {
  2737. o.index = i;
  2738. body = this.compileNode(o);
  2739. } else {
  2740. vars = ("" + i + " = " + this.fromC) + (this.toC !== this.toVar ? ", " + this.toC : '');
  2741. cond = "" + this.fromVar + " <= " + this.toVar;
  2742. body = "var " + vars + "; " + cond + " ? " + i + " <" + this.equals + " " + this.toVar + " : " + i + " >" + this.equals + " " + this.toVar + "; " + cond + " ? " + i + "++ : " + i + "--";
  2743. }
  2744. post = "{ " + result + ".push(" + i + "); }\n" + idt + "return " + result + ";\n" + o.indent;
  2745. hasArgs = function(node) {
  2746. return node != null ? node.contains(function(n) {
  2747. return n instanceof Literal && n.value === 'arguments' && !n.asKey;
  2748. }) : void 0;
  2749. };
  2750. if (hasArgs(this.from) || hasArgs(this.to)) {
  2751. args = ', arguments';
  2752. }
  2753. return "(function() {" + pre + "\n" + idt + "for (" + body + ")" + post + "}).apply(this" + (args != null ? args : '') + ")";
  2754. };
  2755. return Range;
  2756. })();
  2757. exports.Slice = Slice = (function() {
  2758. __extends(Slice, Base);
  2759. Slice.prototype.children = ['range'];
  2760. function Slice(range) {
  2761. this.range = range;
  2762. Slice.__super__.constructor.call(this);
  2763. }
  2764. Slice.prototype.compileNode = function(o) {
  2765. var compiled, from, fromStr, to, toStr, _ref2;
  2766. _ref2 = this.range, to = _ref2.to, from = _ref2.from;
  2767. fromStr = from && from.compile(o, LEVEL_PAREN) || '0';
  2768. compiled = to && to.compile(o, LEVEL_PAREN);
  2769. if (to && !(!this.range.exclusive && +compiled === -1)) {
  2770. toStr = ', ' + (this.range.exclusive ? compiled : SIMPLENUM.test(compiled) ? (+compiled + 1).toString() : "(" + compiled + " + 1) || 9e9");
  2771. }
  2772. return ".slice(" + fromStr + (toStr || '') + ")";
  2773. };
  2774. return Slice;
  2775. })();
  2776. exports.Obj = Obj = (function() {
  2777. __extends(Obj, Base);
  2778. function Obj(props, generated) {
  2779. this.generated = generated != null ? generated : false;
  2780. this.objects = this.properties = props || [];
  2781. }
  2782. Obj.prototype.children = ['properties'];
  2783. Obj.prototype.compileNode = function(o) {
  2784. var i, idt, indent, join, lastNoncom, node, obj, prop, props, _i, _len;
  2785. props = this.properties;
  2786. if (!props.length) {
  2787. if (this.front) {
  2788. return '({})';
  2789. } else {
  2790. return '{}';
  2791. }
  2792. }
  2793. if (this.generated) {
  2794. for (_i = 0, _len = props.length; _i < _len; _i++) {
  2795. node = props[_i];
  2796. if (node instanceof Value) {
  2797. throw new Error('cannot have an implicit value in an implicit object');
  2798. }
  2799. }
  2800. }
  2801. idt = o.indent += TAB;
  2802. lastNoncom = this.lastNonComment(this.properties);
  2803. props = (function() {
  2804. var _len2, _results;
  2805. _results = [];
  2806. for (i = 0, _len2 = props.length; i < _len2; i++) {
  2807. prop = props[i];
  2808. join = i === props.length - 1 ? '' : prop === lastNoncom || prop instanceof Comment ? '\n' : ',\n';
  2809. indent = prop instanceof Comment ? '' : idt;
  2810. if (prop instanceof Value && prop["this"]) {
  2811. prop = new Assign(prop.properties[0].name, prop, 'object');
  2812. }
  2813. if (!(prop instanceof Comment)) {
  2814. if (!(prop instanceof Assign)) {
  2815. prop = new Assign(prop, prop, 'object');
  2816. }
  2817. (prop.variable.base || prop.variable).asKey = true;
  2818. }
  2819. _results.push(indent + prop.compile(o, LEVEL_TOP) + join);
  2820. }
  2821. return _results;
  2822. })();
  2823. props = props.join('');
  2824. obj = "{" + (props && '\n' + props + '\n' + this.tab) + "}";
  2825. if (this.front) {
  2826. return "(" + obj + ")";
  2827. } else {
  2828. return obj;
  2829. }
  2830. };
  2831. Obj.prototype.assigns = function(name) {
  2832. var prop, _i, _len, _ref2;
  2833. _ref2 = this.properties;
  2834. for (_i = 0, _len = _ref2.length; _i < _len; _i++) {
  2835. prop = _ref2[_i];
  2836. if (prop.assigns(name)) {
  2837. return true;
  2838. }
  2839. }
  2840. return false;
  2841. };
  2842. return Obj;
  2843. })();
  2844. exports.Arr = Arr = (function() {
  2845. __extends(Arr, Base);
  2846. function Arr(objs) {
  2847. this.objects = objs || [];
  2848. }
  2849. Arr.prototype.children = ['objects'];
  2850. Arr.prototype.filterImplicitObjects = Call.prototype.filterImplicitObjects;
  2851. Arr.prototype.compileNode = function(o) {
  2852. var code, obj, objs;
  2853. if (!this.objects.length) {
  2854. return '[]';
  2855. }
  2856. o.indent += TAB;
  2857. objs = this.filterImplicitObjects(this.objects);
  2858. if (code = Splat.compileSplattedArray(o, objs)) {
  2859. return code;
  2860. }
  2861. code = ((function() {
  2862. var _i, _len, _results;
  2863. _results = [];
  2864. for (_i = 0, _len = objs.length; _i < _len; _i++) {
  2865. obj = objs[_i];
  2866. _results.push(obj.compile(o, LEVEL_LIST));
  2867. }
  2868. return _results;
  2869. })()).join(', ');
  2870. if (code.indexOf('\n') >= 0) {
  2871. return "[\n" + o.indent + code + "\n" + this.tab + "]";
  2872. } else {
  2873. return "[" + code + "]";
  2874. }
  2875. };
  2876. Arr.prototype.assigns = function(name) {
  2877. var obj, _i, _len, _ref2;
  2878. _ref2 = this.objects;
  2879. for (_i = 0, _len = _ref2.length; _i < _len; _i++) {
  2880. obj = _ref2[_i];
  2881. if (obj.assigns(name)) {
  2882. return true;
  2883. }
  2884. }
  2885. return false;
  2886. };
  2887. return Arr;
  2888. })();
  2889. exports.Class = Class = (function() {
  2890. __extends(Class, Base);
  2891. function Class(variable, parent, body) {
  2892. this.variable = variable;
  2893. this.parent = parent;
  2894. this.body = body != null ? body : new Block;
  2895. this.boundFuncs = [];
  2896. this.body.classBody = true;
  2897. }
  2898. Class.prototype.children = ['variable', 'parent', 'body'];
  2899. Class.prototype.determineName = function() {
  2900. var decl, tail;
  2901. if (!this.variable) {
  2902. return null;
  2903. }
  2904. decl = (tail = last(this.variable.properties)) ? tail instanceof Access && tail.name.value : this.variable.base.value;
  2905. return decl && (decl = IDENTIFIER.test(decl) && decl);
  2906. };
  2907. Class.prototype.setContext = function(name) {
  2908. return this.body.traverseChildren(false, function(node) {
  2909. if (node.classBody) {
  2910. return false;
  2911. }
  2912. if (node instanceof Literal && node.value === 'this') {
  2913. return node.value = name;
  2914. } else if (node instanceof Code) {
  2915. node.klass = name;
  2916. if (node.bound) {
  2917. return node.context = name;
  2918. }
  2919. }
  2920. });
  2921. };
  2922. Class.prototype.addBoundFunctions = function(o) {
  2923. var bvar, lhs, _i, _len, _ref2, _results;
  2924. if (this.boundFuncs.length) {
  2925. _ref2 = this.boundFuncs;
  2926. _results = [];
  2927. for (_i = 0, _len = _ref2.length; _i < _len; _i++) {
  2928. bvar = _ref2[_i];
  2929. lhs = (new Value(new Literal("this"), [new Access(bvar)])).compile(o);
  2930. _results.push(this.ctor.body.unshift(new Literal("" + lhs + " = " + (utility('bind')) + "(" + lhs + ", this)")));
  2931. }
  2932. return _results;
  2933. }
  2934. };
  2935. Class.prototype.addProperties = function(node, name, o) {
  2936. var assign, base, exprs, func, props;
  2937. props = node.base.properties.slice(0);
  2938. exprs = (function() {
  2939. var _results;
  2940. _results = [];
  2941. while (assign = props.shift()) {
  2942. if (assign instanceof Assign) {
  2943. base = assign.variable.base;
  2944. delete assign.context;
  2945. func = assign.value;
  2946. if (base.value === 'constructor') {
  2947. if (this.ctor) {
  2948. throw new Error('cannot define more than one constructor in a class');
  2949. }
  2950. if (func.bound) {
  2951. throw new Error('cannot define a constructor as a bound function');
  2952. }
  2953. if (func instanceof Code) {
  2954. assign = this.ctor = func;
  2955. } else {
  2956. this.externalCtor = o.scope.freeVariable('class');
  2957. assign = new Assign(new Literal(this.externalCtor), func);
  2958. }
  2959. } else {
  2960. if (!assign.variable["this"]) {
  2961. assign.variable = new Value(new Literal(name), [new Access(base, 'proto')]);
  2962. }
  2963. if (func instanceof Code && func.bound) {
  2964. this.boundFuncs.push(base);
  2965. func.bound = false;
  2966. }
  2967. }
  2968. }
  2969. _results.push(assign);
  2970. }
  2971. return _results;
  2972. }).call(this);
  2973. return compact(exprs);
  2974. };
  2975. Class.prototype.walkBody = function(name, o) {
  2976. return this.traverseChildren(false, __bind(function(child) {
  2977. var exps, i, node, _len, _ref2;
  2978. if (child instanceof Class) {
  2979. return false;
  2980. }
  2981. if (child instanceof Block) {
  2982. _ref2 = exps = child.expressions;
  2983. for (i = 0, _len = _ref2.length; i < _len; i++) {
  2984. node = _ref2[i];
  2985. if (node instanceof Value && node.isObject(true)) {
  2986. exps[i] = this.addProperties(node, name, o);
  2987. }
  2988. }
  2989. return child.expressions = exps = flatten(exps);
  2990. }
  2991. }, this));
  2992. };
  2993. Class.prototype.ensureConstructor = function(name) {
  2994. if (!this.ctor) {
  2995. this.ctor = new Code;
  2996. if (this.parent) {
  2997. this.ctor.body.push(new Literal("" + name + ".__super__.constructor.apply(this, arguments)"));
  2998. }
  2999. if (this.externalCtor) {
  3000. this.ctor.body.push(new Literal("" + this.externalCtor + ".apply(this, arguments)"));
  3001. }
  3002. this.body.expressions.unshift(this.ctor);
  3003. }
  3004. this.ctor.ctor = this.ctor.name = name;
  3005. this.ctor.klass = null;
  3006. return this.ctor.noReturn = true;
  3007. };
  3008. Class.prototype.compileNode = function(o) {
  3009. var decl, klass, lname, name;
  3010. decl = this.determineName();
  3011. name = decl || this.name || '_Class';
  3012. lname = new Literal(name);
  3013. this.setContext(name);
  3014. this.walkBody(name, o);
  3015. this.ensureConstructor(name);
  3016. if (this.parent) {
  3017. this.body.expressions.unshift(new Extends(lname, this.parent));
  3018. }
  3019. if (!(this.ctor instanceof Code)) {
  3020. this.body.expressions.unshift(this.ctor);
  3021. }
  3022. this.body.expressions.push(lname);
  3023. this.addBoundFunctions(o);
  3024. klass = new Parens(Closure.wrap(this.body), true);
  3025. if (this.variable) {
  3026. klass = new Assign(this.variable, klass);
  3027. }
  3028. return klass.compile(o);
  3029. };
  3030. return Class;
  3031. })();
  3032. exports.Assign = Assign = (function() {
  3033. __extends(Assign, Base);
  3034. function Assign(variable, value, context, options) {
  3035. this.variable = variable;
  3036. this.value = value;
  3037. this.context = context;
  3038. this.param = options && options.param;
  3039. }
  3040. Assign.prototype.children = ['variable', 'value'];
  3041. Assign.prototype.isStatement = function(o) {
  3042. return (o != null ? o.level : void 0) === LEVEL_TOP && (this.context != null) && __indexOf.call(this.context, "?") >= 0;
  3043. };
  3044. Assign.prototype.assigns = function(name) {
  3045. return this[this.context === 'object' ? 'value' : 'variable'].assigns(name);
  3046. };
  3047. Assign.prototype.unfoldSoak = function(o) {
  3048. return unfoldSoak(o, this, 'variable');
  3049. };
  3050. Assign.prototype.compileNode = function(o) {
  3051. var isValue, match, name, val, _ref2, _ref3, _ref4, _ref5;
  3052. if (isValue = this.variable instanceof Value) {
  3053. if (this.variable.isArray() || this.variable.isObject()) {
  3054. return this.compilePatternMatch(o);
  3055. }
  3056. if (this.variable.isSplice()) {
  3057. return this.compileSplice(o);
  3058. }
  3059. if ((_ref2 = this.context) === '||=' || _ref2 === '&&=' || _ref2 === '?=') {
  3060. return this.compileConditional(o);
  3061. }
  3062. }
  3063. name = this.variable.compile(o, LEVEL_LIST);
  3064. if (!(this.context || this.variable.isAssignable())) {
  3065. throw SyntaxError("\"" + (this.variable.compile(o)) + "\" cannot be assigned.");
  3066. }
  3067. if (!(this.context || isValue && (this.variable.namespaced || this.variable.hasProperties()))) {
  3068. if (this.param) {
  3069. o.scope.add(name, 'var');
  3070. } else {
  3071. o.scope.find(name);
  3072. }
  3073. }
  3074. if (this.value instanceof Code && (match = METHOD_DEF.exec(name))) {
  3075. if (match[1]) {
  3076. this.value.klass = match[1];
  3077. }
  3078. this.value.name = (_ref3 = (_ref4 = (_ref5 = match[2]) != null ? _ref5 : match[3]) != null ? _ref4 : match[4]) != null ? _ref3 : match[5];
  3079. }
  3080. val = this.value.compile(o, LEVEL_LIST);
  3081. if (this.context === 'object') {
  3082. return "" + name + ": " + val;
  3083. }
  3084. val = name + (" " + (this.context || '=') + " ") + val;
  3085. if (o.level <= LEVEL_LIST) {
  3086. return val;
  3087. } else {
  3088. return "(" + val + ")";
  3089. }
  3090. };
  3091. Assign.prototype.compilePatternMatch = function(o) {
  3092. var acc, assigns, code, i, idx, isObject, ivar, obj, objects, olen, ref, rest, splat, top, val, value, vvar, _len, _ref2, _ref3, _ref4, _ref5;
  3093. top = o.level === LEVEL_TOP;
  3094. value = this.value;
  3095. objects = this.variable.base.objects;
  3096. if (!(olen = objects.length)) {
  3097. code = value.compile(o);
  3098. if (o.level >= LEVEL_OP) {
  3099. return "(" + code + ")";
  3100. } else {
  3101. return code;
  3102. }
  3103. }
  3104. isObject = this.variable.isObject();
  3105. if (top && olen === 1 && !((obj = objects[0]) instanceof Splat)) {
  3106. if (obj instanceof Assign) {
  3107. _ref2 = obj, idx = _ref2.variable.base, obj = _ref2.value;
  3108. } else {
  3109. if (obj.base instanceof Parens) {
  3110. _ref3 = new Value(obj.unwrapAll()).cacheReference(o), obj = _ref3[0], idx = _ref3[1];
  3111. } else {
  3112. idx = isObject ? obj["this"] ? obj.properties[0].name : obj : new Literal(0);
  3113. }
  3114. }
  3115. acc = IDENTIFIER.test(idx.unwrap().value || 0);
  3116. value = new Value(value);
  3117. value.properties.push(new (acc ? Access : Index)(idx));
  3118. return new Assign(obj, value, null, {
  3119. param: this.param
  3120. }).compile(o, LEVEL_TOP);
  3121. }
  3122. vvar = value.compile(o, LEVEL_LIST);
  3123. assigns = [];
  3124. splat = false;
  3125. if (!IDENTIFIER.test(vvar) || this.variable.assigns(vvar)) {
  3126. assigns.push("" + (ref = o.scope.freeVariable('ref')) + " = " + vvar);
  3127. vvar = ref;
  3128. }
  3129. for (i = 0, _len = objects.length; i < _len; i++) {
  3130. obj = objects[i];
  3131. idx = i;
  3132. if (isObject) {
  3133. if (obj instanceof Assign) {
  3134. _ref4 = obj, idx = _ref4.variable.base, obj = _ref4.value;
  3135. } else {
  3136. if (obj.base instanceof Parens) {
  3137. _ref5 = new Value(obj.unwrapAll()).cacheReference(o), obj = _ref5[0], idx = _ref5[1];
  3138. } else {
  3139. idx = obj["this"] ? obj.properties[0].name : obj;
  3140. }
  3141. }
  3142. }
  3143. if (!splat && obj instanceof Splat) {
  3144. val = "" + olen + " <= " + vvar + ".length ? " + (utility('slice')) + ".call(" + vvar + ", " + i;
  3145. if (rest = olen - i - 1) {
  3146. ivar = o.scope.freeVariable('i');
  3147. val += ", " + ivar + " = " + vvar + ".length - " + rest + ") : (" + ivar + " = " + i + ", [])";
  3148. } else {
  3149. val += ") : []";
  3150. }
  3151. val = new Literal(val);
  3152. splat = "" + ivar + "++";
  3153. } else {
  3154. if (obj instanceof Splat) {
  3155. obj = obj.name.compile(o);
  3156. throw SyntaxError("multiple splats are disallowed in an assignment: " + obj + " ...");
  3157. }
  3158. if (typeof idx === 'number') {
  3159. idx = new Literal(splat || idx);
  3160. acc = false;
  3161. } else {
  3162. acc = isObject && IDENTIFIER.test(idx.unwrap().value || 0);
  3163. }
  3164. val = new Value(new Literal(vvar), [new (acc ? Access : Index)(idx)]);
  3165. }
  3166. assigns.push(new Assign(obj, val, null, {
  3167. param: this.param
  3168. }).compile(o, LEVEL_TOP));
  3169. }
  3170. if (!top) {
  3171. assigns.push(vvar);
  3172. }
  3173. code = assigns.join(', ');
  3174. if (o.level < LEVEL_LIST) {
  3175. return code;
  3176. } else {
  3177. return "(" + code + ")";
  3178. }
  3179. };
  3180. Assign.prototype.compileConditional = function(o) {
  3181. var left, rite, _ref2;
  3182. _ref2 = this.variable.cacheReference(o), left = _ref2[0], rite = _ref2[1];
  3183. if (__indexOf.call(this.context, "?") >= 0) {
  3184. o.isExistentialEquals = true;
  3185. }
  3186. return new Op(this.context.slice(0, -1), left, new Assign(rite, this.value, '=')).compile(o);
  3187. };
  3188. Assign.prototype.compileSplice = function(o) {
  3189. var code, exclusive, from, fromDecl, fromRef, name, to, valDef, valRef, _ref2, _ref3, _ref4;
  3190. _ref2 = this.variable.properties.pop().range, from = _ref2.from, to = _ref2.to, exclusive = _ref2.exclusive;
  3191. name = this.variable.compile(o);
  3192. _ref3 = (from != null ? from.cache(o, LEVEL_OP) : void 0) || ['0', '0'], fromDecl = _ref3[0], fromRef = _ref3[1];
  3193. if (to) {
  3194. if ((from != null ? from.isSimpleNumber() : void 0) && to.isSimpleNumber()) {
  3195. to = +to.compile(o) - +fromRef;
  3196. if (!exclusive) {
  3197. to += 1;
  3198. }
  3199. } else {
  3200. to = to.compile(o) + ' - ' + fromRef;
  3201. if (!exclusive) {
  3202. to += ' + 1';
  3203. }
  3204. }
  3205. } else {
  3206. to = "9e9";
  3207. }
  3208. _ref4 = this.value.cache(o, LEVEL_LIST), valDef = _ref4[0], valRef = _ref4[1];
  3209. code = "[].splice.apply(" + name + ", [" + fromDecl + ", " + to + "].concat(" + valDef + ")), " + valRef;
  3210. if (o.level > LEVEL_TOP) {
  3211. return "(" + code + ")";
  3212. } else {
  3213. return code;
  3214. }
  3215. };
  3216. return Assign;
  3217. })();
  3218. exports.Code = Code = (function() {
  3219. __extends(Code, Base);
  3220. function Code(params, body, tag) {
  3221. this.params = params || [];
  3222. this.body = body || new Block;
  3223. this.bound = tag === 'boundfunc';
  3224. if (this.bound) {
  3225. this.context = 'this';
  3226. }
  3227. }
  3228. Code.prototype.children = ['params', 'body'];
  3229. Code.prototype.isStatement = function() {
  3230. return !!this.ctor;
  3231. };
  3232. Code.prototype.jumps = NO;
  3233. Code.prototype.compileNode = function(o) {
  3234. var code, exprs, i, idt, lit, p, param, ref, splats, v, val, vars, wasEmpty, _i, _j, _k, _len, _len2, _len3, _len4, _ref2, _ref3, _ref4, _ref5;
  3235. o.scope = new Scope(o.scope, this.body, this);
  3236. o.scope.shared = del(o, 'sharedScope');
  3237. o.indent += TAB;
  3238. delete o.bare;
  3239. vars = [];
  3240. exprs = [];
  3241. _ref2 = this.params;
  3242. for (_i = 0, _len = _ref2.length; _i < _len; _i++) {
  3243. param = _ref2[_i];
  3244. if (param.splat) {
  3245. _ref3 = this.params;
  3246. for (_j = 0, _len2 = _ref3.length; _j < _len2; _j++) {
  3247. p = _ref3[_j];
  3248. if (p.name.value) {
  3249. o.scope.add(p.name.value, 'var', true);
  3250. }
  3251. }
  3252. splats = new Assign(new Value(new Arr((function() {
  3253. var _k, _len3, _ref4, _results;
  3254. _ref4 = this.params;
  3255. _results = [];
  3256. for (_k = 0, _len3 = _ref4.length; _k < _len3; _k++) {
  3257. p = _ref4[_k];
  3258. _results.push(p.asReference(o));
  3259. }
  3260. return _results;
  3261. }).call(this))), new Value(new Literal('arguments')));
  3262. break;
  3263. }
  3264. }
  3265. _ref4 = this.params;
  3266. for (_k = 0, _len3 = _ref4.length; _k < _len3; _k++) {
  3267. param = _ref4[_k];
  3268. if (param.isComplex()) {
  3269. val = ref = param.asReference(o);
  3270. if (param.value) {
  3271. val = new Op('?', ref, param.value);
  3272. }
  3273. exprs.push(new Assign(new Value(param.name), val, '=', {
  3274. param: true
  3275. }));
  3276. } else {
  3277. ref = param;
  3278. if (param.value) {
  3279. lit = new Literal(ref.name.value + ' == null');
  3280. val = new Assign(new Value(param.name), param.value, '=');
  3281. exprs.push(new If(lit, val));
  3282. }
  3283. }
  3284. if (!splats) {
  3285. vars.push(ref);
  3286. }
  3287. }
  3288. wasEmpty = this.body.isEmpty();
  3289. if (splats) {
  3290. exprs.unshift(splats);
  3291. }
  3292. if (exprs.length) {
  3293. (_ref5 = this.body.expressions).unshift.apply(_ref5, exprs);
  3294. }
  3295. if (!splats) {
  3296. for (i = 0, _len4 = vars.length; i < _len4; i++) {
  3297. v = vars[i];
  3298. o.scope.parameter(vars[i] = v.compile(o));
  3299. }
  3300. }
  3301. if (!(wasEmpty || this.noReturn)) {
  3302. this.body.makeReturn();
  3303. }
  3304. idt = o.indent;
  3305. code = 'function';
  3306. if (this.ctor) {
  3307. code += ' ' + this.name;
  3308. }
  3309. code += '(' + vars.join(', ') + ') {';
  3310. if (!this.body.isEmpty()) {
  3311. code += "\n" + (this.body.compileWithDeclarations(o)) + "\n" + this.tab;
  3312. }
  3313. code += '}';
  3314. if (this.ctor) {
  3315. return this.tab + code;
  3316. }
  3317. if (this.bound) {
  3318. return utility('bind') + ("(" + code + ", " + this.context + ")");
  3319. }
  3320. if (this.front || (o.level >= LEVEL_ACCESS)) {
  3321. return "(" + code + ")";
  3322. } else {
  3323. return code;
  3324. }
  3325. };
  3326. Code.prototype.traverseChildren = function(crossScope, func) {
  3327. if (crossScope) {
  3328. return Code.__super__.traverseChildren.call(this, crossScope, func);
  3329. }
  3330. };
  3331. return Code;
  3332. })();
  3333. exports.Param = Param = (function() {
  3334. __extends(Param, Base);
  3335. function Param(name, value, splat) {
  3336. this.name = name;
  3337. this.value = value;
  3338. this.splat = splat;
  3339. }
  3340. Param.prototype.children = ['name', 'value'];
  3341. Param.prototype.compile = function(o) {
  3342. return this.name.compile(o, LEVEL_LIST);
  3343. };
  3344. Param.prototype.asReference = function(o) {
  3345. var node;
  3346. if (this.reference) {
  3347. return this.reference;
  3348. }
  3349. node = this.name;
  3350. if (node["this"]) {
  3351. node = node.properties[0].name;
  3352. if (node.value.reserved) {
  3353. node = new Literal('_' + node.value);
  3354. }
  3355. } else if (node.isComplex()) {
  3356. node = new Literal(o.scope.freeVariable('arg'));
  3357. }
  3358. node = new Value(node);
  3359. if (this.splat) {
  3360. node = new Splat(node);
  3361. }
  3362. return this.reference = node;
  3363. };
  3364. Param.prototype.isComplex = function() {
  3365. return this.name.isComplex();
  3366. };
  3367. return Param;
  3368. })();
  3369. exports.Splat = Splat = (function() {
  3370. __extends(Splat, Base);
  3371. Splat.prototype.children = ['name'];
  3372. Splat.prototype.isAssignable = YES;
  3373. function Splat(name) {
  3374. this.name = name.compile ? name : new Literal(name);
  3375. }
  3376. Splat.prototype.assigns = function(name) {
  3377. return this.name.assigns(name);
  3378. };
  3379. Splat.prototype.compile = function(o) {
  3380. if (this.index != null) {
  3381. return this.compileParam(o);
  3382. } else {
  3383. return this.name.compile(o);
  3384. }
  3385. };
  3386. Splat.compileSplattedArray = function(o, list, apply) {
  3387. var args, base, code, i, index, node, _len;
  3388. index = -1;
  3389. while ((node = list[++index]) && !(node instanceof Splat)) {
  3390. continue;
  3391. }
  3392. if (index >= list.length) {
  3393. return '';
  3394. }
  3395. if (list.length === 1) {
  3396. code = list[0].compile(o, LEVEL_LIST);
  3397. if (apply) {
  3398. return code;
  3399. }
  3400. return "" + (utility('slice')) + ".call(" + code + ")";
  3401. }
  3402. args = list.slice(index);
  3403. for (i = 0, _len = args.length; i < _len; i++) {
  3404. node = args[i];
  3405. code = node.compile(o, LEVEL_LIST);
  3406. args[i] = node instanceof Splat ? "" + (utility('slice')) + ".call(" + code + ")" : "[" + code + "]";
  3407. }
  3408. if (index === 0) {
  3409. return args[0] + (".concat(" + (args.slice(1).join(', ')) + ")");
  3410. }
  3411. base = (function() {
  3412. var _i, _len2, _ref2, _results;
  3413. _ref2 = list.slice(0, index);
  3414. _results = [];
  3415. for (_i = 0, _len2 = _ref2.length; _i < _len2; _i++) {
  3416. node = _ref2[_i];
  3417. _results.push(node.compile(o, LEVEL_LIST));
  3418. }
  3419. return _results;
  3420. })();
  3421. return "[" + (base.join(', ')) + "].concat(" + (args.join(', ')) + ")";
  3422. };
  3423. return Splat;
  3424. })();
  3425. exports.While = While = (function() {
  3426. __extends(While, Base);
  3427. function While(condition, options) {
  3428. this.condition = (options != null ? options.invert : void 0) ? condition.invert() : condition;
  3429. this.guard = options != null ? options.guard : void 0;
  3430. }
  3431. While.prototype.children = ['condition', 'guard', 'body'];
  3432. While.prototype.isStatement = YES;
  3433. While.prototype.makeReturn = function() {
  3434. this.returns = true;
  3435. return this;
  3436. };
  3437. While.prototype.addBody = function(body) {
  3438. this.body = body;
  3439. return this;
  3440. };
  3441. While.prototype.jumps = function() {
  3442. var expressions, node, _i, _len;
  3443. expressions = this.body.expressions;
  3444. if (!expressions.length) {
  3445. return false;
  3446. }
  3447. for (_i = 0, _len = expressions.length; _i < _len; _i++) {
  3448. node = expressions[_i];
  3449. if (node.jumps({
  3450. loop: true
  3451. })) {
  3452. return node;
  3453. }
  3454. }
  3455. return false;
  3456. };
  3457. While.prototype.compileNode = function(o) {
  3458. var body, code, rvar, set;
  3459. o.indent += TAB;
  3460. set = '';
  3461. body = this.body;
  3462. if (body.isEmpty()) {
  3463. body = '';
  3464. } else {
  3465. if (o.level > LEVEL_TOP || this.returns) {
  3466. rvar = o.scope.freeVariable('results');
  3467. set = "" + this.tab + rvar + " = [];\n";
  3468. if (body) {
  3469. body = Push.wrap(rvar, body);
  3470. }
  3471. }
  3472. if (this.guard) {
  3473. body = Block.wrap([new If(this.guard, body)]);
  3474. }
  3475. body = "\n" + (body.compile(o, LEVEL_TOP)) + "\n" + this.tab;
  3476. }
  3477. code = set + this.tab + ("while (" + (this.condition.compile(o, LEVEL_PAREN)) + ") {" + body + "}");
  3478. if (this.returns) {
  3479. code += "\n" + this.tab + "return " + rvar + ";";
  3480. }
  3481. return code;
  3482. };
  3483. return While;
  3484. })();
  3485. exports.Op = Op = (function() {
  3486. var CONVERSIONS, INVERSIONS;
  3487. __extends(Op, Base);
  3488. function Op(op, first, second, flip) {
  3489. var call;
  3490. if (op === 'in') {
  3491. return new In(first, second);
  3492. }
  3493. if (op === 'do') {
  3494. call = new Call(first, first.params || []);
  3495. call["do"] = true;
  3496. return call;
  3497. }
  3498. if (op === 'new') {
  3499. if (first instanceof Call && !first["do"] && !first.isNew) {
  3500. return first.newInstance();
  3501. }
  3502. if (first instanceof Code && first.bound || first["do"]) {
  3503. first = new Parens(first);
  3504. }
  3505. }
  3506. this.operator = CONVERSIONS[op] || op;
  3507. this.first = first;
  3508. this.second = second;
  3509. this.flip = !!flip;
  3510. return this;
  3511. }
  3512. CONVERSIONS = {
  3513. '==': '===',
  3514. '!=': '!==',
  3515. 'of': 'in'
  3516. };
  3517. INVERSIONS = {
  3518. '!==': '===',
  3519. '===': '!=='
  3520. };
  3521. Op.prototype.children = ['first', 'second'];
  3522. Op.prototype.isSimpleNumber = NO;
  3523. Op.prototype.isUnary = function() {
  3524. return !this.second;
  3525. };
  3526. Op.prototype.isComplex = function() {
  3527. var _ref2;
  3528. return !(this.isUnary() && ((_ref2 = this.operator) === '+' || _ref2 === '-')) || this.first.isComplex();
  3529. };
  3530. Op.prototype.isChainable = function() {
  3531. var _ref2;
  3532. return (_ref2 = this.operator) === '<' || _ref2 === '>' || _ref2 === '>=' || _ref2 === '<=' || _ref2 === '===' || _ref2 === '!==';
  3533. };
  3534. Op.prototype.invert = function() {
  3535. var allInvertable, curr, fst, op, _ref2;
  3536. if (this.isChainable() && this.first.isChainable()) {
  3537. allInvertable = true;
  3538. curr = this;
  3539. while (curr && curr.operator) {
  3540. allInvertable && (allInvertable = curr.operator in INVERSIONS);
  3541. curr = curr.first;
  3542. }
  3543. if (!allInvertable) {
  3544. return new Parens(this).invert();
  3545. }
  3546. curr = this;
  3547. while (curr && curr.operator) {
  3548. curr.invert = !curr.invert;
  3549. curr.operator = INVERSIONS[curr.operator];
  3550. curr = curr.first;
  3551. }
  3552. return this;
  3553. } else if (op = INVERSIONS[this.operator]) {
  3554. this.operator = op;
  3555. if (this.first.unwrap() instanceof Op) {
  3556. this.first.invert();
  3557. }
  3558. return this;
  3559. } else if (this.second) {
  3560. return new Parens(this).invert();
  3561. } else if (this.operator === '!' && (fst = this.first.unwrap()) instanceof Op && ((_ref2 = fst.operator) === '!' || _ref2 === 'in' || _ref2 === 'instanceof')) {
  3562. return fst;
  3563. } else {
  3564. return new Op('!', this);
  3565. }
  3566. };
  3567. Op.prototype.unfoldSoak = function(o) {
  3568. var _ref2;
  3569. return ((_ref2 = this.operator) === '++' || _ref2 === '--' || _ref2 === 'delete') && unfoldSoak(o, this, 'first');
  3570. };
  3571. Op.prototype.compileNode = function(o) {
  3572. var code;
  3573. if (this.isUnary()) {
  3574. return this.compileUnary(o);
  3575. }
  3576. if (this.isChainable() && this.first.isChainable()) {
  3577. return this.compileChain(o);
  3578. }
  3579. if (this.operator === '?') {
  3580. return this.compileExistence(o);
  3581. }
  3582. this.first.front = this.front;
  3583. code = this.first.compile(o, LEVEL_OP) + ' ' + this.operator + ' ' + this.second.compile(o, LEVEL_OP);
  3584. if (o.level <= LEVEL_OP) {
  3585. return code;
  3586. } else {
  3587. return "(" + code + ")";
  3588. }
  3589. };
  3590. Op.prototype.compileChain = function(o) {
  3591. var code, fst, shared, _ref2;
  3592. _ref2 = this.first.second.cache(o), this.first.second = _ref2[0], shared = _ref2[1];
  3593. fst = this.first.compile(o, LEVEL_OP);
  3594. code = "" + fst + " " + (this.invert ? '&&' : '||') + " " + (shared.compile(o)) + " " + this.operator + " " + (this.second.compile(o, LEVEL_OP));
  3595. return "(" + code + ")";
  3596. };
  3597. Op.prototype.compileExistence = function(o) {
  3598. var fst, ref;
  3599. if (this.first.isComplex()) {
  3600. ref = new Literal(o.scope.freeVariable('ref'));
  3601. fst = new Parens(new Assign(ref, this.first));
  3602. } else {
  3603. fst = this.first;
  3604. ref = fst;
  3605. }
  3606. return new If(new Existence(fst), ref, {
  3607. type: 'if'
  3608. }).addElse(this.second).compile(o);
  3609. };
  3610. Op.prototype.compileUnary = function(o) {
  3611. var op, parts;
  3612. parts = [op = this.operator];
  3613. if ((op === 'new' || op === 'typeof' || op === 'delete') || (op === '+' || op === '-') && this.first instanceof Op && this.first.operator === op) {
  3614. parts.push(' ');
  3615. }
  3616. if (op === 'new' && this.first.isStatement(o)) {
  3617. this.first = new Parens(this.first);
  3618. }
  3619. parts.push(this.first.compile(o, LEVEL_OP));
  3620. if (this.flip) {
  3621. parts.reverse();
  3622. }
  3623. return parts.join('');
  3624. };
  3625. Op.prototype.toString = function(idt) {
  3626. return Op.__super__.toString.call(this, idt, this.constructor.name + ' ' + this.operator);
  3627. };
  3628. return Op;
  3629. })();
  3630. exports.In = In = (function() {
  3631. __extends(In, Base);
  3632. function In(object, array) {
  3633. this.object = object;
  3634. this.array = array;
  3635. }
  3636. In.prototype.children = ['object', 'array'];
  3637. In.prototype.invert = NEGATE;
  3638. In.prototype.compileNode = function(o) {
  3639. var hasSplat, obj, _i, _len, _ref2;
  3640. if (this.array instanceof Value && this.array.isArray()) {
  3641. _ref2 = this.array.base.objects;
  3642. for (_i = 0, _len = _ref2.length; _i < _len; _i++) {
  3643. obj = _ref2[_i];
  3644. if (obj instanceof Splat) {
  3645. hasSplat = true;
  3646. break;
  3647. }
  3648. }
  3649. if (!hasSplat) {
  3650. return this.compileOrTest(o);
  3651. }
  3652. }
  3653. return this.compileLoopTest(o);
  3654. };
  3655. In.prototype.compileOrTest = function(o) {
  3656. var cmp, cnj, i, item, ref, sub, tests, _ref2, _ref3;
  3657. _ref2 = this.object.cache(o, LEVEL_OP), sub = _ref2[0], ref = _ref2[1];
  3658. _ref3 = this.negated ? [' !== ', ' && '] : [' === ', ' || '], cmp = _ref3[0], cnj = _ref3[1];
  3659. tests = (function() {
  3660. var _len, _ref4, _results;
  3661. _ref4 = this.array.base.objects;
  3662. _results = [];
  3663. for (i = 0, _len = _ref4.length; i < _len; i++) {
  3664. item = _ref4[i];
  3665. _results.push((i ? ref : sub) + cmp + item.compile(o, LEVEL_OP));
  3666. }
  3667. return _results;
  3668. }).call(this);
  3669. if (tests.length === 0) {
  3670. return 'false';
  3671. }
  3672. tests = tests.join(cnj);
  3673. if (o.level < LEVEL_OP) {
  3674. return tests;
  3675. } else {
  3676. return "(" + tests + ")";
  3677. }
  3678. };
  3679. In.prototype.compileLoopTest = function(o) {
  3680. var code, ref, sub, _ref2;
  3681. _ref2 = this.object.cache(o, LEVEL_LIST), sub = _ref2[0], ref = _ref2[1];
  3682. code = utility('indexOf') + (".call(" + (this.array.compile(o, LEVEL_LIST)) + ", " + ref + ") ") + (this.negated ? '< 0' : '>= 0');
  3683. if (sub === ref) {
  3684. return code;
  3685. }
  3686. code = sub + ', ' + code;
  3687. if (o.level < LEVEL_LIST) {
  3688. return code;
  3689. } else {
  3690. return "(" + code + ")";
  3691. }
  3692. };
  3693. In.prototype.toString = function(idt) {
  3694. return In.__super__.toString.call(this, idt, this.constructor.name + (this.negated ? '!' : ''));
  3695. };
  3696. return In;
  3697. })();
  3698. exports.Try = Try = (function() {
  3699. __extends(Try, Base);
  3700. function Try(attempt, error, recovery, ensure) {
  3701. this.attempt = attempt;
  3702. this.error = error;
  3703. this.recovery = recovery;
  3704. this.ensure = ensure;
  3705. }
  3706. Try.prototype.children = ['attempt', 'recovery', 'ensure'];
  3707. Try.prototype.isStatement = YES;
  3708. Try.prototype.jumps = function(o) {
  3709. var _ref2;
  3710. return this.attempt.jumps(o) || ((_ref2 = this.recovery) != null ? _ref2.jumps(o) : void 0);
  3711. };
  3712. Try.prototype.makeReturn = function() {
  3713. if (this.attempt) {
  3714. this.attempt = this.attempt.makeReturn();
  3715. }
  3716. if (this.recovery) {
  3717. this.recovery = this.recovery.makeReturn();
  3718. }
  3719. return this;
  3720. };
  3721. Try.prototype.compileNode = function(o) {
  3722. var catchPart, errorPart;
  3723. o.indent += TAB;
  3724. errorPart = this.error ? " (" + (this.error.compile(o)) + ") " : ' ';
  3725. catchPart = this.recovery ? (o.scope.add(this.error.value, 'param'), " catch" + errorPart + "{\n" + (this.recovery.compile(o, LEVEL_TOP)) + "\n" + this.tab + "}") : !(this.ensure || this.recovery) ? ' catch (_e) {}' : void 0;
  3726. return ("" + this.tab + "try {\n" + (this.attempt.compile(o, LEVEL_TOP)) + "\n" + this.tab + "}" + (catchPart || '')) + (this.ensure ? " finally {\n" + (this.ensure.compile(o, LEVEL_TOP)) + "\n" + this.tab + "}" : '');
  3727. };
  3728. return Try;
  3729. })();
  3730. exports.Throw = Throw = (function() {
  3731. __extends(Throw, Base);
  3732. function Throw(expression) {
  3733. this.expression = expression;
  3734. }
  3735. Throw.prototype.children = ['expression'];
  3736. Throw.prototype.isStatement = YES;
  3737. Throw.prototype.jumps = NO;
  3738. Throw.prototype.makeReturn = THIS;
  3739. Throw.prototype.compileNode = function(o) {
  3740. return this.tab + ("throw " + (this.expression.compile(o)) + ";");
  3741. };
  3742. return Throw;
  3743. })();
  3744. exports.Existence = Existence = (function() {
  3745. __extends(Existence, Base);
  3746. function Existence(expression) {
  3747. this.expression = expression;
  3748. }
  3749. Existence.prototype.children = ['expression'];
  3750. Existence.prototype.invert = NEGATE;
  3751. Existence.prototype.compileNode = function(o) {
  3752. var cmp, cnj, code, _ref2;
  3753. code = this.expression.compile(o, LEVEL_OP);
  3754. code = IDENTIFIER.test(code) && !o.scope.check(code) ? ((_ref2 = this.negated ? ['===', '||'] : ['!==', '&&'], cmp = _ref2[0], cnj = _ref2[1], _ref2), "typeof " + code + " " + cmp + " \"undefined\" " + cnj + " " + code + " " + cmp + " null") : "" + code + " " + (this.negated ? '==' : '!=') + " null";
  3755. if (o.level <= LEVEL_COND) {
  3756. return code;
  3757. } else {
  3758. return "(" + code + ")";
  3759. }
  3760. };
  3761. return Existence;
  3762. })();
  3763. exports.Parens = Parens = (function() {
  3764. __extends(Parens, Base);
  3765. function Parens(body) {
  3766. this.body = body;
  3767. }
  3768. Parens.prototype.children = ['body'];
  3769. Parens.prototype.unwrap = function() {
  3770. return this.body;
  3771. };
  3772. Parens.prototype.isComplex = function() {
  3773. return this.body.isComplex();
  3774. };
  3775. Parens.prototype.makeReturn = function() {
  3776. return this.body.makeReturn();
  3777. };
  3778. Parens.prototype.compileNode = function(o) {
  3779. var bare, code, expr;
  3780. expr = this.body.unwrap();
  3781. if (expr instanceof Value && expr.isAtomic()) {
  3782. expr.front = this.front;
  3783. return expr.compile(o);
  3784. }
  3785. code = expr.compile(o, LEVEL_PAREN);
  3786. bare = o.level < LEVEL_OP && (expr instanceof Op || expr instanceof Call || (expr instanceof For && expr.returns));
  3787. if (bare) {
  3788. return code;
  3789. } else {
  3790. return "(" + code + ")";
  3791. }
  3792. };
  3793. return Parens;
  3794. })();
  3795. exports.For = For = (function() {
  3796. __extends(For, Base);
  3797. function For(body, source) {
  3798. var _ref2;
  3799. this.source = source.source, this.guard = source.guard, this.step = source.step, this.name = source.name, this.index = source.index;
  3800. this.body = Block.wrap([body]);
  3801. this.own = !!source.own;
  3802. this.object = !!source.object;
  3803. if (this.object) {
  3804. _ref2 = [this.index, this.name], this.name = _ref2[0], this.index = _ref2[1];
  3805. }
  3806. if (this.index instanceof Value) {
  3807. throw SyntaxError('index cannot be a pattern matching expression');
  3808. }
  3809. this.range = this.source instanceof Value && this.source.base instanceof Range && !this.source.properties.length;
  3810. this.pattern = this.name instanceof Value;
  3811. if (this.range && this.index) {
  3812. throw SyntaxError('indexes do not apply to range loops');
  3813. }
  3814. if (this.range && this.pattern) {
  3815. throw SyntaxError('cannot pattern match over range loops');
  3816. }
  3817. this.returns = false;
  3818. }
  3819. For.prototype.children = ['body', 'source', 'guard', 'step'];
  3820. For.prototype.isStatement = YES;
  3821. For.prototype.jumps = While.prototype.jumps;
  3822. For.prototype.makeReturn = function() {
  3823. this.returns = true;
  3824. return this;
  3825. };
  3826. For.prototype.compileNode = function(o) {
  3827. var body, defPart, forPart, forVarPart, guardPart, idt1, index, ivar, lastJumps, lvar, name, namePart, ref, resultPart, returnResult, rvar, scope, source, stepPart, stepvar, svar, varPart, _ref2;
  3828. body = Block.wrap([this.body]);
  3829. lastJumps = (_ref2 = last(body.expressions)) != null ? _ref2.jumps() : void 0;
  3830. if (lastJumps && lastJumps instanceof Return) {
  3831. this.returns = false;
  3832. }
  3833. source = this.range ? this.source.base : this.source;
  3834. scope = o.scope;
  3835. name = this.name && this.name.compile(o, LEVEL_LIST);
  3836. index = this.index && this.index.compile(o, LEVEL_LIST);
  3837. if (name && !this.pattern) {
  3838. scope.find(name, {
  3839. immediate: true
  3840. });
  3841. }
  3842. if (index) {
  3843. scope.find(index, {
  3844. immediate: true
  3845. });
  3846. }
  3847. if (this.returns) {
  3848. rvar = scope.freeVariable('results');
  3849. }
  3850. ivar = (this.range ? name : index) || scope.freeVariable('i');
  3851. if (this.step && !this.range) {
  3852. stepvar = scope.freeVariable("step");
  3853. }
  3854. if (this.pattern) {
  3855. name = ivar;
  3856. }
  3857. varPart = '';
  3858. guardPart = '';
  3859. defPart = '';
  3860. idt1 = this.tab + TAB;
  3861. if (this.range) {
  3862. forPart = source.compile(merge(o, {
  3863. index: ivar,
  3864. step: this.step
  3865. }));
  3866. } else {
  3867. svar = this.source.compile(o, LEVEL_LIST);
  3868. if ((name || this.own) && !IDENTIFIER.test(svar)) {
  3869. defPart = "" + this.tab + (ref = scope.freeVariable('ref')) + " = " + svar + ";\n";
  3870. svar = ref;
  3871. }
  3872. if (name && !this.pattern) {
  3873. namePart = "" + name + " = " + svar + "[" + ivar + "]";
  3874. }
  3875. if (!this.object) {
  3876. lvar = scope.freeVariable('len');
  3877. forVarPart = ("" + ivar + " = 0, " + lvar + " = " + svar + ".length") + (this.step ? ", " + stepvar + " = " + (this.step.compile(o, LEVEL_OP)) : '');
  3878. stepPart = this.step ? "" + ivar + " += " + stepvar : "" + ivar + "++";
  3879. forPart = "" + forVarPart + "; " + ivar + " < " + lvar + "; " + stepPart;
  3880. }
  3881. }
  3882. if (this.returns) {
  3883. resultPart = "" + this.tab + rvar + " = [];\n";
  3884. returnResult = "\n" + this.tab + "return " + rvar + ";";
  3885. body = Push.wrap(rvar, body);
  3886. }
  3887. if (this.guard) {
  3888. body = Block.wrap([new If(this.guard, body)]);
  3889. }
  3890. if (this.pattern) {
  3891. body.expressions.unshift(new Assign(this.name, new Literal("" + svar + "[" + ivar + "]")));
  3892. }
  3893. defPart += this.pluckDirectCall(o, body);
  3894. if (namePart) {
  3895. varPart = "\n" + idt1 + namePart + ";";
  3896. }
  3897. if (this.object) {
  3898. forPart = "" + ivar + " in " + svar;
  3899. if (this.own) {
  3900. guardPart = "\n" + idt1 + "if (!" + (utility('hasProp')) + ".call(" + svar + ", " + ivar + ")) continue;";
  3901. }
  3902. }
  3903. body = body.compile(merge(o, {
  3904. indent: idt1
  3905. }), LEVEL_TOP);
  3906. if (body) {
  3907. body = '\n' + body + '\n';
  3908. }
  3909. return "" + defPart + (resultPart || '') + this.tab + "for (" + forPart + ") {" + guardPart + varPart + body + this.tab + "}" + (returnResult || '');
  3910. };
  3911. For.prototype.pluckDirectCall = function(o, body) {
  3912. var base, defs, expr, fn, idx, ref, val, _len, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7;
  3913. defs = '';
  3914. _ref2 = body.expressions;
  3915. for (idx = 0, _len = _ref2.length; idx < _len; idx++) {
  3916. expr = _ref2[idx];
  3917. expr = expr.unwrapAll();
  3918. if (!(expr instanceof Call)) {
  3919. continue;
  3920. }
  3921. val = expr.variable.unwrapAll();
  3922. if (!((val instanceof Code) || (val instanceof Value && ((_ref3 = val.base) != null ? _ref3.unwrapAll() : void 0) instanceof Code && val.properties.length === 1 && ((_ref4 = (_ref5 = val.properties[0].name) != null ? _ref5.value : void 0) === 'call' || _ref4 === 'apply')))) {
  3923. continue;
  3924. }
  3925. fn = ((_ref6 = val.base) != null ? _ref6.unwrapAll() : void 0) || val;
  3926. ref = new Literal(o.scope.freeVariable('fn'));
  3927. base = new Value(ref);
  3928. if (val.base) {
  3929. _ref7 = [base, val], val.base = _ref7[0], base = _ref7[1];
  3930. }
  3931. body.expressions[idx] = new Call(base, expr.args);
  3932. defs += this.tab + new Assign(ref, fn).compile(o, LEVEL_TOP) + ';\n';
  3933. }
  3934. return defs;
  3935. };
  3936. return For;
  3937. })();
  3938. exports.Switch = Switch = (function() {
  3939. __extends(Switch, Base);
  3940. function Switch(subject, cases, otherwise) {
  3941. this.subject = subject;
  3942. this.cases = cases;
  3943. this.otherwise = otherwise;
  3944. }
  3945. Switch.prototype.children = ['subject', 'cases', 'otherwise'];
  3946. Switch.prototype.isStatement = YES;
  3947. Switch.prototype.jumps = function(o) {
  3948. var block, conds, _i, _len, _ref2, _ref3, _ref4;
  3949. if (o == null) {
  3950. o = {
  3951. block: true
  3952. };
  3953. }
  3954. _ref2 = this.cases;
  3955. for (_i = 0, _len = _ref2.length; _i < _len; _i++) {
  3956. _ref3 = _ref2[_i], conds = _ref3[0], block = _ref3[1];
  3957. if (block.jumps(o)) {
  3958. return block;
  3959. }
  3960. }
  3961. return (_ref4 = this.otherwise) != null ? _ref4.jumps(o) : void 0;
  3962. };
  3963. Switch.prototype.makeReturn = function() {
  3964. var pair, _i, _len, _ref2, _ref3;
  3965. _ref2 = this.cases;
  3966. for (_i = 0, _len = _ref2.length; _i < _len; _i++) {
  3967. pair = _ref2[_i];
  3968. pair[1].makeReturn();
  3969. }
  3970. if ((_ref3 = this.otherwise) != null) {
  3971. _ref3.makeReturn();
  3972. }
  3973. return this;
  3974. };
  3975. Switch.prototype.compileNode = function(o) {
  3976. var block, body, code, cond, conditions, expr, i, idt1, idt2, _i, _len, _len2, _ref2, _ref3, _ref4, _ref5;
  3977. idt1 = o.indent + TAB;
  3978. idt2 = o.indent = idt1 + TAB;
  3979. code = this.tab + ("switch (" + (((_ref2 = this.subject) != null ? _ref2.compile(o, LEVEL_PAREN) : void 0) || false) + ") {\n");
  3980. _ref3 = this.cases;
  3981. for (i = 0, _len = _ref3.length; i < _len; i++) {
  3982. _ref4 = _ref3[i], conditions = _ref4[0], block = _ref4[1];
  3983. _ref5 = flatten([conditions]);
  3984. for (_i = 0, _len2 = _ref5.length; _i < _len2; _i++) {
  3985. cond = _ref5[_i];
  3986. if (!this.subject) {
  3987. cond = cond.invert();
  3988. }
  3989. code += idt1 + ("case " + (cond.compile(o, LEVEL_PAREN)) + ":\n");
  3990. }
  3991. if (body = block.compile(o, LEVEL_TOP)) {
  3992. code += body + '\n';
  3993. }
  3994. if (i === this.cases.length - 1 && !this.otherwise) {
  3995. break;
  3996. }
  3997. expr = this.lastNonComment(block.expressions);
  3998. if (expr instanceof Return || (expr instanceof Literal && expr.jumps() && expr.value !== 'debugger')) {
  3999. continue;
  4000. }
  4001. code += idt2 + 'break;\n';
  4002. }
  4003. if (this.otherwise && this.otherwise.expressions.length) {
  4004. code += idt1 + ("default:\n" + (this.otherwise.compile(o, LEVEL_TOP)) + "\n");
  4005. }
  4006. return code + this.tab + '}';
  4007. };
  4008. return Switch;
  4009. })();
  4010. exports.If = If = (function() {
  4011. __extends(If, Base);
  4012. function If(condition, body, options) {
  4013. this.body = body;
  4014. if (options == null) {
  4015. options = {};
  4016. }
  4017. this.condition = options.type === 'unless' ? condition.invert() : condition;
  4018. this.elseBody = null;
  4019. this.isChain = false;
  4020. this.soak = options.soak;
  4021. }
  4022. If.prototype.children = ['condition', 'body', 'elseBody'];
  4023. If.prototype.bodyNode = function() {
  4024. var _ref2;
  4025. return (_ref2 = this.body) != null ? _ref2.unwrap() : void 0;
  4026. };
  4027. If.prototype.elseBodyNode = function() {
  4028. var _ref2;
  4029. return (_ref2 = this.elseBody) != null ? _ref2.unwrap() : void 0;
  4030. };
  4031. If.prototype.addElse = function(elseBody) {
  4032. if (this.isChain) {
  4033. this.elseBodyNode().addElse(elseBody);
  4034. } else {
  4035. this.isChain = elseBody instanceof If;
  4036. this.elseBody = this.ensureBlock(elseBody);
  4037. }
  4038. return this;
  4039. };
  4040. If.prototype.isStatement = function(o) {
  4041. var _ref2;
  4042. return (o != null ? o.level : void 0) === LEVEL_TOP || this.bodyNode().isStatement(o) || ((_ref2 = this.elseBodyNode()) != null ? _ref2.isStatement(o) : void 0);
  4043. };
  4044. If.prototype.jumps = function(o) {
  4045. var _ref2;
  4046. return this.body.jumps(o) || ((_ref2 = this.elseBody) != null ? _ref2.jumps(o) : void 0);
  4047. };
  4048. If.prototype.compileNode = function(o) {
  4049. if (this.isStatement(o)) {
  4050. return this.compileStatement(o);
  4051. } else {
  4052. return this.compileExpression(o);
  4053. }
  4054. };
  4055. If.prototype.makeReturn = function() {
  4056. this.body && (this.body = new Block([this.body.makeReturn()]));
  4057. this.elseBody && (this.elseBody = new Block([this.elseBody.makeReturn()]));
  4058. return this;
  4059. };
  4060. If.prototype.ensureBlock = function(node) {
  4061. if (node instanceof Block) {
  4062. return node;
  4063. } else {
  4064. return new Block([node]);
  4065. }
  4066. };
  4067. If.prototype.compileStatement = function(o) {
  4068. var body, child, cond, exeq, ifPart;
  4069. child = del(o, 'chainChild');
  4070. exeq = del(o, 'isExistentialEquals');
  4071. if (exeq) {
  4072. return new If(this.condition.invert(), this.elseBodyNode(), {
  4073. type: 'if'
  4074. }).compile(o);
  4075. }
  4076. cond = this.condition.compile(o, LEVEL_PAREN);
  4077. o.indent += TAB;
  4078. body = this.ensureBlock(this.body).compile(o);
  4079. if (body) {
  4080. body = "\n" + body + "\n" + this.tab;
  4081. }
  4082. ifPart = "if (" + cond + ") {" + body + "}";
  4083. if (!child) {
  4084. ifPart = this.tab + ifPart;
  4085. }
  4086. if (!this.elseBody) {
  4087. return ifPart;
  4088. }
  4089. return ifPart + ' else ' + (this.isChain ? (o.indent = this.tab, o.chainChild = true, this.elseBody.unwrap().compile(o, LEVEL_TOP)) : "{\n" + (this.elseBody.compile(o, LEVEL_TOP)) + "\n" + this.tab + "}");
  4090. };
  4091. If.prototype.compileExpression = function(o) {
  4092. var alt, body, code, cond;
  4093. cond = this.condition.compile(o, LEVEL_COND);
  4094. body = this.bodyNode().compile(o, LEVEL_LIST);
  4095. alt = this.elseBodyNode() ? this.elseBodyNode().compile(o, LEVEL_LIST) : 'void 0';
  4096. code = "" + cond + " ? " + body + " : " + alt;
  4097. if (o.level >= LEVEL_COND) {
  4098. return "(" + code + ")";
  4099. } else {
  4100. return code;
  4101. }
  4102. };
  4103. If.prototype.unfoldSoak = function() {
  4104. return this.soak && this;
  4105. };
  4106. return If;
  4107. })();
  4108. Push = {
  4109. wrap: function(name, exps) {
  4110. if (exps.isEmpty() || last(exps.expressions).jumps()) {
  4111. return exps;
  4112. }
  4113. return exps.push(new Call(new Value(new Literal(name), [new Access(new Literal('push'))]), [exps.pop()]));
  4114. }
  4115. };
  4116. Closure = {
  4117. wrap: function(expressions, statement, noReturn) {
  4118. var args, call, func, mentionsArgs, meth;
  4119. if (expressions.jumps()) {
  4120. return expressions;
  4121. }
  4122. func = new Code([], Block.wrap([expressions]));
  4123. args = [];
  4124. if ((mentionsArgs = expressions.contains(this.literalArgs)) || expressions.contains(this.literalThis)) {
  4125. meth = new Literal(mentionsArgs ? 'apply' : 'call');
  4126. args = [new Literal('this')];
  4127. if (mentionsArgs) {
  4128. args.push(new Literal('arguments'));
  4129. }
  4130. func = new Value(func, [new Access(meth)]);
  4131. }
  4132. func.noReturn = noReturn;
  4133. call = new Call(func, args);
  4134. if (statement) {
  4135. return Block.wrap([call]);
  4136. } else {
  4137. return call;
  4138. }
  4139. },
  4140. literalArgs: function(node) {
  4141. return node instanceof Literal && node.value === 'arguments' && !node.asKey;
  4142. },
  4143. literalThis: function(node) {
  4144. return (node instanceof Literal && node.value === 'this' && !node.asKey) || (node instanceof Code && node.bound);
  4145. }
  4146. };
  4147. unfoldSoak = function(o, parent, name) {
  4148. var ifn;
  4149. if (!(ifn = parent[name].unfoldSoak(o))) {
  4150. return;
  4151. }
  4152. parent[name] = ifn.body;
  4153. ifn.body = new Value(parent);
  4154. return ifn;
  4155. };
  4156. UTILITIES = {
  4157. "extends": 'function(child, parent) {\n for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; }\n function ctor() { this.constructor = child; }\n ctor.prototype = parent.prototype;\n child.prototype = new ctor;\n child.__super__ = parent.prototype;\n return child;\n}',
  4158. bind: 'function(fn, me){ return function(){ return fn.apply(me, arguments); }; }',
  4159. indexOf: 'Array.prototype.indexOf || function(item) {\n for (var i = 0, l = this.length; i < l; i++) {\n if (this[i] === item) return i;\n }\n return -1;\n}',
  4160. hasProp: 'Object.prototype.hasOwnProperty',
  4161. slice: 'Array.prototype.slice'
  4162. };
  4163. LEVEL_TOP = 1;
  4164. LEVEL_PAREN = 2;
  4165. LEVEL_LIST = 3;
  4166. LEVEL_COND = 4;
  4167. LEVEL_OP = 5;
  4168. LEVEL_ACCESS = 6;
  4169. TAB = ' ';
  4170. IDENTIFIER_STR = "[$A-Za-z_\\x7f-\\uffff][$\\w\\x7f-\\uffff]*";
  4171. IDENTIFIER = RegExp("^" + IDENTIFIER_STR + "$");
  4172. SIMPLENUM = /^[+-]?\d+$/;
  4173. METHOD_DEF = RegExp("^(?:(" + IDENTIFIER_STR + ")\\.prototype(?:\\.(" + IDENTIFIER_STR + ")|\\[(\"(?:[^\\\\\"\\r\\n]|\\\\.)*\"|'(?:[^\\\\'\\r\\n]|\\\\.)*')\\]|\\[(0x[\\da-fA-F]+|\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\]))|(" + IDENTIFIER_STR + ")$");
  4174. IS_STRING = /^['"]/;
  4175. utility = function(name) {
  4176. var ref;
  4177. ref = "__" + name;
  4178. Scope.root.assign(ref, UTILITIES[name]);
  4179. return ref;
  4180. };
  4181. multident = function(code, tab) {
  4182. return code.replace(/\n/g, '$&' + tab);
  4183. };
  4184. }).call(this);
  4185. return exports;
  4186. }());(function () {
  4187. var exports = __MODULES['coffee-script'] = {};
  4188. (function() {
  4189. var Lexer, RESERVED, compile, fs, lexer, parser, path, _ref;
  4190. var __hasProp = Object.prototype.hasOwnProperty;
  4191. fs = require('fs');
  4192. path = require('path');
  4193. _ref = require('./lexer'), Lexer = _ref.Lexer, RESERVED = _ref.RESERVED;
  4194. parser = require('./parser').parser;
  4195. if (require.extensions) {
  4196. require.extensions['.coffee'] = function(module, filename) {
  4197. var content;
  4198. content = compile(fs.readFileSync(filename, 'utf8'), {
  4199. filename: filename
  4200. });
  4201. return module._compile(content, filename);
  4202. };
  4203. } else if (require.registerExtension) {
  4204. require.registerExtension('.coffee', function(content) {
  4205. return compile(content);
  4206. });
  4207. }
  4208. exports.VERSION = '1.1.2';
  4209. exports.RESERVED = RESERVED;
  4210. exports.helpers = require('./helpers');
  4211. exports.compile = compile = function(code, options) {
  4212. if (options == null) {
  4213. options = {};
  4214. }
  4215. try {
  4216. return (parser.parse(lexer.tokenize(code))).compile(options);
  4217. } catch (err) {
  4218. if (options.filename) {
  4219. err.message = "In " + options.filename + ", " + err.message;
  4220. }
  4221. throw err;
  4222. }
  4223. };
  4224. exports.tokens = function(code, options) {
  4225. return lexer.tokenize(code, options);
  4226. };
  4227. exports.nodes = function(source, options) {
  4228. if (typeof source === 'string') {
  4229. return parser.parse(lexer.tokenize(source, options));
  4230. } else {
  4231. return parser.parse(source);
  4232. }
  4233. };
  4234. exports.run = function(code, options) {
  4235. var Module, mainModule;
  4236. mainModule = require.main;
  4237. mainModule.filename = process.argv[1] = options.filename ? fs.realpathSync(options.filename) : '.';
  4238. mainModule.moduleCache && (mainModule.moduleCache = {});
  4239. if (process.binding('natives').module) {
  4240. Module = require('module').Module;
  4241. mainModule.paths = Module._nodeModulePaths(path.dirname(options.filename));
  4242. }
  4243. if (path.extname(mainModule.filename) !== '.coffee' || require.extensions) {
  4244. return mainModule._compile(compile(code, options), mainModule.filename);
  4245. } else {
  4246. return mainModule._compile(code, mainModule.filename);
  4247. }
  4248. };
  4249. exports.eval = function(code, options) {
  4250. var Module, Script, js, k, o, r, sandbox, v, _i, _len, _module, _ref2, _ref3, _ref4, _require;
  4251. if (options == null) {
  4252. options = {};
  4253. }
  4254. if (!(code = code.trim())) {
  4255. return;
  4256. }
  4257. if (_ref2 = require('vm'), Script = _ref2.Script, _ref2) {
  4258. sandbox = Script.createContext();
  4259. sandbox.global = sandbox.root = sandbox.GLOBAL = sandbox;
  4260. if (options.sandbox != null) {
  4261. if (options.sandbox instanceof sandbox.constructor) {
  4262. sandbox = options.sandbox;
  4263. } else {
  4264. _ref3 = options.sandbox;
  4265. for (k in _ref3) {
  4266. if (!__hasProp.call(_ref3, k)) continue;
  4267. v = _ref3[k];
  4268. sandbox[k] = v;
  4269. }
  4270. }
  4271. }
  4272. sandbox.__filename = options.filename || 'eval';
  4273. sandbox.__dirname = path.dirname(sandbox.__filename);
  4274. if (!(sandbox.module || sandbox.require)) {
  4275. Module = require('module');
  4276. sandbox.module = _module = new Module(options.modulename || 'eval');
  4277. sandbox.require = _require = function(path) {
  4278. return Module._load(path, _module);
  4279. };
  4280. _module.filename = sandbox.__filename;
  4281. _ref4 = Object.getOwnPropertyNames(require);
  4282. for (_i = 0, _len = _ref4.length; _i < _len; _i++) {
  4283. r = _ref4[_i];
  4284. _require[r] = require[r];
  4285. }
  4286. _require.paths = _module.paths = Module._nodeModulePaths(process.cwd());
  4287. _require.resolve = function(request) {
  4288. return Module._resolveFilename(request, _module);
  4289. };
  4290. }
  4291. }
  4292. o = {};
  4293. for (k in options) {
  4294. if (!__hasProp.call(options, k)) continue;
  4295. v = options[k];
  4296. o[k] = v;
  4297. }
  4298. o.bare = true;
  4299. js = compile(code, o);
  4300. if (Script) {
  4301. return Script.runInContext(js, sandbox);
  4302. } else {
  4303. return eval(js);
  4304. }
  4305. };
  4306. lexer = new Lexer;
  4307. parser.lexer = {
  4308. lex: function() {
  4309. var tag, _ref2;
  4310. _ref2 = this.tokens[this.pos++] || [''], tag = _ref2[0], this.yytext = _ref2[1], this.yylineno = _ref2[2];
  4311. return tag;
  4312. },
  4313. setInput: function(tokens) {
  4314. this.tokens = tokens;
  4315. return this.pos = 0;
  4316. },
  4317. upcomingInput: function() {
  4318. return "";
  4319. }
  4320. };
  4321. parser.yy = require('./nodes');
  4322. }).call(this);
  4323. return exports;
  4324. }());
  4325. return __MODULES['coffee-script'];
  4326. }());
  4327. //END COFFEESCRIPT
  4328. if (typeof window !== "undefined" && window.navigator && window.document) {
  4329. // Browser action
  4330. getXhr = function () {
  4331. //Would love to dump the ActiveX crap in here. Need IE 6 to die first.
  4332. var xhr, i, progId;
  4333. if (typeof XMLHttpRequest !== "undefined") {
  4334. return new XMLHttpRequest();
  4335. } else {
  4336. for (i = 0; i < 3; i++) {
  4337. progId = progIds[i];
  4338. try {
  4339. xhr = new ActiveXObject(progId);
  4340. } catch (e) {}
  4341. if (xhr) {
  4342. progIds = [progId]; // so faster next time
  4343. break;
  4344. }
  4345. }
  4346. }
  4347. if (!xhr) {
  4348. throw new Error("getXhr(): XMLHttpRequest not available");
  4349. }
  4350. return xhr;
  4351. };
  4352. fetchText = function (url, callback) {
  4353. var xhr = getXhr();
  4354. xhr.open('GET', url, true);
  4355. xhr.onreadystatechange = function (evt) {
  4356. //Do not explicitly handle errors, those should be
  4357. //visible via console output in the browser.
  4358. if (xhr.readyState === 4) {
  4359. callback(xhr.responseText);
  4360. }
  4361. };
  4362. xhr.send(null);
  4363. };
  4364. //Some overrides for the browser env, taken from the
  4365. //browser.js in the CoffeeScript source.
  4366. CoffeeScript.eval = function(code, options) {
  4367. return eval(CoffeeScript.compile(code, options));
  4368. };
  4369. CoffeeScript.run = function(code, options) {
  4370. if (options == null) {
  4371. options = {};
  4372. }
  4373. options.bare = true;
  4374. return Function(CoffeeScript.compile(code, options))();
  4375. };
  4376. // end browser.js adapters
  4377. } else if (typeof process !== "undefined" &&
  4378. process.versions &&
  4379. !!process.versions.node) {
  4380. //Using special require.nodeRequire, something added by r.js.
  4381. fs = (require.nodeRequire || require)('fs');
  4382. fetchText = function (path, callback) {
  4383. callback(fs.readFileSync(path, 'utf8'));
  4384. };
  4385. } else if (typeof Packages !== 'undefined') {
  4386. //Why Java, why is this so awkward?
  4387. fetchText = function (path, callback) {
  4388. var encoding = "utf-8",
  4389. file = new java.io.File(path),
  4390. lineSeparator = java.lang.System.getProperty("line.separator"),
  4391. input = new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(file), encoding)),
  4392. stringBuffer, line,
  4393. content = '';
  4394. try {
  4395. stringBuffer = new java.lang.StringBuffer();
  4396. line = input.readLine();
  4397. // Byte Order Mark (BOM) - The Unicode Standard, version 3.0, page 324
  4398. // http://www.unicode.org/faq/utf_bom.html
  4399. // Note that when we use utf-8, the BOM should appear as "EF BB BF", but it doesn't due to this bug in the JDK:
  4400. // http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4508058
  4401. if (line && line.length() && line.charAt(0) === 0xfeff) {
  4402. // Eat the BOM, since we've already found the encoding on this file,
  4403. // and we plan to concatenating this buffer with others; the BOM should
  4404. // only appear at the top of a file.
  4405. line = line.substring(1);
  4406. }
  4407. stringBuffer.append(line);
  4408. while ((line = input.readLine()) !== null) {
  4409. stringBuffer.append(lineSeparator);
  4410. stringBuffer.append(line);
  4411. }
  4412. //Make sure we return a JavaScript string and not a Java string.
  4413. content = String(stringBuffer.toString()); //String
  4414. } finally {
  4415. input.close();
  4416. }
  4417. callback(content);
  4418. };
  4419. }
  4420. //>>excludeEnd('excludeCoffeeScript')
  4421. define({
  4422. //>>excludeStart('excludeCoffeeScript', pragmas.excludeCoffeeScript)
  4423. get: function () {
  4424. return CoffeeScript;
  4425. },
  4426. write: function (pluginName, name, write) {
  4427. if (name in buildMap) {
  4428. var text = buildMap[name];
  4429. write.asModule(pluginName + "!" + name, text);
  4430. }
  4431. },
  4432. //>>excludeEnd('excludeCoffeeScript')
  4433. version: '0.3.1',
  4434. load: function (name, parentRequire, load, config) {
  4435. //>>excludeStart('excludeCoffeeScript', pragmas.excludeCoffeeScript)
  4436. var path = parentRequire.toUrl(name + '.coffee');
  4437. fetchText(path, function (text) {
  4438. //Do CoffeeScript transform.
  4439. text = CoffeeScript.compile(text, config.CoffeeScript);
  4440. //Hold on to the transformed text if a build.
  4441. if (config.isBuild) {
  4442. buildMap[name] = text;
  4443. }
  4444. //IE with conditional comments on cannot handle the
  4445. //sourceURL trick, so skip it if enabled.
  4446. /*@if (@_jscript) @else @*/
  4447. if (!config.isBuild) {
  4448. text += "\r\n//@ sourceURL=" + path;
  4449. }
  4450. /*@end@*/
  4451. load.fromText(name, text);
  4452. //Give result to load. Need to wait until the module
  4453. //is fully parse, which will happen after this
  4454. //execution.
  4455. parentRequire([name], function (value) {
  4456. load(value);
  4457. });
  4458. });
  4459. //>>excludeEnd('excludeCoffeeScript')
  4460. }
  4461. });
  4462. }());