sveast 0.5.0 → 0.6.0
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/README.md +72 -8
- package/core.d.ts +26 -4
- package/core.js +1 -1
- package/entities.js +1 -1
- package/index.d.ts +73 -5
- package/index.js +1 -1
- package/is-valid-type.js +1 -1
- package/package.json +6 -1
- package/parse-imports-exports.js +1 -0
- package/parse-module.js +1 -1
- package/parse.js +1 -1
- package/shared-0ehch67h.js +2 -0
- package/shared-3xek95jd.js +12 -0
- package/shared-88pt6me6.js +2 -0
- package/{shared-c2k7d7rg.js → shared-9f69x2q9.js} +2 -2
- package/shared-c1jf0gfc.js +2 -0
- package/{shared-xw9zc4rz.js → shared-c4vs4cam.js} +2 -2
- package/shared-etx1q7m5.js +3 -0
- package/{shared-cx7c0gk3.js → shared-f8ty80r9.js} +7 -7
- package/shared-nqsechtt.js +2 -0
- package/shared-rfyyd11j.js +3 -0
- package/{shared-p7c7qbej.js → shared-y4gayx8p.js} +2 -2
- package/typescript.js +1 -1
- package/walk.d.ts +1891 -0
- package/walk.js +1 -1
- package/shared-3ca5cgq8.js +0 -2
- package/shared-7q7hyetp.js +0 -3
- package/shared-da2hc1fx.js +0 -2
- package/shared-kqcn291j.js +0 -2
- package/shared-t6kshmn4.js +0 -12
- package/shared-xvd609sh.js +0 -2
package/walk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a,u}from"./shared-c1jf0gfc.js";function g(t){let e=[];return i(t,e),e}function i(t,e){switch(t.type){case"Identifier":e.push(t);return;case"ObjectPattern":for(let r of t.properties)i(r.type==="RestElement"?r.argument:r.value,e);return;case"ArrayPattern":for(let r of t.elements)if(r!==null)i(r,e);return;case"RestElement":i(t.argument,e);return;case"AssignmentPattern":i(t.left,e);return;case"TSParameterProperty":i(t.parameter,e);return;case"TSAsExpression":case"TSNonNullExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":i(t.expression,e)}}function b(t,e){if(t.type!=="Identifier")return!1;if(e===null)return!0;switch(e.type){case"MemberExpression":return e.computed||t===e.object;case"MethodDefinition":return e.computed;case"Property":case"PropertyDefinition":return e.computed||t===e.value;case"ExportSpecifier":case"ImportSpecifier":return t===e.local;case"MetaProperty":case"ImportAttribute":case"ExportAllDeclaration":case"LabeledStatement":case"BreakStatement":case"ContinueStatement":return!1;case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":case"TSInstantiationExpression":case"TSExportAssignment":return t===e.expression;case"TSEnumMember":return t===e.initializer;case"TSParameterProperty":case"TSEnumDeclaration":case"TSImportEqualsDeclaration":return!0;default:return!e.type.startsWith("TS")}}var y={Root:["module","instance","fragment","css"],Script:["attributes","content"],Fragment:["nodes"],Text:[],Comment:[],ExpressionTag:["expression"],HtmlTag:["expression"],ConstTag:["declaration"],DeclarationTag:["declaration"],DebugTag:["identifiers"],RenderTag:["expression"],AttachTag:["expression"],Attribute:["value"],SpreadAttribute:["expression"],AnimateDirective:["expression"],BindDirective:["expression"],ClassDirective:["expression"],LetDirective:["expression"],OnDirective:["expression"],StyleDirective:["value"],TransitionDirective:["expression"],UseDirective:["expression"],Component:["attributes","fragment"],TitleElement:["attributes","fragment"],SlotElement:["attributes","fragment"],RegularElement:["attributes","fragment"],SvelteBody:["attributes","fragment"],SvelteBoundary:["attributes","fragment"],SvelteComponent:["expression","attributes","fragment"],SvelteDocument:["attributes","fragment"],SvelteElement:["tag","attributes","fragment"],SvelteFragment:["attributes","fragment"],SvelteHead:["attributes","fragment"],SvelteOptions:["attributes","fragment"],SvelteSelf:["attributes","fragment"],SvelteWindow:["attributes","fragment"],IfBlock:["test","consequent","alternate"],EachBlock:["expression","context","key","body","fallback"],AwaitBlock:["expression","pending","value","then","error","catch"],KeyBlock:["expression","fragment"],SnippetBlock:["expression","parameters","body"],StyleSheet:["attributes","children"],Rule:["prelude","block"],Atrule:["block"],SelectorList:["children"],ComplexSelector:["children"],RelativeSelector:["combinator","selectors"],Combinator:[],TypeSelector:[],IdSelector:[],ClassSelector:[],AttributeSelector:[],PseudoElementSelector:["args"],PseudoClassSelector:["args"],Percentage:[],Nth:[],NestingSelector:[],Block:["children"],Declaration:[],Program:["body"],ExpressionStatement:["expression"],BlockStatement:["body"],StaticBlock:["body"],EmptyStatement:[],DebuggerStatement:[],WithStatement:["object","body"],ReturnStatement:["argument"],LabeledStatement:["label","body"],BreakStatement:["label"],ContinueStatement:["label"],IfStatement:["test","consequent","alternate"],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],CatchClause:["param","body"],WhileStatement:["test","body"],DoWhileStatement:["body","test"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","typeParameters","params","returnType","body"],FunctionExpression:["id","typeParameters","params","returnType","body"],ArrowFunctionExpression:["typeParameters","params","returnType","body"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","implements","body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","implements","body"],ClassBody:["body"],MethodDefinition:["decorators","key","typeParameters","value"],PropertyDefinition:["decorators","key","typeAnnotation","value"],Property:["decorators","key","value"],ThisExpression:[],Super:[],Literal:[],Identifier:["decorators","typeAnnotation"],PrivateIdentifier:[],ArrayExpression:["elements"],ObjectExpression:["properties"],UnaryExpression:["argument"],UpdateExpression:["argument"],BinaryExpression:["left","right"],LogicalExpression:["left","right"],AssignmentExpression:["left","right"],MemberExpression:["object","property"],ConditionalExpression:["test","consequent","alternate"],CallExpression:["callee","typeArguments","arguments"],NewExpression:["callee","typeArguments","arguments"],SequenceExpression:["expressions"],TemplateLiteral:["quasis","expressions"],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:[],SpreadElement:["argument"],RestElement:["decorators","argument","typeAnnotation"],YieldExpression:["argument"],AwaitExpression:["argument"],ImportExpression:["source","options","arguments"],ChainExpression:["expression"],MetaProperty:["meta","property"],ObjectPattern:["decorators","properties","typeAnnotation"],ArrayPattern:["decorators","elements","typeAnnotation"],AssignmentPattern:["decorators","left","right"],ImportDeclaration:["specifiers","source","attributes"],ImportSpecifier:["imported","local"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportAttribute:["key","value"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ExportDefaultDeclaration:["declaration"],ExportAllDeclaration:["exported","source","attributes"],Decorator:["expression"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterDeclaration:["params"],TSTypeParameterInstantiation:["params"],TSTypeParameter:["constraint","default"],TSAnyKeyword:[],TSBigIntKeyword:[],TSBooleanKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSNamedTupleMember:["label","elementType"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","nameType","typeAnnotation"],TSLiteralType:["literal"],TSTypeReference:["typeName","typeArguments"],TSQualifiedName:["left","right"],TSTypeQuery:["exprName","typeArguments"],TSImportType:["argument","qualifier","typeArguments"],TSTypeLiteral:["members"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation"],TSFunctionType:["typeParameters","parameters","typeAnnotation"],TSConstructorType:["typeParameters","parameters","typeAnnotation"],TSIndexSignature:["decorators","parameters","typeAnnotation"],TSTypePredicate:["parameterName","typeAnnotation"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSDeclareFunction:["id","typeParameters","params","returnType"],TSDeclareMethod:["typeParameters","params","returnType"],TSParameterProperty:["parameter"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSNonNullExpression:["expression"],TSInstantiationExpression:["expression","typeArguments"]},A=Object.assign(Object.create(null),y),E=[],f=Symbol("sveast.walk.stop"),P=Symbol("sveast.walk.skip");function w(t,e){m(t,null,null,null,e)}function m(t,e,r,o,s){let p=v(t);if(p===void 0)throw Error(`unknown node type: ${t.type}`);let n=s.enter?.(t,e,r,o);if(n===f)return!0;if(n!==P){if(n!==t&&a(n))return h(n,e,r,o,s);let x=u(t);for(let S=0;S<p.length;S++){let T=p[S],l=x[T];if(Array.isArray(l))for(let c=0;c<l.length;c++){let d=l[c];if(a(d)&&m(d,t,T,c,s))return!0}else if(a(l)&&m(l,t,T,null,s))return!0}}return s.leave?.(t,e,r,o)===f}function v(t){let e=t.type;if(e==="Identifier")return t.typeAnnotation===void 0&&t.decorators===void 0?E:y.Identifier;if(e==="Literal")return y.Literal;if(e==="Text")return y.Text;return A[e]}function h(t,e,r,o,s){if(e===null||r===null)throw Error("walk can't replace the node it was called with");let p=u(e),n=p[r];if(o===null)p[r]=t;else if(Array.isArray(n))n[o]=t;return m(t,e,r,o,s)}export{P as SKIP,f as STOP,g as extractIdentifiers,b as isReference,y as visitorKeys,w as walk};
|
package/shared-3ca5cgq8.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
function o(e){return typeof e==="object"&&e!==null&&typeof h(e).type==="string"}function h(e){return e}function u(e,t){let n=h(e);for(let i in n){let s=n[i];if(Array.isArray(s)){for(let r=0;r<s.length;r++)if(o(s[r]))s[r]=t(s[r])}else if(o(s))n[i]=t(s)}}function f(e,...t){if(!t.some((n)=>n===e.type))throw Error(`expected ${t.join(" or ")}, got ${e.type}`)}
|
|
2
|
-
export{o,h,u,f};
|
package/shared-7q7hyetp.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{r,a}from"./shared-cx7c0gk3.js";import{x,n,p,e,R,O,D,B,F,V,M,j,W,z,E,U,H,N,G,K,Q,X,T,C,Y,_,J,Z,s,ee,te,ie,se,re,ne,oe,ae,le,P,pe,ce,he,ue,fe,de,A,me,ye,xe,L,ge,be,ve,Se,i,ke,we,Te,g,c,Ae}from"./shared-t6kshmn4.js";import{k}from"./shared-c2k7d7rg.js";import{u,f}from"./shared-3ca5cgq8.js";import{w}from"./shared-da2hc1fx.js";var fn={li:["li"],dt:["dt","dd"],dd:["dt","dd"],p:"address article aside blockquote div dl fieldset footer form h1 h2 h3 h4 h5 h6 header hgroup hr main menu nav ol p pre section table ul".split(" "),rt:["rt","rp"],rp:["rt","rp"],optgroup:["optgroup"],option:["option","optgroup"],thead:["tbody","tfoot"],tbody:["tbody","tfoot"],tfoot:["tbody"],tr:["tr","tbody"],td:["td","th","tr"],th:["td","th","tr"]};function mn(t,o){return Object.hasOwn(fn,t)&&fn[t].includes(o)}var Ye=new Set("arguments await break case catch class const continue debugger default delete do else enum eval export extends false finally for function if implements import in instanceof interface let new null package private protected public return static super switch this throw true try typeof var void while with yield".split(" ")),Ke=/<!--[\s\S]*?-->|<script\s+(?:[^>]*|(?:[^=>'"/]+=(?:"[^"]*"|'[^']*'|[^>\s]+)\s+)*)lang=(["'])?([^"' >]+)\1[^>]*>/y,it=/\r(?!\n)|[\u2028\u2029]/;function Re(t){if(t===32||t<=13&&t>=9)return!0;if(t<160)return!1;return t===160||t===5760||t>=8192&&t<=8202||t===8232||t===8233||t===8239||t===8287||t===12288||t===65279}function De(t,o){let l=o;while(l<t.length&&Re(t.charCodeAt(l)))l++;return l}function Ve(t,o){let l=t.codePointAt(o);if(l===void 0||!r(l,!0))return o;let m=o+(l<=65535?1:2),h=t.codePointAt(m);while(h!==void 0&&a(h,!0))m+=h<=65535?1:2,h=t.codePointAt(m);return m}function ot(t){let o=t.indexOf("<");while(o!==-1){let l=t.charCodeAt(o+1);if(l===33||l===115){Ke.lastIndex=o;let m=Ke.exec(t);if(m){if(l===115)return m[2]==="ts";o=t.indexOf("<",Ke.lastIndex);continue}}o=t.indexOf("<",o+1)}return!1}class Je{source;index=0;loc;lfOnly;isTypeScript;typescript;entityNames;css;script;comments;root;stack;fragments;metaTags=new Set;lastAutoClosedTag;nextAngle=-1;nextBrace=-1;constructor(t,o,l,m={}){if(this.source=t,this.loc=m.loc??!1,this.lfOnly=this.loc&&!it.test(t),this.isTypeScript=ot(t),this.typescript=l.typescript,this.isTypeScript&&!this.typescript)w();this.entityNames=l.entityNames,this.css=m.css??!0,this.script=m.script??!0,this.comments=m.comments??!0,this.root={type:"Root",start:0,end:o,css:null,js:[],options:null,fragment:{type:"Fragment",nodes:[]},comments:[]},this.stack=[this.root],this.fragments=[this.root.fragment]}match(t){if(t.length===1)return this.source.charCodeAt(this.index)===t.charCodeAt(0);return this.source.startsWith(t,this.index)}matchRegex(t){return t.lastIndex=this.index,t.exec(this.source)?.[0]??null}eat(t,o=!1){if(this.match(t))return this.index+=t.length,!0;if(o)s(this.index,t);return!1}read(t){let o=this.matchRegex(t);if(o)this.index+=o.length;return o}readUntil(t){if(this.index>=this.source.length)i(this.source.length);let o=this.source.indexOf(t,this.index),l=o===-1?this.source.length:o,m=this.source.slice(this.index,l);return this.index=l,m}allowWhitespace(){this.index=De(this.source,this.index)}requireWhitespace(){if(!Re(this.source.charCodeAt(this.index)))ee(this.index);this.allowWhitespace()}eatClosingBrace(){this.allowWhitespace(),this.eat("}",!0)}sourceLocation(t,o){return this.loc?{start:n(t),end:n(o)}:void 0}readIdentifierName(){let t=this.index,o=Ve(this.source,t),l=this.source.slice(t,o);if(this.index=o,Ye.has(l))ke(t,l);let m={type:"Identifier",name:l,start:t,end:o};if(this.loc)m.loc=this.sourceLocation(t,o);return m}current(){return this.stack[this.stack.length-1]}append(t){this.fragments[this.fragments.length-1].nodes.push(t)}open(t,o){this.append(t),this.stack.push(t),this.fragments.push(o)}setFragment(t){this.fragments[this.fragments.length-1]=t}close(){this.stack.pop(),this.fragments.pop()}}var lt=["===","!==","==","!=","&&","||","??"];function en(t,o,l,m){return{type:"Literal",start:o,end:l,value:m,raw:t.slice(o,l)}}function hn(t,o){let l=t.charCodeAt(o);if(l===34||l===39){for(let h=o+1;h<t.length;h++){let S=t.charCodeAt(h);if(S===l)return en(t,o,h+1,t.slice(o+1,h));if(S===92||S===10||S===13)return null}return null}let m=o;for(;m<t.length;m++){let h=t.charCodeAt(m);if(h<48||h>57)break}if(m===o||l===48&&m-o>1)return null;return en(t,o,m,Number(t.slice(o,m)))}function st(t,o){let l=Ve(t,o);if(l===o)return hn(t,o);let m=t.slice(o,l);if(m==="true"||m==="false"||m==="null")return en(t,o,l,m==="null"?null:m==="true");if(Ye.has(m))return null;let h={type:"Identifier",start:o,end:l,name:m};for(let S=l;;){let y=t.charCodeAt(S),v,b;if(y===46){if(b=Ve(t,S+1),b===S+1)return null;v={type:"Identifier",start:S+1,end:b,name:t.slice(S+1,b)}}else if(y===91){if(v=hn(t,S+1),!v||t.charCodeAt(v.end)!==93)return null;b=v.end+1}else return h;h={type:"MemberExpression",start:o,end:b,object:h,property:v,computed:y===91,optional:!1},S=b}}function nn(t,o){if(t.charCodeAt(o)!==33||t.charCodeAt(o+1)===61)return st(t,o);let l=nn(t,De(t,o+1));if(!l)return null;return{type:"UnaryExpression",start:o,end:l.end,operator:"!",prefix:!0,argument:l}}function xn(t,o){let l=De(t,o);if(l>=t.length)return!1;let m=t.charCodeAt(l);return m===125||m===41}function ct(t,o){let l=nn(t,o);if(!l||xn(t,l.end))return l;let m=De(t,l.end),h=lt.find((v)=>t.startsWith(v,m));if(!h)return null;let S=nn(t,De(t,m+h.length));if(!S||!xn(t,S.end))return null;let{end:y}=S;if(h==="&&"||h==="||"||h==="??")return{type:"LogicalExpression",start:l.start,end:y,left:l,operator:h,right:S};return{type:"BinaryExpression",start:l.start,end:y,left:l,operator:h,right:S}}function We(t){if(t.loc={start:p(t.start),end:p(t.end)},t.type==="MemberExpression")We(t.object),We(t.property);else if(t.type==="UnaryExpression")We(t.argument);else if(t.type==="BinaryExpression"||t.type==="LogicalExpression")We(t.left),We(t.right)}function Ce(t){let o=!t.loc||t.lfOnly?ct(t.source,t.index):null;if(o){if(t.index=o.end,t.loc)We(o);return o}let{node:l,end:m}=c(t,t.source,t.index);return t.index=m,l}var Sn=/<\/script\s*>/g,at=new Set(["server","client","worker","test","default"]);function gn(t,o,l){let{source:m,index:h}=t;if(h>=m.length)i(m.length);Sn.lastIndex=h;let S=Sn.exec(m);if(!S)T(m.length,"script");t.index=S.index+S[0].length;let y=t.script?g(t,m.slice(0,S.index),h):pt(h,S.index);if(y.start=h,y.loc)Object.assign(y.loc.start,p(o)),Object.assign(y.loc.end,p(t.index));else if(t.loc)y.loc={start:p(o),end:p(t.index)};let v="default";for(let b of l){if(at.has(b.name))ne(b,b.name);if(b.name==="module"){if(b.value!==!0)se(b,b.name);v="module"}if(b.name==="context"){let I=b.value;if(I===!0||!Array.isArray(I)||I.length!==1||I[0].type!=="Text"||I[0].data!=="module")re(b);v="module"}}return{type:"Script",start:o,end:t.index,context:v,content:y,attributes:l}}function pt(t,o){return{type:"Program",start:t,end:o,body:[],sourceType:"module"}}var ut=/(even|odd|\+?(\d+|\d*n(\s*[+-]\s*\d+)?)|-\d*n(\s*\+\s*\d+))((?=\s*[,)])|\s+of(\s+|(?=[.#[*:&])))/y,dt=/\d+(\.\d+)?%/y,ft=/\\[0-9a-fA-F]{1,6}(\r\n|\s)?/y,mt=/\s*>/y,Ne=-1,on=34,ht=35,xt=36,St=38,ln=39,gt=40,yt=41,Ge=42,At=43,Tt=45,Et=46,sn=47,tn=58,bt=59,En=60,yn=61,Ct=62,_t=91,He=92,vt=93,wt=94,bn=123,rn=124,kt=125,Cn=126,$e=[];function _n(t,o,l){let m=t.index;$e=[];let h=t.css?Rt(t):Pt(t),S=t.index;return t.eat("</style",!0),t.read(mt),{type:"StyleSheet",start:o,end:t.index,attributes:l,children:h,comments:$e,content:{start:m,end:S,styles:t.source.slice(m,S),comment:null}}}function Pt(t){let{source:o,index:l}=t;while(l<o.length){let m=o.charCodeAt(l);if(m===sn&&o.charCodeAt(l+1)===Ge){let h=o.indexOf("*/",l+2);l=h===-1?o.length:h+2}else if(m===on||m===ln){l++;while(l<o.length){let h=o.charCodeAt(l);if(h===m||h===10)break;l+=h===He?2:1}l++}else if(m===En&&o.startsWith("</style",l))break;else l++}return t.index=Math.min(l,o.length),[]}function Rt(t){let o=[];for(;;){if(Ie(t,!0),t.match("</style")||t.index>=t.source.length)break;o.push(t.match("@")?vn(t):wn(t))}return o}function vn(t){let o=t.index;t.eat("@",!0);let l=Le(t),m=cn(t,!0),h=null;if(t.match("{"))h=Rn(t);else t.eat(";",!0);return{type:"Atrule",start:o,end:t.index,name:l,prelude:m,block:h}}function wn(t){let o=t.index;return{type:"Rule",prelude:kn(t,!1),block:Rn(t),start:o,end:t.index}}function kn(t,o){let l=[];Ie(t,!0);let m=t.index;while(t.index<t.source.length){l.push(Ot(t,o));let h=t.index;if(Ie(t,!0),t.match(o?")":"{"))return{type:"SelectorList",start:m,end:h,children:l};t.eat(",",!0),Ie(t,!0)}return i(t.source.length)}function An(t,o){return{type:"RelativeSelector",combinator:t,selectors:[],start:o,end:-1}}function Ot(t,o){let{source:l,index:m}=t,h=[],S=An(null,t.index);while(t.index<l.length){let y=t.index,v=l.charCodeAt(y),b=S.selectors;if(v===St)t.index++,b.push({type:"NestingSelector",name:"&",start:y,end:t.index});else if(v===Ge)t.index++,b.push(Tn(t,y,"*"));else if(v===ht)t.index++,b.push({type:"IdSelector",name:Le(t),start:y,end:t.index});else if(v===Et)t.index++,b.push({type:"ClassSelector",name:Le(t),start:y,end:t.index});else if(v===tn){let _e=l.charCodeAt(y+1)===tn;t.index+=_e?2:1;let Pe=Le(t),Be=null;if(t.eat("("))Be=kn(t,!0),t.eat(")",!0);if(_e)b.push({type:"PseudoElementSelector",name:Pe,start:y,end:t.index,...Be&&{args:Be}});else b.push({type:"PseudoClassSelector",name:Pe,args:Be,start:y,end:t.index})}else if(v===_t)t.index++,b.push(Nt(t,y));else{let _e=o?t.read(ut):null,Pe=!_e&&je(v)?t.read(dt):null;if(_e)b.push({type:"Nth",value:_e,start:y,end:t.index});else if(Pe)b.push({type:"Percentage",value:Pe,start:y,end:t.index});else if(Pn(l,y)===0){let Be=Le(t);b.push(Tn(t,y,Be))}}let I=t.index;Ie(t,!1);let q=t.match(",")||t.match(o?")":"{");if(t.index=I,q)return S.end=I,h.push(S),{type:"ComplexSelector",start:m,end:I,children:h};let Ee=Lt(t);if(Ee){if(S.selectors.length>0)S.end=I,h.push(S);if(S=An(Ee,Ee.start),t.allowWhitespace(),t.match(",")||t.match(o?")":"{"))U(t.index)}}return i(l.length)}function Tn(t,o,l){let m=l,h;if(t.eat("|"))h=m,m=t.eat("*")?"*":Le(t);return{type:"TypeSelector",name:m,...h!==void 0&&{namespace:h},start:o,end:t.index}}function Nt(t,o){let l=t.source;t.allowWhitespace();let m=Le(t);t.allowWhitespace();let h=null,S=null,y=l.charCodeAt(t.index);if(y===yn)S="=";else if((y===Cn||y===wt||y===xt||y===Ge||y===rn)&&l.charCodeAt(t.index+1)===yn)S=l.slice(t.index,t.index+2);if(S)t.index+=S.length,t.allowWhitespace(),h=It(t);t.allowWhitespace();let v=t.index;while(Nn(l.charCodeAt(t.index)))t.index++;let b=t.index>v?l.slice(v,t.index):null;return t.allowWhitespace(),t.eat("]",!0),{type:"AttributeSelector",start:o,end:t.index,name:m,matcher:S,value:h,flags:b}}function Pn(t,o){let l=t.charCodeAt(o);if(l===At||l===Cn||l===Ct)return 1;if(l===rn&&t.charCodeAt(o+1)===rn)return 2;return 0}function Lt(t){let o=t.index;t.allowWhitespace();let l=t.index,m=Pn(t.source,l);if(m>0){t.index+=m;let h=t.index;return t.allowWhitespace(),{type:"Combinator",name:t.source.slice(l,h),start:l,end:h}}if(t.index!==o)return{type:"Combinator",name:" ",start:o,end:t.index};return null}function Rn(t){let o=t.index;t.eat("{",!0);let l=[];while(t.index<t.source.length){if(Ie(t,!0),t.match("}"))break;l.push(Bt(t))}return t.eat("}",!0),{type:"Block",start:o,end:t.index,children:l}}function Bt(t){if(t.match("@"))return vn(t);let o=t.index;cn(t,!1);let l=t.source.charCodeAt(t.index);return t.index=o,l===bn?wn(t):Dt(t)}function Dt(t){let{source:o,index:l}=t;if(l>=o.length)i(o.length);let m=l;while(m<o.length){let b=o.charCodeAt(m);if(b===tn||Re(b))break;m++}let h=o.slice(l,m);t.index=m,t.allowWhitespace(),t.eat(":");let S=t.index;t.allowWhitespace();let y=cn(t,!0);if(!y&&!h.startsWith("--"))z({start:l,end:S});let v=t.index;if(!t.match("}"))t.eat(";",!0);return{type:"Declaration",start:l,end:v,property:h,value:y}}function cn(t,o){let l=t.source,m=l.length,h="",S=t.index,y=null,v=!1,b=!1,I=Ne,q=t.index;while(q<m){let Ee=l.charCodeAt(q);if(v){v=!1,q++;continue}if(Ee===He){v=!0,q++;continue}if(Ee===I)I=Ne;else if(Ee===yt)b=!1;else if(I===Ne&&(Ee===on||Ee===ln))I=Ee;else if(Ee===gt){if(Wt(l,h,S,q))b=!0}else if((Ee===bt||Ee===bn||Ee===kt)&&!b&&I===Ne){if(t.index=q,!o)return"";if(h+=l.slice(S,q),y){let _e=h.length-h.trimStart().length;for(let Pe of y)Pe.position=Math.max(0,(Pe.position??0)-_e)}return h.trim()}else if(Ee===sn&&!b&&I===Ne&&l.charCodeAt(q+1)===Ge){h+=l.slice(S,q),t.index=q;let _e=On(t);if(o)_e.position=h.length,$e.push(_e),y??=[],y.push(_e);q=t.index,S=q;continue}q++}return t.index=m,i(m)}function Wt(t,o,l,m){if(m-l>=3)return t.charCodeAt(m-3)===117&&t.charCodeAt(m-2)===114&&t.charCodeAt(m-1)===108;return(o+t.slice(l,m)).endsWith("url")}function It(t){let o=t.source,l=Ne;if(t.eat('"'))l=on;else if(t.eat("'"))l=ln;let m=t.index,h=!1,S=m;while(S<o.length){let y=o.charCodeAt(S);if(h)h=!1;else if(y===He)h=!0;else if(l===Ne?y===vt||Re(y):y===l)return t.index=l===Ne?S:S+1,o.slice(m,S).trim();S++}return t.index=S,i(o.length)}function Le(t){let{source:o,index:l}=t,m=o.charCodeAt(l);if(je(m)||m===Tt&&je(o.charCodeAt(l+1)))E(l);let h="",S=l,y=l;while(y<o.length){let v=o.charCodeAt(y);if(v===He){h+=o.slice(S,y),t.index=y;let b=t.matchRegex(ft);if(b){let I=String.fromCodePoint(Number.parseInt(b.slice(1),16));h+=I==="\\"?"\\\\":I,y+=b.length}else h+=`\\${o[y+1]}`,y+=2;S=y}else if(v>=160||Ft(v))y++;else break}if(h+=o.slice(S,y),t.index=y,h==="")E(l);return h}function Ie(t,o){let l=t.source;t.allowWhitespace();for(;;){let m=l.charCodeAt(t.index);if(m===sn&&l.charCodeAt(t.index+1)===Ge){let h=On(t);if(o)$e.push(h)}else if(m===En&&t.eat("<!--"))t.readUntil("-->"),t.eat("-->",!0);else break;t.allowWhitespace()}}function On(t){let o=t.index;t.eat("/*",!0);let l=t.readUntil("*/");return t.eat("*/",!0),{type:"CSSComment",value:l,start:o,end:t.index}}function je(t){return t>=48&&t<=57}function Nn(t){return t>=65&&t<=90||t>=97&&t<=122}function Ft(t){return Nn(t)||je(t)||t===95||t===45}var an=/<\/textarea(\s[^>]*)?>/iy,Mt=/^![a-zA-Z]+$/,Gt=/^[a-zA-Z][a-zA-Z0-9]*:[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$/,Ut=/^[a-zA-Z][a-zA-Z0-9]*(-[a-zA-Z0-9.\-_\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\u{EFFFF}]*)?$/u,pn="\\u200C\\u200D",qt=new RegExp(`^(?:\\p{Lu}[$${pn}\\p{ID_Continue}.]*|\\p{ID_Start}[$${pn}\\p{ID_Continue}]*(?:\\.[$${pn}\\p{ID_Continue}]+)+)$`,"u"),Vt=new Set("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),$t=new Map([["use","UseDirective"],["animate","AnimateDirective"],["bind","BindDirective"],["class","ClassDirective"],["style","StyleDirective"],["on","OnDirective"],["let","LetDirective"],["in","TransitionDirective"],["out","TransitionDirective"],["transition","TransitionDirective"]]),un=new Map([["svelte:head",["SvelteHead",!0]],["svelte:options",["SvelteOptions",!0]],["svelte:window",["SvelteWindow",!0]],["svelte:document",["SvelteDocument",!0]],["svelte:body",["SvelteBody",!0]],["svelte:element",["SvelteElement",!1]],["svelte:component",["SvelteComponent",!1]],["svelte:self",["SvelteSelf",!1]],["svelte:fragment",["SvelteFragment",!1]],["svelte:boundary",["SvelteBoundary",!1]]]),Ln=[...un.keys()],jt=`${Ln.slice(0,-1).join(", ")} or ${Ln.at(-1)}`,Gn=47,Xe=62,Un=61,Ht=34,Xt=39,Bn=123,Fe=(t)=>t===Ht||t===Xt;function zt(t,o,l){let m=o;for(;m<t.length;m++){let h=t.charCodeAt(m);if(Re(h)||h===Gn||h===Xe)break;if(l&&(Fe(h)||h===Un))break}return m}function ze(t,o){let l=t.index;if(l>=t.source.length)i(t.source.length);let m=zt(t.source,l,o);return t.index=m,{name:t.source.slice(l,m),start:l,end:m,loc:t.sourceLocation(l,m)}}var Ue=(t,o,l,m=l)=>({start:t,end:o,type:"Text",raw:l,data:m});function qn(t){return Vt.has(t)||t.charCodeAt(0)===33&&t.toLowerCase()==="!doctype"}function Qt(t){let o=t.charCodeAt(0);if(o>=97&&o<=122&&!t.includes("."))return!1;return qt.test(t)}function Zt(t){let o=!0;for(let l=0;l<t.length&&o;l++){let m=t.charCodeAt(l);o=m>=97&&m<=122||l>0&&m>=48&&m<=57}return o&&t.length>0||Mt.test(t)||Gt.test(t)||Ut.test(t)}function Dn(t,o){for(let l=t.length-1;l>=0;l--){let m=o(t[l]);if(m!==void 0)return m}return!1}function Kt(t,o,l){let m=un.get(o);if(m)return m[0];if(l)return"Component";if(o==="title"){if(Dn(t.stack,({type:S})=>{if(S==="SvelteHead")return!0;return S==="RegularElement"||S==="Component"?!1:void 0}))return"TitleElement"}if(o==="slot"){if(!Dn(t.stack,(S)=>S.type==="RegularElement"&&S.attributes.some((y)=>y.type==="Attribute"&&y.name==="shadowrootmode")?!0:void 0))return"SlotElement"}return"RegularElement"}function Vn(t){let o=t.index++;if(t.eat("!--")){let l=t.readUntil("-->");t.eat("-->",!0),t.append({type:"Comment",start:o,end:t.index,data:l})}else if(t.eat("/"))Yt(t,o);else er(t,o)}function Yt(t,o){let{name:l}=ze(t,!1);if(t.allowWhitespace(),t.eat(">",!0),qn(l))Te(o);let m=t.current();while(!("name"in m)||m.name!==l){if(m.type!=="RegularElement"){let h=t.lastAutoClosedTag;if(h?.tag===l)X(o,l,h.reason);Q(o,l)}m.end=o,t.close(),m=t.current()}if(m.end=t.index,t.close(),t.stack.length<(t.lastAutoClosedTag?.depth??0))t.lastAutoClosedTag=void 0}function Jt(t,o,l){return{type:t,start:o,end:-1,name:l}}function er(t,o){let l=ze(t,!1),{name:m}=l,h=un.get(m);if(!h&&m.startsWith("svelte:"))ue(l,jt);let S=Qt(m);if(!S&&!Zt(m))ve(l);if(h?.[1]){if(t.metaTags.has(m))pe(o,m);if(t.current().type!=="Root")he(o,m);t.metaTags.add(m)}let y=Jt(Kt(t,m,S),o,m);if(t.loc)y.name_loc=l.loc;y.attributes=[],y.fragment={type:"Fragment",nodes:[]},t.allowWhitespace();let v=t.current();if(v.type==="RegularElement"&&mn(v.name,m))v.end=o,t.close(),t.lastAutoClosedTag={tag:v.name,reason:m,depth:t.stack.length};if((m==="script"||m==="style")&&t.current().type==="Root"){let I=[];y.attributes=I,Mn(t,I,lr),tr(t,y,o,I);return}if(Mn(t,y.attributes,cr),y.type==="SvelteComponent"){let I=Wn(y);if(!I)le(o);if(!In(I.value))ae(I.start);y.expression=Fn(I.value)}else if(y.type==="SvelteElement"){let I=Wn(y);if(!I)P(o);if(I.value===!0)P(I);y.tag=In(I.value)?Fn(I.value):or(I.value[0])}if(!t.eat("/")&&!qn(m))if(t.eat(">",!0),m==="textarea")y.fragment.nodes=jn(t,(I,q)=>(an.lastIndex=q,an.test(I)),"inside <textarea>"),t.read(an);else if(m==="script"||m==="style")y.fragment.nodes.push(nr(t,`</${m}>`));else{t.open(y,y.fragment);return}else t.eat(">",!0);y.end=t.index,t.append(y)}function nr(t,o){let l=t.index,m=t.source.indexOf(o,l);t.index=m===-1?t.source.length:m;let h=Ue(l,t.index,t.source.slice(l,t.index));return t.eat(o,!0),h}function tr(t,o,l,m){t.eat(">",!0);let h=rr(t.root.fragment.nodes,l);if(o.name==="style"){let v=_n(t,l,m);if(v.content.comment=h,t.root.css)oe(l);t.root.css=v;return}let S=gn(t,l,m);if(h&&t.comments)S.content.leadingComments=[{type:"Line",value:h.data}];let y=S.context==="module"?"module":"instance";if(t.root[y])ie(l);t.root[y]=S}function rr(t,o){let l=t.length-1;if(l<0||t[l].end!==o)return null;for(let m=l;m>=0;m--){let h=t[m];if(h.type==="Comment")return h;if(h.type!=="Text"||h.data.trim())return null}return null}var ir=(t)=>t.type==="Attribute"&&t.name==="this";function Wn(t){let o=t.attributes.find(ir);if(o)t.attributes.splice(t.attributes.indexOf(o),1);return o}function In(t){if(t===!0)return!1;if(!Array.isArray(t))return!0;return t.length===1&&t[0].type==="ExpressionTag"}function Fn(t){return(Array.isArray(t)?t[0]:t).expression}function or(t){if(t.type!=="Text")return t.expression;return{type:"Literal",value:t.data,raw:`'${t.raw}'`,start:t.start,end:t.end}}function Mn(t,o,l){let m=new Set;for(;;){let h=l(t);if(!h)return;let{type:S}=h;if(S==="Attribute"||S==="BindDirective"||S==="StyleDirective"||S==="ClassDirective"){let y=`${S==="BindDirective"?"Attribute":S}${h.name}`;if(m.has(y))R(h);if(h.name!=="this")m.add(y)}o.push(h),t.allowWhitespace()}}function dn(t,o,l,m,h){return t.loc?{type:"Attribute",start:l,end:m,name:o.name,name_loc:o.loc,value:h}:{type:"Attribute",start:l,end:m,name:o.name,value:h}}function $n(t){if(Fe(t.source.charCodeAt(t.index)))s(t.index,"=")}function lr(t){let o=t.index,l=ze(t,!0);if(!l.name)return null;let m=!0;if(t.eat("=")){t.allowWhitespace();let{source:h}=t,S=t.index,y=-1;if(Fe(h.charCodeAt(S))){let I=h.indexOf(h[S],S+1);if(I!==-1)y=I+1}if(y===-1){y=S;while(y<h.length&&h.charCodeAt(y)!==Xe&&!Re(h.charCodeAt(y)))y++;if(y===S)C(S)}t.index=y;let v=Fe(h.charCodeAt(S))?1:0,b=h.slice(S+v,y-v);m=[Ue(y-b.length-v,y-v,b,k(b,!0,t.entityNames))]}return $n(t),dn(t,l,o,t.index,m)}function sr(t){let o=t.index,l=t.match("/*");if(!l&&!t.match("//"))return!1;t.index+=2;let m=t.readUntil(l?"*/":`
|
|
2
|
-
`);if(l)t.eat("*/");let h={type:l?"Block":"Line",start:o,end:t.index,value:m},S=t.sourceLocation(o,t.index);if(S)h.loc=S;if(t.comments)t.root.comments.push(h);return!0}function cr(t){while(sr(t))t.allowWhitespace();let o=t.index;if(t.eat("{"))return ar(t,o);let l=ze(t,!0);if(!l.name)return null;let m=t.index;t.allowWhitespace();let h=!0;if(t.eat("=")){if(t.allowWhitespace(),t.match("/>"))h=[Ue(t.index,t.index+1,"/")],t.index++;else h=dr(t);m=t.index}else $n(t);let S=l.name.indexOf(":"),y=S>0?$t.get(l.name.slice(0,S)):void 0;return y?ur(t,y,l,S,o,m,h):dn(t,l,o,m,h)}function ar(t,o){if(t.allowWhitespace(),t.eat("@attach")){t.requireWhitespace();let h=Ce(t);return t.eatClosingBrace(),{type:"AttachTag",start:o,end:t.index,expression:h}}if(t.eat("...")){let h=Ce(t);return t.eatClosingBrace(),{type:"SpreadAttribute",start:o,end:t.index,expression:h}}let l=t.readIdentifierName();if(l.name==="")O(o);t.eatClosingBrace();let m={type:"ExpressionTag",start:l.start,end:l.end,expression:l};return dn(t,l,o,t.index,m)}function pr(t){if(t===!0)return;return Array.isArray(t)?t[0]:t}function ur(t,o,l,m,h,S,y){let[v,...b]=l.name.slice(m+1).split("|");if(v==="")K({start:h,end:h+m+1},l.name);let I={start:h,end:S,type:o,name:v};if(t.loc)I.name_loc=l.loc;if(o==="StyleDirective")return I.modifiers=b,I.value=y,I;let q=pr(y);if(q&&(Array.isArray(y)&&y.length>1||q.type==="Text"))G(q.start);if(I.expression=q?.expression??null,I.modifiers=b,o==="TransitionDirective"){let Ee=l.name.slice(0,m);I.intro=Ee!=="out",I.outro=Ee!=="in"}if((o==="BindDirective"||o==="ClassDirective")&&!I.expression)I.expression={start:h+m+1,end:S,type:"Identifier",name:v};return I}function dr(t){let o=t.source.charCodeAt(t.index),l=Fe(o);if(l){if(t.index++,t.source.charCodeAt(t.index)===o)return t.index++,[Ue(t.index-1,t.index-1,"")]}let m;try{m=jn(t,l?(h,S)=>h.charCodeAt(S)===o:fr,"in attribute value",l?o:void 0)}catch(h){let S=h instanceof e?h.position?.[0]:void 0;if(h instanceof e&&h.code==="js_parse_error"&&S!==void 0&&t.source.startsWith("/>",S-1))t.index=S,s(S,l?String.fromCharCode(o):"}");throw h}if(l)t.index++;else if(m.length===0)C(t.index);return l||m.length>1||m[0].type==="Text"?m:m[0]}function fr(t,o){let l=t.charCodeAt(o);return Re(l)||Fe(l)||l===Un||l===60||l===Xe||l===96||l===Gn&&t.charCodeAt(o+1)===Xe}function jn(t,o,l,m){let{source:h}=t,S=[],y=t.index,v=(b)=>{if(b<=y)return;let I=h.slice(y,b);S.push(Ue(y,b,I,k(I,!0,t.entityNames)))};while(t.index<h.length){let b=t.index;if(o(h,b))return v(b),S;if(h.charCodeAt(b)!==Bn){if(t.index++,m!==void 0)while(t.index<h.length&&h.charCodeAt(t.index)!==Bn&&h.charCodeAt(t.index)!==m)t.index++;continue}t.index++;let I=h.charCodeAt(t.index);if(I===35||I===64){t.index++;let Ee=t.index;while(t.index<h.length&&h.charCodeAt(t.index)>=97&&h.charCodeAt(t.index)<=122)t.index++;let _e=h.slice(Ee,t.index);(I===35?V:Se)(b,_e,l)}v(b),t.allowWhitespace();let q=Ce(t);t.eatClosingBrace(),S.push({type:"ExpressionTag",start:b,end:t.index,expression:q}),y=t.index}i(h.length)}var mr=new Map([["html","html"],["svg","svg"],["mathml","mathml"],["http://www.w3.org/2000/svg","svg"],["http://www.w3.org/1998/Math/MathML","mathml"]]),hr=new Map([["type",(t,o)=>{if(o!=="String"&&o!=="Number"&&o!=="Boolean"&&o!=="Array"&&o!=="Object")return!1;return t.type=o,!0}],["reflect",(t,o)=>{if(typeof o!=="boolean")return!1;return t.reflect=o,!0}],["attribute",(t,o)=>{if(typeof o!=="string")return!1;return t.attribute=o,!0}]]),Hn="[a-z0-9_.\\xB7\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u203F-\\u2040\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\u{10000}-\\u{EFFFF}-]",xr=new RegExp(`^[a-z]${Hn}*-${Hn}*$`,"u"),Sr=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ")),Qe=(t)=>(o,l)=>{let m=Ze(l);if(typeof m!=="boolean")A(l,"true or false");o[t]=m},gr=new Map([["runes",Qe("runes")],["immutable",Qe("immutable")],["preserveWhitespace",Qe("preserveWhitespace")],["accessors",Qe("accessors")],["namespace",(t,o)=>{let l=mr.get(Ze(o));if(!l)A(o,'"html", "mathml" or "svg"');t.namespace=l}],["css",(t,o)=>{if(Ze(o)!=="injected")A(o,'"injected"');t.css="injected"}],["tag",(t,o)=>fe(o)],["customElement",(t,o)=>{let l=Ar(o);if(l)t.customElement=l}]]);function zn(t){let o=[],l={start:t.start,end:t.end,attributes:o};for(let m of t.attributes){if(m.type!=="Attribute")de(m);o.push(m);let h=gr.get(m.name);if(!h)be(m,m.name);h(l,m)}return l}function Ze({value:t}){if(t===!0)return!0;let o=Array.isArray(t)?t:[t];if(o.length===0)return!0;if(o.length>1)return null;let[l]=o;if(l.type==="Text")return l.data;return l.expression.type==="Literal"?l.expression.value:null}function Xn(t,o){if(typeof o!=="string")L(t);if(!o)return;if(!xr.test(o))L(t);if(Sr.has(o))ge(t)}function yr(t,o){let l=new Map;for(let m of t.properties){if(m.type!=="Property"||m.computed||m.key.type!=="Identifier")o();if(!l.has(m.key.name))l.set(m.key.name,m.value)}return l}function Ar(t){let o=()=>me(t);if(t.value===!0)o();let l=Array.isArray(t.value)?t.value[0]:t.value;if(l.type==="Text"){let q=Ze(t);return Xn(t,q),{tag:q}}let{expression:m}=l;if(m.type!=="ObjectExpression"){if(m.type==="Literal"&&m.value===null)return;o()}let h=yr(m,o),S={},y=h.get("tag");if(y){let q=y.type==="Literal"?y.value:void 0;Xn(null,q),S.tag=q}let v=h.get("props");if(v){let q=()=>ye(t);if(v.type!=="ObjectExpression")q();S.props={};for(let Ee of v.properties){if(Ee.type!=="Property"||Ee.computed||Ee.key.type!=="Identifier"||Ee.value.type!=="ObjectExpression")q();let _e={};S.props[Ee.key.name]=_e;for(let Pe of Ee.value.properties){if(Pe.type!=="Property"||Pe.computed||Pe.key.type!=="Identifier"||Pe.value.type!=="Literal")q();if(!hr.get(Pe.key.name)?.(_e,Pe.value.value))q()}}}let b=h.get("shadow");if(b)if(b.type==="ObjectExpression")S.shadow=b;else if(b.type==="Literal"&&(b.value==="open"||b.value==="none"))S.shadow=b.value;else xe(t);let I=h.get("extend");if(I)S.extend=I;return S}var Tr={"{":"}","(":")","[":"]"};function qe(t,o,l=Tr){let m=Object.values(l),h=[],S=o;while(S<t.length){let y=t[S++];if(y==="'"||y==='"'||y==="`")S=Er(t,S,y);else if(Object.hasOwn(l,y))h.push(y);else if(m.includes(y)){let v=l[h.pop()??""];if(y!==v)s(S-1,v);if(h.length===0)return S}}i(t.length)}function Er(t,o,l){let m=o;while(m<t.length){let h=t[m++];if(h===l)return m;if(h==="\\")m++;else if(l==="`"&&h==="$"&&t[m]==="{")m=qe(t,m)}we(o)}var br=/\?\s*:/g;function Me(t){let o=t.index,l=t.readIdentifierName();if(l.name!==""){let v=Qn(t);return{...l,typeAnnotation:v}}let m=t.source[t.index];if(m!=="{"&&m!=="[")J(t.index);t.index=qe(t.source,o);let{node:h}=c(t,`${t.source.slice(0,t.index)} = 1`,o);f(h,"AssignmentExpression");let S=h.left;f(S,"ObjectPattern","ArrayPattern");let y=Qn(t);if(S.typeAnnotation=y,y)S.end=y.end;return S}function Qn(t){let o=t.index;if(t.allowWhitespace(),!t.eat(":")){t.index=o;return}let l="_ as ",m=t.index-l.length,h=t.source.slice(0,m)+l+t.source.slice(t.index).replace(br,":"),S=c(t,h,m).node;if(S.type==="AssignmentExpression"){let y=S.right.start;while(h[y]!=="=")y-=1;S=c(t,h.slice(0,y),m).node}if(S.type==="SequenceExpression")S=S.expressions[0];return f(S,"TSAsExpression"),t.index=S.end,{type:"TSTypeAnnotation",start:o,end:t.index,typeAnnotation:S.typeAnnotation}}var Cr=/\s*}/y,_r={IfBlock:"if",EachBlock:"each",KeyBlock:"key",AwaitBlock:"await",SnippetBlock:"snippet"},Oe=()=>({type:"Fragment",nodes:[]});function Kn(t,o){if(t.eat("if")){t.requireWhitespace();let l=Ce(t);t.eatClosingBrace();let m=Oe();t.open({type:"IfBlock",elseif:!1,start:o,end:-1,test:l,consequent:m,alternate:null},m)}else if(t.eat("each"))wr(t,o);else if(t.eat("await")){t.requireWhitespace();let l=Ce(t);t.allowWhitespace();let m={type:"AwaitBlock",start:o,end:-1,expression:l,value:null,error:null,pending:null,then:null,catch:null},h=Oe();if(t.eat("then"))m.value=Zn(t),m.then=h;else if(t.eat("catch"))m.error=Zn(t),m.catch=h;else m.pending=h;t.eat("}",!0),t.open(m,h)}else if(t.eat("key")){t.requireWhitespace();let l=Ce(t);t.eatClosingBrace();let m=Oe();t.open({type:"KeyBlock",start:o,end:-1,expression:l,fragment:m},m)}else if(t.eat("snippet"))kr(t,o);else Y(t.index)}function Zn(t){if(t.matchRegex(Cr))return t.allowWhitespace(),null;t.requireWhitespace();let o=Me(t);return t.allowWhitespace(),o}function vr(t){let o={assertion:null},l=t.end,m=(S)=>{if(S.type==="TSAsExpression"&&S.end===t.end)return o.assertion=S,l=S.expression.end,S.expression;return u(S,m),S},h=t;if(t.type==="TSAsExpression")o.assertion=t,h=t.expression,l=h.end;else u(t,m);return h.end=l,{expression:h,assertion:o.assertion}}function wr(t,o){t.requireWhitespace();let l=t.source,m;while(!m)try{m=Ce(t)}catch(b){let q=((b instanceof e?b.position:void 0)?.[0]??o)-2;while(q>o&&t.source.slice(q,q+2)!=="as")q-=1;if(q<=o)throw t.source=l,b;t.source=l.slice(0,q)}if(t.source=l,t.allowWhitespace(),!t.match("as")){if(m.type==="SequenceExpression")m=m.expressions[0];let b=vr(m);if(m=b.expression,b.assertion){let I=b.assertion.typeAnnotation.start-2;while(t.source.slice(I,I+2)!=="as")I-=1;t.index=I}}let h=null,S,y;if(t.eat("as"))t.requireWhitespace(),h=Me(t);else t.index=m.end;if(t.allowWhitespace(),t.eat(",")){if(t.allowWhitespace(),S=t.readIdentifierName().name,!S)_(t.index);t.allowWhitespace()}if(t.eat("("))t.allowWhitespace(),y=Ce(t),t.allowWhitespace(),t.eat(")",!0),t.allowWhitespace();t.eat("}",!0);let v=Oe();t.open({type:"EachBlock",start:o,end:-1,expression:m,body:v,context:h,index:S,key:y},v)}function kr(t,o){t.requireWhitespace();let l=t.readIdentifierName();if(l.name==="")_(t.index);t.allowWhitespace();let m=t.index,h;if(t.isTypeScript&&t.match("<")){let b=qe(t.source,m,{"<":">"});h=t.source.slice(m+1,b-1),t.index=b}t.allowWhitespace(),t.eat("(",!0);let S=1;while(t.index<t.source.length&&(!t.match(")")||S!==1)){if(t.match("("))S++;if(t.match(")"))S--;t.index+=1}t.eat(")",!0);let{node:y}=c(t,`${t.source.slice(0,t.index)} => {}`,m,!0);f(y,"ArrowFunctionExpression"),t.eatClosingBrace();let v=Oe();t.open({type:"SnippetBlock",start:o,end:-1,expression:l,typeParams:h,parameters:y.params,body:v},v)}function Yn(t,o){let l=t.index-1,m=t.current();if(m.type==="IfBlock"){if(!t.eat("else"))s(l,"{:else} or {:else if}");if(t.eat("if"))F(l);if(t.allowWhitespace(),m.alternate=Oe(),t.setFragment(m.alternate),t.eat("if")){t.requireWhitespace();let h=Ce(t);t.eatClosingBrace();let S=Oe();t.open({start:o,end:-1,type:"IfBlock",elseif:!0,test:h,consequent:S,alternate:null},S)}else t.eatClosingBrace()}else if(m.type==="EachBlock"){if(!t.eat("else"))s(l,"{:else}");t.eatClosingBrace(),m.fallback=Oe(),t.setFragment(m.fallback)}else if(m.type==="AwaitBlock"){let h;if(t.eat("then"))h="then";else if(t.eat("catch"))h="catch";else s(l,"{:then ...} or {:catch ...}");if(m[h])D(l,`{:${h}}`);if(!t.eat("}")){t.requireWhitespace();let y=Me(t);if(h==="then")m.value=y;else m.error=y;t.eatClosingBrace()}let S=Oe();m[h]=S,t.setFragment(S)}else B(l)}function Jn(t){let o=t.current(),l=_r[o.type];if(!l)j(t.index-1);t.eat(l,!0),t.eatClosingBrace();while(o.type==="IfBlock"&&o.elseif)o.end=t.index,t.close(),o=t.current();o.end=t.index,t.close()}var Pr=/\s*}/y;function Rr(t){return t.type==="CallExpression"||t.type==="ChainExpression"&&t.expression.type==="CallExpression"}function et(t,o){if(t.eat("html")){t.requireWhitespace();let l=Ce(t);t.eatClosingBrace(),t.append({type:"HtmlTag",start:o,end:t.index,expression:l})}else if(t.eat("debug")){let l=[];if(!t.read(Pr)){let m=Ce(t),h=m.type==="SequenceExpression"?m.expressions:[m];for(let S of h){if(S.type!=="Identifier")H(S.start);l.push(S)}t.eatClosingBrace()}t.append({type:"DebugTag",start:o,end:t.index,identifiers:l})}else if(t.eat("const")){t.requireWhitespace();let l=Me(t);t.allowWhitespace(),t.eat("=",!0),t.allowWhitespace();let m=t.index,h=Ce(t),S=t.index;if(h.type==="SequenceExpression"&&!t.source.slice(m,h.start).includes("("))W(h);t.eatClosingBrace();let y={type:"VariableDeclarator",id:l,init:h,start:l.start,end:S};t.append({type:"ConstTag",start:o,end:t.index,declaration:{type:"VariableDeclaration",kind:"const",declarations:[y],start:o+2,end:t.index-1}})}else if(t.eat("render")){t.requireWhitespace();let l=Ce(t);if(!Rr(l))te(l);t.eatClosingBrace(),t.append({type:"RenderTag",start:o,end:t.index,expression:l})}else Z(t.index)}var Or=/(?:var|interface|enum)\b/y,Nr=/(?:let|const|type)\b/y;function nt(t){let o=t.index;if(t.index+=1,t.allowWhitespace(),t.eat("#"))Kn(t,o);else if(t.eat(":"))Yn(t,o);else if(t.eat("@"))et(t,o);else if(t.match("/")&&!t.match("/*")&&!t.match("//"))t.index+=1,Jn(t);else if(!Lr(t,o)){let l=Ce(t);t.eatClosingBrace(),t.append({type:"ExpressionTag",start:o,end:t.index,expression:l})}}function Lr(t,o){let l=t.index,m=t.matchRegex(Or);if(m)N({start:l,end:l+m.length});if(!t.matchRegex(Nr))return!1;let h=t.root.comments.length,S=Ae(t,t.source,l);if(S.type==="ExpressionStatement")return t.root.comments.length=h,!1;if(S.type!=="VariableDeclaration"||S.kind!=="let"&&S.kind!=="const")N(S);return t.index=S.end,t.eatClosingBrace(),t.append({type:"DeclarationTag",start:o,end:t.index,declaration:S}),!0}function rt(t){let{source:o,index:l}=t;if(t.nextAngle<l)t.nextAngle=tt(o,"<",l);if(t.nextBrace<l)t.nextBrace=tt(o,"{",l);let m=Math.min(t.nextAngle,t.nextBrace);t.index=m;let h=o.slice(l,m);t.append({type:"Text",start:l,end:m,raw:h,data:k(h,!1,t.entityNames)})}function tt(t,o,l){let m=t.indexOf(o,l);return m===-1?t.length:m}function d(t,o,l){let m=t.charCodeAt(0)===65279?t.slice(1):t;x(m);let h=new Je(m.trimEnd(),m.length,l,o);while(h.index<h.source.length)if(h.match("<"))Vn(h);else if(h.match("{"))nt(h);else rt(h);if(h.stack.length>1){let b=h.current();if(b.end=b.start+1,b.type==="RegularElement")T(b,b.name);M(b)}let{nodes:S}=h.root.fragment,y=S.findIndex((b)=>b.type==="SvelteOptions"),v=S[y];if(v?.type==="SvelteOptions"){S.splice(y,1),h.root.options=zn(v);let{nodes:b}=v.fragment;if(b.length>0)ce({start:b[0].start,end:b[b.length-1].end},v.name)}return h.root}
|
|
3
|
-
export{d};
|
package/shared-da2hc1fx.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
function Ne(t){return{support:"typescript",parser:t}}function Ce(t){return{support:"entities",names:t}}function _e(t){return t&&"parser"in t?t.parser:void 0}function Pe(t){return t&&"names"in t?t.names:void 0}function w(){throw Error('sveast: parsing TypeScript needs `typescript` from "sveast/typescript": createParser({ typescript })')}
|
|
2
|
-
export{Ne,Ce,_e,Pe,w};
|
package/shared-kqcn291j.js
DELETED
package/shared-t6kshmn4.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{b,v}from"./shared-cx7c0gk3.js";import{o,h,u}from"./shared-3ca5cgq8.js";import{w}from"./shared-da2hc1fx.js";var $e="",Le,Ce=0;function x(t){$e=t,Le=void 0,Ce=0}function n(t){if(!Le){Le=[0];let l=$e.indexOf(`
|
|
2
|
-
`);while(l!==-1)Le.push(l+1),l=$e.indexOf(`
|
|
3
|
-
`,l+1)}let r=0,a=Le.length-1;if(t>=Le[Ce])r=Ce;else a=Ce-1;if(r<a&&t<Le[r+1])a=r;while(r<a){let l=r+a+1>>>1;if(Le[l]<=t)r=l;else a=l-1}return Ce=r,{line:r+1,column:t-Le[r],character:t}}function p(t){let{line:r,column:a}=n(t);return{line:r,column:a}}function Fe(){return $e.split(`
|
|
4
|
-
`)}var Ze=/^\t+/;class e extends Error{name="ParseError";code;reason;position;start;end;frame;constructor(t,r,a){super(`${a}
|
|
5
|
-
https://svelte.dev/e/${r}`);this.code=r,this.reason=a;let l=typeof t==="number"?t:t?.start,d=typeof t==="number"?t:t?.end;if(l!==void 0)this.position=[l,d??l],this.start=n(this.position[0]),this.end=n(this.position[1]),this.frame=et(this.start.line-1,this.end.column)}}var je=(t)=>t.replace(Ze,(r)=>" ".repeat(r.length));function et(t,r){let a=Fe(),l=Math.max(0,t-2),d=Math.min(t+3,a.length),k=String(d+1).length;return a.slice(l,d).map((m,f)=>{let _e=String(f+l+1).padStart(k," ");if(l+f!==t)return`${_e}: ${je(m)}`;let q=`${" ".repeat(k+2+je(m.slice(0,r)).length)}^`;return`${_e}: ${je(m)}
|
|
6
|
-
${q}`}).join(`
|
|
7
|
-
`)}function R(t){throw new e(t,"attribute_duplicate","Attributes need to be unique")}function O(t){throw new e(t,"attribute_empty_shorthand","Attribute shorthand cannot be empty")}function D(t,r){throw new e(t,"block_duplicate_clause",`${r} cannot appear more than once within a block`)}function B(t){throw new e(t,"block_invalid_continuation_placement","{:...} block is invalid at this position (did you forget to close the preceding element or block?)")}function F(t){throw new e(t,"block_invalid_elseif","'elseif' should be 'else if'")}function V(t,r,a){throw new e(t,"block_invalid_placement",`{#${r} ...} block cannot be ${a}`)}function M(t){throw new e(t,"block_unclosed","Block was left open")}function j(t){throw new e(t,"block_unexpected_close","Unexpected block closing tag")}function W(t){throw new e(t,"const_tag_invalid_expression","{@const ...} must consist of a single variable declaration")}function z(t){throw new e(t,"css_empty_declaration","Declaration cannot be empty")}function E(t){throw new e(t,"css_expected_identifier","Expected a valid CSS identifier")}function U(t){throw new e(t,"css_selector_invalid","Invalid selector")}function H(t){throw new e(t,"debug_tag_invalid_arguments","{@debug ...} arguments must be identifiers, not arbitrary expressions")}function N(t){throw new e(t,"declaration_tag_invalid_type","Declaration tags must be `let` or `const` declarations")}function G(t){throw new e(t,"directive_invalid_value","Directive value must be a JavaScript expression enclosed in curly braces")}function K(t,r){throw new e(t,"directive_missing_name",`\`${r}\` name cannot be empty`)}function Q(t,r){throw new e(t,"element_invalid_closing_tag",`\`</${r}>\` attempted to close an element that was not open`)}function X(t,r,a){throw new e(t,"element_invalid_closing_tag_autoclosed",`\`</${r}>\` attempted to close element that was already automatically closed by \`<${a}>\` (cannot nest \`<${a}>\` inside \`<${r}>\`)`)}function T(t,r){throw new e(t,"element_unclosed",`\`<${r}>\` was left open`)}function C(t){throw new e(t,"expected_attribute_value","Expected attribute value")}function Y(t){throw new e(t,"expected_block_type","Expected 'if', 'each', 'await', 'key' or 'snippet'")}function _(t){throw new e(t,"expected_identifier","Expected an identifier")}function J(t){throw new e(t,"expected_pattern","Expected identifier or destructure pattern")}function Z(t){throw new e(t,"expected_tag","Expected 'html', 'render', 'attach', 'const', or 'debug'")}function s(t,r){throw new e(t,"expected_token",`Expected token ${r}`)}function ee(t){throw new e(t,"expected_whitespace","Expected whitespace")}function ze(t,r){throw new e(t,"js_parse_error",`${r}`)}function te(t){throw new e(t,"render_tag_invalid_expression","`{@render ...}` tags can only contain call expressions")}function ie(t){throw new e(t,"script_duplicate","A component can have a single top-level `<script>` element and/or a single top-level `<script module>` element")}function se(t,r){throw new e(t,"script_invalid_attribute_value",`If the \`${r}\` attribute is supplied, it must be a boolean attribute`)}function re(t){throw new e(t,"script_invalid_context",'If the context attribute is supplied, its value must be "module"')}function ne(t,r){throw new e(t,"script_reserved_attribute",`The \`${r}\` attribute is reserved and cannot be used`)}function oe(t){throw new e(t,"style_duplicate","A component can have a single top-level `<style>` element")}function ae(t){throw new e(t,"svelte_component_invalid_this","Invalid component definition — must be an `{expression}`")}function le(t){throw new e(t,"svelte_component_missing_this","`<svelte:component>` must have a 'this' attribute")}function P(t){throw new e(t,"svelte_element_missing_this","`<svelte:element>` must have a 'this' attribute with a value")}function pe(t,r){throw new e(t,"svelte_meta_duplicate",`A component can only have one \`<${r}>\` element`)}function ce(t,r){throw new e(t,"svelte_meta_invalid_content",`<${r}> cannot have children`)}function he(t,r){throw new e(t,"svelte_meta_invalid_placement",`\`<${r}>\` tags cannot be inside elements or blocks`)}function ue(t,r){throw new e(t,"svelte_meta_invalid_tag",`Valid \`<svelte:...>\` tag names are ${r}`)}function fe(t){throw new e(t,"svelte_options_deprecated_tag",'"tag" option is deprecated — use "customElement" instead')}function de(t){throw new e(t,"svelte_options_invalid_attribute","`<svelte:options>` can only receive static attributes")}function A(t,r){throw new e(t,"svelte_options_invalid_attribute_value",`Value must be ${r}, if specified`)}function me(t){throw new e(t,"svelte_options_invalid_customelement",'"customElement" must be a string literal defining a valid custom element name or an object of the form { tag?: string; shadow?: "open" | "none" | `ShadowRootInit`; props?: { [key: string]: { attribute?: string; reflect?: boolean; type: .. } } }')}function ye(t){throw new e(t,"svelte_options_invalid_customelement_props",'"props" must be a statically analyzable object literal of the form "{ [key: string]: { attribute?: string; reflect?: boolean; type?: "String" | "Boolean" | "Number" | "Array" | "Object" }"')}function xe(t){throw new e(t,"svelte_options_invalid_customelement_shadow",'"shadow" must be either "open", "none" or `ShadowRootInit` object.')}function L(t){throw new e(t,"svelte_options_invalid_tagname","Tag name must be lowercase and hyphenated")}function ge(t){throw new e(t,"svelte_options_reserved_tagname","Tag name is reserved")}function be(t,r){throw new e(t,"svelte_options_unknown_attribute",`\`<svelte:options>\` unknown attribute '${r}'`)}function ve(t){throw new e(t,"tag_invalid_name","Expected a valid element or component name. Components must have a valid variable name or dot notation expression")}function Se(t,r,a){throw new e(t,"tag_invalid_placement",`{@${r} ...} tag cannot be ${a}`)}function i(t){throw new e(t,"unexpected_eof","Unexpected end of input")}function ke(t,r){throw new e(t,"unexpected_reserved_word",`'${r}' is a reserved word in JavaScript and cannot be used here`)}function we(t){throw new e(t,"unterminated_string_constant","Unterminated string constant")}function Te(t){throw new e(t,"void_element_invalid_content","Void elements cannot have children or closing tags")}var Ee="",Ve=[],Oe=0;function Ge(t,r){Ee=t,Ve=r,Oe=0}function Je(){return Oe}function Xe(t,r,a,l){Oe=l}function qe(t,r,a,l,d,k){Oe=l;let m=r;if(t&&m.includes(`
|
|
8
|
-
`)){let _e=Ee.lastIndexOf(`
|
|
9
|
-
`,a-1)+1,q=_e,Ne=Ee.charCodeAt(q);while(Ne===32||Ne===9)Ne=Ee.charCodeAt(++q);if(q>_e)m=tt(m,Ee.slice(_e,q))}let f={type:t?"Block":"Line",value:m,start:a,end:l};if(d&&k)f.loc={start:d,end:k};Ve.push(f)}function tt(t,r){let a=t.startsWith(r)?r.length:0,l="",d=t.indexOf(`
|
|
10
|
-
`,a);while(d!==-1){if(l+=t.slice(a,d+1),a=d+1,t.startsWith(r,a))a+=r.length;d=t.indexOf(`
|
|
11
|
-
`,a)}return l+t.slice(a)}function Ke(t,r,a){let l=0,d=r.length;while(l<d){let k=l+d>>>1;if(r[k].start<a)l=k+1;else d=k}if(l>=r.length)return;if(y=r.slice(l).map(({type:k,value:m,start:f,end:_e})=>({type:k,value:m,start:f,end:_e})),S=0,Be(t,void 0,!1),S<y.length&&(y[S].start>=t.end||t.type==="Program")){t.trailingComments??=[];while(S<y.length)t.trailingComments.push(y[S++])}}var y=[],S=0,nt=new Map([["BlockStatement","body"],["Program","body"],["ArrayExpression","elements"],["ObjectExpression","properties"]]);function Ue(t,r){for(let a=t;a<r;a++){let l=Ee.charCodeAt(a);if(l!==44&&l!==41&&l!==32&&l!==9)return!0}return!1}function Be(t,r,a){while(S<y.length&&y[S].start<t.start)t.leadingComments??=[],t.leadingComments.push(y[S++]);if(S>=y.length)return;let l=y[S].start;if(l<t.end||!Ue(t.end,l)){let d=h(t),k=nt.get(t.type),m=k===void 0?void 0:d[k],f=Array.isArray(m)&&m.length===0;for(let _e in d){if(S>=y.length)return;if(_e==="type")continue;let q=d[_e];if(Array.isArray(q)){let Ne=_e===k;for(let Pe=0;Pe<q.length;Pe++){let Me=q[Pe];if(o(Me))Be(Me,t,Ne?Pe===q.length-1:f)}}else if(o(q))Be(q,t,f)}if(S>=y.length)return}if(r!==void 0&&t.end===r.end)return;if(a)while(S<y.length){if(r&&y[S].start>=r.end)break;t.trailingComments??=[],t.trailingComments.push(y[S++])}else if(t.end<=y[S].start&&!Ue(t.end,y[S].start))t.trailingComments=[y[S++]]}var Re=!1,Ye=new Map;function We(t){if(!(t instanceof RegExp))return t;let r=Ye.get(t);if(!r){let a=new Set(t.source.slice(4,-2).split("|"));r={test:(l)=>a.has(l)},Ye.set(t,r)}return r}var I=b((t)=>{let{keywordTypes:r,tokTypes:a}=t.acorn,l=new Map("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this const class extends export import super".split(" ").map((d)=>[d,r[d]]));return class extends t{constructor(d,k,m){super(d,k,m);this.keywords=We(this.keywords),this.reservedWords=We(this.reservedWords),this.reservedWordsStrict=We(this.reservedWordsStrict),this.reservedWordsStrictBind=We(this.reservedWordsStrictBind)}parseParenAndDistinguishExpression(d,k){let m=super.parseParenAndDistinguishExpression(d,k);if(m.type==="ParenthesizedExpression")Re=!0;return m}checkLocalExport(){}skipSpace(){let d=this.input,k=this.options.locations,m=this.pos,f=d.charCodeAt(m);for(;;)if(f===32||f===9)f=d.charCodeAt(++m);else if(f===10){if(f=d.charCodeAt(++m),k)this.curLine++,this.lineStart=m}else break;if(this.pos=m,f===47||f<33||f>=128)super.skipSpace()}readWord1(){let d=this.input,k=this.pos,m=k,f=d.charCodeAt(m);while(f>=97&&f<=122||f>=65&&f<=90||f>=48&&f<=57||f===95||f===36)f=d.charCodeAt(++m);if(f>=128||f===92)return super.readWord1();return this.containsEsc=!1,this.pos=m,d.slice(k,m)}readWord(){let d=this.readWord1();return this.finishToken(l.get(d)??a.name,d)}}}),ot=v(I),rt=/ \(\d+:\d+\)$/;function Ie(t){return t}function He(t){return t instanceof SyntaxError&&"pos"in t&&typeof t.pos==="number"}function De(t,r,a,l,d,k=t.root.comments.length){let m=t.root.comments;Ge(r,m);let f={onComment:t.comments?qe:Xe,sourceType:"module",ecmaVersion:16,locations:t.loc,preserveParens:l};if(t.lfOnly)f.startLocation=n(a);let _e=t.isTypeScript?t.typescript:ot;if(!_e)w();let q;try{q=d(_e,f)}catch(Ne){if(!He(Ne))throw Ne;ze(Ne.pos,Ne.message.replace(rt,""))}if(m.length>k)Ke(Ie(q),m,a);return q}function g(t,r,a=0){return Ie(De(t,r,0,!1,(l,d)=>{if(a>0&&d.locations)d.startLocation=n(a);let k=new l(d,r,a).parse();return k.start=0,k},0))}var it={count:0};function c(t,r,a,l=!1){it.count+=1,Re=!1;let d=Ie(De(t,r,a,!0,(m,f)=>m.parseExpressionAt(r,a,f))),k=Math.max(d.end,Je());return{node:Re&&!l?Qe(d):d,end:k}}function Ae(t,r,a){return Ie(De(t,r,a,!1,(l,d)=>{let k=new l(d,r,a);try{return k.nextToken(),k.parseStatement(null,!0,Object.create(null))}catch(m){if(He(m)&&m.pos===r.length)i(r.length);throw m}}))}function Qe(t){let r=t;while(r.type==="ParenthesizedExpression")r=r.expression;return u(r,Qe),r}
|
|
12
|
-
export{x,n,p,e,R,O,D,B,F,V,M,j,W,z,E,U,H,N,G,K,Q,X,T,C,Y,_,J,Z,s,ee,te,ie,se,re,ne,oe,ae,le,P,pe,ce,he,ue,fe,de,A,me,ye,xe,L,ge,be,ve,Se,i,ke,we,Te,I,g,c,Ae};
|
package/shared-xvd609sh.js
DELETED