Comparing version 0.0.3 to 0.0.4
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).ModdleXML={})}(this,(function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function i(t,e){return t(e={exports:{}},e.exports),e.exports}var n=i((function(t,r){var i,n=e&&e.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.DefaultBufferLength=1024;var s=function(){function t(t,e){this.enter=t,this.leave=e,this.result=void 0}return Object.defineProperty(t.prototype,"done",{get:function(){return void 0!==this.result},enumerable:!0,configurable:!0}),t.prototype.doEnter=function(t,e,r){var i=this.enter(t,e,r);return void 0===i||(!1!==i&&(this.result=i),!1)},t}(),o=0,a=function(){function t(t){var e=(void 0===t?{}:t).deserialize;this.id=o++,this.deserialize=e||function(){throw new Error("This node type doesn't define a deserialize function")}}return t.string=function(){return new t({deserialize:function(t){return t}})},t.flag=function(){return new t({deserialize:function(){return!0}})},t.prototype.set=function(t,e){return t[this.id]=e,t},t.prototype.add=function(t){return new u(this,"function"==typeof t?t:p.match(t))},t.error=t.flag(),t.skipped=t.flag(),t.delim=t.string(),t.top=t.flag(),t.repeated=t.flag(),t}();r.NodeProp=a;var u=function(t,e){this.prop=t,this.f=e};r.NodePropSource=u;var p=function(){function t(t,e,r){this.name=t,this.props=e,this.id=r}return t.prototype.prop=function(t){return this.props[t.id]},t.match=function(t){var e=Object.create(null);for(var r in t)for(var i=0,n=r.split(" ");i<n.length;i++){var s=n[i];e[s]=t[r]}return function(t){return e[t.name]}},t.none=new t("",Object.create(null),0),t}();r.NodeType=p;var f=function(){function t(t){this.types=t;for(var e=0;e<t.length;e++)if(t[e].id!=e)throw new RangeError("Node type ids should correspond to array positions when creating a node group")}return t.prototype.extend=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];for(var i=[],n=0,s=this.types;n<s.length;n++){for(var o=s[n],a=null,u=0,f=e;u<f.length;u++){var O=f[u],h=O.f(o);if(void 0!==h){if(!a)for(var c in a=Object.create(null),o.props)a[c]=o.props[c];a[O.prop.id]=h}}i.push(a?new p(o.name,a,o.id):o)}return new t(i)},t}();r.NodeGroup=f;var O=function(){function t(){}return Object.defineProperty(t.prototype,"name",{get:function(){return this.type.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"depth",{get:function(){for(var t=0,e=this.parent;e;e=e.parent)t++;return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){for(var t=this;t.parent;)t=t.parent;return t},enumerable:!0,configurable:!0}),t.prototype.resolve=function(t,e){void 0===e&&(e=0);var r=this.resolveAt(t);if(0!=e)for(;;){var i=e<0?r.childBefore(t):r.childAfter(t);if(!i||(e<0?i.end:i.start)!=t)break;r=i}return r},Object.defineProperty(t.prototype,"firstChild",{get:function(){return this.childAfter(this.start-1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.childBefore(this.end+1)},enumerable:!0,configurable:!0}),t}();r.Subtree=O;var h=function(t){function e(e,r,i,n){var s=t.call(this)||this;return s.type=e,s.children=r,s.positions=i,s.length=n,s}return n(e,t),Object.defineProperty(e.prototype,"start",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this.length},enumerable:!0,configurable:!0}),e.prototype.toString=function(){var t=this.children.map((function(t){return t.toString()})).join();return this.name?(/\W/.test(this.name)&&!this.type.prop(a.error)?JSON.stringify(this.name):this.name)+(t.length?"("+t+")":""):t},e.prototype.partial=function(t,r,i,n,s){for(var o=0;o<this.children.length;o++){var a=this.positions[o];if(a>r)break;var u=this.children[o],p=a+u.length;p<t||(t<=a&&r>=p?(n.push(u),s.push(a+i)):u instanceof e&&u.partial(t-a,r-a,i+a,n,s))}},e.prototype.applyChanges=function(t){if(0==t.length)return this;var r=[],i=[];function n(t,e,r){for(var i=t.resolve(e),n=e;;){var s=r<0?i.childBefore(n):i.childAfter(n);if(s)return r<0?s.end-1:s.start+1;if(!i.parent)return r<0?0:1e9;n=r<0?i.start:i.end,i=i.parent}}for(var s=0,o=0,a=0;;o++){var u=o==t.length?null:t[o],f=u?n(this,u.fromA,-1):this.length;if(f>a&&this.partial(a,f,s,r,i),!u)break;a=n(this,u.toA,1),s+=u.toB-u.fromB-(u.toA-u.fromA)}return new e(p.none,r,i,this.length+s)},e.prototype.cut=function(t){if(t>=this.length)return this;for(var r=[],i=[],n=0;n<this.children.length;n++){var s=this.positions[n];if(s>=t)break;var o=this.children[n],a=s+o.length;r.push(a<=t?o:o.cut(t-s)),i.push(s)}return new e(this.type,r,i,t)},e.prototype.iterate=function(t){var e=t.from,r=void 0===e?this.start:e,i=t.to,n=void 0===i?this.end:i,o=t.enter,a=t.leave,u=new s(o,a);return this.iterInner(r,n,0,u),u.result},e.prototype.iterInner=function(t,e,r,i){if(!this.type.name||i.doEnter(this.type,r,r+this.length)){if(t<=e)for(var n=0;n<this.children.length&&!i.done;n++){var s=this.children[n],o=(a=this.positions[n]+r)+s.length;if(a>e)break;o<t||s.iterInner(t,e,a,i)}else for(n=this.children.length-1;n>=0&&!i.done;n--){var a;s=this.children[n];if((o=(a=this.positions[n]+r)+s.length)<e)break;a>t||s.iterInner(t,e,a,i)}i.leave&&this.type.name&&i.leave(this.type,r,r+this.length)}},e.prototype.resolveAt=function(t){if(c==this)for(var e=l;;){var r=e.parent;if(!r)break;if(e.start<t&&e.end>t)return e.resolve(t);e=r}return c=this,l=this.resolveInner(t,0,this)},e.prototype.childBefore=function(t){return this.findChild(t,-1,0,this)},e.prototype.childAfter=function(t){return this.findChild(t,1,0,this)},e.prototype.findChild=function(t,r,i,n){for(var s=0;s<this.children.length;s++){var o=this.positions[s]+i,a=-1;if(o>=t)if(r<0&&s>0)a=s-1;else{if(!(r>0))break;a=s}if(a<0&&(o+this.children[s].length>t||r<0&&s==this.children.length-1)&&(a=s),a>=0){var u=this.children[a],p=this.positions[a]+i;if(0==u.length&&p==t)continue;if(u instanceof e)return u.type.name?new P(u,p,n):u.findChild(t,r,p,n);var f=u.findIndex(t,r,p,0,u.buffer.length);if(f>-1)return new m(u,p,f,n)}}return null},e.prototype.resolveInner=function(t,e,r){var i=this.findChild(t,0,e,r);return i?i.resolveAt(t):r},e.prototype.append=function(t){if(t.children.length&&t.positions[0]<this.length)throw new Error("Can't append overlapping trees");return new e(this.type,this.children.concat(t.children),this.positions.concat(t.positions),t.length)},e.prototype.balance=function(t){return void 0===t&&(t=r.DefaultBufferLength),this.children.length<=v?this:x(this.type,this.children,this.positions,0,this.children.length,0,t)},e.build=function(t,e,i,n,s){return void 0===i&&(i=0),void 0===n&&(n=r.DefaultBufferLength),void 0===s&&(s=[]),b(Array.isArray(t)?new g(t,t.length):t,e,i,n,s)},e.empty=new e(p.none,[],[],0),e}(O);r.Tree=h,h.prototype.parent=null;var c=h.empty,l=h.empty,d=function(){function t(t,e,r){this.buffer=t,this.length=e,this.group=r}return t.prototype.toString=function(){for(var t=[],e=0;e<this.buffer.length;)e=this.childToString(e,t);return t.join(",")},t.prototype.childToString=function(t,e){var r=this.buffer[t],i=this.buffer[t+3],n=this.group.types[r],s=n.name;if(/\W/.test(s)&&!n.prop(a.error)&&(s=JSON.stringify(s)),i>(t+=4)){for(var o=[];t<i;)t=this.childToString(t,o);s+="("+o.join(",")+")"}return e.push(s),t},t.prototype.cut=function(e){for(var r=0;r<this.buffer.length&&this.buffer[r+1]<e;)r+=4;for(var i=new Uint16Array(r),n=0;n<r;n+=4)i[n]=this.buffer[n],i[n+1]=this.buffer[n+1],i[n+2]=Math.min(e,this.buffer[n+2]),i[n+3]=Math.min(this.buffer[n+3],r);return new t(i,Math.min(e,this.length),this.group)},t.prototype.iterInner=function(t,e,r,i){if(t<=e)for(var n=0;n<this.buffer.length;)n=this.iterChild(t,e,r,n,i);else this.iterRev(t,e,r,0,this.buffer.length,i)},t.prototype.iterChild=function(t,e,r,i,n){var s=this.group.types[this.buffer[i++]],o=this.buffer[i++]+r,a=this.buffer[i++]+r,u=this.buffer[i++];if(o>e)return this.buffer.length;if(a>=t&&n.doEnter(s,o,a)){for(;i<u&&!n.done;)i=this.iterChild(t,e,r,i,n);n.leave&&n.leave(s,o,a)}return u},t.prototype.parentNodesByEnd=function(t,e){for(var r=this,i=[],n=function(t){var e=r.buffer[t+3];if(e==t+4)return e;for(var s=t+4;s<e;)s=n(s);return i.push(t),e},s=t;s<e;)s=n(s);return i},t.prototype.iterRev=function(t,e,r,i,n,s){var o=this,a=this.parentNodesByEnd(i,n),u=-1,p=-1,f=function(){a.length>0?(u=a.pop(),p=o.buffer[u+3]):p=-1};f();t:for(var O=n;O>i&&!s.done;){for(;p==O;){var h=u,c=this.buffer[h],l=this.buffer[h+1]+r,d=this.buffer[h+2]+r;if(f(),l<=t&&d>=e&&!s.doEnter(this.group.types[c],l,d)){for(O=h;p>h;)f();continue t}}var P=this.buffer[--O],m=this.buffer[--O]+r,g=this.buffer[--O]+r,v=this.buffer[--O];g>t||m<e||(P!=O+4||s.doEnter(this.group.types[v],g,m))&&s.leave&&s.leave(this.group.types[v],g,m)}},t.prototype.findIndex=function(t,e,r,i,n){for(var s=-1,o=i,a=this.buffer;o<n;){var u=a[o+1]+r,p=a[o+2]+r,f=u==p&&u==t;if(u>=t){if(e>0&&!f)return o;break}if(p>t)return o;f||(s=o),o=a[o+3]}return e<0?s:-1},t}();r.TreeBuffer=d;var P=function(t){function e(e,r,i){var n=t.call(this)||this;return n.node=e,n.start=r,n.parent=i,n}return n(e,t),Object.defineProperty(e.prototype,"type",{get:function(){return this.node.type},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this.start+this.node.length},enumerable:!0,configurable:!0}),e.prototype.resolveAt=function(t){return t<=this.start||t>=this.end?this.parent.resolveAt(t):this.node.resolveInner(t,this.start,this)},e.prototype.childBefore=function(t){return this.node.findChild(t,-1,this.start,this)},e.prototype.childAfter=function(t){return this.node.findChild(t,1,this.start,this)},e.prototype.toString=function(){return this.node.toString()},e.prototype.iterate=function(t){var e=t.from,r=void 0===e?this.start:e,i=t.to,n=void 0===i?this.end:i,o=t.enter,a=t.leave,u=new s(o,a);return this.node.iterInner(r,n,this.start,u),u.result},e}(O),m=function(t){function e(e,r,i,n){var s=t.call(this)||this;return s.buffer=e,s.bufferStart=r,s.index=i,s.parent=n,s}return n(e,t),Object.defineProperty(e.prototype,"type",{get:function(){return this.buffer.group.types[this.buffer.buffer[this.index]]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){return this.buffer.buffer[this.index+1]+this.bufferStart},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this.buffer.buffer[this.index+2]+this.bufferStart},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endIndex",{get:function(){return this.buffer.buffer[this.index+3]},enumerable:!0,configurable:!0}),e.prototype.childBefore=function(t){var r=this.buffer.findIndex(t,-1,this.bufferStart,this.index+4,this.endIndex);return r<0?null:new e(this.buffer,this.bufferStart,r,this)},e.prototype.childAfter=function(t){var r=this.buffer.findIndex(t,1,this.bufferStart,this.index+4,this.endIndex);return r<0?null:new e(this.buffer,this.bufferStart,r,this)},e.prototype.iterate=function(t){var e=t.from,r=void 0===e?this.start:e,i=t.to,n=void 0===i?this.end:i,o=t.enter,a=t.leave,u=new s(o,a);return r<=n?this.buffer.iterChild(r,n,this.bufferStart,this.index,u):this.buffer.iterRev(r,n,this.bufferStart,this.index,this.endIndex,u),u.result},e.prototype.resolveAt=function(t){if(t<=this.start||t>=this.end)return this.parent.resolveAt(t);var r=this.buffer.findIndex(t,0,this.bufferStart,this.index+4,this.endIndex);return r<0?this:new e(this.buffer,this.bufferStart,r,this).resolveAt(t)},e.prototype.toString=function(){var t=[];return this.buffer.childToString(this.index,t),t.join("")},e}(O),g=function(){function t(t,e){this.buffer=t,this.index=e}return Object.defineProperty(t.prototype,"id",{get:function(){return this.buffer[this.index-4]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"start",{get:function(){return this.buffer[this.index-3]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this.buffer[this.index-2]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.buffer[this.index-1]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pos",{get:function(){return this.index},enumerable:!0,configurable:!0}),t.prototype.next=function(){this.index-=4},t.prototype.fork=function(){return new t(this.buffer,this.index)},t}(),v=8,y=a.repeated;function b(t,e,r,i,n){var s=e.types;function o(r,u,p,f){var O,c=t.id,l=t.start,P=t.end,m=t.size,g=l-r;if(m<0)return p.push(n[c]),f.push(g),void t.next();var b,R=s[c];if(P-l<=i&&(O=function(e,r){var n=t.fork(),o=0,a=0,u=0,p=n.end-i;t:for(var f=n.pos-e;n.pos>f;){var O=n.size,h=n.pos-O;if(O<0||h<f||n.start<p||r>-1&&n.id!=r)break;var c=s[n.id].prop(y)?4:0,l=n.start;for(n.next();n.pos>h;){if(n.size<0)break t;s[n.id].prop(y)&&(c+=4),n.next()}a=l,o+=O,u+=c}return o>4?{size:o,start:a,skip:u}:null}(t.pos-u,R.prop(y)?c:-1))){for(var k=new Uint16Array(O.size-O.skip),S=t.pos-O.size,X=k.length;t.pos>S;)X=a(O.start,k,X);b=new d(k,P-O.start,e),R.prop(y)&&(b=new h(R,[b],[0],P-O.start)),g=O.start-r}else{S=t.pos-m;t.next();for(var Q=[],$=[];t.pos>S;)o(l,S,Q,$);Q.reverse(),$.reverse(),b=new h(R,Q,$,P-l)}p.push(b),f.push(g),!R.prop(y)||0!=t.pos&&t.id==c||function(t,e,r){for(var n=t.length,s=n-1;s>0;s--){var o=t[s-1];if(!(o instanceof h)||o.type!=r)break}if(n-s<v)return;var a=e[n-1],u=x(r,t.slice(s,n).reverse(),e.slice(s,n).reverse(),0,n-s,a,i);t.length=e.length=s+1,t[s]=u,e[s]=a}(p,f,R)}function a(e,r,i){var n=t.id,o=t.start,u=t.end,p=t.size;t.next();var f=i;if(p>4)for(var O=t.pos-(p-4);t.pos>O;)i=a(e,r,i);return s[n].prop(y)||(r[--i]=f,r[--i]=u-e,r[--i]=o-e,r[--i]=n),i}for(var u=[],p=[];t.pos>0;)o(0,0,u,p);var f=u.length?p[0]+u[0].length:0;return new h(e.types[r],u.reverse(),p.reverse(),f)}function x(t,e,r,i,n,s,o){var a=r[n-1]+e[n-1].length-s;if(i==n-1&&0==s){var u=e[i];if(u instanceof h)return u}var p=[],f=[];if(a<=o)for(var O=i;O<n;O++)p.push(e[O]),f.push(r[O]-s);else{var c=Math.max(o,Math.ceil(1.5*a/v));for(O=i;O<n;){var l=O,d=r[O];for(O++;O<n;O++){if(r[O]+e[O].length-d>c)break}if(O==l+1){var P=e[l];if(P instanceof h&&P.type==t){if(P.length>c<<1){for(var m=0;m<P.children.length;m++)p.push(P.children[m]),f.push(P.positions[m]+d-s);continue}}else P=new h(t,[P],[0],P.length);p.push(P)}else p.push(x(t,e,r,l,O,d,o));f.push(d-s)}}return new h(t,p,f,a)}}));r(n);n.DefaultBufferLength,n.NodeProp,n.NodePropSource,n.NodeType,n.NodeGroup,n.Subtree,n.Tree,n.TreeBuffer;var s=i((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).ModdleXML={})}(this,(function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function i(t,e){return t(e={exports:{}},e.exports),e.exports}var n=i((function(t,r){var i,n=e&&e.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.DefaultBufferLength=1024;var s=function(){function t(t,e){this.enter=t,this.leave=e,this.result=void 0}return Object.defineProperty(t.prototype,"done",{get:function(){return void 0!==this.result},enumerable:!0,configurable:!0}),t.prototype.doEnter=function(t,e,r){var i=this.enter(t,e,r);return void 0===i||(!1!==i&&(this.result=i),!1)},t}(),o=0,a=function(){function t(t){var e=(void 0===t?{}:t).deserialize;this.id=o++,this.deserialize=e||function(){throw new Error("This node type doesn't define a deserialize function")}}return t.string=function(){return new t({deserialize:function(t){return t}})},t.flag=function(){return new t({deserialize:function(){return!0}})},t.prototype.set=function(t,e){return t[this.id]=e,t},t.prototype.add=function(t){return new O(this,"function"==typeof t?t:u.match(t))},t.error=t.flag(),t.skipped=t.flag(),t.delim=t.string(),t.top=t.flag(),t.repeated=t.flag(),t}();r.NodeProp=a;var O=function(t,e){this.prop=t,this.f=e};r.NodePropSource=O;var u=function(){function t(t,e,r){this.name=t,this.props=e,this.id=r}return t.prototype.prop=function(t){return this.props[t.id]},t.match=function(t){var e=Object.create(null);for(var r in t)for(var i=0,n=r.split(" ");i<n.length;i++){var s=n[i];e[s]=t[r]}return function(t){return e[t.name]}},t.none=new t("",Object.create(null),0),t}();r.NodeType=u;var h=function(){function t(t){this.types=t;for(var e=0;e<t.length;e++)if(t[e].id!=e)throw new RangeError("Node type ids should correspond to array positions when creating a node group")}return t.prototype.extend=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];for(var i=[],n=0,s=this.types;n<s.length;n++){for(var o=s[n],a=null,O=0,h=e;O<h.length;O++){var f=h[O],p=f.f(o);if(void 0!==p){if(!a)for(var c in a=Object.create(null),o.props)a[c]=o.props[c];a[f.prop.id]=p}}i.push(a?new u(o.name,a,o.id):o)}return new t(i)},t}();r.NodeGroup=h;var f=function(){function t(){}return Object.defineProperty(t.prototype,"name",{get:function(){return this.type.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"depth",{get:function(){for(var t=0,e=this.parent;e;e=e.parent)t++;return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){for(var t=this;t.parent;)t=t.parent;return t},enumerable:!0,configurable:!0}),t.prototype.resolve=function(t,e){void 0===e&&(e=0);var r=this.resolveAt(t);if(0!=e)for(;;){var i=e<0?r.childBefore(t):r.childAfter(t);if(!i||(e<0?i.end:i.start)!=t)break;r=i}return r},Object.defineProperty(t.prototype,"firstChild",{get:function(){return this.childAfter(this.start-1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.childBefore(this.end+1)},enumerable:!0,configurable:!0}),t}();r.Subtree=f;var p=function(t){function e(e,r,i,n){var s=t.call(this)||this;return s.type=e,s.children=r,s.positions=i,s.length=n,s}return n(e,t),Object.defineProperty(e.prototype,"start",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this.length},enumerable:!0,configurable:!0}),e.prototype.toString=function(){var t=this.children.map((function(t){return t.toString()})).join();return this.name?(/\W/.test(this.name)&&!this.type.prop(a.error)?JSON.stringify(this.name):this.name)+(t.length?"("+t+")":""):t},e.prototype.partial=function(t,r,i,n,s){for(var o=0;o<this.children.length;o++){var a=this.positions[o];if(a>r)break;var O=this.children[o],u=a+O.length;u<t||(t<=a&&r>=u?(n.push(O),s.push(a+i)):O instanceof e&&O.partial(t-a,r-a,i+a,n,s))}},e.prototype.applyChanges=function(t){if(0==t.length)return this;var r=[],i=[];function n(t,e,r){for(var i=t.resolve(e),n=e;;){var s=r<0?i.childBefore(n):i.childAfter(n);if(s)return r<0?s.end-1:s.start+1;if(!i.parent)return r<0?0:1e9;n=r<0?i.start:i.end,i=i.parent}}for(var s=0,o=0,a=0;;o++){var O=o==t.length?null:t[o],h=O?n(this,O.fromA,-1):this.length;if(h>a&&this.partial(a,h,s,r,i),!O)break;a=n(this,O.toA,1),s+=O.toB-O.fromB-(O.toA-O.fromA)}return new e(u.none,r,i,this.length+s)},e.prototype.cut=function(t){if(t>=this.length)return this;for(var r=[],i=[],n=0;n<this.children.length;n++){var s=this.positions[n];if(s>=t)break;var o=this.children[n],a=s+o.length;r.push(a<=t?o:o.cut(t-s)),i.push(s)}return new e(this.type,r,i,t)},e.prototype.iterate=function(t){var e=t.from,r=void 0===e?this.start:e,i=t.to,n=void 0===i?this.end:i,o=t.enter,a=t.leave,O=new s(o,a);return this.iterInner(r,n,0,O),O.result},e.prototype.iterInner=function(t,e,r,i){if(!this.type.name||i.doEnter(this.type,r,r+this.length)){if(t<=e)for(var n=0;n<this.children.length&&!i.done;n++){var s=this.children[n],o=(a=this.positions[n]+r)+s.length;if(a>e)break;o<t||s.iterInner(t,e,a,i)}else for(n=this.children.length-1;n>=0&&!i.done;n--){var a;s=this.children[n];if((o=(a=this.positions[n]+r)+s.length)<e)break;a>t||s.iterInner(t,e,a,i)}i.leave&&this.type.name&&i.leave(this.type,r,r+this.length)}},e.prototype.resolveAt=function(t){if(c==this)for(var e=l;;){var r=e.parent;if(!r)break;if(e.start<t&&e.end>t)return e.resolve(t);e=r}return c=this,l=this.resolveInner(t,0,this)},e.prototype.childBefore=function(t){return this.findChild(t,-1,0,this)},e.prototype.childAfter=function(t){return this.findChild(t,1,0,this)},e.prototype.findChild=function(t,r,i,n){for(var s=0;s<this.children.length;s++){var o=this.positions[s]+i,a=-1;if(o>=t)if(r<0&&s>0)a=s-1;else{if(!(r>0))break;a=s}if(a<0&&(o+this.children[s].length>t||r<0&&s==this.children.length-1)&&(a=s),a>=0){var O=this.children[a],u=this.positions[a]+i;if(0==O.length&&u==t)continue;if(O instanceof e)return O.type.name?new v(O,u,n):O.findChild(t,r,u,n);var h=O.findIndex(t,r,u,0,O.buffer.length);if(h>-1)return new g(O,u,h,n)}}return null},e.prototype.resolveInner=function(t,e,r){var i=this.findChild(t,0,e,r);return i?i.resolveAt(t):r},e.prototype.append=function(t){if(t.children.length&&t.positions[0]<this.length)throw new Error("Can't append overlapping trees");return new e(this.type,this.children.concat(t.children),this.positions.concat(t.positions),t.length)},e.prototype.balance=function(t){return void 0===t&&(t=r.DefaultBufferLength),this.children.length<=y?this:R(this.type,this.children,this.positions,0,this.children.length,0,t)},e.build=function(t,e,i,n,s){return void 0===i&&(i=0),void 0===n&&(n=r.DefaultBufferLength),void 0===s&&(s=[]),b(Array.isArray(t)?new P(t,t.length):t,e,i,n,s)},e.empty=new e(u.none,[],[],0),e}(f);r.Tree=p,p.prototype.parent=null;var c=p.empty,l=p.empty,d=function(){function t(t,e,r){this.buffer=t,this.length=e,this.group=r}return t.prototype.toString=function(){for(var t=[],e=0;e<this.buffer.length;)e=this.childToString(e,t);return t.join(",")},t.prototype.childToString=function(t,e){var r=this.buffer[t],i=this.buffer[t+3],n=this.group.types[r],s=n.name;if(/\W/.test(s)&&!n.prop(a.error)&&(s=JSON.stringify(s)),i>(t+=4)){for(var o=[];t<i;)t=this.childToString(t,o);s+="("+o.join(",")+")"}return e.push(s),t},t.prototype.cut=function(e){for(var r=0;r<this.buffer.length&&this.buffer[r+1]<e;)r+=4;for(var i=new Uint16Array(r),n=0;n<r;n+=4)i[n]=this.buffer[n],i[n+1]=this.buffer[n+1],i[n+2]=Math.min(e,this.buffer[n+2]),i[n+3]=Math.min(this.buffer[n+3],r);return new t(i,Math.min(e,this.length),this.group)},t.prototype.iterInner=function(t,e,r,i){if(t<=e)for(var n=0;n<this.buffer.length;)n=this.iterChild(t,e,r,n,i);else this.iterRev(t,e,r,0,this.buffer.length,i)},t.prototype.iterChild=function(t,e,r,i,n){var s=this.group.types[this.buffer[i++]],o=this.buffer[i++]+r,a=this.buffer[i++]+r,O=this.buffer[i++];if(o>e)return this.buffer.length;if(a>=t&&n.doEnter(s,o,a)){for(;i<O&&!n.done;)i=this.iterChild(t,e,r,i,n);n.leave&&n.leave(s,o,a)}return O},t.prototype.parentNodesByEnd=function(t,e){for(var r=this,i=[],n=function(t){var e=r.buffer[t+3];if(e==t+4)return e;for(var s=t+4;s<e;)s=n(s);return i.push(t),e},s=t;s<e;)s=n(s);return i},t.prototype.iterRev=function(t,e,r,i,n,s){var o=this,a=this.parentNodesByEnd(i,n),O=-1,u=-1,h=function(){a.length>0?(O=a.pop(),u=o.buffer[O+3]):u=-1};h();t:for(var f=n;f>i&&!s.done;){for(;u==f;){var p=O,c=this.buffer[p],l=this.buffer[p+1]+r,d=this.buffer[p+2]+r;if(h(),l<=t&&d>=e&&!s.doEnter(this.group.types[c],l,d)){for(f=p;u>p;)h();continue t}}var v=this.buffer[--f],g=this.buffer[--f]+r,P=this.buffer[--f]+r,y=this.buffer[--f];P>t||g<e||(v!=f+4||s.doEnter(this.group.types[y],P,g))&&s.leave&&s.leave(this.group.types[y],P,g)}},t.prototype.findIndex=function(t,e,r,i,n){for(var s=-1,o=i,a=this.buffer;o<n;){var O=a[o+1]+r,u=a[o+2]+r,h=O==u&&O==t;if(O>=t){if(e>0&&!h)return o;break}if(u>t)return o;h||(s=o),o=a[o+3]}return e<0?s:-1},t}();r.TreeBuffer=d;var v=function(t){function e(e,r,i){var n=t.call(this)||this;return n.node=e,n.start=r,n.parent=i,n}return n(e,t),Object.defineProperty(e.prototype,"type",{get:function(){return this.node.type},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this.start+this.node.length},enumerable:!0,configurable:!0}),e.prototype.resolveAt=function(t){return t<=this.start||t>=this.end?this.parent.resolveAt(t):this.node.resolveInner(t,this.start,this)},e.prototype.childBefore=function(t){return this.node.findChild(t,-1,this.start,this)},e.prototype.childAfter=function(t){return this.node.findChild(t,1,this.start,this)},e.prototype.toString=function(){return this.node.toString()},e.prototype.iterate=function(t){var e=t.from,r=void 0===e?this.start:e,i=t.to,n=void 0===i?this.end:i,o=t.enter,a=t.leave,O=new s(o,a);return this.node.iterInner(r,n,this.start,O),O.result},e}(f),g=function(t){function e(e,r,i,n){var s=t.call(this)||this;return s.buffer=e,s.bufferStart=r,s.index=i,s.parent=n,s}return n(e,t),Object.defineProperty(e.prototype,"type",{get:function(){return this.buffer.group.types[this.buffer.buffer[this.index]]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){return this.buffer.buffer[this.index+1]+this.bufferStart},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this.buffer.buffer[this.index+2]+this.bufferStart},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endIndex",{get:function(){return this.buffer.buffer[this.index+3]},enumerable:!0,configurable:!0}),e.prototype.childBefore=function(t){var r=this.buffer.findIndex(t,-1,this.bufferStart,this.index+4,this.endIndex);return r<0?null:new e(this.buffer,this.bufferStart,r,this)},e.prototype.childAfter=function(t){var r=this.buffer.findIndex(t,1,this.bufferStart,this.index+4,this.endIndex);return r<0?null:new e(this.buffer,this.bufferStart,r,this)},e.prototype.iterate=function(t){var e=t.from,r=void 0===e?this.start:e,i=t.to,n=void 0===i?this.end:i,o=t.enter,a=t.leave,O=new s(o,a);return r<=n?this.buffer.iterChild(r,n,this.bufferStart,this.index,O):this.buffer.iterRev(r,n,this.bufferStart,this.index,this.endIndex,O),O.result},e.prototype.resolveAt=function(t){if(t<=this.start||t>=this.end)return this.parent.resolveAt(t);var r=this.buffer.findIndex(t,0,this.bufferStart,this.index+4,this.endIndex);return r<0?this:new e(this.buffer,this.bufferStart,r,this).resolveAt(t)},e.prototype.toString=function(){var t=[];return this.buffer.childToString(this.index,t),t.join("")},e}(f),P=function(){function t(t,e){this.buffer=t,this.index=e}return Object.defineProperty(t.prototype,"id",{get:function(){return this.buffer[this.index-4]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"start",{get:function(){return this.buffer[this.index-3]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this.buffer[this.index-2]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.buffer[this.index-1]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pos",{get:function(){return this.index},enumerable:!0,configurable:!0}),t.prototype.next=function(){this.index-=4},t.prototype.fork=function(){return new t(this.buffer,this.index)},t}(),y=8,m=a.repeated;function b(t,e,r,i,n){var s=e.types;function o(r,O,u,h){var f,c=t.id,l=t.start,v=t.end,g=t.size,P=l-r;if(g<0)return u.push(n[c]),h.push(P),void t.next();var b,k=s[c];if(v-l<=i&&(f=function(e,r){var n=t.fork(),o=0,a=0,O=0,u=n.end-i;t:for(var h=n.pos-e;n.pos>h;){var f=n.size,p=n.pos-f;if(f<0||p<h||n.start<u||r>-1&&n.id!=r)break;var c=s[n.id].prop(m)?4:0,l=n.start;for(n.next();n.pos>p;){if(n.size<0)break t;s[n.id].prop(m)&&(c+=4),n.next()}a=l,o+=f,O+=c}return o>4?{size:o,start:a,skip:O}:null}(t.pos-O,k.prop(m)?c:-1))){for(var x=new Uint16Array(f.size-f.skip),S=t.pos-f.size,X=x.length;t.pos>S;)X=a(f.start,x,X);b=new d(x,v-f.start,e),k.prop(m)&&(b=new p(k,[b],[0],v-f.start)),P=f.start-r}else{S=t.pos-g;t.next();for(var w=[],$=[];t.pos>S;)o(l,S,w,$);w.reverse(),$.reverse(),b=new p(k,w,$,v-l)}u.push(b),h.push(P),!k.prop(m)||0!=t.pos&&t.id==c||function(t,e,r){for(var n=t.length,s=n-1;s>0;s--){var o=t[s-1];if(!(o instanceof p)||o.type!=r)break}if(n-s<y)return;var a=e[n-1],O=R(r,t.slice(s,n).reverse(),e.slice(s,n).reverse(),0,n-s,a,i);t.length=e.length=s+1,t[s]=O,e[s]=a}(u,h,k)}function a(e,r,i){var n=t.id,o=t.start,O=t.end,u=t.size;t.next();var h=i;if(u>4)for(var f=t.pos-(u-4);t.pos>f;)i=a(e,r,i);return s[n].prop(m)||(r[--i]=h,r[--i]=O-e,r[--i]=o-e,r[--i]=n),i}for(var O=[],u=[];t.pos>0;)o(0,0,O,u);var h=O.length?u[0]+O[0].length:0;return new p(e.types[r],O.reverse(),u.reverse(),h)}function R(t,e,r,i,n,s,o){var a=r[n-1]+e[n-1].length-s;if(i==n-1&&0==s){var O=e[i];if(O instanceof p)return O}var u=[],h=[];if(a<=o)for(var f=i;f<n;f++)u.push(e[f]),h.push(r[f]-s);else{var c=Math.max(o,Math.ceil(1.5*a/y));for(f=i;f<n;){var l=f,d=r[f];for(f++;f<n;f++){if(r[f]+e[f].length-d>c)break}if(f==l+1){var v=e[l];if(v instanceof p&&v.type==t){if(v.length>c<<1){for(var g=0;g<v.children.length;g++)u.push(v.children[g]),h.push(v.positions[g]+d-s);continue}}else v=new p(t,[v],[0],v.length);u.push(v)}else u.push(R(t,e,r,l,f,d,o));h.push(d-s)}}return new p(t,u,h,a)}}));r(n);n.DefaultBufferLength,n.NodeProp,n.NodePropSource,n.NodeType,n.NodeGroup,n.Subtree,n.Tree,n.TreeBuffer;var s=i((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}); | ||
/*! ***************************************************************************** | ||
@@ -16,2 +16,2 @@ Copyright (c) Microsoft Corporation. All rights reserved. | ||
***************************************************************************** */ | ||
var r,i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};!function(t){t[t.Unit=100]="Unit",t[t.Deduplicate=200]="Deduplicate",t[t.MaxRecoverStacks=25]="MaxRecoverStacks",t[t.TooBadToRecover=500]="TooBadToRecover",t[t.RecoverSiblingFactor=3]="RecoverSiblingFactor",t[t.MaxParallelBufferLength=800]="MaxParallelBufferLength"}(r||(r={}));var s,o=function(){function t(t,e,r,i,n,s,o,a,u){this.cx=t,this.stack=e,this.state=r,this.reducePos=i,this.pos=n,this.badness=s,this.buffer=o,this.bufferBase=a,this.parent=u}return t.prototype.toString=function(){return"["+this.stack.filter((function(t,e){return e%3==0})).concat(this.state).join(",")+"]"},t.start=function(e,r){return void 0===r&&(r=0),new t(e,[],e.parser.states[0],r,r,0,[],0,null)},t.prototype.pushState=function(t,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=t},t.prototype.reduce=function(t){var e=t>>19,r=65535&t,i=this.cx.parser;if(0==e)return r<=i.maxNode&&this.storeNode(r,this.reducePos,this.reducePos,4,!0),void this.pushState(i.getGoto(this.state,r,!0),this.reducePos);var s=this.stack.length-3*(e-1)-(262144&t?6:0),o=this.stack[s-2],a=this.stack[s-1],u=this.bufferBase+this.buffer.length-a;if(r<=i.maxNode&&(131072&t||!i.group.types[r].prop(n.NodeProp.repeated))){var p=i.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(r,o,p,u+4,!0)}if(262144&t)this.state=this.stack[s];else{var f=this.stack[s-3];this.state=i.getGoto(f,r,!0)}for(;this.stack.length>s;)this.stack.pop()},t.prototype.storeNode=function(t,e,r,i,n){if(void 0===i&&(i=4),void 0===n&&(n=!1),0==t){var s=this,o=this.buffer.length;if(0==o&&s.parent&&(o=s.bufferBase-s.parent.bufferBase,s=s.parent),o>0&&0==s.buffer[o-4]&&s.buffer[o-1]>-1){if(e==r)return;if(s.buffer[o-2]>=e)return void(s.buffer[o-2]=r)}}if(n&&this.pos!=r){var a=this.buffer.length;if(a>0&&0!=this.buffer[a-4])for(;a>0&&this.buffer[a-2]>r;)this.buffer[a]=this.buffer[a-4],this.buffer[a+1]=this.buffer[a-3],this.buffer[a+2]=this.buffer[a-2],this.buffer[a+3]=this.buffer[a-1],a-=4,i>4&&(i-=4);this.buffer[a]=t,this.buffer[a+1]=e,this.buffer[a+2]=r,this.buffer[a+3]=i}else this.buffer.push(t,e,r,i)},t.prototype.shift=function(t,e,r){if(131072&t)this.pushState(65535&t,this.pos);else if(0==(262144&t)){var i=this.pos,n=t,s=this.cx.parser;r>this.pos&&(this.badness=(this.badness>>1)+(this.badness>>2)),(r>this.pos||e<=s.maxNode)&&(this.pos=r,s.stateFlag(n,1)||(this.reducePos=r)),this.pushState(n,i),e<=s.maxNode&&this.buffer.push(e,i,r,4)}else e<=this.cx.parser.maxNode&&this.buffer.push(e,this.pos,r,4),this.pos=r},t.prototype.apply=function(t,e,r){65536&t?this.reduce(t):this.shift(t,e,r)},t.prototype.useNode=function(t,e){var r=this.cx.reused.length-1;(r<0||this.cx.reused[r]!=t)&&(this.cx.reused.push(t),r++);var i=this.pos;this.reducePos=this.pos=i+t.length,this.pushState(e,i),this.badness>>=2,this.buffer.push(r,i,this.reducePos,-1)},t.prototype.split=function(){for(var e=this,r=e.buffer.length;r>0&&e.buffer[r-2]>e.reducePos;)r-=4;for(var i=e.buffer.slice(r),n=e.bufferBase+r;e&&n==e.bufferBase;)e=e.parent;return new t(this.cx,this.stack.slice(),this.state,this.reducePos,this.pos,this.badness,i,n,e)},t.prototype.recoverByDelete=function(t,e){var r=t<=this.cx.parser.maxNode;r&&this.storeNode(t,this.pos,e),this.storeNode(0,this.pos,e,r?8:4),this.pos=this.reducePos=e,this.badness+=100},t.prototype.canShift=function(t){for(var e=new a(this);;){var r=this.cx.parser.stateSlot(e.top,4)||this.cx.parser.hasAction(e.top,t);if(0==(65536&r))return!0;if(0==r)return!1;e.reduce(r)}},Object.defineProperty(t.prototype,"ruleStart",{get:function(){var t=this.cx.parser.stateSlot(this.state,5);if(!(65536&t))return 0;var e=this.stack.length-3*(t>>19);return this.stack[e+1]},enumerable:!0,configurable:!0}),t.prototype.startOf=function(t){for(var e=this.stack.length-3;e>=0;e-=3){var r=this.cx.parser.stateSlot(this.stack[e],5);if(t.includes(65535&r)){var i=e-3*(r>>19);return this.stack[i+1]}}return-1},t.prototype.recoverByInsert=function(t){var e=this,r=this.cx.parser.nextStates(this.state);if(r.length>4){for(var i=r.filter((function(r){return r!=e.state&&e.cx.parser.hasAction(r,t)})),n=0;i.length<4&&n<r.length;n++)i.includes(r[n])||i.push(r[n]);r=i}var s=[];for(n=0;n<r.length&&s.length<4;n++)if(r[n]!=this.state){var o=this.split();o.storeNode(0,o.pos,o.pos,4,!0),o.pushState(r[n],this.pos),o.badness+=100,s.push(o)}return s},t.prototype.forceReduce=function(){var t=this.cx.parser.anyReduce(this.state);if(t>>19==0){if(0==(65536&(t=this.cx.parser.stateSlot(this.state,5))))return!1;this.storeNode(0,this.reducePos,this.reducePos,4,!0),this.badness+=100}return this.reduce(t),!0},t.prototype.compare=function(t){return this.pos-t.pos||this.badness-t.badness},t.prototype.toTree=function(){return n.Tree.build(u.create(this),this.cx.parser.group,1,this.cx.maxBufferLength,this.cx.reused)},t}();!function(t){t[t.MaxNext=4]="MaxNext"}(s||(s={}));var a=function(){function t(t){this.stack=t,this.top=t.state,this.rest=t.stack,this.offset=this.rest.length}return t.prototype.reduce=function(t){var e=65535&t,r=t>>19;0==r?(this.rest==this.stack.stack&&(this.rest=this.rest.slice()),this.rest.push(this.top,0,0),this.offset+=3):this.offset-=3*(r-1);var i=this.stack.cx.parser.getGoto(this.rest[this.offset-3],e,!0);this.top=i},t}(),u=function(){function t(t,e,r){this.stack=t,this.pos=e,this.index=r,this.buffer=t.buffer,0==this.index&&this.maybeNext()}return t.create=function(e){return new t(e,e.bufferBase+e.buffer.length,e.buffer.length)},t.prototype.maybeNext=function(){var t=this.stack.parent;null!=t&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)},Object.defineProperty(t.prototype,"id",{get:function(){return this.buffer[this.index-4]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"start",{get:function(){return this.buffer[this.index-3]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this.buffer[this.index-2]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.buffer[this.index-1]},enumerable:!0,configurable:!0}),t.prototype.next=function(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()},t.prototype.fork=function(){return new t(this.stack,this.pos,this.index)},t}(),p=function(){function t(){this.start=-1,this.value=-1,this.end=-1}return t.prototype.accept=function(t,e){this.value=t,this.end=e},t}(),f=function(){function t(t,e){void 0===e&&(e=t.length),this.string=t,this.length=e}return t.prototype.get=function(t){return t<0||t>=this.length?-1:this.string.charCodeAt(t)},t.prototype.read=function(t,e){return this.string.slice(t,Math.min(this.length,e))},t.prototype.clip=function(e){return new t(this.string,e)},t}(),O=function(){function t(t,e){this.data=t,this.id=e}return t.prototype.token=function(t,e,r){!function(t,e,r,i,n){var s=0,o=1<<n;t:for(var a=r.start;0!=(o&t[s]);){for(var u=t[s+1],p=s+3;p<u;p+=2)if((t[p+1]&o)>0){var f=t[p];if(-1==r.value||r.value==f||i.cx.parser.overrides(f,r.value)){r.accept(f,a);break}}for(var O=e.get(a++),h=0,c=t[s+2];h<c;){var l=h+c>>1,d=u+l+(l<<1),P=t[d],m=t[d+1];if(O<P)c=l;else{if(!(O>=m)){s=t[d+2];continue t}h=l+1}}break}}(this.data,t,e,r,this.id)},t}();O.prototype.contextual=!1;var h=function(t,e){void 0===e&&(e={}),this.token=t,this.contextual=e&&e.contextual||!1};function c(t,e){void 0===e&&(e=Uint16Array);for(var r=null,i=0,n=0;i<t.length;){for(var s=0;;){var o=t.charCodeAt(i++),a=!1;if(126==o){s=65535;break}o>=92&&o--,o>=34&&o--;var u=o-32;if(u>=46&&(u-=46,a=!0),s+=u,a)break;s*=46}r?r[n++]=s:r=new e(s)}return r}var l="undefined"!=typeof process&&/\bparse\b/.test(process.env.LOG),d=function(){function t(t){this.start=[0],this.index=[0],this.nextStart=0,this.trees=[t]}return t.prototype.nodeAt=function(t){if(t<this.nextStart)return null;for(;;){var e=this.trees.length-1;if(e<0)return this.nextStart=1e9,null;var r=this.trees[e],i=this.index[e];if(i!=r.children.length){var s=r.children[i],o=this.start[e]+r.positions[i];if(s instanceof n.TreeBuffer)this.index[e]++,this.nextStart=o+s.length;else{if(o>=t)return o==t?s:null;this.index[e]++,o+s.length>=t&&(this.trees.push(s),this.start.push(o),this.index.push(0))}}else this.trees.pop(),this.start.pop(),this.index.pop()}},t}(),P=function(t){function e(e){var r=t.call(this)||this;return r.tokenizer=e,r.extended=-1,r.mask=0,r}return function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(e,t),e.prototype.clear=function(t){this.start=t,this.value=this.extended=-1},e}(p),m=new p,g=function(){function t(){this.tokens=[],this.mainToken=m,this.actions=[]}return t.prototype.getActions=function(t,e){for(var r=0,i=null,n=t.cx.parser,s=n.tokenizers,o=0;o<s.length;o++)if(0!=(1<<o&n.stateSlot(t.state,3))){for(var a=s[o],u=void 0,p=0,f=this.tokens;p<f.length;p++){var O=f[p];if(O.tokenizer==a){u=O;break}}u||this.tokens.push(u=new P(a));var h=n.stateSlot(t.state,3);(a.contextual||u.start!=t.pos||u.mask!=h)&&(this.updateCachedToken(u,t,e),u.mask=h);var c=r;if(u.extended>-1&&(r=this.addActions(t,u.extended,u.end,r)),(r=this.addActions(t,u.value,u.end,r))>c){i=u;break}i&&0==u.value||(i=u)}for(;this.actions.length>r;)this.actions.pop();return i||((i=m).start=t.pos,t.pos==e.length?i.accept(t.cx.parser.eofTerm,t.pos):i.accept(0,t.pos+1)),this.mainToken=i,this.actions},t.prototype.updateCachedToken=function(t,e,r){if(t.clear(e.pos),t.tokenizer.token(r,t,e),t.value>-1){var i=e.cx.parser,n=R(i.data,i.specializeTable,t.value);if(n>=0){var s=i.specializations[n][r.read(t.start,t.end)];null!=s&&(0==(1&s)?t.value=s>>1:t.extended=s>>1)}}else e.pos==r.length?t.accept(e.cx.parser.eofTerm,e.pos):t.accept(0,e.pos+1)},t.prototype.putAction=function(t,e,r,i){for(var n=0;n<i;n+=3)if(this.actions[n]==t)return i;return this.actions[i++]=t,this.actions[i++]=e,this.actions[i++]=r,i},t.prototype.addActions=function(t,e,r,i){for(var n=t.state,s=t.cx.parser,o=s.data,a=0;a<2;a++)for(var u=s.stateSlot(n,a?2:1),p=void 0;65535!=(p=o[u]);u+=3)(p==e||0==p&&0==i)&&(i=this.putAction(o[u+1]|o[u+2]<<16,e,r,i));return i},t}(),v=function(t,e,r,i,n){void 0===i&&(i=null),void 0===n&&(n=-1),this.parser=t,this.maxBufferLength=e,this.input=r,this.parent=i,this.wrapType=n,this.reused=[],this.tokens=new g},y=function(){function t(t,e,r){var i=void 0===r?{}:r,s=i.cache,a=void 0===s?void 0:s,u=i.strict,p=void 0!==u&&u,f=i.bufferLength,O=void 0===f?n.DefaultBufferLength:f;this.stacks=[o.start(new v(t,O,e))],this.strict=p,this.cache=a?new d(a):null}return t.prototype.takeStack=function(t){void 0===t&&(t=0);var e=this.stacks,r=e[t],i=e.pop();if(0==e.length)return r;e[t]=i;for(var n=t;;){var s=1+(n<<1);if(s>=e.length)break;var o=e[s];if(s+1<e.length&&o.compare(e[s+1])>=0&&(o=e[s+1],s++),i.compare(o)<0)break;e[s]=i,e[n]=o,n=s}return r},t.prototype.putStack=function(t){if(t.badness>=200)for(var e=0;e<this.stacks.length;e++){var r=this.stacks[e];if(r.state==t.state&&r.pos==t.pos){var i=t.badness-r.badness||t.stack.length-r.stack.length;if(i<0)return this.stacks[e]=t,!0;if(i>=0)return!1}}else if(0==t.badness&&this.stacks.length&&t.buffer.length>800){if(this.stacks.reduce((function(t,e){return Math.max(t,e.buffer.length)}),0)>t.buffer.length)return!1}for(var n=this.stacks.push(t)-1;n>0;){var s=n>>1,o=this.stacks[s];if(t.compare(o)>=0)break;this.stacks[n]=o,this.stacks[s]=t,n=s}return!0},t.prototype.advance=function(){var t=this.takeStack(),e=t.pos,r=t.cx,i=r.input,s=r.parser,a=l?t+" -> ":"";if(this.cache)for(var u=this.cache.nodeAt(e);u;){var p=s.group.types[u.type.id]==u.type?s.getGoto(t.state,u.type.id):-1;if(p>-1&&!S(u))return t.useNode(u,p),l&&console.log(a+t+" (via reuse of "+s.getName(u.type.id)+")"),this.putStack(t),null;if(0==u.children.length||u.positions[0]>0)break;var f=u.children[0];if(!(f instanceof n.Tree))break;u=f}var O=s.startNested(t.state);t:if(O>-1){var h=s.nested[O],c=h.grammar,d=h.end,P=h.placeholder,m=void 0,g=null,y=void 0,b=void 0;if("function"==typeof c){var x=c(i,t);if(x.stay)break t;g=x.parseNode,y=x.parser,m=x.filterEnd,b=x.wrapType}else y=c;var R=this.scanForNestEnd(t,d,m),k=t.cx.input.clip(R);if(g||!y){var X=g?g(k,t.pos):n.Tree.empty;X.length!=R-t.pos&&(X=new n.Tree(X.type,X.children,X.positions,R-t.pos)),null!=b&&(X=new n.Tree(s.group.types[b],[X],[0],X.length)),t.useNode(X,s.getGoto(t.state,P,!0)),this.putStack(t)}else{var Q=o.start(new v(y,t.cx.maxBufferLength,k,t,b),t.pos);l&&console.log(a+Q+" (nested)"),this.putStack(Q)}return null}var $=s.stateSlot(t.state,4);if($>0)return t.reduce($),this.putStack(t),l&&console.log(a+t+" (via always-reduce "+s.getName(65535&$)+")"),null;for(var q=t.cx.tokens.getActions(t,i),w=0;w<q.length;){var T=q[w++],j=q[w++],N=q[w++],Z=w==q.length?t:t.split();Z.apply(T,j,N),l&&console.log(a+Z+" (via "+(0==(65536&T)?"shift":"reduce of "+s.getName(65535&T))+" for "+s.getName(j)+" @ "+e+(Z==t?"":", split")+")"),this.putStack(Z)}if(q.length>0)return null;if(e==i.length)return!s.stateFlag(t.state,2)&&t.forceReduce()?(l&&console.log(a+t+" (via forced reduction at eof)"),this.putStack(t),null):t.cx.parent?(this.putStack(this.finishNested(t)),null):t.toTree();var U=this.stacks.reduce((function(t,e){return Math.min(t,e.badness)}),1e9);if(U<=t.badness&&(this.stacks.length>=25||t.badness>Math.min(500,3*U)))return null;var z=t.cx.tokens.mainToken,E=z.end,_=z.value;if(this.strict){if(this.stacks.length)return null;throw new SyntaxError("No parse at "+e+" with "+s.getName(_)+" (stack is "+t+")")}for(var W=0,V=t.recoverByInsert(_);W<V.length;W++){var C=V[W];l&&console.log(a+C+" (via recover-insert)"),this.putStack(C)}var I=t.split();if(I.forceReduce()&&(l&&console.log(a+I+" (via force-reduce)"),this.putStack(I)),E==e){if(e==i.length)return null;E++,_=0}return t.recoverByDelete(_,E),l&&console.log(a+t+" (via recover-delete "+s.getName(_)+")"),this.putStack(t),null},Object.defineProperty(t.prototype,"pos",{get:function(){return this.stacks[0].pos},enumerable:!0,configurable:!0}),t.prototype.forceFinish=function(){for(var t=this.stacks[0].split();!t.cx.parser.stateFlag(t.state,2)&&t.forceReduce(););return t.toTree()},t.prototype.scanForNestEnd=function(t,e,r){for(var i=t.cx.input,n=t.pos;n<i.length;n++)if(m.start=n,m.value=-1,e.token(i,m,t),m.value>-1&&(!r||r(i.read(n,m.end))))return n;return i.length},t.prototype.finishNested=function(t){var e=t.cx.parent,r=t.toTree(),i=e.cx.parser,s=i.nested[i.startNested(e.state)];r=new n.Tree(r.type,r.children,r.positions.map((function(t){return t-e.pos})),t.pos-e.pos),t.cx.wrapType>-1&&(r=new n.Tree(i.group.types[t.cx.wrapType],[r],[0],r.length)),e.useNode(r,i.getGoto(e.state,s.placeholder,!0)),l&&console.log(e+" (via unnest "+(t.cx.wrapType>-1?i.getName(t.cx.wrapType):r.type.name)+")");for(var o=0;o<this.stacks.length;)this.stacks[o].cx.parent==e?this.takeStack(o):o++;return e},t}(),b=function(){function t(t,e,r,i,n,s,o,a,u,p){void 0===p&&(p=null),this.states=t,this.data=e,this.goto=r,this.group=i,this.tokenizers=n,this.nested=s,this.specializeTable=o,this.specializations=a,this.tokenPrecTable=u,this.termNames=p,this.nextStateCache=[],this.maxNode=this.group.types.length-1;for(var f=0,O=this.states.length/6;f<O;f++)this.nextStateCache[f]=null}return t.prototype.parse=function(t,e){"string"==typeof t&&(t=new f(t));for(var r=new y(this,t,e);;){var i=r.advance();if(i)return i}},t.prototype.startParse=function(t,e){return new y(this,t,e)},t.prototype.getGoto=function(t,e,r){void 0===r&&(r=!1);var i=this.goto;if(e>=i[0])return-1;for(var n=i[e+1];;){var s=i[n++],o=1&s,a=i[n++];if(o&&r)return a;for(var u=n+(s>>1);n<u;n++)if(i[n]==t)return a;if(o)return-1}},t.prototype.hasAction=function(t,e){for(var r=this.data,i=0;i<2;i++)for(var n=this.stateSlot(t,i?2:1),s=void 0;65535!=(s=r[n]);n+=3)if(s==e||0==s)return r[n+1]|r[n+2]<<16;return 0},t.prototype.stateSlot=function(t,e){return this.states[6*t+e]},t.prototype.stateFlag=function(t,e){return(this.stateSlot(t,0)&e)>0},t.prototype.startNested=function(t){var e=this.stateSlot(t,0);return 4&e?e>>10:-1},t.prototype.anyReduce=function(t){var e=this.stateSlot(t,4);if(e>0)return e;for(var r=this.stateSlot(t,1);;r+=3){if(65535==this.data[r])return 0;var i=this.data[r+2];if(1&i)return this.data[r+1]|i<<16}},t.prototype.nextStates=function(t){var e=this.nextStateCache[t];if(e)return e;for(var r=[],i=this.stateSlot(t,1);65535!=this.data[i];i+=3)0!=(1&this.data[i+2])||r.includes(this.data[i+1])||r.push(this.data[i+1]);for(var n=this.goto,s=n[0],o=0;o<s;o++)for(var a=n[o+1];;){for(var u=n[a++],p=n[a++],f=a+(u>>1);a<f;a++)n[a]!=t||r.includes(p)||r.push(p);if(1&u)break}return this.nextStateCache[t]=r},t.prototype.overrides=function(t,e){var r=R(this.data,this.tokenPrecTable,e);return r<0||R(this.data,this.tokenPrecTable,t)<r},t.prototype.withNested=function(e){return new t(this.states,this.data,this.goto,this.group,this.tokenizers,this.nested.map((function(t){return Object.prototype.hasOwnProperty.call(e,t.name)?{name:t.name,grammar:e[t.name],end:t.end,placeholder:t.placeholder}:t})),this.specializeTable,this.specializations,this.tokenPrecTable,this.termNames)},t.prototype.withProps=function(){for(var e,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new t(this.states,this.data,this.goto,(e=this.group).extend.apply(e,r),this.tokenizers,this.nested,this.specializeTable,this.specializations,this.tokenPrecTable,this.termNames)},t.prototype.getName=function(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.group.types[t].name||t)},Object.defineProperty(t.prototype,"eofTerm",{get:function(){return this.maxNode+1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasNested",{get:function(){return this.nested.length>0},enumerable:!0,configurable:!0}),t.deserialize=function(e){for(var r=c(e.tokenData),i=e.nodeNames.split(" "),s=0;s<e.repeatNodeCount;s++)i.push("");var o=[];for(s=0;s<i.length;s++)o.push(x);function a(t,e,r){o[t]==x&&(o[t]=Object.create(null)),e.set(o[t],e.deserialize(r))}a(0,n.NodeProp.error,"");for(s=o.length-e.repeatNodeCount;s<o.length;s++)a(s,n.NodeProp.repeated,"");if(e.nodeProps)for(var u=0,p=e.nodeProps;u<p.length;u++){var f=p[u],h=f[0];for(s=1;s<f.length;s+=2)a(f[s],h,f[s+1])}var l=new n.NodeGroup(i.map((function(t,e){return new n.NodeType(t,o[e],e)})));return new t(c(e.states,Uint32Array),c(e.stateData),c(e.goto),l,e.tokenizers.map((function(t){return"number"==typeof t?new O(r,t):t})),(e.nested||[]).map((function(t){var e=t[0],r=t[1],i=t[2],n=t[3];return{name:e,grammar:r,end:new O(c(i),0),placeholder:n}})),e.specializeTable,(e.specializations||[]).map(k),e.tokenPrec,e.termNames)},t}(),x=Object.create(null);function R(t,e,r){for(var i=e,n=void 0;65535!=(n=t[i]);i++)if(n==r)return i-e;return-1}function k(t){if(!(t instanceof Object))return t;var e=Object.create(null);for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function S(t){var e=!1,r=!1,i=0==t.type.id;return i||t.iterate({enter:function(t){return e||(0==t.id?i=e=!0:void 0)},leave:function(t){e=!0}}),i||t.iterate({from:t.length,to:0,enter:function(t){return r||(0==t.id?i=r=!0:void 0)},leave:function(t){r=!0}}),i}e.NodeGroup=n.NodeGroup,e.NodeProp=n.NodeProp,e.NodeType=n.NodeType,e.Subtree=n.Subtree,e.Tree=n.Tree,e.ExternalTokenizer=h,e.ParseContext=y,e.Parser=b,e.Stack=o,e.Token=p,e.TokenGroup=O}));r(s);s.NodeGroup;var o=s.NodeProp,a=(s.NodeType,s.Subtree,s.Tree,s.ExternalTokenizer,s.ParseContext,s.Parser);s.Stack,s.Token,s.TokenGroup;function u(t,e,r,i){this.start=t,this.startValue=e,this.endValue=r,this.end=i,this.includes=t=>this.includesFrom(t)&&this.includesTo(t),this.includesFrom=t=>{["(","]"].includes(this.start),this.start},this.includesTo=t=>{[")","["].includes(this.end),this.end}}const p=new function(t){this.parser=t,this.unaryTest=(t,e,r)=>(r={...r,INPUT:t},this.evaluate(`INPUT in ${e}`,r)),this.evaluate=(e,r)=>{const i=t.parse(e),n={args:[]},s=[n];return i.iterate({enter(t,e,r){s.push({args:[]})},leave(t,r,i){const n=s.pop();s[s.length-1].args.push(function(t,e,r){switch(t.name){case"ArithOp":return t=>{switch(e){case"+":return(e,r)=>e(t)+r(t);case"-":return(e,r)=>e(t)-r(t);case"*":return(e,r)=>e(t)*r(t);case"/":return(e,r)=>e(t)/r(t);case"**":case"^":return(e,r)=>e(t)^r(t)}};case"CompareOp":return t=>{switch(e){case">":return e=>r=>r(t)>e(t);case">=":return e=>r=>r(t)>=e(t);case"<":return e=>r=>r(t)<e(t);case"<=":return e=>r=>r(t)<=e(t);case"=":return e=>r=>r(t)==e(t);case"!=":return e=>r=>r(t)!=e(t)}};case"null":return t=>null;case"Disjunction":return t=>{const e=r[0](t),i=r[2](t);return!(!e&&!i)};case"Conjunction":return t=>{const e=r[0](t),i=r[2](t);return!(!e||!i)};case"Context":return t=>r.map(e=>e(t)).reduce((t,[e,r])=>(t[e]=r,t),{});case"ContextEntry":return t=>{return["function"==typeof r[0]?r[0](t):r[0],r[1](t)]};case"Key":return r[0];case"QualifiedName":return t=>(function(t,e){return e[t]})(r.join("."),t);case"Name":return e;case"and":return null;case"InTester":return t=>e=>r=>{const i=e(t);return(Array.isArray(i)?i:[i]).every(t=>(function(t,e){if("function"==typeof t)return t(e);return r=>t==e(r)})(t,r))};case"InExtractor":return t=>(e,r)=>{const i=r(t);if(!Array.isArray(i))throw new Error("<a> in <b> must target <b> : Collection");return i.map(t=>({[e]:t}))};case"IterationContext":return t=>{const e=r[0](t),i=r[1]&&r[1](t);return i?function(t,e){if("number"==typeof t&&"number"==typeof e){return function(t,e=0){const r=[...Array(t).keys()].map(t=>t+e);return r.__isRange=!0,r}(e-t+1,t)}throw new Error("unsupported range")}(e,i):e};case"Type":return r[0];case"InExpressions":return t=>{return function(t){const e=(t,r,...i)=>r?e(((t,e)=>[].concat(...t.map(t=>e.map(e=>[].concat(t,e)))))(t,r),...i):t;return e(...t)}(r.map(e=>e(t))).map(t=>Array.isArray(t)?Object.assign({},...t):t)};case"InExpression":return t=>{const[e,i,n]=r;return i(t)(e,n)};case"InstanceOf":return t=>{return r[0](t)instanceof r[1](t)};case"every":return t=>(e,r)=>{return e(t).every(t=>r(t))};case"some":return t=>(e,r)=>{return e(t).some(t=>r(t))};case"between":return t=>(e,r,i)=>r(t)<=e(t)<=i(t);case"NumericLiteral":return t=>e.includes(".")?parseFloat(e):parseInt(e);case"BooleanLiteral":return t=>"true"===e;case"StringLiteral":return t=>e.slice(1,-1);case"PositionalParameters":return t=>r;case"FunctionInvocation":return t=>r[0](t)(...r[1](t).map(e=>e(t)));case"IfExpression":return t=>{const[e,i,n,s,o,a]=r;return i(t)?s(t):a(t)};case"Parameters":return r[0];case"Comparison":return t=>{const[e,i,n,s,o]=r;return 5===r.length?i(t)(e,n,o):i(t)(n)(e)};case"QuantifiedExpression":return t=>{return r[0](t)(r[1],r[3])};case"ForExpression":return t=>{const e=r[r.length-1];return r[1](t).map(t=>e(t))};case"UnaryExpression":return t=>{return r[0](t)(()=>0,r[1])};case"ArithmeticExpression":return t=>{const[e,i,n]=r;return i(t)(e,n)};case"PositiveUnaryTest":return r[0];case"PositiveUnaryTests":return t=>r.map(e=>e(t));case"PathExpression":return t=>{const e=r[0](t),i=r[1];return Array.isArray(e)?e.map(t=>t[i]):e[i]};case"FilterExpression":return t=>{return r[0](t).filter(e=>{return r[1]({...t,...e})})};case"SuperSimplePositiveUnaryTest":return t=>1===r.length?function(t){if("function"==typeof t)return t;if("number"==typeof t)return e=>e===t&&e;if(t instanceof u)return e=>t.includes(e);throw new Error(`unexpected value: ${t}`)}(r[0](t)):r[0](t)(r[1]);case"List":return t=>r.map(e=>e(t));case"Interval":return new u(r[0],r[1],r[3],r[4]);case"Script":return t=>r[r.length-1](t)}}(t,e.slice(r,i),n.args))}}),n.args[n.args.length-1](r)}}(a.deserialize({states:"6[OSOPOOO!`OPO(3BQOSOPO'#DRO$[OPO'#DUOROP'#E_'#E_OROP'#E^'#E^O&pOPO'#DeOSOPO'#D{O'QOPO'#DfO&pOPO'#DdOROP'#Dd'#DdOROP'#D{'#D{O(aOPO'#DkOROP'#Ea'#EaOROP'#Dz'#DzQSOPOOO(kOPO'#C^OSOPO'#CgO(oOPO'#CkO(sOPO'#DgOSOPO,59aO(wOPO,59aOSOPO,59hOSOPO,59hOSOPO,59hO*TOPO,59nO*XOPO,59qOSOPO,59rO*]OPO'#DYOROP,59s,59sOSOPO,59]OSOPO,59_OROP'#Cy'#CyOSOPO,59aO+lOPO,59mO.QOPO'#EUO0fOPO'#DrOROP,59p,59pOROP'#E`'#E`O0jOPO,5:PO0nOPO'#DXO1kOPO'#E^O2tOPO'#D{O3}OPO,5:gO4}OPO'#EbO6QOPO,5:QOROP,5:O,5:OOROP'#Dm'#DmO6UOPO'#DlO6YOPO'#EfO6aOPO,5:VOROP,5:Y,5:YO6eOPO'#CbO6iOPO'#CaO6pOPO,58xO6tOPO,59RO6eOPO'#CoO7tOPO'#CnO7{OPO,59VO8POPO,5:RO8WOPO1G.{O:lOPO'#CzOROP1G.{1G.{OSOPO1G.{O=QOPO1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then else QuantifiedExpression some every InExpressions InExpression satisfies Disjunction or Conjunction and Comparison CompareOp CompareOp between InTester PositiveUnaryTest PositiveUnaryTests ArithmeticExpression ArithOp ArithOp ArithOp ArithOp UnaryExpression InstanceOf Type QualifiedName PathExpression FilterExpression FunctionInvocation Parameters NamedParameters ParameterName PositionalParameters null NumericLiteral StringLiteral BooleanLiteral DateTimeLiteral ? SuperSimplePositiveUnaryTest Interval List FunctionDefinition function FormalParameter external Context ContextEntry Key",nodeProps:[[o.top,1,!0]],repeatNodeCount:9,tokenData:"8R~R{XY#xY^#xpq#xqr$mrs$xxy%Zyz%`z{%e{|%r|}%w}!O%|!O!P'Q!P!Q'b!Q![&g![!]'g!^!_'l!_!`$s!`!a'y!a!b(R!c!}(R!}#O)X#P#Q)^#Q#R%m#R#S(R#T#W(R#W#X)c#X#Y(R#Y#Z,m#Z#](R#]#^/|#^#h(R#h#i5s#i#o(R#o#p7w#q#r7|#y#z#x$f$g#x#BY#BZ#x$IS$I_#x$I|$JO#x$JT$JU#x$KV$KW#x&FU&FV#x~#}Y!m~X^#xpq#x#y#z#x$f$g#x#BY#BZ#x$IS$I_#x$I|$JO#x$JT$JU#x$KV$KW#x&FU&FV#x~$pP!_!`$s~$xOj~~${ROr$xrs%Us~$x~%ZO!S~~%`O!t~~%eO!v~~%jPs~z{%m~%rOt~~%wOq~~%|O!r~~&RQr~!O!P&X!Q![&g~&[P!Q![&_~&dP!R~!Q![&_~&lQ!R~!O!P&r!Q![&g~&uP!Q![&x~&}P!R~!Q![&x~'VQ!y~!O!P']!Q![&_~'bO!p~~'gOs~~'lO!}~~'qPk~!_!`'t~'yOk~~(OPk~!_!`'t~(WVR~!Q![(m!a!b(m!c!}(m#R#S(m#T#o(m1p4U(m$Je$Jg(m~(rVR~!Q![(m!a!b(m!c!}(m#R#S(m#T#o(m1p4U(m$Je$Jg(m~)^O!z~~)cO!{~~)hWR~!Q![(m!a!b(m!c!}(m#R#S(m#T#U*Q#U#o(m1p4U(m$Je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~5eP#c#d5h~5kP#Y#Z5n~5sO!w~~5xXR~!Q![(m!a!b(m!c!}(m#R#S(m#T#f(m#f#g6e#g#o(m1p4U(m$Je$Jg(m~6jXR~!Q![(m!a!b(m!c!}(m#R#S(m#T#i(m#i#j7V#j#o(m1p4U(m$Je$Jg(m~7[XR~!Q![(m!a!b(m!c!}(m#R#S(m#T#X(m#X#Y/`#Y#o(m1p4U(m$Je$Jg(m~7|O#X~~8RO#[~",tokenizers:[0],specializeTable:3247,specializations:[{for:8,in:16,return:20,if:24,then:26,else:28,some:32,every:34,satisfies:40,or:44,and:48,between:56,null:96,"?":106,function:116,external:120}],tokenPrec:3239,termNames:{0:"⚠",1:"@top",2:"ForExpression",3:"Name",4:'Name/"for"',5:"InExpressions<IterationContext>",6:"InExpression<IterationContext>",7:"InExtractor",8:'Name/"in"',9:"IterationContext",10:'Name/"return"',11:"IfExpression",12:'Name/"if"',13:'Name/"then"',14:'Name/"else"',15:"QuantifiedExpression",16:'Name/"some"',17:'Name/"every"',18:"InExpressions<expression>",19:"InExpression<expression>",20:'Name/"satisfies"',21:"Disjunction",22:'Name/"or"',23:"Conjunction",24:'Name/"and"',25:"Comparison",26:'CompareOp<"=" | "!=">',27:"CompareOp<Gt | Gte | Lt | Lte>",28:'Name/"between"',29:"InTester",30:"PositiveUnaryTest",31:"PositiveUnaryTests",32:"ArithmeticExpression",33:'ArithOp<"+">',34:"Minus",35:'ArithOp<"*" | "/">',36:'ArithOp<"^" | "**">',37:"UnaryExpression",38:"InstanceOf",39:"Type",40:"QualifiedName",41:"PathExpression",42:"FilterExpression",43:"FunctionInvocation",44:"Parameters",45:"NamedParameters",46:"ParameterName",47:"PositionalParameters",48:'Name/"null"',49:"NumericLiteral",50:"StringLiteral",51:"BooleanLiteral",52:"DateTimeLiteral",53:'Name/"?"',54:"SuperSimplePositiveUnaryTest",55:"Interval",56:"List",57:"FunctionDefinition",58:'Name/"function"',59:"FormalParameter",60:'Name/"external"',61:"Context",62:"ContextEntry",63:"Key",64:"expression+",65:'("," InExpression<IterationContext>)*',66:'("," InExpression<expression>)*',67:'("," PositiveUnaryTest)*',68:'("." Name)*',69:'("," ParameterName ":" expression)*',70:'("," expression)*',71:'("," FormalParameter)*',72:'("," ContextEntry)*',73:"␄",74:"%mainskip",75:"whitespace",76:"expression",77:"textualExpression",78:'".."',79:'("," InExpression<IterationContext>)*-wrap',80:'","',81:'("," InExpression<expression>)*-wrap',82:'"("',83:'("," PositiveUnaryTest)*-wrap',84:'")"',85:"instanceOf",86:'("." Name)*-wrap',87:'"."',88:'"["',89:'"]"',90:'commaSep1<ParameterName ":" expression>',91:'":"',92:'("," ParameterName ":" expression)*-wrap',93:'("," expression)*-wrap',94:"literal",95:"simpleLiteral",96:"endpoint",97:"boxedExpression",98:"commaSep<expression>",99:"commaSep<FormalParameter>",100:'("," FormalParameter)*-wrap',101:'"{"',102:"commaSep<ContextEntry>",103:'("," ContextEntry)*-wrap',104:'"}"'}}));t.evaluate=function(t,e){return p.evaluate(t,e)},t.unaryTest=function(t,e,r){return p.unaryTest(t,e,r)},Object.defineProperty(t,"__esModule",{value:!0})})); | ||
var r,i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};!function(t){t[t.Unit=100]="Unit",t[t.Deduplicate=200]="Deduplicate",t[t.MaxRecoverStacks=25]="MaxRecoverStacks",t[t.TooBadToRecover=500]="TooBadToRecover",t[t.RecoverSiblingFactor=3]="RecoverSiblingFactor",t[t.MaxParallelBufferLength=800]="MaxParallelBufferLength"}(r||(r={}));var s,o=function(){function t(t,e,r,i,n,s,o,a,O){this.cx=t,this.stack=e,this.state=r,this.reducePos=i,this.pos=n,this.badness=s,this.buffer=o,this.bufferBase=a,this.parent=O}return t.prototype.toString=function(){return"["+this.stack.filter((function(t,e){return e%3==0})).concat(this.state).join(",")+"]"},t.start=function(e,r){return void 0===r&&(r=0),new t(e,[],e.parser.states[0],r,r,0,[],0,null)},t.prototype.pushState=function(t,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=t},t.prototype.reduce=function(t){var e=t>>19,r=65535&t,i=this.cx.parser;if(0==e)return r<=i.maxNode&&this.storeNode(r,this.reducePos,this.reducePos,4,!0),void this.pushState(i.getGoto(this.state,r,!0),this.reducePos);var s=this.stack.length-3*(e-1)-(262144&t?6:0),o=this.stack[s-2],a=this.stack[s-1],O=this.bufferBase+this.buffer.length-a;if(r<=i.maxNode&&(131072&t||!i.group.types[r].prop(n.NodeProp.repeated))){var u=i.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(r,o,u,O+4,!0)}if(262144&t)this.state=this.stack[s];else{var h=this.stack[s-3];this.state=i.getGoto(h,r,!0)}for(;this.stack.length>s;)this.stack.pop()},t.prototype.storeNode=function(t,e,r,i,n){if(void 0===i&&(i=4),void 0===n&&(n=!1),0==t){var s=this,o=this.buffer.length;if(0==o&&s.parent&&(o=s.bufferBase-s.parent.bufferBase,s=s.parent),o>0&&0==s.buffer[o-4]&&s.buffer[o-1]>-1){if(e==r)return;if(s.buffer[o-2]>=e)return void(s.buffer[o-2]=r)}}if(n&&this.pos!=r){var a=this.buffer.length;if(a>0&&0!=this.buffer[a-4])for(;a>0&&this.buffer[a-2]>r;)this.buffer[a]=this.buffer[a-4],this.buffer[a+1]=this.buffer[a-3],this.buffer[a+2]=this.buffer[a-2],this.buffer[a+3]=this.buffer[a-1],a-=4,i>4&&(i-=4);this.buffer[a]=t,this.buffer[a+1]=e,this.buffer[a+2]=r,this.buffer[a+3]=i}else this.buffer.push(t,e,r,i)},t.prototype.shift=function(t,e,r){if(131072&t)this.pushState(65535&t,this.pos);else if(0==(262144&t)){var i=this.pos,n=t,s=this.cx.parser;r>this.pos&&(this.badness=(this.badness>>1)+(this.badness>>2)),(r>this.pos||e<=s.maxNode)&&(this.pos=r,s.stateFlag(n,1)||(this.reducePos=r)),this.pushState(n,i),e<=s.maxNode&&this.buffer.push(e,i,r,4)}else e<=this.cx.parser.maxNode&&this.buffer.push(e,this.pos,r,4),this.pos=r},t.prototype.apply=function(t,e,r){65536&t?this.reduce(t):this.shift(t,e,r)},t.prototype.useNode=function(t,e){var r=this.cx.reused.length-1;(r<0||this.cx.reused[r]!=t)&&(this.cx.reused.push(t),r++);var i=this.pos;this.reducePos=this.pos=i+t.length,this.pushState(e,i),this.badness>>=2,this.buffer.push(r,i,this.reducePos,-1)},t.prototype.split=function(){for(var e=this,r=e.buffer.length;r>0&&e.buffer[r-2]>e.reducePos;)r-=4;for(var i=e.buffer.slice(r),n=e.bufferBase+r;e&&n==e.bufferBase;)e=e.parent;return new t(this.cx,this.stack.slice(),this.state,this.reducePos,this.pos,this.badness,i,n,e)},t.prototype.recoverByDelete=function(t,e){var r=t<=this.cx.parser.maxNode;r&&this.storeNode(t,this.pos,e),this.storeNode(0,this.pos,e,r?8:4),this.pos=this.reducePos=e,this.badness+=100},t.prototype.canShift=function(t){for(var e=new a(this);;){var r=this.cx.parser.stateSlot(e.top,4)||this.cx.parser.hasAction(e.top,t);if(0==(65536&r))return!0;if(0==r)return!1;e.reduce(r)}},Object.defineProperty(t.prototype,"ruleStart",{get:function(){var t=this.cx.parser.stateSlot(this.state,5);if(!(65536&t))return 0;var e=this.stack.length-3*(t>>19);return this.stack[e+1]},enumerable:!0,configurable:!0}),t.prototype.startOf=function(t){for(var e=this.stack.length-3;e>=0;e-=3){var r=this.cx.parser.stateSlot(this.stack[e],5);if(t.includes(65535&r)){var i=e-3*(r>>19);return this.stack[i+1]}}return-1},t.prototype.recoverByInsert=function(t){var e=this,r=this.cx.parser.nextStates(this.state);if(r.length>4){for(var i=r.filter((function(r){return r!=e.state&&e.cx.parser.hasAction(r,t)})),n=0;i.length<4&&n<r.length;n++)i.includes(r[n])||i.push(r[n]);r=i}var s=[];for(n=0;n<r.length&&s.length<4;n++)if(r[n]!=this.state){var o=this.split();o.storeNode(0,o.pos,o.pos,4,!0),o.pushState(r[n],this.pos),o.badness+=100,s.push(o)}return s},t.prototype.forceReduce=function(){var t=this.cx.parser.anyReduce(this.state);if(t>>19==0){if(0==(65536&(t=this.cx.parser.stateSlot(this.state,5))))return!1;this.storeNode(0,this.reducePos,this.reducePos,4,!0),this.badness+=100}return this.reduce(t),!0},t.prototype.compare=function(t){return this.pos-t.pos||this.badness-t.badness},t.prototype.toTree=function(){return n.Tree.build(O.create(this),this.cx.parser.group,1,this.cx.maxBufferLength,this.cx.reused)},t}();!function(t){t[t.MaxNext=4]="MaxNext"}(s||(s={}));var a=function(){function t(t){this.stack=t,this.top=t.state,this.rest=t.stack,this.offset=this.rest.length}return t.prototype.reduce=function(t){var e=65535&t,r=t>>19;0==r?(this.rest==this.stack.stack&&(this.rest=this.rest.slice()),this.rest.push(this.top,0,0),this.offset+=3):this.offset-=3*(r-1);var i=this.stack.cx.parser.getGoto(this.rest[this.offset-3],e,!0);this.top=i},t}(),O=function(){function t(t,e,r){this.stack=t,this.pos=e,this.index=r,this.buffer=t.buffer,0==this.index&&this.maybeNext()}return t.create=function(e){return new t(e,e.bufferBase+e.buffer.length,e.buffer.length)},t.prototype.maybeNext=function(){var t=this.stack.parent;null!=t&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)},Object.defineProperty(t.prototype,"id",{get:function(){return this.buffer[this.index-4]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"start",{get:function(){return this.buffer[this.index-3]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this.buffer[this.index-2]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.buffer[this.index-1]},enumerable:!0,configurable:!0}),t.prototype.next=function(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()},t.prototype.fork=function(){return new t(this.stack,this.pos,this.index)},t}(),u=function(){function t(){this.start=-1,this.value=-1,this.end=-1}return t.prototype.accept=function(t,e){this.value=t,this.end=e},t}(),h=function(){function t(t,e){void 0===e&&(e=t.length),this.string=t,this.length=e}return t.prototype.get=function(t){return t<0||t>=this.length?-1:this.string.charCodeAt(t)},t.prototype.read=function(t,e){return this.string.slice(t,Math.min(this.length,e))},t.prototype.clip=function(e){return new t(this.string,e)},t}(),f=function(){function t(t,e){this.data=t,this.id=e}return t.prototype.token=function(t,e,r){!function(t,e,r,i,n){var s=0,o=1<<n;t:for(var a=r.start;0!=(o&t[s]);){for(var O=t[s+1],u=s+3;u<O;u+=2)if((t[u+1]&o)>0){var h=t[u];if(-1==r.value||r.value==h||i.cx.parser.overrides(h,r.value)){r.accept(h,a);break}}for(var f=e.get(a++),p=0,c=t[s+2];p<c;){var l=p+c>>1,d=O+l+(l<<1),v=t[d],g=t[d+1];if(f<v)c=l;else{if(!(f>=g)){s=t[d+2];continue t}p=l+1}}break}}(this.data,t,e,r,this.id)},t}();f.prototype.contextual=!1;var p=function(t,e){void 0===e&&(e={}),this.token=t,this.contextual=e&&e.contextual||!1};function c(t,e){void 0===e&&(e=Uint16Array);for(var r=null,i=0,n=0;i<t.length;){for(var s=0;;){var o=t.charCodeAt(i++),a=!1;if(126==o){s=65535;break}o>=92&&o--,o>=34&&o--;var O=o-32;if(O>=46&&(O-=46,a=!0),s+=O,a)break;s*=46}r?r[n++]=s:r=new e(s)}return r}var l="undefined"!=typeof process&&/\bparse\b/.test(process.env.LOG),d=function(){function t(t){this.start=[0],this.index=[0],this.nextStart=0,this.trees=[t]}return t.prototype.nodeAt=function(t){if(t<this.nextStart)return null;for(;;){var e=this.trees.length-1;if(e<0)return this.nextStart=1e9,null;var r=this.trees[e],i=this.index[e];if(i!=r.children.length){var s=r.children[i],o=this.start[e]+r.positions[i];if(s instanceof n.TreeBuffer)this.index[e]++,this.nextStart=o+s.length;else{if(o>=t)return o==t?s:null;this.index[e]++,o+s.length>=t&&(this.trees.push(s),this.start.push(o),this.index.push(0))}}else this.trees.pop(),this.start.pop(),this.index.pop()}},t}(),v=function(t){function e(e){var r=t.call(this)||this;return r.tokenizer=e,r.extended=-1,r.mask=0,r}return function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(e,t),e.prototype.clear=function(t){this.start=t,this.value=this.extended=-1},e}(u),g=new u,P=function(){function t(){this.tokens=[],this.mainToken=g,this.actions=[]}return t.prototype.getActions=function(t,e){for(var r=0,i=null,n=t.cx.parser,s=n.tokenizers,o=0;o<s.length;o++)if(0!=(1<<o&n.stateSlot(t.state,3))){for(var a=s[o],O=void 0,u=0,h=this.tokens;u<h.length;u++){var f=h[u];if(f.tokenizer==a){O=f;break}}O||this.tokens.push(O=new v(a));var p=n.stateSlot(t.state,3);(a.contextual||O.start!=t.pos||O.mask!=p)&&(this.updateCachedToken(O,t,e),O.mask=p);var c=r;if(O.extended>-1&&(r=this.addActions(t,O.extended,O.end,r)),(r=this.addActions(t,O.value,O.end,r))>c){i=O;break}i&&0==O.value||(i=O)}for(;this.actions.length>r;)this.actions.pop();return i||((i=g).start=t.pos,t.pos==e.length?i.accept(t.cx.parser.eofTerm,t.pos):i.accept(0,t.pos+1)),this.mainToken=i,this.actions},t.prototype.updateCachedToken=function(t,e,r){if(t.clear(e.pos),t.tokenizer.token(r,t,e),t.value>-1){var i=e.cx.parser,n=k(i.data,i.specializeTable,t.value);if(n>=0){var s=i.specializations[n][r.read(t.start,t.end)];null!=s&&(0==(1&s)?t.value=s>>1:t.extended=s>>1)}}else e.pos==r.length?t.accept(e.cx.parser.eofTerm,e.pos):t.accept(0,e.pos+1)},t.prototype.putAction=function(t,e,r,i){for(var n=0;n<i;n+=3)if(this.actions[n]==t)return i;return this.actions[i++]=t,this.actions[i++]=e,this.actions[i++]=r,i},t.prototype.addActions=function(t,e,r,i){for(var n=t.state,s=t.cx.parser,o=s.data,a=0;a<2;a++)for(var O=s.stateSlot(n,a?2:1),u=void 0;65535!=(u=o[O]);O+=3)(u==e||0==u&&0==i)&&(i=this.putAction(o[O+1]|o[O+2]<<16,e,r,i));return i},t}(),y=function(t,e,r,i,n){void 0===i&&(i=null),void 0===n&&(n=-1),this.parser=t,this.maxBufferLength=e,this.input=r,this.parent=i,this.wrapType=n,this.reused=[],this.tokens=new P},m=function(){function t(t,e,r){var i=void 0===r?{}:r,s=i.cache,a=void 0===s?void 0:s,O=i.strict,u=void 0!==O&&O,h=i.bufferLength,f=void 0===h?n.DefaultBufferLength:h;this.stacks=[o.start(new y(t,f,e))],this.strict=u,this.cache=a?new d(a):null}return t.prototype.takeStack=function(t){void 0===t&&(t=0);var e=this.stacks,r=e[t],i=e.pop();if(0==e.length)return r;e[t]=i;for(var n=t;;){var s=1+(n<<1);if(s>=e.length)break;var o=e[s];if(s+1<e.length&&o.compare(e[s+1])>=0&&(o=e[s+1],s++),i.compare(o)<0)break;e[s]=i,e[n]=o,n=s}return r},t.prototype.putStack=function(t){if(t.badness>=200)for(var e=0;e<this.stacks.length;e++){var r=this.stacks[e];if(r.state==t.state&&r.pos==t.pos){var i=t.badness-r.badness||t.stack.length-r.stack.length;if(i<0)return this.stacks[e]=t,!0;if(i>=0)return!1}}else if(0==t.badness&&this.stacks.length&&t.buffer.length>800){if(this.stacks.reduce((function(t,e){return Math.max(t,e.buffer.length)}),0)>t.buffer.length)return!1}for(var n=this.stacks.push(t)-1;n>0;){var s=n>>1,o=this.stacks[s];if(t.compare(o)>=0)break;this.stacks[n]=o,this.stacks[s]=t,n=s}return!0},t.prototype.advance=function(){var t=this.takeStack(),e=t.pos,r=t.cx,i=r.input,s=r.parser,a=l?t+" -> ":"";if(this.cache)for(var O=this.cache.nodeAt(e);O;){var u=s.group.types[O.type.id]==O.type?s.getGoto(t.state,O.type.id):-1;if(u>-1&&!S(O))return t.useNode(O,u),l&&console.log(a+t+" (via reuse of "+s.getName(O.type.id)+")"),this.putStack(t),null;if(0==O.children.length||O.positions[0]>0)break;var h=O.children[0];if(!(h instanceof n.Tree))break;O=h}var f=s.startNested(t.state);t:if(f>-1){var p=s.nested[f],c=p.grammar,d=p.end,v=p.placeholder,g=void 0,P=null,m=void 0,b=void 0;if("function"==typeof c){var R=c(i,t);if(R.stay)break t;P=R.parseNode,m=R.parser,g=R.filterEnd,b=R.wrapType}else m=c;var k=this.scanForNestEnd(t,d,g),x=t.cx.input.clip(k);if(P||!m){var X=P?P(x,t.pos):n.Tree.empty;X.length!=k-t.pos&&(X=new n.Tree(X.type,X.children,X.positions,k-t.pos)),null!=b&&(X=new n.Tree(s.group.types[b],[X],[0],X.length)),t.useNode(X,s.getGoto(t.state,v,!0)),this.putStack(t)}else{var w=o.start(new y(m,t.cx.maxBufferLength,x,t,b),t.pos);l&&console.log(a+w+" (nested)"),this.putStack(w)}return null}var $=s.stateSlot(t.state,4);if($>0)return t.reduce($),this.putStack(t),l&&console.log(a+t+" (via always-reduce "+s.getName(65535&$)+")"),null;for(var q=t.cx.tokens.getActions(t,i),Q=0;Q<q.length;){var T=q[Q++],j=q[Q++],U=q[Q++],W=Q==q.length?t:t.split();W.apply(T,j,U),l&&console.log(a+W+" (via "+(0==(65536&T)?"shift":"reduce of "+s.getName(65535&T))+" for "+s.getName(j)+" @ "+e+(W==t?"":", split")+")"),this.putStack(W)}if(q.length>0)return null;if(e==i.length)return!s.stateFlag(t.state,2)&&t.forceReduce()?(l&&console.log(a+t+" (via forced reduction at eof)"),this.putStack(t),null):t.cx.parent?(this.putStack(this.finishNested(t)),null):t.toTree();var _=this.stacks.reduce((function(t,e){return Math.min(t,e.badness)}),1e9);if(_<=t.badness&&(this.stacks.length>=25||t.badness>Math.min(500,3*_)))return null;var N=t.cx.tokens.mainToken,Z=N.end,V=N.value;if(this.strict){if(this.stacks.length)return null;throw new SyntaxError("No parse at "+e+" with "+s.getName(V)+" (stack is "+t+")")}for(var E=0,Y=t.recoverByInsert(V);E<Y.length;E++){var z=Y[E];l&&console.log(a+z+" (via recover-insert)"),this.putStack(z)}var A=t.split();if(A.forceReduce()&&(l&&console.log(a+A+" (via force-reduce)"),this.putStack(A)),Z==e){if(e==i.length)return null;Z++,V=0}return t.recoverByDelete(V,Z),l&&console.log(a+t+" (via recover-delete "+s.getName(V)+")"),this.putStack(t),null},Object.defineProperty(t.prototype,"pos",{get:function(){return this.stacks[0].pos},enumerable:!0,configurable:!0}),t.prototype.forceFinish=function(){for(var t=this.stacks[0].split();!t.cx.parser.stateFlag(t.state,2)&&t.forceReduce(););return t.toTree()},t.prototype.scanForNestEnd=function(t,e,r){for(var i=t.cx.input,n=t.pos;n<i.length;n++)if(g.start=n,g.value=-1,e.token(i,g,t),g.value>-1&&(!r||r(i.read(n,g.end))))return n;return i.length},t.prototype.finishNested=function(t){var e=t.cx.parent,r=t.toTree(),i=e.cx.parser,s=i.nested[i.startNested(e.state)];r=new n.Tree(r.type,r.children,r.positions.map((function(t){return t-e.pos})),t.pos-e.pos),t.cx.wrapType>-1&&(r=new n.Tree(i.group.types[t.cx.wrapType],[r],[0],r.length)),e.useNode(r,i.getGoto(e.state,s.placeholder,!0)),l&&console.log(e+" (via unnest "+(t.cx.wrapType>-1?i.getName(t.cx.wrapType):r.type.name)+")");for(var o=0;o<this.stacks.length;)this.stacks[o].cx.parent==e?this.takeStack(o):o++;return e},t}(),b=function(){function t(t,e,r,i,n,s,o,a,O,u){void 0===u&&(u=null),this.states=t,this.data=e,this.goto=r,this.group=i,this.tokenizers=n,this.nested=s,this.specializeTable=o,this.specializations=a,this.tokenPrecTable=O,this.termNames=u,this.nextStateCache=[],this.maxNode=this.group.types.length-1;for(var h=0,f=this.states.length/6;h<f;h++)this.nextStateCache[h]=null}return t.prototype.parse=function(t,e){"string"==typeof t&&(t=new h(t));for(var r=new m(this,t,e);;){var i=r.advance();if(i)return i}},t.prototype.startParse=function(t,e){return new m(this,t,e)},t.prototype.getGoto=function(t,e,r){void 0===r&&(r=!1);var i=this.goto;if(e>=i[0])return-1;for(var n=i[e+1];;){var s=i[n++],o=1&s,a=i[n++];if(o&&r)return a;for(var O=n+(s>>1);n<O;n++)if(i[n]==t)return a;if(o)return-1}},t.prototype.hasAction=function(t,e){for(var r=this.data,i=0;i<2;i++)for(var n=this.stateSlot(t,i?2:1),s=void 0;65535!=(s=r[n]);n+=3)if(s==e||0==s)return r[n+1]|r[n+2]<<16;return 0},t.prototype.stateSlot=function(t,e){return this.states[6*t+e]},t.prototype.stateFlag=function(t,e){return(this.stateSlot(t,0)&e)>0},t.prototype.startNested=function(t){var e=this.stateSlot(t,0);return 4&e?e>>10:-1},t.prototype.anyReduce=function(t){var e=this.stateSlot(t,4);if(e>0)return e;for(var r=this.stateSlot(t,1);;r+=3){if(65535==this.data[r])return 0;var i=this.data[r+2];if(1&i)return this.data[r+1]|i<<16}},t.prototype.nextStates=function(t){var e=this.nextStateCache[t];if(e)return e;for(var r=[],i=this.stateSlot(t,1);65535!=this.data[i];i+=3)0!=(1&this.data[i+2])||r.includes(this.data[i+1])||r.push(this.data[i+1]);for(var n=this.goto,s=n[0],o=0;o<s;o++)for(var a=n[o+1];;){for(var O=n[a++],u=n[a++],h=a+(O>>1);a<h;a++)n[a]!=t||r.includes(u)||r.push(u);if(1&O)break}return this.nextStateCache[t]=r},t.prototype.overrides=function(t,e){var r=k(this.data,this.tokenPrecTable,e);return r<0||k(this.data,this.tokenPrecTable,t)<r},t.prototype.withNested=function(e){return new t(this.states,this.data,this.goto,this.group,this.tokenizers,this.nested.map((function(t){return Object.prototype.hasOwnProperty.call(e,t.name)?{name:t.name,grammar:e[t.name],end:t.end,placeholder:t.placeholder}:t})),this.specializeTable,this.specializations,this.tokenPrecTable,this.termNames)},t.prototype.withProps=function(){for(var e,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new t(this.states,this.data,this.goto,(e=this.group).extend.apply(e,r),this.tokenizers,this.nested,this.specializeTable,this.specializations,this.tokenPrecTable,this.termNames)},t.prototype.getName=function(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.group.types[t].name||t)},Object.defineProperty(t.prototype,"eofTerm",{get:function(){return this.maxNode+1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasNested",{get:function(){return this.nested.length>0},enumerable:!0,configurable:!0}),t.deserialize=function(e){for(var r=c(e.tokenData),i=e.nodeNames.split(" "),s=0;s<e.repeatNodeCount;s++)i.push("");var o=[];for(s=0;s<i.length;s++)o.push(R);function a(t,e,r){o[t]==R&&(o[t]=Object.create(null)),e.set(o[t],e.deserialize(r))}a(0,n.NodeProp.error,"");for(s=o.length-e.repeatNodeCount;s<o.length;s++)a(s,n.NodeProp.repeated,"");if(e.nodeProps)for(var O=0,u=e.nodeProps;O<u.length;O++){var h=u[O],p=h[0];for(s=1;s<h.length;s+=2)a(h[s],p,h[s+1])}var l=new n.NodeGroup(i.map((function(t,e){return new n.NodeType(t,o[e],e)})));return new t(c(e.states,Uint32Array),c(e.stateData),c(e.goto),l,e.tokenizers.map((function(t){return"number"==typeof t?new f(r,t):t})),(e.nested||[]).map((function(t){var e=t[0],r=t[1],i=t[2],n=t[3];return{name:e,grammar:r,end:new f(c(i),0),placeholder:n}})),e.specializeTable,(e.specializations||[]).map(x),e.tokenPrec,e.termNames)},t}(),R=Object.create(null);function k(t,e,r){for(var i=e,n=void 0;65535!=(n=t[i]);i++)if(n==r)return i-e;return-1}function x(t){if(!(t instanceof Object))return t;var e=Object.create(null);for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function S(t){var e=!1,r=!1,i=0==t.type.id;return i||t.iterate({enter:function(t){return e||(0==t.id?i=e=!0:void 0)},leave:function(t){e=!0}}),i||t.iterate({from:t.length,to:0,enter:function(t){return r||(0==t.id?i=r=!0:void 0)},leave:function(t){r=!0}}),i}e.NodeGroup=n.NodeGroup,e.NodeProp=n.NodeProp,e.NodeType=n.NodeType,e.Subtree=n.Subtree,e.Tree=n.Tree,e.ExternalTokenizer=p,e.ParseContext=m,e.Parser=b,e.Stack=o,e.Token=u,e.TokenGroup=f}));r(s);s.NodeGroup;var o=s.NodeProp,a=(s.NodeType,s.Subtree,s.Tree,s.ExternalTokenizer,s.ParseContext,s.Parser);s.Stack,s.Token,s.TokenGroup;function O(t,e,r,i){this.start=t,this.startValue=e,this.endValue=r,this.end=i,this.includes=t=>this.includesFrom(t)&&this.includesTo(t),this.includesFrom=t=>["(","]"].includes(this.start)?t>this.startValue:t>=this.startValue,this.includesTo=t=>[")","["].includes(this.end)?t<this.endValue:t<=this.endValue}const u=new function(t){this.parser=t,this.unaryTest=(t,e,r)=>(r={...r,INPUT:t},this.evaluate(`INPUT in (${e})`,r)),this.evaluate=(e,r)=>{const i=t.parse(e),n={args:[]},s=[n];return i.iterate({enter(t,e,r){s.push({args:[]})},leave(t,r,i){const n=s.pop();s[s.length-1].args.push(function(t,e,r){switch(t.name){case"ArithOp":return t=>{switch(e){case"+":return(e,r)=>e(t)+r(t);case"-":return(e,r)=>e(t)-r(t);case"*":return(e,r)=>e(t)*r(t);case"/":return(e,r)=>e(t)/r(t);case"**":case"^":return(e,r)=>e(t)^r(t)}};case"CompareOp":return t=>{switch(e){case">":return e=>r=>r(t)>e(t);case">=":return e=>r=>r(t)>=e(t);case"<":return e=>r=>r(t)<e(t);case"<=":return e=>r=>r(t)<=e(t);case"=":return e=>r=>r(t)==e(t);case"!=":return e=>r=>r(t)!=e(t)}};case"null":return t=>null;case"Disjunction":return t=>{const e=r[0](t),i=r[2](t);return!(!e&&!i)};case"Conjunction":return t=>{const e=r[0](t),i=r[2](t);return!(!e||!i)};case"Context":return t=>r.slice(1,-1).map(e=>e(t)).reduce((t,[e,r])=>(t[e]=r,t),{});case"ContextEntry":return t=>{return["function"==typeof r[0]?r[0](t):r[0],r[1](t)]};case"Key":return r[0];case"QualifiedName":return t=>(function(t,e){return e[t]})(r.join("."),t);case"Name":return e;case"and":return null;case"InTester":return t=>e=>r=>{const i=e(t);return(Array.isArray(i)?i:[i]).every(t=>(function(t,e){if("function"==typeof t)return t(e);return r=>t==e(r)})(t,r))};case"InExtractor":return t=>(e,r)=>{const i=r(t);if(!Array.isArray(i))throw new Error("<a> in <b> must target <b> : Collection");return i.map(t=>({[e]:t}))};case"IterationContext":return t=>{const e=r[0](t),i=r[1]&&r[1](t);return i?function(t,e){if("number"==typeof t&&"number"==typeof e){return function(t,e=0){const r=[...Array(t).keys()].map(t=>t+e);return r.__isRange=!0,r}(e-t+1,t)}throw new Error("unsupported range")}(e,i):e};case"Type":return r[0];case"InExpressions":return t=>{return function(t){const e=(t,r,...i)=>r?e(((t,e)=>[].concat(...t.map(t=>e.map(e=>[].concat(t,e)))))(t,r),...i):t;return e(...t)}(r.map(e=>e(t))).map(t=>Array.isArray(t)?Object.assign({},...t):t)};case"InExpression":return t=>{const[e,i,n]=r;return i(t)(e,n)};case"InstanceOf":return t=>{return r[0](t)instanceof r[1](t)};case"every":return t=>(e,r)=>{return e(t).every(t=>r(t))};case"some":return t=>(e,r)=>{return e(t).some(t=>r(t))};case"between":return t=>(e,r,i)=>r(t)<=e(t)<=i(t);case"NumericLiteral":return t=>e.includes(".")?parseFloat(e):parseInt(e);case"BooleanLiteral":return t=>"true"===e;case"StringLiteral":return t=>e.slice(1,-1);case"PositionalParameters":return t=>r;case"FunctionInvocation":return t=>r[0](t)(...r[1](t).map(e=>e(t)));case"IfExpression":return t=>{const[e,i,n,s,o,a]=r;return i(t)?s(t):a(t)};case"Parameters":return 3===r.length?r[1]:t=>[];case"(":return"(";case")":return")";case"[":return"[";case"]":return"]";case"{":return"{";case"}":return"}";case"Comparison":return t=>5===r.length?"("===r[2]?r[1](t)(r[3])(r[0]):r[1](t)(r[0],r[2],r[4]):r[1](t)(r[2])(r[0]);case"QuantifiedExpression":return t=>{return r[0](t)(r[1],r[3])};case"ForExpression":return t=>{const e=r[r.length-1];return r[1](t).map(t=>e(t))};case"UnaryExpression":return t=>{return r[0](t)(()=>0,r[1])};case"ArithmeticExpression":return t=>{const[e,i,n]=r;return i(t)(e,n)};case"PositiveUnaryTest":return r[0];case"PositiveUnaryTests":return t=>r.map(e=>e(t));case"ParenthesizedExpression":return r[1];case"PathExpression":return t=>{const e=r[0](t),i=r[1];return Array.isArray(e)?e.map(t=>t[i]):e[i]};case"FilterExpression":return t=>{return r[0](t).filter(e=>{return r[2]({...t,...e})})};case"SuperSimplePositiveUnaryTest":return t=>1===r.length?r[0](t):r[0](t)(r[1]);case"List":return t=>r.slice(1,-1).map(e=>e(t));case"Interval":return t=>{const e=new O(r[0],r[1](t),r[2](t),r[3]);return r=>e.includes(r(t))};case"Script":return t=>r[r.length-1](t)}}(t,e.slice(r,i),n.args))}}),n.args[n.args.length-1](r)}}(a.deserialize({states:"6[OSOPOOO!`OPO(3BXOSOPO'#DTO$[OPO'#DWOROP'#Eb'#EbOROP'#Ea'#EaO&pOPO'#DiOSOPO'#DjO'QOPO'#DkO&pOPO'#DhOROP'#Dh'#DhOROP'#ES'#ESO(aOPO'#DpOROP'#Ed'#EdOROP'#ER'#ERQSOPOOO(kOPO'#C^OSOPO'#CgO(oOPO'#CkO(sOPO'#DlOSOPO,59aO(wOPO,59aOSOPO,59jOSOPO,59jOSOPO,59jO*TOPO,59pO*XOPO,59sOSOPO,59tO*]OPO'#D^OROP,59w,59wOSOPO,59]OSOPO,59_OROP'#Cy'#CyOSOPO,59aO+lOPO,59oO.QOPO'#EZO0fOPO'#DyOROP,59r,59rOROP'#Ec'#EcO0jOPO,5:TO0nOPO'#D]O1kOPO'#EaO2tOPO'#ESO3}OPO,5:UO4}OPO'#EeO6QOPO,5:VOROP,5:S,5:SOROP'#Ds'#DsO6UOPO'#DrO6YOPO'#EhO6aOPO,5:[OROP,5:a,5:aO6eOPO'#CbO6iOPO'#CaO6pOPO,58xO6tOPO,59RO6eOPO'#CoO7tOPO'#CnO7{OPO,59VO8POPO,5:WO8WOPO1G.{O:lOPO'#CzOROP1G.{1G.{OSOPO1G.{O=QOPO1G/UO?fOPO1G/UOAzOPO1G/UOROP'#DV'#DVOROP1G/[1G/[OROP1G/_1G/_OD`OPO1G/`OE`OPO'#DaOFcOPO'#D`OGiOPO'#E]OROP'#D_'#D_OROP,59x,59xOGmOPO,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uXf!uXh!uXj!uXk!uXl!uXo!uXs!uXt!uXu!uXv!uX}!uX!|!uX#O!uX~WpOfnOhoOjdOkdOlqOolOsfOtfOugOvhO}kO!y!wO!|iO#OjO!O#SP~!O!yO~#Q!zO~!y!|O!h#]P~!h#OO~W#QO~!y#SOY!xP~Y#UO~WpO]#VOfnOhoOjdOkdOlqOolOsfOtfOugOvhO}kO!|iO#OjO~!y#YOd!zP~d#[O~R#]Oq#YP~olOsfOtfOugOvhO}kO!|iO#OjORiiSiiWii[ii`iiaiifiihiijiikiilii!Oii!Uii!Vii!Wii!Xii!Yii!Zii!aii!eii!riiqii!yii]ii!hiiYii!wii^iidii~WpOfnOhoOjdOkdOlqOolOsfOtfOugOvhO}kO!|iO#OjORnXSnX[nX`nXanX!OnX!UnX!VnX!WnX!XnX!YnX!ZnX!anX!enX!rnXqnX!ynX]nX!hnXYnX!wnX^nXdnX~olOugOvhO}kO!|iO#OjORriSriWri[ri`riarifrihrijrikrilrisritri!Ori!Uri!Vri!Wri!Xri!Yri!Zri!ari!eri!rriqri!yri]ri!hriYri!wri^ridri~olOvhO}kO!|iO#OjORriSriWri[ri`riarifrihrijrikrilrisritriuri!Ori!Uri!Vri!Wri!Xri!Yri!Zri!ari!eri!rriqri!yri]ri!hriYri!wri^ridri~olO}kO!|iO#OjORriSriWri[ri`riarifrihrijrikrilrisritriurivri!Ori!Uri!Vri!Wri!Xri!Yri!Zri!ari!eri!rriqri!yri]ri!hriYri!wri^ridri~WpOfnOhoOjdOkdOlqOolOsfOtfOugOvhO}kO!O#cO!|iO#OjO~WpOfnOhoOjdOkdOlqOolOsfOtfOugOvhO}kO!y!wO!|iO#OjOq#SP~#OtOW!}Pf!}Ph!}Pj!}Pk!}Pl!}Po!}Pq!}Ps!}Pt!}Pu!}Pv!}P}!}P!y!}P!|!}P#Q!SX~#Q#eO~q#fO~WpOhoOjdOkdOlqOolOsfOtfOugOvhO}kO!|iO#OjOReiSei[ei`eiaeifei!Oei!Uei!Vei!W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V$[$gUvUX!tSzVWT!ei#x!XmPrx|!X!^!_!b!c!d!h!i!o!p!q#j#k#n#r#t#w$R$S$Z$b$d$hR!nlQ!klS#^!]#zR$f$`!cYOQVW_adefghklnoq!a!w!z#P#U#V#W#[#e#g#|$P$U$V$[$g!c]OQVW_adefghklnoq!a!w!z#P#U#V#W#[#e#g#|$P$U$V$[$gQ#_!]R$Y#zQ!R[R#m!|T!Q[!|Q_OR!T_Q#R!VR#p#RQ#X!ZR#u#XQ$O#bR$]$OSsR!jR!rsQ$_$RR$e$_S!v|!iR#i!vQ#y#_R$X#yQ!{!RR#l!{SPO_QrQQxVQ|WQ!XaQ!^dU!_e!a$PQ!bfQ!cgQ!dhQ!hkQ!ilQ!onQ!poQ!qqQ#j!wQ#k!zQ#n#PQ#r#UQ#s#VQ#t#WQ#w#[Q$R#eQ$S#gQ$Z#|Q$b$UQ$c$VQ$d$[R$h$g!`^OQW_adefghklnoq!a!w!z#P#U#V#W#[#e#g#|$P$U$V$[$gR{VR#T!VR#Z!ZR$Q#bTuR!jR!llR$a$RQ!x|R#d!i!^TOQ_adefghklnoq!a!w!z#P#U#V#W#[#e#g#|$P$U$V$[$gUvUX!tTyVWUwUVWQ!OXR#h!t!c^OQVW_adefghklnoq!a!w!z#P#U#V#W#[#e#g#|$P$U$V$[$gR}WR#`!]R#{#_R!S[R!}!R",nodeNames:"⚠ Script ForExpression Name for InExpressions InExpression InExtractor in IterationContext return IfExpression if then else QuantifiedExpression some every InExpressions InExpression satisfies Disjunction or Conjunction and Comparison CompareOp CompareOp between InTester PositiveUnaryTest ( PositiveUnaryTests ) ArithmeticExpression ArithOp ArithOp ArithOp ArithOp UnaryExpression InstanceOf Type QualifiedName PathExpression FilterExpression [ ] FunctionInvocation Parameters NamedParameters ParameterName PositionalParameters null NumericLiteral StringLiteral BooleanLiteral DateTimeLiteral ? SuperSimplePositiveUnaryTest Interval ParenthesizedExpression List FunctionDefinition function FormalParameter external Context { ContextEntry Key }",nodeProps:[[o.top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{for:8,in:16,return:20,if:24,then:26,else:28,some:32,every:34,satisfies:40,or:44,and:48,between:56,null:104,"?":114,function:126,external:130}],tokenPrec:3239}));t.evaluate=function(t,e){return u.evaluate(t,e)},t.unaryTest=function(t,e,r){return u.unaryTest(t,e,r)},Object.defineProperty(t,"__esModule",{value:!0})})); |
@@ -5,6 +5,6 @@ import { Parser, NodeProp } from 'lezer'; | ||
const parser = Parser.deserialize({ | ||
states: "6[OSOPOOO!`OPO(3BQOSOPO'#DRO$[OPO'#DUOROP'#E_'#E_OROP'#E^'#E^O&pOPO'#DeOSOPO'#D{O'QOPO'#DfO&pOPO'#DdOROP'#Dd'#DdOROP'#D{'#D{O(aOPO'#DkOROP'#Ea'#EaOROP'#Dz'#DzQSOPOOO(kOPO'#C^OSOPO'#CgO(oOPO'#CkO(sOPO'#DgOSOPO,59aO(wOPO,59aOSOPO,59hOSOPO,59hOSOPO,59hO*TOPO,59nO*XOPO,59qOSOPO,59rO*]OPO'#DYOROP,59s,59sOSOPO,59]OSOPO,59_OROP'#Cy'#CyOSOPO,59aO+lOPO,59mO.QOPO'#EUO0fOPO'#DrOROP,59p,59pOROP'#E`'#E`O0jOPO,5:PO0nOPO'#DXO1kOPO'#E^O2tOPO'#D{O3}OPO,5:gO4}OPO'#EbO6QOPO,5:QOROP,5:O,5:OOROP'#Dm'#DmO6UOPO'#DlO6YOPO'#EfO6aOPO,5:VOROP,5:Y,5:YO6eOPO'#CbO6iOPO'#CaO6pOPO,58xO6tOPO,59RO6eOPO'#CoO7tOPO'#CnO7{OPO,59VO8POPO,5:RO8WOPO1G.{O:lOPO'#CzOROP1G.{1G.{OSOPO1G.{O=QOPO1G/SO?fOPO1G/SOAzOPO1G/SOROP'#DT'#DTOROP1G/Y1G/YOROP1G/]1G/]OD`OPO1G/^OE`OPO'#D]OFcOPO'#D[OGiOPO'#EYOROP'#DZ'#DZOROP,59t,59tOGmOPO,59tOGqOPO1G.wOJVOPO1G.yOLkOPO1G.{OROP,5:^,5:^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#Y{ePx|!X!_!h!i!o!p!q#j#k#n#r#t#w$R$Z$b$d$hQ!`eQ#b!aR$^$PR#a!aQ!fiR$W#x!^ZOQ_adefghklnoq!a!w!z#P#U#V#W#[#e#g#|$P$U$V$[$gUvUX!tSzVWT!ei#x!XmPrx|!X!^!_!b!c!d!h!i!o!p!q#j#k#n#r#t#w$R$S$Z$b$d$hR!nlQ!klS#^!]#zR$f$`!cYOQVW_adefghklnoq!a!w!z#P#U#V#W#[#e#g#|$P$U$V$[$g!c]OQVW_adefghklnoq!a!w!z#P#U#V#W#[#e#g#|$P$U$V$[$gQ#_!]R$Y#zQ!R[R#m!|T!Q[!|Q_OR!T_Q#R!VR#p#RQ#X!ZR#u#XQ$O#bR$]$OSsR!jR!rsQ$_$RR$e$_S!v|!iR#i!vQ#y#_R$X#yQ!{!RR#l!{SPO_QrQQxVQ|WQ!XaQ!^dU!_e!a$PQ!bfQ!cgQ!dhQ!hkQ!ilQ!onQ!poQ!qqQ#j!wQ#k!zQ#n#PQ#r#UQ#s#VQ#t#WQ#w#[Q$R#eQ$S#gQ$Z#|Q$b$UQ$c$VQ$d$[R$h$g!`^OQW_adefghklnoq!a!w!z#P#U#V#W#[#e#g#|$P$U$V$[$gR{VR#T!VR#Z!ZR$Q#bTuR!jR!llR$a$RQ!x|R#d!i!^TOQ_adefghklnoq!a!w!z#P#U#V#W#[#e#g#|$P$U$V$[$gUvUX!tTyVWUwUVWQ!OXR#h!t!c^OQVW_adefghklnoq!a!w!z#P#U#V#W#[#e#g#|$P$U$V$[$gR}WR#`!]R#{#_R!S[R!}!R", | ||
nodeNames: "⚠ Script ForExpression Name for InExpressions InExpression InExtractor in IterationContext return IfExpression if then else QuantifiedExpression some every InExpressions InExpression satisfies Disjunction or Conjunction and Comparison CompareOp CompareOp between InTester PositiveUnaryTest PositiveUnaryTests ArithmeticExpression ArithOp ArithOp ArithOp ArithOp UnaryExpression InstanceOf Type QualifiedName PathExpression FilterExpression FunctionInvocation Parameters NamedParameters ParameterName PositionalParameters null NumericLiteral StringLiteral BooleanLiteral DateTimeLiteral ? SuperSimplePositiveUnaryTest Interval List FunctionDefinition function FormalParameter external Context ContextEntry Key", | ||
states: "6[OSOPOOO!`OPO(3BXOSOPO'#DTO$[OPO'#DWOROP'#Eb'#EbOROP'#Ea'#EaO&pOPO'#DiOSOPO'#DjO'QOPO'#DkO&pOPO'#DhOROP'#Dh'#DhOROP'#ES'#ESO(aOPO'#DpOROP'#Ed'#EdOROP'#ER'#ERQSOPOOO(kOPO'#C^OSOPO'#CgO(oOPO'#CkO(sOPO'#DlOSOPO,59aO(wOPO,59aOSOPO,59jOSOPO,59jOSOPO,59jO*TOPO,59pO*XOPO,59sOSOPO,59tO*]OPO'#D^OROP,59w,59wOSOPO,59]OSOPO,59_OROP'#Cy'#CyOSOPO,59aO+lOPO,59oO.QOPO'#EZO0fOPO'#DyOROP,59r,59rOROP'#Ec'#EcO0jOPO,5:TO0nOPO'#D]O1kOPO'#EaO2tOPO'#ESO3}OPO,5:UO4}OPO'#EeO6QOPO,5:VOROP,5:S,5:SOROP'#Ds'#DsO6UOPO'#DrO6YOPO'#EhO6aOPO,5:[OROP,5:a,5:aO6eOPO'#CbO6iOPO'#CaO6pOPO,58xO6tOPO,59RO6eOPO'#CoO7tOPO'#CnO7{OPO,59VO8POPO,5:WO8WOPO1G.{O:lOPO'#CzOROP1G.{1G.{OSOPO1G.{O=QOPO1G/UO?fOPO1G/UOAzOPO1G/UOROP'#DV'#DVOROP1G/[1G/[OROP1G/_1G/_OD`OPO1G/`OE`OPO'#DaOFcOPO'#D`OGiOPO'#E]OROP'#D_'#D_OROP,59x,59xOGmOPO,59xOGqOPO1G.wOJVOPO1G.yOLkOPO1G.{OROP,5:e,5:eOROP-E7w-E7wO&pOPO1G/oOROP1G/p1G/pOMhOPO'#E`OSOPO'#D{OROP,5;P,5;POROP1G/q1G/qOSOPO,5:^OMrOPO'#EiOMyOPO'#D}OROP,5;S,5;SOROP1G/v1G/vOSOPO,58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nOhoOjdOkdOlqOolOsfOtfOugOvhO}kO!|iO#OjO~!y#YOd!zP~d#[O~R#]Oq#YP~olOsfOtfOugOvhO}kO!|iO#OjORiiSiiWii[ii`iiaiifiihiijiikiilii!Oii!Uii!Vii!Wii!Xii!Yii!Zii!aii!eii!riiqii!yii]ii!hiiYii!wii^iidii~WpOfnOhoOjdOkdOlqOolOsfOtfOugOvhO}kO!|iO#OjORnXSnX[nX`nXanX!OnX!UnX!VnX!WnX!XnX!YnX!ZnX!anX!enX!rnXqnX!ynX]nX!hnXYnX!wnX^nXdnX~olOugOvhO}kO!|iO#OjORriSriWri[ri`riarifrihrijrikrilrisritri!Ori!Uri!Vri!Wri!Xri!Yri!Zri!ari!eri!rriqri!yri]ri!hriYri!wri^ridri~olOvhO}kO!|iO#OjORriSriWri[ri`riarifrihrijrikrilrisritriuri!Ori!Uri!Vri!Wri!Xri!Yri!Zri!ari!eri!rriqri!yri]ri!hriYri!wri^ridri~olO}kO!|iO#OjORriSriWri[ri`riarifrihrijrikrilrisritriurivri!Ori!Uri!Vri!Wri!Xri!Yri!Zri!ari!eri!rriqri!yri]ri!hriYri!wri^ridri~WpOfnOhoOjdOkdOlqOolOsfOtfOugOvhO}kO!O#cO!|iO#OjO~WpOfnOhoOjdOkdOlqOolOsfOtfOugOvhO}kO!y!wO!|iO#OjOq#SP~#OtOW!}Pf!}Ph!}Pj!}Pk!}Pl!}Po!}Pq!}Ps!}Pt!}Pu!}Pv!}P}!}P!y!}P!|!}P#Q!SX~#Q#eO~q#fO~WpOhoOjdOkdOlqOolOsfOtfOugOvhO}kO!|iO#OjOReiSei[ei`eiaeifei!Oei!Uei!Vei!Wei!Xei!Yei!Zei!aei!eei!reiqei!yei]ei!heiYei!wei^eidei~WpOjdOkdOlqOolOsfOtfOugOvhO}kO!|iO#OjORgiSgi[gi`giagifgihgi!Ogi!Ugi!Vgi!Wgi!Xgi!Ygi!Zgi!agi!egi!rgiqgi!ygi]gi!hgiYgi!wgi^gidgi~Wp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#U#V#W#[#e#g#|$P$U$V$[$gQ#_!]R$Y#zQ!R[R#m!|T!Q[!|Q_OR!T_Q#R!VR#p#RQ#X!ZR#u#XQ$O#bR$]$OSsR!jR!rsQ$_$RR$e$_S!v|!iR#i!vQ#y#_R$X#yQ!{!RR#l!{SPO_QrQQxVQ|WQ!XaQ!^dU!_e!a$PQ!bfQ!cgQ!dhQ!hkQ!ilQ!onQ!poQ!qqQ#j!wQ#k!zQ#n#PQ#r#UQ#s#VQ#t#WQ#w#[Q$R#eQ$S#gQ$Z#|Q$b$UQ$c$VQ$d$[R$h$g!`^OQW_adefghklnoq!a!w!z#P#U#V#W#[#e#g#|$P$U$V$[$gR{VR#T!VR#Z!ZR$Q#bTuR!jR!llR$a$RQ!x|R#d!i!^TOQ_adefghklnoq!a!w!z#P#U#V#W#[#e#g#|$P$U$V$[$gUvUX!tTyVWUwUVWQ!OXR#h!t!c^OQVW_adefghklnoq!a!w!z#P#U#V#W#[#e#g#|$P$U$V$[$gR}WR#`!]R#{#_R!S[R!}!R", | ||
nodeNames: "⚠ Script ForExpression Name for InExpressions InExpression InExtractor in IterationContext return IfExpression if then else QuantifiedExpression some every InExpressions InExpression satisfies Disjunction or Conjunction and Comparison CompareOp CompareOp between InTester PositiveUnaryTest ( PositiveUnaryTests ) ArithmeticExpression ArithOp ArithOp ArithOp ArithOp UnaryExpression InstanceOf Type QualifiedName PathExpression FilterExpression [ ] FunctionInvocation Parameters NamedParameters ParameterName PositionalParameters null NumericLiteral StringLiteral BooleanLiteral DateTimeLiteral ? SuperSimplePositiveUnaryTest Interval ParenthesizedExpression List FunctionDefinition function FormalParameter external Context { ContextEntry Key }", | ||
nodeProps: [ | ||
@@ -14,8 +14,7 @@ [NodeProp.top, 1,true] | ||
repeatNodeCount: 9, | ||
tokenData: "8R~R{XY#xY^#xpq#xqr$mrs$xxy%Zyz%`z{%e{|%r|}%w}!O%|!O!P'Q!P!Q'b!Q![&g![!]'g!^!_'l!_!`$s!`!a'y!a!b(R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Q![(m!a!b(m!c!}(m#R#S(m#T#X(m#X#Y/`#Y#o(m1p4U(m$Je$Jg(m~/gV!X~R~!Q![(m!a!b(m!c!}(m#R#S(m#T#o(m1p4U(m$Je$Jg(m~0RXR~!Q![(m!a!b(m!c!}(m#R#S(m#T#b(m#b#c0n#c#o(m1p4U(m$Je$Jg(m~0sXR~!Q![(m!a!b(m!c!}(m#R#S(m#T#g(m#g#h1`#h#o(m1p4U(m$Je$Jg(m~1eXR~!Q![(m!a!b(m!c!}(m#R#S(m#T#h(m#h#i2Q#i#o(m1p4U(m$Je$Jg(m~2VWR~!Q![(m!a!b(m!c!}(m#R#S(m#T#U2o#U#o(m1p4U(m$Je$Jg(m~2tXR~!Q![(m!a!b(m!c!}(m#R#S(m#T#b(m#b#c3a#c#o(m1p4U(m$Je$Jg(m~3fXR~!Q![(m!a!b(m!c!}(m#R#S(m#T#V(m#V#W4R#W#o(m1p4U(m$Je$Jg(m~4WXR~!Q![(m!a!b(m!c!}(m#R#S(m#T#X(m#X#Y4s#Y#o(m1p4U(m$Je$Jg(m~4xWR~pq5b!Q![(m!a!b(m!c!}(m#R#S(m#T#o(m1p4U(m$Je$Jg(m~5eP#c#d5h~5kP#Y#Z5n~5sO!|~~5xXR~!Q![(m!a!b(m!c!}(m#R#S(m#T#f(m#f#g6e#g#o(m1p4U(m$Je$Jg(m~6jXR~!Q![(m!a!b(m!c!}(m#R#S(m#T#i(m#i#j7V#j#o(m1p4U(m$Je$Jg(m~7[XR~!Q![(m!a!b(m!c!}(m#R#S(m#T#X(m#X#Y/`#Y#o(m1p4U(m$Je$Jg(m~7|O!e~~8RO!h~", | ||
tokenizers: [0], | ||
specializeTable: 3247, | ||
specializations: [{for:8, in:16, return:20, if:24, then:26, else:28, some:32, every:34, satisfies:40, or:44, and:48, between:56, null:96, "?":106, function:116, external:120}], | ||
tokenPrec: 3239, | ||
termNames: {"0":"⚠","1":"@top","2":"ForExpression","3":"Name","4":"Name/\"for\"","5":"InExpressions<IterationContext>","6":"InExpression<IterationContext>","7":"InExtractor","8":"Name/\"in\"","9":"IterationContext","10":"Name/\"return\"","11":"IfExpression","12":"Name/\"if\"","13":"Name/\"then\"","14":"Name/\"else\"","15":"QuantifiedExpression","16":"Name/\"some\"","17":"Name/\"every\"","18":"InExpressions<expression>","19":"InExpression<expression>","20":"Name/\"satisfies\"","21":"Disjunction","22":"Name/\"or\"","23":"Conjunction","24":"Name/\"and\"","25":"Comparison","26":"CompareOp<\"=\" | \"!=\">","27":"CompareOp<Gt | Gte | Lt | Lte>","28":"Name/\"between\"","29":"InTester","30":"PositiveUnaryTest","31":"PositiveUnaryTests","32":"ArithmeticExpression","33":"ArithOp<\"+\">","34":"Minus","35":"ArithOp<\"*\" | \"/\">","36":"ArithOp<\"^\" | \"**\">","37":"UnaryExpression","38":"InstanceOf","39":"Type","40":"QualifiedName","41":"PathExpression","42":"FilterExpression","43":"FunctionInvocation","44":"Parameters","45":"NamedParameters","46":"ParameterName","47":"PositionalParameters","48":"Name/\"null\"","49":"NumericLiteral","50":"StringLiteral","51":"BooleanLiteral","52":"DateTimeLiteral","53":"Name/\"?\"","54":"SuperSimplePositiveUnaryTest","55":"Interval","56":"List","57":"FunctionDefinition","58":"Name/\"function\"","59":"FormalParameter","60":"Name/\"external\"","61":"Context","62":"ContextEntry","63":"Key","64":"expression+","65":"(\",\" InExpression<IterationContext>)*","66":"(\",\" InExpression<expression>)*","67":"(\",\" PositiveUnaryTest)*","68":"(\".\" Name)*","69":"(\",\" ParameterName \":\" expression)*","70":"(\",\" expression)*","71":"(\",\" FormalParameter)*","72":"(\",\" ContextEntry)*","73":"␄","74":"%mainskip","75":"whitespace","76":"expression","77":"textualExpression","78":"\"..\"","79":"(\",\" InExpression<IterationContext>)*-wrap","80":"\",\"","81":"(\",\" InExpression<expression>)*-wrap","82":"\"(\"","83":"(\",\" PositiveUnaryTest)*-wrap","84":"\")\"","85":"instanceOf","86":"(\".\" Name)*-wrap","87":"\".\"","88":"\"[\"","89":"\"]\"","90":"commaSep1<ParameterName \":\" expression>","91":"\":\"","92":"(\",\" ParameterName \":\" expression)*-wrap","93":"(\",\" expression)*-wrap","94":"literal","95":"simpleLiteral","96":"endpoint","97":"boxedExpression","98":"commaSep<expression>","99":"commaSep<FormalParameter>","100":"(\",\" FormalParameter)*-wrap","101":"\"{\"","102":"commaSep<ContextEntry>","103":"(\",\" ContextEntry)*-wrap","104":"\"}\""} | ||
specializations: [{for:8, in:16, return:20, if:24, then:26, else:28, some:32, every:34, satisfies:40, or:44, and:48, between:56, null:104, "?":114, function:126, external:130}], | ||
tokenPrec: 3239 | ||
}); | ||
@@ -34,3 +33,3 @@ | ||
return this.evaluate(`INPUT in ${test}`, context); | ||
return this.evaluate(`INPUT in (${test})`, context); | ||
}; | ||
@@ -70,2 +69,4 @@ | ||
// console.log(type.name, input, args); | ||
switch (type.name) { | ||
@@ -119,3 +120,3 @@ case 'ArithOp': return (context) => { | ||
return args.map(entry => entry(context)).reduce((obj, [key, value]) => { | ||
return args.slice(1, -1).map(entry => entry(context)).reduce((obj, [key, value]) => { | ||
obj[key] = value; | ||
@@ -250,14 +251,32 @@ | ||
case 'Parameters': return args[0]; | ||
case 'Parameters': return args.length === 3 ? args[1] : (context) => []; | ||
case '(': return '('; | ||
case ')': return ')'; | ||
case '[': return '['; | ||
case ']': return ']'; | ||
case '{': return '{'; | ||
case '}': return '}'; | ||
/** | ||
* expression !compare CompareOp<"=" | "!="> expression | | ||
* expression !compare CompareOp<Gt | Gte | Lt | Lte> expression | | ||
* expression !compare InTester PositiveUnaryTest | | ||
* expression !compare kw<"between"> expression kw<"and"> expression | | ||
* expression !compare InTester !unaryTest "(" PositiveUnaryTests ")" | ||
*/ | ||
case 'Comparison': return (context) => { | ||
const [ compA, compFn, compB, _compareAnd, compC ] = args; | ||
if (args.length === 5) { | ||
// between | ||
if (args.length === 5) { | ||
return compFn(context)(compA, compB, compC); | ||
// expression !compare InTester !unaryTest "(" PositiveUnaryTests ")" | ||
if (args[2] === '(') { | ||
return args[1](context)(args[3])(args[0]); | ||
} | ||
// expression !compare kw<"between"> expression kw<"and"> expression | ||
return args[1](context)(args[0], args[2], args[4]); | ||
} | ||
return compFn(context)(compB)(compA); | ||
return args[1](context)(args[2])(args[0]); | ||
}; | ||
@@ -290,2 +309,3 @@ | ||
const operator = args[0](context); | ||
return operator(() => 0, args[1]); | ||
@@ -302,4 +322,8 @@ }; | ||
case 'PositiveUnaryTests': return (context) => args.map(a => a(context)); | ||
case 'PositiveUnaryTests': return (context) => { | ||
return args.map(a => a(context)); | ||
}; | ||
case 'ParenthesizedExpression': return args[1]; | ||
case 'PathExpression': return (context) => { | ||
@@ -323,3 +347,3 @@ | ||
const filter = args[1]({ | ||
const filter = args[2]({ | ||
...context, | ||
@@ -336,3 +360,3 @@ ...el | ||
if (args.length === 1) { | ||
return wrapTest(args[0](context)); | ||
return args[0](context); | ||
} | ||
@@ -344,8 +368,14 @@ | ||
case 'List': return (context) => { | ||
return args.map(arg => arg(context)); | ||
return args.slice(1, -1).map(arg => arg(context)); | ||
}; | ||
case 'Interval': | ||
return new Interval(args[0], args[1], args[3], args[4]); | ||
case 'Interval': return (context) => { | ||
const interval = new Interval(args[0], args[1](context), args[2](context), args[3]); | ||
return (a) => { | ||
return interval.includes(a(context)); | ||
}; | ||
}; | ||
case 'Script': return (context) => args[args.length - 1](context); | ||
@@ -397,19 +427,2 @@ } | ||
function wrapTest(value) { | ||
if (typeof value === 'function') { | ||
return value; | ||
} | ||
if (typeof value === 'number') { | ||
return (a) => a === value ? a : false; | ||
} | ||
if (value instanceof Interval) { | ||
return (a) => value.includes(a); | ||
} | ||
throw new Error(`unexpected value: ${value}`); | ||
} | ||
function Interval(start, startValue, endValue, end) { | ||
@@ -428,7 +441,7 @@ | ||
this.includesFrom = (value) => { | ||
[ "(", "]" ].includes(this.start) ? value >= this.start : value > this.start; | ||
return [ '(', ']' ].includes(this.start) ? value > this.startValue : value >= this.startValue; | ||
}; | ||
this.includesTo = (value) => { | ||
[ ")", "[" ].includes(this.end) ? value <= this.end : value < this.end; | ||
return [ ')', '[' ].includes(this.end) ? value < this.endValue : value <= this.endValue; | ||
}; | ||
@@ -435,0 +448,0 @@ } |
@@ -9,6 +9,6 @@ 'use strict'; | ||
const parser = lezer.Parser.deserialize({ | ||
states: "6[OSOPOOO!`OPO(3BQOSOPO'#DRO$[OPO'#DUOROP'#E_'#E_OROP'#E^'#E^O&pOPO'#DeOSOPO'#D{O'QOPO'#DfO&pOPO'#DdOROP'#Dd'#DdOROP'#D{'#D{O(aOPO'#DkOROP'#Ea'#EaOROP'#Dz'#DzQSOPOOO(kOPO'#C^OSOPO'#CgO(oOPO'#CkO(sOPO'#DgOSOPO,59aO(wOPO,59aOSOPO,59hOSOPO,59hOSOPO,59hO*TOPO,59nO*XOPO,59qOSOPO,59rO*]OPO'#DYOROP,59s,59sOSOPO,59]OSOPO,59_OROP'#Cy'#CyOSOPO,59aO+lOPO,59mO.QOPO'#EUO0fOPO'#DrOROP,59p,59pOROP'#E`'#E`O0jOPO,5:PO0nOPO'#DXO1kOPO'#E^O2tOPO'#D{O3}OPO,5:gO4}OPO'#EbO6QOPO,5:QOROP,5:O,5:OOROP'#Dm'#DmO6UOPO'#DlO6YOPO'#EfO6aOPO,5:VOROP,5:Y,5:YO6eOPO'#CbO6iOPO'#CaO6pOPO,58xO6tOPO,59RO6eOPO'#CoO7tOPO'#CnO7{OPO,59VO8POPO,5:RO8WOPO1G.{O:lOPO'#CzOROP1G.{1G.{OSOPO1G.{O=QOPO1G/SO?fOPO1G/SOAzOPO1G/SOROP'#DT'#DTOROP1G/Y1G/YOROP1G/]1G/]OD`OPO1G/^OE`OPO'#D]OFcOPO'#D[OGiOPO'#EYOROP'#DZ'#DZOROP,59t,59tOGmOPO,59tOGqOPO1G.wOJVOPO1G.yOLkOPO1G.{OROP,5:^,5:^OROP-E7p-E7pO&pOPO1G/kOROP1G0R1G0ROMhOPO'#E]OSOPO'#DtOROP,5:|,5:|OROP1G/l1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iR$W#x!^ZOQ_adefghklnoq!a!w!z#P#U#V#W#[#e#g#|$P$U$V$[$gUvUX!tSzVWT!ei#x!XmPrx|!X!^!_!b!c!d!h!i!o!p!q#j#k#n#r#t#w$R$S$Z$b$d$hR!nlQ!klS#^!]#zR$f$`!cYOQVW_adefghklnoq!a!w!z#P#U#V#W#[#e#g#|$P$U$V$[$g!c]OQVW_adefghklnoq!a!w!z#P#U#V#W#[#e#g#|$P$U$V$[$gQ#_!]R$Y#zQ!R[R#m!|T!Q[!|Q_OR!T_Q#R!VR#p#RQ#X!ZR#u#XQ$O#bR$]$OSsR!jR!rsQ$_$RR$e$_S!v|!iR#i!vQ#y#_R$X#yQ!{!RR#l!{SPO_QrQQxVQ|WQ!XaQ!^dU!_e!a$PQ!bfQ!cgQ!dhQ!hkQ!ilQ!onQ!poQ!qqQ#j!wQ#k!zQ#n#PQ#r#UQ#s#VQ#t#WQ#w#[Q$R#eQ$S#gQ$Z#|Q$b$UQ$c$VQ$d$[R$h$g!`^OQW_adefghklnoq!a!w!z#P#U#V#W#[#e#g#|$P$U$V$[$gR{VR#T!VR#Z!ZR$Q#bTuR!jR!llR$a$RQ!x|R#d!i!^TOQ_adefghklnoq!a!w!z#P#U#V#W#[#e#g#|$P$U$V$[$gUvUX!tTyVWUwUVWQ!OXR#h!t!c^OQVW_adefghklnoq!a!w!z#P#U#V#W#[#e#g#|$P$U$V$[$gR}WR#`!]R#{#_R!S[R!}!R", | ||
nodeNames: "⚠ Script ForExpression Name for InExpressions InExpression InExtractor in IterationContext return IfExpression if then else QuantifiedExpression some every InExpressions InExpression satisfies Disjunction or Conjunction and Comparison CompareOp CompareOp between InTester PositiveUnaryTest PositiveUnaryTests ArithmeticExpression ArithOp ArithOp ArithOp ArithOp UnaryExpression InstanceOf Type QualifiedName PathExpression FilterExpression FunctionInvocation Parameters NamedParameters ParameterName PositionalParameters null NumericLiteral StringLiteral BooleanLiteral DateTimeLiteral ? SuperSimplePositiveUnaryTest Interval List FunctionDefinition function FormalParameter external Context ContextEntry Key", | ||
states: "6[OSOPOOO!`OPO(3BXOSOPO'#DTO$[OPO'#DWOROP'#Eb'#EbOROP'#Ea'#EaO&pOPO'#DiOSOPO'#DjO'QOPO'#DkO&pOPO'#DhOROP'#Dh'#DhOROP'#ES'#ESO(aOPO'#DpOROP'#Ed'#EdOROP'#ER'#ERQSOPOOO(kOPO'#C^OSOPO'#CgO(oOPO'#CkO(sOPO'#DlOSOPO,59aO(wOPO,59aOSOPO,59jOSOPO,59jOSOPO,59jO*TOPO,59pO*XOPO,59sOSOPO,59tO*]OPO'#D^OROP,59w,59wOSOPO,59]OSOPO,59_OROP'#Cy'#CyOSOPO,59aO+lOPO,59oO.QOPO'#EZO0fOPO'#DyOROP,59r,59rOROP'#Ec'#EcO0jOPO,5:TO0nOPO'#D]O1kOPO'#EaO2tOPO'#ESO3}OPO,5:UO4}OPO'#EeO6QOPO,5:VOROP,5:S,5:SOROP'#Ds'#DsO6UOPO'#DrO6YOPO'#EhO6aOPO,5:[OROP,5:a,5:aO6eOPO'#CbO6iOPO'#CaO6pOPO,58xO6tOPO,59RO6eOPO'#CoO7tOPO'#CnO7{OPO,59VO8POPO,5:WO8WOPO1G.{O:lOPO'#CzOROP1G.{1G.{OSOPO1G.{O=QOPO1G/UO?fOPO1G/UOAzOPO1G/UOROP'#DV'#DVOROP1G/[1G/[OROP1G/_1G/_OD`OPO1G/`OE`OPO'#DaOFcOPO'#D`OGiOPO'#E]OROP'#D_'#D_OROP,59x,59xOGmOPO,59xOGqOPO1G.wOJVOPO1G.yOLkOPO1G.{OROP,5:e,5:eOROP-E7w-E7wO&pOPO1G/oOROP1G/p1G/pOMhOPO'#E`OSOPO'#D{OROP,5;P,5;POROP1G/q1G/qOSOPO,5:^OMrOPO'#EiOMyOPO'#D}OROP,5;S,5;SOROP1G/v1G/vOSOPO,58|OROP'#Cc'#CcONQOPO'#EUO(kOPO'#DvOROP,58{,58{OSOPO1G.dOSOPO1G.mOSOPO,59ZONX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fOugOvhO}kO!|iO#OjORiiSiiWii[ii`iiaiifiihiijiikiilii!Oii!Uii!Vii!Wii!Xii!Yii!Zii!aii!eii!riiqii!yii]ii!hiiYii!wii^iidii~WpOfnOhoOjdOkdOlqOolOsfOtfOugOvhO}kO!|iO#OjORnXSnX[nX`nXanX!OnX!UnX!VnX!WnX!XnX!YnX!ZnX!anX!enX!rnXqnX!ynX]nX!hnXYnX!wnX^nXdnX~olOugOvhO}kO!|iO#OjORriSriWri[ri`riarifrihrijrikrilrisritri!Ori!Uri!Vri!Wri!Xri!Yri!Zri!ari!eri!rriqri!yri]ri!hriYri!wri^ridri~olOvhO}kO!|iO#OjORriSriWri[ri`riarifrihrijrikrilrisritriuri!Ori!Uri!Vri!Wri!Xri!Yri!Zri!ari!eri!rriqri!yri]ri!hriYri!wri^ridri~olO}kO!|iO#OjORriSriWri[ri`riarifrihrijrikrilrisritriurivri!Ori!Uri!Vri!Wri!Xri!Yri!Zri!ari!eri!rriqri!yri]ri!hriYri!wri^ridri~WpOfnOhoOjdOkdOlqOolOsfOtfOugOvhO}kO!O#cO!|iO#OjO~WpOfnOhoOjdOkdOlqOolOsfOtfOugOvhO}kO!y!wO!|iO#OjOq#SP~#OtOW!}Pf!}Ph!}Pj!}Pk!}Pl!}Po!}Pq!}Ps!}Pt!}Pu!}Pv!}P}!}P!y!}P!|!}P#Q!SX~#Q#eO~q#fO~WpOhoOjdOkdOlqOolOsfOtfOugOvhO}kO!|iO#OjOReiSei[ei`eiaeifei!Oei!Uei!Vei!Wei!Xei!Yei!Zei!aei!eei!reiqei!yei]ei!heiYei!wei^eidei~WpOjdOkdOlqOolOsfOtfOugOvhO}kO!|iO#OjORgiSgi[gi`giagifgihgi!Ogi!Ugi!Vgi!Wgi!Xgi!Ygi!Zgi!agi!egi!rgiqgi!ygi]gi!hgiYgi!wgi^gidgi~WpOfnOh#gOjdOkdOlqOolOsfOtfOugOvhO}kO!|iO#OjO~!y!wO!O#SXq#SX~!y!|O!h#]X~R!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#RQ#X!ZR#u#XQ$O#bR$]$OSsR!jR!rsQ$_$RR$e$_S!v|!iR#i!vQ#y#_R$X#yQ!{!RR#l!{SPO_QrQQxVQ|WQ!XaQ!^dU!_e!a$PQ!bfQ!cgQ!dhQ!hkQ!ilQ!onQ!poQ!qqQ#j!wQ#k!zQ#n#PQ#r#UQ#s#VQ#t#WQ#w#[Q$R#eQ$S#gQ$Z#|Q$b$UQ$c$VQ$d$[R$h$g!`^OQW_adefghklnoq!a!w!z#P#U#V#W#[#e#g#|$P$U$V$[$gR{VR#T!VR#Z!ZR$Q#bTuR!jR!llR$a$RQ!x|R#d!i!^TOQ_adefghklnoq!a!w!z#P#U#V#W#[#e#g#|$P$U$V$[$gUvUX!tTyVWUwUVWQ!OXR#h!t!c^OQVW_adefghklnoq!a!w!z#P#U#V#W#[#e#g#|$P$U$V$[$gR}WR#`!]R#{#_R!S[R!}!R", | ||
nodeNames: "⚠ Script ForExpression Name for InExpressions InExpression InExtractor in IterationContext return IfExpression if then else QuantifiedExpression some every InExpressions InExpression satisfies Disjunction or Conjunction and Comparison CompareOp CompareOp between InTester PositiveUnaryTest ( PositiveUnaryTests ) ArithmeticExpression ArithOp ArithOp ArithOp ArithOp UnaryExpression InstanceOf Type QualifiedName PathExpression FilterExpression [ ] FunctionInvocation Parameters NamedParameters ParameterName PositionalParameters null NumericLiteral StringLiteral BooleanLiteral DateTimeLiteral ? SuperSimplePositiveUnaryTest Interval ParenthesizedExpression List FunctionDefinition function FormalParameter external Context { ContextEntry Key }", | ||
nodeProps: [ | ||
@@ -18,8 +18,7 @@ [lezer.NodeProp.top, 1,true] | ||
repeatNodeCount: 9, | ||
tokenData: "8R~R{XY#xY^#xpq#xqr$mrs$xxy%Zyz%`z{%e{|%r|}%w}!O%|!O!P'Q!P!Q'b!Q![&g![!]'g!^!_'l!_!`$s!`!a'y!a!b(R!c!}(R!}#O)X#P#Q)^#Q#R%m#R#S(R#T#W(R#W#X)c#X#Y(R#Y#Z,m#Z#](R#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~!Q![(m!a!b(m!c!}(m#R#S(m#T#o(m1p4U(m$Je$Jg(m~0RXR~!Q![(m!a!b(m!c!}(m#R#S(m#T#b(m#b#c0n#c#o(m1p4U(m$Je$Jg(m~0sXR~!Q![(m!a!b(m!c!}(m#R#S(m#T#g(m#g#h1`#h#o(m1p4U(m$Je$Jg(m~1eXR~!Q![(m!a!b(m!c!}(m#R#S(m#T#h(m#h#i2Q#i#o(m1p4U(m$Je$Jg(m~2VWR~!Q![(m!a!b(m!c!}(m#R#S(m#T#U2o#U#o(m1p4U(m$Je$Jg(m~2tXR~!Q![(m!a!b(m!c!}(m#R#S(m#T#b(m#b#c3a#c#o(m1p4U(m$Je$Jg(m~3fXR~!Q![(m!a!b(m!c!}(m#R#S(m#T#V(m#V#W4R#W#o(m1p4U(m$Je$Jg(m~4WXR~!Q![(m!a!b(m!c!}(m#R#S(m#T#X(m#X#Y4s#Y#o(m1p4U(m$Je$Jg(m~4xWR~pq5b!Q![(m!a!b(m!c!}(m#R#S(m#T#o(m1p4U(m$Je$Jg(m~5eP#c#d5h~5kP#Y#Z5n~5sO!|~~5xXR~!Q![(m!a!b(m!c!}(m#R#S(m#T#f(m#f#g6e#g#o(m1p4U(m$Je$Jg(m~6jXR~!Q![(m!a!b(m!c!}(m#R#S(m#T#i(m#i#j7V#j#o(m1p4U(m$Je$Jg(m~7[XR~!Q![(m!a!b(m!c!}(m#R#S(m#T#X(m#X#Y/`#Y#o(m1p4U(m$Je$Jg(m~7|O!e~~8RO!h~", | ||
tokenizers: [0], | ||
specializeTable: 3247, | ||
specializations: [{for:8, in:16, return:20, if:24, then:26, else:28, some:32, every:34, satisfies:40, or:44, and:48, between:56, null:96, "?":106, function:116, external:120}], | ||
tokenPrec: 3239, | ||
termNames: {"0":"⚠","1":"@top","2":"ForExpression","3":"Name","4":"Name/\"for\"","5":"InExpressions<IterationContext>","6":"InExpression<IterationContext>","7":"InExtractor","8":"Name/\"in\"","9":"IterationContext","10":"Name/\"return\"","11":"IfExpression","12":"Name/\"if\"","13":"Name/\"then\"","14":"Name/\"else\"","15":"QuantifiedExpression","16":"Name/\"some\"","17":"Name/\"every\"","18":"InExpressions<expression>","19":"InExpression<expression>","20":"Name/\"satisfies\"","21":"Disjunction","22":"Name/\"or\"","23":"Conjunction","24":"Name/\"and\"","25":"Comparison","26":"CompareOp<\"=\" | \"!=\">","27":"CompareOp<Gt | Gte | Lt | Lte>","28":"Name/\"between\"","29":"InTester","30":"PositiveUnaryTest","31":"PositiveUnaryTests","32":"ArithmeticExpression","33":"ArithOp<\"+\">","34":"Minus","35":"ArithOp<\"*\" | \"/\">","36":"ArithOp<\"^\" | \"**\">","37":"UnaryExpression","38":"InstanceOf","39":"Type","40":"QualifiedName","41":"PathExpression","42":"FilterExpression","43":"FunctionInvocation","44":"Parameters","45":"NamedParameters","46":"ParameterName","47":"PositionalParameters","48":"Name/\"null\"","49":"NumericLiteral","50":"StringLiteral","51":"BooleanLiteral","52":"DateTimeLiteral","53":"Name/\"?\"","54":"SuperSimplePositiveUnaryTest","55":"Interval","56":"List","57":"FunctionDefinition","58":"Name/\"function\"","59":"FormalParameter","60":"Name/\"external\"","61":"Context","62":"ContextEntry","63":"Key","64":"expression+","65":"(\",\" InExpression<IterationContext>)*","66":"(\",\" InExpression<expression>)*","67":"(\",\" PositiveUnaryTest)*","68":"(\".\" Name)*","69":"(\",\" ParameterName \":\" expression)*","70":"(\",\" expression)*","71":"(\",\" FormalParameter)*","72":"(\",\" ContextEntry)*","73":"␄","74":"%mainskip","75":"whitespace","76":"expression","77":"textualExpression","78":"\"..\"","79":"(\",\" InExpression<IterationContext>)*-wrap","80":"\",\"","81":"(\",\" InExpression<expression>)*-wrap","82":"\"(\"","83":"(\",\" PositiveUnaryTest)*-wrap","84":"\")\"","85":"instanceOf","86":"(\".\" Name)*-wrap","87":"\".\"","88":"\"[\"","89":"\"]\"","90":"commaSep1<ParameterName \":\" expression>","91":"\":\"","92":"(\",\" ParameterName \":\" expression)*-wrap","93":"(\",\" expression)*-wrap","94":"literal","95":"simpleLiteral","96":"endpoint","97":"boxedExpression","98":"commaSep<expression>","99":"commaSep<FormalParameter>","100":"(\",\" FormalParameter)*-wrap","101":"\"{\"","102":"commaSep<ContextEntry>","103":"(\",\" ContextEntry)*-wrap","104":"\"}\""} | ||
specializations: [{for:8, in:16, return:20, if:24, then:26, else:28, some:32, every:34, satisfies:40, or:44, and:48, between:56, null:104, "?":114, function:126, external:130}], | ||
tokenPrec: 3239 | ||
}); | ||
@@ -38,3 +37,3 @@ | ||
return this.evaluate(`INPUT in ${test}`, context); | ||
return this.evaluate(`INPUT in (${test})`, context); | ||
}; | ||
@@ -74,2 +73,4 @@ | ||
// console.log(type.name, input, args); | ||
switch (type.name) { | ||
@@ -123,3 +124,3 @@ case 'ArithOp': return (context) => { | ||
return args.map(entry => entry(context)).reduce((obj, [key, value]) => { | ||
return args.slice(1, -1).map(entry => entry(context)).reduce((obj, [key, value]) => { | ||
obj[key] = value; | ||
@@ -254,14 +255,32 @@ | ||
case 'Parameters': return args[0]; | ||
case 'Parameters': return args.length === 3 ? args[1] : (context) => []; | ||
case '(': return '('; | ||
case ')': return ')'; | ||
case '[': return '['; | ||
case ']': return ']'; | ||
case '{': return '{'; | ||
case '}': return '}'; | ||
/** | ||
* expression !compare CompareOp<"=" | "!="> expression | | ||
* expression !compare CompareOp<Gt | Gte | Lt | Lte> expression | | ||
* expression !compare InTester PositiveUnaryTest | | ||
* expression !compare kw<"between"> expression kw<"and"> expression | | ||
* expression !compare InTester !unaryTest "(" PositiveUnaryTests ")" | ||
*/ | ||
case 'Comparison': return (context) => { | ||
const [ compA, compFn, compB, _compareAnd, compC ] = args; | ||
if (args.length === 5) { | ||
// between | ||
if (args.length === 5) { | ||
return compFn(context)(compA, compB, compC); | ||
// expression !compare InTester !unaryTest "(" PositiveUnaryTests ")" | ||
if (args[2] === '(') { | ||
return args[1](context)(args[3])(args[0]); | ||
} | ||
// expression !compare kw<"between"> expression kw<"and"> expression | ||
return args[1](context)(args[0], args[2], args[4]); | ||
} | ||
return compFn(context)(compB)(compA); | ||
return args[1](context)(args[2])(args[0]); | ||
}; | ||
@@ -294,2 +313,3 @@ | ||
const operator = args[0](context); | ||
return operator(() => 0, args[1]); | ||
@@ -306,4 +326,8 @@ }; | ||
case 'PositiveUnaryTests': return (context) => args.map(a => a(context)); | ||
case 'PositiveUnaryTests': return (context) => { | ||
return args.map(a => a(context)); | ||
}; | ||
case 'ParenthesizedExpression': return args[1]; | ||
case 'PathExpression': return (context) => { | ||
@@ -327,3 +351,3 @@ | ||
const filter = args[1]({ | ||
const filter = args[2]({ | ||
...context, | ||
@@ -340,3 +364,3 @@ ...el | ||
if (args.length === 1) { | ||
return wrapTest(args[0](context)); | ||
return args[0](context); | ||
} | ||
@@ -348,8 +372,14 @@ | ||
case 'List': return (context) => { | ||
return args.map(arg => arg(context)); | ||
return args.slice(1, -1).map(arg => arg(context)); | ||
}; | ||
case 'Interval': | ||
return new Interval(args[0], args[1], args[3], args[4]); | ||
case 'Interval': return (context) => { | ||
const interval = new Interval(args[0], args[1](context), args[2](context), args[3]); | ||
return (a) => { | ||
return interval.includes(a(context)); | ||
}; | ||
}; | ||
case 'Script': return (context) => args[args.length - 1](context); | ||
@@ -401,19 +431,2 @@ } | ||
function wrapTest(value) { | ||
if (typeof value === 'function') { | ||
return value; | ||
} | ||
if (typeof value === 'number') { | ||
return (a) => a === value ? a : false; | ||
} | ||
if (value instanceof Interval) { | ||
return (a) => value.includes(a); | ||
} | ||
throw new Error(`unexpected value: ${value}`); | ||
} | ||
function Interval(start, startValue, endValue, end) { | ||
@@ -432,7 +445,7 @@ | ||
this.includesFrom = (value) => { | ||
[ "(", "]" ].includes(this.start) ? value >= this.start : value > this.start; | ||
return [ '(', ']' ].includes(this.start) ? value > this.startValue : value >= this.startValue; | ||
}; | ||
this.includesTo = (value) => { | ||
[ ")", "[" ].includes(this.end) ? value <= this.end : value < this.end; | ||
return [ ')', '[' ].includes(this.end) ? value < this.endValue : value <= this.endValue; | ||
}; | ||
@@ -439,0 +452,0 @@ } |
{ | ||
"name": "feelin", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "A FEEL parser and interpreter", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -14,3 +14,3 @@ import { parser } from './parser'; | ||
return this.evaluate(`INPUT in ${test}`, context); | ||
return this.evaluate(`INPUT in (${test})`, context); | ||
}; | ||
@@ -50,2 +50,4 @@ | ||
// console.log(type.name, input, args); | ||
switch (type.name) { | ||
@@ -99,3 +101,3 @@ case 'ArithOp': return (context) => { | ||
return args.map(entry => entry(context)).reduce((obj, [key, value]) => { | ||
return args.slice(1, -1).map(entry => entry(context)).reduce((obj, [key, value]) => { | ||
obj[key] = value; | ||
@@ -230,14 +232,32 @@ | ||
case 'Parameters': return args[0]; | ||
case 'Parameters': return args.length === 3 ? args[1] : (context) => []; | ||
case '(': return '('; | ||
case ')': return ')'; | ||
case '[': return '['; | ||
case ']': return ']'; | ||
case '{': return '{'; | ||
case '}': return '}'; | ||
/** | ||
* expression !compare CompareOp<"=" | "!="> expression | | ||
* expression !compare CompareOp<Gt | Gte | Lt | Lte> expression | | ||
* expression !compare InTester PositiveUnaryTest | | ||
* expression !compare kw<"between"> expression kw<"and"> expression | | ||
* expression !compare InTester !unaryTest "(" PositiveUnaryTests ")" | ||
*/ | ||
case 'Comparison': return (context) => { | ||
const [ compA, compFn, compB, _compareAnd, compC ] = args; | ||
if (args.length === 5) { | ||
// between | ||
if (args.length === 5) { | ||
return compFn(context)(compA, compB, compC); | ||
// expression !compare InTester !unaryTest "(" PositiveUnaryTests ")" | ||
if (args[2] === '(') { | ||
return args[1](context)(args[3])(args[0]); | ||
} | ||
// expression !compare kw<"between"> expression kw<"and"> expression | ||
return args[1](context)(args[0], args[2], args[4]); | ||
} | ||
return compFn(context)(compB)(compA); | ||
return args[1](context)(args[2])(args[0]); | ||
}; | ||
@@ -270,2 +290,3 @@ | ||
const operator = args[0](context); | ||
return operator(() => 0, args[1]); | ||
@@ -282,4 +303,8 @@ }; | ||
case 'PositiveUnaryTests': return (context) => args.map(a => a(context)); | ||
case 'PositiveUnaryTests': return (context) => { | ||
return args.map(a => a(context)); | ||
}; | ||
case 'ParenthesizedExpression': return args[1]; | ||
case 'PathExpression': return (context) => { | ||
@@ -303,3 +328,3 @@ | ||
const filter = args[1]({ | ||
const filter = args[2]({ | ||
...context, | ||
@@ -316,3 +341,3 @@ ...el | ||
if (args.length === 1) { | ||
return wrapTest(args[0](context)); | ||
return args[0](context); | ||
} | ||
@@ -324,8 +349,14 @@ | ||
case 'List': return (context) => { | ||
return args.map(arg => arg(context)); | ||
return args.slice(1, -1).map(arg => arg(context)); | ||
}; | ||
case 'Interval': | ||
return new Interval(args[0], args[1], args[3], args[4]); | ||
case 'Interval': return (context) => { | ||
const interval = new Interval(args[0], args[1](context), args[2](context), args[3]); | ||
return (a) => { | ||
return interval.includes(a(context)); | ||
}; | ||
}; | ||
case 'Script': return (context) => args[args.length - 1](context); | ||
@@ -377,19 +408,2 @@ } | ||
function wrapTest(value) { | ||
if (typeof value === 'function') { | ||
return value; | ||
} | ||
if (typeof value === 'number') { | ||
return (a) => a === value ? a : false; | ||
} | ||
if (value instanceof Interval) { | ||
return (a) => value.includes(a); | ||
} | ||
throw new Error(`unexpected value: ${value}`); | ||
} | ||
function Interval(start, startValue, endValue, end) { | ||
@@ -408,7 +422,7 @@ | ||
this.includesFrom = (value) => { | ||
[ "(", "]" ].includes(this.start) ? value >= this.start : value > this.start; | ||
return [ '(', ']' ].includes(this.start) ? value > this.startValue : value >= this.startValue; | ||
}; | ||
this.includesTo = (value) => { | ||
[ ")", "[" ].includes(this.end) ? value <= this.end : value < this.end; | ||
return [ ')', '[' ].includes(this.end) ? value < this.endValue : value <= this.endValue; | ||
}; | ||
@@ -415,0 +429,0 @@ } |
@@ -5,6 +5,6 @@ // This file was generated by lezer-generator. You probably shouldn't edit it. | ||
export const parser = Parser.deserialize({ | ||
states: "6[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a!w!z#P#U#V#W#[#e#g#|$P$U$V$[$g!c]OQVW_adefghklnoq!a!w!z#P#U#V#W#[#e#g#|$P$U$V$[$gQ#_!]R$Y#zQ!R[R#m!|T!Q[!|Q_OR!T_Q#R!VR#p#RQ#X!ZR#u#XQ$O#bR$]$OSsR!jR!rsQ$_$RR$e$_S!v|!iR#i!vQ#y#_R$X#yQ!{!RR#l!{SPO_QrQQxVQ|WQ!XaQ!^dU!_e!a$PQ!bfQ!cgQ!dhQ!hkQ!ilQ!onQ!poQ!qqQ#j!wQ#k!zQ#n#PQ#r#UQ#s#VQ#t#WQ#w#[Q$R#eQ$S#gQ$Z#|Q$b$UQ$c$VQ$d$[R$h$g!`^OQW_adefghklnoq!a!w!z#P#U#V#W#[#e#g#|$P$U$V$[$gR{VR#T!VR#Z!ZR$Q#bTuR!jR!llR$a$RQ!x|R#d!i!^TOQ_adefghklnoq!a!w!z#P#U#V#W#[#e#g#|$P$U$V$[$gUvUX!tTyVWUwUVWQ!OXR#h!t!c^OQVW_adefghklnoq!a!w!z#P#U#V#W#[#e#g#|$P$U$V$[$gR}WR#`!]R#{#_R!S[R!}!R", | ||
nodeNames: "⚠ Script ForExpression Name for InExpressions InExpression InExtractor in IterationContext return IfExpression if then else QuantifiedExpression some every InExpressions InExpression satisfies Disjunction or Conjunction and Comparison CompareOp CompareOp between InTester PositiveUnaryTest PositiveUnaryTests ArithmeticExpression ArithOp ArithOp ArithOp ArithOp UnaryExpression InstanceOf Type QualifiedName PathExpression FilterExpression FunctionInvocation Parameters NamedParameters ParameterName PositionalParameters null NumericLiteral StringLiteral BooleanLiteral DateTimeLiteral ? SuperSimplePositiveUnaryTest Interval List FunctionDefinition function FormalParameter external Context ContextEntry Key", | ||
states: "6[OSOPOOO!`OPO(3BXOSOPO'#DTO$[OPO'#DWOROP'#Eb'#EbOROP'#Ea'#EaO&pOPO'#DiOSOPO'#DjO'QOPO'#DkO&pOPO'#DhOROP'#Dh'#DhOROP'#ES'#ESO(aOPO'#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zQ#n#PQ#r#UQ#s#VQ#t#WQ#w#[Q$R#eQ$S#gQ$Z#|Q$b$UQ$c$VQ$d$[R$h$g!`^OQW_adefghklnoq!a!w!z#P#U#V#W#[#e#g#|$P$U$V$[$gR{VR#T!VR#Z!ZR$Q#bTuR!jR!llR$a$RQ!x|R#d!i!^TOQ_adefghklnoq!a!w!z#P#U#V#W#[#e#g#|$P$U$V$[$gUvUX!tTyVWUwUVWQ!OXR#h!t!c^OQVW_adefghklnoq!a!w!z#P#U#V#W#[#e#g#|$P$U$V$[$gR}WR#`!]R#{#_R!S[R!}!R", | ||
nodeNames: "⚠ Script ForExpression Name for InExpressions InExpression InExtractor in IterationContext return IfExpression if then else QuantifiedExpression some every InExpressions InExpression satisfies Disjunction or Conjunction and Comparison CompareOp CompareOp between InTester PositiveUnaryTest ( PositiveUnaryTests ) ArithmeticExpression ArithOp ArithOp ArithOp ArithOp UnaryExpression InstanceOf Type QualifiedName PathExpression FilterExpression [ ] FunctionInvocation Parameters NamedParameters ParameterName PositionalParameters null NumericLiteral StringLiteral BooleanLiteral DateTimeLiteral ? SuperSimplePositiveUnaryTest Interval ParenthesizedExpression List FunctionDefinition function FormalParameter external Context { ContextEntry Key }", | ||
nodeProps: [ | ||
@@ -14,8 +14,7 @@ [NodeProp.top, 1,true] | ||
repeatNodeCount: 9, | ||
tokenData: "8R~R{XY#xY^#xpq#xqr$mrs$xxy%Zyz%`z{%e{|%r|}%w}!O%|!O!P'Q!P!Q'b!Q![&g![!]'g!^!_'l!_!`$s!`!a'y!a!b(R!c!}(R!}#O)X#P#Q)^#Q#R%m#R#S(R#T#W(R#W#X)c#X#Y(R#Y#Z,m#Z#](R#]#^/|#^#h(R#h#i5s#i#o(R#o#p7w#q#r7|#y#z#x$f$g#x#BY#BZ#x$IS$I_#x$I|$JO#x$JT$JU#x$KV$KW#x&FU&FV#x~#}Y!m~X^#xpq#x#y#z#x$f$g#x#BY#BZ#x$IS$I_#x$I|$JO#x$JT$JU#x$KV$KW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$Je$Jg(m~1eXR~!Q![(m!a!b(m!c!}(m#R#S(m#T#h(m#h#i2Q#i#o(m1p4U(m$Je$Jg(m~2VWR~!Q![(m!a!b(m!c!}(m#R#S(m#T#U2o#U#o(m1p4U(m$Je$Jg(m~2tXR~!Q![(m!a!b(m!c!}(m#R#S(m#T#b(m#b#c3a#c#o(m1p4U(m$Je$Jg(m~3fXR~!Q![(m!a!b(m!c!}(m#R#S(m#T#V(m#V#W4R#W#o(m1p4U(m$Je$Jg(m~4WXR~!Q![(m!a!b(m!c!}(m#R#S(m#T#X(m#X#Y4s#Y#o(m1p4U(m$Je$Jg(m~4xWR~pq5b!Q![(m!a!b(m!c!}(m#R#S(m#T#o(m1p4U(m$Je$Jg(m~5eP#c#d5h~5kP#Y#Z5n~5sO!|~~5xXR~!Q![(m!a!b(m!c!}(m#R#S(m#T#f(m#f#g6e#g#o(m1p4U(m$Je$Jg(m~6jXR~!Q![(m!a!b(m!c!}(m#R#S(m#T#i(m#i#j7V#j#o(m1p4U(m$Je$Jg(m~7[XR~!Q![(m!a!b(m!c!}(m#R#S(m#T#X(m#X#Y/`#Y#o(m1p4U(m$Je$Jg(m~7|O!e~~8RO!h~", | ||
tokenizers: [0], | ||
specializeTable: 3247, | ||
specializations: [{for:8, in:16, return:20, if:24, then:26, else:28, some:32, every:34, satisfies:40, or:44, and:48, between:56, null:96, "?":106, function:116, external:120}], | ||
tokenPrec: 3239, | ||
termNames: {"0":"⚠","1":"@top","2":"ForExpression","3":"Name","4":"Name/\"for\"","5":"InExpressions<IterationContext>","6":"InExpression<IterationContext>","7":"InExtractor","8":"Name/\"in\"","9":"IterationContext","10":"Name/\"return\"","11":"IfExpression","12":"Name/\"if\"","13":"Name/\"then\"","14":"Name/\"else\"","15":"QuantifiedExpression","16":"Name/\"some\"","17":"Name/\"every\"","18":"InExpressions<expression>","19":"InExpression<expression>","20":"Name/\"satisfies\"","21":"Disjunction","22":"Name/\"or\"","23":"Conjunction","24":"Name/\"and\"","25":"Comparison","26":"CompareOp<\"=\" | \"!=\">","27":"CompareOp<Gt | Gte | Lt | Lte>","28":"Name/\"between\"","29":"InTester","30":"PositiveUnaryTest","31":"PositiveUnaryTests","32":"ArithmeticExpression","33":"ArithOp<\"+\">","34":"Minus","35":"ArithOp<\"*\" | \"/\">","36":"ArithOp<\"^\" | \"**\">","37":"UnaryExpression","38":"InstanceOf","39":"Type","40":"QualifiedName","41":"PathExpression","42":"FilterExpression","43":"FunctionInvocation","44":"Parameters","45":"NamedParameters","46":"ParameterName","47":"PositionalParameters","48":"Name/\"null\"","49":"NumericLiteral","50":"StringLiteral","51":"BooleanLiteral","52":"DateTimeLiteral","53":"Name/\"?\"","54":"SuperSimplePositiveUnaryTest","55":"Interval","56":"List","57":"FunctionDefinition","58":"Name/\"function\"","59":"FormalParameter","60":"Name/\"external\"","61":"Context","62":"ContextEntry","63":"Key","64":"expression+","65":"(\",\" InExpression<IterationContext>)*","66":"(\",\" InExpression<expression>)*","67":"(\",\" PositiveUnaryTest)*","68":"(\".\" Name)*","69":"(\",\" ParameterName \":\" expression)*","70":"(\",\" expression)*","71":"(\",\" FormalParameter)*","72":"(\",\" ContextEntry)*","73":"␄","74":"%mainskip","75":"whitespace","76":"expression","77":"textualExpression","78":"\"..\"","79":"(\",\" InExpression<IterationContext>)*-wrap","80":"\",\"","81":"(\",\" InExpression<expression>)*-wrap","82":"\"(\"","83":"(\",\" PositiveUnaryTest)*-wrap","84":"\")\"","85":"instanceOf","86":"(\".\" Name)*-wrap","87":"\".\"","88":"\"[\"","89":"\"]\"","90":"commaSep1<ParameterName \":\" expression>","91":"\":\"","92":"(\",\" ParameterName \":\" expression)*-wrap","93":"(\",\" expression)*-wrap","94":"literal","95":"simpleLiteral","96":"endpoint","97":"boxedExpression","98":"commaSep<expression>","99":"commaSep<FormalParameter>","100":"(\",\" FormalParameter)*-wrap","101":"\"{\"","102":"commaSep<ContextEntry>","103":"(\",\" ContextEntry)*-wrap","104":"\"}\""} | ||
specializations: [{for:8, in:16, return:20, if:24, then:26, else:28, some:32, every:34, satisfies:40, or:44, and:48, between:56, null:104, "?":114, function:126, external:130}], | ||
tokenPrec: 3239 | ||
}) |
@@ -14,27 +14,28 @@ // This file was generated by lezer-generator. You probably shouldn't edit it. | ||
PositiveUnaryTest = 30, | ||
PositiveUnaryTests = 31, | ||
ArithmeticExpression = 32, | ||
Minus = 34, | ||
UnaryExpression = 37, | ||
InstanceOf = 38, | ||
Type = 39, | ||
QualifiedName = 40, | ||
PathExpression = 41, | ||
FilterExpression = 42, | ||
FunctionInvocation = 43, | ||
Parameters = 44, | ||
NamedParameters = 45, | ||
ParameterName = 46, | ||
PositionalParameters = 47, | ||
NumericLiteral = 49, | ||
StringLiteral = 50, | ||
BooleanLiteral = 51, | ||
DateTimeLiteral = 52, | ||
SuperSimplePositiveUnaryTest = 54, | ||
Interval = 55, | ||
List = 56, | ||
FunctionDefinition = 57, | ||
FormalParameter = 59, | ||
Context = 61, | ||
ContextEntry = 62, | ||
Key = 63 | ||
PositiveUnaryTests = 32, | ||
ArithmeticExpression = 34, | ||
Minus = 36, | ||
UnaryExpression = 39, | ||
InstanceOf = 40, | ||
Type = 41, | ||
QualifiedName = 42, | ||
PathExpression = 43, | ||
FilterExpression = 44, | ||
FunctionInvocation = 47, | ||
Parameters = 48, | ||
NamedParameters = 49, | ||
ParameterName = 50, | ||
PositionalParameters = 51, | ||
NumericLiteral = 53, | ||
StringLiteral = 54, | ||
BooleanLiteral = 55, | ||
DateTimeLiteral = 56, | ||
SuperSimplePositiveUnaryTest = 58, | ||
Interval = 59, | ||
ParenthesizedExpression = 60, | ||
List = 61, | ||
FunctionDefinition = 62, | ||
FormalParameter = 64, | ||
Context = 66, | ||
ContextEntry = 68, | ||
Key = 69 |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
3933
244406