7 lines
133 KiB
JavaScript
7 lines
133 KiB
JavaScript
|
/*acorn.min.js*/
|
|||
|
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).acorn={})}(this,function(t){"use strict";var n={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},e="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",o={5:e,"5module":e+" export import",6:e+" const class extends export import super"},h=/^in(stanceof)?$/,i="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿯ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-Ᶎꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭧꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",s="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-<EFBFBD>
|
|||
|
/*acorn-loose.min.js*/
|
|||
|
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("acorn")):"function"==typeof define&&define.amd?define(["exports","acorn"],e):e(((t=t||self).acorn=t.acorn||{},t.acorn.loose={}),t.acorn)}(this,function(t,l){"use strict";function i(){}function s(t,e){var s;void 0===e&&(e={}),this.toks=this.constructor.BaseParser.tokenizer(t,e),this.options=this.toks.options,this.input=this.toks.input,this.tok=this.last={type:l.tokTypes.eof,start:0,end:0},this.tok.validateRegExpFlags=i,this.tok.validateRegExpPattern=i,this.options.locations&&(s=this.toks.curPosition(),this.tok.loc=new l.SourceLocation(this.toks,s,s)),this.ahead=[],this.context=[],this.curIndent=0,this.curLineStart=0,this.nextLineStart=this.lineEnd(this.curLineStart)+1,this.inAsync=!1,this.inFunction=!1}s.prototype.startNode=function(){return new l.Node(this.toks,this.tok.start,this.options.locations?this.tok.loc.start:null)},s.prototype.storeCurrentPos=function(){return this.options.locations?[this.tok.start,this.tok.loc.start]:this.tok.start},s.prototype.startNodeAt=function(t){return this.options.locations?new l.Node(this.toks,t[0],t[1]):new l.Node(this.toks,t)},s.prototype.finishNode=function(t,e){return t.type=e,t.end=this.last.end,this.options.locations&&(t.loc.end=this.last.loc.end),this.options.ranges&&(t.range[1]=this.last.end),t},s.prototype.dummyNode=function(t){var e=this.startNode();return e.type=t,e.end=e.start,this.options.locations&&(e.loc.end=e.loc.start),this.options.ranges&&(e.range[1]=e.start),this.last={type:l.tokTypes.name,start:e.start,end:e.start,loc:e.loc},e},s.prototype.dummyIdent=function(){var t=this.dummyNode("Identifier");return t.name="✖",t},s.prototype.dummyString=function(){var t=this.dummyNode("Literal");return t.value=t.raw="✖",t},s.prototype.eat=function(t){return this.tok.type===t&&(this.next(),!0)},s.prototype.isContextual=function(t){return this.tok.type===l.tokTypes.name&&this.tok.value===t},s.prototype.eatContextual=function(t){return this.tok.value===t&&this.eat(l.tokTypes.name)},s.prototype.canInsertSemicolon=function(){return this.tok.type===l.tokTypes.eof||this.tok.type===l.tokTypes.braceR||l.lineBreak.test(this.input.slice(this.last.end,this.tok.start))},s.prototype.semicolon=function(){return this.eat(l.tokTypes.semi)},s.prototype.expect=function(t){if(this.eat(t))return!0;for(var e=1;e<=2;e++)if(this.lookAhead(e).type===t){for(var s=0;s<e;s++)this.next();return!0}},s.prototype.pushCx=function(){this.context.push(this.curIndent)},s.prototype.popCx=function(){this.curIndent=this.context.pop()},s.prototype.lineEnd=function(t){for(;t<this.input.length&&!l.isNewLine(this.input.charCodeAt(t));)++t;return t},s.prototype.indentationAfter=function(t){for(var e=0;;++t){var s=this.input.charCodeAt(t);if(32===s)++e;else{if(9!==s)return e;e+=this.options.tabSize}}},s.prototype.closes=function(t,e,s,i){return this.tok.type===t||this.tok.type===l.tokTypes.eof||s!==this.curLineStart&&this.curIndent<e&&this.tokenStartsLine()&&(!i||this.nextLineStart>=this.input.length||this.indentationAfter(this.nextLineStart)<e)},s.prototype.tokenStartsLine=function(){for(var t=this.tok.start-1;t>=this.curLineStart;--t){var e=this.input.charCodeAt(t);if(9!==e&&32!==e)return!1}return!0},s.prototype.extend=function(t,e){this[t]=e(this[t])},s.prototype.parse=function(){return this.next(),this.parseTopLevel()},s.extend=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var s=this,i=0;i<t.length;i++)s=t[i](s);return s},s.parse=function(t,e){return new this(t,e).parse()},s.BaseParser=l.Parser;var e=s.prototype;function k(t){return"✖"===t.name}e.next=function(){if(this.last=this.tok,this.ahead.length?this.tok=this.ahead.shift():this.tok=this.readToken(),this.tok.start>=this.nextLineStart){for(;this.tok.start>=this.nextLineStart;)this.curLineStart=this.nextLineStart,this.nextLineStart=this.lineEnd(this.curLineStart)+1;this.curIndent=this.indentationAfter(this.curLineStart)}},e.readToken=function(){for(;;)try{return this.toks.next(),this.toks.type===l.tokTypes.dot&&"."===this.input.substr(this.toks.end,1)&
|
|||
|
/*acorn-walk.min.js*/
|
|||
|
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(((t=t||self).acorn=t.acorn||{},t.acorn.walk={}))}(this,function(t){"use strict";function n(e){return"string"==typeof e?function(t){return t===e}:e||function(){return!0}}function u(t,e){this.node=t,this.state=e}var o=Object.create||function(t){function e(){}return e.prototype=t,new e};function s(t,e){var n=o(e||p);for(var r in t)n[r]=t[r];return n}function e(t,e,n){n(t,e)}function r(t,e,n){}var p={};p.Program=p.BlockStatement=function(t,e,n){for(var r=0,o=t.body;r<o.length;r+=1){n(o[r],e,"Statement")}},p.Statement=e,p.EmptyStatement=r,p.ExpressionStatement=p.ParenthesizedExpression=function(t,e,n){return n(t.expression,e,"Expression")},p.IfStatement=function(t,e,n){n(t.test,e,"Expression"),n(t.consequent,e,"Statement"),t.alternate&&n(t.alternate,e,"Statement")},p.LabeledStatement=function(t,e,n){return n(t.body,e,"Statement")},p.BreakStatement=p.ContinueStatement=r,p.WithStatement=function(t,e,n){n(t.object,e,"Expression"),n(t.body,e,"Statement")},p.SwitchStatement=function(t,e,n){n(t.discriminant,e,"Expression");for(var r=0,o=t.cases;r<o.length;r+=1){var i=o[r];i.test&&n(i.test,e,"Expression");for(var s=0,a=i.consequent;s<a.length;s+=1){n(a[s],e,"Statement")}}},p.SwitchCase=function(t,e,n){t.test&&n(t.test,e,"Expression");for(var r=0,o=t.consequent;r<o.length;r+=1){n(o[r],e,"Statement")}},p.ReturnStatement=p.YieldExpression=p.AwaitExpression=function(t,e,n){t.argument&&n(t.argument,e,"Expression")},p.ThrowStatement=p.SpreadElement=function(t,e,n){return n(t.argument,e,"Expression")},p.TryStatement=function(t,e,n){n(t.block,e,"Statement"),t.handler&&n(t.handler,e),t.finalizer&&n(t.finalizer,e,"Statement")},p.CatchClause=function(t,e,n){t.param&&n(t.param,e,"Pattern"),n(t.body,e,"Statement")},p.WhileStatement=p.DoWhileStatement=function(t,e,n){n(t.test,e,"Expression"),n(t.body,e,"Statement")},p.ForStatement=function(t,e,n){t.init&&n(t.init,e,"ForInit"),t.test&&n(t.test,e,"Expression"),t.update&&n(t.update,e,"Expression"),n(t.body,e,"Statement")},p.ForInStatement=p.ForOfStatement=function(t,e,n){n(t.left,e,"ForInit"),n(t.right,e,"Expression"),n(t.body,e,"Statement")},p.ForInit=function(t,e,n){"VariableDeclaration"===t.type?n(t,e):n(t,e,"Expression")},p.DebuggerStatement=r,p.FunctionDeclaration=function(t,e,n){return n(t,e,"Function")},p.VariableDeclaration=function(t,e,n){for(var r=0,o=t.declarations;r<o.length;r+=1){n(o[r],e)}},p.VariableDeclarator=function(t,e,n){n(t.id,e,"Pattern"),t.init&&n(t.init,e,"Expression")},p.Function=function(t,e,n){t.id&&n(t.id,e,"Pattern");for(var r=0,o=t.params;r<o.length;r+=1){n(o[r],e,"Pattern")}n(t.body,e,t.expression?"Expression":"Statement")},p.Pattern=function(t,e,n){"Identifier"===t.type?n(t,e,"VariablePattern"):"MemberExpression"===t.type?n(t,e,"MemberPattern"):n(t,e)},p.VariablePattern=r,p.MemberPattern=e,p.RestElement=function(t,e,n){return n(t.argument,e,"Pattern")},p.ArrayPattern=function(t,e,n){for(var r=0,o=t.elements;r<o.length;r+=1){var i=o[r];i&&n(i,e,"Pattern")}},p.ObjectPattern=function(t,e,n){for(var r=0,o=t.properties;r<o.length;r+=1){var i=o[r];"Property"===i.type?(i.computed&&n(i.key,e,"Expression"),n(i.value,e,"Pattern")):"RestElement"===i.type&&n(i.argument,e,"Pattern")}},p.Expression=e,p.ThisExpression=p.Super=p.MetaProperty=r,p.ArrayExpression=function(t,e,n){for(var r=0,o=t.elements;r<o.length;r+=1){var i=o[r];i&&n(i,e,"Expression")}},p.ObjectExpression=function(t,e,n){for(var r=0,o=t.properties;r<o.length;r+=1){n(o[r],e)}},p.FunctionExpression=p.ArrowFunctionExpression=p.FunctionDeclaration,p.SequenceExpression=function(t,e,n){for(var r=0,o=t.expressions;r<o.length;r+=1){n(o[r],e,"Expression")}},p.TemplateLiteral=function(t,e,n){for(var r=0,o=t.quasis;r<o.length;r+=1){n(o[r],e)}for(var i=0,s=t.expressions;i<s.length;i+=1){n(s[i],e,"Expression")}},p.TemplateElement=r,p.UnaryExpression=p.UpdateExpression=function(t,e,n){n(t.argument,e,"Expression")},p.BinaryExpression=p.LogicalExpression=function(t,e,n){n(t.left,e,"Expression"
|