forked from kevin.shehu/GGD
46 lines
105 KiB
JavaScript
46 lines
105 KiB
JavaScript
|
var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t={exports:{}};const n=function(){let{onlyFirst:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")};var r={exports:{}};const i=e=>!Number.isNaN(e)&&(e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141));r.exports=i,r.exports.default=i;const s=e=>"string"==typeof e?e.replace(n(),""):e,u=r.exports,a=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\u
|
||
|
/**
|
||
|
* @license
|
||
|
* Copyright Google LLC All Rights Reserved.
|
||
|
*
|
||
|
* Use of this source code is governed by an MIT-style license that can be
|
||
|
* found in the LICENSE file at https://angular.io/license
|
||
|
*/
|
||
|
class ja{constructor(e,t,n,r){this.input=t,this.errLocation=n,this.ctxLocation=r,this.message="Parser Error: ".concat(e," ").concat(n," [").concat(t,"] in ").concat(r)}}class Ga{constructor(e,t){this.start=e,this.end=t}toAbsolute(e){return new ho(e+this.start,e+this.end)}}class Ka{constructor(e,t){this.span=e,this.sourceSpan=t}toString(){return"AST"}}class Ua extends Ka{constructor(e,t,n){super(e,t),this.nameSpan=n}}class Wa extends Ka{constructor(e,t,n,r,i){super(e,t),this.prefix=n,this.uninterpretedExpression=r,this.location=i}visit(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.visitQuote(this,t)}toString(){return"Quote"}}class $a extends Ka{visit(e){}}class Va extends Ka{visit(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.visitImplicitReceiver(this,t)}}class Xa extends Va{visit(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;var n;return null===(n=e.visitThisReceiver)||void 0===n?void 0:n.call(e,this,t)}}class za extends Ka{constructor(e,t,n){super(e,t),this.expressions=n}visit(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.visitChain(this,t)}}class qa extends Ka{constructor(e,t,n,r,i){super(e,t),this.condition=n,this.trueExp=r,this.falseExp=i}visit(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.visitConditional(this,t)}}class Qa extends Ua{constructor(e,t,n,r,i){super(e,t,n),this.receiver=r,this.name=i}visit(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.visitPropertyRead(this,t)}}class Ya extends Ua{constructor(e,t,n,r,i,s){super(e,t,n),this.receiver=r,this.name=i,this.value=s}visit(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.visitPropertyWrite(this,t)}}class Ha extends Ua{constructor(e,t,n,r,i){super(e,t,n),this.receiver=r,this.name=i}visit(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.visitSafePropertyRead(this,t)}}class Ja extends Ka{constructor(e,t,n,r){super(e,t),this.receiver=n,this.key=r}visit(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.visitKeyedRead(this,t)}}class Za extends Ka{constructor(e,t,n,r){super(e,t),this.receiver=n,this.key=r}visit(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.visitSafeKeyedRead(this,t)}}class eo extends Ka{constructor(e,t,n,r,i){super(e,t),this.receiver=n,this.key=r,this.value=i}visit(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.visitKeyedWrite(this,t)}}class to extends Ua{constructor(e,t,n,r,i,s){super(e,t,s),this.exp=n,this.name=r,this.args=i}visit(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.visitPipe(this,t)}}class no extends Ka{constructor(e,t,n){super(e,t),this.value=n}visit(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.visitLiteralPrimitive(this,t)}}class ro extends Ka{constructor(e,t,n){super(e,t),this.expressions=n}visit(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.visitLiteralArray(this,t)}}class io extends Ka{constructor(e,t,n,r){super(e,t),this.keys=n,this.values=r}visit(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.visitLiteralMap(this,t)}}class so extends Ka{constructor(e,t,n,r){super(e,t),this.strings=n,this.expressions=r}visit(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.visitInterpolation(this,t)}}class uo extends Ka{constructor(e,t,n,r,i){super(e,t),this.operation=n,this.left=r,this.right=i}visit(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.visitBinary(this,t)}}class ao extends uo{constructor(e,t,n,r,i,s,u){super(e,t,i,s,u),this.operator=n,this.expr=r}static createMinus(e,t,n){return new ao(e,t,"-",n,"-",new no(e,t,0),n)}static createPlus(e,t,n){return new ao(e,t,"+",n,"-",n,new no(e,t,0))}visit(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return void 0!==e.visitUnary?e.visitUnary(this,t):e.visitBinary(this,t
|
||
|
/**
|
||
|
* @license
|
||
|
* Copyright Google LLC All Rights Reserved.
|
||
|
*
|
||
|
* Use of this source code is governed by an MIT-style license that can be
|
||
|
* found in the LICENSE file at https://angular.io/license
|
||
|
*/function Fo(e){return 48<=e&&e<=57}function mo(e){return 39===e||34===e||96===e}
|
||
|
/**
|
||
|
* @license
|
||
|
* Copyright Google LLC All Rights Reserved.
|
||
|
*
|
||
|
* Use of this source code is governed by an MIT-style license that can be
|
||
|
* found in the LICENSE file at https://angular.io/license
|
||
|
*/var yo;!function(e){e[e.Character=0]="Character",e[e.Identifier=1]="Identifier",e[e.PrivateIdentifier=2]="PrivateIdentifier",e[e.Keyword=3]="Keyword",e[e.String=4]="String",e[e.Operator=5]="Operator",e[e.Number=6]="Number",e[e.Error=7]="Error"}(yo||(yo={}));const xo=["var","let","as","null","undefined","true","false","if","else","this"];class Ao{constructor(e,t,n,r,i){this.index=e,this.end=t,this.type=n,this.numValue=r,this.strValue=i}isCharacter(e){return this.type==yo.Character&&this.numValue==e}isNumber(){return this.type==yo.Number}isString(){return this.type==yo.String}isOperator(e){return this.type==yo.Operator&&this.strValue==e}isIdentifier(){return this.type==yo.Identifier}isPrivateIdentifier(){return this.type==yo.PrivateIdentifier}isKeyword(){return this.type==yo.Keyword}isKeywordLet(){return this.type==yo.Keyword&&"let"==this.strValue}isKeywordAs(){return this.type==yo.Keyword&&"as"==this.strValue}isKeywordNull(){return this.type==yo.Keyword&&"null"==this.strValue}isKeywordUndefined(){return this.type==yo.Keyword&&"undefined"==this.strValue}isKeywordTrue(){return this.type==yo.Keyword&&"true"==this.strValue}isKeywordFalse(){return this.type==yo.Keyword&&"false"==this.strValue}isKeywordThis(){return this.type==yo.Keyword&&"this"==this.strValue}isError(){return this.type==yo.Error}toNumber(){return this.type==yo.Number?this.numValue:-1}toString(){switch(this.type){case yo.Character:case yo.Identifier:case yo.Keyword:case yo.Operator:case yo.PrivateIdentifier:case yo.String:case yo.Error:return this.strValue;case yo.Number:return this.numValue.toString();default:return null}}}function So(e,t,n){return new Ao(e,t,yo.Character,n,String.fromCharCode(n))}function wo(e,t,n){return new Ao(e,t,yo.Operator,0,n)}const Io=new Ao(-1,-1,yo.Character,0,"");class Oo{constructor(e){this.input=e,this.peek=0,this.index=-1,this.length=e.length,this.advance()}advance(){this.peek=++this.index>=this.length?0:this.input.charCodeAt(this.index)}scanToken(){const e=this.input,t=this.length;let n=this.peek,r=this.index;for(;n<=32;){if(++r>=t){n=0;break}n=e.charCodeAt(r)}if(this.peek=n,this.index=r,r>=t)return null;if(bo(n))return this.scanIdentifier();if(Fo(n))return this.scanNumber(r);const i=r;switch(n){case 46:return this.advance(),Fo(this.peek)?this.scanNumber(i):So(i,this.index,46);case 40:case 41:case 123:case 125:case 91:case 93:case 44:case 58:case 59:return this.scanCharacter(i,n);case 39:case 34:return this.scanString();case 35:return this.scanPrivateIdentifier();case 43:case 45:case 42:case 47:case 37:case 94:return this.scanOperator(i,String.fromCharCode(n));case 63:return this.scanQuestion(i);case 60:case 62:return this.scanComplexOperator(i,String.fromCharCode(n),61,"=");case 33:case 61:return this.scanComplexOperator(i,String.fromCharCode(n),61,"=",61,"=");case 38:return this.scanComplexOperator(i,"&",38,"&");case 124:return this.scanComplexOperator(i,"|",124,"|");case 160:for(;(s=this.peek)>=9&&s<=32||160==s;)this.advance();return this.scanToken()}var s;return this.advance(),this.error("Unexpected character [".concat(String.fromCharCode(n),"]"),0)}scanCharacter(e,t){return this.advance(),So(e,this.index,t)}scanOperator(e,t){return this.advance(),wo(e,this.index,t)}scanComplexOperator(e,t,n,r,i,s){this.advance();let u=t;return this.peek==n&&(this.advance(),u+=r),null!=i&&this.peek==i&&(this.advance(),u+=s),wo(e,this.index,u)}scanIdentifier(){const e=this.index;for(this.advance();Bo(this.peek);)this.advance();const t=this.input.substring(e,this.index);return xo.indexOf(t)>-1?(n=e,r=this.index,i=t,new Ao(n,r,yo.Keyword,0,i)):function(e,t,n){return new Ao(e,t,yo.Identifier,0,n)}(e,this.index,t);var n,r,i}scanPrivateIdentifier(){const e=this.index;if(this.advance(),!bo(this.peek))return this.error("Invalid character [#]",-1);for(;Bo(this.peek);)this.advance();const t=this.input.substring(e,this.index);return n=e,r=this.index,i=t,new Ao(n,r,yo.PrivateIdentifier,0,i);var n,r,i}scanNumber(e){let t=this.index===e,n=!1;for(this.advance();;){if(Fo(this.peek));else if(95===this.peek){if(!Fo(this.input.charCodeAt(this.index-1))||!F
|
||
|
/**
|
||
|
* @license
|
||
|
* Copyright Google LLC All Rights Reserved.
|
||
|
*
|
||
|
* Use of this source code is governed by an MIT-style license that can be
|
||
|
* found in the LICENSE file at https://angular.io/license
|
||
|
*/const Lo=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];
|
||
|
/**
|
||
|
* @license
|
||
|
* Copyright Google LLC All Rights Reserved.
|
||
|
*
|
||
|
* Use of this source code is governed by an MIT-style license that can be
|
||
|
* found in the LICENSE file at https://angular.io/license
|
||
|
*/
|
||
|
class ko{constructor(e,t){this.start=e,this.end=t}static fromArray(e){return e?(function(e,t){if(!(null==t||Array.isArray(t)&&2==t.length))throw new Error("Expected '".concat(e,"' to be an array, [start, end]."));if(null!=t){const e=t[0],n=t[1];Lo.forEach((t=>{if(t.test(e)||t.test(n))throw new Error("['".concat(e,"', '").concat(n,"'] contains unusable interpolation symbol."))}))}}("interpolation",e),new ko(e[0],e[1])):_o}}const _o=new ko("{{","}}");
|
||
|
/**
|
||
|
* @license
|
||
|
* Copyright Google LLC All Rights Reserved.
|
||
|
*
|
||
|
* Use of this source code is governed by an MIT-style license that can be
|
||
|
* found in the LICENSE file at https://angular.io/license
|
||
|
*/class Mo{constructor(e,t,n){this.strings=e,this.expressions=t,this.offsets=n}}class jo{constructor(e,t,n){this.templateBindings=e,this.warnings=t,this.errors=n}}class Go{constructor(e){this._lexer=e,this.errors=[],this.simpleExpressionChecker=Wo}parseAction(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:_o;this._checkNoInterpolation(e,t,r);const i=this._stripComments(e),s=this._lexer.tokenize(this._stripComments(e)),u=new Uo(e,t,n,s,i.length,!0,this.errors,e.length-i.length).parseChain();return new fo(u,e,t,n,this.errors)}parseBinding(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:_o;const i=this._parseBindingAst(e,t,n,r);return new fo(i,e,t,n,this.errors)}checkSimpleExpression(e){const t=new this.simpleExpressionChecker;return e.visit(t),t.errors}parseSimpleBinding(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:_o;const i=this._parseBindingAst(e,t,n,r),s=this.checkSimpleExpression(i);return s.length>0&&this._reportError("Host binding expression cannot contain ".concat(s.join(" ")),e,t),new fo(i,e,t,n,this.errors)}_reportError(e,t,n,r){this.errors.push(new ja(e,t,n,r))}_parseBindingAst(e,t,n,r){const i=this._parseQuote(e,t,n);if(null!=i)return i;this._checkNoInterpolation(e,t,r);const s=this._stripComments(e),u=this._lexer.tokenize(s);return new Uo(e,t,n,u,s.length,!1,this.errors,e.length-s.length).parseChain()}_parseQuote(e,t,n){if(null==e)return null;const r=e.indexOf(":");if(-1==r)return null;const i=e.substring(0,r).trim();if(!No(i))return null;const s=e.substring(r+1),u=new Ga(0,e.length);return new Wa(u,u.toAbsolute(n),i,s,t)}parseTemplateBindings(e,t,n,r,i){const s=this._lexer.tokenize(t);return new Uo(t,n,i,s,t.length,!1,this.errors,0).parseTemplateBindings({source:e,span:new ho(r,r+e.length)})}parseInterpolation(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:_o;const{strings:i,expressions:s,offsets:u}=this.splitInterpolation(e,t,r);if(0===s.length)return null;const a=[];for(let r=0;r<s.length;++r){const i=s[r].text,o=this._stripComments(i),c=this._lexer.tokenize(o),D=new Uo(e,t,n,c,o.length,!1,this.errors,u[r]+(i.length-o.length)).parseChain();a.push(D)}return this.createInterpolationAst(i.map((e=>e.text)),a,e,t,n)}parseInterpolationExpression(e,t,n){const r=this._stripComments(e),i=this._lexer.tokenize(r),s=new Uo(e,t,n,i,r.length,!1,this.errors,0).parseChain();return this.createInterpolationAst(["",""],[s],e,t,n)}createInterpolationAst(e,t,n,r,i){const s=new Ga(0,n.length),u=new so(s,s.toAbsolute(i),e,t);return new fo(u,n,r,i,this.errors)}splitInterpolation(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_o;const r=[],i=[],s=[];let u=0,a=!1,o=!1,{start:c,end:D}=n;for(;u<e.length;)if(a){const n=u,r=n+c.length,l=this._getInterpolationEndIndex(e,D,r);if(-1===l){a=!1,o=!0;break}const p=l+D.length,h=e.substring(r,l);0===h.trim().length&&this._reportError("Blank expressions are not allowed in interpolated strings",e,"at column ".concat(u," in"),t),i.push({text:h,start:n,end:p}),s.push(r),u=p,a=!1}else{const t=u;u=e.indexOf(c,u),-1===u&&(u=e.length);const n=e.substring(t,u);r.push({text:n,start:t,end:u}),a=!0}if(!a)if(o){const t=r[r.length-1];t.text+=e.substring(u),t.end=e.length}else r.push({text:e.substring(u),start:u,end:e.length});return new Mo(r,i,s)}wrapLiteralPrimitive(e,t,n){const r=new Ga(0,null==e?0:e.length);return new fo(new no(r,r.toAbsolute(n),e),e,t,n,this.errors)}_stripComments(e){const t=this._commentStart(e);return null!=t?e.substring(0,t).trim():e}_commentStart(e){let t=null;for(let n=0;n<e.length-1;n++){const r=e.charCodeAt(n),i=e.charCodeAt(n+1);if(47===r&&47==i&&null==t)return n;t===r?t=null:null==t&&mo(r)&&(t=r)}return null}_checkNoInterpolation(e,t,n){let{start:r,end:i}=n,s=-1,u=-1;for(const t of this._forEachUnquotedChar(e,0))if(-1===s)e.startsWith(r)&&(s=t);else if(u=this._getInterpolationEndIndex(e,i,t),u>-1)break;s>-1&&u>-1&&this._reportError("Got interpolation (".concat(r).concat(i,") where expression was expected"),e,"at column ".concat(s," in"),t)}_getInterpolationEndIndex(e,t,n){fo
|