allyward 1.2.0 → 1.4.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/chunks/{chunk-YX75XWC5.mjs → chunk-2HHAZWDE.mjs} +12 -12
- package/chunks/{chunk-FQWMXWVV.mjs → chunk-E5FSXHRE.mjs} +1 -1
- package/chunks/{chunk-GMYSZQLH.mjs → chunk-EQOLROGF.mjs} +1 -1
- package/chunks/{chunk-RAB5WJOG.mjs → chunk-FIPGNZZ6.mjs} +1 -1
- package/chunks/{chunk-7T75TQUC.mjs → chunk-GAWNPASE.mjs} +1 -1
- package/chunks/{chunk-PX6A45SJ.mjs → chunk-GDXCH44Z.mjs} +1 -1
- package/chunks/{chunk-5WE6XNNZ.mjs → chunk-I2GPMTSI.mjs} +7 -7
- package/chunks/{chunk-KVSUD4M5.mjs → chunk-L6OUAZ76.mjs} +1 -1
- package/chunks/chunk-LUOGX5HV.mjs +2 -0
- package/chunks/{chunk-OLLDCSVO.mjs → chunk-P2I74HDC.mjs} +1 -1
- package/chunks/chunk-SDHUSWGB.mjs +6 -0
- package/chunks/chunk-TGAVS6EH.mjs +5 -0
- package/chunks/chunk-UZSBFFFQ.mjs +49 -0
- package/chunks/{engine-BXEHUF3N.mjs → engine-BGIESLNZ.mjs} +65 -65
- package/chunks/engine-DSOPFWHC.mjs +2 -0
- package/chunks/{engine-2IR2XTU3.mjs → engine-JSEBQ7TY.mjs} +4 -4
- package/chunks/{engine-EIRLRZJL.mjs → engine-K2XYVQIA.mjs} +2 -2
- package/chunks/{engine-6ZXXNROB.mjs → engine-Q7DUDXGX.mjs} +30 -30
- package/chunks/{engine-BIE3PYS6.mjs → engine-WK6QS5UW.mjs} +2 -2
- package/cli.mjs +34 -34
- package/package.json +1 -1
- package/worker.mjs +1 -1
- package/chunks/chunk-34BTBUDF.mjs +0 -49
- package/chunks/chunk-7UDH5BXX.mjs +0 -2
- package/chunks/chunk-LRFMPFDN.mjs +0 -5
- package/chunks/chunk-SNU37HWC.mjs +0 -6
- package/chunks/engine-TPXDCC2K.mjs +0 -2
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'module'; const require = __createRequire(import.meta.url);
|
|
2
|
-
import{a as Os,b as Ds,c as fd,d as bc,e as yc,f as Mr}from"./chunk-
|
|
3
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
4
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rC(e,t){if(e){if(typeof e=="string")return Oy(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Oy(e,t):void 0}}function Oy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function iC(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,s,a,n,p=[],u=!0,d=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(i=a.call(r)).done)&&(p.push(i.value),p.length!==t);u=!0);}catch(m){d=!0,s=m}finally{try{if(!u&&r.return!=null&&(n=r.return(),Object(n)!==n))return}finally{if(d)throw s}}return p}}function sC(e){if(Array.isArray(e))return e}var Mi=[["a",{reserved:!1}],["abbr",{reserved:!1}],["acronym",{reserved:!1}],["address",{reserved:!1}],["applet",{reserved:!1}],["area",{reserved:!1}],["article",{reserved:!1}],["aside",{reserved:!1}],["audio",{reserved:!1}],["b",{reserved:!1}],["base",{reserved:!0}],["bdi",{reserved:!1}],["bdo",{reserved:!1}],["big",{reserved:!1}],["blink",{reserved:!1}],["blockquote",{reserved:!1}],["body",{reserved:!1}],["br",{reserved:!1}],["button",{reserved:!1}],["canvas",{reserved:!1}],["caption",{reserved:!1}],["center",{reserved:!1}],["cite",{reserved:!1}],["code",{reserved:!1}],["col",{reserved:!0}],["colgroup",{reserved:!0}],["content",{reserved:!1}],["data",{reserved:!1}],["datalist",{reserved:!1}],["dd",{reserved:!1}],["del",{reserved:!1}],["details",{reserved:!1}],["dfn",{reserved:!1}],["dialog",{reserved:!1}],["dir",{reserved:!1}],["div",{reserved:!1}],["dl",{reserved:!1}],["dt",{reserved:!1}],["em",{reserved:!1}],["embed",{reserved:!1}],["fieldset",{reserved:!1}],["figcaption",{reserved:!1}],["figure",{reserved:!1}],["font",{reserved:!1}],["footer",{reserved:!1}],["form",{reserved:!1}],["frame",{reserved:!1}],["frameset",{reserved:!1}],["h1",{reserved:!1}],["h2",{reserved:!1}],["h3",{reserved:!1}],["h4",{reserved:!1}],["h5",{reserved:!1}],["h6",{reserved:!1}],["head",{reserved:!0}],["header",{reserved:!1}],["hgroup",{reserved:!1}],["hr",{reserved:!1}],["html",{reserved:!0}],["i",{reserved:!1}],["iframe",{reserved:!1}],["img",{reserved:!1}],["input",{reserved:!1}],["ins",{reserved:!1}],["kbd",{reserved:!1}],["keygen",{reserved:!1}],["label",{reserved:!1}],["legend",{reserved:!1}],["li",{reserved:!1}],["link",{reserved:!0}],["main",{reserved:!1}],["map",{reserved:!1}],["mark",{reserved:!1}],["marquee",{reserved:!1}],["menu",{reserved:!1}],["menuitem",{reserved:!1}],["meta",{reserved:!0}],["meter",{reserved:!1}],["nav",{reserved:!1}],["noembed",{reserved:!0}],["noscript",{reserved:!0}],["object",{reserved:!1}],["ol",{reserved:!1}],["optgroup",{reserved:!1}],["option",{reserved:!1}],["output",{reserved:!1}],["p",{reserved:!1}],["param",{reserved:!0}],["picture",{reserved:!0}],["pre",{reserved:!1}],["progress",{reserved:!1}],["q",{reserved:!1}],["rp",{reserved:!1}],["rt",{reserved:!1}],["rtc",{reserved:!1}],["ruby",{reserved:!1}],["s",{reserved:!1}],["samp",{reserved:!1}],["script",{reserved:!0}],["section",{reserved:!1}],["select",{reserved:!1}],["small",{reserved:!1}],["source",{reserved:!0}],["spacer",{reserved:!1}],["span",{reserved:!1}],["strike",{reserved:!1}],["strong",{reserved:!1}],["style",{reserved:!0}],["sub",{reserved:!1}],["summary",{reserved:!1}],["sup",{reserved:!1}],["table",{reserved:!1}],["tbody",{reserved:!1}],["td",{reserved:!1}],["textarea",{reserved:!1}],["tfoot",{reserved:!1}],["th",{reserved:!1}],["thead",{reserved:!1}],["time",{reserved:!1}],["title",{reserved:!0}],["tr",{reserved:!1}],["track",{reserved:!0}],["tt",{reserved:!1}],["u",{reserved:!1}],["ul",{reserved:!1}],["var",{reserved:!1}],["video",{reserved:!1}],["wbr",{reserved:!1}],["xmp",{reserved:!1}]],Zp={entries:function(){return Mi},forEach:function(t){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,i=0,s=Mi;i<s.length;i++){var a=Yp(s[i],2),n=a[0],p=a[1];t.call(r,p,n,Mi)}},get:function(t){var r=Mi.find(function(i){return i[0]===t});return r&&r[1]},has:function(t){return!!Zp.get(t)},keys:function(){return Mi.map(function(t){var r=Yp(t,1),i=r[0];return i})},values:function(){return Mi.map(function(t){var r=Yp(t,2),i=r[1];return i})}},c9=Ia.default=(0,QS.default)(Zp,Zp.entries())});var By=N(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});Na.default=void 0;var aC={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},u9=Na.default=aC});var jy=N(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});Ma.default=void 0;var nC={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},f9=Ma.default=nC});var Fy=N(La=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});La.default=void 0;var oC={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null},relatedConcepts:[{concept:{name:"input"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},h9=La.default=oC});var Uy=N(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});Oa.default=void 0;var lC={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},b9=Oa.default=lC});var Hy=N(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});Da.default=void 0;var cC={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},g9=Da.default=cC});var Vy=N(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});Ba.default=void 0;var pC={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{"aria-atomic":null,"aria-busy":null,"aria-controls":null,"aria-current":null,"aria-describedby":null,"aria-details":null,"aria-dropeffect":null,"aria-flowto":null,"aria-grabbed":null,"aria-hidden":null,"aria-keyshortcuts":null,"aria-label":null,"aria-labelledby":null,"aria-live":null,"aria-owns":null,"aria-relevant":null,"aria-roledescription":null},relatedConcepts:[{concept:{name:"role"},module:"XHTML"},{concept:{name:"type"},module:"Dublin Core"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]},w9=Ba.default=pC});var zy=N(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});ja.default=void 0;var uC={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"frontmatter"},module:"DTB"},{concept:{name:"level"},module:"DTB"},{concept:{name:"level"},module:"SMIL"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},k9=ja.default=uC});var Wy=N(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});Fa.default=void 0;var dC={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},S9=Fa.default=dC});var Gy=N(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});Ua.default=void 0;var fC={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","group"]]},T9=Ua.default=fC});var Ky=N(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});Ha.default=void 0;var mC={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},A9=Ha.default=mC});var Xy=N(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.default=void 0;var hC={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},R9=Va.default=hC});var Jy=N(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.default=void 0;var _C={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-modal":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},I9=za.default=_C});var Yy=N(Wa=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});Wa.default=void 0;var bC=ht(By()),yC=ht(jy()),gC=ht(Fy()),vC=ht(Uy()),wC=ht(Hy()),xC=ht(Vy()),kC=ht(zy()),EC=ht(Wy()),SC=ht(Gy()),CC=ht(Ky()),TC=ht(Xy()),PC=ht(Jy());function ht(e){return e&&e.__esModule?e:{default:e}}var AC=[["command",bC.default],["composite",yC.default],["input",gC.default],["landmark",vC.default],["range",wC.default],["roletype",xC.default],["section",kC.default],["sectionhead",EC.default],["select",SC.default],["structure",CC.default],["widget",TC.default],["window",PC.default]],M9=Wa.default=AC});var Zy=N(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});Ga.default=void 0;var $C={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"assertive"},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},O9=Ga.default=$C});var Qy=N(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});Ka.default=void 0;var RC={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","alert"],["roletype","window","dialog"]]},B9=Ka.default=RC});var eg=N(Xa=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});Xa.default=void 0;var qC={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},F9=Xa.default=qC});var tg=N(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});Ja.default=void 0;var IC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"article"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]},H9=Ja.default=IC});var rg=N(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});Ya.default=void 0;var NC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"header"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},z9=Ya.default=NC});var ig=N(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});Za.default=void 0;var MC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"blockquote"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},G9=Za.default=MC});var sg=N(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});Qa.default=void 0;var LC={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-pressed":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"button"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"image"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"reset"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"submit"}],name:"input"},module:"HTML"},{concept:{name:"button"},module:"HTML"},{concept:{name:"trigger"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]},X9=Qa.default=LC});var ag=N(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.default=void 0;var OC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"caption"},module:"HTML"}],requireContextRole:["figure","grid","table"],requiredContextRole:["figure","grid","table"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},Y9=en.default=OC});var ng=N(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.default=void 0;var DC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-colspan":null,"aria-rowindex":null,"aria-rowspan":null},relatedConcepts:[{concept:{constraints:["ancestor table element has table role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},Q9=tn.default=DC});var og=N(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.default=void 0;var BC={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"checkbox"}],name:"input"},module:"HTML"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]},tO=rn.default=BC});var lg=N(sn=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});sn.default=void 0;var jC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"code"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},iO=sn.default=jC});var cg=N(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.default=void 0;var FC={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"col"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"colgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]},aO=an.default=FC});var pg=N(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.default=void 0;var UC={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-expanded":"false","aria-haspopup":"listbox"},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"email"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"search"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"tel"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"text"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"multiple"},{constraints:["undefined"],name:"size"}],constraints:["the multiple attribute is not set and the size attribute does not have a value greater than 1"],name:"select"},module:"HTML"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-expanded":"false"},superClass:[["roletype","widget","input"]]},oO=nn.default=UC});var ug=N(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.default=void 0;var HC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element","scoped to the main element"],name:"aside"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-label"}],constraints:["scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"aside"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],constraints:["scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"aside"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},cO=on.default=HC});var dg=N(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.default=void 0;var VC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"footer"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},uO=ln.default=VC});var fg=N(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.default=void 0;var zC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dd"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},fO=cn.default=zC});var mg=N(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.default=void 0;var WC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"del"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},hO=pn.default=WC});var hg=N(un=>{"use strict";Object.defineProperty(un,"__esModule",{value:!0});un.default=void 0;var GC={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dialog"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","window"]]},bO=un.default=GC});var _g=N(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.default=void 0;var KC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{module:"DAISY Guide"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","list"]]},gO=dn.default=KC});var bg=N(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.default=void 0;var XC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}},{concept:{name:"html"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},wO=fn.default=XC});var yg=N(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.default=void 0;var JC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"em"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},kO=mn.default=JC});var gg=N(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.default=void 0;var YC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["article"]],requiredProps:{},superClass:[["roletype","structure","section","list"]]},SO=hn.default=YC});var vg=N(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.default=void 0;var ZC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"figure"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},TO=_n.default=ZC});var wg=N(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.default=void 0;var QC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"name"}],name:"form"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},AO=bn.default=QC});var xg=N(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.default=void 0;var eT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"a"},module:"HTML"},{concept:{name:"area"},module:"HTML"},{concept:{name:"aside"},module:"HTML"},{concept:{name:"b"},module:"HTML"},{concept:{name:"bdo"},module:"HTML"},{concept:{name:"body"},module:"HTML"},{concept:{name:"data"},module:"HTML"},{concept:{name:"div"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"footer"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"header"},module:"HTML"},{concept:{name:"hgroup"},module:"HTML"},{concept:{name:"i"},module:"HTML"},{concept:{name:"pre"},module:"HTML"},{concept:{name:"q"},module:"HTML"},{concept:{name:"samp"},module:"HTML"},{concept:{name:"section"},module:"HTML"},{concept:{name:"small"},module:"HTML"},{concept:{name:"span"},module:"HTML"},{concept:{name:"u"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},RO=yn.default=eT});var kg=N(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.default=void 0;var tT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-multiselectable":null,"aria-readonly":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","table"]]},IO=gn.default=tT});var Eg=N(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.default=void 0;var rT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-selected":null},relatedConcepts:[{concept:{constraints:["ancestor table element has grid role","ancestor table element has treegrid role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","widget"]]},MO=vn.default=rT});var Sg=N(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.default=void 0;var iT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[{concept:{name:"details"},module:"HTML"},{concept:{name:"fieldset"},module:"HTML"},{concept:{name:"optgroup"},module:"HTML"},{concept:{name:"address"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},OO=wn.default=iT});var Cg=N(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.default=void 0;var sT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-level":"2"},relatedConcepts:[{concept:{name:"h1"},module:"HTML"},{concept:{name:"h2"},module:"HTML"},{concept:{name:"h3"},module:"HTML"},{concept:{name:"h4"},module:"HTML"},{concept:{name:"h5"},module:"HTML"},{concept:{name:"h6"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-level":"2"},superClass:[["roletype","structure","sectionhead"]]},BO=xn.default=sT});var Tg=N(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.default=void 0;var aT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"alt"}],name:"img"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"alt"}],name:"img"},module:"HTML"},{concept:{name:"imggroup"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},FO=kn.default=aT});var Pg=N(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.default=void 0;var nT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"ins"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},HO=En.default=nT});var Ag=N(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.default=void 0;var oT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"href"}],name:"a"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"href"}],name:"area"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]},zO=Sn.default=oT});var $g=N(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.default=void 0;var lT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menu"},module:"HTML"},{concept:{name:"ol"},module:"HTML"},{concept:{name:"ul"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["listitem"]],requiredProps:{},superClass:[["roletype","structure","section"]]},GO=Cn.default=lT});var Rg=N(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.default=void 0;var cT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-multiselectable":null,"aria-readonly":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[{concept:{attributes:[{constraints:[">1"],name:"size"}],constraints:["the size attribute value is greater than 1"],name:"select"},module:"HTML"},{concept:{attributes:[{name:"multiple"}],name:"select"},module:"HTML"},{concept:{name:"datalist"},module:"HTML"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["option","group"],["option"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},XO=Tn.default=cT});var qg=N(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.default=void 0;var pT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{constraints:["direct descendant of ol","direct descendant of ul","direct descendant of menu"],name:"li"},module:"HTML"},{concept:{name:"item"},module:"XForms"}],requireContextRole:["directory","list"],requiredContextRole:["directory","list"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},YO=Pn.default=pT});var Ig=N(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.default=void 0;var uT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-live":"polite"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},QO=An.default=uT});var Ng=N($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.default=void 0;var dT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"main"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},tD=$n.default=dT});var Mg=N(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.default=void 0;var fT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null},relatedConcepts:[{concept:{name:"mark"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},iD=Rn.default=fT});var Lg=N(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.default=void 0;var mT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},aD=qn.default=mT});var Og=N(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.default=void 0;var hT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"math"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},oD=In.default=hT});var Dg=N(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.default=void 0;var _T={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"vertical"},relatedConcepts:[{concept:{name:"MENU"},module:"JAPI"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"},{concept:{name:"sidebar"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},cD=Nn.default=_T});var Bg=N(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.default=void 0;var bT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"toolbar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select","menu"],["roletype","structure","section","group","select","menu"]]},uD=Mn.default=bT});var jg=N(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.default=void 0;var yT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"MENU_ITEM"},module:"JAPI"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]},fD=Ln.default=yT});var Fg=N(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.default=void 0;var gT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"],["roletype","widget","command","menuitem"]]},hD=On.default=gT});var Ug=N(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.default=void 0;var vT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox","menuitemcheckbox"],["roletype","widget","command","menuitem","menuitemcheckbox"],["roletype","widget","input","radio"]]},bD=Dn.default=vT});var Hg=N(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.default=void 0;var wT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null,"aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{name:"meter"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","structure","range"]]},gD=Bn.default=wT});var Vg=N(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.default=void 0;var xT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"nav"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},wD=jn.default=xT});var zg=N(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.default=void 0;var kT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]},kD=Fn.default=kT});var Wg=N(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.default=void 0;var ET={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},SD=Un.default=ET});var Gg=N(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.default=void 0;var ST={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[{concept:{name:"item"},module:"XForms"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-selected":"false"},superClass:[["roletype","widget","input"]]},TD=Hn.default=ST});var Kg=N(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.default=void 0;var CT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"p"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},AD=Vn.default=CT});var Xg=N(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.default=void 0;var TT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{attributes:[{name:"alt",value:""}],name:"img"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},RD=zn.default=TT});var Jg=N(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.default=void 0;var PT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null},relatedConcepts:[{concept:{name:"progress"},module:"HTML"},{concept:{name:"status"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","range"],["roletype","widget"]]},ID=Wn.default=PT});var Yg=N(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.default=void 0;var AT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"radio"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]},MD=Gn.default=AT});var Zg=N(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.default=void 0;var $T={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{name:"list"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["radio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},OD=Kn.default=$T});var Qg=N(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.default=void 0;var RT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"section"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"section"},module:"HTML"},{concept:{name:"Device Independence Glossart perceivable unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},BD=Xn.default=RT});var ev=N(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.default=void 0;var qT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-expanded":null,"aria-level":null,"aria-posinset":null,"aria-rowindex":null,"aria-selected":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"tr"},module:"HTML"}],requireContextRole:["grid","rowgroup","table","treegrid"],requiredContextRole:["grid","rowgroup","table","treegrid"],requiredOwnedElements:[["cell"],["columnheader"],["gridcell"],["rowheader"]],requiredProps:{},superClass:[["roletype","structure","section","group"],["roletype","widget"]]},FD=Jn.default=qT});var tv=N(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.default=void 0;var IT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"tbody"},module:"HTML"},{concept:{name:"tfoot"},module:"HTML"},{concept:{name:"thead"},module:"HTML"}],requireContextRole:["grid","table","treegrid"],requiredContextRole:["grid","table","treegrid"],requiredOwnedElements:[["row"]],requiredProps:{},superClass:[["roletype","structure"]]},HD=Yn.default=IT});var rv=N(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.default=void 0;var NT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{attributes:[{name:"scope",value:"row"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"rowgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row","rowgroup"],requiredContextRole:["row","rowgroup"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]},zD=Zn.default=NT});var iv=N(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.default=void 0;var MT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-valuetext":null,"aria-orientation":"vertical","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-valuenow":null},superClass:[["roletype","structure","range"],["roletype","widget"]]},GD=Qn.default=MT});var sv=N(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.default=void 0;var LT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},XD=eo.default=LT});var av=N(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.default=void 0;var OT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"search"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input","textbox"]]},YD=to.default=OT});var nv=N(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.default=void 0;var DT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0","aria-valuenow":null,"aria-valuetext":null},relatedConcepts:[{concept:{name:"hr"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},QD=ro.default=DT});var ov=N(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.default=void 0;var BT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-valuetext":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"range"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","widget","input"],["roletype","structure","range"]]},t6=io.default=BT});var lv=N(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.default=void 0;var jT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-valuetext":null,"aria-valuenow":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"number"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","widget","input"],["roletype","structure","range"]]},i6=so.default=jT});var cv=N(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.default=void 0;var FT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"polite"},relatedConcepts:[{concept:{name:"output"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},a6=ao.default=FT});var pv=N(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.default=void 0;var UT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"strong"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},o6=no.default=UT});var uv=N(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.default=void 0;var HT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sub"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},c6=oo.default=HT});var dv=N(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.default=void 0;var VT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sup"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},u6=lo.default=VT});var fv=N(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.default=void 0;var zT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"button"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"]]},f6=co.default=zT});var mv=N(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.default=void 0;var WT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[],requireContextRole:["tablist"],requiredContextRole:["tablist"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"],["roletype","widget"]]},h6=po.default=WT});var hv=N(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.default=void 0;var GT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-colcount":null,"aria-rowcount":null},relatedConcepts:[{concept:{name:"table"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","structure","section"]]},b6=uo.default=GT});var _v=N(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.default=void 0;var KT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-multiselectable":null,"aria-orientation":"horizontal"},relatedConcepts:[{module:"DAISY",concept:{name:"guide"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["tab"]],requiredProps:{},superClass:[["roletype","widget","composite"]]},g6=fo.default=KT});var bv=N(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.default=void 0;var XT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},w6=mo.default=XT});var yv=N(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.default=void 0;var JT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dfn"},module:"HTML"},{concept:{name:"dt"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},k6=ho.default=JT});var gv=N(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.default=void 0;var YT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-multiline":null,"aria-placeholder":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"type"},{constraints:["undefined"],name:"list"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"email"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"tel"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"text"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"url"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{name:"input"},module:"XForms"},{concept:{name:"textarea"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input"]]},S6=_o.default=YT});var vv=N(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.default=void 0;var ZT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"time"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},T6=bo.default=ZT});var wv=N(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.default=void 0;var QT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","status"]]},A6=yo.default=QT});var xv=N(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.default=void 0;var eP={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"menubar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]},R6=go.default=eP});var kv=N(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.default=void 0;var tP={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},I6=vo.default=tP});var Ev=N(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.default=void 0;var rP={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-multiselectable":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["treeitem","group"],["treeitem"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},M6=wo.default=rP});var Sv=N(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.default=void 0;var iP={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite","grid"],["roletype","structure","section","table","grid"],["roletype","widget","composite","select","tree"],["roletype","structure","section","group","select","tree"]]},O6=xo.default=iP});var Cv=N(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.default=void 0;var sP={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[],requireContextRole:["group","tree"],requiredContextRole:["group","tree"],requiredOwnedElements:[],requiredProps:{"aria-selected":null},superClass:[["roletype","structure","section","listitem"],["roletype","widget","input","option"]]},B6=ko.default=sP});var Tv=N(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.default=void 0;var aP=W(Zy()),nP=W(Qy()),oP=W(eg()),lP=W(tg()),cP=W(rg()),pP=W(ig()),uP=W(sg()),dP=W(ag()),fP=W(ng()),mP=W(og()),hP=W(lg()),_P=W(cg()),bP=W(pg()),yP=W(ug()),gP=W(dg()),vP=W(fg()),wP=W(mg()),xP=W(hg()),kP=W(_g()),EP=W(bg()),SP=W(yg()),CP=W(gg()),TP=W(vg()),PP=W(wg()),AP=W(xg()),$P=W(kg()),RP=W(Eg()),qP=W(Sg()),IP=W(Cg()),NP=W(Tg()),MP=W(Pg()),LP=W(Ag()),OP=W($g()),DP=W(Rg()),BP=W(qg()),jP=W(Ig()),FP=W(Ng()),UP=W(Mg()),HP=W(Lg()),VP=W(Og()),zP=W(Dg()),WP=W(Bg()),GP=W(jg()),KP=W(Fg()),XP=W(Ug()),JP=W(Hg()),YP=W(Vg()),ZP=W(zg()),QP=W(Wg()),eA=W(Gg()),tA=W(Kg()),rA=W(Xg()),iA=W(Jg()),sA=W(Yg()),aA=W(Zg()),nA=W(Qg()),oA=W(ev()),lA=W(tv()),cA=W(rv()),pA=W(iv()),uA=W(sv()),dA=W(av()),fA=W(nv()),mA=W(ov()),hA=W(lv()),_A=W(cv()),bA=W(pv()),yA=W(uv()),gA=W(dv()),vA=W(fv()),wA=W(mv()),xA=W(hv()),kA=W(_v()),EA=W(bv()),SA=W(yv()),CA=W(gv()),TA=W(vv()),PA=W(wv()),AA=W(xv()),$A=W(kv()),RA=W(Ev()),qA=W(Sv()),IA=W(Cv());function W(e){return e&&e.__esModule?e:{default:e}}var NA=[["alert",aP.default],["alertdialog",nP.default],["application",oP.default],["article",lP.default],["banner",cP.default],["blockquote",pP.default],["button",uP.default],["caption",dP.default],["cell",fP.default],["checkbox",mP.default],["code",hP.default],["columnheader",_P.default],["combobox",bP.default],["complementary",yP.default],["contentinfo",gP.default],["definition",vP.default],["deletion",wP.default],["dialog",xP.default],["directory",kP.default],["document",EP.default],["emphasis",SP.default],["feed",CP.default],["figure",TP.default],["form",PP.default],["generic",AP.default],["grid",$P.default],["gridcell",RP.default],["group",qP.default],["heading",IP.default],["img",NP.default],["insertion",MP.default],["link",LP.default],["list",OP.default],["listbox",DP.default],["listitem",BP.default],["log",jP.default],["main",FP.default],["mark",UP.default],["marquee",HP.default],["math",VP.default],["menu",zP.default],["menubar",WP.default],["menuitem",GP.default],["menuitemcheckbox",KP.default],["menuitemradio",XP.default],["meter",JP.default],["navigation",YP.default],["none",ZP.default],["note",QP.default],["option",eA.default],["paragraph",tA.default],["presentation",rA.default],["progressbar",iA.default],["radio",sA.default],["radiogroup",aA.default],["region",nA.default],["row",oA.default],["rowgroup",lA.default],["rowheader",cA.default],["scrollbar",pA.default],["search",uA.default],["searchbox",dA.default],["separator",fA.default],["slider",mA.default],["spinbutton",hA.default],["status",_A.default],["strong",bA.default],["subscript",yA.default],["superscript",gA.default],["switch",vA.default],["tab",wA.default],["table",xA.default],["tablist",kA.default],["tabpanel",EA.default],["term",SA.default],["textbox",CA.default],["time",TA.default],["timer",PA.default],["toolbar",AA.default],["tooltip",$A.default],["tree",RA.default],["treegrid",qA.default],["treeitem",IA.default]],F6=Eo.default=NA});var Pv=N(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.default=void 0;var MA={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"abstract [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},H6=So.default=MA});var Av=N(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.default=void 0;var LA={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"acknowledgments [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},z6=Co.default=LA});var $v=N(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.default=void 0;var OA={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"afterword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},G6=To.default=OA});var Rv=N(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.default=void 0;var DA={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"appendix [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},X6=Po.default=DA});var qv=N(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.default=void 0;var BA={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"referrer [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},Y6=Ao.default=BA});var Iv=N($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.default=void 0;var jA={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"EPUB biblioentry [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-bibliography"],requiredContextRole:["doc-bibliography"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]},Q6=$o.default=jA});var Nv=N(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.default=void 0;var FA={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"bibliography [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-biblioentry"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t3=Ro.default=FA});var Mv=N(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.default=void 0;var UA={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"biblioref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},i3=qo.default=UA});var Lv=N(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.default=void 0;var HA={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"chapter [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},a3=Io.default=HA});var Ov=N(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.default=void 0;var VA={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"colophon [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},o3=No.default=VA});var Dv=N(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.default=void 0;var zA={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"conclusion [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},c3=Mo.default=zA});var Bv=N(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.default=void 0;var WA={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"cover [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]},u3=Lo.default=WA});var jv=N(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.default=void 0;var GA={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credit [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},f3=Oo.default=GA});var Fv=N(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.default=void 0;var KA={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credits [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},h3=Do.default=KA});var Uv=N(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.default=void 0;var XA={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"dedication [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},b3=Bo.default=XA});var Hv=N(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.default=void 0;var JA={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-endnotes"],requiredContextRole:["doc-endnotes"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]},g3=jo.default=JA});var Vv=N(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.default=void 0;var YA={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnotes [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-endnote"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},w3=Fo.default=YA});var zv=N(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.default=void 0;var ZA={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epigraph [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},k3=Uo.default=ZA});var Wv=N(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.default=void 0;var QA={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epilogue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},S3=Ho.default=QA});var Gv=N(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.default=void 0;var e$={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"errata [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},T3=Vo.default=e$});var Kv=N(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.default=void 0;var t$={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},A3=zo.default=t$});var Xv=N(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.default=void 0;var r$={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"footnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},R3=Wo.default=r$});var Jv=N(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.default=void 0;var i$={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"foreword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},I3=Go.default=i$});var Yv=N(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.default=void 0;var s$={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossary [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["definition"],["term"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},M3=Ko.default=s$});var Zv=N(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.default=void 0;var a$={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},O3=Xo.default=a$});var Qv=N(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.default=void 0;var n$={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"index [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]},B3=Jo.default=n$});var ew=N(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.default=void 0;var o$={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"introduction [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},F3=Yo.default=o$});var tw=N(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.default=void 0;var l$={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"noteref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},H3=Zo.default=l$});var rw=N(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.default=void 0;var c$={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"notice [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]},z3=Qo.default=c$});var iw=N(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});el.default=void 0;var p$={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"pagebreak [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","separator"]]},G3=el.default=p$});var sw=N(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});tl.default=void 0;var u$={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null,"aria-disabled":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},X3=tl.default=u$});var aw=N(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});rl.default=void 0;var d$={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null,"aria-disabled":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},Y3=rl.default=d$});var nw=N(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});il.default=void 0;var f$={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"page-list [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]},Q3=il.default=f$});var ow=N(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});sl.default=void 0;var m$={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"part [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t7=sl.default=m$});var lw=N(al=>{"use strict";Object.defineProperty(al,"__esModule",{value:!0});al.default=void 0;var h$={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"preface [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},i7=al.default=h$});var cw=N(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});nl.default=void 0;var _$={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"prologue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},a7=nl.default=_$});var pw=N(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});ol.default=void 0;var b$={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"pullquote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["none"]]},o7=ol.default=b$});var uw=N(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});ll.default=void 0;var y$={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"qna [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},c7=ll.default=y$});var dw=N(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});cl.default=void 0;var g$={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"subtitle [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"]]},u7=cl.default=g$});var fw=N(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});pl.default=void 0;var v$={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"help [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]},f7=pl.default=v$});var mw=N(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});ul.default=void 0;var w$={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"toc [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]},h7=ul.default=w$});var hw=N(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});dl.default=void 0;var x$=de(Pv()),k$=de(Av()),E$=de($v()),S$=de(Rv()),C$=de(qv()),T$=de(Iv()),P$=de(Nv()),A$=de(Mv()),$$=de(Lv()),R$=de(Ov()),q$=de(Dv()),I$=de(Bv()),N$=de(jv()),M$=de(Fv()),L$=de(Uv()),O$=de(Hv()),D$=de(Vv()),B$=de(zv()),j$=de(Wv()),F$=de(Gv()),U$=de(Kv()),H$=de(Xv()),V$=de(Jv()),z$=de(Yv()),W$=de(Zv()),G$=de(Qv()),K$=de(ew()),X$=de(tw()),J$=de(rw()),Y$=de(iw()),Z$=de(sw()),Q$=de(aw()),e8=de(nw()),t8=de(ow()),r8=de(lw()),i8=de(cw()),s8=de(pw()),a8=de(uw()),n8=de(dw()),o8=de(fw()),l8=de(mw());function de(e){return e&&e.__esModule?e:{default:e}}var c8=[["doc-abstract",x$.default],["doc-acknowledgments",k$.default],["doc-afterword",E$.default],["doc-appendix",S$.default],["doc-backlink",C$.default],["doc-biblioentry",T$.default],["doc-bibliography",P$.default],["doc-biblioref",A$.default],["doc-chapter",$$.default],["doc-colophon",R$.default],["doc-conclusion",q$.default],["doc-cover",I$.default],["doc-credit",N$.default],["doc-credits",M$.default],["doc-dedication",L$.default],["doc-endnote",O$.default],["doc-endnotes",D$.default],["doc-epigraph",B$.default],["doc-epilogue",j$.default],["doc-errata",F$.default],["doc-example",U$.default],["doc-footnote",H$.default],["doc-foreword",V$.default],["doc-glossary",z$.default],["doc-glossref",W$.default],["doc-index",G$.default],["doc-introduction",K$.default],["doc-noteref",X$.default],["doc-notice",J$.default],["doc-pagebreak",Y$.default],["doc-pagefooter",Z$.default],["doc-pageheader",Q$.default],["doc-pagelist",e8.default],["doc-part",t8.default],["doc-preface",r8.default],["doc-prologue",i8.default],["doc-pullquote",s8.default],["doc-qna",a8.default],["doc-subtitle",n8.default],["doc-tip",o8.default],["doc-toc",l8.default]],b7=dl.default=c8});var _w=N(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});fl.default=void 0;var p8={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-object"}},{module:"ARIA",concept:{name:"img"}},{module:"ARIA",concept:{name:"article"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]},g7=fl.default=p8});var bw=N(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});ml.default=void 0;var u8={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-document"}},{module:"ARIA",concept:{name:"group"}},{module:"ARIA",concept:{name:"img"}},{module:"GRAPHICS",concept:{name:"graphics-symbol"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]},w7=ml.default=u8});var yw=N(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});hl.default=void 0;var d8={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]},k7=hl.default=d8});var gw=N(_l=>{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});_l.default=void 0;var f8=Qp(_w()),m8=Qp(bw()),h8=Qp(yw());function Qp(e){return e&&e.__esModule?e:{default:e}}var _8=[["graphics-document",f8.default],["graphics-object",m8.default],["graphics-symbol",h8.default]],S7=_l.default=_8});var yl=N(bl=>{"use strict";function ks(e){"@babel/helpers - typeof";return ks=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ks(e)}Object.defineProperty(bl,"__esModule",{value:!0});bl.default=void 0;var b8=Es(Yy()),y8=Es(Tv()),g8=Es(hw()),v8=Es(gw()),w8=Es(Ii());function Es(e){return e&&e.__esModule?e:{default:e}}function x8(e,t,r){return(t=k8(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k8(e){var t=E8(e,"string");return ks(t)=="symbol"?t:t+""}function E8(e,t){if(ks(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(ks(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function eu(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=ww(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var i=0,s=function(){};return{s,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(d){throw d},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
5
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,n=!0,p=!1;return{s:function(){r=r.call(e)},n:function(){var d=r.next();return n=d.done,d},e:function(d){p=!0,a=d},f:function(){try{n||r.return==null||r.return()}finally{if(p)throw a}}}}function xs(e,t){return
|
|
6
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ww(e,t){if(e){if(typeof e=="string")return vw(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?vw(e,t):void 0}}function vw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function
|
|
7
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
8
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
9
|
-
`).map((u,d)=>{let m=s+u.length+1,h={start:s,end:m,line:d};return s=m,h}),n=0;function p(u,d){if(typeof u=="string"&&(u=e.indexOf(u,d??0)),u===-1)return;let m=a[n],h=u>=m.end?1:-1;for(;m;){if(
|
|
10
|
-
`)}var F,Fs=!1,_e;function Us(e){mi=e,Pc=void 0;let t=Ec(mi,{offsetLine:1});_e=r=>{let i=t(r);if(!i)throw new Error("An impossible situation occurred");return i}}function jr(e){let t=_e(e.start);return`${Md($e)}:${t?.line}:${t.column}`}var Ac,dr=[],Xt=new Map,fi=null;function Od(){return fi===null&&(fi=dr.map(e=>new Set(e))),fi}function Dd(e){let t=new Set([...dr.at(-1)||[],...e]);dr.push(t),fi=null}function Bd(){dr.pop(),fi=null}function Ce(e,t){return F&&!!Xt.get(e)?.some(r=>r.has(t))}function $c(e){F=!1,Fs=!1,fr=Kt,mi="",Pc=void 0,$e=(e.filename??Kt).replace(/\\/g,"/"),Ac=e.warning??(()=>!0),hi=[]}function jd(e){let t=e.rootDir?.replace(/\\/g,"/");F=e.dev,Fs=e.runes,fr=e.component_name??Kt,typeof t=="string"&&$e.startsWith(t)&&($e=$e.replace(t,"").replace(/^[/\\]/,"")),dr=[],Xt.clear(),fi=null}var
|
|
2
|
+
import{a as Os,b as Ds,c as fd,d as bc,e as yc,f as Mr}from"./chunk-L6OUAZ76.mjs";import{a as cd}from"./chunk-GAWNPASE.mjs";import{a as ud}from"./chunk-UIPLYHZY.mjs";import{a as pd,c as _c,f as dd}from"./chunk-TGAVS6EH.mjs";import"./chunk-6W3JS6DP.mjs";import{h as md}from"./chunk-SDHUSWGB.mjs";import{c as N,e as Ls}from"./chunk-LUOGX5HV.mjs";var Ny=N(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});Ra.default=void 0;function VS(){var e=this,t=0,r={"@@iterator":function(){return r},next:function(){if(t<e.length){var s=e[t];return t=t+1,{done:!1,value:s}}else return{done:!0}}};return r}var a9=Ra.default=VS});var Ii=N(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0});Kp.default=GS;var zS=WS(Ny());function WS(e){return e&&e.__esModule?e:{default:e}}function Gp(e){"@babel/helpers - typeof";return Gp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gp(e)}function GS(e,t){return typeof Symbol=="function"&&Gp(Symbol.iterator)==="symbol"&&Object.defineProperty(e,Symbol.iterator,{value:zS.default.bind(t)}),e}});var Ly=N(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});qa.default=void 0;var KS=XS(Ii());function XS(e){return e&&e.__esModule?e:{default:e}}function Xp(e,t){return QS(e)||ZS(e,t)||YS(e,t)||JS()}function JS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YS(e,t){if(e){if(typeof e=="string")return My(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?My(e,t):void 0}}function My(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function ZS(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,s,a,n,p=[],u=!0,d=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(i=a.call(r)).done)&&(p.push(i.value),p.length!==t);u=!0);}catch(m){d=!0,s=m}finally{try{if(!u&&r.return!=null&&(n=r.return(),Object(n)!==n))return}finally{if(d)throw s}}return p}}function QS(e){if(Array.isArray(e))return e}var Ni=[["aria-activedescendant",{type:"id"}],["aria-atomic",{type:"boolean"}],["aria-autocomplete",{type:"token",values:["inline","list","both","none"]}],["aria-braillelabel",{type:"string"}],["aria-brailleroledescription",{type:"string"}],["aria-busy",{type:"boolean"}],["aria-checked",{type:"tristate"}],["aria-colcount",{type:"integer"}],["aria-colindex",{type:"integer"}],["aria-colspan",{type:"integer"}],["aria-controls",{type:"idlist"}],["aria-current",{type:"token",values:["page","step","location","date","time",!0,!1]}],["aria-describedby",{type:"idlist"}],["aria-description",{type:"string"}],["aria-details",{type:"id"}],["aria-disabled",{type:"boolean"}],["aria-dropeffect",{type:"tokenlist",values:["copy","execute","link","move","none","popup"]}],["aria-errormessage",{type:"id"}],["aria-expanded",{type:"boolean",allowundefined:!0}],["aria-flowto",{type:"idlist"}],["aria-grabbed",{type:"boolean",allowundefined:!0}],["aria-haspopup",{type:"token",values:[!1,!0,"menu","listbox","tree","grid","dialog"]}],["aria-hidden",{type:"boolean",allowundefined:!0}],["aria-invalid",{type:"token",values:["grammar",!1,"spelling",!0]}],["aria-keyshortcuts",{type:"string"}],["aria-label",{type:"string"}],["aria-labelledby",{type:"idlist"}],["aria-level",{type:"integer"}],["aria-live",{type:"token",values:["assertive","off","polite"]}],["aria-modal",{type:"boolean"}],["aria-multiline",{type:"boolean"}],["aria-multiselectable",{type:"boolean"}],["aria-orientation",{type:"token",values:["vertical","undefined","horizontal"]}],["aria-owns",{type:"idlist"}],["aria-placeholder",{type:"string"}],["aria-posinset",{type:"integer"}],["aria-pressed",{type:"tristate"}],["aria-readonly",{type:"boolean"}],["aria-relevant",{type:"tokenlist",values:["additions","all","removals","text"]}],["aria-required",{type:"boolean"}],["aria-roledescription",{type:"string"}],["aria-rowcount",{type:"integer"}],["aria-rowindex",{type:"integer"}],["aria-rowspan",{type:"integer"}],["aria-selected",{type:"boolean",allowundefined:!0}],["aria-setsize",{type:"integer"}],["aria-sort",{type:"token",values:["ascending","descending","none","other"]}],["aria-valuemax",{type:"number"}],["aria-valuemin",{type:"number"}],["aria-valuenow",{type:"number"}],["aria-valuetext",{type:"string"}]],Jp={entries:function(){return Ni},forEach:function(t){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,i=0,s=Ni;i<s.length;i++){var a=Xp(s[i],2),n=a[0],p=a[1];t.call(r,p,n,Ni)}},get:function(t){var r=Ni.find(function(i){return i[0]===t});return r&&r[1]},has:function(t){return!!Jp.get(t)},keys:function(){return Ni.map(function(t){var r=Xp(t,1),i=r[0];return i})},values:function(){return Ni.map(function(t){var r=Xp(t,2),i=r[1];return i})}},l9=qa.default=(0,KS.default)(Jp,Jp.entries())});var Dy=N(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});Ia.default=void 0;var eC=tC(Ii());function tC(e){return e&&e.__esModule?e:{default:e}}function Yp(e,t){return aC(e)||sC(e,t)||iC(e,t)||rC()}function rC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
4
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iC(e,t){if(e){if(typeof e=="string")return Oy(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Oy(e,t):void 0}}function Oy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function sC(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,s,a,n,p=[],u=!0,d=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(i=a.call(r)).done)&&(p.push(i.value),p.length!==t);u=!0);}catch(m){d=!0,s=m}finally{try{if(!u&&r.return!=null&&(n=r.return(),Object(n)!==n))return}finally{if(d)throw s}}return p}}function aC(e){if(Array.isArray(e))return e}var Mi=[["a",{reserved:!1}],["abbr",{reserved:!1}],["acronym",{reserved:!1}],["address",{reserved:!1}],["applet",{reserved:!1}],["area",{reserved:!1}],["article",{reserved:!1}],["aside",{reserved:!1}],["audio",{reserved:!1}],["b",{reserved:!1}],["base",{reserved:!0}],["bdi",{reserved:!1}],["bdo",{reserved:!1}],["big",{reserved:!1}],["blink",{reserved:!1}],["blockquote",{reserved:!1}],["body",{reserved:!1}],["br",{reserved:!1}],["button",{reserved:!1}],["canvas",{reserved:!1}],["caption",{reserved:!1}],["center",{reserved:!1}],["cite",{reserved:!1}],["code",{reserved:!1}],["col",{reserved:!0}],["colgroup",{reserved:!0}],["content",{reserved:!1}],["data",{reserved:!1}],["datalist",{reserved:!1}],["dd",{reserved:!1}],["del",{reserved:!1}],["details",{reserved:!1}],["dfn",{reserved:!1}],["dialog",{reserved:!1}],["dir",{reserved:!1}],["div",{reserved:!1}],["dl",{reserved:!1}],["dt",{reserved:!1}],["em",{reserved:!1}],["embed",{reserved:!1}],["fieldset",{reserved:!1}],["figcaption",{reserved:!1}],["figure",{reserved:!1}],["font",{reserved:!1}],["footer",{reserved:!1}],["form",{reserved:!1}],["frame",{reserved:!1}],["frameset",{reserved:!1}],["h1",{reserved:!1}],["h2",{reserved:!1}],["h3",{reserved:!1}],["h4",{reserved:!1}],["h5",{reserved:!1}],["h6",{reserved:!1}],["head",{reserved:!0}],["header",{reserved:!1}],["hgroup",{reserved:!1}],["hr",{reserved:!1}],["html",{reserved:!0}],["i",{reserved:!1}],["iframe",{reserved:!1}],["img",{reserved:!1}],["input",{reserved:!1}],["ins",{reserved:!1}],["kbd",{reserved:!1}],["keygen",{reserved:!1}],["label",{reserved:!1}],["legend",{reserved:!1}],["li",{reserved:!1}],["link",{reserved:!0}],["main",{reserved:!1}],["map",{reserved:!1}],["mark",{reserved:!1}],["marquee",{reserved:!1}],["menu",{reserved:!1}],["menuitem",{reserved:!1}],["meta",{reserved:!0}],["meter",{reserved:!1}],["nav",{reserved:!1}],["noembed",{reserved:!0}],["noscript",{reserved:!0}],["object",{reserved:!1}],["ol",{reserved:!1}],["optgroup",{reserved:!1}],["option",{reserved:!1}],["output",{reserved:!1}],["p",{reserved:!1}],["param",{reserved:!0}],["picture",{reserved:!0}],["pre",{reserved:!1}],["progress",{reserved:!1}],["q",{reserved:!1}],["rp",{reserved:!1}],["rt",{reserved:!1}],["rtc",{reserved:!1}],["ruby",{reserved:!1}],["s",{reserved:!1}],["samp",{reserved:!1}],["script",{reserved:!0}],["section",{reserved:!1}],["select",{reserved:!1}],["small",{reserved:!1}],["source",{reserved:!0}],["spacer",{reserved:!1}],["span",{reserved:!1}],["strike",{reserved:!1}],["strong",{reserved:!1}],["style",{reserved:!0}],["sub",{reserved:!1}],["summary",{reserved:!1}],["sup",{reserved:!1}],["table",{reserved:!1}],["tbody",{reserved:!1}],["td",{reserved:!1}],["textarea",{reserved:!1}],["tfoot",{reserved:!1}],["th",{reserved:!1}],["thead",{reserved:!1}],["time",{reserved:!1}],["title",{reserved:!0}],["tr",{reserved:!1}],["track",{reserved:!0}],["tt",{reserved:!1}],["u",{reserved:!1}],["ul",{reserved:!1}],["var",{reserved:!1}],["video",{reserved:!1}],["wbr",{reserved:!1}],["xmp",{reserved:!1}]],Zp={entries:function(){return Mi},forEach:function(t){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,i=0,s=Mi;i<s.length;i++){var a=Yp(s[i],2),n=a[0],p=a[1];t.call(r,p,n,Mi)}},get:function(t){var r=Mi.find(function(i){return i[0]===t});return r&&r[1]},has:function(t){return!!Zp.get(t)},keys:function(){return Mi.map(function(t){var r=Yp(t,1),i=r[0];return i})},values:function(){return Mi.map(function(t){var r=Yp(t,2),i=r[1];return i})}},p9=Ia.default=(0,eC.default)(Zp,Zp.entries())});var By=N(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});Na.default=void 0;var nC={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},d9=Na.default=nC});var jy=N(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});Ma.default=void 0;var oC={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},m9=Ma.default=oC});var Fy=N(La=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});La.default=void 0;var lC={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null},relatedConcepts:[{concept:{name:"input"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},_9=La.default=lC});var Uy=N(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});Oa.default=void 0;var cC={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},y9=Oa.default=cC});var Hy=N(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});Da.default=void 0;var pC={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},v9=Da.default=pC});var Vy=N(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});Ba.default=void 0;var uC={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{"aria-atomic":null,"aria-busy":null,"aria-controls":null,"aria-current":null,"aria-describedby":null,"aria-details":null,"aria-dropeffect":null,"aria-flowto":null,"aria-grabbed":null,"aria-hidden":null,"aria-keyshortcuts":null,"aria-label":null,"aria-labelledby":null,"aria-live":null,"aria-owns":null,"aria-relevant":null,"aria-roledescription":null},relatedConcepts:[{concept:{name:"role"},module:"XHTML"},{concept:{name:"type"},module:"Dublin Core"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]},x9=Ba.default=uC});var zy=N(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});ja.default=void 0;var dC={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"frontmatter"},module:"DTB"},{concept:{name:"level"},module:"DTB"},{concept:{name:"level"},module:"SMIL"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},E9=ja.default=dC});var Wy=N(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});Fa.default=void 0;var fC={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},C9=Fa.default=fC});var Gy=N(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});Ua.default=void 0;var mC={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","group"]]},P9=Ua.default=mC});var Ky=N(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});Ha.default=void 0;var hC={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},$9=Ha.default=hC});var Xy=N(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.default=void 0;var _C={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},q9=Va.default=_C});var Jy=N(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.default=void 0;var bC={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-modal":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},N9=za.default=bC});var Yy=N(Wa=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});Wa.default=void 0;var yC=ht(By()),gC=ht(jy()),vC=ht(Fy()),wC=ht(Uy()),xC=ht(Hy()),kC=ht(Vy()),EC=ht(zy()),SC=ht(Wy()),CC=ht(Gy()),TC=ht(Ky()),PC=ht(Xy()),AC=ht(Jy());function ht(e){return e&&e.__esModule?e:{default:e}}var $C=[["command",yC.default],["composite",gC.default],["input",vC.default],["landmark",wC.default],["range",xC.default],["roletype",kC.default],["section",EC.default],["sectionhead",SC.default],["select",CC.default],["structure",TC.default],["widget",PC.default],["window",AC.default]],L9=Wa.default=$C});var Zy=N(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});Ga.default=void 0;var RC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"assertive"},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},D9=Ga.default=RC});var Qy=N(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});Ka.default=void 0;var qC={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","alert"],["roletype","window","dialog"]]},j9=Ka.default=qC});var eg=N(Xa=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});Xa.default=void 0;var IC={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},U9=Xa.default=IC});var tg=N(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});Ja.default=void 0;var NC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"article"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]},V9=Ja.default=NC});var rg=N(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});Ya.default=void 0;var MC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"header"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},W9=Ya.default=MC});var ig=N(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});Za.default=void 0;var LC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"blockquote"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},K9=Za.default=LC});var sg=N(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});Qa.default=void 0;var OC={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-pressed":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"button"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"image"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"reset"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"submit"}],name:"input"},module:"HTML"},{concept:{name:"button"},module:"HTML"},{concept:{name:"trigger"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]},J9=Qa.default=OC});var ag=N(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.default=void 0;var DC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"caption"},module:"HTML"}],requireContextRole:["figure","grid","table"],requiredContextRole:["figure","grid","table"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},Z9=en.default=DC});var ng=N(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.default=void 0;var BC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-colspan":null,"aria-rowindex":null,"aria-rowspan":null},relatedConcepts:[{concept:{constraints:["ancestor table element has table role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},eO=tn.default=BC});var og=N(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.default=void 0;var jC={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"checkbox"}],name:"input"},module:"HTML"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]},rO=rn.default=jC});var lg=N(sn=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});sn.default=void 0;var FC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"code"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},sO=sn.default=FC});var cg=N(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.default=void 0;var UC={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"col"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"colgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]},nO=an.default=UC});var pg=N(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.default=void 0;var HC={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-expanded":"false","aria-haspopup":"listbox"},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"email"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"search"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"tel"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"text"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"multiple"},{constraints:["undefined"],name:"size"}],constraints:["the multiple attribute is not set and the size attribute does not have a value greater than 1"],name:"select"},module:"HTML"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-expanded":"false"},superClass:[["roletype","widget","input"]]},lO=nn.default=HC});var ug=N(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.default=void 0;var VC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element","scoped to the main element"],name:"aside"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-label"}],constraints:["scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"aside"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],constraints:["scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"aside"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},pO=on.default=VC});var dg=N(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.default=void 0;var zC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"footer"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},dO=ln.default=zC});var fg=N(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.default=void 0;var WC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dd"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},mO=cn.default=WC});var mg=N(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.default=void 0;var GC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"del"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},_O=pn.default=GC});var hg=N(un=>{"use strict";Object.defineProperty(un,"__esModule",{value:!0});un.default=void 0;var KC={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dialog"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","window"]]},yO=un.default=KC});var _g=N(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.default=void 0;var XC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{module:"DAISY Guide"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","list"]]},vO=dn.default=XC});var bg=N(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.default=void 0;var JC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}},{concept:{name:"html"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},xO=fn.default=JC});var yg=N(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.default=void 0;var YC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"em"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},EO=mn.default=YC});var gg=N(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.default=void 0;var ZC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["article"]],requiredProps:{},superClass:[["roletype","structure","section","list"]]},CO=hn.default=ZC});var vg=N(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.default=void 0;var QC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"figure"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},PO=_n.default=QC});var wg=N(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.default=void 0;var eT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"name"}],name:"form"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},$O=bn.default=eT});var xg=N(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.default=void 0;var tT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"a"},module:"HTML"},{concept:{name:"area"},module:"HTML"},{concept:{name:"aside"},module:"HTML"},{concept:{name:"b"},module:"HTML"},{concept:{name:"bdo"},module:"HTML"},{concept:{name:"body"},module:"HTML"},{concept:{name:"data"},module:"HTML"},{concept:{name:"div"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"footer"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"header"},module:"HTML"},{concept:{name:"hgroup"},module:"HTML"},{concept:{name:"i"},module:"HTML"},{concept:{name:"pre"},module:"HTML"},{concept:{name:"q"},module:"HTML"},{concept:{name:"samp"},module:"HTML"},{concept:{name:"section"},module:"HTML"},{concept:{name:"small"},module:"HTML"},{concept:{name:"span"},module:"HTML"},{concept:{name:"u"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},qO=yn.default=tT});var kg=N(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.default=void 0;var rT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-multiselectable":null,"aria-readonly":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","table"]]},NO=gn.default=rT});var Eg=N(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.default=void 0;var iT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-selected":null},relatedConcepts:[{concept:{constraints:["ancestor table element has grid role","ancestor table element has treegrid role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","widget"]]},LO=vn.default=iT});var Sg=N(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.default=void 0;var sT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[{concept:{name:"details"},module:"HTML"},{concept:{name:"fieldset"},module:"HTML"},{concept:{name:"optgroup"},module:"HTML"},{concept:{name:"address"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},DO=wn.default=sT});var Cg=N(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.default=void 0;var aT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-level":"2"},relatedConcepts:[{concept:{name:"h1"},module:"HTML"},{concept:{name:"h2"},module:"HTML"},{concept:{name:"h3"},module:"HTML"},{concept:{name:"h4"},module:"HTML"},{concept:{name:"h5"},module:"HTML"},{concept:{name:"h6"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-level":"2"},superClass:[["roletype","structure","sectionhead"]]},jO=xn.default=aT});var Tg=N(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.default=void 0;var nT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"alt"}],name:"img"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"alt"}],name:"img"},module:"HTML"},{concept:{name:"imggroup"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},UO=kn.default=nT});var Pg=N(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.default=void 0;var oT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"ins"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},VO=En.default=oT});var Ag=N(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.default=void 0;var lT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"href"}],name:"a"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"href"}],name:"area"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]},WO=Sn.default=lT});var $g=N(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.default=void 0;var cT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menu"},module:"HTML"},{concept:{name:"ol"},module:"HTML"},{concept:{name:"ul"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["listitem"]],requiredProps:{},superClass:[["roletype","structure","section"]]},KO=Cn.default=cT});var Rg=N(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.default=void 0;var pT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-multiselectable":null,"aria-readonly":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[{concept:{attributes:[{constraints:[">1"],name:"size"}],constraints:["the size attribute value is greater than 1"],name:"select"},module:"HTML"},{concept:{attributes:[{name:"multiple"}],name:"select"},module:"HTML"},{concept:{name:"datalist"},module:"HTML"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["option","group"],["option"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},JO=Tn.default=pT});var qg=N(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.default=void 0;var uT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{constraints:["direct descendant of ol","direct descendant of ul","direct descendant of menu"],name:"li"},module:"HTML"},{concept:{name:"item"},module:"XForms"}],requireContextRole:["directory","list"],requiredContextRole:["directory","list"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},ZO=Pn.default=uT});var Ig=N(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.default=void 0;var dT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-live":"polite"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},eD=An.default=dT});var Ng=N($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.default=void 0;var fT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"main"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},rD=$n.default=fT});var Mg=N(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.default=void 0;var mT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null},relatedConcepts:[{concept:{name:"mark"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},sD=Rn.default=mT});var Lg=N(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.default=void 0;var hT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},nD=qn.default=hT});var Og=N(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.default=void 0;var _T={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"math"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},lD=In.default=_T});var Dg=N(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.default=void 0;var bT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"vertical"},relatedConcepts:[{concept:{name:"MENU"},module:"JAPI"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"},{concept:{name:"sidebar"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},pD=Nn.default=bT});var Bg=N(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.default=void 0;var yT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"toolbar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select","menu"],["roletype","structure","section","group","select","menu"]]},dD=Mn.default=yT});var jg=N(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.default=void 0;var gT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"MENU_ITEM"},module:"JAPI"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]},mD=Ln.default=gT});var Fg=N(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.default=void 0;var vT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"],["roletype","widget","command","menuitem"]]},_D=On.default=vT});var Ug=N(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.default=void 0;var wT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox","menuitemcheckbox"],["roletype","widget","command","menuitem","menuitemcheckbox"],["roletype","widget","input","radio"]]},yD=Dn.default=wT});var Hg=N(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.default=void 0;var xT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null,"aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{name:"meter"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","structure","range"]]},vD=Bn.default=xT});var Vg=N(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.default=void 0;var kT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"nav"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},xD=jn.default=kT});var zg=N(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.default=void 0;var ET={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]},ED=Fn.default=ET});var Wg=N(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.default=void 0;var ST={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},CD=Un.default=ST});var Gg=N(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.default=void 0;var CT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[{concept:{name:"item"},module:"XForms"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-selected":"false"},superClass:[["roletype","widget","input"]]},PD=Hn.default=CT});var Kg=N(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.default=void 0;var TT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"p"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},$D=Vn.default=TT});var Xg=N(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.default=void 0;var PT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{attributes:[{name:"alt",value:""}],name:"img"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},qD=zn.default=PT});var Jg=N(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.default=void 0;var AT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null},relatedConcepts:[{concept:{name:"progress"},module:"HTML"},{concept:{name:"status"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","range"],["roletype","widget"]]},ND=Wn.default=AT});var Yg=N(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.default=void 0;var $T={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"radio"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]},LD=Gn.default=$T});var Zg=N(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.default=void 0;var RT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{name:"list"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["radio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},DD=Kn.default=RT});var Qg=N(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.default=void 0;var qT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"section"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"section"},module:"HTML"},{concept:{name:"Device Independence Glossart perceivable unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},jD=Xn.default=qT});var ev=N(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.default=void 0;var IT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-expanded":null,"aria-level":null,"aria-posinset":null,"aria-rowindex":null,"aria-selected":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"tr"},module:"HTML"}],requireContextRole:["grid","rowgroup","table","treegrid"],requiredContextRole:["grid","rowgroup","table","treegrid"],requiredOwnedElements:[["cell"],["columnheader"],["gridcell"],["rowheader"]],requiredProps:{},superClass:[["roletype","structure","section","group"],["roletype","widget"]]},UD=Jn.default=IT});var tv=N(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.default=void 0;var NT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"tbody"},module:"HTML"},{concept:{name:"tfoot"},module:"HTML"},{concept:{name:"thead"},module:"HTML"}],requireContextRole:["grid","table","treegrid"],requiredContextRole:["grid","table","treegrid"],requiredOwnedElements:[["row"]],requiredProps:{},superClass:[["roletype","structure"]]},VD=Yn.default=NT});var rv=N(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.default=void 0;var MT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{attributes:[{name:"scope",value:"row"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"rowgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row","rowgroup"],requiredContextRole:["row","rowgroup"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]},WD=Zn.default=MT});var iv=N(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.default=void 0;var LT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-valuetext":null,"aria-orientation":"vertical","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-valuenow":null},superClass:[["roletype","structure","range"],["roletype","widget"]]},KD=Qn.default=LT});var sv=N(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.default=void 0;var OT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},JD=eo.default=OT});var av=N(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.default=void 0;var DT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"search"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input","textbox"]]},ZD=to.default=DT});var nv=N(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.default=void 0;var BT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0","aria-valuenow":null,"aria-valuetext":null},relatedConcepts:[{concept:{name:"hr"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},e6=ro.default=BT});var ov=N(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.default=void 0;var jT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-valuetext":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"range"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","widget","input"],["roletype","structure","range"]]},r6=io.default=jT});var lv=N(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.default=void 0;var FT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-valuetext":null,"aria-valuenow":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"number"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","widget","input"],["roletype","structure","range"]]},s6=so.default=FT});var cv=N(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.default=void 0;var UT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"polite"},relatedConcepts:[{concept:{name:"output"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},n6=ao.default=UT});var pv=N(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.default=void 0;var HT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"strong"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},l6=no.default=HT});var uv=N(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.default=void 0;var VT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sub"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},p6=oo.default=VT});var dv=N(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.default=void 0;var zT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sup"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},d6=lo.default=zT});var fv=N(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.default=void 0;var WT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"button"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"]]},m6=co.default=WT});var mv=N(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.default=void 0;var GT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[],requireContextRole:["tablist"],requiredContextRole:["tablist"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"],["roletype","widget"]]},_6=po.default=GT});var hv=N(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.default=void 0;var KT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-colcount":null,"aria-rowcount":null},relatedConcepts:[{concept:{name:"table"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","structure","section"]]},y6=uo.default=KT});var _v=N(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.default=void 0;var XT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-multiselectable":null,"aria-orientation":"horizontal"},relatedConcepts:[{module:"DAISY",concept:{name:"guide"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["tab"]],requiredProps:{},superClass:[["roletype","widget","composite"]]},v6=fo.default=XT});var bv=N(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.default=void 0;var JT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},x6=mo.default=JT});var yv=N(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.default=void 0;var YT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dfn"},module:"HTML"},{concept:{name:"dt"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},E6=ho.default=YT});var gv=N(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.default=void 0;var ZT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-multiline":null,"aria-placeholder":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"type"},{constraints:["undefined"],name:"list"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"email"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"tel"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"text"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"url"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{name:"input"},module:"XForms"},{concept:{name:"textarea"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input"]]},C6=_o.default=ZT});var vv=N(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.default=void 0;var QT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"time"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},P6=bo.default=QT});var wv=N(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.default=void 0;var eP={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","status"]]},$6=yo.default=eP});var xv=N(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.default=void 0;var tP={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"menubar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]},q6=go.default=tP});var kv=N(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.default=void 0;var rP={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},N6=vo.default=rP});var Ev=N(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.default=void 0;var iP={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-multiselectable":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["treeitem","group"],["treeitem"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},L6=wo.default=iP});var Sv=N(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.default=void 0;var sP={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite","grid"],["roletype","structure","section","table","grid"],["roletype","widget","composite","select","tree"],["roletype","structure","section","group","select","tree"]]},D6=xo.default=sP});var Cv=N(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.default=void 0;var aP={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[],requireContextRole:["group","tree"],requiredContextRole:["group","tree"],requiredOwnedElements:[],requiredProps:{"aria-selected":null},superClass:[["roletype","structure","section","listitem"],["roletype","widget","input","option"]]},j6=ko.default=aP});var Tv=N(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.default=void 0;var nP=W(Zy()),oP=W(Qy()),lP=W(eg()),cP=W(tg()),pP=W(rg()),uP=W(ig()),dP=W(sg()),fP=W(ag()),mP=W(ng()),hP=W(og()),_P=W(lg()),bP=W(cg()),yP=W(pg()),gP=W(ug()),vP=W(dg()),wP=W(fg()),xP=W(mg()),kP=W(hg()),EP=W(_g()),SP=W(bg()),CP=W(yg()),TP=W(gg()),PP=W(vg()),AP=W(wg()),$P=W(xg()),RP=W(kg()),qP=W(Eg()),IP=W(Sg()),NP=W(Cg()),MP=W(Tg()),LP=W(Pg()),OP=W(Ag()),DP=W($g()),BP=W(Rg()),jP=W(qg()),FP=W(Ig()),UP=W(Ng()),HP=W(Mg()),VP=W(Lg()),zP=W(Og()),WP=W(Dg()),GP=W(Bg()),KP=W(jg()),XP=W(Fg()),JP=W(Ug()),YP=W(Hg()),ZP=W(Vg()),QP=W(zg()),eA=W(Wg()),tA=W(Gg()),rA=W(Kg()),iA=W(Xg()),sA=W(Jg()),aA=W(Yg()),nA=W(Zg()),oA=W(Qg()),lA=W(ev()),cA=W(tv()),pA=W(rv()),uA=W(iv()),dA=W(sv()),fA=W(av()),mA=W(nv()),hA=W(ov()),_A=W(lv()),bA=W(cv()),yA=W(pv()),gA=W(uv()),vA=W(dv()),wA=W(fv()),xA=W(mv()),kA=W(hv()),EA=W(_v()),SA=W(bv()),CA=W(yv()),TA=W(gv()),PA=W(vv()),AA=W(wv()),$A=W(xv()),RA=W(kv()),qA=W(Ev()),IA=W(Sv()),NA=W(Cv());function W(e){return e&&e.__esModule?e:{default:e}}var MA=[["alert",nP.default],["alertdialog",oP.default],["application",lP.default],["article",cP.default],["banner",pP.default],["blockquote",uP.default],["button",dP.default],["caption",fP.default],["cell",mP.default],["checkbox",hP.default],["code",_P.default],["columnheader",bP.default],["combobox",yP.default],["complementary",gP.default],["contentinfo",vP.default],["definition",wP.default],["deletion",xP.default],["dialog",kP.default],["directory",EP.default],["document",SP.default],["emphasis",CP.default],["feed",TP.default],["figure",PP.default],["form",AP.default],["generic",$P.default],["grid",RP.default],["gridcell",qP.default],["group",IP.default],["heading",NP.default],["img",MP.default],["insertion",LP.default],["link",OP.default],["list",DP.default],["listbox",BP.default],["listitem",jP.default],["log",FP.default],["main",UP.default],["mark",HP.default],["marquee",VP.default],["math",zP.default],["menu",WP.default],["menubar",GP.default],["menuitem",KP.default],["menuitemcheckbox",XP.default],["menuitemradio",JP.default],["meter",YP.default],["navigation",ZP.default],["none",QP.default],["note",eA.default],["option",tA.default],["paragraph",rA.default],["presentation",iA.default],["progressbar",sA.default],["radio",aA.default],["radiogroup",nA.default],["region",oA.default],["row",lA.default],["rowgroup",cA.default],["rowheader",pA.default],["scrollbar",uA.default],["search",dA.default],["searchbox",fA.default],["separator",mA.default],["slider",hA.default],["spinbutton",_A.default],["status",bA.default],["strong",yA.default],["subscript",gA.default],["superscript",vA.default],["switch",wA.default],["tab",xA.default],["table",kA.default],["tablist",EA.default],["tabpanel",SA.default],["term",CA.default],["textbox",TA.default],["time",PA.default],["timer",AA.default],["toolbar",$A.default],["tooltip",RA.default],["tree",qA.default],["treegrid",IA.default],["treeitem",NA.default]],U6=Eo.default=MA});var Pv=N(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.default=void 0;var LA={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"abstract [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},V6=So.default=LA});var Av=N(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.default=void 0;var OA={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"acknowledgments [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},W6=Co.default=OA});var $v=N(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.default=void 0;var DA={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"afterword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},K6=To.default=DA});var Rv=N(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.default=void 0;var BA={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"appendix [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},J6=Po.default=BA});var qv=N(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.default=void 0;var jA={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"referrer [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},Z6=Ao.default=jA});var Iv=N($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.default=void 0;var FA={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"EPUB biblioentry [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-bibliography"],requiredContextRole:["doc-bibliography"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]},e3=$o.default=FA});var Nv=N(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.default=void 0;var UA={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"bibliography [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-biblioentry"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r3=Ro.default=UA});var Mv=N(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.default=void 0;var HA={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"biblioref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},s3=qo.default=HA});var Lv=N(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.default=void 0;var VA={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"chapter [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},n3=Io.default=VA});var Ov=N(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.default=void 0;var zA={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"colophon [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},l3=No.default=zA});var Dv=N(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.default=void 0;var WA={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"conclusion [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},p3=Mo.default=WA});var Bv=N(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.default=void 0;var GA={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"cover [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]},d3=Lo.default=GA});var jv=N(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.default=void 0;var KA={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credit [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},m3=Oo.default=KA});var Fv=N(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.default=void 0;var XA={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credits [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},_3=Do.default=XA});var Uv=N(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.default=void 0;var JA={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"dedication [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},y3=Bo.default=JA});var Hv=N(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.default=void 0;var YA={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-endnotes"],requiredContextRole:["doc-endnotes"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]},v3=jo.default=YA});var Vv=N(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.default=void 0;var ZA={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnotes [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-endnote"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},x3=Fo.default=ZA});var zv=N(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.default=void 0;var QA={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epigraph [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},E3=Uo.default=QA});var Wv=N(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.default=void 0;var e$={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epilogue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},C3=Ho.default=e$});var Gv=N(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.default=void 0;var t$={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"errata [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},P3=Vo.default=t$});var Kv=N(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.default=void 0;var r$={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},$3=zo.default=r$});var Xv=N(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.default=void 0;var i$={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"footnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},q3=Wo.default=i$});var Jv=N(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.default=void 0;var s$={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"foreword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},N3=Go.default=s$});var Yv=N(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.default=void 0;var a$={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossary [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["definition"],["term"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},L3=Ko.default=a$});var Zv=N(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.default=void 0;var n$={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},D3=Xo.default=n$});var Qv=N(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.default=void 0;var o$={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"index [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]},j3=Jo.default=o$});var ew=N(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.default=void 0;var l$={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"introduction [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},U3=Yo.default=l$});var tw=N(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.default=void 0;var c$={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"noteref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},V3=Zo.default=c$});var rw=N(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.default=void 0;var p$={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"notice [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]},W3=Qo.default=p$});var iw=N(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});el.default=void 0;var u$={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"pagebreak [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","separator"]]},K3=el.default=u$});var sw=N(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});tl.default=void 0;var d$={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null,"aria-disabled":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},J3=tl.default=d$});var aw=N(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});rl.default=void 0;var f$={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null,"aria-disabled":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},Z3=rl.default=f$});var nw=N(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});il.default=void 0;var m$={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"page-list [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]},e7=il.default=m$});var ow=N(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});sl.default=void 0;var h$={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"part [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r7=sl.default=h$});var lw=N(al=>{"use strict";Object.defineProperty(al,"__esModule",{value:!0});al.default=void 0;var _$={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"preface [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},s7=al.default=_$});var cw=N(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});nl.default=void 0;var b$={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"prologue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},n7=nl.default=b$});var pw=N(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});ol.default=void 0;var y$={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"pullquote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["none"]]},l7=ol.default=y$});var uw=N(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});ll.default=void 0;var g$={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"qna [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},p7=ll.default=g$});var dw=N(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});cl.default=void 0;var v$={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"subtitle [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"]]},d7=cl.default=v$});var fw=N(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});pl.default=void 0;var w$={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"help [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]},m7=pl.default=w$});var mw=N(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});ul.default=void 0;var x$={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"toc [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]},_7=ul.default=x$});var hw=N(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});dl.default=void 0;var k$=de(Pv()),E$=de(Av()),S$=de($v()),C$=de(Rv()),T$=de(qv()),P$=de(Iv()),A$=de(Nv()),$$=de(Mv()),R$=de(Lv()),q$=de(Ov()),I$=de(Dv()),N$=de(Bv()),M$=de(jv()),L$=de(Fv()),O$=de(Uv()),D$=de(Hv()),B$=de(Vv()),j$=de(zv()),F$=de(Wv()),U$=de(Gv()),H$=de(Kv()),V$=de(Xv()),z$=de(Jv()),W$=de(Yv()),G$=de(Zv()),K$=de(Qv()),X$=de(ew()),J$=de(tw()),Y$=de(rw()),Z$=de(iw()),Q$=de(sw()),e8=de(aw()),t8=de(nw()),r8=de(ow()),i8=de(lw()),s8=de(cw()),a8=de(pw()),n8=de(uw()),o8=de(dw()),l8=de(fw()),c8=de(mw());function de(e){return e&&e.__esModule?e:{default:e}}var p8=[["doc-abstract",k$.default],["doc-acknowledgments",E$.default],["doc-afterword",S$.default],["doc-appendix",C$.default],["doc-backlink",T$.default],["doc-biblioentry",P$.default],["doc-bibliography",A$.default],["doc-biblioref",$$.default],["doc-chapter",R$.default],["doc-colophon",q$.default],["doc-conclusion",I$.default],["doc-cover",N$.default],["doc-credit",M$.default],["doc-credits",L$.default],["doc-dedication",O$.default],["doc-endnote",D$.default],["doc-endnotes",B$.default],["doc-epigraph",j$.default],["doc-epilogue",F$.default],["doc-errata",U$.default],["doc-example",H$.default],["doc-footnote",V$.default],["doc-foreword",z$.default],["doc-glossary",W$.default],["doc-glossref",G$.default],["doc-index",K$.default],["doc-introduction",X$.default],["doc-noteref",J$.default],["doc-notice",Y$.default],["doc-pagebreak",Z$.default],["doc-pagefooter",Q$.default],["doc-pageheader",e8.default],["doc-pagelist",t8.default],["doc-part",r8.default],["doc-preface",i8.default],["doc-prologue",s8.default],["doc-pullquote",a8.default],["doc-qna",n8.default],["doc-subtitle",o8.default],["doc-tip",l8.default],["doc-toc",c8.default]],y7=dl.default=p8});var _w=N(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});fl.default=void 0;var u8={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-object"}},{module:"ARIA",concept:{name:"img"}},{module:"ARIA",concept:{name:"article"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]},v7=fl.default=u8});var bw=N(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});ml.default=void 0;var d8={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-document"}},{module:"ARIA",concept:{name:"group"}},{module:"ARIA",concept:{name:"img"}},{module:"GRAPHICS",concept:{name:"graphics-symbol"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]},x7=ml.default=d8});var yw=N(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});hl.default=void 0;var f8={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]},E7=hl.default=f8});var gw=N(_l=>{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});_l.default=void 0;var m8=Qp(_w()),h8=Qp(bw()),_8=Qp(yw());function Qp(e){return e&&e.__esModule?e:{default:e}}var b8=[["graphics-document",m8.default],["graphics-object",h8.default],["graphics-symbol",_8.default]],C7=_l.default=b8});var yl=N(bl=>{"use strict";function ks(e){"@babel/helpers - typeof";return ks=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ks(e)}Object.defineProperty(bl,"__esModule",{value:!0});bl.default=void 0;var y8=Es(Yy()),g8=Es(Tv()),v8=Es(hw()),w8=Es(gw()),x8=Es(Ii());function Es(e){return e&&e.__esModule?e:{default:e}}function k8(e,t,r){return(t=E8(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E8(e){var t=S8(e,"string");return ks(t)=="symbol"?t:t+""}function S8(e,t){if(ks(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(ks(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function eu(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=ww(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var i=0,s=function(){};return{s,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(d){throw d},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
5
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,n=!0,p=!1;return{s:function(){r=r.call(e)},n:function(){var d=r.next();return n=d.done,d},e:function(d){p=!0,a=d},f:function(){try{n||r.return==null||r.return()}finally{if(p)throw a}}}}function xs(e,t){return P8(e)||T8(e,t)||ww(e,t)||C8()}function C8(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
6
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ww(e,t){if(e){if(typeof e=="string")return vw(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?vw(e,t):void 0}}function vw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function T8(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,s,a,n,p=[],u=!0,d=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(i=a.call(r)).done)&&(p.push(i.value),p.length!==t);u=!0);}catch(m){d=!0,s=m}finally{try{if(!u&&r.return!=null&&(n=r.return(),Object(n)!==n))return}finally{if(d)throw s}}return p}}function P8(e){if(Array.isArray(e))return e}var Tr=[].concat(y8.default,g8.default,v8.default,w8.default);Tr.forEach(function(e){var t=xs(e,2),r=t[1],i=eu(r.superClass),s;try{for(i.s();!(s=i.n()).done;){var a=s.value,n=eu(a),p;try{var u=function(){var m=p.value,h=Tr.find(function(o){var g=xs(o,1),k=g[0];return k===m});if(h)for(var _=h[1],v=0,E=Object.keys(_.props);v<E.length;v++){var l=E[v];Object.prototype.hasOwnProperty.call(r.props,l)||Object.assign(r.props,k8({},l,_.props[l]))}};for(n.s();!(p=n.n()).done;)u()}catch(d){n.e(d)}finally{n.f()}}}catch(d){i.e(d)}finally{i.f()}});var tu={entries:function(){return Tr},forEach:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,i=eu(Tr),s;try{for(i.s();!(s=i.n()).done;){var a=xs(s.value,2),n=a[0],p=a[1];t.call(r,p,n,Tr)}}catch(u){i.e(u)}finally{i.f()}},get:function(t){var r=Tr.find(function(i){return i[0]===t});return r&&r[1]},has:function(t){return!!tu.get(t)},keys:function(){return Tr.map(function(t){var r=xs(t,1),i=r[0];return i})},values:function(){return Tr.map(function(t){var r=xs(t,2),i=r[1];return i})}},P7=bl.default=(0,x8.default)(tu,tu.entries())});var Tw=N(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});kl.default=void 0;var A8=Sw(Ii()),Ew=Sw(yl());function Sw(e){return e&&e.__esModule?e:{default:e}}function ru(e,t){return I8(e)||q8(e,t)||R8(e,t)||$8()}function $8(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
7
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function R8(e,t){if(e){if(typeof e=="string")return xw(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?xw(e,t):void 0}}function xw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function q8(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,s,a,n,p=[],u=!0,d=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(i=a.call(r)).done)&&(p.push(i.value),p.length!==t);u=!0);}catch(m){d=!0,s=m}finally{try{if(!u&&r.return!=null&&(n=r.return(),Object(n)!==n))return}finally{if(d)throw s}}return p}}function I8(e){if(Array.isArray(e))return e}var Pr=[],kw=Ew.default.keys();for(gl=0;gl<kw.length;gl++)if(vl=kw[gl],wl=Ew.default.get(vl),wl)for(iu=[].concat(wl.baseConcepts,wl.relatedConcepts),xl=0;xl<iu.length;xl++)su=iu[xl],su.module==="HTML"&&(function(){var e=su.concept;if(e){var t=Pr.find(function(a){return N8(a[0],e)}),r;t?r=t[1]:r=[];for(var i=!0,s=0;s<r.length;s++)if(r[s]===vl){i=!1;break}i&&r.push(vl),t||Pr.push([e,r])}})();var vl,wl,iu,su,xl,gl,au={entries:function(){return Pr},forEach:function(t){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,i=0,s=Pr;i<s.length;i++){var a=ru(s[i],2),n=a[0],p=a[1];t.call(r,p,n,Pr)}},get:function(t){var r=Pr.find(function(i){return t.name===i[0].name&&Cw(t.attributes,i[0].attributes)});return r&&r[1]},has:function(t){return!!au.get(t)},keys:function(){return Pr.map(function(t){var r=ru(t,1),i=r[0];return i})},values:function(){return Pr.map(function(t){var r=ru(t,2),i=r[1];return i})}};function N8(e,t){return e.name===t.name&&M8(e.constraints,t.constraints)&&Cw(e.attributes,t.attributes)}function M8(e,t){if(e===void 0&&t!==void 0||e!==void 0&&t===void 0)return!1;if(e!==void 0&&t!==void 0){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1}return!0}function Cw(e,t){if(e===void 0&&t!==void 0||e!==void 0&&t===void 0)return!1;if(e!==void 0&&t!==void 0){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++){if(e[r].name!==t[r].name||e[r].value!==t[r].value||e[r].constraints===void 0&&t[r].constraints!==void 0||e[r].constraints!==void 0&&t[r].constraints===void 0)return!1;if(e[r].constraints!==void 0&&t[r].constraints!==void 0){if(e[r].constraints.length!==t[r].constraints.length)return!1;for(var i=0;i<e[r].constraints.length;i++)if(e[r].constraints[i]!==t[r].constraints[i])return!1}}}return!0}var $7=kl.default=(0,A8.default)(au,au.entries())});var qw=N(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});Pl.default=void 0;var L8=Rw(Ii()),$w=Rw(yl());function Rw(e){return e&&e.__esModule?e:{default:e}}function nu(e,t){return j8(e)||B8(e,t)||D8(e,t)||O8()}function O8(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
8
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D8(e,t){if(e){if(typeof e=="string")return Pw(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Pw(e,t):void 0}}function Pw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function B8(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,s,a,n,p=[],u=!0,d=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(i=a.call(r)).done)&&(p.push(i.value),p.length!==t);u=!0);}catch(m){d=!0,s=m}finally{try{if(!u&&r.return!=null&&(n=r.return(),Object(n)!==n))return}finally{if(d)throw s}}return p}}function j8(e){if(Array.isArray(e))return e}var Qr=[],Aw=$w.default.keys();for(El=0;El<Aw.length;El++)if(ou=Aw[El],Sl=$w.default.get(ou),Cl=[],Sl){for(lu=[].concat(Sl.baseConcepts,Sl.relatedConcepts),Tl=0;Tl<lu.length;Tl++)cu=lu[Tl],cu.module==="HTML"&&(pu=cu.concept,pu!=null&&Cl.push(pu));Cl.length>0&&Qr.push([ou,Cl])}var ou,Sl,Cl,lu,cu,pu,Tl,El,uu={entries:function(){return Qr},forEach:function(t){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,i=0,s=Qr;i<s.length;i++){var a=nu(s[i],2),n=a[0],p=a[1];t.call(r,p,n,Qr)}},get:function(t){var r=Qr.find(function(i){return i[0]===t});return r&&r[1]},has:function(t){return!!uu.get(t)},keys:function(){return Qr.map(function(t){var r=nu(t,1),i=r[0];return i})},values:function(){return Qr.map(function(t){var r=nu(t,2),i=r[1];return i})}},q7=Pl.default=(0,L8.default)(uu,uu.entries())});var du=N(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.roles=_t.roleElements=_t.elementRoles=_t.dom=_t.aria=void 0;var F8=Ss(Ly()),U8=Ss(Dy()),H8=Ss(yl()),V8=Ss(Tw()),z8=Ss(qw());function Ss(e){return e&&e.__esModule?e:{default:e}}var N7=_t.aria=F8.default,M7=_t.dom=U8.default,L7=_t.roles=H8.default,O7=_t.elementRoles=V8.default,D7=_t.roleElements=z8.default});function re(e,t,r){let i=r._,s=!1,a=()=>{s=!0};function n(u,d,m){let h=null;d.push(u);for(let _ in u){if(_==="type"||_==="__proto__")continue;let v=u[_];if(v&&typeof v=="object")if(Array.isArray(v)){let E=null,l=v.length;for(let o=0;o<l;o++){let g=v[o];if(g&&typeof g=="object"){let k=p(g,d,m);k&&((E??=v.slice())[o]=k)}}E&&((h??={})[_]=E)}else{let E=p(v,d,m);E&&((h??={})[_]=E)}}if(d.pop(),h)return yk(u,h)}function p(u,d,m){if(s||!u.type)return;let h=r[u.type];if(!i&&!h)return n(u,d,m);let _,v,E=(o=m)=>v=n(u,d,o),l=(o,g=m)=>{d.push(u);let k=p(o,d,g)??o;return d.pop(),k};if(i){let o;_=i(u,{path:d,state:m,next:(g=m)=>(m=g,o=h?h(u,{path:d,state:g,next:E,stop:a,visit:l}):E(g),o),stop:a,visit:l}),!_&&o&&(_=o)}else _=h(u,{path:d,state:m,next:E,stop:a,visit:l});if(!_&&v&&(_=v),_)return _}return p(e,[],t)??e}function yk(e,t){let r={},i=Object.getOwnPropertyDescriptors(e);for(let s in i)Object.defineProperty(r,s,i[s]);for(let s in t)r[s]=t[s];return r}var gc=/\s+/,Lr=/^\r?\n/,hd=/^\s/,Or=/^[ \t\r\n]+/,vc=/\s$/,pr=/[ \t\r\n]+$/,Ot=/[^ \t\r\n]/,Xi=/[ \t\n\r\f]+/g,_d=/^[ \t\n\r\f]+$/,bd=/[^\n]/g,Ji=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/,yd=/(^[^a-zA-Z_$]|[^a-zA-Z0-9_$])/g,gd=/^[aeiou]/,vd=/^h[1-6]$/,wd=/(^[0-9-.])|[\^$@%&#?!|()[\]{}^*+~;]/,Dr=/[\u202a\u202b\u202c\u202d\u202e\u2066\u2067\u2068\u2069]+/g,xd=/^\W*javascript:/i,kd=/\b(image|picture|photo)\b/i;var Bs="http://www.w3.org/2000/svg",js="http://www.w3.org/1998/Math/MathML",Ed=["await_waterfall","await_reactivity_loss","state_snapshot_uncloneable","binding_property_non_reactive","hydration_attribute_changed","hydration_html_changed","ownership_invalid_binding","ownership_invalid_mutation"];function ur(e,t){if(t.length===0)return null;let i=new kc(t).get(e);return i&&i[0][0]>.7?i[0][1]:null}var wc=2,xc=3;function gk(e,t){if(e===null&&t===null)throw"Trying to compare two null values";return e===null||t===null?0:(e=String(e),t=String(t),1-vk(e,t)/Math.max(e.length,t.length))}function vk(e,t){let r=[],i=0;for(let s=0;s<=t.length;s++)for(let a=0;a<=e.length;a++){let n;s&&a?e.charAt(a-1)===t.charAt(s-1)?n=i:n=Math.min(r[a],r[a-1],i)+1:n=s+a,i=r[a],r[a]=n}return r.pop()}var wk=/[^\w, ]+/;function xk(e,t=2){let r="-"+e.toLowerCase().replace(wk,"")+"-",i=t-r.length,s=[];if(i>0)for(let a=0;a<i;++a)e+="-";for(let a=0;a<r.length-t+1;++a)s.push(r.slice(a,a+t));return s}function Sd(e,t=2){let r={},i=xk(e,t),s=0;for(s;s<i.length;++s)i[s]in r?r[i[s]]+=1:r[i[s]]=1;return r}function Cd(e,t){return t[0]-e[0]}var kc=class{exact_set={};match_dict={};items={};constructor(t){for(let r=wc;r<xc+1;++r)this.items[r]=[];for(let r=0;r<t.length;++r)this.add(t[r])}add(t){if(t.toLowerCase()in this.exact_set)return!1;let i=wc;for(i;i<xc+1;++i)this._add(t,i)}_add(t,r){let i=t.toLowerCase(),s=this.items[r]||[],a=s.length;s.push(0);let n=Sd(i,r),p=0,u,d;for(u in n)d=n[u],p+=Math.pow(d,2),u in this.match_dict?this.match_dict[u].push([a,d]):this.match_dict[u]=[[a,d]];let m=Math.sqrt(p);s[a]=[m,i],this.items[r]=s,this.exact_set[i]=t}get(t){let r=t.toLowerCase(),i=this.exact_set[r];if(i)return[[1,i]];for(let s=xc;s>=wc;--s){let a=this.__get(t,s);if(a.length>0)return a}return null}__get(t,r){let i=t.toLowerCase(),s={},a=Sd(i,r),n=this.items[r],p=0,u,d,m,h,_;for(u in a)if(d=a[u],p+=Math.pow(d,2),u in this.match_dict)for(m=0;m<this.match_dict[u].length;++m)h=this.match_dict[u][m][0],_=this.match_dict[u][m][1],h in s?s[h]+=d*_:s[h]=d*_;let v=Math.sqrt(p),E=[],l;for(let k in s)l=s[k],E.push([l/(v*n[k][0]),n[k][1]]);E.sort(Cd);let o=[],g=Math.min(50,E.length);for(let k=0;k<g;++k)o.push([gk(E[k][1],i),E[k][1]]);E=o,E.sort(Cd),o=[];for(let k=0;k<E.length;++k)E[k][0]===E[0][0]&&o.push([E[k][0],this.exact_set[E[k][1]]]);return o}};function kk(e,t){return e.start<=t&&t<e.end}function Ec(e,t={}){let{offsetLine:r=0,offsetColumn:i=0}=t,s=0,a=e.split(`
|
|
9
|
+
`).map((u,d)=>{let m=s+u.length+1,h={start:s,end:m,line:d};return s=m,h}),n=0;function p(u,d){if(typeof u=="string"&&(u=e.indexOf(u,d??0)),u===-1)return;let m=a[n],h=u>=m.end?1:-1;for(;m;){if(kk(m,u))return{line:r+m.line,column:i+u-m.start,character:u};n+=h,m=a[n]}}return p}var Ek=/\r/g;function li(e){e=e.replace(Ek,"");let t=5381,r=e.length;for(;r--;)t=(t<<5)-t^e.charCodeAt(r);return(t>>>0).toString(36)}var Sk=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function vt(e){return Sk.includes(e)||e.toLowerCase()==="!doctype"}var Ck=["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"];function Br(e){return Ck.includes(e)}function Td(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}var Tk=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Pd(e){return Tk.includes(e)}var Ad=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];function Sc(e){return Ad.includes(e)}var Pk={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function Cc(e){return e=e.toLowerCase(),Pk[e]??e}var Ak=[...Ad,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];function $d(e){return Ak.includes(e)}var $k=["autofocus","muted","defaultValue","defaultChecked"];function ci(e){return $k.includes(e)}var Rk=["touchstart","touchmove"];function Rd(e){return Rk.includes(e)}var qk=["textContent","innerHTML","innerText"];function pi(e){return qk.includes(e)}var Ik=["body","embed","iframe","img","link","object","script","style","track"];function ui(e){return Ik.includes(e)}var Nk=["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","discard","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hatch","hatchpath","hkern","image","line","linearGradient","marker","mask","mesh","meshgradient","meshpatch","meshrow","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","solidcolor","stop","svg","switch","symbol","text","textPath","tref","tspan","unknown","use","view","vkern"];function di(e){return Nk.includes(e)}var Mk=["annotation","annotation-xml","maction","math","merror","mfrac","mi","mmultiscripts","mn","mo","mover","mpadded","mphantom","mprescripts","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msubsup","msup","mtable","mtd","mtext","mtr","munder","munderover","semantics"];function Tc(e){return Mk.includes(e)}var qd=["$state","$state.raw","$derived","$derived.by"],Lk=[...qd,"$state.eager","$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$effect.pending","$inspect","$inspect().with","$inspect.trace","$host"];function Dt(e){return Lk.includes(e)}function Id(e){return qd.includes(e)}var Nd=/^[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;function Md(e){return e?.replace(/\//g,"/\u200B")}var hi=[],$e,Kt="(unknown)",fr="<unknown>",mi,Pc;function Ld(){return Pc??=mi.split(`
|
|
10
|
+
`)}var F,Fs=!1,_e;function Us(e){mi=e,Pc=void 0;let t=Ec(mi,{offsetLine:1});_e=r=>{let i=t(r);if(!i)throw new Error("An impossible situation occurred");return i}}function jr(e){let t=_e(e.start);return`${Md($e)}:${t?.line}:${t.column}`}var Ac,dr=[],Xt=new Map,fi=null;function Od(){return fi===null&&(fi=dr.map(e=>new Set(e))),fi}function Dd(e){let t=new Set([...dr.at(-1)||[],...e]);dr.push(t),fi=null}function Bd(){dr.pop(),fi=null}function Ce(e,t){return F&&!!Xt.get(e)?.some(r=>r.has(t))}function $c(e){F=!1,Fs=!1,fr=Kt,mi="",Pc=void 0,$e=(e.filename??Kt).replace(/\\/g,"/"),Ac=e.warning??(()=>!0),hi=[]}function jd(e){let t=e.rootDir?.replace(/\\/g,"/");F=e.dev,Fs=e.runes,fr=e.component_name??Kt,typeof t=="string"&&$e.startsWith(t)&&($e=$e.replace(t,"").replace(/^[/\\]/,"")),dr=[],Xt.clear(),fi=null}var Ok=/^\t+/;function Rc(e){return e.replace(Ok,t=>t.split(" ").join(" "))}function Dk(e,t){let r=Ld(),i=Math.max(0,e-2),s=Math.min(e+3,r.length),a=String(s+1).length;return r.slice(i,s).map((n,p)=>{let u=i+p===e,d=String(p+i+1).padStart(a," ");if(u){let m=" ".repeat(a+2+Rc(n.slice(0,t)).length)+"^";return`${d}: ${Rc(n)}
|
|
11
11
|
${m}`}return`${d}: ${Rc(n)}`}).join(`
|
|
12
|
-
`)}var _i=class{name="CompileDiagnostic";constructor(t,r,i){this.code=t,this.message=r,$e!==Kt&&(this.filename=$e),i&&(this.position=i,this.start=_e(i[0]),this.end=_e(i[1]),this.start&&this.end&&(this.frame=
|
|
12
|
+
`)}var _i=class{name="CompileDiagnostic";constructor(t,r,i){this.code=t,this.message=r,$e!==Kt&&(this.filename=$e),i&&(this.position=i,this.start=_e(i[0]),this.end=_e(i[1]),this.start&&this.end&&(this.frame=Dk(this.start.line-1,this.end.column)))}toString(){let t=`${this.code}: ${this.message}`;return this.filename&&(t+=`
|
|
13
13
|
${this.filename}`,this.start&&(t+=`:${this.start.line}:${this.start.column}`)),this.frame&&(t+=`
|
|
14
14
|
${this.frame}`),t}toJSON(){return{code:this.code,message:this.message,filename:this.filename,start:this.start,end:this.end,position:this.position,frame:this.frame}}};var qc=class extends _i{name="CompileWarning";constructor(t,r,i){super(t,r,i)}};function K(e,t,r){let i=dr;if(e&&(i=Xt.get(e)??dr),i&&i.at(-1)?.has(t))return;let s=new qc(t,r,e&&e.start!==void 0?[e.start,e.end??e.start]:void 0);Ac(s)&&hi.push(s)}var Fd=["a11y_accesskey","a11y_aria_activedescendant_has_tabindex","a11y_aria_attributes","a11y_autocomplete_valid","a11y_autofocus","a11y_click_events_have_key_events","a11y_consider_explicit_label","a11y_distracting_elements","a11y_figcaption_index","a11y_figcaption_parent","a11y_hidden","a11y_img_redundant_alt","a11y_incorrect_aria_attribute_type","a11y_incorrect_aria_attribute_type_boolean","a11y_incorrect_aria_attribute_type_id","a11y_incorrect_aria_attribute_type_idlist","a11y_incorrect_aria_attribute_type_integer","a11y_incorrect_aria_attribute_type_token","a11y_incorrect_aria_attribute_type_tokenlist","a11y_incorrect_aria_attribute_type_tristate","a11y_interactive_supports_focus","a11y_invalid_attribute","a11y_label_has_associated_control","a11y_media_has_caption","a11y_misplaced_role","a11y_misplaced_scope","a11y_missing_attribute","a11y_missing_content","a11y_mouse_events_have_key_events","a11y_no_abstract_role","a11y_no_interactive_element_to_noninteractive_role","a11y_no_noninteractive_element_interactions","a11y_no_noninteractive_element_to_interactive_role","a11y_no_noninteractive_tabindex","a11y_no_redundant_roles","a11y_no_static_element_interactions","a11y_positive_tabindex","a11y_role_has_required_aria_props","a11y_role_supports_aria_props","a11y_role_supports_aria_props_implicit","a11y_unknown_aria_attribute","a11y_unknown_role","bidirectional_control_characters","legacy_code","unknown_code","options_deprecated_accessors","options_deprecated_immutable","options_missing_custom_element","options_removed_enable_sourcemap","options_removed_hydratable","options_removed_loop_guard_timeout","options_renamed_ssr_dom","custom_element_props_identifier","export_let_unused","legacy_component_creation","non_reactive_update","perf_avoid_inline_class","perf_avoid_nested_class","reactive_declaration_invalid_placement","reactive_declaration_module_script_dependency","state_referenced_locally","store_rune_conflict","css_unused_selector","attribute_avoid_is","attribute_global_event_reference","attribute_illegal_colon","attribute_invalid_property_name","attribute_quoted","bind_invalid_each_rest","block_empty","component_name_lowercase","element_implicitly_closed","element_invalid_self_closing_tag","event_directive_deprecated","node_invalid_placement_ssr","script_context_deprecated","script_unknown_attribute","slot_element_deprecated","svelte_component_deprecated","svelte_element_invalid_this","svelte_self_deprecated"];function Ud(e){K(e,"a11y_accesskey",`Avoid using accesskey
|
|
15
15
|
https://svelte.dev/e/a11y_accesskey`)}function Hd(e){K(e,"a11y_aria_activedescendant_has_tabindex",`An element with an aria-activedescendant attribute should have a tabindex value
|
|
@@ -71,9 +71,9 @@ https://svelte.dev/e/element_implicitly_closed`)}function Zf(e,t){K(e,"element_i
|
|
|
71
71
|
https://svelte.dev/e/element_invalid_self_closing_tag`)}function Qf(e,t){K(e,"event_directive_deprecated",`Using \`on:${t}\` to listen to the ${t} event is deprecated. Use the event attribute \`on${t}\` instead
|
|
72
72
|
https://svelte.dev/e/event_directive_deprecated`)}function Dc(e,t){K(e,"node_invalid_placement_ssr",`${t}. When rendering this component on the server, the resulting HTML will be modified by the browser (by moving, removing, or inserting elements), likely resulting in a \`hydration_mismatch\` warning
|
|
73
73
|
https://svelte.dev/e/node_invalid_placement_ssr`)}function em(e){K(e,"script_context_deprecated",'`context="module"` is deprecated, use the `module` attribute instead\nhttps://svelte.dev/e/script_context_deprecated')}function tm(e){K(e,"script_unknown_attribute","Unrecognised attribute \u2014 should be one of `generics`, `lang` or `module`. If this exists for a preprocessor, ensure that the preprocessor removes it\nhttps://svelte.dev/e/script_unknown_attribute")}function rm(e){K(e,"slot_element_deprecated","Using `<slot>` to render parent content is deprecated. Use `{@render ...}` tags instead\nhttps://svelte.dev/e/slot_element_deprecated")}function im(e){K(e,"svelte_component_deprecated","`<svelte:component>` is deprecated in runes mode \u2014 components are dynamic by default\nhttps://svelte.dev/e/svelte_component_deprecated")}function sm(e){K(e,"svelte_element_invalid_this","`this` should be an `{expression}`. Using a string attribute value will cause an error in future versions of Svelte\nhttps://svelte.dev/e/svelte_element_invalid_this")}function am(e,t,r){K(e,"svelte_self_deprecated",`\`<svelte:self>\` is deprecated \u2014 use self-imports (e.g. \`import ${t} from './${r}'\`) instead
|
|
74
|
-
https://svelte.dev/e/svelte_self_deprecated`)}var Dk=/^\s*svelte-ignore\s/,nm={"non-top-level-reactive-declaration":"reactive_declaration_invalid_placement","module-script-reactive-declaration":"reactive_declaration_module_script","empty-block":"block_empty","avoid-is":"attribute_avoid_is","invalid-html-attribute":"attribute_invalid_property_name","a11y-structure":"a11y_figcaption_parent","illegal-attribute-character":"attribute_illegal_colon","invalid-rest-eachblock-binding":"bind_invalid_each_rest","unused-export-let":"export_let_unused"},Zi=Fd.concat(Ed);function mr(e,t,r){let i=Dk.exec(t);if(!i)return[];let s=i[0].length;e+=s;let a=[];if(r)for(let n of t.slice(s).matchAll(/([\w$-]+)(,)?/gm)){let p=n[1];if(Zi.includes(p))a.push(p);else{let u=nm[p]??p.replace(/-/g,"_"),d=e+n.index,m=d+p.length;if(Zi.includes(u))Tf({start:d,end:m},p,u);else{let h=ur(p,Zi);Pf({start:d,end:m},p,h)}}if(!n[2])break}else for(let n of t.slice(s).matchAll(/[\w$-]+/gm)){let p=n[0];if(a.push(p),!Zi.includes(p)){let u=nm[p]??p.replace(/-/g,"_");Zi.includes(u)&&a.push(u)}}return a}function Fr(e){let t=e.at(0),r=e.at(-1);t?.type==="Text"&&(Ot.test(t.data)?t.data=t.data.replace(Or,""):e.shift()),r?.type==="Text"&&(Ot.test(r.data)?r.data=r.data.replace(pr,""):e.pop())}function om(e,t){return re(t,null,{_(i,{next:s}){delete i.metadata,s()},Root(i,{visit:s}){let{instance:a,module:n,options:p}=i;if(p?.__raw__){let m=i.fragment.nodes.findIndex(h=>p.end<=h.start);m===-1&&(m=i.fragment.nodes.length),i.fragment.nodes.splice(m,0,p.__raw__)}let u=null,d=null;if(i.fragment.nodes.length>0){let m=i.fragment.nodes.at(0),h=i.fragment.nodes.at(-1);for(u=m.start,d=h.end;/\s/.test(e[u]);)u+=1;for(;/\s/.test(e[d-1]);)d-=1}return a&&delete a.attributes,n&&delete n.attributes,{html:{type:"Fragment",start:u,end:d,children:i.fragment.nodes.map(m=>s(m))},instance:a,module:n,css:t.css?s(t.css):void 0,_comments:t.comments?.length>0?t.comments:void 0}},AnimateDirective(i){return{...i,type:"Animation"}},AwaitBlock(i,{visit:s}){let a={type:"PendingBlock",start:null,end:null,children:i.pending?.nodes.map(u=>s(u))??[],skip:!0},n={type:"ThenBlock",start:null,end:null,children:i.then?.nodes.map(u=>s(u))??[],skip:!0},p={type:"CatchBlock",start:null,end:null,children:i.catch?.nodes.map(u=>s(u))??[],skip:!0};if(i.pending){let u=i.pending.nodes.at(0),d=i.pending.nodes.at(-1);a.start=u?.start??e.indexOf("}",i.expression.end)+1,a.end=d?.end??a.start,a.skip=!1}if(i.then){let u=i.then.nodes.at(0),d=i.then.nodes.at(-1);n.start=a.end??u?.start??e.indexOf("}",i.expression.end)+1,n.end=d?.end??e.lastIndexOf("}",a.end??i.expression.end)+1,n.skip=!1}if(i.catch){let u=i.catch.nodes.at(0),d=i.catch.nodes.at(-1);p.start=n.end??a.end??u?.start??e.indexOf("}",i.expression.end)+1,p.end=d?.end??e.lastIndexOf("}",n.end??a.end??i.expression.end)+1,p.skip=!1}return{type:"AwaitBlock",start:i.start,end:i.end,expression:i.expression,value:i.value,error:i.error,pending:a,then:n,catch:p}},BindDirective(i){return{...i,type:"Binding"}},ClassDirective(i){return{...i,type:"Class"}},Comment(i){return{...i,ignores:mr(i.start,i.data,!1)}},ComplexSelector(i,{next:s}){s();let a=[];for(let n of i.children)n.combinator&&a.push(n.combinator),a.push(...n.selectors);return{type:"Selector",start:i.start,end:i.end,children:a}},Component(i,{visit:s}){return{type:"InlineComponent",start:i.start,end:i.end,name:i.name,attributes:i.attributes.map(a=>s(a)),children:i.fragment.nodes.map(a=>s(a))}},ConstTag(i){if(i.expression!==void 0)return i;let s=i,{id:a}={...s.declaration.declarations[0]};return delete a.typeAnnotation,{type:"ConstTag",start:s.start,end:i.end,expression:{type:"AssignmentExpression",start:(s.declaration.start??0)+6,end:s.declaration.end??0,operator:"=",left:a,right:s.declaration.declarations[0].init}}},DeclarationTag(i){return i},KeyBlock(i,{visit:s}){return Fr(i.fragment.nodes),{type:"KeyBlock",start:i.start,end:i.end,expression:i.expression,children:i.fragment.nodes.map(a=>s(a))}},EachBlock(i,{visit:s}){let a;if(i.fallback){let n=i.fallback.nodes.at(0),p=e.lastIndexOf("{",i.end-1),u=n?.start??p;Fr(i.fallback.nodes),a={type:"ElseBlock",start:u,end:p,children:i.fallback.nodes.map(d=>s(d))}}return Fr(i.body.nodes),{type:"EachBlock",start:i.start,end:i.end,children:i.body.nodes.map(n=>s(n)),context:i.context,expression:i.expression,index:i.index,key:i.key,else:a}},ExpressionTag(i,{path:s}){let a=s.at(-1);return a?.type==="Attribute"&&e[a.start]==="{"?{type:"AttributeShorthand",start:i.start,end:i.end,expression:i.expression}:{type:"MustacheTag",start:i.start,end:i.end,expression:i.expression}},HtmlTag(i){return{...i,type:"RawMustacheTag"}},IfBlock(i,{visit:s}){let a;if(i.alternate){let p=i.alternate.nodes;p.length===1&&p[0].type==="IfBlock"&&p[0].elseif&&(p=p[0].consequent.nodes);let u=e.lastIndexOf("{",i.end-1),d=p.at(0)?.start??u;Fr(i.alternate.nodes),a={type:"ElseBlock",start:d,end:u,children:i.alternate.nodes.map(m=>s(m))}}let n=i.elseif?i.consequent.nodes[0]?.start??e.lastIndexOf("{",i.end-1):i.start;return Fr(i.consequent.nodes),{type:"IfBlock",start:n,end:i.end,expression:i.test,children:i.consequent.nodes.map(p=>s(p)),else:a,elseif:i.elseif?!0:void 0}},OnDirective(i){return{...i,type:"EventHandler"}},SnippetBlock(i,{visit:s}){return Fr(i.body.nodes),{type:"SnippetBlock",start:i.start,end:i.end,expression:i.expression,parameters:i.parameters,children:i.body.nodes.map(a=>s(a)),typeParams:i.typeParams}},SvelteBoundary(i,{visit:s}){return Fr(i.fragment.nodes),{type:"SvelteBoundary",name:"svelte:boundary",start:i.start,end:i.end,attributes:i.attributes.map(a=>s(a)),children:i.fragment.nodes.map(a=>s(a))}},RegularElement(i,{visit:s}){return{type:"Element",start:i.start,end:i.end,name:i.name,attributes:i.attributes.map(a=>s(a)),children:i.fragment.nodes.map(a=>s(a))}},SlotElement(i,{visit:s}){return{type:"Slot",start:i.start,end:i.end,name:i.name,attributes:i.attributes.map(a=>s(a)),children:i.fragment.nodes.map(a=>s(a))}},Attribute(i,{visit:s,next:a,path:n}){if(i.value!==!0&&!Array.isArray(i.value)){n.push(i);let p=[s(i.value)];return n.pop(),{...i,value:p}}else return a()},StyleDirective(i,{visit:s,next:a,path:n}){if(i.value!==!0&&!Array.isArray(i.value)){n.push(i);let p=[s(i.value)];return n.pop(),{...i,value:p}}else return a()},SpreadAttribute(i){return{...i,type:"Spread"}},StyleSheet(i,s){return{...i,...s.next(),type:"Style"}},SvelteBody(i,{visit:s}){return{type:"Body",name:"svelte:body",start:i.start,end:i.end,attributes:i.attributes.map(a=>s(a)),children:i.fragment.nodes.map(a=>s(a))}},SvelteComponent(i,{visit:s}){return{type:"InlineComponent",name:"svelte:component",start:i.start,end:i.end,expression:i.expression,attributes:i.attributes.map(a=>s(a)),children:i.fragment.nodes.map(a=>s(a))}},SvelteDocument(i,{visit:s}){return{type:"Document",name:"svelte:document",start:i.start,end:i.end,attributes:i.attributes.map(a=>s(a)),children:i.fragment.nodes.map(a=>s(a))}},SvelteElement(i,{visit:s}){let a=i.tag;return a.type==="Literal"&&typeof a.value=="string"&&e[i.tag.start-1]!=="{"&&(a=a.value),{type:"Element",name:"svelte:element",start:i.start,end:i.end,tag:a,attributes:i.attributes.map(n=>s(n)),children:i.fragment.nodes.map(n=>s(n))}},SvelteFragment(i,{visit:s}){return{type:"SlotTemplate",name:"svelte:fragment",start:i.start,end:i.end,attributes:i.attributes.map(a=>s(a)),children:i.fragment.nodes.map(a=>s(a))}},SvelteHead(i,{visit:s}){return{type:"Head",name:"svelte:head",start:i.start,end:i.end,attributes:i.attributes.map(a=>s(a)),children:i.fragment.nodes.map(a=>s(a))}},SvelteOptions(i,{visit:s}){return{type:"Options",name:"svelte:options",start:i.start,end:i.end,attributes:i.attributes.map(a=>s(a))}},SvelteSelf(i,{visit:s}){return{type:"InlineComponent",name:"svelte:self",start:i.start,end:i.end,attributes:i.attributes.map(a=>s(a)),children:i.fragment.nodes.map(a=>s(a))}},SvelteWindow(i,{visit:s}){return{type:"Window",name:"svelte:window",start:i.start,end:i.end,attributes:i.attributes.map(a=>s(a)),children:i.fragment.nodes.map(a=>s(a))}},Text(i,{path:s}){let a=s.at(-1);if(a?.type==="RegularElement"&&a.name==="style")return{type:"Text",start:i.start,end:i.end,data:i.data}},TitleElement(i,{visit:s}){return{type:"Title",name:"title",start:i.start,end:i.end,attributes:i.attributes.map(a=>s(a)),children:i.fragment.nodes.map(a=>s(a))}},TransitionDirective(i){return{...i,type:"Transition"}},UseDirective(i){return{...i,type:"Action"}},LetDirective(i){return{...i,type:"Let"}}})}var ot=!0,Bk=new WeakMap;function jk(e){let t=e.Parser.acorn||e,r=Bk.get(t);if(!r){let p=function(P){return P===v.name||P===v.string||P===v.num||l.includes(P)||g.includes(P)},u=function(P){return P===v.name||l.includes(P)||g.includes(P)},d=function(P){return P===v.name||g.includes(P)},m=function(P){return P===o.abstract||P===o.declare||P===o.enum||P===o.module||P===o.namespace||P===o.interface||P===o.type},h=function(P){return P===o.keyof||P===o.readonly||P===o.unique},_=function(P){return P===v.invalidTemplate},{tokTypes:v,keywordTypes:E}=t,l=Object.values(E),o=n(),g=Object.values(o),k=a(),S=s(),C=new RegExp(`^(?:${Object.keys(o).join("|")})$`);k.jsxTagStart.updateContext=function(){this.context.push(S.tc_expr),this.context.push(S.tc_oTag),this.exprAllowed=!1},k.jsxTagEnd.updateContext=function(P){let R=this.context.pop();R===S.tc_oTag&&P===v.slash||R===S.tc_cTag?(this.context.pop(),this.exprAllowed=this.curContext()===S.tc_expr):this.exprAllowed=!0},r={tokTypes:{...o,...k},tokContexts:{...S},keywordsRegExp:C,tokenIsLiteralPropertyName:p,tokenIsKeywordOrIdentifier:u,tokenIsIdentifier:d,tokenIsTSDeclarationStart:m,tokenIsTSTypeOperator:h,tokenIsTemplate:_}}return r;function i(p,u={}){return new t.TokenType("name",u)}function s(){return{tc_oTag:new t.TokContext("<tag",!1,!1),tc_cTag:new t.TokContext("</tag",!1,!1),tc_expr:new t.TokContext("<tag>...</tag>",!0,!0)}}function a(){return{at:new t.TokenType("@"),jsxName:new t.TokenType("jsxName"),jsxText:new t.TokenType("jsxText",{beforeExpr:!0}),jsxTagStart:new t.TokenType("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new t.TokenType("jsxTagEnd")}}function n(){return{assert:i("assert",{startsExpr:ot}),asserts:i("asserts",{startsExpr:ot}),global:i("global",{startsExpr:ot}),keyof:i("keyof",{startsExpr:ot}),readonly:i("readonly",{startsExpr:ot}),unique:i("unique",{startsExpr:ot}),abstract:i("abstract",{startsExpr:ot}),declare:i("declare",{startsExpr:ot}),enum:i("enum",{startsExpr:ot}),module:i("module",{startsExpr:ot}),namespace:i("namespace",{startsExpr:ot}),interface:i("interface",{startsExpr:ot}),type:i("type",{startsExpr:ot})}}}var Fk=1<<20,Qi=1<<21,gi=1,Gs=2,Uk=4,Uc=8,Hk=16,hm=64,_m=128,Vk=256,zk=512,bm=1024,j2=gi|Gs|Uc|_m,F2=gi|0|Uc|0,U2=gi|0|Uk|0,H2=gi|0|Hk|0,V2=0|Gs|0|_m,z2=0|Gs|0|0,Wk=gi|Gs|Uc|Vk,W2=0|bm,G2=0|hm,K2=gi|0|0|hm,X2=Wk|zk,J2=0|bm,ym=4,gm=2,vm=1,Y2=gm|vm,Z2=gm|ym,Q2=vm|ym,Gk=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/y,lm=new RegExp("(?=("+Gk.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y"),es=class{constructor(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}};function Kk(e,t){let r="true";return t.type==="MethodDefinition"&&(t.kind==="get"||t.kind==="set")&&(r=(t.static?"s":"i")+t.kind),e==="iget"&&r==="iset"||e==="iset"&&r==="iget"||e==="sget"&&r==="sset"||e==="sset"&&r==="sget"?[!1,"true"]:e?[!0,e]:[!1,r]}function cm(e,t){let{computed:r,key:i}=e;return!r&&(i.type==="Identifier"&&i.name===t||i.type==="Literal"&&i.value===t)}var Q={AbstractMethodHasImplementation:({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:e})=>`Property '${e}' cannot have an initializer because it is marked abstract.`,AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",CannotFindName:({name:e})=>`Cannot find name '${e}'.`,ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:e})=>`'declare' is not allowed in ${e}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:(()=>"Accessibility modifier already seen."),DuplicateModifier:({modifier:e})=>`Duplicate modifier: '${e}'.`,EmptyHeritageClauseType:({token:e})=>`'${e}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",IncompatibleModifiers:({modifiers:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,PrivateMethodsHasAccessibility:({modifier:e})=>`Private methods cannot have an accessibility modifier ('${e}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",GenericsEndWithComma:"Trailing comma is not allowed at the end of generics.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`,LetInLexicalBinding:"'let' is not allowed to be used as a name in 'let' or 'const' declarations."},Ws={UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",TrailingDecorator:"Decorators must be attached to a class element.",SpreadElementDecorator:"Decorators can't be used with SpreadElement"};function Xk(e,t,r){let{tokTypes:i}=r,{tokTypes:s}=t;return class extends e{takeDecorators(n){let p=this.decoratorStack[this.decoratorStack.length-1];p.length&&(n.decorators=p,this.resetStartLocationFromNode(n,p[0]),this.decoratorStack[this.decoratorStack.length-1]=[])}parseDecorators(n){let p=this.decoratorStack[this.decoratorStack.length-1];for(;this.match(s.at);){let u=this.parseDecorator();p.push(u)}this.match(i._export)?n||this.unexpected():this.canHaveLeadingDecorator()||this.raise(this.start,Ws.UnexpectedLeadingDecorator)}parseDecorator(){let n=this.startNode();this.next(),this.decoratorStack.push([]);let p=this.start,u=this.startLoc,d;if(this.match(i.parenL)){let m=this.start,h=this.startLoc;if(this.next(),d=this.parseExpression(),this.expect(i.parenR),this.options.preserveParens){let _=this.startNodeAt(m,h);_.expression=d,d=this.finishNode(_,"ParenthesizedExpression")}}else for(d=this.parseIdent(!1);this.eat(i.dot);){let m=this.startNodeAt(p,u);m.object=d,m.property=this.parseIdent(!0),m.computed=!1,d=this.finishNode(m,"MemberExpression")}return n.expression=this.parseMaybeDecoratorArguments(d),this.decoratorStack.pop(),this.finishNode(n,"Decorator")}parseMaybeDecoratorArguments(n){if(this.eat(i.parenL)){let p=this.startNodeAtNode(n);return p.callee=n,p.arguments=this.parseExprList(i.parenR,!1),this.finishNode(p,"CallExpression")}return n}}}var pm={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"},Jk=/^[\da-fA-F]+$/,Yk=/^\d+$/;function ts(e){if(!e)return e;if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return ts(e.object)+"."+ts(e.property)}function Zk(e,t,r,i){let s=e.tokTypes,a=t.tokTypes,n=e.isNewLine,p=e.isIdentifierChar,u=Object.assign({allowNamespaces:!0,allowNamespacedObjects:!0},i||{});return class extends r{jsx_readToken(){let m="",h=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let _=this.input.charCodeAt(this.pos);switch(_){case 60:case 123:return this.pos===this.start?_===60&&this.exprAllowed?(++this.pos,this.finishToken(a.jsxTagStart)):this.getTokenFromCode(_):(m+=this.input.slice(h,this.pos),this.finishToken(a.jsxText,m));case 38:m+=this.input.slice(h,this.pos),m+=this.jsx_readEntity(),h=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(_===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:n(_)?(m+=this.input.slice(h,this.pos),m+=this.jsx_readNewLine(!0),h=this.pos):++this.pos}}}jsx_readNewLine(m){let h=this.input.charCodeAt(this.pos),_;return++this.pos,h===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,_=m?`
|
|
74
|
+
https://svelte.dev/e/svelte_self_deprecated`)}var Bk=/^\s*svelte-ignore\s/,nm={"non-top-level-reactive-declaration":"reactive_declaration_invalid_placement","module-script-reactive-declaration":"reactive_declaration_module_script","empty-block":"block_empty","avoid-is":"attribute_avoid_is","invalid-html-attribute":"attribute_invalid_property_name","a11y-structure":"a11y_figcaption_parent","illegal-attribute-character":"attribute_illegal_colon","invalid-rest-eachblock-binding":"bind_invalid_each_rest","unused-export-let":"export_let_unused"},Zi=Fd.concat(Ed);function mr(e,t,r){let i=Bk.exec(t);if(!i)return[];let s=i[0].length;e+=s;let a=[];if(r)for(let n of t.slice(s).matchAll(/([\w$-]+)(,)?/gm)){let p=n[1];if(Zi.includes(p))a.push(p);else{let u=nm[p]??p.replace(/-/g,"_"),d=e+n.index,m=d+p.length;if(Zi.includes(u))Tf({start:d,end:m},p,u);else{let h=ur(p,Zi);Pf({start:d,end:m},p,h)}}if(!n[2])break}else for(let n of t.slice(s).matchAll(/[\w$-]+/gm)){let p=n[0];if(a.push(p),!Zi.includes(p)){let u=nm[p]??p.replace(/-/g,"_");Zi.includes(u)&&a.push(u)}}return a}function Fr(e){let t=e.at(0),r=e.at(-1);t?.type==="Text"&&(Ot.test(t.data)?t.data=t.data.replace(Or,""):e.shift()),r?.type==="Text"&&(Ot.test(r.data)?r.data=r.data.replace(pr,""):e.pop())}function om(e,t){return re(t,null,{_(i,{next:s}){delete i.metadata,s()},Root(i,{visit:s}){let{instance:a,module:n,options:p}=i;if(p?.__raw__){let m=i.fragment.nodes.findIndex(h=>p.end<=h.start);m===-1&&(m=i.fragment.nodes.length),i.fragment.nodes.splice(m,0,p.__raw__)}let u=null,d=null;if(i.fragment.nodes.length>0){let m=i.fragment.nodes.at(0),h=i.fragment.nodes.at(-1);for(u=m.start,d=h.end;/\s/.test(e[u]);)u+=1;for(;/\s/.test(e[d-1]);)d-=1}return a&&delete a.attributes,n&&delete n.attributes,{html:{type:"Fragment",start:u,end:d,children:i.fragment.nodes.map(m=>s(m))},instance:a,module:n,css:t.css?s(t.css):void 0,_comments:t.comments?.length>0?t.comments:void 0}},AnimateDirective(i){return{...i,type:"Animation"}},AwaitBlock(i,{visit:s}){let a={type:"PendingBlock",start:null,end:null,children:i.pending?.nodes.map(u=>s(u))??[],skip:!0},n={type:"ThenBlock",start:null,end:null,children:i.then?.nodes.map(u=>s(u))??[],skip:!0},p={type:"CatchBlock",start:null,end:null,children:i.catch?.nodes.map(u=>s(u))??[],skip:!0};if(i.pending){let u=i.pending.nodes.at(0),d=i.pending.nodes.at(-1);a.start=u?.start??e.indexOf("}",i.expression.end)+1,a.end=d?.end??a.start,a.skip=!1}if(i.then){let u=i.then.nodes.at(0),d=i.then.nodes.at(-1);n.start=a.end??u?.start??e.indexOf("}",i.expression.end)+1,n.end=d?.end??e.lastIndexOf("}",a.end??i.expression.end)+1,n.skip=!1}if(i.catch){let u=i.catch.nodes.at(0),d=i.catch.nodes.at(-1);p.start=n.end??a.end??u?.start??e.indexOf("}",i.expression.end)+1,p.end=d?.end??e.lastIndexOf("}",n.end??a.end??i.expression.end)+1,p.skip=!1}return{type:"AwaitBlock",start:i.start,end:i.end,expression:i.expression,value:i.value,error:i.error,pending:a,then:n,catch:p}},BindDirective(i){return{...i,type:"Binding"}},ClassDirective(i){return{...i,type:"Class"}},Comment(i){return{...i,ignores:mr(i.start,i.data,!1)}},ComplexSelector(i,{next:s}){s();let a=[];for(let n of i.children)n.combinator&&a.push(n.combinator),a.push(...n.selectors);return{type:"Selector",start:i.start,end:i.end,children:a}},Component(i,{visit:s}){return{type:"InlineComponent",start:i.start,end:i.end,name:i.name,attributes:i.attributes.map(a=>s(a)),children:i.fragment.nodes.map(a=>s(a))}},ConstTag(i){if(i.expression!==void 0)return i;let s=i,{id:a}={...s.declaration.declarations[0]};return delete a.typeAnnotation,{type:"ConstTag",start:s.start,end:i.end,expression:{type:"AssignmentExpression",start:(s.declaration.start??0)+6,end:s.declaration.end??0,operator:"=",left:a,right:s.declaration.declarations[0].init}}},DeclarationTag(i){return i},KeyBlock(i,{visit:s}){return Fr(i.fragment.nodes),{type:"KeyBlock",start:i.start,end:i.end,expression:i.expression,children:i.fragment.nodes.map(a=>s(a))}},EachBlock(i,{visit:s}){let a;if(i.fallback){let n=i.fallback.nodes.at(0),p=e.lastIndexOf("{",i.end-1),u=n?.start??p;Fr(i.fallback.nodes),a={type:"ElseBlock",start:u,end:p,children:i.fallback.nodes.map(d=>s(d))}}return Fr(i.body.nodes),{type:"EachBlock",start:i.start,end:i.end,children:i.body.nodes.map(n=>s(n)),context:i.context,expression:i.expression,index:i.index,key:i.key,else:a}},ExpressionTag(i,{path:s}){let a=s.at(-1);return a?.type==="Attribute"&&e[a.start]==="{"?{type:"AttributeShorthand",start:i.start,end:i.end,expression:i.expression}:{type:"MustacheTag",start:i.start,end:i.end,expression:i.expression}},HtmlTag(i){return{...i,type:"RawMustacheTag"}},IfBlock(i,{visit:s}){let a;if(i.alternate){let p=i.alternate.nodes;p.length===1&&p[0].type==="IfBlock"&&p[0].elseif&&(p=p[0].consequent.nodes);let u=e.lastIndexOf("{",i.end-1),d=p.at(0)?.start??u;Fr(i.alternate.nodes),a={type:"ElseBlock",start:d,end:u,children:i.alternate.nodes.map(m=>s(m))}}let n=i.elseif?i.consequent.nodes[0]?.start??e.lastIndexOf("{",i.end-1):i.start;return Fr(i.consequent.nodes),{type:"IfBlock",start:n,end:i.end,expression:i.test,children:i.consequent.nodes.map(p=>s(p)),else:a,elseif:i.elseif?!0:void 0}},OnDirective(i){return{...i,type:"EventHandler"}},SnippetBlock(i,{visit:s}){return Fr(i.body.nodes),{type:"SnippetBlock",start:i.start,end:i.end,expression:i.expression,parameters:i.parameters,children:i.body.nodes.map(a=>s(a)),typeParams:i.typeParams}},SvelteBoundary(i,{visit:s}){return Fr(i.fragment.nodes),{type:"SvelteBoundary",name:"svelte:boundary",start:i.start,end:i.end,attributes:i.attributes.map(a=>s(a)),children:i.fragment.nodes.map(a=>s(a))}},RegularElement(i,{visit:s}){return{type:"Element",start:i.start,end:i.end,name:i.name,attributes:i.attributes.map(a=>s(a)),children:i.fragment.nodes.map(a=>s(a))}},SlotElement(i,{visit:s}){return{type:"Slot",start:i.start,end:i.end,name:i.name,attributes:i.attributes.map(a=>s(a)),children:i.fragment.nodes.map(a=>s(a))}},Attribute(i,{visit:s,next:a,path:n}){if(i.value!==!0&&!Array.isArray(i.value)){n.push(i);let p=[s(i.value)];return n.pop(),{...i,value:p}}else return a()},StyleDirective(i,{visit:s,next:a,path:n}){if(i.value!==!0&&!Array.isArray(i.value)){n.push(i);let p=[s(i.value)];return n.pop(),{...i,value:p}}else return a()},SpreadAttribute(i){return{...i,type:"Spread"}},StyleSheet(i,s){return{...i,...s.next(),type:"Style"}},SvelteBody(i,{visit:s}){return{type:"Body",name:"svelte:body",start:i.start,end:i.end,attributes:i.attributes.map(a=>s(a)),children:i.fragment.nodes.map(a=>s(a))}},SvelteComponent(i,{visit:s}){return{type:"InlineComponent",name:"svelte:component",start:i.start,end:i.end,expression:i.expression,attributes:i.attributes.map(a=>s(a)),children:i.fragment.nodes.map(a=>s(a))}},SvelteDocument(i,{visit:s}){return{type:"Document",name:"svelte:document",start:i.start,end:i.end,attributes:i.attributes.map(a=>s(a)),children:i.fragment.nodes.map(a=>s(a))}},SvelteElement(i,{visit:s}){let a=i.tag;return a.type==="Literal"&&typeof a.value=="string"&&e[i.tag.start-1]!=="{"&&(a=a.value),{type:"Element",name:"svelte:element",start:i.start,end:i.end,tag:a,attributes:i.attributes.map(n=>s(n)),children:i.fragment.nodes.map(n=>s(n))}},SvelteFragment(i,{visit:s}){return{type:"SlotTemplate",name:"svelte:fragment",start:i.start,end:i.end,attributes:i.attributes.map(a=>s(a)),children:i.fragment.nodes.map(a=>s(a))}},SvelteHead(i,{visit:s}){return{type:"Head",name:"svelte:head",start:i.start,end:i.end,attributes:i.attributes.map(a=>s(a)),children:i.fragment.nodes.map(a=>s(a))}},SvelteOptions(i,{visit:s}){return{type:"Options",name:"svelte:options",start:i.start,end:i.end,attributes:i.attributes.map(a=>s(a))}},SvelteSelf(i,{visit:s}){return{type:"InlineComponent",name:"svelte:self",start:i.start,end:i.end,attributes:i.attributes.map(a=>s(a)),children:i.fragment.nodes.map(a=>s(a))}},SvelteWindow(i,{visit:s}){return{type:"Window",name:"svelte:window",start:i.start,end:i.end,attributes:i.attributes.map(a=>s(a)),children:i.fragment.nodes.map(a=>s(a))}},Text(i,{path:s}){let a=s.at(-1);if(a?.type==="RegularElement"&&a.name==="style")return{type:"Text",start:i.start,end:i.end,data:i.data}},TitleElement(i,{visit:s}){return{type:"Title",name:"title",start:i.start,end:i.end,attributes:i.attributes.map(a=>s(a)),children:i.fragment.nodes.map(a=>s(a))}},TransitionDirective(i){return{...i,type:"Transition"}},UseDirective(i){return{...i,type:"Action"}},LetDirective(i){return{...i,type:"Let"}}})}var ot=!0,jk=new WeakMap;function Fk(e){let t=e.Parser.acorn||e,r=jk.get(t);if(!r){let p=function(P){return P===v.name||P===v.string||P===v.num||l.includes(P)||g.includes(P)},u=function(P){return P===v.name||l.includes(P)||g.includes(P)},d=function(P){return P===v.name||g.includes(P)},m=function(P){return P===o.abstract||P===o.declare||P===o.enum||P===o.module||P===o.namespace||P===o.interface||P===o.type},h=function(P){return P===o.keyof||P===o.readonly||P===o.unique},_=function(P){return P===v.invalidTemplate},{tokTypes:v,keywordTypes:E}=t,l=Object.values(E),o=n(),g=Object.values(o),k=a(),S=s(),C=new RegExp(`^(?:${Object.keys(o).join("|")})$`);k.jsxTagStart.updateContext=function(){this.context.push(S.tc_expr),this.context.push(S.tc_oTag),this.exprAllowed=!1},k.jsxTagEnd.updateContext=function(P){let R=this.context.pop();R===S.tc_oTag&&P===v.slash||R===S.tc_cTag?(this.context.pop(),this.exprAllowed=this.curContext()===S.tc_expr):this.exprAllowed=!0},r={tokTypes:{...o,...k},tokContexts:{...S},keywordsRegExp:C,tokenIsLiteralPropertyName:p,tokenIsKeywordOrIdentifier:u,tokenIsIdentifier:d,tokenIsTSDeclarationStart:m,tokenIsTSTypeOperator:h,tokenIsTemplate:_}}return r;function i(p,u={}){return new t.TokenType("name",u)}function s(){return{tc_oTag:new t.TokContext("<tag",!1,!1),tc_cTag:new t.TokContext("</tag",!1,!1),tc_expr:new t.TokContext("<tag>...</tag>",!0,!0)}}function a(){return{at:new t.TokenType("@"),jsxName:new t.TokenType("jsxName"),jsxText:new t.TokenType("jsxText",{beforeExpr:!0}),jsxTagStart:new t.TokenType("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new t.TokenType("jsxTagEnd")}}function n(){return{assert:i("assert",{startsExpr:ot}),asserts:i("asserts",{startsExpr:ot}),global:i("global",{startsExpr:ot}),keyof:i("keyof",{startsExpr:ot}),readonly:i("readonly",{startsExpr:ot}),unique:i("unique",{startsExpr:ot}),abstract:i("abstract",{startsExpr:ot}),declare:i("declare",{startsExpr:ot}),enum:i("enum",{startsExpr:ot}),module:i("module",{startsExpr:ot}),namespace:i("namespace",{startsExpr:ot}),interface:i("interface",{startsExpr:ot}),type:i("type",{startsExpr:ot})}}}var Uk=1<<20,Qi=1<<21,gi=1,Gs=2,Hk=4,Uc=8,Vk=16,hm=64,_m=128,zk=256,Wk=512,bm=1024,F2=gi|Gs|Uc|_m,U2=gi|0|Uc|0,H2=gi|0|Hk|0,V2=gi|0|Vk|0,z2=0|Gs|0|_m,W2=0|Gs|0|0,Gk=gi|Gs|Uc|zk,G2=0|bm,K2=0|hm,X2=gi|0|0|hm,J2=Gk|Wk,Y2=0|bm,ym=4,gm=2,vm=1,Z2=gm|vm,Q2=gm|ym,eI=vm|ym,Kk=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/y,lm=new RegExp("(?=("+Kk.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y"),es=class{constructor(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}};function Xk(e,t){let r="true";return t.type==="MethodDefinition"&&(t.kind==="get"||t.kind==="set")&&(r=(t.static?"s":"i")+t.kind),e==="iget"&&r==="iset"||e==="iset"&&r==="iget"||e==="sget"&&r==="sset"||e==="sset"&&r==="sget"?[!1,"true"]:e?[!0,e]:[!1,r]}function cm(e,t){let{computed:r,key:i}=e;return!r&&(i.type==="Identifier"&&i.name===t||i.type==="Literal"&&i.value===t)}var Q={AbstractMethodHasImplementation:({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:e})=>`Property '${e}' cannot have an initializer because it is marked abstract.`,AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",CannotFindName:({name:e})=>`Cannot find name '${e}'.`,ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:e})=>`'declare' is not allowed in ${e}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:(()=>"Accessibility modifier already seen."),DuplicateModifier:({modifier:e})=>`Duplicate modifier: '${e}'.`,EmptyHeritageClauseType:({token:e})=>`'${e}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",IncompatibleModifiers:({modifiers:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,PrivateMethodsHasAccessibility:({modifier:e})=>`Private methods cannot have an accessibility modifier ('${e}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",GenericsEndWithComma:"Trailing comma is not allowed at the end of generics.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`,LetInLexicalBinding:"'let' is not allowed to be used as a name in 'let' or 'const' declarations."},Ws={UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",TrailingDecorator:"Decorators must be attached to a class element.",SpreadElementDecorator:"Decorators can't be used with SpreadElement"};function Jk(e,t,r){let{tokTypes:i}=r,{tokTypes:s}=t;return class extends e{takeDecorators(n){let p=this.decoratorStack[this.decoratorStack.length-1];p.length&&(n.decorators=p,this.resetStartLocationFromNode(n,p[0]),this.decoratorStack[this.decoratorStack.length-1]=[])}parseDecorators(n){let p=this.decoratorStack[this.decoratorStack.length-1];for(;this.match(s.at);){let u=this.parseDecorator();p.push(u)}this.match(i._export)?n||this.unexpected():this.canHaveLeadingDecorator()||this.raise(this.start,Ws.UnexpectedLeadingDecorator)}parseDecorator(){let n=this.startNode();this.next(),this.decoratorStack.push([]);let p=this.start,u=this.startLoc,d;if(this.match(i.parenL)){let m=this.start,h=this.startLoc;if(this.next(),d=this.parseExpression(),this.expect(i.parenR),this.options.preserveParens){let _=this.startNodeAt(m,h);_.expression=d,d=this.finishNode(_,"ParenthesizedExpression")}}else for(d=this.parseIdent(!1);this.eat(i.dot);){let m=this.startNodeAt(p,u);m.object=d,m.property=this.parseIdent(!0),m.computed=!1,d=this.finishNode(m,"MemberExpression")}return n.expression=this.parseMaybeDecoratorArguments(d),this.decoratorStack.pop(),this.finishNode(n,"Decorator")}parseMaybeDecoratorArguments(n){if(this.eat(i.parenL)){let p=this.startNodeAtNode(n);return p.callee=n,p.arguments=this.parseExprList(i.parenR,!1),this.finishNode(p,"CallExpression")}return n}}}var pm={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"},Yk=/^[\da-fA-F]+$/,Zk=/^\d+$/;function ts(e){if(!e)return e;if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return ts(e.object)+"."+ts(e.property)}function Qk(e,t,r,i){let s=e.tokTypes,a=t.tokTypes,n=e.isNewLine,p=e.isIdentifierChar,u=Object.assign({allowNamespaces:!0,allowNamespacedObjects:!0},i||{});return class extends r{jsx_readToken(){let m="",h=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let _=this.input.charCodeAt(this.pos);switch(_){case 60:case 123:return this.pos===this.start?_===60&&this.exprAllowed?(++this.pos,this.finishToken(a.jsxTagStart)):this.getTokenFromCode(_):(m+=this.input.slice(h,this.pos),this.finishToken(a.jsxText,m));case 38:m+=this.input.slice(h,this.pos),m+=this.jsx_readEntity(),h=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(_===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:n(_)?(m+=this.input.slice(h,this.pos),m+=this.jsx_readNewLine(!0),h=this.pos):++this.pos}}}jsx_readNewLine(m){let h=this.input.charCodeAt(this.pos),_;return++this.pos,h===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,_=m?`
|
|
75
75
|
`:`\r
|
|
76
|
-
`):_=String.fromCharCode(h),this.options.locations&&(++this.curLine,this.lineStart=this.pos),_}jsx_readString(m){let h="",_=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let v=this.input.charCodeAt(this.pos);if(v===m)break;v===38?(h+=this.input.slice(_,this.pos),h+=this.jsx_readEntity(),_=this.pos):n(v)?(h+=this.input.slice(_,this.pos),h+=this.jsx_readNewLine(!1),_=this.pos):++this.pos}return h+=this.input.slice(_,this.pos++),this.finishToken(s.string,h)}jsx_readEntity(){let m="",h=0,_,v=this.input[this.pos];v!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let E=++this.pos;for(;this.pos<this.input.length&&h++<10;){if(v=this.input[this.pos++],v===";"){if(m[0]==="#"){let l;m[1]==="x"||m[1]==="X"?(m=m.substr(2),Jk.test(m)&&(l=parseInt(m,16))):(m=m.substr(1),Yk.test(m)&&(l=parseInt(m,10))),l!==void 0&&l<=1114111&&(_=String.fromCodePoint(l))}else Object.prototype.hasOwnProperty.call(pm,m)&&(_=pm[m]);break}m+=v}return _===void 0?(this.pos=E,"&"):_}jsx_readWord(){let m,h=this.pos;do m=this.input.charCodeAt(++this.pos);while(p(m)||m===45);return this.finishToken(a.jsxName,this.input.slice(h,this.pos))}jsx_parseIdentifier(){let m=this.startNode();return this.type===a.jsxName?m.name=this.value:this.type.keyword?m.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(m,"JSXIdentifier")}jsx_parseNamespacedName(){let m=this.start,h=this.startLoc,_=this.jsx_parseIdentifier();if(!u.allowNamespaces||!this.eat(s.colon))return _;var v=this.startNodeAt(m,h);return v.namespace=_,v.name=this.jsx_parseIdentifier(),this.finishNode(v,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===a.jsxTagEnd)return"";let m=this.start,h=this.startLoc,_=this.jsx_parseNamespacedName();for(this.type===s.dot&&_.type==="JSXNamespacedName"&&!u.allowNamespacedObjects&&this.unexpected();this.eat(s.dot);){let v=this.startNodeAt(m,h);v.object=_,v.property=this.jsx_parseIdentifier(),_=this.finishNode(v,"JSXMemberExpression")}return _}jsx_parseAttributeValue(){switch(this.type){case s.braceL:let m=this.jsx_parseExpressionContainer();return m.expression.type==="JSXEmptyExpression"&&this.raise(m.start,"JSX attributes must only be assigned a non-empty expression"),m;case a.jsxTagStart:case s.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let m=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(m,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let m=this.startNode();return this.next(),this.eat(s.ellipsis)?(m.expression=this.parseExpression(),this.expect(s.braceR),this.finishNode(m,"JSXSpreadChild")):(m.expression=this.type===s.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(s.braceR),this.finishNode(m,"JSXExpressionContainer"))}jsx_parseAttribute(){let m=this.startNode();return this.eat(s.braceL)?(this.expect(s.ellipsis),m.argument=this.parseMaybeAssign(),this.expect(s.braceR),this.finishNode(m,"JSXSpreadAttribute")):(m.name=this.jsx_parseNamespacedName(),m.value=this.eat(s.eq)?this.jsx_parseAttributeValue():null,this.finishNode(m,"JSXAttribute"))}jsx_parseOpeningElementAt(m,h){let _=this.startNodeAt(m,h);_.attributes=[];let v=this.jsx_parseElementName();for(v&&(_.name=v);this.type!==s.slash&&this.type!==a.jsxTagEnd;)_.attributes.push(this.jsx_parseAttribute());return _.selfClosing=this.eat(s.slash),this.expect(a.jsxTagEnd),this.finishNode(_,v?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(m,h){let _=this.startNodeAt(m,h),v=this.jsx_parseElementName();return v&&(_.name=v),this.expect(a.jsxTagEnd),this.finishNode(_,v?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(m,h){let _=this.startNodeAt(m,h),v=[],E=this.jsx_parseOpeningElementAt(m,h),l=null;if(!E.selfClosing){e:for(;;)switch(this.type){case a.jsxTagStart:if(m=this.start,h=this.startLoc,this.next(),this.eat(s.slash)){l=this.jsx_parseClosingElementAt(m,h);break e}v.push(this.jsx_parseElementAt(m,h));break;case a.jsxText:v.push(this.parseExprAtom());break;case s.braceL:v.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}ts(l.name)!==ts(E.name)&&this.raise(l.start,"Expected corresponding JSX closing tag for <"+ts(E.name)+">")}let o=E.name?"Element":"Fragment";return _["opening"+o]=E,_["closing"+o]=l,_.children=v,this.type===s.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(_,"JSX"+o)}jsx_parseText(){let m=this.parseLiteral(this.value);return m.type="JSXText",m}jsx_parseElement(){let m=this.start,h=this.startLoc;return this.next(),this.jsx_parseElementAt(m,h)}}}function Qk(e,t,r){let{tokTypes:i}=t,{tokTypes:s}=r;return class extends e{parseMaybeImportAttributes(n){if(this.type===s._with||this.type===i.assert){this.next();let p=this.parseImportAttributes();p&&(n.attributes=p)}}parseImportAttributes(){this.expect(s.braceL);let n=this.parseWithEntries();return this.expect(s.braceR),n}parseWithEntries(){let n=[],p=new Set;do{if(this.type===s.braceR)break;let u=this.startNode(),d;this.type===s.string?d=this.parseLiteral(this.value):d=this.parseIdent(!0),this.next(),u.key=d,p.has(u.key.name)&&this.raise(this.pos,"Duplicated key in attributes"),p.add(u.key.name),this.type!==s.string&&this.raise(this.pos,"Only string is supported as an attribute value"),u.value=this.parseLiteral(this.value),n.push(this.finishNode(u,"ImportAttribute"))}while(this.eat(s.comma));return n}}}var Bc=["onToken","onComment","onInsertedSemicolon","onTrailingComma"];function wm(){return{_tag:"BufferedParserEvents",segments:[]}}var eE=wm();function um(e){return e.segments.length>0}var tE=class{constructor(e,t){this.options=e,this.state=t,this.callbacks={},this.callbackWrappers={},this.frames=[],this.undoLog=[],this.hasCallbacks=this.captureCallbacks()}get active(){return this.frames.length>0}begin(){let e={_tag:"ParseEffectFrame",depth:this.frames.length,undoMark:this.undoLog.length,checkpoint:this.state?.capture()};return this.frames.push(e),e.depth===0&&this.hasCallbacks&&this.activateCallbacks(),e}commit(e){this.close(e);let t=this.currentFrame();if(t){e.output&&this.appendOutput(this.outputFor(t),e.output);return}this.undoLog.length=e.undoMark,e.output&&this.flush(e.output)}rollback(e){this.close(e),this.unwind(e.undoMark),this.restore(e)}rollbackWithEvents(e){return this.close(e),this.unwind(e.undoMark),this.restore(e),e.output??eE}replay(e){if(!um(e))return;let t=this.currentFrame();if(t){this.appendOutput(this.outputFor(t),e);return}this.flush(e)}set(e,t,r){this.willSet(e,t),e[t]=r}remove(e,t){this.willSet(e,t),delete e[t]}append(e,t){this.willAppend(e),e.push(t)}pop(e){return this.willMutateTail(e,1),e.pop()}truncate(e,t){t<e.length?this.willMutateTail(e,e.length-t):this.willAppend(e),e.length=t}modify(e,t,r){let[i,s]=r(e[t]);return this.set(e,t,s),i}willAppend(e){this.active&&this.undoLog.push({_tag:"ArrayLength",target:e,length:e.length})}willMutateTail(e,t){if(!this.active)return;let r=Math.max(0,e.length-t);this.undoLog.push({_tag:"ArrayTail",target:e,start:r,values:e.slice(r)})}willSet(e,t){if(!this.active)return;let r=e;this.undoLog.push({_tag:"Property",target:r,key:t,had:Object.prototype.hasOwnProperty.call(r,t),value:r[t]})}captureCallbacks(){let e=!1;for(let t of Bc){let r=this.options[t];r&&(e=!0,this.callbacks[t]=r,this.callbackWrappers[t]=(...i)=>{this.emit({name:t,args:i})})}return e}activateCallbacks(){for(let e of Bc){let t=this.callbackWrappers[e];t&&(this.options[e]=t)}}deactivateCallbacks(){for(let e of Bc){let t=this.callbacks[e];t&&(this.options[e]=t)}}emit(e){let t=this.currentFrame();if(!t){this.invoke(e);return}let r=this.outputFor(t).segments,i=r[r.length-1];Array.isArray(i)?i.push(e):r.push([e])}appendOutput(e,t){um(t)&&e.segments.push(t)}outputFor(e){return e.output??=wm()}flush(e){let t=[];for(let r=e.segments.length-1;r>=0;r--)t.push(e.segments[r]);for(;t.length>0;){let r=t.pop();if(Array.isArray(r)){for(let i of r)this.invoke(i);continue}for(let i=r.segments.length-1;i>=0;i--)t.push(r.segments[i])}}invoke(e){this.callbacks[e.name]?.apply(this.options,e.args)}currentFrame(){return this.frames[this.frames.length-1]}close(e){if(this.currentFrame()!==e||e.depth!==this.frames.length-1)throw new Error("Parse effect scopes must be closed in order");this.frames.pop(),this.frames.length===0&&this.hasCallbacks&&this.deactivateCallbacks()}restore(e){this.state&&this.state.restore(e.checkpoint)}unwind(e){for(let t=this.undoLog.length-1;t>=e;t--){let r=this.undoLog[t];switch(r._tag){case"ArrayLength":if(r.target.length<r.length)throw new Error("A parse effect shortened an append-only array");r.target.length=r.length;break;case"ArrayTail":r.target.length=r.start;for(let i of r.values)r.target.push(i);break;case"Property":r.had?r.target[r.key]=r.value:delete r.target[r.key];break}}this.undoLog.length=e}};function yi(e,t,r){if(e.length===t)return e;if(e.length<t)throw new Error(`A parse branch shortened the ${r} below its checkpoint`);return e.length=t,e}function rE(e){return{lookahead:e.getCurLookaheadState(),context:e.context,contextLength:e.context.length,scopeStack:e.scopeStack,scopeStackLength:e.scopeStack.length,importsStack:e.importsStack,importsStackLength:e.importsStack.length,labels:e.labels,labelsLength:e.labels.length,privateNameStack:e.privateNameStack,privateNameStackLength:e.privateNameStack.length,decoratorStack:e.decoratorStack,decoratorStackLength:e.decoratorStack.length,strict:e.strict,potentialArrowAt:e.potentialArrowAt,potentialArrowInForAwait:e.potentialArrowInForAwait,yieldPos:e.yieldPos,awaitPos:e.awaitPos,awaitIdentPos:e.awaitIdentPos,preValue:e.preValue,preToken:e.preToken,isLookahead:e.isLookahead,isAmbientContext:e.isAmbientContext,inAbstractClass:e.inAbstractClass,inType:e.inType,inDisallowConditionalTypesContext:e.inDisallowConditionalTypesContext,maybeInArrowParameters:e.maybeInArrowParameters,shouldParseArrowReturnType:e.shouldParseArrowReturnType,shouldParseAsyncArrowReturnType:e.shouldParseAsyncArrowReturnType,importOrExportOuterKind:e.importOrExportOuterKind}}function iE(e,t){e.setLookaheadTokenState(t.lookahead),e.context=yi(t.context,t.contextLength,"token context stack"),e.scopeStack=yi(t.scopeStack,t.scopeStackLength,"scope stack"),e.importsStack=yi(t.importsStack,t.importsStackLength,"import stack"),e.labels=yi(t.labels,t.labelsLength,"label stack"),e.privateNameStack=yi(t.privateNameStack,t.privateNameStackLength,"private-name stack"),e.decoratorStack=yi(t.decoratorStack,t.decoratorStackLength,"decorator stack"),e.strict=t.strict,e.potentialArrowAt=t.potentialArrowAt,e.potentialArrowInForAwait=t.potentialArrowInForAwait,e.yieldPos=t.yieldPos,e.awaitPos=t.awaitPos,e.awaitIdentPos=t.awaitIdentPos,e.regexpState=null,e.preValue=t.preValue,e.preToken=t.preToken,e.isLookahead=t.isLookahead,e.isAmbientContext=t.isAmbientContext,e.inAbstractClass=t.inAbstractClass,e.inType=t.inType,e.inDisallowConditionalTypesContext=t.inDisallowConditionalTypesContext,e.maybeInArrowParameters=t.maybeInArrowParameters,e.shouldParseArrowReturnType=t.shouldParseArrowReturnType,e.shouldParseAsyncArrowReturnType=t.shouldParseAsyncArrowReturnType,e.importOrExportOuterKind=t.importOrExportOuterKind}function sE(e){return{capture:()=>rE(e),restore:t=>iE(e,t)}}function aE(e,t){let r=t.acornTokenTypes,i=t.typeScriptTokenTypes,s=t.scope,a=s.SCOPE_TOP|s.SCOPE_FUNCTION|s.SCOPE_CLASS_STATIC_BLOCK;return class extends e{constructor(p,u,d){super(p,u,d),this.parseEffects=new tE(this.options,sE(this))}overrideContext(p){return this.curContext()!==p&&this.parseEffects?.willMutateTail(this.context,1),super.overrideContext(p)}takeDecorators(p){let u=this.decoratorStack.length-1;return this.decoratorStack[u].length>0&&this.parseEffects?.willSet(this.decoratorStack,String(u)),super.takeDecorators(p)}parseDecorators(p){let u=this.decoratorStack[this.decoratorStack.length-1];return this.parseEffects?.willAppend(u),super.parseDecorators(p)}parseDecorator(){return this.parseEffects?.willAppend(this.decoratorStack),super.parseDecorator()}parseIdentNode(){return(this.type.keyword==="class"||this.type.keyword==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.parseEffects?.willMutateTail(this.context,1),super.parseIdentNode()}parseLabeledStatement(p,u,d,m){for(let h=this.labels.length-1;h>=0;h--){let _=this.labels[h];if(_.statementStart!==p.start)break;this.parseEffects?.willSet(_,"statementStart"),this.parseEffects?.willSet(_,"kind")}return this.parseEffects?.willAppend(this.labels),super.parseLabeledStatement(p,u,d,m)}enterClassBody(){return this.parseEffects?.willAppend(this.privateNameStack),super.enterClassBody()}exitClassBody(){let p=this.privateNameStack[this.privateNameStack.length-2];return p&&this.parseEffects?.willAppend(p.used),this.parseEffects?.willMutateTail(this.privateNameStack,1),super.exitClassBody()}parsePrivateIdent(){if(this.options.checkPrivateFields&&this.privateNameStack.length>0){let p=this.privateNameStack[this.privateNameStack.length-1];this.parseEffects?.willAppend(p.used)}return super.parsePrivateIdent()}parseClassField(p){return this.parseEffects?.willSet(this.currentThisScope(),"inClassFieldInit"),super.parseClassField(p)}updateContext(p){let{type:u}=this;return(u===r.parenR||u===r.braceR||u===r.braceL||u===r.dollarBraceL||u===r.parenL||u===r._function||u===r._class||u===r.colon||u===r.backQuote||u===r.star||u===i.jsxTagStart||u===i.jsxTagEnd||u===r.slash&&p===i.jsxTagStart)&&this.parseEffects?.willMutateTail(this.context,2),super.updateContext(p)}enterScope(p){return this.parseEffects?.willAppend(this.scopeStack),super.enterScope(p)}exitScope(){return this.parseEffects?.willMutateTail(this.scopeStack,1),super.exitScope()}declareName(p,u,d){let m=this.parseEffects;if(m?.active)if(u===s.BIND_LEXICAL){let h=this.currentScope();m.willAppend(h.lexical),this.inModule&&h.flags&s.SCOPE_TOP&&m.willSet(this.undefinedExports,p)}else if(u===s.BIND_SIMPLE_CATCH)m.willAppend(this.currentScope().lexical);else if(u===s.BIND_FUNCTION)m.willAppend(this.currentScope().functions);else for(let h=this.scopeStack.length-1;h>=0;h--){let _=this.scopeStack[h];if(m.willAppend(_.var),this.inModule&&_.flags&s.SCOPE_TOP&&m.willSet(this.undefinedExports,p),_.flags&a)break}return super.declareName(p,u,d)}checkLocalExport(p){return this.parseEffects?.willSet(this.undefinedExports,p.name),super.checkLocalExport(p)}}}var jc=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function dm(e){if(!e)throw new Error("Assert fail")}function nE(e){return e==="accessor"}function oE(e){return e==="in"||e==="out"}var zs=1,fm=2,lE=4,be={SCOPE_TOP:1,SCOPE_FUNCTION:2,SCOPE_ASYNC:4,SCOPE_GENERATOR:8,SCOPE_ARROW:16,SCOPE_SIMPLE_CATCH:32,SCOPE_SUPER:64,SCOPE_DIRECT_SUPER:128,SCOPE_CLASS_STATIC_BLOCK:256,SCOPE_VAR:256,BIND_NONE:0,BIND_VAR:1,BIND_LEXICAL:2,BIND_FUNCTION:3,BIND_SIMPLE_CATCH:4,BIND_OUTSIDE:5,BIND_TS_TYPE:6,BIND_TS_INTERFACE:7,BIND_TS_NAMESPACE:1032,BIND_FLAGS_TS_EXPORT_ONLY:1024,BIND_FLAGS_TS_IMPORT:4096,BIND_FLAGS_TS_ENUM:256,BIND_FLAGS_TS_CONST_ENUM:512,BIND_TS_ENUM:258,BIND_TS_CONST_ENUM:770,BIND_FLAGS_CLASS:128};function Fc(e,t){return be.SCOPE_FUNCTION|(e?be.SCOPE_ASYNC:0)|(t?be.SCOPE_GENERATOR:0)}function cE(e){if(e.type!=="MemberExpression")return!1;let{computed:t,property:r}=e;return t&&(r.type!=="TemplateLiteral"||r.expressions.length>0)?!1:xm(e.object)}function pE(e){return e.type==="UnaryExpression"&&(e.operator==="-"||e.operator==="+")&&e.argument.type==="Literal"&&(typeof e.argument.value=="number"||typeof e.argument.value=="bigint")}function xm(e){return e.type==="Identifier"?!0:e.type!=="MemberExpression"||e.computed?!1:xm(e.object)}function mm(e){return e==="private"||e==="public"||e==="protected"}function uE(e){return!!e.startsExpr}function dE(e){if(e==null)throw new Error(`Unexpected ${e} value.`);return e}function fE(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function km(e){let{dts:t=!1}=e||{},r=!!e?.jsx;return function(i){let s=i.acorn||bc,a=jk(s),n=s.tokTypes,p=s.keywordTypes,u=s.isIdentifierStart,d=s.lineBreak,m=s.isNewLine,h=s.tokContexts,_=s.isIdentifierChar,{tokTypes:v,tokContexts:E,keywordsRegExp:l,tokenIsLiteralPropertyName:o,tokenIsTemplate:g,tokenIsTSDeclarationStart:k,tokenIsIdentifier:S,tokenIsKeywordOrIdentifier:C,tokenIsTSTypeOperator:P}=a;function R(se,c,f=se.length){for(let b=c;b<f;b++){let x=se.charCodeAt(b);if(m(x))return b<f-1&&x===13&&se.charCodeAt(b+1)===10?b+2:b+1}return-1}i=Xk(i,a,s),e?.jsx&&(i=Zk(s,a,i,typeof e.jsx=="boolean"?{}:e.jsx)),i=Qk(i,a,s);let L=aE(i,{acornTokenTypes:n,typeScriptTokenTypes:v,scope:be});class H extends L{constructor(c,f,b){super(c,f,b),this.preValue=null,this.preToken=null,this.isLookahead=!1,this.isAmbientContext=!1,this.inAbstractClass=!1,this.inType=!1,this.inDisallowConditionalTypesContext=!1,this.maybeInArrowParameters=!1,this.shouldParseArrowReturnType=void 0,this.shouldParseAsyncArrowReturnType=void 0,this.decoratorStack=[[]],this.importsStack=[[]],this.importOrExportOuterKind=void 0,this.tsParseConstModifier=x=>{this.tsParseModifiers({modified:x,allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:Q.InvalidModifierOnTypeParameterPositions})},this.ecmaVersion=this.options.ecmaVersion}static get acornTypeScript(){return a}get acornTypeScript(){return a}getTokenFromCodeInType(c){return c===62?this.finishOp(n.relational,1):c===60?this.finishOp(n.relational,1):super.getTokenFromCode(c)}readToken(c){if(!this.inType){let f=this.curContext();if(f===E.tc_expr)return this.jsx_readToken();if(f===E.tc_oTag||f===E.tc_cTag){if(u(c))return this.jsx_readWord();if(c==62)return++this.pos,this.finishToken(v.jsxTagEnd);if((c===34||c===39)&&f==E.tc_oTag)return this.jsx_readString(c)}if(c===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33)return++this.pos,e?.jsx?this.finishToken(v.jsxTagStart):this.finishToken(n.relational,"<")}return super.readToken(c)}getTokenFromCode(c){return this.inType?this.getTokenFromCodeInType(c):c===64?(++this.pos,this.finishToken(v.at)):super.getTokenFromCode(c)}isAbstractClass(){return this.ts_isContextual(v.abstract)&&this.lookahead().type===n._class}isDeclareClass(){if(!this.ts_isContextual(v.declare))return!1;let c=this.nextTokenStart();if(this.isUnparsedContextual(c,"class"))return!0;if(!this.isUnparsedContextual(c,"abstract"))return!1;let f=this.nextTokenStartSince(c+8);return this.isUnparsedContextual(f,"class")}finishNode(c,f){return c.type!==""&&c.end!==0?c:super.finishNode(c,f)}tryParse(c){let f={},b=this.beginParseEffectScope(),x;try{x=c(()=>{throw f})}catch(A){let I=A===f;if(!I&&!(A instanceof SyntaxError))throw this.parseEffects.rollback(b),A;let D={events:this.parseEffects.rollbackWithEvents(b),selected:!1};return I?{node:null,error:null,thrown:!1,aborted:!0,failState:D}:{node:null,error:A,thrown:!0,aborted:!1,failState:D}}return this.parseEffects.commit(b),{node:x,error:null,thrown:!1,aborted:!1,failState:null}}setOptionalParametersError(c,f){c.optionalParametersLoc=f?.loc??this.startLoc}reScan_lt_gt(){this.type===n.relational&&(this.pos-=1,this.readToken_lt_gt(this.fullCharCodeAtPos()))}reScan_lt(){let{type:c}=this;return c===n.bitShift?(this.pos-=2,this.finishOp(n.relational,1),n.relational):c}resetEndLocation(c,f=this.lastTokEnd,b=this.lastTokEndLoc){c.end=f,c.loc.end=b,this.options.ranges&&(c.range[1]=f)}startNodeAtNode(c){return super.startNodeAt(c.start,c.loc.start)}nextTokenStart(){return this.nextTokenStartSince(this.pos)}tsHasSomeModifiers(c,f){return f.some(b=>mm(b)?c.accessibility===b:!!c[b])}tsIsStartOfStaticBlocks(){return this.isContextual("static")&&this.lookaheadCharCode()===123}tsCheckForInvalidTypeCasts(c){c.forEach(f=>{f?.type==="TSTypeCastExpression"&&this.raise(f.typeAnnotation.start,Q.UnexpectedTypeAnnotation)})}atPossibleAsyncArrow(c){return c.type==="Identifier"&&c.name==="async"&&this.lastTokEnd===c.end&&!this.canInsertSemicolon()&&c.end-c.start===5&&c.start===this.potentialArrowAt}tsIsIdentifier(){return S(this.type)}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(n.colon)?this.tsParseTypeOrTypePredicateAnnotation(n.colon):void 0}tsTryParseGenericAsyncArrowFunction(c,f,b){if(!this.tsMatchLeftRelational())return;let x=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;let A=this.tsTryParseAndCatch(()=>{let I=this.startNodeAt(c,f);return I.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(I),I.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(n.arrow),I});if(this.maybeInArrowParameters=x,!!A)return this.parseArrowExpression(A,A.params,!0,b)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===n.relational)return this.tsParseTypeArguments(!0)}tsInNoContext(c){let f=this.context;this.context=[f[0]];try{return c()}finally{this.context=f}}tsTryParseTypeAnnotation(){return this.match(n.colon)?this.tsParseTypeAnnotation():void 0}isUnparsedContextual(c,f){let b=c+f.length;if(this.input.slice(c,b)===f){let x=this.input.charCodeAt(b);return!(_(x)||(x&64512)===55296)}return!1}isAbstractConstructorSignature(){return this.ts_isContextual(v.abstract)&&this.lookahead().type===n._new}nextTokenStartSince(c){return jc.lastIndex=c,jc.test(this.input)?jc.lastIndex:c}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}createLookaheadState(){this.value=null,this.context=[this.curContext()]}getCurLookaheadState(){return{endLoc:this.endLoc,lastTokEnd:this.lastTokEnd,lastTokStart:this.lastTokStart,lastTokStartLoc:this.lastTokStartLoc,pos:this.pos,value:this.value,type:this.type,exprAllowed:this.exprAllowed,start:this.start,end:this.end,context:this.context,startLoc:this.startLoc,lastTokEndLoc:this.lastTokEndLoc,curLine:this.curLine,lineStart:this.lineStart,containsEsc:this.containsEsc}}setLookaheadTokenState(c){this.pos=c.pos,this.value=c.value,this.exprAllowed=c.exprAllowed,this.endLoc=c.endLoc,this.lastTokEnd=c.lastTokEnd,this.lastTokStart=c.lastTokStart,this.lastTokStartLoc=c.lastTokStartLoc,this.type=c.type,this.start=c.start,this.end=c.end,this.startLoc=c.startLoc,this.lastTokEndLoc=c.lastTokEndLoc,this.curLine=c.curLine,this.lineStart=c.lineStart,this.containsEsc=c.containsEsc}setLookaheadState(c){this.setLookaheadTokenState(c),this.context=c.context&&c.context.slice()}beginParseEffectScope(){return this.parseEffects.begin()}selectTryParseResult(c){let f=c.failState;if(f){if(f.selected)throw new Error("A parse branch result can only be selected once");f.selected=!0,this.parseEffects.replay(f.events)}}tsLookAhead(c){let f=this.beginParseEffectScope();try{return c()}finally{this.parseEffects.rollback(f)}}lookahead(c){let f=this.getCurLookaheadState(),b=this.context,x=this.preValue,A=this.preToken,I=this.isLookahead;try{if(this.createLookaheadState(),this.isLookahead=!0,c!==void 0)for(let D=0;D<c;D++)this.nextToken();else this.nextToken();return this.getCurLookaheadState()}finally{this.setLookaheadTokenState(f),this.context=b,this.preValue=x,this.preToken=A,this.isLookahead=I}}readWord(){let c=this.readWord1(),f=n.name;return this.keywords.test(c)?f=p[c]:new RegExp(l).test(c)&&(f=v[c]),this.finishToken(f,c)}skipBlockComment(){let c;this.isLookahead||(c=this.options.onComment&&this.curPosition());let f=this.pos,b=this.input.indexOf("*/",this.pos+=2);if(b===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=b+2,this.options.locations)for(let x,A=f;(x=R(this.input,A,this.pos))>-1;)++this.curLine,A=this.lineStart=x;this.isLookahead||this.options.onComment&&this.options.onComment(!0,this.input.slice(f+2,b),f,this.pos,c,this.curPosition())}skipLineComment(c){let f=this.pos,b;this.isLookahead||(b=this.options.onComment&&this.curPosition());let x=this.input.charCodeAt(this.pos+=c);for(;this.pos<this.input.length&&!m(x);)x=this.input.charCodeAt(++this.pos);this.isLookahead||this.options.onComment&&this.options.onComment(!1,this.input.slice(f+c,this.pos),f,this.pos,b,this.curPosition())}finishToken(c,f){this.preValue=this.value,this.preToken=this.type,this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());let b=this.type;this.type=c,this.value=f,this.isLookahead||this.updateContext(b)}resetStartLocation(c,f,b){c.start=f,c.loc.start=b,this.options.ranges&&(c.range[0]=f)}isLineTerminator(){return this.eat(n.semi)||super.canInsertSemicolon()}hasFollowingLineBreak(){return lm.lastIndex=this.end,lm.test(this.input)}addExtra(c,f,b,x=!0){if(!c)return;let A=c.extra=c.extra||{};x?A[f]=b:Object.defineProperty(A,f,{enumerable:x,value:b})}isLiteralPropertyName(){return o(this.type)}hasPrecedingLineBreak(){return d.test(this.input.slice(this.lastTokEnd,this.start))}createIdentifier(c,f){return c.name=f,this.finishNode(c,"Identifier")}resetStartLocationFromNode(c,f){this.resetStartLocation(c,f.start,f.loc.start)}isThisParam(c){return c.type==="Identifier"&&c.name==="this"}isLookaheadContextual(c){let f=this.nextTokenStart();return this.isUnparsedContextual(f,c)}ts_type_isContextual(c,f){return c===f&&!this.containsEsc}ts_isContextual(c){return this.type===c&&!this.containsEsc}ts_isContextualWithState(c,f){return c.type===f&&!c.containsEsc}isContextualWithState(c,f){return f.type===n.name&&f.value===c&&!f.containsEsc}tsIsStartOfMappedType(){return this.next(),this.eat(n.plusMin)?this.ts_isContextual(v.readonly):(this.ts_isContextual(v.readonly)&&this.next(),!this.match(n.bracketL)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(n._in)))}tsInDisallowConditionalTypesContext(c){let f=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!0;try{return c()}finally{this.inDisallowConditionalTypesContext=f}}tsTryParseType(){return this.tsEatThenParseType(n.colon)}match(c){return this.type===c}matchJsx(c){return this.type===a.tokTypes[c]}ts_eatWithState(c,f,b){let x=b.type;if(c===x){for(let A=0;A<f;A++)this.next();return!0}else return!1}ts_eatContextualWithState(c,f,b){if(l.test(c)){if(this.ts_isContextualWithState(b,v[c])){for(let x=0;x<f;x++)this.next();return!0}return!1}else{if(!this.isContextualWithState(c,b))return!1;for(let x=0;x<f;x++)this.next();return!0}}canHaveLeadingDecorator(){return this.match(n._class)||this.isAbstractClass()||this.isDeclareClass()}eatContextual(c){return l.test(c)?this.ts_isContextual(v[c])?(this.next(),!0):!1:super.eatContextual(c)}tsIsExternalModuleReference(){return this.isContextual("require")&&this.lookaheadCharCode()===40}tsParseExternalModuleReference(){let c=this.startNode();return this.expectContextual("require"),this.expect(n.parenL),this.match(n.string)||this.unexpected(),c.expression=this.parseExprAtom(),this.expect(n.parenR),this.finishNode(c,"TSExternalModuleReference")}tsParseEntityName(c=!0){let f=this.parseIdent(c);for(;this.eat(n.dot);){let b=this.startNodeAtNode(f);b.left=f,b.right=this.parseIdent(c),f=this.finishNode(b,"TSQualifiedName")}return f}tsParseEnumMember(){let c=this.startNode();return c.id=this.match(n.string)?this.parseLiteral(this.value):this.parseIdent(!0),this.eat(n.eq)&&(c.initializer=this.parseMaybeAssign()),this.finishNode(c,"TSEnumMember")}tsParseEnumDeclaration(c,f={}){f.const&&(c.const=!0),f.declare&&(c.declare=!0),this.expectContextual("enum"),c.id=this.parseIdent();let b=f.const?be.BIND_TS_CONST_ENUM:be.BIND_TS_ENUM;return this.checkLValSimple(c.id,b),this.expect(n.braceL),c.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(n.braceR),this.finishNode(c,"TSEnumDeclaration")}tsParseModuleBlock(){let c=this.startNode();for(this.enterScope(Fk),this.expect(n.braceL),c.body=[];this.type!==n.braceR;){let f=this.parseStatement(null,!0);c.body.push(f)}return this.next(),super.exitScope(),this.finishNode(c,"TSModuleBlock")}tsParseAmbientExternalModuleDeclaration(c){return this.ts_isContextual(v.global)?(c.global=!0,c.id=this.parseIdent()):this.match(n.string)?c.id=this.parseLiteral(this.value):this.unexpected(),this.match(n.braceL)?(this.enterScope(Qi),c.body=this.tsParseModuleBlock(),super.exitScope()):super.semicolon(),this.finishNode(c,"TSModuleDeclaration")}tsTryParseDeclare(c){if(this.isLineTerminator())return;let f=this.type,b;return this.isContextual("let")&&(f=n._var,b="let"),this.tsInAmbientContext(()=>{if(f===n._function)return c.declare=!0,this.parseFunctionStatement(c,!1,!0);if(f===n._class)return c.declare=!0,this.parseClass(c,!0);if(f===v.enum)return this.tsParseEnumDeclaration(c,{declare:!0});if(f===v.global)return this.tsParseAmbientExternalModuleDeclaration(c);if(f===n._const||f===n._var)return!this.match(n._const)||!this.isLookaheadContextual("enum")?(c.declare=!0,this.parseVarStatement(c,b||this.value,!0)):(this.expect(n._const),this.tsParseEnumDeclaration(c,{const:!0,declare:!0}));if(f===v.interface){let x=this.tsParseInterfaceDeclaration(c,{declare:!0});if(x)return x}if(S(f))return this.tsParseDeclaration(c,this.value,!0)})}tsIsListTerminator(c){switch(c){case"EnumMembers":case"TypeMembers":return this.match(n.braceR);case"HeritageClauseElement":return this.match(n.braceL);case"TupleElementTypes":return this.match(n.bracketR);case"TypeParametersOrArguments":return this.tsMatchRightRelational()}}tsParseDelimitedListWorker(c,f,b,x){let A=[],I=-1;for(;!this.tsIsListTerminator(c);){I=-1;let D=f();if(D==null)return;if(A.push(D),this.eat(n.comma)){I=this.lastTokStart;continue}if(this.tsIsListTerminator(c))break;b&&this.expect(n.comma);return}return x&&(x.value=I),A}tsParseDelimitedList(c,f,b){return dE(this.tsParseDelimitedListWorker(c,f,!0,b))}tsParseBracketedList(c,f,b,x,A){x||(b?this.expect(n.bracketL):this.expect(n.relational));let I=this.tsParseDelimitedList(c,f,A);return b?this.expect(n.bracketR):this.expect(n.relational),I}tsParseTypeParameterName(){return this.parseIdent().name}tsEatThenParseType(c){return this.match(c)?this.tsNextThenParseType():void 0}tsExpectThenParseType(c){return this.tsDoThenParseType(()=>this.expect(c))}tsNextThenParseType(){return this.tsDoThenParseType(()=>this.next())}tsDoThenParseType(c){return this.tsInType(()=>(c(),this.tsParseType()))}tsSkipParameterStart(){if(S(this.type)||this.match(n._this))return this.next(),!0;if(this.match(n.braceL))try{return this.parseObj(!0),!0}catch{return!1}if(this.match(n.bracketL)){this.next();try{return this.parseBindingList(n.bracketR,!0,!0),!0}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(n.parenR)||this.match(n.ellipsis)||this.tsSkipParameterStart()&&(this.match(n.colon)||this.match(n.comma)||this.match(n.question)||this.match(n.eq)||this.match(n.parenR)&&(this.next(),this.match(n.arrow))))}tsIsStartOfFunctionType(){return this.tsMatchLeftRelational()?!0:this.match(n.parenL)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsInAllowConditionalTypesContext(c){let f=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!1;try{return c()}finally{this.inDisallowConditionalTypesContext=f}}tsParseBindingListForSignature(){return super.parseBindingList(n.parenR,!0,!0).map(c=>(c.type!=="Identifier"&&c.type!=="RestElement"&&c.type!=="ObjectPattern"&&c.type!=="ArrayPattern"&&this.raise(c.start,Q.UnsupportedSignatureParameterKind({type:c.type})),c))}tsParseTypePredicateAsserts(){if(this.type!==v.asserts)return!1;let c=this.containsEsc;return this.next(),!S(this.type)&&!this.match(n._this)?!1:(c&&this.raise(this.lastTokStart,"Escape sequence in keyword asserts"),!0)}tsParseThisTypeNode(){let c=this.startNode();return this.next(),this.finishNode(c,"TSThisType")}tsParseTypeAnnotation(c=!0,f=this.startNode()){return this.tsInType(()=>{c&&this.expect(n.colon),f.typeAnnotation=this.tsParseType()}),this.finishNode(f,"TSTypeAnnotation")}tsParseThisTypePredicate(c){this.next();let f=this.startNodeAtNode(c);return f.parameterName=c,f.typeAnnotation=this.tsParseTypeAnnotation(!1),f.asserts=!1,this.finishNode(f,"TSTypePredicate")}tsParseThisTypeOrThisTypePredicate(){let c=this.tsParseThisTypeNode();return this.isContextual("is")&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(c):c}tsParseTypePredicatePrefix(){let c=this.parseIdent();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),c}tsParseTypeOrTypePredicateAnnotation(c){return this.tsInType(()=>{let f=this.startNode();this.expect(c);let b=this.startNode(),x=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(x){let G=this.tsParseTypeAnnotation(!1);return b.parameterName=x,b.typeAnnotation=G,b.asserts=!1,f.typeAnnotation=this.finishNode(b,"TSTypePredicate"),this.finishNode(f,"TSTypeAnnotation")}let A=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(A&&this.match(n._this)){let G=this.tsParseThisTypeOrThisTypePredicate();return G.type==="TSThisType"?(b.parameterName=G,b.asserts=!0,b.typeAnnotation=null,G=this.finishNode(b,"TSTypePredicate")):(this.resetStartLocationFromNode(G,b),G.asserts=!0),f.typeAnnotation=G,this.finishNode(f,"TSTypeAnnotation")}let I=A&&this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!I)return A?(b.parameterName=this.parseIdent(),b.asserts=A,b.typeAnnotation=null,f.typeAnnotation=this.finishNode(b,"TSTypePredicate"),this.finishNode(f,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,f);let D=this.tsParseTypeAnnotation(!1);return b.parameterName=I,b.typeAnnotation=D,b.asserts=A,f.typeAnnotation=this.finishNode(b,"TSTypePredicate"),this.finishNode(f,"TSTypeAnnotation")})}tsFillSignature(c,f){let b=c===n.arrow,x="parameters",A="typeAnnotation";f.typeParameters=this.tsTryParseTypeParameters(),this.expect(n.parenL),f[x]=this.tsParseBindingListForSignature(),b?f[A]=this.tsParseTypeOrTypePredicateAnnotation(c):this.match(c)&&(f[A]=this.tsParseTypeOrTypePredicateAnnotation(c))}tsTryNextParseConstantContext(){if(this.lookahead().type!==n._const)return null;this.next();let c=this.tsParseTypeReference();return(c.typeParameters||c.typeArguments)&&this.raise(c.typeName.start,Q.CannotFindName({name:"const"})),c}tsParseFunctionOrConstructorType(c,f){let b=this.startNode();return c==="TSConstructorType"&&(b.abstract=!!f,f&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(n.arrow,b)),this.finishNode(b,c)}tsParseUnionOrIntersectionType(c,f,b){let x=this.startNode(),A=this.eat(b),I=[];do I.push(f());while(this.eat(b));return I.length===1&&!A?I[0]:(x.types=I,this.finishNode(x,c))}tsCheckTypeAnnotationForReadOnly(c){switch(c.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(c.start,Q.UnexpectedReadonly)}}tsParseTypeOperator(){let c=this.startNode(),f=this.value;return this.next(),c.operator=f,c.typeAnnotation=this.tsParseTypeOperatorOrHigher(),f==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(c),this.finishNode(c,"TSTypeOperator")}tsParseConstraintForInferType(){if(this.eat(n._extends)){let c=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.inDisallowConditionalTypesContext||!this.match(n.question))return c}}tsParseInferType(){let c=this.startNode();this.expectContextual("infer");let f=this.startNode();return f.name=this.tsParseTypeParameterName(),f.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),c.typeParameter=this.finishNode(f,"TSTypeParameter"),this.finishNode(c,"TSInferType")}tsParseLiteralTypeNode(){let c=this.startNode();return c.literal=(()=>{switch(this.type){case n.num:case n.string:case n._true:case n._false:return this.parseExprAtom();default:this.unexpected()}})(),this.finishNode(c,"TSLiteralType")}tsParseImportType(){let c=this.startNode();return this.expect(n._import),this.expect(n.parenL),this.match(n.string)||this.raise(this.start,Q.UnsupportedImportTypeArgument),c.argument=this.parseExprAtom(),this.expect(n.parenR),this.eat(n.dot)&&(c.qualifier=this.tsParseEntityName()),this.tsMatchLeftRelational()&&(c.typeArguments=this.tsParseTypeArguments()),this.finishNode(c,"TSImportType")}tsParseTypeQuery(){let c=this.startNode();return this.expect(n._typeof),this.match(n._import)?c.exprName=this.tsParseImportType():c.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational()&&(c.typeArguments=this.tsParseTypeArguments()),this.finishNode(c,"TSTypeQuery")}tsParseMappedTypeParameter(){let c=this.startNode();return c.name=this.tsParseTypeParameterName(),c.constraint=this.tsExpectThenParseType(n._in),this.finishNode(c,"TSTypeParameter")}tsParseMappedType(){let c=this.startNode();return this.expect(n.braceL),this.match(n.plusMin)?(c.readonly=this.value,this.next(),this.expectContextual("readonly")):this.eatContextual("readonly")&&(c.readonly=!0),this.expect(n.bracketL),c.typeParameter=this.tsParseMappedTypeParameter(),c.nameType=this.eatContextual("as")?this.tsParseType():null,this.expect(n.bracketR),this.match(n.plusMin)?(c.optional=this.value,this.next(),this.expect(n.question)):this.eat(n.question)&&(c.optional=!0),c.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(n.braceR),this.finishNode(c,"TSMappedType")}tsParseTypeLiteral(){let c=this.startNode();return c.members=this.tsParseObjectTypeMembers(),this.finishNode(c,"TSTypeLiteral")}tsIsTupleElementLabel(){if(!C(this.type))return!1;let c=this.lookahead();return c.type===n.colon?!0:c.type!==n.question?!1:this.lookahead(2).type===n.colon}tsParseTupleElementType(){let c=this.startLoc,f=this.start,b=this.eat(n.ellipsis),x;if(this.tsIsTupleElementLabel()){let A=this.startNode();A.label=this.parseIdent(!0),A.optional=this.eat(n.question),this.expect(n.colon),A.elementType=this.tsParseType(),x=this.finishNode(A,"TSNamedTupleMember")}else{x=this.tsParseType();let A=this.eat(n.question);if(this.eat(n.colon)&&this.raise(x.start,Q.InvalidTupleMemberLabel),A){let I=this.startNodeAtNode(x);I.typeAnnotation=x,x=this.finishNode(I,"TSOptionalType")}}if(b){let A=this.startNodeAt(f,c);A.typeAnnotation=x,x=this.finishNode(A,"TSRestType")}return x}tsParseTupleType(){let c=this.startNode();c.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let f=!1;return c.elementTypes.forEach(b=>{let{type:x}=b;f&&x!=="TSRestType"&&x!=="TSOptionalType"&&!(x==="TSNamedTupleMember"&&b.optional)&&this.raise(b.start,Q.OptionalTypeBeforeRequired),f||=x==="TSNamedTupleMember"&&b.optional||x==="TSOptionalType",x==="TSRestType"&&(b=b.typeAnnotation)}),this.finishNode(c,"TSTupleType")}tsParseTemplateLiteralType(){let c=this.startNode();return c.literal=this.parseTemplate({isTagged:!1}),this.finishNode(c,"TSLiteralType")}tsParseTypeReference(){let c=this.startNode();return c.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational()&&(c.typeArguments=this.tsParseTypeArguments()),this.finishNode(c,"TSTypeReference")}tsMatchLeftRelational(){return this.match(n.relational)&&this.value==="<"}tsMatchRightRelational(){return this.match(n.relational)&&this.value===">"}tsParseParenthesizedType(){let c=this.startNode();return this.expect(n.parenL),c.typeAnnotation=this.tsParseType(),this.expect(n.parenR),this.finishNode(c,"TSParenthesizedType")}tsParseNonArrayType(){switch(this.type){case n.string:case n.num:case n._true:case n._false:return this.tsParseLiteralTypeNode();case n.plusMin:if(this.value==="-"){let c=this.startNode();return this.lookahead().type!==n.num&&this.unexpected(),c.literal=this.parseMaybeUnary(),this.finishNode(c,"TSLiteralType")}break;case n._this:return this.tsParseThisTypeOrThisTypePredicate();case n._typeof:return this.tsParseTypeQuery();case n._import:return this.tsParseImportType();case n.braceL:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case n.bracketL:return this.tsParseTupleType();case n.parenL:return this.tsParseParenthesizedType();case n.backQuote:case n.dollarBraceL:return this.tsParseTemplateLiteralType();default:{let{type:c}=this;if(C(c)||c===n._void||c===n._null){let f=c===n._void?"TSVoidKeyword":c===n._null?"TSNullKeyword":fE(this.value);if(f!==void 0&&this.lookaheadCharCode()!==46){let b=this.startNode();return this.next(),this.finishNode(b,f)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let c=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(n.bracketL);)if(this.match(n.bracketR)){let f=this.startNodeAtNode(c);f.elementType=c,this.expect(n.bracketR),c=this.finishNode(f,"TSArrayType")}else{let f=this.startNodeAtNode(c);f.objectType=c,f.indexType=this.tsParseType(),this.expect(n.bracketR),c=this.finishNode(f,"TSIndexedAccessType")}return c}tsParseTypeOperatorOrHigher(){return P(this.type)&&!this.containsEsc?this.tsParseTypeOperator():this.isContextual("infer")?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),n.bitwiseAND)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),n.bitwiseOR)}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(n._new)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseType(){dm(this.inType);let c=this.tsParseNonConditionalType();if(this.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(n._extends))return c;let f=this.startNodeAtNode(c);return f.checkType=c,f.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(n.question),f.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(n.colon),f.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(f,"TSConditionalType")}tsIsUnambiguouslyIndexSignature(){return this.next(),S(this.type)?(this.next(),this.match(n.colon)):!1}tsInType(c){let f=this.inType;this.inType=!0;try{return c()}finally{this.inType=f}}tsTryParseIndexSignature(c){if(!(this.match(n.bracketL)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(n.bracketL);let f=this.parseIdent();f.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(f),this.expect(n.bracketR),c.parameters=[f];let b=this.tsTryParseTypeAnnotation();return b&&(c.typeAnnotation=b),this.tsParseTypeMemberSemicolon(),this.finishNode(c,"TSIndexSignature")}tsParseNoneModifiers(c){this.tsParseModifiers({modified:c,allowedModifiers:[],disallowedModifiers:["in","out"],errorTemplate:Q.InvalidModifierOnTypeParameterPositions})}tsParseTypeParameter(c=this.tsParseNoneModifiers.bind(this)){let f=this.startNode();return c(f),f.name=this.tsParseTypeParameterName(),f.constraint=this.tsEatThenParseType(n._extends),f.default=this.tsEatThenParseType(n.eq),this.finishNode(f,"TSTypeParameter")}tsParseTypeParameters(c){let f=this.startNode();this.tsMatchLeftRelational()||this.matchJsx("jsxTagStart")?this.next():this.unexpected();let b={value:-1};return f.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,c),!1,!0,b),f.params.length===0&&this.raise(this.start,Q.EmptyTypeParameters),b.value!==-1&&this.addExtra(f,"trailingComma",b.value),this.finishNode(f,"TSTypeParameterDeclaration")}tsTryParseTypeParameters(c){if(this.tsMatchLeftRelational())return this.tsParseTypeParameters(c)}tsTryParse(c){let f=this.beginParseEffectScope(),b;try{b=c()}catch(x){throw this.parseEffects.rollback(f),x}if(b!==void 0&&b!==!1)return this.parseEffects.commit(f),b;this.parseEffects.rollback(f)}tsTokenCanFollowModifier(){return(this.match(n.bracketL)||this.match(n.braceL)||this.match(n.star)||this.match(n.ellipsis)||this.match(n.privateId)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(!0),this.tsTokenCanFollowModifier()}tsParseModifier(c,f){let b=this.value;if(c.indexOf(b)!==-1&&!this.containsEsc){if(f&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return b}}tsParseModifiersByMap({modified:c,map:f}){for(let b of Object.keys(f))c[b]=f[b]}tsParseModifiers({modified:c,allowedModifiers:f,disallowedModifiers:b,stopOnStartOfClassStaticBlock:x,errorTemplate:A=Q.InvalidModifierOnTypeMember}){let I={},D=(V,B,pe,Ee)=>{B===pe&&c[Ee]&&this.raise(V.column,Q.InvalidModifiersOrder({orderedModifiers:[pe,Ee]}))},G=(V,B,pe,Ee)=>{(c[pe]&&B===Ee||c[Ee]&&B===pe)&&this.raise(V.column,Q.IncompatibleModifiers({modifiers:[pe,Ee]}))};for(;;){let V=this.startLoc,B=this.tsParseModifier(f.concat(b??[]),x);if(!B)break;mm(B)?c.accessibility?this.raise(this.start,Q.DuplicateAccessibilityModifier()):(D(V,B,B,"override"),D(V,B,B,"static"),D(V,B,B,"readonly"),D(V,B,B,"accessor"),I.accessibility=B,c.accessibility=B):oE(B)?c[B]?this.raise(this.start,Q.DuplicateModifier({modifier:B})):(D(V,B,"in","out"),I[B]=B,c[B]=!0):nE(B)?c[B]?this.raise(this.start,Q.DuplicateModifier({modifier:B})):(G(V,B,"accessor","readonly"),G(V,B,"accessor","override"),I[B]=B,c[B]=!0):B==="const"?c[B]?this.raise(this.start,Q.DuplicateModifier({modifier:B})):(I[B]=B,c[B]=!0):Object.hasOwnProperty.call(c,B)?this.raise(this.start,Q.DuplicateModifier({modifier:B})):(D(V,B,"static","readonly"),D(V,B,"static","override"),D(V,B,"override","readonly"),D(V,B,"abstract","override"),G(V,B,"declare","override"),G(V,B,"static","abstract"),I[B]=B,c[B]=!0),b?.includes(B)&&this.raise(this.start,A)}return I}tsParseInOutModifiers(c){this.tsParseModifiers({modified:c,allowedModifiers:["in","out"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:Q.InvalidModifierOnTypeParameter})}tsParseClassTypeParameterModifiers(c){this.tsParseModifiers({modified:c,allowedModifiers:["const","in","out"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:Q.InvalidModifierOnTypeParameter})}parseMaybeUnary(c,f,b,x){return!e?.jsx&&this.tsMatchLeftRelational()?this.tsParseTypeAssertion():super.parseMaybeUnary(c,f,b,x)}tsParseTypeAssertion(){r&&this.raise(this.start,Q.ReservedTypeAssertion);let c=this.tryParse(()=>{let f=this.startNode(),b=this.tsTryNextParseConstantContext();return f.typeAnnotation=b||this.tsNextThenParseType(),this.expect(n.relational),f.expression=this.parseMaybeUnary(),this.finishNode(f,"TSTypeAssertion")});return c.error?this.tsParseTypeParameters(this.tsParseConstModifier):c.node}tsParseTypeArguments(c=!1){let f=this.startNode();return f.params=this.tsInType(()=>this.tsInNoContext(()=>(this.expect(n.relational),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),f.params.length===0&&this.raise(this.start,Q.EmptyTypeArguments),c&&this.curContext()!==E.tc_oTag&&this.reScan_lt_gt(),this.tsMatchRightRelational()||this.unexpected(),this.exprAllowed=!1,this.next(),this.finishNode(f,"TSTypeParameterInstantiation")}tsParseHeritageClause(c){let f=this.start,b=this.tsParseDelimitedList("HeritageClauseElement",()=>{let x=this.startNode();return x.expression=this.tsParseEntityName(),this.tsMatchLeftRelational()&&(x.typeParameters=this.tsParseTypeArguments()),this.finishNode(x,"TSExpressionWithTypeArguments")});return b.length||this.raise(f,Q.EmptyHeritageClauseType({token:c})),b}tsParseTypeMemberSemicolon(){!this.eat(n.comma)&&!this.isLineTerminator()&&this.expect(n.semi)}tsTryParseAndCatch(c){let f=this.tryParse(b=>c()||b());if(!(f.aborted||!f.node))return f.node}tsParseSignatureMember(c,f){return this.tsFillSignature(n.colon,f),this.tsParseTypeMemberSemicolon(),this.finishNode(f,c)}tsParsePropertyOrMethodSignature(c,f){this.eat(n.question)&&(c.optional=!0);let b=c;if(this.match(n.parenL)||this.tsMatchLeftRelational()){f&&this.raise(c.start,Q.ReadonlyForMethodSignature);let x=b;x.kind&&this.tsMatchLeftRelational()&&this.raise(this.start,Q.AccesorCannotHaveTypeParameters),this.tsFillSignature(n.colon,x),this.tsParseTypeMemberSemicolon();let A="parameters",I="typeAnnotation";if(x.kind==="get")x[A].length>0&&(this.raise(this.start,"A 'get' accesor must not have any formal parameters."),this.isThisParam(x[A][0])&&this.raise(this.start,Q.AccesorCannotDeclareThisParameter));else if(x.kind==="set"){if(x[A].length!==1)this.raise(this.start,"A 'get' accesor must not have any formal parameters.");else{let D=x[A][0];this.isThisParam(D)&&this.raise(this.start,Q.AccesorCannotDeclareThisParameter),D.type==="Identifier"&&D.optional&&this.raise(this.start,Q.SetAccesorCannotHaveOptionalParameter),D.type==="RestElement"&&this.raise(this.start,Q.SetAccesorCannotHaveRestParameter)}x[I]&&this.raise(x[I].start,Q.SetAccesorCannotHaveReturnType)}else x.kind="method";return this.finishNode(x,"TSMethodSignature")}else{let x=b;f&&(x.readonly=!0);let A=this.tsTryParseTypeAnnotation();return A&&(x.typeAnnotation=A),this.tsParseTypeMemberSemicolon(),this.finishNode(x,"TSPropertySignature")}}tsParseTypeMember(){let c=this.startNode();if(this.match(n.parenL)||this.tsMatchLeftRelational())return this.tsParseSignatureMember("TSCallSignatureDeclaration",c);if(this.match(n._new)){let b=this.startNode();return this.next(),this.match(n.parenL)||this.tsMatchLeftRelational()?this.tsParseSignatureMember("TSConstructSignatureDeclaration",c):(c.key=this.createIdentifier(b,"new"),this.tsParsePropertyOrMethodSignature(c,!1))}this.tsParseModifiers({modified:c,allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]});let f=this.tsTryParseIndexSignature(c);return f||(this.parsePropertyName(c),!c.computed&&c.key.type==="Identifier"&&(c.key.name==="get"||c.key.name==="set")&&this.tsTokenCanFollowModifier()&&(c.kind=c.key.name,this.parsePropertyName(c)),this.tsParsePropertyOrMethodSignature(c,!!c.readonly))}tsParseList(c,f){let b=[];for(;!this.tsIsListTerminator(c);)b.push(f());return b}tsParseObjectTypeMembers(){this.expect(n.braceL);let c=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(n.braceR),c}tsParseInterfaceDeclaration(c,f={}){if(this.hasFollowingLineBreak())return null;if(this.expectContextual("interface"),f.declare&&(c.declare=!0),S(this.type)){c.id=this.parseIdent(),this.checkLValSimple(c.id,be.BIND_TS_INTERFACE);let x=this.currentScope();this.maybeExportDefined(x,c.id.name)}else c.id=null,this.raise(this.start,Q.MissingInterfaceName);c.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.eat(n._extends)&&(c.extends=this.tsParseHeritageClause("extends"));let b=this.startNode();return b.body=this.tsParseInterfaceBody(),c.body=this.finishNode(b,"TSInterfaceBody"),this.finishNode(c,"TSInterfaceDeclaration")}tsParseInterfaceBody(){this.expect(n.braceL);let c=this.inType;this.inType=!0;let f=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.inType=c,this.expect(n.braceR),f}tsParseAbstractDeclaration(c){if(this.match(n._class))return c.abstract=!0,this.parseClass(c,!0);if(this.ts_isContextual(v.interface)){if(!this.hasFollowingLineBreak())return c.abstract=!0,this.tsParseInterfaceDeclaration(c)}else this.unexpected(c.start)}tsIsDeclarationStart(){return k(this.type)}tsParseExpressionStatement(c,f){switch(f.name){case"declare":{let b=this.tsTryParseDeclare(c);if(b)return b.declare=!0,b;break}case"global":if(this.match(n.braceL)){this.enterScope(Qi);let b=c;return b.global=!0,b.id=f,b.body=this.tsParseModuleBlock(),super.exitScope(),this.finishNode(b,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(c,f.name,!1)}}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsIsExportDefaultSpecifier(){let{type:c}=this,f=this.isAsyncFunction(),b=this.isLet();if(S(c)){if(f&&!this.containsEsc||b)return!1;if((c===v.type||c===v.interface)&&!this.containsEsc){let I=this.lookahead();if(S(I.type)&&!this.isContextualWithState("from",I)||I.type===n.braceL)return!1}}else if(!this.match(n._default))return!1;let x=this.nextTokenStart(),A=this.isUnparsedContextual(x,"from");if(this.input.charCodeAt(x)===44||S(this.type)&&A)return!0;if(this.match(n._default)&&A){let I=this.input.charCodeAt(this.nextTokenStartSince(x+4));return I===34||I===39}return!1}tsInAmbientContext(c){let f=this.isAmbientContext;this.isAmbientContext=!0;try{return c()}finally{this.isAmbientContext=f}}tsCheckLineTerminator(c){return c?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsParseModuleOrNamespaceDeclaration(c,f=!1){if(c.id=this.parseIdent(),f||this.checkLValSimple(c.id,be.BIND_TS_NAMESPACE),this.eat(n.dot)){let b=this.startNode();this.tsParseModuleOrNamespaceDeclaration(b,!0),c.body=b}else this.enterScope(Qi),c.body=this.tsParseModuleBlock(),super.exitScope();return this.finishNode(c,"TSModuleDeclaration")}checkLValSimple(c,f=be.BIND_NONE,b){for(;c.type==="TSNonNullExpression"||c.type==="TSAsExpression"||c.type==="TSSatisfiesExpression"||c.type==="TSTypeAssertion";)c=c.expression;return super.checkLValSimple(c,f,b)}isSimpleAssignTarget(c){for(;c.type==="TSNonNullExpression"||c.type==="TSAsExpression"||c.type==="TSSatisfiesExpression"||c.type==="TSTypeAssertion";)c=c.expression;return super.isSimpleAssignTarget(c)}tsParseTypeAliasDeclaration(c){c.id=this.parseIdent(),this.checkLValSimple(c.id,be.BIND_TS_TYPE);let f=this.currentScope();return this.maybeExportDefined(f,c.id.name),c.typeAnnotation=this.tsInType(()=>{if(c.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.expect(n.eq),this.ts_isContextual(v.interface)&&this.lookahead().type!==n.dot){let b=this.startNode();return this.next(),this.finishNode(b,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(c,"TSTypeAliasDeclaration")}tsParseDeclaration(c,f,b){switch(f){case"abstract":if(this.tsCheckLineTerminator(b)&&(this.match(n._class)||S(this.type)))return this.tsParseAbstractDeclaration(c);break;case"module":if(this.tsCheckLineTerminator(b)){if(this.match(n.string))return this.tsParseAmbientExternalModuleDeclaration(c);if(S(this.type))return this.tsParseModuleOrNamespaceDeclaration(c)}break;case"namespace":if(this.tsCheckLineTerminator(b)&&S(this.type))return this.tsParseModuleOrNamespaceDeclaration(c);break;case"type":if(this.tsCheckLineTerminator(b)&&S(this.type))return this.tsParseTypeAliasDeclaration(c);break}}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.value,!0)}tsParseImportEqualsDeclaration(c,f){c.isExport=f||!1,c.id=this.parseIdent(),this.checkLValSimple(c.id,be.BIND_LEXICAL),super.expect(n.eq);let b=this.tsParseModuleReference();return c.importKind==="type"&&b.type!=="TSExternalModuleReference"&&this.raise(b.start,Q.ImportAliasHasImportType),c.moduleReference=b,super.semicolon(),this.finishNode(c,"TSImportEqualsDeclaration")}isExportDefaultSpecifier(){if(this.tsIsDeclarationStart())return!1;let{type:c}=this;if(S(c)){if(this.isContextual("async")||this.isContextual("let"))return!1;if((c===v.type||c===v.interface)&&!this.containsEsc){let x=this.lookahead();if(S(x.type)&&!this.isContextualWithState("from",x)||x.type===n.braceL)return!1}}else if(!this.match(n._default))return!1;let f=this.nextTokenStart(),b=this.isUnparsedContextual(f,"from");if(this.input.charCodeAt(f)===44||S(this.type)&&b)return!0;if(this.match(n._default)&&b){let x=this.input.charCodeAt(this.nextTokenStartSince(f+4));return x===34||x===39}return!1}parseTemplate({isTagged:c=!1}={}){let f=this.startNode();this.next(),f.expressions=[];let b=this.parseTemplateElement({isTagged:c});for(f.quasis=[b];!b.tail;)this.type===n.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(n.dollarBraceL),f.expressions.push(this.inType?this.tsParseType():this.parseExpression()),this.expect(n.braceR),f.quasis.push(b=this.parseTemplateElement({isTagged:c}));return this.next(),this.finishNode(f,"TemplateLiteral")}parseFunction(c,f,b,x,A){this.initFunction(c),(this.ecmaVersion>=9||this.ecmaVersion>=6&&!x)&&(this.type===n.star&&f&fm&&this.unexpected(),c.generator=this.eat(n.star)),this.ecmaVersion>=8&&(c.async=!!x),f&zs&&(c.id=f&lE&&this.type!==n.name?null:this.parseIdent());let I=this.yieldPos,D=this.awaitPos,G=this.awaitIdentPos,V=this.maybeInArrowParameters;this.maybeInArrowParameters=!1,this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Fc(c.async,c.generator)),f&zs||(c.id=this.type===n.name?this.parseIdent():null),this.parseFunctionParams(c);let B=f&zs;return this.parseFunctionBody(c,b,!1,A,{isFunctionDeclaration:B}),B&&this.isAmbientContext&&c.id&&this.currentScope().flags&be.SCOPE_TOP&&this.declareName(c.id.name,be.BIND_FLAGS_TS_EXPORT_ONLY,c.id.start),this.yieldPos=I,this.awaitPos=D,this.awaitIdentPos=G,f&zs&&c.id&&!(f&fm)&&(c.body?this.checkLValSimple(c.id,this.strict||c.generator||c.async?this.treatFunctionsAsVar?be.BIND_VAR:be.BIND_LEXICAL:be.BIND_FUNCTION):this.checkLValSimple(c.id,be.BIND_NONE)),this.maybeInArrowParameters=V,this.finishNode(c,B?"FunctionDeclaration":"FunctionExpression")}parseFunctionBody(c,f=!1,b=!1,x=!1,A){this.match(n.colon)&&(c.returnType=this.tsParseTypeOrTypePredicateAnnotation(n.colon));let I=A?.isFunctionDeclaration?"TSDeclareFunction":A?.isClassMethod?"TSDeclareMethod":void 0;return I&&!this.match(n.braceL)&&this.isLineTerminator()?(this.exitScope(),this.finishNode(c,I)):I==="TSDeclareFunction"&&this.isAmbientContext&&(this.raise(c.start,Q.DeclareFunctionHasImplementation),c.declare)?(super.parseFunctionBody(c,f,b,!1),this.finishNode(c,I)):(super.parseFunctionBody(c,f,b,x),c)}parseNew(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");let c=this.startNode(),f=this.parseIdent(!0);if(this.ecmaVersion>=6&&this.eat(n.dot)){c.meta=f;let D=this.containsEsc;return c.property=this.parseIdent(!0),c.property.name!=="target"&&this.raiseRecoverable(c.property.start,"The only valid meta property for new is 'new.target'"),D&&this.raiseRecoverable(c.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(c.start,"'new.target' can only be used in functions and class static block"),this.finishNode(c,"MetaProperty")}let b=this.start,x=this.startLoc,A=this.type===n._import;c.callee=this.parseSubscripts(this.parseExprAtom(),b,x,!0,!1),A&&c.callee.type==="ImportExpression"&&this.raise(b,"Cannot use new with import()");let{callee:I}=c;return I.type==="TSInstantiationExpression"&&!I.extra?.parenthesized&&(c.typeArguments=I.typeArguments,c.callee=I.expression),this.eat(n.parenL)?c.arguments=this.parseExprList(n.parenR,this.ecmaVersion>=8,!1):c.arguments=[],this.finishNode(c,"NewExpression")}parseExprOp(c,f,b,x,A){if(n._in.binop>x&&!this.hasPrecedingLineBreak()){let I;if(this.isContextual("as")&&(I="TSAsExpression"),this.isContextual("satisfies")&&(I="TSSatisfiesExpression"),I){let D=this.startNodeAt(f,b);D.expression=c;let G=this.tsTryNextParseConstantContext();return G?D.typeAnnotation=G:D.typeAnnotation=this.tsNextThenParseType(),this.finishNode(D,I),this.reScan_lt_gt(),this.parseExprOp(D,f,b,x,A)}}return super.parseExprOp(c,f,b,x,A)}parseImportSpecifiers(){let c=[],f=!0;if(a.tokenIsIdentifier(this.type)&&(c.push(this.parseImportDefaultSpecifier()),!this.eat(n.comma)))return c;if(this.type===n.star)return c.push(this.parseImportNamespaceSpecifier()),c;for(this.expect(n.braceL);!this.eat(n.braceR);){if(f)f=!1;else if(this.expect(n.comma),this.afterTrailingComma(n.braceR))break;c.push(this.parseImportSpecifier())}return c}parseImport(c){let f=this.lookahead();if(c.importKind="value",this.importOrExportOuterKind="value",S(f.type)||this.match(n.star)||this.match(n.braceL)){let b=this.lookahead(2);if(b.type!==n.comma&&!this.isContextualWithState("from",b)&&b.type!==n.eq&&this.ts_eatContextualWithState("type",1,f)&&(this.importOrExportOuterKind="type",c.importKind="type",f=this.lookahead(),b=this.lookahead(2)),S(f.type)&&b.type===n.eq){this.next();let x=this.tsParseImportEqualsDeclaration(c);return this.importOrExportOuterKind="value",x}}return this.next(),this.type===n.string?(c.specifiers=[],c.source=this.parseExprAtom()):(c.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),c.source=this.type===n.string?this.parseExprAtom():this.unexpected()),this.parseMaybeImportAttributes(c),this.semicolon(),this.finishNode(c,"ImportDeclaration"),this.importOrExportOuterKind="value",c.importKind==="type"&&c.specifiers.length>1&&c.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(c.start,Q.TypeImportCannotSpecifyDefaultAndNamed),c}parseExportDefaultDeclaration(){if(this.isAbstractClass()){let c=this.startNode();return this.next(),c.abstract=!0,this.parseClass(c,!0)}if(this.match(v.interface)){let c=this.tsParseInterfaceDeclaration(this.startNode());if(c)return c}return super.parseExportDefaultDeclaration()}parseExportAllDeclaration(c,f){return this.ecmaVersion>=11&&(this.eatContextual("as")?(c.exported=this.parseModuleExportName(),this.checkExport(f,c.exported,this.lastTokStart)):c.exported=null),this.expectContextual("from"),this.type!==n.string&&this.unexpected(),c.source=this.parseExprAtom(),this.parseMaybeImportAttributes(c),this.semicolon(),this.finishNode(c,"ExportAllDeclaration")}parseDynamicImport(c){if(this.next(),c.source=this.parseMaybeAssign(),this.eat(n.comma)){let f=this.parseExpression();c.arguments=[f]}if(!this.eat(n.parenR)){let f=this.start;this.eat(n.comma)&&this.eat(n.parenR)?this.raiseRecoverable(f,"Trailing comma is not allowed in import()"):this.unexpected(f)}return this.finishNode(c,"ImportExpression")}parseExport(c,f){let b=this.lookahead();if(this.ts_eatWithState(n._import,2,b)){this.ts_isContextual(v.type)&&this.lookaheadCharCode()!==61?(c.importKind="type",this.importOrExportOuterKind="type",this.next()):(c.importKind="value",this.importOrExportOuterKind="value");let x=this.tsParseImportEqualsDeclaration(c,!0);return this.importOrExportOuterKind=void 0,x}else if(this.ts_eatWithState(n.eq,2,b)){let x=c;return x.expression=this.parseExpression(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(x,"TSExportAssignment")}else if(this.ts_eatContextualWithState("as",2,b)){let x=c;return this.expectContextual("namespace"),x.id=this.parseIdent(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(x,"TSNamespaceExportDeclaration")}else{let x=this.lookahead(2).type;if(this.ts_isContextualWithState(b,v.type)&&(x===n.braceL||x===n.star)?(this.next(),this.importOrExportOuterKind="type",c.exportKind="type"):(this.importOrExportOuterKind="value",c.exportKind="value"),this.next(),this.eat(n.star))return this.parseExportAllDeclaration(c,f);if(this.eat(n._default))return this.checkExport(f,"default",this.lastTokStart),c.declaration=this.parseExportDefaultDeclaration(),this.finishNode(c,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())c.declaration=this.parseExportDeclaration(c),c.declaration.type==="VariableDeclaration"?this.checkVariableExport(f,c.declaration.declarations):this.checkExport(f,c.declaration.id,c.declaration.id.start),c.specifiers=[],c.source=null;else{if(c.declaration=null,c.specifiers=this.parseExportSpecifiers(f),this.eatContextual("from"))this.type!==n.string&&this.unexpected(),c.source=this.parseExprAtom(),this.parseMaybeImportAttributes(c);else{for(let A of c.specifiers)this.checkUnreserved(A.local),this.checkLocalExport(A.local),A.local.type==="Literal"&&this.raise(A.local.start,"A string literal cannot be used as an exported binding without `from`.");c.source=null}this.semicolon()}return this.finishNode(c,"ExportNamedDeclaration")}}checkExport(c,f,b){c&&(typeof f!="string"&&(f=f.type==="Identifier"?f.name:f.value),c[f]=!0)}parseMaybeDefault(c,f,b){let x=super.parseMaybeDefault(c,f,b);return x.type==="AssignmentPattern"&&x.typeAnnotation&&x.right.start<x.typeAnnotation.start&&this.raise(x.typeAnnotation.start,Q.TypeAnnotationAfterAssign),x}typeCastToParameter(c){return c.expression.typeAnnotation=c.typeAnnotation,this.resetEndLocation(c.expression,c.typeAnnotation.end,c.typeAnnotation.loc?.end),c.expression}toAssignableList(c,f){c||(c=[]);for(let b=0;b<c.length;b++){let x=c[b];x?.type==="TSTypeCastExpression"&&(c[b]=this.typeCastToParameter(x))}return super.toAssignableList(c,f)}reportReservedArrowTypeParam(c){c.params.length===1&&!c.extra?.trailingComma&&r&&this.raise(c.start,Q.ReservedArrowTypeParam)}parseExprAtom(c,f,b){if(this.type===v.jsxText)return this.jsx_parseText();if(this.type===v.jsxTagStart)return this.jsx_parseElement();if(this.type===v.at)return this.parseDecorators(),this.parseExprAtom();if(S(this.type)){let x=this.potentialArrowAt===this.start,A=this.start,I=this.startLoc,D=this.containsEsc,G=this.parseIdent(!1);if(this.ecmaVersion>=8&&!D&&G.name==="async"&&!this.canInsertSemicolon()&&this.eat(n._function))return this.overrideContext(h.f_expr),this.parseFunction(this.startNodeAt(A,I),0,!1,!0,f);if(x&&!this.canInsertSemicolon()){if(this.eat(n.arrow))return this.parseArrowExpression(this.startNodeAt(A,I),[G],!1,f);if(this.ecmaVersion>=8&&G.name==="async"&&this.type===n.name&&!D&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return G=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(n.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(A,I),[G],!0,f)}return G}else return super.parseExprAtom(c,f,b)}parseExprAtomDefault(){if(S(this.type)){let c=this.potentialArrowAt===this.start,f=this.containsEsc,b=this.parseIdent();if(!f&&b.name==="async"&&!this.canInsertSemicolon()){let{type:x}=this;if(x===n._function)return this.next(),this.parseFunction(this.startNodeAtNode(b),void 0,!0,!0);if(S(x))if(this.lookaheadCharCode()===61){let A=this.parseIdent(!1);return(this.canInsertSemicolon()||!this.eat(n.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAtNode(b),[A],!0)}else return b}return c&&this.match(n.arrow)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(b),[b],!1)):b}else this.unexpected()}parseIdentNode(){let c=this.startNode();if(C(this.type)&&!((this.type.keyword==="class"||this.type.keyword==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)))c.name=this.value;else return super.parseIdentNode();return c}parseVarStatement(c,f,b=!1){let{isAmbientContext:x}=this;this.next(),super.parseVar(c,!1,f,b||x),this.semicolon();let A=this.finishNode(c,"VariableDeclaration");if(!x)return A;for(let{id:I,init:D}of A.declarations)D&&(f!=="const"||I.typeAnnotation?this.raise(D.start,Q.InitializerNotAllowedInAmbientContext):D.type!=="Literal"&&(D.type!=="TemplateLiteral"||D.expressions.length>0)&&!pE(D)&&!cE(D)&&this.raise(D.start,Q.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference));return A}parseStatement(c,f,b){if(this.match(v.at)&&this.parseDecorators(!0),this.match(n._const)&&this.isLookaheadContextual("enum")){let x=this.startNode();return this.expect(n._const),this.tsParseEnumDeclaration(x,{const:!0})}if(this.ts_isContextual(v.enum))return this.tsParseEnumDeclaration(this.startNode());if(this.ts_isContextual(v.interface)){let x=this.tsParseInterfaceDeclaration(this.startNode());if(x)return x}return super.parseStatement(c,f,b)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}parsePostMemberNameModifiers(c){this.eat(n.question)&&(c.optional=!0),c.readonly&&this.match(n.parenL)&&this.raise(c.start,Q.ClassMethodHasReadonly),c.declare&&this.match(n.parenL)&&this.raise(c.start,Q.ClassMethodHasDeclare)}parseExpressionStatement(c,f){return(f.type==="Identifier"?this.tsParseExpressionStatement(c,f):void 0)||super.parseExpressionStatement(c,f)}shouldParseExportStatement(){return this.tsIsDeclarationStart()||this.match(v.at)?!0:super.shouldParseExportStatement()}parseConditional(c,f,b,x,A){if(this.eat(n.question)){let I=this.startNodeAt(f,b);return I.test=c,I.consequent=this.parseMaybeAssign(),this.expect(n.colon),I.alternate=this.parseMaybeAssign(x),this.finishNode(I,"ConditionalExpression")}return c}parseMaybeConditional(c,f){let b=this.start,x=this.startLoc,A=this.parseExprOps(c,f);if(this.checkExpressionErrors(f))return A;if(!this.maybeInArrowParameters||!this.match(n.question))return this.parseConditional(A,b,x,c,f);let I=this.tryParse(()=>this.parseConditional(A,b,x,c,f));return I.node?I.node:(I.error&&this.setOptionalParametersError(f,I.error),A)}parseParenItem(c){let f=this.start,b=this.startLoc;if(c=super.parseParenItem(c),this.eat(n.question)&&(c.optional=!0,this.resetEndLocation(c)),this.match(n.colon)){let x=this.startNodeAt(f,b);return x.expression=c,x.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(x,"TSTypeCastExpression")}return c}parseExportDeclaration(c){if(!this.isAmbientContext&&this.ts_isContextual(v.declare))return this.tsInAmbientContext(()=>this.parseExportDeclaration(c));let f=this.start,b=this.startLoc,x=this.eatContextual("declare");x&&(this.ts_isContextual(v.declare)||!this.shouldParseExportStatement())&&this.raise(this.start,Q.ExpectedAmbientAfterExportDeclare);let I=S(this.type)&&this.tsTryParseExportDeclaration()||this.parseStatement(null);return I?((I.type==="TSInterfaceDeclaration"||I.type==="TSTypeAliasDeclaration"||x)&&(c.exportKind="type"),x&&(this.resetStartLocation(I,f,b),I.declare=!0),I):null}parseClassId(c,f){if(!f&&this.isContextual("implements"))return;super.parseClassId(c,f);let b=this.tsTryParseTypeParameters(this.tsParseClassTypeParameterModifiers.bind(this));b&&(c.typeParameters=b)}parseClassPropertyAnnotation(c){c.optional||(this.value==="!"&&this.eat(n.prefix)?c.definite=!0:this.eat(n.question)&&(c.optional=!0));let f=this.tsTryParseTypeAnnotation();f&&(c.typeAnnotation=f)}parseClassField(c){if(c.key.type==="PrivateIdentifier")c.abstract&&this.raise(c.start,Q.PrivateElementHasAbstract),c.accessibility&&this.raise(c.start,Q.PrivateElementHasAccessibility({modifier:c.accessibility})),this.parseClassPropertyAnnotation(c);else if(this.parseClassPropertyAnnotation(c),this.isAmbientContext&&!(c.readonly&&!c.typeAnnotation)&&this.match(n.eq)&&this.raise(this.start,Q.DeclareClassFieldHasInitializer),c.abstract&&this.match(n.eq)){let{key:b}=c;this.raise(this.start,Q.AbstractPropertyHasInitializer({propertyName:b.type==="Identifier"&&!c.computed?b.name:`[${this.input.slice(b.start,b.end)}]`}))}return super.parseClassField(c)}parseClassMethod(c,f,b,x){let A=c.kind==="constructor",I=c.key.type==="PrivateIdentifier",D=this.tsTryParseTypeParameters(this.tsParseConstModifier);I?(D&&(c.typeParameters=D),c.accessibility&&this.raise(c.start,Q.PrivateMethodsHasAccessibility({modifier:c.accessibility}))):D&&A&&this.raise(D.start,Q.ConstructorHasTypeParameters);let{declare:G=!1,kind:V}=c;G&&(V==="get"||V==="set")&&this.raise(c.start,Q.DeclareAccessor({kind:V})),D&&(c.typeParameters=D);let B=c.key;c.kind==="constructor"?(f&&this.raise(B.start,"Constructor can't be a generator"),b&&this.raise(B.start,"Constructor can't be an async method")):c.static&&cm(c,"prototype")&&this.raise(B.start,"Classes may not have a static property named prototype");let pe=c.value=this.parseMethod(f,b,x,!0,c);return c.kind==="get"&&pe.params.length!==0&&this.raiseRecoverable(pe.start,"getter should have no params"),c.kind==="set"&&pe.params.length!==1&&this.raiseRecoverable(pe.start,"setter should have exactly one param"),c.kind==="set"&&pe.params[0].type==="RestElement"&&this.raiseRecoverable(pe.params[0].start,"Setter cannot use rest params"),this.finishNode(c,"MethodDefinition")}isClassMethod(){return this.match(n.relational)}parseClassElement(c){if(this.eat(n.semi))return null;let f=this.startNode(),b="",x=!1,A=!1,I="method",D=!1,G=["declare","private","public","protected","accessor","override","abstract","readonly","static"];D=!!this.tsParseModifiers({modified:f,allowedModifiers:G,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:Q.InvalidModifierOnTypeParameterPositions}).static;let B=()=>{if(this.tsIsStartOfStaticBlocks()){if(this.next(),this.next(),this.tsHasSomeModifiers(f,G)&&this.raise(this.start,Q.StaticBlockCannotHaveModifier),this.ecmaVersion>=13)return super.parseClassStaticBlock(f),f}else{let pe=this.tsTryParseIndexSignature(f);if(pe)return f.abstract&&this.raise(f.start,Q.IndexSignatureHasAbstract),f.accessibility&&this.raise(f.start,Q.IndexSignatureHasAccessibility({modifier:f.accessibility})),f.declare&&this.raise(f.start,Q.IndexSignatureHasDeclare),f.override&&this.raise(f.start,Q.IndexSignatureHasOverride),pe;if(!this.inAbstractClass&&f.abstract&&this.raise(f.start,Q.NonAbstractClassHasAbstractMethod),f.override&&(c||this.raise(f.start,Q.OverrideNotInSubClass)),f.static=D,D&&(this.isClassElementNameStart()||this.type===n.star||(b="static")),!b&&this.ecmaVersion>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===n.star)&&!this.canInsertSemicolon()?A=!0:b="async"),!b&&(this.ecmaVersion>=9||!A)&&this.eat(n.star)&&(x=!0),!b&&!A&&!x){let Ee=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?I=Ee:b=Ee)}if(b?(f.computed=!1,f.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),f.key.name=b,this.finishNode(f.key,"Identifier")):this.parseClassElementName(f),this.parsePostMemberNameModifiers(f),this.isClassMethod()||this.ecmaVersion<13||this.type===n.parenL||I!=="method"||x||A){let Ee=!f.static&&cm(f,"constructor"),xe=Ee&&c;Ee&&I!=="method"&&this.raise(f.key.start,"Constructor can't have get/set modifier"),f.kind=Ee?"constructor":I,this.parseClassMethod(f,x,A,xe)}else this.parseClassField(f);return f}};return f.declare?this.tsInAmbientContext(B):B(),f}isClassElementNameStart(){return this.tsIsIdentifier()?!0:super.isClassElementNameStart()}parseClassSuper(c){super.parseClassSuper(c),c.superClass&&(this.tsMatchLeftRelational()||this.match(n.bitShift))&&(c.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual("implements")&&(c.implements=this.tsParseHeritageClause("implements"))}parseFunctionParams(c){let f=this.tsTryParseTypeParameters(this.tsParseConstModifier);f&&(c.typeParameters=f),super.parseFunctionParams(c)}parseVarId(c,f){super.parseVarId(c,f),c.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.value==="!"&&this.eat(n.prefix)&&(c.definite=!0);let b=this.tsTryParseTypeAnnotation();b&&(c.id.typeAnnotation=b,this.resetEndLocation(c.id))}parseArrowExpression(c,f,b,x){this.match(n.colon)&&(c.returnType=this.tsParseTypeAnnotation());let A=this.yieldPos,I=this.awaitPos,D=this.awaitIdentPos;this.enterScope(Fc(b,!1)|be.SCOPE_ARROW),this.initFunction(c);let G=this.maybeInArrowParameters;return this.ecmaVersion>=8&&(c.async=!!b),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.maybeInArrowParameters=!0,c.params=this.toAssignableList(f,!0),this.maybeInArrowParameters=!1,this.parseFunctionBody(c,!0,!1,x),this.yieldPos=A,this.awaitPos=I,this.awaitIdentPos=D,this.maybeInArrowParameters=G,this.finishNode(c,"ArrowFunctionExpression")}parseYield(c){this.yieldPos||(this.yieldPos=this.start);let f=this.startNode();this.next();let b=this.tsMatchLeftRelational();return!this.match(n.semi)&&!this.canInsertSemicolon()&&(this.match(n.star)||this.type.startsExpr||b)?(f.delegate=this.eat(n.star),f.argument=this.parseMaybeAssign(c),this.finishNode(f,"YieldExpression")):(f.delegate=!1,f.argument=null,this.finishNode(f,"YieldExpression"))}parseMaybeAssignOrigin(c,f,b){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(c);this.exprAllowed=!1}let x=!1,A=-1,I=-1,D=-1;f?(A=f.parenthesizedAssign,I=f.trailingComma,D=f.doubleProto,f.parenthesizedAssign=f.trailingComma=-1):(f=new es,x=!0);let G=this.start,V=this.startLoc;(this.type===n.parenL||S(this.type))&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=c==="await");let B=this.parseMaybeConditional(c,f);if(b&&(B=b.call(this,B,G,V)),this.type.isAssign){let pe=this.startNodeAt(G,V);return pe.operator=this.value,this.type===n.eq&&(B=this.toAssignable(B,!0,f,!0)),x||(f.parenthesizedAssign=f.trailingComma=f.doubleProto=-1),f.shorthandAssign>=B.start&&(f.shorthandAssign=-1),this.maybeInArrowParameters||(this.type===n.eq?this.checkLValPattern(B):this.checkLValSimple(B)),pe.left=B,this.next(),pe.right=this.parseMaybeAssign(c),D>-1&&(f.doubleProto=D),this.finishNode(pe,"AssignmentExpression")}else x&&this.checkExpressionErrors(f,!0);return A>-1&&(f.parenthesizedAssign=A),I>-1&&(f.trailingComma=I),B}parseMaybeAssign(c,f,b){let x,A;if(e?.jsx&&(this.matchJsx("jsxTagStart")||this.tsMatchLeftRelational())){if(x=this.tryParse(()=>this.parseMaybeAssignOrigin(c,f,b)),!x.error)return x.node;let G=this.context,V=G[G.length-1],B=G[G.length-2];V===a.tokContexts.tc_oTag&&B===a.tokContexts.tc_expr?(this.parseEffects.pop(G),this.parseEffects.pop(G)):(V===a.tokContexts.tc_oTag||V===a.tokContexts.tc_expr)&&this.parseEffects.pop(G)}if(!x?.error&&!this.tsMatchLeftRelational())return this.parseMaybeAssignOrigin(c,f,b);let I,D=this.tryParse(G=>{I=this.tsParseTypeParameters(this.tsParseConstModifier);let V=this.parseMaybeAssignOrigin(c,f,b);return(V.type!=="ArrowFunctionExpression"||V.extra?.parenthesized)&&G(),I?.params.length!==0&&this.resetStartLocationFromNode(V,I),V.typeParameters=I,V});if(!D.error&&!D.aborted)return I&&this.reportReservedArrowTypeParam(I),D.node;if(!x&&(dm(!0),A=this.tryParse(()=>this.parseMaybeAssignOrigin(c,f,b)),!A.error))return A.node;throw x?.thrown?(this.selectTryParseResult(x),x.error):D.thrown?(this.selectTryParseResult(D),D.error):A?.thrown?(this.selectTryParseResult(A),A.error):x?.error||D.error||A?.error}parseAssignableListItem(c){let f=[];for(;this.match(v.at);)f.push(this.parseDecorator());let b=this.start,x=this.startLoc,A,I=!1,D=!1;if(c!==void 0){let B={};this.tsParseModifiers({modified:B,allowedModifiers:["public","private","protected","override","readonly"]}),A=B.accessibility,D=B.override,I=B.readonly,c===!1&&(A||I||D)&&this.raise(x.column,Q.UnexpectedParameterModifier)}let G=this.parseMaybeDefault(b,x);this.parseBindingListItem(G);let V=this.parseMaybeDefault(G.start,G.loc.start,G);if(f.length&&(V.decorators=f),A||I||D){let B=this.startNodeAt(b,x);return A&&(B.accessibility=A),I&&(B.readonly=I),D&&(B.override=D),V.type!=="Identifier"&&V.type!=="AssignmentPattern"&&this.raise(B.start,Q.UnsupportedParameterPropertyKind),B.parameter=V,this.finishNode(B,"TSParameterProperty")}return V}checkLValInnerPattern(c,f=be.BIND_NONE,b){c.type==="TSParameterProperty"?this.checkLValInnerPattern(c.parameter,f,b):super.checkLValInnerPattern(c,f,b)}parseBindingListItem(c){this.eat(n.question)&&(c.type!=="Identifier"&&!this.isAmbientContext&&!this.inType&&this.raise(c.start,Q.PatternIsOptional),c.optional=!0);let f=this.tsTryParseTypeAnnotation();return f&&(c.typeAnnotation=f),this.resetEndLocation(c),c}isAssignable(c,f){switch(c.type){case"TSTypeCastExpression":return this.isAssignable(c.expression,f);case"TSParameterProperty":return!0;case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{let b=c.properties.length-1;return c.properties.every((x,A)=>x.type!=="ObjectMethod"&&(A===b||x.type!=="SpreadElement")&&this.isAssignable(x))}case"Property":case"ObjectProperty":return this.isAssignable(c.value);case"SpreadElement":return this.isAssignable(c.argument);case"ArrayExpression":return c.elements.every(b=>b===null||this.isAssignable(b));case"AssignmentExpression":return c.operator==="=";case"ParenthesizedExpression":return this.isAssignable(c.expression);case"MemberExpression":case"OptionalMemberExpression":return!f;default:return!1}}toAssignable(c,f=!1,b=new es,x=!1){switch(c.type){case"ParenthesizedExpression":return this.toAssignableParenthesizedExpression(c,f,b,x);case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":f||this.raise(c.start,Q.UnexpectedTypeCastInParameter);let A=this.toAssignable(c.expression,f,b,x);return x?(c.expression=A,c):A;case"MemberExpression":break;case"AssignmentExpression":return!f&&c.left.type==="TSTypeCastExpression"&&(c.left=this.typeCastToParameter(c.left)),super.toAssignable(c,f,b);case"TSTypeCastExpression":return this.typeCastToParameter(c);default:return super.toAssignable(c,f,b)}return c}toAssignableParenthesizedExpression(c,f,b,x=!1){switch(c.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":let A=this.toAssignable(c.expression,f,b,x);return x?(c.expression=A,c):A;default:return super.toAssignable(c,f,b)}}parseBindingAtom(){return this.type===n._this?this.parseIdent(!0):super.parseBindingAtom()}shouldParseArrow(c){let f;if(this.match(n.colon)?f=c.every(b=>this.isAssignable(b,!0)):f=!this.canInsertSemicolon(),f){if(this.match(n.colon)){let b=this.tryParse(x=>{let A=this.tsParseTypeOrTypePredicateAnnotation(n.colon);return(this.canInsertSemicolon()||!this.match(n.arrow))&&x(),A});if(b.aborted)return this.shouldParseArrowReturnType=void 0,!1;b.thrown||(this.shouldParseArrowReturnType=b.node)}return this.match(n.arrow)?!0:(this.shouldParseArrowReturnType=void 0,!1)}return this.shouldParseArrowReturnType=void 0,f}parseParenArrowList(c,f,b,x){let A=this.startNodeAt(c,f);return A.returnType=this.shouldParseArrowReturnType,this.shouldParseArrowReturnType=void 0,this.parseArrowExpression(A,b,!1,x)}parseParenAndDistinguishExpression(c,f){let b=this.start,x=this.startLoc,A,I=this.ecmaVersion>=8;if(this.ecmaVersion>=6){let D=this.maybeInArrowParameters;this.maybeInArrowParameters=!0,this.next();let G=this.start,V=this.startLoc,B=[],pe=!0,Ee=!1,xe=new es,Nt=this.yieldPos,Mt=this.awaitPos,Lt;for(this.yieldPos=0,this.awaitPos=0;this.type!==n.parenR;)if(pe?pe=!1:this.expect(n.comma),I&&this.afterTrailingComma(n.parenR,!0)){Ee=!0;break}else if(this.type===n.ellipsis){Lt=this.start,B.push(this.parseParenItem(this.parseRestBinding())),this.type===n.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}else B.push(this.parseMaybeAssign(!1,xe,this.parseParenItem));let cr=this.lastTokEnd,nt=this.lastTokEndLoc;if(this.expect(n.parenR),this.maybeInArrowParameters=D,c&&this.shouldParseArrow(B)&&this.eat(n.arrow))return this.checkPatternErrors(xe,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=Nt,this.awaitPos=Mt,this.parseParenArrowList(b,x,B,f);(!B.length||Ee)&&this.unexpected(this.lastTokStart),Lt&&this.unexpected(Lt),this.checkExpressionErrors(xe,!0),this.yieldPos=Nt||this.yieldPos,this.awaitPos=Mt||this.awaitPos,B.length>1?(A=this.startNodeAt(G,V),A.expressions=B,this.finishNodeAt(A,"SequenceExpression",cr,nt)):A=B[0]}else A=this.parseParenExpression();if(this.options.preserveParens){let D=this.startNodeAt(b,x);return D.expression=A,this.finishNode(D,"ParenthesizedExpression")}else return A}parseTaggedTemplateExpression(c,f,b,x){let A=this.startNodeAt(f,b);return A.tag=c,A.quasi=this.parseTemplate({isTagged:!0}),x&&this.raise(f,"Tagged Template Literals are not allowed in optionalChain."),this.finishNode(A,"TaggedTemplateExpression")}shouldParseAsyncArrow(){if(this.match(n.colon)){let c=this.tryParse(f=>{let b=this.tsParseTypeOrTypePredicateAnnotation(n.colon);return(this.canInsertSemicolon()||!this.match(n.arrow))&&f(),b});if(c.aborted)return this.shouldParseAsyncArrowReturnType=void 0,!1;if(!c.thrown)return this.shouldParseAsyncArrowReturnType=c.node,!this.canInsertSemicolon()&&this.eat(n.arrow)}else return!this.canInsertSemicolon()&&this.eat(n.arrow)}parseSubscriptAsyncArrow(c,f,b,x){let A=this.startNodeAt(c,f);return A.returnType=this.shouldParseAsyncArrowReturnType,this.shouldParseAsyncArrowReturnType=void 0,this.parseArrowExpression(A,b,!0,x)}parseExprList(c,f,b,x){let A=[],I=!0;for(;!this.eat(c);){if(I)I=!1;else if(this.expect(n.comma),f&&this.afterTrailingComma(c))break;let D;b&&this.type===n.comma?D=null:this.type===n.ellipsis?(D=this.parseSpread(x),this.maybeInArrowParameters&&this.match(n.colon)&&(D.typeAnnotation=this.tsParseTypeAnnotation()),x&&this.type===n.comma&&x.trailingComma<0&&(x.trailingComma=this.start)):D=this.parseMaybeAssign(!1,x,this.parseParenItem),A.push(D)}return A}parseMaybeDecoratorArguments(c){let f=this.tsMatchLeftRelational()||this.match(n.bitShift)?this.tsParseTypeArgumentsInExpression():void 0;if(this.eat(n.parenL)){let b=this.startNodeAtNode(c);return b.callee=c,b.arguments=this.parseExprList(n.parenR,!1),f&&(b.typeArguments=f),this.finishNode(b,"CallExpression")}if(f){let b=this.startNodeAtNode(c);return b.expression=c,b.typeArguments=f,this.finishNode(b,"TSInstantiationExpression")}return c}parseSubscript(c,f,b,x,A,I,D){let G=I;if(!this.hasPrecedingLineBreak()&&this.value==="!"&&this.match(n.prefix)){this.exprAllowed=!1,this.next();let xe=this.startNodeAt(f,b);return xe.expression=c,c=this.finishNode(xe,"TSNonNullExpression"),c}let V=!1;if(this.match(n.questionDot)&&this.lookaheadCharCode()===60){if(x)return c;c.optional=!0,G=V=!0,this.next()}if(this.tsMatchLeftRelational()||this.match(n.bitShift)){let xe,Nt=this.tsTryParseAndCatch(()=>{if(!x&&this.atPossibleAsyncArrow(c)){let nt=this.tsTryParseGenericAsyncArrowFunction(f,b,D);if(nt)return c=nt,c}let Mt=this.tsParseTypeArgumentsInExpression();if(!Mt)return c;if(V&&!this.match(n.parenL))return xe=this.curPosition(),c;if(g(this.type)||this.type===n.backQuote){let nt=this.parseTaggedTemplateExpression(c,f,b,G);return nt.typeArguments=Mt,nt}if(!x&&this.eat(n.parenL)){let nt=new es,gt=this.startNodeAt(f,b);return gt.callee=c,gt.arguments=this.parseExprList(n.parenR,this.ecmaVersion>=8,!1,nt),this.tsCheckForInvalidTypeCasts(gt.arguments),gt.typeArguments=Mt,G&&(gt.optional=V),this.checkExpressionErrors(nt,!0),c=this.finishNode(gt,"CallExpression"),c}let Lt=this.type;if(this.tsMatchRightRelational()||Lt===n.bitShift||Lt!==n.parenL&&uE(Lt)&&!this.hasPrecedingLineBreak())return;let cr=this.startNodeAt(f,b);return cr.expression=c,cr.typeArguments=Mt,this.finishNode(cr,"TSInstantiationExpression")});if(xe&&this.unexpected(xe),Nt)return Nt.type==="TSInstantiationExpression"&&(this.match(n.dot)||this.match(n.questionDot)&&this.lookaheadCharCode()!==40)&&this.raise(this.start,Q.InvalidPropertyAccessAfterInstantiationExpression),c=Nt,c}let B=this.ecmaVersion>=11,pe=B&&this.eat(n.questionDot);x&&pe&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");let Ee=this.eat(n.bracketL);if(Ee||pe&&this.type!==n.parenL&&this.type!==n.backQuote||this.eat(n.dot)){let xe=this.startNodeAt(f,b);xe.object=c,Ee?(xe.property=this.parseExpression(),this.expect(n.bracketR)):this.type===n.privateId&&c.type!=="Super"?xe.property=this.parsePrivateIdent():xe.property=this.parseIdent(this.options.allowReserved!=="never"),xe.computed=!!Ee,B&&(xe.optional=pe),c=this.finishNode(xe,"MemberExpression")}else if(!x&&this.eat(n.parenL)){let xe=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;let Nt=new es,Mt=this.yieldPos,Lt=this.awaitPos,cr=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;let nt=this.parseExprList(n.parenR,this.ecmaVersion>=8,!1,Nt);if(A&&!pe&&this.shouldParseAsyncArrow())this.checkPatternErrors(Nt,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=Mt,this.awaitPos=Lt,this.awaitIdentPos=cr,c=this.parseSubscriptAsyncArrow(f,b,nt,D);else{this.checkExpressionErrors(Nt,!0),this.yieldPos=Mt||this.yieldPos,this.awaitPos=Lt||this.awaitPos,this.awaitIdentPos=cr||this.awaitIdentPos;let gt=this.startNodeAt(f,b);gt.callee=c,gt.arguments=nt,B&&(gt.optional=pe),c=this.finishNode(gt,"CallExpression")}this.maybeInArrowParameters=xe}else if(this.type===n.backQuote){(pe||G)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");let xe=this.startNodeAt(f,b);xe.tag=c,xe.quasi=this.parseTemplate({isTagged:!0}),c=this.finishNode(xe,"TaggedTemplateExpression")}return c}parseGetterSetter(c){c.kind=c.key.name,this.parsePropertyName(c);let f=this.tsTryParseTypeParameters(this.tsParseConstModifier);c.value=this.parseMethod(!1),f&&(c.value.typeParameters=f);let b=c.kind==="get"?0:1,x=c.value.params[0];if(b=x&&this.isThisParam(x)?b+1:b,c.value.params.length!==b){let I=c.value.start;c.kind==="get"?this.raiseRecoverable(I,"getter should have no params"):this.raiseRecoverable(I,"setter should have exactly one param")}else c.kind==="set"&&c.value.params[0].type==="RestElement"&&this.raiseRecoverable(c.value.params[0].start,"Setter cannot use rest params")}parsePropertyValue(c,f,b,x,A,I,D,G){if(this.tsMatchLeftRelational()){f&&this.unexpected(),c.kind="init",c.method=!0;let V=this.tsTryParseTypeParameters(this.tsParseConstModifier);c.value=this.parseMethod(b,x),V&&(c.value.typeParameters=V);return}return super.parsePropertyValue(c,f,b,x,A,I,D,G)}parseProperty(c,f){if(!c){let b=[];if(this.match(v.at))for(;this.match(v.at);)b.push(this.parseDecorator());let x=super.parseProperty(c,f);return x.type==="SpreadElement"&&b.length&&this.raise(x.start,Ws.SpreadElementDecorator),b.length&&(x.decorators=b,b=[]),x}return super.parseProperty(c,f)}parseCatchClauseParam(){let c=this.parseBindingAtom(),f=c.type==="Identifier";this.enterScope(f?be.SCOPE_SIMPLE_CATCH:0),this.checkLValPattern(c,f?be.BIND_SIMPLE_CATCH:be.BIND_LEXICAL);let b=this.tsTryParseTypeAnnotation();return b&&(c.typeAnnotation=b,this.resetEndLocation(c)),this.expect(n.parenR),c}parseClass(c,f){let b=this.inAbstractClass;this.inAbstractClass=!!c.abstract;try{this.next(),this.takeDecorators(c);let x=this.strict;this.strict=!0,this.parseClassId(c,f),this.parseClassSuper(c);let A=this.enterClassBody(),I=this.startNode(),D=!1;I.body=[];let G=[];for(this.expect(n.braceL);this.type!==n.braceR;){if(this.match(v.at)){G.push(this.parseDecorator());continue}let V=this.parseClassElement(c.superClass!==null);if(G.length&&(V.decorators=G,this.resetStartLocationFromNode(V,G[0]),G=[]),V){if(I.body.push(V),V.type==="MethodDefinition"&&V.kind==="constructor"&&V.value.type==="FunctionExpression")D&&this.raiseRecoverable(V.start,"Duplicate constructor in the same class"),D=!0,V.decorators&&V.decorators.length>0&&this.raise(V.start,Ws.DecoratorConstructor);else if(V.key&&V.key.type==="PrivateIdentifier"&&V.value?.type!=="TSDeclareMethod"){let B=V.key.name;this.parseEffects.modify(A,B,Ee=>Kk(Ee,V))&&this.raiseRecoverable(V.key.start,`Identifier '#${B}' has already been declared`)}}}return this.strict=x,this.next(),G.length&&this.raise(this.start,Ws.TrailingDecorator),c.body=this.finishNode(I,"ClassBody"),this.exitClassBody(),this.finishNode(c,f?"ClassDeclaration":"ClassExpression")}finally{this.inAbstractClass=b}}parseClassFunctionParams(){let c=this.tsTryParseTypeParameters(),f=this.parseBindingList(n.parenR,!1,this.ecmaVersion>=8,!0);return c&&(f.typeParameters=c),f}parseMethod(c,f,b,x,A){let I=this.startNode(),D=this.yieldPos,G=this.awaitPos,V=this.awaitIdentPos;if(this.initFunction(I),this.ecmaVersion>=6&&(I.generator=c),this.ecmaVersion>=8&&(I.async=!!f),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Fc(f,I.generator)|be.SCOPE_SUPER|(b?be.SCOPE_DIRECT_SUPER:0)),this.expect(n.parenL),I.params=this.parseClassFunctionParams(),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(I,!1,!0,!1,{isClassMethod:x}),this.yieldPos=D,this.awaitPos=G,this.awaitIdentPos=V,A&&A.abstract&&!!I.body){let{key:pe}=A;this.raise(A.start,Q.AbstractMethodHasImplementation({methodName:pe.type==="Identifier"&&!A.computed?pe.name:`[${this.input.slice(pe.start,pe.end)}]`}))}return this.finishNode(I,"FunctionExpression")}static parse(c,f){if(f.locations===!1)throw new Error("You have to enable options.locations while using acorn-typescript");f.locations=!0;let b=new this(f,c);return t&&(b.isAmbientContext=!0),b.parse()}static parseExpressionAt(c,f,b){if(b.locations===!1)throw new Error("You have to enable options.locations while using acorn-typescript");b.locations=!0;let x=new this(b,c,f);return t&&(x.isAmbientContext=!0),x.nextToken(),x.parseExpression()}parseImportSpecifier(){if(this.ts_isContextual(v.type)){let f=this.startNode();return f.imported=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(f,!0,this.importOrExportOuterKind==="type"),this.finishNode(f,"ImportSpecifier")}else{let f=super.parseImportSpecifier();return f.importKind="value",f}}parseExportSpecifier(c){let f=this.ts_isContextual(v.type);if(!this.match(n.string)&&f){let x=this.startNode();return x.local=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(x,!1,this.importOrExportOuterKind==="type"),this.finishNode(x,"ExportSpecifier"),this.checkExport(c,x.exported,x.exported.start),x}else{let x=super.parseExportSpecifier(c);return x.exportKind="value",x}}parseTypeOnlyImportExportSpecifier(c,f,b){let x=f?"imported":"local",A=f?"local":"exported",I=c[x],D,G=!1,V=!0,B=I.start;if(this.isContextual("as")){let Ee=this.parseIdent();if(this.isContextual("as")){let xe=this.parseIdent();C(this.type)?(G=!0,I=Ee,D=f?this.parseIdent():this.parseModuleExportName(),V=!1):(D=xe,V=!1)}else C(this.type)?(V=!1,D=f?this.parseIdent():this.parseModuleExportName()):(G=!0,I=Ee)}else C(this.type)&&(G=!0,f?(I=super.parseIdent(!0),this.isContextual("as")||this.checkUnreserved(I)):I=this.parseModuleExportName());G&&b&&this.raise(B,f?Q.TypeModifierIsUsedInTypeImports:Q.TypeModifierIsUsedInTypeExports),c[x]=I,c[A]=D;let pe=f?"importKind":"exportKind";c[pe]=G?"type":"value",V&&this.eatContextual("as")&&(c[A]=f?this.parseIdent():this.parseModuleExportName()),c[A]||(c[A]=this.copyNode(c[x])),f&&this.checkLValSimple(c[A],be.BIND_LEXICAL)}raiseCommonCheck(c,f,b){switch(f){case"Comma is not permitted after the rest element":if(this.isAmbientContext&&this.match(n.comma)&&this.lookaheadCharCode()===41){this.next();return}else return super.raise(c,f)}return b?super.raiseRecoverable(c,f):super.raise(c,f)}raiseRecoverable(c,f){return this.raiseCommonCheck(c,f,!0)}raise(c,f){return this.raiseCommonCheck(c,f,!0)}updateContext(c){let{type:f}=this;if(f==n.braceL){var b=this.curContext();b==E.tc_oTag?this.parseEffects.append(this.context,h.b_expr):b==E.tc_expr?this.parseEffects.append(this.context,h.b_tmpl):super.updateContext(c),this.exprAllowed=!0}else if(f===n.slash&&c===v.jsxTagStart)this.parseEffects.truncate(this.context,this.context.length-2),this.parseEffects.append(this.context,E.tc_cTag),this.exprAllowed=!1;else return super.updateContext(c)}jsx_parseOpeningElementAt(c,f){let b=this.startNodeAt(c,f),x=this.jsx_parseElementName();if(x&&(b.name=x),this.match(n.relational)||this.match(n.bitShift)){let A=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());A&&(b.typeArguments=A)}for(b.attributes=[];this.type!==n.slash&&this.type!==v.jsxTagEnd;)b.attributes.push(this.jsx_parseAttribute());return b.selfClosing=this.eat(n.slash),this.expect(v.jsxTagEnd),this.finishNode(b,x?"JSXOpeningElement":"JSXOpeningFragment")}enterScope(c){let f=c===Qi;f&&this.parseEffects.append(this.importsStack,[]);let b=f?c|be.SCOPE_CLASS_STATIC_BLOCK:c;super.enterScope(b);let x=super.currentScope();x.types=[],x.enums=[],x.constEnums=[],x.classes=[],x.exportOnlyBindings=[]}exitScope(){super.currentScope().flags&Qi&&this.parseEffects.pop(this.importsStack),super.exitScope()}hasImport(c,f){let b=this.importsStack.length;if(this.importsStack[b-1].indexOf(c)>-1)return!0;if(!f&&b>1){for(let x=0;x<b-1;x++)if(this.importsStack[x].indexOf(c)>-1)return!0}return!1}maybeExportDefined(c,f){this.inModule&&c.flags&be.SCOPE_TOP&&this.parseEffects.remove(this.undefinedExports,f)}declareName(c,f,b){if(f&be.BIND_FLAGS_TS_IMPORT){this.hasImport(c,!0)&&this.raise(b,`Identifier '${c}' has already been declared.`),this.parseEffects.append(this.importsStack[this.importsStack.length-1],c);return}let x=this.currentScope();if(f&be.BIND_FLAGS_TS_EXPORT_ONLY){this.maybeExportDefined(x,c),this.parseEffects.append(x.exportOnlyBindings,c);return}if(f===be.BIND_TS_TYPE||f===be.BIND_TS_INTERFACE)f===be.BIND_TS_TYPE&&x.types.includes(c)&&this.raise(b,`type '${c}' has already been declared.`),this.parseEffects.append(x.types,c);else if(f&be.BIND_FLAGS_TS_ENUM){if(x.enums.includes(c))return;super.declareName(c,be.BIND_LEXICAL,b)}else super.declareName(c,f,b);f&be.BIND_FLAGS_TS_ENUM&&this.parseEffects.append(x.enums,c),f&be.BIND_FLAGS_TS_CONST_ENUM&&this.parseEffects.append(x.constEnums,c),f&be.BIND_FLAGS_CLASS&&this.parseEffects.append(x.classes,c)}checkLocalExport(c){let{name:f}=c;if(this.hasImport(f))return;let b=this.scopeStack.length;for(let x=b-1;x>=0;x--){let A=this.scopeStack[x];if(A.types.indexOf(f)>-1||A.exportOnlyBindings.indexOf(f)>-1)return}super.checkLocalExport(c)}}return H}}var Hc=class extends Error{message="";#e;constructor(t,r,i){super(r),this.stack="",this.#e=new _i(t,r,i),Object.assign(this,this.#e),this.name="CompileError"}toString(){return this.#e.toString()}toJSON(){return this.#e.toJSON()}};function q(e,t,r){let i=typeof e=="number"?e:e?.start,s=typeof e=="number"?e:e?.end;throw new Hc(t,r,i!==void 0?[i,s??i]:void 0)}function Em(e,t){q(e,"options_invalid_value",`Invalid compiler option: ${t}
|
|
76
|
+
`):_=String.fromCharCode(h),this.options.locations&&(++this.curLine,this.lineStart=this.pos),_}jsx_readString(m){let h="",_=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let v=this.input.charCodeAt(this.pos);if(v===m)break;v===38?(h+=this.input.slice(_,this.pos),h+=this.jsx_readEntity(),_=this.pos):n(v)?(h+=this.input.slice(_,this.pos),h+=this.jsx_readNewLine(!1),_=this.pos):++this.pos}return h+=this.input.slice(_,this.pos++),this.finishToken(s.string,h)}jsx_readEntity(){let m="",h=0,_,v=this.input[this.pos];v!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let E=++this.pos;for(;this.pos<this.input.length&&h++<10;){if(v=this.input[this.pos++],v===";"){if(m[0]==="#"){let l;m[1]==="x"||m[1]==="X"?(m=m.substr(2),Yk.test(m)&&(l=parseInt(m,16))):(m=m.substr(1),Zk.test(m)&&(l=parseInt(m,10))),l!==void 0&&l<=1114111&&(_=String.fromCodePoint(l))}else Object.prototype.hasOwnProperty.call(pm,m)&&(_=pm[m]);break}m+=v}return _===void 0?(this.pos=E,"&"):_}jsx_readWord(){let m,h=this.pos;do m=this.input.charCodeAt(++this.pos);while(p(m)||m===45);return this.finishToken(a.jsxName,this.input.slice(h,this.pos))}jsx_parseIdentifier(){let m=this.startNode();return this.type===a.jsxName?m.name=this.value:this.type.keyword?m.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(m,"JSXIdentifier")}jsx_parseNamespacedName(){let m=this.start,h=this.startLoc,_=this.jsx_parseIdentifier();if(!u.allowNamespaces||!this.eat(s.colon))return _;var v=this.startNodeAt(m,h);return v.namespace=_,v.name=this.jsx_parseIdentifier(),this.finishNode(v,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===a.jsxTagEnd)return"";let m=this.start,h=this.startLoc,_=this.jsx_parseNamespacedName();for(this.type===s.dot&&_.type==="JSXNamespacedName"&&!u.allowNamespacedObjects&&this.unexpected();this.eat(s.dot);){let v=this.startNodeAt(m,h);v.object=_,v.property=this.jsx_parseIdentifier(),_=this.finishNode(v,"JSXMemberExpression")}return _}jsx_parseAttributeValue(){switch(this.type){case s.braceL:let m=this.jsx_parseExpressionContainer();return m.expression.type==="JSXEmptyExpression"&&this.raise(m.start,"JSX attributes must only be assigned a non-empty expression"),m;case a.jsxTagStart:case s.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let m=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(m,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let m=this.startNode();return this.next(),this.eat(s.ellipsis)?(m.expression=this.parseExpression(),this.expect(s.braceR),this.finishNode(m,"JSXSpreadChild")):(m.expression=this.type===s.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(s.braceR),this.finishNode(m,"JSXExpressionContainer"))}jsx_parseAttribute(){let m=this.startNode();return this.eat(s.braceL)?(this.expect(s.ellipsis),m.argument=this.parseMaybeAssign(),this.expect(s.braceR),this.finishNode(m,"JSXSpreadAttribute")):(m.name=this.jsx_parseNamespacedName(),m.value=this.eat(s.eq)?this.jsx_parseAttributeValue():null,this.finishNode(m,"JSXAttribute"))}jsx_parseOpeningElementAt(m,h){let _=this.startNodeAt(m,h);_.attributes=[];let v=this.jsx_parseElementName();for(v&&(_.name=v);this.type!==s.slash&&this.type!==a.jsxTagEnd;)_.attributes.push(this.jsx_parseAttribute());return _.selfClosing=this.eat(s.slash),this.expect(a.jsxTagEnd),this.finishNode(_,v?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(m,h){let _=this.startNodeAt(m,h),v=this.jsx_parseElementName();return v&&(_.name=v),this.expect(a.jsxTagEnd),this.finishNode(_,v?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(m,h){let _=this.startNodeAt(m,h),v=[],E=this.jsx_parseOpeningElementAt(m,h),l=null;if(!E.selfClosing){e:for(;;)switch(this.type){case a.jsxTagStart:if(m=this.start,h=this.startLoc,this.next(),this.eat(s.slash)){l=this.jsx_parseClosingElementAt(m,h);break e}v.push(this.jsx_parseElementAt(m,h));break;case a.jsxText:v.push(this.parseExprAtom());break;case s.braceL:v.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}ts(l.name)!==ts(E.name)&&this.raise(l.start,"Expected corresponding JSX closing tag for <"+ts(E.name)+">")}let o=E.name?"Element":"Fragment";return _["opening"+o]=E,_["closing"+o]=l,_.children=v,this.type===s.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(_,"JSX"+o)}jsx_parseText(){let m=this.parseLiteral(this.value);return m.type="JSXText",m}jsx_parseElement(){let m=this.start,h=this.startLoc;return this.next(),this.jsx_parseElementAt(m,h)}}}function eE(e,t,r){let{tokTypes:i}=t,{tokTypes:s}=r;return class extends e{parseMaybeImportAttributes(n){if(this.type===s._with||this.type===i.assert){this.next();let p=this.parseImportAttributes();p&&(n.attributes=p)}}parseImportAttributes(){this.expect(s.braceL);let n=this.parseWithEntries();return this.expect(s.braceR),n}parseWithEntries(){let n=[],p=new Set;do{if(this.type===s.braceR)break;let u=this.startNode(),d;this.type===s.string?d=this.parseLiteral(this.value):d=this.parseIdent(!0),this.next(),u.key=d,p.has(u.key.name)&&this.raise(this.pos,"Duplicated key in attributes"),p.add(u.key.name),this.type!==s.string&&this.raise(this.pos,"Only string is supported as an attribute value"),u.value=this.parseLiteral(this.value),n.push(this.finishNode(u,"ImportAttribute"))}while(this.eat(s.comma));return n}}}var Bc=["onToken","onComment","onInsertedSemicolon","onTrailingComma"];function wm(){return{_tag:"BufferedParserEvents",segments:[]}}var tE=wm();function um(e){return e.segments.length>0}var rE=class{constructor(e,t){this.options=e,this.state=t,this.callbacks={},this.callbackWrappers={},this.frames=[],this.undoLog=[],this.hasCallbacks=this.captureCallbacks()}get active(){return this.frames.length>0}begin(){let e={_tag:"ParseEffectFrame",depth:this.frames.length,undoMark:this.undoLog.length,checkpoint:this.state?.capture()};return this.frames.push(e),e.depth===0&&this.hasCallbacks&&this.activateCallbacks(),e}commit(e){this.close(e);let t=this.currentFrame();if(t){e.output&&this.appendOutput(this.outputFor(t),e.output);return}this.undoLog.length=e.undoMark,e.output&&this.flush(e.output)}rollback(e){this.close(e),this.unwind(e.undoMark),this.restore(e)}rollbackWithEvents(e){return this.close(e),this.unwind(e.undoMark),this.restore(e),e.output??tE}replay(e){if(!um(e))return;let t=this.currentFrame();if(t){this.appendOutput(this.outputFor(t),e);return}this.flush(e)}set(e,t,r){this.willSet(e,t),e[t]=r}remove(e,t){this.willSet(e,t),delete e[t]}append(e,t){this.willAppend(e),e.push(t)}pop(e){return this.willMutateTail(e,1),e.pop()}truncate(e,t){t<e.length?this.willMutateTail(e,e.length-t):this.willAppend(e),e.length=t}modify(e,t,r){let[i,s]=r(e[t]);return this.set(e,t,s),i}willAppend(e){this.active&&this.undoLog.push({_tag:"ArrayLength",target:e,length:e.length})}willMutateTail(e,t){if(!this.active)return;let r=Math.max(0,e.length-t);this.undoLog.push({_tag:"ArrayTail",target:e,start:r,values:e.slice(r)})}willSet(e,t){if(!this.active)return;let r=e;this.undoLog.push({_tag:"Property",target:r,key:t,had:Object.prototype.hasOwnProperty.call(r,t),value:r[t]})}captureCallbacks(){let e=!1;for(let t of Bc){let r=this.options[t];r&&(e=!0,this.callbacks[t]=r,this.callbackWrappers[t]=(...i)=>{this.emit({name:t,args:i})})}return e}activateCallbacks(){for(let e of Bc){let t=this.callbackWrappers[e];t&&(this.options[e]=t)}}deactivateCallbacks(){for(let e of Bc){let t=this.callbacks[e];t&&(this.options[e]=t)}}emit(e){let t=this.currentFrame();if(!t){this.invoke(e);return}let r=this.outputFor(t).segments,i=r[r.length-1];Array.isArray(i)?i.push(e):r.push([e])}appendOutput(e,t){um(t)&&e.segments.push(t)}outputFor(e){return e.output??=wm()}flush(e){let t=[];for(let r=e.segments.length-1;r>=0;r--)t.push(e.segments[r]);for(;t.length>0;){let r=t.pop();if(Array.isArray(r)){for(let i of r)this.invoke(i);continue}for(let i=r.segments.length-1;i>=0;i--)t.push(r.segments[i])}}invoke(e){this.callbacks[e.name]?.apply(this.options,e.args)}currentFrame(){return this.frames[this.frames.length-1]}close(e){if(this.currentFrame()!==e||e.depth!==this.frames.length-1)throw new Error("Parse effect scopes must be closed in order");this.frames.pop(),this.frames.length===0&&this.hasCallbacks&&this.deactivateCallbacks()}restore(e){this.state&&this.state.restore(e.checkpoint)}unwind(e){for(let t=this.undoLog.length-1;t>=e;t--){let r=this.undoLog[t];switch(r._tag){case"ArrayLength":if(r.target.length<r.length)throw new Error("A parse effect shortened an append-only array");r.target.length=r.length;break;case"ArrayTail":r.target.length=r.start;for(let i of r.values)r.target.push(i);break;case"Property":r.had?r.target[r.key]=r.value:delete r.target[r.key];break}}this.undoLog.length=e}};function yi(e,t,r){if(e.length===t)return e;if(e.length<t)throw new Error(`A parse branch shortened the ${r} below its checkpoint`);return e.length=t,e}function iE(e){return{lookahead:e.getCurLookaheadState(),context:e.context,contextLength:e.context.length,scopeStack:e.scopeStack,scopeStackLength:e.scopeStack.length,importsStack:e.importsStack,importsStackLength:e.importsStack.length,labels:e.labels,labelsLength:e.labels.length,privateNameStack:e.privateNameStack,privateNameStackLength:e.privateNameStack.length,decoratorStack:e.decoratorStack,decoratorStackLength:e.decoratorStack.length,strict:e.strict,potentialArrowAt:e.potentialArrowAt,potentialArrowInForAwait:e.potentialArrowInForAwait,yieldPos:e.yieldPos,awaitPos:e.awaitPos,awaitIdentPos:e.awaitIdentPos,preValue:e.preValue,preToken:e.preToken,isLookahead:e.isLookahead,isAmbientContext:e.isAmbientContext,inAbstractClass:e.inAbstractClass,inType:e.inType,inDisallowConditionalTypesContext:e.inDisallowConditionalTypesContext,maybeInArrowParameters:e.maybeInArrowParameters,shouldParseArrowReturnType:e.shouldParseArrowReturnType,shouldParseAsyncArrowReturnType:e.shouldParseAsyncArrowReturnType,importOrExportOuterKind:e.importOrExportOuterKind}}function sE(e,t){e.setLookaheadTokenState(t.lookahead),e.context=yi(t.context,t.contextLength,"token context stack"),e.scopeStack=yi(t.scopeStack,t.scopeStackLength,"scope stack"),e.importsStack=yi(t.importsStack,t.importsStackLength,"import stack"),e.labels=yi(t.labels,t.labelsLength,"label stack"),e.privateNameStack=yi(t.privateNameStack,t.privateNameStackLength,"private-name stack"),e.decoratorStack=yi(t.decoratorStack,t.decoratorStackLength,"decorator stack"),e.strict=t.strict,e.potentialArrowAt=t.potentialArrowAt,e.potentialArrowInForAwait=t.potentialArrowInForAwait,e.yieldPos=t.yieldPos,e.awaitPos=t.awaitPos,e.awaitIdentPos=t.awaitIdentPos,e.regexpState=null,e.preValue=t.preValue,e.preToken=t.preToken,e.isLookahead=t.isLookahead,e.isAmbientContext=t.isAmbientContext,e.inAbstractClass=t.inAbstractClass,e.inType=t.inType,e.inDisallowConditionalTypesContext=t.inDisallowConditionalTypesContext,e.maybeInArrowParameters=t.maybeInArrowParameters,e.shouldParseArrowReturnType=t.shouldParseArrowReturnType,e.shouldParseAsyncArrowReturnType=t.shouldParseAsyncArrowReturnType,e.importOrExportOuterKind=t.importOrExportOuterKind}function aE(e){return{capture:()=>iE(e),restore:t=>sE(e,t)}}function nE(e,t){let r=t.acornTokenTypes,i=t.typeScriptTokenTypes,s=t.scope,a=s.SCOPE_TOP|s.SCOPE_FUNCTION|s.SCOPE_CLASS_STATIC_BLOCK;return class extends e{constructor(p,u,d){super(p,u,d),this.parseEffects=new rE(this.options,aE(this))}overrideContext(p){return this.curContext()!==p&&this.parseEffects?.willMutateTail(this.context,1),super.overrideContext(p)}takeDecorators(p){let u=this.decoratorStack.length-1;return this.decoratorStack[u].length>0&&this.parseEffects?.willSet(this.decoratorStack,String(u)),super.takeDecorators(p)}parseDecorators(p){let u=this.decoratorStack[this.decoratorStack.length-1];return this.parseEffects?.willAppend(u),super.parseDecorators(p)}parseDecorator(){return this.parseEffects?.willAppend(this.decoratorStack),super.parseDecorator()}parseIdentNode(){return(this.type.keyword==="class"||this.type.keyword==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.parseEffects?.willMutateTail(this.context,1),super.parseIdentNode()}parseLabeledStatement(p,u,d,m){for(let h=this.labels.length-1;h>=0;h--){let _=this.labels[h];if(_.statementStart!==p.start)break;this.parseEffects?.willSet(_,"statementStart"),this.parseEffects?.willSet(_,"kind")}return this.parseEffects?.willAppend(this.labels),super.parseLabeledStatement(p,u,d,m)}enterClassBody(){return this.parseEffects?.willAppend(this.privateNameStack),super.enterClassBody()}exitClassBody(){let p=this.privateNameStack[this.privateNameStack.length-2];return p&&this.parseEffects?.willAppend(p.used),this.parseEffects?.willMutateTail(this.privateNameStack,1),super.exitClassBody()}parsePrivateIdent(){if(this.options.checkPrivateFields&&this.privateNameStack.length>0){let p=this.privateNameStack[this.privateNameStack.length-1];this.parseEffects?.willAppend(p.used)}return super.parsePrivateIdent()}parseClassField(p){return this.parseEffects?.willSet(this.currentThisScope(),"inClassFieldInit"),super.parseClassField(p)}updateContext(p){let{type:u}=this;return(u===r.parenR||u===r.braceR||u===r.braceL||u===r.dollarBraceL||u===r.parenL||u===r._function||u===r._class||u===r.colon||u===r.backQuote||u===r.star||u===i.jsxTagStart||u===i.jsxTagEnd||u===r.slash&&p===i.jsxTagStart)&&this.parseEffects?.willMutateTail(this.context,2),super.updateContext(p)}enterScope(p){return this.parseEffects?.willAppend(this.scopeStack),super.enterScope(p)}exitScope(){return this.parseEffects?.willMutateTail(this.scopeStack,1),super.exitScope()}declareName(p,u,d){let m=this.parseEffects;if(m?.active)if(u===s.BIND_LEXICAL){let h=this.currentScope();m.willAppend(h.lexical),this.inModule&&h.flags&s.SCOPE_TOP&&m.willSet(this.undefinedExports,p)}else if(u===s.BIND_SIMPLE_CATCH)m.willAppend(this.currentScope().lexical);else if(u===s.BIND_FUNCTION)m.willAppend(this.currentScope().functions);else for(let h=this.scopeStack.length-1;h>=0;h--){let _=this.scopeStack[h];if(m.willAppend(_.var),this.inModule&&_.flags&s.SCOPE_TOP&&m.willSet(this.undefinedExports,p),_.flags&a)break}return super.declareName(p,u,d)}checkLocalExport(p){return this.parseEffects?.willSet(this.undefinedExports,p.name),super.checkLocalExport(p)}}}var jc=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function dm(e){if(!e)throw new Error("Assert fail")}function oE(e){return e==="accessor"}function lE(e){return e==="in"||e==="out"}var zs=1,fm=2,cE=4,be={SCOPE_TOP:1,SCOPE_FUNCTION:2,SCOPE_ASYNC:4,SCOPE_GENERATOR:8,SCOPE_ARROW:16,SCOPE_SIMPLE_CATCH:32,SCOPE_SUPER:64,SCOPE_DIRECT_SUPER:128,SCOPE_CLASS_STATIC_BLOCK:256,SCOPE_VAR:256,BIND_NONE:0,BIND_VAR:1,BIND_LEXICAL:2,BIND_FUNCTION:3,BIND_SIMPLE_CATCH:4,BIND_OUTSIDE:5,BIND_TS_TYPE:6,BIND_TS_INTERFACE:7,BIND_TS_NAMESPACE:1032,BIND_FLAGS_TS_EXPORT_ONLY:1024,BIND_FLAGS_TS_IMPORT:4096,BIND_FLAGS_TS_ENUM:256,BIND_FLAGS_TS_CONST_ENUM:512,BIND_TS_ENUM:258,BIND_TS_CONST_ENUM:770,BIND_FLAGS_CLASS:128};function Fc(e,t){return be.SCOPE_FUNCTION|(e?be.SCOPE_ASYNC:0)|(t?be.SCOPE_GENERATOR:0)}function pE(e){if(e.type!=="MemberExpression")return!1;let{computed:t,property:r}=e;return t&&(r.type!=="TemplateLiteral"||r.expressions.length>0)?!1:xm(e.object)}function uE(e){return e.type==="UnaryExpression"&&(e.operator==="-"||e.operator==="+")&&e.argument.type==="Literal"&&(typeof e.argument.value=="number"||typeof e.argument.value=="bigint")}function xm(e){return e.type==="Identifier"?!0:e.type!=="MemberExpression"||e.computed?!1:xm(e.object)}function mm(e){return e==="private"||e==="public"||e==="protected"}function dE(e){return!!e.startsExpr}function fE(e){if(e==null)throw new Error(`Unexpected ${e} value.`);return e}function mE(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function km(e){let{dts:t=!1}=e||{},r=!!e?.jsx;return function(i){let s=i.acorn||bc,a=Fk(s),n=s.tokTypes,p=s.keywordTypes,u=s.isIdentifierStart,d=s.lineBreak,m=s.isNewLine,h=s.tokContexts,_=s.isIdentifierChar,{tokTypes:v,tokContexts:E,keywordsRegExp:l,tokenIsLiteralPropertyName:o,tokenIsTemplate:g,tokenIsTSDeclarationStart:k,tokenIsIdentifier:S,tokenIsKeywordOrIdentifier:C,tokenIsTSTypeOperator:P}=a;function R(se,c,f=se.length){for(let b=c;b<f;b++){let x=se.charCodeAt(b);if(m(x))return b<f-1&&x===13&&se.charCodeAt(b+1)===10?b+2:b+1}return-1}i=Jk(i,a,s),e?.jsx&&(i=Qk(s,a,i,typeof e.jsx=="boolean"?{}:e.jsx)),i=eE(i,a,s);let L=nE(i,{acornTokenTypes:n,typeScriptTokenTypes:v,scope:be});class H extends L{constructor(c,f,b){super(c,f,b),this.preValue=null,this.preToken=null,this.isLookahead=!1,this.isAmbientContext=!1,this.inAbstractClass=!1,this.inType=!1,this.inDisallowConditionalTypesContext=!1,this.maybeInArrowParameters=!1,this.shouldParseArrowReturnType=void 0,this.shouldParseAsyncArrowReturnType=void 0,this.decoratorStack=[[]],this.importsStack=[[]],this.importOrExportOuterKind=void 0,this.tsParseConstModifier=x=>{this.tsParseModifiers({modified:x,allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:Q.InvalidModifierOnTypeParameterPositions})},this.ecmaVersion=this.options.ecmaVersion}static get acornTypeScript(){return a}get acornTypeScript(){return a}getTokenFromCodeInType(c){return c===62?this.finishOp(n.relational,1):c===60?this.finishOp(n.relational,1):super.getTokenFromCode(c)}readToken(c){if(!this.inType){let f=this.curContext();if(f===E.tc_expr)return this.jsx_readToken();if(f===E.tc_oTag||f===E.tc_cTag){if(u(c))return this.jsx_readWord();if(c==62)return++this.pos,this.finishToken(v.jsxTagEnd);if((c===34||c===39)&&f==E.tc_oTag)return this.jsx_readString(c)}if(c===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33)return++this.pos,e?.jsx?this.finishToken(v.jsxTagStart):this.finishToken(n.relational,"<")}return super.readToken(c)}getTokenFromCode(c){return this.inType?this.getTokenFromCodeInType(c):c===64?(++this.pos,this.finishToken(v.at)):super.getTokenFromCode(c)}isAbstractClass(){return this.ts_isContextual(v.abstract)&&this.lookahead().type===n._class}isDeclareClass(){if(!this.ts_isContextual(v.declare))return!1;let c=this.nextTokenStart();if(this.isUnparsedContextual(c,"class"))return!0;if(!this.isUnparsedContextual(c,"abstract"))return!1;let f=this.nextTokenStartSince(c+8);return this.isUnparsedContextual(f,"class")}finishNode(c,f){return c.type!==""&&c.end!==0?c:super.finishNode(c,f)}tryParse(c){let f={},b=this.beginParseEffectScope(),x;try{x=c(()=>{throw f})}catch(A){let I=A===f;if(!I&&!(A instanceof SyntaxError))throw this.parseEffects.rollback(b),A;let D={events:this.parseEffects.rollbackWithEvents(b),selected:!1};return I?{node:null,error:null,thrown:!1,aborted:!0,failState:D}:{node:null,error:A,thrown:!0,aborted:!1,failState:D}}return this.parseEffects.commit(b),{node:x,error:null,thrown:!1,aborted:!1,failState:null}}setOptionalParametersError(c,f){c.optionalParametersLoc=f?.loc??this.startLoc}reScan_lt_gt(){this.type===n.relational&&(this.pos-=1,this.readToken_lt_gt(this.fullCharCodeAtPos()))}reScan_lt(){let{type:c}=this;return c===n.bitShift?(this.pos-=2,this.finishOp(n.relational,1),n.relational):c}resetEndLocation(c,f=this.lastTokEnd,b=this.lastTokEndLoc){c.end=f,c.loc.end=b,this.options.ranges&&(c.range[1]=f)}startNodeAtNode(c){return super.startNodeAt(c.start,c.loc.start)}nextTokenStart(){return this.nextTokenStartSince(this.pos)}tsHasSomeModifiers(c,f){return f.some(b=>mm(b)?c.accessibility===b:!!c[b])}tsIsStartOfStaticBlocks(){return this.isContextual("static")&&this.lookaheadCharCode()===123}tsCheckForInvalidTypeCasts(c){c.forEach(f=>{f?.type==="TSTypeCastExpression"&&this.raise(f.typeAnnotation.start,Q.UnexpectedTypeAnnotation)})}atPossibleAsyncArrow(c){return c.type==="Identifier"&&c.name==="async"&&this.lastTokEnd===c.end&&!this.canInsertSemicolon()&&c.end-c.start===5&&c.start===this.potentialArrowAt}tsIsIdentifier(){return S(this.type)}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(n.colon)?this.tsParseTypeOrTypePredicateAnnotation(n.colon):void 0}tsTryParseGenericAsyncArrowFunction(c,f,b){if(!this.tsMatchLeftRelational())return;let x=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;let A=this.tsTryParseAndCatch(()=>{let I=this.startNodeAt(c,f);return I.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(I),I.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(n.arrow),I});if(this.maybeInArrowParameters=x,!!A)return this.parseArrowExpression(A,A.params,!0,b)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===n.relational)return this.tsParseTypeArguments(!0)}tsInNoContext(c){let f=this.context;this.context=[f[0]];try{return c()}finally{this.context=f}}tsTryParseTypeAnnotation(){return this.match(n.colon)?this.tsParseTypeAnnotation():void 0}isUnparsedContextual(c,f){let b=c+f.length;if(this.input.slice(c,b)===f){let x=this.input.charCodeAt(b);return!(_(x)||(x&64512)===55296)}return!1}isAbstractConstructorSignature(){return this.ts_isContextual(v.abstract)&&this.lookahead().type===n._new}nextTokenStartSince(c){return jc.lastIndex=c,jc.test(this.input)?jc.lastIndex:c}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}createLookaheadState(){this.value=null,this.context=[this.curContext()]}getCurLookaheadState(){return{endLoc:this.endLoc,lastTokEnd:this.lastTokEnd,lastTokStart:this.lastTokStart,lastTokStartLoc:this.lastTokStartLoc,pos:this.pos,value:this.value,type:this.type,exprAllowed:this.exprAllowed,start:this.start,end:this.end,context:this.context,startLoc:this.startLoc,lastTokEndLoc:this.lastTokEndLoc,curLine:this.curLine,lineStart:this.lineStart,containsEsc:this.containsEsc}}setLookaheadTokenState(c){this.pos=c.pos,this.value=c.value,this.exprAllowed=c.exprAllowed,this.endLoc=c.endLoc,this.lastTokEnd=c.lastTokEnd,this.lastTokStart=c.lastTokStart,this.lastTokStartLoc=c.lastTokStartLoc,this.type=c.type,this.start=c.start,this.end=c.end,this.startLoc=c.startLoc,this.lastTokEndLoc=c.lastTokEndLoc,this.curLine=c.curLine,this.lineStart=c.lineStart,this.containsEsc=c.containsEsc}setLookaheadState(c){this.setLookaheadTokenState(c),this.context=c.context&&c.context.slice()}beginParseEffectScope(){return this.parseEffects.begin()}selectTryParseResult(c){let f=c.failState;if(f){if(f.selected)throw new Error("A parse branch result can only be selected once");f.selected=!0,this.parseEffects.replay(f.events)}}tsLookAhead(c){let f=this.beginParseEffectScope();try{return c()}finally{this.parseEffects.rollback(f)}}lookahead(c){let f=this.getCurLookaheadState(),b=this.context,x=this.preValue,A=this.preToken,I=this.isLookahead;try{if(this.createLookaheadState(),this.isLookahead=!0,c!==void 0)for(let D=0;D<c;D++)this.nextToken();else this.nextToken();return this.getCurLookaheadState()}finally{this.setLookaheadTokenState(f),this.context=b,this.preValue=x,this.preToken=A,this.isLookahead=I}}readWord(){let c=this.readWord1(),f=n.name;return this.keywords.test(c)?f=p[c]:new RegExp(l).test(c)&&(f=v[c]),this.finishToken(f,c)}skipBlockComment(){let c;this.isLookahead||(c=this.options.onComment&&this.curPosition());let f=this.pos,b=this.input.indexOf("*/",this.pos+=2);if(b===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=b+2,this.options.locations)for(let x,A=f;(x=R(this.input,A,this.pos))>-1;)++this.curLine,A=this.lineStart=x;this.isLookahead||this.options.onComment&&this.options.onComment(!0,this.input.slice(f+2,b),f,this.pos,c,this.curPosition())}skipLineComment(c){let f=this.pos,b;this.isLookahead||(b=this.options.onComment&&this.curPosition());let x=this.input.charCodeAt(this.pos+=c);for(;this.pos<this.input.length&&!m(x);)x=this.input.charCodeAt(++this.pos);this.isLookahead||this.options.onComment&&this.options.onComment(!1,this.input.slice(f+c,this.pos),f,this.pos,b,this.curPosition())}finishToken(c,f){this.preValue=this.value,this.preToken=this.type,this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());let b=this.type;this.type=c,this.value=f,this.isLookahead||this.updateContext(b)}resetStartLocation(c,f,b){c.start=f,c.loc.start=b,this.options.ranges&&(c.range[0]=f)}isLineTerminator(){return this.eat(n.semi)||super.canInsertSemicolon()}hasFollowingLineBreak(){return lm.lastIndex=this.end,lm.test(this.input)}addExtra(c,f,b,x=!0){if(!c)return;let A=c.extra=c.extra||{};x?A[f]=b:Object.defineProperty(A,f,{enumerable:x,value:b})}isLiteralPropertyName(){return o(this.type)}hasPrecedingLineBreak(){return d.test(this.input.slice(this.lastTokEnd,this.start))}createIdentifier(c,f){return c.name=f,this.finishNode(c,"Identifier")}resetStartLocationFromNode(c,f){this.resetStartLocation(c,f.start,f.loc.start)}isThisParam(c){return c.type==="Identifier"&&c.name==="this"}isLookaheadContextual(c){let f=this.nextTokenStart();return this.isUnparsedContextual(f,c)}ts_type_isContextual(c,f){return c===f&&!this.containsEsc}ts_isContextual(c){return this.type===c&&!this.containsEsc}ts_isContextualWithState(c,f){return c.type===f&&!c.containsEsc}isContextualWithState(c,f){return f.type===n.name&&f.value===c&&!f.containsEsc}tsIsStartOfMappedType(){return this.next(),this.eat(n.plusMin)?this.ts_isContextual(v.readonly):(this.ts_isContextual(v.readonly)&&this.next(),!this.match(n.bracketL)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(n._in)))}tsInDisallowConditionalTypesContext(c){let f=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!0;try{return c()}finally{this.inDisallowConditionalTypesContext=f}}tsTryParseType(){return this.tsEatThenParseType(n.colon)}match(c){return this.type===c}matchJsx(c){return this.type===a.tokTypes[c]}ts_eatWithState(c,f,b){let x=b.type;if(c===x){for(let A=0;A<f;A++)this.next();return!0}else return!1}ts_eatContextualWithState(c,f,b){if(l.test(c)){if(this.ts_isContextualWithState(b,v[c])){for(let x=0;x<f;x++)this.next();return!0}return!1}else{if(!this.isContextualWithState(c,b))return!1;for(let x=0;x<f;x++)this.next();return!0}}canHaveLeadingDecorator(){return this.match(n._class)||this.isAbstractClass()||this.isDeclareClass()}eatContextual(c){return l.test(c)?this.ts_isContextual(v[c])?(this.next(),!0):!1:super.eatContextual(c)}tsIsExternalModuleReference(){return this.isContextual("require")&&this.lookaheadCharCode()===40}tsParseExternalModuleReference(){let c=this.startNode();return this.expectContextual("require"),this.expect(n.parenL),this.match(n.string)||this.unexpected(),c.expression=this.parseExprAtom(),this.expect(n.parenR),this.finishNode(c,"TSExternalModuleReference")}tsParseEntityName(c=!0){let f=this.parseIdent(c);for(;this.eat(n.dot);){let b=this.startNodeAtNode(f);b.left=f,b.right=this.parseIdent(c),f=this.finishNode(b,"TSQualifiedName")}return f}tsParseEnumMember(){let c=this.startNode();return c.id=this.match(n.string)?this.parseLiteral(this.value):this.parseIdent(!0),this.eat(n.eq)&&(c.initializer=this.parseMaybeAssign()),this.finishNode(c,"TSEnumMember")}tsParseEnumDeclaration(c,f={}){f.const&&(c.const=!0),f.declare&&(c.declare=!0),this.expectContextual("enum"),c.id=this.parseIdent();let b=f.const?be.BIND_TS_CONST_ENUM:be.BIND_TS_ENUM;return this.checkLValSimple(c.id,b),this.expect(n.braceL),c.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(n.braceR),this.finishNode(c,"TSEnumDeclaration")}tsParseModuleBlock(){let c=this.startNode();for(this.enterScope(Uk),this.expect(n.braceL),c.body=[];this.type!==n.braceR;){let f=this.parseStatement(null,!0);c.body.push(f)}return this.next(),super.exitScope(),this.finishNode(c,"TSModuleBlock")}tsParseAmbientExternalModuleDeclaration(c){return this.ts_isContextual(v.global)?(c.global=!0,c.id=this.parseIdent()):this.match(n.string)?c.id=this.parseLiteral(this.value):this.unexpected(),this.match(n.braceL)?(this.enterScope(Qi),c.body=this.tsParseModuleBlock(),super.exitScope()):super.semicolon(),this.finishNode(c,"TSModuleDeclaration")}tsTryParseDeclare(c){if(this.isLineTerminator())return;let f=this.type,b;return this.isContextual("let")&&(f=n._var,b="let"),this.tsInAmbientContext(()=>{if(f===n._function)return c.declare=!0,this.parseFunctionStatement(c,!1,!0);if(f===n._class)return c.declare=!0,this.parseClass(c,!0);if(f===v.enum)return this.tsParseEnumDeclaration(c,{declare:!0});if(f===v.global)return this.tsParseAmbientExternalModuleDeclaration(c);if(f===n._const||f===n._var)return!this.match(n._const)||!this.isLookaheadContextual("enum")?(c.declare=!0,this.parseVarStatement(c,b||this.value,!0)):(this.expect(n._const),this.tsParseEnumDeclaration(c,{const:!0,declare:!0}));if(f===v.interface){let x=this.tsParseInterfaceDeclaration(c,{declare:!0});if(x)return x}if(S(f))return this.tsParseDeclaration(c,this.value,!0)})}tsIsListTerminator(c){switch(c){case"EnumMembers":case"TypeMembers":return this.match(n.braceR);case"HeritageClauseElement":return this.match(n.braceL);case"TupleElementTypes":return this.match(n.bracketR);case"TypeParametersOrArguments":return this.tsMatchRightRelational()}}tsParseDelimitedListWorker(c,f,b,x){let A=[],I=-1;for(;!this.tsIsListTerminator(c);){I=-1;let D=f();if(D==null)return;if(A.push(D),this.eat(n.comma)){I=this.lastTokStart;continue}if(this.tsIsListTerminator(c))break;b&&this.expect(n.comma);return}return x&&(x.value=I),A}tsParseDelimitedList(c,f,b){return fE(this.tsParseDelimitedListWorker(c,f,!0,b))}tsParseBracketedList(c,f,b,x,A){x||(b?this.expect(n.bracketL):this.expect(n.relational));let I=this.tsParseDelimitedList(c,f,A);return b?this.expect(n.bracketR):this.expect(n.relational),I}tsParseTypeParameterName(){return this.parseIdent().name}tsEatThenParseType(c){return this.match(c)?this.tsNextThenParseType():void 0}tsExpectThenParseType(c){return this.tsDoThenParseType(()=>this.expect(c))}tsNextThenParseType(){return this.tsDoThenParseType(()=>this.next())}tsDoThenParseType(c){return this.tsInType(()=>(c(),this.tsParseType()))}tsSkipParameterStart(){if(S(this.type)||this.match(n._this))return this.next(),!0;if(this.match(n.braceL))try{return this.parseObj(!0),!0}catch{return!1}if(this.match(n.bracketL)){this.next();try{return this.parseBindingList(n.bracketR,!0,!0),!0}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(n.parenR)||this.match(n.ellipsis)||this.tsSkipParameterStart()&&(this.match(n.colon)||this.match(n.comma)||this.match(n.question)||this.match(n.eq)||this.match(n.parenR)&&(this.next(),this.match(n.arrow))))}tsIsStartOfFunctionType(){return this.tsMatchLeftRelational()?!0:this.match(n.parenL)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsInAllowConditionalTypesContext(c){let f=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!1;try{return c()}finally{this.inDisallowConditionalTypesContext=f}}tsParseBindingListForSignature(){return super.parseBindingList(n.parenR,!0,!0).map(c=>(c.type!=="Identifier"&&c.type!=="RestElement"&&c.type!=="ObjectPattern"&&c.type!=="ArrayPattern"&&this.raise(c.start,Q.UnsupportedSignatureParameterKind({type:c.type})),c))}tsParseTypePredicateAsserts(){if(this.type!==v.asserts)return!1;let c=this.containsEsc;return this.next(),!S(this.type)&&!this.match(n._this)?!1:(c&&this.raise(this.lastTokStart,"Escape sequence in keyword asserts"),!0)}tsParseThisTypeNode(){let c=this.startNode();return this.next(),this.finishNode(c,"TSThisType")}tsParseTypeAnnotation(c=!0,f=this.startNode()){return this.tsInType(()=>{c&&this.expect(n.colon),f.typeAnnotation=this.tsParseType()}),this.finishNode(f,"TSTypeAnnotation")}tsParseThisTypePredicate(c){this.next();let f=this.startNodeAtNode(c);return f.parameterName=c,f.typeAnnotation=this.tsParseTypeAnnotation(!1),f.asserts=!1,this.finishNode(f,"TSTypePredicate")}tsParseThisTypeOrThisTypePredicate(){let c=this.tsParseThisTypeNode();return this.isContextual("is")&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(c):c}tsParseTypePredicatePrefix(){let c=this.parseIdent();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),c}tsParseTypeOrTypePredicateAnnotation(c){return this.tsInType(()=>{let f=this.startNode();this.expect(c);let b=this.startNode(),x=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(x){let G=this.tsParseTypeAnnotation(!1);return b.parameterName=x,b.typeAnnotation=G,b.asserts=!1,f.typeAnnotation=this.finishNode(b,"TSTypePredicate"),this.finishNode(f,"TSTypeAnnotation")}let A=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(A&&this.match(n._this)){let G=this.tsParseThisTypeOrThisTypePredicate();return G.type==="TSThisType"?(b.parameterName=G,b.asserts=!0,b.typeAnnotation=null,G=this.finishNode(b,"TSTypePredicate")):(this.resetStartLocationFromNode(G,b),G.asserts=!0),f.typeAnnotation=G,this.finishNode(f,"TSTypeAnnotation")}let I=A&&this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!I)return A?(b.parameterName=this.parseIdent(),b.asserts=A,b.typeAnnotation=null,f.typeAnnotation=this.finishNode(b,"TSTypePredicate"),this.finishNode(f,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,f);let D=this.tsParseTypeAnnotation(!1);return b.parameterName=I,b.typeAnnotation=D,b.asserts=A,f.typeAnnotation=this.finishNode(b,"TSTypePredicate"),this.finishNode(f,"TSTypeAnnotation")})}tsFillSignature(c,f){let b=c===n.arrow,x="parameters",A="typeAnnotation";f.typeParameters=this.tsTryParseTypeParameters(),this.expect(n.parenL),f[x]=this.tsParseBindingListForSignature(),b?f[A]=this.tsParseTypeOrTypePredicateAnnotation(c):this.match(c)&&(f[A]=this.tsParseTypeOrTypePredicateAnnotation(c))}tsTryNextParseConstantContext(){if(this.lookahead().type!==n._const)return null;this.next();let c=this.tsParseTypeReference();return(c.typeParameters||c.typeArguments)&&this.raise(c.typeName.start,Q.CannotFindName({name:"const"})),c}tsParseFunctionOrConstructorType(c,f){let b=this.startNode();return c==="TSConstructorType"&&(b.abstract=!!f,f&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(n.arrow,b)),this.finishNode(b,c)}tsParseUnionOrIntersectionType(c,f,b){let x=this.startNode(),A=this.eat(b),I=[];do I.push(f());while(this.eat(b));return I.length===1&&!A?I[0]:(x.types=I,this.finishNode(x,c))}tsCheckTypeAnnotationForReadOnly(c){switch(c.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(c.start,Q.UnexpectedReadonly)}}tsParseTypeOperator(){let c=this.startNode(),f=this.value;return this.next(),c.operator=f,c.typeAnnotation=this.tsParseTypeOperatorOrHigher(),f==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(c),this.finishNode(c,"TSTypeOperator")}tsParseConstraintForInferType(){if(this.eat(n._extends)){let c=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.inDisallowConditionalTypesContext||!this.match(n.question))return c}}tsParseInferType(){let c=this.startNode();this.expectContextual("infer");let f=this.startNode();return f.name=this.tsParseTypeParameterName(),f.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),c.typeParameter=this.finishNode(f,"TSTypeParameter"),this.finishNode(c,"TSInferType")}tsParseLiteralTypeNode(){let c=this.startNode();return c.literal=(()=>{switch(this.type){case n.num:case n.string:case n._true:case n._false:return this.parseExprAtom();default:this.unexpected()}})(),this.finishNode(c,"TSLiteralType")}tsParseImportType(){let c=this.startNode();return this.expect(n._import),this.expect(n.parenL),this.match(n.string)||this.raise(this.start,Q.UnsupportedImportTypeArgument),c.argument=this.parseExprAtom(),this.expect(n.parenR),this.eat(n.dot)&&(c.qualifier=this.tsParseEntityName()),this.tsMatchLeftRelational()&&(c.typeArguments=this.tsParseTypeArguments()),this.finishNode(c,"TSImportType")}tsParseTypeQuery(){let c=this.startNode();return this.expect(n._typeof),this.match(n._import)?c.exprName=this.tsParseImportType():c.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational()&&(c.typeArguments=this.tsParseTypeArguments()),this.finishNode(c,"TSTypeQuery")}tsParseMappedTypeParameter(){let c=this.startNode();return c.name=this.tsParseTypeParameterName(),c.constraint=this.tsExpectThenParseType(n._in),this.finishNode(c,"TSTypeParameter")}tsParseMappedType(){let c=this.startNode();return this.expect(n.braceL),this.match(n.plusMin)?(c.readonly=this.value,this.next(),this.expectContextual("readonly")):this.eatContextual("readonly")&&(c.readonly=!0),this.expect(n.bracketL),c.typeParameter=this.tsParseMappedTypeParameter(),c.nameType=this.eatContextual("as")?this.tsParseType():null,this.expect(n.bracketR),this.match(n.plusMin)?(c.optional=this.value,this.next(),this.expect(n.question)):this.eat(n.question)&&(c.optional=!0),c.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(n.braceR),this.finishNode(c,"TSMappedType")}tsParseTypeLiteral(){let c=this.startNode();return c.members=this.tsParseObjectTypeMembers(),this.finishNode(c,"TSTypeLiteral")}tsIsTupleElementLabel(){if(!C(this.type))return!1;let c=this.lookahead();return c.type===n.colon?!0:c.type!==n.question?!1:this.lookahead(2).type===n.colon}tsParseTupleElementType(){let c=this.startLoc,f=this.start,b=this.eat(n.ellipsis),x;if(this.tsIsTupleElementLabel()){let A=this.startNode();A.label=this.parseIdent(!0),A.optional=this.eat(n.question),this.expect(n.colon),A.elementType=this.tsParseType(),x=this.finishNode(A,"TSNamedTupleMember")}else{x=this.tsParseType();let A=this.eat(n.question);if(this.eat(n.colon)&&this.raise(x.start,Q.InvalidTupleMemberLabel),A){let I=this.startNodeAtNode(x);I.typeAnnotation=x,x=this.finishNode(I,"TSOptionalType")}}if(b){let A=this.startNodeAt(f,c);A.typeAnnotation=x,x=this.finishNode(A,"TSRestType")}return x}tsParseTupleType(){let c=this.startNode();c.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let f=!1;return c.elementTypes.forEach(b=>{let{type:x}=b;f&&x!=="TSRestType"&&x!=="TSOptionalType"&&!(x==="TSNamedTupleMember"&&b.optional)&&this.raise(b.start,Q.OptionalTypeBeforeRequired),f||=x==="TSNamedTupleMember"&&b.optional||x==="TSOptionalType",x==="TSRestType"&&(b=b.typeAnnotation)}),this.finishNode(c,"TSTupleType")}tsParseTemplateLiteralType(){let c=this.startNode();return c.literal=this.parseTemplate({isTagged:!1}),this.finishNode(c,"TSLiteralType")}tsParseTypeReference(){let c=this.startNode();return c.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational()&&(c.typeArguments=this.tsParseTypeArguments()),this.finishNode(c,"TSTypeReference")}tsMatchLeftRelational(){return this.match(n.relational)&&this.value==="<"}tsMatchRightRelational(){return this.match(n.relational)&&this.value===">"}tsParseParenthesizedType(){let c=this.startNode();return this.expect(n.parenL),c.typeAnnotation=this.tsParseType(),this.expect(n.parenR),this.finishNode(c,"TSParenthesizedType")}tsParseNonArrayType(){switch(this.type){case n.string:case n.num:case n._true:case n._false:return this.tsParseLiteralTypeNode();case n.plusMin:if(this.value==="-"){let c=this.startNode();return this.lookahead().type!==n.num&&this.unexpected(),c.literal=this.parseMaybeUnary(),this.finishNode(c,"TSLiteralType")}break;case n._this:return this.tsParseThisTypeOrThisTypePredicate();case n._typeof:return this.tsParseTypeQuery();case n._import:return this.tsParseImportType();case n.braceL:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case n.bracketL:return this.tsParseTupleType();case n.parenL:return this.tsParseParenthesizedType();case n.backQuote:case n.dollarBraceL:return this.tsParseTemplateLiteralType();default:{let{type:c}=this;if(C(c)||c===n._void||c===n._null){let f=c===n._void?"TSVoidKeyword":c===n._null?"TSNullKeyword":mE(this.value);if(f!==void 0&&this.lookaheadCharCode()!==46){let b=this.startNode();return this.next(),this.finishNode(b,f)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let c=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(n.bracketL);)if(this.match(n.bracketR)){let f=this.startNodeAtNode(c);f.elementType=c,this.expect(n.bracketR),c=this.finishNode(f,"TSArrayType")}else{let f=this.startNodeAtNode(c);f.objectType=c,f.indexType=this.tsParseType(),this.expect(n.bracketR),c=this.finishNode(f,"TSIndexedAccessType")}return c}tsParseTypeOperatorOrHigher(){return P(this.type)&&!this.containsEsc?this.tsParseTypeOperator():this.isContextual("infer")?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),n.bitwiseAND)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),n.bitwiseOR)}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(n._new)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseType(){dm(this.inType);let c=this.tsParseNonConditionalType();if(this.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(n._extends))return c;let f=this.startNodeAtNode(c);return f.checkType=c,f.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(n.question),f.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(n.colon),f.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(f,"TSConditionalType")}tsIsUnambiguouslyIndexSignature(){return this.next(),S(this.type)?(this.next(),this.match(n.colon)):!1}tsInType(c){let f=this.inType;this.inType=!0;try{return c()}finally{this.inType=f}}tsTryParseIndexSignature(c){if(!(this.match(n.bracketL)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(n.bracketL);let f=this.parseIdent();f.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(f),this.expect(n.bracketR),c.parameters=[f];let b=this.tsTryParseTypeAnnotation();return b&&(c.typeAnnotation=b),this.tsParseTypeMemberSemicolon(),this.finishNode(c,"TSIndexSignature")}tsParseNoneModifiers(c){this.tsParseModifiers({modified:c,allowedModifiers:[],disallowedModifiers:["in","out"],errorTemplate:Q.InvalidModifierOnTypeParameterPositions})}tsParseTypeParameter(c=this.tsParseNoneModifiers.bind(this)){let f=this.startNode();return c(f),f.name=this.tsParseTypeParameterName(),f.constraint=this.tsEatThenParseType(n._extends),f.default=this.tsEatThenParseType(n.eq),this.finishNode(f,"TSTypeParameter")}tsParseTypeParameters(c){let f=this.startNode();this.tsMatchLeftRelational()||this.matchJsx("jsxTagStart")?this.next():this.unexpected();let b={value:-1};return f.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,c),!1,!0,b),f.params.length===0&&this.raise(this.start,Q.EmptyTypeParameters),b.value!==-1&&this.addExtra(f,"trailingComma",b.value),this.finishNode(f,"TSTypeParameterDeclaration")}tsTryParseTypeParameters(c){if(this.tsMatchLeftRelational())return this.tsParseTypeParameters(c)}tsTryParse(c){let f=this.beginParseEffectScope(),b;try{b=c()}catch(x){throw this.parseEffects.rollback(f),x}if(b!==void 0&&b!==!1)return this.parseEffects.commit(f),b;this.parseEffects.rollback(f)}tsTokenCanFollowModifier(){return(this.match(n.bracketL)||this.match(n.braceL)||this.match(n.star)||this.match(n.ellipsis)||this.match(n.privateId)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(!0),this.tsTokenCanFollowModifier()}tsParseModifier(c,f){let b=this.value;if(c.indexOf(b)!==-1&&!this.containsEsc){if(f&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return b}}tsParseModifiersByMap({modified:c,map:f}){for(let b of Object.keys(f))c[b]=f[b]}tsParseModifiers({modified:c,allowedModifiers:f,disallowedModifiers:b,stopOnStartOfClassStaticBlock:x,errorTemplate:A=Q.InvalidModifierOnTypeMember}){let I={},D=(V,B,pe,Ee)=>{B===pe&&c[Ee]&&this.raise(V.column,Q.InvalidModifiersOrder({orderedModifiers:[pe,Ee]}))},G=(V,B,pe,Ee)=>{(c[pe]&&B===Ee||c[Ee]&&B===pe)&&this.raise(V.column,Q.IncompatibleModifiers({modifiers:[pe,Ee]}))};for(;;){let V=this.startLoc,B=this.tsParseModifier(f.concat(b??[]),x);if(!B)break;mm(B)?c.accessibility?this.raise(this.start,Q.DuplicateAccessibilityModifier()):(D(V,B,B,"override"),D(V,B,B,"static"),D(V,B,B,"readonly"),D(V,B,B,"accessor"),I.accessibility=B,c.accessibility=B):lE(B)?c[B]?this.raise(this.start,Q.DuplicateModifier({modifier:B})):(D(V,B,"in","out"),I[B]=B,c[B]=!0):oE(B)?c[B]?this.raise(this.start,Q.DuplicateModifier({modifier:B})):(G(V,B,"accessor","readonly"),G(V,B,"accessor","override"),I[B]=B,c[B]=!0):B==="const"?c[B]?this.raise(this.start,Q.DuplicateModifier({modifier:B})):(I[B]=B,c[B]=!0):Object.hasOwnProperty.call(c,B)?this.raise(this.start,Q.DuplicateModifier({modifier:B})):(D(V,B,"static","readonly"),D(V,B,"static","override"),D(V,B,"override","readonly"),D(V,B,"abstract","override"),G(V,B,"declare","override"),G(V,B,"static","abstract"),I[B]=B,c[B]=!0),b?.includes(B)&&this.raise(this.start,A)}return I}tsParseInOutModifiers(c){this.tsParseModifiers({modified:c,allowedModifiers:["in","out"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:Q.InvalidModifierOnTypeParameter})}tsParseClassTypeParameterModifiers(c){this.tsParseModifiers({modified:c,allowedModifiers:["const","in","out"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:Q.InvalidModifierOnTypeParameter})}parseMaybeUnary(c,f,b,x){return!e?.jsx&&this.tsMatchLeftRelational()?this.tsParseTypeAssertion():super.parseMaybeUnary(c,f,b,x)}tsParseTypeAssertion(){r&&this.raise(this.start,Q.ReservedTypeAssertion);let c=this.tryParse(()=>{let f=this.startNode(),b=this.tsTryNextParseConstantContext();return f.typeAnnotation=b||this.tsNextThenParseType(),this.expect(n.relational),f.expression=this.parseMaybeUnary(),this.finishNode(f,"TSTypeAssertion")});return c.error?this.tsParseTypeParameters(this.tsParseConstModifier):c.node}tsParseTypeArguments(c=!1){let f=this.startNode();return f.params=this.tsInType(()=>this.tsInNoContext(()=>(this.expect(n.relational),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),f.params.length===0&&this.raise(this.start,Q.EmptyTypeArguments),c&&this.curContext()!==E.tc_oTag&&this.reScan_lt_gt(),this.tsMatchRightRelational()||this.unexpected(),this.exprAllowed=!1,this.next(),this.finishNode(f,"TSTypeParameterInstantiation")}tsParseHeritageClause(c){let f=this.start,b=this.tsParseDelimitedList("HeritageClauseElement",()=>{let x=this.startNode();return x.expression=this.tsParseEntityName(),this.tsMatchLeftRelational()&&(x.typeParameters=this.tsParseTypeArguments()),this.finishNode(x,"TSExpressionWithTypeArguments")});return b.length||this.raise(f,Q.EmptyHeritageClauseType({token:c})),b}tsParseTypeMemberSemicolon(){!this.eat(n.comma)&&!this.isLineTerminator()&&this.expect(n.semi)}tsTryParseAndCatch(c){let f=this.tryParse(b=>c()||b());if(!(f.aborted||!f.node))return f.node}tsParseSignatureMember(c,f){return this.tsFillSignature(n.colon,f),this.tsParseTypeMemberSemicolon(),this.finishNode(f,c)}tsParsePropertyOrMethodSignature(c,f){this.eat(n.question)&&(c.optional=!0);let b=c;if(this.match(n.parenL)||this.tsMatchLeftRelational()){f&&this.raise(c.start,Q.ReadonlyForMethodSignature);let x=b;x.kind&&this.tsMatchLeftRelational()&&this.raise(this.start,Q.AccesorCannotHaveTypeParameters),this.tsFillSignature(n.colon,x),this.tsParseTypeMemberSemicolon();let A="parameters",I="typeAnnotation";if(x.kind==="get")x[A].length>0&&(this.raise(this.start,"A 'get' accesor must not have any formal parameters."),this.isThisParam(x[A][0])&&this.raise(this.start,Q.AccesorCannotDeclareThisParameter));else if(x.kind==="set"){if(x[A].length!==1)this.raise(this.start,"A 'get' accesor must not have any formal parameters.");else{let D=x[A][0];this.isThisParam(D)&&this.raise(this.start,Q.AccesorCannotDeclareThisParameter),D.type==="Identifier"&&D.optional&&this.raise(this.start,Q.SetAccesorCannotHaveOptionalParameter),D.type==="RestElement"&&this.raise(this.start,Q.SetAccesorCannotHaveRestParameter)}x[I]&&this.raise(x[I].start,Q.SetAccesorCannotHaveReturnType)}else x.kind="method";return this.finishNode(x,"TSMethodSignature")}else{let x=b;f&&(x.readonly=!0);let A=this.tsTryParseTypeAnnotation();return A&&(x.typeAnnotation=A),this.tsParseTypeMemberSemicolon(),this.finishNode(x,"TSPropertySignature")}}tsParseTypeMember(){let c=this.startNode();if(this.match(n.parenL)||this.tsMatchLeftRelational())return this.tsParseSignatureMember("TSCallSignatureDeclaration",c);if(this.match(n._new)){let b=this.startNode();return this.next(),this.match(n.parenL)||this.tsMatchLeftRelational()?this.tsParseSignatureMember("TSConstructSignatureDeclaration",c):(c.key=this.createIdentifier(b,"new"),this.tsParsePropertyOrMethodSignature(c,!1))}this.tsParseModifiers({modified:c,allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]});let f=this.tsTryParseIndexSignature(c);return f||(this.parsePropertyName(c),!c.computed&&c.key.type==="Identifier"&&(c.key.name==="get"||c.key.name==="set")&&this.tsTokenCanFollowModifier()&&(c.kind=c.key.name,this.parsePropertyName(c)),this.tsParsePropertyOrMethodSignature(c,!!c.readonly))}tsParseList(c,f){let b=[];for(;!this.tsIsListTerminator(c);)b.push(f());return b}tsParseObjectTypeMembers(){this.expect(n.braceL);let c=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(n.braceR),c}tsParseInterfaceDeclaration(c,f={}){if(this.hasFollowingLineBreak())return null;if(this.expectContextual("interface"),f.declare&&(c.declare=!0),S(this.type)){c.id=this.parseIdent(),this.checkLValSimple(c.id,be.BIND_TS_INTERFACE);let x=this.currentScope();this.maybeExportDefined(x,c.id.name)}else c.id=null,this.raise(this.start,Q.MissingInterfaceName);c.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.eat(n._extends)&&(c.extends=this.tsParseHeritageClause("extends"));let b=this.startNode();return b.body=this.tsParseInterfaceBody(),c.body=this.finishNode(b,"TSInterfaceBody"),this.finishNode(c,"TSInterfaceDeclaration")}tsParseInterfaceBody(){this.expect(n.braceL);let c=this.inType;this.inType=!0;let f=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.inType=c,this.expect(n.braceR),f}tsParseAbstractDeclaration(c){if(this.match(n._class))return c.abstract=!0,this.parseClass(c,!0);if(this.ts_isContextual(v.interface)){if(!this.hasFollowingLineBreak())return c.abstract=!0,this.tsParseInterfaceDeclaration(c)}else this.unexpected(c.start)}tsIsDeclarationStart(){return k(this.type)}tsParseExpressionStatement(c,f){switch(f.name){case"declare":{let b=this.tsTryParseDeclare(c);if(b)return b.declare=!0,b;break}case"global":if(this.match(n.braceL)){this.enterScope(Qi);let b=c;return b.global=!0,b.id=f,b.body=this.tsParseModuleBlock(),super.exitScope(),this.finishNode(b,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(c,f.name,!1)}}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsIsExportDefaultSpecifier(){let{type:c}=this,f=this.isAsyncFunction(),b=this.isLet();if(S(c)){if(f&&!this.containsEsc||b)return!1;if((c===v.type||c===v.interface)&&!this.containsEsc){let I=this.lookahead();if(S(I.type)&&!this.isContextualWithState("from",I)||I.type===n.braceL)return!1}}else if(!this.match(n._default))return!1;let x=this.nextTokenStart(),A=this.isUnparsedContextual(x,"from");if(this.input.charCodeAt(x)===44||S(this.type)&&A)return!0;if(this.match(n._default)&&A){let I=this.input.charCodeAt(this.nextTokenStartSince(x+4));return I===34||I===39}return!1}tsInAmbientContext(c){let f=this.isAmbientContext;this.isAmbientContext=!0;try{return c()}finally{this.isAmbientContext=f}}tsCheckLineTerminator(c){return c?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsParseModuleOrNamespaceDeclaration(c,f=!1){if(c.id=this.parseIdent(),f||this.checkLValSimple(c.id,be.BIND_TS_NAMESPACE),this.eat(n.dot)){let b=this.startNode();this.tsParseModuleOrNamespaceDeclaration(b,!0),c.body=b}else this.enterScope(Qi),c.body=this.tsParseModuleBlock(),super.exitScope();return this.finishNode(c,"TSModuleDeclaration")}checkLValSimple(c,f=be.BIND_NONE,b){for(;c.type==="TSNonNullExpression"||c.type==="TSAsExpression"||c.type==="TSSatisfiesExpression"||c.type==="TSTypeAssertion";)c=c.expression;return super.checkLValSimple(c,f,b)}isSimpleAssignTarget(c){for(;c.type==="TSNonNullExpression"||c.type==="TSAsExpression"||c.type==="TSSatisfiesExpression"||c.type==="TSTypeAssertion";)c=c.expression;return super.isSimpleAssignTarget(c)}tsParseTypeAliasDeclaration(c){c.id=this.parseIdent(),this.checkLValSimple(c.id,be.BIND_TS_TYPE);let f=this.currentScope();return this.maybeExportDefined(f,c.id.name),c.typeAnnotation=this.tsInType(()=>{if(c.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.expect(n.eq),this.ts_isContextual(v.interface)&&this.lookahead().type!==n.dot){let b=this.startNode();return this.next(),this.finishNode(b,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(c,"TSTypeAliasDeclaration")}tsParseDeclaration(c,f,b){switch(f){case"abstract":if(this.tsCheckLineTerminator(b)&&(this.match(n._class)||S(this.type)))return this.tsParseAbstractDeclaration(c);break;case"module":if(this.tsCheckLineTerminator(b)){if(this.match(n.string))return this.tsParseAmbientExternalModuleDeclaration(c);if(S(this.type))return this.tsParseModuleOrNamespaceDeclaration(c)}break;case"namespace":if(this.tsCheckLineTerminator(b)&&S(this.type))return this.tsParseModuleOrNamespaceDeclaration(c);break;case"type":if(this.tsCheckLineTerminator(b)&&S(this.type))return this.tsParseTypeAliasDeclaration(c);break}}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.value,!0)}tsParseImportEqualsDeclaration(c,f){c.isExport=f||!1,c.id=this.parseIdent(),this.checkLValSimple(c.id,be.BIND_LEXICAL),super.expect(n.eq);let b=this.tsParseModuleReference();return c.importKind==="type"&&b.type!=="TSExternalModuleReference"&&this.raise(b.start,Q.ImportAliasHasImportType),c.moduleReference=b,super.semicolon(),this.finishNode(c,"TSImportEqualsDeclaration")}isExportDefaultSpecifier(){if(this.tsIsDeclarationStart())return!1;let{type:c}=this;if(S(c)){if(this.isContextual("async")||this.isContextual("let"))return!1;if((c===v.type||c===v.interface)&&!this.containsEsc){let x=this.lookahead();if(S(x.type)&&!this.isContextualWithState("from",x)||x.type===n.braceL)return!1}}else if(!this.match(n._default))return!1;let f=this.nextTokenStart(),b=this.isUnparsedContextual(f,"from");if(this.input.charCodeAt(f)===44||S(this.type)&&b)return!0;if(this.match(n._default)&&b){let x=this.input.charCodeAt(this.nextTokenStartSince(f+4));return x===34||x===39}return!1}parseTemplate({isTagged:c=!1}={}){let f=this.startNode();this.next(),f.expressions=[];let b=this.parseTemplateElement({isTagged:c});for(f.quasis=[b];!b.tail;)this.type===n.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(n.dollarBraceL),f.expressions.push(this.inType?this.tsParseType():this.parseExpression()),this.expect(n.braceR),f.quasis.push(b=this.parseTemplateElement({isTagged:c}));return this.next(),this.finishNode(f,"TemplateLiteral")}parseFunction(c,f,b,x,A){this.initFunction(c),(this.ecmaVersion>=9||this.ecmaVersion>=6&&!x)&&(this.type===n.star&&f&fm&&this.unexpected(),c.generator=this.eat(n.star)),this.ecmaVersion>=8&&(c.async=!!x),f&zs&&(c.id=f&cE&&this.type!==n.name?null:this.parseIdent());let I=this.yieldPos,D=this.awaitPos,G=this.awaitIdentPos,V=this.maybeInArrowParameters;this.maybeInArrowParameters=!1,this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Fc(c.async,c.generator)),f&zs||(c.id=this.type===n.name?this.parseIdent():null),this.parseFunctionParams(c);let B=f&zs;return this.parseFunctionBody(c,b,!1,A,{isFunctionDeclaration:B}),B&&this.isAmbientContext&&c.id&&this.currentScope().flags&be.SCOPE_TOP&&this.declareName(c.id.name,be.BIND_FLAGS_TS_EXPORT_ONLY,c.id.start),this.yieldPos=I,this.awaitPos=D,this.awaitIdentPos=G,f&zs&&c.id&&!(f&fm)&&(c.body?this.checkLValSimple(c.id,this.strict||c.generator||c.async?this.treatFunctionsAsVar?be.BIND_VAR:be.BIND_LEXICAL:be.BIND_FUNCTION):this.checkLValSimple(c.id,be.BIND_NONE)),this.maybeInArrowParameters=V,this.finishNode(c,B?"FunctionDeclaration":"FunctionExpression")}parseFunctionBody(c,f=!1,b=!1,x=!1,A){this.match(n.colon)&&(c.returnType=this.tsParseTypeOrTypePredicateAnnotation(n.colon));let I=A?.isFunctionDeclaration?"TSDeclareFunction":A?.isClassMethod?"TSDeclareMethod":void 0;return I&&!this.match(n.braceL)&&this.isLineTerminator()?(this.exitScope(),this.finishNode(c,I)):I==="TSDeclareFunction"&&this.isAmbientContext&&(this.raise(c.start,Q.DeclareFunctionHasImplementation),c.declare)?(super.parseFunctionBody(c,f,b,!1),this.finishNode(c,I)):(super.parseFunctionBody(c,f,b,x),c)}parseNew(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");let c=this.startNode(),f=this.parseIdent(!0);if(this.ecmaVersion>=6&&this.eat(n.dot)){c.meta=f;let D=this.containsEsc;return c.property=this.parseIdent(!0),c.property.name!=="target"&&this.raiseRecoverable(c.property.start,"The only valid meta property for new is 'new.target'"),D&&this.raiseRecoverable(c.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(c.start,"'new.target' can only be used in functions and class static block"),this.finishNode(c,"MetaProperty")}let b=this.start,x=this.startLoc,A=this.type===n._import;c.callee=this.parseSubscripts(this.parseExprAtom(),b,x,!0,!1),A&&c.callee.type==="ImportExpression"&&this.raise(b,"Cannot use new with import()");let{callee:I}=c;return I.type==="TSInstantiationExpression"&&!I.extra?.parenthesized&&(c.typeArguments=I.typeArguments,c.callee=I.expression),this.eat(n.parenL)?c.arguments=this.parseExprList(n.parenR,this.ecmaVersion>=8,!1):c.arguments=[],this.finishNode(c,"NewExpression")}parseExprOp(c,f,b,x,A){if(n._in.binop>x&&!this.hasPrecedingLineBreak()){let I;if(this.isContextual("as")&&(I="TSAsExpression"),this.isContextual("satisfies")&&(I="TSSatisfiesExpression"),I){let D=this.startNodeAt(f,b);D.expression=c;let G=this.tsTryNextParseConstantContext();return G?D.typeAnnotation=G:D.typeAnnotation=this.tsNextThenParseType(),this.finishNode(D,I),this.reScan_lt_gt(),this.parseExprOp(D,f,b,x,A)}}return super.parseExprOp(c,f,b,x,A)}parseImportSpecifiers(){let c=[],f=!0;if(a.tokenIsIdentifier(this.type)&&(c.push(this.parseImportDefaultSpecifier()),!this.eat(n.comma)))return c;if(this.type===n.star)return c.push(this.parseImportNamespaceSpecifier()),c;for(this.expect(n.braceL);!this.eat(n.braceR);){if(f)f=!1;else if(this.expect(n.comma),this.afterTrailingComma(n.braceR))break;c.push(this.parseImportSpecifier())}return c}parseImport(c){let f=this.lookahead();if(c.importKind="value",this.importOrExportOuterKind="value",S(f.type)||this.match(n.star)||this.match(n.braceL)){let b=this.lookahead(2);if(b.type!==n.comma&&!this.isContextualWithState("from",b)&&b.type!==n.eq&&this.ts_eatContextualWithState("type",1,f)&&(this.importOrExportOuterKind="type",c.importKind="type",f=this.lookahead(),b=this.lookahead(2)),S(f.type)&&b.type===n.eq){this.next();let x=this.tsParseImportEqualsDeclaration(c);return this.importOrExportOuterKind="value",x}}return this.next(),this.type===n.string?(c.specifiers=[],c.source=this.parseExprAtom()):(c.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),c.source=this.type===n.string?this.parseExprAtom():this.unexpected()),this.parseMaybeImportAttributes(c),this.semicolon(),this.finishNode(c,"ImportDeclaration"),this.importOrExportOuterKind="value",c.importKind==="type"&&c.specifiers.length>1&&c.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(c.start,Q.TypeImportCannotSpecifyDefaultAndNamed),c}parseExportDefaultDeclaration(){if(this.isAbstractClass()){let c=this.startNode();return this.next(),c.abstract=!0,this.parseClass(c,!0)}if(this.match(v.interface)){let c=this.tsParseInterfaceDeclaration(this.startNode());if(c)return c}return super.parseExportDefaultDeclaration()}parseExportAllDeclaration(c,f){return this.ecmaVersion>=11&&(this.eatContextual("as")?(c.exported=this.parseModuleExportName(),this.checkExport(f,c.exported,this.lastTokStart)):c.exported=null),this.expectContextual("from"),this.type!==n.string&&this.unexpected(),c.source=this.parseExprAtom(),this.parseMaybeImportAttributes(c),this.semicolon(),this.finishNode(c,"ExportAllDeclaration")}parseDynamicImport(c){if(this.next(),c.source=this.parseMaybeAssign(),this.eat(n.comma)){let f=this.parseExpression();c.arguments=[f]}if(!this.eat(n.parenR)){let f=this.start;this.eat(n.comma)&&this.eat(n.parenR)?this.raiseRecoverable(f,"Trailing comma is not allowed in import()"):this.unexpected(f)}return this.finishNode(c,"ImportExpression")}parseExport(c,f){let b=this.lookahead();if(this.ts_eatWithState(n._import,2,b)){this.ts_isContextual(v.type)&&this.lookaheadCharCode()!==61?(c.importKind="type",this.importOrExportOuterKind="type",this.next()):(c.importKind="value",this.importOrExportOuterKind="value");let x=this.tsParseImportEqualsDeclaration(c,!0);return this.importOrExportOuterKind=void 0,x}else if(this.ts_eatWithState(n.eq,2,b)){let x=c;return x.expression=this.parseExpression(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(x,"TSExportAssignment")}else if(this.ts_eatContextualWithState("as",2,b)){let x=c;return this.expectContextual("namespace"),x.id=this.parseIdent(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(x,"TSNamespaceExportDeclaration")}else{let x=this.lookahead(2).type;if(this.ts_isContextualWithState(b,v.type)&&(x===n.braceL||x===n.star)?(this.next(),this.importOrExportOuterKind="type",c.exportKind="type"):(this.importOrExportOuterKind="value",c.exportKind="value"),this.next(),this.eat(n.star))return this.parseExportAllDeclaration(c,f);if(this.eat(n._default))return this.checkExport(f,"default",this.lastTokStart),c.declaration=this.parseExportDefaultDeclaration(),this.finishNode(c,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())c.declaration=this.parseExportDeclaration(c),c.declaration.type==="VariableDeclaration"?this.checkVariableExport(f,c.declaration.declarations):this.checkExport(f,c.declaration.id,c.declaration.id.start),c.specifiers=[],c.source=null;else{if(c.declaration=null,c.specifiers=this.parseExportSpecifiers(f),this.eatContextual("from"))this.type!==n.string&&this.unexpected(),c.source=this.parseExprAtom(),this.parseMaybeImportAttributes(c);else{for(let A of c.specifiers)this.checkUnreserved(A.local),this.checkLocalExport(A.local),A.local.type==="Literal"&&this.raise(A.local.start,"A string literal cannot be used as an exported binding without `from`.");c.source=null}this.semicolon()}return this.finishNode(c,"ExportNamedDeclaration")}}checkExport(c,f,b){c&&(typeof f!="string"&&(f=f.type==="Identifier"?f.name:f.value),c[f]=!0)}parseMaybeDefault(c,f,b){let x=super.parseMaybeDefault(c,f,b);return x.type==="AssignmentPattern"&&x.typeAnnotation&&x.right.start<x.typeAnnotation.start&&this.raise(x.typeAnnotation.start,Q.TypeAnnotationAfterAssign),x}typeCastToParameter(c){return c.expression.typeAnnotation=c.typeAnnotation,this.resetEndLocation(c.expression,c.typeAnnotation.end,c.typeAnnotation.loc?.end),c.expression}toAssignableList(c,f){c||(c=[]);for(let b=0;b<c.length;b++){let x=c[b];x?.type==="TSTypeCastExpression"&&(c[b]=this.typeCastToParameter(x))}return super.toAssignableList(c,f)}reportReservedArrowTypeParam(c){c.params.length===1&&!c.extra?.trailingComma&&r&&this.raise(c.start,Q.ReservedArrowTypeParam)}parseExprAtom(c,f,b){if(this.type===v.jsxText)return this.jsx_parseText();if(this.type===v.jsxTagStart)return this.jsx_parseElement();if(this.type===v.at)return this.parseDecorators(),this.parseExprAtom();if(S(this.type)){let x=this.potentialArrowAt===this.start,A=this.start,I=this.startLoc,D=this.containsEsc,G=this.parseIdent(!1);if(this.ecmaVersion>=8&&!D&&G.name==="async"&&!this.canInsertSemicolon()&&this.eat(n._function))return this.overrideContext(h.f_expr),this.parseFunction(this.startNodeAt(A,I),0,!1,!0,f);if(x&&!this.canInsertSemicolon()){if(this.eat(n.arrow))return this.parseArrowExpression(this.startNodeAt(A,I),[G],!1,f);if(this.ecmaVersion>=8&&G.name==="async"&&this.type===n.name&&!D&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return G=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(n.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(A,I),[G],!0,f)}return G}else return super.parseExprAtom(c,f,b)}parseExprAtomDefault(){if(S(this.type)){let c=this.potentialArrowAt===this.start,f=this.containsEsc,b=this.parseIdent();if(!f&&b.name==="async"&&!this.canInsertSemicolon()){let{type:x}=this;if(x===n._function)return this.next(),this.parseFunction(this.startNodeAtNode(b),void 0,!0,!0);if(S(x))if(this.lookaheadCharCode()===61){let A=this.parseIdent(!1);return(this.canInsertSemicolon()||!this.eat(n.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAtNode(b),[A],!0)}else return b}return c&&this.match(n.arrow)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(b),[b],!1)):b}else this.unexpected()}parseIdentNode(){let c=this.startNode();if(C(this.type)&&!((this.type.keyword==="class"||this.type.keyword==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)))c.name=this.value;else return super.parseIdentNode();return c}parseVarStatement(c,f,b=!1){let{isAmbientContext:x}=this;this.next(),super.parseVar(c,!1,f,b||x),this.semicolon();let A=this.finishNode(c,"VariableDeclaration");if(!x)return A;for(let{id:I,init:D}of A.declarations)D&&(f!=="const"||I.typeAnnotation?this.raise(D.start,Q.InitializerNotAllowedInAmbientContext):D.type!=="Literal"&&(D.type!=="TemplateLiteral"||D.expressions.length>0)&&!uE(D)&&!pE(D)&&this.raise(D.start,Q.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference));return A}parseStatement(c,f,b){if(this.match(v.at)&&this.parseDecorators(!0),this.match(n._const)&&this.isLookaheadContextual("enum")){let x=this.startNode();return this.expect(n._const),this.tsParseEnumDeclaration(x,{const:!0})}if(this.ts_isContextual(v.enum))return this.tsParseEnumDeclaration(this.startNode());if(this.ts_isContextual(v.interface)){let x=this.tsParseInterfaceDeclaration(this.startNode());if(x)return x}return super.parseStatement(c,f,b)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}parsePostMemberNameModifiers(c){this.eat(n.question)&&(c.optional=!0),c.readonly&&this.match(n.parenL)&&this.raise(c.start,Q.ClassMethodHasReadonly),c.declare&&this.match(n.parenL)&&this.raise(c.start,Q.ClassMethodHasDeclare)}parseExpressionStatement(c,f){return(f.type==="Identifier"?this.tsParseExpressionStatement(c,f):void 0)||super.parseExpressionStatement(c,f)}shouldParseExportStatement(){return this.tsIsDeclarationStart()||this.match(v.at)?!0:super.shouldParseExportStatement()}parseConditional(c,f,b,x,A){if(this.eat(n.question)){let I=this.startNodeAt(f,b);return I.test=c,I.consequent=this.parseMaybeAssign(),this.expect(n.colon),I.alternate=this.parseMaybeAssign(x),this.finishNode(I,"ConditionalExpression")}return c}parseMaybeConditional(c,f){let b=this.start,x=this.startLoc,A=this.parseExprOps(c,f);if(this.checkExpressionErrors(f))return A;if(!this.maybeInArrowParameters||!this.match(n.question))return this.parseConditional(A,b,x,c,f);let I=this.tryParse(()=>this.parseConditional(A,b,x,c,f));return I.node?I.node:(I.error&&this.setOptionalParametersError(f,I.error),A)}parseParenItem(c){let f=this.start,b=this.startLoc;if(c=super.parseParenItem(c),this.eat(n.question)&&(c.optional=!0,this.resetEndLocation(c)),this.match(n.colon)){let x=this.startNodeAt(f,b);return x.expression=c,x.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(x,"TSTypeCastExpression")}return c}parseExportDeclaration(c){if(!this.isAmbientContext&&this.ts_isContextual(v.declare))return this.tsInAmbientContext(()=>this.parseExportDeclaration(c));let f=this.start,b=this.startLoc,x=this.eatContextual("declare");x&&(this.ts_isContextual(v.declare)||!this.shouldParseExportStatement())&&this.raise(this.start,Q.ExpectedAmbientAfterExportDeclare);let I=S(this.type)&&this.tsTryParseExportDeclaration()||this.parseStatement(null);return I?((I.type==="TSInterfaceDeclaration"||I.type==="TSTypeAliasDeclaration"||x)&&(c.exportKind="type"),x&&(this.resetStartLocation(I,f,b),I.declare=!0),I):null}parseClassId(c,f){if(!f&&this.isContextual("implements"))return;super.parseClassId(c,f);let b=this.tsTryParseTypeParameters(this.tsParseClassTypeParameterModifiers.bind(this));b&&(c.typeParameters=b)}parseClassPropertyAnnotation(c){c.optional||(this.value==="!"&&this.eat(n.prefix)?c.definite=!0:this.eat(n.question)&&(c.optional=!0));let f=this.tsTryParseTypeAnnotation();f&&(c.typeAnnotation=f)}parseClassField(c){if(c.key.type==="PrivateIdentifier")c.abstract&&this.raise(c.start,Q.PrivateElementHasAbstract),c.accessibility&&this.raise(c.start,Q.PrivateElementHasAccessibility({modifier:c.accessibility})),this.parseClassPropertyAnnotation(c);else if(this.parseClassPropertyAnnotation(c),this.isAmbientContext&&!(c.readonly&&!c.typeAnnotation)&&this.match(n.eq)&&this.raise(this.start,Q.DeclareClassFieldHasInitializer),c.abstract&&this.match(n.eq)){let{key:b}=c;this.raise(this.start,Q.AbstractPropertyHasInitializer({propertyName:b.type==="Identifier"&&!c.computed?b.name:`[${this.input.slice(b.start,b.end)}]`}))}return super.parseClassField(c)}parseClassMethod(c,f,b,x){let A=c.kind==="constructor",I=c.key.type==="PrivateIdentifier",D=this.tsTryParseTypeParameters(this.tsParseConstModifier);I?(D&&(c.typeParameters=D),c.accessibility&&this.raise(c.start,Q.PrivateMethodsHasAccessibility({modifier:c.accessibility}))):D&&A&&this.raise(D.start,Q.ConstructorHasTypeParameters);let{declare:G=!1,kind:V}=c;G&&(V==="get"||V==="set")&&this.raise(c.start,Q.DeclareAccessor({kind:V})),D&&(c.typeParameters=D);let B=c.key;c.kind==="constructor"?(f&&this.raise(B.start,"Constructor can't be a generator"),b&&this.raise(B.start,"Constructor can't be an async method")):c.static&&cm(c,"prototype")&&this.raise(B.start,"Classes may not have a static property named prototype");let pe=c.value=this.parseMethod(f,b,x,!0,c);return c.kind==="get"&&pe.params.length!==0&&this.raiseRecoverable(pe.start,"getter should have no params"),c.kind==="set"&&pe.params.length!==1&&this.raiseRecoverable(pe.start,"setter should have exactly one param"),c.kind==="set"&&pe.params[0].type==="RestElement"&&this.raiseRecoverable(pe.params[0].start,"Setter cannot use rest params"),this.finishNode(c,"MethodDefinition")}isClassMethod(){return this.match(n.relational)}parseClassElement(c){if(this.eat(n.semi))return null;let f=this.startNode(),b="",x=!1,A=!1,I="method",D=!1,G=["declare","private","public","protected","accessor","override","abstract","readonly","static"];D=!!this.tsParseModifiers({modified:f,allowedModifiers:G,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:Q.InvalidModifierOnTypeParameterPositions}).static;let B=()=>{if(this.tsIsStartOfStaticBlocks()){if(this.next(),this.next(),this.tsHasSomeModifiers(f,G)&&this.raise(this.start,Q.StaticBlockCannotHaveModifier),this.ecmaVersion>=13)return super.parseClassStaticBlock(f),f}else{let pe=this.tsTryParseIndexSignature(f);if(pe)return f.abstract&&this.raise(f.start,Q.IndexSignatureHasAbstract),f.accessibility&&this.raise(f.start,Q.IndexSignatureHasAccessibility({modifier:f.accessibility})),f.declare&&this.raise(f.start,Q.IndexSignatureHasDeclare),f.override&&this.raise(f.start,Q.IndexSignatureHasOverride),pe;if(!this.inAbstractClass&&f.abstract&&this.raise(f.start,Q.NonAbstractClassHasAbstractMethod),f.override&&(c||this.raise(f.start,Q.OverrideNotInSubClass)),f.static=D,D&&(this.isClassElementNameStart()||this.type===n.star||(b="static")),!b&&this.ecmaVersion>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===n.star)&&!this.canInsertSemicolon()?A=!0:b="async"),!b&&(this.ecmaVersion>=9||!A)&&this.eat(n.star)&&(x=!0),!b&&!A&&!x){let Ee=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?I=Ee:b=Ee)}if(b?(f.computed=!1,f.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),f.key.name=b,this.finishNode(f.key,"Identifier")):this.parseClassElementName(f),this.parsePostMemberNameModifiers(f),this.isClassMethod()||this.ecmaVersion<13||this.type===n.parenL||I!=="method"||x||A){let Ee=!f.static&&cm(f,"constructor"),xe=Ee&&c;Ee&&I!=="method"&&this.raise(f.key.start,"Constructor can't have get/set modifier"),f.kind=Ee?"constructor":I,this.parseClassMethod(f,x,A,xe)}else this.parseClassField(f);return f}};return f.declare?this.tsInAmbientContext(B):B(),f}isClassElementNameStart(){return this.tsIsIdentifier()?!0:super.isClassElementNameStart()}parseClassSuper(c){super.parseClassSuper(c),c.superClass&&(this.tsMatchLeftRelational()||this.match(n.bitShift))&&(c.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual("implements")&&(c.implements=this.tsParseHeritageClause("implements"))}parseFunctionParams(c){let f=this.tsTryParseTypeParameters(this.tsParseConstModifier);f&&(c.typeParameters=f),super.parseFunctionParams(c)}parseVarId(c,f){super.parseVarId(c,f),c.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.value==="!"&&this.eat(n.prefix)&&(c.definite=!0);let b=this.tsTryParseTypeAnnotation();b&&(c.id.typeAnnotation=b,this.resetEndLocation(c.id))}parseArrowExpression(c,f,b,x){this.match(n.colon)&&(c.returnType=this.tsParseTypeAnnotation());let A=this.yieldPos,I=this.awaitPos,D=this.awaitIdentPos;this.enterScope(Fc(b,!1)|be.SCOPE_ARROW),this.initFunction(c);let G=this.maybeInArrowParameters;return this.ecmaVersion>=8&&(c.async=!!b),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.maybeInArrowParameters=!0,c.params=this.toAssignableList(f,!0),this.maybeInArrowParameters=!1,this.parseFunctionBody(c,!0,!1,x),this.yieldPos=A,this.awaitPos=I,this.awaitIdentPos=D,this.maybeInArrowParameters=G,this.finishNode(c,"ArrowFunctionExpression")}parseYield(c){this.yieldPos||(this.yieldPos=this.start);let f=this.startNode();this.next();let b=this.tsMatchLeftRelational();return!this.match(n.semi)&&!this.canInsertSemicolon()&&(this.match(n.star)||this.type.startsExpr||b)?(f.delegate=this.eat(n.star),f.argument=this.parseMaybeAssign(c),this.finishNode(f,"YieldExpression")):(f.delegate=!1,f.argument=null,this.finishNode(f,"YieldExpression"))}parseMaybeAssignOrigin(c,f,b){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(c);this.exprAllowed=!1}let x=!1,A=-1,I=-1,D=-1;f?(A=f.parenthesizedAssign,I=f.trailingComma,D=f.doubleProto,f.parenthesizedAssign=f.trailingComma=-1):(f=new es,x=!0);let G=this.start,V=this.startLoc;(this.type===n.parenL||S(this.type))&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=c==="await");let B=this.parseMaybeConditional(c,f);if(b&&(B=b.call(this,B,G,V)),this.type.isAssign){let pe=this.startNodeAt(G,V);return pe.operator=this.value,this.type===n.eq&&(B=this.toAssignable(B,!0,f,!0)),x||(f.parenthesizedAssign=f.trailingComma=f.doubleProto=-1),f.shorthandAssign>=B.start&&(f.shorthandAssign=-1),this.maybeInArrowParameters||(this.type===n.eq?this.checkLValPattern(B):this.checkLValSimple(B)),pe.left=B,this.next(),pe.right=this.parseMaybeAssign(c),D>-1&&(f.doubleProto=D),this.finishNode(pe,"AssignmentExpression")}else x&&this.checkExpressionErrors(f,!0);return A>-1&&(f.parenthesizedAssign=A),I>-1&&(f.trailingComma=I),B}parseMaybeAssign(c,f,b){let x,A;if(e?.jsx&&(this.matchJsx("jsxTagStart")||this.tsMatchLeftRelational())){if(x=this.tryParse(()=>this.parseMaybeAssignOrigin(c,f,b)),!x.error)return x.node;let G=this.context,V=G[G.length-1],B=G[G.length-2];V===a.tokContexts.tc_oTag&&B===a.tokContexts.tc_expr?(this.parseEffects.pop(G),this.parseEffects.pop(G)):(V===a.tokContexts.tc_oTag||V===a.tokContexts.tc_expr)&&this.parseEffects.pop(G)}if(!x?.error&&!this.tsMatchLeftRelational())return this.parseMaybeAssignOrigin(c,f,b);let I,D=this.tryParse(G=>{I=this.tsParseTypeParameters(this.tsParseConstModifier);let V=this.parseMaybeAssignOrigin(c,f,b);return(V.type!=="ArrowFunctionExpression"||V.extra?.parenthesized)&&G(),I?.params.length!==0&&this.resetStartLocationFromNode(V,I),V.typeParameters=I,V});if(!D.error&&!D.aborted)return I&&this.reportReservedArrowTypeParam(I),D.node;if(!x&&(dm(!0),A=this.tryParse(()=>this.parseMaybeAssignOrigin(c,f,b)),!A.error))return A.node;throw x?.thrown?(this.selectTryParseResult(x),x.error):D.thrown?(this.selectTryParseResult(D),D.error):A?.thrown?(this.selectTryParseResult(A),A.error):x?.error||D.error||A?.error}parseAssignableListItem(c){let f=[];for(;this.match(v.at);)f.push(this.parseDecorator());let b=this.start,x=this.startLoc,A,I=!1,D=!1;if(c!==void 0){let B={};this.tsParseModifiers({modified:B,allowedModifiers:["public","private","protected","override","readonly"]}),A=B.accessibility,D=B.override,I=B.readonly,c===!1&&(A||I||D)&&this.raise(x.column,Q.UnexpectedParameterModifier)}let G=this.parseMaybeDefault(b,x);this.parseBindingListItem(G);let V=this.parseMaybeDefault(G.start,G.loc.start,G);if(f.length&&(V.decorators=f),A||I||D){let B=this.startNodeAt(b,x);return A&&(B.accessibility=A),I&&(B.readonly=I),D&&(B.override=D),V.type!=="Identifier"&&V.type!=="AssignmentPattern"&&this.raise(B.start,Q.UnsupportedParameterPropertyKind),B.parameter=V,this.finishNode(B,"TSParameterProperty")}return V}checkLValInnerPattern(c,f=be.BIND_NONE,b){c.type==="TSParameterProperty"?this.checkLValInnerPattern(c.parameter,f,b):super.checkLValInnerPattern(c,f,b)}parseBindingListItem(c){this.eat(n.question)&&(c.type!=="Identifier"&&!this.isAmbientContext&&!this.inType&&this.raise(c.start,Q.PatternIsOptional),c.optional=!0);let f=this.tsTryParseTypeAnnotation();return f&&(c.typeAnnotation=f),this.resetEndLocation(c),c}isAssignable(c,f){switch(c.type){case"TSTypeCastExpression":return this.isAssignable(c.expression,f);case"TSParameterProperty":return!0;case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{let b=c.properties.length-1;return c.properties.every((x,A)=>x.type!=="ObjectMethod"&&(A===b||x.type!=="SpreadElement")&&this.isAssignable(x))}case"Property":case"ObjectProperty":return this.isAssignable(c.value);case"SpreadElement":return this.isAssignable(c.argument);case"ArrayExpression":return c.elements.every(b=>b===null||this.isAssignable(b));case"AssignmentExpression":return c.operator==="=";case"ParenthesizedExpression":return this.isAssignable(c.expression);case"MemberExpression":case"OptionalMemberExpression":return!f;default:return!1}}toAssignable(c,f=!1,b=new es,x=!1){switch(c.type){case"ParenthesizedExpression":return this.toAssignableParenthesizedExpression(c,f,b,x);case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":f||this.raise(c.start,Q.UnexpectedTypeCastInParameter);let A=this.toAssignable(c.expression,f,b,x);return x?(c.expression=A,c):A;case"MemberExpression":break;case"AssignmentExpression":return!f&&c.left.type==="TSTypeCastExpression"&&(c.left=this.typeCastToParameter(c.left)),super.toAssignable(c,f,b);case"TSTypeCastExpression":return this.typeCastToParameter(c);default:return super.toAssignable(c,f,b)}return c}toAssignableParenthesizedExpression(c,f,b,x=!1){switch(c.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":let A=this.toAssignable(c.expression,f,b,x);return x?(c.expression=A,c):A;default:return super.toAssignable(c,f,b)}}parseBindingAtom(){return this.type===n._this?this.parseIdent(!0):super.parseBindingAtom()}shouldParseArrow(c){let f;if(this.match(n.colon)?f=c.every(b=>this.isAssignable(b,!0)):f=!this.canInsertSemicolon(),f){if(this.match(n.colon)){let b=this.tryParse(x=>{let A=this.tsParseTypeOrTypePredicateAnnotation(n.colon);return(this.canInsertSemicolon()||!this.match(n.arrow))&&x(),A});if(b.aborted)return this.shouldParseArrowReturnType=void 0,!1;b.thrown||(this.shouldParseArrowReturnType=b.node)}return this.match(n.arrow)?!0:(this.shouldParseArrowReturnType=void 0,!1)}return this.shouldParseArrowReturnType=void 0,f}parseParenArrowList(c,f,b,x){let A=this.startNodeAt(c,f);return A.returnType=this.shouldParseArrowReturnType,this.shouldParseArrowReturnType=void 0,this.parseArrowExpression(A,b,!1,x)}parseParenAndDistinguishExpression(c,f){let b=this.start,x=this.startLoc,A,I=this.ecmaVersion>=8;if(this.ecmaVersion>=6){let D=this.maybeInArrowParameters;this.maybeInArrowParameters=!0,this.next();let G=this.start,V=this.startLoc,B=[],pe=!0,Ee=!1,xe=new es,Nt=this.yieldPos,Mt=this.awaitPos,Lt;for(this.yieldPos=0,this.awaitPos=0;this.type!==n.parenR;)if(pe?pe=!1:this.expect(n.comma),I&&this.afterTrailingComma(n.parenR,!0)){Ee=!0;break}else if(this.type===n.ellipsis){Lt=this.start,B.push(this.parseParenItem(this.parseRestBinding())),this.type===n.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}else B.push(this.parseMaybeAssign(!1,xe,this.parseParenItem));let cr=this.lastTokEnd,nt=this.lastTokEndLoc;if(this.expect(n.parenR),this.maybeInArrowParameters=D,c&&this.shouldParseArrow(B)&&this.eat(n.arrow))return this.checkPatternErrors(xe,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=Nt,this.awaitPos=Mt,this.parseParenArrowList(b,x,B,f);(!B.length||Ee)&&this.unexpected(this.lastTokStart),Lt&&this.unexpected(Lt),this.checkExpressionErrors(xe,!0),this.yieldPos=Nt||this.yieldPos,this.awaitPos=Mt||this.awaitPos,B.length>1?(A=this.startNodeAt(G,V),A.expressions=B,this.finishNodeAt(A,"SequenceExpression",cr,nt)):A=B[0]}else A=this.parseParenExpression();if(this.options.preserveParens){let D=this.startNodeAt(b,x);return D.expression=A,this.finishNode(D,"ParenthesizedExpression")}else return A}parseTaggedTemplateExpression(c,f,b,x){let A=this.startNodeAt(f,b);return A.tag=c,A.quasi=this.parseTemplate({isTagged:!0}),x&&this.raise(f,"Tagged Template Literals are not allowed in optionalChain."),this.finishNode(A,"TaggedTemplateExpression")}shouldParseAsyncArrow(){if(this.match(n.colon)){let c=this.tryParse(f=>{let b=this.tsParseTypeOrTypePredicateAnnotation(n.colon);return(this.canInsertSemicolon()||!this.match(n.arrow))&&f(),b});if(c.aborted)return this.shouldParseAsyncArrowReturnType=void 0,!1;if(!c.thrown)return this.shouldParseAsyncArrowReturnType=c.node,!this.canInsertSemicolon()&&this.eat(n.arrow)}else return!this.canInsertSemicolon()&&this.eat(n.arrow)}parseSubscriptAsyncArrow(c,f,b,x){let A=this.startNodeAt(c,f);return A.returnType=this.shouldParseAsyncArrowReturnType,this.shouldParseAsyncArrowReturnType=void 0,this.parseArrowExpression(A,b,!0,x)}parseExprList(c,f,b,x){let A=[],I=!0;for(;!this.eat(c);){if(I)I=!1;else if(this.expect(n.comma),f&&this.afterTrailingComma(c))break;let D;b&&this.type===n.comma?D=null:this.type===n.ellipsis?(D=this.parseSpread(x),this.maybeInArrowParameters&&this.match(n.colon)&&(D.typeAnnotation=this.tsParseTypeAnnotation()),x&&this.type===n.comma&&x.trailingComma<0&&(x.trailingComma=this.start)):D=this.parseMaybeAssign(!1,x,this.parseParenItem),A.push(D)}return A}parseMaybeDecoratorArguments(c){let f=this.tsMatchLeftRelational()||this.match(n.bitShift)?this.tsParseTypeArgumentsInExpression():void 0;if(this.eat(n.parenL)){let b=this.startNodeAtNode(c);return b.callee=c,b.arguments=this.parseExprList(n.parenR,!1),f&&(b.typeArguments=f),this.finishNode(b,"CallExpression")}if(f){let b=this.startNodeAtNode(c);return b.expression=c,b.typeArguments=f,this.finishNode(b,"TSInstantiationExpression")}return c}parseSubscript(c,f,b,x,A,I,D){let G=I;if(!this.hasPrecedingLineBreak()&&this.value==="!"&&this.match(n.prefix)){this.exprAllowed=!1,this.next();let xe=this.startNodeAt(f,b);return xe.expression=c,c=this.finishNode(xe,"TSNonNullExpression"),c}let V=!1;if(this.match(n.questionDot)&&this.lookaheadCharCode()===60){if(x)return c;c.optional=!0,G=V=!0,this.next()}if(this.tsMatchLeftRelational()||this.match(n.bitShift)){let xe,Nt=this.tsTryParseAndCatch(()=>{if(!x&&this.atPossibleAsyncArrow(c)){let nt=this.tsTryParseGenericAsyncArrowFunction(f,b,D);if(nt)return c=nt,c}let Mt=this.tsParseTypeArgumentsInExpression();if(!Mt)return c;if(V&&!this.match(n.parenL))return xe=this.curPosition(),c;if(g(this.type)||this.type===n.backQuote){let nt=this.parseTaggedTemplateExpression(c,f,b,G);return nt.typeArguments=Mt,nt}if(!x&&this.eat(n.parenL)){let nt=new es,gt=this.startNodeAt(f,b);return gt.callee=c,gt.arguments=this.parseExprList(n.parenR,this.ecmaVersion>=8,!1,nt),this.tsCheckForInvalidTypeCasts(gt.arguments),gt.typeArguments=Mt,G&&(gt.optional=V),this.checkExpressionErrors(nt,!0),c=this.finishNode(gt,"CallExpression"),c}let Lt=this.type;if(this.tsMatchRightRelational()||Lt===n.bitShift||Lt!==n.parenL&&dE(Lt)&&!this.hasPrecedingLineBreak())return;let cr=this.startNodeAt(f,b);return cr.expression=c,cr.typeArguments=Mt,this.finishNode(cr,"TSInstantiationExpression")});if(xe&&this.unexpected(xe),Nt)return Nt.type==="TSInstantiationExpression"&&(this.match(n.dot)||this.match(n.questionDot)&&this.lookaheadCharCode()!==40)&&this.raise(this.start,Q.InvalidPropertyAccessAfterInstantiationExpression),c=Nt,c}let B=this.ecmaVersion>=11,pe=B&&this.eat(n.questionDot);x&&pe&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");let Ee=this.eat(n.bracketL);if(Ee||pe&&this.type!==n.parenL&&this.type!==n.backQuote||this.eat(n.dot)){let xe=this.startNodeAt(f,b);xe.object=c,Ee?(xe.property=this.parseExpression(),this.expect(n.bracketR)):this.type===n.privateId&&c.type!=="Super"?xe.property=this.parsePrivateIdent():xe.property=this.parseIdent(this.options.allowReserved!=="never"),xe.computed=!!Ee,B&&(xe.optional=pe),c=this.finishNode(xe,"MemberExpression")}else if(!x&&this.eat(n.parenL)){let xe=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;let Nt=new es,Mt=this.yieldPos,Lt=this.awaitPos,cr=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;let nt=this.parseExprList(n.parenR,this.ecmaVersion>=8,!1,Nt);if(A&&!pe&&this.shouldParseAsyncArrow())this.checkPatternErrors(Nt,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=Mt,this.awaitPos=Lt,this.awaitIdentPos=cr,c=this.parseSubscriptAsyncArrow(f,b,nt,D);else{this.checkExpressionErrors(Nt,!0),this.yieldPos=Mt||this.yieldPos,this.awaitPos=Lt||this.awaitPos,this.awaitIdentPos=cr||this.awaitIdentPos;let gt=this.startNodeAt(f,b);gt.callee=c,gt.arguments=nt,B&&(gt.optional=pe),c=this.finishNode(gt,"CallExpression")}this.maybeInArrowParameters=xe}else if(this.type===n.backQuote){(pe||G)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");let xe=this.startNodeAt(f,b);xe.tag=c,xe.quasi=this.parseTemplate({isTagged:!0}),c=this.finishNode(xe,"TaggedTemplateExpression")}return c}parseGetterSetter(c){c.kind=c.key.name,this.parsePropertyName(c);let f=this.tsTryParseTypeParameters(this.tsParseConstModifier);c.value=this.parseMethod(!1),f&&(c.value.typeParameters=f);let b=c.kind==="get"?0:1,x=c.value.params[0];if(b=x&&this.isThisParam(x)?b+1:b,c.value.params.length!==b){let I=c.value.start;c.kind==="get"?this.raiseRecoverable(I,"getter should have no params"):this.raiseRecoverable(I,"setter should have exactly one param")}else c.kind==="set"&&c.value.params[0].type==="RestElement"&&this.raiseRecoverable(c.value.params[0].start,"Setter cannot use rest params")}parsePropertyValue(c,f,b,x,A,I,D,G){if(this.tsMatchLeftRelational()){f&&this.unexpected(),c.kind="init",c.method=!0;let V=this.tsTryParseTypeParameters(this.tsParseConstModifier);c.value=this.parseMethod(b,x),V&&(c.value.typeParameters=V);return}return super.parsePropertyValue(c,f,b,x,A,I,D,G)}parseProperty(c,f){if(!c){let b=[];if(this.match(v.at))for(;this.match(v.at);)b.push(this.parseDecorator());let x=super.parseProperty(c,f);return x.type==="SpreadElement"&&b.length&&this.raise(x.start,Ws.SpreadElementDecorator),b.length&&(x.decorators=b,b=[]),x}return super.parseProperty(c,f)}parseCatchClauseParam(){let c=this.parseBindingAtom(),f=c.type==="Identifier";this.enterScope(f?be.SCOPE_SIMPLE_CATCH:0),this.checkLValPattern(c,f?be.BIND_SIMPLE_CATCH:be.BIND_LEXICAL);let b=this.tsTryParseTypeAnnotation();return b&&(c.typeAnnotation=b,this.resetEndLocation(c)),this.expect(n.parenR),c}parseClass(c,f){let b=this.inAbstractClass;this.inAbstractClass=!!c.abstract;try{this.next(),this.takeDecorators(c);let x=this.strict;this.strict=!0,this.parseClassId(c,f),this.parseClassSuper(c);let A=this.enterClassBody(),I=this.startNode(),D=!1;I.body=[];let G=[];for(this.expect(n.braceL);this.type!==n.braceR;){if(this.match(v.at)){G.push(this.parseDecorator());continue}let V=this.parseClassElement(c.superClass!==null);if(G.length&&(V.decorators=G,this.resetStartLocationFromNode(V,G[0]),G=[]),V){if(I.body.push(V),V.type==="MethodDefinition"&&V.kind==="constructor"&&V.value.type==="FunctionExpression")D&&this.raiseRecoverable(V.start,"Duplicate constructor in the same class"),D=!0,V.decorators&&V.decorators.length>0&&this.raise(V.start,Ws.DecoratorConstructor);else if(V.key&&V.key.type==="PrivateIdentifier"&&V.value?.type!=="TSDeclareMethod"){let B=V.key.name;this.parseEffects.modify(A,B,Ee=>Xk(Ee,V))&&this.raiseRecoverable(V.key.start,`Identifier '#${B}' has already been declared`)}}}return this.strict=x,this.next(),G.length&&this.raise(this.start,Ws.TrailingDecorator),c.body=this.finishNode(I,"ClassBody"),this.exitClassBody(),this.finishNode(c,f?"ClassDeclaration":"ClassExpression")}finally{this.inAbstractClass=b}}parseClassFunctionParams(){let c=this.tsTryParseTypeParameters(),f=this.parseBindingList(n.parenR,!1,this.ecmaVersion>=8,!0);return c&&(f.typeParameters=c),f}parseMethod(c,f,b,x,A){let I=this.startNode(),D=this.yieldPos,G=this.awaitPos,V=this.awaitIdentPos;if(this.initFunction(I),this.ecmaVersion>=6&&(I.generator=c),this.ecmaVersion>=8&&(I.async=!!f),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Fc(f,I.generator)|be.SCOPE_SUPER|(b?be.SCOPE_DIRECT_SUPER:0)),this.expect(n.parenL),I.params=this.parseClassFunctionParams(),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(I,!1,!0,!1,{isClassMethod:x}),this.yieldPos=D,this.awaitPos=G,this.awaitIdentPos=V,A&&A.abstract&&!!I.body){let{key:pe}=A;this.raise(A.start,Q.AbstractMethodHasImplementation({methodName:pe.type==="Identifier"&&!A.computed?pe.name:`[${this.input.slice(pe.start,pe.end)}]`}))}return this.finishNode(I,"FunctionExpression")}static parse(c,f){if(f.locations===!1)throw new Error("You have to enable options.locations while using acorn-typescript");f.locations=!0;let b=new this(f,c);return t&&(b.isAmbientContext=!0),b.parse()}static parseExpressionAt(c,f,b){if(b.locations===!1)throw new Error("You have to enable options.locations while using acorn-typescript");b.locations=!0;let x=new this(b,c,f);return t&&(x.isAmbientContext=!0),x.nextToken(),x.parseExpression()}parseImportSpecifier(){if(this.ts_isContextual(v.type)){let f=this.startNode();return f.imported=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(f,!0,this.importOrExportOuterKind==="type"),this.finishNode(f,"ImportSpecifier")}else{let f=super.parseImportSpecifier();return f.importKind="value",f}}parseExportSpecifier(c){let f=this.ts_isContextual(v.type);if(!this.match(n.string)&&f){let x=this.startNode();return x.local=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(x,!1,this.importOrExportOuterKind==="type"),this.finishNode(x,"ExportSpecifier"),this.checkExport(c,x.exported,x.exported.start),x}else{let x=super.parseExportSpecifier(c);return x.exportKind="value",x}}parseTypeOnlyImportExportSpecifier(c,f,b){let x=f?"imported":"local",A=f?"local":"exported",I=c[x],D,G=!1,V=!0,B=I.start;if(this.isContextual("as")){let Ee=this.parseIdent();if(this.isContextual("as")){let xe=this.parseIdent();C(this.type)?(G=!0,I=Ee,D=f?this.parseIdent():this.parseModuleExportName(),V=!1):(D=xe,V=!1)}else C(this.type)?(V=!1,D=f?this.parseIdent():this.parseModuleExportName()):(G=!0,I=Ee)}else C(this.type)&&(G=!0,f?(I=super.parseIdent(!0),this.isContextual("as")||this.checkUnreserved(I)):I=this.parseModuleExportName());G&&b&&this.raise(B,f?Q.TypeModifierIsUsedInTypeImports:Q.TypeModifierIsUsedInTypeExports),c[x]=I,c[A]=D;let pe=f?"importKind":"exportKind";c[pe]=G?"type":"value",V&&this.eatContextual("as")&&(c[A]=f?this.parseIdent():this.parseModuleExportName()),c[A]||(c[A]=this.copyNode(c[x])),f&&this.checkLValSimple(c[A],be.BIND_LEXICAL)}raiseCommonCheck(c,f,b){switch(f){case"Comma is not permitted after the rest element":if(this.isAmbientContext&&this.match(n.comma)&&this.lookaheadCharCode()===41){this.next();return}else return super.raise(c,f)}return b?super.raiseRecoverable(c,f):super.raise(c,f)}raiseRecoverable(c,f){return this.raiseCommonCheck(c,f,!0)}raise(c,f){return this.raiseCommonCheck(c,f,!0)}updateContext(c){let{type:f}=this;if(f==n.braceL){var b=this.curContext();b==E.tc_oTag?this.parseEffects.append(this.context,h.b_expr):b==E.tc_expr?this.parseEffects.append(this.context,h.b_tmpl):super.updateContext(c),this.exprAllowed=!0}else if(f===n.slash&&c===v.jsxTagStart)this.parseEffects.truncate(this.context,this.context.length-2),this.parseEffects.append(this.context,E.tc_cTag),this.exprAllowed=!1;else return super.updateContext(c)}jsx_parseOpeningElementAt(c,f){let b=this.startNodeAt(c,f),x=this.jsx_parseElementName();if(x&&(b.name=x),this.match(n.relational)||this.match(n.bitShift)){let A=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());A&&(b.typeArguments=A)}for(b.attributes=[];this.type!==n.slash&&this.type!==v.jsxTagEnd;)b.attributes.push(this.jsx_parseAttribute());return b.selfClosing=this.eat(n.slash),this.expect(v.jsxTagEnd),this.finishNode(b,x?"JSXOpeningElement":"JSXOpeningFragment")}enterScope(c){let f=c===Qi;f&&this.parseEffects.append(this.importsStack,[]);let b=f?c|be.SCOPE_CLASS_STATIC_BLOCK:c;super.enterScope(b);let x=super.currentScope();x.types=[],x.enums=[],x.constEnums=[],x.classes=[],x.exportOnlyBindings=[]}exitScope(){super.currentScope().flags&Qi&&this.parseEffects.pop(this.importsStack),super.exitScope()}hasImport(c,f){let b=this.importsStack.length;if(this.importsStack[b-1].indexOf(c)>-1)return!0;if(!f&&b>1){for(let x=0;x<b-1;x++)if(this.importsStack[x].indexOf(c)>-1)return!0}return!1}maybeExportDefined(c,f){this.inModule&&c.flags&be.SCOPE_TOP&&this.parseEffects.remove(this.undefinedExports,f)}declareName(c,f,b){if(f&be.BIND_FLAGS_TS_IMPORT){this.hasImport(c,!0)&&this.raise(b,`Identifier '${c}' has already been declared.`),this.parseEffects.append(this.importsStack[this.importsStack.length-1],c);return}let x=this.currentScope();if(f&be.BIND_FLAGS_TS_EXPORT_ONLY){this.maybeExportDefined(x,c),this.parseEffects.append(x.exportOnlyBindings,c);return}if(f===be.BIND_TS_TYPE||f===be.BIND_TS_INTERFACE)f===be.BIND_TS_TYPE&&x.types.includes(c)&&this.raise(b,`type '${c}' has already been declared.`),this.parseEffects.append(x.types,c);else if(f&be.BIND_FLAGS_TS_ENUM){if(x.enums.includes(c))return;super.declareName(c,be.BIND_LEXICAL,b)}else super.declareName(c,f,b);f&be.BIND_FLAGS_TS_ENUM&&this.parseEffects.append(x.enums,c),f&be.BIND_FLAGS_TS_CONST_ENUM&&this.parseEffects.append(x.constEnums,c),f&be.BIND_FLAGS_CLASS&&this.parseEffects.append(x.classes,c)}checkLocalExport(c){let{name:f}=c;if(this.hasImport(f))return;let b=this.scopeStack.length;for(let x=b-1;x>=0;x--){let A=this.scopeStack[x];if(A.types.indexOf(f)>-1||A.exportOnlyBindings.indexOf(f)>-1)return}super.checkLocalExport(c)}}return H}}var Hc=class extends Error{message="";#e;constructor(t,r,i){super(r),this.stack="",this.#e=new _i(t,r,i),Object.assign(this,this.#e),this.name="CompileError"}toString(){return this.#e.toString()}toJSON(){return this.#e.toJSON()}};function q(e,t,r){let i=typeof e=="number"?e:e?.start,s=typeof e=="number"?e:e?.end;throw new Hc(t,r,i!==void 0?[i,s??i]:void 0)}function Em(e,t){q(e,"options_invalid_value",`Invalid compiler option: ${t}
|
|
77
77
|
https://svelte.dev/e/options_invalid_value`)}function Sm(e,t){q(e,"options_removed",`Invalid compiler option: ${t}
|
|
78
78
|
https://svelte.dev/e/options_removed`)}function Cm(e,t){q(e,"options_unrecognised",`Unrecognised compiler option ${t}
|
|
79
79
|
https://svelte.dev/e/options_unrecognised`)}function Tm(e){q(e,"bindable_invalid_location","`$bindable()` can only be used inside a `$props()` declaration\nhttps://svelte.dev/e/bindable_invalid_location")}function Vc(e,t){q(e,"constant_assignment",`Cannot assign to ${t}
|
|
@@ -188,30 +188,30 @@ https://svelte.dev/e/transition_duplicate`)}function Je(e){q(e,"unexpected_eof",
|
|
|
188
188
|
https://svelte.dev/e/unexpected_eof`)}function G_(e,t){q(e,"unexpected_reserved_word",`'${t}' is a reserved word in JavaScript and cannot be used here
|
|
189
189
|
https://svelte.dev/e/unexpected_reserved_word`)}function K_(e){q(e,"unterminated_string_constant",`Unterminated string constant
|
|
190
190
|
https://svelte.dev/e/unterminated_string_constant`)}function X_(e){q(e,"void_element_invalid_content",`Void elements cannot have children or closing tags
|
|
191
|
-
https://svelte.dev/e/void_element_invalid_content`)}var la=fd,pp=la.extend(km());function up(e,t,r,i){let s=r?pp:la,{onComment:a,add_comments:n}=mp(e,t),p=s.prototype.parseStatement;i&&(s.prototype.parseStatement=function(...u){let d=p.call(this,...u);return this.undefinedExports={},d});try{let u=s.parse(e,{onComment:a,sourceType:"module",ecmaVersion:16,locations:!0});return n(u),u}catch(u){return fp(u)}finally{i&&(s.prototype.parseStatement=p)}}function _r(e,t,r){let i=e.ts?pp:la,{onComment:s,add_comments:a}=mp(t,e.root.comments,r);try{let n=i.parseExpressionAt(t,r,{onComment:s,sourceType:"module",ecmaVersion:16,locations:!0,preserveParens:!0,startLocation:Z_(e,r)});return a(n),n}catch(n){fp(n)}}function Y_(e,t,r){let i=e.ts?pp:la,{onComment:s,add_comments:a}=mp(t,e.root.comments,r);try{let n=new i({onComment:s,sourceType:"module",ecmaVersion:16,locations:!0,startLocation:Z_(e,r)},t,r);n.nextToken();let p=n.parseStatement(null,!0,Object.create(null));return a(p),p}catch(n){n.pos===t.length&&Je(t.length),fp(n)}}var
|
|
192
|
-
`;)d-=1;let m=d;for(;/[ \t]/.test(e[m]);)m+=1;let h=e.slice(d,m);s=s.replace(new RegExp(`^${h}`,"gm"),"")}t.push({type:i?"Block":"Line",value:s,start:a,end:n,loc:{start:p,end:u}})},add_comments(i){t.length!==0&&(t=t.filter(s=>s.start>=r).map(({type:s,value:a,start:n,end:p})=>({type:s,value:a,start:n,end:p})),re(i,null,{_(s,{next:a,path:n}){let p;for(;t[0]&&t[0].start<s.start;)p=t.shift(),(s.leadingComments||=[]).push(p);if(a(),t[0]){let u=n.at(-1);if(u===void 0||s.end!==u.end){let d=e.slice(s.end,t[0].start);if((u?.type==="BlockStatement"||u?.type==="Program")&&u.body.indexOf(s)===u.body.length-1||u?.type==="ArrayExpression"&&u.elements.indexOf(s)===u.elements.length-1||u?.type==="ObjectExpression"&&u.properties.indexOf(s)===u.properties.length-1){let h=s.end;for(;t.length;){let _=t[0];if(u&&_.start>=u.end)break;(s.trailingComments||=[]).push(_),t.shift(),h=_.end}}else s.end<=t[0].start&&/^[,) \t]*$/.test(d)&&(s.trailingComments=[t.shift()])}}}}),t.length>0&&(t[0].start>=i.end||i.type==="Program")&&(i.trailingComments||=[]).push(...t.splice(0)))}}}function hp(e){return e<0?1/0:e}function
|
|
193
|
-
`,t))),_p(i,t,r)}function
|
|
194
|
-
`);return r<i?r:1/0}function _p(e,t,r){let i=t;for(;;){let s=e.indexOf(r,i);if(s===-1)return 1/0;if(
|
|
195
|
-
`,a+1))+1;continue}if(p==="*"){a=hp(e.indexOf("*/",a+1))+2;continue}let u=yE(e,a+1)+1;u===1/0?a++:a=u;continue}default:{let p=e[a];if(p===r?s++:p===i&&s--,s===0)return a;a++}}}}var ca={"{":"}","(":")","[":"]"},vE=new Set(Object.values(ca));function os(e,t,r=ca){let i=r===ca?vE:new Set(Object.values(r)),s=[],a=t;for(;a<e.template.length;){let n=e.template[a++];if(n==="'"||n==='"'||n==="`"){a=wE(e,a,n);continue}if(n in r)s.push(n);else if(i.has(n)){let p=s.pop(),u=r[p];if(n!==u&&dt(a-1,u),s.length===0)return a}}Je(e.template.length)}function wE(e,t,r){let i=!1,s=t;for(;s<e.template.length;){let a=e.template[s++];if(i){i=!1;continue}if(a===r)return s;a==="\\"&&(i=!0),r==="`"&&a==="$"&&e.template[s]==="{"&&(s=os(e,s))}K_(t)}function bp(e,t){let r=pa(e.template,e.index,t??"{");if(r){let i=e.index;return e.index=r,{type:"Identifier",start:i,end:r,name:""}}}function Ke(e,t,r){let i=xE(e);if(i)return i;try{let s=_r(e,e.template,e.index),a=s.end,n=e.root.comments.at(-1);return n&&n.end>a&&(a=n.end),e.index=a,wi(s)}catch(s){if(e.loose&&!r){let a=bp(e,t);if(a)return a}throw s}}function xE(e){if(!dp(e))return null;let t=e.template,r=e.index;e.allow_whitespace();let i=e.index,s=Q_(t,i);if(s===-1||Br(t.slice(i,s)))return e.index=r,null;let a=eb(t,i,s);for(;t[s]===".";){let n=Q_(t,s+1);if(n===-1)return e.index=r,null;a={type:"MemberExpression",start:i,end:n,loc:{start:ua(i),end:ua(n)},object:a,property:eb(t,s+1,n),computed:!1,optional:!1},s=n}return e.index=s,e.allow_whitespace(),e.match("}")?(e.index=s,a):(e.index=r,null)}function Q_(e,t){if(t>=e.length)return-1;let r=e.codePointAt(t);if(!Os(r,!0))return-1;let i=t+(r<=65535?1:2);for(;i<e.length;){let s=e.codePointAt(i);if(!Ds(s,!0))break;i+=s<=65535?1:2}return i}function eb(e,t,r){return{type:"Identifier",start:t,end:r,loc:{start:ua(t),end:ua(r)},name:e.slice(t,r)}}function ua(e){let{line:t,column:r}=_e(e);return{line:t,column:r}}function Vr(e){return e.replace(/(`|\${|\\)/g,"\\$1")}function z(e=[]){return{type:"ArrayExpression",elements:e}}function br(e){return{type:"ArrayPattern",elements:e}}function da(e,t){return{type:"AssignmentPattern",left:e,right:t}}function j(e,t,r=!1){return r&&t.type==="AwaitExpression"&&!Ft(t.argument)?j(e,t.argument):{type:"ArrowFunctionExpression",params:e,body:t,expression:t.type!=="BlockStatement",generator:!1,async:r}}function ee(e,t,r){return{type:"AssignmentExpression",operator:e,left:t,right:r}}function et(e){return{type:"AwaitExpression",argument:e}}function kt(e,t,r){return{type:"BinaryExpression",operator:e,left:t,right:r}}function M(e){return{type:"BlockStatement",body:e}}function tb(e,t){return{type:"LabeledStatement",label:w(e),body:t}}function y(e,...t){typeof e=="string"&&(e=w(e)),t=t.slice();let r=t.length,i=!0;for(;r--;)t[r]?i=!1:i?t.pop():t[r]=Te;return{type:"CallExpression",callee:e,arguments:t,optional:!1}}function Bt(e,...t){let r=y(e,...t);return r.optional=!0,{type:"ChainExpression",expression:r}}function ls(e,t){return{type:"UnaryExpression",argument:t,operator:e,prefix:!0}}var Te=ls("void",T(0));function it(e,t,r){return{type:"LogicalExpression",operator:e,left:t,right:r}}function lt(e,t){return{type:"VariableDeclaration",kind:e,declarations:t}}function ne(e,t){return typeof e=="string"&&(e=w(e)),{type:"VariableDeclarator",id:e,init:t}}var ce={type:"EmptyStatement"};function zr(e){return{type:"ExportDefaultDeclaration",declaration:e}}function rb(e,t,r,i=!1){return{type:"ForOfStatement",left:e,right:t,body:r,await:i}}function Wr(e,t,r,i=!1){return{type:"FunctionDeclaration",id:e,params:t,body:r,generator:!1,async:i}}function tt(e,t){return ye("get",Be(e),Ue(null,[],M(t)))}function w(e,t){let r={type:"Identifier",name:e};return t&&(r.loc=t),r}function ib(e){return{type:"PrivateIdentifier",name:e}}function kE(e){return{type:"ImportNamespaceSpecifier",local:w(e)}}function Y(e,t){return ye("init",Be(e),t)}function T(e){return{type:"Literal",value:e}}function X(e,t,r=!1,i=!1){return typeof t=="string"&&(t=w(t)),{type:"MemberExpression",object:e,property:t,computed:r,optional:i}}function yr(e){let t=e.split("."),r=w(t[0]);for(let i=1;i<t.length;i+=1)r=X(r,w(t[i]));return r}function J(e){return{type:"ObjectExpression",properties:e}}function Gr(e){return{type:"ObjectPattern",properties:e}}function ye(e,t,r,i=!1){return{type:"Property",kind:e,key:t,value:r,method:!1,shorthand:!1,computed:i}}function Kr(e,t,r=!1,i=!1){return{type:"PropertyDefinition",decorators:[],key:e,value:t,computed:r,static:i}}function Et(e,t=!1){return{type:"TemplateElement",value:{raw:Vr(e),cooked:e},tail:t}}function xi(e){return{type:"RestElement",argument:e}}function Oe(e){return{type:"SequenceExpression",expressions:e}}function St(e,t){return ye("set",Be(e),Ue(null,[w("$$value")],M(t)))}function ft(e){return{type:"SpreadElement",argument:e}}function $(e){return{type:"ExpressionStatement",expression:e}}function gr(e,t){return{type:"TemplateLiteral",quasis:e,expressions:t}}function O(e,t=!1){return yp(j([],e,t))}function yp(e){return e.async===!1&&e.body.type==="CallExpression"&&e.body.callee.type==="Identifier"&&e.params.length===e.body.arguments.length&&e.params.every((t,r)=>{let i=e.body.arguments[r];return t.type==="Identifier"&&i.type==="Identifier"&&t.name===i.name})?e.body.callee:e}function fa(e,...t){return typeof e=="string"&&(e=w(e)),{callee:e,arguments:t,type:"NewExpression"}}function ma(e,t,r=!1){return{type:"UpdateExpression",operator:e,argument:t,prefix:r}}function sb(e,t){return{type:"DoWhileStatement",test:e,body:t}}var Z=T(!0),Jt=T(!1),st=T(null),ha={type:"DebuggerStatement"},rt={type:"ThisExpression"};function De(e,t){return lt("let",[ne(e,t)])}function ge(e,t){return lt("const",[ne(e,t)])}function te(e,t){return lt("var",[ne(e,t)])}function ab(e,t,r,i){return{type:"ForStatement",init:e,test:t,update:r,body:i}}function jt(e,t,r,i,s=!1,a=!1){return{type:"MethodDefinition",decorators:[],key:t,kind:e,value:Ue(null,r,M(i)),computed:s,static:a}}function Ue(e,t,r,i=!1){return{type:"FunctionExpression",id:e,params:t,body:r,generator:!1,async:i}}function qe(e,t,r){return{type:"IfStatement",test:e,consequent:t,alternate:r}}function _a(e,t){return{type:"ImportDeclaration",attributes:[],source:T(t),specifiers:[kE(e)]}}function Yt(e,t){return{type:"ImportDeclaration",attributes:[],source:T(t),specifiers:e.map(r=>({type:"ImportSpecifier",imported:w(r[0]),local:w(r[1])}))}}function le(e=null){return{type:"ReturnStatement",argument:e}}function nb(e){return{type:"ThrowStatement",argument:fa("Error",T(e))}}function Be(e){return Ji.test(e)?w(e):T(e)}function Ie(e){for(;e.type==="MemberExpression";)e=e.object;return e.type!=="Identifier"?null:e}function me(e){return Array.isArray(e.value)&&e.value.length===1&&e.value[0].type==="Text"}function Qt(e){return e.value!==!0&&!Array.isArray(e.value)||Array.isArray(e.value)&&e.value.length===1&&e.value[0].type==="ExpressionTag"}function mt(e){return Array.isArray(e.value)?e.value[0].expression:e.value.expression}function vr(e){return Array.isArray(e)?e:typeof e=="boolean"?[]:[e]}function Pe(e){return Qt(e)&&e.name.startsWith("on")}function Ut(e,t=[]){switch(e.type){case"Identifier":t.push(e);break;case"MemberExpression":t.push(e);break;case"ObjectPattern":for(let r of e.properties)r.type==="RestElement"?Ut(r.argument,t):Ut(r.value,t);break;case"ArrayPattern":for(let r of e.elements)r&&Ut(r,t);break;case"RestElement":Ut(e.argument,t);break;case"AssignmentPattern":Ut(e.left,t);break}return t}function ue(e){return Ut(e,[]).filter(t=>t.type==="Identifier")}function ba(e){let t=[],r=[];return re(e,{},{Identifier(i,{path:s}){let a=s.at(-1);(a?.type!=="MemberExpression"||a.property!==i||a.computed)&&t.push(i),a?.type==="MemberExpression"&&a.computed&&a.property===i?r.push(`[${i.name}]`):r.push(i.name)},Literal(i,{path:s}){let a=typeof i.value=="string"?`"${i.value}"`:String(i.value),n=s.at(-1);n?.type==="MemberExpression"&&n.computed&&n.property===i?r.push(`[${a}]`):r.push(a)},ThisExpression(i,{next:s}){r.push("this"),s()}}),[r.join("."),t]}function cs(e,t=[]){switch(e.type){case"Identifier":t.push(e);break;case"ObjectExpression":for(let r of e.properties)r.type==="Property"?cs(r.value,t):cs(r.argument,t);break;case"ArrayExpression":for(let r of e.elements)r&&cs(r,t);break}return t}function Xe(e,t){let r=[],i=[];return ki(i,r,e,t,t,!1),{inserts:r,paths:i}}function ki(e,t,r,i,s,a){switch(r.type){case"Identifier":case"MemberExpression":e.push({node:r,is_rest:!1,has_default_value:a,expression:i,update_expression:s});break;case"ObjectPattern":for(let n of r.properties)if(n.type==="RestElement"){let p=[];for(let d of r.properties)d.type==="Property"&&(d.key.type==="Identifier"&&!d.computed?p.push(T(d.key.name)):d.key.type==="Literal"?p.push(T(String(d.key.value))):p.push(y("String",d.key)));let u=y("$.exclude_from_object",i,z(p));n.argument.type==="Identifier"?e.push({node:n.argument,is_rest:!0,has_default_value:a,expression:u,update_expression:u}):ki(e,t,n.argument,u,u,a)}else{let p=X(i,n.key,n.computed||n.key.type!=="Identifier");ki(e,t,n.value,p,p,a)}break;case"ArrayPattern":{let n=w("#"),p=y("$.to_array",i,r.elements.at(-1)?.type==="RestElement"?void 0:T(r.elements.length));t.push({id:n,value:p});for(let u=0;u<r.elements.length;u+=1){let d=r.elements[u];if(d)if(d.type==="RestElement"){let m=y(X(n,"slice"),T(u));d.argument.type==="Identifier"?e.push({node:d.argument,is_rest:!0,has_default_value:a,expression:m,update_expression:m}):ki(e,t,d.argument,m,m,a)}else{let m=X(n,T(u),!0);ki(e,t,d,m,m,a)}}break}case"AssignmentPattern":{let n=ya(i,r.right);r.left.type==="Identifier"?e.push({node:r.left,is_rest:!1,has_default_value:!0,expression:n,update_expression:s}):ki(e,t,r.left,n,s,!0);break}}return e}function er(e,t){let r=e.at(t);return r.type==="TSNonNullExpression"||r.type==="TSAsExpression"?e.at(t<0?t-1:t+1):r}function Zt(e){return e.type==="Literal"||e.type==="Identifier"||e.type==="ArrowFunctionExpression"||e.type==="FunctionExpression"?!0:e.type==="ConditionalExpression"?Zt(e.test)&&Zt(e.consequent)&&Zt(e.alternate):e.type==="BinaryExpression"||e.type==="LogicalExpression"?e.left.type!=="PrivateIdentifier"&&Zt(e.left)&&Zt(e.right):!1}function wr(e){return e.type==="ChainExpression"?e.expression:e}function we(e){switch(e.type){case"AwaitExpression":return!0;case"ArrayPattern":return e.elements.some(t=>t&&we(t));case"ArrayExpression":return e.elements.some(t=>t?t.type==="SpreadElement"?we(t.argument):we(t):!1);case"AssignmentPattern":case"AssignmentExpression":case"BinaryExpression":case"LogicalExpression":return e.left.type!=="PrivateIdentifier"&&we(e.left)||we(e.right);case"CallExpression":case"NewExpression":return e.callee.type!=="Super"&&we(e.callee)||e.arguments.some(t=>t.type==="SpreadElement"?we(t.argument):we(t));case"ChainExpression":return we(e.expression);case"ConditionalExpression":return we(e.test)||we(e.alternate)||we(e.consequent);case"ImportExpression":return we(e.source);case"MemberExpression":return e.object.type!=="Super"&&we(e.object)||e.property.type!=="PrivateIdentifier"&&we(e.property);case"ObjectPattern":case"ObjectExpression":return e.properties.some(t=>{if(t.type==="SpreadElement")return we(t.argument);if(t.type==="Property")return we(t.key)||we(t.value)});case"RestElement":return we(e.argument);case"SequenceExpression":case"TemplateLiteral":return e.expressions.some(t=>we(t));case"TaggedTemplateExpression":return we(e.tag)||we(e.quasi);case"UnaryExpression":case"UpdateExpression":return we(e.argument);case"YieldExpression":return e.argument?we(e.argument):!1;default:return!1}}function ya(e,t){return Zt(t)?y("$.fallback",e,t):t.type==="AwaitExpression"&&Zt(t.argument)?et(y("$.fallback",e,t.argument)):we(t)?et(y("$.fallback",e,O(t,!0),Z)):y("$.fallback",e,O(t),Z)}function Xr(e,t,r){return e==="="?r:["||=","&&=","??="].includes(e)?it(e.slice(0,-1),t,r):kt(e.slice(0,-1),t,r)}function Ft(e){let t=!1;return re(e,null,{AwaitExpression(r,i){t=!0,i.stop()},FunctionDeclaration(){},FunctionExpression(){},ArrowFunctionExpression(){}}),t}function tr(e){return y(et(y("$.save",e)))}var EE=/<\/script\s*>/,SE=/<\/script\s*>/y,CE=["server","client","worker","test","default"],TE=["context","generics","lang","module"];function ob(e,t,r){let i=e.index,s=e.read_until_regex(EE);e.index>=e.template.length&&sa(e.template.length,"script");let a=e.template.slice(0,i).replace(bd," ")+s;e.read(SE);let n=up(a,e.root.comments,e.ts,!0);n.start=i,n.loc&&({line:n.loc.start.line,column:n.loc.start.column}=_e(t),{line:n.loc.end.line,column:n.loc.end.column}=_e(e.index));let p="default";for(let u of r)CE.includes(u.name)&&p_(u,u.name),TE.includes(u.name)||tm(u),u.name==="module"&&(u.value!==!0&&c_(u,u.name),p="module"),u.name==="context"&&((u.value===!0||!me(u))&&sp(u),u.value[0].data!=="module"&&sp(u),p="module");return{type:"Script",start:t,end:e.index,context:p,content:n,attributes:r}}var PE=/[~^$*|]?=/y,AE=/[\s\]]/,$E=/[a-zA-Z]+/y,pb=/(\+|~|>|\|\|)/y,lb=/\d+(\.\d+)?%/y,cb=/(even|odd|\+?(\d+|\d*n(\s*[+-]\s*\d+)?)|-\d*n(\s*\+\s*\d+))((?=\s*[,)])|\s+of(\s+|(?=[.#[*:&])))/y,RE=/[\s:]/,qE=/-?\d/y,IE=/[a-zA-Z0-9_-]/,NE=/\\[0-9a-fA-F]{1,6}(\r\n|\s)?/y;function vp(e,t,r){let i=e.index;e.css_comments=[];let s=ME(e,n=>n.match("</style")||n.index>=n.template.length),a=e.index;return e.eat("</style",!0),e.read(/\s*>/y),{type:"StyleSheet",start:t,end:e.index,attributes:r,children:s,comments:e.css_comments,content:{start:i,end:a,styles:e.template.slice(i,a),comment:null}}}function ME(e,t){let r=[];for(;Ei(e),!t(e);)e.match("@")?r.push(ub(e)):r.push(db(e));return r}function ub(e){let t=e.index;e.eat("@",!0);let r=rr(e),i=wp(e),s=null;return e.match("{")?s=fb(e):e.eat(";",!0),{type:"Atrule",start:t,end:e.index,name:r,prelude:i,block:s}}function db(e){let t=e.index;return{type:"Rule",prelude:gp(e),block:fb(e),start:t,end:e.index,metadata:{parent_rule:null,has_local_selectors:!1,has_global_selectors:!1,is_global_block:!1}}}function gp(e,t=!1){let r=[];Ei(e);let i=e.index;for(;e.index<e.template.length;){r.push(LE(e,t));let s=e.index;if(Ei(e),t?e.match(")"):e.match("{"))return{type:"SelectorList",start:i,end:s,children:r};e.eat(",",!0),Ei(e)}Je(e.template.length)}function LE(e,t=!1){let r=e.index,i=[];function s(n,p){return{type:"RelativeSelector",combinator:n,selectors:[],start:p,end:-1,metadata:{is_global:!1,is_global_like:!1,scoped:!1}}}let a=s(null,e.index);for(;e.index<e.template.length;){let n=e.index;if(e.eat("&"))a.selectors.push({type:"NestingSelector",name:"&",start:n,end:e.index});else if(e.eat("*")){let d="*",m;e.eat("|")&&(m=d,d=e.eat("*")?"*":rr(e)),a.selectors.push({type:"TypeSelector",name:d,...m!==void 0&&{namespace:m},start:n,end:e.index})}else if(e.eat("#"))a.selectors.push({type:"IdSelector",name:rr(e),start:n,end:e.index});else if(e.eat("."))a.selectors.push({type:"ClassSelector",name:rr(e),start:n,end:e.index});else if(e.eat("::")){let d=rr(e),m=null;e.eat("(")&&(m=gp(e,!0),e.eat(")",!0)),a.selectors.push({type:"PseudoElementSelector",name:d,start:n,end:e.index,...m&&{args:m}})}else if(e.eat(":")){let d=rr(e),m=null;e.eat("(")&&(m=gp(e,!0),e.eat(")",!0)),a.selectors.push({type:"PseudoClassSelector",name:d,args:m,start:n,end:e.index})}else if(e.eat("[")){e.allow_whitespace();let d=rr(e);e.allow_whitespace();let m=null,h=e.read(PE);h&&(e.allow_whitespace(),m=jE(e)),e.allow_whitespace();let _=e.read($E);e.allow_whitespace(),e.eat("]",!0),a.selectors.push({type:"AttributeSelector",start:n,end:e.index,name:d,matcher:h,value:m,flags:_})}else if(t&&e.match_regex(cb))a.selectors.push({type:"Nth",value:e.read(cb),start:n,end:e.index});else if(e.match_regex(lb))a.selectors.push({type:"Percentage",value:e.read(lb),start:n,end:e.index});else if(!e.match_regex(pb)){let d=rr(e),m;e.eat("|")&&(m=d,d=e.eat("*")?"*":rr(e)),a.selectors.push({type:"TypeSelector",name:d,...m!==void 0&&{namespace:m},start:n,end:e.index})}let p=e.index;if(Ei(e,!1),e.match(",")||(t?e.match(")"):e.match("{")))return e.index=p,a.end=p,i.push(a),{type:"ComplexSelector",start:r,end:p,children:i,metadata:{rule:null,is_global:!1,used:!1}};e.index=p;let u=OE(e);u&&(a.selectors.length>0&&(a.end=p,i.push(a)),a=s(u,u.start),e.allow_whitespace(),(e.match(",")||(t?e.match(")"):e.match("{")))&&ea(e.index))}Je(e.template.length)}function OE(e){let t=e.index;e.allow_whitespace();let r=e.index,i=e.read(pb);if(i){let s=e.index;return e.allow_whitespace(),{type:"Combinator",name:i,start:r,end:s}}return e.index!==t?{type:"Combinator",name:" ",start:t,end:e.index}:null}function fb(e){let t=e.index;e.eat("{",!0);let r=[];for(;e.index<e.template.length&&(Ei(e),!e.match("}"));)r.push(DE(e));return e.eat("}",!0),{type:"Block",start:t,end:e.index,children:r}}function DE(e){if(e.match("@"))return ub(e);let t=e.index;wp(e,!1);let r=e.template[e.index];return e.index=t,r==="{"?db(e):BE(e)}function BE(e){let t=e.index,r=e.read_until_regex(RE);e.allow_whitespace(),e.eat(":");let i=e.index;e.allow_whitespace();let s=wp(e);!s&&!r.startsWith("--")&&lh({start:t,end:i});let a=e.index;return e.match("}")||e.eat(";",!0),{type:"Declaration",start:t,end:a,property:r,value:s}}function wp(e,t=!0){let r="",i=[],s=!1,a=!1,n=null;for(;e.index<e.template.length;){let p=e.template[e.index];if(s){r+="\\"+p,s=!1,e.index++;continue}else if(p==="\\"){s=!0,e.index++;continue}else if(p===n)n=null;else if(p===")")a=!1;else if(n===null&&(p==='"'||p==="'"))n=p;else if(p==="("&&r.slice(-3)==="url")a=!0;else if((p===";"||p==="{"||p==="}")&&!a&&!n){let u=r.length-r.trimStart().length;for(let d of i)d.position=Math.max(0,d.position-u);return r.trim()}else if(p==="/"&&!a&&!n&&e.template[e.index+1]==="*"){let u=mb(e);t&&(u.position=r.length,e.css_comments.push(u),i.push(u));continue}r+=p,e.index++}Je(e.template.length)}function jE(e){let t="",r=!1,i=e.eat('"')?'"':e.eat("'")?"'":null;for(;e.index<e.template.length;){let s=e.template[e.index];if(r)t+="\\"+s,r=!1;else if(s==="\\")r=!0;else{if(i?s===i:AE.test(s))return i&&e.eat(i,!0),t.trim();t+=s}e.index++}Je(e.template.length)}function rr(e){let t=e.index,r="";for(e.match_regex(qE)&&Xc(t);e.index<e.template.length;){let i=e.template[e.index];if(i==="\\"){let s=e.match_regex(NE);if(s){let a=String.fromCodePoint(parseInt(s.slice(1),16));r+=a==="\\"?"\\\\":a,e.index+=s.length}else r+="\\"+e.template[e.index+1],e.index+=2}else if(i.codePointAt(0)>=160||IE.test(i))r+=i,e.index++;else break}return r===""&&Xc(t),r}function Ei(e,t=!0){for(e.allow_whitespace();e.match("/*")||e.match("<!--");){if(e.match("/*")){let r=mb(e);t&&e.css_comments.push(r)}e.eat("<!--")&&(e.read_until("-->"),e.eat("-->",!0)),e.allow_whitespace()}}function mb(e){let t=e.index;e.eat("/*",!0);let r=e.read_until("*/");e.eat("*/",!0);let i=e.index;return{type:"CSSComment",value:r,start:t,end:i}}var xp={"CounterClockwiseContourIntegral;":8755,"ClockwiseContourIntegral;":8754,"DoubleLongLeftRightArrow;":10234,"NotNestedGreaterGreater;":10914,"DiacriticalDoubleAcute;":733,"NotSquareSupersetEqual;":8931,"CloseCurlyDoubleQuote;":8221,"DoubleContourIntegral;":8751,"FilledVerySmallSquare;":9642,"NegativeVeryThinSpace;":8203,"NotPrecedesSlantEqual;":8928,"NotRightTriangleEqual;":8941,"NotSucceedsSlantEqual;":8929,"CapitalDifferentialD;":8517,"DoubleLeftRightArrow;":8660,"DoubleLongRightArrow;":10233,"EmptyVerySmallSquare;":9643,"NestedGreaterGreater;":8811,"NotDoubleVerticalBar;":8742,"NotGreaterSlantEqual;":10878,"NotLeftTriangleEqual;":8940,"NotSquareSubsetEqual;":8930,"OpenCurlyDoubleQuote;":8220,"ReverseUpEquilibrium;":10607,"DoubleLongLeftArrow;":10232,"DownLeftRightVector;":10576,"LeftArrowRightArrow;":8646,"NegativeMediumSpace;":8203,"NotGreaterFullEqual;":8807,"NotRightTriangleBar;":10704,"RightArrowLeftArrow;":8644,"SquareSupersetEqual;":8850,"leftrightsquigarrow;":8621,"DownRightTeeVector;":10591,"DownRightVectorBar;":10583,"LongLeftRightArrow;":10231,"Longleftrightarrow;":10234,"NegativeThickSpace;":8203,"NotLeftTriangleBar;":10703,"PrecedesSlantEqual;":8828,"ReverseEquilibrium;":8651,"RightDoubleBracket;":10215,"RightDownTeeVector;":10589,"RightDownVectorBar;":10581,"RightTriangleEqual;":8885,"SquareIntersection;":8851,"SucceedsSlantEqual;":8829,"blacktriangleright;":9656,"longleftrightarrow;":10231,"DoubleUpDownArrow;":8661,"DoubleVerticalBar;":8741,"DownLeftTeeVector;":10590,"DownLeftVectorBar;":10582,"FilledSmallSquare;":9724,"GreaterSlantEqual;":10878,"LeftDoubleBracket;":10214,"LeftDownTeeVector;":10593,"LeftDownVectorBar;":10585,"LeftTriangleEqual;":8884,"NegativeThinSpace;":8203,"NotGreaterGreater;":8811,"NotLessSlantEqual;":10877,"NotNestedLessLess;":10913,"NotReverseElement;":8716,"NotSquareSuperset;":8848,"NotTildeFullEqual;":8775,"RightAngleBracket;":10217,"RightUpDownVector;":10575,"SquareSubsetEqual;":8849,"VerticalSeparator;":10072,"blacktriangledown;":9662,"blacktriangleleft;":9666,"leftrightharpoons;":8651,"rightleftharpoons;":8652,"twoheadrightarrow;":8608,"DiacriticalAcute;":180,"DiacriticalGrave;":96,"DiacriticalTilde;":732,"DoubleRightArrow;":8658,"DownArrowUpArrow;":8693,"EmptySmallSquare;":9723,"GreaterEqualLess;":8923,"GreaterFullEqual;":8807,"LeftAngleBracket;":10216,"LeftUpDownVector;":10577,"LessEqualGreater;":8922,"NonBreakingSpace;":160,"NotPrecedesEqual;":10927,"NotRightTriangle;":8939,"NotSucceedsEqual;":10928,"NotSucceedsTilde;":8831,"NotSupersetEqual;":8841,"RightTriangleBar;":10704,"RightUpTeeVector;":10588,"RightUpVectorBar;":10580,"UnderParenthesis;":9181,"UpArrowDownArrow;":8645,"circlearrowright;":8635,"downharpoonright;":8642,"ntrianglerighteq;":8941,"rightharpoondown;":8641,"rightrightarrows;":8649,"twoheadleftarrow;":8606,"vartriangleright;":8883,"CloseCurlyQuote;":8217,"ContourIntegral;":8750,"DoubleDownArrow;":8659,"DoubleLeftArrow;":8656,"DownRightVector;":8641,"LeftRightVector;":10574,"LeftTriangleBar;":10703,"LeftUpTeeVector;":10592,"LeftUpVectorBar;":10584,"LowerRightArrow;":8600,"NotGreaterEqual;":8817,"NotGreaterTilde;":8821,"NotHumpDownHump;":8782,"NotLeftTriangle;":8938,"NotSquareSubset;":8847,"OverParenthesis;":9180,"RightDownVector;":8642,"ShortRightArrow;":8594,"UpperRightArrow;":8599,"bigtriangledown;":9661,"circlearrowleft;":8634,"curvearrowright;":8631,"downharpoonleft;":8643,"leftharpoondown;":8637,"leftrightarrows;":8646,"nLeftrightarrow;":8654,"nleftrightarrow;":8622,"ntrianglelefteq;":8940,"rightleftarrows;":8644,"rightsquigarrow;":8605,"rightthreetimes;":8908,"straightepsilon;":1013,"trianglerighteq;":8885,"vartriangleleft;":8882,"DiacriticalDot;":729,"DoubleRightTee;":8872,"DownLeftVector;":8637,"GreaterGreater;":10914,"HorizontalLine;":9472,"InvisibleComma;":8291,"InvisibleTimes;":8290,"LeftDownVector;":8643,"LeftRightArrow;":8596,"Leftrightarrow;":8660,"LessSlantEqual;":10877,"LongRightArrow;":10230,"Longrightarrow;":10233,"LowerLeftArrow;":8601,"NestedLessLess;":8810,"NotGreaterLess;":8825,"NotLessGreater;":8824,"NotSubsetEqual;":8840,"NotVerticalBar;":8740,"OpenCurlyQuote;":8216,"ReverseElement;":8715,"RightTeeVector;":10587,"RightVectorBar;":10579,"ShortDownArrow;":8595,"ShortLeftArrow;":8592,"SquareSuperset;":8848,"TildeFullEqual;":8773,"UpperLeftArrow;":8598,"ZeroWidthSpace;":8203,"curvearrowleft;":8630,"doublebarwedge;":8966,"downdownarrows;":8650,"hookrightarrow;":8618,"leftleftarrows;":8647,"leftrightarrow;":8596,"leftthreetimes;":8907,"longrightarrow;":10230,"looparrowright;":8620,"nshortparallel;":8742,"ntriangleright;":8939,"rightarrowtail;":8611,"rightharpoonup;":8640,"trianglelefteq;":8884,"upharpoonright;":8638,"ApplyFunction;":8289,"DifferentialD;":8518,"DoubleLeftTee;":10980,"DoubleUpArrow;":8657,"LeftTeeVector;":10586,"LeftVectorBar;":10578,"LessFullEqual;":8806,"LongLeftArrow;":10229,"Longleftarrow;":10232,"NotEqualTilde;":8770,"NotTildeEqual;":8772,"NotTildeTilde;":8777,"Poincareplane;":8460,"PrecedesEqual;":10927,"PrecedesTilde;":8830,"RightArrowBar;":8677,"RightTeeArrow;":8614,"RightTriangle;":8883,"RightUpVector;":8638,"SucceedsEqual;":10928,"SucceedsTilde;":8831,"SupersetEqual;":8839,"UpEquilibrium;":10606,"VerticalTilde;":8768,"VeryThinSpace;":8202,"bigtriangleup;":9651,"blacktriangle;":9652,"divideontimes;":8903,"fallingdotseq;":8786,"hookleftarrow;":8617,"leftarrowtail;":8610,"leftharpoonup;":8636,"longleftarrow;":10229,"looparrowleft;":8619,"measuredangle;":8737,"ntriangleleft;":8938,"shortparallel;":8741,"smallsetminus;":8726,"triangleright;":9657,"upharpoonleft;":8639,"varsubsetneqq;":10955,"varsupsetneqq;":10956,"DownArrowBar;":10515,"DownTeeArrow;":8615,"ExponentialE;":8519,"GreaterEqual;":8805,"GreaterTilde;":8819,"HilbertSpace;":8459,"HumpDownHump;":8782,"Intersection;":8898,"LeftArrowBar;":8676,"LeftTeeArrow;":8612,"LeftTriangle;":8882,"LeftUpVector;":8639,"NotCongruent;":8802,"NotHumpEqual;":8783,"NotLessEqual;":8816,"NotLessTilde;":8820,"Proportional;":8733,"RightCeiling;":8969,"RoundImplies;":10608,"ShortUpArrow;":8593,"SquareSubset;":8847,"UnderBracket;":9141,"VerticalLine;":124,"blacklozenge;":10731,"exponentiale;":8519,"risingdotseq;":8787,"triangledown;":9663,"triangleleft;":9667,"varsubsetneq;":8842,"varsupsetneq;":8843,"CircleMinus;":8854,"CircleTimes;":8855,"Equilibrium;":8652,"GreaterLess;":8823,"LeftCeiling;":8968,"LessGreater;":8822,"MediumSpace;":8287,"NotLessLess;":8810,"NotPrecedes;":8832,"NotSucceeds;":8833,"NotSuperset;":8835,"OverBracket;":9140,"RightVector;":8640,"Rrightarrow;":8667,"RuleDelayed;":10740,"SmallCircle;":8728,"SquareUnion;":8852,"SubsetEqual;":8838,"UpDownArrow;":8597,"Updownarrow;":8661,"VerticalBar;":8739,"backepsilon;":1014,"blacksquare;":9642,"circledcirc;":8858,"circleddash;":8861,"curlyeqprec;":8926,"curlyeqsucc;":8927,"diamondsuit;":9830,"eqslantless;":10901,"expectation;":8496,"nRightarrow;":8655,"nrightarrow;":8603,"preccurlyeq;":8828,"precnapprox;":10937,"quaternions;":8461,"straightphi;":981,"succcurlyeq;":8829,"succnapprox;":10938,"thickapprox;":8776,"updownarrow;":8597,"Bernoullis;":8492,"CirclePlus;":8853,"EqualTilde;":8770,"Fouriertrf;":8497,"ImaginaryI;":8520,"Laplacetrf;":8466,"LeftVector;":8636,"Lleftarrow;":8666,"NotElement;":8713,"NotGreater;":8815,"Proportion;":8759,"RightArrow;":8594,"RightFloor;":8971,"Rightarrow;":8658,"ThickSpace;":8287,"TildeEqual;":8771,"TildeTilde;":8776,"UnderBrace;":9183,"UpArrowBar;":10514,"UpTeeArrow;":8613,"circledast;":8859,"complement;":8705,"curlywedge;":8911,"eqslantgtr;":10902,"gtreqqless;":10892,"lessapprox;":10885,"lesseqqgtr;":10891,"lmoustache;":9136,"longmapsto;":10236,"mapstodown;":8615,"mapstoleft;":8612,"nLeftarrow;":8653,"nleftarrow;":8602,"nsubseteqq;":10949,"nsupseteqq;":10950,"precapprox;":10935,"rightarrow;":8594,"rmoustache;":9137,"sqsubseteq;":8849,"sqsupseteq;":8850,"subsetneqq;":10955,"succapprox;":10936,"supsetneqq;":10956,"upuparrows;":8648,"varepsilon;":1013,"varnothing;":8709,"Backslash;":8726,"CenterDot;":183,"CircleDot;":8857,"Congruent;":8801,"Coproduct;":8720,"DoubleDot;":168,"DownArrow;":8595,"DownBreve;":785,"Downarrow;":8659,"HumpEqual;":8783,"LeftArrow;":8592,"LeftFloor;":8970,"Leftarrow;":8656,"LessTilde;":8818,"Mellintrf;":8499,"MinusPlus;":8723,"NotCupCap;":8813,"NotExists;":8708,"NotSubset;":8834,"OverBrace;":9182,"PlusMinus;":177,"Therefore;":8756,"ThinSpace;":8201,"TripleDot;":8411,"UnionPlus;":8846,"backprime;":8245,"backsimeq;":8909,"bigotimes;":10754,"centerdot;":183,"checkmark;":10003,"complexes;":8450,"dotsquare;":8865,"downarrow;":8595,"gtrapprox;":10886,"gtreqless;":8923,"gvertneqq;":8809,"heartsuit;":9829,"leftarrow;":8592,"lesseqgtr;":8922,"lvertneqq;":8808,"ngeqslant;":10878,"nleqslant;":10877,"nparallel;":8742,"nshortmid;":8740,"nsubseteq;":8840,"nsupseteq;":8841,"pitchfork;":8916,"rationals;":8474,"spadesuit;":9824,"subseteqq;":10949,"subsetneq;":8842,"supseteqq;":10950,"supsetneq;":8843,"therefore;":8756,"triangleq;":8796,"varpropto;":8733,"DDotrahd;":10513,"DotEqual;":8784,"Integral;":8747,"LessLess;":10913,"NotEqual;":8800,"NotTilde;":8769,"PartialD;":8706,"Precedes;":8826,"RightTee;":8866,"Succeeds;":8827,"SuchThat;":8715,"Superset;":8835,"Uarrocir;":10569,"UnderBar;":95,"andslope;":10840,"angmsdaa;":10664,"angmsdab;":10665,"angmsdac;":10666,"angmsdad;":10667,"angmsdae;":10668,"angmsdaf;":10669,"angmsdag;":10670,"angmsdah;":10671,"angrtvbd;":10653,"approxeq;":8778,"awconint;":8755,"backcong;":8780,"barwedge;":8965,"bbrktbrk;":9142,"bigoplus;":10753,"bigsqcup;":10758,"biguplus;":10756,"bigwedge;":8896,"boxminus;":8863,"boxtimes;":8864,"bsolhsub;":10184,"capbrcup;":10825,"circledR;":174,"circledS;":9416,"cirfnint;":10768,"clubsuit;":9827,"cupbrcap;":10824,"curlyvee;":8910,"cwconint;":8754,"doteqdot;":8785,"dotminus;":8760,"drbkarow;":10512,"dzigrarr;":10239,"elinters;":9191,"emptyset;":8709,"eqvparsl;":10725,"fpartint;":10765,"geqslant;":10878,"gesdotol;":10884,"gnapprox;":10890,"hksearow;":10533,"hkswarow;":10534,"imagline;":8464,"imagpart;":8465,"infintie;":10717,"integers;":8484,"intercal;":8890,"intlarhk;":10775,"laemptyv;":10676,"ldrushar;":10571,"leqslant;":10877,"lesdotor;":10883,"llcorner;":8990,"lnapprox;":10889,"lrcorner;":8991,"lurdshar;":10570,"mapstoup;":8613,"multimap;":8888,"naturals;":8469,"ncongdot;":10861,"notindot;":8949,"otimesas;":10806,"parallel;":8741,"plusacir;":10787,"pointint;":10773,"precneqq;":10933,"precnsim;":8936,"profalar;":9006,"profline;":8978,"profsurf;":8979,"raemptyv;":10675,"realpart;":8476,"rppolint;":10770,"rtriltri;":10702,"scpolint;":10771,"setminus;":8726,"shortmid;":8739,"smeparsl;":10724,"sqsubset;":8847,"sqsupset;":8848,"subseteq;":8838,"succneqq;":10934,"succnsim;":8937,"supseteq;":8839,"thetasym;":977,"thicksim;":8764,"timesbar;":10801,"triangle;":9653,"triminus;":10810,"trpezium;":9186,"ulcorner;":8988,"urcorner;":8989,"varkappa;":1008,"varsigma;":962,"vartheta;":977,"Because;":8757,"Cayleys;":8493,"Cconint;":8752,"Cedilla;":184,"Diamond;":8900,"DownTee;":8868,"Element;":8712,"Epsilon;":917,"Implies;":8658,"LeftTee;":8867,"NewLine;":10,"NoBreak;":8288,"NotLess;":8814,"Omicron;":927,"OverBar;":8254,"Product;":8719,"UpArrow;":8593,"Uparrow;":8657,"Upsilon;":933,"alefsym;":8501,"angrtvb;":8894,"angzarr;":9084,"asympeq;":8781,"backsim;":8765,"because;":8757,"bemptyv;":10672,"between;":8812,"bigcirc;":9711,"bigodot;":10752,"bigstar;":9733,"bnequiv;":8801,"boxplus;":8862,"ccupssm;":10832,"cemptyv;":10674,"cirscir;":10690,"coloneq;":8788,"congdot;":10861,"cudarrl;":10552,"cudarrr;":10549,"cularrp;":10557,"curarrm;":10556,"dbkarow;":10511,"ddagger;":8225,"ddotseq;":10871,"demptyv;":10673,"diamond;":8900,"digamma;":989,"dotplus;":8724,"dwangle;":10662,"epsilon;":949,"eqcolon;":8789,"equivDD;":10872,"gesdoto;":10882,"gtquest;":10876,"gtrless;":8823,"harrcir;":10568,"intprod;":10812,"isindot;":8949,"larrbfs;":10527,"larrsim;":10611,"lbrksld;":10639,"lbrkslu;":10637,"ldrdhar;":10599,"lesdoto;":10881,"lessdot;":8918,"lessgtr;":8822,"lesssim;":8818,"lotimes;":10804,"lozenge;":9674,"ltquest;":10875,"luruhar;":10598,"maltese;":10016,"minusdu;":10794,"napprox;":8777,"natural;":9838,"nearrow;":8599,"nexists;":8708,"notinva;":8713,"notinvb;":8951,"notinvc;":8950,"notniva;":8716,"notnivb;":8958,"notnivc;":8957,"npolint;":10772,"npreceq;":10927,"nsqsube;":8930,"nsqsupe;":8931,"nsubset;":8834,"nsucceq;":10928,"nsupset;":8835,"nvinfin;":10718,"nvltrie;":8884,"nvrtrie;":8885,"nwarrow;":8598,"olcross;":10683,"omicron;":959,"orderof;":8500,"orslope;":10839,"pertenk;":8241,"planckh;":8462,"pluscir;":10786,"plussim;":10790,"plustwo;":10791,"precsim;":8830,"quatint;":10774,"questeq;":8799,"rarrbfs;":10528,"rarrsim;":10612,"rbrksld;":10638,"rbrkslu;":10640,"rdldhar;":10601,"realine;":8475,"rotimes;":10805,"ruluhar;":10600,"searrow;":8600,"simplus;":10788,"simrarr;":10610,"subedot;":10947,"submult;":10945,"subplus;":10943,"subrarr;":10617,"succsim;":8831,"supdsub;":10968,"supedot;":10948,"suphsol;":10185,"suphsub;":10967,"suplarr;":10619,"supmult;":10946,"supplus;":10944,"swarrow;":8601,"topfork;":10970,"triplus;":10809,"tritime;":10811,"uparrow;":8593,"upsilon;":965,"uwangle;":10663,"vzigzag;":10650,"zigrarr;":8669,"Aacute;":193,"Abreve;":258,"Agrave;":192,"Assign;":8788,"Atilde;":195,"Barwed;":8966,"Bumpeq;":8782,"Cacute;":262,"Ccaron;":268,"Ccedil;":199,"Colone;":10868,"Conint;":8751,"CupCap;":8781,"Dagger;":8225,"Dcaron;":270,"DotDot;":8412,"Dstrok;":272,"Eacute;":201,"Ecaron;":282,"Egrave;":200,"Exists;":8707,"ForAll;":8704,"Gammad;":988,"Gbreve;":286,"Gcedil;":290,"HARDcy;":1066,"Hstrok;":294,"Iacute;":205,"Igrave;":204,"Itilde;":296,"Jsercy;":1032,"Kcedil;":310,"Lacute;":313,"Lambda;":923,"Lcaron;":317,"Lcedil;":315,"Lmidot;":319,"Lstrok;":321,"Nacute;":323,"Ncaron;":327,"Ncedil;":325,"Ntilde;":209,"Oacute;":211,"Odblac;":336,"Ograve;":210,"Oslash;":216,"Otilde;":213,"Otimes;":10807,"Racute;":340,"Rarrtl;":10518,"Rcaron;":344,"Rcedil;":342,"SHCHcy;":1065,"SOFTcy;":1068,"Sacute;":346,"Scaron;":352,"Scedil;":350,"Square;":9633,"Subset;":8912,"Supset;":8913,"Tcaron;":356,"Tcedil;":354,"Tstrok;":358,"Uacute;":218,"Ubreve;":364,"Udblac;":368,"Ugrave;":217,"Utilde;":360,"Vdashl;":10982,"Verbar;":8214,"Vvdash;":8874,"Yacute;":221,"Zacute;":377,"Zcaron;":381,"aacute;":225,"abreve;":259,"agrave;":224,"andand;":10837,"angmsd;":8737,"angsph;":8738,"apacir;":10863,"approx;":8776,"atilde;":227,"barvee;":8893,"barwed;":8965,"becaus;":8757,"bernou;":8492,"bigcap;":8898,"bigcup;":8899,"bigvee;":8897,"bkarow;":10509,"bottom;":8869,"bowtie;":8904,"boxbox;":10697,"bprime;":8245,"brvbar;":166,"bullet;":8226,"bumpeq;":8783,"cacute;":263,"capand;":10820,"capcap;":10827,"capcup;":10823,"capdot;":10816,"ccaron;":269,"ccedil;":231,"circeq;":8791,"cirmid;":10991,"colone;":8788,"commat;":64,"compfn;":8728,"conint;":8750,"coprod;":8720,"copysr;":8471,"cularr;":8630,"cupcap;":10822,"cupcup;":10826,"cupdot;":8845,"curarr;":8631,"curren;":164,"cylcty;":9005,"dagger;":8224,"daleth;":8504,"dcaron;":271,"dfisht;":10623,"divide;":247,"divonx;":8903,"dlcorn;":8990,"dlcrop;":8973,"dollar;":36,"drcorn;":8991,"drcrop;":8972,"dstrok;":273,"eacute;":233,"easter;":10862,"ecaron;":283,"ecolon;":8789,"egrave;":232,"egsdot;":10904,"elsdot;":10903,"emptyv;":8709,"emsp13;":8196,"emsp14;":8197,"eparsl;":10723,"eqcirc;":8790,"equals;":61,"equest;":8799,"female;":9792,"ffilig;":64259,"ffllig;":64260,"forall;":8704,"frac12;":189,"frac13;":8531,"frac14;":188,"frac15;":8533,"frac16;":8537,"frac18;":8539,"frac23;":8532,"frac25;":8534,"frac34;":190,"frac35;":8535,"frac38;":8540,"frac45;":8536,"frac56;":8538,"frac58;":8541,"frac78;":8542,"gacute;":501,"gammad;":989,"gbreve;":287,"gesdot;":10880,"gesles;":10900,"gtlPar;":10645,"gtrarr;":10616,"gtrdot;":8919,"gtrsim;":8819,"hairsp;":8202,"hamilt;":8459,"hardcy;":1098,"hearts;":9829,"hellip;":8230,"hercon;":8889,"homtht;":8763,"horbar;":8213,"hslash;":8463,"hstrok;":295,"hybull;":8259,"hyphen;":8208,"iacute;":237,"igrave;":236,"iiiint;":10764,"iinfin;":10716,"incare;":8453,"inodot;":305,"intcal;":8890,"iquest;":191,"isinsv;":8947,"itilde;":297,"jsercy;":1112,"kappav;":1008,"kcedil;":311,"kgreen;":312,"lAtail;":10523,"lacute;":314,"lagran;":8466,"lambda;":955,"langle;":10216,"larrfs;":10525,"larrhk;":8617,"larrlp;":8619,"larrpl;":10553,"larrtl;":8610,"latail;":10521,"lbrace;":123,"lbrack;":91,"lcaron;":318,"lcedil;":316,"ldquor;":8222,"lesdot;":10879,"lesges;":10899,"lfisht;":10620,"lfloor;":8970,"lharul;":10602,"llhard;":10603,"lmidot;":320,"lmoust;":9136,"loplus;":10797,"lowast;":8727,"lowbar;":95,"lparlt;":10643,"lrhard;":10605,"lsaquo;":8249,"lsquor;":8218,"lstrok;":322,"lthree;":8907,"ltimes;":8905,"ltlarr;":10614,"ltrPar;":10646,"mapsto;":8614,"marker;":9646,"mcomma;":10793,"midast;":42,"midcir;":10992,"middot;":183,"minusb;":8863,"minusd;":8760,"mnplus;":8723,"models;":8871,"mstpos;":8766,"nVDash;":8879,"nVdash;":8878,"nacute;":324,"nbumpe;":8783,"ncaron;":328,"ncedil;":326,"nearhk;":10532,"nequiv;":8802,"nesear;":10536,"nexist;":8708,"nltrie;":8940,"notinE;":8953,"nparsl;":11005,"nprcue;":8928,"nrarrc;":10547,"nrarrw;":8605,"nrtrie;":8941,"nsccue;":8929,"nsimeq;":8772,"ntilde;":241,"numero;":8470,"nvDash;":8877,"nvHarr;":10500,"nvdash;":8876,"nvlArr;":10498,"nvrArr;":10499,"nwarhk;":10531,"nwnear;":10535,"oacute;":243,"odblac;":337,"odsold;":10684,"ograve;":242,"ominus;":8854,"origof;":8886,"oslash;":248,"otilde;":245,"otimes;":8855,"parsim;":10995,"percnt;":37,"period;":46,"permil;":8240,"phmmat;":8499,"planck;":8463,"plankv;":8463,"plusdo;":8724,"plusdu;":10789,"plusmn;":177,"preceq;":10927,"primes;":8473,"prnsim;":8936,"propto;":8733,"prurel;":8880,"puncsp;":8200,"qprime;":8279,"rAtail;":10524,"racute;":341,"rangle;":10217,"rarrap;":10613,"rarrfs;":10526,"rarrhk;":8618,"rarrlp;":8620,"rarrpl;":10565,"rarrtl;":8611,"ratail;":10522,"rbrace;":125,"rbrack;":93,"rcaron;":345,"rcedil;":343,"rdquor;":8221,"rfisht;":10621,"rfloor;":8971,"rharul;":10604,"rmoust;":9137,"roplus;":10798,"rpargt;":10644,"rsaquo;":8250,"rsquor;":8217,"rthree;":8908,"rtimes;":8906,"sacute;":347,"scaron;":353,"scedil;":351,"scnsim;":8937,"searhk;":10533,"seswar;":10537,"sfrown;":8994,"shchcy;":1097,"sigmaf;":962,"sigmav;":962,"simdot;":10858,"smashp;":10803,"softcy;":1100,"solbar;":9023,"spades;":9824,"sqcaps;":8851,"sqcups;":8852,"sqsube;":8849,"sqsupe;":8850,"square;":9633,"squarf;":9642,"ssetmn;":8726,"ssmile;":8995,"sstarf;":8902,"subdot;":10941,"subset;":8834,"subsim;":10951,"subsub;":10965,"subsup;":10963,"succeq;":10928,"supdot;":10942,"supset;":8835,"supsim;":10952,"supsub;":10964,"supsup;":10966,"swarhk;":10534,"swnwar;":10538,"target;":8982,"tcaron;":357,"tcedil;":355,"telrec;":8981,"there4;":8756,"thetav;":977,"thinsp;":8201,"thksim;":8764,"timesb;":8864,"timesd;":10800,"topbot;":9014,"topcir;":10993,"tprime;":8244,"tridot;":9708,"tstrok;":359,"uacute;":250,"ubreve;":365,"udblac;":369,"ufisht;":10622,"ugrave;":249,"ulcorn;":8988,"ulcrop;":8975,"urcorn;":8989,"urcrop;":8974,"utilde;":361,"vangrt;":10652,"varphi;":981,"varrho;":1009,"veebar;":8891,"vellip;":8942,"verbar;":124,"vsubnE;":10955,"vsubne;":8842,"vsupnE;":10956,"vsupne;":8843,"wedbar;":10847,"wedgeq;":8793,"weierp;":8472,"wreath;":8768,"xoplus;":10753,"xotime;":10754,"xsqcup;":10758,"xuplus;":10756,"xwedge;":8896,"yacute;":253,"zacute;":378,"zcaron;":382,"zeetrf;":8488,"AElig;":198,Aacute:193,"Acirc;":194,Agrave:192,"Alpha;":913,"Amacr;":256,"Aogon;":260,"Aring;":197,Atilde:195,"Breve;":728,Ccedil:199,"Ccirc;":264,"Colon;":8759,"Cross;":10799,"Dashv;":10980,"Delta;":916,Eacute:201,"Ecirc;":202,Egrave:200,"Emacr;":274,"Eogon;":280,"Equal;":10869,"Gamma;":915,"Gcirc;":284,"Hacek;":711,"Hcirc;":292,"IJlig;":306,Iacute:205,"Icirc;":206,Igrave:204,"Imacr;":298,"Iogon;":302,"Iukcy;":1030,"Jcirc;":308,"Jukcy;":1028,"Kappa;":922,Ntilde:209,"OElig;":338,Oacute:211,"Ocirc;":212,Ograve:210,"Omacr;":332,"Omega;":937,Oslash:216,Otilde:213,"Prime;":8243,"RBarr;":10512,"Scirc;":348,"Sigma;":931,"THORN;":222,"TRADE;":8482,"TSHcy;":1035,"Theta;":920,"Tilde;":8764,Uacute:218,"Ubrcy;":1038,"Ucirc;":219,Ugrave:217,"Umacr;":362,"Union;":8899,"Uogon;":370,"UpTee;":8869,"Uring;":366,"VDash;":8875,"Vdash;":8873,"Wcirc;":372,"Wedge;":8896,Yacute:221,"Ycirc;":374,aacute:225,"acirc;":226,"acute;":180,"aelig;":230,agrave:224,"aleph;":8501,"alpha;":945,"amacr;":257,"amalg;":10815,"angle;":8736,"angrt;":8735,"angst;":197,"aogon;":261,"aring;":229,"asymp;":8776,atilde:227,"awint;":10769,"bcong;":8780,"bdquo;":8222,"bepsi;":1014,"blank;":9251,"blk12;":9618,"blk14;":9617,"blk34;":9619,"block;":9608,"boxDL;":9559,"boxDR;":9556,"boxDl;":9558,"boxDr;":9555,"boxHD;":9574,"boxHU;":9577,"boxHd;":9572,"boxHu;":9575,"boxUL;":9565,"boxUR;":9562,"boxUl;":9564,"boxUr;":9561,"boxVH;":9580,"boxVL;":9571,"boxVR;":9568,"boxVh;":9579,"boxVl;":9570,"boxVr;":9567,"boxdL;":9557,"boxdR;":9554,"boxdl;":9488,"boxdr;":9484,"boxhD;":9573,"boxhU;":9576,"boxhd;":9516,"boxhu;":9524,"boxuL;":9563,"boxuR;":9560,"boxul;":9496,"boxur;":9492,"boxvH;":9578,"boxvL;":9569,"boxvR;":9566,"boxvh;":9532,"boxvl;":9508,"boxvr;":9500,"breve;":728,brvbar:166,"bsemi;":8271,"bsime;":8909,"bsolb;":10693,"bumpE;":10926,"bumpe;":8783,"caret;":8257,"caron;":711,"ccaps;":10829,ccedil:231,"ccirc;":265,"ccups;":10828,"cedil;":184,"check;":10003,"clubs;":9827,"colon;":58,"comma;":44,"crarr;":8629,"cross;":10007,"csube;":10961,"csupe;":10962,"ctdot;":8943,"cuepr;":8926,"cuesc;":8927,"cupor;":10821,curren:164,"cuvee;":8910,"cuwed;":8911,"cwint;":8753,"dashv;":8867,"dblac;":733,"ddarr;":8650,"delta;":948,"dharl;":8643,"dharr;":8642,"diams;":9830,"disin;":8946,divide:247,"doteq;":8784,"dtdot;":8945,"dtrif;":9662,"duarr;":8693,"duhar;":10607,"eDDot;":10871,eacute:233,"ecirc;":234,"efDot;":8786,egrave:232,"emacr;":275,"empty;":8709,"eogon;":281,"eplus;":10865,"epsiv;":1013,"eqsim;":8770,"equiv;":8801,"erDot;":8787,"erarr;":10609,"esdot;":8784,"exist;":8707,"fflig;":64256,"filig;":64257,"fjlig;":102,"fllig;":64258,"fltns;":9649,"forkv;":10969,frac12:189,frac14:188,frac34:190,"frasl;":8260,"frown;":8994,"gamma;":947,"gcirc;":285,"gescc;":10921,"gimel;":8503,"gneqq;":8809,"gnsim;":8935,"grave;":96,"gsime;":10894,"gsiml;":10896,"gtcir;":10874,"gtdot;":8919,"harrw;":8621,"hcirc;":293,"hoarr;":8703,iacute:237,"icirc;":238,"iexcl;":161,igrave:236,"iiint;":8749,"iiota;":8489,"ijlig;":307,"imacr;":299,"image;":8465,"imath;":305,"imped;":437,"infin;":8734,"iogon;":303,"iprod;":10812,iquest:191,"isinE;":8953,"isins;":8948,"isinv;":8712,"iukcy;":1110,"jcirc;":309,"jmath;":567,"jukcy;":1108,"kappa;":954,"lAarr;":8666,"lBarr;":10510,"langd;":10641,"laquo;":171,"larrb;":8676,"lates;":10925,"lbarr;":10508,"lbbrk;":10098,"lbrke;":10635,"lceil;":8968,"ldquo;":8220,"lescc;":10920,"lhard;":8637,"lharu;":8636,"lhblk;":9604,"llarr;":8647,"lltri;":9722,"lneqq;":8808,"lnsim;":8934,"loang;":10220,"loarr;":8701,"lobrk;":10214,"lopar;":10629,"lrarr;":8646,"lrhar;":8651,"lrtri;":8895,"lsime;":10893,"lsimg;":10895,"lsquo;":8216,"ltcir;":10873,"ltdot;":8918,"ltrie;":8884,"ltrif;":9666,"mDDot;":8762,"mdash;":8212,"micro;":181,middot:183,"minus;":8722,"mumap;":8888,"nabla;":8711,"napid;":8779,"napos;":329,"natur;":9838,"nbump;":8782,"ncong;":8775,"ndash;":8211,"neArr;":8663,"nearr;":8599,"nedot;":8784,"nesim;":8770,"ngeqq;":8807,"ngsim;":8821,"nhArr;":8654,"nharr;":8622,"nhpar;":10994,"nlArr;":8653,"nlarr;":8602,"nleqq;":8806,"nless;":8814,"nlsim;":8820,"nltri;":8938,"notin;":8713,"notni;":8716,"npart;":8706,"nprec;":8832,"nrArr;":8655,"nrarr;":8603,"nrtri;":8939,"nsime;":8772,"nsmid;":8740,"nspar;":8742,"nsubE;":10949,"nsube;":8840,"nsucc;":8833,"nsupE;":10950,"nsupe;":8841,ntilde:241,"numsp;":8199,"nvsim;":8764,"nwArr;":8662,"nwarr;":8598,oacute:243,"ocirc;":244,"odash;":8861,"oelig;":339,"ofcir;":10687,ograve:242,"ohbar;":10677,"olarr;":8634,"olcir;":10686,"oline;":8254,"omacr;":333,"omega;":969,"operp;":10681,"oplus;":8853,"orarr;":8635,"order;":8500,oslash:248,otilde:245,"ovbar;":9021,"parsl;":11005,"phone;":9742,"plusb;":8862,"pluse;":10866,plusmn:177,"pound;":163,"prcue;":8828,"prime;":8242,"prnap;":10937,"prsim;":8830,"quest;":63,"rAarr;":8667,"rBarr;":10511,"radic;":8730,"rangd;":10642,"range;":10661,"raquo;":187,"rarrb;":8677,"rarrc;":10547,"rarrw;":8605,"ratio;":8758,"rbarr;":10509,"rbbrk;":10099,"rbrke;":10636,"rceil;":8969,"rdquo;":8221,"reals;":8477,"rhard;":8641,"rharu;":8640,"rlarr;":8644,"rlhar;":8652,"rnmid;":10990,"roang;":10221,"roarr;":8702,"robrk;":10215,"ropar;":10630,"rrarr;":8649,"rsquo;":8217,"rtrie;":8885,"rtrif;":9656,"sbquo;":8218,"sccue;":8829,"scirc;":349,"scnap;":10938,"scsim;":8831,"sdotb;":8865,"sdote;":10854,"seArr;":8664,"searr;":8600,"setmn;":8726,"sharp;":9839,"sigma;":963,"simeq;":8771,"simgE;":10912,"simlE;":10911,"simne;":8774,"slarr;":8592,"smile;":8995,"smtes;":10924,"sqcap;":8851,"sqcup;":8852,"sqsub;":8847,"sqsup;":8848,"srarr;":8594,"starf;":9733,"strns;":175,"subnE;":10955,"subne;":8842,"supnE;":10956,"supne;":8843,"swArr;":8665,"swarr;":8601,"szlig;":223,"theta;":952,"thkap;":8776,"thorn;":254,"tilde;":732,"times;":215,"trade;":8482,"trisb;":10701,"tshcy;":1115,"twixt;":8812,uacute:250,"ubrcy;":1118,"ucirc;":251,"udarr;":8645,"udhar;":10606,ugrave:249,"uharl;":8639,"uharr;":8638,"uhblk;":9600,"ultri;":9720,"umacr;":363,"uogon;":371,"uplus;":8846,"upsih;":978,"uring;":367,"urtri;":9721,"utdot;":8944,"utrif;":9652,"uuarr;":8648,"vBarv;":10985,"vDash;":8872,"varpi;":982,"vdash;":8866,"veeeq;":8794,"vltri;":8882,"vnsub;":8834,"vnsup;":8835,"vprop;":8733,"vrtri;":8883,"wcirc;":373,"wedge;":8743,"xcirc;":9711,"xdtri;":9661,"xhArr;":10234,"xharr;":10231,"xlArr;":10232,"xlarr;":10229,"xodot;":10752,"xrArr;":10233,"xrarr;":10230,"xutri;":9651,yacute:253,"ycirc;":375,AElig:198,Acirc:194,"Aopf;":120120,Aring:197,"Ascr;":119964,"Auml;":196,"Barv;":10983,"Beta;":914,"Bopf;":120121,"Bscr;":8492,"CHcy;":1063,"COPY;":169,"Cdot;":266,"Copf;":8450,"Cscr;":119966,"DJcy;":1026,"DScy;":1029,"DZcy;":1039,"Darr;":8609,"Dopf;":120123,"Dscr;":119967,Ecirc:202,"Edot;":278,"Eopf;":120124,"Escr;":8496,"Esim;":10867,"Euml;":203,"Fopf;":120125,"Fscr;":8497,"GJcy;":1027,"Gdot;":288,"Gopf;":120126,"Gscr;":119970,"Hopf;":8461,"Hscr;":8459,"IEcy;":1045,"IOcy;":1025,Icirc:206,"Idot;":304,"Iopf;":120128,"Iota;":921,"Iscr;":8464,"Iuml;":207,"Jopf;":120129,"Jscr;":119973,"KHcy;":1061,"KJcy;":1036,"Kopf;":120130,"Kscr;":119974,"LJcy;":1033,"Lang;":10218,"Larr;":8606,"Lopf;":120131,"Lscr;":8466,"Mopf;":120132,"Mscr;":8499,"NJcy;":1034,"Nopf;":8469,"Nscr;":119977,Ocirc:212,"Oopf;":120134,"Oscr;":119978,"Ouml;":214,"Popf;":8473,"Pscr;":119979,"QUOT;":34,"Qopf;":8474,"Qscr;":119980,"Rang;":10219,"Rarr;":8608,"Ropf;":8477,"Rscr;":8475,"SHcy;":1064,"Sopf;":120138,"Sqrt;":8730,"Sscr;":119982,"Star;":8902,THORN:222,"TScy;":1062,"Topf;":120139,"Tscr;":119983,"Uarr;":8607,Ucirc:219,"Uopf;":120140,"Upsi;":978,"Uscr;":119984,"Uuml;":220,"Vbar;":10987,"Vert;":8214,"Vopf;":120141,"Vscr;":119985,"Wopf;":120142,"Wscr;":119986,"Xopf;":120143,"Xscr;":119987,"YAcy;":1071,"YIcy;":1031,"YUcy;":1070,"Yopf;":120144,"Yscr;":119988,"Yuml;":376,"ZHcy;":1046,"Zdot;":379,"Zeta;":918,"Zopf;":8484,"Zscr;":119989,acirc:226,acute:180,aelig:230,"andd;":10844,"andv;":10842,"ange;":10660,"aopf;":120146,"apid;":8779,"apos;":39,aring:229,"ascr;":119990,"auml;":228,"bNot;":10989,"bbrk;":9141,"beta;":946,"beth;":8502,"bnot;":8976,"bopf;":120147,"boxH;":9552,"boxV;":9553,"boxh;":9472,"boxv;":9474,"bscr;":119991,"bsim;":8765,"bsol;":92,"bull;":8226,"bump;":8782,"caps;":8745,"cdot;":267,cedil:184,"cent;":162,"chcy;":1095,"cirE;":10691,"circ;":710,"cire;":8791,"comp;":8705,"cong;":8773,"copf;":120148,"copy;":169,"cscr;":119992,"csub;":10959,"csup;":10960,"cups;":8746,"dArr;":8659,"dHar;":10597,"darr;":8595,"dash;":8208,"diam;":8900,"djcy;":1106,"dopf;":120149,"dscr;":119993,"dscy;":1109,"dsol;":10742,"dtri;":9663,"dzcy;":1119,"eDot;":8785,"ecir;":8790,ecirc:234,"edot;":279,"emsp;":8195,"ensp;":8194,"eopf;":120150,"epar;":8917,"epsi;":949,"escr;":8495,"esim;":8770,"euml;":235,"euro;":8364,"excl;":33,"flat;":9837,"fnof;":402,"fopf;":120151,"fork;":8916,"fscr;":119995,"gdot;":289,"geqq;":8807,"gesl;":8923,"gjcy;":1107,"gnap;":10890,"gneq;":10888,"gopf;":120152,"gscr;":8458,"gsim;":8819,"gtcc;":10919,"gvnE;":8809,"hArr;":8660,"half;":189,"harr;":8596,"hbar;":8463,"hopf;":120153,"hscr;":119997,icirc:238,"iecy;":1077,iexcl:161,"imof;":8887,"iocy;":1105,"iopf;":120154,"iota;":953,"iscr;":119998,"isin;":8712,"iuml;":239,"jopf;":120155,"jscr;":119999,"khcy;":1093,"kjcy;":1116,"kopf;":120156,"kscr;":12e4,"lArr;":8656,"lHar;":10594,"lang;":10216,laquo:171,"larr;":8592,"late;":10925,"lcub;":123,"ldca;":10550,"ldsh;":8626,"leqq;":8806,"lesg;":8922,"ljcy;":1113,"lnap;":10889,"lneq;":10887,"lopf;":120157,"lozf;":10731,"lpar;":40,"lscr;":120001,"lsim;":8818,"lsqb;":91,"ltcc;":10918,"ltri;":9667,"lvnE;":8808,"macr;":175,"male;":9794,"malt;":10016,micro:181,"mlcp;":10971,"mldr;":8230,"mopf;":120158,"mscr;":120002,"nGtv;":8811,"nLtv;":8810,"nang;":8736,"napE;":10864,"nbsp;":160,"ncap;":10819,"ncup;":10818,"ngeq;":8817,"nges;":10878,"ngtr;":8815,"nisd;":8954,"njcy;":1114,"nldr;":8229,"nleq;":8816,"nles;":10877,"nmid;":8740,"nopf;":120159,"npar;":8742,"npre;":10927,"nsce;":10928,"nscr;":120003,"nsim;":8769,"nsub;":8836,"nsup;":8837,"ntgl;":8825,"ntlg;":8824,"nvap;":8781,"nvge;":8805,"nvgt;":62,"nvle;":8804,"nvlt;":60,"oast;":8859,"ocir;":8858,ocirc:244,"odiv;":10808,"odot;":8857,"ogon;":731,"oint;":8750,"omid;":10678,"oopf;":120160,"opar;":10679,"ordf;":170,"ordm;":186,"oror;":10838,"oscr;":8500,"osol;":8856,"ouml;":246,"para;":182,"part;":8706,"perp;":8869,"phiv;":981,"plus;":43,"popf;":120161,pound:163,"prap;":10935,"prec;":8826,"prnE;":10933,"prod;":8719,"prop;":8733,"pscr;":120005,"qint;":10764,"qopf;":120162,"qscr;":120006,"quot;":34,"rArr;":8658,"rHar;":10596,"race;":8765,"rang;":10217,raquo:187,"rarr;":8594,"rcub;":125,"rdca;":10551,"rdsh;":8627,"real;":8476,"rect;":9645,"rhov;":1009,"ring;":730,"ropf;":120163,"rpar;":41,"rscr;":120007,"rsqb;":93,"rtri;":9657,"scap;":10936,"scnE;":10934,"sdot;":8901,"sect;":167,"semi;":59,"sext;":10038,"shcy;":1096,"sime;":8771,"simg;":10910,"siml;":10909,"smid;":8739,"smte;":10924,"solb;":10692,"sopf;":120164,"spar;":8741,"squf;":9642,"sscr;":120008,"star;":9734,"subE;":10949,"sube;":8838,"succ;":8827,"sung;":9834,"sup1;":185,"sup2;":178,"sup3;":179,"supE;":10950,"supe;":8839,szlig:223,"tbrk;":9140,"tdot;":8411,thorn:254,times:215,"tint;":8749,"toea;":10536,"topf;":120165,"tosa;":10537,"trie;":8796,"tscr;":120009,"tscy;":1094,"uArr;":8657,"uHar;":10595,"uarr;":8593,ucirc:251,"uopf;":120166,"upsi;":965,"uscr;":120010,"utri;":9653,"uuml;":252,"vArr;":8661,"vBar;":10984,"varr;":8597,"vert;":124,"vopf;":120167,"vscr;":120011,"wopf;":120168,"wscr;":120012,"xcap;":8898,"xcup;":8899,"xmap;":10236,"xnis;":8955,"xopf;":120169,"xscr;":120013,"xvee;":8897,"yacy;":1103,"yicy;":1111,"yopf;":120170,"yscr;":120014,"yucy;":1102,"yuml;":255,"zdot;":380,"zeta;":950,"zhcy;":1078,"zopf;":120171,"zscr;":120015,"zwnj;":8204,"AMP;":38,"Acy;":1040,"Afr;":120068,"And;":10835,Auml:196,"Bcy;":1041,"Bfr;":120069,COPY:169,"Cap;":8914,"Cfr;":8493,"Chi;":935,"Cup;":8915,"Dcy;":1044,"Del;":8711,"Dfr;":120071,"Dot;":168,"ENG;":330,"ETH;":208,"Ecy;":1069,"Efr;":120072,"Eta;":919,Euml:203,"Fcy;":1060,"Ffr;":120073,"Gcy;":1043,"Gfr;":120074,"Hat;":94,"Hfr;":8460,"Icy;":1048,"Ifr;":8465,"Int;":8748,Iuml:207,"Jcy;":1049,"Jfr;":120077,"Kcy;":1050,"Kfr;":120078,"Lcy;":1051,"Lfr;":120079,"Lsh;":8624,"Map;":10501,"Mcy;":1052,"Mfr;":120080,"Ncy;":1053,"Nfr;":120081,"Not;":10988,"Ocy;":1054,"Ofr;":120082,Ouml:214,"Pcy;":1055,"Pfr;":120083,"Phi;":934,"Psi;":936,QUOT:34,"Qfr;":120084,"REG;":174,"Rcy;":1056,"Rfr;":8476,"Rho;":929,"Rsh;":8625,"Scy;":1057,"Sfr;":120086,"Sub;":8912,"Sum;":8721,"Sup;":8913,"Tab;":9,"Tau;":932,"Tcy;":1058,"Tfr;":120087,"Ucy;":1059,"Ufr;":120088,Uuml:220,"Vcy;":1042,"Vee;":8897,"Vfr;":120089,"Wfr;":120090,"Xfr;":120091,"Ycy;":1067,"Yfr;":120092,"Zcy;":1047,"Zfr;":8488,"acE;":8766,"acd;":8767,"acy;":1072,"afr;":120094,"amp;":38,"and;":8743,"ang;":8736,"apE;":10864,"ape;":8778,"ast;":42,auml:228,"bcy;":1073,"bfr;":120095,"bne;":61,"bot;":8869,"cap;":8745,cent:162,"cfr;":120096,"chi;":967,"cir;":9675,copy:169,"cup;":8746,"dcy;":1076,"deg;":176,"dfr;":120097,"die;":168,"div;":247,"dot;":729,"ecy;":1101,"efr;":120098,"egs;":10902,"ell;":8467,"els;":10901,"eng;":331,"eta;":951,"eth;":240,euml:235,"fcy;":1092,"ffr;":120099,"gEl;":10892,"gap;":10886,"gcy;":1075,"gel;":8923,"geq;":8805,"ges;":10878,"gfr;":120100,"ggg;":8921,"glE;":10898,"gla;":10917,"glj;":10916,"gnE;":8809,"gne;":10888,"hfr;":120101,"icy;":1080,"iff;":8660,"ifr;":120102,"int;":8747,iuml:239,"jcy;":1081,"jfr;":120103,"kcy;":1082,"kfr;":120104,"lEg;":10891,"lap;":10885,"lat;":10923,"lcy;":1083,"leg;":8922,"leq;":8804,"les;":10877,"lfr;":120105,"lgE;":10897,"lnE;":8808,"lne;":10887,"loz;":9674,"lrm;":8206,"lsh;":8624,macr:175,"map;":8614,"mcy;":1084,"mfr;":120106,"mho;":8487,"mid;":8739,"nGg;":8921,"nGt;":8811,"nLl;":8920,"nLt;":8810,"nap;":8777,nbsp:160,"ncy;":1085,"nfr;":120107,"ngE;":8807,"nge;":8817,"ngt;":8815,"nis;":8956,"niv;":8715,"nlE;":8806,"nle;":8816,"nlt;":8814,"not;":172,"npr;":8832,"nsc;":8833,"num;":35,"ocy;":1086,"ofr;":120108,"ogt;":10689,"ohm;":937,"olt;":10688,"ord;":10845,ordf:170,ordm:186,"orv;":10843,ouml:246,"par;":8741,para:182,"pcy;":1087,"pfr;":120109,"phi;":966,"piv;":982,"prE;":10931,"pre;":10927,"psi;":968,"qfr;":120110,quot:34,"rcy;":1088,"reg;":174,"rfr;":120111,"rho;":961,"rlm;":8207,"rsh;":8625,"scE;":10932,"sce;":10928,"scy;":1089,sect:167,"sfr;":120112,"shy;":173,"sim;":8764,"smt;":10922,"sol;":47,"squ;":9633,"sub;":8834,"sum;":8721,sup1:185,sup2:178,sup3:179,"sup;":8835,"tau;":964,"tcy;":1090,"tfr;":120113,"top;":8868,"ucy;":1091,"ufr;":120114,"uml;":168,uuml:252,"vcy;":1074,"vee;":8744,"vfr;":120115,"wfr;":120116,"xfr;":120117,"ycy;":1099,"yen;":165,"yfr;":120118,yuml:255,"zcy;":1079,"zfr;":120119,"zwj;":8205,AMP:38,"DD;":8517,ETH:208,"GT;":62,"Gg;":8921,"Gt;":8811,"Im;":8465,"LT;":60,"Ll;":8920,"Lt;":8810,"Mu;":924,"Nu;":925,"Or;":10836,"Pi;":928,"Pr;":10939,REG:174,"Re;":8476,"Sc;":10940,"Xi;":926,"ac;":8766,"af;":8289,amp:38,"ap;":8776,"dd;":8518,deg:176,"ee;":8519,"eg;":10906,"el;":10905,eth:240,"gE;":8807,"ge;":8805,"gg;":8811,"gl;":8823,"gt;":62,"ic;":8291,"ii;":8520,"in;":8712,"it;":8290,"lE;":8806,"le;":8804,"lg;":8822,"ll;":8810,"lt;":60,"mp;":8723,"mu;":956,"ne;":8800,"ni;":8715,not:172,"nu;":957,"oS;":9416,"or;":8744,"pi;":960,"pm;":177,"pr;":8826,reg:174,"rx;":8478,"sc;":8827,shy:173,uml:168,"wp;":8472,"wr;":8768,"xi;":958,yen:165,GT:62,LT:60,gt:62,lt:60};var FE=[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,381,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,382,376];function UE(e,t){return t&&!e.endsWith(";")?`${e}\\b(?!=)`:e}function _b(e){let t="#(?:[xX][a-fA-F\\d]+|\\d+)(?:;)?",r=Object.keys(xp).map(s=>UE(s,e));return new RegExp(`&(${t}|${r.join("|")})`,"g")}var HE=_b(!1),VE=_b(!0);function ps(e,t){if(e.indexOf("&")===-1)return e;let r=t?VE:HE;return e.replace(r,(i,s)=>{let a;return s[0]!=="#"?a=xp[s]:s[1]==="x"||s[1]==="X"?a=parseInt(s.substring(2),16):a=parseInt(s.substring(1),10),a?String.fromCodePoint(zE(a,t)):i})}var hb=0;function zE(e,t){return e===10&&!t?32:e<128?e:e<=159?FE[e-128]:e<55296?e:e<=57343?hb:e<=65535||e>=65536&&e<=131071||e>=131072&&e<=196607||e>=917504&&e<=917631||e>=917760&&e<=917999?e:hb}var WE=["SvelteElement","RegularElement","SvelteFragment","Component","SvelteComponent","SvelteSelf","SlotElement"];function Si(e){return WE.includes(e.type)}function kp(e){return["Component","SvelteComponent","SvelteSelf"].includes(e.type)}function ct(e){return e.type==="RegularElement"&&(e.name.includes("-")||e.attributes.some(t=>t.type==="Attribute"&&t.name==="is"))}function He(e=!1){return{type:"Fragment",nodes:[],metadata:{transparent:e,dynamic:!1}}}function xr(e){let{nodes:t}=e.fragment;if(t.length>0){let r=t[0],i=t[t.length-1];R_({start:r.start,end:i.end},e.name)}}function Ct(e,t,r,i,s){return{type:"Attribute",start:r,end:i,name:e,name_loc:t,value:s,metadata:{delegated:!1,needs_clsx:!1}}}var ke=class{has_state=!1;has_call=!1;has_await=!1;has_pickled_await=!1;has_member_expression=!1;has_assignment=!1;dependencies=new Set;references=new Set;#e=null;#t(){if(!this.#e){this.#e=new Set;for(let t of this.references)t.blocker&&this.#e.add(t.blocker)}return this.#e}blockers(){return z([...this.#t()])}has_blockers(){return this.#t().size>0}has_more_blockers_than(t){for(let r of this.#t())if(!t.#t().has(r))return!0;return!1}is_async(){return this.has_await||this.#t().size>0}merge(t){this.has_state||=t.has_state,this.has_call||=t.has_call,this.has_await||=t.has_await,this.has_pickled_await||=t.has_pickled_await,this.has_member_expression||=t.has_member_expression,this.has_assignment||=t.has_assignment,this.#e=null;for(let r of t.references)this.references.add(r);for(let r of t.dependencies)this.dependencies.add(r)}};function Ye(e){return e.type==="Literal"?String(e.value):e.type==="PrivateIdentifier"?"#"+e.name:e.type==="Identifier"?e.name:null}function kr(e){if(e.name==="select"||e.name==="optgroup"||e.name==="option")for(let t of Ht(e.fragment))if(t.type==="RegularElement"){if(e.name==="select"&&t.name!=="option"&&t.name!=="optgroup"||e.name==="optgroup"&&t.name!=="option"||e.name==="option")return!0}else if(t.type==="Text"){if(e.name==="select"||e.name==="optgroup")return!0}else return!0;return!1}function*Ht(e){if(e!==null)for(let t of e.nodes)switch(t.type){case"SnippetBlock":case"DebugTag":case"ConstTag":case"DeclarationTag":case"Comment":case"ExpressionTag":break;case"Text":t.data.trim()!==""&&(yield t);break;case"IfBlock":yield*Ht(t.consequent),yield*Ht(t.alternate);break;case"EachBlock":yield*Ht(t.body),yield*Ht(t.fallback??null);break;case"KeyBlock":yield*Ht(t.fragment);break;case"AwaitBlock":yield*Ht(t.pending),yield*Ht(t.then),yield*Ht(t.catch);break;case"SvelteBoundary":yield*Ht(t.fragment);break;default:yield t}}var bb={li:{direct:["li"]},dt:{descendant:["dt","dd"],reset_by:["dl"]},dd:{descendant:["dt","dd"],reset_by:["dl"]},p:{descendant:["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"]},rt:{descendant:["rt","rp"]},rp:{descendant:["rt","rp"]},optgroup:{descendant:["optgroup"]},option:{descendant:["option","optgroup"]},thead:{direct:["tbody","tfoot"]},tbody:{direct:["tbody","tfoot"]},tfoot:{direct:["tbody"]},tr:{direct:["tr","tbody"]},td:{direct:["td","th","tr"]},th:{direct:["td","th","tr"]}};function yb(e,t){let r=bb[e];return!!(r&&(!t||("direct"in r?r.direct:r.descendant).includes(t)))}var gb={...bb,form:{descendant:["form"]},a:{descendant:["a"]},button:{descendant:["button"]},h1:{descendant:["h1","h2","h3","h4","h5","h6"]},h2:{descendant:["h1","h2","h3","h4","h5","h6"]},h3:{descendant:["h1","h2","h3","h4","h5","h6"]},h4:{descendant:["h1","h2","h3","h4","h5","h6"]},h5:{descendant:["h1","h2","h3","h4","h5","h6"]},h6:{descendant:["h1","h2","h3","h4","h5","h6"]},tr:{only:["th","td","style","script","template"]},tbody:{only:["tr","style","script","template"]},thead:{only:["tr","style","script","template"]},tfoot:{only:["tr","style","script","template"]},colgroup:{only:["col","template"]},table:{only:["caption","colgroup","tbody","thead","tfoot","style","script","template"]},head:{only:["base","basefont","bgsound","link","meta","title","noscript","noframes","style","script","template"]},html:{only:["head","body","frameset"]},frameset:{only:["frame"]},"#document":{only:["html"]}};function vb(e,t,r,i){if(e.includes("-"))return null;let s=t[t.length-1],a=gb[s];if(!a)return null;if("reset_by"in a&&a.reset_by){for(let n=t.length-2;n>=0;n--)if(t[n].includes("-")||a.reset_by.includes(t[n]))return null}if("descendant"in a&&a.descendant.includes(e)){let n=r?`\`<${e}>\` (${r})`:`\`<${e}>\``,p=i?`\`<${s}>\` (${i})`:`\`<${s}>\``;return`${n} cannot be a descendant of ${p}`}return null}function Ci(e,t,r,i){if(e.includes("-")||t?.includes("-")||t==="template")return null;let s=gb[t],a=r?`\`<${e}>\` (${r})`:`\`<${e}>\``,n=i?`\`<${t}>\` (${i})`:`\`<${t}>\``;if(s){if("direct"in s&&s.direct.includes(e))return`${a} cannot be a direct child of ${n}`;if("descendant"in s&&s.descendant.includes(e))return`${a} cannot be a child of ${n}`;if("only"in s&&s.only)return s.only.includes(e)?null:`${a} cannot be a child of ${n}. \`<${t}>\` only allows these children: ${s.only.map(p=>`\`<${p}>\``).join(", ")}`}switch(e){case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":return`${a} cannot be a child of ${n}`;case"thead":case"tbody":case"tfoot":return`${a} must be the child of a \`<table>\`, not a ${n}`;case"td":case"th":return`${a} must be the child of a \`<tr>\`, not a ${n}`;case"tr":return`\`<tr>\` must be the child of a \`<thead>\`, \`<tbody>\`, or \`<tfoot>\`, not a ${n}`}return null}function Jr(e,t="or"){return e.length===1?e[0]:e.length===2?`${e[0]} ${t} ${e[1]}`:`${e.slice(0,-1).join(", ")} ${t} ${e[e.length-1]}`}function us(e){return e===32||e<=13&&e>=9?!0:e<160?!1:e===160||e===5760||e>=8192&&e<=8202||e===8232||e===8233||e===8239||e===8287||e===12288||e===65279}var GE=/(\/>|[\s"'=<>`])/y,Ep=/<\/textarea(\s[^>]*)?>/iy,xb=/["']/y,KE=/(?:"([^"]*)"|'([^'])*'|([^>\s]+))/y,XE=/^![a-zA-Z]+$/,JE=/^[a-zA-Z][a-zA-Z0-9]*:[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$/;function YE(e){return XE.test(e)||JE.test(e)?!0:Nd.test(e)}var Sp=new RegExp("^(?:\\p{Lu}[$\\u200c\\u200d\\p{ID_Continue}.]*|\\p{ID_Start}[$\\u200c\\u200d\\p{ID_Continue}]*(?:\\.[$\\u200c\\u200d\\p{ID_Continue}]+)+)$","u"),kb=new Map([["svelte:head","SvelteHead"],["svelte:options","SvelteOptions"],["svelte:window","SvelteWindow"],["svelte:document","SvelteDocument"],["svelte:body","SvelteBody"]]),ga=new Map([...kb,["svelte:element","SvelteElement"],["svelte:component","SvelteComponent"],["svelte:self","SvelteSelf"],["svelte:fragment","SvelteFragment"],["svelte:boundary","SvelteBoundary"]]);function Cp(e){let t=e.index++,r=e.current();if(e.eat("!--")){let v=e.read_until("-->");e.eat("-->",!0),e.append({type:"Comment",start:t,end:e.index,data:v});return}if(e.eat("/")){let v=Sb(e);for(e.allow_whitespace(),e.eat(">",!0),vt(v)&&X_(t);r.name!==v;){if(e.loose&&Si(r)){let E=r.attributes.at(-1);if(E?.type==="Attribute"&&E.name===`<${v}`){e.index=E.start,r.attributes.pop();break}}if(r.type==="RegularElement"){if(!e.last_auto_closed_tag||e.last_auto_closed_tag.tag!==v){let E=r.fragment.nodes[0]?.start??t;Oc({start:r.start,end:E},`</${v}>`,`</${r.name}>`)}}else e.loose||(e.last_auto_closed_tag&&e.last_auto_closed_tag.tag===v?Kh(t,v,e.last_auto_closed_tag.reason):Gh(t,v));r.end=t,e.pop(),r=e.current()}r.end=e.index,e.pop(),e.last_auto_closed_tag&&e.stack.length<e.last_auto_closed_tag.depth&&(e.last_auto_closed_tag=void 0);return}let i=Tp(e);if(i.name.startsWith("svelte:")&&!ga.has(i.name)){let v={start:t+1,end:t+1+i.name.length};I_(v,Jr(Array.from(ga.keys())))}if(!YE(i.name)&&!Sp.test(i.name)&&(!e.loose||!i.name.endsWith("."))){let v={start:t+1,end:t+1+i.name.length};j_(v)}kb.has(i.name)&&(i.name in e.meta_tags&&$_(t,i.name),r.type!=="Root"&&q_(t,i.name),e.meta_tags[i.name]=!0);let s=ga.has(i.name)?ga.get(i.name):Sp.test(i.name)||e.loose&&i.name.endsWith(".")?"Component":i.name==="title"&&ZE(e.stack)?"TitleElement":i.name==="slot"&&!QE(e.stack)?"SlotElement":"RegularElement",a=s==="RegularElement"?{type:s,start:t,end:-1,name:i.name,name_loc:i.loc,attributes:[],fragment:He(!0),metadata:{svg:!1,mathml:!1,scoped:!1,has_spread:!1,path:[],synthetic_value_node:null}}:{type:s,start:t,end:-1,name:i.name,name_loc:i.loc,attributes:[],fragment:He(!0),metadata:{}};if(e.allow_whitespace(),r.type==="RegularElement"&&yb(r.name,i.name)){let v=r.fragment.nodes[0]?.start??t;Oc({start:r.start,end:v},`<${i.name}>`,`</${r.name}>`),r.end=t,e.pop(),e.last_auto_closed_tag={tag:r.name,reason:i.name,depth:e.stack.length}}let n=[],p=e.current(),u=(i.name==="script"||i.name==="style")&&p.type==="Root",d=u?eS:tS,m;for(;m=d(e);){if(m.type==="Attribute"||m.type==="BindDirective"||m.type==="StyleDirective"||m.type==="ClassDirective"){let v=m.type==="BindDirective"?"Attribute":m.type;n.includes(v+m.name)?xh(m):m.name!=="this"&&n.push(v+m.name)}a.attributes.push(m),e.allow_whitespace()}if(a.type==="Component"&&(a.metadata.expression=new ke),a.type==="SvelteComponent"){let v=a.attributes.findIndex(l=>l.type==="Attribute"&&l.name==="this");v===-1&&C_(t);let E=a.attributes.splice(v,1)[0];Qt(E)||S_(E.start),a.expression=mt(E),a.metadata.expression=new ke}if(a.type==="SvelteElement"){let v=a.attributes.findIndex(l=>l.type==="Attribute"&&l.name==="this");v===-1&&op(t);let E=a.attributes.splice(v,1)[0];if(E.value===!0&&op(E),Qt(E))a.tag=mt(E);else{sm(E);let l=E.value[0];a.tag=l.type==="Text"?{type:"Literal",value:l.data,raw:`'${l.raw}'`,start:l.start,end:l.end}:l.expression}a.metadata.expression=new ke}if(u){e.eat(">",!0);let v=null;for(let E=p.fragment.nodes.length-1;E>=0;E--){let l=p.fragment.nodes[E];if(E===p.fragment.nodes.length-1&&l.end!==t)break;if(l.type==="Comment"){v=l;break}else if(l.type!=="Text"||l.data.trim())break}if(i.name==="script"){let E=ob(e,t,a.attributes);v&&(E.content.leadingComments=[{type:"Line",value:v.data}]),E.context==="module"?(p.module&&ip(t),p.module=E):(p.instance&&ip(t),p.instance=E)}else{let E=vp(e,t,a.attributes);E.content.comment=v,p.css&&w_(t),p.css=E}return}e.append(a);let h=e.eat("/")||vt(i.name),_=e.eat(">",!0,!1);if(!_){let v=a.attributes.at(-1);if(v?.type==="Attribute"&&v.name==="<")e.index=v.start,a.attributes.pop();else{let E=e.template[e.index-1],l=e.template[e.index-2],o=e.template[e.index];l==="{"&&E==="/"?e.index-=2:E==="{"&&(o==="#"||o==="@"||o===":")?e.index-=1:e.allow_whitespace()}}if(h||!_)a.end=e.index;else if(i.name==="textarea")a.fragment.nodes=Eb(e,()=>(Ep.lastIndex=e.index,Ep.test(e.template)),"inside <textarea>"),e.read(Ep),a.end=e.index;else if(i.name==="script"||i.name==="style"){let v=e.index,E=`</${i.name}>`,l=e.template.indexOf(E,e.index),o=e.template.slice(e.index,l===-1?e.template.length:l);e.index=l===-1?e.template.length:l;let g=e.index,k={start:v,end:g,type:"Text",data:o,raw:o};a.fragment.nodes.push(k),e.eat(`</${i.name}>`,!0),a.end=e.index}else e.stack.push(a),e.fragments.push(a.fragment)}function ZE(e){let t=e.length;for(;t--;){let{type:r}=e[t];if(r==="SvelteHead")return!0;if(r==="RegularElement"||r==="Component")return!1}return!1}function QE(e){let t=e.length;for(;t--;)if(e[t].type==="RegularElement"&&e[t].attributes.some(r=>r.type==="Attribute"&&r.name==="shadowrootmode"))return!0;return!1}function eS(e){let t=e.index,r=Tp(e,!0);if(!r.name)return null;let i=!0;if(e.eat("=")){e.allow_whitespace();let s=e.match_regex(KE);s||tp(e.index),e.index+=s.length;let a=s[0]==='"'||s[0]==="'";a&&(s=s.slice(1,-1)),i=[{start:e.index-s.length-(a?1:0),end:a?e.index-1:e.index,type:"Text",raw:s,data:ps(s,!0)}]}return e.match_regex(xb)&&dt(e.index,"="),Ct(r.name,r.loc,t,e.index,i)}function tS(e){let t=null;for(;t=rS(e);)e.root.comments.push(t),e.allow_whitespace();let r=e.index;if(e.eat("{")){if(e.allow_whitespace(),e.eat("@attach")){e.require_whitespace();let u=Ke(e);return e.allow_whitespace(),e.eat("}",!0),{type:"AttachTag",start:r,end:e.index,expression:u,metadata:{expression:new ke}}}if(e.eat("...")){let u=Ke(e);return e.allow_whitespace(),e.eat("}",!0),{type:"SpreadAttribute",start:r,end:e.index,expression:u,metadata:{expression:new ke}}}else{let u=e.read_identifier();if(u.name===""){if(e.loose&&(e.match("#")||e.match("/")||e.match("@")||e.match(":")))return null;e.loose&&e.match("}")||kh(r)}e.allow_whitespace(),e.eat("}",!0);let d={type:"ExpressionTag",start:u.start,end:u.end,expression:u,metadata:{expression:new ke}};return Ct(u.name,u.loc,r,e.index,d)}}let i=Tp(e,!0);if(!i.name)return null;let s=e.index;e.allow_whitespace();let a=i.name.indexOf(":"),n=a!==-1&&iS(i.name.slice(0,a)),p=!0;if(e.eat("="))if(e.allow_whitespace(),e.template[e.index]==="/"&&e.template[e.index+1]===">"){let u=e.index;e.index++,p=[{start:u,end:u+1,type:"Text",raw:"/",data:"/"}],s=e.index}else p=sS(e),s=e.index;else e.match_regex(xb)&&dt(e.index,"=");if(n){let[u,...d]=i.name.slice(a+1).split("|");if(u===""&&zh({start:r,end:r+a+1},i.name),n==="StyleDirective")return{start:r,end:s,type:n,name:u,name_loc:i.loc,modifiers:d,value:p,metadata:{expression:new ke}};let m=p===!0?void 0:Array.isArray(p)?p[0]:p,h=null;m&&(p.length>1||m.type==="Text"?Vh(m.start):h=m.expression);let _={start:r,end:s,type:n,name:u,name_loc:i.loc,expression:h,metadata:{expression:new ke}};if(_.modifiers=d,_.type==="TransitionDirective"){let v=i.name.slice(0,a);_.intro=v==="in"||v==="transition",_.outro=v==="out"||v==="transition"}return(_.type==="BindDirective"||_.type==="ClassDirective")&&!_.expression&&(_.expression={start:r+a+1,end:s,type:"Identifier",name:_.name}),_}return Ct(i.name,i.loc,r,s,p)}function rS(e){let t=e.index;if(e.eat("//")){let r=e.read_until(`
|
|
196
|
-
`),i=e.index;return{type:"Line",start:t,end:i,value:r,loc:{start:_e(t),end:_e(i)}}}if(e.eat("/*")){let r=e.read_until("*/");e.eat("*/");let i=e.index;return{type:"Block",start:t,end:i,value:r,loc:{start:_e(t),end:_e(i)}}}return null}function iS(e){return e==="use"?"UseDirective":e==="animate"?"AnimateDirective":e==="bind"?"BindDirective":e==="class"?"ClassDirective":e==="style"?"StyleDirective":e==="on"?"OnDirective":e==="let"?"LetDirective":e==="in"||e==="out"||e==="transition"?"TransitionDirective":!1}function sS(e){let t=e.eat("'")?"'":e.eat('"')?'"':null;if(t&&e.eat(t))return[{start:e.index-1,end:e.index-1,type:"Text",raw:"",data:""}];let r;try{r=Eb(e,()=>t?e.match(t):!!e.match_regex(GE),"in attribute value")}catch(i){if(i.code==="js_parse_error"){let s=i.position?.[0];s!==void 0&&e.template.slice(s-1,s+1)==="/>"&&(e.index=s,dt(s,t||"}"))}throw i}return r.length===0&&!t&&tp(e.index),t&&(e.index+=1),t||r.length>1||r[0].type==="Text"?r:r[0]}function Eb(e,t,r){let i=[],s=e.index;function a(n){if(n>s){let p=e.template.slice(s,n);i.push({start:s,end:n,type:"Text",raw:p,data:ps(p,!0)})}}for(;e.index<e.template.length;){let n=e.index;if(t())return a(e.index),i;if(e.eat("{")){if(e.match("#")){let d=e.index-1;e.eat("#");let m=wb(e);Mh(d,m,r)}else if(e.match("@")){let d=e.index-1;e.eat("@");let m=wb(e);F_(d,m,r)}a(e.index-1),e.allow_whitespace();let p=Ke(e);e.allow_whitespace(),e.eat("}",!0);let u={type:"ExpressionTag",start:n,end:e.index,expression:p,metadata:{expression:new ke}};i.push(u),s=e.index}else e.index++}if(e.loose)return i;Je(e.template.length)}function Sb(e,t=!1){let r=e.index;for(r>=e.template.length&&!e.loose&&Je(e.template.length);e.index<e.template.length;){let i=e.template.charCodeAt(e.index);if(us(i)||i===47||i===62||t&&(i===34||i===39||i===61))break;e.index+=1}return e.template.slice(r,e.index)}function Tp(e,t=!1){let r=e.index,i=Sb(e,t),s=e.index;return{type:"Identifier",name:i,start:r,end:s,loc:{start:_e(r),end:_e(s)}}}function wb(e){let t=e.index;for(;e.index<e.template.length;){let r=e.template.charCodeAt(e.index);if(r<97||r>122)break;e.index+=1}return e.template.slice(t,e.index)}function Tt(e){let t=e.index,r=e.index,i=e.read_identifier();if(i.name!==""){let n=Cb(e);return{...i,typeAnnotation:n}}let s=e.template[r];s!=="{"&&s!=="["&&Qh(r),r=os(e,t),e.index=r;let a=wi(_r(e,e.template.slice(0,r)+" = 1",t));return a=a.left,a.typeAnnotation=Cb(e),a.typeAnnotation&&(a.end=a.typeAnnotation.end),a}function Cb(e){let t=e.index;if(e.allow_whitespace(),!e.eat(":")){e.index=t;return}let r="_ as ",i=e.index-r.length,s=e.template.slice(0,i)+r+e.template.slice(e.index).replace(/\?\s*:/g,":"),a=wi(_r(e,s,i));if(a.type==="AssignmentExpression"){let n=a.right.start;for(;s[n]!=="=";)n-=1;a=wi(_r(e,s.slice(0,n),i))}return a.type==="SequenceExpression"&&(a=a.expressions[0]),e.index=a.end,{type:"TSTypeAnnotation",start:t,end:e.index,typeAnnotation:a.typeAnnotation}}var Pp=/\s*}/y,aS=/(?:let|const)\b/y,nS=/(?:var|interface|enum)\b/y,oS=/type\b/y,lS={"<":">"};function $p(e){let t=e.index;if(e.index+=1,e.allow_whitespace(),e.eat("#"))return pS(e);if(e.eat(":"))return uS(e);if(e.eat("@"))return dS(e);if(e.match("/")&&!e.match("/*")&&!e.match("//"))return e.eat("/"),Ap(e);let r=cS(e);if(r){e.append({type:"DeclarationTag",start:t,end:e.index,declaration:r,metadata:{expression:new ke}});return}let i=Ke(e);e.allow_whitespace(),e.eat("}",!0),e.append({type:"ExpressionTag",start:t,end:e.index,expression:i,metadata:{expression:new ke}})}function cS(e){let t=e.index,r=e.match_regex(nS);if(r&&ia({start:t,end:t+r.length}),!e.match_regex(aS)&&!e.match_regex(oS))return null;let i=e.root.comments.length,s;try{s=Y_(e,e.template,t)}catch(a){if(!e.loose)throw a;let n=pa(e.template,t,"{");if(n===void 0)throw a;e.index=n,s={type:"VariableDeclaration",kind:e.template.startsWith("const",t)?"const":"let",declarations:[{type:"VariableDeclarator",id:{type:"Identifier",name:"",start:e.index,end:e.index},init:null,start:e.index,end:e.index}],start:t,end:n}}if(s.type!=="VariableDeclaration"){if(s.type==="ExpressionStatement")return e.root.comments.length=i,null;ia({start:s.start??t,end:s.end??e.index})}return s.kind!=="let"&&s.kind!=="const"&&ia(s),e.index=s.end,e.allow_whitespace(),e.eat("}",!0),s}function pS(e){let t=e.index-2;for(;e.template[t]!=="{";)t-=1;if(e.eat("if")){e.require_whitespace();let r=e.append({type:"IfBlock",elseif:!1,start:t,end:-1,test:Ke(e),consequent:He(),alternate:null,metadata:{expression:new ke}});e.allow_whitespace(),e.eat("}",!0),e.stack.push(r),e.fragments.push(r.consequent);return}if(e.eat("each")){e.require_whitespace();let r=e.template,i=e.template.length,s;for(;!s;)try{s=Ke(e,void 0,!0)}catch(m){for(i=m.position[0]-2;i>t&&e.template.slice(i,i+2)!=="as";)i-=1;if(i<=t){if(e.loose&&(s=bp(e),s))break;throw m}e.template=r.slice(0,i)}if(e.template=r,e.allow_whitespace(),!e.match("as")){s.type==="SequenceExpression"&&(s=s.expressions[0]);let m=null,h=s.end;if(s=re(s,null,{TSAsExpression(_,v){if(_.end===s.end)return m=_,h=_.expression.end,_.expression;v.next()}}),s.end=h,m){let _=m.typeAnnotation.start-2;for(;e.template.slice(_,_+2)!=="as";)_-=1;e.index=_}}let a=null,n,p;if(e.eat("as")?(e.require_whitespace(),a=Tt(e)):e.index=s.end,e.allow_whitespace(),e.eat(",")&&(e.allow_whitespace(),n=e.read_identifier().name,n||rp(e.index),e.allow_whitespace()),e.eat("(")&&(e.allow_whitespace(),p=Ke(e,"("),e.allow_whitespace(),e.eat(")",!0),e.allow_whitespace()),!e.eat("}",!0,!1))if(e.template.slice(e.index-4,e.index)===" as "){let m=e.index;a=Tt(e),e.eat("}",!0),s={type:"Identifier",name:"",start:s.start,end:m-4}}else e.eat("}",!0);let d=e.append({type:"EachBlock",start:t,end:-1,expression:s,body:He(),context:a,index:n,key:p,metadata:null});e.stack.push(d),e.fragments.push(d.body);return}if(e.eat("await")){e.require_whitespace();let r=Ke(e);e.allow_whitespace();let i=e.append({type:"AwaitBlock",start:t,end:-1,expression:r,value:null,error:null,pending:null,then:null,catch:null,metadata:{expression:new ke}});if(e.eat("then")?(e.match_regex(Pp)||(e.require_whitespace(),i.value=Tt(e)),e.allow_whitespace(),i.then=He(),e.fragments.push(i.then)):e.eat("catch")?(e.match_regex(Pp)||(e.require_whitespace(),i.error=Tt(e)),e.allow_whitespace(),i.catch=He(),e.fragments.push(i.catch)):(i.pending=He(),e.fragments.push(i.pending)),!e.eat("}",!0,!1))if(e.template.slice(e.index-6,e.index)===" then "){let a=e.index;i.value=Tt(e),e.eat("}",!0),i.expression={type:"Identifier",name:"",start:r.start,end:a-6},i.then=i.pending,i.pending=null}else if(e.template.slice(e.index-7,e.index)===" catch "){let a=e.index;i.error=Tt(e),e.eat("}",!0),i.expression={type:"Identifier",name:"",start:r.start,end:a-7},i.catch=i.pending,i.pending=null}else e.eat("}",!0);e.stack.push(i);return}if(e.eat("key")){e.require_whitespace();let r=Ke(e);e.allow_whitespace(),e.eat("}",!0);let i=e.append({type:"KeyBlock",start:t,end:-1,expression:r,fragment:He(),metadata:{expression:new ke}});e.stack.push(i),e.fragments.push(i.fragment);return}if(e.eat("snippet")){e.require_whitespace();let r=e.read_identifier();r.name===""&&!e.loose&&rp(e.index),e.allow_whitespace();let i=e.index,s;if(e.ts&&e.match("<")){let u=e.index,d=os(e,u,lS);s=e.template.slice(u+1,d-1),e.index=d}e.allow_whitespace();let a=e.eat("(",!0,!1);if(a){let u=1;for(;e.index<e.template.length&&(!e.match(")")||u!==1);)e.match("(")&&u++,e.match(")")&&u--,e.index+=1;e.eat(")",!0)}let n=a?_r(e,e.template.slice(0,e.index)+" => {}",i):{params:[]};e.allow_whitespace(),e.eat("}",!0);let p=e.append({type:"SnippetBlock",start:t,end:-1,expression:r,typeParams:s,parameters:n.params,body:He(),metadata:{can_hoist:!1,sites:new Set}});e.stack.push(p),e.fragments.push(p.body);return}Zh(e.index)}function uS(e){let t=e.index-1,r=e.current();if(r.type==="IfBlock"){if(e.eat("else")||dt(t,"{:else} or {:else if}"),e.eat("if")&&Nh(t),r.alternate&&as(t,"{:else}"),e.allow_whitespace(),e.fragments.pop(),r.alternate=He(),e.fragments.push(r.alternate),e.eat("if")){e.require_whitespace();let i=Ke(e);e.allow_whitespace(),e.eat("}",!0);let s=t-1;for(;e.template[s]!=="{";)s-=1;let a=e.append({start:s,end:-1,type:"IfBlock",elseif:!0,test:i,consequent:He(),alternate:null,metadata:{expression:new ke}});e.stack.push(a),e.fragments.pop(),e.fragments.push(a.consequent)}else e.allow_whitespace(),e.eat("}",!0);return}if(r.type==="EachBlock"){e.eat("else")||dt(t,"{:else}"),r.fallback&&as(t,"{:else}"),e.allow_whitespace(),e.eat("}",!0),r.fallback=He(),e.fragments.pop(),e.fragments.push(r.fallback);return}if(r.type==="AwaitBlock"){if(e.eat("then")){r.then&&as(t,"{:then}"),e.eat("}")||(e.require_whitespace(),r.value=Tt(e),e.allow_whitespace(),e.eat("}",!0)),r.then=He(),e.fragments.pop(),e.fragments.push(r.then);return}if(e.eat("catch")){r.catch&&as(t,"{:catch}"),e.eat("}")||(e.require_whitespace(),r.error=Tt(e),e.allow_whitespace(),e.eat("}",!0)),r.catch=He(),e.fragments.pop(),e.fragments.push(r.catch);return}dt(t,"{:then ...} or {:catch ...}")}Ih(t)}function Ap(e){let t=e.index-1,r=e.current(),i;switch(r.type){case"IfBlock":if(i=e.eat("if",!0,!1),!i){r.end=t-1,e.pop(),Ap(e);return}for(e.allow_whitespace(),e.eat("}",!0);r.elseif;)r.end=e.index,e.stack.pop(),r=e.current();r.end=e.index,e.pop();return;case"EachBlock":i=e.eat("each",!0,!1);break;case"KeyBlock":i=e.eat("key",!0,!1);break;case"AwaitBlock":i=e.eat("await",!0,!1);break;case"SnippetBlock":i=e.eat("snippet",!0,!1);break;case"RegularElement":e.loose?i=!1:ep(t);break;default:ep(t)}if(!i){r.end=t-1,e.pop(),Ap(e);return}e.allow_whitespace(),e.eat("}",!0),r.end=e.index,e.pop()}function dS(e){let t=e.index;for(;e.template[t]!=="{";)t-=1;if(e.eat("html")){e.require_whitespace();let r=Ke(e);e.allow_whitespace(),e.eat("}",!0),e.append({type:"HtmlTag",start:t,end:e.index,expression:r,metadata:{expression:new ke}});return}if(e.eat("debug")){let r;if(e.read(Pp))r=[];else{let i=Ke(e);r=i.type==="SequenceExpression"?i.expressions:[i],r.forEach(s=>{s.type!=="Identifier"&&Uh(s.start)}),e.allow_whitespace(),e.eat("}",!0)}e.append({type:"DebugTag",start:t,end:e.index,identifiers:r});return}if(e.eat("const")){e.require_whitespace();let r=Tt(e);e.allow_whitespace(),e.eat("=",!0),e.allow_whitespace();let i=e.index,s=Ke(e),a=e.index;s.type==="SequenceExpression"&&!e.template.substring(i,s.start).includes("(")&&Bh(s),e.allow_whitespace(),e.eat("}",!0),e.append({type:"ConstTag",start:t,end:e.index,declaration:{type:"VariableDeclaration",kind:"const",declarations:[{type:"VariableDeclarator",id:r,init:s,start:r.start,end:a}],start:t+2,end:e.index-1},metadata:{expression:new ke}});return}if(e.eat("render")){e.require_whitespace();let r=Ke(e);r.type!=="CallExpression"&&(r.type!=="ChainExpression"||r.expression.type!=="CallExpression")&&o_(r),e.allow_whitespace(),e.eat("}",!0),e.append({type:"RenderTag",start:t,end:e.index,expression:r,metadata:{expression:new ke,dynamic:!1,arguments:[],path:[],snippets:new Set}});return}e_(e.index)}function Rp(e){let t=e.index;for(;e.index<e.template.length&&!e.match("<")&&!e.match("{");)e.index++;let r=e.template.slice(t,e.index);e.append({type:"Text",start:t,end:e.index,raw:r,data:ps(r,!1)})}function ds(e){return e.match("<")?Cp:e.match("{")?$p:Rp}function qp(e){let t={start:e.start,end:e.end,attributes:e.attributes};if(!e)return t;for(let r of e.attributes){r.type!=="Attribute"&&M_(r);let{name:i}=r;switch(i){case"runes":{t.runes=va(r);break}case"tag":{N_(r);break}case"customElement":{let s={},{value:a}=r,n=a===!0||Array.isArray(a)?a:[a];if(n===!0)oa(r);else if(n[0].type==="Text"){let _=wa(r);Pb(r,_),s.tag=_,t.customElement=s;break}else if(n[0].expression.type!=="ObjectExpression"){if(n[0].expression.type==="Literal"&&n[0].expression.value===null)break;oa(r)}let p=[];for(let _ of n[0].expression.properties)(_.type!=="Property"||_.computed||_.key.type!=="Identifier")&&oa(r),p.push([_.key.name,_.value]);let u=p.find(([_])=>_==="tag");if(u){let _=u[1]?.value;Pb(u,_),s.tag=_}let d=p.find(([_])=>_==="props")?.[1];if(d){d.type!=="ObjectExpression"&&hr(r),s.props={};for(let _ of d.properties){(_.type!=="Property"||_.computed||_.key.type!=="Identifier"||_.value.type!=="ObjectExpression")&&hr(r),s.props[_.key.name]={};for(let v of _.value.properties)(v.type!=="Property"||v.computed||v.key.type!=="Identifier"||v.value.type!=="Literal")&&hr(r),v.key.name==="type"?(["String","Number","Boolean","Array","Object"].indexOf(v.value.value)===-1&&hr(r),s.props[_.key.name].type=v.value.value):v.key.name==="reflect"?(typeof v.value.value!="boolean"&&hr(r),s.props[_.key.name].reflect=v.value.value):v.key.name==="attribute"?(typeof v.value.value!="string"&&hr(r),s.props[_.key.name].attribute=v.value.value):hr(r)}}let m=p.find(([_])=>_==="shadow")?.[1];m&&(m.type==="Literal"&&(m.value==="open"||m.value==="none")?s.shadow=m.value:m.type==="ObjectExpression"?s.shadow=m:L_(r));let h=p.find(([_])=>_==="extend")?.[1];h&&(s.extend=h),t.customElement=s;break}case"namespace":{let s=wa(r);s===Bs?t.namespace="svg":s===js?t.namespace="mathml":s==="html"||s==="mathml"||s==="svg"?t.namespace=s:na(r,'"html", "mathml" or "svg"');break}case"css":{let s=wa(r);s==="injected"?t.css=s:na(r,'"injected"');break}case"immutable":{t.immutable=va(r);break}case"preserveWhitespace":{t.preserveWhitespace=va(r);break}case"accessors":{t.accessors=va(r);break}default:D_(r,i)}}return t}function wa(e){let{value:t}=e;if(t===!0)return!0;let r=Array.isArray(t)?t[0]:t;return r?t.length>1?null:r.type==="Text"?r.data:r.expression.type!=="Literal"?null:r.expression.value:!0}function va(e){let t=wa(e);return typeof t!="boolean"&&na(e,"true or false"),t}var Tb="[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}-]",fS=new RegExp(`^[a-z]${Tb}*-${Tb}*$`,"u"),mS=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"];function Pb(e,t){typeof t!="string"&&lp(e),t&&(fS.test(t)?mS.includes(t)&&O_(e):lp(e))}var Ab=/<!--[^]*?-->|<script\s+(?:[^>]*|(?:[^=>'"/]+=(?:"[^"]*"|'[^']*'|[^>\s]+)\s+)*)lang=(["'])?([^"' >]+)\1[^>]*>/g,xa=class e{template;loose;index=0;css_comments=[];static forCss(t){let r=Object.create(e.prototype);return r.template=t,r.index=0,r.loose=!1,r.css_comments=[],r}ts=!1;stack=[];fragments=[];root;meta_tags={};last_auto_closed_tag;constructor(t,r){if(typeof t!="string")throw new TypeError("Template must be a string");this.loose=r,this.template=t.trimEnd();let i;do i=Ab.exec(t);while(i&&i[0][1]!=="s");Ab.lastIndex=0,this.ts=i?.[2]==="ts",this.root={css:null,js:[],start:null,end:null,type:"Root",fragment:He(),options:null,comments:[],metadata:{ts:this.ts}},this.stack.push(this.root),this.fragments.push(this.root.fragment);let s=ds;for(;this.index<this.template.length;)s=s(this)||ds;if(this.stack.length>1){let n=this.current();this.loose?n.end=this.template.length:n.type==="RegularElement"?(n.end=n.start+1,sa(n,n.name)):(n.end=n.start+1,Lh(n))}s!==ds&&Je(this.index),this.root.start=0,this.root.end=t.length;let a=this.root.fragment.nodes.findIndex(n=>n.type==="SvelteOptions");if(a!==-1){let n=this.root.fragment.nodes[a];this.root.fragment.nodes.splice(a,1),this.root.options=qp(n),xr(n),Object.defineProperty(this.root.options,"__raw__",{value:n,enumerable:!1})}}current(){return this.stack[this.stack.length-1]}eat(t,r=!1,i=!0){return this.match(t)?(this.index+=t.length,!0):(r&&(!this.loose||i)&&dt(this.index,t),!1)}match(t){return t.length===1?this.template[this.index]===t:this.template.startsWith(t,this.index)}match_regex(t){t.lastIndex=this.index;let r=t.exec(this.template);return!r||r.index!==this.index?null:r[0]}allow_whitespace(){for(;this.index<this.template.length&&us(this.template.charCodeAt(this.index));)this.index++}read(t){let r=this.match_regex(t);return r&&(this.index+=r.length),r}read_identifier(){let t=this.index,r=t,i="",s=this.template.codePointAt(this.index);if(Os(s,!0)){let a=this.index;for(r+=s<=65535?1:2;r<this.template.length;){let n=this.template.codePointAt(r);if(!Ds(n,!0))break;r+=n<=65535?1:2}i=this.template.slice(t,r),this.index=r,Br(i)&&G_(t,i)}return{type:"Identifier",name:i,start:t,end:r,loc:{start:_e(t),end:_e(r)}}}read_until(t){if(this.index>=this.template.length){if(this.loose)return"";Je(this.template.length)}let r=this.index,i=this.template.indexOf(t,r);return i!==-1?(this.index=i,this.template.slice(r,this.index)):(this.index=this.template.length,this.template.slice(r))}read_until_regex(t){if(this.index>=this.template.length){if(this.loose)return"";Je(this.template.length)}let r=this.index,i=t.exec(this.template.slice(r));return i?(this.index=r+i.index,this.template.slice(r,this.index)):(this.index=this.template.length,this.template.slice(r))}require_whitespace(){us(this.template.charCodeAt(this.index))||t_(this.index),this.index++,this.allow_whitespace()}pop(){let t=this.fragments.pop();return t?.metadata.transparent&&t.nodes.some(r=>r.type==="DeclarationTag")&&(t.metadata.transparent=!1),this.stack.pop()}append(t){return this.fragments.at(-1)?.nodes.push(t),t}};function Ip(e,t=!1){return Us(e),new xa(e,t).root}function $b(e,t){return e.params[0]?.type==="Identifier"&&e.params[0].name==="this"&&e.params.shift(),t.next()}var hS={_(e,t){let r=t.next()??e;delete r.typeAnnotation,delete r.typeParameters,delete r.typeArguments,delete r.returnType,delete r.accessibility,delete r.readonly,delete r.definite,delete r.override,r.type!=="MemberExpression"&&r.type!=="CallExpression"&&delete r.optional},Decorator(e){vi(e,"decorators (related TSC proposal is not stage 4 yet)")},ImportDeclaration(e){if(e.importKind==="type")return ce;if(e.specifiers?.length>0){let t=e.specifiers.filter(r=>r.importKind!=="type");return t.length===0?ce:{...e,specifiers:t}}return e},ExportNamedDeclaration(e,t){if(e.exportKind==="type")return ce;if(e.declaration){let r=t.next();return r?.declaration?.type==="EmptyStatement"?ce:r}if(e.specifiers){let r=e.specifiers.filter(i=>i.exportKind!=="type");return r.length===0?ce:{...e,specifiers:r}}return e},ExportDefaultDeclaration(e){return e.exportKind==="type"?ce:e},ExportAllDeclaration(e){return e.exportKind==="type"?ce:e},PropertyDefinition(e,{next:t}){return e.accessor&&vi(e,"accessor fields (related TSC proposal is not stage 4 yet)"),t()},TSAsExpression(e,t){return t.visit(e.expression)},TSSatisfiesExpression(e,t){return t.visit(e.expression)},TSNonNullExpression(e,t){return t.visit(e.expression)},TSInterfaceDeclaration(){return ce},TSTypeAliasDeclaration(){return ce},TSTypeAssertion(e,t){return t.visit(e.expression)},TSEnumDeclaration(e){vi(e,"enums")},TSParameterProperty(e,t){return(e.readonly||e.accessibility)&&t.path.at(-2)?.kind==="constructor"&&vi(e,"accessibility modifiers on constructor parameters"),t.visit(e.parameter)},TSInstantiationExpression(e,t){return t.visit(e.expression)},FunctionExpression:$b,FunctionDeclaration:$b,TSDeclareFunction(){return ce},ClassBody(e,t){let r=[];for(let i of e.body){let s=t.visit(i);(s.type!=="PropertyDefinition"||!s.declare)&&r.push(s)}return{...e,body:r}},ClassDeclaration(e,t){return e.declare?ce:(delete e.abstract,delete e.implements,delete e.superTypeArguments,delete e.superTypeParameters,t.next())},ClassExpression(e,t){return delete e.implements,delete e.superTypeArguments,delete e.superTypeParameters,t.next()},MethodDefinition(e,t){return e.abstract?ce:t.next()},VariableDeclaration(e,t){return e.declare?ce:t.next()},TSModuleDeclaration(e,t){return e.body?(e.body.body.map(i=>t.visit(i)).some(i=>i!==ce)&&vi(e,"namespaces with non-type nodes"),ce):ce}};function fs(e){return re(e,null,hS)}function Ve(e,t){if(e.type==="MemberExpression")return!e.computed&&Ve(e.object,e);if(e.type!=="Identifier")return!1;switch(t?.type){case"MemberExpression":return t.computed||e===t.object;case"MethodDefinition":return t.computed;case"MetaProperty":return t.meta===e;case"PropertyDefinition":return t.computed||e===t.value;case"Property":return t.computed||e===t.value;case"ExportSpecifier":case"ImportSpecifier":return e===t.local;case"LabeledStatement":case"BreakStatement":case"ContinueStatement":return!1;default:return!0}}function Pt(e){if(!Si(e))return null;for(let t of e.attributes)if(t.type==="Attribute"&&t.name==="slot"&&me(t))return t.value[0].data;return null}var At=Symbol("unknown"),oe=Symbol("number"),Vt=Symbol("string"),Rb=Symbol("string"),qb={BigInt:[oe],"Math.min":[oe,Math.min],"Math.max":[oe,Math.max],"Math.random":[oe],"Math.floor":[oe,Math.floor],"Math.f16round":[oe,Math.f16round],"Math.round":[oe,Math.round],"Math.abs":[oe,Math.abs],"Math.acos":[oe,Math.acos],"Math.asin":[oe,Math.asin],"Math.atan":[oe,Math.atan],"Math.atan2":[oe,Math.atan2],"Math.ceil":[oe,Math.ceil],"Math.cos":[oe,Math.cos],"Math.sin":[oe,Math.sin],"Math.tan":[oe,Math.tan],"Math.exp":[oe,Math.exp],"Math.log":[oe,Math.log],"Math.pow":[oe,Math.pow],"Math.sqrt":[oe,Math.sqrt],"Math.clz32":[oe,Math.clz32],"Math.imul":[oe,Math.imul],"Math.sign":[oe,Math.sign],"Math.log10":[oe,Math.log10],"Math.log2":[oe,Math.log2],"Math.log1p":[oe,Math.log1p],"Math.expm1":[oe,Math.expm1],"Math.cosh":[oe,Math.cosh],"Math.sinh":[oe,Math.sinh],"Math.tanh":[oe,Math.tanh],"Math.acosh":[oe,Math.acosh],"Math.asinh":[oe,Math.asinh],"Math.atanh":[oe,Math.atanh],"Math.trunc":[oe,Math.trunc],"Math.fround":[oe,Math.fround],"Math.cbrt":[oe,Math.cbrt],Number:[oe,Number],"Number.isInteger":[oe,Number.isInteger],"Number.isFinite":[oe,Number.isFinite],"Number.isNaN":[oe,Number.isNaN],"Number.isSafeInteger":[oe,Number.isSafeInteger],"Number.parseFloat":[oe,Number.parseFloat],"Number.parseInt":[oe,Number.parseInt],String:[Vt,String],"String.fromCharCode":[Vt,String.fromCharCode],"String.fromCodePoint":[Vt,String.fromCodePoint]},Ib={"Math.PI":Math.PI,"Math.E":Math.E,"Math.LN10":Math.LN10,"Math.LN2":Math.LN2,"Math.LOG10E":Math.LOG10E,"Math.LOG2E":Math.LOG2E,"Math.SQRT2":Math.SQRT2,"Math.SQRT1_2":Math.SQRT1_2},Np=class{scope;node;kind;declaration_kind;initial=null;references=[];assignments=[];legacy_dependencies=[];legacy_indirect_bindings=new Set;prop_alias=null;metadata=null;mutated=!1;reassigned=!1;blocker=null;constructor(t,r,i,s,a){this.scope=t,this.node=r,this.initial=a,this.kind=i,this.declaration_kind=s,a&&this.assignments.push({value:a,scope:t})}get updated(){return this.mutated||this.reassigned}is_function(){if(this.updated)return!1;let t=this.initial?.type;return t==="ArrowFunctionExpression"||t==="FunctionExpression"||t==="FunctionDeclaration"}},Mp=class{values;is_known=!0;has_unknown=!1;is_defined=!0;is_string=!0;is_number=!0;is_primitive=!0;is_function=!0;value=void 0;constructor(t,r,i){switch(Op.set(r,this),this.values=i,r.type){case"Literal":{this.values.add(r.value);break}case"Identifier":{let s=t.get(r.name);if(s){if(s.initial?.type==="CallExpression"&&he(s.initial,t)==="$props.id"){this.values.add(Vt);break}let a=s.kind==="prop"||s.kind==="rest_prop"||s.kind==="bindable_prop";if(s.initial?.type==="EachBlock"&&s.initial.index===r.name){this.values.add(oe);break}if(s.initial?.type==="SnippetBlock"){this.is_defined=!0,this.is_known=!1,this.values.add(At);break}if(!s.updated&&s.initial!==null&&!a){s.scope.evaluate(s.initial,this.values);break}}else if(r.name==="undefined"){this.values.add(void 0);break}this.values.add(At);break}case"BinaryExpression":{let s=t.evaluate(r.left),a=t.evaluate(r.right);if(s.is_known&&a.is_known){this.values.add(_S[r.operator](s.value,a.value));break}switch(r.operator){case"!=":case"!==":case"<":case"<=":case">":case">=":case"==":case"===":case"in":case"instanceof":this.values.add(!0),this.values.add(!1);break;case"%":case"&":case"*":case"**":case"-":case"/":case"<<":case">>":case">>>":case"^":case"|":this.values.add(oe);break;case"+":s.is_string||a.is_string?this.values.add(Vt):s.is_number&&a.is_number?this.values.add(oe):(this.values.add(Vt),this.values.add(oe));break;default:this.values.add(At)}break}case"ConditionalExpression":{let s=t.evaluate(r.test),a=t.evaluate(r.consequent),n=t.evaluate(r.alternate);if(s.is_known)for(let p of(s.value?a:n).values)this.values.add(p);else{for(let p of a.values)this.values.add(p);for(let p of n.values)this.values.add(p)}break}case"LogicalExpression":{let s=t.evaluate(r.left),a=t.evaluate(r.right);if(s.is_known){if(a.is_known){this.values.add(yS[r.operator](s.value,a.value));break}if(r.operator==="&&"&&!s.value||r.operator==="||"&&s.value||r.operator==="??"&&s.value!=null)this.values.add(s.value);else for(let n of a.values)this.values.add(n);break}for(let n of s.values)this.values.add(n);for(let n of a.values)this.values.add(n);break}case"UnaryExpression":{let s=t.evaluate(r.argument);if(s.is_known){this.values.add(bS[r.operator](s.value));break}switch(r.operator){case"!":case"delete":this.values.add(!1),this.values.add(!0);break;case"+":case"-":case"~":this.values.add(oe);break;case"typeof":this.values.add(Vt);break;case"void":this.values.add(void 0);break;default:this.values.add(At)}break}case"CallExpression":{let s=Dp(r.callee,t);if(s){if(Dt(s)){let a=r.arguments[0];switch(s){case"$state":case"$state.raw":case"$derived":a?t.evaluate(a,this.values):this.values.add(void 0);break;case"$props.id":this.values.add(Vt);break;case"$effect.tracking":this.values.add(!1),this.values.add(!0);break;case"$derived.by":if(a?.type==="ArrowFunctionExpression"&&a.body.type!=="BlockStatement"){t.evaluate(a.body,this.values);break}this.values.add(At);break;default:this.values.add(At)}break}if(Object.hasOwn(qb,s)&&r.arguments.every(a=>a.type!=="SpreadElement")){let[a,n]=qb[s],p=r.arguments.map(u=>t.evaluate(u));n&&p.every(u=>u.is_known)?this.values.add(n(...p.map(u=>u.value))):this.values.add(a);break}}this.values.add(At);break}case"TemplateLiteral":{let s=r.quasis[0].value.cooked;for(let a=0;a<r.expressions.length;a+=1){let n=t.evaluate(r.expressions[a]);if(n.is_known)s+=n.value+r.quasis[a+1].value.cooked;else{this.values.add(Vt);break}}this.values.add(s);break}case"MemberExpression":{let s=Dp(r,t);if(s&&Object.hasOwn(Ib,s)){this.values.add(Ib[s]);break}this.values.add(At);break}case"ArrowFunctionExpression":case"FunctionExpression":case"FunctionDeclaration":{this.values.add(Rb);break}default:this.values.add(At)}for(let s of this.values)this.value=s,s!==Vt&&typeof s!="string"&&(this.is_string=!1),s!==oe&&typeof s!="number"&&(this.is_number=!1),s!==Rb&&(this.is_function=!1),(s==null||s===At)&&(this.is_defined=!1),s===At&&(this.has_unknown=!0,this.is_primitive=!1);(this.values.size>1||typeof this.value=="symbol")&&(this.is_known=!1),Op.delete(r)}},Lp=class e{root;parent;#e;declarations=new Map;declarators=new Map;references=new Map;function_depth=0;tracing=null;constructor(t,r,i){this.root=t,this.parent=r,this.#e=i,this.function_depth=r?r.function_depth+(i?0:1):0}declare(t,r,i,s=null){if(this.parent){if(i==="var"&&this.#e)return this.parent.declare(t,r,i);if(i==="import")return this.parent.declare(t,r,i,s)}if(this.declarations.has(t.name)){let n=this.declarations.get(t.name);n&&n.declaration_kind!=="var"&&i!=="var"&&Ur(t,t.name)}let a=new Np(this,t,r,i,s);return Yr(a,this.function_depth),this.declarations.set(t.name,a),this.root.conflicts.add(t.name),a}child(t=!1){return new e(this.root,this,t)}generate(t){if(this.#e)return this.parent.generate(t);t=t.replace(/[^a-zA-Z0-9_$]/g,"_").replace(/^[0-9]/,"_");let r=this.root.next_counter(t),i;for(r===0?(i=t,r=1):(i=`${t}_${r}`,r++);this.references.has(i)||this.declarations.has(i)||this.root.conflicts.has(i)||Br(i);)i=`${t}_${r++}`;return this.root.set_counter(t,r),this.references.set(i,[]),this.root.conflicts.add(i),i}get(t){return this.declarations.get(t)??this.parent?.get(t)??null}get_bindings(t){let r=this.declarators.get(t);if(!r)throw new Error("No binding found for declarator");return r}owner(t){return this.declarations.has(t)?this:this.parent&&this.parent.owner(t)}reference(t,r){r=[...r];let i=this.references.get(t.name);i||this.references.set(t.name,i=[]),i.push({node:t,path:r});let s=this.declarations.get(t.name);s?s.references.push({node:t,path:r}):this.parent?this.parent.reference(t,r):this.root.conflicts.add(t.name)}evaluate(t,r=new Set){let i=Op.get(t);return i||new Mp(this,t,r)}},Op=new Map,_S={"!=":(e,t)=>e!=t,"!==":(e,t)=>e!==t,"<":(e,t)=>e<t,"<=":(e,t)=>e<=t,">":(e,t)=>e>t,">=":(e,t)=>e>=t,"==":(e,t)=>e==t,"===":(e,t)=>e===t,in:(e,t)=>e in t,instanceof:(e,t)=>e instanceof t,"%":(e,t)=>e%t,"&":(e,t)=>e&t,"*":(e,t)=>e*t,"**":(e,t)=>e**t,"+":(e,t)=>e+t,"-":(e,t)=>e-t,"/":(e,t)=>e/t,"<<":(e,t)=>e<<t,">>":(e,t)=>e>>t,">>>":(e,t)=>e>>>t,"^":(e,t)=>e^t,"|":(e,t)=>e|t},bS={"-":e=>-e,"+":e=>+e,"!":e=>!e,"~":e=>~e,typeof:e=>typeof e,void:()=>{},delete:()=>!0},yS={"||":(e,t)=>e||t,"&&":(e,t)=>e&&t,"??":(e,t)=>e??t},ka=class{conflicts=new Set;#e=new Map;next_counter(t){return this.#e.get(t)??0}set_counter(t,r){this.#e.set(t,r)}unique(t){t=t.replace(/[^a-zA-Z0-9_$]/g,"_");let r=this.#e.get(t)??0,i;for(r===0?(i=t,r=1):(i=`${t}_${r}`,r++);this.conflicts.has(i);)i=`${t}_${r++}`;return this.#e.set(t,r),this.conflicts.add(i),w(i)}};function Bp(e,t,r,i){let s=new Map,a=new Lp(t,i,!1);s.set(e,a);let n={scope:a},p=[],u=[],d=[];function m(o,g){for(let k of g)for(let S of ue(k))o.declare(S,"normal",k.type==="RestElement"?"rest_param":"param")}let h=(o,{state:g,next:k})=>{let S=g.scope.child(!0);s.set(o,S),k({scope:S})},_=(o,{state:g,next:k})=>{let S=g.scope.child();s.set(o,S),k({scope:S})},v=(o,g)=>{o.metadata.scopes={default:g.state.scope.child()},o.type==="SvelteComponent"&&g.visit(o.expression);let k=Pt(o)?g.state:{scope:o.metadata.scopes.default};for(let S of o.attributes)S.type==="LetDirective"?g.visit(S,k):g.visit(S);for(let S of o.fragment.nodes){let C=k,P=Pt(S);P!==null&&(o.metadata.scopes[P]=g.state.scope.child(),C={scope:o.metadata.scopes[P]}),g.visit(S,C)}},E=(o,{state:g,path:k,visit:S})=>{g.scope.reference(w(o.name.split(".")[0]),k),o.expression&&S(o.expression)},l=!1;re(e,n,{AwaitExpression(o,g){l||=g.path.every(({type:k})=>k!=="ArrowFunctionExpression"&&k!=="FunctionExpression"&&k!=="FunctionDeclaration"),g.next()},Identifier(o,{path:g,state:k}){let S=g.at(-1);S&&Ve(o,S)&&!S.type.startsWith("TS")&&p.push([k.scope,{node:o,path:g.slice()}])},LabeledStatement(o,{path:g,next:k}){if(g.length>1||!r||o.label.name!=="$")return k();let S=n.scope.child();if(s.set(o,S),o.body.type==="ExpressionStatement"&&o.body.expression.type==="AssignmentExpression")for(let C of ue(o.body.expression.left))C.name.startsWith("$")||d.push(C);k({scope:S})},SvelteFragment:_,SlotElement:_,SvelteElement:_,RegularElement:_,LetDirective(o,g){let k=g.state.scope,S=[];if(k.declarators.set(o,S),o.expression)for(let C of cs(o.expression)){let P=k.declare(C,"template","const");k.reference(C,[g.path[g.path.length-1],o]),S.push(P)}else{let C={name:o.name,type:"Identifier",start:o.start,end:o.end},P=k.declare(C,"template","const");k.reference(C,[g.path[g.path.length-1],o]),S.push(P)}},Component:(o,g)=>{g.state.scope.reference(w(o.name.split(".")[0]),g.path),v(o,g)},SvelteSelf:v,SvelteComponent:v,AssignmentExpression(o,{state:g,next:k}){u.push([g.scope,o.left,o.right]),k()},UpdateExpression(o,{state:g,next:k}){let S=o.argument;u.push([g.scope,S,S]),k()},ImportDeclaration(o,{state:g}){for(let k of o.specifiers)g.scope.declare(k.local,"normal","import",o)},FunctionExpression(o,{state:g,next:k}){let S=g.scope.child(!0);s.set(o,S),o.id&&S.declare(o.id,"normal","function"),m(S,o.params),k({scope:S})},FunctionDeclaration(o,{state:g,next:k}){o.id&&g.scope.declare(o.id,"normal","function",o);let S=g.scope.child(!0);s.set(o,S),m(S,o.params),k({scope:S})},ArrowFunctionExpression(o,{state:g,next:k}){let S=g.scope.child(!0);s.set(o,S),m(S,o.params),k({scope:S})},ForStatement:h,ForInStatement:h,ForOfStatement:h,SwitchStatement:h,BlockStatement(o,g){let k=g.path.at(-1);if(k?.type==="FunctionDeclaration"||k?.type==="FunctionExpression"||k?.type==="ArrowFunctionExpression"){let S=g.state.scope.child();s.set(o,S),g.next({scope:S})}else h(o,g)},ClassDeclaration(o,{state:g,next:k}){o.id&&g.scope.declare(o.id,"normal","let",o),k()},VariableDeclaration(o,{state:g,path:k,next:S}){let C=k.at(-1)?.type==="ConstTag";for(let P of o.declarations){let R=[];g.scope.declarators.set(P,R);for(let L of ue(P.id)){let H=g.scope.declare(L,C?"template":"normal",o.kind,P.init);H.metadata={is_template_declaration:!0},R.push(H)}}S()},CatchClause(o,{state:g,next:k}){if(o.param){let S=g.scope.child(!0);s.set(o,S);for(let C of ue(o.param))S.declare(C,"normal","let");k({scope:S})}else k()},EachBlock(o,{state:g,visit:k}){k(o.expression),o.fallback&&k(o.fallback);let S=g.scope.child();if(s.set(o,S),o.context){for(let C of ue(o.context)){let P=S.declare(C,"each","const"),R=!1,L=!1;re(o.context,null,{Identifier(H){R&&H===C&&(L=!0)},RestElement(H,{next:se}){let c=R;R=!0,se(),R=c}}),P.metadata={inside_rest:L}}k(o.context,{scope:S})}if(o.index){let C=o.key&&(o.key.type!=="Identifier"||!o.index||o.key.name!==o.index);S.declare(w(o.index),C?"template":"static","const",o)}o.key&&k(o.key,{scope:S});for(let C of o.body.nodes)k(C,{scope:S});o.metadata={expression:new ke,keyed:!1,contains_group_binding:!1,index:S.root.unique("$$index"),declarations:S.declarations,is_controlled:!1,transitive_deps:new Set}},AwaitBlock(o,g){if(g.visit(o.expression),o.pending&&g.visit(o.pending),o.then&&(g.visit(o.then),o.value)){let k=s.get(o.then),S=g.state.scope.child();s.set(o.value,S),g.visit(o.value,{scope:S});for(let C of ue(o.value))k.declare(C,"template","const"),S.declare(C,"normal","const")}if(o.catch&&(g.visit(o.catch),o.error)){let k=s.get(o.catch),S=g.state.scope.child();s.set(o.error,S),g.visit(o.error,{scope:S});for(let C of ue(o.error))k.declare(C,"template","const"),S.declare(C,"normal","const")}},SnippetBlock(o,g){let k=g.state;k.scope.declare(o.expression,"normal","function",o);let C=k.scope.child();s.set(o,C);for(let R of o.parameters)for(let L of ue(R))C.declare(L,"snippet","let");g.next({scope:C});let P=s.get(o.body);for(let[R,L]of P.declarations)C.declarations.has(R)&&Ur(L.node,R)},Fragment:(o,g)=>{let k=g.state.scope.child(o.metadata.transparent);s.set(o,k),g.next({scope:k})},BindDirective(o,g){if(o.expression.type!=="SequenceExpression"){let k=o.expression;u.push([g.state.scope,k,k])}g.next()},TransitionDirective:E,AnimateDirective:E,UseDirective:E,StyleDirective(o,{path:g,state:k,next:S}){o.value===!0&&k.scope.reference(w(o.name),g.concat(o)),S()}});for(let o of d)a.get(o.name)||a.declare(o,"legacy_reactive","let");for(let[o,{node:g,path:k}]of p)o.reference(g,k);for(let[o,g,k]of u)for(let S of Ut(g)){let C=Ie(S),P=C&&o.get(C.name);P!==null&&C!==P.node&&(C===S?(P.reassigned=!0,P.assignments.push({value:k,scope:o})):P.mutated=!0)}return{has_await:l,scope:a,scopes:s}}function Ti(e,{next:t,state:r}){let i=r.scopes.get(e);t(i!==void 0&&i!==r.scope?{...r,scope:i}:r)}function he(e,t){if(!e||e.type!=="CallExpression")return null;let r=Dp(e.callee,t);return!r||!Dt(r)?null:r}function Dp(e,t){let r=e,i="";for(;r.type==="MemberExpression";){if(r.computed||r.property.type!=="Identifier")return null;i="."+r.property.name+i,r=r.object}return r.type==="CallExpression"&&r.callee.type==="Identifier"&&(i="()"+i,r=r.callee),r.type!=="Identifier"||t.get(r.name)!==null?null:r.name+i}function $t(e,t){if(!e||e.type==="Literal"||e.type==="TemplateLiteral"||e.type==="ArrowFunctionExpression"||e.type==="FunctionExpression"||e.type==="UnaryExpression"||e.type==="BinaryExpression"||e.type==="Identifier"&&e.name==="undefined")return!1;if(e.type==="Identifier"&&t!==null){let r=t.get(e.name);if(r!==null&&!r.reassigned&&r.initial!==null&&r.initial.type!=="FunctionDeclaration"&&r.initial.type!=="ClassDeclaration"&&r.initial.type!=="ImportDeclaration"&&r.initial.type!=="EachBlock"&&r.initial.type!=="SnippetBlock")return $t(r.initial,null)}return!0}function Yr(e,t){if(!e)return;let r=e.declaration_kind;if(r!=="synthetic"&&r!=="param"&&r!=="rest_param"&&(!t||t<=1)){let i=e.node;i.name==="$"?$m(i):i.name.startsWith("$")&&!(e.initial?.type==="ImportDeclaration"&&e.initial.importKind==="type")&&Rm(i)}}function ms(e){let t=e.reduce((n,p)=>{let[u,d]=p;return n.has(u)||n.set(u,[]),n.has(d)||n.set(d,[]),n.get(u).push(d),n},new Map),r=new Set,i=new Set,s=[];function a(n){r.add(n),i.add(n),t.get(n)?.forEach(p=>{r.has(p)?i.has(p)&&s.push([...i,p]):a(p)}),i.delete(n)}return t.forEach((n,p)=>{r.has(p)||a(p)}),s[0]}var gS=/^-((webkit)|(moz)|(o)|(ms))-/,Nb=/^[\s,;}]$/;function jp(e){return e.replace(gS,"")}var Pi=e=>jp(e.name)==="keyframes";var hs={};function Er(e,t,r,i=!1){if(!r.has(hs))if(e.type==="Literal")r.add(String(e.value));else if(e.type==="ConditionalExpression")Er(e.consequent,t,r,i),Er(e.alternate,t,r,i);else if(e.type==="LogicalExpression")if(e.operator==="&&"){let s=new Set;if(Er(e.left,t,s,i),s.has(hs))(!t||!i)&&(r.add(""),r.add(!1),r.add(NaN),r.add(0));else for(let a of s)!a&&a!=null&&(!t||!i)&&r.add(a);Er(e.right,t,r,i)}else Er(e.left,t,r,i),Er(e.right,t,r,i);else if(t&&e.type==="ArrayExpression")for(let s of e.elements)s&&Er(s,t,r,!0);else if(t&&e.type==="ObjectExpression")for(let s of e.properties)s.type==="Property"&&!s.computed&&(s.key.type==="Identifier"||s.key.type==="Literal")?r.add(s.key.type==="Identifier"?s.key.name:String(s.key.value)):r.add(hs);else r.add(hs)}function Mb(e,t){let r=new Set;return e.type==="Text"?r.add(e.data):Er(e.expression,t,r),r.has(hs)?null:[...r].map(i=>String(i))}function Lb(e){let t=[];for(;e;)t.push(e),e=e.metadata.parent_rule;return t}function _s(e){let t=e.selectors[0];return t.type==="PseudoClassSelector"&&t.name==="global"&&(t.args===null||e.selectors.every(r=>bs(r)||r.type==="PseudoElementSelector"))}function bs(e){return e.type==="PseudoClassSelector"&&(e.name!=="has"&&e.name!=="is"&&e.name!=="where"&&(e.name!=="not"||e.args===null||e.args.children.every(t=>t.children.length===1))||e.args===null||e.args.children.every(t=>t.children.every(r=>_s(r))))}function Ob(e){let t=e.selectors[0];return t.type==="PseudoClassSelector"&&t.name==="global"&&(t.args===null||e.selectors.every(r=>r.type==="PseudoClassSelector"||r.type==="PseudoElementSelector"))}function vS(e){return e.type==="PseudoClassSelector"&&e.name==="global"&&e.args===null}function Db(e){return e.filter(t=>t.type==="Rule").every(t=>t.metadata.has_global_selectors)}function wS(e){return e.some(t=>t.type==="Rule"&&t.metadata.is_global_block)}var xS={Atrule(e,t){Pi(e)&&(!e.prelude.startsWith("-global-")&&!wS(t.path)?t.state.keyframes.push(e.prelude):e.prelude.startsWith("-global-")&&(t.state.analysis.css.has_global||=Db(t.path))),t.next()},ComplexSelector(e,t){t.next();{let r=e.children.find(_s);if(r){t.path.at(-2)?.type==="PseudoClassSelector"&&!r.selectors[0].args&&dh(r.selectors[0]);let s=e.children.indexOf(r);if(r.selectors[0].args!==null&&s!==0&&s!==e.children.length-1)for(let a=s+1;a<e.children.length;a++)_s(e.children[a])||fh(r.selectors[0])}}for(let r of e.children)for(let i=0;i<r.selectors.length;i++){let s=r.selectors[i];s.type==="PseudoClassSelector"&&s.name==="global"&&(s.args?.children[0].children[0]?.selectors[0].type==="TypeSelector"&&i!==0&&hh(s),r.selectors[i+1]?.type==="TypeSelector"&&bh(r.selectors[i+1]),s.args!==null&&s.args.children.length>1&&(e.children.length>1||r.selectors.length>1)&&mh(s))}if(e.metadata.rule=t.state.rule,e.metadata.is_global=e.children.every(({metadata:r})=>r.is_global||r.is_global_like),e.metadata.used||=e.metadata.is_global,e.metadata.rule?.metadata.parent_rule&&e.children[0]?.selectors[0]?.type==="NestingSelector"){let r=e.children[0]?.selectors[1],i=r?.type!=="PseudoClassSelector"||bs(r),s=e.metadata.rule.metadata.parent_rule.prelude.children.some(a=>a.children.length===1&&a.children[0].metadata.is_global);i&&s&&(e.metadata.used=!0)}},RelativeSelector(e,t){let r=t.path.at(-1);if(e.combinator!=null&&!t.state.rule?.metadata.parent_rule&&r.children[0]===e&&t.path.at(-3)?.type!=="PseudoClassSelector"&&ea(e.combinator),e.metadata.is_global=e.selectors.length>=1&&_s(e),e.selectors.length>=1&&e.selectors.every(i=>i.type==="PseudoClassSelector"||i.type==="PseudoElementSelector")){let i=e.selectors[0];e.metadata.is_global_like||=i.type==="PseudoClassSelector"&&i.name==="host"||i.type==="PseudoElementSelector"&&["view-transition","view-transition-group","view-transition-old","view-transition-new","view-transition-image-pair"].includes(i.name)}if(e.metadata.is_global_like||=e.selectors.some(i=>i.type==="PseudoClassSelector"&&i.name==="root")&&!e.selectors.some(i=>i.type==="PseudoClassSelector"&&i.name==="has"),e.metadata.is_global_like||e.metadata.is_global)for(let i of e.selectors)re(i,null,{ComplexSelector(s,a){s.metadata.used=!0,a.next()}});t.next()},Rule(e,t){e.metadata.parent_rule=t.state.rule;for(let i of e.prelude.children){let s=!1;for(let a=0;a<i.children.length;a++){let n=i.children[a],p=n.selectors.findIndex(vS);if(s&&(n.metadata.is_global_like=!0),p===0)if(n.selectors.length>1&&a===0&&e.metadata.parent_rule===null)Yc(n.selectors[1]);else{e.metadata.is_global_block=s=!0;for(let m=1;m<n.selectors.length;m++)re(n.selectors[m],null,{ComplexSelector(h){h.metadata.used=!0}});n.combinator&&n.combinator.name!==" "&&ch(n,n.combinator.name);let u=e.block.children.find(m=>m.type==="Declaration"),d=i.children.length===1&&i.children[0].selectors.length===1;d&&e.prelude.children.length>1&&Jc(e.prelude),u&&e.prelude.children.length===1&&d&&ph(u)}else p!==-1&&uh(n.selectors[p])}e.metadata.is_global_block&&!s&&Jc(e.prelude)}let r={...t.state,rule:e};t.visit(e.prelude,r);for(let i of e.prelude.children)e.metadata.has_global_selectors||=i.metadata.is_global,e.metadata.has_local_selectors||=!i.metadata.is_global;t.state.analysis.css.has_global||=e.metadata.has_global_selectors&&e.block.children.filter(i=>i.type==="Declaration").length>0&&Db(t.path),t.visit(e.block,r)},NestingSelector(e,t){let r=t.state.rule,i=r.metadata.parent_rule;if(i)i.metadata.is_global_block&&!i.metadata.parent_rule&&i.prelude.children[0].children.length===1&&i.prelude.children[0].children[0].selectors.length===1&&Yc(e);else{let s=r.prelude.children,a=s[0].children[0].selectors;(s.length>1||a.length>1||a[0].type!=="PseudoClassSelector"||a[0].name!=="global"||a[0].args?.children[0]?.children[0].selectors[0]!==e)&&_h(e)}t.next()},PseudoElementSelector(){}};function Bb(e,t){let r={keyframes:t.css.keyframes,rule:null,analysis:t};re(e,r,xS)}var ys=0,Vp=1,Rt=0,vs=1,kS=new Map([["details",["open"]],["dialog",["open"]]]),ES=new Set(["accept-charset","autocapitalize","autocomplete","behavior","charset","crossorigin","decoding","dir","direction","draggable","enctype","enterkeyhint","fetchpriority","formenctype","formmethod","formtarget","hidden","http-equiv","inputmode","kind","loading","method","preload","referrerpolicy","rel","rev","role","rules","scope","shape","spellcheck","target","translate","type","valign","wrap"]),Fb={type:"Combinator",name:" ",start:-1,end:-1},SS={type:"RelativeSelector",start:-1,end:-1,combinator:null,selectors:[{type:"NestingSelector",name:"&",start:-1,end:-1}],metadata:{is_global:!1,is_global_like:!1,scoped:!1}},CS={type:"RelativeSelector",start:-1,end:-1,combinator:null,selectors:[{type:"TypeSelector",name:"*",start:-1,end:-1}],metadata:{is_global:!1,is_global_like:!1,scoped:!1}},TS=new Set;function PS(e){return e.metadata.path.some(t=>t.type==="SvelteHead")}function Ub(e,t){re(e,null,{Rule(r,i){r.metadata.is_global_block?i.visit(r.prelude):i.next()},ComplexSelector(r){let i=Hb(r),s=r.metadata.rule;Up(i,0,i.length,s)&&(r.metadata.used=!0);for(let a of t)TS.clear(),!PS(a)&&Sr(i,s,a,vs)&&(r.metadata.used=!0)}})}function Hb(e){let t=Ea(e);if(e.metadata.rule?.metadata.parent_rule&&t.length>0){let r=!1;for(let i of t)if(re(i,null,{NestingSelector(){r=!0}}),r)break;r||(t[0].combinator===null&&(t[0]={...t[0],combinator:Fb}),t.unshift(SS))}return t}function Ea(e){let t=e.children.findLastIndex(({metadata:r,selectors:i})=>{let s=i[0];return!r.is_global_like&&!(s.type==="PseudoClassSelector"&&s.name==="global"&&s.args===null)&&!r.is_global});return e.children.slice(0,t+1).map(r=>!r.selectors.find(s=>s.type==="PseudoClassSelector"&&s.name==="root")||r.metadata.is_global_like?r:{...r,selectors:r.selectors.filter(s=>s.type==="PseudoClassSelector"&&s.name==="has")})}function Sr(e,t,r,i,s=0,a=e.length){if(s>=a)return!1;let n=i===Rt?s:a-1,p=e[n],u=i===Rt?s+1:s,d=i===Rt?a:a-1,m=RS(p,t,r,i)&&AS(p,e,u,d,t,r,i);return m&&(Ob(p)||(p.metadata.scoped=!0),r.metadata.scoped=!0),m}function AS(e,t,r,i,s,a,n){let p=n==Rt?r<i?t[r].combinator:void 0:e.combinator;if(!p)return!0;switch(p.name){case" ":case">":{let u=p.name===">",d=n===Rt?IS(a,u):Vb(a,u),m=!1;for(let h of d)Sr(t,s,h,n,r,i)&&(m=!0);return m||n===vs&&(!u||d.length===0)&&Up(t,r,i,s)}case"+":case"~":{let u=Wb(a,n,p.name==="+"),d=!1;for(let m of u.keys())m.type==="RenderTag"||m.type==="SlotElement"||m.type==="Component"?i-r===1&&t[r].metadata.is_global&&(d=!0):Sr(t,s,m,n,r,i)&&(d=!0);return d||n===vs&&zb(a)===null&&Up(t,r,i,s)}default:return!0}}function Up(e,t,r,i){for(let s=t;s<r;s++)if(!Sa(e[s],i))return!1;return!0}function Sa(e,t){if(e.metadata.is_global||e.metadata.is_global_like)return!0;let r=!1;for(let i of e.selectors){let s=null,a=!1,n=t;i.type==="PseudoClassSelector"&&((i.name==="is"||i.name==="where")&&i.args?s=i.args:a=bs(i)),i.type==="NestingSelector"&&(n=t.metadata.parent_rule,s=n.prelude);let p=!!s?.children.some(u=>u.children.every(d=>Sa(d,n)));if(r||=p,!p&&!a)return!1}return r||e.selectors.length===0}var $S=/\\(.)/g;function RS(e,t,r,i){let s;for(let a of e.selectors){if(a.type==="PseudoClassSelector"&&a.name==="has"&&a.args){if(s===void 0){let d=Lb(t);s=d.some(m=>m.prelude.children.some(h=>h.children.some(_=>Sa(_,m))))||d[d.length-1].prelude.children.some(m=>m.children.some(h=>h.selectors.some(_=>_.type==="PseudoClassSelector"&&(_.name==="root"||_.name==="global"&&_.args))))}let p=a.args.children,u=!1;for(let d of p){let[m,...h]=Ea(d);if(!m){d.metadata.used=!0,u=!0;continue}if(s){let v=[m.combinator?{...m,combinator:null}:m,...h];Sr(v,t,r,Rt)&&(d.metadata.used=!0,u=!0)}let _=[CS,m.combinator?m:{...m,combinator:Fb},...h];Sr(_,t,r,Rt)&&(d.metadata.used=!0,u=!0)}if(!u)return!1;continue}if(a.type==="Percentage"||a.type==="Nth")continue;let n=a.name.includes("\\")?a.name.replace($S,"$1"):a.name;switch(a.type){case"PseudoClassSelector":{if(n==="host"||n==="root")return!1;if(n==="global"&&a.args!==null&&e.selectors.length===1){let u=a.args.children[0];return Sr(u.children,t,r,vs)}if(n==="global"&&a.args===null)return!0;if(n==="not"&&a.args){for(let p of a.args.children){re(p,null,{ComplexSelector(d,m){d.metadata.used=!0,m.next()}});let u=Ea(p);if(p.children.length>1){for(let m of u)m.metadata.scoped=!0;let d=r;for(;d;)d.metadata.scoped=!0,d=zb(d)}}break}if((n==="is"||n==="where")&&a.args){let p=!1;for(let u of a.args.children){let d=Ea(u);if(d.length===0)u.metadata.used=!0,p=!0;else if(Sr(d,t,r,vs))u.metadata.used=!0,p=!0;else if(u.children.length>1&&(n=="is"||n=="where")){u.metadata.used=!0,p=!0;for(let h of d)h.metadata.scoped=!0}}if(!p)return!1}break}case"PseudoElementSelector":break;case"AttributeSelector":{if(!kS.get(r.name.toLowerCase())?.includes(a.name.toLowerCase())&&!Fp(r,a.name,a.value&&qS(a.value),a.matcher,(a.flags?.includes("i")??!1)||!a.flags?.includes("s")&&ES.has(a.name.toLowerCase())))return!1;break}case"ClassSelector":{if(!Fp(r,"class",n,"~=",!1))return!1;break}case"IdSelector":{if(!Fp(r,"id",n,"=",!1))return!1;break}case"TypeSelector":{if(r.name.toLowerCase()!==n.toLowerCase()&&n!=="*"&&r.type!=="SvelteElement")return!1;break}case"NestingSelector":{let p=!1,u=t.metadata.parent_rule;for(let d of u.prelude.children)(Sr(Hb(d),u,r,i)||d.children.every(m=>Sa(m,u)))&&(d.metadata.used=!0,p=!0);if(!p)return!1;break}}}return!0}function jb(e,t,r,i){switch(r&&(t=t.toLowerCase(),i=i.toLowerCase()),e){case"=":return i===t;case"~=":return i.split(/\s/).includes(t);case"|=":return`${i}-`.startsWith(`${t}-`);case"^=":return i.startsWith(t);case"$=":return i.endsWith(t);case"*=":return i.includes(t);default:throw new Error("this shouldn't happen")}}function Fp(e,t,r,i,s){let a=t.toLowerCase();for(let n of e.attributes){if(n.type==="SpreadAttribute"||n.type==="BindDirective"&&n.name===t||n.type==="StyleDirective"&&a==="style")return!0;if(n.type==="ClassDirective"&&a==="class")if(i==="~="){if(n.name===r)return!0}else return!0;if(n.type!=="Attribute"||n.name.toLowerCase()!==a)continue;if(n.value===!0)return i===null;if(r===null)return!0;if(me(n)){let m=jb(i,r,s,n.value[0].data);if(!m&&(a==="class"||a==="style"))continue;return m}let p=vr(n.value),u=new Set,d=[];for(let m of p){let h=Mb(m,a==="class");if(!h)return!0;if(d.length>0){let _=[],v=[];if(h.forEach(E=>{hd.test(E)?_.push(E):v.push(E)}),v.length>0){_.length>0&&d.forEach(l=>u.add(l));let E=[];d.forEach(l=>{v.forEach(o=>{E.push(l+o)})}),d=E,_.forEach(l=>{vc.test(l)?u.add(l):d.push(l)});continue}else d.forEach(E=>u.add(E)),d=[]}if(h.forEach(_=>{vc.test(_)?u.add(_):d.push(_)}),d.length<h.length&&d.push(" "),d.length>20)return!0}d.forEach(m=>u.add(m));for(let m of u)if(jb(i,r,s,m))return!0}return!1}function qS(e){return e[0]===e[e.length-1]&&e[0]==="'"||e[0]==='"'?e.slice(1,e.length-1):e}function Vb(e,t,r=new Set){let i=[],s=e.metadata.path,a=s.length;for(;a--;){let n=s[a];if(n.type==="SnippetBlock"){if(!r.has(n)){r.add(n);for(let p of n.metadata.sites)i.push(...Vb(p,t,r))}break}if(n.type==="RegularElement"||n.type==="SvelteElement"){if(n.type==="RegularElement"&&n.name==="option"){let p=i.length===0,u=s.findLast((d,m)=>d.type==="RegularElement"&&d.name==="select"&&m<a);if(u&&(!t||p)){let d=null;if(re(u,null,{RegularElement(m,h){if(m.name==="selectedcontent"){d=m,h.stop();return}h.next()}}),t&&p&&d)return[d,n];d&&i.push(d)}}if(i.push(n),t)break}}return i}function IS(e,t,r=new Set){let i=[];function s(a){re(a,null,{_(n,p){if(n.type==="RegularElement"||n.type==="SvelteElement")i.push(n),t||p.next();else if(n.type==="RenderTag")for(let u of n.metadata.snippets)r.has(u)||(r.add(u),s(u.body));else p.next()}})}if(s(e.type==="RenderTag"?e:e.fragment),e.type==="RegularElement"&&e.name==="selectedcontent"){let n=e.metadata.path.findLast(p=>p.type==="RegularElement"&&p.name==="select");n&&re(n,{inside_option:!1},{_(p,u){p.type==="RegularElement"&&p.name==="option"?u.next({inside_option:!0}):u.state.inside_option?s(p):u.next()}})}return i}function zb(e){let t=e.metadata.path,r=t.length;for(;r--;){let i=t[r];if(i.type==="RegularElement"||i.type==="SvelteElement")return i}return null}function Wb(e,t,r,i=new Set){let s=new Map,a=e.metadata.path,n=e,p=a.length;for(;p--;){let u=a[p--],d=u.nodes.indexOf(n)+(t===Rt?1:-1);for(;d>=0&&d<u.nodes.length;){let m=u.nodes[d];if(m.type==="RegularElement"){if(!m.attributes.some(_=>_.type==="Attribute"&&_.name.toLowerCase()==="slot")&&(s.set(m,Vp),r))return s}else if(Hp(m)||m.type==="Component"){(m.type==="SlotElement"||m.type==="Component")&&s.set(m,ys);let h=gs(m,t,r);if(Zr(h,s),r&&m.type!=="Component"&&Ca(h))return s}else if(m.type==="SvelteElement")s.set(m,ys);else if(m.type==="RenderTag"){s.set(m,ys);for(let h of m.metadata.snippets)Zr(gs(h,t,r),s)}d=t===Rt?d+1:d-1}if(n=a[p],!n)break;if(!(n.type==="Component"||n.type==="SvelteComponent"||n.type==="SvelteSelf")){if(n.type==="SnippetBlock"){if(i.has(n))break;i.add(n);for(let m of n.metadata.sites){let h=Wb(m,t,r,i);if(Zr(h,s),r&&n.metadata.sites.size===1&&Ca(h))return s}}if(!Hp(n))break;n.type==="EachBlock"&&u===n.body&&Zr(gs(n,t,r),s)}}return s}function gs(e,t,r,i=new Set){let s=[];switch(e.type){case"EachBlock":s.push(e.body,e.fallback);break;case"IfBlock":s.push(e.consequent,e.alternate);break;case"AwaitBlock":s.push(e.pending,e.then,e.catch);break;case"KeyBlock":case"SlotElement":s.push(e.fragment);break;case"SnippetBlock":if(i.has(e))return new Map;i.add(e),s.push(e.body);break;case"Component":s.push(e.fragment,...[...e.metadata.snippets].map(p=>p.body));break}let a=new Map,n=e.type!=="SlotElement"&&e.type!=="SnippetBlock";for(let p of s){if(p==null){n=!1;continue}let u=MS(p.nodes,t,r,i);n&&=Ca(u),Zr(u,a)}if(!n)for(let p of a.keys())a.set(p,ys);return a}function Ca(e){if(e.size===0)return!1;for(let t of e.values())if(t===Vp)return!0;return!1}function Zr(e,t){e.forEach((r,i)=>{t.set(i,NS(r,t.get(i)))})}function NS(e,t){return t===void 0||e>t?e:t}function MS(e,t,r,i){let s=new Map,a=t===Rt?0:e.length-1;for(;a>=0&&a<e.length;){let n=e[a];if(n.type==="RegularElement"){if(s.set(n,Vp),r)break}else if(n.type==="SvelteElement")s.set(n,ys);else if(n.type==="RenderTag")for(let p of n.metadata.snippets)Zr(gs(p,t,r,i),s);else if(Hp(n)){let p=gs(n,t,r,i);if(Zr(p,s),r&&Ca(p))break}a=t===Rt?a+1:a-1}return s}function Hp(e){return e.type==="IfBlock"||e.type==="EachBlock"||e.type==="AwaitBlock"||e.type==="KeyBlock"||e.type==="SlotElement"}function Gb(e){re(e,{stylesheet:e},LS)}var LS={Atrule(e,t){Pi(e)||t.next()},PseudoClassSelector(e,t){(e.name==="is"||e.name==="where")&&t.next()},PseudoElementSelector(){},ComplexSelector(e,t){if(!e.metadata.used&&(t.path.at(-2)?.type!=="PseudoClassSelector"||t.path.at(-4)?.metadata.used)){let r=t.state.stylesheet.content,i=r.styles.substring(e.start-r.start,e.end-r.start);Hf(e,i)}t.next()},Rule(e,t){e.metadata.is_global_block?t.visit(e.prelude):t.next()}};function Ai(e,t){if(t.state.expression)for(let[r]of t.state.scope.references){let i=t.state.scope.get(r);i&&i.scope!==t.state.scope&&t.state.expression.references.add(i)}t.next({...t.state,function_depth:Math.max(t.state.scope.function_depth,t.state.function_depth)+1,expression:null})}function Kb(e,t){Ai(e,t)}function $i(e,t,r){if(zp(e,t,r.state.scope,e.type==="BindDirective"),t.type==="Identifier"){let i=r.state.scope.get(t.name);r.state.analysis.runes&&(r.state.analysis.props_id!=null&&i?.node===r.state.analysis.props_id&&Vc(e,"$props.id()"),i?.kind==="each"&&qm(e)),i?.kind==="snippet"&&sh(e)}if(t.type==="MemberExpression"&&t.object.type==="ThisExpression"){let i=t.computed&&t.property.type!=="Literal"?null:Ye(t.property),s=i!==null&&r.state.state_fields?.get(i);if(s&&s.node.type==="AssignmentExpression"&&e!==s.node){let a=r.path.length;for(;a--;){let n=r.path[a];if(n.type==="FunctionDeclaration"||n.type==="FunctionExpression"||n.type==="ArrowFunctionExpression"){let p=er(r.path,a-1);p.type==="MethodDefinition"&&p.kind==="constructor"&&e.start<s.node.start&&Ys(e);break}}}}}function zp(e,t,r,i){if(t.type==="ArrayPattern")for(let s of t.elements)s&&zp(e,s,r,i);else if(t.type==="ObjectPattern")for(let s of t.properties)s.type==="Property"&&zp(e,s.value,r,i);else if(t.type==="Identifier"){let s=r.get(t.name);if(s?.declaration_kind==="import"||s?.declaration_kind==="const"&&s.kind!=="each"){let a=s.declaration_kind==="import"?"import":"constant";i?Pm(e,a):Vc(e,a)}}}function ze(e,t,r){t.analysis.source[e.start+1]!==r&&ns({start:e.start,end:e.start+5},r)}function at(e,t){e&&e.nodes.length===1&&e.nodes[0].type==="Text"&&!e.nodes[0].raw.trim()&&Jf(e.nodes[0])}function Xb(e,t){let r=ue(e.id);for(let i of r)t.ast_type==="instance"&&t.scope===t.analysis.instance.scope&&t.analysis.module.scope.get(i.name)?.declaration_kind==="import"&&Am(e.id)}function ws(e,t){let r=e;for(;r.type==="MemberExpression";)r=r.object;if(r.type!=="Identifier")return!1;let i=t.get(r.name);return i?i.kind==="store_sub"?ws({name:r.name.slice(1),type:"Identifier"},t):i.declaration_kind!=="import"&&i.kind!=="prop"&&i.kind!=="bindable_prop"&&i.kind!=="rest_prop":!0}function ir(e,t){if(e.type==="Literal")return!0;if(e.type==="CallExpression"){if(!ir(e.callee,t))return!1;for(let i of e.arguments)if(!ir(i.type==="SpreadElement"?i.argument:i,t))return!1;return!0}if(e.type!=="Identifier"&&e.type!=="MemberExpression"||he(y(e),t.state.scope)==="$effect.tracking")return!1;let r=e;for(;r.type==="MemberExpression";)r=r.object;if(!r)return!1;if(r.type==="Identifier"){if(t.state.scope.get(r.name)===null)return!0}else if(ir(r,t))return!0;return!1}function Ta(e,t,r){let i=t.get(r);i&&(i.kind==="derived"&&Ks(e),(i.kind==="state"||i.kind==="raw_state")&&i.reassigned&&Zs(e))}function Cr(e,t){let r=mt(e);r.type==="Identifier"&&r.name===e.name&&!t.state.scope.get(r.name)&&zf(e,e.name)}function Jb(e,t){if($i(e,e.left,t),t.state.reactive_statement&&(e.left.type==="MemberExpression"?Ie(e.left):e.left)!==null)for(let i of ue(e.left)){let s=t.state.scope.get(i.name);s&&t.state.reactive_statement.assignments.add(s)}t.state.expression&&(t.state.expression.has_assignment=!0),t.next()}function Yb(e,t){t.next({...t.state,expression:e.metadata.expression}),e.metadata.expression.has_await&&xt(e)}function ae(e){let t=e.length;for(;t--;){let r=e[t];if(r.type==="Fragment"){if(r.metadata.dynamic)return;r.metadata.dynamic=!0}}}function Zb(e,t){ae(t.path),t.next({...t.state,expression:e.metadata.expression}),e.metadata.expression.has_await&&xt(e)}function Qb(e,t){t.next();let r=t.path.at(-1);if(r.type==="RegularElement"&&e.name==="value"&&r.name==="option"&&ae(t.path),Pe(e)&&ae(t.path),ci(e.name)&&ae(t.path),e.name==="class"&&!Array.isArray(e.value)&&e.value!==!0&&e.value.expression.type!=="Literal"&&e.value.expression.type!=="TemplateLiteral"&&e.value.expression.type!=="BinaryExpression"&&(ae(t.path),e.metadata.needs_clsx=!0),e.value!==!0){for(let i of vr(e.value))i.type==="ExpressionTag"&&(i.expression.type==="FunctionExpression"||i.expression.type);if(Pe(e)){let i=t.path.at(-1);(i?.type==="RegularElement"||i?.type==="SvelteElement")&&(t.state.analysis.uses_event_attributes=!0),e.metadata.delegated=i?.type==="RegularElement"&&Pd(e.name.slice(2))}}}function ey(e,t){if(at(e.pending,t),at(e.then,t),at(e.catch,t),t.state.analysis.runes){if(ze(e,t.state,"#"),e.value){let r=e.value.start,i=t.state.analysis.source.substring(r-10,r).match(/{(\s*):then\s+$/);i&&i[1]!==""&&ns({start:r-10,end:r},":")}if(e.error){let r=e.error.start,i=t.state.analysis.source.substring(r-10,r).match(/{(\s*):catch\s+$/);i&&i[1]!==""&&ns({start:r-10,end:r},":")}}ae(t.path),t.visit(e.expression,{...t.state,expression:e.metadata.expression}),e.pending&&t.visit(e.pending),e.then&&t.visit(e.then),e.catch&&t.visit(e.catch)}function ty(e,t){let r=t.state.ast_type==="instance"&&t.state.function_depth===1;if(OS(t.path,t.state.derived_function_depth===t.state.function_depth)){let s=t.state.expression;(s.has_pickled_await||!DS(t.path,e))&&(t.state.analysis.pickled_awaits.add(e),s.has_pickled_await=!0)}let i=r;t.state.expression&&(t.state.expression.has_await=!0,i=!0),i&&(t.state.options.experimental.async||Nm(e),t.state.analysis.runes||Fm(e)),t.next()}function OS(e,t){if(t)return!0;let r=e.length;for(;r--;){let i=e[r];if(i.type==="ArrowFunctionExpression"||i.type==="FunctionExpression"||i.type==="FunctionDeclaration")return!1;if(i.metadata)return!0}return!1}function DS(e,t){let r=e.length;for(;r--;){let i=e[r];if(i.type==="ConstTag")return!1;if(i.metadata)return!0;switch(i.type){case"ArrayExpression":if(t!==i.elements.at(-1))return!1;break;case"AssignmentExpression":case"BinaryExpression":case"LogicalExpression":if(t===i.left)return!1;break;case"CallExpression":case"NewExpression":if(t!==i.arguments.at(-1))return!1;break;case"ConditionalExpression":if(t===i.test)return!1;break;case"MemberExpression":return!1;case"ObjectExpression":if(t!==i.properties.at(-1))return!1;break;case"Property":if(t===i.key)return!1;break;case"SequenceExpression":if(t!==i.expressions.at(-1))return!1;break;case"TaggedTemplateExpression":if(t!==i.quasi.expressions.at(-1))return!1;break;case"TemplateLiteral":if(t!==i.expressions.at(-1))return!1;break;case"VariableDeclarator":return!0;default:return!1}t=i}}var zt={currentTime:{valid_elements:["audio","video"],omit_in_ssr:!0,bidirectional:!0},duration:{valid_elements:["audio","video"],event:"durationchange",omit_in_ssr:!0},focused:{omit_in_ssr:!0},paused:{valid_elements:["audio","video"],omit_in_ssr:!0,bidirectional:!0},buffered:{valid_elements:["audio","video"],omit_in_ssr:!0},seekable:{valid_elements:["audio","video"],omit_in_ssr:!0},played:{valid_elements:["audio","video"],omit_in_ssr:!0},volume:{valid_elements:["audio","video"],omit_in_ssr:!0,bidirectional:!0},muted:{valid_elements:["audio","video"],omit_in_ssr:!0,bidirectional:!0},playbackRate:{valid_elements:["audio","video"],omit_in_ssr:!0,bidirectional:!0},seeking:{valid_elements:["audio","video"],omit_in_ssr:!0},ended:{valid_elements:["audio","video"],omit_in_ssr:!0},readyState:{valid_elements:["audio","video"],omit_in_ssr:!0},videoHeight:{valid_elements:["video"],event:"resize",omit_in_ssr:!0},videoWidth:{valid_elements:["video"],event:"resize",omit_in_ssr:!0},naturalWidth:{valid_elements:["img"],event:"load",omit_in_ssr:!0},naturalHeight:{valid_elements:["img"],event:"load",omit_in_ssr:!0},activeElement:{valid_elements:["svelte:document"],omit_in_ssr:!0},fullscreenElement:{valid_elements:["svelte:document"],event:"fullscreenchange",omit_in_ssr:!0},pointerLockElement:{valid_elements:["svelte:document"],event:"pointerlockchange",omit_in_ssr:!0},visibilityState:{valid_elements:["svelte:document"],event:"visibilitychange",omit_in_ssr:!0},innerWidth:{valid_elements:["svelte:window"],omit_in_ssr:!0},innerHeight:{valid_elements:["svelte:window"],omit_in_ssr:!0},outerWidth:{valid_elements:["svelte:window"],omit_in_ssr:!0},outerHeight:{valid_elements:["svelte:window"],omit_in_ssr:!0},scrollX:{valid_elements:["svelte:window"],omit_in_ssr:!0,bidirectional:!0},scrollY:{valid_elements:["svelte:window"],omit_in_ssr:!0,bidirectional:!0},online:{valid_elements:["svelte:window"],omit_in_ssr:!0},devicePixelRatio:{valid_elements:["svelte:window"],event:"resize",omit_in_ssr:!0},clientWidth:{omit_in_ssr:!0,invalid_elements:["svelte:window","svelte:document"]},clientHeight:{omit_in_ssr:!0,invalid_elements:["svelte:window","svelte:document"]},offsetWidth:{omit_in_ssr:!0,invalid_elements:["svelte:window","svelte:document"]},offsetHeight:{omit_in_ssr:!0,invalid_elements:["svelte:window","svelte:document"]},contentRect:{omit_in_ssr:!0,invalid_elements:["svelte:window","svelte:document"]},contentBoxSize:{omit_in_ssr:!0,invalid_elements:["svelte:window","svelte:document"]},borderBoxSize:{omit_in_ssr:!0,invalid_elements:["svelte:window","svelte:document"]},devicePixelContentBoxSize:{omit_in_ssr:!0,invalid_elements:["svelte:window","svelte:document"]},indeterminate:{event:"change",bidirectional:!0,valid_elements:["input"],omit_in_ssr:!0},checked:{valid_elements:["input"],bidirectional:!0},group:{valid_elements:["input"],bidirectional:!0},this:{omit_in_ssr:!0},innerText:{invalid_elements:["svelte:window","svelte:document"],bidirectional:!0},innerHTML:{invalid_elements:["svelte:window","svelte:document"],bidirectional:!0},textContent:{invalid_elements:["svelte:window","svelte:document"],bidirectional:!0},open:{event:"toggle",bidirectional:!0,valid_elements:["details"]},value:{valid_elements:["input","textarea","select"],bidirectional:!0},files:{valid_elements:["input"],omit_in_ssr:!0,bidirectional:!0}};function ry(e,t){let r=t.path.at(-1);if(r?.type==="RegularElement"||r?.type==="SvelteElement"||r?.type==="SvelteWindow"||r?.type==="SvelteDocument"||r?.type==="SvelteBody")if(e.name in zt){let n=zt[e.name];if(n.valid_elements&&!n.valid_elements.includes(r.name)&&ss(e,e.name,n.valid_elements.map(p=>`\`<${p}>\``).join(", ")),n.invalid_elements&&n.invalid_elements.includes(r.name)){let p=Object.entries(zt).filter(([u,d])=>d.valid_elements?.includes(r.name)||!d.valid_elements&&!d.invalid_elements?.includes(r.name)).map(([u])=>u).sort();ra(e,e.name,`Possible bindings for <${r.name}> are ${p.join(", ")}`)}if(r.name==="input"&&e.name!=="this"){let p=r.attributes.find(u=>u.type==="Attribute"&&u.name==="type");p&&!me(p)?(e.name!=="value"||p.value===!0)&&Th(p):(e.name==="checked"&&p?.value[0].data!=="checkbox"&&ss(e,e.name,`\`<input type="checkbox">\`${p?.value[0].data==="radio"?' \u2014 for `<input type="radio">`, use `bind:group`':""}`),e.name==="files"&&p?.value[0].data!=="file"&&ss(e,e.name,'`<input type="file">`'))}if(r.name==="select"&&e.name!=="this"){let p=r.attributes.find(u=>u.type==="Attribute"&&u.name==="multiple"&&!me(u)&&u.value!==!0);p&&Sh(p)}if(e.name==="offsetWidth"&&di(r.name)&&ss(e,e.name,"non-`<svg>` elements. Use `bind:clientWidth` for `<svg>` instead"),pi(e.name)){let p=r.attributes.find(u=>u.type==="Attribute"&&u.name==="contenteditable");p?!me(p)&&p.value!==!0&&vh(p):wh(e)}}else{let n=ur(e.name,Object.keys(zt));if(n){let p=zt[n];(!p.valid_elements||p.valid_elements.includes(r.name))&&ra(e,e.name,`Did you mean '${n}'?`)}ra(e,e.name)}if(e.expression.type==="SequenceExpression"){e.name==="group"&&Ah(e);let n=e.expression.start,p=e.expression.leadingComments?.at(0)?.start,u=e.expression.leadingComments?.at(-1)?.end;for(;t.state.analysis.source[--n]!=="{";)t.state.analysis.source[n]==="("&&!(p&&u&&n<=u&&n>=p)&&Rh(e,e.name);e.expression.expressions.length!==2&&Qc(e),ae(t.path);let[d,m]=e.expression.expressions;t.visit(d.type==="ArrowFunctionExpression"?d.body:d,{...t.state,expression:e.metadata.expression}),t.visit(m.type==="ArrowFunctionExpression"?m.body:m,{...t.state,expression:e.metadata.expression}),e.metadata.expression.has_await&&xt(e);return}$i(e,e.expression,t);let i=e.expression,s=Ie(i);s===null&&Qc(e);let a=t.state.scope.get(s.name);if(e.metadata.binding=a,i.type==="Identifier"&&e.name!=="this"&&(!a||a.kind!=="state"&&a.kind!=="raw_state"&&a.kind!=="prop"&&a.kind!=="bindable_prop"&&a.kind!=="each"&&a.kind!=="store_sub"&&!a.updated)&&qh(e.expression),e.name==="group"){if(!a)throw new Error("Cannot find declaration for bind:group");a.kind==="snippet"&&$h(e);let n=[],[p,u]=ba(e.expression),d=u,m=t.path.length;for(;m--;){let v=t.path[m];if(v.type==="EachBlock"){let E=d.filter(l=>v.metadata.declarations.has(l.name));E.length>0&&(v.metadata.contains_group_binding=!0,n.push(v),d=d.filter(l=>!E.includes(l)),d.push(...ba(v.expression)[1]))}}let h=u.map(v=>t.state.scope.get(v.name)),_;e:for(let[[v,E],l]of t.state.analysis.binding_groups)if(!(E.length!==h.length||v!==p)){for(let o=0;o<h.length;o++)if(h[o]!==E[o])continue e;_=l}_||(_=t.state.scope.root.unique("binding_group"),t.state.analysis.binding_groups.set([p,h],_)),e.metadata={binding_group_name:_,parent_each_blocks:n,expression:e.metadata.expression}}a?.kind==="each"&&a.metadata?.inside_rest&&Xf(a.node,a.node.name),t.next({...t.state,expression:e.metadata.expression}),e.metadata.expression.has_await&&xt(e)}function iy(e,t){let r=er(t.path,-1),i=he(e,t.state.scope);if(i&&i!=="$inspect")for(let s of e.arguments)s.type==="SpreadElement"&&Zm(e,i);switch(i){case null:ws(e.callee,t.state.scope)||(t.state.analysis.needs_context=!0);break;case"$bindable":e.arguments.length>1&&wt(e,"$bindable","zero or one arguments"),(r.type!=="AssignmentPattern"||t.path.at(-3)?.type!=="ObjectPattern"||t.path.at(-4)?.type!=="VariableDeclarator"||he(t.path.at(-4).init,t.state.scope)!=="$props")&&Tm(e),t.state.analysis.needs_context=!0;break;case"$host":e.arguments.length>0?is(e,"$host"):(t.state.ast_type==="module"||!t.state.analysis.custom_element)&&Lm(e);break;case"$props":t.state.has_props_rune&&Wc(e,i),t.state.has_props_rune=!0,(r.type!=="VariableDeclarator"||t.state.ast_type!=="instance"||t.state.scope!==t.state.analysis.instance.scope)&&Km(e),e.arguments.length>0&&is(e,i);break;case"$props.id":{let s=er(t.path,-2);t.state.analysis.props_id&&Wc(e,i),(r.type!=="VariableDeclarator"||r.id.type!=="Identifier"||t.state.ast_type!=="instance"||t.state.scope!==t.state.analysis.instance.scope||s.type!=="VariableDeclaration")&&Wm(e),e.arguments.length>0&&is(e,i),t.state.analysis.props_id=r.id;break}case"$state":case"$state.raw":case"$derived":case"$derived.by":{jS(r,t)||FS(r)||US(r,t)||Qs(e,i),(i==="$derived"||i==="$derived.by")&&e.arguments.length!==1?wt(e,i,"exactly one argument"):e.arguments.length>1&&wt(e,i,"zero or one arguments");break}case"$effect":case"$effect.pre":r.type!=="ExpressionStatement"&&Im(e),e.arguments.length!==1&&wt(e,i,"exactly one argument"),t.state.analysis.needs_context=!0;break;case"$effect.tracking":e.arguments.length!==0&&is(e,i);break;case"$effect.root":e.arguments.length!==1&&wt(e,i,"exactly one argument");break;case"$effect.pending":t.state.expression&&(t.state.expression.has_state=!0);break;case"$inspect":e.arguments.length<1&&wt(e,i,"one or more arguments");break;case"$inspect().with":e.arguments.length!==1&&wt(e,i,"exactly one argument");break;case"$inspect.trace":{e.arguments.length>1&&wt(e,i,"zero or one arguments");let s=t.path.at(-2),a=t.path.at(-3);if((r.type!=="ExpressionStatement"||s?.type!=="BlockStatement"||!(a?.type==="FunctionDeclaration"||a?.type==="FunctionExpression"||a?.type==="ArrowFunctionExpression")||s.body[0]!==r)&&Bm(e),a.generator&&Dm(e),F){if(e.arguments[0])t.state.scope.tracing=O(e.arguments[0]);else{let n=BS(t.path.slice(0,-2))??"trace",p=`(${jr(a)})`;t.state.scope.tracing=O(T(n+" "+p))}t.state.analysis.tracing=!0}break}case"$state.eager":e.arguments.length!==1&&wt(e,i,"exactly one argument");break;case"$state.snapshot":e.arguments.length!==1&&wt(e,i,"exactly one argument");break}if(i==="$derived"){let s=new ke;t.next({...t.state,function_depth:t.state.function_depth+1,derived_function_depth:t.state.function_depth+1,expression:s}),s.has_await&&t.state.analysis.async_deriveds.set(e,s),t.state.in_declaration_tag&&t.state.expression?.merge(s)}else i==="$inspect"?t.next({...t.state,function_depth:t.state.function_depth+1}):t.next();t.state.expression&&(!ir(e.callee,t)||t.state.expression.dependencies.size>0)&&(t.state.expression.has_call=!0,t.state.expression.has_state=!0)}function BS(e){let t=e.at(-1);if((t.type==="FunctionDeclaration"||t.type==="FunctionExpression")&&t.id!=null)return t.id.name;let r=e.at(-2);if(r){if(r.type==="CallExpression")return mi.slice(r.callee.start,r.callee.end)+"(...)";if(r.type==="Property"&&!r.computed)return r.key.name;if(r.type==="VariableDeclarator"&&r.id.type==="Identifier")return r.id.name}}function jS(e,t){return e.type==="VariableDeclarator"&&er(t.path,-3).type!=="ConstTag"}function FS(e){return e.type==="PropertyDefinition"&&!e.static&&!e.computed}function US(e,t){if(e.type==="AssignmentExpression"&&e.operator==="="&&e.left.type==="MemberExpression"&&e.left.object.type==="ThisExpression"&&(e.left.property.type==="Identifier"&&!e.left.computed||e.left.property.type==="PrivateIdentifier"||e.left.property.type==="Literal")){let r=er(t.path,-5);return r?.type==="MethodDefinition"&&r.kind==="constructor"}return!1}function sy(e,t){if(!t.state.analysis.runes){t.next();return}let r=[];for(let p of e.body)(p.type==="MethodDefinition"||p.type==="PropertyDefinition")&&p.key.type==="PrivateIdentifier"&&r.push(p.key.name);let i=new Map,s=new Map;t.state.analysis.classes.set(e,i);let a=null;function n(p,u,d){let m=Ye(u);if(m===null)return;let h=he(d,t.state.scope);if(h&&Id(h)){i.has(m)&&ah(p,m);let _=(p.type==="AssignmentExpression"||!p.static?"":"@")+m,v=s.get(_);v&&!(v.length===1&&v[0]==="prop")&&rs(p,_),i.set(m,{node:p,type:h,key:u.type==="PrivateIdentifier"?u:null,value:d})}}for(let p of e.body){if(p.type==="PropertyDefinition"&&!p.computed&&!p.static){n(p,p.key,p.value);let u=Ye(p.key);if(!s.get(u)){s.set(u,[p.value?"assigned_prop":"prop"]);continue}rs(p,u)}if(p.type==="MethodDefinition"){if(p.kind==="constructor")a=p;else if(!p.computed){let u=(p.static?"@":"")+Ye(p.key),d=s.get(u);if(!d){s.set(u,[p.kind]);continue}if((d.includes(p.kind)||d.includes("prop")||d.includes("assigned_prop"))&&rs(p,u),p.kind==="get"){if(d.length===1&&d[0]==="set"){d.push("get");continue}}else if(p.kind==="set"){if(d.length===1&&d[0]==="get"){d.push("set");continue}}else{d.push(p.kind);continue}rs(p,u)}}}if(a)for(let p of a.value.body.body){if(p.type!=="ExpressionStatement"||p.expression.type!=="AssignmentExpression")continue;let{left:u,right:d}=p.expression;u.type==="MemberExpression"&&u.object.type==="ThisExpression"&&(u.computed&&u.property.type!=="Literal"||n(p.expression,u.property,d))}for(let[p,u]of i){if(p[0]==="#")continue;let d=p.replace(yd,"_");for(;r.includes(d);)d="_"+d;r.push(d),u.key=ib(d)}t.next({...t.state,state_fields:i})}function ay(e,t){t.state.analysis.runes&&e.id!==null&&Yr(t.state.scope.get(e.id.name));let r=t.state.ast_type==="module"?0:1;t.state.scope.function_depth>r&&Df(e),t.next()}function ny(e,t){ae(t.path),t.next({...t.state,expression:e.metadata.expression})}function Pa(e){e.name.includes(":")&&!e.name.startsWith("xmlns:")&&!e.name.startsWith("xlink:")&&!e.name.startsWith("xml:")&&Wf(e)}function Aa(e,t){if(Array.isArray(e.value)&&e.value.length===1&&e.value[0].type==="ExpressionTag"&&(t.type==="Component"||t.type==="SvelteComponent"||t.type==="SvelteSelf"||t.type==="RegularElement"&&ct(t))&&Kf(e),e.value===!0||!Array.isArray(e.value)||e.value.length===1)return;e.value.at(-1)?.end!==e.end||Ph(e)}function Ri(e,t,r=!1){let i=e.path.at(-2),s;if(i?.type==="SnippetBlock"){me(t)||ap(t);return}let a=e.path.length;for(;a--;){let n=e.path[a];!s&&(n.type==="Component"||n.type==="SvelteComponent"||n.type==="SvelteSelf"||n.type==="SvelteElement"||n.type==="RegularElement"&&ct(n))&&(s=n)}if(s){if(s.type==="Component"||s.type==="SvelteComponent"||s.type==="SvelteSelf")if(s!==i)r||np(t);else{me(t)||ap(t);let n=t.value[0].data;if(e.state.component_slots.has(n)&&u_(t,n,s.name),e.state.component_slots.add(n),n==="default")for(let p of s.fragment.nodes)p.type==="Text"&&_d.test(p.data)||(p.type==="RegularElement"||p.type==="SvelteFragment")&&p.attributes.some(u=>u.type==="Attribute"&&u.name==="slot")||d_(p)}}else r||np(t)}function $a(e){return!e||e.declaration_kind==="import"||e.kind==="prop"||e.kind==="rest_prop"||e.kind==="bindable_prop"||e?.initial?.type==="SnippetBlock"}function qi(e,t){e.metadata.path=[...t.path],e.metadata.snippets=new Set;let r=!0;for(let p of e.attributes){if(p.type==="SpreadAttribute"||p.type==="BindDirective"){r=!1;continue}if(p.type!=="Attribute"||!Qt(p))continue;let u=mt(p);if(u.type==="Identifier"){let d=t.state.scope.get(u.name);r&&=$a(d),d?.initial?.type==="SnippetBlock"&&e.metadata.snippets.add(d.initial)}else u.type!=="Literal"&&(r=!1)}if(r)for(let p of e.fragment.nodes)p.type==="SnippetBlock"&&e.metadata.snippets.add(p);t.state.analysis.snippet_renderers.set(e,r),ae(t.path);for(let p of e.attributes)p.type!=="Attribute"&&p.type!=="SpreadAttribute"&&p.type!=="LetDirective"&&p.type!=="OnDirective"&&p.type!=="BindDirective"&&p.type!=="AttachTag"&&Oh(p),p.type==="OnDirective"&&(p.modifiers.length>1||p.modifiers.some(u=>u!=="once"))&&Xh(p),p.type==="Attribute"&&(t.state.analysis.runes&&(Aa(p,e),Qt(p)&&oy(mt(p),t.state.analysis.source)),Pa(p),p.name==="slot"&&Ri(t,p,!0)),p.type==="BindDirective"&&p.name!=="this"&&(t.state.analysis.uses_component_bindings=!0),p.type==="AttachTag"&&oy(p.expression,t.state.analysis.source);let i=Pt(e)?t.state:{...t.state,scope:e.metadata.scopes.default};for(let p of e.attributes)t.visit(p,p.type==="LetDirective"?i:t.state);let s=[],a={default:[]};for(let p of e.fragment.nodes){if(p.type==="Comment"){s.push(p);continue}let u=Pt(p)??"default";(a[u]??=[]).push(...s,p),u!=="default"&&(s=[])}let n=new Set;for(let p in a){let u={...t.state,scope:e.metadata.scopes[p],parent_element:null,component_slots:n};t.visit({...e.fragment,nodes:a[p]},u)}}function oy(e,t){if(e.type==="SequenceExpression"){let r=e.start;for(;--r>0;){let i=t[r];if(i==="(")break;i==="{"&&ta(e)}}}function ly(e,t){let r=t.state.scope.get(e.name.includes(".")?e.name.slice(0,e.name.indexOf(".")):e.name);e.metadata.dynamic=t.state.analysis.runes&&r!==null&&(r.kind!=="normal"||e.name.includes(".")),r&&(e.metadata.expression.has_state=e.metadata.dynamic,e.metadata.expression.dependencies.add(r),e.metadata.expression.references.add(r)),qi(e,t)}function cy(e,t){if(!t.state.analysis.runes&&!t.state.analysis.maybe_runes&&Hh(e),t.path.length===1&&t.path[0].type==="Fragment"){let i=e.declaration.declarations.flatMap(s=>ue(s.id)).find(s=>t.state.analysis.instance.scope.declarations.has(s.name));i&&Ur(i,i.name)}t.visit(e.declaration,{...t.state,in_declaration_tag:!0,function_depth:t.state.scope.function_depth,expression:e.metadata.expression}),Wp(t,e.metadata,e.declaration.declarations)}function Wp(e,t,r){let i=t.expression.has_await,s=[...t.expression.references].map(a=>a.blocker).filter(a=>a!==null&&a.object!==e.state.async_consts?.id);if(i||e.state.async_consts||s.length>0){let a=e.state.async_consts??={id:e.state.analysis.root.unique("promises"),declaration_count:0};t.promises_id=a.id;let n=r.flatMap(d=>e.state.scope.get_bindings(d)),p=a.declaration_count+(s.length>0?1:0);a.declaration_count+=s.length>0?2:1;let u=X(a.id,T(p),!0);for(let d of n)d.blocker=u}}function py(e,t){t.state.analysis.runes&&ze(e,t.state,"@");let r=t.path.at(-1),i=t.path.at(-2);(r?.type!=="Fragment"||i?.type!=="IfBlock"&&i?.type!=="SvelteFragment"&&i?.type!=="Component"&&i?.type!=="SvelteComponent"&&i?.type!=="EachBlock"&&i?.type!=="AwaitBlock"&&i?.type!=="SnippetBlock"&&i?.type!=="SvelteBoundary"&&i?.type!=="KeyBlock"&&(i?.type!=="RegularElement"&&i?.type!=="SvelteElement"||!i.attributes.some(a=>a.type==="Attribute"&&a.name==="slot")))&&jh(e);let s=e.declaration.declarations[0];t.visit(s.id),t.visit(s.init,{...t.state,expression:e.metadata.expression,function_depth:t.state.function_depth+1,derived_function_depth:t.state.function_depth+1}),Wp(t,e.metadata,[s])}function uy(e,t){t.state.analysis.runes&&ze(e,t.state,"@"),t.next()}function dy(e,t){ze(e,t.state,"#"),at(e.body,t),at(e.fallback,t);let r=e.context;if(r?.type==="Identifier"&&(r.name==="$state"||r.name==="$derived")&&Qs(e,r.name),e.key&&(e.metadata.keyed=e.key.type!=="Identifier"||!e.index||e.key.name!==e.index),e.metadata.keyed&&!e.context&&Wh(e.key),t.visit(e.expression,{...t.state,expression:e.metadata.expression,scope:t.state.scope.parent}),t.visit(e.body),e.key&&t.visit(e.key),e.fallback&&t.visit(e.fallback),!t.state.analysis.runes){let i=!!e.context&&ue(e.context).some(s=>!!t.state.scope.get(s.name)?.mutated);for(let s of e.metadata.expression.dependencies)s.declaration_kind!=="function"&&fy(s,e.metadata.transitive_deps);if(i)for(let s of e.metadata.transitive_deps)s.kind==="normal"&&(s.declaration_kind==="const"||s.declaration_kind==="let"||s.declaration_kind==="var")&&(s.kind="state")}ae(t.path)}function fy(e,t){if(!t.has(e)&&(t.add(e),e.kind==="legacy_reactive"))for(let r of e.legacy_dependencies)fy(r,t)}function my(e,t){t.state.ast_type?Xs(e):e.declaration.type==="Identifier"&&Ta(e,t.state.scope,e.declaration.name),t.next()}function hy(e,t){if(t.next(),t.state.ast_type&&e.specifiers.some(r=>r.exported.type==="Identifier"?r.exported.name==="default":r.exported.value==="default")&&Xs(e),e.declaration?.type==="VariableDeclaration"){for(let r of e.declaration.declarations)for(let i of ue(r.id)){let s=t.state.scope.get(i.name);s&&(s.kind==="derived"&&Ks(e),(s.kind==="state"||s.kind==="raw_state")&&s.reassigned&&Zs(e))}t.state.analysis.runes&&t.state.ast_type==="instance"&&e.declaration.kind==="let"&&Um(e)}if(t.state.analysis.runes&&e.declaration&&t.state.ast_type==="instance"){if(e.declaration.type==="FunctionDeclaration"||e.declaration.type==="ClassDeclaration")t.state.analysis.exports.push({name:e.declaration.id.name,alias:null});else if(e.declaration.kind==="const")for(let r of e.declaration.declarations)for(let i of ue(r.id))t.state.analysis.exports.push({name:i.name,alias:null})}}function _y(e,t){let r=e.local.type==="Identifier"?e.local.name:e.local.value,i=e.exported.type==="Identifier"?e.exported.name:e.exported.value;if(t.state.ast_type==="instance"){if(t.state.analysis.runes){t.state.analysis.exports.push({name:r,alias:i});let s=t.state.scope.get(r);s&&(s.reassigned=!0)}}else Ta(e,t.state.scope,r)}function by(e,t){if(e.expression.type==="NewExpression"&&e.expression.callee.type==="Identifier"&&e.expression.arguments.length===1&&e.expression.arguments[0].type==="ObjectExpression"&&e.expression.arguments[0].properties.some(r=>r.type==="Property"&&r.key.type==="Identifier"&&r.key.name==="target")){let r=t.state.scope.get(e.expression.callee.name);if(r?.kind==="normal"&&r.declaration_kind==="import"){let i=r.initial;i.source.value.endsWith(".svelte")&&i.specifiers.find(s=>s.local.name===r.node.name&&s.type==="ImportDefaultSpecifier")&&Lf(e.expression)}}t.next()}function yy(e,t){if(t.path.at(-1)?.type==="Fragment"&&t.state.parent_element){let i=Ci("#text",t.state.parent_element);i&&Hr(e,i)}ae(t.path),t.next({...t.state,expression:e.metadata.expression})}function gy(e,t){t.next({...t.state,fragment:e,async_consts:void 0})}function vy(e,t){t.state.analysis.runes&&e.id!==null&&Yr(t.state.scope.get(e.id.name)),Ai(e,t)}function wy(e,t){Ai(e,t)}function xy(e,t){t.state.analysis.runes&&ze(e,t.state,"@"),ae(t.path),t.next({...t.state,expression:e.metadata.expression})}function ky(e,t){let r=t.path.length,i=t.path[--r];if(!Ve(e,i))return;if(ae(t.path),e.name==="arguments"&&!t.path.some(a=>a.type==="FunctionDeclaration"||a.type==="FunctionExpression")&&jm(e),e.name==="$$slots"&&(t.state.analysis.uses_slots=!0),t.state.analysis.runes&&Dt(e.name)&&t.state.scope.get(e.name)===null&&t.state.scope.get(e.name.slice(1))?.kind!=="store_sub"){let a=e,n=e.name;for(;i.type==="MemberExpression";)i.computed&&Jm(i),n+=`.${i.property.name}`,a=i,i=t.path[--r],Dt(n)||(n==="$effect.active"&&Kc(i,"$effect.active","$effect.tracking"),n==="$state.frozen"&&Kc(i,"$state.frozen","$state.raw"),n==="$state.is"&&th(i,"$state.is"),Ym(i,n));i.type!=="CallExpression"&&eh(a)}let s=t.state.scope.get(e.name);if(t.state.analysis.runes||(e.name==="$$props"&&(t.state.analysis.uses_props=!0),e.name==="$$restProps"&&(t.state.analysis.uses_rest_props=!0)),s){if(t.state.expression&&(t.state.expression.dependencies.add(s),t.state.expression.references.add(s),t.state.expression.has_state||=s.kind!=="static"&&(s.kind==="prop"||s.kind==="bindable_prop"||s.kind==="rest_prop"||!s.is_function())&&!t.state.scope.evaluate(e).is_known),t.state.analysis.runes&&e!==s.node&&t.state.function_depth===s.scope.function_depth&&(s.kind==="state"&&(s.reassigned||s.initial?.type==="CallExpression"&&s.initial.arguments.length===1&&s.initial.arguments[0].type!=="SpreadElement"&&!$t(s.initial.arguments[0],t.state.scope))||s.kind==="raw_state"||s.kind==="derived"||s.kind==="prop"||s.kind==="rest_prop")&&(i.type!=="AssignmentExpression"||i.left!==e)&&i.type!=="UpdateExpression"){let a="closure",n=t.path.length;for(;n--;){let p=t.path[n];if(p.type==="ArrowFunctionExpression"||p.type==="FunctionDeclaration"||p.type==="FunctionExpression")break;if(p.type==="CallExpression"&&p.arguments.includes(t.path[n+1])){let u=he(p,t.state.scope);if(u==="$state"||u==="$state.raw"){a="derived";break}}}Ff(e,e.name,a)}if(t.state.reactive_statement&&s.scope===t.state.analysis.module.scope&&s.reassigned&&jf(e),s.metadata?.is_template_declaration&&t.state.options.experimental.async){let a;for(let n=t.path.length-1;n>=0;n--){let p=t.path[n],u=t.path[n-1];if(p.type==="SnippetBlock")a=p.expression.name;else if(a&&u&&p.type==="Fragment"&&(kp(u)||u.type==="SvelteBoundary"&&(a==="failed"||a==="pending")))if(kp(u)?u.metadata.scopes.default===s.scope:t.state.scopes.get(p)===s.scope)Fh(e,e.name);else break}}}}function Ey(e,t){at(e.consequent,t),at(e.alternate,t),t.state.analysis.runes&&ze(e,t.state,e.elseif?":":"#"),ae(t.path),t.visit(e.test,{...t.state,expression:e.metadata.expression}),t.visit(e.consequent),e.alternate&&t.visit(e.alternate);let r=e.alternate;if(r&&r.nodes.length===1&&r.nodes[0].type==="IfBlock"&&r.nodes[0].elseif){let i=r.nodes[0];!i.metadata.expression.has_await&&!i.metadata.expression.has_more_blockers_than(e.metadata.expression)&&(e.metadata.flattened=[i,...i.metadata.flattened??[]],i.metadata.flattened=void 0)}}function Sy(e,t){if(t.state.analysis.runes){let r=e.source.value;if(r.startsWith("svelte/internal")&&Om(e),r==="svelte")for(let i of e.specifiers)i.type==="ImportSpecifier"&&i.imported.type==="Identifier"&&(i.imported.name==="beforeUpdate"||i.imported.name==="afterUpdate")&&rh(i,i.imported.name)}}function Cy(e,t){at(e.fragment,t),t.state.analysis.runes&&ze(e,t.state,"#"),ae(t.path),t.visit(e.expression,{...t.state,expression:e.metadata.expression}),t.visit(e.fragment)}function Ty(e,t){if(e.label.name==="$"){let r=t.path.at(-1);if(t.state.ast_type==="instance"&&r.type==="Program"){t.state.analysis.runes&&Vm(e);let s={assignments:new Set,dependencies:[]};t.next({...t.state,reactive_statement:s,function_depth:t.state.scope.function_depth+1});for(let[a,n]of t.state.scope.references){let p=t.state.scope.get(a);if(p!==null)for(let{node:u,path:d}of n){let m=u,h=d.length-1,_=d.at(h);for(;_.type==="MemberExpression";)m=_,_=d.at(--h);if(!(_.type==="AssignmentExpression"&&_.operator==="="&&_.left===m)){s.dependencies.push(p);break}}}if(t.state.analysis.reactive_statements.set(e,s),e.body.type==="ExpressionStatement"&&e.body.expression.type==="AssignmentExpression"){let a=ue(e.body.expression.left);if(e.body.expression.left.type==="MemberExpression"){let n=Ie(e.body.expression.left);n!==null&&(a=[n])}for(let n of a){let p=t.state.scope.get(n.name);p?.kind==="legacy_reactive"&&(p.legacy_dependencies=Array.from(s.dependencies))}}}else t.state.analysis.runes||Bf(e)}t.next()}function Py(e,t){let r=t.path.at(-1);if((r===void 0||r.type!=="Component"&&r.type!=="RegularElement"&&r.type!=="SlotElement"&&r.type!=="SvelteElement"&&r.type!=="SvelteComponent"&&r.type!=="SvelteSelf"&&r.type!=="SvelteFragment")&&i_(e),(r.type==="Component"||r.type==="SvelteComponent"||r.type==="SvelteSelf")&&!Pt(r)&&r.fragment.nodes.some(i=>i.type==="SnippetBlock"&&i.expression.name==="children")){let{expression:i}=e,s=i===null||i.type==="Identifier"&&i.name===e.name?e.name:`${e.name}: ${t.state.analysis.source.slice(i.start,i.end)}`;s_(e,s)}}function Ay(e){typeof e.value=="string"&&Dr.test(e.value)&&bi(e)}function $y(e,t){e.object.type==="Identifier"&&e.property.type==="Identifier"&&t.state.scope.get(e.object.name)?.kind==="rest_prop"&&e.property.name.startsWith("$$")&&Js(e.property),t.state.expression&&(t.state.expression.has_member_expression=!0,t.state.expression.has_state||=!ir(e,t)),ws(e,t.state.scope)||(t.state.analysis.needs_context=!0),t.next()}function Ry(e,t){e.callee.type==="ClassExpression"&&t.state.scope.function_depth>0&&Of(e),t.state.analysis.needs_context=!0,t.next()}function qy(e,t){if(t.state.analysis.runes){let i=t.path.at(-1)?.type;(i==="RegularElement"||i==="SvelteElement")&&Qf(e,e.name)}let r=t.path.at(-1);(r?.type==="SvelteElement"||r?.type==="RegularElement")&&(t.state.analysis.event_directive_node??=e),ae(t.path),t.next({...t.state,expression:e.metadata.expression})}function Iy(e,t){let r=Ye(e.key),i=r&&t.state.state_fields.get(r);i&&e!==i.node&&e.value&&e.start<i.node.start&&Ys(e),t.next()}var Li=Ls(du(),1),ei=Ls(cd(),1),fu="activedescendant atomic autocomplete braillelabel brailleroledescription busy checked colcount colindex colspan controls current describedby description details disabled dropeffect errormessage expanded flowto grabbed haspopup hidden invalid keyshortcuts label labelledby level live modal multiline multiselectable orientation owns placeholder posinset pressed readonly relevant required roledescription rowcount rowindex rowspan selected setsize sort valuemax valuemin valuenow valuetext".split(" "),Iw={a:["href"],area:["alt","aria-label","aria-labelledby"],html:["lang"],iframe:["title"],img:["alt"],object:["title","aria-label","aria-labelledby"]},Nw=["blink","marquee"],Mw=["h1","h2","h3","h4","h5","h6"],Lw=["button","input","keygen","meter","output","progress","select","textarea"],mu=["keypress","keydown","keyup","click","contextmenu","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","dragstart","drop","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","pointerdown","pointerup","pointermove","pointerenter","pointerleave","pointerover","pointerout","pointercancel","touchstart","touchend","touchmove","touchcancel"],Ow=["click","mousedown","mouseup","keypress","keydown","keyup"],Dw=new Map([["header","banner"],["footer","contentinfo"]]),Bw=new Map([["a","link"],["area","link"],["article","article"],["aside","complementary"],["body","document"],["button","button"],["datalist","listbox"],["dd","definition"],["dfn","term"],["dialog","dialog"],["details","group"],["dt","term"],["fieldset","group"],["figure","figure"],["form","form"],["h1","heading"],["h2","heading"],["h3","heading"],["h4","heading"],["h5","heading"],["h6","heading"],["hr","separator"],["img","img"],["li","listitem"],["link","link"],["main","main"],["menu","list"],["meter","progressbar"],["nav","navigation"],["ol","list"],["option","option"],["optgroup","group"],["output","status"],["progress","progressbar"],["section","region"],["summary","button"],["table","table"],["tbody","rowgroup"],["textarea","textbox"],["tfoot","rowgroup"],["thead","rowgroup"],["tr","row"],["ul","list"]]),jw=new Map([["command","menuitem"],["checkbox","menuitemcheckbox"],["radio","menuitemradio"]]),Fw=new Map([["button","button"],["image","button"],["reset","button"],["submit","button"],["checkbox","checkbox"],["radio","radio"],["range","slider"],["number","spinbutton"],["email","textbox"],["search","searchbox"],["tel","textbox"],["text","textbox"],["url","textbox"]]),Uw={ul:["listbox","menu","menubar","radiogroup","tablist","tree","treegrid"],ol:["listbox","menu","menubar","radiogroup","tablist","tree","treegrid"],menu:["listbox","menu","menubar","radiogroup","tablist","tree","treegrid"],li:["menuitem","option","row","tab","treeitem"],table:["grid"],td:["gridcell"],fieldset:["radiogroup","presentation"]},Hw=["email","search","tel","text","url"],Vw=["shipping","billing"],zw=["","on","off","name","honorific-prefix","given-name","additional-name","family-name","honorific-suffix","nickname","username","new-password","current-password","one-time-code","organization-title","organization","street-address","address-line1","address-line2","address-line3","address-level4","address-level3","address-level2","address-level1","country","country-name","postal-code","cc-name","cc-given-name","cc-additional-name","cc-family-name","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc","cc-type","transaction-currency","transaction-amount","language","bday","bday-day","bday-month","bday-year","sex","url","photo"],Ww=["home","work","mobile","fax","pager"],Gw=["tel","tel-country-code","tel-national","tel-area-code","tel-local","tel-local-prefix","tel-local-suffix","tel-extension","email","impp"],sr={Interactive:"interactive",NonInteractive:"non-interactive",Static:"static"},hu=["meta","html","script","style"],Oi=Li.roles.keys(),_u=Oi.filter(e=>Li.roles.get(e)?.abstract),Kw=Oi.filter(e=>!_u.includes(e)),Al=Kw.filter(e=>{let t=Li.roles.get(e);return!["toolbar","tabpanel","generic","cell"].includes(e)&&!t?.superClass.some(r=>r.includes("widget")||r.includes("window"))}).concat("progressbar"),bu=Kw.filter(e=>!Al.includes(e)&&e!=="generic"),Xw=["presentation","none"],yu=[],gu=[];for(let[e,t]of Li.elementRoles.entries())[...t].every(r=>r!=="generic"&&Al.includes(r))&&yu.push(e),[...t].every(r=>bu.includes(r))&&gu.push(e);var z8=[...ei.AXObjects.keys()].filter(e=>ei.AXObjects.get(e).type==="widget"),vu=[],wu=[],W8=[...ei.AXObjects.keys()].filter(e=>["windows","structure"].includes(ei.AXObjects.get(e).type));for(let[e,t]of ei.elementAXObjects.entries())[...t].every(r=>z8.includes(r))&&vu.push(e),[...t].every(r=>W8.includes(r))&&wu.push(e);var ti=Ls(du(),1),Il=Ls(cd(),1);function Nl(e,t){let r=new Map,i=new Set,s=[],a=e.type==="SvelteElement",n=!1,p=!1,u=!1;for(let g of e.attributes)switch(g.type){case"Attribute":{Pe(g)?i.add(g.name.slice(2)):(s.push(g),r.set(g.name,g),g.name==="contenteditable"&&(p=!0));break}case"SpreadAttribute":{n=!0;break}case"BindDirective":{pi(g.name)&&(u=!0);break}case"OnDirective":{i.add(g.name);break}}let d=K8(e.name,r),m=d===sr.Interactive,h=d===sr.NonInteractive,_=d===sr.Static;for(let g of e.attributes){if(g.type!=="Attribute")continue;let k=g.name.toLowerCase();if(k.startsWith("aria-")){hu.includes(e.name)&&Vd(g,e.name);let S=k.slice(5);if(!fu.includes(S)){let R=ur(S,fu);Sf(g,S,R)}k==="aria-hidden"&&vd.test(e.name)&&Zd(g,e.name);let C=We(g),P=ti.aria.get(k);P!==void 0&&eR(g,k,P,C),k==="aria-activedescendant"&&!a&&!m&&!r.has("tabindex")&&!n&&Hd(g)}switch(k){case"role":{hu.includes(e.name)&&uf(g,e.name);let S=We(g);if(typeof S!="string")break;for(let C of Yw(S)){if(C&&Su(C))hf(g,C);else if(C&&!Oi.includes(C)){let R=ur(C,Oi);Cf(g,C,R)}if(C===Jw(e.name,r)&&!["ul","ol","li","menu"].includes(e.name)&&!((e.name==="a"||e.name==="area")&&!r.has("href"))&&Mc(g,C),ku(t.path,["section","article"])||C===Dw.get(e.name)&&Mc(g,C),!a&&!X8(C,e.name,r)){let R=ti.roles.get(C);if(R){let L=Object.keys(R.requiredProps);!n&&L.some(se=>!s.find(c=>c.name===se))&&xf(g,C,Jr(L.map(se=>`"${se}"`),"and"))}}!n&&!G8(r)&&!$l(e.name,r)&&!Cs(C)&&Rl(C)&&_&&!r.get("tabindex")&&[...i].some(L=>mu.includes(L))&&of(e,C),!n&&m&&(xu(C)||Cs(C))&&_f(e,e.name,C),!n&&h&&Rl(C)&&!Uw[e.name]?.includes(C)&&yf(e,e.name,C)}break}case"accesskey":{Ud(g);break}case"autofocus":{e.name!=="dialog"&&!ku(t.path,["dialog"])&&Wd(g);break}case"scope":{!a&&e.name!=="th"&&df(g);break}case"tabindex":{let S=We(g);!isNaN(S)&&+S>0&&wf(g);break}}}let v=r.get("role"),E=Q8(Ar(v));if(i.has("click")){let g=E!==null&&!Cs(E);!a&&!$l(e.name,r)&&(!v||g)&&!m&&!n&&(i.has("keydown")||i.has("keyup")||i.has("keypress")||Gd(e,e.name))}let l=v?E:Jw(e.name,r);if(!a&&!m&&!Rl(E)){let g=r.get("tabindex"),k=Ar(g);g&&(k===null||Number(k)>=0)&&gf(e)}if(typeof l=="string"&&ti.roles.has(l)){let{props:g}=ti.roles.get(l),k=ti.aria.keys().filter(C=>!(C in g)),S=l&&v===void 0;for(let C of s)k.includes(C.name)&&(S?Ef(C,C.name,l,e.name):kf(C,C.name,l))}if(!n&&!p&&!$l(e.name,r)&&!Cs(E)&&(!m&&xu(E)||h&&!v)&&[...i].some(k=>Ow.includes(k))&&bf(e,e.name),!n&&(!v||E!==null)&&!$l(e.name,r)&&!Cs(E)&&!m&&!Rl(E)&&!h&&!xu(E)&&!Su(E)){let g=[...i].filter(k=>mu.includes(k));g.length>0&&vf(e,e.name,Jr(g))}!n&&i.has("mouseover")&&!i.has("focus")&&!i.has("focusin")&&Nc(e,"mouseover","focus"),!n&&i.has("mouseout")&&!i.has("blur")&&!i.has("focusout")&&Nc(e,"mouseout","blur");let o=r.has("aria-label")||r.has("aria-labelledby")||r.has("title");switch(e.name){case"a":case"button":{let g=We(r.get("aria-hidden"))==="true"||We(r.get("inert"))!==null;if(!n&&!g&&!o&&!Cu(e)&&Kd(e),e.name==="button")break;let k=r.get("href")||r.get("xlink:href");if(k){let S=Ar(k);S!==null&&(S===""||S==="#"||xd.test(S))&&lf(k,S,k.name)}else if(!n){let S=We(r.get("id")),C=We(r.get("name")),P=We(r.get("aria-disabled"));!S&&!C&&P!=="true"&&Eu(e,["href"])}break}case"input":{let g=r.get("type"),k=Ar(g);if(k==="image"&&!n){let C=["alt","aria-label","aria-labelledby"];C.some(R=>r.has(R))||Eu(e,C,'input type="image"')}let S=r.get("autocomplete");if(g&&S){let C=We(S);J8(C)||zd(S,C,k??"...")}break}case"img":{let g=Ar(r.get("alt")),k=We(r.get("aria-hidden"));g&&!k&&!n&&kd.test(g)&&Qd(e);break}case"label":{let g=k=>{let S=!1;return re(k,{},{_(C,{next:P}){C.type==="SvelteElement"||C.type==="SlotElement"||C.type==="Component"||C.type==="RenderTag"||C.type==="RegularElement"&&(Lw.includes(C.name)||C.name==="slot")?S=!0:P()}}),S};!n&&!r.has("for")&&!g(e)&&cf(e);break}case"video":{let g=r.get("aria-hidden"),k=g&&We(g);if(r.has("muted")||k==="true"||n||!r.has("src"))return;let S=!1,C=e.fragment.nodes.find(P=>P.type==="RegularElement"&&P.name==="track");C&&(S=C.attributes.some(P=>P.type==="SpreadAttribute"||P.type==="Attribute"&&P.name==="kind"&&We(P)==="captions")),S||pf(e);break}case"figcaption":{ku(t.path,["figure"])||Yd(e);break}case"figure":{let g=e.fragment.nodes.filter(S=>S.type==="Comment"?!1:S.type==="Text"?Ot.test(S.data):!0),k=g.findIndex(S=>S.type==="RegularElement"&&S.name==="figcaption");k!==-1&&k!==0&&k!==g.length-1&&Jd(g[k]);break}}if(!n&&e.name!=="a"){let g=Iw[e.name];g&&(g.some(S=>r.has(S))||Eu(e,g))}Nw.includes(e.name)&&Xd(e,e.name),!n&&!o&&!u&&Mw.includes(e.name)&&!Cu(e)&&mf(e,e.name)}function Cs(e){return Xw.includes(e)}function $l(e,t){if(e==="input"&&We(t.get("type"))==="hidden")return!0;let r=t.get("aria-hidden");if(!r)return!1;let i=We(r);return i===null?!0:i===!0||i==="true"}function G8(e){if(We(e.get("disabled")))return!0;let r=e.get("aria-disabled");return!!(r&&We(r)==="true")}function K8(e,t){return gu.some(r=>ql(r,e,t))?sr.Interactive:e!=="header"&&yu.some(r=>ql(r,e,t))?sr.NonInteractive:vu.some(r=>ql(r,e,t))?sr.Interactive:wu.some(r=>ql(r,e,t))?sr.NonInteractive:sr.Static}function X8(e,t,r){for(let[i,s]of Il.elementAXObjects.entries())if(i.name===t&&(!i.attributes||i.attributes.every(a=>r.has(a.name)&&We(r.get(a.name))===a.value)))for(let a of s){let n=Il.AXObjectRoles.get(a);if(n){for(let{name:p}of n)if(p===e)return!0}}return!1}function J8(e){if(e===!0)return!1;if(!e)return!0;let t=e.trim().toLowerCase().split(gc);if(typeof t[0]=="string"&&t[0].startsWith("section-")&&t.shift(),Vw.includes(t[0])&&t.shift(),zw.includes(t[0]))t.shift();else if(Ww.includes(t[0])&&t.shift(),Gw.includes(t[0]))t.shift();else return!1;return t[0]==="webauthn"&&t.shift(),t.length===0}function Y8(e){let t=e.get("type");if(!t)return;let r=Ar(t);return r?e.has("list")&&Hw.includes(r)?"combobox":Fw.get(r):void 0}function Z8(e){let t=e.get("type");if(!t)return;let r=Ar(t);if(r)return jw.get(r)}function Jw(e,t){return e==="menuitem"?Z8(t):e==="input"?Y8(t):Bw.get(e)}function xu(e){return Al.includes(e)}function Rl(e){return bu.includes(e)}function Su(e){return _u.includes(e)}function Yw(e){return e.replace(/[A-Z]/g,t=>t.toLowerCase()).split(Xi)}function Q8(e){return e===null?null:Yw(e).find(r=>Oi.includes(r)&&!Su(r))??e}function Ar(e){let t=We(e);return t===!0?null:t}function We(e){return e?e.value===!0?!0:me(e)?e.value[0].data:null:null}function Cu(e){for(let t of e.fragment.nodes)if(!(t.type==="Text"&&t.data.trim()==="")){if(t.type==="RegularElement"||t.type==="SvelteElement"){if(t.attributes.some(r=>r.type==="Attribute"&&r.name==="popover"))continue;if(t.name==="img"&&t.attributes.some(r=>r.type==="Attribute"&&r.name==="alt")||t.name==="selectedcontent")return!0;if(!Cu(t))continue}return!0}}function ql(e,t,r){return e.name!==t?!1:e.attributes?e.attributes.every(i=>{let s=r.get(i.name);return!(!s||i.value&&i.value!==Ar(s))}):!0}function ku(e,t){let r=e.length;for(;r--;){let i=e[r];if(i.type==="SvelteElement")return!0;if(i.type==="RegularElement")return t.includes(i.name)}return!1}function eR(e,t,r,i){let s=r.type;if(i!==null)switch(i===!0&&(i=""),s){case"id":case"string":{i===""&&Ic(e,t,"non-empty string");break}case"number":{(i===""||isNaN(+i))&&Ic(e,t,"number");break}case"boolean":{i!=="true"&&i!=="false"&&ef(e,t);break}case"idlist":{i===""&&tf(e,t);break}case"integer":{(i===""||!Number.isInteger(+i))&&rf(e,t);break}case"token":{let a=(r.values??[]).map(n=>n.toString());a.includes(i.toLowerCase())||sf(e,t,Jr(a.map(n=>`"${n}"`)));break}case"tokenlist":{let a=(r.values??[]).map(n=>n.toString());i.toLowerCase().split(gc).some(n=>!a.includes(n))&&af(e,t,Jr(a.map(n=>`"${n}"`)));break}case"tristate":{i!=="true"&&i!=="false"&&i!=="mixed"&&nf(e,t);break}}}function Eu(e,t,r=e.name){let i=gd.test(t[0])||t[0]==="href"?"an":"a",s=t.length>1?t.slice(0,-1).join(", ")+` or ${t[t.length-1]}`:t[0];ff(e,r,i,s)}var Tu=["preventDefault","stopPropagation","stopImmediatePropagation","capture","once","passive","nonpassive","self","trusted"];function Ml(e,t){let r=!1,i=null,s=null;for(let a of e.attributes)if(a.type==="Attribute"){let n=Qt(a);if(t.state.analysis.runes&&(Aa(a,e),n)){let u=mt(a);if(u.type==="SequenceExpression"){let d=u.start;for(;--d>0;){let m=t.state.analysis.source[d];if(m==="(")break;m==="{"&&ta(u)}}}wd.test(a.name)&&Ch(a,a.name),a.name.startsWith("on")&&a.name.length>2&&(n||Eh(a),Cr(a,t)),a.name==="slot"&&Ri(t,a),a.name==="is"&&Vf(a);let p=tR.get(a.name);p&&Gf(a,a.name,p),Pa(a)}else if(a.type==="AnimateDirective"){let n=t.path.at(-2);n?.type!=="EachBlock"?Zc(a):n.key?n.body.nodes.filter(p=>p.type!=="Comment"&&p.type!=="ConstTag"&&p.type!=="DeclarationTag"&&(p.type!=="Text"||p.data.trim()!=="")).length>1&&Zc(a):gh(a),r?yh(a):r=!0}else if(a.type==="TransitionDirective"){let n=a.intro&&i||a.outro&&s;if(n){let p=n.intro?n.outro?"transition":"in":"out",u=a.intro?a.outro?"transition":"in":"out";p===u?W_(a,p):z_(a,p,u)}a.intro&&(i=a),a.outro&&(s=a)}else if(a.type==="OnDirective"){let n=!1,p="";for(let u of a.modifiers){if(!Tu.includes(u)){let d=`${Tu.slice(0,-1).join(", ")} or ${Tu.at(-1)}`;Jh(a,d)}u==="passive"?n=!0:(u==="nonpassive"||u==="preventDefault")&&(p=u),n&&p&&Yh(a,"passive",p)}}}var tR=new Map([["className","class"],["htmlFor","for"]]);function Zw(e,t){if(Ml(e,t),Nl(e,t),e.metadata.path=[...t.path],t.state.analysis.elements.push(e),e.name==="textarea"&&e.fragment.nodes.length>0){for(let a of e.attributes)a.type==="Attribute"&&a.name==="value"&&U_(e);if(e.fragment.nodes.length>1||e.fragment.nodes[0].type!=="Text"){let a=e.fragment.nodes[0];a.type==="Text"&&(a.data=a.data.replace(Lr,""),a.raw=a.raw.replace(Lr,"")),e.attributes.push(Ct("value",null,-1,-1,e.fragment.nodes)),e.fragment.nodes=[]}}if(e.name==="select"&&!Fs){for(let a of e.attributes)if(a.type==="BindDirective"&&a.name==="value"&&a.expression.type!=="SequenceExpression"){let n=Ie(a.expression),p=n&&t.state.scope.get(n.name);if(p)for(let u of t.state.scope.references.keys()){if(u===p.node.name)continue;let d=t.state.scope.get(u);d&&p.legacy_indirect_bindings.add(d)}break}}if(e.name==="option"&&e.fragment.nodes?.length===1&&e.fragment.nodes[0].type==="ExpressionTag"&&!e.attributes.some(a=>a.type==="Attribute"&&a.name==="value")){let a=e.fragment.nodes[0];e.metadata.synthetic_value_node=a}(kr(e)||e.name==="selectedcontent")&&(e.fragment.metadata.dynamic=!0,ae(t.path));let r=t.state.scope.get(e.name);r!==null&&r.declaration_kind==="import"&&r.references.length===0&&Yf(e,e.name),e.metadata.has_spread=e.attributes.some(a=>a.type==="SpreadAttribute");let i=()=>{if(di(e.name))return!0;if(e.name==="a"||e.name==="title"){let a=t.path.length;for(;a--;){let n=t.path[a];if(n.type==="RegularElement")return n.metadata.svg}}return!1};if(e.metadata.svg=i(),e.metadata.mathml=Tc(e.name),ct(e)&&e.attributes.length>0&&ae(t.path),t.state.parent_element){let a=!1,n=!1,p=[t.state.parent_element];for(let u=t.path.length-1;u>=0;u--){let d=t.path[u];if((d.type==="IfBlock"||d.type==="EachBlock"||d.type==="AwaitBlock"||d.type==="KeyBlock")&&(n=!0),a){if(d.type==="RegularElement"){p.push(d.name);let m=vb(e.name,p);m&&(n?Dc(e,m):Hr(e,m))}else if(d.type==="Component"||d.type==="SvelteComponent"||d.type==="SvelteElement"||d.type==="SvelteSelf"||d.type==="SnippetBlock")break}else if(d.type==="RegularElement"&&d.name===t.state.parent_element){let m=Ci(e.name,t.state.parent_element);m&&(n?Dc(e,m):Hr(e,m)),a=!0}}}let s=e.name.replace(/[a-zA-Z-]*:/g,"");if(t.state.analysis.source[e.end-2]==="/"&&!vt(s)&&!di(s)&&!Tc(s)&&Zf(e,e.name),t.next({...t.state,parent_element:e.name}),e.name==="a"&&!t.state.parent_element){for(let a of e.fragment.nodes)if(a.type==="RegularElement"&&a.metadata.svg&&a.name!=="svg"){e.metadata.svg=!0;break}}}function Qw(e,t){ze(e,t.state,"@"),e.metadata.path=[...t.path];let r=wr(e.expression),i=r.callee,s=i.type==="Identifier"?t.state.scope.get(i.name):null;e.metadata.dynamic=s?.kind!=="normal";let a=i.type==="Identifier"&&$a(s);s?.initial?.type==="SnippetBlock"&&e.metadata.snippets.add(s.initial),t.state.analysis.snippet_renderers.set(e,a),t.state.analysis.uses_render_tags=!0;let n=wr(e.expression).arguments;for(let p of n)p.type==="SpreadElement"&&l_(p);i.type==="MemberExpression"&&i.property.type==="Identifier"&&["bind","apply","call"].includes(i.property.name)&&n_(e),ae(t.path),t.visit(i,{...t.state,expression:e.metadata.expression});for(let p of r.arguments){let u=new ke;e.metadata.arguments.push(u),t.visit(p,{...t.state,expression:u})}}function e1(e,t){t.state.analysis.runes&&!t.state.analysis.custom_element&&rm(e),ae(t.path);let r="default";for(let i of e.attributes)i.type==="Attribute"?i.name==="name"&&(me(i)||m_(i),r=i.value[0].data,r==="default"&&h_(i)):i.type!=="SpreadAttribute"&&i.type!=="LetDirective"&&f_(i);t.state.analysis.slot_names.set(r,e),t.next()}function t1(e,t){t.state.analysis.snippets.add(e),at(e.body,t),t.state.analysis.runes&&ze(e,t.state,"#");for(let a of e.parameters)a.type==="RestElement"&&y_(a);t.next({...t.state,parent_element:null});let r=t.path.length===1&&t.path[0].type==="Fragment";if(r){let a=e.expression.name;if(t.state.analysis.instance.scope.declarations.has(a)&&Ur(e.expression,a),e.metadata.can_hoist=r&&r1(t.state.scope,t.state.scopes),e.metadata.can_hoist){let n=e.expression.name,p=t.state.scope.get(n);t.state.analysis.module.scope.declarations.set(n,p)}}let{path:i}=t,s=i.at(-2);s&&(s.type==="Component"&&s.attributes.some(a=>(a.type==="Attribute"||a.type==="BindDirective")&&a.name===e.expression.name)&&g_(e,e.expression.name),e.expression.name==="children"&&(s.type==="Component"||s.type==="SvelteComponent"||s.type==="SvelteSelf")&&s.fragment.nodes.some(a=>a.type!=="SnippetBlock"&&(a.type!=="Text"||a.data.trim())&&a.type!=="Comment")&&b_(e))}function r1(e,t,r=new Set){for(let[i]of e.references){let s=e.get(i);if(s){if(s.blocker)return!1;if(s.scope.function_depth!==0&&!(s.scope.function_depth>=e.function_depth)){if(s.initial?.type==="SnippetBlock"){if(r.has(s))continue;r.add(s);let a=t.get(s.initial);if(r1(a,t,r))continue}return!1}}}return!0}function i1(e,t){ae(t.path),t.next({...t.state,expression:e.metadata.expression})}function s1(e,t){t.state.expression&&(t.state.expression.has_call=!0,t.state.expression.has_state=!0),t.next()}function a1(e,t){if((e.modifiers.length>1||e.modifiers.length&&e.modifiers[0]!=="important")&&v_(e),ae(t.path),e.value===!0){let r=t.state.scope.get(e.name);r&&(r.kind!=="normal"&&(e.metadata.expression.has_state=!0),r.blocker&&e.metadata.expression.dependencies.add(r))}else{t.next();for(let r of vr(e.value))r.type==="ExpressionTag"&&e.metadata.expression.merge(r.metadata.expression)}}function n1(e,t){xr(e);for(let r of e.attributes)r.type==="Attribute"&&Pe(r)?Cr(r,t):(r.type==="SpreadAttribute"||r.type==="Attribute")&&x_(r);t.next()}function o1(e,t){t.state.analysis.runes&&im(e),t.visit(e.expression,{...t.state,expression:e.metadata.expression}),qi(e,t)}function l1(e,t){xr(e);for(let r of e.attributes)r.type==="Attribute"&&Pe(r)?Cr(r,t):(r.type==="SpreadAttribute"||r.type==="Attribute")&&aa(r,"svelte:document");t.next()}function c1(e,t){Ml(e,t),Nl(e,t),e.metadata.path=[...t.path],t.state.analysis.elements.push(e);let r=e.attributes.find(i=>i.type==="Attribute"&&i.name==="xmlns"&&me(i));if(r)e.metadata.svg=r.value[0].data===Bs,e.metadata.mathml=r.value[0].data===js;else{let i=t.path.length;for(;i--;){let s=t.path[i];if(s.type==="Component"||s.type==="SvelteComponent"||s.type==="SvelteFragment"||s.type==="SnippetBlock"||i===0){e.metadata.svg=t.state.options.namespace==="svg",e.metadata.mathml=t.state.options.namespace==="mathml";break}if(s.type==="SvelteElement"||s.type==="RegularElement"){e.metadata.svg=s.type==="RegularElement"&&s.name==="foreignObject"?!1:s.metadata.svg,e.metadata.mathml=s.type==="RegularElement"&&s.name==="foreignObject"?!1:s.metadata.mathml;break}}}ae(t.path),t.visit(e.tag,{...t.state,expression:e.metadata.expression});for(let i of e.attributes)t.visit(i);t.visit(e.fragment,{...t.state,parent_element:null})}function p1(e,t){let r=t.path.at(-2);r?.type!=="Component"&&r?.type!=="SvelteComponent"&&P_(e);for(let i of e.attributes)i.type==="Attribute"?i.name==="slot"&&Ri(t,i):i.type!=="LetDirective"&&T_(i);t.next({...t.state,parent_element:null})}function u1(e,t){for(let r of e.attributes)A_(r);ae(t.path),t.next()}function d1(e,t){if(t.path.some(i=>i.type==="IfBlock"||i.type==="EachBlock"||i.type==="Component"||i.type==="SnippetBlock")||B_(e),t.state.analysis.runes){let i=$e===Kt?"Self":t.state.analysis.name,s=$e===Kt?"Self.svelte":$e.split(/[/\\]/).pop();am(e,i,s)}qi(e,t)}function f1(e,t){xr(e);for(let r of e.attributes)r.type==="Attribute"&&Pe(r)?Cr(r,t):(r.type==="SpreadAttribute"||r.type==="Attribute")&&aa(r,"svelte:window");t.next()}var rR=["onerror","failed","pending"];function m1(e,t){for(let r of e.attributes)(r.type!=="Attribute"||!rR.includes(r.name))&&k_(r),(r.value===!0||Array.isArray(r.value)&&(r.value.length!==1||r.value[0].type!=="ExpressionTag"))&&E_(r);ae(t.path),t.next()}function h1(e,t){t.state.expression&&!ir(e.tag,t)&&(t.state.expression.has_call=!0,t.state.expression.has_state=!0),t.next()}function _1(e){Dr.test(e.value.cooked??"")&&bi(e)}function b1(e,t){let r=t.path.at(-1);if(r.type==="Fragment"&&t.state.parent_element&&Ot.test(e.data)){let i=Ci("#text",t.state.parent_element);i&&Hr(e,i)}Dr.lastIndex=0;for(let i of e.data.matchAll(Dr)){let s=!1;if(r.type==="Fragment")for(let a of r.nodes){if(a===e)break;a.type==="Comment"&&(s||=mr(a.start+4,a.data,t.state.analysis.runes).includes("bidirectional_control_characters"))}if(!s){let a=i.index+e.start;bi({start:a,end:a+i[0].length})}}}function y1(e,t){for(let r of e.attributes)H_(r);for(let r of e.fragment.nodes)r.type!=="Text"&&r.type!=="ExpressionTag"&&V_(r);t.next()}function g1(e,t){ae(t.path),t.next({...t.state,expression:e.metadata.expression}),e.metadata.expression.has_await&&xt(e)}function v1(e,t){if($i(e,e.argument,t),t.state.reactive_statement){let r=e.argument.type==="MemberExpression"?Ie(e.argument):e.argument;if(r?.type==="Identifier"){let i=t.state.scope.get(r.name);i&&t.state.reactive_statement.assignments.add(i)}}t.state.expression&&(t.state.expression.has_assignment=!0),t.next()}function w1(e,t){ae(t.path),t.next({...t.state,expression:e.metadata.expression}),e.metadata.expression.has_await&&xt(e)}function Ts(e,t){if(e!==t)throw new Error("Assertion failed")}function x1(e,t){if(Xb(e,t.state),t.state.analysis.runes){let r=e.init,i=he(r,t.state.scope),{paths:s}=Xe(e.id,w("dummy"));for(let a of s)Yr(t.state.scope.get(a.node.name));if(i==="$state"||i==="$state.raw"||i==="$derived"||i==="$derived.by"||i==="$props")for(let a of s){let n=t.state.scope.get(a.node.name);if(n.kind=i==="$state"?"state":i==="$state.raw"?"raw_state":i==="$derived"||i==="$derived.by"?"derived":a.is_rest?"rest_prop":"prop",i==="$props"&&n.kind==="rest_prop"&&e.id.type==="ObjectPattern"){let{properties:p}=e.id,u=[];for(let d of p){if(d.type==="RestElement")continue;let m=d.key;u.push(m.type==="Identifier"?m.name:m.value.toString())}(n.metadata??={}).exclude_props=u}}if(i==="$props"){if(e.id.type!=="ObjectPattern"&&e.id.type!=="Identifier"&&Gm(e),t.state.analysis.custom_element&&t.state.options.customElementOptions?.props==null){let a;(e.id.type==="Identifier"||(a=e.id.properties.find(n=>n.type==="RestElement"))!=null)&&Nf(a??e.id)}if(t.state.analysis.needs_props=!0,e.id.type==="Identifier"){let a=t.state.scope.get(e.id.name);a.initial=null,a.kind="rest_prop"}else{Ts(e.id.type,"ObjectPattern");for(let a of e.id.properties){if(a.type!=="Property")continue;a.computed&&Gc(a),a.key.type==="Identifier"&&a.key.name.startsWith("$$")&&Js(a);let n=a.value.type==="AssignmentPattern"?a.value.left:a.value;n.type!=="Identifier"&&Gc(a);let p=a.key.type==="Identifier"?a.key.name:String(a.key.value),u=a.value.type==="AssignmentPattern"?a.value.right:null,d=t.state.scope.get(n.name);d.prop_alias=p,u?.type==="CallExpression"&&u.callee.type==="Identifier"&&u.callee.name==="$bindable"?(d.initial=u.arguments[0]??null,d.kind="bindable_prop"):d.initial=u}}}}else if(e.init?.type==="CallExpression"){let r=e.init.callee;r.type==="Identifier"&&(r.name==="$state"||r.name==="$derived"||r.name==="$props")&&t.state.scope.get(r.name)?.kind!=="store_sub"&&Qm(e.init,r.name)}e.init&&he(e.init,t.state.scope)==="$props"?(t.visit(e.id,{...t.state,function_depth:t.state.function_depth+1}),t.visit(e.init)):t.next()}var k1={_(e,{state:t,next:r,path:i}){let s=i.at(-1),a=[];if(s?.type==="Fragment"&&e.type!=="Comment"&&e.type!=="Text"){let p=s.nodes.indexOf(e);for(let u=p-1;u>=0;u--){let d=s.nodes[u];if(d.type==="Comment")a.push(...mr(d.start+4,d.data,t.analysis.runes));else if(d.type!=="Text")break}}else{let p=e.leadingComments;if(p)for(let u of p)a.push(...mr(u.start+2,u.value,t.analysis.runes))}a.length>0&&Dd(a),Xt.set(e,Od());let n=t.scopes.get(e);r(n!==void 0&&n!==t.scope?{...t,scope:n}:t),a.length>0&&Bd()},AnimateDirective:Yb,ArrowFunctionExpression:Kb,AssignmentExpression:Jb,AttachTag:Zb,Attribute:Qb,AwaitBlock:ey,AwaitExpression:ty,BindDirective:ry,CallExpression:iy,ClassBody:sy,ClassDeclaration:ay,ClassDirective:ny,Component:ly,ConstTag:py,DeclarationTag:cy,DebugTag:uy,EachBlock:dy,ExportDefaultDeclaration:my,ExportNamedDeclaration:hy,ExportSpecifier:_y,ExpressionStatement:by,ExpressionTag:yy,Fragment:gy,FunctionDeclaration:vy,FunctionExpression:wy,HtmlTag:xy,Identifier:ky,IfBlock:Ey,ImportDeclaration:Sy,KeyBlock:Cy,LabeledStatement:Ty,LetDirective:Py,Literal:Ay,MemberExpression:$y,NewExpression:Ry,OnDirective:qy,PropertyDefinition:Iy,RegularElement:Zw,RenderTag:Qw,SlotElement:e1,SnippetBlock:t1,SpreadAttribute:i1,SpreadElement:s1,StyleDirective:a1,SvelteBody:n1,SvelteComponent:o1,SvelteDocument:l1,SvelteElement:c1,SvelteFragment:p1,SvelteHead:u1,SvelteSelf:d1,SvelteWindow:f1,SvelteBoundary:m1,TaggedTemplateExpression:h1,TemplateElement:_1,Text:b1,TransitionDirective:g1,TitleElement:y1,UpdateExpression:v1,UseDirective:w1,VariableDeclarator:x1};function E1(e,t,r,i){let s=e?.content??{type:"Program",sourceType:"module",start:-1,end:-1,body:[]},{scope:a,scopes:n,has_await:p}=Bp(s,t,r,i);return{ast:s,scope:a,scopes:n,has_await:p}}function sR(e){let t=e.split(/[/\\]/),r=t.pop(),i=t.at(-1),s=r.replace(".svelte","");return s==="index"&&i&&i!=="src"&&(s=i),s[0].toUpperCase()+s.slice(1)}var aR=["$$props","$$restProps","$$slots"];function Pu(e,t,r){let i=new ka,s=E1(e.module,i,!1,null),a=E1(e.instance,i,!0,s.scope),{scope:n,scopes:p,has_await:u}=Bp(e.fragment,i,!1,a.scope),d={ast:e.fragment,scope:n,scopes:p},m=[],h=r.runes?.({filename:r.filename});for(let[C,P]of s.scope.references){if(C[0]!=="$"||aR.includes(C))continue;(C==="$"||C[1]==="$")&&zc(P[0].node,C);let R=C.slice(1),L=a.scope.get(R),H=L?.initial;if(h===!1||!Dt(C)||L!==null&&(he(H,a.scope)===null||R!=="props"&&he(H,a.scope)==="$props")&&!(C==="$derived"&&L.initial?.type==="ImportDeclaration"&&L.initial.source.value==="svelte/store")){let se;e:for(let f of P)for(let b=f.path.length-1;b>=0;b--){let x=p.get(f.path[b])||s.scopes.get(f.path[b])||a.scopes.get(f.path[b]);if(x){let A=x?.owner(R);if(A&&A!==s.scope&&A!==a.scope){se=f.node;break e}break}}if(se&&nh(se),h!==!1){if(L===null&&/[a-z]/.test(R[0]))zc(P[0].node,C);else if(L!==null&&Dt(C))for(let{node:f,path:b}of P)b.at(-1)?.type==="CallExpression"&&Uf(f,R)}if(s.ast)for(let{node:f,path:b}of P)f.start>s.ast.start&&f.end<s.ast.end&&he(b.at(-1),s.scope)===null&&oh(f);m.push(()=>{L!==null&&L.kind==="normal"&&L.declaration_kind==="let"&&L.reassigned&&(L.kind="state")});let c=a.scope.declare(w(C),"store_sub","synthetic");c.references=P,a.scope.references.set(C,P),s.scope.references.delete(C)}}let _=sR(r.filename),v=h??(u||a.has_await||Array.from(s.scope.references.keys()).some(Dt));if(!v)for(let C of m)C();if(v&&e.module){let C=e.module.attributes.find(P=>P.name==="context");C&&em(C)}let E=r.customElement({filename:r.filename}),l=r.css({filename:r.filename}),o=r.customElementOptions??E,g=!!r.customElementOptions||E,k=s.scope.generate(r.name??_);jd({component_name:k,dev:r.dev,rootDir:r.rootDir,runes:v});let S={name:k,root:i,module:s,instance:a,template:d,comments:e.comments,elements:[],runes:v,maybe_runes:!v&&h!==!1&&![...s.scope.references.keys()].some(C=>["$$props","$$restProps"].includes(C))&&!a.ast.body.some(C=>C.type==="LabeledStatement"||C.type==="ExportNamedDeclaration"&&(C.declaration&&C.declaration.type==="VariableDeclaration"&&C.declaration.kind==="let"||C.specifiers.some(P=>P.local.type==="Identifier"&&a.scope.get(P.local.name)?.declaration_kind==="let"))),tracing:!1,classes:new Map,immutable:v||r.immutable,exports:[],uses_props:!1,props_id:null,uses_rest_props:!1,uses_slots:!1,uses_component_bindings:!1,uses_render_tags:!1,needs_context:!1,needs_mutation_validation:!1,needs_props:!1,event_directive_node:null,uses_event_attributes:!1,custom_element:o,inject_styles:l==="injected"||g,accessors:g||(v?!1:!!r.accessors)||r.compatibility?.componentApi===4,reactive_statements:new Map,binding_groups:new Map,slot_names:new Map,css:{ast:e.css,hash:e.css?r.cssHash({css:e.css.content.styles,filename:$e,name:_,hash:li}):"",keyframes:[],has_global:!1},source:t,snippet_renderers:new Map,snippets:new Set,async_deriveds:new Map,pickled_awaits:new Set,instance_body:{sync:[],async:[],declarations:[],hoisted:[]}};if(!v){for(let C of a.ast.body)if(C.type==="ExportNamedDeclaration")if(S.needs_props=!0,C.declaration){if(C.declaration.type==="FunctionDeclaration"||C.declaration.type==="ClassDeclaration")S.exports.push({name:C.declaration.id.name,alias:null});else if(C.declaration.type==="VariableDeclaration")if(C.declaration.kind==="const")for(let P of C.declaration.declarations)for(let R of ue(P.id))S.exports.push({name:R.name,alias:null});else for(let P of C.declaration.declarations)for(let R of ue(P.id)){let L=a.scope.get(R.name);L.kind="bindable_prop"}}else for(let P of C.specifiers){if(P.local.type!=="Identifier"||P.exported.type!=="Identifier")continue;let R=a.scope.get(P.local.name);R&&(R.declaration_kind==="var"||R.declaration_kind==="let")?(R.kind="bindable_prop",P.exported.name!==P.local.name&&(R.prop_alias=P.exported.name)):S.exports.push({name:P.local.name,alias:P.exported.name})}for(let C of a.scope.declarations.values())if(C.kind==="normal")for(let{node:P,path:R}of C.references)P!==C.node&&C.updated&&(R[R.length-1].type==="StyleDirective"||R.some(L=>L.type==="Fragment")||R[1].type==="LabeledStatement"&&R[1].label.name==="$")&&(C.kind="state");re(d.ast,null,{EachBlock(C){let P=d.scopes.get(C);for(let R of P.declarations.values())if(R.updated){let L={scope:P.parent,scopes:d.scopes};re(C.expression,L,{_:Ti,Identifier(H,se){let c=se.path.at(-1);if(Ve(H,c)){let f=se.state.scope.get(H.name);f&&f.kind==="normal"&&f.declaration_kind!=="import"&&f.declaration_kind!=="function"&&(f.kind="state",f.mutated=!0)}}});break}}})}if(e.options)for(let C of e.options.attributes)C.name==="accessors"&&S.runes&&Hs(C),C.name==="customElement"&&!E&&Af(C),C.name==="immutable"&&S.runes&&Vs(C);if(nR(a,S),S.runes){let C=s.scope.references.get("$$props");C&&Hm(C[0].node);let P=s.scope.references.get("$$restProps");P&&zm(P[0].node);for(let{ast:R,scope:L,scopes:H}of[s,a,d]){let se={scope:L,scopes:H,analysis:S,options:r,ast_type:R===a.ast?"instance":R===d.ast?"template":"module",fragment:R===d.ast?R:null,parent_element:null,in_declaration_tag:!1,has_props_rune:!1,component_slots:new Set,expression:null,state_fields:new Map,function_depth:L.function_depth,reactive_statement:null,derived_function_depth:-1};re(R,se,k1)}for(let R of[s.scope,a.scope])e:for(let[L,H]of R.declarations)if(H.kind==="normal"&&H.reassigned){t:for(let{path:se}of H.references)if(se[0].type==="Fragment"){for(let c=1;c<se.length;c+=1){let f=se[c].type;if(f==="FunctionDeclaration"||f==="FunctionExpression"||f==="ArrowFunctionExpression")continue t;if(f==="BindDirective"&&se[c].name==="this"){for(let b=c-1;b>=0;b-=1){let x=se[b].type;if(x==="IfBlock"||x==="EachBlock"||x==="AwaitBlock"||x==="KeyBlock"){Lc(H.node,L);continue e}}continue t}}Lc(H.node,L);continue e}}}else{a.scope.declare(w("$$props"),"rest_prop","synthetic"),a.scope.declare(w("$$restProps"),"rest_prop","synthetic");for(let{ast:C,scope:P,scopes:R}of[s,a,d]){let L={scope:P,scopes:R,analysis:S,options:r,fragment:C===d.ast?C:null,parent_element:null,in_declaration_tag:!1,has_props_rune:!1,ast_type:C===a.ast?"instance":C===d.ast?"template":"module",reactive_statement:null,component_slots:new Set,expression:null,state_fields:new Map,function_depth:P.function_depth,derived_function_depth:-1};re(C,L,k1)}for(let[C,P]of a.scope.declarations)(P.kind==="prop"||P.kind==="bindable_prop")&&P.node.name!=="$$props"&&!P.references.filter(L=>L.node!==P.node&&L.path.at(-1)?.type!=="ExportSpecifier").length&&!a.scope.declarations.has(`$${C}`)&&Mf(P.node,C);S.reactive_statements=oR(S.reactive_statements)}for(let C of S.module.ast.body)if(C.type==="ExportNamedDeclaration"&&C.specifiers!==null&&C.source==null)for(let P of C.specifiers){if(P.local.type!=="Identifier")continue;let R=P.local.name,L=S.module.scope.get(R);L?L.initial?.type==="SnippetBlock"&&(S.css.has_global=!0):[...S.snippets].find(H=>H.expression.name===R)?ih(P):Mm(P,R)}S.event_directive_node&&S.uses_event_attributes&&a_(S.event_directive_node,S.event_directive_node.name);for(let[C,P]of S.snippet_renderers){P||(C.metadata.snippets=S.snippets);for(let R of C.metadata.snippets)R.metadata.sites.add(C)}if(S.uses_render_tags&&(S.uses_slots||!S.custom_element&&S.slot_names.size>0)){let C=S.slot_names.values().next().value??S.source.indexOf("$$slot");__(C)}if(S.css.ast){Bb(S.css.ast,S),Ub(S.css.ast,S.elements);let{comment:C}=S.css.ast.content;C&&mr(C.start,C.data,S.runes).includes("css_unused_selector")||Gb(S.css.ast)}for(let C of S.elements){C.metadata.scoped&&ct(C)&&ae(C.metadata.path);let P=!1,R=!1,L=!1,H=!1,se=!1;for(let c of C.attributes)if(c.type==="SpreadAttribute"){L=!0;break}else c.type==="Attribute"?(P||=c.name.toLowerCase()==="class",R||=c.name.toLowerCase()==="style"):c.type==="ClassDirective"?H=!0:c.type==="StyleDirective"&&(se=!0);!L&&!P&&(C.metadata.scoped||H)&&C.attributes.push(Ct("class",null,-1,-1,[{type:"Text",data:"",raw:"",start:-1,end:-1}])),!L&&!R&&se&&C.attributes.push(Ct("style",null,-1,-1,[{type:"Text",data:"",raw:"",start:-1,end:-1}]))}return S}function nR(e,t){let r=(m,h,_,v)=>{v.has(m)||(v.add(m),re(m,{scope:h},{_(E,l){let o=e.scopes.get(E);o?l.next({scope:o}):l.next()},ImportDeclaration(E){},Identifier(E,l){let o=l.path.at(-1);if(Ve(E,o)){let g=l.state.scope.get(E.name);if(g){_.add(g);for(let k of g.assignments)r(k.value,k.scope,_,v)}}}}))},i=(m,h,_,v)=>{function E(g,k){for(let S of Ut(g)){let C=Ie(S);if(!C)return;let P=k.get(C.name);if(!P)return;_.add(P)}}let l=new Set,o=new Set;re(m,{scope:v},{_(g,k){let S=e.scopes.get(g);S?k.next({scope:S}):k.next()},AssignmentExpression(g,k){E(g.left,k.state.scope)},UpdateExpression(g,k){E(g.argument,k.state.scope)},CallExpression(g,k){he(g,k.state.scope)!=="$effect"&&r(g,k.state.scope,_,l)},Identifier(g,k){let S=k.path.at(-1);if(Ve(g,S)){let C=k.state.scope.get(g.name);C&&h.add(C)}},ReturnStatement(g,k){g.argument&&r(g.argument,k.state.scope,h,o)},ArrowFunctionExpression(g,k){},FunctionDeclaration(g,k){},FunctionExpression(g,k){}})},s=!1,a=[],n=w("$$promises");function p(m,h){t.instance_body.declarations.push(m);let _=e.scope.get(m.name);_.blocker=h}function u(){a.length!==0&&(t.instance_body.async.push({nodes:a,has_await:!1}),a=[])}let d=[];for(let m of e.ast.body){if(m.type==="ImportDeclaration"){t.instance_body.hoisted.push(m);continue}if(m.type==="ExportDefaultDeclaration"||m.type==="ExportAllDeclaration")continue;if(m.type==="ExportNamedDeclaration")if(m.declaration)m=m.declaration;else continue;let h=Ft(m);if(s||=h,m.type==="FunctionDeclaration")t.instance_body.sync.push(m),d.push(m);else if(m.type==="VariableDeclaration"){for(let _ of m.declarations)if(he(_.init,e.scope)!=="$props.id")if(_.init?.type==="ArrowFunctionExpression"||_.init?.type==="FunctionExpression")t.instance_body.sync.push(m.declarations.length===1?m:lt(m.kind,[_])),d.push(_);else if(!s)t.instance_body.sync.push(m.declarations.length===1?m:lt(m.kind,[_]));else{let v=new Set,E=new Set;i(_,v,E,e.scope),h&&u();let l=X(n,T(t.instance_body.async.length),!0);for(let o of E)o.blocker=l;for(let o of ue(_.id))p(o,l);h?t.instance_body.async.push({nodes:[_],has_await:!0}):a.push(_)}}else if(s){let _=new Set,v=new Set;i(m,_,v,e.scope),h&&u();let E=X(n,T(t.instance_body.async.length),!0);for(let l of v)l.blocker=E;m.type==="ClassDeclaration"&&p(m.id,E),h?t.instance_body.async.push({nodes:[m],has_await:!0}):a.push(m)}else t.instance_body.sync.push(m)}if(s){u();for(let[m,h]of e.scope.declarations){if(h.kind!=="store_sub")continue;let _=e.scope.get(m.slice(1))?.blocker;_&&(!h.blocker||h.blocker.property.value<_.property.value)&&(h.blocker=_)}for(let m of d){let h=new Set,_=m.type==="VariableDeclarator"?m.init:m,v=e.scopes.get(_);_.body.type==="BlockStatement"?i(_.body,h,h,v):r(_.body,v,h,new Set);let E=[...h].reduce((g,k)=>{if(k.blocker){let S=k.blocker.property;return Math.max(S.value,g)}return g},-1);if(E===-1)continue;let l=X(n,T(E),!0),o=(m.type==="FunctionDeclaration",e.scope.get(m.id.name));o.blocker=l}}}function oR(e){let t=new Map;for(let[n,p]of e)for(let u of p.assignments){let d=t.get(u.node.name)??[];d.push([n,p]),t.set(u.node.name,d)}let r=[];for(let[,{assignments:n,dependencies:p}]of e)for(let u of n)for(let d of p)n.has(d)||r.push([u.node.name,d.node.name]);let i=ms(r);if(i?.length){let n=t.get(i[0])[0];Xm(n[0],i.join(" \u2192 "))}let s=new Map,a=(n,p)=>{if(!s.has(n)){for(let u of p.dependencies)if(!p.assignments.has(u))for(let[d,m]of t.get(u.node.name)??[])a(d,m);s.set(n,p)}};for(let[n,p]of e)a(n,p);return s}var Ll=class e{#e;#t;#r;#i=!1;multiline=!1;constructor(t,r=[],i=null){this.#e=t,this.#t=r,this.#r=i}indent(){this.#t.push(2)}dedent(){this.#t.push(3)}margin(){this.#t.push(0)}newline(){this.#i=!0,this.#t.push(1)}space(){this.#t.push(4)}append(t){this.#t.push(t.#t),(this.#i||t.multiline)&&(this.multiline=!0)}write(t,r){let i=this.#r&&t.trim(),s=i?this.#r?.consume(i,r?.loc?.start,r?.loc?.end):void 0;if(r?.loc)this.location(r.loc.start.line,r.loc.start.column),this.#t.push(t),this.location(r.loc.end.line,r.loc.end.column);else if(s&&i){let a=t.indexOf(i),n=a+i.length;a>0&&this.#t.push(t.slice(0,a)),this.location(s.start.line,s.start.column),this.#t.push(i),this.location(s.end.line,s.end.column),n<t.length&&this.#t.push(t.slice(n))}else this.#t.push(t);this.#i&&(this.multiline=!0)}location(t,r){this.#t.push({type:"Location",line:t,column:r})}visit(t){let r=this.#e[t.type];if(!r){let a=`Not implemented: ${t.type}`;throw t.type.includes("TS")&&(a+=" (consider using 'esrap/languages/ts')"),t.type.includes("JSX")&&(a+=" (consider using 'esrap/languages/tsx')"),new Error(a)}let i=this.#r,s=i?.enter(t);this.#e._?this.#e._(t,this,a=>r(a,this)):r(t,this),s&&i?.exit(t,s)}empty(){return!this.#t.some(C1)}measure(){return S1(this.#t)}new(){return new e(this.#e,[],this.#r)}};function S1(e,t=0,r=e.length){let i=0;for(let s=t;s<r;s+=1){let a=e[s];typeof a=="string"?i+=a.length:Array.isArray(a)&&(i+=S1(a))}return i}function C1(e){return Array.isArray(e)?e.some(C1):typeof e=="string"?e.length>0:!1}var lR=new Set(["string","num","bigint","decimal","regexp","template","invalidTemplate","privateId","jsxText","eof"]),cR=new Set(["Punctuator","Keyword","Identifier","Boolean","Null","JSXIdentifier"]),Ol={")":"(","]":"[","}":"{"};function pR(e){let{type:t,value:r}=e;if(typeof t=="object"&&t!==null){let i=t.label;return i===void 0||lR.has(i)?null:i==="jsxTagStart"?"<":i==="jsxTagEnd"?">":typeof r=="string"?r:i}return typeof t=="string"&&cR.has(t)&&typeof r=="string"?r:null}function Di(e,t){return e.line-t.line||e.column-t.column}var Dl=class{#e=[];#t={lo:0,hi:0,openers:[]};constructor(t){let r=[];for(let s of t){if(!s.loc)continue;let a=pR(s);a!==null&&r.push({value:a,start:s.loc.start,end:s.loc.end,pair:-1})}r.sort((s,a)=>Di(s.start,a.start));for(let s of r){let a=this.#e[this.#e.length-1];a&&Di(a.start,s.start)===0?this.#e[this.#e.length-1]=s:(!a||Di(a.end,s.start)<=0)&&this.#e.push(s)}let i=[];for(let s=0;s<this.#e.length;s+=1){let{value:a}=this.#e[s];if(a==="("||a==="["||a==="{"||a==="${")i.push(s);else if(a in Ol){let n=i.pop();if(n===void 0)continue;let p=this.#e[n].value;(p===Ol[a]||a==="}"&&p==="${")&&(this.#e[n].pair=s,this.#e[s].pair=n)}}}enter(t){let r=this.#t;if(t.loc){let i=this.#r(t.loc.start),s=this.#r(t.loc.end);r.lo>i&&r.lo<s&&(i=r.lo),this.#t={lo:i,hi:s,openers:[]}}else this.#t={lo:0,hi:0,openers:[]};return r}exit(t,r){this.#t=r,t.loc&&this.skip(t.loc.end)}skip(t){this.#t.lo=Math.max(this.#t.lo,this.#r(t))}consume(t,r,i){let s=this.#t,a=t==="("||t==="["||t==="{"||t==="${";if(t in Ol){let u=s.openers[s.openers.length-1];if(u&&(u.value===Ol[t]||t==="}"&&u.value==="${")){s.openers.pop();let d=u.pair;return d===-1||d>=s.hi?void 0:(s.lo=Math.max(s.lo,d+1),this.#e[d])}}let n=s.lo<s.hi?this.#e[s.lo]:void 0,p=n!==void 0&&n.value===t&&(!r||Di(n.start,r)>=0)&&(!i||Di(n.end,i)<=0);if(a&&s.openers.push({value:t,pair:p?n.pair:-1}),p)return s.lo+=1,n}#r(t){let r=0,i=this.#e.length;for(;r<i;){let s=r+i>>1;Di(this.#e[s].start,t)<0?r=s+1:i=s}return r}};var Au=()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")};typeof window<"u"&&typeof window.btoa=="function"?Au=e=>window.btoa(unescape(encodeURIComponent(e))):typeof Buffer=="function"&&(Au=e=>Buffer.from(e,"utf-8").toString("base64"));var $u=class{version=3;names=[];constructor(t,r){this.sources=[r.sourceMapSource||null],this.sourcesContent=[r.sourceMapContent||null],this.mappings=r.sourceMapEncodeMappings===!1?t:Mr(t)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+Au(this.toString())}};function Ru(e,t,r={}){let i=[],s=r.tokens?new Dl(r.tokens):null;new Ll(t,i,s).visit(e);let n="",p=0,u=[],d=[];function m(P){n+=P;for(let R=0;R<P.length;R+=1)P[R]===`
|
|
191
|
+
https://svelte.dev/e/void_element_invalid_content`)}var la=fd,pp=la.extend(km());function up(e,t,r,i){let s=r?pp:la,{onComment:a,add_comments:n}=mp(e,t),p=s.prototype.parseStatement;i&&(s.prototype.parseStatement=function(...u){let d=p.call(this,...u);return this.undefinedExports={},d});try{let u=s.parse(e,{onComment:a,sourceType:"module",ecmaVersion:16,locations:!0});return n(u),u}catch(u){return fp(u)}finally{i&&(s.prototype.parseStatement=p)}}function _r(e,t,r){let i=e.ts?pp:la,{onComment:s,add_comments:a}=mp(t,e.root.comments,r);try{let n=i.parseExpressionAt(t,r,{onComment:s,sourceType:"module",ecmaVersion:16,locations:!0,preserveParens:!0,startLocation:Z_(e,r)});return a(n),n}catch(n){fp(n)}}function Y_(e,t,r){let i=e.ts?pp:la,{onComment:s,add_comments:a}=mp(t,e.root.comments,r);try{let n=new i({onComment:s,sourceType:"module",ecmaVersion:16,locations:!0,startLocation:Z_(e,r)},t,r);n.nextToken();let p=n.parseStatement(null,!0,Object.create(null));return a(p),p}catch(n){n.pos===t.length&&Je(t.length),fp(n)}}var hE=/\r(?!\n)|[\u2028\u2029]/,cp="",J_=!0;function Z_(e,t){return dp(e)?_e(t):void 0}function dp(e){return e.template!==cp&&(cp=e.template,J_=!hE.test(cp)),J_}var _E=/ \(\d+:\d+\)$/;function fp(e){r_(e.pos,e.message.replace(_E,""))}function wi(e){return re(e,null,{ParenthesizedExpression(t,r){return r.visit(t.expression)}})}function mp(e,t,r=0){return{onComment:(i,s,a,n,p,u)=>{if(i&&/\n/.test(s)){let d=a;for(;d>0&&e[d-1]!==`
|
|
192
|
+
`;)d-=1;let m=d;for(;/[ \t]/.test(e[m]);)m+=1;let h=e.slice(d,m);s=s.replace(new RegExp(`^${h}`,"gm"),"")}t.push({type:i?"Block":"Line",value:s,start:a,end:n,loc:{start:p,end:u}})},add_comments(i){t.length!==0&&(t=t.filter(s=>s.start>=r).map(({type:s,value:a,start:n,end:p})=>({type:s,value:a,start:n,end:p})),re(i,null,{_(s,{next:a,path:n}){let p;for(;t[0]&&t[0].start<s.start;)p=t.shift(),(s.leadingComments||=[]).push(p);if(a(),t[0]){let u=n.at(-1);if(u===void 0||s.end!==u.end){let d=e.slice(s.end,t[0].start);if((u?.type==="BlockStatement"||u?.type==="Program")&&u.body.indexOf(s)===u.body.length-1||u?.type==="ArrayExpression"&&u.elements.indexOf(s)===u.elements.length-1||u?.type==="ObjectExpression"&&u.properties.indexOf(s)===u.properties.length-1){let h=s.end;for(;t.length;){let _=t[0];if(u&&_.start>=u.end)break;(s.trailingComments||=[]).push(_),t.shift(),h=_.end}}else s.end<=t[0].start&&/^[,) \t]*$/.test(d)&&(s.trailingComments=[t.shift()])}}}}),t.length>0&&(t[0].start>=i.end||i.type==="Program")&&(i.trailingComments||=[]).push(...t.splice(0)))}}}function hp(e){return e<0?1/0:e}function yE(e,t,r){let i;return r==="`"?i=e:i=e.slice(0,hp(e.indexOf(`
|
|
193
|
+
`,t))),_p(i,t,r)}function gE(e,t){let r=_p(e,t,"/"),i=_p(e,t,`
|
|
194
|
+
`);return r<i?r:1/0}function _p(e,t,r){let i=t;for(;;){let s=e.indexOf(r,i);if(s===-1)return 1/0;if(vE(e,s-1)%2===0)return s;i=s+1}}function vE(e,t){let r=t,i=0;for(;e[r]==="\\";)i++,r--;return i}function pa(e,t,r){let i=ca[r],s=1,a=t;for(;s>0&&a<e.length;){let n=e[a];switch(n){case"'":case'"':case"`":a=yE(e,a+1,n)+1;continue;case"/":{let p=e[a+1];if(!p){a++;continue}if(p==="/"){a=hp(e.indexOf(`
|
|
195
|
+
`,a+1))+1;continue}if(p==="*"){a=hp(e.indexOf("*/",a+1))+2;continue}let u=gE(e,a+1)+1;u===1/0?a++:a=u;continue}default:{let p=e[a];if(p===r?s++:p===i&&s--,s===0)return a;a++}}}}var ca={"{":"}","(":")","[":"]"},wE=new Set(Object.values(ca));function os(e,t,r=ca){let i=r===ca?wE:new Set(Object.values(r)),s=[],a=t;for(;a<e.template.length;){let n=e.template[a++];if(n==="'"||n==='"'||n==="`"){a=xE(e,a,n);continue}if(n in r)s.push(n);else if(i.has(n)){let p=s.pop(),u=r[p];if(n!==u&&dt(a-1,u),s.length===0)return a}}Je(e.template.length)}function xE(e,t,r){let i=!1,s=t;for(;s<e.template.length;){let a=e.template[s++];if(i){i=!1;continue}if(a===r)return s;a==="\\"&&(i=!0),r==="`"&&a==="$"&&e.template[s]==="{"&&(s=os(e,s))}K_(t)}function bp(e,t){let r=pa(e.template,e.index,t??"{");if(r){let i=e.index;return e.index=r,{type:"Identifier",start:i,end:r,name:""}}}function Ke(e,t,r){let i=kE(e);if(i)return i;try{let s=_r(e,e.template,e.index),a=s.end,n=e.root.comments.at(-1);return n&&n.end>a&&(a=n.end),e.index=a,wi(s)}catch(s){if(e.loose&&!r){let a=bp(e,t);if(a)return a}throw s}}function kE(e){if(!dp(e))return null;let t=e.template,r=e.index;e.allow_whitespace();let i=e.index,s=Q_(t,i);if(s===-1||Br(t.slice(i,s)))return e.index=r,null;let a=eb(t,i,s);for(;t[s]===".";){let n=Q_(t,s+1);if(n===-1)return e.index=r,null;a={type:"MemberExpression",start:i,end:n,loc:{start:ua(i),end:ua(n)},object:a,property:eb(t,s+1,n),computed:!1,optional:!1},s=n}return e.index=s,e.allow_whitespace(),e.match("}")?(e.index=s,a):(e.index=r,null)}function Q_(e,t){if(t>=e.length)return-1;let r=e.codePointAt(t);if(!Os(r,!0))return-1;let i=t+(r<=65535?1:2);for(;i<e.length;){let s=e.codePointAt(i);if(!Ds(s,!0))break;i+=s<=65535?1:2}return i}function eb(e,t,r){return{type:"Identifier",start:t,end:r,loc:{start:ua(t),end:ua(r)},name:e.slice(t,r)}}function ua(e){let{line:t,column:r}=_e(e);return{line:t,column:r}}function Vr(e){return e.replace(/(`|\${|\\)/g,"\\$1")}function z(e=[]){return{type:"ArrayExpression",elements:e}}function br(e){return{type:"ArrayPattern",elements:e}}function da(e,t){return{type:"AssignmentPattern",left:e,right:t}}function j(e,t,r=!1){return r&&t.type==="AwaitExpression"&&!Ft(t.argument)?j(e,t.argument):{type:"ArrowFunctionExpression",params:e,body:t,expression:t.type!=="BlockStatement",generator:!1,async:r}}function ee(e,t,r){return{type:"AssignmentExpression",operator:e,left:t,right:r}}function et(e){return{type:"AwaitExpression",argument:e}}function kt(e,t,r){return{type:"BinaryExpression",operator:e,left:t,right:r}}function M(e){return{type:"BlockStatement",body:e}}function tb(e,t){return{type:"LabeledStatement",label:w(e),body:t}}function y(e,...t){typeof e=="string"&&(e=w(e)),t=t.slice();let r=t.length,i=!0;for(;r--;)t[r]?i=!1:i?t.pop():t[r]=Te;return{type:"CallExpression",callee:e,arguments:t,optional:!1}}function Bt(e,...t){let r=y(e,...t);return r.optional=!0,{type:"ChainExpression",expression:r}}function ls(e,t){return{type:"UnaryExpression",argument:t,operator:e,prefix:!0}}var Te=ls("void",T(0));function it(e,t,r){return{type:"LogicalExpression",operator:e,left:t,right:r}}function lt(e,t){return{type:"VariableDeclaration",kind:e,declarations:t}}function ne(e,t){return typeof e=="string"&&(e=w(e)),{type:"VariableDeclarator",id:e,init:t}}var ce={type:"EmptyStatement"};function zr(e){return{type:"ExportDefaultDeclaration",declaration:e}}function rb(e,t,r,i=!1){return{type:"ForOfStatement",left:e,right:t,body:r,await:i}}function Wr(e,t,r,i=!1){return{type:"FunctionDeclaration",id:e,params:t,body:r,generator:!1,async:i}}function tt(e,t){return ye("get",Be(e),Ue(null,[],M(t)))}function w(e,t){let r={type:"Identifier",name:e};return t&&(r.loc=t),r}function ib(e){return{type:"PrivateIdentifier",name:e}}function EE(e){return{type:"ImportNamespaceSpecifier",local:w(e)}}function Y(e,t){return ye("init",Be(e),t)}function T(e){return{type:"Literal",value:e}}function X(e,t,r=!1,i=!1){return typeof t=="string"&&(t=w(t)),{type:"MemberExpression",object:e,property:t,computed:r,optional:i}}function yr(e){let t=e.split("."),r=w(t[0]);for(let i=1;i<t.length;i+=1)r=X(r,w(t[i]));return r}function J(e){return{type:"ObjectExpression",properties:e}}function Gr(e){return{type:"ObjectPattern",properties:e}}function ye(e,t,r,i=!1){return{type:"Property",kind:e,key:t,value:r,method:!1,shorthand:!1,computed:i}}function Kr(e,t,r=!1,i=!1){return{type:"PropertyDefinition",decorators:[],key:e,value:t,computed:r,static:i}}function Et(e,t=!1){return{type:"TemplateElement",value:{raw:Vr(e),cooked:e},tail:t}}function xi(e){return{type:"RestElement",argument:e}}function Oe(e){return{type:"SequenceExpression",expressions:e}}function St(e,t){return ye("set",Be(e),Ue(null,[w("$$value")],M(t)))}function ft(e){return{type:"SpreadElement",argument:e}}function $(e){return{type:"ExpressionStatement",expression:e}}function gr(e,t){return{type:"TemplateLiteral",quasis:e,expressions:t}}function O(e,t=!1){return yp(j([],e,t))}function yp(e){return e.async===!1&&e.body.type==="CallExpression"&&e.body.callee.type==="Identifier"&&e.params.length===e.body.arguments.length&&e.params.every((t,r)=>{let i=e.body.arguments[r];return t.type==="Identifier"&&i.type==="Identifier"&&t.name===i.name})?e.body.callee:e}function fa(e,...t){return typeof e=="string"&&(e=w(e)),{callee:e,arguments:t,type:"NewExpression"}}function ma(e,t,r=!1){return{type:"UpdateExpression",operator:e,argument:t,prefix:r}}function sb(e,t){return{type:"DoWhileStatement",test:e,body:t}}var Z=T(!0),Jt=T(!1),st=T(null),ha={type:"DebuggerStatement"},rt={type:"ThisExpression"};function De(e,t){return lt("let",[ne(e,t)])}function ge(e,t){return lt("const",[ne(e,t)])}function te(e,t){return lt("var",[ne(e,t)])}function ab(e,t,r,i){return{type:"ForStatement",init:e,test:t,update:r,body:i}}function jt(e,t,r,i,s=!1,a=!1){return{type:"MethodDefinition",decorators:[],key:t,kind:e,value:Ue(null,r,M(i)),computed:s,static:a}}function Ue(e,t,r,i=!1){return{type:"FunctionExpression",id:e,params:t,body:r,generator:!1,async:i}}function qe(e,t,r){return{type:"IfStatement",test:e,consequent:t,alternate:r}}function _a(e,t){return{type:"ImportDeclaration",attributes:[],source:T(t),specifiers:[EE(e)]}}function Yt(e,t){return{type:"ImportDeclaration",attributes:[],source:T(t),specifiers:e.map(r=>({type:"ImportSpecifier",imported:w(r[0]),local:w(r[1])}))}}function le(e=null){return{type:"ReturnStatement",argument:e}}function nb(e){return{type:"ThrowStatement",argument:fa("Error",T(e))}}function Be(e){return Ji.test(e)?w(e):T(e)}function Ie(e){for(;e.type==="MemberExpression";)e=e.object;return e.type!=="Identifier"?null:e}function me(e){return Array.isArray(e.value)&&e.value.length===1&&e.value[0].type==="Text"}function Qt(e){return e.value!==!0&&!Array.isArray(e.value)||Array.isArray(e.value)&&e.value.length===1&&e.value[0].type==="ExpressionTag"}function mt(e){return Array.isArray(e.value)?e.value[0].expression:e.value.expression}function vr(e){return Array.isArray(e)?e:typeof e=="boolean"?[]:[e]}function Pe(e){return Qt(e)&&e.name.startsWith("on")}function Ut(e,t=[]){switch(e.type){case"Identifier":t.push(e);break;case"MemberExpression":t.push(e);break;case"ObjectPattern":for(let r of e.properties)r.type==="RestElement"?Ut(r.argument,t):Ut(r.value,t);break;case"ArrayPattern":for(let r of e.elements)r&&Ut(r,t);break;case"RestElement":Ut(e.argument,t);break;case"AssignmentPattern":Ut(e.left,t);break}return t}function ue(e){return Ut(e,[]).filter(t=>t.type==="Identifier")}function ba(e){let t=[],r=[];return re(e,{},{Identifier(i,{path:s}){let a=s.at(-1);(a?.type!=="MemberExpression"||a.property!==i||a.computed)&&t.push(i),a?.type==="MemberExpression"&&a.computed&&a.property===i?r.push(`[${i.name}]`):r.push(i.name)},Literal(i,{path:s}){let a=typeof i.value=="string"?`"${i.value}"`:String(i.value),n=s.at(-1);n?.type==="MemberExpression"&&n.computed&&n.property===i?r.push(`[${a}]`):r.push(a)},ThisExpression(i,{next:s}){r.push("this"),s()}}),[r.join("."),t]}function cs(e,t=[]){switch(e.type){case"Identifier":t.push(e);break;case"ObjectExpression":for(let r of e.properties)r.type==="Property"?cs(r.value,t):cs(r.argument,t);break;case"ArrayExpression":for(let r of e.elements)r&&cs(r,t);break}return t}function Xe(e,t){let r=[],i=[];return ki(i,r,e,t,t,!1),{inserts:r,paths:i}}function ki(e,t,r,i,s,a){switch(r.type){case"Identifier":case"MemberExpression":e.push({node:r,is_rest:!1,has_default_value:a,expression:i,update_expression:s});break;case"ObjectPattern":for(let n of r.properties)if(n.type==="RestElement"){let p=[];for(let d of r.properties)d.type==="Property"&&(d.key.type==="Identifier"&&!d.computed?p.push(T(d.key.name)):d.key.type==="Literal"?p.push(T(String(d.key.value))):p.push(y("String",d.key)));let u=y("$.exclude_from_object",i,z(p));n.argument.type==="Identifier"?e.push({node:n.argument,is_rest:!0,has_default_value:a,expression:u,update_expression:u}):ki(e,t,n.argument,u,u,a)}else{let p=X(i,n.key,n.computed||n.key.type!=="Identifier");ki(e,t,n.value,p,p,a)}break;case"ArrayPattern":{let n=w("#"),p=y("$.to_array",i,r.elements.at(-1)?.type==="RestElement"?void 0:T(r.elements.length));t.push({id:n,value:p});for(let u=0;u<r.elements.length;u+=1){let d=r.elements[u];if(d)if(d.type==="RestElement"){let m=y(X(n,"slice"),T(u));d.argument.type==="Identifier"?e.push({node:d.argument,is_rest:!0,has_default_value:a,expression:m,update_expression:m}):ki(e,t,d.argument,m,m,a)}else{let m=X(n,T(u),!0);ki(e,t,d,m,m,a)}}break}case"AssignmentPattern":{let n=ya(i,r.right);r.left.type==="Identifier"?e.push({node:r.left,is_rest:!1,has_default_value:!0,expression:n,update_expression:s}):ki(e,t,r.left,n,s,!0);break}}return e}function er(e,t){let r=e.at(t);return r.type==="TSNonNullExpression"||r.type==="TSAsExpression"?e.at(t<0?t-1:t+1):r}function Zt(e){return e.type==="Literal"||e.type==="Identifier"||e.type==="ArrowFunctionExpression"||e.type==="FunctionExpression"?!0:e.type==="ConditionalExpression"?Zt(e.test)&&Zt(e.consequent)&&Zt(e.alternate):e.type==="BinaryExpression"||e.type==="LogicalExpression"?e.left.type!=="PrivateIdentifier"&&Zt(e.left)&&Zt(e.right):!1}function wr(e){return e.type==="ChainExpression"?e.expression:e}function we(e){switch(e.type){case"AwaitExpression":return!0;case"ArrayPattern":return e.elements.some(t=>t&&we(t));case"ArrayExpression":return e.elements.some(t=>t?t.type==="SpreadElement"?we(t.argument):we(t):!1);case"AssignmentPattern":case"AssignmentExpression":case"BinaryExpression":case"LogicalExpression":return e.left.type!=="PrivateIdentifier"&&we(e.left)||we(e.right);case"CallExpression":case"NewExpression":return e.callee.type!=="Super"&&we(e.callee)||e.arguments.some(t=>t.type==="SpreadElement"?we(t.argument):we(t));case"ChainExpression":return we(e.expression);case"ConditionalExpression":return we(e.test)||we(e.alternate)||we(e.consequent);case"ImportExpression":return we(e.source);case"MemberExpression":return e.object.type!=="Super"&&we(e.object)||e.property.type!=="PrivateIdentifier"&&we(e.property);case"ObjectPattern":case"ObjectExpression":return e.properties.some(t=>{if(t.type==="SpreadElement")return we(t.argument);if(t.type==="Property")return we(t.key)||we(t.value)});case"RestElement":return we(e.argument);case"SequenceExpression":case"TemplateLiteral":return e.expressions.some(t=>we(t));case"TaggedTemplateExpression":return we(e.tag)||we(e.quasi);case"UnaryExpression":case"UpdateExpression":return we(e.argument);case"YieldExpression":return e.argument?we(e.argument):!1;default:return!1}}function ya(e,t){return Zt(t)?y("$.fallback",e,t):t.type==="AwaitExpression"&&Zt(t.argument)?et(y("$.fallback",e,t.argument)):we(t)?et(y("$.fallback",e,O(t,!0),Z)):y("$.fallback",e,O(t),Z)}function Xr(e,t,r){return e==="="?r:["||=","&&=","??="].includes(e)?it(e.slice(0,-1),t,r):kt(e.slice(0,-1),t,r)}function Ft(e){let t=!1;return re(e,null,{AwaitExpression(r,i){t=!0,i.stop()},FunctionDeclaration(){},FunctionExpression(){},ArrowFunctionExpression(){}}),t}function tr(e){return y(et(y("$.save",e)))}var SE=/<\/script\s*>/,CE=/<\/script\s*>/y,TE=["server","client","worker","test","default"],PE=["context","generics","lang","module"];function ob(e,t,r){let i=e.index,s=e.read_until_regex(SE);e.index>=e.template.length&&sa(e.template.length,"script");let a=e.template.slice(0,i).replace(bd," ")+s;e.read(CE);let n=up(a,e.root.comments,e.ts,!0);n.start=i,n.loc&&({line:n.loc.start.line,column:n.loc.start.column}=_e(t),{line:n.loc.end.line,column:n.loc.end.column}=_e(e.index));let p="default";for(let u of r)TE.includes(u.name)&&p_(u,u.name),PE.includes(u.name)||tm(u),u.name==="module"&&(u.value!==!0&&c_(u,u.name),p="module"),u.name==="context"&&((u.value===!0||!me(u))&&sp(u),u.value[0].data!=="module"&&sp(u),p="module");return{type:"Script",start:t,end:e.index,context:p,content:n,attributes:r}}var AE=/[~^$*|]?=/y,$E=/[\s\]]/,RE=/[a-zA-Z]+/y,pb=/(\+|~|>|\|\|)/y,lb=/\d+(\.\d+)?%/y,cb=/(even|odd|\+?(\d+|\d*n(\s*[+-]\s*\d+)?)|-\d*n(\s*\+\s*\d+))((?=\s*[,)])|\s+of(\s+|(?=[.#[*:&])))/y,qE=/[\s:]/,IE=/-?\d/y,NE=/[a-zA-Z0-9_-]/,ME=/\\[0-9a-fA-F]{1,6}(\r\n|\s)?/y;function vp(e,t,r){let i=e.index;e.css_comments=[];let s=LE(e,n=>n.match("</style")||n.index>=n.template.length),a=e.index;return e.eat("</style",!0),e.read(/\s*>/y),{type:"StyleSheet",start:t,end:e.index,attributes:r,children:s,comments:e.css_comments,content:{start:i,end:a,styles:e.template.slice(i,a),comment:null}}}function LE(e,t){let r=[];for(;Ei(e),!t(e);)e.match("@")?r.push(ub(e)):r.push(db(e));return r}function ub(e){let t=e.index;e.eat("@",!0);let r=rr(e),i=wp(e),s=null;return e.match("{")?s=fb(e):e.eat(";",!0),{type:"Atrule",start:t,end:e.index,name:r,prelude:i,block:s}}function db(e){let t=e.index;return{type:"Rule",prelude:gp(e),block:fb(e),start:t,end:e.index,metadata:{parent_rule:null,has_local_selectors:!1,has_global_selectors:!1,is_global_block:!1}}}function gp(e,t=!1){let r=[];Ei(e);let i=e.index;for(;e.index<e.template.length;){r.push(OE(e,t));let s=e.index;if(Ei(e),t?e.match(")"):e.match("{"))return{type:"SelectorList",start:i,end:s,children:r};e.eat(",",!0),Ei(e)}Je(e.template.length)}function OE(e,t=!1){let r=e.index,i=[];function s(n,p){return{type:"RelativeSelector",combinator:n,selectors:[],start:p,end:-1,metadata:{is_global:!1,is_global_like:!1,scoped:!1}}}let a=s(null,e.index);for(;e.index<e.template.length;){let n=e.index;if(e.eat("&"))a.selectors.push({type:"NestingSelector",name:"&",start:n,end:e.index});else if(e.eat("*")){let d="*",m;e.eat("|")&&(m=d,d=e.eat("*")?"*":rr(e)),a.selectors.push({type:"TypeSelector",name:d,...m!==void 0&&{namespace:m},start:n,end:e.index})}else if(e.eat("#"))a.selectors.push({type:"IdSelector",name:rr(e),start:n,end:e.index});else if(e.eat("."))a.selectors.push({type:"ClassSelector",name:rr(e),start:n,end:e.index});else if(e.eat("::")){let d=rr(e),m=null;e.eat("(")&&(m=gp(e,!0),e.eat(")",!0)),a.selectors.push({type:"PseudoElementSelector",name:d,start:n,end:e.index,...m&&{args:m}})}else if(e.eat(":")){let d=rr(e),m=null;e.eat("(")&&(m=gp(e,!0),e.eat(")",!0)),a.selectors.push({type:"PseudoClassSelector",name:d,args:m,start:n,end:e.index})}else if(e.eat("[")){e.allow_whitespace();let d=rr(e);e.allow_whitespace();let m=null,h=e.read(AE);h&&(e.allow_whitespace(),m=FE(e)),e.allow_whitespace();let _=e.read(RE);e.allow_whitespace(),e.eat("]",!0),a.selectors.push({type:"AttributeSelector",start:n,end:e.index,name:d,matcher:h,value:m,flags:_})}else if(t&&e.match_regex(cb))a.selectors.push({type:"Nth",value:e.read(cb),start:n,end:e.index});else if(e.match_regex(lb))a.selectors.push({type:"Percentage",value:e.read(lb),start:n,end:e.index});else if(!e.match_regex(pb)){let d=rr(e),m;e.eat("|")&&(m=d,d=e.eat("*")?"*":rr(e)),a.selectors.push({type:"TypeSelector",name:d,...m!==void 0&&{namespace:m},start:n,end:e.index})}let p=e.index;if(Ei(e,!1),e.match(",")||(t?e.match(")"):e.match("{")))return e.index=p,a.end=p,i.push(a),{type:"ComplexSelector",start:r,end:p,children:i,metadata:{rule:null,is_global:!1,used:!1}};e.index=p;let u=DE(e);u&&(a.selectors.length>0&&(a.end=p,i.push(a)),a=s(u,u.start),e.allow_whitespace(),(e.match(",")||(t?e.match(")"):e.match("{")))&&ea(e.index))}Je(e.template.length)}function DE(e){let t=e.index;e.allow_whitespace();let r=e.index,i=e.read(pb);if(i){let s=e.index;return e.allow_whitespace(),{type:"Combinator",name:i,start:r,end:s}}return e.index!==t?{type:"Combinator",name:" ",start:t,end:e.index}:null}function fb(e){let t=e.index;e.eat("{",!0);let r=[];for(;e.index<e.template.length&&(Ei(e),!e.match("}"));)r.push(BE(e));return e.eat("}",!0),{type:"Block",start:t,end:e.index,children:r}}function BE(e){if(e.match("@"))return ub(e);let t=e.index;wp(e,!1);let r=e.template[e.index];return e.index=t,r==="{"?db(e):jE(e)}function jE(e){let t=e.index,r=e.read_until_regex(qE);e.allow_whitespace(),e.eat(":");let i=e.index;e.allow_whitespace();let s=wp(e);!s&&!r.startsWith("--")&&lh({start:t,end:i});let a=e.index;return e.match("}")||e.eat(";",!0),{type:"Declaration",start:t,end:a,property:r,value:s}}function wp(e,t=!0){let r="",i=[],s=!1,a=!1,n=null;for(;e.index<e.template.length;){let p=e.template[e.index];if(s){r+="\\"+p,s=!1,e.index++;continue}else if(p==="\\"){s=!0,e.index++;continue}else if(p===n)n=null;else if(p===")")a=!1;else if(n===null&&(p==='"'||p==="'"))n=p;else if(p==="("&&r.slice(-3)==="url")a=!0;else if((p===";"||p==="{"||p==="}")&&!a&&!n){let u=r.length-r.trimStart().length;for(let d of i)d.position=Math.max(0,d.position-u);return r.trim()}else if(p==="/"&&!a&&!n&&e.template[e.index+1]==="*"){let u=mb(e);t&&(u.position=r.length,e.css_comments.push(u),i.push(u));continue}r+=p,e.index++}Je(e.template.length)}function FE(e){let t="",r=!1,i=e.eat('"')?'"':e.eat("'")?"'":null;for(;e.index<e.template.length;){let s=e.template[e.index];if(r)t+="\\"+s,r=!1;else if(s==="\\")r=!0;else{if(i?s===i:$E.test(s))return i&&e.eat(i,!0),t.trim();t+=s}e.index++}Je(e.template.length)}function rr(e){let t=e.index,r="";for(e.match_regex(IE)&&Xc(t);e.index<e.template.length;){let i=e.template[e.index];if(i==="\\"){let s=e.match_regex(ME);if(s){let a=String.fromCodePoint(parseInt(s.slice(1),16));r+=a==="\\"?"\\\\":a,e.index+=s.length}else r+="\\"+e.template[e.index+1],e.index+=2}else if(i.codePointAt(0)>=160||NE.test(i))r+=i,e.index++;else break}return r===""&&Xc(t),r}function Ei(e,t=!0){for(e.allow_whitespace();e.match("/*")||e.match("<!--");){if(e.match("/*")){let r=mb(e);t&&e.css_comments.push(r)}e.eat("<!--")&&(e.read_until("-->"),e.eat("-->",!0)),e.allow_whitespace()}}function mb(e){let t=e.index;e.eat("/*",!0);let r=e.read_until("*/");e.eat("*/",!0);let i=e.index;return{type:"CSSComment",value:r,start:t,end:i}}var xp={"CounterClockwiseContourIntegral;":8755,"ClockwiseContourIntegral;":8754,"DoubleLongLeftRightArrow;":10234,"NotNestedGreaterGreater;":10914,"DiacriticalDoubleAcute;":733,"NotSquareSupersetEqual;":8931,"CloseCurlyDoubleQuote;":8221,"DoubleContourIntegral;":8751,"FilledVerySmallSquare;":9642,"NegativeVeryThinSpace;":8203,"NotPrecedesSlantEqual;":8928,"NotRightTriangleEqual;":8941,"NotSucceedsSlantEqual;":8929,"CapitalDifferentialD;":8517,"DoubleLeftRightArrow;":8660,"DoubleLongRightArrow;":10233,"EmptyVerySmallSquare;":9643,"NestedGreaterGreater;":8811,"NotDoubleVerticalBar;":8742,"NotGreaterSlantEqual;":10878,"NotLeftTriangleEqual;":8940,"NotSquareSubsetEqual;":8930,"OpenCurlyDoubleQuote;":8220,"ReverseUpEquilibrium;":10607,"DoubleLongLeftArrow;":10232,"DownLeftRightVector;":10576,"LeftArrowRightArrow;":8646,"NegativeMediumSpace;":8203,"NotGreaterFullEqual;":8807,"NotRightTriangleBar;":10704,"RightArrowLeftArrow;":8644,"SquareSupersetEqual;":8850,"leftrightsquigarrow;":8621,"DownRightTeeVector;":10591,"DownRightVectorBar;":10583,"LongLeftRightArrow;":10231,"Longleftrightarrow;":10234,"NegativeThickSpace;":8203,"NotLeftTriangleBar;":10703,"PrecedesSlantEqual;":8828,"ReverseEquilibrium;":8651,"RightDoubleBracket;":10215,"RightDownTeeVector;":10589,"RightDownVectorBar;":10581,"RightTriangleEqual;":8885,"SquareIntersection;":8851,"SucceedsSlantEqual;":8829,"blacktriangleright;":9656,"longleftrightarrow;":10231,"DoubleUpDownArrow;":8661,"DoubleVerticalBar;":8741,"DownLeftTeeVector;":10590,"DownLeftVectorBar;":10582,"FilledSmallSquare;":9724,"GreaterSlantEqual;":10878,"LeftDoubleBracket;":10214,"LeftDownTeeVector;":10593,"LeftDownVectorBar;":10585,"LeftTriangleEqual;":8884,"NegativeThinSpace;":8203,"NotGreaterGreater;":8811,"NotLessSlantEqual;":10877,"NotNestedLessLess;":10913,"NotReverseElement;":8716,"NotSquareSuperset;":8848,"NotTildeFullEqual;":8775,"RightAngleBracket;":10217,"RightUpDownVector;":10575,"SquareSubsetEqual;":8849,"VerticalSeparator;":10072,"blacktriangledown;":9662,"blacktriangleleft;":9666,"leftrightharpoons;":8651,"rightleftharpoons;":8652,"twoheadrightarrow;":8608,"DiacriticalAcute;":180,"DiacriticalGrave;":96,"DiacriticalTilde;":732,"DoubleRightArrow;":8658,"DownArrowUpArrow;":8693,"EmptySmallSquare;":9723,"GreaterEqualLess;":8923,"GreaterFullEqual;":8807,"LeftAngleBracket;":10216,"LeftUpDownVector;":10577,"LessEqualGreater;":8922,"NonBreakingSpace;":160,"NotPrecedesEqual;":10927,"NotRightTriangle;":8939,"NotSucceedsEqual;":10928,"NotSucceedsTilde;":8831,"NotSupersetEqual;":8841,"RightTriangleBar;":10704,"RightUpTeeVector;":10588,"RightUpVectorBar;":10580,"UnderParenthesis;":9181,"UpArrowDownArrow;":8645,"circlearrowright;":8635,"downharpoonright;":8642,"ntrianglerighteq;":8941,"rightharpoondown;":8641,"rightrightarrows;":8649,"twoheadleftarrow;":8606,"vartriangleright;":8883,"CloseCurlyQuote;":8217,"ContourIntegral;":8750,"DoubleDownArrow;":8659,"DoubleLeftArrow;":8656,"DownRightVector;":8641,"LeftRightVector;":10574,"LeftTriangleBar;":10703,"LeftUpTeeVector;":10592,"LeftUpVectorBar;":10584,"LowerRightArrow;":8600,"NotGreaterEqual;":8817,"NotGreaterTilde;":8821,"NotHumpDownHump;":8782,"NotLeftTriangle;":8938,"NotSquareSubset;":8847,"OverParenthesis;":9180,"RightDownVector;":8642,"ShortRightArrow;":8594,"UpperRightArrow;":8599,"bigtriangledown;":9661,"circlearrowleft;":8634,"curvearrowright;":8631,"downharpoonleft;":8643,"leftharpoondown;":8637,"leftrightarrows;":8646,"nLeftrightarrow;":8654,"nleftrightarrow;":8622,"ntrianglelefteq;":8940,"rightleftarrows;":8644,"rightsquigarrow;":8605,"rightthreetimes;":8908,"straightepsilon;":1013,"trianglerighteq;":8885,"vartriangleleft;":8882,"DiacriticalDot;":729,"DoubleRightTee;":8872,"DownLeftVector;":8637,"GreaterGreater;":10914,"HorizontalLine;":9472,"InvisibleComma;":8291,"InvisibleTimes;":8290,"LeftDownVector;":8643,"LeftRightArrow;":8596,"Leftrightarrow;":8660,"LessSlantEqual;":10877,"LongRightArrow;":10230,"Longrightarrow;":10233,"LowerLeftArrow;":8601,"NestedLessLess;":8810,"NotGreaterLess;":8825,"NotLessGreater;":8824,"NotSubsetEqual;":8840,"NotVerticalBar;":8740,"OpenCurlyQuote;":8216,"ReverseElement;":8715,"RightTeeVector;":10587,"RightVectorBar;":10579,"ShortDownArrow;":8595,"ShortLeftArrow;":8592,"SquareSuperset;":8848,"TildeFullEqual;":8773,"UpperLeftArrow;":8598,"ZeroWidthSpace;":8203,"curvearrowleft;":8630,"doublebarwedge;":8966,"downdownarrows;":8650,"hookrightarrow;":8618,"leftleftarrows;":8647,"leftrightarrow;":8596,"leftthreetimes;":8907,"longrightarrow;":10230,"looparrowright;":8620,"nshortparallel;":8742,"ntriangleright;":8939,"rightarrowtail;":8611,"rightharpoonup;":8640,"trianglelefteq;":8884,"upharpoonright;":8638,"ApplyFunction;":8289,"DifferentialD;":8518,"DoubleLeftTee;":10980,"DoubleUpArrow;":8657,"LeftTeeVector;":10586,"LeftVectorBar;":10578,"LessFullEqual;":8806,"LongLeftArrow;":10229,"Longleftarrow;":10232,"NotEqualTilde;":8770,"NotTildeEqual;":8772,"NotTildeTilde;":8777,"Poincareplane;":8460,"PrecedesEqual;":10927,"PrecedesTilde;":8830,"RightArrowBar;":8677,"RightTeeArrow;":8614,"RightTriangle;":8883,"RightUpVector;":8638,"SucceedsEqual;":10928,"SucceedsTilde;":8831,"SupersetEqual;":8839,"UpEquilibrium;":10606,"VerticalTilde;":8768,"VeryThinSpace;":8202,"bigtriangleup;":9651,"blacktriangle;":9652,"divideontimes;":8903,"fallingdotseq;":8786,"hookleftarrow;":8617,"leftarrowtail;":8610,"leftharpoonup;":8636,"longleftarrow;":10229,"looparrowleft;":8619,"measuredangle;":8737,"ntriangleleft;":8938,"shortparallel;":8741,"smallsetminus;":8726,"triangleright;":9657,"upharpoonleft;":8639,"varsubsetneqq;":10955,"varsupsetneqq;":10956,"DownArrowBar;":10515,"DownTeeArrow;":8615,"ExponentialE;":8519,"GreaterEqual;":8805,"GreaterTilde;":8819,"HilbertSpace;":8459,"HumpDownHump;":8782,"Intersection;":8898,"LeftArrowBar;":8676,"LeftTeeArrow;":8612,"LeftTriangle;":8882,"LeftUpVector;":8639,"NotCongruent;":8802,"NotHumpEqual;":8783,"NotLessEqual;":8816,"NotLessTilde;":8820,"Proportional;":8733,"RightCeiling;":8969,"RoundImplies;":10608,"ShortUpArrow;":8593,"SquareSubset;":8847,"UnderBracket;":9141,"VerticalLine;":124,"blacklozenge;":10731,"exponentiale;":8519,"risingdotseq;":8787,"triangledown;":9663,"triangleleft;":9667,"varsubsetneq;":8842,"varsupsetneq;":8843,"CircleMinus;":8854,"CircleTimes;":8855,"Equilibrium;":8652,"GreaterLess;":8823,"LeftCeiling;":8968,"LessGreater;":8822,"MediumSpace;":8287,"NotLessLess;":8810,"NotPrecedes;":8832,"NotSucceeds;":8833,"NotSuperset;":8835,"OverBracket;":9140,"RightVector;":8640,"Rrightarrow;":8667,"RuleDelayed;":10740,"SmallCircle;":8728,"SquareUnion;":8852,"SubsetEqual;":8838,"UpDownArrow;":8597,"Updownarrow;":8661,"VerticalBar;":8739,"backepsilon;":1014,"blacksquare;":9642,"circledcirc;":8858,"circleddash;":8861,"curlyeqprec;":8926,"curlyeqsucc;":8927,"diamondsuit;":9830,"eqslantless;":10901,"expectation;":8496,"nRightarrow;":8655,"nrightarrow;":8603,"preccurlyeq;":8828,"precnapprox;":10937,"quaternions;":8461,"straightphi;":981,"succcurlyeq;":8829,"succnapprox;":10938,"thickapprox;":8776,"updownarrow;":8597,"Bernoullis;":8492,"CirclePlus;":8853,"EqualTilde;":8770,"Fouriertrf;":8497,"ImaginaryI;":8520,"Laplacetrf;":8466,"LeftVector;":8636,"Lleftarrow;":8666,"NotElement;":8713,"NotGreater;":8815,"Proportion;":8759,"RightArrow;":8594,"RightFloor;":8971,"Rightarrow;":8658,"ThickSpace;":8287,"TildeEqual;":8771,"TildeTilde;":8776,"UnderBrace;":9183,"UpArrowBar;":10514,"UpTeeArrow;":8613,"circledast;":8859,"complement;":8705,"curlywedge;":8911,"eqslantgtr;":10902,"gtreqqless;":10892,"lessapprox;":10885,"lesseqqgtr;":10891,"lmoustache;":9136,"longmapsto;":10236,"mapstodown;":8615,"mapstoleft;":8612,"nLeftarrow;":8653,"nleftarrow;":8602,"nsubseteqq;":10949,"nsupseteqq;":10950,"precapprox;":10935,"rightarrow;":8594,"rmoustache;":9137,"sqsubseteq;":8849,"sqsupseteq;":8850,"subsetneqq;":10955,"succapprox;":10936,"supsetneqq;":10956,"upuparrows;":8648,"varepsilon;":1013,"varnothing;":8709,"Backslash;":8726,"CenterDot;":183,"CircleDot;":8857,"Congruent;":8801,"Coproduct;":8720,"DoubleDot;":168,"DownArrow;":8595,"DownBreve;":785,"Downarrow;":8659,"HumpEqual;":8783,"LeftArrow;":8592,"LeftFloor;":8970,"Leftarrow;":8656,"LessTilde;":8818,"Mellintrf;":8499,"MinusPlus;":8723,"NotCupCap;":8813,"NotExists;":8708,"NotSubset;":8834,"OverBrace;":9182,"PlusMinus;":177,"Therefore;":8756,"ThinSpace;":8201,"TripleDot;":8411,"UnionPlus;":8846,"backprime;":8245,"backsimeq;":8909,"bigotimes;":10754,"centerdot;":183,"checkmark;":10003,"complexes;":8450,"dotsquare;":8865,"downarrow;":8595,"gtrapprox;":10886,"gtreqless;":8923,"gvertneqq;":8809,"heartsuit;":9829,"leftarrow;":8592,"lesseqgtr;":8922,"lvertneqq;":8808,"ngeqslant;":10878,"nleqslant;":10877,"nparallel;":8742,"nshortmid;":8740,"nsubseteq;":8840,"nsupseteq;":8841,"pitchfork;":8916,"rationals;":8474,"spadesuit;":9824,"subseteqq;":10949,"subsetneq;":8842,"supseteqq;":10950,"supsetneq;":8843,"therefore;":8756,"triangleq;":8796,"varpropto;":8733,"DDotrahd;":10513,"DotEqual;":8784,"Integral;":8747,"LessLess;":10913,"NotEqual;":8800,"NotTilde;":8769,"PartialD;":8706,"Precedes;":8826,"RightTee;":8866,"Succeeds;":8827,"SuchThat;":8715,"Superset;":8835,"Uarrocir;":10569,"UnderBar;":95,"andslope;":10840,"angmsdaa;":10664,"angmsdab;":10665,"angmsdac;":10666,"angmsdad;":10667,"angmsdae;":10668,"angmsdaf;":10669,"angmsdag;":10670,"angmsdah;":10671,"angrtvbd;":10653,"approxeq;":8778,"awconint;":8755,"backcong;":8780,"barwedge;":8965,"bbrktbrk;":9142,"bigoplus;":10753,"bigsqcup;":10758,"biguplus;":10756,"bigwedge;":8896,"boxminus;":8863,"boxtimes;":8864,"bsolhsub;":10184,"capbrcup;":10825,"circledR;":174,"circledS;":9416,"cirfnint;":10768,"clubsuit;":9827,"cupbrcap;":10824,"curlyvee;":8910,"cwconint;":8754,"doteqdot;":8785,"dotminus;":8760,"drbkarow;":10512,"dzigrarr;":10239,"elinters;":9191,"emptyset;":8709,"eqvparsl;":10725,"fpartint;":10765,"geqslant;":10878,"gesdotol;":10884,"gnapprox;":10890,"hksearow;":10533,"hkswarow;":10534,"imagline;":8464,"imagpart;":8465,"infintie;":10717,"integers;":8484,"intercal;":8890,"intlarhk;":10775,"laemptyv;":10676,"ldrushar;":10571,"leqslant;":10877,"lesdotor;":10883,"llcorner;":8990,"lnapprox;":10889,"lrcorner;":8991,"lurdshar;":10570,"mapstoup;":8613,"multimap;":8888,"naturals;":8469,"ncongdot;":10861,"notindot;":8949,"otimesas;":10806,"parallel;":8741,"plusacir;":10787,"pointint;":10773,"precneqq;":10933,"precnsim;":8936,"profalar;":9006,"profline;":8978,"profsurf;":8979,"raemptyv;":10675,"realpart;":8476,"rppolint;":10770,"rtriltri;":10702,"scpolint;":10771,"setminus;":8726,"shortmid;":8739,"smeparsl;":10724,"sqsubset;":8847,"sqsupset;":8848,"subseteq;":8838,"succneqq;":10934,"succnsim;":8937,"supseteq;":8839,"thetasym;":977,"thicksim;":8764,"timesbar;":10801,"triangle;":9653,"triminus;":10810,"trpezium;":9186,"ulcorner;":8988,"urcorner;":8989,"varkappa;":1008,"varsigma;":962,"vartheta;":977,"Because;":8757,"Cayleys;":8493,"Cconint;":8752,"Cedilla;":184,"Diamond;":8900,"DownTee;":8868,"Element;":8712,"Epsilon;":917,"Implies;":8658,"LeftTee;":8867,"NewLine;":10,"NoBreak;":8288,"NotLess;":8814,"Omicron;":927,"OverBar;":8254,"Product;":8719,"UpArrow;":8593,"Uparrow;":8657,"Upsilon;":933,"alefsym;":8501,"angrtvb;":8894,"angzarr;":9084,"asympeq;":8781,"backsim;":8765,"because;":8757,"bemptyv;":10672,"between;":8812,"bigcirc;":9711,"bigodot;":10752,"bigstar;":9733,"bnequiv;":8801,"boxplus;":8862,"ccupssm;":10832,"cemptyv;":10674,"cirscir;":10690,"coloneq;":8788,"congdot;":10861,"cudarrl;":10552,"cudarrr;":10549,"cularrp;":10557,"curarrm;":10556,"dbkarow;":10511,"ddagger;":8225,"ddotseq;":10871,"demptyv;":10673,"diamond;":8900,"digamma;":989,"dotplus;":8724,"dwangle;":10662,"epsilon;":949,"eqcolon;":8789,"equivDD;":10872,"gesdoto;":10882,"gtquest;":10876,"gtrless;":8823,"harrcir;":10568,"intprod;":10812,"isindot;":8949,"larrbfs;":10527,"larrsim;":10611,"lbrksld;":10639,"lbrkslu;":10637,"ldrdhar;":10599,"lesdoto;":10881,"lessdot;":8918,"lessgtr;":8822,"lesssim;":8818,"lotimes;":10804,"lozenge;":9674,"ltquest;":10875,"luruhar;":10598,"maltese;":10016,"minusdu;":10794,"napprox;":8777,"natural;":9838,"nearrow;":8599,"nexists;":8708,"notinva;":8713,"notinvb;":8951,"notinvc;":8950,"notniva;":8716,"notnivb;":8958,"notnivc;":8957,"npolint;":10772,"npreceq;":10927,"nsqsube;":8930,"nsqsupe;":8931,"nsubset;":8834,"nsucceq;":10928,"nsupset;":8835,"nvinfin;":10718,"nvltrie;":8884,"nvrtrie;":8885,"nwarrow;":8598,"olcross;":10683,"omicron;":959,"orderof;":8500,"orslope;":10839,"pertenk;":8241,"planckh;":8462,"pluscir;":10786,"plussim;":10790,"plustwo;":10791,"precsim;":8830,"quatint;":10774,"questeq;":8799,"rarrbfs;":10528,"rarrsim;":10612,"rbrksld;":10638,"rbrkslu;":10640,"rdldhar;":10601,"realine;":8475,"rotimes;":10805,"ruluhar;":10600,"searrow;":8600,"simplus;":10788,"simrarr;":10610,"subedot;":10947,"submult;":10945,"subplus;":10943,"subrarr;":10617,"succsim;":8831,"supdsub;":10968,"supedot;":10948,"suphsol;":10185,"suphsub;":10967,"suplarr;":10619,"supmult;":10946,"supplus;":10944,"swarrow;":8601,"topfork;":10970,"triplus;":10809,"tritime;":10811,"uparrow;":8593,"upsilon;":965,"uwangle;":10663,"vzigzag;":10650,"zigrarr;":8669,"Aacute;":193,"Abreve;":258,"Agrave;":192,"Assign;":8788,"Atilde;":195,"Barwed;":8966,"Bumpeq;":8782,"Cacute;":262,"Ccaron;":268,"Ccedil;":199,"Colone;":10868,"Conint;":8751,"CupCap;":8781,"Dagger;":8225,"Dcaron;":270,"DotDot;":8412,"Dstrok;":272,"Eacute;":201,"Ecaron;":282,"Egrave;":200,"Exists;":8707,"ForAll;":8704,"Gammad;":988,"Gbreve;":286,"Gcedil;":290,"HARDcy;":1066,"Hstrok;":294,"Iacute;":205,"Igrave;":204,"Itilde;":296,"Jsercy;":1032,"Kcedil;":310,"Lacute;":313,"Lambda;":923,"Lcaron;":317,"Lcedil;":315,"Lmidot;":319,"Lstrok;":321,"Nacute;":323,"Ncaron;":327,"Ncedil;":325,"Ntilde;":209,"Oacute;":211,"Odblac;":336,"Ograve;":210,"Oslash;":216,"Otilde;":213,"Otimes;":10807,"Racute;":340,"Rarrtl;":10518,"Rcaron;":344,"Rcedil;":342,"SHCHcy;":1065,"SOFTcy;":1068,"Sacute;":346,"Scaron;":352,"Scedil;":350,"Square;":9633,"Subset;":8912,"Supset;":8913,"Tcaron;":356,"Tcedil;":354,"Tstrok;":358,"Uacute;":218,"Ubreve;":364,"Udblac;":368,"Ugrave;":217,"Utilde;":360,"Vdashl;":10982,"Verbar;":8214,"Vvdash;":8874,"Yacute;":221,"Zacute;":377,"Zcaron;":381,"aacute;":225,"abreve;":259,"agrave;":224,"andand;":10837,"angmsd;":8737,"angsph;":8738,"apacir;":10863,"approx;":8776,"atilde;":227,"barvee;":8893,"barwed;":8965,"becaus;":8757,"bernou;":8492,"bigcap;":8898,"bigcup;":8899,"bigvee;":8897,"bkarow;":10509,"bottom;":8869,"bowtie;":8904,"boxbox;":10697,"bprime;":8245,"brvbar;":166,"bullet;":8226,"bumpeq;":8783,"cacute;":263,"capand;":10820,"capcap;":10827,"capcup;":10823,"capdot;":10816,"ccaron;":269,"ccedil;":231,"circeq;":8791,"cirmid;":10991,"colone;":8788,"commat;":64,"compfn;":8728,"conint;":8750,"coprod;":8720,"copysr;":8471,"cularr;":8630,"cupcap;":10822,"cupcup;":10826,"cupdot;":8845,"curarr;":8631,"curren;":164,"cylcty;":9005,"dagger;":8224,"daleth;":8504,"dcaron;":271,"dfisht;":10623,"divide;":247,"divonx;":8903,"dlcorn;":8990,"dlcrop;":8973,"dollar;":36,"drcorn;":8991,"drcrop;":8972,"dstrok;":273,"eacute;":233,"easter;":10862,"ecaron;":283,"ecolon;":8789,"egrave;":232,"egsdot;":10904,"elsdot;":10903,"emptyv;":8709,"emsp13;":8196,"emsp14;":8197,"eparsl;":10723,"eqcirc;":8790,"equals;":61,"equest;":8799,"female;":9792,"ffilig;":64259,"ffllig;":64260,"forall;":8704,"frac12;":189,"frac13;":8531,"frac14;":188,"frac15;":8533,"frac16;":8537,"frac18;":8539,"frac23;":8532,"frac25;":8534,"frac34;":190,"frac35;":8535,"frac38;":8540,"frac45;":8536,"frac56;":8538,"frac58;":8541,"frac78;":8542,"gacute;":501,"gammad;":989,"gbreve;":287,"gesdot;":10880,"gesles;":10900,"gtlPar;":10645,"gtrarr;":10616,"gtrdot;":8919,"gtrsim;":8819,"hairsp;":8202,"hamilt;":8459,"hardcy;":1098,"hearts;":9829,"hellip;":8230,"hercon;":8889,"homtht;":8763,"horbar;":8213,"hslash;":8463,"hstrok;":295,"hybull;":8259,"hyphen;":8208,"iacute;":237,"igrave;":236,"iiiint;":10764,"iinfin;":10716,"incare;":8453,"inodot;":305,"intcal;":8890,"iquest;":191,"isinsv;":8947,"itilde;":297,"jsercy;":1112,"kappav;":1008,"kcedil;":311,"kgreen;":312,"lAtail;":10523,"lacute;":314,"lagran;":8466,"lambda;":955,"langle;":10216,"larrfs;":10525,"larrhk;":8617,"larrlp;":8619,"larrpl;":10553,"larrtl;":8610,"latail;":10521,"lbrace;":123,"lbrack;":91,"lcaron;":318,"lcedil;":316,"ldquor;":8222,"lesdot;":10879,"lesges;":10899,"lfisht;":10620,"lfloor;":8970,"lharul;":10602,"llhard;":10603,"lmidot;":320,"lmoust;":9136,"loplus;":10797,"lowast;":8727,"lowbar;":95,"lparlt;":10643,"lrhard;":10605,"lsaquo;":8249,"lsquor;":8218,"lstrok;":322,"lthree;":8907,"ltimes;":8905,"ltlarr;":10614,"ltrPar;":10646,"mapsto;":8614,"marker;":9646,"mcomma;":10793,"midast;":42,"midcir;":10992,"middot;":183,"minusb;":8863,"minusd;":8760,"mnplus;":8723,"models;":8871,"mstpos;":8766,"nVDash;":8879,"nVdash;":8878,"nacute;":324,"nbumpe;":8783,"ncaron;":328,"ncedil;":326,"nearhk;":10532,"nequiv;":8802,"nesear;":10536,"nexist;":8708,"nltrie;":8940,"notinE;":8953,"nparsl;":11005,"nprcue;":8928,"nrarrc;":10547,"nrarrw;":8605,"nrtrie;":8941,"nsccue;":8929,"nsimeq;":8772,"ntilde;":241,"numero;":8470,"nvDash;":8877,"nvHarr;":10500,"nvdash;":8876,"nvlArr;":10498,"nvrArr;":10499,"nwarhk;":10531,"nwnear;":10535,"oacute;":243,"odblac;":337,"odsold;":10684,"ograve;":242,"ominus;":8854,"origof;":8886,"oslash;":248,"otilde;":245,"otimes;":8855,"parsim;":10995,"percnt;":37,"period;":46,"permil;":8240,"phmmat;":8499,"planck;":8463,"plankv;":8463,"plusdo;":8724,"plusdu;":10789,"plusmn;":177,"preceq;":10927,"primes;":8473,"prnsim;":8936,"propto;":8733,"prurel;":8880,"puncsp;":8200,"qprime;":8279,"rAtail;":10524,"racute;":341,"rangle;":10217,"rarrap;":10613,"rarrfs;":10526,"rarrhk;":8618,"rarrlp;":8620,"rarrpl;":10565,"rarrtl;":8611,"ratail;":10522,"rbrace;":125,"rbrack;":93,"rcaron;":345,"rcedil;":343,"rdquor;":8221,"rfisht;":10621,"rfloor;":8971,"rharul;":10604,"rmoust;":9137,"roplus;":10798,"rpargt;":10644,"rsaquo;":8250,"rsquor;":8217,"rthree;":8908,"rtimes;":8906,"sacute;":347,"scaron;":353,"scedil;":351,"scnsim;":8937,"searhk;":10533,"seswar;":10537,"sfrown;":8994,"shchcy;":1097,"sigmaf;":962,"sigmav;":962,"simdot;":10858,"smashp;":10803,"softcy;":1100,"solbar;":9023,"spades;":9824,"sqcaps;":8851,"sqcups;":8852,"sqsube;":8849,"sqsupe;":8850,"square;":9633,"squarf;":9642,"ssetmn;":8726,"ssmile;":8995,"sstarf;":8902,"subdot;":10941,"subset;":8834,"subsim;":10951,"subsub;":10965,"subsup;":10963,"succeq;":10928,"supdot;":10942,"supset;":8835,"supsim;":10952,"supsub;":10964,"supsup;":10966,"swarhk;":10534,"swnwar;":10538,"target;":8982,"tcaron;":357,"tcedil;":355,"telrec;":8981,"there4;":8756,"thetav;":977,"thinsp;":8201,"thksim;":8764,"timesb;":8864,"timesd;":10800,"topbot;":9014,"topcir;":10993,"tprime;":8244,"tridot;":9708,"tstrok;":359,"uacute;":250,"ubreve;":365,"udblac;":369,"ufisht;":10622,"ugrave;":249,"ulcorn;":8988,"ulcrop;":8975,"urcorn;":8989,"urcrop;":8974,"utilde;":361,"vangrt;":10652,"varphi;":981,"varrho;":1009,"veebar;":8891,"vellip;":8942,"verbar;":124,"vsubnE;":10955,"vsubne;":8842,"vsupnE;":10956,"vsupne;":8843,"wedbar;":10847,"wedgeq;":8793,"weierp;":8472,"wreath;":8768,"xoplus;":10753,"xotime;":10754,"xsqcup;":10758,"xuplus;":10756,"xwedge;":8896,"yacute;":253,"zacute;":378,"zcaron;":382,"zeetrf;":8488,"AElig;":198,Aacute:193,"Acirc;":194,Agrave:192,"Alpha;":913,"Amacr;":256,"Aogon;":260,"Aring;":197,Atilde:195,"Breve;":728,Ccedil:199,"Ccirc;":264,"Colon;":8759,"Cross;":10799,"Dashv;":10980,"Delta;":916,Eacute:201,"Ecirc;":202,Egrave:200,"Emacr;":274,"Eogon;":280,"Equal;":10869,"Gamma;":915,"Gcirc;":284,"Hacek;":711,"Hcirc;":292,"IJlig;":306,Iacute:205,"Icirc;":206,Igrave:204,"Imacr;":298,"Iogon;":302,"Iukcy;":1030,"Jcirc;":308,"Jukcy;":1028,"Kappa;":922,Ntilde:209,"OElig;":338,Oacute:211,"Ocirc;":212,Ograve:210,"Omacr;":332,"Omega;":937,Oslash:216,Otilde:213,"Prime;":8243,"RBarr;":10512,"Scirc;":348,"Sigma;":931,"THORN;":222,"TRADE;":8482,"TSHcy;":1035,"Theta;":920,"Tilde;":8764,Uacute:218,"Ubrcy;":1038,"Ucirc;":219,Ugrave:217,"Umacr;":362,"Union;":8899,"Uogon;":370,"UpTee;":8869,"Uring;":366,"VDash;":8875,"Vdash;":8873,"Wcirc;":372,"Wedge;":8896,Yacute:221,"Ycirc;":374,aacute:225,"acirc;":226,"acute;":180,"aelig;":230,agrave:224,"aleph;":8501,"alpha;":945,"amacr;":257,"amalg;":10815,"angle;":8736,"angrt;":8735,"angst;":197,"aogon;":261,"aring;":229,"asymp;":8776,atilde:227,"awint;":10769,"bcong;":8780,"bdquo;":8222,"bepsi;":1014,"blank;":9251,"blk12;":9618,"blk14;":9617,"blk34;":9619,"block;":9608,"boxDL;":9559,"boxDR;":9556,"boxDl;":9558,"boxDr;":9555,"boxHD;":9574,"boxHU;":9577,"boxHd;":9572,"boxHu;":9575,"boxUL;":9565,"boxUR;":9562,"boxUl;":9564,"boxUr;":9561,"boxVH;":9580,"boxVL;":9571,"boxVR;":9568,"boxVh;":9579,"boxVl;":9570,"boxVr;":9567,"boxdL;":9557,"boxdR;":9554,"boxdl;":9488,"boxdr;":9484,"boxhD;":9573,"boxhU;":9576,"boxhd;":9516,"boxhu;":9524,"boxuL;":9563,"boxuR;":9560,"boxul;":9496,"boxur;":9492,"boxvH;":9578,"boxvL;":9569,"boxvR;":9566,"boxvh;":9532,"boxvl;":9508,"boxvr;":9500,"breve;":728,brvbar:166,"bsemi;":8271,"bsime;":8909,"bsolb;":10693,"bumpE;":10926,"bumpe;":8783,"caret;":8257,"caron;":711,"ccaps;":10829,ccedil:231,"ccirc;":265,"ccups;":10828,"cedil;":184,"check;":10003,"clubs;":9827,"colon;":58,"comma;":44,"crarr;":8629,"cross;":10007,"csube;":10961,"csupe;":10962,"ctdot;":8943,"cuepr;":8926,"cuesc;":8927,"cupor;":10821,curren:164,"cuvee;":8910,"cuwed;":8911,"cwint;":8753,"dashv;":8867,"dblac;":733,"ddarr;":8650,"delta;":948,"dharl;":8643,"dharr;":8642,"diams;":9830,"disin;":8946,divide:247,"doteq;":8784,"dtdot;":8945,"dtrif;":9662,"duarr;":8693,"duhar;":10607,"eDDot;":10871,eacute:233,"ecirc;":234,"efDot;":8786,egrave:232,"emacr;":275,"empty;":8709,"eogon;":281,"eplus;":10865,"epsiv;":1013,"eqsim;":8770,"equiv;":8801,"erDot;":8787,"erarr;":10609,"esdot;":8784,"exist;":8707,"fflig;":64256,"filig;":64257,"fjlig;":102,"fllig;":64258,"fltns;":9649,"forkv;":10969,frac12:189,frac14:188,frac34:190,"frasl;":8260,"frown;":8994,"gamma;":947,"gcirc;":285,"gescc;":10921,"gimel;":8503,"gneqq;":8809,"gnsim;":8935,"grave;":96,"gsime;":10894,"gsiml;":10896,"gtcir;":10874,"gtdot;":8919,"harrw;":8621,"hcirc;":293,"hoarr;":8703,iacute:237,"icirc;":238,"iexcl;":161,igrave:236,"iiint;":8749,"iiota;":8489,"ijlig;":307,"imacr;":299,"image;":8465,"imath;":305,"imped;":437,"infin;":8734,"iogon;":303,"iprod;":10812,iquest:191,"isinE;":8953,"isins;":8948,"isinv;":8712,"iukcy;":1110,"jcirc;":309,"jmath;":567,"jukcy;":1108,"kappa;":954,"lAarr;":8666,"lBarr;":10510,"langd;":10641,"laquo;":171,"larrb;":8676,"lates;":10925,"lbarr;":10508,"lbbrk;":10098,"lbrke;":10635,"lceil;":8968,"ldquo;":8220,"lescc;":10920,"lhard;":8637,"lharu;":8636,"lhblk;":9604,"llarr;":8647,"lltri;":9722,"lneqq;":8808,"lnsim;":8934,"loang;":10220,"loarr;":8701,"lobrk;":10214,"lopar;":10629,"lrarr;":8646,"lrhar;":8651,"lrtri;":8895,"lsime;":10893,"lsimg;":10895,"lsquo;":8216,"ltcir;":10873,"ltdot;":8918,"ltrie;":8884,"ltrif;":9666,"mDDot;":8762,"mdash;":8212,"micro;":181,middot:183,"minus;":8722,"mumap;":8888,"nabla;":8711,"napid;":8779,"napos;":329,"natur;":9838,"nbump;":8782,"ncong;":8775,"ndash;":8211,"neArr;":8663,"nearr;":8599,"nedot;":8784,"nesim;":8770,"ngeqq;":8807,"ngsim;":8821,"nhArr;":8654,"nharr;":8622,"nhpar;":10994,"nlArr;":8653,"nlarr;":8602,"nleqq;":8806,"nless;":8814,"nlsim;":8820,"nltri;":8938,"notin;":8713,"notni;":8716,"npart;":8706,"nprec;":8832,"nrArr;":8655,"nrarr;":8603,"nrtri;":8939,"nsime;":8772,"nsmid;":8740,"nspar;":8742,"nsubE;":10949,"nsube;":8840,"nsucc;":8833,"nsupE;":10950,"nsupe;":8841,ntilde:241,"numsp;":8199,"nvsim;":8764,"nwArr;":8662,"nwarr;":8598,oacute:243,"ocirc;":244,"odash;":8861,"oelig;":339,"ofcir;":10687,ograve:242,"ohbar;":10677,"olarr;":8634,"olcir;":10686,"oline;":8254,"omacr;":333,"omega;":969,"operp;":10681,"oplus;":8853,"orarr;":8635,"order;":8500,oslash:248,otilde:245,"ovbar;":9021,"parsl;":11005,"phone;":9742,"plusb;":8862,"pluse;":10866,plusmn:177,"pound;":163,"prcue;":8828,"prime;":8242,"prnap;":10937,"prsim;":8830,"quest;":63,"rAarr;":8667,"rBarr;":10511,"radic;":8730,"rangd;":10642,"range;":10661,"raquo;":187,"rarrb;":8677,"rarrc;":10547,"rarrw;":8605,"ratio;":8758,"rbarr;":10509,"rbbrk;":10099,"rbrke;":10636,"rceil;":8969,"rdquo;":8221,"reals;":8477,"rhard;":8641,"rharu;":8640,"rlarr;":8644,"rlhar;":8652,"rnmid;":10990,"roang;":10221,"roarr;":8702,"robrk;":10215,"ropar;":10630,"rrarr;":8649,"rsquo;":8217,"rtrie;":8885,"rtrif;":9656,"sbquo;":8218,"sccue;":8829,"scirc;":349,"scnap;":10938,"scsim;":8831,"sdotb;":8865,"sdote;":10854,"seArr;":8664,"searr;":8600,"setmn;":8726,"sharp;":9839,"sigma;":963,"simeq;":8771,"simgE;":10912,"simlE;":10911,"simne;":8774,"slarr;":8592,"smile;":8995,"smtes;":10924,"sqcap;":8851,"sqcup;":8852,"sqsub;":8847,"sqsup;":8848,"srarr;":8594,"starf;":9733,"strns;":175,"subnE;":10955,"subne;":8842,"supnE;":10956,"supne;":8843,"swArr;":8665,"swarr;":8601,"szlig;":223,"theta;":952,"thkap;":8776,"thorn;":254,"tilde;":732,"times;":215,"trade;":8482,"trisb;":10701,"tshcy;":1115,"twixt;":8812,uacute:250,"ubrcy;":1118,"ucirc;":251,"udarr;":8645,"udhar;":10606,ugrave:249,"uharl;":8639,"uharr;":8638,"uhblk;":9600,"ultri;":9720,"umacr;":363,"uogon;":371,"uplus;":8846,"upsih;":978,"uring;":367,"urtri;":9721,"utdot;":8944,"utrif;":9652,"uuarr;":8648,"vBarv;":10985,"vDash;":8872,"varpi;":982,"vdash;":8866,"veeeq;":8794,"vltri;":8882,"vnsub;":8834,"vnsup;":8835,"vprop;":8733,"vrtri;":8883,"wcirc;":373,"wedge;":8743,"xcirc;":9711,"xdtri;":9661,"xhArr;":10234,"xharr;":10231,"xlArr;":10232,"xlarr;":10229,"xodot;":10752,"xrArr;":10233,"xrarr;":10230,"xutri;":9651,yacute:253,"ycirc;":375,AElig:198,Acirc:194,"Aopf;":120120,Aring:197,"Ascr;":119964,"Auml;":196,"Barv;":10983,"Beta;":914,"Bopf;":120121,"Bscr;":8492,"CHcy;":1063,"COPY;":169,"Cdot;":266,"Copf;":8450,"Cscr;":119966,"DJcy;":1026,"DScy;":1029,"DZcy;":1039,"Darr;":8609,"Dopf;":120123,"Dscr;":119967,Ecirc:202,"Edot;":278,"Eopf;":120124,"Escr;":8496,"Esim;":10867,"Euml;":203,"Fopf;":120125,"Fscr;":8497,"GJcy;":1027,"Gdot;":288,"Gopf;":120126,"Gscr;":119970,"Hopf;":8461,"Hscr;":8459,"IEcy;":1045,"IOcy;":1025,Icirc:206,"Idot;":304,"Iopf;":120128,"Iota;":921,"Iscr;":8464,"Iuml;":207,"Jopf;":120129,"Jscr;":119973,"KHcy;":1061,"KJcy;":1036,"Kopf;":120130,"Kscr;":119974,"LJcy;":1033,"Lang;":10218,"Larr;":8606,"Lopf;":120131,"Lscr;":8466,"Mopf;":120132,"Mscr;":8499,"NJcy;":1034,"Nopf;":8469,"Nscr;":119977,Ocirc:212,"Oopf;":120134,"Oscr;":119978,"Ouml;":214,"Popf;":8473,"Pscr;":119979,"QUOT;":34,"Qopf;":8474,"Qscr;":119980,"Rang;":10219,"Rarr;":8608,"Ropf;":8477,"Rscr;":8475,"SHcy;":1064,"Sopf;":120138,"Sqrt;":8730,"Sscr;":119982,"Star;":8902,THORN:222,"TScy;":1062,"Topf;":120139,"Tscr;":119983,"Uarr;":8607,Ucirc:219,"Uopf;":120140,"Upsi;":978,"Uscr;":119984,"Uuml;":220,"Vbar;":10987,"Vert;":8214,"Vopf;":120141,"Vscr;":119985,"Wopf;":120142,"Wscr;":119986,"Xopf;":120143,"Xscr;":119987,"YAcy;":1071,"YIcy;":1031,"YUcy;":1070,"Yopf;":120144,"Yscr;":119988,"Yuml;":376,"ZHcy;":1046,"Zdot;":379,"Zeta;":918,"Zopf;":8484,"Zscr;":119989,acirc:226,acute:180,aelig:230,"andd;":10844,"andv;":10842,"ange;":10660,"aopf;":120146,"apid;":8779,"apos;":39,aring:229,"ascr;":119990,"auml;":228,"bNot;":10989,"bbrk;":9141,"beta;":946,"beth;":8502,"bnot;":8976,"bopf;":120147,"boxH;":9552,"boxV;":9553,"boxh;":9472,"boxv;":9474,"bscr;":119991,"bsim;":8765,"bsol;":92,"bull;":8226,"bump;":8782,"caps;":8745,"cdot;":267,cedil:184,"cent;":162,"chcy;":1095,"cirE;":10691,"circ;":710,"cire;":8791,"comp;":8705,"cong;":8773,"copf;":120148,"copy;":169,"cscr;":119992,"csub;":10959,"csup;":10960,"cups;":8746,"dArr;":8659,"dHar;":10597,"darr;":8595,"dash;":8208,"diam;":8900,"djcy;":1106,"dopf;":120149,"dscr;":119993,"dscy;":1109,"dsol;":10742,"dtri;":9663,"dzcy;":1119,"eDot;":8785,"ecir;":8790,ecirc:234,"edot;":279,"emsp;":8195,"ensp;":8194,"eopf;":120150,"epar;":8917,"epsi;":949,"escr;":8495,"esim;":8770,"euml;":235,"euro;":8364,"excl;":33,"flat;":9837,"fnof;":402,"fopf;":120151,"fork;":8916,"fscr;":119995,"gdot;":289,"geqq;":8807,"gesl;":8923,"gjcy;":1107,"gnap;":10890,"gneq;":10888,"gopf;":120152,"gscr;":8458,"gsim;":8819,"gtcc;":10919,"gvnE;":8809,"hArr;":8660,"half;":189,"harr;":8596,"hbar;":8463,"hopf;":120153,"hscr;":119997,icirc:238,"iecy;":1077,iexcl:161,"imof;":8887,"iocy;":1105,"iopf;":120154,"iota;":953,"iscr;":119998,"isin;":8712,"iuml;":239,"jopf;":120155,"jscr;":119999,"khcy;":1093,"kjcy;":1116,"kopf;":120156,"kscr;":12e4,"lArr;":8656,"lHar;":10594,"lang;":10216,laquo:171,"larr;":8592,"late;":10925,"lcub;":123,"ldca;":10550,"ldsh;":8626,"leqq;":8806,"lesg;":8922,"ljcy;":1113,"lnap;":10889,"lneq;":10887,"lopf;":120157,"lozf;":10731,"lpar;":40,"lscr;":120001,"lsim;":8818,"lsqb;":91,"ltcc;":10918,"ltri;":9667,"lvnE;":8808,"macr;":175,"male;":9794,"malt;":10016,micro:181,"mlcp;":10971,"mldr;":8230,"mopf;":120158,"mscr;":120002,"nGtv;":8811,"nLtv;":8810,"nang;":8736,"napE;":10864,"nbsp;":160,"ncap;":10819,"ncup;":10818,"ngeq;":8817,"nges;":10878,"ngtr;":8815,"nisd;":8954,"njcy;":1114,"nldr;":8229,"nleq;":8816,"nles;":10877,"nmid;":8740,"nopf;":120159,"npar;":8742,"npre;":10927,"nsce;":10928,"nscr;":120003,"nsim;":8769,"nsub;":8836,"nsup;":8837,"ntgl;":8825,"ntlg;":8824,"nvap;":8781,"nvge;":8805,"nvgt;":62,"nvle;":8804,"nvlt;":60,"oast;":8859,"ocir;":8858,ocirc:244,"odiv;":10808,"odot;":8857,"ogon;":731,"oint;":8750,"omid;":10678,"oopf;":120160,"opar;":10679,"ordf;":170,"ordm;":186,"oror;":10838,"oscr;":8500,"osol;":8856,"ouml;":246,"para;":182,"part;":8706,"perp;":8869,"phiv;":981,"plus;":43,"popf;":120161,pound:163,"prap;":10935,"prec;":8826,"prnE;":10933,"prod;":8719,"prop;":8733,"pscr;":120005,"qint;":10764,"qopf;":120162,"qscr;":120006,"quot;":34,"rArr;":8658,"rHar;":10596,"race;":8765,"rang;":10217,raquo:187,"rarr;":8594,"rcub;":125,"rdca;":10551,"rdsh;":8627,"real;":8476,"rect;":9645,"rhov;":1009,"ring;":730,"ropf;":120163,"rpar;":41,"rscr;":120007,"rsqb;":93,"rtri;":9657,"scap;":10936,"scnE;":10934,"sdot;":8901,"sect;":167,"semi;":59,"sext;":10038,"shcy;":1096,"sime;":8771,"simg;":10910,"siml;":10909,"smid;":8739,"smte;":10924,"solb;":10692,"sopf;":120164,"spar;":8741,"squf;":9642,"sscr;":120008,"star;":9734,"subE;":10949,"sube;":8838,"succ;":8827,"sung;":9834,"sup1;":185,"sup2;":178,"sup3;":179,"supE;":10950,"supe;":8839,szlig:223,"tbrk;":9140,"tdot;":8411,thorn:254,times:215,"tint;":8749,"toea;":10536,"topf;":120165,"tosa;":10537,"trie;":8796,"tscr;":120009,"tscy;":1094,"uArr;":8657,"uHar;":10595,"uarr;":8593,ucirc:251,"uopf;":120166,"upsi;":965,"uscr;":120010,"utri;":9653,"uuml;":252,"vArr;":8661,"vBar;":10984,"varr;":8597,"vert;":124,"vopf;":120167,"vscr;":120011,"wopf;":120168,"wscr;":120012,"xcap;":8898,"xcup;":8899,"xmap;":10236,"xnis;":8955,"xopf;":120169,"xscr;":120013,"xvee;":8897,"yacy;":1103,"yicy;":1111,"yopf;":120170,"yscr;":120014,"yucy;":1102,"yuml;":255,"zdot;":380,"zeta;":950,"zhcy;":1078,"zopf;":120171,"zscr;":120015,"zwnj;":8204,"AMP;":38,"Acy;":1040,"Afr;":120068,"And;":10835,Auml:196,"Bcy;":1041,"Bfr;":120069,COPY:169,"Cap;":8914,"Cfr;":8493,"Chi;":935,"Cup;":8915,"Dcy;":1044,"Del;":8711,"Dfr;":120071,"Dot;":168,"ENG;":330,"ETH;":208,"Ecy;":1069,"Efr;":120072,"Eta;":919,Euml:203,"Fcy;":1060,"Ffr;":120073,"Gcy;":1043,"Gfr;":120074,"Hat;":94,"Hfr;":8460,"Icy;":1048,"Ifr;":8465,"Int;":8748,Iuml:207,"Jcy;":1049,"Jfr;":120077,"Kcy;":1050,"Kfr;":120078,"Lcy;":1051,"Lfr;":120079,"Lsh;":8624,"Map;":10501,"Mcy;":1052,"Mfr;":120080,"Ncy;":1053,"Nfr;":120081,"Not;":10988,"Ocy;":1054,"Ofr;":120082,Ouml:214,"Pcy;":1055,"Pfr;":120083,"Phi;":934,"Psi;":936,QUOT:34,"Qfr;":120084,"REG;":174,"Rcy;":1056,"Rfr;":8476,"Rho;":929,"Rsh;":8625,"Scy;":1057,"Sfr;":120086,"Sub;":8912,"Sum;":8721,"Sup;":8913,"Tab;":9,"Tau;":932,"Tcy;":1058,"Tfr;":120087,"Ucy;":1059,"Ufr;":120088,Uuml:220,"Vcy;":1042,"Vee;":8897,"Vfr;":120089,"Wfr;":120090,"Xfr;":120091,"Ycy;":1067,"Yfr;":120092,"Zcy;":1047,"Zfr;":8488,"acE;":8766,"acd;":8767,"acy;":1072,"afr;":120094,"amp;":38,"and;":8743,"ang;":8736,"apE;":10864,"ape;":8778,"ast;":42,auml:228,"bcy;":1073,"bfr;":120095,"bne;":61,"bot;":8869,"cap;":8745,cent:162,"cfr;":120096,"chi;":967,"cir;":9675,copy:169,"cup;":8746,"dcy;":1076,"deg;":176,"dfr;":120097,"die;":168,"div;":247,"dot;":729,"ecy;":1101,"efr;":120098,"egs;":10902,"ell;":8467,"els;":10901,"eng;":331,"eta;":951,"eth;":240,euml:235,"fcy;":1092,"ffr;":120099,"gEl;":10892,"gap;":10886,"gcy;":1075,"gel;":8923,"geq;":8805,"ges;":10878,"gfr;":120100,"ggg;":8921,"glE;":10898,"gla;":10917,"glj;":10916,"gnE;":8809,"gne;":10888,"hfr;":120101,"icy;":1080,"iff;":8660,"ifr;":120102,"int;":8747,iuml:239,"jcy;":1081,"jfr;":120103,"kcy;":1082,"kfr;":120104,"lEg;":10891,"lap;":10885,"lat;":10923,"lcy;":1083,"leg;":8922,"leq;":8804,"les;":10877,"lfr;":120105,"lgE;":10897,"lnE;":8808,"lne;":10887,"loz;":9674,"lrm;":8206,"lsh;":8624,macr:175,"map;":8614,"mcy;":1084,"mfr;":120106,"mho;":8487,"mid;":8739,"nGg;":8921,"nGt;":8811,"nLl;":8920,"nLt;":8810,"nap;":8777,nbsp:160,"ncy;":1085,"nfr;":120107,"ngE;":8807,"nge;":8817,"ngt;":8815,"nis;":8956,"niv;":8715,"nlE;":8806,"nle;":8816,"nlt;":8814,"not;":172,"npr;":8832,"nsc;":8833,"num;":35,"ocy;":1086,"ofr;":120108,"ogt;":10689,"ohm;":937,"olt;":10688,"ord;":10845,ordf:170,ordm:186,"orv;":10843,ouml:246,"par;":8741,para:182,"pcy;":1087,"pfr;":120109,"phi;":966,"piv;":982,"prE;":10931,"pre;":10927,"psi;":968,"qfr;":120110,quot:34,"rcy;":1088,"reg;":174,"rfr;":120111,"rho;":961,"rlm;":8207,"rsh;":8625,"scE;":10932,"sce;":10928,"scy;":1089,sect:167,"sfr;":120112,"shy;":173,"sim;":8764,"smt;":10922,"sol;":47,"squ;":9633,"sub;":8834,"sum;":8721,sup1:185,sup2:178,sup3:179,"sup;":8835,"tau;":964,"tcy;":1090,"tfr;":120113,"top;":8868,"ucy;":1091,"ufr;":120114,"uml;":168,uuml:252,"vcy;":1074,"vee;":8744,"vfr;":120115,"wfr;":120116,"xfr;":120117,"ycy;":1099,"yen;":165,"yfr;":120118,yuml:255,"zcy;":1079,"zfr;":120119,"zwj;":8205,AMP:38,"DD;":8517,ETH:208,"GT;":62,"Gg;":8921,"Gt;":8811,"Im;":8465,"LT;":60,"Ll;":8920,"Lt;":8810,"Mu;":924,"Nu;":925,"Or;":10836,"Pi;":928,"Pr;":10939,REG:174,"Re;":8476,"Sc;":10940,"Xi;":926,"ac;":8766,"af;":8289,amp:38,"ap;":8776,"dd;":8518,deg:176,"ee;":8519,"eg;":10906,"el;":10905,eth:240,"gE;":8807,"ge;":8805,"gg;":8811,"gl;":8823,"gt;":62,"ic;":8291,"ii;":8520,"in;":8712,"it;":8290,"lE;":8806,"le;":8804,"lg;":8822,"ll;":8810,"lt;":60,"mp;":8723,"mu;":956,"ne;":8800,"ni;":8715,not:172,"nu;":957,"oS;":9416,"or;":8744,"pi;":960,"pm;":177,"pr;":8826,reg:174,"rx;":8478,"sc;":8827,shy:173,uml:168,"wp;":8472,"wr;":8768,"xi;":958,yen:165,GT:62,LT:60,gt:62,lt:60};var UE=[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,381,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,382,376];function HE(e,t){return t&&!e.endsWith(";")?`${e}\\b(?!=)`:e}function _b(e){let t="#(?:[xX][a-fA-F\\d]+|\\d+)(?:;)?",r=Object.keys(xp).map(s=>HE(s,e));return new RegExp(`&(${t}|${r.join("|")})`,"g")}var VE=_b(!1),zE=_b(!0);function ps(e,t){if(e.indexOf("&")===-1)return e;let r=t?zE:VE;return e.replace(r,(i,s)=>{let a;return s[0]!=="#"?a=xp[s]:s[1]==="x"||s[1]==="X"?a=parseInt(s.substring(2),16):a=parseInt(s.substring(1),10),a?String.fromCodePoint(WE(a,t)):i})}var hb=0;function WE(e,t){return e===10&&!t?32:e<128?e:e<=159?UE[e-128]:e<55296?e:e<=57343?hb:e<=65535||e>=65536&&e<=131071||e>=131072&&e<=196607||e>=917504&&e<=917631||e>=917760&&e<=917999?e:hb}var GE=["SvelteElement","RegularElement","SvelteFragment","Component","SvelteComponent","SvelteSelf","SlotElement"];function Si(e){return GE.includes(e.type)}function kp(e){return["Component","SvelteComponent","SvelteSelf"].includes(e.type)}function ct(e){return e.type==="RegularElement"&&(e.name.includes("-")||e.attributes.some(t=>t.type==="Attribute"&&t.name==="is"))}function He(e=!1){return{type:"Fragment",nodes:[],metadata:{transparent:e,dynamic:!1}}}function xr(e){let{nodes:t}=e.fragment;if(t.length>0){let r=t[0],i=t[t.length-1];R_({start:r.start,end:i.end},e.name)}}function Ct(e,t,r,i,s){return{type:"Attribute",start:r,end:i,name:e,name_loc:t,value:s,metadata:{delegated:!1,needs_clsx:!1}}}var ke=class{has_state=!1;has_call=!1;has_await=!1;has_pickled_await=!1;has_member_expression=!1;has_assignment=!1;dependencies=new Set;references=new Set;#e=null;#t(){if(!this.#e){this.#e=new Set;for(let t of this.references)t.blocker&&this.#e.add(t.blocker)}return this.#e}blockers(){return z([...this.#t()])}has_blockers(){return this.#t().size>0}has_more_blockers_than(t){for(let r of this.#t())if(!t.#t().has(r))return!0;return!1}is_async(){return this.has_await||this.#t().size>0}merge(t){this.has_state||=t.has_state,this.has_call||=t.has_call,this.has_await||=t.has_await,this.has_pickled_await||=t.has_pickled_await,this.has_member_expression||=t.has_member_expression,this.has_assignment||=t.has_assignment,this.#e=null;for(let r of t.references)this.references.add(r);for(let r of t.dependencies)this.dependencies.add(r)}};function Ye(e){return e.type==="Literal"?String(e.value):e.type==="PrivateIdentifier"?"#"+e.name:e.type==="Identifier"?e.name:null}function kr(e){if(e.name==="select"||e.name==="optgroup"||e.name==="option")for(let t of Ht(e.fragment))if(t.type==="RegularElement"){if(e.name==="select"&&t.name!=="option"&&t.name!=="optgroup"||e.name==="optgroup"&&t.name!=="option"||e.name==="option")return!0}else if(t.type==="Text"){if(e.name==="select"||e.name==="optgroup")return!0}else return!0;return!1}function*Ht(e){if(e!==null)for(let t of e.nodes)switch(t.type){case"SnippetBlock":case"DebugTag":case"ConstTag":case"DeclarationTag":case"Comment":case"ExpressionTag":break;case"Text":t.data.trim()!==""&&(yield t);break;case"IfBlock":yield*Ht(t.consequent),yield*Ht(t.alternate);break;case"EachBlock":yield*Ht(t.body),yield*Ht(t.fallback??null);break;case"KeyBlock":yield*Ht(t.fragment);break;case"AwaitBlock":yield*Ht(t.pending),yield*Ht(t.then),yield*Ht(t.catch);break;case"SvelteBoundary":yield*Ht(t.fragment);break;default:yield t}}var bb={li:{direct:["li"]},dt:{descendant:["dt","dd"],reset_by:["dl"]},dd:{descendant:["dt","dd"],reset_by:["dl"]},p:{descendant:["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"]},rt:{descendant:["rt","rp"]},rp:{descendant:["rt","rp"]},optgroup:{descendant:["optgroup"]},option:{descendant:["option","optgroup"]},thead:{direct:["tbody","tfoot"]},tbody:{direct:["tbody","tfoot"]},tfoot:{direct:["tbody"]},tr:{direct:["tr","tbody"]},td:{direct:["td","th","tr"]},th:{direct:["td","th","tr"]}};function yb(e,t){let r=bb[e];return!!(r&&(!t||("direct"in r?r.direct:r.descendant).includes(t)))}var gb={...bb,form:{descendant:["form"]},a:{descendant:["a"]},button:{descendant:["button"]},h1:{descendant:["h1","h2","h3","h4","h5","h6"]},h2:{descendant:["h1","h2","h3","h4","h5","h6"]},h3:{descendant:["h1","h2","h3","h4","h5","h6"]},h4:{descendant:["h1","h2","h3","h4","h5","h6"]},h5:{descendant:["h1","h2","h3","h4","h5","h6"]},h6:{descendant:["h1","h2","h3","h4","h5","h6"]},tr:{only:["th","td","style","script","template"]},tbody:{only:["tr","style","script","template"]},thead:{only:["tr","style","script","template"]},tfoot:{only:["tr","style","script","template"]},colgroup:{only:["col","template"]},table:{only:["caption","colgroup","tbody","thead","tfoot","style","script","template"]},head:{only:["base","basefont","bgsound","link","meta","title","noscript","noframes","style","script","template"]},html:{only:["head","body","frameset"]},frameset:{only:["frame"]},"#document":{only:["html"]}};function vb(e,t,r,i){if(e.includes("-"))return null;let s=t[t.length-1],a=gb[s];if(!a)return null;if("reset_by"in a&&a.reset_by){for(let n=t.length-2;n>=0;n--)if(t[n].includes("-")||a.reset_by.includes(t[n]))return null}if("descendant"in a&&a.descendant.includes(e)){let n=r?`\`<${e}>\` (${r})`:`\`<${e}>\``,p=i?`\`<${s}>\` (${i})`:`\`<${s}>\``;return`${n} cannot be a descendant of ${p}`}return null}function Ci(e,t,r,i){if(e.includes("-")||t?.includes("-")||t==="template")return null;let s=gb[t],a=r?`\`<${e}>\` (${r})`:`\`<${e}>\``,n=i?`\`<${t}>\` (${i})`:`\`<${t}>\``;if(s){if("direct"in s&&s.direct.includes(e))return`${a} cannot be a direct child of ${n}`;if("descendant"in s&&s.descendant.includes(e))return`${a} cannot be a child of ${n}`;if("only"in s&&s.only)return s.only.includes(e)?null:`${a} cannot be a child of ${n}. \`<${t}>\` only allows these children: ${s.only.map(p=>`\`<${p}>\``).join(", ")}`}switch(e){case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":return`${a} cannot be a child of ${n}`;case"thead":case"tbody":case"tfoot":return`${a} must be the child of a \`<table>\`, not a ${n}`;case"td":case"th":return`${a} must be the child of a \`<tr>\`, not a ${n}`;case"tr":return`\`<tr>\` must be the child of a \`<thead>\`, \`<tbody>\`, or \`<tfoot>\`, not a ${n}`}return null}function Jr(e,t="or"){return e.length===1?e[0]:e.length===2?`${e[0]} ${t} ${e[1]}`:`${e.slice(0,-1).join(", ")} ${t} ${e[e.length-1]}`}function us(e){return e===32||e<=13&&e>=9?!0:e<160?!1:e===160||e===5760||e>=8192&&e<=8202||e===8232||e===8233||e===8239||e===8287||e===12288||e===65279}var KE=/(\/>|[\s"'=<>`])/y,Ep=/<\/textarea(\s[^>]*)?>/iy,xb=/["']/y,XE=/(?:"([^"]*)"|'([^'])*'|([^>\s]+))/y,JE=/^![a-zA-Z]+$/,YE=/^[a-zA-Z][a-zA-Z0-9]*:[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$/;function ZE(e){return JE.test(e)||YE.test(e)?!0:Nd.test(e)}var Sp=new RegExp("^(?:\\p{Lu}[$\\u200c\\u200d\\p{ID_Continue}.]*|\\p{ID_Start}[$\\u200c\\u200d\\p{ID_Continue}]*(?:\\.[$\\u200c\\u200d\\p{ID_Continue}]+)+)$","u"),kb=new Map([["svelte:head","SvelteHead"],["svelte:options","SvelteOptions"],["svelte:window","SvelteWindow"],["svelte:document","SvelteDocument"],["svelte:body","SvelteBody"]]),ga=new Map([...kb,["svelte:element","SvelteElement"],["svelte:component","SvelteComponent"],["svelte:self","SvelteSelf"],["svelte:fragment","SvelteFragment"],["svelte:boundary","SvelteBoundary"]]);function Cp(e){let t=e.index++,r=e.current();if(e.eat("!--")){let v=e.read_until("-->");e.eat("-->",!0),e.append({type:"Comment",start:t,end:e.index,data:v});return}if(e.eat("/")){let v=Sb(e);for(e.allow_whitespace(),e.eat(">",!0),vt(v)&&X_(t);r.name!==v;){if(e.loose&&Si(r)){let E=r.attributes.at(-1);if(E?.type==="Attribute"&&E.name===`<${v}`){e.index=E.start,r.attributes.pop();break}}if(r.type==="RegularElement"){if(!e.last_auto_closed_tag||e.last_auto_closed_tag.tag!==v){let E=r.fragment.nodes[0]?.start??t;Oc({start:r.start,end:E},`</${v}>`,`</${r.name}>`)}}else e.loose||(e.last_auto_closed_tag&&e.last_auto_closed_tag.tag===v?Kh(t,v,e.last_auto_closed_tag.reason):Gh(t,v));r.end=t,e.pop(),r=e.current()}r.end=e.index,e.pop(),e.last_auto_closed_tag&&e.stack.length<e.last_auto_closed_tag.depth&&(e.last_auto_closed_tag=void 0);return}let i=Tp(e);if(i.name.startsWith("svelte:")&&!ga.has(i.name)){let v={start:t+1,end:t+1+i.name.length};I_(v,Jr(Array.from(ga.keys())))}if(!ZE(i.name)&&!Sp.test(i.name)&&(!e.loose||!i.name.endsWith("."))){let v={start:t+1,end:t+1+i.name.length};j_(v)}kb.has(i.name)&&(i.name in e.meta_tags&&$_(t,i.name),r.type!=="Root"&&q_(t,i.name),e.meta_tags[i.name]=!0);let s=ga.has(i.name)?ga.get(i.name):Sp.test(i.name)||e.loose&&i.name.endsWith(".")?"Component":i.name==="title"&&QE(e.stack)?"TitleElement":i.name==="slot"&&!eS(e.stack)?"SlotElement":"RegularElement",a=s==="RegularElement"?{type:s,start:t,end:-1,name:i.name,name_loc:i.loc,attributes:[],fragment:He(!0),metadata:{svg:!1,mathml:!1,scoped:!1,has_spread:!1,path:[],synthetic_value_node:null}}:{type:s,start:t,end:-1,name:i.name,name_loc:i.loc,attributes:[],fragment:He(!0),metadata:{}};if(e.allow_whitespace(),r.type==="RegularElement"&&yb(r.name,i.name)){let v=r.fragment.nodes[0]?.start??t;Oc({start:r.start,end:v},`<${i.name}>`,`</${r.name}>`),r.end=t,e.pop(),e.last_auto_closed_tag={tag:r.name,reason:i.name,depth:e.stack.length}}let n=[],p=e.current(),u=(i.name==="script"||i.name==="style")&&p.type==="Root",d=u?tS:rS,m;for(;m=d(e);){if(m.type==="Attribute"||m.type==="BindDirective"||m.type==="StyleDirective"||m.type==="ClassDirective"){let v=m.type==="BindDirective"?"Attribute":m.type;n.includes(v+m.name)?xh(m):m.name!=="this"&&n.push(v+m.name)}a.attributes.push(m),e.allow_whitespace()}if(a.type==="Component"&&(a.metadata.expression=new ke),a.type==="SvelteComponent"){let v=a.attributes.findIndex(l=>l.type==="Attribute"&&l.name==="this");v===-1&&C_(t);let E=a.attributes.splice(v,1)[0];Qt(E)||S_(E.start),a.expression=mt(E),a.metadata.expression=new ke}if(a.type==="SvelteElement"){let v=a.attributes.findIndex(l=>l.type==="Attribute"&&l.name==="this");v===-1&&op(t);let E=a.attributes.splice(v,1)[0];if(E.value===!0&&op(E),Qt(E))a.tag=mt(E);else{sm(E);let l=E.value[0];a.tag=l.type==="Text"?{type:"Literal",value:l.data,raw:`'${l.raw}'`,start:l.start,end:l.end}:l.expression}a.metadata.expression=new ke}if(u){e.eat(">",!0);let v=null;for(let E=p.fragment.nodes.length-1;E>=0;E--){let l=p.fragment.nodes[E];if(E===p.fragment.nodes.length-1&&l.end!==t)break;if(l.type==="Comment"){v=l;break}else if(l.type!=="Text"||l.data.trim())break}if(i.name==="script"){let E=ob(e,t,a.attributes);v&&(E.content.leadingComments=[{type:"Line",value:v.data}]),E.context==="module"?(p.module&&ip(t),p.module=E):(p.instance&&ip(t),p.instance=E)}else{let E=vp(e,t,a.attributes);E.content.comment=v,p.css&&w_(t),p.css=E}return}e.append(a);let h=e.eat("/")||vt(i.name),_=e.eat(">",!0,!1);if(!_){let v=a.attributes.at(-1);if(v?.type==="Attribute"&&v.name==="<")e.index=v.start,a.attributes.pop();else{let E=e.template[e.index-1],l=e.template[e.index-2],o=e.template[e.index];l==="{"&&E==="/"?e.index-=2:E==="{"&&(o==="#"||o==="@"||o===":")?e.index-=1:e.allow_whitespace()}}if(h||!_)a.end=e.index;else if(i.name==="textarea")a.fragment.nodes=Eb(e,()=>(Ep.lastIndex=e.index,Ep.test(e.template)),"inside <textarea>"),e.read(Ep),a.end=e.index;else if(i.name==="script"||i.name==="style"){let v=e.index,E=`</${i.name}>`,l=e.template.indexOf(E,e.index),o=e.template.slice(e.index,l===-1?e.template.length:l);e.index=l===-1?e.template.length:l;let g=e.index,k={start:v,end:g,type:"Text",data:o,raw:o};a.fragment.nodes.push(k),e.eat(`</${i.name}>`,!0),a.end=e.index}else e.stack.push(a),e.fragments.push(a.fragment)}function QE(e){let t=e.length;for(;t--;){let{type:r}=e[t];if(r==="SvelteHead")return!0;if(r==="RegularElement"||r==="Component")return!1}return!1}function eS(e){let t=e.length;for(;t--;)if(e[t].type==="RegularElement"&&e[t].attributes.some(r=>r.type==="Attribute"&&r.name==="shadowrootmode"))return!0;return!1}function tS(e){let t=e.index,r=Tp(e,!0);if(!r.name)return null;let i=!0;if(e.eat("=")){e.allow_whitespace();let s=e.match_regex(XE);s||tp(e.index),e.index+=s.length;let a=s[0]==='"'||s[0]==="'";a&&(s=s.slice(1,-1)),i=[{start:e.index-s.length-(a?1:0),end:a?e.index-1:e.index,type:"Text",raw:s,data:ps(s,!0)}]}return e.match_regex(xb)&&dt(e.index,"="),Ct(r.name,r.loc,t,e.index,i)}function rS(e){let t=null;for(;t=iS(e);)e.root.comments.push(t),e.allow_whitespace();let r=e.index;if(e.eat("{")){if(e.allow_whitespace(),e.eat("@attach")){e.require_whitespace();let u=Ke(e);return e.allow_whitespace(),e.eat("}",!0),{type:"AttachTag",start:r,end:e.index,expression:u,metadata:{expression:new ke}}}if(e.eat("...")){let u=Ke(e);return e.allow_whitespace(),e.eat("}",!0),{type:"SpreadAttribute",start:r,end:e.index,expression:u,metadata:{expression:new ke}}}else{let u=e.read_identifier();if(u.name===""){if(e.loose&&(e.match("#")||e.match("/")||e.match("@")||e.match(":")))return null;e.loose&&e.match("}")||kh(r)}e.allow_whitespace(),e.eat("}",!0);let d={type:"ExpressionTag",start:u.start,end:u.end,expression:u,metadata:{expression:new ke}};return Ct(u.name,u.loc,r,e.index,d)}}let i=Tp(e,!0);if(!i.name)return null;let s=e.index;e.allow_whitespace();let a=i.name.indexOf(":"),n=a!==-1&&sS(i.name.slice(0,a)),p=!0;if(e.eat("="))if(e.allow_whitespace(),e.template[e.index]==="/"&&e.template[e.index+1]===">"){let u=e.index;e.index++,p=[{start:u,end:u+1,type:"Text",raw:"/",data:"/"}],s=e.index}else p=aS(e),s=e.index;else e.match_regex(xb)&&dt(e.index,"=");if(n){let[u,...d]=i.name.slice(a+1).split("|");if(u===""&&zh({start:r,end:r+a+1},i.name),n==="StyleDirective")return{start:r,end:s,type:n,name:u,name_loc:i.loc,modifiers:d,value:p,metadata:{expression:new ke}};let m=p===!0?void 0:Array.isArray(p)?p[0]:p,h=null;m&&(p.length>1||m.type==="Text"?Vh(m.start):h=m.expression);let _={start:r,end:s,type:n,name:u,name_loc:i.loc,expression:h,metadata:{expression:new ke}};if(_.modifiers=d,_.type==="TransitionDirective"){let v=i.name.slice(0,a);_.intro=v==="in"||v==="transition",_.outro=v==="out"||v==="transition"}return(_.type==="BindDirective"||_.type==="ClassDirective")&&!_.expression&&(_.expression={start:r+a+1,end:s,type:"Identifier",name:_.name}),_}return Ct(i.name,i.loc,r,s,p)}function iS(e){let t=e.index;if(e.eat("//")){let r=e.read_until(`
|
|
196
|
+
`),i=e.index;return{type:"Line",start:t,end:i,value:r,loc:{start:_e(t),end:_e(i)}}}if(e.eat("/*")){let r=e.read_until("*/");e.eat("*/");let i=e.index;return{type:"Block",start:t,end:i,value:r,loc:{start:_e(t),end:_e(i)}}}return null}function sS(e){return e==="use"?"UseDirective":e==="animate"?"AnimateDirective":e==="bind"?"BindDirective":e==="class"?"ClassDirective":e==="style"?"StyleDirective":e==="on"?"OnDirective":e==="let"?"LetDirective":e==="in"||e==="out"||e==="transition"?"TransitionDirective":!1}function aS(e){let t=e.eat("'")?"'":e.eat('"')?'"':null;if(t&&e.eat(t))return[{start:e.index-1,end:e.index-1,type:"Text",raw:"",data:""}];let r;try{r=Eb(e,()=>t?e.match(t):!!e.match_regex(KE),"in attribute value")}catch(i){if(i.code==="js_parse_error"){let s=i.position?.[0];s!==void 0&&e.template.slice(s-1,s+1)==="/>"&&(e.index=s,dt(s,t||"}"))}throw i}return r.length===0&&!t&&tp(e.index),t&&(e.index+=1),t||r.length>1||r[0].type==="Text"?r:r[0]}function Eb(e,t,r){let i=[],s=e.index;function a(n){if(n>s){let p=e.template.slice(s,n);i.push({start:s,end:n,type:"Text",raw:p,data:ps(p,!0)})}}for(;e.index<e.template.length;){let n=e.index;if(t())return a(e.index),i;if(e.eat("{")){if(e.match("#")){let d=e.index-1;e.eat("#");let m=wb(e);Mh(d,m,r)}else if(e.match("@")){let d=e.index-1;e.eat("@");let m=wb(e);F_(d,m,r)}a(e.index-1),e.allow_whitespace();let p=Ke(e);e.allow_whitespace(),e.eat("}",!0);let u={type:"ExpressionTag",start:n,end:e.index,expression:p,metadata:{expression:new ke}};i.push(u),s=e.index}else e.index++}if(e.loose)return i;Je(e.template.length)}function Sb(e,t=!1){let r=e.index;for(r>=e.template.length&&!e.loose&&Je(e.template.length);e.index<e.template.length;){let i=e.template.charCodeAt(e.index);if(us(i)||i===47||i===62||t&&(i===34||i===39||i===61))break;e.index+=1}return e.template.slice(r,e.index)}function Tp(e,t=!1){let r=e.index,i=Sb(e,t),s=e.index;return{type:"Identifier",name:i,start:r,end:s,loc:{start:_e(r),end:_e(s)}}}function wb(e){let t=e.index;for(;e.index<e.template.length;){let r=e.template.charCodeAt(e.index);if(r<97||r>122)break;e.index+=1}return e.template.slice(t,e.index)}function Tt(e){let t=e.index,r=e.index,i=e.read_identifier();if(i.name!==""){let n=Cb(e);return{...i,typeAnnotation:n}}let s=e.template[r];s!=="{"&&s!=="["&&Qh(r),r=os(e,t),e.index=r;let a=wi(_r(e,e.template.slice(0,r)+" = 1",t));return a=a.left,a.typeAnnotation=Cb(e),a.typeAnnotation&&(a.end=a.typeAnnotation.end),a}function Cb(e){let t=e.index;if(e.allow_whitespace(),!e.eat(":")){e.index=t;return}let r="_ as ",i=e.index-r.length,s=e.template.slice(0,i)+r+e.template.slice(e.index).replace(/\?\s*:/g,":"),a=wi(_r(e,s,i));if(a.type==="AssignmentExpression"){let n=a.right.start;for(;s[n]!=="=";)n-=1;a=wi(_r(e,s.slice(0,n),i))}return a.type==="SequenceExpression"&&(a=a.expressions[0]),e.index=a.end,{type:"TSTypeAnnotation",start:t,end:e.index,typeAnnotation:a.typeAnnotation}}var Pp=/\s*}/y,nS=/(?:let|const)\b/y,oS=/(?:var|interface|enum)\b/y,lS=/type\b/y,cS={"<":">"};function $p(e){let t=e.index;if(e.index+=1,e.allow_whitespace(),e.eat("#"))return uS(e);if(e.eat(":"))return dS(e);if(e.eat("@"))return fS(e);if(e.match("/")&&!e.match("/*")&&!e.match("//"))return e.eat("/"),Ap(e);let r=pS(e);if(r){e.append({type:"DeclarationTag",start:t,end:e.index,declaration:r,metadata:{expression:new ke}});return}let i=Ke(e);e.allow_whitespace(),e.eat("}",!0),e.append({type:"ExpressionTag",start:t,end:e.index,expression:i,metadata:{expression:new ke}})}function pS(e){let t=e.index,r=e.match_regex(oS);if(r&&ia({start:t,end:t+r.length}),!e.match_regex(nS)&&!e.match_regex(lS))return null;let i=e.root.comments.length,s;try{s=Y_(e,e.template,t)}catch(a){if(!e.loose)throw a;let n=pa(e.template,t,"{");if(n===void 0)throw a;e.index=n,s={type:"VariableDeclaration",kind:e.template.startsWith("const",t)?"const":"let",declarations:[{type:"VariableDeclarator",id:{type:"Identifier",name:"",start:e.index,end:e.index},init:null,start:e.index,end:e.index}],start:t,end:n}}if(s.type!=="VariableDeclaration"){if(s.type==="ExpressionStatement")return e.root.comments.length=i,null;ia({start:s.start??t,end:s.end??e.index})}return s.kind!=="let"&&s.kind!=="const"&&ia(s),e.index=s.end,e.allow_whitespace(),e.eat("}",!0),s}function uS(e){let t=e.index-2;for(;e.template[t]!=="{";)t-=1;if(e.eat("if")){e.require_whitespace();let r=e.append({type:"IfBlock",elseif:!1,start:t,end:-1,test:Ke(e),consequent:He(),alternate:null,metadata:{expression:new ke}});e.allow_whitespace(),e.eat("}",!0),e.stack.push(r),e.fragments.push(r.consequent);return}if(e.eat("each")){e.require_whitespace();let r=e.template,i=e.template.length,s;for(;!s;)try{s=Ke(e,void 0,!0)}catch(m){for(i=m.position[0]-2;i>t&&e.template.slice(i,i+2)!=="as";)i-=1;if(i<=t){if(e.loose&&(s=bp(e),s))break;throw m}e.template=r.slice(0,i)}if(e.template=r,e.allow_whitespace(),!e.match("as")){s.type==="SequenceExpression"&&(s=s.expressions[0]);let m=null,h=s.end;if(s=re(s,null,{TSAsExpression(_,v){if(_.end===s.end)return m=_,h=_.expression.end,_.expression;v.next()}}),s.end=h,m){let _=m.typeAnnotation.start-2;for(;e.template.slice(_,_+2)!=="as";)_-=1;e.index=_}}let a=null,n,p;if(e.eat("as")?(e.require_whitespace(),a=Tt(e)):e.index=s.end,e.allow_whitespace(),e.eat(",")&&(e.allow_whitespace(),n=e.read_identifier().name,n||rp(e.index),e.allow_whitespace()),e.eat("(")&&(e.allow_whitespace(),p=Ke(e,"("),e.allow_whitespace(),e.eat(")",!0),e.allow_whitespace()),!e.eat("}",!0,!1))if(e.template.slice(e.index-4,e.index)===" as "){let m=e.index;a=Tt(e),e.eat("}",!0),s={type:"Identifier",name:"",start:s.start,end:m-4}}else e.eat("}",!0);let d=e.append({type:"EachBlock",start:t,end:-1,expression:s,body:He(),context:a,index:n,key:p,metadata:null});e.stack.push(d),e.fragments.push(d.body);return}if(e.eat("await")){e.require_whitespace();let r=Ke(e);e.allow_whitespace();let i=e.append({type:"AwaitBlock",start:t,end:-1,expression:r,value:null,error:null,pending:null,then:null,catch:null,metadata:{expression:new ke}});if(e.eat("then")?(e.match_regex(Pp)||(e.require_whitespace(),i.value=Tt(e)),e.allow_whitespace(),i.then=He(),e.fragments.push(i.then)):e.eat("catch")?(e.match_regex(Pp)||(e.require_whitespace(),i.error=Tt(e)),e.allow_whitespace(),i.catch=He(),e.fragments.push(i.catch)):(i.pending=He(),e.fragments.push(i.pending)),!e.eat("}",!0,!1))if(e.template.slice(e.index-6,e.index)===" then "){let a=e.index;i.value=Tt(e),e.eat("}",!0),i.expression={type:"Identifier",name:"",start:r.start,end:a-6},i.then=i.pending,i.pending=null}else if(e.template.slice(e.index-7,e.index)===" catch "){let a=e.index;i.error=Tt(e),e.eat("}",!0),i.expression={type:"Identifier",name:"",start:r.start,end:a-7},i.catch=i.pending,i.pending=null}else e.eat("}",!0);e.stack.push(i);return}if(e.eat("key")){e.require_whitespace();let r=Ke(e);e.allow_whitespace(),e.eat("}",!0);let i=e.append({type:"KeyBlock",start:t,end:-1,expression:r,fragment:He(),metadata:{expression:new ke}});e.stack.push(i),e.fragments.push(i.fragment);return}if(e.eat("snippet")){e.require_whitespace();let r=e.read_identifier();r.name===""&&!e.loose&&rp(e.index),e.allow_whitespace();let i=e.index,s;if(e.ts&&e.match("<")){let u=e.index,d=os(e,u,cS);s=e.template.slice(u+1,d-1),e.index=d}e.allow_whitespace();let a=e.eat("(",!0,!1);if(a){let u=1;for(;e.index<e.template.length&&(!e.match(")")||u!==1);)e.match("(")&&u++,e.match(")")&&u--,e.index+=1;e.eat(")",!0)}let n=a?_r(e,e.template.slice(0,e.index)+" => {}",i):{params:[]};e.allow_whitespace(),e.eat("}",!0);let p=e.append({type:"SnippetBlock",start:t,end:-1,expression:r,typeParams:s,parameters:n.params,body:He(),metadata:{can_hoist:!1,sites:new Set}});e.stack.push(p),e.fragments.push(p.body);return}Zh(e.index)}function dS(e){let t=e.index-1,r=e.current();if(r.type==="IfBlock"){if(e.eat("else")||dt(t,"{:else} or {:else if}"),e.eat("if")&&Nh(t),r.alternate&&as(t,"{:else}"),e.allow_whitespace(),e.fragments.pop(),r.alternate=He(),e.fragments.push(r.alternate),e.eat("if")){e.require_whitespace();let i=Ke(e);e.allow_whitespace(),e.eat("}",!0);let s=t-1;for(;e.template[s]!=="{";)s-=1;let a=e.append({start:s,end:-1,type:"IfBlock",elseif:!0,test:i,consequent:He(),alternate:null,metadata:{expression:new ke}});e.stack.push(a),e.fragments.pop(),e.fragments.push(a.consequent)}else e.allow_whitespace(),e.eat("}",!0);return}if(r.type==="EachBlock"){e.eat("else")||dt(t,"{:else}"),r.fallback&&as(t,"{:else}"),e.allow_whitespace(),e.eat("}",!0),r.fallback=He(),e.fragments.pop(),e.fragments.push(r.fallback);return}if(r.type==="AwaitBlock"){if(e.eat("then")){r.then&&as(t,"{:then}"),e.eat("}")||(e.require_whitespace(),r.value=Tt(e),e.allow_whitespace(),e.eat("}",!0)),r.then=He(),e.fragments.pop(),e.fragments.push(r.then);return}if(e.eat("catch")){r.catch&&as(t,"{:catch}"),e.eat("}")||(e.require_whitespace(),r.error=Tt(e),e.allow_whitespace(),e.eat("}",!0)),r.catch=He(),e.fragments.pop(),e.fragments.push(r.catch);return}dt(t,"{:then ...} or {:catch ...}")}Ih(t)}function Ap(e){let t=e.index-1,r=e.current(),i;switch(r.type){case"IfBlock":if(i=e.eat("if",!0,!1),!i){r.end=t-1,e.pop(),Ap(e);return}for(e.allow_whitespace(),e.eat("}",!0);r.elseif;)r.end=e.index,e.stack.pop(),r=e.current();r.end=e.index,e.pop();return;case"EachBlock":i=e.eat("each",!0,!1);break;case"KeyBlock":i=e.eat("key",!0,!1);break;case"AwaitBlock":i=e.eat("await",!0,!1);break;case"SnippetBlock":i=e.eat("snippet",!0,!1);break;case"RegularElement":e.loose?i=!1:ep(t);break;default:ep(t)}if(!i){r.end=t-1,e.pop(),Ap(e);return}e.allow_whitespace(),e.eat("}",!0),r.end=e.index,e.pop()}function fS(e){let t=e.index;for(;e.template[t]!=="{";)t-=1;if(e.eat("html")){e.require_whitespace();let r=Ke(e);e.allow_whitespace(),e.eat("}",!0),e.append({type:"HtmlTag",start:t,end:e.index,expression:r,metadata:{expression:new ke}});return}if(e.eat("debug")){let r;if(e.read(Pp))r=[];else{let i=Ke(e);r=i.type==="SequenceExpression"?i.expressions:[i],r.forEach(s=>{s.type!=="Identifier"&&Uh(s.start)}),e.allow_whitespace(),e.eat("}",!0)}e.append({type:"DebugTag",start:t,end:e.index,identifiers:r});return}if(e.eat("const")){e.require_whitespace();let r=Tt(e);e.allow_whitespace(),e.eat("=",!0),e.allow_whitespace();let i=e.index,s=Ke(e),a=e.index;s.type==="SequenceExpression"&&!e.template.substring(i,s.start).includes("(")&&Bh(s),e.allow_whitespace(),e.eat("}",!0),e.append({type:"ConstTag",start:t,end:e.index,declaration:{type:"VariableDeclaration",kind:"const",declarations:[{type:"VariableDeclarator",id:r,init:s,start:r.start,end:a}],start:t+2,end:e.index-1},metadata:{expression:new ke}});return}if(e.eat("render")){e.require_whitespace();let r=Ke(e);r.type!=="CallExpression"&&(r.type!=="ChainExpression"||r.expression.type!=="CallExpression")&&o_(r),e.allow_whitespace(),e.eat("}",!0),e.append({type:"RenderTag",start:t,end:e.index,expression:r,metadata:{expression:new ke,dynamic:!1,arguments:[],path:[],snippets:new Set}});return}e_(e.index)}function Rp(e){let t=e.index;for(;e.index<e.template.length&&!e.match("<")&&!e.match("{");)e.index++;let r=e.template.slice(t,e.index);e.append({type:"Text",start:t,end:e.index,raw:r,data:ps(r,!1)})}function ds(e){return e.match("<")?Cp:e.match("{")?$p:Rp}function qp(e){let t={start:e.start,end:e.end,attributes:e.attributes};if(!e)return t;for(let r of e.attributes){r.type!=="Attribute"&&M_(r);let{name:i}=r;switch(i){case"runes":{t.runes=va(r);break}case"tag":{N_(r);break}case"customElement":{let s={},{value:a}=r,n=a===!0||Array.isArray(a)?a:[a];if(n===!0)oa(r);else if(n[0].type==="Text"){let _=wa(r);Pb(r,_),s.tag=_,t.customElement=s;break}else if(n[0].expression.type!=="ObjectExpression"){if(n[0].expression.type==="Literal"&&n[0].expression.value===null)break;oa(r)}let p=[];for(let _ of n[0].expression.properties)(_.type!=="Property"||_.computed||_.key.type!=="Identifier")&&oa(r),p.push([_.key.name,_.value]);let u=p.find(([_])=>_==="tag");if(u){let _=u[1]?.value;Pb(u,_),s.tag=_}let d=p.find(([_])=>_==="props")?.[1];if(d){d.type!=="ObjectExpression"&&hr(r),s.props={};for(let _ of d.properties){(_.type!=="Property"||_.computed||_.key.type!=="Identifier"||_.value.type!=="ObjectExpression")&&hr(r),s.props[_.key.name]={};for(let v of _.value.properties)(v.type!=="Property"||v.computed||v.key.type!=="Identifier"||v.value.type!=="Literal")&&hr(r),v.key.name==="type"?(["String","Number","Boolean","Array","Object"].indexOf(v.value.value)===-1&&hr(r),s.props[_.key.name].type=v.value.value):v.key.name==="reflect"?(typeof v.value.value!="boolean"&&hr(r),s.props[_.key.name].reflect=v.value.value):v.key.name==="attribute"?(typeof v.value.value!="string"&&hr(r),s.props[_.key.name].attribute=v.value.value):hr(r)}}let m=p.find(([_])=>_==="shadow")?.[1];m&&(m.type==="Literal"&&(m.value==="open"||m.value==="none")?s.shadow=m.value:m.type==="ObjectExpression"?s.shadow=m:L_(r));let h=p.find(([_])=>_==="extend")?.[1];h&&(s.extend=h),t.customElement=s;break}case"namespace":{let s=wa(r);s===Bs?t.namespace="svg":s===js?t.namespace="mathml":s==="html"||s==="mathml"||s==="svg"?t.namespace=s:na(r,'"html", "mathml" or "svg"');break}case"css":{let s=wa(r);s==="injected"?t.css=s:na(r,'"injected"');break}case"immutable":{t.immutable=va(r);break}case"preserveWhitespace":{t.preserveWhitespace=va(r);break}case"accessors":{t.accessors=va(r);break}default:D_(r,i)}}return t}function wa(e){let{value:t}=e;if(t===!0)return!0;let r=Array.isArray(t)?t[0]:t;return r?t.length>1?null:r.type==="Text"?r.data:r.expression.type!=="Literal"?null:r.expression.value:!0}function va(e){let t=wa(e);return typeof t!="boolean"&&na(e,"true or false"),t}var Tb="[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}-]",mS=new RegExp(`^[a-z]${Tb}*-${Tb}*$`,"u"),hS=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"];function Pb(e,t){typeof t!="string"&&lp(e),t&&(mS.test(t)?hS.includes(t)&&O_(e):lp(e))}var Ab=/<!--[^]*?-->|<script\s+(?:[^>]*|(?:[^=>'"/]+=(?:"[^"]*"|'[^']*'|[^>\s]+)\s+)*)lang=(["'])?([^"' >]+)\1[^>]*>/g,xa=class e{template;loose;index=0;css_comments=[];static forCss(t){let r=Object.create(e.prototype);return r.template=t,r.index=0,r.loose=!1,r.css_comments=[],r}ts=!1;stack=[];fragments=[];root;meta_tags={};last_auto_closed_tag;constructor(t,r){if(typeof t!="string")throw new TypeError("Template must be a string");this.loose=r,this.template=t.trimEnd();let i;do i=Ab.exec(t);while(i&&i[0][1]!=="s");Ab.lastIndex=0,this.ts=i?.[2]==="ts",this.root={css:null,js:[],start:null,end:null,type:"Root",fragment:He(),options:null,comments:[],metadata:{ts:this.ts}},this.stack.push(this.root),this.fragments.push(this.root.fragment);let s=ds;for(;this.index<this.template.length;)s=s(this)||ds;if(this.stack.length>1){let n=this.current();this.loose?n.end=this.template.length:n.type==="RegularElement"?(n.end=n.start+1,sa(n,n.name)):(n.end=n.start+1,Lh(n))}s!==ds&&Je(this.index),this.root.start=0,this.root.end=t.length;let a=this.root.fragment.nodes.findIndex(n=>n.type==="SvelteOptions");if(a!==-1){let n=this.root.fragment.nodes[a];this.root.fragment.nodes.splice(a,1),this.root.options=qp(n),xr(n),Object.defineProperty(this.root.options,"__raw__",{value:n,enumerable:!1})}}current(){return this.stack[this.stack.length-1]}eat(t,r=!1,i=!0){return this.match(t)?(this.index+=t.length,!0):(r&&(!this.loose||i)&&dt(this.index,t),!1)}match(t){return t.length===1?this.template[this.index]===t:this.template.startsWith(t,this.index)}match_regex(t){t.lastIndex=this.index;let r=t.exec(this.template);return!r||r.index!==this.index?null:r[0]}allow_whitespace(){for(;this.index<this.template.length&&us(this.template.charCodeAt(this.index));)this.index++}read(t){let r=this.match_regex(t);return r&&(this.index+=r.length),r}read_identifier(){let t=this.index,r=t,i="",s=this.template.codePointAt(this.index);if(Os(s,!0)){let a=this.index;for(r+=s<=65535?1:2;r<this.template.length;){let n=this.template.codePointAt(r);if(!Ds(n,!0))break;r+=n<=65535?1:2}i=this.template.slice(t,r),this.index=r,Br(i)&&G_(t,i)}return{type:"Identifier",name:i,start:t,end:r,loc:{start:_e(t),end:_e(r)}}}read_until(t){if(this.index>=this.template.length){if(this.loose)return"";Je(this.template.length)}let r=this.index,i=this.template.indexOf(t,r);return i!==-1?(this.index=i,this.template.slice(r,this.index)):(this.index=this.template.length,this.template.slice(r))}read_until_regex(t){if(this.index>=this.template.length){if(this.loose)return"";Je(this.template.length)}let r=this.index,i=t.exec(this.template.slice(r));return i?(this.index=r+i.index,this.template.slice(r,this.index)):(this.index=this.template.length,this.template.slice(r))}require_whitespace(){us(this.template.charCodeAt(this.index))||t_(this.index),this.index++,this.allow_whitespace()}pop(){let t=this.fragments.pop();return t?.metadata.transparent&&t.nodes.some(r=>r.type==="DeclarationTag")&&(t.metadata.transparent=!1),this.stack.pop()}append(t){return this.fragments.at(-1)?.nodes.push(t),t}};function Ip(e,t=!1){return Us(e),new xa(e,t).root}function $b(e,t){return e.params[0]?.type==="Identifier"&&e.params[0].name==="this"&&e.params.shift(),t.next()}var _S={_(e,t){let r=t.next()??e;delete r.typeAnnotation,delete r.typeParameters,delete r.typeArguments,delete r.returnType,delete r.accessibility,delete r.readonly,delete r.definite,delete r.override,r.type!=="MemberExpression"&&r.type!=="CallExpression"&&delete r.optional},Decorator(e){vi(e,"decorators (related TSC proposal is not stage 4 yet)")},ImportDeclaration(e){if(e.importKind==="type")return ce;if(e.specifiers?.length>0){let t=e.specifiers.filter(r=>r.importKind!=="type");return t.length===0?ce:{...e,specifiers:t}}return e},ExportNamedDeclaration(e,t){if(e.exportKind==="type")return ce;if(e.declaration){let r=t.next();return r?.declaration?.type==="EmptyStatement"?ce:r}if(e.specifiers){let r=e.specifiers.filter(i=>i.exportKind!=="type");return r.length===0?ce:{...e,specifiers:r}}return e},ExportDefaultDeclaration(e){return e.exportKind==="type"?ce:e},ExportAllDeclaration(e){return e.exportKind==="type"?ce:e},PropertyDefinition(e,{next:t}){return e.accessor&&vi(e,"accessor fields (related TSC proposal is not stage 4 yet)"),t()},TSAsExpression(e,t){return t.visit(e.expression)},TSSatisfiesExpression(e,t){return t.visit(e.expression)},TSNonNullExpression(e,t){return t.visit(e.expression)},TSInterfaceDeclaration(){return ce},TSTypeAliasDeclaration(){return ce},TSTypeAssertion(e,t){return t.visit(e.expression)},TSEnumDeclaration(e){vi(e,"enums")},TSParameterProperty(e,t){return(e.readonly||e.accessibility)&&t.path.at(-2)?.kind==="constructor"&&vi(e,"accessibility modifiers on constructor parameters"),t.visit(e.parameter)},TSInstantiationExpression(e,t){return t.visit(e.expression)},FunctionExpression:$b,FunctionDeclaration:$b,TSDeclareFunction(){return ce},ClassBody(e,t){let r=[];for(let i of e.body){let s=t.visit(i);(s.type!=="PropertyDefinition"||!s.declare)&&r.push(s)}return{...e,body:r}},ClassDeclaration(e,t){return e.declare?ce:(delete e.abstract,delete e.implements,delete e.superTypeArguments,delete e.superTypeParameters,t.next())},ClassExpression(e,t){return delete e.implements,delete e.superTypeArguments,delete e.superTypeParameters,t.next()},MethodDefinition(e,t){return e.abstract?ce:t.next()},VariableDeclaration(e,t){return e.declare?ce:t.next()},TSModuleDeclaration(e,t){return e.body?(e.body.body.map(i=>t.visit(i)).some(i=>i!==ce)&&vi(e,"namespaces with non-type nodes"),ce):ce}};function fs(e){return re(e,null,_S)}function Ve(e,t){if(e.type==="MemberExpression")return!e.computed&&Ve(e.object,e);if(e.type!=="Identifier")return!1;switch(t?.type){case"MemberExpression":return t.computed||e===t.object;case"MethodDefinition":return t.computed;case"MetaProperty":return t.meta===e;case"PropertyDefinition":return t.computed||e===t.value;case"Property":return t.computed||e===t.value;case"ExportSpecifier":case"ImportSpecifier":return e===t.local;case"LabeledStatement":case"BreakStatement":case"ContinueStatement":return!1;default:return!0}}function Pt(e){if(!Si(e))return null;for(let t of e.attributes)if(t.type==="Attribute"&&t.name==="slot"&&me(t))return t.value[0].data;return null}var At=Symbol("unknown"),oe=Symbol("number"),Vt=Symbol("string"),Rb=Symbol("string"),qb={BigInt:[oe],"Math.min":[oe,Math.min],"Math.max":[oe,Math.max],"Math.random":[oe],"Math.floor":[oe,Math.floor],"Math.f16round":[oe,Math.f16round],"Math.round":[oe,Math.round],"Math.abs":[oe,Math.abs],"Math.acos":[oe,Math.acos],"Math.asin":[oe,Math.asin],"Math.atan":[oe,Math.atan],"Math.atan2":[oe,Math.atan2],"Math.ceil":[oe,Math.ceil],"Math.cos":[oe,Math.cos],"Math.sin":[oe,Math.sin],"Math.tan":[oe,Math.tan],"Math.exp":[oe,Math.exp],"Math.log":[oe,Math.log],"Math.pow":[oe,Math.pow],"Math.sqrt":[oe,Math.sqrt],"Math.clz32":[oe,Math.clz32],"Math.imul":[oe,Math.imul],"Math.sign":[oe,Math.sign],"Math.log10":[oe,Math.log10],"Math.log2":[oe,Math.log2],"Math.log1p":[oe,Math.log1p],"Math.expm1":[oe,Math.expm1],"Math.cosh":[oe,Math.cosh],"Math.sinh":[oe,Math.sinh],"Math.tanh":[oe,Math.tanh],"Math.acosh":[oe,Math.acosh],"Math.asinh":[oe,Math.asinh],"Math.atanh":[oe,Math.atanh],"Math.trunc":[oe,Math.trunc],"Math.fround":[oe,Math.fround],"Math.cbrt":[oe,Math.cbrt],Number:[oe,Number],"Number.isInteger":[oe,Number.isInteger],"Number.isFinite":[oe,Number.isFinite],"Number.isNaN":[oe,Number.isNaN],"Number.isSafeInteger":[oe,Number.isSafeInteger],"Number.parseFloat":[oe,Number.parseFloat],"Number.parseInt":[oe,Number.parseInt],String:[Vt,String],"String.fromCharCode":[Vt,String.fromCharCode],"String.fromCodePoint":[Vt,String.fromCodePoint]},Ib={"Math.PI":Math.PI,"Math.E":Math.E,"Math.LN10":Math.LN10,"Math.LN2":Math.LN2,"Math.LOG10E":Math.LOG10E,"Math.LOG2E":Math.LOG2E,"Math.SQRT2":Math.SQRT2,"Math.SQRT1_2":Math.SQRT1_2},Np=class{scope;node;kind;declaration_kind;initial=null;references=[];assignments=[];legacy_dependencies=[];legacy_indirect_bindings=new Set;prop_alias=null;metadata=null;mutated=!1;reassigned=!1;blocker=null;constructor(t,r,i,s,a){this.scope=t,this.node=r,this.initial=a,this.kind=i,this.declaration_kind=s,a&&this.assignments.push({value:a,scope:t})}get updated(){return this.mutated||this.reassigned}is_function(){if(this.updated)return!1;let t=this.initial?.type;return t==="ArrowFunctionExpression"||t==="FunctionExpression"||t==="FunctionDeclaration"}},Mp=class{values;is_known=!0;has_unknown=!1;is_defined=!0;is_string=!0;is_number=!0;is_primitive=!0;is_function=!0;value=void 0;constructor(t,r,i){switch(Op.set(r,this),this.values=i,r.type){case"Literal":{this.values.add(r.value);break}case"Identifier":{let s=t.get(r.name);if(s){if(s.initial?.type==="CallExpression"&&he(s.initial,t)==="$props.id"){this.values.add(Vt);break}let a=s.kind==="prop"||s.kind==="rest_prop"||s.kind==="bindable_prop";if(s.initial?.type==="EachBlock"&&s.initial.index===r.name){this.values.add(oe);break}if(s.initial?.type==="SnippetBlock"){this.is_defined=!0,this.is_known=!1,this.values.add(At);break}if(!s.updated&&s.initial!==null&&!a){s.scope.evaluate(s.initial,this.values);break}}else if(r.name==="undefined"){this.values.add(void 0);break}this.values.add(At);break}case"BinaryExpression":{let s=t.evaluate(r.left),a=t.evaluate(r.right);if(s.is_known&&a.is_known){this.values.add(bS[r.operator](s.value,a.value));break}switch(r.operator){case"!=":case"!==":case"<":case"<=":case">":case">=":case"==":case"===":case"in":case"instanceof":this.values.add(!0),this.values.add(!1);break;case"%":case"&":case"*":case"**":case"-":case"/":case"<<":case">>":case">>>":case"^":case"|":this.values.add(oe);break;case"+":s.is_string||a.is_string?this.values.add(Vt):s.is_number&&a.is_number?this.values.add(oe):(this.values.add(Vt),this.values.add(oe));break;default:this.values.add(At)}break}case"ConditionalExpression":{let s=t.evaluate(r.test),a=t.evaluate(r.consequent),n=t.evaluate(r.alternate);if(s.is_known)for(let p of(s.value?a:n).values)this.values.add(p);else{for(let p of a.values)this.values.add(p);for(let p of n.values)this.values.add(p)}break}case"LogicalExpression":{let s=t.evaluate(r.left),a=t.evaluate(r.right);if(s.is_known){if(a.is_known){this.values.add(gS[r.operator](s.value,a.value));break}if(r.operator==="&&"&&!s.value||r.operator==="||"&&s.value||r.operator==="??"&&s.value!=null)this.values.add(s.value);else for(let n of a.values)this.values.add(n);break}for(let n of s.values)this.values.add(n);for(let n of a.values)this.values.add(n);break}case"UnaryExpression":{let s=t.evaluate(r.argument);if(s.is_known){this.values.add(yS[r.operator](s.value));break}switch(r.operator){case"!":case"delete":this.values.add(!1),this.values.add(!0);break;case"+":case"-":case"~":this.values.add(oe);break;case"typeof":this.values.add(Vt);break;case"void":this.values.add(void 0);break;default:this.values.add(At)}break}case"CallExpression":{let s=Dp(r.callee,t);if(s){if(Dt(s)){let a=r.arguments[0];switch(s){case"$state":case"$state.raw":case"$derived":a?t.evaluate(a,this.values):this.values.add(void 0);break;case"$props.id":this.values.add(Vt);break;case"$effect.tracking":this.values.add(!1),this.values.add(!0);break;case"$derived.by":if(a?.type==="ArrowFunctionExpression"&&a.body.type!=="BlockStatement"){t.evaluate(a.body,this.values);break}this.values.add(At);break;default:this.values.add(At)}break}if(Object.hasOwn(qb,s)&&r.arguments.every(a=>a.type!=="SpreadElement")){let[a,n]=qb[s],p=r.arguments.map(u=>t.evaluate(u));n&&p.every(u=>u.is_known)?this.values.add(n(...p.map(u=>u.value))):this.values.add(a);break}}this.values.add(At);break}case"TemplateLiteral":{let s=r.quasis[0].value.cooked;for(let a=0;a<r.expressions.length;a+=1){let n=t.evaluate(r.expressions[a]);if(n.is_known)s+=n.value+r.quasis[a+1].value.cooked;else{this.values.add(Vt);break}}this.values.add(s);break}case"MemberExpression":{let s=Dp(r,t);if(s&&Object.hasOwn(Ib,s)){this.values.add(Ib[s]);break}this.values.add(At);break}case"ArrowFunctionExpression":case"FunctionExpression":case"FunctionDeclaration":{this.values.add(Rb);break}default:this.values.add(At)}for(let s of this.values)this.value=s,s!==Vt&&typeof s!="string"&&(this.is_string=!1),s!==oe&&typeof s!="number"&&(this.is_number=!1),s!==Rb&&(this.is_function=!1),(s==null||s===At)&&(this.is_defined=!1),s===At&&(this.has_unknown=!0,this.is_primitive=!1);(this.values.size>1||typeof this.value=="symbol")&&(this.is_known=!1),Op.delete(r)}},Lp=class e{root;parent;#e;declarations=new Map;declarators=new Map;references=new Map;function_depth=0;tracing=null;constructor(t,r,i){this.root=t,this.parent=r,this.#e=i,this.function_depth=r?r.function_depth+(i?0:1):0}declare(t,r,i,s=null){if(this.parent){if(i==="var"&&this.#e)return this.parent.declare(t,r,i);if(i==="import")return this.parent.declare(t,r,i,s)}if(this.declarations.has(t.name)){let n=this.declarations.get(t.name);n&&n.declaration_kind!=="var"&&i!=="var"&&Ur(t,t.name)}let a=new Np(this,t,r,i,s);return Yr(a,this.function_depth),this.declarations.set(t.name,a),this.root.conflicts.add(t.name),a}child(t=!1){return new e(this.root,this,t)}generate(t){if(this.#e)return this.parent.generate(t);t=t.replace(/[^a-zA-Z0-9_$]/g,"_").replace(/^[0-9]/,"_");let r=this.root.next_counter(t),i;for(r===0?(i=t,r=1):(i=`${t}_${r}`,r++);this.references.has(i)||this.declarations.has(i)||this.root.conflicts.has(i)||Br(i);)i=`${t}_${r++}`;return this.root.set_counter(t,r),this.references.set(i,[]),this.root.conflicts.add(i),i}get(t){return this.declarations.get(t)??this.parent?.get(t)??null}get_bindings(t){let r=this.declarators.get(t);if(!r)throw new Error("No binding found for declarator");return r}owner(t){return this.declarations.has(t)?this:this.parent&&this.parent.owner(t)}reference(t,r){r=[...r];let i=this.references.get(t.name);i||this.references.set(t.name,i=[]),i.push({node:t,path:r});let s=this.declarations.get(t.name);s?s.references.push({node:t,path:r}):this.parent?this.parent.reference(t,r):this.root.conflicts.add(t.name)}evaluate(t,r=new Set){let i=Op.get(t);return i||new Mp(this,t,r)}},Op=new Map,bS={"!=":(e,t)=>e!=t,"!==":(e,t)=>e!==t,"<":(e,t)=>e<t,"<=":(e,t)=>e<=t,">":(e,t)=>e>t,">=":(e,t)=>e>=t,"==":(e,t)=>e==t,"===":(e,t)=>e===t,in:(e,t)=>e in t,instanceof:(e,t)=>e instanceof t,"%":(e,t)=>e%t,"&":(e,t)=>e&t,"*":(e,t)=>e*t,"**":(e,t)=>e**t,"+":(e,t)=>e+t,"-":(e,t)=>e-t,"/":(e,t)=>e/t,"<<":(e,t)=>e<<t,">>":(e,t)=>e>>t,">>>":(e,t)=>e>>>t,"^":(e,t)=>e^t,"|":(e,t)=>e|t},yS={"-":e=>-e,"+":e=>+e,"!":e=>!e,"~":e=>~e,typeof:e=>typeof e,void:()=>{},delete:()=>!0},gS={"||":(e,t)=>e||t,"&&":(e,t)=>e&&t,"??":(e,t)=>e??t},ka=class{conflicts=new Set;#e=new Map;next_counter(t){return this.#e.get(t)??0}set_counter(t,r){this.#e.set(t,r)}unique(t){t=t.replace(/[^a-zA-Z0-9_$]/g,"_");let r=this.#e.get(t)??0,i;for(r===0?(i=t,r=1):(i=`${t}_${r}`,r++);this.conflicts.has(i);)i=`${t}_${r++}`;return this.#e.set(t,r),this.conflicts.add(i),w(i)}};function Bp(e,t,r,i){let s=new Map,a=new Lp(t,i,!1);s.set(e,a);let n={scope:a},p=[],u=[],d=[];function m(o,g){for(let k of g)for(let S of ue(k))o.declare(S,"normal",k.type==="RestElement"?"rest_param":"param")}let h=(o,{state:g,next:k})=>{let S=g.scope.child(!0);s.set(o,S),k({scope:S})},_=(o,{state:g,next:k})=>{let S=g.scope.child();s.set(o,S),k({scope:S})},v=(o,g)=>{o.metadata.scopes={default:g.state.scope.child()},o.type==="SvelteComponent"&&g.visit(o.expression);let k=Pt(o)?g.state:{scope:o.metadata.scopes.default};for(let S of o.attributes)S.type==="LetDirective"?g.visit(S,k):g.visit(S);for(let S of o.fragment.nodes){let C=k,P=Pt(S);P!==null&&(o.metadata.scopes[P]=g.state.scope.child(),C={scope:o.metadata.scopes[P]}),g.visit(S,C)}},E=(o,{state:g,path:k,visit:S})=>{g.scope.reference(w(o.name.split(".")[0]),k),o.expression&&S(o.expression)},l=!1;re(e,n,{AwaitExpression(o,g){l||=g.path.every(({type:k})=>k!=="ArrowFunctionExpression"&&k!=="FunctionExpression"&&k!=="FunctionDeclaration"),g.next()},Identifier(o,{path:g,state:k}){let S=g.at(-1);S&&Ve(o,S)&&!S.type.startsWith("TS")&&p.push([k.scope,{node:o,path:g.slice()}])},LabeledStatement(o,{path:g,next:k}){if(g.length>1||!r||o.label.name!=="$")return k();let S=n.scope.child();if(s.set(o,S),o.body.type==="ExpressionStatement"&&o.body.expression.type==="AssignmentExpression")for(let C of ue(o.body.expression.left))C.name.startsWith("$")||d.push(C);k({scope:S})},SvelteFragment:_,SlotElement:_,SvelteElement:_,RegularElement:_,LetDirective(o,g){let k=g.state.scope,S=[];if(k.declarators.set(o,S),o.expression)for(let C of cs(o.expression)){let P=k.declare(C,"template","const");k.reference(C,[g.path[g.path.length-1],o]),S.push(P)}else{let C={name:o.name,type:"Identifier",start:o.start,end:o.end},P=k.declare(C,"template","const");k.reference(C,[g.path[g.path.length-1],o]),S.push(P)}},Component:(o,g)=>{g.state.scope.reference(w(o.name.split(".")[0]),g.path),v(o,g)},SvelteSelf:v,SvelteComponent:v,AssignmentExpression(o,{state:g,next:k}){u.push([g.scope,o.left,o.right]),k()},UpdateExpression(o,{state:g,next:k}){let S=o.argument;u.push([g.scope,S,S]),k()},ImportDeclaration(o,{state:g}){for(let k of o.specifiers)g.scope.declare(k.local,"normal","import",o)},FunctionExpression(o,{state:g,next:k}){let S=g.scope.child(!0);s.set(o,S),o.id&&S.declare(o.id,"normal","function"),m(S,o.params),k({scope:S})},FunctionDeclaration(o,{state:g,next:k}){o.id&&g.scope.declare(o.id,"normal","function",o);let S=g.scope.child(!0);s.set(o,S),m(S,o.params),k({scope:S})},ArrowFunctionExpression(o,{state:g,next:k}){let S=g.scope.child(!0);s.set(o,S),m(S,o.params),k({scope:S})},ForStatement:h,ForInStatement:h,ForOfStatement:h,SwitchStatement:h,BlockStatement(o,g){let k=g.path.at(-1);if(k?.type==="FunctionDeclaration"||k?.type==="FunctionExpression"||k?.type==="ArrowFunctionExpression"){let S=g.state.scope.child();s.set(o,S),g.next({scope:S})}else h(o,g)},ClassDeclaration(o,{state:g,next:k}){o.id&&g.scope.declare(o.id,"normal","let",o),k()},VariableDeclaration(o,{state:g,path:k,next:S}){let C=k.at(-1)?.type==="ConstTag";for(let P of o.declarations){let R=[];g.scope.declarators.set(P,R);for(let L of ue(P.id)){let H=g.scope.declare(L,C?"template":"normal",o.kind,P.init);H.metadata={is_template_declaration:!0},R.push(H)}}S()},CatchClause(o,{state:g,next:k}){if(o.param){let S=g.scope.child(!0);s.set(o,S);for(let C of ue(o.param))S.declare(C,"normal","let");k({scope:S})}else k()},EachBlock(o,{state:g,visit:k}){k(o.expression),o.fallback&&k(o.fallback);let S=g.scope.child();if(s.set(o,S),o.context){for(let C of ue(o.context)){let P=S.declare(C,"each","const"),R=!1,L=!1;re(o.context,null,{Identifier(H){R&&H===C&&(L=!0)},RestElement(H,{next:se}){let c=R;R=!0,se(),R=c}}),P.metadata={inside_rest:L}}k(o.context,{scope:S})}if(o.index){let C=o.key&&(o.key.type!=="Identifier"||!o.index||o.key.name!==o.index);S.declare(w(o.index),C?"template":"static","const",o)}o.key&&k(o.key,{scope:S});for(let C of o.body.nodes)k(C,{scope:S});o.metadata={expression:new ke,keyed:!1,contains_group_binding:!1,index:S.root.unique("$$index"),declarations:S.declarations,is_controlled:!1,transitive_deps:new Set}},AwaitBlock(o,g){if(g.visit(o.expression),o.pending&&g.visit(o.pending),o.then&&(g.visit(o.then),o.value)){let k=s.get(o.then),S=g.state.scope.child();s.set(o.value,S),g.visit(o.value,{scope:S});for(let C of ue(o.value))k.declare(C,"template","const"),S.declare(C,"normal","const")}if(o.catch&&(g.visit(o.catch),o.error)){let k=s.get(o.catch),S=g.state.scope.child();s.set(o.error,S),g.visit(o.error,{scope:S});for(let C of ue(o.error))k.declare(C,"template","const"),S.declare(C,"normal","const")}},SnippetBlock(o,g){let k=g.state;k.scope.declare(o.expression,"normal","function",o);let C=k.scope.child();s.set(o,C);for(let R of o.parameters)for(let L of ue(R))C.declare(L,"snippet","let");g.next({scope:C});let P=s.get(o.body);for(let[R,L]of P.declarations)C.declarations.has(R)&&Ur(L.node,R)},Fragment:(o,g)=>{let k=g.state.scope.child(o.metadata.transparent);s.set(o,k),g.next({scope:k})},BindDirective(o,g){if(o.expression.type!=="SequenceExpression"){let k=o.expression;u.push([g.state.scope,k,k])}g.next()},TransitionDirective:E,AnimateDirective:E,UseDirective:E,StyleDirective(o,{path:g,state:k,next:S}){o.value===!0&&k.scope.reference(w(o.name),g.concat(o)),S()}});for(let o of d)a.get(o.name)||a.declare(o,"legacy_reactive","let");for(let[o,{node:g,path:k}]of p)o.reference(g,k);for(let[o,g,k]of u)for(let S of Ut(g)){let C=Ie(S),P=C&&o.get(C.name);P!==null&&C!==P.node&&(C===S?(P.reassigned=!0,P.assignments.push({value:k,scope:o})):P.mutated=!0)}return{has_await:l,scope:a,scopes:s}}function Ti(e,{next:t,state:r}){let i=r.scopes.get(e);t(i!==void 0&&i!==r.scope?{...r,scope:i}:r)}function he(e,t){if(!e||e.type!=="CallExpression")return null;let r=Dp(e.callee,t);return!r||!Dt(r)?null:r}function Dp(e,t){let r=e,i="";for(;r.type==="MemberExpression";){if(r.computed||r.property.type!=="Identifier")return null;i="."+r.property.name+i,r=r.object}return r.type==="CallExpression"&&r.callee.type==="Identifier"&&(i="()"+i,r=r.callee),r.type!=="Identifier"||t.get(r.name)!==null?null:r.name+i}function $t(e,t){if(!e||e.type==="Literal"||e.type==="TemplateLiteral"||e.type==="ArrowFunctionExpression"||e.type==="FunctionExpression"||e.type==="UnaryExpression"||e.type==="BinaryExpression"||e.type==="Identifier"&&e.name==="undefined")return!1;if(e.type==="Identifier"&&t!==null){let r=t.get(e.name);if(r!==null&&!r.reassigned&&r.initial!==null&&r.initial.type!=="FunctionDeclaration"&&r.initial.type!=="ClassDeclaration"&&r.initial.type!=="ImportDeclaration"&&r.initial.type!=="EachBlock"&&r.initial.type!=="SnippetBlock")return $t(r.initial,null)}return!0}function Yr(e,t){if(!e)return;let r=e.declaration_kind;if(r!=="synthetic"&&r!=="param"&&r!=="rest_param"&&(!t||t<=1)){let i=e.node;i.name==="$"?$m(i):i.name.startsWith("$")&&!(e.initial?.type==="ImportDeclaration"&&e.initial.importKind==="type")&&Rm(i)}}function ms(e){let t=e.reduce((n,p)=>{let[u,d]=p;return n.has(u)||n.set(u,[]),n.has(d)||n.set(d,[]),n.get(u).push(d),n},new Map),r=new Set,i=new Set,s=[];function a(n){r.add(n),i.add(n),t.get(n)?.forEach(p=>{r.has(p)?i.has(p)&&s.push([...i,p]):a(p)}),i.delete(n)}return t.forEach((n,p)=>{r.has(p)||a(p)}),s[0]}var vS=/^-((webkit)|(moz)|(o)|(ms))-/,Nb=/^[\s,;}]$/;function jp(e){return e.replace(vS,"")}var Pi=e=>jp(e.name)==="keyframes";var hs={};function Er(e,t,r,i=!1){if(!r.has(hs))if(e.type==="Literal")r.add(String(e.value));else if(e.type==="ConditionalExpression")Er(e.consequent,t,r,i),Er(e.alternate,t,r,i);else if(e.type==="LogicalExpression")if(e.operator==="&&"){let s=new Set;if(Er(e.left,t,s,i),s.has(hs))(!t||!i)&&(r.add(""),r.add(!1),r.add(NaN),r.add(0));else for(let a of s)!a&&a!=null&&(!t||!i)&&r.add(a);Er(e.right,t,r,i)}else Er(e.left,t,r,i),Er(e.right,t,r,i);else if(t&&e.type==="ArrayExpression")for(let s of e.elements)s&&Er(s,t,r,!0);else if(t&&e.type==="ObjectExpression")for(let s of e.properties)s.type==="Property"&&!s.computed&&(s.key.type==="Identifier"||s.key.type==="Literal")?r.add(s.key.type==="Identifier"?s.key.name:String(s.key.value)):r.add(hs);else r.add(hs)}function Mb(e,t){let r=new Set;return e.type==="Text"?r.add(e.data):Er(e.expression,t,r),r.has(hs)?null:[...r].map(i=>String(i))}function Lb(e){let t=[];for(;e;)t.push(e),e=e.metadata.parent_rule;return t}function _s(e){let t=e.selectors[0];return t.type==="PseudoClassSelector"&&t.name==="global"&&(t.args===null||e.selectors.every(r=>bs(r)||r.type==="PseudoElementSelector"))}function bs(e){return e.type==="PseudoClassSelector"&&(e.name!=="has"&&e.name!=="is"&&e.name!=="where"&&(e.name!=="not"||e.args===null||e.args.children.every(t=>t.children.length===1))||e.args===null||e.args.children.every(t=>t.children.every(r=>_s(r))))}function Ob(e){let t=e.selectors[0];return t.type==="PseudoClassSelector"&&t.name==="global"&&(t.args===null||e.selectors.every(r=>r.type==="PseudoClassSelector"||r.type==="PseudoElementSelector"))}function wS(e){return e.type==="PseudoClassSelector"&&e.name==="global"&&e.args===null}function Db(e){return e.filter(t=>t.type==="Rule").every(t=>t.metadata.has_global_selectors)}function xS(e){return e.some(t=>t.type==="Rule"&&t.metadata.is_global_block)}var kS={Atrule(e,t){Pi(e)&&(!e.prelude.startsWith("-global-")&&!xS(t.path)?t.state.keyframes.push(e.prelude):e.prelude.startsWith("-global-")&&(t.state.analysis.css.has_global||=Db(t.path))),t.next()},ComplexSelector(e,t){t.next();{let r=e.children.find(_s);if(r){t.path.at(-2)?.type==="PseudoClassSelector"&&!r.selectors[0].args&&dh(r.selectors[0]);let s=e.children.indexOf(r);if(r.selectors[0].args!==null&&s!==0&&s!==e.children.length-1)for(let a=s+1;a<e.children.length;a++)_s(e.children[a])||fh(r.selectors[0])}}for(let r of e.children)for(let i=0;i<r.selectors.length;i++){let s=r.selectors[i];s.type==="PseudoClassSelector"&&s.name==="global"&&(s.args?.children[0].children[0]?.selectors[0].type==="TypeSelector"&&i!==0&&hh(s),r.selectors[i+1]?.type==="TypeSelector"&&bh(r.selectors[i+1]),s.args!==null&&s.args.children.length>1&&(e.children.length>1||r.selectors.length>1)&&mh(s))}if(e.metadata.rule=t.state.rule,e.metadata.is_global=e.children.every(({metadata:r})=>r.is_global||r.is_global_like),e.metadata.used||=e.metadata.is_global,e.metadata.rule?.metadata.parent_rule&&e.children[0]?.selectors[0]?.type==="NestingSelector"){let r=e.children[0]?.selectors[1],i=r?.type!=="PseudoClassSelector"||bs(r),s=e.metadata.rule.metadata.parent_rule.prelude.children.some(a=>a.children.length===1&&a.children[0].metadata.is_global);i&&s&&(e.metadata.used=!0)}},RelativeSelector(e,t){let r=t.path.at(-1);if(e.combinator!=null&&!t.state.rule?.metadata.parent_rule&&r.children[0]===e&&t.path.at(-3)?.type!=="PseudoClassSelector"&&ea(e.combinator),e.metadata.is_global=e.selectors.length>=1&&_s(e),e.selectors.length>=1&&e.selectors.every(i=>i.type==="PseudoClassSelector"||i.type==="PseudoElementSelector")){let i=e.selectors[0];e.metadata.is_global_like||=i.type==="PseudoClassSelector"&&i.name==="host"||i.type==="PseudoElementSelector"&&["view-transition","view-transition-group","view-transition-old","view-transition-new","view-transition-image-pair"].includes(i.name)}if(e.metadata.is_global_like||=e.selectors.some(i=>i.type==="PseudoClassSelector"&&i.name==="root")&&!e.selectors.some(i=>i.type==="PseudoClassSelector"&&i.name==="has"),e.metadata.is_global_like||e.metadata.is_global)for(let i of e.selectors)re(i,null,{ComplexSelector(s,a){s.metadata.used=!0,a.next()}});t.next()},Rule(e,t){e.metadata.parent_rule=t.state.rule;for(let i of e.prelude.children){let s=!1;for(let a=0;a<i.children.length;a++){let n=i.children[a],p=n.selectors.findIndex(wS);if(s&&(n.metadata.is_global_like=!0),p===0)if(n.selectors.length>1&&a===0&&e.metadata.parent_rule===null)Yc(n.selectors[1]);else{e.metadata.is_global_block=s=!0;for(let m=1;m<n.selectors.length;m++)re(n.selectors[m],null,{ComplexSelector(h){h.metadata.used=!0}});n.combinator&&n.combinator.name!==" "&&ch(n,n.combinator.name);let u=e.block.children.find(m=>m.type==="Declaration"),d=i.children.length===1&&i.children[0].selectors.length===1;d&&e.prelude.children.length>1&&Jc(e.prelude),u&&e.prelude.children.length===1&&d&&ph(u)}else p!==-1&&uh(n.selectors[p])}e.metadata.is_global_block&&!s&&Jc(e.prelude)}let r={...t.state,rule:e};t.visit(e.prelude,r);for(let i of e.prelude.children)e.metadata.has_global_selectors||=i.metadata.is_global,e.metadata.has_local_selectors||=!i.metadata.is_global;t.state.analysis.css.has_global||=e.metadata.has_global_selectors&&e.block.children.filter(i=>i.type==="Declaration").length>0&&Db(t.path),t.visit(e.block,r)},NestingSelector(e,t){let r=t.state.rule,i=r.metadata.parent_rule;if(i)i.metadata.is_global_block&&!i.metadata.parent_rule&&i.prelude.children[0].children.length===1&&i.prelude.children[0].children[0].selectors.length===1&&Yc(e);else{let s=r.prelude.children,a=s[0].children[0].selectors;(s.length>1||a.length>1||a[0].type!=="PseudoClassSelector"||a[0].name!=="global"||a[0].args?.children[0]?.children[0].selectors[0]!==e)&&_h(e)}t.next()},PseudoElementSelector(){}};function Bb(e,t){let r={keyframes:t.css.keyframes,rule:null,analysis:t};re(e,r,kS)}var ys=0,Vp=1,Rt=0,vs=1,ES=new Map([["details",["open"]],["dialog",["open"]]]),SS=new Set(["accept-charset","autocapitalize","autocomplete","behavior","charset","crossorigin","decoding","dir","direction","draggable","enctype","enterkeyhint","fetchpriority","formenctype","formmethod","formtarget","hidden","http-equiv","inputmode","kind","loading","method","preload","referrerpolicy","rel","rev","role","rules","scope","shape","spellcheck","target","translate","type","valign","wrap"]),Fb={type:"Combinator",name:" ",start:-1,end:-1},CS={type:"RelativeSelector",start:-1,end:-1,combinator:null,selectors:[{type:"NestingSelector",name:"&",start:-1,end:-1}],metadata:{is_global:!1,is_global_like:!1,scoped:!1}},TS={type:"RelativeSelector",start:-1,end:-1,combinator:null,selectors:[{type:"TypeSelector",name:"*",start:-1,end:-1}],metadata:{is_global:!1,is_global_like:!1,scoped:!1}},PS=new Set;function AS(e){return e.metadata.path.some(t=>t.type==="SvelteHead")}function Ub(e,t){re(e,null,{Rule(r,i){r.metadata.is_global_block?i.visit(r.prelude):i.next()},ComplexSelector(r){let i=Hb(r),s=r.metadata.rule;Up(i,0,i.length,s)&&(r.metadata.used=!0);for(let a of t)PS.clear(),!AS(a)&&Sr(i,s,a,vs)&&(r.metadata.used=!0)}})}function Hb(e){let t=Ea(e);if(e.metadata.rule?.metadata.parent_rule&&t.length>0){let r=!1;for(let i of t)if(re(i,null,{NestingSelector(){r=!0}}),r)break;r||(t[0].combinator===null&&(t[0]={...t[0],combinator:Fb}),t.unshift(CS))}return t}function Ea(e){let t=e.children.findLastIndex(({metadata:r,selectors:i})=>{let s=i[0];return!r.is_global_like&&!(s.type==="PseudoClassSelector"&&s.name==="global"&&s.args===null)&&!r.is_global});return e.children.slice(0,t+1).map(r=>!r.selectors.find(s=>s.type==="PseudoClassSelector"&&s.name==="root")||r.metadata.is_global_like?r:{...r,selectors:r.selectors.filter(s=>s.type==="PseudoClassSelector"&&s.name==="has")})}function Sr(e,t,r,i,s=0,a=e.length){if(s>=a)return!1;let n=i===Rt?s:a-1,p=e[n],u=i===Rt?s+1:s,d=i===Rt?a:a-1,m=qS(p,t,r,i)&&$S(p,e,u,d,t,r,i);return m&&(Ob(p)||(p.metadata.scoped=!0),r.metadata.scoped=!0),m}function $S(e,t,r,i,s,a,n){let p=n==Rt?r<i?t[r].combinator:void 0:e.combinator;if(!p)return!0;switch(p.name){case" ":case">":{let u=p.name===">",d=n===Rt?NS(a,u):Vb(a,u),m=!1;for(let h of d)Sr(t,s,h,n,r,i)&&(m=!0);return m||n===vs&&(!u||d.length===0)&&Up(t,r,i,s)}case"+":case"~":{let u=Wb(a,n,p.name==="+"),d=!1;for(let m of u.keys())m.type==="RenderTag"||m.type==="SlotElement"||m.type==="Component"?i-r===1&&t[r].metadata.is_global&&(d=!0):Sr(t,s,m,n,r,i)&&(d=!0);return d||n===vs&&zb(a)===null&&Up(t,r,i,s)}default:return!0}}function Up(e,t,r,i){for(let s=t;s<r;s++)if(!Sa(e[s],i))return!1;return!0}function Sa(e,t){if(e.metadata.is_global||e.metadata.is_global_like)return!0;let r=!1;for(let i of e.selectors){let s=null,a=!1,n=t;i.type==="PseudoClassSelector"&&((i.name==="is"||i.name==="where")&&i.args?s=i.args:a=bs(i)),i.type==="NestingSelector"&&(n=t.metadata.parent_rule,s=n.prelude);let p=!!s?.children.some(u=>u.children.every(d=>Sa(d,n)));if(r||=p,!p&&!a)return!1}return r||e.selectors.length===0}var RS=/\\(.)/g;function qS(e,t,r,i){let s;for(let a of e.selectors){if(a.type==="PseudoClassSelector"&&a.name==="has"&&a.args){if(s===void 0){let d=Lb(t);s=d.some(m=>m.prelude.children.some(h=>h.children.some(_=>Sa(_,m))))||d[d.length-1].prelude.children.some(m=>m.children.some(h=>h.selectors.some(_=>_.type==="PseudoClassSelector"&&(_.name==="root"||_.name==="global"&&_.args))))}let p=a.args.children,u=!1;for(let d of p){let[m,...h]=Ea(d);if(!m){d.metadata.used=!0,u=!0;continue}if(s){let v=[m.combinator?{...m,combinator:null}:m,...h];Sr(v,t,r,Rt)&&(d.metadata.used=!0,u=!0)}let _=[TS,m.combinator?m:{...m,combinator:Fb},...h];Sr(_,t,r,Rt)&&(d.metadata.used=!0,u=!0)}if(!u)return!1;continue}if(a.type==="Percentage"||a.type==="Nth")continue;let n=a.name.includes("\\")?a.name.replace(RS,"$1"):a.name;switch(a.type){case"PseudoClassSelector":{if(n==="host"||n==="root")return!1;if(n==="global"&&a.args!==null&&e.selectors.length===1){let u=a.args.children[0];return Sr(u.children,t,r,vs)}if(n==="global"&&a.args===null)return!0;if(n==="not"&&a.args){for(let p of a.args.children){re(p,null,{ComplexSelector(d,m){d.metadata.used=!0,m.next()}});let u=Ea(p);if(p.children.length>1){for(let m of u)m.metadata.scoped=!0;let d=r;for(;d;)d.metadata.scoped=!0,d=zb(d)}}break}if((n==="is"||n==="where")&&a.args){let p=!1;for(let u of a.args.children){let d=Ea(u);if(d.length===0)u.metadata.used=!0,p=!0;else if(Sr(d,t,r,vs))u.metadata.used=!0,p=!0;else if(u.children.length>1&&(n=="is"||n=="where")){u.metadata.used=!0,p=!0;for(let h of d)h.metadata.scoped=!0}}if(!p)return!1}break}case"PseudoElementSelector":break;case"AttributeSelector":{if(!ES.get(r.name.toLowerCase())?.includes(a.name.toLowerCase())&&!Fp(r,a.name,a.value&&IS(a.value),a.matcher,(a.flags?.includes("i")??!1)||!a.flags?.includes("s")&&SS.has(a.name.toLowerCase())))return!1;break}case"ClassSelector":{if(!Fp(r,"class",n,"~=",!1))return!1;break}case"IdSelector":{if(!Fp(r,"id",n,"=",!1))return!1;break}case"TypeSelector":{if(r.name.toLowerCase()!==n.toLowerCase()&&n!=="*"&&r.type!=="SvelteElement")return!1;break}case"NestingSelector":{let p=!1,u=t.metadata.parent_rule;for(let d of u.prelude.children)(Sr(Hb(d),u,r,i)||d.children.every(m=>Sa(m,u)))&&(d.metadata.used=!0,p=!0);if(!p)return!1;break}}}return!0}function jb(e,t,r,i){switch(r&&(t=t.toLowerCase(),i=i.toLowerCase()),e){case"=":return i===t;case"~=":return i.split(/\s/).includes(t);case"|=":return`${i}-`.startsWith(`${t}-`);case"^=":return i.startsWith(t);case"$=":return i.endsWith(t);case"*=":return i.includes(t);default:throw new Error("this shouldn't happen")}}function Fp(e,t,r,i,s){let a=t.toLowerCase();for(let n of e.attributes){if(n.type==="SpreadAttribute"||n.type==="BindDirective"&&n.name===t||n.type==="StyleDirective"&&a==="style")return!0;if(n.type==="ClassDirective"&&a==="class")if(i==="~="){if(n.name===r)return!0}else return!0;if(n.type!=="Attribute"||n.name.toLowerCase()!==a)continue;if(n.value===!0)return i===null;if(r===null)return!0;if(me(n)){let m=jb(i,r,s,n.value[0].data);if(!m&&(a==="class"||a==="style"))continue;return m}let p=vr(n.value),u=new Set,d=[];for(let m of p){let h=Mb(m,a==="class");if(!h)return!0;if(d.length>0){let _=[],v=[];if(h.forEach(E=>{hd.test(E)?_.push(E):v.push(E)}),v.length>0){_.length>0&&d.forEach(l=>u.add(l));let E=[];d.forEach(l=>{v.forEach(o=>{E.push(l+o)})}),d=E,_.forEach(l=>{vc.test(l)?u.add(l):d.push(l)});continue}else d.forEach(E=>u.add(E)),d=[]}if(h.forEach(_=>{vc.test(_)?u.add(_):d.push(_)}),d.length<h.length&&d.push(" "),d.length>20)return!0}d.forEach(m=>u.add(m));for(let m of u)if(jb(i,r,s,m))return!0}return!1}function IS(e){return e[0]===e[e.length-1]&&e[0]==="'"||e[0]==='"'?e.slice(1,e.length-1):e}function Vb(e,t,r=new Set){let i=[],s=e.metadata.path,a=s.length;for(;a--;){let n=s[a];if(n.type==="SnippetBlock"){if(!r.has(n)){r.add(n);for(let p of n.metadata.sites)i.push(...Vb(p,t,r))}break}if(n.type==="RegularElement"||n.type==="SvelteElement"){if(n.type==="RegularElement"&&n.name==="option"){let p=i.length===0,u=s.findLast((d,m)=>d.type==="RegularElement"&&d.name==="select"&&m<a);if(u&&(!t||p)){let d=null;if(re(u,null,{RegularElement(m,h){if(m.name==="selectedcontent"){d=m,h.stop();return}h.next()}}),t&&p&&d)return[d,n];d&&i.push(d)}}if(i.push(n),t)break}}return i}function NS(e,t,r=new Set){let i=[];function s(a){re(a,null,{_(n,p){if(n.type==="RegularElement"||n.type==="SvelteElement")i.push(n),t||p.next();else if(n.type==="RenderTag")for(let u of n.metadata.snippets)r.has(u)||(r.add(u),s(u.body));else p.next()}})}if(s(e.type==="RenderTag"?e:e.fragment),e.type==="RegularElement"&&e.name==="selectedcontent"){let n=e.metadata.path.findLast(p=>p.type==="RegularElement"&&p.name==="select");n&&re(n,{inside_option:!1},{_(p,u){p.type==="RegularElement"&&p.name==="option"?u.next({inside_option:!0}):u.state.inside_option?s(p):u.next()}})}return i}function zb(e){let t=e.metadata.path,r=t.length;for(;r--;){let i=t[r];if(i.type==="RegularElement"||i.type==="SvelteElement")return i}return null}function Wb(e,t,r,i=new Set){let s=new Map,a=e.metadata.path,n=e,p=a.length;for(;p--;){let u=a[p--],d=u.nodes.indexOf(n)+(t===Rt?1:-1);for(;d>=0&&d<u.nodes.length;){let m=u.nodes[d];if(m.type==="RegularElement"){if(!m.attributes.some(_=>_.type==="Attribute"&&_.name.toLowerCase()==="slot")&&(s.set(m,Vp),r))return s}else if(Hp(m)||m.type==="Component"){(m.type==="SlotElement"||m.type==="Component")&&s.set(m,ys);let h=gs(m,t,r);if(Zr(h,s),r&&m.type!=="Component"&&Ca(h))return s}else if(m.type==="SvelteElement")s.set(m,ys);else if(m.type==="RenderTag"){s.set(m,ys);for(let h of m.metadata.snippets)Zr(gs(h,t,r),s)}d=t===Rt?d+1:d-1}if(n=a[p],!n)break;if(!(n.type==="Component"||n.type==="SvelteComponent"||n.type==="SvelteSelf")){if(n.type==="SnippetBlock"){if(i.has(n))break;i.add(n);for(let m of n.metadata.sites){let h=Wb(m,t,r,i);if(Zr(h,s),r&&n.metadata.sites.size===1&&Ca(h))return s}}if(!Hp(n))break;n.type==="EachBlock"&&u===n.body&&Zr(gs(n,t,r),s)}}return s}function gs(e,t,r,i=new Set){let s=[];switch(e.type){case"EachBlock":s.push(e.body,e.fallback);break;case"IfBlock":s.push(e.consequent,e.alternate);break;case"AwaitBlock":s.push(e.pending,e.then,e.catch);break;case"KeyBlock":case"SlotElement":s.push(e.fragment);break;case"SnippetBlock":if(i.has(e))return new Map;i.add(e),s.push(e.body);break;case"Component":s.push(e.fragment,...[...e.metadata.snippets].map(p=>p.body));break}let a=new Map,n=e.type!=="SlotElement"&&e.type!=="SnippetBlock";for(let p of s){if(p==null){n=!1;continue}let u=LS(p.nodes,t,r,i);n&&=Ca(u),Zr(u,a)}if(!n)for(let p of a.keys())a.set(p,ys);return a}function Ca(e){if(e.size===0)return!1;for(let t of e.values())if(t===Vp)return!0;return!1}function Zr(e,t){e.forEach((r,i)=>{t.set(i,MS(r,t.get(i)))})}function MS(e,t){return t===void 0||e>t?e:t}function LS(e,t,r,i){let s=new Map,a=t===Rt?0:e.length-1;for(;a>=0&&a<e.length;){let n=e[a];if(n.type==="RegularElement"){if(s.set(n,Vp),r)break}else if(n.type==="SvelteElement")s.set(n,ys);else if(n.type==="RenderTag")for(let p of n.metadata.snippets)Zr(gs(p,t,r,i),s);else if(Hp(n)){let p=gs(n,t,r,i);if(Zr(p,s),r&&Ca(p))break}a=t===Rt?a+1:a-1}return s}function Hp(e){return e.type==="IfBlock"||e.type==="EachBlock"||e.type==="AwaitBlock"||e.type==="KeyBlock"||e.type==="SlotElement"}function Gb(e){re(e,{stylesheet:e},OS)}var OS={Atrule(e,t){Pi(e)||t.next()},PseudoClassSelector(e,t){(e.name==="is"||e.name==="where")&&t.next()},PseudoElementSelector(){},ComplexSelector(e,t){if(!e.metadata.used&&(t.path.at(-2)?.type!=="PseudoClassSelector"||t.path.at(-4)?.metadata.used)){let r=t.state.stylesheet.content,i=r.styles.substring(e.start-r.start,e.end-r.start);Hf(e,i)}t.next()},Rule(e,t){e.metadata.is_global_block?t.visit(e.prelude):t.next()}};function Ai(e,t){if(t.state.expression)for(let[r]of t.state.scope.references){let i=t.state.scope.get(r);i&&i.scope!==t.state.scope&&t.state.expression.references.add(i)}t.next({...t.state,function_depth:Math.max(t.state.scope.function_depth,t.state.function_depth)+1,expression:null})}function Kb(e,t){Ai(e,t)}function $i(e,t,r){if(zp(e,t,r.state.scope,e.type==="BindDirective"),t.type==="Identifier"){let i=r.state.scope.get(t.name);r.state.analysis.runes&&(r.state.analysis.props_id!=null&&i?.node===r.state.analysis.props_id&&Vc(e,"$props.id()"),i?.kind==="each"&&qm(e)),i?.kind==="snippet"&&sh(e)}if(t.type==="MemberExpression"&&t.object.type==="ThisExpression"){let i=t.computed&&t.property.type!=="Literal"?null:Ye(t.property),s=i!==null&&r.state.state_fields?.get(i);if(s&&s.node.type==="AssignmentExpression"&&e!==s.node){let a=r.path.length;for(;a--;){let n=r.path[a];if(n.type==="FunctionDeclaration"||n.type==="FunctionExpression"||n.type==="ArrowFunctionExpression"){let p=er(r.path,a-1);p.type==="MethodDefinition"&&p.kind==="constructor"&&e.start<s.node.start&&Ys(e);break}}}}}function zp(e,t,r,i){if(t.type==="ArrayPattern")for(let s of t.elements)s&&zp(e,s,r,i);else if(t.type==="ObjectPattern")for(let s of t.properties)s.type==="Property"&&zp(e,s.value,r,i);else if(t.type==="Identifier"){let s=r.get(t.name);if(s?.declaration_kind==="import"||s?.declaration_kind==="const"&&s.kind!=="each"){let a=s.declaration_kind==="import"?"import":"constant";i?Pm(e,a):Vc(e,a)}}}function ze(e,t,r){t.analysis.source[e.start+1]!==r&&ns({start:e.start,end:e.start+5},r)}function at(e,t){e&&e.nodes.length===1&&e.nodes[0].type==="Text"&&!e.nodes[0].raw.trim()&&Jf(e.nodes[0])}function Xb(e,t){let r=ue(e.id);for(let i of r)t.ast_type==="instance"&&t.scope===t.analysis.instance.scope&&t.analysis.module.scope.get(i.name)?.declaration_kind==="import"&&Am(e.id)}function ws(e,t){let r=e;for(;r.type==="MemberExpression";)r=r.object;if(r.type!=="Identifier")return!1;let i=t.get(r.name);return i?i.kind==="store_sub"?ws({name:r.name.slice(1),type:"Identifier"},t):i.declaration_kind!=="import"&&i.kind!=="prop"&&i.kind!=="bindable_prop"&&i.kind!=="rest_prop":!0}function ir(e,t){if(e.type==="Literal")return!0;if(e.type==="CallExpression"){if(!ir(e.callee,t))return!1;for(let i of e.arguments)if(!ir(i.type==="SpreadElement"?i.argument:i,t))return!1;return!0}if(e.type!=="Identifier"&&e.type!=="MemberExpression"||he(y(e),t.state.scope)==="$effect.tracking")return!1;let r=e;for(;r.type==="MemberExpression";)r=r.object;if(!r)return!1;if(r.type==="Identifier"){if(t.state.scope.get(r.name)===null)return!0}else if(ir(r,t))return!0;return!1}function Ta(e,t,r){let i=t.get(r);i&&(i.kind==="derived"&&Ks(e),(i.kind==="state"||i.kind==="raw_state")&&i.reassigned&&Zs(e))}function Cr(e,t){let r=mt(e);r.type==="Identifier"&&r.name===e.name&&!t.state.scope.get(r.name)&&zf(e,e.name)}function Jb(e,t){if($i(e,e.left,t),t.state.reactive_statement&&(e.left.type==="MemberExpression"?Ie(e.left):e.left)!==null)for(let i of ue(e.left)){let s=t.state.scope.get(i.name);s&&t.state.reactive_statement.assignments.add(s)}t.state.expression&&(t.state.expression.has_assignment=!0),t.next()}function Yb(e,t){t.next({...t.state,expression:e.metadata.expression}),e.metadata.expression.has_await&&xt(e)}function ae(e){let t=e.length;for(;t--;){let r=e[t];if(r.type==="Fragment"){if(r.metadata.dynamic)return;r.metadata.dynamic=!0}}}function Zb(e,t){ae(t.path),t.next({...t.state,expression:e.metadata.expression}),e.metadata.expression.has_await&&xt(e)}function Qb(e,t){t.next();let r=t.path.at(-1);if(r.type==="RegularElement"&&e.name==="value"&&r.name==="option"&&ae(t.path),Pe(e)&&ae(t.path),ci(e.name)&&ae(t.path),e.name==="class"&&!Array.isArray(e.value)&&e.value!==!0&&e.value.expression.type!=="Literal"&&e.value.expression.type!=="TemplateLiteral"&&e.value.expression.type!=="BinaryExpression"&&(ae(t.path),e.metadata.needs_clsx=!0),e.value!==!0){for(let i of vr(e.value))i.type==="ExpressionTag"&&(i.expression.type==="FunctionExpression"||i.expression.type);if(Pe(e)){let i=t.path.at(-1);(i?.type==="RegularElement"||i?.type==="SvelteElement")&&(t.state.analysis.uses_event_attributes=!0),e.metadata.delegated=i?.type==="RegularElement"&&Pd(e.name.slice(2))}}}function ey(e,t){if(at(e.pending,t),at(e.then,t),at(e.catch,t),t.state.analysis.runes){if(ze(e,t.state,"#"),e.value){let r=e.value.start,i=t.state.analysis.source.substring(r-10,r).match(/{(\s*):then\s+$/);i&&i[1]!==""&&ns({start:r-10,end:r},":")}if(e.error){let r=e.error.start,i=t.state.analysis.source.substring(r-10,r).match(/{(\s*):catch\s+$/);i&&i[1]!==""&&ns({start:r-10,end:r},":")}}ae(t.path),t.visit(e.expression,{...t.state,expression:e.metadata.expression}),e.pending&&t.visit(e.pending),e.then&&t.visit(e.then),e.catch&&t.visit(e.catch)}function ty(e,t){let r=t.state.ast_type==="instance"&&t.state.function_depth===1;if(DS(t.path,t.state.derived_function_depth===t.state.function_depth)){let s=t.state.expression;(s.has_pickled_await||!BS(t.path,e))&&(t.state.analysis.pickled_awaits.add(e),s.has_pickled_await=!0)}let i=r;t.state.expression&&(t.state.expression.has_await=!0,i=!0),i&&(t.state.options.experimental.async||Nm(e),t.state.analysis.runes||Fm(e)),t.next()}function DS(e,t){if(t)return!0;let r=e.length;for(;r--;){let i=e[r];if(i.type==="ArrowFunctionExpression"||i.type==="FunctionExpression"||i.type==="FunctionDeclaration")return!1;if(i.metadata)return!0}return!1}function BS(e,t){let r=e.length;for(;r--;){let i=e[r];if(i.type==="ConstTag")return!1;if(i.metadata)return!0;switch(i.type){case"ArrayExpression":if(t!==i.elements.at(-1))return!1;break;case"AssignmentExpression":case"BinaryExpression":case"LogicalExpression":if(t===i.left)return!1;break;case"CallExpression":case"NewExpression":if(t!==i.arguments.at(-1))return!1;break;case"ConditionalExpression":if(t===i.test)return!1;break;case"MemberExpression":return!1;case"ObjectExpression":if(t!==i.properties.at(-1))return!1;break;case"Property":if(t===i.key)return!1;break;case"SequenceExpression":if(t!==i.expressions.at(-1))return!1;break;case"TaggedTemplateExpression":if(t!==i.quasi.expressions.at(-1))return!1;break;case"TemplateLiteral":if(t!==i.expressions.at(-1))return!1;break;case"VariableDeclarator":return!0;default:return!1}t=i}}var zt={currentTime:{valid_elements:["audio","video"],omit_in_ssr:!0,bidirectional:!0},duration:{valid_elements:["audio","video"],event:"durationchange",omit_in_ssr:!0},focused:{omit_in_ssr:!0},paused:{valid_elements:["audio","video"],omit_in_ssr:!0,bidirectional:!0},buffered:{valid_elements:["audio","video"],omit_in_ssr:!0},seekable:{valid_elements:["audio","video"],omit_in_ssr:!0},played:{valid_elements:["audio","video"],omit_in_ssr:!0},volume:{valid_elements:["audio","video"],omit_in_ssr:!0,bidirectional:!0},muted:{valid_elements:["audio","video"],omit_in_ssr:!0,bidirectional:!0},playbackRate:{valid_elements:["audio","video"],omit_in_ssr:!0,bidirectional:!0},seeking:{valid_elements:["audio","video"],omit_in_ssr:!0},ended:{valid_elements:["audio","video"],omit_in_ssr:!0},readyState:{valid_elements:["audio","video"],omit_in_ssr:!0},videoHeight:{valid_elements:["video"],event:"resize",omit_in_ssr:!0},videoWidth:{valid_elements:["video"],event:"resize",omit_in_ssr:!0},naturalWidth:{valid_elements:["img"],event:"load",omit_in_ssr:!0},naturalHeight:{valid_elements:["img"],event:"load",omit_in_ssr:!0},activeElement:{valid_elements:["svelte:document"],omit_in_ssr:!0},fullscreenElement:{valid_elements:["svelte:document"],event:"fullscreenchange",omit_in_ssr:!0},pointerLockElement:{valid_elements:["svelte:document"],event:"pointerlockchange",omit_in_ssr:!0},visibilityState:{valid_elements:["svelte:document"],event:"visibilitychange",omit_in_ssr:!0},innerWidth:{valid_elements:["svelte:window"],omit_in_ssr:!0},innerHeight:{valid_elements:["svelte:window"],omit_in_ssr:!0},outerWidth:{valid_elements:["svelte:window"],omit_in_ssr:!0},outerHeight:{valid_elements:["svelte:window"],omit_in_ssr:!0},scrollX:{valid_elements:["svelte:window"],omit_in_ssr:!0,bidirectional:!0},scrollY:{valid_elements:["svelte:window"],omit_in_ssr:!0,bidirectional:!0},online:{valid_elements:["svelte:window"],omit_in_ssr:!0},devicePixelRatio:{valid_elements:["svelte:window"],event:"resize",omit_in_ssr:!0},clientWidth:{omit_in_ssr:!0,invalid_elements:["svelte:window","svelte:document"]},clientHeight:{omit_in_ssr:!0,invalid_elements:["svelte:window","svelte:document"]},offsetWidth:{omit_in_ssr:!0,invalid_elements:["svelte:window","svelte:document"]},offsetHeight:{omit_in_ssr:!0,invalid_elements:["svelte:window","svelte:document"]},contentRect:{omit_in_ssr:!0,invalid_elements:["svelte:window","svelte:document"]},contentBoxSize:{omit_in_ssr:!0,invalid_elements:["svelte:window","svelte:document"]},borderBoxSize:{omit_in_ssr:!0,invalid_elements:["svelte:window","svelte:document"]},devicePixelContentBoxSize:{omit_in_ssr:!0,invalid_elements:["svelte:window","svelte:document"]},indeterminate:{event:"change",bidirectional:!0,valid_elements:["input"],omit_in_ssr:!0},checked:{valid_elements:["input"],bidirectional:!0},group:{valid_elements:["input"],bidirectional:!0},this:{omit_in_ssr:!0},innerText:{invalid_elements:["svelte:window","svelte:document"],bidirectional:!0},innerHTML:{invalid_elements:["svelte:window","svelte:document"],bidirectional:!0},textContent:{invalid_elements:["svelte:window","svelte:document"],bidirectional:!0},open:{event:"toggle",bidirectional:!0,valid_elements:["details"]},value:{valid_elements:["input","textarea","select"],bidirectional:!0},files:{valid_elements:["input"],omit_in_ssr:!0,bidirectional:!0}};function ry(e,t){let r=t.path.at(-1);if(r?.type==="RegularElement"||r?.type==="SvelteElement"||r?.type==="SvelteWindow"||r?.type==="SvelteDocument"||r?.type==="SvelteBody")if(e.name in zt){let n=zt[e.name];if(n.valid_elements&&!n.valid_elements.includes(r.name)&&ss(e,e.name,n.valid_elements.map(p=>`\`<${p}>\``).join(", ")),n.invalid_elements&&n.invalid_elements.includes(r.name)){let p=Object.entries(zt).filter(([u,d])=>d.valid_elements?.includes(r.name)||!d.valid_elements&&!d.invalid_elements?.includes(r.name)).map(([u])=>u).sort();ra(e,e.name,`Possible bindings for <${r.name}> are ${p.join(", ")}`)}if(r.name==="input"&&e.name!=="this"){let p=r.attributes.find(u=>u.type==="Attribute"&&u.name==="type");p&&!me(p)?(e.name!=="value"||p.value===!0)&&Th(p):(e.name==="checked"&&p?.value[0].data!=="checkbox"&&ss(e,e.name,`\`<input type="checkbox">\`${p?.value[0].data==="radio"?' \u2014 for `<input type="radio">`, use `bind:group`':""}`),e.name==="files"&&p?.value[0].data!=="file"&&ss(e,e.name,'`<input type="file">`'))}if(r.name==="select"&&e.name!=="this"){let p=r.attributes.find(u=>u.type==="Attribute"&&u.name==="multiple"&&!me(u)&&u.value!==!0);p&&Sh(p)}if(e.name==="offsetWidth"&&di(r.name)&&ss(e,e.name,"non-`<svg>` elements. Use `bind:clientWidth` for `<svg>` instead"),pi(e.name)){let p=r.attributes.find(u=>u.type==="Attribute"&&u.name==="contenteditable");p?!me(p)&&p.value!==!0&&vh(p):wh(e)}}else{let n=ur(e.name,Object.keys(zt));if(n){let p=zt[n];(!p.valid_elements||p.valid_elements.includes(r.name))&&ra(e,e.name,`Did you mean '${n}'?`)}ra(e,e.name)}if(e.expression.type==="SequenceExpression"){e.name==="group"&&Ah(e);let n=e.expression.start,p=e.expression.leadingComments?.at(0)?.start,u=e.expression.leadingComments?.at(-1)?.end;for(;t.state.analysis.source[--n]!=="{";)t.state.analysis.source[n]==="("&&!(p&&u&&n<=u&&n>=p)&&Rh(e,e.name);e.expression.expressions.length!==2&&Qc(e),ae(t.path);let[d,m]=e.expression.expressions;t.visit(d.type==="ArrowFunctionExpression"?d.body:d,{...t.state,expression:e.metadata.expression}),t.visit(m.type==="ArrowFunctionExpression"?m.body:m,{...t.state,expression:e.metadata.expression}),e.metadata.expression.has_await&&xt(e);return}$i(e,e.expression,t);let i=e.expression,s=Ie(i);s===null&&Qc(e);let a=t.state.scope.get(s.name);if(e.metadata.binding=a,i.type==="Identifier"&&e.name!=="this"&&(!a||a.kind!=="state"&&a.kind!=="raw_state"&&a.kind!=="prop"&&a.kind!=="bindable_prop"&&a.kind!=="each"&&a.kind!=="store_sub"&&!a.updated)&&qh(e.expression),e.name==="group"){if(!a)throw new Error("Cannot find declaration for bind:group");a.kind==="snippet"&&$h(e);let n=[],[p,u]=ba(e.expression),d=u,m=t.path.length;for(;m--;){let v=t.path[m];if(v.type==="EachBlock"){let E=d.filter(l=>v.metadata.declarations.has(l.name));E.length>0&&(v.metadata.contains_group_binding=!0,n.push(v),d=d.filter(l=>!E.includes(l)),d.push(...ba(v.expression)[1]))}}let h=u.map(v=>t.state.scope.get(v.name)),_;e:for(let[[v,E],l]of t.state.analysis.binding_groups)if(!(E.length!==h.length||v!==p)){for(let o=0;o<h.length;o++)if(h[o]!==E[o])continue e;_=l}_||(_=t.state.scope.root.unique("binding_group"),t.state.analysis.binding_groups.set([p,h],_)),e.metadata={binding_group_name:_,parent_each_blocks:n,expression:e.metadata.expression}}a?.kind==="each"&&a.metadata?.inside_rest&&Xf(a.node,a.node.name),t.next({...t.state,expression:e.metadata.expression}),e.metadata.expression.has_await&&xt(e)}function iy(e,t){let r=er(t.path,-1),i=he(e,t.state.scope);if(i&&i!=="$inspect")for(let s of e.arguments)s.type==="SpreadElement"&&Zm(e,i);switch(i){case null:ws(e.callee,t.state.scope)||(t.state.analysis.needs_context=!0);break;case"$bindable":e.arguments.length>1&&wt(e,"$bindable","zero or one arguments"),(r.type!=="AssignmentPattern"||t.path.at(-3)?.type!=="ObjectPattern"||t.path.at(-4)?.type!=="VariableDeclarator"||he(t.path.at(-4).init,t.state.scope)!=="$props")&&Tm(e),t.state.analysis.needs_context=!0;break;case"$host":e.arguments.length>0?is(e,"$host"):(t.state.ast_type==="module"||!t.state.analysis.custom_element)&&Lm(e);break;case"$props":t.state.has_props_rune&&Wc(e,i),t.state.has_props_rune=!0,(r.type!=="VariableDeclarator"||t.state.ast_type!=="instance"||t.state.scope!==t.state.analysis.instance.scope)&&Km(e),e.arguments.length>0&&is(e,i);break;case"$props.id":{let s=er(t.path,-2);t.state.analysis.props_id&&Wc(e,i),(r.type!=="VariableDeclarator"||r.id.type!=="Identifier"||t.state.ast_type!=="instance"||t.state.scope!==t.state.analysis.instance.scope||s.type!=="VariableDeclaration")&&Wm(e),e.arguments.length>0&&is(e,i),t.state.analysis.props_id=r.id;break}case"$state":case"$state.raw":case"$derived":case"$derived.by":{FS(r,t)||US(r)||HS(r,t)||Qs(e,i),(i==="$derived"||i==="$derived.by")&&e.arguments.length!==1?wt(e,i,"exactly one argument"):e.arguments.length>1&&wt(e,i,"zero or one arguments");break}case"$effect":case"$effect.pre":r.type!=="ExpressionStatement"&&Im(e),e.arguments.length!==1&&wt(e,i,"exactly one argument"),t.state.analysis.needs_context=!0;break;case"$effect.tracking":e.arguments.length!==0&&is(e,i);break;case"$effect.root":e.arguments.length!==1&&wt(e,i,"exactly one argument");break;case"$effect.pending":t.state.expression&&(t.state.expression.has_state=!0);break;case"$inspect":e.arguments.length<1&&wt(e,i,"one or more arguments");break;case"$inspect().with":e.arguments.length!==1&&wt(e,i,"exactly one argument");break;case"$inspect.trace":{e.arguments.length>1&&wt(e,i,"zero or one arguments");let s=t.path.at(-2),a=t.path.at(-3);if((r.type!=="ExpressionStatement"||s?.type!=="BlockStatement"||!(a?.type==="FunctionDeclaration"||a?.type==="FunctionExpression"||a?.type==="ArrowFunctionExpression")||s.body[0]!==r)&&Bm(e),a.generator&&Dm(e),F){if(e.arguments[0])t.state.scope.tracing=O(e.arguments[0]);else{let n=jS(t.path.slice(0,-2))??"trace",p=`(${jr(a)})`;t.state.scope.tracing=O(T(n+" "+p))}t.state.analysis.tracing=!0}break}case"$state.eager":e.arguments.length!==1&&wt(e,i,"exactly one argument");break;case"$state.snapshot":e.arguments.length!==1&&wt(e,i,"exactly one argument");break}if(i==="$derived"){let s=new ke;t.next({...t.state,function_depth:t.state.function_depth+1,derived_function_depth:t.state.function_depth+1,expression:s}),s.has_await&&t.state.analysis.async_deriveds.set(e,s),t.state.in_declaration_tag&&t.state.expression?.merge(s)}else i==="$inspect"?t.next({...t.state,function_depth:t.state.function_depth+1}):t.next();t.state.expression&&(!ir(e.callee,t)||t.state.expression.dependencies.size>0)&&(t.state.expression.has_call=!0,t.state.expression.has_state=!0)}function jS(e){let t=e.at(-1);if((t.type==="FunctionDeclaration"||t.type==="FunctionExpression")&&t.id!=null)return t.id.name;let r=e.at(-2);if(r){if(r.type==="CallExpression")return mi.slice(r.callee.start,r.callee.end)+"(...)";if(r.type==="Property"&&!r.computed)return r.key.name;if(r.type==="VariableDeclarator"&&r.id.type==="Identifier")return r.id.name}}function FS(e,t){return e.type==="VariableDeclarator"&&er(t.path,-3).type!=="ConstTag"}function US(e){return e.type==="PropertyDefinition"&&!e.static&&!e.computed}function HS(e,t){if(e.type==="AssignmentExpression"&&e.operator==="="&&e.left.type==="MemberExpression"&&e.left.object.type==="ThisExpression"&&(e.left.property.type==="Identifier"&&!e.left.computed||e.left.property.type==="PrivateIdentifier"||e.left.property.type==="Literal")){let r=er(t.path,-5);return r?.type==="MethodDefinition"&&r.kind==="constructor"}return!1}function sy(e,t){if(!t.state.analysis.runes){t.next();return}let r=[];for(let p of e.body)(p.type==="MethodDefinition"||p.type==="PropertyDefinition")&&p.key.type==="PrivateIdentifier"&&r.push(p.key.name);let i=new Map,s=new Map;t.state.analysis.classes.set(e,i);let a=null;function n(p,u,d){let m=Ye(u);if(m===null)return;let h=he(d,t.state.scope);if(h&&Id(h)){i.has(m)&&ah(p,m);let _=(p.type==="AssignmentExpression"||!p.static?"":"@")+m,v=s.get(_);v&&!(v.length===1&&v[0]==="prop")&&rs(p,_),i.set(m,{node:p,type:h,key:u.type==="PrivateIdentifier"?u:null,value:d})}}for(let p of e.body){if(p.type==="PropertyDefinition"&&!p.computed&&!p.static){n(p,p.key,p.value);let u=Ye(p.key);if(!s.get(u)){s.set(u,[p.value?"assigned_prop":"prop"]);continue}rs(p,u)}if(p.type==="MethodDefinition"){if(p.kind==="constructor")a=p;else if(!p.computed){let u=(p.static?"@":"")+Ye(p.key),d=s.get(u);if(!d){s.set(u,[p.kind]);continue}if((d.includes(p.kind)||d.includes("prop")||d.includes("assigned_prop"))&&rs(p,u),p.kind==="get"){if(d.length===1&&d[0]==="set"){d.push("get");continue}}else if(p.kind==="set"){if(d.length===1&&d[0]==="get"){d.push("set");continue}}else{d.push(p.kind);continue}rs(p,u)}}}if(a)for(let p of a.value.body.body){if(p.type!=="ExpressionStatement"||p.expression.type!=="AssignmentExpression")continue;let{left:u,right:d}=p.expression;u.type==="MemberExpression"&&u.object.type==="ThisExpression"&&(u.computed&&u.property.type!=="Literal"||n(p.expression,u.property,d))}for(let[p,u]of i){if(p[0]==="#")continue;let d=p.replace(yd,"_");for(;r.includes(d);)d="_"+d;r.push(d),u.key=ib(d)}t.next({...t.state,state_fields:i})}function ay(e,t){t.state.analysis.runes&&e.id!==null&&Yr(t.state.scope.get(e.id.name));let r=t.state.ast_type==="module"?0:1;t.state.scope.function_depth>r&&Df(e),t.next()}function ny(e,t){ae(t.path),t.next({...t.state,expression:e.metadata.expression})}function Pa(e){e.name.includes(":")&&!e.name.startsWith("xmlns:")&&!e.name.startsWith("xlink:")&&!e.name.startsWith("xml:")&&Wf(e)}function Aa(e,t){if(Array.isArray(e.value)&&e.value.length===1&&e.value[0].type==="ExpressionTag"&&(t.type==="Component"||t.type==="SvelteComponent"||t.type==="SvelteSelf"||t.type==="RegularElement"&&ct(t))&&Kf(e),e.value===!0||!Array.isArray(e.value)||e.value.length===1)return;e.value.at(-1)?.end!==e.end||Ph(e)}function Ri(e,t,r=!1){let i=e.path.at(-2),s;if(i?.type==="SnippetBlock"){me(t)||ap(t);return}let a=e.path.length;for(;a--;){let n=e.path[a];!s&&(n.type==="Component"||n.type==="SvelteComponent"||n.type==="SvelteSelf"||n.type==="SvelteElement"||n.type==="RegularElement"&&ct(n))&&(s=n)}if(s){if(s.type==="Component"||s.type==="SvelteComponent"||s.type==="SvelteSelf")if(s!==i)r||np(t);else{me(t)||ap(t);let n=t.value[0].data;if(e.state.component_slots.has(n)&&u_(t,n,s.name),e.state.component_slots.add(n),n==="default")for(let p of s.fragment.nodes)p.type==="Text"&&_d.test(p.data)||(p.type==="RegularElement"||p.type==="SvelteFragment")&&p.attributes.some(u=>u.type==="Attribute"&&u.name==="slot")||d_(p)}}else r||np(t)}function $a(e){return!e||e.declaration_kind==="import"||e.kind==="prop"||e.kind==="rest_prop"||e.kind==="bindable_prop"||e?.initial?.type==="SnippetBlock"}function qi(e,t){e.metadata.path=[...t.path],e.metadata.snippets=new Set;let r=!0;for(let p of e.attributes){if(p.type==="SpreadAttribute"||p.type==="BindDirective"){r=!1;continue}if(p.type!=="Attribute"||!Qt(p))continue;let u=mt(p);if(u.type==="Identifier"){let d=t.state.scope.get(u.name);r&&=$a(d),d?.initial?.type==="SnippetBlock"&&e.metadata.snippets.add(d.initial)}else u.type!=="Literal"&&(r=!1)}if(r)for(let p of e.fragment.nodes)p.type==="SnippetBlock"&&e.metadata.snippets.add(p);t.state.analysis.snippet_renderers.set(e,r),ae(t.path);for(let p of e.attributes)p.type!=="Attribute"&&p.type!=="SpreadAttribute"&&p.type!=="LetDirective"&&p.type!=="OnDirective"&&p.type!=="BindDirective"&&p.type!=="AttachTag"&&Oh(p),p.type==="OnDirective"&&(p.modifiers.length>1||p.modifiers.some(u=>u!=="once"))&&Xh(p),p.type==="Attribute"&&(t.state.analysis.runes&&(Aa(p,e),Qt(p)&&oy(mt(p),t.state.analysis.source)),Pa(p),p.name==="slot"&&Ri(t,p,!0)),p.type==="BindDirective"&&p.name!=="this"&&(t.state.analysis.uses_component_bindings=!0),p.type==="AttachTag"&&oy(p.expression,t.state.analysis.source);let i=Pt(e)?t.state:{...t.state,scope:e.metadata.scopes.default};for(let p of e.attributes)t.visit(p,p.type==="LetDirective"?i:t.state);let s=[],a={default:[]};for(let p of e.fragment.nodes){if(p.type==="Comment"){s.push(p);continue}let u=Pt(p)??"default";(a[u]??=[]).push(...s,p),u!=="default"&&(s=[])}let n=new Set;for(let p in a){let u={...t.state,scope:e.metadata.scopes[p],parent_element:null,component_slots:n};t.visit({...e.fragment,nodes:a[p]},u)}}function oy(e,t){if(e.type==="SequenceExpression"){let r=e.start;for(;--r>0;){let i=t[r];if(i==="(")break;i==="{"&&ta(e)}}}function ly(e,t){let r=t.state.scope.get(e.name.includes(".")?e.name.slice(0,e.name.indexOf(".")):e.name);e.metadata.dynamic=t.state.analysis.runes&&r!==null&&(r.kind!=="normal"||e.name.includes(".")),r&&(e.metadata.expression.has_state=e.metadata.dynamic,e.metadata.expression.dependencies.add(r),e.metadata.expression.references.add(r)),qi(e,t)}function cy(e,t){if(!t.state.analysis.runes&&!t.state.analysis.maybe_runes&&Hh(e),t.path.length===1&&t.path[0].type==="Fragment"){let i=e.declaration.declarations.flatMap(s=>ue(s.id)).find(s=>t.state.analysis.instance.scope.declarations.has(s.name));i&&Ur(i,i.name)}t.visit(e.declaration,{...t.state,in_declaration_tag:!0,function_depth:t.state.scope.function_depth,expression:e.metadata.expression}),Wp(t,e.metadata,e.declaration.declarations)}function Wp(e,t,r){let i=t.expression.has_await,s=[...t.expression.references].map(a=>a.blocker).filter(a=>a!==null&&a.object!==e.state.async_consts?.id);if(i||e.state.async_consts||s.length>0){let a=e.state.async_consts??={id:e.state.analysis.root.unique("promises"),declaration_count:0};t.promises_id=a.id;let n=r.flatMap(d=>e.state.scope.get_bindings(d)),p=a.declaration_count+(s.length>0?1:0);a.declaration_count+=s.length>0?2:1;let u=X(a.id,T(p),!0);for(let d of n)d.blocker=u}}function py(e,t){t.state.analysis.runes&&ze(e,t.state,"@");let r=t.path.at(-1),i=t.path.at(-2);(r?.type!=="Fragment"||i?.type!=="IfBlock"&&i?.type!=="SvelteFragment"&&i?.type!=="Component"&&i?.type!=="SvelteComponent"&&i?.type!=="EachBlock"&&i?.type!=="AwaitBlock"&&i?.type!=="SnippetBlock"&&i?.type!=="SvelteBoundary"&&i?.type!=="KeyBlock"&&(i?.type!=="RegularElement"&&i?.type!=="SvelteElement"||!i.attributes.some(a=>a.type==="Attribute"&&a.name==="slot")))&&jh(e);let s=e.declaration.declarations[0];t.visit(s.id),t.visit(s.init,{...t.state,expression:e.metadata.expression,function_depth:t.state.function_depth+1,derived_function_depth:t.state.function_depth+1}),Wp(t,e.metadata,[s])}function uy(e,t){t.state.analysis.runes&&ze(e,t.state,"@"),t.next()}function dy(e,t){ze(e,t.state,"#"),at(e.body,t),at(e.fallback,t);let r=e.context;if(r?.type==="Identifier"&&(r.name==="$state"||r.name==="$derived")&&Qs(e,r.name),e.key&&(e.metadata.keyed=e.key.type!=="Identifier"||!e.index||e.key.name!==e.index),e.metadata.keyed&&!e.context&&Wh(e.key),t.visit(e.expression,{...t.state,expression:e.metadata.expression,scope:t.state.scope.parent}),t.visit(e.body),e.key&&t.visit(e.key),e.fallback&&t.visit(e.fallback),!t.state.analysis.runes){let i=!!e.context&&ue(e.context).some(s=>!!t.state.scope.get(s.name)?.mutated);for(let s of e.metadata.expression.dependencies)s.declaration_kind!=="function"&&fy(s,e.metadata.transitive_deps);if(i)for(let s of e.metadata.transitive_deps)s.kind==="normal"&&(s.declaration_kind==="const"||s.declaration_kind==="let"||s.declaration_kind==="var")&&(s.kind="state")}ae(t.path)}function fy(e,t){if(!t.has(e)&&(t.add(e),e.kind==="legacy_reactive"))for(let r of e.legacy_dependencies)fy(r,t)}function my(e,t){t.state.ast_type?Xs(e):e.declaration.type==="Identifier"&&Ta(e,t.state.scope,e.declaration.name),t.next()}function hy(e,t){if(t.next(),t.state.ast_type&&e.specifiers.some(r=>r.exported.type==="Identifier"?r.exported.name==="default":r.exported.value==="default")&&Xs(e),e.declaration?.type==="VariableDeclaration"){for(let r of e.declaration.declarations)for(let i of ue(r.id)){let s=t.state.scope.get(i.name);s&&(s.kind==="derived"&&Ks(e),(s.kind==="state"||s.kind==="raw_state")&&s.reassigned&&Zs(e))}t.state.analysis.runes&&t.state.ast_type==="instance"&&e.declaration.kind==="let"&&Um(e)}if(t.state.analysis.runes&&e.declaration&&t.state.ast_type==="instance"){if(e.declaration.type==="FunctionDeclaration"||e.declaration.type==="ClassDeclaration")t.state.analysis.exports.push({name:e.declaration.id.name,alias:null});else if(e.declaration.kind==="const")for(let r of e.declaration.declarations)for(let i of ue(r.id))t.state.analysis.exports.push({name:i.name,alias:null})}}function _y(e,t){let r=e.local.type==="Identifier"?e.local.name:e.local.value,i=e.exported.type==="Identifier"?e.exported.name:e.exported.value;if(t.state.ast_type==="instance"){if(t.state.analysis.runes){t.state.analysis.exports.push({name:r,alias:i});let s=t.state.scope.get(r);s&&(s.reassigned=!0)}}else Ta(e,t.state.scope,r)}function by(e,t){if(e.expression.type==="NewExpression"&&e.expression.callee.type==="Identifier"&&e.expression.arguments.length===1&&e.expression.arguments[0].type==="ObjectExpression"&&e.expression.arguments[0].properties.some(r=>r.type==="Property"&&r.key.type==="Identifier"&&r.key.name==="target")){let r=t.state.scope.get(e.expression.callee.name);if(r?.kind==="normal"&&r.declaration_kind==="import"){let i=r.initial;i.source.value.endsWith(".svelte")&&i.specifiers.find(s=>s.local.name===r.node.name&&s.type==="ImportDefaultSpecifier")&&Lf(e.expression)}}t.next()}function yy(e,t){if(t.path.at(-1)?.type==="Fragment"&&t.state.parent_element){let i=Ci("#text",t.state.parent_element);i&&Hr(e,i)}ae(t.path),t.next({...t.state,expression:e.metadata.expression})}function gy(e,t){t.next({...t.state,fragment:e,async_consts:void 0})}function vy(e,t){t.state.analysis.runes&&e.id!==null&&Yr(t.state.scope.get(e.id.name)),Ai(e,t)}function wy(e,t){Ai(e,t)}function xy(e,t){t.state.analysis.runes&&ze(e,t.state,"@"),ae(t.path),t.next({...t.state,expression:e.metadata.expression})}function ky(e,t){let r=t.path.length,i=t.path[--r];if(!Ve(e,i))return;if(ae(t.path),e.name==="arguments"&&!t.path.some(a=>a.type==="FunctionDeclaration"||a.type==="FunctionExpression")&&jm(e),e.name==="$$slots"&&(t.state.analysis.uses_slots=!0),t.state.analysis.runes&&Dt(e.name)&&t.state.scope.get(e.name)===null&&t.state.scope.get(e.name.slice(1))?.kind!=="store_sub"){let a=e,n=e.name;for(;i.type==="MemberExpression";)i.computed&&Jm(i),n+=`.${i.property.name}`,a=i,i=t.path[--r],Dt(n)||(n==="$effect.active"&&Kc(i,"$effect.active","$effect.tracking"),n==="$state.frozen"&&Kc(i,"$state.frozen","$state.raw"),n==="$state.is"&&th(i,"$state.is"),Ym(i,n));i.type!=="CallExpression"&&eh(a)}let s=t.state.scope.get(e.name);if(t.state.analysis.runes||(e.name==="$$props"&&(t.state.analysis.uses_props=!0),e.name==="$$restProps"&&(t.state.analysis.uses_rest_props=!0)),s){if(t.state.expression&&(t.state.expression.dependencies.add(s),t.state.expression.references.add(s),t.state.expression.has_state||=s.kind!=="static"&&(s.kind==="prop"||s.kind==="bindable_prop"||s.kind==="rest_prop"||!s.is_function())&&!t.state.scope.evaluate(e).is_known),t.state.analysis.runes&&e!==s.node&&t.state.function_depth===s.scope.function_depth&&(s.kind==="state"&&(s.reassigned||s.initial?.type==="CallExpression"&&s.initial.arguments.length===1&&s.initial.arguments[0].type!=="SpreadElement"&&!$t(s.initial.arguments[0],t.state.scope))||s.kind==="raw_state"||s.kind==="derived"||s.kind==="prop"||s.kind==="rest_prop")&&(i.type!=="AssignmentExpression"||i.left!==e)&&i.type!=="UpdateExpression"){let a="closure",n=t.path.length;for(;n--;){let p=t.path[n];if(p.type==="ArrowFunctionExpression"||p.type==="FunctionDeclaration"||p.type==="FunctionExpression")break;if(p.type==="CallExpression"&&p.arguments.includes(t.path[n+1])){let u=he(p,t.state.scope);if(u==="$state"||u==="$state.raw"){a="derived";break}}}Ff(e,e.name,a)}if(t.state.reactive_statement&&s.scope===t.state.analysis.module.scope&&s.reassigned&&jf(e),s.metadata?.is_template_declaration&&t.state.options.experimental.async){let a;for(let n=t.path.length-1;n>=0;n--){let p=t.path[n],u=t.path[n-1];if(p.type==="SnippetBlock")a=p.expression.name;else if(a&&u&&p.type==="Fragment"&&(kp(u)||u.type==="SvelteBoundary"&&(a==="failed"||a==="pending")))if(kp(u)?u.metadata.scopes.default===s.scope:t.state.scopes.get(p)===s.scope)Fh(e,e.name);else break}}}}function Ey(e,t){at(e.consequent,t),at(e.alternate,t),t.state.analysis.runes&&ze(e,t.state,e.elseif?":":"#"),ae(t.path),t.visit(e.test,{...t.state,expression:e.metadata.expression}),t.visit(e.consequent),e.alternate&&t.visit(e.alternate);let r=e.alternate;if(r&&r.nodes.length===1&&r.nodes[0].type==="IfBlock"&&r.nodes[0].elseif){let i=r.nodes[0];!i.metadata.expression.has_await&&!i.metadata.expression.has_more_blockers_than(e.metadata.expression)&&(e.metadata.flattened=[i,...i.metadata.flattened??[]],i.metadata.flattened=void 0)}}function Sy(e,t){if(t.state.analysis.runes){let r=e.source.value;if(r.startsWith("svelte/internal")&&Om(e),r==="svelte")for(let i of e.specifiers)i.type==="ImportSpecifier"&&i.imported.type==="Identifier"&&(i.imported.name==="beforeUpdate"||i.imported.name==="afterUpdate")&&rh(i,i.imported.name)}}function Cy(e,t){at(e.fragment,t),t.state.analysis.runes&&ze(e,t.state,"#"),ae(t.path),t.visit(e.expression,{...t.state,expression:e.metadata.expression}),t.visit(e.fragment)}function Ty(e,t){if(e.label.name==="$"){let r=t.path.at(-1);if(t.state.ast_type==="instance"&&r.type==="Program"){t.state.analysis.runes&&Vm(e);let s={assignments:new Set,dependencies:[]};t.next({...t.state,reactive_statement:s,function_depth:t.state.scope.function_depth+1});for(let[a,n]of t.state.scope.references){let p=t.state.scope.get(a);if(p!==null)for(let{node:u,path:d}of n){let m=u,h=d.length-1,_=d.at(h);for(;_.type==="MemberExpression";)m=_,_=d.at(--h);if(!(_.type==="AssignmentExpression"&&_.operator==="="&&_.left===m)){s.dependencies.push(p);break}}}if(t.state.analysis.reactive_statements.set(e,s),e.body.type==="ExpressionStatement"&&e.body.expression.type==="AssignmentExpression"){let a=ue(e.body.expression.left);if(e.body.expression.left.type==="MemberExpression"){let n=Ie(e.body.expression.left);n!==null&&(a=[n])}for(let n of a){let p=t.state.scope.get(n.name);p?.kind==="legacy_reactive"&&(p.legacy_dependencies=Array.from(s.dependencies))}}}else t.state.analysis.runes||Bf(e)}t.next()}function Py(e,t){let r=t.path.at(-1);if((r===void 0||r.type!=="Component"&&r.type!=="RegularElement"&&r.type!=="SlotElement"&&r.type!=="SvelteElement"&&r.type!=="SvelteComponent"&&r.type!=="SvelteSelf"&&r.type!=="SvelteFragment")&&i_(e),(r.type==="Component"||r.type==="SvelteComponent"||r.type==="SvelteSelf")&&!Pt(r)&&r.fragment.nodes.some(i=>i.type==="SnippetBlock"&&i.expression.name==="children")){let{expression:i}=e,s=i===null||i.type==="Identifier"&&i.name===e.name?e.name:`${e.name}: ${t.state.analysis.source.slice(i.start,i.end)}`;s_(e,s)}}function Ay(e){typeof e.value=="string"&&Dr.test(e.value)&&bi(e)}function $y(e,t){e.object.type==="Identifier"&&e.property.type==="Identifier"&&t.state.scope.get(e.object.name)?.kind==="rest_prop"&&e.property.name.startsWith("$$")&&Js(e.property),t.state.expression&&(t.state.expression.has_member_expression=!0,t.state.expression.has_state||=!ir(e,t)),ws(e,t.state.scope)||(t.state.analysis.needs_context=!0),t.next()}function Ry(e,t){e.callee.type==="ClassExpression"&&t.state.scope.function_depth>0&&Of(e),t.state.analysis.needs_context=!0,t.next()}function qy(e,t){if(t.state.analysis.runes){let i=t.path.at(-1)?.type;(i==="RegularElement"||i==="SvelteElement")&&Qf(e,e.name)}let r=t.path.at(-1);(r?.type==="SvelteElement"||r?.type==="RegularElement")&&(t.state.analysis.event_directive_node??=e),ae(t.path),t.next({...t.state,expression:e.metadata.expression})}function Iy(e,t){let r=Ye(e.key),i=r&&t.state.state_fields.get(r);i&&e!==i.node&&e.value&&e.start<i.node.start&&Ys(e),t.next()}var Li=Ls(du(),1),ei=Ls(cd(),1),fu="activedescendant atomic autocomplete braillelabel brailleroledescription busy checked colcount colindex colspan controls current describedby description details disabled dropeffect errormessage expanded flowto grabbed haspopup hidden invalid keyshortcuts label labelledby level live modal multiline multiselectable orientation owns placeholder posinset pressed readonly relevant required roledescription rowcount rowindex rowspan selected setsize sort valuemax valuemin valuenow valuetext".split(" "),Iw={a:["href"],area:["alt","aria-label","aria-labelledby"],html:["lang"],iframe:["title"],img:["alt"],object:["title","aria-label","aria-labelledby"]},Nw=["blink","marquee"],Mw=["h1","h2","h3","h4","h5","h6"],Lw=["button","input","keygen","meter","output","progress","select","textarea"],mu=["keypress","keydown","keyup","click","contextmenu","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","dragstart","drop","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","pointerdown","pointerup","pointermove","pointerenter","pointerleave","pointerover","pointerout","pointercancel","touchstart","touchend","touchmove","touchcancel"],Ow=["click","mousedown","mouseup","keypress","keydown","keyup"],Dw=new Map([["header","banner"],["footer","contentinfo"]]),Bw=new Map([["a","link"],["area","link"],["article","article"],["aside","complementary"],["body","document"],["button","button"],["datalist","listbox"],["dd","definition"],["dfn","term"],["dialog","dialog"],["details","group"],["dt","term"],["fieldset","group"],["figure","figure"],["form","form"],["h1","heading"],["h2","heading"],["h3","heading"],["h4","heading"],["h5","heading"],["h6","heading"],["hr","separator"],["img","img"],["li","listitem"],["link","link"],["main","main"],["menu","list"],["meter","progressbar"],["nav","navigation"],["ol","list"],["option","option"],["optgroup","group"],["output","status"],["progress","progressbar"],["section","region"],["summary","button"],["table","table"],["tbody","rowgroup"],["textarea","textbox"],["tfoot","rowgroup"],["thead","rowgroup"],["tr","row"],["ul","list"]]),jw=new Map([["command","menuitem"],["checkbox","menuitemcheckbox"],["radio","menuitemradio"]]),Fw=new Map([["button","button"],["image","button"],["reset","button"],["submit","button"],["checkbox","checkbox"],["radio","radio"],["range","slider"],["number","spinbutton"],["email","textbox"],["search","searchbox"],["tel","textbox"],["text","textbox"],["url","textbox"]]),Uw={ul:["listbox","menu","menubar","radiogroup","tablist","tree","treegrid"],ol:["listbox","menu","menubar","radiogroup","tablist","tree","treegrid"],menu:["listbox","menu","menubar","radiogroup","tablist","tree","treegrid"],li:["menuitem","option","row","tab","treeitem"],table:["grid"],td:["gridcell"],fieldset:["radiogroup","presentation"]},Hw=["email","search","tel","text","url"],Vw=["shipping","billing"],zw=["","on","off","name","honorific-prefix","given-name","additional-name","family-name","honorific-suffix","nickname","username","new-password","current-password","one-time-code","organization-title","organization","street-address","address-line1","address-line2","address-line3","address-level4","address-level3","address-level2","address-level1","country","country-name","postal-code","cc-name","cc-given-name","cc-additional-name","cc-family-name","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc","cc-type","transaction-currency","transaction-amount","language","bday","bday-day","bday-month","bday-year","sex","url","photo"],Ww=["home","work","mobile","fax","pager"],Gw=["tel","tel-country-code","tel-national","tel-area-code","tel-local","tel-local-prefix","tel-local-suffix","tel-extension","email","impp"],sr={Interactive:"interactive",NonInteractive:"non-interactive",Static:"static"},hu=["meta","html","script","style"],Oi=Li.roles.keys(),_u=Oi.filter(e=>Li.roles.get(e)?.abstract),Kw=Oi.filter(e=>!_u.includes(e)),Al=Kw.filter(e=>{let t=Li.roles.get(e);return!["toolbar","tabpanel","generic","cell"].includes(e)&&!t?.superClass.some(r=>r.includes("widget")||r.includes("window"))}).concat("progressbar"),bu=Kw.filter(e=>!Al.includes(e)&&e!=="generic"),Xw=["presentation","none"],yu=[],gu=[];for(let[e,t]of Li.elementRoles.entries())[...t].every(r=>r!=="generic"&&Al.includes(r))&&yu.push(e),[...t].every(r=>bu.includes(r))&&gu.push(e);var W8=[...ei.AXObjects.keys()].filter(e=>ei.AXObjects.get(e).type==="widget"),vu=[],wu=[],G8=[...ei.AXObjects.keys()].filter(e=>["windows","structure"].includes(ei.AXObjects.get(e).type));for(let[e,t]of ei.elementAXObjects.entries())[...t].every(r=>W8.includes(r))&&vu.push(e),[...t].every(r=>G8.includes(r))&&wu.push(e);var ti=Ls(du(),1),Il=Ls(cd(),1);function Nl(e,t){let r=new Map,i=new Set,s=[],a=e.type==="SvelteElement",n=!1,p=!1,u=!1;for(let g of e.attributes)switch(g.type){case"Attribute":{Pe(g)?i.add(g.name.slice(2)):(s.push(g),r.set(g.name,g),g.name==="contenteditable"&&(p=!0));break}case"SpreadAttribute":{n=!0;break}case"BindDirective":{pi(g.name)&&(u=!0);break}case"OnDirective":{i.add(g.name);break}}let d=X8(e.name,r),m=d===sr.Interactive,h=d===sr.NonInteractive,_=d===sr.Static;for(let g of e.attributes){if(g.type!=="Attribute")continue;let k=g.name.toLowerCase();if(k.startsWith("aria-")){hu.includes(e.name)&&Vd(g,e.name);let S=k.slice(5);if(!fu.includes(S)){let R=ur(S,fu);Sf(g,S,R)}k==="aria-hidden"&&vd.test(e.name)&&Zd(g,e.name);let C=We(g),P=ti.aria.get(k);P!==void 0&&tR(g,k,P,C),k==="aria-activedescendant"&&!a&&!m&&!r.has("tabindex")&&!n&&Hd(g)}switch(k){case"role":{hu.includes(e.name)&&uf(g,e.name);let S=We(g);if(typeof S!="string")break;for(let C of Yw(S)){if(C&&Su(C))hf(g,C);else if(C&&!Oi.includes(C)){let R=ur(C,Oi);Cf(g,C,R)}if(C===Jw(e.name,r)&&!["ul","ol","li","menu"].includes(e.name)&&!((e.name==="a"||e.name==="area")&&!r.has("href"))&&Mc(g,C),ku(t.path,["section","article"])||C===Dw.get(e.name)&&Mc(g,C),!a&&!J8(C,e.name,r)){let R=ti.roles.get(C);if(R){let L=Object.keys(R.requiredProps);!n&&L.some(se=>!s.find(c=>c.name===se))&&xf(g,C,Jr(L.map(se=>`"${se}"`),"and"))}}!n&&!K8(r)&&!$l(e.name,r)&&!Cs(C)&&Rl(C)&&_&&!r.get("tabindex")&&[...i].some(L=>mu.includes(L))&&of(e,C),!n&&m&&(xu(C)||Cs(C))&&_f(e,e.name,C),!n&&h&&Rl(C)&&!Uw[e.name]?.includes(C)&&yf(e,e.name,C)}break}case"accesskey":{Ud(g);break}case"autofocus":{e.name!=="dialog"&&!ku(t.path,["dialog"])&&Wd(g);break}case"scope":{!a&&e.name!=="th"&&df(g);break}case"tabindex":{let S=We(g);!isNaN(S)&&+S>0&&wf(g);break}}}let v=r.get("role"),E=eR(Ar(v));if(i.has("click")){let g=E!==null&&!Cs(E);!a&&!$l(e.name,r)&&(!v||g)&&!m&&!n&&(i.has("keydown")||i.has("keyup")||i.has("keypress")||Gd(e,e.name))}let l=v?E:Jw(e.name,r);if(!a&&!m&&!Rl(E)){let g=r.get("tabindex"),k=Ar(g);g&&(k===null||Number(k)>=0)&&gf(e)}if(typeof l=="string"&&ti.roles.has(l)){let{props:g}=ti.roles.get(l),k=ti.aria.keys().filter(C=>!(C in g)),S=l&&v===void 0;for(let C of s)k.includes(C.name)&&(S?Ef(C,C.name,l,e.name):kf(C,C.name,l))}if(!n&&!p&&!$l(e.name,r)&&!Cs(E)&&(!m&&xu(E)||h&&!v)&&[...i].some(k=>Ow.includes(k))&&bf(e,e.name),!n&&(!v||E!==null)&&!$l(e.name,r)&&!Cs(E)&&!m&&!Rl(E)&&!h&&!xu(E)&&!Su(E)){let g=[...i].filter(k=>mu.includes(k));g.length>0&&vf(e,e.name,Jr(g))}!n&&i.has("mouseover")&&!i.has("focus")&&!i.has("focusin")&&Nc(e,"mouseover","focus"),!n&&i.has("mouseout")&&!i.has("blur")&&!i.has("focusout")&&Nc(e,"mouseout","blur");let o=r.has("aria-label")||r.has("aria-labelledby")||r.has("title");switch(e.name){case"a":case"button":{let g=We(r.get("aria-hidden"))==="true"||We(r.get("inert"))!==null;if(!n&&!g&&!o&&!Cu(e)&&Kd(e),e.name==="button")break;let k=r.get("href")||r.get("xlink:href");if(k){let S=Ar(k);S!==null&&(S===""||S==="#"||xd.test(S))&&lf(k,S,k.name)}else if(!n){let S=We(r.get("id")),C=We(r.get("name")),P=We(r.get("aria-disabled"));!S&&!C&&P!=="true"&&Eu(e,["href"])}break}case"input":{let g=r.get("type"),k=Ar(g);if(k==="image"&&!n){let C=["alt","aria-label","aria-labelledby"];C.some(R=>r.has(R))||Eu(e,C,'input type="image"')}let S=r.get("autocomplete");if(g&&S){let C=We(S);Y8(C)||zd(S,C,k??"...")}break}case"img":{let g=Ar(r.get("alt")),k=We(r.get("aria-hidden"));g&&!k&&!n&&kd.test(g)&&Qd(e);break}case"label":{let g=k=>{let S=!1;return re(k,{},{_(C,{next:P}){C.type==="SvelteElement"||C.type==="SlotElement"||C.type==="Component"||C.type==="RenderTag"||C.type==="RegularElement"&&(Lw.includes(C.name)||C.name==="slot")?S=!0:P()}}),S};!n&&!r.has("for")&&!g(e)&&cf(e);break}case"video":{let g=r.get("aria-hidden"),k=g&&We(g);if(r.has("muted")||k==="true"||n||!r.has("src"))return;let S=!1,C=e.fragment.nodes.find(P=>P.type==="RegularElement"&&P.name==="track");C&&(S=C.attributes.some(P=>P.type==="SpreadAttribute"||P.type==="Attribute"&&P.name==="kind"&&We(P)==="captions")),S||pf(e);break}case"figcaption":{ku(t.path,["figure"])||Yd(e);break}case"figure":{let g=e.fragment.nodes.filter(S=>S.type==="Comment"?!1:S.type==="Text"?Ot.test(S.data):!0),k=g.findIndex(S=>S.type==="RegularElement"&&S.name==="figcaption");k!==-1&&k!==0&&k!==g.length-1&&Jd(g[k]);break}}if(!n&&e.name!=="a"){let g=Iw[e.name];g&&(g.some(S=>r.has(S))||Eu(e,g))}Nw.includes(e.name)&&Xd(e,e.name),!n&&!o&&!u&&Mw.includes(e.name)&&!Cu(e)&&mf(e,e.name)}function Cs(e){return Xw.includes(e)}function $l(e,t){if(e==="input"&&We(t.get("type"))==="hidden")return!0;let r=t.get("aria-hidden");if(!r)return!1;let i=We(r);return i===null?!0:i===!0||i==="true"}function K8(e){if(We(e.get("disabled")))return!0;let r=e.get("aria-disabled");return!!(r&&We(r)==="true")}function X8(e,t){return gu.some(r=>ql(r,e,t))?sr.Interactive:e!=="header"&&yu.some(r=>ql(r,e,t))?sr.NonInteractive:vu.some(r=>ql(r,e,t))?sr.Interactive:wu.some(r=>ql(r,e,t))?sr.NonInteractive:sr.Static}function J8(e,t,r){for(let[i,s]of Il.elementAXObjects.entries())if(i.name===t&&(!i.attributes||i.attributes.every(a=>r.has(a.name)&&We(r.get(a.name))===a.value)))for(let a of s){let n=Il.AXObjectRoles.get(a);if(n){for(let{name:p}of n)if(p===e)return!0}}return!1}function Y8(e){if(e===!0)return!1;if(!e)return!0;let t=e.trim().toLowerCase().split(gc);if(typeof t[0]=="string"&&t[0].startsWith("section-")&&t.shift(),Vw.includes(t[0])&&t.shift(),zw.includes(t[0]))t.shift();else if(Ww.includes(t[0])&&t.shift(),Gw.includes(t[0]))t.shift();else return!1;return t[0]==="webauthn"&&t.shift(),t.length===0}function Z8(e){let t=e.get("type");if(!t)return;let r=Ar(t);return r?e.has("list")&&Hw.includes(r)?"combobox":Fw.get(r):void 0}function Q8(e){let t=e.get("type");if(!t)return;let r=Ar(t);if(r)return jw.get(r)}function Jw(e,t){return e==="menuitem"?Q8(t):e==="input"?Z8(t):Bw.get(e)}function xu(e){return Al.includes(e)}function Rl(e){return bu.includes(e)}function Su(e){return _u.includes(e)}function Yw(e){return e.replace(/[A-Z]/g,t=>t.toLowerCase()).split(Xi)}function eR(e){return e===null?null:Yw(e).find(r=>Oi.includes(r)&&!Su(r))??e}function Ar(e){let t=We(e);return t===!0?null:t}function We(e){return e?e.value===!0?!0:me(e)?e.value[0].data:null:null}function Cu(e){for(let t of e.fragment.nodes)if(!(t.type==="Text"&&t.data.trim()==="")){if(t.type==="RegularElement"||t.type==="SvelteElement"){if(t.attributes.some(r=>r.type==="Attribute"&&r.name==="popover"))continue;if(t.name==="img"&&t.attributes.some(r=>r.type==="Attribute"&&r.name==="alt")||t.name==="selectedcontent")return!0;if(!Cu(t))continue}return!0}}function ql(e,t,r){return e.name!==t?!1:e.attributes?e.attributes.every(i=>{let s=r.get(i.name);return!(!s||i.value&&i.value!==Ar(s))}):!0}function ku(e,t){let r=e.length;for(;r--;){let i=e[r];if(i.type==="SvelteElement")return!0;if(i.type==="RegularElement")return t.includes(i.name)}return!1}function tR(e,t,r,i){let s=r.type;if(i!==null)switch(i===!0&&(i=""),s){case"id":case"string":{i===""&&Ic(e,t,"non-empty string");break}case"number":{(i===""||isNaN(+i))&&Ic(e,t,"number");break}case"boolean":{i!=="true"&&i!=="false"&&ef(e,t);break}case"idlist":{i===""&&tf(e,t);break}case"integer":{(i===""||!Number.isInteger(+i))&&rf(e,t);break}case"token":{let a=(r.values??[]).map(n=>n.toString());a.includes(i.toLowerCase())||sf(e,t,Jr(a.map(n=>`"${n}"`)));break}case"tokenlist":{let a=(r.values??[]).map(n=>n.toString());i.toLowerCase().split(gc).some(n=>!a.includes(n))&&af(e,t,Jr(a.map(n=>`"${n}"`)));break}case"tristate":{i!=="true"&&i!=="false"&&i!=="mixed"&&nf(e,t);break}}}function Eu(e,t,r=e.name){let i=gd.test(t[0])||t[0]==="href"?"an":"a",s=t.length>1?t.slice(0,-1).join(", ")+` or ${t[t.length-1]}`:t[0];ff(e,r,i,s)}var Tu=["preventDefault","stopPropagation","stopImmediatePropagation","capture","once","passive","nonpassive","self","trusted"];function Ml(e,t){let r=!1,i=null,s=null;for(let a of e.attributes)if(a.type==="Attribute"){let n=Qt(a);if(t.state.analysis.runes&&(Aa(a,e),n)){let u=mt(a);if(u.type==="SequenceExpression"){let d=u.start;for(;--d>0;){let m=t.state.analysis.source[d];if(m==="(")break;m==="{"&&ta(u)}}}wd.test(a.name)&&Ch(a,a.name),a.name.startsWith("on")&&a.name.length>2&&(n||Eh(a),Cr(a,t)),a.name==="slot"&&Ri(t,a),a.name==="is"&&Vf(a);let p=rR.get(a.name);p&&Gf(a,a.name,p),Pa(a)}else if(a.type==="AnimateDirective"){let n=t.path.at(-2);n?.type!=="EachBlock"?Zc(a):n.key?n.body.nodes.filter(p=>p.type!=="Comment"&&p.type!=="ConstTag"&&p.type!=="DeclarationTag"&&(p.type!=="Text"||p.data.trim()!=="")).length>1&&Zc(a):gh(a),r?yh(a):r=!0}else if(a.type==="TransitionDirective"){let n=a.intro&&i||a.outro&&s;if(n){let p=n.intro?n.outro?"transition":"in":"out",u=a.intro?a.outro?"transition":"in":"out";p===u?W_(a,p):z_(a,p,u)}a.intro&&(i=a),a.outro&&(s=a)}else if(a.type==="OnDirective"){let n=!1,p="";for(let u of a.modifiers){if(!Tu.includes(u)){let d=`${Tu.slice(0,-1).join(", ")} or ${Tu.at(-1)}`;Jh(a,d)}u==="passive"?n=!0:(u==="nonpassive"||u==="preventDefault")&&(p=u),n&&p&&Yh(a,"passive",p)}}}var rR=new Map([["className","class"],["htmlFor","for"]]);function Zw(e,t){if(Ml(e,t),Nl(e,t),e.metadata.path=[...t.path],t.state.analysis.elements.push(e),e.name==="textarea"&&e.fragment.nodes.length>0){for(let a of e.attributes)a.type==="Attribute"&&a.name==="value"&&U_(e);if(e.fragment.nodes.length>1||e.fragment.nodes[0].type!=="Text"){let a=e.fragment.nodes[0];a.type==="Text"&&(a.data=a.data.replace(Lr,""),a.raw=a.raw.replace(Lr,"")),e.attributes.push(Ct("value",null,-1,-1,e.fragment.nodes)),e.fragment.nodes=[]}}if(e.name==="select"&&!Fs){for(let a of e.attributes)if(a.type==="BindDirective"&&a.name==="value"&&a.expression.type!=="SequenceExpression"){let n=Ie(a.expression),p=n&&t.state.scope.get(n.name);if(p)for(let u of t.state.scope.references.keys()){if(u===p.node.name)continue;let d=t.state.scope.get(u);d&&p.legacy_indirect_bindings.add(d)}break}}if(e.name==="option"&&e.fragment.nodes?.length===1&&e.fragment.nodes[0].type==="ExpressionTag"&&!e.attributes.some(a=>a.type==="Attribute"&&a.name==="value")){let a=e.fragment.nodes[0];e.metadata.synthetic_value_node=a}(kr(e)||e.name==="selectedcontent")&&(e.fragment.metadata.dynamic=!0,ae(t.path));let r=t.state.scope.get(e.name);r!==null&&r.declaration_kind==="import"&&r.references.length===0&&Yf(e,e.name),e.metadata.has_spread=e.attributes.some(a=>a.type==="SpreadAttribute");let i=()=>{if(di(e.name))return!0;if(e.name==="a"||e.name==="title"){let a=t.path.length;for(;a--;){let n=t.path[a];if(n.type==="RegularElement")return n.metadata.svg}}return!1};if(e.metadata.svg=i(),e.metadata.mathml=Tc(e.name),ct(e)&&e.attributes.length>0&&ae(t.path),t.state.parent_element){let a=!1,n=!1,p=[t.state.parent_element];for(let u=t.path.length-1;u>=0;u--){let d=t.path[u];if((d.type==="IfBlock"||d.type==="EachBlock"||d.type==="AwaitBlock"||d.type==="KeyBlock")&&(n=!0),a){if(d.type==="RegularElement"){p.push(d.name);let m=vb(e.name,p);m&&(n?Dc(e,m):Hr(e,m))}else if(d.type==="Component"||d.type==="SvelteComponent"||d.type==="SvelteElement"||d.type==="SvelteSelf"||d.type==="SnippetBlock")break}else if(d.type==="RegularElement"&&d.name===t.state.parent_element){let m=Ci(e.name,t.state.parent_element);m&&(n?Dc(e,m):Hr(e,m)),a=!0}}}let s=e.name.replace(/[a-zA-Z-]*:/g,"");if(t.state.analysis.source[e.end-2]==="/"&&!vt(s)&&!di(s)&&!Tc(s)&&Zf(e,e.name),t.next({...t.state,parent_element:e.name}),e.name==="a"&&!t.state.parent_element){for(let a of e.fragment.nodes)if(a.type==="RegularElement"&&a.metadata.svg&&a.name!=="svg"){e.metadata.svg=!0;break}}}function Qw(e,t){ze(e,t.state,"@"),e.metadata.path=[...t.path];let r=wr(e.expression),i=r.callee,s=i.type==="Identifier"?t.state.scope.get(i.name):null;e.metadata.dynamic=s?.kind!=="normal";let a=i.type==="Identifier"&&$a(s);s?.initial?.type==="SnippetBlock"&&e.metadata.snippets.add(s.initial),t.state.analysis.snippet_renderers.set(e,a),t.state.analysis.uses_render_tags=!0;let n=wr(e.expression).arguments;for(let p of n)p.type==="SpreadElement"&&l_(p);i.type==="MemberExpression"&&i.property.type==="Identifier"&&["bind","apply","call"].includes(i.property.name)&&n_(e),ae(t.path),t.visit(i,{...t.state,expression:e.metadata.expression});for(let p of r.arguments){let u=new ke;e.metadata.arguments.push(u),t.visit(p,{...t.state,expression:u})}}function e1(e,t){t.state.analysis.runes&&!t.state.analysis.custom_element&&rm(e),ae(t.path);let r="default";for(let i of e.attributes)i.type==="Attribute"?i.name==="name"&&(me(i)||m_(i),r=i.value[0].data,r==="default"&&h_(i)):i.type!=="SpreadAttribute"&&i.type!=="LetDirective"&&f_(i);t.state.analysis.slot_names.set(r,e),t.next()}function t1(e,t){t.state.analysis.snippets.add(e),at(e.body,t),t.state.analysis.runes&&ze(e,t.state,"#");for(let a of e.parameters)a.type==="RestElement"&&y_(a);t.next({...t.state,parent_element:null});let r=t.path.length===1&&t.path[0].type==="Fragment";if(r){let a=e.expression.name;if(t.state.analysis.instance.scope.declarations.has(a)&&Ur(e.expression,a),e.metadata.can_hoist=r&&r1(t.state.scope,t.state.scopes),e.metadata.can_hoist){let n=e.expression.name,p=t.state.scope.get(n);t.state.analysis.module.scope.declarations.set(n,p)}}let{path:i}=t,s=i.at(-2);s&&(s.type==="Component"&&s.attributes.some(a=>(a.type==="Attribute"||a.type==="BindDirective")&&a.name===e.expression.name)&&g_(e,e.expression.name),e.expression.name==="children"&&(s.type==="Component"||s.type==="SvelteComponent"||s.type==="SvelteSelf")&&s.fragment.nodes.some(a=>a.type!=="SnippetBlock"&&(a.type!=="Text"||a.data.trim())&&a.type!=="Comment")&&b_(e))}function r1(e,t,r=new Set){for(let[i]of e.references){let s=e.get(i);if(s){if(s.blocker)return!1;if(s.scope.function_depth!==0&&!(s.scope.function_depth>=e.function_depth)){if(s.initial?.type==="SnippetBlock"){if(r.has(s))continue;r.add(s);let a=t.get(s.initial);if(r1(a,t,r))continue}return!1}}}return!0}function i1(e,t){ae(t.path),t.next({...t.state,expression:e.metadata.expression})}function s1(e,t){t.state.expression&&(t.state.expression.has_call=!0,t.state.expression.has_state=!0),t.next()}function a1(e,t){if((e.modifiers.length>1||e.modifiers.length&&e.modifiers[0]!=="important")&&v_(e),ae(t.path),e.value===!0){let r=t.state.scope.get(e.name);r&&(r.kind!=="normal"&&(e.metadata.expression.has_state=!0),r.blocker&&e.metadata.expression.dependencies.add(r))}else{t.next();for(let r of vr(e.value))r.type==="ExpressionTag"&&e.metadata.expression.merge(r.metadata.expression)}}function n1(e,t){xr(e);for(let r of e.attributes)r.type==="Attribute"&&Pe(r)?Cr(r,t):(r.type==="SpreadAttribute"||r.type==="Attribute")&&x_(r);t.next()}function o1(e,t){t.state.analysis.runes&&im(e),t.visit(e.expression,{...t.state,expression:e.metadata.expression}),qi(e,t)}function l1(e,t){xr(e);for(let r of e.attributes)r.type==="Attribute"&&Pe(r)?Cr(r,t):(r.type==="SpreadAttribute"||r.type==="Attribute")&&aa(r,"svelte:document");t.next()}function c1(e,t){Ml(e,t),Nl(e,t),e.metadata.path=[...t.path],t.state.analysis.elements.push(e);let r=e.attributes.find(i=>i.type==="Attribute"&&i.name==="xmlns"&&me(i));if(r)e.metadata.svg=r.value[0].data===Bs,e.metadata.mathml=r.value[0].data===js;else{let i=t.path.length;for(;i--;){let s=t.path[i];if(s.type==="Component"||s.type==="SvelteComponent"||s.type==="SvelteFragment"||s.type==="SnippetBlock"||i===0){e.metadata.svg=t.state.options.namespace==="svg",e.metadata.mathml=t.state.options.namespace==="mathml";break}if(s.type==="SvelteElement"||s.type==="RegularElement"){e.metadata.svg=s.type==="RegularElement"&&s.name==="foreignObject"?!1:s.metadata.svg,e.metadata.mathml=s.type==="RegularElement"&&s.name==="foreignObject"?!1:s.metadata.mathml;break}}}ae(t.path),t.visit(e.tag,{...t.state,expression:e.metadata.expression});for(let i of e.attributes)t.visit(i);t.visit(e.fragment,{...t.state,parent_element:null})}function p1(e,t){let r=t.path.at(-2);r?.type!=="Component"&&r?.type!=="SvelteComponent"&&P_(e);for(let i of e.attributes)i.type==="Attribute"?i.name==="slot"&&Ri(t,i):i.type!=="LetDirective"&&T_(i);t.next({...t.state,parent_element:null})}function u1(e,t){for(let r of e.attributes)A_(r);ae(t.path),t.next()}function d1(e,t){if(t.path.some(i=>i.type==="IfBlock"||i.type==="EachBlock"||i.type==="Component"||i.type==="SnippetBlock")||B_(e),t.state.analysis.runes){let i=$e===Kt?"Self":t.state.analysis.name,s=$e===Kt?"Self.svelte":$e.split(/[/\\]/).pop();am(e,i,s)}qi(e,t)}function f1(e,t){xr(e);for(let r of e.attributes)r.type==="Attribute"&&Pe(r)?Cr(r,t):(r.type==="SpreadAttribute"||r.type==="Attribute")&&aa(r,"svelte:window");t.next()}var iR=["onerror","failed","pending"];function m1(e,t){for(let r of e.attributes)(r.type!=="Attribute"||!iR.includes(r.name))&&k_(r),(r.value===!0||Array.isArray(r.value)&&(r.value.length!==1||r.value[0].type!=="ExpressionTag"))&&E_(r);ae(t.path),t.next()}function h1(e,t){t.state.expression&&!ir(e.tag,t)&&(t.state.expression.has_call=!0,t.state.expression.has_state=!0),t.next()}function _1(e){Dr.test(e.value.cooked??"")&&bi(e)}function b1(e,t){let r=t.path.at(-1);if(r.type==="Fragment"&&t.state.parent_element&&Ot.test(e.data)){let i=Ci("#text",t.state.parent_element);i&&Hr(e,i)}Dr.lastIndex=0;for(let i of e.data.matchAll(Dr)){let s=!1;if(r.type==="Fragment")for(let a of r.nodes){if(a===e)break;a.type==="Comment"&&(s||=mr(a.start+4,a.data,t.state.analysis.runes).includes("bidirectional_control_characters"))}if(!s){let a=i.index+e.start;bi({start:a,end:a+i[0].length})}}}function y1(e,t){for(let r of e.attributes)H_(r);for(let r of e.fragment.nodes)r.type!=="Text"&&r.type!=="ExpressionTag"&&V_(r);t.next()}function g1(e,t){ae(t.path),t.next({...t.state,expression:e.metadata.expression}),e.metadata.expression.has_await&&xt(e)}function v1(e,t){if($i(e,e.argument,t),t.state.reactive_statement){let r=e.argument.type==="MemberExpression"?Ie(e.argument):e.argument;if(r?.type==="Identifier"){let i=t.state.scope.get(r.name);i&&t.state.reactive_statement.assignments.add(i)}}t.state.expression&&(t.state.expression.has_assignment=!0),t.next()}function w1(e,t){ae(t.path),t.next({...t.state,expression:e.metadata.expression}),e.metadata.expression.has_await&&xt(e)}function Ts(e,t){if(e!==t)throw new Error("Assertion failed")}function x1(e,t){if(Xb(e,t.state),t.state.analysis.runes){let r=e.init,i=he(r,t.state.scope),{paths:s}=Xe(e.id,w("dummy"));for(let a of s)Yr(t.state.scope.get(a.node.name));if(i==="$state"||i==="$state.raw"||i==="$derived"||i==="$derived.by"||i==="$props")for(let a of s){let n=t.state.scope.get(a.node.name);if(n.kind=i==="$state"?"state":i==="$state.raw"?"raw_state":i==="$derived"||i==="$derived.by"?"derived":a.is_rest?"rest_prop":"prop",i==="$props"&&n.kind==="rest_prop"&&e.id.type==="ObjectPattern"){let{properties:p}=e.id,u=[];for(let d of p){if(d.type==="RestElement")continue;let m=d.key;u.push(m.type==="Identifier"?m.name:m.value.toString())}(n.metadata??={}).exclude_props=u}}if(i==="$props"){if(e.id.type!=="ObjectPattern"&&e.id.type!=="Identifier"&&Gm(e),t.state.analysis.custom_element&&t.state.options.customElementOptions?.props==null){let a;(e.id.type==="Identifier"||(a=e.id.properties.find(n=>n.type==="RestElement"))!=null)&&Nf(a??e.id)}if(t.state.analysis.needs_props=!0,e.id.type==="Identifier"){let a=t.state.scope.get(e.id.name);a.initial=null,a.kind="rest_prop"}else{Ts(e.id.type,"ObjectPattern");for(let a of e.id.properties){if(a.type!=="Property")continue;a.computed&&Gc(a),a.key.type==="Identifier"&&a.key.name.startsWith("$$")&&Js(a);let n=a.value.type==="AssignmentPattern"?a.value.left:a.value;n.type!=="Identifier"&&Gc(a);let p=a.key.type==="Identifier"?a.key.name:String(a.key.value),u=a.value.type==="AssignmentPattern"?a.value.right:null,d=t.state.scope.get(n.name);d.prop_alias=p,u?.type==="CallExpression"&&u.callee.type==="Identifier"&&u.callee.name==="$bindable"?(d.initial=u.arguments[0]??null,d.kind="bindable_prop"):d.initial=u}}}}else if(e.init?.type==="CallExpression"){let r=e.init.callee;r.type==="Identifier"&&(r.name==="$state"||r.name==="$derived"||r.name==="$props")&&t.state.scope.get(r.name)?.kind!=="store_sub"&&Qm(e.init,r.name)}e.init&&he(e.init,t.state.scope)==="$props"?(t.visit(e.id,{...t.state,function_depth:t.state.function_depth+1}),t.visit(e.init)):t.next()}var k1={_(e,{state:t,next:r,path:i}){let s=i.at(-1),a=[];if(s?.type==="Fragment"&&e.type!=="Comment"&&e.type!=="Text"){let p=s.nodes.indexOf(e);for(let u=p-1;u>=0;u--){let d=s.nodes[u];if(d.type==="Comment")a.push(...mr(d.start+4,d.data,t.analysis.runes));else if(d.type!=="Text")break}}else{let p=e.leadingComments;if(p)for(let u of p)a.push(...mr(u.start+2,u.value,t.analysis.runes))}a.length>0&&Dd(a),Xt.set(e,Od());let n=t.scopes.get(e);r(n!==void 0&&n!==t.scope?{...t,scope:n}:t),a.length>0&&Bd()},AnimateDirective:Yb,ArrowFunctionExpression:Kb,AssignmentExpression:Jb,AttachTag:Zb,Attribute:Qb,AwaitBlock:ey,AwaitExpression:ty,BindDirective:ry,CallExpression:iy,ClassBody:sy,ClassDeclaration:ay,ClassDirective:ny,Component:ly,ConstTag:py,DeclarationTag:cy,DebugTag:uy,EachBlock:dy,ExportDefaultDeclaration:my,ExportNamedDeclaration:hy,ExportSpecifier:_y,ExpressionStatement:by,ExpressionTag:yy,Fragment:gy,FunctionDeclaration:vy,FunctionExpression:wy,HtmlTag:xy,Identifier:ky,IfBlock:Ey,ImportDeclaration:Sy,KeyBlock:Cy,LabeledStatement:Ty,LetDirective:Py,Literal:Ay,MemberExpression:$y,NewExpression:Ry,OnDirective:qy,PropertyDefinition:Iy,RegularElement:Zw,RenderTag:Qw,SlotElement:e1,SnippetBlock:t1,SpreadAttribute:i1,SpreadElement:s1,StyleDirective:a1,SvelteBody:n1,SvelteComponent:o1,SvelteDocument:l1,SvelteElement:c1,SvelteFragment:p1,SvelteHead:u1,SvelteSelf:d1,SvelteWindow:f1,SvelteBoundary:m1,TaggedTemplateExpression:h1,TemplateElement:_1,Text:b1,TransitionDirective:g1,TitleElement:y1,UpdateExpression:v1,UseDirective:w1,VariableDeclarator:x1};function E1(e,t,r,i){let s=e?.content??{type:"Program",sourceType:"module",start:-1,end:-1,body:[]},{scope:a,scopes:n,has_await:p}=Bp(s,t,r,i);return{ast:s,scope:a,scopes:n,has_await:p}}function aR(e){let t=e.split(/[/\\]/),r=t.pop(),i=t.at(-1),s=r.replace(".svelte","");return s==="index"&&i&&i!=="src"&&(s=i),s[0].toUpperCase()+s.slice(1)}var nR=["$$props","$$restProps","$$slots"];function Pu(e,t,r){let i=new ka,s=E1(e.module,i,!1,null),a=E1(e.instance,i,!0,s.scope),{scope:n,scopes:p,has_await:u}=Bp(e.fragment,i,!1,a.scope),d={ast:e.fragment,scope:n,scopes:p},m=[],h=r.runes?.({filename:r.filename});for(let[C,P]of s.scope.references){if(C[0]!=="$"||nR.includes(C))continue;(C==="$"||C[1]==="$")&&zc(P[0].node,C);let R=C.slice(1),L=a.scope.get(R),H=L?.initial;if(h===!1||!Dt(C)||L!==null&&(he(H,a.scope)===null||R!=="props"&&he(H,a.scope)==="$props")&&!(C==="$derived"&&L.initial?.type==="ImportDeclaration"&&L.initial.source.value==="svelte/store")){let se;e:for(let f of P)for(let b=f.path.length-1;b>=0;b--){let x=p.get(f.path[b])||s.scopes.get(f.path[b])||a.scopes.get(f.path[b]);if(x){let A=x?.owner(R);if(A&&A!==s.scope&&A!==a.scope){se=f.node;break e}break}}if(se&&nh(se),h!==!1){if(L===null&&/[a-z]/.test(R[0]))zc(P[0].node,C);else if(L!==null&&Dt(C))for(let{node:f,path:b}of P)b.at(-1)?.type==="CallExpression"&&Uf(f,R)}if(s.ast)for(let{node:f,path:b}of P)f.start>s.ast.start&&f.end<s.ast.end&&he(b.at(-1),s.scope)===null&&oh(f);m.push(()=>{L!==null&&L.kind==="normal"&&L.declaration_kind==="let"&&L.reassigned&&(L.kind="state")});let c=a.scope.declare(w(C),"store_sub","synthetic");c.references=P,a.scope.references.set(C,P),s.scope.references.delete(C)}}let _=aR(r.filename),v=h??(u||a.has_await||Array.from(s.scope.references.keys()).some(Dt));if(!v)for(let C of m)C();if(v&&e.module){let C=e.module.attributes.find(P=>P.name==="context");C&&em(C)}let E=r.customElement({filename:r.filename}),l=r.css({filename:r.filename}),o=r.customElementOptions??E,g=!!r.customElementOptions||E,k=s.scope.generate(r.name??_);jd({component_name:k,dev:r.dev,rootDir:r.rootDir,runes:v});let S={name:k,root:i,module:s,instance:a,template:d,comments:e.comments,elements:[],runes:v,maybe_runes:!v&&h!==!1&&![...s.scope.references.keys()].some(C=>["$$props","$$restProps"].includes(C))&&!a.ast.body.some(C=>C.type==="LabeledStatement"||C.type==="ExportNamedDeclaration"&&(C.declaration&&C.declaration.type==="VariableDeclaration"&&C.declaration.kind==="let"||C.specifiers.some(P=>P.local.type==="Identifier"&&a.scope.get(P.local.name)?.declaration_kind==="let"))),tracing:!1,classes:new Map,immutable:v||r.immutable,exports:[],uses_props:!1,props_id:null,uses_rest_props:!1,uses_slots:!1,uses_component_bindings:!1,uses_render_tags:!1,needs_context:!1,needs_mutation_validation:!1,needs_props:!1,event_directive_node:null,uses_event_attributes:!1,custom_element:o,inject_styles:l==="injected"||g,accessors:g||(v?!1:!!r.accessors)||r.compatibility?.componentApi===4,reactive_statements:new Map,binding_groups:new Map,slot_names:new Map,css:{ast:e.css,hash:e.css?r.cssHash({css:e.css.content.styles,filename:$e,name:_,hash:li}):"",keyframes:[],has_global:!1},source:t,snippet_renderers:new Map,snippets:new Set,async_deriveds:new Map,pickled_awaits:new Set,instance_body:{sync:[],async:[],declarations:[],hoisted:[]}};if(!v){for(let C of a.ast.body)if(C.type==="ExportNamedDeclaration")if(S.needs_props=!0,C.declaration){if(C.declaration.type==="FunctionDeclaration"||C.declaration.type==="ClassDeclaration")S.exports.push({name:C.declaration.id.name,alias:null});else if(C.declaration.type==="VariableDeclaration")if(C.declaration.kind==="const")for(let P of C.declaration.declarations)for(let R of ue(P.id))S.exports.push({name:R.name,alias:null});else for(let P of C.declaration.declarations)for(let R of ue(P.id)){let L=a.scope.get(R.name);L.kind="bindable_prop"}}else for(let P of C.specifiers){if(P.local.type!=="Identifier"||P.exported.type!=="Identifier")continue;let R=a.scope.get(P.local.name);R&&(R.declaration_kind==="var"||R.declaration_kind==="let")?(R.kind="bindable_prop",P.exported.name!==P.local.name&&(R.prop_alias=P.exported.name)):S.exports.push({name:P.local.name,alias:P.exported.name})}for(let C of a.scope.declarations.values())if(C.kind==="normal")for(let{node:P,path:R}of C.references)P!==C.node&&C.updated&&(R[R.length-1].type==="StyleDirective"||R.some(L=>L.type==="Fragment")||R[1].type==="LabeledStatement"&&R[1].label.name==="$")&&(C.kind="state");re(d.ast,null,{EachBlock(C){let P=d.scopes.get(C);for(let R of P.declarations.values())if(R.updated){let L={scope:P.parent,scopes:d.scopes};re(C.expression,L,{_:Ti,Identifier(H,se){let c=se.path.at(-1);if(Ve(H,c)){let f=se.state.scope.get(H.name);f&&f.kind==="normal"&&f.declaration_kind!=="import"&&f.declaration_kind!=="function"&&(f.kind="state",f.mutated=!0)}}});break}}})}if(e.options)for(let C of e.options.attributes)C.name==="accessors"&&S.runes&&Hs(C),C.name==="customElement"&&!E&&Af(C),C.name==="immutable"&&S.runes&&Vs(C);if(oR(a,S),S.runes){let C=s.scope.references.get("$$props");C&&Hm(C[0].node);let P=s.scope.references.get("$$restProps");P&&zm(P[0].node);for(let{ast:R,scope:L,scopes:H}of[s,a,d]){let se={scope:L,scopes:H,analysis:S,options:r,ast_type:R===a.ast?"instance":R===d.ast?"template":"module",fragment:R===d.ast?R:null,parent_element:null,in_declaration_tag:!1,has_props_rune:!1,component_slots:new Set,expression:null,state_fields:new Map,function_depth:L.function_depth,reactive_statement:null,derived_function_depth:-1};re(R,se,k1)}for(let R of[s.scope,a.scope])e:for(let[L,H]of R.declarations)if(H.kind==="normal"&&H.reassigned){t:for(let{path:se}of H.references)if(se[0].type==="Fragment"){for(let c=1;c<se.length;c+=1){let f=se[c].type;if(f==="FunctionDeclaration"||f==="FunctionExpression"||f==="ArrowFunctionExpression")continue t;if(f==="BindDirective"&&se[c].name==="this"){for(let b=c-1;b>=0;b-=1){let x=se[b].type;if(x==="IfBlock"||x==="EachBlock"||x==="AwaitBlock"||x==="KeyBlock"){Lc(H.node,L);continue e}}continue t}}Lc(H.node,L);continue e}}}else{a.scope.declare(w("$$props"),"rest_prop","synthetic"),a.scope.declare(w("$$restProps"),"rest_prop","synthetic");for(let{ast:C,scope:P,scopes:R}of[s,a,d]){let L={scope:P,scopes:R,analysis:S,options:r,fragment:C===d.ast?C:null,parent_element:null,in_declaration_tag:!1,has_props_rune:!1,ast_type:C===a.ast?"instance":C===d.ast?"template":"module",reactive_statement:null,component_slots:new Set,expression:null,state_fields:new Map,function_depth:P.function_depth,derived_function_depth:-1};re(C,L,k1)}for(let[C,P]of a.scope.declarations)(P.kind==="prop"||P.kind==="bindable_prop")&&P.node.name!=="$$props"&&!P.references.filter(L=>L.node!==P.node&&L.path.at(-1)?.type!=="ExportSpecifier").length&&!a.scope.declarations.has(`$${C}`)&&Mf(P.node,C);S.reactive_statements=lR(S.reactive_statements)}for(let C of S.module.ast.body)if(C.type==="ExportNamedDeclaration"&&C.specifiers!==null&&C.source==null)for(let P of C.specifiers){if(P.local.type!=="Identifier")continue;let R=P.local.name,L=S.module.scope.get(R);L?L.initial?.type==="SnippetBlock"&&(S.css.has_global=!0):[...S.snippets].find(H=>H.expression.name===R)?ih(P):Mm(P,R)}S.event_directive_node&&S.uses_event_attributes&&a_(S.event_directive_node,S.event_directive_node.name);for(let[C,P]of S.snippet_renderers){P||(C.metadata.snippets=S.snippets);for(let R of C.metadata.snippets)R.metadata.sites.add(C)}if(S.uses_render_tags&&(S.uses_slots||!S.custom_element&&S.slot_names.size>0)){let C=S.slot_names.values().next().value??S.source.indexOf("$$slot");__(C)}if(S.css.ast){Bb(S.css.ast,S),Ub(S.css.ast,S.elements);let{comment:C}=S.css.ast.content;C&&mr(C.start,C.data,S.runes).includes("css_unused_selector")||Gb(S.css.ast)}for(let C of S.elements){C.metadata.scoped&&ct(C)&&ae(C.metadata.path);let P=!1,R=!1,L=!1,H=!1,se=!1;for(let c of C.attributes)if(c.type==="SpreadAttribute"){L=!0;break}else c.type==="Attribute"?(P||=c.name.toLowerCase()==="class",R||=c.name.toLowerCase()==="style"):c.type==="ClassDirective"?H=!0:c.type==="StyleDirective"&&(se=!0);!L&&!P&&(C.metadata.scoped||H)&&C.attributes.push(Ct("class",null,-1,-1,[{type:"Text",data:"",raw:"",start:-1,end:-1}])),!L&&!R&&se&&C.attributes.push(Ct("style",null,-1,-1,[{type:"Text",data:"",raw:"",start:-1,end:-1}]))}return S}function oR(e,t){let r=(m,h,_,v)=>{v.has(m)||(v.add(m),re(m,{scope:h},{_(E,l){let o=e.scopes.get(E);o?l.next({scope:o}):l.next()},ImportDeclaration(E){},Identifier(E,l){let o=l.path.at(-1);if(Ve(E,o)){let g=l.state.scope.get(E.name);if(g){_.add(g);for(let k of g.assignments)r(k.value,k.scope,_,v)}}}}))},i=(m,h,_,v)=>{function E(g,k){for(let S of Ut(g)){let C=Ie(S);if(!C)return;let P=k.get(C.name);if(!P)return;_.add(P)}}let l=new Set,o=new Set;re(m,{scope:v},{_(g,k){let S=e.scopes.get(g);S?k.next({scope:S}):k.next()},AssignmentExpression(g,k){E(g.left,k.state.scope)},UpdateExpression(g,k){E(g.argument,k.state.scope)},CallExpression(g,k){he(g,k.state.scope)!=="$effect"&&r(g,k.state.scope,_,l)},Identifier(g,k){let S=k.path.at(-1);if(Ve(g,S)){let C=k.state.scope.get(g.name);C&&h.add(C)}},ReturnStatement(g,k){g.argument&&r(g.argument,k.state.scope,h,o)},ArrowFunctionExpression(g,k){},FunctionDeclaration(g,k){},FunctionExpression(g,k){}})},s=!1,a=[],n=w("$$promises");function p(m,h){t.instance_body.declarations.push(m);let _=e.scope.get(m.name);_.blocker=h}function u(){a.length!==0&&(t.instance_body.async.push({nodes:a,has_await:!1}),a=[])}let d=[];for(let m of e.ast.body){if(m.type==="ImportDeclaration"){t.instance_body.hoisted.push(m);continue}if(m.type==="ExportDefaultDeclaration"||m.type==="ExportAllDeclaration")continue;if(m.type==="ExportNamedDeclaration")if(m.declaration)m=m.declaration;else continue;let h=Ft(m);if(s||=h,m.type==="FunctionDeclaration")t.instance_body.sync.push(m),d.push(m);else if(m.type==="VariableDeclaration"){for(let _ of m.declarations)if(he(_.init,e.scope)!=="$props.id")if(_.init?.type==="ArrowFunctionExpression"||_.init?.type==="FunctionExpression")t.instance_body.sync.push(m.declarations.length===1?m:lt(m.kind,[_])),d.push(_);else if(!s)t.instance_body.sync.push(m.declarations.length===1?m:lt(m.kind,[_]));else{let v=new Set,E=new Set;i(_,v,E,e.scope),h&&u();let l=X(n,T(t.instance_body.async.length),!0);for(let o of E)o.blocker=l;for(let o of ue(_.id))p(o,l);h?t.instance_body.async.push({nodes:[_],has_await:!0}):a.push(_)}}else if(s){let _=new Set,v=new Set;i(m,_,v,e.scope),h&&u();let E=X(n,T(t.instance_body.async.length),!0);for(let l of v)l.blocker=E;m.type==="ClassDeclaration"&&p(m.id,E),h?t.instance_body.async.push({nodes:[m],has_await:!0}):a.push(m)}else t.instance_body.sync.push(m)}if(s){u();for(let[m,h]of e.scope.declarations){if(h.kind!=="store_sub")continue;let _=e.scope.get(m.slice(1))?.blocker;_&&(!h.blocker||h.blocker.property.value<_.property.value)&&(h.blocker=_)}for(let m of d){let h=new Set,_=m.type==="VariableDeclarator"?m.init:m,v=e.scopes.get(_);_.body.type==="BlockStatement"?i(_.body,h,h,v):r(_.body,v,h,new Set);let E=[...h].reduce((g,k)=>{if(k.blocker){let S=k.blocker.property;return Math.max(S.value,g)}return g},-1);if(E===-1)continue;let l=X(n,T(E),!0),o=(m.type==="FunctionDeclaration",e.scope.get(m.id.name));o.blocker=l}}}function lR(e){let t=new Map;for(let[n,p]of e)for(let u of p.assignments){let d=t.get(u.node.name)??[];d.push([n,p]),t.set(u.node.name,d)}let r=[];for(let[,{assignments:n,dependencies:p}]of e)for(let u of n)for(let d of p)n.has(d)||r.push([u.node.name,d.node.name]);let i=ms(r);if(i?.length){let n=t.get(i[0])[0];Xm(n[0],i.join(" \u2192 "))}let s=new Map,a=(n,p)=>{if(!s.has(n)){for(let u of p.dependencies)if(!p.assignments.has(u))for(let[d,m]of t.get(u.node.name)??[])a(d,m);s.set(n,p)}};for(let[n,p]of e)a(n,p);return s}var Ll=class e{#e;#t;#r;#i=!1;multiline=!1;constructor(t,r=[],i=null){this.#e=t,this.#t=r,this.#r=i}indent(){this.#t.push(2)}dedent(){this.#t.push(3)}margin(){this.#t.push(0)}newline(){this.#i=!0,this.#t.push(1)}space(){this.#t.push(4)}append(t){this.#t.push(t.#t),(this.#i||t.multiline)&&(this.multiline=!0)}write(t,r){let i=this.#r&&t.trim(),s=i?this.#r?.consume(i,r?.loc?.start,r?.loc?.end):void 0;if(r?.loc)this.location(r.loc.start.line,r.loc.start.column),this.#t.push(t),this.location(r.loc.end.line,r.loc.end.column);else if(s&&i){let a=t.indexOf(i),n=a+i.length;a>0&&this.#t.push(t.slice(0,a)),this.location(s.start.line,s.start.column),this.#t.push(i),this.location(s.end.line,s.end.column),n<t.length&&this.#t.push(t.slice(n))}else this.#t.push(t);this.#i&&(this.multiline=!0)}location(t,r){this.#t.push({type:"Location",line:t,column:r})}visit(t){let r=this.#e[t.type];if(!r){let a=`Not implemented: ${t.type}`;throw t.type.includes("TS")&&(a+=" (consider using 'esrap/languages/ts')"),t.type.includes("JSX")&&(a+=" (consider using 'esrap/languages/tsx')"),new Error(a)}let i=this.#r,s=i?.enter(t);this.#e._?this.#e._(t,this,a=>r(a,this)):r(t,this),s&&i?.exit(t,s)}empty(){return!this.#t.some(C1)}measure(){return S1(this.#t)}new(){return new e(this.#e,[],this.#r)}};function S1(e,t=0,r=e.length){let i=0;for(let s=t;s<r;s+=1){let a=e[s];typeof a=="string"?i+=a.length:Array.isArray(a)&&(i+=S1(a))}return i}function C1(e){return Array.isArray(e)?e.some(C1):typeof e=="string"?e.length>0:!1}var cR=new Set(["string","num","bigint","decimal","regexp","template","invalidTemplate","privateId","jsxText","eof"]),pR=new Set(["Punctuator","Keyword","Identifier","Boolean","Null","JSXIdentifier"]),Ol={")":"(","]":"[","}":"{"};function uR(e){let{type:t,value:r}=e;if(typeof t=="object"&&t!==null){let i=t.label;return i===void 0||cR.has(i)?null:i==="jsxTagStart"?"<":i==="jsxTagEnd"?">":typeof r=="string"?r:i}return typeof t=="string"&&pR.has(t)&&typeof r=="string"?r:null}function Di(e,t){return e.line-t.line||e.column-t.column}var Dl=class{#e=[];#t={lo:0,hi:0,openers:[]};constructor(t){let r=[];for(let s of t){if(!s.loc)continue;let a=uR(s);a!==null&&r.push({value:a,start:s.loc.start,end:s.loc.end,pair:-1})}r.sort((s,a)=>Di(s.start,a.start));for(let s of r){let a=this.#e[this.#e.length-1];a&&Di(a.start,s.start)===0?this.#e[this.#e.length-1]=s:(!a||Di(a.end,s.start)<=0)&&this.#e.push(s)}let i=[];for(let s=0;s<this.#e.length;s+=1){let{value:a}=this.#e[s];if(a==="("||a==="["||a==="{"||a==="${")i.push(s);else if(a in Ol){let n=i.pop();if(n===void 0)continue;let p=this.#e[n].value;(p===Ol[a]||a==="}"&&p==="${")&&(this.#e[n].pair=s,this.#e[s].pair=n)}}}enter(t){let r=this.#t;if(t.loc){let i=this.#r(t.loc.start),s=this.#r(t.loc.end);r.lo>i&&r.lo<s&&(i=r.lo),this.#t={lo:i,hi:s,openers:[]}}else this.#t={lo:0,hi:0,openers:[]};return r}exit(t,r){this.#t=r,t.loc&&this.skip(t.loc.end)}skip(t){this.#t.lo=Math.max(this.#t.lo,this.#r(t))}consume(t,r,i){let s=this.#t,a=t==="("||t==="["||t==="{"||t==="${";if(t in Ol){let u=s.openers[s.openers.length-1];if(u&&(u.value===Ol[t]||t==="}"&&u.value==="${")){s.openers.pop();let d=u.pair;return d===-1||d>=s.hi?void 0:(s.lo=Math.max(s.lo,d+1),this.#e[d])}}let n=s.lo<s.hi?this.#e[s.lo]:void 0,p=n!==void 0&&n.value===t&&(!r||Di(n.start,r)>=0)&&(!i||Di(n.end,i)<=0);if(a&&s.openers.push({value:t,pair:p?n.pair:-1}),p)return s.lo+=1,n}#r(t){let r=0,i=this.#e.length;for(;r<i;){let s=r+i>>1;Di(this.#e[s].start,t)<0?r=s+1:i=s}return r}};var Au=()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")};typeof window<"u"&&typeof window.btoa=="function"?Au=e=>window.btoa(unescape(encodeURIComponent(e))):typeof Buffer=="function"&&(Au=e=>Buffer.from(e,"utf-8").toString("base64"));var $u=class{version=3;names=[];constructor(t,r){this.sources=[r.sourceMapSource||null],this.sourcesContent=[r.sourceMapContent||null],this.mappings=r.sourceMapEncodeMappings===!1?t:Mr(t)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+Au(this.toString())}};function Ru(e,t,r={}){let i=[],s=r.tokens?new Dl(r.tokens):null;new Ll(t,i,s).visit(e);let n="",p=0,u=[],d=[];function m(P){n+=P;for(let R=0;R<P.length;R+=1)P[R]===`
|
|
197
197
|
`?(u.push(d),d=[],p=0):p+=1}let h=`
|
|
198
198
|
`,_=r.indent??" ",v=!1,E=!1,l=!1,o=[];function g(P){let R=d[d.length-1],L=[p,0,P.line-1,P.column];(!R||R[0]!==L[0]||R[2]!==L[2]||R[3]!==L[3])&&d.push(L)}function k(){for(let P of o)g(P);o.length=0}function S(P){if(Array.isArray(P)){for(let R=0;R<P.length;R+=1)S(P[R]);return}if(typeof P=="number"){P===1?v=!0:P===0?E=!0:P===4?l=!0:P===2?h+=_:P===3&&(h=h.slice(0,h.length-_.length));return}if(typeof P=="string"){v?m(E?`
|
|
199
199
|
`+h:h):l&&m(" "),E=v=l=!1,k(),m(P);return}P.type==="Location"&&(v||l?o.push(P):g(P))}for(let P=0;P<i.length;P+=1)S(i[P]);k(),u.push(d);let C;return{code:n,get map(){return C??=new $u(u,r)}}}var fe={JSXFragment:20,JSXElement:20,ArrayPattern:20,ObjectPattern:20,ArrayExpression:20,TaggedTemplateExpression:20,ThisExpression:20,Identifier:20,TemplateLiteral:20,Super:20,SequenceExpression:20,MemberExpression:19,MetaProperty:19,CallExpression:19,ChainExpression:19,ImportExpression:19,NewExpression:19,TSNonNullExpression:19,Literal:18,TSInstantiationExpression:18,TSTypeAssertion:18,AwaitExpression:17,ClassExpression:17,FunctionExpression:17,ObjectExpression:17,UpdateExpression:16,UnaryExpression:15,BinaryExpression:14,TSAsExpression:13,TSSatisfiesExpression:13,LogicalExpression:12,ConditionalExpression:4,ArrowFunctionExpression:3,AssignmentExpression:3,YieldExpression:2,RestElement:1},Bl={"||":2,"&&":3,"??":4,"|":5,"^":6,"&":7,"==":8,"!=":8,"===":8,"!==":8,"<":9,">":9,"<=":9,">=":9,in:9,instanceof:9,"<<":10,">>":10,">>>":10,"+":11,"-":11,"*":12,"%":12,"/":12,"**":13},$1=new WeakSet;function ar(e){if(!(!e||typeof e!="object"))switch($1.add(e),e.type){case"AssignmentPattern":ar(e.left);break;case"RestElement":ar(e.argument);break;case"ArrayPattern":Wt(e.elements);break;case"ObjectPattern":for(let t of e.properties)ar(t.type==="Property"?t.value:t);break;case"TSParameterProperty":ar(e.parameter);break}}function Wt(e){if(e)for(let t of e)ar(t)}function qu(e,t){if(e.type==="Line")t.write(`//${e.value}`);else{let r=e.value.split(`
|
|
200
200
|
`);for(let i=0;i<r.length;i+=1){i>0&&t.newline();let s=(i===0?"/*":"")+r[i]+(i===r.length-1?"*/":"");t.write(s)}r.length>1&&t.newline()}}function ve(e,t,r){if(e.write(t),r.loc){let{line:i,column:s}=r.loc.start;e.location(i,s+t.length)}}var Nu=(e={})=>{let t=e.quotes==="double"?'"':"'",r=e.comments??[],i=new Set,s=0;function a(l,o,g){if(o)for(let k=0;k<o.length;k+=1){let S=o[k];g==="trailing"&&k===0&&l.write(" "),qu(S,l),g==="leading"&&(S.type==="Line"?l.newline():S.type==="Block"&&!S.value.includes(`
|
|
201
|
-
`)&&l.write(" "))}}function n(l){if(!l.loc){s=r.length;return}let o=r[s-1],g=r[s];g&&g.loc&&!ri(g.loc.start,l.loc.start)&&(!o||o.loc&&ri(o.loc.start,l.loc.start))||(s=r.findIndex(k=>k.loc&&l.loc&&!ri(k.loc.start,l.loc.start)),s===-1&&(s=r.length))}function p(l,o,g){for(;s<r.length;){let k=r[s];if(k&&o&&k.loc.start.line===o.line&&(g===null||!ri(g,k.loc.end)))if(l.space(),qu(k,l),s+=1,k.type==="Line")l.newline();else continue;break}}function u(l,o,g,k,S=!1){let C=!0,P=0;for(;s<r.length;){let R=r[s];if(R&&R.loc&&g&&ri(R.loc.start,g)){C&&o!==null&&R.loc.start.line>o.line&&(l.margin(),l.newline()),C=!1,qu(R,l);let L=S&&R.type==="Block"&&/(?:^|\n)\s*\*\s*@type\s*{/.test(R.value);L&&(l.write(" ("),P+=1),R.type==="Line"||R.loc.end.line<g.line?l.newline():k&&!L&&l.space(),s+=1}else break}return P}function d(l){if(!l||l.type!=="Property")return!1;let o=l.value?.type==="AssignmentPattern"?l.value.left:l.value;return o?.type==="ObjectExpression"||o?.type==="ArrayExpression"}function m(l,o){let g=o.attributes??o.assertions;if(!(!g||g.length===0)){l.write(o.attributes?" with ":" assert "),l.write("{ ");for(let k=0;k<g.length;k+=1){let{key:S,value:C}=g[k];l.visit(S),l.write(": "),l.visit(C),k<g.length-1&&l.write(", ")}l.write(" }")}}function h(l,o,g,k,S=",",C=!0){let P=!1,R=-1,L=[],H=o.map((c,f)=>{let b=l.new();c&&b.visit(c),L[f]=b.multiline,(f<o.length-1||!c)&&b.write(S);let x=f===o.length-1?g:o[f+1]?.loc?.start||null;return p(b,c?.loc?.end||null,x),R+=b.measure()+1,P||=b.multiline,b});P||=R>60,P?(l.indent(),l.newline()):k&&R>0&&l.write(" ");let se=null;for(let c=0;c<o.length;c+=1){let f=H[c];se!==null&&(L[c-1]&&L[c]&&(!d(o[c-1])||!d(o[c]))&&l.margin(),o[c]&&(P?l.newline():l.write(" "))),l.append(f),se=f}u(l,o[o.length-1]?.loc?.end??null,g,!1),P?(l.dedent(),C&&l.newline()):k&&R>0&&l.write(" ")}function _(l,o){n(o);let g=null,k=!1;for(let S=0;S<o.body.length;S+=1){let C=o.body[S];if(C.type==="EmptyStatement")continue;let P=l.new();P.visit(C),g!==null&&((P.multiline||k||C.type!==g)&&l.margin(),l.newline()),l.append(P),p(l,C.loc?.end||null,o.body[S+1]?.loc?.end??o.loc?.end??null),g=C.type,k=P.multiline}o.loc&&(l.empty()||l.newline(),u(l,o.body[o.body.length-1]?.loc?.end??null,o.loc.end,!1))}let v={"ArrayExpression|ArrayPattern":(l,o)=>{"decorators"in l&&As(o,l),o.write("["),h(o,l.elements,l.loc?.end??null,!1),o.write("]"),"typeAnnotation"in l&&l.typeAnnotation&&o.visit(l.typeAnnotation)},"BinaryExpression|LogicalExpression":(l,o)=>{Ae(o,l.left,$s(l.left,l,!1)),o.write(` ${l.operator} `),Ae(o,l.right,$s(l.right,l,!0))},"BlockStatement|ClassBody":(l,o)=>{ve(o,"{",l);let g=o.new();if(_(g,l),g.empty()||(o.indent(),o.newline(),o.append(g),o.dedent(),o.newline()),l.loc){let{line:k,column:S}=l.loc.end;o.location(k,S-1)}o.write("}")},"CallExpression|NewExpression":(l,o)=>{if(l.type==="NewExpression"&&(ve(o,"new",l),o.write(" ")),l.callee.loc){let{line:R,column:L}=l.callee.loc.start;o.location(R,L)}let g=l.callee.type==="ChainExpression"||fe[l.callee.type]<fe.CallExpression||l.type==="NewExpression"&&yR(l.callee);Ae(o,l.callee,g),l.optional&&o.write("?."),l.typeArguments&&o.visit(l.typeArguments);let k=o.new(),S=o.new();o.write("("),o.append(k);let C=o.new(),P=o.new();o.append(C),o.append(P);for(let R=0;R<l.arguments.length;R+=1){let L=R===l.arguments.length-1,H=L?P:C,se=l.arguments[R];L&&se.loc&&r[s]&&r[s].loc&&r[s].loc.start.line<se.loc.start.line&&(C.multiline=!0),H.visit(se),L||H.write(",");let c=L?l.loc?.end??null:l.arguments[R+1]?.loc?.start??null;p(H,se.loc?.end??null,c),L||H.append(S)}o.multiline||=C.multiline||P.multiline,C.multiline?(k.indent(),k.newline(),S.newline(),o.dedent(),o.newline()):S.write(" "),o.write(")")},"ClassDeclaration|ClassExpression":(l,o)=>{if(Ps(o,l),l.declare&&o.write("declare "),l.abstract&&o.write("abstract "),o.write("class "),l.id&&o.visit(l.id),l.typeParameters&&o.visit(l.typeParameters),(l.id||l.typeParameters)&&o.write(" "),l.superClass){o.write("extends ");let k=fe[l.superClass.type]<fe.NewExpression;Ae(o,l.superClass,k);var g=l.superTypeParameters??l.superTypeArguments;g&&o.visit(g),o.write(" ")}l.implements&&l.implements.length>0&&(o.write("implements"),h(o,l.implements,l.body.loc?.start??null,!0)),o.visit(l.body)},"ForInStatement|ForOfStatement":(l,o)=>{ve(o,"for",l),o.write(" "),l.type==="ForOfStatement"&&l.await&&o.write("await "),o.write("("),l.left.type==="VariableDeclaration"?A1(l.left,o):o.visit(l.left),o.write(l.type==="ForInStatement"?" in ":" of "),o.visit(l.right),o.write(") "),o.visit(l.body)},"FunctionDeclaration|FunctionExpression":(l,o)=>{l.async&&o.write("async "),o.write("function"),o.write(l.generator?"* ":" "),l.id&&ar(l.id),l.id&&o.visit(l.id),l.typeParameters&&o.visit(l.typeParameters),Wt(l.params),o.write("("),h(o,l.params,(l.returnType??l.body).loc?.start??null,!1),o.write(")"),l.returnType&&o.visit(l.returnType),o.write(" "),o.visit(l.body)},"MethodDefinition|TSAbstractMethodDefinition":(l,o)=>{Ps(o,l),(l.abstract||l.type==="TSAbstractMethodDefinition")&&o.write("abstract "),l.accessibility&&o.write(l.accessibility+" "),l.override&&o.write("override "),l.static&&o.write("static "),(l.kind==="get"||l.kind==="set")&&o.write(l.kind+" "),l.value.async&&o.write("async "),l.value.generator&&o.write("*"),l.computed&&o.write("["),o.visit(l.key),l.computed&&o.write("]"),l.optional&&o.write("?");let g=l.value.typeParameters??l.typeParameters;g&&o.visit(g),Wt(l.value.params),o.write("("),h(o,l.value.params,(l.value.returnType??l.value.body)?.loc?.start??l.loc?.end??null,!1),o.write(")"),l.value.returnType&&o.visit(l.value.returnType),l.value.body?(o.write(" "),o.visit(l.value.body)):o.write(";")},"PropertyDefinition|TSAbstractPropertyDefinition|AccessorProperty|TSAbstractAccessorProperty":(l,o)=>{Ps(o,l),l.declare&&o.write("declare "),l.accessibility&&o.write(l.accessibility+" "),(l.abstract||l.type==="TSAbstractPropertyDefinition"||l.type==="TSAbstractAccessorProperty")&&o.write("abstract "),l.static&&o.write("static "),l.override&&o.write("override "),l.readonly&&o.write("readonly "),(l.accessor||l.type==="AccessorProperty"||l.type==="TSAbstractAccessorProperty")&&o.write("accessor "),l.computed?(o.write("["),o.visit(l.key),o.write("]")):o.visit(l.key),l.optional?o.write("?"):l.definite&&o.write("!"),l.typeAnnotation&&(l.type==="AccessorProperty"||l.type==="TSAbstractAccessorProperty"?o.visit(l.typeAnnotation):(o.write(": "),o.visit(l.typeAnnotation.typeAnnotation))),l.value&&(o.write(" = "),o.visit(l.value)),o.write(";"),p(o,(l.value??l.typeAnnotation??l.key).loc?.end??null,null)},"RestElement|SpreadElement":(l,o)=>{o.write("..."),o.visit(l.argument),l.typeAnnotation&&o.visit(l.typeAnnotation)},"TSConstructSignatureDeclaration|TSCallSignatureDeclaration":(l,o)=>{l.type==="TSConstructSignatureDeclaration"&&o.write("new"),l.typeParameters&&o.visit(l.typeParameters),Wt(l.parameters??l.params),o.write("("),h(o,l.parameters??l.params,(l.typeAnnotation??l.returnType)?.loc?.start??l.loc?.end??null,!1),o.write(")"),(l.typeAnnotation||l.returnType)&&o.visit(l.typeAnnotation??l.returnType)},"TSFunctionType|TSConstructorType":(l,o)=>{l.type==="TSConstructorType"&&(l.abstract&&o.write("abstract "),o.write("new ")),l.typeParameters&&o.visit(l.typeParameters),Wt(l.parameters??l.params),o.write("("),h(o,l.parameters??l.params,(l.typeAnnotation??l.returnType)?.loc?.start??l.loc?.end??null,!1),o.write(")"),o.write(" => "),o.visit(l.typeAnnotation?.typeAnnotation??l.returnType?.typeAnnotation)}};return{_(l,o,g){a(o,e.getLeadingComments?.(l),"leading");let k=0;l.loc&&(k=u(o,null,l.loc.start,!0,l.type in fe&&!$1.has(l)),Lu(l)===jl.has(l)&&o.location(l.loc.start.line,l.loc.start.column)),g(l),l.loc&&o.location(l.loc.end.line,l.loc.end.column),k>0&&o.write(")".repeat(k)),l.type==="JSXEmptyExpression"&&l.loc&&u(o,null,l.loc.end,!1),a(o,e.getTrailingComments?.(l),"trailing")},AccessorProperty:v["PropertyDefinition|TSAbstractPropertyDefinition|AccessorProperty|TSAbstractAccessorProperty"],ArrayExpression:v["ArrayExpression|ArrayPattern"],ArrayPattern:v["ArrayExpression|ArrayPattern"],ArrowFunctionExpression:(l,o)=>{l.async&&o.write("async "),l.typeParameters&&o.visit(l.typeParameters),Wt(l.params),o.write("("),h(o,l.params,(l.returnType??l.body).loc?.start??null,!1),o.write(")"),l.returnType&&o.visit(l.returnType),o.write(" => "),Ae(o,l.body,Mu(l.body))},AssignmentExpression(l,o){let g=l.left.type==="TSAsExpression"||l.left.type==="TSSatisfiesExpression"||l.left.type==="TSTypeAssertion";Ae(o,l.left,g),o.write(` ${l.operator} `),o.visit(l.right)},AssignmentPattern(l,o){As(o,l),o.visit(l.left),o.write(" = "),o.visit(l.right)},AwaitExpression(l,o){if(ve(o,"await",l),l.argument){let g=fe[l.argument.type];g&&g<fe.AwaitExpression?(o.write(" "),Ae(o,l.argument,!0)):(o.write(" "),o.visit(l.argument))}},BinaryExpression:v["BinaryExpression|LogicalExpression"],BlockStatement:v["BlockStatement|ClassBody"],BreakStatement(l,o){ve(o,"break",l),l.label&&(o.write(" "),o.visit(l.label)),o.write(";")},CallExpression:v["CallExpression|NewExpression"],ChainExpression(l,o){o.visit(l.expression)},ClassBody:v["BlockStatement|ClassBody"],ClassDeclaration:v["ClassDeclaration|ClassExpression"],ClassExpression:v["ClassDeclaration|ClassExpression"],ConditionalExpression(l,o){let g=fe[l.test.type]<=fe.ConditionalExpression;Ae(o,l.test,g);let k=o.new(),S=o.new();k.visit(l.consequent),S.visit(l.alternate),k.multiline||S.multiline||k.measure()+S.measure()>50?(o.indent(),o.newline(),o.write("? "),o.append(k),o.newline(),o.write(": "),o.append(S),o.dedent()):(o.write(" ? "),o.append(k),o.write(" : "),o.append(S))},ContinueStatement(l,o){ve(o,"continue",l),l.label&&(o.write(" "),o.visit(l.label)),o.write(";")},DebuggerStatement(l,o){o.write("debugger",l),o.write(";")},Decorator(l,o){o.write("@"),Ae(o,l.expression,!bR(l.expression))},DoWhileStatement(l,o){ve(o,"do",l),o.write(" "),o.visit(l.body),o.write(" while "),o.write("("),o.visit(l.test),o.write(")"),o.write(";")},EmptyStatement(l,o){o.write(";")},ExportAllDeclaration(l,o){ve(o,"export",l),l.exportKind==="type"&&o.write(" type"),o.write(" * "),l.exported&&(o.write("as "),o.visit(l.exported)),o.write(" from "),o.visit(l.source),m(o,l),o.write(";")},ExportDefaultDeclaration(l,o){let g=l.declaration;"decorators"in g&&Ps(o,{...g,loc:null}),l.loc&&o.location(l.loc.start.line,l.loc.start.column),ve(o,"export",l),o.write(" default "),g.loc&&u(o,null,g.loc.start,!0,!1),T1(o,g),l.declaration.type!=="FunctionDeclaration"&&o.write(";")},ExportNamedDeclaration(l,o){let g=l.declaration;if(g){"decorators"in g&&Ps(o,{...g,loc:null}),l.loc&&o.location(l.loc.start.line,l.loc.start.column),ve(o,"export",l),o.write(" "),g.loc&&u(o,null,g.loc.start,!0,!1),T1(o,g);return}ve(o,"export",l),o.write(" "),l.exportKind==="type"&&o.write("type "),o.write("{"),h(o,l.specifiers,l.source?.loc?.start??l.loc?.end??null,!0),o.write("}"),l.source&&(o.write(" from "),o.visit(l.source),m(o,l)),o.write(";")},ExportSpecifier(l,o){l.exportKind==="type"&&o.write("type "),o.visit(l.local),P1(l.local,l.exported)||(o.write(" as "),o.visit(l.exported))},ExpressionStatement(l,o){let g=gR(l.expression);Ae(o,l.expression,g),o.write(";")},ForStatement:(l,o)=>{ve(o,"for",l),o.write(" ("),l.init&&(l.init.type==="VariableDeclaration"?A1(l.init,o,!0):Ae(o,l.init,qt(l.init))),o.write("; "),l.test&&o.visit(l.test),o.write("; "),l.update&&o.visit(l.update),o.write(") "),o.visit(l.body)},ForInStatement:v["ForInStatement|ForOfStatement"],ForOfStatement:v["ForInStatement|ForOfStatement"],FunctionDeclaration:v["FunctionDeclaration|FunctionExpression"],FunctionExpression:v["FunctionDeclaration|FunctionExpression"],Identifier(l,o){As(o,l),ve(o,l.name,l),l.optional?o.write("?"):l.definite&&o.write("!"),l.typeAnnotation&&o.visit(l.typeAnnotation)},IfStatement(l,o){if(ve(o,"if",l),o.write(" ("),o.visit(l.test),o.write(") "),l.alternate&&Iu(l.consequent)){let g=l.consequent.loc;g&&o.location(g.start.line,g.start.column),o.write("{"),o.indent(),o.newline(),o.visit(l.consequent),o.dedent(),o.newline(),o.write("}"),g&&o.location(g.end.line,g.end.column)}else o.visit(l.consequent);l.alternate&&(o.space(),o.write("else "),o.visit(l.alternate))},ImportDeclaration(l,o){if(ve(o,"import",l),o.write(" "),l.specifiers.length===0){l.importKind==="type"&&o.write("type {} from "),o.visit(l.source),m(o,l),o.write(";");return}let g=null,k=null,S=[];for(let C of l.specifiers)C.type==="ImportNamespaceSpecifier"?g=C:C.type==="ImportDefaultSpecifier"?k=C:S.push(C);l.importKind=="type"&&o.write("type "),k&&(o.write(k.local.name,k),(g||S.length>0)&&o.write(", ")),g&&o.write("* as "+g.local.name,g),S.length>0&&(o.write("{"),h(o,S,l.source.loc?.start??null,!0),o.write("}")),o.write(" from "),o.visit(l.source),m(o,l),o.write(";")},ImportExpression(l,o){if(ve(o,"import",l),o.write("("),o.visit(l.source),l.arguments)for(let g=0;g<l.arguments.length;g++)o.write(", "),o.visit(l.arguments[g]);l.options&&(o.write(", "),o.visit(l.options)),o.write(")")},ImportSpecifier(l,o){l.importKind=="type"&&o.write("type "),P1(l.imported,l.local)||(o.visit(l.imported),o.write(" as ")),o.visit(l.local)},LabeledStatement(l,o){o.visit(l.label),o.write(": "),o.visit(l.body)},Literal(l,o){let g=l.bigint,k=l.raw||(typeof l.value=="bigint"?`${l.value}n`:g!==void 0?`${g}n`:typeof l.value=="string"?vR(l.value,t):String(l.value));o.write(k,l)},LogicalExpression:v["BinaryExpression|LogicalExpression"],MemberExpression(l,o){let g=l.object.type==="ChainExpression"||fe[l.object.type]<fe.MemberExpression;Ae(o,l.object,g),l.computed?(l.optional&&o.write("?."),o.write("["),o.visit(l.property),o.write("]")):(o.write(l.optional?"?.":"."),o.visit(l.property))},MetaProperty(l,o){o.visit(l.meta),o.write("."),o.visit(l.property)},MethodDefinition:v["MethodDefinition|TSAbstractMethodDefinition"],NewExpression:v["CallExpression|NewExpression"],ObjectExpression(l,o){o.write("{"),h(o,l.properties,l.loc?.end??null,!0),o.write("}")},ObjectPattern(l,o){As(o,l),o.write("{"),h(o,l.properties,l.loc?.end??null,!0),o.write("}"),l.typeAnnotation&&o.visit(l.typeAnnotation)},ParenthesizedExpression(l,o){l.expression.type==="SequenceExpression"?(l.expression.loc&&o.location(l.expression.loc.start.line,l.expression.loc.start.column),o.write("("),i.add(l.expression),o.visit(l.expression),i.delete(l.expression)):l.loc?(o.write("("),o.visit(l.expression),o.write(")")):Ae(o,l.expression,!0)},PrivateIdentifier(l,o){o.write("#"),o.write(l.name,l)},Program(l,o){_(o,l)},Property(l,o){let g=l.value.type==="AssignmentPattern"?l.value.left:l.value;if(!l.computed&&l.kind==="init"&&l.key.type==="Identifier"&&g.type==="Identifier"&&l.key.name===g.name){o.visit(l.value);return}l.value.type==="FunctionExpression"&&(l.method||l.kind==="get"||l.kind==="set")?(l.kind!=="init"&&o.write(l.kind+" "),l.value.async&&o.write("async "),l.value.generator&&o.write("*"),l.computed&&o.write("["),o.visit(l.key),l.computed&&o.write("]"),l.value.typeParameters&&o.visit(l.value.typeParameters),Wt(l.value.params),o.write("("),h(o,l.value.params,(l.value.returnType??l.value.body).loc?.start??null,!1),o.write(")"),l.value.returnType&&o.visit(l.value.returnType),o.write(" "),o.visit(l.value.body)):(l.computed&&o.write("["),(l.kind==="get"||l.kind==="set")&&o.write(l.kind+" "),o.visit(l.key),l.computed&&o.write("]"),o.write(": "),o.visit(l.value))},PropertyDefinition:v["PropertyDefinition|TSAbstractPropertyDefinition|AccessorProperty|TSAbstractAccessorProperty"],RestElement:v["RestElement|SpreadElement"],ReturnStatement(l,o){if(ve(o,"return",l),l.argument){let g=r[s]&&r[s].loc&&l.argument.loc&&ri(r[s].loc.start,l.argument.loc.start);o.write(g?" (":" "),o.visit(l.argument),o.write(g?");":";")}else o.write(";")},SequenceExpression(l,o){!i.has(l)&&o.write("("),h(o,l.expressions,l.loc?.end??null,!1),o.write(")")},SpreadElement:v["RestElement|SpreadElement"],StaticBlock(l,o){o.write("static "),o.write("{"),o.indent(),o.newline(),_(o,l),o.dedent(),o.newline(),o.write("}")},Super(l,o){o.write("super",l)},SwitchCase(l,o){l.test?(ve(o,"case",l),o.write(" "),o.visit(l.test),o.write(":")):(ve(o,"default",l),o.write(":")),o.indent();for(let g of l.consequent)o.newline(),o.visit(g);o.dedent()},SwitchStatement(l,o){ve(o,"switch",l),o.write(" ("),o.visit(l.discriminant),o.write(") "),o.write("{"),o.indent();let g=!0;for(let k of l.cases)g||o.margin(),g=!1,o.newline(),o.visit(k);o.dedent(),o.newline(),o.write("}")},TaggedTemplateExpression(l,o){let g=l.tag.type==="ChainExpression"||fe[l.tag.type]<fe.CallExpression;Ae(o,l.tag,g),l.typeArguments&&o.visit(l.typeArguments),o.visit(l.quasi)},TemplateLiteral(l,o){o.write("`");let{quasis:g,expressions:k}=l;for(let C=0;C<k.length;C++){let P=g[C].value.raw;o.write(P),o.write("${"),o.visit(k[C]),o.write("}"),/\n/.test(P)&&(o.multiline=!0)}let S=g[g.length-1].value.raw;o.write(S),o.write("`"),/\n/.test(S)&&(o.multiline=!0)},ThisExpression(l,o){o.write("this",l)},ThrowStatement(l,o){ve(o,"throw",l),o.write(" "),l.argument&&o.visit(l.argument),o.write(";")},CatchClause(l,o){ve(o,"catch",l),l.param&&(o.write("("),ar(l.param),o.visit(l.param),o.write(")")),o.write(" "),o.visit(l.body)},TryStatement(l,o){ve(o,"try",l),o.write(" "),o.visit(l.block),l.handler&&(o.write(" "),o.visit(l.handler)),l.finalizer&&(o.write(" finally "),o.visit(l.finalizer))},UnaryExpression(l,o){ve(o,l.operator,l),(l.operator.length>1||(l.operator==="+"||l.operator==="-")&&(l.argument.type==="UnaryExpression"&&l.argument.operator===l.operator||l.argument.type==="UpdateExpression"&&l.argument.prefix&&l.argument.operator[0]===l.operator))&&o.write(" ");let g=fe[l.argument.type]<fe.UnaryExpression;Ae(o,l.argument,g)},UpdateExpression(l,o){let g=l.argument.type==="TSTypeAssertion"||fe[l.argument.type]<fe.UpdateExpression;l.prefix&&o.write(l.operator),Ae(o,l.argument,g),l.prefix||o.write(l.operator)},VariableDeclaration(l,o){q1(l,o),o.write(";")},VariableDeclarator(l,o){R1(l,o,!1)},WhileStatement(l,o){ve(o,"while",l),o.write(" ("),o.visit(l.test),o.write(") "),o.visit(l.body)},WithStatement(l,o){ve(o,"with",l),o.write(" ("),o.visit(l.object),o.write(") "),o.visit(l.body)},YieldExpression(l,o){ve(o,l.delegate?"yield*":"yield",l),l.argument&&(o.write(" "),o.visit(l.argument))},TSAbstractMethodDefinition:v["MethodDefinition|TSAbstractMethodDefinition"],TSAbstractAccessorProperty:v["PropertyDefinition|TSAbstractPropertyDefinition|AccessorProperty|TSAbstractAccessorProperty"],TSAbstractPropertyDefinition:v["PropertyDefinition|TSAbstractPropertyDefinition|AccessorProperty|TSAbstractAccessorProperty"],TSDeclareFunction(l,o){l.declare&&o.write("declare "),l.async&&o.write("async "),o.write("function"),l.generator&&o.write("*"),l.id&&(o.write(" "),ar(l.id),o.visit(l.id)),l.typeParameters&&o.visit(l.typeParameters),Wt(l.params),o.write("("),h(o,l.params,l.returnType?.loc?.start??l.loc?.end??null,!1),o.write(")"),l.returnType&&o.visit(l.returnType),o.write(";")},TSNumberKeyword(l,o){o.write("number",l)},TSStringKeyword(l,o){o.write("string",l)},TSBooleanKeyword(l,o){o.write("boolean",l)},TSAnyKeyword(l,o){o.write("any",l)},TSVoidKeyword(l,o){o.write("void",l)},TSUnknownKeyword(l,o){o.write("unknown",l)},TSNeverKeyword(l,o){o.write("never",l)},TSSymbolKeyword(l,o){o.write("symbol",l)},TSNullKeyword(l,o){o.write("null",l)},TSUndefinedKeyword(l,o){o.write("undefined",l)},TSObjectKeyword(l,o){o.write("object",l)},TSBigIntKeyword(l,o){o.write("bigint",l)},TSIntrinsicKeyword(l,o){o.write("intrinsic",l)},TSArrayType(l,o){o.visit(l.elementType),o.write("["),o.write("]")},TSTypeAnnotation(l,o){o.write(": "),o.visit(l.typeAnnotation)},TSTypeLiteral(l,o){o.write("{ "),h(o,l.members,l.loc?.end??null,!1,";"),o.write(" }")},TSPropertySignature(l,o){l.readonly&&o.write("readonly "),l.computed&&o.write("["),o.visit(l.key),l.computed&&o.write("]"),l.optional&&o.write("?"),l.typeAnnotation&&o.visit(l.typeAnnotation)},TSTypeReference(l,o){o.visit(l.typeName),l.typeArguments&&o.visit(l.typeArguments)},TSTypeOperator(l,o){o.write(l.operator+" "),l.typeAnnotation&&o.visit(l.typeAnnotation)},TSTemplateLiteralType(l,o){o.write("`");let{quasis:g,types:k}=l;for(let C=0;C<k.length;C++){let P=g[C].value.raw;o.write(P),o.write("${"),o.visit(k[C]),o.write("}"),/\n/.test(P)&&(o.multiline=!0)}let S=g[g.length-1].value.raw;o.write(S),o.write("`"),/\n/.test(S)&&(o.multiline=!0)},TSJSDocNullableType(l,o){l.postfix||o.write("?"),o.visit(l.typeAnnotation),l.postfix&&o.write("?")},TSParameterProperty(l,o){let g=l.parameter,k=g.decorators;As(o,g.decorators?{...l,decorators:g.decorators}:l),l.accessibility&&o.write(l.accessibility+" "),l.override&&o.write("override "),l.readonly&&o.write("readonly "),k?.length?(g.decorators=[],o.visit(g),g.decorators=k):o.visit(g)},TSExportAssignment(l,o){o.write("export "),o.write("= "),o.visit(l.expression),o.write(";")},TSNamespaceExportDeclaration(l,o){ve(o,"export",l),o.write(" as "),o.write("namespace "),o.visit(l.id),o.write(";")},TSExpressionWithTypeArguments(l,o){o.visit(l.expression),(l.typeArguments||l.typeParameters)&&o.visit(l.typeArguments??l.typeParameters)},TSTypeAssertion(l,o){o.write("<"),o.visit(l.typeAnnotation),o.write(">");let g=fe[l.expression.type]<fe.TSTypeAssertion;Ae(o,l.expression,g)},TSTypeParameterInstantiation(l,o){o.write("<");for(let g=0;g<l.params.length;g++)o.visit(l.params[g]),g!=l.params.length-1&&o.write(", ");o.write(">")},TSTypeParameterDeclaration(l,o){o.write("<");for(let g=0;g<l.params.length;g++)o.visit(l.params[g]),g!=l.params.length-1&&o.write(", ");o.write(">")},TSTypeParameter(l,o){l.const&&o.write("const "),l.in&&o.write("in "),l.out&&o.write("out "),l.name&&l.name.type?o.visit(l.name):o.write(l.name,l),l.constraint&&(o.write(" extends "),o.visit(l.constraint)),l.default&&(o.write(" = "),o.visit(l.default))},TSTypePredicate(l,o){l.asserts&&o.write("asserts "),l.parameterName&&o.visit(l.parameterName),l.typeAnnotation&&(o.write(" is "),o.visit(l.typeAnnotation.typeAnnotation))},TSTypeQuery(l,o){o.write("typeof "),o.visit(l.exprName),l.typeArguments&&o.visit(l.typeArguments)},TSClassImplements(l,o){l.expression&&o.visit(l.expression),l.typeArguments&&o.visit(l.typeArguments)},TSEnumMember(l,o){o.visit(l.id),l.initializer&&(o.write(" = "),o.visit(l.initializer))},TSFunctionType:v["TSFunctionType|TSConstructorType"],TSIndexSignature(l,o){l.readonly&&o.write("readonly "),o.write("["),Wt(l.parameters),h(o,l.parameters,l.typeAnnotation?.loc?.start??null,!1),o.write("]"),o.visit(l.typeAnnotation)},TSMappedType(l,o){o.write("{"),l.readonly&&((l.readonly==="-"||l.readonly==="+")&&o.write(l.readonly),o.write("readonly ")),o.write("[");let g=l.typeParameter,k=l.key??g?.name,S=l.constraint??g?.constraint;k&&typeof k=="object"?o.visit(k):o.write(k,l),S&&(o.write(" in "),o.visit(S)),l.nameType&&(o.write(" as "),o.visit(l.nameType)),o.write("]"),l.optional&&o.write(l.optional==="-"?"-?":l.optional==="+"?"+?":"?"),l.typeAnnotation&&(o.write(": "),o.visit(l.typeAnnotation)),o.write("}")},TSMethodSignature(l,o){(l.kind==="get"||l.kind==="set")&&o.write(l.kind+" "),l.computed&&o.write("["),o.visit(l.key),l.computed&&o.write("]"),l.optional&&o.write("?"),l.typeParameters&&o.visit(l.typeParameters),Wt(l.parameters??l.params),o.write("("),h(o,l.parameters??l.params,(l.typeAnnotation??l.returnType)?.loc?.start??l.loc?.end??null,!1),o.write(")"),(l.typeAnnotation||l.returnType)&&o.visit(l.typeAnnotation??l.returnType)},TSTupleType(l,o){o.write("["),h(o,l.elementTypes,l.loc?.end??null,!1),o.write("]")},TSNamedTupleMember(l,o){o.visit(l.label),l.optional&&o.write("?"),o.write(": "),o.visit(l.elementType)},TSUnionType(l,o){h(o,l.types,l.loc?.end??null,!1," |",!1)},TSIntersectionType(l,o){h(o,l.types,l.loc?.end??null,!1," &",!1)},TSInferType(l,o){o.write("infer "),o.visit(l.typeParameter)},TSLiteralType(l,o){o.visit(l.literal)},TSCallSignatureDeclaration:v["TSConstructSignatureDeclaration|TSCallSignatureDeclaration"],TSConditionalType(l,o){o.visit(l.checkType),o.write(" extends "),o.visit(l.extendsType),o.write(" ? "),o.visit(l.trueType),o.write(" : "),o.visit(l.falseType)},TSConstructSignatureDeclaration:v["TSConstructSignatureDeclaration|TSCallSignatureDeclaration"],TSConstructorType:v["TSFunctionType|TSConstructorType"],TSExternalModuleReference(l,o){o.write("require"),o.write("("),o.visit(l.expression),o.write(")"),o.write(";")},TSIndexedAccessType(l,o){o.visit(l.objectType),o.write("["),o.visit(l.indexType),o.write("]")},TSImportEqualsDeclaration(l,o){ve(o,"import",l),o.write(" "),l.importKind==="type"&&o.write("type "),o.visit(l.id),o.write(" = "),o.visit(l.moduleReference)},TSImportType(l,o){ve(o,"import",l),o.write("("),o.visit(l.source??l.argument),o.write(")"),l.qualifier&&(o.write("."),o.visit(l.qualifier)),l.typeArguments&&o.visit(l.typeArguments)},TSOptionalType(l,o){o.visit(l.typeAnnotation),o.write("?")},TSRestType(l,o){o.write("..."),o.visit(l.typeAnnotation)},TSThisType(l,o){o.write("this",l)},TSAsExpression(l,o){if(l.expression){let g=fe[l.expression.type]<fe.TSAsExpression;Ae(o,l.expression,g)}o.write(" as "),o.visit(l.typeAnnotation)},TSEnumDeclaration(l,o){l.declare&&o.write("declare "),l.const&&o.write("const "),o.write("enum "),o.visit(l.id),o.write(" {"),o.indent(),o.newline(),h(o,l.members??l.body.members,l.loc?.end??null,!1),o.dedent(),o.newline(),o.write("}")},TSModuleBlock(l,o){o.write(" {"),o.indent(),o.newline(),_(o,l),o.dedent(),o.newline(),o.write("}")},TSModuleDeclaration(l,o){if(l.declare&&o.write("declare "),l.global)o.write("global",l.id);else{let k=l.kind??(l.id.type==="Literal"?"module":"namespace");o.write(k+" "),o.visit(l.id)}let g=l.body;for(;g&&g.type==="TSModuleDeclaration";)o.write("."),o.visit(g.id),g=g.body;g&&o.visit(g)},TSNonNullExpression(l,o){let g=l.expression.type==="ChainExpression"||fe[l.expression.type]<fe.TSNonNullExpression;Ae(o,l.expression,g),o.write("!")},TSInterfaceBody(l,o){h(o,l.body,l.loc?.end??null,!0,";")},TSInterfaceDeclaration(l,o){l.declare&&o.write("declare "),o.write("interface "),o.visit(l.id),l.typeParameters&&o.visit(l.typeParameters),l.extends&&l.extends.length>0&&(o.write(" extends "),h(o,l.extends,l.body.loc?.start??null,!1)),o.write(" {"),o.visit(l.body),o.write("}")},TSInstantiationExpression(l,o){let g=l.expression.type==="ChainExpression"||l.expression.type==="TSTypeAssertion"||fe[l.expression.type]<fe.TSInstantiationExpression;Ae(o,l.expression,g),o.visit(l.typeArguments)},TSInterfaceHeritage(l,o){l.expression&&o.visit(l.expression),l.typeArguments&&o.visit(l.typeArguments)},TSParenthesizedType(l,o){Ae(o,l.typeAnnotation,!0)},TSSatisfiesExpression(l,o){if(l.expression){let g=fe[l.expression.type]<fe.TSSatisfiesExpression;Ae(o,l.expression,g)}o.write(" satisfies "),o.visit(l.typeAnnotation)},TSTypeAliasDeclaration(l,o){l.declare&&o.write("declare "),o.write("type "),o.visit(l.id),l.typeParameters&&o.visit(l.typeParameters),o.write(" = "),o.visit(l.typeAnnotation),o.write(";")},TSQualifiedName(l,o){o.visit(l.left),o.write("."),o.visit(l.right)}}};function Mu(e){if(e.type==="BlockStatement")return!1;switch(e.type){case"ObjectExpression":return!0;case"AssignmentExpression":return e.left.type==="ObjectPattern";case"LogicalExpression":return e.left.type==="ObjectExpression";case"ConditionalExpression":return e.test.type==="ObjectExpression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":return e.expression?Mu(e.expression):!1;default:return!1}}function $s(e,t,r){if(e.type==="PrivateIdentifier")return!1;if(!r&&(e.type==="TSAsExpression"||e.type==="TSSatisfiesExpression"))return t.operator==="**"||t.operator==="&"||t.operator==="|";if(e.type==="LogicalExpression"&&t.type==="LogicalExpression"&&(t.operator==="??"&&e.operator!=="??"||t.operator!=="??"&&e.operator==="??")||!r&&t.operator==="**"&&(e.type==="UnaryExpression"||e.type==="AwaitExpression"||e.type==="TSTypeAssertion"))return!0;let s=fe[e.type],a=fe[t.type];if(s!==a)return s<a;let n=e.operator;return n==="**"&&t.operator==="**"?!r:r?Bl[n]<=Bl[t.operator]:Bl[n]<Bl[t.operator]}function Ae(e,t,r){r?(t.loc&&e.location(t.loc.start.line,t.loc.start.column),e.write("("),e.visit(t),e.write(")"),t.loc&&e.location(t.loc.end.line,t.loc.end.column)):e.visit(t)}function bR(e){if(e.type==="ParenthesizedExpression")return!0;for(e.type==="CallExpression"&&(e=e.callee);e.type==="MemberExpression"&&!e.computed&&e.property.type==="Identifier";)e=e.object;return e.type==="Identifier"}function Ps(e,t){if(!(!t.decorators||jl.has(t))){for(let r of t.decorators)e.visit(r),e.newline();t.loc&&Lu(t)&&e.location(t.loc.start.line,t.loc.start.column)}}function As(e,t){if(t.decorators){for(let r of t.decorators)e.visit(r),e.write(" ");t.loc&&Lu(t)&&e.location(t.loc.start.line,t.loc.start.column)}}var jl=new WeakSet;function T1(e,t){"decorators"in t&&t.decorators&&t.decorators.length>0?(jl.add(t),e.visit(t),jl.delete(t)):e.visit(t)}function yR(e){for(;e;){if(e.type==="CallExpression")return!0;if(e.type==="MemberExpression")e=e.object;else return!1}return!1}function gR(e){for(;e;)switch(e.type){case"ObjectExpression":case"ObjectPattern":case"FunctionExpression":case"ClassExpression":return!0;case"BinaryExpression":case"LogicalExpression":if($s(e.left,e,!1))return!1;e=e.left;continue;case"AssignmentExpression":e=e.left;continue;case"ConditionalExpression":if(fe[e.test.type]<=fe.ConditionalExpression)return!1;e=e.test;continue;case"MemberExpression":if(e.object.type==="ChainExpression"||fe[e.object.type]<fe.MemberExpression)return!1;e=e.object;continue;case"CallExpression":if(e.callee.type==="ChainExpression"||fe[e.callee.type]<fe.CallExpression)return!1;e=e.callee;continue;case"TaggedTemplateExpression":if(e.tag.type==="ChainExpression"||fe[e.tag.type]<fe.CallExpression)return!1;e=e.tag;continue;case"UpdateExpression":if(e.prefix)return!1;e=e.argument;continue;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":e=e.expression;continue;case"SequenceExpression":return!1;default:return!1}return!1}function Iu(e){switch(e.type){case"IfStatement":return e.alternate===null||Iu(e.alternate);case"ForStatement":case"ForInStatement":case"ForOfStatement":case"LabeledStatement":case"WhileStatement":case"WithStatement":return Iu(e.body);default:return!1}}function qt(e){switch(e.type){case"BinaryExpression":case"LogicalExpression":return e.operator==="in"||!$s(e.left,e,!1)&&qt(e.left)||!$s(e.right,e,!0)&&qt(e.right);case"ConditionalExpression":return fe[e.test.type]>fe.ConditionalExpression&&qt(e.test)||qt(e.alternate);case"AssignmentExpression":return qt(e.right);case"ArrowFunctionExpression":return!Mu(e.body)&&qt(e.body);case"YieldExpression":return!!e.argument&&qt(e.argument);case"TSAsExpression":case"TSSatisfiesExpression":return fe[e.expression.type]>=fe[e.type]&&qt(e.expression);case"TSInstantiationExpression":return qt(e.expression);default:return!1}}function P1(e,t){return e.type!==t.type?!1:e.type==="Identifier"?e.name===t.name:e.type==="Literal"&&e.value===t.value}function R1(e,t,r){let i=e.definite?{...e.id,definite:!0}:e.id;ar(i),t.visit(i),e.init&&(t.write(" = "),Ae(t,e.init,r&&qt(e.init)))}function Lu(e){if(e.type==="ExportNamedDeclaration"||e.type==="ExportDefaultDeclaration"){let r=e.declaration;return!!(r&&"decorators"in r&&r.decorators&&r.decorators.length>0)}let t=e;if("parameter"in t&&"decorators"in t.parameter&&(t=t.parameter),"decorators"in t){let r=t.decorators?.[0]?.loc;return r?ri(r.start,e.loc.start):!1}return!1}function A1(e,t,r=!1){e.loc&&t.location(e.loc.start.line,e.loc.start.column),q1(e,t,r),e.loc&&t.location(e.loc.end.line,e.loc.end.column)}function q1(e,t,r=!1){let i=t.new(),s=t.new(),a=t.new();t.append(a),e.declare?(ve(a,"declare",e),a.write(" "),a.write(e.kind)):ve(a,e.kind,e),a.write(" "),a.append(i);let n=!0;for(let d of e.declarations)n||a.append(s),n=!1,R1(d,a,r);let p=a.measure()+2*(e.declarations.length-1);a.multiline||e.declarations.length>1&&p>50?(t.multiline=!0,e.declarations.length>1&&i.indent(),s.write(","),s.newline(),e.declarations.length>1&&t.dedent()):s.write(", ")}function vR(e,t){let r=t;for(let i of e)i==="\\"?r+="\\\\":i===t?r+="\\"+i:i===`
|
|
202
|
-
`?r+="\\n":i==="\r"?r+="\\r":r+=i;return r+t}function ri(e,t){return e.line<t.line?!0:e.line>t.line?!1:e.column<t.column}var Fl=class e{constructor(t){this.bits=t instanceof e?t.bits.slice():[]}add(t){this.bits[t>>5]|=1<<(t&31)}has(t){return!!(this.bits[t>>5]&1<<(t&31))}},Ul=class e{constructor(t,r,i){this.start=t,this.end=r,this.original=i,this.intro="",this.outro="",this.content=i,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(t){this.outro+=t}appendRight(t){this.intro=this.intro+t}clone(){let t=new e(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t}contains(t){return this.start<t&&t<this.end}eachNext(t){let r=this;for(;r;)t(r),r=r.next}eachPrevious(t){let r=this;for(;r;)t(r),r=r.previous}edit(t,r,i){return this.content=t,i||(this.intro="",this.outro=""),this.storeName=r,this.edited=!0,this}prependLeft(t){this.outro=t+this.outro}prependRight(t){this.intro=t+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(t){let r=t-this.start,i=this.original.slice(0,r),s=this.original.slice(r);this.original=i;let a=new e(t,this.end,s);return a.outro=this.outro,this.outro="",this.end=t,this.edited?(a.edit("",!1),this.content=""):this.content=i,a.next=this.next,a.next&&(a.next.previous=a),a.previous=this,this.next=a,a}toString(){return this.intro+this.content+this.outro}trimEnd(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;let r=this.content.replace(t,"");if(r.length)return r!==this.content&&(this.split(this.start+r.length).edit("",void 0,!0),this.edited&&this.edit(r,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(t,""),this.intro.length)return!0}trimStart(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;let r=this.content.replace(t,"");if(r.length){if(r!==this.content){let i=this.split(this.end-r.length);this.edited&&i.edit(r,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(t,""),this.outro.length)return!0}};function
|
|
203
|
-
`),r=t.filter(a=>/^\t+/.test(a)),i=t.filter(a=>/^ {2,}/.test(a));if(r.length===0&&i.length===0)return null;if(r.length>=i.length)return" ";let s=i.reduce((a,n)=>{let p=/^ +/.exec(n)[0].length;return Math.min(p,a)},1/0);return new Array(s+1).join(" ")}function
|
|
204
|
-
`),r=[];for(let i=0,s=0;i<t.length;i++)r.push(s),s+=t[i].length+1;return function(s){let a=0,n=r.length;for(;a<n;){let d=a+n>>1;s<r[d]?n=d:a=d+1}let p=a-1,u=s-r[p];return{line:p,column:u}}}var
|
|
201
|
+
`)&&l.write(" "))}}function n(l){if(!l.loc){s=r.length;return}let o=r[s-1],g=r[s];g&&g.loc&&!ri(g.loc.start,l.loc.start)&&(!o||o.loc&&ri(o.loc.start,l.loc.start))||(s=r.findIndex(k=>k.loc&&l.loc&&!ri(k.loc.start,l.loc.start)),s===-1&&(s=r.length))}function p(l,o,g){for(;s<r.length;){let k=r[s];if(k&&o&&k.loc.start.line===o.line&&(g===null||!ri(g,k.loc.end)))if(l.space(),qu(k,l),s+=1,k.type==="Line")l.newline();else continue;break}}function u(l,o,g,k,S=!1){let C=!0,P=0;for(;s<r.length;){let R=r[s];if(R&&R.loc&&g&&ri(R.loc.start,g)){C&&o!==null&&R.loc.start.line>o.line&&(l.margin(),l.newline()),C=!1,qu(R,l);let L=S&&R.type==="Block"&&/(?:^|\n)\s*\*\s*@type\s*{/.test(R.value);L&&(l.write(" ("),P+=1),R.type==="Line"||R.loc.end.line<g.line?l.newline():k&&!L&&l.space(),s+=1}else break}return P}function d(l){if(!l||l.type!=="Property")return!1;let o=l.value?.type==="AssignmentPattern"?l.value.left:l.value;return o?.type==="ObjectExpression"||o?.type==="ArrayExpression"}function m(l,o){let g=o.attributes??o.assertions;if(!(!g||g.length===0)){l.write(o.attributes?" with ":" assert "),l.write("{ ");for(let k=0;k<g.length;k+=1){let{key:S,value:C}=g[k];l.visit(S),l.write(": "),l.visit(C),k<g.length-1&&l.write(", ")}l.write(" }")}}function h(l,o,g,k,S=",",C=!0){let P=!1,R=-1,L=[],H=o.map((c,f)=>{let b=l.new();c&&b.visit(c),L[f]=b.multiline,(f<o.length-1||!c)&&b.write(S);let x=f===o.length-1?g:o[f+1]?.loc?.start||null;return p(b,c?.loc?.end||null,x),R+=b.measure()+1,P||=b.multiline,b});P||=R>60,P?(l.indent(),l.newline()):k&&R>0&&l.write(" ");let se=null;for(let c=0;c<o.length;c+=1){let f=H[c];se!==null&&(L[c-1]&&L[c]&&(!d(o[c-1])||!d(o[c]))&&l.margin(),o[c]&&(P?l.newline():l.write(" "))),l.append(f),se=f}u(l,o[o.length-1]?.loc?.end??null,g,!1),P?(l.dedent(),C&&l.newline()):k&&R>0&&l.write(" ")}function _(l,o){n(o);let g=null,k=!1;for(let S=0;S<o.body.length;S+=1){let C=o.body[S];if(C.type==="EmptyStatement")continue;let P=l.new();P.visit(C),g!==null&&((P.multiline||k||C.type!==g)&&l.margin(),l.newline()),l.append(P),p(l,C.loc?.end||null,o.body[S+1]?.loc?.end??o.loc?.end??null),g=C.type,k=P.multiline}o.loc&&(l.empty()||l.newline(),u(l,o.body[o.body.length-1]?.loc?.end??null,o.loc.end,!1))}let v={"ArrayExpression|ArrayPattern":(l,o)=>{"decorators"in l&&As(o,l),o.write("["),h(o,l.elements,l.loc?.end??null,!1),o.write("]"),"typeAnnotation"in l&&l.typeAnnotation&&o.visit(l.typeAnnotation)},"BinaryExpression|LogicalExpression":(l,o)=>{Ae(o,l.left,$s(l.left,l,!1)),o.write(` ${l.operator} `),Ae(o,l.right,$s(l.right,l,!0))},"BlockStatement|ClassBody":(l,o)=>{ve(o,"{",l);let g=o.new();if(_(g,l),g.empty()||(o.indent(),o.newline(),o.append(g),o.dedent(),o.newline()),l.loc){let{line:k,column:S}=l.loc.end;o.location(k,S-1)}o.write("}")},"CallExpression|NewExpression":(l,o)=>{if(l.type==="NewExpression"&&(ve(o,"new",l),o.write(" ")),l.callee.loc){let{line:R,column:L}=l.callee.loc.start;o.location(R,L)}let g=l.callee.type==="ChainExpression"||fe[l.callee.type]<fe.CallExpression||l.type==="NewExpression"&&gR(l.callee);Ae(o,l.callee,g),l.optional&&o.write("?."),l.typeArguments&&o.visit(l.typeArguments);let k=o.new(),S=o.new();o.write("("),o.append(k);let C=o.new(),P=o.new();o.append(C),o.append(P);for(let R=0;R<l.arguments.length;R+=1){let L=R===l.arguments.length-1,H=L?P:C,se=l.arguments[R];L&&se.loc&&r[s]&&r[s].loc&&r[s].loc.start.line<se.loc.start.line&&(C.multiline=!0),H.visit(se),L||H.write(",");let c=L?l.loc?.end??null:l.arguments[R+1]?.loc?.start??null;p(H,se.loc?.end??null,c),L||H.append(S)}o.multiline||=C.multiline||P.multiline,C.multiline?(k.indent(),k.newline(),S.newline(),o.dedent(),o.newline()):S.write(" "),o.write(")")},"ClassDeclaration|ClassExpression":(l,o)=>{if(Ps(o,l),l.declare&&o.write("declare "),l.abstract&&o.write("abstract "),o.write("class "),l.id&&o.visit(l.id),l.typeParameters&&o.visit(l.typeParameters),(l.id||l.typeParameters)&&o.write(" "),l.superClass){o.write("extends ");let k=fe[l.superClass.type]<fe.NewExpression;Ae(o,l.superClass,k);var g=l.superTypeParameters??l.superTypeArguments;g&&o.visit(g),o.write(" ")}l.implements&&l.implements.length>0&&(o.write("implements"),h(o,l.implements,l.body.loc?.start??null,!0)),o.visit(l.body)},"ForInStatement|ForOfStatement":(l,o)=>{ve(o,"for",l),o.write(" "),l.type==="ForOfStatement"&&l.await&&o.write("await "),o.write("("),l.left.type==="VariableDeclaration"?A1(l.left,o):o.visit(l.left),o.write(l.type==="ForInStatement"?" in ":" of "),o.visit(l.right),o.write(") "),o.visit(l.body)},"FunctionDeclaration|FunctionExpression":(l,o)=>{l.async&&o.write("async "),o.write("function"),o.write(l.generator?"* ":" "),l.id&&ar(l.id),l.id&&o.visit(l.id),l.typeParameters&&o.visit(l.typeParameters),Wt(l.params),o.write("("),h(o,l.params,(l.returnType??l.body).loc?.start??null,!1),o.write(")"),l.returnType&&o.visit(l.returnType),o.write(" "),o.visit(l.body)},"MethodDefinition|TSAbstractMethodDefinition":(l,o)=>{Ps(o,l),(l.abstract||l.type==="TSAbstractMethodDefinition")&&o.write("abstract "),l.accessibility&&o.write(l.accessibility+" "),l.override&&o.write("override "),l.static&&o.write("static "),(l.kind==="get"||l.kind==="set")&&o.write(l.kind+" "),l.value.async&&o.write("async "),l.value.generator&&o.write("*"),l.computed&&o.write("["),o.visit(l.key),l.computed&&o.write("]"),l.optional&&o.write("?");let g=l.value.typeParameters??l.typeParameters;g&&o.visit(g),Wt(l.value.params),o.write("("),h(o,l.value.params,(l.value.returnType??l.value.body)?.loc?.start??l.loc?.end??null,!1),o.write(")"),l.value.returnType&&o.visit(l.value.returnType),l.value.body?(o.write(" "),o.visit(l.value.body)):o.write(";")},"PropertyDefinition|TSAbstractPropertyDefinition|AccessorProperty|TSAbstractAccessorProperty":(l,o)=>{Ps(o,l),l.declare&&o.write("declare "),l.accessibility&&o.write(l.accessibility+" "),(l.abstract||l.type==="TSAbstractPropertyDefinition"||l.type==="TSAbstractAccessorProperty")&&o.write("abstract "),l.static&&o.write("static "),l.override&&o.write("override "),l.readonly&&o.write("readonly "),(l.accessor||l.type==="AccessorProperty"||l.type==="TSAbstractAccessorProperty")&&o.write("accessor "),l.computed?(o.write("["),o.visit(l.key),o.write("]")):o.visit(l.key),l.optional?o.write("?"):l.definite&&o.write("!"),l.typeAnnotation&&(l.type==="AccessorProperty"||l.type==="TSAbstractAccessorProperty"?o.visit(l.typeAnnotation):(o.write(": "),o.visit(l.typeAnnotation.typeAnnotation))),l.value&&(o.write(" = "),o.visit(l.value)),o.write(";"),p(o,(l.value??l.typeAnnotation??l.key).loc?.end??null,null)},"RestElement|SpreadElement":(l,o)=>{o.write("..."),o.visit(l.argument),l.typeAnnotation&&o.visit(l.typeAnnotation)},"TSConstructSignatureDeclaration|TSCallSignatureDeclaration":(l,o)=>{l.type==="TSConstructSignatureDeclaration"&&o.write("new"),l.typeParameters&&o.visit(l.typeParameters),Wt(l.parameters??l.params),o.write("("),h(o,l.parameters??l.params,(l.typeAnnotation??l.returnType)?.loc?.start??l.loc?.end??null,!1),o.write(")"),(l.typeAnnotation||l.returnType)&&o.visit(l.typeAnnotation??l.returnType)},"TSFunctionType|TSConstructorType":(l,o)=>{l.type==="TSConstructorType"&&(l.abstract&&o.write("abstract "),o.write("new ")),l.typeParameters&&o.visit(l.typeParameters),Wt(l.parameters??l.params),o.write("("),h(o,l.parameters??l.params,(l.typeAnnotation??l.returnType)?.loc?.start??l.loc?.end??null,!1),o.write(")"),o.write(" => "),o.visit(l.typeAnnotation?.typeAnnotation??l.returnType?.typeAnnotation)}};return{_(l,o,g){a(o,e.getLeadingComments?.(l),"leading");let k=0;l.loc&&(k=u(o,null,l.loc.start,!0,l.type in fe&&!$1.has(l)),Lu(l)===jl.has(l)&&o.location(l.loc.start.line,l.loc.start.column)),g(l),l.loc&&o.location(l.loc.end.line,l.loc.end.column),k>0&&o.write(")".repeat(k)),l.type==="JSXEmptyExpression"&&l.loc&&u(o,null,l.loc.end,!1),a(o,e.getTrailingComments?.(l),"trailing")},AccessorProperty:v["PropertyDefinition|TSAbstractPropertyDefinition|AccessorProperty|TSAbstractAccessorProperty"],ArrayExpression:v["ArrayExpression|ArrayPattern"],ArrayPattern:v["ArrayExpression|ArrayPattern"],ArrowFunctionExpression:(l,o)=>{l.async&&o.write("async "),l.typeParameters&&o.visit(l.typeParameters),Wt(l.params),o.write("("),h(o,l.params,(l.returnType??l.body).loc?.start??null,!1),o.write(")"),l.returnType&&o.visit(l.returnType),o.write(" => "),Ae(o,l.body,Mu(l.body))},AssignmentExpression(l,o){let g=l.left.type==="TSAsExpression"||l.left.type==="TSSatisfiesExpression"||l.left.type==="TSTypeAssertion";Ae(o,l.left,g),o.write(` ${l.operator} `),o.visit(l.right)},AssignmentPattern(l,o){As(o,l),o.visit(l.left),o.write(" = "),o.visit(l.right)},AwaitExpression(l,o){if(ve(o,"await",l),l.argument){let g=fe[l.argument.type];g&&g<fe.AwaitExpression?(o.write(" "),Ae(o,l.argument,!0)):(o.write(" "),o.visit(l.argument))}},BinaryExpression:v["BinaryExpression|LogicalExpression"],BlockStatement:v["BlockStatement|ClassBody"],BreakStatement(l,o){ve(o,"break",l),l.label&&(o.write(" "),o.visit(l.label)),o.write(";")},CallExpression:v["CallExpression|NewExpression"],ChainExpression(l,o){o.visit(l.expression)},ClassBody:v["BlockStatement|ClassBody"],ClassDeclaration:v["ClassDeclaration|ClassExpression"],ClassExpression:v["ClassDeclaration|ClassExpression"],ConditionalExpression(l,o){let g=fe[l.test.type]<=fe.ConditionalExpression;Ae(o,l.test,g);let k=o.new(),S=o.new();k.visit(l.consequent),S.visit(l.alternate),k.multiline||S.multiline||k.measure()+S.measure()>50?(o.indent(),o.newline(),o.write("? "),o.append(k),o.newline(),o.write(": "),o.append(S),o.dedent()):(o.write(" ? "),o.append(k),o.write(" : "),o.append(S))},ContinueStatement(l,o){ve(o,"continue",l),l.label&&(o.write(" "),o.visit(l.label)),o.write(";")},DebuggerStatement(l,o){o.write("debugger",l),o.write(";")},Decorator(l,o){o.write("@"),Ae(o,l.expression,!yR(l.expression))},DoWhileStatement(l,o){ve(o,"do",l),o.write(" "),o.visit(l.body),o.write(" while "),o.write("("),o.visit(l.test),o.write(")"),o.write(";")},EmptyStatement(l,o){o.write(";")},ExportAllDeclaration(l,o){ve(o,"export",l),l.exportKind==="type"&&o.write(" type"),o.write(" * "),l.exported&&(o.write("as "),o.visit(l.exported)),o.write(" from "),o.visit(l.source),m(o,l),o.write(";")},ExportDefaultDeclaration(l,o){let g=l.declaration;"decorators"in g&&Ps(o,{...g,loc:null}),l.loc&&o.location(l.loc.start.line,l.loc.start.column),ve(o,"export",l),o.write(" default "),g.loc&&u(o,null,g.loc.start,!0,!1),T1(o,g),l.declaration.type!=="FunctionDeclaration"&&o.write(";")},ExportNamedDeclaration(l,o){let g=l.declaration;if(g){"decorators"in g&&Ps(o,{...g,loc:null}),l.loc&&o.location(l.loc.start.line,l.loc.start.column),ve(o,"export",l),o.write(" "),g.loc&&u(o,null,g.loc.start,!0,!1),T1(o,g);return}ve(o,"export",l),o.write(" "),l.exportKind==="type"&&o.write("type "),o.write("{"),h(o,l.specifiers,l.source?.loc?.start??l.loc?.end??null,!0),o.write("}"),l.source&&(o.write(" from "),o.visit(l.source),m(o,l)),o.write(";")},ExportSpecifier(l,o){l.exportKind==="type"&&o.write("type "),o.visit(l.local),P1(l.local,l.exported)||(o.write(" as "),o.visit(l.exported))},ExpressionStatement(l,o){let g=vR(l.expression);Ae(o,l.expression,g),o.write(";")},ForStatement:(l,o)=>{ve(o,"for",l),o.write(" ("),l.init&&(l.init.type==="VariableDeclaration"?A1(l.init,o,!0):Ae(o,l.init,qt(l.init))),o.write("; "),l.test&&o.visit(l.test),o.write("; "),l.update&&o.visit(l.update),o.write(") "),o.visit(l.body)},ForInStatement:v["ForInStatement|ForOfStatement"],ForOfStatement:v["ForInStatement|ForOfStatement"],FunctionDeclaration:v["FunctionDeclaration|FunctionExpression"],FunctionExpression:v["FunctionDeclaration|FunctionExpression"],Identifier(l,o){As(o,l),ve(o,l.name,l),l.optional?o.write("?"):l.definite&&o.write("!"),l.typeAnnotation&&o.visit(l.typeAnnotation)},IfStatement(l,o){if(ve(o,"if",l),o.write(" ("),o.visit(l.test),o.write(") "),l.alternate&&Iu(l.consequent)){let g=l.consequent.loc;g&&o.location(g.start.line,g.start.column),o.write("{"),o.indent(),o.newline(),o.visit(l.consequent),o.dedent(),o.newline(),o.write("}"),g&&o.location(g.end.line,g.end.column)}else o.visit(l.consequent);l.alternate&&(o.space(),o.write("else "),o.visit(l.alternate))},ImportDeclaration(l,o){if(ve(o,"import",l),o.write(" "),l.specifiers.length===0){l.importKind==="type"&&o.write("type {} from "),o.visit(l.source),m(o,l),o.write(";");return}let g=null,k=null,S=[];for(let C of l.specifiers)C.type==="ImportNamespaceSpecifier"?g=C:C.type==="ImportDefaultSpecifier"?k=C:S.push(C);l.importKind=="type"&&o.write("type "),k&&(o.write(k.local.name,k),(g||S.length>0)&&o.write(", ")),g&&o.write("* as "+g.local.name,g),S.length>0&&(o.write("{"),h(o,S,l.source.loc?.start??null,!0),o.write("}")),o.write(" from "),o.visit(l.source),m(o,l),o.write(";")},ImportExpression(l,o){if(ve(o,"import",l),o.write("("),o.visit(l.source),l.arguments)for(let g=0;g<l.arguments.length;g++)o.write(", "),o.visit(l.arguments[g]);l.options&&(o.write(", "),o.visit(l.options)),o.write(")")},ImportSpecifier(l,o){l.importKind=="type"&&o.write("type "),P1(l.imported,l.local)||(o.visit(l.imported),o.write(" as ")),o.visit(l.local)},LabeledStatement(l,o){o.visit(l.label),o.write(": "),o.visit(l.body)},Literal(l,o){let g=l.bigint,k=l.raw||(typeof l.value=="bigint"?`${l.value}n`:g!==void 0?`${g}n`:typeof l.value=="string"?wR(l.value,t):String(l.value));o.write(k,l)},LogicalExpression:v["BinaryExpression|LogicalExpression"],MemberExpression(l,o){let g=l.object.type==="ChainExpression"||fe[l.object.type]<fe.MemberExpression;Ae(o,l.object,g),l.computed?(l.optional&&o.write("?."),o.write("["),o.visit(l.property),o.write("]")):(o.write(l.optional?"?.":"."),o.visit(l.property))},MetaProperty(l,o){o.visit(l.meta),o.write("."),o.visit(l.property)},MethodDefinition:v["MethodDefinition|TSAbstractMethodDefinition"],NewExpression:v["CallExpression|NewExpression"],ObjectExpression(l,o){o.write("{"),h(o,l.properties,l.loc?.end??null,!0),o.write("}")},ObjectPattern(l,o){As(o,l),o.write("{"),h(o,l.properties,l.loc?.end??null,!0),o.write("}"),l.typeAnnotation&&o.visit(l.typeAnnotation)},ParenthesizedExpression(l,o){l.expression.type==="SequenceExpression"?(l.expression.loc&&o.location(l.expression.loc.start.line,l.expression.loc.start.column),o.write("("),i.add(l.expression),o.visit(l.expression),i.delete(l.expression)):l.loc?(o.write("("),o.visit(l.expression),o.write(")")):Ae(o,l.expression,!0)},PrivateIdentifier(l,o){o.write("#"),o.write(l.name,l)},Program(l,o){_(o,l)},Property(l,o){let g=l.value.type==="AssignmentPattern"?l.value.left:l.value;if(!l.computed&&l.kind==="init"&&l.key.type==="Identifier"&&g.type==="Identifier"&&l.key.name===g.name){o.visit(l.value);return}l.value.type==="FunctionExpression"&&(l.method||l.kind==="get"||l.kind==="set")?(l.kind!=="init"&&o.write(l.kind+" "),l.value.async&&o.write("async "),l.value.generator&&o.write("*"),l.computed&&o.write("["),o.visit(l.key),l.computed&&o.write("]"),l.value.typeParameters&&o.visit(l.value.typeParameters),Wt(l.value.params),o.write("("),h(o,l.value.params,(l.value.returnType??l.value.body).loc?.start??null,!1),o.write(")"),l.value.returnType&&o.visit(l.value.returnType),o.write(" "),o.visit(l.value.body)):(l.computed&&o.write("["),(l.kind==="get"||l.kind==="set")&&o.write(l.kind+" "),o.visit(l.key),l.computed&&o.write("]"),o.write(": "),o.visit(l.value))},PropertyDefinition:v["PropertyDefinition|TSAbstractPropertyDefinition|AccessorProperty|TSAbstractAccessorProperty"],RestElement:v["RestElement|SpreadElement"],ReturnStatement(l,o){if(ve(o,"return",l),l.argument){let g=r[s]&&r[s].loc&&l.argument.loc&&ri(r[s].loc.start,l.argument.loc.start);o.write(g?" (":" "),o.visit(l.argument),o.write(g?");":";")}else o.write(";")},SequenceExpression(l,o){!i.has(l)&&o.write("("),h(o,l.expressions,l.loc?.end??null,!1),o.write(")")},SpreadElement:v["RestElement|SpreadElement"],StaticBlock(l,o){o.write("static "),o.write("{"),o.indent(),o.newline(),_(o,l),o.dedent(),o.newline(),o.write("}")},Super(l,o){o.write("super",l)},SwitchCase(l,o){l.test?(ve(o,"case",l),o.write(" "),o.visit(l.test),o.write(":")):(ve(o,"default",l),o.write(":")),o.indent();for(let g of l.consequent)o.newline(),o.visit(g);o.dedent()},SwitchStatement(l,o){ve(o,"switch",l),o.write(" ("),o.visit(l.discriminant),o.write(") "),o.write("{"),o.indent();let g=!0;for(let k of l.cases)g||o.margin(),g=!1,o.newline(),o.visit(k);o.dedent(),o.newline(),o.write("}")},TaggedTemplateExpression(l,o){let g=l.tag.type==="ChainExpression"||fe[l.tag.type]<fe.CallExpression;Ae(o,l.tag,g),l.typeArguments&&o.visit(l.typeArguments),o.visit(l.quasi)},TemplateLiteral(l,o){o.write("`");let{quasis:g,expressions:k}=l;for(let C=0;C<k.length;C++){let P=g[C].value.raw;o.write(P),o.write("${"),o.visit(k[C]),o.write("}"),/\n/.test(P)&&(o.multiline=!0)}let S=g[g.length-1].value.raw;o.write(S),o.write("`"),/\n/.test(S)&&(o.multiline=!0)},ThisExpression(l,o){o.write("this",l)},ThrowStatement(l,o){ve(o,"throw",l),o.write(" "),l.argument&&o.visit(l.argument),o.write(";")},CatchClause(l,o){ve(o,"catch",l),l.param&&(o.write("("),ar(l.param),o.visit(l.param),o.write(")")),o.write(" "),o.visit(l.body)},TryStatement(l,o){ve(o,"try",l),o.write(" "),o.visit(l.block),l.handler&&(o.write(" "),o.visit(l.handler)),l.finalizer&&(o.write(" finally "),o.visit(l.finalizer))},UnaryExpression(l,o){ve(o,l.operator,l),(l.operator.length>1||(l.operator==="+"||l.operator==="-")&&(l.argument.type==="UnaryExpression"&&l.argument.operator===l.operator||l.argument.type==="UpdateExpression"&&l.argument.prefix&&l.argument.operator[0]===l.operator))&&o.write(" ");let g=fe[l.argument.type]<fe.UnaryExpression;Ae(o,l.argument,g)},UpdateExpression(l,o){let g=l.argument.type==="TSTypeAssertion"||fe[l.argument.type]<fe.UpdateExpression;l.prefix&&o.write(l.operator),Ae(o,l.argument,g),l.prefix||o.write(l.operator)},VariableDeclaration(l,o){q1(l,o),o.write(";")},VariableDeclarator(l,o){R1(l,o,!1)},WhileStatement(l,o){ve(o,"while",l),o.write(" ("),o.visit(l.test),o.write(") "),o.visit(l.body)},WithStatement(l,o){ve(o,"with",l),o.write(" ("),o.visit(l.object),o.write(") "),o.visit(l.body)},YieldExpression(l,o){ve(o,l.delegate?"yield*":"yield",l),l.argument&&(o.write(" "),o.visit(l.argument))},TSAbstractMethodDefinition:v["MethodDefinition|TSAbstractMethodDefinition"],TSAbstractAccessorProperty:v["PropertyDefinition|TSAbstractPropertyDefinition|AccessorProperty|TSAbstractAccessorProperty"],TSAbstractPropertyDefinition:v["PropertyDefinition|TSAbstractPropertyDefinition|AccessorProperty|TSAbstractAccessorProperty"],TSDeclareFunction(l,o){l.declare&&o.write("declare "),l.async&&o.write("async "),o.write("function"),l.generator&&o.write("*"),l.id&&(o.write(" "),ar(l.id),o.visit(l.id)),l.typeParameters&&o.visit(l.typeParameters),Wt(l.params),o.write("("),h(o,l.params,l.returnType?.loc?.start??l.loc?.end??null,!1),o.write(")"),l.returnType&&o.visit(l.returnType),o.write(";")},TSNumberKeyword(l,o){o.write("number",l)},TSStringKeyword(l,o){o.write("string",l)},TSBooleanKeyword(l,o){o.write("boolean",l)},TSAnyKeyword(l,o){o.write("any",l)},TSVoidKeyword(l,o){o.write("void",l)},TSUnknownKeyword(l,o){o.write("unknown",l)},TSNeverKeyword(l,o){o.write("never",l)},TSSymbolKeyword(l,o){o.write("symbol",l)},TSNullKeyword(l,o){o.write("null",l)},TSUndefinedKeyword(l,o){o.write("undefined",l)},TSObjectKeyword(l,o){o.write("object",l)},TSBigIntKeyword(l,o){o.write("bigint",l)},TSIntrinsicKeyword(l,o){o.write("intrinsic",l)},TSArrayType(l,o){o.visit(l.elementType),o.write("["),o.write("]")},TSTypeAnnotation(l,o){o.write(": "),o.visit(l.typeAnnotation)},TSTypeLiteral(l,o){o.write("{ "),h(o,l.members,l.loc?.end??null,!1,";"),o.write(" }")},TSPropertySignature(l,o){l.readonly&&o.write("readonly "),l.computed&&o.write("["),o.visit(l.key),l.computed&&o.write("]"),l.optional&&o.write("?"),l.typeAnnotation&&o.visit(l.typeAnnotation)},TSTypeReference(l,o){o.visit(l.typeName),l.typeArguments&&o.visit(l.typeArguments)},TSTypeOperator(l,o){o.write(l.operator+" "),l.typeAnnotation&&o.visit(l.typeAnnotation)},TSTemplateLiteralType(l,o){o.write("`");let{quasis:g,types:k}=l;for(let C=0;C<k.length;C++){let P=g[C].value.raw;o.write(P),o.write("${"),o.visit(k[C]),o.write("}"),/\n/.test(P)&&(o.multiline=!0)}let S=g[g.length-1].value.raw;o.write(S),o.write("`"),/\n/.test(S)&&(o.multiline=!0)},TSJSDocNullableType(l,o){l.postfix||o.write("?"),o.visit(l.typeAnnotation),l.postfix&&o.write("?")},TSParameterProperty(l,o){let g=l.parameter,k=g.decorators;As(o,g.decorators?{...l,decorators:g.decorators}:l),l.accessibility&&o.write(l.accessibility+" "),l.override&&o.write("override "),l.readonly&&o.write("readonly "),k?.length?(g.decorators=[],o.visit(g),g.decorators=k):o.visit(g)},TSExportAssignment(l,o){o.write("export "),o.write("= "),o.visit(l.expression),o.write(";")},TSNamespaceExportDeclaration(l,o){ve(o,"export",l),o.write(" as "),o.write("namespace "),o.visit(l.id),o.write(";")},TSExpressionWithTypeArguments(l,o){o.visit(l.expression),(l.typeArguments||l.typeParameters)&&o.visit(l.typeArguments??l.typeParameters)},TSTypeAssertion(l,o){o.write("<"),o.visit(l.typeAnnotation),o.write(">");let g=fe[l.expression.type]<fe.TSTypeAssertion;Ae(o,l.expression,g)},TSTypeParameterInstantiation(l,o){o.write("<");for(let g=0;g<l.params.length;g++)o.visit(l.params[g]),g!=l.params.length-1&&o.write(", ");o.write(">")},TSTypeParameterDeclaration(l,o){o.write("<");for(let g=0;g<l.params.length;g++)o.visit(l.params[g]),g!=l.params.length-1&&o.write(", ");o.write(">")},TSTypeParameter(l,o){l.const&&o.write("const "),l.in&&o.write("in "),l.out&&o.write("out "),l.name&&l.name.type?o.visit(l.name):o.write(l.name,l),l.constraint&&(o.write(" extends "),o.visit(l.constraint)),l.default&&(o.write(" = "),o.visit(l.default))},TSTypePredicate(l,o){l.asserts&&o.write("asserts "),l.parameterName&&o.visit(l.parameterName),l.typeAnnotation&&(o.write(" is "),o.visit(l.typeAnnotation.typeAnnotation))},TSTypeQuery(l,o){o.write("typeof "),o.visit(l.exprName),l.typeArguments&&o.visit(l.typeArguments)},TSClassImplements(l,o){l.expression&&o.visit(l.expression),l.typeArguments&&o.visit(l.typeArguments)},TSEnumMember(l,o){o.visit(l.id),l.initializer&&(o.write(" = "),o.visit(l.initializer))},TSFunctionType:v["TSFunctionType|TSConstructorType"],TSIndexSignature(l,o){l.readonly&&o.write("readonly "),o.write("["),Wt(l.parameters),h(o,l.parameters,l.typeAnnotation?.loc?.start??null,!1),o.write("]"),o.visit(l.typeAnnotation)},TSMappedType(l,o){o.write("{"),l.readonly&&((l.readonly==="-"||l.readonly==="+")&&o.write(l.readonly),o.write("readonly ")),o.write("[");let g=l.typeParameter,k=l.key??g?.name,S=l.constraint??g?.constraint;k&&typeof k=="object"?o.visit(k):o.write(k,l),S&&(o.write(" in "),o.visit(S)),l.nameType&&(o.write(" as "),o.visit(l.nameType)),o.write("]"),l.optional&&o.write(l.optional==="-"?"-?":l.optional==="+"?"+?":"?"),l.typeAnnotation&&(o.write(": "),o.visit(l.typeAnnotation)),o.write("}")},TSMethodSignature(l,o){(l.kind==="get"||l.kind==="set")&&o.write(l.kind+" "),l.computed&&o.write("["),o.visit(l.key),l.computed&&o.write("]"),l.optional&&o.write("?"),l.typeParameters&&o.visit(l.typeParameters),Wt(l.parameters??l.params),o.write("("),h(o,l.parameters??l.params,(l.typeAnnotation??l.returnType)?.loc?.start??l.loc?.end??null,!1),o.write(")"),(l.typeAnnotation||l.returnType)&&o.visit(l.typeAnnotation??l.returnType)},TSTupleType(l,o){o.write("["),h(o,l.elementTypes,l.loc?.end??null,!1),o.write("]")},TSNamedTupleMember(l,o){o.visit(l.label),l.optional&&o.write("?"),o.write(": "),o.visit(l.elementType)},TSUnionType(l,o){h(o,l.types,l.loc?.end??null,!1," |",!1)},TSIntersectionType(l,o){h(o,l.types,l.loc?.end??null,!1," &",!1)},TSInferType(l,o){o.write("infer "),o.visit(l.typeParameter)},TSLiteralType(l,o){o.visit(l.literal)},TSCallSignatureDeclaration:v["TSConstructSignatureDeclaration|TSCallSignatureDeclaration"],TSConditionalType(l,o){o.visit(l.checkType),o.write(" extends "),o.visit(l.extendsType),o.write(" ? "),o.visit(l.trueType),o.write(" : "),o.visit(l.falseType)},TSConstructSignatureDeclaration:v["TSConstructSignatureDeclaration|TSCallSignatureDeclaration"],TSConstructorType:v["TSFunctionType|TSConstructorType"],TSExternalModuleReference(l,o){o.write("require"),o.write("("),o.visit(l.expression),o.write(")"),o.write(";")},TSIndexedAccessType(l,o){o.visit(l.objectType),o.write("["),o.visit(l.indexType),o.write("]")},TSImportEqualsDeclaration(l,o){ve(o,"import",l),o.write(" "),l.importKind==="type"&&o.write("type "),o.visit(l.id),o.write(" = "),o.visit(l.moduleReference)},TSImportType(l,o){ve(o,"import",l),o.write("("),o.visit(l.source??l.argument),o.write(")"),l.qualifier&&(o.write("."),o.visit(l.qualifier)),l.typeArguments&&o.visit(l.typeArguments)},TSOptionalType(l,o){o.visit(l.typeAnnotation),o.write("?")},TSRestType(l,o){o.write("..."),o.visit(l.typeAnnotation)},TSThisType(l,o){o.write("this",l)},TSAsExpression(l,o){if(l.expression){let g=fe[l.expression.type]<fe.TSAsExpression;Ae(o,l.expression,g)}o.write(" as "),o.visit(l.typeAnnotation)},TSEnumDeclaration(l,o){l.declare&&o.write("declare "),l.const&&o.write("const "),o.write("enum "),o.visit(l.id),o.write(" {"),o.indent(),o.newline(),h(o,l.members??l.body.members,l.loc?.end??null,!1),o.dedent(),o.newline(),o.write("}")},TSModuleBlock(l,o){o.write(" {"),o.indent(),o.newline(),_(o,l),o.dedent(),o.newline(),o.write("}")},TSModuleDeclaration(l,o){if(l.declare&&o.write("declare "),l.global)o.write("global",l.id);else{let k=l.kind??(l.id.type==="Literal"?"module":"namespace");o.write(k+" "),o.visit(l.id)}let g=l.body;for(;g&&g.type==="TSModuleDeclaration";)o.write("."),o.visit(g.id),g=g.body;g&&o.visit(g)},TSNonNullExpression(l,o){let g=l.expression.type==="ChainExpression"||fe[l.expression.type]<fe.TSNonNullExpression;Ae(o,l.expression,g),o.write("!")},TSInterfaceBody(l,o){h(o,l.body,l.loc?.end??null,!0,";")},TSInterfaceDeclaration(l,o){l.declare&&o.write("declare "),o.write("interface "),o.visit(l.id),l.typeParameters&&o.visit(l.typeParameters),l.extends&&l.extends.length>0&&(o.write(" extends "),h(o,l.extends,l.body.loc?.start??null,!1)),o.write(" {"),o.visit(l.body),o.write("}")},TSInstantiationExpression(l,o){let g=l.expression.type==="ChainExpression"||l.expression.type==="TSTypeAssertion"||fe[l.expression.type]<fe.TSInstantiationExpression;Ae(o,l.expression,g),o.visit(l.typeArguments)},TSInterfaceHeritage(l,o){l.expression&&o.visit(l.expression),l.typeArguments&&o.visit(l.typeArguments)},TSParenthesizedType(l,o){Ae(o,l.typeAnnotation,!0)},TSSatisfiesExpression(l,o){if(l.expression){let g=fe[l.expression.type]<fe.TSSatisfiesExpression;Ae(o,l.expression,g)}o.write(" satisfies "),o.visit(l.typeAnnotation)},TSTypeAliasDeclaration(l,o){l.declare&&o.write("declare "),o.write("type "),o.visit(l.id),l.typeParameters&&o.visit(l.typeParameters),o.write(" = "),o.visit(l.typeAnnotation),o.write(";")},TSQualifiedName(l,o){o.visit(l.left),o.write("."),o.visit(l.right)}}};function Mu(e){if(e.type==="BlockStatement")return!1;switch(e.type){case"ObjectExpression":return!0;case"AssignmentExpression":return e.left.type==="ObjectPattern";case"LogicalExpression":return e.left.type==="ObjectExpression";case"ConditionalExpression":return e.test.type==="ObjectExpression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":return e.expression?Mu(e.expression):!1;default:return!1}}function $s(e,t,r){if(e.type==="PrivateIdentifier")return!1;if(!r&&(e.type==="TSAsExpression"||e.type==="TSSatisfiesExpression"))return t.operator==="**"||t.operator==="&"||t.operator==="|";if(e.type==="LogicalExpression"&&t.type==="LogicalExpression"&&(t.operator==="??"&&e.operator!=="??"||t.operator!=="??"&&e.operator==="??")||!r&&t.operator==="**"&&(e.type==="UnaryExpression"||e.type==="AwaitExpression"||e.type==="TSTypeAssertion"))return!0;let s=fe[e.type],a=fe[t.type];if(s!==a)return s<a;let n=e.operator;return n==="**"&&t.operator==="**"?!r:r?Bl[n]<=Bl[t.operator]:Bl[n]<Bl[t.operator]}function Ae(e,t,r){r?(t.loc&&e.location(t.loc.start.line,t.loc.start.column),e.write("("),e.visit(t),e.write(")"),t.loc&&e.location(t.loc.end.line,t.loc.end.column)):e.visit(t)}function yR(e){if(e.type==="ParenthesizedExpression")return!0;for(e.type==="CallExpression"&&(e=e.callee);e.type==="MemberExpression"&&!e.computed&&e.property.type==="Identifier";)e=e.object;return e.type==="Identifier"}function Ps(e,t){if(!(!t.decorators||jl.has(t))){for(let r of t.decorators)e.visit(r),e.newline();t.loc&&Lu(t)&&e.location(t.loc.start.line,t.loc.start.column)}}function As(e,t){if(t.decorators){for(let r of t.decorators)e.visit(r),e.write(" ");t.loc&&Lu(t)&&e.location(t.loc.start.line,t.loc.start.column)}}var jl=new WeakSet;function T1(e,t){"decorators"in t&&t.decorators&&t.decorators.length>0?(jl.add(t),e.visit(t),jl.delete(t)):e.visit(t)}function gR(e){for(;e;){if(e.type==="CallExpression")return!0;if(e.type==="MemberExpression")e=e.object;else return!1}return!1}function vR(e){for(;e;)switch(e.type){case"ObjectExpression":case"ObjectPattern":case"FunctionExpression":case"ClassExpression":return!0;case"BinaryExpression":case"LogicalExpression":if($s(e.left,e,!1))return!1;e=e.left;continue;case"AssignmentExpression":e=e.left;continue;case"ConditionalExpression":if(fe[e.test.type]<=fe.ConditionalExpression)return!1;e=e.test;continue;case"MemberExpression":if(e.object.type==="ChainExpression"||fe[e.object.type]<fe.MemberExpression)return!1;e=e.object;continue;case"CallExpression":if(e.callee.type==="ChainExpression"||fe[e.callee.type]<fe.CallExpression)return!1;e=e.callee;continue;case"TaggedTemplateExpression":if(e.tag.type==="ChainExpression"||fe[e.tag.type]<fe.CallExpression)return!1;e=e.tag;continue;case"UpdateExpression":if(e.prefix)return!1;e=e.argument;continue;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":e=e.expression;continue;case"SequenceExpression":return!1;default:return!1}return!1}function Iu(e){switch(e.type){case"IfStatement":return e.alternate===null||Iu(e.alternate);case"ForStatement":case"ForInStatement":case"ForOfStatement":case"LabeledStatement":case"WhileStatement":case"WithStatement":return Iu(e.body);default:return!1}}function qt(e){switch(e.type){case"BinaryExpression":case"LogicalExpression":return e.operator==="in"||!$s(e.left,e,!1)&&qt(e.left)||!$s(e.right,e,!0)&&qt(e.right);case"ConditionalExpression":return fe[e.test.type]>fe.ConditionalExpression&&qt(e.test)||qt(e.alternate);case"AssignmentExpression":return qt(e.right);case"ArrowFunctionExpression":return!Mu(e.body)&&qt(e.body);case"YieldExpression":return!!e.argument&&qt(e.argument);case"TSAsExpression":case"TSSatisfiesExpression":return fe[e.expression.type]>=fe[e.type]&&qt(e.expression);case"TSInstantiationExpression":return qt(e.expression);default:return!1}}function P1(e,t){return e.type!==t.type?!1:e.type==="Identifier"?e.name===t.name:e.type==="Literal"&&e.value===t.value}function R1(e,t,r){let i=e.definite?{...e.id,definite:!0}:e.id;ar(i),t.visit(i),e.init&&(t.write(" = "),Ae(t,e.init,r&&qt(e.init)))}function Lu(e){if(e.type==="ExportNamedDeclaration"||e.type==="ExportDefaultDeclaration"){let r=e.declaration;return!!(r&&"decorators"in r&&r.decorators&&r.decorators.length>0)}let t=e;if("parameter"in t&&"decorators"in t.parameter&&(t=t.parameter),"decorators"in t){let r=t.decorators?.[0]?.loc;return r?ri(r.start,e.loc.start):!1}return!1}function A1(e,t,r=!1){e.loc&&t.location(e.loc.start.line,e.loc.start.column),q1(e,t,r),e.loc&&t.location(e.loc.end.line,e.loc.end.column)}function q1(e,t,r=!1){let i=t.new(),s=t.new(),a=t.new();t.append(a),e.declare?(ve(a,"declare",e),a.write(" "),a.write(e.kind)):ve(a,e.kind,e),a.write(" "),a.append(i);let n=!0;for(let d of e.declarations)n||a.append(s),n=!1,R1(d,a,r);let p=a.measure()+2*(e.declarations.length-1);a.multiline||e.declarations.length>1&&p>50?(t.multiline=!0,e.declarations.length>1&&i.indent(),s.write(","),s.newline(),e.declarations.length>1&&t.dedent()):s.write(", ")}function wR(e,t){let r=t;for(let i of e)i==="\\"?r+="\\\\":i===t?r+="\\"+i:i===`
|
|
202
|
+
`?r+="\\n":i==="\r"?r+="\\r":r+=i;return r+t}function ri(e,t){return e.line<t.line?!0:e.line>t.line?!1:e.column<t.column}var Fl=class e{constructor(t){this.bits=t instanceof e?t.bits.slice():[]}add(t){this.bits[t>>5]|=1<<(t&31)}has(t){return!!(this.bits[t>>5]&1<<(t&31))}},Ul=class e{constructor(t,r,i){this.start=t,this.end=r,this.original=i,this.intro="",this.outro="",this.content=i,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(t){this.outro+=t}appendRight(t){this.intro=this.intro+t}clone(){let t=new e(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t}contains(t){return this.start<t&&t<this.end}eachNext(t){let r=this;for(;r;)t(r),r=r.next}eachPrevious(t){let r=this;for(;r;)t(r),r=r.previous}edit(t,r,i){return this.content=t,i||(this.intro="",this.outro=""),this.storeName=r,this.edited=!0,this}prependLeft(t){this.outro=t+this.outro}prependRight(t){this.intro=t+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(t){let r=t-this.start,i=this.original.slice(0,r),s=this.original.slice(r);this.original=i;let a=new e(t,this.end,s);return a.outro=this.outro,this.outro="",this.end=t,this.edited?(a.edit("",!1),this.content=""):this.content=i,a.next=this.next,a.next&&(a.next.previous=a),a.previous=this,this.next=a,a}toString(){return this.intro+this.content+this.outro}trimEnd(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;let r=this.content.replace(t,"");if(r.length)return r!==this.content&&(this.split(this.start+r.length).edit("",void 0,!0),this.edited&&this.edit(r,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(t,""),this.intro.length)return!0}trimStart(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;let r=this.content.replace(t,"");if(r.length){if(r!==this.content){let i=this.split(this.end-r.length);this.edited&&i.edit(r,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(t,""),this.outro.length)return!0}};function xR(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?e=>globalThis.btoa(unescape(encodeURIComponent(e))):typeof Buffer=="function"?e=>Buffer.from(e,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var kR=xR(),Ou=class{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=Mr(t.mappings),typeof t.x_google_ignoreList<"u"&&(this.x_google_ignoreList=t.x_google_ignoreList),typeof t.debugId<"u"&&(this.debugId=t.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+kR(this.toString())}};function ER(e){let t=e.split(`
|
|
203
|
+
`),r=t.filter(a=>/^\t+/.test(a)),i=t.filter(a=>/^ {2,}/.test(a));if(r.length===0&&i.length===0)return null;if(r.length>=i.length)return" ";let s=i.reduce((a,n)=>{let p=/^ +/.exec(n)[0].length;return Math.min(p,a)},1/0);return new Array(s+1).join(" ")}function SR(e,t){let r=e.split(/[/\\]/),i=t.split(/[/\\]/);for(r.pop();r[0]===i[0];)r.shift(),i.shift();if(r.length){let s=r.length;for(;s--;)r[s]=".."}return r.concat(i).join("/")}var CR=Object.prototype.toString;function TR(e){return CR.call(e)==="[object Object]"}function I1(e){let t=e.split(`
|
|
204
|
+
`),r=[];for(let i=0,s=0;i<t.length;i++)r.push(s),s+=t[i].length+1;return function(s){let a=0,n=r.length;for(;a<n;){let d=a+n>>1;s<r[d]?n=d:a=d+1}let p=a-1,u=s-r[p];return{line:p,column:u}}}var PR=/\w/,Du=class{constructor(t){this.hires=t,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(t,r,i,s){if(r.length){let a=r.length-1,n=r.indexOf(`
|
|
205
205
|
`,0),p=-1;for(;n>=0&&a>n;){let d=[this.generatedCodeColumn,t,i.line,i.column];s>=0&&d.push(s),this.rawSegments.push(d),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,p=n,n=r.indexOf(`
|
|
206
206
|
`,n+1)}let u=[this.generatedCodeColumn,t,i.line,i.column];s>=0&&u.push(s),this.rawSegments.push(u),this.advance(r.slice(p+1))}else this.pending&&(this.rawSegments.push(this.pending),this.advance(r));this.pending=null}addUneditedChunk(t,r,i,s,a){let n=r.start,p=!0,u=!1;for(;n<r.end;){if(i[n]===`
|
|
207
|
-
`)s.line+=1,s.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,p=!0,u=!1;else{if(this.hires||p||a.has(n)){let d=[this.generatedCodeColumn,t,s.line,s.column];this.hires==="boundary"?
|
|
207
|
+
`)s.line+=1,s.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,p=!0,u=!1;else{if(this.hires||p||a.has(n)){let d=[this.generatedCodeColumn,t,s.line,s.column];this.hires==="boundary"?PR.test(i[n])?u||(this.rawSegments.push(d),u=!0):(this.rawSegments.push(d),u=!1):this.rawSegments.push(d)}s.column+=1,this.generatedCodeColumn+=1,p=!1}n+=1}this.pending=null}advance(t){if(!t)return;let r=t.split(`
|
|
208
208
|
`);if(r.length>1){for(let i=0;i<r.length-1;i++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=r[r.length-1].length}},Rs=`
|
|
209
|
-
`,Bi={insertLeft:!1,insertRight:!1,storeName:!1},Hl=class e{constructor(t,r={}){let i=new Ul(0,t.length,t);Object.defineProperties(this,{original:{writable:!0,value:t},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:i},lastChunk:{writable:!0,value:i},lastSearchedChunk:{writable:!0,value:i},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:r.filename},indentExclusionRanges:{writable:!0,value:r.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new Fl},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:r.ignoreList},offset:{writable:!0,value:r.offset||0}}),this.byStart[0]=i,this.byEnd[t.length]=i}addSourcemapLocation(t){this.sourcemapLocations.add(t)}append(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.outro+=t,this}appendLeft(t,r){if(t=t+this.offset,typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);let i=this.byEnd[t];return i?i.appendLeft(r):this.intro+=r,this}appendRight(t,r){if(t=t+this.offset,typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);let i=this.byStart[t];return i?i.appendRight(r):this.outro+=r,this}clone(){let t=new e(this.original,{filename:this.filename,offset:this.offset}),r=this.firstChunk,i=t.firstChunk=t.lastSearchedChunk=r.clone();for(;r;){t.byStart[i.start]=i,t.byEnd[i.end]=i;let s=r.next,a=s&&s.clone();a&&(i.next=a,a.previous=i,i=a),r=s}return t.lastChunk=i,this.indentExclusionRanges&&(t.indentExclusionRanges=this.indentExclusionRanges.slice()),t.sourcemapLocations=new Fl(this.sourcemapLocations),t.intro=this.intro,t.outro=this.outro,t}generateDecodedMap(t){t=t||{};let r=0,i=Object.keys(this.storedNames),s=new Du(t.hires),a=I1(this.original);return this.intro&&s.advance(this.intro),this.firstChunk.eachNext(n=>{let p=a(n.start);n.intro.length&&s.advance(n.intro),n.edited?s.addEdit(r,n.content,p,n.storeName?i.indexOf(n.original):-1):s.addUneditedChunk(r,n,this.original,p,this.sourcemapLocations),n.outro.length&&s.advance(n.outro)}),this.outro&&s.advance(this.outro),{file:t.file?t.file.split(/[/\\]/).pop():void 0,sources:[t.source?
|
|
209
|
+
`,Bi={insertLeft:!1,insertRight:!1,storeName:!1},Hl=class e{constructor(t,r={}){let i=new Ul(0,t.length,t);Object.defineProperties(this,{original:{writable:!0,value:t},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:i},lastChunk:{writable:!0,value:i},lastSearchedChunk:{writable:!0,value:i},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:r.filename},indentExclusionRanges:{writable:!0,value:r.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new Fl},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:r.ignoreList},offset:{writable:!0,value:r.offset||0}}),this.byStart[0]=i,this.byEnd[t.length]=i}addSourcemapLocation(t){this.sourcemapLocations.add(t)}append(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.outro+=t,this}appendLeft(t,r){if(t=t+this.offset,typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);let i=this.byEnd[t];return i?i.appendLeft(r):this.intro+=r,this}appendRight(t,r){if(t=t+this.offset,typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);let i=this.byStart[t];return i?i.appendRight(r):this.outro+=r,this}clone(){let t=new e(this.original,{filename:this.filename,offset:this.offset}),r=this.firstChunk,i=t.firstChunk=t.lastSearchedChunk=r.clone();for(;r;){t.byStart[i.start]=i,t.byEnd[i.end]=i;let s=r.next,a=s&&s.clone();a&&(i.next=a,a.previous=i,i=a),r=s}return t.lastChunk=i,this.indentExclusionRanges&&(t.indentExclusionRanges=this.indentExclusionRanges.slice()),t.sourcemapLocations=new Fl(this.sourcemapLocations),t.intro=this.intro,t.outro=this.outro,t}generateDecodedMap(t){t=t||{};let r=0,i=Object.keys(this.storedNames),s=new Du(t.hires),a=I1(this.original);return this.intro&&s.advance(this.intro),this.firstChunk.eachNext(n=>{let p=a(n.start);n.intro.length&&s.advance(n.intro),n.edited?s.addEdit(r,n.content,p,n.storeName?i.indexOf(n.original):-1):s.addUneditedChunk(r,n,this.original,p,this.sourcemapLocations),n.outro.length&&s.advance(n.outro)}),this.outro&&s.advance(this.outro),{file:t.file?t.file.split(/[/\\]/).pop():void 0,sources:[t.source?SR(t.file||"",t.source):t.file||""],sourcesContent:t.includeContent?[this.original]:void 0,names:i,mappings:s.raw,x_google_ignoreList:this.ignoreList?[r]:void 0}}generateMap(t){return new Ou(this.generateDecodedMap(t))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=ER(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?" ":this.indentStr}indent(t,r){let i=/^[^\r\n]/gm;if(TR(t)&&(r=t,t=void 0),t===void 0&&(this._ensureindentStr(),t=this.indentStr||" "),t==="")return this;r=r||{};let s={};r.exclude&&(typeof r.exclude[0]=="number"?[r.exclude]:r.exclude).forEach(m=>{for(let h=m[0];h<m[1];h+=1)s[h]=!0});let a=r.indentStart!==!1,n=d=>a?`${t}${d}`:(a=!0,d);this.intro=this.intro.replace(i,n);let p=0,u=this.firstChunk;for(;u;){let d=u.end;if(u.edited)s[p]||(u.content=u.content.replace(i,n),u.content.length&&(a=u.content[u.content.length-1]===`
|
|
210
210
|
`));else for(p=u.start;p<d;){if(!s[p]){let m=this.original[p];m===`
|
|
211
|
-
`?a=!0:m!=="\r"&&a&&(a=!1,p===u.start||(this._splitChunk(u,p),u=u.next),u.prependRight(t))}p+=1}p=u.end,u=u.next}return this.outro=this.outro.replace(i,n),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(t,r){return Bi.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),Bi.insertLeft=!0),this.appendLeft(t,r)}insertRight(t,r){return Bi.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),Bi.insertRight=!0),this.prependRight(t,r)}move(t,r,i){if(t=t+this.offset,r=r+this.offset,i=i+this.offset,i>=t&&i<=r)throw new Error("Cannot move a selection inside itself");this._split(t),this._split(r),this._split(i);let s=this.byStart[t],a=this.byEnd[r],n=s.previous,p=a.next,u=this.byStart[i];if(!u&&a===this.lastChunk)return this;let d=u?u.previous:this.lastChunk;return n&&(n.next=p),p&&(p.previous=n),d&&(d.next=s),u&&(u.previous=a),s.previous||(this.firstChunk=a.next),a.next||(this.lastChunk=s.previous,this.lastChunk.next=null),s.previous=d,a.next=u||null,d||(this.firstChunk=s),u||(this.lastChunk=a),this}overwrite(t,r,i,s){return s=s||{},this.update(t,r,i,{...s,overwrite:!s.contentOnly})}update(t,r,i,s){if(t=t+this.offset,r=r+this.offset,typeof i!="string")throw new TypeError("replacement content must be a string");if(this.original.length!==0){for(;t<0;)t+=this.original.length;for(;r<0;)r+=this.original.length}if(r>this.original.length)throw new Error("end is out of bounds");if(t===r)throw new Error("Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead");this._split(t),this._split(r),s===!0&&(Bi.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),Bi.storeName=!0),s={storeName:!0});let a=s!==void 0?s.storeName:!1,n=s!==void 0?s.overwrite:!1;if(a){let d=this.original.slice(t,r);Object.defineProperty(this.storedNames,d,{writable:!0,value:!0,enumerable:!0})}let p=this.byStart[t],u=this.byEnd[r];if(p){let d=p;for(;d!==u;){if(d.next!==this.byStart[d.end])throw new Error("Cannot overwrite across a split point");d=d.next,d.edit("",!1)}p.edit(i,a,!n)}else{let d=new Ul(t,r,"").edit(i,a);u.next=d,d.previous=u}return this}prepend(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.intro=t+this.intro,this}prependLeft(t,r){if(t=t+this.offset,typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);let i=this.byEnd[t];return i?i.prependLeft(r):this.intro=r+this.intro,this}prependRight(t,r){if(t=t+this.offset,typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);let i=this.byStart[t];return i?i.prependRight(r):this.outro=r+this.outro,this}remove(t,r){if(t=t+this.offset,r=r+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;r<0;)r+=this.original.length}if(t===r)return this;if(t<0||r>this.original.length)throw new Error("Character is out of bounds");if(t>r)throw new Error("end must be greater than start");this._split(t),this._split(r);let i=this.byStart[t];for(;i;)i.intro="",i.outro="",i.edit(""),i=r>i.end?this.byStart[i.end]:null;return this}reset(t,r){if(t=t+this.offset,r=r+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;r<0;)r+=this.original.length}if(t===r)return this;if(t<0||r>this.original.length)throw new Error("Character is out of bounds");if(t>r)throw new Error("end must be greater than start");this._split(t),this._split(r);let i=this.byStart[t];for(;i;)i.reset(),i=r>i.end?this.byStart[i.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let t=this.lastChunk;do{if(t.outro.length)return t.outro[t.outro.length-1];if(t.content.length)return t.content[t.content.length-1];if(t.intro.length)return t.intro[t.intro.length-1]}while(t=t.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let t=this.outro.lastIndexOf(Rs);if(t!==-1)return this.outro.substr(t+1);let r=this.outro,i=this.lastChunk;do{if(i.outro.length>0){if(t=i.outro.lastIndexOf(Rs),t!==-1)return i.outro.substr(t+1)+r;r=i.outro+r}if(i.content.length>0){if(t=i.content.lastIndexOf(Rs),t!==-1)return i.content.substr(t+1)+r;r=i.content+r}if(i.intro.length>0){if(t=i.intro.lastIndexOf(Rs),t!==-1)return i.intro.substr(t+1)+r;r=i.intro+r}}while(i=i.previous);return t=this.intro.lastIndexOf(Rs),t!==-1?this.intro.substr(t+1)+r:this.intro+r}slice(t=0,r=this.original.length-this.offset){if(t=t+this.offset,r=r+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;r<0;)r+=this.original.length}let i="",s=this.firstChunk;for(;s&&(s.start>t||s.end<=t);){if(s.start<r&&s.end>=r)return i;s=s.next}if(s&&s.edited&&s.start!==t)throw new Error(`Cannot use replaced character ${t} as slice start anchor.`);let a=s;for(;s;){s.intro&&(a!==s||s.start===t)&&(i+=s.intro);let n=s.start<r&&s.end>=r;if(n&&s.edited&&s.end!==r)throw new Error(`Cannot use replaced character ${r} as slice end anchor.`);let p=a===s?t-s.start:0,u=n?s.content.length+r-s.end:s.content.length;if(i+=s.content.slice(p,u),s.outro&&(!n||s.end===r)&&(i+=s.outro),n)break;s=s.next}return i}snip(t,r){let i=this.clone();return i.remove(0,t),i.remove(r,i.original.length),i}_split(t){if(this.byStart[t]||this.byEnd[t])return;let r=this.lastSearchedChunk,i=r,s=t>r.end;for(;r;){if(r.contains(t))return this._splitChunk(r,t);if(r=s?this.byStart[r.end]:this.byEnd[r.start],r===i)return;i=r}}_splitChunk(t,r){if(t.edited&&t.content.length){let s=I1(this.original)(r);throw new Error(`Cannot split a chunk that has already been edited (${s.line}:${s.column} \u2013 "${t.original}")`)}let i=t.split(r);return this.byEnd[r]=t,this.byStart[r]=i,this.byEnd[i.end]=i,t===this.lastChunk&&(this.lastChunk=i),this.lastSearchedChunk=t,!0}toString(){let t=this.intro,r=this.firstChunk;for(;r;)t+=r.toString(),r=r.next;return t+this.outro}isEmpty(){let t=this.firstChunk;do if(t.intro.length&&t.intro.trim()||t.content.length&&t.content.trim()||t.outro.length&&t.outro.trim())return!1;while(t=t.next);return!0}length(){let t=this.firstChunk,r=0;do r+=t.intro.length+t.content.length+t.outro.length;while(t=t.next);return r}trimLines(){return this.trim("[\\r\\n]")}trim(t){return this.trimStart(t).trimEnd(t)}trimEndAborted(t){let r=new RegExp((t||"\\s")+"+$");if(this.outro=this.outro.replace(r,""),this.outro.length)return!0;let i=this.lastChunk;do{let s=i.end,a=i.trimEnd(r);if(i.end!==s&&(this.lastChunk===i&&(this.lastChunk=i.next),this.byEnd[i.end]=i,this.byStart[i.next.start]=i.next,this.byEnd[i.next.end]=i.next),a)return!0;i=i.previous}while(i);return!1}trimEnd(t){return this.trimEndAborted(t),this}trimStartAborted(t){let r=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(r,""),this.intro.length)return!0;let i=this.firstChunk;do{let s=i.end,a=i.trimStart(r);if(i.end!==s&&(i===this.lastChunk&&(this.lastChunk=i.next),this.byEnd[i.end]=i,this.byStart[i.next.start]=i.next,this.byEnd[i.next.end]=i.next),a)return!0;i=i.next}while(i);return!1}trimStart(t){return this.trimStartAborted(t),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(t,r){function i(a,n){return typeof r=="string"?r.replace(/\$(\$|&|\d+)/g,(p,u)=>u==="$"?"$":u==="&"?a[0]:+u<a.length?a[+u]:`$${u}`):r(...a,a.index,n,a.groups)}function s(a,n){let p,u=[];for(;p=a.exec(n);)u.push(p);return u}if(t.global)s(t,this.original).forEach(n=>{if(n.index!=null){let p=i(n,this.original);p!==n[0]&&this.overwrite(n.index,n.index+n[0].length,p)}});else{let a=this.original.match(t);if(a&&a.index!=null){let n=i(a,this.original);n!==a[0]&&this.overwrite(a.index,a.index+a[0].length,n)}}return this}_replaceString(t,r){let{original:i}=this,s=i.indexOf(t);return s!==-1&&(typeof r=="function"&&(r=r(t,s,i)),t!==r&&this.overwrite(s,s+t.length,r)),this}replace(t,r){return typeof t=="string"?this._replaceString(t,r):this._replaceRegexp(t,r)}_replaceAllString(t,r){let{original:i}=this,s=t.length;for(let a=i.indexOf(t);a!==-1;a=i.indexOf(t,a+s)){let n=i.slice(a,a+s),p=r;typeof r=="function"&&(p=r(n,a,i)),n!==p&&this.overwrite(a,a+s,p)}return this}replaceAll(t,r){if(typeof t=="string")return this._replaceAllString(t,r);if(!t.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(t,r)}};var PR=/^[\w+.-]+:\/\//,AR=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,$R=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function RR(e){return PR.test(e)}function qR(e){return e.startsWith("//")}function L1(e){return e.startsWith("/")}function IR(e){return e.startsWith("file:")}function N1(e){return/^[.?#]/.test(e)}function Vl(e){let t=AR.exec(e);return O1(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/",t[6]||"",t[7]||"")}function NR(e){let t=$R.exec(e),r=t[2];return O1("file:","",t[1]||"","",L1(r)?r:"/"+r,t[3]||"",t[4]||"")}function O1(e,t,r,i,s,a,n){return{scheme:e,user:t,host:r,port:i,path:s,query:a,hash:n,type:7}}function M1(e){if(qR(e)){let r=Vl("http:"+e);return r.scheme="",r.type=6,r}if(L1(e)){let r=Vl("http://foo.com"+e);return r.scheme="",r.host="",r.type=5,r}if(IR(e))return NR(e);if(RR(e))return Vl(e);let t=Vl("http://foo.com/"+e);return t.scheme="",t.host="",t.type=e?e.startsWith("?")?3:e.startsWith("#")?2:4:1,t}function MR(e){if(e.endsWith("/.."))return e;let t=e.lastIndexOf("/");return e.slice(0,t+1)}function LR(e,t){D1(t,t.type),e.path==="/"?e.path=t.path:e.path=MR(t.path)+e.path}function D1(e,t){let r=t<=4,i=e.path.split("/"),s=1,a=0,n=!1;for(let u=1;u<i.length;u++){let d=i[u];if(!d){n=!0;continue}if(n=!1,d!=="."){if(d===".."){a?(n=!0,a--,s--):r&&(i[s++]=d);continue}i[s++]=d,a++}}let p="";for(let u=1;u<s;u++)p+="/"+i[u];(!p||n&&!p.endsWith("/.."))&&(p+="/"),e.path=p}function B1(e,t){if(!e&&!t)return"";let r=M1(e),i=r.type;if(t&&i!==7){let a=M1(t),n=a.type;switch(i){case 1:r.hash=a.hash;case 2:r.query=a.query;case 3:case 4:LR(r,a);case 5:r.user=a.user,r.host=a.host,r.port=a.port;case 6:r.scheme=a.scheme}n>i&&(i=n)}D1(r,i);let s=r.query+r.hash;switch(i){case 2:case 3:return s;case 4:{let a=r.path.slice(1);return a?N1(t||e)&&!N1(a)?"./"+a+s:a+s:s||"."}case 5:return r.path+s;default:return r.scheme+"//"+r.user+r.host+r.port+r.path+s}}function OR(e){if(!e)return"";let t=e.lastIndexOf("/");return e.slice(0,t+1)}function DR(e,t){let r=OR(e),i=t?t+"/":"";return s=>B1(i+(s||""),r)}var $r=0;function BR(e,t){let r=j1(e,0);if(r===e.length)return e;t||(e=e.slice());for(let i=r;i<e.length;i=j1(e,i+1))e[i]=FR(e[i],t);return e}function j1(e,t){for(let r=t;r<e.length;r++)if(!jR(e[r]))return r;return e.length}function jR(e){for(let t=1;t<e.length;t++)if(e[t][$r]<e[t-1][$r])return!1;return!0}function FR(e,t){return t||(e=e.slice()),e.sort(UR)}function UR(e,t){return e[$r]-t[$r]}var zl=!1;function HR(e,t,r,i){for(;r<=i;){let s=r+(i-r>>1),a=e[s][$r]-t;if(a===0)return zl=!0,s;a<0?r=s+1:i=s-1}return zl=!1,r-1}function VR(e,t,r){for(let i=r+1;i<e.length&&e[i][$r]===t;r=i++);return r}function zR(e,t,r){for(let i=r-1;i>=0&&e[i][$r]===t;r=i--);return r}function WR(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function GR(e,t,r,i){let{lastKey:s,lastNeedle:a,lastIndex:n}=r,p=0,u=e.length-1;if(i===s){if(t===a)return zl=n!==-1&&e[n][$r]===t,n;t>=a?p=n===-1?0:n:u=n}return r.lastKey=i,r.lastNeedle=t,r.lastIndex=HR(e,t,p,u)}function KR(e){return typeof e=="string"?JSON.parse(e):e}var F1=-1,XR=1,Wl=class{constructor(e,t){let r=typeof e=="string";if(!r&&e._decodedMemo)return e;let i=KR(e),{version:s,file:a,names:n,sourceRoot:p,sources:u,sourcesContent:d}=i;this.version=s,this.file=a,this.names=n||[],this.sourceRoot=p,this.sources=u,this.sourcesContent=d,this.ignoreList=i.ignoreList||i.x_google_ignoreList||void 0;let m=DR(t,p);this.resolvedSources=u.map(m);let{mappings:h}=i;if(typeof h=="string")this._encoded=h,this._decoded=void 0;else if(Array.isArray(h))this._encoded=void 0,this._decoded=BR(h,r);else throw i.sections?new Error("TraceMap passed sectioned source map, please use FlattenMap export instead"):new Error(`invalid source map: ${JSON.stringify(i)}`);this._decodedMemo=WR(),this._bySources=void 0,this._bySourceMemos=void 0}};function Gl(e){var t;return(t=e)._decoded||(t._decoded=yc(e._encoded))}function U1(e,t,r){let i=Gl(e);if(t>=i.length)return null;let s=i[t],a=JR(s,e._decodedMemo,t,r,XR);return a===-1?null:s[a]}function JR(e,t,r,i,s){let a=GR(e,i,t,r);return zl?a=(s===F1?VR:zR)(e,i,a):s===F1&&a++,a===-1||a===e.length?-1:a}var Bu=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function V1(e,t){return e._indexes[t]}function qs(e,t){let r=V1(e,t);if(r!==void 0)return r;let{array:i,_indexes:s}=e,a=i.push(t);return s[t]=a-1}function YR(e,t){let r=V1(e,t);if(r===void 0)return;let{array:i,_indexes:s}=e;for(let a=r+1;a<i.length;a++){let n=i[a];i[a-1]=n,s[n]--}s[t]=void 0,i.pop()}var ZR=0,QR=1,eq=2,tq=3,rq=4,z1=-1,W1=class{constructor({file:e,sourceRoot:t}={}){this._names=new Bu,this._sources=new Bu,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=t,this._ignoreList=new Bu}};var G1=(e,t,r,i,s,a,n,p)=>iq(!0,e,t,r,i,s,a,n,p);function K1(e,t,r){let{_sources:i,_sourcesContent:s}=e,a=qs(i,t);s[a]=r}function X1(e,t,r=!0){let{_sources:i,_sourcesContent:s,_ignoreList:a}=e,n=qs(i,t);n===s.length&&(s[n]=null),r?qs(a,n):YR(a,n)}function ju(e){let{_mappings:t,_sources:r,_sourcesContent:i,_names:s,_ignoreList:a}=e;return nq(t),{version:3,file:e.file||void 0,names:s.array,sourceRoot:e.sourceRoot||void 0,sources:r.array,sourcesContent:i,mappings:t,ignoreList:a.array}}function J1(e){let t=ju(e);return Object.assign({},t,{mappings:Mr(t.mappings)})}function iq(e,t,r,i,s,a,n,p,u){let{_mappings:d,_sources:m,_sourcesContent:h,_names:_}=t,v=sq(d,r),E=aq(v,i);if(!s)return e&&oq(v,E)?void 0:H1(v,E,[i]);let l=qs(m,s),o=p?qs(_,p):z1;if(l===h.length&&(h[l]=u??null),!(e&&lq(v,E,l,a,n,o)))return H1(v,E,p?[i,l,a,n,o]:[i,l,a,n])}function sq(e,t){for(let r=e.length;r<=t;r++)e[r]=[];return e[t]}function aq(e,t){let r=e.length;for(let i=r-1;i>=0;r=i--){let s=e[i];if(t>=s[ZR])break}return r}function H1(e,t,r){for(let i=e.length;i>t;i--)e[i]=e[i-1];e[t]=r}function nq(e){let{length:t}=e,r=t;for(let i=r-1;i>=0&&!(e[i].length>0);r=i,i--);r<t&&(e.length=r)}function oq(e,t){return t===0?!0:e[t-1].length===1}function lq(e,t,r,i,s,a){if(t===0)return!1;let n=e[t-1];return n.length===1?!1:r===n[QR]&&i===n[eq]&&s===n[tq]&&a===(n.length===5?n[rq]:z1)}var Y1=Z1("",-1,-1,"",null,!1),cq=[];function Z1(e,t,r,i,s,a){return{source:e,line:t,column:r,name:i,content:s,ignore:a}}function Q1(e,t,r,i,s){return{map:e,sources:t,source:r,content:i,ignore:s}}function ex(e,t){return Q1(e,t,"",null,!1)}function pq(e,t,r){return Q1(null,cq,e,t,r)}function uq(e){let t=new W1({file:e.map.file}),{sources:r,map:i}=e,s=i.names,a=Gl(i);for(let n=0;n<a.length;n++){let p=a[n];for(let u=0;u<p.length;u++){let d=p[u],m=d[0],h=Y1;if(d.length!==1){let k=r[d[1]];if(h=tx(k,d[2],d[3],d.length===5?s[d[4]]:""),h==null)continue}let{column:_,line:v,name:E,content:l,source:o,ignore:g}=h;G1(t,n,m,o,v,_,E),o&&l!=null&&K1(t,o,l),g&&X1(t,o,!0)}}return t}function tx(e,t,r,i){if(!e.map)return Z1(e.source,t,r,i,e.content,e.ignore);let s=U1(e.map,t,r);return s==null?null:s.length===1?Y1:tx(e.sources[s[1]],s[2],s[3],s.length===5?e.map.names[s[4]]:i)}function dq(e){return Array.isArray(e)?e:[e]}function fq(e,t){let r=dq(e).map(a=>new Wl(a,"")),i=r.pop();for(let a=0;a<r.length;a++)if(r[a].sources.length>1)throw new Error(`Transformation map ${a} must have exactly one source file.
|
|
212
|
-
Did you specify these with the most recent transformation maps first?`);let s=rx(i,t,"",0);for(let a=r.length-1;a>=0;a--)s=ex(r[a],[s]);return s}function rx(e,t,r,i){let{resolvedSources:s,sourcesContent:a,ignoreList:n}=e,p=i+1,u=s.map((d,m)=>{let h={importer:r,depth:p,source:d||"",content:void 0,ignore:void 0},_=t(h.source,h),{source:v,content:E,ignore:l}=h;if(_)return rx(new Wl(_,v),t,v,p);let o=E!==void 0?E:a?a[m]:null,g=l!==void 0?l:n?n.includes(m):!1;return
|
|
213
|
-
/*# sourceMappingURL=${n.map.toUrl()} */`),n}var bq={_:(e,t)=>{t.state.code.addSourcemapLocation(e.start),t.state.code.addSourcemapLocation(e.end),t.next()},Atrule(e,{state:t,next:r,path:i}){if(Pi(e)){let s=e.start+e.name.length+1;for(;t.code.original[s]===" ";)s+=1;let a=s;for(;t.code.original[a]!=="{"&&t.code.original[a]!==" ";)a+=1;e.prelude.startsWith("-global-")?t.code.remove(s,s+8):Xl(i)||t.code.prependRight(s,`${t.hash}-`);return}r()},Declaration(e,{state:t}){let r=e.property&&jp(e.property.toLowerCase());if(r==="animation"||r==="animation-name"){let i=e.start+e.property.length+1,s="";for(;i<t.code.original.length;){let a=t.code.original[i];if(Nb.test(a)){if(t.keyframes.includes(s)&&t.code.prependRight(i-s.length,`${t.hash}-`),a===";"||a==="}")break;s=""}else s+=a;i++}}else if(t.minify&&(Jl(e.start,t),!e.property.startsWith("--"))){let i=e.start+e.property.length+1,s=i;for(;/\s/.test(t.code.original[s]);)s++;s>i&&t.code.remove(i,s)}},Rule(e,{state:t,next:r,visit:i,path:s}){if(t.minify&&(Jl(e.start,t),Jl(e.block.end-1,t)),!F&&lx(e,Xl(s))){t.minify?t.code.remove(e.start,e.end):(t.code.prependRight(e.start,"/* (empty) "),t.code.appendLeft(e.end,"*/"),ox(e,t.code));return}if(!cx(e)&&!Xl(s)){t.minify?t.code.remove(e.start,e.end):(t.code.prependRight(e.start,"/* (unused) "),t.code.appendLeft(e.end,"*/"),ox(e,t.code));return}if(e.metadata.is_global_block){let a=e.prelude.children[0];if(e.prelude.children.length===1&&a.children.length===1&&a.children[0].selectors.length===1){t.minify?(t.code.remove(e.start,e.block.start+1),t.code.remove(e.block.end-1,e.end)):(t.code.prependRight(e.start,"/* "),t.code.appendLeft(e.block.start+1,"*/"),t.code.prependRight(e.block.end-1,"/*"),t.code.appendLeft(e.block.end,"*/")),i(e.block);return}}r()},SelectorList(e,{state:t,next:r,path:i}){let s=i.at(-1);if((!Xl(i)||e.children.length>1&&s?.type==="Rule"&&s.metadata.is_global_block)&&!i.find(n=>n.type==="ComplexSelector"&&!n.metadata.used)){let n=e.children,p=!1,u=n[0].start,d=u,m=!1;for(let h=0;h<n.length;h+=1){let _=n[h];if(_.metadata.used===p){if(p){let v=_.start;for(;t.code.original[v]!==",";)v--;t.minify?t.code.remove(u,m?v:v+1):t.code.appendRight(m?v:v+1,"*/")}else h===0?t.minify?u=_.start:t.code.prependRight(_.start,"/* (unused) "):t.minify?u=d:t.code.overwrite(d,_.start," /* (unused) ");p=!p}!p&&_.metadata.used&&(m=!0),d=_.end}p&&(t.minify?t.code.remove(u,d):t.code.appendLeft(d,"*/"))}let a=t.specificity;if(s?.type==="Rule"){a={bumped:!1};let n=s.metadata.parent_rule;for(;n;){if(n.metadata.has_local_selectors){a={bumped:!0};break}n=n.metadata.parent_rule}}r({...t,specificity:a})},ComplexSelector(e,t){let r=t.state.specificity.bumped;for(let i of e.children){if(i.metadata.is_global){let s=i.selectors[0];nx(s,i.combinator,t.state);let a=e.metadata.rule?.metadata.parent_rule;if(a&&s.args===null&&(i.combinator===null&&t.state.code.prependRight(s.start,"&"),a.prelude.children.length>1&&e.children.length===e.children.findIndex(n=>n===i)-1)){let n=a.prelude.children.find(p=>p.start>s.end);n&&n.metadata.used&&t.state.code.update(s.end,n.start,"")}continue}else for(let s of i.selectors)s.type==="PseudoClassSelector"&&s.name==="global"&&nx(s,null,t.state);if(i.metadata.scoped){if(i.selectors.length===1){let n=i.selectors[0];if(n.type==="PseudoClassSelector"&&(n.name==="is"||n.name==="where"))continue}if(i.selectors.some(n=>n.type==="NestingSelector"))continue;let s=t.state.selector;t.state.specificity.bumped&&(s=`:where(${s})`),t.state.specificity.bumped=!0;let a=i.selectors.length;for(;a--;){let n=i.selectors[a];if(n.type==="PseudoElementSelector"||n.type==="PseudoClassSelector"){n.name!=="root"&&n.name!=="host"&&a===0&&t.state.code.prependRight(n.start,s);continue}n.type==="TypeSelector"&&n.name==="*"&&n.namespace===void 0?t.state.code.update(n.start,n.end,s):t.state.code.appendLeft(n.end,s);break}}}t.next(),t.state.specificity.bumped=r},PseudoClassSelector(e,t){(e.name==="is"||e.name==="where"||e.name==="has"||e.name==="not")&&t.next()},PseudoElementSelector(){}};function Xl(e){return e.some(t=>t.type==="Rule"&&t.metadata.is_global_block)}function nx(e,t,r){if(e.args===null){let i=e.start;if(t?.name===" ")for(;/\s/.test(r.code.original[i-1]);)i--;r.code.update(i,e.start+7,"")}else r.code.remove(e.start,e.start+8).remove(e.end-1,e.end)}function Jl(e,t){let r=e;for(;/\s/.test(t.code.original[r-1]);)r--;r<e&&t.code.remove(r,e)}function lx(e,t){if(e.metadata.is_global_block)return e.block.children.length===0;for(let r of e.block.children)if(r.type==="Declaration"||r.type==="Rule"&&(cx(r)||t)&&!lx(r,t)||r.type==="Atrule"&&(r.block===null||r.block.children.length>0))return!1;return!0}function cx(e){return e.prelude.children.some(t=>t.metadata.used)}function ox(e,t){let r=!1,i=!1;for(let s=e.start;s<e.end;s++)if(r)r=!1;else{let a=t.original[s];i?a==="*"&&t.original[s+1]==="/"&&(t.prependRight(++s,"\\"),i=!1):a==="\\"?r=!0:a==="/"&&t.original[++s]==="*"&&(i=!0)}}function Yl(e,t,r){if(e.left.type==="ArrayPattern"||e.left.type==="ObjectPattern"||e.left.type==="RestElement"){let i=t.visit(e.right),s=i.type!=="Identifier",a=s?w("$$value"):i,n=!1,{inserts:p,paths:u}=Xe(e.left,a);for(let{id:_}of p)_.name=t.state.scope.generate("$$array");let d=u.map(_=>{let v=_.expression,E=r("=",_.node,v,t);return E!==null&&(n=!0),E??ee("=",t.visit(_.node),t.visit(v))});if(!n)return null;let m=t.path.at(-1).type.endsWith("Statement");if(p.length>0||s){let _=[...p.map(({id:o,value:g})=>te(o,g)),...d.map($)];m||_.push(le(a));let v=we(i)||d.some(o=>we(o)),E=j([a],M(_),v),l=y(E,i);return v?et(l):l}let h=Oe(d);return m||h.expressions.push(a),h}if(e.left.type!=="Identifier"&&e.left.type!=="MemberExpression")throw new Error(`Unexpected assignment type ${e.left.type}`);return r(e.operator,e.left,e.right,t)}function px(e,t){return Yl(e,t,yq)??t.next()}function yq(e,t,r,i){if(i.state.analysis.runes&&t.type==="MemberExpression"&&t.object.type==="ThisExpression"&&!t.computed){let n=Ye(t.property),p=n&&i.state.state_fields.get(n);if(p&&p.node.type==="AssignmentExpression"&&t===p.node.left){let u=he(r,i.state.scope);if(u){let d=t.property.type==="PrivateIdentifier"||u==="$state"||u==="$state.raw"?t.property:p.key;return ee(e,X(rt,d,d.type==="Literal"),i.visit(r))}}else if(p&&(p.type==="$derived"||p.type==="$derived.by")&&t.property.type==="PrivateIdentifier"){let u=i.visit(Xr(e,t,r));return y(X(rt,n),u)}}let s=t;for(;s.type==="MemberExpression";)s=s.object;if(s.type!=="Identifier")return null;if(gq(s.name)){let n=s.name.slice(1);if(!i.state.scope.get(n))return null;if(s===t){let p=i.visit(Xr(e,t,r));return y("$.store_set",w(n),p)}return y("$.store_mutate",ee("??=",w("$$store_subs"),J([])),T(s.name),w(n),ee(e,i.visit(t),i.visit(r)))}if(i.state.scope.get(s.name)?.kind==="derived"&&s===t){let n=i.visit(Xr(e,t,r));return y(s,n)}return null}function gq(e){return e[0]==="$"&&/[A-Za-z_]/.test(e[1])}var vq=/[&"<]/g,wq=/[&<]/g;function Gt(e,t){let r=String(e??""),i=t?vq:wq;i.lastIndex=0;let s="",a=0;for(;i.test(r);){let n=i.lastIndex-1,p=r[n];s+=r.substring(a,n)+(p==="&"?"&":p==='"'?""":"<"),a=n+1}return s+r.substring(a)}var ux=`<!--${"["}-->`,dx=`<!--${"[!"}-->`,fx=`<!--${"]"}-->`,mx="<!---->";var yt=T(ux),ii=T(dx),Ge=T(fx),nr=T(mx);function or(e,{visit:t,state:r}){let i=[];function s(){if(i.length===0)return;let a=Et("",!1),n=[a],p=[];for(let u=0;u<i.length;u++){let d=i[u];if(d.type==="Text"||d.type==="Comment")a.value.cooked+=d.type==="Comment"?`<!--${d.data}-->`:Gt(d.data);else{let m=r.scope.evaluate(d.expression);m.is_known?a.value.cooked+=Gt((m.value??"")+""):(p.push(y("$.escape",t(d.expression,r))),a=Et("",u+1===i.length),n.push(a))}}for(let u of n)u.value.raw=Vr(u.value.cooked);r.template.push(gr(n,p)),i=[]}for(let a of e)if(a.type==="ExpressionTag"&&a.metadata.expression.is_async()){s();let n=t(a.expression,r),p=y("$$renderer.push",O(y("$.escape",n),a.metadata.expression.has_await)),u=a.metadata.expression.blockers();u.elements.length>0&&(p=y("$$renderer.async",u,j([w("$$renderer")],p))),r.template.push($(p))}else a.type==="Text"||a.type==="Comment"||a.type==="ExpressionTag"?i.push(a):(s(),t(a,{...r}));s()}function Sq(e){return e.type.endsWith("Statement")||e.type.endsWith("Declaration")}function je(e){let t=[],r=[],i=[],s=()=>{i.push($(y(w("$$renderer.push"),gr(t.map((a,n)=>Et(a,n===t.length-1)),r)))),t=[],r=[]};for(let a=0;a<e.length;a++){let n=e[a];Sq(n)?(t.length!==0&&s(),i.push(n)):(t.length===0&&t.push(""),n.type==="Literal"?t[t.length-1]+=n.value:n.type==="TemplateLiteral"?(t[t.length-1]+=n.quasis[0].value.cooked,t.push(...n.quasis.slice(1).map(p=>p.value.cooked)),r.push(...n.expressions)):(r.push(n),t.push("")))}return t.length!==0&&s(),i}function Fi(e,t){let r=e.body[0];if(r?.type==="ExpressionStatement"&&r.expression.type==="CallExpression"&&r.expression.callee.type==="Identifier"&&r.expression.callee.name==="$$renderer.push"&&r.expression.arguments.length===1&&r.expression.arguments[0].type==="TemplateLiteral"){let i=r.expression.arguments[0].quasis[0];i.value.cooked=t+i.value.cooked,i.value.raw=t+i.value.raw;return}e.body.unshift($(y(w("$$renderer.push"),T(t))))}function Ze(e,t,r,i=!1,s=!1){if(e===!0)return Z;if(!Array.isArray(e)||e.length===1){let u=Array.isArray(e)?e[0]:e;if(u.type==="Text"){let d=i?u.data.replace(Xi," ").trim():u.data;return T(s?d:Gt(d,!0))}return r(t.visit(u.expression),u.metadata.expression)}let a=Et("",!1),n=[a],p=[];for(let u=0;u<e.length;u++){let d=e[u];if(d.type==="Text")a.value.cooked+=i?d.data.replace(Xi," "):d.data;else{let m=t.state.scope.evaluate(d.expression);if(m.is_known)a.value.cooked+=(m.value??"")+"";else{let h=r(t.visit(d.expression),d.metadata.expression);p.push(m.is_string&&m.is_defined?h:y("$.stringify",h)),a=Et("",u+1===e.length),n.push(a)}}}for(let u of n)u.value.raw=Vr(u.value.cooked);return p.length>0?gr(n,p):T(a.value.cooked)}function Hu(e,t){let r=t.scope.get(e.name);if(r===null||e===r.node)return e;if(r.kind==="store_sub"){let i=w(e.name.slice(1));return y("$.store_get",ee("??=",w("$$store_subs"),J([])),T(e.name),Hu(i,t))}return r.kind==="derived"?(r.declaration_kind==="var"?Bt:y)(e):e}function pt(e,t,r){if(t.elements.length===0&&!r)return e;let i=j([w("$$renderer")],M(e),r);return t.elements.length>0?[$(y("$$renderer.async_block",t,i))]:[$(y("$$renderer.child_block",i))]}var bt=class{expressions=[];has_await=!1;#e=new Set;transform=(t,r)=>{if(this.check_blockers(r),r.has_await){this.has_await=!0;let i=this.expressions.push(t);return w(`$$${i-1}`)}return t};check_blockers(t){for(let r of t.references)r.blocker&&this.#e.add(r.blocker)}#t(){if(this.expressions.length===0)return ce;if(this.expressions.length===1)return ge("$$0",this.expressions[0]);let t=z(this.expressions.map(r=>r.type==="AwaitExpression"&&!Ft(r.argument)?r.argument:y(O(r,!0))));return ge(br(this.expressions.map((r,i)=>w(`$$${i}`))),tr(y("Promise.all",t)))}blockers(){return z([...this.#e])}is_async(){return this.expressions.length>0||this.#e.size>0}render(t){if(!this.is_async())return t;let r=j([w("$$renderer")],M([this.#t(),...t]),this.has_await),i=this.blockers();return i.elements.length>0?[$(y("$$renderer.async",i,r))]:[$(y("$$renderer.child",r))]}render_block(t){return this.is_async()?pt([this.#t(),...t],this.blockers(),this.has_await):t}};function hx(e,t){let r=t.visit(e.expression);e.metadata.expression.has_await&&(r=y(j([],r,!0)));let i=$(y("$.await",w("$$renderer"),r,O(e.pending?t.visit(e.pending):M([])),j(e.value?[t.visit(e.value)]:[],e.then?t.visit(e.then):M([]))));t.state.template.push(...pt([i],e.metadata.expression.blockers(),e.metadata.expression.has_await),Ge)}function _x(e,t){let r=t.visit(e.argument);if(t.state.analysis.pickled_awaits.has(e))return tr(r);let i=t.path.length;for(;i--;){let s=t.path[i];if(s.type==="ArrowFunctionExpression"||s.type==="FunctionExpression"||s.type==="FunctionDeclaration")break;if(s.metadata){if(s.type!=="ExpressionTag"&&s.type!=="Fragment")return tr(r);break}}return r===e.argument?e:{...e,argument:r}}function Cq(e,t){let r=[],i=new Map;for(let u of e)if(u.type==="ConstTag"){let d=u.declaration.declarations[0],m=ue(d.id).map(_=>t.scope.get(_.name)),h=new Set;re(d.init,t,{_:Ti,Identifier(_,v){let E=v.path.at(-1);if(Ve(_,E)){let l=v.state.scope.get(_.name);l&&h.add(l)}}});for(let _ of m)i.set(_,{node:u,deps:h})}else r.push(u);if(i.size===0)return e;let s=[];for(let[u,d]of i)for(let m of d.deps)i.has(m)&&s.push([u,m]);let a=ms(s);if(a?.length){let u=i.get(a[0]);Dh(u.node,a.map(d=>d.node.name).join(" \u2192 "))}let n=[];function p(u){if(!n.includes(u.node)){for(let d of u.deps){let m=i.get(d);m&&p(m)}n.push(u.node)}}for(let u of i.values())p(u);return[...n,...r]}function Rr(e,t,r,i="html",s,a,n){s.analysis.runes||(t=Cq(t,s));let p=[],u=[];for(let h of t)h.type==="Comment"&&!n||(h.type==="ConstTag"||h.type==="DeclarationTag"||h.type==="DebugTag"||h.type==="SvelteBody"||h.type==="SvelteWindow"||h.type==="SvelteDocument"||h.type==="SvelteHead"||h.type==="TitleElement"||h.type==="SnippetBlock"?p.push(h):u.push(h));let d=u;if(!a){d=[];let h,_;for(;(h=u[0])&&h.type==="Text"&&!Ot.test(h.data);)u.shift();for(h?.type==="Text"&&(h.raw=h.raw.replace(Or,""),h.data=h.data.replace(Or,""));(_=u.at(-1))&&_.type==="Text"&&!Ot.test(_.data);)u.pop();_?.type==="Text"&&(_.raw=_.raw.replace(pr,""),_.data=_.data.replace(pr,""));let v=i==="svg"&&(e.type!=="RegularElement"||e.name!=="text")&&!r.some(E=>E.type==="RegularElement"&&E.name==="text")||e.type==="RegularElement"&&(e.name==="select"||e.name==="tr"||e.name==="table"||e.name==="tbody"||e.name==="thead"||e.name==="tfoot"||e.name==="colgroup"||e.name==="datalist");for(let E=0;E<u.length;E++){let l=u[E-1],o=u[E],g=u[E+1];if(o.type==="Text"){if(l?.type!=="ExpressionTag"){let k=l?.type==="Text"&&pr.test(l.data);o.data=o.data.replace(Or,k?"":" "),o.raw=o.raw.replace(Or,k?"":" ")}g?.type!=="ExpressionTag"&&(o.data=o.data.replace(pr," "),o.raw=o.raw.replace(pr," ")),o.data&&(o.data!==" "||!v)&&d.push(o)}else d.push(o)}}var m=d[0];return e.type==="RegularElement"&&e.name==="pre"&&m?.type==="Text"&&(m.data===`
|
|
211
|
+
`?a=!0:m!=="\r"&&a&&(a=!1,p===u.start||(this._splitChunk(u,p),u=u.next),u.prependRight(t))}p+=1}p=u.end,u=u.next}return this.outro=this.outro.replace(i,n),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(t,r){return Bi.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),Bi.insertLeft=!0),this.appendLeft(t,r)}insertRight(t,r){return Bi.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),Bi.insertRight=!0),this.prependRight(t,r)}move(t,r,i){if(t=t+this.offset,r=r+this.offset,i=i+this.offset,i>=t&&i<=r)throw new Error("Cannot move a selection inside itself");this._split(t),this._split(r),this._split(i);let s=this.byStart[t],a=this.byEnd[r],n=s.previous,p=a.next,u=this.byStart[i];if(!u&&a===this.lastChunk)return this;let d=u?u.previous:this.lastChunk;return n&&(n.next=p),p&&(p.previous=n),d&&(d.next=s),u&&(u.previous=a),s.previous||(this.firstChunk=a.next),a.next||(this.lastChunk=s.previous,this.lastChunk.next=null),s.previous=d,a.next=u||null,d||(this.firstChunk=s),u||(this.lastChunk=a),this}overwrite(t,r,i,s){return s=s||{},this.update(t,r,i,{...s,overwrite:!s.contentOnly})}update(t,r,i,s){if(t=t+this.offset,r=r+this.offset,typeof i!="string")throw new TypeError("replacement content must be a string");if(this.original.length!==0){for(;t<0;)t+=this.original.length;for(;r<0;)r+=this.original.length}if(r>this.original.length)throw new Error("end is out of bounds");if(t===r)throw new Error("Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead");this._split(t),this._split(r),s===!0&&(Bi.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),Bi.storeName=!0),s={storeName:!0});let a=s!==void 0?s.storeName:!1,n=s!==void 0?s.overwrite:!1;if(a){let d=this.original.slice(t,r);Object.defineProperty(this.storedNames,d,{writable:!0,value:!0,enumerable:!0})}let p=this.byStart[t],u=this.byEnd[r];if(p){let d=p;for(;d!==u;){if(d.next!==this.byStart[d.end])throw new Error("Cannot overwrite across a split point");d=d.next,d.edit("",!1)}p.edit(i,a,!n)}else{let d=new Ul(t,r,"").edit(i,a);u.next=d,d.previous=u}return this}prepend(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.intro=t+this.intro,this}prependLeft(t,r){if(t=t+this.offset,typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);let i=this.byEnd[t];return i?i.prependLeft(r):this.intro=r+this.intro,this}prependRight(t,r){if(t=t+this.offset,typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);let i=this.byStart[t];return i?i.prependRight(r):this.outro=r+this.outro,this}remove(t,r){if(t=t+this.offset,r=r+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;r<0;)r+=this.original.length}if(t===r)return this;if(t<0||r>this.original.length)throw new Error("Character is out of bounds");if(t>r)throw new Error("end must be greater than start");this._split(t),this._split(r);let i=this.byStart[t];for(;i;)i.intro="",i.outro="",i.edit(""),i=r>i.end?this.byStart[i.end]:null;return this}reset(t,r){if(t=t+this.offset,r=r+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;r<0;)r+=this.original.length}if(t===r)return this;if(t<0||r>this.original.length)throw new Error("Character is out of bounds");if(t>r)throw new Error("end must be greater than start");this._split(t),this._split(r);let i=this.byStart[t];for(;i;)i.reset(),i=r>i.end?this.byStart[i.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let t=this.lastChunk;do{if(t.outro.length)return t.outro[t.outro.length-1];if(t.content.length)return t.content[t.content.length-1];if(t.intro.length)return t.intro[t.intro.length-1]}while(t=t.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let t=this.outro.lastIndexOf(Rs);if(t!==-1)return this.outro.substr(t+1);let r=this.outro,i=this.lastChunk;do{if(i.outro.length>0){if(t=i.outro.lastIndexOf(Rs),t!==-1)return i.outro.substr(t+1)+r;r=i.outro+r}if(i.content.length>0){if(t=i.content.lastIndexOf(Rs),t!==-1)return i.content.substr(t+1)+r;r=i.content+r}if(i.intro.length>0){if(t=i.intro.lastIndexOf(Rs),t!==-1)return i.intro.substr(t+1)+r;r=i.intro+r}}while(i=i.previous);return t=this.intro.lastIndexOf(Rs),t!==-1?this.intro.substr(t+1)+r:this.intro+r}slice(t=0,r=this.original.length-this.offset){if(t=t+this.offset,r=r+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;r<0;)r+=this.original.length}let i="",s=this.firstChunk;for(;s&&(s.start>t||s.end<=t);){if(s.start<r&&s.end>=r)return i;s=s.next}if(s&&s.edited&&s.start!==t)throw new Error(`Cannot use replaced character ${t} as slice start anchor.`);let a=s;for(;s;){s.intro&&(a!==s||s.start===t)&&(i+=s.intro);let n=s.start<r&&s.end>=r;if(n&&s.edited&&s.end!==r)throw new Error(`Cannot use replaced character ${r} as slice end anchor.`);let p=a===s?t-s.start:0,u=n?s.content.length+r-s.end:s.content.length;if(i+=s.content.slice(p,u),s.outro&&(!n||s.end===r)&&(i+=s.outro),n)break;s=s.next}return i}snip(t,r){let i=this.clone();return i.remove(0,t),i.remove(r,i.original.length),i}_split(t){if(this.byStart[t]||this.byEnd[t])return;let r=this.lastSearchedChunk,i=r,s=t>r.end;for(;r;){if(r.contains(t))return this._splitChunk(r,t);if(r=s?this.byStart[r.end]:this.byEnd[r.start],r===i)return;i=r}}_splitChunk(t,r){if(t.edited&&t.content.length){let s=I1(this.original)(r);throw new Error(`Cannot split a chunk that has already been edited (${s.line}:${s.column} \u2013 "${t.original}")`)}let i=t.split(r);return this.byEnd[r]=t,this.byStart[r]=i,this.byEnd[i.end]=i,t===this.lastChunk&&(this.lastChunk=i),this.lastSearchedChunk=t,!0}toString(){let t=this.intro,r=this.firstChunk;for(;r;)t+=r.toString(),r=r.next;return t+this.outro}isEmpty(){let t=this.firstChunk;do if(t.intro.length&&t.intro.trim()||t.content.length&&t.content.trim()||t.outro.length&&t.outro.trim())return!1;while(t=t.next);return!0}length(){let t=this.firstChunk,r=0;do r+=t.intro.length+t.content.length+t.outro.length;while(t=t.next);return r}trimLines(){return this.trim("[\\r\\n]")}trim(t){return this.trimStart(t).trimEnd(t)}trimEndAborted(t){let r=new RegExp((t||"\\s")+"+$");if(this.outro=this.outro.replace(r,""),this.outro.length)return!0;let i=this.lastChunk;do{let s=i.end,a=i.trimEnd(r);if(i.end!==s&&(this.lastChunk===i&&(this.lastChunk=i.next),this.byEnd[i.end]=i,this.byStart[i.next.start]=i.next,this.byEnd[i.next.end]=i.next),a)return!0;i=i.previous}while(i);return!1}trimEnd(t){return this.trimEndAborted(t),this}trimStartAborted(t){let r=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(r,""),this.intro.length)return!0;let i=this.firstChunk;do{let s=i.end,a=i.trimStart(r);if(i.end!==s&&(i===this.lastChunk&&(this.lastChunk=i.next),this.byEnd[i.end]=i,this.byStart[i.next.start]=i.next,this.byEnd[i.next.end]=i.next),a)return!0;i=i.next}while(i);return!1}trimStart(t){return this.trimStartAborted(t),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(t,r){function i(a,n){return typeof r=="string"?r.replace(/\$(\$|&|\d+)/g,(p,u)=>u==="$"?"$":u==="&"?a[0]:+u<a.length?a[+u]:`$${u}`):r(...a,a.index,n,a.groups)}function s(a,n){let p,u=[];for(;p=a.exec(n);)u.push(p);return u}if(t.global)s(t,this.original).forEach(n=>{if(n.index!=null){let p=i(n,this.original);p!==n[0]&&this.overwrite(n.index,n.index+n[0].length,p)}});else{let a=this.original.match(t);if(a&&a.index!=null){let n=i(a,this.original);n!==a[0]&&this.overwrite(a.index,a.index+a[0].length,n)}}return this}_replaceString(t,r){let{original:i}=this,s=i.indexOf(t);return s!==-1&&(typeof r=="function"&&(r=r(t,s,i)),t!==r&&this.overwrite(s,s+t.length,r)),this}replace(t,r){return typeof t=="string"?this._replaceString(t,r):this._replaceRegexp(t,r)}_replaceAllString(t,r){let{original:i}=this,s=t.length;for(let a=i.indexOf(t);a!==-1;a=i.indexOf(t,a+s)){let n=i.slice(a,a+s),p=r;typeof r=="function"&&(p=r(n,a,i)),n!==p&&this.overwrite(a,a+s,p)}return this}replaceAll(t,r){if(typeof t=="string")return this._replaceAllString(t,r);if(!t.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(t,r)}};var AR=/^[\w+.-]+:\/\//,$R=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,RR=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function qR(e){return AR.test(e)}function IR(e){return e.startsWith("//")}function L1(e){return e.startsWith("/")}function NR(e){return e.startsWith("file:")}function N1(e){return/^[.?#]/.test(e)}function Vl(e){let t=$R.exec(e);return O1(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/",t[6]||"",t[7]||"")}function MR(e){let t=RR.exec(e),r=t[2];return O1("file:","",t[1]||"","",L1(r)?r:"/"+r,t[3]||"",t[4]||"")}function O1(e,t,r,i,s,a,n){return{scheme:e,user:t,host:r,port:i,path:s,query:a,hash:n,type:7}}function M1(e){if(IR(e)){let r=Vl("http:"+e);return r.scheme="",r.type=6,r}if(L1(e)){let r=Vl("http://foo.com"+e);return r.scheme="",r.host="",r.type=5,r}if(NR(e))return MR(e);if(qR(e))return Vl(e);let t=Vl("http://foo.com/"+e);return t.scheme="",t.host="",t.type=e?e.startsWith("?")?3:e.startsWith("#")?2:4:1,t}function LR(e){if(e.endsWith("/.."))return e;let t=e.lastIndexOf("/");return e.slice(0,t+1)}function OR(e,t){D1(t,t.type),e.path==="/"?e.path=t.path:e.path=LR(t.path)+e.path}function D1(e,t){let r=t<=4,i=e.path.split("/"),s=1,a=0,n=!1;for(let u=1;u<i.length;u++){let d=i[u];if(!d){n=!0;continue}if(n=!1,d!=="."){if(d===".."){a?(n=!0,a--,s--):r&&(i[s++]=d);continue}i[s++]=d,a++}}let p="";for(let u=1;u<s;u++)p+="/"+i[u];(!p||n&&!p.endsWith("/.."))&&(p+="/"),e.path=p}function B1(e,t){if(!e&&!t)return"";let r=M1(e),i=r.type;if(t&&i!==7){let a=M1(t),n=a.type;switch(i){case 1:r.hash=a.hash;case 2:r.query=a.query;case 3:case 4:OR(r,a);case 5:r.user=a.user,r.host=a.host,r.port=a.port;case 6:r.scheme=a.scheme}n>i&&(i=n)}D1(r,i);let s=r.query+r.hash;switch(i){case 2:case 3:return s;case 4:{let a=r.path.slice(1);return a?N1(t||e)&&!N1(a)?"./"+a+s:a+s:s||"."}case 5:return r.path+s;default:return r.scheme+"//"+r.user+r.host+r.port+r.path+s}}function DR(e){if(!e)return"";let t=e.lastIndexOf("/");return e.slice(0,t+1)}function BR(e,t){let r=DR(e),i=t?t+"/":"";return s=>B1(i+(s||""),r)}var $r=0;function jR(e,t){let r=j1(e,0);if(r===e.length)return e;t||(e=e.slice());for(let i=r;i<e.length;i=j1(e,i+1))e[i]=UR(e[i],t);return e}function j1(e,t){for(let r=t;r<e.length;r++)if(!FR(e[r]))return r;return e.length}function FR(e){for(let t=1;t<e.length;t++)if(e[t][$r]<e[t-1][$r])return!1;return!0}function UR(e,t){return t||(e=e.slice()),e.sort(HR)}function HR(e,t){return e[$r]-t[$r]}var zl=!1;function VR(e,t,r,i){for(;r<=i;){let s=r+(i-r>>1),a=e[s][$r]-t;if(a===0)return zl=!0,s;a<0?r=s+1:i=s-1}return zl=!1,r-1}function zR(e,t,r){for(let i=r+1;i<e.length&&e[i][$r]===t;r=i++);return r}function WR(e,t,r){for(let i=r-1;i>=0&&e[i][$r]===t;r=i--);return r}function GR(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function KR(e,t,r,i){let{lastKey:s,lastNeedle:a,lastIndex:n}=r,p=0,u=e.length-1;if(i===s){if(t===a)return zl=n!==-1&&e[n][$r]===t,n;t>=a?p=n===-1?0:n:u=n}return r.lastKey=i,r.lastNeedle=t,r.lastIndex=VR(e,t,p,u)}function XR(e){return typeof e=="string"?JSON.parse(e):e}var F1=-1,JR=1,Wl=class{constructor(e,t){let r=typeof e=="string";if(!r&&e._decodedMemo)return e;let i=XR(e),{version:s,file:a,names:n,sourceRoot:p,sources:u,sourcesContent:d}=i;this.version=s,this.file=a,this.names=n||[],this.sourceRoot=p,this.sources=u,this.sourcesContent=d,this.ignoreList=i.ignoreList||i.x_google_ignoreList||void 0;let m=BR(t,p);this.resolvedSources=u.map(m);let{mappings:h}=i;if(typeof h=="string")this._encoded=h,this._decoded=void 0;else if(Array.isArray(h))this._encoded=void 0,this._decoded=jR(h,r);else throw i.sections?new Error("TraceMap passed sectioned source map, please use FlattenMap export instead"):new Error(`invalid source map: ${JSON.stringify(i)}`);this._decodedMemo=GR(),this._bySources=void 0,this._bySourceMemos=void 0}};function Gl(e){var t;return(t=e)._decoded||(t._decoded=yc(e._encoded))}function U1(e,t,r){let i=Gl(e);if(t>=i.length)return null;let s=i[t],a=YR(s,e._decodedMemo,t,r,JR);return a===-1?null:s[a]}function YR(e,t,r,i,s){let a=KR(e,i,t,r);return zl?a=(s===F1?zR:WR)(e,i,a):s===F1&&a++,a===-1||a===e.length?-1:a}var Bu=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function V1(e,t){return e._indexes[t]}function qs(e,t){let r=V1(e,t);if(r!==void 0)return r;let{array:i,_indexes:s}=e,a=i.push(t);return s[t]=a-1}function ZR(e,t){let r=V1(e,t);if(r===void 0)return;let{array:i,_indexes:s}=e;for(let a=r+1;a<i.length;a++){let n=i[a];i[a-1]=n,s[n]--}s[t]=void 0,i.pop()}var QR=0,eq=1,tq=2,rq=3,iq=4,z1=-1,W1=class{constructor({file:e,sourceRoot:t}={}){this._names=new Bu,this._sources=new Bu,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=t,this._ignoreList=new Bu}};var G1=(e,t,r,i,s,a,n,p)=>sq(!0,e,t,r,i,s,a,n,p);function K1(e,t,r){let{_sources:i,_sourcesContent:s}=e,a=qs(i,t);s[a]=r}function X1(e,t,r=!0){let{_sources:i,_sourcesContent:s,_ignoreList:a}=e,n=qs(i,t);n===s.length&&(s[n]=null),r?qs(a,n):ZR(a,n)}function ju(e){let{_mappings:t,_sources:r,_sourcesContent:i,_names:s,_ignoreList:a}=e;return oq(t),{version:3,file:e.file||void 0,names:s.array,sourceRoot:e.sourceRoot||void 0,sources:r.array,sourcesContent:i,mappings:t,ignoreList:a.array}}function J1(e){let t=ju(e);return Object.assign({},t,{mappings:Mr(t.mappings)})}function sq(e,t,r,i,s,a,n,p,u){let{_mappings:d,_sources:m,_sourcesContent:h,_names:_}=t,v=aq(d,r),E=nq(v,i);if(!s)return e&&lq(v,E)?void 0:H1(v,E,[i]);let l=qs(m,s),o=p?qs(_,p):z1;if(l===h.length&&(h[l]=u??null),!(e&&cq(v,E,l,a,n,o)))return H1(v,E,p?[i,l,a,n,o]:[i,l,a,n])}function aq(e,t){for(let r=e.length;r<=t;r++)e[r]=[];return e[t]}function nq(e,t){let r=e.length;for(let i=r-1;i>=0;r=i--){let s=e[i];if(t>=s[QR])break}return r}function H1(e,t,r){for(let i=e.length;i>t;i--)e[i]=e[i-1];e[t]=r}function oq(e){let{length:t}=e,r=t;for(let i=r-1;i>=0&&!(e[i].length>0);r=i,i--);r<t&&(e.length=r)}function lq(e,t){return t===0?!0:e[t-1].length===1}function cq(e,t,r,i,s,a){if(t===0)return!1;let n=e[t-1];return n.length===1?!1:r===n[eq]&&i===n[tq]&&s===n[rq]&&a===(n.length===5?n[iq]:z1)}var Y1=Z1("",-1,-1,"",null,!1),pq=[];function Z1(e,t,r,i,s,a){return{source:e,line:t,column:r,name:i,content:s,ignore:a}}function Q1(e,t,r,i,s){return{map:e,sources:t,source:r,content:i,ignore:s}}function ex(e,t){return Q1(e,t,"",null,!1)}function uq(e,t,r){return Q1(null,pq,e,t,r)}function dq(e){let t=new W1({file:e.map.file}),{sources:r,map:i}=e,s=i.names,a=Gl(i);for(let n=0;n<a.length;n++){let p=a[n];for(let u=0;u<p.length;u++){let d=p[u],m=d[0],h=Y1;if(d.length!==1){let k=r[d[1]];if(h=tx(k,d[2],d[3],d.length===5?s[d[4]]:""),h==null)continue}let{column:_,line:v,name:E,content:l,source:o,ignore:g}=h;G1(t,n,m,o,v,_,E),o&&l!=null&&K1(t,o,l),g&&X1(t,o,!0)}}return t}function tx(e,t,r,i){if(!e.map)return Z1(e.source,t,r,i,e.content,e.ignore);let s=U1(e.map,t,r);return s==null?null:s.length===1?Y1:tx(e.sources[s[1]],s[2],s[3],s.length===5?e.map.names[s[4]]:i)}function fq(e){return Array.isArray(e)?e:[e]}function mq(e,t){let r=fq(e).map(a=>new Wl(a,"")),i=r.pop();for(let a=0;a<r.length;a++)if(r[a].sources.length>1)throw new Error(`Transformation map ${a} must have exactly one source file.
|
|
212
|
+
Did you specify these with the most recent transformation maps first?`);let s=rx(i,t,"",0);for(let a=r.length-1;a>=0;a--)s=ex(r[a],[s]);return s}function rx(e,t,r,i){let{resolvedSources:s,sourcesContent:a,ignoreList:n}=e,p=i+1,u=s.map((d,m)=>{let h={importer:r,depth:p,source:d||"",content:void 0,ignore:void 0},_=t(h.source,h),{source:v,content:E,ignore:l}=h;if(_)return rx(new Wl(_,v),t,v,p);let o=E!==void 0?E:a?a[m]:null,g=l!==void 0?l:n?n.includes(m):!1;return uq(v,o,g)});return ex(e,u)}var hq=class{constructor(e,t){let r=t.decodedMappings?ju(e):J1(e);this.version=r.version,this.file=r.file,this.mappings=r.mappings,this.names=r.names,this.ignoreList=r.ignoreList,this.sourceRoot=r.sourceRoot,this.sources=r.sources,t.excludeContent||(this.sourcesContent=r.sourcesContent)}toString(){return JSON.stringify(this)}};function Fu(e,t,r){let i=typeof r=="object"?r:{excludeContent:!!r,decodedMappings:!1},s=mq(e,t);return new hq(dq(s),i)}var _q=typeof window<"u"&&typeof btoa=="function"?e=>btoa(unescape(encodeURIComponent(e))):e=>Buffer.from(e).toString("base64");function ix(e,t){if(t.length==0)return null;let r=1,i=t.slice(0,-1).find(s=>s.sources.length!==1)===void 0?Fu(t,()=>null,!0):Fu(t[0],s=>s===e&&t[r]?t[r++]:null,!0);return i.file||delete i.file,i.sources.length||(i.sources=[e]),i}function bq(e,t,r){if(!t||!r)return t;let i=typeof r=="string"?JSON.parse(r):r;i.sources?.length===1&&!i.sources[0]&&(i.sources=[e]);let s=ix(e,[t,i]);return Object.defineProperties(s,{toString:{enumerable:!1,value:function(){return JSON.stringify(this)}},toUrl:{enumerable:!1,value:function(){return"data:application/json;charset=utf-8;base64,"+_q(this.toString())}}}),s}function Kl(e,t,r){if(t.sourcemap){let i=Uu(t.filename);e.map.sources=[i],Object.assign(e.map,bq(i,e.map,t.sourcemap)),i!==r&&(e.map.sources=e.map.sources.map(s=>sx(r,s)))}}function sx(e,t){let r=e.split(/[/\\]/),i=t.split(/[/\\]/);for(r.pop();r[0]===i[0];)r.shift(),i.shift();if(r.length){let s=r.length;for(;s--;)r[s]=".."}return r.concat(i).join("/")}function Uu(e){return e.split(/[/\\]/).pop()}function ax(e,t,r){return t?sx(t,e):Uu(e)}function ji(e,t,r){let i=new Hl(e),s={code:i,hash:t.css.hash,minify:t.inject_styles&&!r.dev,selector:`.${t.css.hash}`,keyframes:t.css.keyframes,specificity:{bumped:!1}},a=t.css.ast;re(a,s,yq),i.remove(0,a.content.start),i.remove(a.content.end,e.length),s.minify&&Jl(a.content.end,s);let n={code:i.toString(),map:i.generateMap({includeContent:!0,source:r.filename,file:r.cssOutputFilename||r.filename}),hasGlobal:t.css.has_global};return Kl(n,r,n.map.sources[0]),F&&t.inject_styles&&n.code&&(n.code+=`
|
|
213
|
+
/*# sourceMappingURL=${n.map.toUrl()} */`),n}var yq={_:(e,t)=>{t.state.code.addSourcemapLocation(e.start),t.state.code.addSourcemapLocation(e.end),t.next()},Atrule(e,{state:t,next:r,path:i}){if(Pi(e)){let s=e.start+e.name.length+1;for(;t.code.original[s]===" ";)s+=1;let a=s;for(;t.code.original[a]!=="{"&&t.code.original[a]!==" ";)a+=1;e.prelude.startsWith("-global-")?t.code.remove(s,s+8):Xl(i)||t.code.prependRight(s,`${t.hash}-`);return}r()},Declaration(e,{state:t}){let r=e.property&&jp(e.property.toLowerCase());if(r==="animation"||r==="animation-name"){let i=e.start+e.property.length+1,s="";for(;i<t.code.original.length;){let a=t.code.original[i];if(Nb.test(a)){if(t.keyframes.includes(s)&&t.code.prependRight(i-s.length,`${t.hash}-`),a===";"||a==="}")break;s=""}else s+=a;i++}}else if(t.minify&&(Jl(e.start,t),!e.property.startsWith("--"))){let i=e.start+e.property.length+1,s=i;for(;/\s/.test(t.code.original[s]);)s++;s>i&&t.code.remove(i,s)}},Rule(e,{state:t,next:r,visit:i,path:s}){if(t.minify&&(Jl(e.start,t),Jl(e.block.end-1,t)),!F&&lx(e,Xl(s))){t.minify?t.code.remove(e.start,e.end):(t.code.prependRight(e.start,"/* (empty) "),t.code.appendLeft(e.end,"*/"),ox(e,t.code));return}if(!cx(e)&&!Xl(s)){t.minify?t.code.remove(e.start,e.end):(t.code.prependRight(e.start,"/* (unused) "),t.code.appendLeft(e.end,"*/"),ox(e,t.code));return}if(e.metadata.is_global_block){let a=e.prelude.children[0];if(e.prelude.children.length===1&&a.children.length===1&&a.children[0].selectors.length===1){t.minify?(t.code.remove(e.start,e.block.start+1),t.code.remove(e.block.end-1,e.end)):(t.code.prependRight(e.start,"/* "),t.code.appendLeft(e.block.start+1,"*/"),t.code.prependRight(e.block.end-1,"/*"),t.code.appendLeft(e.block.end,"*/")),i(e.block);return}}r()},SelectorList(e,{state:t,next:r,path:i}){let s=i.at(-1);if((!Xl(i)||e.children.length>1&&s?.type==="Rule"&&s.metadata.is_global_block)&&!i.find(n=>n.type==="ComplexSelector"&&!n.metadata.used)){let n=e.children,p=!1,u=n[0].start,d=u,m=!1;for(let h=0;h<n.length;h+=1){let _=n[h];if(_.metadata.used===p){if(p){let v=_.start;for(;t.code.original[v]!==",";)v--;t.minify?t.code.remove(u,m?v:v+1):t.code.appendRight(m?v:v+1,"*/")}else h===0?t.minify?u=_.start:t.code.prependRight(_.start,"/* (unused) "):t.minify?u=d:t.code.overwrite(d,_.start," /* (unused) ");p=!p}!p&&_.metadata.used&&(m=!0),d=_.end}p&&(t.minify?t.code.remove(u,d):t.code.appendLeft(d,"*/"))}let a=t.specificity;if(s?.type==="Rule"){a={bumped:!1};let n=s.metadata.parent_rule;for(;n;){if(n.metadata.has_local_selectors){a={bumped:!0};break}n=n.metadata.parent_rule}}r({...t,specificity:a})},ComplexSelector(e,t){let r=t.state.specificity.bumped;for(let i of e.children){if(i.metadata.is_global){let s=i.selectors[0];nx(s,i.combinator,t.state);let a=e.metadata.rule?.metadata.parent_rule;if(a&&s.args===null&&(i.combinator===null&&t.state.code.prependRight(s.start,"&"),a.prelude.children.length>1&&e.children.length===e.children.findIndex(n=>n===i)-1)){let n=a.prelude.children.find(p=>p.start>s.end);n&&n.metadata.used&&t.state.code.update(s.end,n.start,"")}continue}else for(let s of i.selectors)s.type==="PseudoClassSelector"&&s.name==="global"&&nx(s,null,t.state);if(i.metadata.scoped){if(i.selectors.length===1){let n=i.selectors[0];if(n.type==="PseudoClassSelector"&&(n.name==="is"||n.name==="where"))continue}if(i.selectors.some(n=>n.type==="NestingSelector"))continue;let s=t.state.selector;t.state.specificity.bumped&&(s=`:where(${s})`),t.state.specificity.bumped=!0;let a=i.selectors.length;for(;a--;){let n=i.selectors[a];if(n.type==="PseudoElementSelector"||n.type==="PseudoClassSelector"){n.name!=="root"&&n.name!=="host"&&a===0&&t.state.code.prependRight(n.start,s);continue}n.type==="TypeSelector"&&n.name==="*"&&n.namespace===void 0?t.state.code.update(n.start,n.end,s):t.state.code.appendLeft(n.end,s);break}}}t.next(),t.state.specificity.bumped=r},PseudoClassSelector(e,t){(e.name==="is"||e.name==="where"||e.name==="has"||e.name==="not")&&t.next()},PseudoElementSelector(){}};function Xl(e){return e.some(t=>t.type==="Rule"&&t.metadata.is_global_block)}function nx(e,t,r){if(e.args===null){let i=e.start;if(t?.name===" ")for(;/\s/.test(r.code.original[i-1]);)i--;r.code.update(i,e.start+7,"")}else r.code.remove(e.start,e.start+8).remove(e.end-1,e.end)}function Jl(e,t){let r=e;for(;/\s/.test(t.code.original[r-1]);)r--;r<e&&t.code.remove(r,e)}function lx(e,t){if(e.metadata.is_global_block)return e.block.children.length===0;for(let r of e.block.children)if(r.type==="Declaration"||r.type==="Rule"&&(cx(r)||t)&&!lx(r,t)||r.type==="Atrule"&&(r.block===null||r.block.children.length>0))return!1;return!0}function cx(e){return e.prelude.children.some(t=>t.metadata.used)}function ox(e,t){let r=!1,i=!1;for(let s=e.start;s<e.end;s++)if(r)r=!1;else{let a=t.original[s];i?a==="*"&&t.original[s+1]==="/"&&(t.prependRight(++s,"\\"),i=!1):a==="\\"?r=!0:a==="/"&&t.original[++s]==="*"&&(i=!0)}}function Yl(e,t,r){if(e.left.type==="ArrayPattern"||e.left.type==="ObjectPattern"||e.left.type==="RestElement"){let i=t.visit(e.right),s=i.type!=="Identifier",a=s?w("$$value"):i,n=!1,{inserts:p,paths:u}=Xe(e.left,a);for(let{id:_}of p)_.name=t.state.scope.generate("$$array");let d=u.map(_=>{let v=_.expression,E=r("=",_.node,v,t);return E!==null&&(n=!0),E??ee("=",t.visit(_.node),t.visit(v))});if(!n)return null;let m=t.path.at(-1).type.endsWith("Statement");if(p.length>0||s){let _=[...p.map(({id:o,value:g})=>te(o,g)),...d.map($)];m||_.push(le(a));let v=we(i)||d.some(o=>we(o)),E=j([a],M(_),v),l=y(E,i);return v?et(l):l}let h=Oe(d);return m||h.expressions.push(a),h}if(e.left.type!=="Identifier"&&e.left.type!=="MemberExpression")throw new Error(`Unexpected assignment type ${e.left.type}`);return r(e.operator,e.left,e.right,t)}function px(e,t){return Yl(e,t,gq)??t.next()}function gq(e,t,r,i){if(i.state.analysis.runes&&t.type==="MemberExpression"&&t.object.type==="ThisExpression"&&!t.computed){let n=Ye(t.property),p=n&&i.state.state_fields.get(n);if(p&&p.node.type==="AssignmentExpression"&&t===p.node.left){let u=he(r,i.state.scope);if(u){let d=t.property.type==="PrivateIdentifier"||u==="$state"||u==="$state.raw"?t.property:p.key;return ee(e,X(rt,d,d.type==="Literal"),i.visit(r))}}else if(p&&(p.type==="$derived"||p.type==="$derived.by")&&t.property.type==="PrivateIdentifier"){let u=i.visit(Xr(e,t,r));return y(X(rt,n),u)}}let s=t;for(;s.type==="MemberExpression";)s=s.object;if(s.type!=="Identifier")return null;if(vq(s.name)){let n=s.name.slice(1);if(!i.state.scope.get(n))return null;if(s===t){let p=i.visit(Xr(e,t,r));return y("$.store_set",w(n),p)}return y("$.store_mutate",ee("??=",w("$$store_subs"),J([])),T(s.name),w(n),ee(e,i.visit(t),i.visit(r)))}if(i.state.scope.get(s.name)?.kind==="derived"&&s===t){let n=i.visit(Xr(e,t,r));return y(s,n)}return null}function vq(e){return e[0]==="$"&&/[A-Za-z_]/.test(e[1])}var wq=/[&"<]/g,xq=/[&<]/g;function Gt(e,t){let r=String(e??""),i=t?wq:xq;i.lastIndex=0;let s="",a=0;for(;i.test(r);){let n=i.lastIndex-1,p=r[n];s+=r.substring(a,n)+(p==="&"?"&":p==='"'?""":"<"),a=n+1}return s+r.substring(a)}var ux=`<!--${"["}-->`,dx=`<!--${"[!"}-->`,fx=`<!--${"]"}-->`,mx="<!---->";var yt=T(ux),ii=T(dx),Ge=T(fx),nr=T(mx);function or(e,{visit:t,state:r}){let i=[];function s(){if(i.length===0)return;let a=Et("",!1),n=[a],p=[];for(let u=0;u<i.length;u++){let d=i[u];if(d.type==="Text"||d.type==="Comment")a.value.cooked+=d.type==="Comment"?`<!--${d.data}-->`:Gt(d.data);else{let m=r.scope.evaluate(d.expression);m.is_known?a.value.cooked+=Gt((m.value??"")+""):(p.push(y("$.escape",t(d.expression,r))),a=Et("",u+1===i.length),n.push(a))}}for(let u of n)u.value.raw=Vr(u.value.cooked);r.template.push(gr(n,p)),i=[]}for(let a of e)if(a.type==="ExpressionTag"&&a.metadata.expression.is_async()){s();let n=t(a.expression,r),p=y("$$renderer.push",O(y("$.escape",n),a.metadata.expression.has_await)),u=a.metadata.expression.blockers();u.elements.length>0&&(p=y("$$renderer.async",u,j([w("$$renderer")],p))),r.template.push($(p))}else a.type==="Text"||a.type==="Comment"||a.type==="ExpressionTag"?i.push(a):(s(),t(a,{...r}));s()}function Cq(e){return e.type.endsWith("Statement")||e.type.endsWith("Declaration")}function je(e){let t=[],r=[],i=[],s=()=>{i.push($(y(w("$$renderer.push"),gr(t.map((a,n)=>Et(a,n===t.length-1)),r)))),t=[],r=[]};for(let a=0;a<e.length;a++){let n=e[a];Cq(n)?(t.length!==0&&s(),i.push(n)):(t.length===0&&t.push(""),n.type==="Literal"?t[t.length-1]+=n.value:n.type==="TemplateLiteral"?(t[t.length-1]+=n.quasis[0].value.cooked,t.push(...n.quasis.slice(1).map(p=>p.value.cooked)),r.push(...n.expressions)):(r.push(n),t.push("")))}return t.length!==0&&s(),i}function Fi(e,t){let r=e.body[0];if(r?.type==="ExpressionStatement"&&r.expression.type==="CallExpression"&&r.expression.callee.type==="Identifier"&&r.expression.callee.name==="$$renderer.push"&&r.expression.arguments.length===1&&r.expression.arguments[0].type==="TemplateLiteral"){let i=r.expression.arguments[0].quasis[0];i.value.cooked=t+i.value.cooked,i.value.raw=t+i.value.raw;return}e.body.unshift($(y(w("$$renderer.push"),T(t))))}function Ze(e,t,r,i=!1,s=!1){if(e===!0)return Z;if(!Array.isArray(e)||e.length===1){let u=Array.isArray(e)?e[0]:e;if(u.type==="Text"){let d=i?u.data.replace(Xi," ").trim():u.data;return T(s?d:Gt(d,!0))}return r(t.visit(u.expression),u.metadata.expression)}let a=Et("",!1),n=[a],p=[];for(let u=0;u<e.length;u++){let d=e[u];if(d.type==="Text")a.value.cooked+=i?d.data.replace(Xi," "):d.data;else{let m=t.state.scope.evaluate(d.expression);if(m.is_known)a.value.cooked+=(m.value??"")+"";else{let h=r(t.visit(d.expression),d.metadata.expression);p.push(m.is_string&&m.is_defined?h:y("$.stringify",h)),a=Et("",u+1===e.length),n.push(a)}}}for(let u of n)u.value.raw=Vr(u.value.cooked);return p.length>0?gr(n,p):T(a.value.cooked)}function Hu(e,t){let r=t.scope.get(e.name);if(r===null||e===r.node)return e;if(r.kind==="store_sub"){let i=w(e.name.slice(1));return y("$.store_get",ee("??=",w("$$store_subs"),J([])),T(e.name),Hu(i,t))}return r.kind==="derived"?(r.declaration_kind==="var"?Bt:y)(e):e}function pt(e,t,r){if(t.elements.length===0&&!r)return e;let i=j([w("$$renderer")],M(e),r);return t.elements.length>0?[$(y("$$renderer.async_block",t,i))]:[$(y("$$renderer.child_block",i))]}var bt=class{expressions=[];has_await=!1;#e=new Set;transform=(t,r)=>{if(this.check_blockers(r),r.has_await){this.has_await=!0;let i=this.expressions.push(t);return w(`$$${i-1}`)}return t};check_blockers(t){for(let r of t.references)r.blocker&&this.#e.add(r.blocker)}#t(){if(this.expressions.length===0)return ce;if(this.expressions.length===1)return ge("$$0",this.expressions[0]);let t=z(this.expressions.map(r=>r.type==="AwaitExpression"&&!Ft(r.argument)?r.argument:y(O(r,!0))));return ge(br(this.expressions.map((r,i)=>w(`$$${i}`))),tr(y("Promise.all",t)))}blockers(){return z([...this.#e])}is_async(){return this.expressions.length>0||this.#e.size>0}render(t){if(!this.is_async())return t;let r=j([w("$$renderer")],M([this.#t(),...t]),this.has_await),i=this.blockers();return i.elements.length>0?[$(y("$$renderer.async",i,r))]:[$(y("$$renderer.child",r))]}render_block(t){return this.is_async()?pt([this.#t(),...t],this.blockers(),this.has_await):t}};function hx(e,t){let r=t.visit(e.expression);e.metadata.expression.has_await&&(r=y(j([],r,!0)));let i=$(y("$.await",w("$$renderer"),r,O(e.pending?t.visit(e.pending):M([])),j(e.value?[t.visit(e.value)]:[],e.then?t.visit(e.then):M([]))));t.state.template.push(...pt([i],e.metadata.expression.blockers(),e.metadata.expression.has_await),Ge)}function _x(e,t){let r=t.visit(e.argument);if(t.state.analysis.pickled_awaits.has(e))return tr(r);let i=t.path.length;for(;i--;){let s=t.path[i];if(s.type==="ArrowFunctionExpression"||s.type==="FunctionExpression"||s.type==="FunctionDeclaration")break;if(s.metadata){if(s.type!=="ExpressionTag"&&s.type!=="Fragment")return tr(r);break}}return r===e.argument?e:{...e,argument:r}}function Tq(e,t){let r=[],i=new Map;for(let u of e)if(u.type==="ConstTag"){let d=u.declaration.declarations[0],m=ue(d.id).map(_=>t.scope.get(_.name)),h=new Set;re(d.init,t,{_:Ti,Identifier(_,v){let E=v.path.at(-1);if(Ve(_,E)){let l=v.state.scope.get(_.name);l&&h.add(l)}}});for(let _ of m)i.set(_,{node:u,deps:h})}else r.push(u);if(i.size===0)return e;let s=[];for(let[u,d]of i)for(let m of d.deps)i.has(m)&&s.push([u,m]);let a=ms(s);if(a?.length){let u=i.get(a[0]);Dh(u.node,a.map(d=>d.node.name).join(" \u2192 "))}let n=[];function p(u){if(!n.includes(u.node)){for(let d of u.deps){let m=i.get(d);m&&p(m)}n.push(u.node)}}for(let u of i.values())p(u);return[...n,...r]}function Rr(e,t,r,i="html",s,a,n){s.analysis.runes||(t=Tq(t,s));let p=[],u=[];for(let h of t)h.type==="Comment"&&!n||(h.type==="ConstTag"||h.type==="DeclarationTag"||h.type==="DebugTag"||h.type==="SvelteBody"||h.type==="SvelteWindow"||h.type==="SvelteDocument"||h.type==="SvelteHead"||h.type==="TitleElement"||h.type==="SnippetBlock"?p.push(h):u.push(h));let d=u;if(!a){d=[];let h,_;for(;(h=u[0])&&h.type==="Text"&&!Ot.test(h.data);)u.shift();for(h?.type==="Text"&&(h.raw=h.raw.replace(Or,""),h.data=h.data.replace(Or,""));(_=u.at(-1))&&_.type==="Text"&&!Ot.test(_.data);)u.pop();_?.type==="Text"&&(_.raw=_.raw.replace(pr,""),_.data=_.data.replace(pr,""));let v=i==="svg"&&(e.type!=="RegularElement"||e.name!=="text")&&!r.some(E=>E.type==="RegularElement"&&E.name==="text")||e.type==="RegularElement"&&(e.name==="select"||e.name==="tr"||e.name==="table"||e.name==="tbody"||e.name==="thead"||e.name==="tfoot"||e.name==="colgroup"||e.name==="datalist");for(let E=0;E<u.length;E++){let l=u[E-1],o=u[E],g=u[E+1];if(o.type==="Text"){if(l?.type!=="ExpressionTag"){let k=l?.type==="Text"&&pr.test(l.data);o.data=o.data.replace(Or,k?"":" "),o.raw=o.raw.replace(Or,k?"":" ")}g?.type!=="ExpressionTag"&&(o.data=o.data.replace(pr," "),o.raw=o.raw.replace(pr," ")),o.data&&(o.data!==" "||!v)&&d.push(o)}else d.push(o)}}var m=d[0];return e.type==="RegularElement"&&e.name==="pre"&&m?.type==="Text"&&(m.data===`
|
|
214
214
|
`||m.data===`\r
|
|
215
|
-
`)&&(d.shift(),m=d[0]),d.length===1&&m.type==="RegularElement"&&m.name==="script"&&d.push({type:"Comment",data:"",start:-1,end:-1}),{hoisted:p,trimmed:d,is_standalone:d.length===1&&(m.type==="RenderTag"&&!m.metadata.dynamic||m.type==="Component"&&!s.options.hmr&&!m.metadata.dynamic&&!m.attributes.some(h=>h.type==="Attribute"&&h.name.startsWith("--"))),is_text_first:(e.type==="Fragment"||e.type==="SnippetBlock"||e.type==="EachBlock"||e.type==="SvelteComponent"||e.type==="SvelteBoundary"||e.type==="Component"||e.type==="SvelteSelf")&&m&&(m?.type==="Text"||m?.type==="ExpressionTag")}}function Zl(e,t,r){if(t.type==="RegularElement"&&t.name==="foreignObject")return"html";if(t.type==="RegularElement"||t.type==="SvelteElement")return t.metadata.svg?"svg":t.metadata.mathml?"mathml":"html";if(t.type==="Fragment"||t.type==="Root"||t.type==="Component"||t.type==="SvelteComponent"||t.type==="SvelteFragment"||t.type==="SnippetBlock"||t.type==="SlotElement"){let s=Tq(r,"keep");if(s!=="keep"&&s!=="maybe_html")return s}let i=null;for(let s of r)if(s.type==="RegularElement")if(s.metadata.mathml)i=i===null||i==="mathml"?"mathml":"html";else if(s.metadata.svg)i=i===null||i==="svg"?"svg":"html";else return"html";return i??e}function Tq(e,t){let r=(i,{stop:s})=>{!i.metadata.svg&&!i.metadata.mathml?(t="html",s()):t==="keep"&&(t=i.metadata.svg?"svg":"mathml")};for(let i of e)if(re(i,{},{_(s,{next:a}){(s.type==="EachBlock"||s.type==="IfBlock"||s.type==="AwaitBlock"||s.type==="Fragment"||s.type==="KeyBlock"||s.type==="RegularElement"||s.type==="SvelteElement"||s.type==="Text")&&a()},SvelteElement:r,RegularElement:r,Text(s){s.data.trim()!==""&&(t="maybe_html")}}),t==="html")return t;return t}function qr(e,t){return e.name==="foreignObject"?"html":e.metadata.svg?"svg":e.metadata.mathml?"mathml":"html"}function Ql(e,t,r){return{args:(e==="$inspect"?t:t.callee.object).arguments.map(s=>r(s)),inspector:e==="$inspect"?"console.log":r(t.arguments[0])}}function bx(e,t){let r=he(e,t.state.scope);if(r==="$host"||r==="$effect"||r==="$effect.pre"||r==="$inspect.trace")return Te;if(r==="$effect.tracking")return Jt;if(r==="$effect.root")return j([],M([]));if(r==="$effect.pending")return T(0);if(r==="$state"||r==="$state.raw")return e.arguments[0]?t.visit(e.arguments[0]):Te;if(r==="$derived"||r==="$derived.by"){let i=t.visit(e.arguments[0]);return y("$.derived",r==="$derived"?O(i):i)}if(r==="$state.eager")return t.visit(e.arguments[0]);if(r==="$state.snapshot")return y("$.snapshot",t.visit(e.arguments[0]),Ce(e,"state_snapshot_uncloneable")&&Z);if(r==="$inspect"||r==="$inspect().with"){if(!F)return ce;let{args:i,inspector:s}=Ql(r,e,t.visit);return r==="$inspect"?y(s,T("$inspect("),...i,T(")")):y(s,T("init"),...i)}t.next()}function yx(e,t){let r=t.state.analysis.classes.get(e);if(!r){t.next();return}let i=[],s={...t.state,state_fields:r};for(let[a,n]of r)if(a[0]!=="#"&&n&&n.node.type==="AssignmentExpression"&&(n.type==="$derived"||n.type==="$derived.by")){let p=X(rt,n.key);i.push(Kr(n.key,null),jt("get",Be(a),[],[le(y(p))]),jt("set",Be(a),[w("$$value")],[le(y(p,w("$$value")))]))}for(let a of e.body){if(a.type!=="PropertyDefinition"){i.push(t.visit(a,s));continue}let n=Ye(a.key),p=n&&r.get(n);if(!p){i.push(t.visit(a,s));continue}if(n[0]==="#"||p.type==="$state"||p.type==="$state.raw")i.push(t.visit(a,s));else if(p.node===a){let u=X(rt,p.key);i.push(Kr(p.key,t.visit(p.value,s)),jt("get",a.key,[],[le(y(u))]),jt("set",Be(n),[w("$$value")],[le(y(u,w("$$value")))]))}}return{...e,body:i}}function Ui(e,t,r){let i=[],s=[],a=[],n={default:[]},p={...r.state,scope:e.metadata.scopes.default},u={},d=e.attributes.some(k=>k.type==="Attribute"&&k.name==="slot"),m=!1;function h(k,S=!1){let C=()=>{let P=i.at(-1),R=Array.isArray(P),L=R?P:[];L.push(k),R||i.push(L)};S?s.push(C):C()}let _=new bt;for(let k of e.attributes)if(k.type==="LetDirective")d||n.default.push(k);else if(k.type==="SpreadAttribute"){let S=r.visit(k);i.push(_.transform(S,k.metadata.expression))}else if(k.type==="Attribute"){let S=Ze(k.value,r,_.transform,!1,!0);if(k.name.startsWith("--")){a.push(Y(k.name,S));continue}k.name==="children"&&(m=!0),h(ye("init",Be(k.name),S))}else if(k.type==="BindDirective"){if(_.check_blockers(k.metadata.expression),k.name==="this")continue;if(k.expression.type==="SequenceExpression"){let[S,C]=r.visit(k.expression).expressions,P=w(r.state.scope.generate("bind_get")),R=w(r.state.scope.generate("bind_set"));r.state.init.push(te(P,S)),r.state.init.push(te(R,C)),h(tt(k.name,[le(y(P))])),h(St(k.name,[$(y(R,w("$$value")))]))}else h(tt(k.name,[le(r.visit(k.expression))]),!0),h(St(k.name,[$(r.visit(ee("=",k.expression,w("$$value")))),$(ee("=",w("$$settled"),Jt))]),!0)}else k.type==="AttachTag"&&_.check_blockers(k.metadata.expression);s.forEach(k=>k());let v=[],E=[];for(let k of e.fragment.nodes){if(k.type==="SnippetBlock"){r.visit(k,{...r.state,init:v}),h(ye("init",k.expression,k.expression)),E.push(Y(k.expression.name==="children"?"default":k.expression.name,Z));continue}let S="default";if(Si(k)){let C=k.attributes.find(P=>P.type==="Attribute"&&P.name==="slot");C!==void 0?(S=C.value[0].data,n[S]=k.attributes.filter(P=>P.type==="LetDirective")):k.type==="SvelteFragment"&&n.default.push(...k.attributes.filter(P=>P.type==="LetDirective"))}u[S]=u[S]||[],u[S].push(k)}for(let k of Object.keys(u)){let S=r.visit({...e.fragment,nodes:u[k]},k==="default"?p:{...r.state,scope:e.metadata.scopes[k]});if(S.body.length===0)continue;let C=[w("$$renderer")];if(n[k].length>0){let R=Gr(n[k].map(L=>L.expression===null?Y(L.name,w(L.name)):L.expression.type==="ObjectExpression"?Y(L.name,Gr(L.expression.properties)):L.expression.type==="ArrayExpression"?Y(L.name,br(L.expression.elements)):Y(L.name,L.expression)));C.push(R)}let P=j(C,M(S.body));k==="default"&&!m?n.default.length===0&&u.default.every(R=>R.type!=="SvelteFragment"||!R.attributes.some(L=>L.type==="LetDirective"))?(h(ye("init",w("children"),F?y("$.prevent_snippet_stringification",P):P)),E.push(Y(k,Z))):(E.push(Y(k,P)),h(Y("children",w("$.invalid_default_snippet")))):E.push(Y(k,P))}E.length>0&&h(ye("init",w("$$slots"),J(E)));let l=i.length===0||i.length===1&&Array.isArray(i[0])?J(i[0]||[]):y("$.spread_props",z(i.map(k=>Array.isArray(k)?J(k):k))),o=e.type==="SvelteComponent"||e.type==="Component"&&e.metadata.dynamic,g=$(y(t,w("$$renderer"),l));o&&(g=qe(t,M([$(y("$$renderer.push",yt)),g,$(y("$$renderer.push",Ge))]),M([$(y("$$renderer.push",ii)),$(y("$$renderer.push",Ge))]))),v.length>0&&(g=M([...v,g])),a.length>0&&(g=$(y("$.css_props",w("$$renderer"),T(r.state.namespace!=="svg"),J(a),O(M([g])),o&&Z))),e.type!=="SvelteSelf"&&_.check_blockers(e.metadata.expression),r.state.template.push(..._.render_block([g])),!o&&!_.is_async()&&!r.state.is_standalone&&a.length===0&&r.state.template.push(nr)}function gx(e,t){Ui(e,t.visit(yr(e.name)),t)}function vx(e,t){let r=t.visit(e.declaration);if(e.metadata.promises_id&&e.declaration.type==="VariableDeclaration"&&r.type==="VariableDeclaration"){let{ids:i,assignments:s}=Pq(r);Vu(t,e.metadata,i,s,r.kind)}else t.state.init.push(r)}function Pq(e){let t=new Map;for(let i of e.declarations)for(let s of ue(i.id))t.set(s.name,s);let r=e.declarations.filter(i=>i.init!==null).map(i=>$(ee("=",i.id,i.init)));return{ids:[...t.values()],assignments:r}}function Vu(e,t,r,i,s="let"){let a=e.state.async_consts??={id:t.promises_id,thunks:[]};for(let d of r)e.state.init.push(s==="var"?te(d.name):De(d.name));let n=[...t.expression.references].map(d=>d.blocker).filter(d=>d!==null&&d.object!==e.state.async_consts?.id);n.length===1?a.thunks.push(O(n[0])):n.length>0&&a.thunks.push(O(y("Promise.all",z(n))));let p=t.expression.has_await||i.some(d=>Ft(d)),u=i.length===1?i[0].expression:M(i);a.thunks.push(O(u,p))}function wx(e,t){let r=e.declaration.declarations[0],i=t.visit(r.id),s=t.visit(r.init);e.metadata.promises_id?Vu(t,e.metadata,ue(i),[$(ee("=",i,s))],"let"):t.state.init.push(ge(i,s))}function xx(e,t){let r=e.identifiers.map(i=>t.state.scope.get(i.name)?.blocker).filter(i=>i!=null);t.state.template.push(...pt([$(y("console.log",J(e.identifiers.map(i=>ye("init",i,t.visit(i)))))),ha],z(r),!1))}function kx(e,t){let r=t.state,i=e.metadata,s=t.visit(e.expression),a=i.contains_group_binding||!e.index?i.index:w(e.index),n=r.scope.root.unique("each_array"),p=[ge(n,y("$.ensure_array_like",s))],u=[];e.context&&u.push(De(e.context,X(n,a,!0))),a.name!==e.index&&e.index!=null&&u.push(De(e.index,a));let d=t.visit(e.body).body;e.body&&u.push(...d);let m=ab(lt("let",[ne(a,T(0)),ne("$$length",X(n,"length"))]),kt("<",a,w("$$length")),ma("++",a,!1),M(u));if(e.fallback){let h=$(y(w("$$renderer.push"),yt)),_=t.visit(e.fallback);Fi(_,ii.value),p.push(qe(kt("!==",X(n,"length"),T(0)),M([h,m]),_))}else r.template.push(yt),p.push(m);r.template.push(...pt(p,e.metadata.expression.blockers(),e.metadata.expression.has_await),Ge)}function Ex(e,t){let r=he(e.expression,t.state.scope);if(r==="$effect"||r==="$effect.pre"||r==="$effect.root"||r==="$inspect.trace")return ce;t.next()}function Sx(e,t){let r=t.path.at(-1)??e,i=Zl(t.state.namespace,r,e.nodes),{hoisted:s,trimmed:a,is_standalone:n,is_text_first:p}=Rr(r,e.nodes,t.path,i,t.state,t.state.preserve_whitespace,t.state.options.preserveComments),u={...t.state,init:[],template:[],namespace:i,is_standalone:n,async_consts:void 0};for(let d of s)t.visit(d,u);return p&&u.template.push(nr),or(a,{...t,state:u}),u.async_consts&&u.async_consts.thunks.length>0&&u.init.push(te(u.async_consts.id,y("$$renderer.run",z(u.async_consts.thunks)))),M([...u.init,...je(u.template)])}function Cx(e,t){let r=y("$.html",t.visit(e.expression));e.metadata.expression.is_async()?t.state.template.push(...pt([$(y("$$renderer.push",r))],e.metadata.expression.blockers(),e.metadata.expression.has_await)):t.state.template.push(r)}function Tx(e,t){if(Ve(e,t.path.at(-1)))return e.name==="$$props"?w("$$sanitized_props"):e.name.startsWith("$$derived_array")?y(e):Hu(e,t.state)}function Px(e,t){let r=t.visit(e.consequent);Fi(r,"<!--[0-->");let i=qe(t.visit(e.test),r),s=1,a=i,n=e.alternate;for(let u of e.metadata.flattened??[]){let d=t.visit(u.consequent);Fi(d,`<!--[${s++}-->`),a=a.alternate=qe(t.visit(u.test),d),n=u.alternate}let p=n?t.visit(n):M([]);Fi(p,"<!--[-1-->"),a.alternate=p,t.state.template.push(...pt([i],e.metadata.expression.blockers(),e.metadata.expression.has_await),Ge)}function Ax(e,t){let r=e.metadata.expression.is_async();r&&t.state.template.push(yt),t.state.template.push(nr,t.visit(e.fragment),nr),r&&t.state.template.push(Ge)}function $x(e,t){if(t.state.analysis.runes||t.path.length>1||e.label.name!=="$"){t.next();return}return t.state.legacy_reactive_statements.set(e,tb("$",t.visit(e.body))),ce}function Rx(e,t){if(t.state.analysis.runes&&e.property.type==="PrivateIdentifier"){let r=t.state.state_fields?.get(`#${e.property.name}`);if(r?.type==="$derived"||r?.type==="$derived.by")return y(e)}t.next()}function ec(e,t,r){let i=e.sync.map(s=>r(s));if(e.declarations.length>0&&i.push(lt("var",e.declarations.map(s=>ne(s)))),e.async.length>0){let s=e.async.map(a=>{let n=[];for(let p of a.nodes)n.push(...Aq(p,r));return n.length===0?O(Te,!1):n.length===1&&n[0].type==="ExpressionStatement"?O(n[0].expression,a.has_await):O(M(n),a.has_await)});i.push(te("$$promises",y(t,z(s))))}return i}function Aq(e,t){if(e.type==="VariableDeclarator"){let i=t(te(e.id,e.init));return i.type==="VariableDeclaration"?i.declarations.map(s=>s.id.type==="Identifier"&&(s.id.name.startsWith("$$d")||s.id.name.startsWith("$$array"))?te(s.id,s.init):$(ee("=",s.id,s.init??Te))):[]}if(e.type==="ClassDeclaration")return[$(ee("=",e.id,{...e,type:"ClassExpression"}))];if(e.type==="ExpressionStatement"){let i=t(e.expression);return i.type==="EmptyStatement"?[]:i.type==="AwaitExpression"?[$(i)]:[$(ls("void",i))]}let r=t(e);return r.type==="EmptyStatement"?[]:[r]}function qx(e,t){if(t.state.is_instance){let r=t.state;return{...e,body:ec(r.analysis.instance_body,w("$$renderer.run"),i=>t.visit(i))}}t.next()}function Ix(e,t){if(t.state.analysis.runes&&e.value!=null&&e.value.type==="CallExpression"){let r=he(e.value,t.state.scope);if(r==="$state"||r==="$state.raw")return{...e,value:e.value.arguments.length===0?null:t.visit(e.value.arguments[0])};if(r==="$derived.by"||r==="$derived"){let i=t.visit(e.value.arguments[0]);return{...e,value:e.value.arguments.length===0?null:y("$.derived",r==="$derived"?O(i):i)}}}t.next()}var zu=["class","style"];function rc(e,t,r){let i=[],s=[],a=[],n=null,p=!1,u=new Set;for(let d of e.attributes)if(d.type==="Attribute")d.name==="value"?e.name==="textarea"?(d.value!==!0&&Array.isArray(d.value)&&d.value[0].type==="Text"&&Lr.test(d.value[0].data)&&(d.value[0].data=`
|
|
216
|
-
`+d.value[0].data),n=y("$.escape",Ze(d.value,t,r))):e.name!=="select"&&i.push(d):Pe(d)?(d.name==="onload"||d.name==="onerror")&&ui(e.name)&&u.add(d.name):e.type==="RegularElement"&&e.name==="input"&&(d.name==="defaultValue"||d.name==="defaultChecked")?(i.push(d),p=!0):d.name!=="defaultValue"&&d.name!=="defaultChecked"&&(d.name==="class"&&d.metadata.needs_clsx?i.push({...d,value:{...d.value,expression:y("$.clsx",d.value.expression)}}):i.push(d));else if(d.type==="BindDirective"){if(d.name==="value"&&e.name==="select"||d.name==="value"&&i.some(_=>_.type==="Attribute"&&_.name==="type"&&me(_)&&_.value[0].data==="file")||d.name==="this"||zt[d.name]?.omit_in_ssr)continue;let h=t.visit(d.expression);if(h.type==="SequenceExpression"&&(h=y(h.expressions[0])),h=r(h,d.metadata.expression),d.name==="innerHTML")n=h;else if(pi(d.name)||d.name==="value"&&e.name==="textarea")n=y("$.escape",h);else if(d.name==="group"&&d.expression.type!=="SequenceExpression"){let _=e.attributes.find(E=>E.type==="Attribute"&&E.name==="value");if(!_)continue;let v=e.attributes.some(E=>E.type==="Attribute"&&E.name==="type"&&me(E)&&E.value[0].data==="checkbox");i.push({type:"transformed",name:"checked",expression:v?y(X(h,"includes"),Ze(_.value,t,r)):kt("===",h,Ze(_.value,t,r))})}else i.push({type:"transformed",name:tc(e,d),expression:h})}else d.type==="SpreadAttribute"?(i.push(d),p=!0,ui(e.name)&&(u.add("onload"),u.add("onerror"))):d.type==="UseDirective"?ui(e.name)&&(u.add("onload"),u.add("onerror")):d.type==="ClassDirective"?s.push(d):d.type==="StyleDirective"?a.push(d):d.type==="LetDirective"||t.visit(d);if(p)Iq(e,i,a,s,t,r);else{let d=e.metadata.scoped?t.state.analysis.css.hash:null;for(let m of i){if(m.type==="transformed"){t.state.template.push(y("$.attr",T(m.name),m.expression,Sc(m.name)&&Z));continue}let h=tc(e,m),_=(h!=="class"||s.length===0)&&(h!=="style"||a.length===0);if(_&&(m.value===!0||me(m))){let E=Ze(m.value,t,r,zu.includes(h)).value;h==="class"&&d&&(E=(String(E)+" "+d).trim()),(h!=="class"||E)&&t.state.template.push(T(` ${h}="${E===!0?"":String(E)}"`));continue}let v=Ze(m.value,t,r,zu.includes(h));_&&v.type==="Literal"&&typeof v.value=="string"?(h==="class"&&d&&(v.value=(v.value+" "+d).trim()),t.state.template.push(T(` ${h}="${Gt(v.value,!0)}"`))):h==="class"?t.state.template.push(Nq(s,v,t,d,r)):h==="style"?t.state.template.push(Mq(a,v,t,r)):t.state.template.push(y("$.attr",T(h),v,Sc(h)&&Z))}}if(u.size!==0)for(let d of u)t.state.template.push(T(` ${d}="this.__e=event"`));return n}function tc(e,t){let r=t.name;return!e.metadata.svg&&!e.metadata.mathml&&(r=r.toLowerCase()),r}function qq(e,t,r,i){let s=e.type==="RegularElement"&&e.name==="select";return J(t.map(n=>{if(n.type==="transformed")return ye("init",Be(n.name),n.expression);if(n.type==="Attribute"){let p=tc(e,n);s&&p==="defaultvalue"&&(p="defaultValue");let u=Ze(n.value,r,i,zu.includes(p));return ye("init",Be(p),u)}else if(n.type==="BindDirective"){let p=tc(e,n),u=r.visit(n.expression),d=u.type==="SequenceExpression"?y(u.expressions[0]):u;return ye("init",Be(p),d)}return ft(i(r.visit(n),n.metadata.expression))}))}function Iq(e,t,r,i,s,a){let n=Mx(e,t,r,i,s,a),p=y("$.attributes",...n);s.state.template.push(p)}function Wu(e,t,r){let i=[],s=[],a=[];for(let n of e.attributes)n.type==="Attribute"||n.type==="BindDirective"||n.type==="SpreadAttribute"?i.push(n):n.type==="ClassDirective"?s.push(n):n.type==="StyleDirective"&&a.push(n);return Mx(e,i,a,s,t,r)}function Mx(e,t,r,i,s,a){let n,p,u=0;if(i.length){let h=i.map(_=>Y(_.name,_.expression.type==="Identifier"&&_.expression.name===_.name?w(_.name):a(s.visit(_.expression),_.metadata.expression)));n=J(h)}if(r.length>0){let h=r.map(_=>Y(_.name,_.value===!0?w(_.name):Ze(_.value,s,a,!0)));p=J(h)}e.metadata.svg||e.metadata.mathml?u|=3:ct(e)?u|=2:e.type==="RegularElement"&&e.name==="input"&&(u|=4);let d=qq(e,t,s,a),m=e.metadata.scoped&&s.state.analysis.css.hash?T(s.state.analysis.css.hash):void 0;return[d,m,n,p,u?T(u):void 0]}function Nq(e,t,r,i,s){let a;e.length&&(a=J(e.map(p=>ye("init",T(p.name),s(r.visit(p.expression,r.state),p.metadata.expression)))));let n;return i&&(t.type==="Literal"&&typeof t.value=="string"?t.value=(t.value+" "+i).trim():n=T(i)),y("$.attr_class",t,n,a)}function Mq(e,t,r,i){let s;if(e.length){let a=[],n=[];for(let p of e){let u=p.value===!0?w(p.name):Ze(p.value,r,i,!0),d=p.name;(d[0]!=="-"||d[1]!=="-")&&(d=d.toLowerCase());let m=Y(d,u);p.modifiers.includes("important")?n.push(m):a.push(m)}n.length?s=z([J(a),J(n)]):s=J(a)}return y("$.attr_style",t,s)}function Lx(e,t){let r=t.state.namespace==="html"?e.name.toLowerCase():e.name,i=qr(e,t.state.namespace),s=!e.fragment.metadata.transparent,a={...t.state,namespace:i,scope:t.state.scopes.get(e.fragment),preserve_whitespace:t.state.preserve_whitespace||e.name==="pre"||e.name==="textarea",init:[],template:[],async_consts:void 0},n={...a,scope:t.state.scope},p=vt(r),u=new bt,d=r==="select"&&e.attributes.some(l=>(l.type==="Attribute"||l.type==="BindDirective")&&(l.name==="value"||l.name.toLowerCase()==="defaultvalue")||l.type==="SpreadAttribute"),m=r==="option",h=d||m,_=null;if(h||(a.template.push(T(`<${r}`)),_=rc(e,{...t,state:n},u.transform),a.template.push(T(p?"/>":">"))),(r==="script"||r==="style")&&e.fragment.nodes.length===1){a.template.push(T(e.fragment.nodes[0].data),T(`</${r}>`)),t.state.template.push(...u.render([...a.init,...je(a.template)]));return}let{hoisted:v,trimmed:E}=Rr(e,e.fragment.nodes,t.path,i,a,a.preserve_whitespace,a.options.preserveComments);for(let l of v)t.visit(l,a);if(F){let l=_e(e.start);a.template.push($(y("$.push_element",w("$$renderer"),T(r),T(l.line),T(l.column))))}if(d){let l={...a,template:[],init:[]};or(E,{...t,state:l});let o=j([w("$$renderer")],M([...a.init,...je(l.template)])),[g,...k]=Wu(e,t,u.transform);kr(e)&&k.push(Z);let S=$(y("$$renderer.select",g,o,...k));t.state.template.push(...u.render([...a.init,S]));return}if(m){let l;if(e.metadata.synthetic_value_node)l=u.transform(t.visit(e.metadata.synthetic_value_node.expression),e.metadata.synthetic_value_node.metadata.expression);else{let S={...a,template:[],init:[]};or(E,{...t,state:S});let C=[...a.init,...je(S.template)];if(F){let P=_e(e.start);C.unshift($(y("$.push_element",w("$$renderer"),T(r),T(P.line),T(P.column)))),C.push($(y("$.pop_element")))}l=j([w("$$renderer")],M(C))}let[o,...g]=Wu(e,t,u.transform);kr(e)&&g.push(Z);let k=$(y("$$renderer.option",o,l,...g));t.state.template.push(...u.render([...a.init,k]));return}if(_!==null){let l={...a,template:[],init:[]};or(E,{...t,state:l});let o=_;_.type!=="Identifier"&&(o=w(a.scope.generate("$$body")),a.template.push(ge(o,_))),a.template.push(qe(o,M(je([o])),M([...l.init,...je(l.template)])))}else or(E,{...t,state:a}),(r==="optgroup"||r==="select")&&kr(e)&&a.template.push(T("<!>"));p||a.template.push(T(`</${r}>`)),F&&a.template.push($(y("$.pop_element"))),s&&a.async_consts&&a.async_consts.thunks.length>0&&a.init.push(te(a.async_consts.id,y("$$renderer.run",z(a.async_consts.thunks)))),s?t.state.template.push(...u.render([M([...a.init,...je(a.template)])])):u.is_async()?t.state.template.push(...u.render([...a.init,...je(a.template)])):(t.state.init.push(...a.init),t.state.template.push(...a.template))}function Ox(e,t){let r=new bt,i=wr(e.expression).callee,s=wr(e.expression).arguments,a=r.transform(t.visit(i),e.metadata.expression),n=s.map((u,d)=>r.transform(t.visit(u),e.metadata.arguments[d])),p=$((e.expression.type==="CallExpression"?y:Bt)(a,w("$$renderer"),...n));t.state.template.push(...r.render_block([p])),!r.is_async()&&!t.state.is_standalone&&t.state.template.push(nr)}function Dx(e,t){let r=[],i=[],s=new bt,a=T("default");for(let d of e.attributes)if(d.type==="SpreadAttribute"){let m=t.visit(d);i.push(s.transform(m,d.metadata.expression))}else if(d.type==="Attribute"){let m=Ze(d.value,t,s.transform,!1,!0);d.name==="name"?a=m:d.name!=="slot"&&r.push(Y(d.name,m))}let n=i.length===0?J(r):y("$.spread_props",z([J(r),...i])),p=e.fragment.nodes.length===0?st:O(t.visit(e.fragment)),u=y("$.slot",w("$$renderer"),w("$$props"),a,n,p);t.state.template.push(yt,...s.render_block([$(u)]),Ge)}function Bx(e,t){let r=Wr(e.expression,[w("$$renderer"),...e.parameters],t.visit(e.body));r.___snippet=!0;let i=e.metadata.can_hoist?t.state.hoisted:t.state.init;F&&(r.body.body.unshift($(y("$.validate_snippet_args",w("$$renderer")))),i.push($(y("$.prevent_snippet_stringification",r.id)))),i.push(r)}function jx(e,t){return t.visit(e.expression)}function Fx(e,t){Ui(e,t.visit(e.expression),t)}function Ux(e,t){let r=t.visit(e.tag);if(F){if(r.type!=="Identifier"){let u=t.state.scope.generate("$$tag");t.state.init.push(ge(u,r)),r=w(u)}t.state.init.push($(y("$.validate_dynamic_element_tag",O(r)))),e.fragment.nodes.length>0&&t.state.init.push($(y("$.validate_void_dynamic_element",O(r))))}let i={...t.state,namespace:qr(e,t.state.namespace),template:[],init:[]},s=new bt,a=[];if(rc(e,{...t,state:i},s.transform),F){let u=_e(e.start);a.push($(y("$.push_element",w("$$renderer"),r,T(u.line),T(u.column))))}let n=M([...i.init,...je(i.template)]),p=t.visit(e.fragment,i);a.push(...s.render([$(y("$.element",w("$$renderer"),r,n.body.length>0&&O(n),p.body.length>0&&O(p)))])),F&&a.push($(y("$.pop_element"))),t.state.template.push(...pt(a,e.metadata.expression.blockers(),e.metadata.expression.has_await))}function Hx(e,t){t.state.template.push(t.visit(e.fragment))}function Vx(e,t){let r=t.visit(e.fragment);t.state.template.push($(y("$.head",T(li($e)),w("$$renderer"),j([w("$$renderer")],r))))}function zx(e,t){Ui(e,w(t.state.analysis.name),t)}function Wx(e,t){let r=[T("<title>")];or(e.fragment.nodes,{...t,state:{...t.state,template:r}}),r.push(T("</title>")),t.state.init.push($(y("$$renderer.title",j([w("$$renderer")],M(je(r))))))}function Gx(e,t){let r=e.argument;if(r.type==="Identifier"){let i=t.state.scope.get(r.name);if(i?.kind==="store_sub")return y(e.prefix?"$.update_store_pre":"$.update_store",ee("??=",w("$$store_subs"),J([])),T(r.name),w(r.name.slice(1)),e.operator==="--"&&T(-1));if(i?.kind==="derived")return y(e.prefix?"$.update_derived_pre":"$.update_derived",i.node,e.operator==="--"&&T(-1))}return t.next()}function Xx(e,t){let r=[];if(t.state.analysis.runes)for(let i of e.declarations){let s=i.init,a=he(s,t.state.scope);if(!a||a==="$effect.tracking"||a==="$inspect"||a==="$effect.root"){r.push(t.visit(i));continue}if(a==="$props.id")continue;if(a==="$props"){let u=!1,d=re(i.id,null,{RestElement(h,_){_.path.at(-1)===i.id&&(u=!0)},AssignmentPattern(h){if(h.right.type==="CallExpression"&&he(h.right,t.state.scope)==="$bindable"){let _=h.right.arguments.length?t.visit(h.right.arguments[0]):Te;return da(h.left,_)}}}),m=t.state.analysis.uses_slots?w("$$slots_"):w("$$slots");d.type==="ObjectPattern"&&u?d.properties.splice(d.properties.length-1,0,ye("init",w("$$slots"),m),ye("init",w("$$events"),w("$$events"))):d.type==="Identifier"&&(d=Gr([ye("init",w("$$slots"),m),ye("init",w("$$events"),w("$$events")),xi(w(d.name))])),r.push(ne(t.visit(d),w("$$props")));continue}let n=s.arguments,p=n.length>0?t.visit(n[0]):Te;if(a==="$derived"||a==="$derived.by"){let d=a==="$derived"&&t.state.analysis.async_deriveds.has(i.init)?et(y("$.async_derived",O(p,!0))):y("$.derived",a==="$derived"?O(p):p);if(i.id.type==="Identifier")r.push(ne(t.visit(i.id),d));else{let m=i.init,h=m.arguments[0];if(a==="$derived.by"||m.arguments[0].type!=="Identifier"){let E=w(t.state.scope.generate("$$d"));h=y(E),r.push(ne(E,d))}let{inserts:_,paths:v}=Xe(i.id,h);for(let{id:E,value:l}of _){E.name=t.state.scope.generate("$$derived_array");let o=t.visit(O(l)),g=y("$.derived",o);r.push(ne(E,g))}for(let E of v){let l=t.visit(E.expression),o=y("$.derived",O(l));r.push(ne(E.node,o))}}continue}if(i.id.type==="Identifier"){r.push(ne(i.id,p));continue}r.push(...Kx(i,t.state.scope,p))}else for(let i of e.declarations){let s=t.state.scope.get_bindings(i),a=s.some(p=>p.kind==="state"),n=s.some(p=>p.kind==="bindable_prop");if(!a&&!n){r.push(t.visit(i));continue}if(n){if(i.id.type!=="Identifier"){let m=w(t.state.scope.generate("tmp")),{inserts:h,paths:_}=Xe(i.id,m);r.push(ne(m,t.visit(i.init)));for(let{id:v,value:E}of h)v.name=t.state.scope.generate("$$array"),r.push(ne(v,E));for(let v of _){let E=v.expression,l=v.node.name,o=t.state.scope.get(l),g=X(w("$$props"),T(o.prop_alias??l),!0);r.push(ne(v.node,ya(g,E)))}continue}let p=t.state.scope.get(i.id.name),u=X(w("$$props"),T(p.prop_alias??i.id.name),!0),d=u;if(i.init){let m=t.visit(i.init);d=ya(u,m)}r.push(ne(i.id,d));continue}r.push(...Kx(i,t.state.scope,i.init&&t.visit(i.init)))}return r.length===0?ce:{...e,declarations:r}}function Kx(e,t,r){if(e.id.type==="Identifier")return[ne(e.id,r)];let i=w(t.generate("tmp")),{paths:s,inserts:a}=Xe(e.id,i);return[ne(i,r),...a.map(({id:n,value:p})=>(n.name=t.generate("$$array"),ne(n,p))),...s.map(n=>{let p=n.expression;return ne(n.node,p)})]}function Yx(e,t){let r=e.fragment.nodes.find(E=>E.type==="SnippetBlock"&&E.expression.name==="failed"),i=e.attributes.find(E=>E.type==="Attribute"&&E.name==="failed"),s=e.attributes.find(E=>E.type==="Attribute"&&E.name==="pending"),a=s&&typeof s.value=="object"&&!Array.isArray(s.value)&&!t.state.scope.evaluate(s.value.expression).is_defined,n=e.fragment.nodes.find(E=>E.type==="SnippetBlock"&&E.expression.name==="pending"),p=e.fragment.nodes.filter(E=>!(E.type==="SnippetBlock"&&["failed","pending"].includes(E.expression.name))),u={...e.fragment,nodes:p},d=t.visit(u,{...t.state,scope:t.state.scopes.get(e.fragment)??t.state.scope}),m;if(s||n)if(s&&a&&!n){let{callee:E,pending_block:l}=Jx(s,t);m=M([qe(E,l,M(je([yt,d,Ge])))])}else m=s?Jx(s,t).pending_block:Lq(n,t);else m=M(je([yt,d,Ge]));if(!r&&!i){t.state.template.push(...m.body);return}let h=J([]),_=[];if(i&&!r){let E=Ze(i.value,t,l=>l,!1,!0);h.properties.push(Y("failed",E))}else r&&(t.visit(r,{...t.state,init:_}),h.properties.push(Y("failed",r.expression)));let v=$(y("$$renderer.boundary",h,j([w("$$renderer")],m)));t.state.template.push(_.length>0?M([..._,v]):v)}function Jx(e,t){let r=Ze(e.value,t,s=>s,!1,!0),i=y(r,w("$$renderer"));return{callee:r,pending_block:M(je([ii,$(i),Ge]))}}function Lq(e,t){return M(je([ii,t.visit(e.body),Ge]))}var Gu={_:Ti,AssignmentExpression:px,AwaitExpression:_x,CallExpression:bx,ClassBody:yx,ExpressionStatement:Ex,Identifier:Tx,LabeledStatement:$x,MemberExpression:Rx,Program:qx,PropertyDefinition:Ix,UpdateExpression:Gx,VariableDeclaration:Xx},Oq={AwaitBlock:hx,Component:gx,ConstTag:wx,DeclarationTag:vx,DebugTag:xx,EachBlock:kx,Fragment:Sx,HtmlTag:Cx,IfBlock:Px,KeyBlock:Ax,RegularElement:Lx,RenderTag:Ox,SlotElement:Dx,SnippetBlock:Bx,SpreadAttribute:jx,SvelteComponent:Fx,SvelteElement:Ux,SvelteFragment:Hx,SvelteHead:Vx,SvelteSelf:zx,TitleElement:Wx,SvelteBoundary:Yx};function Zx(e,t){let r={analysis:e,options:t,scope:e.module.scope,scopes:e.module.scopes,hoisted:[_a("$","svelte/internal/server"),...e.instance_body.hoisted],legacy_reactive_statements:new Map,init:null,template:null,namespace:t.namespace,preserve_whitespace:t.preserveWhitespace,state_fields:new Map,is_standalone:!1,is_instance:!1},i=re(e.module.ast,r,Gu),s=re(e.instance.ast,{...r,scopes:e.instance.scopes,is_instance:!0},{...Gu,ImportDeclaration(l){return r.hoisted.push(l),ce},ExportNamedDeclaration(l,o){return l.declaration?o.visit(l.declaration):ce}}),a=re(e.template.ast,{...r,scopes:e.template.scopes},{...Gu,...Oq}),n=[];for(let[l]of e.reactive_statements){let o=r.legacy_reactive_statements.get(l);if(o===void 0)throw new Error("Could not find reactive statement");if(l.body.type==="ExpressionStatement"&&l.body.expression.type==="AssignmentExpression")for(let g of ue(l.body.expression.left))e.instance.scope.get(g.name)?.kind==="legacy_reactive"&&n.push(ne(g));s.body.push(o)}if(n.length>0&&s.body.unshift({type:"VariableDeclaration",kind:"let",declarations:n}),e.uses_component_bindings){let l=a.body.filter(g=>g.type==="FunctionDeclaration"&&g.___snippet),o=a.body.filter(g=>g.type!=="FunctionDeclaration"||!g.___snippet);a.body=[...l,De("$$settled",Z),De("$$inner_renderer"),Wr(w("$$render_inner"),[w("$$renderer")],M(o)),sb(ls("!",w("$$settled")),M([$(ee("=",w("$$settled"),Z)),$(ee("=",w("$$inner_renderer"),y("$$renderer.copy"))),$(y("$$render_inner",w("$$inner_renderer")))])),$(y("$$renderer.subsume",w("$$inner_renderer")))]}let p=[...e.instance.scope.declarations.values()].filter(l=>l.kind==="store_sub"),u=p.some(l=>l.blocker);if(p.length>0){s.body.unshift(te("$$store_subs"));let l=qe(w("$$store_subs"),$(y("$.unsubscribe_stores",w("$$store_subs"))));a.body.push(u?$(y("$$renderer.on_destroy",j([],M([l])))):l)}let d=[];for(let[l,o]of e.instance.scope.declarations)o.kind==="bindable_prop"&&!l.startsWith("$$")&&d.push(Y(o.prop_alias??l,w(l)));for(let{name:l,alias:o}of e.exports)d.push(Y(o??l,w(l)));d.length>0&&a.body.push($(y("$.bind_props",w("$$props"),J(d))));let m=M([...s.body,...a.body]);m.loc=s.loc,e.props_id&&m.body.unshift(ge(e.props_id,y("$.props_id",w("$$renderer"))));let h=F||e.needs_context||u;if(h&&(m=M([$(y("$$renderer.component",j([w("$$renderer")],m,!1),F&&w(fr)))])),e.uses_rest_props){let l=e.exports.map(({name:o,alias:g})=>g??o);for(let[o,g]of e.instance.scope.declarations)g.kind==="bindable_prop"&&l.push(g.prop_alias??o);m.body.unshift(ge("$$restProps",y("$.rest_props",w("$$sanitized_props"),z(l.map(o=>T(o))))))}(e.uses_props||e.uses_rest_props)&&m.body.unshift(ge("$$sanitized_props",y("$.sanitize_props",w("$$props")))),e.uses_slots&&m.body.unshift(ge("$$slots",y("$.sanitize_slots",w("$$props"))));let _=[...r.hoisted,...i.body];if(e.css.ast!==null&&e.inject_styles&&!e.custom_element){let l=T(e.css.hash),o=T(ji(e.source,e,t).code);_.push(ge("$$css",J([Y("hash",l),Y("code",o)]))),m.body.unshift($(y("$$renderer.global.css.add",w("$$css"))))}let v=h||d.length>0||e.needs_props||e.uses_props||e.uses_rest_props||e.uses_slots||e.slot_names.size>0,E=Wr(w(e.name),v?[w("$$renderer"),w("$$props")]:[w("$$renderer")],m);return t.compatibility.componentApi===4?(_.unshift(Yt([["render","$$_render"]],"svelte/server")),_.push(E,$(ee("=",yr(`${e.name}.render`),Ue(null,[w("$$props"),w("$$opts")],M([le(y("$$_render",w(e.name),J([Y("props",w("$$props")),Y("context",X(w("$$opts"),"context",!1,!0))])))])))),zr(w(e.name)))):F?_.push(E,$(ee("=",yr(`${e.name}.render`),Ue(null,[],M([nb("Component.render(...) is no longer valid in Svelte 5. See https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes for more information")])))),zr(w(e.name))):_.push(zr(E)),F&&_.unshift($(ee("=",X(w(e.name),"$.FILENAME",!0),T($e)))),t.experimental.async&&_.unshift(Yt([],"svelte/internal/flags/async")),{type:"Program",sourceType:"module",body:_}}function si(e,t){return(e.kind==="state"||e.kind==="raw_state")&&(!t.immutable||e.reassigned||t.accessors)}function Qe(e,t){if(Object.hasOwn(t.transform,e.name)){let r=t.scope.get(e.name);if(e!==r?.node)return t.transform[e.name].read(e)}return e}function ic(e,t,r,i){let s=[w("$$props"),T(r)],a=0;e.kind==="bindable_prop"&&(a|=8),t.analysis.immutable&&(a|=1),t.analysis.runes&&(a|=2),(t.analysis.accessors||(t.analysis.immutable?e.reassigned||t.analysis.runes&&e.mutated:e.updated))&&(a|=4);let n;return i&&(Zt(i)?n=i:(i.type==="CallExpression"&&i.callee.type==="Identifier"&&i.arguments.length===0?n=i.callee:n=O(i),a|=16)),(a||n)&&(s.push(T(a)),n&&s.push(n)),y("$.prop",...s)}function sc(e,t){return(e.kind==="prop"||e.kind==="bindable_prop")&&(!t.analysis.runes||t.analysis.accessors||e.reassigned||e.initial||e.updated)}function Me(e,t){if(!t.has_pickled_await)return j([],e,!0);let r=e.type==="BlockStatement"?e:M([le(e)]);return j([],M([{type:"TryStatement",block:r,handler:null,finalizer:M([$(y("$.unsave"))])}]),!0)}function Ir(e,t,r){return r?.has_await?tr(y("$.async_derived",Me(t,r))):y(e.analysis.runes?"$.derived":"$.derived_safe_equal",O(t))}function ac(e,t){let r={...t.transform};for(let[i,s]of e.declarations)(s.kind==="normal"||s.kind==="state"&&!si(s,t.analysis))&&delete r[i];return r}var Fe=class{#e=[];#t=[];#r=new Set;add(t,r,i=!1){if(this.check_blockers(r),!(r.has_call||r.has_await||i&&r.has_state))return t;let a=w("#");return(r.has_await?this.#t:this.#e).push({id:a,expression:t,metadata:r}),a}check_blockers(t){for(let r of t.references)r.blocker&&this.#r.add(r.blocker)}apply(){return[...this.#e,...this.#t].map((t,r)=>(t.id.name=`$${r}`,t.id))}blockers(){return this.#r.size>0?z([...this.#r]):void 0}deriveds(t=!0){return this.#e.map(r=>De(r.id,y(t?"$.derived":"$.derived_safe_equal",O(r.expression))))}async_ids(){return this.#t.map(t=>t.id)}async_values(){if(this.#t.length!==0)return z(this.#t.map(t=>Me(t.expression,t.metadata)))}sync_values(){if(this.#e.length!==0)return z(this.#e.map(t=>j([],t.expression)))}};function Nr(e,t,r=t.state,i=(s,a)=>r.memoizer.add(s,a)){let s=[],a=Et(""),n=[a],p=!1,u=!1;for(let m=0;m<e.length;m++){let h=e[m];if(h.type==="Text")a.value.cooked+=h.data;else if(h.expression.type==="Literal")h.expression.value!=null&&(a.value.cooked+=h.expression.value+"");else if(h.expression.type!=="Identifier"||h.expression.name!=="undefined"||r.scope.get("undefined")){let _=i(Re(t,h.expression,h.metadata.expression,r),h.metadata.expression),v=r.scope.evaluate(_);if(u||=h.metadata.expression.has_await||h.metadata.expression.has_blockers(),p||=u||h.metadata.expression.has_state&&!v.is_known,e.length===1)return v.is_known&&(_=T((v.value??"")+"")),{value:_,has_state:p};_.type==="LogicalExpression"&&_.right.type==="Literal"&&(_.operator==="??"||_.operator==="||")&&_.right.value===null&&(_={..._,right:T("")}),v.is_known?a.value.cooked+=(v.value??"")+"":(v.is_defined||(_=it("??",_,T(""))),s.push(_),a=Et("",m+1===e.length),n.push(a))}}for(let m of n)m.value.raw=Vr(m.value.cooked);return{value:s.length>0?gr(n,s):T(a.value.cooked),has_state:p}}function ai(e){let{memoizer:t}=e,r=t.apply();return $(y("$.template_effect",j(r,e.update.length===1&&e.update[0].type==="ExpressionStatement"?e.update[0].expression:M(e.update)),t.sync_values(),t.async_values(),t.blockers()))}function Hi(e){let t=e.split("."),r=t.shift(),i=w(r);for(;r=t.shift();){let s=!Ji.test(r);i=X(i,s?T(r):w(r),s)}return i}function nc(e,t,{state:r,visit:i}){let[s,a]=e.type==="SequenceExpression"?e.expressions:[null,null],n=[],p=[],u=[],d={...r.transform};re(s??e,null,{Identifier(E,{path:l}){if(u.includes(E.name))return;u.push(E.name);let o=l.at(-1);if(!Ve(E,o))return;let g=r.scope.get(E.name);if(g&&!(si(g,r.analysis)||g.kind==="derived")){for(let[k,S]of r.scopes)if(k.type==="EachBlock"&&S===g.scope){n.push(E),p.push(i(E)),d[E.name]&&(d[E.name]={...d[E.name],read:C=>C});break}}}});let m={...r,transform:d},h=i(s??e,m),_=i(a??ee("=",e,w("$$value")),m),v=h;for(;v.type==="MemberExpression";)v.optional=!0,v=v.object;return h=h.type==="ArrowFunctionExpression"?j([...n],h.body):h.type==="FunctionExpression"?Ue(null,[...n],h.body):s?h:j([...n],h),_=_.type==="ArrowFunctionExpression"?j([_.params[0]??w("_"),...n],_.body):_.type==="FunctionExpression"?Ue(null,[_.params[0]??w("_"),...n],_.body):a?_:j([w("$$value"),...n],_),y("$.bind_this",t,_,h,p.length>0&&O(z(p)))}function oc(e,t,r){if(t.expression.type==="SequenceExpression")return;let i=Ie(t.expression);if((i&&e.scope.get(i.name))?.kind==="store_sub")return;let a=_e(t.start),n=r.object;e.init.push($(y("$.validate_binding",T(e.analysis.source.slice(t.start,t.end)),t.metadata.expression.blockers(),O(e.store_to_invalidate?Oe([y("$.mark_store_binding"),n]):n),O(r.computed?r.property:T(r.property.name)),T(a.line),T(a.column))))}function lc(e,t,r){let i=e.type==="AssignmentExpression"?e.left:e.argument;if(!F||i.type!=="MemberExpression"||Ce(e,"ownership_invalid_mutation"))return r;let s=Ie(i);if(!s)return r;let a=t.state.scope.get(s.name);if(a?.kind!=="prop"&&a?.kind!=="bindable_prop")return r;let n=t.state;n.analysis.needs_mutation_validation=!0;let p=[];for(;i.type==="MemberExpression";){if(i.property.type==="Literal")p.unshift(i.property);else if(i.property.type==="Identifier"){let d=Object.hasOwn(t.state.transform,i.property.name)?t.state.transform[i.property.name]:null;i.computed?p.unshift(d?.read?d.read(i.property):i.property):p.unshift(T(i.property.name))}else return r;i=i.object}p.unshift(T(s.name));let u=_e(i.start);return y("$$ownership_validator.mutation",T(a.prop_alias),z(p),r,u&&T(u.line),u&&T(u.column))}function Re(e,t,r,i=e.state){let s=e.visit(t,i);if(e.state.analysis.runes||e.state.analysis.maybe_runes||!r.has_call&&!r.has_member_expression&&!r.has_assignment)return s;let a=Oe([]);for(let p of r.references)if(!(p.kind==="normal"&&p.declaration_kind!=="import")){var n=Qe({...p.node},i);(p.kind==="bindable_prop"||p.kind==="template"||p.declaration_kind==="import"||p.node.name==="$$props"||p.node.name==="$$restProps")&&(n=y("$.deep_read_state",n)),a.expressions.push(n)}return a.expressions.push(y("$.untrack",O(s))),a}function ut(e,t,r,i){if(!F)return $(e);let s=t.start!==void 0&&_e(t.start);return s?$(y("$.add_svelte_meta",j([],e),T(r),w(fr),T(s.line),T(s.column),i&&J(Object.entries(i).map(([a,n])=>Y(a,T(n)))))):$(e)}function Qx(e,t){let r=e.expression===null?st:O(t.visit(e.expression)),i=$(y("$.animation",t.state.node,O(t.visit(Hi(e.name))),r));e.metadata.expression.is_async()&&(i=$(y("$.run_after_blockers",e.metadata.expression.blockers(),O(M([i]))))),t.state.after_update.push(i)}var cc=(e,t)=>{let r={...t.state,in_constructor:!1,in_derived:!1};if(e.type==="FunctionExpression"){let i=t.path.at(-1);r.in_constructor=i.type==="MethodDefinition"&&i.kind==="constructor"}t.next(r)};function e0(e,t){return cc(e,t)}function t0(e,t){let r=Yl(e,t,Hq)??t.next();return lc(e,t,r)}function Ku(e){return["=","||=","&&=","??="].includes(e)}function Hq(e,t,r,i){if(i.state.analysis.runes&&t.type==="MemberExpression"){let d=Ye(t.property),m=d&&i.state.state_fields.get(d);if(m){if(m.node.type==="AssignmentExpression"&&t===m.node.left){let h=he(r,i.state.scope);if(h){let _={...i.state,in_constructor:h!=="$derived"&&h!=="$derived.by"},v=i.visit(r,_);if(F){let E=i.path.findLast(l=>l.type==="ClassDeclaration"||l.type==="ClassExpression");v=y("$.tag",v,T(`${E?.id?.name??"[class]"}.${d}`))}return ee(e,X(rt,m.key),v)}}if(t.property.type==="PrivateIdentifier"){let h=["||=","&&=","??="].includes(e)?e.slice(0,-1):null,_=i.visit(h===null?Xr(e,t,r):r),v=m.type==="$state"&&Ku(e)&&$t(_,i.state.scope),E=y("$.set",t,_,v&&Z);return h===null?E:it(h,i.visit(t),E)}}}let s=t;for(;s.type==="MemberExpression";)s=s.object;if(s.type!=="Identifier")return null;let a=i.state.scope.get(s.name);if(!a)return null;let n=Object.hasOwn(i.state.transform,s.name)?i.state.transform[s.name]:null,p=i.path.map(d=>d.type);if(s===t&&n?.assign){let d=p.at(-1)==="BindDirective"&&p.at(-2)==="RegularElement",m=i.visit(Xr(e,t,r));return n.assign(s,m,!d&&a.kind!=="prop"&&a.kind!=="bindable_prop"&&a.kind!=="raw_state"&&a.kind!=="derived"&&a.kind!=="store_sub"&&i.state.analysis.runes&&$t(r,i.state.scope)&&Ku(e))}if(n?.mutate){let d=n.mutate(s,ee(e,i.visit(t),i.visit(r)));return a.legacy_indirect_bindings.size>0&&(d=Oe([d,y("$.invalidate_inner_signals",j([],M(Array.from(a.legacy_indirect_bindings).map(m=>$(Qe({...m.node},i.state))))))])),d}let u=F&&p.at(-1)!=="ExpressionStatement"&&Ku(e)&&!i.state.scope.evaluate(r).is_primitive;if(p.at(-1)==="ArrowFunctionExpression"&&(p.at(-2)==="RegularElement"||p.at(-2)==="SvelteElement")&&i.path.at(-2).attributes.find(h=>h.type!=="Attribute"||!Pe(h)?!1:mt(h)===i.path.at(-1))&&(u=!1),(p.at(-1)==="BindDirective"||p.at(-1)==="Component"||p.at(-1)==="SvelteComponent"||p.at(-1)==="ArrowFunctionExpression"&&(p.at(-2)==="BindDirective"||p.at(-2)==="Component"&&p.at(-3)==="Fragment"||p.at(-2)==="SequenceExpression"&&(p.at(-3)==="Component"||p.at(-3)==="SvelteComponent"||p.at(-3)==="BindDirective")))&&(u=!1),t.type==="MemberExpression"&&u){let d=e!=="=",m=d&&we(r),h=y(m?"$.assign_async":"$.assign",t.object,t.computed?t.property:T(t.property.name),T(e),d?j([],r,m):r,T(jr(t)));return m&&(h=et(h)),i.visit(h)}return null}function pc(e,t){let r=!1,i=e.name.slice(2);Td(i)&&(i=i.slice(0,-7),r=!0);let s=Array.isArray(e.value)?e.value[0]:e.value,a=Is(s.expression,s.metadata.expression,t);e.metadata.delegated&&t.state.events.add(i);let n=$(Xu(t,i,a,r,Rd(i)?!0:void 0,e.metadata.delegated)),p=t.path.at(-1).type;p==="SvelteDocument"||p==="SvelteWindow"||p==="SvelteBody"?t.state.init.push(n):t.state.after_update.push(n)}function Xu(e,t,r,i,s,a){let n=r;if(F&&r.type==="ArrowFunctionExpression"){let p=e.state.scope.generate(t);n=Ue(w(p),r.params,r.body.type==="BlockStatement"?r.body:M([le(r.body)]),r.async)}return y(a?"$.delegated":"$.event",T(t),e.state.node,n,i&&Z,s===void 0?void 0:T(s))}function Is(e,t,r){if(e===null)return Ue(null,[w("$$arg")],M([$(y("$.bubble_event.call",rt,w("$$props"),w("$$arg")))]));let i=r.visit(e);if(i.type==="ArrowFunctionExpression"||i.type==="FunctionExpression")return i;if(i.type==="Identifier"){let a=r.state.scope.get(i.name);if(a?.is_function()||!F&&a?.declaration_kind!=="import"&&!a?.blocker)return i}if(t.has_call){let a=w(r.state.scope.generate("event_handler"));r.state.init.push(te(a,y("$.derived",O(i)))),i=y("$.get",a)}let s=y(X(i,"apply",!1,!0),rt,w("$$args"));if(F){let a=_e(e.start),n=e.type==="CallExpression"&&e.arguments.length===0&&e.callee.type==="Identifier";s=y("$.apply",O(i),rt,w("$$args"),w(r.state.analysis.name),z([T(a.line),T(a.column)]),r0(e)&&Z,n&&Z)}return Ue(null,[xi(w("$$args"))],M([$(s)]))}function r0(e){return e.type==="CallExpression"||e.type==="NewExpression"||e.type==="AssignmentExpression"||e.type==="UpdateExpression"?!0:e.type==="SequenceExpression"?e.expressions.some(r0):!1}function i0(e,t){Pe(e)&&pc(e,t)}function Ne(e){return y("$.get",e)}function Vi(e){for(let[t,r]of e.state.scope.declarations)(si(r,e.state.analysis)||r.kind==="derived"||r.kind==="legacy_reactive")&&(e.state.transform[t]={read:r.declaration_kind==="var"?i=>y("$.safe_get",i):Ne,assign:(i,s,a=!1)=>{let n=y("$.set",i,s,a&&Z);return e.state.scope.get(`$${i.name}`)?.kind==="store_sub"&&(n=y("$.store_unsub",n,T(`$${i.name}`),w("$$stores"))),n},mutate:(i,s)=>e.state.analysis.runes?s:y("$.mutate",i,s),update:i=>y(i.prefix?"$.update_pre":"$.update",i.argument,i.operator==="--"&&T(-1))})}function a0(e,t){t.state.template.push_comment();let r=Re(t,e.expression,e.metadata.expression),i=e.metadata.expression.has_await?Me(r,e.metadata.expression):O(r),s,a;if(e.then){let p={...t,state:{...t.state,transform:{...t.state.transform}}},u=e.value&&s0(e.value,p),d=[w("$$anchor")];u&&d.push(u.id);let m=u?.declarations??[],h=p.visit(e.then,p.state);s=j(d,M([...m,...h.body]))}if(e.catch){let p={...t,state:{...t.state}},u=e.error&&s0(e.error,p),d=[w("$$anchor")];u&&d.push(u.id);let m=u?.declarations??[],h=p.visit(e.catch,p.state);a=j(d,M([...m,...h.body]))}let n=ut(y("$.await",t.state.node,i,e.pending?j([w("$$anchor")],t.visit(e.pending)):st,s,a),e,"await");e.metadata.expression.has_blockers()||e.metadata.expression.has_await?t.state.init.push($(y("$.async",t.state.node,e.metadata.expression.blockers(),z([]),j([t.state.node],M([n]))))):t.state.init.push(n)}function s0(e,t){if(e.type==="Identifier")return t.state.transform[e.name]={read:Ne},{id:e,declarations:null};let r=t.visit(e),i=ue(e),s=w("$$source"),a=w("$$value"),n=M([te(r,y("$.get",s)),le(J(i.map(u=>ye("init",u,u))))]),p=[te(a,Ir(t.state,n))];for(let u of i)t.state.transform[u.name]={read:Ne},p.push(te(u,Ir(t.state,X(y("$.get",a),u))));return{id:s,declarations:p}}function n0(e,t){let r=t.visit(e.argument);return t.state.analysis.pickled_awaits.has(e)?tr(r):F&&!Ce(e,"await_reactivity_loss")?y({...e,argument:y("$.track_reactivity_loss",r)}):r===e.argument?e:{...e,argument:r}}function o0(e,t){if(F){let r=e.operator;if(r==="==="||r==="!==")return y("$.strict_equals",t.visit(e.left),t.visit(e.right),r==="!=="&&Jt);if(r==="=="||r==="!=")return y("$.equals",t.visit(e.left),t.visit(e.right),r==="!="&&Jt)}t.next()}function ni(e,t,r,i){let s=i.state.metadata.bound_contenteditable,a=t,n=0,p=[];function u(h){return n===0?a(h):y("$.sibling",a(!1),(h||n!==1)&&T(n),h&&Z)}function d(h,_,v){let E=u(h),l=E;return l.type!=="Identifier"&&(l=w(i.state.scope.generate(_),v),i.state.init.push(te(l,E))),a=()=>l,n=1,l}function m(h){if(h.every(g=>g.type==="Text")){n+=1,i.state.template.push_text(h);return}i.state.template.push_text([{type:"Text",data:" ",raw:" ",start:-1,end:-1}]);let{has_state:_,value:v}=Nr(h,i),E=h.length===1,l=d(E,"text"),o=$(y("$.set_text",l,v));_&&!s?i.state.update.push(o):i.state.init.push($(ee("=",X(l,"nodeValue"),v)))}for(let h of e)if(h.type==="Text"||h.type==="ExpressionTag")p.push(h);else{p.length>0&&(m(p),p=[]);let _=i.state;if(Ju(h))n+=1;else if((h.type==="EachBlock"||h.type==="HtmlTag")&&e.length===1&&r&&!h.metadata.expression.is_async())h.metadata.is_controlled=!0;else{let v=d(!1,h.type==="RegularElement"?h.name:"node",h.type==="RegularElement"?h.name_loc:null);_={...i.state,node:v}}i.visit(h,_)}p.length>0&&m(p),n>1&&(n-=1,i.state.init.push($(y("$.next",n!==1&&T(n)))))}function Ju(e){if(e.type!=="RegularElement"||e.fragment.metadata.dynamic||ct(e))return!1;for(let t of e.attributes)if(t.type!=="Attribute"||Pe(t)||ci(t.name)||t.name==="dir"||["input","textarea","select"].includes(e.name)&&["value","checked"].includes(t.name)||e.name==="option"&&t.name==="value"||t.value!==!0&&!me(t))return!1;return!0}var Vq="accent-height accumulate additive alignment-baseline allowReorder alphabetic amplitude arabic-form ascent attributeName attributeType autoReverse azimuth baseFrequency baseline-shift baseProfile bbox begin bias by calcMode cap-height class clip clipPathUnits clip-path clip-rule color color-interpolation color-interpolation-filters color-profile color-rendering contentScriptType contentStyleType cursor cx cy d decelerate descent diffuseConstant direction display divisor dominant-baseline dur dx dy edgeMode elevation enable-background end exponent externalResourcesRequired fill fill-opacity fill-rule filter filterRes filterUnits flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight format from fr fx fy g1 g2 glyph-name glyph-orientation-horizontal glyph-orientation-vertical glyphRef gradientTransform gradientUnits hanging height href horiz-adv-x horiz-origin-x id ideographic image-rendering in in2 intercept k k1 k2 k3 k4 kernelMatrix kernelUnitLength kerning keyPoints keySplines keyTimes lang lengthAdjust letter-spacing lighting-color limitingConeAngle local marker-end marker-mid marker-start markerHeight markerUnits markerWidth mask maskContentUnits maskUnits mathematical max media method min mode name numOctaves offset onabort onactivate onbegin onclick onend onerror onfocusin onfocusout onload onmousedown onmousemove onmouseout onmouseover onmouseup onrepeat onresize onscroll onunload opacity operator order orient orientation origin overflow overline-position overline-thickness panose-1 paint-order pathLength patternContentUnits patternTransform patternUnits pointer-events points pointsAtX pointsAtY pointsAtZ preserveAlpha preserveAspectRatio primitiveUnits r radius refX refY rendering-intent repeatCount repeatDur requiredExtensions requiredFeatures restart result rotate rx ry scale seed shape-rendering slope spacing specularConstant specularExponent speed spreadMethod startOffset stdDeviation stemh stemv stitchTiles stop-color stop-opacity strikethrough-position strikethrough-thickness string stroke stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width style surfaceScale systemLanguage tabindex tableValues target targetX targetY text-anchor text-decoration text-rendering textLength to transform type u1 u2 underline-position underline-thickness unicode unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical values version vert-adv-y vert-origin-x vert-origin-y viewBox viewTarget visibility width widths word-spacing writing-mode x x-height x1 x2 xChannelSelector xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type xml:base xml:lang xml:space y y1 y2 yChannelSelector z zoomAndPan".split(" "),l0=new Map;Vq.forEach(e=>{l0.set(e.toLowerCase(),e)});function Yu(e){return e=e.toLowerCase(),l0.get(e)||e}var zi=class{contains_script_tag=!1;needs_import_node=!1;nodes=[];#e=[this.nodes];#t;#r=this.nodes;push_element(t,r,i){this.#t={type:"element",name:t,attributes:{},children:[],is_html:i,start:r},this.#r.push(this.#t),this.#r=this.#t.children,this.#e.push(this.#r)}push_comment(t){this.#r.push({type:"comment",data:t})}push_text(t){this.#r.push({type:"text",nodes:t})}pop_element(){this.#e.pop(),this.#r=this.#e.at(-1)}set_prop(t,r){this.#t.attributes[t]=r}as_html(){return gr([Et(this.nodes.map(c0).join(""),!0)],[])}as_tree(){return this.nodes[0].type==="comment"&&this.nodes.unshift({type:"comment",data:void 0}),z(this.nodes.map(p0))}};function c0(e){if(e.type==="text")return e.nodes.map(r=>r.raw).join("");if(e.type==="comment")return e.data?`<!--${e.data}-->`:"<!>";let t=`<${e.name}`;for(let r in e.attributes){let i=e.attributes[r];t+=` ${e.is_html?r.toLowerCase():r}`,i!==void 0&&(t+=`="${Gt(i,!0)}"`)}return vt(e.name)?t+="/>":(t+=">",t+=e.children.map(c0).join(""),t+=`</${e.name}>`),t}function p0(e){if(e.type==="text")return T(e.nodes.map(i=>i.data).join(""));if(e.type==="comment")return e.data?z([T(`// ${e.data}`)]):null;let t=z([T(e.name)]),r=J([]);for(let i in e.attributes){let s=e.attributes[i];r.properties.push(ye("init",Be(Yu(i)),s===void 0?Te:T(s)))}if((r.properties.length>0||e.children.length>0)&&t.elements.push(r.properties.length>0?r:st),e.children.length>0){let i=e.children.map(p0);if(t.elements.push(...i),e.name==="pre"||e.name==="textarea"){let s=i[0];s?.type==="Literal"&&(s.value=s.value.replace(Lr,""))}}return t}function u0(e){let t=z([]);for(let r of e){if(r.type!=="element")continue;let{line:i,column:s}=_e(r.start),a=z([T(i),T(s)]),n=u0(r.children);n.elements.length>0&&a.elements.push(n),t.elements.push(a)}return t}function Ns(e,t,r=0){let i=e.metadata.namespace,s=e.options.fragments==="tree",{nodes:a}=e.template;if(a.length===1&&a[0].type==="comment")return w("$.comment");let p=s?e.template.as_tree():e.template.as_html(),u=s||F?null:Gq(p,e.metadata.namespace,r);if(u!==null){let h=e.templates.get(u);if(h!==void 0)return h}s&&(i==="svg"&&(r|=4),i==="mathml"&&(r|=8));let d=y(s?"$.from_tree":`$.from_${i}`,p,r?T(r):void 0);e.template.contains_script_tag&&(d=y("$.with_script",d)),F&&(d=y("$.add_locations",d,X(w(e.analysis.name),"$.FILENAME",!0),u0(e.template.nodes)));let m=e.scope.root.unique(t);return e.hoisted.push(te(m,d)),u!==null&&e.templates.set(u,m),m}function Gq(e,t,r){return`${t} ${r} ${e.quasis[0].value.raw}`}function f0(e,t){let r=t.state.metadata.namespace==="html"&&e.name!=="svg",i=r?e.name.toLowerCase():e.name;if(t.state.template.push_element(i,e.start,r),i==="noscript"){t.state.template.pop_element();return}let s=ct(e);t.state.template.needs_import_node||=i==="video"||s,t.state.template.contains_script_tag||=i==="script";let a=[],n=[],p=[],u=[],d=[],m=new Map,h=new Map,_=e.metadata.has_spread,v=!1,E=!1;for(let c of e.attributes)switch(c.type){case"AnimateDirective":u.push(c);break;case"Attribute":if(c.name==="is"&&t.state.metadata.namespace==="html"){let{value:f}=Le(c.value,t);if(f.type==="Literal"&&typeof f.value=="string"){t.state.template.set_prop("is",f.value);continue}}a.push(c),m.set(c.name,c);break;case"BindDirective":h.set(c.name,c),u.push(c);break;case"ClassDirective":n.push(c);break;case"LetDirective":t.visit(c,{...t.state,let_directives:d});break;case"OnDirective":u.push(c);break;case"SpreadAttribute":a.push(c);break;case"StyleDirective":p.push(c);break;case"TransitionDirective":u.push(c);break;case"UseDirective":v=!0,u.push(c);break;case"AttachTag":u.push(c);break}let l={...t.state,init:[],after_update:[]};for(let c of u)if(c.type==="OnDirective"){let f=t.visit(c);v?l.init.push($(y("$.effect",O(f)))):l.after_update.push($(f))}else t.visit(c,l);if(i==="input"){let c=a.some(b=>b.type==="Attribute"&&(b.name==="value"||b.name==="checked")&&!me(b));!a.some(b=>b.type==="Attribute"&&(b.name==="defaultValue"||b.name==="defaultChecked"))&&(_||h.has("value")||h.has("checked")||h.has("group")||!h.has("group")&&c)&&(_?E=!0:t.state.init.push($(y("$.remove_input_defaults",t.state.node))))}if(i==="textarea"){let c=m.get("value")??m.get("checked"),f=c&&!me(c);(_||h.has("value")||f)&&t.state.init.push($(y("$.remove_textarea_child",t.state.node)))}t.state.let_directives.push(...d);let o=t.state.node,g=i==="option"||i==="select"||h.has("group")||h.has("checked");if(_)dc(a,n,p,t,e,o,E);else for(let c of a){if(Pe(c)){pc(c,t);continue}if(g&&c.name==="value"||e.name==="select"&&uc(e,c)==="defaultValue")continue;let f=uc(e,c);if(!s&&!ci(c.name)&&(f!=="value"||e.name!=="textarea")&&(c.value===!0||me(c))&&(f!=="class"||n.length===0)&&(f!=="style"||p.length===0)){let b=me(c)?c.value[0].data:!0;f==="class"&&e.metadata.scoped&&t.state.analysis.css.hash&&(b===!0||b===""?b=t.state.analysis.css.hash:b+=" "+t.state.analysis.css.hash),(f!=="class"||b)&&t.state.template.set_prop(c.name,b===!0?"":b)}else if(f==="autofocus"){let{value:b}=Le(c.value,t);t.state.init.push($(y("$.autofocus",o,b)))}else if(f==="class")fc(e,o,c,n,t,r);else if(f==="style")m0(o,c,p,t);else if(s)Xq(o,c,t);else{let{value:b,has_state:x}=Le(c.value,t,(I,D)=>t.state.memoizer.add(I,D)),A=Kq(e,o,f,b,a);(x?t.state.update:t.state.init).push($(A))}}ui(i)&&(_||v||m.has("onload")||m.has("onerror"))&&t.state.after_update.push($(y("$.replay_events",o)));let k={...t.state.metadata,namespace:qr(e,t.state.metadata.namespace)};if(h.has("innerHTML")||h.has("innerText")||h.has("textContent")){let c=m.get("contenteditable");c&&(c.value===!0||me(c)&&c.value[0].data==="true")&&(k.bound_contenteditable=!0)}let S=t.state.scopes.get(e.fragment),C={...t.state,metadata:k,scope:S,transform:ac(S,t.state),preserve_whitespace:t.state.preserve_whitespace||i==="pre"||i==="textarea"},{hoisted:P,trimmed:R}=Rr(e,e.fragment.nodes,t.path,C.metadata.namespace,C,i==="script"||C.preserve_whitespace,C.options.preserveComments),L=!e.fragment.metadata.transparent,H={...C,init:[],update:[],after_update:[],snippets:[],consts:L?[]:C.consts,async_consts:L?void 0:C.async_consts,memoizer:L?new Fe:C.memoizer};for(let c of P)t.visit(c,H);if(R.every(c=>c.type==="Text"||c.type==="ExpressionTag")&&R.every(c=>c.type==="Text"||!c.metadata.expression.has_state&&!c.metadata.expression.has_await&&!c.metadata.expression.has_blockers())&&R.some(c=>c.type==="ExpressionTag")){let{value:c}=Nr(R,t,H);c.type==="Literal"&&c.value===""||H.init.push($(ee("=",X(t.state.node,"textContent"),c)))}else if(kr(e)){let c=t.state.node;t.state.template.push_comment();let f=w(t.state.scope.generate("fragment")),b=w(t.state.scope.generate("anchor")),x={...C,init:[],update:[],after_update:[],template:new zi};ni(R,D=>y("$.first_child",f,D&&Z),!1,{...t,state:x});let A=Ns(x,`${i}_content`,1),I=M([te(b,y("$.child",c)),te(f,y(A)),...x.init,...x.update.length>0?[ai(x)]:[],...x.after_update,$(y("$.append",b,f))]);H.init.push($(y("$.customizable_select",c,j([],I))))}else{let c=t.state.node,f=R.some(b=>b.type!=="Text"&&!Ju(b));i==="template"&&(f=!0,H.init.push($(y("$.hydrate_template",c))),c=X(c,"content")),ni(R,b=>y("$.child",c,b&&Z),!0,{...t,state:H}),f&&!Jq(H.init,t.state.node)&&H.init.push($(y("$.reset",t.state.node)))}if(e.fragment.nodes.some(c=>c.type==="SnippetBlock")||L?(H.async_consts&&H.async_consts.thunks.length>0&&H.consts.push(te(H.async_consts.id,y("$.run",z(H.async_consts.thunks)))),t.state.init.push(M([...H.snippets,...H.consts,...H.init,...l.init,H.update.length>0?ai(H):ce,...H.after_update,...l.after_update]))):e.fragment.metadata.dynamic?(t.state.init.push(...H.init,...l.init),t.state.update.push(...H.update),t.state.after_update.push(...H.after_update,...l.after_update)):(t.state.init.push(...l.init),t.state.after_update.push(...l.after_update)),i==="selectedcontent"&&t.state.init.push($(y("$.selectedcontent",t.state.node,j([w("$$element")],ee("=",t.state.node,w("$$element")))))),m.has("dir")){let c=X(o,"dir");t.state.update.push($(ee("=",c,c)))}if(!_&&g){if(e.metadata.synthetic_value_node){let c=e.metadata.synthetic_value_node,f=Ct("value",null,c.start,c.end,[c]);d0(i,o,f,t,!0)}else for(let c of a)if(c.name==="value"){d0(i,o,c,t);break}}if(!_&&i==="select"){let c=a.find(x=>uc(e,x)==="defaultValue");if(c){let{value:x,has_state:A}=Le(c.value,t,(I,D)=>t.state.memoizer.add(I,D));(A?t.state.update:t.state.init).push($(y("$.set_default_select_value",o,x)))}let f=m.get("value"),b=f!==void 0&&f.value!==!0&&!me(f);(c||b||h.has("value"))&&t.state.init.push($(y("$.init_select",o)))}t.state.template.pop_element()}function Qu(e,t,r=t.state.memoizer){let i=[];for(let s of e){let a=t.visit(s.expression);i.push(Y(s.name,r.add(a,s.metadata.expression)))}return J(i)}function ed(e,t,r=t.state.memoizer){let i=J([]),s=J([]);for(let a of e){let n=a.value===!0?Qe(w(a.name),t.state):Le(a.value,t).value;(a.modifiers.includes("important")?s:i).properties.push(Y(a.name,r.add(n,a.metadata.expression)))}return s.properties.length?z([i,s]):i}function Kq(e,t,r,i,s){return r==="muted"?ee("=",X(t,w("muted")),i):r==="value"?y("$.set_value",t,i):r==="checked"?y("$.set_checked",t,i):r==="selected"?y("$.set_selected",t,i):r==="defaultValue"&&(s.some(a=>a.type==="Attribute"&&a.name==="value"&&me(a))||e.name==="textarea"&&e.fragment.nodes.length>0)?y("$.set_default_value",t,i):r==="defaultChecked"&&s.some(a=>a.type==="Attribute"&&a.name==="checked"&&a.value===!0)?y("$.set_default_checked",t,i):$d(r)?ee("=",X(t,r),i):y(r.startsWith("xlink")?"$.set_xlink_attribute":"$.set_attribute",t,T(r),i,Ce(e,"hydration_attribute_changed")&&Z)}function Xq(e,t,r){let i=new Fe,{value:s,has_state:a}=Le(t.value,r,(u,d)=>i.add(u,d)),n=y("$.set_custom_element_data",e,T(t.name),s),p=a?y("$.template_effect",j(i.apply(),n),i.sync_values(),i.async_values(),i.blockers()):n;r.state.init.push($(p))}function d0(e,t,r,i,s=!1){let a=i.state,n=e==="select"&&r.value!==!0&&!me(r),{value:p,has_state:u}=Le(r.value,i,(h,_)=>a.memoizer.add(h,_)),d=i.state.scope.evaluate(p),m=h=>{let _=ee("=",X(t,"__value"),h),v=ee("=",X(t,"value"),d.is_defined?_:it("??",_,T("")));return $(n?Oe([v,y("$.select_option",t,h)]):s?_:v)};if(u){let h=w(a.scope.generate(`${t.name}_value`)),_=e==="option"?J([]):void 0;a.init.push(te(h,_)),a.update.push(qe(kt("!==",h,ee("=",h,p)),M([m(h)])))}else a.init.push(m(p))}function Jq(e,t){let r=e.at(-1);if(t?.type!=="Identifier"||r?.type!=="VariableDeclaration"||r.declarations.length!==1)return!1;let i=r.declarations[0].init;return i?.type!=="CallExpression"||i.callee.type!=="Identifier"||i.callee.name!=="$.child"||i.arguments[0]?.type!=="Identifier"||i.arguments[0].name!==t.name?!1:(i.callee=w("$.only_child"),!0)}function dc(e,t,r,i,s,a,n=!1){let p=[],u=s.type==="RegularElement"&&s.name==="select",d=new Fe;for(let h of e)if(h.type==="Attribute"){let{value:_}=Le(h.value,i,(v,E)=>d.add(v,E));if(Pe(h)&&(_.type==="ArrowFunctionExpression"||_.type==="FunctionExpression")){let v=i.state.scope.generate("event_handler");i.state.init.push(te(v,_)),p.push(Y(h.name,w(v)))}else{let v=u&&Cc(h.name)==="defaultValue"?"defaultValue":h.name;p.push(Y(v,_))}}else{let _=i.visit(h);_=d.add(_,h.metadata.expression),p.push(ft(_))}t.length&&p.push(ye("init",z([w("$.CLASS")]),Qu(t,i,d))),r.length&&p.push(ye("init",z([w("$.STYLE")]),ed(r,i,d)));let m=d.apply();i.state.init.push($(y("$.attribute_effect",a,j(m,J(p)),d.sync_values(),d.async_values(),d.blockers(),s.metadata.scoped&&i.state.analysis.css.hash!==""&&T(i.state.analysis.css.hash),n&&Z,Ce(s,"hydration_attribute_changed")&&Z)))}function Le(e,t,r=i=>i){if(e===!0)return{value:Z,has_state:!1};if(!Array.isArray(e)||e.length===1){let i=Array.isArray(e)?e[0]:e;if(i.type==="Text")return{value:T(i.data),has_state:!1};let s=Re(t,i.expression,i.metadata.expression);return{value:r(s,i.metadata.expression),has_state:i.metadata.expression.has_state||i.metadata.expression.is_async()}}return Nr(e,t,t.state,r)}function uc(e,t){return!e.metadata.svg&&!e.metadata.mathml?Cc(t.name):t.name}function fc(e,t,r,i,s,a){let{value:n,has_state:p}=Le(r.value,s,(v,E)=>(r.metadata.needs_clsx&&(v=y("$.clsx",v)),s.state.memoizer.add(v,E))),u,d,m;i.length&&(m=Qu(i,s),p||=i.some(v=>v.metadata.expression.has_state||v.metadata.expression.is_async()),p?(u=w(s.state.scope.generate("classes")),s.state.init.push(lt("let",[ne(u)])),d=u):d=J([]));let h;e.metadata.scoped&&s.state.analysis.css.hash&&(n.type==="Literal"&&(n.value===""||n.value===null)?n=T(s.state.analysis.css.hash):n.type==="Literal"&&typeof n.value=="string"?n=T(Gt(n.value,!0)+" "+s.state.analysis.css.hash):h=T(s.state.analysis.css.hash)),!h&&m&&(h=st);let _=y("$.set_class",t,a?T(1):T(0),n,h,d,m);u&&(_=ee("=",u,_)),(p?s.state.update:s.state.init).push($(_))}function m0(e,t,r,i){let{value:s,has_state:a}=Le(t.value,i,(m,h)=>i.state.memoizer.add(m,h)),n,p,u;r.length&&(u=ed(r,i),a||=r.some(m=>m.metadata.expression.has_state||m.metadata.expression.is_async()),a?(n=w(i.state.scope.generate("styles")),i.state.init.push(lt("let",[ne(n)])),p=n):p=J([]));let d=y("$.set_style",e,s,p,u);n&&(d=ee("=",n,d)),(a?i.state.update:i.state.init).push($(d))}function h0(e,t){let r=t.visit(e.expression),i=zt[e.name],s=t.path.at(-1),a,n;if(r.type==="SequenceExpression")[a,n]=r.expressions;else{F&&t.state.analysis.runes&&r.type==="MemberExpression"&&(e.name!=="this"||t.path.some(({type:_})=>_==="IfBlock"||_==="EachBlock"||_==="AwaitBlock"||_==="KeyBlock"))&&!Ce(e,"binding_property_non_reactive")&&oc(t.state,e,r);let m=ee("=",e.expression,w("$$value"));Xt.set(m,Xt.get(e)??[]);let h=t.visit(m);F?(a=Ue(w("get",e.name_loc),[],M([le(r)])),n=Ue(w("set",e.name_loc),[w("$$value")],M([$(h)]))):(a=O(r),n=yp(j([w("$$value")],h)),a===n&&(n=void 0))}let p;if(i?.event)p=y("$.bind_property",T(e.name),T(i.event),t.state.node,n??a,i.bidirectional&&a);else switch(e.name){case"online":p=y("$.bind_online",n??a);break;case"scrollX":case"scrollY":p=y("$.bind_window_scroll",T(e.name==="scrollX"?"x":"y"),a,n);break;case"innerWidth":case"innerHeight":case"outerWidth":case"outerHeight":p=y("$.bind_window_size",T(e.name),n??a);break;case"activeElement":p=y("$.bind_active_element",n??a);break;case"muted":p=y("$.bind_muted",t.state.node,a,n);break;case"paused":p=y("$.bind_paused",t.state.node,a,n);break;case"volume":p=y("$.bind_volume",t.state.node,a,n);break;case"playbackRate":p=y("$.bind_playback_rate",t.state.node,a,n);break;case"currentTime":p=y("$.bind_current_time",t.state.node,a,n);break;case"buffered":p=y("$.bind_buffered",t.state.node,n??a);break;case"played":p=y("$.bind_played",t.state.node,n??a);break;case"seekable":p=y("$.bind_seekable",t.state.node,n??a);break;case"seeking":p=y("$.bind_seeking",t.state.node,n??a);break;case"ended":p=y("$.bind_ended",t.state.node,n??a);break;case"readyState":p=y("$.bind_ready_state",t.state.node,n??a);break;case"contentRect":case"contentBoxSize":case"borderBoxSize":case"devicePixelContentBoxSize":p=y("$.bind_resize_observer",t.state.node,T(e.name),n??a);break;case"clientWidth":case"clientHeight":case"offsetWidth":case"offsetHeight":p=y("$.bind_element_size",t.state.node,T(e.name),n??a);break;case"value":{s?.type==="RegularElement"&&s.name==="select"?p=y("$.bind_select_value",t.state.node,a,n):p=y("$.bind_value",t.state.node,a,n);break}case"files":p=y("$.bind_files",t.state.node,a,n);break;case"this":p=nc(e.expression,t.state.node,t);break;case"textContent":case"innerHTML":case"innerText":p=y("$.bind_content_editable",T(e.name),t.state.node,a,n);break;case"checked":p=y("$.bind_checked",t.state.node,a,n);break;case"focused":p=y("$.bind_focused",t.state.node,n??a);break;case"group":{let m=e.metadata.parent_each_blocks.map(_=>_.metadata.keyed&&_.index?y("$.get",_.metadata.index):_.metadata.index),h=a;if(s?.type==="RegularElement"){let _=s.attributes.find(v=>v.type==="Attribute"&&v.name==="value"&&!me(v)&&v.value!==!0)?.value;_!==void 0&&(h=O(M([$(Le(_,t).value),le(r)])))}p=y("$.bind_group",e.metadata.binding_group_name,z(m),t.state.node,h,n??a);break}default:throw new Error("unknown binding "+e.name)}let u=e.name!=="this"&&s.type==="RegularElement"&&s.attributes.find(m=>m.type==="UseDirective"),d=u?$(y("$.effect",O(p))):$(p);e.metadata.expression.is_async()&&(d=$(y("$.run_after_blockers",e.metadata.expression.blockers(),O(M([d]))))),e.name==="this"||u?t.state.init.push(d):t.state.after_update.push(d)}function _0(e,t){Vi(t);let r=t.state.scope.tracing;if(r!==null){let s=t.path.at(-1).async,a=y("$.trace",r,O(M(e.body.map(n=>t.visit(n))),s));return M([le(s?et(a):a)])}t.next()}function b0(e,t){if(t.state.analysis.runes||!e.label||e.label.name!=="$")return;if(t.path[1].type==="LabeledStatement"&&t.path[1].label.name==="$")return le()}function y0(e,t){let r=he(e,t.state.scope);switch(r){case"$host":return w("$$props.$$host");case"$effect.tracking":return y("$.effect_tracking");case"$state":case"$state.raw":{let i=e.arguments[0],s;i&&(s=t.visit(e.arguments[0]),r==="$state"&&$t(i,t.state.scope)&&(s=y("$.proxy",s)));let a=w("$.state",e.callee.loc);return y(a,s)}case"$derived":case"$derived.by":{let i=t.visit(e.arguments[0]);return y("$.derived",r==="$derived"?O(i):i)}case"$state.eager":return y("$.eager",O(t.visit(e.arguments[0])));case"$state.snapshot":return y("$.snapshot",t.visit(e.arguments[0]),Ce(e,"state_snapshot_uncloneable")&&Z);case"$effect":case"$effect.pre":{let i=r==="$effect"?"$.user_effect":"$.user_pre_effect",s=t.visit(e.arguments[0]),a=y(i,s);return a.callee.loc=e.callee.loc,a}case"$effect.root":return y("$.effect_root",...e.arguments.map(i=>t.visit(i)));case"$effect.pending":return y("$.eager",O(y("$.pending")));case"$inspect":case"$inspect().with":return Yq(r,e,t)}if(F&&e.callee.type==="MemberExpression"&&e.callee.object.type==="Identifier"&&e.callee.object.name==="console"&&t.state.scope.get("console")===null&&e.callee.property.type==="Identifier"&&["debug","dir","error","group","groupCollapsed","info","log","trace","warn"].includes(e.callee.property.name)&&e.arguments.some(i=>i.type==="SpreadElement"||t.state.scope.evaluate(i).has_unknown))return y(e.callee,ft(y("$.log_if_contains_state",T(e.callee.property.name),...e.arguments.map(i=>t.visit(i)))));t.next()}function Yq(e,t,r){if(!F)return ce;let{args:i,inspector:s}=Ql(e,t,r.visit),a=w("$$args"),n=j([xi(a)],y(s,ft(a)));return y("$.inspect",O(z(i)),n,e==="$inspect"&&Z)}function g0(e,t){let r=t.state.analysis.classes.get(e);if(!r){t.next();return}let i=[],s={...t.state,state_fields:r};for(let[n,p]of r)if(n[0]!=="#"&&p.node.type==="AssignmentExpression"){let u=X(rt,p.key),d=p.type==="$state"&&!0,m=Be(n);i.push(Kr(p.key,null),jt("get",m,[],[le(y("$.get",u))]),jt("set",m,[w("value")],[$(y("$.set",u,w("value"),d&&Z))]))}let a=er(t.path,-1);for(let n of e.body){if(n.type!=="PropertyDefinition"){i.push(t.visit(n,s));continue}let p=Ye(n.key),u=p&&r.get(p);if(!u){i.push(t.visit(n,s));continue}if(p[0]==="#"){let d=n.value?t.visit(n.value,s):void 0;F&&u.node===n&&(d=y("$.tag",d,T(`${a.id?.name??"[class]"}.${p}`))),i.push(Kr(n.key,d))}else if(u.node===n){let d=t.visit(u.value,s);F&&(d=y("$.tag",d,T(`${a.id?.name??"[class]"}.${p}`)));let m=X(rt,u.key),h=u.type==="$state"&&!0;i.push(Kr(u.key,d),jt("get",n.key,[],[le(y("$.get",m))]),jt("set",n.key,[w("value")],[$(y("$.set",m,w("value"),h&&Z))]))}}return{...e,body:i}}function v0(e,t){t.state.template.push_comment(e.data)}function Wi(e,t,r,i){let s=i.state.node,a=[],n=[],p=[],u={default:{...i.state,scope:e.metadata.scopes.default,transform:{...i.state.transform}}},d={},m={},h=new Fe,_=[],v=null,E=[],l=e.type==="SvelteComponent"||e.type==="Component"&&e.metadata.dynamic,o=e.type==="Component"&&e.metadata.dynamic?i.state.scope.generate(e.name):"$$component",g=!!Pt(e),k=!1;function S(f,b=!1){let x=()=>{let A=a.at(-1),I=Array.isArray(A),D=I?A:[];D.push(f),I||a.push(D)};b?n.push(x):x()}if(g)for(let f of e.attributes)f.type==="LetDirective"&&i.visit(f,{...i.state,let_directives:p});for(let f of e.attributes)if(f.type==="LetDirective")g||i.visit(f,{...u.default,let_directives:p});else if(f.type==="OnDirective"){f.expression||(i.state.analysis.needs_props=!0);let b=Is(f.expression,f.metadata.expression,i);f.modifiers.includes("once")&&(b=y("$.once",b)),(m[f.name]||=[]).push(b)}else if(f.type==="SpreadAttribute"){let b=i.visit(f),x=h.add(b,f.metadata.expression),A=b!==x;A||f.metadata.expression.has_state||f.metadata.expression.has_await?a.push(O(A?y("$.get",x):b)):a.push(b)}else if(f.type==="Attribute"){if(f.name.startsWith("--")){_.push(Y(f.name,Le(f.value,i,(A,I)=>{let D=h.add(A,I);return A!==D?y("$.get",D):A}).value));continue}f.name==="slot"&&(g=!0),f.name==="children"&&(k=!0);let{value:b,has_state:x}=Le(f.value,i,(A,I)=>{let D=I.has_await||vr(f.value).some(V=>V.type==="ExpressionTag"&&V.expression.type!=="Identifier"&&V.expression.type!=="MemberExpression"),G=h.add(A,I,D);return A!==G?y("$.get",G):A});S(x?tt(f.name,[le(b)]):Y(f.name,b))}else if(f.type==="BindDirective"){let b=i.visit(f.expression,{...i.state,memoizer:h});if(h.check_blockers(f.metadata.expression),F&&f.name!=="this"&&!Ce(e,"ownership_invalid_binding")&&f.expression.type!=="SequenceExpression"){let x=Ie(f.expression),A=x&&i.state.scope.get(x.name);(A?.kind==="bindable_prop"||A?.kind==="prop")&&(i.state.analysis.needs_mutation_validation=!0,E.push($(y("$$ownership_validator.binding",T(A.node.name),w(l?o:t),O(b)))))}if(b.type==="SequenceExpression")if(f.name==="this")v=f.expression;else{let[x,A]=b.expressions,I=w(i.state.scope.generate("bind_get")),D=w(i.state.scope.generate("bind_set"));i.state.init.push(te(I,x)),i.state.init.push(te(D,A)),S(tt(f.name,[le(y(I))])),S(St(f.name,[$(y(D,w("$$value")))]))}else if(F&&b.type==="MemberExpression"&&i.state.analysis.runes&&!Ce(e,"binding_property_non_reactive")&&oc(i.state,f,b),f.name==="this")v=f.expression;else{let A=f.expression.type==="Identifier"&&i.state.scope.get(f.expression.name)?.kind==="store_sub"?tt(f.name,[$(y("$.mark_store_binding")),le(b)]):tt(f.name,[le(b)]),I=ee("=",f.expression,w("$$value")),D=St(f.name,[$(i.visit(I))]);A.key.loc=f.name_loc,D.key.loc=f.name_loc,S(A,!0),S(D,!0)}}else if(f.type==="AttachTag"){let b=i.state.scope.evaluate(f.expression),x=i.visit(f.expression);f.metadata.expression.has_state&&(x=j([w("$$node")],y(b.is_function?x:it("||",x,w("$.noop")),w("$$node")))),h.check_blockers(f.metadata.expression),S(ye("init",y("$.attachment"),x,!0))}if(n.forEach(f=>f()),g&&i.state.init.push(...p),Object.keys(m).length>0){let f=J(Object.keys(m).map(b=>Y(b,m[b].length>1?z(m[b]):m[b][0])));S(Y("$$events",f))}let C=[],P=[];for(let f of e.fragment.nodes){if(f.type==="SnippetBlock"){i.visit(f,{...i.state,snippets:C}),S(ye("init",f.expression,f.expression)),P.push(Y(f.expression.name==="children"?"default":f.expression.name,Z));continue}let b=Pt(f)??"default";(d[b]||=[]).push(f)}for(let f of Object.keys(d)){let b=i.visit({...e.fragment,nodes:d[f]},f==="default"?g?i.state:u.default:{...i.state,scope:e.metadata.scopes[f],transform:{...i.state.transform}});if(b.body.length===0)continue;let x=j([w("$$anchor"),w("$$slotProps")],M([...f==="default"&&!g?p:[],...b.body]));f==="default"&&!k?p.length===0&&d.default.every(A=>A.type!=="SvelteFragment"||!A.attributes.some(I=>I.type==="LetDirective"))?(S(Y("children",F?y("$.wrap_snippet",w(i.state.analysis.name),x):x)),P.push(Y(f,Z))):(P.push(Y(f,x)),S(Y("children",w("$.invalid_default_snippet")))):P.push(Y(f,x))}P.length>0&&S(Y("$$slots",J(P))),!i.state.analysis.runes&&e.attributes.some(f=>f.type==="BindDirective")&&S(Y("$$legacy",Z));let R=a.length===0||a.length===1&&Array.isArray(a[0])?J(a[0]||[]):y("$.spread_props",...a.map(f=>Array.isArray(f)?J(f):f)),L=f=>{let b=l?w(o):i.visit(yr(t));return b.loc=r,y(b,f,R)};if(v!==null){let f=L;L=b=>nc(v,f(b),i)}e.type!=="SvelteSelf"&&h.check_blockers(e.metadata.expression);let H=[...C,...h.deriveds(i.state.analysis.runes)];if(l){let f=L;L=b=>y("$.component",b,O(i.visit(e.type==="Component"?yr(t):e.expression)),j([w("$$anchor"),w(o)],M([...E,$(f(w("$$anchor")))])))}else H.push(...E);Object.keys(_).length>0?(i.state.metadata.namespace==="svg"?i.state.template.push_element("g",e.start,!1):(i.state.template.push_element("svelte-css-wrapper",e.start,!1),i.state.template.set_prop("style","display: contents")),i.state.template.push_comment(),i.state.template.pop_element(),H.push($(y("$.css_props",s,O(J(_)))),$(L(X(s,"lastChild"))),$(y("$.reset",s)))):(i.state.template.push_comment(),H.push(ut(L(s),e,"component",{componentTag:e.name}))),h.apply();let se=h.async_values(),c=h.blockers();return(se||c)&&(H=[$(y("$.async",s,c,se,j([w("$$anchor"),...h.async_ids()],M(H))))],i.state.is_standalone&&H.push($(y("$.next")))),H.length>1?M(H):H[0]}function w0(e,t){let r=Wi(e,e.name,e.name_loc,t);t.state.init.push(r)}function x0(e,t){Vi(t);let r=t.visit(e.declaration);if(e.metadata.promises_id&&e.declaration.type==="VariableDeclaration"&&r?.type==="VariableDeclaration"){let{ids:i,assignments:s}=Zq(r);td(t,e.metadata,i,s,r.kind)}else t.state.consts.push(r??e.declaration)}function Zq(e){let t=new Map;for(let i of e.declarations)for(let s of ue(i.id))t.set(s.name,s);let r=e.declarations.filter(i=>i.init!==null).map(i=>$(ee("=",i.id,i.init)));return{ids:[...t.values()],assignments:r}}function td(e,t,r,i,s="let"){let a=e.state.async_consts??={id:t.promises_id,thunks:[]};for(let d of r)e.state.consts.push(s==="var"?te(d.name):De(d.name));let n=[...t.expression.references].map(d=>d.blocker).filter(d=>d!==null&&d.object!==e.state.async_consts?.id);n.length===1?a.thunks.push(O(X(n[0],"promise"))):n.length>0&&a.thunks.push(O(y("$.wait",z(n))));let p=t.expression.has_await||i.some(d=>Ft(d)),u=i.length===1?i[0].expression:M(i);a.thunks.push(p?Me(u,t.expression):O(u))}function E0(e,t){let r=e.declaration.declarations[0];if(r.id.type==="Identifier"){let i=Re(t,r.init,e.metadata.expression),s=Ir(t.state,i,e.metadata.expression);F&&(s=y("$.tag",s,T(r.id.name))),t.state.transform[r.id.name]={read:Ne},k0(t,r.id,s,e.metadata)}else{let i=ue(r.id),s=w(t.state.scope.generate("computed_const")),a={...t.state.transform};for(let h of i)delete a[h.name];let n={...t.state,transform:a},p=r.id.type==="ObjectPattern"&&r.id.properties.every(h=>h.type==="Property"&&!h.computed&&h.key.type==="Identifier"&&h.value.type==="Identifier"&&h.key.name===h.value.name),u=Re({...t,state:n},r.init,e.metadata.expression),d=p?M([le(u)]):M([ge(t.visit(r.id,n),u),le(J(i.map(h=>ye("init",h,h))))]),m=Ir(t.state,d,e.metadata.expression);F&&(m=y("$.tag",m,T("[@const]"))),k0(t,s,m,e.metadata);for(let h of i)t.state.transform[h.name]={read:_=>X(y("$.get",s),_)}}}function k0(e,t,r,i){let s=F?[$(y("$.get",t))]:[];if(i.promises_id)td(e,i,[t],[$(ee("=",t,r))],"let");else{let{state:a}=e;a.consts.push(ge(t,r)),a.consts.push(...s)}}function S0(e,t){let r=e.identifiers.map(a=>t.state.scope.get(a.name)?.blocker).filter(a=>a!=null),i=J(e.identifiers.map(a=>{let n=y("$.snapshot",t.visit(a));return ye("init",a,t.state.analysis.runes?n:y("$.untrack",O(n)))})),s=[O(M([$(y("console.log",i)),ha]))];r.length>0&&s.push(z([]),z([]),z(r)),t.state.init.push($(y("$.template_effect",...s)))}function C0(e,t){let r=e.metadata,i={...t.state,scope:t.state.scope.parent},s=Re({...t,state:i},e.expression,e.metadata.expression);r.is_controlled||t.state.template.push_comment();let a=0;e.metadata.keyed&&e.index&&(a|=2);let n=e.key?.type==="Identifier"&&e.context?.type==="Identifier"&&e.context?.name===e.key.name,p;for(let f of e.metadata.expression.dependencies)if(f.kind==="store_sub"){p=!0;break}for(let f of e.metadata.expression.dependencies)if(!(f.scope.function_depth>=t.state.scope.function_depth)&&(!t.state.analysis.runes||!n||p)){a|=1;break}t.state.analysis.runes&&!p&&(a|=16),e.key&&e.body.nodes.some(f=>f.type!=="RegularElement"&&f.type!=="SvelteElement"?!1:f.attributes.some(b=>b.type==="AnimateDirective"))&&(a|=8),r.is_controlled&&(a|=4);let u="";for(let f of e.metadata.expression.dependencies)if(f.kind==="store_sub"){u=f.node.name;break}let d=null;for(let[f]of t.state.scope.declarations)if(t.state.scope.parent?.get(f)!=null){d=t.state.scope.root.unique("$$array");break}let m={...t.state,transform:{...t.state.transform},store_to_invalidate:u},h={...t.state,transform:{...t.state.transform}},_=r.contains_group_binding||!e.index?r.index:w(e.index),v=e.context?.type==="Identifier"?e.context:w("$$item"),E=r.contains_group_binding,l=!1;e.index&&(m.transform[e.index]={read:f=>(E=!0,(a&2)!==0?Ne(f):f)},h.transform[e.index]={read:f=>(l=!0,f)});let o=[],g=u?y("$.invalidate_store",w("$$stores"),T(u)):void 0,k=[];if(!t.state.analysis.runes){let f=new Set;if(d)f.add(d),m.transform[d.name]={read:y};else for(let b of r.transitive_deps)f.add(b.node);for(let b of r2(t))for(let x of b.metadata.transitive_deps)f.add(x.node);if(f.size>0){let b=y("$.invalidate_inner_signals",O(Oe([...f].map(x=>t.visit({...x},m)))));k.push(b)}}if(g&&k.push(g),e.context?.type==="Identifier"){let f=t.state.scope.get(e.context.name);m.transform[e.context.name]={read:b=>f.reassigned?X(d?y(d):s,(a&2)!==0?Ne(_):_,!0):(a&1)!==0?Ne(b):b,assign:(b,x)=>{E=!0;let A=X(d?y(d):s,(a&2)!==0?Ne(_):_,!0);return Oe([ee("=",A,x),...k])},mutate:(b,x)=>(E=!0,Oe([x,...k]))},delete h.transform[e.context.name]}else if(e.context){let f=(a&1)!==0?y("$.get",v):v,{inserts:b,paths:x}=Xe(e.context,f);for(let{id:A,value:I}of b){A.name=t.state.scope.generate("$$array"),m.transform[A.name]={read:Ne};let D=t.visit(O(I),m);o.push(te(A,y("$.derived",D)))}for(let A of x){let I=A.node.name,D=A.has_default_value,G=O(t.visit(A.expression,m));o.push(De(A.node,D?y("$.derived_safe_equal",G):G));let V=D?Ne:y;m.transform[I]={read:V,assign:(B,pe)=>{let Ee=A.update_expression;return Oe([ee("=",Ee,pe),...k])},mutate:(B,pe)=>Oe([pe,...k])},F&&o.push($(V(w(I)))),delete h.transform[I]}}let S=t.visit(e.body,m),C=w("$.index");if(e.metadata.keyed){let f=t.visit(e.context,h),b=t.visit(e.key,h);C=j(l?[f,_]:[f],b)}e.index&&r.contains_group_binding&&o.push(De(e.index,_));let P=e.metadata.expression.has_await,R=P?Me(s,e.metadata.expression):O(s),L=P?O(y("$.get",w("$$collection"))):R,H=[w("$$anchor"),v];(E||d)&&H.push(_),d&&H.push(d);let se=[t.state.node,T(a),L,C,j(H,M(o.concat(S.body)))];e.fallback&&se.push(j([w("$$anchor")],t.visit(e.fallback)));let c=[ut(y("$.each",...se),e,"each")];e.metadata.expression.is_async()?t.state.init.push($(y("$.async",t.state.node,e.metadata.expression.blockers(),P?z([R]):Te,j(P?[t.state.node,w("$$collection")]:[t.state.node],M(c))))):t.state.init.push(...c)}function r2(e){return e.path.filter(t=>t.type==="EachBlock")}function T0(e,t){return t.state.is_instance?e.declaration?t.visit(e.declaration):ce:t.next()}function P0(e,t){if(e.expression.type==="CallExpression"&&he(e.expression,t.state.scope)==="$inspect.trace")return ce;t.next()}function A0(e,t){if(e.await&&F&&!Ce(e,"await_reactivity_loss")&&t.state.options.experimental.async){let r=t.visit(e.left),i=t.visit(e.right),s=t.visit(e.body),a=y("$.for_await_track_reactivity_loss",i);return rb(r,a,s,!0)}t.next()}function R0(e,t){let r=t.path.at(-1)??e,i=Zl(t.state.metadata.namespace,r,e.nodes),{hoisted:s,trimmed:a,is_standalone:n,is_text_first:p}=Rr(r,e.nodes,t.path,i,t.state,t.state.preserve_whitespace,t.state.options.preserveComments);if(s.length===0&&a.length===0)return M([]);let u=a.length===1&&a[0].type==="RegularElement",d=a.length===1&&(a[0].type==="SvelteFragment"||a[0].type==="TitleElement"||a[0].type==="IfBlock"&&a[0].elseif&&r.metadata.flattened?.includes(a[0])),m=[],h,_={...t.state,is_standalone:n,init:[],snippets:[],consts:[],let_directives:[],update:[],after_update:[],memoizer:new Fe,template:new zi,transform:{...t.state.transform},metadata:{namespace:i,bound_contenteditable:t.state.metadata.bound_contenteditable},async_consts:void 0};for(let v of s)t.visit(v,_);if(u){let v=a[0],E=w(t.state.scope.generate(v.name),v.name_loc);t.visit(v,{..._,node:E});let l=_.template.needs_import_node?2:void 0,o=Ns(_,"root",l);_.init.unshift(te(E,y(o))),h=$(y("$.append",w("$$anchor"),E))}else if(d)t.visit(a[0],_);else if(a.length===1&&a[0].type==="Text"){let v=w(t.state.scope.generate("text"));_.init.unshift(te(v,y("$.text",T(a[0].data)))),h=$(y("$.append",w("$$anchor"),v))}else if(a.length>0){let v=w(t.state.scope.generate("fragment"));if(a.some(l=>l.type==="ExpressionTag")&&a.every(l=>l.type==="Text"||l.type==="ExpressionTag")){let l=w(t.state.scope.generate("text"));ni(a,()=>l,!1,{...t,state:_}),_.init.unshift(te(l,y("$.text"))),h=$(y("$.append",w("$$anchor"),l))}else if(n)ni(a,()=>w("$$anchor"),!1,{...t,state:_});else{ni(a,k=>y("$.first_child",v,k&&Z),!1,{...t,state:_});let o=1;_.template.needs_import_node&&(o|=2);let g=Ns(_,"root",o);_.init.unshift(te(v,y(g))),h=$(y("$.append",w("$$anchor"),v))}}return m.push(..._.snippets,..._.let_directives,..._.consts),_.async_consts&&_.async_consts.thunks.length>0&&m.push(te(_.async_consts.id,y("$.run",z(_.async_consts.thunks)))),p&&m.push($(y("$.next"))),m.push(..._.init),_.update.length>0&&m.push(ai(_)),m.push(..._.after_update),h!==void 0&&m.push(h),M(m)}function q0(e,t){let r={...t.state,in_constructor:!1,in_derived:!1};t.next(r)}function I0(e,t){return cc(e,t)}function N0(e,t){let r=e.metadata.is_controlled;r||t.state.template.push_comment();let i=e.metadata.expression.has_await,s=e.metadata.expression.has_blockers(),a=Re(t,e.expression,e.metadata.expression),n=i?y("$.get",w("$$html")):a,p=!r&&t.state.metadata.namespace==="svg",u=!r&&t.state.metadata.namespace==="mathml",d=$(y("$.html",t.state.node,O(n),r&&Z,p&&Z,u&&Z,Ce(e,"hydration_html_changed")&&Z));i||s?t.state.init.push($(y("$.async",t.state.node,e.metadata.expression.blockers(),i?z([Me(a,e.metadata.expression)]):Te,j(i?[t.state.node,w("$$html")]:[t.state.node],M([d]))))):t.state.init.push(d)}function M0(e,t){let r=t.path.at(-1);if(Ve(e,r)){if(e.name==="$$props")return w("$$sanitized_props");let i=t.state.scope.get(e.name);if(t.state.analysis.runes&&i!==null&&e!==i.node&&i.kind==="rest_prop"){let s=t.path.at(-2);if(r?.type==="MemberExpression"&&!r.computed&&s?.type!=="AssignmentExpression"&&s?.type!=="UpdateExpression"){let a=r.property;if(!i.metadata?.exclude_props?.includes(a.name))return w("$$props")}}return Qe(e,t.state)}}function L0(e,t){t.state.template.push_comment();let r=[],i=e.metadata.expression.has_await,s=e.metadata.expression.has_blockers(),a=Re(t,e.test,e.metadata.expression),n=0,p,u,d;for(let h of[e,...e.metadata.flattened??[]]){let _=t.visit(h.consequent),v=w(t.state.scope.generate("consequent"));r.push(te(v,j([w("$$anchor")],_)));let E;if(h.metadata.expression.has_await)E=y("$.get",w("$$condition"));else{let g=Re(t,h.test,h.metadata.expression);if(h.metadata.expression.has_call){let k=w(t.state.scope.generate("d"));r.push(te(k,y("$.derived",j([],g)))),E=y("$.get",k)}else E=g}let l=$(y("$$render",v,n!==0&&T(n))),o=qe(E,l);u?u.alternate=o:p=o,d=h,u=o,n++}if(u&&d?.alternate){let h=t.visit(d.alternate),_=w(t.state.scope.generate("alternate"));r.push(te(_,j([w("$$anchor")],h))),u.alternate=$(y("$$render",_,T(-1)))}let m=[t.state.node,j([w("$$render")],p?M([p]):M([]))];e.elseif&&m.push(Z),r.push(ut(y("$.if",...m),e,"if")),i||s?t.state.init.push($(y("$.async",t.state.node,e.metadata.expression.blockers(),i?z([Me(a,e.metadata.expression)]):Te,j(i?[t.state.node,w("$$condition")]:[t.state.node],M(r))))):t.state.init.push(M(r))}function O0(e,t){t.state.template.push_comment();let r=e.metadata.expression.has_await,i=e.metadata.expression.has_blockers(),s=Re(t,e.expression,e.metadata.expression),a=O(r?y("$.get",w("$$key")):s),n=t.visit(e.fragment),p=ut(y("$.key",t.state.node,a,j([w("$$anchor")],n)),e,"key");r||i?t.state.init.push($(y("$.async",t.state.node,e.metadata.expression.blockers(),r?z([Me(s,e.metadata.expression)]):Te,j(r?[t.state.node,w("$$key")]:[t.state.node],M([p]))))):t.state.init.push(p)}function D0(e,t){if(t.state.analysis.runes||t.path.length>1||e.label.name!=="$"){t.next();return}let r=t.state.analysis.reactive_statements.get(e);if(!r)return;let i=t.visit(e.body);i.type!=="BlockStatement"&&(i=M([i]));let s=i.body,a=[];for(let n of r.dependencies){if(n.kind==="normal"&&n.declaration_kind!=="import")continue;let p=n.node.name,u=Qe(w(p),t.state);(p==="$$props"||p==="$$restProps"||n.kind==="bindable_prop")&&(u=y("$.deep_read_state",u)),a.push(u)}return t.state.legacy_reactive_statements.set(e,$(y("$.legacy_pre_effect",a.length>0?O(Oe(a)):O(M([])),O(M(s))))),ce}function B0(e,t){if(e.expression&&e.expression.type!=="Identifier"){let r=t.state.scope.generate(e.name),i=t.state.scope.get_bindings(e);for(let s of i)t.state.transform[s.node.name]={read:a=>X(y("$.get",w(r)),a)};t.state.let_directives.push(ge(r,y("$.derived",O(M([De(e.expression.type==="ObjectExpression"?Gr(e.expression.properties):br(e.expression.elements),X(w("$$slotProps"),e.name)),le(J(i.map(s=>Y(s.node.name,s.node))))])))))}else{let r=e.expression===null?e.name:e.expression.name;t.state.transform[r]={read:i=>y("$.get",i)},t.state.let_directives.push(ge(r,Ir(t.state,X(w("$$slotProps"),e.name))))}}function j0(e,t){if(e.property.type==="PrivateIdentifier"){let r=t.state.state_fields.get("#"+e.property.name);if(r)return t.state.in_constructor&&(r.type==="$state.raw"||r.type==="$state")?X(e,"v"):y("$.get",e)}t.next()}var i2=["stopPropagation","stopImmediatePropagation","preventDefault","self","trusted","once"];function F0(e,t){e.expression||(t.state.analysis.needs_props=!0);let r=Is(e.expression,e.metadata.expression,t);for(let a of i2)e.modifiers.includes(a)&&(r=y("$."+a,r));let i=e.modifiers.includes("capture"),s=e.modifiers.includes("passive")||(e.modifiers.includes("nonpassive")?!1:void 0);return Xu(t,e.name,r,i,s,!1)}function U0(e,t){if(!t.state.analysis.runes){t.state.transform.$$props={read:r=>({...r,name:"$$sanitized_props"})};for(let[r,i]of t.state.scope.declarations)if(i.declaration_kind==="import"&&i.mutated){let{start:s,end:a}=t.state.analysis.instance.ast,n=i.initial;if(n.start>s&&n.end<a){let u=w("$$_import_"+r);t.state.transform[r]={read:d=>y(u),mutate:(d,m)=>y(u,m)},t.state.legacy_reactive_imports.push(te(u,y("$.reactive_import",O(w(r)))))}}}for(let[r,i]of t.state.scope.declarations){if(i.kind==="store_sub"){let s,a=()=>s??=t.visit(w(r.slice(1)));t.state.transform[r]={read:y,assign:(n,p)=>y("$.store_set",a(),p),mutate:(n,p)=>{let u=y("$.untrack",n);function d(m){return m.type==="MemberExpression"?{...m,object:d(m.object),property:m.property}:u}return y("$.store_mutate",a(),p.type==="AssignmentExpression"?ee(p.operator,d(p.left),p.right):ma(p.operator,d(p.argument),p.prefix),u)},update:n=>y(n.prefix?"$.update_pre_store":"$.update_store",Qe(w(r.slice(1)),t.state),y(n.argument),n.operator==="--"&&T(-1))}}if(i.kind==="prop"||i.kind==="bindable_prop")if(sc(i,t.state))t.state.transform[r]={read:y,assign:(s,a)=>y(s,a),mutate:(s,a)=>i.kind==="bindable_prop"?y(s,a,Z):a,update:s=>y(s.prefix?"$.update_pre_prop":"$.update_prop",s.argument,s.operator==="--"&&T(-1))};else if(i.prop_alias){let s=Be(i.prop_alias);t.state.transform[r]={read:a=>X(w("$$props"),s,s.type==="Literal")}}else t.state.transform[r]={read:s=>X(w("$$props"),s)}}if(Vi(t),t.state.is_instance)return{...e,body:ec(t.state.analysis.instance_body,w("$.run"),r=>t.visit(r))};t.next()}function H0(e,t){t.state.template.push_comment();let r=wr(e.expression),i=[],s=new Fe;for(let d=0;d<r.arguments.length;d++){let m=r.arguments[d],h=e.metadata.arguments[d],_=Re(t,m,h),v=s.add(_,h);_!==v&&(_=y("$.get",v)),i.push(O(_))}s.apply();let a=s.deriveds(t.state.analysis.runes),n=Re(t,r.callee,e.metadata.expression);e.metadata.dynamic?(e.expression.type==="ChainExpression"&&(n=it("??",n,w("$.noop"))),a.push(ut(y("$.snippet",t.state.node,O(n),...i),e,"render"))):a.push(ut((e.expression.type==="CallExpression"?y:Bt)(n,t.state.node,...i),e,"render"));let p=s.async_values(),u=s.blockers();p||u?(t.state.init.push($(y("$.async",t.state.node,u,s.async_values(),j([t.state.node,...s.async_ids()],M(a))))),t.state.is_standalone&&t.state.init.push($(y("$.next")))):t.state.init.push(a.length===1?a[0]:M(a))}function V0(e,t){t.state.template.push_comment();let r=[],i=[],s=[],a=new Fe,n=T("default");for(let _ of e.attributes)if(_.type==="SpreadAttribute")i.push(O(t.visit(_)));else if(_.type==="Attribute"){let{value:v,has_state:E}=Le(_.value,t,(l,o)=>o.has_call||o.has_await?y("$.get",a.add(l,o)):l);_.name==="name"?n=v:_.name!=="slot"&&(E?r.push(tt(_.name,[le(v)])):r.push(Y(_.name,v)))}else _.type==="LetDirective"&&t.visit(_,{...t.state,let_directives:s});a.apply(),t.state.init.push(...s);let p=a.deriveds(t.state.analysis.runes),u=i.length===0?J(r):y("$.spread_props",J(r),...i),d=e.fragment.nodes.length===0?st:j([w("$$anchor")],t.visit(e.fragment));p.push($(y("$.slot",t.state.node,w("$$props"),n,u,d)));let m=a.async_values(),h=a.blockers();m||h?t.state.init.push($(y("$.async",t.state.node,h,m,j([t.state.node,...a.async_ids()],M(p))))):t.state.init.push(p.length===1?p[0]:M(p))}function z0(e,t){let r=[w("$$anchor")],i,s=[],a={...t.state.transform},n={...t.state,transform:a};for(let m=0;m<e.parameters.length;m++){let h=e.parameters[m];if(!h)continue;if(h.type==="Identifier"){r.push(da(h,w("$.noop"))),a[h.name]={read:y};continue}let _=`$$arg${m}`;r.push(w(_));let{inserts:v,paths:E}=Xe(h,Bt(w(_)));for(let{id:l,value:o}of v)l.name=t.state.scope.generate("$$array"),a[l.name]={read:Ne},s.push(te(l,y("$.derived",t.visit(O(o)))));for(let l of E){let o=l.node.name,g=l.has_default_value,k=O(t.visit(l.expression,n));s.push(De(l.node,g?y("$.derived_safe_equal",k):k)),a[o]={read:g?Ne:y},F&&s.push($(a[o].read(w(o))))}}let p=t.visit(e.body,n).body;i=M([F?$(y("$.validate_snippet_args",ft(w("arguments")))):ce,...s,...p]);let u=F?y("$.wrap_snippet",w(t.state.analysis.name),Ue(null,r,i)):j(r,i),d=ge(e.expression,u);t.path.length===1&&t.path[0].type==="Fragment"?e.metadata.can_hoist?t.state.module_level_snippets.push(d):t.state.instance_level_snippets.push(d):t.state.snippets.push(d)}function W0(e,t){return t.visit(e.expression)}function Gi(e,t,r){let i={...r.state,node:w(t)};for(let s of e.attributes)s.type==="OnDirective"?r.state.init.push($(r.visit(s,i))):r.visit(s,i)}function G0(e,t){Gi(e,"$.document.body",t)}function K0(e,t){let r=Wi(e,"$$component",null,t);t.state.init.push(r)}function X0(e,t){Gi(e,"$.document",t)}function J0(e,t){t.state.template.push_comment();let r=[],i,s=[],a=[],n=[],p=w(t.state.scope.generate("$$element")),u={...t,state:{...t.state,node:p,init:[],update:[],after_update:[],memoizer:new Fe}};for(let l of e.attributes)if(l.type==="Attribute")l.name==="xmlns"&&!me(l)&&(i=l.value),r.push(l);else if(l.type==="SpreadAttribute")r.push(l);else if(l.type==="ClassDirective")s.push(l);else if(l.type==="StyleDirective")a.push(l);else if(l.type==="LetDirective")n.push(t.visit(l));else if(l.type==="OnDirective"){let o=t.visit(l,u.state);u.state.after_update.push($(o))}else t.visit(l,u.state);r.length===1&&r[0].type==="Attribute"&&r[0].name.toLowerCase()==="class"&&me(r[0])?fc(e,p,r[0],s,u,!1):r.length&&dc(r,s,a,u,e,p);let d=e.metadata.expression.has_await,m=e.metadata.expression.has_blockers(),h=t.visit(e.tag),_=O(d?y("$.get",w("$$tag")):h),v=u.state.init;u.state.update.length>0&&v.push(ai(u.state)),v.push(...u.state.after_update),v.push(...t.visit(e.fragment,{...t.state,metadata:{...t.state.metadata,namespace:qr(e,t.state.metadata.namespace)}}).body),F&&(n.push($(y("$.validate_dynamic_element_tag",_))),e.fragment.nodes.length>0&&n.push($(y("$.validate_void_dynamic_element",_))));let E=F&&_e(e.start);n.push($(y("$.element",t.state.node,_,e.metadata.svg||e.metadata.mathml?Z:Jt,v.length>0&&j([p,w("$$anchor")],M(v)),i&&O(Le(i,t).value),E&&z([T(E.line),T(E.column)])))),d||m?t.state.init.push($(y("$.async",t.state.node,e.metadata.expression.blockers(),d?z([Me(h,e.metadata.expression)]):Te,j(d?[t.state.node,w("$$tag")]:[t.state.node],M(n))))):t.state.init.push(n.length===1?n[0]:M(n))}function Y0(e,t){for(let r of e.attributes)r.type==="LetDirective"&&t.visit(r);t.state.init.push(...t.visit(e.fragment).body)}function Z0(e,t){let r=J([]);for(let m of e.attributes){if(m.type!=="Attribute"||m.value===!0)continue;let h=Array.isArray(m.value)?m.value[0]:m.value,_=t.visit(h.expression,t.state);h.metadata.expression.has_state?r.properties.push(tt(m.name,[le(_)])):r.properties.push(Y(m.name,_))}let i=[],s=[],a=[],n=!1,p=!1;for(let m of e.fragment.nodes)m.type==="ConstTag"&&(n=!0,t.state.options.experimental.async||t.visit(m,{...t.state,consts:s,scope:t.state.scopes.get(e.fragment)??t.state.scope})),m.type==="DeclarationTag"&&(p=!0);for(let m of e.fragment.nodes){if(m.type==="ConstTag"){t.state.options.experimental.async&&i.push(m);continue}if(m.type==="SnippetBlock"){if(t.state.options.experimental.async&&(n||p)&&!["failed","pending"].includes(m.expression.name))i.push(m);else{let h=[];t.visit(m,{...t.state,snippets:h});let _=h[0],v=F?_.declarations[0].init.arguments[1]:_.declarations[0].init;t.state.options.experimental.async||v.body.body.unshift(...s.filter(E=>E.type==="VariableDeclaration")),["failed","pending"].includes(m.expression.name)&&r.properties.push(ye("init",m.expression,m.expression)),a.push(_)}continue}i.push(m)}let u=t.visit({...e.fragment,nodes:i},{...t.state,scope:t.state.scopes.get(e.fragment)??t.state.scope});t.state.options.experimental.async||u.body.unshift(...s);let d=$(y("$.boundary",t.state.node,r,j([w("$$anchor")],u)));t.state.template.push_comment(),t.state.init.push(a.length>0?M([...a,d]):d)}function Q0(e,t){t.state.init.push($(y(w("$.head",e.name_loc),T(li($e)),j([w("$$anchor")],t.visit(e.fragment)))))}function ek(e,t){let r=Wi(e,fr,e.name_loc,t);t.state.init.push(r)}function tk(e,t){Gi(e,"$.window",t)}function rk(e,t){let r=new Fe,{has_state:i,value:s}=Nr(e.fragment.nodes,t,t.state,(p,u)=>r.add(p,u)),a=t.state.scope.evaluate(s),n=$(ee("=",X(w("$.document"),w("title",e.name_loc)),a.is_known?T(a.value):a.is_defined?s:it("??",s,T(""))));i?t.state.after_update.push($(y("$.deferred_template_effect",j(r.apply(),M([n])),r.sync_values(),r.async_values(),r.blockers()))):t.state.after_update.push($(y("$.effect",O(M([n])))))}function ik(e,t){let r=e.modifiers.includes("global")?4:0;e.intro&&(r|=1),e.outro&&(r|=2);let i=[T(r),t.state.node,O(t.visit(Hi(e.name)))];e.expression&&i.push(O(t.visit(e.expression)));let s=$(y("$.transition",...i));e.metadata.expression.is_async()&&(s=$(y("$.run_after_blockers",e.metadata.expression.blockers(),O(M([s]))))),t.state.after_update.push(s)}function sk(e,t){let r=e.argument;if(r.type==="MemberExpression"&&r.property.type==="PrivateIdentifier"&&t.state.state_fields.has("#"+r.property.name)){let n="$.update";e.prefix&&(n+="_pre");let p=[r];return e.operator==="--"&&p.push(T(-1)),y(n,...p)}if(r.type!=="Identifier"&&r.type!=="MemberExpression")throw new Error("An impossible state was reached");let i=Ie(r),s=i&&t.state.transform[i.name];if(i===r&&s?.update)return s.update(e);let a=t.next();return i&&s?.mutate&&(a=s.mutate(i,a)),lc(e,t,a)}function ak(e,t){let r=[w("$$node")];e.expression&&r.push(w("$$action_arg"));let i=[t.state.node,j(r,Bt(t.visit(Hi(e.name)),...r))];e.expression&&i.push(O(t.visit(e.expression)));let s=$(y("$.action",...i));e.metadata.expression.is_async()&&(s=$(y("$.run_after_blockers",e.metadata.expression.blockers(),O(M([s]))))),t.state.init.push(s),t.next()}function nk(e,t){let r=Re(t,e.expression,e.metadata.expression),i=$(y("$.attach",t.state.node,O(r)));e.metadata.expression.is_async()&&(i=$(y("$.run_after_blockers",e.metadata.expression.blockers(),O(M([i]))))),t.state.init.push(i),t.next()}function ok(e,t){let r=[];if(t.state.analysis.runes)for(let i of e.declarations){let s=i.init,a=he(s,t.state.scope);if(!a||a==="$effect.tracking"||a==="$effect.root"||a==="$inspect"||a==="$inspect.trace"||a==="$state.snapshot"||a==="$state.eager"||a==="$host"){r.push(t.visit(i));continue}if(a==="$props.id")continue;if(a==="$props"){let u=["$$slots","$$events","$$legacy"];if(t.state.analysis.custom_element&&u.push("$$host"),i.id.type==="Identifier"){let d=t.state.scope.root.unique("rest_excludes");t.state.hoisted.push(te(d,fa("Set",z(u.map(h=>T(h))))));let m=[w("$$props"),d];F&&m.push(T(i.id.name)),r.push(ne(i.id,y("$.rest_props",...m)))}else{Ts(i.id.type,"ObjectPattern");for(let d of i.id.properties)if(d.type==="Property"){let m=d.key,h=m.type==="Identifier"?m.name:m.value;u.push(h);let _=d.value.type==="AssignmentPattern"?d.value.left:d.value;Ts(_.type,"Identifier");let v=t.state.scope.get(_.name),E=v.initial&&t.visit(v.initial);E&&v.kind==="bindable_prop"&&$t(E,t.state.scope)&&(E=y("$.proxy",E),F&&(E=y("$.tag_proxy",E,T(_.name)))),sc(v,t.state)&&r.push(ne(_,ic(v,t.state,h,E)))}else{let m=t.state.scope.root.unique("rest_excludes");t.state.hoisted.push(te(m,fa("Set",z(u.map(_=>T(_))))));let h=[w("$$props"),m];F&&h.push(T(d.argument.name)),r.push(ne(d.argument,y("$.rest_props",...h)))}}continue}let p=s.arguments[0]??Te;if(a==="$state"||a==="$state.raw"){let u=(d,m)=>{let h=t.state.scope.get(d.name),_=si(h,t.state.analysis),v=$t(m,t.state.scope);if(a==="$state"&&v&&(m=y("$.proxy",m),F&&!_&&(m=y("$.tag_proxy",m,T(d.name)))),_){let E=w("$.state",s.callee.loc);m=y(E,m),F&&(m=y("$.tag",m,T(d.name)))}return m};if(i.id.type==="Identifier"){let d=t.visit(p);r.push(ne(i.id,u(i.id,d)))}else{let d=w(t.state.scope.generate("tmp")),{inserts:m,paths:h}=Xe(i.id,d);r.push(ne(d,t.visit(p)),...m.map(({id:_,value:v})=>{_.name=t.state.scope.generate("$$array"),t.state.transform[_.name]={read:Ne};let E=t.visit(O(v)),l=y("$.derived",E);if(F){let o=`[$state ${i.id.type==="ArrayPattern"?"iterable":"object"}]`;l=y("$.tag",l,T(o))}return ne(_,l)}),...h.map(_=>{let v=t.visit(_.expression),E=t.state.scope.get(_.node.name);return ne(_.node,E?.kind==="state"||E?.kind==="raw_state"?u(E.node,v):v)}))}continue}if(a==="$derived"||a==="$derived.by"){let u=t.state.analysis.async_deriveds.get(s),d=u!==void 0;if(i.id.type==="Identifier"){let m=t.visit(p);if(d){let h=F&&!Ce(s,"await_waterfall")&&jr(s),_=y("$.async_derived",Me(m,u),F&&T(i.id.name),h?T(h):void 0);r.push(ne(i.id,et(_)))}else{a==="$derived"&&(m=O(m));let h=y("$.derived",m);F&&(h=y("$.tag",h,T(i.id.name))),r.push(ne(i.id,h))}}else{let m=i.init,h=t.visit(p),_=p;if(a!=="$derived"||m.arguments[0].type!=="Identifier"){let l=w(t.state.scope.generate("$$d")),o=y("$.derived",a==="$derived"?O(h):h);if(_=y("$.get",l),d){let g=F&&!Ce(m,"await_waterfall")&&jr(m);o=y("$.async_derived",Me(h,u),F&&T(`[$derived ${i.id.type==="ArrayPattern"?"iterable":"object"}]`),g?T(g):void 0),o=et(o)}r.push(ne(l,o))}let{inserts:v,paths:E}=Xe(i.id,_);for(let{id:l,value:o}of v){l.name=t.state.scope.generate("$$array"),t.state.transform[l.name]={read:Ne};let g=t.visit(O(o)),k=y("$.derived",g);if(F){let S=`[$derived ${i.id.type==="ArrayPattern"?"iterable":"object"}]`;k=y("$.tag",k,T(S))}r.push(ne(l,k))}for(let l of E){let o=t.visit(l.expression),g=y("$.derived",O(o));r.push(ne(l.node,F?y("$.tag",g,T(l.node.name)):g))}}continue}}else for(let i of e.declarations){let s=t.state.scope.get_bindings(i),a=s.some(p=>p.kind==="state"),n=s.some(p=>p.kind==="bindable_prop");if(!a&&!n){r.push(t.visit(i));continue}if(n){if(i.id.type!=="Identifier"){let u=w(t.state.scope.generate("tmp")),{inserts:d,paths:m}=Xe(i.id,u);r.push(ne(u,t.visit(i.init)));for(let{id:h,value:_}of d){h.name=t.state.scope.generate("$$array"),t.state.transform[h.name]={read:Ne};let v=t.visit(O(_));r.push(ne(h,y("$.derived",v)))}for(let h of m){let _=h.node.name,v=t.state.scope.get(_),E=t.visit(h.expression);r.push(ne(h.node,v.kind==="bindable_prop"?ic(v,t.state,v.prop_alias??_,E):E))}continue}let p=t.state.scope.get(i.id.name);r.push(ne(i.id,ic(p,t.state,p.prop_alias??i.id.name,i.init&&t.visit(i.init))));continue}r.push(...o2(i,t,i.init&&t.visit(i.init)))}return r.length===0?ce:{...e,declarations:r}}function o2(e,t,r){let i=(p,u)=>{let d=y("$.mutable_source",p,t.state.analysis.immutable&&Z);return F?y("$.tag",d,T(u)):d};if(e.id.type==="Identifier")return[ne(e.id,i(r,e.id.name))];let s=w(t.state.scope.generate("tmp")),{inserts:a,paths:n}=Xe(e.id,s);return[ne(s,r),...a.map(({id:p,value:u})=>{p.name=t.state.scope.generate("$$array"),t.state.transform[p.name]={read:Ne};let d=t.visit(O(u));return ne(p,y("$.derived",d))}),...n.map(p=>{let u=t.visit(p.expression),d=t.state.scope.get(p.node.name);return ne(p.node,d?.kind==="state"?i(u,p.node.name):u)})]}var id={_:function(t,{next:r,state:i}){let s=i.scopes.get(t);s&&s!==i.scope?r({...i,transform:ac(s,i),scope:s}):r()},AnimateDirective:Qx,ArrowFunctionExpression:e0,AssignmentExpression:t0,Attribute:i0,AwaitBlock:a0,AwaitExpression:n0,BinaryExpression:o0,BindDirective:h0,BlockStatement:_0,BreakStatement:b0,CallExpression:y0,ClassBody:g0,Comment:v0,Component:w0,ConstTag:E0,DeclarationTag:x0,DebugTag:S0,EachBlock:C0,ExportNamedDeclaration:T0,ExpressionStatement:P0,ForOfStatement:A0,Fragment:R0,FunctionDeclaration:q0,FunctionExpression:I0,HtmlTag:N0,Identifier:M0,IfBlock:L0,KeyBlock:O0,LabeledStatement:D0,LetDirective:B0,MemberExpression:j0,OnDirective:F0,Program:U0,RegularElement:f0,RenderTag:H0,SlotElement:V0,SnippetBlock:z0,SpreadAttribute:W0,SvelteBody:G0,SvelteComponent:K0,SvelteDocument:X0,SvelteElement:J0,SvelteFragment:Y0,SvelteBoundary:Z0,SvelteHead:Q0,SvelteSelf:ek,SvelteWindow:tk,TitleElement:rk,TransitionDirective:ik,UpdateExpression:sk,UseDirective:ak,AttachTag:nk,VariableDeclaration:ok};function lk(e,t){let r={analysis:e,options:t,scope:e.module.scope,scopes:e.module.scopes,is_instance:!1,hoisted:[_a("$","svelte/internal/client"),...e.instance_body.hoisted],templates:new Map,node:null,legacy_reactive_imports:[],legacy_reactive_statements:new Map,metadata:{namespace:t.namespace,bound_contenteditable:!1},events:new Set,preserve_whitespace:t.preserveWhitespace,state_fields:new Map,transform:{},in_constructor:!1,instance_level_snippets:[],module_level_snippets:[],is_standalone:!1,init:null,consts:null,snippets:null,let_directives:null,update:null,after_update:null,template:null,memoizer:null},i=re(e.module.ast,r,id),s={...r,transform:{...r.transform},scope:e.instance.scope,scopes:e.instance.scopes,is_instance:!0},a=re(e.instance.ast,s,id),n=re(e.template.ast,{...r,transform:s.transform,scope:e.instance.scope,scopes:e.template.scopes},id);i.body.unshift(...r.legacy_reactive_imports);let p=[],u=ce,d=[],m=!1;for(let[R,L]of e.instance.scope.declarations)if(L.kind==="legacy_reactive"&&d.push(ge(R,y("$.mutable_source",void 0,e.immutable?Z:void 0))),L.kind==="store_sub"){p.length===0&&(m=!0,u=ge(br([w("$$stores"),w("$$cleanup")]),y("$.setup_stores")));let H=Qe(w(R.slice(1)),s),se=y("$.store_get",H,T(R),w("$$stores"));p.push(ge(L.node,F?O(Oe([y("$.validate_store",H,T(R.slice(1))),se])):O(se)))}for(let[R]of e.reactive_statements){let L=r.legacy_reactive_statements.get(R);if(L===void 0)throw new Error("Could not find reactive statement");a.body.push(L)}e.reactive_statements.size>0&&a.body.push($(y("$.legacy_pre_effect_reset")));let h=[];for(let R of e.binding_groups.values())h.push(ge(R.name,z([])));let _=e.exports.flatMap(({name:R,alias:L})=>{let H=s.scope.get(R),se=Qe(w(R),s),c=tt(L??R,[le(se)]);if(se.type==="Identifier"){if(H?.declaration_kind==="let"||H?.declaration_kind==="var")return[c,St(L??R,[$(ee("=",se,w("$$value")))])];if(!F)return Y(L??R,se)}if(H?.kind==="prop"||H?.kind==="bindable_prop")return[c,St(L??R,[$(y(R,w("$$value")))])];if(H?.kind==="state"||H?.kind==="raw_state"){let f=H.kind==="state"?y("$.proxy",w("$$value")):w("$$value");return[c,St(L??R,[$(y("$.set",w(R),f))])]}return c}),v=[...e.instance.scope.declarations].filter(([R,L])=>(L.kind==="prop"||L.kind==="bindable_prop")&&!R.startsWith("$$"));if(e.accessors)for(let[R,L]of v){let H=L.prop_alias??R,se=tt(H,[le(y(w(R)))]),c=St(H,[$(y(w(R),w("$$value"))),$(y("$.flush"))]);e.runes&&L.initial&&(c.value.params[0]={type:"AssignmentPattern",left:w("$$value"),right:L.initial}),_.push(se,c)}t.compatibility.componentApi===4?_.push(Y("$set",w("$.update_legacy_props")),Y("$on",j([w("$$event_name"),w("$$event_cb")],y("$.add_legacy_event_listener",w("$$props"),w("$$event_name"),w("$$event_cb"))))):F&&_.unshift(ft(y(w("$.legacy_api"))));let E=[w("$$props"),T(e.runes)];F&&E.push(w(e.name));let l=M([u,...d,...h]),o=F||e.needs_context||e.reactive_statements.size>0||_.length>0;l.body.push(...r.instance_level_snippets,...a.body),o&&_.length>0&&l.body.push(te("$$exports",J(_))),l.body.unshift(...p),!e.runes&&e.needs_context&&l.body.push($(y("$.init",e.immutable?Z:void 0))),l.body.push(...n.body),e.needs_mutation_validation&&l.body.unshift(te("$$ownership_validator",y("$.create_ownership_validator",w("$$props"))));let g=o||e.needs_props||e.uses_props||e.uses_rest_props||e.uses_slots||e.slot_names.size>0;if(l.loc=a.loc,!e.runes)for(let{name:R,alias:L}of e.exports)l.body.push($(y("$.bind_prop",w("$$props"),T(L??R),Qe(w(R),s))));if(e.css.ast!==null&&e.inject_styles){let R=T(e.css.hash),L=T(ji(e.source,e,t).code);r.hoisted.push(ge("$$css",J([Y("hash",R),Y("code",L)]))),l.body.unshift($(y("$.append_styles",w("$$anchor"),w("$$css"))))}if(o){l.body.unshift($(y("$.push",...E)));let R;if(_.length>0){let L=y("$.pop",w("$$exports"));R=m?te("$$pop",L):le(L)}else R=$(y("$.pop"));l.body.push(R)}if(m&&(l.body.push($(y("$$cleanup"))),_.length>0&&l.body.push(le(w("$$pop")))),e.uses_rest_props){let R=e.exports.map(({name:L,alias:H})=>H??L);for(let[L,H]of e.instance.scope.declarations)H.kind==="bindable_prop"&&R.push(H.prop_alias??L);l.body.unshift(ge("$$restProps",y("$.legacy_rest_props",w("$$sanitized_props"),z(R.map(L=>T(L))))))}if(e.uses_props||e.uses_rest_props){let R=[T("children"),T("$$slots"),T("$$events"),T("$$legacy")];e.custom_element&&R.push(T("$$host")),l.body.unshift(ge("$$sanitized_props",y("$.legacy_rest_props",w("$$props"),z(R))))}e.uses_slots&&l.body.unshift(ge("$$slots",y("$.sanitize_slots",w("$$props"))));let k=[],S=[];for(let R of[...i.body,...r.hoisted])R.type==="ImportDeclaration"?k.push(R):S.push(R);S=[...k,...r.module_level_snippets,...S];let C=Wr(w(e.name),g?[w("$$anchor"),w("$$props")]:[w("$$anchor")],l);if(t.hmr){let R=w(e.name),L=[$(y(X(X(R,w("$.HMR"),!0),"update"),w("module.default")))];e.css.hash&&L.unshift($(y("$.cleanup_styles",T(e.css.hash))));let H=M([$(ee("=",R,y("$.hmr",R))),$(y("import.meta.hot.accept",j([w("module")],M(L))))]);S.push(C,qe(w("import.meta.hot"),H),zr(w(e.name)))}else S.push(zr(C));F&&S.unshift($(ee("=",X(w(e.name),"$.FILENAME",!0),T($e)))),t.experimental.async&&S.unshift(Yt([],"svelte/internal/flags/async")),e.runes||S.unshift(Yt([],"svelte/internal/flags/legacy")),e.tracing&&S.unshift(Yt([],"svelte/internal/flags/tracing")),t.discloseVersion&&S.unshift(Yt([],"svelte/internal/disclose-version")),t.compatibility.componentApi===4?(S.unshift(Yt([["createClassComponent","$$_createClassComponent"]],"svelte/legacy")),l.body.unshift(qe(w("new.target"),le(y("$$_createClassComponent",J([Y("component",w(e.name)),ft(w("$$anchor"))])))))):F&&l.body.unshift($(y("$.check_target",w("new.target")))),e.props_id&&l.body.unshift(ge(e.props_id,y("$.props_id"))),r.events.size>0&&S.push($(y("$.delegate",z(Array.from(r.events).map(R=>T(R))))));let P=e.custom_element;if(P){let R=typeof P=="boolean"?{}:P.props||{},L=[];for(let[b,x]of Object.entries(R)){let A=e.instance.scope.get(b),I=A?.prop_alias??b;!x.type&&A?.initial?.type==="Literal"&&typeof A?.initial.value=="boolean"&&(x.type="Boolean");let D=J([x.attribute?Y("attribute",T(x.attribute)):void 0,x.reflect?Y("reflect",Z):void 0,x.type?Y("type",T(x.type)):void 0].filter(Boolean));L.push(Y(I,D))}for(let[b,x]of v){let A=x.prop_alias??b;R[A]||L.push(Y(A,J([])))}let H=z([...e.slot_names.keys()].map(b=>T(b))),se=z(e.exports.map(({name:b,alias:x})=>T(x??b))),c;typeof P=="boolean"||P.shadow==="open"||P.shadow===void 0?c=J([Y("mode",T("open"))]):P.shadow==="none"?c=void 0:c=P.shadow;let f=y("$.create_custom_element",w(e.name),J(L),H,se,c,typeof P!="boolean"?P.extend:void 0);if(typeof P!="boolean"&&typeof P.tag=="string"){let b=$(y("customElements.define",T(P.tag),f));t.hmr?S.push(qe(kt("==",y("customElements.get",T(P.tag)),st),b)):S.push(b)}else S.push($(f))}return{type:"Program",sourceType:"module",body:S}}function ck(e,t,r){if(r.generate===!1)return{js:null,css:null,warnings:hi,metadata:{runes:e.runes},ast:null};let i=r.generate==="server"?Zx(e,r):lk(e,r),s=ax(r.filename,r.outputFilename,"input.svelte"),a=Ru(i,Nu({comments:e.comments}),{sourceMapContent:t,sourceMapSource:s});Kl(a,r,s);let n=e.css.ast&&!e.inject_styles?ji(t,e,r):null;return{js:a,css:n,warnings:hi,metadata:{runes:e.runes},ast:null}}var dk={filename:Ms("(unknown)"),rootDir:Ms(typeof process<"u"?process.cwd?.():typeof Deno<"u"?Deno.cwd():void 0),dev:lr(!1),generate:oi("client",(e,t)=>e==="dom"||e==="ssr"?(ld(If),e==="dom"?"client":"server"):(e!=="client"&&e!=="server"&&e!==!1&&It(`${t} must be "client", "server" or false`),e)),warningFilter:mk(()=>!0),experimental:hc({async:lr(!1)})},fk={accessors:uk(Hs,lr(!1)),css:nd((()=>"external"),e=>((e===!0||e===!1)&&It('The boolean options have been removed from the css option. Use "external" instead of false and "injected" instead of true'),e==="none"&&It('css: "none" is no longer a valid option. If this was crucial for you, please open an issue on GitHub with your use case.'),e!=="external"&&e!=="injected"&&It('css should be either "external" (default, recommended) or "injected"'),e)),cssHash:mk(({css:e,filename:t,hash:r})=>`svelte-${r(t==="(unknown)"?e:t??e)}`),cssOutputFilename:Ms(void 0),customElement:nd((()=>!1),(e,t)=>(typeof e!="boolean"&&It(`${t} should be true or false`),e)),discloseVersion:lr(!0),immutable:uk(Vs,lr(!1)),legacy:Ki("The legacy option has been removed. If you are using this because of legacy.componentApi, use compatibility.componentApi instead"),compatibility:hc({componentApi:ad([4,5],5)}),loopGuardTimeout:sd(qf),name:Ms(void 0),namespace:ad(["html","mathml","svg"]),modernAst:lr(!1),outputFilename:Ms(void 0),preserveComments:lr(!1),fragments:ad(["html","tree"]),preserveWhitespace:lr(!1),runes:nd(()=>{}),hmr:lr(!1),sourcemap:oi(void 0,e=>e),enableSourcemap:sd($f),hydratable:sd(Rf),format:Ki('The format option has been removed in Svelte 4, the compiler only outputs ESM now. Remove "format" from your compiler options. If you did not set this yourself, bump the version of your bundler plugin (vite-plugin-svelte/rollup-plugin-svelte/svelte-loader)'),tag:Ki('The tag option has been removed in Svelte 5. Use `<svelte:options customElement="tag-name" />` inside the component instead. If that does not solve your use case, please open an issue on GitHub with details.'),sveltePath:Ki("The sveltePath option has been removed in Svelte 5. If this option was crucial for you, please open an issue on GitHub with your use case."),errorMode:Ki("The errorMode option has been removed. If you are using this through svelte-preprocess with TypeScript, use the https://www.typescriptlang.org/tsconfig#verbatimModuleSyntax setting instead"),varsReport:Ki("The vars option has been removed. If you are using this through svelte-preprocess with TypeScript, use the https://www.typescriptlang.org/tsconfig#verbatimModuleSyntax setting instead")},c2=hc({...dk,...Object.fromEntries(Object.keys(fk).map(e=>[e,()=>{}]))}),od=hc({...dk,...fk});function Ki(e){return t=>{t!==void 0&&Sm(null,e)}}var pk=new Set;function ld(e){pk.has(e)||(pk.add(e),e(null))}function sd(e){return t=>{t!==void 0&&ld(e)}}function uk(e,t){return(r,i)=>(r!==void 0&&ld(e),t(r,i))}function hc(e,t=!1){return(r,i)=>{let s={};(r&&typeof r!="object"||Array.isArray(r))&&It(`${i} should be an object`);for(let a in r)a in e||(t?s[a]=r[a]:Cm(null,`${i?`${i}.${a}`:a}`));for(let a in e){let n=e[a];s[a]=n(r&&r[a],i?`${i}.${a}`:a)}return s}}function oi(e,t){return(r,i)=>r===void 0?e:t(r,i)}function Ms(e,t=!0){return oi(e,(r,i)=>(typeof r!="string"&&It(`${i} should be a string, if specified`),!t&&r===""&&It(`${i} cannot be empty`),r))}function lr(e){return oi(e,(t,r)=>(typeof t!="boolean"&&It(`${r} should be true or false, if specified`),t))}function ad(e,t=e[0]){return oi(t,(r,i)=>{if(!e.includes(r)){let s=e.length>2?`${i} should be one of ${e.slice(0,-1).map(a=>`"${a}"`).join(", ")} or "${e[e.length-1]}"`:`${i} should be either "${e[0]}" or "${e[1]}"`;It(s)}return r})}function mk(e){return oi(e,(t,r)=>(typeof t!="function"&&It(`${r} should be a function, if specified`),t))}function nd(e,t=r=>r){return oi(e,(r,i)=>typeof r=="function"?(...n)=>t(r(...n),i):(...a)=>t(r,i))}function It(e){Em(null,e)}function hk(e,t){e=d2(e),$c({warning:t.warningFilter,filename:t.filename});let r=od(t,""),i=Ip(e),{customElement:s,...a}=i.options||{},n={...r,...a,customElementOptions:s,css:"css"in a?()=>a.css??"external":r.css,runes:"runes"in a?()=>a.runes:r.runes};i.metadata.ts&&(i={...i,fragment:i.fragment&&fs(i.fragment),instance:i.instance&&fs(i.instance),module:i.module&&fs(i.module)},n.customElementOptions?.extend&&(n.customElementOptions.extend=fs(n.customElementOptions?.extend)));let p=Pu(i,e,n),u=ck(p,e,n);return u.ast=u2(e,i,t.modernAst),u}function u2(e,t,r){if(r){let i=s=>{delete s.metadata};return t.options?.attributes.forEach(s=>{i(s),i(s.value),Array.isArray(s.value)&&s.value.forEach(i)}),re(t,null,{_(s,{next:a}){i(s),a()}})}return om(e,t)}function d2(e){return e.charCodeAt(0)===65279?e.slice(1):e}var f2={a11y_aria_activedescendant_has_tabindex:["2.1.1"],a11y_aria_attributes:["4.1.2"],a11y_autocomplete_valid:["1.3.5"],a11y_click_events_have_key_events:["2.1.1"],a11y_consider_explicit_label:["2.4.4","4.1.2"],a11y_distracting_elements:["2.2.2"],a11y_figcaption_index:["1.3.1"],a11y_figcaption_parent:["1.3.1"],a11y_img_redundant_alt:["1.1.1"],a11y_incorrect_aria_attribute_type:["4.1.2"],a11y_incorrect_aria_attribute_type_boolean:["4.1.2"],a11y_incorrect_aria_attribute_type_id:["4.1.2"],a11y_incorrect_aria_attribute_type_idlist:["4.1.2"],a11y_incorrect_aria_attribute_type_integer:["4.1.2"],a11y_incorrect_aria_attribute_type_token:["4.1.2"],a11y_incorrect_aria_attribute_type_tokenlist:["4.1.2"],a11y_incorrect_aria_attribute_type_tristate:["4.1.2"],a11y_interactive_supports_focus:["2.1.1"],a11y_label_has_associated_control:["1.3.1","4.1.2"],a11y_media_has_caption:["1.2.2"],a11y_misplaced_role:["4.1.2"],a11y_misplaced_scope:["1.3.1"],a11y_missing_content:["2.4.6","1.3.1"],a11y_mouse_events_have_key_events:["2.1.1"],a11y_no_abstract_role:["4.1.2"],a11y_no_interactive_element_to_noninteractive_role:["4.1.2"],a11y_no_noninteractive_element_interactions:["4.1.2"],a11y_no_noninteractive_element_to_interactive_role:["4.1.2"],a11y_no_static_element_interactions:["4.1.2"],a11y_positive_tabindex:["2.4.3"],a11y_role_has_required_aria_props:["4.1.2"],a11y_role_supports_aria_props:["4.1.2"],a11y_role_supports_aria_props_implicit:["4.1.2"],a11y_unknown_aria_attribute:["4.1.2"],a11y_unknown_role:["4.1.2"]},m2={a:["2.1.1"],area:["1.1.1"],html:["3.1.1"],iframe:["4.1.2"],img:["1.1.1"],input:["1.1.1"],object:["1.1.1"]};function h2(e,t){if(e!=="a11y_missing_attribute")return f2[e];let r=/^`<([a-z]+)/.exec(t)?.[1];return r?m2[r]:void 0}var _2="svelte/";function XX(e,t){let{warnings:r,ast:i}=w2(e),s=[];for(let n of r){let p=h2(n.code,n.message);if(!p||!n.position||n.code==="a11y_incorrect_aria_attribute_type_boolean"&&/^aria-hidden$/i.test(e.slice(n.position[0],n.position[1]).trim()))continue;let[u,d]=_k(n.message);s.push({range:{start:n.position[0],end:n.position[1]},criteria:p,ruleId:_2+n.code,layer:"check",severity:"warning",message:u,explanation:u,helpUrl:d??`https://svelte.dev/e/${n.code}`})}let a=y2(i,e,t);return a.stylesheetColors=i.css!==null&&pd(i.css.content.styles),dd(s,a)}var b2=["Component","SvelteComponent","SvelteElement","SvelteSelf","SlotElement"];function y2(e,t,r){let i={text:!1,elements:[]},s=(a,n)=>{if(a.type==="Text"&&typeof a.data=="string"&&a.data.trim()&&(i.text=!0,_c(n,a.data)),(a.type==="ExpressionTag"||a.type==="HtmlTag")&&(i.text=!0,_c(n,!0)),a.type==="RegularElement"||b2.includes(a.type)){let p=a.start,u=a.name,d=a.attributes,m=v2(a),h=a.type==="Component"?ud(u,v=>m.get(v.toLowerCase()),r):void 0,_={tag:h??u,attributes:m,range:{start:p,end:g2(t,a)},parent:n};h&&(_.component=u),d.some(v=>["ClassDirective","StyleDirective","SpreadAttribute"].includes(v.type))&&(_.boundStyle=!0),d.some(v=>v.type==="SpreadAttribute")&&(_.open=!0),(a.type==="RegularElement"||h)&&i.elements.push(_),n=_}a.type==="Fragment"&&a.nodes.forEach(p=>s(p,n));for(let p of Object.values(a))p&&typeof p=="object"&&p.type==="Fragment"&&s(p,n)};return s(e.fragment),i}function g2(e,t){let i=t.start+1+t.name.length,s=Math.max(i,...t.attributes.map(n=>typeof n.end=="number"?n.end:0)),a=e.indexOf(">",s);return a!==-1&&a<t.end?a+1:i}function v2(e){let t=new Map;for(let r of e.attributes){if(r.type!=="Attribute")continue;let i=r.value,[s]=Array.isArray(i)?i:[],a=Array.isArray(i)&&i.length===1&&s.type==="Text"?s.data:!0;t.set(r.name.toLowerCase(),a)}return t}function w2(e){try{let{warnings:t,ast:r}=hk(e,{generate:!1,modernAst:!0,experimental:{async:!0}});return{warnings:t,ast:r}}catch(t){if(t.name!=="CompileError")throw t;let{start:r,message:i}=t;throw new md(r?`${r.line}:${r.column+1}`:"an unknown position",_k(i)[0])}}function _k(e){let t=e.lastIndexOf(`
|
|
217
|
-
https://`);return t===-1?[e,void 0]:[e.slice(0,t),e.slice(t+1)]}export{
|
|
215
|
+
`)&&(d.shift(),m=d[0]),d.length===1&&m.type==="RegularElement"&&m.name==="script"&&d.push({type:"Comment",data:"",start:-1,end:-1}),{hoisted:p,trimmed:d,is_standalone:d.length===1&&(m.type==="RenderTag"&&!m.metadata.dynamic||m.type==="Component"&&!s.options.hmr&&!m.metadata.dynamic&&!m.attributes.some(h=>h.type==="Attribute"&&h.name.startsWith("--"))),is_text_first:(e.type==="Fragment"||e.type==="SnippetBlock"||e.type==="EachBlock"||e.type==="SvelteComponent"||e.type==="SvelteBoundary"||e.type==="Component"||e.type==="SvelteSelf")&&m&&(m?.type==="Text"||m?.type==="ExpressionTag")}}function Zl(e,t,r){if(t.type==="RegularElement"&&t.name==="foreignObject")return"html";if(t.type==="RegularElement"||t.type==="SvelteElement")return t.metadata.svg?"svg":t.metadata.mathml?"mathml":"html";if(t.type==="Fragment"||t.type==="Root"||t.type==="Component"||t.type==="SvelteComponent"||t.type==="SvelteFragment"||t.type==="SnippetBlock"||t.type==="SlotElement"){let s=Pq(r,"keep");if(s!=="keep"&&s!=="maybe_html")return s}let i=null;for(let s of r)if(s.type==="RegularElement")if(s.metadata.mathml)i=i===null||i==="mathml"?"mathml":"html";else if(s.metadata.svg)i=i===null||i==="svg"?"svg":"html";else return"html";return i??e}function Pq(e,t){let r=(i,{stop:s})=>{!i.metadata.svg&&!i.metadata.mathml?(t="html",s()):t==="keep"&&(t=i.metadata.svg?"svg":"mathml")};for(let i of e)if(re(i,{},{_(s,{next:a}){(s.type==="EachBlock"||s.type==="IfBlock"||s.type==="AwaitBlock"||s.type==="Fragment"||s.type==="KeyBlock"||s.type==="RegularElement"||s.type==="SvelteElement"||s.type==="Text")&&a()},SvelteElement:r,RegularElement:r,Text(s){s.data.trim()!==""&&(t="maybe_html")}}),t==="html")return t;return t}function qr(e,t){return e.name==="foreignObject"?"html":e.metadata.svg?"svg":e.metadata.mathml?"mathml":"html"}function Ql(e,t,r){return{args:(e==="$inspect"?t:t.callee.object).arguments.map(s=>r(s)),inspector:e==="$inspect"?"console.log":r(t.arguments[0])}}function bx(e,t){let r=he(e,t.state.scope);if(r==="$host"||r==="$effect"||r==="$effect.pre"||r==="$inspect.trace")return Te;if(r==="$effect.tracking")return Jt;if(r==="$effect.root")return j([],M([]));if(r==="$effect.pending")return T(0);if(r==="$state"||r==="$state.raw")return e.arguments[0]?t.visit(e.arguments[0]):Te;if(r==="$derived"||r==="$derived.by"){let i=t.visit(e.arguments[0]);return y("$.derived",r==="$derived"?O(i):i)}if(r==="$state.eager")return t.visit(e.arguments[0]);if(r==="$state.snapshot")return y("$.snapshot",t.visit(e.arguments[0]),Ce(e,"state_snapshot_uncloneable")&&Z);if(r==="$inspect"||r==="$inspect().with"){if(!F)return ce;let{args:i,inspector:s}=Ql(r,e,t.visit);return r==="$inspect"?y(s,T("$inspect("),...i,T(")")):y(s,T("init"),...i)}t.next()}function yx(e,t){let r=t.state.analysis.classes.get(e);if(!r){t.next();return}let i=[],s={...t.state,state_fields:r};for(let[a,n]of r)if(a[0]!=="#"&&n&&n.node.type==="AssignmentExpression"&&(n.type==="$derived"||n.type==="$derived.by")){let p=X(rt,n.key);i.push(Kr(n.key,null),jt("get",Be(a),[],[le(y(p))]),jt("set",Be(a),[w("$$value")],[le(y(p,w("$$value")))]))}for(let a of e.body){if(a.type!=="PropertyDefinition"){i.push(t.visit(a,s));continue}let n=Ye(a.key),p=n&&r.get(n);if(!p){i.push(t.visit(a,s));continue}if(n[0]==="#"||p.type==="$state"||p.type==="$state.raw")i.push(t.visit(a,s));else if(p.node===a){let u=X(rt,p.key);i.push(Kr(p.key,t.visit(p.value,s)),jt("get",a.key,[],[le(y(u))]),jt("set",Be(n),[w("$$value")],[le(y(u,w("$$value")))]))}}return{...e,body:i}}function Ui(e,t,r){let i=[],s=[],a=[],n={default:[]},p={...r.state,scope:e.metadata.scopes.default},u={},d=e.attributes.some(k=>k.type==="Attribute"&&k.name==="slot"),m=!1;function h(k,S=!1){let C=()=>{let P=i.at(-1),R=Array.isArray(P),L=R?P:[];L.push(k),R||i.push(L)};S?s.push(C):C()}let _=new bt;for(let k of e.attributes)if(k.type==="LetDirective")d||n.default.push(k);else if(k.type==="SpreadAttribute"){let S=r.visit(k);i.push(_.transform(S,k.metadata.expression))}else if(k.type==="Attribute"){let S=Ze(k.value,r,_.transform,!1,!0);if(k.name.startsWith("--")){a.push(Y(k.name,S));continue}k.name==="children"&&(m=!0),h(ye("init",Be(k.name),S))}else if(k.type==="BindDirective"){if(_.check_blockers(k.metadata.expression),k.name==="this")continue;if(k.expression.type==="SequenceExpression"){let[S,C]=r.visit(k.expression).expressions,P=w(r.state.scope.generate("bind_get")),R=w(r.state.scope.generate("bind_set"));r.state.init.push(te(P,S)),r.state.init.push(te(R,C)),h(tt(k.name,[le(y(P))])),h(St(k.name,[$(y(R,w("$$value")))]))}else h(tt(k.name,[le(r.visit(k.expression))]),!0),h(St(k.name,[$(r.visit(ee("=",k.expression,w("$$value")))),$(ee("=",w("$$settled"),Jt))]),!0)}else k.type==="AttachTag"&&_.check_blockers(k.metadata.expression);s.forEach(k=>k());let v=[],E=[];for(let k of e.fragment.nodes){if(k.type==="SnippetBlock"){r.visit(k,{...r.state,init:v}),h(ye("init",k.expression,k.expression)),E.push(Y(k.expression.name==="children"?"default":k.expression.name,Z));continue}let S="default";if(Si(k)){let C=k.attributes.find(P=>P.type==="Attribute"&&P.name==="slot");C!==void 0?(S=C.value[0].data,n[S]=k.attributes.filter(P=>P.type==="LetDirective")):k.type==="SvelteFragment"&&n.default.push(...k.attributes.filter(P=>P.type==="LetDirective"))}u[S]=u[S]||[],u[S].push(k)}for(let k of Object.keys(u)){let S=r.visit({...e.fragment,nodes:u[k]},k==="default"?p:{...r.state,scope:e.metadata.scopes[k]});if(S.body.length===0)continue;let C=[w("$$renderer")];if(n[k].length>0){let R=Gr(n[k].map(L=>L.expression===null?Y(L.name,w(L.name)):L.expression.type==="ObjectExpression"?Y(L.name,Gr(L.expression.properties)):L.expression.type==="ArrayExpression"?Y(L.name,br(L.expression.elements)):Y(L.name,L.expression)));C.push(R)}let P=j(C,M(S.body));k==="default"&&!m?n.default.length===0&&u.default.every(R=>R.type!=="SvelteFragment"||!R.attributes.some(L=>L.type==="LetDirective"))?(h(ye("init",w("children"),F?y("$.prevent_snippet_stringification",P):P)),E.push(Y(k,Z))):(E.push(Y(k,P)),h(Y("children",w("$.invalid_default_snippet")))):E.push(Y(k,P))}E.length>0&&h(ye("init",w("$$slots"),J(E)));let l=i.length===0||i.length===1&&Array.isArray(i[0])?J(i[0]||[]):y("$.spread_props",z(i.map(k=>Array.isArray(k)?J(k):k))),o=e.type==="SvelteComponent"||e.type==="Component"&&e.metadata.dynamic,g=$(y(t,w("$$renderer"),l));o&&(g=qe(t,M([$(y("$$renderer.push",yt)),g,$(y("$$renderer.push",Ge))]),M([$(y("$$renderer.push",ii)),$(y("$$renderer.push",Ge))]))),v.length>0&&(g=M([...v,g])),a.length>0&&(g=$(y("$.css_props",w("$$renderer"),T(r.state.namespace!=="svg"),J(a),O(M([g])),o&&Z))),e.type!=="SvelteSelf"&&_.check_blockers(e.metadata.expression),r.state.template.push(..._.render_block([g])),!o&&!_.is_async()&&!r.state.is_standalone&&a.length===0&&r.state.template.push(nr)}function gx(e,t){Ui(e,t.visit(yr(e.name)),t)}function vx(e,t){let r=t.visit(e.declaration);if(e.metadata.promises_id&&e.declaration.type==="VariableDeclaration"&&r.type==="VariableDeclaration"){let{ids:i,assignments:s}=Aq(r);Vu(t,e.metadata,i,s,r.kind)}else t.state.init.push(r)}function Aq(e){let t=new Map;for(let i of e.declarations)for(let s of ue(i.id))t.set(s.name,s);let r=e.declarations.filter(i=>i.init!==null).map(i=>$(ee("=",i.id,i.init)));return{ids:[...t.values()],assignments:r}}function Vu(e,t,r,i,s="let"){let a=e.state.async_consts??={id:t.promises_id,thunks:[]};for(let d of r)e.state.init.push(s==="var"?te(d.name):De(d.name));let n=[...t.expression.references].map(d=>d.blocker).filter(d=>d!==null&&d.object!==e.state.async_consts?.id);n.length===1?a.thunks.push(O(n[0])):n.length>0&&a.thunks.push(O(y("Promise.all",z(n))));let p=t.expression.has_await||i.some(d=>Ft(d)),u=i.length===1?i[0].expression:M(i);a.thunks.push(O(u,p))}function wx(e,t){let r=e.declaration.declarations[0],i=t.visit(r.id),s=t.visit(r.init);e.metadata.promises_id?Vu(t,e.metadata,ue(i),[$(ee("=",i,s))],"let"):t.state.init.push(ge(i,s))}function xx(e,t){let r=e.identifiers.map(i=>t.state.scope.get(i.name)?.blocker).filter(i=>i!=null);t.state.template.push(...pt([$(y("console.log",J(e.identifiers.map(i=>ye("init",i,t.visit(i)))))),ha],z(r),!1))}function kx(e,t){let r=t.state,i=e.metadata,s=t.visit(e.expression),a=i.contains_group_binding||!e.index?i.index:w(e.index),n=r.scope.root.unique("each_array"),p=[ge(n,y("$.ensure_array_like",s))],u=[];e.context&&u.push(De(e.context,X(n,a,!0))),a.name!==e.index&&e.index!=null&&u.push(De(e.index,a));let d=t.visit(e.body).body;e.body&&u.push(...d);let m=ab(lt("let",[ne(a,T(0)),ne("$$length",X(n,"length"))]),kt("<",a,w("$$length")),ma("++",a,!1),M(u));if(e.fallback){let h=$(y(w("$$renderer.push"),yt)),_=t.visit(e.fallback);Fi(_,ii.value),p.push(qe(kt("!==",X(n,"length"),T(0)),M([h,m]),_))}else r.template.push(yt),p.push(m);r.template.push(...pt(p,e.metadata.expression.blockers(),e.metadata.expression.has_await),Ge)}function Ex(e,t){let r=he(e.expression,t.state.scope);if(r==="$effect"||r==="$effect.pre"||r==="$effect.root"||r==="$inspect.trace")return ce;t.next()}function Sx(e,t){let r=t.path.at(-1)??e,i=Zl(t.state.namespace,r,e.nodes),{hoisted:s,trimmed:a,is_standalone:n,is_text_first:p}=Rr(r,e.nodes,t.path,i,t.state,t.state.preserve_whitespace,t.state.options.preserveComments),u={...t.state,init:[],template:[],namespace:i,is_standalone:n,async_consts:void 0};for(let d of s)t.visit(d,u);return p&&u.template.push(nr),or(a,{...t,state:u}),u.async_consts&&u.async_consts.thunks.length>0&&u.init.push(te(u.async_consts.id,y("$$renderer.run",z(u.async_consts.thunks)))),M([...u.init,...je(u.template)])}function Cx(e,t){let r=y("$.html",t.visit(e.expression));e.metadata.expression.is_async()?t.state.template.push(...pt([$(y("$$renderer.push",r))],e.metadata.expression.blockers(),e.metadata.expression.has_await)):t.state.template.push(r)}function Tx(e,t){if(Ve(e,t.path.at(-1)))return e.name==="$$props"?w("$$sanitized_props"):e.name.startsWith("$$derived_array")?y(e):Hu(e,t.state)}function Px(e,t){let r=t.visit(e.consequent);Fi(r,"<!--[0-->");let i=qe(t.visit(e.test),r),s=1,a=i,n=e.alternate;for(let u of e.metadata.flattened??[]){let d=t.visit(u.consequent);Fi(d,`<!--[${s++}-->`),a=a.alternate=qe(t.visit(u.test),d),n=u.alternate}let p=n?t.visit(n):M([]);Fi(p,"<!--[-1-->"),a.alternate=p,t.state.template.push(...pt([i],e.metadata.expression.blockers(),e.metadata.expression.has_await),Ge)}function Ax(e,t){let r=e.metadata.expression.is_async();r&&t.state.template.push(yt),t.state.template.push(nr,t.visit(e.fragment),nr),r&&t.state.template.push(Ge)}function $x(e,t){if(t.state.analysis.runes||t.path.length>1||e.label.name!=="$"){t.next();return}return t.state.legacy_reactive_statements.set(e,tb("$",t.visit(e.body))),ce}function Rx(e,t){if(t.state.analysis.runes&&e.property.type==="PrivateIdentifier"){let r=t.state.state_fields?.get(`#${e.property.name}`);if(r?.type==="$derived"||r?.type==="$derived.by")return y(e)}t.next()}function ec(e,t,r){let i=e.sync.map(s=>r(s));if(e.declarations.length>0&&i.push(lt("var",e.declarations.map(s=>ne(s)))),e.async.length>0){let s=e.async.map(a=>{let n=[];for(let p of a.nodes)n.push(...$q(p,r));return n.length===0?O(Te,!1):n.length===1&&n[0].type==="ExpressionStatement"?O(n[0].expression,a.has_await):O(M(n),a.has_await)});i.push(te("$$promises",y(t,z(s))))}return i}function $q(e,t){if(e.type==="VariableDeclarator"){let i=t(te(e.id,e.init));return i.type==="VariableDeclaration"?i.declarations.map(s=>s.id.type==="Identifier"&&(s.id.name.startsWith("$$d")||s.id.name.startsWith("$$array"))?te(s.id,s.init):$(ee("=",s.id,s.init??Te))):[]}if(e.type==="ClassDeclaration")return[$(ee("=",e.id,{...e,type:"ClassExpression"}))];if(e.type==="ExpressionStatement"){let i=t(e.expression);return i.type==="EmptyStatement"?[]:i.type==="AwaitExpression"?[$(i)]:[$(ls("void",i))]}let r=t(e);return r.type==="EmptyStatement"?[]:[r]}function qx(e,t){if(t.state.is_instance){let r=t.state;return{...e,body:ec(r.analysis.instance_body,w("$$renderer.run"),i=>t.visit(i))}}t.next()}function Ix(e,t){if(t.state.analysis.runes&&e.value!=null&&e.value.type==="CallExpression"){let r=he(e.value,t.state.scope);if(r==="$state"||r==="$state.raw")return{...e,value:e.value.arguments.length===0?null:t.visit(e.value.arguments[0])};if(r==="$derived.by"||r==="$derived"){let i=t.visit(e.value.arguments[0]);return{...e,value:e.value.arguments.length===0?null:y("$.derived",r==="$derived"?O(i):i)}}}t.next()}var zu=["class","style"];function rc(e,t,r){let i=[],s=[],a=[],n=null,p=!1,u=new Set;for(let d of e.attributes)if(d.type==="Attribute")d.name==="value"?e.name==="textarea"?(d.value!==!0&&Array.isArray(d.value)&&d.value[0].type==="Text"&&Lr.test(d.value[0].data)&&(d.value[0].data=`
|
|
216
|
+
`+d.value[0].data),n=y("$.escape",Ze(d.value,t,r))):e.name!=="select"&&i.push(d):Pe(d)?(d.name==="onload"||d.name==="onerror")&&ui(e.name)&&u.add(d.name):e.type==="RegularElement"&&e.name==="input"&&(d.name==="defaultValue"||d.name==="defaultChecked")?(i.push(d),p=!0):d.name!=="defaultValue"&&d.name!=="defaultChecked"&&(d.name==="class"&&d.metadata.needs_clsx?i.push({...d,value:{...d.value,expression:y("$.clsx",d.value.expression)}}):i.push(d));else if(d.type==="BindDirective"){if(d.name==="value"&&e.name==="select"||d.name==="value"&&i.some(_=>_.type==="Attribute"&&_.name==="type"&&me(_)&&_.value[0].data==="file")||d.name==="this"||zt[d.name]?.omit_in_ssr)continue;let h=t.visit(d.expression);if(h.type==="SequenceExpression"&&(h=y(h.expressions[0])),h=r(h,d.metadata.expression),d.name==="innerHTML")n=h;else if(pi(d.name)||d.name==="value"&&e.name==="textarea")n=y("$.escape",h);else if(d.name==="group"&&d.expression.type!=="SequenceExpression"){let _=e.attributes.find(E=>E.type==="Attribute"&&E.name==="value");if(!_)continue;let v=e.attributes.some(E=>E.type==="Attribute"&&E.name==="type"&&me(E)&&E.value[0].data==="checkbox");i.push({type:"transformed",name:"checked",expression:v?y(X(h,"includes"),Ze(_.value,t,r)):kt("===",h,Ze(_.value,t,r))})}else i.push({type:"transformed",name:tc(e,d),expression:h})}else d.type==="SpreadAttribute"?(i.push(d),p=!0,ui(e.name)&&(u.add("onload"),u.add("onerror"))):d.type==="UseDirective"?ui(e.name)&&(u.add("onload"),u.add("onerror")):d.type==="ClassDirective"?s.push(d):d.type==="StyleDirective"?a.push(d):d.type==="LetDirective"||t.visit(d);if(p)Nq(e,i,a,s,t,r);else{let d=e.metadata.scoped?t.state.analysis.css.hash:null;for(let m of i){if(m.type==="transformed"){t.state.template.push(y("$.attr",T(m.name),m.expression,Sc(m.name)&&Z));continue}let h=tc(e,m),_=(h!=="class"||s.length===0)&&(h!=="style"||a.length===0);if(_&&(m.value===!0||me(m))){let E=Ze(m.value,t,r,zu.includes(h)).value;h==="class"&&d&&(E=(String(E)+" "+d).trim()),(h!=="class"||E)&&t.state.template.push(T(` ${h}="${E===!0?"":String(E)}"`));continue}let v=Ze(m.value,t,r,zu.includes(h));_&&v.type==="Literal"&&typeof v.value=="string"?(h==="class"&&d&&(v.value=(v.value+" "+d).trim()),t.state.template.push(T(` ${h}="${Gt(v.value,!0)}"`))):h==="class"?t.state.template.push(Mq(s,v,t,d,r)):h==="style"?t.state.template.push(Lq(a,v,t,r)):t.state.template.push(y("$.attr",T(h),v,Sc(h)&&Z))}}if(u.size!==0)for(let d of u)t.state.template.push(T(` ${d}="this.__e=event"`));return n}function tc(e,t){let r=t.name;return!e.metadata.svg&&!e.metadata.mathml&&(r=r.toLowerCase()),r}function Iq(e,t,r,i){let s=e.type==="RegularElement"&&e.name==="select";return J(t.map(n=>{if(n.type==="transformed")return ye("init",Be(n.name),n.expression);if(n.type==="Attribute"){let p=tc(e,n);s&&p==="defaultvalue"&&(p="defaultValue");let u=Ze(n.value,r,i,zu.includes(p));return ye("init",Be(p),u)}else if(n.type==="BindDirective"){let p=tc(e,n),u=r.visit(n.expression),d=u.type==="SequenceExpression"?y(u.expressions[0]):u;return ye("init",Be(p),d)}return ft(i(r.visit(n),n.metadata.expression))}))}function Nq(e,t,r,i,s,a){let n=Mx(e,t,r,i,s,a),p=y("$.attributes",...n);s.state.template.push(p)}function Wu(e,t,r){let i=[],s=[],a=[];for(let n of e.attributes)n.type==="Attribute"||n.type==="BindDirective"||n.type==="SpreadAttribute"?i.push(n):n.type==="ClassDirective"?s.push(n):n.type==="StyleDirective"&&a.push(n);return Mx(e,i,a,s,t,r)}function Mx(e,t,r,i,s,a){let n,p,u=0;if(i.length){let h=i.map(_=>Y(_.name,_.expression.type==="Identifier"&&_.expression.name===_.name?w(_.name):a(s.visit(_.expression),_.metadata.expression)));n=J(h)}if(r.length>0){let h=r.map(_=>Y(_.name,_.value===!0?w(_.name):Ze(_.value,s,a,!0)));p=J(h)}e.metadata.svg||e.metadata.mathml?u|=3:ct(e)?u|=2:e.type==="RegularElement"&&e.name==="input"&&(u|=4);let d=Iq(e,t,s,a),m=e.metadata.scoped&&s.state.analysis.css.hash?T(s.state.analysis.css.hash):void 0;return[d,m,n,p,u?T(u):void 0]}function Mq(e,t,r,i,s){let a;e.length&&(a=J(e.map(p=>ye("init",T(p.name),s(r.visit(p.expression,r.state),p.metadata.expression)))));let n;return i&&(t.type==="Literal"&&typeof t.value=="string"?t.value=(t.value+" "+i).trim():n=T(i)),y("$.attr_class",t,n,a)}function Lq(e,t,r,i){let s;if(e.length){let a=[],n=[];for(let p of e){let u=p.value===!0?w(p.name):Ze(p.value,r,i,!0),d=p.name;(d[0]!=="-"||d[1]!=="-")&&(d=d.toLowerCase());let m=Y(d,u);p.modifiers.includes("important")?n.push(m):a.push(m)}n.length?s=z([J(a),J(n)]):s=J(a)}return y("$.attr_style",t,s)}function Lx(e,t){let r=t.state.namespace==="html"?e.name.toLowerCase():e.name,i=qr(e,t.state.namespace),s=!e.fragment.metadata.transparent,a={...t.state,namespace:i,scope:t.state.scopes.get(e.fragment),preserve_whitespace:t.state.preserve_whitespace||e.name==="pre"||e.name==="textarea",init:[],template:[],async_consts:void 0},n={...a,scope:t.state.scope},p=vt(r),u=new bt,d=r==="select"&&e.attributes.some(l=>(l.type==="Attribute"||l.type==="BindDirective")&&(l.name==="value"||l.name.toLowerCase()==="defaultvalue")||l.type==="SpreadAttribute"),m=r==="option",h=d||m,_=null;if(h||(a.template.push(T(`<${r}`)),_=rc(e,{...t,state:n},u.transform),a.template.push(T(p?"/>":">"))),(r==="script"||r==="style")&&e.fragment.nodes.length===1){a.template.push(T(e.fragment.nodes[0].data),T(`</${r}>`)),t.state.template.push(...u.render([...a.init,...je(a.template)]));return}let{hoisted:v,trimmed:E}=Rr(e,e.fragment.nodes,t.path,i,a,a.preserve_whitespace,a.options.preserveComments);for(let l of v)t.visit(l,a);if(F){let l=_e(e.start);a.template.push($(y("$.push_element",w("$$renderer"),T(r),T(l.line),T(l.column))))}if(d){let l={...a,template:[],init:[]};or(E,{...t,state:l});let o=j([w("$$renderer")],M([...a.init,...je(l.template)])),[g,...k]=Wu(e,t,u.transform);kr(e)&&k.push(Z);let S=$(y("$$renderer.select",g,o,...k));t.state.template.push(...u.render([...a.init,S]));return}if(m){let l;if(e.metadata.synthetic_value_node)l=u.transform(t.visit(e.metadata.synthetic_value_node.expression),e.metadata.synthetic_value_node.metadata.expression);else{let S={...a,template:[],init:[]};or(E,{...t,state:S});let C=[...a.init,...je(S.template)];if(F){let P=_e(e.start);C.unshift($(y("$.push_element",w("$$renderer"),T(r),T(P.line),T(P.column)))),C.push($(y("$.pop_element")))}l=j([w("$$renderer")],M(C))}let[o,...g]=Wu(e,t,u.transform);kr(e)&&g.push(Z);let k=$(y("$$renderer.option",o,l,...g));t.state.template.push(...u.render([...a.init,k]));return}if(_!==null){let l={...a,template:[],init:[]};or(E,{...t,state:l});let o=_;_.type!=="Identifier"&&(o=w(a.scope.generate("$$body")),a.template.push(ge(o,_))),a.template.push(qe(o,M(je([o])),M([...l.init,...je(l.template)])))}else or(E,{...t,state:a}),(r==="optgroup"||r==="select")&&kr(e)&&a.template.push(T("<!>"));p||a.template.push(T(`</${r}>`)),F&&a.template.push($(y("$.pop_element"))),s&&a.async_consts&&a.async_consts.thunks.length>0&&a.init.push(te(a.async_consts.id,y("$$renderer.run",z(a.async_consts.thunks)))),s?t.state.template.push(...u.render([M([...a.init,...je(a.template)])])):u.is_async()?t.state.template.push(...u.render([...a.init,...je(a.template)])):(t.state.init.push(...a.init),t.state.template.push(...a.template))}function Ox(e,t){let r=new bt,i=wr(e.expression).callee,s=wr(e.expression).arguments,a=r.transform(t.visit(i),e.metadata.expression),n=s.map((u,d)=>r.transform(t.visit(u),e.metadata.arguments[d])),p=$((e.expression.type==="CallExpression"?y:Bt)(a,w("$$renderer"),...n));t.state.template.push(...r.render_block([p])),!r.is_async()&&!t.state.is_standalone&&t.state.template.push(nr)}function Dx(e,t){let r=[],i=[],s=new bt,a=T("default");for(let d of e.attributes)if(d.type==="SpreadAttribute"){let m=t.visit(d);i.push(s.transform(m,d.metadata.expression))}else if(d.type==="Attribute"){let m=Ze(d.value,t,s.transform,!1,!0);d.name==="name"?a=m:d.name!=="slot"&&r.push(Y(d.name,m))}let n=i.length===0?J(r):y("$.spread_props",z([J(r),...i])),p=e.fragment.nodes.length===0?st:O(t.visit(e.fragment)),u=y("$.slot",w("$$renderer"),w("$$props"),a,n,p);t.state.template.push(yt,...s.render_block([$(u)]),Ge)}function Bx(e,t){let r=Wr(e.expression,[w("$$renderer"),...e.parameters],t.visit(e.body));r.___snippet=!0;let i=e.metadata.can_hoist?t.state.hoisted:t.state.init;F&&(r.body.body.unshift($(y("$.validate_snippet_args",w("$$renderer")))),i.push($(y("$.prevent_snippet_stringification",r.id)))),i.push(r)}function jx(e,t){return t.visit(e.expression)}function Fx(e,t){Ui(e,t.visit(e.expression),t)}function Ux(e,t){let r=t.visit(e.tag);if(F){if(r.type!=="Identifier"){let u=t.state.scope.generate("$$tag");t.state.init.push(ge(u,r)),r=w(u)}t.state.init.push($(y("$.validate_dynamic_element_tag",O(r)))),e.fragment.nodes.length>0&&t.state.init.push($(y("$.validate_void_dynamic_element",O(r))))}let i={...t.state,namespace:qr(e,t.state.namespace),template:[],init:[]},s=new bt,a=[];if(rc(e,{...t,state:i},s.transform),F){let u=_e(e.start);a.push($(y("$.push_element",w("$$renderer"),r,T(u.line),T(u.column))))}let n=M([...i.init,...je(i.template)]),p=t.visit(e.fragment,i);a.push(...s.render([$(y("$.element",w("$$renderer"),r,n.body.length>0&&O(n),p.body.length>0&&O(p)))])),F&&a.push($(y("$.pop_element"))),t.state.template.push(...pt(a,e.metadata.expression.blockers(),e.metadata.expression.has_await))}function Hx(e,t){t.state.template.push(t.visit(e.fragment))}function Vx(e,t){let r=t.visit(e.fragment);t.state.template.push($(y("$.head",T(li($e)),w("$$renderer"),j([w("$$renderer")],r))))}function zx(e,t){Ui(e,w(t.state.analysis.name),t)}function Wx(e,t){let r=[T("<title>")];or(e.fragment.nodes,{...t,state:{...t.state,template:r}}),r.push(T("</title>")),t.state.init.push($(y("$$renderer.title",j([w("$$renderer")],M(je(r))))))}function Gx(e,t){let r=e.argument;if(r.type==="Identifier"){let i=t.state.scope.get(r.name);if(i?.kind==="store_sub")return y(e.prefix?"$.update_store_pre":"$.update_store",ee("??=",w("$$store_subs"),J([])),T(r.name),w(r.name.slice(1)),e.operator==="--"&&T(-1));if(i?.kind==="derived")return y(e.prefix?"$.update_derived_pre":"$.update_derived",i.node,e.operator==="--"&&T(-1))}return t.next()}function Xx(e,t){let r=[];if(t.state.analysis.runes)for(let i of e.declarations){let s=i.init,a=he(s,t.state.scope);if(!a||a==="$effect.tracking"||a==="$inspect"||a==="$effect.root"){r.push(t.visit(i));continue}if(a==="$props.id")continue;if(a==="$props"){let u=!1,d=re(i.id,null,{RestElement(h,_){_.path.at(-1)===i.id&&(u=!0)},AssignmentPattern(h){if(h.right.type==="CallExpression"&&he(h.right,t.state.scope)==="$bindable"){let _=h.right.arguments.length?t.visit(h.right.arguments[0]):Te;return da(h.left,_)}}}),m=t.state.analysis.uses_slots?w("$$slots_"):w("$$slots");d.type==="ObjectPattern"&&u?d.properties.splice(d.properties.length-1,0,ye("init",w("$$slots"),m),ye("init",w("$$events"),w("$$events"))):d.type==="Identifier"&&(d=Gr([ye("init",w("$$slots"),m),ye("init",w("$$events"),w("$$events")),xi(w(d.name))])),r.push(ne(t.visit(d),w("$$props")));continue}let n=s.arguments,p=n.length>0?t.visit(n[0]):Te;if(a==="$derived"||a==="$derived.by"){let d=a==="$derived"&&t.state.analysis.async_deriveds.has(i.init)?et(y("$.async_derived",O(p,!0))):y("$.derived",a==="$derived"?O(p):p);if(i.id.type==="Identifier")r.push(ne(t.visit(i.id),d));else{let m=i.init,h=m.arguments[0];if(a==="$derived.by"||m.arguments[0].type!=="Identifier"){let E=w(t.state.scope.generate("$$d"));h=y(E),r.push(ne(E,d))}let{inserts:_,paths:v}=Xe(i.id,h);for(let{id:E,value:l}of _){E.name=t.state.scope.generate("$$derived_array");let o=t.visit(O(l)),g=y("$.derived",o);r.push(ne(E,g))}for(let E of v){let l=t.visit(E.expression),o=y("$.derived",O(l));r.push(ne(E.node,o))}}continue}if(i.id.type==="Identifier"){r.push(ne(i.id,p));continue}r.push(...Kx(i,t.state.scope,p))}else for(let i of e.declarations){let s=t.state.scope.get_bindings(i),a=s.some(p=>p.kind==="state"),n=s.some(p=>p.kind==="bindable_prop");if(!a&&!n){r.push(t.visit(i));continue}if(n){if(i.id.type!=="Identifier"){let m=w(t.state.scope.generate("tmp")),{inserts:h,paths:_}=Xe(i.id,m);r.push(ne(m,t.visit(i.init)));for(let{id:v,value:E}of h)v.name=t.state.scope.generate("$$array"),r.push(ne(v,E));for(let v of _){let E=v.expression,l=v.node.name,o=t.state.scope.get(l),g=X(w("$$props"),T(o.prop_alias??l),!0);r.push(ne(v.node,ya(g,E)))}continue}let p=t.state.scope.get(i.id.name),u=X(w("$$props"),T(p.prop_alias??i.id.name),!0),d=u;if(i.init){let m=t.visit(i.init);d=ya(u,m)}r.push(ne(i.id,d));continue}r.push(...Kx(i,t.state.scope,i.init&&t.visit(i.init)))}return r.length===0?ce:{...e,declarations:r}}function Kx(e,t,r){if(e.id.type==="Identifier")return[ne(e.id,r)];let i=w(t.generate("tmp")),{paths:s,inserts:a}=Xe(e.id,i);return[ne(i,r),...a.map(({id:n,value:p})=>(n.name=t.generate("$$array"),ne(n,p))),...s.map(n=>{let p=n.expression;return ne(n.node,p)})]}function Yx(e,t){let r=e.fragment.nodes.find(E=>E.type==="SnippetBlock"&&E.expression.name==="failed"),i=e.attributes.find(E=>E.type==="Attribute"&&E.name==="failed"),s=e.attributes.find(E=>E.type==="Attribute"&&E.name==="pending"),a=s&&typeof s.value=="object"&&!Array.isArray(s.value)&&!t.state.scope.evaluate(s.value.expression).is_defined,n=e.fragment.nodes.find(E=>E.type==="SnippetBlock"&&E.expression.name==="pending"),p=e.fragment.nodes.filter(E=>!(E.type==="SnippetBlock"&&["failed","pending"].includes(E.expression.name))),u={...e.fragment,nodes:p},d=t.visit(u,{...t.state,scope:t.state.scopes.get(e.fragment)??t.state.scope}),m;if(s||n)if(s&&a&&!n){let{callee:E,pending_block:l}=Jx(s,t);m=M([qe(E,l,M(je([yt,d,Ge])))])}else m=s?Jx(s,t).pending_block:Oq(n,t);else m=M(je([yt,d,Ge]));if(!r&&!i){t.state.template.push(...m.body);return}let h=J([]),_=[];if(i&&!r){let E=Ze(i.value,t,l=>l,!1,!0);h.properties.push(Y("failed",E))}else r&&(t.visit(r,{...t.state,init:_}),h.properties.push(Y("failed",r.expression)));let v=$(y("$$renderer.boundary",h,j([w("$$renderer")],m)));t.state.template.push(_.length>0?M([..._,v]):v)}function Jx(e,t){let r=Ze(e.value,t,s=>s,!1,!0),i=y(r,w("$$renderer"));return{callee:r,pending_block:M(je([ii,$(i),Ge]))}}function Oq(e,t){return M(je([ii,t.visit(e.body),Ge]))}var Gu={_:Ti,AssignmentExpression:px,AwaitExpression:_x,CallExpression:bx,ClassBody:yx,ExpressionStatement:Ex,Identifier:Tx,LabeledStatement:$x,MemberExpression:Rx,Program:qx,PropertyDefinition:Ix,UpdateExpression:Gx,VariableDeclaration:Xx},Dq={AwaitBlock:hx,Component:gx,ConstTag:wx,DeclarationTag:vx,DebugTag:xx,EachBlock:kx,Fragment:Sx,HtmlTag:Cx,IfBlock:Px,KeyBlock:Ax,RegularElement:Lx,RenderTag:Ox,SlotElement:Dx,SnippetBlock:Bx,SpreadAttribute:jx,SvelteComponent:Fx,SvelteElement:Ux,SvelteFragment:Hx,SvelteHead:Vx,SvelteSelf:zx,TitleElement:Wx,SvelteBoundary:Yx};function Zx(e,t){let r={analysis:e,options:t,scope:e.module.scope,scopes:e.module.scopes,hoisted:[_a("$","svelte/internal/server"),...e.instance_body.hoisted],legacy_reactive_statements:new Map,init:null,template:null,namespace:t.namespace,preserve_whitespace:t.preserveWhitespace,state_fields:new Map,is_standalone:!1,is_instance:!1},i=re(e.module.ast,r,Gu),s=re(e.instance.ast,{...r,scopes:e.instance.scopes,is_instance:!0},{...Gu,ImportDeclaration(l){return r.hoisted.push(l),ce},ExportNamedDeclaration(l,o){return l.declaration?o.visit(l.declaration):ce}}),a=re(e.template.ast,{...r,scopes:e.template.scopes},{...Gu,...Dq}),n=[];for(let[l]of e.reactive_statements){let o=r.legacy_reactive_statements.get(l);if(o===void 0)throw new Error("Could not find reactive statement");if(l.body.type==="ExpressionStatement"&&l.body.expression.type==="AssignmentExpression")for(let g of ue(l.body.expression.left))e.instance.scope.get(g.name)?.kind==="legacy_reactive"&&n.push(ne(g));s.body.push(o)}if(n.length>0&&s.body.unshift({type:"VariableDeclaration",kind:"let",declarations:n}),e.uses_component_bindings){let l=a.body.filter(g=>g.type==="FunctionDeclaration"&&g.___snippet),o=a.body.filter(g=>g.type!=="FunctionDeclaration"||!g.___snippet);a.body=[...l,De("$$settled",Z),De("$$inner_renderer"),Wr(w("$$render_inner"),[w("$$renderer")],M(o)),sb(ls("!",w("$$settled")),M([$(ee("=",w("$$settled"),Z)),$(ee("=",w("$$inner_renderer"),y("$$renderer.copy"))),$(y("$$render_inner",w("$$inner_renderer")))])),$(y("$$renderer.subsume",w("$$inner_renderer")))]}let p=[...e.instance.scope.declarations.values()].filter(l=>l.kind==="store_sub"),u=p.some(l=>l.blocker);if(p.length>0){s.body.unshift(te("$$store_subs"));let l=qe(w("$$store_subs"),$(y("$.unsubscribe_stores",w("$$store_subs"))));a.body.push(u?$(y("$$renderer.on_destroy",j([],M([l])))):l)}let d=[];for(let[l,o]of e.instance.scope.declarations)o.kind==="bindable_prop"&&!l.startsWith("$$")&&d.push(Y(o.prop_alias??l,w(l)));for(let{name:l,alias:o}of e.exports)d.push(Y(o??l,w(l)));d.length>0&&a.body.push($(y("$.bind_props",w("$$props"),J(d))));let m=M([...s.body,...a.body]);m.loc=s.loc,e.props_id&&m.body.unshift(ge(e.props_id,y("$.props_id",w("$$renderer"))));let h=F||e.needs_context||u;if(h&&(m=M([$(y("$$renderer.component",j([w("$$renderer")],m,!1),F&&w(fr)))])),e.uses_rest_props){let l=e.exports.map(({name:o,alias:g})=>g??o);for(let[o,g]of e.instance.scope.declarations)g.kind==="bindable_prop"&&l.push(g.prop_alias??o);m.body.unshift(ge("$$restProps",y("$.rest_props",w("$$sanitized_props"),z(l.map(o=>T(o))))))}(e.uses_props||e.uses_rest_props)&&m.body.unshift(ge("$$sanitized_props",y("$.sanitize_props",w("$$props")))),e.uses_slots&&m.body.unshift(ge("$$slots",y("$.sanitize_slots",w("$$props"))));let _=[...r.hoisted,...i.body];if(e.css.ast!==null&&e.inject_styles&&!e.custom_element){let l=T(e.css.hash),o=T(ji(e.source,e,t).code);_.push(ge("$$css",J([Y("hash",l),Y("code",o)]))),m.body.unshift($(y("$$renderer.global.css.add",w("$$css"))))}let v=h||d.length>0||e.needs_props||e.uses_props||e.uses_rest_props||e.uses_slots||e.slot_names.size>0,E=Wr(w(e.name),v?[w("$$renderer"),w("$$props")]:[w("$$renderer")],m);return t.compatibility.componentApi===4?(_.unshift(Yt([["render","$$_render"]],"svelte/server")),_.push(E,$(ee("=",yr(`${e.name}.render`),Ue(null,[w("$$props"),w("$$opts")],M([le(y("$$_render",w(e.name),J([Y("props",w("$$props")),Y("context",X(w("$$opts"),"context",!1,!0))])))])))),zr(w(e.name)))):F?_.push(E,$(ee("=",yr(`${e.name}.render`),Ue(null,[],M([nb("Component.render(...) is no longer valid in Svelte 5. See https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes for more information")])))),zr(w(e.name))):_.push(zr(E)),F&&_.unshift($(ee("=",X(w(e.name),"$.FILENAME",!0),T($e)))),t.experimental.async&&_.unshift(Yt([],"svelte/internal/flags/async")),{type:"Program",sourceType:"module",body:_}}function si(e,t){return(e.kind==="state"||e.kind==="raw_state")&&(!t.immutable||e.reassigned||t.accessors)}function Qe(e,t){if(Object.hasOwn(t.transform,e.name)){let r=t.scope.get(e.name);if(e!==r?.node)return t.transform[e.name].read(e)}return e}function ic(e,t,r,i){let s=[w("$$props"),T(r)],a=0;e.kind==="bindable_prop"&&(a|=8),t.analysis.immutable&&(a|=1),t.analysis.runes&&(a|=2),(t.analysis.accessors||(t.analysis.immutable?e.reassigned||t.analysis.runes&&e.mutated:e.updated))&&(a|=4);let n;return i&&(Zt(i)?n=i:(i.type==="CallExpression"&&i.callee.type==="Identifier"&&i.arguments.length===0?n=i.callee:n=O(i),a|=16)),(a||n)&&(s.push(T(a)),n&&s.push(n)),y("$.prop",...s)}function sc(e,t){return(e.kind==="prop"||e.kind==="bindable_prop")&&(!t.analysis.runes||t.analysis.accessors||e.reassigned||e.initial||e.updated)}function Me(e,t){if(!t.has_pickled_await)return j([],e,!0);let r=e.type==="BlockStatement"?e:M([le(e)]);return j([],M([{type:"TryStatement",block:r,handler:null,finalizer:M([$(y("$.unsave"))])}]),!0)}function Ir(e,t,r){return r?.has_await?tr(y("$.async_derived",Me(t,r))):y(e.analysis.runes?"$.derived":"$.derived_safe_equal",O(t))}function ac(e,t){let r={...t.transform};for(let[i,s]of e.declarations)(s.kind==="normal"||s.kind==="state"&&!si(s,t.analysis))&&delete r[i];return r}var Fe=class{#e=[];#t=[];#r=new Set;add(t,r,i=!1){if(this.check_blockers(r),!(r.has_call||r.has_await||i&&r.has_state))return t;let a=w("#");return(r.has_await?this.#t:this.#e).push({id:a,expression:t,metadata:r}),a}check_blockers(t){for(let r of t.references)r.blocker&&this.#r.add(r.blocker)}apply(){return[...this.#e,...this.#t].map((t,r)=>(t.id.name=`$${r}`,t.id))}blockers(){return this.#r.size>0?z([...this.#r]):void 0}deriveds(t=!0){return this.#e.map(r=>De(r.id,y(t?"$.derived":"$.derived_safe_equal",O(r.expression))))}async_ids(){return this.#t.map(t=>t.id)}async_values(){if(this.#t.length!==0)return z(this.#t.map(t=>Me(t.expression,t.metadata)))}sync_values(){if(this.#e.length!==0)return z(this.#e.map(t=>j([],t.expression)))}};function Nr(e,t,r=t.state,i=(s,a)=>r.memoizer.add(s,a)){let s=[],a=Et(""),n=[a],p=!1,u=!1;for(let m=0;m<e.length;m++){let h=e[m];if(h.type==="Text")a.value.cooked+=h.data;else if(h.expression.type==="Literal")h.expression.value!=null&&(a.value.cooked+=h.expression.value+"");else if(h.expression.type!=="Identifier"||h.expression.name!=="undefined"||r.scope.get("undefined")){let _=i(Re(t,h.expression,h.metadata.expression,r),h.metadata.expression),v=r.scope.evaluate(_);if(u||=h.metadata.expression.has_await||h.metadata.expression.has_blockers(),p||=u||h.metadata.expression.has_state&&!v.is_known,e.length===1)return v.is_known&&(_=T((v.value??"")+"")),{value:_,has_state:p};_.type==="LogicalExpression"&&_.right.type==="Literal"&&(_.operator==="??"||_.operator==="||")&&_.right.value===null&&(_={..._,right:T("")}),v.is_known?a.value.cooked+=(v.value??"")+"":(v.is_defined||(_=it("??",_,T(""))),s.push(_),a=Et("",m+1===e.length),n.push(a))}}for(let m of n)m.value.raw=Vr(m.value.cooked);return{value:s.length>0?gr(n,s):T(a.value.cooked),has_state:p}}function ai(e){let{memoizer:t}=e,r=t.apply();return $(y("$.template_effect",j(r,e.update.length===1&&e.update[0].type==="ExpressionStatement"?e.update[0].expression:M(e.update)),t.sync_values(),t.async_values(),t.blockers()))}function Hi(e){let t=e.split("."),r=t.shift(),i=w(r);for(;r=t.shift();){let s=!Ji.test(r);i=X(i,s?T(r):w(r),s)}return i}function nc(e,t,{state:r,visit:i}){let[s,a]=e.type==="SequenceExpression"?e.expressions:[null,null],n=[],p=[],u=[],d={...r.transform};re(s??e,null,{Identifier(E,{path:l}){if(u.includes(E.name))return;u.push(E.name);let o=l.at(-1);if(!Ve(E,o))return;let g=r.scope.get(E.name);if(g&&!(si(g,r.analysis)||g.kind==="derived")){for(let[k,S]of r.scopes)if(k.type==="EachBlock"&&S===g.scope){n.push(E),p.push(i(E)),d[E.name]&&(d[E.name]={...d[E.name],read:C=>C});break}}}});let m={...r,transform:d},h=i(s??e,m),_=i(a??ee("=",e,w("$$value")),m),v=h;for(;v.type==="MemberExpression";)v.optional=!0,v=v.object;return h=h.type==="ArrowFunctionExpression"?j([...n],h.body):h.type==="FunctionExpression"?Ue(null,[...n],h.body):s?h:j([...n],h),_=_.type==="ArrowFunctionExpression"?j([_.params[0]??w("_"),...n],_.body):_.type==="FunctionExpression"?Ue(null,[_.params[0]??w("_"),...n],_.body):a?_:j([w("$$value"),...n],_),y("$.bind_this",t,_,h,p.length>0&&O(z(p)))}function oc(e,t,r){if(t.expression.type==="SequenceExpression")return;let i=Ie(t.expression);if((i&&e.scope.get(i.name))?.kind==="store_sub")return;let a=_e(t.start),n=r.object;e.init.push($(y("$.validate_binding",T(e.analysis.source.slice(t.start,t.end)),t.metadata.expression.blockers(),O(e.store_to_invalidate?Oe([y("$.mark_store_binding"),n]):n),O(r.computed?r.property:T(r.property.name)),T(a.line),T(a.column))))}function lc(e,t,r){let i=e.type==="AssignmentExpression"?e.left:e.argument;if(!F||i.type!=="MemberExpression"||Ce(e,"ownership_invalid_mutation"))return r;let s=Ie(i);if(!s)return r;let a=t.state.scope.get(s.name);if(a?.kind!=="prop"&&a?.kind!=="bindable_prop")return r;let n=t.state;n.analysis.needs_mutation_validation=!0;let p=[];for(;i.type==="MemberExpression";){if(i.property.type==="Literal")p.unshift(i.property);else if(i.property.type==="Identifier"){let d=Object.hasOwn(t.state.transform,i.property.name)?t.state.transform[i.property.name]:null;i.computed?p.unshift(d?.read?d.read(i.property):i.property):p.unshift(T(i.property.name))}else return r;i=i.object}p.unshift(T(s.name));let u=_e(i.start);return y("$$ownership_validator.mutation",T(a.prop_alias),z(p),r,u&&T(u.line),u&&T(u.column))}function Re(e,t,r,i=e.state){let s=e.visit(t,i);if(e.state.analysis.runes||e.state.analysis.maybe_runes||!r.has_call&&!r.has_member_expression&&!r.has_assignment)return s;let a=Oe([]);for(let p of r.references)if(!(p.kind==="normal"&&p.declaration_kind!=="import")){var n=Qe({...p.node},i);(p.kind==="bindable_prop"||p.kind==="template"||p.declaration_kind==="import"||p.node.name==="$$props"||p.node.name==="$$restProps")&&(n=y("$.deep_read_state",n)),a.expressions.push(n)}return a.expressions.push(y("$.untrack",O(s))),a}function ut(e,t,r,i){if(!F)return $(e);let s=t.start!==void 0&&_e(t.start);return s?$(y("$.add_svelte_meta",j([],e),T(r),w(fr),T(s.line),T(s.column),i&&J(Object.entries(i).map(([a,n])=>Y(a,T(n)))))):$(e)}function Qx(e,t){let r=e.expression===null?st:O(t.visit(e.expression)),i=$(y("$.animation",t.state.node,O(t.visit(Hi(e.name))),r));e.metadata.expression.is_async()&&(i=$(y("$.run_after_blockers",e.metadata.expression.blockers(),O(M([i]))))),t.state.after_update.push(i)}var cc=(e,t)=>{let r={...t.state,in_constructor:!1,in_derived:!1};if(e.type==="FunctionExpression"){let i=t.path.at(-1);r.in_constructor=i.type==="MethodDefinition"&&i.kind==="constructor"}t.next(r)};function e0(e,t){return cc(e,t)}function t0(e,t){let r=Yl(e,t,Vq)??t.next();return lc(e,t,r)}function Ku(e){return["=","||=","&&=","??="].includes(e)}function Vq(e,t,r,i){if(i.state.analysis.runes&&t.type==="MemberExpression"){let d=Ye(t.property),m=d&&i.state.state_fields.get(d);if(m){if(m.node.type==="AssignmentExpression"&&t===m.node.left){let h=he(r,i.state.scope);if(h){let _={...i.state,in_constructor:h!=="$derived"&&h!=="$derived.by"},v=i.visit(r,_);if(F){let E=i.path.findLast(l=>l.type==="ClassDeclaration"||l.type==="ClassExpression");v=y("$.tag",v,T(`${E?.id?.name??"[class]"}.${d}`))}return ee(e,X(rt,m.key),v)}}if(t.property.type==="PrivateIdentifier"){let h=["||=","&&=","??="].includes(e)?e.slice(0,-1):null,_=i.visit(h===null?Xr(e,t,r):r),v=m.type==="$state"&&Ku(e)&&$t(_,i.state.scope),E=y("$.set",t,_,v&&Z);return h===null?E:it(h,i.visit(t),E)}}}let s=t;for(;s.type==="MemberExpression";)s=s.object;if(s.type!=="Identifier")return null;let a=i.state.scope.get(s.name);if(!a)return null;let n=Object.hasOwn(i.state.transform,s.name)?i.state.transform[s.name]:null,p=i.path.map(d=>d.type);if(s===t&&n?.assign){let d=p.at(-1)==="BindDirective"&&p.at(-2)==="RegularElement",m=i.visit(Xr(e,t,r));return n.assign(s,m,!d&&a.kind!=="prop"&&a.kind!=="bindable_prop"&&a.kind!=="raw_state"&&a.kind!=="derived"&&a.kind!=="store_sub"&&i.state.analysis.runes&&$t(r,i.state.scope)&&Ku(e))}if(n?.mutate){let d=n.mutate(s,ee(e,i.visit(t),i.visit(r)));return a.legacy_indirect_bindings.size>0&&(d=Oe([d,y("$.invalidate_inner_signals",j([],M(Array.from(a.legacy_indirect_bindings).map(m=>$(Qe({...m.node},i.state))))))])),d}let u=F&&p.at(-1)!=="ExpressionStatement"&&Ku(e)&&!i.state.scope.evaluate(r).is_primitive;if(p.at(-1)==="ArrowFunctionExpression"&&(p.at(-2)==="RegularElement"||p.at(-2)==="SvelteElement")&&i.path.at(-2).attributes.find(h=>h.type!=="Attribute"||!Pe(h)?!1:mt(h)===i.path.at(-1))&&(u=!1),(p.at(-1)==="BindDirective"||p.at(-1)==="Component"||p.at(-1)==="SvelteComponent"||p.at(-1)==="ArrowFunctionExpression"&&(p.at(-2)==="BindDirective"||p.at(-2)==="Component"&&p.at(-3)==="Fragment"||p.at(-2)==="SequenceExpression"&&(p.at(-3)==="Component"||p.at(-3)==="SvelteComponent"||p.at(-3)==="BindDirective")))&&(u=!1),t.type==="MemberExpression"&&u){let d=e!=="=",m=d&&we(r),h=y(m?"$.assign_async":"$.assign",t.object,t.computed?t.property:T(t.property.name),T(e),d?j([],r,m):r,T(jr(t)));return m&&(h=et(h)),i.visit(h)}return null}function pc(e,t){let r=!1,i=e.name.slice(2);Td(i)&&(i=i.slice(0,-7),r=!0);let s=Array.isArray(e.value)?e.value[0]:e.value,a=Is(s.expression,s.metadata.expression,t);e.metadata.delegated&&t.state.events.add(i);let n=$(Xu(t,i,a,r,Rd(i)?!0:void 0,e.metadata.delegated)),p=t.path.at(-1).type;p==="SvelteDocument"||p==="SvelteWindow"||p==="SvelteBody"?t.state.init.push(n):t.state.after_update.push(n)}function Xu(e,t,r,i,s,a){let n=r;if(F&&r.type==="ArrowFunctionExpression"){let p=e.state.scope.generate(t);n=Ue(w(p),r.params,r.body.type==="BlockStatement"?r.body:M([le(r.body)]),r.async)}return y(a?"$.delegated":"$.event",T(t),e.state.node,n,i&&Z,s===void 0?void 0:T(s))}function Is(e,t,r){if(e===null)return Ue(null,[w("$$arg")],M([$(y("$.bubble_event.call",rt,w("$$props"),w("$$arg")))]));let i=r.visit(e);if(i.type==="ArrowFunctionExpression"||i.type==="FunctionExpression")return i;if(i.type==="Identifier"){let a=r.state.scope.get(i.name);if(a?.is_function()||!F&&a?.declaration_kind!=="import"&&!a?.blocker)return i}if(t.has_call){let a=w(r.state.scope.generate("event_handler"));r.state.init.push(te(a,y("$.derived",O(i)))),i=y("$.get",a)}let s=y(X(i,"apply",!1,!0),rt,w("$$args"));if(F){let a=_e(e.start),n=e.type==="CallExpression"&&e.arguments.length===0&&e.callee.type==="Identifier";s=y("$.apply",O(i),rt,w("$$args"),w(r.state.analysis.name),z([T(a.line),T(a.column)]),r0(e)&&Z,n&&Z)}return Ue(null,[xi(w("$$args"))],M([$(s)]))}function r0(e){return e.type==="CallExpression"||e.type==="NewExpression"||e.type==="AssignmentExpression"||e.type==="UpdateExpression"?!0:e.type==="SequenceExpression"?e.expressions.some(r0):!1}function i0(e,t){Pe(e)&&pc(e,t)}function Ne(e){return y("$.get",e)}function Vi(e){for(let[t,r]of e.state.scope.declarations)(si(r,e.state.analysis)||r.kind==="derived"||r.kind==="legacy_reactive")&&(e.state.transform[t]={read:r.declaration_kind==="var"?i=>y("$.safe_get",i):Ne,assign:(i,s,a=!1)=>{let n=y("$.set",i,s,a&&Z);return e.state.scope.get(`$${i.name}`)?.kind==="store_sub"&&(n=y("$.store_unsub",n,T(`$${i.name}`),w("$$stores"))),n},mutate:(i,s)=>e.state.analysis.runes?s:y("$.mutate",i,s),update:i=>y(i.prefix?"$.update_pre":"$.update",i.argument,i.operator==="--"&&T(-1))})}function a0(e,t){t.state.template.push_comment();let r=Re(t,e.expression,e.metadata.expression),i=e.metadata.expression.has_await?Me(r,e.metadata.expression):O(r),s,a;if(e.then){let p={...t,state:{...t.state,transform:{...t.state.transform}}},u=e.value&&s0(e.value,p),d=[w("$$anchor")];u&&d.push(u.id);let m=u?.declarations??[],h=p.visit(e.then,p.state);s=j(d,M([...m,...h.body]))}if(e.catch){let p={...t,state:{...t.state}},u=e.error&&s0(e.error,p),d=[w("$$anchor")];u&&d.push(u.id);let m=u?.declarations??[],h=p.visit(e.catch,p.state);a=j(d,M([...m,...h.body]))}let n=ut(y("$.await",t.state.node,i,e.pending?j([w("$$anchor")],t.visit(e.pending)):st,s,a),e,"await");e.metadata.expression.has_blockers()||e.metadata.expression.has_await?t.state.init.push($(y("$.async",t.state.node,e.metadata.expression.blockers(),z([]),j([t.state.node],M([n]))))):t.state.init.push(n)}function s0(e,t){if(e.type==="Identifier")return t.state.transform[e.name]={read:Ne},{id:e,declarations:null};let r=t.visit(e),i=ue(e),s=w("$$source"),a=w("$$value"),n=M([te(r,y("$.get",s)),le(J(i.map(u=>ye("init",u,u))))]),p=[te(a,Ir(t.state,n))];for(let u of i)t.state.transform[u.name]={read:Ne},p.push(te(u,Ir(t.state,X(y("$.get",a),u))));return{id:s,declarations:p}}function n0(e,t){let r=t.visit(e.argument);return t.state.analysis.pickled_awaits.has(e)?tr(r):F&&!Ce(e,"await_reactivity_loss")?y({...e,argument:y("$.track_reactivity_loss",r)}):r===e.argument?e:{...e,argument:r}}function o0(e,t){if(F){let r=e.operator;if(r==="==="||r==="!==")return y("$.strict_equals",t.visit(e.left),t.visit(e.right),r==="!=="&&Jt);if(r==="=="||r==="!=")return y("$.equals",t.visit(e.left),t.visit(e.right),r==="!="&&Jt)}t.next()}function ni(e,t,r,i){let s=i.state.metadata.bound_contenteditable,a=t,n=0,p=[];function u(h){return n===0?a(h):y("$.sibling",a(!1),(h||n!==1)&&T(n),h&&Z)}function d(h,_,v){let E=u(h),l=E;return l.type!=="Identifier"&&(l=w(i.state.scope.generate(_),v),i.state.init.push(te(l,E))),a=()=>l,n=1,l}function m(h){if(h.every(g=>g.type==="Text")){n+=1,i.state.template.push_text(h);return}i.state.template.push_text([{type:"Text",data:" ",raw:" ",start:-1,end:-1}]);let{has_state:_,value:v}=Nr(h,i),E=h.length===1,l=d(E,"text"),o=$(y("$.set_text",l,v));_&&!s?i.state.update.push(o):i.state.init.push($(ee("=",X(l,"nodeValue"),v)))}for(let h of e)if(h.type==="Text"||h.type==="ExpressionTag")p.push(h);else{p.length>0&&(m(p),p=[]);let _=i.state;if(Ju(h))n+=1;else if((h.type==="EachBlock"||h.type==="HtmlTag")&&e.length===1&&r&&!h.metadata.expression.is_async())h.metadata.is_controlled=!0;else{let v=d(!1,h.type==="RegularElement"?h.name:"node",h.type==="RegularElement"?h.name_loc:null);_={...i.state,node:v}}i.visit(h,_)}p.length>0&&m(p),n>1&&(n-=1,i.state.init.push($(y("$.next",n!==1&&T(n)))))}function Ju(e){if(e.type!=="RegularElement"||e.fragment.metadata.dynamic||ct(e))return!1;for(let t of e.attributes)if(t.type!=="Attribute"||Pe(t)||ci(t.name)||t.name==="dir"||["input","textarea","select"].includes(e.name)&&["value","checked"].includes(t.name)||e.name==="option"&&t.name==="value"||t.value!==!0&&!me(t))return!1;return!0}var zq="accent-height accumulate additive alignment-baseline allowReorder alphabetic amplitude arabic-form ascent attributeName attributeType autoReverse azimuth baseFrequency baseline-shift baseProfile bbox begin bias by calcMode cap-height class clip clipPathUnits clip-path clip-rule color color-interpolation color-interpolation-filters color-profile color-rendering contentScriptType contentStyleType cursor cx cy d decelerate descent diffuseConstant direction display divisor dominant-baseline dur dx dy edgeMode elevation enable-background end exponent externalResourcesRequired fill fill-opacity fill-rule filter filterRes filterUnits flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight format from fr fx fy g1 g2 glyph-name glyph-orientation-horizontal glyph-orientation-vertical glyphRef gradientTransform gradientUnits hanging height href horiz-adv-x horiz-origin-x id ideographic image-rendering in in2 intercept k k1 k2 k3 k4 kernelMatrix kernelUnitLength kerning keyPoints keySplines keyTimes lang lengthAdjust letter-spacing lighting-color limitingConeAngle local marker-end marker-mid marker-start markerHeight markerUnits markerWidth mask maskContentUnits maskUnits mathematical max media method min mode name numOctaves offset onabort onactivate onbegin onclick onend onerror onfocusin onfocusout onload onmousedown onmousemove onmouseout onmouseover onmouseup onrepeat onresize onscroll onunload opacity operator order orient orientation origin overflow overline-position overline-thickness panose-1 paint-order pathLength patternContentUnits patternTransform patternUnits pointer-events points pointsAtX pointsAtY pointsAtZ preserveAlpha preserveAspectRatio primitiveUnits r radius refX refY rendering-intent repeatCount repeatDur requiredExtensions requiredFeatures restart result rotate rx ry scale seed shape-rendering slope spacing specularConstant specularExponent speed spreadMethod startOffset stdDeviation stemh stemv stitchTiles stop-color stop-opacity strikethrough-position strikethrough-thickness string stroke stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width style surfaceScale systemLanguage tabindex tableValues target targetX targetY text-anchor text-decoration text-rendering textLength to transform type u1 u2 underline-position underline-thickness unicode unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical values version vert-adv-y vert-origin-x vert-origin-y viewBox viewTarget visibility width widths word-spacing writing-mode x x-height x1 x2 xChannelSelector xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type xml:base xml:lang xml:space y y1 y2 yChannelSelector z zoomAndPan".split(" "),l0=new Map;zq.forEach(e=>{l0.set(e.toLowerCase(),e)});function Yu(e){return e=e.toLowerCase(),l0.get(e)||e}var zi=class{contains_script_tag=!1;needs_import_node=!1;nodes=[];#e=[this.nodes];#t;#r=this.nodes;push_element(t,r,i){this.#t={type:"element",name:t,attributes:{},children:[],is_html:i,start:r},this.#r.push(this.#t),this.#r=this.#t.children,this.#e.push(this.#r)}push_comment(t){this.#r.push({type:"comment",data:t})}push_text(t){this.#r.push({type:"text",nodes:t})}pop_element(){this.#e.pop(),this.#r=this.#e.at(-1)}set_prop(t,r){this.#t.attributes[t]=r}as_html(){return gr([Et(this.nodes.map(c0).join(""),!0)],[])}as_tree(){return this.nodes[0].type==="comment"&&this.nodes.unshift({type:"comment",data:void 0}),z(this.nodes.map(p0))}};function c0(e){if(e.type==="text")return e.nodes.map(r=>r.raw).join("");if(e.type==="comment")return e.data?`<!--${e.data}-->`:"<!>";let t=`<${e.name}`;for(let r in e.attributes){let i=e.attributes[r];t+=` ${e.is_html?r.toLowerCase():r}`,i!==void 0&&(t+=`="${Gt(i,!0)}"`)}return vt(e.name)?t+="/>":(t+=">",t+=e.children.map(c0).join(""),t+=`</${e.name}>`),t}function p0(e){if(e.type==="text")return T(e.nodes.map(i=>i.data).join(""));if(e.type==="comment")return e.data?z([T(`// ${e.data}`)]):null;let t=z([T(e.name)]),r=J([]);for(let i in e.attributes){let s=e.attributes[i];r.properties.push(ye("init",Be(Yu(i)),s===void 0?Te:T(s)))}if((r.properties.length>0||e.children.length>0)&&t.elements.push(r.properties.length>0?r:st),e.children.length>0){let i=e.children.map(p0);if(t.elements.push(...i),e.name==="pre"||e.name==="textarea"){let s=i[0];s?.type==="Literal"&&(s.value=s.value.replace(Lr,""))}}return t}function u0(e){let t=z([]);for(let r of e){if(r.type!=="element")continue;let{line:i,column:s}=_e(r.start),a=z([T(i),T(s)]),n=u0(r.children);n.elements.length>0&&a.elements.push(n),t.elements.push(a)}return t}function Ns(e,t,r=0){let i=e.metadata.namespace,s=e.options.fragments==="tree",{nodes:a}=e.template;if(a.length===1&&a[0].type==="comment")return w("$.comment");let p=s?e.template.as_tree():e.template.as_html(),u=s||F?null:Kq(p,e.metadata.namespace,r);if(u!==null){let h=e.templates.get(u);if(h!==void 0)return h}s&&(i==="svg"&&(r|=4),i==="mathml"&&(r|=8));let d=y(s?"$.from_tree":`$.from_${i}`,p,r?T(r):void 0);e.template.contains_script_tag&&(d=y("$.with_script",d)),F&&(d=y("$.add_locations",d,X(w(e.analysis.name),"$.FILENAME",!0),u0(e.template.nodes)));let m=e.scope.root.unique(t);return e.hoisted.push(te(m,d)),u!==null&&e.templates.set(u,m),m}function Kq(e,t,r){return`${t} ${r} ${e.quasis[0].value.raw}`}function f0(e,t){let r=t.state.metadata.namespace==="html"&&e.name!=="svg",i=r?e.name.toLowerCase():e.name;if(t.state.template.push_element(i,e.start,r),i==="noscript"){t.state.template.pop_element();return}let s=ct(e);t.state.template.needs_import_node||=i==="video"||s,t.state.template.contains_script_tag||=i==="script";let a=[],n=[],p=[],u=[],d=[],m=new Map,h=new Map,_=e.metadata.has_spread,v=!1,E=!1;for(let c of e.attributes)switch(c.type){case"AnimateDirective":u.push(c);break;case"Attribute":if(c.name==="is"&&t.state.metadata.namespace==="html"){let{value:f}=Le(c.value,t);if(f.type==="Literal"&&typeof f.value=="string"){t.state.template.set_prop("is",f.value);continue}}a.push(c),m.set(c.name,c);break;case"BindDirective":h.set(c.name,c),u.push(c);break;case"ClassDirective":n.push(c);break;case"LetDirective":t.visit(c,{...t.state,let_directives:d});break;case"OnDirective":u.push(c);break;case"SpreadAttribute":a.push(c);break;case"StyleDirective":p.push(c);break;case"TransitionDirective":u.push(c);break;case"UseDirective":v=!0,u.push(c);break;case"AttachTag":u.push(c);break}let l={...t.state,init:[],after_update:[]};for(let c of u)if(c.type==="OnDirective"){let f=t.visit(c);v?l.init.push($(y("$.effect",O(f)))):l.after_update.push($(f))}else t.visit(c,l);if(i==="input"){let c=a.some(b=>b.type==="Attribute"&&(b.name==="value"||b.name==="checked")&&!me(b));!a.some(b=>b.type==="Attribute"&&(b.name==="defaultValue"||b.name==="defaultChecked"))&&(_||h.has("value")||h.has("checked")||h.has("group")||!h.has("group")&&c)&&(_?E=!0:t.state.init.push($(y("$.remove_input_defaults",t.state.node))))}if(i==="textarea"){let c=m.get("value")??m.get("checked"),f=c&&!me(c);(_||h.has("value")||f)&&t.state.init.push($(y("$.remove_textarea_child",t.state.node)))}t.state.let_directives.push(...d);let o=t.state.node,g=i==="option"||i==="select"||h.has("group")||h.has("checked");if(_)dc(a,n,p,t,e,o,E);else for(let c of a){if(Pe(c)){pc(c,t);continue}if(g&&c.name==="value"||e.name==="select"&&uc(e,c)==="defaultValue")continue;let f=uc(e,c);if(!s&&!ci(c.name)&&(f!=="value"||e.name!=="textarea")&&(c.value===!0||me(c))&&(f!=="class"||n.length===0)&&(f!=="style"||p.length===0)){let b=me(c)?c.value[0].data:!0;f==="class"&&e.metadata.scoped&&t.state.analysis.css.hash&&(b===!0||b===""?b=t.state.analysis.css.hash:b+=" "+t.state.analysis.css.hash),(f!=="class"||b)&&t.state.template.set_prop(c.name,b===!0?"":b)}else if(f==="autofocus"){let{value:b}=Le(c.value,t);t.state.init.push($(y("$.autofocus",o,b)))}else if(f==="class")fc(e,o,c,n,t,r);else if(f==="style")m0(o,c,p,t);else if(s)Jq(o,c,t);else{let{value:b,has_state:x}=Le(c.value,t,(I,D)=>t.state.memoizer.add(I,D)),A=Xq(e,o,f,b,a);(x?t.state.update:t.state.init).push($(A))}}ui(i)&&(_||v||m.has("onload")||m.has("onerror"))&&t.state.after_update.push($(y("$.replay_events",o)));let k={...t.state.metadata,namespace:qr(e,t.state.metadata.namespace)};if(h.has("innerHTML")||h.has("innerText")||h.has("textContent")){let c=m.get("contenteditable");c&&(c.value===!0||me(c)&&c.value[0].data==="true")&&(k.bound_contenteditable=!0)}let S=t.state.scopes.get(e.fragment),C={...t.state,metadata:k,scope:S,transform:ac(S,t.state),preserve_whitespace:t.state.preserve_whitespace||i==="pre"||i==="textarea"},{hoisted:P,trimmed:R}=Rr(e,e.fragment.nodes,t.path,C.metadata.namespace,C,i==="script"||C.preserve_whitespace,C.options.preserveComments),L=!e.fragment.metadata.transparent,H={...C,init:[],update:[],after_update:[],snippets:[],consts:L?[]:C.consts,async_consts:L?void 0:C.async_consts,memoizer:L?new Fe:C.memoizer};for(let c of P)t.visit(c,H);if(R.every(c=>c.type==="Text"||c.type==="ExpressionTag")&&R.every(c=>c.type==="Text"||!c.metadata.expression.has_state&&!c.metadata.expression.has_await&&!c.metadata.expression.has_blockers())&&R.some(c=>c.type==="ExpressionTag")){let{value:c}=Nr(R,t,H);c.type==="Literal"&&c.value===""||H.init.push($(ee("=",X(t.state.node,"textContent"),c)))}else if(kr(e)){let c=t.state.node;t.state.template.push_comment();let f=w(t.state.scope.generate("fragment")),b=w(t.state.scope.generate("anchor")),x={...C,init:[],update:[],after_update:[],template:new zi};ni(R,D=>y("$.first_child",f,D&&Z),!1,{...t,state:x});let A=Ns(x,`${i}_content`,1),I=M([te(b,y("$.child",c)),te(f,y(A)),...x.init,...x.update.length>0?[ai(x)]:[],...x.after_update,$(y("$.append",b,f))]);H.init.push($(y("$.customizable_select",c,j([],I))))}else{let c=t.state.node,f=R.some(b=>b.type!=="Text"&&!Ju(b));i==="template"&&(f=!0,H.init.push($(y("$.hydrate_template",c))),c=X(c,"content")),ni(R,b=>y("$.child",c,b&&Z),!0,{...t,state:H}),f&&!Yq(H.init,t.state.node)&&H.init.push($(y("$.reset",t.state.node)))}if(e.fragment.nodes.some(c=>c.type==="SnippetBlock")||L?(H.async_consts&&H.async_consts.thunks.length>0&&H.consts.push(te(H.async_consts.id,y("$.run",z(H.async_consts.thunks)))),t.state.init.push(M([...H.snippets,...H.consts,...H.init,...l.init,H.update.length>0?ai(H):ce,...H.after_update,...l.after_update]))):e.fragment.metadata.dynamic?(t.state.init.push(...H.init,...l.init),t.state.update.push(...H.update),t.state.after_update.push(...H.after_update,...l.after_update)):(t.state.init.push(...l.init),t.state.after_update.push(...l.after_update)),i==="selectedcontent"&&t.state.init.push($(y("$.selectedcontent",t.state.node,j([w("$$element")],ee("=",t.state.node,w("$$element")))))),m.has("dir")){let c=X(o,"dir");t.state.update.push($(ee("=",c,c)))}if(!_&&g){if(e.metadata.synthetic_value_node){let c=e.metadata.synthetic_value_node,f=Ct("value",null,c.start,c.end,[c]);d0(i,o,f,t,!0)}else for(let c of a)if(c.name==="value"){d0(i,o,c,t);break}}if(!_&&i==="select"){let c=a.find(x=>uc(e,x)==="defaultValue");if(c){let{value:x,has_state:A}=Le(c.value,t,(I,D)=>t.state.memoizer.add(I,D));(A?t.state.update:t.state.init).push($(y("$.set_default_select_value",o,x)))}let f=m.get("value"),b=f!==void 0&&f.value!==!0&&!me(f);(c||b||h.has("value"))&&t.state.init.push($(y("$.init_select",o)))}t.state.template.pop_element()}function Qu(e,t,r=t.state.memoizer){let i=[];for(let s of e){let a=t.visit(s.expression);i.push(Y(s.name,r.add(a,s.metadata.expression)))}return J(i)}function ed(e,t,r=t.state.memoizer){let i=J([]),s=J([]);for(let a of e){let n=a.value===!0?Qe(w(a.name),t.state):Le(a.value,t).value;(a.modifiers.includes("important")?s:i).properties.push(Y(a.name,r.add(n,a.metadata.expression)))}return s.properties.length?z([i,s]):i}function Xq(e,t,r,i,s){return r==="muted"?ee("=",X(t,w("muted")),i):r==="value"?y("$.set_value",t,i):r==="checked"?y("$.set_checked",t,i):r==="selected"?y("$.set_selected",t,i):r==="defaultValue"&&(s.some(a=>a.type==="Attribute"&&a.name==="value"&&me(a))||e.name==="textarea"&&e.fragment.nodes.length>0)?y("$.set_default_value",t,i):r==="defaultChecked"&&s.some(a=>a.type==="Attribute"&&a.name==="checked"&&a.value===!0)?y("$.set_default_checked",t,i):$d(r)?ee("=",X(t,r),i):y(r.startsWith("xlink")?"$.set_xlink_attribute":"$.set_attribute",t,T(r),i,Ce(e,"hydration_attribute_changed")&&Z)}function Jq(e,t,r){let i=new Fe,{value:s,has_state:a}=Le(t.value,r,(u,d)=>i.add(u,d)),n=y("$.set_custom_element_data",e,T(t.name),s),p=a?y("$.template_effect",j(i.apply(),n),i.sync_values(),i.async_values(),i.blockers()):n;r.state.init.push($(p))}function d0(e,t,r,i,s=!1){let a=i.state,n=e==="select"&&r.value!==!0&&!me(r),{value:p,has_state:u}=Le(r.value,i,(h,_)=>a.memoizer.add(h,_)),d=i.state.scope.evaluate(p),m=h=>{let _=ee("=",X(t,"__value"),h),v=ee("=",X(t,"value"),d.is_defined?_:it("??",_,T("")));return $(n?Oe([v,y("$.select_option",t,h)]):s?_:v)};if(u){let h=w(a.scope.generate(`${t.name}_value`)),_=e==="option"?J([]):void 0;a.init.push(te(h,_)),a.update.push(qe(kt("!==",h,ee("=",h,p)),M([m(h)])))}else a.init.push(m(p))}function Yq(e,t){let r=e.at(-1);if(t?.type!=="Identifier"||r?.type!=="VariableDeclaration"||r.declarations.length!==1)return!1;let i=r.declarations[0].init;return i?.type!=="CallExpression"||i.callee.type!=="Identifier"||i.callee.name!=="$.child"||i.arguments[0]?.type!=="Identifier"||i.arguments[0].name!==t.name?!1:(i.callee=w("$.only_child"),!0)}function dc(e,t,r,i,s,a,n=!1){let p=[],u=s.type==="RegularElement"&&s.name==="select",d=new Fe;for(let h of e)if(h.type==="Attribute"){let{value:_}=Le(h.value,i,(v,E)=>d.add(v,E));if(Pe(h)&&(_.type==="ArrowFunctionExpression"||_.type==="FunctionExpression")){let v=i.state.scope.generate("event_handler");i.state.init.push(te(v,_)),p.push(Y(h.name,w(v)))}else{let v=u&&Cc(h.name)==="defaultValue"?"defaultValue":h.name;p.push(Y(v,_))}}else{let _=i.visit(h);_=d.add(_,h.metadata.expression),p.push(ft(_))}t.length&&p.push(ye("init",z([w("$.CLASS")]),Qu(t,i,d))),r.length&&p.push(ye("init",z([w("$.STYLE")]),ed(r,i,d)));let m=d.apply();i.state.init.push($(y("$.attribute_effect",a,j(m,J(p)),d.sync_values(),d.async_values(),d.blockers(),s.metadata.scoped&&i.state.analysis.css.hash!==""&&T(i.state.analysis.css.hash),n&&Z,Ce(s,"hydration_attribute_changed")&&Z)))}function Le(e,t,r=i=>i){if(e===!0)return{value:Z,has_state:!1};if(!Array.isArray(e)||e.length===1){let i=Array.isArray(e)?e[0]:e;if(i.type==="Text")return{value:T(i.data),has_state:!1};let s=Re(t,i.expression,i.metadata.expression);return{value:r(s,i.metadata.expression),has_state:i.metadata.expression.has_state||i.metadata.expression.is_async()}}return Nr(e,t,t.state,r)}function uc(e,t){return!e.metadata.svg&&!e.metadata.mathml?Cc(t.name):t.name}function fc(e,t,r,i,s,a){let{value:n,has_state:p}=Le(r.value,s,(v,E)=>(r.metadata.needs_clsx&&(v=y("$.clsx",v)),s.state.memoizer.add(v,E))),u,d,m;i.length&&(m=Qu(i,s),p||=i.some(v=>v.metadata.expression.has_state||v.metadata.expression.is_async()),p?(u=w(s.state.scope.generate("classes")),s.state.init.push(lt("let",[ne(u)])),d=u):d=J([]));let h;e.metadata.scoped&&s.state.analysis.css.hash&&(n.type==="Literal"&&(n.value===""||n.value===null)?n=T(s.state.analysis.css.hash):n.type==="Literal"&&typeof n.value=="string"?n=T(Gt(n.value,!0)+" "+s.state.analysis.css.hash):h=T(s.state.analysis.css.hash)),!h&&m&&(h=st);let _=y("$.set_class",t,a?T(1):T(0),n,h,d,m);u&&(_=ee("=",u,_)),(p?s.state.update:s.state.init).push($(_))}function m0(e,t,r,i){let{value:s,has_state:a}=Le(t.value,i,(m,h)=>i.state.memoizer.add(m,h)),n,p,u;r.length&&(u=ed(r,i),a||=r.some(m=>m.metadata.expression.has_state||m.metadata.expression.is_async()),a?(n=w(i.state.scope.generate("styles")),i.state.init.push(lt("let",[ne(n)])),p=n):p=J([]));let d=y("$.set_style",e,s,p,u);n&&(d=ee("=",n,d)),(a?i.state.update:i.state.init).push($(d))}function h0(e,t){let r=t.visit(e.expression),i=zt[e.name],s=t.path.at(-1),a,n;if(r.type==="SequenceExpression")[a,n]=r.expressions;else{F&&t.state.analysis.runes&&r.type==="MemberExpression"&&(e.name!=="this"||t.path.some(({type:_})=>_==="IfBlock"||_==="EachBlock"||_==="AwaitBlock"||_==="KeyBlock"))&&!Ce(e,"binding_property_non_reactive")&&oc(t.state,e,r);let m=ee("=",e.expression,w("$$value"));Xt.set(m,Xt.get(e)??[]);let h=t.visit(m);F?(a=Ue(w("get",e.name_loc),[],M([le(r)])),n=Ue(w("set",e.name_loc),[w("$$value")],M([$(h)]))):(a=O(r),n=yp(j([w("$$value")],h)),a===n&&(n=void 0))}let p;if(i?.event)p=y("$.bind_property",T(e.name),T(i.event),t.state.node,n??a,i.bidirectional&&a);else switch(e.name){case"online":p=y("$.bind_online",n??a);break;case"scrollX":case"scrollY":p=y("$.bind_window_scroll",T(e.name==="scrollX"?"x":"y"),a,n);break;case"innerWidth":case"innerHeight":case"outerWidth":case"outerHeight":p=y("$.bind_window_size",T(e.name),n??a);break;case"activeElement":p=y("$.bind_active_element",n??a);break;case"muted":p=y("$.bind_muted",t.state.node,a,n);break;case"paused":p=y("$.bind_paused",t.state.node,a,n);break;case"volume":p=y("$.bind_volume",t.state.node,a,n);break;case"playbackRate":p=y("$.bind_playback_rate",t.state.node,a,n);break;case"currentTime":p=y("$.bind_current_time",t.state.node,a,n);break;case"buffered":p=y("$.bind_buffered",t.state.node,n??a);break;case"played":p=y("$.bind_played",t.state.node,n??a);break;case"seekable":p=y("$.bind_seekable",t.state.node,n??a);break;case"seeking":p=y("$.bind_seeking",t.state.node,n??a);break;case"ended":p=y("$.bind_ended",t.state.node,n??a);break;case"readyState":p=y("$.bind_ready_state",t.state.node,n??a);break;case"contentRect":case"contentBoxSize":case"borderBoxSize":case"devicePixelContentBoxSize":p=y("$.bind_resize_observer",t.state.node,T(e.name),n??a);break;case"clientWidth":case"clientHeight":case"offsetWidth":case"offsetHeight":p=y("$.bind_element_size",t.state.node,T(e.name),n??a);break;case"value":{s?.type==="RegularElement"&&s.name==="select"?p=y("$.bind_select_value",t.state.node,a,n):p=y("$.bind_value",t.state.node,a,n);break}case"files":p=y("$.bind_files",t.state.node,a,n);break;case"this":p=nc(e.expression,t.state.node,t);break;case"textContent":case"innerHTML":case"innerText":p=y("$.bind_content_editable",T(e.name),t.state.node,a,n);break;case"checked":p=y("$.bind_checked",t.state.node,a,n);break;case"focused":p=y("$.bind_focused",t.state.node,n??a);break;case"group":{let m=e.metadata.parent_each_blocks.map(_=>_.metadata.keyed&&_.index?y("$.get",_.metadata.index):_.metadata.index),h=a;if(s?.type==="RegularElement"){let _=s.attributes.find(v=>v.type==="Attribute"&&v.name==="value"&&!me(v)&&v.value!==!0)?.value;_!==void 0&&(h=O(M([$(Le(_,t).value),le(r)])))}p=y("$.bind_group",e.metadata.binding_group_name,z(m),t.state.node,h,n??a);break}default:throw new Error("unknown binding "+e.name)}let u=e.name!=="this"&&s.type==="RegularElement"&&s.attributes.find(m=>m.type==="UseDirective"),d=u?$(y("$.effect",O(p))):$(p);e.metadata.expression.is_async()&&(d=$(y("$.run_after_blockers",e.metadata.expression.blockers(),O(M([d]))))),e.name==="this"||u?t.state.init.push(d):t.state.after_update.push(d)}function _0(e,t){Vi(t);let r=t.state.scope.tracing;if(r!==null){let s=t.path.at(-1).async,a=y("$.trace",r,O(M(e.body.map(n=>t.visit(n))),s));return M([le(s?et(a):a)])}t.next()}function b0(e,t){if(t.state.analysis.runes||!e.label||e.label.name!=="$")return;if(t.path[1].type==="LabeledStatement"&&t.path[1].label.name==="$")return le()}function y0(e,t){let r=he(e,t.state.scope);switch(r){case"$host":return w("$$props.$$host");case"$effect.tracking":return y("$.effect_tracking");case"$state":case"$state.raw":{let i=e.arguments[0],s;i&&(s=t.visit(e.arguments[0]),r==="$state"&&$t(i,t.state.scope)&&(s=y("$.proxy",s)));let a=w("$.state",e.callee.loc);return y(a,s)}case"$derived":case"$derived.by":{let i=t.visit(e.arguments[0]);return y("$.derived",r==="$derived"?O(i):i)}case"$state.eager":return y("$.eager",O(t.visit(e.arguments[0])));case"$state.snapshot":return y("$.snapshot",t.visit(e.arguments[0]),Ce(e,"state_snapshot_uncloneable")&&Z);case"$effect":case"$effect.pre":{let i=r==="$effect"?"$.user_effect":"$.user_pre_effect",s=t.visit(e.arguments[0]),a=y(i,s);return a.callee.loc=e.callee.loc,a}case"$effect.root":return y("$.effect_root",...e.arguments.map(i=>t.visit(i)));case"$effect.pending":return y("$.eager",O(y("$.pending")));case"$inspect":case"$inspect().with":return Zq(r,e,t)}if(F&&e.callee.type==="MemberExpression"&&e.callee.object.type==="Identifier"&&e.callee.object.name==="console"&&t.state.scope.get("console")===null&&e.callee.property.type==="Identifier"&&["debug","dir","error","group","groupCollapsed","info","log","trace","warn"].includes(e.callee.property.name)&&e.arguments.some(i=>i.type==="SpreadElement"||t.state.scope.evaluate(i).has_unknown))return y(e.callee,ft(y("$.log_if_contains_state",T(e.callee.property.name),...e.arguments.map(i=>t.visit(i)))));t.next()}function Zq(e,t,r){if(!F)return ce;let{args:i,inspector:s}=Ql(e,t,r.visit),a=w("$$args"),n=j([xi(a)],y(s,ft(a)));return y("$.inspect",O(z(i)),n,e==="$inspect"&&Z)}function g0(e,t){let r=t.state.analysis.classes.get(e);if(!r){t.next();return}let i=[],s={...t.state,state_fields:r};for(let[n,p]of r)if(n[0]!=="#"&&p.node.type==="AssignmentExpression"){let u=X(rt,p.key),d=p.type==="$state"&&!0,m=Be(n);i.push(Kr(p.key,null),jt("get",m,[],[le(y("$.get",u))]),jt("set",m,[w("value")],[$(y("$.set",u,w("value"),d&&Z))]))}let a=er(t.path,-1);for(let n of e.body){if(n.type!=="PropertyDefinition"){i.push(t.visit(n,s));continue}let p=Ye(n.key),u=p&&r.get(p);if(!u){i.push(t.visit(n,s));continue}if(p[0]==="#"){let d=n.value?t.visit(n.value,s):void 0;F&&u.node===n&&(d=y("$.tag",d,T(`${a.id?.name??"[class]"}.${p}`))),i.push(Kr(n.key,d))}else if(u.node===n){let d=t.visit(u.value,s);F&&(d=y("$.tag",d,T(`${a.id?.name??"[class]"}.${p}`)));let m=X(rt,u.key),h=u.type==="$state"&&!0;i.push(Kr(u.key,d),jt("get",n.key,[],[le(y("$.get",m))]),jt("set",n.key,[w("value")],[$(y("$.set",m,w("value"),h&&Z))]))}}return{...e,body:i}}function v0(e,t){t.state.template.push_comment(e.data)}function Wi(e,t,r,i){let s=i.state.node,a=[],n=[],p=[],u={default:{...i.state,scope:e.metadata.scopes.default,transform:{...i.state.transform}}},d={},m={},h=new Fe,_=[],v=null,E=[],l=e.type==="SvelteComponent"||e.type==="Component"&&e.metadata.dynamic,o=e.type==="Component"&&e.metadata.dynamic?i.state.scope.generate(e.name):"$$component",g=!!Pt(e),k=!1;function S(f,b=!1){let x=()=>{let A=a.at(-1),I=Array.isArray(A),D=I?A:[];D.push(f),I||a.push(D)};b?n.push(x):x()}if(g)for(let f of e.attributes)f.type==="LetDirective"&&i.visit(f,{...i.state,let_directives:p});for(let f of e.attributes)if(f.type==="LetDirective")g||i.visit(f,{...u.default,let_directives:p});else if(f.type==="OnDirective"){f.expression||(i.state.analysis.needs_props=!0);let b=Is(f.expression,f.metadata.expression,i);f.modifiers.includes("once")&&(b=y("$.once",b)),(m[f.name]||=[]).push(b)}else if(f.type==="SpreadAttribute"){let b=i.visit(f),x=h.add(b,f.metadata.expression),A=b!==x;A||f.metadata.expression.has_state||f.metadata.expression.has_await?a.push(O(A?y("$.get",x):b)):a.push(b)}else if(f.type==="Attribute"){if(f.name.startsWith("--")){_.push(Y(f.name,Le(f.value,i,(A,I)=>{let D=h.add(A,I);return A!==D?y("$.get",D):A}).value));continue}f.name==="slot"&&(g=!0),f.name==="children"&&(k=!0);let{value:b,has_state:x}=Le(f.value,i,(A,I)=>{let D=I.has_await||vr(f.value).some(V=>V.type==="ExpressionTag"&&V.expression.type!=="Identifier"&&V.expression.type!=="MemberExpression"),G=h.add(A,I,D);return A!==G?y("$.get",G):A});S(x?tt(f.name,[le(b)]):Y(f.name,b))}else if(f.type==="BindDirective"){let b=i.visit(f.expression,{...i.state,memoizer:h});if(h.check_blockers(f.metadata.expression),F&&f.name!=="this"&&!Ce(e,"ownership_invalid_binding")&&f.expression.type!=="SequenceExpression"){let x=Ie(f.expression),A=x&&i.state.scope.get(x.name);(A?.kind==="bindable_prop"||A?.kind==="prop")&&(i.state.analysis.needs_mutation_validation=!0,E.push($(y("$$ownership_validator.binding",T(A.node.name),w(l?o:t),O(b)))))}if(b.type==="SequenceExpression")if(f.name==="this")v=f.expression;else{let[x,A]=b.expressions,I=w(i.state.scope.generate("bind_get")),D=w(i.state.scope.generate("bind_set"));i.state.init.push(te(I,x)),i.state.init.push(te(D,A)),S(tt(f.name,[le(y(I))])),S(St(f.name,[$(y(D,w("$$value")))]))}else if(F&&b.type==="MemberExpression"&&i.state.analysis.runes&&!Ce(e,"binding_property_non_reactive")&&oc(i.state,f,b),f.name==="this")v=f.expression;else{let A=f.expression.type==="Identifier"&&i.state.scope.get(f.expression.name)?.kind==="store_sub"?tt(f.name,[$(y("$.mark_store_binding")),le(b)]):tt(f.name,[le(b)]),I=ee("=",f.expression,w("$$value")),D=St(f.name,[$(i.visit(I))]);A.key.loc=f.name_loc,D.key.loc=f.name_loc,S(A,!0),S(D,!0)}}else if(f.type==="AttachTag"){let b=i.state.scope.evaluate(f.expression),x=i.visit(f.expression);f.metadata.expression.has_state&&(x=j([w("$$node")],y(b.is_function?x:it("||",x,w("$.noop")),w("$$node")))),h.check_blockers(f.metadata.expression),S(ye("init",y("$.attachment"),x,!0))}if(n.forEach(f=>f()),g&&i.state.init.push(...p),Object.keys(m).length>0){let f=J(Object.keys(m).map(b=>Y(b,m[b].length>1?z(m[b]):m[b][0])));S(Y("$$events",f))}let C=[],P=[];for(let f of e.fragment.nodes){if(f.type==="SnippetBlock"){i.visit(f,{...i.state,snippets:C}),S(ye("init",f.expression,f.expression)),P.push(Y(f.expression.name==="children"?"default":f.expression.name,Z));continue}let b=Pt(f)??"default";(d[b]||=[]).push(f)}for(let f of Object.keys(d)){let b=i.visit({...e.fragment,nodes:d[f]},f==="default"?g?i.state:u.default:{...i.state,scope:e.metadata.scopes[f],transform:{...i.state.transform}});if(b.body.length===0)continue;let x=j([w("$$anchor"),w("$$slotProps")],M([...f==="default"&&!g?p:[],...b.body]));f==="default"&&!k?p.length===0&&d.default.every(A=>A.type!=="SvelteFragment"||!A.attributes.some(I=>I.type==="LetDirective"))?(S(Y("children",F?y("$.wrap_snippet",w(i.state.analysis.name),x):x)),P.push(Y(f,Z))):(P.push(Y(f,x)),S(Y("children",w("$.invalid_default_snippet")))):P.push(Y(f,x))}P.length>0&&S(Y("$$slots",J(P))),!i.state.analysis.runes&&e.attributes.some(f=>f.type==="BindDirective")&&S(Y("$$legacy",Z));let R=a.length===0||a.length===1&&Array.isArray(a[0])?J(a[0]||[]):y("$.spread_props",...a.map(f=>Array.isArray(f)?J(f):f)),L=f=>{let b=l?w(o):i.visit(yr(t));return b.loc=r,y(b,f,R)};if(v!==null){let f=L;L=b=>nc(v,f(b),i)}e.type!=="SvelteSelf"&&h.check_blockers(e.metadata.expression);let H=[...C,...h.deriveds(i.state.analysis.runes)];if(l){let f=L;L=b=>y("$.component",b,O(i.visit(e.type==="Component"?yr(t):e.expression)),j([w("$$anchor"),w(o)],M([...E,$(f(w("$$anchor")))])))}else H.push(...E);Object.keys(_).length>0?(i.state.metadata.namespace==="svg"?i.state.template.push_element("g",e.start,!1):(i.state.template.push_element("svelte-css-wrapper",e.start,!1),i.state.template.set_prop("style","display: contents")),i.state.template.push_comment(),i.state.template.pop_element(),H.push($(y("$.css_props",s,O(J(_)))),$(L(X(s,"lastChild"))),$(y("$.reset",s)))):(i.state.template.push_comment(),H.push(ut(L(s),e,"component",{componentTag:e.name}))),h.apply();let se=h.async_values(),c=h.blockers();return(se||c)&&(H=[$(y("$.async",s,c,se,j([w("$$anchor"),...h.async_ids()],M(H))))],i.state.is_standalone&&H.push($(y("$.next")))),H.length>1?M(H):H[0]}function w0(e,t){let r=Wi(e,e.name,e.name_loc,t);t.state.init.push(r)}function x0(e,t){Vi(t);let r=t.visit(e.declaration);if(e.metadata.promises_id&&e.declaration.type==="VariableDeclaration"&&r?.type==="VariableDeclaration"){let{ids:i,assignments:s}=Qq(r);td(t,e.metadata,i,s,r.kind)}else t.state.consts.push(r??e.declaration)}function Qq(e){let t=new Map;for(let i of e.declarations)for(let s of ue(i.id))t.set(s.name,s);let r=e.declarations.filter(i=>i.init!==null).map(i=>$(ee("=",i.id,i.init)));return{ids:[...t.values()],assignments:r}}function td(e,t,r,i,s="let"){let a=e.state.async_consts??={id:t.promises_id,thunks:[]};for(let d of r)e.state.consts.push(s==="var"?te(d.name):De(d.name));let n=[...t.expression.references].map(d=>d.blocker).filter(d=>d!==null&&d.object!==e.state.async_consts?.id);n.length===1?a.thunks.push(O(X(n[0],"promise"))):n.length>0&&a.thunks.push(O(y("$.wait",z(n))));let p=t.expression.has_await||i.some(d=>Ft(d)),u=i.length===1?i[0].expression:M(i);a.thunks.push(p?Me(u,t.expression):O(u))}function E0(e,t){let r=e.declaration.declarations[0];if(r.id.type==="Identifier"){let i=Re(t,r.init,e.metadata.expression),s=Ir(t.state,i,e.metadata.expression);F&&(s=y("$.tag",s,T(r.id.name))),t.state.transform[r.id.name]={read:Ne},k0(t,r.id,s,e.metadata)}else{let i=ue(r.id),s=w(t.state.scope.generate("computed_const")),a={...t.state.transform};for(let h of i)delete a[h.name];let n={...t.state,transform:a},p=r.id.type==="ObjectPattern"&&r.id.properties.every(h=>h.type==="Property"&&!h.computed&&h.key.type==="Identifier"&&h.value.type==="Identifier"&&h.key.name===h.value.name),u=Re({...t,state:n},r.init,e.metadata.expression),d=p?M([le(u)]):M([ge(t.visit(r.id,n),u),le(J(i.map(h=>ye("init",h,h))))]),m=Ir(t.state,d,e.metadata.expression);F&&(m=y("$.tag",m,T("[@const]"))),k0(t,s,m,e.metadata);for(let h of i)t.state.transform[h.name]={read:_=>X(y("$.get",s),_)}}}function k0(e,t,r,i){let s=F?[$(y("$.get",t))]:[];if(i.promises_id)td(e,i,[t],[$(ee("=",t,r))],"let");else{let{state:a}=e;a.consts.push(ge(t,r)),a.consts.push(...s)}}function S0(e,t){let r=e.identifiers.map(a=>t.state.scope.get(a.name)?.blocker).filter(a=>a!=null),i=J(e.identifiers.map(a=>{let n=y("$.snapshot",t.visit(a));return ye("init",a,t.state.analysis.runes?n:y("$.untrack",O(n)))})),s=[O(M([$(y("console.log",i)),ha]))];r.length>0&&s.push(z([]),z([]),z(r)),t.state.init.push($(y("$.template_effect",...s)))}function C0(e,t){let r=e.metadata,i={...t.state,scope:t.state.scope.parent},s=Re({...t,state:i},e.expression,e.metadata.expression);r.is_controlled||t.state.template.push_comment();let a=0;e.metadata.keyed&&e.index&&(a|=2);let n=e.key?.type==="Identifier"&&e.context?.type==="Identifier"&&e.context?.name===e.key.name,p;for(let f of e.metadata.expression.dependencies)if(f.kind==="store_sub"){p=!0;break}for(let f of e.metadata.expression.dependencies)if(!(f.scope.function_depth>=t.state.scope.function_depth)&&(!t.state.analysis.runes||!n||p)){a|=1;break}t.state.analysis.runes&&!p&&(a|=16),e.key&&e.body.nodes.some(f=>f.type!=="RegularElement"&&f.type!=="SvelteElement"?!1:f.attributes.some(b=>b.type==="AnimateDirective"))&&(a|=8),r.is_controlled&&(a|=4);let u="";for(let f of e.metadata.expression.dependencies)if(f.kind==="store_sub"){u=f.node.name;break}let d=null;for(let[f]of t.state.scope.declarations)if(t.state.scope.parent?.get(f)!=null){d=t.state.scope.root.unique("$$array");break}let m={...t.state,transform:{...t.state.transform},store_to_invalidate:u},h={...t.state,transform:{...t.state.transform}},_=r.contains_group_binding||!e.index?r.index:w(e.index),v=e.context?.type==="Identifier"?e.context:w("$$item"),E=r.contains_group_binding,l=!1;e.index&&(m.transform[e.index]={read:f=>(E=!0,(a&2)!==0?Ne(f):f)},h.transform[e.index]={read:f=>(l=!0,f)});let o=[],g=u?y("$.invalidate_store",w("$$stores"),T(u)):void 0,k=[];if(!t.state.analysis.runes){let f=new Set;if(d)f.add(d),m.transform[d.name]={read:y};else for(let b of r.transitive_deps)f.add(b.node);for(let b of i2(t))for(let x of b.metadata.transitive_deps)f.add(x.node);if(f.size>0){let b=y("$.invalidate_inner_signals",O(Oe([...f].map(x=>t.visit({...x},m)))));k.push(b)}}if(g&&k.push(g),e.context?.type==="Identifier"){let f=t.state.scope.get(e.context.name);m.transform[e.context.name]={read:b=>f.reassigned?X(d?y(d):s,(a&2)!==0?Ne(_):_,!0):(a&1)!==0?Ne(b):b,assign:(b,x)=>{E=!0;let A=X(d?y(d):s,(a&2)!==0?Ne(_):_,!0);return Oe([ee("=",A,x),...k])},mutate:(b,x)=>(E=!0,Oe([x,...k]))},delete h.transform[e.context.name]}else if(e.context){let f=(a&1)!==0?y("$.get",v):v,{inserts:b,paths:x}=Xe(e.context,f);for(let{id:A,value:I}of b){A.name=t.state.scope.generate("$$array"),m.transform[A.name]={read:Ne};let D=t.visit(O(I),m);o.push(te(A,y("$.derived",D)))}for(let A of x){let I=A.node.name,D=A.has_default_value,G=O(t.visit(A.expression,m));o.push(De(A.node,D?y("$.derived_safe_equal",G):G));let V=D?Ne:y;m.transform[I]={read:V,assign:(B,pe)=>{let Ee=A.update_expression;return Oe([ee("=",Ee,pe),...k])},mutate:(B,pe)=>Oe([pe,...k])},F&&o.push($(V(w(I)))),delete h.transform[I]}}let S=t.visit(e.body,m),C=w("$.index");if(e.metadata.keyed){let f=t.visit(e.context,h),b=t.visit(e.key,h);C=j(l?[f,_]:[f],b)}e.index&&r.contains_group_binding&&o.push(De(e.index,_));let P=e.metadata.expression.has_await,R=P?Me(s,e.metadata.expression):O(s),L=P?O(y("$.get",w("$$collection"))):R,H=[w("$$anchor"),v];(E||d)&&H.push(_),d&&H.push(d);let se=[t.state.node,T(a),L,C,j(H,M(o.concat(S.body)))];e.fallback&&se.push(j([w("$$anchor")],t.visit(e.fallback)));let c=[ut(y("$.each",...se),e,"each")];e.metadata.expression.is_async()?t.state.init.push($(y("$.async",t.state.node,e.metadata.expression.blockers(),P?z([R]):Te,j(P?[t.state.node,w("$$collection")]:[t.state.node],M(c))))):t.state.init.push(...c)}function i2(e){return e.path.filter(t=>t.type==="EachBlock")}function T0(e,t){return t.state.is_instance?e.declaration?t.visit(e.declaration):ce:t.next()}function P0(e,t){if(e.expression.type==="CallExpression"&&he(e.expression,t.state.scope)==="$inspect.trace")return ce;t.next()}function A0(e,t){if(e.await&&F&&!Ce(e,"await_reactivity_loss")&&t.state.options.experimental.async){let r=t.visit(e.left),i=t.visit(e.right),s=t.visit(e.body),a=y("$.for_await_track_reactivity_loss",i);return rb(r,a,s,!0)}t.next()}function R0(e,t){let r=t.path.at(-1)??e,i=Zl(t.state.metadata.namespace,r,e.nodes),{hoisted:s,trimmed:a,is_standalone:n,is_text_first:p}=Rr(r,e.nodes,t.path,i,t.state,t.state.preserve_whitespace,t.state.options.preserveComments);if(s.length===0&&a.length===0)return M([]);let u=a.length===1&&a[0].type==="RegularElement",d=a.length===1&&(a[0].type==="SvelteFragment"||a[0].type==="TitleElement"||a[0].type==="IfBlock"&&a[0].elseif&&r.metadata.flattened?.includes(a[0])),m=[],h,_={...t.state,is_standalone:n,init:[],snippets:[],consts:[],let_directives:[],update:[],after_update:[],memoizer:new Fe,template:new zi,transform:{...t.state.transform},metadata:{namespace:i,bound_contenteditable:t.state.metadata.bound_contenteditable},async_consts:void 0};for(let v of s)t.visit(v,_);if(u){let v=a[0],E=w(t.state.scope.generate(v.name),v.name_loc);t.visit(v,{..._,node:E});let l=_.template.needs_import_node?2:void 0,o=Ns(_,"root",l);_.init.unshift(te(E,y(o))),h=$(y("$.append",w("$$anchor"),E))}else if(d)t.visit(a[0],_);else if(a.length===1&&a[0].type==="Text"){let v=w(t.state.scope.generate("text"));_.init.unshift(te(v,y("$.text",T(a[0].data)))),h=$(y("$.append",w("$$anchor"),v))}else if(a.length>0){let v=w(t.state.scope.generate("fragment"));if(a.some(l=>l.type==="ExpressionTag")&&a.every(l=>l.type==="Text"||l.type==="ExpressionTag")){let l=w(t.state.scope.generate("text"));ni(a,()=>l,!1,{...t,state:_}),_.init.unshift(te(l,y("$.text"))),h=$(y("$.append",w("$$anchor"),l))}else if(n)ni(a,()=>w("$$anchor"),!1,{...t,state:_});else{ni(a,k=>y("$.first_child",v,k&&Z),!1,{...t,state:_});let o=1;_.template.needs_import_node&&(o|=2);let g=Ns(_,"root",o);_.init.unshift(te(v,y(g))),h=$(y("$.append",w("$$anchor"),v))}}return m.push(..._.snippets,..._.let_directives,..._.consts),_.async_consts&&_.async_consts.thunks.length>0&&m.push(te(_.async_consts.id,y("$.run",z(_.async_consts.thunks)))),p&&m.push($(y("$.next"))),m.push(..._.init),_.update.length>0&&m.push(ai(_)),m.push(..._.after_update),h!==void 0&&m.push(h),M(m)}function q0(e,t){let r={...t.state,in_constructor:!1,in_derived:!1};t.next(r)}function I0(e,t){return cc(e,t)}function N0(e,t){let r=e.metadata.is_controlled;r||t.state.template.push_comment();let i=e.metadata.expression.has_await,s=e.metadata.expression.has_blockers(),a=Re(t,e.expression,e.metadata.expression),n=i?y("$.get",w("$$html")):a,p=!r&&t.state.metadata.namespace==="svg",u=!r&&t.state.metadata.namespace==="mathml",d=$(y("$.html",t.state.node,O(n),r&&Z,p&&Z,u&&Z,Ce(e,"hydration_html_changed")&&Z));i||s?t.state.init.push($(y("$.async",t.state.node,e.metadata.expression.blockers(),i?z([Me(a,e.metadata.expression)]):Te,j(i?[t.state.node,w("$$html")]:[t.state.node],M([d]))))):t.state.init.push(d)}function M0(e,t){let r=t.path.at(-1);if(Ve(e,r)){if(e.name==="$$props")return w("$$sanitized_props");let i=t.state.scope.get(e.name);if(t.state.analysis.runes&&i!==null&&e!==i.node&&i.kind==="rest_prop"){let s=t.path.at(-2);if(r?.type==="MemberExpression"&&!r.computed&&s?.type!=="AssignmentExpression"&&s?.type!=="UpdateExpression"){let a=r.property;if(!i.metadata?.exclude_props?.includes(a.name))return w("$$props")}}return Qe(e,t.state)}}function L0(e,t){t.state.template.push_comment();let r=[],i=e.metadata.expression.has_await,s=e.metadata.expression.has_blockers(),a=Re(t,e.test,e.metadata.expression),n=0,p,u,d;for(let h of[e,...e.metadata.flattened??[]]){let _=t.visit(h.consequent),v=w(t.state.scope.generate("consequent"));r.push(te(v,j([w("$$anchor")],_)));let E;if(h.metadata.expression.has_await)E=y("$.get",w("$$condition"));else{let g=Re(t,h.test,h.metadata.expression);if(h.metadata.expression.has_call){let k=w(t.state.scope.generate("d"));r.push(te(k,y("$.derived",j([],g)))),E=y("$.get",k)}else E=g}let l=$(y("$$render",v,n!==0&&T(n))),o=qe(E,l);u?u.alternate=o:p=o,d=h,u=o,n++}if(u&&d?.alternate){let h=t.visit(d.alternate),_=w(t.state.scope.generate("alternate"));r.push(te(_,j([w("$$anchor")],h))),u.alternate=$(y("$$render",_,T(-1)))}let m=[t.state.node,j([w("$$render")],p?M([p]):M([]))];e.elseif&&m.push(Z),r.push(ut(y("$.if",...m),e,"if")),i||s?t.state.init.push($(y("$.async",t.state.node,e.metadata.expression.blockers(),i?z([Me(a,e.metadata.expression)]):Te,j(i?[t.state.node,w("$$condition")]:[t.state.node],M(r))))):t.state.init.push(M(r))}function O0(e,t){t.state.template.push_comment();let r=e.metadata.expression.has_await,i=e.metadata.expression.has_blockers(),s=Re(t,e.expression,e.metadata.expression),a=O(r?y("$.get",w("$$key")):s),n=t.visit(e.fragment),p=ut(y("$.key",t.state.node,a,j([w("$$anchor")],n)),e,"key");r||i?t.state.init.push($(y("$.async",t.state.node,e.metadata.expression.blockers(),r?z([Me(s,e.metadata.expression)]):Te,j(r?[t.state.node,w("$$key")]:[t.state.node],M([p]))))):t.state.init.push(p)}function D0(e,t){if(t.state.analysis.runes||t.path.length>1||e.label.name!=="$"){t.next();return}let r=t.state.analysis.reactive_statements.get(e);if(!r)return;let i=t.visit(e.body);i.type!=="BlockStatement"&&(i=M([i]));let s=i.body,a=[];for(let n of r.dependencies){if(n.kind==="normal"&&n.declaration_kind!=="import")continue;let p=n.node.name,u=Qe(w(p),t.state);(p==="$$props"||p==="$$restProps"||n.kind==="bindable_prop")&&(u=y("$.deep_read_state",u)),a.push(u)}return t.state.legacy_reactive_statements.set(e,$(y("$.legacy_pre_effect",a.length>0?O(Oe(a)):O(M([])),O(M(s))))),ce}function B0(e,t){if(e.expression&&e.expression.type!=="Identifier"){let r=t.state.scope.generate(e.name),i=t.state.scope.get_bindings(e);for(let s of i)t.state.transform[s.node.name]={read:a=>X(y("$.get",w(r)),a)};t.state.let_directives.push(ge(r,y("$.derived",O(M([De(e.expression.type==="ObjectExpression"?Gr(e.expression.properties):br(e.expression.elements),X(w("$$slotProps"),e.name)),le(J(i.map(s=>Y(s.node.name,s.node))))])))))}else{let r=e.expression===null?e.name:e.expression.name;t.state.transform[r]={read:i=>y("$.get",i)},t.state.let_directives.push(ge(r,Ir(t.state,X(w("$$slotProps"),e.name))))}}function j0(e,t){if(e.property.type==="PrivateIdentifier"){let r=t.state.state_fields.get("#"+e.property.name);if(r)return t.state.in_constructor&&(r.type==="$state.raw"||r.type==="$state")?X(e,"v"):y("$.get",e)}t.next()}var s2=["stopPropagation","stopImmediatePropagation","preventDefault","self","trusted","once"];function F0(e,t){e.expression||(t.state.analysis.needs_props=!0);let r=Is(e.expression,e.metadata.expression,t);for(let a of s2)e.modifiers.includes(a)&&(r=y("$."+a,r));let i=e.modifiers.includes("capture"),s=e.modifiers.includes("passive")||(e.modifiers.includes("nonpassive")?!1:void 0);return Xu(t,e.name,r,i,s,!1)}function U0(e,t){if(!t.state.analysis.runes){t.state.transform.$$props={read:r=>({...r,name:"$$sanitized_props"})};for(let[r,i]of t.state.scope.declarations)if(i.declaration_kind==="import"&&i.mutated){let{start:s,end:a}=t.state.analysis.instance.ast,n=i.initial;if(n.start>s&&n.end<a){let u=w("$$_import_"+r);t.state.transform[r]={read:d=>y(u),mutate:(d,m)=>y(u,m)},t.state.legacy_reactive_imports.push(te(u,y("$.reactive_import",O(w(r)))))}}}for(let[r,i]of t.state.scope.declarations){if(i.kind==="store_sub"){let s,a=()=>s??=t.visit(w(r.slice(1)));t.state.transform[r]={read:y,assign:(n,p)=>y("$.store_set",a(),p),mutate:(n,p)=>{let u=y("$.untrack",n);function d(m){return m.type==="MemberExpression"?{...m,object:d(m.object),property:m.property}:u}return y("$.store_mutate",a(),p.type==="AssignmentExpression"?ee(p.operator,d(p.left),p.right):ma(p.operator,d(p.argument),p.prefix),u)},update:n=>y(n.prefix?"$.update_pre_store":"$.update_store",Qe(w(r.slice(1)),t.state),y(n.argument),n.operator==="--"&&T(-1))}}if(i.kind==="prop"||i.kind==="bindable_prop")if(sc(i,t.state))t.state.transform[r]={read:y,assign:(s,a)=>y(s,a),mutate:(s,a)=>i.kind==="bindable_prop"?y(s,a,Z):a,update:s=>y(s.prefix?"$.update_pre_prop":"$.update_prop",s.argument,s.operator==="--"&&T(-1))};else if(i.prop_alias){let s=Be(i.prop_alias);t.state.transform[r]={read:a=>X(w("$$props"),s,s.type==="Literal")}}else t.state.transform[r]={read:s=>X(w("$$props"),s)}}if(Vi(t),t.state.is_instance)return{...e,body:ec(t.state.analysis.instance_body,w("$.run"),r=>t.visit(r))};t.next()}function H0(e,t){t.state.template.push_comment();let r=wr(e.expression),i=[],s=new Fe;for(let d=0;d<r.arguments.length;d++){let m=r.arguments[d],h=e.metadata.arguments[d],_=Re(t,m,h),v=s.add(_,h);_!==v&&(_=y("$.get",v)),i.push(O(_))}s.apply();let a=s.deriveds(t.state.analysis.runes),n=Re(t,r.callee,e.metadata.expression);e.metadata.dynamic?(e.expression.type==="ChainExpression"&&(n=it("??",n,w("$.noop"))),a.push(ut(y("$.snippet",t.state.node,O(n),...i),e,"render"))):a.push(ut((e.expression.type==="CallExpression"?y:Bt)(n,t.state.node,...i),e,"render"));let p=s.async_values(),u=s.blockers();p||u?(t.state.init.push($(y("$.async",t.state.node,u,s.async_values(),j([t.state.node,...s.async_ids()],M(a))))),t.state.is_standalone&&t.state.init.push($(y("$.next")))):t.state.init.push(a.length===1?a[0]:M(a))}function V0(e,t){t.state.template.push_comment();let r=[],i=[],s=[],a=new Fe,n=T("default");for(let _ of e.attributes)if(_.type==="SpreadAttribute")i.push(O(t.visit(_)));else if(_.type==="Attribute"){let{value:v,has_state:E}=Le(_.value,t,(l,o)=>o.has_call||o.has_await?y("$.get",a.add(l,o)):l);_.name==="name"?n=v:_.name!=="slot"&&(E?r.push(tt(_.name,[le(v)])):r.push(Y(_.name,v)))}else _.type==="LetDirective"&&t.visit(_,{...t.state,let_directives:s});a.apply(),t.state.init.push(...s);let p=a.deriveds(t.state.analysis.runes),u=i.length===0?J(r):y("$.spread_props",J(r),...i),d=e.fragment.nodes.length===0?st:j([w("$$anchor")],t.visit(e.fragment));p.push($(y("$.slot",t.state.node,w("$$props"),n,u,d)));let m=a.async_values(),h=a.blockers();m||h?t.state.init.push($(y("$.async",t.state.node,h,m,j([t.state.node,...a.async_ids()],M(p))))):t.state.init.push(p.length===1?p[0]:M(p))}function z0(e,t){let r=[w("$$anchor")],i,s=[],a={...t.state.transform},n={...t.state,transform:a};for(let m=0;m<e.parameters.length;m++){let h=e.parameters[m];if(!h)continue;if(h.type==="Identifier"){r.push(da(h,w("$.noop"))),a[h.name]={read:y};continue}let _=`$$arg${m}`;r.push(w(_));let{inserts:v,paths:E}=Xe(h,Bt(w(_)));for(let{id:l,value:o}of v)l.name=t.state.scope.generate("$$array"),a[l.name]={read:Ne},s.push(te(l,y("$.derived",t.visit(O(o)))));for(let l of E){let o=l.node.name,g=l.has_default_value,k=O(t.visit(l.expression,n));s.push(De(l.node,g?y("$.derived_safe_equal",k):k)),a[o]={read:g?Ne:y},F&&s.push($(a[o].read(w(o))))}}let p=t.visit(e.body,n).body;i=M([F?$(y("$.validate_snippet_args",ft(w("arguments")))):ce,...s,...p]);let u=F?y("$.wrap_snippet",w(t.state.analysis.name),Ue(null,r,i)):j(r,i),d=ge(e.expression,u);t.path.length===1&&t.path[0].type==="Fragment"?e.metadata.can_hoist?t.state.module_level_snippets.push(d):t.state.instance_level_snippets.push(d):t.state.snippets.push(d)}function W0(e,t){return t.visit(e.expression)}function Gi(e,t,r){let i={...r.state,node:w(t)};for(let s of e.attributes)s.type==="OnDirective"?r.state.init.push($(r.visit(s,i))):r.visit(s,i)}function G0(e,t){Gi(e,"$.document.body",t)}function K0(e,t){let r=Wi(e,"$$component",null,t);t.state.init.push(r)}function X0(e,t){Gi(e,"$.document",t)}function J0(e,t){t.state.template.push_comment();let r=[],i,s=[],a=[],n=[],p=w(t.state.scope.generate("$$element")),u={...t,state:{...t.state,node:p,init:[],update:[],after_update:[],memoizer:new Fe}};for(let l of e.attributes)if(l.type==="Attribute")l.name==="xmlns"&&!me(l)&&(i=l.value),r.push(l);else if(l.type==="SpreadAttribute")r.push(l);else if(l.type==="ClassDirective")s.push(l);else if(l.type==="StyleDirective")a.push(l);else if(l.type==="LetDirective")n.push(t.visit(l));else if(l.type==="OnDirective"){let o=t.visit(l,u.state);u.state.after_update.push($(o))}else t.visit(l,u.state);r.length===1&&r[0].type==="Attribute"&&r[0].name.toLowerCase()==="class"&&me(r[0])?fc(e,p,r[0],s,u,!1):r.length&&dc(r,s,a,u,e,p);let d=e.metadata.expression.has_await,m=e.metadata.expression.has_blockers(),h=t.visit(e.tag),_=O(d?y("$.get",w("$$tag")):h),v=u.state.init;u.state.update.length>0&&v.push(ai(u.state)),v.push(...u.state.after_update),v.push(...t.visit(e.fragment,{...t.state,metadata:{...t.state.metadata,namespace:qr(e,t.state.metadata.namespace)}}).body),F&&(n.push($(y("$.validate_dynamic_element_tag",_))),e.fragment.nodes.length>0&&n.push($(y("$.validate_void_dynamic_element",_))));let E=F&&_e(e.start);n.push($(y("$.element",t.state.node,_,e.metadata.svg||e.metadata.mathml?Z:Jt,v.length>0&&j([p,w("$$anchor")],M(v)),i&&O(Le(i,t).value),E&&z([T(E.line),T(E.column)])))),d||m?t.state.init.push($(y("$.async",t.state.node,e.metadata.expression.blockers(),d?z([Me(h,e.metadata.expression)]):Te,j(d?[t.state.node,w("$$tag")]:[t.state.node],M(n))))):t.state.init.push(n.length===1?n[0]:M(n))}function Y0(e,t){for(let r of e.attributes)r.type==="LetDirective"&&t.visit(r);t.state.init.push(...t.visit(e.fragment).body)}function Z0(e,t){let r=J([]);for(let m of e.attributes){if(m.type!=="Attribute"||m.value===!0)continue;let h=Array.isArray(m.value)?m.value[0]:m.value,_=t.visit(h.expression,t.state);h.metadata.expression.has_state?r.properties.push(tt(m.name,[le(_)])):r.properties.push(Y(m.name,_))}let i=[],s=[],a=[],n=!1,p=!1;for(let m of e.fragment.nodes)m.type==="ConstTag"&&(n=!0,t.state.options.experimental.async||t.visit(m,{...t.state,consts:s,scope:t.state.scopes.get(e.fragment)??t.state.scope})),m.type==="DeclarationTag"&&(p=!0);for(let m of e.fragment.nodes){if(m.type==="ConstTag"){t.state.options.experimental.async&&i.push(m);continue}if(m.type==="SnippetBlock"){if(t.state.options.experimental.async&&(n||p)&&!["failed","pending"].includes(m.expression.name))i.push(m);else{let h=[];t.visit(m,{...t.state,snippets:h});let _=h[0],v=F?_.declarations[0].init.arguments[1]:_.declarations[0].init;t.state.options.experimental.async||v.body.body.unshift(...s.filter(E=>E.type==="VariableDeclaration")),["failed","pending"].includes(m.expression.name)&&r.properties.push(ye("init",m.expression,m.expression)),a.push(_)}continue}i.push(m)}let u=t.visit({...e.fragment,nodes:i},{...t.state,scope:t.state.scopes.get(e.fragment)??t.state.scope});t.state.options.experimental.async||u.body.unshift(...s);let d=$(y("$.boundary",t.state.node,r,j([w("$$anchor")],u)));t.state.template.push_comment(),t.state.init.push(a.length>0?M([...a,d]):d)}function Q0(e,t){t.state.init.push($(y(w("$.head",e.name_loc),T(li($e)),j([w("$$anchor")],t.visit(e.fragment)))))}function ek(e,t){let r=Wi(e,fr,e.name_loc,t);t.state.init.push(r)}function tk(e,t){Gi(e,"$.window",t)}function rk(e,t){let r=new Fe,{has_state:i,value:s}=Nr(e.fragment.nodes,t,t.state,(p,u)=>r.add(p,u)),a=t.state.scope.evaluate(s),n=$(ee("=",X(w("$.document"),w("title",e.name_loc)),a.is_known?T(a.value):a.is_defined?s:it("??",s,T(""))));i?t.state.after_update.push($(y("$.deferred_template_effect",j(r.apply(),M([n])),r.sync_values(),r.async_values(),r.blockers()))):t.state.after_update.push($(y("$.effect",O(M([n])))))}function ik(e,t){let r=e.modifiers.includes("global")?4:0;e.intro&&(r|=1),e.outro&&(r|=2);let i=[T(r),t.state.node,O(t.visit(Hi(e.name)))];e.expression&&i.push(O(t.visit(e.expression)));let s=$(y("$.transition",...i));e.metadata.expression.is_async()&&(s=$(y("$.run_after_blockers",e.metadata.expression.blockers(),O(M([s]))))),t.state.after_update.push(s)}function sk(e,t){let r=e.argument;if(r.type==="MemberExpression"&&r.property.type==="PrivateIdentifier"&&t.state.state_fields.has("#"+r.property.name)){let n="$.update";e.prefix&&(n+="_pre");let p=[r];return e.operator==="--"&&p.push(T(-1)),y(n,...p)}if(r.type!=="Identifier"&&r.type!=="MemberExpression")throw new Error("An impossible state was reached");let i=Ie(r),s=i&&t.state.transform[i.name];if(i===r&&s?.update)return s.update(e);let a=t.next();return i&&s?.mutate&&(a=s.mutate(i,a)),lc(e,t,a)}function ak(e,t){let r=[w("$$node")];e.expression&&r.push(w("$$action_arg"));let i=[t.state.node,j(r,Bt(t.visit(Hi(e.name)),...r))];e.expression&&i.push(O(t.visit(e.expression)));let s=$(y("$.action",...i));e.metadata.expression.is_async()&&(s=$(y("$.run_after_blockers",e.metadata.expression.blockers(),O(M([s]))))),t.state.init.push(s),t.next()}function nk(e,t){let r=Re(t,e.expression,e.metadata.expression),i=$(y("$.attach",t.state.node,O(r)));e.metadata.expression.is_async()&&(i=$(y("$.run_after_blockers",e.metadata.expression.blockers(),O(M([i]))))),t.state.init.push(i),t.next()}function ok(e,t){let r=[];if(t.state.analysis.runes)for(let i of e.declarations){let s=i.init,a=he(s,t.state.scope);if(!a||a==="$effect.tracking"||a==="$effect.root"||a==="$inspect"||a==="$inspect.trace"||a==="$state.snapshot"||a==="$state.eager"||a==="$host"){r.push(t.visit(i));continue}if(a==="$props.id")continue;if(a==="$props"){let u=["$$slots","$$events","$$legacy"];if(t.state.analysis.custom_element&&u.push("$$host"),i.id.type==="Identifier"){let d=t.state.scope.root.unique("rest_excludes");t.state.hoisted.push(te(d,fa("Set",z(u.map(h=>T(h))))));let m=[w("$$props"),d];F&&m.push(T(i.id.name)),r.push(ne(i.id,y("$.rest_props",...m)))}else{Ts(i.id.type,"ObjectPattern");for(let d of i.id.properties)if(d.type==="Property"){let m=d.key,h=m.type==="Identifier"?m.name:m.value;u.push(h);let _=d.value.type==="AssignmentPattern"?d.value.left:d.value;Ts(_.type,"Identifier");let v=t.state.scope.get(_.name),E=v.initial&&t.visit(v.initial);E&&v.kind==="bindable_prop"&&$t(E,t.state.scope)&&(E=y("$.proxy",E),F&&(E=y("$.tag_proxy",E,T(_.name)))),sc(v,t.state)&&r.push(ne(_,ic(v,t.state,h,E)))}else{let m=t.state.scope.root.unique("rest_excludes");t.state.hoisted.push(te(m,fa("Set",z(u.map(_=>T(_))))));let h=[w("$$props"),m];F&&h.push(T(d.argument.name)),r.push(ne(d.argument,y("$.rest_props",...h)))}}continue}let p=s.arguments[0]??Te;if(a==="$state"||a==="$state.raw"){let u=(d,m)=>{let h=t.state.scope.get(d.name),_=si(h,t.state.analysis),v=$t(m,t.state.scope);if(a==="$state"&&v&&(m=y("$.proxy",m),F&&!_&&(m=y("$.tag_proxy",m,T(d.name)))),_){let E=w("$.state",s.callee.loc);m=y(E,m),F&&(m=y("$.tag",m,T(d.name)))}return m};if(i.id.type==="Identifier"){let d=t.visit(p);r.push(ne(i.id,u(i.id,d)))}else{let d=w(t.state.scope.generate("tmp")),{inserts:m,paths:h}=Xe(i.id,d);r.push(ne(d,t.visit(p)),...m.map(({id:_,value:v})=>{_.name=t.state.scope.generate("$$array"),t.state.transform[_.name]={read:Ne};let E=t.visit(O(v)),l=y("$.derived",E);if(F){let o=`[$state ${i.id.type==="ArrayPattern"?"iterable":"object"}]`;l=y("$.tag",l,T(o))}return ne(_,l)}),...h.map(_=>{let v=t.visit(_.expression),E=t.state.scope.get(_.node.name);return ne(_.node,E?.kind==="state"||E?.kind==="raw_state"?u(E.node,v):v)}))}continue}if(a==="$derived"||a==="$derived.by"){let u=t.state.analysis.async_deriveds.get(s),d=u!==void 0;if(i.id.type==="Identifier"){let m=t.visit(p);if(d){let h=F&&!Ce(s,"await_waterfall")&&jr(s),_=y("$.async_derived",Me(m,u),F&&T(i.id.name),h?T(h):void 0);r.push(ne(i.id,et(_)))}else{a==="$derived"&&(m=O(m));let h=y("$.derived",m);F&&(h=y("$.tag",h,T(i.id.name))),r.push(ne(i.id,h))}}else{let m=i.init,h=t.visit(p),_=p;if(a!=="$derived"||m.arguments[0].type!=="Identifier"){let l=w(t.state.scope.generate("$$d")),o=y("$.derived",a==="$derived"?O(h):h);if(_=y("$.get",l),d){let g=F&&!Ce(m,"await_waterfall")&&jr(m);o=y("$.async_derived",Me(h,u),F&&T(`[$derived ${i.id.type==="ArrayPattern"?"iterable":"object"}]`),g?T(g):void 0),o=et(o)}r.push(ne(l,o))}let{inserts:v,paths:E}=Xe(i.id,_);for(let{id:l,value:o}of v){l.name=t.state.scope.generate("$$array"),t.state.transform[l.name]={read:Ne};let g=t.visit(O(o)),k=y("$.derived",g);if(F){let S=`[$derived ${i.id.type==="ArrayPattern"?"iterable":"object"}]`;k=y("$.tag",k,T(S))}r.push(ne(l,k))}for(let l of E){let o=t.visit(l.expression),g=y("$.derived",O(o));r.push(ne(l.node,F?y("$.tag",g,T(l.node.name)):g))}}continue}}else for(let i of e.declarations){let s=t.state.scope.get_bindings(i),a=s.some(p=>p.kind==="state"),n=s.some(p=>p.kind==="bindable_prop");if(!a&&!n){r.push(t.visit(i));continue}if(n){if(i.id.type!=="Identifier"){let u=w(t.state.scope.generate("tmp")),{inserts:d,paths:m}=Xe(i.id,u);r.push(ne(u,t.visit(i.init)));for(let{id:h,value:_}of d){h.name=t.state.scope.generate("$$array"),t.state.transform[h.name]={read:Ne};let v=t.visit(O(_));r.push(ne(h,y("$.derived",v)))}for(let h of m){let _=h.node.name,v=t.state.scope.get(_),E=t.visit(h.expression);r.push(ne(h.node,v.kind==="bindable_prop"?ic(v,t.state,v.prop_alias??_,E):E))}continue}let p=t.state.scope.get(i.id.name);r.push(ne(i.id,ic(p,t.state,p.prop_alias??i.id.name,i.init&&t.visit(i.init))));continue}r.push(...l2(i,t,i.init&&t.visit(i.init)))}return r.length===0?ce:{...e,declarations:r}}function l2(e,t,r){let i=(p,u)=>{let d=y("$.mutable_source",p,t.state.analysis.immutable&&Z);return F?y("$.tag",d,T(u)):d};if(e.id.type==="Identifier")return[ne(e.id,i(r,e.id.name))];let s=w(t.state.scope.generate("tmp")),{inserts:a,paths:n}=Xe(e.id,s);return[ne(s,r),...a.map(({id:p,value:u})=>{p.name=t.state.scope.generate("$$array"),t.state.transform[p.name]={read:Ne};let d=t.visit(O(u));return ne(p,y("$.derived",d))}),...n.map(p=>{let u=t.visit(p.expression),d=t.state.scope.get(p.node.name);return ne(p.node,d?.kind==="state"?i(u,p.node.name):u)})]}var id={_:function(t,{next:r,state:i}){let s=i.scopes.get(t);s&&s!==i.scope?r({...i,transform:ac(s,i),scope:s}):r()},AnimateDirective:Qx,ArrowFunctionExpression:e0,AssignmentExpression:t0,Attribute:i0,AwaitBlock:a0,AwaitExpression:n0,BinaryExpression:o0,BindDirective:h0,BlockStatement:_0,BreakStatement:b0,CallExpression:y0,ClassBody:g0,Comment:v0,Component:w0,ConstTag:E0,DeclarationTag:x0,DebugTag:S0,EachBlock:C0,ExportNamedDeclaration:T0,ExpressionStatement:P0,ForOfStatement:A0,Fragment:R0,FunctionDeclaration:q0,FunctionExpression:I0,HtmlTag:N0,Identifier:M0,IfBlock:L0,KeyBlock:O0,LabeledStatement:D0,LetDirective:B0,MemberExpression:j0,OnDirective:F0,Program:U0,RegularElement:f0,RenderTag:H0,SlotElement:V0,SnippetBlock:z0,SpreadAttribute:W0,SvelteBody:G0,SvelteComponent:K0,SvelteDocument:X0,SvelteElement:J0,SvelteFragment:Y0,SvelteBoundary:Z0,SvelteHead:Q0,SvelteSelf:ek,SvelteWindow:tk,TitleElement:rk,TransitionDirective:ik,UpdateExpression:sk,UseDirective:ak,AttachTag:nk,VariableDeclaration:ok};function lk(e,t){let r={analysis:e,options:t,scope:e.module.scope,scopes:e.module.scopes,is_instance:!1,hoisted:[_a("$","svelte/internal/client"),...e.instance_body.hoisted],templates:new Map,node:null,legacy_reactive_imports:[],legacy_reactive_statements:new Map,metadata:{namespace:t.namespace,bound_contenteditable:!1},events:new Set,preserve_whitespace:t.preserveWhitespace,state_fields:new Map,transform:{},in_constructor:!1,instance_level_snippets:[],module_level_snippets:[],is_standalone:!1,init:null,consts:null,snippets:null,let_directives:null,update:null,after_update:null,template:null,memoizer:null},i=re(e.module.ast,r,id),s={...r,transform:{...r.transform},scope:e.instance.scope,scopes:e.instance.scopes,is_instance:!0},a=re(e.instance.ast,s,id),n=re(e.template.ast,{...r,transform:s.transform,scope:e.instance.scope,scopes:e.template.scopes},id);i.body.unshift(...r.legacy_reactive_imports);let p=[],u=ce,d=[],m=!1;for(let[R,L]of e.instance.scope.declarations)if(L.kind==="legacy_reactive"&&d.push(ge(R,y("$.mutable_source",void 0,e.immutable?Z:void 0))),L.kind==="store_sub"){p.length===0&&(m=!0,u=ge(br([w("$$stores"),w("$$cleanup")]),y("$.setup_stores")));let H=Qe(w(R.slice(1)),s),se=y("$.store_get",H,T(R),w("$$stores"));p.push(ge(L.node,F?O(Oe([y("$.validate_store",H,T(R.slice(1))),se])):O(se)))}for(let[R]of e.reactive_statements){let L=r.legacy_reactive_statements.get(R);if(L===void 0)throw new Error("Could not find reactive statement");a.body.push(L)}e.reactive_statements.size>0&&a.body.push($(y("$.legacy_pre_effect_reset")));let h=[];for(let R of e.binding_groups.values())h.push(ge(R.name,z([])));let _=e.exports.flatMap(({name:R,alias:L})=>{let H=s.scope.get(R),se=Qe(w(R),s),c=tt(L??R,[le(se)]);if(se.type==="Identifier"){if(H?.declaration_kind==="let"||H?.declaration_kind==="var")return[c,St(L??R,[$(ee("=",se,w("$$value")))])];if(!F)return Y(L??R,se)}if(H?.kind==="prop"||H?.kind==="bindable_prop")return[c,St(L??R,[$(y(R,w("$$value")))])];if(H?.kind==="state"||H?.kind==="raw_state"){let f=H.kind==="state"?y("$.proxy",w("$$value")):w("$$value");return[c,St(L??R,[$(y("$.set",w(R),f))])]}return c}),v=[...e.instance.scope.declarations].filter(([R,L])=>(L.kind==="prop"||L.kind==="bindable_prop")&&!R.startsWith("$$"));if(e.accessors)for(let[R,L]of v){let H=L.prop_alias??R,se=tt(H,[le(y(w(R)))]),c=St(H,[$(y(w(R),w("$$value"))),$(y("$.flush"))]);e.runes&&L.initial&&(c.value.params[0]={type:"AssignmentPattern",left:w("$$value"),right:L.initial}),_.push(se,c)}t.compatibility.componentApi===4?_.push(Y("$set",w("$.update_legacy_props")),Y("$on",j([w("$$event_name"),w("$$event_cb")],y("$.add_legacy_event_listener",w("$$props"),w("$$event_name"),w("$$event_cb"))))):F&&_.unshift(ft(y(w("$.legacy_api"))));let E=[w("$$props"),T(e.runes)];F&&E.push(w(e.name));let l=M([u,...d,...h]),o=F||e.needs_context||e.reactive_statements.size>0||_.length>0;l.body.push(...r.instance_level_snippets,...a.body),o&&_.length>0&&l.body.push(te("$$exports",J(_))),l.body.unshift(...p),!e.runes&&e.needs_context&&l.body.push($(y("$.init",e.immutable?Z:void 0))),l.body.push(...n.body),e.needs_mutation_validation&&l.body.unshift(te("$$ownership_validator",y("$.create_ownership_validator",w("$$props"))));let g=o||e.needs_props||e.uses_props||e.uses_rest_props||e.uses_slots||e.slot_names.size>0;if(l.loc=a.loc,!e.runes)for(let{name:R,alias:L}of e.exports)l.body.push($(y("$.bind_prop",w("$$props"),T(L??R),Qe(w(R),s))));if(e.css.ast!==null&&e.inject_styles){let R=T(e.css.hash),L=T(ji(e.source,e,t).code);r.hoisted.push(ge("$$css",J([Y("hash",R),Y("code",L)]))),l.body.unshift($(y("$.append_styles",w("$$anchor"),w("$$css"))))}if(o){l.body.unshift($(y("$.push",...E)));let R;if(_.length>0){let L=y("$.pop",w("$$exports"));R=m?te("$$pop",L):le(L)}else R=$(y("$.pop"));l.body.push(R)}if(m&&(l.body.push($(y("$$cleanup"))),_.length>0&&l.body.push(le(w("$$pop")))),e.uses_rest_props){let R=e.exports.map(({name:L,alias:H})=>H??L);for(let[L,H]of e.instance.scope.declarations)H.kind==="bindable_prop"&&R.push(H.prop_alias??L);l.body.unshift(ge("$$restProps",y("$.legacy_rest_props",w("$$sanitized_props"),z(R.map(L=>T(L))))))}if(e.uses_props||e.uses_rest_props){let R=[T("children"),T("$$slots"),T("$$events"),T("$$legacy")];e.custom_element&&R.push(T("$$host")),l.body.unshift(ge("$$sanitized_props",y("$.legacy_rest_props",w("$$props"),z(R))))}e.uses_slots&&l.body.unshift(ge("$$slots",y("$.sanitize_slots",w("$$props"))));let k=[],S=[];for(let R of[...i.body,...r.hoisted])R.type==="ImportDeclaration"?k.push(R):S.push(R);S=[...k,...r.module_level_snippets,...S];let C=Wr(w(e.name),g?[w("$$anchor"),w("$$props")]:[w("$$anchor")],l);if(t.hmr){let R=w(e.name),L=[$(y(X(X(R,w("$.HMR"),!0),"update"),w("module.default")))];e.css.hash&&L.unshift($(y("$.cleanup_styles",T(e.css.hash))));let H=M([$(ee("=",R,y("$.hmr",R))),$(y("import.meta.hot.accept",j([w("module")],M(L))))]);S.push(C,qe(w("import.meta.hot"),H),zr(w(e.name)))}else S.push(zr(C));F&&S.unshift($(ee("=",X(w(e.name),"$.FILENAME",!0),T($e)))),t.experimental.async&&S.unshift(Yt([],"svelte/internal/flags/async")),e.runes||S.unshift(Yt([],"svelte/internal/flags/legacy")),e.tracing&&S.unshift(Yt([],"svelte/internal/flags/tracing")),t.discloseVersion&&S.unshift(Yt([],"svelte/internal/disclose-version")),t.compatibility.componentApi===4?(S.unshift(Yt([["createClassComponent","$$_createClassComponent"]],"svelte/legacy")),l.body.unshift(qe(w("new.target"),le(y("$$_createClassComponent",J([Y("component",w(e.name)),ft(w("$$anchor"))])))))):F&&l.body.unshift($(y("$.check_target",w("new.target")))),e.props_id&&l.body.unshift(ge(e.props_id,y("$.props_id"))),r.events.size>0&&S.push($(y("$.delegate",z(Array.from(r.events).map(R=>T(R))))));let P=e.custom_element;if(P){let R=typeof P=="boolean"?{}:P.props||{},L=[];for(let[b,x]of Object.entries(R)){let A=e.instance.scope.get(b),I=A?.prop_alias??b;!x.type&&A?.initial?.type==="Literal"&&typeof A?.initial.value=="boolean"&&(x.type="Boolean");let D=J([x.attribute?Y("attribute",T(x.attribute)):void 0,x.reflect?Y("reflect",Z):void 0,x.type?Y("type",T(x.type)):void 0].filter(Boolean));L.push(Y(I,D))}for(let[b,x]of v){let A=x.prop_alias??b;R[A]||L.push(Y(A,J([])))}let H=z([...e.slot_names.keys()].map(b=>T(b))),se=z(e.exports.map(({name:b,alias:x})=>T(x??b))),c;typeof P=="boolean"||P.shadow==="open"||P.shadow===void 0?c=J([Y("mode",T("open"))]):P.shadow==="none"?c=void 0:c=P.shadow;let f=y("$.create_custom_element",w(e.name),J(L),H,se,c,typeof P!="boolean"?P.extend:void 0);if(typeof P!="boolean"&&typeof P.tag=="string"){let b=$(y("customElements.define",T(P.tag),f));t.hmr?S.push(qe(kt("==",y("customElements.get",T(P.tag)),st),b)):S.push(b)}else S.push($(f))}return{type:"Program",sourceType:"module",body:S}}function ck(e,t,r){if(r.generate===!1)return{js:null,css:null,warnings:hi,metadata:{runes:e.runes},ast:null};let i=r.generate==="server"?Zx(e,r):lk(e,r),s=ax(r.filename,r.outputFilename,"input.svelte"),a=Ru(i,Nu({comments:e.comments}),{sourceMapContent:t,sourceMapSource:s});Kl(a,r,s);let n=e.css.ast&&!e.inject_styles?ji(t,e,r):null;return{js:a,css:n,warnings:hi,metadata:{runes:e.runes},ast:null}}var dk={filename:Ms("(unknown)"),rootDir:Ms(typeof process<"u"?process.cwd?.():typeof Deno<"u"?Deno.cwd():void 0),dev:lr(!1),generate:oi("client",(e,t)=>e==="dom"||e==="ssr"?(ld(If),e==="dom"?"client":"server"):(e!=="client"&&e!=="server"&&e!==!1&&It(`${t} must be "client", "server" or false`),e)),warningFilter:mk(()=>!0),experimental:hc({async:lr(!1)})},fk={accessors:uk(Hs,lr(!1)),css:nd((()=>"external"),e=>((e===!0||e===!1)&&It('The boolean options have been removed from the css option. Use "external" instead of false and "injected" instead of true'),e==="none"&&It('css: "none" is no longer a valid option. If this was crucial for you, please open an issue on GitHub with your use case.'),e!=="external"&&e!=="injected"&&It('css should be either "external" (default, recommended) or "injected"'),e)),cssHash:mk(({css:e,filename:t,hash:r})=>`svelte-${r(t==="(unknown)"?e:t??e)}`),cssOutputFilename:Ms(void 0),customElement:nd((()=>!1),(e,t)=>(typeof e!="boolean"&&It(`${t} should be true or false`),e)),discloseVersion:lr(!0),immutable:uk(Vs,lr(!1)),legacy:Ki("The legacy option has been removed. If you are using this because of legacy.componentApi, use compatibility.componentApi instead"),compatibility:hc({componentApi:ad([4,5],5)}),loopGuardTimeout:sd(qf),name:Ms(void 0),namespace:ad(["html","mathml","svg"]),modernAst:lr(!1),outputFilename:Ms(void 0),preserveComments:lr(!1),fragments:ad(["html","tree"]),preserveWhitespace:lr(!1),runes:nd(()=>{}),hmr:lr(!1),sourcemap:oi(void 0,e=>e),enableSourcemap:sd($f),hydratable:sd(Rf),format:Ki('The format option has been removed in Svelte 4, the compiler only outputs ESM now. Remove "format" from your compiler options. If you did not set this yourself, bump the version of your bundler plugin (vite-plugin-svelte/rollup-plugin-svelte/svelte-loader)'),tag:Ki('The tag option has been removed in Svelte 5. Use `<svelte:options customElement="tag-name" />` inside the component instead. If that does not solve your use case, please open an issue on GitHub with details.'),sveltePath:Ki("The sveltePath option has been removed in Svelte 5. If this option was crucial for you, please open an issue on GitHub with your use case."),errorMode:Ki("The errorMode option has been removed. If you are using this through svelte-preprocess with TypeScript, use the https://www.typescriptlang.org/tsconfig#verbatimModuleSyntax setting instead"),varsReport:Ki("The vars option has been removed. If you are using this through svelte-preprocess with TypeScript, use the https://www.typescriptlang.org/tsconfig#verbatimModuleSyntax setting instead")},p2=hc({...dk,...Object.fromEntries(Object.keys(fk).map(e=>[e,()=>{}]))}),od=hc({...dk,...fk});function Ki(e){return t=>{t!==void 0&&Sm(null,e)}}var pk=new Set;function ld(e){pk.has(e)||(pk.add(e),e(null))}function sd(e){return t=>{t!==void 0&&ld(e)}}function uk(e,t){return(r,i)=>(r!==void 0&&ld(e),t(r,i))}function hc(e,t=!1){return(r,i)=>{let s={};(r&&typeof r!="object"||Array.isArray(r))&&It(`${i} should be an object`);for(let a in r)a in e||(t?s[a]=r[a]:Cm(null,`${i?`${i}.${a}`:a}`));for(let a in e){let n=e[a];s[a]=n(r&&r[a],i?`${i}.${a}`:a)}return s}}function oi(e,t){return(r,i)=>r===void 0?e:t(r,i)}function Ms(e,t=!0){return oi(e,(r,i)=>(typeof r!="string"&&It(`${i} should be a string, if specified`),!t&&r===""&&It(`${i} cannot be empty`),r))}function lr(e){return oi(e,(t,r)=>(typeof t!="boolean"&&It(`${r} should be true or false, if specified`),t))}function ad(e,t=e[0]){return oi(t,(r,i)=>{if(!e.includes(r)){let s=e.length>2?`${i} should be one of ${e.slice(0,-1).map(a=>`"${a}"`).join(", ")} or "${e[e.length-1]}"`:`${i} should be either "${e[0]}" or "${e[1]}"`;It(s)}return r})}function mk(e){return oi(e,(t,r)=>(typeof t!="function"&&It(`${r} should be a function, if specified`),t))}function nd(e,t=r=>r){return oi(e,(r,i)=>typeof r=="function"?(...n)=>t(r(...n),i):(...a)=>t(r,i))}function It(e){Em(null,e)}function hk(e,t){e=f2(e),$c({warning:t.warningFilter,filename:t.filename});let r=od(t,""),i=Ip(e),{customElement:s,...a}=i.options||{},n={...r,...a,customElementOptions:s,css:"css"in a?()=>a.css??"external":r.css,runes:"runes"in a?()=>a.runes:r.runes};i.metadata.ts&&(i={...i,fragment:i.fragment&&fs(i.fragment),instance:i.instance&&fs(i.instance),module:i.module&&fs(i.module)},n.customElementOptions?.extend&&(n.customElementOptions.extend=fs(n.customElementOptions?.extend)));let p=Pu(i,e,n),u=ck(p,e,n);return u.ast=d2(e,i,t.modernAst),u}function d2(e,t,r){if(r){let i=s=>{delete s.metadata};return t.options?.attributes.forEach(s=>{i(s),i(s.value),Array.isArray(s.value)&&s.value.forEach(i)}),re(t,null,{_(s,{next:a}){i(s),a()}})}return om(e,t)}function f2(e){return e.charCodeAt(0)===65279?e.slice(1):e}var m2={a11y_aria_activedescendant_has_tabindex:["2.1.1"],a11y_aria_attributes:["4.1.2"],a11y_autocomplete_valid:["1.3.5"],a11y_click_events_have_key_events:["2.1.1"],a11y_consider_explicit_label:["2.4.4","4.1.2"],a11y_distracting_elements:["2.2.2"],a11y_figcaption_index:["1.3.1"],a11y_figcaption_parent:["1.3.1"],a11y_img_redundant_alt:["1.1.1"],a11y_incorrect_aria_attribute_type:["4.1.2"],a11y_incorrect_aria_attribute_type_boolean:["4.1.2"],a11y_incorrect_aria_attribute_type_id:["4.1.2"],a11y_incorrect_aria_attribute_type_idlist:["4.1.2"],a11y_incorrect_aria_attribute_type_integer:["4.1.2"],a11y_incorrect_aria_attribute_type_token:["4.1.2"],a11y_incorrect_aria_attribute_type_tokenlist:["4.1.2"],a11y_incorrect_aria_attribute_type_tristate:["4.1.2"],a11y_interactive_supports_focus:["2.1.1"],a11y_label_has_associated_control:["1.3.1","4.1.2"],a11y_media_has_caption:["1.2.2"],a11y_misplaced_role:["4.1.2"],a11y_misplaced_scope:["1.3.1"],a11y_missing_content:["2.4.6","1.3.1"],a11y_mouse_events_have_key_events:["2.1.1"],a11y_no_abstract_role:["4.1.2"],a11y_no_interactive_element_to_noninteractive_role:["4.1.2"],a11y_no_noninteractive_element_interactions:["4.1.2"],a11y_no_noninteractive_element_to_interactive_role:["4.1.2"],a11y_no_static_element_interactions:["4.1.2"],a11y_positive_tabindex:["2.4.3"],a11y_role_has_required_aria_props:["4.1.2"],a11y_role_supports_aria_props:["4.1.2"],a11y_role_supports_aria_props_implicit:["4.1.2"],a11y_unknown_aria_attribute:["4.1.2"],a11y_unknown_role:["4.1.2"]},h2={a:["2.1.1"],area:["1.1.1"],html:["3.1.1"],iframe:["4.1.2"],img:["1.1.1"],input:["1.1.1"],object:["1.1.1"]};function _2(e,t){if(e!=="a11y_missing_attribute")return m2[e];let r=/^`<([a-z]+)/.exec(t)?.[1];return r?h2[r]:void 0}var b2="svelte/";function JX(e,t,r){let{warnings:i,ast:s}=x2(e),a=[];for(let p of i){let u=_2(p.code,p.message);if(!u||!p.position||p.code==="a11y_incorrect_aria_attribute_type_boolean"&&/^aria-hidden$/i.test(e.slice(p.position[0],p.position[1]).trim()))continue;let[d,m]=bk(p.message);a.push({range:{start:p.position[0],end:p.position[1]},criteria:u,ruleId:b2+p.code,layer:"check",severity:"warning",message:d,explanation:d,helpUrl:m??`https://svelte.dev/e/${p.code}`})}let n=g2(s,e,t);return n.stylesheetColors=s.css!==null&&pd(s.css.content.styles),dd(a,n,{theme:r})}var _k=["Component","SvelteComponent","SvelteElement","SvelteSelf","SlotElement"],y2=["Fragment","Text","ExpressionTag","HtmlTag","Comment","RegularElement",..._k];function g2(e,t,r){let i={text:!1,elements:[]},s=(a,n)=>{if(a.type==="Text"&&typeof a.data=="string"&&a.data.trim()&&(i.text=!0,_c(n,a.data)),(a.type==="ExpressionTag"||a.type==="HtmlTag")&&(i.text=!0,_c(n,!0)),a.type==="RegularElement"||_k.includes(a.type)){let p=a.start,u=a.name,d=a.attributes,m=w2(a),h=a.type==="Component"?ud(u,v=>m.get(v.toLowerCase()),r):void 0,_={tag:h??u,attributes:m,range:{start:p,end:v2(t,a)},parent:n};h&&(_.component=u),d.some(v=>["ClassDirective","StyleDirective","SpreadAttribute"].includes(v.type))&&(_.boundStyle=!0),d.some(v=>v.type==="SpreadAttribute")&&(_.open=!0),a.type==="RegularElement"||h?i.elements.push(_):n&&(n.uncertainContent=!0),n=_}n&&!y2.includes(a.type)&&(n.uncertainContent=!0),a.type==="Fragment"&&a.nodes.forEach(p=>s(p,n));for(let p of Object.values(a))p&&typeof p=="object"&&p.type==="Fragment"&&s(p,n)};return s(e.fragment),i}function v2(e,t){let i=t.start+1+t.name.length,s=Math.max(i,...t.attributes.map(n=>typeof n.end=="number"?n.end:0)),a=e.indexOf(">",s);return a!==-1&&a<t.end?a+1:i}function w2(e){let t=new Map;for(let r of e.attributes){if(r.type!=="Attribute")continue;let i=r.value,[s]=Array.isArray(i)?i:[],a=Array.isArray(i)&&i.length===1&&s.type==="Text"?s.data:!0;t.set(r.name.toLowerCase(),a)}return t}function x2(e){try{let{warnings:t,ast:r}=hk(e,{generate:!1,modernAst:!0,experimental:{async:!0}});return{warnings:t,ast:r}}catch(t){if(t.name!=="CompileError")throw t;let{start:r,message:i}=t;throw new md(r?`${r.line}:${r.column+1}`:"an unknown position",bk(i)[0])}}function bk(e){let t=e.lastIndexOf(`
|
|
217
|
+
https://`);return t===-1?[e,void 0]:[e.slice(0,t),e.slice(t+1)]}export{h2 as MISSING_ATTRIBUTE_CRITERIA,m2 as WARNING_CRITERIA,JX as checkSvelte,_2 as criteriaOf};
|