prettier 3.9.4 → 3.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD-PARTY-NOTICES.md +33 -27
- package/index.cjs +1 -1
- package/index.mjs +2 -3
- package/internal/experimental-cli.mjs +1 -1
- package/package.json +1 -1
- package/plugins/angular.js +1 -1
- package/plugins/angular.mjs +1 -1
- package/plugins/estree.js +32 -32
- package/plugins/estree.mjs +32 -32
- package/plugins/flow.js +5 -5
- package/plugins/flow.mjs +5 -5
- package/plugins/html.js +8 -8
- package/plugins/html.mjs +8 -8
- package/plugins/markdown.js +56 -56
- package/plugins/markdown.mjs +56 -56
- package/plugins/meriyah.js +4 -4
- package/plugins/meriyah.mjs +4 -4
- package/plugins/postcss.js +33 -33
- package/plugins/postcss.mjs +31 -31
- package/standalone.js +2 -2
- package/standalone.mjs +2 -2
package/THIRD-PARTY-NOTICES.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
The published Prettier artifact additionally contains code with the following licenses:
|
|
4
4
|
MIT, ISC, BSD-3-Clause, Apache-2.0, BSD-2-Clause, and BlueOak-1.0.0.
|
|
5
5
|
|
|
6
|
-
## @angular/compiler@v22.0.
|
|
6
|
+
## @angular/compiler@v22.0.6
|
|
7
7
|
|
|
8
8
|
> Angular - the compiler library
|
|
9
9
|
|
|
@@ -133,6 +133,30 @@ Author: The Babel Team (https://babel.dev/team)
|
|
|
133
133
|
|
|
134
134
|
----------------------------------------
|
|
135
135
|
|
|
136
|
+
## @braindb/mdast-util-wiki-link@v0.2.0
|
|
137
|
+
|
|
138
|
+
> Parse and render wiki-style links
|
|
139
|
+
|
|
140
|
+
License: MIT
|
|
141
|
+
Repository: <git+https://github.com/stereobooster/braindb.git>
|
|
142
|
+
Contributors:
|
|
143
|
+
- Mark Hudnall <me@markhudnall.com> (https://markhudnall.com)
|
|
144
|
+
- stereobooster
|
|
145
|
+
|
|
146
|
+
----------------------------------------
|
|
147
|
+
|
|
148
|
+
## @braindb/micromark-extension-wiki-link@v0.1.0
|
|
149
|
+
|
|
150
|
+
> Parse and render wiki-style links
|
|
151
|
+
|
|
152
|
+
License: MIT
|
|
153
|
+
Repository: <git+https://github.com/stereobooster/braindb.git>
|
|
154
|
+
Contributors:
|
|
155
|
+
- Mark Hudnall <me@markhudnall.com> (https://markhudnall.com)
|
|
156
|
+
- stereobooster
|
|
157
|
+
|
|
158
|
+
----------------------------------------
|
|
159
|
+
|
|
136
160
|
## @cacheable/memory@v2.2.0
|
|
137
161
|
|
|
138
162
|
> High Performance In-Memory Cache for Node.js
|
|
@@ -490,7 +514,7 @@ Author: Alex Bell <alex@bellandwhistle.net>
|
|
|
490
514
|
|
|
491
515
|
----------------------------------------
|
|
492
516
|
|
|
493
|
-
## @typescript-eslint/types@v8.
|
|
517
|
+
## @typescript-eslint/types@v8.63.0
|
|
494
518
|
|
|
495
519
|
> Types for the TypeScript-ESTree AST spec
|
|
496
520
|
|
|
@@ -522,7 +546,7 @@ Repository: <https://github.com/typescript-eslint/typescript-eslint.git>
|
|
|
522
546
|
|
|
523
547
|
----------------------------------------
|
|
524
548
|
|
|
525
|
-
## @typescript-eslint/typescript-estree@v8.
|
|
549
|
+
## @typescript-eslint/typescript-estree@v8.63.0
|
|
526
550
|
|
|
527
551
|
> A parser that converts TypeScript source code into an ESTree compatible form
|
|
528
552
|
|
|
@@ -648,7 +672,7 @@ Author: Ika <ikatyang@gmail.com> (https://github.com/ikatyang)
|
|
|
648
672
|
|
|
649
673
|
----------------------------------------
|
|
650
674
|
|
|
651
|
-
## angular-html-parser@v10.
|
|
675
|
+
## angular-html-parser@v10.11.0
|
|
652
676
|
|
|
653
677
|
> A HTML parser extracted from Angular with some modifications
|
|
654
678
|
|
|
@@ -2344,7 +2368,7 @@ Contributors:
|
|
|
2344
2368
|
|
|
2345
2369
|
----------------------------------------
|
|
2346
2370
|
|
|
2347
|
-
## flow-estree@v0.
|
|
2371
|
+
## flow-estree@v0.322.0
|
|
2348
2372
|
|
|
2349
2373
|
> Flow types for the Flow-ESTree spec produced by the Flow Rust parser, forked from hermes-estree.
|
|
2350
2374
|
|
|
@@ -2355,7 +2379,7 @@ Author: Flow Team <flow@fb.com>
|
|
|
2355
2379
|
|
|
2356
2380
|
----------------------------------------
|
|
2357
2381
|
|
|
2358
|
-
## flow-parser@v0.
|
|
2382
|
+
## flow-parser@v0.322.0
|
|
2359
2383
|
|
|
2360
2384
|
> JavaScript parser written in OCaml. Produces ESTree AST
|
|
2361
2385
|
|
|
@@ -2552,7 +2576,7 @@ License: MIT
|
|
|
2552
2576
|
|
|
2553
2577
|
----------------------------------------
|
|
2554
2578
|
|
|
2555
|
-
## graphql@v17.0.
|
|
2579
|
+
## graphql@v17.0.2
|
|
2556
2580
|
|
|
2557
2581
|
> A Query Language and Runtime which can target any service.
|
|
2558
2582
|
|
|
@@ -4309,15 +4333,6 @@ Contributors:
|
|
|
4309
4333
|
|
|
4310
4334
|
----------------------------------------
|
|
4311
4335
|
|
|
4312
|
-
## mdast-util-wiki-link@v0.1.2
|
|
4313
|
-
|
|
4314
|
-
> Parse and render wiki-style links
|
|
4315
|
-
|
|
4316
|
-
License: MIT
|
|
4317
|
-
Author: Mark Hudnall <me@markhudnall.com> (https://markhudnall.com)
|
|
4318
|
-
|
|
4319
|
-
----------------------------------------
|
|
4320
|
-
|
|
4321
4336
|
## merge2@v1.4.1
|
|
4322
4337
|
|
|
4323
4338
|
> Merge multiple streams into one stream in sequence or parallel.
|
|
@@ -4350,7 +4365,7 @@ Repository: <git@github.com:teambition/merge2.git>
|
|
|
4350
4365
|
|
|
4351
4366
|
----------------------------------------
|
|
4352
4367
|
|
|
4353
|
-
## meriyah@v7.1.
|
|
4368
|
+
## meriyah@v7.1.1
|
|
4354
4369
|
|
|
4355
4370
|
> A 100% compliant, self-hosted javascript parser with high focus on both performance and stability
|
|
4356
4371
|
|
|
@@ -4711,15 +4726,6 @@ Contributors:
|
|
|
4711
4726
|
|
|
4712
4727
|
----------------------------------------
|
|
4713
4728
|
|
|
4714
|
-
## micromark-extension-wiki-link@v0.0.4
|
|
4715
|
-
|
|
4716
|
-
> Parse and render wiki-style links
|
|
4717
|
-
|
|
4718
|
-
License: MIT
|
|
4719
|
-
Author: Mark Hudnall <me@markhudnall.com> (https://markhudnall.com)
|
|
4720
|
-
|
|
4721
|
-
----------------------------------------
|
|
4722
|
-
|
|
4723
4729
|
## micromark-factory-destination@v2.0.1
|
|
4724
4730
|
|
|
4725
4731
|
> micromark factory to parse destinations (found in resources, definitions)
|
|
@@ -5761,7 +5767,7 @@ Author: typicode
|
|
|
5761
5767
|
|
|
5762
5768
|
----------------------------------------
|
|
5763
5769
|
|
|
5764
|
-
## postcss@v8.5.
|
|
5770
|
+
## postcss@v8.5.16
|
|
5765
5771
|
|
|
5766
5772
|
> Tool for transforming styles with JS plugins
|
|
5767
5773
|
|
package/index.cjs
CHANGED
package/index.mjs
CHANGED
|
@@ -16359,11 +16359,11 @@ function attachComments(ast, options7) {
|
|
|
16359
16359
|
args = [comment, text2, options8, ast2, isLastComment];
|
|
16360
16360
|
}
|
|
16361
16361
|
if (attachPropertiesToComment) {
|
|
16362
|
-
comment.placement = placement;
|
|
16363
16362
|
comment.enclosingNode = enclosingNode;
|
|
16364
16363
|
comment.precedingNode = precedingNode;
|
|
16365
16364
|
comment.followingNode = followingNode;
|
|
16366
16365
|
}
|
|
16366
|
+
comment.placement = placement;
|
|
16367
16367
|
if (placement === "ownLine") {
|
|
16368
16368
|
if (handleOwnLineComment(...args)) {
|
|
16369
16369
|
} else if (followingNode) {
|
|
@@ -16414,7 +16414,6 @@ function attachComments(ast, options7) {
|
|
|
16414
16414
|
delete comment.precedingNode;
|
|
16415
16415
|
delete comment.enclosingNode;
|
|
16416
16416
|
delete comment.followingNode;
|
|
16417
|
-
delete comment.placement;
|
|
16418
16417
|
}
|
|
16419
16418
|
}
|
|
16420
16419
|
}
|
|
@@ -18741,7 +18740,7 @@ var get_file_info_default = getFileInfo;
|
|
|
18741
18740
|
import * as doc from "./doc.mjs";
|
|
18742
18741
|
|
|
18743
18742
|
// src/main/version.evaluate.js
|
|
18744
|
-
var version_evaluate_default = "3.9.
|
|
18743
|
+
var version_evaluate_default = "3.9.5";
|
|
18745
18744
|
|
|
18746
18745
|
// src/utilities/public.js
|
|
18747
18746
|
var public_exports = {};
|
package/package.json
CHANGED
package/plugins/angular.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
`&&++u==n)););for(a=0,u=0;a<e&&r<s.length-1&&(r++,a++,!(s[r]==`
|
|
3
3
|
`&&++u==n)););return{before:s.substring(i,this.offset),after:s.substring(this.offset,r+1)}}return null}},et=class{content;url;constructor(e,n){this.content=e,this.url=n}},tt=class{start;end;fullStart;details;constructor(e,n,s=e,i=null){this.start=e,this.end=n,this.fullStart=s,this.details=i}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}},nt;(function(t){t[t.WARNING=0]="WARNING",t[t.ERROR=1]="ERROR"})(nt||(nt={}));var Re=class extends Error{span;msg;level;relatedError;constructor(e,n,s=nt.ERROR,i){super(n),this.span=e,this.msg=n,this.level=s,this.relatedError=i,Object.setPrototypeOf(this,new.target.prototype)}contextualMessage(){let e=this.span.start.getContext(100,3);return e?`${this.msg} ("${e.before}[${nt[this.level]} ->]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}};var as;(function(t){t[t.Inline=0]="Inline",t[t.SideEffect=1]="SideEffect",t[t.Omit=2]="Omit"})(as||(as={}));var ls;(function(t){t[t.Global=0]="Global",t[t.Local=1]="Local",t[t.Isolated=2]="Isolated"})(ls||(ls={}));var cs;(function(t){t[t.Directive=0]="Directive",t[t.Pipe=1]="Pipe",t[t.NgModule=2]="NgModule"})(cs||(cs={}));var qr="(:(where|is)\\()?";var Qs="-shadowcsshost",jr="-shadowcsscontext",nn="[^)(]*",zr=`(?:\\(${nn}\\)|${nn})+?`,Gr=`(?:\\(${zr}\\)|${nn})+?`,dn=`(?:\\((${Gr})\\))`,da=new RegExp("(:nth-[-\\w]+)"+dn,"g"),ma=new RegExp(Qs+dn+"?([^,{]*)","gim"),Xr=jr+dn+"([^{]*)",ga=new RegExp(`${qr}(${Xr})`,"gim"),Qr=Qs+"-no-combinator",va=new RegExp(`${Qr}(?![^(]*\\))`,"g");var Js="%COMMENT%",wa=new RegExp(Js,"g");var Sa=new RegExp(`(\\s*(?:${Js}\\s*)*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))`,"g");var Jr="%COMMA_IN_PLACEHOLDER%",Yr="%SEMI_IN_PLACEHOLDER%",Kr="%COLON_IN_PLACEHOLDER%",xa=new RegExp(Jr,"g"),ya=new RegExp(Yr,"g"),Ea=new RegExp(Kr,"g");var l;(function(t){t[t.ListEnd=0]="ListEnd",t[t.Statement=1]="Statement",t[t.Variable=2]="Variable",t[t.ElementStart=3]="ElementStart",t[t.Element=4]="Element",t[t.Template=5]="Template",t[t.ElementEnd=6]="ElementEnd",t[t.ContainerStart=7]="ContainerStart",t[t.Container=8]="Container",t[t.ContainerEnd=9]="ContainerEnd",t[t.DisableBindings=10]="DisableBindings",t[t.ConditionalCreate=11]="ConditionalCreate",t[t.ConditionalBranchCreate=12]="ConditionalBranchCreate",t[t.Conditional=13]="Conditional",t[t.EnableBindings=14]="EnableBindings",t[t.Text=15]="Text",t[t.Listener=16]="Listener",t[t.InterpolateText=17]="InterpolateText",t[t.Binding=18]="Binding",t[t.Property=19]="Property",t[t.StyleProp=20]="StyleProp",t[t.ClassProp=21]="ClassProp",t[t.StyleMap=22]="StyleMap",t[t.ClassMap=23]="ClassMap",t[t.Advance=24]="Advance",t[t.Pipe=25]="Pipe",t[t.Attribute=26]="Attribute",t[t.ExtractedAttribute=27]="ExtractedAttribute",t[t.Defer=28]="Defer",t[t.DeferOn=29]="DeferOn",t[t.DeferWhen=30]="DeferWhen",t[t.I18nMessage=31]="I18nMessage",t[t.DomProperty=32]="DomProperty",t[t.Namespace=33]="Namespace",t[t.ProjectionDef=34]="ProjectionDef",t[t.EnableIncrementalHydrationRuntime=35]="EnableIncrementalHydrationRuntime",t[t.Projection=36]="Projection",t[t.RepeaterCreate=37]="RepeaterCreate",t[t.Repeater=38]="Repeater",t[t.TwoWayProperty=39]="TwoWayProperty",t[t.TwoWayListener=40]="TwoWayListener",t[t.DeclareLet=41]="DeclareLet",t[t.StoreLet=42]="StoreLet",t[t.I18nStart=43]="I18nStart",t[t.I18n=44]="I18n",t[t.I18nEnd=45]="I18nEnd",t[t.I18nExpression=46]="I18nExpression",t[t.I18nApply=47]="I18nApply",t[t.IcuStart=48]="IcuStart",t[t.IcuEnd=49]="IcuEnd",t[t.IcuPlaceholder=50]="IcuPlaceholder",t[t.I18nContext=51]="I18nContext",t[t.I18nAttributes=52]="I18nAttributes",t[t.SourceLocation=53]="SourceLocation",t[t.Animation=54]="Animation",t[t.AnimationString=55]="AnimationString",t[t.AnimationBinding=56]="AnimationBinding",t[t.AnimationListener=57]="AnimationListener",t[t.Control=58]="Control",t[t.ControlCreate=59]="ControlCreate"})(l||(l={}));var te;(function(t){t[t.LexicalRead=0]="LexicalRead",t[t.Context=1]="Context",t[t.TrackContext=2]="TrackContext",t[t.ReadVariable=3]="ReadVariable",t[t.NextContext=4]="NextContext",t[t.Reference=5]="Reference",t[t.StoreLet=6]="StoreLet",t[t.ContextLetReference=7]="ContextLetReference",t[t.GetCurrentView=8]="GetCurrentView",t[t.RestoreView=9]="RestoreView",t[t.ResetView=10]="ResetView",t[t.PureFunctionExpr=11]="PureFunctionExpr",t[t.PureFunctionParameterExpr=12]="PureFunctionParameterExpr",t[t.PipeBinding=13]="PipeBinding",t[t.PipeBindingVariadic=14]="PipeBindingVariadic",t[t.SafePropertyRead=15]="SafePropertyRead",t[t.SafeKeyedRead=16]="SafeKeyedRead",t[t.SafeNavigationMigration=17]="SafeNavigationMigration",t[t.SafeTernaryExpr=18]="SafeTernaryExpr",t[t.EmptyExpr=19]="EmptyExpr",t[t.AssignTemporaryExpr=20]="AssignTemporaryExpr",t[t.ReadTemporaryExpr=21]="ReadTemporaryExpr",t[t.SlotLiteralExpr=22]="SlotLiteralExpr",t[t.ConditionalCase=23]="ConditionalCase",t[t.ConstCollected=24]="ConstCollected",t[t.TwoWayBindingSet=25]="TwoWayBindingSet",t[t.ArrowFunction=26]="ArrowFunction"})(te||(te={}));var us;(function(t){t[t.None=0]="None",t[t.AlwaysInline=1]="AlwaysInline"})(us||(us={}));var ps;(function(t){t[t.Context=0]="Context",t[t.Identifier=1]="Identifier",t[t.SavedView=2]="SavedView",t[t.Alias=3]="Alias"})(ps||(ps={}));var R;(function(t){t[t.Attribute=0]="Attribute",t[t.ClassName=1]="ClassName",t[t.StyleProperty=2]="StyleProperty",t[t.Property=3]="Property",t[t.Template=4]="Template",t[t.I18n=5]="I18n",t[t.LegacyAnimation=6]="LegacyAnimation",t[t.TwoWayProperty=7]="TwoWayProperty",t[t.Animation=8]="Animation"})(R||(R={}));var hs;(function(t){t[t.Creation=0]="Creation",t[t.Postproccessing=1]="Postproccessing"})(hs||(hs={}));var fs;(function(t){t[t.I18nText=0]="I18nText",t[t.I18nAttribute=1]="I18nAttribute"})(fs||(fs={}));var ds;(function(t){t[t.None=0]="None",t[t.ElementTag=1]="ElementTag",t[t.TemplateTag=2]="TemplateTag",t[t.OpenTag=4]="OpenTag",t[t.CloseTag=8]="CloseTag",t[t.ExpressionIndex=16]="ExpressionIndex"})(ds||(ds={}));var ms;(function(t){t[t.HTML=0]="HTML",t[t.SVG=1]="SVG",t[t.Math=2]="Math"})(ms||(ms={}));var O;(function(t){t[t.Idle=0]="Idle",t[t.Immediate=1]="Immediate",t[t.Timer=2]="Timer",t[t.Hover=3]="Hover",t[t.Interaction=4]="Interaction",t[t.Viewport=5]="Viewport",t[t.Never=6]="Never"})(O||(O={}));var gs;(function(t){t[t.RootI18n=0]="RootI18n",t[t.Icu=1]="Icu",t[t.Attr=2]="Attr"})(gs||(gs={}));var vs;(function(t){t[t.NgTemplate=0]="NgTemplate",t[t.Structural=1]="Structural",t[t.Block=2]="Block"})(vs||(vs={}));var sn=class t{static nextListId=0;debugListId=t.nextListId++;head={kind:l.ListEnd,next:null,prev:null,debugListId:this.debugListId};tail={kind:l.ListEnd,next:null,prev:null,debugListId:this.debugListId};constructor(){this.head.next=this.tail,this.tail.prev=this.head}push(e){if(Array.isArray(e)){for(let s of e)this.push(s);return}t.assertIsNotEnd(e),t.assertIsUnowned(e),e.debugListId=this.debugListId;let n=this.tail.prev;e.prev=n,n.next=e,e.next=this.tail,this.tail.prev=e}prepend(e){if(e.length===0)return;for(let i of e)t.assertIsNotEnd(i),t.assertIsUnowned(i),i.debugListId=this.debugListId;let n=this.head.next,s=this.head;for(let i of e)s.next=i,i.prev=s,s=i;s.next=n,n.prev=s}*[Symbol.iterator](){let e=this.head.next;for(;e!==this.tail;){t.assertIsOwned(e,this.debugListId);let n=e.next;yield e,e=n}}*reversed(){let e=this.tail.prev;for(;e!==this.head;){t.assertIsOwned(e,this.debugListId);let n=e.prev;yield e,e=n}}static replace(e,n){t.assertIsNotEnd(e),t.assertIsNotEnd(n),t.assertIsOwned(e),t.assertIsUnowned(n),n.debugListId=e.debugListId,e.prev!==null&&(e.prev.next=n,n.prev=e.prev),e.next!==null&&(e.next.prev=n,n.next=e.next),e.debugListId=null,e.prev=null,e.next=null}static replaceWithMany(e,n){if(n.length===0){t.remove(e);return}t.assertIsNotEnd(e),t.assertIsOwned(e);let s=e.debugListId;e.debugListId=null;for(let d of n)t.assertIsNotEnd(d),t.assertIsUnowned(d);let{prev:i,next:r}=e;e.prev=null,e.next=null;let a=i;for(let d of n)t.assertIsUnowned(d),d.debugListId=s,a.next=d,d.prev=a,d.next=null,a=d;let u=n[0],h=a;i!==null&&(i.next=u,u.prev=i),r!==null&&(r.prev=h,h.next=r)}static remove(e){t.assertIsNotEnd(e),t.assertIsOwned(e),e.prev.next=e.next,e.next.prev=e.prev,e.debugListId=null,e.prev=null,e.next=null}static insertBefore(e,n){if(Array.isArray(e)){for(let s of e)t.insertBefore(s,n);return}if(t.assertIsOwned(n),n.prev===null)throw new Error("AssertionError: illegal operation on list start");t.assertIsNotEnd(e),t.assertIsUnowned(e),e.debugListId=n.debugListId,e.prev=null,n.prev.next=e,e.prev=n.prev,e.next=n,n.prev=e}static insertAfter(e,n){if(t.assertIsOwned(n),n.next===null)throw new Error("AssertionError: illegal operation on list end");t.assertIsNotEnd(e),t.assertIsUnowned(e),e.debugListId=n.debugListId,n.next.prev=e,e.next=n.next,e.prev=n,n.next=e}static assertIsUnowned(e){if(e.debugListId!==null)throw new Error(`AssertionError: illegal operation on owned node: ${l[e.kind]}`)}static assertIsOwned(e,n){if(e.debugListId===null)throw new Error(`AssertionError: illegal operation on unowned node: ${l[e.kind]}`);if(n!==void 0&&e.debugListId!==n)throw new Error(`AssertionError: node belongs to the wrong list (expected ${n}, actual ${e.debugListId})`)}static assertIsNotEnd(e){if(e.kind===l.ListEnd)throw new Error("AssertionError: illegal operation on list head or tail")}};function Zr(t){return{kind:l.Statement,statement:t,...eo}}var eo={debugListId:null,prev:null,next:null},to=Symbol("ConsumesSlot"),Ys=Symbol("DependsOnSlotContext"),ve=Symbol("ConsumesVars"),lt=Symbol("UsesVarOffset"),Ca={[to]:!0,numSlotsUsed:1},ba={[Ys]:!0},Ta={[ve]:!0};var me=class{strings;expressions;i18nPlaceholders;constructor(e,n,s){if(this.strings=e,this.expressions=n,this.i18nPlaceholders=s,s.length!==0&&s.length!==n.length)throw new Error(`Expected ${n.length} placeholders to match interpolation expression count, but got ${s.length}`)}};var ne=class extends y{constructor(e=null){super(null,e)}};var ws=class t extends ne{target;value;sourceSpan;kind=te.StoreLet;[ve]=!0;[Ys]=!0;constructor(e,n,s){super(),this.target=e,this.value=n,this.sourceSpan=s}visitExpression(){}isEquivalent(e){return e instanceof t&&e.target===this.target&&e.value.isEquivalent(this.value)}isConstant(){return!1}transformInternalExpressions(e,n){this.value=(this.value,void 0)}clone(){return new t(this.target,this.value,this.sourceSpan)}};var Ss=class t extends ne{kind=te.PureFunctionExpr;[ve]=!0;[lt]=!0;varOffset=null;body;args;fn=null;constructor(e,n){super(),this.body=e,this.args=n}visitExpression(e,n){this.body?.visitExpression(e,n);for(let s of this.args)s.visitExpression(e,n)}isEquivalent(e){return!(e instanceof t)||e.args.length!==this.args.length?!1:e.body!==null&&this.body!==null&&e.body.isEquivalent(this.body)&&e.args.every((n,s)=>n.isEquivalent(this.args[s]))}isConstant(){return!1}transformInternalExpressions(e,n){this.body!==null?this.body=(this.body,n|q.InChildOperation,void 0):this.fn!==null&&(this.fn=(this.fn,void 0));for(let s=0;s<this.args.length;s++)this.args[s]=(this.args[s],void 0)}clone(){let e=new t(this.body?.clone()??null,this.args.map(n=>n.clone()));return e.fn=this.fn?.clone()??null,e.varOffset=this.varOffset,e}};var xs=class t extends ne{target;targetSlot;name;args;kind=te.PipeBinding;[ve]=!0;[lt]=!0;varOffset=null;constructor(e,n,s,i){super(),this.target=e,this.targetSlot=n,this.name=s,this.args=i}visitExpression(e,n){for(let s of this.args)s.visitExpression(e,n)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,n){for(let s=0;s<this.args.length;s++)this.args[s]=(this.args[s],void 0)}clone(){let e=new t(this.target,this.targetSlot,this.name,this.args.map(n=>n.clone()));return e.varOffset=this.varOffset,e}},ys=class t extends ne{target;targetSlot;name;args;numArgs;kind=te.PipeBindingVariadic;[ve]=!0;[lt]=!0;varOffset=null;constructor(e,n,s,i,r){super(),this.target=e,this.targetSlot=n,this.name=s,this.args=i,this.numArgs=r}visitExpression(e,n){this.args.visitExpression(e,n)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,n){this.args=(this.args,void 0)}clone(){let e=new t(this.target,this.targetSlot,this.name,this.args.clone(),this.numArgs);return e.varOffset=this.varOffset,e}};var Es=class t extends ne{parameters;body;kind=te.ArrowFunction;[ve]=!0;[lt]=!0;contextName=br;currentViewName="view";varOffset=null;ops;constructor(e,n){super(),this.parameters=e,this.body=n,this.ops=new sn,this.ops.push([Zr(new We(n,n.sourceSpan))])}visitExpression(e,n){for(let s of this.ops)no(s,i=>{i.visitExpression(e,n)})}isEquivalent(e){return e instanceof t&&e.parameters.length===this.parameters.length&&e.parameters.every((n,s)=>n.isEquivalent(this.parameters[s]))&&e.body.isEquivalent(this.body)}isConstant(){return!1}transformInternalExpressions(e,n){for(let s of this.ops)st(s,e,n|(q.InChildOperation|q.InArrowFunctionOperation))}clone(){let e=new t(this.parameters,this.body);return e.varOffset=this.varOffset,e.ops=this.ops,e}};function no(t,e){st(t,(n,s)=>(e(n,s),n),q.None)}var q;(function(t){t[t.None=0]="None",t[t.InChildOperation=1]="InChildOperation",t[t.InArrowFunctionOperation=2]="InArrowFunctionOperation",t[t.InSafeNavigationMigration=4]="InSafeNavigationMigration"})(q||(q={}));function yt(t,e,n){for(let s=0;s<t.expressions.length;s++)t.expressions[s]=(t.expressions[s],void 0)}function st(t,e,n){switch(t.kind){case l.StyleProp:case l.StyleMap:case l.ClassProp:case l.ClassMap:case l.AnimationString:case l.AnimationBinding:case l.Binding:t.expression instanceof me?yt(t.expression,e,n):t.expression=(t.expression,void 0);break;case l.Property:case l.DomProperty:case l.Attribute:t.expression instanceof me?yt(t.expression,e,n):t.expression=(t.expression,void 0),t.sanitizer=t.sanitizer&&(t.sanitizer,void 0);break;case l.TwoWayProperty:t.expression=(t.expression,void 0),t.sanitizer=t.sanitizer&&(t.sanitizer,void 0);break;case l.I18nExpression:t.expression=(t.expression,void 0);break;case l.InterpolateText:yt(t.interpolation,e,n);break;case l.Statement:rn(t.statement,e,n);break;case l.Variable:t.initializer=(t.initializer,void 0);break;case l.Conditional:for(let s of t.conditions)s.expr!==null&&(s.expr=(s.expr,void 0));t.processed!==null&&(t.processed=(t.processed,void 0)),t.contextValue!==null&&(t.contextValue=(t.contextValue,void 0));break;case l.Animation:case l.AnimationListener:case l.Listener:case l.TwoWayListener:for(let s of t.handlerOps)st(s,e,n|q.InChildOperation);break;case l.ExtractedAttribute:t.expression=t.expression&&(t.expression,void 0),t.trustedValueFn=t.trustedValueFn&&(t.trustedValueFn,void 0);break;case l.RepeaterCreate:if(t.trackByOps===null)t.track=(t.track,void 0);else for(let s of t.trackByOps)st(s,e,n|q.InChildOperation);t.trackByFn!==null&&(t.trackByFn=(t.trackByFn,void 0));break;case l.Repeater:t.collection=(t.collection,void 0);break;case l.Defer:t.loadingConfig!==null&&(t.loadingConfig=(t.loadingConfig,void 0)),t.placeholderConfig!==null&&(t.placeholderConfig=(t.placeholderConfig,void 0)),t.resolverFn!==null&&(t.resolverFn=(t.resolverFn,void 0));break;case l.I18nMessage:for(let[s,i]of t.params)t.params.set(s,void 0);for(let[s,i]of t.postprocessingParams)t.postprocessingParams.set(s,void 0);break;case l.DeferWhen:t.expr=(t.expr,void 0);break;case l.StoreLet:t.value=(t.value,void 0);break;case l.Advance:case l.Container:case l.ContainerEnd:case l.ContainerStart:case l.DeferOn:case l.DisableBindings:case l.Element:case l.ElementEnd:case l.ElementStart:case l.EnableBindings:case l.I18n:case l.I18nApply:case l.I18nContext:case l.I18nEnd:case l.I18nStart:case l.IcuEnd:case l.IcuStart:case l.Namespace:case l.Pipe:case l.Projection:case l.ProjectionDef:case l.EnableIncrementalHydrationRuntime:case l.Template:case l.Text:case l.I18nAttributes:case l.IcuPlaceholder:case l.DeclareLet:case l.SourceLocation:case l.ConditionalCreate:case l.ConditionalBranchCreate:case l.Control:case l.ControlCreate:break;default:throw new Error(`AssertionError: transformExpressionsInOp doesn't handle ${l[t.kind]}`)}}function rn(t,e,n){if(t instanceof Ue)t.expr=(t.expr,void 0);else if(t instanceof We)t.value=(t.value,void 0);else if(t instanceof Ot)t.value!==void 0&&(t.value=(t.value,void 0));else if(t instanceof Dt){t.condition=(t.condition,void 0);for(let s of t.trueCase)rn(s,e,n);for(let s of t.falseCase)rn(s,e,n)}else throw new Error(`Unhandled statement kind: ${t.constructor.name}`)}var ka=new Set([l.Element,l.ElementStart,l.Container,l.ContainerStart,l.Template,l.RepeaterCreate,l.ConditionalCreate,l.ConditionalBranchCreate]);var Cs;(function(t){t[t.Tmpl=0]="Tmpl",t[t.Host=1]="Host",t[t.Both=2]="Both"})(Cs||(Cs={}));var bs;(function(t){t[t.Full=0]="Full",t[t.DomOnly=1]="DomOnly"})(bs||(bs={}));var _a=new Map([[c.ariaProperty,c.ariaProperty],[c.attribute,c.attribute],[c.classProp,c.classProp],[c.element,c.element],[c.elementContainer,c.elementContainer],[c.elementContainerEnd,c.elementContainerEnd],[c.elementContainerStart,c.elementContainerStart],[c.elementEnd,c.elementEnd],[c.elementStart,c.elementStart],[c.domProperty,c.domProperty],[c.i18nExp,c.i18nExp],[c.listener,c.listener],[c.listener,c.listener],[c.property,c.property],[c.styleProp,c.styleProp],[c.syntheticHostListener,c.syntheticHostListener],[c.syntheticHostProperty,c.syntheticHostProperty],[c.templateCreate,c.templateCreate],[c.twoWayProperty,c.twoWayProperty],[c.twoWayListener,c.twoWayListener],[c.declareLet,c.declareLet],[c.conditionalCreate,c.conditionalBranchCreate],[c.conditionalBranchCreate,c.conditionalBranchCreate],[c.domElement,c.domElement],[c.domElementStart,c.domElementStart],[c.domElementEnd,c.domElementEnd],[c.domElementContainer,c.domElementContainer],[c.domElementContainerStart,c.domElementContainerStart],[c.domElementContainerEnd,c.domElementContainerEnd],[c.domListener,c.domListener],[c.domTemplate,c.domTemplate],[c.animationEnter,c.animationEnter],[c.animationLeave,c.animationLeave],[c.animationEnterListener,c.animationEnterListener],[c.animationLeaveListener,c.animationLeaveListener]]);var Ia=new Map([["&&",p.And],[">",p.Bigger],[">=",p.BiggerEquals],["|",p.BitwiseOr],["&",p.BitwiseAnd],["/",p.Divide],["=",p.Assign],["==",p.Equals],["===",p.Identical],["<",p.Lower],["<=",p.LowerEquals],["-",p.Minus],["%",p.Modulo],["**",p.Exponentiation],["*",p.Multiply],["!=",p.NotEquals],["!==",p.NotIdentical],["??",p.NullishCoalesce],["||",p.Or],["+",p.Plus],["in",p.In],["instanceof",p.InstanceOf],["+=",p.AdditionAssignment],["-=",p.SubtractionAssignment],["*=",p.MultiplicationAssignment],["/=",p.DivisionAssignment],["%=",p.RemainderAssignment],["**=",p.ExponentiationAssignment],["&&=",p.AndAssignment],["||=",p.OrAssignment],["??=",p.NullishCoalesceAssignment]]);var Na=Object.freeze([]);var Aa=new Map([["formField",new Set([l.Property])],["formControl",new Set([l.Property])],["formControlName",new Set([l.Property,l.Attribute])],["ngModel",new Set([l.Attribute,l.Property,l.TwoWayProperty])]]);var Pa=new Set([l.Container,l.ContainerStart,l.ContainerEnd,l.Element,l.ElementStart,l.ElementEnd,l.Template]);var La=new Map([[l.ElementEnd,[l.ElementStart,l.Element]],[l.ContainerEnd,[l.ContainerStart,l.Container]],[l.I18nEnd,[l.I18nStart,l.I18n]]]),$a=new Set([l.Pipe]);var so={},io="\uE500";so.ngsp=io;var Ts;(function(t){t.HEX="hexadecimal",t.DEC="decimal"})(Ts||(Ts={}));var Ks=` \f
|
|
4
4
|
\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF`,Ma=new RegExp(`[^${Ks}]`),Ra=new RegExp(`[${Ks}]{2,}`,"g");var f;(function(t){t[t.Character=0]="Character",t[t.Identifier=1]="Identifier",t[t.PrivateIdentifier=2]="PrivateIdentifier",t[t.Keyword=3]="Keyword",t[t.String=4]="String",t[t.Operator=5]="Operator",t[t.Number=6]="Number",t[t.RegExpBody=7]="RegExpBody",t[t.RegExpFlags=8]="RegExpFlags",t[t.Error=9]="Error"})(f||(f={}));var W;(function(t){t[t.Plain=0]="Plain",t[t.TemplateLiteralPart=1]="TemplateLiteralPart",t[t.TemplateLiteralEnd=2]="TemplateLiteralEnd"})(W||(W={}));var ro=["var","let","as","null","undefined","true","false","if","else","this","typeof","void","in","instanceof"],Oe=class{tokenize(e){return new on(e).scan()}},I=class{index;end;type;numValue;strValue;constructor(e,n,s,i,r){this.index=e,this.end=n,this.type=s,this.numValue=i,this.strValue=r}isCharacter(e){return this.type===f.Character&&this.numValue===e}isNumber(){return this.type===f.Number}isString(){return this.type===f.String}isOperator(e){return this.type===f.Operator&&this.strValue===e}isIdentifier(){return this.type===f.Identifier}isPrivateIdentifier(){return this.type===f.PrivateIdentifier}isKeyword(){return this.type===f.Keyword}isKeywordLet(){return this.type===f.Keyword&&this.strValue==="let"}isKeywordAs(){return this.type===f.Keyword&&this.strValue==="as"}isKeywordNull(){return this.type===f.Keyword&&this.strValue==="null"}isKeywordUndefined(){return this.type===f.Keyword&&this.strValue==="undefined"}isKeywordTrue(){return this.type===f.Keyword&&this.strValue==="true"}isKeywordFalse(){return this.type===f.Keyword&&this.strValue==="false"}isKeywordThis(){return this.type===f.Keyword&&this.strValue==="this"}isKeywordTypeof(){return this.type===f.Keyword&&this.strValue==="typeof"}isKeywordVoid(){return this.type===f.Keyword&&this.strValue==="void"}isKeywordIn(){return this.type===f.Keyword&&this.strValue==="in"}isKeywordInstanceOf(){return this.type===f.Keyword&&this.strValue==="instanceof"}isError(){return this.type===f.Error}isRegExpBody(){return this.type===f.RegExpBody}isRegExpFlags(){return this.type===f.RegExpFlags}toNumber(){return this.type===f.Number?this.numValue:-1}isTemplateLiteralPart(){return this.isString()&&this.kind===W.TemplateLiteralPart}isTemplateLiteralEnd(){return this.isString()&&this.kind===W.TemplateLiteralEnd}isTemplateLiteralInterpolationStart(){return this.isOperator("${")}toString(){switch(this.type){case f.Character:case f.Identifier:case f.Keyword:case f.Operator:case f.PrivateIdentifier:case f.String:case f.Error:case f.RegExpBody:case f.RegExpFlags:return this.strValue;case f.Number:return this.numValue.toString();default:return null}}},Ae=class extends I{kind;constructor(e,n,s,i){super(e,n,f.String,0,s),this.kind=i}};function Ce(t,e,n){return new I(t,e,f.Character,n,String.fromCharCode(n))}function oo(t,e,n){return new I(t,e,f.Identifier,0,n)}function ao(t,e,n){return new I(t,e,f.PrivateIdentifier,0,n)}function lo(t,e,n){return new I(t,e,f.Keyword,0,n)}function F(t,e,n){return new I(t,e,f.Operator,0,n)}function co(t,e,n){return new I(t,e,f.Number,n,"")}function uo(t,e,n){return new I(t,e,f.Error,0,n)}function po(t,e,n){return new I(t,e,f.RegExpBody,0,n)}function ho(t,e,n){return new I(t,e,f.RegExpFlags,0,n)}var be=new I(-1,-1,f.Character,0,""),on=class{input;tokens=[];length;peek=0;index=-1;braceStack=[];constructor(e){this.input=e,this.length=e.length,this.advance()}scan(){let e=this.scanToken();for(;e!==null;)this.tokens.push(e),e=this.scanToken();return this.tokens}advance(){this.peek=++this.index>=this.length?Ee:this.input.charCodeAt(this.index)}scanToken(){let e=this.input,n=this.length,s=this.peek,i=this.index;for(;s<=Hs;)if(++i>=n){s=Ee;break}else s=e.charCodeAt(i);if(this.peek=s,this.index=i,i>=n)return null;if(ks(s))return this.scanIdentifier();if(X(s))return this.scanNumber(i);let r=i;switch(s){case G:return this.advance(),X(this.peek)?this.scanNumber(r):this.peek!==G?Ce(r,this.index,G):(this.advance(),this.peek===G?(this.advance(),F(r,this.index,"...")):this.error(`Unexpected character [${String.fromCharCode(s)}]`,0));case Q:case L:case ce:case Z:case V:case J:case Te:return this.scanCharacter(r,s);case Ne:return this.scanOpenBrace(r,s);case oe:return this.scanCloseBrace(r,s);case Ws:case Us:return this.scanString();case en:return this.advance(),this.scanTemplateLiteralPart(r);case Nr:return this.scanPrivateIdentifier();case qs:return this.scanComplexOperator(r,"+",C,"=");case js:return this.scanComplexOperator(r,"-",C,"=");case Ke:return this.isStartOfRegex()?this.scanRegex(i):this.scanComplexOperator(r,"/",C,"=");case Ar:return this.scanComplexOperator(r,"%",C,"=");case Rr:return this.scanOperator(r,"^");case ns:return this.scanStar(r);case is:return this.scanQuestion(r);case Pr:case ss:return this.scanComplexOperator(r,String.fromCharCode(s),C,"=");case Ir:return this.scanComplexOperator(r,"!",C,"=",C,"=");case C:return this.scanEquals(r);case ts:return this.scanComplexOperator(r,"&",ts,"&",C,"=");case rs:return this.scanComplexOperator(r,"|",rs,"|",C,"=");case Xs:for(;Wr(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error(`Unexpected character [${String.fromCharCode(s)}]`,0)}scanCharacter(e,n){return this.advance(),Ce(e,this.index,n)}scanOperator(e,n){return this.advance(),F(e,this.index,n)}scanOpenBrace(e,n){return this.braceStack.push("expression"),this.advance(),Ce(e,this.index,n)}scanCloseBrace(e,n){return this.advance(),this.braceStack.pop()==="interpolation"?(this.tokens.push(Ce(e,this.index,oe)),this.scanTemplateLiteralPart(this.index)):Ce(e,this.index,n)}scanComplexOperator(e,n,s,i,r,a){this.advance();let u=n;return this.peek==s&&(this.advance(),u+=i),r!=null&&this.peek==r&&(this.advance(),u+=a),F(e,this.index,u)}scanEquals(e){this.advance();let n="=";if(this.peek===C)this.advance(),n+="=";else if(this.peek===ss)return this.advance(),n+=">",F(e,this.index,n);return this.peek===C&&(this.advance(),n+="="),F(e,this.index,n)}scanIdentifier(){let e=this.index;for(this.advance();_s(this.peek);)this.advance();let n=this.input.substring(e,this.index);return ro.indexOf(n)>-1?lo(e,this.index,n):oo(e,this.index,n)}scanPrivateIdentifier(){let e=this.index;if(this.advance(),!ks(this.peek))return this.error("Invalid character [#]",-1);for(;_s(this.peek);)this.advance();let n=this.input.substring(e,this.index);return ao(e,this.index,n)}scanNumber(e){let n=this.index===e,s=!1;for(this.advance();;){if(!X(this.peek))if(this.peek===at){if(!X(this.input.charCodeAt(this.index-1))||!X(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);s=!0}else if(this.peek===G)n=!1;else if(fo(this.peek)){if(this.advance(),mo(this.peek)&&this.advance(),!X(this.peek))return this.error("Invalid exponent",-1);n=!1}else break;this.advance()}let i=this.input.substring(e,this.index);s&&(i=i.replace(/_/g,""));let r=n?vo(i):parseFloat(i);return co(e,this.index,r)}scanString(){let e=this.index,n=this.peek;this.advance();let s="",i=this.index,r=this.input;for(;this.peek!=n;)if(this.peek==xt){let u=this.scanStringBackslash(s,i);if(typeof u!="string")return u;s=u,i=this.index}else{if(this.peek==Ee)return this.error("Unterminated quote",0);this.advance()}let a=r.substring(i,this.index);return this.advance(),new Ae(e,this.index,s+a,W.Plain)}scanQuestion(e){this.advance();let n="?";return this.peek===is?(n+="?",this.advance(),this.peek===C&&(n+="=",this.advance())):this.peek===G&&(n+=".",this.advance()),F(e,this.index,n)}scanTemplateLiteralPart(e){let n="",s=this.index;for(;this.peek!==en;)if(this.peek===xt){let r=this.scanStringBackslash(n,s);if(typeof r!="string")return r;n=r,s=this.index}else if(this.peek===pn){let r=this.index;if(this.advance(),this.peek===Ne)return this.braceStack.push("interpolation"),this.tokens.push(new Ae(e,r,n+this.input.substring(s,r),W.TemplateLiteralPart)),this.advance(),F(r,this.index,this.input.substring(r,this.index))}else{if(this.peek===Ee)return this.error("Unterminated template literal",0);this.advance()}let i=this.input.substring(s,this.index);return this.advance(),new Ae(e,this.index,n+i,W.TemplateLiteralEnd)}error(e,n){let s=this.index+n;return uo(s,this.index,`Lexer Error: ${e} at column ${s} in expression [${this.input}]`)}scanStringBackslash(e,n){e+=this.input.substring(n,this.index);let s;if(this.advance(),this.peek===Hr){let i=this.input.substring(this.index+1,this.index+5);if(/^[0-9a-f]+$/i.test(i))s=parseInt(i,16);else return this.error(`Invalid unicode escape [\\u${i}]`,0);for(let r=0;r<5;r++)this.advance()}else s=go(this.peek),this.advance();return e+=String.fromCharCode(s),e}scanStar(e){this.advance();let n="*";return this.peek===ns?(n+="*",this.advance(),this.peek===C&&(n+="=",this.advance())):this.peek===C&&(n+="=",this.advance()),F(e,this.index,n)}isStartOfRegex(){if(this.tokens.length===0)return!0;let e=this.tokens[this.tokens.length-1];if(e.isOperator("!")){let n=this.tokens.length>1?this.tokens[this.tokens.length-2]:null;return n===null||n.type!==f.Identifier&&!n.isCharacter(L)&&!n.isCharacter(Z)}return e.type===f.Operator||e.isCharacter(Q)||e.isCharacter(ce)||e.isCharacter(V)||e.isCharacter(J)}scanRegex(e){this.advance();let n=this.index,s=!1,i=!1;for(;;){let h=this.peek;if(h===Ee)return this.error("Unterminated regular expression",0);if(s)s=!1;else if(h===xt)s=!0;else if(h===ce)i=!0;else if(h===Z)i=!1;else if(h===Ke&&!i)break;this.advance()}let r=this.input.substring(n,this.index);this.advance();let a=po(e,this.index,r),u=this.scanRegexFlags(this.index);return u!==null?(this.tokens.push(a),u):a}scanRegexFlags(e){if(!tn(this.peek))return null;for(;tn(this.peek);)this.advance();return ho(e,this.index,this.input.substring(e,this.index))}};function ks(t){return zs<=t&&t<=Gs||hn<=t&&t<=fn||t==at||t==pn}function _s(t){return tn(t)||X(t)||t==at||t==pn}function fo(t){return t==Or||t==Mr}function mo(t){return t==js||t==qs}function go(t){switch(t){case Br:return Ve;case Dr:return kr;case Fr:return _r;case Vr:return Vs;case Ur:return Tr;default:return t}}function vo(t){let e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}var an=class{strings;expressions;offsets;constructor(e,n,s){this.strings=e,this.expressions=n,this.offsets=s}},ln=class{templateBindings;warnings;errors;constructor(e,n,s){this.templateBindings=e,this.warnings=n,this.errors=s}};function H(t){return t.start.toString()||"(unknown)"}var ge=class{_lexer;_supportsDirectPipeReferences;constructor(e,n=!1){this._lexer=e,this._supportsDirectPipeReferences=n}parseAction(e,n,s){let i=[];this._checkNoInterpolation(i,e,n);let{stripped:r}=this._stripComments(e),a=this._lexer.tokenize(r),u=new Y(e,n,s,a,1,i,0,this._supportsDirectPipeReferences).parseChain();return new U(u,e,H(n),s,i)}parseBinding(e,n,s){let i=[],r=this._parseBindingAst(e,n,s,i);return new U(r,e,H(n),s,i)}checkSimpleExpression(e){let n=new cn;return e.visit(n),n.errors}parseSimpleBinding(e,n,s){let i=[],r=this._parseBindingAst(e,n,s,i),a=this.checkSimpleExpression(r);return a.length>0&&i.push(le(`Host binding expression cannot contain ${a.join(" ")}`,e,"",n)),new U(r,e,H(n),s,i)}_parseBindingAst(e,n,s,i){this._checkNoInterpolation(i,e,n);let{stripped:r}=this._stripComments(e),a=this._lexer.tokenize(r);return new Y(e,n,s,a,0,i,0,this._supportsDirectPipeReferences).parseChain()}parseTemplateBindings(e,n,s,i,r){let a=this._lexer.tokenize(n),u=[];return new Y(n,s,r,a,0,u,0,this._supportsDirectPipeReferences).parseTemplateBindings({source:e,span:new D(i,i+e.length)})}parseInterpolation(e,n,s,i){let r=[],{strings:a,expressions:u,offsets:h}=this.splitInterpolation(e,n,r,i);if(u.length===0)return null;let d=[];for(let g=0;g<u.length;++g){let P=i?.[g*2+1]?.sourceSpan,k=u[g].text,{stripped:_,hasComments:b}=this._stripComments(k),j=this._lexer.tokenize(_);if(b&&_.trim().length===0&&j.length===0){r.push(le("Interpolation expression cannot only contain a comment",e,`at column ${u[g].start} in`,n));continue}let xe=new Y(P?k:e,P||n,s,j,0,r,h[g],this._supportsDirectPipeReferences).parseChain();d.push(xe)}return this.createInterpolationAst(a.map(g=>g.text),d,e,H(n),s,r)}parseInterpolationExpression(e,n,s){let{stripped:i}=this._stripComments(e),r=this._lexer.tokenize(i),a=[],u=new Y(e,n,s,r,0,a,0,this._supportsDirectPipeReferences).parseChain(),h=["",""];return this.createInterpolationAst(h,[u],e,H(n),s,a)}createInterpolationAst(e,n,s,i,r,a){let u=new ee(0,s.length),h=new Cr(u,u.toAbsolute(r),e,n);return new U(h,s,i,r,a)}splitInterpolation(e,n,s,i){let r=[],a=[],u=[],h=i?wo(i):null,d=0,g=!1,P=!1,k="{{",_="}}";for(;d<e.length;)if(g){let b=d,j=b+k.length,xe=this._getInterpolationEndIndex(e,_,j);if(xe===-1){g=!1,P=!0;break}let Tn=xe+_.length,kn=e.substring(j,xe);kn.trim().length===0&&s.push(le("Blank expressions are not allowed in interpolated strings",e,`at column ${d} in`,n)),a.push({text:kn,start:b,end:Tn});let ar=(h?.get(b)??b)+k.length;u.push(ar),d=Tn,g=!1}else{let b=d;d=e.indexOf(k,d),d===-1&&(d=e.length);let j=e.substring(b,d);r.push({text:j,start:b,end:d}),g=!0}if(!g)if(P){let b=r[r.length-1];b.text+=e.substring(d),b.end=e.length}else r.push({text:e.substring(d),start:d,end:e.length});return new an(r,a,u)}wrapLiteralPrimitive(e,n,s){let i=new ee(0,e==null?0:e.length);return new U(new A(i,i.toAbsolute(s),e),e,typeof n=="string"?n:H(n),s,[])}_stripComments(e){let n=this._commentStart(e);return n!=null?{stripped:e.substring(0,n),hasComments:!0}:{stripped:e,hasComments:!1}}_commentStart(e){let n=null;for(let s=0;s<e.length-1;s++){let i=e.charCodeAt(s),r=e.charCodeAt(s+1);if(i===Ke&&r==Ke&&n==null)return s;n===i?n=null:n==null&&os(i)&&(n=i)}return null}_checkNoInterpolation(e,n,s){let i=-1,r=-1;for(let a of this._forEachUnquotedChar(n,0))if(i===-1)n.startsWith("{{")&&(i=a);else if(r=this._getInterpolationEndIndex(n,"}}",a),r>-1)break;i>-1&&r>-1&&e.push(le("Got interpolation ({{}}) where expression was expected",n,`at column ${i} in`,s))}_getInterpolationEndIndex(e,n,s){for(let i of this._forEachUnquotedChar(e,s)){if(e.startsWith(n,i))return i;if(e.startsWith("//",i))return e.indexOf(n,i)}return-1}*_forEachUnquotedChar(e,n){let s=null,i=0;for(let r=n;r<e.length;r++){let a=e[r];os(e.charCodeAt(r))&&(s===null||s===a)&&i%2===0?s=s===null?a:null:s===null&&(yield r),i=a==="\\"?i+1:0}}},ae;(function(t){t[t.None=0]="None",t[t.Writable=1]="Writable"})(ae||(ae={}));var Is=new Set(["d","g","i","m","s","u","v","y"]),Y=class{input;parseSourceSpan;absoluteOffset;tokens;parseFlags;errors;offset;supportsDirectPipeReferences;rparensExpected=0;rbracketsExpected=0;rbracesExpected=0;context=ae.None;sourceSpanCache=new Map;index=0;constructor(e,n,s,i,r,a,u,h){this.input=e,this.parseSourceSpan=n,this.absoluteOffset=s,this.tokens=i,this.parseFlags=r,this.errors=a,this.offset=u,this.supportsDirectPipeReferences=h}peek(e){let n=this.index+e;return n<this.tokens.length?this.tokens[n]:be}get next(){return this.peek(0)}get atEOF(){return this.index>=this.tokens.length}get inputIndex(){return this.atEOF?this.currentEndIndex:this.next.index+this.offset}get currentEndIndex(){return this.index>0?this.peek(-1).end+this.offset:this.tokens.length===0?this.input.length+this.offset:this.next.index+this.offset}get currentAbsoluteOffset(){return this.absoluteOffset+this.inputIndex}span(e,n){let s=this.currentEndIndex;if(n!==void 0&&n>this.currentEndIndex&&(s=n),e>s){let i=s;s=e,e=i}return new ee(e,s)}sourceSpan(e,n){let s=`${e}@${this.inputIndex}:${n}`;return this.sourceSpanCache.has(s)||this.sourceSpanCache.set(s,this.span(e,n).toAbsolute(this.absoluteOffset)),this.sourceSpanCache.get(s)}advance(){this.index++}withContext(e,n){this.context|=e;let s=n();return this.context^=e,s}consumeOptionalCharacter(e){return this.next.isCharacter(e)?(this.advance(),!0):!1}peekKeywordLet(){return this.next.isKeywordLet()}peekKeywordAs(){return this.next.isKeywordAs()}expectCharacter(e){this.consumeOptionalCharacter(e)||this.error(`Missing expected ${String.fromCharCode(e)}`)}consumeOptionalOperator(e){return this.next.isOperator(e)?(this.advance(),!0):!1}isAssignmentOperator(e){return e.type===f.Operator&&E.isAssignmentOperation(e.strValue)}expectOperator(e){this.consumeOptionalOperator(e)||this.error(`Missing expected operator ${e}`)}prettyPrintToken(e){return e===be?"end of input":`token ${e}`}expectIdentifierOrKeyword(){let e=this.next;return!e.isIdentifier()&&!e.isKeyword()?(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier or keyword"):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier or keyword`),null):(this.advance(),e.toString())}expectIdentifierOrKeywordOrString(){let e=this.next;return!e.isIdentifier()&&!e.isKeyword()&&!e.isString()?(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier, keyword or string"):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier, keyword, or string`),""):(this.advance(),e.toString())}parseChain(){let e=[],n=this.inputIndex;for(;this.index<this.tokens.length;){let s=this.parsePipe();if(e.push(s),this.consumeOptionalCharacter(Te))for(this.parseFlags&1||this.error("Binding expression cannot contain chained expression");this.consumeOptionalCharacter(Te););else if(this.index<this.tokens.length){let i=this.index;if(this.error(`Unexpected token '${this.next}'`),this.index===i)break}}if(e.length===0){let s=this.offset,i=this.offset+this.input.length;return new N(this.span(s,i),this.sourceSpan(s,i))}return e.length==1?e[0]:new Vt(this.span(n),this.sourceSpan(n),e)}parsePipe(){let e=this.inputIndex,n=this.parseExpression();if(this.consumeOptionalOperator("|")){this.parseFlags&1&&this.error("Cannot have a pipe in an action expression");do{let s=this.inputIndex,i=this.expectIdentifierOrKeyword(),r,a;i!==null?r=this.sourceSpan(s):(i="",a=this.next.index!==-1?this.next.index:this.input.length+this.offset,r=new ee(a,a).toAbsolute(this.absoluteOffset));let u=[];for(;this.consumeOptionalCharacter(J);)u.push(this.parseExpression());let h;if(this.supportsDirectPipeReferences){let d=i.charCodeAt(0);h=d===at||d>=hn&&d<=fn?_e.ReferencedDirectly:_e.ReferencedByName}else h=_e.ReferencedByName;n=new qt(this.span(e),this.sourceSpan(e,a),n,i,u,h,r)}while(this.consumeOptionalOperator("|"))}return n}parseExpression(){return this.parseConditional()}parseConditional(){let e=this.inputIndex,n=this.parseLogicalOr();if(this.consumeOptionalOperator("?")){let s=this.parsePipe(),i;if(this.consumeOptionalCharacter(J))i=this.parsePipe();else{let r=this.inputIndex,a=this.input.substring(e,r);this.error(`Conditional expression ${a} requires all 3 expressions`),i=new N(this.span(e),this.sourceSpan(e))}return new Ht(this.span(e),this.sourceSpan(e),n,s,i)}else return n}parseLogicalOr(){let e=this.inputIndex,n=this.parseLogicalAnd();for(;this.consumeOptionalOperator("||");){let s=this.parseLogicalAnd();n=new E(this.span(e),this.sourceSpan(e),"||",n,s)}return n}parseLogicalAnd(){let e=this.inputIndex,n=this.parseNullishCoalescing();for(;this.consumeOptionalOperator("&&");){let s=this.parseNullishCoalescing();n=new E(this.span(e),this.sourceSpan(e),"&&",n,s)}return n}parseNullishCoalescing(){let e=this.inputIndex,n=this.parseEquality();for(;this.consumeOptionalOperator("??");){let s=this.parseEquality();n=new E(this.span(e),this.sourceSpan(e),"??",n,s)}return n}parseEquality(){let e=this.inputIndex,n=this.parseRelational();for(;this.next.type==f.Operator;){let s=this.next.strValue;switch(s){case"==":case"===":case"!=":case"!==":this.advance();let i=this.parseRelational();n=new E(this.span(e),this.sourceSpan(e),s,n,i);continue}break}return n}parseRelational(){let e=this.inputIndex,n=this.parseAdditive();for(;this.next.type==f.Operator||this.next.isKeywordIn()||this.next.isKeywordInstanceOf();){let s=this.next.strValue;switch(s){case"<":case">":case"<=":case">=":case"in":case"instanceof":this.advance();let i=this.parseAdditive();n=new E(this.span(e),this.sourceSpan(e),s,n,i);continue}break}return n}parseAdditive(){let e=this.inputIndex,n=this.parseMultiplicative();for(;this.next.type==f.Operator;){let s=this.next.strValue;switch(s){case"+":case"-":this.advance();let i=this.parseMultiplicative();n=new E(this.span(e),this.sourceSpan(e),s,n,i);continue}break}return n}parseMultiplicative(){let e=this.inputIndex,n=this.parseExponentiation();for(;this.next.type==f.Operator;){let s=this.next.strValue;switch(s){case"*":case"%":case"/":this.advance();let i=this.parseExponentiation();n=new E(this.span(e),this.sourceSpan(e),s,n,i);continue}break}return n}parseExponentiation(){let e=this.inputIndex,n=this.parsePrefix();for(;this.next.type==f.Operator&&this.next.strValue==="**";){(n instanceof Ie||n instanceof je||n instanceof ze||n instanceof Ge)&&this.error("Unary operator used immediately before exponentiation expression. Parenthesis must be used to disambiguate operator precedence"),this.advance();let s=this.parseExponentiation();n=new E(this.span(e),this.sourceSpan(e),"**",n,s)}return n}parsePrefix(){if(this.next.type==f.Operator){let e=this.inputIndex,n=this.next.strValue,s;switch(n){case"+":return this.advance(),s=this.parsePrefix(),Ie.createPlus(this.span(e),this.sourceSpan(e),s);case"-":return this.advance(),s=this.parsePrefix(),Ie.createMinus(this.span(e),this.sourceSpan(e),s);case"!":return this.advance(),s=this.parsePrefix(),new je(this.span(e),this.sourceSpan(e),s)}}else if(this.next.isKeywordTypeof()){let e=this.inputIndex;this.advance();let n=this.parsePrefix();return new ze(this.span(e),this.sourceSpan(e),n)}else if(this.next.isKeywordVoid()){let e=this.inputIndex;this.advance();let n=this.parsePrefix();return new Ge(this.span(e),this.sourceSpan(e),n)}return this.parseCallChain()}parseCallChain(){let e=this.inputIndex,n=this.parsePrimary();for(;;)if(this.consumeOptionalCharacter(G))n=this.parseAccessMember(n,e,!1);else if(this.consumeOptionalOperator("?."))this.consumeOptionalCharacter(Q)?n=this.parseCall(n,e,!0):n=this.consumeOptionalCharacter(ce)?this.parseKeyedReadOrWrite(n,e,!0):this.parseAccessMember(n,e,!0);else if(this.consumeOptionalCharacter(ce))n=this.parseKeyedReadOrWrite(n,e,!1);else if(this.consumeOptionalCharacter(Q))n=this.parseCall(n,e,!1);else if(this.consumeOptionalOperator("!"))n=new Xt(this.span(e),this.sourceSpan(e),n);else if(this.next.isTemplateLiteralEnd())n=this.parseNoInterpolationTaggedTemplateLiteral(n,e);else if(this.next.isTemplateLiteralPart())n=this.parseTaggedTemplateLiteral(n,e);else return n}parsePrimary(){let e=this.inputIndex;if(this.isArrowFunction())return this.parseArrowFunction(e);if(this.consumeOptionalCharacter(Q)){this.rparensExpected++;let n=this.parsePipe();return this.consumeOptionalCharacter(L)||(this.error("Missing closing parentheses"),this.consumeOptionalCharacter(L)),this.rparensExpected--,new $e(this.span(e),this.sourceSpan(e),n)}else{if(this.next.isKeywordNull())return this.advance(),new A(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new A(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new A(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new A(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordThis())return this.advance(),new Ft(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(ce))return this.parseLiteralArray(e);if(this.next.isCharacter(Ne))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new fe(this.span(e),this.sourceSpan(e)),e,!1);if(this.next.isNumber()){let n=this.next.toNumber();return this.advance(),new A(this.span(e),this.sourceSpan(e),n)}else{if(this.next.isTemplateLiteralEnd())return this.parseNoInterpolationTemplateLiteral();if(this.next.isTemplateLiteralPart())return this.parseTemplateLiteral();if(this.next.isString()&&this.next.kind===W.Plain){let n=this.next.toString();return this.advance(),new A(this.span(e),this.sourceSpan(e),n)}else return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new N(this.span(e),this.sourceSpan(e))):this.next.isRegExpBody()?this.parseRegularExpressionLiteral():this.index>=this.tokens.length?(this.error(`Unexpected end of expression: ${this.input}`),new N(this.span(e),this.sourceSpan(e))):(this.error(`Unexpected token ${this.next}`),new N(this.span(e),this.sourceSpan(e)))}}}parseLiteralArray(e){this.rbracketsExpected++;let n=[];do if(this.next.isOperator("..."))n.push(this.parseSpreadElement());else if(!this.next.isCharacter(Z))n.push(this.parsePipe());else break;while(this.consumeOptionalCharacter(V));return this.rbracketsExpected--,this.expectCharacter(Z),new jt(this.span(e),this.sourceSpan(e),n)}parseLiteralMap(){let e=[],n=[],s=this.inputIndex;if(this.expectCharacter(Ne),!this.consumeOptionalCharacter(oe)){this.rbracesExpected++;do{let i=this.inputIndex;if(this.next.isOperator("...")){this.advance(),e.push({kind:"spread",span:this.span(i),sourceSpan:this.sourceSpan(i)}),n.push(this.parsePipe());continue}let r=this.next.isString(),a=this.expectIdentifierOrKeywordOrString(),u=this.span(i),h=this.sourceSpan(i),d={kind:"property",key:a,quoted:r,span:u,sourceSpan:h};e.push(d),r?(this.expectCharacter(J),n.push(this.parsePipe())):this.consumeOptionalCharacter(J)?n.push(this.parsePipe()):(d.isShorthandInitialized=!0,n.push(new ke(u,h,h,new fe(u,h),a)))}while(this.consumeOptionalCharacter(V)&&!this.next.isCharacter(oe));this.rbracesExpected--,this.expectCharacter(oe)}return new Gt(this.span(s),this.sourceSpan(s),e,n)}parseAccessMember(e,n,s){let i=this.inputIndex,r=this.withContext(ae.Writable,()=>{let u=this.expectIdentifierOrKeyword()??"";return u.length===0&&this.error("Expected identifier for property access",e.span.end),u}),a=this.sourceSpan(i);if(s)return this.isAssignmentOperator(this.next)?(this.advance(),this.error("The '?.' operator cannot be used in the assignment"),new N(this.span(n),this.sourceSpan(n))):new Ut(this.span(n),this.sourceSpan(n),a,e,r);if(this.isAssignmentOperator(this.next)){let u=this.next.strValue;if(!(this.parseFlags&1))return this.advance(),this.error("Bindings cannot contain assignments"),new N(this.span(n),this.sourceSpan(n));let h=new ke(this.span(n),this.sourceSpan(n),a,e,r);this.advance();let d=this.parseConditional();return new E(this.span(n),this.sourceSpan(n),u,h,d)}else return new ke(this.span(n),this.sourceSpan(n),a,e,r)}parseCall(e,n,s){let i=this.inputIndex;this.rparensExpected++;let r=this.parseCallArguments(),a=this.span(i,this.inputIndex).toAbsolute(this.absoluteOffset);this.expectCharacter(L),this.rparensExpected--;let u=this.span(n),h=this.sourceSpan(n);return s?new Qt(u,h,e,r,a):new Xe(u,h,e,r,a)}parseCallArguments(){if(this.next.isCharacter(L))return[];let e=[];do e.push(this.next.isOperator("...")?this.parseSpreadElement():this.parsePipe());while(this.consumeOptionalCharacter(V));return e}parseSpreadElement(){this.next.isOperator("...")||this.error("Spread element must start with '...' operator");let e=this.inputIndex;this.advance();let n=this.parsePipe(),s=this.span(e),i=this.sourceSpan(e);return new zt(s,i,n)}expectTemplateBindingKey(){let e="",n=!1,s=this.currentAbsoluteOffset;do e+=this.expectIdentifierOrKeywordOrString(),n=this.consumeOptionalOperator("-"),n&&(e+="-");while(n);return{source:e,span:new D(s,s+e.length)}}parseTemplateBindings(e){let n=[];for(n.push(...this.parseDirectiveKeywordBindings(e));this.index<this.tokens.length;){let s=this.parseLetBinding();if(s)n.push(s);else{let i=this.expectTemplateBindingKey(),r=this.parseAsBinding(i);r?n.push(r):(i.source=e.source+i.source.charAt(0).toUpperCase()+i.source.substring(1),n.push(...this.parseDirectiveKeywordBindings(i)))}this.consumeStatementTerminator()}return new ln(n,[],this.errors)}parseKeyedReadOrWrite(e,n,s){return this.withContext(ae.Writable,()=>{this.rbracketsExpected++;let i=this.parsePipe();if(i instanceof N&&this.error("Key access cannot be empty"),this.rbracketsExpected--,this.expectCharacter(Z),this.isAssignmentOperator(this.next)){let r=this.next.strValue;if(s)this.advance(),this.error("The '?.' operator cannot be used in the assignment");else{let a=new qe(this.span(n),this.sourceSpan(n),e,i);this.advance();let u=this.parseConditional();return new E(this.span(n),this.sourceSpan(n),r,a,u)}}else return s?new Wt(this.span(n),this.sourceSpan(n),e,i):new qe(this.span(n),this.sourceSpan(n),e,i);return new N(this.span(n),this.sourceSpan(n))})}parseDirectiveKeywordBindings(e){let n=[];this.consumeOptionalCharacter(J);let s=this.getDirectiveBoundTarget(),i=this.currentAbsoluteOffset,r=this.parseAsBinding(e);r||(this.consumeStatementTerminator(),i=this.currentAbsoluteOffset);let a=new D(e.span.start,i);return n.push(new Me(a,e,s)),r&&n.push(r),n}getDirectiveBoundTarget(){if(this.next===be||this.peekKeywordAs()||this.peekKeywordLet())return null;let e=this.parsePipe(),{start:n,end:s}=e.span,i=this.input.substring(n,s);return new U(e,i,H(this.parseSourceSpan),this.absoluteOffset+n,this.errors)}parseAsBinding(e){if(!this.peekKeywordAs())return null;this.advance();let n=this.expectTemplateBindingKey();this.consumeStatementTerminator();let s=new D(e.span.start,this.currentAbsoluteOffset);return new de(s,n,e)}parseLetBinding(){if(!this.peekKeywordLet())return null;let e=this.currentAbsoluteOffset;this.advance();let n=this.expectTemplateBindingKey(),s=null;this.consumeOptionalOperator("=")&&(s=this.expectTemplateBindingKey()),this.consumeStatementTerminator();let i=new D(e,this.currentAbsoluteOffset);return new de(i,n,s)}parseNoInterpolationTaggedTemplateLiteral(e,n){let s=this.parseNoInterpolationTemplateLiteral();return new Qe(this.span(n),this.sourceSpan(n),e,s)}parseNoInterpolationTemplateLiteral(){let e=this.next.strValue,n=this.inputIndex;this.advance();let s=this.span(n),i=this.sourceSpan(n);return new Je(s,i,[new Ye(s,i,e)],[])}parseTaggedTemplateLiteral(e,n){let s=this.parseTemplateLiteral();return new Qe(this.span(n),this.sourceSpan(n),e,s)}parseTemplateLiteral(){let e=[],n=[],s=this.inputIndex;for(;this.next!==be;){let i=this.next;if(i.isTemplateLiteralPart()||i.isTemplateLiteralEnd()){let r=this.inputIndex;if(this.advance(),e.push(new Ye(this.span(r),this.sourceSpan(r),i.strValue)),i.isTemplateLiteralEnd())break}else if(i.isTemplateLiteralInterpolationStart()){this.advance(),this.rbracesExpected++;let r=this.parsePipe();r instanceof N?this.error("Template literal interpolation cannot be empty"):n.push(r),this.rbracesExpected--}else this.advance()}return new Je(this.span(s),this.sourceSpan(s),e,n)}parseRegularExpressionLiteral(){let e=this.next;if(this.advance(),!e.isRegExpBody())return new N(this.span(this.inputIndex),this.sourceSpan(this.inputIndex));let n=null;if(this.next.isRegExpFlags()){n=this.next,this.advance();let r=new Set;for(let a=0;a<n.strValue.length;a++){let u=n.strValue[a];Is.has(u)?r.has(u)?this.error(`Duplicate regular expression flag "${u}"`,n.index+a):r.add(u):this.error(`Unsupported regular expression flag "${u}". The supported flags are: `+Array.from(Is,h=>`"${h}"`).join(", "),n.index+a)}}let s=e.index,i=n?n.end:e.end;return new Kt(this.span(s,i),this.sourceSpan(s,i),e.strValue,n?n.strValue:null)}parseArrowFunction(e){let n;if(this.next.isIdentifier()){let i=this.next;this.advance(),n=[this.getArrowFunctionIdentifierArg(i)]}else this.next.isCharacter(Q)?(this.rparensExpected++,this.advance(),n=this.parseArrowFunctionParameters(),this.rparensExpected--):(n=[],this.error(`Unexpected token ${this.next}`));this.expectOperator("=>");let s;if(this.next.isCharacter(Ne))this.error("Multi-line arrow functions are not supported. If you meant to return an object literal, wrap it with parentheses."),s=new N(this.span(e),this.sourceSpan(e));else{let i=this.parseFlags;this.parseFlags=1,s=this.parseExpression(),this.parseFlags=i}return new Yt(this.span(e),this.sourceSpan(e),n,s)}parseArrowFunctionParameters(){let e=[];if(!this.consumeOptionalCharacter(L))for(;this.next!==be;)if(this.next.isIdentifier()){let n=this.next;if(this.advance(),e.push(this.getArrowFunctionIdentifierArg(n)),this.consumeOptionalCharacter(L))break;this.expectCharacter(V)}else{this.error(`Unexpected token ${this.next}`);break}return e}getArrowFunctionIdentifierArg(e){return new Jt(e.strValue,this.span(e.index),this.sourceSpan(e.index))}isArrowFunction(){let e=this.index,n=this.tokens;if(e>n.length-2)return!1;if(n[e].isIdentifier()&&n[e+1].isOperator("=>"))return!0;if(n[e].isCharacter(Q)){let s=e+1;for(s;s<n.length&&!(!n[s].isIdentifier()&&!n[s].isCharacter(V));s++);return s<n.length-1&&n[s].isCharacter(L)&&n[s+1].isOperator("=>")}return!1}consumeStatementTerminator(){this.consumeOptionalCharacter(Te)||this.consumeOptionalCharacter(V)}error(e,n=this.index){this.errors.push(le(e,this.input,this.getErrorLocationText(n),this.parseSourceSpan)),this.skip()}getErrorLocationText(e){return e<this.tokens.length?`at column ${this.tokens[e].index+1} in`:"at the end of the expression"}_reportErrorForPrivateIdentifier(e,n){let s=`Private identifiers are not supported. Unexpected private identifier: ${e}`;n!==null&&(s+=`, ${n}`),this.error(s)}skip(){let e=this.next;for(;this.index<this.tokens.length&&!e.isCharacter(Te)&&!e.isOperator("|")&&(this.rparensExpected<=0||!e.isCharacter(L))&&(this.rbracesExpected<=0||!e.isCharacter(oe))&&(this.rbracketsExpected<=0||!e.isCharacter(Z))&&(!(this.context&ae.Writable)||!this.isAssignmentOperator(e));)this.next.isError()&&this.errors.push(le(this.next.toString(),this.input,this.getErrorLocationText(this.next.index),this.parseSourceSpan)),this.advance(),e=this.next}};function le(t,e,n,s){n.length>0&&(n=` ${n} `);let i=H(s),r=`Parser Error: ${t}${n}[${e}] in ${i}`;return new Re(s,r)}var cn=class extends Zt{errors=[];visitPipe(){this.errors.push("pipes")}};function wo(t){let e=new Map,n=0,s=0,i=0;for(;i<t.length;){let r=t[i];if(r.type===9){let[a,u]=r.parts;n+=u.length,s+=a.length}else{let a=r.parts.reduce((u,h)=>u+h.length,0);s+=a,n+=a}e.set(s,n),i++}return e}var So="svg",xo="math",un=class{},yo="boolean",Eo="number",Co="string",bo="object";function Fe(t){let e=t.toLowerCase(),[n,s]=ot(e,!1);return n===So||n===xo?`:${n}:${s}`:s}var To=["[Element]|textContent,%ariaActiveDescendantElement,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColIndexText,%ariaColSpan,%ariaControlsElements,%ariaCurrent,%ariaDescribedByElements,%ariaDescription,%ariaDetailsElements,%ariaDisabled,%ariaErrorMessageElements,%ariaExpanded,%ariaFlowToElements,%ariaHasPopup,%ariaHidden,%ariaInvalid,%ariaKeyShortcuts,%ariaLabel,%ariaLabelledByElements,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaOwnsElements,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowIndexText,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,search,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","geolocation^[HTMLElement]|accuracymode,!autolocate,*location,*promptaction,*promptdismiss,*validationstatuschange,!watch","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,!credentialless,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","selectedcontent^[HTMLElement]|","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","search^[HTMLELement]|","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|",":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":math:math^:math:|",":math:maction^:math:|",":math:menclose^:math:|",":math:merror^:math:|",":math:mfenced^:math:|",":math:mfrac^:math:|",":math:mi^:math:|",":math:mmultiscripts^:math:|",":math:mn^:math:|",":math:mo^:math:|",":math:mover^:math:|",":math:mpadded^:math:|",":math:mphantom^:math:|",":math:mroot^:math:|",":math:mrow^:math:|",":math:ms^:math:|",":math:mspace^:math:|",":math:msqrt^:math:|",":math:mstyle^:math:|",":math:msub^:math:|",":math:msubsup^:math:|",":math:msup^:math:|",":math:mtable^:math:|",":math:mtd^:math:|",":math:mtext^:math:|",":math:mtr^:math:|",":math:munder^:math:|",":math:munderover^:math:|",":math:semantics^:math:|"],Zs=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex","aria-activedescendant":"ariaActiveDescendantElement","aria-atomic":"ariaAtomic","aria-autocomplete":"ariaAutoComplete","aria-busy":"ariaBusy","aria-checked":"ariaChecked","aria-colcount":"ariaColCount","aria-colindex":"ariaColIndex","aria-colindextext":"ariaColIndexText","aria-colspan":"ariaColSpan","aria-controls":"ariaControlsElements","aria-current":"ariaCurrent","aria-describedby":"ariaDescribedByElements","aria-description":"ariaDescription","aria-details":"ariaDetailsElements","aria-disabled":"ariaDisabled","aria-errormessage":"ariaErrorMessageElements","aria-expanded":"ariaExpanded","aria-flowto":"ariaFlowToElements","aria-haspopup":"ariaHasPopup","aria-hidden":"ariaHidden","aria-invalid":"ariaInvalid","aria-keyshortcuts":"ariaKeyShortcuts","aria-label":"ariaLabel","aria-labelledby":"ariaLabelledByElements","aria-level":"ariaLevel","aria-live":"ariaLive","aria-modal":"ariaModal","aria-multiline":"ariaMultiLine","aria-multiselectable":"ariaMultiSelectable","aria-orientation":"ariaOrientation","aria-owns":"ariaOwnsElements","aria-placeholder":"ariaPlaceholder","aria-posinset":"ariaPosInSet","aria-pressed":"ariaPressed","aria-readonly":"ariaReadOnly","aria-required":"ariaRequired","aria-roledescription":"ariaRoleDescription","aria-rowcount":"ariaRowCount","aria-rowindex":"ariaRowIndex","aria-rowindextext":"ariaRowIndexText","aria-rowspan":"ariaRowSpan","aria-selected":"ariaSelected","aria-setsize":"ariaSetSize","aria-sort":"ariaSort","aria-valuemax":"ariaValueMax","aria-valuemin":"ariaValueMin","aria-valuenow":"ariaValueNow","aria-valuetext":"ariaValueText"})),ko=Array.from(Zs).reduce((t,[e,n])=>(t.set(e,n),t),new Map),it=class extends un{_schema=new Map;_eventSchema=new Map;constructor(){super(),To.forEach(e=>{let n=new Map,s=new Set,[i,r]=e.split("|"),a=r.split(","),[u,h]=i.split("^");u.split(",").forEach(g=>{this._schema.set(g.toLowerCase(),n),this._eventSchema.set(g.toLowerCase(),s)});let d=h&&this._schema.get(h.toLowerCase());if(d){for(let[g,P]of d)n.set(g,P);for(let g of this._eventSchema.get(h.toLowerCase()))s.add(g)}a.forEach(g=>{if(g.length>0)switch(g[0]){case"*":s.add(g.substring(1));break;case"!":n.set(g.substring(1),yo);break;case"#":n.set(g.substring(1),Eo);break;case"%":n.set(g.substring(1),bo);break;default:n.set(g,Co)}})})}hasProperty(e,n,s){if(s.some(a=>a.name===Fn.name))return!0;let i=Fe(e);if(i.includes("-")){if(Zn(i)||es(i))return!1;if(s.some(a=>a.name===Bn.name))return!0}return(this._schema.get(i)||this._schema.get("unknown")).has(n)}hasElement(e,n){if(n.some(i=>i.name===Fn.name))return!0;let s=Fe(e);return s.includes("-")&&(Zn(s)||es(s)||n.some(i=>i.name===Bn.name))?!0:this._schema.has(s)}securityContext(e,n,s){s&&(n=this.getMappedPropName(n));let[i,r]=ot(e,!1);return wr(r,n,i)}getMappedPropName(e){return Zs.get(e)??e}getDefaultComponentElementName(){return"ng-component"}validateProperty(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...
|
|
5
|
-
If '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){let n=Fe(e),s=this._schema.get(n)||this._schema.get("unknown");return Array.from(s.keys()).map(i=>ko.get(i)??i)}allKnownEventsOfElement(e){let n=Fe(e);return Array.from(this._eventSchema.get(n)??[])}normalizeAnimationStyleProperty(e){return Er(e)}normalizeAnimationStyleValue(e,n,s){let i="",r=s.toString().trim(),a=null;if(_o(e)&&s!==0&&s!=="0")if(typeof s=="number")i="px";else{let u=s.match(/^[+-]?[\d\.]+([a-z]*)$/);u&&u[1].length==0&&(a=`Please provide a CSS unit value for ${n}:${s}`)}return{error:a,value:r+i}}};function _o(t){switch(t){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}var Oa=new ge(new Oe);function $(t){return e=>e.kind===t}function Pe(t,e){return n=>n.kind===t&&e===n.expression instanceof me}function Io(t){return(t.kind===l.Property||t.kind===l.TwoWayProperty)&&!(t.expression instanceof me)}var Da=[{test:$(l.StyleMap),transform:rt},{test:$(l.ClassMap),transform:rt},{test:$(l.StyleProp)},{test:$(l.ClassProp)},{test:Pe(l.Attribute,!0)},{test:Pe(l.Property,!0)},{test:Io},{test:Pe(l.Attribute,!1)},{test:$(l.Control)}],Ba=[{test:Pe(l.DomProperty,!0)},{test:Pe(l.DomProperty,!1)},{test:$(l.Attribute)},{test:$(l.StyleMap),transform:rt},{test:$(l.ClassMap),transform:rt},{test:$(l.StyleProp)},{test:$(l.ClassProp)}],Fa=new Set([l.Listener,l.TwoWayListener,l.AnimationListener,l.StyleMap,l.ClassMap,l.StyleProp,l.ClassProp,l.Property,l.TwoWayProperty,l.DomProperty,l.Attribute,l.Animation,l.Control]);function rt(t){return t.slice(t.length-1)}var Va=new Map([[O.Idle,{none:c.deferOnIdle,prefetch:c.deferPrefetchOnIdle,hydrate:c.deferHydrateOnIdle}],[O.Immediate,{none:c.deferOnImmediate,prefetch:c.deferPrefetchOnImmediate,hydrate:c.deferHydrateOnImmediate}],[O.Timer,{none:c.deferOnTimer,prefetch:c.deferPrefetchOnTimer,hydrate:c.deferHydrateOnTimer}],[O.Hover,{none:c.deferOnHover,prefetch:c.deferPrefetchOnHover,hydrate:c.deferHydrateOnHover}],[O.Interaction,{none:c.deferOnInteraction,prefetch:c.deferPrefetchOnInteraction,hydrate:c.deferHydrateOnInteraction}],[O.Viewport,{none:c.deferOnViewport,prefetch:c.deferPrefetchOnViewport,hydrate:c.deferHydrateOnViewport}],[O.Never,{none:c.deferHydrateNever,prefetch:c.deferHydrateNever,hydrate:c.deferHydrateNever}]]);var Ha=[c.pipeBind1,c.pipeBind2,c.pipeBind3,c.pipeBind4];var Ua={constant:[c.interpolate,c.interpolate1,c.interpolate2,c.interpolate3,c.interpolate4,c.interpolate5,c.interpolate6,c.interpolate7,c.interpolate8],variable:c.interpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}};var Wa=new Map([["window",c.resolveWindow],["document",c.resolveDocument],["body",c.resolveBody]]);var qa=new Map([[x.HTML,c.sanitizeHtml],[x.RESOURCE_URL,c.sanitizeResourceUrl],[x.SCRIPT,c.sanitizeScript],[x.STYLE,c.sanitizeStyle],[x.URL,c.sanitizeUrl],[x.ATTRIBUTE_NO_BINDING,c.validateAttribute]]),ja=new Map([[x.HTML,c.trustConstantHtml],[x.RESOURCE_URL,c.trustConstantResourceUrl]]);var Ns;(function(t){t[t.None=0]="None",t[t.ViewContextRead=1]="ViewContextRead",t[t.ViewContextWrite=2]="ViewContextWrite",t[t.SideEffectful=4]="SideEffectful"})(Ns||(Ns={}));var za=new Map([[M.Property,R.Property],[M.TwoWay,R.TwoWayProperty],[M.Attribute,R.Attribute],[M.Class,R.ClassName],[M.Style,R.StyleProperty],[M.LegacyAnimation,R.LegacyAnimation],[M.Animation,R.Animation]]);var As;(function(t){t[t.NG_CONTENT=0]="NG_CONTENT",t[t.STYLE=1]="STYLE",t[t.STYLESHEET=2]="STYLESHEET",t[t.SCRIPT=3]="SCRIPT",t[t.OTHER=4]="OTHER"})(As||(As={}));var Ps;(function(t){t.IDLE="idle",t.TIMER="timer",t.INTERACTION="interaction",t.IMMEDIATE="immediate",t.HOVER="hover",t.VIEWPORT="viewport",t.NEVER="never"})(Ps||(Ps={}));var ei="%COMP%",Ga=`_nghost-${ei}`,Xa=`_ngcontent-${ei}`;var Ls;(function(t){t[t.Selector=0]="Selector",t[t.HostDirective=1]="HostDirective"})(Ls||(Ls={}));var $s;(function(t){t[t.Extract=0]="Extract",t[t.Merge=1]="Merge"})($s||($s={}));var Qa=new Bt("22.0.4");var Ms;(function(t){t.DIAGNOSTIC="D",t.EXPRESSION_TYPE_IDENTIFIER="T"})(Ms||(Ms={}));var Rs;(function(t){t.DIRECTIVE="DIR",t.HOST_DIRECTIVE="HOSTDIR",t.COMPONENT_COMPLETION="COMPCOMP",t.EVENT_PARAMETER="EP",t.VARIABLE_AS_EXPRESSION="VAE"})(Rs||(Rs={}));var Os;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning"})(Os||(Os={}));var Ds;(function(t){t[t.UseEmitter=0]="UseEmitter",t[t.CopyClassNodes=1]="CopyClassNodes",t[t.FallbackToAny=2]="FallbackToAny"})(Ds||(Ds={}));var Bs=class t{static SINGLETON=new t;static veWillInferAnyFor(e){let n=t.SINGLETON;return e instanceof Xe?e.visit(n):e.receiver.visit(n)}visitUnary(e){return e.expr.visit(this)}visitBinary(e){return e.left.visit(this)||e.right.visit(this)}visitChain(){return!1}visitConditional(e){return e.condition.visit(this)||e.trueExp.visit(this)||e.falseExp.visit(this)}visitCall(){return!0}visitSafeCall(){return!1}visitImplicitReceiver(){return!1}visitThisReceiver(){return!1}visitInterpolation(e){return e.expressions.some(n=>n.visit(this))}visitKeyedRead(){return!1}visitLiteralArray(){return!0}visitLiteralMap(){return!0}visitLiteralPrimitive(){return!1}visitPipe(){return!0}visitPrefixNot(e){return e.expression.visit(this)}visitTypeofExpression(e){return e.expression.visit(this)}visitVoidExpression(e){return e.expression.visit(this)}visitNonNullAssert(e){return e.expression.visit(this)}visitPropertyRead(){return!1}visitSafePropertyRead(){return!1}visitSafeKeyedRead(){return!1}visitTemplateLiteral(){return!1}visitTemplateLiteralElement(){return!1}visitTaggedTemplateLiteral(){return!1}visitParenthesizedExpression(e){return e.expression.visit(this)}visitRegularExpressionLiteral(){return!1}visitSpreadElement(e){return e.expression.visit(this)}visitArrowFunction(e,n){return!1}};var No=["errors","dirty","disabled","disabledReasons","hidden","invalid","name","pending","readonly","touched","max","maxLength","min","minLength","pattern","required"],Ja=new Set([...No,"value","checked"]);var Ya=new it;var Ka=new it;var Ao="test.html";function ti(t){let e=new et(t,Ao),n=new Ze(e,0,0,0),s=n.moveBy(t.length);return{text:t,file:e,start:n,end:s,sourceSpan:new tt(n,s)}}var Po;function ni(){return Po??(Po=new ge(new Oe))}var Lo=t=>ge.prototype._commentStart(t);function $o(t){let e=Lo(t);return e===null?[]:[{type:"CommentLine",value:t.slice(e+2),...Be({start:e,end:t.length})}]}function si(t){let{result:e}=t;if(e.errors.length!==0){let[n]=e.errors;if(!(n instanceof Re))throw n;let{message:s}=n;{let a=s.match(/ in .*?@\d+:\d+$/);a&&(s=s.slice(0,a.index))}let i=t.start;{let a=s.match(/at column (?<index>\d+)/);a&&(s=s.slice(0,a.index),i=i.moveBy(Number(a.groups.index)))}let r=new SyntaxError(s.trim(),{cause:n});throw Object.assign(r,{location:i,span:n.span}),r.cause??(r.cause=n),r}return t}var ct=t=>e=>{let n=ti(e);return si({...n,result:ni()[t](e,n.sourceSpan,0),comments:$o(e)})},ii=ct("parseAction"),ri=ct("parseBinding"),oi=ct("parseSimpleBinding"),ai=ct("parseInterpolationExpression"),li=t=>{let e=ti(t);return si({...e,result:ni().parseTemplateBindings("",t,e.sourceSpan,0,0),comments:[]})};var ut=class{text;constructor(t){this.text=t}getCharacterIndex(t,e){return Pn(this.text,t,e)}transformSpan(t){return Be(t)}createNode(t,e){let n=t.start,s=t.end,i=t.range;e&&(Array.isArray(e)?([n,s]=e,i=e):({start:n,end:s}=e.sourceSpan??e,i=[n,s]));i?[n,s]=i:typeof n=="number"&&typeof s=="number"&&(i=[n,s]);if(!(typeof n=="number"&&typeof s=="number"&&i))throw new Error("Missing location information");let r={...t,start:n,end:s,range:i};switch(r.type){case"NumericLiteral":case"StringLiteral":case"RegExpLiteral":{let a=this.text.slice(n,s),{value:u}=r;r.extra={...r.extra,raw:a,rawValue:u};break}}return r}};var ci=Object.defineProperty,ui=(t,e)=>{let n={};for(var s in t)ci(n,s,{get:t[s],enumerable:!0});return e||ci(n,Symbol.toStringTag,{value:"Module"}),n};var pi=(t,e)=>({type:"ArrayExpression",elements:e.transformChildren(t.expressions)});var Mo={id:null,generator:!1,async:!1,expression:!0},hi=(t,e)=>({type:"ArrowFunctionExpression",params:t.parameters.map(n=>e.createNode({type:"Identifier",name:n.name},n.sourceSpan)),body:e.transformChild(t.body),...Mo});var fi=(t,e)=>e.transformChild(t.ast);var Ro=t=>t==="&&"||t==="||"||t==="??",di=(t,e)=>{let{operation:n}=t,[s,i]=e.transformChildren([t.left,t.right]);return Ro(n)?{type:"LogicalExpression",operator:n,left:s,right:i}:E.isAssignmentOperation(n)?{type:"AssignmentExpression",left:s,right:i,operator:n}:{left:s,right:i,type:"BinaryExpression",operator:n}};var Oo={optional:!1},Do={optional:!0},mi=({optional:t})=>(e,n)=>{let s=n.transformChildren(e.args),i=n.transformChild(e.receiver);return t||ye(i)?{type:"OptionalCallExpression",callee:i,arguments:s,optional:t}:{type:"CallExpression",callee:i,arguments:s}},gi=mi(Oo),vi=mi(Do);var wi=(t,e)=>({type:"NGChainedExpression",expressions:e.transformChildren(t.expressions)});var Si=(t,e)=>{let[n,s,i]=e.transformChildren([t.condition,t.trueExp,t.falseExp]);return{type:"ConditionalExpression",test:n,consequent:s,alternate:i}};var xi=()=>({type:"NGEmptyExpression"});var yi=(t,e)=>{let{expressions:n}=t;if(n.length!==1)throw new Error("Unexpected 'Interpolation'");return e.transformChild(n[0])};var Ei=t=>{let{value:e}=t;switch(typeof e){case"boolean":return{type:"BooleanLiteral",value:e};case"number":return{type:"NumericLiteral",value:e};case"object":return{type:"NullLiteral"};case"string":return{type:"StringLiteral",value:e};case"undefined":return{type:"Identifier",name:"undefined"};default:throw new Error(`Unexpected 'LiteralPrimitive' value type ${typeof e}`)}},Ci=t=>({type:"RegExpLiteral",pattern:t.body,flags:t.flags??""});var Bo={computed:!0,optional:!1},Fo={computed:!0,optional:!0},Vo={computed:!1,optional:!1},Ho={computed:!1,optional:!0},pt=({computed:t,optional:e})=>(n,s)=>{let{receiver:i}=n,r;if(t){let{key:u}=n;r=s.transformChild(u)}else{let u=i instanceof fe,{name:h,nameSpan:d}=n;if(r=s.create({type:"Identifier",name:h},d,u?s.ancestors:[]),u)return r}let a=s.transformChild(i);return e||ye(a)?{type:"OptionalMemberExpression",optional:e,property:r,object:a,computed:t}:{type:"MemberExpression",property:r,object:a,computed:t}},bi=pt(Bo),Ti=pt(Fo),ki=pt(Vo),_i=pt(Ho);var Ii=(t,e)=>({type:"TSNonNullExpression",expression:e.transformChild(t.expression)});var Ni=(t,e)=>{let{keys:n,values:s}=t,i=(r,a=t)=>e.create(r,a,[t,...e.ancestors]);return{type:"ObjectExpression",properties:n.map((r,a)=>{let u=s[a],h=[r.sourceSpan.start,u.sourceSpan.end];if(r.kind==="spread")return i({type:"SpreadElement",argument:e.transformChild(u)},h);let d=!!r.isShorthandInitialized;return i({type:"ObjectProperty",key:i(r.quoted?{type:"StringLiteral",value:r.key}:{type:"Identifier",name:r.key},r.sourceSpan),value:e.transformChild(u),shorthand:d,computed:!1,method:!1},h)})}};var Ai=(t,e)=>e.transformChild(t.expression);var Pi=(t,e)=>({type:"NGPipeExpression",left:e.transformChild(t.exp),right:e.create({type:"Identifier",name:t.name},t.nameSpan),arguments:e.transformChildren(t.args)});var Li=(t,e)=>({type:"SpreadElement",argument:e.transformChild(t.expression)});var $i=(t,e)=>({type:"TaggedTemplateExpression",tag:e.transformChild(t.tag),quasi:e.transformChild(t.template)}),Mi=(t,e)=>({type:"TemplateLiteral",quasis:e.transformChildren(t.elements),expressions:e.transformChildren(t.expressions)}),Ri=(t,e)=>{let[n]=e.ancestors,{elements:s}=n,i=s.indexOf(t),r=i===0,a=i===s.length-1,u=t.sourceSpan.end-(a?1:0),h=t.sourceSpan.start+(r?1:0),d=e.text.slice(h,u);return{type:"TemplateElement",value:{cooked:t.text,raw:d},tail:a,range:[h,u]}};var Oi=()=>({type:"ThisExpression"});var mn=t=>(e,n)=>({type:"UnaryExpression",prefix:!0,operator:t,argument:n.transformChild(e.expression)}),Di=mn("!"),Bi=mn("typeof"),Fi=mn("void"),Vi=(t,e)=>({type:"UnaryExpression",prefix:!0,argument:e.transformChild(t.expr),operator:t.operator});var Uo=t=>{throw new Error(`Unexpected node type '${t.constructor.name}'`)},Hi=Uo;var Ui=ui({visitASTWithSource:()=>fi,visitArrowFunction:()=>hi,visitBinary:()=>di,visitCall:()=>gi,visitChain:()=>wi,visitConditional:()=>Si,visitEmptyExpr:()=>xi,visitImplicitReceiver:()=>Hi,visitInterpolation:()=>yi,visitKeyedRead:()=>bi,visitLiteralArray:()=>pi,visitLiteralMap:()=>Ni,visitLiteralPrimitive:()=>Ei,visitNonNullAssert:()=>Ii,visitParenthesizedExpression:()=>Ai,visitPipe:()=>Pi,visitPrefixNot:()=>Di,visitPropertyRead:()=>ki,visitRegularExpressionLiteral:()=>Ci,visitSafeCall:()=>vi,visitSafeKeyedRead:()=>Ti,visitSafePropertyRead:()=>_i,visitSpreadElement:()=>Li,visitTaggedTemplateLiteral:()=>$i,visitTemplateLiteral:()=>Mi,visitTemplateLiteralElement:()=>Ri,visitThisReceiver:()=>Oi,visitTypeofExpression:()=>Bi,visitUnary:()=>Vi,visitVoidExpression:()=>Fi});var Wi=Ui;var ht=class gn extends ut{node;ancestors;constructor({node:e,text:n,ancestors:s=[]}){super(n),this.node=e,this.ancestors=s}create(e,n,s=this.ancestors){return s[0]instanceof $e&&(e.extra={...e.extra,parenthesized:!0}),super.createNode(e,e.range??n??this.node)}transformChild(e){return new gn({node:e,ancestors:[this.node,...this.ancestors],text:this.text}).transform()}transformChildren(e){return e.map(n=>this.transformChild(n))}transform(){let{node:e}=this,n=e.visit(Wi,this);return this.create(n,this.node)}static transform(e,n){return new gn({node:e,text:n,ancestors:[]}).transform()}};var qi=class extends ht{constructor(t){super({node:t,text:t.source})}};var ji=(t,e)=>ht.transform(t,e),zi=t=>new qi(t).transform();var Gi=(t,e)=>(n,s,...i)=>n|1&&s==null?void 0:(e.call(s)??s[t]).apply(s,i);function Wo(t){return this[t<0?this.length+t:t]}var qo=Gi("at",function(){if(Array.isArray(this)||typeof this=="string")return Wo}),ft=qo;function Xi(t){return t instanceof Me}function Qi(t){return t instanceof de}var we,se,m,Ji,T,vn,wn,Sn,Yi,Ki,Zi,er,Se,jo=(Se=class extends ut{constructor(n,s){super(s);De(this,m);De(this,we);De(this,se);St(this,we,n),St(this,se,s);for(let i of n)w(this,m,Yi).call(this,i)}get expressions(){return w(this,m,Zi).call(this)}},we=new WeakMap,se=new WeakMap,m=new WeakSet,Ji=function(){return z(this,we)[0].key},T=function(n,s){return Nn(Se.prototype,this,"createNode").call(this,n,s)},vn=function(n){return ji(n,this.text)},wn=function(n){return Ln(n.slice(z(this,m,Ji).source.length))},Sn=function(n){let s=z(this,se);if(s[n.start]!=='"'&&s[n.start]!=="'")return;let i=s[n.start],r=!1;for(let a=n.start+1;a<s.length;a++)switch(s[a]){case i:if(!r){n.end=a+1;return}default:r=!1;break;case"\\":r=!r;break}},Yi=function(n){w(this,m,Sn).call(this,n.key.span),Qi(n)&&n.value&&w(this,m,Sn).call(this,n.value.span)},Ki=function(n){if(!n.value||n.value.source)return n.value;let s=this.getCharacterIndex(/\S/,n.sourceSpan.start);return{source:"$implicit",span:{start:s,end:s}}},Zi=function(){let n=z(this,we),[s]=n,i=z(this,se).slice(s.sourceSpan.start,s.sourceSpan.end).trim().length===0?n.slice(1):n,r=[],a=null;for(let[u,h]of i.entries()){if(a&&Xi(a)&&Qi(h)&&h.value&&h.value.source===a.key.source){let d=w(this,m,T).call(this,{type:"NGMicrosyntaxKey",name:h.key.source},h.key.span),g=(_,b)=>({..._,...this.transformSpan({start:_.start,end:b})}),P=_=>({...g(_,d.end),alias:d}),k=r.pop();if(k.type==="NGMicrosyntaxExpression")r.push(P(k));else if(k.type==="NGMicrosyntaxKeyedExpression"){let _=P(k.expression);r.push(g({...k,expression:_},_.end))}else throw new Error(`Unexpected type ${k.type}`)}else r.push(w(this,m,er).call(this,h,u));a=h}return w(this,m,T).call(this,{type:"NGMicrosyntax",body:r},r.length===0?n[0].sourceSpan:{start:r[0].start,end:ft(0,r,-1).end})},er=function(n,s){if(Xi(n)){let{key:i,value:r}=n;return r?s===0?w(this,m,T).call(this,{type:"NGMicrosyntaxExpression",expression:w(this,m,vn).call(this,r.ast),alias:null},r):w(this,m,T).call(this,{type:"NGMicrosyntaxKeyedExpression",key:w(this,m,T).call(this,{type:"NGMicrosyntaxKey",name:w(this,m,wn).call(this,i.source)},i.span),expression:w(this,m,T).call(this,{type:"NGMicrosyntaxExpression",expression:w(this,m,vn).call(this,r.ast),alias:null},r)},[i.span.start,r.sourceSpan.end]):w(this,m,T).call(this,{type:"NGMicrosyntaxKey",name:w(this,m,wn).call(this,i.source)},i.span)}else{let{key:i,sourceSpan:r}=n;if(/^let\s$/.test(z(this,se).slice(r.start,r.start+4))){let{value:a}=n;return w(this,m,T).call(this,{type:"NGMicrosyntaxLet",key:w(this,m,T).call(this,{type:"NGMicrosyntaxKey",name:i.source},i.span),value:a?w(this,m,T).call(this,{type:"NGMicrosyntaxKey",name:a.source},a.span):null},[r.start,a?a.span.end:i.span.end])}else{let a=w(this,m,Ki).call(this,n);return w(this,m,T).call(this,{type:"NGMicrosyntaxAs",key:w(this,m,T).call(this,{type:"NGMicrosyntaxKey",name:a.source},a.span),alias:w(this,m,T).call(this,{type:"NGMicrosyntaxKey",name:i.source},i.span)},[a.span.start,i.span.end])}}},Se);function tr(t,e){return new jo(t,e).expressions}var dt=t=>e=>{let{result:n,comments:s}=t(e);return Object.assign(zi(n),{comments:s})},mt=dt(ii),xn=dt(ri),zo=dt(oi),yn=dt(ai),En=t=>tr(li(t).result.templateBindings,t);function Go(t,e){let n=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(n,e)}var nr=Go;function sr(t){let e=new Set(t);return n=>e.has(n?.type)}function Cn(t){return t.range?.[1]??t.end}function ie(t){let e=t.range?.[0]??t.start,n=(t.declaration?.decorators??t.decorators)?.[0];return n?Math.min(ie(n),e):e}var Xo=5,Qo=8,Jo=8,ir=t=>e=>e.label?re(e.label):ie(e)+t,Yo=t=>t.__contentEnd??Cn(t),rr=["ExpressionStatement","Directive","ImportDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","ReturnStatement","ThrowStatement","DoWhileStatement"],Ko=new Map([["BreakStatement",ir(Xo)],["ContinueStatement",ir(Qo)],["DebuggerStatement",t=>ie(t)+Jo],["VariableDeclaration",t=>re(ft(0,t.declarations,-1))],...rr.map(t=>[t,Yo])]),Zo=sr(rr);function re(t){let{type:e}=t;return e==="IfStatement"?re(t.alternate??t.consequent):e==="ForInStatement"||e==="ForOfStatement"||e==="ForStatement"||e==="LabeledStatement"||e==="WithStatement"||e==="WhileStatement"?re(t.body):Ko.get(e)?.(t)??Cn(t)}function ea(t){let{type:e="JsExpressionRoot",expression:n,comments:s=n?.comments??[],text:i,rootMarker:r}=t,a={type:e,comments:s,range:[0,i.length],rootMarker:r};return n&&(delete n.comments,a.node=n),a}var or=ea;function ta(t){if(!t?.location)return t;let{message:e,location:{line:n,col:s}}=t;return nr(e,{loc:{start:{line:n+1,column:Math.max(s,1)}},cause:t})}function gt(t){return{astFormat:"estree",parse(e){let n;try{n=t(e)}catch(i){throw ta(i)}let{comments:s}=n;return delete n.comments,t===mt&&n.type!=="NGChainedExpression"&&(n={...n,type:"NGChainedExpression",expressions:[n]}),or({type:"NGRoot",expression:n,comments:s,text:e})},locStart:ie,locEnd:re}}var na=gt(mt),sa=gt(xn),ia=gt(yn),ra=gt(En);return dr(oa);});
|
|
5
|
+
If '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){let n=Fe(e),s=this._schema.get(n)||this._schema.get("unknown");return Array.from(s.keys()).map(i=>ko.get(i)??i)}allKnownEventsOfElement(e){let n=Fe(e);return Array.from(this._eventSchema.get(n)??[])}normalizeAnimationStyleProperty(e){return Er(e)}normalizeAnimationStyleValue(e,n,s){let i="",r=s.toString().trim(),a=null;if(_o(e)&&s!==0&&s!=="0")if(typeof s=="number")i="px";else{let u=s.match(/^[+-]?[\d\.]+([a-z]*)$/);u&&u[1].length==0&&(a=`Please provide a CSS unit value for ${n}:${s}`)}return{error:a,value:r+i}}};function _o(t){switch(t){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}var Oa=new ge(new Oe);function $(t){return e=>e.kind===t}function Pe(t,e){return n=>n.kind===t&&e===n.expression instanceof me}function Io(t){return(t.kind===l.Property||t.kind===l.TwoWayProperty)&&!(t.expression instanceof me)}var Da=[{test:$(l.StyleMap),transform:rt},{test:$(l.ClassMap),transform:rt},{test:$(l.StyleProp)},{test:$(l.ClassProp)},{test:Pe(l.Attribute,!0)},{test:Pe(l.Property,!0)},{test:Io},{test:Pe(l.Attribute,!1)},{test:$(l.Control)}],Ba=[{test:Pe(l.DomProperty,!0)},{test:Pe(l.DomProperty,!1)},{test:$(l.Attribute)},{test:$(l.StyleMap),transform:rt},{test:$(l.ClassMap),transform:rt},{test:$(l.StyleProp)},{test:$(l.ClassProp)}],Fa=new Set([l.Listener,l.TwoWayListener,l.AnimationListener,l.StyleMap,l.ClassMap,l.StyleProp,l.ClassProp,l.Property,l.TwoWayProperty,l.DomProperty,l.Attribute,l.Animation,l.Control]);function rt(t){return t.slice(t.length-1)}var Va=new Map([[O.Idle,{none:c.deferOnIdle,prefetch:c.deferPrefetchOnIdle,hydrate:c.deferHydrateOnIdle}],[O.Immediate,{none:c.deferOnImmediate,prefetch:c.deferPrefetchOnImmediate,hydrate:c.deferHydrateOnImmediate}],[O.Timer,{none:c.deferOnTimer,prefetch:c.deferPrefetchOnTimer,hydrate:c.deferHydrateOnTimer}],[O.Hover,{none:c.deferOnHover,prefetch:c.deferPrefetchOnHover,hydrate:c.deferHydrateOnHover}],[O.Interaction,{none:c.deferOnInteraction,prefetch:c.deferPrefetchOnInteraction,hydrate:c.deferHydrateOnInteraction}],[O.Viewport,{none:c.deferOnViewport,prefetch:c.deferPrefetchOnViewport,hydrate:c.deferHydrateOnViewport}],[O.Never,{none:c.deferHydrateNever,prefetch:c.deferHydrateNever,hydrate:c.deferHydrateNever}]]);var Ha=[c.pipeBind1,c.pipeBind2,c.pipeBind3,c.pipeBind4];var Ua={constant:[c.interpolate,c.interpolate1,c.interpolate2,c.interpolate3,c.interpolate4,c.interpolate5,c.interpolate6,c.interpolate7,c.interpolate8],variable:c.interpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}};var Wa=new Map([["window",c.resolveWindow],["document",c.resolveDocument],["body",c.resolveBody]]);var qa=new Map([[x.HTML,c.sanitizeHtml],[x.RESOURCE_URL,c.sanitizeResourceUrl],[x.SCRIPT,c.sanitizeScript],[x.STYLE,c.sanitizeStyle],[x.URL,c.sanitizeUrl],[x.ATTRIBUTE_NO_BINDING,c.validateAttribute]]),ja=new Map([[x.HTML,c.trustConstantHtml],[x.RESOURCE_URL,c.trustConstantResourceUrl]]);var Ns;(function(t){t[t.None=0]="None",t[t.ViewContextRead=1]="ViewContextRead",t[t.ViewContextWrite=2]="ViewContextWrite",t[t.SideEffectful=4]="SideEffectful"})(Ns||(Ns={}));var za=new Map([[M.Property,R.Property],[M.TwoWay,R.TwoWayProperty],[M.Attribute,R.Attribute],[M.Class,R.ClassName],[M.Style,R.StyleProperty],[M.LegacyAnimation,R.LegacyAnimation],[M.Animation,R.Animation]]);var As;(function(t){t[t.NG_CONTENT=0]="NG_CONTENT",t[t.STYLE=1]="STYLE",t[t.STYLESHEET=2]="STYLESHEET",t[t.SCRIPT=3]="SCRIPT",t[t.OTHER=4]="OTHER"})(As||(As={}));var Ps;(function(t){t.IDLE="idle",t.TIMER="timer",t.INTERACTION="interaction",t.IMMEDIATE="immediate",t.HOVER="hover",t.VIEWPORT="viewport",t.NEVER="never"})(Ps||(Ps={}));var ei="%COMP%",Ga=`_nghost-${ei}`,Xa=`_ngcontent-${ei}`;var Ls;(function(t){t[t.Selector=0]="Selector",t[t.HostDirective=1]="HostDirective"})(Ls||(Ls={}));var $s;(function(t){t[t.Extract=0]="Extract",t[t.Merge=1]="Merge"})($s||($s={}));var Qa=new Bt("22.0.6");var Ms;(function(t){t.DIAGNOSTIC="D",t.EXPRESSION_TYPE_IDENTIFIER="T"})(Ms||(Ms={}));var Rs;(function(t){t.DIRECTIVE="DIR",t.HOST_DIRECTIVE="HOSTDIR",t.COMPONENT_COMPLETION="COMPCOMP",t.EVENT_PARAMETER="EP",t.VARIABLE_AS_EXPRESSION="VAE"})(Rs||(Rs={}));var Os;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning"})(Os||(Os={}));var Ds;(function(t){t[t.UseEmitter=0]="UseEmitter",t[t.CopyClassNodes=1]="CopyClassNodes",t[t.FallbackToAny=2]="FallbackToAny"})(Ds||(Ds={}));var Bs=class t{static SINGLETON=new t;static veWillInferAnyFor(e){let n=t.SINGLETON;return e instanceof Xe?e.visit(n):e.receiver.visit(n)}visitUnary(e){return e.expr.visit(this)}visitBinary(e){return e.left.visit(this)||e.right.visit(this)}visitChain(){return!1}visitConditional(e){return e.condition.visit(this)||e.trueExp.visit(this)||e.falseExp.visit(this)}visitCall(){return!0}visitSafeCall(){return!1}visitImplicitReceiver(){return!1}visitThisReceiver(){return!1}visitInterpolation(e){return e.expressions.some(n=>n.visit(this))}visitKeyedRead(){return!1}visitLiteralArray(){return!0}visitLiteralMap(){return!0}visitLiteralPrimitive(){return!1}visitPipe(){return!0}visitPrefixNot(e){return e.expression.visit(this)}visitTypeofExpression(e){return e.expression.visit(this)}visitVoidExpression(e){return e.expression.visit(this)}visitNonNullAssert(e){return e.expression.visit(this)}visitPropertyRead(){return!1}visitSafePropertyRead(){return!1}visitSafeKeyedRead(){return!1}visitTemplateLiteral(){return!1}visitTemplateLiteralElement(){return!1}visitTaggedTemplateLiteral(){return!1}visitParenthesizedExpression(e){return e.expression.visit(this)}visitRegularExpressionLiteral(){return!1}visitSpreadElement(e){return e.expression.visit(this)}visitArrowFunction(e,n){return!1}};var No=["errors","dirty","disabled","disabledReasons","hidden","invalid","name","pending","readonly","touched","max","maxLength","min","minLength","pattern","required"],Ja=new Set([...No,"value","checked"]);var Ya=new it;var Ka=new it;var Ao="test.html";function ti(t){let e=new et(t,Ao),n=new Ze(e,0,0,0),s=n.moveBy(t.length);return{text:t,file:e,start:n,end:s,sourceSpan:new tt(n,s)}}var Po;function ni(){return Po??(Po=new ge(new Oe))}var Lo=t=>ge.prototype._commentStart(t);function $o(t){let e=Lo(t);return e===null?[]:[{type:"CommentLine",value:t.slice(e+2),...Be({start:e,end:t.length})}]}function si(t){let{result:e}=t;if(e.errors.length!==0){let[n]=e.errors;if(!(n instanceof Re))throw n;let{message:s}=n;{let a=s.match(/ in .*?@\d+:\d+$/);a&&(s=s.slice(0,a.index))}let i=t.start;{let a=s.match(/at column (?<index>\d+)/);a&&(s=s.slice(0,a.index),i=i.moveBy(Number(a.groups.index)))}let r=new SyntaxError(s.trim(),{cause:n});throw Object.assign(r,{location:i,span:n.span}),r.cause??(r.cause=n),r}return t}var ct=t=>e=>{let n=ti(e);return si({...n,result:ni()[t](e,n.sourceSpan,0),comments:$o(e)})},ii=ct("parseAction"),ri=ct("parseBinding"),oi=ct("parseSimpleBinding"),ai=ct("parseInterpolationExpression"),li=t=>{let e=ti(t);return si({...e,result:ni().parseTemplateBindings("",t,e.sourceSpan,0,0),comments:[]})};var ut=class{text;constructor(t){this.text=t}getCharacterIndex(t,e){return Pn(this.text,t,e)}transformSpan(t){return Be(t)}createNode(t,e){let n=t.start,s=t.end,i=t.range;e&&(Array.isArray(e)?([n,s]=e,i=e):({start:n,end:s}=e.sourceSpan??e,i=[n,s]));i?[n,s]=i:typeof n=="number"&&typeof s=="number"&&(i=[n,s]);if(!(typeof n=="number"&&typeof s=="number"&&i))throw new Error("Missing location information");let r={...t,start:n,end:s,range:i};switch(r.type){case"NumericLiteral":case"StringLiteral":case"RegExpLiteral":{let a=this.text.slice(n,s),{value:u}=r;r.extra={...r.extra,raw:a,rawValue:u};break}}return r}};var ci=Object.defineProperty,ui=(t,e)=>{let n={};for(var s in t)ci(n,s,{get:t[s],enumerable:!0});return e||ci(n,Symbol.toStringTag,{value:"Module"}),n};var pi=(t,e)=>({type:"ArrayExpression",elements:e.transformChildren(t.expressions)});var Mo={id:null,generator:!1,async:!1,expression:!0},hi=(t,e)=>({type:"ArrowFunctionExpression",params:t.parameters.map(n=>e.createNode({type:"Identifier",name:n.name},n.sourceSpan)),body:e.transformChild(t.body),...Mo});var fi=(t,e)=>e.transformChild(t.ast);var Ro=t=>t==="&&"||t==="||"||t==="??",di=(t,e)=>{let{operation:n}=t,[s,i]=e.transformChildren([t.left,t.right]);return Ro(n)?{type:"LogicalExpression",operator:n,left:s,right:i}:E.isAssignmentOperation(n)?{type:"AssignmentExpression",left:s,right:i,operator:n}:{left:s,right:i,type:"BinaryExpression",operator:n}};var Oo={optional:!1},Do={optional:!0},mi=({optional:t})=>(e,n)=>{let s=n.transformChildren(e.args),i=n.transformChild(e.receiver);return t||ye(i)?{type:"OptionalCallExpression",callee:i,arguments:s,optional:t}:{type:"CallExpression",callee:i,arguments:s}},gi=mi(Oo),vi=mi(Do);var wi=(t,e)=>({type:"NGChainedExpression",expressions:e.transformChildren(t.expressions)});var Si=(t,e)=>{let[n,s,i]=e.transformChildren([t.condition,t.trueExp,t.falseExp]);return{type:"ConditionalExpression",test:n,consequent:s,alternate:i}};var xi=()=>({type:"NGEmptyExpression"});var yi=(t,e)=>{let{expressions:n}=t;if(n.length!==1)throw new Error("Unexpected 'Interpolation'");return e.transformChild(n[0])};var Ei=t=>{let{value:e}=t;switch(typeof e){case"boolean":return{type:"BooleanLiteral",value:e};case"number":return{type:"NumericLiteral",value:e};case"object":return{type:"NullLiteral"};case"string":return{type:"StringLiteral",value:e};case"undefined":return{type:"Identifier",name:"undefined"};default:throw new Error(`Unexpected 'LiteralPrimitive' value type ${typeof e}`)}},Ci=t=>({type:"RegExpLiteral",pattern:t.body,flags:t.flags??""});var Bo={computed:!0,optional:!1},Fo={computed:!0,optional:!0},Vo={computed:!1,optional:!1},Ho={computed:!1,optional:!0},pt=({computed:t,optional:e})=>(n,s)=>{let{receiver:i}=n,r;if(t){let{key:u}=n;r=s.transformChild(u)}else{let u=i instanceof fe,{name:h,nameSpan:d}=n;if(r=s.create({type:"Identifier",name:h},d,u?s.ancestors:[]),u)return r}let a=s.transformChild(i);return e||ye(a)?{type:"OptionalMemberExpression",optional:e,property:r,object:a,computed:t}:{type:"MemberExpression",property:r,object:a,computed:t}},bi=pt(Bo),Ti=pt(Fo),ki=pt(Vo),_i=pt(Ho);var Ii=(t,e)=>({type:"TSNonNullExpression",expression:e.transformChild(t.expression)});var Ni=(t,e)=>{let{keys:n,values:s}=t,i=(r,a=t)=>e.create(r,a,[t,...e.ancestors]);return{type:"ObjectExpression",properties:n.map((r,a)=>{let u=s[a],h=[r.sourceSpan.start,u.sourceSpan.end];if(r.kind==="spread")return i({type:"SpreadElement",argument:e.transformChild(u)},h);let d=!!r.isShorthandInitialized;return i({type:"ObjectProperty",key:i(r.quoted?{type:"StringLiteral",value:r.key}:{type:"Identifier",name:r.key},r.sourceSpan),value:e.transformChild(u),shorthand:d,computed:!1,method:!1},h)})}};var Ai=(t,e)=>e.transformChild(t.expression);var Pi=(t,e)=>({type:"NGPipeExpression",left:e.transformChild(t.exp),right:e.create({type:"Identifier",name:t.name},t.nameSpan),arguments:e.transformChildren(t.args)});var Li=(t,e)=>({type:"SpreadElement",argument:e.transformChild(t.expression)});var $i=(t,e)=>({type:"TaggedTemplateExpression",tag:e.transformChild(t.tag),quasi:e.transformChild(t.template)}),Mi=(t,e)=>({type:"TemplateLiteral",quasis:e.transformChildren(t.elements),expressions:e.transformChildren(t.expressions)}),Ri=(t,e)=>{let[n]=e.ancestors,{elements:s}=n,i=s.indexOf(t),r=i===0,a=i===s.length-1,u=t.sourceSpan.end-(a?1:0),h=t.sourceSpan.start+(r?1:0),d=e.text.slice(h,u);return{type:"TemplateElement",value:{cooked:t.text,raw:d},tail:a,range:[h,u]}};var Oi=()=>({type:"ThisExpression"});var mn=t=>(e,n)=>({type:"UnaryExpression",prefix:!0,operator:t,argument:n.transformChild(e.expression)}),Di=mn("!"),Bi=mn("typeof"),Fi=mn("void"),Vi=(t,e)=>({type:"UnaryExpression",prefix:!0,argument:e.transformChild(t.expr),operator:t.operator});var Uo=t=>{throw new Error(`Unexpected node type '${t.constructor.name}'`)},Hi=Uo;var Ui=ui({visitASTWithSource:()=>fi,visitArrowFunction:()=>hi,visitBinary:()=>di,visitCall:()=>gi,visitChain:()=>wi,visitConditional:()=>Si,visitEmptyExpr:()=>xi,visitImplicitReceiver:()=>Hi,visitInterpolation:()=>yi,visitKeyedRead:()=>bi,visitLiteralArray:()=>pi,visitLiteralMap:()=>Ni,visitLiteralPrimitive:()=>Ei,visitNonNullAssert:()=>Ii,visitParenthesizedExpression:()=>Ai,visitPipe:()=>Pi,visitPrefixNot:()=>Di,visitPropertyRead:()=>ki,visitRegularExpressionLiteral:()=>Ci,visitSafeCall:()=>vi,visitSafeKeyedRead:()=>Ti,visitSafePropertyRead:()=>_i,visitSpreadElement:()=>Li,visitTaggedTemplateLiteral:()=>$i,visitTemplateLiteral:()=>Mi,visitTemplateLiteralElement:()=>Ri,visitThisReceiver:()=>Oi,visitTypeofExpression:()=>Bi,visitUnary:()=>Vi,visitVoidExpression:()=>Fi});var Wi=Ui;var ht=class gn extends ut{node;ancestors;constructor({node:e,text:n,ancestors:s=[]}){super(n),this.node=e,this.ancestors=s}create(e,n,s=this.ancestors){return s[0]instanceof $e&&(e.extra={...e.extra,parenthesized:!0}),super.createNode(e,e.range??n??this.node)}transformChild(e){return new gn({node:e,ancestors:[this.node,...this.ancestors],text:this.text}).transform()}transformChildren(e){return e.map(n=>this.transformChild(n))}transform(){let{node:e}=this,n=e.visit(Wi,this);return this.create(n,this.node)}static transform(e,n){return new gn({node:e,text:n,ancestors:[]}).transform()}};var qi=class extends ht{constructor(t){super({node:t,text:t.source})}};var ji=(t,e)=>ht.transform(t,e),zi=t=>new qi(t).transform();var Gi=(t,e)=>(n,s,...i)=>n|1&&s==null?void 0:(e.call(s)??s[t]).apply(s,i);function Wo(t){return this[t<0?this.length+t:t]}var qo=Gi("at",function(){if(Array.isArray(this)||typeof this=="string")return Wo}),ft=qo;function Xi(t){return t instanceof Me}function Qi(t){return t instanceof de}var we,se,m,Ji,T,vn,wn,Sn,Yi,Ki,Zi,er,Se,jo=(Se=class extends ut{constructor(n,s){super(s);De(this,m);De(this,we);De(this,se);St(this,we,n),St(this,se,s);for(let i of n)w(this,m,Yi).call(this,i)}get expressions(){return w(this,m,Zi).call(this)}},we=new WeakMap,se=new WeakMap,m=new WeakSet,Ji=function(){return z(this,we)[0].key},T=function(n,s){return Nn(Se.prototype,this,"createNode").call(this,n,s)},vn=function(n){return ji(n,this.text)},wn=function(n){return Ln(n.slice(z(this,m,Ji).source.length))},Sn=function(n){let s=z(this,se);if(s[n.start]!=='"'&&s[n.start]!=="'")return;let i=s[n.start],r=!1;for(let a=n.start+1;a<s.length;a++)switch(s[a]){case i:if(!r){n.end=a+1;return}default:r=!1;break;case"\\":r=!r;break}},Yi=function(n){w(this,m,Sn).call(this,n.key.span),Qi(n)&&n.value&&w(this,m,Sn).call(this,n.value.span)},Ki=function(n){if(!n.value||n.value.source)return n.value;let s=this.getCharacterIndex(/\S/,n.sourceSpan.start);return{source:"$implicit",span:{start:s,end:s}}},Zi=function(){let n=z(this,we),[s]=n,i=z(this,se).slice(s.sourceSpan.start,s.sourceSpan.end).trim().length===0?n.slice(1):n,r=[],a=null;for(let[u,h]of i.entries()){if(a&&Xi(a)&&Qi(h)&&h.value&&h.value.source===a.key.source){let d=w(this,m,T).call(this,{type:"NGMicrosyntaxKey",name:h.key.source},h.key.span),g=(_,b)=>({..._,...this.transformSpan({start:_.start,end:b})}),P=_=>({...g(_,d.end),alias:d}),k=r.pop();if(k.type==="NGMicrosyntaxExpression")r.push(P(k));else if(k.type==="NGMicrosyntaxKeyedExpression"){let _=P(k.expression);r.push(g({...k,expression:_},_.end))}else throw new Error(`Unexpected type ${k.type}`)}else r.push(w(this,m,er).call(this,h,u));a=h}return w(this,m,T).call(this,{type:"NGMicrosyntax",body:r},r.length===0?n[0].sourceSpan:{start:r[0].start,end:ft(0,r,-1).end})},er=function(n,s){if(Xi(n)){let{key:i,value:r}=n;return r?s===0?w(this,m,T).call(this,{type:"NGMicrosyntaxExpression",expression:w(this,m,vn).call(this,r.ast),alias:null},r):w(this,m,T).call(this,{type:"NGMicrosyntaxKeyedExpression",key:w(this,m,T).call(this,{type:"NGMicrosyntaxKey",name:w(this,m,wn).call(this,i.source)},i.span),expression:w(this,m,T).call(this,{type:"NGMicrosyntaxExpression",expression:w(this,m,vn).call(this,r.ast),alias:null},r)},[i.span.start,r.sourceSpan.end]):w(this,m,T).call(this,{type:"NGMicrosyntaxKey",name:w(this,m,wn).call(this,i.source)},i.span)}else{let{key:i,sourceSpan:r}=n;if(/^let\s$/.test(z(this,se).slice(r.start,r.start+4))){let{value:a}=n;return w(this,m,T).call(this,{type:"NGMicrosyntaxLet",key:w(this,m,T).call(this,{type:"NGMicrosyntaxKey",name:i.source},i.span),value:a?w(this,m,T).call(this,{type:"NGMicrosyntaxKey",name:a.source},a.span):null},[r.start,a?a.span.end:i.span.end])}else{let a=w(this,m,Ki).call(this,n);return w(this,m,T).call(this,{type:"NGMicrosyntaxAs",key:w(this,m,T).call(this,{type:"NGMicrosyntaxKey",name:a.source},a.span),alias:w(this,m,T).call(this,{type:"NGMicrosyntaxKey",name:i.source},i.span)},[a.span.start,i.span.end])}}},Se);function tr(t,e){return new jo(t,e).expressions}var dt=t=>e=>{let{result:n,comments:s}=t(e);return Object.assign(zi(n),{comments:s})},mt=dt(ii),xn=dt(ri),zo=dt(oi),yn=dt(ai),En=t=>tr(li(t).result.templateBindings,t);function Go(t,e){let n=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(n,e)}var nr=Go;function sr(t){let e=new Set(t);return n=>e.has(n?.type)}function Cn(t){return t.range?.[1]??t.end}function ie(t){let e=t.range?.[0]??t.start,n=(t.declaration?.decorators??t.decorators)?.[0];return n?Math.min(ie(n),e):e}var Xo=5,Qo=8,Jo=8,ir=t=>e=>e.label?re(e.label):ie(e)+t,Yo=t=>t.__contentEnd??Cn(t),rr=["ExpressionStatement","Directive","ImportDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","ReturnStatement","ThrowStatement","DoWhileStatement"],Ko=new Map([["BreakStatement",ir(Xo)],["ContinueStatement",ir(Qo)],["DebuggerStatement",t=>ie(t)+Jo],["VariableDeclaration",t=>re(ft(0,t.declarations,-1))],...rr.map(t=>[t,Yo])]),Zo=sr(rr);function re(t){let{type:e}=t;return e==="IfStatement"?re(t.alternate??t.consequent):e==="ForInStatement"||e==="ForOfStatement"||e==="ForStatement"||e==="LabeledStatement"||e==="WithStatement"||e==="WhileStatement"?re(t.body):Ko.get(e)?.(t)??Cn(t)}function ea(t){let{type:e="JsExpressionRoot",expression:n,comments:s=n?.comments??[],text:i,rootMarker:r}=t,a={type:e,comments:s,range:[0,i.length],rootMarker:r};return n&&(delete n.comments,a.node=n),a}var or=ea;function ta(t){if(!t?.location)return t;let{message:e,location:{line:n,col:s}}=t;return nr(e,{loc:{start:{line:n+1,column:Math.max(s,1)}},cause:t})}function gt(t){return{astFormat:"estree",parse(e){let n;try{n=t(e)}catch(i){throw ta(i)}let{comments:s}=n;return delete n.comments,t===mt&&n.type!=="NGChainedExpression"&&(n={...n,type:"NGChainedExpression",expressions:[n]}),or({type:"NGRoot",expression:n,comments:s,text:e})},locStart:ie,locEnd:re}}var na=gt(mt),sa=gt(xn),ia=gt(yn),ra=gt(En);return dr(oa);});
|