text: (this.webpackJsonpfrontend=this.webpackJsonpfrontend||[]).push([[0],[function(t,e,i){"use strict";i.r(e),i.d(e,"Primitiva",(function(){return l})),i.d(e,"TipoPrim",(function(){return n}));var n,r=i(6),s=i(7),o=i(13),a=i(3),c=i(20),l=function(){function t(e,i,n,s,o){Object(r.a)(this,t),this.linea=n,this.columna=s,this.tipo=i,this.valor=e,this.isXQuery=o}return Object(s.a)(t,[{key:"getTipo",value:function(t){return this.tipo}},{key:"getValorInicial",value:function(t){return this.valor}},{key:"getValor",value:function(t){var e=this;if(this.tipo===n.IDENTIFIER)return t.existeSimbolo(this.valor)?t.obtenerSimbolo(this.valor):null;if(this.tipo===n.ATRIBUTO){if(this.isXQuery){for(var i=new o.a("Temporal",null,null),r=0;r<t.tsimbolos.length;r++){var s=t.tsimbolos[r].valor;if(s.getTipo()===a.a.ATRIBUTO&&s.getNombre()===this.valor)return i.agregarSimbolo(s.getNombre(),s),i}return null}this.tipo=n.FUNCION;var l=new o.a("Temporal",null,null);return t.padre.tsimbolos.forEach((function(i){var n=i.valor;n.getTipo()===a.a.ETIQUETA&&n.getNombre()===t.nombre&&n.valor.tsimbolos.forEach((function(t){var i=t.valor;i.getTipo()!==a.a.ATRIBUTO||"*"!==e.valor&&e.valor!==i.getNombre()||l.agregarSimbolo(n.getNombre(),n)}))})),l}if(this.tipo!==n.FUNCION){if(this.tipo==n.CONSULTA){this.tipo=n.FUNCION;var h=new c.Consulta(this.valor,this.linea,this.columna),u=new o.a("Temporal",null,null);return t.padre.tsimbolos.forEach((function(e){var i=e.valor;i.getNombre()===t.nombre&&(h.ejecutar(i.valor).length>0&&u.agregarSimbolo(i.getNombre(),i))})),u}return this.valor}switch(this.valor.toLowerCase()){case"last()":var f=t.padre,g=0;return f.tsimbolos.forEach((function(e){var i=e.valor;i.getTipo()===a.a.ETIQUETA&&i.getNombre()===t.nombre&&g++})),this.tipo=n.INTEGER,g>0?g:0;default:return this.valor}}}]),t}();!function(t){t[t.INTEGER=0]="INTEGER",t[t.DOUBLE=1]="DOUBLE",t[t.CADENA=2]="CADENA",t[t.IDENTIFIER=3]="IDENTIFIER",t[t.ATRIBUTO=4]="ATRIBUTO",t[t.DOT=5]="DOT",t[t.FUNCION=6]="FUNCION",t[t.BOOLEAN=7]="BOOLEAN",t[t.CONSULTA=8]="CONSULTA",t[t.ERROR=9]="ERROR",t[t.FUNCIONXQUERY=10]="FUNCIONXQUERY",t[t.XQUERYIDENTIFIER=11]="XQUERYIDENTIFIER",t[t.DECIMAL=12]="DECIMAL",t[t.ANY=13]="ANY"}(n||(n={}))},,,function(t,e,i){"use strict";var n;i.d(e,"a",(function(){return n})),function(t){t[t.STRING=0]="STRING",t[t.ETIQUETA=1]="ETIQUETA",t[t.ATRIBUTO=2]="ATRIBUTO",t[t.ETIQUETA_UNIQUE=3]="ETIQUETA_UNIQUE",t[t.XQ_VAR=4]="XQ_VAR",t[t.XQ_FUNC=5]="XQ_FUNC",t[t.XQ_NUMB=6]="XQ_NUMB"}(n||(n={}))},,,,,function(t,e,i){"use strict";i.r(e);var n=i(6),r=i(7),s=function(){function t(e,i,r,s){Object(n.a)(this,t),this.tipoError=e,this.descripcion=i,this.linea=r,this.columna=s}return Object(r.a)(t,[{key:"getTipo",value:function(){return this.tipoError}},{key:"getDescripcion",value:function(){return this.descripcion}},{key:"getLinea",value:function(){return this.linea}},{key:"getColumna",value:function(){return this.columna}},{key:"getMensaje",value:function(){return"Error "+this.tipoError+": "+this.descripcion+" en la linea "+this.linea+" y columna "+this.columna}}]),t}(),o=new(function(){function t(){return Object(n.a)(this,t),this.listaError=new Array,"object"===typeof t._instance?t._instance:(t._instance=this,this)}return Object(r.a)(t,[{key:"agregarError",value:function(t,e,i,n){this.listaError.push(new s(t,e,i,n))}},{key:"getSize",value:function(){return this.listaError.length}},{key:"getError",value:function(t){return this.listaError[t]}},{key:"limpiar",value:function(){this.listaError=[]}}],[{key:"getInstance",value:function(){return this._instance}}]),t}());e.default=o},,function(t,e,i){"use strict";i.r(e),i.d(e,"Nodo",(function(){return a})),i.d(e,"TipoNodo",(function(){return n})),i.d(e,"TipoAxis",(function(){return r}));var n,r,s=i(6),o=i(7),a=function(){function t(e,i,n,r,o,a,c){Object(s.a)(this,t),this.linea=n,this.columna=r,this.tipo=i,this.nombre=e,this.predicado=o,this.fromRoot=!0,this.tipoAxis=a,this.NodeTest=c}return Object(o.a)(t,[{key:"ToString",value:function(){return void 0!=this.predicado?this.nombre+" "+this.predicado:this.nombre}},{key:"isFromRoot",value:function(){return this.fromRoot}},{key:"setFromRoot",value:function(t){this.fromRoot=t}},{key:"getValorInicial",value:function(){return this.nombre}},{key:"getValor",value:function(){return void 0!=this.NodeTest?this.NodeTest.getNombre():this.nombre}},{key:"getNombre",value:function(){return this.nombre}},{key:"getPredicado",value:function(){return void 0!=this.NodeTest?this.NodeTest.getPredicado():this.predicado}},{key:"getTipo",value:function(){return this.tipo}},{key:"isAxis",value:function(){return void 0!=this.tipoAxis}},{key:"getTipoAxis",value:function(){return this.tipoAxis}}]),t}();!function(t){t[t.IDENTIFIER=0]="IDENTIFIER",t[t.ATRIBUTO=1]="ATRIBUTO",t[t.DOT=2]="DOT",t[t.DOTDOT=3]="DOTDOT",t[t.ASTERISCO=4]="ASTERISCO",t[t.AXIS=5]="AXIS",t[t.FUNCION=6]="FUNCION",t[t.NODOERROR=7]="NODOERROR"}(n||(n={})),function(t){t[t.ANCESTOR=0]="ANCESTOR",t[t.ANCESTORORSELF=1]="ANCESTORORSELF",t[t.ATTRIBUTE=2]="ATTRIBUTE",t[t.CHILD=3]="CHILD",t[t.DESCENDANT=4]="DESCENDANT",t[t.DESCENDANTORSELF=5]="DESCENDANTORSELF",t[t.FOLLOWING=6]="FOLLOWING",t[t.FOLLOWINGSIBLING=7]="FOLLOWINGSIBLING",t[t.PARENT=8]="PARENT",t[t.PRECEDING=9]="PRECEDING",t[t.PRECEDINGSIBLING=10]="PRECEDINGSIBLING",t[t.SELF=11]="SELF",t[t.NAMESPACE=12]="NAMESPACE"}(r||(r={}))},,,function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i(6),r=i(7),s=i(8),o=i(3),a=function(){function t(e,i,r){Object(n.a)(this,t),this.tsimbolos=new Array,this.nombre=e,this.padre=i,this.global=null===r?this:r}return Object(r.a)(t,[{key:"agregarSimbolo",value:function(t,e){this.tsimbolos.push({nombre:t,valor:e})}},{key:"sobreEscribirSimbolo",value:function(t,e){for(var i=this;null!=i;i=i.padre)for(var n=0;n<i.tsimbolos.length;n++)if(i.tsimbolos[n].nombre.toString().toLowerCase()===t.toString().toLowerCase()){var r={nombre:t,valor:e};return i.tsimbolos[n]=r,!0}return s.default.agregarError("semantico","No existe el simbolo "+t,-1,-1),!1}},{key:"getStringTipo",value:function(t){switch(t){case o.a.STRING:return"Cadena";case o.a.ETIQUETA:return"Etiqueta";case o.a.ATRIBUTO:return"Atributo"}return""}},{key:"obtenerSimbolo",value:function(t){for(var e=this;null!=e;e=e.padre)for(var i=0;i<e.tsimbolos.length;i++)if(e.tsimbolos[i].nombre.toString().toLowerCase()===t.toString().toLowerCase())return e.tsimbolos[i].valor;return s.default.agregarError("semantico","No existe el simbolo "+t,-1,-1),null}},{key:"setSimbolo",value:function(t,e){for(var i=this;null!=i;i=i.padre)for(var n=0;n<i.tsimbolos.length;n++){var r=i.tsimbolos[n];if(r.nombre.toString().toLowerCase()===t.toString().toLowerCase())return void(r.valor=e)}}},{key:"existeSimbolo",value:function(t){for(var e=0;e<this.tsimbolos.length;e++)if(this.tsimbolos[e].nombre.toString().toLowerCase()===t.toString().toLowerCase())return!0;return!1}},{key:"existeMetodo",value:function(t){for(var e=this.global.tsimbolos,i=0;i<e.length;i++){var n=e[i];if(n.nombre.toString().toLowerCase()===t.toString().toLowerCase()&&void 0!==n.valor.getParametros())return!0}return!1}},{key:"obtenerMetodo",value:function(t){for(var e=this.global.tsimbolos,i=0;i<e.length;i++){var n=e[i];if(n.nombre.toString().toLowerCase()===t.toString().toLowerCase()&&void 0!==n.valor.getParametros())return n.valor}return null}}]),t}()},,,function(t,e,i){"use strict";i.r(e),i.d(e,"Primitiva3D",(function(){return o})),i.d(e,"TipoPrim3D",(function(){return n}));var n,r=i(6),s=i(7),o=function(){function t(e,i,n,s,o,a){Object(r.a)(this,t),this.fila=o,this.columna=a,this.valor=n,this.tipo=e,this.tipoPrimitiva=i,this.codigo3D=s}return Object(s.a)(t,[{key:"getCodigo3D",value:function(){return this.valor}},{key:"getValor",value:function(){return this.valor}},{key:"getTipoPrim3D",value:function(){return this.tipoPrimitiva}},{key:"getTipoExpresion",value:function(){return this.tipo}}]),t}();!function(t){t[t.IDENTIFIER=0]="IDENTIFIER",t[t.DOUBLE=1]="DOUBLE",t[t.INTEGER=2]="INTEGER"}(n||(n={}))},function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i(6),r=i(7),s=function(){function t(e,i,r,s,o,a,c){Object(n.a)(this,t),this.tipo=e,this.nombre=i,this.valor=r,this.linea=s,this.columna=o,this.parametros=a,this.instrucciones=c,this.posicion=0}return Object(r.a)(t,[{key:"getTipo",value:function(){return this.tipo}},{key:"getNombre",value:function(){return this.nombre}},{key:"getValor",value:function(){return this.valor}},{key:"getLinea",value:function(){return this.linea}},{key:"getColumna",value:function(){return this.columna}},{key:"getPosicion",value:function(){return this.posicion}},{key:"setPosicion",value:function(t){this.posicion=t}},{key:"setParametros",value:function(t){this.parametros=t}},{key:"getParametros",value:function(){return this.parametros}},{key:"setInstrucciones",value:function(t){this.instrucciones=t}},{key:"getInstrucciones",value:function(){return this.instrucciones}}]),t}()},,function(t,e,i){"use strict";i.r(e),i.d(e,"Operacion3D",(function(){return a})),i.d(e,"TipoOperacion3D",(function(){return n}));var n,r=i(6),s=i(7),o=i(16),a=function(){function t(e,i,s,a,c,l,h){Object(r.a)(this,t),this.tipo=e,this.codigo3D=c,this.fila=l,this.tipoOperacion=i,this.columna=h,this.op_der=a,this.op_izq=s,this.tipoOperacion==n.MENOSUNARIO&&this.op_izq instanceof o.Primitiva3D&&(this.op_izq.valor=-1*this.op_izq.getValor(),this.op_izq.codigo3D="-"+this.op_izq.valor)}return Object(s.a)(t,[{key:"getCodigo3D",value:function(){return this.codigo3D=this.op_izq.getCodigo3D(),null!=this.op_der&&(this.codigo3D+=" "+this.getOperandoString()+" ",this.codigo3D+=this.op_der.getCodigo3D()),this.codigo3D}},{key:"getOperandoString",value:function(){switch(this.tipoOperacion){case n.SUMA:return"+";case n.RESTA:return"-";case n.MULTIPLICACION:return"*";case n.DIVISION:return"/";case n.MOD:return"%";case n.MAYORQUE:return">";case n.MENORQUE:return"<";case n.MAYORIGUALQUE:return">=";case n.MENORIGUALQUE:return"<=";case n.IGUALIGUAL:return"==";case n.DIFERENTEQUE:return"!=";case n.MENOSUNARIO:return"-";default:return"?"}}},{key:"getTipoOperacion",value:function(){return this.tipoOperacion}},{key:"getTipoExpresion",value:function(){return this.tipo}},{key:"getValorRelacional",value:function(){switch(this.tipoOperacion){case n.MAYORQUE:if(this.op_der)return this.op_izq.getValor()>this.op_der.getValor();case n.MAYORIGUALQUE:if(this.op_der)return this.op_izq.getValor()>=this.op_der.getValor();case n.IGUALIGUAL:if(this.op_der)return this.op_izq.getValor()==this.op_der.getValor();case n.DIFERENTEQUE:if(this.op_der)return this.op_izq.getValor()!=this.op_der.getValor();case n.MENORQUE:if(this.op_der)return this.op_izq.getValor()<this.op_der.getValor();case n.MENORIGUALQUE:if(this.op_der)return this.op_izq.getValor()<=this.op_der.getValor();default:return console.log("Tipo condicion Incorrecta: ",this.tipoOperacion),!1}}},{key:"negarCondicion",value:function(){switch(this.tipoOperacion){case n.MAYORQUE:return n.MENORQUE;case n.MAYORIGUALQUE:return n.MENORIGUALQUE;case n.IGUALIGUAL:return n.DIFERENTEQUE;case n.DIFERENTEQUE:return n.IGUALIGUAL;case n.MENORQUE:return n.MAYORQUE;case n.MENORIGUALQUE:return n.MAYORIGUALQUE;default:return console.log("Tipo condicion Incorrecta: ",this.tipoOperacion),null}}}]),t}();!function(t){t[t.SUMA=0]="SUMA",t[t.RESTA=1]="RESTA",t[t.MULTIPLICACION=2]="MULTIPLICACION",t[t.DIVISION=3]="DIVISION",t[t.MOD=4]="MOD",t[t.MAYORQUE=5]="MAYORQUE",t[t.MENORQUE=6]="MENORQUE",t[t.IGUALIGUAL=7]="IGUALIGUAL",t[t.DIFERENTEQUE=8]="DIFERENTEQUE",t[t.MAYORIGUALQUE=9]="MAYORIGUALQUE",t[t.MENORIGUALQUE=10]="MENORIGUALQUE",t[t.MENOSUNARIO=11]="MENOSUNARIO"}(n||(n={}))},function(t,e,i){"use strict";i.r(e),i.d(e,"Consulta",(function(){return l}));var n=i(9),r=i(6),s=i(7),o=i(3),a=i(10),c=i(0),l=function(){function t(e,i,n){Object(r.a)(this,t),this.listaNodos=e,this.linea=i,this.columna=n}return Object(s.a)(t,[{key:"ToString",value:function(){var t="";return this.listaNodos.forEach((function(e){e.isFromRoot()?t+="/"+e.getNombre():t+="//"+e.getNombre(),e.isAxis()&&(t+="::"+e.getValor()),void 0!=e.getPredicado()&&(t+="["+e.getPredicado()+"]")})),t}},{key:"ejecutar",value:function(t){var e=this.obtenerSalida(0,t,null,!1),i=Object(n.a)(e,2),r=i[0];i[1];return r}},{key:"simbolosToString",value:function(t){var e=this,i="";return t.forEach((function(t){if("string"!==typeof t)switch(t.getTipo()){case o.a.ATRIBUTO:i+=t.getNombre()+"="+t.getValor()+"\n";break;case o.a.ETIQUETA:void 0!==t.valor?i+=e.escribirConsultaObjeto(t,0):i+=e.escribirEtiquetaPadre(t);break;case o.a.STRING:i+=e.concatHijoTexto(t,0);break;default:i+="---\x3e "+t.getTipo()}else i+=t+"\n"})),i}},{key:"obtenerSalida",value:function(t,e,i,r){var s=this,c=[],l=this.listaNodos[t];switch(l.getTipo()){case a.TipoNodo.IDENTIFIER:for(var h=0;h<e.tsimbolos.length;h++){var u=e.tsimbolos[h].valor;if(u.getNombre()===l.getNombre()){var f=l.getPredicado();if(void 0!=f){var g,m=this.obtenerConsultaPredicado(f,t,e,i,r,l.getValor(),!1),d=Object(n.a)(m,2);g=d[0],r=d[1],c=c.concat(g);break}if(t+1<this.listaNodos.length){var p,b=this.obtenerSalida(t+1,u.valor,u,r),E=Object(n.a)(b,2);p=E[0],r=E[1],c=c.concat(p)}else c.push(u)}else if(!l.isFromRoot()&&u.getTipo()===o.a.ETIQUETA){var T,I=this.obtenerSalida(t,u.valor,u,r),y=Object(n.a)(I,2);T=y[0],r=y[1],c=c.concat(T)}if(r)break}break;case a.TipoNodo.ATRIBUTO:"*"===l.getNombre()?l.isFromRoot()?e.tsimbolos.forEach((function(t){var e=t.valor;e.getTipo()===o.a.ATRIBUTO&&c.push(e.valor)})):e.tsimbolos.forEach((function(t){var e=t.valor;e.getTipo()===o.a.ATRIBUTO||e.getTipo()===o.a.STRING?c.push(e.valor):e.getTipo()===o.a.ETIQUETA&&(c=c.concat(s.getConsultaAtributos(e,0,"*")))})):l.isFromRoot()?e.tsimbolos.forEach((function(t){var e=t.valor;e.getTipo()===o.a.ATRIBUTO&&l.getNombre()===e.getNombre()&&c.push(e.valor)})):e.tsimbolos.forEach((function(t){var e=t.valor;e.getTipo()===o.a.ATRIBUTO?l.getNombre()===e.getNombre()&&c.push(e.valor):e.getTipo()===o.a.STRING?c.push(e.valor):e.getTipo()===o.a.ETIQUETA&&(c=c.concat(s.getConsultaAtributos(e,0,l.getNombre())))}));break;case a.TipoNodo.DOTDOT:if(t+1<this.listaNodos.length){var v,A=this.obtenerSalida(t+1,e.padre,e.padre.valor,r),_=Object(n.a)(A,2);v=_[0],r=_[1],c=c.concat(v)}else{var O=e.padre;c.push(O)}break;case a.TipoNodo.DOT:if(t+1<this.listaNodos.length){var N,k=this.obtenerSalida(t+1,e,i,r),S=Object(n.a)(k,2);N=S[0],r=S[1],c=c.concat(N)}else(i.getTipo()===o.a.STRING||i.getTipo()===o.a.ETIQUETA)&&c.push(i);break;case a.TipoNodo.ASTERISCO:t+1<this.listaNodos.length?e.tsimbolos.forEach((function(e){if(e.valor.getTipo()===o.a.ETIQUETA){var i,a=s.obtenerSalida(t+1,e.valor.valor,e.valor,r),l=Object(n.a)(a,2);i=l[0],r=l[1],c=c.concat(i)}})):e.tsimbolos.forEach((function(t){var e=t.valor;(e.getTipo()===o.a.STRING||e.getTipo()===o.a.ETIQUETA)&&c.push(e)}));break;case a.TipoNodo.FUNCION:switch(l.getValor().toLocaleLowerCase()){case"text()":e.tsimbolos.forEach((function(e){var a=e.valor;if(a.getTipo()===o.a.STRING&&c.push(a),!l.isFromRoot()&&a.getTipo()==o.a.ETIQUETA){var h,u=s.obtenerSalida(t,a.valor,i,r),f=Object(n.a)(u,2);h=f[0],r=f[1],c=c.concat(h)}}));break;case"node()":e.tsimbolos.forEach((function(t){var e=t.valor;(e.getTipo()===o.a.ETIQUETA||e.getTipo()==o.a.STRING)&&c.push(e)}))}break;case a.TipoNodo.AXIS:!function(){switch(l.getTipoAxis()){case a.TipoAxis.ANCESTOR:var h=l.getValor();if("*"!=h)for(var u=e.padre;null!=u;){if(u.nombre===h){if(t+1<s.listaNodos.length){var f,g=s.obtenerSalida(t+1,u,i,r),m=Object(n.a)(g,2);f=m[0],r=m[1],c=c.concat(f)}else c.push(u);break}u=u.padre}else{for(var d=e.padre;null!=d.padre;)d=d.padre;if(t+1<s.listaNodos.length){var p,b=s.obtenerSalida(t+1,d,i,r),E=Object(n.a)(b,2);p=E[0],r=E[1],c=c.concat(p)}else c.push(d)}break;case a.TipoAxis.ANCESTORORSELF:if("*"!=l.getValor()){var T=e.padre;for(l.isFromRoot()||e.tsimbolos.forEach((function(e){var a=e.valor;if(a.getTipo()===o.a.ETIQUETA){var l,h=s.obtenerSalida(t,a.valor,i,r),u=Object(n.a)(h,2);l=u[0],r=u[1],c=c.concat(l)}}));null!=T;){if(T.nombre===l.getValor()){var I=l.getPredicado();if(void 0!=I){var y,v=s.obtenerConsultaPredicado(I,t,e,i,r,l.getValor(),!0),A=Object(n.a)(v,2);y=A[0],r=A[1],c=c.concat(y);break}if(t+1<s.listaNodos.length){var _,O=s.obtenerSalida(t+1,T,i,r),N=Object(n.a)(O,2);_=N[0],r=N[1],c=c.concat(_)}else c.push(T);c.push(T);break}T=T.padre}}else{for(var k=e.padre;null!=k.padre;)k=k.padre;if(t+1<s.listaNodos.length){var S,R=s.obtenerSalida(t+1,k,i,r),w=Object(n.a)(R,2);S=w[0],r=w[1],c=c.concat(S)}else c.push(k);c.push(k)}break;case a.TipoAxis.ATTRIBUTE:"*"===l.getValor()?e.tsimbolos.forEach((function(h){var u=h.valor;if(u.getTipo()===o.a.ATRIBUTO)if(t+1<s.listaNodos.length)if(s.listaNodos[t+1].getTipo()==a.TipoNodo.AXIS){var f,g=s.obtenerSalida(t+1,e,i,r),m=Object(n.a)(g,2);f=m[0],r=m[1],c=c.concat(f)}else c=[];else c.push(u.valor);if(!l.isFromRoot()&&u.getTipo()==o.a.ETIQUETA){var d,p=s.obtenerSalida(t,u.valor,i,r),b=Object(n.a)(p,2);d=b[0],r=b[1],c=c.concat(d)}})):e.tsimbolos.forEach((function(h){var u=h.valor;if(u.getTipo()===o.a.ATRIBUTO&&u.getNombre()===l.getValor())if(t+1<s.listaNodos.length)if(s.listaNodos[t+1].getTipo()==a.TipoNodo.AXIS){var f,g=s.obtenerSalida(t+1,e,i,r),m=Object(n.a)(g,2);f=m[0],r=m[1],c=c.concat(f)}else c=[];else c.push(u.valor);if(!l.isFromRoot()&&u.getTipo()==o.a.ETIQUETA){var d,p=s.obtenerSalida(t,u.valor,i,r),b=Object(n.a)(p,2);d=b[0],r=b[1],c=c.concat(d)}}));break;case a.TipoAxis.CHILD:"*"===l.getValor()?e.tsimbolos.forEach((function(a){var h=a.valor,u=l.getPredicado();if(void 0!=u){var f,g=s.obtenerConsultaPredicado(u,t,e,i,r,l.getValor(),!1),m=Object(n.a)(g,2);f=m[0],r=m[1],c=c.concat(f)}else if(t+1<s.listaNodos.length){if(h.getTipo()===o.a.ETIQUETA){var d,p=s.obtenerSalida(t+1,h.valor,i,r),b=Object(n.a)(p,2);d=b[0],r=b[1],c=c.concat(d)}}else h.getTipo()===o.a.ETIQUETA&&c.push(h);if(!l.isFromRoot()&&h.getTipo()==o.a.ETIQUETA){var E,T=s.obtenerSalida(t,h.valor,i,r),I=Object(n.a)(T,2);E=I[0],r=I[1],c=c.concat(E)}})):e.tsimbolos.forEach((function(a){var h=a.valor,u=l.getPredicado();if(h.getNombre()===l.getValor())if(void 0!=u){var f,g=s.obtenerConsultaPredicado(u,t,e,i,r,l.getValor(),!1),m=Object(n.a)(g,2);f=m[0],r=m[1],c=c.concat(f)}else if(t+1<s.listaNodos.length){if(h.getTipo()==o.a.ETIQUETA){var d,p=s.obtenerSalida(t+1,h.valor,i,r),b=Object(n.a)(p,2);d=b[0],r=b[1],c=c.concat(d)}}else h.getTipo()==o.a.ETIQUETA&&c.push(h);if(!l.isFromRoot()&&h.getTipo()==o.a.ETIQUETA){var E,T=s.obtenerSalida(t,h.valor,i,r),I=Object(n.a)(T,2);E=I[0],r=I[1],c=c.concat(E)}})),r=!0;break;case a.TipoAxis.DESCENDANT:"*"===l.getValor()?e.tsimbolos.forEach((function(e){var a=e.valor;if(t+1<s.listaNodos.length){if(a.getTipo()===o.a.ETIQUETA){var l,h,u=s.obtenerSalida(t+1,a.valor,i,r),f=Object(n.a)(u,2);l=f[0],r=f[1],c=c.concat(l);var g=s.obtenerHijosRecursivos(t+1,a.valor,i,!1,r),m=Object(n.a)(g,2);h=m[0],r=m[1],c=c.concat(h)}}else if(a.getTipo()===o.a.ETIQUETA){var d,p=s.obtenerHijosRecursivos(t+1,a.valor,i,!0,r),b=Object(n.a)(p,2);d=b[0],r=b[1],c=c.concat(d)}})):e.tsimbolos.forEach((function(e){var a=e.valor;if(a.getNombre()===l.getValor())if(t+1<s.listaNodos.length){if(a.getTipo()==o.a.ETIQUETA){var h,u=s.obtenerSalida(t+1,a.valor,i,r),f=Object(n.a)(u,2);h=f[0],r=f[1],c=c.concat(h)}}else a.getTipo()==o.a.ETIQUETA&&c.push(a);else if(a.getTipo()==o.a.ETIQUETA){var g,m=s.obtenerSalida(t,a.valor,i,r),d=Object(n.a)(m,2);g=d[0],r=d[1],c=c.concat(g)}}));break;case a.TipoAxis.DESCENDANTORSELF:"*"===l.getValor()?e.tsimbolos.forEach((function(e){var a=e.valor;if(t+1<s.listaNodos.length){if(a.getTipo()===o.a.ETIQUETA){var l,h=s.obtenerSalida(t+1,a.valor,i,r),u=Object(n.a)(h,2);l=u[0],r=u[1],c=c.concat(l);var f=s.obtenerHijosRecursivos(t+1,a.valor,i,!1,r),g=Object(n.a)(f,2);l=g[0],r=g[1],c=c.concat(l)}}else if(a.getTipo()===o.a.ETIQUETA){var m;c.push(a);var d=s.obtenerHijosRecursivos(t+1,a.valor,i,!0,r),p=Object(n.a)(d,2);m=p[0],r=p[1],c=c.concat(m)}})):e.tsimbolos.forEach((function(e){var a=e.valor;if(a.getNombre()===l.getValor())if(t+1<s.listaNodos.length){if(a.getTipo()==o.a.ETIQUETA){var h,u=s.obtenerSalida(t+1,a.valor,i,r),f=Object(n.a)(u,2);h=f[0],r=f[1],c=c.concat(h)}}else a.getTipo()==o.a.ETIQUETA&&c.push(a);else if(a.getTipo()==o.a.ETIQUETA&&a.getTipo()==o.a.ETIQUETA){var g,m=s.obtenerSalida(t,a.valor,i,r),d=Object(n.a)(m,2);g=d[0],r=d[1],c=c.concat(g)}}));break;case a.TipoAxis.FOLLOWING:for(var D=e.padre,P=!1,U=e.nombre;null!=D;)D.tsimbolos.forEach((function(e){var a=e.valor;if(P&&("*"===l.getValor()||l.getValor()===a.getNombre()))if(t+1<s.listaNodos.length){var h,u=s.obtenerSalida(t+1,a.valor,i,r),f=Object(n.a)(u,2);h=f[0],r=f[1],c=c.concat(h)}else a.getTipo()===o.a.ETIQUETA&&c.push(a);if(P||a.getNombre()!==U||(P=!0),!l.isFromRoot()&&a.getTipo()==o.a.ETIQUETA){var g,m=s.obtenerSalida(t,a.valor,i,r),d=Object(n.a)(m,2);g=d[0],r=d[1],c=c.concat(g)}})),U=D.nombre,D=D.padre,P=!1;break;case a.TipoAxis.FOLLOWINGSIBLING:var L=e.padre;if("*"===l.getValor()){var C=!1,x=e.nombre;L.tsimbolos.forEach((function(e){var a=e.valor;if(C)if(t+1<s.listaNodos.length){var h,u=s.obtenerSalida(t+1,a.valor,i,r),f=Object(n.a)(u,2);h=f[0],r=f[1],c=c.concat(h)}else a.getTipo()===o.a.ETIQUETA&&c.push(a);if(C||a.getNombre()!==x||(C=!0),!l.isFromRoot()&&a.getTipo()==o.a.ETIQUETA){var g,m=s.obtenerSalida(t,a.valor,i,r),d=Object(n.a)(m,2);g=d[0],r=d[1],c=c.concat(g)}}))}else{var $=!1,X=e.nombre;L.tsimbolos.forEach((function(e){var a=e.valor;if($&&a.getNombre()===l.getValor())if(t+1<s.listaNodos.length){var h,u=s.obtenerSalida(t+1,a.valor,i,r),f=Object(n.a)(u,2);h=f[0],r=f[1],c=c.concat(h)}else a.getTipo()===o.a.ETIQUETA&&c.push(a);if($||a.getNombre()!==X||($=!0),!l.isFromRoot()&&a.getTipo()==o.a.ETIQUETA){var g,m=s.obtenerSalida(t,a.valor,i,r),d=Object(n.a)(m,2);g=d[0],r=d[1],c=c.concat(g)}}))}break;case a.TipoAxis.NAMESPACE:c=[];case a.TipoAxis.PARENT:if("*"===l.getValor()||l.getValor()===e.padre.nombre)if(t+1<s.listaNodos.length){var j,F=s.obtenerSalida(t+1,e.padre,i,r),M=Object(n.a)(F,2);j=M[0],r=M[1],c=c.concat(j)}else c.push(e.padre),e.padre.tsimbolos.forEach((function(e){var a=e.valor;if(!l.isFromRoot()&&a.getTipo()==o.a.ETIQUETA){var h,u=s.obtenerSalida(t,a.valor,i,r),f=Object(n.a)(u,2);h=f[0],r=f[1],c=c.concat(h)}}));break;case a.TipoAxis.PRECEDING||a.TipoAxis.PRECEDINGSIBLING:var G=e.padre,Q=!0;G.tsimbolos.forEach((function(a){var h=a.valor;if(Q&&e.nombre===h.getNombre()&&(Q=!1),Q&&h.getTipo()==o.a.ETIQUETA&&("*"===l.getValor()||l.getValor()===h.getNombre()))if(t+1<s.listaNodos.length){var u,f=s.obtenerSalida(t+1,h.valor,i,r),g=Object(n.a)(f,2);u=g[0],r=g[1],c=c.concat(u)}else c.push(h)}));break;case a.TipoAxis.SELF:if("*"===l.getValor()||l.getValor()===i.getNombre())if(t+1<s.listaNodos.length){var B,V=s.obtenerSalida(t+1,e,i,r),H=Object(n.a)(V,2);B=H[0],r=H[1],c=c.concat(B)}else c.push(i)}}();break;case a.TipoNodo.NODOERROR:if(t+1<this.listaNodos.length){var R=this.obtenerSalida(t+1,e,i,r),w=Object(n.a)(R,2);c=w[0],r=w[1]}else c=[]}return[c,r]}},{key:"encontrarEntorno",value:function(t,e){for(var i=0;i<t.tsimbolos.length;i++){var n=t.tsimbolos[i].valor;if(n.getTipo()==o.a.ETIQUETA&&n.getNombre()==e)return n.valor}return null}},{key:"obtenerConsultaPredicado",value:function(t,e,i,r,s,a,l){var h,u=this,f=[],g=this.listaNodos[e];if(null==(h=l?i.padre:this.encontrarEntorno(i,a)))return[f,s];i=h,console.log("BUSCANDO EN: ",h);var m=t.getValor(i);console.log("PREDICADO: ",t),console.log("PREDVALUE:",m);var d=t.getTipo();if(null===m||void 0===m)return[f,s];switch(d){case c.TipoPrim.INTEGER:if(i=i.padre,m<1)return[f,s];var p=1;i.tsimbolos.forEach((function(t){var i=t.valor;if(i.getTipo()===o.a.ETIQUETA&&i.getNombre()===g.getValor()){if(p==m)if(e+1<u.listaNodos.length){var a,c=u.obtenerSalida(e+1,i.valor,r,s),l=Object(n.a)(c,2);a=l[0],s=l[1],f=f.concat(a)}else f.push(i);p++}}));break;case c.TipoPrim.DOUBLE:case c.TipoPrim.BOOLEAN:break;case c.TipoPrim.FUNCION:m.tsimbolos.forEach((function(t){var i=t.valor;if(e+1<u.listaNodos.length){var o,a=u.obtenerSalida(e+1,i.valor,r,s),c=Object(n.a)(a,2);o=c[0],s=c[1],f=f.concat(o),l&&(s=!0)}else f.push(i)}))}return[f,s]}},{key:"addTabs",value:function(t){for(var e="",i=0;i<t;i++)e+="    ";return e}},{key:"buscarHaciaAdentro",value:function(t,e,i,r,s){var a=this,c=[];return t.valor.tsimbolos.forEach((function(t){var l=t.valor;if(l.getTipo()===o.a.ETIQUETA){if(l.getNombre()==e)if(i+1<a.listaNodos.length){var h,u=a.obtenerSalida(i+1,l.valor,r,s),f=Object(n.a)(u,2);h=f[0],s=f[1],c=c.concat(h)}else c.push(l);var g,m=a.buscarHaciaAdentro(l,e,i,r,s),d=Object(n.a)(m,2);g=d[0],s=d[1],c=c.concat(g)}})),[c,s]}},{key:"obtenerHijosRecursivos",value:function(t,e,i,r,s){var a=this,c=[];return e.tsimbolos.forEach((function(e){var l=e.valor;if(l.getTipo()===o.a.ETIQUETA)if(r){var h;c.push(l);var u=a.obtenerHijosRecursivos(t,l.valor,i,r,s),f=Object(n.a)(u,2);h=f[0],s=f[1],c=c.concat(h)}else{var g,m=a.obtenerSalida(t,l.valor,i,s),d=Object(n.a)(m,2);g=d[0],s=d[1],c=c.concat(g)}})),[c,s]}},{key:"escribirEtiquetaPadre",value:function(t){var e=this,i="< "+t.nombre,n=!0;return t.tsimbolos.forEach((function(t){var r=t.valor;r.getTipo()==o.a.ATRIBUTO&&(i+=r.getNombre()+"="+r.getValor()+" "),r.getTipo()==o.a.ETIQUETA&&(n&&(i+=">",n=!1),i+=e.escribirConsultaObjeto(t.valor,0))})),i}},{key:"getConsultaAtributos",value:function(t,e,i){var n=this,r=[];return t.valor.tsimbolos.forEach((function(t){var s=t.valor;s.getTipo()===o.a.ATRIBUTO&&("*"===i||i===s.getNombre())&&r.push(s),s.getTipo()===o.a.ETIQUETA&&(r=r.concat(n.getConsultaAtributos(s,e,i)))})),r}},{key:"escribirConsultaObjeto",value:function(t,e){var i=this,n=this.addTabs(e)+"";n+="<"+t.nombre;var r=t.valor.tsimbolos;return r.forEach((function(t){var e=t.valor;e.getTipo()===o.a.ATRIBUTO&&(n+=" "+e.nombre+"="+e.valor)})),t.getTipo()===o.a.ETIQUETA_UNIQUE?n+="/>\n":n+=">\n",r.forEach((function(t){var r=t.valor;r.getTipo()===o.a.STRING?n+=i.concatHijoTexto(r,e+1):r.getTipo()===o.a.ETIQUETA&&(n+=i.escribirConsultaObjeto(r,e+1))})),t.getTipo()!=o.a.ETIQUETA_UNIQUE&&(n+=this.addTabs(e)+"</"+t.nombre+">\n"),n}},{key:"concatHijoTexto",value:function(t,e){var i=this.addTabs(e)+"";return(i+=t.getValor()+" ")+"\n"}}]),t}()},,,,,,function(t,e,i){"use strict";var n;i.r(e),i.d(e,"TipoInstruccion3D",(function(){return n})),function(t){t[t.ASIGNORMAL=0]="ASIGNORMAL",t[t.ASIGARREGLO=1]="ASIGARREGLO",t[t.ARREGLOASIG=2]="ARREGLOASIG",t[t.ARREGLOASIGARREGLO=3]="ARREGLOASIGARREGLO",t[t.ETIQUETA=4]="ETIQUETA",t[t.GOTO=5]="GOTO",t[t.LLAMADA=6]="LLAMADA",t[t.PRINTF=7]="PRINTF",t[t.IF=8]="IF",t[t.RETURN=9]="RETURN",t[t.REPRESENTACION=10]="REPRESENTACION"}(n||(n={}))},,,,,,,function(t,e,i){"use strict";i.r(e),i.d(e,"Asignacion3D",(function(){return o}));var n=i(6),r=i(7),s=i(26),o=function(){function t(e,i,r,s,o,a){Object(n.a)(this,t),this.fila=o,this.columna=a,this.tipo=e,this.codigo3D=s,this.expresion=r,this.identificador=i,this.eliminada=!1,this.optimizada=!1}return Object(r.a)(t,[{key:"isOptimizada",value:function(){return this.optimizada}},{key:"setOptimizada",value:function(t){this.optimizada=t}},{key:"isEliminada",value:function(){return this.eliminada}},{key:"setEliminada",value:function(t){this.eliminada=t}},{key:"getTipoInstruccion",value:function(){return this.tipo}},{key:"setCodigo3D",value:function(t){this.codigo3D=t}},{key:"getCodigo3D",value:function(){return this.tipo===s.TipoInstruccion3D.ASIGNORMAL&&(this.codigo3D=this.identificador+" = "+this.expresion.getCodigo3D()+";"),this.codigo3D}}]),t}()},,function(t,e,i){"use strict";var n;i.r(e),i.d(e,"TipoExpresion3D",(function(){return n})),function(t){t[t.PRIMITIVA=0]="PRIMITIVA",t[t.OPERACION=1]="OPERACION"}(n||(n={}))},,,function(t,e,i){"use strict";i.r(e),i.d(e,"Operacion",(function(){return h})),i.d(e,"TipoOperacion",(function(){return n}));var n,r=i(6),s=i(7),o=i(13),a=i(3),c=i(0),l=i(8),h=function(){function t(e,i,n,s,o,a){Object(r.a)(this,t),this.linea=s,this.isXQuery=a,this.columna=o,this.op_izq=i,this.op_der=n,this.operacion=e}return Object(s.a)(t,[{key:"getTipo",value:function(t){return this.tipo}},{key:"getValorInicial",value:function(t){return""}},{key:"getValor",value:function(t){if(this.operacion===n.PAR){var e=this.op_izq.getValor(t);return this.tipo=this.op_izq.getTipo(t),e}var i,r,s,h,u,f,g;if(this.op_izq.getTipo(t)!=c.TipoPrim.ATRIBUTO&&this.op_izq.getTipo(t)!=c.TipoPrim.CONSULTA&&(h=this.op_izq.getValor(t)),u=this.op_izq.getTipo(t),this.op_der.getTipo(t)!=c.TipoPrim.ATRIBUTO&&(f=this.op_der.getValor(t)),g=this.op_der.getTipo(t),null===h){if(this.op_izq.getValorInicial(t)!==t.nombre)return;h=t.obtenerSimbolo(this.op_izq.getValorInicial(t))}switch(this.operacion){case n.SUMA:if(this.tipo=this.tipoDominanteAritmetica(u,g),this.tipo===c.TipoPrim.ERROR)return s;switch(u){case c.TipoPrim.INTEGER:switch(g){case c.TipoPrim.INTEGER:return s=(i=parseInt(h))+(r=parseInt(f));case c.TipoPrim.DOUBLE:return s=(i=parseFloat(h))+(r=parseFloat(f));default:return l.default.agregarError("semantico","No se puede sumar "+this.getStringTipo(u)+" con "+this.getStringTipo(g),this.linea,this.columna),"Error semantico: No se puede sumar "+this.getStringTipo(u)+" con "+this.getStringTipo(g)+" en la linea "+this.linea+" y columna "+this.columna}case c.TipoPrim.DOUBLE:switch(g){case c.TipoPrim.INTEGER:case c.TipoPrim.DOUBLE:return s=(i=parseFloat(h))+(r=parseFloat(f));default:return l.default.agregarError("semantico","No se puede sumar "+this.getStringTipo(u)+" con "+this.getStringTipo(g),this.linea,this.columna),"Error semantico: No se puede sumar "+this.getStringTipo(u)+" con "+this.getStringTipo(g)+" en la linea "+this.linea+" y columna "+this.columna}default:return l.default.agregarError("semantico","No se puede sumar "+this.getStringTipo(u)+" con "+this.getStringTipo(g),this.linea,this.columna),"Error semantico: No se puede sumar "+this.getStringTipo(u)+" con "+this.getStringTipo(g)+" en la linea "+this.linea+" y columna "+this.columna}case n.RESTA:if(this.tipo=this.tipoDominanteAritmetica(u,g),this.tipo===c.TipoPrim.ERROR)return s;switch(u){case c.TipoPrim.INTEGER:switch(g){case c.TipoPrim.INTEGER:return s=(i=parseInt(h))-(r=parseInt(f));case c.TipoPrim.DOUBLE:return s=(i=parseFloat(h))-(r=parseFloat(f));default:return l.default.agregarError("semantico","No se puede restar "+this.getStringTipo(u)+" con "+this.getStringTipo(g),this.linea,this.columna),"Error semantico: No se puede restar "+this.getStringTipo(u)+" con "+this.getStringTipo(g)+" en la linea "+this.linea+" y columna "+this.columna}case c.TipoPrim.DOUBLE:switch(g){case c.TipoPrim.INTEGER:case c.TipoPrim.DOUBLE:return s=(i=parseFloat(h))-(r=parseFloat(f));default:return l.default.agregarError("semantico","No se puede restar "+this.getStringTipo(u)+" con "+this.getStringTipo(g),this.linea,this.columna),"Error semantico: No se puede restar "+this.getStringTipo(u)+" con "+this.getStringTipo(g)+" en la linea "+this.linea+" y columna "+this.columna}default:return l.default.agregarError("semantico","No se puede restar "+this.getStringTipo(u)+" con "+this.getStringTipo(g),this.linea,this.columna),"Error semantico: No se puede restar "+this.getStringTipo(u)+" con "+this.getStringTipo(g)+" en la linea "+this.linea+" y columna "+this.columna}case n.MULTIPLICACION:if(this.tipo=this.tipoDominanteAritmetica(u,g),this.tipo===c.TipoPrim.ERROR)return s;switch(u){case c.TipoPrim.INTEGER:switch(g){case c.TipoPrim.INTEGER:return s=(i=parseInt(h))*(r=parseInt(f));case c.TipoPrim.DOUBLE:return s=(i=parseFloat(h))*(r=parseFloat(f));default:return l.default.agregarError("semantico","No se puede multiplicar "+this.getStringTipo(u)+" con "+this.getStringTipo(g),this.linea,this.columna),"Error semantico: No se puede multiplicar "+this.getStringTipo(u)+" con "+this.getStringTipo(g)+" en la linea "+this.linea+" y columna "+this.columna}case c.TipoPrim.DOUBLE:switch(g){case c.TipoPrim.INTEGER:case c.TipoPrim.DOUBLE:return s=(i=parseFloat(h))*(r=parseFloat(f));default:return l.default.agregarError("semantico","No se puede multiplicar "+this.getStringTipo(u)+" con "+this.getStringTipo(g),this.linea,this.columna),"Error semantico: No se puede multiplicar "+this.getStringTipo(u)+" con "+this.getStringTipo(g)+" en la linea "+this.linea+" y columna "+this.columna}default:return l.default.agregarError("semantico","No se puede multiplicar "+this.getStringTipo(u)+" con "+this.getStringTipo(g),this.linea,this.columna),"Error semantico: No se puede multiplicar "+this.getStringTipo(u)+" con "+this.getStringTipo(g)+" en la linea "+this.linea+" y columna "+this.columna}case n.DIVISION:if(this.tipo=this.tipoDominanteAritmetica(u,g),this.tipo===c.TipoPrim.ERROR)return s;switch(u){case c.TipoPrim.INTEGER:switch(g){case c.TipoPrim.INTEGER:return i=parseInt(h),0!=(r=parseInt(f))?s=i/r:(l.default.agregarError("semantico","El denominador debe ser diferente de 0",this.linea,this.columna),"Error semantico: El denominador debe ser diferente de 0 en la linea "+this.linea+" y columna "+this.columna);case c.TipoPrim.DOUBLE:return i=parseFloat(h),0!=(r=parseFloat(f))?s=i/r:(l.default.agregarError("semantico","El denominador debe ser diferente de 0",this.linea,this.columna),"Error semantico: El denominador debe ser diferente de 0 en la linea "+this.linea+" y columna "+this.columna);default:return l.default.agregarError("semantico","No se puede dividir "+this.getStringTipo(u)+" con "+this.getStringTipo(g),this.linea,this.columna),"Error semantico: No se puede dividir "+this.getStringTipo(u)+" con "+this.getStringTipo(g)+" en la linea "+this.linea+" y columna "+this.columna}case c.TipoPrim.DOUBLE:switch(g){case c.TipoPrim.INTEGER:case c.TipoPrim.DOUBLE:return i=parseFloat(h),0!=(r=parseFloat(f))?s=i/r:(l.default.agregarError("semantico","El denominador debe ser diferente de 0",this.linea,this.columna),"Error semantico: El denominador debe ser diferente de 0 en la linea "+this.linea+" y columna "+this.columna);default:return l.default.agregarError("semantico","No se puede dividir "+this.getStringTipo(u)+" con "+this.getStringTipo(g),this.linea,this.columna),"Error semantico: No se puede dividir "+this.getStringTipo(u)+" con "+this.getStringTipo(g)+" en la linea "+this.linea+" y columna "+this.columna}default:return l.default.agregarError("semantico","No se puede dividir "+this.getStringTipo(u)+" con "+this.getStringTipo(g),this.linea,this.columna),"Error semantico: No se puede dividir "+this.getStringTipo(u)+" con "+this.getStringTipo(g)+" en la linea "+this.linea+" y columna "+this.columna}case n.MOD:if(this.tipo=this.tipoDominanteAritmetica(u,g),this.tipo===c.TipoPrim.ERROR)return s;switch(u){case c.TipoPrim.INTEGER:switch(g){case c.TipoPrim.INTEGER:return i=parseInt(h),0!=(r=parseInt(f))?s=i%r:(l.default.agregarError("semantico","El denominador debe ser diferente de 0",this.linea,this.columna),"Error semantico: El denominador debe ser diferente de 0 en la linea "+this.linea+" y columna "+this.columna);case c.TipoPrim.DOUBLE:return i=parseFloat(h),0!=(r=parseFloat(f))?s=i%r:(l.default.agregarError("semantico","El denominador debe ser diferente de 0",this.linea,this.columna),"Error semantico: El denominador debe ser diferente de 0 en la linea "+this.linea+" y columna "+this.columna);default:return l.default.agregarError("semantico","No se puede dividir "+this.getStringTipo(u)+" con "+this.getStringTipo(g),this.linea,this.columna),"Error semantico: No se puede dividir "+this.getStringTipo(u)+" con "+this.getStringTipo(g)+" en la linea "+this.linea+" y columna "+this.columna}case c.TipoPrim.DOUBLE:switch(g){case c.TipoPrim.INTEGER:case c.TipoPrim.DOUBLE:return s=(i=parseFloat(h))+(r=parseFloat(f));default:return l.default.agregarError("semantico","No se puede dividir "+this.getStringTipo(u)+" con "+this.getStringTipo(g),this.linea,this.columna),"Error semantico: No se puede dividir "+this.getStringTipo(u)+" con "+this.getStringTipo(g)+" en la linea "+this.linea+" y columna "+this.columna}default:return l.default.agregarError("semantico","No se puede dividir "+this.getStringTipo(u)+" con "+this.getStringTipo(g),this.linea,this.columna),"Error semantico: No se puede dividir "+this.getStringTipo(u)+" con "+this.getStringTipo(g)+" en la linea "+this.linea+" y columna "+this.columna}case n.MAYORQUE:switch(u){case c.TipoPrim.INTEGER:switch(g){case c.TipoPrim.INTEGER:case c.TipoPrim.DOUBLE:break;case c.TipoPrim.FUNCION:if(this.tipo=c.TipoPrim.FUNCION,"position()"==f.toLowerCase()){var m=parseInt(h),d=new o.a("Temporal",null,null),p=t.padre,b=1;return p.tsimbolos.forEach((function(e){var i=e.valor;m>b&&i.getNombre()===t.nombre&&d.agregarSimbolo(i.getNombre(),i),i.getTipo()===a.a.ETIQUETA&&i.getNombre()===t.nombre&&b++})),d}return l.default.agregarError("semantico","No se puede hacer relacional "+this.getStringTipo(u)+" con "+this.getStringTipo(g),this.linea,this.columna),"Error semantico: No se puede hacer relacional "+this.getStringTipo(u)+" con "+this.getStringTipo(g)+" en la linea "+this.linea+" y columna "+this.columna;case c.TipoPrim.IDENTIFIER:return this.tipo=c.TipoPrim.FUNCION,this.resolverOperacionNumeroId(h,f,t,n.MAYORQUE,c.TipoPrim.INTEGER)}break;case c.TipoPrim.DOUBLE:switch(u){case c.TipoPrim.IDENTIFIER:return this.tipo=c.TipoPrim.FUNCION,this.resolverOperacionNumeroId(h,f,t,n.MAYORQUE,c.TipoPrim.DOUBLE)}case c.TipoPrim.CADENA:break;case c.TipoPrim.ATRIBUTO:switch(g){case c.TipoPrim.CADENA:return this.resolverOperacionAtributoCadena(t,n.MAYORQUE)}break;case c.TipoPrim.FUNCION:if(this.tipo=c.TipoPrim.FUNCION,"position()"!=h.toLowerCase())return l.default.agregarError("semantico","No se puede hacer relacional "+this.getStringTipo(u)+" con "+this.getStringTipo(g),this.linea,this.columna),"Error semantico: No se puede hacer relacional "+this.getStringTipo(u)+" con "+this.getStringTipo(g)+" en la linea "+this.linea+" y columna "+this.columna;switch(g){case c.TipoPrim.INTEGER:var E=parseInt(f),T=new o.a("Temporal",null,null),I=t.padre,y=1;return I.tsimbolos.forEach((function(e){var i=e.valor;y>E&&i.getNombre()==t.nombre&&T.agregarSimbolo(i.getNombre(),i),i.getTipo()===a.a.ETIQUETA&&i.getNombre()==t.nombre&&y++})),T;default:return l.default.agregarError("semantico","No se puede hacer relacional "+this.getStringTipo(u)+" con "+this.getStringTipo(g),this.linea,this.columna),"Error semantico: No se puede hacer relacional "+this.getStringTipo(u)+" con "+this.getStringTipo(g)+" en la linea "+this.linea+" y columna "+this.columna}case c.TipoPrim.IDENTIFIER:switch(this.tipo=c.TipoPrim.FUNCION,g){case c.TipoPrim.INTEGER:return this.resolverOperacionIdNumero(h,f,t,n.MAYORQUE,c.TipoPrim.INTEGER);case c.TipoPrim.DOUBLE:return this.resolverOperacionIdNumero(h,f,t,n.MAYORQUE,c.TipoPrim.DOUBLE);case c.TipoPrim.CADENA:return this.resolverOperacionIdCadena(h,f,t,n.MAYORQUE);case c.TipoPrim.IDENTIFIER:}}break;case n.MENORQUE:switch(u){case c.TipoPrim.INTEGER:switch(g){case c.TipoPrim.INTEGER:case c.TipoPrim.DOUBLE:break;case c.TipoPrim.FUNCION:if(this.tipo=c.TipoPrim.FUNCION,"position()"==f.toLowerCase()){var v=parseInt(h),A=new o.a("Temporal",null,null),_=t.padre,O=1;return _.tsimbolos.forEach((function(e){var i=e.valor;v<O&&i.getNombre()==t.nombre&&A.agregarSimbolo(t.nombre,i),i.getTipo()===a.a.ETIQUETA&&i.getNombre()===t.nombre&&O++})),A}return l.default.agregarError("semantico","No se puede hacer relacional "+this.getStringTipo(u)+" con "+this.getStringTipo(g),this.linea,this.columna),"Error semantico: No se puede hacer relacional "+this.getStringTipo(u)+" con "+this.getStringTipo(g)+" en la linea "+this.linea+" y columna "+this.columna;case c.TipoPrim.IDENTIFIER:return this.tipo=c.TipoPrim.FUNCION,this.resolverOperacionNumeroId(h,f,t,n.MENORQUE,c.TipoPrim.INTEGER)}break;case c.TipoPrim.DOUBLE:switch(u){case c.TipoPrim.IDENTIFIER:return this.tipo=c.TipoPrim.FUNCION,this.resolverOperacionNumeroId(h,f,t,n.MENORQUE,c.TipoPrim.DOUBLE)}case c.TipoPrim.CADENA:break;case c.TipoPrim.ATRIBUTO:switch(g){case c.TipoPrim.CADENA:return this.resolverOperacionAtributoCadena(t,n.MENORQUE)}break;case c.TipoPrim.FUNCION:if(this.tipo=c.TipoPrim.FUNCION,"position()"==h.toLowerCase())switch(g){case c.TipoPrim.INTEGER:var N=parseInt(f),k=new o.a("Temporal",null,null),S=t.padre,R=1;return S.tsimbolos.forEach((function(e){var i=e.valor;R<N&&i.getNombre()===t.nombre&&k.agregarSimbolo(t.nombre,i),i.getTipo()===a.a.ETIQUETA&&i.getNombre()===t.nombre&&R++})),k;default:return l.default.agregarError("semantico","No se puede dividir "+this.getStringTipo(u)+" con "+this.getStringTipo(g),this.linea,this.columna),"Error semantico: No se puede dividir "+this.getStringTipo(u)+" con "+this.getStringTipo(g)+" en la linea "+this.linea+" y columna "+this.columna}break;case c.TipoPrim.IDENTIFIER:switch(this.tipo=c.TipoPrim.FUNCION,g){case c.TipoPrim.INTEGER:return this.resolverOperacionIdNumero(h,f,t,n.MENORQUE,c.TipoPrim.INTEGER);case c.TipoPrim.DOUBLE:return this.resolverOperacionIdNumero(h,f,t,n.MENORQUE,c.TipoPrim.DOUBLE);case c.TipoPrim.CADENA:return this.resolverOperacionIdCadena(h,f,t,n.MENORQUE);case c.TipoPrim.IDENTIFIER:}}break;case n.MAYORIGUALQUE:switch(u){case c.TipoPrim.INTEGER:switch(g){case c.TipoPrim.INTEGER:case c.TipoPrim.DOUBLE:break;case c.TipoPrim.FUNCION:if(this.tipo=c.TipoPrim.FUNCION,"position()"==f.toLowerCase()){var w=parseInt(h),D=new o.a("Temporal",null,null),P=t.padre,U=1;return P.tsimbolos.forEach((function(e){var i=e.valor;w>=U&&i.getNombre()==t.nombre&&D.agregarSimbolo(t.nombre,i),i.getTipo()===a.a.ETIQUETA&&i.getNombre()===t.nombre&&U++})),D}return l.default.agregarError("semantico","No se puede hacer relacional "+this.getStringTipo(u)+" con "+this.getStringTipo(g),this.linea,this.columna),"Error semantico: No se puede hacer relacional "+this.getStringTipo(u)+" con "+this.getStringTipo(g)+" en la linea "+this.linea+" y columna "+this.columna;case c.TipoPrim.IDENTIFIER:return this.tipo=c.TipoPrim.FUNCION,this.resolverOperacionNumeroId(h,f,t,n.MAYORIGUALQUE,c.TipoPrim.INTEGER)}break;case c.TipoPrim.DOUBLE:switch(u){case c.TipoPrim.IDENTIFIER:return this.tipo=c.TipoPrim.FUNCION,this.resolverOperacionNumeroId(h,f,t,n.MAYORIGUALQUE,c.TipoPrim.DOUBLE)}case c.TipoPrim.CADENA:break;case c.TipoPrim.ATRIBUTO:switch(g){case c.TipoPrim.CADENA:return this.resolverOperacionAtributoCadena(t,n.MAYORIGUALQUE)}break;case c.TipoPrim.FUNCION:if(this.tipo=c.TipoPrim.FUNCION,"position()"==h.toLowerCase())switch(g){case c.TipoPrim.INTEGER:var L=parseInt(f),C=new o.a("Temporal",null,null),x=t.padre,$=1;return x.tsimbolos.forEach((function(e){var i=e.valor;$>=L&&i.getNombre()===t.nombre&&C.agregarSimbolo(t.nombre,i),i.getTipo()===a.a.ETIQUETA&&i.getNombre()===t.nombre&&$++})),C;default:return l.default.agregarError("semantico","No se puede dividir "+this.getStringTipo(u)+" con "+this.getStringTipo(g),this.linea,this.columna),"Error semantico: No se puede dividir "+this.getStringTipo(u)+" con "+this.getStringTipo(g)+" en la linea "+this.linea+" y columna "+this.columna}break;case c.TipoPrim.IDENTIFIER:switch(this.tipo=c.TipoPrim.FUNCION,g){case c.TipoPrim.INTEGER:return this.resolverOperacionIdNumero(h,f,t,n.MAYORIGUALQUE,c.TipoPrim.INTEGER);case c.TipoPrim.DOUBLE:return this.resolverOperacionIdNumero(h,f,t,n.MAYORIGUALQUE,c.TipoPrim.DOUBLE);case c.TipoPrim.CADENA:return this.resolverOperacionIdCadena(h,f,t,n.MAYORIGUALQUE);case c.TipoPrim.IDENTIFIER:}}break;case n.MENORIGUALQUE:switch(u){case c.TipoPrim.INTEGER:switch(g){case c.TipoPrim.INTEGER:case c.TipoPrim.DOUBLE:break;case c.TipoPrim.FUNCION:if(this.tipo=c.TipoPrim.FUNCION,"position()"==f.toLowerCase()){var X=parseInt(h),j=new o.a("Temporal",null,null),F=t.padre,M=1;return F.tsimbolos.forEach((function(e){var i=e.valor;X<=M&&i.getNombre()==t.nombre&&j.agregarSimbolo(t.nombre,i),i.getTipo()===a.a.ETIQUETA&&i.getNombre()===t.nombre&&M++})),j}return l.default.agregarError("semantico","No se puede hacer relacional "+this.getStringTipo(u)+" con "+this.getStringTipo(g),this.linea,this.columna),"Error semantico: No se puede hacer relacional "+this.getStringTipo(u)+" con "+this.getStringTipo(g)+" en la linea "+this.linea+" y columna "+this.columna;case c.TipoPrim.IDENTIFIER:return this.tipo=c.TipoPrim.FUNCION,this.resolverOperacionNumeroId(h,f,t,n.MENORIGUALQUE,c.TipoPrim.INTEGER)}break;case c.TipoPrim.DOUBLE:switch(u){case c.TipoPrim.IDENTIFIER:return this.tipo=c.TipoPrim.FUNCION,this.resolverOperacionNumeroId(h,f,t,n.MENORIGUALQUE,c.TipoPrim.DOUBLE)}case c.TipoPrim.CADENA:break;case c.TipoPrim.ATRIBUTO:switch(g){case c.TipoPrim.CADENA:return this.resolverOperacionAtributoCadena(t,n.MENORIGUALQUE)}break;case c.TipoPrim.FUNCION:if(this.tipo=c.TipoPrim.FUNCION,"position()"==h.toLowerCase())switch(g){case c.TipoPrim.INTEGER:var G=parseInt(f),Q=new o.a("Temporal",null,null),B=t.padre,V=1;return B.tsimbolos.forEach((function(e){var i=e.valor;V<=G&&i.getNombre()===t.nombre&&Q.agregarSimbolo(t.nombre,i),i.getTipo()===a.a.ETIQUETA&&i.getNombre()===t.nombre&&V++})),Q;default:return l.default.agregarError("semantico","No se puede dividir "+this.getStringTipo(u)+" con "+this.getStringTipo(g),this.linea,this.columna),"Error semantico: No se puede dividir "+this.getStringTipo(u)+" con "+this.getStringTipo(g)+" en la linea "+this.linea+" y columna "+this.columna}break;case c.TipoPrim.IDENTIFIER:switch(this.tipo=c.TipoPrim.FUNCION,g){case c.TipoPrim.INTEGER:return this.resolverOperacionIdNumero(h,f,t,n.MENORIGUALQUE,c.TipoPrim.INTEGER);case c.TipoPrim.DOUBLE:return this.resolverOperacionIdNumero(h,f,t,n.MENORIGUALQUE,c.TipoPrim.DOUBLE);case c.TipoPrim.IDENTIFIER:}}break;case n.IGUAL:switch(u){case c.TipoPrim.INTEGER:switch(g){case c.TipoPrim.INTEGER:case c.TipoPrim.DOUBLE:break;case c.TipoPrim.FUNCION:if(this.tipo=c.TipoPrim.FUNCION,"position()"==f.toLowerCase()){var H=parseInt(h),z=new o.a("Temporal",null,null),q=t.padre,Y=1;return q.tsimbolos.forEach((function(e){var i=e.valor;H===Y&&i.getNombre()==t.nombre&&z.agregarSimbolo(t.nombre,i),i.getTipo()===a.a.ETIQUETA&&i.getNombre()===t.nombre&&Y++})),z}return l.default.agregarError("semantico","No se puede hacer relacional "+this.getStringTipo(u)+" con "+this.getStringTipo(g),this.linea,this.columna),"Error semantico: No se puede hacer relacional "+this.getStringTipo(u)+" con "+this.getStringTipo(g)+" en la linea "+this.linea+" y columna "+this.columna;case c.TipoPrim.IDENTIFIER:return this.tipo=c.TipoPrim.FUNCION,this.resolverOperacionNumeroId(h,f,t,n.IGUAL,c.TipoPrim.INTEGER)}break;case c.TipoPrim.DOUBLE:switch(u){case c.TipoPrim.IDENTIFIER:return this.tipo=c.TipoPrim.FUNCION,this.resolverOperacionNumeroId(h,f,t,n.IGUAL,c.TipoPrim.DOUBLE)}case c.TipoPrim.CADENA:switch(g){case c.TipoPrim.ATRIBUTO:this.tipo=c.TipoPrim.FUNCION,h=this.op_izq.getValor(t),f=this.op_der.getValorInicial(t);var W=new o.a("Temporal",null,null);return t.padre.tsimbolos.forEach((function(e){var i=e.valor;if(i.getTipo()===a.a.ETIQUETA&&i.getNombre()===t.nombre){var n=!1;i.valor.tsimbolos.forEach((function(t){var e=t.valor;e.getTipo()!==a.a.ATRIBUTO||"*"!==f&&e.getNombre()!==f||h===e.getValor()&&(n||(W.agregarSimbolo(i.getNombre(),i),n=!0))}))}})),W}break;case c.TipoPrim.ATRIBUTO:switch(g){case c.TipoPrim.CADENA:return this.resolverOperacionAtributoCadena(t,n.IGUAL);case c.TipoPrim.ATRIBUTO:this.tipo=c.TipoPrim.FUNCION,f=this.op_der.getValorInicial(t),h=this.op_izq.getValorInicial(t);var Z=new o.a("Temporal",null,null);return t.padre.tsimbolos.forEach((function(e){var i=e.valor;if(i.getTipo()===a.a.ETIQUETA&&i.getNombre()===t.nombre){var n=!1;i.valor.tsimbolos.forEach((function(t){var e=t.valor;e.getTipo()!==a.a.ATRIBUTO||"*"!==h&&e.getNombre()!==h||f===h&&(n||(Z.agregarSimbolo(i.getNombre(),i),n=!0))}))}})),Z}break;case c.TipoPrim.FUNCION:if(this.tipo=c.TipoPrim.FUNCION,"position()"==h.toLowerCase())switch(g){case c.TipoPrim.INTEGER:var J=parseInt(f),K=new o.a("Temporal",null,null),tt=t.padre,et=1;return tt.tsimbolos.forEach((function(e){var i=e.valor;et===J&&i.getNombre()===t.nombre&&K.agregarSimbolo(t.nombre,i),i.getTipo()===a.a.ETIQUETA&&i.getNombre()===t.nombre&&et++})),K;default:return l.default.agregarError("semantico","No se puede dividir "+this.getStringTipo(u)+" con "+this.getStringTipo(g),this.linea,this.columna),"Error semantico: No se puede dividir "+this.getStringTipo(u)+" con "+this.getStringTipo(g)+" en la linea "+this.linea+" y columna "+this.columna}break;case c.TipoPrim.IDENTIFIER:switch(this.tipo=c.TipoPrim.FUNCION,g){case c.TipoPrim.INTEGER:return this.resolverOperacionIdNumero(h,f,t,n.IGUAL,c.TipoPrim.INTEGER);case c.TipoPrim.DOUBLE:return this.resolverOperacionIdNumero(h,f,t,n.IGUAL,c.TipoPrim.DOUBLE);case c.TipoPrim.CADENA:return this.resolverOperacionIdCadena(h,f,t,n.IGUAL);case c.TipoPrim.IDENTIFIER:}break;case c.TipoPrim.CONSULTA:this.tipo=c.TipoPrim.FUNCION;new o.a("Temporal",null,null);switch(g){case c.TipoPrim.CADENA:var it=this.op_izq.getValorInicial(t),nt=it[it.length-1].isFromRoot(),rt=it[it.length-1].getNombre(),st=this.op_izq.getValor(t);return this.resolverConsultaRecursiva(st,f,rt,nt,n.IGUAL);default:return null}}break;case n.DIFERENTEQUE:switch(u){case c.TipoPrim.INTEGER:switch(g){case c.TipoPrim.INTEGER:case c.TipoPrim.DOUBLE:break;case c.TipoPrim.FUNCION:if(this.tipo=c.TipoPrim.FUNCION,"position()"==f.toLowerCase()){var ot=parseInt(h),at=new o.a("Temporal",null,null),ct=t.padre,lt=1;return ct.tsimbolos.forEach((function(e){var i=e.valor;ot!=lt&&i.getNombre()==t.nombre&&at.agregarSimbolo(t.nombre,i),i.getTipo()===a.a.ETIQUETA&&i.getNombre()===t.nombre&&lt++})),at}return l.default.agregarError("semantico","No se puede hacer relacional "+this.getStringTipo(u)+" con "+this.getStringTipo(g),this.linea,this.columna),"Error semantico: No se puede hacer relacional "+this.getStringTipo(u)+" con "+this.getStringTipo(g)+" en la linea "+this.linea+" y columna "+this.columna;case c.TipoPrim.IDENTIFIER:return this.tipo=c.TipoPrim.FUNCION,this.resolverOperacionNumeroId(h,f,t,n.DIFERENTEQUE,c.TipoPrim.INTEGER)}break;case c.TipoPrim.DOUBLE:switch(u){case c.TipoPrim.IDENTIFIER:return this.tipo=c.TipoPrim.FUNCION,this.resolverOperacionNumeroId(h,f,t,n.DIFERENTEQUE,c.TipoPrim.DOUBLE)}case c.TipoPrim.CADENA:switch(g){case c.TipoPrim.ATRIBUTO:this.tipo=c.TipoPrim.FUNCION,h=this.op_izq.getValor(t),f=this.op_der.getValorInicial(t);var ht=new o.a("Temporal",null,null);return t.padre.tsimbolos.forEach((function(e){var i=e.valor;i.getTipo()===a.a.ETIQUETA&&i.getNombre()===t.nombre&&i.valor.tsimbolos.forEach((function(t){var e=t.valor;e.getTipo()!==a.a.ATRIBUTO||"*"!==f&&e.getNombre()!==f||h!=e.getValor()&&ht.agregarSimbolo(i.getNombre(),i)}))})),ht}break;case c.TipoPrim.ATRIBUTO:switch(g){case c.TipoPrim.CADENA:return this.resolverOperacionAtributoCadena(t,n.DIFERENTEQUE)}break;case c.TipoPrim.FUNCION:if(this.tipo=c.TipoPrim.FUNCION,"position()"==h.toLowerCase())switch(g){case c.TipoPrim.INTEGER:var ut=parseInt(f),ft=new o.a("Temporal",null,null),gt=t.padre,mt=1;return gt.tsimbolos.forEach((function(e){var i=e.valor;mt!=ut&&i.getNombre()===t.nombre&&ft.agregarSimbolo(t.nombre,i),i.getTipo()===a.a.ETIQUETA&&i.getNombre()===t.nombre&&mt++})),ft;default:return l.default.agregarError("semantico","No se puede dividir "+this.getStringTipo(u)+" con "+this.getStringTipo(g),this.linea,this.columna),"Error semantico: No se puede dividir "+this.getStringTipo(u)+" con "+this.getStringTipo(g)+" en la linea "+this.linea+" y columna "+this.columna}break;case c.TipoPrim.IDENTIFIER:switch(this.tipo=c.TipoPrim.FUNCION,g){case c.TipoPrim.INTEGER:return void 0!=this.isXQuery&&this.isXQuery?this.XQresolverOperacionIdNumero(h,f,t,n.DIFERENTEQUE,c.TipoPrim.INTEGER):this.resolverOperacionIdNumero(h,f,t,n.DIFERENTEQUE,c.TipoPrim.INTEGER);case c.TipoPrim.DOUBLE:return this.resolverOperacionIdNumero(h,f,t,n.DIFERENTEQUE,c.TipoPrim.DOUBLE);case c.TipoPrim.CADENA:return this.resolverOperacionIdCadena(h,f,t,n.DIFERENTEQUE);case c.TipoPrim.IDENTIFIER:}}break;case n.AND:case n.OR:}}},{key:"getStringTipo",value:function(t){switch(t){case c.TipoPrim.INTEGER:return"entero";case c.TipoPrim.DOUBLE:return"doble";case c.TipoPrim.CADENA:return"cadena";case c.TipoPrim.IDENTIFIER:return"id";case c.TipoPrim.ATRIBUTO:return"atributo";case c.TipoPrim.DOT:return"dot";case c.TipoPrim.BOOLEAN:return"boolean";case c.TipoPrim.FUNCION:return"Funcion mae";case c.TipoPrim.CONSULTA:return"Consulta";default:return"ERROR"}}},{key:"buscarTexto",value:function(t){for(var e=0;e<t.valor.tsimbolos.length;e++){var i=t.valor.tsimbolos[e].valor;if(i.getTipo()===a.a.STRING)return i.getValor()}return null}},{key:"tipoDominanteAritmetica",value:function(t,e){return t==c.TipoPrim.ERROR||e==c.TipoPrim.ERROR?c.TipoPrim.ERROR:t==c.TipoPrim.DOUBLE||e==c.TipoPrim.DOUBLE?c.TipoPrim.DOUBLE:t==c.TipoPrim.INTEGER||e==c.TipoPrim.INTEGER?c.TipoPrim.INTEGER:c.TipoPrim.ERROR}},{key:"tipoDominanteOperacion",value:function(t,e){return t==c.TipoPrim.ERROR||e==c.TipoPrim.ERROR?c.TipoPrim.ERROR:t==c.TipoPrim.DOUBLE||e==c.TipoPrim.DOUBLE?c.TipoPrim.DOUBLE:t==c.TipoPrim.INTEGER||e==c.TipoPrim.INTEGER?c.TipoPrim.INTEGER:c.TipoPrim.ERROR}},{key:"XQresolverOperacionIdNumero",value:function(t,e,i,r,s){var a,l=this;a=s===c.TipoPrim.INTEGER?parseInt(e):parseFloat(e);var h=t.getNombre(),u=new o.a("Temporal",null,null);return i.tsimbolos.forEach((function(t){var e=t.valor;if(e.getNombre()===h){var i=l.buscarTexto(e);if(null!=i){var s=+i;switch(r){case n.MAYORQUE:s>a&&u.agregarSimbolo(e.nombre,e);break;case n.MENORQUE:s<a&&u.agregarSimbolo(e.nombre,e);break;case n.MAYORIGUALQUE:s>=a&&u.agregarSimbolo(e.nombre,e);break;case n.MENORIGUALQUE:s<=a&&u.agregarSimbolo(e.nombre,e);break;case n.IGUAL:s===a&&u.agregarSimbolo(e.nombre,e);break;case n.DIFERENTEQUE:s!=a&&u.agregarSimbolo(e.nombre,e)}}}})),u}},{key:"resolverOperacionIdNumero",value:function(t,e,i,r,s){var l,h=this;if(void 0!=this.isXQuery&&this.isXQuery)return this.XQresolverOperacionIdNumero(t,e,i,r,s);l=s===c.TipoPrim.INTEGER?parseInt(e):parseFloat(e);var u=t.getNombre(),f=new o.a("Temporal",null,null);return i.padre.tsimbolos.forEach((function(t){var e=t.valor;e.getTipo()===a.a.ETIQUETA&&e.getNombre()===i.nombre&&e.valor.tsimbolos.forEach((function(t){var i=t.valor;if(i.getNombre()===u){var s=h.buscarTexto(i);if(null!=s){var o=+s;switch(r){case n.MAYORQUE:o>l&&f.agregarSimbolo(e.nombre,e);break;case n.MENORQUE:o<l&&f.agregarSimbolo(e.nombre,e);break;case n.MAYORIGUALQUE:o>=l&&f.agregarSimbolo(e.nombre,e);break;case n.MENORIGUALQUE:o<=l&&f.agregarSimbolo(e.nombre,e);break;case n.IGUAL:o===l&&f.agregarSimbolo(e.nombre,e);break;case n.DIFERENTEQUE:o!=l&&f.agregarSimbolo(e.nombre,e)}}}}))})),f}},{key:"resolverOperacionIdCadena",value:function(t,e,i,r){var s=this;if(void 0!=this.isXQuery&&this.isXQuery)return this.XQresolverOperacionIdCadena(t,e,i,r);var c=e,l=t.getNombre(),h=new o.a("Temporal",null,null);return i.padre.tsimbolos.forEach((function(t){var e=t.valor;e.getTipo()===a.a.ETIQUETA&&e.getNombre()===i.nombre&&e.valor.tsimbolos.forEach((function(t){var i=t.valor;if(i.getNombre()===l){var o=s.buscarTexto(i);if(c=c.replace('"',""),null!=o)switch(r){case n.MAYORQUE:o>c&&h.agregarSimbolo(e.nombre,e);break;case n.MENORQUE:o<c&&h.agregarSimbolo(e.nombre,e);break;case n.MAYORIGUALQUE:o>=c&&h.agregarSimbolo(e.nombre,e);break;case n.MENORIGUALQUE:o<=c&&h.agregarSimbolo(e.nombre,e);break;case n.IGUAL:o===c&&h.agregarSimbolo(e.nombre,e);break;case n.DIFERENTEQUE:o!=c&&h.agregarSimbolo(e.nombre,e)}}}))})),h}},{key:"XQresolverOperacionIdCadena",value:function(t,e,i,r){var s=this,a=e,c=t.getNombre(),l=new o.a("Temporal",null,null);return i.tsimbolos.forEach((function(t){var e=t.valor;if(e.getNombre()===c){var i=s.buscarTexto(e);if(a=(a=(a=(a=a.replace('"',"")).replace('"',"")).replace("'","")).replace("'",""),null!=i)switch(r){case n.MAYORQUE:i>a&&l.agregarSimbolo(e.nombre,e);break;case n.MENORQUE:i<a&&l.agregarSimbolo(e.nombre,e);break;case n.MAYORIGUALQUE:i>=a&&l.agregarSimbolo(e.nombre,e);break;case n.MENORIGUALQUE:i<=a&&l.agregarSimbolo(e.nombre,e);break;case n.IGUAL:i==a&&l.agregarSimbolo(e.nombre,e);break;case n.DIFERENTEQUE:i!=a&&l.agregarSimbolo(e.nombre,e)}}})),l}},{key:"resolverOperacionAtributoCadena",value:function(t,e){if(this.tipo=c.TipoPrim.FUNCION,void 0!=this.isXQuery&&this.isXQuery)return this.XQresolverOperacionAtributoCadena(t,e);var i=this.op_der.getValor(t),r=this.op_izq.getValorInicial(t),s=new o.a("Temporal",null,null);return t.padre.tsimbolos.forEach((function(o){var c=o.valor;if(c.getTipo()===a.a.ETIQUETA&&c.getNombre()===t.nombre){var l=!1;c.valor.tsimbolos.forEach((function(t){var o=t.valor;if(o.getTipo()===a.a.ATRIBUTO&&("*"===r||o.getNombre()===r))switch(e){case n.MAYORQUE:i>o.getValor()&&(l||(s.agregarSimbolo(c.getNombre(),c),l=!0));break;case n.MENORQUE:i<o.getValor()&&(l||(s.agregarSimbolo(c.getNombre(),c),l=!0));break;case n.MAYORIGUALQUE:i>=o.getValor()&&(l||(s.agregarSimbolo(c.getNombre(),c),l=!0));break;case n.MENORIGUALQUE:i<=o.getValor()&&(l||(s.agregarSimbolo(c.getNombre(),c),l=!0));break;case n.IGUAL:i===o.getValor()&&(l||(s.agregarSimbolo(c.getNombre(),c),l=!0));break;case n.DIFERENTEQUE:i!=o.getValor()&&(l||(s.agregarSimbolo(c.getNombre(),c),l=!0))}}))}})),s}},{key:"XQresolverOperacionAtributoCadena",value:function(t,e){this.tipo=c.TipoPrim.FUNCION;var i=this.op_der.getValor(t),r=this.op_izq.getValorInicial(t),s=new o.a("Temporal",null,null);return t.tsimbolos.forEach((function(t){var o=t.valor;if(o.getNombre()===r){var a=o.valor;switch(i=(i=(i=(i=i.replace('"',"")).replace('"',"")).replace("'","")).replace("'",""),a=(a=(a=(a=a.replace('"',"")).replace('"',"")).replace('"',"")).replace('"',""),e){case n.MAYORQUE:a>i&&s.agregarSimbolo(o.nombre,o);break;case n.MENORQUE:a<i&&s.agregarSimbolo(o.nombre,o);break;case n.MAYORIGUALQUE:a>=i&&s.agregarSimbolo(o.nombre,o);break;case n.MENORIGUALQUE:a<=i&&s.agregarSimbolo(o.nombre,o);break;case n.IGUAL:a===i&&s.agregarSimbolo(o.nombre,o);break;case n.DIFERENTEQUE:a!=i&&s.agregarSimbolo(o.nombre,o)}}})),s}},{key:"resolverConsultaRecursiva",value:function(t,e,i,r,s){var c=this,l=new o.a("Temporal",null,null),h=!1;return t.tsimbolos.forEach((function(t){var o=t.valor;h=!1,o.valor.tsimbolos.forEach((function(t){var u=t.valor;u.getTipo()===a.a.ETIQUETA&&u.valor.tsimbolos.forEach((function(t){var f=t.valor;if(s===n.IGUAL)if(f.getTipo()!==a.a.ATRIBUTO||"*"!==i&&f.getNombre()!==i||f.getValor()!==e){if(u.getTipo()===a.a.ETIQUETA&&!r){c.buscarAtributosRecursivamente(u,e,i,s)&&(h||(l.agregarSimbolo(o.nombre,o),h=!0))}}else h||(l.agregarSimbolo(o.nombre,o),h=!0);else if(s===n.DIFERENTEQUE)if(f.getTipo()!==a.a.ATRIBUTO||"*"!==i&&f.getNombre()!==i||f.getValor()===e){if(u.getTipo()===a.a.ETIQUETA&&!r){c.buscarAtributosRecursivamente(u,e,i,s)&&(h||(l.agregarSimbolo(o.nombre,o),h=!0))}}else h||l.agregarSimbolo(o.nombre,o)}))}))})),l}},{key:"buscarAtributosRecursivamente",value:function(t,e,i,r){for(var s=0;s<t.valor.tsimbolos.length;s++){var o=t.valor.tsimbolos[s].valor;if(r===n.IGUAL){if(o.getTipo()===a.a.ATRIBUTO&&("*"===i||o.getNombre()===i)&&o.getValor()===e)return!0;if(o.getTipo()===a.a.ETIQUETA&&this.buscarAtributosRecursivamente(o,e,i,r))return!0}else if(r===n.DIFERENTEQUE){if(o.getTipo()===a.a.ATRIBUTO&&("*"===i||o.getNombre()===i)&&o.getValor()!==e)return!0;if(o.getTipo()===a.a.ETIQUETA&&this.buscarAtributosRecursivamente(o,e,i,r))return!0}}return!1}},{key:"resolverOperacionNumeroId",value:function(t,e,i,r,s){var l,h=this;l=s===c.TipoPrim.INTEGER?parseInt(t):parseFloat(t);var u=e.getNombre(),f=new o.a("Temporal",null,null);return i.padre.tsimbolos.forEach((function(t){var e=t.valor;e.getTipo()===a.a.ETIQUETA&&e.getNombre()===i.nombre&&e.valor.tsimbolos.forEach((function(t){var i=t.valor;if(i.getNombre()===u){var s=h.buscarTexto(i);if(null!=s){var o=+s;switch(r){case n.MAYORQUE:l>o&&f.agregarSimbolo(e.nombre,e);break;case n.MENORQUE:l<o&&f.agregarSimbolo(e.nombre,e);break;case n.MAYORIGUALQUE:l>=o&&f.agregarSimbolo(e.nombre,e);break;case n.MENORIGUALQUE:l<=o&&f.agregarSimbolo(e.nombre,e);break;case n.IGUAL:l===o&&f.agregarSimbolo(e.nombre,e);break;case n.DIFERENTEQUE:l!=o&&f.agregarSimbolo(e.nombre,e)}}}}))})),f}}]),t}();!function(t){t[t.SUMA=0]="SUMA",t[t.RESTA=1]="RESTA",t[t.MULTIPLICACION=2]="MULTIPLICACION",t[t.DIVISION=3]="DIVISION",t[t.MAYORQUE=4]="MAYORQUE",t[t.MENORQUE=5]="MENORQUE",t[t.MAYORIGUALQUE=6]="MAYORIGUALQUE",t[t.MENORIGUALQUE=7]="MENORIGUALQUE",t[t.IGUAL=8]="IGUAL",t[t.DIFERENTEQUE=9]="DIFERENTEQUE",t[t.OR=10]="OR",t[t.AND=11]="AND",t[t.NOT=12]="NOT",t[t.MOD=13]="MOD",t[t.PAR=14]="PAR",t[t.XQEQ=15]="XQEQ",t[t.XQGT=16]="XQGT",t[t.XQLT=17]="XQLT",t[t.XQNE=18]="XQNE",t[t.XQLE=19]="XQLE",t[t.XQGE=20]="XQGE"}(n||(n={}))},,,,,,,,,,,,,,,function(t,e,i){"use strict";i.r(e),i.d(e,"Atributo",(function(){return c}));var n=i(6),r=i(7),s=i(17),o=i(3),a=i(8),c=function(){function t(e,i,r,s){Object(n.a)(this,t),this.identificador=e,this.valor=i,this.linea=r,this.columna=s}return Object(r.a)(t,[{key:"ejecutar",value:function(t){t.existeSimbolo(this.identificador)?a.default.agregarError("semantico","Ya existe el simbolo "+this.identificador,this.linea,this.columna):t.agregarSimbolo(this.identificador,new s.a(o.a.ATRIBUTO,this.identificador,this.valor,this.linea,this.columna))}}]),t}()},function(t,e,i){"use strict";i.r(e),i.d(e,"cstXmlAsc",(function(){return o})),i.d(e,"cstXmlDesc",(function(){return a})),i.d(e,"cstXpathAsc",(function(){return c})),i.d(e,"cstXpathDesc",(function(){return l}));var n=i(6),r=i(7),s=function(){function t(){Object(n.a)(this,t),this.id=0,this.pila=[],this.raiz=null}return Object(r.a)(t,[{key:"agregarPila",value:function(t){this.pila.push(t)}},{key:"obtenerUltimoNodo",value:function(){return this.pila.pop()}},{key:"setRaiz",value:function(t){this.raiz=t}},{key:"getRaiz",value:function(){return this.raiz}},{key:"getId",value:function(){return this.id=this.id+1,this.id}}]),t}(),o=new s,a=new s,c=new s,l=new s},function(t,e,i){"use strict";i.r(e),i.d(e,"Etiqueta3D",(function(){return s}));var n=i(6),r=i(7),s=function(){function t(e,i,r,s,o){Object(n.a)(this,t),this.tipo=e,this.fila=s,this.identificador=i,this.codigo3D=r,this.columna=o,this.eliminada=!1,this.optimizada=!1}return Object(r.a)(t,[{key:"isOptimizada",value:function(){return this.optimizada}},{key:"setOptimizada",value:function(t){this.optimizada=t}},{key:"isEliminada",value:function(){return this.eliminada}},{key:"setEliminada",value:function(t){this.eliminada=t}},{key:"getCodigo3D",value:function(){return this.codigo3D}},{key:"setCodigo3D",value:function(t){this.codigo3D=t}},{key:"getTipoInstruccion",value:function(){return this.tipo}}]),t}()},,,,,,,,,,,,,,,function(t,e,i){"use strict";i.r(e),i.d(e,"Objeto",(function(){return c}));var n=i(6),r=i(7),s=i(13),o=i(17),a=i(3),c=function(){function t(e,i,r,s,o,a,c){Object(n.a)(this,t),this.identificador=e,this.texto=i,this.linea=r,this.columna=s,this.listaAtributos=o,this.listaObjetos=a,this.isUnica=c}return Object(r.a)(t,[{key:"ejecutar",value:function(t){var e=new s.a(this.identificador,t,t.global);e.agregarSimbolo("Etiqueta unica",new o.a(a.a.ETIQUETA_UNIQUE,"Etiqueta unica",this.isUnica,this.linea,this.columna)),this.listaAtributos.forEach((function(t){t.ejecutar(e)})),this.listaObjetos.forEach((function(t){t.ejecutar(e)})),""!==this.texto&&e.agregarSimbolo("Texto",new o.a(a.a.STRING,"Texto",this.texto,this.linea,this.columna)),t.agregarSimbolo(this.identificador,new o.a(this.isUnica?a.a.ETIQUETA_UNIQUE:a.a.ETIQUETA,this.identificador,e,this.linea,this.columna))}}]),t}()},,,function(t,e,i){"use strict";i.r(e),i.d(e,"If3D",(function(){return a}));var n=i(6),r=i(7),s=i(35),o=i(19),a=function(){function t(e,i,r,s,o,a){Object(n.a)(this,t),this.fila=o,this.columna=a,this.tipo=e,this.codigo3D=s,this.condicion=i,this.gotoEtiqueta=r,this.eliminada=!1,this.optimizada=!1}return Object(r.a)(t,[{key:"isOptimizada",value:function(){return this.optimizada}},{key:"setOptimizada",value:function(t){this.optimizada=t}},{key:"isEliminada",value:function(){return this.eliminada}},{key:"setEliminada",value:function(t){this.eliminada=t}},{key:"getTipoInstruccion",value:function(){return this.tipo}},{key:"negarCondicion",value:function(){if(this.condicion instanceof o.Operacion3D){var t=this.condicion.negarCondicion();if(t){var e=new o.Operacion3D(s.TipoExpresion3D.OPERACION,t,this.condicion.op_izq,this.condicion.op_der,this.condicion.codigo3D,-1,-1),i=Object.create(e);return this.condicion=Object.create(i),i}}}},{key:"setCodigo3D",value:function(t){this.codigo3D=t}},{key:"getCodigo3D",value:function(){return this.codigo3D="if ("+this.condicion.getCodigo3D()+")",this.codigo3D+=" "+this.gotoEtiqueta.getCodigo3D(),this.codigo3D}}]),t}()},,,,,,function(t,e,i){"use strict";i.r(e),i.d(e,"Predicate",(function(){return s}));var n=i(6),r=i(7),s=function(){function t(e,i,r){Object(n.a)(this,t),this.expresion=e,this.linea=i,this.columna=r}return Object(r.a)(t,[{key:"getTipo",value:function(){return this.tipo}},{key:"getValor",value:function(t){var e=this.expresion.getValor(t);return this.tipo=this.expresion.getTipo(t),e}},{key:"getValorInicial",value:function(t){}}]),t}()},function(t,e,i){"use strict";i.r(e),i.d(e,"Return",(function(){return a})),i.d(e,"TipoReturn",(function(){return n}));var n,r=i(6),s=i(7),o=i(20),a=function(){function t(e,i,n,s,o,a,c,l){Object(r.a)(this,t),this.tipo=e,this.funcion=a,this.html=s,this.listaNodos=n,this.identificador=i,this.linea=c,this.columna=l,this.ifthen=o}return Object(s.a)(t,[{key:"ejecutar",value:function(t,e){var i="",r=[];if(this.tipo===n.NORMAL&&void 0!=this.identificador){console.log("Return normal.");var s=t.obtenerSimbolo(this.identificador);if(null!=s)if(console.log("LISTAISMB:",s),void 0!=this.listaNodos&&this.listaNodos.length>0){var a=new o.Consulta(this.listaNodos,this.linea,this.columna);s.valor.forEach((function(t){var e=t.valor;r=r.concat(a.ejecutar(e))})),i+=a.simbolosToString(r)}else{i+=new o.Consulta([],this.linea,this.columna).simbolosToString(s.valor)}else console.log("ERROR - El simbolo: $",this.identificador," no existe.")}else if(this.tipo===n.FUNCIONXQUERY&&void 0!=this.funcion){i+=new o.Consulta([],this.linea,this.columna).simbolosToString(this.funcion.getValor(t).valor)}else if(this.tipo===n.IFTHENELSE&&void 0!=this.ifthen){var c=this.ifthen.ejecutar(t,e);i+=new o.Consulta([],this.linea,this.columna).simbolosToString(c)}return i}}]),t}();!function(t){t[t.NORMAL=0]="NORMAL",t[t.HTML=1]="HTML",t[t.IFTHENELSE=2]="IFTHENELSE",t[t.FUNCIONXQUERY=3]="FUNCIONXQUERY"}(n||(n={}))},function(t,e,i){"use strict";i.r(e),i.d(e,"DeclaracionFor",(function(){return c})),i.d(e,"TipoFor",(function(){return n}));var n,r=i(6),s=i(7),o=i(17),a=i(3),c=function(){function t(e,i,n,s,o,a,c,l,h){Object(r.a)(this,t),this.linea=s,this.columna=o,this.listaEnteros=h,this.tipo=e,this.identificador=i,this.consultas=n,this.desde=c,this.hasta=l,this.at=a}return Object(s.a)(t,[{key:"getTipo",value:function(){return this.tipo}},{key:"TipoToString",value:function(){switch(this.tipo){case n.NORMAL:return"Normal";case n.ITERATIVO:return"Iterativo";case n.AT:return"At"}}},{key:"ejecutar",value:function(t,e){var i,r=[];switch(this.tipo){case n.NORMAL:console.log("for Normal"),null!=this.consultas&&this.consultas.forEach((function(t){r=r.concat(t.ejecutar(e))})),i=new o.a(a.a.XQ_VAR,this.identificador,r,this.linea,this.columna),t.agregarSimbolo(this.identificador,i);break;case n.ITERATIVO:if(this.desde&&null!=this.hasta){for(var s=this.desde;s<=this.hasta;s++)r.push(s);var c=new o.a(a.a.XQ_VAR,this.identificador,r,this.linea,this.columna);t.agregarSimbolo(this.identificador,c)}else if(void 0!=this.listaEnteros){var l=new o.a(a.a.XQ_VAR,this.identificador,this.listaEnteros,this.linea,this.columna);t.agregarSimbolo(this.identificador,l)}break;case n.AT:var h=0;null!=this.consultas&&this.consultas.forEach((function(t){var i=t.ejecutar(e);h+=i.length,r=r.concat(i)}));new o.a(a.a.XQ_NUMB,this.identificador,h,this.linea,this.columna);i=new o.a(a.a.XQ_VAR,this.identificador,r,this.linea,this.columna),t.agregarSimbolo(this.identificador,i)}}}]),t}();!function(t){t[t.NORMAL=0]="NORMAL",t[t.ITERATIVO=1]="ITERATIVO",t[t.AT=2]="AT"}(n||(n={}))},function(t,e,i){"use strict";i.r(e),i.d(e,"FuncionXQuery",(function(){return l})),i.d(e,"TipoFuncionXQ",(function(){return n}));var n,r=i(6),s=i(7),o=i(17),a=i(3),c=i(20),l=function(){function t(e,i,n,s,o,a,c,l){Object(r.a)(this,t),this.linea=s,this.columna=o,this.tipo=e,this.identificador=i,this.listaNodos=n,this.desde=a,this.hasta=c,this.otraFuncion=l}return Object(s.a)(t,[{key:"getTipo",value:function(){return this.tipo}},{key:"getSobreEntornoXML",value:function(t){var e=this,i=[];if(void 0!=this.identificador)void 0!=this.listaNodos&&this.listaNodos.length>0?new c.Consulta(this.listaNodos,this.linea,this.columna).ejecutar(t).forEach((function(t){var r=t.valor;e.tipo!=n.DATA&&e.reemplazarTexto(r),i=i.concat(e.getOnlyTextos(r))})):(this.tipo!=n.DATA&&this.reemplazarTexto(t),i=i.concat(this.getOnlyTextos(t)));else if(void 0!=this.otraFuncion){this.otraFuncion.getSobreEntornoXML(t).forEach((function(t){var r=t.valor;"string"!==typeof r.valor&&(e.tipo!=n.DATA&&(t.valor=e.aplicarFuncionTexto(r)),i=i.concat(t))}))}return i}},{key:"getValorInicial",value:function(t){if(void 0!=this.identificador){var e=[],i=t.obtenerSimbolo(this.identificador);if(null!=i)if(void 0!=this.listaNodos&&this.listaNodos.length>0){var n=new c.Consulta(this.listaNodos,this.linea,this.columna);i.valor.forEach((function(t){var i=t.valor;e=e.concat(n.ejecutar(i))}));var r=new o.a(a.a.XQ_VAR,this.identificador,e,this.linea,this.columna);t.sobreEscribirSimbolo(this.identificador,r)}else e=i;else console.log("Simbolo no existe: $",this.identificador);return t.obtenerSimbolo(this.identificador)}}},{key:"getValor",value:function(t){var e=this;if(void 0!=this.identificador){var i=this.getValorInicial(t);this.tipo!=n.DATA&&i.valor.forEach((function(t){var i=t.valor;e.reemplazarTexto(i)}));var r=[];i.valor.forEach((function(t){var i=t.valor;r=r.concat(e.getOnlyTextos(i))}));var s=new o.a(a.a.XQ_VAR,this.identificador,r,this.linea,this.columna);return t.sobreEscribirSimbolo(this.identificador,s),i=t.obtenerSimbolo(this.identificador)}if(void 0!=this.otraFuncion){var c=[],l=this.otraFuncion.getValor(t);l.valor.forEach((function(t){var i=t.valor;"string"!==typeof i.valor&&(e.tipo!=n.DATA&&(t.valor=e.aplicarFuncionTexto(i)),c=c.concat(t))}));var h=new o.a(a.a.XQ_VAR,l.nombre,c,this.linea,this.columna);return t.sobreEscribirSimbolo(l.nombre,h),t.obtenerSimbolo(l.nombre)}}},{key:"getOnlyTextos",value:function(t){for(var e=[],i=0;i<t.tsimbolos.length;i++)t.tsimbolos[i].valor.getTipo()===a.a.STRING?e.push(t.tsimbolos[i].valor):t.tsimbolos[i].valor.getTipo()===a.a.ETIQUETA&&(e=e.concat(this.getOnlyTextos(t.tsimbolos[i].valor.valor)));return e}},{key:"aplicarFuncionTexto",value:function(t){switch(this.getTipo()){case n.UPPERCASE:return t.toUpperCase();case n.SUBSTRING:if(void 0!=this.desde&&void 0!=this.hasta)return t.substring(this.desde-1,this.hasta+1);break;case n.LOWERCASE:return t.toLowerCase();case n.STRING:return t.toString();case n.NUMBER:return+t;default:return t}}},{key:"reemplazarTexto",value:function(t){for(var e=0;e<t.tsimbolos.length;e++)if(t.tsimbolos[e].valor.getTipo()===a.a.STRING){var i=t.tsimbolos[e].valor,n=this.aplicarFuncionTexto(i.valor);t.tsimbolos[e].valor.valor=n}else t.tsimbolos[e].valor.getTipo()===a.a.ETIQUETA&&this.reemplazarTexto(t.tsimbolos[e].valor.valor)}}]),t}();!function(t){t[t.UPPERCASE=0]="UPPERCASE",t[t.SUBSTRING=1]="SUBSTRING",t[t.DATA=2]="DATA",t[t.LOWERCASE=3]="LOWERCASE",t[t.NUMBER=4]="NUMBER",t[t.STRING=5]="STRING"}(n||(n={}))},,,,,,,,,function(t,e,i){"use strict";i.r(e),i.d(e,"Goto3D",(function(){return s}));var n=i(6),r=i(7),s=function(){function t(e,i,r,s,o){Object(n.a)(this,t),this.fila=s,this.columna=o,this.tipo=e,this.codigo3D=r,this.identificador=i,this.eliminada=!1,this.optimizada=!1}return Object(r.a)(t,[{key:"isOptimizada",value:function(){return this.optimizada}},{key:"setOptimizada",value:function(t){this.optimizada=t}},{key:"isEliminada",value:function(){return this.eliminada}},{key:"setEliminada",value:function(t){this.eliminada=t}},{key:"getTipoInstruccion",value:function(){return this.tipo}},{key:"changeReferencia",value:function(t){this.identificador=t}},{key:"getReferencia",value:function(){return this.identificador}},{key:"setCodigo3D",value:function(t){this.codigo3D=t}},{key:"getCodigo3D",value:function(){return this.codigo3D="goto "+this.identificador+";",this.codigo3D}}]),t}()},,,,,,,,,,,function(t,e,i){"use strict";i.r(e),i.d(e,"Main",(function(){return s}));var n=i(6),r=i(7),s=function(){function t(e,i,r,s,o){Object(n.a)(this,t),this.fila=s,this.codigo3Dir=r,this.columna=o,this.tipo=e,this.listaInstrucciones=i}return Object(r.a)(t,[{key:"getCodigo3Dir",value:function(){var t="void main() {\n";return this.listaInstrucciones.forEach((function(e){t+="    "+e.getCodigo3D()+"\n"})),t+="}"}},{key:"setCodigo3Dir",value:function(t){this.codigo3Dir=t}},{key:"optimizar",value:function(){return""}}]),t}()},function(t,e,i){"use strict";i.r(e),i.d(e,"Metodo",(function(){return s}));var n=i(6),r=i(7),s=function(){function t(e,i,r,s,o){Object(n.a)(this,t),this.fila=s,this.columna=o,this.tipo=e,this.codigo3Dir=r,this.listaInstrucciones=i}return Object(r.a)(t,[{key:"getCodigo3Dir",value:function(){var t="void "+this.codigo3Dir+"() {\n";return this.listaInstrucciones.forEach((function(e){t+="    "+e.getCodigo3D()+"\n"})),t+="}"}},{key:"setCodigo3Dir",value:function(t){this.codigo3Dir=t}},{key:"optimizar",value:function(){}}]),t}()},,,,,,,,function(t,e){},function(t,e){},function(t,e,i){"use strict";i.r(e),i.d(e,"Nodo",(function(){return s}));var n=i(6),r=i(7),s=function(){function t(e,i,r,s){var o=this;Object(n.a)(this,t),this.id=e,this.valor=i,this.padre=r,this.hijos=s,this.hijos.forEach((function(t){t.setPadre(o)}))}return Object(r.a)(t,[{key:"agregarHijo",value:function(t){this.hijos.push(t)}},{key:"setPadre",value:function(t){this.padre=t}}]),t}()},function(t,e,i){"use strict";i.r(e),i.d(e,"Flwor",(function(){return s}));var n=i(6),r=i(7),s=function(){function t(e,i,r,s){Object(n.a)(this,t),this.linea=r,this.columna=s,this.retType=i,this.opcionales=e}return Object(r.a)(t,[{key:"ejecutar",value:function(t,e){return this.opcionales.forEach((function(i){i.ejecutar(t,e)})),this.retType.ejecutar(t,e)}}]),t}()},function(t,e,i){"use strict";i.r(e),i.d(e,"Where",(function(){return h}));var n=i(6),r=i(7),s=i(17),o=i(3),a=i(38),c=i(20),l=i(10),h=function(){function t(e,i,r,s,o){Object(n.a)(this,t),this.linea=s,this.columna=o,this.identificador=e,this.condicion=i,this.fromRoot=r}return Object(r.a)(t,[{key:"isFromRoot",value:function(){return this.fromRoot}},{key:"ejecutar",value:function(t,e){var i=this,n=[],r=t.obtenerSimbolo(this.identificador);if(null!=r){if(this.isFromRoot()&&r.valor.forEach((function(t){var e=t.valor,r=i.condicion.getValor(e);null!=r&&(void 0!=r.tsimbolos&&r.tsimbolos.length>0||void 0===r.tsimbolos&&r)&&(n=n.concat(t))})),0==n.length&&!this.isFromRoot()){var h=null;if(this.condicion instanceof a.Operacion){h=this.condicion.op_izq;var u=[];r.valor.forEach((function(t){var n=new l.Nodo(h.getValorInicial(e),l.TipoNodo.IDENTIFIER,i.linea,i.columna);n.fromRoot=!1,new c.Consulta([n],i.linea,i.columna).ejecutar(t.valor).length>0&&u.push(t)})),u.length>0&&u.forEach((function(t){var e=i.condicion.getValor(t.getValor());null!=e&&(void 0!=e.tsimbolos&&e.tsimbolos.length>0||void 0===e.tsimbolos&&e)&&(n=n.concat(t))}))}}var f=new s.a(o.a.XQ_VAR,this.identificador,n,this.linea,this.columna);t.sobreEscribirSimbolo(this.identificador,f)||console.log("Error, no se pudo sobreescribir simbolo: $",this.identificador)}else console.log("ERROR WHERE, SIMBOLO NO ENCONTRADO: ",r)}}]),t}()},function(t,e,i){"use strict";i.r(e),i.d(e,"For",(function(){return s}));var n=i(6),r=i(7),s=function(){function t(e,i,r){Object(n.a)(this,t),this.linea=i,this.columna=r,this.listaFor=e}return Object(r.a)(t,[{key:"ejecutar",value:function(t,e){for(var i=0;i<this.listaFor.length;i++){this.listaFor[i].ejecutar(t,e)}}}]),t}()},function(t,e,i){"use strict";i.r(e),i.d(e,"Let",(function(){return a}));var n=i(6),r=i(7),s=i(17),o=i(3),a=function(){function t(e,i,r,s,o,a,c,l){Object(n.a)(this,t),this.linea=r,this.columna=s,this.consultas=i,this.listaEnteros=c,this.identifier=e,this.expresion=l,void 0!=o&&void 0!=a&&(this.desde=+o,this.hasta=+a)}return Object(r.a)(t,[{key:"ejecutar",value:function(t,e){console.log("Se ejecuta let; ID ",this.identifier);var i=[];if(void 0!=this.consultas){this.consultas.forEach((function(t){i.push(t.ejecutar(e))}));var n=new s.a(o.a.XQ_VAR,this.identifier,i,this.linea,this.columna);t.agregarSimbolo(this.identifier,n)}else if(void 0!=this.listaEnteros){var r=new s.a(o.a.XQ_VAR,this.identifier,this.listaEnteros,this.linea,this.columna);t.agregarSimbolo(this.identifier,r)}else if(void 0!=this.desde&&void 0!=this.hasta){for(var a=this.desde;a<=this.hasta;a++)console.log("i: ",a),i.push(""+a);var c=new s.a(o.a.XQ_VAR,this.identifier,i,this.linea,this.columna);t.agregarSimbolo(this.identifier,c),console.log("SIMBOLO: ",t.obtenerSimbolo(this.identifier))}else if(void 0!=this.expresion){var l=new s.a(o.a.XQ_VAR,this.identifier,this.expresion.getValor(t),this.linea,this.columna);t.agregarSimbolo(this.identifier,l)}}}]),t}()},function(t,e,i){"use strict";i.r(e),i.d(e,"OrderBy",(function(){return l}));var n=i(9),r=i(6),s=i(7),o=i(17),a=i(3),c=i(20),l=function(){function t(e,i,n){Object(r.a)(this,t),this.linea=i,this.columna=n,this.listaSort=e}return Object(s.a)(t,[{key:"ejecutar",value:function(t,e){var i=[],n=this.listaSort[0],r=t.obtenerSimbolo(n.identifier);i=this.ordenarPorCriterios(i,r,0);var s=new o.a(a.a.XQ_VAR,n.identifier,i,this.linea,this.columna);t.sobreEscribirSimbolo(n.identifier,s)}},{key:"ordenarPorCriterios",value:function(t,e,i){for(var r=[],s=this.listaSort[i],o=0;o<e.valor.length;o++)for(var a=new c.Consulta(s.listaNodos,this.linea,this.columna),l=e.valor[o].valor,h=a.ejecutar(l),u=0;u<h.length;u++){var f=h[u],g=this.obtenerTexto(f);if(null!=g){var m=!1;if(o>0){for(var d=0;d<o;d++){var p=+g,b=+r[d];if(isNaN(p)||isNaN(b)){if(r[d]>g){var E=this.reOrdenar(r,g,t,e.valor[o],d),T=Object(n.a)(E,2);r=T[0],t=T[1],m=!0;break}if(r[d]===g&&void 0!=this.listaSort[i+1]&&this.desempatar(e.valor[o],t[d],i+1)){m=!0;var I=this.reOrdenar(r,g,t,e.valor[o],d),y=Object(n.a)(I,2);r=y[0],t=y[1];break}}else{if(b>p){var v=this.reOrdenar(r,g,t,e.valor[o],d),A=Object(n.a)(v,2);r=A[0],t=A[1],m=!0;break}if(b===p&&void 0!=this.listaSort[i+1]&&this.desempatar(e.valor[o],t[d],i+1)){m=!0;var _=this.reOrdenar(r,g,t,e.valor[o],d),O=Object(n.a)(_,2);r=O[0],t=O[1];break}}}m||(r.push(g),t.push(e.valor[o]))}else r.push(g),t.push(e.valor[o])}}return t}},{key:"desempatar",value:function(t,e,i){for(var n=this.listaSort[i],r=new c.Consulta(n.listaNodos,this.linea,this.columna),s=t.valor,o=r.ejecutar(s),a=e.valor,l=r.ejecutar(a),h=0;h<o.length;h++){var u=o[h],f=this.obtenerTexto(u);if(null!=f)for(var g=0;g<l.length;g++){var m=l[g],d=this.obtenerTexto(m);if(null!=d){var p=+f,b=+d;if(isNaN(p)||isNaN(b)){if(d>f)return!0;if(d===f&&void 0!=this.listaSort[i+1])return this.desempatar(t,e,i+1)}else{if(b>p)return!0;if(b===p&&void 0!=this.listaSort[i+1])return this.desempatar(t,e,i+1)}}}}return!1}},{key:"reOrdenar",value:function(t,e,i,n,r){for(var s=[],o=[],a=0;a<t.length;a++)a===r&&(s.push(e),o.push(n)),s.push(t[a]),o.push(i[a]);return[s,o]}},{key:"obtenerTexto",value:function(t){for(var e=0;e<t.valor.tsimbolos.length;e++)if(t.valor.tsimbolos[e].valor.getTipo()===a.a.STRING)return t.valor.tsimbolos[e].valor.getValor();return null}}]),t}()},function(t,e,i){"use strict";i.r(e),i.d(e,"Sort",(function(){return r}));var n=i(6),r=function t(e,i,r,s){Object(n.a)(this,t),this.linea=r,this.columna=s,this.identifier=e,this.listaNodos=i}},function(t,e,i){"use strict";i.r(e),i.d(e,"CondicionIf",(function(){return o}));var n=i(6),r=i(7),s=i(20),o=function(){function t(e,i,r,s,o,a,c){Object(n.a)(this,t),this.etiqueta=r,this.identificador=e,this.listaNodos=i,this.funcionXQ=s,this.linea=a,this.columna=c,this.vacio=o}return Object(r.a)(t,[{key:"isVacio",value:function(){return this.vacio}},{key:"obtenerResponse",value:function(t){if(void 0!=this.identificador&&void 0!=this.listaNodos){var e=new s.Consulta(this.listaNodos,this.linea,this.columna);return[].concat(e.ejecutar(t.valor))}if(void 0!=this.funcionXQ){var i=[];return i=i.concat(this.funcionXQ.getSobreEntornoXML(t.valor))}return[]}}]),t}()},function(t,e,i){"use strict";i.r(e),i.d(e,"Html",(function(){return s}));var n=i(6),r=i(7),s=function(){function t(e,i,r,s,o,a,c,l){Object(n.a)(this,t),this.linea=c,this.listaVarCall=o,this.columna=l,this.isUnica=a,this.identifier=e,this.listaHtml=s,this.atributos=i,this.texto=r}return Object(r.a)(t,[{key:"ejecutar",value:function(t){}}]),t}()},function(t,e,i){"use strict";i.r(e),i.d(e,"IfThenElse",(function(){return s}));var n=i(6),r=i(7),s=function(){function t(e,i,r,s,o,a,c,l){Object(n.a)(this,t),this.linea=c,this.columna=l,this.identificador=e,this.condicion=i,this.condicionElse=o,this.condicionThen=r,this.listaElseIf=s,this.fromRoot=a}return Object(r.a)(t,[{key:"isFromRoot",value:function(){return this.fromRoot}},{key:"ejecutar",value:function(t,e){var i=this,n=[],r=t.obtenerSimbolo(this.identificador);return this.isFromRoot()&&r.valor.forEach((function(t){var e=t.valor,r=i.condicion.getValor(e);if(null!=r&&void 0!=r)if(void 0!==r.tsimbolos&&r.tsimbolos.length>0)i.condicionThen.isVacio()||(n=n.concat(i.condicionThen.obtenerResponse(t)));else if(void 0===r.tsimbolos&&r)i.condicionThen.isVacio()||(n=n.concat(i.condicionThen.obtenerResponse(t)));else{for(var s=!1,o=0;o<i.listaElseIf.length;o++){var a=i.listaElseIf[o];if(a.condicionCumple(e)){s=!0,n=n.concat(a.obtenerResponse(t));break}}s||i.condicionElse.isVacio()||(n=n.concat(i.condicionElse.obtenerResponse(t)))}else{for(var c=!1,l=0;l<i.listaElseIf.length;l++){var h=i.listaElseIf[l];if(h.condicionCumple(e)){c=!0,n=n.concat(h.obtenerResponse(t));break}}c||i.condicionElse.isVacio()||(n=n.concat(i.condicionElse.obtenerResponse(t)))}})),n}}]),t}()},function(t,e,i){"use strict";i.r(e),i.d(e,"ElseIf",(function(){return s}));var n=i(6),r=i(7),s=function(){function t(e,i,r,s,o){Object(n.a)(this,t),this.identifier=e,this.condicion=i,this.respThen=r,this.fila=s,this.columna=o}return Object(r.a)(t,[{key:"condicionCumple",value:function(t){var e=this.condicion.getValor(t);return null!=e&&void 0!=e&&(void 0!==e.tsimbolos&&e.tsimbolos.length>0||!(void 0!==e.tsimbolos||!e))}},{key:"obtenerResponse",value:function(t){return this.respThen.isVacio()?[]:this.respThen.obtenerResponse(t)}}]),t}()},function(t,e,i){"use strict";i.r(e),i.d(e,"VarCall",(function(){return s}));var n=i(6),r=i(7),s=function(){function t(e,i,r,s,o){Object(n.a)(this,t),this.linea=s,this.columna=o,this.identifier=e,this.listaNodos=i,this.flwor=r}return Object(r.a)(t,[{key:"ejecutar",value:function(t){}}]),t}()},,,,,,,,,,,function(t,e,i){"use strict";(function(t,n){var r=function(){var t=function(t,e,i,n){for(i=i||{},n=t.length;n--;i[t[n]]=e);return i},e=[1,10],n=[1,9],r=[2,5,6],s=[1,13],o=[1,14],a=[1,19],c=[2,12],l=[1,18],h=[2,7,10,13,14],u=[1,38],f=[1,34],g=[1,35],m=[1,36],d=[1,37],p=[1,39],b=[1,40],E=[1,41],T=[1,42],I=[1,43],y=[1,44],v=[2,6,8,13,22,23,24,25,26,27,28,29,30],A=[2,31],_={trace:function(){},yy:{},symbols_:{error:2,START:3,ENCABEZADO:4,EOF:5,lt:6,interrog:7,xml:8,LISTAATRIBUTOS:9,gt:10,LISTAELEMENTOS:11,ELEMENTO:12,identifier:13,diag:14,TEXTCONTENT:15,ATRIBUTOS:16,ATRIBUTO:17,asig:18,cadena:19,cadena2:20,TEXT:21,content:22,DoubleLiteral:23,IntegerLiteral:24,apos:25,less:26,greater:27,ampersand:28,apostrophe:29,quot:30,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",6:"lt",7:"interrog",8:"xml",10:"gt",13:"identifier",14:"diag",18:"asig",19:"cadena",20:"cadena2",22:"content",23:"DoubleLiteral",24:"IntegerLiteral",25:"apos",26:"less",27:"greater",28:"ampersand",29:"apostrophe",30:"quot"},productions_:[0,[3,2],[4,7],[4,2],[11,2],[11,1],[12,5],[12,9],[12,9],[12,8],[12,2],[9,1],[9,0],[16,2],[16,1],[17,3],[17,3],[17,1],[15,2],[15,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1]],performAction:function(t,e,i,n,r,s,o){var a=s.length-1;switch(r){case 1:var c=new S(R.cstXmlAsc.getId(),"START",null,[R.cstXmlAsc.obtenerUltimoNodo()]);return R.cstXmlAsc.setRaiz(c),s[a-1];case 2:s[a].unshift(new O(s[a-4],"",o[a-6].first_line,o[a-6].first_column,s[a-3],[],!0)),this.$=s[a];var l=R.cstXmlAsc.obtenerUltimoNodo(),h=R.cstXmlAsc.obtenerUltimoNodo();R.cstXmlAsc.agregarPila(new S(R.cstXmlAsc.getId(),"ENCABEZADO",null,[new S(R.cstXmlAsc.getId(),"lt",null,[new S(R.cstXmlAsc.getId(),"<",null,[])]),new S(R.cstXmlAsc.getId(),"interrog",null,[new S(R.cstXmlAsc.getId(),"?",null,[])]),new S(R.cstXmlAsc.getId(),"xml",null,[new S(R.cstXmlAsc.getId(),s[a-4].toString().replaceAll('"',""),null,[])]),h,new S(R.cstXmlAsc.getId(),"interrog",null,[new S(R.cstXmlAsc.getId(),"?",null,[])]),new S(R.cstXmlAsc.getId(),"gt",null,[new S(R.cstXmlAsc.getId(),">",null,[])]),l]));break;case 3:k.default.agregarError("sint\xe1ctico","Token inesperado '"+t+"'",o[a-1].first_line,o[a-1].first_column),this.$=s[a],R.cstXmlAsc.agregarPila(new S(R.cstXmlAsc.getId(),"ENCABEZADO",null,[R.cstXmlAsc.obtenerUltimoNodo()]));break;case 4:null!==s[a-1]?(null!==s[a]&&s[a-1].push(s[a]),this.$=s[a-1]):null!==s[a]?this.$=[s[a-1]]:this.$=[];var u=R.cstXmlAsc.obtenerUltimoNodo(),f=R.cstXmlAsc.obtenerUltimoNodo();R.cstXmlAsc.agregarPila(new S(R.cstXmlAsc.getId(),"LISTAELEMENTOS",null,[f,u]));break;case 5:null!==s[a]?this.$=[s[a]]:this.$=[];var g=new S(R.cstXmlAsc.getId(),"LISTAELEMENTOS",null,[R.cstXmlAsc.obtenerUltimoNodo()]);R.cstXmlAsc.agregarPila(g);break;case 6:this.$=new O(s[a-3],"",o[a-4].first_line,o[a-4].first_column,s[a-2],[],!0),R.cstXmlAsc.agregarPila(new S(R.cstXmlAsc.getId(),"ELEMENTO",null,[new S(R.cstXmlAsc.getId(),"lt",null,[new S(R.cstXmlAsc.getId(),s[a-4].toString().replaceAll('"',""),null,[])]),new S(R.cstXmlAsc.getId(),"identificador",null,[new S(R.cstXmlAsc.getId(),s[a-3].toString().replaceAll('"',""),null,[])]),R.cstXmlAsc.obtenerUltimoNodo(),new S(R.cstXmlAsc.getId(),"diag",null,[new S(R.cstXmlAsc.getId(),s[a-1].toString().replaceAll('"',""),null,[])]),new S(R.cstXmlAsc.getId(),"gt",null,[new S(R.cstXmlAsc.getId(),s[a].toString().replaceAll('"',""),null,[])])]));break;case 7:console.log(O),s[a-7]===s[a-1]?this.$=new O(s[a-7],s[a-4].toString().replaceAll('"',""),o[a-8].first_line,o[a-8].first_column,s[a-6],[],!1):(console.log(k.default),console.log("Linea 111: Error semantico: Las etiquetas deben ser iguales:\n"+s[a-7]+"!="+s[a-1]+" \natributos: "+s[a-6]+"\ntexto: \n"+s[a-4]),k.default.agregarError("semantico","Las etiquetas deben ser iguales",o[a-8].first_line,o[a-8].first_column),this.$=null);var m=R.cstXmlAsc.obtenerUltimoNodo(),d=R.cstXmlAsc.obtenerUltimoNodo();R.cstXmlAsc.agregarPila(new S(R.cstXmlAsc.getId(),"ELEMENTO",null,[new S(R.cstXmlAsc.getId(),"lt",null,[new S(R.cstXmlAsc.getId(),s[a-8].toString().replaceAll('"',""),null,[])]),new S(R.cstXmlAsc.getId(),"identificador",null,[new S(R.cstXmlAsc.getId(),s[a-7].toString().replaceAll('"',""),null,[])]),d,new S(R.cstXmlAsc.getId(),"gt",null,[new S(R.cstXmlAsc.getId(),s[a-5].toString().replaceAll('"',""),null,[])]),m,new S(R.cstXmlAsc.getId(),"lt",null,[new S(R.cstXmlAsc.getId(),s[a-3].toString().replaceAll('"',""),null,[])]),new S(R.cstXmlAsc.getId(),"diag",null,[new S(R.cstXmlAsc.getId(),s[a-2].toString().replaceAll('"',""),null,[])]),new S(R.cstXmlAsc.getId(),"identificador",null,[new S(R.cstXmlAsc.getId(),s[a-1].toString().replaceAll('"',""),null,[])]),new S(R.cstXmlAsc.getId(),"gt",null,[new S(R.cstXmlAsc.getId(),s[a].toString().replaceAll('"',""),null,[])])]));break;case 8:s[a-7]===s[a-1]?this.$=new O(s[a-7],"",o[a-8].first_line,o[a-8].first_column,s[a-6],s[a-4],!1):(console.log(k.default),console.log("Linea 120: Error semantico: Las etiquetas deben ser iguales"),k.default.agregarError("semantico","Las etiquetas deben ser iguales",o[a-8].first_line,o[a-8].first_column),this.$=null);var p=R.cstXmlAsc.obtenerUltimoNodo(),b=R.cstXmlAsc.obtenerUltimoNodo();R.cstXmlAsc.agregarPila(new S(R.cstXmlAsc.getId(),"ELEMENTO",null,[new S(R.cstXmlAsc.getId(),"lt",null,[new S(R.cstXmlAsc.getId(),s[a-8].toString().replaceAll('"',""),null,[])]),new S(R.cstXmlAsc.getId(),"identificador",null,[new S(R.cstXmlAsc.getId(),s[a-7].toString().replaceAll('"',""),null,[])]),b,new S(R.cstXmlAsc.getId(),"gt",null,[new S(R.cstXmlAsc.getId(),s[a-5].toString().replaceAll('"',""),null,[])]),p,new S(R.cstXmlAsc.getId(),"lt",null,[new S(R.cstXmlAsc.getId(),s[a-3].toString().replaceAll('"',""),null,[])]),new S(R.cstXmlAsc.getId(),"diag",null,[new S(R.cstXmlAsc.getId(),s[a-2].toString().replaceAll('"',""),null,[])]),new S(R.cstXmlAsc.getId(),"identificador",null,[new S(R.cstXmlAsc.getId(),s[a-1].toString().replaceAll('"',""),null,[])]),new S(R.cstXmlAsc.getId(),"gt",null,[new S(R.cstXmlAsc.getId(),s[a].toString().replaceAll('"',""),null,[])])]));break;case 9:s[a-6]===s[a-1]?this.$=new O(s[a-6],"",o[a-7].first_line,o[a-7].first_column,s[a-5],[],!1):(console.log(k.default),console.log("Linea 129: Error semantico: Las etiquetas deben ser iguales"),k.default.agregarError("semantico","Las etiquetas deben ser iguales",o[a-7].first_line,o[a-7].first_column),this.$=null),R.cstXmlAsc.agregarPila(new S(R.cstXmlAsc.getId(),"ELEMENTO",null,[new S(R.cstXmlAsc.getId(),"lt",null,[new S(R.cstXmlAsc.getId(),s[a-7].toString().replaceAll('"',""),null,[])]),new S(R.cstXmlAsc.getId(),"identificador",null,[new S(R.cstXmlAsc.getId(),s[a-6].toString().replaceAll('"',""),null,[])]),R.cstXmlAsc.obtenerUltimoNodo(),new S(R.cstXmlAsc.getId(),"gt",null,[new S(R.cstXmlAsc.getId(),s[a-4].toString().replaceAll('"',""),null,[])]),new S(R.cstXmlAsc.getId(),"lt",null,[new S(R.cstXmlAsc.getId(),s[a-3].toString().replaceAll('"',""),null,[])]),new S(R.cstXmlAsc.getId(),"diag",null,[new S(R.cstXmlAsc.getId(),s[a-2].toString().replaceAll('"',""),null,[])]),new S(R.cstXmlAsc.getId(),"identificador",null,[new S(R.cstXmlAsc.getId(),s[a-1].toString().replaceAll('"',""),null,[])]),new S(R.cstXmlAsc.getId(),"gt",null,[new S(R.cstXmlAsc.getId(),s[a].toString().replaceAll('"',""),null,[])])]));break;case 10:console.log("Entra a error sintactico"),k.default.agregarError("sintactico","Token inesperado '"+t+"'",o[a-1].first_line,o[a-1].first_column),this.$=null,R.cstXmlAsc.agregarPila(new S(R.cstXmlAsc.getId(),"ELEMENTO",null,[]));break;case 11:this.$=s[a],R.cstXmlAsc.agregarPila(new S(R.cstXmlAsc.getId(),"LISTAATRIBUTOS",null,[R.cstXmlAsc.obtenerUltimoNodo()]));break;case 12:this.$=[],R.cstXmlAsc.agregarPila(new S(R.cstXmlAsc.getId(),"LISTAATRIBUTOS",null,[new S(R.cstXmlAsc.getId(),"epsilon",null,[])]));break;case 13:s[a-1].push(s[a]),this.$=s[a-1];var E=R.cstXmlAsc.obtenerUltimoNodo(),T=R.cstXmlAsc.obtenerUltimoNodo();R.cstXmlAsc.agregarPila(new S(R.cstXmlAsc.getId(),"ATRIBUTOS",null,[T,E]));break;case 14:this.$=[s[a]],R.cstXmlAsc.agregarPila(new S(R.cstXmlAsc.getId(),"ATRIBUTOS",null,[R.cstXmlAsc.obtenerUltimoNodo()]));break;case 15:case 16:this.$=new N(s[a-2].toString().replaceAll('"',""),s[a],o[a-2].first_line,o[a-2].first_column),R.cstXmlAsc.agregarPila(new S(R.cstXmlAsc.getId(),"ATRIBUTO",null,[new S(R.cstXmlAsc.getId(),"identificador",null,[new S(R.cstXmlAsc.getId(),s[a-2].toString().replaceAll('"',""),null,[])]),new S(R.cstXmlAsc.getId(),"asignacion",null,[new S(R.cstXmlAsc.getId(),s[a-1].toString().replaceAll('"',""),null,[])]),new S(R.cstXmlAsc.getId(),"cadena",null,[new S(R.cstXmlAsc.getId(),s[a].toString().replaceAll('"',""),null,[])])]));break;case 17:console.log("Entra a error Atribut sintactico"),k.default.agregarError("sintactico","Token inesperado '"+t+"'",o[a].first_line,o[a].first_column),this.$=new N("","",o[a].first_line,o[a].first_column),R.cstXmlAsc.agregarPila(new S(R.cstXmlAsc.getId(),"ATRIBUTO",null,[]));break;case 18:s[a-1]=s[a-1]+" "+s[a],this.$=s[a-1];var I=R.cstXmlAsc.obtenerUltimoNodo(),y=R.cstXmlAsc.obtenerUltimoNodo();R.cstXmlAsc.agregarPila(new S(R.cstXmlAsc.getId(),"TEXTCONTENT",null,[y,I]));break;case 19:this.$=s[a],R.cstXmlAsc.agregarPila(new S(R.cstXmlAsc.getId(),"TEXTCONTENT",null,[R.cstXmlAsc.obtenerUltimoNodo()]));break;case 20:this.$=s[a].toString().replaceAll('"',""),R.cstXmlAsc.agregarPila(new S(R.cstXmlAsc.getId(),"TEXT",null,[new S(R.cstXmlAsc.getId(),"identificador",null,[new S(R.cstXmlAsc.getId(),s[a].toString().replaceAll('"',""),null,[])])]));break;case 21:this.$=s[a].toString().replaceAll('"',""),R.cstXmlAsc.agregarPila(new S(R.cstXmlAsc.getId(),"TEXT",null,[new S(R.cstXmlAsc.getId(),"content",null,[new S(R.cstXmlAsc.getId(),s[a].toString().replaceAll('"',""),null,[])])]));break;case 22:this.$=s[a].toString().replaceAll('"',""),R.cstXmlAsc.agregarPila(new S(R.cstXmlAsc.getId(),"TEXT",null,[new S(R.cstXmlAsc.getId(),"double",null,[new S(R.cstXmlAsc.getId(),s[a].toString().replaceAll('"',""),null,[])])]));break;case 23:this.$=s[a].toString().replaceAll('"',""),R.cstXmlAsc.agregarPila(new S(R.cstXmlAsc.getId(),"TEXT",null,[new S(R.cstXmlAsc.getId(),"integer",null,[new S(R.cstXmlAsc.getId(),s[a].toString().replaceAll('"',""),null,[])])]));break;case 24:this.$=s[a].toString(),R.cstXmlAsc.agregarPila(new S(R.cstXmlAsc.getId(),"TEXT",null,[new S(R.cstXmlAsc.getId(),"identificador",null,[new S(R.cstXmlAsc.getId(),s[a].toString().replaceAll('"',""),null,[])])]));break;case 25:this.$=s[a].toString().replaceAll('"',""),R.cstXmlAsc.agregarPila(new S(R.cstXmlAsc.getId(),"TEXT",null,[new S(R.cstXmlAsc.getId(),"comilla simple",null,[new S(R.cstXmlAsc.getId(),s[a].toString().replaceAll('"',""),null,[])])]));break;case 26:this.$="<",R.cstXmlAsc.agregarPila(new S(R.cstXmlAsc.getId(),"TEXT",null,[new S(R.cstXmlAsc.getId(),"menor que",null,[new S(R.cstXmlAsc.getId(),s[a].toString().replaceAll('"',""),null,[])])]));break;case 27:this.$=">",R.cstXmlAsc.agregarPila(new S(R.cstXmlAsc.getId(),"TEXT",null,[new S(R.cstXmlAsc.getId(),"mayor que",null,[new S(R.cstXmlAsc.getId(),s[a].toString().replaceAll('"',""),null,[])])]));break;case 28:this.$="&",R.cstXmlAsc.agregarPila(new S(R.cstXmlAsc.getId(),"TEXT",null,[new S(R.cstXmlAsc.getId(),"ampersand",null,[new S(R.cstXmlAsc.getId(),s[a].toString().replaceAll('"',""),null,[])])]));break;case 29:this.$="'",R.cstXmlAsc.agregarPila(new S(R.cstXmlAsc.getId(),"TEXT",null,[new S(R.cstXmlAsc.getId(),"apostrofe",null,[new S(R.cstXmlAsc.getId(),s[a].toString().replaceAll('"',""),null,[])])]));break;case 30:this.$="''",R.cstXmlAsc.agregarPila(new S(R.cstXmlAsc.getId(),"TEXT",null,[new S(R.cstXmlAsc.getId(),"comilla doble",null,[new S(R.cstXmlAsc.getId(),'"',null,[])])]));break;case 31:this.$=s[a].toString().replaceAll('"',""),R.cstXmlAsc.agregarPila(new S(R.cstXmlAsc.getId(),"TEXT",null,[]))}},table:[{2:[1,4],3:1,4:2,6:[1,3]},{1:[3]},{5:[1,5]},{7:[1,6]},{2:e,6:n,11:7,12:8},{1:[2,1]},{8:[1,11]},{2:e,5:[2,3],6:n,12:12},t(r,[2,5]),{13:s},{10:o},{2:a,7:c,9:15,13:l,16:16,17:17},t(r,[2,4]),t([10,14],c,{16:16,17:17,9:20,2:a,13:l}),t(r,[2,10]),{7:[1,21]},t([7,10,14],[2,11],{17:22,2:a,13:l}),t(h,[2,14]),{18:[1,23]},t(h,[2,17]),{10:[1,25],14:[1,24]},{10:[1,26]},t(h,[2,13]),{19:[1,27],20:[1,28]},{10:[1,29]},{2:[1,45],6:[1,32],8:u,11:31,12:8,13:f,15:30,21:33,22:g,23:m,24:d,25:p,26:b,27:E,28:T,29:I,30:y},{2:e,6:n,11:46,12:8},t(h,[2,15]),t(h,[2,16]),t(r,[2,6]),{2:[1,49],6:[1,47],8:u,13:f,21:48,22:g,23:m,24:d,25:p,26:b,27:E,28:T,29:I,30:y},{2:e,6:[1,50],12:12},{13:s,14:[1,51]},t(v,[2,19]),t(v,[2,20]),t(v,[2,21]),t(v,[2,22]),t(v,[2,23]),t(v,[2,24]),t(v,[2,25]),t(v,[2,26]),t(v,[2,27]),t(v,[2,28]),t(v,[2,29]),t(v,[2,30]),t(v,A,{10:o}),{2:e,5:[2,2],6:n,12:12},{14:[1,52]},t(v,[2,18]),t(v,A),{13:s,14:[1,53]},{13:[1,54]},{13:[1,55]},{13:[1,56]},{10:[1,57]},{10:[1,58]},{10:[1,59]},t(r,[2,9]),t(r,[2,7]),t(r,[2,8])],defaultActions:{5:[2,1]},parseError:function(t,e){if(!e.recoverable){var i=new Error(t);throw i.hash=e,i}this.trace(t)},parse:function(t){var e=this,i=[0],n=[null],r=[],s=this.table,o="",a=0,c=0,l=0,h=2,u=1,f=r.slice.call(arguments,1),g=Object.create(this.lexer),m={yy:{}};for(var d in this.yy)Object.prototype.hasOwnProperty.call(this.yy,d)&&(m.yy[d]=this.yy[d]);g.setInput(t,m.yy),m.yy.lexer=g,m.yy.parser=this,"undefined"==typeof g.yylloc&&(g.yylloc={});var p=g.yylloc;r.push(p);var b=g.options&&g.options.ranges;function E(t){i.length=i.length-2*t,n.length=n.length-t,r.length=r.length-t}"function"===typeof m.yy.parseError?this.parseError=m.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var T,I,y,v,A,_,O,N,k,S=function(){var t;return"number"!==typeof(t=g.lex()||u)&&(t=e.symbols_[t]||t),t},R={};;){if(y=i[i.length-1],this.defaultActions[y]?v=this.defaultActions[y]:(null!==T&&"undefined"!=typeof T||(T=S()),v=s[y]&&s[y][T]),"undefined"===typeof v||!v.length||!v[0]){var w,D=function(t){for(var e=i.length-1,n=0;;){if(h.toString()in s[t])return n;if(0===t||e<2)return!1;t=i[e-=2],++n}},P="";if(l)I!==u&&(w=D(y));else{for(_ in w=D(y),k=[],s[y])this.terminals_[_]&&_>h&&k.push("'"+this.terminals_[_]+"'");P=g.showPosition?"Parse error on line "+(a+1)+":\n"+g.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[T]||T)+"'":"Parse error on line "+(a+1)+": Unexpected "+(T==u?"end of input":"'"+(this.terminals_[T]||T)+"'"),this.parseError(P,{text:g.match,token:this.terminals_[T]||T,line:g.yylineno,loc:p,expected:k,recoverable:!1!==w})}if(3==l){if(T===u||I===u)throw new Error(P||"Parsing halted while starting to recover from another error.");c=g.yyleng,o=g.yytext,a=g.yylineno,p=g.yylloc,T=S()}if(!1===w)throw new Error(P||"Parsing halted. No suitable error recovery rule available.");E(w),I=T==h?null:T,T=h,y=i[i.length-1],v=s[y]&&s[y][h],l=3}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+y+", token: "+T);switch(v[0]){case 1:i.push(T),n.push(g.yytext),r.push(g.yylloc),i.push(v[1]),T=null,I?(T=I,I=null):(c=g.yyleng,o=g.yytext,a=g.yylineno,p=g.yylloc,l>0&&l--);break;case 2:if(O=this.productions_[v[1]][1],R.$=n[n.length-O],R._$={first_line:r[r.length-(O||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(O||1)].first_column,last_column:r[r.length-1].last_column},b&&(R._$.range=[r[r.length-(O||1)].range[0],r[r.length-1].range[1]]),"undefined"!==typeof(A=this.performAction.apply(R,[o,c,a,m.yy,v[1],n,r].concat(f))))return A;O&&(i=i.slice(0,-1*O*2),n=n.slice(0,-1*O),r=r.slice(0,-1*O)),i.push(this.productions_[v[1]][0]),n.push(R.$),r.push(R._$),N=s[i[i.length-2]][i[i.length-1]],i.push(N);break;case 3:return!0}}return!0}},O=i(70).Objeto,N=i(53).Atributo,k=i(8),S=i(113).Nodo,R=i(54),w={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===n.length?this.yylloc.first_column:0)+n[n.length-i.length].length-i[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var i,n,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],i=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var s in r)this[s]=r[s];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,i,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),s=0;s<r.length;s++)if((i=this._input.match(this.rules[r[s]]))&&(!e||i[0].length>e[0].length)){if(e=i,n=s,this.options.backtrack_lexer){if(!1!==(t=this.test_match(i,r[s])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,e,i,n){switch(i){case 0:break;case 1:this.begin("comment");break;case 2:this.popState();break;case 3:break;case 4:return 6;case 5:return 10;case 6:return 18;case 7:return 14;case 8:return 7;case 9:return 25;case 10:return"xml";case 11:return 26;case 12:return 27;case 13:return 28;case 14:return"apostrophe";case 15:return"quot";case 16:return 23;case 17:return 24;case 18:return 13;case 19:return 19;case 20:return 20;case 21:return 22;case 22:return 5;case 23:console.log(k.default),k.default.agregarError("lexico","Simbolo inesperado "+e.yytext,e.yylloc.first_line,e.yylloc.first_column)}},rules:[/^(?:\s+)/,/^(?:<!--)/,/^(?:-->)/,/^(?:.)/,/^(?:<)/,/^(?:>)/,/^(?:=)/,/^(?:\/)/,/^(?:\?)/,/^(?:')/,/^(?:[xX][mM][lL])/,/^(?:&lt;)/,/^(?:&gt;)/,/^(?:&amp;)/,/^(?:&apos;)/,/^(?:&quot;)/,/^(?:(([0-9]+\.[0-9]*)|(\.[0-9]+)))/,/^(?:[0-9]+)/,/^(?:[a-zA-Z_][a-zA-Z0-9_\xf1\xd1.-]*)/,/^(?:("((\\([\'\"\\]))|([^\"\\]+))*"))/,/^(?:('((\\([\'\"\\]))|([^\'\\]))*'))/,/^(?:([^<]))/,/^(?:$)/,/^(?:.)/],conditions:{comment:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],inclusive:!0},INITIAL:{rules:[0,1,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],inclusive:!0}}};function D(){this.yy={}}return _.lexer=w,D.prototype=_,_.Parser=D,new D}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(n){n[1]||(console.log("Usage: "+n[0]+" FILE"),t.exit(1));var r=i(49).readFileSync(i(50).normalize(n[1]),"utf8");return e.parser.parse(r)},i.c[i.s]===n&&e.main(t.argv.slice(1))}).call(this,i(37),i(48)(t))},function(t,e,i){"use strict";(function(t,n){var r=function(){var t=function(t,e,i,n){for(i=i||{},n=t.length;n--;i[t[n]]=e);return i},e=[1,9],n=[1,10],r=[1,11],s=[1,12],o=[1,15],a=[37,40,43,50,64],c=[1,23],l=[1,33],h=[1,36],u=[1,29],f=[1,30],g=[1,31],m=[1,32],d=[1,34],p=[1,42],b=[19,37,40,43,50,64],E=[19,26,37,40,43,50,64],T=[5,19,37,40,43,50,64],I=[2,92],y=[1,66],v=[15,44,94,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131],A=[2,154],_=[1,87],O=[1,90],N=[1,92],k=[1,91],S=[1,93],R=[1,94],w=[1,85],D=[1,86],P=[1,98],U=[1,97],L=[1,95],C=[1,96],x=[19,37,40,43,44,50,64,94,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131],$=[1,103],X=[19,26,37,40,43,50,64,88],j=[1,110],F=[1,113],M=[1,115],G=[1,114],Q=[5,15,19,26,37,40,43,44,50,58,64,76,88,94,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131],B=[1,122],V=[1,125],H=[1,126],z=[1,127],q=[1,128],Y=[1,129],W=[1,130],Z=[1,131],J=[1,132],K=[1,133],tt=[1,134],et=[1,135],it=[1,136],nt=[1,137],rt=[1,160],st=[1,152],ot=[1,153],at=[1,154],ct=[1,155],lt=[1,156],ht=[1,157],ut=[1,158],ft=[1,159],gt=[1,161],mt=[1,162],dt=[1,163],pt=[1,164],bt=[1,165],Et=[1,166],Tt=[1,167],It=[1,168],yt=[1,169],vt=[1,170],At=[15,19,37,40,43,44,50,64,94,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131],_t=[5,15,19,26,37,38,40,43,44,50,58,64,76,88,94,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131],Ot=[2,125],Nt=[1,191],kt=[5,15,19,26,37,40,43,44,50,58,64,76,94,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131],St=[2,153],Rt=[1,241],wt=[1,246],Dt=[15,26],Pt=[2,52],Ut=[1,251],Lt=[19,44,94,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131],Ct=[1,282],xt=[1,287],$t=[1,283],Xt=[15,19,37,40,43,44,50,64,115,116,118,119,120,121,122,123,124,126,127,128,129,130,131],jt=[15,19,37,40,43,44,50,64,118,119,120,121,122,123,124,126,127,128,129,130,131],Ft=[1,303],Mt=[1,306],Gt=[1,304],Qt=[1,305],Bt=[2,67],Vt=[5,15,19,37,40,43,50,58,64,76],Ht=[1,351],zt=[1,352],qt=[1,353],Yt=[1,354],Wt=[1,355],Zt=[1,361],Jt=[15,17,26],Kt={trace:function(){},yy:{},symbols_:{error:2,START:3,DEFINICIONXQUERY:4,EOF:5,FLWOR:6,USERFUNCTION:7,declare:8,function:9,PREFIX:10,dospuntos:11,identifier:12,parA:13,ARGUMENTOS:14,parC:15,TIPOFUNCION:16,corA:17,LISTAINSTR:18,corC:19,CUERPOFUNCION:20,OPCIONAL:21,RETURNTYPE:22,as:23,DATATYPE:24,LISTAARGS:25,coma:26,PARAM:27,dolar:28,decimal:29,string:30,boolean:31,double:32,integer:33,local:34,LISTAOP:35,LISTAOPCIONALES:36,where:37,diag:38,EXPRESION:39,order:40,by:41,LISTASORT:42,let:43,igual:44,LISTACONSULTAS:45,IntegerLiteral:46,to:47,LISTAENTEROS:48,PRIMITIVAXPATH:49,for:50,LISTADECLARACIONES:51,DECLARACIONFOR:52,in:53,at:54,LISTAVARIABLECALL:55,VARIABLECALL:56,llaveA:57,llaveC:58,LISTANODOS:59,TEXTCONTENT:60,TEXT:61,content:62,DoubleLiteral:63,return:64,FUNCIONXQUERY:65,IFDEF:66,LLAMADAFUNCION:67,LISTALLAMADA:68,VARLLAMADA:69,identifer:70,NODO:71,if:72,then:73,TIPOIF:74,LISTAELSEIF:75,else:76,ELSEIF:77,CONDICION:78,DECRETURN:79,LISTAATRIBUTOS:80,ATRIBUTOS:81,ATRIBUTO:82,asig:83,cadena:84,cadena2:85,SORT:86,CONSULTA:87,andSelect:88,MASTIPOS:89,TIPONODO:90,AXES:91,attr:92,PREDICATE:93,asterisco:94,dot:95,FUNCIONES:96,ancestor:97,NODETEST:98,ancestorSelf:99,attribute:100,child:101,descendant:102,descendantSelf:103,following:104,followingSib:105,namespace:106,parent:107,preced:108,precedSib:109,self:110,textFunc:111,nodeFunc:112,PRIMITIVA:113,OPERACION:114,mas:115,menos:116,div:117,lte:118,lt:119,gte:120,gt:121,nequal:122,or:123,and:124,mod:125,reserv_eq:126,reserv_ne:127,reserv_lt:128,reserv_le:129,reserv_gt:130,reserv_ge:131,data:132,"upper-case":133,substring:134,"lower-case":135,number:136,lastFunc:137,positionFunc:138,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",8:"declare",9:"function",11:"dospuntos",12:"identifier",13:"parA",15:"parC",17:"corA",19:"corC",23:"as",26:"coma",28:"dolar",29:"decimal",30:"string",31:"boolean",32:"double",33:"integer",34:"local",37:"where",38:"diag",40:"order",41:"by",43:"let",44:"igual",46:"IntegerLiteral",47:"to",50:"for",53:"in",54:"at",57:"llaveA",58:"llaveC",62:"content",63:"DoubleLiteral",64:"return",70:"identifer",72:"if",73:"then",76:"else",83:"asig",84:"cadena",85:"cadena2",88:"andSelect",92:"attr",94:"asterisco",95:"dot",97:"ancestor",99:"ancestorSelf",100:"attribute",101:"child",102:"descendant",103:"descendantSelf",104:"following",105:"followingSib",106:"namespace",107:"parent",108:"preced",109:"precedSib",110:"self",111:"textFunc",112:"nodeFunc",115:"mas",116:"menos",117:"div",118:"lte",119:"lt",120:"gte",121:"gt",122:"nequal",123:"or",124:"and",125:"mod",126:"reserv_eq",127:"reserv_ne",128:"reserv_lt",129:"reserv_le",130:"reserv_gt",131:"reserv_ge",132:"data",133:"upper-case",134:"substring",135:"lower-case",136:"number",137:"lastFunc",138:"positionFunc"},productions_:[0,[3,2],[4,1],[4,1],[7,12],[18,2],[18,1],[20,1],[20,1],[16,4],[16,0],[14,1],[14,0],[25,3],[25,1],[27,4],[24,1],[24,1],[24,1],[24,1],[24,1],[10,1],[6,2],[35,1],[35,0],[36,2],[36,1],[21,5],[21,6],[21,3],[21,6],[21,10],[21,8],[21,6],[21,2],[51,3],[51,1],[52,4],[52,8],[52,6],[52,7],[55,2],[55,1],[56,3],[56,5],[60,2],[60,1],[61,1],[61,1],[61,1],[61,1],[48,3],[48,1],[22,4],[22,2],[22,2],[22,4],[22,2],[67,6],[68,3],[68,1],[69,2],[69,1],[66,12],[66,13],[66,9],[75,2],[75,0],[77,10],[74,3],[74,3],[74,1],[74,2],[78,1],[79,1],[79,3],[79,1],[80,1],[80,0],[81,2],[81,1],[82,3],[82,3],[42,3],[42,1],[86,3],[45,3],[45,1],[87,2],[87,2],[87,1],[59,2],[59,0],[71,2],[71,3],[71,2],[71,3],[90,1],[90,4],[90,1],[90,1],[89,3],[89,3],[89,2],[89,3],[89,2],[89,1],[91,4],[91,4],[91,4],[91,4],[91,4],[91,4],[91,4],[91,4],[91,4],[91,4],[91,4],[91,4],[91,4],[98,2],[98,2],[98,2],[98,2],[93,3],[93,0],[39,1],[39,1],[39,1],[114,3],[114,3],[114,3],[114,3],[114,3],[114,3],[114,3],[114,3],[114,3],[114,3],[114,3],[114,3],[114,3],[114,3],[114,3],[114,3],[114,3],[114,3],[114,3],[114,3],[49,1],[49,1],[49,1],[49,1],[49,2],[113,0],[113,2],[113,2],[113,1],[113,2],[113,1],[113,1],[65,6],[65,6],[65,10],[65,6],[65,6],[65,6],[65,4],[65,4],[65,8],[65,4],[65,4],[65,4],[96,1],[96,1],[96,1],[96,1]],performAction:function(t,e,i,n,r,s,o){var a=s.length-1;switch(r){case 1:return this.$=s[a-1],this.$;case 2:case 3:case 7:case 8:case 11:case 16:case 17:case 18:case 19:case 20:case 21:case 23:case 46:case 57:case 62:case 71:case 73:case 77:case 90:case 128:case 175:this.$=s[a];break;case 4:this.$=s[a-11];break;case 5:case 25:case 41:case 66:case 79:s[a-1].push(s[a]),this.$=s[a-1];break;case 6:case 26:case 42:this.$=[s[a]];break;case 9:case 15:this.$=s[a-3];break;case 10:this.$=null;break;case 12:this.$=[];break;case 13:s[a-2].push(s[a-2]),this.$=s[a-2];break;case 14:case 52:case 60:case 80:case 84:this.$=[s[a]];break;case 22:this.$=new he(s[a-1],s[a],o[a-1].first_line,o[a-1].first_column);break;case 24:case 67:case 78:case 125:this.$=[];break;case 27:this.$=new ge(s[a-2],s[a],!0,o[a-4].first_line,o[a-4].first_column);break;case 28:this.$=new ge(s[a-3],s[a],!1,o[a-5].first_line,o[a-5].first_column);break;case 29:this.$=new pe(s[a],o[a-2].first_line,o[a-2].first_column);break;case 30:this.$=new de(s[a-3],s[a],o[a-5].first_line,o[a-5].first_column);break;case 31:this.$=new de(s[a-7],null,o[a-9].first_line,o[a-9].first_column,+s[a-3],+s[a-1]);break;case 32:this.$=new de(s[a-5],null,o[a-7].first_line,o[a-7].first_column,void 0,void 0,s[a-1]);break;case 33:this.$=new de(s[a-3],null,o[a-5].first_line,o[a-5].first_column,void 0,void 0,void 0,s[a]);break;case 34:this.$=new me(s[a],o[a-1].first_line,o[a-1].first_column);break;case 35:s[a-2].push(s[a-1]),this.$=s[a-2];break;case 36:this.$=[s[a]];break;case 37:this.$=new Ee(be.NORMAL,s[a-2],s[a],o[a-3].first_line,o[a-3].first_column);break;case 38:this.$=new Ee(be.ITERATIVO,s[a-6],null,o[a-7].first_line,o[a-7].first_column,void 0,+s[a-3],+s[a-1]);break;case 39:this.$=new Ee(be.ITERATIVO,s[a-4],null,o[a-5].first_line,o[a-5].first_column,void 0,void 0,void 0,s[a-1]);break;case 40:this.$=new Ee(be.AT,s[a-5],s[a],o[a-6].first_line,o[a-6].first_column,s[a-2]);break;case 43:this.$=new _e(void 0,void 0,s[a-1],o[a-2].first_line,o[a-2].first_column);break;case 44:this.$=new _e(s[a-2],s[a-1],void 0,o[a-4].first_line,o[a-4].first_column);break;case 45:s[a-1]=s[a-1]+" "+s[a],this.$=s[a-1];break;case 47:case 48:this.$=s[a].toString().replaceAll('"',"");break;case 49:case 50:this.$=s[a].toString().replaceAll('"',"");break;case 51:case 83:s[a-2].push(s[a]),this.$=s[a-2];break;case 53:this.$=new ue(fe.NORMAL,s[a-1],s[a],void 0,void 0,void 0,o[a-3].first_line,o[a-3].first_column);break;case 54:this.$=new ue(fe.FUNCIONXQUERY,void 0,void 0,void 0,void 0,s[a],o[a-1].first_line,o[a-1].first_column);break;case 55:this.$=new ue(fe.IFTHENELSE,void 0,void 0,void 0,s[a],void 0,o[a-1].first_line,o[a-1].first_column);break;case 56:case 61:case 69:this.$=s[a-1];break;case 58:this.$="Llamada";break;case 59:s[a-2].push(s[a]),this.$=s[a-2];break;case 63:this.$=new ve(s[a-8],s[a-6],s[a-3],s[a-2],s[a],!0,o[a-11].first_line,o[a-11].first_column);break;case 64:this.$=new ve(s[a-9],s[a-6],s[a-3],s[a-2],s[a],!1,o[a-12].first_line,o[a-12].first_column);break;case 65:new ve(void 0,s[a-6],s[a-3],s[a-2],s[a],!1,o[a-8].first_line,o[a-8].first_column);break;case 68:this.$=new Ae(s[a-5],s[a-3],s[a],o[a-9].first_line,o[a-9].first_column);break;case 70:case 124:this.$=s[a-1];break;case 72:this.$=new Ie(void 0,void 0,void 0,void 0,!0,o[a-1].first_line,o[a-1].first_column);break;case 74:this.$=new Ie(void 0,void 0,void 0,s[a],!1,o[a].first_line,o[a].first_column);break;case 75:this.$=new Ie(s[a-1],s[a],void 0,void 0,!1,o[a-2].first_line,o[a-2].first_column);break;case 76:this.$=new Ie(void 0,void 0,void 0,void 0,!1,o[a].first_line,o[a].first_column);break;case 81:case 82:this.$=new Ne(s[a-2].toString().replaceAll('"',""),s[a],o[a-2].first_line,o[a-2].first_column);break;case 85:this.$=new Te(s[a-1],s[a],o[a-2].first_line,o[a-2].first_column);break;case 86:this.$=[new ie(s[a-2],o[a-2].first_line,o[a-2].first_column)],this.$=this.$.concat(s[a]);break;case 87:this.$=[new ie(s[a],o[a].first_line,o[a].first_column)];break;case 88:this.$=[new ne(s[a-1],ae.IDENTIFIER,o[a-1].first_line,o[a-1].first_column)],s[a].length>0&&(this.$=this.$.concat(s[a]));break;case 89:this.$=[s[a-1]],s[a].length>0&&(this.$=this.$.concat(s[a]));break;case 91:this.$=[s[a-1]],this.$=this.$.concat(s[a]);break;case 92:this.$=[];break;case 93:s[a].fromRoot=!0,this.$=s[a];break;case 94:s[a].fromRoot=!1,this.$=s[a];break;case 95:console.log("Entra a error sintactico de one diag"),le.default.agregarError("sintactico","Token inesperado '"+t+"'",o[a-1].first_line,o[a-1].first_column),this.$=new ne(s[a],ae.NODOERROR,o[a-1].first_line,o[a-1].first_column);break;case 96:console.log("Entra a error sintactico de two diags"),le.default.agregarError("sintactico","Token inesperado '"+t+"'",o[a-2].first_line,o[a-2].first_column),this.$=new ne(s[a],ae.NODOERROR,o[a-2].first_line,o[a-2].first_column);break;case 97:this.$=new ne(s[a],ae.IDENTIFIER,o[a].first_line,o[a].first_column);break;case 98:this.$=new ne(s[a-3],ae.IDENTIFIER,o[a-3].first_line,o[a-3].first_column,new re(s[a-1],o[a-1].first_line,o[a-1].first_column));break;case 99:case 100:case 126:case 173:case 174:case 176:this.$=s[a];break;case 101:case 102:this.$=new ne(s[a-1],ae.ATRIBUTO,o[a-2].first_line,o[a-2].first_column);break;case 103:this.$=new ne(s[a-1],ae.DOT,o[a-1].first_line,o[a-1].first_column);break;case 104:this.$=new ne(s[a-2]+s[a-1],ae.DOTDOT,o[a-2].first_line,o[a-2].first_column);break;case 105:this.$=new ne(s[a-1],ae.ASTERISCO,o[a-1].first_line,o[a-1].first_column);break;case 106:this.$=new ne(s[a],ae.FUNCION,o[a].first_line,o[a].first_column);break;case 107:this.$=new ne(s[a-3],ae.AXIS,o[a-3].first_line,o[a-3].first_column,void 0,ce.ANCESTOR,s[a-1]);break;case 108:this.$=new ne(s[a-3],ae.AXIS,o[a-3].first_line,o[a-3].first_column,void 0,ce.ANCESTORORSELF,s[a-1]);break;case 109:this.$=new ne(s[a-3],ae.AXIS,o[a-3].first_line,o[a-3].first_column,void 0,ce.ATTRIBUTE,s[a-1]);break;case 110:this.$=new ne(s[a-3],ae.AXIS,o[a-3].first_line,o[a-3].first_column,void 0,ce.CHILD,s[a-1]);break;case 111:this.$=new ne(s[a-3],ae.AXIS,o[a-3].first_line,o[a-3].first_column,void 0,ce.DESCENDANT,s[a-1]);break;case 112:this.$=new ne(s[a-3],ae.AXIS,o[a-3].first_line,o[a-3].first_column,void 0,ce.DESCENDANTORSELF,s[a-1]);break;case 113:this.$=new ne(s[a-3],ae.AXIS,o[a-3].first_line,o[a-3].first_column,void 0,ce.FOLLOWING,s[a-1]);break;case 114:this.$=new ne(s[a-3],ae.AXIS,o[a-3].first_line,o[a-3].first_column,void 0,ce.FOLLOWINGSIBLING,s[a-1]);break;case 115:this.$=new ne(s[a-3],ae.AXIS,o[a-3].first_line,o[a-3].first_column,void 0,ce.NAMESPACE,s[a-1]);break;case 116:this.$=new ne(s[a-3],ae.AXIS,o[a-3].first_line,o[a-3].first_column,void 0,ce.PARENT,s[a-1]);break;case 117:this.$=new ne(s[a-3],ae.AXIS,o[a-3].first_line,o[a-3].first_column,void 0,ce.PRECEDING,s[a-1]);break;case 118:this.$=new ne(s[a-3],ae.AXIS,o[a-3].first_line,o[a-3].first_column,void 0,ce.PRECEDINGSIBLING,s[a-1]);break;case 119:this.$=new ne(s[a-3],ae.AXIS,o[a-3].first_line,o[a-3].first_column,void 0,ce.SELF,s[a-1]);break;case 120:s[a]instanceof re?this.$=new ne(s[a-1],ae.IDENTIFIER,o[a-1].first_line,o[a-1].first_column):this.$=new ne(s[a-1],ae.IDENTIFIER,o[a-1].first_line,o[a-1].first_column,s[a]);break;case 121:case 122:s[a]instanceof re?this.$=new ne(s[a-1],ae.FUNCION,o[a-1].first_line,o[a-1].first_column):this.$=new ne(s[a-1],ae.FUNCION,o[a-1].first_line,o[a-1].first_column,s[a]);break;case 123:s[a]instanceof re?this.$=new ne(s[a-1],ae.ASTERISCO,o[a-1].first_line,o[a-1].first_column):this.$=new ne(s[a-1],ae.ASTERISCO,o[a-1].first_line,o[a-1].first_column,s[a]);break;case 127:this.$=s[a];break;case 129:this.$=new ee(oe.MULTIPLICACION,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column,!0);break;case 130:this.$=new ee(oe.SUMA,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column,!0);break;case 131:this.$=new ee(oe.RESTA,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column,!0);break;case 132:this.$=new ee(oe.DIVISION,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column,!0);break;case 133:case 145:this.$=new ee(oe.MENORIGUALQUE,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column,!0);break;case 134:case 144:this.$=new ee(oe.MENORQUE,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column,!0);break;case 135:case 147:this.$=new ee(oe.MAYORIGUALQUE,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column,!0);break;case 136:case 146:this.$=new ee(oe.MAYORQUE,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column,!0);break;case 137:case 142:this.$=new ee(oe.IGUAL,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column,!0);break;case 138:case 143:this.$=new ee(oe.DIFERENTEQUE,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column,!0);break;case 139:this.$=new ee(oe.OR,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column,!0);break;case 140:this.$=new ee(oe.AND,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column,!0);break;case 141:this.$=new ee(oe.MOD,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column,!0);break;case 148:this.$=new ee(oe.PAR,s[a-1],null,o[a-2].first_line,o[a-2].first_column,!0);break;case 149:this.$=new te(s[a],se.DOUBLE,o[a].first_line,o[a].first_column,!0);break;case 150:this.$=new te(s[a],se.INTEGER,o[a].first_line,o[a].first_column,!0);break;case 151:case 152:this.$=new te(s[a],se.CADENA,o[a].first_line,o[a].first_column,!0);break;case 153:this.$=new te(s[a-1],se.XQUERYIDENTIFIER,o[a-1].first_line,o[a-1].first_column,!0);break;case 155:case 156:this.$=new te(s[a],se.ATRIBUTO,o[a-1].first_line,o[a-1].first_column,!0);break;case 157:this.$=new te(s[a],se.DOT,o[a].first_line,o[a].first_column,!0);break;case 158:s[a].length>0?(this.$=[new ne(s[a-1],ae.IDENTIFIER,o[a-1].first_line,o[a-1].first_column)],this.$=this.$.concat(s[a]),this.$=new te(this.$,se.CONSULTA,o[a-1].first_line,o[a-1].first_column)):this.$=new te(s[a-1],se.IDENTIFIER,o[a-1].first_line,o[a-1].first_column);break;case 159:this.$=new te(s[a],se.FUNCION,o[a].first_line,o[a].first_column);break;case 160:this.$=new te(s[a],se.FUNCIONXQUERY,o[a].first_line,o[a].first_column);break;case 161:this.$=new ye(Oe.DATA,s[a-2],s[a-1],o[a-5].first_line,o[a-5].first_column);break;case 162:this.$=new ye(Oe.UPPERCASE,s[a-2],s[a-1],o[a-5].first_line,o[a-5].first_column);break;case 163:this.$=new ye(Oe.SUBSTRING,s[a-6],s[a-5],o[a-9].first_line,o[a-9].first_column,+s[a-3],+s[a-1]);break;case 164:this.$=new ye(Oe.LOWERCASE,s[a-2],s[a-1],o[a-5].first_line,o[a-5].first_column);break;case 165:this.$=new ye(Oe.STRING,s[a-2],s[a-1],o[a-5].first_line,o[a-5].first_column);break;case 166:this.$=new ye(Oe.NUMBER,s[a-2],s[a-1],o[a-5].first_line,o[a-5].first_column);break;case 167:this.$=new ye(Oe.DATA,void 0,void 0,o[a-3].first_line,o[a-3].first_column,void 0,void 0,s[a-1]);break;case 168:this.$=new ye(Oe.UPPERCASE,void 0,void 0,o[a-3].first_line,o[a-3].first_column,void 0,void 0,s[a-1]);break;case 169:this.$=new ye(Oe.SUBSTRING,void 0,void 0,o[a-7].first_line,o[a-7].first_column,+s[a-3],+s[a-1],s[a-5]);break;case 170:this.$=new ye(Oe.LOWERCASE,void 0,void 0,o[a-3].first_line,o[a-3].first_column,void 0,void 0,s[a-1]);break;case 171:this.$=new ye(Oe.STRING,void 0,void 0,o[a-3].first_line,o[a-3].first_column,void 0,void 0,s[a-1]);break;case 172:this.$=new ye(Oe.NUMBER,void 0,void 0,o[a-3].first_line,o[a-3].first_column,void 0,void 0,s[a-1])}},table:[{3:1,4:2,6:3,7:4,8:[1,6],21:8,35:5,36:7,37:e,40:n,43:r,50:s,64:[2,24]},{1:[3]},{5:[1,13]},{5:[2,2]},{5:[2,3]},{22:14,64:o},{9:[1,16]},{21:17,37:e,40:n,43:r,50:s,64:[2,23]},t(a,[2,26]),{28:[1,18]},{41:[1,19]},{28:[1,20]},{28:c,51:21,52:22},{1:[2,1]},{5:[2,22]},{13:[1,27],28:[1,24],30:l,34:h,65:25,66:26,67:28,72:[1,35],132:u,133:f,134:g,135:m,136:d},{10:37,34:[1,38]},t(a,[2,25]),{12:[1,39]},{28:p,42:40,86:41},{12:[1,43]},t(b,[2,34],{26:[1,44]}),t(E,[2,36]),{12:[1,45]},{12:[1,46]},t(T,[2,54]),t(T,[2,55]),{34:h,67:47},t(T,[2,57]),{13:[1,48]},{13:[1,49]},{13:[1,50]},{13:[1,51]},{13:[1,52]},{13:[1,53]},{13:[1,54]},{11:[1,55]},{11:[1,56]},{11:[2,21]},{38:[1,57]},t(b,[2,29],{26:[1,58]}),t(E,[2,84]),{12:[1,59]},{11:[1,60]},{28:c,52:61},{53:[1,62],54:[1,63]},t(T,I,{59:64,71:65,38:y}),{15:[1,67]},{28:[1,68],30:l,65:69,132:u,133:f,134:g,135:m,136:d},{28:[1,70],30:l,65:71,132:u,133:f,134:g,135:m,136:d},{28:[1,72],30:l,65:73,132:u,133:f,134:g,135:m,136:d},{28:[1,74],30:l,65:75,132:u,133:f,134:g,135:m,136:d},{28:[1,76],30:l,65:77,132:u,133:f,134:g,135:m,136:d},{28:[1,78],30:l,65:79,132:u,133:f,134:g,135:m,136:d},t(v,A,{39:81,113:82,114:83,49:84,96:88,65:89,12:_,13:O,28:[1,80],30:l,46:N,63:k,84:S,85:R,92:w,95:D,111:P,112:U,132:u,133:f,134:g,135:m,136:d,137:L,138:C}),{12:[1,99]},{12:[1,100]},t(x,A,{113:82,114:83,49:84,96:88,65:89,39:101,12:_,13:O,28:$,30:l,38:[1,102],46:N,63:k,84:S,85:R,92:w,95:D,111:P,112:U,132:u,133:f,134:g,135:m,136:d,137:L,138:C}),{28:p,86:104},t(E,I,{71:65,59:105,38:y}),{44:[1,106]},t(E,[2,35]),t(X,I,{71:65,45:107,87:109,89:111,59:112,96:116,12:j,13:[1,108],38:y,92:F,94:M,95:G,111:P,112:U,137:L,138:C}),{28:[1,117]},t(T,[2,53]),t(Q,I,{71:65,59:118,38:y}),{2:[1,121],12:B,38:[1,120],89:123,90:119,91:124,92:F,94:M,95:G,96:116,97:V,99:H,100:z,101:q,102:Y,103:W,104:Z,105:J,106:K,107:tt,108:et,109:it,110:nt,111:P,112:U,137:L,138:C},t(T,[2,56]),{12:[1,138]},{15:[1,139]},{12:[1,140]},{15:[1,141]},{12:[1,142]},{26:[1,143]},{12:[1,144]},{15:[1,145]},{12:[1,146]},{15:[1,147]},{12:[1,148]},{15:[1,149]},{12:[1,150]},{15:[1,151],44:rt,94:st,115:ot,116:at,117:ct,118:lt,119:ht,120:ut,121:ft,122:gt,123:mt,124:dt,125:pt,126:bt,127:Et,128:Tt,129:It,130:yt,131:vt},t(At,[2,126]),t(At,[2,127]),t(At,[2,128]),{12:[1,171],94:[1,172]},t(At,[2,157]),t(At,I,{71:65,59:173,38:y}),t(At,[2,159]),t(At,[2,160]),t(v,A,{113:82,114:83,49:84,96:88,65:89,39:174,12:_,13:O,28:$,30:l,46:N,63:k,84:S,85:R,92:w,95:D,111:P,112:U,132:u,133:f,134:g,135:m,136:d,137:L,138:C}),t(At,[2,149]),t(At,[2,150]),t(At,[2,151]),t(At,[2,152]),t(_t,[2,173]),t(_t,[2,174]),t(_t,[2,175]),t(_t,[2,176]),{13:[1,175]},{13:[1,176]},t(b,[2,27],{44:rt,94:st,115:ot,116:at,117:ct,118:lt,119:ht,120:ut,121:ft,122:gt,123:mt,124:dt,125:pt,126:bt,127:Et,128:Tt,129:It,130:yt,131:vt}),t(x,A,{113:82,114:83,49:84,96:88,65:89,39:177,12:_,13:O,28:$,30:l,46:N,63:k,84:S,85:R,92:w,95:D,111:P,112:U,132:u,133:f,134:g,135:m,136:d,137:L,138:C}),{12:[1,178]},t(E,[2,83]),t(E,[2,85]),t([19,37,40,43,50,64,88],I,{71:65,87:109,89:111,59:112,96:116,45:179,49:181,12:j,13:[1,180],28:$,38:y,46:N,63:k,84:S,85:R,92:F,94:M,95:G,111:P,112:U,137:L,138:C}),t(E,[2,37]),{46:[1,182],48:183},t(E,[2,87],{88:[1,184]}),t(X,I,{71:65,59:185,38:y}),t(X,I,{71:65,59:186,38:y}),t(X,[2,90]),{12:[1,187],94:[1,188]},t(_t,Ot,{93:189,17:Nt,95:[1,190]}),t(_t,Ot,{93:192,17:Nt}),t(_t,[2,106]),{12:[1,193]},t(Q,[2,91]),t(_t,[2,93]),{2:[1,195],12:B,89:123,90:194,91:124,92:F,94:M,95:G,96:116,97:V,99:H,100:z,101:q,102:Y,103:W,104:Z,105:J,106:K,107:tt,108:et,109:it,110:nt,111:P,112:U,137:L,138:C},t(_t,[2,95]),t(_t,[2,97],{17:[1,196]}),t(_t,[2,99]),t(_t,[2,100]),{11:[1,197]},{11:[1,198]},{11:[1,199]},{11:[1,200]},{11:[1,201]},{11:[1,202]},{11:[1,203]},{11:[1,204]},{11:[1,205]},{11:[1,206]},{11:[1,207]},{11:[1,208]},{11:[1,209]},{15:I,38:y,59:210,71:65},t(kt,[2,167]),{15:I,38:y,59:211,71:65},t(kt,[2,168]),{26:I,38:y,59:212,71:65},{46:[1,213]},{15:I,38:y,59:214,71:65},t(kt,[2,170]),{15:I,38:y,59:215,71:65},t(kt,[2,171]),{15:I,38:y,59:216,71:65},t(kt,[2,172]),t(v,St,{38:[1,217]}),{73:[1,218]},t(At,A,{113:82,114:83,49:84,96:88,65:89,39:219,12:_,13:O,28:$,30:l,46:N,63:k,84:S,85:R,92:w,95:D,111:P,112:U,132:u,133:f,134:g,135:m,136:d,137:L,138:C}),t(At,A,{113:82,114:83,49:84,96:88,65:89,39:220,12:_,13:O,28:$,30:l,46:N,63:k,84:S,85:R,92:w,95:D,111:P,112:U,132:u,133:f,134:g,135:m,136:d,137:L,138:C}),t(At,A,{113:82,114:83,49:84,96:88,65:89,39:221,12:_,13:O,28:$,30:l,46:N,63:k,84:S,85:R,92:w,95:D,111:P,112:U,132:u,133:f,134:g,135:m,136:d,137:L,138:C}),t(At,A,{113:82,114:83,49:84,96:88,65:89,39:222,12:_,13:O,28:$,30:l,46:N,63:k,84:S,85:R,92:w,95:D,111:P,112:U,132:u,133:f,134:g,135:m,136:d,137:L,138:C}),t(At,A,{113:82,114:83,49:84,96:88,65:89,39:223,12:_,13:O,28:$,30:l,46:N,63:k,84:S,85:R,92:w,95:D,111:P,112:U,132:u,133:f,134:g,135:m,136:d,137:L,138:C}),t(At,A,{113:82,114:83,49:84,96:88,65:89,39:224,12:_,13:O,28:$,30:l,46:N,63:k,84:S,85:R,92:w,95:D,111:P,112:U,132:u,133:f,134:g,135:m,136:d,137:L,138:C}),t(At,A,{113:82,114:83,49:84,96:88,65:89,39:225,12:_,13:O,28:$,30:l,46:N,63:k,84:S,85:R,92:w,95:D,111:P,112:U,132:u,133:f,134:g,135:m,136:d,137:L,138:C}),t(At,A,{113:82,114:83,49:84,96:88,65:89,39:226,12:_,13:O,28:$,30:l,46:N,63:k,84:S,85:R,92:w,95:D,111:P,112:U,132:u,133:f,134:g,135:m,136:d,137:L,138:C}),t(At,A,{113:82,114:83,49:84,96:88,65:89,39:227,12:_,13:O,28:$,30:l,46:N,63:k,84:S,85:R,92:w,95:D,111:P,112:U,132:u,133:f,134:g,135:m,136:d,137:L,138:C}),t(At,A,{113:82,114:83,49:84,96:88,65:89,39:228,12:_,13:O,28:$,30:l,46:N,63:k,84:S,85:R,92:w,95:D,111:P,112:U,132:u,133:f,134:g,135:m,136:d,137:L,138:C}),t(At,A,{113:82,114:83,49:84,96:88,65:89,39:229,12:_,13:O,28:$,30:l,46:N,63:k,84:S,85:R,92:w,95:D,111:P,112:U,132:u,133:f,134:g,135:m,136:d,137:L,138:C}),t(At,A,{113:82,114:83,49:84,96:88,65:89,39:230,12:_,13:O,28:$,30:l,46:N,63:k,84:S,85:R,92:w,95:D,111:P,112:U,132:u,133:f,134:g,135:m,136:d,137:L,138:C}),t(At,A,{113:82,114:83,49:84,96:88,65:89,39:231,12:_,13:O,28:$,30:l,46:N,63:k,84:S,85:R,92:w,95:D,111:P,112:U,132:u,133:f,134:g,135:m,136:d,137:L,138:C}),t(At,A,{113:82,114:83,49:84,96:88,65:89,39:232,12:_,13:O,28:$,30:l,46:N,63:k,84:S,85:R,92:w,95:D,111:P,112:U,132:u,133:f,134:g,135:m,136:d,137:L,138:C}),t(At,A,{113:82,114:83,49:84,96:88,65:89,39:233,12:_,13:O,28:$,30:l,46:N,63:k,84:S,85:R,92:w,95:D,111:P,112:U,132:u,133:f,134:g,135:m,136:d,137:L,138:C}),t(At,A,{113:82,114:83,49:84,96:88,65:89,39:234,12:_,13:O,28:$,30:l,46:N,63:k,84:S,85:R,92:w,95:D,111:P,112:U,132:u,133:f,134:g,135:m,136:d,137:L,138:C}),t(At,A,{113:82,114:83,49:84,96:88,65:89,39:235,12:_,13:O,28:$,30:l,46:N,63:k,84:S,85:R,92:w,95:D,111:P,112:U,132:u,133:f,134:g,135:m,136:d,137:L,138:C}),t(At,A,{113:82,114:83,49:84,96:88,65:89,39:236,12:_,13:O,28:$,30:l,46:N,63:k,84:S,85:R,92:w,95:D,111:P,112:U,132:u,133:f,134:g,135:m,136:d,137:L,138:C}),t(At,A,{113:82,114:83,49:84,96:88,65:89,39:237,12:_,13:O,28:$,30:l,46:N,63:k,84:S,85:R,92:w,95:D,111:P,112:U,132:u,133:f,134:g,135:m,136:d,137:L,138:C}),t(At,[2,155]),t(At,[2,156]),t(At,[2,158]),{15:[1,238],44:rt,94:st,115:ot,116:at,117:ct,118:lt,119:ht,120:ut,121:ft,122:gt,123:mt,124:dt,125:pt,126:bt,127:Et,128:Tt,129:It,130:yt,131:vt},{28:Rt,38:y,68:239,69:240,71:242},{14:243,15:[2,12],25:244,27:245,28:wt},t(b,[2,28],{44:rt,94:st,115:ot,116:at,117:ct,118:lt,119:ht,120:ut,121:ft,122:gt,123:mt,124:dt,125:pt,126:bt,127:Et,128:Tt,129:It,130:yt,131:vt}),t(At,St),t(b,[2,30]),{46:[1,247],48:248},t(b,[2,33]),t(Dt,Pt,{47:[1,249]}),{15:[1,250],26:Ut},t(X,I,{71:65,87:109,89:111,59:112,96:116,45:252,12:j,38:y,92:F,94:M,95:G,111:P,112:U,137:L,138:C}),t(X,[2,88]),t(X,[2,89]),t(_t,Ot,{93:253,17:Nt}),t(_t,Ot,{93:254,17:Nt}),t(_t,[2,103]),t(_t,Ot,{93:255,17:Nt}),t(Lt,A,{113:82,114:83,49:84,96:88,65:89,39:256,12:_,13:O,28:$,30:l,46:N,63:k,84:S,85:R,92:w,95:D,111:P,112:U,132:u,133:f,134:g,135:m,136:d,137:L,138:C}),t(_t,[2,105]),{53:[1,257]},t(_t,[2,94]),t(_t,[2,96]),t(Lt,A,{113:82,114:83,49:84,96:88,65:89,39:258,12:_,13:O,28:$,30:l,46:N,63:k,84:S,85:R,92:w,95:D,111:P,112:U,132:u,133:f,134:g,135:m,136:d,137:L,138:C}),{11:[1,259]},{11:[1,260]},{11:[1,261]},{11:[1,262]},{11:[1,263]},{11:[1,264]},{11:[1,265]},{11:[1,266]},{11:[1,267]},{11:[1,268]},{11:[1,269]},{11:[1,270]},{11:[1,271]},{15:[1,272]},{15:[1,273]},{26:[1,274]},{26:[1,275]},{15:[1,276]},{15:[1,277]},{15:[1,278]},t(v,A,{113:82,114:83,49:84,96:88,65:89,39:279,12:_,13:O,28:$,30:l,38:[1,280],46:N,63:k,84:S,85:R,92:w,95:D,111:P,112:U,132:u,133:f,134:g,135:m,136:d,137:L,138:C}),{13:Ct,28:xt,30:l,34:h,57:$t,65:286,67:288,74:281,78:284,79:285,132:u,133:f,134:g,135:m,136:d},t(At,[2,129]),t(Xt,[2,130],{94:st,117:ct,125:pt}),t(Xt,[2,131],{94:st,117:ct,125:pt}),t(At,[2,132]),t(jt,[2,133],{94:st,115:ot,116:at,117:ct,125:pt}),t(jt,[2,134],{94:st,115:ot,116:at,117:ct,125:pt}),t(jt,[2,135],{94:st,115:ot,116:at,117:ct,125:pt}),t(jt,[2,136],{94:st,115:ot,116:at,117:ct,125:pt}),t(jt,[2,137],{94:st,115:ot,116:at,117:ct,125:pt}),t(jt,[2,138],{94:st,115:ot,116:at,117:ct,125:pt}),t([15,19,37,40,43,50,64,123],[2,139],{44:rt,94:st,115:ot,116:at,117:ct,118:lt,119:ht,120:ut,121:ft,122:gt,124:dt,125:pt,126:bt,127:Et,128:Tt,129:It,130:yt,131:vt}),t([15,19,37,40,43,50,64,123,124],[2,140],{44:rt,94:st,115:ot,116:at,117:ct,118:lt,119:ht,120:ut,121:ft,122:gt,125:pt,126:bt,127:Et,128:Tt,129:It,130:yt,131:vt}),t(At,[2,141]),t(jt,[2,142],{94:st,115:ot,116:at,117:ct,125:pt}),t(jt,[2,143],{94:st,115:ot,116:at,117:ct,125:pt}),t(jt,[2,144],{94:st,115:ot,116:at,117:ct,125:pt}),t(jt,[2,145],{94:st,115:ot,116:at,117:ct,125:pt}),t(jt,[2,146],{94:st,115:ot,116:at,117:ct,125:pt}),t(jt,[2,147],{94:st,115:ot,116:at,117:ct,125:pt}),t(At,[2,148]),{15:[1,289],26:[1,290]},t(Dt,[2,60]),{70:[1,291]},t(Dt,[2,62]),{15:[1,292]},{15:[2,11],26:[1,293]},t(Dt,[2,14]),{12:[1,294]},t(Dt,Pt,{47:[1,295]}),{15:[1,296],26:Ut},{46:[1,297]},t(E,[2,39]),{46:[1,298]},t(E,[2,86]),t(_t,[2,101]),t(_t,[2,102]),t(_t,[2,104]),{19:[1,299],44:rt,94:st,115:ot,116:at,117:ct,118:lt,119:ht,120:ut,121:ft,122:gt,123:mt,124:dt,125:pt,126:bt,127:Et,128:Tt,129:It,130:yt,131:vt},t(X,I,{71:65,87:109,89:111,59:112,96:116,45:300,12:j,38:y,92:F,94:M,95:G,111:P,112:U,137:L,138:C}),{19:[1,301],44:rt,94:st,115:ot,116:at,117:ct,118:lt,119:ht,120:ut,121:ft,122:gt,123:mt,124:dt,125:pt,126:bt,127:Et,128:Tt,129:It,130:yt,131:vt},{12:Ft,94:Mt,98:302,111:Gt,112:Qt},{12:Ft,94:Mt,98:307,111:Gt,112:Qt},{12:Ft,94:Mt,98:308,111:Gt,112:Qt},{12:Ft,94:Mt,98:309,111:Gt,112:Qt},{12:Ft,94:Mt,98:310,111:Gt,112:Qt},{12:Ft,94:Mt,98:311,111:Gt,112:Qt},{12:Ft,94:Mt,98:312,111:Gt,112:Qt},{12:Ft,94:Mt,98:313,111:Gt,112:Qt},{12:Ft,94:Mt,98:314,111:Gt,112:Qt},{12:Ft,94:Mt,98:315,111:Gt,112:Qt},{12:Ft,94:Mt,98:316,111:Gt,112:Qt},{12:Ft,94:Mt,98:317,111:Gt,112:Qt},{12:Ft,94:Mt,98:318,111:Gt,112:Qt},t(kt,[2,161]),t(kt,[2,162]),{46:[1,319]},{46:[1,320]},t(kt,[2,164]),t(kt,[2,165]),t(kt,[2,166]),{15:[1,321],44:rt,94:st,115:ot,116:at,117:ct,118:lt,119:ht,120:ut,121:ft,122:gt,123:mt,124:dt,125:pt,126:bt,127:Et,128:Tt,129:It,130:yt,131:vt},t(v,A,{113:82,114:83,49:84,96:88,65:89,39:322,12:_,13:O,28:$,30:l,46:N,63:k,84:S,85:R,92:w,95:D,111:P,112:U,132:u,133:f,134:g,135:m,136:d,137:L,138:C}),{75:323,76:Bt},{13:Ct,15:[1,325],28:xt,30:l,34:h,57:$t,65:286,67:288,74:324,78:284,79:285,132:u,133:f,134:g,135:m,136:d},{13:Ct,28:xt,30:l,34:h,57:$t,65:286,67:288,74:326,78:284,79:285,132:u,133:f,134:g,135:m,136:d},t(Vt,[2,71]),t(Vt,[2,73]),t(Vt,[2,74]),{12:[1,327]},t(Vt,[2,76]),t(Vt,[2,58]),{28:Rt,38:y,69:328,71:242},t(Dt,[2,61]),{16:329,17:[2,10],23:[1,330]},{27:331,28:wt},{23:[1,332]},{46:[1,333]},t(b,[2,32]),{15:[1,334]},t(Dt,[2,51]),t(_t,[2,124]),t(E,[2,40]),t(_t,[2,98]),t(_t,[2,107]),t(_t,Ot,{93:335,17:Nt}),t(_t,Ot,{93:336,17:Nt}),t(_t,Ot,{93:337,17:Nt}),t(_t,Ot,{93:338,17:Nt}),t(_t,[2,108]),t(_t,[2,109]),t(_t,[2,110]),t(_t,[2,111]),t(_t,[2,112]),t(_t,[2,113]),t(_t,[2,114]),t(_t,[2,115]),t(_t,[2,116]),t(_t,[2,117]),t(_t,[2,118]),t(_t,[2,119]),{26:[1,339]},{15:[1,340]},{73:[1,341]},{15:[1,342],44:rt,94:st,115:ot,116:at,117:ct,118:lt,119:ht,120:ut,121:ft,122:gt,123:mt,124:dt,125:pt,126:bt,127:Et,128:Tt,129:It,130:yt,131:vt},{76:[1,343],77:344},{15:[1,345]},t(Vt,[2,72]),{58:[1,346]},t(Vt,I,{71:65,59:347,38:y}),t(Dt,[2,59]),{17:[1,348]},{12:[1,349]},t(Dt,[2,13]),{24:350,29:Ht,30:zt,31:qt,32:Yt,33:Wt},{15:[1,356]},t(E,[2,38]),t(_t,[2,120]),t(_t,[2,121]),t(_t,[2,122]),t(_t,[2,123]),{46:[1,357]},t(kt,[2,169]),{13:Ct,28:xt,30:l,34:h,57:$t,65:286,67:288,74:358,78:284,79:285,132:u,133:f,134:g,135:m,136:d},{73:[1,359]},{13:Ct,28:xt,30:l,34:h,57:$t,65:286,67:288,72:Zt,74:360,78:284,79:285,132:u,133:f,134:g,135:m,136:d},{76:[2,66]},t(Vt,[2,69]),t(Vt,[2,70]),t(Vt,[2,75]),{18:362,20:363,21:364,22:365,37:e,40:n,43:r,50:s,64:o},{11:[1,366]},t(Dt,[2,15]),t(Jt,[2,16]),t(Jt,[2,17]),t(Jt,[2,18]),t(Jt,[2,19]),t(Jt,[2,20]),t(b,[2,31]),{15:[1,367]},{75:368,76:Bt},{13:Ct,28:xt,30:l,34:h,57:$t,65:286,67:288,74:369,78:284,79:285,132:u,133:f,134:g,135:m,136:d},t(T,[2,65]),{13:[1,370]},{19:[1,371],20:372,21:364,22:365,37:e,40:n,43:r,50:s,64:o},t(b,[2,6]),t(b,[2,7]),t(b,[2,8]),{24:373,29:Ht,30:zt,31:qt,32:Yt,33:Wt},t(kt,[2,163]),{76:[1,374],77:344},{75:375,76:Bt},{28:[1,376]},{5:[2,4]},t(b,[2,5]),{17:[2,9]},{13:Ct,28:xt,30:l,34:h,57:$t,65:286,67:288,72:Zt,74:377,78:284,79:285,132:u,133:f,134:g,135:m,136:d},{76:[1,378],77:344},{12:[1,379]},t(T,[2,63]),{13:Ct,28:xt,30:l,34:h,57:$t,65:286,67:288,72:Zt,74:380,78:284,79:285,132:u,133:f,134:g,135:m,136:d},{38:[1,381]},t(T,[2,64]),t(v,A,{113:82,114:83,49:84,96:88,65:89,39:382,12:_,13:O,28:$,30:l,46:N,63:k,84:S,85:R,92:w,95:D,111:P,112:U,132:u,133:f,134:g,135:m,136:d,137:L,138:C}),{15:[1,383],44:rt,94:st,115:ot,116:at,117:ct,118:lt,119:ht,120:ut,121:ft,122:gt,123:mt,124:dt,125:pt,126:bt,127:Et,128:Tt,129:It,130:yt,131:vt},{73:[1,384]},{13:Ct,28:xt,30:l,34:h,57:$t,65:286,67:288,74:385,78:284,79:285,132:u,133:f,134:g,135:m,136:d},{76:[2,68]}],defaultActions:{3:[2,2],4:[2,3],13:[2,1],14:[2,22],38:[2,21],344:[2,66],371:[2,4],373:[2,9],385:[2,68]},parseError:function(t,e){if(!e.recoverable){var i=new Error(t);throw i.hash=e,i}this.trace(t)},parse:function(t){var e=this,i=[0],n=[null],r=[],s=this.table,o="",a=0,c=0,l=0,h=2,u=1,f=r.slice.call(arguments,1),g=Object.create(this.lexer),m={yy:{}};for(var d in this.yy)Object.prototype.hasOwnProperty.call(this.yy,d)&&(m.yy[d]=this.yy[d]);g.setInput(t,m.yy),m.yy.lexer=g,m.yy.parser=this,"undefined"==typeof g.yylloc&&(g.yylloc={});var p=g.yylloc;r.push(p);var b=g.options&&g.options.ranges;function E(t){i.length=i.length-2*t,n.length=n.length-t,r.length=r.length-t}"function"===typeof m.yy.parseError?this.parseError=m.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var T,I,y,v,A,_,O,N,k,S=function(){var t;return"number"!==typeof(t=g.lex()||u)&&(t=e.symbols_[t]||t),t},R={};;){if(y=i[i.length-1],this.defaultActions[y]?v=this.defaultActions[y]:(null!==T&&"undefined"!=typeof T||(T=S()),v=s[y]&&s[y][T]),"undefined"===typeof v||!v.length||!v[0]){var w,D=function(t){for(var e=i.length-1,n=0;;){if(h.toString()in s[t])return n;if(0===t||e<2)return!1;t=i[e-=2],++n}},P="";if(l)I!==u&&(w=D(y));else{for(_ in w=D(y),k=[],s[y])this.terminals_[_]&&_>h&&k.push("'"+this.terminals_[_]+"'");P=g.showPosition?"Parse error on line "+(a+1)+":\n"+g.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[T]||T)+"'":"Parse error on line "+(a+1)+": Unexpected "+(T==u?"end of input":"'"+(this.terminals_[T]||T)+"'"),this.parseError(P,{text:g.match,token:this.terminals_[T]||T,line:g.yylineno,loc:p,expected:k,recoverable:!1!==w})}if(3==l){if(T===u||I===u)throw new Error(P||"Parsing halted while starting to recover from another error.");c=g.yyleng,o=g.yytext,a=g.yylineno,p=g.yylloc,T=S()}if(!1===w)throw new Error(P||"Parsing halted. No suitable error recovery rule available.");E(w),I=T==h?null:T,T=h,y=i[i.length-1],v=s[y]&&s[y][h],l=3}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+y+", token: "+T);switch(v[0]){case 1:i.push(T),n.push(g.yytext),r.push(g.yylloc),i.push(v[1]),T=null,I?(T=I,I=null):(c=g.yyleng,o=g.yytext,a=g.yylineno,p=g.yylloc,l>0&&l--);break;case 2:if(O=this.productions_[v[1]][1],R.$=n[n.length-O],R._$={first_line:r[r.length-(O||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(O||1)].first_column,last_column:r[r.length-1].last_column},b&&(R._$.range=[r[r.length-(O||1)].range[0],r[r.length-1].range[1]]),"undefined"!==typeof(A=this.performAction.apply(R,[o,c,a,m.yy,v[1],n,r].concat(f))))return A;O&&(i=i.slice(0,-1*O*2),n=n.slice(0,-1*O),r=r.slice(0,-1*O)),i.push(this.productions_[v[1]][0]),n.push(R.$),r.push(R._$),N=s[i[i.length-2]][i[i.length-1]],i.push(N);break;case 3:return!0}}return!0}},te=i(0).Primitiva,ee=i(38).Operacion,ie=i(20).Consulta,ne=i(10).Nodo,re=i(79).Predicate,se=i(0).TipoPrim,oe=i(38).TipoOperacion,ae=i(10).TipoNodo,ce=i(10).TipoAxis,le=i(8),he=i(114).Flwor,ue=i(80).Return,fe=i(80).TipoReturn,ge=i(115).Where,me=i(116).For,de=i(117).Let,pe=i(118).OrderBy,be=i(81).TipoFor,Ee=i(81).DeclaracionFor,Te=i(119).Sort,Ie=i(120).CondicionIf,ye=i(82).FuncionXQuery,ve=(i(121).Html,i(122).IfThenElse),Ae=i(123).ElseIf,_e=i(124).VarCall,Oe=i(82).TipoFuncionXQ,Ne=i(53).Atributo,ke={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===n.length?this.yylloc.first_column:0)+n[n.length-i.length].length-i[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var i,n,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],i=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var s in r)this[s]=r[s];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,i,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),s=0;s<r.length;s++)if((i=this._input.match(this.rules[r[s]]))&&(!e||i[0].length>e[0].length)){if(e=i,n=s,this.options.backtrack_lexer){if(!1!==(t=this.test_match(i,r[s])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,i,n){switch(i){case 0:break;case 1:this.begin("comment");break;case 2:this.popState();break;case 3:break;case 4:return 28;case 5:return 44;case 6:return 38;case 7:return"dot";case 8:return"attr";case 9:return"corA";case 10:return"corC";case 11:return"andSelect";case 12:return"dospuntos";case 13:return"parA";case 14:return"parC";case 15:return"llaveA";case 16:return"llaveC";case 17:return"coma";case 18:return 94;case 19:return"mas";case 20:return"menos";case 21:return"div";case 22:return 118;case 23:return"gte";case 24:return 119;case 25:return 121;case 26:return"nequal";case 27:return"or";case 28:return"and";case 29:return"mod";case 30:return"for";case 31:return"in";case 32:return"to";case 33:return"at";case 34:return"let";case 35:return"where";case 36:return"order";case 37:return"by";case 38:return"return";case 39:return"if";case 40:return"else";case 41:return"then";case 42:return"reserv_eq";case 43:return"reserv_gt";case 44:return"reserv_ge";case 45:return"reserv_ne";case 46:return"reserv_le";case 47:return"reserv_lt";case 48:return"ancestorSelf";case 49:return"ancestor";case 50:return"attribute";case 51:return"child";case 52:return"descendantSelf";case 53:return"descendant";case 54:return"followingSib";case 55:return"following";case 56:return"namespace";case 57:return"parent";case 58:return"precedSib";case 59:return"preced";case 60:return"self";case 61:return"data";case 62:return"upper-case";case 63:return"substring";case 64:return"lower-case";case 65:return"number";case 66:return"declare";case 67:return"function";case 68:return"local";case 69:return"decimal";case 70:return"string";case 71:return"boolean";case 72:return"as";case 73:return"xs";case 74:return"lastFunc";case 75:return"positionFunc";case 76:return"nodeFunc";case 77:return"textFunc";case 78:return 63;case 79:return 46;case 80:return 12;case 81:return 84;case 82:return 85;case 83:console.error("Este es un error l\xe9xico: "+e.yytext+", en la linea: "+e.yylloc.first_line+", en la columna: "+e.yylloc.first_column);break;case 84:return 5}},rules:[/^(?:\s+)/i,/^(?:\(:)/i,/^(?::\))/i,/^(?:.)/i,/^(?:\$)/i,/^(?:=)/i,/^(?:\/)/i,/^(?:\.)/i,/^(?:@)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:\|)/i,/^(?::)/i,/^(?:\()/i,/^(?:\))/i,/^(?:\{)/i,/^(?:\})/i,/^(?:,)/i,/^(?:\*)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:div\b)/i,/^(?:<=)/i,/^(?:>=)/i,/^(?:<)/i,/^(?:>)/i,/^(?:!=)/i,/^(?:or\b)/i,/^(?:and\b)/i,/^(?:mod\b)/i,/^(?:for\b)/i,/^(?:in\b)/i,/^(?:to\b)/i,/^(?:at\b)/i,/^(?:let\b)/i,/^(?:where\b)/i,/^(?:order\b)/i,/^(?:by\b)/i,/^(?:return\b)/i,/^(?:if\b)/i,/^(?:else\b)/i,/^(?:then\b)/i,/^(?:eq\b)/i,/^(?:gt\b)/i,/^(?:ge\b)/i,/^(?:ne\b)/i,/^(?:le\b)/i,/^(?:lt\b)/i,/^(?:ancestor-or-self\b)/i,/^(?:ancestor\b)/i,/^(?:attribute\b)/i,/^(?:child\b)/i,/^(?:descendant-or-self\b)/i,/^(?:descendant\b)/i,/^(?:following-sibling\b)/i,/^(?:following\b)/i,/^(?:namespace\b)/i,/^(?:parent\b)/i,/^(?:preceding-sibling\b)/i,/^(?:preceding\b)/i,/^(?:self\b)/i,/^(?:data\b)/i,/^(?:upper-case\b)/i,/^(?:substring\b)/i,/^(?:lower-case\b)/i,/^(?:number\b)/i,/^(?:declare\b)/i,/^(?:function\b)/i,/^(?:local\b)/i,/^(?:decimal\b)/i,/^(?:string\b)/i,/^(?:boolean\b)/i,/^(?:as\b)/i,/^(?:xs\b)/i,/^(?:last\(\))/i,/^(?:position\(\))/i,/^(?:node\(\))/i,/^(?:text\(\))/i,/^(?:(([0-9]+\.[0-9]*)|(\.[0-9]+)))/i,/^(?:[0-9]+)/i,/^(?:[a-zA-Z_][a-zA-Z0-9_\xf1\xd1.-]*)/i,/^(?:("((\\([\'\"\\]))|([^\"\\]+))*"))/i,/^(?:('((\\([\'\"\\]))|([^\'\\]))*'))/i,/^(?:.)/i,/^(?:$)/i],conditions:{comment:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],inclusive:!0},INITIAL:{rules:[0,1,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],inclusive:!0}}};function Se(){this.yy={}}return Kt.lexer=ke,Se.prototype=Kt,Kt.Parser=Se,new Se}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(n){n[1]||(console.log("Usage: "+n[0]+" FILE"),t.exit(1));var r=i(49).readFileSync(i(50).normalize(n[1]),"utf8");return e.parser.parse(r)},i.c[i.s]===n&&e.main(t.argv.slice(1))}).call(this,i(37),i(48)(t))},function(t,e,i){"use strict";(function(t,n){var r=function(){var t=function(t,e,i,n){for(i=i||{},n=t.length;n--;i[t[n]]=e);return i},e=[16,24,114,123,132],n=[1,7],r=[1,6],s=[2,16,24,114,132],o=[2,123],a=[1,12],c=[2,11,16,24,114,123,132],l=[1,20],h=[1,21],u=[2,127],f=[2,16,24,114,123,132],g=[1,28],m=[1,32],d=[1,39],p=[1,51],b=[1,46],E=[1,40],T=[1,41],I=[1,42],y=[1,43],v=[1,47],A=[1,48],_=[1,49],O=[1,50],N=[1,52],k=[1,57],S=[1,59],R=[1,60],w=[2,26,118,119,123],D=[5,22],P=[1,65],U=[1,66],L=[1,67],C=[1,68],x=[1,69],$=[1,70],X=[1,71],j=[1,72],F=[1,73],M=[1,74],G=[1,75],Q=[1,76],B=[1,77],V=[1,78],H=[1,79],z=[1,80],q=[1,81],Y=[1,82],W=[1,83],Z=[1,85],J=[2,5,16,18,22,24,26,43,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,78,114,118,119,123,132],K=[2,49],tt=[2,118,119,123],et=[2,52],it=[1,106],nt=[2,118],rt=[1,149],st=[2,26,118,119,123,130],ot=[1,153],at=[1,158],ct=[1,156],lt=[1,157],ht=[1,163],ut=[1,162],ft=[1,160],gt=[1,161],mt=[1,171],dt=[2,5,16,18,22,24,26,74,78,114,118,119,123,130,132],pt=[1,176],bt=[1,179],Et=[1,180],Tt=[1,181],It=[1,182],yt=[1,183],vt=[1,184],At=[1,185],_t=[1,186],Ot=[1,187],Nt=[1,188],kt=[1,189],St=[1,190],Rt=[1,191],wt=[2,5,16,18,22,24,26,43,46,47,49,50,51,52,53,54,55,56,58,59,60,61,62,63,78,114,118,119,123,132],Dt=[2,5,16,18,22,24,26,43,49,50,51,52,53,54,55,56,58,59,60,61,62,63,78,114,118,119,123,132],Pt=[18,26],Ut=[1,210],Lt=[2,16,24,26,114,118,119,123,130,132],Ct=[2,93],xt=[1,219],$t=[2,16,24,114,118,119,123,132],Xt=[1,257],jt=[1,255],Ft=[1,256],Mt=[2,78,118,119,123],Gt=[1,311],Qt=[1,314],Bt=[1,312],Vt=[1,313],Ht=[1,349],zt=[1,350],qt=[1,351],Yt=[1,352],Wt=[1,353],Zt=[18,20,26],Jt={trace:function(){},yy:{},symbols_:{error:2,START:3,INSTRUCCIONES:4,EOF:5,LISTFUNC:6,LISTAD:7,RETURNGLOBAL:8,LFUNC:9,USERFUNCTION:10,declare:11,function:12,PREFIX:13,dospuntos:14,identifier:15,parA:16,ARGUMENTOS:17,parC:18,TIPOFUNCION:19,llaveA:20,LISTAINSTR:21,llaveC:22,puntocoma:23,local:24,LISTAARGS:25,coma:26,PARAM:27,dolar:28,as:29,xs:30,DATATYPE:31,decimal:32,string:33,boolean:34,double:35,integer:36,IF:37,FLWOR:38,if:39,EXPRESIONXQUERY:40,then:41,LISTELSEIF:42,else:43,EIF:44,asterisco:45,mas:46,menos:47,div:48,lte:49,lt:50,gte:51,gt:52,igual:53,nequal:54,or:55,and:56,mod:57,reserv_eq:58,reserv_ne:59,reserv_lt:60,reserv_le:61,reserv_gt:62,reserv_ge:63,DoubleLiteral:64,IntegerLiteral:65,cadena:66,cadena2:67,LLAMADAFUNCION:68,FUNCIONXQUERY:69,LISTALLAMADA:70,VARLLAMADA:71,LISTANODOS:72,NODO:73,diag:74,TIPONODO:75,corA:76,EXPRESION:77,corC:78,MASTIPOS:79,AXES:80,attr:81,PREDICATE:82,dot:83,FUNCIONES:84,ancestor:85,NODETEST:86,ancestorSelf:87,attribute:88,child:89,descendant:90,descendantSelf:91,following:92,followingSib:93,namespace:94,parent:95,preced:96,precedSib:97,self:98,textFunc:99,nodeFunc:100,PRIMITIVA:101,data:102,"upper-case":103,substring:104,"lower-case":105,number:106,lastFunc:107,positionFunc:108,LNODOS:109,FOR:110,RETURNTYPE:111,LISTADEC:112,DECLARACION:113,for:114,LISTADECLARACIONES:115,SENTSFOR:116,SENTFOR:117,where:118,order:119,by:120,LISTASORT:121,SORT:122,let:123,LISTACONSULTAS:124,to:125,DECLARACIONFOR:126,in:127,LISTAENTEROS:128,at:129,andSelect:130,CONSULTA:131,return:132,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",11:"declare",12:"function",14:"dospuntos",15:"identifier",16:"parA",18:"parC",20:"llaveA",22:"llaveC",23:"puntocoma",24:"local",26:"coma",28:"dolar",29:"as",30:"xs",32:"decimal",33:"string",34:"boolean",35:"double",36:"integer",39:"if",41:"then",43:"else",45:"asterisco",46:"mas",47:"menos",48:"div",49:"lte",50:"lt",51:"gte",52:"gt",53:"igual",54:"nequal",55:"or",56:"and",57:"mod",58:"reserv_eq",59:"reserv_ne",60:"reserv_lt",61:"reserv_le",62:"reserv_gt",63:"reserv_ge",64:"DoubleLiteral",65:"IntegerLiteral",66:"cadena",67:"cadena2",74:"diag",76:"corA",78:"corC",81:"attr",83:"dot",85:"ancestor",87:"ancestorSelf",88:"attribute",89:"child",90:"descendant",91:"descendantSelf",92:"following",93:"followingSib",94:"namespace",95:"parent",96:"preced",97:"precedSib",98:"self",99:"textFunc",100:"nodeFunc",102:"data",103:"upper-case",104:"substring",105:"lower-case",106:"number",107:"lastFunc",108:"positionFunc",114:"for",118:"where",119:"order",120:"by",123:"let",125:"to",127:"in",129:"at",130:"andSelect",132:"return"},productions_:[0,[3,2],[4,3],[6,1],[6,0],[9,2],[9,1],[10,13],[10,1],[13,1],[17,1],[17,0],[25,3],[25,1],[27,6],[31,1],[31,1],[31,1],[31,1],[31,1],[19,4],[19,0],[21,1],[21,1],[37,9],[42,2],[42,0],[44,7],[40,3],[40,3],[40,3],[40,3],[40,3],[40,3],[40,3],[40,3],[40,3],[40,3],[40,3],[40,3],[40,3],[40,3],[40,3],[40,3],[40,3],[40,3],[40,3],[40,3],[40,1],[40,1],[40,1],[40,1],[40,2],[40,1],[40,1],[68,6],[68,5],[70,3],[70,1],[71,1],[71,1],[73,2],[73,3],[73,2],[73,3],[75,1],[75,4],[75,1],[75,1],[79,3],[79,3],[79,2],[79,3],[79,2],[79,1],[80,4],[80,4],[80,4],[80,4],[80,4],[80,4],[80,4],[80,4],[80,4],[80,4],[80,4],[80,4],[80,4],[86,2],[86,2],[86,2],[86,2],[82,3],[82,0],[77,1],[77,1],[101,2],[101,2],[101,1],[101,2],[101,1],[69,6],[69,6],[69,10],[69,6],[69,6],[69,6],[69,4],[69,4],[69,8],[69,4],[69,4],[69,4],[84,1],[84,1],[84,1],[84,1],[72,1],[72,0],[109,2],[109,1],[38,3],[7,1],[7,0],[112,2],[112,1],[110,3],[110,0],[116,2],[116,1],[117,1],[117,2],[117,5],[117,6],[117,3],[121,3],[121,1],[122,3],[113,6],[113,10],[113,6],[115,3],[115,1],[126,4],[126,8],[126,6],[126,7],[124,3],[124,1],[131,2],[131,2],[131,1],[111,4],[111,2],[111,2],[128,3],[128,1],[8,1],[8,3],[8,2],[8,1]],performAction:function(t,e,i,n,r,s,o){var a=s.length-1;switch(r){case 1:return console.log(s[a-1]),s[a-1];case 2:null!==s[a-2]?null!==s[a-1]?(s[a-2]=s[a-2].concat(s[a-1]),s[a-2].push(s[a]),this.$=s[a-2]):(s[a-2].push(s[a]),this.$=s[a-2]):null!==s[a-1]?(s[a-1].push(s[a]),this.$=s[a-1]):this.$=[s[a]];break;case 3:console.log("LISTA DE FUNCIONES"),this.$=s[a];break;case 4:console.log("LISTA FUNC VACIA"),this.$=[];break;case 5:null!==s[a]&&s[a-1].push(s[a]),this.$=s[a-1];break;case 6:null!==s[a]?this.$=[s[a]]:this.$=[];break;case 7:this.$=new ye(s[a-4],s[a-10],s[a-8],s[a-6],s[a-2],o[a-12].first_line,o[a-12].first_column);break;case 8:this.$=null;break;case 9:case 10:case 59:case 60:case 95:case 115:this.$=s[a];break;case 11:this.$=[];break;case 12:case 135:case 155:s[a-2].push(s[a]),this.$=s[a-2];break;case 13:case 58:case 136:case 156:this.$=[s[a]];break;case 14:this.$={tipo:s[a-2],nombre:s[a-4]};break;case 15:this.$=re.DECIMAL;break;case 16:this.$=re.CADENA;break;case 17:this.$=re.BOOLEAN;break;case 18:this.$=re.DOUBLE;break;case 19:this.$=re.INTEGER;break;case 20:case 53:case 67:case 68:case 94:case 113:case 114:case 116:this.$=s[a];break;case 21:this.$=re.ANY;break;case 22:case 23:case 142:this.$=[s[a]];break;case 24:this.$=s[a-8];break;case 25:case 131:this.$=s[a-1];break;case 26:this.$=[];break;case 27:this.$=s[a-6];break;case 28:this.$=new te(se.MULTIPLICACION,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column,!0);break;case 29:this.$=new te(se.SUMA,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column,!0);break;case 30:this.$=new te(se.RESTA,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column,!0);break;case 31:this.$=new te(se.DIVISION,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column,!0);break;case 32:this.$=new te(se.MENORIGUALQUE,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column,!0);break;case 33:this.$=new te(se.MENORQUE,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column,!0);break;case 34:this.$=new te(se.MAYORIGUALQUE,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column,!0);break;case 35:this.$=new te(se.MAYORQUE,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column,!0);break;case 36:this.$=new te(se.IGUAL,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column,!0);break;case 37:this.$=new te(se.DIFERENTEQUE,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column,!0);break;case 38:this.$=new te(se.OR,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column,!0);break;case 39:this.$=new te(se.AND,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column,!0);break;case 40:this.$=new te(se.MOD,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column,!0);break;case 41:this.$=new te(se.XQEQ,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column,!0);break;case 42:this.$=new te(se.XQNE,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column,!0);break;case 43:this.$=new te(se.XQLT,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column,!0);break;case 44:this.$=new te(se.XQLE,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column,!0);break;case 45:this.$=new te(se.XQGT,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column,!0);break;case 46:this.$=new te(se.XQGE,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column,!0);break;case 47:this.$=new te(se.PAR,s[a-1],null,o[a-2].first_line,o[a-2].first_column,!0);break;case 48:this.$=new Kt(s[a],re.DOUBLE,o[a].first_line,o[a].first_column,!0);break;case 49:console.log(s[a]),this.$=new Kt(s[a],re.INTEGER,o[a].first_line,o[a].first_column,!0);break;case 50:case 51:this.$=new Kt(s[a],re.CADENA,o[a].first_line,o[a].first_column,!0);break;case 52:console.log("ENTRA A EXPRESIONXQUERY ",s[a]),this.$=new Kt(s[a],re.XQUERYIDENTIFIER,o[a-1].first_line,o[a-1].first_column,!0);break;case 54:this.$=new Kt(s[a],re.FUNCIONXQUERY,o[a].first_line,o[a].first_column);break;case 55:this.$=new ve(s[a-3],s[a-1],o[a-5].first_line,o[a-5].first_column);break;case 56:this.$=new ve(s[a-2],[],o[a-4].first_line,o[a-4].first_column);break;case 57:s[a-2].push(s[a]),this.$=s[a-2];break;case 61:s[a].fromRoot=!0,this.$=s[a];break;case 62:s[a].fromRoot=!1,this.$=s[a];break;case 63:console.log("Entra a error sintactico de one diag"),ce.default.agregarError("sintactico","Token inesperado '"+t+"'",o[a-1].first_line,o[a-1].first_column),this.$=new ie(s[a],oe.NODOERROR,o[a-1].first_line,o[a-1].first_column);break;case 64:console.log("Entra a error sintactico de two diags"),ce.default.agregarError("sintactico","Token inesperado '"+t+"'",o[a-2].first_line,o[a-2].first_column),this.$=new ie(s[a],oe.NODOERROR,o[a-2].first_line,o[a-2].first_column);break;case 65:this.$=new ie(s[a],oe.IDENTIFIER,o[a].first_line,o[a].first_column);break;case 66:this.$=new ie(s[a-3],oe.IDENTIFIER,o[a-3].first_line,o[a-3].first_column,new ne(s[a-1],o[a-1].first_line,o[a-1].first_column));break;case 69:case 70:this.$=new ie(s[a-1],oe.ATRIBUTO,o[a-2].first_line,o[a-2].first_column);break;case 71:this.$=new ie(s[a-1],oe.DOT,o[a-1].first_line,o[a-1].first_column);break;case 72:this.$=new ie(s[a-2]+s[a-1],oe.DOTDOT,o[a-2].first_line,o[a-2].first_column);break;case 73:this.$=new ie(s[a-1],oe.ASTERISCO,o[a-1].first_line,o[a-1].first_column);break;case 74:this.$=new ie(s[a],oe.FUNCION,o[a].first_line,o[a].first_column);break;case 75:this.$=new ie(s[a-3],oe.AXIS,o[a-3].first_line,o[a-3].first_column,void 0,ae.ANCESTOR,s[a-1]);break;case 76:this.$=new ie(s[a-3],oe.AXIS,o[a-3].first_line,o[a-3].first_column,void 0,ae.ANCESTORORSELF,s[a-1]);break;case 77:this.$=new ie(s[a-3],oe.AXIS,o[a-3].first_line,o[a-3].first_column,void 0,ae.ATTRIBUTE,s[a-1]);break;case 78:this.$=new ie(s[a-3],oe.AXIS,o[a-3].first_line,o[a-3].first_column,void 0,ae.CHILD,s[a-1]);break;case 79:this.$=new ie(s[a-3],oe.AXIS,o[a-3].first_line,o[a-3].first_column,void 0,ae.DESCENDANT,s[a-1]);break;case 80:this.$=new ie(s[a-3],oe.AXIS,o[a-3].first_line,o[a-3].first_column,void 0,ae.DESCENDANTORSELF,s[a-1]);break;case 81:this.$=new ie(s[a-3],oe.AXIS,o[a-3].first_line,o[a-3].first_column,void 0,ae.FOLLOWING,s[a-1]);break;case 82:this.$=new ie(s[a-3],oe.AXIS,o[a-3].first_line,o[a-3].first_column,void 0,ae.FOLLOWINGSIBLING,s[a-1]);break;case 83:this.$=new ie(s[a-3],oe.AXIS,o[a-3].first_line,o[a-3].first_column,void 0,ae.NAMESPACE,s[a-1]);break;case 84:this.$=new ie(s[a-3],oe.AXIS,o[a-3].first_line,o[a-3].first_column,void 0,ae.PARENT,s[a-1]);break;case 85:this.$=new ie(s[a-3],oe.AXIS,o[a-3].first_line,o[a-3].first_column,void 0,ae.PRECEDING,s[a-1]);break;case 86:this.$=new ie(s[a-3],oe.AXIS,o[a-3].first_line,o[a-3].first_column,void 0,ae.PRECEDINGSIBLING,s[a-1]);break;case 87:this.$=new ie(s[a-3],oe.AXIS,o[a-3].first_line,o[a-3].first_column,void 0,ae.SELF,s[a-1]);break;case 88:s[a]instanceof ne?this.$=new ie(s[a-1],oe.IDENTIFIER,o[a-1].first_line,o[a-1].first_column):this.$=new ie(s[a-1],oe.IDENTIFIER,o[a-1].first_line,o[a-1].first_column,s[a]);break;case 89:case 90:s[a]instanceof ne?this.$=new ie(s[a-1],oe.FUNCION,o[a-1].first_line,o[a-1].first_column):this.$=new ie(s[a-1],oe.FUNCION,o[a-1].first_line,o[a-1].first_column,s[a]);break;case 91:s[a]instanceof ne?this.$=new ie(s[a-1],oe.ASTERISCO,o[a-1].first_line,o[a-1].first_column):this.$=new ie(s[a-1],oe.ASTERISCO,o[a-1].first_line,o[a-1].first_column,s[a]);break;case 92:this.$=s[a-1];break;case 93:this.$=[];break;case 96:case 97:this.$=new Kt(s[a],re.ATRIBUTO,o[a-1].first_line,o[a-1].first_column,!0);break;case 98:this.$=new Kt(s[a],re.DOT,o[a].first_line,o[a].first_column,!0);break;case 99:console.log("ID ",s[a-1]),console.log("LISTANODOS ",s[a]),s[a].length>0?(this.$=[new ie(s[a-1],oe.IDENTIFIER,o[a-1].first_line,o[a-1].first_column)],this.$=this.$.concat(s[a]),this.$=new Kt(this.$,re.CONSULTA,o[a-1].first_line,o[a-1].first_column)):this.$=new Kt(s[a-1],re.IDENTIFIER,o[a-1].first_line,o[a-1].first_column);break;case 100:this.$=new Kt(s[a],re.FUNCION,o[a].first_line,o[a].first_column);break;case 101:this.$=new Te(Ie.DATA,s[a-2],s[a-1],o[a-5].first_line,o[a-5].first_column);break;case 102:this.$=new Te(Ie.UPPERCASE,s[a-2],s[a-1],o[a-5].first_line,o[a-5].first_column);break;case 103:this.$=new Te(Ie.SUBSTRING,s[a-6],s[a-5],o[a-9].first_line,o[a-9].first_column,+s[a-3],+s[a-1]);break;case 104:this.$=new Te(Ie.LOWERCASE,s[a-2],s[a-1],o[a-5].first_line,o[a-5].first_column);break;case 105:this.$=new Te(Ie.STRING,s[a-2],s[a-1],o[a-5].first_line,o[a-5].first_column);break;case 106:this.$=new Te(Ie.NUMBER,s[a-2],s[a-1],o[a-5].first_line,o[a-5].first_column);break;case 107:this.$=new Te(Ie.DATA,void 0,void 0,o[a-3].first_line,o[a-3].first_column,void 0,void 0,s[a-1]);break;case 108:this.$=new Te(Ie.UPPERCASE,void 0,void 0,o[a-3].first_line,o[a-3].first_column,void 0,void 0,s[a-1]);break;case 109:this.$=new Te(Ie.SUBSTRING,void 0,void 0,o[a-7].first_line,o[a-7].first_column,+s[a-3],+s[a-1],s[a-5]);break;case 110:this.$=new Te(Ie.LOWERCASE,void 0,void 0,o[a-3].first_line,o[a-3].first_column,void 0,void 0,s[a-1]);break;case 111:this.$=new Te(Ie.STRING,void 0,void 0,o[a-3].first_line,o[a-3].first_column,void 0,void 0,s[a-1]);break;case 112:this.$=new Te(Ie.NUMBER,void 0,void 0,o[a-3].first_line,o[a-3].first_column,void 0,void 0,s[a-1]);break;case 117:this.$=s[a];break;case 118:this.$=[];break;case 119:s[a-1].push(s[a]),this.$=s[a-1];break;case 120:console.log("NODO"),this.$=[s[a]];break;case 121:this.$=new le(s[a-2],s[a-1],o[a-2].first_line,o[a-2].first_column);break;case 122:console.log("LISTA DECLARACIONES"),this.$=s[a];break;case 123:console.log("SIN VARIABLES"),this.$=[];break;case 124:console.log("MAS DECLARACIONES"),s[a-1].push(s[a]),this.$=s[a-1];break;case 125:console.log("UNA DECLARACION"),this.$=[s[a]];break;case 126:this.$=new ge(s[a-1],o[a-2].first_line,o[a-2].first_column);break;case 128:console.log("PASA CON WHERE");break;case 129:console.log("PASA SIN WHERE"),this.$=s[a];break;case 132:console.log("ENTRA A WHERE ",s[a]),this.$=new fe(s[a-2],s[a],!0,o[a-4].first_line,o[a-4].first_column);break;case 133:this.$=new fe(s[a-3],s[a],!1,o[a-5].first_line,o[a-5].first_column);break;case 134:this.$=new de(s[a],o[a-2].first_line,o[a-2].first_column);break;case 137:this.$=new Ee(s[a-1],s[a],o[a-2].first_line,o[a-2].first_column);break;case 138:console.log(s[a]),this.$=new me(s[a-3],s[a],o[a-5].first_line,o[a-5].first_column);break;case 139:this.$=new me(s[a-7],null,o[a-9].first_line,o[a-9].first_column,+s[a-3],+s[a-1]);break;case 140:console.log("ENTRA DECLARACION"),console.log(s[a]),this.$=new me(s[a-3],null,o[a-5].first_line,o[a-5].first_column,void 0,void 0,void 0,s[a]);break;case 141:s[a-2].push(s[a-1]),this.$=s[a-2];break;case 143:this.$=new be(pe.NORMAL,s[a-2],s[a],o[a-3].first_line,o[a-3].first_column);break;case 144:this.$=new be(pe.ITERATIVO,s[a-6],null,o[a-7].first_line,o[a-7].first_column,void 0,+s[a-3],+s[a-1]);break;case 145:this.$=new be(pe.ITERATIVO,s[a-4],null,o[a-5].first_line,o[a-5].first_column,void 0,void 0,void 0,s[a-1]);break;case 146:this.$=new be(pe.AT,s[a-5],s[a],o[a-6].first_line,o[a-6].first_column,s[a-2]);break;case 147:s[a-2].push(new ee(s[a],o[a-2].first_line,o[a-2].first_column)),this.$=s[a-2];break;case 148:console.log("CONSULTA"),this.$=[new ee(s[a],o[a].first_line,o[a].first_column)];break;case 149:this.$=[new ie(s[a-1],oe.IDENTIFIER,o[a-1].first_line,o[a-1].first_column)],s[a].length>0&&(this.$=this.$.concat(s[a]));break;case 150:this.$=[s[a-1]],s[a].length>0&&(this.$=this.$.concat(s[a]));break;case 151:console.log("LISTANODOS ",s[a]),this.$=s[a];break;case 152:this.$=new he(ue.NORMAL,s[a-1],s[a],void 0,void 0,void 0,o[a-3].first_line,o[a-3].first_column);break;case 153:this.$=new he(ue.FUNCIONXQUERY,void 0,void 0,void 0,void 0,s[a],o[a-1].first_line,o[a-1].first_column);break;case 154:this.$=new he(ue.IFTHENELSE,void 0,void 0,void 0,s[a],void 0,o[a-1].first_line,o[a-1].first_column);break;case 157:case 158:case 159:this.$="return global";break;case 160:console.log("Se espera un return")}},table:[t(e,[2,4],{3:1,4:2,6:3,9:4,10:5,2:n,11:r}),{1:[3]},{5:[1,8]},t(s,o,{7:9,112:10,113:11,123:a}),t(e,[2,3],{10:13,2:n,11:r}),t(c,[2,6]),{12:[1,14]},t(c,[2,8]),{1:[2,1]},{2:[1,19],8:15,16:[1,17],24:l,68:16,110:18,114:h,132:u},t(s,[2,122],{113:22,123:a}),t(f,[2,125]),{28:[1,23]},t(c,[2,5]),{13:24,24:[1,25]},{5:[2,2]},{5:[2,157]},{24:l,68:26},{111:27,132:g},{5:[2,160]},{14:[1,29]},{28:m,115:30,126:31},t(f,[2,124]),{15:[1,33]},{14:[1,34]},{14:[2,9]},{18:[1,35]},{5:[2,159]},{16:d,24:l,28:[1,36],33:p,37:38,39:b,40:37,64:E,65:T,66:I,67:y,68:44,69:45,102:v,103:A,104:_,105:O,106:N},{15:[1,53]},{2:k,26:[1,55],113:58,116:54,117:56,118:S,119:R,123:a},t(w,[2,142]),{15:[1,61]},{14:[1,62]},{15:[1,63]},{5:[2,158]},{15:[1,64]},t(D,[2,153],{45:P,46:U,47:L,48:C,49:x,50:$,51:X,52:j,53:F,54:M,55:G,56:Q,57:B,58:V,59:H,60:z,61:q,62:Y,63:W}),t(D,[2,154]),{16:d,24:l,28:Z,33:p,40:84,64:E,65:T,66:I,67:y,68:44,69:45,102:v,103:A,104:_,105:O,106:N},t(J,[2,48]),t(J,K),t(J,[2,50]),t(J,[2,51]),t(J,[2,53]),t(J,[2,54]),{16:[1,86]},{16:[1,87]},{16:[1,88]},{16:[1,89]},{16:[1,90]},{16:[1,91]},{16:[1,92]},{16:[1,93]},{132:[2,126]},{28:m,126:94},{2:k,113:58,116:95,117:56,118:S,119:R,123:a},{132:[2,129]},t(tt,[2,130]),{16:d,24:l,28:[1,97],33:p,40:96,64:E,65:T,66:I,67:y,68:44,69:45,102:v,103:A,104:_,105:O,106:N},{120:[1,98]},{127:[1,99],129:[1,100]},{53:[1,101]},{16:[1,102]},t([5,22,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63],et,{72:103,109:104,73:105,74:it}),{16:d,24:l,28:Z,33:p,40:107,64:E,65:T,66:I,67:y,68:44,69:45,102:v,103:A,104:_,105:O,106:N},{16:d,24:l,28:Z,33:p,40:108,64:E,65:T,66:I,67:y,68:44,69:45,102:v,103:A,104:_,105:O,106:N},{16:d,24:l,28:Z,33:p,40:109,64:E,65:T,66:I,67:y,68:44,69:45,102:v,103:A,104:_,105:O,106:N},{16:d,24:l,28:Z,33:p,40:110,64:E,65:T,66:I,67:y,68:44,69:45,102:v,103:A,104:_,105:O,106:N},{16:d,24:l,28:Z,33:p,40:111,64:E,65:T,66:I,67:y,68:44,69:45,102:v,103:A,104:_,105:O,106:N},{16:d,24:l,28:Z,33:p,40:112,64:E,65:T,66:I,67:y,68:44,69:45,102:v,103:A,104:_,105:O,106:N},{16:d,24:l,28:Z,33:p,40:113,64:E,65:T,66:I,67:y,68:44,69:45,102:v,103:A,104:_,105:O,106:N},{16:d,24:l,28:Z,33:p,40:114,64:E,65:T,66:I,67:y,68:44,69:45,102:v,103:A,104:_,105:O,106:N},{16:d,24:l,28:Z,33:p,40:115,64:E,65:T,66:I,67:y,68:44,69:45,102:v,103:A,104:_,105:O,106:N},{16:d,24:l,28:Z,33:p,40:116,64:E,65:T,66:I,67:y,68:44,69:45,102:v,103:A,104:_,105:O,106:N},{16:d,24:l,28:Z,33:p,40:117,64:E,65:T,66:I,67:y,68:44,69:45,102:v,103:A,104:_,105:O,106:N},{16:d,24:l,28:Z,33:p,40:118,64:E,65:T,66:I,67:y,68:44,69:45,102:v,103:A,104:_,105:O,106:N},{16:d,24:l,28:Z,33:p,40:119,64:E,65:T,66:I,67:y,68:44,69:45,102:v,103:A,104:_,105:O,106:N},{16:d,24:l,28:Z,33:p,40:120,64:E,65:T,66:I,67:y,68:44,69:45,102:v,103:A,104:_,105:O,106:N},{16:d,24:l,28:Z,33:p,40:121,64:E,65:T,66:I,67:y,68:44,69:45,102:v,103:A,104:_,105:O,106:N},{16:d,24:l,28:Z,33:p,40:122,64:E,65:T,66:I,67:y,68:44,69:45,102:v,103:A,104:_,105:O,106:N},{16:d,24:l,28:Z,33:p,40:123,64:E,65:T,66:I,67:y,68:44,69:45,102:v,103:A,104:_,105:O,106:N},{16:d,24:l,28:Z,33:p,40:124,64:E,65:T,66:I,67:y,68:44,69:45,102:v,103:A,104:_,105:O,106:N},{16:d,24:l,28:Z,33:p,40:125,64:E,65:T,66:I,67:y,68:44,69:45,102:v,103:A,104:_,105:O,106:N},{18:[1,126],45:P,46:U,47:L,48:C,49:x,50:$,51:X,52:j,53:F,54:M,55:G,56:Q,57:B,58:V,59:H,60:z,61:q,62:Y,63:W},{15:[1,127]},{16:d,24:l,28:Z,33:p,40:128,64:E,65:T,66:I,67:y,68:44,69:45,102:v,103:A,104:_,105:O,106:N},{28:[1,129],33:p,69:130,102:v,103:A,104:_,105:O,106:N},{28:[1,131],33:p,69:132,102:v,103:A,104:_,105:O,106:N},{28:[1,133],33:p,69:134,102:v,103:A,104:_,105:O,106:N},{28:[1,135],33:p,69:136,102:v,103:A,104:_,105:O,106:N},{28:[1,137],33:p,69:138,102:v,103:A,104:_,105:O,106:N},{28:[1,139],33:p,69:140,102:v,103:A,104:_,105:O,106:N},{16:d,18:[1,142],24:l,26:nt,28:Z,33:p,40:144,64:E,65:T,66:I,67:y,68:44,69:45,70:141,71:143,72:145,73:105,74:it,102:v,103:A,104:_,105:O,106:N,109:104},t(w,[2,141]),{132:[2,128]},t(tt,[2,131],{45:P,46:U,47:L,48:C,49:x,50:$,51:X,52:j,53:F,54:M,55:G,56:Q,57:B,58:V,59:H,60:z,61:q,62:Y,63:W}),{15:[1,146]},{28:rt,121:147,122:148},t(st,nt,{109:104,73:105,124:150,131:152,79:154,72:155,84:159,15:ot,16:[1,151],45:at,74:it,81:ct,83:lt,99:ht,100:ut,107:ft,108:gt}),{28:[1,164]},t([2,114,118,119,123,130,132],nt,{68:44,69:45,109:104,73:105,131:152,79:154,72:155,84:159,124:165,40:167,15:ot,16:[1,166],24:l,28:Z,33:p,45:at,64:E,65:T,66:I,67:y,74:it,81:ct,83:lt,99:ht,100:ut,102:v,103:A,104:_,105:O,106:N,107:ft,108:gt}),{17:168,18:[2,11],25:169,27:170,28:mt},t(D,[2,152]),t([2,5,16,18,22,24,26,78,114,118,119,123,130,132],[2,117],{73:172,74:it}),t(dt,[2,120]),{2:[1,175],15:pt,45:at,74:[1,174],75:173,79:177,80:178,81:ct,83:lt,84:159,85:bt,87:Et,88:Tt,89:It,90:yt,91:vt,92:At,93:_t,94:Ot,95:Nt,96:kt,97:St,98:Rt,99:ht,100:ut,107:ft,108:gt},t(J,[2,28]),t(wt,[2,29],{45:P,48:C,57:B}),t(wt,[2,30],{45:P,48:C,57:B}),t(J,[2,31]),t(Dt,[2,32],{45:P,46:U,47:L,48:C,57:B}),t(Dt,[2,33],{45:P,46:U,47:L,48:C,57:B}),t(Dt,[2,34],{45:P,46:U,47:L,48:C,57:B}),t(Dt,[2,35],{45:P,46:U,47:L,48:C,57:B}),t(Dt,[2,36],{45:P,46:U,47:L,48:C,57:B}),t(Dt,[2,37],{45:P,46:U,47:L,48:C,57:B}),t([2,5,16,18,22,24,26,43,55,78,114,118,119,123,132],[2,38],{45:P,46:U,47:L,48:C,49:x,50:$,51:X,52:j,53:F,54:M,56:Q,57:B,58:V,59:H,60:z,61:q,62:Y,63:W}),t([2,5,16,18,22,24,26,43,55,56,78,114,118,119,123,132],[2,39],{45:P,46:U,47:L,48:C,49:x,50:$,51:X,52:j,53:F,54:M,57:B,58:V,59:H,60:z,61:q,62:Y,63:W}),t(J,[2,40]),t(Dt,[2,41],{45:P,46:U,47:L,48:C,57:B}),t(Dt,[2,42],{45:P,46:U,47:L,48:C,57:B}),t(Dt,[2,43],{45:P,46:U,47:L,48:C,57:B}),t(Dt,[2,44],{45:P,46:U,47:L,48:C,57:B}),t(Dt,[2,45],{45:P,46:U,47:L,48:C,57:B}),t(Dt,[2,46],{45:P,46:U,47:L,48:C,57:B}),t(J,[2,47]),t(J,et),{18:[1,192],45:P,46:U,47:L,48:C,49:x,50:$,51:X,52:j,53:F,54:M,55:G,56:Q,57:B,58:V,59:H,60:z,61:q,62:Y,63:W},{15:[1,193]},{18:[1,194]},{15:[1,195]},{18:[1,196]},{15:[1,197]},{26:[1,198]},{15:[1,199]},{18:[1,200]},{15:[1,201]},{18:[1,202]},{15:[1,203]},{18:[1,204]},{18:[1,205],26:[1,206]},t(J,[2,56]),t(Pt,[2,58]),t(Pt,[2,59],{45:P,46:U,47:L,48:C,49:x,50:$,51:X,52:j,53:F,54:M,55:G,56:Q,57:B,58:V,59:H,60:z,61:q,62:Y,63:W}),t(Pt,[2,60]),t([2,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,118,119,123],et,{74:[1,207]}),t(tt,[2,134],{26:[1,208]}),t(w,[2,136]),{15:[1,209]},t(w,[2,143],{130:Ut}),{65:[1,211],128:212},t(Lt,[2,148]),t(Lt,nt,{109:104,73:105,72:213,74:it}),t(Lt,nt,{109:104,73:105,72:214,74:it}),t(Lt,[2,151]),{15:[1,215],45:[1,216]},t(dt,Ct,{82:217,76:xt,83:[1,218]}),t(dt,Ct,{82:220,76:xt}),t(dt,[2,74]),t(dt,[2,113]),t(dt,[2,114]),t(dt,[2,115]),t(dt,[2,116]),{15:[1,221]},t($t,[2,138],{130:Ut}),{16:d,24:l,28:Z,33:p,40:84,64:E,65:[1,222],66:I,67:y,68:44,69:45,102:v,103:A,104:_,105:O,106:N},t($t,[2,140],{45:P,46:U,47:L,48:C,49:x,50:$,51:X,52:j,53:F,54:M,55:G,56:Q,57:B,58:V,59:H,60:z,61:q,62:Y,63:W}),{18:[1,223]},{18:[2,10],26:[1,224]},t(Pt,[2,13]),{15:[1,225]},t(dt,[2,119]),t(dt,[2,61]),{2:[1,227],15:pt,45:at,75:226,79:177,80:178,81:ct,83:lt,84:159,85:bt,87:Et,88:Tt,89:It,90:yt,91:vt,92:At,93:_t,94:Ot,95:Nt,96:kt,97:St,98:Rt,99:ht,100:ut,107:ft,108:gt},t(dt,[2,63]),t(dt,[2,65],{76:[1,228]}),t(dt,[2,67]),t(dt,[2,68]),{14:[1,229]},{14:[1,230]},{14:[1,231]},{14:[1,232]},{14:[1,233]},{14:[1,234]},{14:[1,235]},{14:[1,236]},{14:[1,237]},{14:[1,238]},{14:[1,239]},{14:[1,240]},{14:[1,241]},{41:[1,242]},{18:nt,72:243,73:105,74:it,109:104},t(J,[2,107]),{18:nt,72:244,73:105,74:it,109:104},t(J,[2,108]),{26:nt,72:245,73:105,74:it,109:104},{65:[1,246]},{18:nt,72:247,73:105,74:it,109:104},t(J,[2,110]),{18:nt,72:248,73:105,74:it,109:104},t(J,[2,111]),{18:nt,72:249,73:105,74:it,109:104},t(J,[2,112]),t(J,[2,55]),t(Pt,nt,{68:44,69:45,109:104,73:105,40:144,72:145,71:250,16:d,24:l,28:Z,33:p,64:E,65:T,66:I,67:y,74:it,102:v,103:A,104:_,105:O,106:N}),{15:Xt,16:d,24:l,28:Z,33:p,40:254,64:E,65:T,66:I,67:y,68:44,69:45,74:[1,252],77:251,81:jt,83:Ft,84:258,99:ht,100:ut,101:253,102:v,103:A,104:_,105:O,106:N,107:ft,108:gt},{28:rt,122:259},t(w,nt,{109:104,73:105,72:260,74:it}),t(Lt,nt,{109:104,73:105,79:154,72:155,84:159,131:261,15:ot,45:at,74:it,81:ct,83:lt,99:ht,100:ut,107:ft,108:gt}),t(Pt,[2,156],{125:[1,262]}),{18:[1,263],26:[1,264]},t(Lt,[2,149]),t(Lt,[2,150]),t(dt,Ct,{82:265,76:xt}),t(dt,Ct,{82:266,76:xt}),t(dt,[2,71]),t(dt,Ct,{82:267,76:xt}),{15:Xt,16:d,24:l,28:Z,33:p,40:254,64:E,65:T,66:I,67:y,68:44,69:45,77:268,81:jt,83:Ft,84:258,99:ht,100:ut,101:253,102:v,103:A,104:_,105:O,106:N,107:ft,108:gt},t(dt,[2,73]),{127:[1,269]},t([18,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63],K,{125:[1,270]}),{19:271,20:[2,21],29:[1,272]},{27:273,28:mt},{29:[1,274]},t(dt,[2,62]),t(dt,[2,64]),{15:Xt,16:d,24:l,28:Z,33:p,40:254,64:E,65:T,66:I,67:y,68:44,69:45,77:275,81:jt,83:Ft,84:258,99:ht,100:ut,101:253,102:v,103:A,104:_,105:O,106:N,107:ft,108:gt},{14:[1,276]},{14:[1,277]},{14:[1,278]},{14:[1,279]},{14:[1,280]},{14:[1,281]},{14:[1,282]},{14:[1,283]},{14:[1,284]},{14:[1,285]},{14:[1,286]},{14:[1,287]},{14:[1,288]},{16:d,24:l,28:Z,33:p,40:289,64:E,65:T,66:I,67:y,68:44,69:45,102:v,103:A,104:_,105:O,106:N},{18:[1,290]},{18:[1,291]},{26:[1,292]},{26:[1,293]},{18:[1,294]},{18:[1,295]},{18:[1,296]},t(Pt,[2,57]),t(tt,[2,132]),{15:Xt,16:d,24:l,28:Z,33:p,40:254,64:E,65:T,66:I,67:y,68:44,69:45,77:297,81:jt,83:Ft,84:258,99:ht,100:ut,101:253,102:v,103:A,104:_,105:O,106:N,107:ft,108:gt},t(Mt,[2,94]),t(Mt,[2,95],{45:P,46:U,47:L,48:C,49:x,50:$,51:X,52:j,53:F,54:M,55:G,56:Q,57:B,58:V,59:H,60:z,61:q,62:Y,63:W}),{15:[1,298],45:[1,299]},t(Mt,[2,98]),t(Mt,nt,{109:104,73:105,72:300,74:it}),t(Mt,[2,100]),t(w,[2,135]),t(w,[2,137]),t(Lt,[2,147]),{65:[1,301]},t(w,[2,145]),{65:[1,302]},t(dt,[2,69]),t(dt,[2,70]),t(dt,[2,72]),{78:[1,303]},t(st,nt,{109:104,73:105,131:152,79:154,72:155,84:159,124:304,15:ot,45:at,74:it,81:ct,83:lt,99:ht,100:ut,107:ft,108:gt}),{65:[1,305]},{20:[1,306]},{30:[1,307]},t(Pt,[2,12]),{30:[1,308]},{78:[1,309]},{15:Gt,45:Qt,86:310,99:Bt,100:Vt},{15:Gt,45:Qt,86:315,99:Bt,100:Vt},{15:Gt,45:Qt,86:316,99:Bt,100:Vt},{15:Gt,45:Qt,86:317,99:Bt,100:Vt},{15:Gt,45:Qt,86:318,99:Bt,100:Vt},{15:Gt,45:Qt,86:319,99:Bt,100:Vt},{15:Gt,45:Qt,86:320,99:Bt,100:Vt},{15:Gt,45:Qt,86:321,99:Bt,100:Vt},{15:Gt,45:Qt,86:322,99:Bt,100:Vt},{15:Gt,45:Qt,86:323,99:Bt,100:Vt},{15:Gt,45:Qt,86:324,99:Bt,100:Vt},{15:Gt,45:Qt,86:325,99:Bt,100:Vt},{15:Gt,45:Qt,86:326,99:Bt,100:Vt},{42:327,43:[2,26],45:P,46:U,47:L,48:C,49:x,50:$,51:X,52:j,53:F,54:M,55:G,56:Q,57:B,58:V,59:H,60:z,61:q,62:Y,63:W},t(J,[2,101]),t(J,[2,102]),{65:[1,328]},{65:[1,329]},t(J,[2,104]),t(J,[2,105]),t(J,[2,106]),t(tt,[2,133]),t(Mt,[2,96]),t(Mt,[2,97]),t(Mt,[2,99]),{18:[1,330]},t(Pt,[2,155]),t(dt,[2,92]),t(w,[2,146],{130:Ut}),{18:[1,331]},t([114,132],o,{112:10,113:11,21:332,37:333,38:334,7:335,39:b,123:a}),{14:[1,336]},{14:[1,337]},t(dt,[2,66]),t(dt,[2,75]),t(dt,Ct,{82:338,76:xt}),t(dt,Ct,{82:339,76:xt}),t(dt,Ct,{82:340,76:xt}),t(dt,Ct,{82:341,76:xt}),t(dt,[2,76]),t(dt,[2,77]),t(dt,[2,78]),t(dt,[2,79]),t(dt,[2,80]),t(dt,[2,81]),t(dt,[2,82]),t(dt,[2,83]),t(dt,[2,84]),t(dt,[2,85]),t(dt,[2,86]),t(dt,[2,87]),{43:[1,342],44:343},{26:[1,344]},{18:[1,345]},t(w,[2,144]),t($t,[2,139]),{22:[1,346]},{22:[2,22]},{22:[2,23]},{110:347,114:h,132:u},{31:348,32:Ht,33:zt,34:qt,35:Yt,36:Wt},{31:354,32:Ht,33:zt,34:qt,35:Yt,36:Wt},t(dt,[2,88]),t(dt,[2,89]),t(dt,[2,90]),t(dt,[2,91]),{16:d,24:l,28:Z,33:p,39:[1,356],40:355,64:E,65:T,66:I,67:y,68:44,69:45,102:v,103:A,104:_,105:O,106:N},{43:[2,25]},{65:[1,357]},t(J,[2,109]),{23:[1,358]},{111:359,132:g},{20:[2,20]},t(Zt,[2,15]),t(Zt,[2,16]),t(Zt,[2,17]),t(Zt,[2,18]),t(Zt,[2,19]),t(Pt,[2,14]),t(D,[2,24],{45:P,46:U,47:L,48:C,49:x,50:$,51:X,52:j,53:F,54:M,55:G,56:Q,57:B,58:V,59:H,60:z,61:q,62:Y,63:W}),{16:[1,360]},{18:[1,361]},t(c,[2,7]),{22:[2,121]},{16:d,24:l,28:Z,33:p,40:362,64:E,65:T,66:I,67:y,68:44,69:45,102:v,103:A,104:_,105:O,106:N},t(J,[2,103]),{18:[1,363],45:P,46:U,47:L,48:C,49:x,50:$,51:X,52:j,53:F,54:M,55:G,56:Q,57:B,58:V,59:H,60:z,61:q,62:Y,63:W},{41:[1,364]},{16:d,24:l,28:Z,33:p,40:365,64:E,65:T,66:I,67:y,68:44,69:45,102:v,103:A,104:_,105:O,106:N},{43:[2,27],45:P,46:U,47:L,48:C,49:x,50:$,51:X,52:j,53:F,54:M,55:G,56:Q,57:B,58:V,59:H,60:z,61:q,62:Y,63:W}],defaultActions:{8:[2,1],15:[2,2],16:[2,157],19:[2,160],25:[2,9],27:[2,159],35:[2,158],54:[2,126],57:[2,129],95:[2,128],333:[2,22],334:[2,23],343:[2,25],348:[2,20],359:[2,121]},parseError:function(t,e){if(!e.recoverable){var i=new Error(t);throw i.hash=e,i}this.trace(t)},parse:function(t){var e=this,i=[0],n=[null],r=[],s=this.table,o="",a=0,c=0,l=0,h=2,u=1,f=r.slice.call(arguments,1),g=Object.create(this.lexer),m={yy:{}};for(var d in this.yy)Object.prototype.hasOwnProperty.call(this.yy,d)&&(m.yy[d]=this.yy[d]);g.setInput(t,m.yy),m.yy.lexer=g,m.yy.parser=this,"undefined"==typeof g.yylloc&&(g.yylloc={});var p=g.yylloc;r.push(p);var b=g.options&&g.options.ranges;function E(t){i.length=i.length-2*t,n.length=n.length-t,r.length=r.length-t}"function"===typeof m.yy.parseError?this.parseError=m.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var T,I,y,v,A,_,O,N,k,S=function(){var t;return"number"!==typeof(t=g.lex()||u)&&(t=e.symbols_[t]||t),t},R={};;){if(y=i[i.length-1],this.defaultActions[y]?v=this.defaultActions[y]:(null!==T&&"undefined"!=typeof T||(T=S()),v=s[y]&&s[y][T]),"undefined"===typeof v||!v.length||!v[0]){var w,D=function(t){for(var e=i.length-1,n=0;;){if(h.toString()in s[t])return n;if(0===t||e<2)return!1;t=i[e-=2],++n}},P="";if(l)I!==u&&(w=D(y));else{for(_ in w=D(y),k=[],s[y])this.terminals_[_]&&_>h&&k.push("'"+this.terminals_[_]+"'");P=g.showPosition?"Parse error on line "+(a+1)+":\n"+g.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[T]||T)+"'":"Parse error on line "+(a+1)+": Unexpected "+(T==u?"end of input":"'"+(this.terminals_[T]||T)+"'"),this.parseError(P,{text:g.match,token:this.terminals_[T]||T,line:g.yylineno,loc:p,expected:k,recoverable:!1!==w})}if(3==l){if(T===u||I===u)throw new Error(P||"Parsing halted while starting to recover from another error.");c=g.yyleng,o=g.yytext,a=g.yylineno,p=g.yylloc,T=S()}if(!1===w)throw new Error(P||"Parsing halted. No suitable error recovery rule available.");E(w),I=T==h?null:T,T=h,y=i[i.length-1],v=s[y]&&s[y][h],l=3}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+y+", token: "+T);switch(v[0]){case 1:i.push(T),n.push(g.yytext),r.push(g.yylloc),i.push(v[1]),T=null,I?(T=I,I=null):(c=g.yyleng,o=g.yytext,a=g.yylineno,p=g.yylloc,l>0&&l--);break;case 2:if(O=this.productions_[v[1]][1],R.$=n[n.length-O],R._$={first_line:r[r.length-(O||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(O||1)].first_column,last_column:r[r.length-1].last_column},b&&(R._$.range=[r[r.length-(O||1)].range[0],r[r.length-1].range[1]]),"undefined"!==typeof(A=this.performAction.apply(R,[o,c,a,m.yy,v[1],n,r].concat(f))))return A;O&&(i=i.slice(0,-1*O*2),n=n.slice(0,-1*O),r=r.slice(0,-1*O)),i.push(this.productions_[v[1]][0]),n.push(R.$),r.push(R._$),N=s[i[i.length-2]][i[i.length-1]],i.push(N);break;case 3:return!0}}return!0}},Kt=i(0).Primitiva,te=i(38).Operacion,ee=i(20).Consulta,ie=i(10).Nodo,ne=i(79).Predicate,re=i(0).TipoPrim,se=i(38).TipoOperacion,oe=i(10).TipoNodo,ae=i(10).TipoAxis,ce=i(8),le=i(114).Flwor,he=i(80).Return,ue=i(80).TipoReturn,fe=i(115).Where,ge=i(116).For,me=i(117).Let,de=i(118).OrderBy,pe=i(81).TipoFor,be=i(81).DeclaracionFor,Ee=i(119).Sort,Te=(i(120).CondicionIf,i(82).FuncionXQuery),Ie=(i(121).Html,i(122).IfThenElse,i(123).ElseIf,i(124).VarCall,i(82).TipoFuncionXQ),ye=(i(53).Atributo,i(174).UserFunction),ve=i(175).Llamada,Ae={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===n.length?this.yylloc.first_column:0)+n[n.length-i.length].length-i[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var i,n,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],i=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var s in r)this[s]=r[s];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,i,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),s=0;s<r.length;s++)if((i=this._input.match(this.rules[r[s]]))&&(!e||i[0].length>e[0].length)){if(e=i,n=s,this.options.backtrack_lexer){if(!1!==(t=this.test_match(i,r[s])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,i,n){switch(i){case 0:break;case 1:this.begin("comment");break;case 2:this.popState();break;case 3:break;case 4:return 28;case 5:return 53;case 6:return 74;case 7:return"dot";case 8:return"attr";case 9:return"corA";case 10:return"corC";case 11:return"andSelect";case 12:return"dospuntos";case 13:return"parA";case 14:return"parC";case 15:return"llaveA";case 16:return"llaveC";case 17:return"coma";case 18:return"puntocoma";case 19:return 45;case 20:return"mas";case 21:return"menos";case 22:return"div";case 23:return 49;case 24:return"gte";case 25:return 50;case 26:return 52;case 27:return"nequal";case 28:return"or";case 29:return"and";case 30:return"mod";case 31:return"for";case 32:return"in";case 33:return"to";case 34:return"at";case 35:return"let";case 36:return"where";case 37:return"order";case 38:return"by";case 39:return"return";case 40:return"if";case 41:return"else";case 42:return"then";case 43:return"reserv_eq";case 44:return"reserv_gt";case 45:return"reserv_ge";case 46:return"reserv_ne";case 47:return"reserv_le";case 48:return"reserv_lt";case 49:return"ancestorSelf";case 50:return"ancestor";case 51:return"attribute";case 52:return"child";case 53:return"descendantSelf";case 54:return"descendant";case 55:return"followingSib";case 56:return"following";case 57:return"namespace";case 58:return"parent";case 59:return"precedSib";case 60:return"preced";case 61:return"self";case 62:return"data";case 63:return"upper-case";case 64:return"substring";case 65:return"lower-case";case 66:return"number";case 67:return"declare";case 68:return"function";case 69:return"local";case 70:return"decimal";case 71:return"string";case 72:return"boolean";case 73:return"integer";case 74:return"as";case 75:return"xs";case 76:return"lastFunc";case 77:return"positionFunc";case 78:return"nodeFunc";case 79:return"textFunc";case 80:return 64;case 81:return 65;case 82:return 15;case 83:return 66;case 84:return 67;case 85:console.error("Este es un error l\xe9xico: "+e.yytext+", en la linea: "+e.yylloc.first_line+", en la columna: "+e.yylloc.first_column);break;case 86:return 5}},rules:[/^(?:\s+)/i,/^(?:\(:)/i,/^(?::\))/i,/^(?:.)/i,/^(?:\$)/i,/^(?:=)/i,/^(?:\/)/i,/^(?:\.)/i,/^(?:@)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:\|)/i,/^(?::)/i,/^(?:\()/i,/^(?:\))/i,/^(?:\{)/i,/^(?:\})/i,/^(?:,)/i,/^(?:;)/i,/^(?:\*)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:div\b)/i,/^(?:<=)/i,/^(?:>=)/i,/^(?:<)/i,/^(?:>)/i,/^(?:!=)/i,/^(?:or\b)/i,/^(?:and\b)/i,/^(?:mod\b)/i,/^(?:for\b)/i,/^(?:in\b)/i,/^(?:to\b)/i,/^(?:at\b)/i,/^(?:let\b)/i,/^(?:where\b)/i,/^(?:order\b)/i,/^(?:by\b)/i,/^(?:return\b)/i,/^(?:if\b)/i,/^(?:else\b)/i,/^(?:then\b)/i,/^(?:eq\b)/i,/^(?:gt\b)/i,/^(?:ge\b)/i,/^(?:ne\b)/i,/^(?:le\b)/i,/^(?:lt\b)/i,/^(?:ancestor-or-self\b)/i,/^(?:ancestor\b)/i,/^(?:attribute\b)/i,/^(?:child\b)/i,/^(?:descendant-or-self\b)/i,/^(?:descendant\b)/i,/^(?:following-sibling\b)/i,/^(?:following\b)/i,/^(?:namespace\b)/i,/^(?:parent\b)/i,/^(?:preceding-sibling\b)/i,/^(?:preceding\b)/i,/^(?:self\b)/i,/^(?:data\b)/i,/^(?:upper-case\b)/i,/^(?:substring\b)/i,/^(?:lower-case\b)/i,/^(?:number\b)/i,/^(?:declare\b)/i,/^(?:function\b)/i,/^(?:local\b)/i,/^(?:decimal\b)/i,/^(?:string\b)/i,/^(?:boolean\b)/i,/^(?:integer\b)/i,/^(?:as\b)/i,/^(?:xs\b)/i,/^(?:last\(\))/i,/^(?:position\(\))/i,/^(?:node\(\))/i,/^(?:text\(\))/i,/^(?:(([0-9]+\.[0-9]*)|(\.[0-9]+)))/i,/^(?:[0-9]+)/i,/^(?:[a-zA-Z_][a-zA-Z0-9_\xf1\xd1.-]*)/i,/^(?:("((\\([\'\"\\]))|([^\"\\]+))*"))/i,/^(?:('((\\([\'\"\\]))|([^\'\\]))*'))/i,/^(?:.)/i,/^(?:$)/i],conditions:{comment:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86],inclusive:!0},INITIAL:{rules:[0,1,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86],inclusive:!0}}};function _e(){this.yy={}}return Jt.lexer=Ae,_e.prototype=Jt,Jt.Parser=_e,new _e}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(n){n[1]||(console.log("Usage: "+n[0]+" FILE"),t.exit(1));var r=i(49).readFileSync(i(50).normalize(n[1]),"utf8");return e.parser.parse(r)},i.c[i.s]===n&&e.main(t.argv.slice(1))}).call(this,i(37),i(48)(t))},function(t,e,i){"use strict";(function(t,n){var r=function(){var t=function(t,e,i,n){for(i=i||{},n=t.length;n--;i[t[n]]=e);return i},e=[2,5],n=[1,9],r=[1,13],s=[1,17],o=[2,9],a=[1,16],c=[5,6],l=[7,10,21],h=[2,7,10,14,21],u=[1,46],f=[2,21],g=[1,39],m=[1,35],d=[1,36],p=[1,37],b=[1,38],E=[1,40],T=[1,41],I=[1,42],y=[1,43],v=[1,44],A=[1,45],_=[2,6,8,14,25,26,27,28,29,30,31,32,33],O=[1,52],N={trace:function(){},yy:{},symbols_:{error:2,START:3,ENCABEZADO:4,EOF:5,lt:6,interrog:7,xml:8,LISTAATRIBUTOS:9,gt:10,LISTAELEMENTOS:11,ELEMENTO:12,ELEM:13,identifier:14,TIPOELEM:15,ATRIBUTO:16,asig:17,TIPOCADENA:18,cadena:19,cadena2:20,diag:21,TEXTCONTENT:22,MOREELEMENTS:23,TEXT:24,content:25,DoubleLiteral:26,IntegerLiteral:27,apos:28,less:29,greater:30,ampersand:31,apostrophe:32,quot:33,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",6:"lt",7:"interrog",8:"xml",10:"gt",14:"identifier",17:"asig",19:"cadena",20:"cadena2",21:"diag",25:"content",26:"DoubleLiteral",27:"IntegerLiteral",28:"apos",29:"less",30:"greater",31:"ampersand",32:"apostrophe",33:"quot"},productions_:[0,[3,2],[4,7],[4,2],[11,2],[11,0],[12,2],[13,3],[9,2],[9,0],[16,3],[16,2],[16,2],[18,1],[18,1],[15,2],[15,4],[15,3],[23,3],[23,3],[22,2],[22,0],[24,1],[24,1],[24,1],[24,1],[24,1],[24,1],[24,1],[24,1],[24,1],[24,1],[24,1],[24,1]],performAction:function(t,e,i,n,r,s,o){var a=s.length-1;switch(r){case 1:var c=new w(D.cstXmlDesc.getId(),"START",null,[D.cstXmlDesc.obtenerUltimoNodo()]);return D.cstXmlDesc.setRaiz(c),s[a-1];case 2:s[a].unshift(new k(s[a-4],"",o[a-6].first_line,o[a-6].first_column,s[a-3],[],!0)),this.$=s[a];var l=D.cstXmlDesc.obtenerUltimoNodo(),h=D.cstXmlDesc.obtenerUltimoNodo();D.cstXmlDesc.agregarPila(new w(D.cstXmlDesc.getId(),"ENCABEZADO",null,[new w(D.cstXmlDesc.getId(),"lt",null,[new w(D.cstXmlDesc.getId(),"<",null,[])]),new w(D.cstXmlDesc.getId(),"interrog",null,[new w(D.cstXmlDesc.getId(),"?",null,[])]),new w(D.cstXmlDesc.getId(),"xml",null,[new w(D.cstXmlDesc.getId(),s[a-4].toString(),null,[])]),h,new w(D.cstXmlDesc.getId(),"interrog",null,[new w(D.cstXmlDesc.getId(),"?",null,[])]),new w(D.cstXmlDesc.getId(),"gt",null,[new w(D.cstXmlDesc.getId(),">",null,[])]),l]));break;case 3:R.default.agregarError("sint\xe1ctico","Token inesperado '"+t+"'",o[a-1].first_line,o[a-1].first_column),this.$=s[a],D.cstXmlDesc.agregarPila(new w(D.cstXmlDesc.getId(),"ENCABEZADO",null,[new w(D.cstXmlDesc.getId(),"error",null,[]),D.cstXmlDesc.obtenerUltimoNodo()]));break;case 4:s[a-1]=s[a-1].concat(s[a]),this.$=s[a-1];var u=D.cstXmlDesc.obtenerUltimoNodo(),f=D.cstXmlDesc.obtenerUltimoNodo();D.cstXmlDesc.agregarPila(new w(D.cstXmlDesc.getId(),"LISTAELEMENTOS",null,[f,u]));break;case 5:this.$=[],D.cstXmlDesc.agregarPila(new w(D.cstXmlDesc.getId(),"LISTAELEMENTOS",null,[new w(D.cstXmlDesc.getId(),"epsilon",null,[])]));break;case 6:this.$=[s[a]],D.cstXmlDesc.agregarPila(new w(D.cstXmlDesc.getId(),"ELEMENTO",null,[new w(D.cstXmlDesc.getId(),"lt",null,[new w(D.cstXmlDesc.getId(),"<",null,[])]),D.cstXmlDesc.obtenerUltimoNodo()]));break;case 7:var g=null;null!==s[a]&&(""===s[a].idCierre&&""===s[a].texto&&null===s[a].content?g=new k(s[a-2],"",o[a-2].first_line,o[a-2].first_column,s[a-1],[],!0):""!==s[a].idCierre&&(s[a-2]===s[a].idCierre?g=null!==s[a].content?new k(s[a-2],"",o[a-2].first_line,o[a-2].first_column,s[a-1],s[a].content,!1):""!==s[a].texto?new k(s[a-2],s[a].texto,o[a-2].first_line,o[a-2].first_column,s[a-1],[],!1):new k(s[a-2],"",o[a-2].first_line,o[a-2].first_column,s[a-1],[],!1):(console.log("Linea 85: Error semantico: Las etiquetas deben ser iguales"),R.default.agregarError("semantico","Las etiquetas deben ser iguales",o[a-2].first_line,o[a-2].first_column)))),this.$=g;var m=D.cstXmlDesc.obtenerUltimoNodo(),d=D.cstXmlDesc.obtenerUltimoNodo();D.cstXmlDesc.agregarPila(new w(D.cstXmlDesc.getId(),"ELEM",null,[new w(D.cstXmlDesc.getId(),"identifier",null,[new w(D.cstXmlDesc.getId(),s[a-2].toString(),null,[])]),d,m]));break;case 8:null!==s[a-1]?(s[a-1]=s[a-1].concat(s[a]),this.$=s[a-1]):this.$=s[a];var p=D.cstXmlDesc.obtenerUltimoNodo(),b=D.cstXmlDesc.obtenerUltimoNodo();D.cstXmlDesc.agregarPila(new w(D.cstXmlDesc.getId(),"LISTAATRIBUTOS",null,[b,p]));break;case 9:this.$=[],D.cstXmlDesc.agregarPila(new w(D.cstXmlDesc.getId(),"LISTAATRIBUTOS",null,[new w(D.cstXmlDesc.getId(),"epsilon",null,[])]));break;case 10:this.$=[new S(s[a-2],s[a],o[a-2].first_line,o[a-2].first_column)];break;case 11:console.log("Entra a error sintactico de atributo"),R.default.agregarError("sintactico","Token inesperado '"+t+"'",o[a-1].first_line,o[a-1].first_column),this.$=null,D.cstXmlDesc.agregarPila(new w(D.cstXmlDesc.getId(),"ATRIBUTO",null,[new w(D.cstXmlDesc.getId(),"identifier",null,[new w(D.cstXmlDesc.getId(),s[a-1].toString(),null,[])]),new w(D.cstXmlDesc.getId(),"asignacion",null,[new w(D.cstXmlDesc.getId(),"=",null,[])]),new w(D.cstXmlDesc.getId(),D.cstXmlDesc.obtenerUltimoNodo(),null,[])]));break;case 12:console.log("Entra a error sintactico de atributo 2"),R.default.agregarError("sintactico","Token inesperado '"+t+"'",o[a-1].first_line,o[a-1].first_column),this.$=null,D.cstXmlDesc.agregarPila(new w(D.cstXmlDesc.getId(),"ATRIBUTO",null,[new w(D.cstXmlDesc.getId(),"error",null,[]),new w(D.cstXmlDesc.getId(),"lt",null,[new w(D.cstXmlDesc.getId(),"<",null,[])])]));break;case 13:this.$=s[a].toString().replaceAll('"',""),D.cstXmlDesc.agregarPila(new w(D.cstXmlDesc.getId(),"TIPOCADENA",null,[new w(D.cstXmlDesc.getId(),"cadena",null,[new w(D.cstXmlDesc.getId(),s[a].toString().replaceAll('"',""),null,[])])]));break;case 14:this.$=s[a].toString().replaceAll("'",""),D.cstXmlDesc.agregarPila(new w(D.cstXmlDesc.getId(),"TIPOCADENA",null,[new w(D.cstXmlDesc.getId(),"cadena",null,[new w(D.cstXmlDesc.getId(),s[a].toString().replaceAll("'",""),null,[])])]));break;case 15:this.$={texto:"",content:null,idCierre:""},D.cstXmlDesc.agregarPila(new w(D.cstXmlDesc.getId(),"TIPOELEM",null,[new w(D.cstXmlDesc.getId(),"diag",null,[new w(D.cstXmlDesc.getId(),"/",null,[])]),new w(D.cstXmlDesc.getId(),"gt",null,[new w(D.cstXmlDesc.getId(),">",null,[])])]));break;case 16:""!==s[a].idCierre&&(""!==s[a-2]&&(s[a].texto=s[a-2]),this.$=s[a]);var E=D.cstXmlDesc.obtenerUltimoNodo(),T=D.cstXmlDesc.obtenerUltimoNodo();D.cstXmlDesc.agregarPila(new w(D.cstXmlDesc.getId(),"TIPOELEM",null,[new w(D.cstXmlDesc.getId(),"gt",null,[new w(D.cstXmlDesc.getId(),">",null,[])]),T,new w(D.cstXmlDesc.getId(),"lt",null,[new w(D.cstXmlDesc.getId(),"<",null,[])]),E]));break;case 17:console.log("Entra a error sintactico de TIPOELEM"),R.default.agregarError("sintactico","Token inesperado '"+t+"'",o[a-2].first_line,o[a-2].first_column),this.$=null,D.cstXmlDesc.agregarPila(new w(D.cstXmlDesc.getId(),"TIPOELEM",null,[new w(D.cstXmlDesc.getId(),"diag",null,[new w(D.cstXmlDesc.getId(),"/",null,[])]),new w(D.cstXmlDesc.getId(),"error",null,[]),new w(D.cstXmlDesc.getId(),"gt",null,[new w(D.cstXmlDesc.getId(),">",null,[])])]));break;case 18:this.$={texto:"",content:null,idCierre:s[a-1]},D.cstXmlDesc.agregarPila(new w(D.cstXmlDesc.getId(),"MOREELEMENTS",null,[new w(D.cstXmlDesc.getId(),"diag",null,[new w(D.cstXmlDesc.getId(),"/",null,[])]),new w(D.cstXmlDesc.getId(),"identifier",null,[new w(D.cstXmlDesc.getId(),s[a-1].toString().replaceAll('"',""),null,[])]),new w(D.cstXmlDesc.getId(),"gt",null,[new w(D.cstXmlDesc.getId(),">",null,[])])]));break;case 19:""!==s[a].idCierre&&(s[a-2]instanceof k?null===s[a].content?this.$={texto:"",content:[s[a-2]],idCierre:s[a].idCierre}:(s[a].content.unshift(s[a-2]),this.$={texto:"",content:s[a].content,idCierre:s[a].idCierre}):null===s[a-2]&&(this.$=s[a]));var I=D.cstXmlDesc.obtenerUltimoNodo(),y=D.cstXmlDesc.obtenerUltimoNodo();D.cstXmlDesc.agregarPila(new w(D.cstXmlDesc.getId(),"MOREELEMENTS",null,[y,new w(D.cstXmlDesc.getId(),"lt",null,[new w(D.cstXmlDesc.getId(),"<",null,[])]),I]));break;case 20:s[a-1]=s[a-1]+s[a],this.$=s[a-1];var v=D.cstXmlDesc.obtenerUltimoNodo(),A=D.cstXmlDesc.obtenerUltimoNodo();D.cstXmlDesc.agregarPila(new w(D.cstXmlDesc.getId(),"TEXTCONTENT",null,[A,v]));break;case 21:this.$="",D.cstXmlDesc.agregarPila(new w(D.cstXmlDesc.getId(),"TEXTCONTENT",null,[new w(D.cstXmlDesc.getId(),"epsilon",null,[])]));break;case 22:this.$=s[a].toString().replaceAll('"',""),D.cstXmlDesc.agregarPila(new w(D.cstXmlDesc.getId(),"TEXT",null,[new w(D.cstXmlDesc.getId(),"identificador",null,[new w(D.cstXmlDesc.getId(),s[a].toString().replaceAll('"',""),null,[])])]));break;case 23:this.$=s[a].toString(),D.cstXmlDesc.agregarPila(new w(D.cstXmlDesc.getId(),"TEXT",null,[new w(D.cstXmlDesc.getId(),"content",null,[new w(D.cstXmlDesc.getId(),s[a].toString().replaceAll('"',""),null,[])])]));break;case 24:this.$=s[a].toString().replaceAll('"',""),D.cstXmlDesc.agregarPila(new w(D.cstXmlDesc.getId(),"TEXT",null,[new w(D.cstXmlDesc.getId(),"double",null,[new w(D.cstXmlDesc.getId(),s[a].toString().replaceAll('"',""),null,[])])]));break;case 25:this.$=s[a].toString().replaceAll('"',""),D.cstXmlDesc.agregarPila(new w(D.cstXmlDesc.getId(),"TEXT",null,[new w(D.cstXmlDesc.getId(),"integer",null,[new w(D.cstXmlDesc.getId(),s[a].toString().replaceAll('"',""),null,[])])]));break;case 26:this.$=s[a].toString(),D.cstXmlDesc.agregarPila(new w(D.cstXmlDesc.getId(),"TEXT",null,[new w(D.cstXmlDesc.getId(),"identificador",null,[new w(D.cstXmlDesc.getId(),s[a].toString().replaceAll('"',""),null,[])])]));break;case 27:this.$=s[a].toString().replaceAll('"',""),D.cstXmlDesc.agregarPila(new w(D.cstXmlDesc.getId(),"TEXT",null,[new w(D.cstXmlDesc.getId(),"comilla simple",null,[new w(D.cstXmlDesc.getId(),s[a].toString().replaceAll('"',""),null,[])])]));break;case 28:this.$="<",D.cstXmlDesc.agregarPila(new w(D.cstXmlDesc.getId(),"TEXT",null,[new w(D.cstXmlDesc.getId(),"menor que",null,[new w(D.cstXmlDesc.getId(),"<",null,[])])]));break;case 29:this.$=">",D.cstXmlDesc.agregarPila(new w(D.cstXmlDesc.getId(),"TEXT",null,[new w(D.cstXmlDesc.getId(),"mayor que",null,[new w(D.cstXmlDesc.getId(),">",null,[])])]));break;case 30:this.$="&",D.cstXmlDesc.agregarPila(new w(D.cstXmlDesc.getId(),"TEXT",null,[new w(D.cstXmlDesc.getId(),"ampersand",null,[new w(D.cstXmlDesc.getId(),"&",null,[])])]));break;case 31:this.$="'",D.cstXmlDesc.agregarPila(new w(D.cstXmlDesc.getId(),"TEXT",null,[new w(D.cstXmlDesc.getId(),"apostrofe",null,[new w(D.cstXmlDesc.getId(),"'",null,[])])]));break;case 32:this.$='"',D.cstXmlDesc.agregarPila(new w(D.cstXmlDesc.getId(),"TEXT",null,[new w(D.cstXmlDesc.getId(),"comilla doble",null,[new w(D.cstXmlDesc.getId(),'"',null,[])])]));break;case 33:this.$=s[a].toString().replaceAll('"',""),D.cstXmlDesc.agregarPila(new w(D.cstXmlDesc.getId(),"TEXT",null,[]))}},table:[{2:[1,4],3:1,4:2,6:[1,3]},{1:[3]},{5:[1,5]},{7:[1,6]},{5:e,6:n,11:7,12:8},{1:[2,1]},{8:[1,10]},{5:[2,3]},{5:e,6:n,11:11,12:8},{13:12,14:r},{2:s,7:o,9:14,14:a,16:15},{5:[2,4]},t(c,[2,6]),t([10,21],o,{16:15,9:18,2:s,14:a}),{7:[1,19]},t(l,o,{16:15,9:20,2:s,14:a}),{17:[1,21]},{6:[1,23],10:[1,22]},{10:[1,26],15:24,21:[1,25]},{10:[1,27]},t(l,[2,8]),{18:28,19:[1,29],20:[1,30]},t(h,[2,11]),t(h,[2,12]),t(c,[2,7]),{2:[1,32],10:[1,31]},{2:u,6:f,8:g,14:m,22:33,24:34,25:d,26:p,27:b,28:E,29:T,30:I,31:y,32:v,33:A},{5:e,6:n,11:47,12:8},t(h,[2,10]),t(h,[2,13]),t(h,[2,14]),t(c,[2,15]),{10:[1,48]},{6:[1,49]},{2:u,6:f,8:g,14:m,22:50,24:34,25:d,26:p,27:b,28:E,29:T,30:I,31:y,32:v,33:A},t(_,[2,22]),t(_,[2,23]),t(_,[2,24]),t(_,[2,25]),t(_,[2,26]),t(_,[2,27]),t(_,[2,28]),t(_,[2,29]),t(_,[2,30]),t(_,[2,31]),t(_,[2,32]),t(_,[2,33]),{5:[2,2]},t(c,[2,17]),{13:53,14:r,21:O,23:51},{6:[2,20]},t(c,[2,16]),{14:[1,54]},{6:[1,55]},{10:[1,56]},{13:53,14:r,21:O,23:57},t(c,[2,18]),t(c,[2,19])],defaultActions:{5:[2,1],7:[2,3],11:[2,4],47:[2,2],50:[2,20]},parseError:function(t,e){if(!e.recoverable){var i=new Error(t);throw i.hash=e,i}this.trace(t)},parse:function(t){var e=this,i=[0],n=[null],r=[],s=this.table,o="",a=0,c=0,l=0,h=2,u=1,f=r.slice.call(arguments,1),g=Object.create(this.lexer),m={yy:{}};for(var d in this.yy)Object.prototype.hasOwnProperty.call(this.yy,d)&&(m.yy[d]=this.yy[d]);g.setInput(t,m.yy),m.yy.lexer=g,m.yy.parser=this,"undefined"==typeof g.yylloc&&(g.yylloc={});var p=g.yylloc;r.push(p);var b=g.options&&g.options.ranges;function E(t){i.length=i.length-2*t,n.length=n.length-t,r.length=r.length-t}"function"===typeof m.yy.parseError?this.parseError=m.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var T,I,y,v,A,_,O,N,k,S=function(){var t;return"number"!==typeof(t=g.lex()||u)&&(t=e.symbols_[t]||t),t},R={};;){if(y=i[i.length-1],this.defaultActions[y]?v=this.defaultActions[y]:(null!==T&&"undefined"!=typeof T||(T=S()),v=s[y]&&s[y][T]),"undefined"===typeof v||!v.length||!v[0]){var w,D=function(t){for(var e=i.length-1,n=0;;){if(h.toString()in s[t])return n;if(0===t||e<2)return!1;t=i[e-=2],++n}},P="";if(l)I!==u&&(w=D(y));else{for(_ in w=D(y),k=[],s[y])this.terminals_[_]&&_>h&&k.push("'"+this.terminals_[_]+"'");P=g.showPosition?"Parse error on line "+(a+1)+":\n"+g.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[T]||T)+"'":"Parse error on line "+(a+1)+": Unexpected "+(T==u?"end of input":"'"+(this.terminals_[T]||T)+"'"),this.parseError(P,{text:g.match,token:this.terminals_[T]||T,line:g.yylineno,loc:p,expected:k,recoverable:!1!==w})}if(3==l){if(T===u||I===u)throw new Error(P||"Parsing halted while starting to recover from another error.");c=g.yyleng,o=g.yytext,a=g.yylineno,p=g.yylloc,T=S()}if(!1===w)throw new Error(P||"Parsing halted. No suitable error recovery rule available.");E(w),I=T==h?null:T,T=h,y=i[i.length-1],v=s[y]&&s[y][h],l=3}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+y+", token: "+T);switch(v[0]){case 1:i.push(T),n.push(g.yytext),r.push(g.yylloc),i.push(v[1]),T=null,I?(T=I,I=null):(c=g.yyleng,o=g.yytext,a=g.yylineno,p=g.yylloc,l>0&&l--);break;case 2:if(O=this.productions_[v[1]][1],R.$=n[n.length-O],R._$={first_line:r[r.length-(O||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(O||1)].first_column,last_column:r[r.length-1].last_column},b&&(R._$.range=[r[r.length-(O||1)].range[0],r[r.length-1].range[1]]),"undefined"!==typeof(A=this.performAction.apply(R,[o,c,a,m.yy,v[1],n,r].concat(f))))return A;O&&(i=i.slice(0,-1*O*2),n=n.slice(0,-1*O),r=r.slice(0,-1*O)),i.push(this.productions_[v[1]][0]),n.push(R.$),r.push(R._$),N=s[i[i.length-2]][i[i.length-1]],i.push(N);break;case 3:return!0}}return!0}},k=i(70).Objeto,S=i(53).Atributo,R=i(8),w=i(113).Nodo,D=i(54),P={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===n.length?this.yylloc.first_column:0)+n[n.length-i.length].length-i[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var i,n,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],i=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var s in r)this[s]=r[s];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,i,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),s=0;s<r.length;s++)if((i=this._input.match(this.rules[r[s]]))&&(!e||i[0].length>e[0].length)){if(e=i,n=s,this.options.backtrack_lexer){if(!1!==(t=this.test_match(i,r[s])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,e,i,n){switch(i){case 0:this.begin("comment");break;case 1:this.popState();break;case 2:case 3:break;case 4:return 6;case 5:return 10;case 6:return 17;case 7:return 21;case 8:return 7;case 9:return 28;case 10:return"xml";case 11:return 29;case 12:return 30;case 13:return 31;case 14:return"apostrophe";case 15:return"quot";case 16:return 26;case 17:return 27;case 18:return 14;case 19:return 19;case 20:return 20;case 21:return 25;case 22:return 5;case 23:R.default.agregarError("lexico","Simbolo inesperado "+e.yytext,e.yylloc.first_line,e.yylloc.first_column)}},rules:[/^(?:<!--)/,/^(?:-->)/,/^(?:.)/,/^(?:\s+)/,/^(?:<)/,/^(?:>)/,/^(?:=)/,/^(?:\/)/,/^(?:\?)/,/^(?:')/,/^(?:[xX][mM][lL])/,/^(?:&lt;)/,/^(?:&gt;)/,/^(?:&amp;)/,/^(?:&apos;)/,/^(?:&quot;)/,/^(?:(([0-9]+\.[0-9]*)|(\.[0-9]+)))/,/^(?:[0-9]+)/,/^(?:[a-zA-Z_][a-zA-Z0-9_\xf1\xd1.-]*)/,/^(?:("((\\([\'\"\\]))|([^\"\\]+))*"))/,/^(?:('((\\([\'\"\\]))|([^\'\\]))*'))/,/^(?:([^<]))/,/^(?:$)/,/^(?:.)/],conditions:{comment:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],inclusive:!0},INITIAL:{rules:[0,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],inclusive:!0}}};function U(){this.yy={}}return N.lexer=P,U.prototype=N,N.Parser=U,new U}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(n){n[1]||(console.log("Usage: "+n[0]+" FILE"),t.exit(1));var r=i(49).readFileSync(i(50).normalize(n[1]),"utf8");return e.parser.parse(r)},i.c[i.s]===n&&e.main(t.argv.slice(1))}).call(this,i(37),i(48)(t))},function(t,e,i){"use strict";(function(t,n){var r=function(){var t=function(t,e,i,n){for(i=i||{},n=t.length;n--;i[t[n]]=e);return i},e=[1,4],n=[1,16],r=[1,7],s=[1,9],o=[1,8],a=[1,15],c=[1,14],l=[1,12],h=[1,13],u=[5,6],f=[5,6,12,16,20,43,44,45,46,47,48,49,50,51,52,53,54,56],g=[2,39],m=[1,26],d=[1,31],p=[1,34],b=[1,35],E=[1,36],T=[1,37],I=[1,38],y=[1,39],v=[1,40],A=[1,41],_=[1,42],O=[1,43],N=[1,44],k=[1,45],S=[1,46],R=[1,58],w=[1,59],D=[1,60],P=[1,62],U=[1,54],L=[1,55],C=[1,56],x=[1,57],$=[1,80],X=[1,81],j=[1,82],F=[1,83],M=[1,84],G=[1,85],Q=[1,86],B=[1,87],V=[1,88],H=[1,89],z=[1,90],q=[1,91],Y=[1,92],W=[16,20,43,44,45,46,47,48,49,50,51,52,53,54,56],Z=[1,99],J=[1,102],K=[1,100],tt=[1,101],et=[16,43,44,46,47,48,49,50,51,52,53,56],it=[16,46,47,48,49,50,51,52,53,56],nt={trace:function(){},yy:{},symbols_:{error:2,START:3,LISTACONSULTAS:4,EOF:5,andSelect:6,CONSULTA:7,identifier:8,LISTANODOS:9,MASTIPOS:10,NODO:11,diag:12,TIPONODO:13,corA:14,EXPRESION:15,corC:16,AXES:17,attr:18,PREDICATE:19,asterisco:20,dot:21,FUNCIONES:22,ancestor:23,dospuntos:24,NODETEST:25,ancestorSelf:26,attribute:27,child:28,descendant:29,descendantSelf:30,following:31,followingSib:32,namespace:33,parent:34,preced:35,precedSib:36,self:37,textFunc:38,nodeFunc:39,LISTAEXPRESIONES:40,PRIMITIVA:41,OPERACION:42,mas:43,menos:44,div:45,lte:46,lt:47,gte:48,gt:49,igual:50,nequal:51,or:52,and:53,mod:54,parA:55,parC:56,DoubleLiteral:57,IntegerLiteral:58,cadena:59,cadena2:60,lastFunc:61,positionFunc:62,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",6:"andSelect",8:"identifier",12:"diag",14:"corA",16:"corC",18:"attr",20:"asterisco",21:"dot",23:"ancestor",24:"dospuntos",26:"ancestorSelf",27:"attribute",28:"child",29:"descendant",30:"descendantSelf",31:"following",32:"followingSib",33:"namespace",34:"parent",35:"preced",36:"precedSib",37:"self",38:"textFunc",39:"nodeFunc",43:"mas",44:"menos",45:"div",46:"lte",47:"lt",48:"gte",49:"gt",50:"igual",51:"nequal",52:"or",53:"and",54:"mod",55:"parA",56:"parC",57:"DoubleLiteral",58:"IntegerLiteral",59:"cadena",60:"cadena2",61:"lastFunc",62:"positionFunc"},productions_:[0,[3,2],[4,3],[4,1],[7,1],[7,2],[7,2],[7,1],[7,1],[9,2],[9,1],[11,2],[11,3],[11,2],[11,3],[13,1],[13,4],[13,1],[13,1],[10,3],[10,3],[10,2],[10,3],[10,2],[10,1],[17,3],[17,3],[17,3],[17,3],[17,3],[17,3],[17,3],[17,3],[17,3],[17,3],[17,3],[17,3],[17,3],[19,3],[19,0],[25,2],[25,2],[25,2],[25,2],[40,2],[40,1],[15,1],[15,1],[42,3],[42,3],[42,3],[42,3],[42,3],[42,3],[42,3],[42,3],[42,3],[42,3],[42,3],[42,3],[42,3],[42,3],[41,1],[41,1],[41,1],[41,1],[41,1],[41,2],[41,2],[41,1],[41,2],[41,1],[22,1],[22,1],[22,1],[22,1]],performAction:function(t,e,i,n,r,s,o){var a=s.length-1;switch(r){case 1:return this.$=s[a-1],this.$;case 2:s[a-2].push(new ot(s[a],o[a].first_line,o[a].first_column)),this.$=s[a-2];break;case 3:this.$=[new ot(s[a],o[a].first_line,o[a].first_column)];break;case 4:this.$=[new at(s[a],ut.IDENTIFIER,o[a].first_line,o[a].first_column)];break;case 5:this.$=[new at(s[a-1],ut.IDENTIFIER,o[a-1].first_line,o[a-1].first_column)],this.$=this.$.concat(s[a]);break;case 6:this.$=[s[a-1]],this.$=this.$.concat(s[a]);break;case 7:case 47:case 74:case 75:this.$=s[a];break;case 8:this.$=[s[a]];break;case 9:s[a-1].push(s[a]),this.$=s[a-1];break;case 10:this.$=[s[a]];break;case 11:null!=this.$&&(s[a].fromRoot=!0,this.$=s[a]);break;case 12:null!=this.$&&(s[a].fromRoot=!1,this.$=s[a]);break;case 13:console.log("Entra a error sintactico de one diag"),gt.default.agregarError("sintactico","Token inesperado '"+t+"'",o[a-1].first_line,o[a-1].first_column),this.$=new at(s[a],ut.NODOERROR,o[a-1].first_line,o[a-1].first_column);break;case 14:console.log("Entra a error sintactico de two diags"),gt.default.agregarError("sintactico","Token inesperado '"+t+"'",o[a-2].first_line,o[a-2].first_column),this.$=new at(s[a],ut.NODOERROR,o[a-2].first_line,o[a-2].first_column);break;case 15:this.$=new at(s[a],ut.IDENTIFIER,o[a].first_line,o[a].first_column);break;case 16:this.$=new at(s[a-3],ut.IDENTIFIER,o[a-3].first_line,o[a-3].first_column,new ct(s[a-1],o[a-3].first_line,o[a-3].first_column));break;case 17:case 18:case 46:case 72:case 73:this.$=s[a];break;case 19:case 20:this.$=new at(s[a-1],ut.ATRIBUTO,o[a-2].first_line,o[a-2].first_column);break;case 21:this.$=new at(s[a-1],ut.DOT,o[a-1].first_line,o[a-1].first_column);break;case 22:this.$=new at(s[a-2]+s[a-1],ut.DOTDOT,o[a-2].first_line,o[a-2].first_column);break;case 23:this.$=new at(s[a-1],ut.ASTERISCO,o[a-1].first_line,o[a-1].first_column);break;case 24:this.$=new at(s[a],ut.FUNCION,o[a].first_line,o[a].first_column);break;case 25:this.$=new at(s[a-2],ut.AXIS,o[a-2].first_line,o[a-2].first_column,void 0,ft.ANCESTOR,s[a]);break;case 26:this.$=new at(s[a-2],ut.AXIS,o[a-2].first_line,o[a-2].first_column,void 0,ft.ANCESTORORSELF,s[a]);break;case 27:this.$=new at(s[a-2],ut.AXIS,o[a-2].first_line,o[a-2].first_column,void 0,ft.ATTRIBUTE,s[a]);break;case 28:this.$=new at(s[a-2],ut.AXIS,o[a-2].first_line,o[a-2].first_column,void 0,ft.CHILD,s[a]);break;case 29:this.$=new at(s[a-2],ut.AXIS,o[a-2].first_line,o[a-2].first_column,void 0,ft.DESCENDANT,s[a]);break;case 30:this.$=new at(s[a-2],ut.AXIS,o[a-2].first_line,o[a-2].first_column,void 0,ft.DESCENDANTORSELF,s[a]);break;case 31:this.$=new at(s[a-2],ut.AXIS,o[a-2].first_line,o[a-2].first_column,void 0,ft.FOLLOWING,s[a]);break;case 32:this.$=new at(s[a-2],ut.AXIS,o[a-2].first_line,o[a-2].first_column,void 0,ft.FOLLOWINGSIBLING,s[a]);break;case 33:this.$=new at(s[a-2],ut.AXIS,o[a-2].first_line,o[a-2].first_column,void 0,ft.NAMESPACE,s[a]);break;case 34:this.$=new at(s[a-2],ut.AXIS,o[a-2].first_line,o[a-2].first_column,void 0,ft.PARENT,s[a]);break;case 35:this.$=new at(s[a-2],ut.AXIS,o[a-2].first_line,o[a-2].first_column,void 0,ft.PRECEDING,s[a]);break;case 36:this.$=new at(s[a-2],ut.AXIS,o[a-2].first_line,o[a-2].first_column,void 0,ft.PRECEDINGSIBLING,s[a]);break;case 37:this.$=new at(s[a-2],ut.AXIS,o[a-2].first_line,o[a-2].first_column,void 0,ft.SELF,s[a]);break;case 38:this.$=new ct(s[a-1],o[a-2].first_line,o[a-2].first_column);break;case 39:this.$=[];break;case 40:s[a]instanceof ct?this.$=new at(s[a-1],ut.IDENTIFIER,o[a-1].first_line,o[a-1].first_column,s[a]):this.$=new at(s[a-1],ut.IDENTIFIER,o[a-1].first_line,o[a-1].first_column);break;case 41:s[a]instanceof ct?this.$=new at(s[a-1],ut.FUNCION,o[a-1].first_line,o[a-1].first_column,s[a]):this.$=new at(s[a-1],ut.IDENTIFIER,o[a-1].first_line,o[a-1].first_column);break;case 42:s[a]instanceof ct?this.$=new at(s[a-1],ut.FUNCION,o[a-1].first_line,o[a-1].first_column,s[a]):this.$=new at(s[a-1],ut.FUNCION,o[a-1].first_line,o[a-1].first_column);break;case 43:s[a]instanceof ct?this.$=new at(s[a-1],ut.ASTERISCO,o[a-1].first_line,o[a-1].first_column,s[a]):this.$=new at(s[a-1],ut.ASTERISCO,o[a-1].first_line,o[a-1].first_column);break;case 44:s[a-1].push(s[a]),this.$=s[a-1];break;case 45:this.$=[s[a]];break;case 48:this.$=new st(ht.MULTIPLICACION,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column);break;case 49:this.$=new st(ht.SUMA,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column);break;case 50:this.$=new st(ht.RESTA,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column);break;case 51:this.$=new st(ht.DIVISION,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column);break;case 52:this.$=new st(ht.MENORIGUALQUE,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column);break;case 53:this.$=new st(ht.MENORQUE,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column);break;case 54:this.$=new st(ht.MAYORIGUALQUE,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column);break;case 55:this.$=new st(ht.MAYORQUE,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column);break;case 56:this.$=new st(ht.IGUAL,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column);break;case 57:this.$=new st(ht.DIFERENTEQUE,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column);break;case 58:this.$=new st(ht.OR,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column);break;case 59:this.$=new st(ht.AND,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column);break;case 60:this.$=new st(ht.MOD,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column);break;case 61:this.$=new st(ht.PAR,s[a-1],null,o[a-2].first_line,o[a-2].first_column);break;case 62:this.$=new rt(s[a],lt.DOUBLE,o[a].first_line,o[a].first_column);break;case 63:this.$=new rt(s[a],lt.INTEGER,o[a].first_line,o[a].first_column);break;case 64:case 65:this.$=new rt(s[a],lt.CADENA,o[a].first_line,o[a].first_column);break;case 66:this.$=new rt(s[a],lt.IDENTIFIER,o[a].first_line,o[a].first_column);break;case 67:case 68:this.$=new rt(s[a],lt.ATRIBUTO,o[a-1].first_line,o[a-1].first_column);break;case 69:this.$=new rt(s[a],lt.DOT,o[a].first_line,o[a].first_column);break;case 70:this.$=[new at(s[a-1],ut.IDENTIFIER,o[a-1].first_line,o[a-1].first_column)],this.$=this.$.concat(s[a]),this.$=new rt(this.$,lt.CONSULTA,o[a-1].first_line,o[a-1].first_column);break;case 71:this.$=new rt(s[a],lt.FUNCION,o[a].first_line,o[a].first_column)}},table:[{3:1,4:2,7:3,8:e,9:6,10:5,11:11,12:n,18:r,20:s,21:o,22:10,38:a,39:c,61:l,62:h},{1:[3]},{5:[1,17],6:[1,18]},t(u,[2,3]),t(u,[2,4],{11:11,9:19,12:n}),t(u,[2,8],{11:11,9:20,12:n}),t(u,[2,7],{11:21,12:n}),{8:[1,22],20:[1,23]},t(f,g,{19:24,14:m,21:[1,25]}),t(f,g,{19:27,14:m}),t(f,[2,24]),t(f,[2,10]),t(f,[2,72]),t(f,[2,73]),t(f,[2,74]),t(f,[2,75]),{2:[1,30],8:d,10:32,12:[1,29],13:28,17:33,18:r,20:s,21:o,22:10,23:p,26:b,27:E,28:T,29:I,30:y,31:v,32:A,33:_,34:O,35:N,36:k,37:S,38:a,39:c,61:l,62:h},{1:[2,1]},{7:47,8:e,9:6,10:5,11:11,12:n,18:r,20:s,21:o,22:10,38:a,39:c,61:l,62:h},t(u,[2,5],{11:21,12:n}),t(u,[2,6],{11:21,12:n}),t(f,[2,9]),t(f,g,{19:48,14:m}),t(f,g,{19:49,14:m}),t(f,[2,21]),t(f,g,{19:50,14:m}),{8:R,15:51,18:w,21:D,22:61,38:a,39:c,41:52,42:53,55:P,57:U,58:L,59:C,60:x,61:l,62:h},t(f,[2,23]),t(f,[2,11]),{2:[1,64],8:d,10:32,13:63,17:33,18:r,20:s,21:o,22:10,23:p,26:b,27:E,28:T,29:I,30:y,31:v,32:A,33:_,34:O,35:N,36:k,37:S,38:a,39:c,61:l,62:h},t(f,[2,13]),t(f,[2,15],{14:[1,65]}),t(f,[2,17]),t(f,[2,18]),{24:[1,66]},{24:[1,67]},{24:[1,68]},{24:[1,69]},{24:[1,70]},{24:[1,71]},{24:[1,72]},{24:[1,73]},{24:[1,74]},{24:[1,75]},{24:[1,76]},{24:[1,77]},{24:[1,78]},t(u,[2,2]),t(f,[2,19]),t(f,[2,20]),t(f,[2,22]),{16:[1,79],20:$,43:X,44:j,45:F,46:M,47:G,48:Q,49:B,50:V,51:H,52:z,53:q,54:Y},t(W,[2,46]),t(W,[2,47]),t(W,[2,62]),t(W,[2,63]),t(W,[2,64]),t(W,[2,65]),t(W,[2,66],{11:11,9:93,12:n}),{8:[1,94],20:[1,95]},t(W,[2,69]),t(W,[2,71]),{8:R,15:96,18:w,21:D,22:61,38:a,39:c,41:52,42:53,55:P,57:U,58:L,59:C,60:x,61:l,62:h},t(f,[2,12]),t(f,[2,14]),{8:R,15:97,18:w,21:D,22:61,38:a,39:c,41:52,42:53,55:P,57:U,58:L,59:C,60:x,61:l,62:h},{8:Z,20:J,25:98,38:K,39:tt},{8:Z,20:J,25:103,38:K,39:tt},{8:Z,20:J,25:104,38:K,39:tt},{8:Z,20:J,25:105,38:K,39:tt},{8:Z,20:J,25:106,38:K,39:tt},{8:Z,20:J,25:107,38:K,39:tt},{8:Z,20:J,25:108,38:K,39:tt},{8:Z,20:J,25:109,38:K,39:tt},{8:Z,20:J,25:110,38:K,39:tt},{8:Z,20:J,25:111,38:K,39:tt},{8:Z,20:J,25:112,38:K,39:tt},{8:Z,20:J,25:113,38:K,39:tt},{8:Z,20:J,25:114,38:K,39:tt},t(f,[2,38]),{8:R,15:115,18:w,21:D,22:61,38:a,39:c,41:52,42:53,55:P,57:U,58:L,59:C,60:x,61:l,62:h},{8:R,15:116,18:w,21:D,22:61,38:a,39:c,41:52,42:53,55:P,57:U,58:L,59:C,60:x,61:l,62:h},{8:R,15:117,18:w,21:D,22:61,38:a,39:c,41:52,42:53,55:P,57:U,58:L,59:C,60:x,61:l,62:h},{8:R,15:118,18:w,21:D,22:61,38:a,39:c,41:52,42:53,55:P,57:U,58:L,59:C,60:x,61:l,62:h},{8:R,15:119,18:w,21:D,22:61,38:a,39:c,41:52,42:53,55:P,57:U,58:L,59:C,60:x,61:l,62:h},{8:R,15:120,18:w,21:D,22:61,38:a,39:c,41:52,42:53,55:P,57:U,58:L,59:C,60:x,61:l,62:h},{8:R,15:121,18:w,21:D,22:61,38:a,39:c,41:52,42:53,55:P,57:U,58:L,59:C,60:x,61:l,62:h},{8:R,15:122,18:w,21:D,22:61,38:a,39:c,41:52,42:53,55:P,57:U,58:L,59:C,60:x,61:l,62:h},{8:R,15:123,18:w,21:D,22:61,38:a,39:c,41:52,42:53,55:P,57:U,58:L,59:C,60:x,61:l,62:h},{8:R,15:124,18:w,21:D,22:61,38:a,39:c,41:52,42:53,55:P,57:U,58:L,59:C,60:x,61:l,62:h},{8:R,15:125,18:w,21:D,22:61,38:a,39:c,41:52,42:53,55:P,57:U,58:L,59:C,60:x,61:l,62:h},{8:R,15:126,18:w,21:D,22:61,38:a,39:c,41:52,42:53,55:P,57:U,58:L,59:C,60:x,61:l,62:h},{8:R,15:127,18:w,21:D,22:61,38:a,39:c,41:52,42:53,55:P,57:U,58:L,59:C,60:x,61:l,62:h},t(W,[2,70],{11:21,12:n}),t(W,[2,67]),t(W,[2,68]),{20:$,43:X,44:j,45:F,46:M,47:G,48:Q,49:B,50:V,51:H,52:z,53:q,54:Y,56:[1,128]},{16:[1,129],20:$,43:X,44:j,45:F,46:M,47:G,48:Q,49:B,50:V,51:H,52:z,53:q,54:Y},t(f,[2,25]),t(f,g,{19:130,14:m}),t(f,g,{19:131,14:m}),t(f,g,{19:132,14:m}),t(f,g,{19:133,14:m}),t(f,[2,26]),t(f,[2,27]),t(f,[2,28]),t(f,[2,29]),t(f,[2,30]),t(f,[2,31]),t(f,[2,32]),t(f,[2,33]),t(f,[2,34]),t(f,[2,35]),t(f,[2,36]),t(f,[2,37]),t(W,[2,48]),t(et,[2,49],{20:$,45:F,54:Y}),t(et,[2,50],{20:$,45:F,54:Y}),t(W,[2,51]),t(it,[2,52],{20:$,43:X,44:j,45:F,54:Y}),t(it,[2,53],{20:$,43:X,44:j,45:F,54:Y}),t(it,[2,54],{20:$,43:X,44:j,45:F,54:Y}),t(it,[2,55],{20:$,43:X,44:j,45:F,54:Y}),t(it,[2,56],{20:$,43:X,44:j,45:F,54:Y}),t(it,[2,57],{20:$,43:X,44:j,45:F,54:Y}),t([16,52,56],[2,58],{20:$,43:X,44:j,45:F,46:M,47:G,48:Q,49:B,50:V,51:H,53:q,54:Y}),t([16,52,53,56],[2,59],{20:$,43:X,44:j,45:F,46:M,47:G,48:Q,49:B,50:V,51:H,54:Y}),t(W,[2,60]),t(W,[2,61]),t(f,[2,16]),t(f,[2,40]),t(f,[2,41]),t(f,[2,42]),t(f,[2,43])],defaultActions:{17:[2,1]},parseError:function(t,e){if(!e.recoverable){var i=new Error(t);throw i.hash=e,i}this.trace(t)},parse:function(t){var e=this,i=[0],n=[null],r=[],s=this.table,o="",a=0,c=0,l=0,h=2,u=1,f=r.slice.call(arguments,1),g=Object.create(this.lexer),m={yy:{}};for(var d in this.yy)Object.prototype.hasOwnProperty.call(this.yy,d)&&(m.yy[d]=this.yy[d]);g.setInput(t,m.yy),m.yy.lexer=g,m.yy.parser=this,"undefined"==typeof g.yylloc&&(g.yylloc={});var p=g.yylloc;r.push(p);var b=g.options&&g.options.ranges;function E(t){i.length=i.length-2*t,n.length=n.length-t,r.length=r.length-t}"function"===typeof m.yy.parseError?this.parseError=m.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var T,I,y,v,A,_,O,N,k,S=function(){var t;return"number"!==typeof(t=g.lex()||u)&&(t=e.symbols_[t]||t),t},R={};;){if(y=i[i.length-1],this.defaultActions[y]?v=this.defaultActions[y]:(null!==T&&"undefined"!=typeof T||(T=S()),v=s[y]&&s[y][T]),"undefined"===typeof v||!v.length||!v[0]){var w,D=function(t){for(var e=i.length-1,n=0;;){if(h.toString()in s[t])return n;if(0===t||e<2)return!1;t=i[e-=2],++n}},P="";if(l)I!==u&&(w=D(y));else{for(_ in w=D(y),k=[],s[y])this.terminals_[_]&&_>h&&k.push("'"+this.terminals_[_]+"'");P=g.showPosition?"Parse error on line "+(a+1)+":\n"+g.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[T]||T)+"'":"Parse error on line "+(a+1)+": Unexpected "+(T==u?"end of input":"'"+(this.terminals_[T]||T)+"'"),this.parseError(P,{text:g.match,token:this.terminals_[T]||T,line:g.yylineno,loc:p,expected:k,recoverable:!1!==w})}if(3==l){if(T===u||I===u)throw new Error(P||"Parsing halted while starting to recover from another error.");c=g.yyleng,o=g.yytext,a=g.yylineno,p=g.yylloc,T=S()}if(!1===w)throw new Error(P||"Parsing halted. No suitable error recovery rule available.");E(w),I=T==h?null:T,T=h,y=i[i.length-1],v=s[y]&&s[y][h],l=3}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+y+", token: "+T);switch(v[0]){case 1:i.push(T),n.push(g.yytext),r.push(g.yylloc),i.push(v[1]),T=null,I?(T=I,I=null):(c=g.yyleng,o=g.yytext,a=g.yylineno,p=g.yylloc,l>0&&l--);break;case 2:if(O=this.productions_[v[1]][1],R.$=n[n.length-O],R._$={first_line:r[r.length-(O||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(O||1)].first_column,last_column:r[r.length-1].last_column},b&&(R._$.range=[r[r.length-(O||1)].range[0],r[r.length-1].range[1]]),"undefined"!==typeof(A=this.performAction.apply(R,[o,c,a,m.yy,v[1],n,r].concat(f))))return A;O&&(i=i.slice(0,-1*O*2),n=n.slice(0,-1*O),r=r.slice(0,-1*O)),i.push(this.productions_[v[1]][0]),n.push(R.$),r.push(R._$),N=s[i[i.length-2]][i[i.length-1]],i.push(N);break;case 3:return!0}}return!0}},rt=i(0).Primitiva,st=i(38).Operacion,ot=i(20).Consulta,at=i(10).Nodo,ct=i(79).Predicate,lt=i(0).TipoPrim,ht=i(38).TipoOperacion,ut=i(10).TipoNodo,ft=i(10).TipoAxis,gt=i(8),mt={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===n.length?this.yylloc.first_column:0)+n[n.length-i.length].length-i[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var i,n,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],i=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var s in r)this[s]=r[s];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,i,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),s=0;s<r.length;s++)if((i=this._input.match(this.rules[r[s]]))&&(!e||i[0].length>e[0].length)){if(e=i,n=s,this.options.backtrack_lexer){if(!1!==(t=this.test_match(i,r[s])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,e,i,n){switch(i){case 0:break;case 1:return 50;case 2:return 12;case 3:return"dot";case 4:return"attr";case 5:return"corA";case 6:return"corC";case 7:return"andSelect";case 8:return"dospuntos";case 9:return"parA";case 10:return"parC";case 11:return 20;case 12:return"mas";case 13:return"menos";case 14:return"div";case 15:return 46;case 16:return"gte";case 17:return 47;case 18:return 49;case 19:return"nequal";case 20:return"or";case 21:return"and";case 22:return"mod";case 23:return"ancestorSelf";case 24:return"ancestor";case 25:return"attribute";case 26:return"child";case 27:return"descendantSelf";case 28:return"descendant";case 29:return"followingSib";case 30:return"following";case 31:return"namespace";case 32:return"parent";case 33:return"precedSib";case 34:return"preced";case 35:return"self";case 36:return"lastFunc";case 37:return"positionFunc";case 38:return"nodeFunc";case 39:return"textFunc";case 40:return 57;case 41:return 58;case 42:return 8;case 43:return 59;case 44:return 60;case 45:console.log(gt.default),gt.default.agregarError("lexico","Simbolo inesperado "+e.yytext,e.yylloc.first_line,e.yylloc.first_column);break;case 46:return 5}},rules:[/^(?:\s+)/,/^(?:=)/,/^(?:\/)/,/^(?:\.)/,/^(?:@)/,/^(?:\[)/,/^(?:\])/,/^(?:\|)/,/^(?:::)/,/^(?:\()/,/^(?:\))/,/^(?:\*)/,/^(?:\+)/,/^(?:-)/,/^(?:div\b)/,/^(?:<=)/,/^(?:>=)/,/^(?:<)/,/^(?:>)/,/^(?:!=)/,/^(?:or\b)/,/^(?:and\b)/,/^(?:mod\b)/,/^(?:ancestor-or-self\b)/,/^(?:ancestor\b)/,/^(?:attribute\b)/,/^(?:child\b)/,/^(?:descendant-or-self\b)/,/^(?:descendant\b)/,/^(?:following-sibling\b)/,/^(?:following\b)/,/^(?:namespace\b)/,/^(?:parent\b)/,/^(?:preceding-sibling\b)/,/^(?:preceding\b)/,/^(?:self\b)/,/^(?:last\(\))/,/^(?:position\(\))/,/^(?:node\(\))/,/^(?:text\(\))/,/^(?:(([0-9]+\.[0-9]*)|(\.[0-9]+)))/,/^(?:[0-9]+)/,/^(?:[a-zA-Z_][a-zA-Z0-9_\xf1\xd1.-]*)/,/^(?:("((\\([\'\"\\]))|([^\"\\]+))*"))/,/^(?:('((\\([\'\"\\]))|([^\'\\]))*'))/,/^(?:.)/,/^(?:$)/],conditions:{comment:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}};function dt(){this.yy={}}return nt.lexer=mt,dt.prototype=nt,nt.Parser=dt,new dt}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(n){n[1]||(console.log("Usage: "+n[0]+" FILE"),t.exit(1));var r=i(49).readFileSync(i(50).normalize(n[1]),"utf8");return e.parser.parse(r)},i.c[i.s]===n&&e.main(t.argv.slice(1))}).call(this,i(37),i(48)(t))},function(t,e,i){"use strict";(function(t,n){var r=function(){var t=function(t,e,i,n){for(i=i||{},n=t.length;n--;i[t[n]]=e);return i},e=[5,7],n=[2,8],r=[1,4],s=[1,16],o=[1,7],a=[1,9],c=[1,8],l=[1,15],h=[1,14],u=[1,12],f=[1,13],g=[5,7,12,16,20,42,43,44,45,46,47,48,49,50,51,52,53,55],m=[2,41],d=[1,25],p=[5,7,16,20,42,43,44,45,46,47,48,49,50,51,52,53,55],b=[1,31],E=[1,34],T=[1,35],I=[1,36],y=[1,37],v=[1,38],A=[1,39],_=[1,40],O=[1,41],N=[1,42],k=[1,43],S=[1,44],R=[1,45],w=[1,46],D=[1,60],P=[1,58],U=[1,59],L=[1,62],C=[1,54],x=[1,55],$=[1,56],X=[1,57],j=[1,80],F=[1,81],M=[1,82],G=[1,83],Q=[1,84],B=[1,85],V=[1,86],H=[1,87],z=[1,88],q=[1,89],Y=[1,90],W=[1,91],Z=[1,92],J=[16,20,42,43,44,45,46,47,48,49,50,51,52,53,55],K=[1,99],tt=[1,102],et=[1,100],it=[1,101],nt=[16,42,43,45,46,47,48,49,50,51,52,55],rt=[16,45,46,47,48,49,50,51,52,55],st={trace:function(){},yy:{},symbols_:{error:2,START:3,LISTACONSULTAS:4,EOF:5,CONSULTA:6,andSelect:7,identifier:8,LISTANODOS:9,MASTIPOS:10,NODO:11,diag:12,TIPONODO:13,corA:14,EXPRESION:15,corC:16,AXES:17,attr:18,PREDICATE:19,asterisco:20,dot:21,FUNCIONES:22,ancestor:23,dospuntos:24,NODETEST:25,ancestorSelf:26,attribute:27,child:28,descendant:29,descendantSelf:30,following:31,followingSib:32,namespace:33,parent:34,preced:35,precedSib:36,self:37,textFunc:38,nodeFunc:39,PRIMITIVA:40,OPERACION:41,mas:42,menos:43,div:44,lte:45,lt:46,gte:47,gt:48,igual:49,nequal:50,or:51,and:52,mod:53,parA:54,parC:55,DoubleLiteral:56,IntegerLiteral:57,cadena:58,cadena2:59,lastFunc:60,positionFunc:61,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",7:"andSelect",8:"identifier",12:"diag",14:"corA",16:"corC",18:"attr",20:"asterisco",21:"dot",23:"ancestor",24:"dospuntos",26:"ancestorSelf",27:"attribute",28:"child",29:"descendant",30:"descendantSelf",31:"following",32:"followingSib",33:"namespace",34:"parent",35:"preced",36:"precedSib",37:"self",38:"textFunc",39:"nodeFunc",42:"mas",43:"menos",44:"div",45:"lte",46:"lt",47:"gte",48:"gt",49:"igual",50:"nequal",51:"or",52:"and",53:"mod",54:"parA",55:"parC",56:"DoubleLiteral",57:"IntegerLiteral",58:"cadena",59:"cadena2",60:"lastFunc",61:"positionFunc"},productions_:[0,[3,2],[4,3],[4,1],[6,2],[6,2],[6,1],[9,2],[9,0],[11,2],[11,3],[11,2],[11,3],[13,1],[13,4],[13,1],[13,1],[10,3],[10,3],[10,2],[10,3],[10,2],[10,1],[17,3],[17,3],[17,3],[17,3],[17,3],[17,3],[17,3],[17,3],[17,3],[17,3],[17,3],[17,3],[17,3],[25,2],[25,2],[25,2],[25,2],[19,3],[19,0],[15,1],[15,1],[41,3],[41,3],[41,3],[41,3],[41,3],[41,3],[41,3],[41,3],[41,3],[41,3],[41,3],[41,3],[41,3],[41,3],[40,1],[40,1],[40,1],[40,1],[40,2],[40,2],[40,1],[40,2],[40,1],[22,1],[22,1],[22,1],[22,1]],performAction:function(t,e,i,n,r,s,o){var a=s.length-1;switch(r){case 1:return this.$=s[a-1],this.$;case 2:this.$=[new ct(s[a-2],o[a-2].first_line,o[a-2].first_column)],this.$=this.$.concat(s[a]);break;case 3:this.$=[new ct(s[a],o[a].first_line,o[a].first_column)];break;case 4:this.$=[new lt(s[a-1],gt.IDENTIFIER,o[a-1].first_line,o[a-1].first_column)],s[a].length>0&&(this.$=this.$.concat(s[a]));break;case 5:this.$=[s[a-1]],s[a].length>0&&(this.$=this.$.concat(s[a]));break;case 6:case 69:this.$=s[a];break;case 7:this.$=[s[a-1]],this.$=this.$.concat(s[a]);break;case 8:this.$=[];break;case 9:s[a].fromRoot=!0,this.$=s[a];break;case 10:s[a].fromRoot=!1,this.$=s[a];break;case 11:console.log("Entra a error sintactico de one diag"),dt.default.agregarError("sintactico","Token inesperado '"+t+"'",o[a-1].first_line,o[a-1].first_column),this.$=new lt(s[a],gt.NODOERROR,o[a-1].first_line,o[a-1].first_column);break;case 12:console.log("Entra a error sintactico de two diags"),dt.default.agregarError("sintactico","Token inesperado '"+t+"'",o[a-2].first_line,o[a-2].first_column),this.$=new lt(s[a],gt.NODOERROR,o[a-2].first_line,o[a-2].first_column);break;case 13:this.$=new lt(s[a],gt.IDENTIFIER,o[a].first_line,o[a].first_column);break;case 14:this.$=new lt(s[a-3],gt.IDENTIFIER,o[a-3].first_line,o[a-3].first_column,new ht(s[a-1],o[a-1].first_line,o[a-1].first_column));break;case 15:case 16:case 42:case 67:case 68:case 70:this.$=s[a];break;case 17:case 18:this.$=new lt(s[a-1],gt.ATRIBUTO,o[a-2].first_line,o[a-2].first_column);break;case 19:this.$=new lt(s[a-1],gt.DOT,o[a-1].first_line,o[a-1].first_column);break;case 20:this.$=new lt(s[a-2]+s[a-1],gt.DOTDOT,o[a-2].first_line,o[a-2].first_column);break;case 21:this.$=new lt(s[a-1],gt.ASTERISCO,o[a-1].first_line,o[a-1].first_column);break;case 22:this.$=new lt(s[a],gt.FUNCION,o[a].first_line,o[a].first_column);break;case 23:this.$=new lt(s[a-2],gt.AXIS,o[a-2].first_line,o[a-2].first_column,void 0,mt.ANCESTOR,s[a]);break;case 24:this.$=new lt(s[a-2],gt.AXIS,o[a-2].first_line,o[a-2].first_column,void 0,mt.ANCESTORORSELF,s[a]);break;case 25:this.$=new lt(s[a-2],gt.AXIS,o[a-2].first_line,o[a-2].first_column,void 0,mt.ATTRIBUTE,s[a]);break;case 26:this.$=new lt(s[a-2],gt.AXIS,o[a-2].first_line,o[a-2].first_column,void 0,mt.CHILD,s[a]);break;case 27:this.$=new lt(s[a-2],gt.AXIS,o[a-2].first_line,o[a-2].first_column,void 0,mt.DESCENDANT,s[a]);break;case 28:this.$=new lt(s[a-2],gt.AXIS,o[a-2].first_line,o[a-2].first_column,void 0,mt.DESCENDANTORSELF,s[a]);break;case 29:this.$=new lt(s[a-2],gt.AXIS,o[a-2].first_line,o[a-2].first_column,void 0,mt.FOLLOWING,s[a]);break;case 30:this.$=new lt(s[a-2],gt.AXIS,o[a-2].first_line,o[a-2].first_column,void 0,mt.FOLLOWINGSIBLING,s[a]);break;case 31:this.$=new lt(s[a-2],gt.AXIS,o[a-2].first_line,o[a-2].first_column,void 0,mt.NAMESPACE,s[a]);break;case 32:this.$=new lt(s[a-2],gt.AXIS,o[a-2].first_line,o[a-2].first_column,void 0,mt.PARENT,s[a]);break;case 33:this.$=new lt(s[a-2],gt.AXIS,o[a-2].first_line,o[a-2].first_column,void 0,mt.PRECEDING,s[a]);break;case 34:this.$=new lt(s[a-2],gt.AXIS,o[a-2].first_line,o[a-2].first_column,void 0,mt.PRECEDINGSIBLING,s[a]);break;case 35:this.$=new lt(s[a-2],gt.AXIS,o[a-2].first_line,o[a-2].first_column,void 0,mt.SELF,s[a]);break;case 36:s[a]instanceof ht?this.$=new lt(s[a-1],gt.IDENTIFIER,o[a-1].first_line,o[a-1].first_column):this.$=new lt(s[a-1],gt.IDENTIFIER,o[a-1].first_line,o[a-1].first_column,s[a]);break;case 37:case 38:s[a]instanceof ht?this.$=new lt(s[a-1],gt.FUNCION,o[a-1].first_line,o[a-1].first_column):this.$=new lt(s[a-1],gt.FUNCION,o[a-1].first_line,o[a-1].first_column,s[a]);break;case 39:s[a]instanceof ht?this.$=new lt(s[a-1],gt.ASTERISCO,o[a-1].first_line,o[a-1].first_column):this.$=new lt(s[a-1],gt.ASTERISCO,o[a-1].first_line,o[a-1].first_column,s[a]);break;case 40:this.$=s[a-1];break;case 41:this.$=[];break;case 43:this.$=s[a];break;case 44:this.$=new at(ft.MULTIPLICACION,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column);break;case 45:this.$=new at(ft.SUMA,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column);break;case 46:this.$=new at(ft.RESTA,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column);break;case 47:this.$=new at(ft.DIVISION,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column);break;case 48:this.$=new at(ft.MENORIGUALQUE,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column);break;case 49:this.$=new at(ft.MENORQUE,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column);break;case 50:this.$=new at(ft.MAYORIGUALQUE,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column);break;case 51:this.$=new at(ft.MAYORQUE,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column);break;case 52:this.$=new at(ft.IGUAL,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column);break;case 53:this.$=new at(ft.DIFERENTEQUE,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column);break;case 54:this.$=new at(ft.OR,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column);break;case 55:this.$=new at(ft.AND,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column);break;case 56:this.$=new at(ft.MOD,s[a-2],s[a],o[a-2].first_line,o[a-2].first_column);break;case 57:this.$=new at(ft.PAR,s[a-1],null,o[a-2].first_line,o[a-2].first_column);break;case 58:this.$=new ot(s[a],ut.DOUBLE,o[a].first_line,o[a].first_column);break;case 59:this.$=new ot(s[a],ut.INTEGER,o[a].first_line,o[a].first_column);break;case 60:case 61:this.$=new ot(s[a],ut.CADENA,o[a].first_line,o[a].first_column);break;case 62:case 63:this.$=new ot(s[a],ut.ATRIBUTO,o[a-1].first_line,o[a-1].first_column);break;case 64:this.$=new ot(s[a],ut.DOT,o[a].first_line,o[a].first_column);break;case 65:s[a].length>0?(this.$=[new lt(s[a-1],gt.IDENTIFIER,o[a-1].first_line,o[a-1].first_column)],this.$=this.$.concat(s[a]),this.$=new ot(this.$,ut.CONSULTA,o[a-1].first_line,o[a-1].first_column)):this.$=new ot(s[a-1],ut.IDENTIFIER,o[a-1].first_line,o[a-1].first_column);break;case 66:this.$=new ot(s[a],ut.FUNCION,o[a].first_line,o[a].first_column)}},table:[t(e,n,{3:1,4:2,6:3,10:5,9:6,22:10,11:11,8:r,12:s,18:o,20:a,21:c,38:l,39:h,60:u,61:f}),{1:[3]},{5:[1,17]},{5:[2,3],7:[1,18]},t(e,n,{11:11,9:19,12:s}),t(e,n,{11:11,9:20,12:s}),t(e,[2,6]),{8:[1,21],20:[1,22]},t(g,m,{19:23,14:d,21:[1,24]}),t(g,m,{19:26,14:d}),t(g,[2,22]),t(p,n,{11:11,9:27,12:s}),t(g,[2,67]),t(g,[2,68]),t(g,[2,69]),t(g,[2,70]),{2:[1,30],8:b,10:32,12:[1,29],13:28,17:33,18:o,20:a,21:c,22:10,23:E,26:T,27:I,28:y,29:v,30:A,31:_,32:O,33:N,34:k,35:S,36:R,37:w,38:l,39:h,60:u,61:f},{1:[2,1]},t(e,n,{6:3,10:5,9:6,22:10,11:11,4:47,8:r,12:s,18:o,20:a,21:c,38:l,39:h,60:u,61:f}),t(e,[2,4]),t(e,[2,5]),t(g,m,{19:48,14:d}),t(g,m,{19:49,14:d}),t(g,[2,19]),t(g,m,{19:50,14:d}),{8:D,15:51,18:P,21:U,22:61,38:l,39:h,40:52,41:53,54:L,56:C,57:x,58:$,59:X,60:u,61:f},t(g,[2,21]),t(p,[2,7]),t(g,[2,9]),{2:[1,64],8:b,10:32,13:63,17:33,18:o,20:a,21:c,22:10,23:E,26:T,27:I,28:y,29:v,30:A,31:_,32:O,33:N,34:k,35:S,36:R,37:w,38:l,39:h,60:u,61:f},t(g,[2,11]),t(g,[2,13],{14:[1,65]}),t(g,[2,15]),t(g,[2,16]),{24:[1,66]},{24:[1,67]},{24:[1,68]},{24:[1,69]},{24:[1,70]},{24:[1,71]},{24:[1,72]},{24:[1,73]},{24:[1,74]},{24:[1,75]},{24:[1,76]},{24:[1,77]},{24:[1,78]},{5:[2,2]},t(g,[2,17]),t(g,[2,18]),t(g,[2,20]),{16:[1,79],20:j,42:F,43:M,44:G,45:Q,46:B,47:V,48:H,49:z,50:q,51:Y,52:W,53:Z},t(J,[2,42]),t(J,[2,43]),t(J,[2,58]),t(J,[2,59]),t(J,[2,60]),t(J,[2,61]),{8:[1,93],20:[1,94]},t(J,[2,64]),t(J,n,{11:11,9:95,12:s}),t(J,[2,66]),{8:D,15:96,18:P,21:U,22:61,38:l,39:h,40:52,41:53,54:L,56:C,57:x,58:$,59:X,60:u,61:f},t(g,[2,10]),t(g,[2,12]),{8:D,15:97,18:P,21:U,22:61,38:l,39:h,40:52,41:53,54:L,56:C,57:x,58:$,59:X,60:u,61:f},{8:K,20:tt,25:98,38:et,39:it},{8:K,20:tt,25:103,38:et,39:it},{8:K,20:tt,25:104,38:et,39:it},{8:K,20:tt,25:105,38:et,39:it},{8:K,20:tt,25:106,38:et,39:it},{8:K,20:tt,25:107,38:et,39:it},{8:K,20:tt,25:108,38:et,39:it},{8:K,20:tt,25:109,38:et,39:it},{8:K,20:tt,25:110,38:et,39:it},{8:K,20:tt,25:111,38:et,39:it},{8:K,20:tt,25:112,38:et,39:it},{8:K,20:tt,25:113,38:et,39:it},{8:K,20:tt,25:114,38:et,39:it},t(g,[2,40]),{8:D,15:115,18:P,21:U,22:61,38:l,39:h,40:52,41:53,54:L,56:C,57:x,58:$,59:X,60:u,61:f},{8:D,15:116,18:P,21:U,22:61,38:l,39:h,40:52,41:53,54:L,56:C,57:x,58:$,59:X,60:u,61:f},{8:D,15:117,18:P,21:U,22:61,38:l,39:h,40:52,41:53,54:L,56:C,57:x,58:$,59:X,60:u,61:f},{8:D,15:118,18:P,21:U,22:61,38:l,39:h,40:52,41:53,54:L,56:C,57:x,58:$,59:X,60:u,61:f},{8:D,15:119,18:P,21:U,22:61,38:l,39:h,40:52,41:53,54:L,56:C,57:x,58:$,59:X,60:u,61:f},{8:D,15:120,18:P,21:U,22:61,38:l,39:h,40:52,41:53,54:L,56:C,57:x,58:$,59:X,60:u,61:f},{8:D,15:121,18:P,21:U,22:61,38:l,39:h,40:52,41:53,54:L,56:C,57:x,58:$,59:X,60:u,61:f},{8:D,15:122,18:P,21:U,22:61,38:l,39:h,40:52,41:53,54:L,56:C,57:x,58:$,59:X,60:u,61:f},{8:D,15:123,18:P,21:U,22:61,38:l,39:h,40:52,41:53,54:L,56:C,57:x,58:$,59:X,60:u,61:f},{8:D,15:124,18:P,21:U,22:61,38:l,39:h,40:52,41:53,54:L,56:C,57:x,58:$,59:X,60:u,61:f},{8:D,15:125,18:P,21:U,22:61,38:l,39:h,40:52,41:53,54:L,56:C,57:x,58:$,59:X,60:u,61:f},{8:D,15:126,18:P,21:U,22:61,38:l,39:h,40:52,41:53,54:L,56:C,57:x,58:$,59:X,60:u,61:f},{8:D,15:127,18:P,21:U,22:61,38:l,39:h,40:52,41:53,54:L,56:C,57:x,58:$,59:X,60:u,61:f},t(J,[2,62]),t(J,[2,63]),t(J,[2,65]),{20:j,42:F,43:M,44:G,45:Q,46:B,47:V,48:H,49:z,50:q,51:Y,52:W,53:Z,55:[1,128]},{16:[1,129],20:j,42:F,43:M,44:G,45:Q,46:B,47:V,48:H,49:z,50:q,51:Y,52:W,53:Z},t(g,[2,23]),t(g,m,{19:130,14:d}),t(g,m,{19:131,14:d}),t(g,m,{19:132,14:d}),t(g,m,{19:133,14:d}),t(g,[2,24]),t(g,[2,25]),t(g,[2,26]),t(g,[2,27]),t(g,[2,28]),t(g,[2,29]),t(g,[2,30]),t(g,[2,31]),t(g,[2,32]),t(g,[2,33]),t(g,[2,34]),t(g,[2,35]),t(J,[2,44]),t(nt,[2,45],{20:j,44:G,53:Z}),t(nt,[2,46],{20:j,44:G,53:Z}),t(J,[2,47]),t(rt,[2,48],{20:j,42:F,43:M,44:G,53:Z}),t(rt,[2,49],{20:j,42:F,43:M,44:G,53:Z}),t(rt,[2,50],{20:j,42:F,43:M,44:G,53:Z}),t(rt,[2,51],{20:j,42:F,43:M,44:G,53:Z}),t(rt,[2,52],{20:j,42:F,43:M,44:G,53:Z}),t(rt,[2,53],{20:j,42:F,43:M,44:G,53:Z}),t([16,51,55],[2,54],{20:j,42:F,43:M,44:G,45:Q,46:B,47:V,48:H,49:z,50:q,52:W,53:Z}),t([16,51,52,55],[2,55],{20:j,42:F,43:M,44:G,45:Q,46:B,47:V,48:H,49:z,50:q,53:Z}),t(J,[2,56]),t(J,[2,57]),t(g,[2,14]),t(g,[2,36]),t(g,[2,37]),t(g,[2,38]),t(g,[2,39])],defaultActions:{17:[2,1],47:[2,2]},parseError:function(t,e){if(!e.recoverable){var i=new Error(t);throw i.hash=e,i}this.trace(t)},parse:function(t){var e=this,i=[0],n=[null],r=[],s=this.table,o="",a=0,c=0,l=0,h=2,u=1,f=r.slice.call(arguments,1),g=Object.create(this.lexer),m={yy:{}};for(var d in this.yy)Object.prototype.hasOwnProperty.call(this.yy,d)&&(m.yy[d]=this.yy[d]);g.setInput(t,m.yy),m.yy.lexer=g,m.yy.parser=this,"undefined"==typeof g.yylloc&&(g.yylloc={});var p=g.yylloc;r.push(p);var b=g.options&&g.options.ranges;function E(t){i.length=i.length-2*t,n.length=n.length-t,r.length=r.length-t}"function"===typeof m.yy.parseError?this.parseError=m.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var T,I,y,v,A,_,O,N,k,S=function(){var t;return"number"!==typeof(t=g.lex()||u)&&(t=e.symbols_[t]||t),t},R={};;){if(y=i[i.length-1],this.defaultActions[y]?v=this.defaultActions[y]:(null!==T&&"undefined"!=typeof T||(T=S()),v=s[y]&&s[y][T]),"undefined"===typeof v||!v.length||!v[0]){var w,D=function(t){for(var e=i.length-1,n=0;;){if(h.toString()in s[t])return n;if(0===t||e<2)return!1;t=i[e-=2],++n}},P="";if(l)I!==u&&(w=D(y));else{for(_ in w=D(y),k=[],s[y])this.terminals_[_]&&_>h&&k.push("'"+this.terminals_[_]+"'");P=g.showPosition?"Parse error on line "+(a+1)+":\n"+g.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[T]||T)+"'":"Parse error on line "+(a+1)+": Unexpected "+(T==u?"end of input":"'"+(this.terminals_[T]||T)+"'"),this.parseError(P,{text:g.match,token:this.terminals_[T]||T,line:g.yylineno,loc:p,expected:k,recoverable:!1!==w})}if(3==l){if(T===u||I===u)throw new Error(P||"Parsing halted while starting to recover from another error.");c=g.yyleng,o=g.yytext,a=g.yylineno,p=g.yylloc,T=S()}if(!1===w)throw new Error(P||"Parsing halted. No suitable error recovery rule available.");E(w),I=T==h?null:T,T=h,y=i[i.length-1],v=s[y]&&s[y][h],l=3}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+y+", token: "+T);switch(v[0]){case 1:i.push(T),n.push(g.yytext),r.push(g.yylloc),i.push(v[1]),T=null,I?(T=I,I=null):(c=g.yyleng,o=g.yytext,a=g.yylineno,p=g.yylloc,l>0&&l--);break;case 2:if(O=this.productions_[v[1]][1],R.$=n[n.length-O],R._$={first_line:r[r.length-(O||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(O||1)].first_column,last_column:r[r.length-1].last_column},b&&(R._$.range=[r[r.length-(O||1)].range[0],r[r.length-1].range[1]]),"undefined"!==typeof(A=this.performAction.apply(R,[o,c,a,m.yy,v[1],n,r].concat(f))))return A;O&&(i=i.slice(0,-1*O*2),n=n.slice(0,-1*O),r=r.slice(0,-1*O)),i.push(this.productions_[v[1]][0]),n.push(R.$),r.push(R._$),N=s[i[i.length-2]][i[i.length-1]],i.push(N);break;case 3:return!0}}return!0}},ot=i(0).Primitiva,at=i(38).Operacion,ct=i(20).Consulta,lt=i(10).Nodo,ht=i(79).Predicate,ut=i(0).TipoPrim,ft=i(38).TipoOperacion,gt=i(10).TipoNodo,mt=i(10).TipoAxis,dt=i(8),pt={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===n.length?this.yylloc.first_column:0)+n[n.length-i.length].length-i[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var i,n,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],i=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var s in r)this[s]=r[s];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,i,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),s=0;s<r.length;s++)if((i=this._input.match(this.rules[r[s]]))&&(!e||i[0].length>e[0].length)){if(e=i,n=s,this.options.backtrack_lexer){if(!1!==(t=this.test_match(i,r[s])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,i,n){switch(i){case 0:break;case 1:return 49;case 2:return 12;case 3:return"dot";case 4:return"attr";case 5:return"corA";case 6:return"corC";case 7:return"andSelect";case 8:return"dospuntos";case 9:return"parA";case 10:return"parC";case 11:return 20;case 12:return"mas";case 13:return"menos";case 14:return"div";case 15:return 45;case 16:return"gte";case 17:return 46;case 18:return 48;case 19:return"nequal";case 20:return"or";case 21:return"and";case 22:return"mod";case 23:return"ancestorSelf";case 24:return"ancestor";case 25:return"attribute";case 26:return"child";case 27:return"descendantSelf";case 28:return"descendant";case 29:return"followingSib";case 30:return"following";case 31:return"namespace";case 32:return"parent";case 33:return"precedSib";case 34:return"preced";case 35:return"self";case 36:return"lastFunc";case 37:return"positionFunc";case 38:return"nodeFunc";case 39:return"textFunc";case 40:return 56;case 41:return 57;case 42:return 8;case 43:return 58;case 44:return 59;case 45:console.error("Este es un error l\xe9xico: "+e.yytext+", en la linea: "+e.yylloc.first_line+", en la columna: "+e.yylloc.first_column);break;case 46:return 5}},rules:[/^(?:\s+)/i,/^(?:=)/i,/^(?:\/)/i,/^(?:\.)/i,/^(?:@)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:\|)/i,/^(?:::)/i,/^(?:\()/i,/^(?:\))/i,/^(?:\*)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:div\b)/i,/^(?:<=)/i,/^(?:>=)/i,/^(?:<)/i,/^(?:>)/i,/^(?:!=)/i,/^(?:or\b)/i,/^(?:and\b)/i,/^(?:mod\b)/i,/^(?:ancestor-or-self\b)/i,/^(?:ancestor\b)/i,/^(?:attribute\b)/i,/^(?:child\b)/i,/^(?:descendant-or-self\b)/i,/^(?:descendant\b)/i,/^(?:following-sibling\b)/i,/^(?:following\b)/i,/^(?:namespace\b)/i,/^(?:parent\b)/i,/^(?:preceding-sibling\b)/i,/^(?:preceding\b)/i,/^(?:self\b)/i,/^(?:last\(\))/i,/^(?:position\(\))/i,/^(?:node\(\))/i,/^(?:text\(\))/i,/^(?:(([0-9]+\.[0-9]*)|(\.[0-9]+)))/i,/^(?:[0-9]+)/i,/^(?:[a-zA-Z_][a-zA-Z0-9_\xf1\xd1.-]*)/i,/^(?:("((\\([\'\"\\]))|([^\"\\]+))*"))/i,/^(?:('((\\([\'\"\\]))|([^\'\\]))*'))/i,/^(?:.)/i,/^(?:$)/i],conditions:{comment:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}};function bt(){this.yy={}}return st.lexer=pt,bt.prototype=st,st.Parser=bt,new bt}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(n){n[1]||(console.log("Usage: "+n[0]+" FILE"),t.exit(1));var r=i(49).readFileSync(i(50).normalize(n[1]),"utf8");return e.parser.parse(r)},i.c[i.s]===n&&e.main(t.argv.slice(1))}).call(this,i(37),i(48)(t))},function(t,e,i){"use strict";(function(t,n){var r=function(){var t=function(t,e,i,n){for(i=i||{},n=t.length;n--;i[t[n]]=e);return i},e=[1,4],n=[1,6],r=[1,7],s=[1,8],o=[1,9],a=[1,10],c=[5,7,24,26,27,28,29],l=[9,18,20],h=[16,25],u=[1,36],f=[1,37],g=[1,38],m=[1,39],d=[1,40],p=[9,23,35,36,38,39],b=[1,58],E=[1,60],T=[1,59],I=[1,66],y=[1,74],v=[1,75],A=[1,69],_=[1,70],O=[1,71],N=[1,72],k=[1,73],S=[1,76],R=[1,77],w=[1,78],D=[1,79],P=[8,11,16,42,43,44,45,46,47,48,49,50],U=[2,43],L=[8,11,16,20,42,43,44,45,46,47,48,49,50],C=[8,11,15,16,20,42,43,44,45,46,47,48,49,50],x=[8,11,16,20,42,43,47,48,49,50],$=[8,11,16,20,47,48,49,50],X={trace:function(){},yy:{},symbols_:{error:2,START:3,DECLARACIONES:4,EOF:5,DECLARACION:6,include:7,lt:8,identifier:9,ext_h:10,gt:11,DATATYPE:12,corA:13,IntegerLiteral:14,corC:15,puntocoma:16,LISTAIDS:17,main:18,parA:19,parC:20,llaveA:21,LISTAINSTRUCCIONES:22,llaveC:23,void:24,coma:25,int:26,double:27,float:28,char:29,INSTRUCCION:30,asig:31,EXPRESION:32,PRIMITIVA:33,dospuntos:34,goto:35,printf:36,cadena:37,if:38,return:39,TIPORETURN:40,OPERACION:41,mas:42,menos:43,por:44,div:45,mod:46,lte:47,gte:48,eq:49,neq:50,DoubleLiteral:51,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",7:"include",8:"lt",9:"identifier",10:"ext_h",11:"gt",13:"corA",14:"IntegerLiteral",15:"corC",16:"puntocoma",18:"main",19:"parA",20:"parC",21:"llaveA",23:"llaveC",24:"void",25:"coma",26:"int",27:"double",28:"float",29:"char",31:"asig",34:"dospuntos",35:"goto",36:"printf",37:"cadena",38:"if",39:"return",42:"mas",43:"menos",44:"por",45:"div",46:"mod",47:"lte",48:"gte",49:"eq",50:"neq",51:"DoubleLiteral"},productions_:[0,[3,2],[4,2],[4,1],[6,5],[6,6],[6,3],[6,7],[6,7],[17,3],[17,1],[12,1],[12,1],[12,1],[12,1],[22,2],[22,1],[30,4],[30,10],[30,10],[30,16],[30,2],[30,3],[30,4],[30,10],[30,7],[30,3],[40,1],[40,0],[32,1],[32,1],[41,3],[41,3],[41,3],[41,3],[41,3],[41,3],[41,3],[41,3],[41,3],[41,3],[41,3],[41,2],[33,1],[33,1],[33,1]],performAction:function(t,e,i,n,r,s,o){var a=s.length-1;switch(r){case 1:return this.$=s[a-1],this.$;case 2:case 15:s[a-1].push(s[a]),this.$=s[a-1];break;case 3:case 10:case 16:this.$=[s[a]];break;case 4:nt=s[a-4]+s[a-3]+s[a-2]+s[a-1]+s[a],this.$=new j(Q.INCLUDE,nt,o[a-4].first_line,o[a-4].first_column);break;case 5:nt=s[a-5]+" "+s[a-4]+s[a-3]+s[a-2]+s[a-1]+s[a],this.$=new G(Q.VARIABLE,nt,o[a-5].first_line,o[a-5].first_column);break;case 6:var c=s[a-1][0];nt=s[a-2]+" "+c;for(var l=1;l<s[a-1].length;l++)nt+=", "+s[a-1][l];nt+=";",this.$=new G(Q.VARIABLE,nt,o[a-2].first_line,o[a-2].first_column);break;case 7:nt=s[a-6]+s[a-5]+s[a-4]+s[a-3]+s[a-2],this.$=new F(Q.MAIN,s[a-1],nt,o[a-6].first_line,o[a-6].first_column);break;case 8:this.$=new M(Q.METODO,s[a-1],s[a-5],o[a-6].first_line,o[a-6].first_column);break;case 9:s[a-2].push(s[a]),this.$=s[a-2];break;case 11:case 12:case 13:case 14:case 27:case 29:case 30:this.$=s[a];break;case 17:nt=s[a-3]+" "+s[a-2]+" "+s[a-1].codigo3D+s[a],this.$=new W(Y.ASIGNORMAL,s[a-3],s[a-1],nt,o[a-3].first_line,o[a-3].first_column);break;case 18:nt=s[a-9]+" "+s[a-8]+" "+s[a-7]+s[a-6]+s[a-5]+s[a-4]+s[a-3]+s[a-2].codigo3D+s[a-1]+s[a],this.$=new W(Y.ASIGARREGLO,s[a-9],s[a-2],nt,o[a-9].first_line,o[a-9].first_column);break;case 19:nt=s[a-9]+s[a-8]+s[a-7]+s[a-6]+s[a-5]+s[a-4].codigo3D+s[a-3]+" "+s[a-2]+" "+s[a-1].codigo3D+s[a],this.$=new W(Y.ARREGLOASIG,s[a-9],s[a-1],nt,o[a-9].first_line,o[a-9].first_column);break;case 20:nt=s[a-15]+s[a-14]+s[a-13]+s[a-12]+s[a-11]+s[a-10].codigo3D+s[a-9]+" "+s[a-8]+" "+s[a-7]+s[a-6]+s[a-5]+s[a-4]+s[a-3]+s[a-2].codigo3D+s[a-1]+s[a],this.$=new W(Y.ARREGLOASIGARREGLO,s[a-15],s[a-2],nt,o[a-15].first_line,o[a-15].first_column);break;case 21:this.$=new J(Y.ETIQUETA,s[a-1],s[a-1]+s[a],o[a-1].first_line,o[a-1].first_column);break;case 22:this.$=new K(Y.GOTO,s[a-1],s[a-2]+" "+s[a-1]+s[a],o[a-2].first_line,o[a-2].first_column);break;case 23:nt=s[a-3]+s[a-2]+s[a-1]+s[a],this.$=new Z(Y.LLAMADA,s[a-3],nt,o[a-3].first_line,o[a-3].first_column);break;case 24:nt=s[a-9]+s[a-8]+s[a-7]+s[a-6]+" "+s[a-5]+s[a-4]+s[a-3]+s[a-2].codigo3D+s[a-1]+s[a],this.$=new et(Y.PRINTF,nt,o[a-9].first_line,o[a-9].first_column);break;case 25:nt=s[a-6]+s[a-5]+s[a-4].codigo3D+s[a-3]+" "+s[a-2]+" "+s[a-1]+s[a],this.$=new tt(Y.IF,s[a-4],new K(Y.GOTO,s[a-1],s[a-2]+" "+s[a-1]+s[a]),nt,o[a-6].first_line,o[a-6].first_column);break;case 26:this.$=new it(Y.RETURN,s[a-2]+" "+s[a-1]+";",o[a-2].first_line,o[a-2].first_column);break;case 28:this.$="";break;case 31:this.$=new B(q.OPERACION,V.SUMA,s[a-2],s[a],s[a-2].codigo3D+" "+s[a-1]+" "+s[a].codigo3D,o[a-2].first_line,o[a-2].first_column);break;case 32:this.$=new B(q.OPERACION,V.RESTA,s[a-2],s[a],s[a-2].codigo3D+" "+s[a-1]+" "+s[a].codigo3D,o[a-2].first_line,o[a-2].first_column);break;case 33:this.$=new B(q.OPERACION,V.MULTIPLICACION,s[a-2],s[a],s[a-2].codigo3D+" "+s[a-1]+" "+s[a].codigo3D,o[a-2].first_line,o[a-2].first_column);break;case 34:this.$=new B(q.OPERACION,V.DIVISION,s[a-2],s[a],s[a-2].codigo3D+" "+s[a-1]+" "+s[a].codigo3D,o[a-2].first_line,o[a-2].first_column);break;case 35:this.$=new B(q.OPERACION,V.MOD,s[a-2],s[a],s[a-2].codigo3D+" "+s[a-1]+" "+s[a].codigo3D,o[a-2].first_line,o[a-2].first_column);break;case 36:this.$=new B(q.OPERACION,V.MENORQUE,s[a-2],s[a],s[a-2].codigo3D+" "+s[a-1]+" "+s[a].codigo3D,o[a-2].first_line,o[a-2].first_column);break;case 37:this.$=new B(q.OPERACION,V.MAYORQUE,s[a-2],s[a],s[a-2].codigo3D+" "+s[a-1]+" "+s[a].codigo3D,o[a-2].first_line,o[a-2].first_column);break;case 38:this.$=new B(q.OPERACION,V.MENORIGUALQUE,s[a-2],s[a],s[a-2].codigo3D+" "+s[a-1]+" "+s[a].codigo3D,o[a-2].first_line,o[a-2].first_column);break;case 39:this.$=new B(q.OPERACION,V.MAYORIGUALQUE,s[a-2],s[a],s[a-2].codigo3D+" "+s[a-1]+" "+s[a].codigo3D,o[a-2].first_line,o[a-2].first_column);break;case 40:this.$=new B(q.OPERACION,V.IGUALIGUAL,s[a-2],s[a],s[a-2].codigo3D+" "+s[a-1]+" "+s[a].codigo3D,o[a-2].first_line,o[a-2].first_column);break;case 41:this.$=new B(q.OPERACION,V.DIFERENTEQUE,s[a-2],s[a],s[a-2].codigo3D+" "+s[a-1]+" "+s[a].codigo3D,o[a-2].first_line,o[a-2].first_column);break;case 42:this.$=new B(q.OPERACION,V.MENOSUNARIO,s[a],null,"-"+s[a].codigo3D,o[a-1].first_line,o[a-1].first_column);break;case 43:this.$=new H(q.PRIMITIVA,z.IDENTIFIER,s[a],s[a],o[a].first_line,o[a].first_column);break;case 44:this.$=new H(q.PRIMITIVA,z.INTEGER,+s[a],s[a],o[a].first_line,o[a].first_column);break;case 45:this.$=new H(q.PRIMITIVA,z.DOUBLE,+s[a],s[a],o[a].first_line,o[a].first_column)}},table:[{3:1,4:2,6:3,7:e,12:5,24:n,26:r,27:s,28:o,29:a},{1:[3]},{5:[1,11],6:12,7:e,12:5,24:n,26:r,27:s,28:o,29:a},t(c,[2,3]),{8:[1,13]},{9:[1,14],17:15,18:[1,16]},{9:[1,17]},t(l,[2,11]),t(l,[2,12]),t(l,[2,13]),t(l,[2,14]),{1:[2,1]},t(c,[2,2]),{9:[1,18]},t(h,[2,10],{13:[1,19]}),{16:[1,20],25:[1,21]},{19:[1,22]},{19:[1,23]},{10:[1,24]},{14:[1,25]},t(c,[2,6]),{9:[1,26]},{20:[1,27]},{20:[1,28]},{11:[1,29]},{15:[1,30]},t(h,[2,9]),{21:[1,31]},{21:[1,32]},t(c,[2,4]),{16:[1,33]},{9:u,22:34,30:35,35:f,36:g,38:m,39:d},{9:u,22:41,30:35,35:f,36:g,38:m,39:d},t(c,[2,5]),{9:u,23:[1,42],30:43,35:f,36:g,38:m,39:d},t(p,[2,16]),{13:[1,45],19:[1,47],31:[1,44],34:[1,46]},{9:[1,48]},{19:[1,49]},{19:[1,50]},{14:[1,52],16:[2,28],40:51},{9:u,23:[1,53],30:43,35:f,36:g,38:m,39:d},t(c,[2,7]),t(p,[2,15]),{9:[1,55],14:b,32:54,33:56,41:57,43:E,51:T},{19:[1,61]},t(p,[2,21]),{20:[1,62]},{16:[1,63]},{37:[1,64]},{9:I,14:b,32:65,33:56,41:57,43:E,51:T},{16:[1,67]},{16:[2,27]},t(c,[2,8]),{8:y,11:v,16:[1,68],42:A,43:_,44:O,45:N,46:k,47:S,48:R,49:w,50:D},t(P,U,{13:[1,80]}),t(L,[2,29]),t(L,[2,30]),t(C,[2,44]),t(C,[2,45]),{9:I,14:b,32:81,33:56,41:57,43:E,51:T},{12:82,26:r,27:s,28:o,29:a},{16:[1,83]},t(p,[2,22]),{25:[1,84]},{8:y,11:v,20:[1,85],42:A,43:_,44:O,45:N,46:k,47:S,48:R,49:w,50:D},t(C,U),t(p,[2,26]),t(p,[2,17]),{9:I,14:b,32:86,33:56,41:57,43:E,51:T},{9:I,14:b,32:87,33:56,41:57,43:E,51:T},{9:I,14:b,32:88,33:56,41:57,43:E,51:T},{9:I,14:b,32:89,33:56,41:57,43:E,51:T},{9:I,14:b,32:90,33:56,41:57,43:E,51:T},{9:I,14:b,32:91,33:56,41:57,43:E,51:T},{9:I,14:b,32:92,33:56,41:57,43:E,51:T},{9:I,14:b,32:93,33:56,41:57,43:E,51:T},{9:I,14:b,32:94,33:56,41:57,43:E,51:T},{9:I,14:b,32:95,33:56,41:57,43:E,51:T},{9:I,14:b,32:96,33:56,41:57,43:E,51:T},{19:[1,97]},t(L,[2,42]),{20:[1,98]},t(p,[2,23]),{19:[1,99]},{35:[1,100]},t(x,[2,31],{44:O,45:N,46:k}),t(x,[2,32],{44:O,45:N,46:k}),t(L,[2,33]),t(L,[2,34]),t(L,[2,35]),t($,[2,36],{42:A,43:_,44:O,45:N,46:k}),t($,[2,37],{42:A,43:_,44:O,45:N,46:k}),t($,[2,38],{42:A,43:_,44:O,45:N,46:k}),t($,[2,39],{42:A,43:_,44:O,45:N,46:k}),t($,[2,40],{42:A,43:_,44:O,45:N,46:k}),t($,[2,41],{42:A,43:_,44:O,45:N,46:k}),{12:101,26:r,27:s,28:o,29:a},{9:I,14:b,33:102,51:T},{12:103,26:r,27:s,28:o,29:a},{9:[1,104]},{20:[1,105]},{15:[1,106]},{20:[1,107]},{16:[1,108]},{9:I,14:b,33:109,51:T},{31:[1,110]},{9:I,14:b,33:111,51:T},t(p,[2,25]),{15:[1,112]},{9:[1,114],14:b,32:113,33:56,41:57,43:E,51:T},{20:[1,115]},{16:[1,116]},{8:y,11:v,16:[1,117],42:A,43:_,44:O,45:N,46:k,47:S,48:R,49:w,50:D},t(P,U,{13:[1,118]}),{16:[1,119]},t(p,[2,18]),t(p,[2,19]),{19:[1,120]},t(p,[2,24]),{12:121,26:r,27:s,28:o,29:a},{20:[1,122]},{9:I,14:b,33:123,51:T},{15:[1,124]},{16:[1,125]},t(p,[2,20])],defaultActions:{11:[2,1],52:[2,27]},parseError:function(t,e){if(!e.recoverable){var i=new Error(t);throw i.hash=e,i}this.trace(t)},parse:function(t){var e=this,i=[0],n=[null],r=[],s=this.table,o="",a=0,c=0,l=0,h=2,u=1,f=r.slice.call(arguments,1),g=Object.create(this.lexer),m={yy:{}};for(var d in this.yy)Object.prototype.hasOwnProperty.call(this.yy,d)&&(m.yy[d]=this.yy[d]);g.setInput(t,m.yy),m.yy.lexer=g,m.yy.parser=this,"undefined"==typeof g.yylloc&&(g.yylloc={});var p=g.yylloc;r.push(p);var b=g.options&&g.options.ranges;"function"===typeof m.yy.parseError?this.parseError=m.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var E,T,I,y,v,A,_,O,N,k=function(){var t;return"number"!==typeof(t=g.lex()||u)&&(t=e.symbols_[t]||t),t},S={};;){if(I=i[i.length-1],this.defaultActions[I]?y=this.defaultActions[I]:(null!==E&&"undefined"!=typeof E||(E=k()),y=s[I]&&s[I][E]),"undefined"===typeof y||!y.length||!y[0]){var R="";for(A in N=[],s[I])this.terminals_[A]&&A>h&&N.push("'"+this.terminals_[A]+"'");R=g.showPosition?"Parse error on line "+(a+1)+":\n"+g.showPosition()+"\nExpecting "+N.join(", ")+", got '"+(this.terminals_[E]||E)+"'":"Parse error on line "+(a+1)+": Unexpected "+(E==u?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(R,{text:g.match,token:this.terminals_[E]||E,line:g.yylineno,loc:p,expected:N})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+E);switch(y[0]){case 1:i.push(E),n.push(g.yytext),r.push(g.yylloc),i.push(y[1]),E=null,T?(E=T,T=null):(c=g.yyleng,o=g.yytext,a=g.yylineno,p=g.yylloc,l>0&&l--);break;case 2:if(_=this.productions_[y[1]][1],S.$=n[n.length-_],S._$={first_line:r[r.length-(_||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(_||1)].first_column,last_column:r[r.length-1].last_column},b&&(S._$.range=[r[r.length-(_||1)].range[0],r[r.length-1].range[1]]),"undefined"!==typeof(v=this.performAction.apply(S,[o,c,a,m.yy,y[1],n,r].concat(f))))return v;_&&(i=i.slice(0,-1*_*2),n=n.slice(0,-1*_),r=r.slice(0,-1*_)),i.push(this.productions_[y[1]][0]),n.push(S.$),r.push(S._$),O=s[i[i.length-2]][i[i.length-1]],i.push(O);break;case 3:return!0}}return!0}},j=i(176).Include,F=i(102).Main,M=i(103).Metodo,G=i(177).Variable,Q=i(178).TipoDeclaracion3D,B=i(19).Operacion3D,V=i(19).TipoOperacion3D,H=i(16).Primitiva3D,z=i(16).TipoPrim3D,q=i(35).TipoExpresion3D,Y=i(26).TipoInstruccion3D,W=i(33).Asignacion3D,Z=i(179).Llamada3D,J=i(55).Etiqueta3D,K=i(91).Goto3D,tt=i(73).If3D,et=i(180).Printf3D,it=i(181).Return3D,nt=(i(8),""),rt={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===n.length?this.yylloc.first_column:0)+n[n.length-i.length].length-i[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var i,n,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],i=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var s in r)this[s]=r[s];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,i,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),s=0;s<r.length;s++)if((i=this._input.match(this.rules[r[s]]))&&(!e||i[0].length>e[0].length)){if(e=i,n=s,this.options.backtrack_lexer){if(!1!==(t=this.test_match(i,r[s])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,i,n){switch(i){case 0:break;case 1:this.begin("comment");break;case 2:this.popState();break;case 3:break;case 4:return"ext_h";case 5:return"corA";case 6:return"corC";case 7:return"llaveA";case 8:return"llaveC";case 9:return"parA";case 10:return"parC";case 11:return"dospuntos";case 12:return"puntocoma";case 13:return"coma";case 14:return 48;case 15:return 47;case 16:return 8;case 17:return 11;case 18:return 49;case 19:return 31;case 20:return"neq";case 21:return 45;case 22:return 46;case 23:return 44;case 24:return"mas";case 25:return"menos";case 26:return"main";case 27:return"return";case 28:return"void";case 29:return"float";case 30:return"printf";case 31:return"char";case 32:return"int";case 33:return"double";case 34:return"if";case 35:return"goto";case 36:return"include";case 37:return 51;case 38:return 14;case 39:return 9;case 40:return 37;case 41:return"cadena2";case 42:break;case 43:return 5;case 44:console.log("Error Lexico: "+e.yytext)}},rules:[/^(?:\/\/.*\s+)/i,/^(?:\/\*)/i,/^(?:\*\/)/i,/^(?:.)/i,/^(?:\.h\b)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:\{)/i,/^(?:\})/i,/^(?:\()/i,/^(?:\))/i,/^(?::)/i,/^(?:;)/i,/^(?:,)/i,/^(?:>=)/i,/^(?:<=)/i,/^(?:<)/i,/^(?:>)/i,/^(?:==)/i,/^(?:=)/i,/^(?:!=)/i,/^(?:\/)/i,/^(?:%)/i,/^(?:\*)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:main\b)/i,/^(?:return\b)/i,/^(?:void\b)/i,/^(?:float\b)/i,/^(?:printf\b)/i,/^(?:char\b)/i,/^(?:int\b)/i,/^(?:double\b)/i,/^(?:if\b)/i,/^(?:goto\b)/i,/^(?:#include\b)/i,/^(?:(([0-9]+\.[0-9]*)|(\.[0-9]+)))/i,/^(?:[0-9]+)/i,/^(?:[a-zA-Z_][a-zA-Z0-9_\xf1\xd1]*)/i,/^(?:("((\\([\'\"\\]))|([^\"\\]+))*"))/i,/^(?:('((\\([\'\"\\]))|([^\'\\]))*'))/i,/^(?:[ \t\r\n\f])/i,/^(?:$)/i,/^(?:.)/i],conditions:{comment:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!0},INITIAL:{rules:[0,1,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!0}}};function st(){this.yy={}}return X.lexer=rt,st.prototype=X,X.Parser=st,new st}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(n){n[1]||(console.log("Usage: "+n[0]+" FILE"),t.exit(1));var r=i(49).readFileSync(i(50).normalize(n[1]),"utf8");return e.parser.parse(r)},i.c[i.s]===n&&e.main(t.argv.slice(1))}).call(this,i(37),i(48)(t))},,,,,,,,,,,,,function(t,e,i){},function(t,e,i){},,,,,,,,,,,,,,,,,,function(t,e){},function(t,e,i){"use strict";i.r(e),i.d(e,"UserFunction",(function(){return c}));var n=i(6),r=i(7),s=i(8),o=i(17),a=i(3),c=function(){function t(e,i,r,s,o,a,c){Object(n.a)(this,t),this.tipo=e,this.ambito=i,this.nombre=r,this.parametros=s,this.instrucciones=o,this.linea=a,this.columna=c}return Object(r.a)(t,[{key:"ejecutar",value:function(t,e){if(t.existeMetodo(this.nombre))s.default.agregarError("semantico","Ya existe el metodo/funcion "+this.nombre,this.linea,this.columna);else{var i=new o.a(a.a.XQ_FUNC,this.nombre,null,this.linea,this.columna);i.setParametros(this.parametros),i.setInstrucciones(this.instrucciones),t.global.agregarSimbolo(this.nombre,i)}}}]),t}()},function(t,e,i){"use strict";i.r(e),i.d(e,"Llamada",(function(){return c}));var n=i(6),r=i(7),s=i(13),o=i(0),a=i(8),c=function(){function t(e,i,r,s){Object(n.a)(this,t),this.nombre=e,this.parametros=i,this.linea=r,this.columna=s}return Object(r.a)(t,[{key:"ejecutar",value:function(t,e){if(t.existeMetodo(this.nombre)){var i=t.obtenerMetodo(this.nombre);new s.a("Funcion "+this.nombre,t,t.global);if(i.getParametros().length===this.parametros.length);else a.default.agregarError("semantico","La cantidad de parametros no es igual",this.linea,this.columna)}else a.default.agregarError("semantico","No existe la funcion "+this.nombre,this.linea,this.columna);return new o.Primitiva("",o.TipoPrim.ERROR,this.linea,this.columna)}}]),t}()},function(t,e,i){"use strict";i.r(e),i.d(e,"Include",(function(){return s}));var n=i(6),r=i(7),s=function(){function t(e,i,r,s){Object(n.a)(this,t),this.fila=r,this.columna=s,this.tipo=e,this.codigo3Dir=i}return Object(r.a)(t,[{key:"getCodigo3Dir",value:function(){return this.codigo3Dir}},{key:"setCodigo3Dir",value:function(t){this.codigo3Dir=t}},{key:"optimizar",value:function(){}}]),t}()},function(t,e,i){"use strict";i.r(e),i.d(e,"Variable",(function(){return s}));var n=i(6),r=i(7),s=function(){function t(e,i,r,s){Object(n.a)(this,t),this.fila=r,this.columna=s,this.tipo=e,this.codigo3Dir=i}return Object(r.a)(t,[{key:"getCodigo3Dir",value:function(){return this.codigo3Dir}},{key:"setCodigo3Dir",value:function(t){this.codigo3Dir=t}},{key:"optimizar",value:function(){}}]),t}()},function(t,e,i){"use strict";var n;i.r(e),i.d(e,"TipoDeclaracion3D",(function(){return n})),function(t){t[t.INCLUDE=0]="INCLUDE",t[t.ARREGLO=1]="ARREGLO",t[t.VARIABLE=2]="VARIABLE",t[t.MAIN=3]="MAIN",t[t.METODO=4]="METODO"}(n||(n={}))},function(t,e,i){"use strict";i.r(e),i.d(e,"Llamada3D",(function(){return s}));var n=i(6),r=i(7),s=function(){function t(e,i,r,s,o){Object(n.a)(this,t),this.fila=s,this.columna=o,this.tipo=e,this.codigo3D=r,this.metodo=i,this.eliminada=!1,this.optimizada=!1}return Object(r.a)(t,[{key:"isOptimizada",value:function(){return this.optimizada}},{key:"setOptimizada",value:function(t){this.optimizada=t}},{key:"isEliminada",value:function(){return this.eliminada}},{key:"setEliminada",value:function(t){this.eliminada=t}},{key:"getTipoInstruccion",value:function(){return this.tipo}},{key:"setCodigo3D",value:function(t){this.codigo3D=t}},{key:"getCodigo3D",value:function(){return this.codigo3D}}]),t}()},function(t,e,i){"use strict";i.r(e),i.d(e,"Printf3D",(function(){return s}));var n=i(6),r=i(7),s=function(){function t(e,i,r,s){Object(n.a)(this,t),this.fila=r,this.columna=s,this.tipo=e,this.codigo3D=i,this.eliminada=!1,this.optimizada=!1}return Object(r.a)(t,[{key:"isOptimizada",value:function(){return this.optimizada}},{key:"setOptimizada",value:function(t){this.optimizada=t}},{key:"isEliminada",value:function(){return this.eliminada}},{key:"setEliminada",value:function(t){this.eliminada=t}},{key:"getTipoInstruccion",value:function(){return this.tipo}},{key:"setCodigo3D",value:function(t){this.codigo3D=t}},{key:"getCodigo3D",value:function(){return this.codigo3D}}]),t}()},function(t,e,i){"use strict";i.r(e),i.d(e,"Return3D",(function(){return s}));var n=i(6),r=i(7),s=function(){function t(e,i,r,s){Object(n.a)(this,t),this.fila=r,this.columna=s,this.tipo=e,this.codigo3D=i,this.eliminada=!1,this.optimizada=!1}return Object(r.a)(t,[{key:"isOptimizada",value:function(){return this.optimizada}},{key:"setOptimizada",value:function(t){this.optimizada=t}},{key:"isEliminada",value:function(){return this.eliminada}},{key:"setEliminada",value:function(t){this.eliminada=t}},{key:"getTipoInstruccion",value:function(){return this.tipo}},{key:"setCodigo3D",value:function(t){this.codigo3D=t}},{key:"getCodigo3D",value:function(){return this.codigo3D}}]),t}()},,,,,,,,,,,function(t,e,i){"use strict";i.r(e);var n,r=i(1),s=i.n(r),o=i(28),a=i.n(o),c=(i(154),i(6)),l=i(7),h=i(90),u=i(65),f=i(63),g=i(220),m=i(222),d=i(229),p=i(223),b=i(231),E=i(224),T=i(195),I=i(143),y=i.n(I),v=i(230),A=i(232),_=i(144),O=i.n(_),N=(i(155),i(156),i(157),i(158),i(159),i(160),i(132)),k=i(40),S=i(34),R=i(4),w=function(t){Object(u.a)(i,t);var e=Object(f.a)(i);function i(t){var n;return Object(c.a)(this,i),(n=e.call(this,t)).handleChange=function(t,e,i){n.props.onChange(i)},n.state={open:!0,language:n.props.language,displayName:n.props.displayName,value:n.props.value,onChange:n.props.onChange},n}return Object(l.a)(i,[{key:"render",value:function(){var t=this;return Object(R.jsxs)("div",{className:"editor-container",children:[Object(R.jsxs)("div",{className:"editor-title",children:[this.state.displayName,Object(R.jsx)("button",{type:"button",className:"expand-collapse-btn",onClick:function(){return t.setState({open:!t.state.open})},children:Object(R.jsx)(k.a,{icon:this.state.open?S.c:S.d})})]}),Object(R.jsx)(N.Controlled,{onBeforeChange:this.handleChange,value:this.props.value,className:"code-mirror-wrapper",options:{lineWrapping:!0,lint:!0,mode:this.props.language,theme:"material",lineNumbers:!0}})]})}}]),i}(r.Component),D=i(225),P=i(233),U=i(226),L=i(227),C=i(228),x=(i(166),i(133)),$=i(135),X=i(136),j=i(137),F=i(13),M=i(70),G=i(53),Q=i(138),B=i(8),V=i(139),H=i(140),z=i(54),q=i(3),Y=i(10),W=function(){function t(e,i,n,r){Object(c.a)(this,t),this.contHP=0,this.contSP=0,this.contT=0,this.contL=0,this.xPathHeap=[],this.xPathStack=[],this.funcionesUtilizadas=[],this.tabla=i,this.listaConsultas=e,this.xmlHeap=n,this.xmlStack=r,this.strTraduccion=""}return Object(l.a)(t,[{key:"getFuncionesUtilizadas",value:function(){var t=this,e="";return this.funcionesUtilizadas=this.funcionesUtilizadas.reverse(),this.funcionesUtilizadas.forEach((function(i){switch(i){case n.TRASLADARSIMBOLO:e+=t.getTrasladarSimbolo();break;case n.IMPRIMIRATRIBUTO:e+=t.getImprimirAtributo();break;case n.IMPRIMIRCONSULTA:e+=t.getImprimirConsulta();break;case n.IMPRIMIRETIQUETA:e+=t.getImprimirEtiqueta();break;case n.IMPRIMIRTEXTO:e+=t.getImprimirTexto();break;case n.BUSCARTEXTO:e+=t.getBuscarTexto()}})),e}},{key:"getDeclaraTempsXPATH",value:function(){var t="";if(this.contT>0){var e=0;for(t="double tx"+e,e++;e<this.contT;)t+=", tx"+e,e++;t+=";\n"}return t}},{key:"traducirXPath",value:function(){console.log("/* Inicio Traduccion XPATH */");var t=this.traducir();return console.log("/* Fin Traduccion  XPATH*/"),t}},{key:"traducir",value:function(){for(var t=0;t<this.listaConsultas.length;t++){var e=this.listaConsultas[t].listaNodos;this.strTraduccion+=this.traduccionMain(this.tabla,e,0)}return this.strTraduccion}},{key:"traduccionMain",value:function(t,e,i){for(var r="",s=i;s<e.length;s++){var o=e[s];switch(o.getTipo()){case Y.TipoNodo.IDENTIFIER:var a=this.buscarSimbolos(o,t);console.log("WHAT I FOUND in"+t.nombre+" FOR ",o.getNombre()+" is: \n",a),console.log("--------------------------------------");for(var c=0;c<a.length;c++){r+=this.traducirNodo(o);var l=a[c];r+=this.traducirSimb(l.posicion),s+1==e.length?(r+="\n\t/* IMPRIMIR ESTE NODO */\n",r+="\ttx"+this.contT+" = XPStack[(int)SP];\n",r+="\tHP = tx"+this.contT+";\n",this.contT=this.contT+1,r+="\tSP = SP + 1;\n",r+="\t imprimirConsulta();\n",-1==this.funcionesUtilizadas.indexOf(n.IMPRIMIRCONSULTA)&&this.funcionesUtilizadas.push(n.IMPRIMIRCONSULTA),-1==this.funcionesUtilizadas.indexOf(n.IMPRIMIRETIQUETA)&&this.funcionesUtilizadas.push(n.IMPRIMIRETIQUETA),-1==this.funcionesUtilizadas.indexOf(n.IMPRIMIRATRIBUTO)&&this.funcionesUtilizadas.push(n.IMPRIMIRATRIBUTO),-1==this.funcionesUtilizadas.indexOf(n.IMPRIMIRTEXTO)&&this.funcionesUtilizadas.push(n.IMPRIMIRTEXTO)):r+=this.traduccionMain(l.valor,e,s+1)}return r;case Y.TipoNodo.ASTERISCO:case Y.TipoNodo.ATRIBUTO:case Y.TipoNodo.DOT:case Y.TipoNodo.DOTDOT:break;case Y.TipoNodo.FUNCION:if(s+1==e.length){var h=o.getValor().toLowerCase();console.log("ENTACTUAL: ",t),"text()"===h&&(r+="\n\t/* BUSCAR EL TEXTO DE ESTE NODO E IMPRIMIRLO. */\n",r+="\ttx"+this.contT+" = XPStack[(int)SP];\n",r+="\tHP = tx"+this.contT+";\n",this.contT=this.contT+1,r+="\tSP = SP + 1;\n",r+="\t buscarTexto();\n",-1==this.funcionesUtilizadas.indexOf(n.BUSCARTEXTO)&&this.funcionesUtilizadas.push(n.BUSCARTEXTO),-1==this.funcionesUtilizadas.indexOf(n.IMPRIMIRCONSULTA)&&this.funcionesUtilizadas.push(n.IMPRIMIRCONSULTA),-1==this.funcionesUtilizadas.indexOf(n.IMPRIMIRETIQUETA)&&this.funcionesUtilizadas.push(n.IMPRIMIRETIQUETA),-1==this.funcionesUtilizadas.indexOf(n.IMPRIMIRATRIBUTO)&&this.funcionesUtilizadas.push(n.IMPRIMIRATRIBUTO),-1==this.funcionesUtilizadas.indexOf(n.IMPRIMIRTEXTO)&&this.funcionesUtilizadas.push(n.IMPRIMIRTEXTO))}break;case Y.TipoNodo.AXIS:case Y.TipoNodo.NODOERROR:}}return r}},{key:"traducirNodo",value:function(t){var e=this,i=t.getNombre(),n=(t.getPredicado(),'\n\t /* NODO "'+i+'" EN STACK*/ \n');return i.split("").forEach((function(t){n=n+"\t XPStack[(int)SP] = "+t.charCodeAt(0)+"; \n\t SP = SP + 1; \n",e.xPathStack.push(t.charCodeAt(0)),e.contSP++})),n+="\t XPStack[(int)SP] = -1; \n",n+="\t SP = SP + 1; \n",this.xPathStack.push(-1),this.contSP++,n}},{key:"traducirSimb",value:function(t){var e="\t H = stack[(int)"+t+"]; \n";return e+="\t trasladarSimbolo();",-1===this.funcionesUtilizadas.indexOf(n.TRASLADARSIMBOLO)&&this.funcionesUtilizadas.push(n.TRASLADARSIMBOLO),e}},{key:"getTrasladarSimbolo",value:function(){var t="void trasladarSimbolo(){\n",e="tx"+this.contT;this.contT=this.contT+1,t+="\t"+e+" = HP;\n",t+="\t/*--- TX"+this.contT+" TIENE EL VALOR CON EL QUE FINALIZA EL AMBITO --- */ \n";var i="tx"+this.contT;this.contT=this.contT+1,t+="\t"+i+" = heap[(int)H];\n",t+="\tXPHeap[(int)HP] = heap[(int)H];\n",t+="\t HP = HP + 1;\n\t H = H+1;\n";var n="tx"+this.contT;return this.contT=this.contT+1,t+="\tL1:\n\t\t"+n+" = heap[(int)H];\n\t\tif("+n+" == "+i+") goto L2;\n\t\tXPHeap[(int)HP] = "+n+";\n",t+="\t\t HP = HP + 1;\n\t\t H = H+1;\n",t+="\t\tgoto L1;\n",t+="\tL2: \n\t\t/*--- Ya se completo el ambito en el heap del xpath ---*/\n\t\tXPHeap[(int)HP] = heap[(int)H];\n\t\t H = H + 1;\n \t\tHP = HP + 1;\n\t\tXPStack[(int)SP] = "+e+";\n",t+="\treturn;\n",t+="}\n"}},{key:"buscarSimbolos",value:function(t,e){for(var i=[],n=0;n<e.tsimbolos.length;n++){var r=e.tsimbolos[n].valor;if(r.getNombre()===t.getNombre()){var s=t.getPredicado();if(void 0!=s){i.concat(this.traducirPredicado(s));break}i.push(r)}t.isFromRoot()||r.getTipo()===q.a.ETIQUETA&&i.concat(this.buscarSimbolos(t,r.valor))}return i}},{key:"getBuscarTexto",value:function(){var t="void buscarTexto(){\n",e="tx"+this.contT;this.contT=this.contT+1;var i="tx"+this.contT;t+="\t\t"+i+" = 0;\n",this.contT=this.contT+1,t+="\t"+e+" = XPHeap[(int)HP];\n",t+="\tHP = HP + 1;\n\t//Buscar en este nodo, donde hay texto.\n";var n="tx"+this.contT;return this.contT=this.contT+1,t+="\tL1:\n\t\t"+n+" = XPHeap[(int)HP];\n\t\tif("+n+" == -3) goto L7;\n\t\tHP = HP + 1;\n\t\tgoto L2;\n",t+="\tL2:\n\t\t//ver si es atributo\n\t\tif("+n+" != -2) goto L6;\n\t\t//Es atributo, ignorar su cadena (-3) y luego continuar\n\t\tHP = HP + 1;\n\t\t"+n+" = XPHeap[(int)HP];\n\t\tgoto L3;\n",t+="\tL3:\n\t\t//Ignorar dos veces -3 (texto inicio-final)\n\t\tif("+n+" == -3) goto L4;\n\t\tHP = HP + 1;\n\t\t"+n+" = XPHeap[(int)HP];\n\t\tgoto L3;\n",t+="\tL4:\n\t\tif("+i+" == 1) goto L5;\n\t\t"+i+" = 1;\n\t\tHP = HP + 1;\n\t\t"+n+" = XPHeap[(int)HP];\n\t\tgoto L3;\n",t+="\tL5:\n\t\tHP = HP + 1;\n\t\t"+i+" = 0;\n\t\tgoto L1;\n",t+="\tL6:\n\t\t//Ver si no es finalizacion de entorno\n\t\tif("+n+" <= "+e+") goto L8;\n\t\tgoto L1;\n",t+="\tL7:\n\t\t//Se encontro donde inicia el texto, imprimirlo.\n\t\timprimirConsulta();\n",t+="\tL8:\n\treturn;\n",t+="}\n"}},{key:"getImprimirConsulta",value:function(){var t="void imprimirConsulta(){\n";t+="\t/* --- tx"+this.contT+" TIENE EL VALOR CON EL QUE FINALIZA LA CONSULTA -- */\n";var e="tx"+this.contT;return this.contT=this.contT+1,t+="\t"+e+" = XPHeap[(int)HP];\n",t+="\tL1:\n",t+="\t\t /* -- Ver si es etiqueta -- */\n",t+="\t\t if("+e+" > -5) goto L2;\n",t+="\t\timprimirEtiqueta();\n",t+="\tL2:\n",t+="\t\t /* -- Ver si es atributo(-2) o texto(-3) -- */\n",t+="\t\tif("+e+" == -2) goto L3;\n",t+="\t\tif("+e+" == -3) goto L4;\n",t+="\t\tgoto L5;\n",t+="\tL3: \n\t\tHP = HP + 1;\n\t\timprimirAtributo();\n\t\tgoto L5;\n",t+="\tL4: \n\t\tHP = HP + 1;\n\t\timprimirTexto();\n\t\tgoto L5;\n",t+='\tL5: \n\tprintf("%c", (char) 10);\n\treturn;\n}\n'}},{key:"getImprimirEtiqueta",value:function(){var t="void imprimirEtiqueta() {\n",e="tx"+this.contT;this.contT=this.contT+1,t+="\t"+e+" = XPHeap[(int)HP];\n",t+="\tHP = HP + 1;\n";var i="tx"+this.contT;this.contT=this.contT+1,t+="\t"+i+" = 0;\n";var n="tx"+this.contT;this.contT=this.contT+1,t+="\t"+n+" = HP;\n",t+='\tprintf("%c", (int) 60); //Ascii <\n';var r="tx"+this.contT;this.contT=this.contT+1,t+="\tL1:\n\t\t"+r+" = XPHeap[(int)HP];\n\t\tif("+r+" == "+e+") goto L2;\n\t\tgoto L3;\n",t+="\tL3:\n\t\tif("+r+' != -2) goto L4;\n\t\tHP = HP + 1;\n\t\tprintf("%c", (char) 32); // Espacio\n\t\timprimirAtributo();\n\t\tHP = HP + 1;\n\t\tgoto L1;\n',t+="\tL4:\n\t\t//Ver si es texto\n\t\tif("+r+' != -3) goto L5;\n\t\tprintf("%c", (char) 62); //Ascii >\n\t\tHP = HP + 1;\n\t\t'+i+" = 1;\n\t\timprimirTexto();\n\t\tgoto L1;\n",t+="\tL5:\n\t\tif("+r+" != -1) goto L6;\n\t\tHP = HP + 1;\n\t\tgoto L1;\n",t+="\tL6:\n\t\t//Revisar si hay otra etiqueta\n\t\tif("+r+" < "+e+') goto L7;\n\t\t//Aun no, solo imprimir caracter.\n\t\tprintf("%c", (char) '+r+");\n\t\tHP = HP + 1;\n\t\tgoto L1;\n";var s="tx"+this.contT;return this.contT=this.contT+1,t+="\tL7:\n\t\tif("+i+" == 0) goto L10;\n\t\tXPStack[(int)SP] = "+e+";\n\t\tSP = SP + 1;\n\t\tXPStack[(int)SP] = "+n+";\n\t\tSP = SP + 1;\n\t\timprimirEtiqueta();\n\t\t"+e+" = XPStack[(int)SP];\n\t\t"+s+" = SP + 1;\n\t\t"+i+" = 1;\n\t\t"+n+" = XPStack[(int)"+s+"];\n\t\tHP = HP + 1;\n\t\tgoto L1;\n",t+='\tL10:\n\t\tprintf("%c", (char) 62); //Ascii >\n\t\t'+i+" = 1;\n\t\tgoto L7;\n",t+="\tL2:\n\t\t//EScribir etiqueta de cierre.\n\t\tif("+i+'== 0) goto L11;\n\t\tprintf("%c", (char) 60); //Ascii <\n\t\tprintf("%c", (char) 47); //Ascii /\n\t\tgoto L8;\n',t+='\tL11:\n\t\tprintf("%c", (char) 62); //Ascii >\n\t\t'+i+" = 1;\n\t\tgoto L2;\n",t+="\tL8:\n\t\t"+r+" = XPHeap[(int)"+n+"];\n\t\tif("+r+' == -1) goto L9;\n\t\tprintf("%c", (char) '+r+");\n\t\t"+n+" = "+n+" + 1;\n\t\tgoto L8;\n",t+='\tL9:\n\t\tprintf("%c", (char) 62); //Ascii >\n\tSP = SP - 2;\n\treturn;\n',t+="}\n"}},{key:"getImprimirAtributo",value:function(){var t="void imprimirAtributo(){\n",e="tx"+this.contT;return this.contT=this.contT+1,t+="\tL1:\n\t\t"+e+" = XPHeap[(int)HP];\n\t\tif("+e+' == -2) goto L2;\n\t\tprintf("%c", (char)'+e+");\n\t\tHP = HP + 1;\n\t\tgoto L1;\n",t+='\tL2:\n\t\tprintf("%c", (char) 32); // Espacio\n\t\tprintf("%c", (char)61); // = \n\t\tprintf("%c", (char) 32); // Espacio\n\t\tHP = HP + 2;\n',t+="\tL3:\n",t+="\t\t"+e+" = XPHeap[(int)HP];\n",t+="\t\tif("+e+" == -3) goto L4;\n",t+='\t\tprintf("%c", (char)'+e+");\n",t+="\t\tHP = HP + 1;\n",t+="\t\tgoto L3;\n",t+='\tL4:\n\t\tprintf("%c", (char) 32);// Espacio\n\treturn;\n',t+="}\n"}},{key:"getImprimirTexto",value:function(){var t="void imprimirTexto(){\n";t+="\t//Texto termina con -3\n";var e="tx"+this.contT;return this.contT=this.contT+1,t+="\tL1:\n\t\t"+e+" = XPHeap[(int)HP];\n\t\tif("+e+' == -3) goto L2;\n\t\tprintf("%c", (char)'+e+");\n\t\tHP = HP + 1;\n\t\tgoto L1;\n\tL2:\n\t\tHP = HP + 1;\n\treturn;\n",t+="}\n"}},{key:"traducirPredicado",value:function(t){return[]}}]),t}();!function(t){t[t.PRINTSTRING=0]="PRINTSTRING",t[t.COMPARESTRINGS=1]="COMPARESTRINGS",t[t.TRASLADARSIMBOLO=2]="TRASLADARSIMBOLO",t[t.IMPRIMIRCONSULTA=3]="IMPRIMIRCONSULTA",t[t.IMPRIMIRETIQUETA=4]="IMPRIMIRETIQUETA",t[t.IMPRIMIRTEXTO=5]="IMPRIMIRTEXTO",t[t.IMPRIMIRATRIBUTO=6]="IMPRIMIRATRIBUTO",t[t.BUSCARTEXTO=7]="BUSCARTEXTO"}(n||(n={}));var Z,J=function(){function t(e){Object(c.a)(this,t),this.contS=0,this.contH=0,this.indice=0,this.heap=new Array,this.stack=new Array,this.listaConsultas=e,this.strXPathTraduccion="",this.strTraduccion=""}return Object(l.a)(t,[{key:"getHeap",value:function(){return this.heap}},{key:"getStack",value:function(){return this.stack}},{key:"getContS",value:function(){return this.contS}},{key:"getContH",value:function(){return this.contS}},{key:"getStrTraduccion",value:function(){return this.strTraduccion}},{key:"getEncabezado",value:function(){return"/*------HEADER------*/ \n#include <stdio.h> \n#include <math.h> \n\ndouble heap[30101999]; \ndouble stack[30101999]; \ndouble XPStack[30101999];\ndouble XPHeap[30101999];\ndouble HP;\ndouble SP;\ndouble S; \ndouble H; \n"}},{key:"getMain",value:function(t){return"/*------MAIN------*/ \nint main() { \n    S = 0; \n    H = 0; \n\n/********* INICIA TRADUCCION XML **********/ \n"+t+"\n\n/********* TERMINA TRADUCCION XML **********/ \n\n/********* INICIA TRADUCCION XPATH **********/ \n\t HP = 0;\n\t SP = 0;\n"+this.strXPathTraduccion+"\n\n/********* TERMINA TRADUCCION XPATH **********/ \n    return 0; \n} \n"}},{key:"getCodeC",value:function(){var t;if(t=this.getEncabezado(),t+=this.getDeclaraTemps(),this.listaConsultas.length>0){var e=new W(this.listaConsultas,mt.global,this.heap,this.stack);this.strXPathTraduccion=e.traducirXPath();var i=e.getFuncionesUtilizadas();t+=e.getDeclaraTempsXPATH()+"\n",t+=i}return t+=this.getMain(this.strTraduccion)}},{key:"getDeclaraTemps",value:function(){for(var t="double ",e=0;e<this.stack.length;e++)t=t+"t"+e.toString(),t+=e==this.stack.length-1?";":", ",e%100==0&&(t+="\n");return t+="\n",t+="\n"}},{key:"traducirXML",value:function(){return console.log("/* Inicio Traduccion */"),this.traducir(mt.global,-5),this.strTraduccion=this.getCodeC(),console.log("/* Fin Traduccion */"),this.strTraduccion}},{key:"traducir",value:function(t,e){var i=this;t.tsimbolos.forEach((function(t){null===t.valor.padre&&void 0!=t.valor.padre||(t.valor.valor instanceof F.a?(i.strTraduccion=i.strTraduccion+"\n /*--- SE AGREGA NUEVO NODO ---*/",t.valor.setPosicion(i.contS),i.strTraduccion=i.strTraduccion+'\n /*--- EL AMBITO DE "'+t.valor.nombre+'" TERMINA CON: '+e+" ---*/",i.strTraduccion=i.strTraduccion+"\n\t heap[(int)H] = "+e+" ; \n",i.strTraduccion=i.strTraduccion+"\t H = H + 1; \n",i.heap.push(e),i.contH++,i.strTraduccion=i.strTraduccion+i.getIDAsignacionHeap(t.valor.nombre.toString(),"ETIQUETA"),i.traducir(t.valor.valor,e-5),i.strTraduccion=i.strTraduccion+'\n /*--- FINALIZACION DE NODO "'+t.valor.nombre+'" ---*/',i.strTraduccion=i.strTraduccion+"\n\t heap[(int)H] = "+e+" ; \n",i.strTraduccion=i.strTraduccion+"\t H = H + 1; \n",i.heap.push(e),i.contH++):!1!==t.valor.valor&&!1!==t.valor.valor&&(i.strTraduccion=i.strTraduccion+"\n /*--- SE AGREGA NUEVO SIMBOLO ---*/",t.valor.setPosicion(i.contS),t.valor.getTipo()===q.a.ATRIBUTO&&(i.strTraduccion=i.strTraduccion+i.getIDAsignacionHeap(t.valor.nombre.toString(),"ATRIBUTO")),i.strTraduccion=i.strTraduccion+i.getVALAsignacionHeap(t.valor.valor.toString())))}))}},{key:"getIDAsignacionHeap",value:function(t,e){var i=this,n="\n\t /* "+e+' "'+t+'" EN HEAP*/ \n';n=n+"\t t"+this.contS+" = H-1;\n";var r=-1;return"ATRIBUTO"===e&&(n=n+"\t heap[(int)H] = "+(r=-2)+"; \n\t H = H + 1; \n",this.heap.push(r),this.contH++),t.split("").forEach((function(t){n=n+"\t heap[(int)H] = "+t.charCodeAt(0)+"; \n\t H = H + 1; \n",i.heap.push(t.charCodeAt(0)),i.contH++})),n=n+"\t heap[(int)H] = "+r+"; \n\t H = H + 1; \n",this.heap.push(r),this.contH++,n=n+"\t stack[(int)"+this.contS+"] = t"+this.contS+"; \n",this.stack.push(this.contS),this.contS++,n}},{key:"getVALAsignacionHeap",value:function(t){var e=this,i='\n\t /* VALOR "'+t+'" EN HEAP*/ \n';return i=i+"\t t"+this.contS+" = H;\n",i+="\t heap[(int)H] = -3; \n\t H = H + 1; \n",this.heap.push(-3),this.contH++,t.split("").forEach((function(t){i=i+"\t heap[(int)H] = "+t.charCodeAt(0)+"; \n\t H = H + 1; \n",e.heap.push(t.charCodeAt(0)),e.contH++})),i+="\t heap[(int)H] = -3; \n\t H = H + 1; \n",this.heap.push(-3),this.contH++,i=i+"\t stack[(int)"+this.contS+"] = t"+this.contS+"; \n",this.stack.push(this.contS),this.contS++,i}}]),t}(),K=i(141),tt=function(){function t(e,i,n,r,s){Object(c.a)(this,t),this.fila=r,this.columna=s,this.tipo=e,this.codigoAntes=i,this.codigoAhora=n}return Object(l.a)(t,[{key:"getFila",value:function(){return this.fila}},{key:"getColumna",value:function(){return this.columna}},{key:"getCodigoAntes",value:function(){return this.codigoAntes}},{key:"getCodigoAhora",value:function(){return this.codigoAhora}},{key:"tipoReglaToString",value:function(){switch(this.tipo){case Z.REGLA1:return"Regla 1";case Z.REGLA2:return"Regla 2";case Z.REGLA3:return"Regla 3";case Z.REGLA4:return"Regla 4";case Z.REGLA5:return"Regla 5";case Z.REGLA6:return"Regla 6";case Z.REGLA7:return"Regla 7";case Z.REGLA8:return"Regla 8";case Z.REGLA9:return"Regla 9";case Z.REGLA10:return"Regla 10";case Z.REGLA10:return"Regla 11";case Z.REGLA10:return"Regla 12";case Z.REGLA10:return"Regla 13";case Z.REGLA10:return"Regla 14";case Z.REGLA10:return"Regla 15";case Z.REGLA10:return"Regla 16";default:return"Regla x"}}}]),t}();!function(t){t[t.REGLA1=0]="REGLA1",t[t.REGLA2=1]="REGLA2",t[t.REGLA3=2]="REGLA3",t[t.REGLA4=3]="REGLA4",t[t.REGLA5=4]="REGLA5",t[t.REGLA6=5]="REGLA6",t[t.REGLA7=6]="REGLA7",t[t.REGLA8=7]="REGLA8",t[t.REGLA9=8]="REGLA9",t[t.REGLA10=9]="REGLA10",t[t.REGLA11=10]="REGLA11",t[t.REGLA12=11]="REGLA12",t[t.REGLA13=12]="REGLA13",t[t.REGLA14=13]="REGLA14",t[t.REGLA15=14]="REGLA15",t[t.REGLA16=15]="REGLA16"}(Z||(Z={}));var et,it=i(35),nt=i(19),rt=i(16),st=i(33),ot=i(55),at=i(91),ct=i(73),lt=i(26),ht=function(){function t(e,i,n,r){Object(c.a)(this,t),this.codigo3D=i,this.tipo=e,this.fila=n,this.columna=r,this.eliminada=!1,this.optimizada=!1}return Object(l.a)(t,[{key:"isOptimizada",value:function(){return this.optimizada}},{key:"setOptimizada",value:function(t){this.optimizada=t}},{key:"isEliminada",value:function(){return this.eliminada}},{key:"setEliminada",value:function(t){this.eliminada=t}},{key:"getCodigo3D",value:function(){return this.codigo3D}},{key:"setCodigo3D",value:function(t){this.codigo3D=t}},{key:"getTipoInstruccion",value:function(){return this.tipo}}]),t}(),ut=function(){function t(){Object(c.a)(this,t),this.reporte=[]}return Object(l.a)(t,[{key:"aplicar",value:function(t,e){return this.reporte=e,t=this.regla1(t),t=this.regla2(t),t=this.regla3_y_regla4(t),t=this.regla5(t),t=this.reglasAlgebraicas(t)}},{key:"instruccionesToString",value:function(t){var e="";return t.forEach((function(t){e+=t.getCodigo3D()+"\n"})),e}},{key:"agregarReporte",value:function(t,e,i){var n,r,s=this.instruccionesToString(e),o=this.instruccionesToString(t);t.length>0?(n=t[0].fila,r=t[0].columna):(n=e[0].fila,r=e[0].columna);var a=new tt(i,s,o,n,r);this.reporte.push(a)}},{key:"regla1",value:function(t){console.log("--------- Aplicando REGLA 1 ------------- ");var e=0,i=[],n=[],r=[];if(null!=t)for(var s=!1,o=0;o<t.length;o++){var a=t[o];a.getTipoInstruccion()!==lt.TipoInstruccion3D.GOTO?a.getTipoInstruccion()!==lt.TipoInstruccion3D.ETIQUETA?s?n.push(a):a.isOptimizada()||(a.setOptimizada(!0),i.push(a)):(s=!1,r.push(a),n.length>1&&this.agregarReporte(r,n,Z.REGLA1),r=this.marcarAsOptimizadas(r,!0),i=i.concat(r),e+=n.length,r=[],n=[]):(s=!0,r.push(a))}return console.log("Se eliminaron :",e+" instrucciones"),console.log("-------------------------------------------"),this.marcarAsOptimizadas(i,!1)}},{key:"regla2",value:function(t){console.log("--------- Aplicando REGLA 2 ------------- ");var e=0,i=[],n="";if(null!=t)for(var r=[],s=[],o=!1,a=0;a<t.length;a++){var c=t[a];if(c instanceof ot.Etiqueta3D&&(n=c.identificador),c instanceof ct.If3D){var l=void 0;if(l=c,a+1<t.length){var h=t[a+1];if(h instanceof at.Goto3D){var u=this.crearIfAnterior(l);r.push(u),r.push(h);var f=h.identificador;l.negarCondicion();var g=l.gotoEtiqueta;l.gotoEtiqueta=h;var m=g.identificador,d=void 0;d=this.getCodigoEtiqueta(m,t,0,!0),this.cambiarReferencias(m,n,t,0);var p;p=this.getCodigoEtiqueta(f,t,0,!0),r=r.concat(d[0]);var b=new ht(lt.TipoInstruccion3D.REPRESENTACION,"[Instrucciones_"+m+"]",-1,-1);r.push(b);var E=new ht(lt.TipoInstruccion3D.REPRESENTACION,"[Instrucciones_"+f+"]",-1,-1);(r=r.concat(p[0])).push(E),o=!0,s.push(l);var T=[];(T=T.concat(s)).push(b),T.push(p[0]),T.push(E),d.shift(),s=(s=s.concat(d)).concat(p),s=this.marcarAsOptimizadas(s,!0),i=i.concat(s),this.agregarReporte(T,r,Z.REGLA2),s=[],e+=r.length,r=[]}}}o?o=!1:c.isEliminada()||c.isOptimizada()||(c.setOptimizada(!0),i.push(c))}return console.log("Se eliminaron :",e+" instrucciones"),console.log("-------------------------------------------"),this.marcarAsOptimizadas(i,!1)}},{key:"regla3_y_regla4",value:function(t){console.log("--------- Aplicando REGLA 3 y REGLA 4 ------------- ");for(var e=[],i=[],n=[],r=!1,s=0;s<t.length;s++){var o=t[s];if(o instanceof ct.If3D){var a=o.condicion;if(a instanceof nt.Operacion3D){var c=a.op_izq,l=a.op_der;if(this.sonConstantes(c,l)){var h=a.getValorRelacional(),u=o.gotoEtiqueta,f=void 0,g=null;s+1<t.length&&t[s+1]instanceof ot.Etiqueta3D&&(f=t[s+1],r=!0,h?(i.push(u),g=Z.REGLA3):(i.push(f),g=Z.REGLA4),n.push(o),n.push(f),this.agregarReporte(i,n,g),i=this.marcarAsOptimizadas(i,!0),e=e.concat(i),n=[],i=[])}}}r?r=!1:o.isOptimizada()||(o.setOptimizada(!0),e.push(o))}return console.log("Se eliminaron :","0 instrucciones"),console.log("-------------------------------------------"),this.marcarAsOptimizadas(e,!1)}},{key:"regla5",value:function(t){console.log("--------- Aplicando REGLA 5------------- ");for(var e=0,i=[],n=[],r=[],s=!1,o=0;o<t.length;o++){var a=t[o];if(a instanceof st.Asignacion3D){var c=a.expresion;if(c instanceof rt.Primitiva3D&&c.getTipoPrim3D()===rt.TipoPrim3D.IDENTIFIER){for(var l=a.identificador,h=c.getValor(),u=o+1,f=void 0,g=[];u<t.length;){if((f=t[u])instanceof st.Asignacion3D){if(f.identificador==l)break;var m=f.expresion;if(m instanceof rt.Primitiva3D&&m.getTipoPrim3D()===rt.TipoPrim3D.IDENTIFIER&&f.identificador==h&&m.getValor()==l){s=!0,r.push(f),n.push(a),n=n.concat(g),this.agregarReporte(n,r,Z.REGLA5),n=this.marcarAsOptimizadas(n,!0),i=i.concat(n),e+=r.length,r=[],n=[];break}}else if(f instanceof ot.Etiqueta3D)break;g.push(f),u+=1}s&&(o=u)}}s?s=!1:a.isOptimizada()||(a.setOptimizada(!0),i.push(a))}return console.log("Se eliminaron :",e+" instrucciones"),console.log("-------------------------------------------"),this.marcarAsOptimizadas(i,!1)}},{key:"reglasAlgebraicas",value:function(t){console.log("--------- Aplicando REGLAS SIMPLIFICACION ALGEBRAICA  ------------- ");for(var e=0,i=[],n=[],r=[],s=!1,o=0;o<t.length;o++){var a=t[o];if(a instanceof st.Asignacion3D){var c=a.expresion;if(c instanceof nt.Operacion3D){var l=c.op_izq,h=c.op_der;if(null!=h)if(l.getTipoPrim3D()===rt.TipoPrim3D.IDENTIFIER){if(l.getValor()===a.identificador){if(0==h.getValor()){var u=void 0;if(c.getTipoOperacion()===nt.TipoOperacion3D.SUMA)n.push(a),u=Z.REGLA6,this.agregarReporte(r,n,u),e+=n.length,n=[],r=[],s=!0;else if(c.getTipoOperacion()===nt.TipoOperacion3D.RESTA)n.push(a),u=Z.REGLA7,this.agregarReporte(r,n,u),e+=n.length,n=[],r=[],s=!0;else if(c.getTipoOperacion()===nt.TipoOperacion3D.MULTIPLICACION){n.push(a);var f=new rt.Primitiva3D(it.TipoExpresion3D.PRIMITIVA,rt.TipoPrim3D.INTEGER,0,"0",l.fila,l.columna),g=new st.Asignacion3D(lt.TipoInstruccion3D.ASIGNORMAL,a.identificador,f,"",a.fila,a.columna);r.push(g),u=Z.REGLA15,this.agregarReporte(r,n,u),e+=n.length,i=i.concat(r),n=[],r=[],s=!0}}else if(1===h.getValor()){var m=void 0;c.getTipoOperacion()===nt.TipoOperacion3D.MULTIPLICACION?(n.push(a),m=Z.REGLA8,this.agregarReporte(r,n,m),e+=n.length,n=[],r=[],s=!0):c.getTipoOperacion()===nt.TipoOperacion3D.DIVISION&&(n.push(a),m=Z.REGLA9,this.agregarReporte(r,n,m),e+=n.length,n=[],r=[],s=!0)}}else if(0===h.getValor()){var d=void 0;if(c.getTipoOperacion()===nt.TipoOperacion3D.SUMA){n.push(a);var p=new rt.Primitiva3D(it.TipoExpresion3D.PRIMITIVA,rt.TipoPrim3D.IDENTIFIER,l.getValor(),l.getCodigo3D(),l.fila,l.columna),b=new st.Asignacion3D(lt.TipoInstruccion3D.ASIGNORMAL,a.identificador,p,"",a.fila,a.columna);r.push(b),d=Z.REGLA10,this.agregarReporte(r,n,d),e+=n.length,i=i.concat(r),n=[],r=[],s=!0}else if(c.getTipoOperacion()===nt.TipoOperacion3D.RESTA){n.push(a);var E=new rt.Primitiva3D(it.TipoExpresion3D.PRIMITIVA,rt.TipoPrim3D.IDENTIFIER,l.getValor(),l.getCodigo3D(),l.fila,l.columna),T=new st.Asignacion3D(lt.TipoInstruccion3D.ASIGNORMAL,a.identificador,E,"",a.fila,a.columna);r.push(T),d=Z.REGLA11,this.agregarReporte(r,n,d),e+=n.length,i=i.concat(r),n=[],r=[],s=!0}else if(c.getTipoOperacion()===nt.TipoOperacion3D.MULTIPLICACION){n.push(a);var I=new rt.Primitiva3D(it.TipoExpresion3D.PRIMITIVA,rt.TipoPrim3D.INTEGER,0,"0",l.fila,l.columna),y=new st.Asignacion3D(lt.TipoInstruccion3D.ASIGNORMAL,a.identificador,I,"",a.fila,a.columna);r.push(y),d=Z.REGLA15,this.agregarReporte(r,n,d),e+=n.length,i=i.concat(r),n=[],r=[],s=!0}}else if(1===h.getValor()){var v=void 0;if(c.getTipoOperacion()===nt.TipoOperacion3D.MULTIPLICACION){n.push(a);var A=new rt.Primitiva3D(it.TipoExpresion3D.PRIMITIVA,rt.TipoPrim3D.IDENTIFIER,l.getValor(),l.getCodigo3D(),l.fila,l.columna),_=new st.Asignacion3D(lt.TipoInstruccion3D.ASIGNORMAL,a.identificador,A,"",a.fila,a.columna);r.push(_),v=Z.REGLA12,this.agregarReporte(r,n,v),e+=n.length,i=i.concat(r),n=[],r=[],s=!0}else if(c.getTipoOperacion()===nt.TipoOperacion3D.DIVISION){n.push(a);var O=new rt.Primitiva3D(it.TipoExpresion3D.PRIMITIVA,rt.TipoPrim3D.IDENTIFIER,l.getValor(),l.getCodigo3D(),l.fila,l.columna),N=new st.Asignacion3D(lt.TipoInstruccion3D.ASIGNORMAL,a.identificador,O,"",a.fila,a.columna);r.push(N),v=Z.REGLA13,this.agregarReporte(r,n,v),e+=n.length,i=i.concat(r),n=[],r=[],s=!0}}else if(2===h.getValor()){var k=void 0;if(c.getTipoOperacion()===nt.TipoOperacion3D.MULTIPLICACION){n.push(a);var S=new nt.Operacion3D(it.TipoExpresion3D.OPERACION,nt.TipoOperacion3D.SUMA,l,l,"",l.fila,l.columna),R=new st.Asignacion3D(lt.TipoInstruccion3D.ASIGNORMAL,a.identificador,S,"",a.fila,a.columna);r.push(R),k=Z.REGLA14,this.agregarReporte(r,n,k),e+=n.length,i=i.concat(r),n=[],r=[],s=!0}}}else if(l.getTipoPrim3D()===rt.TipoPrim3D.INTEGER&&0===l.getValor()&&c.getTipoOperacion()===nt.TipoOperacion3D.DIVISION){var w=void 0;if(h.getTipoPrim3D()===rt.TipoPrim3D.IDENTIFIER){n.push(a);var D=new rt.Primitiva3D(it.TipoExpresion3D.PRIMITIVA,rt.TipoPrim3D.INTEGER,0,"0",l.fila,l.columna),P=new st.Asignacion3D(lt.TipoInstruccion3D.ASIGNORMAL,a.identificador,D,"",a.fila,a.columna);r.push(P),w=Z.REGLA15,this.agregarReporte(r,n,w),e+=n.length,i=i.concat(r),n=[],r=[],s=!0}}}}s?s=!1:i.push(a)}return console.log("Se eliminaron :",e+" instrucciones"),console.log("-------------------------------------------"),console.log("MY INST ARE: ",i),i}},{key:"cambiarReferencias",value:function(t,e,i,n){for(;n<i.length;){var r=i[n];r instanceof at.Goto3D&&r.getReferencia()===t&&r.changeReferencia(e),n+=1}}},{key:"marcarAsOptimizadas",value:function(t,e){var i=[];return t.forEach((function(t){t.setOptimizada(e),i.push(t)})),console.log("RETURNING: ",i),i}},{key:"getCodigoEtiqueta",value:function(t,e,i,n){for(var r=[],s=!1;i<e.length;){var o=e[i];if(s){if(o instanceof ot.Etiqueta3D)break;r.push(o),o.setEliminada(!0)}o instanceof ot.Etiqueta3D&&o.identificador===t&&(n&&(o.setEliminada(!0),r.push(o)),s=!0),i+=1}return r}},{key:"crearIfAnterior",value:function(t){var e=Object.create(t.condicion);return new ct.If3D(lt.TipoInstruccion3D.IF,e,t.gotoEtiqueta,t.codigo3D,t.fila,t.columna)}},{key:"sonConstantes",value:function(t,e){return t.getTipoPrim3D()!=rt.TipoPrim3D.IDENTIFIER&&(null==e||e.getTipoPrim3D()!=rt.TipoPrim3D.IDENTIFIER)}}]),t}(),ft=i(103),gt=i(102),mt=new(function(){function t(){return Object(c.a)(this,t),this.global=new F.a("global",null,null),this.xqGlobal=new F.a("XQGlobal",null,null),B.default.limpiar(),this.indice=0,this.reporteOptimiza=[],this.consultas=[],this.xPathEntry="",this.xQueryEntry="",this.instrucciones=null,"object"===typeof t._instance?t._instance:(t._instance=this,this)}return Object(l.a)(t,[{key:"iniciarVariables",value:function(){this.global=new F.a("global",null,null),this.xqGlobal=new F.a("xqGlobal",null,null),B.default.limpiar()}},{key:"optimizacion",value:function(t){var e=this,i=K.parse(t),n="",r=new ut;this.reporteOptimiza=[];return i.forEach((function(t){t.getCodigo3Dir()+"\n",(t instanceof gt.Main||t instanceof ft.Metodo)&&(t.listaInstrucciones=r.aplicar(t.listaInstrucciones,e.reporteOptimiza)),n+=t.getCodigo3Dir()+"\n"})),console.log("REPORTE: ",this.reporteOptimiza),n}},{key:"xmlDescendente",value:function(t){var e=this;console.log("---GRAMATICA DESCENDENTE---"),z.cstXmlDesc.id=0,Q.parse(t).forEach((function(t){(t instanceof M.Objeto||t instanceof G.Atributo)&&t.ejecutar(e.global)})),console.log(this.global),console.log(B.default)}},{key:"xmlAscendente",value:function(t){var e=this;console.log("---GRAMATICA ASCENDENTE---"),z.cstXmlAsc.id=0;var i=$.parse(t);this.global=new F.a("global",null,null),null!==i&&i.forEach((function(t){console.log("Elemento: "+t),(t instanceof M.Objeto||t instanceof G.Atributo)&&t.ejecutar(e.global)})),console.log(this.global),console.log(B.default)}},{key:"XPathAscendente",value:function(t){var e=this;console.log("-- XPATH ASCENDENTE -- "),this.consultas=V.parse(t);var i="";return console.log("---------------------------------------"),this.consultas.forEach((function(t){console.log("CONSULTA: "+t.ToString());var n=t.ejecutar(e.global);i+=t.simbolosToString(n)+"\n",console.log("-----------RESULTADO----------------"),console.log(n),console.log("StringResult:"),console.log(t.simbolosToString(n)),console.log("---------------FIN---------------------")})),i}},{key:"XPathDescendente",value:function(t){var e=this;console.log("-- XPATH DESCENDENTE -- "),this.consultas=H.parse(t);var i="";return console.log("---------------------------------------"),this.consultas.forEach((function(t){console.log("CONSULTA: "+t.ToString());var n=t.ejecutar(e.global);i+=t.simbolosToString(n)+"\n",console.log("-----------RESULTADO----------------"),console.log(n),console.log("TOSTRING:"),console.log(t.simbolosToString(n)),console.log("---------------FIN---------------------")})),i}},{key:"XQueryAscendente",value:function(t){console.log("---- XQUERY ASCENDENTE ----- "),this.xqGlobal=new F.a("XQGlobal",null,null),this.instrucciones=X.parse(t),console.log("instrucciones: ",this.instrucciones),this.xQueryEntry=t;var e="";return null!=this.instrucciones&&(e+=this.instrucciones.ejecutar(this.xqGlobal,this.global),console.log("s:",e)),this.global.tsimbolos=this.global.tsimbolos.concat(this.xqGlobal.tsimbolos),console.log(this.global),console.log("SALIDA: ",e),e}},{key:"getTablaSimbolos",value:function(){return this.global}},{key:"getErrores",value:function(){var t="";return B.default.listaError.forEach((function(e){t=t+e.getMensaje()+"\n"})),t}},{key:"getRepTablaSimbolos",value:function(){var t="";this.global.tsimbolos;return this.indice=0,t='digraph {tbl [shape=plaintext,label=<<table border="0" cellborder="1" color="#ddd" cellspacing="0"><tr bgcolor="#04AA6D"><td><b>NO.</b></td><td><b>NOMBRE</b></td><td><b>TIPO</b></td><td><b>AMBITO</b></td><td><b>NODO</b></td><td><b>VALOR</b></td><td><b>FILA</b></td><td><b>COLUMNA</b></td><td><b>POSICION</b></td></tr>',t+=this.getSimbolosEntorno(this.global),t+="</table>>];}"}},{key:"getSimbolosEntorno",value:function(t){var e=this,i="";return t.tsimbolos.forEach((function(n){n.valor.valor instanceof F.a?(e.indice++,i=i+"<tr><td>"+e.indice+"</td><td>"+n.valor.getNombre()+"</td><td>"+e.getTipoDato(n.valor.getTipo())+"</td><td>"+t.nombre+"</td><td>"+n.nombre+"</td><td>Nodo</td><td>"+n.valor.getLinea()+"</td><td>"+n.valor.getColumna()+"</td><td>"+n.valor.getPosicion()+"</td></tr>",i+=e.getSimbolosEntorno(n.valor.valor)):!1!==n.valor.valor&&(e.indice++,i=i+"<tr><td>"+e.indice+"</td><td>"+n.valor.getNombre()+"</td><td>"+e.getTipoDato(n.valor.getTipo())+"</td><td>"+t.nombre+"</td><td>"+n.nombre+"</td><td>"+n.valor.getValor().toString().replace("&","and")+"</td><td>"+n.valor.getLinea()+"</td><td>"+n.valor.getColumna()+"</td><td>"+n.valor.getPosicion()+"</td></tr>")})),i}},{key:"getTipoDato",value:function(t){switch(t){case 0:return"Texto";case 1:return"Cadena";case 2:return"Etiqueta";case 3:return"Atributo"}return""}},{key:"getRepErrores",value:function(){var t="",e=0;return t='<table class="tablaDatos" ><tr><th>No.</th><th>Tipo</th><th>Descripcion</th><th>Linea</th><th>Columna</th></th>',B.default.listaError.forEach((function(i){e++,t=t+"<tr><td>"+e+"</td><td>"+i.getTipo()+"</td><td>"+i.getDescripcion()+"</td><td>"+i.getLinea()+"</td><td>"+i.getColumna()+"</td></tr>"})),t+="</table>"}},{key:"getRepOptimizacion",value:function(){var t="",e=0;return t='<table class="tblRepOpti" ><tr><th>No.</th><th>CODIGO ANTES</th><th>CODIGO AHORA</th><th>REGLA</th><th>Columna</th><th>FILA</th></th>',this.reporteOptimiza.forEach((function(i){e++,t=t+"<tr><td>"+e+"</td><td>"+i.getCodigoAntes()+"</td><td>"+i.getCodigoAhora()+"</td><td>"+i.tipoReglaToString()+"</td><td>"+i.getColumna()+"</td><td>"+i.getFila()+"</td></tr>"})),t+="</table>"}},{key:"getCSTXmlAsc",value:function(){var t="digraph {";return t+=this.recorridoCst(z.cstXmlAsc.getRaiz()),t+="}"}},{key:"getCSTXmlDesc",value:function(){var t="digraph {";return t+=this.recorridoCst(z.cstXmlDesc.getRaiz()),t+="}"}},{key:"recorridoCst",value:function(t){var e=this,i="";return null!==t&&(i+=t.id+'[label="'+t.valor+'"];\n',t.hijos.forEach((function(n){i+=e.recorridoCst(n),i+=t.id+" -> "+n.id+";\n"}))),i}},{key:"traduceXML",value:function(){var t;return t=new J(this.consultas).traducirXML(),console.log(this.global),t}}],[{key:"getInstance",value:function(){return this._instance}}]),t}());et="\ndeclare function local:ackerman($m as xs:integer, $n as xs:integer ) as xs:integer\n{\n  if ($m eq 0) then $n+1\n  else if ($m gt 0 and $n eq 0) then local:ackerman($m - 1, 1)\n  else local:ackerman ($m - 1, local:ackerman($m, $n - 1))\n};\n\ndeclare function local:factorial($x as xs:integer)as xs:integer\n{\n  if ($x eq 0) then 1\n  else ($x*local:factorial($x - 1))\n};\n\ndeclare function local:fibonacci($num as xs:integer) as xs:integer\n{\n  let $a := $num + 1\n  let $b := $a * 8\n  for $l in (4 to 6)\n  return if ($num eq 0) then 0\n  else if ($num eq 1) then 1\n  else (local:fibonacci($num - 1) + local:fibonacci($num - 2))\n};\n\ndeclare function local:tipo1() as xs:integer\n{\n  let $a := 1\n  let $b := $a * 8\n  return local:fibonacci($a - 2)\n};\n\ndeclare function local:tipo2() as xs:integer\n{\n  for $a in (1)\n  where $a/price < 5\n  let $b := $a * 8\n  return if ($b eq 8) then local:factorial($a)\nelse 5\n};\n\nlet $go := 5\nlet $ruta := /pruebas\n",console.log("-- XQUERY --"),j.parse(et).forEach((function(t){console.log(t)}));var dt=function(t){Object(u.a)(i,t);var e=Object(f.a)(i);function i(){var t;Object(c.a)(this,i);for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return(t=e.call.apply(e,[this].concat(r))).state={open:!1,modalOpen:!1,modalOpenCst:!1,alertOpen:!1,opcion:"",consoleText:"",fileName:"",xml:"",xpath:"",reptHtml:"",fileDownloadUrl:null,selectedOption:"",dot:"digraph {}",c3d:"",open3D:!1,tituloRepHTML:""},t.abrirModal=function(){t.setState({modalOpen:!t.state.modalOpen})},t.handleClose=function(){t.setState({open:!1})},t.handleOpen=function(){t.setState({open:!0})},t.handleXML=function(e){t.setState({xml:e})},t.handleXPath=function(e){t.setState({xpath:e})},t.handleDot=function(e){t.setState({dot:e})},t.handleC3d=function(e){t.setState({c3d:e})},t.nuevo=function(){t.setState({fileName:"",xml:"",xpath:"",c3d:"",open3D:!1})},t.upload=function(e){e.preventDefault(),t.dofileUpload.click()},t.open=function(e){var i=e.target.files[0],n=new FileReader,r=function(e){var n=e.target.result;t.setState({xml:n,fileName:i.name})};r=r.bind(Object(h.a)(t)),n.onload=r,n.readAsText(i)},t.downloadXML=function(e){var i;e.preventDefault(),i=t.state.xml;var n=new Blob([i]),r=URL.createObjectURL(n);if(null===t.state.fileName||""===t.state.fileName){var s=new Date,o=s.getDate()+"_"+(s.getMonth()+1)+"_"+s.getFullYear()+"_"+s.getHours()+"_"+s.getMinutes();t.setState({fileName:o})}t.setState({fileDownloadUrl:r},(function(){t.dofileDownload.click(),URL.revokeObjectURL(r),t.setState({fileDownloadUrl:""})}))},t.downloadXPath=function(e){var i;e.preventDefault(),i=t.state.xml;var n=new Blob([i]),r=URL.createObjectURL(n);if(null===t.state.fileName||""===t.state.fileName){var s=new Date,o=s.getDate()+"_"+(s.getMonth()+1)+"_"+s.getFullYear()+"_"+s.getHours()+"_"+s.getMinutes();t.setState({fileName:o})}t.setState({fileDownloadUrl:r},(function(){t.dofileDownload.click(),URL.revokeObjectURL(r),t.setState({fileDownloadUrl:""})}))},t.onValueChange=function(e){t.setState({selectedOption:e.target.value})},t.formSubmit=function(e){e.preventDefault(),console.log(t.state.selectedOption)},t.analizar=function(e){t.abrirModal();var i="";switch(t.state.selectedOption){case"XPath":mt.xmlAscendente(t.state.xml),i=""!==t.state.xpath?mt.XPathAscendente(t.state.xpath):"";break;case"XQuery":mt.xmlDescendente(t.state.xml),i=""!==t.state.xpath?mt.XQueryAscendente(t.state.xpath):""}t.setState({consoleText:i}),""!==t.state.selectedOption&&t.setState({alertOpen:!0})},t.generar3D=function(e){t.setState({open3D:!0,c3d:mt.traduceXML()})},t.optimizar=function(e){""===t.state.c3d&&""===t.state.xpath||t.setState({c3d:mt.optimizacion(mt.optimizacion(mt.optimizacion(""!==t.state.c3d?t.state.c3d:t.state.xpath)))}),console.log("OPTIMIZACION FINALIZADA CON EXITO!"),t.setState({open3D:!0})},t.reporteTablaSimbolos=function(e){t.setState({dot:mt.getRepTablaSimbolos()})},t.reporteListaErrores=function(e){t.setState({tituloRepHTML:"LISTA DE ERRORES"}),t.setState({reptHtml:mt.getRepErrores()})},t.reporteOptimizacion=function(e){t.setState({tituloRepHTML:"REPORTE DE OPTIMIZACION"}),t.setState({reptHtml:mt.getRepOptimizacion()})},t.mostrarCst=function(){t.setState({modalOpenCst:!t.state.modalOpenCst})},t.reporteCst=function(e){t.mostrarCst(),t.state.selectedOption},t}return Object(l.a)(i,[{key:"render",value:function(){var t=this,e={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"};return Object(R.jsxs)(R.Fragment,{children:[Object(R.jsxs)("div",{className:"App",style:{width:"100%"},children:[Object(R.jsx)("header",{className:"App-header",children:Object(R.jsx)(g.a,{position:"static",style:{background:"#4b6584"},children:Object(R.jsxs)(m.a,{children:[Object(R.jsx)(d.a,{edge:"start",className:"menuButton",color:"inherit","aria-label":"menu",children:Object(R.jsx)(y.a,{})}),Object(R.jsx)(p.a,{variant:"h6",className:"title",children:"TytusX"})]})})}),Object(R.jsx)("div",{className:"App-body",children:Object(R.jsxs)(E.a,{container:!0,spacing:1,children:[Object(R.jsx)(E.a,{item:!0,xs:1}),Object(R.jsx)(E.a,{item:!0,xs:10,children:Object(R.jsxs)("div",{className:"row",children:[Object(R.jsxs)("div",{children:[Object(R.jsx)("button",{className:"Boton",style:{backgroundColor:"white"},onClick:this.nuevo,children:Object(R.jsx)(k.a,{icon:S.e})}),Object(R.jsx)("button",{onClick:this.upload,className:"Boton",style:{backgroundColor:"white",color:"yellowgreen"},children:Object(R.jsx)(k.a,{icon:S.f})}),Object(R.jsx)("input",{type:"file",style:{display:"none"},multiple:!1,accept:".xml,application/xml",onChange:function(e){return t.open(e)},ref:function(e){return t.dofileUpload=e}}),Object(R.jsxs)("div",{style:{display:"inline-block",padding:"0px 10px 0px 10px"},children:[Object(R.jsx)(p.a,{style:{color:"white"},children:"Guardar XML"}),Object(R.jsx)("button",{className:"Boton",style:{backgroundColor:"white",color:"gray"},onClick:this.downloadXML,children:Object(R.jsx)(k.a,{icon:S.h})}),Object(R.jsx)("a",{style:{display:"none"},download:this.state.fileName,href:this.state.fileDownloadUrl,ref:function(e){return t.dofileDownload=e},children:"download it"})]}),Object(R.jsxs)("div",{style:{display:"inline-block",padding:"0px 5px 0px 5px"},children:[Object(R.jsx)(p.a,{style:{color:"white"},children:"Guardar XPath"}),Object(R.jsx)("button",{className:"Boton",style:{backgroundColor:"white",color:"gray"},onClick:this.downloadXPath,children:Object(R.jsx)(k.a,{icon:S.h})}),Object(R.jsx)("a",{style:{display:"none"},download:this.state.fileName,href:this.state.fileDownloadUrl,ref:function(e){return t.dofileDownload=e},children:"download it"})]}),Object(R.jsx)("button",{className:"Boton",style:{backgroundColor:"white",color:"green"},onClick:this.abrirModal,children:Object(R.jsx)(k.a,{icon:S.g})}),Object(R.jsx)("button",{className:"Boton",style:{backgroundColor:"white",color:"gray"},onClick:this.generar3D,children:Object(R.jsx)(k.a,{icon:S.a})}),Object(R.jsx)("button",{className:"Boton",style:{backgroundColor:"white",color:"gray"},onClick:this.optimizar,children:Object(R.jsx)(k.a,{icon:S.b})})]}),Object(R.jsx)("div",{})]})}),Object(R.jsx)(E.a,{item:!0,xs:1}),Object(R.jsx)(E.a,{item:!0,xs:1}),Object(R.jsx)(E.a,{item:!0,xs:5,children:Object(R.jsx)(T.a,{className:"paper",children:Object(R.jsx)(w,{language:"xml",displayName:"XML",value:this.state.xml,onChange:this.handleXML})})}),Object(R.jsx)(E.a,{item:!0,xs:5,children:Object(R.jsx)(T.a,{className:"paper",children:Object(R.jsx)(w,{language:"xquery",displayName:"XPath / XQuery",value:this.state.xpath,onChange:this.handleXPath})})}),Object(R.jsx)(E.a,{item:!0,xs:1}),Object(R.jsx)(E.a,{item:!0,xs:1}),Object(R.jsx)(E.a,{item:!0,xs:10,children:Object(R.jsx)(T.a,{className:"paper",children:Object(R.jsx)("div",{className:"row",children:Object(R.jsxs)("div",{className:"col-md-12",children:[Object(R.jsx)(b.a,{style:{fontWeight:"bold",fontFamily:"sans-serif"},children:"CONSOLA"}),Object(R.jsx)("div",{id:"consola",children:Object(R.jsx)("textarea",{id:"txtConsola",value:this.state.consoleText,name:"txtConsola",disabled:!0,className:"consola",rows:"8",style:{width:"100%"}})})]})})})}),Object(R.jsx)(E.a,{item:!0,xs:1}),Object(R.jsx)(E.a,{item:!0,xs:1}),Object(R.jsx)(E.a,{item:!0,xs:10,children:Object(R.jsx)(T.a,{className:"paper",children:Object(R.jsx)("div",{className:"row",style:{visibility:this.state.open3D?"visible":"hidden"},children:Object(R.jsxs)("div",{className:"col-md-12",children:[Object(R.jsx)(b.a,{style:{fontWeight:"bold",fontFamily:"sans-serif"},children:"C\xf3digo 3D"}),Object(R.jsx)(w,{language:"clike",displayName:"3DC",value:this.state.c3d,onChange:this.handleC3d})]})})})}),Object(R.jsx)(E.a,{item:!0,xs:1}),Object(R.jsx)(E.a,{item:!0,xs:1}),Object(R.jsx)(E.a,{item:!0,xs:10,children:Object(R.jsx)(T.a,{className:"paper",children:Object(R.jsx)("div",{className:"row",children:Object(R.jsxs)("div",{className:"col-md-12",children:[Object(R.jsx)("br",{}),Object(R.jsx)(b.a,{style:{fontWeight:"bold",fontFamily:"sans-serif"},children:"Reportes"}),Object(R.jsx)(D.a,{className:"btn bg-primary",onClick:this.reporteTablaSimbolos,children:"Tabla de Simbolos"})," |",Object(R.jsx)(D.a,{className:"btn bg-secondary",children:"AST"})," |",Object(R.jsx)(D.a,{className:"btn bg-success",onClick:this.mostrarCst,children:"CST"})," |",Object(R.jsx)(D.a,{className:"btn bg-danger",onClick:this.reporteListaErrores,children:"Lista de Errores"})," |",Object(R.jsx)(D.a,{className:"btn bg-warning",onClick:this.reporteOptimizacion,children:"Optimizacion"}),Object(R.jsx)("br",{}),Object(R.jsx)("div",{style:{borderStyle:"solid",borderRadius:"2em"},children:Object(R.jsx)(x.a,{dot:this.state.dot,options:{fit:!0,width:950,zoom:!0}})}),Object(R.jsx)("div",{className:"row",children:Object(R.jsxs)("div",{className:"col-md-12",children:[Object(R.jsx)(b.a,{style:{fontWeight:"bold",fontFamily:"sans-serif"},children:this.state.tituloRepHTML}),Object(R.jsx)("div",{id:"pnlErorres",dangerouslySetInnerHTML:{__html:this.state.reptHtml}})]})})]})})})}),Object(R.jsx)(E.a,{item:!0,xs:1}),Object(R.jsx)(E.a,{item:!0,xs:1})]})})]}),Object(R.jsx)(A.a,{in:this.state.alertOpen,style:{position:"fixed",top:"90%",left:"50%",transform:"translate(-50%, -50%)"},children:Object(R.jsx)(v.a,{action:Object(R.jsx)(d.a,{"aria-label":"close",color:"inherit",size:"small",onClick:function(){t.setState({alertOpen:!1})},children:Object(R.jsx)(O.a,{fontSize:"inherit"})}),children:"Analizado correctamente!"})}),Object(R.jsxs)(P.a,{isOpen:this.state.modalOpen,style:e,children:[Object(R.jsx)(U.a,{children:"Analizar"}),Object(R.jsx)(L.a,{children:Object(R.jsxs)("form",{onSubmit:this.formSubmit,children:[Object(R.jsx)("div",{className:"radio",children:Object(R.jsxs)("label",{children:[Object(R.jsx)("input",{type:"radio",value:"XPath",checked:"XPath"===this.state.selectedOption,onChange:this.onValueChange}),"XPath"]})}),Object(R.jsx)("div",{className:"radio",children:Object(R.jsxs)("label",{children:[Object(R.jsx)("input",{type:"radio",value:"XQuery",checked:"XQuery"===this.state.selectedOption,onChange:this.onValueChange}),"XQuery"]})})]})}),Object(R.jsxs)(C.a,{children:[Object(R.jsx)(D.a,{color:"primary",onClick:this.analizar,children:"Analizar"}),Object(R.jsx)(D.a,{color:"secondary",onClick:function(){t.setState({selectedOption:""}),t.abrirModal()},children:"Cerrar"})]})]}),Object(R.jsxs)(P.a,{isOpen:this.state.modalOpenCst,style:e,children:[Object(R.jsx)(U.a,{children:"Reporte CST"}),Object(R.jsx)(L.a,{children:Object(R.jsxs)("form",{onSubmit:this.formSubmit,children:[Object(R.jsx)("div",{className:"radio",children:Object(R.jsxs)("label",{children:[Object(R.jsx)("input",{type:"radio",value:"XPath",checked:"XPath"===this.state.selectedOption,onChange:this.onValueChange}),"XPath"]})}),Object(R.jsx)("div",{className:"radio",children:Object(R.jsxs)("label",{children:[Object(R.jsx)("input",{type:"radio",value:"XQuery",checked:"XQuery"===this.state.selectedOption,onChange:this.onValueChange}),"XQuery"]})})]})}),Object(R.jsxs)(C.a,{children:[Object(R.jsx)(D.a,{color:"primary",onClick:this.reporteCst,children:"Generar Reporte"}),Object(R.jsx)(D.a,{color:"secondary",onClick:function(){t.setState({selectedOption:""}),t.mostrarCst()},children:"Cerrar"})]})]})]})}}]),i}(s.a.Component);a.a.render(Object(R.jsx)(dt,{}),document.getElementById("root"))}],[[192,1,2]]]);
  //# sourceMappingURL=main.12ac4550.chunk.js.map