php-parser
Version:
Parse PHP code from JS and returns its AST
2 lines • 135 kB
JavaScript
/*! For license information please see php-parser.min.js.LICENSE.txt */
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.PhpParser=e():t.PhpParser=e()}(self,()=>(()=>{"use strict";var t={8938(t,e,i){var s=i(4778),n=i(8822),r=function(t,e){this.withPositions=t,this.withSource=e};r.precedence={},[["or"],["xor"],["and"],["="],["?"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","!=","===","!==","<=>"],["<","<=",">",">="],["<<",">>"],["+","-","."],["*","/","%"],["!"],["instanceof"],["u-","u+","u~"],["cast","silent"],["**"]].forEach(function(t,e){t.forEach(function(t){r.precedence[t]=e+1})}),r.prototype.isRightAssociative=function(t){return"**"===t||"??"===t},r.prototype.swapLocations=function(t,e,i,s){if(this.withPositions){if(!(t&&t.loc&&e&&e.loc&&i&&i.loc))return;t.loc.start=e.loc.start,t.loc.end=i.loc.end,this.withSource&&(t.loc.source=s.lexer._input.substring(t.loc.start.offset,t.loc.end.offset))}},r.prototype.resolveLocations=function(t,e,i,s){if(this.withPositions){if(!(t&&t.loc&&e&&e.loc&&i&&i.loc))return;t.loc.start.offset>e.loc.start.offset&&(t.loc.start=e.loc.start),t.loc.end.offset<i.loc.end.offset&&(t.loc.end=i.loc.end),this.withSource&&(t.loc.source=s.lexer._input.substring(t.loc.start.offset,t.loc.end.offset))}},r.prototype.resolvePrecedence=function(t,e){var i,s,n;return"call"===t.kind?this.resolveLocations(t,t.what,t,e):"propertylookup"===t.kind||"nullsafepropertylookup"===t.kind||"staticlookup"===t.kind||"offsetlookup"===t.kind&&t.offset?this.resolveLocations(t,t.what,t.offset,e):"bin"===t.kind?t.right&&!t.right.parenthesizedExpression&&("bin"===t.right.kind?(s=r.precedence[t.type],n=r.precedence[t.right.type],s&&n&&n<=s&&(t.type!==t.right.type||!this.isRightAssociative(t.type))&&(i=t.right,t.right=t.right.left,this.swapLocations(t,t.left,t.right,e),i.left=this.resolvePrecedence(t,e),this.swapLocations(i,i.left,i.right,e),t=i)):"retif"===t.right.kind&&(s=r.precedence[t.type],n=r.precedence["?"],s&&n&&n<=s&&(i=t.right,t.right=t.right.test,this.swapLocations(t,t.left,t.right,e),i.test=this.resolvePrecedence(t,e),this.swapLocations(i,i.test,i.falseExpr,e),t=i))):"silent"!==t.kind&&"cast"!==t.kind||!t.expr||t.expr.parenthesizedExpression?"unary"===t.kind?t.what&&!t.what.parenthesizedExpression&&("bin"===t.what.kind?(s=r.precedence["u"+t.type]||r.precedence[t.type],n=r.precedence[t.what.type],s&&n&&n<s&&(i=t.what,t.what=t.what.left,this.swapLocations(t,t,t.what,e),i.left=this.resolvePrecedence(t,e),this.swapLocations(i,i.left,i.right,e),t=i)):"retif"===t.what.kind&&(i=t.what,t.what=t.what.test,this.swapLocations(t,t,t.what,e),i.test=this.resolvePrecedence(t,e),this.swapLocations(i,i.test,i.falseExpr,e),t=i)):"retif"===t.kind?t.falseExpr&&"retif"===t.falseExpr.kind&&!t.falseExpr.parenthesizedExpression&&(i=t.falseExpr,t.falseExpr=i.test,this.swapLocations(t,t.test,t.falseExpr,e),i.test=this.resolvePrecedence(t,e),this.swapLocations(i,i.test,i.falseExpr,e),t=i):"assign"===t.kind?t.right&&"bin"===t.right.kind&&!t.right.parenthesizedExpression&&(s=r.precedence["="],n=r.precedence[t.right.type],s&&n&&n<s&&(i=t.right,t.right=t.right.left,i.left=t,this.swapLocations(i,i.left,t.right,e),t=i)):"expressionstatement"===t.kind&&this.swapLocations(t,t.expression,t,e):"bin"===t.expr.kind?(i=t.expr,t.expr=t.expr.left,this.swapLocations(t,t,t.expr,e),i.left=this.resolvePrecedence(t,e),this.swapLocations(i,i.left,i.right,e),t=i):"retif"===t.expr.kind&&(i=t.expr,t.expr=t.expr.test,this.swapLocations(t,t,t.expr,e),i.test=this.resolvePrecedence(t,e),this.swapLocations(i,i.test,i.falseExpr,e),t=i),t},r.prototype.prepare=function(t,e,i){var r=null;(this.withPositions||this.withSource)&&(r=i.position());var h=this,o=function(){var a=Array.prototype.slice.call(arguments);if(a.push(e),h.withPositions||h.withSource){var _=r,l=new n(i.prev[0],i.prev[1],i.prev[2]);if(_.offset>l.offset){var c=_;_=l,l=c}var u=null;h.withSource&&(u=i.lexer._input.substring(_.offset,l.offset));var p=new s(u,_,l);a.push(p)}t||(t=a.shift());var f=h[t];if("function"!=typeof f)throw new Error('Undefined node "'+t+'"');var T=Object.create(f.prototype);return f.apply(T,a),o.instance=T,o.trailingComments&&(T.trailingComments=o.trailingComments),"function"==typeof o.postBuild&&o.postBuild(T),i.debug&&delete h.stack[o.stackUid],h.resolvePrecedence(T,i)};return i.debug&&(this.stack||(this.stack={},this.stackUid=1),this.stack[++this.stackUid]={position:r,stack:(new Error).stack.split("\n").slice(3,5)},o.stackUid=this.stackUid),o.setTrailingComments=function(t){o.instance?o.instance.setTrailingComments(t):o.trailingComments=t},o.destroy=function(t){e&&(t?t.leadingComments?t.leadingComments=e.concat(t.leadingComments):t.leadingComments=e:i._docIndex=i._docs.length-e.length),i.debug&&delete h.stack[o.stackUid]},o},r.prototype.checkNodes=function(){var t=[];for(var e in this.stack)Object.prototype.hasOwnProperty.call(this.stack,e)&&(this.stack[e].key=e,t.push(this.stack[e]));return this.stack={},t},[i(3160),i(1654),i(1240),i(3979),i(5553),i(2207),i(2916),i(4628),i(7509),i(2906),i(5723),i(7561),i(6473),i(9626),i(4782),i(8477),i(5045),i(900),i(4824),i(1020),i(9847),i(2790),i(1333),i(2112),i(9960),i(8533),i(5947),i(7786),i(5436),i(1136),i(380),i(6129),i(9723),i(5125),i(9632),i(4300),i(1515),i(3411),i(9781),i(839),i(8374),i(9754),i(4251),i(6553),i(8630),i(9786),i(9742),i(1234),i(6),i(8861),i(7860),i(9834),i(2724),i(6025),i(2687),i(7633),i(5514),i(7427),i(1122),i(7256),i(7416),i(8140),i(6258),i(9474),i(6827),i(4427),i(4065),i(4297),i(5859),i(6985),i(9302),i(8212),i(864),i(8268),i(7190),i(8519),i(4835),i(2056),i(4838),i(7869),i(1908),i(4863),i(170),i(1091),i(8276),i(1842),i(5739),i(1274),i(4352),i(9672),i(711),i(1231),i(1865),i(1102),i(7472),i(6133),i(1197),i(6649),i(1837),i(2277),i(8010),i(7579),i(3460),i(2702),i(514),i(5684),i(8019),i(7721),i(4369),i(40),i(4919),i(7676),i(2596),i(6744)].forEach(function(t){r.prototype[t.kind]=t}),t.exports=r},3160(t,e,i){var s=i(839),n="array";t.exports=s.extends(n,function(t,e,i,r){s.apply(this,[n,i,r]),this.items=e,this.shortForm=t})},1654(t,e,i){var s=i(839),n="arrowfunc";t.exports=s.extends(n,function(t,e,i,r,h,o,a,_){s.apply(this,[n,a,_]),this.arguments=t,this.byref=e,this.body=i,this.type=r,this.nullable=h,this.isStatic=o||!1})},1240(t,e,i){var s=i(839),n="assign";t.exports=s.extends(n,function(t,e,i,r,h){s.apply(this,[n,r,h]),this.left=t,this.right=e,this.operator=i})},3979(t,e,i){var s=i(839),n="assignref";t.exports=s.extends(n,function(t,e,i,r){s.apply(this,[n,i,r]),this.left=t,this.right=e})},2207(t,e,i){var s=i(4065),n="attrgroup";t.exports=s.extends(n,function(t,e,i){s.apply(this,[n,e,i]),this.attrs=t||[]})},5553(t,e,i){var s=i(4065),n="attribute";t.exports=s.extends(n,function(t,e,i,r){s.apply(this,[n,i,r]),this.name=t,this.args=e})},2916(t,e,i){var s=i(8268);t.exports=s.extends("bin",function(t,e,i,n,r){s.apply(this,["bin",n,r]),this.type=t,this.left=e,this.right=i})},4628(t,e,i){var s=i(9672),n="block";t.exports=s.extends(n,function(t,e,i,r){s.apply(this,[t||n,i,r]),this.children=e.filter(Boolean)})},7509(t,e,i){var s=i(5514),n="boolean";t.exports=s.extends(n,function(t,e,i,r){s.apply(this,[n,t,e,i,r])})},2906(t,e,i){var s=i(9672),n="break";t.exports=s.extends(n,function(t,e,i){s.apply(this,[n,e,i]),this.level=t})},5723(t,e,i){var s=i(839),n="byref";t.exports=s.extends(n,function(t,e,i){s.apply(this,[n,e,i]),this.what=t})},7561(t,e,i){var s=i(839),n="call";t.exports=s.extends(n,function(t,e,i,r){s.apply(this,[n,i,r]),this.what=t,this.arguments=e})},6473(t,e,i){var s=i(9672),n="case";t.exports=s.extends(n,function(t,e,i,r){s.apply(this,[n,i,r]),this.test=t,this.body=e})},9626(t,e,i){var s=i(8268),n="cast";t.exports=s.extends(n,function(t,e,i,r,h){s.apply(this,[n,r,h]),this.type=t,this.raw=e,this.expr=i})},4782(t,e,i){var s=i(9672),n="catch";t.exports=s.extends(n,function(t,e,i,r,h){s.apply(this,[n,r,h]),this.body=t,this.what=e,this.variable=i})},8477(t,e,i){var s=i(8533),n="class";t.exports=s.extends(n,function(t,e,i,r,h,o,a){s.apply(this,[n,t,o,a]),this.isAnonymous=!t,this.extends=e,this.implements=i,this.body=r,this.attrGroups=[],this.parseFlags(h)})},5045(t,e,i){var s=i(2112),n="classconstant",r=s.extends(n,function(t,e,i,r,h,o,a,_){s.apply(this,[t||n,e,a,_]),this.parseFlags(i),this.nullable=r,this.type=h,this.attrGroups=o});r.prototype.parseFlags=function(t){var e=t[0][0];-1===e?this.visibility="":null===e?this.visibility=null:0===e?this.visibility="public":1===e?this.visibility="protected":2===e&&(this.visibility="private"),this.final=2===t[2]},t.exports=r},900(t,e,i){var s=i(839),n="clone";t.exports=s.extends(n,function(t,e,i,r){s.apply(this,[n,i,r]),this.what=t,e&&(this.properties=e)})},4824(t,e,i){var s=i(839),n="closure";t.exports=s.extends(n,function(t,e,i,r,h,o,a,_){s.apply(this,[n,a,_]),this.uses=i,this.arguments=t,this.byref=e,this.type=r,this.nullable=h,this.isStatic=o||!1,this.body=null,this.attrGroups=[]})},1020(t,e,i){var s=i(4065);t.exports=s.extends("comment",function(t,e,i,n){s.apply(this,[t,i,n]),this.value=e})},9847(t,e,i){var s=i(1020),n="commentblock";t.exports=s.extends(n,function(t,e,i){s.apply(this,[n,t,e,i])})},2790(t,e,i){var s=i(1020),n="commentline";t.exports=s.extends(n,function(t,e,i){s.apply(this,[n,t,e,i])})},1333(t,e,i){var s=i(4065),n="constant";t.exports=s.extends(n,function(t,e,i,r){s.apply(this,[n,i,r]),this.name=t,this.value=e})},2112(t,e,i){var s=i(9672),n="constantstatement";t.exports=s.extends(n,function(t,e,i,r){s.apply(this,[t||n,i,r]),this.constants=e})},9960(t,e,i){var s=i(9672),n="continue";t.exports=s.extends(n,function(t,e,i){s.apply(this,[n,e,i]),this.level=t})},8533(t,e,i){function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var s,n,r,h,o=[],a=!0,_=!1;try{if(r=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;a=!1}else for(;!(a=(s=r.call(i)).done)&&(o.push(s.value),o.length!==e);a=!0);}catch(t){_=!0,n=t}finally{try{if(!a&&null!=i.return&&(h=i.return(),Object(h)!==h))return}finally{if(_)throw n}}return o}}(t,e)||function(t,e){if(t){if("string"==typeof t)return n(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=Array(e);i<e;i++)s[i]=t[i];return s}var r=i(9672),h="declaration",o=["public","protected","private"],a=r.extends(h,function(t,e,i,s){r.apply(this,[t||h,i,s]),this.name=e});a.prototype.parseFlags=function(t){if(this.isAbstract=1===t[2],this.isFinal=2===t[2],this.isReadonly=1===t[3],"class"!==this.kind){var e=s(t[0],2),i=e[0],n=e[1];this.visibility=-1===i?"":null===i?null:o[i],this.isStatic=1===t[1],this.visibilitySet=-1!==n?o[n]:null}},t.exports=a},5947(t,e,i){var s=i(4628),n="declare",r=s.extends(n,function(t,e,i,r,h){s.apply(this,[n,e,r,h]),this.directives=t,this.mode=i});r.MODE_SHORT="short",r.MODE_BLOCK="block",r.MODE_NONE="none",t.exports=r},7786(t,e,i){var s=i(4065),n="declaredirective";t.exports=s.extends(n,function(t,e,i,r){s.apply(this,[n,i,r]),this.key=t,this.value=e})},5436(t,e,i){var s=i(9672);t.exports=s.extends("do",function(t,e,i,n){s.apply(this,["do",i,n]),this.test=t,this.body=e})},1136(t,e,i){var s=i(9672),n="echo";t.exports=s.extends(n,function(t,e,i,r){s.apply(this,[n,i,r]),this.shortForm=e,this.expressions=t})},380(t,e,i){var s=i(839),n="empty";t.exports=s.extends(n,function(t,e,i){s.apply(this,[n,e,i]),this.expression=t})},6129(t,e,i){var s=i(5514),n="encapsed",r=s.extends(n,function(t,e,i,r,h){s.apply(this,[n,t,e,r,h]),this.type=i});r.TYPE_STRING="string",r.TYPE_SHELL="shell",r.TYPE_HEREDOC="heredoc",r.TYPE_OFFSET="offset",t.exports=r},9723(t,e,i){var s=i(839),n="encapsedpart";t.exports=s.extends(n,function(t,e,i,r,h){s.apply(this,[n,r,h]),this.expression=t,this.syntax=e,this.curly=i})},5125(t,e,i){var s=i(839),n="entry";t.exports=s.extends(n,function(t,e,i,r,h,o){s.apply(this,[n,h,o]),this.key=t,this.value=e,this.byRef=i,this.unpack=r})},9632(t,e,i){var s=i(8533),n="enum";t.exports=s.extends(n,function(t,e,i,r,h,o){s.apply(this,[n,t,h,o]),this.valueType=e,this.implements=i,this.body=r,this.attrGroups=[]})},4300(t,e,i){var s=i(4065),n="enumcase";t.exports=s.extends(n,function(t,e,i,r){s.apply(this,[n,i,r]),this.name=t,this.value=e})},1515(t,e,i){var s=i(4065),n="error";t.exports=s.extends(n,function(t,e,i,r,h,o){s.apply(this,[n,h,o]),this.message=t,this.token=e,this.line=i,this.expected=r})},3411(t,e,i){var s=i(839),n="eval";t.exports=s.extends(n,function(t,e,i){s.apply(this,[n,e,i]),this.source=t})},9781(t,e,i){var s=i(839),n="exit";t.exports=s.extends(n,function(t,e,i,r){s.apply(this,[n,i,r]),this.expression=t,this.useDie=e})},839(t,e,i){var s=i(4065),n="expression";t.exports=s.extends(n,function(t,e,i){s.apply(this,[t||n,e,i])})},8374(t,e,i){var s=i(9672),n="expressionstatement";t.exports=s.extends(n,function(t,e,i){s.apply(this,[n,e,i]),this.expression=t})},9754(t,e,i){var s=i(9672);t.exports=s.extends("for",function(t,e,i,n,r,h,o){s.apply(this,["for",h,o]),this.init=t,this.test=e,this.increment=i,this.shortForm=r,this.body=n})},4251(t,e,i){var s=i(9672),n="foreach";t.exports=s.extends(n,function(t,e,i,r,h,o,a){s.apply(this,[n,o,a]),this.source=t,this.key=e,this.value=i,this.shortForm=h,this.body=r})},6553(t,e,i){var s=i(8533),n="function";t.exports=s.extends(n,function(t,e,i,r,h,o,a){s.apply(this,[n,t,o,a]),this.arguments=e,this.byref=i,this.type=r,this.nullable=h,this.body=null,this.attrGroups=[]})},8630(t,e,i){var s=i(9672),n="global";t.exports=s.extends(n,function(t,e,i){s.apply(this,[n,e,i]),this.items=t})},9786(t,e,i){var s=i(9672),n="goto";t.exports=s.extends(n,function(t,e,i){s.apply(this,[n,e,i]),this.label=t})},9742(t,e,i){var s=i(9672),n="halt";t.exports=s.extends(n,function(t,e,i){s.apply(this,[n,e,i]),this.after=t})},1234(t,e,i){var s=i(4065),n="identifier",r=s.extends(n,function(t,e,i){s.apply(this,[n,e,i]),this.name=t});t.exports=r},6(t,e,i){var s=i(9672);t.exports=s.extends("if",function(t,e,i,n,r,h){s.apply(this,["if",r,h]),this.test=t,this.body=e,this.alternate=i,this.shortForm=n})},8861(t,e,i){var s=i(839),n="include";t.exports=s.extends(n,function(t,e,i,r,h){s.apply(this,[n,r,h]),this.once=t,this.require=e,this.target=i})},7860(t,e,i){var s=i(5514),n="inline";t.exports=s.extends(n,function(t,e,i,r){s.apply(this,[n,t,e,i,r])})},9834(t,e,i){var s=i(8533),n="interface";t.exports=s.extends(n,function(t,e,i,r,h,o){s.apply(this,[n,t,h,o]),this.extends=e,this.body=i,this.attrGroups=r})},2724(t,e,i){var s=i(8533),n="intersectiontype";t.exports=s.extends(n,function(t,e,i){s.apply(this,[n,null,e,i]),this.types=t})},6025(t,e,i){var s=i(839),n="isset";t.exports=s.extends(n,function(t,e,i){s.apply(this,[n,e,i]),this.variables=t})},2687(t,e,i){var s=i(9672),n="label";t.exports=s.extends(n,function(t,e,i){s.apply(this,[n,e,i]),this.name=t})},7633(t,e,i){var s=i(839),n="list";t.exports=s.extends(n,function(t,e,i,r){s.apply(this,[n,i,r]),this.items=t,this.shortForm=e})},5514(t,e,i){var s=i(839),n="literal";t.exports=s.extends(n,function(t,e,i,r,h){s.apply(this,[t||n,r,h]),this.value=e,i&&(this.raw=i)})},4778(t){t.exports=function(t,e,i){this.source=t,this.start=e,this.end=i}},7427(t,e,i){var s=i(839),n="lookup";t.exports=s.extends(n,function(t,e,i,r,h){s.apply(this,[t||n,r,h]),this.what=e,this.offset=i})},1122(t,e,i){var s=i(5514),n="magic";t.exports=s.extends(n,function(t,e,i,r){s.apply(this,[n,t,e,i,r])})},7256(t,e,i){var s=i(839),n="match";t.exports=s.extends(n,function(t,e,i,r){s.apply(this,[n,i,r]),this.cond=t,this.arms=e})},7416(t,e,i){var s=i(839),n="matcharm";t.exports=s.extends(n,function(t,e,i,r){s.apply(this,[n,i,r]),this.conds=t,this.body=e})},8140(t,e,i){var s=i(6553),n="method";t.exports=s.extends(n,function(){s.apply(this,arguments),this.kind=n})},6258(t,e,i){var s=i(8276),n="name",r=s.extends(n,function(t,e,i,r){s.apply(this,[n,i,r]),this.name=t.replace(/\\$/,""),this.resolution=e});r.UNQUALIFIED_NAME="uqn",r.QUALIFIED_NAME="qn",r.FULL_QUALIFIED_NAME="fqn",r.RELATIVE_NAME="rn",t.exports=r},6827(t,e,i){var s=i(839),n="namedargument";t.exports=s.extends(n,function(t,e,i,r){s.apply(this,[n,i,r]),this.name=t,this.value=e})},9474(t,e,i){var s=i(4628),n="namespace";t.exports=s.extends(n,function(t,e,i,r,h){s.apply(this,[n,e,r,h]),this.name=t,this.withBrackets=i||!1})},4427(t,e,i){var s=i(839);t.exports=s.extends("new",function(t,e,i,n){s.apply(this,["new",i,n]),this.what=t,this.arguments=e})},4065(t){var e=function(t,e,i){this.kind=t,e&&(this.leadingComments=e),i&&(this.loc=i)};e.prototype.setTrailingComments=function(t){this.trailingComments=t},e.prototype.destroy=function(t){if(!t)throw new Error("Node already initialized, you must swap with another node");return this.leadingComments&&(t.leadingComments?t.leadingComments=Array.concat(this.leadingComments,t.leadingComments):t.leadingComments=this.leadingComments),this.trailingComments&&(t.trailingComments?t.trailingComments=Array.concat(this.trailingComments,t.trailingComments):t.trailingComments=this.trailingComments),t},e.prototype.includeToken=function(t){return this.loc&&(this.loc.end&&(this.loc.end.line=t.lexer.yylloc.last_line,this.loc.end.column=t.lexer.yylloc.last_column,this.loc.end.offset=t.lexer.offset),t.ast.withSource&&(this.loc.source=t.lexer._input.substring(this.loc.start.offset,t.lexer.offset))),this},e.extends=function(t,e){return e.prototype=Object.create(this.prototype),e.extends=this.extends,e.prototype.constructor=e,e.kind=t,e},t.exports=e},4297(t,e,i){var s=i(4065),n="noop";t.exports=s.extends(n,function(t,e){s.apply(this,[n,t,e])})},5859(t,e,i){var s=i(5514),n="nowdoc";t.exports=s.extends(n,function(t,e,i,r,h){s.apply(this,[n,t,e,r,h]),this.label=i})},6985(t,e,i){var s=i(4065),n="nullkeyword";t.exports=s.extends(n,function(t,e,i){s.apply(this,[n,e,i]),this.raw=t})},9302(t,e,i){var s=i(7427),n="nullsafepropertylookup";t.exports=s.extends(n,function(t,e,i,r){s.apply(this,[n,t,e,i,r])})},8212(t,e,i){var s=i(5514),n="number";t.exports=s.extends(n,function(t,e,i,r){s.apply(this,[n,t,e,i,r])})},864(t,e,i){var s=i(7427),n="offsetlookup";t.exports=s.extends(n,function(t,e,i,r){s.apply(this,[n,t,e,i,r])})},8268(t,e,i){var s=i(839),n="operation";t.exports=s.extends(n,function(t,e,i){s.apply(this,[t||n,e,i])})},7190(t,e,i){var s=i(8533),n="parameter";t.exports=s.extends(n,function(t,e,i,r,h,o,a,_,l,c,u,p){s.apply(this,[n,t,u,p]),this.value=i,this.type=e,this.byref=r,this.variadic=h,this.readonly=o,this.nullable=a,this.flags=_||0,this.hooks=l||[],this.flagsSet=c||0,this.attrGroups=[]})},8519(t,e,i){var s=i(8276),n="parentreference",r=s.extends(n,function(t,e,i){s.apply(this,[n,e,i]),this.raw=t});t.exports=r},8822(t){t.exports=function(t,e,i){this.line=t,this.column=e,this.offset=i}},4835(t,e,i){var s=i(8268),n="post";t.exports=s.extends(n,function(t,e,i,r){s.apply(this,[n,i,r]),this.type=t,this.what=e})},2056(t,e,i){var s=i(8268);t.exports=s.extends("pre",function(t,e,i,n){s.apply(this,["pre",i,n]),this.type=t,this.what=e})},4838(t,e,i){var s=i(839),n="print";t.exports=s.extends(n,function(t,e,i){s.apply(this,[n,e,i]),this.expression=t})},7869(t,e,i){var s=i(4628),n="program";t.exports=s.extends(n,function(t,e,i,r,h,o){s.apply(this,[n,t,h,o]),this.errors=e,i&&(this.comments=i),r&&(this.tokens=r)})},1908(t,e,i){var s=i(9672),n="property";t.exports=s.extends(n,function(t,e,i,r,h,o,a,_,l){s.apply(this,[n,_,l]),this.name=t,this.value=e,this.readonly=i,this.nullable=r,this.type=h,this.attrGroups=o,this.hooks=a||[]})},4863(t,e,i){var s=i(4065),n="propertyhook";t.exports=s.extends(n,function(t,e,i,r,h,o,a,_){s.apply(this,[n,a,_]),this.name=t,this.isFinal=e,this.byref=i,this.parameter=r,this.body=h,this.attrGroups=o||[]})},170(t,e,i){var s=i(7427),n="propertylookup";t.exports=s.extends(n,function(t,e,i,r){s.apply(this,[n,t,e,i,r])})},1091(t,e,i){function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var s,n,r,h,o=[],a=!0,_=!1;try{if(r=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;a=!1}else for(;!(a=(s=r.call(i)).done)&&(o.push(s.value),o.length!==e);a=!0);}catch(t){_=!0,n=t}finally{try{if(!a&&null!=i.return&&(h=i.return(),Object(h)!==h))return}finally{if(_)throw n}}return o}}(t,e)||function(t,e){if(t){if("string"==typeof t)return n(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=Array(e);i<e;i++)s[i]=t[i];return s}var r=i(9672),h="propertystatement",o=["public","protected","private"],a=r.extends(h,function(t,e,i,s,n){r.apply(this,[h,s,n]),this.properties=e,this.parseFlags(i)});a.prototype.parseFlags=function(t){var e=s(t[0],2),i=e[0],n=e[1];this.visibility=-1===i?"":null===i?null:o[i],this.isStatic=1===t[1],this.isAbstract=1===t[2],this.isFinal=2===t[2],this.visibilitySet=-1!==n?o[n]:null},t.exports=a},8276(t,e,i){var s=i(4065),n="reference",r=s.extends(n,function(t,e,i){s.apply(this,[t||n,e,i])});t.exports=r},1842(t,e,i){var s=i(839),n="retif";t.exports=s.extends(n,function(t,e,i,r,h){s.apply(this,[n,r,h]),this.test=t,this.trueExpr=e,this.falseExpr=i})},5739(t,e,i){var s=i(9672),n="return";t.exports=s.extends(n,function(t,e,i){s.apply(this,[n,e,i]),this.expr=t})},1274(t,e,i){var s=i(8276),n="selfreference",r=s.extends(n,function(t,e,i){s.apply(this,[n,e,i]),this.raw=t});t.exports=r},4352(t,e,i){var s=i(839),n="silent";t.exports=s.extends(n,function(t,e,i){s.apply(this,[n,e,i]),this.expr=t})},9672(t,e,i){var s=i(4065),n="statement";t.exports=s.extends(n,function(t,e,i){s.apply(this,[t||n,e,i])})},711(t,e,i){var s=i(9672),n="static";t.exports=s.extends(n,function(t,e,i){s.apply(this,[n,e,i]),this.variables=t})},1865(t,e,i){var s=i(7427),n="staticlookup";t.exports=s.extends(n,function(t,e,i,r){s.apply(this,[n,t,e,i,r])})},1102(t,e,i){var s=i(8276),n="staticreference",r=s.extends(n,function(t,e,i){s.apply(this,[n,e,i]),this.raw=t});t.exports=r},1231(t,e,i){var s=i(4065),n="staticvariable";t.exports=s.extends(n,function(t,e,i,r){s.apply(this,[n,i,r]),this.variable=t,this.defaultValue=e})},7472(t,e,i){var s=i(5514),n="string";t.exports=s.extends(n,function(t,e,i,r,h,o){s.apply(this,[n,e,r,h,o]),this.unicode=i,this.isDoubleQuote=t})},6133(t,e,i){var s=i(9672),n="switch";t.exports=s.extends(n,function(t,e,i,r,h){s.apply(this,[n,r,h]),this.test=t,this.body=e,this.shortForm=i})},1197(t,e,i){var s=i(9672),n="throw";t.exports=s.extends(n,function(t,e,i){s.apply(this,[n,e,i]),this.what=t})},6649(t,e,i){var s=i(8533),n="trait";t.exports=s.extends(n,function(t,e,i,r){s.apply(this,[n,t,i,r]),this.body=e})},1837(t,e,i){var s=i(4065),n="traitalias";t.exports=s.extends(n,function(t,e,i,r,h,o){if(s.apply(this,[n,h,o]),this.trait=t,this.method=e,this.as=i,this.visibility="",r){var a=r[0][0];0===a?this.visibility="public":1===a?this.visibility="protected":2===a&&(this.visibility="private")}})},2277(t,e,i){var s=i(4065),n="traitprecedence";t.exports=s.extends(n,function(t,e,i,r,h){s.apply(this,[n,r,h]),this.trait=t,this.method=e,this.instead=i})},8010(t,e,i){var s=i(4065),n="traituse";t.exports=s.extends(n,function(t,e,i,r){s.apply(this,[n,i,r]),this.traits=t,this.adaptations=e})},7579(t,e,i){var s=i(9672);t.exports=s.extends("try",function(t,e,i,n,r){s.apply(this,["try",n,r]),this.body=t,this.catches=e,this.always=i})},3460(t,e,i){var s=i(8276),n="typereference",r=s.extends(n,function(t,e,i,r){s.apply(this,[n,i,r]),this.name=t,this.raw=e});r.types=["int","float","string","bool","object","array","callable","iterable","void","static","null","never","mixed","true","false"],t.exports=r},2702(t,e,i){var s=i(8268),n="unary";t.exports=s.extends(n,function(t,e,i,r){s.apply(this,[n,i,r]),this.type=t,this.what=e})},514(t,e,i){var s=i(8533),n="uniontype";t.exports=s.extends(n,function(t,e,i){s.apply(this,[n,null,e,i]),this.types=t})},5684(t,e,i){var s=i(9672),n="unset";t.exports=s.extends(n,function(t,e,i){s.apply(this,[n,e,i]),this.variables=t})},8019(t,e,i){var s=i(9672),n="usegroup";t.exports=s.extends(n,function(t,e,i,r,h){s.apply(this,[n,r,h]),this.name=t,this.type=e,this.items=i})},7721(t,e,i){var s=i(9672),n="useitem",r=s.extends(n,function(t,e,i,r,h){s.apply(this,[n,r,h]),this.name=t,this.alias=e,this.type=i});r.TYPE_CONST="const",r.TYPE_FUNCTION="function",t.exports=r},4369(t,e,i){var s=i(839),n="variable";t.exports=s.extends(n,function(t,e,i,r){s.apply(this,[n,i,r]),this.name=t,this.curly=e||!1})},40(t,e,i){var s=i(839),n="variadic";t.exports=s.extends(n,function(t,e,i){s.apply(this,[n,e,i]),this.what=t})},4919(t,e,i){var s=i(4065),n="variadicplaceholder";t.exports=s.extends(n,function(t,e){s.apply(this,[n,t,e])})},7676(t,e,i){var s=i(9672),n="while";t.exports=s.extends(n,function(t,e,i,r,h){s.apply(this,[n,r,h]),this.test=t,this.body=e,this.shortForm=i})},2596(t,e,i){var s=i(839),n="yield";t.exports=s.extends(n,function(t,e,i,r){s.apply(this,[n,i,r]),this.value=t,this.key=e})},6744(t,e,i){var s=i(839),n="yieldfrom";t.exports=s.extends(n,function(t,e,i){s.apply(this,[n,e,i]),this.value=t})},5362(t,e,i){function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}var n=i(9108),r=i(7259),h=i(1906),o=i(8938);function a(t,e){for(var i=Object.keys(t),n=i.length;n--;){var r=i[n];if("__proto__"!==r&&"constructor"!==r&&"prototype"!==r){var h=t[r];null===h?delete e[r]:"function"==typeof h?e[r]=h.bind(e):Array.isArray(h)?e[r]=Array.isArray(e[r])?e[r].concat(h):h:"object"===s(h)?e[r]="object"===s(e[r])?a(h,e[r]):h:e[r]=h}}return e}var _=function(t){if("function"==typeof this)return new this(t);if(this.tokens=h,this.lexer=new n(this),this.ast=new o,this.parser=new r(this.lexer,this.ast),t&&"object"===s(t)){if(t.parser&&(t.lexer||(t.lexer={}),t.parser.version)){if("string"==typeof t.parser.version){var e=t.parser.version.split(".");if(e=100*parseInt(e[0])+parseInt(e[1]),isNaN(e))throw new Error("Bad version number : "+t.parser.version);t.parser.version=e}else if("number"!=typeof t.parser.version)throw new Error("Expecting a number for version");if(t.parser.version<500||t.parser.version>900)throw new Error("Can only handle versions between 5.x to 8.x")}a(t,this),this.lexer.version=this.parser.version}},l=function(t){return"function"==typeof t.write?t.toString():t};_.create=function(t){return new _(t)},_.parseEval=function(t,e){return new _(e).parseEval(t)},_.prototype.parseEval=function(t){return this.lexer.mode_eval=!0,this.lexer.all_tokens=!1,t=l(t),this.parser.parse(t,"eval")},_.parseCode=function(t,e,i){return"object"!==s(e)||i||(i=e,e="unknown"),new _(i).parseCode(t,e)},_.prototype.parseCode=function(t,e){return this.lexer.mode_eval=!1,this.lexer.all_tokens=!1,t=l(t),this.parser.parse(t,e)},_.tokenGetAll=function(t,e){return new _(e).tokenGetAll(t)},_.prototype.tokenGetAll=function(t){this.lexer.mode_eval=!1,this.lexer.all_tokens=!0,t=l(t);var e=this.lexer.EOF,i=this.tokens.values;this.lexer.setInput(t);for(var s=this.lexer.lex()||e,n=[];s!=e;){var r=this.lexer.yytext;Object.prototype.hasOwnProperty.call(i,s)&&(r=[i[s],r,this.lexer.yylloc.first_line]),n.push(r),s=this.lexer.lex()||e}return n},t.exports=_,t.exports.tokens=h,t.exports.lexer=n,t.exports.AST=o,t.exports.parser=r,t.exports.combine=a,t.exports.Engine=_,t.exports.default=_},9108(t,e,i){function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}var n=function(t){this.engine=t,this.tok=this.engine.tokens.names,this.EOF=1,this.debug=!1,this.all_tokens=!0,this.comment_tokens=!1,this.mode_eval=!1,this.asp_tags=!1,this.short_tags=!1,this.version=803,this.yyprevcol=0,this.keywords={__class__:this.tok.T_CLASS_C,__trait__:this.tok.T_TRAIT_C,__function__:this.tok.T_FUNC_C,__method__:this.tok.T_METHOD_C,__line__:this.tok.T_LINE,__file__:this.tok.T_FILE,__dir__:this.tok.T_DIR,__namespace__:this.tok.T_NS_C,exit:this.tok.T_EXIT,die:this.tok.T_EXIT,function:this.tok.T_FUNCTION,const:this.tok.T_CONST,return:this.tok.T_RETURN,try:this.tok.T_TRY,catch:this.tok.T_CATCH,finally:this.tok.T_FINALLY,throw:this.tok.T_THROW,if:this.tok.T_IF,elseif:this.tok.T_ELSEIF,endif:this.tok.T_ENDIF,else:this.tok.T_ELSE,while:this.tok.T_WHILE,endwhile:this.tok.T_ENDWHILE,do:this.tok.T_DO,for:this.tok.T_FOR,endfor:this.tok.T_ENDFOR,foreach:this.tok.T_FOREACH,endforeach:this.tok.T_ENDFOREACH,declare:this.tok.T_DECLARE,enddeclare:this.tok.T_ENDDECLARE,instanceof:this.tok.T_INSTANCEOF,as:this.tok.T_AS,switch:this.tok.T_SWITCH,endswitch:this.tok.T_ENDSWITCH,case:this.tok.T_CASE,default:this.tok.T_DEFAULT,break:this.tok.T_BREAK,continue:this.tok.T_CONTINUE,goto:this.tok.T_GOTO,echo:this.tok.T_ECHO,print:this.tok.T_PRINT,class:this.tok.T_CLASS,interface:this.tok.T_INTERFACE,trait:this.tok.T_TRAIT,enum:this.tok.T_ENUM,extends:this.tok.T_EXTENDS,implements:this.tok.T_IMPLEMENTS,new:this.tok.T_NEW,clone:this.tok.T_CLONE,var:this.tok.T_VAR,eval:this.tok.T_EVAL,include:this.tok.T_INCLUDE,include_once:this.tok.T_INCLUDE_ONCE,require:this.tok.T_REQUIRE,require_once:this.tok.T_REQUIRE_ONCE,namespace:this.tok.T_NAMESPACE,use:this.tok.T_USE,insteadof:this.tok.T_INSTEADOF,global:this.tok.T_GLOBAL,isset:this.tok.T_ISSET,empty:this.tok.T_EMPTY,__halt_compiler:this.tok.T_HALT_COMPILER,static:this.tok.T_STATIC,abstract:this.tok.T_ABSTRACT,final:this.tok.T_FINAL,private:this.tok.T_PRIVATE,protected:this.tok.T_PROTECTED,public:this.tok.T_PUBLIC,unset:this.tok.T_UNSET,list:this.tok.T_LIST,array:this.tok.T_ARRAY,callable:this.tok.T_CALLABLE,or:this.tok.T_LOGICAL_OR,and:this.tok.T_LOGICAL_AND,xor:this.tok.T_LOGICAL_XOR,match:this.tok.T_MATCH,readonly:this.tok.T_READ_ONLY},this.castKeywords={int:this.tok.T_INT_CAST,integer:this.tok.T_INT_CAST,real:this.tok.T_DOUBLE_CAST,double:this.tok.T_DOUBLE_CAST,float:this.tok.T_DOUBLE_CAST,string:this.tok.T_STRING_CAST,binary:this.tok.T_STRING_CAST,array:this.tok.T_ARRAY_CAST,object:this.tok.T_OBJECT_CAST,bool:this.tok.T_BOOL_CAST,boolean:this.tok.T_BOOL_CAST,unset:this.tok.T_UNSET_CAST}};n.prototype.setInput=function(t){return this._input=t,this.size=t.length,this.yylineno=1,this.offset=0,this.yyprevcol=0,this.yytext="",this.yylloc={first_offset:0,first_line:1,first_column:0,prev_offset:0,prev_line:1,prev_column:0,last_line:1,last_column:0},this.tokens=[],this.version>703?this.keywords.fn=this.tok.T_FN:delete this.keywords.fn,this.done=this.offset>=this.size,!this.all_tokens&&this.mode_eval?(this.conditionStack=["INITIAL"],this.begin("ST_IN_SCRIPTING")):(this.conditionStack=[],this.begin("INITIAL")),this.heredoc_label={label:"",length:0,indentation:0,indentation_uses_spaces:!1,finished:!1,first_encaps_node:!1,toString:function(){this.label}},this},n.prototype.input=function(){var t=this._input[this.offset];return t?(this.yytext+=t,this.offset++,"\r"===t&&"\n"===this._input[this.offset]&&(this.yytext+="\n",this.offset++),"\n"===t||"\r"===t?(this.yylloc.last_line=++this.yylineno,this.yyprevcol=this.yylloc.last_column,this.yylloc.last_column=0):this.yylloc.last_column++,t):""},n.prototype.unput=function(t){if(1===t)this.offset--,"\n"===this._input[this.offset]&&"\r"===this._input[this.offset-1]&&(this.offset--,t++),"\r"===this._input[this.offset]||"\n"===this._input[this.offset]?(this.yylloc.last_line--,this.yylineno--,this.yylloc.last_column=this.yyprevcol):this.yylloc.last_column--,this.yytext=this.yytext.substring(0,this.yytext.length-t);else if(t>0)if(this.offset-=t,t<this.yytext.length){this.yytext=this.yytext.substring(0,this.yytext.length-t),this.yylloc.last_line=this.yylloc.first_line,this.yylloc.last_column=this.yyprevcol=this.yylloc.first_column;for(var e=0;e<this.yytext.length;e++){var i=this.yytext[e];"\r"===i?(i=this.yytext[++e],this.yyprevcol=this.yylloc.last_column,this.yylloc.last_line++,this.yylloc.last_column=0,"\n"!==i&&("\r"===i?this.yylloc.last_line++:this.yylloc.last_column++)):"\n"===i?(this.yyprevcol=this.yylloc.last_column,this.yylloc.last_line++,this.yylloc.last_column=0):this.yylloc.last_column++}this.yylineno=this.yylloc.last_line}else this.yytext="",this.yylloc.last_line=this.yylineno=this.yylloc.first_line,this.yylloc.last_column=this.yylloc.first_column;return this},n.prototype.tryMatch=function(t){return t===this.ahead(t.length)},n.prototype.tryMatchCaseless=function(t){return t===this.ahead(t.length).toLowerCase()},n.prototype.ahead=function(t){var e=this._input.substring(this.offset,this.offset+t);return"\r"===e[e.length-1]&&"\n"===this._input[this.offset+t+1]&&(e+="\n"),e},n.prototype.consume=function(t){for(var e=0;e<t;e++){var i=this._input[this.offset];if(!i)break;this.yytext+=i,this.offset++,"\r"===i&&"\n"===this._input[this.offset]&&(this.yytext+="\n",this.offset++,e++),"\n"===i||"\r"===i?(this.yylloc.last_line=++this.yylineno,this.yyprevcol=this.yylloc.last_column,this.yylloc.last_column=0):this.yylloc.last_column++}return this},n.prototype.getState=function(){return{yytext:this.yytext,offset:this.offset,yylineno:this.yylineno,yyprevcol:this.yyprevcol,yylloc:{first_offset:this.yylloc.first_offset,first_line:this.yylloc.first_line,first_column:this.yylloc.first_column,last_line:this.yylloc.last_line,last_column:this.yylloc.last_column},heredoc_label:this.heredoc_label}},n.prototype.setState=function(t){return this.yytext=t.yytext,this.offset=t.offset,this.yylineno=t.yylineno,this.yyprevcol=t.yyprevcol,this.yylloc=t.yylloc,t.heredoc_label&&(this.heredoc_label=t.heredoc_label),this},n.prototype.appendToken=function(t,e){return this.tokens.push([t,e]),this},n.prototype.lex=function(){this.yylloc.prev_offset=this.offset,this.yylloc.prev_line=this.yylloc.last_line,this.yylloc.prev_column=this.yylloc.last_column;var t=this.next()||this.lex();if(!this.all_tokens){for(;t===this.tok.T_WHITESPACE||!this.comment_tokens&&(t===this.tok.T_COMMENT||t===this.tok.T_DOC_COMMENT)||t===this.tok.T_OPEN_TAG;)t=this.next()||this.lex();if(t==this.tok.T_OPEN_TAG_WITH_ECHO)return this.tok.T_ECHO;if(t===this.tok.T_CLOSE_TAG)return";"}return this.yylloc.prev_offset||(this.yylloc.prev_offset=this.yylloc.first_offset,this.yylloc.prev_line=this.yylloc.first_line,this.yylloc.prev_column=this.yylloc.first_column),t},n.prototype.begin=function(t){if(this.conditionStack.push(t),this.curCondition=t,this.stateCb=this["match"+t],"function"!=typeof this.stateCb)throw new Error('Undefined condition state "'+t+'"');return this},n.prototype.popState=function(){var t=this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0];if(this.curCondition=this.conditionStack[this.conditionStack.length-1],this.stateCb=this["match"+this.curCondition],"function"!=typeof this.stateCb)throw new Error('Undefined condition state "'+this.curCondition+'"');return t},n.prototype.next=function(){var t;if(this._input||(this.done=!0),this.yylloc.first_offset=this.offset,this.yylloc.first_line=this.yylloc.last_line,this.yylloc.first_column=this.yylloc.last_column,this.yytext="",this.done)return this.yylloc.prev_offset=this.yylloc.first_offset,this.yylloc.prev_line=this.yylloc.first_line,this.yylloc.prev_column=this.yylloc.first_column,this.EOF;if(this.tokens.length>0?("object"===s((t=this.tokens.shift())[1])?this.setState(t[1]):this.consume(t[1]),t=t[0]):t=this.stateCb.apply(this,[]),this.offset>=this.size&&0===this.tokens.length&&(this.done=!0),this.debug){var e=t;e="number"==typeof e?this.engine.tokens.values[e]:'"'+e+'"';var i=new Error(e+"\tfrom "+this.yylloc.first_line+","+this.yylloc.first_column+"\t - to "+this.yylloc.last_line+","+this.yylloc.last_column+'\t"'+this.yytext+'"');console.error(i.stack)}return t},[i(9671),i(2429),i(3683),i(6545),i(3810),i(8510),i(4401),i(4349),i(8582)].forEach(function(t){for(var e in t)n.prototype[e]=t[e]}),t.exports=n},9671(t){t.exports={attributeIndex:0,attributeListDepth:{},matchST_ATTRIBUTE:function(){var t=this.input();if(this.is_WHITESPACE()){do{this.input()}while(this.is_WHITESPACE());return this.unput(1),null}switch(t){case"]":return 0===this.attributeListDepth[this.attributeIndex]?(delete this.attributeListDepth[this.attributeIndex],this.attributeIndex--,this.popState()):this.attributeListDepth[this.attributeIndex]--,"]";case"(":case")":case":":case"=":case";":case"|":case"&":case"^":case"-":case"+":case"*":case"%":case"~":case"<":case">":case"!":case".":case"{":case"}":case"$":return this.consume_TOKEN();case"[":return this.attributeListDepth[this.attributeIndex]++,"[";case",":return",";case'"':return this.ST_DOUBLE_QUOTES();case"'":return this.T_CONSTANT_ENCAPSED_STRING();case"/":return"/"===this._input[this.offset]?this.T_COMMENT():"*"===this._input[this.offset]?(this.input(),this.T_DOC_COMMENT()):this.consume_TOKEN()}if(this.is_LABEL_START()||"\\"===t){for(;this.offset<this.size;){var e=this.input();if(!this.is_LABEL()&&"\\"!==e){e&&this.unput(1);break}}return this.T_STRING()}if(this.is_NUM())return this.consume_NUM();throw new Error('Bad terminal sequence "'.concat(t,'" at line ').concat(this.yylineno," (offset ").concat(this.offset,")"))}}},2429(t){t.exports={T_COMMENT:function(){for(;this.offset<this.size;){var t=this.input();if("\n"===t||"\r"===t)return this.tok.T_COMMENT;if("?"===t&&!this.aspTagMode&&">"===this._input[this.offset])return this.unput(1),this.tok.T_COMMENT;if("%"===t&&this.aspTagMode&&">"===this._input[this.offset])return this.unput(1),this.tok.T_COMMENT}return this.tok.T_COMMENT},T_DOC_COMMENT:function(){var t=this.input(),e=this.tok.T_COMMENT;if("*"===t){if(t=this.input(),this.is_WHITESPACE()&&(e=this.tok.T_DOC_COMMENT),"/"===t)return e;this.unput(1)}for(;this.offset<this.size;)if("*"===(t=this.input())&&"/"===this._input[this.offset]){this.input();break}return e}}},3683(t){t.exports={nextINITIAL:function(){return this.conditionStack.length>1&&"INITIAL"===this.conditionStack[this.conditionStack.length-1]?this.popState():this.begin("ST_IN_SCRIPTING"),this},matchINITIAL:function(){for(;this.offset<this.size;){var t=this.input();if("<"==t)if("?"==(t=this.ahead(1))){if(this.tryMatch("?=")){this.unput(1).appendToken(this.tok.T_OPEN_TAG_WITH_ECHO,3).nextINITIAL();break}if(this.tryMatchCaseless("?php")&&(" "===(t=this._input[this.offset+4])||"\t"===t||"\n"===t||"\r"===t)){this.unput(1).appendToken(this.tok.T_OPEN_TAG,6).nextINITIAL();break}if(this.short_tags){this.unput(1).appendToken(this.tok.T_OPEN_TAG,2).nextINITIAL();break}}else if(this.asp_tags&&"%"==t){if(this.tryMatch("%=")){this.aspTagMode=!0,this.unput(1).appendToken(this.tok.T_OPEN_TAG_WITH_ECHO,3).nextINITIAL();break}this.aspTagMode=!0,this.unput(1).appendToken(this.tok.T_OPEN_TAG,2).nextINITIAL();break}}return this.yytext.length>0&&this.tok.T_INLINE_HTML}}},6545(t){var e=10,i="2147483648";"x64"==process.arch&&(e=19,i="9223372036854775808"),t.exports={consume_NUM:function(){var t=this.yytext[0],s="."===t;if("0"===t)if("x"===(t=this.input())||"X"===t){if("_"!==(t=this.input())&&this.is_HEX())return this.consume_HNUM();this.unput(t?2:1)}else if("b"===t||"B"===t){if("_"!==(t=this.input())&&"0"===t||"1"===t)return this.consume_BNUM();this.unput(t?2:1)}else if("o"===t||"O"===t){if("_"!==(t=this.input())&&this.is_OCTAL())return this.consume_ONUM();this.unput(t?2:1)}else this.is_NUM()||t&&this.unput(1);for(;this.offset<this.size;){var n=t;if("_"===(t=this.input())){if("_"===n){this.unput(2);break}if("."===n){this.unput(1);break}if("e"===n||"E"===n){this.unput(2);break}}else{if("."===t){if(s){this.unput(1);break}if("_"===n){this.unput(2);break}s=!0;continue}if("e"===t||"E"===t){if("_"===n){this.unput(1);break}var r=2;if("+"!==(t=this.input())&&"-"!==t||(r=3,t=this.input()),this.is_NUM_START())return this.consume_LNUM(),this.tok.T_DNUMBER;this.unput(t?r:r-1);break}}if(!this.is_NUM()){t&&this.unput(1);break}}return s?this.tok.T_DNUMBER:this.yytext.length<e-1||this.yytext.length<e||this.yytext.length==e&&this.yytext<i?this.tok.T_LNUMBER:this.tok.T_DNUMBER},consume_HNUM:function(){for(;this.offset<this.size;){var t=this.input();if(!this.is_HEX()){t&&this.unput(1);break}}return this.tok.T_LNUMBER},consume_LNUM:function(){for(;this.offset<this.size;){var t=this.input();if(!this.is_NUM()){t&&this.unput(1);break}}return this.tok.T_LNUMBER},consume_BNUM:function(){for(var t;this.offset<this.size;)if("0"!==(t=this.input())&&"1"!==t&&"_"!==t){t&&this.unput(1);break}return this.tok.T_LNUMBER},consume_ONUM:function(){for(;this.offset<this.size;){var t=this.input();if(!this.is_OCTAL()){t&&this.unput(1);break}}return this.tok.T_LNUMBER}}},3810(t){t.exports={matchST_LOOKING_FOR_PROPERTY:function(){var t=this.input();if("-"===t){if(">"===(t=this.input()))return this.tok.T_OBJECT_OPERATOR;t&&this.unput(1)}else{if(this.is_WHITESPACE())return this.tok.T_WHITESPACE;if(this.is_LABEL_START())return this.consume_LABEL(),this.popState(),this.tok.T_STRING}return this.popState(),t&&this.unput(1),!1},matchST_LOOKING_FOR_VARNAME:function(){var t=this.input();if(this.popState(),this.begin("ST_IN_SCRIPTING"),this.is_LABEL_START()){if(this.consume_LABEL(),"["===(t=this.input())||"}"===t)return this.unput(1),this.tok.T_STRING_VARNAME;this.unput(this.yytext.length)}else t&&this.unput(1);return!1},matchST_VAR_OFFSET:function(){var t=this.input();if(this.is_NUM_START())return this.consume_NUM(),this.tok.T_NUM_STRING;if("]"===t)return this.popState(),"]";if("$"===t){if(this.input(),this.is_LABEL_START())return this.consume_LABEL(),this.tok.T_VARIABLE;throw new Error("Unexpected terminal")}if(this.is_LABEL_START())return this.consume_LABEL(),this.tok.T_STRING;if(this.is_WHITESPACE()||"\\"===t||"'"===t||"#"===t)return this.tok.T_ENCAPSED_AND_WHITESPACE;if("["===t||"{"===t||"}"===t||'"'===t||"`"===t||this.is_TOKEN())return t;throw new Error("Unexpected terminal")}}},8510(t){t.exports={matchST_IN_SCRIPTING:function(){var t=this.input();switch(t){case" ":case"\t":case"\n":case"\r":case"\r\n":return this.T_WHITESPACE();case"#":return this.version>=800&&"["===this._input[this.offset]?(this.input(),this.attributeListDepth[++this.attributeIndex]=0,this.begin("ST_ATTRIBUTE"),this.tok.T_ATTRIBUTE):this.T_COMMENT();case"/":return"/"===this._input[this.offset]?this.T_COMMENT():"*"===this._input[this.offset]?(this.input(),this.T_DOC_COMMENT()):this.consume_TOKEN();case"'":return this.T_CONSTANT_ENCAPSED_STRING();case'"':return this.ST_DOUBLE_QUOTES();case"`":return this.begin("ST_BACKQUOTE"),"`";case"?":if(!this.aspTagMode&&this.tryMatch(">")){this.input();var e=this._input[this.offset];return"\n"!==e&&"\r"!==e||this.input(),this.conditionStack.length>1&&this.begin("INITIAL"),this.tok.T_CLOSE_TAG}return this.consume_TOKEN();case"%":return this.aspTagMode&&">"===this._input[this.offset]?(this.input(),"\n"!==(t=this._input[this.offset])&&"\r"!==t||this.input(),this.aspTagMode=!1,this.conditionStack.length>1&&this.begin("INITIAL"),this.tok.T_CLOSE_TAG):this.consume_TOKEN();case"{":return this.begin("ST_IN_SCRIPTING"),"{";case"}":return this.conditionStack.length>2&&this.popState(),"}";default:if("."===t){if(t=this.input(),this.is_NUM_START())return this.consume_NUM();t&&this.unput(1)}if(this.is_NUM_START())return this.consume_NUM();if(this.is_LABEL_START())return this.consume_LABEL().T_STRING();if(this.is_TOKEN())return this.consume_TOKEN()}throw new Error('Bad terminal sequence "'+t+'" at line '+this.yylineno+" (offset "+this.offset+")")},T_WHITESPACE:function(){for(;this.offset<this.size;){var t=this.input();if(" "!==t&&"\t"!==t&&"\n"!==t&&"\r"!==t){t&&this.unput(1);break}}return this.tok.T_WHITESPACE}}},4401(t){var e=["\n","\r"],i=["\n","\r",";"],s=i.concat(["\t"," ",",","]",")","/","=","!","."]);t.exports={T_CONSTANT_ENCAPSED_STRING:function(){for(var t;this.offset<this.size;)if("\\"==(t=this.input()))this.input();else if("'"==t)break;return this.tok.T_CONSTANT_ENCAPSED_STRING},is_HEREDOC:function(){var t=this.offset;if("<"===this._input[this.offset-1]&&"<"===this._input[this.offset]&&"<"===this._input[this.offset+1]){if(this.offset+=3,this.is_TABSPACE())for(;this.offset<this.size&&(this.offset++,this.is_TABSPACE()););var i=this._input[this.offset-1];if("'"===i||'"'===i?this.offset++:i=null,this.is_LABEL_START()){for(var s=this.offset-1;this.offset<this.size&&(this.offset++,this.is_LABEL()););var n=this._input.substring(s,this.offset-1);if((!i||i===this._input[this.offset-1])&&(i&&this.offset++,e.includes(this._input[this.offset-1])))return this.heredoc_label.label=n,this.heredoc_label.length=n.length,this.heredoc_label.finished=!1,s=this.offset-t,this.offset=t,this.consume(s),"'"===i?this.begin("ST_NOWDOC"):this.begin("ST_HEREDOC"),this.prematch_ENDOFDOC(),this.tok.T_START_HEREDOC}}return this.offset=t,!1},ST_DOUBLE_QUOTES:function(){for(var t;this.offset<this.size;)if("\\"==(t=this.input()))this.input();else{if('"'==t)break;if("$"==t){if("{"==(t=this.input())||this.is_LABEL_START()){this.unput(2);break}t&&this.unput(1)}else if("{"==t){if("$"==(t=this.input())){this.unput(2);break}t&&this.unput(1)}}if('"'==t)return this.tok.T_CONSTANT_ENCAPSED_STRING;var e=1;return"b"!==this.yytext[0]&&"B"!==this.yytext[0]||(e=2),this.yytext.length>2&&this.appendToken(this.tok.T_ENCAPSED_AND_WHITESPACE,this.yytext.length-e),this.unput(this.yytext.length-e),this.begin("ST_DOUBLE_QUOTES"),this.yytext},isDOC_MATCH:function(t,n){var r=this._input[t-2];if(!e.includes(r))return!1;var h=!1,o=!1,a=0,_=this._input[t-1];if(this.version>=703){for(;"\t"===_||" "===_;)" "===_?h=!0:"\t"===_&&(o=!0),_=this._input[t+a],a++;if(t+=a,e.includes(this._input[t-1]))return!1}if(this._input.substring(t-1,t-1+this.heredoc_label.length)===this.heredoc_label.label){var l=this._input[t-1+this.heredoc_label.length];if((this.version>=703?s:i).includes(l)){if(n){if(this.consume(a),h&&o)throw new Error("Parse error: mixing spaces and tabs in ending marker at line "+this.yylineno+" (offset "+this.offset+")")}else this.heredoc_label.indentation=a,this.heredoc_label.indentation_uses_spaces=h,this.heredoc_label.first_encaps_node=!0;return!0}}return!1},prematch_ENDOFDOC:function(){this.heredoc_label.indentation_uses_spaces=!1,this.heredoc_label.indentation=0,this.heredoc_label.first_encaps_node=!0;for(var t=this.offset+1;t<this._input.length;){if(this.isDOC_MATCH(t,!1))return;if(!e.includes(this._input[t-1]))for(;!e.includes(this._input[t++])&&t<this._input.length;);t++}},matchST_NOWDOC:function(){if(this.isDOC_MATCH(this.offset,!0))return this.consume(this.heredoc_label.length),this.popState(),this.tok.T_END_HEREDOC;for(var t=this._input[this.offset-1];this.offset<this.size;)if(e.includes(t)){if(t=this.input(),this.isDOC_MATCH(this.offset,!0))return this.unput(1).popState(),this.appendToken(this.tok.T_END_HEREDOC,this.heredoc_label.length),this.tok.T_ENCAPSED_AND_WHITESPACE}else t=this.input();return this.tok.T_ENCAPSED_AND_WHITESPACE},matchST_HEREDOC:function(){var t=this.input();if(this.isDOC_MATCH(this.offset,!0))return this.consume(this.heredoc_label.length-1),this.popState(),this.tok.T_END_HEREDOC;for(;this.offset<this.size;)if("\\"===t&&(t=this.input(),e.includes(t)||(t=this.input())),e.includes(t)){if(t=this.input(),this.isDOC_MATCH(this.offset,!0))return this.unput(1).popState(),this.appendToken(this.tok.T_END_HEREDOC,this.heredoc_label.length),this.tok.T_ENCAPSED_AND_WHITESPACE}else if("$"===t){if("{"===(t=this.input()))return this.begin("ST_LOOKING_FOR_VARNAME"),this.yytext.length>2?(this.appendToken(this.tok.T_DOLLAR_OPEN_CURLY_BRACES,2),this.unput(2),this.tok.T_ENCAPSED_AND_WHITESPACE):this.tok.T_DOLLAR_OPEN_CURLY_BRACES;if(this.is_LABEL_START()){var i=this.offset,s=this.consume_VARIABLE();return this.yytext.length>this.offset-i+2?(this.appendToken(s,this.offset-i+2),this.unput(this.offset-i+2),this.tok.T_ENCAPSED_AND_WHITESPACE):s}}else if("{"===t){if("$"===(t=this.input()))return this.begin("ST_IN_SCRIPTING"),this.yytext.length>2?(this.appendToken(this.tok.T_CURLY_OPEN,1),this.unput(2),this.tok.T_ENCAPSED_AND_WHITESPACE):(this.unput(1),this.tok.T_CURLY_OPEN)}else t=this.input();return this.tok.T_ENCAPSED_AND_WHITESPACE},consume_VARIABLE:function(){this.consume_LABEL();var t=this.input();if("["==t)return this.unput(1),this.begin("ST_VAR_OFFSET"),this.tok.T_VARIABLE;if("-"===t){if(">"===this.input())return this.input(),this.is_LABEL_START()&&this.begin("ST_LOOKING_FOR_PROPERTY"),this.unput(3),this.tok.T_VARIABLE;this.unput(2)}else t&&this.unput(1);return this.tok.T_VARIABLE},matchST_BACKQUOTE:function(){var t=this.input();if("$"===t){if("{"===(t=this.input()))return this.begin("ST_LOOKING_FOR_VARNAME"),this.tok.T_DOLLAR_OPEN_CURLY_BRACES;if(this.is_LABEL_START())return this.consume_VARIABLE()}else if("{"===t){if("$"===this._input[this.offset])return this.begin("ST_IN_SCRIPTING"),this.tok.T_CURLY_OPEN}else if("`"===t)return this.popState(),"`";for(;this.offset<this.size;){if("\\"===t)this.input();else{if("`"===t){this.unput(1),this.popState(),this.appendToken("`",1);break}if("$"===t){if("{"===(t=this.input()))return this.begin("ST_LOOKING_FOR_VARNAME"),this.yytext.length>2?(this.appendToken(this.tok.T_DOLLAR_OPEN_CURLY_BRACES,2),this.unput(2),this.tok.T_ENCAPSED_AND_WHITESPACE):this.tok.T_DOLLAR_OPEN_CURLY_BRACES;if(this.is_LABEL_START()){var e=this.offset,i=this.consume_VARIABLE();return this.yytext.length>this.offset-e+2?(this.appendToken(i,th