@nil-/xit 0.1.23 → 0.1.25

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/assets/bundler.js CHANGED
@@ -1,4 +1,4 @@
1
- var iI=Object.defineProperty;var eI=Bg=>{throw TypeError(Bg)};var II=(Bg,ag,Ig)=>ag in Bg?iI(Bg,ag,{enumerable:!0,configurable:!0,writable:!0,value:Ig}):Bg[ag]=Ig;var rg=(Bg,ag,Ig)=>II(Bg,typeof ag!="symbol"?ag+"":ag,Ig),Tg=(Bg,ag,Ig)=>ag.has(Bg)||eI("Cannot "+Ig);var tg=(Bg,ag,Ig)=>(Tg(Bg,ag,"read from private field"),Ig?Ig.call(Bg):ag.get(Bg)),Rg=(Bg,ag,Ig)=>ag.has(Bg)?eI("Cannot add the same private member more than once"):ag instanceof WeakSet?ag.add(Bg):ag.set(Bg,Ig),cg=(Bg,ag,Ig,mg)=>(Tg(Bg,ag,"write to private field"),mg?mg.call(Bg,Ig):ag.set(Bg,Ig),Ig),Og=(Bg,ag,Ig)=>(Tg(Bg,ag,"access private method"),Ig);(function(){"use strict";var Bg,Pg,Ig,mg,Ng,Sg,Gg,lg,jg,Jg,bg,Vg;let Service$1=(jg=class{constructor({host:AA,port:tA}){Rg(this,Bg);Rg(this,Ig);Rg(this,mg);Rg(this,Ng);Rg(this,Sg);Rg(this,Gg);Rg(this,lg);cg(this,Gg,`${AA??"localhost"}${tA!=null?`:${tA}`:""}`),cg(this,Ig,0),cg(this,mg,null),cg(this,Ng,null),cg(this,Sg,null),cg(this,lg,null)}on_message(AA){cg(this,Sg,AA)}on_connect(AA){cg(this,mg,AA)}on_disconnect(AA){cg(this,Ng,AA)}start(){tg(this,lg)==null&&tg(this,Ig)!==1&&tg(this,Ig)!==3&&(cg(this,lg,new WebSocket(`ws://${tg(this,Gg)}`)),tg(this,lg).binaryType="arraybuffer",tg(this,lg).onopen=()=>{tg(this,Ig)==3?this.stop():(cg(this,Ig,1),tg(this,mg)&&tg(this,mg).call(this,tg(this,Gg)))},tg(this,lg).onclose=()=>{tg(this,Ig)===1&&(tg(this,Ng)&&tg(this,Ng).call(this,tg(this,Gg)),cg(this,Ig,2),Og(this,Bg,Pg).call(this))},tg(this,lg).onerror=()=>{tg(this,Ig)!==1&&tg(this,Ig)!==3?(cg(this,Ig,2),Og(this,Bg,Pg).call(this)):tg(this,Ig)===3&&this.stop()},tg(this,lg).onmessage=AA=>{tg(this,Sg)&&tg(this,Sg).call(this,tg(this,Gg),new Uint8Array(AA.data))})}stop(){cg(this,Ig,3),tg(this,lg)!=null&&tg(this,lg).readyState!==WebSocket.CONNECTING&&(tg(this,lg).close(),cg(this,lg,null))}restart(){cg(this,Ig,0)}publish(AA){tg(this,lg)!=null&&tg(this,Ig)==1&&tg(this,lg).send(AA)}send(AA,tA){AA===tg(this,Gg)&&this.publish(tA)}},Bg=new WeakSet,Pg=function(){tg(this,lg)!=null&&(tg(this,lg).close(),cg(this,lg,null)),setTimeout(()=>this.start(),1e3)},Ig=new WeakMap,mg=new WeakMap,Ng=new WeakMap,Sg=new WeakMap,Gg=new WeakMap,lg=new WeakMap,jg);const header=eA=>{const AA=new Uint8Array(4);return new DataView(AA.buffer).setUint32(0,eA,!1),AA},concat=eA=>{const AA=new Uint8Array(eA.reduce((gA,iA)=>gA+iA.length,0));let tA=0;for(const gA of eA)AA.set(gA,tA),tA+=gA.length;return AA},service_fetch=async(eA,AA,tA)=>new Promise((gA,iA)=>{const IA=new Service$1(eA),BA=setTimeout(()=>{IA.stop(),iA("timed out, cancelled")},2500);IA.on_connect(()=>IA.publish(AA)),IA.on_message((sA,CA)=>{const oA=new DataView(CA.buffer).getUint32(0,!1),QA=CA.slice(4),EA=tA(oA,QA);EA!=null&&(clearTimeout(BA),IA.stop(),gA(EA))}),IA.start()});var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(eA){return eA&&eA.__esModule&&Object.prototype.hasOwnProperty.call(eA,"default")?eA.default:eA}var indexLight={exports:{}},indexMinimal={},minimal={},aspromise=asPromise$1;function asPromise$1(eA,AA){for(var tA=new Array(arguments.length-1),gA=0,iA=2,IA=!0;iA<arguments.length;)tA[gA++]=arguments[iA++];return new Promise(function(sA,CA){tA[gA]=function(QA){if(IA)if(IA=!1,QA)CA(QA);else{for(var EA=new Array(arguments.length-1),rA=0;rA<EA.length;)EA[rA++]=arguments[rA];sA.apply(null,EA)}};try{eA.apply(AA||null,tA)}catch(oA){IA&&(IA=!1,CA(oA))}})}var base64$1={};(function(eA){var AA=eA;AA.length=function(sA){var CA=sA.length;if(!CA)return 0;for(var oA=0;--CA%4>1&&sA.charAt(CA)==="=";)++oA;return Math.ceil(sA.length*3)/4-oA};for(var tA=new Array(64),gA=new Array(123),iA=0;iA<64;)gA[tA[iA]=iA<26?iA+65:iA<52?iA+71:iA<62?iA-4:iA-59|43]=iA++;AA.encode=function(sA,CA,oA){for(var QA=null,EA=[],rA=0,lA=0,uA;CA<oA;){var cA=sA[CA++];switch(lA){case 0:EA[rA++]=tA[cA>>2],uA=(cA&3)<<4,lA=1;break;case 1:EA[rA++]=tA[uA|cA>>4],uA=(cA&15)<<2,lA=2;break;case 2:EA[rA++]=tA[uA|cA>>6],EA[rA++]=tA[cA&63],lA=0;break}rA>8191&&((QA||(QA=[])).push(String.fromCharCode.apply(String,EA)),rA=0)}return lA&&(EA[rA++]=tA[uA],EA[rA++]=61,lA===1&&(EA[rA++]=61)),QA?(rA&&QA.push(String.fromCharCode.apply(String,EA.slice(0,rA))),QA.join("")):String.fromCharCode.apply(String,EA.slice(0,rA))};var IA="invalid encoding";AA.decode=function(sA,CA,oA){for(var QA=oA,EA=0,rA,lA=0;lA<sA.length;){var uA=sA.charCodeAt(lA++);if(uA===61&&EA>1)break;if((uA=gA[uA])===void 0)throw Error(IA);switch(EA){case 0:rA=uA,EA=1;break;case 1:CA[oA++]=rA<<2|(uA&48)>>4,rA=uA,EA=2;break;case 2:CA[oA++]=(rA&15)<<4|(uA&60)>>2,rA=uA,EA=3;break;case 3:CA[oA++]=(rA&3)<<6|uA,EA=0;break}}if(EA===1)throw Error(IA);return oA-QA},AA.test=function(sA){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(sA)}})(base64$1);var eventemitter=EventEmitter;function EventEmitter(){this._listeners={}}EventEmitter.prototype.on=function(AA,tA,gA){return(this._listeners[AA]||(this._listeners[AA]=[])).push({fn:tA,ctx:gA||this}),this},EventEmitter.prototype.off=function(AA,tA){if(AA===void 0)this._listeners={};else if(tA===void 0)this._listeners[AA]=[];else for(var gA=this._listeners[AA],iA=0;iA<gA.length;)gA[iA].fn===tA?gA.splice(iA,1):++iA;return this},EventEmitter.prototype.emit=function(AA){var tA=this._listeners[AA];if(tA){for(var gA=[],iA=1;iA<arguments.length;)gA.push(arguments[iA++]);for(iA=0;iA<tA.length;)tA[iA].fn.apply(tA[iA++].ctx,gA)}return this};var float=factory(factory);function factory(eA){return typeof Float32Array<"u"?function(){var AA=new Float32Array([-0]),tA=new Uint8Array(AA.buffer),gA=tA[3]===128;function iA(CA,oA,QA){AA[0]=CA,oA[QA]=tA[0],oA[QA+1]=tA[1],oA[QA+2]=tA[2],oA[QA+3]=tA[3]}function IA(CA,oA,QA){AA[0]=CA,oA[QA]=tA[3],oA[QA+1]=tA[2],oA[QA+2]=tA[1],oA[QA+3]=tA[0]}eA.writeFloatLE=gA?iA:IA,eA.writeFloatBE=gA?IA:iA;function BA(CA,oA){return tA[0]=CA[oA],tA[1]=CA[oA+1],tA[2]=CA[oA+2],tA[3]=CA[oA+3],AA[0]}function sA(CA,oA){return tA[3]=CA[oA],tA[2]=CA[oA+1],tA[1]=CA[oA+2],tA[0]=CA[oA+3],AA[0]}eA.readFloatLE=gA?BA:sA,eA.readFloatBE=gA?sA:BA}():function(){function AA(gA,iA,IA,BA){var sA=iA<0?1:0;if(sA&&(iA=-iA),iA===0)gA(1/iA>0?0:2147483648,IA,BA);else if(isNaN(iA))gA(2143289344,IA,BA);else if(iA>34028234663852886e22)gA((sA<<31|2139095040)>>>0,IA,BA);else if(iA<11754943508222875e-54)gA((sA<<31|Math.round(iA/1401298464324817e-60))>>>0,IA,BA);else{var CA=Math.floor(Math.log(iA)/Math.LN2),oA=Math.round(iA*Math.pow(2,-CA)*8388608)&8388607;gA((sA<<31|CA+127<<23|oA)>>>0,IA,BA)}}eA.writeFloatLE=AA.bind(null,writeUintLE),eA.writeFloatBE=AA.bind(null,writeUintBE);function tA(gA,iA,IA){var BA=gA(iA,IA),sA=(BA>>31)*2+1,CA=BA>>>23&255,oA=BA&8388607;return CA===255?oA?NaN:sA*(1/0):CA===0?sA*1401298464324817e-60*oA:sA*Math.pow(2,CA-150)*(oA+8388608)}eA.readFloatLE=tA.bind(null,readUintLE),eA.readFloatBE=tA.bind(null,readUintBE)}(),typeof Float64Array<"u"?function(){var AA=new Float64Array([-0]),tA=new Uint8Array(AA.buffer),gA=tA[7]===128;function iA(CA,oA,QA){AA[0]=CA,oA[QA]=tA[0],oA[QA+1]=tA[1],oA[QA+2]=tA[2],oA[QA+3]=tA[3],oA[QA+4]=tA[4],oA[QA+5]=tA[5],oA[QA+6]=tA[6],oA[QA+7]=tA[7]}function IA(CA,oA,QA){AA[0]=CA,oA[QA]=tA[7],oA[QA+1]=tA[6],oA[QA+2]=tA[5],oA[QA+3]=tA[4],oA[QA+4]=tA[3],oA[QA+5]=tA[2],oA[QA+6]=tA[1],oA[QA+7]=tA[0]}eA.writeDoubleLE=gA?iA:IA,eA.writeDoubleBE=gA?IA:iA;function BA(CA,oA){return tA[0]=CA[oA],tA[1]=CA[oA+1],tA[2]=CA[oA+2],tA[3]=CA[oA+3],tA[4]=CA[oA+4],tA[5]=CA[oA+5],tA[6]=CA[oA+6],tA[7]=CA[oA+7],AA[0]}function sA(CA,oA){return tA[7]=CA[oA],tA[6]=CA[oA+1],tA[5]=CA[oA+2],tA[4]=CA[oA+3],tA[3]=CA[oA+4],tA[2]=CA[oA+5],tA[1]=CA[oA+6],tA[0]=CA[oA+7],AA[0]}eA.readDoubleLE=gA?BA:sA,eA.readDoubleBE=gA?sA:BA}():function(){function AA(gA,iA,IA,BA,sA,CA){var oA=BA<0?1:0;if(oA&&(BA=-BA),BA===0)gA(0,sA,CA+iA),gA(1/BA>0?0:2147483648,sA,CA+IA);else if(isNaN(BA))gA(0,sA,CA+iA),gA(2146959360,sA,CA+IA);else if(BA>17976931348623157e292)gA(0,sA,CA+iA),gA((oA<<31|2146435072)>>>0,sA,CA+IA);else{var QA;if(BA<22250738585072014e-324)QA=BA/5e-324,gA(QA>>>0,sA,CA+iA),gA((oA<<31|QA/4294967296)>>>0,sA,CA+IA);else{var EA=Math.floor(Math.log(BA)/Math.LN2);EA===1024&&(EA=1023),QA=BA*Math.pow(2,-EA),gA(QA*4503599627370496>>>0,sA,CA+iA),gA((oA<<31|EA+1023<<20|QA*1048576&1048575)>>>0,sA,CA+IA)}}}eA.writeDoubleLE=AA.bind(null,writeUintLE,0,4),eA.writeDoubleBE=AA.bind(null,writeUintBE,4,0);function tA(gA,iA,IA,BA,sA){var CA=gA(BA,sA+iA),oA=gA(BA,sA+IA),QA=(oA>>31)*2+1,EA=oA>>>20&2047,rA=4294967296*(oA&1048575)+CA;return EA===2047?rA?NaN:QA*(1/0):EA===0?QA*5e-324*rA:QA*Math.pow(2,EA-1075)*(rA+4503599627370496)}eA.readDoubleLE=tA.bind(null,readUintLE,0,4),eA.readDoubleBE=tA.bind(null,readUintBE,4,0)}(),eA}function writeUintLE(eA,AA,tA){AA[tA]=eA&255,AA[tA+1]=eA>>>8&255,AA[tA+2]=eA>>>16&255,AA[tA+3]=eA>>>24}function writeUintBE(eA,AA,tA){AA[tA]=eA>>>24,AA[tA+1]=eA>>>16&255,AA[tA+2]=eA>>>8&255,AA[tA+3]=eA&255}function readUintLE(eA,AA){return(eA[AA]|eA[AA+1]<<8|eA[AA+2]<<16|eA[AA+3]<<24)>>>0}function readUintBE(eA,AA){return(eA[AA]<<24|eA[AA+1]<<16|eA[AA+2]<<8|eA[AA+3])>>>0}var inquire_1=inquire$1;function inquire$1(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(eA){}return null}var utf8$2={};(function(eA){var AA=eA;AA.length=function(gA){for(var iA=0,IA=0,BA=0;BA<gA.length;++BA)IA=gA.charCodeAt(BA),IA<128?iA+=1:IA<2048?iA+=2:(IA&64512)===55296&&(gA.charCodeAt(BA+1)&64512)===56320?(++BA,iA+=4):iA+=3;return iA},AA.read=function(gA,iA,IA){var BA=IA-iA;if(BA<1)return"";for(var sA=null,CA=[],oA=0,QA;iA<IA;)QA=gA[iA++],QA<128?CA[oA++]=QA:QA>191&&QA<224?CA[oA++]=(QA&31)<<6|gA[iA++]&63:QA>239&&QA<365?(QA=((QA&7)<<18|(gA[iA++]&63)<<12|(gA[iA++]&63)<<6|gA[iA++]&63)-65536,CA[oA++]=55296+(QA>>10),CA[oA++]=56320+(QA&1023)):CA[oA++]=(QA&15)<<12|(gA[iA++]&63)<<6|gA[iA++]&63,oA>8191&&((sA||(sA=[])).push(String.fromCharCode.apply(String,CA)),oA=0);return sA?(oA&&sA.push(String.fromCharCode.apply(String,CA.slice(0,oA))),sA.join("")):String.fromCharCode.apply(String,CA.slice(0,oA))},AA.write=function(gA,iA,IA){for(var BA=IA,sA,CA,oA=0;oA<gA.length;++oA)sA=gA.charCodeAt(oA),sA<128?iA[IA++]=sA:sA<2048?(iA[IA++]=sA>>6|192,iA[IA++]=sA&63|128):(sA&64512)===55296&&((CA=gA.charCodeAt(oA+1))&64512)===56320?(sA=65536+((sA&1023)<<10)+(CA&1023),++oA,iA[IA++]=sA>>18|240,iA[IA++]=sA>>12&63|128,iA[IA++]=sA>>6&63|128,iA[IA++]=sA&63|128):(iA[IA++]=sA>>12|224,iA[IA++]=sA>>6&63|128,iA[IA++]=sA&63|128);return IA-BA}})(utf8$2);var pool_1=pool;function pool(eA,AA,tA){var gA=tA||8192,iA=gA>>>1,IA=null,BA=gA;return function(CA){if(CA<1||CA>iA)return eA(CA);BA+CA>gA&&(IA=eA(gA),BA=0);var oA=AA.call(IA,BA,BA+=CA);return BA&7&&(BA=(BA|7)+1),oA}}var longbits,hasRequiredLongbits;function requireLongbits(){if(hasRequiredLongbits)return longbits;hasRequiredLongbits=1,longbits=AA;var eA=requireMinimal();function AA(IA,BA){this.lo=IA>>>0,this.hi=BA>>>0}var tA=AA.zero=new AA(0,0);tA.toNumber=function(){return 0},tA.zzEncode=tA.zzDecode=function(){return this},tA.length=function(){return 1};var gA=AA.zeroHash="\0\0\0\0\0\0\0\0";AA.fromNumber=function(BA){if(BA===0)return tA;var sA=BA<0;sA&&(BA=-BA);var CA=BA>>>0,oA=(BA-CA)/4294967296>>>0;return sA&&(oA=~oA>>>0,CA=~CA>>>0,++CA>4294967295&&(CA=0,++oA>4294967295&&(oA=0))),new AA(CA,oA)},AA.from=function(BA){if(typeof BA=="number")return AA.fromNumber(BA);if(eA.isString(BA))if(eA.Long)BA=eA.Long.fromString(BA);else return AA.fromNumber(parseInt(BA,10));return BA.low||BA.high?new AA(BA.low>>>0,BA.high>>>0):tA},AA.prototype.toNumber=function(BA){if(!BA&&this.hi>>>31){var sA=~this.lo+1>>>0,CA=~this.hi>>>0;return sA||(CA=CA+1>>>0),-(sA+CA*4294967296)}return this.lo+this.hi*4294967296},AA.prototype.toLong=function(BA){return eA.Long?new eA.Long(this.lo|0,this.hi|0,!!BA):{low:this.lo|0,high:this.hi|0,unsigned:!!BA}};var iA=String.prototype.charCodeAt;return AA.fromHash=function(BA){return BA===gA?tA:new AA((iA.call(BA,0)|iA.call(BA,1)<<8|iA.call(BA,2)<<16|iA.call(BA,3)<<24)>>>0,(iA.call(BA,4)|iA.call(BA,5)<<8|iA.call(BA,6)<<16|iA.call(BA,7)<<24)>>>0)},AA.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},AA.prototype.zzEncode=function(){var BA=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^BA)>>>0,this.lo=(this.lo<<1^BA)>>>0,this},AA.prototype.zzDecode=function(){var BA=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^BA)>>>0,this.hi=(this.hi>>>1^BA)>>>0,this},AA.prototype.length=function(){var BA=this.lo,sA=(this.lo>>>28|this.hi<<4)>>>0,CA=this.hi>>>24;return CA===0?sA===0?BA<16384?BA<128?1:2:BA<2097152?3:4:sA<16384?sA<128?5:6:sA<2097152?7:8:CA<128?9:10},longbits}var hasRequiredMinimal;function requireMinimal(){return hasRequiredMinimal||(hasRequiredMinimal=1,function(eA){var AA=eA;AA.asPromise=aspromise,AA.base64=base64$1,AA.EventEmitter=eventemitter,AA.float=float,AA.inquire=inquire_1,AA.utf8=utf8$2,AA.pool=pool_1,AA.LongBits=requireLongbits(),AA.isNode=!!(typeof commonjsGlobal<"u"&&commonjsGlobal&&commonjsGlobal.process&&commonjsGlobal.process.versions&&commonjsGlobal.process.versions.node),AA.global=AA.isNode&&commonjsGlobal||typeof window<"u"&&window||typeof self<"u"&&self||commonjsGlobal,AA.emptyArray=Object.freeze?Object.freeze([]):[],AA.emptyObject=Object.freeze?Object.freeze({}):{},AA.isInteger=Number.isInteger||function(IA){return typeof IA=="number"&&isFinite(IA)&&Math.floor(IA)===IA},AA.isString=function(IA){return typeof IA=="string"||IA instanceof String},AA.isObject=function(IA){return IA&&typeof IA=="object"},AA.isset=AA.isSet=function(IA,BA){var sA=IA[BA];return sA!=null&&IA.hasOwnProperty(BA)?typeof sA!="object"||(Array.isArray(sA)?sA.length:Object.keys(sA).length)>0:!1},AA.Buffer=function(){try{var iA=AA.inquire("buffer").Buffer;return iA.prototype.utf8Write?iA:null}catch{return null}}(),AA._Buffer_from=null,AA._Buffer_allocUnsafe=null,AA.newBuffer=function(IA){return typeof IA=="number"?AA.Buffer?AA._Buffer_allocUnsafe(IA):new AA.Array(IA):AA.Buffer?AA._Buffer_from(IA):typeof Uint8Array>"u"?IA:new Uint8Array(IA)},AA.Array=typeof Uint8Array<"u"?Uint8Array:Array,AA.Long=AA.global.dcodeIO&&AA.global.dcodeIO.Long||AA.global.Long||AA.inquire("long"),AA.key2Re=/^true|false|0|1$/,AA.key32Re=/^-?(?:0|[1-9][0-9]*)$/,AA.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,AA.longToHash=function(IA){return IA?AA.LongBits.from(IA).toHash():AA.LongBits.zeroHash},AA.longFromHash=function(IA,BA){var sA=AA.LongBits.fromHash(IA);return AA.Long?AA.Long.fromBits(sA.lo,sA.hi,BA):sA.toNumber(!!BA)};function tA(iA,IA,BA){for(var sA=Object.keys(IA),CA=0;CA<sA.length;++CA)(iA[sA[CA]]===void 0||!BA)&&(iA[sA[CA]]=IA[sA[CA]]);return iA}AA.merge=tA,AA.lcFirst=function(IA){return IA.charAt(0).toLowerCase()+IA.substring(1)};function gA(iA){function IA(BA,sA){if(!(this instanceof IA))return new IA(BA,sA);Object.defineProperty(this,"message",{get:function(){return BA}}),Error.captureStackTrace?Error.captureStackTrace(this,IA):Object.defineProperty(this,"stack",{value:new Error().stack||""}),sA&&tA(this,sA)}return IA.prototype=Object.create(Error.prototype,{constructor:{value:IA,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return iA},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),IA}AA.newError=gA,AA.ProtocolError=gA("ProtocolError"),AA.oneOfGetter=function(IA){for(var BA={},sA=0;sA<IA.length;++sA)BA[IA[sA]]=1;return function(){for(var CA=Object.keys(this),oA=CA.length-1;oA>-1;--oA)if(BA[CA[oA]]===1&&this[CA[oA]]!==void 0&&this[CA[oA]]!==null)return CA[oA]}},AA.oneOfSetter=function(IA){return function(BA){for(var sA=0;sA<IA.length;++sA)IA[sA]!==BA&&delete this[IA[sA]]}},AA.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},AA._configure=function(){var iA=AA.Buffer;if(!iA){AA._Buffer_from=AA._Buffer_allocUnsafe=null;return}AA._Buffer_from=iA.from!==Uint8Array.from&&iA.from||function(BA,sA){return new iA(BA,sA)},AA._Buffer_allocUnsafe=iA.allocUnsafe||function(BA){return new iA(BA)}}}(minimal)),minimal}var writer=Writer$1,util$6=requireMinimal(),BufferWriter$1,LongBits$1=util$6.LongBits,base64=util$6.base64,utf8$1=util$6.utf8;function Op(eA,AA,tA){this.fn=eA,this.len=AA,this.next=void 0,this.val=tA}function noop(){}function State(eA){this.head=eA.head,this.tail=eA.tail,this.len=eA.len,this.next=eA.states}function Writer$1(){this.len=0,this.head=new Op(noop,0,0),this.tail=this.head,this.states=null}var create$1=function eA(){return util$6.Buffer?function(){return(Writer$1.create=function(){return new BufferWriter$1})()}:function(){return new Writer$1}};Writer$1.create=create$1(),Writer$1.alloc=function eA(AA){return new util$6.Array(AA)},util$6.Array!==Array&&(Writer$1.alloc=util$6.pool(Writer$1.alloc,util$6.Array.prototype.subarray)),Writer$1.prototype._push=function eA(AA,tA,gA){return this.tail=this.tail.next=new Op(AA,tA,gA),this.len+=tA,this};function writeByte(eA,AA,tA){AA[tA]=eA&255}function writeVarint32(eA,AA,tA){for(;eA>127;)AA[tA++]=eA&127|128,eA>>>=7;AA[tA]=eA}function VarintOp(eA,AA){this.len=eA,this.next=void 0,this.val=AA}VarintOp.prototype=Object.create(Op.prototype),VarintOp.prototype.fn=writeVarint32,Writer$1.prototype.uint32=function eA(AA){return this.len+=(this.tail=this.tail.next=new VarintOp((AA=AA>>>0)<128?1:AA<16384?2:AA<2097152?3:AA<268435456?4:5,AA)).len,this},Writer$1.prototype.int32=function eA(AA){return AA<0?this._push(writeVarint64,10,LongBits$1.fromNumber(AA)):this.uint32(AA)},Writer$1.prototype.sint32=function eA(AA){return this.uint32((AA<<1^AA>>31)>>>0)};function writeVarint64(eA,AA,tA){for(;eA.hi;)AA[tA++]=eA.lo&127|128,eA.lo=(eA.lo>>>7|eA.hi<<25)>>>0,eA.hi>>>=7;for(;eA.lo>127;)AA[tA++]=eA.lo&127|128,eA.lo=eA.lo>>>7;AA[tA++]=eA.lo}Writer$1.prototype.uint64=function eA(AA){var tA=LongBits$1.from(AA);return this._push(writeVarint64,tA.length(),tA)},Writer$1.prototype.int64=Writer$1.prototype.uint64,Writer$1.prototype.sint64=function eA(AA){var tA=LongBits$1.from(AA).zzEncode();return this._push(writeVarint64,tA.length(),tA)},Writer$1.prototype.bool=function eA(AA){return this._push(writeByte,1,AA?1:0)};function writeFixed32(eA,AA,tA){AA[tA]=eA&255,AA[tA+1]=eA>>>8&255,AA[tA+2]=eA>>>16&255,AA[tA+3]=eA>>>24}Writer$1.prototype.fixed32=function eA(AA){return this._push(writeFixed32,4,AA>>>0)},Writer$1.prototype.sfixed32=Writer$1.prototype.fixed32,Writer$1.prototype.fixed64=function eA(AA){var tA=LongBits$1.from(AA);return this._push(writeFixed32,4,tA.lo)._push(writeFixed32,4,tA.hi)},Writer$1.prototype.sfixed64=Writer$1.prototype.fixed64,Writer$1.prototype.float=function eA(AA){return this._push(util$6.float.writeFloatLE,4,AA)},Writer$1.prototype.double=function eA(AA){return this._push(util$6.float.writeDoubleLE,8,AA)};var writeBytes=util$6.Array.prototype.set?function eA(AA,tA,gA){tA.set(AA,gA)}:function eA(AA,tA,gA){for(var iA=0;iA<AA.length;++iA)tA[gA+iA]=AA[iA]};Writer$1.prototype.bytes=function eA(AA){var tA=AA.length>>>0;if(!tA)return this._push(writeByte,1,0);if(util$6.isString(AA)){var gA=Writer$1.alloc(tA=base64.length(AA));base64.decode(AA,gA,0),AA=gA}return this.uint32(tA)._push(writeBytes,tA,AA)},Writer$1.prototype.string=function eA(AA){var tA=utf8$1.length(AA);return tA?this.uint32(tA)._push(utf8$1.write,tA,AA):this._push(writeByte,1,0)},Writer$1.prototype.fork=function eA(){return this.states=new State(this),this.head=this.tail=new Op(noop,0,0),this.len=0,this},Writer$1.prototype.reset=function eA(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new Op(noop,0,0),this.len=0),this},Writer$1.prototype.ldelim=function eA(){var AA=this.head,tA=this.tail,gA=this.len;return this.reset().uint32(gA),gA&&(this.tail.next=AA.next,this.tail=tA,this.len+=gA),this},Writer$1.prototype.finish=function eA(){for(var AA=this.head.next,tA=this.constructor.alloc(this.len),gA=0;AA;)AA.fn(AA.val,tA,gA),gA+=AA.len,AA=AA.next;return tA},Writer$1._configure=function(eA){BufferWriter$1=eA,Writer$1.create=create$1(),BufferWriter$1._configure()};var writer_buffer=BufferWriter,Writer=writer;(BufferWriter.prototype=Object.create(Writer.prototype)).constructor=BufferWriter;var util$5=requireMinimal();function BufferWriter(){Writer.call(this)}BufferWriter._configure=function(){BufferWriter.alloc=util$5._Buffer_allocUnsafe,BufferWriter.writeBytesBuffer=util$5.Buffer&&util$5.Buffer.prototype instanceof Uint8Array&&util$5.Buffer.prototype.set.name==="set"?function(AA,tA,gA){tA.set(AA,gA)}:function(AA,tA,gA){if(AA.copy)AA.copy(tA,gA,0,AA.length);else for(var iA=0;iA<AA.length;)tA[gA++]=AA[iA++]}},BufferWriter.prototype.bytes=function eA(AA){util$5.isString(AA)&&(AA=util$5._Buffer_from(AA,"base64"));var tA=AA.length>>>0;return this.uint32(tA),tA&&this._push(BufferWriter.writeBytesBuffer,tA,AA),this};function writeStringBuffer(eA,AA,tA){eA.length<40?util$5.utf8.write(eA,AA,tA):AA.utf8Write?AA.utf8Write(eA,tA):AA.write(eA,tA)}BufferWriter.prototype.string=function eA(AA){var tA=util$5.Buffer.byteLength(AA);return this.uint32(tA),tA&&this._push(writeStringBuffer,tA,AA),this},BufferWriter._configure();var reader=Reader$1,util$4=requireMinimal(),BufferReader$1,LongBits=util$4.LongBits,utf8=util$4.utf8;function indexOutOfRange(eA,AA){return RangeError("index out of range: "+eA.pos+" + "+(AA||1)+" > "+eA.len)}function Reader$1(eA){this.buf=eA,this.pos=0,this.len=eA.length}var create_array=typeof Uint8Array<"u"?function eA(AA){if(AA instanceof Uint8Array||Array.isArray(AA))return new Reader$1(AA);throw Error("illegal buffer")}:function eA(AA){if(Array.isArray(AA))return new Reader$1(AA);throw Error("illegal buffer")},create=function eA(){return util$4.Buffer?function(tA){return(Reader$1.create=function(iA){return util$4.Buffer.isBuffer(iA)?new BufferReader$1(iA):create_array(iA)})(tA)}:create_array};Reader$1.create=create(),Reader$1.prototype._slice=util$4.Array.prototype.subarray||util$4.Array.prototype.slice,Reader$1.prototype.uint32=function eA(){var AA=4294967295;return function(){if(AA=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(AA=(AA|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(AA=(AA|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(AA=(AA|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(AA=(AA|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return AA;if((this.pos+=5)>this.len)throw this.pos=this.len,indexOutOfRange(this,10);return AA}}(),Reader$1.prototype.int32=function eA(){return this.uint32()|0},Reader$1.prototype.sint32=function eA(){var AA=this.uint32();return AA>>>1^-(AA&1)|0};function readLongVarint(){var eA=new LongBits(0,0),AA=0;if(this.len-this.pos>4){for(;AA<4;++AA)if(eA.lo=(eA.lo|(this.buf[this.pos]&127)<<AA*7)>>>0,this.buf[this.pos++]<128)return eA;if(eA.lo=(eA.lo|(this.buf[this.pos]&127)<<28)>>>0,eA.hi=(eA.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return eA;AA=0}else{for(;AA<3;++AA){if(this.pos>=this.len)throw indexOutOfRange(this);if(eA.lo=(eA.lo|(this.buf[this.pos]&127)<<AA*7)>>>0,this.buf[this.pos++]<128)return eA}return eA.lo=(eA.lo|(this.buf[this.pos++]&127)<<AA*7)>>>0,eA}if(this.len-this.pos>4){for(;AA<5;++AA)if(eA.hi=(eA.hi|(this.buf[this.pos]&127)<<AA*7+3)>>>0,this.buf[this.pos++]<128)return eA}else for(;AA<5;++AA){if(this.pos>=this.len)throw indexOutOfRange(this);if(eA.hi=(eA.hi|(this.buf[this.pos]&127)<<AA*7+3)>>>0,this.buf[this.pos++]<128)return eA}throw Error("invalid varint encoding")}Reader$1.prototype.bool=function eA(){return this.uint32()!==0};function readFixed32_end(eA,AA){return(eA[AA-4]|eA[AA-3]<<8|eA[AA-2]<<16|eA[AA-1]<<24)>>>0}Reader$1.prototype.fixed32=function eA(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return readFixed32_end(this.buf,this.pos+=4)},Reader$1.prototype.sfixed32=function eA(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return readFixed32_end(this.buf,this.pos+=4)|0};function readFixed64(){if(this.pos+8>this.len)throw indexOutOfRange(this,8);return new LongBits(readFixed32_end(this.buf,this.pos+=4),readFixed32_end(this.buf,this.pos+=4))}Reader$1.prototype.float=function eA(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);var AA=util$4.float.readFloatLE(this.buf,this.pos);return this.pos+=4,AA},Reader$1.prototype.double=function eA(){if(this.pos+8>this.len)throw indexOutOfRange(this,4);var AA=util$4.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,AA},Reader$1.prototype.bytes=function eA(){var AA=this.uint32(),tA=this.pos,gA=this.pos+AA;if(gA>this.len)throw indexOutOfRange(this,AA);if(this.pos+=AA,Array.isArray(this.buf))return this.buf.slice(tA,gA);if(tA===gA){var iA=util$4.Buffer;return iA?iA.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,tA,gA)},Reader$1.prototype.string=function eA(){var AA=this.bytes();return utf8.read(AA,0,AA.length)},Reader$1.prototype.skip=function eA(AA){if(typeof AA=="number"){if(this.pos+AA>this.len)throw indexOutOfRange(this,AA);this.pos+=AA}else do if(this.pos>=this.len)throw indexOutOfRange(this);while(this.buf[this.pos++]&128);return this},Reader$1.prototype.skipType=function(eA){switch(eA){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(eA=this.uint32()&7)!==4;)this.skipType(eA);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+eA+" at offset "+this.pos)}return this},Reader$1._configure=function(eA){BufferReader$1=eA,Reader$1.create=create(),BufferReader$1._configure();var AA=util$4.Long?"toLong":"toNumber";util$4.merge(Reader$1.prototype,{int64:function(){return readLongVarint.call(this)[AA](!1)},uint64:function(){return readLongVarint.call(this)[AA](!0)},sint64:function(){return readLongVarint.call(this).zzDecode()[AA](!1)},fixed64:function(){return readFixed64.call(this)[AA](!0)},sfixed64:function(){return readFixed64.call(this)[AA](!1)}})};var reader_buffer=BufferReader,Reader=reader;(BufferReader.prototype=Object.create(Reader.prototype)).constructor=BufferReader;var util$3=requireMinimal();function BufferReader(eA){Reader.call(this,eA)}BufferReader._configure=function(){util$3.Buffer&&(BufferReader.prototype._slice=util$3.Buffer.prototype.slice)},BufferReader.prototype.string=function eA(){var AA=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+AA,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+AA,this.len))},BufferReader._configure();var rpc={},service$1=Service,util$2=requireMinimal();(Service.prototype=Object.create(util$2.EventEmitter.prototype)).constructor=Service;function Service(eA,AA,tA){if(typeof eA!="function")throw TypeError("rpcImpl must be a function");util$2.EventEmitter.call(this),this.rpcImpl=eA,this.requestDelimited=!!AA,this.responseDelimited=!!tA}Service.prototype.rpcCall=function eA(AA,tA,gA,iA,IA){if(!iA)throw TypeError("request must be specified");var BA=this;if(!IA)return util$2.asPromise(eA,BA,AA,tA,gA,iA);if(!BA.rpcImpl){setTimeout(function(){IA(Error("already ended"))},0);return}try{return BA.rpcImpl(AA,tA[BA.requestDelimited?"encodeDelimited":"encode"](iA).finish(),function(CA,oA){if(CA)return BA.emit("error",CA,AA),IA(CA);if(oA===null){BA.end(!0);return}if(!(oA instanceof gA))try{oA=gA[BA.responseDelimited?"decodeDelimited":"decode"](oA)}catch(QA){return BA.emit("error",QA,AA),IA(QA)}return BA.emit("data",oA,AA),IA(null,oA)})}catch(sA){BA.emit("error",sA,AA),setTimeout(function(){IA(sA)},0);return}},Service.prototype.end=function eA(AA){return this.rpcImpl&&(AA||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this},function(eA){var AA=eA;AA.Service=service$1}(rpc);var roots={};(function(eA){var AA=eA;AA.build="minimal",AA.Writer=writer,AA.BufferWriter=writer_buffer,AA.Reader=reader,AA.BufferReader=reader_buffer,AA.util=requireMinimal(),AA.rpc=rpc,AA.roots=roots,AA.configure=tA;function tA(){AA.util._configure(),AA.Writer._configure(AA.BufferWriter),AA.Reader._configure(AA.BufferReader)}tA()})(indexMinimal);var util$1={exports:{}},codegen_1=codegen;function codegen(eA,AA){typeof eA=="string"&&(AA=eA,eA=void 0);var tA=[];function gA(IA){if(typeof IA!="string"){var BA=iA();if(codegen.verbose&&console.log("codegen: "+BA),BA="return "+BA,IA){for(var sA=Object.keys(IA),CA=new Array(sA.length+1),oA=new Array(sA.length),QA=0;QA<sA.length;)CA[QA]=sA[QA],oA[QA]=IA[sA[QA++]];return CA[QA]=BA,Function.apply(null,CA).apply(null,oA)}return Function(BA)()}for(var EA=new Array(arguments.length-1),rA=0;rA<EA.length;)EA[rA]=arguments[++rA];if(rA=0,IA=IA.replace(/%([%dfijs])/g,function(uA,cA){var hA=EA[rA++];switch(cA){case"d":case"f":return String(Number(hA));case"i":return String(Math.floor(hA));case"j":return JSON.stringify(hA);case"s":return String(hA)}return"%"}),rA!==EA.length)throw Error("parameter count mismatch");return tA.push(IA),gA}function iA(IA){return"function "+(IA||AA||"")+"("+(eA&&eA.join(",")||"")+`){
1
+ var iI=Object.defineProperty;var eI=Bg=>{throw TypeError(Bg)};var II=(Bg,ag,Ig)=>ag in Bg?iI(Bg,ag,{enumerable:!0,configurable:!0,writable:!0,value:Ig}):Bg[ag]=Ig;var rg=(Bg,ag,Ig)=>II(Bg,typeof ag!="symbol"?ag+"":ag,Ig),Tg=(Bg,ag,Ig)=>ag.has(Bg)||eI("Cannot "+Ig);var tg=(Bg,ag,Ig)=>(Tg(Bg,ag,"read from private field"),Ig?Ig.call(Bg):ag.get(Bg)),Rg=(Bg,ag,Ig)=>ag.has(Bg)?eI("Cannot add the same private member more than once"):ag instanceof WeakSet?ag.add(Bg):ag.set(Bg,Ig),cg=(Bg,ag,Ig,mg)=>(Tg(Bg,ag,"write to private field"),mg?mg.call(Bg,Ig):ag.set(Bg,Ig),Ig),Og=(Bg,ag,Ig)=>(Tg(Bg,ag,"access private method"),Ig);(function(){"use strict";var Bg,Pg,Ig,mg,Ng,Sg,Gg,lg,jg,Jg,bg,Vg;let Service$1=(jg=class{constructor(AA){Rg(this,Bg);Rg(this,Ig);Rg(this,mg);Rg(this,Ng);Rg(this,Sg);Rg(this,Gg);Rg(this,lg);cg(this,Gg,AA),cg(this,Ig,0),cg(this,mg,null),cg(this,Ng,null),cg(this,Sg,null),cg(this,lg,null)}on_message(AA){cg(this,Sg,AA)}on_connect(AA){cg(this,mg,AA)}on_disconnect(AA){cg(this,Ng,AA)}start(){tg(this,lg)==null&&tg(this,Ig)!==1&&tg(this,Ig)!==3&&(cg(this,lg,new WebSocket(`ws://${tg(this,Gg)}`)),tg(this,lg).binaryType="arraybuffer",tg(this,lg).onopen=()=>{tg(this,Ig)==3?this.stop():(cg(this,Ig,1),tg(this,mg)&&tg(this,mg).call(this,tg(this,Gg)))},tg(this,lg).onclose=()=>{tg(this,Ig)===1&&(tg(this,Ng)&&tg(this,Ng).call(this,tg(this,Gg)),cg(this,Ig,2),Og(this,Bg,Pg).call(this))},tg(this,lg).onerror=()=>{tg(this,Ig)!==1&&tg(this,Ig)!==3?(cg(this,Ig,2),Og(this,Bg,Pg).call(this)):tg(this,Ig)===3&&this.stop()},tg(this,lg).onmessage=AA=>{tg(this,Sg)&&tg(this,Sg).call(this,tg(this,Gg),new Uint8Array(AA.data))})}stop(){cg(this,Ig,3),tg(this,lg)!=null&&tg(this,lg).readyState!==WebSocket.CONNECTING&&(tg(this,lg).close(),cg(this,lg,null))}restart(){cg(this,Ig,0)}publish(AA){tg(this,lg)!=null&&tg(this,Ig)==1&&tg(this,lg).send(AA)}send(AA,tA){AA===tg(this,Gg)&&this.publish(tA)}},Bg=new WeakSet,Pg=function(){tg(this,lg)!=null&&(tg(this,lg).close(),cg(this,lg,null)),setTimeout(()=>this.start(),1e3)},Ig=new WeakMap,mg=new WeakMap,Ng=new WeakMap,Sg=new WeakMap,Gg=new WeakMap,lg=new WeakMap,jg);const header=eA=>{const AA=new Uint8Array(4);return new DataView(AA.buffer).setUint32(0,eA,!1),AA},concat=eA=>{const AA=new Uint8Array(eA.reduce((gA,iA)=>gA+iA.length,0));let tA=0;for(const gA of eA)AA.set(gA,tA),tA+=gA.length;return AA},service_fetch=async(eA,AA,tA,gA)=>new Promise((iA,IA)=>{const BA=new Service$1(eA),sA=setTimeout(()=>{BA.stop(),IA("timed out, cancelled")},2500),CA=concat([header(AA),tA]);BA.on_connect(()=>BA.publish(CA)),BA.on_message((oA,QA)=>{const EA=new DataView(QA.buffer).getUint32(0,!1),rA=QA.slice(4),lA=gA(EA,rA);lA!=null&&(clearTimeout(sA),BA.stop(),iA(lA))}),BA.start()});var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(eA){return eA&&eA.__esModule&&Object.prototype.hasOwnProperty.call(eA,"default")?eA.default:eA}var indexLight={exports:{}},indexMinimal={},minimal={},aspromise=asPromise$1;function asPromise$1(eA,AA){for(var tA=new Array(arguments.length-1),gA=0,iA=2,IA=!0;iA<arguments.length;)tA[gA++]=arguments[iA++];return new Promise(function(sA,CA){tA[gA]=function(QA){if(IA)if(IA=!1,QA)CA(QA);else{for(var EA=new Array(arguments.length-1),rA=0;rA<EA.length;)EA[rA++]=arguments[rA];sA.apply(null,EA)}};try{eA.apply(AA||null,tA)}catch(oA){IA&&(IA=!1,CA(oA))}})}var base64$1={};(function(eA){var AA=eA;AA.length=function(sA){var CA=sA.length;if(!CA)return 0;for(var oA=0;--CA%4>1&&sA.charAt(CA)==="=";)++oA;return Math.ceil(sA.length*3)/4-oA};for(var tA=new Array(64),gA=new Array(123),iA=0;iA<64;)gA[tA[iA]=iA<26?iA+65:iA<52?iA+71:iA<62?iA-4:iA-59|43]=iA++;AA.encode=function(sA,CA,oA){for(var QA=null,EA=[],rA=0,lA=0,uA;CA<oA;){var cA=sA[CA++];switch(lA){case 0:EA[rA++]=tA[cA>>2],uA=(cA&3)<<4,lA=1;break;case 1:EA[rA++]=tA[uA|cA>>4],uA=(cA&15)<<2,lA=2;break;case 2:EA[rA++]=tA[uA|cA>>6],EA[rA++]=tA[cA&63],lA=0;break}rA>8191&&((QA||(QA=[])).push(String.fromCharCode.apply(String,EA)),rA=0)}return lA&&(EA[rA++]=tA[uA],EA[rA++]=61,lA===1&&(EA[rA++]=61)),QA?(rA&&QA.push(String.fromCharCode.apply(String,EA.slice(0,rA))),QA.join("")):String.fromCharCode.apply(String,EA.slice(0,rA))};var IA="invalid encoding";AA.decode=function(sA,CA,oA){for(var QA=oA,EA=0,rA,lA=0;lA<sA.length;){var uA=sA.charCodeAt(lA++);if(uA===61&&EA>1)break;if((uA=gA[uA])===void 0)throw Error(IA);switch(EA){case 0:rA=uA,EA=1;break;case 1:CA[oA++]=rA<<2|(uA&48)>>4,rA=uA,EA=2;break;case 2:CA[oA++]=(rA&15)<<4|(uA&60)>>2,rA=uA,EA=3;break;case 3:CA[oA++]=(rA&3)<<6|uA,EA=0;break}}if(EA===1)throw Error(IA);return oA-QA},AA.test=function(sA){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(sA)}})(base64$1);var eventemitter=EventEmitter;function EventEmitter(){this._listeners={}}EventEmitter.prototype.on=function(AA,tA,gA){return(this._listeners[AA]||(this._listeners[AA]=[])).push({fn:tA,ctx:gA||this}),this},EventEmitter.prototype.off=function(AA,tA){if(AA===void 0)this._listeners={};else if(tA===void 0)this._listeners[AA]=[];else for(var gA=this._listeners[AA],iA=0;iA<gA.length;)gA[iA].fn===tA?gA.splice(iA,1):++iA;return this},EventEmitter.prototype.emit=function(AA){var tA=this._listeners[AA];if(tA){for(var gA=[],iA=1;iA<arguments.length;)gA.push(arguments[iA++]);for(iA=0;iA<tA.length;)tA[iA].fn.apply(tA[iA++].ctx,gA)}return this};var float=factory(factory);function factory(eA){return typeof Float32Array<"u"?function(){var AA=new Float32Array([-0]),tA=new Uint8Array(AA.buffer),gA=tA[3]===128;function iA(CA,oA,QA){AA[0]=CA,oA[QA]=tA[0],oA[QA+1]=tA[1],oA[QA+2]=tA[2],oA[QA+3]=tA[3]}function IA(CA,oA,QA){AA[0]=CA,oA[QA]=tA[3],oA[QA+1]=tA[2],oA[QA+2]=tA[1],oA[QA+3]=tA[0]}eA.writeFloatLE=gA?iA:IA,eA.writeFloatBE=gA?IA:iA;function BA(CA,oA){return tA[0]=CA[oA],tA[1]=CA[oA+1],tA[2]=CA[oA+2],tA[3]=CA[oA+3],AA[0]}function sA(CA,oA){return tA[3]=CA[oA],tA[2]=CA[oA+1],tA[1]=CA[oA+2],tA[0]=CA[oA+3],AA[0]}eA.readFloatLE=gA?BA:sA,eA.readFloatBE=gA?sA:BA}():function(){function AA(gA,iA,IA,BA){var sA=iA<0?1:0;if(sA&&(iA=-iA),iA===0)gA(1/iA>0?0:2147483648,IA,BA);else if(isNaN(iA))gA(2143289344,IA,BA);else if(iA>34028234663852886e22)gA((sA<<31|2139095040)>>>0,IA,BA);else if(iA<11754943508222875e-54)gA((sA<<31|Math.round(iA/1401298464324817e-60))>>>0,IA,BA);else{var CA=Math.floor(Math.log(iA)/Math.LN2),oA=Math.round(iA*Math.pow(2,-CA)*8388608)&8388607;gA((sA<<31|CA+127<<23|oA)>>>0,IA,BA)}}eA.writeFloatLE=AA.bind(null,writeUintLE),eA.writeFloatBE=AA.bind(null,writeUintBE);function tA(gA,iA,IA){var BA=gA(iA,IA),sA=(BA>>31)*2+1,CA=BA>>>23&255,oA=BA&8388607;return CA===255?oA?NaN:sA*(1/0):CA===0?sA*1401298464324817e-60*oA:sA*Math.pow(2,CA-150)*(oA+8388608)}eA.readFloatLE=tA.bind(null,readUintLE),eA.readFloatBE=tA.bind(null,readUintBE)}(),typeof Float64Array<"u"?function(){var AA=new Float64Array([-0]),tA=new Uint8Array(AA.buffer),gA=tA[7]===128;function iA(CA,oA,QA){AA[0]=CA,oA[QA]=tA[0],oA[QA+1]=tA[1],oA[QA+2]=tA[2],oA[QA+3]=tA[3],oA[QA+4]=tA[4],oA[QA+5]=tA[5],oA[QA+6]=tA[6],oA[QA+7]=tA[7]}function IA(CA,oA,QA){AA[0]=CA,oA[QA]=tA[7],oA[QA+1]=tA[6],oA[QA+2]=tA[5],oA[QA+3]=tA[4],oA[QA+4]=tA[3],oA[QA+5]=tA[2],oA[QA+6]=tA[1],oA[QA+7]=tA[0]}eA.writeDoubleLE=gA?iA:IA,eA.writeDoubleBE=gA?IA:iA;function BA(CA,oA){return tA[0]=CA[oA],tA[1]=CA[oA+1],tA[2]=CA[oA+2],tA[3]=CA[oA+3],tA[4]=CA[oA+4],tA[5]=CA[oA+5],tA[6]=CA[oA+6],tA[7]=CA[oA+7],AA[0]}function sA(CA,oA){return tA[7]=CA[oA],tA[6]=CA[oA+1],tA[5]=CA[oA+2],tA[4]=CA[oA+3],tA[3]=CA[oA+4],tA[2]=CA[oA+5],tA[1]=CA[oA+6],tA[0]=CA[oA+7],AA[0]}eA.readDoubleLE=gA?BA:sA,eA.readDoubleBE=gA?sA:BA}():function(){function AA(gA,iA,IA,BA,sA,CA){var oA=BA<0?1:0;if(oA&&(BA=-BA),BA===0)gA(0,sA,CA+iA),gA(1/BA>0?0:2147483648,sA,CA+IA);else if(isNaN(BA))gA(0,sA,CA+iA),gA(2146959360,sA,CA+IA);else if(BA>17976931348623157e292)gA(0,sA,CA+iA),gA((oA<<31|2146435072)>>>0,sA,CA+IA);else{var QA;if(BA<22250738585072014e-324)QA=BA/5e-324,gA(QA>>>0,sA,CA+iA),gA((oA<<31|QA/4294967296)>>>0,sA,CA+IA);else{var EA=Math.floor(Math.log(BA)/Math.LN2);EA===1024&&(EA=1023),QA=BA*Math.pow(2,-EA),gA(QA*4503599627370496>>>0,sA,CA+iA),gA((oA<<31|EA+1023<<20|QA*1048576&1048575)>>>0,sA,CA+IA)}}}eA.writeDoubleLE=AA.bind(null,writeUintLE,0,4),eA.writeDoubleBE=AA.bind(null,writeUintBE,4,0);function tA(gA,iA,IA,BA,sA){var CA=gA(BA,sA+iA),oA=gA(BA,sA+IA),QA=(oA>>31)*2+1,EA=oA>>>20&2047,rA=4294967296*(oA&1048575)+CA;return EA===2047?rA?NaN:QA*(1/0):EA===0?QA*5e-324*rA:QA*Math.pow(2,EA-1075)*(rA+4503599627370496)}eA.readDoubleLE=tA.bind(null,readUintLE,0,4),eA.readDoubleBE=tA.bind(null,readUintBE,4,0)}(),eA}function writeUintLE(eA,AA,tA){AA[tA]=eA&255,AA[tA+1]=eA>>>8&255,AA[tA+2]=eA>>>16&255,AA[tA+3]=eA>>>24}function writeUintBE(eA,AA,tA){AA[tA]=eA>>>24,AA[tA+1]=eA>>>16&255,AA[tA+2]=eA>>>8&255,AA[tA+3]=eA&255}function readUintLE(eA,AA){return(eA[AA]|eA[AA+1]<<8|eA[AA+2]<<16|eA[AA+3]<<24)>>>0}function readUintBE(eA,AA){return(eA[AA]<<24|eA[AA+1]<<16|eA[AA+2]<<8|eA[AA+3])>>>0}var inquire_1=inquire$1;function inquire$1(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(eA){}return null}var utf8$2={};(function(eA){var AA=eA;AA.length=function(gA){for(var iA=0,IA=0,BA=0;BA<gA.length;++BA)IA=gA.charCodeAt(BA),IA<128?iA+=1:IA<2048?iA+=2:(IA&64512)===55296&&(gA.charCodeAt(BA+1)&64512)===56320?(++BA,iA+=4):iA+=3;return iA},AA.read=function(gA,iA,IA){var BA=IA-iA;if(BA<1)return"";for(var sA=null,CA=[],oA=0,QA;iA<IA;)QA=gA[iA++],QA<128?CA[oA++]=QA:QA>191&&QA<224?CA[oA++]=(QA&31)<<6|gA[iA++]&63:QA>239&&QA<365?(QA=((QA&7)<<18|(gA[iA++]&63)<<12|(gA[iA++]&63)<<6|gA[iA++]&63)-65536,CA[oA++]=55296+(QA>>10),CA[oA++]=56320+(QA&1023)):CA[oA++]=(QA&15)<<12|(gA[iA++]&63)<<6|gA[iA++]&63,oA>8191&&((sA||(sA=[])).push(String.fromCharCode.apply(String,CA)),oA=0);return sA?(oA&&sA.push(String.fromCharCode.apply(String,CA.slice(0,oA))),sA.join("")):String.fromCharCode.apply(String,CA.slice(0,oA))},AA.write=function(gA,iA,IA){for(var BA=IA,sA,CA,oA=0;oA<gA.length;++oA)sA=gA.charCodeAt(oA),sA<128?iA[IA++]=sA:sA<2048?(iA[IA++]=sA>>6|192,iA[IA++]=sA&63|128):(sA&64512)===55296&&((CA=gA.charCodeAt(oA+1))&64512)===56320?(sA=65536+((sA&1023)<<10)+(CA&1023),++oA,iA[IA++]=sA>>18|240,iA[IA++]=sA>>12&63|128,iA[IA++]=sA>>6&63|128,iA[IA++]=sA&63|128):(iA[IA++]=sA>>12|224,iA[IA++]=sA>>6&63|128,iA[IA++]=sA&63|128);return IA-BA}})(utf8$2);var pool_1=pool;function pool(eA,AA,tA){var gA=tA||8192,iA=gA>>>1,IA=null,BA=gA;return function(CA){if(CA<1||CA>iA)return eA(CA);BA+CA>gA&&(IA=eA(gA),BA=0);var oA=AA.call(IA,BA,BA+=CA);return BA&7&&(BA=(BA|7)+1),oA}}var longbits,hasRequiredLongbits;function requireLongbits(){if(hasRequiredLongbits)return longbits;hasRequiredLongbits=1,longbits=AA;var eA=requireMinimal();function AA(IA,BA){this.lo=IA>>>0,this.hi=BA>>>0}var tA=AA.zero=new AA(0,0);tA.toNumber=function(){return 0},tA.zzEncode=tA.zzDecode=function(){return this},tA.length=function(){return 1};var gA=AA.zeroHash="\0\0\0\0\0\0\0\0";AA.fromNumber=function(BA){if(BA===0)return tA;var sA=BA<0;sA&&(BA=-BA);var CA=BA>>>0,oA=(BA-CA)/4294967296>>>0;return sA&&(oA=~oA>>>0,CA=~CA>>>0,++CA>4294967295&&(CA=0,++oA>4294967295&&(oA=0))),new AA(CA,oA)},AA.from=function(BA){if(typeof BA=="number")return AA.fromNumber(BA);if(eA.isString(BA))if(eA.Long)BA=eA.Long.fromString(BA);else return AA.fromNumber(parseInt(BA,10));return BA.low||BA.high?new AA(BA.low>>>0,BA.high>>>0):tA},AA.prototype.toNumber=function(BA){if(!BA&&this.hi>>>31){var sA=~this.lo+1>>>0,CA=~this.hi>>>0;return sA||(CA=CA+1>>>0),-(sA+CA*4294967296)}return this.lo+this.hi*4294967296},AA.prototype.toLong=function(BA){return eA.Long?new eA.Long(this.lo|0,this.hi|0,!!BA):{low:this.lo|0,high:this.hi|0,unsigned:!!BA}};var iA=String.prototype.charCodeAt;return AA.fromHash=function(BA){return BA===gA?tA:new AA((iA.call(BA,0)|iA.call(BA,1)<<8|iA.call(BA,2)<<16|iA.call(BA,3)<<24)>>>0,(iA.call(BA,4)|iA.call(BA,5)<<8|iA.call(BA,6)<<16|iA.call(BA,7)<<24)>>>0)},AA.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},AA.prototype.zzEncode=function(){var BA=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^BA)>>>0,this.lo=(this.lo<<1^BA)>>>0,this},AA.prototype.zzDecode=function(){var BA=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^BA)>>>0,this.hi=(this.hi>>>1^BA)>>>0,this},AA.prototype.length=function(){var BA=this.lo,sA=(this.lo>>>28|this.hi<<4)>>>0,CA=this.hi>>>24;return CA===0?sA===0?BA<16384?BA<128?1:2:BA<2097152?3:4:sA<16384?sA<128?5:6:sA<2097152?7:8:CA<128?9:10},longbits}var hasRequiredMinimal;function requireMinimal(){return hasRequiredMinimal||(hasRequiredMinimal=1,function(eA){var AA=eA;AA.asPromise=aspromise,AA.base64=base64$1,AA.EventEmitter=eventemitter,AA.float=float,AA.inquire=inquire_1,AA.utf8=utf8$2,AA.pool=pool_1,AA.LongBits=requireLongbits(),AA.isNode=!!(typeof commonjsGlobal<"u"&&commonjsGlobal&&commonjsGlobal.process&&commonjsGlobal.process.versions&&commonjsGlobal.process.versions.node),AA.global=AA.isNode&&commonjsGlobal||typeof window<"u"&&window||typeof self<"u"&&self||commonjsGlobal,AA.emptyArray=Object.freeze?Object.freeze([]):[],AA.emptyObject=Object.freeze?Object.freeze({}):{},AA.isInteger=Number.isInteger||function(IA){return typeof IA=="number"&&isFinite(IA)&&Math.floor(IA)===IA},AA.isString=function(IA){return typeof IA=="string"||IA instanceof String},AA.isObject=function(IA){return IA&&typeof IA=="object"},AA.isset=AA.isSet=function(IA,BA){var sA=IA[BA];return sA!=null&&IA.hasOwnProperty(BA)?typeof sA!="object"||(Array.isArray(sA)?sA.length:Object.keys(sA).length)>0:!1},AA.Buffer=function(){try{var iA=AA.inquire("buffer").Buffer;return iA.prototype.utf8Write?iA:null}catch{return null}}(),AA._Buffer_from=null,AA._Buffer_allocUnsafe=null,AA.newBuffer=function(IA){return typeof IA=="number"?AA.Buffer?AA._Buffer_allocUnsafe(IA):new AA.Array(IA):AA.Buffer?AA._Buffer_from(IA):typeof Uint8Array>"u"?IA:new Uint8Array(IA)},AA.Array=typeof Uint8Array<"u"?Uint8Array:Array,AA.Long=AA.global.dcodeIO&&AA.global.dcodeIO.Long||AA.global.Long||AA.inquire("long"),AA.key2Re=/^true|false|0|1$/,AA.key32Re=/^-?(?:0|[1-9][0-9]*)$/,AA.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,AA.longToHash=function(IA){return IA?AA.LongBits.from(IA).toHash():AA.LongBits.zeroHash},AA.longFromHash=function(IA,BA){var sA=AA.LongBits.fromHash(IA);return AA.Long?AA.Long.fromBits(sA.lo,sA.hi,BA):sA.toNumber(!!BA)};function tA(iA,IA,BA){for(var sA=Object.keys(IA),CA=0;CA<sA.length;++CA)(iA[sA[CA]]===void 0||!BA)&&(iA[sA[CA]]=IA[sA[CA]]);return iA}AA.merge=tA,AA.lcFirst=function(IA){return IA.charAt(0).toLowerCase()+IA.substring(1)};function gA(iA){function IA(BA,sA){if(!(this instanceof IA))return new IA(BA,sA);Object.defineProperty(this,"message",{get:function(){return BA}}),Error.captureStackTrace?Error.captureStackTrace(this,IA):Object.defineProperty(this,"stack",{value:new Error().stack||""}),sA&&tA(this,sA)}return IA.prototype=Object.create(Error.prototype,{constructor:{value:IA,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return iA},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),IA}AA.newError=gA,AA.ProtocolError=gA("ProtocolError"),AA.oneOfGetter=function(IA){for(var BA={},sA=0;sA<IA.length;++sA)BA[IA[sA]]=1;return function(){for(var CA=Object.keys(this),oA=CA.length-1;oA>-1;--oA)if(BA[CA[oA]]===1&&this[CA[oA]]!==void 0&&this[CA[oA]]!==null)return CA[oA]}},AA.oneOfSetter=function(IA){return function(BA){for(var sA=0;sA<IA.length;++sA)IA[sA]!==BA&&delete this[IA[sA]]}},AA.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},AA._configure=function(){var iA=AA.Buffer;if(!iA){AA._Buffer_from=AA._Buffer_allocUnsafe=null;return}AA._Buffer_from=iA.from!==Uint8Array.from&&iA.from||function(BA,sA){return new iA(BA,sA)},AA._Buffer_allocUnsafe=iA.allocUnsafe||function(BA){return new iA(BA)}}}(minimal)),minimal}var writer=Writer$1,util$6=requireMinimal(),BufferWriter$1,LongBits$1=util$6.LongBits,base64=util$6.base64,utf8$1=util$6.utf8;function Op(eA,AA,tA){this.fn=eA,this.len=AA,this.next=void 0,this.val=tA}function noop(){}function State(eA){this.head=eA.head,this.tail=eA.tail,this.len=eA.len,this.next=eA.states}function Writer$1(){this.len=0,this.head=new Op(noop,0,0),this.tail=this.head,this.states=null}var create$1=function eA(){return util$6.Buffer?function(){return(Writer$1.create=function(){return new BufferWriter$1})()}:function(){return new Writer$1}};Writer$1.create=create$1(),Writer$1.alloc=function eA(AA){return new util$6.Array(AA)},util$6.Array!==Array&&(Writer$1.alloc=util$6.pool(Writer$1.alloc,util$6.Array.prototype.subarray)),Writer$1.prototype._push=function eA(AA,tA,gA){return this.tail=this.tail.next=new Op(AA,tA,gA),this.len+=tA,this};function writeByte(eA,AA,tA){AA[tA]=eA&255}function writeVarint32(eA,AA,tA){for(;eA>127;)AA[tA++]=eA&127|128,eA>>>=7;AA[tA]=eA}function VarintOp(eA,AA){this.len=eA,this.next=void 0,this.val=AA}VarintOp.prototype=Object.create(Op.prototype),VarintOp.prototype.fn=writeVarint32,Writer$1.prototype.uint32=function eA(AA){return this.len+=(this.tail=this.tail.next=new VarintOp((AA=AA>>>0)<128?1:AA<16384?2:AA<2097152?3:AA<268435456?4:5,AA)).len,this},Writer$1.prototype.int32=function eA(AA){return AA<0?this._push(writeVarint64,10,LongBits$1.fromNumber(AA)):this.uint32(AA)},Writer$1.prototype.sint32=function eA(AA){return this.uint32((AA<<1^AA>>31)>>>0)};function writeVarint64(eA,AA,tA){for(;eA.hi;)AA[tA++]=eA.lo&127|128,eA.lo=(eA.lo>>>7|eA.hi<<25)>>>0,eA.hi>>>=7;for(;eA.lo>127;)AA[tA++]=eA.lo&127|128,eA.lo=eA.lo>>>7;AA[tA++]=eA.lo}Writer$1.prototype.uint64=function eA(AA){var tA=LongBits$1.from(AA);return this._push(writeVarint64,tA.length(),tA)},Writer$1.prototype.int64=Writer$1.prototype.uint64,Writer$1.prototype.sint64=function eA(AA){var tA=LongBits$1.from(AA).zzEncode();return this._push(writeVarint64,tA.length(),tA)},Writer$1.prototype.bool=function eA(AA){return this._push(writeByte,1,AA?1:0)};function writeFixed32(eA,AA,tA){AA[tA]=eA&255,AA[tA+1]=eA>>>8&255,AA[tA+2]=eA>>>16&255,AA[tA+3]=eA>>>24}Writer$1.prototype.fixed32=function eA(AA){return this._push(writeFixed32,4,AA>>>0)},Writer$1.prototype.sfixed32=Writer$1.prototype.fixed32,Writer$1.prototype.fixed64=function eA(AA){var tA=LongBits$1.from(AA);return this._push(writeFixed32,4,tA.lo)._push(writeFixed32,4,tA.hi)},Writer$1.prototype.sfixed64=Writer$1.prototype.fixed64,Writer$1.prototype.float=function eA(AA){return this._push(util$6.float.writeFloatLE,4,AA)},Writer$1.prototype.double=function eA(AA){return this._push(util$6.float.writeDoubleLE,8,AA)};var writeBytes=util$6.Array.prototype.set?function eA(AA,tA,gA){tA.set(AA,gA)}:function eA(AA,tA,gA){for(var iA=0;iA<AA.length;++iA)tA[gA+iA]=AA[iA]};Writer$1.prototype.bytes=function eA(AA){var tA=AA.length>>>0;if(!tA)return this._push(writeByte,1,0);if(util$6.isString(AA)){var gA=Writer$1.alloc(tA=base64.length(AA));base64.decode(AA,gA,0),AA=gA}return this.uint32(tA)._push(writeBytes,tA,AA)},Writer$1.prototype.string=function eA(AA){var tA=utf8$1.length(AA);return tA?this.uint32(tA)._push(utf8$1.write,tA,AA):this._push(writeByte,1,0)},Writer$1.prototype.fork=function eA(){return this.states=new State(this),this.head=this.tail=new Op(noop,0,0),this.len=0,this},Writer$1.prototype.reset=function eA(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new Op(noop,0,0),this.len=0),this},Writer$1.prototype.ldelim=function eA(){var AA=this.head,tA=this.tail,gA=this.len;return this.reset().uint32(gA),gA&&(this.tail.next=AA.next,this.tail=tA,this.len+=gA),this},Writer$1.prototype.finish=function eA(){for(var AA=this.head.next,tA=this.constructor.alloc(this.len),gA=0;AA;)AA.fn(AA.val,tA,gA),gA+=AA.len,AA=AA.next;return tA},Writer$1._configure=function(eA){BufferWriter$1=eA,Writer$1.create=create$1(),BufferWriter$1._configure()};var writer_buffer=BufferWriter,Writer=writer;(BufferWriter.prototype=Object.create(Writer.prototype)).constructor=BufferWriter;var util$5=requireMinimal();function BufferWriter(){Writer.call(this)}BufferWriter._configure=function(){BufferWriter.alloc=util$5._Buffer_allocUnsafe,BufferWriter.writeBytesBuffer=util$5.Buffer&&util$5.Buffer.prototype instanceof Uint8Array&&util$5.Buffer.prototype.set.name==="set"?function(AA,tA,gA){tA.set(AA,gA)}:function(AA,tA,gA){if(AA.copy)AA.copy(tA,gA,0,AA.length);else for(var iA=0;iA<AA.length;)tA[gA++]=AA[iA++]}},BufferWriter.prototype.bytes=function eA(AA){util$5.isString(AA)&&(AA=util$5._Buffer_from(AA,"base64"));var tA=AA.length>>>0;return this.uint32(tA),tA&&this._push(BufferWriter.writeBytesBuffer,tA,AA),this};function writeStringBuffer(eA,AA,tA){eA.length<40?util$5.utf8.write(eA,AA,tA):AA.utf8Write?AA.utf8Write(eA,tA):AA.write(eA,tA)}BufferWriter.prototype.string=function eA(AA){var tA=util$5.Buffer.byteLength(AA);return this.uint32(tA),tA&&this._push(writeStringBuffer,tA,AA),this},BufferWriter._configure();var reader=Reader$1,util$4=requireMinimal(),BufferReader$1,LongBits=util$4.LongBits,utf8=util$4.utf8;function indexOutOfRange(eA,AA){return RangeError("index out of range: "+eA.pos+" + "+(AA||1)+" > "+eA.len)}function Reader$1(eA){this.buf=eA,this.pos=0,this.len=eA.length}var create_array=typeof Uint8Array<"u"?function eA(AA){if(AA instanceof Uint8Array||Array.isArray(AA))return new Reader$1(AA);throw Error("illegal buffer")}:function eA(AA){if(Array.isArray(AA))return new Reader$1(AA);throw Error("illegal buffer")},create=function eA(){return util$4.Buffer?function(tA){return(Reader$1.create=function(iA){return util$4.Buffer.isBuffer(iA)?new BufferReader$1(iA):create_array(iA)})(tA)}:create_array};Reader$1.create=create(),Reader$1.prototype._slice=util$4.Array.prototype.subarray||util$4.Array.prototype.slice,Reader$1.prototype.uint32=function eA(){var AA=4294967295;return function(){if(AA=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(AA=(AA|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(AA=(AA|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(AA=(AA|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(AA=(AA|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return AA;if((this.pos+=5)>this.len)throw this.pos=this.len,indexOutOfRange(this,10);return AA}}(),Reader$1.prototype.int32=function eA(){return this.uint32()|0},Reader$1.prototype.sint32=function eA(){var AA=this.uint32();return AA>>>1^-(AA&1)|0};function readLongVarint(){var eA=new LongBits(0,0),AA=0;if(this.len-this.pos>4){for(;AA<4;++AA)if(eA.lo=(eA.lo|(this.buf[this.pos]&127)<<AA*7)>>>0,this.buf[this.pos++]<128)return eA;if(eA.lo=(eA.lo|(this.buf[this.pos]&127)<<28)>>>0,eA.hi=(eA.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return eA;AA=0}else{for(;AA<3;++AA){if(this.pos>=this.len)throw indexOutOfRange(this);if(eA.lo=(eA.lo|(this.buf[this.pos]&127)<<AA*7)>>>0,this.buf[this.pos++]<128)return eA}return eA.lo=(eA.lo|(this.buf[this.pos++]&127)<<AA*7)>>>0,eA}if(this.len-this.pos>4){for(;AA<5;++AA)if(eA.hi=(eA.hi|(this.buf[this.pos]&127)<<AA*7+3)>>>0,this.buf[this.pos++]<128)return eA}else for(;AA<5;++AA){if(this.pos>=this.len)throw indexOutOfRange(this);if(eA.hi=(eA.hi|(this.buf[this.pos]&127)<<AA*7+3)>>>0,this.buf[this.pos++]<128)return eA}throw Error("invalid varint encoding")}Reader$1.prototype.bool=function eA(){return this.uint32()!==0};function readFixed32_end(eA,AA){return(eA[AA-4]|eA[AA-3]<<8|eA[AA-2]<<16|eA[AA-1]<<24)>>>0}Reader$1.prototype.fixed32=function eA(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return readFixed32_end(this.buf,this.pos+=4)},Reader$1.prototype.sfixed32=function eA(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return readFixed32_end(this.buf,this.pos+=4)|0};function readFixed64(){if(this.pos+8>this.len)throw indexOutOfRange(this,8);return new LongBits(readFixed32_end(this.buf,this.pos+=4),readFixed32_end(this.buf,this.pos+=4))}Reader$1.prototype.float=function eA(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);var AA=util$4.float.readFloatLE(this.buf,this.pos);return this.pos+=4,AA},Reader$1.prototype.double=function eA(){if(this.pos+8>this.len)throw indexOutOfRange(this,4);var AA=util$4.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,AA},Reader$1.prototype.bytes=function eA(){var AA=this.uint32(),tA=this.pos,gA=this.pos+AA;if(gA>this.len)throw indexOutOfRange(this,AA);if(this.pos+=AA,Array.isArray(this.buf))return this.buf.slice(tA,gA);if(tA===gA){var iA=util$4.Buffer;return iA?iA.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,tA,gA)},Reader$1.prototype.string=function eA(){var AA=this.bytes();return utf8.read(AA,0,AA.length)},Reader$1.prototype.skip=function eA(AA){if(typeof AA=="number"){if(this.pos+AA>this.len)throw indexOutOfRange(this,AA);this.pos+=AA}else do if(this.pos>=this.len)throw indexOutOfRange(this);while(this.buf[this.pos++]&128);return this},Reader$1.prototype.skipType=function(eA){switch(eA){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(eA=this.uint32()&7)!==4;)this.skipType(eA);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+eA+" at offset "+this.pos)}return this},Reader$1._configure=function(eA){BufferReader$1=eA,Reader$1.create=create(),BufferReader$1._configure();var AA=util$4.Long?"toLong":"toNumber";util$4.merge(Reader$1.prototype,{int64:function(){return readLongVarint.call(this)[AA](!1)},uint64:function(){return readLongVarint.call(this)[AA](!0)},sint64:function(){return readLongVarint.call(this).zzDecode()[AA](!1)},fixed64:function(){return readFixed64.call(this)[AA](!0)},sfixed64:function(){return readFixed64.call(this)[AA](!1)}})};var reader_buffer=BufferReader,Reader=reader;(BufferReader.prototype=Object.create(Reader.prototype)).constructor=BufferReader;var util$3=requireMinimal();function BufferReader(eA){Reader.call(this,eA)}BufferReader._configure=function(){util$3.Buffer&&(BufferReader.prototype._slice=util$3.Buffer.prototype.slice)},BufferReader.prototype.string=function eA(){var AA=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+AA,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+AA,this.len))},BufferReader._configure();var rpc={},service$1=Service,util$2=requireMinimal();(Service.prototype=Object.create(util$2.EventEmitter.prototype)).constructor=Service;function Service(eA,AA,tA){if(typeof eA!="function")throw TypeError("rpcImpl must be a function");util$2.EventEmitter.call(this),this.rpcImpl=eA,this.requestDelimited=!!AA,this.responseDelimited=!!tA}Service.prototype.rpcCall=function eA(AA,tA,gA,iA,IA){if(!iA)throw TypeError("request must be specified");var BA=this;if(!IA)return util$2.asPromise(eA,BA,AA,tA,gA,iA);if(!BA.rpcImpl){setTimeout(function(){IA(Error("already ended"))},0);return}try{return BA.rpcImpl(AA,tA[BA.requestDelimited?"encodeDelimited":"encode"](iA).finish(),function(CA,oA){if(CA)return BA.emit("error",CA,AA),IA(CA);if(oA===null){BA.end(!0);return}if(!(oA instanceof gA))try{oA=gA[BA.responseDelimited?"decodeDelimited":"decode"](oA)}catch(QA){return BA.emit("error",QA,AA),IA(QA)}return BA.emit("data",oA,AA),IA(null,oA)})}catch(sA){BA.emit("error",sA,AA),setTimeout(function(){IA(sA)},0);return}},Service.prototype.end=function eA(AA){return this.rpcImpl&&(AA||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this},function(eA){var AA=eA;AA.Service=service$1}(rpc);var roots={};(function(eA){var AA=eA;AA.build="minimal",AA.Writer=writer,AA.BufferWriter=writer_buffer,AA.Reader=reader,AA.BufferReader=reader_buffer,AA.util=requireMinimal(),AA.rpc=rpc,AA.roots=roots,AA.configure=tA;function tA(){AA.util._configure(),AA.Writer._configure(AA.BufferWriter),AA.Reader._configure(AA.BufferReader)}tA()})(indexMinimal);var util$1={exports:{}},codegen_1=codegen;function codegen(eA,AA){typeof eA=="string"&&(AA=eA,eA=void 0);var tA=[];function gA(IA){if(typeof IA!="string"){var BA=iA();if(codegen.verbose&&console.log("codegen: "+BA),BA="return "+BA,IA){for(var sA=Object.keys(IA),CA=new Array(sA.length+1),oA=new Array(sA.length),QA=0;QA<sA.length;)CA[QA]=sA[QA],oA[QA]=IA[sA[QA++]];return CA[QA]=BA,Function.apply(null,CA).apply(null,oA)}return Function(BA)()}for(var EA=new Array(arguments.length-1),rA=0;rA<EA.length;)EA[rA]=arguments[++rA];if(rA=0,IA=IA.replace(/%([%dfijs])/g,function(uA,cA){var hA=EA[rA++];switch(cA){case"d":case"f":return String(Number(hA));case"i":return String(Math.floor(hA));case"j":return JSON.stringify(hA);case"s":return String(hA)}return"%"}),rA!==EA.length)throw Error("parameter count mismatch");return tA.push(IA),gA}function iA(IA){return"function "+(IA||AA||"")+"("+(eA&&eA.join(",")||"")+`){
2
2
  `+tA.join(`
3
3
  `)+`
4
4
  }`}return gA.toString=iA,gA}codegen.verbose=!1;var fetch_1=fetch$1,asPromise=aspromise,inquire=inquire_1,fs$1=inquire("fs");function fetch$1(eA,AA,tA){return typeof AA=="function"?(tA=AA,AA={}):AA||(AA={}),tA?!AA.xhr&&fs$1&&fs$1.readFile?fs$1.readFile(eA,function(iA,IA){return iA&&typeof XMLHttpRequest<"u"?fetch$1.xhr(eA,AA,tA):iA?tA(iA):tA(null,AA.binary?IA:IA.toString("utf8"))}):fetch$1.xhr(eA,AA,tA):asPromise(fetch$1,this,eA,AA)}fetch$1.xhr=function eA(AA,tA,gA){var iA=new XMLHttpRequest;iA.onreadystatechange=function(){if(iA.readyState===4){if(iA.status!==0&&iA.status!==200)return gA(Error("status "+iA.status));if(tA.binary){var BA=iA.response;if(!BA){BA=[];for(var sA=0;sA<iA.responseText.length;++sA)BA.push(iA.responseText.charCodeAt(sA)&255)}return gA(null,typeof Uint8Array<"u"?new Uint8Array(BA):BA)}return gA(null,iA.responseText)}},tA.binary&&("overrideMimeType"in iA&&iA.overrideMimeType("text/plain; charset=x-user-defined"),iA.responseType="arraybuffer"),iA.open("GET",AA),iA.send()};var path={};(function(eA){var AA=eA,tA=AA.isAbsolute=function(IA){return/^(?:\/|\w+:)/.test(IA)},gA=AA.normalize=function(IA){IA=IA.replace(/\\/g,"/").replace(/\/{2,}/g,"/");var BA=IA.split("/"),sA=tA(IA),CA="";sA&&(CA=BA.shift()+"/");for(var oA=0;oA<BA.length;)BA[oA]===".."?oA>0&&BA[oA-1]!==".."?BA.splice(--oA,2):sA?BA.splice(oA,1):++oA:BA[oA]==="."?BA.splice(oA,1):++oA;return CA+BA.join("/")};AA.resolve=function(IA,BA,sA){return sA||(BA=gA(BA)),tA(BA)?BA:(sA||(IA=gA(IA)),(IA=IA.replace(/(?:\/|^)[^/]+$/,"")).length?gA(IA+"/"+BA):BA)}})(path);var types$2={},hasRequiredTypes;function requireTypes(){return hasRequiredTypes||(hasRequiredTypes=1,function(eA){var AA=eA,tA=requireUtil(),gA=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes"];function iA(IA,BA){var sA=0,CA={};for(BA|=0;sA<IA.length;)CA[gA[sA+BA]]=IA[sA++];return CA}AA.basic=iA([1,5,0,0,0,5,5,0,0,0,1,1,0,2,2]),AA.defaults=iA([0,0,0,0,0,0,0,0,0,0,0,0,!1,"",tA.emptyArray,null]),AA.long=iA([0,0,0,1,1],7),AA.mapKey=iA([0,0,0,5,5,0,0,0,1,1,0,2],2),AA.packed=iA([1,5,0,0,0,5,5,0,0,0,1,1,0])}(types$2)),types$2}var field,hasRequiredField;function requireField(){if(hasRequiredField)return field;hasRequiredField=1,field=BA;var eA=requireObject();((BA.prototype=Object.create(eA.prototype)).constructor=BA).className="Field";var AA=require_enum(),tA=requireTypes(),gA=requireUtil(),iA,IA=/^required|optional|repeated$/;BA.fromJSON=function(CA,oA){return new BA(CA,oA.id,oA.type,oA.rule,oA.extend,oA.options,oA.comment)};function BA(sA,CA,oA,QA,EA,rA,lA){if(gA.isObject(QA)?(lA=EA,rA=QA,QA=EA=void 0):gA.isObject(EA)&&(lA=rA,rA=EA,EA=void 0),eA.call(this,sA,rA),!gA.isInteger(CA)||CA<0)throw TypeError("id must be a non-negative integer");if(!gA.isString(oA))throw TypeError("type must be a string");if(QA!==void 0&&!IA.test(QA=QA.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(EA!==void 0&&!gA.isString(EA))throw TypeError("extend must be a string");QA==="proto3_optional"&&(QA="optional"),this.rule=QA&&QA!=="optional"?QA:void 0,this.type=oA,this.id=CA,this.extend=EA||void 0,this.required=QA==="required",this.optional=!this.required,this.repeated=QA==="repeated",this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=gA.Long?tA.long[oA]!==void 0:!1,this.bytes=oA==="bytes",this.resolvedType=null,this.extensionField=null,this.declaringField=null,this._packed=null,this.comment=lA}return Object.defineProperty(BA.prototype,"packed",{get:function(){return this._packed===null&&(this._packed=this.getOption("packed")!==!1),this._packed}}),BA.prototype.setOption=function(CA,oA,QA){return CA==="packed"&&(this._packed=null),eA.prototype.setOption.call(this,CA,oA,QA)},BA.prototype.toJSON=function(CA){var oA=CA?!!CA.keepComments:!1;return gA.toObject(["rule",this.rule!=="optional"&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",oA?this.comment:void 0])},BA.prototype.resolve=function(){if(this.resolved)return this;if((this.typeDefault=tA.defaults[this.type])===void 0?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof iA?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&this.options.default!=null&&(this.typeDefault=this.options.default,this.resolvedType instanceof AA&&typeof this.typeDefault=="string"&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&((this.options.packed===!0||this.options.packed!==void 0&&this.resolvedType&&!(this.resolvedType instanceof AA))&&delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=gA.Long.fromNumber(this.typeDefault,this.type.charAt(0)==="u"),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&typeof this.typeDefault=="string"){var CA;gA.base64.test(this.typeDefault)?gA.base64.decode(this.typeDefault,CA=gA.newBuffer(gA.base64.length(this.typeDefault)),0):gA.utf8.write(this.typeDefault,CA=gA.newBuffer(gA.utf8.length(this.typeDefault)),0),this.typeDefault=CA}return this.map?this.defaultValue=gA.emptyObject:this.repeated?this.defaultValue=gA.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof iA&&(this.parent.ctor.prototype[this.name]=this.defaultValue),eA.prototype.resolve.call(this)},BA.d=function(CA,oA,QA,EA){return typeof oA=="function"?oA=gA.decorateType(oA).name:oA&&typeof oA=="object"&&(oA=gA.decorateEnum(oA).name),function(lA,uA){gA.decorateType(lA.constructor).add(new BA(uA,CA,oA,QA,{default:EA}))}},BA._configure=function(CA){iA=CA},field}var oneof,hasRequiredOneof;function requireOneof(){if(hasRequiredOneof)return oneof;hasRequiredOneof=1,oneof=gA;var eA=requireObject();((gA.prototype=Object.create(eA.prototype)).constructor=gA).className="OneOf";var AA=requireField(),tA=requireUtil();function gA(IA,BA,sA,CA){if(Array.isArray(BA)||(sA=BA,BA=void 0),eA.call(this,IA,sA),!(BA===void 0||Array.isArray(BA)))throw TypeError("fieldNames must be an Array");this.oneof=BA||[],this.fieldsArray=[],this.comment=CA}gA.fromJSON=function(BA,sA){return new gA(BA,sA.oneof,sA.options,sA.comment)},gA.prototype.toJSON=function(BA){var sA=BA?!!BA.keepComments:!1;return tA.toObject(["options",this.options,"oneof",this.oneof,"comment",sA?this.comment:void 0])};function iA(IA){if(IA.parent)for(var BA=0;BA<IA.fieldsArray.length;++BA)IA.fieldsArray[BA].parent||IA.parent.add(IA.fieldsArray[BA])}return gA.prototype.add=function(BA){if(!(BA instanceof AA))throw TypeError("field must be a Field");return BA.parent&&BA.parent!==this.parent&&BA.parent.remove(BA),this.oneof.push(BA.name),this.fieldsArray.push(BA),BA.partOf=this,iA(this),this},gA.prototype.remove=function(BA){if(!(BA instanceof AA))throw TypeError("field must be a Field");var sA=this.fieldsArray.indexOf(BA);if(sA<0)throw Error(BA+" is not a member of "+this);return this.fieldsArray.splice(sA,1),sA=this.oneof.indexOf(BA.name),sA>-1&&this.oneof.splice(sA,1),BA.partOf=null,this},gA.prototype.onAdd=function(BA){eA.prototype.onAdd.call(this,BA);for(var sA=this,CA=0;CA<this.oneof.length;++CA){var oA=BA.get(this.oneof[CA]);oA&&!oA.partOf&&(oA.partOf=sA,sA.fieldsArray.push(oA))}iA(this)},gA.prototype.onRemove=function(BA){for(var sA=0,CA;sA<this.fieldsArray.length;++sA)(CA=this.fieldsArray[sA]).parent&&CA.parent.remove(CA);eA.prototype.onRemove.call(this,BA)},gA.d=function(){for(var BA=new Array(arguments.length),sA=0;sA<arguments.length;)BA[sA]=arguments[sA++];return function(oA,QA){tA.decorateType(oA.constructor).add(new gA(QA,BA)),Object.defineProperty(oA,QA,{get:tA.oneOfGetter(BA),set:tA.oneOfSetter(BA)})}},oneof}var namespace,hasRequiredNamespace;function requireNamespace(){if(hasRequiredNamespace)return namespace;hasRequiredNamespace=1,namespace=CA;var eA=requireObject();((CA.prototype=Object.create(eA.prototype)).constructor=CA).className="Namespace";var AA=requireField(),tA=requireUtil(),gA=requireOneof(),iA,IA,BA;CA.fromJSON=function(EA,rA){return new CA(EA,rA.options).addJSON(rA.nested)};function sA(QA,EA){if(QA&&QA.length){for(var rA={},lA=0;lA<QA.length;++lA)rA[QA[lA].name]=QA[lA].toJSON(EA);return rA}}CA.arrayToJSON=sA,CA.isReservedId=function(EA,rA){if(EA){for(var lA=0;lA<EA.length;++lA)if(typeof EA[lA]!="string"&&EA[lA][0]<=rA&&EA[lA][1]>rA)return!0}return!1},CA.isReservedName=function(EA,rA){if(EA){for(var lA=0;lA<EA.length;++lA)if(EA[lA]===rA)return!0}return!1};function CA(QA,EA){eA.call(this,QA,EA),this.nested=void 0,this._nestedArray=null}function oA(QA){return QA._nestedArray=null,QA}return Object.defineProperty(CA.prototype,"nestedArray",{get:function(){return this._nestedArray||(this._nestedArray=tA.toArray(this.nested))}}),CA.prototype.toJSON=function(EA){return tA.toObject(["options",this.options,"nested",sA(this.nestedArray,EA)])},CA.prototype.addJSON=function(EA){var rA=this;if(EA)for(var lA=Object.keys(EA),uA=0,cA;uA<lA.length;++uA)cA=EA[lA[uA]],rA.add((cA.fields!==void 0?iA.fromJSON:cA.values!==void 0?BA.fromJSON:cA.methods!==void 0?IA.fromJSON:cA.id!==void 0?AA.fromJSON:CA.fromJSON)(lA[uA],cA));return this},CA.prototype.get=function(EA){return this.nested&&this.nested[EA]||null},CA.prototype.getEnum=function(EA){if(this.nested&&this.nested[EA]instanceof BA)return this.nested[EA].values;throw Error("no such enum: "+EA)},CA.prototype.add=function(EA){if(!(EA instanceof AA&&EA.extend!==void 0||EA instanceof iA||EA instanceof gA||EA instanceof BA||EA instanceof IA||EA instanceof CA))throw TypeError("object must be a valid nested object");if(!this.nested)this.nested={};else{var rA=this.get(EA.name);if(rA)if(rA instanceof CA&&EA instanceof CA&&!(rA instanceof iA||rA instanceof IA)){for(var lA=rA.nestedArray,uA=0;uA<lA.length;++uA)EA.add(lA[uA]);this.remove(rA),this.nested||(this.nested={}),EA.setOptions(rA.options,!0)}else throw Error("duplicate name '"+EA.name+"' in "+this)}return this.nested[EA.name]=EA,EA.onAdd(this),oA(this)},CA.prototype.remove=function(EA){if(!(EA instanceof eA))throw TypeError("object must be a ReflectionObject");if(EA.parent!==this)throw Error(EA+" is not a member of "+this);return delete this.nested[EA.name],Object.keys(this.nested).length||(this.nested=void 0),EA.onRemove(this),oA(this)},CA.prototype.define=function(EA,rA){if(tA.isString(EA))EA=EA.split(".");else if(!Array.isArray(EA))throw TypeError("illegal path");if(EA&&EA.length&&EA[0]==="")throw Error("path must be relative");for(var lA=this;EA.length>0;){var uA=EA.shift();if(lA.nested&&lA.nested[uA]){if(lA=lA.nested[uA],!(lA instanceof CA))throw Error("path conflicts with non-namespace objects")}else lA.add(lA=new CA(uA))}return rA&&lA.addJSON(rA),lA},CA.prototype.resolveAll=function(){for(var EA=this.nestedArray,rA=0;rA<EA.length;)EA[rA]instanceof CA?EA[rA++].resolveAll():EA[rA++].resolve();return this.resolve()},CA.prototype.lookup=function(EA,rA,lA){if(typeof rA=="boolean"?(lA=rA,rA=void 0):rA&&!Array.isArray(rA)&&(rA=[rA]),tA.isString(EA)&&EA.length){if(EA===".")return this.root;EA=EA.split(".")}else if(!EA.length)return this;if(EA[0]==="")return this.root.lookup(EA.slice(1),rA);var uA=this.get(EA[0]);if(uA){if(EA.length===1){if(!rA||rA.indexOf(uA.constructor)>-1)return uA}else if(uA instanceof CA&&(uA=uA.lookup(EA.slice(1),rA,!0)))return uA}else for(var cA=0;cA<this.nestedArray.length;++cA)if(this._nestedArray[cA]instanceof CA&&(uA=this._nestedArray[cA].lookup(EA,rA,!0)))return uA;return this.parent===null||lA?null:this.parent.lookup(EA,rA)},CA.prototype.lookupType=function(EA){var rA=this.lookup(EA,[iA]);if(!rA)throw Error("no such type: "+EA);return rA},CA.prototype.lookupEnum=function(EA){var rA=this.lookup(EA,[BA]);if(!rA)throw Error("no such Enum '"+EA+"' in "+this);return rA},CA.prototype.lookupTypeOrEnum=function(EA){var rA=this.lookup(EA,[iA,BA]);if(!rA)throw Error("no such Type or Enum '"+EA+"' in "+this);return rA},CA.prototype.lookupService=function(EA){var rA=this.lookup(EA,[IA]);if(!rA)throw Error("no such Service '"+EA+"' in "+this);return rA},CA._configure=function(QA,EA,rA){iA=QA,IA=EA,BA=rA},namespace}var mapfield,hasRequiredMapfield;function requireMapfield(){if(hasRequiredMapfield)return mapfield;hasRequiredMapfield=1,mapfield=gA;var eA=requireField();((gA.prototype=Object.create(eA.prototype)).constructor=gA).className="MapField";var AA=requireTypes(),tA=requireUtil();function gA(iA,IA,BA,sA,CA,oA){if(eA.call(this,iA,IA,sA,void 0,void 0,CA,oA),!tA.isString(BA))throw TypeError("keyType must be a string");this.keyType=BA,this.resolvedKeyType=null,this.map=!0}return gA.fromJSON=function(IA,BA){return new gA(IA,BA.id,BA.keyType,BA.type,BA.options,BA.comment)},gA.prototype.toJSON=function(IA){var BA=IA?!!IA.keepComments:!1;return tA.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",BA?this.comment:void 0])},gA.prototype.resolve=function(){if(this.resolved)return this;if(AA.mapKey[this.keyType]===void 0)throw Error("invalid key type: "+this.keyType);return eA.prototype.resolve.call(this)},gA.d=function(IA,BA,sA){return typeof sA=="function"?sA=tA.decorateType(sA).name:sA&&typeof sA=="object"&&(sA=tA.decorateEnum(sA).name),function(oA,QA){tA.decorateType(oA.constructor).add(new gA(QA,IA,BA,sA))}},mapfield}var method$1,hasRequiredMethod;function requireMethod(){if(hasRequiredMethod)return method$1;hasRequiredMethod=1,method$1=tA;var eA=requireObject();((tA.prototype=Object.create(eA.prototype)).constructor=tA).className="Method";var AA=requireUtil();function tA(gA,iA,IA,BA,sA,CA,oA,QA,EA){if(AA.isObject(sA)?(oA=sA,sA=CA=void 0):AA.isObject(CA)&&(oA=CA,CA=void 0),!(iA===void 0||AA.isString(iA)))throw TypeError("type must be a string");if(!AA.isString(IA))throw TypeError("requestType must be a string");if(!AA.isString(BA))throw TypeError("responseType must be a string");eA.call(this,gA,oA),this.type=iA||"rpc",this.requestType=IA,this.requestStream=sA?!0:void 0,this.responseType=BA,this.responseStream=CA?!0:void 0,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=QA,this.parsedOptions=EA}return tA.fromJSON=function(iA,IA){return new tA(iA,IA.type,IA.requestType,IA.responseType,IA.requestStream,IA.responseStream,IA.options,IA.comment,IA.parsedOptions)},tA.prototype.toJSON=function(iA){var IA=iA?!!iA.keepComments:!1;return AA.toObject(["type",this.type!=="rpc"&&this.type||void 0,"requestType",this.requestType,"requestStream",this.requestStream,"responseType",this.responseType,"responseStream",this.responseStream,"options",this.options,"comment",IA?this.comment:void 0,"parsedOptions",this.parsedOptions])},tA.prototype.resolve=function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),eA.prototype.resolve.call(this))},method$1}var service,hasRequiredService;function requireService(){if(hasRequiredService)return service;hasRequiredService=1,service=iA;var eA=requireNamespace();((iA.prototype=Object.create(eA.prototype)).constructor=iA).className="Service";var AA=requireMethod(),tA=requireUtil(),gA=rpc;function iA(BA,sA){eA.call(this,BA,sA),this.methods={},this._methodsArray=null}iA.fromJSON=function(sA,CA){var oA=new iA(sA,CA.options);if(CA.methods)for(var QA=Object.keys(CA.methods),EA=0;EA<QA.length;++EA)oA.add(AA.fromJSON(QA[EA],CA.methods[QA[EA]]));return CA.nested&&oA.addJSON(CA.nested),oA.comment=CA.comment,oA},iA.prototype.toJSON=function(sA){var CA=eA.prototype.toJSON.call(this,sA),oA=sA?!!sA.keepComments:!1;return tA.toObject(["options",CA&&CA.options||void 0,"methods",eA.arrayToJSON(this.methodsArray,sA)||{},"nested",CA&&CA.nested||void 0,"comment",oA?this.comment:void 0])},Object.defineProperty(iA.prototype,"methodsArray",{get:function(){return this._methodsArray||(this._methodsArray=tA.toArray(this.methods))}});function IA(BA){return BA._methodsArray=null,BA}return iA.prototype.get=function(sA){return this.methods[sA]||eA.prototype.get.call(this,sA)},iA.prototype.resolveAll=function(){for(var sA=this.methodsArray,CA=0;CA<sA.length;++CA)sA[CA].resolve();return eA.prototype.resolve.call(this)},iA.prototype.add=function(sA){if(this.get(sA.name))throw Error("duplicate name '"+sA.name+"' in "+this);return sA instanceof AA?(this.methods[sA.name]=sA,sA.parent=this,IA(this)):eA.prototype.add.call(this,sA)},iA.prototype.remove=function(sA){if(sA instanceof AA){if(this.methods[sA.name]!==sA)throw Error(sA+" is not a member of "+this);return delete this.methods[sA.name],sA.parent=null,IA(this)}return eA.prototype.remove.call(this,sA)},iA.prototype.create=function(sA,CA,oA){for(var QA=new gA.Service(sA,CA,oA),EA=0,rA;EA<this.methodsArray.length;++EA){var lA=tA.lcFirst((rA=this._methodsArray[EA]).resolve().name).replace(/[^$\w_]/g,"");QA[lA]=tA.codegen(["r","c"],tA.isReserved(lA)?lA+"_":lA)("return this.rpcCall(m,q,s,r,c)")({m:rA,q:rA.resolvedRequestType.ctor,s:rA.resolvedResponseType.ctor})}return QA},service}var message=Message,util=requireMinimal();function Message(eA){if(eA)for(var AA=Object.keys(eA),tA=0;tA<AA.length;++tA)this[AA[tA]]=eA[AA[tA]]}Message.create=function eA(AA){return this.$type.create(AA)},Message.encode=function eA(AA,tA){return this.$type.encode(AA,tA)},Message.encodeDelimited=function eA(AA,tA){return this.$type.encodeDelimited(AA,tA)},Message.decode=function eA(AA){return this.$type.decode(AA)},Message.decodeDelimited=function eA(AA){return this.$type.decodeDelimited(AA)},Message.verify=function eA(AA){return this.$type.verify(AA)},Message.fromObject=function eA(AA){return this.$type.fromObject(AA)},Message.toObject=function eA(AA,tA){return this.$type.toObject(AA,tA)},Message.prototype.toJSON=function eA(){return this.$type.toObject(this,util.toJSONOptions)};var decoder_1,hasRequiredDecoder;function requireDecoder(){if(hasRequiredDecoder)return decoder_1;hasRequiredDecoder=1,decoder_1=iA;var eA=require_enum(),AA=requireTypes(),tA=requireUtil();function gA(IA){return"missing required '"+IA.name+"'"}function iA(IA){var BA=tA.codegen(["r","l"],IA.name+"$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(IA.fieldsArray.filter(function(rA){return rA.map}).length?",k,value":""))("while(r.pos<c){")("var t=r.uint32()");IA.group&&BA("if((t&7)===4)")("break"),BA("switch(t>>>3){");for(var sA=0;sA<IA.fieldsArray.length;++sA){var CA=IA._fieldsArray[sA].resolve(),oA=CA.resolvedType instanceof eA?"int32":CA.type,QA="m"+tA.safeProp(CA.name);BA("case %i: {",CA.id),CA.map?(BA("if(%s===util.emptyObject)",QA)("%s={}",QA)("var c2 = r.uint32()+r.pos"),AA.defaults[CA.keyType]!==void 0?BA("k=%j",AA.defaults[CA.keyType]):BA("k=null"),AA.defaults[oA]!==void 0?BA("value=%j",AA.defaults[oA]):BA("value=null"),BA("while(r.pos<c2){")("var tag2=r.uint32()")("switch(tag2>>>3){")("case 1: k=r.%s(); break",CA.keyType)("case 2:"),AA.basic[oA]===void 0?BA("value=types[%i].decode(r,r.uint32())",sA):BA("value=r.%s()",oA),BA("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"),AA.long[CA.keyType]!==void 0?BA('%s[typeof k==="object"?util.longToHash(k):k]=value',QA):BA("%s[k]=value",QA)):CA.repeated?(BA("if(!(%s&&%s.length))",QA,QA)("%s=[]",QA),AA.packed[oA]!==void 0&&BA("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos<c2)")("%s.push(r.%s())",QA,oA)("}else"),AA.basic[oA]===void 0?BA(CA.resolvedType.group?"%s.push(types[%i].decode(r))":"%s.push(types[%i].decode(r,r.uint32()))",QA,sA):BA("%s.push(r.%s())",QA,oA)):AA.basic[oA]===void 0?BA(CA.resolvedType.group?"%s=types[%i].decode(r)":"%s=types[%i].decode(r,r.uint32())",QA,sA):BA("%s=r.%s()",QA,oA),BA("break")("}")}for(BA("default:")("r.skipType(t&7)")("break")("}")("}"),sA=0;sA<IA._fieldsArray.length;++sA){var EA=IA._fieldsArray[sA];EA.required&&BA("if(!m.hasOwnProperty(%j))",EA.name)("throw util.ProtocolError(%j,{instance:m})",gA(EA))}return BA("return m")}return decoder_1}var verifier_1,hasRequiredVerifier;function requireVerifier(){if(hasRequiredVerifier)return verifier_1;hasRequiredVerifier=1,verifier_1=IA;var eA=require_enum(),AA=requireUtil();function tA(BA,sA){return BA.name+": "+sA+(BA.repeated&&sA!=="array"?"[]":BA.map&&sA!=="object"?"{k:"+BA.keyType+"}":"")+" expected"}function gA(BA,sA,CA,oA){if(sA.resolvedType)if(sA.resolvedType instanceof eA){BA("switch(%s){",oA)("default:")("return%j",tA(sA,"enum value"));for(var QA=Object.keys(sA.resolvedType.values),EA=0;EA<QA.length;++EA)BA("case %i:",sA.resolvedType.values[QA[EA]]);BA("break")("}")}else BA("{")("var e=types[%i].verify(%s);",CA,oA)("if(e)")("return%j+e",sA.name+".")("}");else switch(sA.type){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":BA("if(!util.isInteger(%s))",oA)("return%j",tA(sA,"integer"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":BA("if(!util.isInteger(%s)&&!(%s&&util.isInteger(%s.low)&&util.isInteger(%s.high)))",oA,oA,oA,oA)("return%j",tA(sA,"integer|Long"));break;case"float":case"double":BA('if(typeof %s!=="number")',oA)("return%j",tA(sA,"number"));break;case"bool":BA('if(typeof %s!=="boolean")',oA)("return%j",tA(sA,"boolean"));break;case"string":BA("if(!util.isString(%s))",oA)("return%j",tA(sA,"string"));break;case"bytes":BA('if(!(%s&&typeof %s.length==="number"||util.isString(%s)))',oA,oA,oA)("return%j",tA(sA,"buffer"));break}return BA}function iA(BA,sA,CA){switch(sA.keyType){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":BA("if(!util.key32Re.test(%s))",CA)("return%j",tA(sA,"integer key"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":BA("if(!util.key64Re.test(%s))",CA)("return%j",tA(sA,"integer|Long key"));break;case"bool":BA("if(!util.key2Re.test(%s))",CA)("return%j",tA(sA,"boolean key"));break}return BA}function IA(BA){var sA=AA.codegen(["m"],BA.name+"$verify")('if(typeof m!=="object"||m===null)')("return%j","object expected"),CA=BA.oneofsArray,oA={};CA.length&&sA("var p={}");for(var QA=0;QA<BA.fieldsArray.length;++QA){var EA=BA._fieldsArray[QA].resolve(),rA="m"+AA.safeProp(EA.name);if(EA.optional&&sA("if(%s!=null&&m.hasOwnProperty(%j)){",rA,EA.name),EA.map)sA("if(!util.isObject(%s))",rA)("return%j",tA(EA,"object"))("var k=Object.keys(%s)",rA)("for(var i=0;i<k.length;++i){"),iA(sA,EA,"k[i]"),gA(sA,EA,QA,rA+"[k[i]]")("}");else if(EA.repeated)sA("if(!Array.isArray(%s))",rA)("return%j",tA(EA,"array"))("for(var i=0;i<%s.length;++i){",rA),gA(sA,EA,QA,rA+"[i]")("}");else{if(EA.partOf){var lA=AA.safeProp(EA.partOf.name);oA[EA.partOf.name]===1&&sA("if(p%s===1)",lA)("return%j",EA.partOf.name+": multiple values"),oA[EA.partOf.name]=1,sA("p%s=1",lA)}gA(sA,EA,QA,rA)}EA.optional&&sA("}")}return sA("return null")}return verifier_1}var converter={},hasRequiredConverter;function requireConverter(){return hasRequiredConverter||(hasRequiredConverter=1,function(eA){var AA=eA,tA=require_enum(),gA=requireUtil();function iA(BA,sA,CA,oA){var QA=!1;if(sA.resolvedType)if(sA.resolvedType instanceof tA){BA("switch(d%s){",oA);for(var EA=sA.resolvedType.values,rA=Object.keys(EA),lA=0;lA<rA.length;++lA)EA[rA[lA]]===sA.typeDefault&&!QA&&(BA("default:")('if(typeof(d%s)==="number"){m%s=d%s;break}',oA,oA,oA),sA.repeated||BA("break"),QA=!0),BA("case%j:",rA[lA])("case %i:",EA[rA[lA]])("m%s=%j",oA,EA[rA[lA]])("break");BA("}")}else BA('if(typeof d%s!=="object")',oA)("throw TypeError(%j)",sA.fullName+": object expected")("m%s=types[%i].fromObject(d%s)",oA,CA,oA);else{var uA=!1;switch(sA.type){case"double":case"float":BA("m%s=Number(d%s)",oA,oA);break;case"uint32":case"fixed32":BA("m%s=d%s>>>0",oA,oA);break;case"int32":case"sint32":case"sfixed32":BA("m%s=d%s|0",oA,oA);break;case"uint64":uA=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":BA("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",oA,oA,uA)('else if(typeof d%s==="string")',oA)("m%s=parseInt(d%s,10)",oA,oA)('else if(typeof d%s==="number")',oA)("m%s=d%s",oA,oA)('else if(typeof d%s==="object")',oA)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",oA,oA,oA,uA?"true":"");break;case"bytes":BA('if(typeof d%s==="string")',oA)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",oA,oA,oA)("else if(d%s.length >= 0)",oA)("m%s=d%s",oA,oA);break;case"string":BA("m%s=String(d%s)",oA,oA);break;case"bool":BA("m%s=Boolean(d%s)",oA,oA);break}}return BA}AA.fromObject=function(sA){var CA=sA.fieldsArray,oA=gA.codegen(["d"],sA.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!CA.length)return oA("return new this.ctor");oA("var m=new this.ctor");for(var QA=0;QA<CA.length;++QA){var EA=CA[QA].resolve(),rA=gA.safeProp(EA.name);EA.map?(oA("if(d%s){",rA)('if(typeof d%s!=="object")',rA)("throw TypeError(%j)",EA.fullName+": object expected")("m%s={}",rA)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){",rA),iA(oA,EA,QA,rA+"[ks[i]]")("}")("}")):EA.repeated?(oA("if(d%s){",rA)("if(!Array.isArray(d%s))",rA)("throw TypeError(%j)",EA.fullName+": array expected")("m%s=[]",rA)("for(var i=0;i<d%s.length;++i){",rA),iA(oA,EA,QA,rA+"[i]")("}")("}")):(EA.resolvedType instanceof tA||oA("if(d%s!=null){",rA),iA(oA,EA,QA,rA),EA.resolvedType instanceof tA||oA("}"))}return oA("return m")};function IA(BA,sA,CA,oA){if(sA.resolvedType)sA.resolvedType instanceof tA?BA("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",oA,CA,oA,oA,CA,oA,oA):BA("d%s=types[%i].toObject(m%s,o)",oA,CA,oA);else{var QA=!1;switch(sA.type){case"double":case"float":BA("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",oA,oA,oA,oA);break;case"uint64":QA=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":BA('if(typeof m%s==="number")',oA)("d%s=o.longs===String?String(m%s):m%s",oA,oA,oA)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",oA,oA,oA,oA,QA?"true":"",oA);break;case"bytes":BA("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",oA,oA,oA,oA,oA);break;default:BA("d%s=m%s",oA,oA);break}}return BA}AA.toObject=function(sA){var CA=sA.fieldsArray.slice().sort(gA.compareFieldsById);if(!CA.length)return gA.codegen()("return {}");for(var oA=gA.codegen(["m","o"],sA.name+"$toObject")("if(!o)")("o={}")("var d={}"),QA=[],EA=[],rA=[],lA=0;lA<CA.length;++lA)CA[lA].partOf||(CA[lA].resolve().repeated?QA:CA[lA].map?EA:rA).push(CA[lA]);if(QA.length){for(oA("if(o.arrays||o.defaults){"),lA=0;lA<QA.length;++lA)oA("d%s=[]",gA.safeProp(QA[lA].name));oA("}")}if(EA.length){for(oA("if(o.objects||o.defaults){"),lA=0;lA<EA.length;++lA)oA("d%s={}",gA.safeProp(EA[lA].name));oA("}")}if(rA.length){for(oA("if(o.defaults){"),lA=0;lA<rA.length;++lA){var uA=rA[lA],cA=gA.safeProp(uA.name);if(uA.resolvedType instanceof tA)oA("d%s=o.enums===String?%j:%j",cA,uA.resolvedType.valuesById[uA.typeDefault],uA.typeDefault);else if(uA.long)oA("if(util.Long){")("var n=new util.Long(%i,%i,%j)",uA.typeDefault.low,uA.typeDefault.high,uA.typeDefault.unsigned)("d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n",cA)("}else")("d%s=o.longs===String?%j:%i",cA,uA.typeDefault.toString(),uA.typeDefault.toNumber());else if(uA.bytes){var hA="["+Array.prototype.slice.call(uA.typeDefault).join(",")+"]";oA("if(o.bytes===String)d%s=%j",cA,String.fromCharCode.apply(String,uA.typeDefault))("else{")("d%s=%s",cA,hA)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)",cA,cA)("}")}else oA("d%s=%j",cA,uA.typeDefault)}oA("}")}var dA=!1;for(lA=0;lA<CA.length;++lA){var uA=CA[lA],pA=sA._fieldsArray.indexOf(uA),cA=gA.safeProp(uA.name);uA.map?(dA||(dA=!0,oA("var ks2")),oA("if(m%s&&(ks2=Object.keys(m%s)).length){",cA,cA)("d%s={}",cA)("for(var j=0;j<ks2.length;++j){"),IA(oA,uA,pA,cA+"[ks2[j]]")("}")):uA.repeated?(oA("if(m%s&&m%s.length){",cA,cA)("d%s=[]",cA)("for(var j=0;j<m%s.length;++j){",cA),IA(oA,uA,pA,cA+"[j]")("}")):(oA("if(m%s!=null&&m.hasOwnProperty(%j)){",cA,uA.name),IA(oA,uA,pA,cA),uA.partOf&&oA("if(o.oneofs)")("d%s=%j",gA.safeProp(uA.partOf.name),uA.name)),oA("}")}return oA("return d")}}(converter)),converter}var wrappers={};(function(eA){var AA=eA,tA=message;AA[".google.protobuf.Any"]={fromObject:function(gA){if(gA&&gA["@type"]){var iA=gA["@type"].substring(gA["@type"].lastIndexOf("/")+1),IA=this.lookup(iA);if(IA){var BA=gA["@type"].charAt(0)==="."?gA["@type"].slice(1):gA["@type"];return BA.indexOf("/")===-1&&(BA="/"+BA),this.create({type_url:BA,value:IA.encode(IA.fromObject(gA)).finish()})}}return this.fromObject(gA)},toObject:function(gA,iA){var IA="type.googleapis.com/",BA="",sA="";if(iA&&iA.json&&gA.type_url&&gA.value){sA=gA.type_url.substring(gA.type_url.lastIndexOf("/")+1),BA=gA.type_url.substring(0,gA.type_url.lastIndexOf("/")+1);var CA=this.lookup(sA);CA&&(gA=CA.decode(gA.value))}if(!(gA instanceof this.ctor)&&gA instanceof tA){var oA=gA.$type.toObject(gA,iA),QA=gA.$type.fullName[0]==="."?gA.$type.fullName.slice(1):gA.$type.fullName;return BA===""&&(BA=IA),sA=BA+QA,oA["@type"]=sA,oA}return this.toObject(gA,iA)}}})(wrappers);var type,hasRequiredType;function requireType(){if(hasRequiredType)return type;hasRequiredType=1,type=cA;var eA=requireNamespace();((cA.prototype=Object.create(eA.prototype)).constructor=cA).className="Type";var AA=require_enum(),tA=requireOneof(),gA=requireField(),iA=requireMapfield(),IA=requireService(),BA=message,sA=reader,CA=writer,oA=requireUtil(),QA=requireEncoder(),EA=requireDecoder(),rA=requireVerifier(),lA=requireConverter(),uA=wrappers;function cA(dA,pA){eA.call(this,dA,pA),this.fields={},this.oneofs=void 0,this.extensions=void 0,this.reserved=void 0,this.group=void 0,this._fieldsById=null,this._fieldsArray=null,this._oneofsArray=null,this._ctor=null}Object.defineProperties(cA.prototype,{fieldsById:{get:function(){if(this._fieldsById)return this._fieldsById;this._fieldsById={};for(var dA=Object.keys(this.fields),pA=0;pA<dA.length;++pA){var wA=this.fields[dA[pA]],mA=wA.id;if(this._fieldsById[mA])throw Error("duplicate id "+mA+" in "+this);this._fieldsById[mA]=wA}return this._fieldsById}},fieldsArray:{get:function(){return this._fieldsArray||(this._fieldsArray=oA.toArray(this.fields))}},oneofsArray:{get:function(){return this._oneofsArray||(this._oneofsArray=oA.toArray(this.oneofs))}},ctor:{get:function(){return this._ctor||(this.ctor=cA.generateConstructor(this)())},set:function(dA){var pA=dA.prototype;pA instanceof BA||((dA.prototype=new BA).constructor=dA,oA.merge(dA.prototype,pA)),dA.$type=dA.prototype.$type=this,oA.merge(dA,BA,!0),this._ctor=dA;for(var wA=0;wA<this.fieldsArray.length;++wA)this._fieldsArray[wA].resolve();var mA={};for(wA=0;wA<this.oneofsArray.length;++wA)mA[this._oneofsArray[wA].resolve().name]={get:oA.oneOfGetter(this._oneofsArray[wA].oneof),set:oA.oneOfSetter(this._oneofsArray[wA].oneof)};wA&&Object.defineProperties(dA.prototype,mA)}}}),cA.generateConstructor=function(pA){for(var wA=oA.codegen(["p"],pA.name),mA=0,MA;mA<pA.fieldsArray.length;++mA)(MA=pA._fieldsArray[mA]).map?wA("this%s={}",oA.safeProp(MA.name)):MA.repeated&&wA("this%s=[]",oA.safeProp(MA.name));return wA("if(p)for(var ks=Object.keys(p),i=0;i<ks.length;++i)if(p[ks[i]]!=null)")("this[ks[i]]=p[ks[i]]")};function hA(dA){return dA._fieldsById=dA._fieldsArray=dA._oneofsArray=null,delete dA.encode,delete dA.decode,delete dA.verify,dA}return cA.fromJSON=function(pA,wA){var mA=new cA(pA,wA.options);mA.extensions=wA.extensions,mA.reserved=wA.reserved;for(var MA=Object.keys(wA.fields),fA=0;fA<MA.length;++fA)mA.add((typeof wA.fields[MA[fA]].keyType<"u"?iA.fromJSON:gA.fromJSON)(MA[fA],wA.fields[MA[fA]]));if(wA.oneofs)for(MA=Object.keys(wA.oneofs),fA=0;fA<MA.length;++fA)mA.add(tA.fromJSON(MA[fA],wA.oneofs[MA[fA]]));if(wA.nested)for(MA=Object.keys(wA.nested),fA=0;fA<MA.length;++fA){var LA=wA.nested[MA[fA]];mA.add((LA.id!==void 0?gA.fromJSON:LA.fields!==void 0?cA.fromJSON:LA.values!==void 0?AA.fromJSON:LA.methods!==void 0?IA.fromJSON:eA.fromJSON)(MA[fA],LA))}return wA.extensions&&wA.extensions.length&&(mA.extensions=wA.extensions),wA.reserved&&wA.reserved.length&&(mA.reserved=wA.reserved),wA.group&&(mA.group=!0),wA.comment&&(mA.comment=wA.comment),mA},cA.prototype.toJSON=function(pA){var wA=eA.prototype.toJSON.call(this,pA),mA=pA?!!pA.keepComments:!1;return oA.toObject(["options",wA&&wA.options||void 0,"oneofs",eA.arrayToJSON(this.oneofsArray,pA),"fields",eA.arrayToJSON(this.fieldsArray.filter(function(MA){return!MA.declaringField}),pA)||{},"extensions",this.extensions&&this.extensions.length?this.extensions:void 0,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"group",this.group||void 0,"nested",wA&&wA.nested||void 0,"comment",mA?this.comment:void 0])},cA.prototype.resolveAll=function(){for(var pA=this.fieldsArray,wA=0;wA<pA.length;)pA[wA++].resolve();var mA=this.oneofsArray;for(wA=0;wA<mA.length;)mA[wA++].resolve();return eA.prototype.resolveAll.call(this)},cA.prototype.get=function(pA){return this.fields[pA]||this.oneofs&&this.oneofs[pA]||this.nested&&this.nested[pA]||null},cA.prototype.add=function(pA){if(this.get(pA.name))throw Error("duplicate name '"+pA.name+"' in "+this);if(pA instanceof gA&&pA.extend===void 0){if(this._fieldsById?this._fieldsById[pA.id]:this.fieldsById[pA.id])throw Error("duplicate id "+pA.id+" in "+this);if(this.isReservedId(pA.id))throw Error("id "+pA.id+" is reserved in "+this);if(this.isReservedName(pA.name))throw Error("name '"+pA.name+"' is reserved in "+this);return pA.parent&&pA.parent.remove(pA),this.fields[pA.name]=pA,pA.message=this,pA.onAdd(this),hA(this)}return pA instanceof tA?(this.oneofs||(this.oneofs={}),this.oneofs[pA.name]=pA,pA.onAdd(this),hA(this)):eA.prototype.add.call(this,pA)},cA.prototype.remove=function(pA){if(pA instanceof gA&&pA.extend===void 0){if(!this.fields||this.fields[pA.name]!==pA)throw Error(pA+" is not a member of "+this);return delete this.fields[pA.name],pA.parent=null,pA.onRemove(this),hA(this)}if(pA instanceof tA){if(!this.oneofs||this.oneofs[pA.name]!==pA)throw Error(pA+" is not a member of "+this);return delete this.oneofs[pA.name],pA.parent=null,pA.onRemove(this),hA(this)}return eA.prototype.remove.call(this,pA)},cA.prototype.isReservedId=function(pA){return eA.isReservedId(this.reserved,pA)},cA.prototype.isReservedName=function(pA){return eA.isReservedName(this.reserved,pA)},cA.prototype.create=function(pA){return new this.ctor(pA)},cA.prototype.setup=function(){for(var pA=this.fullName,wA=[],mA=0;mA<this.fieldsArray.length;++mA)wA.push(this._fieldsArray[mA].resolve().resolvedType);this.encode=QA(this)({Writer:CA,types:wA,util:oA}),this.decode=EA(this)({Reader:sA,types:wA,util:oA}),this.verify=rA(this)({types:wA,util:oA}),this.fromObject=lA.fromObject(this)({types:wA,util:oA}),this.toObject=lA.toObject(this)({types:wA,util:oA});var MA=uA[pA];if(MA){var fA=Object.create(this);fA.fromObject=this.fromObject,this.fromObject=MA.fromObject.bind(fA),fA.toObject=this.toObject,this.toObject=MA.toObject.bind(fA)}return this},cA.prototype.encode=function(pA,wA){return this.setup().encode(pA,wA)},cA.prototype.encodeDelimited=function(pA,wA){return this.encode(pA,wA&&wA.len?wA.fork():wA).ldelim()},cA.prototype.decode=function(pA,wA){return this.setup().decode(pA,wA)},cA.prototype.decodeDelimited=function(pA){return pA instanceof sA||(pA=sA.create(pA)),this.decode(pA,pA.uint32())},cA.prototype.verify=function(pA){return this.setup().verify(pA)},cA.prototype.fromObject=function(pA){return this.setup().fromObject(pA)},cA.prototype.toObject=function(pA,wA){return this.setup().toObject(pA,wA)},cA.d=function(pA){return function(mA){oA.decorateType(mA,pA)}},type}var root,hasRequiredRoot;function requireRoot(){if(hasRequiredRoot)return root;hasRequiredRoot=1,root=CA;var eA=requireNamespace();((CA.prototype=Object.create(eA.prototype)).constructor=CA).className="Root";var AA=requireField(),tA=require_enum(),gA=requireOneof(),iA=requireUtil(),IA,BA,sA;function CA(rA){eA.call(this,"",rA),this.deferred=[],this.files=[]}CA.fromJSON=function(lA,uA){return uA||(uA=new CA),lA.options&&uA.setOptions(lA.options),uA.addJSON(lA.nested)},CA.prototype.resolvePath=iA.path.resolve,CA.prototype.fetch=iA.fetch;function oA(){}CA.prototype.load=function rA(lA,uA,cA){typeof uA=="function"&&(cA=uA,uA=void 0);var hA=this;if(!cA)return iA.asPromise(rA,hA,lA,uA);var dA=cA===oA;function pA(bA,JA){if(cA){if(dA)throw bA;var RA=cA;cA=null,RA(bA,JA)}}function wA(bA){var JA=bA.lastIndexOf("google/protobuf/");if(JA>-1){var RA=bA.substring(JA);if(RA in sA)return RA}return null}function mA(bA,JA){try{if(iA.isString(JA)&&JA.charAt(0)==="{"&&(JA=JSON.parse(JA)),!iA.isString(JA))hA.setOptions(JA.options).addJSON(JA.nested);else{BA.filename=bA;var RA=BA(JA,hA,uA),NA,FA=0;if(RA.imports)for(;FA<RA.imports.length;++FA)(NA=wA(RA.imports[FA])||hA.resolvePath(bA,RA.imports[FA]))&&MA(NA);if(RA.weakImports)for(FA=0;FA<RA.weakImports.length;++FA)(NA=wA(RA.weakImports[FA])||hA.resolvePath(bA,RA.weakImports[FA]))&&MA(NA,!0)}}catch(vA){pA(vA)}!dA&&!fA&&pA(null,hA)}function MA(bA,JA){if(bA=wA(bA)||bA,!(hA.files.indexOf(bA)>-1)){if(hA.files.push(bA),bA in sA){dA?mA(bA,sA[bA]):(++fA,setTimeout(function(){--fA,mA(bA,sA[bA])}));return}if(dA){var RA;try{RA=iA.fs.readFileSync(bA).toString("utf8")}catch(NA){JA||pA(NA);return}mA(bA,RA)}else++fA,hA.fetch(bA,function(NA,FA){if(--fA,!!cA){if(NA){JA?fA||pA(null,hA):pA(NA);return}mA(bA,FA)}})}}var fA=0;iA.isString(lA)&&(lA=[lA]);for(var LA=0,_A;LA<lA.length;++LA)(_A=hA.resolvePath("",lA[LA]))&&MA(_A);if(dA)return hA;fA||pA(null,hA)},CA.prototype.loadSync=function(lA,uA){if(!iA.isNode)throw Error("not supported");return this.load(lA,uA,oA)},CA.prototype.resolveAll=function(){if(this.deferred.length)throw Error("unresolvable extensions: "+this.deferred.map(function(lA){return"'extend "+lA.extend+"' in "+lA.parent.fullName}).join(", "));return eA.prototype.resolveAll.call(this)};var QA=/^[A-Z]/;function EA(rA,lA){var uA=lA.parent.lookup(lA.extend);if(uA){var cA=new AA(lA.fullName,lA.id,lA.type,lA.rule,void 0,lA.options);return uA.get(cA.name)||(cA.declaringField=lA,lA.extensionField=cA,uA.add(cA)),!0}return!1}return CA.prototype._handleAdd=function(lA){if(lA instanceof AA)lA.extend!==void 0&&!lA.extensionField&&(EA(this,lA)||this.deferred.push(lA));else if(lA instanceof tA)QA.test(lA.name)&&(lA.parent[lA.name]=lA.values);else if(!(lA instanceof gA)){if(lA instanceof IA)for(var uA=0;uA<this.deferred.length;)EA(this,this.deferred[uA])?this.deferred.splice(uA,1):++uA;for(var cA=0;cA<lA.nestedArray.length;++cA)this._handleAdd(lA._nestedArray[cA]);QA.test(lA.name)&&(lA.parent[lA.name]=lA)}},CA.prototype._handleRemove=function(lA){if(lA instanceof AA){if(lA.extend!==void 0)if(lA.extensionField)lA.extensionField.parent.remove(lA.extensionField),lA.extensionField=null;else{var uA=this.deferred.indexOf(lA);uA>-1&&this.deferred.splice(uA,1)}}else if(lA instanceof tA)QA.test(lA.name)&&delete lA.parent[lA.name];else if(lA instanceof eA){for(var cA=0;cA<lA.nestedArray.length;++cA)this._handleRemove(lA._nestedArray[cA]);QA.test(lA.name)&&delete lA.parent[lA.name]}},CA._configure=function(rA,lA,uA){IA=rA,BA=lA,sA=uA},root}var hasRequiredUtil;function requireUtil(){if(hasRequiredUtil)return util$1.exports;hasRequiredUtil=1;var eA=util$1.exports=requireMinimal(),AA=roots,tA,gA;eA.codegen=codegen_1,eA.fetch=fetch_1,eA.path=path,eA.fs=eA.inquire("fs"),eA.toArray=function(oA){if(oA){for(var QA=Object.keys(oA),EA=new Array(QA.length),rA=0;rA<QA.length;)EA[rA]=oA[QA[rA++]];return EA}return[]},eA.toObject=function(oA){for(var QA={},EA=0;EA<oA.length;){var rA=oA[EA++],lA=oA[EA++];lA!==void 0&&(QA[rA]=lA)}return QA};var iA=/\\/g,IA=/"/g;eA.isReserved=function(oA){return/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/.test(oA)},eA.safeProp=function(oA){return!/^[$\w_]+$/.test(oA)||eA.isReserved(oA)?'["'+oA.replace(iA,"\\\\").replace(IA,'\\"')+'"]':"."+oA},eA.ucFirst=function(oA){return oA.charAt(0).toUpperCase()+oA.substring(1)};var BA=/_([a-z])/g;eA.camelCase=function(oA){return oA.substring(0,1)+oA.substring(1).replace(BA,function(QA,EA){return EA.toUpperCase()})},eA.compareFieldsById=function(oA,QA){return oA.id-QA.id},eA.decorateType=function(oA,QA){if(oA.$type)return QA&&oA.$type.name!==QA&&(eA.decorateRoot.remove(oA.$type),oA.$type.name=QA,eA.decorateRoot.add(oA.$type)),oA.$type;tA||(tA=requireType());var EA=new tA(QA||oA.name);return eA.decorateRoot.add(EA),EA.ctor=oA,Object.defineProperty(oA,"$type",{value:EA,enumerable:!1}),Object.defineProperty(oA.prototype,"$type",{value:EA,enumerable:!1}),EA};var sA=0;return eA.decorateEnum=function(oA){if(oA.$type)return oA.$type;gA||(gA=require_enum());var QA=new gA("Enum"+sA++,oA);return eA.decorateRoot.add(QA),Object.defineProperty(oA,"$type",{value:QA,enumerable:!1}),QA},eA.setProperty=function(oA,QA,EA){function rA(lA,uA,cA){var hA=uA.shift();if(hA==="__proto__"||hA==="prototype")return lA;if(uA.length>0)lA[hA]=rA(lA[hA]||{},uA,cA);else{var dA=lA[hA];dA&&(cA=[].concat(dA).concat(cA)),lA[hA]=cA}return lA}if(typeof oA!="object")throw TypeError("dst must be an object");if(!QA)throw TypeError("path must be specified");return QA=QA.split("."),rA(oA,QA,EA)},Object.defineProperty(eA,"decorateRoot",{get:function(){return AA.decorated||(AA.decorated=new(requireRoot()))}}),util$1.exports}var object$3,hasRequiredObject;function requireObject(){if(hasRequiredObject)return object$3;hasRequiredObject=1,object$3=tA,tA.className="ReflectionObject";var eA=requireUtil(),AA;function tA(gA,iA){if(!eA.isString(gA))throw TypeError("name must be a string");if(iA&&!eA.isObject(iA))throw TypeError("options must be an object");this.options=iA,this.parsedOptions=null,this.name=gA,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}return Object.defineProperties(tA.prototype,{root:{get:function(){for(var gA=this;gA.parent!==null;)gA=gA.parent;return gA}},fullName:{get:function(){for(var gA=[this.name],iA=this.parent;iA;)gA.unshift(iA.name),iA=iA.parent;return gA.join(".")}}}),tA.prototype.toJSON=function(){throw Error()},tA.prototype.onAdd=function(iA){this.parent&&this.parent!==iA&&this.parent.remove(this),this.parent=iA,this.resolved=!1;var IA=iA.root;IA instanceof AA&&IA._handleAdd(this)},tA.prototype.onRemove=function(iA){var IA=iA.root;IA instanceof AA&&IA._handleRemove(this),this.parent=null,this.resolved=!1},tA.prototype.resolve=function(){return this.resolved?this:(this.root instanceof AA&&(this.resolved=!0),this)},tA.prototype.getOption=function(iA){if(this.options)return this.options[iA]},tA.prototype.setOption=function(iA,IA,BA){return(!BA||!this.options||this.options[iA]===void 0)&&((this.options||(this.options={}))[iA]=IA),this},tA.prototype.setParsedOption=function(iA,IA,BA){this.parsedOptions||(this.parsedOptions=[]);var sA=this.parsedOptions;if(BA){var CA=sA.find(function(EA){return Object.prototype.hasOwnProperty.call(EA,iA)});if(CA){var oA=CA[iA];eA.setProperty(oA,BA,IA)}else CA={},CA[iA]=eA.setProperty({},BA,IA),sA.push(CA)}else{var QA={};QA[iA]=IA,sA.push(QA)}return this},tA.prototype.setOptions=function(iA,IA){if(iA)for(var BA=Object.keys(iA),sA=0;sA<BA.length;++sA)this.setOption(BA[sA],iA[BA[sA]],IA);return this},tA.prototype.toString=function(){var iA=this.constructor.className,IA=this.fullName;return IA.length?iA+" "+IA:iA},tA._configure=function(gA){AA=gA},object$3}var _enum,hasRequired_enum;function require_enum(){if(hasRequired_enum)return _enum;hasRequired_enum=1,_enum=gA;var eA=requireObject();((gA.prototype=Object.create(eA.prototype)).constructor=gA).className="Enum";var AA=requireNamespace(),tA=requireUtil();function gA(iA,IA,BA,sA,CA,oA){if(eA.call(this,iA,BA),IA&&typeof IA!="object")throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=sA,this.comments=CA||{},this.valuesOptions=oA,this.reserved=void 0,IA)for(var QA=Object.keys(IA),EA=0;EA<QA.length;++EA)typeof IA[QA[EA]]=="number"&&(this.valuesById[this.values[QA[EA]]=IA[QA[EA]]]=QA[EA])}return gA.fromJSON=function(IA,BA){var sA=new gA(IA,BA.values,BA.options,BA.comment,BA.comments);return sA.reserved=BA.reserved,sA},gA.prototype.toJSON=function(IA){var BA=IA?!!IA.keepComments:!1;return tA.toObject(["options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",BA?this.comment:void 0,"comments",BA?this.comments:void 0])},gA.prototype.add=function(IA,BA,sA,CA){if(!tA.isString(IA))throw TypeError("name must be a string");if(!tA.isInteger(BA))throw TypeError("id must be an integer");if(this.values[IA]!==void 0)throw Error("duplicate name '"+IA+"' in "+this);if(this.isReservedId(BA))throw Error("id "+BA+" is reserved in "+this);if(this.isReservedName(IA))throw Error("name '"+IA+"' is reserved in "+this);if(this.valuesById[BA]!==void 0){if(!(this.options&&this.options.allow_alias))throw Error("duplicate id "+BA+" in "+this);this.values[IA]=BA}else this.valuesById[this.values[IA]=BA]=IA;return CA&&(this.valuesOptions===void 0&&(this.valuesOptions={}),this.valuesOptions[IA]=CA||null),this.comments[IA]=sA||null,this},gA.prototype.remove=function(IA){if(!tA.isString(IA))throw TypeError("name must be a string");var BA=this.values[IA];if(BA==null)throw Error("name '"+IA+"' does not exist in "+this);return delete this.valuesById[BA],delete this.values[IA],delete this.comments[IA],this.valuesOptions&&delete this.valuesOptions[IA],this},gA.prototype.isReservedId=function(IA){return AA.isReservedId(this.reserved,IA)},gA.prototype.isReservedName=function(IA){return AA.isReservedName(this.reserved,IA)},_enum}var encoder_1,hasRequiredEncoder;function requireEncoder(){if(hasRequiredEncoder)return encoder_1;hasRequiredEncoder=1,encoder_1=iA;var eA=require_enum(),AA=requireTypes(),tA=requireUtil();function gA(IA,BA,sA,CA){return BA.resolvedType.group?IA("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",sA,CA,(BA.id<<3|3)>>>0,(BA.id<<3|4)>>>0):IA("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",sA,CA,(BA.id<<3|2)>>>0)}function iA(IA){for(var BA=tA.codegen(["m","w"],IA.name+"$encode")("if(!w)")("w=Writer.create()"),sA,CA,oA=IA.fieldsArray.slice().sort(tA.compareFieldsById),sA=0;sA<oA.length;++sA){var QA=oA[sA].resolve(),EA=IA._fieldsArray.indexOf(QA),rA=QA.resolvedType instanceof eA?"int32":QA.type,lA=AA.basic[rA];CA="m"+tA.safeProp(QA.name),QA.map?(BA("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){",CA,QA.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){",CA)("w.uint32(%i).fork().uint32(%i).%s(ks[i])",(QA.id<<3|2)>>>0,8|AA.mapKey[QA.keyType],QA.keyType),lA===void 0?BA("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",EA,CA):BA(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|lA,rA,CA),BA("}")("}")):QA.repeated?(BA("if(%s!=null&&%s.length){",CA,CA),QA.packed&&AA.packed[rA]!==void 0?BA("w.uint32(%i).fork()",(QA.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",CA)("w.%s(%s[i])",rA,CA)("w.ldelim()"):(BA("for(var i=0;i<%s.length;++i)",CA),lA===void 0?gA(BA,QA,EA,CA+"[i]"):BA("w.uint32(%i).%s(%s[i])",(QA.id<<3|lA)>>>0,rA,CA)),BA("}")):(QA.optional&&BA("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",CA,QA.name),lA===void 0?gA(BA,QA,EA,CA):BA("w.uint32(%i).%s(%s)",(QA.id<<3|lA)>>>0,rA,CA))}return BA("return w")}return encoder_1}var protobuf=indexLight.exports=indexMinimal;protobuf.build="light";function load$1(eA,AA,tA){return typeof AA=="function"?(tA=AA,AA=new protobuf.Root):AA||(AA=new protobuf.Root),AA.load(eA,tA)}protobuf.load=load$1;function loadSync(eA,AA){return AA||(AA=new protobuf.Root),AA.loadSync(eA)}protobuf.loadSync=loadSync,protobuf.encoder=requireEncoder(),protobuf.decoder=requireDecoder(),protobuf.verifier=requireVerifier(),protobuf.converter=requireConverter(),protobuf.ReflectionObject=requireObject(),protobuf.Namespace=requireNamespace(),protobuf.Root=requireRoot(),protobuf.Enum=require_enum(),protobuf.Type=requireType(),protobuf.Field=requireField(),protobuf.OneOf=requireOneof(),protobuf.MapField=requireMapfield(),protobuf.Service=requireService(),protobuf.Method=requireMethod(),protobuf.Message=message,protobuf.wrappers=wrappers,protobuf.types=requireTypes(),protobuf.util=requireUtil(),protobuf.ReflectionObject._configure(protobuf.Root),protobuf.Namespace._configure(protobuf.Type,protobuf.Service,protobuf.Enum),protobuf.Root._configure(protobuf.Type),protobuf.Field._configure(protobuf.Type);var indexLightExports=indexLight.exports,light=indexLightExports,protobufjs=getDefaultExportFromCjs(light);const proto_data={options:{syntax:"proto3",optimize_for:"LITE_RUNTIME"},nested:{nil:{nested:{xit:{nested:{proto:{nested:{MessageType:{values:{MessageType_FrameRequest:0,MessageType_FrameResponse:1,MessageType_FrameCache:2,MessageType_FrameLoaded:3,MessageType_FrameSubscribe:4,MessageType_FrameUnsubscribe:5,MessageType_ValueRequest:6,MessageType_ValueResponse:7,MessageType_ValueUpdate:8,MessageType_SignalRequest:9,MessageType_SignalResponse:10,MessageType_SignalNotify:11,MessageType_FileRequest:12,MessageType_FileResponse:13}},FrameRequest:{fields:{id:{type:"string",id:1}}},FrameResponse:{oneofs:{value:{oneof:["file","content"]}},fields:{id:{type:"string",id:1},file:{type:"string",id:2},content:{type:"string",id:3}}},FrameCache:{fields:{id:{type:"string",id:1},content:{type:"string",id:2},files:{rule:"repeated",type:"FileInfo",id:3}}},FrameLoaded:{oneofs:{_tag:{oneof:["tag"]}},fields:{id:{type:"string",id:1},tag:{type:"string",id:2,options:{proto3_optional:!0}}}},FrameSubscribe:{oneofs:{_tag:{oneof:["tag"]}},fields:{id:{type:"string",id:1},tag:{type:"string",id:2,options:{proto3_optional:!0}}}},FrameUnsubscribe:{oneofs:{_tag:{oneof:["tag"]}},fields:{id:{type:"string",id:1},tag:{type:"string",id:2,options:{proto3_optional:!0}}}},Value:{oneofs:{value:{oneof:["value_boolean","value_number","value_double","value_string","value_buffer"]}},fields:{id:{type:"string",id:1},value_boolean:{type:"bool",id:2},value_number:{type:"int64",id:3},value_double:{type:"double",id:4},value_string:{type:"string",id:5},value_buffer:{type:"bytes",id:6}}},ValueRequest:{oneofs:{_tag:{oneof:["tag"]}},fields:{id:{type:"string",id:1},tag:{type:"string",id:2,options:{proto3_optional:!0}}}},ValueResponse:{oneofs:{_tag:{oneof:["tag"]}},fields:{id:{type:"string",id:1},tag:{type:"string",id:2,options:{proto3_optional:!0}},values:{rule:"repeated",type:"Value",id:3}}},ValueUpdate:{oneofs:{_tag:{oneof:["tag"]}},fields:{id:{type:"string",id:1},tag:{type:"string",id:2,options:{proto3_optional:!0}},value:{type:"Value",id:3}}},SignalRequest:{fields:{id:{type:"string",id:1}}},Signal:{oneofs:{_type:{oneof:["type"]}},fields:{id:{type:"string",id:1},type:{type:"string",id:2,options:{proto3_optional:!0}}}},SignalResponse:{oneofs:{_tag:{oneof:["tag"]}},fields:{id:{type:"string",id:1},tag:{type:"string",id:2,options:{proto3_optional:!0}},signals:{rule:"repeated",type:"Signal",id:3}}},SignalNotify:{oneofs:{_tag:{oneof:["tag"]},arg:{oneof:["arg_boolean","arg_number","arg_double","arg_string","arg_buffer"]}},fields:{frame_id:{type:"string",id:1},tag:{type:"string",id:2,options:{proto3_optional:!0}},signal_id:{type:"string",id:3},arg_boolean:{type:"bool",id:4},arg_number:{type:"int64",id:5},arg_double:{type:"double",id:6},arg_string:{type:"string",id:7},arg_buffer:{type:"bytes",id:8}}},FileRequest:{fields:{target:{type:"string",id:1}}},FileResponse:{fields:{target:{type:"string",id:1},content:{type:"string",id:2},metadata:{type:"bytes",id:3}}},FileInfo:{fields:{target:{type:"string",id:1},metadata:{type:"bytes",id:2}}}}}}}}}}},nil_xit_proto=protobufjs.Root.fromJSON(proto_data).lookup("nil.xit.proto");var astralIdentifierCodes=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],astralIdentifierStartCodes=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],nonASCIIidentifierChars="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",nonASCIIidentifierStartChars="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",reservedWords={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},ecma5AndLessKeywords="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",keywords$1={5:ecma5AndLessKeywords,"5module":ecma5AndLessKeywords+" export import",6:ecma5AndLessKeywords+" const class extends export import super"},keywordRelationalOperator=/^in(stanceof)?$/,nonASCIIidentifierStart=new RegExp("["+nonASCIIidentifierStartChars+"]"),nonASCIIidentifier=new RegExp("["+nonASCIIidentifierStartChars+nonASCIIidentifierChars+"]");function isInAstralSet(eA,AA){for(var tA=65536,gA=0;gA<AA.length;gA+=2){if(tA+=AA[gA],tA>eA)return!1;if(tA+=AA[gA+1],tA>=eA)return!0}return!1}function isIdentifierStart(eA,AA){return eA<65?eA===36:eA<91?!0:eA<97?eA===95:eA<123?!0:eA<=65535?eA>=170&&nonASCIIidentifierStart.test(String.fromCharCode(eA)):AA===!1?!1:isInAstralSet(eA,astralIdentifierStartCodes)}function isIdentifierChar(eA,AA){return eA<48?eA===36:eA<58?!0:eA<65?!1:eA<91?!0:eA<97?eA===95:eA<123?!0:eA<=65535?eA>=170&&nonASCIIidentifier.test(String.fromCharCode(eA)):AA===!1?!1:isInAstralSet(eA,astralIdentifierStartCodes)||isInAstralSet(eA,astralIdentifierCodes)}var TokenType=function eA(AA,tA){tA===void 0&&(tA={}),this.label=AA,this.keyword=tA.keyword,this.beforeExpr=!!tA.beforeExpr,this.startsExpr=!!tA.startsExpr,this.isLoop=!!tA.isLoop,this.isAssign=!!tA.isAssign,this.prefix=!!tA.prefix,this.postfix=!!tA.postfix,this.binop=tA.binop||null,this.updateContext=null};function binop(eA,AA){return new TokenType(eA,{beforeExpr:!0,binop:AA})}var beforeExpr={beforeExpr:!0},startsExpr={startsExpr:!0},keywords={};function kw(eA,AA){return AA===void 0&&(AA={}),AA.keyword=eA,keywords[eA]=new TokenType(eA,AA)}var types$1={num:new TokenType("num",startsExpr),regexp:new TokenType("regexp",startsExpr),string:new TokenType("string",startsExpr),name:new TokenType("name",startsExpr),privateId:new TokenType("privateId",startsExpr),eof:new TokenType("eof"),bracketL:new TokenType("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new TokenType("]"),braceL:new TokenType("{",{beforeExpr:!0,startsExpr:!0}),braceR:new TokenType("}"),parenL:new TokenType("(",{beforeExpr:!0,startsExpr:!0}),parenR:new TokenType(")"),comma:new TokenType(",",beforeExpr),semi:new TokenType(";",beforeExpr),colon:new TokenType(":",beforeExpr),dot:new TokenType("."),question:new TokenType("?",beforeExpr),questionDot:new TokenType("?."),arrow:new TokenType("=>",beforeExpr),template:new TokenType("template"),invalidTemplate:new TokenType("invalidTemplate"),ellipsis:new TokenType("...",beforeExpr),backQuote:new TokenType("`",startsExpr),dollarBraceL:new TokenType("${",{beforeExpr:!0,startsExpr:!0}),eq:new TokenType("=",{beforeExpr:!0,isAssign:!0}),assign:new TokenType("_=",{beforeExpr:!0,isAssign:!0}),incDec:new TokenType("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new TokenType("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:binop("||",1),logicalAND:binop("&&",2),bitwiseOR:binop("|",3),bitwiseXOR:binop("^",4),bitwiseAND:binop("&",5),equality:binop("==/!=/===/!==",6),relational:binop("</>/<=/>=",7),bitShift:binop("<</>>/>>>",8),plusMin:new TokenType("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:binop("%",10),star:binop("*",10),slash:binop("/",10),starstar:new TokenType("**",{beforeExpr:!0}),coalesce:binop("??",1),_break:kw("break"),_case:kw("case",beforeExpr),_catch:kw("catch"),_continue:kw("continue"),_debugger:kw("debugger"),_default:kw("default",beforeExpr),_do:kw("do",{isLoop:!0,beforeExpr:!0}),_else:kw("else",beforeExpr),_finally:kw("finally"),_for:kw("for",{isLoop:!0}),_function:kw("function",startsExpr),_if:kw("if"),_return:kw("return",beforeExpr),_switch:kw("switch"),_throw:kw("throw",beforeExpr),_try:kw("try"),_var:kw("var"),_const:kw("const"),_while:kw("while",{isLoop:!0}),_with:kw("with"),_new:kw("new",{beforeExpr:!0,startsExpr:!0}),_this:kw("this",startsExpr),_super:kw("super",startsExpr),_class:kw("class",startsExpr),_extends:kw("extends",beforeExpr),_export:kw("export"),_import:kw("import",startsExpr),_null:kw("null",startsExpr),_true:kw("true",startsExpr),_false:kw("false",startsExpr),_in:kw("in",{beforeExpr:!0,binop:7}),_instanceof:kw("instanceof",{beforeExpr:!0,binop:7}),_typeof:kw("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:kw("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:kw("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},lineBreak=/\r\n?|\n|\u2028|\u2029/,lineBreakG=new RegExp(lineBreak.source,"g");function isNewLine(eA){return eA===10||eA===13||eA===8232||eA===8233}function nextLineBreak(eA,AA,tA){tA===void 0&&(tA=eA.length);for(var gA=AA;gA<tA;gA++){var iA=eA.charCodeAt(gA);if(isNewLine(iA))return gA<tA-1&&iA===13&&eA.charCodeAt(gA+1)===10?gA+2:gA+1}return-1}var nonASCIIwhitespace=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,skipWhiteSpace=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ref=Object.prototype,hasOwnProperty=ref.hasOwnProperty,toString$1=ref.toString,hasOwn=Object.hasOwn||function(eA,AA){return hasOwnProperty.call(eA,AA)},isArray=Array.isArray||function(eA){return toString$1.call(eA)==="[object Array]"},regexpCache=Object.create(null);function wordsRegexp(eA){return regexpCache[eA]||(regexpCache[eA]=new RegExp("^(?:"+eA.replace(/ /g,"|")+")$"))}function codePointToString(eA){return eA<=65535?String.fromCharCode(eA):(eA-=65536,String.fromCharCode((eA>>10)+55296,(eA&1023)+56320))}var loneSurrogate=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Position=function eA(AA,tA){this.line=AA,this.column=tA};Position.prototype.offset=function eA(AA){return new Position(this.line,this.column+AA)};var SourceLocation=function eA(AA,tA,gA){this.start=tA,this.end=gA,AA.sourceFile!==null&&(this.source=AA.sourceFile)};function getLineInfo(eA,AA){for(var tA=1,gA=0;;){var iA=nextLineBreak(eA,gA,AA);if(iA<0)return new Position(tA,AA-gA);++tA,gA=iA}}var defaultOptions={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},warnedAboutEcmaVersion=!1;function getOptions(eA){var AA={};for(var tA in defaultOptions)AA[tA]=eA&&hasOwn(eA,tA)?eA[tA]:defaultOptions[tA];if(AA.ecmaVersion==="latest"?AA.ecmaVersion=1e8:AA.ecmaVersion==null?(!warnedAboutEcmaVersion&&typeof console=="object"&&console.warn&&(warnedAboutEcmaVersion=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
@@ -17,7 +17,7 @@ import Component from "${USER_TAG}${eA.replace(/\\/g,"/")}";
17
17
  export const action = (target, context) => {
18
18
  let ref = mount(Component, { target, context });
19
19
  return { destroy: () => unmount(ref) };
20
- };`,JSON_PKG_CACHE=new Map,SCOPED_PKG_REGEX=/^(@[^/]*\/[^/]*)(?:\/(.*))?$/s,PKG_REGEX=/^([^/]*)(?:\/(.*))?$/s,FILE_PREFIX="file:/",WIN_FILE_PREFIX="file:///",resolve_local=async(eA,AA)=>{if(AA!=null){const tA=new URL(`${FILE_PREFIX}${AA}`),gA=new URL(eA,tA).href;return gA.startsWith(WIN_FILE_PREFIX)?gA.slice(8):gA.slice(6)}return eA},resolve_remote=async(eA,AA)=>(await fetch(new URL(eA,AA),{method:"HEAD"})).url,fetch_json_remote=async eA=>{const AA=await fetch(eA);if(AA.ok)return JSON.parse(await AA.text())},fetch_package_json=async(eA,AA)=>{const[tA,gA,iA=""]=eA.split(eA.startsWith("@")?SCOPED_PKG_REGEX:PKG_REGEX),IA=`${AA}/${gA}`,BA=`${IA}/package.json`;if(JSON_PKG_CACHE.has(BA))return JSON_PKG_CACHE.get(BA);const sA=await fetch_json_remote(BA);if(sA!=null)return JSON_PKG_CACHE.set(BA,{base:IA,rest:iA,json:sA}),JSON_PKG_CACHE.get(BA)},resolve_id=eA=>({input:AA=>({resolved:AA}),hook:async(AA,tA)=>{if(AA.startsWith(INTERNAL_TAG)||AA.startsWith(USER_TAG))return AA;if(AA.startsWith(".")){if(tA!=null&&tA.startsWith(USER_TAG))return`${USER_TAG}${await resolve_local(AA,tA.slice(USER_TAG.length))}`;if(tA!=null&&tA.startsWith(RESOURCE_TAG))return`${RESOURCE_TAG}${await resolve_remote(AA,tA.slice(RESOURCE_TAG.length))}`}if(AA.startsWith("https://"))return null;const gA=await fetch_package_json(AA,eA.cdn_url);if(gA!=null){const iA=o$2(gA.json,gA.rest,{browser:!0,conditions:["svelte","production"]});if(iA!=null){if(Array.isArray(iA)&&iA.length>0)return`${RESOURCE_TAG}${await resolve_remote(`${gA.base}/${iA[0]}`)}`;if(typeof iA=="string")return`${RESOURCE_TAG}${await resolve_remote(`${gA.base}/${iA}`)}`}else{const IA=i$3(gA.json);if(IA!=null)return`${RESOURCE_TAG}${await resolve_remote(`${gA.base}/${IA}`)}`}}throw"unknown file, should be unreachable"}});function walk(eA,AA,tA){const gA=tA._;let iA=!1;function IA(sA,{next:CA,state:oA}){CA(oA)}function BA(sA,CA,oA){if(iA||!sA.type)return;let QA;const EA={},rA={path:CA,state:oA,next:(uA=oA)=>{CA.push(sA);for(const cA in sA){if(cA==="type")continue;const hA=sA[cA];if(hA&&typeof hA=="object")if(Array.isArray(hA)){const dA={};hA.forEach((pA,wA)=>{if(pA&&typeof pA=="object"){const mA=BA(pA,CA,uA);mA&&(dA[wA]=mA)}}),Object.keys(dA).length>0&&(EA[cA]=hA.map((pA,wA)=>dA[wA]??pA))}else{const dA=BA(hA,CA,uA);dA&&(EA[cA]=dA)}}if(CA.pop(),Object.keys(EA).length>0)return apply_mutations(sA,EA)},stop:()=>{iA=!0},visit:(uA,cA=oA)=>{CA.push(sA);const hA=BA(uA,CA,cA)??uA;return CA.pop(),hA}};let lA=tA[sA.type]??IA;if(gA){let uA;QA=gA(sA,{...rA,next:(cA=oA)=>(oA=cA,uA=lA(sA,{...rA,state:cA}),uA)}),!QA&&uA&&(QA=uA)}else QA=lA(sA,rA);if(QA||Object.keys(EA).length>0&&(QA=apply_mutations(sA,EA)),QA)return QA}return BA(eA,[],AA)??eA}function apply_mutations(eA,AA){const tA={},gA=Object.getOwnPropertyDescriptors(eA);for(const iA in gA)Object.defineProperty(tA,iA,gA[iA]);for(const iA in AA)tA[iA]=AA[iA];return tA}const regex_whitespace=/\s/,regex_whitespaces=/\s+/,regex_starts_with_newline=/^\r?\n/,regex_starts_with_whitespace=/^\s/,regex_starts_with_whitespaces=/^[ \t\r\n]+/,regex_ends_with_whitespace=/\s$/,regex_ends_with_whitespaces=/[ \t\r\n]+$/,regex_not_whitespace=/[^ \t\r\n]/,regex_whitespaces_strict=/[ \t\n\r\f]+/g,regex_only_whitespaces=/^[ \t\n\r\f]+$/,regex_not_newline_characters=/[^\n]/g,regex_is_valid_identifier=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/,regex_invalid_identifier_chars=/(^[^a-zA-Z_$]|[^a-zA-Z0-9_$])/g,regex_starts_with_vowel=/^[aeiou]/,regex_heading_tags=/^h[1-6]$/,regex_illegal_attribute_character=/(^[0-9-.])|[\^$@%&#?!|()[\]{}^*+~;]/,EACH_ITEM_REACTIVE=1,EACH_INDEX_REACTIVE=2,EACH_IS_CONTROLLED=4,EACH_IS_ANIMATED=8,EACH_ITEM_IMMUTABLE=16,PROPS_IS_IMMUTABLE=1,PROPS_IS_RUNES=2,PROPS_IS_UPDATED=4,PROPS_IS_BINDABLE=8,PROPS_IS_LAZY_INITIAL=16,TRANSITION_IN=1,TRANSITION_OUT=2,TRANSITION_GLOBAL=4,TEMPLATE_FRAGMENT=1,TEMPLATE_USE_IMPORT_NODE=2,HYDRATION_START="[",HYDRATION_START_ELSE="[!",HYDRATION_END="]",ELEMENT_IS_NAMESPACED=1,ELEMENT_PRESERVE_ATTRIBUTE_CASE=2,NAMESPACE_SVG="http://www.w3.org/2000/svg",NAMESPACE_MATHML="http://www.w3.org/1998/Math/MathML",IGNORABLE_RUNTIME_WARNINGS=["state_snapshot_uncloneable","binding_property_non_reactive","hydration_attribute_changed","hydration_html_changed","ownership_invalid_binding","ownership_invalid_mutation"];function fuzzymatch(eA,AA){if(AA.length===0)return null;const gA=new FuzzySet(AA).get(eA);return gA&&gA[0][0]>.7?gA[0][1]:null}const GRAM_SIZE_LOWER=2,GRAM_SIZE_UPPER=3;function _distance(eA,AA){if(eA===null&&AA===null)throw"Trying to compare two null values";return eA===null||AA===null?0:(eA=String(eA),AA=String(AA),1-levenshtein(eA,AA)/Math.max(eA.length,AA.length))}function levenshtein(eA,AA){const tA=[];let gA=0,iA=0;for(let IA=0;IA<=AA.length;IA++)for(let BA=0;BA<=eA.length;BA++)IA&&BA?eA.charAt(BA-1)===AA.charAt(IA-1)?iA=gA:iA=Math.min(tA[BA],tA[BA-1],gA)+1:iA=IA+BA,gA=tA[BA],tA[BA]=iA;return tA.pop()}const non_word_regex=/[^\w, ]+/;function iterate_grams(eA,AA=2){const tA="-"+eA.toLowerCase().replace(non_word_regex,"")+"-",gA=AA-tA.length,iA=[];if(gA>0)for(let IA=0;IA<gA;++IA)eA+="-";for(let IA=0;IA<tA.length-AA+1;++IA)iA.push(tA.slice(IA,IA+AA));return iA}function gram_counter(eA,AA=2){const tA={},gA=iterate_grams(eA,AA);let iA=0;for(iA;iA<gA.length;++iA)gA[iA]in tA?tA[gA[iA]]+=1:tA[gA[iA]]=1;return tA}function sort_descending(eA,AA){return AA[0]-eA[0]}class FuzzySet{constructor(AA){rg(this,"exact_set",{});rg(this,"match_dict",{});rg(this,"items",{});for(let tA=GRAM_SIZE_LOWER;tA<GRAM_SIZE_UPPER+1;++tA)this.items[tA]=[];for(let tA=0;tA<AA.length;++tA)this.add(AA[tA])}add(AA){if(AA.toLowerCase()in this.exact_set)return!1;let gA=GRAM_SIZE_LOWER;for(gA;gA<GRAM_SIZE_UPPER+1;++gA)this._add(AA,gA)}_add(AA,tA){const gA=AA.toLowerCase(),iA=this.items[tA]||[],IA=iA.length;iA.push(0);const BA=gram_counter(gA,tA);let sA=0,CA,oA;for(CA in BA)oA=BA[CA],sA+=Math.pow(oA,2),CA in this.match_dict?this.match_dict[CA].push([IA,oA]):this.match_dict[CA]=[[IA,oA]];const QA=Math.sqrt(sA);iA[IA]=[QA,gA],this.items[tA]=iA,this.exact_set[gA]=AA}get(AA){const tA=AA.toLowerCase(),gA=this.exact_set[tA];if(gA)return[[1,gA]];for(let iA=GRAM_SIZE_UPPER;iA>=GRAM_SIZE_LOWER;--iA){const IA=this.__get(AA,iA);if(IA.length>0)return IA}return null}__get(AA,tA){const gA=AA.toLowerCase(),iA={},IA=gram_counter(gA,tA),BA=this.items[tA];let sA=0,CA,oA,QA,EA,rA;for(CA in IA)if(oA=IA[CA],sA+=Math.pow(oA,2),CA in this.match_dict)for(QA=0;QA<this.match_dict[CA].length;++QA)EA=this.match_dict[CA][QA][0],rA=this.match_dict[CA][QA][1],EA in iA?iA[EA]+=oA*rA:iA[EA]=oA*rA;const lA=Math.sqrt(sA);let uA=[],cA;for(const pA in iA)cA=iA[pA],uA.push([cA/(lA*BA[pA][0]),BA[pA][1]]);uA.sort(sort_descending);let hA=[];const dA=Math.min(50,uA.length);for(let pA=0;pA<dA;++pA)hA.push([_distance(uA[pA][1],gA),uA[pA][1]]);uA=hA,uA.sort(sort_descending),hA=[];for(let pA=0;pA<uA.length;++pA)uA[pA][0]===uA[0][0]&&hA.push([uA[pA][0],this.exact_set[uA[pA][1]]]);return hA}}function rangeContains(eA,AA){return eA.start<=AA&&AA<eA.end}function getLocator$1(eA,AA={}){const{offsetLine:tA=0,offsetColumn:gA=0}=AA;let iA=0;const IA=eA.split(`
20
+ };`,JSON_PKG_CACHE=new Map,SCOPED_PKG_REGEX=/^(@[^/]*\/[^/]*)(?:\/(.*))?$/s,PKG_REGEX=/^([^/]*)(?:\/(.*))?$/s,FILE_PREFIX="file:/",WIN_FILE_PREFIX="file:///",resolve_local=async(eA,AA)=>{if(AA!=null){const tA=new URL(`${FILE_PREFIX}${AA}`),gA=new URL(eA,tA).href;return gA.startsWith(WIN_FILE_PREFIX)?gA.slice(8):gA.slice(6)}return eA},resolve_remote=async(eA,AA)=>(await fetch(new URL(eA,AA),{method:"HEAD"})).url,fetch_json_remote=async eA=>{const AA=await fetch(eA);if(AA.ok)return JSON.parse(await AA.text())},fetch_package_json=async(eA,AA)=>{const[tA,gA,iA=""]=eA.split(eA.startsWith("@")?SCOPED_PKG_REGEX:PKG_REGEX),IA=`${AA}/${gA}`,BA=`${IA}/package.json`;if(JSON_PKG_CACHE.has(BA))return JSON_PKG_CACHE.get(BA);const sA=await fetch_json_remote(BA);if(sA!=null)return JSON_PKG_CACHE.set(BA,{base:IA,rest:iA,json:sA}),JSON_PKG_CACHE.get(BA)},resolve_id=eA=>({input:AA=>({resolved:AA}),hook:async(AA,tA)=>{if(AA.startsWith(INTERNAL_TAG)||AA.startsWith(USER_TAG))return AA;if(AA.startsWith(".")){if(tA!=null&&tA.startsWith(USER_TAG))return`${USER_TAG}${await resolve_local(AA,tA.slice(USER_TAG.length))}`;if(tA!=null&&tA.startsWith(RESOURCE_TAG))return`${RESOURCE_TAG}${await resolve_remote(AA,tA.slice(RESOURCE_TAG.length))}`}if(AA.startsWith("https://"))return null;const gA=await fetch_package_json(AA,eA);if(gA!=null){const iA=o$2(gA.json,gA.rest,{browser:!0,conditions:["svelte","production"]});if(iA!=null){if(Array.isArray(iA)&&iA.length>0)return`${RESOURCE_TAG}${await resolve_remote(`${gA.base}/${iA[0]}`)}`;if(typeof iA=="string")return`${RESOURCE_TAG}${await resolve_remote(`${gA.base}/${iA}`)}`}else{const IA=i$3(gA.json);if(IA!=null)return`${RESOURCE_TAG}${await resolve_remote(`${gA.base}/${IA}`)}`}}throw"unknown file, should be unreachable"}});function walk(eA,AA,tA){const gA=tA._;let iA=!1;function IA(sA,{next:CA,state:oA}){CA(oA)}function BA(sA,CA,oA){if(iA||!sA.type)return;let QA;const EA={},rA={path:CA,state:oA,next:(uA=oA)=>{CA.push(sA);for(const cA in sA){if(cA==="type")continue;const hA=sA[cA];if(hA&&typeof hA=="object")if(Array.isArray(hA)){const dA={};hA.forEach((pA,wA)=>{if(pA&&typeof pA=="object"){const mA=BA(pA,CA,uA);mA&&(dA[wA]=mA)}}),Object.keys(dA).length>0&&(EA[cA]=hA.map((pA,wA)=>dA[wA]??pA))}else{const dA=BA(hA,CA,uA);dA&&(EA[cA]=dA)}}if(CA.pop(),Object.keys(EA).length>0)return apply_mutations(sA,EA)},stop:()=>{iA=!0},visit:(uA,cA=oA)=>{CA.push(sA);const hA=BA(uA,CA,cA)??uA;return CA.pop(),hA}};let lA=tA[sA.type]??IA;if(gA){let uA;QA=gA(sA,{...rA,next:(cA=oA)=>(oA=cA,uA=lA(sA,{...rA,state:cA}),uA)}),!QA&&uA&&(QA=uA)}else QA=lA(sA,rA);if(QA||Object.keys(EA).length>0&&(QA=apply_mutations(sA,EA)),QA)return QA}return BA(eA,[],AA)??eA}function apply_mutations(eA,AA){const tA={},gA=Object.getOwnPropertyDescriptors(eA);for(const iA in gA)Object.defineProperty(tA,iA,gA[iA]);for(const iA in AA)tA[iA]=AA[iA];return tA}const regex_whitespace=/\s/,regex_whitespaces=/\s+/,regex_starts_with_newline=/^\r?\n/,regex_starts_with_whitespace=/^\s/,regex_starts_with_whitespaces=/^[ \t\r\n]+/,regex_ends_with_whitespace=/\s$/,regex_ends_with_whitespaces=/[ \t\r\n]+$/,regex_not_whitespace=/[^ \t\r\n]/,regex_whitespaces_strict=/[ \t\n\r\f]+/g,regex_only_whitespaces=/^[ \t\n\r\f]+$/,regex_not_newline_characters=/[^\n]/g,regex_is_valid_identifier=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/,regex_invalid_identifier_chars=/(^[^a-zA-Z_$]|[^a-zA-Z0-9_$])/g,regex_starts_with_vowel=/^[aeiou]/,regex_heading_tags=/^h[1-6]$/,regex_illegal_attribute_character=/(^[0-9-.])|[\^$@%&#?!|()[\]{}^*+~;]/,EACH_ITEM_REACTIVE=1,EACH_INDEX_REACTIVE=2,EACH_IS_CONTROLLED=4,EACH_IS_ANIMATED=8,EACH_ITEM_IMMUTABLE=16,PROPS_IS_IMMUTABLE=1,PROPS_IS_RUNES=2,PROPS_IS_UPDATED=4,PROPS_IS_BINDABLE=8,PROPS_IS_LAZY_INITIAL=16,TRANSITION_IN=1,TRANSITION_OUT=2,TRANSITION_GLOBAL=4,TEMPLATE_FRAGMENT=1,TEMPLATE_USE_IMPORT_NODE=2,HYDRATION_START="[",HYDRATION_START_ELSE="[!",HYDRATION_END="]",ELEMENT_IS_NAMESPACED=1,ELEMENT_PRESERVE_ATTRIBUTE_CASE=2,NAMESPACE_SVG="http://www.w3.org/2000/svg",NAMESPACE_MATHML="http://www.w3.org/1998/Math/MathML",IGNORABLE_RUNTIME_WARNINGS=["state_snapshot_uncloneable","binding_property_non_reactive","hydration_attribute_changed","hydration_html_changed","ownership_invalid_binding","ownership_invalid_mutation"];function fuzzymatch(eA,AA){if(AA.length===0)return null;const gA=new FuzzySet(AA).get(eA);return gA&&gA[0][0]>.7?gA[0][1]:null}const GRAM_SIZE_LOWER=2,GRAM_SIZE_UPPER=3;function _distance(eA,AA){if(eA===null&&AA===null)throw"Trying to compare two null values";return eA===null||AA===null?0:(eA=String(eA),AA=String(AA),1-levenshtein(eA,AA)/Math.max(eA.length,AA.length))}function levenshtein(eA,AA){const tA=[];let gA=0,iA=0;for(let IA=0;IA<=AA.length;IA++)for(let BA=0;BA<=eA.length;BA++)IA&&BA?eA.charAt(BA-1)===AA.charAt(IA-1)?iA=gA:iA=Math.min(tA[BA],tA[BA-1],gA)+1:iA=IA+BA,gA=tA[BA],tA[BA]=iA;return tA.pop()}const non_word_regex=/[^\w, ]+/;function iterate_grams(eA,AA=2){const tA="-"+eA.toLowerCase().replace(non_word_regex,"")+"-",gA=AA-tA.length,iA=[];if(gA>0)for(let IA=0;IA<gA;++IA)eA+="-";for(let IA=0;IA<tA.length-AA+1;++IA)iA.push(tA.slice(IA,IA+AA));return iA}function gram_counter(eA,AA=2){const tA={},gA=iterate_grams(eA,AA);let iA=0;for(iA;iA<gA.length;++iA)gA[iA]in tA?tA[gA[iA]]+=1:tA[gA[iA]]=1;return tA}function sort_descending(eA,AA){return AA[0]-eA[0]}class FuzzySet{constructor(AA){rg(this,"exact_set",{});rg(this,"match_dict",{});rg(this,"items",{});for(let tA=GRAM_SIZE_LOWER;tA<GRAM_SIZE_UPPER+1;++tA)this.items[tA]=[];for(let tA=0;tA<AA.length;++tA)this.add(AA[tA])}add(AA){if(AA.toLowerCase()in this.exact_set)return!1;let gA=GRAM_SIZE_LOWER;for(gA;gA<GRAM_SIZE_UPPER+1;++gA)this._add(AA,gA)}_add(AA,tA){const gA=AA.toLowerCase(),iA=this.items[tA]||[],IA=iA.length;iA.push(0);const BA=gram_counter(gA,tA);let sA=0,CA,oA;for(CA in BA)oA=BA[CA],sA+=Math.pow(oA,2),CA in this.match_dict?this.match_dict[CA].push([IA,oA]):this.match_dict[CA]=[[IA,oA]];const QA=Math.sqrt(sA);iA[IA]=[QA,gA],this.items[tA]=iA,this.exact_set[gA]=AA}get(AA){const tA=AA.toLowerCase(),gA=this.exact_set[tA];if(gA)return[[1,gA]];for(let iA=GRAM_SIZE_UPPER;iA>=GRAM_SIZE_LOWER;--iA){const IA=this.__get(AA,iA);if(IA.length>0)return IA}return null}__get(AA,tA){const gA=AA.toLowerCase(),iA={},IA=gram_counter(gA,tA),BA=this.items[tA];let sA=0,CA,oA,QA,EA,rA;for(CA in IA)if(oA=IA[CA],sA+=Math.pow(oA,2),CA in this.match_dict)for(QA=0;QA<this.match_dict[CA].length;++QA)EA=this.match_dict[CA][QA][0],rA=this.match_dict[CA][QA][1],EA in iA?iA[EA]+=oA*rA:iA[EA]=oA*rA;const lA=Math.sqrt(sA);let uA=[],cA;for(const pA in iA)cA=iA[pA],uA.push([cA/(lA*BA[pA][0]),BA[pA][1]]);uA.sort(sort_descending);let hA=[];const dA=Math.min(50,uA.length);for(let pA=0;pA<dA;++pA)hA.push([_distance(uA[pA][1],gA),uA[pA][1]]);uA=hA,uA.sort(sort_descending),hA=[];for(let pA=0;pA<uA.length;++pA)uA[pA][0]===uA[0][0]&&hA.push([uA[pA][0],this.exact_set[uA[pA][1]]]);return hA}}function rangeContains(eA,AA){return eA.start<=AA&&AA<eA.end}function getLocator$1(eA,AA={}){const{offsetLine:tA=0,offsetColumn:gA=0}=AA;let iA=0;const IA=eA.split(`
21
21
  `).map((CA,oA)=>{const QA=iA+CA.length+1,EA={start:iA,end:QA,line:oA};return iA=QA,EA});let BA=0;function sA(CA,oA){if(typeof CA=="string"&&(CA=eA.indexOf(CA,oA??0)),CA===-1)return;let QA=IA[BA];const EA=CA>=QA.end?1:-1;for(;QA;){if(rangeContains(QA,CA))return{line:tA+QA.line,column:gA+CA-QA.start,character:CA};BA+=EA,QA=IA[BA]}}return sA}let warnings=[],filename,source,dev,locator=getLocator$1("",{offsetLine:1}),warning_filter,ignore_stack=[],ignore_map=new Map;function push_ignore(eA){const AA=new Set([...ignore_stack.at(-1)||[],...eA]);ignore_stack.push(AA)}function pop_ignore(){ignore_stack.pop()}function reset_warning_filter(eA=()=>!0){warning_filter=eA}function is_ignored(eA,AA){var tA;return dev&&!!((tA=ignore_map.get(eA))!=null&&tA.some(gA=>gA.has(AA)))}function reset(eA,AA){var gA;source=eA;const tA=(gA=AA.rootDir)==null?void 0:gA.replace(/\\/g,"/");filename=AA.filename.replace(/\\/g,"/"),dev=!!AA.dev,typeof tA=="string"&&filename.startsWith(tA)&&(filename=filename.replace(tA,"").replace(/^[/\\]/,"")),locator=getLocator$1(source,{offsetLine:1}),warnings=[],ignore_stack=[],ignore_map.clear()}const regex_tabs=/^\t+/;function tabs_to_spaces(eA){return eA.replace(regex_tabs,AA=>AA.split(" ").join(" "))}function get_code_frame(eA,AA,tA){const gA=eA.split(`
22
22
  `),iA=Math.max(0,AA-2),IA=Math.min(AA+3,gA.length),BA=String(IA+1).length;return gA.slice(iA,IA).map((sA,CA)=>{const oA=iA+CA===AA,QA=String(CA+iA+1).padStart(BA," ");if(oA){const EA=" ".repeat(BA+2+tabs_to_spaces(sA.slice(0,tA)).length)+"^";return`${QA}: ${tabs_to_spaces(sA)}
23
23
  ${EA}`}return`${QA}: ${tabs_to_spaces(sA)}`}).join(`
@@ -56,10 +56,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
56
56
  `?IA=!0:QA!=="\r"&&IA&&(IA=!1,sA===CA.start||(this._splitChunk(CA,sA),CA=CA.next),CA.prependRight(AA))}sA+=1}sA=CA.end,CA=CA.next}return this.outro=this.outro.replace(gA,BA),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(AA,tA){return warned$1.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),warned$1.insertLeft=!0),this.appendLeft(AA,tA)}insertRight(AA,tA){return warned$1.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),warned$1.insertRight=!0),this.prependRight(AA,tA)}move(AA,tA,gA){if(gA>=AA&&gA<=tA)throw new Error("Cannot move a selection inside itself");this._split(AA),this._split(tA),this._split(gA);const iA=this.byStart[AA],IA=this.byEnd[tA],BA=iA.previous,sA=IA.next,CA=this.byStart[gA];if(!CA&&IA===this.lastChunk)return this;const oA=CA?CA.previous:this.lastChunk;return BA&&(BA.next=sA),sA&&(sA.previous=BA),oA&&(oA.next=iA),CA&&(CA.previous=IA),iA.previous||(this.firstChunk=IA.next),IA.next||(this.lastChunk=iA.previous,this.lastChunk.next=null),iA.previous=oA,IA.next=CA||null,oA||(this.firstChunk=iA),CA||(this.lastChunk=IA),this}overwrite(AA,tA,gA,iA){return iA=iA||{},this.update(AA,tA,gA,{...iA,overwrite:!iA.contentOnly})}update(AA,tA,gA,iA){if(typeof gA!="string")throw new TypeError("replacement content must be a string");if(this.original.length!==0){for(;AA<0;)AA+=this.original.length;for(;tA<0;)tA+=this.original.length}if(tA>this.original.length)throw new Error("end is out of bounds");if(AA===tA)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(AA),this._split(tA),iA===!0&&(warned$1.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),warned$1.storeName=!0),iA={storeName:!0});const IA=iA!==void 0?iA.storeName:!1,BA=iA!==void 0?iA.overwrite:!1;if(IA){const oA=this.original.slice(AA,tA);Object.defineProperty(this.storedNames,oA,{writable:!0,value:!0,enumerable:!0})}const sA=this.byStart[AA],CA=this.byEnd[tA];if(sA){let oA=sA;for(;oA!==CA;){if(oA.next!==this.byStart[oA.end])throw new Error("Cannot overwrite across a split point");oA=oA.next,oA.edit("",!1)}sA.edit(gA,IA,!BA)}else{const oA=new Chunk(AA,tA,"").edit(gA,IA);CA.next=oA,oA.previous=CA}return this}prepend(AA){if(typeof AA!="string")throw new TypeError("outro content must be a string");return this.intro=AA+this.intro,this}prependLeft(AA,tA){if(typeof tA!="string")throw new TypeError("inserted content must be a string");this._split(AA);const gA=this.byEnd[AA];return gA?gA.prependLeft(tA):this.intro=tA+this.intro,this}prependRight(AA,tA){if(typeof tA!="string")throw new TypeError("inserted content must be a string");this._split(AA);const gA=this.byStart[AA];return gA?gA.prependRight(tA):this.outro=tA+this.outro,this}remove(AA,tA){if(this.original.length!==0){for(;AA<0;)AA+=this.original.length;for(;tA<0;)tA+=this.original.length}if(AA===tA)return this;if(AA<0||tA>this.original.length)throw new Error("Character is out of bounds");if(AA>tA)throw new Error("end must be greater than start");this._split(AA),this._split(tA);let gA=this.byStart[AA];for(;gA;)gA.intro="",gA.outro="",gA.edit(""),gA=tA>gA.end?this.byStart[gA.end]:null;return this}reset(AA,tA){if(this.original.length!==0){for(;AA<0;)AA+=this.original.length;for(;tA<0;)tA+=this.original.length}if(AA===tA)return this;if(AA<0||tA>this.original.length)throw new Error("Character is out of bounds");if(AA>tA)throw new Error("end must be greater than start");this._split(AA),this._split(tA);let gA=this.byStart[AA];for(;gA;)gA.reset(),gA=tA>gA.end?this.byStart[gA.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let AA=this.lastChunk;do{if(AA.outro.length)return AA.outro[AA.outro.length-1];if(AA.content.length)return AA.content[AA.content.length-1];if(AA.intro.length)return AA.intro[AA.intro.length-1]}while(AA=AA.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let AA=this.outro.lastIndexOf(n$1);if(AA!==-1)return this.outro.substr(AA+1);let tA=this.outro,gA=this.lastChunk;do{if(gA.outro.length>0){if(AA=gA.outro.lastIndexOf(n$1),AA!==-1)return gA.outro.substr(AA+1)+tA;tA=gA.outro+tA}if(gA.content.length>0){if(AA=gA.content.lastIndexOf(n$1),AA!==-1)return gA.content.substr(AA+1)+tA;tA=gA.content+tA}if(gA.intro.length>0){if(AA=gA.intro.lastIndexOf(n$1),AA!==-1)return gA.intro.substr(AA+1)+tA;tA=gA.intro+tA}}while(gA=gA.previous);return AA=this.intro.lastIndexOf(n$1),AA!==-1?this.intro.substr(AA+1)+tA:this.intro+tA}slice(AA=0,tA=this.original.length){if(this.original.length!==0){for(;AA<0;)AA+=this.original.length;for(;tA<0;)tA+=this.original.length}let gA="",iA=this.firstChunk;for(;iA&&(iA.start>AA||iA.end<=AA);){if(iA.start<tA&&iA.end>=tA)return gA;iA=iA.next}if(iA&&iA.edited&&iA.start!==AA)throw new Error(`Cannot use replaced character ${AA} as slice start anchor.`);const IA=iA;for(;iA;){iA.intro&&(IA!==iA||iA.start===AA)&&(gA+=iA.intro);const BA=iA.start<tA&&iA.end>=tA;if(BA&&iA.edited&&iA.end!==tA)throw new Error(`Cannot use replaced character ${tA} as slice end anchor.`);const sA=IA===iA?AA-iA.start:0,CA=BA?iA.content.length+tA-iA.end:iA.content.length;if(gA+=iA.content.slice(sA,CA),iA.outro&&(!BA||iA.end===tA)&&(gA+=iA.outro),BA)break;iA=iA.next}return gA}snip(AA,tA){const gA=this.clone();return gA.remove(0,AA),gA.remove(tA,gA.original.length),gA}_split(AA){if(this.byStart[AA]||this.byEnd[AA])return;let tA=this.lastSearchedChunk;const gA=AA>tA.end;for(;tA;){if(tA.contains(AA))return this._splitChunk(tA,AA);tA=gA?this.byStart[tA.end]:this.byEnd[tA.start]}}_splitChunk(AA,tA){if(AA.edited&&AA.content.length){const iA=getLocator(this.original)(tA);throw new Error(`Cannot split a chunk that has already been edited (${iA.line}:${iA.column} – "${AA.original}")`)}const gA=AA.split(tA);return this.byEnd[tA]=AA,this.byStart[tA]=gA,this.byEnd[gA.end]=gA,AA===this.lastChunk&&(this.lastChunk=gA),this.lastSearchedChunk=AA,!0}toString(){let AA=this.intro,tA=this.firstChunk;for(;tA;)AA+=tA.toString(),tA=tA.next;return AA+this.outro}isEmpty(){let AA=this.firstChunk;do if(AA.intro.length&&AA.intro.trim()||AA.content.length&&AA.content.trim()||AA.outro.length&&AA.outro.trim())return!1;while(AA=AA.next);return!0}length(){let AA=this.firstChunk,tA=0;do tA+=AA.intro.length+AA.content.length+AA.outro.length;while(AA=AA.next);return tA}trimLines(){return this.trim("[\\r\\n]")}trim(AA){return this.trimStart(AA).trimEnd(AA)}trimEndAborted(AA){const tA=new RegExp((AA||"\\s")+"+$");if(this.outro=this.outro.replace(tA,""),this.outro.length)return!0;let gA=this.lastChunk;do{const iA=gA.end,IA=gA.trimEnd(tA);if(gA.end!==iA&&(this.lastChunk===gA&&(this.lastChunk=gA.next),this.byEnd[gA.end]=gA,this.byStart[gA.next.start]=gA.next,this.byEnd[gA.next.end]=gA.next),IA)return!0;gA=gA.previous}while(gA);return!1}trimEnd(AA){return this.trimEndAborted(AA),this}trimStartAborted(AA){const tA=new RegExp("^"+(AA||"\\s")+"+");if(this.intro=this.intro.replace(tA,""),this.intro.length)return!0;let gA=this.firstChunk;do{const iA=gA.end,IA=gA.trimStart(tA);if(gA.end!==iA&&(gA===this.lastChunk&&(this.lastChunk=gA.next),this.byEnd[gA.end]=gA,this.byStart[gA.next.start]=gA.next,this.byEnd[gA.next.end]=gA.next),IA)return!0;gA=gA.next}while(gA);return!1}trimStart(AA){return this.trimStartAborted(AA),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(AA,tA){function gA(IA,BA){return typeof tA=="string"?tA.replace(/\$(\$|&|\d+)/g,(sA,CA)=>CA==="$"?"$":CA==="&"?IA[0]:+CA<IA.length?IA[+CA]:`$${CA}`):tA(...IA,IA.index,BA,IA.groups)}function iA(IA,BA){let sA;const CA=[];for(;sA=IA.exec(BA);)CA.push(sA);return CA}if(AA.global)iA(AA,this.original).forEach(BA=>{if(BA.index!=null){const sA=gA(BA,this.original);sA!==BA[0]&&this.overwrite(BA.index,BA.index+BA[0].length,sA)}});else{const IA=this.original.match(AA);if(IA&&IA.index!=null){const BA=gA(IA,this.original);BA!==IA[0]&&this.overwrite(IA.index,IA.index+IA[0].length,BA)}}return this}_replaceString(AA,tA){const{original:gA}=this,iA=gA.indexOf(AA);return iA!==-1&&this.overwrite(iA,iA+AA.length,tA),this}replace(AA,tA){return typeof AA=="string"?this._replaceString(AA,tA):this._replaceRegexp(AA,tA)}_replaceAllString(AA,tA){const{original:gA}=this,iA=AA.length;for(let IA=gA.indexOf(AA);IA!==-1;IA=gA.indexOf(AA,IA+iA))gA.slice(IA,IA+iA)!==tA&&this.overwrite(IA,IA+iA,tA);return this}replaceAll(AA,tA){if(typeof AA=="string")return this._replaceAllString(AA,tA);if(!AA.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(AA,tA)}}var remapping_umd={exports:{}},traceMapping_umd={exports:{}},resolveUri_umd={exports:{}},hasRequiredResolveUri_umd;function requireResolveUri_umd(){return hasRequiredResolveUri_umd||(hasRequiredResolveUri_umd=1,function(eA,AA){(function(tA,gA){eA.exports=gA()})(commonjsGlobal,function(){const tA=/^[\w+.-]+:\/\//,gA=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,iA=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function IA(pA){return tA.test(pA)}function BA(pA){return pA.startsWith("//")}function sA(pA){return pA.startsWith("/")}function CA(pA){return pA.startsWith("file:")}function oA(pA){return/^[.?#]/.test(pA)}function QA(pA){const wA=gA.exec(pA);return rA(wA[1],wA[2]||"",wA[3],wA[4]||"",wA[5]||"/",wA[6]||"",wA[7]||"")}function EA(pA){const wA=iA.exec(pA),mA=wA[2];return rA("file:","",wA[1]||"","",sA(mA)?mA:"/"+mA,wA[3]||"",wA[4]||"")}function rA(pA,wA,mA,MA,fA,LA,_A){return{scheme:pA,user:wA,host:mA,port:MA,path:fA,query:LA,hash:_A,type:7}}function lA(pA){if(BA(pA)){const mA=QA("http:"+pA);return mA.scheme="",mA.type=6,mA}if(sA(pA)){const mA=QA("http://foo.com"+pA);return mA.scheme="",mA.host="",mA.type=5,mA}if(CA(pA))return EA(pA);if(IA(pA))return QA(pA);const wA=QA("http://foo.com/"+pA);return wA.scheme="",wA.host="",wA.type=pA?pA.startsWith("?")?3:pA.startsWith("#")?2:4:1,wA}function uA(pA){if(pA.endsWith("/.."))return pA;const wA=pA.lastIndexOf("/");return pA.slice(0,wA+1)}function cA(pA,wA){hA(wA,wA.type),pA.path==="/"?pA.path=wA.path:pA.path=uA(wA.path)+pA.path}function hA(pA,wA){const mA=wA<=4,MA=pA.path.split("/");let fA=1,LA=0,_A=!1;for(let JA=1;JA<MA.length;JA++){const RA=MA[JA];if(!RA){_A=!0;continue}if(_A=!1,RA!=="."){if(RA===".."){LA?(_A=!0,LA--,fA--):mA&&(MA[fA++]=RA);continue}MA[fA++]=RA,LA++}}let bA="";for(let JA=1;JA<fA;JA++)bA+="/"+MA[JA];(!bA||_A&&!bA.endsWith("/.."))&&(bA+="/"),pA.path=bA}function dA(pA,wA){if(!pA&&!wA)return"";const mA=lA(pA);let MA=mA.type;if(wA&&MA!==7){const LA=lA(wA),_A=LA.type;switch(MA){case 1:mA.hash=LA.hash;case 2:mA.query=LA.query;case 3:case 4:cA(mA,LA);case 5:mA.user=LA.user,mA.host=LA.host,mA.port=LA.port;case 6:mA.scheme=LA.scheme}_A>MA&&(MA=_A)}hA(mA,MA);const fA=mA.query+mA.hash;switch(MA){case 2:case 3:return fA;case 4:{const LA=mA.path.slice(1);return LA?oA(wA||pA)&&!oA(LA)?"./"+LA+fA:LA+fA:fA||"."}case 5:return mA.path+fA;default:return mA.scheme+"//"+mA.user+mA.host+mA.port+mA.path+fA}}return dA})}(resolveUri_umd)),resolveUri_umd.exports}var hasRequiredTraceMapping_umd;function requireTraceMapping_umd(){return hasRequiredTraceMapping_umd||(hasRequiredTraceMapping_umd=1,function(eA,AA){(function(tA,gA){gA(AA,sourcemapCodec_umdExports,requireResolveUri_umd())})(commonjsGlobal,function(tA,gA,iA){function IA(HA,TA){return TA&&!TA.endsWith("/")&&(TA+="/"),iA(HA,TA)}function BA(HA){if(!HA)return"";const TA=HA.lastIndexOf("/");return HA.slice(0,TA+1)}const sA=0,CA=1,oA=2,QA=3,EA=4,rA=1,lA=2;function uA(HA,TA){const OA=cA(HA,0);if(OA===HA.length)return HA;TA||(HA=HA.slice());for(let jA=OA;jA<HA.length;jA=cA(HA,jA+1))HA[jA]=dA(HA[jA],TA);return HA}function cA(HA,TA){for(let OA=TA;OA<HA.length;OA++)if(!hA(HA[OA]))return OA;return HA.length}function hA(HA){for(let TA=1;TA<HA.length;TA++)if(HA[TA][sA]<HA[TA-1][sA])return!1;return!0}function dA(HA,TA){return TA||(HA=HA.slice()),HA.sort(pA)}function pA(HA,TA){return HA[sA]-TA[sA]}let wA=!1;function mA(HA,TA,OA,jA){for(;OA<=jA;){const XA=OA+(jA-OA>>1),ZA=HA[XA][sA]-TA;if(ZA===0)return wA=!0,XA;ZA<0?OA=XA+1:jA=XA-1}return wA=!1,OA-1}function MA(HA,TA,OA){for(let jA=OA+1;jA<HA.length&&HA[jA][sA]===TA;OA=jA++);return OA}function fA(HA,TA,OA){for(let jA=OA-1;jA>=0&&HA[jA][sA]===TA;OA=jA--);return OA}function LA(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function _A(HA,TA,OA,jA){const{lastKey:XA,lastNeedle:ZA,lastIndex:gg}=OA;let og=0,ig=HA.length-1;if(jA===XA){if(TA===ZA)return wA=gg!==-1&&HA[gg][sA]===TA,gg;TA>=ZA?og=gg===-1?0:gg:ig=gg}return OA.lastKey=jA,OA.lastNeedle=TA,OA.lastIndex=mA(HA,TA,og,ig)}function bA(HA,TA){const OA=TA.map(RA);for(let jA=0;jA<HA.length;jA++){const XA=HA[jA];for(let ZA=0;ZA<XA.length;ZA++){const gg=XA[ZA];if(gg.length===1)continue;const og=gg[CA],ig=gg[oA],Cg=gg[QA],pg=OA[og],ng=pg[ig]||(pg[ig]=[]),Eg=TA[og];let dg=MA(ng,Cg,_A(ng,Cg,Eg,ig));Eg.lastIndex=++dg,JA(ng,dg,[Cg,jA,gg[sA]])}}return OA}function JA(HA,TA,OA){for(let jA=HA.length;jA>TA;jA--)HA[jA]=HA[jA-1];HA[TA]=OA}function RA(){return{__proto__:null}}const NA=function(HA,TA){const OA=FA(HA);if(!("sections"in OA))return new SA(OA,TA);const jA=[],XA=[],ZA=[],gg=[],og=[];vA(OA,TA,jA,XA,ZA,gg,og,0,0,1/0,1/0);const ig={version:3,file:OA.file,names:gg,sources:XA,sourcesContent:ZA,mappings:jA,ignoreList:og};return sg(ig)};function FA(HA){return typeof HA=="string"?JSON.parse(HA):HA}function vA(HA,TA,OA,jA,XA,ZA,gg,og,ig,Cg,pg){const{sections:ng}=HA;for(let Eg=0;Eg<ng.length;Eg++){const{map:dg,offset:kg}=ng[Eg];let Lg=Cg,Ug=pg;if(Eg+1<ng.length){const xg=ng[Eg+1].offset;Lg=Math.min(Cg,og+xg.line),Lg===Cg?Ug=Math.min(pg,ig+xg.column):Lg<Cg&&(Ug=ig+xg.column)}xA(dg,TA,OA,jA,XA,ZA,gg,og+kg.line,ig+kg.column,Lg,Ug)}}function xA(HA,TA,OA,jA,XA,ZA,gg,og,ig,Cg,pg){const ng=FA(HA);if("sections"in ng)return vA(...arguments);const Eg=new SA(ng,TA),dg=jA.length,kg=ZA.length,Lg=KA(Eg),{resolvedSources:Ug,sourcesContent:xg,ignoreList:Kg}=Eg;if(kA(jA,Ug),kA(ZA,Eg.names),xg)kA(XA,xg);else for(let fg=0;fg<Ug.length;fg++)XA.push(null);if(Kg)for(let fg=0;fg<Kg.length;fg++)gg.push(Kg[fg]+dg);for(let fg=0;fg<Lg.length;fg++){const Hg=og+fg;if(Hg>Cg)return;const Zg=aA(OA,Hg),gI=fg===0?ig:0,Wg=Lg[fg];for(let qg=0;qg<Wg.length;qg++){const Yg=Wg[qg],vg=gI+Yg[sA];if(Hg===Cg&&vg>=pg)return;if(Yg.length===1){Zg.push([vg]);continue}const zg=dg+Yg[CA],Xg=Yg[oA],AI=Yg[QA];Zg.push(Yg.length===4?[vg,zg,Xg,AI]:[vg,zg,Xg,AI,kg+Yg[EA]])}}}function kA(HA,TA){for(let OA=0;OA<TA.length;OA++)HA.push(TA[OA])}function aA(HA,TA){for(let OA=HA.length;OA<=TA;OA++)HA[OA]=[];return HA[TA]}const nA="`line` must be greater than 0 (lines start at line 1)",DA="`column` must be greater than or equal to 0 (columns start at column 0)",yA=-1,GA=1;class SA{constructor(TA,OA){const jA=typeof TA=="string";if(!jA&&TA._decodedMemo)return TA;const XA=jA?JSON.parse(TA):TA,{version:ZA,file:gg,names:og,sourceRoot:ig,sources:Cg,sourcesContent:pg}=XA;this.version=ZA,this.file=gg,this.names=og||[],this.sourceRoot=ig,this.sources=Cg,this.sourcesContent=pg,this.ignoreList=XA.ignoreList||XA.x_google_ignoreList||void 0;const ng=IA(ig||"",BA(OA));this.resolvedSources=Cg.map(dg=>IA(dg||"",ng));const{mappings:Eg}=XA;typeof Eg=="string"?(this._encoded=Eg,this._decoded=void 0):(this._encoded=void 0,this._decoded=uA(Eg,jA)),this._decodedMemo=LA(),this._bySources=void 0,this._bySourceMemos=void 0}}function YA(HA){return HA}function UA(HA){var TA,OA;return(TA=(OA=HA)._encoded)!==null&&TA!==void 0?TA:OA._encoded=gA.encode(HA._decoded)}function KA(HA){var TA;return(TA=HA)._decoded||(TA._decoded=gA.decode(HA._encoded))}function qA(HA,TA,OA){const jA=KA(HA);if(TA>=jA.length)return null;const XA=jA[TA],ZA=Qg(XA,HA._decodedMemo,TA,OA,GA);return ZA===-1?null:XA[ZA]}function $A(HA,TA){let{line:OA,column:jA,bias:XA}=TA;if(OA--,OA<0)throw new Error(nA);if(jA<0)throw new Error(DA);const ZA=KA(HA);if(OA>=ZA.length)return hg(null,null,null,null);const gg=ZA[OA],og=Qg(gg,HA._decodedMemo,OA,jA,XA||GA);if(og===-1)return hg(null,null,null,null);const ig=gg[og];if(ig.length===1)return hg(null,null,null,null);const{names:Cg,resolvedSources:pg}=HA;return hg(pg[ig[CA]],ig[oA]+1,ig[QA],ig.length===5?Cg[ig[EA]]:null)}function VA(HA,TA){const{source:OA,line:jA,column:XA,bias:ZA}=TA;return Fg(HA,OA,jA,XA,ZA||GA,!1)}function PA(HA,TA){const{source:OA,line:jA,column:XA,bias:ZA}=TA;return Fg(HA,OA,jA,XA,ZA||yA,!0)}function zA(HA,TA){const OA=KA(HA),{names:jA,resolvedSources:XA}=HA;for(let ZA=0;ZA<OA.length;ZA++){const gg=OA[ZA];for(let og=0;og<gg.length;og++){const ig=gg[og],Cg=ZA+1,pg=ig[0];let ng=null,Eg=null,dg=null,kg=null;ig.length!==1&&(ng=XA[ig[1]],Eg=ig[2]+1,dg=ig[3]),ig.length===5&&(kg=jA[ig[4]]),TA({generatedLine:Cg,generatedColumn:pg,source:ng,originalLine:Eg,originalColumn:dg,name:kg})}}}function WA(HA,TA){const{sources:OA,resolvedSources:jA}=HA;let XA=OA.indexOf(TA);return XA===-1&&(XA=jA.indexOf(TA)),XA}function Ag(HA,TA){const{sourcesContent:OA}=HA;if(OA==null)return null;const jA=WA(HA,TA);return jA===-1?null:OA[jA]}function eg(HA,TA){const{ignoreList:OA}=HA;if(OA==null)return!1;const jA=WA(HA,TA);return jA===-1?!1:OA.includes(jA)}function sg(HA,TA){const OA=new SA(Dg(HA,[]),TA);return OA._decoded=HA.mappings,OA}function ug(HA){return Dg(HA,KA(HA))}function yg(HA){return Dg(HA,UA(HA))}function Dg(HA,TA){return{version:HA.version,file:HA.file,names:HA.names,sourceRoot:HA.sourceRoot,sources:HA.sources,sourcesContent:HA.sourcesContent,mappings:TA,ignoreList:HA.ignoreList||HA.x_google_ignoreList}}function hg(HA,TA,OA,jA){return{source:HA,line:TA,column:OA,name:jA}}function wg(HA,TA){return{line:HA,column:TA}}function Qg(HA,TA,OA,jA,XA){let ZA=_A(HA,jA,TA,OA);return wA?ZA=(XA===yA?MA:fA)(HA,jA,ZA):XA===yA&&ZA++,ZA===-1||ZA===HA.length?-1:ZA}function Mg(HA,TA,OA,jA,XA){let ZA=Qg(HA,TA,OA,jA,GA);if(!wA&&XA===yA&&ZA++,ZA===-1||ZA===HA.length)return[];const gg=wA?jA:HA[ZA][sA];wA||(ZA=fA(HA,gg,ZA));const og=MA(HA,gg,ZA),ig=[];for(;ZA<=og;ZA++){const Cg=HA[ZA];ig.push(wg(Cg[rA]+1,Cg[lA]))}return ig}function Fg(HA,TA,OA,jA,XA,ZA){var gg;if(OA--,OA<0)throw new Error(nA);if(jA<0)throw new Error(DA);const{sources:og,resolvedSources:ig}=HA;let Cg=og.indexOf(TA);if(Cg===-1&&(Cg=ig.indexOf(TA)),Cg===-1)return ZA?[]:wg(null,null);const ng=((gg=HA)._bySources||(gg._bySources=bA(KA(HA),HA._bySourceMemos=og.map(LA))))[Cg][OA];if(ng==null)return ZA?[]:wg(null,null);const Eg=HA._bySourceMemos[Cg];if(ZA)return Mg(ng,Eg,OA,jA,XA);const dg=Qg(ng,Eg,OA,jA,XA);if(dg===-1)return wg(null,null);const kg=ng[dg];return wg(kg[rA]+1,kg[lA])}tA.AnyMap=NA,tA.GREATEST_LOWER_BOUND=GA,tA.LEAST_UPPER_BOUND=yA,tA.TraceMap=SA,tA.allGeneratedPositionsFor=PA,tA.decodedMap=ug,tA.decodedMappings=KA,tA.eachMapping=zA,tA.encodedMap=yg,tA.encodedMappings=UA,tA.generatedPositionFor=VA,tA.isIgnored=eg,tA.originalPositionFor=$A,tA.presortedDecodedMap=sg,tA.sourceContentFor=Ag,tA.traceSegment=qA})}(traceMapping_umd,traceMapping_umd.exports)),traceMapping_umd.exports}var genMapping_umd={exports:{}},setArray_umd={exports:{}},hasRequiredSetArray_umd;function requireSetArray_umd(){return hasRequiredSetArray_umd||(hasRequiredSetArray_umd=1,function(eA,AA){(function(tA,gA){gA(AA)})(commonjsGlobal,function(tA){class gA{constructor(){this._indexes={__proto__:null},this.array=[]}}function iA(oA){return oA}function IA(oA,QA){return oA._indexes[QA]}function BA(oA,QA){const EA=IA(oA,QA);if(EA!==void 0)return EA;const{array:rA,_indexes:lA}=oA,uA=rA.push(QA);return lA[QA]=uA-1}function sA(oA){const{array:QA,_indexes:EA}=oA;if(QA.length===0)return;const rA=QA.pop();EA[rA]=void 0}function CA(oA,QA){const EA=IA(oA,QA);if(EA===void 0)return;const{array:rA,_indexes:lA}=oA;for(let uA=EA+1;uA<rA.length;uA++){const cA=rA[uA];rA[uA-1]=cA,lA[cA]--}lA[QA]=void 0,rA.pop()}tA.SetArray=gA,tA.get=IA,tA.pop=sA,tA.put=BA,tA.remove=CA,Object.defineProperty(tA,"__esModule",{value:!0})})}(setArray_umd,setArray_umd.exports)),setArray_umd.exports}var hasRequiredGenMapping_umd;function requireGenMapping_umd(){return hasRequiredGenMapping_umd||(hasRequiredGenMapping_umd=1,function(eA,AA){(function(tA,gA){gA(AA,requireSetArray_umd(),sourcemapCodec_umdExports,requireTraceMapping_umd())})(commonjsGlobal,function(tA,gA,iA,IA){class rA{constructor({file:nA,sourceRoot:DA}={}){this._names=new gA.SetArray,this._sources=new gA.SetArray,this._sourcesContent=[],this._mappings=[],this.file=nA,this.sourceRoot=DA,this._ignoreList=new gA.SetArray}}function lA(aA){return aA}function uA(aA,nA,DA,yA,GA,SA,YA,UA){return _A(!1,aA,nA,DA,yA,GA,SA,YA,UA)}function cA(aA,nA){return kA(!1,aA,nA)}const hA=(aA,nA,DA,yA,GA,SA,YA,UA)=>_A(!0,aA,nA,DA,yA,GA,SA,YA,UA),dA=(aA,nA)=>kA(!0,aA,nA);function pA(aA,nA,DA){const{_sources:yA,_sourcesContent:GA}=aA,SA=gA.put(yA,nA);GA[SA]=DA}function wA(aA,nA,DA=!0){const{_sources:yA,_sourcesContent:GA,_ignoreList:SA}=aA,YA=gA.put(yA,nA);YA===GA.length&&(GA[YA]=null),DA?gA.put(SA,YA):gA.remove(SA,YA)}function mA(aA){const{_mappings:nA,_sources:DA,_sourcesContent:yA,_names:GA,_ignoreList:SA}=aA;return NA(nA),{version:3,file:aA.file||void 0,names:GA.array,sourceRoot:aA.sourceRoot||void 0,sources:DA.array,sourcesContent:yA,mappings:nA,ignoreList:SA.array}}function MA(aA){const nA=mA(aA);return Object.assign(Object.assign({},nA),{mappings:iA.encode(nA.mappings)})}function fA(aA){const nA=new IA.TraceMap(aA),DA=new rA({file:nA.file,sourceRoot:nA.sourceRoot});return FA(DA._names,nA.names),FA(DA._sources,nA.sources),DA._sourcesContent=nA.sourcesContent||nA.sources.map(()=>null),DA._mappings=IA.decodedMappings(nA),nA.ignoreList&&FA(DA._ignoreList,nA.ignoreList),DA}function LA(aA){const nA=[],{_mappings:DA,_sources:yA,_names:GA}=aA;for(let SA=0;SA<DA.length;SA++){const YA=DA[SA];for(let UA=0;UA<YA.length;UA++){const KA=YA[UA],qA={line:SA+1,column:KA[0]};let $A,VA,PA;KA.length!==1&&($A=yA.array[KA[1]],VA={line:KA[2]+1,column:KA[3]},KA.length===5&&(PA=GA.array[KA[4]])),nA.push({generated:qA,source:$A,original:VA,name:PA})}}return nA}function _A(aA,nA,DA,yA,GA,SA,YA,UA,KA){const{_mappings:qA,_sources:$A,_sourcesContent:VA,_names:PA}=nA,zA=bA(qA,DA),WA=JA(zA,yA);if(!GA)return aA&&vA(zA,WA)?void 0:RA(zA,WA,[yA]);const Ag=gA.put($A,GA),eg=UA?gA.put(PA,UA):-1;if(Ag===VA.length&&(VA[Ag]=KA??null),!(aA&&xA(zA,WA,Ag,SA,YA,eg)))return RA(zA,WA,UA?[yA,Ag,SA,YA,eg]:[yA,Ag,SA,YA])}function bA(aA,nA){for(let DA=aA.length;DA<=nA;DA++)aA[DA]=[];return aA[nA]}function JA(aA,nA){let DA=aA.length;for(let yA=DA-1;yA>=0;DA=yA--){const GA=aA[yA];if(nA>=GA[0])break}return DA}function RA(aA,nA,DA){for(let yA=aA.length;yA>nA;yA--)aA[yA]=aA[yA-1];aA[nA]=DA}function NA(aA){const{length:nA}=aA;let DA=nA;for(let yA=DA-1;yA>=0&&!(aA[yA].length>0);DA=yA,yA--);DA<nA&&(aA.length=DA)}function FA(aA,nA){for(let DA=0;DA<nA.length;DA++)gA.put(aA,nA[DA])}function vA(aA,nA){return nA===0?!0:aA[nA-1].length===1}function xA(aA,nA,DA,yA,GA,SA){if(nA===0)return!1;const YA=aA[nA-1];return YA.length===1?!1:DA===YA[1]&&yA===YA[2]&&GA===YA[3]&&SA===(YA.length===5?YA[4]:-1)}function kA(aA,nA,DA){const{generated:yA,source:GA,original:SA,name:YA,content:UA}=DA;return GA?_A(aA,nA,yA.line-1,yA.column,GA,SA.line-1,SA.column,YA,UA):_A(aA,nA,yA.line-1,yA.column,null,null,null,null,null)}tA.GenMapping=rA,tA.addMapping=cA,tA.addSegment=uA,tA.allMappings=LA,tA.fromMap=fA,tA.maybeAddMapping=dA,tA.maybeAddSegment=hA,tA.setIgnore=wA,tA.setSourceContent=pA,tA.toDecodedMap=mA,tA.toEncodedMap=MA,Object.defineProperty(tA,"__esModule",{value:!0})})}(genMapping_umd,genMapping_umd.exports)),genMapping_umd.exports}(function(eA,AA){(function(tA,gA){eA.exports=gA(requireTraceMapping_umd(),requireGenMapping_umd())})(commonjsGlobal,function(tA,gA){const iA=BA("",-1,-1,"",null,!1),IA=[];function BA(dA,pA,wA,mA,MA,fA){return{source:dA,line:pA,column:wA,name:mA,content:MA,ignore:fA}}function sA(dA,pA,wA,mA,MA){return{map:dA,sources:pA,source:wA,content:mA,ignore:MA}}function CA(dA,pA){return sA(dA,pA,"",null,!1)}function oA(dA,pA,wA){return sA(null,IA,dA,pA,wA)}function QA(dA){const pA=new gA.GenMapping({file:dA.map.file}),{sources:wA,map:mA}=dA,MA=mA.names,fA=tA.decodedMappings(mA);for(let LA=0;LA<fA.length;LA++){const _A=fA[LA];for(let bA=0;bA<_A.length;bA++){const JA=_A[bA],RA=JA[0];let NA=iA;if(JA.length!==1){const DA=wA[JA[1]];if(NA=EA(DA,JA[2],JA[3],JA.length===5?MA[JA[4]]:""),NA==null)continue}const{column:FA,line:vA,name:xA,content:kA,source:aA,ignore:nA}=NA;gA.maybeAddSegment(pA,LA,RA,aA,vA,FA,xA),aA&&kA!=null&&gA.setSourceContent(pA,aA,kA),nA&&gA.setIgnore(pA,aA,!0)}}return pA}function EA(dA,pA,wA,mA){if(!dA.map)return BA(dA.source,pA,wA,mA,dA.content,dA.ignore);const MA=tA.traceSegment(dA.map,pA,wA);return MA==null?null:MA.length===1?iA:EA(dA.sources[MA[1]],MA[2],MA[3],MA.length===5?dA.map.names[MA[4]]:mA)}function rA(dA){return Array.isArray(dA)?dA:[dA]}function lA(dA,pA){const wA=rA(dA).map(fA=>new tA.TraceMap(fA,"")),mA=wA.pop();for(let fA=0;fA<wA.length;fA++)if(wA[fA].sources.length>1)throw new Error(`Transformation map ${fA} must have exactly one source file.
57
57
  Did you specify these with the most recent transformation maps first?`);let MA=uA(mA,pA,"",0);for(let fA=wA.length-1;fA>=0;fA--)MA=CA(wA[fA],[MA]);return MA}function uA(dA,pA,wA,mA){const{resolvedSources:MA,sourcesContent:fA,ignoreList:LA}=dA,_A=mA+1,bA=MA.map((JA,RA)=>{const NA={importer:wA,depth:_A,source:JA||"",content:void 0,ignore:void 0},FA=pA(NA.source,NA),{source:vA,content:xA,ignore:kA}=NA;if(FA)return uA(new tA.TraceMap(FA,vA),pA,vA,_A);const aA=xA!==void 0?xA:fA?fA[RA]:null,nA=kA!==void 0?kA:LA?LA.includes(RA):!1;return oA(vA,aA,nA)});return CA(dA,bA)}class cA{constructor(pA,wA){const mA=wA.decodedMappings?gA.toDecodedMap(pA):gA.toEncodedMap(pA);this.version=mA.version,this.file=mA.file,this.mappings=mA.mappings,this.names=mA.names,this.ignoreList=mA.ignoreList,this.sourceRoot=mA.sourceRoot,this.sources=mA.sources,wA.excludeContent||(this.sourcesContent=mA.sourcesContent)}toString(){return JSON.stringify(this)}}function hA(dA,pA,wA){const mA=typeof wA=="object"?wA:{excludeContent:!!wA,decodedMappings:!1},MA=lA(dA,pA);return new cA(QA(MA),mA)}return hA})})(remapping_umd);var remapping_umdExports=remapping_umd.exports,remapping=getDefaultExportFromCjs(remapping_umdExports);const b64enc=typeof window<"u"&&typeof btoa=="function"?eA=>btoa(unescape(encodeURIComponent(eA))):eA=>Buffer.from(eA).toString("base64");function combine_sourcemaps(eA,AA){if(AA.length==0)return null;let tA=1;const gA=AA.slice(0,-1).find(iA=>iA.sources.length!==1)===void 0?remapping(AA,()=>null,!0):remapping(AA[0],iA=>iA===eA&&AA[tA]?AA[tA++]:null,!0);return gA.file||delete gA.file,gA.sources.length||(gA.sources=[eA]),gA}function apply_preprocessor_sourcemap(eA,AA,tA){if(!AA||!tA)return AA;const gA=typeof tA=="string"?JSON.parse(tA):tA,iA=combine_sourcemaps(eA,[AA,gA]);return Object.defineProperties(iA,{toString:{enumerable:!1,value:function(){return JSON.stringify(this)}},toUrl:{enumerable:!1,value:function(){return"data:application/json;charset=utf-8;base64,"+b64enc(this.toString())}}}),iA}function merge_with_preprocessor_map(eA,AA,tA){if(AA.sourcemap){const gA=get_basename(AA.filename);eA.map.sources=[gA],eA.map=apply_preprocessor_sourcemap(gA,eA.map,AA.sourcemap),gA!==tA&&(eA.map.sources=eA.map.sources.map(iA=>get_relative_path(tA,iA)))}}function get_relative_path(eA,AA){const tA=eA.split(/[/\\]/),gA=AA.split(/[/\\]/);for(tA.pop();tA[0]===gA[0];)tA.shift(),gA.shift();if(tA.length){let iA=tA.length;for(;iA--;)tA[iA]=".."}return tA.concat(gA).join("/")}function get_basename(eA){return eA.split(/[/\\]/).pop()}function get_source_name(eA,AA,tA){return AA?get_relative_path(AA,eA):get_basename(eA)}function render_stylesheet(eA,AA,tA){const gA=new MagicString(eA),iA={code:gA,hash:AA.css.hash,minify:AA.inject_styles&&!tA.dev,selector:`.${AA.css.hash}`,keyframes:AA.css.keyframes,specificity:{bumped:!1}},IA=AA.css.ast;walk(IA,iA,visitors$1),gA.remove(0,IA.content.start),gA.remove(IA.content.end,eA.length),iA.minify&&remove_preceding_whitespace(IA.content.end,iA);const BA={code:gA.toString(),map:gA.generateMap({includeContent:!0,source:tA.filename,file:tA.cssOutputFilename||tA.filename})};return merge_with_preprocessor_map(BA,tA,BA.map.sources[0]),dev&&tA.css==="injected"&&BA.code&&(BA.code+=`
58
58
  /*# sourceMappingURL=${BA.map.toUrl()} */`),BA}const visitors$1={_:(eA,AA)=>{AA.state.code.addSourcemapLocation(eA.start),AA.state.code.addSourcemapLocation(eA.end),AA.next()},Atrule(eA,{state:AA,next:tA}){if(is_keyframes_node(eA)){let gA=eA.start+eA.name.length+1;for(;AA.code.original[gA]===" ";)gA+=1;let iA=gA;for(;AA.code.original[iA]!=="{"&&AA.code.original[iA]!==" ";)iA+=1;eA.prelude.startsWith("-global-")?AA.code.remove(gA,gA+8):AA.code.prependRight(gA,`${AA.hash}-`);return}tA()},Declaration(eA,{state:AA}){const tA=eA.property&&remove_css_prefix(eA.property.toLowerCase());if(tA==="animation"||tA==="animation-name"){let gA=eA.start+eA.property.length+1,iA="";for(;gA<AA.code.original.length;){const IA=AA.code.original[gA];if(regex_css_name_boundary.test(IA)){if(AA.keyframes.includes(iA)&&AA.code.prependRight(gA-iA.length,`${AA.hash}-`),IA===";"||IA==="}")break;iA=""}else iA+=IA;gA++}}else if(AA.minify&&(remove_preceding_whitespace(eA.start,AA),!eA.property.startsWith("--"))){let gA=eA.start+eA.property.length+1,iA=gA;for(;/\s/.test(AA.code.original[iA]);)iA++;iA>gA&&AA.code.remove(gA,iA)}},Rule(eA,{state:AA,next:tA,visit:gA}){if(AA.minify&&(remove_preceding_whitespace(eA.start,AA),remove_preceding_whitespace(eA.block.end-1,AA)),!dev&&is_empty(eA)){AA.minify?AA.code.remove(eA.start,eA.end):(AA.code.prependRight(eA.start,"/* (empty) "),AA.code.appendLeft(eA.end,"*/"),escape_comment_close(eA,AA.code));return}if(!is_used(eA)){AA.minify?AA.code.remove(eA.start,eA.end):(AA.code.prependRight(eA.start,"/* (unused) "),AA.code.appendLeft(eA.end,"*/"),escape_comment_close(eA,AA.code));return}if(eA.metadata.is_global_block){const iA=eA.prelude.children[0];if(iA.children.length===1&&iA.children[0].selectors.length===1){AA.minify?(AA.code.remove(eA.start,eA.block.start+1),AA.code.remove(eA.block.end-1,eA.end)):(AA.code.prependRight(eA.start,"/* "),AA.code.appendLeft(eA.block.start+1,"*/"),AA.code.prependRight(eA.block.end-1,"/*"),AA.code.appendLeft(eA.block.end,"*/"));return}gA(eA.prelude);return}tA()},SelectorList(eA,{state:AA,next:tA,path:gA}){if(!gA.find(BA=>BA.type==="ComplexSelector"&&!BA.metadata.used)){const BA=eA.children;let sA=!1,CA=BA[0].start,oA=CA;for(let QA=0;QA<BA.length;QA+=1){const EA=BA[QA];if(EA.metadata.used===sA){if(sA){let rA=EA.start;for(;AA.code.original[rA]!==",";)rA--;AA.minify?AA.code.remove(CA,rA+1):AA.code.overwrite(rA,rA+1,"*/")}else if(QA===0)AA.minify?CA=EA.start:AA.code.prependRight(EA.start,"/* (unused) ");else{const rA=QA!==BA.length-1?",":"";if(AA.minify){if(CA=oA,rA){for(;AA.code.original[CA-1]!==",";)CA++;AA.code.update(oA,CA,rA)}}else AA.code.overwrite(oA,EA.start,`${rA} /* (unused) `)}sA=!sA}oA=EA.end}sA&&(AA.minify?AA.code.remove(CA,oA):AA.code.appendLeft(oA,"*/"))}let iA=AA.specificity,IA=gA.at(-1);if((IA==null?void 0:IA.type)==="Rule"){iA={bumped:!1};let BA=IA.metadata.parent_rule;for(;BA;){if(BA.metadata.has_local_selectors){iA={bumped:!0};break}BA=BA.metadata.parent_rule}}tA({...AA,specificity:iA})},ComplexSelector(eA,AA){var gA;const tA=AA.state.specificity.bumped;for(const iA of eA.children){if(iA.metadata.is_global){const IA=iA.selectors[0];remove_global_pseudo_class(IA,iA.combinator,AA.state),(gA=eA.metadata.rule)!=null&&gA.metadata.parent_rule&&IA.args===null&&iA.combinator===null&&AA.state.code.prependRight(IA.start,"&");continue}if(iA.metadata.scoped){if(iA.selectors.length===1){const sA=iA.selectors[0];if(sA.type==="PseudoClassSelector"&&(sA.name==="is"||sA.name==="where"))continue}for(const sA of iA.selectors)sA.type==="PseudoClassSelector"&&sA.name==="global"&&remove_global_pseudo_class(sA,null,AA.state);if(iA.selectors.some(sA=>sA.type==="NestingSelector"))continue;let IA=AA.state.selector;AA.state.specificity.bumped&&(IA=`:where(${IA})`),AA.state.specificity.bumped=!0;let BA=iA.selectors.length;for(;BA--;){const sA=iA.selectors[BA];if(sA.type==="PseudoElementSelector"||sA.type==="PseudoClassSelector"){sA.name!=="root"&&sA.name!=="host"&&BA===0&&AA.state.code.prependRight(sA.start,IA);continue}sA.type==="TypeSelector"&&sA.name==="*"?AA.state.code.update(sA.start,sA.end,IA):AA.state.code.appendLeft(sA.end,IA);break}}}AA.next(),AA.state.specificity.bumped=tA},PseudoClassSelector(eA,AA){(eA.name==="is"||eA.name==="where"||eA.name==="has"||eA.name==="not")&&AA.next()}};function remove_global_pseudo_class(eA,AA,tA){if(eA.args===null){let gA=eA.start;if((AA==null?void 0:AA.name)===" ")for(;/\s/.test(tA.code.original[gA-1]);)gA--;tA.code.remove(gA,eA.start+7)}else tA.code.remove(eA.start,eA.start+8).remove(eA.end-1,eA.end)}function remove_preceding_whitespace(eA,AA){let tA=eA;for(;/\s/.test(AA.code.original[tA-1]);)tA--;tA<eA&&AA.code.remove(tA,eA)}function is_empty(eA){if(eA.metadata.is_global_block)return eA.block.children.length===0;for(const AA of eA.block.children)if(AA.type==="Declaration"||AA.type==="Rule"&&is_used(AA)&&!is_empty(AA)||AA.type==="Atrule"&&(AA.block===null||AA.block.children.length>0))return!1;return!0}function is_used(eA){return eA.prelude.children.some(AA=>AA.metadata.used)}function escape_comment_close(eA,AA){let tA=!1,gA=!1;for(let iA=eA.start;iA<eA.end;iA++)if(tA)tA=!1;else{const IA=AA.original[iA];gA?IA==="*"&&AA.original[iA+1]==="/"&&(AA.prependRight(++iA,"\\"),gA=!1):IA==="\\"?tA=!0:IA==="/"&&AA.original[++iA]==="*"&&(gA=!0)}}function visit_assignment_expression(eA,AA,tA){if(eA.left.type==="ArrayPattern"||eA.left.type==="ObjectPattern"||eA.left.type==="RestElement"){const gA=AA.visit(eA.right),iA=gA.type!=="Identifier",IA=iA?id$1("$$value"):gA;let BA=!1;const sA=extract_paths(eA.left).map(QA=>{var lA;const EA=(lA=QA.expression)==null?void 0:lA.call(QA,IA);let rA=tA("=",QA.node,EA,AA);return rA!==null&&(BA=!0),rA??assignment("=",AA.visit(QA.node),AA.visit(EA))});if(!BA)return null;const CA=AA.path.at(-1).type.endsWith("Statement"),oA=sequence$1(sA);if(CA||oA.expressions.push(IA),iA){const QA=arrow([IA],oA);return is_expression_async(gA)||sA.some(rA=>is_expression_async(rA))?await_builder(call(async(QA),gA)):call(QA,gA)}return oA}if(eA.left.type!=="Identifier"&&eA.left.type!=="MemberExpression")throw new Error(`Unexpected assignment type ${eA.left.type}`);return tA(eA.operator,eA.left,eA.right,AA)}function AssignmentExpression$1(eA,AA){return visit_assignment_expression(eA,AA,build_assignment$1)??AA.next()}function build_assignment$1(eA,AA,tA,gA){let iA=AA;for(;iA.type==="MemberExpression";)iA=iA.object;if(iA.type!=="Identifier"||!is_store_name(iA.name))return null;const IA=iA.name.slice(1);if(!gA.state.scope.get(IA))return null;if(iA===AA){let BA=gA.visit(build_assignment_value(eA,AA,tA));return call("$.store_set",id$1(IA),BA)}return call("$.store_mutate",assignment("??=",id$1("$$store_subs"),object$2([])),literal(iA.name),id$1(IA),assignment(eA,gA.visit(AA),gA.visit(tA)))}function is_store_name(eA){return eA[0]==="$"&&/[A-Za-z_]/.test(eA[1])}const ATTR_REGEX=/[&"<]/g,CONTENT_REGEX=/[&<]/g;function escape_html(eA,AA){const tA=String(eA??""),gA=AA?ATTR_REGEX:CONTENT_REGEX;gA.lastIndex=0;let iA="",IA=0;for(;gA.test(tA);){const BA=gA.lastIndex-1,sA=tA[BA];iA+=tA.substring(IA,BA)+(sA==="&"?"&amp;":sA==='"'?"&quot;":"&lt;"),IA=BA+1}return iA+tA.substring(IA)}const BLOCK_OPEN=`<!--${HYDRATION_START}-->`,BLOCK_OPEN_ELSE=`<!--${HYDRATION_START_ELSE}-->`,BLOCK_CLOSE=`<!--${HYDRATION_END}-->`,EMPTY_COMMENT="<!---->",block_open=literal(BLOCK_OPEN),block_close=literal(BLOCK_CLOSE),empty_comment=literal(EMPTY_COMMENT);function process_children$1(eA,{visit:AA,state:tA}){let gA=[];function iA(){let IA=quasi("",!1);const BA=[IA],sA=[];for(let CA=0;CA<gA.length;CA++){const oA=gA[CA];oA.type==="Text"||oA.type==="Comment"?IA.value.cooked+=oA.type==="Comment"?`<!--${oA.data}-->`:escape_html(oA.data):oA.type==="ExpressionTag"&&oA.expression.type==="Literal"?oA.expression.value!=null&&(IA.value.cooked+=escape_html(oA.expression.value+"")):(sA.push(call("$.escape",AA(oA.expression))),IA=quasi("",CA+1===gA.length),BA.push(IA))}for(const CA of BA)CA.value.raw=sanitize_template_string(CA.value.cooked);tA.template.push(template(BA,sA))}for(let IA=0;IA<eA.length;IA+=1){const BA=eA[IA];BA.type==="Text"||BA.type==="Comment"||BA.type==="ExpressionTag"?gA.push(BA):(gA.length>0&&(iA(),gA=[]),AA(BA,{...tA}))}gA.length>0&&iA()}function is_statement(eA){return eA.type.endsWith("Statement")||eA.type.endsWith("Declaration")}function build_template(eA,AA=id$1("$$payload.out"),tA="+="){let gA=[],iA=[];const IA=[],BA=()=>{IA.push(stmt(assignment(tA,AA,template(gA.map((sA,CA)=>quasi(sA,CA===gA.length-1)),iA)))),gA=[],iA=[]};for(let sA=0;sA<eA.length;sA++){const CA=eA[sA];is_statement(CA)?(gA.length!==0&&BA(),IA.push(CA)):(gA.length===0&&gA.push(""),CA.type==="Literal"?gA[gA.length-1]+=CA.value:CA.type==="TemplateLiteral"?(gA[gA.length-1]+=CA.quasis[0].value.cooked,gA.push(...CA.quasis.slice(1).map(oA=>oA.value.cooked)),iA.push(...CA.expressions)):(iA.push(CA),gA.push("")))}return gA.length!==0&&BA(),IA}function build_attribute_value$1(eA,AA,tA=!1,gA=!1){if(eA===!0)return true_instance;if(!Array.isArray(eA)||eA.length===1){const sA=Array.isArray(eA)?eA[0]:eA;if(sA.type==="Text"){const CA=tA?sA.data.replace(regex_whitespaces_strict," ").trim():sA.data;return literal(gA?CA:escape_html(CA,!0))}return AA.visit(sA.expression)}let iA=quasi("",!1);const IA=[iA],BA=[];for(let sA=0;sA<eA.length;sA++){const CA=eA[sA];CA.type==="Text"?iA.value.raw+=tA?CA.data.replace(regex_whitespaces_strict," "):CA.data:(BA.push(call("$.stringify",AA.visit(CA.expression))),iA=quasi("",sA+1===eA.length),IA.push(iA))}return template(IA,BA)}function build_getter(eA,AA){const tA=AA.scope.get(eA.name);if(tA===null||eA===tA.node)return eA;if(tA.kind==="store_sub"){const gA=id$1(eA.name.slice(1));return call("$.store_get",assignment("??=",id$1("$$store_subs"),object$2([])),literal(eA.name),build_getter(gA,AA))}return eA}function AwaitBlock$1(eA,AA){AA.state.template.push(empty_comment,stmt(call("$.await",AA.visit(eA.expression),thunk(eA.pending?AA.visit(eA.pending):block([])),arrow(eA.value?[AA.visit(eA.value)]:[],eA.then?AA.visit(eA.then):block([])),arrow(eA.error?[AA.visit(eA.error)]:[],eA.catch?AA.visit(eA.catch):block([])))),empty_comment)}function is_hoisted_function(eA){var AA;return eA.type==="ArrowFunctionExpression"||eA.type==="FunctionExpression"||eA.type==="FunctionDeclaration"?((AA=eA.metadata)==null?void 0:AA.hoisted)===!0:!1}function sort_const_tags(eA,AA){const tA=[],gA=new Map;for(const CA of eA)if(CA.type==="ConstTag"){const oA=CA.declaration.declarations[0],QA=extract_identifiers(oA.id).map(rA=>AA.scope.get(rA.name)),EA=new Set;walk(oA.init,AA,{_:set_scope,Identifier(rA,lA){const uA=lA.path.at(-1);if(is_reference(rA,uA)){const cA=lA.state.scope.get(rA.name);cA&&EA.add(cA)}}});for(const rA of QA)gA.set(rA,{node:CA,deps:EA})}else tA.push(CA);if(gA.size===0)return eA;const iA=[];for(const[CA,oA]of gA)for(const QA of oA.deps)gA.has(QA)&&iA.push([CA,QA]);const IA=check_graph_for_cycles(iA);if(IA!=null&&IA.length){const CA=gA.get(IA[0]);const_tag_cycle(CA.node,IA.map(oA=>oA.node.name).join(" → "))}const BA=[];function sA(CA){if(!BA.includes(CA.node)){for(const oA of CA.deps){const QA=gA.get(oA);QA&&sA(QA)}BA.push(CA.node)}}for(const CA of gA.values())sA(CA);return[...BA,...tA]}function clean_nodes(eA,AA,tA,gA="html",iA,IA,BA){iA.analysis.runes||(AA=sort_const_tags(AA,iA));const sA=[],CA=[];for(const EA of AA)EA.type==="Comment"&&!BA||(EA.type==="ConstTag"||EA.type==="DebugTag"||EA.type==="SvelteBody"||EA.type==="SvelteWindow"||EA.type==="SvelteDocument"||EA.type==="SvelteHead"||EA.type==="TitleElement"||EA.type==="SnippetBlock"?sA.push(EA):CA.push(EA));let oA=CA;if(!IA){oA=[];let EA,rA;for(;(EA=CA[0])&&EA.type==="Text"&&!regex_not_whitespace.test(EA.data);)CA.shift();for((EA==null?void 0:EA.type)==="Text"&&(EA.raw=EA.raw.replace(regex_starts_with_whitespaces,""),EA.data=EA.data.replace(regex_starts_with_whitespaces,""));(rA=CA.at(-1))&&rA.type==="Text"&&!regex_not_whitespace.test(rA.data);)CA.pop();(rA==null?void 0:rA.type)==="Text"&&(rA.raw=rA.raw.replace(regex_ends_with_whitespaces,""),rA.data=rA.data.replace(regex_ends_with_whitespaces,""));const lA=gA==="svg"&&(eA.type!=="RegularElement"||eA.name!=="text")&&!tA.some(uA=>uA.type==="RegularElement"&&uA.name==="text")||eA.type==="RegularElement"&&(eA.name==="select"||eA.name==="tr"||eA.name==="table"||eA.name==="tbody"||eA.name==="thead"||eA.name==="tfoot"||eA.name==="colgroup"||eA.name==="datalist");for(let uA=0;uA<CA.length;uA++){const cA=CA[uA-1],hA=CA[uA],dA=CA[uA+1];if(hA.type==="Text"){if((cA==null?void 0:cA.type)!=="ExpressionTag"){const pA=(cA==null?void 0:cA.type)==="Text"&&regex_ends_with_whitespaces.test(cA.data);hA.data=hA.data.replace(regex_starts_with_whitespaces,pA?"":" "),hA.raw=hA.raw.replace(regex_starts_with_whitespaces,pA?"":" ")}(dA==null?void 0:dA.type)!=="ExpressionTag"&&(hA.data=hA.data.replace(regex_ends_with_whitespaces," "),hA.raw=hA.raw.replace(regex_ends_with_whitespaces," ")),hA.data&&(hA.data!==" "||!lA)&&oA.push(hA)}else oA.push(hA)}}var QA=oA[0];return oA.length===1&&QA.type==="RegularElement"&&QA.name==="script"&&oA.push({type:"Comment",data:"",parent:QA.parent,start:-1,end:-1}),{hoisted:sA,trimmed:oA,is_standalone:oA.length===1&&(QA.type==="RenderTag"&&!QA.metadata.dynamic||QA.type==="Component"&&!iA.options.hmr&&!QA.metadata.dynamic&&!QA.attributes.some(EA=>EA.type==="Attribute"&&EA.name.startsWith("--"))),is_text_first:(eA.type==="Fragment"||eA.type==="SnippetBlock"||eA.type==="EachBlock"||eA.type==="SvelteComponent"||eA.type==="Component"||eA.type==="SvelteSelf")&&QA&&((QA==null?void 0:QA.type)==="Text"||(QA==null?void 0:QA.type)==="ExpressionTag")}}function infer_namespace(eA,AA,tA){if(AA.type==="RegularElement"&&AA.name==="foreignObject")return"html";if(AA.type==="RegularElement"||AA.type==="SvelteElement")return AA.metadata.svg?"svg":AA.metadata.mathml?"mathml":"html";if(AA.type==="Fragment"||AA.type==="Root"||AA.type==="Component"||AA.type==="SvelteComponent"||AA.type==="SvelteFragment"||AA.type==="SnippetBlock"||AA.type==="SlotElement"){const gA=check_nodes_for_namespace(tA,"keep");if(gA!=="keep"&&gA!=="maybe_html")return gA}return eA}function check_nodes_for_namespace(eA,AA){const tA=(gA,{stop:iA})=>{!gA.metadata.svg&&!gA.metadata.mathml?(AA="html",iA()):AA==="keep"&&(AA=gA.metadata.svg?"svg":"mathml")};for(const gA of eA)if(walk(gA,{},{_(iA,{next:IA}){(iA.type==="EachBlock"||iA.type==="IfBlock"||iA.type==="AwaitBlock"||iA.type==="Fragment"||iA.type==="KeyBlock"||iA.type==="RegularElement"||iA.type==="SvelteElement"||iA.type==="Text")&&IA()},SvelteElement:tA,RegularElement:tA,Text(iA){iA.data.trim()!==""&&(AA="maybe_html")}}),AA==="html")return AA;return AA}function determine_namespace_for_children(eA,AA){return eA.name==="foreignObject"?"html":eA.metadata.svg?"svg":eA.metadata.mathml?"mathml":"html"}function transform_inspect_rune(eA,AA){const{state:tA,visit:gA}=AA,iA=tA.options.generate==="client";if(!dev)return empty;if(eA.callee.type==="MemberExpression"){const BA=eA.callee.object.arguments.map(CA=>gA(CA)),sA=gA(eA.arguments[0]);return call("$.inspect",iA?thunk(array(BA)):array(BA),sA)}else{const IA=eA.arguments.map(BA=>gA(BA));return call("$.inspect",iA?thunk(array(IA)):array(IA))}}function CallExpression$1(eA,AA){const tA=get_rune(eA,AA.state.scope);if(tA==="$host")return id$1("undefined");if(tA==="$effect.tracking")return literal(!1);if(tA==="$effect.root")return arrow([],block([]));if(tA==="$state.snapshot")return call("$.snapshot",AA.visit(eA.arguments[0]),is_ignored(eA,"state_snapshot_uncloneable")&&true_instance);if(tA==="$inspect"||tA==="$inspect().with")return transform_inspect_rune(eA,AA);AA.next()}function ClassBody$1(eA,AA){var sA,CA;if(!AA.state.analysis.runes){AA.next();return}const tA=new Map,gA=new Map,iA=[];for(const oA of eA.body)if(oA.type==="PropertyDefinition"&&(oA.key.type==="Identifier"||oA.key.type==="PrivateIdentifier")){const{type:QA,name:EA}=oA.key,rA=QA==="PrivateIdentifier";if(rA&&iA.push(EA),((sA=oA.value)==null?void 0:sA.type)==="CallExpression"){const lA=get_rune(oA.value,AA.state.scope);if(lA==="$derived"||lA==="$derived.by"){const uA={kind:lA==="$derived.by"?"derived_by":"derived",id:rA?oA.key:null};rA?gA.set(EA,uA):tA.set(EA,uA)}}}for(const[oA,QA]of tA){let EA=oA;for(;iA.includes(EA);)EA="_"+EA;iA.push(EA),QA.id=private_id(EA)}const IA=[],BA={...AA.state,private_derived:gA};for(const oA of eA.body){if(oA.type==="PropertyDefinition"&&(oA.key.type==="Identifier"||oA.key.type==="PrivateIdentifier")){const QA=oA.key.name,EA=oA.key.type==="PrivateIdentifier",rA=(EA?gA:tA).get(QA);if(((CA=oA.value)==null?void 0:CA.type)==="CallExpression"&&rA!==void 0){const lA=AA.visit(oA.value.arguments[0],BA),uA=rA.kind==="derived_by"?call("$.once",lA):call("$.once",thunk(lA));if(EA)IA.push(prop_def(rA.id,uA));else{const cA=member(this_instance,rA.id);IA.push(prop_def(rA.id,uA)),IA.push(method("get",oA.key,[],[return_builder(call(cA))])),dev&&(rA.kind==="derived"||rA.kind==="derived_by")&&IA.push(method("set",oA.key,[id$1("_")],[throw_error$1(`Cannot update a derived property ('${QA}')`)]))}continue}}IA.push(AA.visit(oA,BA))}return{...eA,body:IA}}function build_inline_component(eA,AA,tA){const gA=[],iA=[],IA={default:[]},BA={...tA.state,scope:eA.metadata.scopes.default},sA={},CA=eA.attributes.some(hA=>hA.type==="Attribute"&&hA.name==="slot");let oA=!1;function QA(hA){const dA=gA.at(-1),pA=Array.isArray(dA),wA=pA?dA:[];wA.push(hA),pA||gA.push(wA)}for(const hA of eA.attributes)if(hA.type==="LetDirective")CA||IA.default.push(hA);else if(hA.type==="SpreadAttribute")gA.push(tA.visit(hA));else if(hA.type==="Attribute"){if(hA.name.startsWith("--")){const pA=build_attribute_value$1(hA.value,tA,!1,!0);iA.push(init(hA.name,pA));continue}hA.name==="children"&&(oA=!0);const dA=build_attribute_value$1(hA.value,tA,!1,!0);QA(prop("init",key$2(hA.name),dA))}else hA.type==="BindDirective"&&hA.name!=="this"&&(QA(get(hA.name,[return_builder(tA.visit(hA.expression))])),QA(set(hA.name,[stmt(tA.visit(assignment("=",hA.expression,id$1("$$value")))),stmt(assignment("=",id$1("$$settled"),false_instance))])));const EA=[],rA=[];for(const hA of eA.fragment.nodes){if(hA.type==="SnippetBlock"){tA.visit(hA,{...tA.state,init:EA}),QA(prop("init",hA.expression,hA.expression)),rA.push(init(hA.expression.name==="children"?"default":hA.expression.name,true_instance));continue}let dA="default";if(is_element_node(hA)){const pA=hA.attributes.find(wA=>wA.type==="Attribute"&&wA.name==="slot");pA!==void 0?(dA=pA.value[0].data,IA[dA]=hA.attributes.filter(wA=>wA.type==="LetDirective")):hA.type==="SvelteFragment"&&IA.default.push(...hA.attributes.filter(wA=>wA.type==="LetDirective"))}sA[dA]=sA[dA]||[],sA[dA].push(hA)}for(const hA of Object.keys(sA)){const dA=tA.visit({...eA.fragment,nodes:sA[hA]},hA==="default"?BA:{...tA.state,scope:eA.metadata.scopes[hA]});if(dA.body.length===0)continue;const pA=[id$1("$$payload")];if(IA[hA].length>0){const mA=object_pattern(IA[hA].map(MA=>MA.expression===null?init(MA.name,id$1(MA.name)):MA.expression.type==="ObjectExpression"?init(MA.name,object_pattern(MA.expression.properties)):MA.expression.type==="ArrayExpression"?init(MA.name,array_pattern(MA.expression.elements)):init(MA.name,MA.expression)));pA.push(mA)}const wA=arrow(pA,block(dA.body));hA==="default"&&!oA?IA.default.length===0&&sA.default.every(mA=>mA.type!=="SvelteFragment"||!mA.attributes.some(MA=>MA.type==="LetDirective"))?(QA(prop("init",id$1("children"),wA)),rA.push(init(hA,true_instance))):(rA.push(init(hA,wA)),QA(init("children",id$1("$.invalid_default_snippet")))):rA.push(init(hA,wA))}rA.length>0&&QA(prop("init",id$1("$$slots"),object$2(rA)));const lA=gA.length===0||gA.length===1&&Array.isArray(gA[0])?object$2(gA[0]||[]):call("$.spread_props",array(gA.map(hA=>Array.isArray(hA)?object$2(hA):hA)));let uA=stmt((eA.type==="SvelteComponent"?maybe_call:call)(AA,id$1("$$payload"),lA));EA.length>0&&(uA=block([...EA,uA]));const cA=eA.type==="SvelteComponent"||eA.type==="Component"&&eA.metadata.dynamic;iA.length>0?tA.state.template.push(stmt(call("$.css_props",id$1("$$payload"),literal(tA.state.namespace!=="svg"),object$2(iA),thunk(block([uA])),cA&&true_instance))):(cA&&tA.state.template.push(empty_comment),tA.state.template.push(uA),tA.state.skip_hydration_boundaries||tA.state.template.push(empty_comment))}function Component$1(eA,AA){build_inline_component(eA,id$1(eA.name),AA)}function ConstTag$1(eA,AA){const tA=eA.declaration.declarations[0],gA=AA.visit(tA.id),iA=AA.visit(tA.init);AA.state.init.push(const_builder(gA,iA))}function DebugTag$1(eA,AA){AA.state.template.push(stmt(call("console.log",object$2(eA.identifiers.map(tA=>prop("init",tA,AA.visit(tA)))))),debugger_builder)}function EachBlock$1(eA,AA){const tA=AA.state,gA=eA.metadata,iA=AA.visit(eA.expression),IA=gA.contains_group_binding||!eA.index?gA.index:id$1(eA.index),BA=tA.scope.root.unique("each_array");tA.init.push(const_builder(BA,call("$.ensure_array_like",iA)));const sA=[let_builder(eA.context,member(BA,IA,!0))];IA.name!==eA.index&&eA.index!=null&&sA.push(let_builder(eA.index,IA)),sA.push(...AA.visit(eA.body).body);const CA=for_builder(declaration("let",[declarator(IA,literal(0)),declarator("$$length",member(BA,"length"))]),binary("<",IA,id$1("$$length")),update("++",IA,!1),block(sA));if(eA.fallback){const oA=stmt(assignment("+=",id$1("$$payload.out"),block_open)),QA=AA.visit(eA.fallback);QA.body.unshift(stmt(assignment("+=",id$1("$$payload.out"),literal(BLOCK_OPEN_ELSE)))),tA.template.push(if_builder(binary("!==",member(BA,"length"),literal(0)),block([oA,CA]),QA),block_close)}else tA.template.push(block_open,CA,block_close)}function ExpressionStatement$1(eA,AA){const tA=get_rune(eA.expression,AA.state.scope);if(tA==="$effect"||tA==="$effect.pre"||tA==="$effect.root")return empty;AA.next()}function Fragment$1(eA,AA){const tA=AA.path.at(-1)??eA,gA=infer_namespace(AA.state.namespace,tA,eA.nodes),{hoisted:iA,trimmed:IA,is_standalone:BA,is_text_first:sA}=clean_nodes(tA,eA.nodes,AA.path,gA,AA.state,AA.state.preserve_whitespace,AA.state.options.preserveComments),CA={...AA.state,init:[],template:[],namespace:gA,skip_hydration_boundaries:BA};for(const oA of iA)AA.visit(oA,CA);return sA&&CA.template.push(empty_comment),process_children$1(IA,{...AA,state:CA}),block([...CA.init,...build_template(CA.template)])}function HtmlTag$1(eA,AA){const tA=AA.visit(eA.expression);AA.state.template.push(call("$.html",tA))}function Identifier$1(eA,AA){if(is_reference(eA,AA.path.at(-1)))return eA.name==="$$props"?id$1("$$sanitized_props"):build_getter(eA,AA.state)}function IfBlock$1(eA,AA){const tA=AA.visit(eA.test),gA=AA.visit(eA.consequent),iA=eA.alternate?AA.visit(eA.alternate):block([]);gA.body.unshift(stmt(assignment("+=",id$1("$$payload.out"),block_open))),iA.body.unshift(stmt(assignment("+=",id$1("$$payload.out"),literal(BLOCK_OPEN_ELSE)))),AA.state.template.push(if_builder(tA,gA,iA),block_close)}function KeyBlock$1(eA,AA){AA.state.template.push(empty_comment,AA.visit(eA.fragment),empty_comment)}function LabeledStatement$1(eA,AA){if(!(AA.state.analysis.runes||AA.path.length>1||eA.label.name!=="$"))return AA.state.legacy_reactive_statements.set(eA,labeled("$",AA.visit(eA.body))),empty}function MemberExpression$1(eA,AA){if(AA.state.analysis.runes&&eA.object.type==="ThisExpression"&&eA.property.type==="PrivateIdentifier"&&AA.state.private_derived.get(eA.property.name))return call(eA);AA.next()}function PropertyDefinition(eA,AA){if(AA.state.analysis.runes&&eA.value!=null&&eA.value.type==="CallExpression"){const tA=get_rune(eA.value,AA.state.scope);if(tA==="$state"||tA==="$state.raw"||tA==="$derived")return{...eA,value:eA.value.arguments.length===0?null:AA.visit(eA.value.arguments[0])};if(tA==="$derived.by")return{...eA,value:eA.value.arguments.length===0?null:call(AA.visit(eA.value.arguments[0]))}}AA.next()}const WHITESPACE_INSENSITIVE_ATTRIBUTES=["class","style"];function build_element_attributes(eA,AA){const tA=[],gA=[],iA=[];let IA=null,BA=!1,sA=-1,CA=-1,oA=new Set;for(const QA of eA.attributes)if(QA.type==="Attribute")QA.name==="value"?eA.name==="textarea"?(QA.value!==!0&&Array.isArray(QA.value)&&QA.value[0].type==="Text"&&regex_starts_with_newline.test(QA.value[0].data)&&(QA.value[0].data=`
59
- `+QA.value[0].data),IA=call("$.escape",build_attribute_value$1(QA.value,AA))):eA.name!=="select"&&tA.push(QA):is_event_attribute(QA)?(QA.name==="onload"||QA.name==="onerror")&&is_load_error_element(eA.name)&&oA.add(QA.name):(QA.name==="class"?sA=tA.length:QA.name==="style"&&(CA=tA.length),tA.push(QA));else if(QA.type==="BindDirective"){if(QA.name==="value"&&eA.name==="select"||QA.name==="value"&&tA.some(rA=>rA.type==="Attribute"&&rA.name==="type"&&is_text_attribute(rA)&&rA.value[0].data==="file")||QA.name==="this")continue;const EA=binding_properties[QA.name];if(EA!=null&&EA.omit_in_ssr)continue;if(is_content_editable_binding(QA.name))IA=AA.visit(QA.expression);else if(QA.name==="value"&&eA.name==="textarea")IA=call("$.escape",AA.visit(QA.expression));else if(QA.name==="group"){const rA=eA.attributes.find(uA=>uA.type==="Attribute"&&uA.name==="value");if(!rA)continue;const lA=eA.attributes.some(uA=>uA.type==="Attribute"&&uA.name==="type"&&is_text_attribute(uA)&&uA.value[0].data==="checkbox");tA.push(create_attribute("checked",-1,-1,[{type:"ExpressionTag",start:-1,end:-1,parent:QA,expression:lA?call(member(QA.expression,"includes"),build_attribute_value$1(rA.value,AA)):binary("===",QA.expression,build_attribute_value$1(rA.value,AA)),metadata:{expression:create_expression_metadata()}}]))}else tA.push(create_attribute(QA.name,-1,-1,[{type:"ExpressionTag",start:-1,end:-1,parent:QA,expression:QA.expression,metadata:{expression:create_expression_metadata()}}]))}else QA.type==="SpreadAttribute"?(tA.push(QA),BA=!0,is_load_error_element(eA.name)&&(oA.add("onload"),oA.add("onerror"))):QA.type==="UseDirective"?is_load_error_element(eA.name)&&(oA.add("onload"),oA.add("onerror")):QA.type==="ClassDirective"?gA.push(QA):QA.type==="StyleDirective"?iA.push(QA):QA.type==="LetDirective"||AA.visit(QA);if(gA.length>0&&!BA){const QA=build_class_directives$1(gA,tA[sA]??null);sA===-1&&tA.push(QA)}if(iA.length>0&&!BA&&(build_style_directives$1(iA,tA[CA]??null,AA),CA>-1&&tA.splice(CA,1)),BA)build_element_spread_attributes(eA,tA,iA,gA,AA);else for(const QA of tA){if(QA.value===!0||is_text_attribute(QA)){const lA=get_attribute_name$1(eA,QA),uA=build_attribute_value$1(QA.value,AA,WHITESPACE_INSENSITIVE_ATTRIBUTES.includes(lA)).value;(lA!=="class"||uA)&&AA.state.template.push(literal(` ${QA.name}${is_boolean_attribute(lA)&&uA===!0?"":`="${uA===!0?"":String(uA)}"`}`));continue}const EA=get_attribute_name$1(eA,QA),rA=build_attribute_value$1(QA.value,AA,WHITESPACE_INSENSITIVE_ATTRIBUTES.includes(EA));AA.state.template.push(call("$.attr",literal(EA),rA,is_boolean_attribute(EA)&&true_instance))}if(oA.size!==0)for(const QA of oA)AA.state.template.push(literal(` ${QA}="this.__e=event"`));return IA}function get_attribute_name$1(eA,AA){let tA=AA.name;return!eA.metadata.svg&&!eA.metadata.mathml&&(tA=tA.toLowerCase()),tA}function build_element_spread_attributes(eA,AA,tA,gA,iA){let IA,BA,sA=0;if(gA.length>0||iA.state.analysis.css.hash){const QA=gA.map(EA=>init(EA.name,EA.expression.type==="Identifier"&&EA.expression.name===EA.name?id$1(EA.name):iA.visit(EA.expression)));iA.state.analysis.css.hash&&QA.unshift(init(iA.state.analysis.css.hash,literal(!0))),IA=object$2(QA)}if(tA.length>0){const QA=tA.map(EA=>init(EA.name,EA.value===!0?id$1(EA.name):build_attribute_value$1(EA.value,iA,!0)));BA=object$2(QA)}eA.metadata.svg||eA.metadata.mathml?sA|=ELEMENT_IS_NAMESPACED|ELEMENT_PRESERVE_ATTRIBUTE_CASE:is_custom_element_node(eA)&&(sA|=ELEMENT_PRESERVE_ATTRIBUTE_CASE);const oA=[object$2(AA.map(QA=>{if(QA.type==="Attribute"){const EA=get_attribute_name$1(eA,QA),rA=build_attribute_value$1(QA.value,iA,WHITESPACE_INSENSITIVE_ATTRIBUTES.includes(EA));return prop("init",key$2(EA),rA)}return spread(iA.visit(QA))})),IA,BA,sA?literal(sA):void 0];iA.state.template.push(call("$.spread_attributes",...oA))}function build_class_directives$1(eA,AA){const tA=eA.map(IA=>conditional(IA.expression,literal(IA.name),literal("")));AA===null&&(AA=create_attribute("class",-1,-1,[]));const gA=get_attribute_chunks(AA.value),iA=gA.at(-1);return(iA==null?void 0:iA.type)==="Text"?(iA.data+=" ",iA.raw+=" "):iA&&gA.push({type:"Text",start:-1,end:-1,parent:AA,data:" ",raw:" "}),gA.push({type:"ExpressionTag",start:-1,end:-1,parent:AA,expression:call(member(call(member(array(tA),"filter"),id$1("Boolean")),id$1("join")),literal(" ")),metadata:{expression:create_expression_metadata()}}),AA.value=gA,AA}function build_style_directives$1(eA,AA,tA){const gA=eA.map(IA=>{let BA=IA.value===!0?id$1(IA.name):build_attribute_value$1(IA.value,tA,!0);return IA.modifiers.includes("important")&&(BA=binary("+",BA,literal(" !important"))),init(IA.name,BA)}),iA=AA===null?object$2(gA):call("$.merge_styles",build_attribute_value$1(AA.value,tA,!0),object$2(gA));tA.state.template.push(call("$.add_styles",iA))}function RegularElement$1(eA,AA){const tA=determine_namespace_for_children(eA,AA.state.namespace),gA={...AA.state,namespace:tA,preserve_whitespace:AA.state.preserve_whitespace||eA.name==="pre"||eA.name==="textarea"};AA.state.template.push(literal(`<${eA.name}`));const iA=build_element_attributes(eA,{...AA,state:gA});if(AA.state.template.push(literal(">")),(eA.name==="script"||eA.name==="style")&&eA.fragment.nodes.length===1){AA.state.template.push(literal(eA.fragment.nodes[0].data),literal(`</${eA.name}>`));return}const{hoisted:IA,trimmed:BA}=clean_nodes(eA,eA.fragment.nodes,AA.path,tA,{...gA,scope:gA.scopes.get(eA.fragment)},gA.preserve_whitespace,gA.options.preserveComments);for(const sA of IA)AA.visit(sA,gA);if(dev){const sA=locator(eA.start);gA.template.push(stmt(call("$.push_element",id$1("$$payload"),literal(eA.name),literal(sA.line),literal(sA.column))))}if(iA===null)process_children$1(BA,{...AA,state:gA});else{let sA=iA;iA.type!=="Identifier"&&(sA=id$1(gA.scope.generate("$$body")),gA.template.push(const_builder(sA,iA)));const CA={...gA,template:[],init:[]};process_children$1(BA,{...AA,state:CA}),gA.template.push(if_builder(sA,block(build_template([sA])),block([...CA.init,...build_template(CA.template)])))}is_void(eA.name)||gA.template.push(literal(`</${eA.name}>`)),dev&&gA.template.push(stmt(call("$.pop_element")))}function RenderTag$1(eA,AA){const tA=unwrap_optional(eA.expression).callee,gA=unwrap_optional(eA.expression).arguments,iA=AA.visit(tA),IA=gA.map(BA=>AA.visit(BA));AA.state.template.push(stmt((eA.expression.type==="CallExpression"?call:maybe_call)(iA,id$1("$$payload"),...IA))),AA.state.skip_hydration_boundaries||AA.state.template.push(empty_comment)}function SlotElement$1(eA,AA){const tA=[],gA=[];let iA=literal("default");for(const CA of eA.attributes)if(CA.type==="SpreadAttribute")gA.push(AA.visit(CA));else if(CA.type==="Attribute"){const oA=build_attribute_value$1(CA.value,AA,!1,!0);CA.name==="name"?iA=oA:CA.name!=="slot"&&tA.push(init(CA.name,oA))}const IA=gA.length===0?object$2(tA):call("$.spread_props",array([object$2(tA),...gA])),BA=eA.fragment.nodes.length===0?literal(null):thunk(AA.visit(eA.fragment)),sA=call("$.slot",id$1("$$payload"),id$1("$$props"),iA,IA,BA);AA.state.template.push(empty_comment,stmt(sA),empty_comment)}function SnippetBlock$1(eA,AA){const tA=function_declaration(eA.expression,[id$1("$$payload"),...eA.parameters],AA.visit(eA.body));tA.___snippet=!0,AA.state.init.push(tA)}function SpreadAttribute$1(eA,AA){return AA.visit(eA.expression)}function SvelteComponent$1(eA,AA){build_inline_component(eA,AA.visit(eA.expression),AA)}function SvelteElement$1(eA,AA){let tA=AA.visit(eA.tag);if(tA.type!=="Identifier"){const BA=AA.state.scope.generate("$$tag");AA.state.init.push(const_builder(BA,tA)),tA=id$1(BA)}dev&&(eA.fragment.nodes.length>0&&AA.state.init.push(stmt(call("$.validate_void_dynamic_element",thunk(tA)))),AA.state.init.push(stmt(call("$.validate_dynamic_element_tag",thunk(tA)))));const gA={...AA.state,namespace:determine_namespace_for_children(eA,AA.state.namespace),template:[],init:[]};if(build_element_attributes(eA,{...AA,state:gA}),dev){const BA=locator(eA.start);AA.state.template.push(stmt(call("$.push_element",id$1("$$payload"),tA,literal(BA.line),literal(BA.column))))}const iA=block([...gA.init,...build_template(gA.template)]),IA=AA.visit(eA.fragment,gA);AA.state.template.push(stmt(call("$.element",id$1("$$payload"),tA,iA.body.length>0&&thunk(iA),IA.body.length>0&&thunk(IA)))),dev&&AA.state.template.push(stmt(call("$.pop_element")))}function SvelteFragment$1(eA,AA){AA.state.template.push(AA.visit(eA.fragment))}function SvelteHead$1(eA,AA){const tA=AA.visit(eA.fragment);AA.state.template.push(stmt(call("$.head",id$1("$$payload"),arrow([id$1("$$payload")],tA))))}function SvelteSelf$1(eA,AA){build_inline_component(eA,id$1(AA.state.analysis.name),AA)}function TitleElement$1(eA,AA){const tA=[literal("<title>")];process_children$1(eA.fragment.nodes,{...AA,state:{...AA.state,template:tA}}),tA.push(literal("</title>")),AA.state.init.push(...build_template(tA,id$1("$$payload.title"),"="))}function UpdateExpression$1(eA,AA){var gA;const tA=eA.argument;return tA.type==="Identifier"&&((gA=AA.state.scope.get(tA.name))==null?void 0:gA.kind)==="store_sub"?call(eA.prefix?"$.update_store_pre":"$.update_store",assignment("??=",id$1("$$store_subs"),object$2([])),literal(tA.name),id$1(tA.name.slice(1)),eA.operator==="--"&&literal(-1)):AA.next()}function VariableDeclaration$1(eA,AA){var gA;const tA=[];if(AA.state.analysis.runes)for(const iA of eA.declarations){const IA=iA.init,BA=get_rune(IA,AA.state.scope);if(!BA||BA==="$effect.tracking"||BA==="$inspect"||BA==="$effect.root"){tA.push(AA.visit(iA));continue}if(BA==="$props"){let oA=!1,QA=walk(iA.id,null,{RestElement(EA,rA){rA.path.at(-1)===iA.id&&(oA=!0)},AssignmentPattern(EA){if(EA.right.type==="CallExpression"&&get_rune(EA.right,AA.state.scope)==="$bindable"){const rA=EA.right.arguments.length?AA.visit(EA.right.arguments[0]):id$1("undefined");return assignment_pattern(EA.left,rA)}}});QA.type==="ObjectPattern"&&oA?QA.properties.splice(QA.properties.length-1,0,prop("init",id$1("$$slots"),id$1("$$slots")),prop("init",id$1("$$events"),id$1("$$events"))):QA.type==="Identifier"&&(QA=object_pattern([prop("init",id$1("$$slots"),id$1("$$slots")),prop("init",id$1("$$events"),id$1("$$events")),rest(id$1(QA.name))])),tA.push(declarator(AA.visit(QA),id$1("$$props")));continue}const sA=IA.arguments,CA=sA.length===0?id$1("undefined"):AA.visit(sA[0]);if(BA==="$derived.by"){tA.push(declarator(AA.visit(iA.id),call(CA)));continue}if(iA.id.type==="Identifier"){tA.push(declarator(iA.id,CA));continue}if(BA==="$derived"){tA.push(declarator(AA.visit(iA.id),CA));continue}tA.push(...create_state_declarators$1(iA,AA.state.scope,CA))}else for(const iA of eA.declarations){const IA=AA.state.scope.get_bindings(iA),BA=IA.some(CA=>CA.kind==="state"),sA=IA.some(CA=>CA.kind==="bindable_prop");if(!BA&&!sA){tA.push(AA.visit(iA));continue}if(sA){if(iA.id.type!=="Identifier"){const EA=AA.state.scope.generate("tmp"),rA=extract_paths(iA.id);tA.push(declarator(id$1(EA),AA.visit(iA.init)));for(const lA of rA){const uA=(gA=lA.expression)==null?void 0:gA.call(lA,id$1(EA)),cA=lA.node.name,hA=AA.state.scope.get(cA),dA=member(id$1("$$props"),literal(hA.prop_alias??cA),!0);tA.push(declarator(lA.node,build_fallback(dA,uA)))}continue}const CA=AA.state.scope.get(iA.id.name),oA=member(id$1("$$props"),literal(CA.prop_alias??iA.id.name),!0);let QA=oA;if(iA.init){const EA=AA.visit(iA.init);QA=build_fallback(oA,EA)}tA.push(declarator(iA.id,QA));continue}tA.push(...create_state_declarators$1(iA,AA.state.scope,iA.init&&AA.visit(iA.init)))}return{...eA,declarations:tA}}function create_state_declarators$1(eA,AA,tA){if(eA.id.type==="Identifier")return[declarator(eA.id,tA)];const gA=AA.generate("tmp"),iA=extract_paths(eA.id);return[declarator(id$1(gA),tA),...iA.map(IA=>{var sA;const BA=(sA=IA.expression)==null?void 0:sA.call(IA,id$1(gA));return declarator(IA.node,BA)})]}const global_visitors={_:set_scope,AssignmentExpression:AssignmentExpression$1,CallExpression:CallExpression$1,ClassBody:ClassBody$1,ExpressionStatement:ExpressionStatement$1,Identifier:Identifier$1,LabeledStatement:LabeledStatement$1,MemberExpression:MemberExpression$1,PropertyDefinition,UpdateExpression:UpdateExpression$1,VariableDeclaration:VariableDeclaration$1},template_visitors={AwaitBlock:AwaitBlock$1,Component:Component$1,ConstTag:ConstTag$1,DebugTag:DebugTag$1,EachBlock:EachBlock$1,Fragment:Fragment$1,HtmlTag:HtmlTag$1,IfBlock:IfBlock$1,KeyBlock:KeyBlock$1,RegularElement:RegularElement$1,RenderTag:RenderTag$1,SlotElement:SlotElement$1,SnippetBlock:SnippetBlock$1,SpreadAttribute:SpreadAttribute$1,SvelteComponent:SvelteComponent$1,SvelteElement:SvelteElement$1,SvelteFragment:SvelteFragment$1,SvelteHead:SvelteHead$1,SvelteSelf:SvelteSelf$1,TitleElement:TitleElement$1};function server_component(eA,AA){const tA={analysis:eA,options:AA,scope:eA.module.scope,scopes:eA.module.scopes,hoisted:[import_all("$","svelte/internal/server")],legacy_reactive_statements:new Map,init:null,template:null,namespace:AA.namespace,preserve_whitespace:AA.preserveWhitespace,private_derived:new Map,skip_hydration_boundaries:!1},gA=walk(eA.module.ast,tA,global_visitors),iA=walk(eA.instance.ast,{...tA,scopes:eA.instance.scopes},{...global_visitors,ImportDeclaration(lA){return tA.hoisted.push(lA),empty},ExportNamedDeclaration(lA,uA){return lA.declaration?uA.visit(lA.declaration):empty}}),IA=walk(eA.template.ast,{...tA,scopes:eA.template.scopes},{...global_visitors,...template_visitors}),BA=[];for(const[lA]of eA.reactive_statements){const uA=[...tA.legacy_reactive_statements].find(([cA])=>cA===lA);if(uA===void 0)throw new Error("Could not find reactive statement");if(lA.body.type==="ExpressionStatement"&&lA.body.expression.type==="AssignmentExpression")for(const cA of extract_identifiers(lA.body.expression.left)){const hA=eA.instance.scope.get(cA.name);(hA==null?void 0:hA.kind)==="legacy_reactive"&&BA.push(declarator(cA))}iA.body.push(uA[1])}if(BA.length>0&&iA.body.unshift({type:"VariableDeclaration",kind:"let",declarations:BA}),eA.uses_component_bindings){const lA=IA.body.filter(cA=>cA.type==="FunctionDeclaration"&&cA.___snippet),uA=IA.body.filter(cA=>cA.type!=="FunctionDeclaration"||!cA.___snippet);IA.body=[...lA,let_builder("$$settled",true_instance),let_builder("$$inner_payload"),stmt(function_builder(id$1("$$render_inner"),[id$1("$$payload")],block(uA))),do_while(unary("!",id$1("$$settled")),block([stmt(assignment("=",id$1("$$settled"),true_instance)),stmt(assignment("=",id$1("$$inner_payload"),call("$.copy_payload",id$1("$$payload")))),stmt(call("$$render_inner",id$1("$$inner_payload")))])),stmt(call("$.assign_payload",id$1("$$payload"),id$1("$$inner_payload")))]}[...eA.instance.scope.declarations.values()].some(lA=>lA.kind==="store_sub")&&(iA.body.unshift(var_builder("$$store_subs")),IA.body.push(if_builder(id$1("$$store_subs"),stmt(call("$.unsubscribe_stores",id$1("$$store_subs"))))));const sA=[];for(const[lA,uA]of eA.instance.scope.declarations)uA.kind==="bindable_prop"&&!lA.startsWith("$$")&&sA.push(init(uA.prop_alias??lA,id$1(lA)));for(const{name:lA,alias:uA}of eA.exports)sA.push(init(uA??lA,id$1(lA)));sA.length>0&&IA.body.push(stmt(call("$.bind_props",id$1("$$props"),object$2(sA))));const CA=block([...iA.body,...IA.body]);let oA=dev||eA.needs_context;if(oA&&(CA.body.unshift(stmt(call("$.push",dev&&id$1(eA.name)))),CA.body.push(stmt(call("$.pop")))),eA.uses_rest_props){const lA=eA.exports.map(({name:uA,alias:cA})=>cA??uA);for(const[uA,cA]of eA.instance.scope.declarations)cA.kind==="bindable_prop"&&lA.push(cA.prop_alias??uA);CA.body.unshift(const_builder("$$restProps",call("$.rest_props",id$1("$$sanitized_props"),array(lA.map(uA=>literal(uA))))))}(eA.uses_props||eA.uses_rest_props)&&CA.body.unshift(const_builder("$$sanitized_props",call("$.sanitize_props",id$1("$$props")))),eA.uses_slots&&CA.body.unshift(const_builder("$$slots",call("$.sanitize_slots",id$1("$$props"))));const QA=[...tA.hoisted,...gA.body];if(eA.css.ast!==null&&AA.css==="injected"&&!AA.customElement){const lA=literal(eA.css.hash),uA=literal(render_stylesheet(eA.source,eA,AA).code);QA.push(const_builder("$$css",object$2([init("hash",lA),init("code",uA)]))),CA.body.unshift(stmt(call("$$payload.css.add",id$1("$$css"))))}let EA=oA||sA.length>0||eA.needs_props||eA.uses_props||eA.uses_rest_props||eA.uses_slots||eA.slot_names.size>0;const rA=function_declaration(id$1(eA.name),EA?[id$1("$$payload"),id$1("$$props")]:[id$1("$$payload")],CA);return AA.compatibility.componentApi===4?(QA.unshift(imports([["render","$$_render"]],"svelte/server")),QA.push(rA,stmt(assignment("=",member_id(`${eA.name}.render`),function_builder(null,[id$1("$$props"),id$1("$$opts")],block([return_builder(call("$$_render",id$1(eA.name),object$2([init("props",id$1("$$props")),init("context",member(id$1("$$opts"),"context",!1,!0))])))])))),export_default(id$1(eA.name)))):dev?QA.push(rA,stmt(assignment("=",member_id(`${eA.name}.render`),function_builder(null,[],block([throw_error$1("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")])))),export_default(id$1(eA.name))):QA.push(export_default(rA)),dev&&QA.unshift(stmt(assignment("=",member(id$1(eA.name),"$.FILENAME",!0),literal(filename)))),{type:"Program",sourceType:"module",body:QA}}function server_module(eA,AA){const tA={analysis:eA,options:AA,scope:eA.module.scope,scopes:eA.module.scopes,legacy_reactive_statements:new Map,private_derived:new Map},gA=walk(eA.module.ast,tA,global_visitors);return{type:"Program",sourceType:"module",body:[import_all("$","svelte/internal/server"),...gA.body]}}function get_states_and_calls(eA){let AA=0,tA=0;for(let gA=0;gA<eA.length;gA++){const iA=eA[gA];iA.type==="ExpressionTag"&&(iA.metadata.expression.has_call&&tA++,iA.metadata.expression.has_state&&AA++)}return{states:AA,calls:tA}}function build_template_literal(eA,AA,tA){const gA=[];let iA=quasi("");const IA=[iA],{states:BA,calls:sA}=get_states_and_calls(eA);let CA=sA>0,oA=BA>0,QA=sA>1;for(let rA=0;rA<eA.length;rA++){const lA=eA[rA];if(lA.type==="Text")iA.value.cooked+=lA.data;else if(lA.type==="ExpressionTag"&&lA.expression.type==="Literal")lA.expression.value!=null&&(iA.value.cooked+=lA.expression.value+"");else{if(QA){const uA=id$1(tA.scope.generate("stringified_text"));tA.init.push(const_builder(uA,create_derived(tA,thunk(logical("??",AA(lA.expression,tA),literal("")))))),gA.push(call("$.get",uA))}else{if(eA.length===1)return{value:AA(lA.expression,tA),has_state:oA,has_call:CA};gA.push(logical("??",AA(lA.expression,tA),literal("")))}iA=quasi("",rA+1===eA.length),IA.push(iA)}}for(const rA of IA)rA.value.raw=sanitize_template_string(rA.value.cooked);return{value:template(IA,gA),has_state:oA,has_call:CA}}function build_update(eA){const AA=eA.type==="ExpressionStatement"?eA.expression:block([eA]);return stmt(call("$.template_effect",thunk(AA)))}function build_render_statement(eA){return eA.length===1?build_update(eA[0]):stmt(call("$.template_effect",thunk(block(eA))))}function parse_directive_name(eA){const AA=eA.split(".");let tA=AA.shift(),gA=id$1(tA);for(;tA=AA.shift();){const iA=!regex_is_valid_identifier.test(tA);gA=member(gA,iA?literal(tA):id$1(tA),iA)}return gA}function build_update_assignment(eA,AA,tA,gA,iA){eA.init.push(var_builder(AA,tA)),eA.update.push(if_builder(binary("!==",id$1(AA),assignment("=",id$1(AA),gA)),block([iA])))}function build_bind_this(eA,AA,{state:tA,visit:gA}){const iA=[],IA=[],BA=[],sA={...tA.transform};walk(eA,null,{Identifier(rA,{path:lA}){if(BA.includes(rA.name))return;BA.push(rA.name);const uA=lA.at(-1);if(!is_reference(rA,uA))return;const cA=tA.scope.get(rA.name);if(cA){for(const[hA,dA]of tA.scopes)if(hA.type==="EachBlock"&&dA===cA.scope){iA.push(rA),IA.push(gA(rA)),sA[rA.name]&&(sA[rA.name]={...sA[rA.name],read:pA=>pA});break}}}});const CA={...tA,transform:sA},oA=gA(eA,CA),QA=gA(assignment("=",eA,id$1("$$value")),CA);let EA=oA;for(;EA.type==="MemberExpression";)EA.optional=!0,EA=EA.object;return call("$.bind_this",AA,arrow([id$1("$$value"),...iA],QA),arrow([...iA],oA),IA.length>0&&thunk(array(IA)))}function validate_binding(eA,AA,tA){const gA=object$1(AA.expression),iA=gA&&eA.scope.get(gA.name);if((iA==null?void 0:iA.kind)==="store_sub")return;const IA=locator(AA.start);eA.init.push(stmt(call("$.validate_binding",literal(eA.analysis.source.slice(AA.start,AA.end)),thunk(tA.object),thunk(tA.computed?tA.property:literal(tA.property.name)),IA&&literal(IA.line),IA&&literal(IA.column))))}function AnimateDirective(eA,AA){const tA=eA.expression===null?literal(null):thunk(AA.visit(eA.expression));AA.state.after_update.push(stmt(call("$.animation",AA.state.node,thunk(AA.visit(parse_directive_name(eA.name))),tA)))}const visit_function=(eA,AA)=>{const tA=eA.metadata;let gA={...AA.state,in_constructor:!1};if(eA.type==="FunctionExpression"){const iA=AA.path.at(-1);gA.in_constructor=iA.type==="MethodDefinition"&&iA.kind==="constructor"}if((tA==null?void 0:tA.hoisted)===!0){const iA=build_hoisted_params(eA,AA);return{...eA,params:iA,body:AA.visit(eA.body,gA)}}AA.next(gA)};function ArrowFunctionExpression(eA,AA){return visit_function(eA,AA)}function AssignmentExpression(eA,AA){const tA=visit_assignment_expression(eA,AA,build_assignment)??AA.next();return is_ignored(eA,"ownership_invalid_mutation")?call("$.skip_ownership_validation",thunk(tA)):tA}function build_assignment(eA,AA,tA,gA){if(gA.state.analysis.runes&&AA.type==="MemberExpression"&&AA.object.type==="ThisExpression"&&AA.property.type==="PrivateIdentifier"){const sA=gA.state.private_state.get(AA.property.name);if(sA!==void 0){let CA=!1,oA=gA.visit(build_assignment_value(eA,AA,tA));if(should_proxy(oA,gA.state.scope)&&(CA=!0,oA=sA.kind==="raw_state"?oA:build_proxy_reassignment(oA,member(this_instance,sA.id))),gA.state.in_constructor){if(CA)return assignment(eA,gA.visit(AA),oA)}else return call("$.set",AA,oA)}}let iA=AA;for(;iA.type==="MemberExpression";)iA=iA.object;if(iA.type!=="Identifier")return null;const IA=gA.state.scope.get(iA.name);if(!IA)return null;const BA=Object.hasOwn(gA.state.transform,iA.name)?gA.state.transform[iA.name]:null;if(iA===AA&&(BA!=null&&BA.assign)){let sA=gA.visit(build_assignment_value(eA,AA,tA));const CA=gA.path.map(QA=>QA.type);return!(CA.at(-1)==="BindDirective"&&CA.at(-2)==="RegularElement")&&IA.kind!=="prop"&&IA.kind!=="bindable_prop"&&gA.state.analysis.runes&&should_proxy(sA,gA.state.scope)&&(sA=IA.kind==="raw_state"?sA:build_proxy_reassignment(sA,iA)),BA.assign(iA,sA)}return BA!=null&&BA.mutate?BA.mutate(iA,assignment(eA,gA.visit(AA),gA.visit(tA))):null}function visit_event_attribute(eA,AA){let tA=!1,gA=eA.name.slice(2);is_capture_event(gA)&&(gA=gA.slice(0,-7),tA=!0);const iA=Array.isArray(eA.value)?eA.value[0]:eA.value;let IA=build_event_handler(iA.expression,iA.metadata.expression,AA);if(eA.metadata.delegated){let BA;if(AA.state.events.has(gA)||AA.state.events.add(gA),eA.metadata.delegated.hoisted){if(eA.metadata.delegated.function===iA.expression){const oA=AA.state.scope.root.unique("on_"+gA);AA.state.hoisted.push(var_builder(oA,IA)),IA=oA}const sA=eA.metadata.delegated.function.metadata.hoisted_params,CA=[IA,...sA];BA=array(CA)}else BA=IA;AA.state.init.push(stmt(assignment("=",member(AA.state.node,"__"+gA),BA)))}else{const BA=stmt(build_event(gA,AA.state.node,IA,tA,is_passive_event(gA)?!0:void 0)),sA=AA.path.at(-1).type;sA==="SvelteDocument"||sA==="SvelteWindow"||sA==="SvelteBody"?AA.state.init.push(BA):AA.state.after_update.push(BA)}}function build_event(eA,AA,tA,gA,iA){return call("$.event",literal(eA),AA,tA,gA&&true_instance,iA===void 0?void 0:literal(iA))}function build_event_handler(eA,AA,tA){var IA;if(eA===null)return function_builder(null,[id$1("$$arg")],block([stmt(call("$.bubble_event.call",this_instance,id$1("$$props"),id$1("$$arg")))]));let gA=tA.visit(eA);if(gA.type==="ArrowFunctionExpression"||gA.type==="FunctionExpression"||gA.type==="Identifier"&&((IA=tA.state.scope.get(gA.name))==null?void 0:IA.declaration_kind)!=="import")return gA;if(AA.has_call){const BA=id$1(tA.state.scope.generate("event_handler"));tA.state.init.push(var_builder(BA,call("$.derived",thunk(gA)))),gA=call("$.get",BA)}let iA=call(member(gA,"apply",!1,!0),this_instance,id$1("$$args"));if(dev){const BA=locator(eA.start),sA=eA.type==="CallExpression"&&eA.arguments.length===0&&eA.callee.type==="Identifier";iA=call("$.apply",thunk(gA),this_instance,id$1("$$args"),id$1(tA.state.analysis.name),BA&&array([literal(BA.line),literal(BA.column)]),has_side_effects(eA)&&true_instance,sA&&true_instance)}return function_builder(null,[rest(id$1("$$args"))],block([stmt(iA)]))}function has_side_effects(eA){return eA.type==="CallExpression"||eA.type==="NewExpression"||eA.type==="AssignmentExpression"||eA.type==="UpdateExpression"?!0:eA.type==="SequenceExpression"?eA.expressions.some(has_side_effects):!1}function Attribute(eA,AA){is_event_attribute(eA)&&visit_event_attribute(eA,AA)}function AwaitBlock(eA,AA){AA.state.template.push("<!>");const tA=thunk(AA.visit(eA.expression));let gA,iA;if(eA.then){const IA={...AA,state:{...AA.state,transform:{...AA.state.transform}}},BA=eA.value&&create_derived_block_argument(eA.value,IA),sA=[id$1("$$anchor")];BA&&sA.push(BA.id);const CA=(BA==null?void 0:BA.declarations)??[],oA=IA.visit(eA.then,IA.state);gA=arrow(sA,block([...CA,...oA.body]))}if(eA.catch){const IA={...AA,state:{...AA.state}},BA=eA.error&&create_derived_block_argument(eA.error,IA),sA=[id$1("$$anchor")];BA&&sA.push(BA.id);const CA=(BA==null?void 0:BA.declarations)??[],oA=IA.visit(eA.catch,IA.state);iA=arrow(sA,block([...CA,...oA.body]))}AA.state.init.push(stmt(call("$.await",AA.state.node,tA,eA.pending?arrow([id$1("$$anchor")],AA.visit(eA.pending)):literal(null),gA,iA)))}function BinaryExpression(eA,AA){if(dev){const tA=eA.operator;if(tA==="==="||tA==="!==")return call("$.strict_equals",AA.visit(eA.left),AA.visit(eA.right),tA==="!=="&&literal(!1));if(tA==="=="||tA==="!=")return call("$.equals",AA.visit(eA.left),AA.visit(eA.right),tA==="!="&&literal(!1))}AA.next()}function build_set_attributes(eA,AA,tA,gA,iA,IA,BA,sA){let CA=!1;const oA=[];for(const EA of eA)if(EA.type==="Attribute"){const{value:rA}=build_attribute_value(EA.value,AA);if(is_event_attribute(EA)&&(rA.type==="ArrowFunctionExpression"||rA.type==="FunctionExpression")){const lA=AA.state.scope.generate("event_handler");AA.state.init.push(var_builder(lA,rA)),oA.push(init(EA.name,id$1(lA)))}else oA.push(init(EA.name,rA));CA||(CA=EA.metadata.expression.has_state)}else{CA=!0;let rA=AA.visit(EA);if(EA.metadata.expression.has_call){const lA=id$1(sA.scope.generate("spread_with_call"));sA.init.push(const_builder(lA,create_derived(sA,thunk(rA)))),rA=call("$.get",lA)}oA.push(spread(rA))}const QA=call("$.set_attributes",gA,CA?iA:literal(null),object$2(oA),AA.state.analysis.css.hash!==""&&literal(AA.state.analysis.css.hash),IA,BA,is_ignored(tA,"hydration_attribute_changed")&&true_instance);if(CA){AA.state.init.push(let_builder(iA));const EA=stmt(assignment("=",iA,QA));return AA.state.update.push(EA),!0}return AA.state.init.push(stmt(QA)),!1}function build_style_directives(eA,AA,tA,gA){const iA=tA.state;for(const IA of eA){const{has_state:BA,has_call:sA}=IA.metadata.expression;let CA=IA.value===!0?build_getter$1({name:IA.name,type:"Identifier"},tA.state):build_attribute_value(IA.value,tA).value;if(sA){const QA=id$1(iA.scope.generate("style_directive"));iA.init.push(const_builder(QA,create_derived(iA,thunk(CA)))),CA=call("$.get",QA)}const oA=stmt(call("$.set_style",AA,literal(IA.name),CA,IA.modifiers.includes("important")?true_instance:void 0));!gA&&sA?iA.init.push(build_update(oA)):gA||BA||sA?iA.update.push(oA):iA.init.push(oA)}}function build_class_directives(eA,AA,tA,gA){const iA=tA.state;for(const IA of eA){const{has_state:BA,has_call:sA}=IA.metadata.expression;let CA=tA.visit(IA.expression);if(sA){const QA=id$1(iA.scope.generate("class_directive"));iA.init.push(const_builder(QA,create_derived(iA,thunk(CA)))),CA=call("$.get",QA)}const oA=stmt(call("$.toggle_class",AA,literal(IA.name),CA));!gA&&sA?iA.init.push(build_update(oA)):gA||BA||sA?iA.update.push(oA):iA.init.push(oA)}}function build_attribute_value(eA,AA){if(eA===!0)return{has_state:!1,has_call:!1,value:literal(!0)};if(!Array.isArray(eA)||eA.length===1){const tA=Array.isArray(eA)?eA[0]:eA;return tA.type==="Text"?{has_state:!1,has_call:!1,value:literal(tA.data)}:{has_state:tA.metadata.expression.has_state,has_call:tA.metadata.expression.has_call,value:AA.visit(tA.expression)}}return build_template_literal(eA,AA.visit,AA.state)}function get_attribute_name(eA,AA){return!eA.metadata.svg&&!eA.metadata.mathml?normalize_attribute(AA.name):AA.name}function BindDirective(eA,AA){var CA;const tA=eA.expression,gA=binding_properties[eA.name],iA=AA.path.at(-1);dev&&AA.state.analysis.runes&&tA.type==="MemberExpression"&&(eA.name!=="this"||AA.path.some(({type:oA})=>oA==="IfBlock"||oA==="EachBlock"||oA==="AwaitBlock"||oA==="KeyBlock"))&&!is_ignored(eA,"binding_property_non_reactive")&&validate_binding(AA.state,eA,AA.visit(tA));const IA=thunk(AA.visit(tA));let BA=unthunk(arrow([id$1("$$value")],AA.visit(assignment("=",tA,id$1("$$value")))));IA===BA&&(BA=void 0);let sA;if(gA!=null&&gA.event)sA=call("$.bind_property",literal(eA.name),literal(gA.event),AA.state.node,BA??IA,gA.bidirectional&&IA);else switch(eA.name){case"online":sA=call("$.bind_online",BA??IA);break;case"scrollX":case"scrollY":sA=call("$.bind_window_scroll",literal(eA.name==="scrollX"?"x":"y"),IA,BA);break;case"innerWidth":case"innerHeight":case"outerWidth":case"outerHeight":sA=call("$.bind_window_size",literal(eA.name),BA??IA);break;case"activeElement":sA=call("$.bind_active_element",BA??IA);break;case"muted":sA=call("$.bind_muted",AA.state.node,IA,BA);break;case"paused":sA=call("$.bind_paused",AA.state.node,IA,BA);break;case"volume":sA=call("$.bind_volume",AA.state.node,IA,BA);break;case"playbackRate":sA=call("$.bind_playback_rate",AA.state.node,IA,BA);break;case"currentTime":sA=call("$.bind_current_time",AA.state.node,IA,BA);break;case"buffered":sA=call("$.bind_buffered",AA.state.node,BA??IA);break;case"played":sA=call("$.bind_played",AA.state.node,BA??IA);break;case"seekable":sA=call("$.bind_seekable",AA.state.node,BA??IA);break;case"seeking":sA=call("$.bind_seeking",AA.state.node,BA??IA);break;case"ended":sA=call("$.bind_ended",AA.state.node,BA??IA);break;case"readyState":sA=call("$.bind_ready_state",AA.state.node,BA??IA);break;case"contentRect":case"contentBoxSize":case"borderBoxSize":case"devicePixelContentBoxSize":sA=call("$.bind_resize_observer",AA.state.node,literal(eA.name),BA??IA);break;case"clientWidth":case"clientHeight":case"offsetWidth":case"offsetHeight":sA=call("$.bind_element_size",AA.state.node,literal(eA.name),BA??IA);break;case"value":{(iA==null?void 0:iA.type)==="RegularElement"&&iA.name==="select"?sA=call("$.bind_select_value",AA.state.node,IA,BA):sA=call("$.bind_value",AA.state.node,IA,BA);break}case"files":sA=call("$.bind_files",AA.state.node,IA,BA);break;case"this":sA=build_bind_this(tA,AA.state.node,AA);break;case"textContent":case"innerHTML":case"innerText":sA=call("$.bind_content_editable",literal(eA.name),AA.state.node,IA,BA);break;case"checked":sA=call("$.bind_checked",AA.state.node,IA,BA);break;case"focused":sA=call("$.bind_focused",AA.state.node,BA??IA);break;case"group":{const oA=eA.metadata.parent_each_blocks.map(EA=>EA.metadata.keyed&&EA.index?call("$.get",EA.metadata.index):EA.metadata.index);let QA=IA;if((iA==null?void 0:iA.type)==="RegularElement"){const EA=(CA=iA.attributes.find(rA=>rA.type==="Attribute"&&rA.name==="value"&&!is_text_attribute(rA)&&rA.value!==!0))==null?void 0:CA.value;EA!==void 0&&(QA=thunk(block([stmt(build_attribute_value(EA,AA).value),return_builder(AA.visit(tA))])))}sA=call("$.bind_group",eA.metadata.binding_group_name,array(oA),AA.state.node,QA,BA??IA);break}default:throw new Error("unknown binding "+eA.name)}eA.name==="this"?AA.state.init.push(stmt(sA)):iA.type==="RegularElement"&&iA.attributes.find(QA=>QA.type==="UseDirective")?AA.state.init.push(stmt(call("$.effect",thunk(sA)))):AA.state.after_update.push(stmt(sA))}function BlockStatement(eA,AA){add_state_transformers(AA),AA.next()}function BreakStatement(eA,AA){if(AA.state.analysis.runes||!eA.label||eA.label.name!=="$")return;if(AA.path[1].type==="LabeledStatement"&&AA.path[1].label.name==="$")return return_builder()}function CallExpression(eA,AA){switch(get_rune(eA,AA.state.scope)){case"$host":return id$1("$$props.$$host");case"$effect.tracking":return call("$.effect_tracking");case"$state.snapshot":return call("$.snapshot",AA.visit(eA.arguments[0]),is_ignored(eA,"state_snapshot_uncloneable")&&true_instance);case"$effect.root":return call("$.effect_root",...eA.arguments.map(tA=>AA.visit(tA)));case"$inspect":case"$inspect().with":return transform_inspect_rune(eA,AA)}if(dev&&eA.callee.type==="MemberExpression"&&eA.callee.object.type==="Identifier"&&eA.callee.object.name==="console"&&AA.state.scope.get("console")===null&&eA.callee.property.type==="Identifier"&&["debug","dir","error","group","groupCollapsed","info","log","trace","warn"].includes(eA.callee.property.name))return call(eA.callee,spread(call("$.log_if_contains_state",literal(eA.callee.property.name),...eA.arguments.map(tA=>AA.visit(tA)))));AA.next()}function ClassBody(eA,AA){var sA,CA;if(!AA.state.analysis.runes){AA.next();return}const tA=new Map,gA=new Map,iA=[];for(const oA of eA.body)if(oA.type==="PropertyDefinition"&&(oA.key.type==="Identifier"||oA.key.type==="PrivateIdentifier"||oA.key.type==="Literal")){const QA=oA.key.type,EA=get_name(oA.key);if(!EA)continue;const rA=QA==="PrivateIdentifier";if(rA&&iA.push(EA),((sA=oA.value)==null?void 0:sA.type)==="CallExpression"){const lA=get_rune(oA.value,AA.state.scope);if(lA==="$state"||lA==="$state.raw"||lA==="$derived"||lA==="$derived.by"){const uA={kind:lA==="$state"?"state":lA==="$state.raw"?"raw_state":lA==="$derived.by"?"derived_by":"derived",id:rA?oA.key:null};rA?gA.set(EA,uA):tA.set(EA,uA)}}}for(const[oA,QA]of tA){let EA=oA;for(;iA.includes(EA);)EA="_"+EA;iA.push(EA),QA.id=private_id(EA)}const IA=[],BA={...AA.state,public_state:tA,private_state:gA};for(const oA of eA.body){if(oA.type==="PropertyDefinition"&&(oA.key.type==="Identifier"||oA.key.type==="PrivateIdentifier"||oA.key.type==="Literal")){const QA=get_name(oA.key);if(!QA)continue;const EA=oA.key.type==="PrivateIdentifier",rA=(EA?gA:tA).get(QA);if(((CA=oA.value)==null?void 0:CA.type)==="CallExpression"&&rA!==void 0){let lA=null;if(oA.value.arguments.length>0){const uA=AA.visit(oA.value.arguments[0],BA);lA=rA.kind==="state"?call("$.state",should_proxy(uA,AA.state.scope)?call("$.proxy",uA):uA):rA.kind==="raw_state"?call("$.state",uA):rA.kind==="derived_by"?call("$.derived",uA):call("$.derived",thunk(uA))}else lA=call("$.state");if(EA)IA.push(prop_def(rA.id,lA));else{const uA=member(this_instance,rA.id);if(IA.push(prop_def(rA.id,lA)),IA.push(method("get",oA.key,[],[return_builder(call("$.get",uA))])),rA.kind==="state"){const cA=id$1("value"),hA=member(this_instance,rA.id);IA.push(method("set",oA.key,[cA],[stmt(call("$.set",uA,build_proxy_reassignment(cA,hA)))]))}if(rA.kind==="raw_state"){const cA=id$1("value");IA.push(method("set",oA.key,[cA],[stmt(call("$.set",uA,cA))]))}dev&&(rA.kind==="derived"||rA.kind==="derived_by")&&IA.push(method("set",oA.key,[id$1("_")],[throw_error$1(`Cannot update a derived property ('${QA}')`)]))}continue}}IA.push(AA.visit(oA,BA))}return dev&&tA.size>0&&IA.push(method("method",id$1("$.ADD_OWNER"),[id$1("owner")],Array.from(tA.keys()).map(oA=>stmt(call("$.add_owner",call("$.get",member(this_instance,private_id(oA))),id$1("owner"),literal(!1),is_ignored(eA,"ownership_invalid_binding")&&true_instance))),!0)),{...eA,body:IA}}function get_name(eA){var AA;return eA.type==="Literal"?(AA=eA.value)==null?void 0:AA.toString().replace(regex_invalid_identifier_chars,"_"):eA.name}function Comment(eA,AA){AA.state.template.push(`<!--${eA.data}-->`)}function build_component(eA,AA,tA,gA=tA.state.node){var mA,MA;const iA=[],IA=[],BA={default:{...tA.state,scope:eA.metadata.scopes.default,transform:{...tA.state.transform}}},sA={},CA={},oA=[];let QA=null;const EA=[];let rA=!!determine_slot(eA),lA=!1;function uA(fA){const LA=iA.at(-1),_A=Array.isArray(LA),bA=_A?LA:[];bA.push(fA),_A||iA.push(bA)}if(rA)for(const fA of eA.attributes)fA.type==="LetDirective"&&IA.push(tA.visit(fA));for(const fA of eA.attributes)if(fA.type==="LetDirective")rA||IA.push(tA.visit(fA,BA.default));else if(fA.type==="OnDirective"){fA.expression||(tA.state.analysis.needs_props=!0);let LA=build_event_handler(fA.expression,fA.metadata.expression,tA);fA.modifiers.includes("once")&&(LA=call("$.once",LA)),(CA[mA=fA.name]||(CA[mA]=[])).push(LA)}else if(fA.type==="SpreadAttribute"){const LA=tA.visit(fA);if(fA.metadata.expression.has_state){let _A=LA;if(fA.metadata.expression.has_call){const bA=id$1(tA.state.scope.generate("spread_element"));tA.state.init.push(var_builder(bA,call("$.derived",thunk(_A)))),_A=call("$.get",bA)}iA.push(thunk(_A))}else iA.push(LA)}else if(fA.type==="Attribute"){if(fA.name.startsWith("--")){oA.push(init(fA.name,build_attribute_value(fA.value,tA).value));continue}fA.name==="slot"&&(rA=!0),fA.name==="children"&&(lA=!0);const{value:LA}=build_attribute_value(fA.value,tA);if(fA.metadata.expression.has_state){let _A=LA;if(get_attribute_chunks(fA.value).some(JA=>JA.type==="ExpressionTag"&&JA.expression.type!=="Identifier"&&JA.expression.type!=="MemberExpression")){const JA=id$1(tA.state.scope.generate(fA.name));tA.state.init.push(var_builder(JA,create_derived(tA.state,thunk(LA)))),_A=call("$.get",JA)}uA(get(fA.name,[return_builder(_A)]))}else uA(init(fA.name,LA))}else if(fA.type==="BindDirective"){const LA=tA.visit(fA.expression);if(dev&&LA.type==="MemberExpression"&&tA.state.analysis.runes&&!is_ignored(eA,"binding_property_non_reactive")&&validate_binding(tA.state,fA,LA),fA.name==="this")QA=fA.expression;else{dev&&EA.push(stmt(call(id$1("$.add_owner_effect"),thunk(LA),id$1(AA),is_ignored(eA,"ownership_invalid_binding")&&true_instance)));const _A=fA.expression.type==="Identifier"&&((MA=tA.state.scope.get(fA.expression.name))==null?void 0:MA.kind)==="store_sub";uA(_A?get(fA.name,[stmt(call("$.mark_store_binding")),return_builder(LA)]):get(fA.name,[return_builder(LA)]));const bA=assignment("=",fA.expression,id$1("$$value"));uA(set(fA.name,[stmt(tA.visit(bA))]))}}if(rA&&tA.state.init.push(...IA),Object.keys(CA).length>0){const fA=object$2(Object.keys(CA).map(LA=>init(LA,CA[LA].length>1?array(CA[LA]):CA[LA][0])));uA(init("$$events",fA))}const cA=[],hA=[];for(const fA of eA.fragment.nodes){if(fA.type==="SnippetBlock"){tA.visit(fA,{...tA.state,init:cA}),uA(prop("init",fA.expression,fA.expression)),hA.push(init(fA.expression.name==="children"?"default":fA.expression.name,true_instance));continue}let LA=determine_slot(fA)??"default";(sA[LA]||(sA[LA]=[])).push(fA)}for(const fA of Object.keys(sA)){const LA=tA.visit({...eA.fragment,nodes:sA[fA]},fA==="default"?rA?tA.state:BA.default:{...tA.state,scope:eA.metadata.scopes[fA],transform:{...tA.state.transform}});if(LA.body.length===0)continue;const _A=arrow([id$1("$$anchor"),id$1("$$slotProps")],block([...fA==="default"&&!rA?IA:[],...LA.body]));fA==="default"&&!lA?IA.length===0&&sA.default.every(bA=>bA.type!=="SvelteFragment"||!bA.attributes.some(JA=>JA.type==="LetDirective"))?(uA(init("children",dev?call("$.wrap_snippet",id$1(tA.state.analysis.name),_A):_A)),hA.push(init(fA,true_instance))):(hA.push(init(fA,_A)),uA(init("children",id$1("$.invalid_default_snippet")))):hA.push(init(fA,_A))}hA.length>0&&uA(init("$$slots",object$2(hA))),!tA.state.analysis.runes&&eA.attributes.some(fA=>fA.type==="BindDirective")&&uA(init("$$legacy",true_instance));const dA=iA.length===0||iA.length===1&&Array.isArray(iA[0])?object$2(iA[0]||[]):call("$.spread_props",...iA.map(fA=>Array.isArray(fA)?object$2(fA):fA));let pA=fA=>call(eA.type==="SvelteComponent"?AA:tA.visit(member_id(AA)),fA,dA);if(QA!==null){const fA=pA;pA=LA=>build_bind_this(QA,fA(LA),tA)}const wA=[...cA];if(eA.type==="SvelteComponent"){const fA=pA;pA=LA=>call("$.component",LA,thunk(tA.visit(eA.expression)),arrow([id$1("$$anchor"),id$1(AA)],block([...EA,stmt(fA(id$1("$$anchor")))])))}else wA.push(...EA);return Object.keys(oA).length>0?(tA.state.template.push(tA.state.metadata.namespace==="svg"?"<g><!></g>":'<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>'),wA.push(stmt(call("$.css_props",gA,thunk(object$2(oA)))),stmt(pA(member(gA,"lastChild"))),stmt(call("$.reset",gA)))):(tA.state.template.push("<!>"),wA.push(stmt(pA(gA)))),wA.length>1?block(wA):wA[0]}function Component(eA,AA){if(eA.metadata.dynamic){const gA=build_component(eA,"$$component",AA,id$1("$$anchor"));AA.state.init.push(stmt(call("$.component",AA.state.node,thunk(AA.visit(member_id(eA.name))),arrow([id$1("$$anchor"),id$1("$$component")],block([gA])))));return}const tA=build_component(eA,eA.name,AA);AA.state.init.push(tA)}function ConstTag(eA,AA){const tA=eA.declaration.declarations[0];if(tA.id.type==="Identifier")AA.state.init.push(const_builder(tA.id,create_derived(AA.state,thunk(AA.visit(tA.init))))),AA.state.transform[tA.id.name]={read:get_value},dev&&AA.state.init.push(stmt(call("$.get",tA.id)));else{const gA=extract_identifiers(tA.id),iA=id$1(AA.state.scope.generate("computed_const")),IA={...AA.state.transform};for(const CA of gA)delete IA[CA.name];const BA={...AA.state,transform:IA},sA=arrow([],block([const_builder(AA.visit(tA.id,BA),AA.visit(tA.init,BA)),return_builder(object$2(gA.map(CA=>prop("init",CA,CA))))]));AA.state.init.push(const_builder(iA,create_derived(AA.state,sA))),dev&&AA.state.init.push(stmt(call("$.get",iA)));for(const CA of gA)AA.state.transform[CA.name]={read:oA=>member(call("$.get",iA),oA)}}}function DebugTag(eA,AA){const tA=object$2(eA.identifiers.map(iA=>{const IA=call("$.snapshot",AA.visit(iA));return prop("init",iA,AA.state.analysis.runes?IA:call("$.untrack",thunk(IA)))})),gA=call("console.log",tA);AA.state.init.push(stmt(call("$.template_effect",thunk(block([stmt(gA),debugger_builder])))))}function EachBlock(eA,AA){var fA,LA;const tA=eA.metadata,gA=AA.visit(eA.expression,{...AA.state,scope:AA.state.scope.parent});tA.is_controlled||AA.state.template.push("<!>"),tA.array_name!==null&&AA.state.init.push(const_builder(tA.array_name,thunk(gA)));let iA=0;eA.metadata.keyed&&eA.index&&(iA|=EACH_INDEX_REACTIVE);const IA=((fA=eA.key)==null?void 0:fA.type)==="Identifier"&&eA.context.type==="Identifier"&&eA.context.name===eA.key.name;let BA;for(const _A of eA.metadata.expression.dependencies)if(_A.kind==="store_sub"){BA=!0;break}for(const _A of eA.metadata.expression.dependencies)if(!(_A.scope.function_depth>=AA.state.scope.function_depth)&&(!AA.state.analysis.runes||!IA||BA)){iA|=EACH_ITEM_REACTIVE;break}AA.state.analysis.runes&&!BA&&(iA|=EACH_ITEM_IMMUTABLE),eA.key&&eA.body.nodes.some(_A=>_A.type!=="RegularElement"&&_A.type!=="SvelteElement"?!1:_A.attributes.some(bA=>bA.type==="AnimateDirective"))&&(iA|=EACH_IS_ANIMATED),tA.is_controlled&&(iA|=EACH_IS_CONTROLLED);let sA="";if(eA.expression.type==="Identifier"||eA.expression.type==="MemberExpression"){const _A=object$1(eA.expression);if(_A){const bA=AA.state.scope.get(_A.name);(bA==null?void 0:bA.kind)==="store_sub"&&(sA=_A.name)}}const CA=collect_parent_each_blocks(AA).flatMap(_A=>{const bA=AA.visit(_A.expression),JA=build_transitive_dependencies(_A.metadata.expression.dependencies,AA);return[bA,...JA]});if(tA.array_name)CA.push(call(tA.array_name));else{CA.push(gA);const _A=build_transitive_dependencies(tA.expression.dependencies,AA);CA.push(..._A)}const oA={...AA.state,transform:{...AA.state.transform}},QA={...AA.state,transform:{...AA.state.transform}},EA=tA.contains_group_binding||!eA.index?tA.index:id$1(eA.index),rA=eA.context.type==="Identifier"?eA.context:id$1("$$item");let lA=tA.contains_group_binding,uA=!1;eA.index&&(oA.transform[eA.index]={read:_A=>(lA=!0,iA&EACH_INDEX_REACTIVE?get_value(_A):_A)},QA.transform[eA.index]={read:_A=>(uA=!0,_A)});const cA=[],hA=call("$.invalidate_inner_signals",thunk(sequence$1(CA))),dA=sA?call("$.invalidate_store",id$1("$$stores"),literal(sA)):void 0,pA=[];if(AA.state.analysis.runes||pA.push(hA),dA&&pA.push(dA),eA.context.type==="Identifier"){const _A=AA.state.scope.get(eA.context.name);oA.transform[eA.context.name]={read:bA=>_A.reassigned?member(tA.array_name?call(tA.array_name):gA,iA&EACH_INDEX_REACTIVE?get_value(EA):EA,!0):iA&EACH_ITEM_REACTIVE?get_value(bA):bA,assign:(bA,JA)=>{lA=!0;const RA=member(tA.array_name?call(tA.array_name):gA,iA&EACH_INDEX_REACTIVE?get_value(EA):EA,!0);return sequence$1([assignment("=",RA,JA),...pA])},mutate:(bA,JA)=>sequence$1([JA,...pA])},delete QA.transform[eA.context.name]}else{const _A=iA&EACH_ITEM_REACTIVE?call("$.get",rA):rA;for(const bA of extract_paths(eA.context)){const JA=bA.node.name,RA=bA.has_default_value,NA=thunk(AA.visit((LA=bA.expression)==null?void 0:LA.call(bA,_A),oA));cA.push(let_builder(bA.node,RA?call("$.derived_safe_equal",NA):NA));const FA=RA?get_value:call;oA.transform[JA]={read:FA,assign:(vA,xA)=>{const kA=bA.update_expression(_A);return sequence$1([assignment("=",kA,xA),...pA])},mutate:(vA,xA)=>sequence$1([xA,...pA])},dev&&cA.push(stmt(FA(id$1(JA)))),delete QA.transform[JA]}}const wA=AA.visit(eA.body,oA);let mA=id$1("$.index");if(eA.metadata.keyed){const _A=AA.visit(eA.key,QA);mA=arrow(uA?[eA.context,EA]:[eA.context],_A)}eA.index&&tA.contains_group_binding&&cA.push(let_builder(eA.index,EA)),dev&&eA.metadata.keyed&&AA.state.init.push(stmt(call("$.validate_each_keys",thunk(gA),mA)));const MA=[AA.state.node,literal(iA),tA.array_name?tA.array_name:thunk(gA),mA,arrow(lA?[id$1("$$anchor"),rA,EA]:[id$1("$$anchor"),rA],block(cA.concat(wA.body)))];eA.fallback&&MA.push(arrow([id$1("$$anchor")],AA.visit(eA.fallback))),AA.state.init.push(stmt(call("$.each",...MA)))}function collect_parent_each_blocks(eA){return eA.path.filter(AA=>AA.type==="EachBlock")}function build_transitive_dependencies(eA,AA){const tA=new Set;for(const gA of eA){const iA=collect_transitive_dependencies(gA);for(const IA of iA)tA.add(IA)}return[...tA].map(gA=>build_getter$1({...gA.node},AA.state))}function collect_transitive_dependencies(eA,AA=new Set){if(eA.kind!=="legacy_reactive")return[];for(const tA of eA.legacy_dependencies)if(!AA.has(tA)){AA.add(tA);for(const gA of collect_transitive_dependencies(tA,AA))AA.add(gA)}return[...AA]}function ExportNamedDeclaration(eA,AA){return AA.state.is_instance?eA.declaration?AA.visit(eA.declaration):empty:AA.next()}function ExpressionStatement(eA,AA){if(eA.expression.type==="CallExpression"){const tA=get_rune(eA.expression,AA.state.scope);if(tA==="$effect"||tA==="$effect.pre"){const gA=tA==="$effect"?"$.user_effect":"$.user_pre_effect",iA=AA.visit(eA.expression.arguments[0]),IA=call(gA,iA);return IA.callee.loc=eA.expression.callee.loc,stmt(IA)}}AA.next()}function process_children(eA,AA,tA,{visit:gA,state:iA}){const IA=iA.metadata.bound_contenteditable;let BA=AA,sA=0,CA=[];function oA(rA){return sA===0?BA(rA):call("$.sibling",BA(!1),(rA||sA!==1)&&literal(sA),rA&&true_instance)}function QA(rA,lA){const uA=oA(rA);let cA=uA;return cA.type!=="Identifier"&&(cA=id$1(iA.scope.generate(lA)),iA.init.push(var_builder(cA,uA))),BA=()=>cA,sA=1,cA}function EA(rA){if(rA.every(wA=>wA.type==="Text")){sA+=1,iA.template.push(rA.map(wA=>wA.raw).join(""));return}iA.template.push(" ");const{has_state:lA,has_call:uA,value:cA}=build_template_literal(rA,gA,iA),hA=rA.length===1,dA=QA(hA,"text"),pA=stmt(call("$.set_text",dA,cA));uA&&!IA?iA.init.push(build_update(pA)):lA&&!IA?iA.update.push(pA):iA.init.push(stmt(assignment("=",member(dA,"nodeValue"),cA)))}for(const rA of eA)if(rA.type==="Text"||rA.type==="ExpressionTag")CA.push(rA);else{CA.length>0&&(EA(CA),CA=[]);let lA=iA;if(is_static_element(rA))sA+=1;else if(rA.type==="EachBlock"&&eA.length===1&&tA)rA.metadata.is_controlled=!0;else{const uA=QA(!1,rA.type==="RegularElement"?rA.name:"node");lA={...iA,node:uA}}gA(rA,lA)}CA.length>0&&EA(CA),sA>1&&(sA-=1,iA.init.push(stmt(call("$.next",sA!==1&&literal(sA)))))}function is_static_element(eA){if(eA.type!=="RegularElement"||eA.fragment.metadata.dynamic)return!1;for(const AA of eA.attributes)if(AA.type!=="Attribute"||is_event_attribute(AA)||AA.value!==!0&&!is_text_attribute(AA)||AA.name==="autofocus"||AA.name==="muted"||eA.name==="option"&&AA.name==="value"||eA.name.includes("-"))return!1;return!0}function Fragment(eA,AA){const tA=AA.path.at(-1)??eA,gA=infer_namespace(AA.state.metadata.namespace,tA,eA.nodes),{hoisted:iA,trimmed:IA,is_standalone:BA,is_text_first:sA}=clean_nodes(tA,eA.nodes,AA.path,gA,AA.state,AA.state.preserve_whitespace,AA.state.options.preserveComments);if(iA.length===0&&IA.length===0)return block([]);const CA=IA.length===1&&IA[0].type==="RegularElement",oA=IA.length===1&&(IA[0].type==="SvelteFragment"||IA[0].type==="TitleElement"),QA=AA.state.scope.root.unique("root"),EA=[];let rA;const lA={...AA.state,before_init:[],init:[],update:[],after_update:[],template:[],locations:[],transform:{...AA.state.transform},metadata:{context:{template_needs_import_node:!1,template_contains_script_tag:!1},namespace:gA,bound_contenteditable:AA.state.metadata.bound_contenteditable}};for(const cA of iA)AA.visit(cA,lA);sA&&EA.push(stmt(call("$.next")));const uA=(cA,hA)=>{let dA=call(get_template_function(gA,lA),...hA);dev&&(dA=call("$.add_locations",dA,member(id$1(AA.state.analysis.name),"$.FILENAME",!0),build_locations(lA.locations))),AA.state.hoisted.push(var_builder(cA,dA))};if(CA){const cA=IA[0],hA=id$1(AA.state.scope.generate(cA.name));AA.visit(cA,{...lA,node:hA});const dA=[join_template(lA.template)];lA.metadata.context.template_needs_import_node&&dA.push(literal(TEMPLATE_USE_IMPORT_NODE)),uA(QA,dA),EA.push(var_builder(hA,call(QA)),...lA.before_init,...lA.init),rA=stmt(call("$.append",id$1("$$anchor"),hA))}else if(oA)AA.visit(IA[0],lA),EA.push(...lA.before_init,...lA.init);else if(IA.length===1&&IA[0].type==="Text"){const cA=id$1(AA.state.scope.generate("text"));EA.push(var_builder(cA,call("$.text",literal(IA[0].data))),...lA.before_init,...lA.init),rA=stmt(call("$.append",id$1("$$anchor"),cA))}else if(IA.length>0){const cA=id$1(AA.state.scope.generate("fragment"));if(IA.some(dA=>dA.type==="ExpressionTag")&&IA.every(dA=>dA.type==="Text"||dA.type==="ExpressionTag")){const dA=id$1(AA.state.scope.generate("text"));process_children(IA,()=>dA,!1,{...AA,state:lA}),EA.push(var_builder(dA,call("$.text")),...lA.before_init,...lA.init),rA=stmt(call("$.append",id$1("$$anchor"),dA))}else{if(BA)process_children(IA,()=>id$1("$$anchor"),!1,{...AA,state:lA});else{process_children(IA,wA=>call("$.first_child",cA,wA&&true_instance),!1,{...AA,state:lA});let pA=TEMPLATE_FRAGMENT;lA.metadata.context.template_needs_import_node&&(pA|=TEMPLATE_USE_IMPORT_NODE),lA.template.length===1&&lA.template[0]==="<!>"?EA.push(var_builder(cA,call("$.comment"))):(uA(QA,[join_template(lA.template),literal(pA)]),EA.push(var_builder(cA,call(QA)))),rA=stmt(call("$.append",id$1("$$anchor"),cA))}EA.push(...lA.before_init,...lA.init)}}else EA.push(...lA.before_init,...lA.init);return lA.update.length>0&&EA.push(build_render_statement(lA.update)),EA.push(...lA.after_update),rA!==void 0&&EA.push(rA),block(EA)}function join_template(eA){let AA=quasi("");const tA=template([AA],[]);for(const gA of eA)typeof gA=="string"?AA.value.cooked+=gA:(tA.expressions.push(gA),tA.quasis.push(AA=quasi("")));for(const gA of tA.quasis)gA.value.raw=sanitize_template_string(gA.value.cooked);return AA.tail=!0,tA}function get_template_function(eA,AA){const tA=AA.metadata.context.template_contains_script_tag;return eA==="svg"?tA?"$.svg_template_with_script":"$.ns_template":eA==="mathml"?"$.mathml_template":tA?"$.template_with_script":"$.template"}function build_locations(eA){return array(eA.map(AA=>{const tA=array([literal(AA[0]),literal(AA[1])]);return AA.length===3&&tA.elements.push(build_locations(AA[2])),tA}))}function FunctionDeclaration(eA,AA){var gA;const tA={...AA.state,in_constructor:!1};if(((gA=eA.metadata)==null?void 0:gA.hoisted)===!0){const iA=build_hoisted_params(eA,AA),IA=AA.visit(eA.body,tA);return AA.state.hoisted.push({...eA,params:iA,body:IA}),empty}AA.next(tA)}function FunctionExpression(eA,AA){return visit_function(eA,AA)}function HtmlTag(eA,AA){AA.state.template.push("<!>"),AA.state.init.push(stmt(call("$.html",AA.state.node,thunk(AA.visit(eA.expression)),literal(AA.state.metadata.namespace==="svg"),literal(AA.state.metadata.namespace==="mathml"),is_ignored(eA,"hydration_html_changed")&&true_instance)))}function Identifier(eA,AA){const tA=AA.path.at(-1);if(is_reference(eA,tA)){if(eA.name==="$$props")return id$1("$$sanitized_props");const gA=AA.state.scope.get(eA.name);if(AA.state.analysis.runes&&gA!==null&&eA!==gA.node&&gA.kind==="rest_prop"){const iA=AA.path.at(-2);if((tA==null?void 0:tA.type)==="MemberExpression"&&!tA.computed&&(iA==null?void 0:iA.type)!=="AssignmentExpression"&&(iA==null?void 0:iA.type)!=="UpdateExpression")return id$1("$$props")}return build_getter$1(eA,AA.state)}}function IfBlock(eA,AA){AA.state.template.push("<!>");const tA=AA.visit(eA.consequent),gA=[AA.state.node,thunk(AA.visit(eA.test)),arrow([id$1("$$anchor")],tA)];(eA.alternate||eA.elseif)&&gA.push(eA.alternate?arrow([id$1("$$anchor")],AA.visit(eA.alternate)):literal(null)),eA.elseif&&gA.push(literal(!0)),AA.state.init.push(stmt(call("$.if",...gA)))}function ImportDeclaration(eA,AA){if("hoisted"in AA.state)return AA.state.hoisted.push(eA),empty;AA.next()}function KeyBlock(eA,AA){AA.state.template.push("<!>");const tA=AA.visit(eA.expression),gA=AA.visit(eA.fragment);AA.state.init.push(stmt(call("$.key",AA.state.node,thunk(tA),arrow([id$1("$$anchor")],gA))))}function LabeledStatement(eA,AA){if(AA.state.analysis.runes||AA.path.length>1||eA.label.name!=="$"){AA.next();return}const tA=AA.state.analysis.reactive_statements.get(eA);if(!tA)return;let gA=AA.visit(eA.body);gA.type!=="BlockStatement"&&(gA=block([gA]));const iA=gA.body,IA=[];for(const BA of tA.dependencies){if(BA.kind==="normal"&&BA.declaration_kind!=="import")continue;const sA=BA.node.name;let CA=build_getter$1(id$1(sA),AA.state);(sA==="$$props"||sA==="$$restProps"||BA.kind==="bindable_prop")&&(CA=call("$.deep_read_state",CA)),IA.push(CA)}return AA.state.legacy_reactive_statements.set(eA,stmt(call("$.legacy_pre_effect",IA.length>0?thunk(sequence$1(IA)):thunk(block([])),thunk(block(iA))))),empty}function LetDirective(eA,AA){if(eA.expression&&eA.expression.type!=="Identifier"){const tA=AA.state.scope.generate(eA.name),gA=AA.state.scope.get_bindings(eA);for(const iA of gA)AA.state.transform[iA.node.name]={read:IA=>member(call("$.get",id$1(tA)),IA)};return const_builder(tA,call("$.derived",thunk(block([let_builder(eA.expression.type==="ObjectExpression"?object_pattern(eA.expression.properties):array_pattern(eA.expression.elements),member(id$1("$$slotProps"),eA.name)),return_builder(object$2(gA.map(iA=>init(iA.node.name,iA.node))))]))))}else{const tA=eA.expression===null?eA.name:eA.expression.name;return AA.state.transform[tA]={read:gA=>call("$.get",gA)},const_builder(tA,create_derived(AA.state,thunk(member(id$1("$$slotProps"),eA.name))))}}function MemberExpression(eA,AA){if(eA.property.type==="PrivateIdentifier"&&AA.state.private_state.get(eA.property.name))return AA.state.in_constructor?member(eA,"v"):call("$.get",eA);AA.next()}const modifiers=["stopPropagation","stopImmediatePropagation","preventDefault","self","trusted","once"];function OnDirective(eA,AA){eA.expression||(AA.state.analysis.needs_props=!0);let tA=build_event_handler(eA.expression,eA.metadata.expression,AA);for(const IA of modifiers)eA.modifiers.includes(IA)&&(tA=call("$."+IA,tA));const gA=eA.modifiers.includes("capture"),iA=eA.modifiers.includes("passive")||(eA.modifiers.includes("nonpassive")?!1:void 0);return build_event(eA.name,AA.state.node,tA,gA,iA)}function Program(eA,AA){if(!AA.state.analysis.runes){AA.state.transform.$$props={read:tA=>({...tA,name:"$$sanitized_props"})};for(const[tA,gA]of AA.state.scope.declarations)if(gA.declaration_kind==="import"&&gA.mutated){const{start:iA,end:IA}=AA.state.analysis.instance.ast,BA=gA.initial;if(BA.start>iA&&BA.end<IA){const CA=id$1("$$_import_"+tA);AA.state.transform[tA]={read:oA=>call(CA),mutate:(oA,QA)=>call(CA,QA)},AA.state.legacy_reactive_imports.push(var_builder(CA,call("$.reactive_import",thunk(id$1(tA)))))}}}for(const[tA,gA]of AA.state.scope.declarations){if(gA.kind==="store_sub"){let iA;const IA=()=>iA??(iA=AA.visit(id$1(tA.slice(1))));AA.state.transform[tA]={read:call,assign:(BA,sA)=>call("$.store_set",IA(),sA),mutate:(BA,sA)=>{const CA=call("$.untrack",BA);function oA(QA){return QA.type==="MemberExpression"?{...QA,object:oA(QA.object),property:QA.property}:CA}return call("$.store_mutate",IA(),assignment(sA.operator,oA(sA.left),sA.right),CA)},update:BA=>call(BA.prefix?"$.update_pre_store":"$.update_store",build_getter$1(id$1(tA.slice(1)),AA.state),call(BA.argument),BA.operator==="--"&&literal(-1))}}if(gA.kind==="prop"||gA.kind==="bindable_prop")if(is_prop_source(gA,AA.state))AA.state.transform[tA]={read:call,assign:(iA,IA)=>call(iA,IA),mutate:(iA,IA)=>gA.kind==="bindable_prop"?call(iA,IA,true_instance):IA,update:iA=>call(iA.prefix?"$.update_pre_prop":"$.update_prop",iA.argument,iA.operator==="--"&&literal(-1))};else if(gA.prop_alias){const iA=key$2(gA.prop_alias);AA.state.transform[tA]={read:IA=>member(id$1("$$props"),iA,iA.type==="Literal")}}else AA.state.transform[tA]={read:iA=>member(id$1("$$props"),iA)}}add_state_transformers(AA),AA.next()}function RegularElement(eA,AA){let tA=[-1,-1];if(dev){const fA=locator(eA.start);fA&&(tA[0]=fA.line,tA[1]=fA.column,AA.state.locations.push(tA))}if(eA.name==="noscript"){AA.state.template.push("<noscript></noscript>");return}const gA=is_custom_element_node(eA);(eA.name==="video"||gA)&&(AA.state.metadata.context.template_needs_import_node=!0),eA.name==="script"&&(AA.state.metadata.context.template_contains_script_tag=!0),AA.state.template.push(`<${eA.name}`);const iA=[],IA=[],BA=[],sA=[],CA=[],oA=new Map,QA=new Map;let EA=eA.metadata.has_spread,rA=!1;for(const fA of eA.attributes)switch(fA.type){case"AnimateDirective":sA.push(fA);break;case"Attribute":if(fA.name==="is"&&AA.state.metadata.namespace==="html"){const{value:LA}=build_attribute_value(fA.value,AA);if(LA.type==="Literal"&&typeof LA.value=="string"){AA.state.template.push(` is="${escape_html(LA.value,!0)}"`);continue}}iA.push(fA),oA.set(fA.name,fA);break;case"BindDirective":QA.set(fA.name,fA),sA.push(fA);break;case"ClassDirective":IA.push(fA);break;case"LetDirective":CA.push(AA.visit(fA));break;case"OnDirective":sA.push(fA);break;case"SpreadAttribute":iA.push(fA);break;case"StyleDirective":BA.push(fA);break;case"TransitionDirective":sA.push(fA);break;case"UseDirective":rA=!0,sA.push(fA);break}const lA={...AA.state,init:[],after_update:[]};for(const fA of sA)if(fA.type==="OnDirective"){const LA=AA.visit(fA);rA?lA.init.push(stmt(call("$.effect",thunk(LA)))):lA.after_update.push(stmt(LA))}else AA.visit(fA,lA);if(eA.name==="input"&&(EA||QA.has("value")||QA.has("checked")||QA.has("group")||iA.some(fA=>fA.type==="Attribute"&&(fA.name==="value"||fA.name==="checked")&&!is_text_attribute(fA)))&&AA.state.init.push(stmt(call("$.remove_input_defaults",AA.state.node))),eA.name==="textarea"){const fA=oA.get("value")??oA.get("checked"),LA=fA&&!is_text_attribute(fA);(EA||QA.has("value")||LA)&&AA.state.init.push(stmt(call("$.remove_textarea_child",AA.state.node)))}eA.name==="select"&&QA.has("value")&&setup_select_synchronization(QA.get("value"),AA),AA.state.init.push(...CA);const uA=AA.state.node;let cA=EA;if(EA){const fA=id$1(AA.state.scope.generate("attributes"));build_set_attributes(iA,AA,eA,uA,fA,(eA.metadata.svg||eA.metadata.mathml||is_custom_element_node(eA))&&true_instance,eA.name.includes("-")&&true_instance,AA.state),eA.name==="select"&&!QA.has("value")&&(AA.state.init.push(stmt(call("$.init_select",uA,thunk(member(fA,"value"))))),AA.state.update.push(if_builder(binary("in",literal("value"),fA),block([stmt(call("$.select_option",uA,member(fA,"value")))]))))}else{const fA=eA.name==="option"||eA.name==="select"||QA.has("group")||QA.has("checked");for(const LA of iA){if(is_event_attribute(LA)){visit_event_attribute(LA,AA);continue}if(fA&&LA.name==="value"){build_element_special_value_attribute(eA.name,uA,LA,AA);continue}if(!gA&&LA.name!=="autofocus"&&LA.name!=="muted"&&(LA.value===!0||is_text_attribute(LA))){const bA=get_attribute_name(eA,LA),JA=is_text_attribute(LA)?LA.value[0].data:!0;(bA!=="class"||JA)&&AA.state.template.push(` ${LA.name}${is_boolean_attribute(bA)&&JA===!0?"":`="${JA===!0?"":escape_html(JA,!0)}"`}`);continue}(gA?build_custom_element_attribute_update_assignment(uA,LA,AA):build_element_attribute_update_assignment(eA,uA,LA,AA))&&(cA=!0)}}build_class_directives(IA,uA,AA,cA),build_style_directives(BA,uA,AA,cA),eA.name==="img"&&(EA||oA.has("loading"))&&AA.state.after_update.push(stmt(call("$.handle_lazy_img",uA))),is_load_error_element(eA.name)&&(EA||rA||oA.has("onload")||oA.has("onerror"))&&AA.state.after_update.push(stmt(call("$.replay_events",uA))),AA.state.template.push(">");const hA={...AA.state.metadata,namespace:determine_namespace_for_children(eA,AA.state.metadata.namespace)};if(QA.has("innerHTML")||QA.has("innerText")||QA.has("textContent")){const fA=oA.get("contenteditable");fA&&(fA.value===!0||is_text_attribute(fA)&&fA.value[0].data==="true")&&(hA.bound_contenteditable=!0)}const dA={...AA.state,metadata:hA,locations:[],scope:AA.state.scopes.get(eA.fragment),preserve_whitespace:AA.state.preserve_whitespace||eA.name==="pre"||eA.name==="textarea"},{hoisted:pA,trimmed:wA}=clean_nodes(eA,eA.fragment.nodes,AA.path,dA.metadata.namespace,dA,eA.name==="script"||dA.preserve_whitespace,dA.options.preserveComments),mA={...dA,init:[],update:[],after_update:[]};for(const fA of pA)AA.visit(fA,mA);const MA=wA.every(fA=>fA.type==="Text"||fA.type==="ExpressionTag")&&wA.some(fA=>fA.type==="ExpressionTag")&&get_states_and_calls(wA);if(MA&&MA.states===0)mA.init.push(stmt(assignment("=",member(AA.state.node,"textContent"),build_template_literal(wA,AA.visit,mA).value)));else{let fA=AA.state.node,LA=wA.some(_A=>_A.type!=="Text");eA.name==="template"&&(LA=!0,mA.init.push(stmt(call("$.hydrate_template",fA))),fA=member(fA,"content")),process_children(wA,_A=>call("$.child",fA,_A&&true_instance),!0,{...AA,state:mA}),LA&&mA.init.push(stmt(call("$.reset",AA.state.node)))}if(eA.fragment.nodes.some(fA=>fA.type==="SnippetBlock")?AA.state.init.push(block([...mA.init,...lA.init,mA.update.length>0?build_render_statement(mA.update):empty,...mA.after_update,...lA.after_update])):eA.fragment.metadata.dynamic?(AA.state.init.push(...mA.init,...lA.init),AA.state.update.push(...mA.update),AA.state.after_update.push(...mA.after_update,...lA.after_update)):(AA.state.init.push(...lA.init),AA.state.after_update.push(...lA.after_update)),oA.has("dir")){const fA=member(uA,"dir");AA.state.update.push(stmt(assignment("=",fA,fA)))}dA.locations.length>0&&tA.push(dA.locations),is_void(eA.name)||AA.state.template.push(`</${eA.name}>`)}function setup_select_synchronization(eA,AA){if(AA.state.analysis.runes)return;let tA=eA.expression;for(;tA.type==="MemberExpression";)tA=tA.object;const gA=[];for(const[IA,BA]of AA.state.scope.references)BA.length>0&&IA!==tA.name&&gA.push(IA);const iA=call("$.invalidate_inner_signals",thunk(block(gA.map(IA=>{const BA=build_getter$1(id$1(IA),AA.state);return stmt(BA)}))));AA.state.init.push(stmt(call("$.template_effect",thunk(block([stmt(AA.visit(eA.expression)),stmt(iA)])))))}function build_element_attribute_update_assignment(eA,AA,tA,gA){const iA=gA.state,IA=get_attribute_name(eA,tA),BA=gA.state.metadata.namespace==="svg"||eA.name==="svg",sA=gA.state.metadata.namespace==="mathml";let{has_call:CA,value:oA}=build_attribute_value(tA.value,gA);if(IA==="autofocus")return iA.init.push(stmt(call("$.autofocus",AA,oA))),!1;if(IA==="muted")return iA.init.push(stmt(assignment("=",member(AA,id$1("muted")),oA))),!1;let QA;if(IA==="class"){if(tA.metadata.expression.has_state&&CA){const rA=id$1(iA.scope.generate("class_derived"));iA.init.push(const_builder(rA,create_derived(iA,thunk(oA)))),oA=call("$.get",rA),CA=!1}QA=stmt(call(BA?"$.set_svg_class":sA?"$.set_mathml_class":"$.set_class",AA,oA))}else if(IA==="value")QA=stmt(call("$.set_value",AA,oA));else if(IA==="checked")QA=stmt(call("$.set_checked",AA,oA));else if(is_dom_property(IA))QA=stmt(assignment("=",member(AA,IA),oA));else{if(IA==="style"&&tA.metadata.expression.has_state&&CA){const lA=id$1(iA.scope.generate("style_derived"));iA.init.push(const_builder(lA,create_derived(iA,thunk(oA)))),oA=call("$.get",lA),CA=!1}const rA=IA.startsWith("xlink")?"$.set_xlink_attribute":"$.set_attribute";QA=stmt(call(rA,AA,literal(IA),oA,is_ignored(eA,"hydration_attribute_changed")&&true_instance))}const EA=tA.value===!0?!1:is_inlinable_expression(Array.isArray(tA.value)?tA.value:[tA.value],gA.state);return tA.metadata.expression.has_state?(CA?iA.init.push(build_update(QA)):iA.update.push(QA),!0):(EA?gA.state.template.push(` ${IA}="`,oA,'"'):iA.init.push(QA),!1)}function is_inlinable_expression(eA,AA){var gA;let tA=!1;for(let iA of eA)if(iA.type==="ExpressionTag"){if(iA.expression.type==="Identifier"){const IA=(gA=AA.scope.owner(iA.expression.name))==null?void 0:gA.declarations.get(iA.expression.name);if(!can_inline_variable(IA))return!1}else return!1;tA=!0}return tA}function build_custom_element_attribute_update_assignment(eA,AA,tA){const gA=tA.state,iA=AA.name;let{has_call:IA,value:BA}=build_attribute_value(AA.value,tA);const sA=stmt(call("$.set_custom_element_data",eA,literal(iA),BA));return AA.metadata.expression.has_state?(IA?gA.init.push(build_update(sA)):gA.update.push(sA),!0):(gA.init.push(sA),!1)}function build_element_special_value_attribute(eA,AA,tA,gA){const iA=gA.state,{value:IA}=build_attribute_value(tA.value,gA),BA=assignment("=",member(AA,"value"),conditional(binary("==",literal(null),assignment("=",member(AA,"__value"),IA)),literal(""),IA)),sA=eA==="select"&&tA.value!==!0&&!is_text_attribute(tA),CA=stmt(sA?sequence$1([BA,call("$.select_option",AA,IA)]):BA);if(sA&&iA.init.push(stmt(call("$.init_select",AA,thunk(IA)))),tA.metadata.expression.has_state){const oA=iA.scope.generate(`${AA.name}_value`);return build_update_assignment(iA,oA,eA==="option"?object$2([]):void 0,IA,CA),!0}else return iA.init.push(CA),!1}function RenderTag(eA,AA){AA.state.template.push("<!>");const tA=unwrap_optional(eA.expression).callee,gA=unwrap_optional(eA.expression).arguments;let iA=[];for(let BA=0;BA<gA.length;BA++){const sA=gA[BA],CA=AA.visit(sA);if(eA.metadata.args_with_call_expression.has(BA)){const oA=id$1(AA.state.scope.generate("render_arg"));AA.state.init.push(var_builder(oA,call("$.derived_safe_equal",thunk(CA)))),iA.push(thunk(call("$.get",oA)))}else iA.push(thunk(CA))}let IA=AA.visit(tA);eA.metadata.dynamic?(eA.expression.type==="ChainExpression"&&(IA=logical("??",IA,id$1("$.noop"))),AA.state.init.push(stmt(call("$.snippet",AA.state.node,thunk(IA),...iA)))):AA.state.init.push(stmt((eA.expression.type==="CallExpression"?call:maybe_call)(IA,AA.state.node,...iA)))}function SlotElement(eA,AA){AA.state.template.push("<!>");const tA=[],gA=[],iA=[];let IA=literal("default");for(const oA of eA.attributes)if(oA.type==="SpreadAttribute")gA.push(thunk(AA.visit(oA)));else if(oA.type==="Attribute"){const{value:QA}=build_attribute_value(oA.value,AA);oA.name==="name"?IA=QA:oA.name!=="slot"&&(oA.metadata.expression.has_state?tA.push(get(oA.name,[return_builder(QA)])):tA.push(init(oA.name,QA)))}else oA.type==="LetDirective"&&iA.push(AA.visit(oA));AA.state.init.push(...iA);const BA=gA.length===0?object$2(tA):call("$.spread_props",object$2(tA),...gA),sA=eA.fragment.nodes.length===0?literal(null):arrow([id$1("$$anchor")],AA.visit(eA.fragment)),CA=call("$.slot",AA.state.node,id$1("$$props"),IA,BA,sA);AA.state.init.push(stmt(CA))}function SnippetBlock(eA,AA){var oA;const tA=[id$1("$$anchor")];let gA;const iA=[],IA={...AA.state.transform},BA={...AA.state,transform:IA};for(let QA=0;QA<eA.parameters.length;QA++){const EA=eA.parameters[QA];if(!EA)continue;if(EA.type==="Identifier"){tA.push({type:"AssignmentPattern",left:EA,right:id$1("$.noop")}),IA[EA.name]={read:call};continue}let rA=`$$arg${QA}`;tA.push(id$1(rA));const lA=extract_paths(EA);for(const uA of lA){const cA=uA.node.name,hA=uA.has_default_value,dA=thunk(AA.visit((oA=uA.expression)==null?void 0:oA.call(uA,maybe_call(id$1(rA)))));iA.push(let_builder(uA.node,hA?call("$.derived_safe_equal",dA):dA)),IA[cA]={read:hA?get_value:call},dev&&iA.push(stmt(IA[cA].read(id$1(cA))))}}gA=block([...iA,...AA.visit(eA.body,BA).body]);let sA=arrow(tA,gA);dev&&(sA=call("$.wrap_snippet",id$1(AA.state.analysis.name),sA));const CA=const_builder(eA.expression,sA);AA.path.length===1&&AA.path[0].type==="Fragment"?AA.state.analysis.top_level_snippets.push(CA):AA.state.init.push(CA)}function SpreadAttribute(eA,AA){return AA.visit(eA.expression)}function visit_special_element(eA,AA,tA){const gA={...tA.state,node:id$1(AA)};for(const iA of eA.attributes)iA.type==="OnDirective"?tA.state.init.push(stmt(tA.visit(iA,gA))):tA.visit(iA,gA)}function SvelteBody(eA,AA){visit_special_element(eA,"$.document.body",AA)}function SvelteComponent(eA,AA){const tA=build_component(eA,"$$component",AA);AA.state.init.push(tA)}function SvelteDocument(eA,AA){visit_special_element(eA,"$.document",AA)}function SvelteElement(eA,AA){AA.state.template.push("<!>");const tA=[];let gA;const iA=[],IA=[],BA=[],sA=id$1(AA.state.scope.generate("$$element")),CA={...AA,state:{...AA.state,node:sA,before_init:[],init:[],update:[],after_update:[]}};for(const lA of eA.attributes)if(lA.type==="Attribute")lA.name==="xmlns"&&!is_text_attribute(lA)&&(gA=lA.value),tA.push(lA);else if(lA.type==="SpreadAttribute")tA.push(lA);else if(lA.type==="ClassDirective")iA.push(lA);else if(lA.type==="StyleDirective")IA.push(lA);else if(lA.type==="LetDirective")BA.push(AA.visit(lA));else if(lA.type==="OnDirective"){const uA=AA.visit(lA,CA.state);CA.state.after_update.push(stmt(uA))}else AA.visit(lA,CA.state);AA.state.init.push(...BA);let oA=!1;if(tA.length===0)AA.state.analysis.css.hash&&CA.state.init.push(stmt(call("$.set_class",sA,literal(AA.state.analysis.css.hash))));else{const lA=id$1(AA.state.scope.generate("attributes"));oA=build_set_attributes(tA,CA,eA,sA,lA,binary("===",member(sA,"namespaceURI"),id$1("$.NAMESPACE_SVG")),call(member(member(sA,"nodeName"),"includes"),literal("-")),AA.state)}build_class_directives(iA,sA,CA,oA),build_style_directives(IA,sA,CA,oA);const QA=thunk(AA.visit(eA.tag));dev&&(eA.fragment.nodes.length>0&&AA.state.init.push(stmt(call("$.validate_void_dynamic_element",QA))),AA.state.init.push(stmt(call("$.validate_dynamic_element_tag",QA))));const EA=CA.state.init;CA.state.update.length>0&&EA.push(build_render_statement(CA.state.update)),EA.push(...CA.state.after_update),EA.push(...AA.visit(eA.fragment,{...AA.state,metadata:{...AA.state.metadata,namespace:determine_namespace_for_children(eA,AA.state.metadata.namespace)}}).body);const rA=dev&&locator(eA.start);AA.state.init.push(stmt(call("$.element",AA.state.node,QA,eA.metadata.svg||eA.metadata.mathml?true_instance:false_instance,EA.length>0&&arrow([sA,id$1("$$anchor")],block(EA)),gA&&thunk(build_attribute_value(gA,AA).value),rA&&array([literal(rA.line),literal(rA.column)]))))}function SvelteFragment(eA,AA){for(const tA of eA.attributes)tA.type==="LetDirective"&&AA.state.init.push(AA.visit(tA));AA.state.init.push(...AA.visit(eA.fragment).body)}function SvelteHead(eA,AA){AA.state.init.push(stmt(call("$.head",arrow([id$1("$$anchor")],AA.visit(eA.fragment)))))}function SvelteSelf(eA,AA){const tA=build_component(eA,AA.state.analysis.name,AA);AA.state.init.push(tA)}function SvelteWindow(eA,AA){visit_special_element(eA,"$.window",AA)}function TitleElement(eA,AA){const{has_state:tA,value:gA}=build_template_literal(eA.fragment.nodes,AA.visit,AA.state),iA=stmt(assignment("=",id$1("$.document.title"),gA));tA?AA.state.update.push(iA):AA.state.init.push(iA)}function TransitionDirective(eA,AA){let tA=eA.modifiers.includes("global")?TRANSITION_GLOBAL:0;eA.intro&&(tA|=TRANSITION_IN),eA.outro&&(tA|=TRANSITION_OUT);const gA=[literal(tA),AA.state.node,thunk(AA.visit(parse_directive_name(eA.name)))];eA.expression&&gA.push(thunk(AA.visit(eA.expression))),AA.state.after_update.push(stmt(call("$.transition",...gA)))}function UpdateExpression(eA,AA){var CA;const tA=eA.argument;if(tA.type==="MemberExpression"&&tA.object.type==="ThisExpression"&&tA.property.type==="PrivateIdentifier"&&AA.state.private_state.has(tA.property.name)){let oA="$.update";eA.prefix&&(oA+="_pre");const QA=[tA];return eA.operator==="--"&&QA.push(literal(-1)),call(oA,...QA)}if(tA.type!=="Identifier"&&tA.type!=="MemberExpression")throw new Error("An impossible state was reached");const gA=object$1(tA);if(gA===null)return AA.next();if(gA===tA){const oA=AA.state.transform,QA=(CA=oA[gA.name])==null?void 0:CA.update;if(QA&&Object.hasOwn(oA,gA.name))return QA(eA)}const iA=AA.visit(assignment(eA.operator==="++"?"+=":"-=",tA,literal(1))),BA=AA.path.at(-1).type==="ExpressionStatement",sA=eA.prefix||BA?iA:binary(eA.operator==="++"?"-":"+",iA,literal(1));return is_ignored(eA,"ownership_invalid_mutation")?call("$.skip_ownership_validation",thunk(sA)):sA}function UseDirective(eA,AA){const tA=[id$1("$$node")];eA.expression&&tA.push(id$1("$$action_arg"));const gA=[AA.state.node,arrow(tA,call(AA.visit(parse_directive_name(eA.name)),...tA))];eA.expression&&gA.push(thunk(AA.visit(eA.expression))),AA.state.init.push(stmt(call("$.action",...gA))),AA.next()}function VariableDeclaration(eA,AA){var gA;const tA=[];if(AA.state.analysis.runes)for(const iA of eA.declarations){const IA=iA.init,BA=get_rune(IA,AA.state.scope);if(!BA||BA==="$effect.tracking"||BA==="$effect.root"||BA==="$inspect"||BA==="$state.snapshot"||BA==="$host"){if(IA!=null&&is_hoisted_function(IA)){AA.state.hoisted.push(const_builder(iA.id,AA.visit(IA)));continue}tA.push(AA.visit(iA));continue}if(BA==="$props"){const oA=["$$slots","$$events","$$legacy"];if(AA.state.analysis.custom_element&&oA.push("$$host"),iA.id.type==="Identifier"){const QA=[id$1("$$props"),array(oA.map(EA=>literal(EA)))];dev&&QA.push(literal(iA.id.name)),tA.push(declarator(iA.id,call("$.rest_props",...QA)))}else{equal(iA.id.type,"ObjectPattern");for(const QA of iA.id.properties)if(QA.type==="Property"){const EA=QA.key,rA=EA.type==="Identifier"?EA.name:EA.value;oA.push(rA);let lA=QA.value.type==="AssignmentPattern"?QA.value.left:QA.value;equal(lA.type,"Identifier");const uA=AA.state.scope.get(lA.name);let cA=uA.initial&&AA.visit(uA.initial);cA&&uA.kind==="bindable_prop"&&should_proxy(cA,AA.state.scope)&&(cA=call("$.proxy",cA)),is_prop_source(uA,AA.state)&&tA.push(declarator(lA,get_prop_source(uA,AA.state,rA,cA)))}else{const EA=[id$1("$$props"),array(oA.map(rA=>literal(rA)))];dev&&EA.push(literal(QA.argument.name)),tA.push(declarator(QA.argument,call("$.rest_props",...EA)))}}continue}const sA=IA.arguments,CA=sA.length===0?id$1("undefined"):AA.visit(sA[0]);if(BA==="$state"||BA==="$state.raw"){const oA=(QA,EA)=>{const rA=AA.state.scope.get(QA.name);return BA==="$state"&&should_proxy(EA,AA.state.scope)&&(EA=call("$.proxy",EA)),is_state_source(rA,AA.state.analysis)&&(EA=call("$.state",EA)),EA};if(iA.id.type==="Identifier")tA.push(declarator(iA.id,oA(iA.id,CA)));else{const QA=AA.state.scope.generate("tmp"),EA=extract_paths(iA.id);tA.push(declarator(id$1(QA),CA),...EA.map(rA=>{var cA;const lA=(cA=rA.expression)==null?void 0:cA.call(rA,id$1(QA)),uA=AA.state.scope.get(rA.node.name);return declarator(rA.node,(uA==null?void 0:uA.kind)==="state"||(uA==null?void 0:uA.kind)==="raw_state"?oA(uA.node,lA):lA)}))}continue}if(BA==="$derived"||BA==="$derived.by"){if(iA.id.type==="Identifier")tA.push(declarator(iA.id,call("$.derived",BA==="$derived.by"?CA:thunk(CA))));else{const oA=extract_paths(iA.id),QA=iA.init;let EA,rA=CA;BA==="$derived"&&QA.arguments[0].type==="Identifier"?EA=QA.arguments[0]:(EA=id$1(AA.state.scope.generate("$$d")),rA=call("$.get",EA),tA.push(declarator(EA,call("$.derived",BA==="$derived.by"?CA:thunk(CA)))));for(let lA=0;lA<oA.length;lA++){const uA=oA[lA];tA.push(declarator(uA.node,call("$.derived",thunk(uA.expression(rA)))))}}continue}}else for(const iA of eA.declarations){const IA=AA.state.scope.get_bindings(iA),BA=IA.some(CA=>CA.kind==="state"),sA=IA.some(CA=>CA.kind==="bindable_prop");if(!BA&&!sA){const CA=iA.init;if(CA!=null&&is_hoisted_function(CA)){AA.state.hoisted.push(const_builder(iA.id,AA.visit(CA)));continue}tA.push(AA.visit(iA));continue}if(sA){if(iA.id.type!=="Identifier"){const oA=AA.state.scope.generate("tmp"),QA=extract_paths(iA.id);tA.push(declarator(id$1(oA),AA.visit(iA.init)));for(const EA of QA){const rA=EA.node.name,lA=AA.state.scope.get(rA),uA=(gA=EA.expression)==null?void 0:gA.call(EA,id$1(oA));tA.push(declarator(EA.node,lA.kind==="bindable_prop"?get_prop_source(lA,AA.state,lA.prop_alias??rA,uA):uA))}continue}const CA=AA.state.scope.get(iA.id.name);tA.push(declarator(iA.id,get_prop_source(CA,AA.state,CA.prop_alias??iA.id.name,iA.init&&AA.visit(iA.init))));continue}tA.push(...create_state_declarators(iA,AA.state,iA.init&&AA.visit(iA.init)))}return tA.length===0?empty:{...eA,declarations:tA}}function create_state_declarators(eA,{scope:AA,analysis:tA},gA){if(eA.id.type==="Identifier")return[declarator(eA.id,call("$.mutable_state",gA,tA.immutable?true_instance:void 0))];const iA=AA.generate("tmp"),IA=extract_paths(eA.id);return[declarator(id$1(iA),gA),...IA.map(BA=>{var oA;const sA=(oA=BA.expression)==null?void 0:oA.call(BA,id$1(iA)),CA=AA.get(BA.node.name);return declarator(BA.node,(CA==null?void 0:CA.kind)==="state"?call("$.mutable_state",sA,tA.immutable?true_instance:void 0):sA)})]}const visitors={_:function eA(AA,{next:tA,state:gA}){const iA=gA.scopes.get(AA);if(iA&&iA!==gA.scope){const IA={...gA.transform};for(const[BA,sA]of iA.declarations)(sA.kind==="normal"||sA.kind==="state"&&!is_state_source(sA,gA.analysis))&&delete IA[BA];tA({...gA,transform:IA,scope:iA})}else tA()},AnimateDirective,ArrowFunctionExpression,AssignmentExpression,Attribute,AwaitBlock,BinaryExpression,BindDirective,BlockStatement,BreakStatement,CallExpression,ClassBody,Comment,Component,ConstTag,DebugTag,EachBlock,ExportNamedDeclaration,ExpressionStatement,Fragment,FunctionDeclaration,FunctionExpression,HtmlTag,Identifier,IfBlock,ImportDeclaration,KeyBlock,LabeledStatement,LetDirective,MemberExpression,OnDirective,Program,RegularElement,RenderTag,SlotElement,SnippetBlock,SpreadAttribute,SvelteBody,SvelteComponent,SvelteDocument,SvelteElement,SvelteFragment,SvelteHead,SvelteSelf,SvelteWindow,TitleElement,TransitionDirective,UpdateExpression,UseDirective,VariableDeclaration};function client_component(eA,AA){var wA;const tA={analysis:eA,options:AA,scope:eA.module.scope,scopes:eA.module.scopes,is_instance:!1,hoisted:[import_all("$","svelte/internal/client")],node:null,legacy_reactive_imports:[],legacy_reactive_statements:new Map,metadata:{context:{template_needs_import_node:!1,template_contains_script_tag:!1},namespace:AA.namespace,bound_contenteditable:!1},events:new Set,preserve_whitespace:AA.preserveWhitespace,public_state:new Map,private_state:new Map,transform:{},in_constructor:!1,before_init:null,init:null,update:null,after_update:null,template:null,locations:null},gA=walk(eA.module.ast,tA,visitors),iA={...tA,transform:{...tA.transform},scope:eA.instance.scope,scopes:eA.instance.scopes,is_instance:!0},IA=walk(eA.instance.ast,iA,visitors),BA=walk(eA.template.ast,{...tA,transform:iA.transform,scope:eA.instance.scope,scopes:eA.template.scopes},visitors);gA.body.unshift(...tA.legacy_reactive_imports);const sA=[],CA=[];for(const[mA,MA]of eA.instance.scope.declarations)if(MA.kind==="legacy_reactive"&&CA.push(const_builder(mA,call("$.mutable_state",void 0,eA.immutable?true_instance:void 0))),MA.kind==="store_sub"){sA.length===0&&sA.push(const_builder("$$stores",call("$.setup_stores")));const fA=build_getter$1(id$1(mA.slice(1)),iA),LA=call("$.store_get",fA,literal(mA),id$1("$$stores"));sA.push(const_builder(MA.node,thunk(dev?sequence$1([call("$.validate_store",fA,literal(mA.slice(1))),LA]):LA)))}for(const[mA]of eA.reactive_statements){const MA=[...tA.legacy_reactive_statements].find(([fA])=>fA===mA);if(MA===void 0)throw new Error("Could not find reactive statement");IA.body.push(MA[1])}eA.reactive_statements.size>0&&IA.body.push(stmt(call("$.legacy_pre_effect_reset")));const oA=[];for(const mA of eA.binding_groups.values())oA.push(const_builder(mA.name,array([])));const QA=eA.exports.flatMap(({name:mA,alias:MA})=>{const fA=iA.scope.get(mA),LA=build_getter$1(id$1(mA),iA),_A=get(MA??mA,[return_builder(LA)]);if(LA.type==="Identifier"){if((fA==null?void 0:fA.declaration_kind)==="let"||(fA==null?void 0:fA.declaration_kind)==="var")return[_A,set(MA??mA,[stmt(assignment("=",LA,id$1("$$value")))])];if(!dev)return init(MA??mA,LA)}if((fA==null?void 0:fA.kind)==="prop"||(fA==null?void 0:fA.kind)==="bindable_prop")return[_A,set(MA??mA,[stmt(call(mA,id$1("$$value")))])];if((fA==null?void 0:fA.kind)==="state"||(fA==null?void 0:fA.kind)==="raw_state"){const bA=fA.kind==="state"?call("$.proxy",id$1("$$value")):id$1("$$value");return[_A,set(MA??mA,[stmt(call("$.set",id$1(mA),bA))])]}return _A}),EA=[...eA.instance.scope.declarations].filter(([mA,MA])=>(MA.kind==="prop"||MA.kind==="bindable_prop")&&!mA.startsWith("$$"));if(dev&&eA.runes){const mA=eA.exports.map(({name:fA,alias:LA})=>literal(LA??fA)),MA=[];for(const[fA,LA]of EA)LA.kind==="bindable_prop"&&MA.push(literal(LA.prop_alias??fA));IA.body.unshift(stmt(call("$.validate_prop_bindings",id$1("$$props"),array(MA),array(mA),id$1(`${eA.name}`))))}if(eA.accessors)for(const[mA,MA]of EA){const fA=MA.prop_alias??mA,LA=get(fA,[return_builder(call(id$1(mA)))]),_A=set(fA,[stmt(call(id$1(mA),id$1("$$value"))),stmt(call("$.flush_sync"))]);eA.runes&&MA.initial&&(_A.value.params[0]={type:"AssignmentPattern",left:id$1("$$value"),right:MA.initial}),QA.push(LA,_A)}AA.compatibility.componentApi===4?QA.push(init("$set",id$1("$.update_legacy_props")),init("$on",arrow([id$1("$$event_name"),id$1("$$event_cb")],call("$.add_legacy_event_listener",id$1("$$props"),id$1("$$event_name"),id$1("$$event_cb"))))):dev&&QA.push(spread(call(id$1("$.legacy_api"))));const rA=[id$1("$$props"),literal(eA.runes)];dev&&rA.push(id$1(eA.name));const lA=block([...sA,...CA,...oA,...eA.top_level_snippets,...IA.body,eA.runes||!eA.needs_context?empty:stmt(call("$.init",eA.immutable?true_instance:void 0)),...BA.body]);if(!eA.runes)for(const{name:mA,alias:MA}of eA.exports)lA.body.push(stmt(call("$.bind_prop",id$1("$$props"),literal(MA??mA),build_getter$1(id$1(mA),iA))));if(eA.css.ast!==null&&eA.inject_styles){const mA=literal(eA.css.hash),MA=literal(render_stylesheet(eA.source,eA,AA).code);tA.hoisted.push(const_builder("$$css",object$2([init("hash",mA),init("code",MA)]))),lA.body.unshift(stmt(call("$.append_styles",id$1("$$anchor"),id$1("$$css"))))}const uA=dev||eA.needs_context||eA.reactive_statements.size>0||QA.length>0;if(uA&&(lA.body.unshift(stmt(call("$.push",...rA))),lA.body.push(QA.length>0?return_builder(call("$.pop",object$2(QA))):stmt(call("$.pop")))),eA.uses_rest_props){const mA=eA.exports.map(({name:MA,alias:fA})=>fA??MA);for(const[MA,fA]of eA.instance.scope.declarations)fA.kind==="bindable_prop"&&mA.push(fA.prop_alias??MA);lA.body.unshift(const_builder("$$restProps",call("$.legacy_rest_props",id$1("$$sanitized_props"),array(mA.map(MA=>literal(MA))))))}if(eA.uses_props||eA.uses_rest_props){const mA=[literal("children"),literal("$$slots"),literal("$$events"),literal("$$legacy")];eA.custom_element&&mA.push(literal("$$host")),lA.body.unshift(const_builder("$$sanitized_props",call("$.legacy_rest_props",id$1("$$props"),array(mA))))}eA.uses_slots&&lA.body.unshift(const_builder("$$slots",call("$.sanitize_slots",id$1("$$props"))));let cA=uA||eA.needs_props||eA.uses_props||eA.uses_rest_props||eA.uses_slots||eA.slot_names.size>0;const hA=[];let dA=[];for(const mA of[...gA.body,...tA.hoisted])mA.type==="ImportDeclaration"?hA.push(mA):dA.push(mA);dA=[...hA,...dA];const pA=function_declaration(id$1(eA.name),cA?[id$1("$$anchor"),id$1("$$props")]:[id$1("$$anchor")],lA);if(AA.hmr){const mA=id$1(eA.name),MA=id$1("$.HMR"),fA=member(mA,MA,!0),LA=member(id$1("module.default"),MA,!0),_A=[stmt(assignment("=",member(LA,"source"),member(fA,"source"))),stmt(call("$.set",member(fA,"source"),member(LA,"original")))];eA.css.hash&&_A.unshift(stmt(call("$.cleanup_styles",literal(eA.css.hash))));const bA=block([stmt(assignment("=",mA,call("$.hmr",mA,thunk(member(fA,"source"))))),stmt(call("import.meta.hot.accept",arrow([id$1("module")],block(_A))))]);dA.push(pA,if_builder(id$1("import.meta.hot"),bA),export_default(id$1(eA.name)))}else dA.push(export_default(pA));if(dev&&(dA.unshift(stmt(assignment("=",member(id$1(eA.name),"$.FILENAME",!0),literal(filename)))),dA.unshift(stmt(call(id$1("$.mark_module_start")))),dA.push(stmt(call(id$1("$.mark_module_end"),id$1(eA.name))))),eA.runes||dA.unshift(imports([],"svelte/internal/flags/legacy")),AA.discloseVersion&&dA.unshift(imports([],"svelte/internal/disclose-version")),AA.compatibility.componentApi===4?(dA.unshift(imports([["createClassComponent","$$_createClassComponent"]],"svelte/legacy")),lA.body.unshift(if_builder(id$1("new.target"),return_builder(call("$$_createClassComponent",object$2([init("component",id$1(eA.name)),spread(id$1("$$anchor"))])))))):dev&&lA.body.unshift(stmt(call("$.check_target",id$1("new.target")))),tA.events.size>0&&dA.push(stmt(call("$.delegate",array(Array.from(tA.events).map(mA=>literal(mA)))))),eA.custom_element){const mA=eA.custom_element,MA=typeof mA=="boolean"?{}:mA.props||{},fA=[];for(const[RA,NA]of Object.entries(MA)){const FA=eA.instance.scope.get(RA),vA=(FA==null?void 0:FA.prop_alias)??RA;!NA.type&&((wA=FA==null?void 0:FA.initial)==null?void 0:wA.type)==="Literal"&&typeof(FA==null?void 0:FA.initial.value)=="boolean"&&(NA.type="Boolean");const xA=object$2([NA.attribute?init("attribute",literal(NA.attribute)):void 0,NA.reflect?init("reflect",literal(!0)):void 0,NA.type?init("type",literal(NA.type)):void 0].filter(Boolean));fA.push(init(vA,xA))}for(const[RA,NA]of EA){const FA=NA.prop_alias??RA;MA[FA]||fA.push(init(FA,object$2([])))}const LA=array([...eA.slot_names.keys()].map(RA=>literal(RA))),_A=array(eA.exports.map(({name:RA,alias:NA})=>literal(NA??RA))),bA=typeof mA=="boolean"||mA.shadow!=="none",JA=call("$.create_custom_element",id$1(eA.name),object$2(fA),LA,_A,literal(bA),typeof mA!="boolean"?mA.extend:void 0);if(typeof mA!="boolean"&&typeof mA.tag=="string"){const RA=stmt(call("customElements.define",literal(mA.tag),JA));AA.hmr?dA.push(if_builder(binary("==",call("customElements.get",literal(mA.tag)),null_instane),RA)):dA.push(RA)}else dA.push(stmt(JA))}return{type:"Program",sourceType:"module",body:dA}}function client_module(eA,AA){const tA={analysis:eA,options:AA,scope:eA.module.scope,scopes:eA.module.scopes,public_state:new Map,private_state:new Map,transform:{},in_constructor:!1},gA=walk(eA.module.ast,tA,visitors);return{type:"Program",sourceType:"module",body:[import_all("$","svelte/internal/client"),...gA.body]}}function transform_component(eA,AA,tA){if(tA.generate===!1)return{js:null,css:null,warnings,metadata:{runes:eA.runes},ast:null};const gA=tA.generate==="server"?server_component(eA,tA):client_component(eA,tA),iA=get_source_name(tA.filename,tA.outputFilename),IA=print(gA,{sourceMapContent:AA,sourceMapSource:iA});merge_with_preprocessor_map(IA,tA,iA);const BA=eA.css.ast&&!eA.inject_styles?render_stylesheet(AA,eA,tA):null;return{js:IA,css:BA,warnings,metadata:{runes:eA.runes},ast:null}}function transform_module(eA,AA,tA){if(tA.generate===!1)return{js:null,css:null,warnings,metadata:{runes:!0},ast:null};const gA=tA.generate==="server"?server_module(eA,tA):client_module(eA,tA),iA=tA.filename.split(/[/\\]/).at(-1);return gA.body.length>0&&(gA.body[0].leadingComments=[{type:"Block",value:` ${iA} generated by Svelte v${VERSION} `}]),{js:print(gA,{sourceMapContent:AA,sourceMapSource:get_source_name(tA.filename,void 0)}),css:null,metadata:{runes:!0},warnings,ast:null}}var process={};const common={filename:string("(unknown)"),rootDir:string(typeof process<"u"?(Vg=process.cwd)==null?void 0:Vg.call(process):void 0),dev:boolean(!1),generate:validator("client",(eA,AA)=>eA==="dom"||eA==="ssr"?(warn_once(options_renamed_ssr_dom),eA==="dom"?"client":"server"):(eA!=="client"&&eA!=="server"&&eA!==!1&&throw_error(`${AA} must be "client", "server" or false`),eA)),warningFilter:fun(()=>!0)},validate_module_options=object({...common}),validate_component_options=object({...common,accessors:deprecate(options_deprecated_accessors,boolean(!1)),css:validator("external",eA=>((eA===!0||eA===!1)&&throw_error('The boolean options have been removed from the css option. Use "external" instead of false and "injected" instead of true'),eA==="none"&&throw_error('css: "none" is no longer a valid option. If this was crucial for you, please open an issue on GitHub with your use case.'),eA!=="external"&&eA!=="injected"&&throw_error('css should be either "external" (default, recommended) or "injected"'),eA)),cssHash:fun(({css:eA,hash:AA})=>`svelte-${AA(eA)}`),cssOutputFilename:string(void 0),customElement:boolean(!1),discloseVersion:boolean(!0),immutable:deprecate(options_deprecated_immutable,boolean(!1)),legacy:removed("The legacy option has been removed. If you are using this because of legacy.componentApi, use compatibility.componentApi instead"),compatibility:object({componentApi:list([4,5],5)}),loopGuardTimeout:warn_removed(options_removed_loop_guard_timeout),name:string(void 0),namespace:list(["html","mathml","svg"]),modernAst:boolean(!1),outputFilename:string(void 0),preserveComments:boolean(!1),preserveWhitespace:boolean(!1),runes:boolean(void 0),hmr:boolean(!1),sourcemap:validator(void 0,eA=>eA),enableSourcemap:warn_removed(options_removed_enable_sourcemap),hydratable:warn_removed(options_removed_hydratable),format:removed('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:removed('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:removed("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:removed("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:removed("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")});function removed(eA){return AA=>{AA!==void 0&&options_removed(null,eA)}}const warned=new Set;function warn_once(eA){warned.has(eA)||(warned.add(eA),eA(null))}function warn_removed(eA){return AA=>{AA!==void 0&&warn_once(eA)}}function deprecate(eA,AA){return(tA,gA)=>(tA!==void 0&&warn_once(eA),AA(tA,gA))}function object(eA,AA=!1){return(tA,gA)=>{const iA={};(tA&&typeof tA!="object"||Array.isArray(tA))&&throw_error(`${gA} should be an object`);for(const IA in tA)IA in eA||(AA?iA[IA]=tA[IA]:options_unrecognised(null,`${gA?`${gA}.${IA}`:IA}`));for(const IA in eA){const BA=eA[IA];iA[IA]=BA(tA&&tA[IA],gA?`${gA}.${IA}`:IA)}return iA}}function validator(eA,AA){return(tA,gA)=>tA===void 0?eA:AA(tA,gA)}function string(eA,AA=!0){return validator(eA,(tA,gA)=>(typeof tA!="string"&&throw_error(`${gA} should be a string, if specified`),!AA&&tA===""&&throw_error(`${gA} cannot be empty`),tA))}function boolean(eA){return validator(eA,(AA,tA)=>(typeof AA!="boolean"&&throw_error(`${tA} should be true or false, if specified`),AA))}function list(eA,AA=eA[0]){return validator(AA,(tA,gA)=>{if(!eA.includes(tA)){const iA=eA.length>2?`${gA} should be one of ${eA.slice(0,-1).map(IA=>`"${IA}"`).join(", ")} or "${eA[eA.length-1]}"`:`${gA} should be either "${eA[0]}" or "${eA[1]}"`;throw_error(iA)}return tA})}function fun(eA){return validator(eA,(AA,tA)=>(typeof AA!="function"&&throw_error(`${tA} should be a function, if specified`),AA))}function throw_error(eA){options_invalid_value(null,eA)}function compile(eA,AA){eA=remove_bom(eA),reset_warning_filter(AA.warningFilter);const tA=validate_component_options(AA,"");reset(eA,tA);let gA=parse(eA);const{customElement:iA,...IA}=gA.options||{},BA={...tA,...IA,customElementOptions:iA};gA.metadata.ts&&(gA={...gA,fragment:gA.fragment&&remove_typescript_nodes(gA.fragment),instance:gA.instance&&remove_typescript_nodes(gA.instance),module:gA.module&&remove_typescript_nodes(gA.module)});const sA=analyze_component(gA,eA,BA),CA=transform_component(sA,eA,BA);return CA.ast=to_public_ast(eA,gA,AA.modernAst),CA}function compileModule(eA,AA){eA=remove_bom(eA),reset_warning_filter(AA.warningFilter);const tA=validate_module_options(AA,"");reset(eA,tA);const gA=analyze_module(parse$1(eA,!1),tA);return transform_module(gA,eA,tA)}function to_public_ast(eA,AA,tA){var gA;if(tA){const iA=IA=>{delete IA.metadata,delete IA.parent};return(gA=AA.options)==null||gA.attributes.forEach(IA=>{iA(IA),iA(IA.value),Array.isArray(IA.value)&&IA.value.forEach(iA)}),walk(AA,null,{_(IA,{next:BA}){iA(IA),BA()}})}return convert(eA,AA)}function remove_bom(eA){return eA.charCodeAt(0)===65279?eA.slice(1):eA}const transform=()=>{const eA=new Set;return{input:(AA,tA)=>({code:AA,id:tA}),hook:(AA,tA)=>{if(!eA.has(tA))eA.add(tA);else return null;return tA.endsWith(".svelte")?{code:compile(AA,{generate:"dom",dev:!1,filename:tA,css:"injected",runes:!0}).js.code,map:null}:tA.endsWith(".svelte.js")?{code:compileModule(AA,{generate:"client",dev:!1,filename:tA}).js.code,map:null}:tA.endsWith(".json")?{code:`export default ${AA};`,map:null}:null}}},load=(eA,AA,tA)=>{const gA=new Set;return{input:iA=>({resolved:iA}),hook:async iA=>{if(!gA.has(iA))gA.add(iA);else return null;if(iA==="<nil_xit_internal>/index.js")return AA;if(iA.startsWith(USER_TAG)){const IA=iA.substring(USER_TAG.length),BA=concat([header(nil_xit_proto.MessageType.MessageType_FileRequest),nil_xit_proto.FileRequest.encode({target:IA}).finish()]),{content:sA,metadata:CA}=await service_fetch(eA,BA,(oA,QA)=>{if(oA===nil_xit_proto.MessageType.MessageType_FileResponse){const EA=nil_xit_proto.FileResponse.decode(QA);if(EA.target===IA)return EA}});return tA&&tA(IA,CA),sA}if(iA.startsWith(RESOURCE_TAG))return await(await fetch(iA.slice(RESOURCE_TAG.length))).text();throw`unknown file: ${iA}`}}},debug_verbose=!1,hook_up=(eA,{hook:AA,input:tA})=>AA,warning=eA=>debug_verbose,encode=eA=>{const AA=new TextEncoder().encode(eA),gA=new Uint8Array(AA).reduce((iA,IA)=>iA+String.fromCharCode(IA),"");return btoa(gA)},transform_import=eA=>{const AA=eA.map(iA=>iA.split(" ")),tA=AA.map(iA=>{const IA=iA.slice(1,iA.length-2).join(" ");return IA.startsWith("* as ")?IA.slice(5):IA}),gA=AA.map(iA=>`import_map(${iA.pop()})`);return`const [${tA.join(", ")}] = await Promise.all([${gA.join(", ")}]);`},wrap_fe=eA=>{const AA=eA.code.replace("export {","return {"),tA=AA.indexOf(`;
59
+ `+QA.value[0].data),IA=call("$.escape",build_attribute_value$1(QA.value,AA))):eA.name!=="select"&&tA.push(QA):is_event_attribute(QA)?(QA.name==="onload"||QA.name==="onerror")&&is_load_error_element(eA.name)&&oA.add(QA.name):(QA.name==="class"?sA=tA.length:QA.name==="style"&&(CA=tA.length),tA.push(QA));else if(QA.type==="BindDirective"){if(QA.name==="value"&&eA.name==="select"||QA.name==="value"&&tA.some(rA=>rA.type==="Attribute"&&rA.name==="type"&&is_text_attribute(rA)&&rA.value[0].data==="file")||QA.name==="this")continue;const EA=binding_properties[QA.name];if(EA!=null&&EA.omit_in_ssr)continue;if(is_content_editable_binding(QA.name))IA=AA.visit(QA.expression);else if(QA.name==="value"&&eA.name==="textarea")IA=call("$.escape",AA.visit(QA.expression));else if(QA.name==="group"){const rA=eA.attributes.find(uA=>uA.type==="Attribute"&&uA.name==="value");if(!rA)continue;const lA=eA.attributes.some(uA=>uA.type==="Attribute"&&uA.name==="type"&&is_text_attribute(uA)&&uA.value[0].data==="checkbox");tA.push(create_attribute("checked",-1,-1,[{type:"ExpressionTag",start:-1,end:-1,parent:QA,expression:lA?call(member(QA.expression,"includes"),build_attribute_value$1(rA.value,AA)):binary("===",QA.expression,build_attribute_value$1(rA.value,AA)),metadata:{expression:create_expression_metadata()}}]))}else tA.push(create_attribute(QA.name,-1,-1,[{type:"ExpressionTag",start:-1,end:-1,parent:QA,expression:QA.expression,metadata:{expression:create_expression_metadata()}}]))}else QA.type==="SpreadAttribute"?(tA.push(QA),BA=!0,is_load_error_element(eA.name)&&(oA.add("onload"),oA.add("onerror"))):QA.type==="UseDirective"?is_load_error_element(eA.name)&&(oA.add("onload"),oA.add("onerror")):QA.type==="ClassDirective"?gA.push(QA):QA.type==="StyleDirective"?iA.push(QA):QA.type==="LetDirective"||AA.visit(QA);if(gA.length>0&&!BA){const QA=build_class_directives$1(gA,tA[sA]??null);sA===-1&&tA.push(QA)}if(iA.length>0&&!BA&&(build_style_directives$1(iA,tA[CA]??null,AA),CA>-1&&tA.splice(CA,1)),BA)build_element_spread_attributes(eA,tA,iA,gA,AA);else for(const QA of tA){if(QA.value===!0||is_text_attribute(QA)){const lA=get_attribute_name$1(eA,QA),uA=build_attribute_value$1(QA.value,AA,WHITESPACE_INSENSITIVE_ATTRIBUTES.includes(lA)).value;(lA!=="class"||uA)&&AA.state.template.push(literal(` ${QA.name}${is_boolean_attribute(lA)&&uA===!0?"":`="${uA===!0?"":String(uA)}"`}`));continue}const EA=get_attribute_name$1(eA,QA),rA=build_attribute_value$1(QA.value,AA,WHITESPACE_INSENSITIVE_ATTRIBUTES.includes(EA));AA.state.template.push(call("$.attr",literal(EA),rA,is_boolean_attribute(EA)&&true_instance))}if(oA.size!==0)for(const QA of oA)AA.state.template.push(literal(` ${QA}="this.__e=event"`));return IA}function get_attribute_name$1(eA,AA){let tA=AA.name;return!eA.metadata.svg&&!eA.metadata.mathml&&(tA=tA.toLowerCase()),tA}function build_element_spread_attributes(eA,AA,tA,gA,iA){let IA,BA,sA=0;if(gA.length>0||iA.state.analysis.css.hash){const QA=gA.map(EA=>init(EA.name,EA.expression.type==="Identifier"&&EA.expression.name===EA.name?id$1(EA.name):iA.visit(EA.expression)));iA.state.analysis.css.hash&&QA.unshift(init(iA.state.analysis.css.hash,literal(!0))),IA=object$2(QA)}if(tA.length>0){const QA=tA.map(EA=>init(EA.name,EA.value===!0?id$1(EA.name):build_attribute_value$1(EA.value,iA,!0)));BA=object$2(QA)}eA.metadata.svg||eA.metadata.mathml?sA|=ELEMENT_IS_NAMESPACED|ELEMENT_PRESERVE_ATTRIBUTE_CASE:is_custom_element_node(eA)&&(sA|=ELEMENT_PRESERVE_ATTRIBUTE_CASE);const oA=[object$2(AA.map(QA=>{if(QA.type==="Attribute"){const EA=get_attribute_name$1(eA,QA),rA=build_attribute_value$1(QA.value,iA,WHITESPACE_INSENSITIVE_ATTRIBUTES.includes(EA));return prop("init",key$2(EA),rA)}return spread(iA.visit(QA))})),IA,BA,sA?literal(sA):void 0];iA.state.template.push(call("$.spread_attributes",...oA))}function build_class_directives$1(eA,AA){const tA=eA.map(IA=>conditional(IA.expression,literal(IA.name),literal("")));AA===null&&(AA=create_attribute("class",-1,-1,[]));const gA=get_attribute_chunks(AA.value),iA=gA.at(-1);return(iA==null?void 0:iA.type)==="Text"?(iA.data+=" ",iA.raw+=" "):iA&&gA.push({type:"Text",start:-1,end:-1,parent:AA,data:" ",raw:" "}),gA.push({type:"ExpressionTag",start:-1,end:-1,parent:AA,expression:call(member(call(member(array(tA),"filter"),id$1("Boolean")),id$1("join")),literal(" ")),metadata:{expression:create_expression_metadata()}}),AA.value=gA,AA}function build_style_directives$1(eA,AA,tA){const gA=eA.map(IA=>{let BA=IA.value===!0?id$1(IA.name):build_attribute_value$1(IA.value,tA,!0);return IA.modifiers.includes("important")&&(BA=binary("+",BA,literal(" !important"))),init(IA.name,BA)}),iA=AA===null?object$2(gA):call("$.merge_styles",build_attribute_value$1(AA.value,tA,!0),object$2(gA));tA.state.template.push(call("$.add_styles",iA))}function RegularElement$1(eA,AA){const tA=determine_namespace_for_children(eA,AA.state.namespace),gA={...AA.state,namespace:tA,preserve_whitespace:AA.state.preserve_whitespace||eA.name==="pre"||eA.name==="textarea"};AA.state.template.push(literal(`<${eA.name}`));const iA=build_element_attributes(eA,{...AA,state:gA});if(AA.state.template.push(literal(">")),(eA.name==="script"||eA.name==="style")&&eA.fragment.nodes.length===1){AA.state.template.push(literal(eA.fragment.nodes[0].data),literal(`</${eA.name}>`));return}const{hoisted:IA,trimmed:BA}=clean_nodes(eA,eA.fragment.nodes,AA.path,tA,{...gA,scope:gA.scopes.get(eA.fragment)},gA.preserve_whitespace,gA.options.preserveComments);for(const sA of IA)AA.visit(sA,gA);if(dev){const sA=locator(eA.start);gA.template.push(stmt(call("$.push_element",id$1("$$payload"),literal(eA.name),literal(sA.line),literal(sA.column))))}if(iA===null)process_children$1(BA,{...AA,state:gA});else{let sA=iA;iA.type!=="Identifier"&&(sA=id$1(gA.scope.generate("$$body")),gA.template.push(const_builder(sA,iA)));const CA={...gA,template:[],init:[]};process_children$1(BA,{...AA,state:CA}),gA.template.push(if_builder(sA,block(build_template([sA])),block([...CA.init,...build_template(CA.template)])))}is_void(eA.name)||gA.template.push(literal(`</${eA.name}>`)),dev&&gA.template.push(stmt(call("$.pop_element")))}function RenderTag$1(eA,AA){const tA=unwrap_optional(eA.expression).callee,gA=unwrap_optional(eA.expression).arguments,iA=AA.visit(tA),IA=gA.map(BA=>AA.visit(BA));AA.state.template.push(stmt((eA.expression.type==="CallExpression"?call:maybe_call)(iA,id$1("$$payload"),...IA))),AA.state.skip_hydration_boundaries||AA.state.template.push(empty_comment)}function SlotElement$1(eA,AA){const tA=[],gA=[];let iA=literal("default");for(const CA of eA.attributes)if(CA.type==="SpreadAttribute")gA.push(AA.visit(CA));else if(CA.type==="Attribute"){const oA=build_attribute_value$1(CA.value,AA,!1,!0);CA.name==="name"?iA=oA:CA.name!=="slot"&&tA.push(init(CA.name,oA))}const IA=gA.length===0?object$2(tA):call("$.spread_props",array([object$2(tA),...gA])),BA=eA.fragment.nodes.length===0?literal(null):thunk(AA.visit(eA.fragment)),sA=call("$.slot",id$1("$$payload"),id$1("$$props"),iA,IA,BA);AA.state.template.push(empty_comment,stmt(sA),empty_comment)}function SnippetBlock$1(eA,AA){const tA=function_declaration(eA.expression,[id$1("$$payload"),...eA.parameters],AA.visit(eA.body));tA.___snippet=!0,AA.state.init.push(tA)}function SpreadAttribute$1(eA,AA){return AA.visit(eA.expression)}function SvelteComponent$1(eA,AA){build_inline_component(eA,AA.visit(eA.expression),AA)}function SvelteElement$1(eA,AA){let tA=AA.visit(eA.tag);if(tA.type!=="Identifier"){const BA=AA.state.scope.generate("$$tag");AA.state.init.push(const_builder(BA,tA)),tA=id$1(BA)}dev&&(eA.fragment.nodes.length>0&&AA.state.init.push(stmt(call("$.validate_void_dynamic_element",thunk(tA)))),AA.state.init.push(stmt(call("$.validate_dynamic_element_tag",thunk(tA)))));const gA={...AA.state,namespace:determine_namespace_for_children(eA,AA.state.namespace),template:[],init:[]};if(build_element_attributes(eA,{...AA,state:gA}),dev){const BA=locator(eA.start);AA.state.template.push(stmt(call("$.push_element",id$1("$$payload"),tA,literal(BA.line),literal(BA.column))))}const iA=block([...gA.init,...build_template(gA.template)]),IA=AA.visit(eA.fragment,gA);AA.state.template.push(stmt(call("$.element",id$1("$$payload"),tA,iA.body.length>0&&thunk(iA),IA.body.length>0&&thunk(IA)))),dev&&AA.state.template.push(stmt(call("$.pop_element")))}function SvelteFragment$1(eA,AA){AA.state.template.push(AA.visit(eA.fragment))}function SvelteHead$1(eA,AA){const tA=AA.visit(eA.fragment);AA.state.template.push(stmt(call("$.head",id$1("$$payload"),arrow([id$1("$$payload")],tA))))}function SvelteSelf$1(eA,AA){build_inline_component(eA,id$1(AA.state.analysis.name),AA)}function TitleElement$1(eA,AA){const tA=[literal("<title>")];process_children$1(eA.fragment.nodes,{...AA,state:{...AA.state,template:tA}}),tA.push(literal("</title>")),AA.state.init.push(...build_template(tA,id$1("$$payload.title"),"="))}function UpdateExpression$1(eA,AA){var gA;const tA=eA.argument;return tA.type==="Identifier"&&((gA=AA.state.scope.get(tA.name))==null?void 0:gA.kind)==="store_sub"?call(eA.prefix?"$.update_store_pre":"$.update_store",assignment("??=",id$1("$$store_subs"),object$2([])),literal(tA.name),id$1(tA.name.slice(1)),eA.operator==="--"&&literal(-1)):AA.next()}function VariableDeclaration$1(eA,AA){var gA;const tA=[];if(AA.state.analysis.runes)for(const iA of eA.declarations){const IA=iA.init,BA=get_rune(IA,AA.state.scope);if(!BA||BA==="$effect.tracking"||BA==="$inspect"||BA==="$effect.root"){tA.push(AA.visit(iA));continue}if(BA==="$props"){let oA=!1,QA=walk(iA.id,null,{RestElement(EA,rA){rA.path.at(-1)===iA.id&&(oA=!0)},AssignmentPattern(EA){if(EA.right.type==="CallExpression"&&get_rune(EA.right,AA.state.scope)==="$bindable"){const rA=EA.right.arguments.length?AA.visit(EA.right.arguments[0]):id$1("undefined");return assignment_pattern(EA.left,rA)}}});QA.type==="ObjectPattern"&&oA?QA.properties.splice(QA.properties.length-1,0,prop("init",id$1("$$slots"),id$1("$$slots")),prop("init",id$1("$$events"),id$1("$$events"))):QA.type==="Identifier"&&(QA=object_pattern([prop("init",id$1("$$slots"),id$1("$$slots")),prop("init",id$1("$$events"),id$1("$$events")),rest(id$1(QA.name))])),tA.push(declarator(AA.visit(QA),id$1("$$props")));continue}const sA=IA.arguments,CA=sA.length===0?id$1("undefined"):AA.visit(sA[0]);if(BA==="$derived.by"){tA.push(declarator(AA.visit(iA.id),call(CA)));continue}if(iA.id.type==="Identifier"){tA.push(declarator(iA.id,CA));continue}if(BA==="$derived"){tA.push(declarator(AA.visit(iA.id),CA));continue}tA.push(...create_state_declarators$1(iA,AA.state.scope,CA))}else for(const iA of eA.declarations){const IA=AA.state.scope.get_bindings(iA),BA=IA.some(CA=>CA.kind==="state"),sA=IA.some(CA=>CA.kind==="bindable_prop");if(!BA&&!sA){tA.push(AA.visit(iA));continue}if(sA){if(iA.id.type!=="Identifier"){const EA=AA.state.scope.generate("tmp"),rA=extract_paths(iA.id);tA.push(declarator(id$1(EA),AA.visit(iA.init)));for(const lA of rA){const uA=(gA=lA.expression)==null?void 0:gA.call(lA,id$1(EA)),cA=lA.node.name,hA=AA.state.scope.get(cA),dA=member(id$1("$$props"),literal(hA.prop_alias??cA),!0);tA.push(declarator(lA.node,build_fallback(dA,uA)))}continue}const CA=AA.state.scope.get(iA.id.name),oA=member(id$1("$$props"),literal(CA.prop_alias??iA.id.name),!0);let QA=oA;if(iA.init){const EA=AA.visit(iA.init);QA=build_fallback(oA,EA)}tA.push(declarator(iA.id,QA));continue}tA.push(...create_state_declarators$1(iA,AA.state.scope,iA.init&&AA.visit(iA.init)))}return{...eA,declarations:tA}}function create_state_declarators$1(eA,AA,tA){if(eA.id.type==="Identifier")return[declarator(eA.id,tA)];const gA=AA.generate("tmp"),iA=extract_paths(eA.id);return[declarator(id$1(gA),tA),...iA.map(IA=>{var sA;const BA=(sA=IA.expression)==null?void 0:sA.call(IA,id$1(gA));return declarator(IA.node,BA)})]}const global_visitors={_:set_scope,AssignmentExpression:AssignmentExpression$1,CallExpression:CallExpression$1,ClassBody:ClassBody$1,ExpressionStatement:ExpressionStatement$1,Identifier:Identifier$1,LabeledStatement:LabeledStatement$1,MemberExpression:MemberExpression$1,PropertyDefinition,UpdateExpression:UpdateExpression$1,VariableDeclaration:VariableDeclaration$1},template_visitors={AwaitBlock:AwaitBlock$1,Component:Component$1,ConstTag:ConstTag$1,DebugTag:DebugTag$1,EachBlock:EachBlock$1,Fragment:Fragment$1,HtmlTag:HtmlTag$1,IfBlock:IfBlock$1,KeyBlock:KeyBlock$1,RegularElement:RegularElement$1,RenderTag:RenderTag$1,SlotElement:SlotElement$1,SnippetBlock:SnippetBlock$1,SpreadAttribute:SpreadAttribute$1,SvelteComponent:SvelteComponent$1,SvelteElement:SvelteElement$1,SvelteFragment:SvelteFragment$1,SvelteHead:SvelteHead$1,SvelteSelf:SvelteSelf$1,TitleElement:TitleElement$1};function server_component(eA,AA){const tA={analysis:eA,options:AA,scope:eA.module.scope,scopes:eA.module.scopes,hoisted:[import_all("$","svelte/internal/server")],legacy_reactive_statements:new Map,init:null,template:null,namespace:AA.namespace,preserve_whitespace:AA.preserveWhitespace,private_derived:new Map,skip_hydration_boundaries:!1},gA=walk(eA.module.ast,tA,global_visitors),iA=walk(eA.instance.ast,{...tA,scopes:eA.instance.scopes},{...global_visitors,ImportDeclaration(lA){return tA.hoisted.push(lA),empty},ExportNamedDeclaration(lA,uA){return lA.declaration?uA.visit(lA.declaration):empty}}),IA=walk(eA.template.ast,{...tA,scopes:eA.template.scopes},{...global_visitors,...template_visitors}),BA=[];for(const[lA]of eA.reactive_statements){const uA=[...tA.legacy_reactive_statements].find(([cA])=>cA===lA);if(uA===void 0)throw new Error("Could not find reactive statement");if(lA.body.type==="ExpressionStatement"&&lA.body.expression.type==="AssignmentExpression")for(const cA of extract_identifiers(lA.body.expression.left)){const hA=eA.instance.scope.get(cA.name);(hA==null?void 0:hA.kind)==="legacy_reactive"&&BA.push(declarator(cA))}iA.body.push(uA[1])}if(BA.length>0&&iA.body.unshift({type:"VariableDeclaration",kind:"let",declarations:BA}),eA.uses_component_bindings){const lA=IA.body.filter(cA=>cA.type==="FunctionDeclaration"&&cA.___snippet),uA=IA.body.filter(cA=>cA.type!=="FunctionDeclaration"||!cA.___snippet);IA.body=[...lA,let_builder("$$settled",true_instance),let_builder("$$inner_payload"),stmt(function_builder(id$1("$$render_inner"),[id$1("$$payload")],block(uA))),do_while(unary("!",id$1("$$settled")),block([stmt(assignment("=",id$1("$$settled"),true_instance)),stmt(assignment("=",id$1("$$inner_payload"),call("$.copy_payload",id$1("$$payload")))),stmt(call("$$render_inner",id$1("$$inner_payload")))])),stmt(call("$.assign_payload",id$1("$$payload"),id$1("$$inner_payload")))]}[...eA.instance.scope.declarations.values()].some(lA=>lA.kind==="store_sub")&&(iA.body.unshift(var_builder("$$store_subs")),IA.body.push(if_builder(id$1("$$store_subs"),stmt(call("$.unsubscribe_stores",id$1("$$store_subs"))))));const sA=[];for(const[lA,uA]of eA.instance.scope.declarations)uA.kind==="bindable_prop"&&!lA.startsWith("$$")&&sA.push(init(uA.prop_alias??lA,id$1(lA)));for(const{name:lA,alias:uA}of eA.exports)sA.push(init(uA??lA,id$1(lA)));sA.length>0&&IA.body.push(stmt(call("$.bind_props",id$1("$$props"),object$2(sA))));const CA=block([...iA.body,...IA.body]);let oA=dev||eA.needs_context;if(oA&&(CA.body.unshift(stmt(call("$.push",dev&&id$1(eA.name)))),CA.body.push(stmt(call("$.pop")))),eA.uses_rest_props){const lA=eA.exports.map(({name:uA,alias:cA})=>cA??uA);for(const[uA,cA]of eA.instance.scope.declarations)cA.kind==="bindable_prop"&&lA.push(cA.prop_alias??uA);CA.body.unshift(const_builder("$$restProps",call("$.rest_props",id$1("$$sanitized_props"),array(lA.map(uA=>literal(uA))))))}(eA.uses_props||eA.uses_rest_props)&&CA.body.unshift(const_builder("$$sanitized_props",call("$.sanitize_props",id$1("$$props")))),eA.uses_slots&&CA.body.unshift(const_builder("$$slots",call("$.sanitize_slots",id$1("$$props"))));const QA=[...tA.hoisted,...gA.body];if(eA.css.ast!==null&&AA.css==="injected"&&!AA.customElement){const lA=literal(eA.css.hash),uA=literal(render_stylesheet(eA.source,eA,AA).code);QA.push(const_builder("$$css",object$2([init("hash",lA),init("code",uA)]))),CA.body.unshift(stmt(call("$$payload.css.add",id$1("$$css"))))}let EA=oA||sA.length>0||eA.needs_props||eA.uses_props||eA.uses_rest_props||eA.uses_slots||eA.slot_names.size>0;const rA=function_declaration(id$1(eA.name),EA?[id$1("$$payload"),id$1("$$props")]:[id$1("$$payload")],CA);return AA.compatibility.componentApi===4?(QA.unshift(imports([["render","$$_render"]],"svelte/server")),QA.push(rA,stmt(assignment("=",member_id(`${eA.name}.render`),function_builder(null,[id$1("$$props"),id$1("$$opts")],block([return_builder(call("$$_render",id$1(eA.name),object$2([init("props",id$1("$$props")),init("context",member(id$1("$$opts"),"context",!1,!0))])))])))),export_default(id$1(eA.name)))):dev?QA.push(rA,stmt(assignment("=",member_id(`${eA.name}.render`),function_builder(null,[],block([throw_error$1("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")])))),export_default(id$1(eA.name))):QA.push(export_default(rA)),dev&&QA.unshift(stmt(assignment("=",member(id$1(eA.name),"$.FILENAME",!0),literal(filename)))),{type:"Program",sourceType:"module",body:QA}}function server_module(eA,AA){const tA={analysis:eA,options:AA,scope:eA.module.scope,scopes:eA.module.scopes,legacy_reactive_statements:new Map,private_derived:new Map},gA=walk(eA.module.ast,tA,global_visitors);return{type:"Program",sourceType:"module",body:[import_all("$","svelte/internal/server"),...gA.body]}}function get_states_and_calls(eA){let AA=0,tA=0;for(let gA=0;gA<eA.length;gA++){const iA=eA[gA];iA.type==="ExpressionTag"&&(iA.metadata.expression.has_call&&tA++,iA.metadata.expression.has_state&&AA++)}return{states:AA,calls:tA}}function build_template_literal(eA,AA,tA){const gA=[];let iA=quasi("");const IA=[iA],{states:BA,calls:sA}=get_states_and_calls(eA);let CA=sA>0,oA=BA>0,QA=sA>1;for(let rA=0;rA<eA.length;rA++){const lA=eA[rA];if(lA.type==="Text")iA.value.cooked+=lA.data;else if(lA.type==="ExpressionTag"&&lA.expression.type==="Literal")lA.expression.value!=null&&(iA.value.cooked+=lA.expression.value+"");else{if(QA){const uA=id$1(tA.scope.generate("stringified_text"));tA.init.push(const_builder(uA,create_derived(tA,thunk(logical("??",AA(lA.expression,tA),literal("")))))),gA.push(call("$.get",uA))}else{if(eA.length===1)return{value:AA(lA.expression,tA),has_state:oA,has_call:CA};gA.push(logical("??",AA(lA.expression,tA),literal("")))}iA=quasi("",rA+1===eA.length),IA.push(iA)}}for(const rA of IA)rA.value.raw=sanitize_template_string(rA.value.cooked);return{value:template(IA,gA),has_state:oA,has_call:CA}}function build_update(eA){const AA=eA.type==="ExpressionStatement"?eA.expression:block([eA]);return stmt(call("$.template_effect",thunk(AA)))}function build_render_statement(eA){return eA.length===1?build_update(eA[0]):stmt(call("$.template_effect",thunk(block(eA))))}function parse_directive_name(eA){const AA=eA.split(".");let tA=AA.shift(),gA=id$1(tA);for(;tA=AA.shift();){const iA=!regex_is_valid_identifier.test(tA);gA=member(gA,iA?literal(tA):id$1(tA),iA)}return gA}function build_update_assignment(eA,AA,tA,gA,iA){eA.init.push(var_builder(AA,tA)),eA.update.push(if_builder(binary("!==",id$1(AA),assignment("=",id$1(AA),gA)),block([iA])))}function build_bind_this(eA,AA,{state:tA,visit:gA}){const iA=[],IA=[],BA=[],sA={...tA.transform};walk(eA,null,{Identifier(rA,{path:lA}){if(BA.includes(rA.name))return;BA.push(rA.name);const uA=lA.at(-1);if(!is_reference(rA,uA))return;const cA=tA.scope.get(rA.name);if(cA){for(const[hA,dA]of tA.scopes)if(hA.type==="EachBlock"&&dA===cA.scope){iA.push(rA),IA.push(gA(rA)),sA[rA.name]&&(sA[rA.name]={...sA[rA.name],read:pA=>pA});break}}}});const CA={...tA,transform:sA},oA=gA(eA,CA),QA=gA(assignment("=",eA,id$1("$$value")),CA);let EA=oA;for(;EA.type==="MemberExpression";)EA.optional=!0,EA=EA.object;return call("$.bind_this",AA,arrow([id$1("$$value"),...iA],QA),arrow([...iA],oA),IA.length>0&&thunk(array(IA)))}function validate_binding(eA,AA,tA){const gA=object$1(AA.expression),iA=gA&&eA.scope.get(gA.name);if((iA==null?void 0:iA.kind)==="store_sub")return;const IA=locator(AA.start);eA.init.push(stmt(call("$.validate_binding",literal(eA.analysis.source.slice(AA.start,AA.end)),thunk(tA.object),thunk(tA.computed?tA.property:literal(tA.property.name)),IA&&literal(IA.line),IA&&literal(IA.column))))}function AnimateDirective(eA,AA){const tA=eA.expression===null?literal(null):thunk(AA.visit(eA.expression));AA.state.after_update.push(stmt(call("$.animation",AA.state.node,thunk(AA.visit(parse_directive_name(eA.name))),tA)))}const visit_function=(eA,AA)=>{const tA=eA.metadata;let gA={...AA.state,in_constructor:!1};if(eA.type==="FunctionExpression"){const iA=AA.path.at(-1);gA.in_constructor=iA.type==="MethodDefinition"&&iA.kind==="constructor"}if((tA==null?void 0:tA.hoisted)===!0){const iA=build_hoisted_params(eA,AA);return{...eA,params:iA,body:AA.visit(eA.body,gA)}}AA.next(gA)};function ArrowFunctionExpression(eA,AA){return visit_function(eA,AA)}function AssignmentExpression(eA,AA){const tA=visit_assignment_expression(eA,AA,build_assignment)??AA.next();return is_ignored(eA,"ownership_invalid_mutation")?call("$.skip_ownership_validation",thunk(tA)):tA}function build_assignment(eA,AA,tA,gA){if(gA.state.analysis.runes&&AA.type==="MemberExpression"&&AA.object.type==="ThisExpression"&&AA.property.type==="PrivateIdentifier"){const sA=gA.state.private_state.get(AA.property.name);if(sA!==void 0){let CA=!1,oA=gA.visit(build_assignment_value(eA,AA,tA));if(should_proxy(oA,gA.state.scope)&&(CA=!0,oA=sA.kind==="raw_state"?oA:build_proxy_reassignment(oA,member(this_instance,sA.id))),gA.state.in_constructor){if(CA)return assignment(eA,gA.visit(AA),oA)}else return call("$.set",AA,oA)}}let iA=AA;for(;iA.type==="MemberExpression";)iA=iA.object;if(iA.type!=="Identifier")return null;const IA=gA.state.scope.get(iA.name);if(!IA)return null;const BA=Object.hasOwn(gA.state.transform,iA.name)?gA.state.transform[iA.name]:null;if(iA===AA&&(BA!=null&&BA.assign)){let sA=gA.visit(build_assignment_value(eA,AA,tA));const CA=gA.path.map(QA=>QA.type);return!(CA.at(-1)==="BindDirective"&&CA.at(-2)==="RegularElement")&&IA.kind!=="prop"&&IA.kind!=="bindable_prop"&&gA.state.analysis.runes&&should_proxy(sA,gA.state.scope)&&(sA=IA.kind==="raw_state"?sA:build_proxy_reassignment(sA,iA)),BA.assign(iA,sA)}return BA!=null&&BA.mutate?BA.mutate(iA,assignment(eA,gA.visit(AA),gA.visit(tA))):null}function visit_event_attribute(eA,AA){let tA=!1,gA=eA.name.slice(2);is_capture_event(gA)&&(gA=gA.slice(0,-7),tA=!0);const iA=Array.isArray(eA.value)?eA.value[0]:eA.value;let IA=build_event_handler(iA.expression,iA.metadata.expression,AA);if(eA.metadata.delegated){let BA;if(AA.state.events.has(gA)||AA.state.events.add(gA),eA.metadata.delegated.hoisted){if(eA.metadata.delegated.function===iA.expression){const oA=AA.state.scope.root.unique("on_"+gA);AA.state.hoisted.push(var_builder(oA,IA)),IA=oA}const sA=eA.metadata.delegated.function.metadata.hoisted_params,CA=[IA,...sA];BA=array(CA)}else BA=IA;AA.state.init.push(stmt(assignment("=",member(AA.state.node,"__"+gA),BA)))}else{const BA=stmt(build_event(gA,AA.state.node,IA,tA,is_passive_event(gA)?!0:void 0)),sA=AA.path.at(-1).type;sA==="SvelteDocument"||sA==="SvelteWindow"||sA==="SvelteBody"?AA.state.init.push(BA):AA.state.after_update.push(BA)}}function build_event(eA,AA,tA,gA,iA){return call("$.event",literal(eA),AA,tA,gA&&true_instance,iA===void 0?void 0:literal(iA))}function build_event_handler(eA,AA,tA){var IA;if(eA===null)return function_builder(null,[id$1("$$arg")],block([stmt(call("$.bubble_event.call",this_instance,id$1("$$props"),id$1("$$arg")))]));let gA=tA.visit(eA);if(gA.type==="ArrowFunctionExpression"||gA.type==="FunctionExpression"||gA.type==="Identifier"&&((IA=tA.state.scope.get(gA.name))==null?void 0:IA.declaration_kind)!=="import")return gA;if(AA.has_call){const BA=id$1(tA.state.scope.generate("event_handler"));tA.state.init.push(var_builder(BA,call("$.derived",thunk(gA)))),gA=call("$.get",BA)}let iA=call(member(gA,"apply",!1,!0),this_instance,id$1("$$args"));if(dev){const BA=locator(eA.start),sA=eA.type==="CallExpression"&&eA.arguments.length===0&&eA.callee.type==="Identifier";iA=call("$.apply",thunk(gA),this_instance,id$1("$$args"),id$1(tA.state.analysis.name),BA&&array([literal(BA.line),literal(BA.column)]),has_side_effects(eA)&&true_instance,sA&&true_instance)}return function_builder(null,[rest(id$1("$$args"))],block([stmt(iA)]))}function has_side_effects(eA){return eA.type==="CallExpression"||eA.type==="NewExpression"||eA.type==="AssignmentExpression"||eA.type==="UpdateExpression"?!0:eA.type==="SequenceExpression"?eA.expressions.some(has_side_effects):!1}function Attribute(eA,AA){is_event_attribute(eA)&&visit_event_attribute(eA,AA)}function AwaitBlock(eA,AA){AA.state.template.push("<!>");const tA=thunk(AA.visit(eA.expression));let gA,iA;if(eA.then){const IA={...AA,state:{...AA.state,transform:{...AA.state.transform}}},BA=eA.value&&create_derived_block_argument(eA.value,IA),sA=[id$1("$$anchor")];BA&&sA.push(BA.id);const CA=(BA==null?void 0:BA.declarations)??[],oA=IA.visit(eA.then,IA.state);gA=arrow(sA,block([...CA,...oA.body]))}if(eA.catch){const IA={...AA,state:{...AA.state}},BA=eA.error&&create_derived_block_argument(eA.error,IA),sA=[id$1("$$anchor")];BA&&sA.push(BA.id);const CA=(BA==null?void 0:BA.declarations)??[],oA=IA.visit(eA.catch,IA.state);iA=arrow(sA,block([...CA,...oA.body]))}AA.state.init.push(stmt(call("$.await",AA.state.node,tA,eA.pending?arrow([id$1("$$anchor")],AA.visit(eA.pending)):literal(null),gA,iA)))}function BinaryExpression(eA,AA){if(dev){const tA=eA.operator;if(tA==="==="||tA==="!==")return call("$.strict_equals",AA.visit(eA.left),AA.visit(eA.right),tA==="!=="&&literal(!1));if(tA==="=="||tA==="!=")return call("$.equals",AA.visit(eA.left),AA.visit(eA.right),tA==="!="&&literal(!1))}AA.next()}function build_set_attributes(eA,AA,tA,gA,iA,IA,BA,sA){let CA=!1;const oA=[];for(const EA of eA)if(EA.type==="Attribute"){const{value:rA}=build_attribute_value(EA.value,AA);if(is_event_attribute(EA)&&(rA.type==="ArrowFunctionExpression"||rA.type==="FunctionExpression")){const lA=AA.state.scope.generate("event_handler");AA.state.init.push(var_builder(lA,rA)),oA.push(init(EA.name,id$1(lA)))}else oA.push(init(EA.name,rA));CA||(CA=EA.metadata.expression.has_state)}else{CA=!0;let rA=AA.visit(EA);if(EA.metadata.expression.has_call){const lA=id$1(sA.scope.generate("spread_with_call"));sA.init.push(const_builder(lA,create_derived(sA,thunk(rA)))),rA=call("$.get",lA)}oA.push(spread(rA))}const QA=call("$.set_attributes",gA,CA?iA:literal(null),object$2(oA),AA.state.analysis.css.hash!==""&&literal(AA.state.analysis.css.hash),IA,BA,is_ignored(tA,"hydration_attribute_changed")&&true_instance);if(CA){AA.state.init.push(let_builder(iA));const EA=stmt(assignment("=",iA,QA));return AA.state.update.push(EA),!0}return AA.state.init.push(stmt(QA)),!1}function build_style_directives(eA,AA,tA,gA){const iA=tA.state;for(const IA of eA){const{has_state:BA,has_call:sA}=IA.metadata.expression;let CA=IA.value===!0?build_getter$1({name:IA.name,type:"Identifier"},tA.state):build_attribute_value(IA.value,tA).value;if(sA){const QA=id$1(iA.scope.generate("style_directive"));iA.init.push(const_builder(QA,create_derived(iA,thunk(CA)))),CA=call("$.get",QA)}const oA=stmt(call("$.set_style",AA,literal(IA.name),CA,IA.modifiers.includes("important")?true_instance:void 0));!gA&&sA?iA.init.push(build_update(oA)):gA||BA||sA?iA.update.push(oA):iA.init.push(oA)}}function build_class_directives(eA,AA,tA,gA){const iA=tA.state;for(const IA of eA){const{has_state:BA,has_call:sA}=IA.metadata.expression;let CA=tA.visit(IA.expression);if(sA){const QA=id$1(iA.scope.generate("class_directive"));iA.init.push(const_builder(QA,create_derived(iA,thunk(CA)))),CA=call("$.get",QA)}const oA=stmt(call("$.toggle_class",AA,literal(IA.name),CA));!gA&&sA?iA.init.push(build_update(oA)):gA||BA||sA?iA.update.push(oA):iA.init.push(oA)}}function build_attribute_value(eA,AA){if(eA===!0)return{has_state:!1,has_call:!1,value:literal(!0)};if(!Array.isArray(eA)||eA.length===1){const tA=Array.isArray(eA)?eA[0]:eA;return tA.type==="Text"?{has_state:!1,has_call:!1,value:literal(tA.data)}:{has_state:tA.metadata.expression.has_state,has_call:tA.metadata.expression.has_call,value:AA.visit(tA.expression)}}return build_template_literal(eA,AA.visit,AA.state)}function get_attribute_name(eA,AA){return!eA.metadata.svg&&!eA.metadata.mathml?normalize_attribute(AA.name):AA.name}function BindDirective(eA,AA){var CA;const tA=eA.expression,gA=binding_properties[eA.name],iA=AA.path.at(-1);dev&&AA.state.analysis.runes&&tA.type==="MemberExpression"&&(eA.name!=="this"||AA.path.some(({type:oA})=>oA==="IfBlock"||oA==="EachBlock"||oA==="AwaitBlock"||oA==="KeyBlock"))&&!is_ignored(eA,"binding_property_non_reactive")&&validate_binding(AA.state,eA,AA.visit(tA));const IA=thunk(AA.visit(tA));let BA=unthunk(arrow([id$1("$$value")],AA.visit(assignment("=",tA,id$1("$$value")))));IA===BA&&(BA=void 0);let sA;if(gA!=null&&gA.event)sA=call("$.bind_property",literal(eA.name),literal(gA.event),AA.state.node,BA??IA,gA.bidirectional&&IA);else switch(eA.name){case"online":sA=call("$.bind_online",BA??IA);break;case"scrollX":case"scrollY":sA=call("$.bind_window_scroll",literal(eA.name==="scrollX"?"x":"y"),IA,BA);break;case"innerWidth":case"innerHeight":case"outerWidth":case"outerHeight":sA=call("$.bind_window_size",literal(eA.name),BA??IA);break;case"activeElement":sA=call("$.bind_active_element",BA??IA);break;case"muted":sA=call("$.bind_muted",AA.state.node,IA,BA);break;case"paused":sA=call("$.bind_paused",AA.state.node,IA,BA);break;case"volume":sA=call("$.bind_volume",AA.state.node,IA,BA);break;case"playbackRate":sA=call("$.bind_playback_rate",AA.state.node,IA,BA);break;case"currentTime":sA=call("$.bind_current_time",AA.state.node,IA,BA);break;case"buffered":sA=call("$.bind_buffered",AA.state.node,BA??IA);break;case"played":sA=call("$.bind_played",AA.state.node,BA??IA);break;case"seekable":sA=call("$.bind_seekable",AA.state.node,BA??IA);break;case"seeking":sA=call("$.bind_seeking",AA.state.node,BA??IA);break;case"ended":sA=call("$.bind_ended",AA.state.node,BA??IA);break;case"readyState":sA=call("$.bind_ready_state",AA.state.node,BA??IA);break;case"contentRect":case"contentBoxSize":case"borderBoxSize":case"devicePixelContentBoxSize":sA=call("$.bind_resize_observer",AA.state.node,literal(eA.name),BA??IA);break;case"clientWidth":case"clientHeight":case"offsetWidth":case"offsetHeight":sA=call("$.bind_element_size",AA.state.node,literal(eA.name),BA??IA);break;case"value":{(iA==null?void 0:iA.type)==="RegularElement"&&iA.name==="select"?sA=call("$.bind_select_value",AA.state.node,IA,BA):sA=call("$.bind_value",AA.state.node,IA,BA);break}case"files":sA=call("$.bind_files",AA.state.node,IA,BA);break;case"this":sA=build_bind_this(tA,AA.state.node,AA);break;case"textContent":case"innerHTML":case"innerText":sA=call("$.bind_content_editable",literal(eA.name),AA.state.node,IA,BA);break;case"checked":sA=call("$.bind_checked",AA.state.node,IA,BA);break;case"focused":sA=call("$.bind_focused",AA.state.node,BA??IA);break;case"group":{const oA=eA.metadata.parent_each_blocks.map(EA=>EA.metadata.keyed&&EA.index?call("$.get",EA.metadata.index):EA.metadata.index);let QA=IA;if((iA==null?void 0:iA.type)==="RegularElement"){const EA=(CA=iA.attributes.find(rA=>rA.type==="Attribute"&&rA.name==="value"&&!is_text_attribute(rA)&&rA.value!==!0))==null?void 0:CA.value;EA!==void 0&&(QA=thunk(block([stmt(build_attribute_value(EA,AA).value),return_builder(AA.visit(tA))])))}sA=call("$.bind_group",eA.metadata.binding_group_name,array(oA),AA.state.node,QA,BA??IA);break}default:throw new Error("unknown binding "+eA.name)}eA.name==="this"?AA.state.init.push(stmt(sA)):iA.type==="RegularElement"&&iA.attributes.find(QA=>QA.type==="UseDirective")?AA.state.init.push(stmt(call("$.effect",thunk(sA)))):AA.state.after_update.push(stmt(sA))}function BlockStatement(eA,AA){add_state_transformers(AA),AA.next()}function BreakStatement(eA,AA){if(AA.state.analysis.runes||!eA.label||eA.label.name!=="$")return;if(AA.path[1].type==="LabeledStatement"&&AA.path[1].label.name==="$")return return_builder()}function CallExpression(eA,AA){switch(get_rune(eA,AA.state.scope)){case"$host":return id$1("$$props.$$host");case"$effect.tracking":return call("$.effect_tracking");case"$state.snapshot":return call("$.snapshot",AA.visit(eA.arguments[0]),is_ignored(eA,"state_snapshot_uncloneable")&&true_instance);case"$effect.root":return call("$.effect_root",...eA.arguments.map(tA=>AA.visit(tA)));case"$inspect":case"$inspect().with":return transform_inspect_rune(eA,AA)}if(dev&&eA.callee.type==="MemberExpression"&&eA.callee.object.type==="Identifier"&&eA.callee.object.name==="console"&&AA.state.scope.get("console")===null&&eA.callee.property.type==="Identifier"&&["debug","dir","error","group","groupCollapsed","info","log","trace","warn"].includes(eA.callee.property.name))return call(eA.callee,spread(call("$.log_if_contains_state",literal(eA.callee.property.name),...eA.arguments.map(tA=>AA.visit(tA)))));AA.next()}function ClassBody(eA,AA){var sA,CA;if(!AA.state.analysis.runes){AA.next();return}const tA=new Map,gA=new Map,iA=[];for(const oA of eA.body)if(oA.type==="PropertyDefinition"&&(oA.key.type==="Identifier"||oA.key.type==="PrivateIdentifier"||oA.key.type==="Literal")){const QA=oA.key.type,EA=get_name(oA.key);if(!EA)continue;const rA=QA==="PrivateIdentifier";if(rA&&iA.push(EA),((sA=oA.value)==null?void 0:sA.type)==="CallExpression"){const lA=get_rune(oA.value,AA.state.scope);if(lA==="$state"||lA==="$state.raw"||lA==="$derived"||lA==="$derived.by"){const uA={kind:lA==="$state"?"state":lA==="$state.raw"?"raw_state":lA==="$derived.by"?"derived_by":"derived",id:rA?oA.key:null};rA?gA.set(EA,uA):tA.set(EA,uA)}}}for(const[oA,QA]of tA){let EA=oA;for(;iA.includes(EA);)EA="_"+EA;iA.push(EA),QA.id=private_id(EA)}const IA=[],BA={...AA.state,public_state:tA,private_state:gA};for(const oA of eA.body){if(oA.type==="PropertyDefinition"&&(oA.key.type==="Identifier"||oA.key.type==="PrivateIdentifier"||oA.key.type==="Literal")){const QA=get_name(oA.key);if(!QA)continue;const EA=oA.key.type==="PrivateIdentifier",rA=(EA?gA:tA).get(QA);if(((CA=oA.value)==null?void 0:CA.type)==="CallExpression"&&rA!==void 0){let lA=null;if(oA.value.arguments.length>0){const uA=AA.visit(oA.value.arguments[0],BA);lA=rA.kind==="state"?call("$.state",should_proxy(uA,AA.state.scope)?call("$.proxy",uA):uA):rA.kind==="raw_state"?call("$.state",uA):rA.kind==="derived_by"?call("$.derived",uA):call("$.derived",thunk(uA))}else lA=call("$.state");if(EA)IA.push(prop_def(rA.id,lA));else{const uA=member(this_instance,rA.id);if(IA.push(prop_def(rA.id,lA)),IA.push(method("get",oA.key,[],[return_builder(call("$.get",uA))])),rA.kind==="state"){const cA=id$1("value"),hA=member(this_instance,rA.id);IA.push(method("set",oA.key,[cA],[stmt(call("$.set",uA,build_proxy_reassignment(cA,hA)))]))}if(rA.kind==="raw_state"){const cA=id$1("value");IA.push(method("set",oA.key,[cA],[stmt(call("$.set",uA,cA))]))}dev&&(rA.kind==="derived"||rA.kind==="derived_by")&&IA.push(method("set",oA.key,[id$1("_")],[throw_error$1(`Cannot update a derived property ('${QA}')`)]))}continue}}IA.push(AA.visit(oA,BA))}return dev&&tA.size>0&&IA.push(method("method",id$1("$.ADD_OWNER"),[id$1("owner")],Array.from(tA.keys()).map(oA=>stmt(call("$.add_owner",call("$.get",member(this_instance,private_id(oA))),id$1("owner"),literal(!1),is_ignored(eA,"ownership_invalid_binding")&&true_instance))),!0)),{...eA,body:IA}}function get_name(eA){var AA;return eA.type==="Literal"?(AA=eA.value)==null?void 0:AA.toString().replace(regex_invalid_identifier_chars,"_"):eA.name}function Comment(eA,AA){AA.state.template.push(`<!--${eA.data}-->`)}function build_component(eA,AA,tA,gA=tA.state.node){var mA,MA;const iA=[],IA=[],BA={default:{...tA.state,scope:eA.metadata.scopes.default,transform:{...tA.state.transform}}},sA={},CA={},oA=[];let QA=null;const EA=[];let rA=!!determine_slot(eA),lA=!1;function uA(fA){const LA=iA.at(-1),_A=Array.isArray(LA),bA=_A?LA:[];bA.push(fA),_A||iA.push(bA)}if(rA)for(const fA of eA.attributes)fA.type==="LetDirective"&&IA.push(tA.visit(fA));for(const fA of eA.attributes)if(fA.type==="LetDirective")rA||IA.push(tA.visit(fA,BA.default));else if(fA.type==="OnDirective"){fA.expression||(tA.state.analysis.needs_props=!0);let LA=build_event_handler(fA.expression,fA.metadata.expression,tA);fA.modifiers.includes("once")&&(LA=call("$.once",LA)),(CA[mA=fA.name]||(CA[mA]=[])).push(LA)}else if(fA.type==="SpreadAttribute"){const LA=tA.visit(fA);if(fA.metadata.expression.has_state){let _A=LA;if(fA.metadata.expression.has_call){const bA=id$1(tA.state.scope.generate("spread_element"));tA.state.init.push(var_builder(bA,call("$.derived",thunk(_A)))),_A=call("$.get",bA)}iA.push(thunk(_A))}else iA.push(LA)}else if(fA.type==="Attribute"){if(fA.name.startsWith("--")){oA.push(init(fA.name,build_attribute_value(fA.value,tA).value));continue}fA.name==="slot"&&(rA=!0),fA.name==="children"&&(lA=!0);const{value:LA}=build_attribute_value(fA.value,tA);if(fA.metadata.expression.has_state){let _A=LA;if(get_attribute_chunks(fA.value).some(JA=>JA.type==="ExpressionTag"&&JA.expression.type!=="Identifier"&&JA.expression.type!=="MemberExpression")){const JA=id$1(tA.state.scope.generate(fA.name));tA.state.init.push(var_builder(JA,create_derived(tA.state,thunk(LA)))),_A=call("$.get",JA)}uA(get(fA.name,[return_builder(_A)]))}else uA(init(fA.name,LA))}else if(fA.type==="BindDirective"){const LA=tA.visit(fA.expression);if(dev&&LA.type==="MemberExpression"&&tA.state.analysis.runes&&!is_ignored(eA,"binding_property_non_reactive")&&validate_binding(tA.state,fA,LA),fA.name==="this")QA=fA.expression;else{dev&&EA.push(stmt(call(id$1("$.add_owner_effect"),thunk(LA),id$1(AA),is_ignored(eA,"ownership_invalid_binding")&&true_instance)));const _A=fA.expression.type==="Identifier"&&((MA=tA.state.scope.get(fA.expression.name))==null?void 0:MA.kind)==="store_sub";uA(_A?get(fA.name,[stmt(call("$.mark_store_binding")),return_builder(LA)]):get(fA.name,[return_builder(LA)]));const bA=assignment("=",fA.expression,id$1("$$value"));uA(set(fA.name,[stmt(tA.visit(bA))]))}}if(rA&&tA.state.init.push(...IA),Object.keys(CA).length>0){const fA=object$2(Object.keys(CA).map(LA=>init(LA,CA[LA].length>1?array(CA[LA]):CA[LA][0])));uA(init("$$events",fA))}const cA=[],hA=[];for(const fA of eA.fragment.nodes){if(fA.type==="SnippetBlock"){tA.visit(fA,{...tA.state,init:cA}),uA(prop("init",fA.expression,fA.expression)),hA.push(init(fA.expression.name==="children"?"default":fA.expression.name,true_instance));continue}let LA=determine_slot(fA)??"default";(sA[LA]||(sA[LA]=[])).push(fA)}for(const fA of Object.keys(sA)){const LA=tA.visit({...eA.fragment,nodes:sA[fA]},fA==="default"?rA?tA.state:BA.default:{...tA.state,scope:eA.metadata.scopes[fA],transform:{...tA.state.transform}});if(LA.body.length===0)continue;const _A=arrow([id$1("$$anchor"),id$1("$$slotProps")],block([...fA==="default"&&!rA?IA:[],...LA.body]));fA==="default"&&!lA?IA.length===0&&sA.default.every(bA=>bA.type!=="SvelteFragment"||!bA.attributes.some(JA=>JA.type==="LetDirective"))?(uA(init("children",dev?call("$.wrap_snippet",id$1(tA.state.analysis.name),_A):_A)),hA.push(init(fA,true_instance))):(hA.push(init(fA,_A)),uA(init("children",id$1("$.invalid_default_snippet")))):hA.push(init(fA,_A))}hA.length>0&&uA(init("$$slots",object$2(hA))),!tA.state.analysis.runes&&eA.attributes.some(fA=>fA.type==="BindDirective")&&uA(init("$$legacy",true_instance));const dA=iA.length===0||iA.length===1&&Array.isArray(iA[0])?object$2(iA[0]||[]):call("$.spread_props",...iA.map(fA=>Array.isArray(fA)?object$2(fA):fA));let pA=fA=>call(eA.type==="SvelteComponent"?AA:tA.visit(member_id(AA)),fA,dA);if(QA!==null){const fA=pA;pA=LA=>build_bind_this(QA,fA(LA),tA)}const wA=[...cA];if(eA.type==="SvelteComponent"){const fA=pA;pA=LA=>call("$.component",LA,thunk(tA.visit(eA.expression)),arrow([id$1("$$anchor"),id$1(AA)],block([...EA,stmt(fA(id$1("$$anchor")))])))}else wA.push(...EA);return Object.keys(oA).length>0?(tA.state.template.push(tA.state.metadata.namespace==="svg"?"<g><!></g>":'<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>'),wA.push(stmt(call("$.css_props",gA,thunk(object$2(oA)))),stmt(pA(member(gA,"lastChild"))),stmt(call("$.reset",gA)))):(tA.state.template.push("<!>"),wA.push(stmt(pA(gA)))),wA.length>1?block(wA):wA[0]}function Component(eA,AA){if(eA.metadata.dynamic){const gA=build_component(eA,"$$component",AA,id$1("$$anchor"));AA.state.init.push(stmt(call("$.component",AA.state.node,thunk(AA.visit(member_id(eA.name))),arrow([id$1("$$anchor"),id$1("$$component")],block([gA])))));return}const tA=build_component(eA,eA.name,AA);AA.state.init.push(tA)}function ConstTag(eA,AA){const tA=eA.declaration.declarations[0];if(tA.id.type==="Identifier")AA.state.init.push(const_builder(tA.id,create_derived(AA.state,thunk(AA.visit(tA.init))))),AA.state.transform[tA.id.name]={read:get_value},dev&&AA.state.init.push(stmt(call("$.get",tA.id)));else{const gA=extract_identifiers(tA.id),iA=id$1(AA.state.scope.generate("computed_const")),IA={...AA.state.transform};for(const CA of gA)delete IA[CA.name];const BA={...AA.state,transform:IA},sA=arrow([],block([const_builder(AA.visit(tA.id,BA),AA.visit(tA.init,BA)),return_builder(object$2(gA.map(CA=>prop("init",CA,CA))))]));AA.state.init.push(const_builder(iA,create_derived(AA.state,sA))),dev&&AA.state.init.push(stmt(call("$.get",iA)));for(const CA of gA)AA.state.transform[CA.name]={read:oA=>member(call("$.get",iA),oA)}}}function DebugTag(eA,AA){const tA=object$2(eA.identifiers.map(iA=>{const IA=call("$.snapshot",AA.visit(iA));return prop("init",iA,AA.state.analysis.runes?IA:call("$.untrack",thunk(IA)))})),gA=call("console.log",tA);AA.state.init.push(stmt(call("$.template_effect",thunk(block([stmt(gA),debugger_builder])))))}function EachBlock(eA,AA){var fA,LA;const tA=eA.metadata,gA=AA.visit(eA.expression,{...AA.state,scope:AA.state.scope.parent});tA.is_controlled||AA.state.template.push("<!>"),tA.array_name!==null&&AA.state.init.push(const_builder(tA.array_name,thunk(gA)));let iA=0;eA.metadata.keyed&&eA.index&&(iA|=EACH_INDEX_REACTIVE);const IA=((fA=eA.key)==null?void 0:fA.type)==="Identifier"&&eA.context.type==="Identifier"&&eA.context.name===eA.key.name;let BA;for(const _A of eA.metadata.expression.dependencies)if(_A.kind==="store_sub"){BA=!0;break}for(const _A of eA.metadata.expression.dependencies)if(!(_A.scope.function_depth>=AA.state.scope.function_depth)&&(!AA.state.analysis.runes||!IA||BA)){iA|=EACH_ITEM_REACTIVE;break}AA.state.analysis.runes&&!BA&&(iA|=EACH_ITEM_IMMUTABLE),eA.key&&eA.body.nodes.some(_A=>_A.type!=="RegularElement"&&_A.type!=="SvelteElement"?!1:_A.attributes.some(bA=>bA.type==="AnimateDirective"))&&(iA|=EACH_IS_ANIMATED),tA.is_controlled&&(iA|=EACH_IS_CONTROLLED);let sA="";if(eA.expression.type==="Identifier"||eA.expression.type==="MemberExpression"){const _A=object$1(eA.expression);if(_A){const bA=AA.state.scope.get(_A.name);(bA==null?void 0:bA.kind)==="store_sub"&&(sA=_A.name)}}const CA=collect_parent_each_blocks(AA).flatMap(_A=>{const bA=AA.visit(_A.expression),JA=build_transitive_dependencies(_A.metadata.expression.dependencies,AA);return[bA,...JA]});if(tA.array_name)CA.push(call(tA.array_name));else{CA.push(gA);const _A=build_transitive_dependencies(tA.expression.dependencies,AA);CA.push(..._A)}const oA={...AA.state,transform:{...AA.state.transform}},QA={...AA.state,transform:{...AA.state.transform}},EA=tA.contains_group_binding||!eA.index?tA.index:id$1(eA.index),rA=eA.context.type==="Identifier"?eA.context:id$1("$$item");let lA=tA.contains_group_binding,uA=!1;eA.index&&(oA.transform[eA.index]={read:_A=>(lA=!0,iA&EACH_INDEX_REACTIVE?get_value(_A):_A)},QA.transform[eA.index]={read:_A=>(uA=!0,_A)});const cA=[],hA=call("$.invalidate_inner_signals",thunk(sequence$1(CA))),dA=sA?call("$.invalidate_store",id$1("$$stores"),literal(sA)):void 0,pA=[];if(AA.state.analysis.runes||pA.push(hA),dA&&pA.push(dA),eA.context.type==="Identifier"){const _A=AA.state.scope.get(eA.context.name);oA.transform[eA.context.name]={read:bA=>_A.reassigned?member(tA.array_name?call(tA.array_name):gA,iA&EACH_INDEX_REACTIVE?get_value(EA):EA,!0):iA&EACH_ITEM_REACTIVE?get_value(bA):bA,assign:(bA,JA)=>{lA=!0;const RA=member(tA.array_name?call(tA.array_name):gA,iA&EACH_INDEX_REACTIVE?get_value(EA):EA,!0);return sequence$1([assignment("=",RA,JA),...pA])},mutate:(bA,JA)=>sequence$1([JA,...pA])},delete QA.transform[eA.context.name]}else{const _A=iA&EACH_ITEM_REACTIVE?call("$.get",rA):rA;for(const bA of extract_paths(eA.context)){const JA=bA.node.name,RA=bA.has_default_value,NA=thunk(AA.visit((LA=bA.expression)==null?void 0:LA.call(bA,_A),oA));cA.push(let_builder(bA.node,RA?call("$.derived_safe_equal",NA):NA));const FA=RA?get_value:call;oA.transform[JA]={read:FA,assign:(vA,xA)=>{const kA=bA.update_expression(_A);return sequence$1([assignment("=",kA,xA),...pA])},mutate:(vA,xA)=>sequence$1([xA,...pA])},dev&&cA.push(stmt(FA(id$1(JA)))),delete QA.transform[JA]}}const wA=AA.visit(eA.body,oA);let mA=id$1("$.index");if(eA.metadata.keyed){const _A=AA.visit(eA.key,QA);mA=arrow(uA?[eA.context,EA]:[eA.context],_A)}eA.index&&tA.contains_group_binding&&cA.push(let_builder(eA.index,EA)),dev&&eA.metadata.keyed&&AA.state.init.push(stmt(call("$.validate_each_keys",thunk(gA),mA)));const MA=[AA.state.node,literal(iA),tA.array_name?tA.array_name:thunk(gA),mA,arrow(lA?[id$1("$$anchor"),rA,EA]:[id$1("$$anchor"),rA],block(cA.concat(wA.body)))];eA.fallback&&MA.push(arrow([id$1("$$anchor")],AA.visit(eA.fallback))),AA.state.init.push(stmt(call("$.each",...MA)))}function collect_parent_each_blocks(eA){return eA.path.filter(AA=>AA.type==="EachBlock")}function build_transitive_dependencies(eA,AA){const tA=new Set;for(const gA of eA){const iA=collect_transitive_dependencies(gA);for(const IA of iA)tA.add(IA)}return[...tA].map(gA=>build_getter$1({...gA.node},AA.state))}function collect_transitive_dependencies(eA,AA=new Set){if(eA.kind!=="legacy_reactive")return[];for(const tA of eA.legacy_dependencies)if(!AA.has(tA)){AA.add(tA);for(const gA of collect_transitive_dependencies(tA,AA))AA.add(gA)}return[...AA]}function ExportNamedDeclaration(eA,AA){return AA.state.is_instance?eA.declaration?AA.visit(eA.declaration):empty:AA.next()}function ExpressionStatement(eA,AA){if(eA.expression.type==="CallExpression"){const tA=get_rune(eA.expression,AA.state.scope);if(tA==="$effect"||tA==="$effect.pre"){const gA=tA==="$effect"?"$.user_effect":"$.user_pre_effect",iA=AA.visit(eA.expression.arguments[0]),IA=call(gA,iA);return IA.callee.loc=eA.expression.callee.loc,stmt(IA)}}AA.next()}function process_children(eA,AA,tA,{visit:gA,state:iA}){const IA=iA.metadata.bound_contenteditable;let BA=AA,sA=0,CA=[];function oA(rA){return sA===0?BA(rA):call("$.sibling",BA(!1),(rA||sA!==1)&&literal(sA),rA&&true_instance)}function QA(rA,lA){const uA=oA(rA);let cA=uA;return cA.type!=="Identifier"&&(cA=id$1(iA.scope.generate(lA)),iA.init.push(var_builder(cA,uA))),BA=()=>cA,sA=1,cA}function EA(rA){if(rA.every(wA=>wA.type==="Text")){sA+=1,iA.template.push(rA.map(wA=>wA.raw).join(""));return}iA.template.push(" ");const{has_state:lA,has_call:uA,value:cA}=build_template_literal(rA,gA,iA),hA=rA.length===1,dA=QA(hA,"text"),pA=stmt(call("$.set_text",dA,cA));uA&&!IA?iA.init.push(build_update(pA)):lA&&!IA?iA.update.push(pA):iA.init.push(stmt(assignment("=",member(dA,"nodeValue"),cA)))}for(const rA of eA)if(rA.type==="Text"||rA.type==="ExpressionTag")CA.push(rA);else{CA.length>0&&(EA(CA),CA=[]);let lA=iA;if(is_static_element(rA))sA+=1;else if(rA.type==="EachBlock"&&eA.length===1&&tA)rA.metadata.is_controlled=!0;else{const uA=QA(!1,rA.type==="RegularElement"?rA.name:"node");lA={...iA,node:uA}}gA(rA,lA)}CA.length>0&&EA(CA),sA>1&&(sA-=1,iA.init.push(stmt(call("$.next",sA!==1&&literal(sA)))))}function is_static_element(eA){if(eA.type!=="RegularElement"||eA.fragment.metadata.dynamic)return!1;for(const AA of eA.attributes)if(AA.type!=="Attribute"||is_event_attribute(AA)||AA.value!==!0&&!is_text_attribute(AA)||AA.name==="autofocus"||AA.name==="muted"||eA.name==="option"&&AA.name==="value"||eA.name.includes("-"))return!1;return!0}function Fragment(eA,AA){const tA=AA.path.at(-1)??eA,gA=infer_namespace(AA.state.metadata.namespace,tA,eA.nodes),{hoisted:iA,trimmed:IA,is_standalone:BA,is_text_first:sA}=clean_nodes(tA,eA.nodes,AA.path,gA,AA.state,AA.state.preserve_whitespace,AA.state.options.preserveComments);if(iA.length===0&&IA.length===0)return block([]);const CA=IA.length===1&&IA[0].type==="RegularElement",oA=IA.length===1&&(IA[0].type==="SvelteFragment"||IA[0].type==="TitleElement"),QA=AA.state.scope.root.unique("root"),EA=[];let rA;const lA={...AA.state,before_init:[],init:[],update:[],after_update:[],template:[],locations:[],transform:{...AA.state.transform},metadata:{context:{template_needs_import_node:!1,template_contains_script_tag:!1},namespace:gA,bound_contenteditable:AA.state.metadata.bound_contenteditable}};for(const cA of iA)AA.visit(cA,lA);sA&&EA.push(stmt(call("$.next")));const uA=(cA,hA)=>{let dA=call(get_template_function(gA,lA),...hA);dev&&(dA=call("$.add_locations",dA,member(id$1(AA.state.analysis.name),"$.FILENAME",!0),build_locations(lA.locations))),AA.state.hoisted.push(var_builder(cA,dA))};if(CA){const cA=IA[0],hA=id$1(AA.state.scope.generate(cA.name));AA.visit(cA,{...lA,node:hA});const dA=[join_template(lA.template)];lA.metadata.context.template_needs_import_node&&dA.push(literal(TEMPLATE_USE_IMPORT_NODE)),uA(QA,dA),EA.push(var_builder(hA,call(QA)),...lA.before_init,...lA.init),rA=stmt(call("$.append",id$1("$$anchor"),hA))}else if(oA)AA.visit(IA[0],lA),EA.push(...lA.before_init,...lA.init);else if(IA.length===1&&IA[0].type==="Text"){const cA=id$1(AA.state.scope.generate("text"));EA.push(var_builder(cA,call("$.text",literal(IA[0].data))),...lA.before_init,...lA.init),rA=stmt(call("$.append",id$1("$$anchor"),cA))}else if(IA.length>0){const cA=id$1(AA.state.scope.generate("fragment"));if(IA.some(dA=>dA.type==="ExpressionTag")&&IA.every(dA=>dA.type==="Text"||dA.type==="ExpressionTag")){const dA=id$1(AA.state.scope.generate("text"));process_children(IA,()=>dA,!1,{...AA,state:lA}),EA.push(var_builder(dA,call("$.text")),...lA.before_init,...lA.init),rA=stmt(call("$.append",id$1("$$anchor"),dA))}else{if(BA)process_children(IA,()=>id$1("$$anchor"),!1,{...AA,state:lA});else{process_children(IA,wA=>call("$.first_child",cA,wA&&true_instance),!1,{...AA,state:lA});let pA=TEMPLATE_FRAGMENT;lA.metadata.context.template_needs_import_node&&(pA|=TEMPLATE_USE_IMPORT_NODE),lA.template.length===1&&lA.template[0]==="<!>"?EA.push(var_builder(cA,call("$.comment"))):(uA(QA,[join_template(lA.template),literal(pA)]),EA.push(var_builder(cA,call(QA)))),rA=stmt(call("$.append",id$1("$$anchor"),cA))}EA.push(...lA.before_init,...lA.init)}}else EA.push(...lA.before_init,...lA.init);return lA.update.length>0&&EA.push(build_render_statement(lA.update)),EA.push(...lA.after_update),rA!==void 0&&EA.push(rA),block(EA)}function join_template(eA){let AA=quasi("");const tA=template([AA],[]);for(const gA of eA)typeof gA=="string"?AA.value.cooked+=gA:(tA.expressions.push(gA),tA.quasis.push(AA=quasi("")));for(const gA of tA.quasis)gA.value.raw=sanitize_template_string(gA.value.cooked);return AA.tail=!0,tA}function get_template_function(eA,AA){const tA=AA.metadata.context.template_contains_script_tag;return eA==="svg"?tA?"$.svg_template_with_script":"$.ns_template":eA==="mathml"?"$.mathml_template":tA?"$.template_with_script":"$.template"}function build_locations(eA){return array(eA.map(AA=>{const tA=array([literal(AA[0]),literal(AA[1])]);return AA.length===3&&tA.elements.push(build_locations(AA[2])),tA}))}function FunctionDeclaration(eA,AA){var gA;const tA={...AA.state,in_constructor:!1};if(((gA=eA.metadata)==null?void 0:gA.hoisted)===!0){const iA=build_hoisted_params(eA,AA),IA=AA.visit(eA.body,tA);return AA.state.hoisted.push({...eA,params:iA,body:IA}),empty}AA.next(tA)}function FunctionExpression(eA,AA){return visit_function(eA,AA)}function HtmlTag(eA,AA){AA.state.template.push("<!>"),AA.state.init.push(stmt(call("$.html",AA.state.node,thunk(AA.visit(eA.expression)),literal(AA.state.metadata.namespace==="svg"),literal(AA.state.metadata.namespace==="mathml"),is_ignored(eA,"hydration_html_changed")&&true_instance)))}function Identifier(eA,AA){const tA=AA.path.at(-1);if(is_reference(eA,tA)){if(eA.name==="$$props")return id$1("$$sanitized_props");const gA=AA.state.scope.get(eA.name);if(AA.state.analysis.runes&&gA!==null&&eA!==gA.node&&gA.kind==="rest_prop"){const iA=AA.path.at(-2);if((tA==null?void 0:tA.type)==="MemberExpression"&&!tA.computed&&(iA==null?void 0:iA.type)!=="AssignmentExpression"&&(iA==null?void 0:iA.type)!=="UpdateExpression")return id$1("$$props")}return build_getter$1(eA,AA.state)}}function IfBlock(eA,AA){AA.state.template.push("<!>");const tA=AA.visit(eA.consequent),gA=[AA.state.node,thunk(AA.visit(eA.test)),arrow([id$1("$$anchor")],tA)];(eA.alternate||eA.elseif)&&gA.push(eA.alternate?arrow([id$1("$$anchor")],AA.visit(eA.alternate)):literal(null)),eA.elseif&&gA.push(literal(!0)),AA.state.init.push(stmt(call("$.if",...gA)))}function ImportDeclaration(eA,AA){if("hoisted"in AA.state)return AA.state.hoisted.push(eA),empty;AA.next()}function KeyBlock(eA,AA){AA.state.template.push("<!>");const tA=AA.visit(eA.expression),gA=AA.visit(eA.fragment);AA.state.init.push(stmt(call("$.key",AA.state.node,thunk(tA),arrow([id$1("$$anchor")],gA))))}function LabeledStatement(eA,AA){if(AA.state.analysis.runes||AA.path.length>1||eA.label.name!=="$"){AA.next();return}const tA=AA.state.analysis.reactive_statements.get(eA);if(!tA)return;let gA=AA.visit(eA.body);gA.type!=="BlockStatement"&&(gA=block([gA]));const iA=gA.body,IA=[];for(const BA of tA.dependencies){if(BA.kind==="normal"&&BA.declaration_kind!=="import")continue;const sA=BA.node.name;let CA=build_getter$1(id$1(sA),AA.state);(sA==="$$props"||sA==="$$restProps"||BA.kind==="bindable_prop")&&(CA=call("$.deep_read_state",CA)),IA.push(CA)}return AA.state.legacy_reactive_statements.set(eA,stmt(call("$.legacy_pre_effect",IA.length>0?thunk(sequence$1(IA)):thunk(block([])),thunk(block(iA))))),empty}function LetDirective(eA,AA){if(eA.expression&&eA.expression.type!=="Identifier"){const tA=AA.state.scope.generate(eA.name),gA=AA.state.scope.get_bindings(eA);for(const iA of gA)AA.state.transform[iA.node.name]={read:IA=>member(call("$.get",id$1(tA)),IA)};return const_builder(tA,call("$.derived",thunk(block([let_builder(eA.expression.type==="ObjectExpression"?object_pattern(eA.expression.properties):array_pattern(eA.expression.elements),member(id$1("$$slotProps"),eA.name)),return_builder(object$2(gA.map(iA=>init(iA.node.name,iA.node))))]))))}else{const tA=eA.expression===null?eA.name:eA.expression.name;return AA.state.transform[tA]={read:gA=>call("$.get",gA)},const_builder(tA,create_derived(AA.state,thunk(member(id$1("$$slotProps"),eA.name))))}}function MemberExpression(eA,AA){if(eA.property.type==="PrivateIdentifier"&&AA.state.private_state.get(eA.property.name))return AA.state.in_constructor?member(eA,"v"):call("$.get",eA);AA.next()}const modifiers=["stopPropagation","stopImmediatePropagation","preventDefault","self","trusted","once"];function OnDirective(eA,AA){eA.expression||(AA.state.analysis.needs_props=!0);let tA=build_event_handler(eA.expression,eA.metadata.expression,AA);for(const IA of modifiers)eA.modifiers.includes(IA)&&(tA=call("$."+IA,tA));const gA=eA.modifiers.includes("capture"),iA=eA.modifiers.includes("passive")||(eA.modifiers.includes("nonpassive")?!1:void 0);return build_event(eA.name,AA.state.node,tA,gA,iA)}function Program(eA,AA){if(!AA.state.analysis.runes){AA.state.transform.$$props={read:tA=>({...tA,name:"$$sanitized_props"})};for(const[tA,gA]of AA.state.scope.declarations)if(gA.declaration_kind==="import"&&gA.mutated){const{start:iA,end:IA}=AA.state.analysis.instance.ast,BA=gA.initial;if(BA.start>iA&&BA.end<IA){const CA=id$1("$$_import_"+tA);AA.state.transform[tA]={read:oA=>call(CA),mutate:(oA,QA)=>call(CA,QA)},AA.state.legacy_reactive_imports.push(var_builder(CA,call("$.reactive_import",thunk(id$1(tA)))))}}}for(const[tA,gA]of AA.state.scope.declarations){if(gA.kind==="store_sub"){let iA;const IA=()=>iA??(iA=AA.visit(id$1(tA.slice(1))));AA.state.transform[tA]={read:call,assign:(BA,sA)=>call("$.store_set",IA(),sA),mutate:(BA,sA)=>{const CA=call("$.untrack",BA);function oA(QA){return QA.type==="MemberExpression"?{...QA,object:oA(QA.object),property:QA.property}:CA}return call("$.store_mutate",IA(),assignment(sA.operator,oA(sA.left),sA.right),CA)},update:BA=>call(BA.prefix?"$.update_pre_store":"$.update_store",build_getter$1(id$1(tA.slice(1)),AA.state),call(BA.argument),BA.operator==="--"&&literal(-1))}}if(gA.kind==="prop"||gA.kind==="bindable_prop")if(is_prop_source(gA,AA.state))AA.state.transform[tA]={read:call,assign:(iA,IA)=>call(iA,IA),mutate:(iA,IA)=>gA.kind==="bindable_prop"?call(iA,IA,true_instance):IA,update:iA=>call(iA.prefix?"$.update_pre_prop":"$.update_prop",iA.argument,iA.operator==="--"&&literal(-1))};else if(gA.prop_alias){const iA=key$2(gA.prop_alias);AA.state.transform[tA]={read:IA=>member(id$1("$$props"),iA,iA.type==="Literal")}}else AA.state.transform[tA]={read:iA=>member(id$1("$$props"),iA)}}add_state_transformers(AA),AA.next()}function RegularElement(eA,AA){let tA=[-1,-1];if(dev){const fA=locator(eA.start);fA&&(tA[0]=fA.line,tA[1]=fA.column,AA.state.locations.push(tA))}if(eA.name==="noscript"){AA.state.template.push("<noscript></noscript>");return}const gA=is_custom_element_node(eA);(eA.name==="video"||gA)&&(AA.state.metadata.context.template_needs_import_node=!0),eA.name==="script"&&(AA.state.metadata.context.template_contains_script_tag=!0),AA.state.template.push(`<${eA.name}`);const iA=[],IA=[],BA=[],sA=[],CA=[],oA=new Map,QA=new Map;let EA=eA.metadata.has_spread,rA=!1;for(const fA of eA.attributes)switch(fA.type){case"AnimateDirective":sA.push(fA);break;case"Attribute":if(fA.name==="is"&&AA.state.metadata.namespace==="html"){const{value:LA}=build_attribute_value(fA.value,AA);if(LA.type==="Literal"&&typeof LA.value=="string"){AA.state.template.push(` is="${escape_html(LA.value,!0)}"`);continue}}iA.push(fA),oA.set(fA.name,fA);break;case"BindDirective":QA.set(fA.name,fA),sA.push(fA);break;case"ClassDirective":IA.push(fA);break;case"LetDirective":CA.push(AA.visit(fA));break;case"OnDirective":sA.push(fA);break;case"SpreadAttribute":iA.push(fA);break;case"StyleDirective":BA.push(fA);break;case"TransitionDirective":sA.push(fA);break;case"UseDirective":rA=!0,sA.push(fA);break}const lA={...AA.state,init:[],after_update:[]};for(const fA of sA)if(fA.type==="OnDirective"){const LA=AA.visit(fA);rA?lA.init.push(stmt(call("$.effect",thunk(LA)))):lA.after_update.push(stmt(LA))}else AA.visit(fA,lA);if(eA.name==="input"&&(EA||QA.has("value")||QA.has("checked")||QA.has("group")||iA.some(fA=>fA.type==="Attribute"&&(fA.name==="value"||fA.name==="checked")&&!is_text_attribute(fA)))&&AA.state.init.push(stmt(call("$.remove_input_defaults",AA.state.node))),eA.name==="textarea"){const fA=oA.get("value")??oA.get("checked"),LA=fA&&!is_text_attribute(fA);(EA||QA.has("value")||LA)&&AA.state.init.push(stmt(call("$.remove_textarea_child",AA.state.node)))}eA.name==="select"&&QA.has("value")&&setup_select_synchronization(QA.get("value"),AA),AA.state.init.push(...CA);const uA=AA.state.node;let cA=EA;if(EA){const fA=id$1(AA.state.scope.generate("attributes"));build_set_attributes(iA,AA,eA,uA,fA,(eA.metadata.svg||eA.metadata.mathml||is_custom_element_node(eA))&&true_instance,eA.name.includes("-")&&true_instance,AA.state),eA.name==="select"&&!QA.has("value")&&(AA.state.init.push(stmt(call("$.init_select",uA,thunk(member(fA,"value"))))),AA.state.update.push(if_builder(binary("in",literal("value"),fA),block([stmt(call("$.select_option",uA,member(fA,"value")))]))))}else{const fA=eA.name==="option"||eA.name==="select"||QA.has("group")||QA.has("checked");for(const LA of iA){if(is_event_attribute(LA)){visit_event_attribute(LA,AA);continue}if(fA&&LA.name==="value"){build_element_special_value_attribute(eA.name,uA,LA,AA);continue}if(!gA&&LA.name!=="autofocus"&&LA.name!=="muted"&&(LA.value===!0||is_text_attribute(LA))){const bA=get_attribute_name(eA,LA),JA=is_text_attribute(LA)?LA.value[0].data:!0;(bA!=="class"||JA)&&AA.state.template.push(` ${LA.name}${is_boolean_attribute(bA)&&JA===!0?"":`="${JA===!0?"":escape_html(JA,!0)}"`}`);continue}(gA?build_custom_element_attribute_update_assignment(uA,LA,AA):build_element_attribute_update_assignment(eA,uA,LA,AA))&&(cA=!0)}}build_class_directives(IA,uA,AA,cA),build_style_directives(BA,uA,AA,cA),eA.name==="img"&&(EA||oA.has("loading"))&&AA.state.after_update.push(stmt(call("$.handle_lazy_img",uA))),is_load_error_element(eA.name)&&(EA||rA||oA.has("onload")||oA.has("onerror"))&&AA.state.after_update.push(stmt(call("$.replay_events",uA))),AA.state.template.push(">");const hA={...AA.state.metadata,namespace:determine_namespace_for_children(eA,AA.state.metadata.namespace)};if(QA.has("innerHTML")||QA.has("innerText")||QA.has("textContent")){const fA=oA.get("contenteditable");fA&&(fA.value===!0||is_text_attribute(fA)&&fA.value[0].data==="true")&&(hA.bound_contenteditable=!0)}const dA={...AA.state,metadata:hA,locations:[],scope:AA.state.scopes.get(eA.fragment),preserve_whitespace:AA.state.preserve_whitespace||eA.name==="pre"||eA.name==="textarea"},{hoisted:pA,trimmed:wA}=clean_nodes(eA,eA.fragment.nodes,AA.path,dA.metadata.namespace,dA,eA.name==="script"||dA.preserve_whitespace,dA.options.preserveComments),mA={...dA,init:[],update:[],after_update:[]};for(const fA of pA)AA.visit(fA,mA);const MA=wA.every(fA=>fA.type==="Text"||fA.type==="ExpressionTag")&&wA.some(fA=>fA.type==="ExpressionTag")&&get_states_and_calls(wA);if(MA&&MA.states===0)mA.init.push(stmt(assignment("=",member(AA.state.node,"textContent"),build_template_literal(wA,AA.visit,mA).value)));else{let fA=AA.state.node,LA=wA.some(_A=>_A.type!=="Text");eA.name==="template"&&(LA=!0,mA.init.push(stmt(call("$.hydrate_template",fA))),fA=member(fA,"content")),process_children(wA,_A=>call("$.child",fA,_A&&true_instance),!0,{...AA,state:mA}),LA&&mA.init.push(stmt(call("$.reset",AA.state.node)))}if(eA.fragment.nodes.some(fA=>fA.type==="SnippetBlock")?AA.state.init.push(block([...mA.init,...lA.init,mA.update.length>0?build_render_statement(mA.update):empty,...mA.after_update,...lA.after_update])):eA.fragment.metadata.dynamic?(AA.state.init.push(...mA.init,...lA.init),AA.state.update.push(...mA.update),AA.state.after_update.push(...mA.after_update,...lA.after_update)):(AA.state.init.push(...lA.init),AA.state.after_update.push(...lA.after_update)),oA.has("dir")){const fA=member(uA,"dir");AA.state.update.push(stmt(assignment("=",fA,fA)))}dA.locations.length>0&&tA.push(dA.locations),is_void(eA.name)||AA.state.template.push(`</${eA.name}>`)}function setup_select_synchronization(eA,AA){if(AA.state.analysis.runes)return;let tA=eA.expression;for(;tA.type==="MemberExpression";)tA=tA.object;const gA=[];for(const[IA,BA]of AA.state.scope.references)BA.length>0&&IA!==tA.name&&gA.push(IA);const iA=call("$.invalidate_inner_signals",thunk(block(gA.map(IA=>{const BA=build_getter$1(id$1(IA),AA.state);return stmt(BA)}))));AA.state.init.push(stmt(call("$.template_effect",thunk(block([stmt(AA.visit(eA.expression)),stmt(iA)])))))}function build_element_attribute_update_assignment(eA,AA,tA,gA){const iA=gA.state,IA=get_attribute_name(eA,tA),BA=gA.state.metadata.namespace==="svg"||eA.name==="svg",sA=gA.state.metadata.namespace==="mathml";let{has_call:CA,value:oA}=build_attribute_value(tA.value,gA);if(IA==="autofocus")return iA.init.push(stmt(call("$.autofocus",AA,oA))),!1;if(IA==="muted")return iA.init.push(stmt(assignment("=",member(AA,id$1("muted")),oA))),!1;let QA;if(IA==="class"){if(tA.metadata.expression.has_state&&CA){const rA=id$1(iA.scope.generate("class_derived"));iA.init.push(const_builder(rA,create_derived(iA,thunk(oA)))),oA=call("$.get",rA),CA=!1}QA=stmt(call(BA?"$.set_svg_class":sA?"$.set_mathml_class":"$.set_class",AA,oA))}else if(IA==="value")QA=stmt(call("$.set_value",AA,oA));else if(IA==="checked")QA=stmt(call("$.set_checked",AA,oA));else if(is_dom_property(IA))QA=stmt(assignment("=",member(AA,IA),oA));else{if(IA==="style"&&tA.metadata.expression.has_state&&CA){const lA=id$1(iA.scope.generate("style_derived"));iA.init.push(const_builder(lA,create_derived(iA,thunk(oA)))),oA=call("$.get",lA),CA=!1}const rA=IA.startsWith("xlink")?"$.set_xlink_attribute":"$.set_attribute";QA=stmt(call(rA,AA,literal(IA),oA,is_ignored(eA,"hydration_attribute_changed")&&true_instance))}const EA=tA.value===!0?!1:is_inlinable_expression(Array.isArray(tA.value)?tA.value:[tA.value],gA.state);return tA.metadata.expression.has_state?(CA?iA.init.push(build_update(QA)):iA.update.push(QA),!0):(EA?gA.state.template.push(` ${IA}="`,oA,'"'):iA.init.push(QA),!1)}function is_inlinable_expression(eA,AA){var gA;let tA=!1;for(let iA of eA)if(iA.type==="ExpressionTag"){if(iA.expression.type==="Identifier"){const IA=(gA=AA.scope.owner(iA.expression.name))==null?void 0:gA.declarations.get(iA.expression.name);if(!can_inline_variable(IA))return!1}else return!1;tA=!0}return tA}function build_custom_element_attribute_update_assignment(eA,AA,tA){const gA=tA.state,iA=AA.name;let{has_call:IA,value:BA}=build_attribute_value(AA.value,tA);const sA=stmt(call("$.set_custom_element_data",eA,literal(iA),BA));return AA.metadata.expression.has_state?(IA?gA.init.push(build_update(sA)):gA.update.push(sA),!0):(gA.init.push(sA),!1)}function build_element_special_value_attribute(eA,AA,tA,gA){const iA=gA.state,{value:IA}=build_attribute_value(tA.value,gA),BA=assignment("=",member(AA,"value"),conditional(binary("==",literal(null),assignment("=",member(AA,"__value"),IA)),literal(""),IA)),sA=eA==="select"&&tA.value!==!0&&!is_text_attribute(tA),CA=stmt(sA?sequence$1([BA,call("$.select_option",AA,IA)]):BA);if(sA&&iA.init.push(stmt(call("$.init_select",AA,thunk(IA)))),tA.metadata.expression.has_state){const oA=iA.scope.generate(`${AA.name}_value`);return build_update_assignment(iA,oA,eA==="option"?object$2([]):void 0,IA,CA),!0}else return iA.init.push(CA),!1}function RenderTag(eA,AA){AA.state.template.push("<!>");const tA=unwrap_optional(eA.expression).callee,gA=unwrap_optional(eA.expression).arguments;let iA=[];for(let BA=0;BA<gA.length;BA++){const sA=gA[BA],CA=AA.visit(sA);if(eA.metadata.args_with_call_expression.has(BA)){const oA=id$1(AA.state.scope.generate("render_arg"));AA.state.init.push(var_builder(oA,call("$.derived_safe_equal",thunk(CA)))),iA.push(thunk(call("$.get",oA)))}else iA.push(thunk(CA))}let IA=AA.visit(tA);eA.metadata.dynamic?(eA.expression.type==="ChainExpression"&&(IA=logical("??",IA,id$1("$.noop"))),AA.state.init.push(stmt(call("$.snippet",AA.state.node,thunk(IA),...iA)))):AA.state.init.push(stmt((eA.expression.type==="CallExpression"?call:maybe_call)(IA,AA.state.node,...iA)))}function SlotElement(eA,AA){AA.state.template.push("<!>");const tA=[],gA=[],iA=[];let IA=literal("default");for(const oA of eA.attributes)if(oA.type==="SpreadAttribute")gA.push(thunk(AA.visit(oA)));else if(oA.type==="Attribute"){const{value:QA}=build_attribute_value(oA.value,AA);oA.name==="name"?IA=QA:oA.name!=="slot"&&(oA.metadata.expression.has_state?tA.push(get(oA.name,[return_builder(QA)])):tA.push(init(oA.name,QA)))}else oA.type==="LetDirective"&&iA.push(AA.visit(oA));AA.state.init.push(...iA);const BA=gA.length===0?object$2(tA):call("$.spread_props",object$2(tA),...gA),sA=eA.fragment.nodes.length===0?literal(null):arrow([id$1("$$anchor")],AA.visit(eA.fragment)),CA=call("$.slot",AA.state.node,id$1("$$props"),IA,BA,sA);AA.state.init.push(stmt(CA))}function SnippetBlock(eA,AA){var oA;const tA=[id$1("$$anchor")];let gA;const iA=[],IA={...AA.state.transform},BA={...AA.state,transform:IA};for(let QA=0;QA<eA.parameters.length;QA++){const EA=eA.parameters[QA];if(!EA)continue;if(EA.type==="Identifier"){tA.push({type:"AssignmentPattern",left:EA,right:id$1("$.noop")}),IA[EA.name]={read:call};continue}let rA=`$$arg${QA}`;tA.push(id$1(rA));const lA=extract_paths(EA);for(const uA of lA){const cA=uA.node.name,hA=uA.has_default_value,dA=thunk(AA.visit((oA=uA.expression)==null?void 0:oA.call(uA,maybe_call(id$1(rA)))));iA.push(let_builder(uA.node,hA?call("$.derived_safe_equal",dA):dA)),IA[cA]={read:hA?get_value:call},dev&&iA.push(stmt(IA[cA].read(id$1(cA))))}}gA=block([...iA,...AA.visit(eA.body,BA).body]);let sA=arrow(tA,gA);dev&&(sA=call("$.wrap_snippet",id$1(AA.state.analysis.name),sA));const CA=const_builder(eA.expression,sA);AA.path.length===1&&AA.path[0].type==="Fragment"?AA.state.analysis.top_level_snippets.push(CA):AA.state.init.push(CA)}function SpreadAttribute(eA,AA){return AA.visit(eA.expression)}function visit_special_element(eA,AA,tA){const gA={...tA.state,node:id$1(AA)};for(const iA of eA.attributes)iA.type==="OnDirective"?tA.state.init.push(stmt(tA.visit(iA,gA))):tA.visit(iA,gA)}function SvelteBody(eA,AA){visit_special_element(eA,"$.document.body",AA)}function SvelteComponent(eA,AA){const tA=build_component(eA,"$$component",AA);AA.state.init.push(tA)}function SvelteDocument(eA,AA){visit_special_element(eA,"$.document",AA)}function SvelteElement(eA,AA){AA.state.template.push("<!>");const tA=[];let gA;const iA=[],IA=[],BA=[],sA=id$1(AA.state.scope.generate("$$element")),CA={...AA,state:{...AA.state,node:sA,before_init:[],init:[],update:[],after_update:[]}};for(const lA of eA.attributes)if(lA.type==="Attribute")lA.name==="xmlns"&&!is_text_attribute(lA)&&(gA=lA.value),tA.push(lA);else if(lA.type==="SpreadAttribute")tA.push(lA);else if(lA.type==="ClassDirective")iA.push(lA);else if(lA.type==="StyleDirective")IA.push(lA);else if(lA.type==="LetDirective")BA.push(AA.visit(lA));else if(lA.type==="OnDirective"){const uA=AA.visit(lA,CA.state);CA.state.after_update.push(stmt(uA))}else AA.visit(lA,CA.state);AA.state.init.push(...BA);let oA=!1;if(tA.length===0)AA.state.analysis.css.hash&&CA.state.init.push(stmt(call("$.set_class",sA,literal(AA.state.analysis.css.hash))));else{const lA=id$1(AA.state.scope.generate("attributes"));oA=build_set_attributes(tA,CA,eA,sA,lA,binary("===",member(sA,"namespaceURI"),id$1("$.NAMESPACE_SVG")),call(member(member(sA,"nodeName"),"includes"),literal("-")),AA.state)}build_class_directives(iA,sA,CA,oA),build_style_directives(IA,sA,CA,oA);const QA=thunk(AA.visit(eA.tag));dev&&(eA.fragment.nodes.length>0&&AA.state.init.push(stmt(call("$.validate_void_dynamic_element",QA))),AA.state.init.push(stmt(call("$.validate_dynamic_element_tag",QA))));const EA=CA.state.init;CA.state.update.length>0&&EA.push(build_render_statement(CA.state.update)),EA.push(...CA.state.after_update),EA.push(...AA.visit(eA.fragment,{...AA.state,metadata:{...AA.state.metadata,namespace:determine_namespace_for_children(eA,AA.state.metadata.namespace)}}).body);const rA=dev&&locator(eA.start);AA.state.init.push(stmt(call("$.element",AA.state.node,QA,eA.metadata.svg||eA.metadata.mathml?true_instance:false_instance,EA.length>0&&arrow([sA,id$1("$$anchor")],block(EA)),gA&&thunk(build_attribute_value(gA,AA).value),rA&&array([literal(rA.line),literal(rA.column)]))))}function SvelteFragment(eA,AA){for(const tA of eA.attributes)tA.type==="LetDirective"&&AA.state.init.push(AA.visit(tA));AA.state.init.push(...AA.visit(eA.fragment).body)}function SvelteHead(eA,AA){AA.state.init.push(stmt(call("$.head",arrow([id$1("$$anchor")],AA.visit(eA.fragment)))))}function SvelteSelf(eA,AA){const tA=build_component(eA,AA.state.analysis.name,AA);AA.state.init.push(tA)}function SvelteWindow(eA,AA){visit_special_element(eA,"$.window",AA)}function TitleElement(eA,AA){const{has_state:tA,value:gA}=build_template_literal(eA.fragment.nodes,AA.visit,AA.state),iA=stmt(assignment("=",id$1("$.document.title"),gA));tA?AA.state.update.push(iA):AA.state.init.push(iA)}function TransitionDirective(eA,AA){let tA=eA.modifiers.includes("global")?TRANSITION_GLOBAL:0;eA.intro&&(tA|=TRANSITION_IN),eA.outro&&(tA|=TRANSITION_OUT);const gA=[literal(tA),AA.state.node,thunk(AA.visit(parse_directive_name(eA.name)))];eA.expression&&gA.push(thunk(AA.visit(eA.expression))),AA.state.after_update.push(stmt(call("$.transition",...gA)))}function UpdateExpression(eA,AA){var CA;const tA=eA.argument;if(tA.type==="MemberExpression"&&tA.object.type==="ThisExpression"&&tA.property.type==="PrivateIdentifier"&&AA.state.private_state.has(tA.property.name)){let oA="$.update";eA.prefix&&(oA+="_pre");const QA=[tA];return eA.operator==="--"&&QA.push(literal(-1)),call(oA,...QA)}if(tA.type!=="Identifier"&&tA.type!=="MemberExpression")throw new Error("An impossible state was reached");const gA=object$1(tA);if(gA===null)return AA.next();if(gA===tA){const oA=AA.state.transform,QA=(CA=oA[gA.name])==null?void 0:CA.update;if(QA&&Object.hasOwn(oA,gA.name))return QA(eA)}const iA=AA.visit(assignment(eA.operator==="++"?"+=":"-=",tA,literal(1))),BA=AA.path.at(-1).type==="ExpressionStatement",sA=eA.prefix||BA?iA:binary(eA.operator==="++"?"-":"+",iA,literal(1));return is_ignored(eA,"ownership_invalid_mutation")?call("$.skip_ownership_validation",thunk(sA)):sA}function UseDirective(eA,AA){const tA=[id$1("$$node")];eA.expression&&tA.push(id$1("$$action_arg"));const gA=[AA.state.node,arrow(tA,call(AA.visit(parse_directive_name(eA.name)),...tA))];eA.expression&&gA.push(thunk(AA.visit(eA.expression))),AA.state.init.push(stmt(call("$.action",...gA))),AA.next()}function VariableDeclaration(eA,AA){var gA;const tA=[];if(AA.state.analysis.runes)for(const iA of eA.declarations){const IA=iA.init,BA=get_rune(IA,AA.state.scope);if(!BA||BA==="$effect.tracking"||BA==="$effect.root"||BA==="$inspect"||BA==="$state.snapshot"||BA==="$host"){if(IA!=null&&is_hoisted_function(IA)){AA.state.hoisted.push(const_builder(iA.id,AA.visit(IA)));continue}tA.push(AA.visit(iA));continue}if(BA==="$props"){const oA=["$$slots","$$events","$$legacy"];if(AA.state.analysis.custom_element&&oA.push("$$host"),iA.id.type==="Identifier"){const QA=[id$1("$$props"),array(oA.map(EA=>literal(EA)))];dev&&QA.push(literal(iA.id.name)),tA.push(declarator(iA.id,call("$.rest_props",...QA)))}else{equal(iA.id.type,"ObjectPattern");for(const QA of iA.id.properties)if(QA.type==="Property"){const EA=QA.key,rA=EA.type==="Identifier"?EA.name:EA.value;oA.push(rA);let lA=QA.value.type==="AssignmentPattern"?QA.value.left:QA.value;equal(lA.type,"Identifier");const uA=AA.state.scope.get(lA.name);let cA=uA.initial&&AA.visit(uA.initial);cA&&uA.kind==="bindable_prop"&&should_proxy(cA,AA.state.scope)&&(cA=call("$.proxy",cA)),is_prop_source(uA,AA.state)&&tA.push(declarator(lA,get_prop_source(uA,AA.state,rA,cA)))}else{const EA=[id$1("$$props"),array(oA.map(rA=>literal(rA)))];dev&&EA.push(literal(QA.argument.name)),tA.push(declarator(QA.argument,call("$.rest_props",...EA)))}}continue}const sA=IA.arguments,CA=sA.length===0?id$1("undefined"):AA.visit(sA[0]);if(BA==="$state"||BA==="$state.raw"){const oA=(QA,EA)=>{const rA=AA.state.scope.get(QA.name);return BA==="$state"&&should_proxy(EA,AA.state.scope)&&(EA=call("$.proxy",EA)),is_state_source(rA,AA.state.analysis)&&(EA=call("$.state",EA)),EA};if(iA.id.type==="Identifier")tA.push(declarator(iA.id,oA(iA.id,CA)));else{const QA=AA.state.scope.generate("tmp"),EA=extract_paths(iA.id);tA.push(declarator(id$1(QA),CA),...EA.map(rA=>{var cA;const lA=(cA=rA.expression)==null?void 0:cA.call(rA,id$1(QA)),uA=AA.state.scope.get(rA.node.name);return declarator(rA.node,(uA==null?void 0:uA.kind)==="state"||(uA==null?void 0:uA.kind)==="raw_state"?oA(uA.node,lA):lA)}))}continue}if(BA==="$derived"||BA==="$derived.by"){if(iA.id.type==="Identifier")tA.push(declarator(iA.id,call("$.derived",BA==="$derived.by"?CA:thunk(CA))));else{const oA=extract_paths(iA.id),QA=iA.init;let EA,rA=CA;BA==="$derived"&&QA.arguments[0].type==="Identifier"?EA=QA.arguments[0]:(EA=id$1(AA.state.scope.generate("$$d")),rA=call("$.get",EA),tA.push(declarator(EA,call("$.derived",BA==="$derived.by"?CA:thunk(CA)))));for(let lA=0;lA<oA.length;lA++){const uA=oA[lA];tA.push(declarator(uA.node,call("$.derived",thunk(uA.expression(rA)))))}}continue}}else for(const iA of eA.declarations){const IA=AA.state.scope.get_bindings(iA),BA=IA.some(CA=>CA.kind==="state"),sA=IA.some(CA=>CA.kind==="bindable_prop");if(!BA&&!sA){const CA=iA.init;if(CA!=null&&is_hoisted_function(CA)){AA.state.hoisted.push(const_builder(iA.id,AA.visit(CA)));continue}tA.push(AA.visit(iA));continue}if(sA){if(iA.id.type!=="Identifier"){const oA=AA.state.scope.generate("tmp"),QA=extract_paths(iA.id);tA.push(declarator(id$1(oA),AA.visit(iA.init)));for(const EA of QA){const rA=EA.node.name,lA=AA.state.scope.get(rA),uA=(gA=EA.expression)==null?void 0:gA.call(EA,id$1(oA));tA.push(declarator(EA.node,lA.kind==="bindable_prop"?get_prop_source(lA,AA.state,lA.prop_alias??rA,uA):uA))}continue}const CA=AA.state.scope.get(iA.id.name);tA.push(declarator(iA.id,get_prop_source(CA,AA.state,CA.prop_alias??iA.id.name,iA.init&&AA.visit(iA.init))));continue}tA.push(...create_state_declarators(iA,AA.state,iA.init&&AA.visit(iA.init)))}return tA.length===0?empty:{...eA,declarations:tA}}function create_state_declarators(eA,{scope:AA,analysis:tA},gA){if(eA.id.type==="Identifier")return[declarator(eA.id,call("$.mutable_state",gA,tA.immutable?true_instance:void 0))];const iA=AA.generate("tmp"),IA=extract_paths(eA.id);return[declarator(id$1(iA),gA),...IA.map(BA=>{var oA;const sA=(oA=BA.expression)==null?void 0:oA.call(BA,id$1(iA)),CA=AA.get(BA.node.name);return declarator(BA.node,(CA==null?void 0:CA.kind)==="state"?call("$.mutable_state",sA,tA.immutable?true_instance:void 0):sA)})]}const visitors={_:function eA(AA,{next:tA,state:gA}){const iA=gA.scopes.get(AA);if(iA&&iA!==gA.scope){const IA={...gA.transform};for(const[BA,sA]of iA.declarations)(sA.kind==="normal"||sA.kind==="state"&&!is_state_source(sA,gA.analysis))&&delete IA[BA];tA({...gA,transform:IA,scope:iA})}else tA()},AnimateDirective,ArrowFunctionExpression,AssignmentExpression,Attribute,AwaitBlock,BinaryExpression,BindDirective,BlockStatement,BreakStatement,CallExpression,ClassBody,Comment,Component,ConstTag,DebugTag,EachBlock,ExportNamedDeclaration,ExpressionStatement,Fragment,FunctionDeclaration,FunctionExpression,HtmlTag,Identifier,IfBlock,ImportDeclaration,KeyBlock,LabeledStatement,LetDirective,MemberExpression,OnDirective,Program,RegularElement,RenderTag,SlotElement,SnippetBlock,SpreadAttribute,SvelteBody,SvelteComponent,SvelteDocument,SvelteElement,SvelteFragment,SvelteHead,SvelteSelf,SvelteWindow,TitleElement,TransitionDirective,UpdateExpression,UseDirective,VariableDeclaration};function client_component(eA,AA){var wA;const tA={analysis:eA,options:AA,scope:eA.module.scope,scopes:eA.module.scopes,is_instance:!1,hoisted:[import_all("$","svelte/internal/client")],node:null,legacy_reactive_imports:[],legacy_reactive_statements:new Map,metadata:{context:{template_needs_import_node:!1,template_contains_script_tag:!1},namespace:AA.namespace,bound_contenteditable:!1},events:new Set,preserve_whitespace:AA.preserveWhitespace,public_state:new Map,private_state:new Map,transform:{},in_constructor:!1,before_init:null,init:null,update:null,after_update:null,template:null,locations:null},gA=walk(eA.module.ast,tA,visitors),iA={...tA,transform:{...tA.transform},scope:eA.instance.scope,scopes:eA.instance.scopes,is_instance:!0},IA=walk(eA.instance.ast,iA,visitors),BA=walk(eA.template.ast,{...tA,transform:iA.transform,scope:eA.instance.scope,scopes:eA.template.scopes},visitors);gA.body.unshift(...tA.legacy_reactive_imports);const sA=[],CA=[];for(const[mA,MA]of eA.instance.scope.declarations)if(MA.kind==="legacy_reactive"&&CA.push(const_builder(mA,call("$.mutable_state",void 0,eA.immutable?true_instance:void 0))),MA.kind==="store_sub"){sA.length===0&&sA.push(const_builder("$$stores",call("$.setup_stores")));const fA=build_getter$1(id$1(mA.slice(1)),iA),LA=call("$.store_get",fA,literal(mA),id$1("$$stores"));sA.push(const_builder(MA.node,thunk(dev?sequence$1([call("$.validate_store",fA,literal(mA.slice(1))),LA]):LA)))}for(const[mA]of eA.reactive_statements){const MA=[...tA.legacy_reactive_statements].find(([fA])=>fA===mA);if(MA===void 0)throw new Error("Could not find reactive statement");IA.body.push(MA[1])}eA.reactive_statements.size>0&&IA.body.push(stmt(call("$.legacy_pre_effect_reset")));const oA=[];for(const mA of eA.binding_groups.values())oA.push(const_builder(mA.name,array([])));const QA=eA.exports.flatMap(({name:mA,alias:MA})=>{const fA=iA.scope.get(mA),LA=build_getter$1(id$1(mA),iA),_A=get(MA??mA,[return_builder(LA)]);if(LA.type==="Identifier"){if((fA==null?void 0:fA.declaration_kind)==="let"||(fA==null?void 0:fA.declaration_kind)==="var")return[_A,set(MA??mA,[stmt(assignment("=",LA,id$1("$$value")))])];if(!dev)return init(MA??mA,LA)}if((fA==null?void 0:fA.kind)==="prop"||(fA==null?void 0:fA.kind)==="bindable_prop")return[_A,set(MA??mA,[stmt(call(mA,id$1("$$value")))])];if((fA==null?void 0:fA.kind)==="state"||(fA==null?void 0:fA.kind)==="raw_state"){const bA=fA.kind==="state"?call("$.proxy",id$1("$$value")):id$1("$$value");return[_A,set(MA??mA,[stmt(call("$.set",id$1(mA),bA))])]}return _A}),EA=[...eA.instance.scope.declarations].filter(([mA,MA])=>(MA.kind==="prop"||MA.kind==="bindable_prop")&&!mA.startsWith("$$"));if(dev&&eA.runes){const mA=eA.exports.map(({name:fA,alias:LA})=>literal(LA??fA)),MA=[];for(const[fA,LA]of EA)LA.kind==="bindable_prop"&&MA.push(literal(LA.prop_alias??fA));IA.body.unshift(stmt(call("$.validate_prop_bindings",id$1("$$props"),array(MA),array(mA),id$1(`${eA.name}`))))}if(eA.accessors)for(const[mA,MA]of EA){const fA=MA.prop_alias??mA,LA=get(fA,[return_builder(call(id$1(mA)))]),_A=set(fA,[stmt(call(id$1(mA),id$1("$$value"))),stmt(call("$.flush_sync"))]);eA.runes&&MA.initial&&(_A.value.params[0]={type:"AssignmentPattern",left:id$1("$$value"),right:MA.initial}),QA.push(LA,_A)}AA.compatibility.componentApi===4?QA.push(init("$set",id$1("$.update_legacy_props")),init("$on",arrow([id$1("$$event_name"),id$1("$$event_cb")],call("$.add_legacy_event_listener",id$1("$$props"),id$1("$$event_name"),id$1("$$event_cb"))))):dev&&QA.push(spread(call(id$1("$.legacy_api"))));const rA=[id$1("$$props"),literal(eA.runes)];dev&&rA.push(id$1(eA.name));const lA=block([...sA,...CA,...oA,...eA.top_level_snippets,...IA.body,eA.runes||!eA.needs_context?empty:stmt(call("$.init",eA.immutable?true_instance:void 0)),...BA.body]);if(!eA.runes)for(const{name:mA,alias:MA}of eA.exports)lA.body.push(stmt(call("$.bind_prop",id$1("$$props"),literal(MA??mA),build_getter$1(id$1(mA),iA))));if(eA.css.ast!==null&&eA.inject_styles){const mA=literal(eA.css.hash),MA=literal(render_stylesheet(eA.source,eA,AA).code);tA.hoisted.push(const_builder("$$css",object$2([init("hash",mA),init("code",MA)]))),lA.body.unshift(stmt(call("$.append_styles",id$1("$$anchor"),id$1("$$css"))))}const uA=dev||eA.needs_context||eA.reactive_statements.size>0||QA.length>0;if(uA&&(lA.body.unshift(stmt(call("$.push",...rA))),lA.body.push(QA.length>0?return_builder(call("$.pop",object$2(QA))):stmt(call("$.pop")))),eA.uses_rest_props){const mA=eA.exports.map(({name:MA,alias:fA})=>fA??MA);for(const[MA,fA]of eA.instance.scope.declarations)fA.kind==="bindable_prop"&&mA.push(fA.prop_alias??MA);lA.body.unshift(const_builder("$$restProps",call("$.legacy_rest_props",id$1("$$sanitized_props"),array(mA.map(MA=>literal(MA))))))}if(eA.uses_props||eA.uses_rest_props){const mA=[literal("children"),literal("$$slots"),literal("$$events"),literal("$$legacy")];eA.custom_element&&mA.push(literal("$$host")),lA.body.unshift(const_builder("$$sanitized_props",call("$.legacy_rest_props",id$1("$$props"),array(mA))))}eA.uses_slots&&lA.body.unshift(const_builder("$$slots",call("$.sanitize_slots",id$1("$$props"))));let cA=uA||eA.needs_props||eA.uses_props||eA.uses_rest_props||eA.uses_slots||eA.slot_names.size>0;const hA=[];let dA=[];for(const mA of[...gA.body,...tA.hoisted])mA.type==="ImportDeclaration"?hA.push(mA):dA.push(mA);dA=[...hA,...dA];const pA=function_declaration(id$1(eA.name),cA?[id$1("$$anchor"),id$1("$$props")]:[id$1("$$anchor")],lA);if(AA.hmr){const mA=id$1(eA.name),MA=id$1("$.HMR"),fA=member(mA,MA,!0),LA=member(id$1("module.default"),MA,!0),_A=[stmt(assignment("=",member(LA,"source"),member(fA,"source"))),stmt(call("$.set",member(fA,"source"),member(LA,"original")))];eA.css.hash&&_A.unshift(stmt(call("$.cleanup_styles",literal(eA.css.hash))));const bA=block([stmt(assignment("=",mA,call("$.hmr",mA,thunk(member(fA,"source"))))),stmt(call("import.meta.hot.accept",arrow([id$1("module")],block(_A))))]);dA.push(pA,if_builder(id$1("import.meta.hot"),bA),export_default(id$1(eA.name)))}else dA.push(export_default(pA));if(dev&&(dA.unshift(stmt(assignment("=",member(id$1(eA.name),"$.FILENAME",!0),literal(filename)))),dA.unshift(stmt(call(id$1("$.mark_module_start")))),dA.push(stmt(call(id$1("$.mark_module_end"),id$1(eA.name))))),eA.runes||dA.unshift(imports([],"svelte/internal/flags/legacy")),AA.discloseVersion&&dA.unshift(imports([],"svelte/internal/disclose-version")),AA.compatibility.componentApi===4?(dA.unshift(imports([["createClassComponent","$$_createClassComponent"]],"svelte/legacy")),lA.body.unshift(if_builder(id$1("new.target"),return_builder(call("$$_createClassComponent",object$2([init("component",id$1(eA.name)),spread(id$1("$$anchor"))])))))):dev&&lA.body.unshift(stmt(call("$.check_target",id$1("new.target")))),tA.events.size>0&&dA.push(stmt(call("$.delegate",array(Array.from(tA.events).map(mA=>literal(mA)))))),eA.custom_element){const mA=eA.custom_element,MA=typeof mA=="boolean"?{}:mA.props||{},fA=[];for(const[RA,NA]of Object.entries(MA)){const FA=eA.instance.scope.get(RA),vA=(FA==null?void 0:FA.prop_alias)??RA;!NA.type&&((wA=FA==null?void 0:FA.initial)==null?void 0:wA.type)==="Literal"&&typeof(FA==null?void 0:FA.initial.value)=="boolean"&&(NA.type="Boolean");const xA=object$2([NA.attribute?init("attribute",literal(NA.attribute)):void 0,NA.reflect?init("reflect",literal(!0)):void 0,NA.type?init("type",literal(NA.type)):void 0].filter(Boolean));fA.push(init(vA,xA))}for(const[RA,NA]of EA){const FA=NA.prop_alias??RA;MA[FA]||fA.push(init(FA,object$2([])))}const LA=array([...eA.slot_names.keys()].map(RA=>literal(RA))),_A=array(eA.exports.map(({name:RA,alias:NA})=>literal(NA??RA))),bA=typeof mA=="boolean"||mA.shadow!=="none",JA=call("$.create_custom_element",id$1(eA.name),object$2(fA),LA,_A,literal(bA),typeof mA!="boolean"?mA.extend:void 0);if(typeof mA!="boolean"&&typeof mA.tag=="string"){const RA=stmt(call("customElements.define",literal(mA.tag),JA));AA.hmr?dA.push(if_builder(binary("==",call("customElements.get",literal(mA.tag)),null_instane),RA)):dA.push(RA)}else dA.push(stmt(JA))}return{type:"Program",sourceType:"module",body:dA}}function client_module(eA,AA){const tA={analysis:eA,options:AA,scope:eA.module.scope,scopes:eA.module.scopes,public_state:new Map,private_state:new Map,transform:{},in_constructor:!1},gA=walk(eA.module.ast,tA,visitors);return{type:"Program",sourceType:"module",body:[import_all("$","svelte/internal/client"),...gA.body]}}function transform_component(eA,AA,tA){if(tA.generate===!1)return{js:null,css:null,warnings,metadata:{runes:eA.runes},ast:null};const gA=tA.generate==="server"?server_component(eA,tA):client_component(eA,tA),iA=get_source_name(tA.filename,tA.outputFilename),IA=print(gA,{sourceMapContent:AA,sourceMapSource:iA});merge_with_preprocessor_map(IA,tA,iA);const BA=eA.css.ast&&!eA.inject_styles?render_stylesheet(AA,eA,tA):null;return{js:IA,css:BA,warnings,metadata:{runes:eA.runes},ast:null}}function transform_module(eA,AA,tA){if(tA.generate===!1)return{js:null,css:null,warnings,metadata:{runes:!0},ast:null};const gA=tA.generate==="server"?server_module(eA,tA):client_module(eA,tA),iA=tA.filename.split(/[/\\]/).at(-1);return gA.body.length>0&&(gA.body[0].leadingComments=[{type:"Block",value:` ${iA} generated by Svelte v${VERSION} `}]),{js:print(gA,{sourceMapContent:AA,sourceMapSource:get_source_name(tA.filename,void 0)}),css:null,metadata:{runes:!0},warnings,ast:null}}var process={};const common={filename:string("(unknown)"),rootDir:string(typeof process<"u"?(Vg=process.cwd)==null?void 0:Vg.call(process):void 0),dev:boolean(!1),generate:validator("client",(eA,AA)=>eA==="dom"||eA==="ssr"?(warn_once(options_renamed_ssr_dom),eA==="dom"?"client":"server"):(eA!=="client"&&eA!=="server"&&eA!==!1&&throw_error(`${AA} must be "client", "server" or false`),eA)),warningFilter:fun(()=>!0)},validate_module_options=object({...common}),validate_component_options=object({...common,accessors:deprecate(options_deprecated_accessors,boolean(!1)),css:validator("external",eA=>((eA===!0||eA===!1)&&throw_error('The boolean options have been removed from the css option. Use "external" instead of false and "injected" instead of true'),eA==="none"&&throw_error('css: "none" is no longer a valid option. If this was crucial for you, please open an issue on GitHub with your use case.'),eA!=="external"&&eA!=="injected"&&throw_error('css should be either "external" (default, recommended) or "injected"'),eA)),cssHash:fun(({css:eA,hash:AA})=>`svelte-${AA(eA)}`),cssOutputFilename:string(void 0),customElement:boolean(!1),discloseVersion:boolean(!0),immutable:deprecate(options_deprecated_immutable,boolean(!1)),legacy:removed("The legacy option has been removed. If you are using this because of legacy.componentApi, use compatibility.componentApi instead"),compatibility:object({componentApi:list([4,5],5)}),loopGuardTimeout:warn_removed(options_removed_loop_guard_timeout),name:string(void 0),namespace:list(["html","mathml","svg"]),modernAst:boolean(!1),outputFilename:string(void 0),preserveComments:boolean(!1),preserveWhitespace:boolean(!1),runes:boolean(void 0),hmr:boolean(!1),sourcemap:validator(void 0,eA=>eA),enableSourcemap:warn_removed(options_removed_enable_sourcemap),hydratable:warn_removed(options_removed_hydratable),format:removed('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:removed('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:removed("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:removed("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:removed("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")});function removed(eA){return AA=>{AA!==void 0&&options_removed(null,eA)}}const warned=new Set;function warn_once(eA){warned.has(eA)||(warned.add(eA),eA(null))}function warn_removed(eA){return AA=>{AA!==void 0&&warn_once(eA)}}function deprecate(eA,AA){return(tA,gA)=>(tA!==void 0&&warn_once(eA),AA(tA,gA))}function object(eA,AA=!1){return(tA,gA)=>{const iA={};(tA&&typeof tA!="object"||Array.isArray(tA))&&throw_error(`${gA} should be an object`);for(const IA in tA)IA in eA||(AA?iA[IA]=tA[IA]:options_unrecognised(null,`${gA?`${gA}.${IA}`:IA}`));for(const IA in eA){const BA=eA[IA];iA[IA]=BA(tA&&tA[IA],gA?`${gA}.${IA}`:IA)}return iA}}function validator(eA,AA){return(tA,gA)=>tA===void 0?eA:AA(tA,gA)}function string(eA,AA=!0){return validator(eA,(tA,gA)=>(typeof tA!="string"&&throw_error(`${gA} should be a string, if specified`),!AA&&tA===""&&throw_error(`${gA} cannot be empty`),tA))}function boolean(eA){return validator(eA,(AA,tA)=>(typeof AA!="boolean"&&throw_error(`${tA} should be true or false, if specified`),AA))}function list(eA,AA=eA[0]){return validator(AA,(tA,gA)=>{if(!eA.includes(tA)){const iA=eA.length>2?`${gA} should be one of ${eA.slice(0,-1).map(IA=>`"${IA}"`).join(", ")} or "${eA[eA.length-1]}"`:`${gA} should be either "${eA[0]}" or "${eA[1]}"`;throw_error(iA)}return tA})}function fun(eA){return validator(eA,(AA,tA)=>(typeof AA!="function"&&throw_error(`${tA} should be a function, if specified`),AA))}function throw_error(eA){options_invalid_value(null,eA)}function compile(eA,AA){eA=remove_bom(eA),reset_warning_filter(AA.warningFilter);const tA=validate_component_options(AA,"");reset(eA,tA);let gA=parse(eA);const{customElement:iA,...IA}=gA.options||{},BA={...tA,...IA,customElementOptions:iA};gA.metadata.ts&&(gA={...gA,fragment:gA.fragment&&remove_typescript_nodes(gA.fragment),instance:gA.instance&&remove_typescript_nodes(gA.instance),module:gA.module&&remove_typescript_nodes(gA.module)});const sA=analyze_component(gA,eA,BA),CA=transform_component(sA,eA,BA);return CA.ast=to_public_ast(eA,gA,AA.modernAst),CA}function compileModule(eA,AA){eA=remove_bom(eA),reset_warning_filter(AA.warningFilter);const tA=validate_module_options(AA,"");reset(eA,tA);const gA=analyze_module(parse$1(eA,!1),tA);return transform_module(gA,eA,tA)}function to_public_ast(eA,AA,tA){var gA;if(tA){const iA=IA=>{delete IA.metadata,delete IA.parent};return(gA=AA.options)==null||gA.attributes.forEach(IA=>{iA(IA),iA(IA.value),Array.isArray(IA.value)&&IA.value.forEach(iA)}),walk(AA,null,{_(IA,{next:BA}){iA(IA),BA()}})}return convert(eA,AA)}function remove_bom(eA){return eA.charCodeAt(0)===65279?eA.slice(1):eA}const transform=()=>{const eA=new Set;return{input:(AA,tA)=>({code:AA,id:tA}),hook:(AA,tA)=>{if(!eA.has(tA))eA.add(tA);else return null;return tA.endsWith(".svelte")?{code:compile(AA,{generate:"client",dev:!1,filename:tA,css:"injected",runes:!0}).js.code,map:null}:tA.endsWith(".svelte.js")?{code:compileModule(AA,{generate:"client",dev:!1,filename:tA}).js.code,map:null}:tA.endsWith(".json")?{code:`export default ${AA};`,map:null}:null}}},load=(eA,AA,tA)=>{const gA=new Set;return{input:iA=>({resolved:iA}),hook:async iA=>{if(!gA.has(iA))gA.add(iA);else return null;if(iA==="<nil_xit_internal>/index.js")return AA;if(iA.startsWith(USER_TAG)){const IA=iA.substring(USER_TAG.length),{content:BA,metadata:sA}=await service_fetch(eA,nil_xit_proto.MessageType.MessageType_FileRequest,nil_xit_proto.FileRequest.encode({target:IA}).finish(),(CA,oA)=>{if(CA===nil_xit_proto.MessageType.MessageType_FileResponse){const QA=nil_xit_proto.FileResponse.decode(oA);if(QA.target===IA)return QA}});return tA&&tA(IA,sA),BA}if(iA.startsWith(RESOURCE_TAG))return await(await fetch(iA.slice(RESOURCE_TAG.length))).text();throw`unknown file: ${iA}`}}},debug_verbose=!1,hook_up=(eA,{hook:AA,input:tA})=>AA,warning=eA=>debug_verbose,encode=eA=>{const AA=new TextEncoder().encode(eA),gA=new Uint8Array(AA).reduce((iA,IA)=>iA+String.fromCharCode(IA),"");return btoa(gA)},transform_import=eA=>{const AA=eA.map(iA=>iA.split(" ")),tA=AA.map(iA=>{const IA=iA.slice(1,iA.length-2).join(" ");return IA.startsWith("* as ")?IA.slice(5):IA}),gA=AA.map(iA=>`import_map(${iA.pop()})`);return`const [${tA.join(", ")}] = await Promise.all([${gA.join(", ")}]);`},wrap_fe=eA=>{const AA=eA.code.replace("export {","return {"),tA=AA.indexOf(`;
60
60
 
61
61
  `),gA=AA.slice(0,tA).split(`;
62
- `);return`export const nil_xit_fn = async (import_map) => { ${transform_import(gA)}; ${AA.slice(tA+2)}};`},plugin=(eA,AA,tA)=>({name:"nil_xit_plugin",resolveId:hook_up("resolve_id",resolve_id(eA)),load:hook_up("load",load(eA,AA,tA)),transform:hook_up("transform",transform()),generateBundle:(gA,iA)=>{for(const IA of Object.values(iA))IA.type==="chunk"&&(IA.code=`data:text/javascript;base64,${encode(wrap_fe(IA))}`)}});var e,t="4.25.0",n={exports:{}};function s(){return e||(e=1,function(eA){const gA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",iA=new Uint8Array(64),IA=new Uint8Array(128);for(let bA=0;bA<gA.length;bA++){const JA=gA.charCodeAt(bA);iA[bA]=JA,IA[JA]=bA}function BA(bA,JA){let RA=0,NA=0,FA=0;do{const xA=bA.next();FA=IA[xA],RA|=(31&FA)<<NA,NA+=5}while(32&FA);const vA=1&RA;return RA>>>=1,vA&&(RA=-2147483648|-RA),JA+RA}function sA(bA,JA,RA){let NA=JA-RA;NA=NA<0?-NA<<1|1:NA<<1;do{let FA=31&NA;NA>>>=5,NA>0&&(FA|=32),bA.write(iA[FA])}while(NA>0);return JA}function CA(bA,JA){return!(bA.pos>=JA)&&bA.peek()!==44}const oA=16384,QA=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode:bA=>Buffer.from(bA.buffer,bA.byteOffset,bA.byteLength).toString()}:{decode(bA){let JA="";for(let RA=0;RA<bA.length;RA++)JA+=String.fromCharCode(bA[RA]);return JA}};class EA{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(oA)}write(JA){const{buffer:RA}=this;RA[this.pos++]=JA,this.pos===oA&&(this.out+=QA.decode(RA),this.pos=0)}flush(){const{buffer:JA,out:RA,pos:NA}=this;return NA>0?RA+QA.decode(JA.subarray(0,NA)):RA}}class rA{constructor(JA){this.pos=0,this.buffer=JA}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(JA){const{buffer:RA,pos:NA}=this,FA=RA.indexOf(JA,NA);return FA===-1?RA.length:FA}}const lA=[];function uA(bA){const{length:JA}=bA,RA=new rA(bA),NA=[],FA=[];let vA=0;for(;RA.pos<JA;RA.pos++){vA=BA(RA,vA);const xA=BA(RA,0);if(!CA(RA,JA)){const DA=FA.pop();DA[2]=vA,DA[3]=xA;continue}const kA=BA(RA,0),aA=1&BA(RA,0)?[vA,xA,0,0,kA,BA(RA,0)]:[vA,xA,0,0,kA];let nA=lA;if(CA(RA,JA)){nA=[];do{const DA=BA(RA,0);nA.push(DA)}while(CA(RA,JA))}aA.vars=nA,NA.push(aA),FA.push(aA)}return NA}function cA(bA){const JA=new EA;for(let RA=0;RA<bA.length;)RA=hA(bA,RA,JA,[0]);return JA.flush()}function hA(bA,JA,RA,NA){const FA=bA[JA],{0:vA,1:xA,2:kA,3:aA,4:nA,vars:DA}=FA;JA>0&&RA.write(44),NA[0]=sA(RA,vA,NA[0]),sA(RA,xA,0),sA(RA,nA,0),sA(RA,FA.length===6?1:0,0),FA.length===6&&sA(RA,FA[5],0);for(const yA of DA)sA(RA,yA,0);for(JA++;JA<bA.length;){const yA=bA[JA],{0:GA,1:SA}=yA;if(GA>kA||GA===kA&&SA>=aA)break;JA=hA(bA,JA,RA,NA)}return RA.write(44),NA[0]=sA(RA,kA,NA[0]),sA(RA,aA,0),JA}function dA(bA){const{length:JA}=bA,RA=new rA(bA),NA=[],FA=[];let vA=0,xA=0,kA=0,aA=0,nA=0,DA=0,yA=0,GA=0;do{const SA=RA.indexOf(";");let YA=0;for(;RA.pos<SA;RA.pos++){if(YA=BA(RA,YA),!CA(RA,SA)){const zA=FA.pop();zA[2]=vA,zA[3]=YA;continue}const UA=BA(RA,0),KA=2&UA,qA=4&UA;let $A,VA=null,PA=lA;if(1&UA){const zA=BA(RA,xA);kA=BA(RA,xA===zA?kA:0),xA=zA,$A=[vA,YA,0,0,zA,kA]}else $A=[vA,YA,0,0];if($A.isScope=!!qA,KA){const zA=aA,WA=nA;aA=BA(RA,aA);const Ag=zA===aA;nA=BA(RA,Ag?nA:0),DA=BA(RA,Ag&&WA===nA?DA:0),VA=[aA,nA,DA]}if($A.callsite=VA,CA(RA,SA)){PA=[];do{yA=vA,GA=YA;const zA=BA(RA,0);let WA;if(zA<-1){WA=[[BA(RA,0)]];for(let Ag=-1;Ag>zA;Ag--){const eg=yA;yA=BA(RA,yA),GA=BA(RA,yA===eg?GA:0);const sg=BA(RA,0);WA.push([sg,yA,GA])}}else WA=[[zA]];PA.push(WA)}while(CA(RA,SA))}$A.bindings=PA,NA.push($A),FA.push($A)}vA++,RA.pos=SA+1}while(RA.pos<JA);return NA}function pA(bA){if(bA.length===0)return"";const JA=new EA;for(let RA=0;RA<bA.length;)RA=wA(bA,RA,JA,[0,0,0,0,0,0,0]);return JA.flush()}function wA(bA,JA,RA,NA){const FA=bA[JA],{0:vA,1:xA,2:kA,3:aA,isScope:nA,callsite:DA,bindings:yA}=FA;if(NA[0]<vA?(mA(RA,NA[0],vA),NA[0]=vA,NA[1]=0):JA>0&&RA.write(44),NA[1]=sA(RA,FA[1],NA[1]),sA(RA,(FA.length===6?1:0)|(DA?2:0)|(nA?4:0),0),FA.length===6){const{4:GA,5:SA}=FA;GA!==NA[2]&&(NA[3]=0),NA[2]=sA(RA,GA,NA[2]),NA[3]=sA(RA,SA,NA[3])}if(DA){const{0:GA,1:SA,2:YA}=FA.callsite;GA!==NA[4]?(NA[5]=0,NA[6]=0):SA!==NA[5]&&(NA[6]=0),NA[4]=sA(RA,GA,NA[4]),NA[5]=sA(RA,SA,NA[5]),NA[6]=sA(RA,YA,NA[6])}if(yA)for(const GA of yA){GA.length>1&&sA(RA,-GA.length,0),sA(RA,GA[0][0],0);let SA=vA,YA=xA;for(let UA=1;UA<GA.length;UA++){const KA=GA[UA];SA=sA(RA,KA[1],SA),YA=sA(RA,KA[2],YA),sA(RA,KA[0],0)}}for(JA++;JA<bA.length;){const GA=bA[JA],{0:SA,1:YA}=GA;if(SA>kA||SA===kA&&YA>=aA)break;JA=wA(bA,JA,RA,NA)}return NA[0]<kA?(mA(RA,NA[0],kA),NA[0]=kA,NA[1]=0):RA.write(44),NA[1]=sA(RA,aA,NA[1]),JA}function mA(bA,JA,RA){do bA.write(59);while(++JA<RA)}function MA(bA){const{length:JA}=bA,RA=new rA(bA),NA=[];let FA=0,vA=0,xA=0,kA=0,aA=0;do{const nA=RA.indexOf(";"),DA=[];let yA=!0,GA=0;for(FA=0;RA.pos<nA;){let SA;FA=BA(RA,FA),FA<GA&&(yA=!1),GA=FA,CA(RA,nA)?(vA=BA(RA,vA),xA=BA(RA,xA),kA=BA(RA,kA),CA(RA,nA)?(aA=BA(RA,aA),SA=[FA,vA,xA,kA,aA]):SA=[FA,vA,xA,kA]):SA=[FA],DA.push(SA),RA.pos++}yA||fA(DA),NA.push(DA),RA.pos=nA+1}while(RA.pos<=JA);return NA}function fA(bA){bA.sort(LA)}function LA(bA,JA){return bA[0]-JA[0]}function _A(bA){const JA=new EA;let RA=0,NA=0,FA=0,vA=0;for(let xA=0;xA<bA.length;xA++){const kA=bA[xA];if(xA>0&&JA.write(59),kA.length===0)continue;let aA=0;for(let nA=0;nA<kA.length;nA++){const DA=kA[nA];nA>0&&JA.write(44),aA=sA(JA,DA[0],aA),DA.length!==1&&(RA=sA(JA,DA[1],RA),NA=sA(JA,DA[2],NA),FA=sA(JA,DA[3],FA),DA.length!==4&&(vA=sA(JA,DA[4],vA)))}}return JA.flush()}eA.decode=MA,eA.decodeGeneratedRanges=dA,eA.decodeOriginalScopes=uA,eA.encode=_A,eA.encodeGeneratedRanges=pA,eA.encodeOriginalScopes=cA,Object.defineProperty(eA,"__esModule",{value:!0})}(n.exports)),n.exports}var i=s();class r{constructor(AA){this.bits=AA instanceof r?AA.bits.slice():[]}add(AA){this.bits[AA>>5]|=1<<(31&AA)}has(AA){return!!(this.bits[AA>>5]&1<<(31&AA))}}let o=class $g{constructor(AA,tA,gA){this.start=AA,this.end=tA,this.original=gA,this.intro="",this.outro="",this.content=gA,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(AA){this.outro+=AA}appendRight(AA){this.intro=this.intro+AA}clone(){const AA=new $g(this.start,this.end,this.original);return AA.intro=this.intro,AA.outro=this.outro,AA.content=this.content,AA.storeName=this.storeName,AA.edited=this.edited,AA}contains(AA){return this.start<AA&&AA<this.end}eachNext(AA){let tA=this;for(;tA;)AA(tA),tA=tA.next}eachPrevious(AA){let tA=this;for(;tA;)AA(tA),tA=tA.previous}edit(AA,tA,gA){return this.content=AA,gA||(this.intro="",this.outro=""),this.storeName=tA,this.edited=!0,this}prependLeft(AA){this.outro=AA+this.outro}prependRight(AA){this.intro=AA+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(AA){const tA=AA-this.start,gA=this.original.slice(0,tA),iA=this.original.slice(tA);this.original=gA;const IA=new $g(AA,this.end,iA);return IA.outro=this.outro,this.outro="",this.end=AA,this.edited?(IA.edit("",!1),this.content=""):this.content=gA,IA.next=this.next,IA.next&&(IA.next.previous=IA),IA.previous=this,this.next=IA,IA}toString(){return this.intro+this.content+this.outro}trimEnd(AA){if(this.outro=this.outro.replace(AA,""),this.outro.length)return!0;const tA=this.content.replace(AA,"");return tA.length?(tA!==this.content&&(this.split(this.start+tA.length).edit("",void 0,!0),this.edited&&this.edit(tA,this.storeName,!0)),!0):(this.edit("",void 0,!0),this.intro=this.intro.replace(AA,""),!!this.intro.length||void 0)}trimStart(AA){if(this.intro=this.intro.replace(AA,""),this.intro.length)return!0;const tA=this.content.replace(AA,"");if(tA.length){if(tA!==this.content){const gA=this.split(this.end-tA.length);this.edited&&gA.edit(tA,this.storeName,!0),this.edit("",void 0,!0)}return!0}return this.edit("",void 0,!0),this.outro=this.outro.replace(AA,""),!!this.outro.length||void 0}};function a(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?eA=>globalThis.btoa(unescape(encodeURIComponent(eA))):typeof Buffer=="function"?eA=>Buffer.from(eA,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}const l=a();class c{constructor(AA){this.version=3,this.file=AA.file,this.sources=AA.sources,this.sourcesContent=AA.sourcesContent,this.names=AA.names,this.mappings=i.encode(AA.mappings),AA.x_google_ignoreList!==void 0&&(this.x_google_ignoreList=AA.x_google_ignoreList)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+l(this.toString())}}function d(eA,AA){const tA=eA.split(/[/\\]/),gA=AA.split(/[/\\]/);for(tA.pop();tA[0]===gA[0];)tA.shift(),gA.shift();if(tA.length){let iA=tA.length;for(;iA--;)tA[iA]=".."}return tA.concat(gA).join("/")}const u=Object.prototype.toString;function h(eA){return u.call(eA)==="[object Object]"}function p(eA){const AA=eA.split(`
62
+ `);return`export const nil_xit_fn = async (import_map) => { ${transform_import(gA)}; ${AA.slice(tA+2)}};`},plugin=(eA,AA,tA,gA)=>({name:"nil_xit_plugin",resolveId:hook_up("resolve_id",resolve_id(AA)),load:hook_up("load",load(eA,tA,gA)),transform:hook_up("transform",transform()),generateBundle:(iA,IA)=>{for(const BA of Object.values(IA))BA.type==="chunk"&&(BA.code=`data:text/javascript;base64,${encode(wrap_fe(BA))}`)}});var e,t="4.25.0",n={exports:{}};function s(){return e||(e=1,function(eA){const gA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",iA=new Uint8Array(64),IA=new Uint8Array(128);for(let bA=0;bA<gA.length;bA++){const JA=gA.charCodeAt(bA);iA[bA]=JA,IA[JA]=bA}function BA(bA,JA){let RA=0,NA=0,FA=0;do{const xA=bA.next();FA=IA[xA],RA|=(31&FA)<<NA,NA+=5}while(32&FA);const vA=1&RA;return RA>>>=1,vA&&(RA=-2147483648|-RA),JA+RA}function sA(bA,JA,RA){let NA=JA-RA;NA=NA<0?-NA<<1|1:NA<<1;do{let FA=31&NA;NA>>>=5,NA>0&&(FA|=32),bA.write(iA[FA])}while(NA>0);return JA}function CA(bA,JA){return!(bA.pos>=JA)&&bA.peek()!==44}const oA=16384,QA=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode:bA=>Buffer.from(bA.buffer,bA.byteOffset,bA.byteLength).toString()}:{decode(bA){let JA="";for(let RA=0;RA<bA.length;RA++)JA+=String.fromCharCode(bA[RA]);return JA}};class EA{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(oA)}write(JA){const{buffer:RA}=this;RA[this.pos++]=JA,this.pos===oA&&(this.out+=QA.decode(RA),this.pos=0)}flush(){const{buffer:JA,out:RA,pos:NA}=this;return NA>0?RA+QA.decode(JA.subarray(0,NA)):RA}}class rA{constructor(JA){this.pos=0,this.buffer=JA}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(JA){const{buffer:RA,pos:NA}=this,FA=RA.indexOf(JA,NA);return FA===-1?RA.length:FA}}const lA=[];function uA(bA){const{length:JA}=bA,RA=new rA(bA),NA=[],FA=[];let vA=0;for(;RA.pos<JA;RA.pos++){vA=BA(RA,vA);const xA=BA(RA,0);if(!CA(RA,JA)){const DA=FA.pop();DA[2]=vA,DA[3]=xA;continue}const kA=BA(RA,0),aA=1&BA(RA,0)?[vA,xA,0,0,kA,BA(RA,0)]:[vA,xA,0,0,kA];let nA=lA;if(CA(RA,JA)){nA=[];do{const DA=BA(RA,0);nA.push(DA)}while(CA(RA,JA))}aA.vars=nA,NA.push(aA),FA.push(aA)}return NA}function cA(bA){const JA=new EA;for(let RA=0;RA<bA.length;)RA=hA(bA,RA,JA,[0]);return JA.flush()}function hA(bA,JA,RA,NA){const FA=bA[JA],{0:vA,1:xA,2:kA,3:aA,4:nA,vars:DA}=FA;JA>0&&RA.write(44),NA[0]=sA(RA,vA,NA[0]),sA(RA,xA,0),sA(RA,nA,0),sA(RA,FA.length===6?1:0,0),FA.length===6&&sA(RA,FA[5],0);for(const yA of DA)sA(RA,yA,0);for(JA++;JA<bA.length;){const yA=bA[JA],{0:GA,1:SA}=yA;if(GA>kA||GA===kA&&SA>=aA)break;JA=hA(bA,JA,RA,NA)}return RA.write(44),NA[0]=sA(RA,kA,NA[0]),sA(RA,aA,0),JA}function dA(bA){const{length:JA}=bA,RA=new rA(bA),NA=[],FA=[];let vA=0,xA=0,kA=0,aA=0,nA=0,DA=0,yA=0,GA=0;do{const SA=RA.indexOf(";");let YA=0;for(;RA.pos<SA;RA.pos++){if(YA=BA(RA,YA),!CA(RA,SA)){const zA=FA.pop();zA[2]=vA,zA[3]=YA;continue}const UA=BA(RA,0),KA=2&UA,qA=4&UA;let $A,VA=null,PA=lA;if(1&UA){const zA=BA(RA,xA);kA=BA(RA,xA===zA?kA:0),xA=zA,$A=[vA,YA,0,0,zA,kA]}else $A=[vA,YA,0,0];if($A.isScope=!!qA,KA){const zA=aA,WA=nA;aA=BA(RA,aA);const Ag=zA===aA;nA=BA(RA,Ag?nA:0),DA=BA(RA,Ag&&WA===nA?DA:0),VA=[aA,nA,DA]}if($A.callsite=VA,CA(RA,SA)){PA=[];do{yA=vA,GA=YA;const zA=BA(RA,0);let WA;if(zA<-1){WA=[[BA(RA,0)]];for(let Ag=-1;Ag>zA;Ag--){const eg=yA;yA=BA(RA,yA),GA=BA(RA,yA===eg?GA:0);const sg=BA(RA,0);WA.push([sg,yA,GA])}}else WA=[[zA]];PA.push(WA)}while(CA(RA,SA))}$A.bindings=PA,NA.push($A),FA.push($A)}vA++,RA.pos=SA+1}while(RA.pos<JA);return NA}function pA(bA){if(bA.length===0)return"";const JA=new EA;for(let RA=0;RA<bA.length;)RA=wA(bA,RA,JA,[0,0,0,0,0,0,0]);return JA.flush()}function wA(bA,JA,RA,NA){const FA=bA[JA],{0:vA,1:xA,2:kA,3:aA,isScope:nA,callsite:DA,bindings:yA}=FA;if(NA[0]<vA?(mA(RA,NA[0],vA),NA[0]=vA,NA[1]=0):JA>0&&RA.write(44),NA[1]=sA(RA,FA[1],NA[1]),sA(RA,(FA.length===6?1:0)|(DA?2:0)|(nA?4:0),0),FA.length===6){const{4:GA,5:SA}=FA;GA!==NA[2]&&(NA[3]=0),NA[2]=sA(RA,GA,NA[2]),NA[3]=sA(RA,SA,NA[3])}if(DA){const{0:GA,1:SA,2:YA}=FA.callsite;GA!==NA[4]?(NA[5]=0,NA[6]=0):SA!==NA[5]&&(NA[6]=0),NA[4]=sA(RA,GA,NA[4]),NA[5]=sA(RA,SA,NA[5]),NA[6]=sA(RA,YA,NA[6])}if(yA)for(const GA of yA){GA.length>1&&sA(RA,-GA.length,0),sA(RA,GA[0][0],0);let SA=vA,YA=xA;for(let UA=1;UA<GA.length;UA++){const KA=GA[UA];SA=sA(RA,KA[1],SA),YA=sA(RA,KA[2],YA),sA(RA,KA[0],0)}}for(JA++;JA<bA.length;){const GA=bA[JA],{0:SA,1:YA}=GA;if(SA>kA||SA===kA&&YA>=aA)break;JA=wA(bA,JA,RA,NA)}return NA[0]<kA?(mA(RA,NA[0],kA),NA[0]=kA,NA[1]=0):RA.write(44),NA[1]=sA(RA,aA,NA[1]),JA}function mA(bA,JA,RA){do bA.write(59);while(++JA<RA)}function MA(bA){const{length:JA}=bA,RA=new rA(bA),NA=[];let FA=0,vA=0,xA=0,kA=0,aA=0;do{const nA=RA.indexOf(";"),DA=[];let yA=!0,GA=0;for(FA=0;RA.pos<nA;){let SA;FA=BA(RA,FA),FA<GA&&(yA=!1),GA=FA,CA(RA,nA)?(vA=BA(RA,vA),xA=BA(RA,xA),kA=BA(RA,kA),CA(RA,nA)?(aA=BA(RA,aA),SA=[FA,vA,xA,kA,aA]):SA=[FA,vA,xA,kA]):SA=[FA],DA.push(SA),RA.pos++}yA||fA(DA),NA.push(DA),RA.pos=nA+1}while(RA.pos<=JA);return NA}function fA(bA){bA.sort(LA)}function LA(bA,JA){return bA[0]-JA[0]}function _A(bA){const JA=new EA;let RA=0,NA=0,FA=0,vA=0;for(let xA=0;xA<bA.length;xA++){const kA=bA[xA];if(xA>0&&JA.write(59),kA.length===0)continue;let aA=0;for(let nA=0;nA<kA.length;nA++){const DA=kA[nA];nA>0&&JA.write(44),aA=sA(JA,DA[0],aA),DA.length!==1&&(RA=sA(JA,DA[1],RA),NA=sA(JA,DA[2],NA),FA=sA(JA,DA[3],FA),DA.length!==4&&(vA=sA(JA,DA[4],vA)))}}return JA.flush()}eA.decode=MA,eA.decodeGeneratedRanges=dA,eA.decodeOriginalScopes=uA,eA.encode=_A,eA.encodeGeneratedRanges=pA,eA.encodeOriginalScopes=cA,Object.defineProperty(eA,"__esModule",{value:!0})}(n.exports)),n.exports}var i=s();class r{constructor(AA){this.bits=AA instanceof r?AA.bits.slice():[]}add(AA){this.bits[AA>>5]|=1<<(31&AA)}has(AA){return!!(this.bits[AA>>5]&1<<(31&AA))}}let o=class $g{constructor(AA,tA,gA){this.start=AA,this.end=tA,this.original=gA,this.intro="",this.outro="",this.content=gA,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(AA){this.outro+=AA}appendRight(AA){this.intro=this.intro+AA}clone(){const AA=new $g(this.start,this.end,this.original);return AA.intro=this.intro,AA.outro=this.outro,AA.content=this.content,AA.storeName=this.storeName,AA.edited=this.edited,AA}contains(AA){return this.start<AA&&AA<this.end}eachNext(AA){let tA=this;for(;tA;)AA(tA),tA=tA.next}eachPrevious(AA){let tA=this;for(;tA;)AA(tA),tA=tA.previous}edit(AA,tA,gA){return this.content=AA,gA||(this.intro="",this.outro=""),this.storeName=tA,this.edited=!0,this}prependLeft(AA){this.outro=AA+this.outro}prependRight(AA){this.intro=AA+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(AA){const tA=AA-this.start,gA=this.original.slice(0,tA),iA=this.original.slice(tA);this.original=gA;const IA=new $g(AA,this.end,iA);return IA.outro=this.outro,this.outro="",this.end=AA,this.edited?(IA.edit("",!1),this.content=""):this.content=gA,IA.next=this.next,IA.next&&(IA.next.previous=IA),IA.previous=this,this.next=IA,IA}toString(){return this.intro+this.content+this.outro}trimEnd(AA){if(this.outro=this.outro.replace(AA,""),this.outro.length)return!0;const tA=this.content.replace(AA,"");return tA.length?(tA!==this.content&&(this.split(this.start+tA.length).edit("",void 0,!0),this.edited&&this.edit(tA,this.storeName,!0)),!0):(this.edit("",void 0,!0),this.intro=this.intro.replace(AA,""),!!this.intro.length||void 0)}trimStart(AA){if(this.intro=this.intro.replace(AA,""),this.intro.length)return!0;const tA=this.content.replace(AA,"");if(tA.length){if(tA!==this.content){const gA=this.split(this.end-tA.length);this.edited&&gA.edit(tA,this.storeName,!0),this.edit("",void 0,!0)}return!0}return this.edit("",void 0,!0),this.outro=this.outro.replace(AA,""),!!this.outro.length||void 0}};function a(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?eA=>globalThis.btoa(unescape(encodeURIComponent(eA))):typeof Buffer=="function"?eA=>Buffer.from(eA,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}const l=a();class c{constructor(AA){this.version=3,this.file=AA.file,this.sources=AA.sources,this.sourcesContent=AA.sourcesContent,this.names=AA.names,this.mappings=i.encode(AA.mappings),AA.x_google_ignoreList!==void 0&&(this.x_google_ignoreList=AA.x_google_ignoreList)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+l(this.toString())}}function d(eA,AA){const tA=eA.split(/[/\\]/),gA=AA.split(/[/\\]/);for(tA.pop();tA[0]===gA[0];)tA.shift(),gA.shift();if(tA.length){let iA=tA.length;for(;iA--;)tA[iA]=".."}return tA.concat(gA).join("/")}const u=Object.prototype.toString;function h(eA){return u.call(eA)==="[object Object]"}function p(eA){const AA=eA.split(`
63
63
  `),tA=[];for(let gA=0,iA=0;gA<AA.length;gA++)tA.push(iA),iA+=AA[gA].length+1;return function(gA){let iA=0,IA=tA.length;for(;iA<IA;){const sA=iA+IA>>1;gA<tA[sA]?IA=sA:iA=sA+1}const BA=iA-1;return{line:BA,column:gA-tA[BA]}}}const f=/\w/;class m{constructor(AA){this.hires=AA,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(AA,tA,gA,iA){if(tA.length){const IA=tA.length-1;let BA=tA.indexOf(`
64
64
  `,0),sA=-1;for(;BA>=0&&IA>BA;){const oA=[this.generatedCodeColumn,AA,gA.line,gA.column];iA>=0&&oA.push(iA),this.rawSegments.push(oA),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,sA=BA,BA=tA.indexOf(`
65
65
  `,BA+1)}const CA=[this.generatedCodeColumn,AA,gA.line,gA.column];iA>=0&&CA.push(iA),this.rawSegments.push(CA),this.advance(tA.slice(sA+1))}else this.pending&&(this.rawSegments.push(this.pending),this.advance(tA));this.pending=null}addUneditedChunk(AA,tA,gA,iA,IA){let BA=tA.start,sA=!0,CA=!1;for(;BA<tA.end;){if(gA[BA]===`
@@ -108,4 +108,4 @@ Either change the import in "${ye(sA)}" to point directly to the exporting modul
108
108
  `),lA){let pA;xl("sourcemaps",3),pA=rA?M(cA||rA):EA?M(EA,AA):M(AA),sA=function(wA,mA,MA,fA,LA,_A){const bA=gc(_A),JA=MA.filter(aA=>!aA.excludeFromSourcemap).map(aA=>yc(aA.id,aA.originalCode,aA.originalSourcemap,aA.sourcemapChain,bA)),RA=new mc(mA,JA),NA=fA.reduce(bA,RA);let{sources:FA,sourcesContent:vA,names:xA,mappings:kA}=NA.traceMappings();if(wA){const aA=C(wA);FA=FA.map(nA=>D(aA,nA)),wA=N(wA)}vA=LA?null:vA;for(const aA of MA)rl(aA.originalSourcemap,aA.sourcemapChain);return new c({file:wA,mappings:kA,names:xA,sources:FA,sourcesContent:vA})}(pA,eA.generateDecodedMap({}),tA,CA,uA,BA);for(let wA=0;wA<sA.sources.length;++wA){let mA=sA.sources[wA];const MA=`${pA}.map`,fA=dA(mA,MA);typeof fA!="boolean"&&Re(Et("sourcemapIgnoreList function must return a boolean.")),fA&&(sA.x_google_ignoreList===void 0&&(sA.x_google_ignoreList=[]),sA.x_google_ignoreList.includes(wA)||sA.x_google_ignoreList.push(wA)),hA&&(mA=hA(mA,MA),typeof mA!="string"&&Re(Et("sourcemapPathTransform function must return a string."))),sA.sources[wA]=k(mA)}Sl("sourcemaps",3)}return{code:oA,map:sA}}function wc(eA,AA,tA,{sourcemap:gA,sourcemapBaseUrl:iA}){let IA;if(gA==="inline")IA=AA.toUrl();else{const BA=N(eA);IA=iA?new URL(BA,iA).toString():BA,tA.emitFile({fileName:eA,originalFileName:null,source:AA.toString(),type:"asset"})}return gA==="hidden"?"":`//# sourceMappingURL=${IA}
109
109
  `}function Ic(eA,AA){const tA=xc.hex(eA),gA=[tA.slice(0,8),tA.slice(8,12),"4"+tA.slice(12,15),(3&parseInt(tA.slice(15,16),16)|8).toString(16)+tA.slice(17,20),tA.slice(20,32)].join("-");return AA.debugId=gA,"//# debugId="+gA+`
110
110
  `}class Pc{constructor(AA,tA,gA,iA,IA){this.outputOptions=AA,this.unsetOptions=tA,this.inputOptions=gA,this.pluginDriver=iA,this.graph=IA,this.facadeChunkByModule=new Map,this.includedNamespaces=new Set}async generate(AA){xl("GENERATE",1);const tA=Object.create(null),gA=(iA=>{const IA=new Set;return new Proxy(iA,{deleteProperty:(BA,sA)=>(typeof sA=="string"&&IA.delete(sA.toLowerCase()),Reflect.deleteProperty(BA,sA)),get:(BA,sA)=>sA===Gl?IA:Reflect.get(BA,sA),set:(BA,sA,CA)=>(typeof sA=="string"&&IA.add(sA.toLowerCase()),Reflect.set(BA,sA,CA))})})(tA);this.pluginDriver.setOutputBundle(gA,this.outputOptions);try{xl("initialize render",2),await this.pluginDriver.hookParallel("renderStart",[this.outputOptions,this.inputOptions]),Sl("initialize render",2),xl("generate chunks",2);const iA=(()=>{let BA=0;return(sA,CA)=>{if(CA>22)return Re(Et(`Hashes cannot be longer than 22 characters, received ${CA}. Check the "${sA}" option.`));const oA=`${zl}${Ms(++BA).padStart(CA-5,"0")}${Vl}`;return oA.length>CA?Re(Et(`To generate hashes for this number of chunks (currently ${BA}), you need a minimum hash size of ${oA.length}, received ${CA}. Check the "${sA}" option.`)):oA}})(),IA=await this.generateChunks(gA,iA);IA.length>1&&function(BA,sA){if(BA.format==="umd"||BA.format==="iife")return Re(at("output.format",Pe,"UMD and IIFE output formats are not supported for code-splitting builds",BA.format));if(typeof BA.file=="string")return Re(at("output.file",we,'when building multiple chunks, the "output.dir" option must be used, not "output.file". To inline dynamic imports, set the "inlineDynamicImports" option'));if(BA.sourcemapFile)return Re(at("output.sourcemapFile",De,'"output.sourcemapFile" is only supported for single-file builds'));!BA.amd.autoId&&BA.amd.id&&sA(ue,at("output.amd.id",ve,'this option is only properly supported for single-file builds. Use "output.amd.autoId" and "output.amd.basePath" instead'))}(this.outputOptions,this.inputOptions.onLog),this.pluginDriver.setChunkInformation(this.facadeChunkByModule);for(const BA of IA)BA.generateExports();Sl("generate chunks",2),await $c(IA,gA,this.pluginDriver,this.outputOptions,this.inputOptions.onLog)}catch(iA){throw await this.pluginDriver.hookParallel("renderError",[iA]),iA}return(iA=>{const IA=new Set,BA=Object.values(iA);for(const sA of BA)sA.type==="asset"&&sA.needsCodeReference&&IA.add(sA.fileName);for(const sA of BA)if(sA.type==="chunk")for(const CA of sA.referencedFiles)IA.has(CA)&&IA.delete(CA);for(const sA of IA)delete iA[sA]})(gA),xl("generate bundle",2),await this.pluginDriver.hookSeq("generateBundle",[this.outputOptions,gA,AA]),this.finaliseAssets(gA),Sl("generate bundle",2),Sl("GENERATE",1),tA}async addManualChunks(AA){const tA=new Map,gA=await Promise.all(Object.entries(AA).map(async([iA,IA])=>({alias:iA,entries:await this.graph.moduleLoader.addAdditionalModules(IA,!0)})));for(const{alias:iA,entries:IA}of gA)for(const BA of IA)kc(iA,BA,tA);return tA}assignManualChunks(AA){const tA=[],gA={getModuleIds:()=>this.graph.modulesById.keys(),getModuleInfo:this.graph.getModuleInfo};for(const IA of this.graph.modulesById.values())if(IA instanceof Pl){const BA=AA(IA.id,gA);typeof BA=="string"&&tA.push([BA,IA])}tA.sort(([IA],[BA])=>IA>BA?1:IA<BA?-1:0);const iA=new Map;for(const[IA,BA]of tA)kc(IA,BA,iA);return iA}finaliseAssets(AA){if(this.outputOptions.validate){for(const tA of Object.values(AA))if("code"in tA)try{ll(tA.code,{jsx:this.inputOptions.jsx!==!1})}catch(gA){this.inputOptions.onLog(ue,Ye(tA,gA))}}this.pluginDriver.finaliseAssets()}async generateChunks(AA,tA){const{experimentalMinChunkSize:gA,inlineDynamicImports:iA,manualChunks:IA,preserveModules:BA}=this.outputOptions,sA=typeof IA=="object"?await this.addManualChunks(IA):this.assignManualChunks(IA),CA=function({compact:dA,generatedCode:{arrowFunctions:pA,constBindings:wA,objectShorthand:mA,reservedNamesAsProps:MA}}){const{_:fA,n:LA,s:_A}=dA?{_:"",n:"",s:""}:{_:" ",n:`
111
- `,s:";"},bA=wA?"const":"var",JA=(vA,{isAsync:xA,name:kA})=>`${xA?"async ":""}function${kA?` ${kA}`:""}${fA}(${vA.join(`,${fA}`)})${fA}`,RA=pA?(vA,{isAsync:xA,name:kA})=>{const aA=vA.length===1;return`${kA?`${bA} ${kA}${fA}=${fA}`:""}${xA?`async${aA?" ":fA}`:""}${aA?vA[0]:`(${vA.join(`,${fA}`)})`}${fA}=>${fA}`}:JA,NA=(vA,{functionReturn:xA,lineBreakIndent:kA,name:aA})=>[`${RA(vA,{isAsync:!1,name:aA})}${pA?kA?`${LA}${kA.base}${kA.t}`:"":`{${kA?`${LA}${kA.base}${kA.t}`:fA}${xA?"return ":""}`}`,pA?`${aA?";":""}${kA?`${LA}${kA.base}`:""}`:`${_A}${kA?`${LA}${kA.base}`:fA}}`],FA=MA?vA=>tn.test(vA):vA=>!Yt.has(vA)&&tn.test(vA);return{_:fA,cnst:bA,getDirectReturnFunction:NA,getDirectReturnIifeLeft:(vA,xA,{needsArrowReturnParens:kA,needsWrappedFunction:aA})=>{const[nA,DA]=NA(vA,{functionReturn:!0,lineBreakIndent:null,name:null});return`${pc(`${nA}${pc(xA,pA&&kA)}${DA}`,pA||aA)}(`},getFunctionIntro:RA,getNonArrowFunctionIntro:JA,getObject(vA,{lineBreakIndent:xA}){const kA=xA?`${LA}${xA.base}${xA.t}`:fA;return`{${vA.map(([aA,nA])=>{if(aA===null)return`${kA}${nA}`;const DA=sn(aA);return aA===nA&&mA&&aA===DA?kA+aA:`${kA}${DA}:${fA}${nA}`}).join(",")}${vA.length===0?"":xA?`${LA}${xA.base}`:fA}}`},getPropertyAccess:vA=>FA(vA)?`.${vA}`:`[${JSON.stringify(vA)}]`,n:LA,s:_A}}(this.outputOptions),oA=function(dA){const pA=[];for(const wA of dA.values())wA instanceof Pl&&(wA.isIncluded()||wA.info.isEntry||wA.includedDynamicImporters.length>0)&&pA.push(wA);return pA}(this.graph.modulesById),QA=function(dA){if(dA.length===0)return"/";if(dA.length===1)return C(dA[0]);const pA=dA.slice(1).reduce((wA,mA)=>{const MA=mA.split(/\/+|\\+/);let fA;for(fA=0;wA[fA]===MA[fA]&&fA<Math.min(wA.length,MA.length);fA++);return wA.slice(0,fA)},dA[0].split(/\/+|\\+/));return pA.length>1?pA.join("/"):"/"}(function(dA,pA){const wA=[];for(const mA of dA)(mA.info.isEntry||pA)&&I(mA.id)&&wA.push(mA.id);return wA}(oA,BA)),EA=function(dA,pA,wA){const mA=new Map;for(const MA of dA.values())MA instanceof on&&mA.set(MA,new pr(MA,pA,wA));return mA}(this.graph.modulesById,this.outputOptions,QA),rA=iA?[{alias:null,modules:oA}]:BA?oA.map(dA=>({alias:null,modules:[dA]})):sc(this.graph.entryModules,sA,gA,this.inputOptions.onLog),lA=new Array(rA.length),uA=new Map;let cA=0;for(const{alias:dA,modules:pA}of rA){pA.sort(uc);const wA=new Xl(pA,this.inputOptions,this.outputOptions,this.unsetOptions,this.pluginDriver,this.graph.modulesById,uA,EA,this.facadeChunkByModule,this.includedNamespaces,dA,tA,AA,QA,CA);lA[cA++]=wA}for(const dA of lA)dA.link();const hA=[];for(const dA of lA)hA.push(...dA.generateFacades());return[...lA,...hA]}}function kc(eA,AA,tA){const gA=tA.get(AA);if(typeof gA=="string"&&gA!==eA)return Re((iA=AA.id,IA=eA,BA=gA,{code:"INVALID_CHUNK",message:`Cannot assign "${ye(iA)}" to the "${IA}" chunk as it is already in the "${BA}" chunk.`}));var iA,IA,BA;tA.set(AA,eA)}class Nc extends _s{constructor(){super(),this.parent=null,this.variables.set("undefined",new cr)}findVariable(AA){let tA=this.variables.get(AA);return tA||(tA=new Ps(AA),this.variables.set(AA,tA)),tA}}const Cc=eA=>()=>Re(function(AA){return{code:"NO_FS_IN_BROWSER",message:`Cannot access the file system (via "${AA}") when using the browser build of Rollup. Make sure you supply a plugin with custom resolveId and load hooks to Rollup.`,url:Se("plugin-development/#a-simple-example")}}(eA)),Oc=Cc("fs.mkdir"),Dc=Cc("fs.readFile"),Mc=Cc("fs.writeFile");async function Rc(eA,AA,tA,gA,iA,IA,BA,sA,CA){const oA=await function(QA,EA,rA,lA,uA,cA,hA,dA){let pA=null,wA=null;if(uA){pA=new Set;for(const mA of uA)QA===mA.source&&EA===mA.importer&&pA.add(mA.plugin);wA=(mA,MA)=>({...mA,resolve:(fA,LA,{attributes:_A,custom:bA,isEntry:JA,skipSelf:RA}=J)=>(RA??(RA=!0),lA(fA,LA,bA,JA,_A||K,RA?[...uA,{importer:LA,plugin:MA,source:fA}]:uA))})}return rA.hookFirstAndGetPlugin("resolveId",[QA,EA,{attributes:dA,custom:cA,isEntry:hA}],wA,pA)}(eA,AA,gA,iA,IA,BA,sA,CA);return oA==null?Cc("path.resolve")():oA[0]}const _c="at position ",Lc="at output position ",Tc={delete:()=>!1,get(){},has:()=>!1,set(){}};function Bc(eA){return eA.startsWith(_c)||eA.startsWith(Lc)?Re({code:"ANONYMOUS_PLUGIN_CACHE",message:"A plugin is trying to use the Rollup cache but is not declaring a plugin name or cacheKey."}):Re({code:"DUPLICATE_PLUGIN_NAME",message:`The plugin name ${eA} is being used twice in the same build. Plugin names must be distinct or provide a cacheKey (please post an issue to the plugin if you are a plugin user).`})}const zc=(eA,AA,tA=Uc)=>{const{onwarn:gA,onLog:iA}=eA,IA=Vc(tA,gA);if(iA){const BA=fe[AA];return(sA,CA)=>iA(sA,Fc(CA),(oA,QA)=>{if(oA==="error")return Re(jc(QA));fe[oA]>=BA&&IA(oA,jc(QA))})}return IA},Vc=(eA,AA)=>AA?(tA,gA)=>{tA===ue?AA(Fc(gA),iA=>eA(ue,jc(iA))):eA(tA,gA)}:eA,Fc=eA=>(Object.defineProperty(eA,"toString",{value:()=>eA.message,writable:!0}),eA),jc=eA=>typeof eA=="string"?{message:eA}:typeof eA=="function"?jc(eA()):eA,Uc=(eA,{message:AA})=>{switch(eA){case ue:return console.warn(AA);case pe:return console.debug(AA);default:return console.info(AA)}};function Gc(eA,AA,tA,gA,iA=/$./){const IA=new Set(AA),BA=Object.keys(eA).filter(sA=>!(IA.has(sA)||iA.test(sA)));BA.length>0&&gA(ue,function(sA,CA,oA){return{code:"UNKNOWN_OPTION",message:`Unknown ${sA}: ${CA.join(", ")}. Allowed options: ${oA.join(", ")}`}}(tA,BA,[...IA].sort()))}const Wc={recommended:{annotations:!0,correctVarValueBeforeDeclaration:!1,manualPureFunctions:X,moduleSideEffects:()=>!0,propertyReadSideEffects:!0,tryCatchDeoptimization:!0,unknownGlobalSideEffects:!1},safest:{annotations:!0,correctVarValueBeforeDeclaration:!0,manualPureFunctions:X,moduleSideEffects:()=>!0,propertyReadSideEffects:!0,tryCatchDeoptimization:!0,unknownGlobalSideEffects:!0},smallest:{annotations:!0,correctVarValueBeforeDeclaration:!1,manualPureFunctions:X,moduleSideEffects:()=>!1,propertyReadSideEffects:!1,tryCatchDeoptimization:!1,unknownGlobalSideEffects:!1}},Hc={preserve:{factory:null,fragment:null,importSource:null,mode:"preserve"},"preserve-react":{factory:"React.createElement",fragment:"React.Fragment",importSource:"react",mode:"preserve"},react:{factory:"React.createElement",fragment:"React.Fragment",importSource:"react",mode:"classic"},"react-jsx":{factory:"React.createElement",importSource:"react",jsxImportSource:"react/jsx-runtime",mode:"automatic"}},qc={es2015:{arrowFunctions:!0,constBindings:!0,objectShorthand:!0,reservedNamesAsProps:!0,symbols:!0},es5:{arrowFunctions:!1,constBindings:!1,objectShorthand:!1,reservedNamesAsProps:!0,symbols:!1}},Jc=(eA,AA,tA,gA,iA)=>{const IA=eA==null?void 0:eA.preset;if(IA){const BA=AA[IA];if(BA)return{...BA,...eA};Re(at(`${tA}.preset`,gA,`valid values are ${me(Object.keys(AA))}`,IA))}return((BA,sA,CA,oA)=>QA=>{if(typeof QA=="string"){const EA=BA[QA];if(EA)return EA;Re(at(sA,CA,`valid values are ${oA}${me(Object.keys(BA))}. You can also supply an object for more fine-grained control`,QA))}return(EA=>EA&&typeof EA=="object"?EA:{})(QA)})(AA,tA,gA,iA)(eA)},Kc=async eA=>(await async function(AA){do AA=(await Promise.all(AA)).flat(1/0);while(AA.some(tA=>tA==null?void 0:tA.then));return AA}([eA])).filter(Boolean);async function Xc(eA,AA,tA,gA){const iA=AA.id,IA=[];let BA=eA.map===null?null:ol(eA.map);const sA=eA.code;let CA=eA.ast;const oA=[],QA=[];let EA=!1;const rA=()=>EA=!0;let lA="",uA=eA.code;const cA=dA=>(pA,wA)=>{pA=jc(pA),wA&&Le(pA,wA,uA,iA),pA.id=iA,pA.hook="transform",dA(pA)};let hA;try{hA=await tA.hookReduceArg0("transform",[uA,iA],function(dA,pA,wA){let mA,MA;if(typeof pA=="string")mA=pA;else{if(!pA||typeof pA!="object")return dA;if(AA.updateOptions(pA),pA.code==null)return(pA.map||pA.ast)&&gA(ue,function(fA){return{code:"NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE",message:`The plugin "${fA}" returned a "map" or "ast" without returning a "code". This will be ignored.`}}(wA.name)),dA;({code:mA,map:MA,ast:CA}=pA)}return MA!==null&&IA.push(ol(typeof MA=="string"?JSON.parse(MA):MA)||{missing:!0,plugin:wA.name}),uA=mA,mA},(dA,pA)=>{return lA=pA.name,{...dA,addWatchFile(MA){oA.push(MA),dA.addWatchFile(MA)},cache:EA?dA.cache:(wA=dA.cache,mA=rA,{delete:MA=>(mA(),wA.delete(MA)),get:MA=>(mA(),wA.get(MA)),has:MA=>(mA(),wA.has(MA)),set:(MA,fA)=>(mA(),wA.set(MA,fA))}),debug:cA(dA.debug),emitFile:MA=>(QA.push(MA),tA.emitFile(MA)),error:(MA,fA)=>(typeof MA=="string"&&(MA={message:MA}),fA&&Le(MA,fA,uA,iA),MA.id=iA,MA.hook="transform",dA.error(MA)),getCombinedSourcemap(){const MA=function(fA,LA,_A,bA,JA){return bA.length===0?_A:ol({version:3,...yc(fA,LA,_A,bA,gc(JA)).traceMappings()})}(iA,sA,BA,IA,gA);return MA?(BA!==MA&&(BA=MA,IA.length=0),new c({...MA,file:null,sourcesContent:MA.sourcesContent})):new b(sA).generateMap({hires:!0,includeContent:!0,source:iA})},info:cA(dA.info),setAssetSource(){return this.error({code:"INVALID_SETASSETSOURCE",message:"setAssetSource cannot be called in transform for caching reasons. Use emitFile with a source, or call setAssetSource in another hook."})},warn:cA(dA.warn)};var wA,mA})}catch(dA){return Re(mt(dA,lA,{hook:"transform",id:iA}))}return!EA&&QA.length>0&&(AA.transformFiles=QA),{ast:CA,code:hA,customTransformCache:EA,originalCode:sA,originalSourcemap:BA,sourcemapChain:IA,transformDependencies:oA}}const Yc="resolveDependencies";class Zc{constructor(AA,tA,gA,iA){this.graph=AA,this.modulesById=tA,this.options=gA,this.pluginDriver=iA,this.implicitEntryModules=new Set,this.indexedEntryModules=[],this.latestLoadModulesPromise=Promise.resolve(),this.moduleLoadPromises=new Map,this.modulesWithLoadedDependencies=new Set,this.nextChunkNamePriority=0,this.nextEntryModuleIndex=0,this.resolveId=async(IA,BA,sA,CA,oA,QA=null)=>this.getResolvedIdWithDefaults(this.getNormalizedResolvedIdWithoutDefaults(!this.options.external(IA,BA,!1)&&await Rc(IA,BA,this.options.preserveSymlinks,this.pluginDriver,this.resolveId,QA,sA,typeof CA=="boolean"?CA:!BA,oA),BA,IA),oA),this.hasModuleSideEffects=gA.treeshake?gA.treeshake.moduleSideEffects:()=>!0}async addAdditionalModules(AA,tA){const gA=this.extendLoadModulesPromise(Promise.all(AA.map(iA=>this.loadEntryModule(iA,!1,void 0,null,tA))));return await this.awaitLoadModulesPromise(),gA}async addEntryModules(AA,tA){const gA=this.nextEntryModuleIndex;this.nextEntryModuleIndex+=AA.length;const iA=this.nextChunkNamePriority;this.nextChunkNamePriority+=AA.length;const IA=await this.extendLoadModulesPromise(Promise.all(AA.map(({id:BA,importer:sA})=>this.loadEntryModule(BA,!0,sA,null))).then(BA=>{for(const[sA,CA]of BA.entries()){CA.isUserDefinedEntryPoint=CA.isUserDefinedEntryPoint||tA,ed(CA,AA[sA],tA,iA+sA);const oA=this.indexedEntryModules.find(QA=>QA.module===CA);oA?oA.index=Math.min(oA.index,gA+sA):this.indexedEntryModules.push({index:gA+sA,module:CA})}return this.indexedEntryModules.sort(({index:sA},{index:CA})=>sA>CA?1:-1),BA}));return await this.awaitLoadModulesPromise(),{entryModules:this.indexedEntryModules.map(({module:BA})=>BA),implicitEntryModules:[...this.implicitEntryModules],newEntryModules:IA}}async emitChunk({fileName:AA,id:tA,importer:gA,name:iA,implicitlyLoadedAfterOneOf:IA,preserveSignature:BA}){const sA={fileName:AA||null,id:tA,importer:gA,name:iA||null},CA=IA?await this.addEntryWithImplicitDependants(sA,IA):(await this.addEntryModules([sA],!1)).newEntryModules[0];return BA!=null&&(CA.preserveSignature=BA),CA}async preloadModule(AA){return(await this.fetchModule(this.getResolvedIdWithDefaults(AA,K),void 0,!1,!AA.resolveDependencies||Yc)).info}addEntryWithImplicitDependants(AA,tA){const gA=this.nextChunkNamePriority++;return this.extendLoadModulesPromise(this.loadEntryModule(AA.id,!1,AA.importer,null).then(async iA=>{if(ed(iA,AA,!1,gA),!iA.info.isEntry){const IA=await Promise.all(tA.map(BA=>this.loadEntryModule(BA,!1,AA.importer,iA.id)));if(!iA.info.isEntry){this.implicitEntryModules.add(iA);for(const BA of IA)iA.implicitlyLoadedAfter.add(BA);for(const BA of iA.implicitlyLoadedAfter)BA.implicitlyLoadedBefore.add(iA)}}return iA}))}async addModuleSource(AA,tA,gA){let iA;try{iA=await this.graph.fileOperationQueue.run(async()=>{const CA=await this.pluginDriver.hookFirst("load",[AA]);return CA!==null?CA:(this.graph.watchFiles[AA]=!0,await Dc(AA,"utf8"))})}catch(CA){let oA=`Could not load ${AA}`;throw tA&&(oA+=` (imported by ${ye(tA)})`),oA+=`: ${CA.message}`,CA.message=oA,CA}const IA=typeof iA=="string"?{code:iA}:iA!=null&&typeof iA=="object"&&typeof iA.code=="string"?iA:Re(function(CA){return{code:"BAD_LOADER",message:`Error loading "${ye(CA)}": plugin load hook should return a string, a { code, map } object, or nothing/null.`}}(AA)),BA=IA.code;BA.charCodeAt(0)===65279&&(IA.code=BA.slice(1));const sA=this.graph.cachedModules.get(AA);if(!sA||sA.customTransformCache||sA.originalCode!==IA.code||await this.pluginDriver.hookFirst("shouldTransformCachedModule",[{ast:sA.ast,code:sA.code,id:sA.id,meta:sA.meta,moduleSideEffects:sA.moduleSideEffects,resolvedSources:sA.resolvedIds,syntheticNamedExports:sA.syntheticNamedExports}]))gA.updateOptions(IA),await gA.setSource(await Xc(IA,gA,this.pluginDriver,this.options.onLog));else{if(sA.transformFiles)for(const CA of sA.transformFiles)this.pluginDriver.emitFile(CA);await gA.setSource(sA)}}async awaitLoadModulesPromise(){let AA;do AA=this.latestLoadModulesPromise,await AA;while(AA!==this.latestLoadModulesPromise)}extendLoadModulesPromise(AA){return this.latestLoadModulesPromise=Promise.all([AA,this.latestLoadModulesPromise]),this.latestLoadModulesPromise.catch(()=>{}),AA}async fetchDynamicDependencies(AA,tA){const gA=await Promise.all(tA.map(iA=>iA.then(async([IA,BA])=>BA===null?null:typeof BA=="string"?(IA.resolution=BA,null):IA.resolution=await this.fetchResolvedDependency(ye(BA.id),AA.id,BA))));for(const iA of gA)iA&&(AA.dynamicDependencies.add(iA),iA.dynamicImporters.push(AA.id))}async fetchModule({attributes:AA,id:tA,meta:gA,moduleSideEffects:iA,syntheticNamedExports:IA},BA,sA,CA){const oA=this.modulesById.get(tA);if(oA instanceof Pl)return BA&&hl(AA,oA.info.attributes)&&this.options.onLog(ue,tt(oA.info.attributes,AA,tA,BA)),await this.handleExistingModule(oA,sA,CA),oA;if(oA instanceof on)return Re({code:"EXTERNAL_MODULES_CANNOT_BE_TRANSFORMED_TO_MODULES",message:`${oA.id} is resolved as a module now, but it was an external module before. Please check whether there are conflicts in your Rollup options "external" and "manualChunks", manualChunks cannot include external modules.`});const QA=new Pl(this.graph,tA,this.options,sA,iA,IA,gA,AA);this.modulesById.set(tA,QA);const EA=this.addModuleSource(tA,BA,QA).then(()=>[this.getResolveStaticDependencyPromises(QA),this.getResolveDynamicImportPromises(QA),rA]),rA=nd(EA).then(()=>this.pluginDriver.hookParallel("moduleParsed",[QA.info]));rA.catch(()=>{}),this.moduleLoadPromises.set(QA,EA);const lA=await EA;return CA?CA===Yc&&await rA:await this.fetchModuleDependencies(QA,...lA),QA}async fetchModuleDependencies(AA,tA,gA,iA){this.modulesWithLoadedDependencies.has(AA)||(this.modulesWithLoadedDependencies.add(AA),await Promise.all([this.fetchStaticDependencies(AA,tA),this.fetchDynamicDependencies(AA,gA)]),AA.linkImports(),await iA)}fetchResolvedDependency(AA,tA,gA){if(gA.external){const{attributes:iA,external:IA,id:BA,moduleSideEffects:sA,meta:CA}=gA;let oA=this.modulesById.get(BA);if(oA){if(!(oA instanceof on))return Re(function(QA,EA){return{code:"INVALID_EXTERNAL_ID",message:`"${QA}" is imported as an external by "${ye(EA)}", but is already an existing non-external module id.`}}(AA,tA));hl(oA.info.attributes,iA)&&this.options.onLog(ue,tt(oA.info.attributes,iA,AA,tA))}else oA=new on(this.options,BA,sA,CA,IA!=="absolute"&&I(BA),iA),this.modulesById.set(BA,oA);return Promise.resolve(oA)}return this.fetchModule(gA,tA,!1,!1)}async fetchStaticDependencies(AA,tA){for(const gA of await Promise.all(tA.map(iA=>iA.then(([IA,BA])=>this.fetchResolvedDependency(IA,AA.id,BA)))))AA.dependencies.add(gA),gA.importers.push(AA.id);if(!this.options.treeshake||AA.info.moduleSideEffects==="no-treeshake")for(const gA of AA.dependencies)gA instanceof Pl&&(gA.importedFromNotTreeshaken=!0)}getNormalizedResolvedIdWithoutDefaults(AA,tA,gA){const{makeAbsoluteExternalsRelative:iA}=this.options;if(AA){if(typeof AA=="object"){const sA=AA.external||this.options.external(AA.id,tA,!0);return{...AA,external:sA&&(sA==="relative"||!I(AA.id)||sA===!0&&td(AA.id,gA,iA)||"absolute")}}const BA=this.options.external(AA,tA,!0);return{external:BA&&(td(AA,gA,iA)||"absolute"),id:BA&&iA?Qc(AA,tA):AA}}const IA=iA?Qc(gA,tA):gA;return AA===!1||this.options.external(IA,tA,!0)?{external:td(IA,gA,iA)||"absolute",id:IA}:null}getResolveDynamicImportPromises(AA){return AA.dynamicImports.map(async tA=>{const gA=await this.resolveDynamicImport(AA,tA.argument,AA.id,dl(tA.node));return gA&&typeof gA=="object"&&(tA.id=gA.id),[tA,gA]})}getResolveStaticDependencyPromises(AA){return Array.from(AA.sourcesWithAttributes,async([tA,gA])=>[tA,AA.resolvedIds[tA]=AA.resolvedIds[tA]||this.handleInvalidResolvedId(await this.resolveId(tA,AA.id,K,!1,gA),tA,AA.id,gA)])}getResolvedIdWithDefaults(AA,tA){if(!AA)return null;const gA=AA.external||!1;return{attributes:AA.attributes||tA,external:gA,id:AA.id,meta:AA.meta||{},moduleSideEffects:AA.moduleSideEffects??this.hasModuleSideEffects(AA.id,!!gA),resolvedBy:AA.resolvedBy??"rollup",syntheticNamedExports:AA.syntheticNamedExports??!1}}async handleExistingModule(AA,tA,gA){const iA=this.moduleLoadPromises.get(AA);if(gA)return gA===Yc?nd(iA):iA;if(tA){AA.info.isEntry=!0,this.implicitEntryModules.delete(AA);for(const IA of AA.implicitlyLoadedAfter)IA.implicitlyLoadedBefore.delete(AA);AA.implicitlyLoadedAfter.clear()}return this.fetchModuleDependencies(AA,...await iA)}handleInvalidResolvedId(AA,tA,gA,iA){return AA===null?P(tA)?Re(function(IA,BA){return{code:Ke,exporter:IA,id:BA,message:`Could not resolve "${IA}" from "${ye(BA)}"`}}(tA,gA)):(this.options.onLog(ue,function(IA,BA){return{code:Ke,exporter:IA,id:BA,message:`"${IA}" is imported by "${ye(BA)}", but could not be resolved – treating it as an external dependency.`,url:Se("troubleshooting/#warning-treating-module-as-external-dependency")}}(tA,gA)),{attributes:iA,external:!0,id:tA,meta:{},moduleSideEffects:this.hasModuleSideEffects(tA,!0),resolvedBy:"rollup",syntheticNamedExports:!1}):(AA.external&&AA.syntheticNamedExports&&this.options.onLog(ue,function(IA,BA){return{code:"EXTERNAL_SYNTHETIC_EXPORTS",exporter:IA,message:`External "${IA}" cannot have "syntheticNamedExports" enabled (imported by "${ye(BA)}").`}}(tA,gA)),AA)}async loadEntryModule(AA,tA,gA,iA,IA=!1){const BA=await Rc(AA,gA,this.options.preserveSymlinks,this.pluginDriver,this.resolveId,null,K,!0,K);if(BA==null)return Re(iA===null?function(CA){return{code:Je,message:`Could not resolve entry module "${ye(CA)}".`}}(AA):function(CA,oA){return{code:Ue,message:`Module "${ye(CA)}" that should be implicitly loaded before "${ye(oA)}" could not be resolved.`}}(AA,iA));const sA=typeof BA=="object"&&BA.external;return BA===!1||sA?Re(iA===null?sA&&IA?{code:"EXTERNAL_MODULES_CANNOT_BE_INCLUDED_IN_MANUAL_CHUNKS",message:`"${AA}" cannot be included in manualChunks because it is resolved as an external module by the "external" option or plugins.`}:function(CA){return{code:Je,message:`Entry module "${ye(CA)}" cannot be external.`}}(AA):function(CA,oA){return{code:Ue,message:`Module "${ye(CA)}" that should be implicitly loaded before "${ye(oA)}" cannot be external.`}}(AA,iA)):this.fetchModule(this.getResolvedIdWithDefaults(typeof BA=="object"?BA:{id:BA},K),void 0,tA,!1)}async resolveDynamicImport(AA,tA,gA,iA){const IA=await this.pluginDriver.hookFirst("resolveDynamicImport",[tA,gA,{attributes:iA}]);if(typeof tA!="string")return typeof IA=="string"?IA:IA?this.getResolvedIdWithDefaults(IA,iA):null;if(IA==null){const BA=AA.resolvedIds[tA];return BA?(hl(BA.attributes,iA)&&this.options.onLog(ue,tt(BA.attributes,iA,tA,gA)),BA):AA.resolvedIds[tA]=this.handleInvalidResolvedId(await this.resolveId(tA,AA.id,K,!1,iA),tA,AA.id,iA)}return this.handleInvalidResolvedId(this.getResolvedIdWithDefaults(this.getNormalizedResolvedIdWithoutDefaults(IA,gA,tA),iA),tA,gA,iA)}}function Qc(eA,AA){return P(eA)?AA?M(AA,"..",eA):M(eA):eA}function ed(eA,{fileName:AA,name:tA},gA,iA){var IA;if(AA!==null)eA.chunkFileNames.add(AA);else if(tA!==null){let BA=0;for(;((IA=eA.chunkNames[BA])==null?void 0:IA.priority)<iA;)BA++;eA.chunkNames.splice(BA,0,{isUserDefined:gA,name:tA,priority:iA})}}function td(eA,AA,tA){return tA===!0||tA==="ifRelativeSource"&&P(AA)||!I(eA)}async function nd(eA){const[AA,tA]=await eA;return Promise.all([...AA,...tA])}function sd(eA,AA,tA,gA,iA,IA,BA,sA,CA){const oA=BA.sanitizeFileName(eA||"asset");return ql(Hl(typeof BA.assetFileNames=="function"?BA.assetFileNames({get name(){return xt('Accessing the "name" property of emitted assets when generating the file name is deprecated. Use the "names" property instead.',Me,!1,CA),eA},names:AA,get originalFileName(){return xt('Accessing the "originalFileName" property of emitted assets when generating the file name is deprecated. Use the "originalFileNames" property instead.',Me,!1,CA),gA},originalFileNames:iA,source:tA,type:"asset"}):BA.assetFileNames,"output.assetFileNames",{ext:()=>O(oA).slice(1),extname:()=>O(oA),hash:QA=>IA.slice(0,Math.max(0,QA||8)),name:()=>oA.slice(0,Math.max(0,oA.length-O(oA).length))}),sA)}function id(eA,{bundle:AA},tA){AA[Gl].has(eA.toLowerCase())?tA(ue,function(gA){return{code:"FILE_NAME_CONFLICT",message:`The emitted file "${gA}" overwrites a previously emitted file of the same name.`}}(eA)):AA[eA]=Wl}const rd=new Set(["chunk","asset","prebuilt-chunk"]);function od(eA,AA,tA){if(!(typeof eA=="string"||eA instanceof Uint8Array)){const gA=AA.fileName||AA.name||tA;return Re(Et(`Could not set source for ${typeof gA=="string"?`asset "${gA}"`:"unnamed asset"}, asset source needs to be a string, Uint8Array or Buffer.`))}return eA}class ad{constructor(AA,tA,gA){this.graph=AA,this.options=tA,this.facadeChunkByModule=null,this.nextIdBase=1,this.output=null,this.outputFileEmitters=[],this.emitFile=iA=>function(IA){return!!(IA&&rd.has(IA.type))}(iA)?iA.type==="prebuilt-chunk"?this.emitPrebuiltChunk(iA):function(IA){const BA=IA.fileName||IA.name;return!BA||typeof BA=="string"&&!be(BA)}(iA)?iA.type==="chunk"?this.emitChunk(iA):this.emitAsset(iA):Re(Et(`The "fileName" or "name" properties of emitted chunks and assets must be strings that are neither absolute nor relative paths, received "${iA.fileName||iA.name}".`)):Re(Et(`Emitted files must be of type "asset", "chunk" or "prebuilt-chunk", received "${iA&&iA.type}".`)),this.finaliseAssets=()=>{for(const[iA,IA]of this.filesByReferenceId)if(IA.type==="asset"&&typeof IA.fileName!="string")return Re({code:"ASSET_SOURCE_MISSING",message:`Plugin error creating asset "${IA.name||iA}" - no asset source set.`})},this.getFileName=iA=>{const IA=this.filesByReferenceId.get(iA);return IA?IA.type==="chunk"?(BA=IA,sA=this.facadeChunkByModule,BA.fileName?BA.fileName:sA?sA.get(BA.module).getFileName():Re({code:"CHUNK_NOT_GENERATED",message:`Plugin error - Unable to get file name for emitted chunk "${BA.fileName||BA.name}". You can only get file names once chunks have been generated after the "renderStart" hook.`})):IA.type==="prebuilt-chunk"?IA.fileName:function(CA,oA){return typeof CA.fileName!="string"?Re({code:"ASSET_NOT_FINALISED",message:`Plugin error - Unable to get file name for asset "${CA.name||oA}". Ensure that the source is set and that generate is called first. If you reference assets via import.meta.ROLLUP_FILE_URL_<referenceId>, you need to either have set their source after "renderStart" or need to provide an explicit "fileName" when emitting them.`}):CA.fileName}(IA,iA):Re({code:"FILE_NOT_FOUND",message:`Plugin error - Unable to get file name for unknown file "${iA}".`});var BA,sA},this.setAssetSource=(iA,IA)=>{const BA=this.filesByReferenceId.get(iA);if(!BA)return Re({code:"ASSET_NOT_FOUND",message:`Plugin error - Unable to set the source for unknown asset "${iA}".`});if(BA.type!=="asset")return Re(Et(`Asset sources can only be set for emitted assets but "${iA}" is an emitted chunk.`));if(BA.source!==void 0)return Re({code:"ASSET_SOURCE_ALREADY_SET",message:`Unable to set the source for asset "${BA.name||iA}", source already set.`});const sA=od(IA,BA,iA);if(this.output)this.finalizeAdditionalAsset(BA,sA,this.output);else{BA.source=sA;for(const CA of this.outputFileEmitters)CA.finalizeAdditionalAsset(BA,sA,CA.output)}},this.setChunkInformation=iA=>{this.facadeChunkByModule=iA},this.setOutputBundle=(iA,IA)=>{const BA=xc[IA.hashCharacters],sA=this.output={bundle:iA,fileNamesBySourceHash:new Map,getHash:BA,outputOptions:IA};for(const oA of this.filesByReferenceId.values())oA.fileName&&id(oA.fileName,sA,this.options.onLog);const CA=new Map;for(const oA of this.filesByReferenceId.values())oA.type==="asset"&&oA.source!==void 0?oA.fileName?this.finalizeAdditionalAsset(oA,oA.source,sA):At(CA,BA(oA.source),()=>[]).push(oA):oA.type==="prebuilt-chunk"&&(this.output.bundle[oA.fileName]=this.createPrebuiltChunk(oA));for(const[oA,QA]of CA)this.finalizeAssetsWithSameSource(QA,oA,sA)},this.filesByReferenceId=gA?new Map(gA.filesByReferenceId):new Map,gA==null||gA.addOutputFileEmitter(this)}addOutputFileEmitter(AA){this.outputFileEmitters.push(AA)}assignReferenceId(AA,tA){let gA=tA;do gA=Ec(gA).slice(0,8).replaceAll("-","$");while(this.filesByReferenceId.has(gA)||this.outputFileEmitters.some(({filesByReferenceId:iA})=>iA.has(gA)));AA.referenceId=gA,this.filesByReferenceId.set(gA,AA);for(const{filesByReferenceId:iA}of this.outputFileEmitters)iA.set(gA,AA);return gA}createPrebuiltChunk(AA){return{code:AA.code,dynamicImports:[],exports:AA.exports||[],facadeModuleId:null,fileName:AA.fileName,implicitlyLoadedBefore:[],importedBindings:{},imports:[],isDynamicEntry:!1,isEntry:!1,isImplicitEntry:!1,map:AA.map||null,moduleIds:[],modules:{},name:AA.fileName,preliminaryFileName:AA.fileName,referencedFiles:[],sourcemapFileName:AA.sourcemapFileName||null,type:"chunk"}}emitAsset(AA){const tA=AA.source===void 0?void 0:od(AA.source,AA,null),gA=AA.originalFileName||null;typeof gA=="string"&&(this.graph.watchFiles[gA]=!0);const iA={fileName:AA.fileName,name:AA.name,needsCodeReference:!!AA.needsCodeReference,originalFileName:gA,referenceId:"",source:tA,type:"asset"},IA=this.assignReferenceId(iA,AA.fileName||AA.name||String(this.nextIdBase++));if(this.output)this.emitAssetWithReferenceId(iA,this.output);else for(const BA of this.outputFileEmitters)BA.emitAssetWithReferenceId(iA,BA.output);return IA}emitAssetWithReferenceId(AA,tA){const{fileName:gA,source:iA}=AA;gA&&id(gA,tA,this.options.onLog),iA!==void 0&&this.finalizeAdditionalAsset(AA,iA,tA)}emitChunk(AA){if(this.graph.phase>sl.LOAD_AND_PARSE)return Re({code:"INVALID_ROLLUP_PHASE",message:"Cannot emit chunks after module loading has finished."});if(typeof AA.id!="string")return Re(Et(`Emitted chunks need to have a valid string id, received "${AA.id}"`));const tA={fileName:AA.fileName,module:null,name:AA.name||AA.id,referenceId:"",type:"chunk"};return this.graph.moduleLoader.emitChunk(AA).then(gA=>tA.module=gA).catch(()=>{}),this.assignReferenceId(tA,AA.id)}emitPrebuiltChunk(AA){if(typeof AA.code!="string")return Re(Et(`Emitted prebuilt chunks need to have a valid string code, received "${AA.code}".`));if(typeof AA.fileName!="string"||be(AA.fileName))return Re(Et(`The "fileName" property of emitted prebuilt chunks must be strings that are neither absolute nor relative paths, received "${AA.fileName}".`));const tA={code:AA.code,exports:AA.exports,fileName:AA.fileName,map:AA.map,referenceId:"",type:"prebuilt-chunk"},gA=this.assignReferenceId(tA,tA.fileName);return this.output&&(this.output.bundle[tA.fileName]=this.createPrebuiltChunk(tA)),gA}finalizeAdditionalAsset(AA,tA,{bundle:gA,fileNamesBySourceHash:iA,getHash:IA,outputOptions:BA}){let{fileName:sA,name:CA,needsCodeReference:oA,originalFileName:QA,referenceId:EA}=AA;if(!sA){const uA=IA(tA);sA=iA.get(uA),sA||(sA=sd(CA,CA?[CA]:[],tA,QA,QA?[QA]:[],uA,BA,gA,this.options),iA.set(uA,sA))}const rA={...AA,fileName:sA,source:tA};this.filesByReferenceId.set(EA,rA);const lA=gA[sA];if((lA==null?void 0:lA.type)==="asset")lA.needsCodeReference&&(lA.needsCodeReference=oA),CA&&lA.names.push(CA),QA&&lA.originalFileNames.push(QA);else{const{options:uA}=this;gA[sA]={fileName:sA,get name(){return xt('Accessing the "name" property of emitted assets in the bundle is deprecated. Use the "names" property instead.',Me,!1,uA),CA},names:CA?[CA]:[],needsCodeReference:oA,get originalFileName(){return xt('Accessing the "originalFileName" property of emitted assets in the bundle is deprecated. Use the "originalFileNames" property instead.',Me,!1,uA),QA},originalFileNames:QA?[QA]:[],source:tA,type:"asset"}}}finalizeAssetsWithSameSource(AA,tA,{bundle:gA,fileNamesBySourceHash:iA,outputOptions:IA}){const{names:BA,originalFileNames:sA}=function(rA){const lA=[],uA=[];for(const{name:cA,originalFileName:hA}of rA)typeof cA=="string"&&lA.push(cA),hA&&uA.push(hA);return uA.sort(),lA.sort((cA,hA)=>cA.length-hA.length||(cA>hA?1:cA===hA?0:-1)),{names:lA,originalFileNames:uA}}(AA);let CA,oA="",QA=!0;for(const rA of AA){QA&&(QA=rA.needsCodeReference);const lA=sd(rA.name,BA,rA.source,rA.originalFileName,sA,tA,IA,gA,this.options);(!oA||lA.length<oA.length||lA.length===oA.length&&lA<oA)&&(oA=lA,CA=rA)}iA.set(tA,oA);for(const rA of AA){const lA={...rA,fileName:oA};this.filesByReferenceId.set(rA.referenceId,lA)}const{options:EA}=this;gA[oA]={fileName:oA,get name(){return xt('Accessing the "name" property of emitted assets in the bundle is deprecated. Use the "names" property instead.',Me,!1,EA),CA.name},names:BA,needsCodeReference:QA,get originalFileName(){return xt('Accessing the "originalFileName" property of emitted assets in the bundle is deprecated. Use the "originalFileNames" property instead.',Me,!1,EA),CA.originalFileName},originalFileNames:sA,source:CA.source,type:"asset"}}}function ld(eA,AA,tA,gA,iA){return fe[eA]<fe[iA]?ln:(IA,BA)=>{BA!=null&&tA(ue,{code:"INVALID_LOG_POSITION",message:`Plugin "${gA}" tried to add a file position to a log or warning. This is only supported in the "transform" hook at the moment and will be ignored.`}),(IA=jc(IA)).code&&!IA.pluginCode&&(IA.pluginCode=IA.code),IA.code=AA,IA.plugin=gA,tA(eA,IA)}}function cd(eA,AA,tA,gA,iA,IA){const{logLevel:BA,onLog:sA}=gA;let CA,oA=!0;if(typeof eA.cacheKey!="string"&&(eA.name.startsWith(_c)||eA.name.startsWith(Lc)||IA.has(eA.name)?oA=!1:IA.add(eA.name)),AA)if(oA){const rA=eA.cacheKey||eA.name;EA=AA[rA]||(AA[rA]=Object.create(null)),CA={delete:lA=>delete EA[lA],get(lA){const uA=EA[lA];if(uA)return uA[0]=0,uA[1]},has(lA){const uA=EA[lA];return!!uA&&(uA[0]=0,!0)},set(lA,uA){EA[lA]=[0,uA]}}}else QA=eA.name,CA={delete:()=>Bc(QA),get:()=>Bc(QA),has:()=>Bc(QA),set:()=>Bc(QA)};else CA=Tc;var QA,EA;return{addWatchFile(rA){tA.watchFiles[rA]=!0},cache:CA,debug:ld(pe,"PLUGIN_LOG",sA,eA.name,BA),emitFile:iA.emitFile.bind(iA),error:rA=>Re(mt(jc(rA),eA.name)),getFileName:iA.getFileName,getModuleIds:()=>tA.modulesById.keys(),getModuleInfo:tA.getModuleInfo,getWatchFiles:()=>Object.keys(tA.watchFiles),info:ld(he,"PLUGIN_LOG",sA,eA.name,BA),load:rA=>tA.moduleLoader.preloadModule(rA),meta:{rollupVersion:t,watchMode:tA.watchMode},parse:ll,resolve:(rA,lA,{attributes:uA,custom:cA,isEntry:hA,skipSelf:dA}=J)=>(dA??(dA=!0),tA.moduleLoader.resolveId(rA,lA,cA,hA,uA||K,dA?[{importer:lA,plugin:eA,source:rA}]:null)),setAssetSource:iA.setAssetSource,warn:ld(ue,"PLUGIN_WARNING",sA,eA.name,BA)}}const dd=Object.keys({buildEnd:1,buildStart:1,closeBundle:1,closeWatcher:1,load:1,moduleParsed:1,onLog:1,options:1,resolveDynamicImport:1,resolveId:1,shouldTransformCachedModule:1,transform:1,watchChange:1});class ud{constructor(AA,tA,gA,iA,IA){this.graph=AA,this.options=tA,this.pluginCache=iA,this.sortedPlugins=new Map,this.unfulfilledActions=new Set,this.fileEmitter=new ad(AA,tA,IA&&IA.fileEmitter),this.emitFile=this.fileEmitter.emitFile.bind(this.fileEmitter),this.getFileName=this.fileEmitter.getFileName.bind(this.fileEmitter),this.finaliseAssets=this.fileEmitter.finaliseAssets.bind(this.fileEmitter),this.setChunkInformation=this.fileEmitter.setChunkInformation.bind(this.fileEmitter),this.setOutputBundle=this.fileEmitter.setOutputBundle.bind(this.fileEmitter),this.plugins=[...IA?IA.plugins:[],...gA];const BA=new Set;if(this.pluginContexts=new Map(this.plugins.map(CA=>[CA,cd(CA,iA,AA,tA,this.fileEmitter,BA)])),IA)for(const CA of gA)for(const oA of dd)oA in CA&&tA.onLog(ue,(sA=CA.name,{code:"INPUT_HOOK_IN_OUTPUT_PLUGIN",message:`The "${oA}" hook used by the output plugin ${sA} is a build time hook and will not be run for that plugin. Either this plugin cannot be used as an output plugin, or it should have an option to configure it as an output plugin.`}));var sA}createOutputPluginDriver(AA){return new ud(this.graph,this.options,AA,this.pluginCache,this)}getUnfulfilledHookActions(){return this.unfulfilledActions}hookFirst(AA,tA,gA,iA){return this.hookFirstAndGetPlugin(AA,tA,gA,iA).then(IA=>IA&&IA[0])}async hookFirstAndGetPlugin(AA,tA,gA,iA){for(const IA of this.getSortedPlugins(AA)){if(iA!=null&&iA.has(IA))continue;const BA=await this.runHook(AA,tA,IA,gA);if(BA!=null)return[BA,IA]}return null}hookFirstSync(AA,tA,gA){for(const iA of this.getSortedPlugins(AA)){const IA=this.runHookSync(AA,tA,iA,gA);if(IA!=null)return IA}return null}async hookParallel(AA,tA,gA){const iA=[];for(const IA of this.getSortedPlugins(AA))IA[AA].sequential?(await Promise.all(iA),iA.length=0,await this.runHook(AA,tA,IA,gA)):iA.push(this.runHook(AA,tA,IA,gA));await Promise.all(iA)}hookReduceArg0(AA,[tA,...gA],iA,IA){let BA=Promise.resolve(tA);for(const sA of this.getSortedPlugins(AA))BA=BA.then(CA=>this.runHook(AA,[CA,...gA],sA,IA).then(oA=>iA.call(this.pluginContexts.get(sA),CA,oA,sA)));return BA}hookReduceArg0Sync(AA,[tA,...gA],iA,IA){for(const BA of this.getSortedPlugins(AA)){const sA=[tA,...gA],CA=this.runHookSync(AA,sA,BA,IA);tA=iA.call(this.pluginContexts.get(BA),tA,CA,BA)}return tA}async hookReduceValue(AA,tA,gA,iA){const IA=[],BA=[];for(const sA of this.getSortedPlugins(AA,fd))sA[AA].sequential?(IA.push(...await Promise.all(BA)),BA.length=0,IA.push(await this.runHook(AA,gA,sA))):BA.push(this.runHook(AA,gA,sA));return IA.push(...await Promise.all(BA)),IA.reduce(iA,await tA)}hookReduceValueSync(AA,tA,gA,iA,IA){let BA=tA;for(const sA of this.getSortedPlugins(AA)){const CA=this.runHookSync(AA,gA,sA,IA);BA=iA.call(this.pluginContexts.get(sA),BA,CA,sA)}return BA}hookSeq(AA,tA,gA){let iA=Promise.resolve();for(const IA of this.getSortedPlugins(AA))iA=iA.then(()=>this.runHook(AA,tA,IA,gA));return iA.then(md)}getSortedPlugins(AA,tA){return At(this.sortedPlugins,AA,()=>hd(AA,this.plugins,tA))}runHook(AA,tA,gA,iA){const IA=gA[AA],BA=typeof IA=="object"?IA.handler:IA;let sA=this.pluginContexts.get(gA);iA&&(sA=iA(sA,gA));let CA=null;return Promise.resolve().then(()=>{if(typeof BA!="function")return BA;const oA=BA.apply(sA,tA);return oA!=null&&oA.then?(CA=[gA.name,AA,tA],this.unfulfilledActions.add(CA),Promise.resolve(oA).then(QA=>(this.unfulfilledActions.delete(CA),QA))):oA}).catch(oA=>(CA!==null&&this.unfulfilledActions.delete(CA),Re(mt(oA,gA.name,{hook:AA}))))}runHookSync(AA,tA,gA,iA){const IA=gA[AA],BA=typeof IA=="object"?IA.handler:IA;let sA=this.pluginContexts.get(gA);iA&&(sA=iA(sA,gA));try{return BA.apply(sA,tA)}catch(CA){return Re(mt(CA,gA.name,{hook:AA}))}}}function hd(eA,AA,tA=pd){const gA=[],iA=[],IA=[];for(const BA of AA){const sA=BA[eA];if(sA){if(typeof sA=="object"){if(tA(sA.handler,eA,BA),sA.order==="pre"){gA.push(BA);continue}if(sA.order==="post"){IA.push(BA);continue}}else tA(sA,eA,BA);iA.push(BA)}}return[...gA,...iA,...IA]}function pd(eA,AA,tA){typeof eA!="function"&&Re(function(gA,iA){return{code:Fe,hook:gA,message:`Error running plugin hook "${gA}" for plugin "${iA}", expected a function hook or an object with a "handler" function.`,plugin:iA}}(AA,tA.name))}function fd(eA,AA,tA){if(typeof eA!="string"&&typeof eA!="function")return Re(function(gA,iA){return{code:Fe,hook:gA,message:`Error running plugin hook "${gA}" for plugin "${iA}", expected a string, a function hook or an object with a "handler" string or function.`,plugin:iA}}(AA,tA.name))}function md(){}class gd{constructor(AA){this.maxParallel=AA,this.queue=[],this.workerCount=0}run(AA){return new Promise((tA,gA)=>{this.queue.push({reject:gA,resolve:tA,task:AA}),this.work()})}async work(){if(this.workerCount>=this.maxParallel)return;let AA;for(this.workerCount++;AA=this.queue.shift();){const{reject:tA,resolve:gA,task:iA}=AA;try{gA(await iA())}catch(IA){tA(IA)}}this.workerCount--}}class yd{constructor(AA,tA){var gA,iA;if(this.options=AA,this.astLru=function(IA){var BA,sA,CA,oA=IA;function QA(rA,lA){++BA>oA&&(CA=sA,EA(1),++BA),sA[rA]=lA}function EA(rA){BA=0,sA=Object.create(null),rA||(CA=Object.create(null))}return EA(),{clear:EA,has:function(rA){return sA[rA]!==void 0||CA[rA]!==void 0},get:function(rA){var lA=sA[rA];return lA!==void 0?lA:(lA=CA[rA])!==void 0?(QA(rA,lA),lA):void 0},set:function(rA,lA){sA[rA]!==void 0?sA[rA]=lA:QA(rA,lA)}}}(5),this.cachedModules=new Map,this.deoptimizationTracker=new Rt,this.entryModules=[],this.modulesById=new Map,this.needsTreeshakingPass=!1,this.phase=sl.LOAD_AND_PARSE,this.scope=new Nc,this.watchFiles=Object.create(null),this.watchMode=!1,this.externalModules=[],this.implicitEntryModules=[],this.modules=[],this.getModuleInfo=IA=>{const BA=this.modulesById.get(IA);return BA?BA.info:null},AA.cache!==!1){if((gA=AA.cache)!=null&&gA.modules)for(const IA of AA.cache.modules)this.cachedModules.set(IA.id,IA);this.pluginCache=((iA=AA.cache)==null?void 0:iA.plugins)||Object.create(null);for(const IA in this.pluginCache){const BA=this.pluginCache[IA];for(const sA of Object.values(BA))sA[0]++}}if(tA){this.watchMode=!0;const IA=(...sA)=>this.pluginDriver.hookParallel("watchChange",sA),BA=()=>this.pluginDriver.hookParallel("closeWatcher",[]);tA.onCurrentRun("change",IA),tA.onCurrentRun("close",BA)}this.pluginDriver=new ud(this,AA,AA.plugins,this.pluginCache),this.moduleLoader=new Zc(this,this.modulesById,this.options,this.pluginDriver),this.fileOperationQueue=new gd(AA.maxParallelFileOps),this.pureFunctions=(({treeshake:IA})=>{const BA=Object.create(null);for(const sA of IA?IA.manualPureFunctions:[]){let CA=BA;for(const oA of sA.split("."))CA=CA[oA]||(CA[oA]=Object.create(null));CA[St]=!0}return BA})(AA)}async build(){xl("generate module graph",2),await this.generateModuleGraph(),Sl("generate module graph",2),xl("sort and bind modules",2),this.phase=sl.ANALYSE,this.sortModules(),Sl("sort and bind modules",2),xl("mark included statements",2),this.includeStatements(),Sl("mark included statements",2),this.phase=sl.GENERATE}getCache(){for(const AA in this.pluginCache){const tA=this.pluginCache[AA];let gA=!0;for(const[iA,IA]of Object.entries(tA))IA[0]>=this.options.experimentalCacheExpiry?delete tA[iA]:gA=!1;gA&&delete this.pluginCache[AA]}return{modules:this.modules.map(AA=>AA.toJSON()),plugins:this.pluginCache}}async generateModuleGraph(){var AA;if({entryModules:this.entryModules,implicitEntryModules:this.implicitEntryModules}=await this.moduleLoader.addEntryModules((AA=this.options.input,Array.isArray(AA)?AA.map(tA=>({fileName:null,id:tA,implicitlyLoadedAfter:[],importer:void 0,name:null})):Object.entries(AA).map(([tA,gA])=>({fileName:null,id:gA,implicitlyLoadedAfter:[],importer:void 0,name:tA}))),!0),this.entryModules.length===0)throw new Error("You must supply options.input to rollup");for(const tA of this.modulesById.values())tA.cacheInfoGetters(),tA instanceof Pl?this.modules.push(tA):this.externalModules.push(tA)}includeStatements(){const AA=[...this.entryModules,...this.implicitEntryModules];for(const tA of AA)an(tA);if(this.options.treeshake){let tA=1;do{xl(`treeshaking pass ${tA}`,3),this.needsTreeshakingPass=!1;for(const gA of this.modules)gA.isExecuted&&(gA.hasTreeShakingPassStarted=!0,gA.info.moduleSideEffects==="no-treeshake"?gA.includeAllInBundle():gA.include());if(tA===1)for(const gA of AA)gA.preserveSignature!==!1&&(gA.includeAllExports(!1),this.needsTreeshakingPass=!0);Sl("treeshaking pass "+tA++,3)}while(this.needsTreeshakingPass)}else for(const tA of this.modules)tA.includeAllInBundle();for(const tA of this.externalModules)tA.warnUnusedImports();for(const tA of this.implicitEntryModules)for(const gA of tA.implicitlyLoadedAfter)gA.info.isEntry||gA.isIncluded()||Re(ct(gA))}sortModules(){const{orderedModules:AA,cyclePaths:tA}=function(gA){let iA=0;const IA=[],BA=new Set,sA=new Set,CA=new Map,oA=[],QA=EA=>{if(EA instanceof Pl){for(const rA of EA.dependencies)CA.has(rA)?BA.has(rA)||IA.push(hc(rA,EA,CA)):(CA.set(rA,EA),QA(rA));for(const rA of EA.implicitlyLoadedBefore)sA.add(rA);for(const{resolution:rA}of EA.dynamicImports)rA instanceof Pl&&sA.add(rA);oA.push(EA)}EA.execIndex=iA++,BA.add(EA)};for(const EA of gA)CA.has(EA)||(CA.set(EA,null),QA(EA));for(const EA of sA)CA.has(EA)||(CA.set(EA,null),QA(EA));return{cyclePaths:IA,orderedModules:oA}}(this.entryModules);for(const gA of tA)this.options.onLog(ue,Ze(gA));this.modules=AA;for(const gA of this.modules)gA.bindReferences();this.warnForMissingExports()}warnForMissingExports(){for(const AA of this.modules)for(const tA of AA.importDescriptions.values())tA.name==="*"||tA.module.getVariableForExportName(tA.name)[0]||AA.log(ue,lt(tA.name,AA.id,tA.module.id),tA.start)}}function bd(eA,AA){return AA()}function Ed(eA,AA,tA,gA){eA=hd("onLog",eA);const iA=fe[gA],IA=(BA,sA,CA=Y)=>{if(Be(sA),!(fe[BA]<iA)){for(const oA of eA){if(CA.has(oA))continue;const{onLog:QA}=oA,EA=rA=>fe[rA]<iA?ln:lA=>IA(rA,jc(lA),new Set(CA).add(oA));if(("handler"in QA?QA.handler:QA).call({debug:EA(pe),error:rA=>Re(jc(rA)),info:EA(he),meta:{rollupVersion:t,watchMode:tA},warn:EA(ue)},BA,sA)===!1)return}AA(BA,sA)}};return IA}const xd=eA=>{var AA;return eA.cache===!0?void 0:((AA=eA.cache)==null?void 0:AA.cache)||eA.cache},Sd=eA=>{if(eA===!0)return()=>!0;if(typeof eA=="function")return(tA,...gA)=>!tA.startsWith("\0")&&eA(tA,...gA)||!1;if(eA){const tA=new Set,gA=[];for(const iA of(AA=eA,Array.isArray(AA)?AA.filter(Boolean):AA?[AA]:[]))iA instanceof RegExp?gA.push(iA):tA.add(iA);return(iA,...IA)=>tA.has(iA)||gA.some(BA=>BA.test(iA))}var AA;return()=>!1},Ad=eA=>{const AA=eA.input;return AA==null?[]:typeof AA=="string"?[AA]:AA},$d=eA=>{const AA=eA.jsx;if(!AA)return!1;const tA=Jc(AA,Hc,"jsx",$e,"false, "),{factory:gA,importSource:iA,mode:IA}=tA;switch(IA){case"automatic":return{factory:gA||"React.createElement",importSource:iA||"react",jsxImportSource:tA.jsxImportSource||"react/jsx-runtime",mode:"automatic"};case"preserve":return!iA||gA||tA.fragment||Re(at("jsx",$e,"when preserving JSX and specifying an importSource, you also need to specify a factory or fragment")),{factory:gA||null,fragment:tA.fragment||null,importSource:iA||null,mode:"preserve"};default:return IA&&IA!=="classic"&&Re(at("jsx.mode",$e,'mode must be "automatic", "classic" or "preserve"',IA)),{factory:gA||"React.createElement",fragment:tA.fragment||"React.Fragment",importSource:iA||null,mode:"classic"}}},vd=eA=>{const AA=eA.maxParallelFileOps;return typeof AA=="number"?AA<=0?1/0:AA:20},wd=(eA,AA)=>{const tA=eA.moduleContext;if(typeof tA=="function")return gA=>tA(gA)??AA;if(tA){const gA=Object.create(null);for(const[iA,IA]of Object.entries(tA))gA[M(iA)]=IA;return iA=>gA[iA]??AA}return()=>AA},Id=eA=>{if(eA.treeshake===!1)return!1;const AA=Jc(eA.treeshake,Wc,"treeshake","configuration-options/#treeshake","false, true, ");return{annotations:AA.annotations!==!1,correctVarValueBeforeDeclaration:AA.correctVarValueBeforeDeclaration===!0,manualPureFunctions:AA.manualPureFunctions??X,moduleSideEffects:Pd(AA.moduleSideEffects),propertyReadSideEffects:AA.propertyReadSideEffects==="always"?"always":AA.propertyReadSideEffects!==!1,tryCatchDeoptimization:AA.tryCatchDeoptimization!==!1,unknownGlobalSideEffects:AA.unknownGlobalSideEffects!==!1}},Pd=eA=>{if(typeof eA=="boolean")return()=>eA;if(eA==="no-external")return(AA,tA)=>!tA;if(typeof eA=="function")return(AA,tA)=>!!AA.startsWith("\0")||eA(AA,tA)!==!1;if(Array.isArray(eA)){const AA=new Set(eA);return tA=>AA.has(tA)}return eA&&Re(at("treeshake.moduleSideEffects","configuration-options/#treeshake-modulesideeffects",'please use one of false, "no-external", a function or an array')),()=>!0},kd=/[\u0000-\u001F"#$%&*+,:;<=>?[\]^`{|}\u007F]/g,Nd=/^[a-z]:/i;function Cd(eA){const AA=Nd.exec(eA),tA=AA?AA[0]:"";return tA+eA.slice(tA.length).replace(kd,"_")}const Od=(eA,AA,tA)=>{const{file:gA}=eA;if(typeof gA=="string"){if(AA)return Re(at("output.file",we,'you must set "output.dir" instead of "output.file" when using the "output.preserveModules" option'));if(!Array.isArray(tA.input))return Re(at("output.file",we,'you must set "output.dir" instead of "output.file" when providing named inputs'))}return gA},Dd=eA=>{const AA=eA.format;switch(AA){case void 0:case"es":case"esm":case"module":return"es";case"cjs":case"commonjs":return"cjs";case"system":case"systemjs":return"system";case"amd":case"iife":case"umd":return AA;default:return Re(at("output.format",Pe,'Valid values are "amd", "cjs", "system", "es", "iife" or "umd"',AA))}},Md=(eA,AA)=>{const tA=eA.inlineDynamicImports||!1,{input:gA}=AA;return tA&&(Array.isArray(gA)?gA:Object.keys(gA)).length>1?Re(at("output.inlineDynamicImports",ke,'multiple inputs are not supported when "output.inlineDynamicImports" is true')):tA},Rd=(eA,AA,tA)=>{const gA=eA.preserveModules||!1;if(gA){if(AA)return Re(at("output.inlineDynamicImports",ke,'this option is not supported for "output.preserveModules"'));if(tA.preserveEntrySignatures===!1)return Re(at("preserveEntrySignatures","configuration-options/#preserveentrysignatures",'setting this option to false is not supported for "output.preserveModules"'))}return gA},_d=eA=>{const{preserveModulesRoot:AA}=eA;if(AA!=null)return M(AA)},Ld=eA=>{const AA={autoId:!1,basePath:"",define:"define",forceJsExtensionForImports:!1,...eA.amd};return(AA.autoId||AA.basePath)&&AA.id?Re(at("output.amd.id",ve,'this option cannot be used together with "output.amd.autoId"/"output.amd.basePath"')):AA.basePath&&!AA.autoId?Re(at("output.amd.basePath","configuration-options/#output-amd-basepath",'this option only works with "output.amd.autoId"')):AA.autoId?{autoId:!0,basePath:AA.basePath,define:AA.define,forceJsExtensionForImports:AA.forceJsExtensionForImports}:{autoId:!1,define:AA.define,forceJsExtensionForImports:AA.forceJsExtensionForImports,id:AA.id}},Td=(eA,AA)=>{const tA=eA[AA];return typeof tA=="function"?tA:()=>tA||""},Bd=(eA,AA)=>{const{dir:tA}=eA;return typeof tA=="string"&&typeof AA=="string"?Re(at("output.dir",we,'you must set either "output.file" for a single-file build or "output.dir" when generating multiple chunks')):tA},zd=(eA,AA)=>{const tA=eA.entryFileNames;return tA==null&&AA.add("entryFileNames"),tA??"[name].js"};function Vd(eA,AA){const tA=eA.exports;if(tA==null)AA.add("exports");else if(!["default","named","none","auto"].includes(tA))return Re({code:ze,message:`"output.exports" must be "default", "named", "none", "auto", or left unspecified (defaults to "auto"), received "${tA}".`,url:Se(Ie)});return tA||"auto"}const Fd=(eA,AA)=>(eA.externalImportAssertions!=null&&xt('The "output.externalImportAssertions" option is deprecated. Use the "output.externalImportAttributes" option instead.',"configuration-options/#output-externalimportattributes",!0,AA),eA.externalImportAttributes??eA.externalImportAssertions??!0),jd=eA=>{const AA=Jc(eA.generatedCode,qc,"output.generatedCode","configuration-options/#output-generatedcode","");return{arrowFunctions:AA.arrowFunctions===!0,constBindings:AA.constBindings===!0,objectShorthand:AA.objectShorthand===!0,reservedNamesAsProps:AA.reservedNamesAsProps!==!1,symbols:AA.symbols===!0}},Ud=(eA,AA)=>{if(AA)return"";const tA=eA.indent;return tA===!1?"":tA??!0},Gd=new Set(["compat","auto","esModule","default","defaultOnly"]),Wd=eA=>{const AA=eA.interop;if(typeof AA=="function"){const tA=Object.create(null);let gA=null;return iA=>iA===null?gA||Hd(gA=AA(iA)):iA in tA?tA[iA]:Hd(tA[iA]=AA(iA))}return AA===void 0?()=>"default":()=>Hd(AA)},Hd=eA=>Gd.has(eA)?eA:Re(at("output.interop",Ne,`use one of ${Array.from(Gd,AA=>JSON.stringify(AA)).join(", ")}`,eA)),qd=(eA,AA,tA)=>{const gA=eA.manualChunks;if(gA){if(AA)return Re(at("output.manualChunks",Ce,'this option is not supported for "output.inlineDynamicImports"'));if(tA)return Re(at("output.manualChunks",Ce,'this option is not supported for "output.preserveModules"'))}return gA||{}},Jd=(eA,AA,tA)=>eA.minifyInternalExports??(tA||AA==="es"||AA==="system"),Kd=(eA,AA)=>{const tA=eA.sourcemapFileNames;return tA==null&&AA.add("sourcemapFileNames"),tA},Xd=eA=>{const{sourcemapBaseUrl:AA}=eA;if(AA)return function(gA){try{new URL(gA)}catch{return!1}return!0}(AA)?(tA=AA).endsWith("/")?tA:tA+"/":Re(at("output.sourcemapBaseUrl","configuration-options/#output-sourcemapbaseurl",`must be a valid URL, received ${JSON.stringify(AA)}`));var tA};function Yd(eA){return async function(AA,tA){const{options:gA,unsetOptions:iA}=await async function(CA,oA){if(!CA)throw new Error("You must supply an options object to rollup");const QA=await async function(lA,uA){const cA=hd("options",await Kc(lA.plugins)),hA=lA.logLevel||he,dA=Ed(cA,zc(lA,hA),uA,hA);for(const pA of cA){const{name:wA,options:mA}=pA,MA="handler"in mA?mA.handler:mA,fA=await MA.call({debug:ld(pe,"PLUGIN_LOG",dA,wA,hA),error:LA=>Re(mt(jc(LA),wA,{hook:"onLog"})),info:ld(he,"PLUGIN_LOG",dA,wA,hA),meta:{rollupVersion:t,watchMode:uA},warn:ld(ue,"PLUGIN_WARNING",dA,wA,hA)},lA);fA&&(lA=fA)}return lA}(CA,oA),{options:EA,unsetOptions:rA}=await async function(lA,uA){const cA=new Set,hA=lA.context??"undefined",dA=await Kc(lA.plugins),pA=lA.logLevel||he,wA=Ed(dA,zc(lA,pA),uA,pA),mA=lA.strictDeprecations||!1,MA=vd(lA),fA={cache:xd(lA),context:hA,experimentalCacheExpiry:lA.experimentalCacheExpiry??10,experimentalLogSideEffects:lA.experimentalLogSideEffects||!1,external:Sd(lA.external),input:Ad(lA),jsx:$d(lA),logLevel:pA,makeAbsoluteExternalsRelative:lA.makeAbsoluteExternalsRelative??"ifRelativeSource",maxParallelFileOps:MA,moduleContext:wd(lA,hA),onLog:wA,perf:lA.perf||!1,plugins:dA,preserveEntrySignatures:lA.preserveEntrySignatures??"exports-only",preserveSymlinks:lA.preserveSymlinks||!1,shimMissingExports:lA.shimMissingExports||!1,strictDeprecations:mA,treeshake:Id(lA)};return Gc(lA,[...Object.keys(fA),"onwarn","watch"],"input options",wA,/^(output)$/),{options:fA,unsetOptions:cA}}(QA,oA);return Zd(EA.plugins,_c),{options:EA,unsetOptions:rA}}(AA,tA!==null);(function(CA){CA.perf?(ml=new Map,xl=yl,Sl=bl,CA.plugins=CA.plugins.map($l)):(xl=ln,Sl=ln)})(gA),await async function(){await io()}();const IA=new yd(gA,tA),BA=AA.cache!==!1;AA.cache&&(gA.cache=void 0,AA.cache=void 0),xl("BUILD",1),await bd(IA.pluginDriver,async()=>{try{xl("initialize",2),await IA.pluginDriver.hookParallel("buildStart",[gA]),Sl("initialize",2),await IA.build()}catch(CA){const oA=Object.keys(IA.watchFiles);throw oA.length>0&&(CA.watchFiles=oA),await IA.pluginDriver.hookParallel("buildEnd",[CA]),await IA.pluginDriver.hookParallel("closeBundle",[]),CA}await IA.pluginDriver.hookParallel("buildEnd",[])}),Sl("BUILD",1);const sA={cache:BA?IA.getCache():void 0,async close(){sA.closed||(sA.closed=!0,await IA.pluginDriver.hookParallel("closeBundle",[]))},closed:!1,generate:async CA=>sA.closed?Re({code:"ALREADY_CLOSED",message:'Bundle is already closed, no more calls to "generate" or "write" are allowed.'}):Qd(!1,gA,iA,CA,IA),get watchFiles(){return Object.keys(IA.watchFiles)},write:async CA=>sA.closed?Re({code:"ALREADY_CLOSED",message:'Bundle is already closed, no more calls to "generate" or "write" are allowed.'}):Qd(!0,gA,iA,CA,IA)};return gA.perf&&(sA.getTimings=El),sA}(eA,null)}function Zd(eA,AA){for(const[tA,gA]of eA.entries())gA.name||(gA.name=`${AA}${tA+1}`)}async function Qd(eA,AA,tA,gA,iA){const{options:IA,outputPluginDriver:BA,unsetOptions:sA}=await async function(CA,oA,QA,EA){if(!CA)throw new Error("You must supply an options object");const rA=await Kc(CA.plugins);Zd(rA,Lc);const lA=oA.createOutputPluginDriver(rA);return{...await eu(QA,EA,CA,lA),outputPluginDriver:lA}}(gA,iA.pluginDriver,AA,tA);return bd(0,async()=>{const CA=new Pc(IA,sA,AA,BA,iA),oA=await CA.generate(eA);if(eA){if(xl("WRITE",1),!IA.dir&&!IA.file)return Re({code:"MISSING_OPTION",message:'You must specify "output.file" or "output.dir" for the build.',url:Se(we)});await Promise.all(Object.values(oA).map(EA=>iA.fileOperationQueue.run(()=>async function(rA,lA){const uA=M(lA.dir||C(lA.file),rA.fileName);return await Oc(C(uA),{recursive:!0}),Mc(uA,rA.type==="asset"?rA.source:rA.code)}(EA,IA)))),await BA.hookParallel("writeBundle",[IA,oA]),Sl("WRITE",1)}return QA=oA,{output:Object.values(QA).filter(EA=>Object.keys(EA).length>0).sort((EA,rA)=>nu(EA)-nu(rA))};var QA})}function eu(eA,AA,tA,gA){return async function(iA,IA,BA){const sA=new Set(BA),CA=iA.compact||!1,oA=Dd(iA),QA=Md(iA,IA),EA=Rd(iA,QA,IA),rA=Od(iA,EA,IA),lA=jd(iA),uA=Fd(iA,IA),cA={amd:Ld(iA),assetFileNames:iA.assetFileNames??"assets/[name]-[hash][extname]",banner:Td(iA,"banner"),chunkFileNames:iA.chunkFileNames??"[name]-[hash].js",compact:CA,dir:Bd(iA,rA),dynamicImportInCjs:iA.dynamicImportInCjs??!0,entryFileNames:zd(iA,sA),esModule:iA.esModule??"if-default-prop",experimentalMinChunkSize:iA.experimentalMinChunkSize??1,exports:Vd(iA,sA),extend:iA.extend||!1,externalImportAssertions:uA,externalImportAttributes:uA,externalLiveBindings:iA.externalLiveBindings??!0,file:rA,footer:Td(iA,"footer"),format:oA,freeze:iA.freeze??!0,generatedCode:lA,globals:iA.globals||{},hashCharacters:iA.hashCharacters??"base64",hoistTransitiveImports:iA.hoistTransitiveImports??!0,importAttributesKey:iA.importAttributesKey??"assert",indent:Ud(iA,CA),inlineDynamicImports:QA,interop:Wd(iA),intro:Td(iA,"intro"),manualChunks:qd(iA,QA,EA),minifyInternalExports:Jd(iA,oA,CA),name:iA.name,noConflict:iA.noConflict||!1,outro:Td(iA,"outro"),paths:iA.paths||{},plugins:await Kc(iA.plugins),preserveModules:EA,preserveModulesRoot:_d(iA),reexportProtoFromExternal:iA.reexportProtoFromExternal??!0,sanitizeFileName:typeof iA.sanitizeFileName=="function"?iA.sanitizeFileName:iA.sanitizeFileName===!1?hA=>hA:Cd,sourcemap:iA.sourcemap||!1,sourcemapBaseUrl:Xd(iA),sourcemapDebugIds:iA.sourcemapDebugIds||!1,sourcemapExcludeSources:iA.sourcemapExcludeSources||!1,sourcemapFile:iA.sourcemapFile,sourcemapFileNames:Kd(iA,sA),sourcemapIgnoreList:typeof iA.sourcemapIgnoreList=="function"?iA.sourcemapIgnoreList:iA.sourcemapIgnoreList===!1?()=>!1:hA=>hA.includes("node_modules"),sourcemapPathTransform:iA.sourcemapPathTransform,strict:iA.strict??!0,systemNullSetters:iA.systemNullSetters??!0,validate:iA.validate||!1,virtualDirname:iA.virtualDirname||"_virtual"};return Gc(iA,Object.keys(cA),"output options",IA.onLog),{options:cA,unsetOptions:sA}}(gA.hookReduceArg0Sync("outputOptions",[tA],(iA,IA)=>IA||iA,iA=>{const IA=()=>iA.error({code:"CANNOT_EMIT_FROM_OPTIONS_HOOK",message:'Cannot emit files or set asset sources in the "outputOptions" hook, use the "renderStart" hook instead.'});return{...iA,emitFile:IA,setAssetSource:IA}}),eA,AA)}var tu;function nu(eA){return eA.type==="asset"?tu.ASSET:eA.isEntry?tu.ENTRY_CHUNK:tu.SECONDARY_CHUNK}(function(eA){eA[eA.ENTRY_CHUNK=0]="ENTRY_CHUNK",eA[eA.SECONDARY_CHUNK=1]="SECONDARY_CHUNK",eA[eA.ASSET=2]="ASSET"})(tu||(tu={}));const bundle=async(eA,AA,tA)=>(await(await Yd({input:`${INTERNAL_TAG}/index.js`,plugins:[plugin(eA,AA,tA),plugin$1()],external:IA=>IA.startsWith("svelte")||IA.startsWith("https://"),onwarn:warning})).generate({format:"esm"})).output[0].code;self.addEventListener("message",async eA=>{try{if(eA.data.type=="init"){const AA={host:eA.data.host,cdn_url:eA.data.cdn_url},tA=await service_fetch(AA,concat([header(nil_xit_proto.MessageType.MessageType_FrameRequest),nil_xit_proto.FrameRequest.encode({id:eA.data.id}).finish()]),(gA,iA)=>{if(gA===nil_xit_proto.MessageType.MessageType_FrameResponse){const IA=nil_xit_proto.FrameResponse.decode(iA);if(eA.data.id===IA.id)return IA}});if(tA.value==="content")self.postMessage({ok:!0,code:tA.content});else if(tA.value==="file"&&tA.file!=null){const gA=[],iA=await bundle(AA,ROOT_FILE(tA.file),(IA,BA)=>gA.push({target:IA,metadata:BA}));self.postMessage({ok:!0,code:iA,files:gA})}}}catch(AA){self.postMessage({ok:!1,err:AA})}})})();
111
+ `,s:";"},bA=wA?"const":"var",JA=(vA,{isAsync:xA,name:kA})=>`${xA?"async ":""}function${kA?` ${kA}`:""}${fA}(${vA.join(`,${fA}`)})${fA}`,RA=pA?(vA,{isAsync:xA,name:kA})=>{const aA=vA.length===1;return`${kA?`${bA} ${kA}${fA}=${fA}`:""}${xA?`async${aA?" ":fA}`:""}${aA?vA[0]:`(${vA.join(`,${fA}`)})`}${fA}=>${fA}`}:JA,NA=(vA,{functionReturn:xA,lineBreakIndent:kA,name:aA})=>[`${RA(vA,{isAsync:!1,name:aA})}${pA?kA?`${LA}${kA.base}${kA.t}`:"":`{${kA?`${LA}${kA.base}${kA.t}`:fA}${xA?"return ":""}`}`,pA?`${aA?";":""}${kA?`${LA}${kA.base}`:""}`:`${_A}${kA?`${LA}${kA.base}`:fA}}`],FA=MA?vA=>tn.test(vA):vA=>!Yt.has(vA)&&tn.test(vA);return{_:fA,cnst:bA,getDirectReturnFunction:NA,getDirectReturnIifeLeft:(vA,xA,{needsArrowReturnParens:kA,needsWrappedFunction:aA})=>{const[nA,DA]=NA(vA,{functionReturn:!0,lineBreakIndent:null,name:null});return`${pc(`${nA}${pc(xA,pA&&kA)}${DA}`,pA||aA)}(`},getFunctionIntro:RA,getNonArrowFunctionIntro:JA,getObject(vA,{lineBreakIndent:xA}){const kA=xA?`${LA}${xA.base}${xA.t}`:fA;return`{${vA.map(([aA,nA])=>{if(aA===null)return`${kA}${nA}`;const DA=sn(aA);return aA===nA&&mA&&aA===DA?kA+aA:`${kA}${DA}:${fA}${nA}`}).join(",")}${vA.length===0?"":xA?`${LA}${xA.base}`:fA}}`},getPropertyAccess:vA=>FA(vA)?`.${vA}`:`[${JSON.stringify(vA)}]`,n:LA,s:_A}}(this.outputOptions),oA=function(dA){const pA=[];for(const wA of dA.values())wA instanceof Pl&&(wA.isIncluded()||wA.info.isEntry||wA.includedDynamicImporters.length>0)&&pA.push(wA);return pA}(this.graph.modulesById),QA=function(dA){if(dA.length===0)return"/";if(dA.length===1)return C(dA[0]);const pA=dA.slice(1).reduce((wA,mA)=>{const MA=mA.split(/\/+|\\+/);let fA;for(fA=0;wA[fA]===MA[fA]&&fA<Math.min(wA.length,MA.length);fA++);return wA.slice(0,fA)},dA[0].split(/\/+|\\+/));return pA.length>1?pA.join("/"):"/"}(function(dA,pA){const wA=[];for(const mA of dA)(mA.info.isEntry||pA)&&I(mA.id)&&wA.push(mA.id);return wA}(oA,BA)),EA=function(dA,pA,wA){const mA=new Map;for(const MA of dA.values())MA instanceof on&&mA.set(MA,new pr(MA,pA,wA));return mA}(this.graph.modulesById,this.outputOptions,QA),rA=iA?[{alias:null,modules:oA}]:BA?oA.map(dA=>({alias:null,modules:[dA]})):sc(this.graph.entryModules,sA,gA,this.inputOptions.onLog),lA=new Array(rA.length),uA=new Map;let cA=0;for(const{alias:dA,modules:pA}of rA){pA.sort(uc);const wA=new Xl(pA,this.inputOptions,this.outputOptions,this.unsetOptions,this.pluginDriver,this.graph.modulesById,uA,EA,this.facadeChunkByModule,this.includedNamespaces,dA,tA,AA,QA,CA);lA[cA++]=wA}for(const dA of lA)dA.link();const hA=[];for(const dA of lA)hA.push(...dA.generateFacades());return[...lA,...hA]}}function kc(eA,AA,tA){const gA=tA.get(AA);if(typeof gA=="string"&&gA!==eA)return Re((iA=AA.id,IA=eA,BA=gA,{code:"INVALID_CHUNK",message:`Cannot assign "${ye(iA)}" to the "${IA}" chunk as it is already in the "${BA}" chunk.`}));var iA,IA,BA;tA.set(AA,eA)}class Nc extends _s{constructor(){super(),this.parent=null,this.variables.set("undefined",new cr)}findVariable(AA){let tA=this.variables.get(AA);return tA||(tA=new Ps(AA),this.variables.set(AA,tA)),tA}}const Cc=eA=>()=>Re(function(AA){return{code:"NO_FS_IN_BROWSER",message:`Cannot access the file system (via "${AA}") when using the browser build of Rollup. Make sure you supply a plugin with custom resolveId and load hooks to Rollup.`,url:Se("plugin-development/#a-simple-example")}}(eA)),Oc=Cc("fs.mkdir"),Dc=Cc("fs.readFile"),Mc=Cc("fs.writeFile");async function Rc(eA,AA,tA,gA,iA,IA,BA,sA,CA){const oA=await function(QA,EA,rA,lA,uA,cA,hA,dA){let pA=null,wA=null;if(uA){pA=new Set;for(const mA of uA)QA===mA.source&&EA===mA.importer&&pA.add(mA.plugin);wA=(mA,MA)=>({...mA,resolve:(fA,LA,{attributes:_A,custom:bA,isEntry:JA,skipSelf:RA}=J)=>(RA??(RA=!0),lA(fA,LA,bA,JA,_A||K,RA?[...uA,{importer:LA,plugin:MA,source:fA}]:uA))})}return rA.hookFirstAndGetPlugin("resolveId",[QA,EA,{attributes:dA,custom:cA,isEntry:hA}],wA,pA)}(eA,AA,gA,iA,IA,BA,sA,CA);return oA==null?Cc("path.resolve")():oA[0]}const _c="at position ",Lc="at output position ",Tc={delete:()=>!1,get(){},has:()=>!1,set(){}};function Bc(eA){return eA.startsWith(_c)||eA.startsWith(Lc)?Re({code:"ANONYMOUS_PLUGIN_CACHE",message:"A plugin is trying to use the Rollup cache but is not declaring a plugin name or cacheKey."}):Re({code:"DUPLICATE_PLUGIN_NAME",message:`The plugin name ${eA} is being used twice in the same build. Plugin names must be distinct or provide a cacheKey (please post an issue to the plugin if you are a plugin user).`})}const zc=(eA,AA,tA=Uc)=>{const{onwarn:gA,onLog:iA}=eA,IA=Vc(tA,gA);if(iA){const BA=fe[AA];return(sA,CA)=>iA(sA,Fc(CA),(oA,QA)=>{if(oA==="error")return Re(jc(QA));fe[oA]>=BA&&IA(oA,jc(QA))})}return IA},Vc=(eA,AA)=>AA?(tA,gA)=>{tA===ue?AA(Fc(gA),iA=>eA(ue,jc(iA))):eA(tA,gA)}:eA,Fc=eA=>(Object.defineProperty(eA,"toString",{value:()=>eA.message,writable:!0}),eA),jc=eA=>typeof eA=="string"?{message:eA}:typeof eA=="function"?jc(eA()):eA,Uc=(eA,{message:AA})=>{switch(eA){case ue:return console.warn(AA);case pe:return console.debug(AA);default:return console.info(AA)}};function Gc(eA,AA,tA,gA,iA=/$./){const IA=new Set(AA),BA=Object.keys(eA).filter(sA=>!(IA.has(sA)||iA.test(sA)));BA.length>0&&gA(ue,function(sA,CA,oA){return{code:"UNKNOWN_OPTION",message:`Unknown ${sA}: ${CA.join(", ")}. Allowed options: ${oA.join(", ")}`}}(tA,BA,[...IA].sort()))}const Wc={recommended:{annotations:!0,correctVarValueBeforeDeclaration:!1,manualPureFunctions:X,moduleSideEffects:()=>!0,propertyReadSideEffects:!0,tryCatchDeoptimization:!0,unknownGlobalSideEffects:!1},safest:{annotations:!0,correctVarValueBeforeDeclaration:!0,manualPureFunctions:X,moduleSideEffects:()=>!0,propertyReadSideEffects:!0,tryCatchDeoptimization:!0,unknownGlobalSideEffects:!0},smallest:{annotations:!0,correctVarValueBeforeDeclaration:!1,manualPureFunctions:X,moduleSideEffects:()=>!1,propertyReadSideEffects:!1,tryCatchDeoptimization:!1,unknownGlobalSideEffects:!1}},Hc={preserve:{factory:null,fragment:null,importSource:null,mode:"preserve"},"preserve-react":{factory:"React.createElement",fragment:"React.Fragment",importSource:"react",mode:"preserve"},react:{factory:"React.createElement",fragment:"React.Fragment",importSource:"react",mode:"classic"},"react-jsx":{factory:"React.createElement",importSource:"react",jsxImportSource:"react/jsx-runtime",mode:"automatic"}},qc={es2015:{arrowFunctions:!0,constBindings:!0,objectShorthand:!0,reservedNamesAsProps:!0,symbols:!0},es5:{arrowFunctions:!1,constBindings:!1,objectShorthand:!1,reservedNamesAsProps:!0,symbols:!1}},Jc=(eA,AA,tA,gA,iA)=>{const IA=eA==null?void 0:eA.preset;if(IA){const BA=AA[IA];if(BA)return{...BA,...eA};Re(at(`${tA}.preset`,gA,`valid values are ${me(Object.keys(AA))}`,IA))}return((BA,sA,CA,oA)=>QA=>{if(typeof QA=="string"){const EA=BA[QA];if(EA)return EA;Re(at(sA,CA,`valid values are ${oA}${me(Object.keys(BA))}. You can also supply an object for more fine-grained control`,QA))}return(EA=>EA&&typeof EA=="object"?EA:{})(QA)})(AA,tA,gA,iA)(eA)},Kc=async eA=>(await async function(AA){do AA=(await Promise.all(AA)).flat(1/0);while(AA.some(tA=>tA==null?void 0:tA.then));return AA}([eA])).filter(Boolean);async function Xc(eA,AA,tA,gA){const iA=AA.id,IA=[];let BA=eA.map===null?null:ol(eA.map);const sA=eA.code;let CA=eA.ast;const oA=[],QA=[];let EA=!1;const rA=()=>EA=!0;let lA="",uA=eA.code;const cA=dA=>(pA,wA)=>{pA=jc(pA),wA&&Le(pA,wA,uA,iA),pA.id=iA,pA.hook="transform",dA(pA)};let hA;try{hA=await tA.hookReduceArg0("transform",[uA,iA],function(dA,pA,wA){let mA,MA;if(typeof pA=="string")mA=pA;else{if(!pA||typeof pA!="object")return dA;if(AA.updateOptions(pA),pA.code==null)return(pA.map||pA.ast)&&gA(ue,function(fA){return{code:"NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE",message:`The plugin "${fA}" returned a "map" or "ast" without returning a "code". This will be ignored.`}}(wA.name)),dA;({code:mA,map:MA,ast:CA}=pA)}return MA!==null&&IA.push(ol(typeof MA=="string"?JSON.parse(MA):MA)||{missing:!0,plugin:wA.name}),uA=mA,mA},(dA,pA)=>{return lA=pA.name,{...dA,addWatchFile(MA){oA.push(MA),dA.addWatchFile(MA)},cache:EA?dA.cache:(wA=dA.cache,mA=rA,{delete:MA=>(mA(),wA.delete(MA)),get:MA=>(mA(),wA.get(MA)),has:MA=>(mA(),wA.has(MA)),set:(MA,fA)=>(mA(),wA.set(MA,fA))}),debug:cA(dA.debug),emitFile:MA=>(QA.push(MA),tA.emitFile(MA)),error:(MA,fA)=>(typeof MA=="string"&&(MA={message:MA}),fA&&Le(MA,fA,uA,iA),MA.id=iA,MA.hook="transform",dA.error(MA)),getCombinedSourcemap(){const MA=function(fA,LA,_A,bA,JA){return bA.length===0?_A:ol({version:3,...yc(fA,LA,_A,bA,gc(JA)).traceMappings()})}(iA,sA,BA,IA,gA);return MA?(BA!==MA&&(BA=MA,IA.length=0),new c({...MA,file:null,sourcesContent:MA.sourcesContent})):new b(sA).generateMap({hires:!0,includeContent:!0,source:iA})},info:cA(dA.info),setAssetSource(){return this.error({code:"INVALID_SETASSETSOURCE",message:"setAssetSource cannot be called in transform for caching reasons. Use emitFile with a source, or call setAssetSource in another hook."})},warn:cA(dA.warn)};var wA,mA})}catch(dA){return Re(mt(dA,lA,{hook:"transform",id:iA}))}return!EA&&QA.length>0&&(AA.transformFiles=QA),{ast:CA,code:hA,customTransformCache:EA,originalCode:sA,originalSourcemap:BA,sourcemapChain:IA,transformDependencies:oA}}const Yc="resolveDependencies";class Zc{constructor(AA,tA,gA,iA){this.graph=AA,this.modulesById=tA,this.options=gA,this.pluginDriver=iA,this.implicitEntryModules=new Set,this.indexedEntryModules=[],this.latestLoadModulesPromise=Promise.resolve(),this.moduleLoadPromises=new Map,this.modulesWithLoadedDependencies=new Set,this.nextChunkNamePriority=0,this.nextEntryModuleIndex=0,this.resolveId=async(IA,BA,sA,CA,oA,QA=null)=>this.getResolvedIdWithDefaults(this.getNormalizedResolvedIdWithoutDefaults(!this.options.external(IA,BA,!1)&&await Rc(IA,BA,this.options.preserveSymlinks,this.pluginDriver,this.resolveId,QA,sA,typeof CA=="boolean"?CA:!BA,oA),BA,IA),oA),this.hasModuleSideEffects=gA.treeshake?gA.treeshake.moduleSideEffects:()=>!0}async addAdditionalModules(AA,tA){const gA=this.extendLoadModulesPromise(Promise.all(AA.map(iA=>this.loadEntryModule(iA,!1,void 0,null,tA))));return await this.awaitLoadModulesPromise(),gA}async addEntryModules(AA,tA){const gA=this.nextEntryModuleIndex;this.nextEntryModuleIndex+=AA.length;const iA=this.nextChunkNamePriority;this.nextChunkNamePriority+=AA.length;const IA=await this.extendLoadModulesPromise(Promise.all(AA.map(({id:BA,importer:sA})=>this.loadEntryModule(BA,!0,sA,null))).then(BA=>{for(const[sA,CA]of BA.entries()){CA.isUserDefinedEntryPoint=CA.isUserDefinedEntryPoint||tA,ed(CA,AA[sA],tA,iA+sA);const oA=this.indexedEntryModules.find(QA=>QA.module===CA);oA?oA.index=Math.min(oA.index,gA+sA):this.indexedEntryModules.push({index:gA+sA,module:CA})}return this.indexedEntryModules.sort(({index:sA},{index:CA})=>sA>CA?1:-1),BA}));return await this.awaitLoadModulesPromise(),{entryModules:this.indexedEntryModules.map(({module:BA})=>BA),implicitEntryModules:[...this.implicitEntryModules],newEntryModules:IA}}async emitChunk({fileName:AA,id:tA,importer:gA,name:iA,implicitlyLoadedAfterOneOf:IA,preserveSignature:BA}){const sA={fileName:AA||null,id:tA,importer:gA,name:iA||null},CA=IA?await this.addEntryWithImplicitDependants(sA,IA):(await this.addEntryModules([sA],!1)).newEntryModules[0];return BA!=null&&(CA.preserveSignature=BA),CA}async preloadModule(AA){return(await this.fetchModule(this.getResolvedIdWithDefaults(AA,K),void 0,!1,!AA.resolveDependencies||Yc)).info}addEntryWithImplicitDependants(AA,tA){const gA=this.nextChunkNamePriority++;return this.extendLoadModulesPromise(this.loadEntryModule(AA.id,!1,AA.importer,null).then(async iA=>{if(ed(iA,AA,!1,gA),!iA.info.isEntry){const IA=await Promise.all(tA.map(BA=>this.loadEntryModule(BA,!1,AA.importer,iA.id)));if(!iA.info.isEntry){this.implicitEntryModules.add(iA);for(const BA of IA)iA.implicitlyLoadedAfter.add(BA);for(const BA of iA.implicitlyLoadedAfter)BA.implicitlyLoadedBefore.add(iA)}}return iA}))}async addModuleSource(AA,tA,gA){let iA;try{iA=await this.graph.fileOperationQueue.run(async()=>{const CA=await this.pluginDriver.hookFirst("load",[AA]);return CA!==null?CA:(this.graph.watchFiles[AA]=!0,await Dc(AA,"utf8"))})}catch(CA){let oA=`Could not load ${AA}`;throw tA&&(oA+=` (imported by ${ye(tA)})`),oA+=`: ${CA.message}`,CA.message=oA,CA}const IA=typeof iA=="string"?{code:iA}:iA!=null&&typeof iA=="object"&&typeof iA.code=="string"?iA:Re(function(CA){return{code:"BAD_LOADER",message:`Error loading "${ye(CA)}": plugin load hook should return a string, a { code, map } object, or nothing/null.`}}(AA)),BA=IA.code;BA.charCodeAt(0)===65279&&(IA.code=BA.slice(1));const sA=this.graph.cachedModules.get(AA);if(!sA||sA.customTransformCache||sA.originalCode!==IA.code||await this.pluginDriver.hookFirst("shouldTransformCachedModule",[{ast:sA.ast,code:sA.code,id:sA.id,meta:sA.meta,moduleSideEffects:sA.moduleSideEffects,resolvedSources:sA.resolvedIds,syntheticNamedExports:sA.syntheticNamedExports}]))gA.updateOptions(IA),await gA.setSource(await Xc(IA,gA,this.pluginDriver,this.options.onLog));else{if(sA.transformFiles)for(const CA of sA.transformFiles)this.pluginDriver.emitFile(CA);await gA.setSource(sA)}}async awaitLoadModulesPromise(){let AA;do AA=this.latestLoadModulesPromise,await AA;while(AA!==this.latestLoadModulesPromise)}extendLoadModulesPromise(AA){return this.latestLoadModulesPromise=Promise.all([AA,this.latestLoadModulesPromise]),this.latestLoadModulesPromise.catch(()=>{}),AA}async fetchDynamicDependencies(AA,tA){const gA=await Promise.all(tA.map(iA=>iA.then(async([IA,BA])=>BA===null?null:typeof BA=="string"?(IA.resolution=BA,null):IA.resolution=await this.fetchResolvedDependency(ye(BA.id),AA.id,BA))));for(const iA of gA)iA&&(AA.dynamicDependencies.add(iA),iA.dynamicImporters.push(AA.id))}async fetchModule({attributes:AA,id:tA,meta:gA,moduleSideEffects:iA,syntheticNamedExports:IA},BA,sA,CA){const oA=this.modulesById.get(tA);if(oA instanceof Pl)return BA&&hl(AA,oA.info.attributes)&&this.options.onLog(ue,tt(oA.info.attributes,AA,tA,BA)),await this.handleExistingModule(oA,sA,CA),oA;if(oA instanceof on)return Re({code:"EXTERNAL_MODULES_CANNOT_BE_TRANSFORMED_TO_MODULES",message:`${oA.id} is resolved as a module now, but it was an external module before. Please check whether there are conflicts in your Rollup options "external" and "manualChunks", manualChunks cannot include external modules.`});const QA=new Pl(this.graph,tA,this.options,sA,iA,IA,gA,AA);this.modulesById.set(tA,QA);const EA=this.addModuleSource(tA,BA,QA).then(()=>[this.getResolveStaticDependencyPromises(QA),this.getResolveDynamicImportPromises(QA),rA]),rA=nd(EA).then(()=>this.pluginDriver.hookParallel("moduleParsed",[QA.info]));rA.catch(()=>{}),this.moduleLoadPromises.set(QA,EA);const lA=await EA;return CA?CA===Yc&&await rA:await this.fetchModuleDependencies(QA,...lA),QA}async fetchModuleDependencies(AA,tA,gA,iA){this.modulesWithLoadedDependencies.has(AA)||(this.modulesWithLoadedDependencies.add(AA),await Promise.all([this.fetchStaticDependencies(AA,tA),this.fetchDynamicDependencies(AA,gA)]),AA.linkImports(),await iA)}fetchResolvedDependency(AA,tA,gA){if(gA.external){const{attributes:iA,external:IA,id:BA,moduleSideEffects:sA,meta:CA}=gA;let oA=this.modulesById.get(BA);if(oA){if(!(oA instanceof on))return Re(function(QA,EA){return{code:"INVALID_EXTERNAL_ID",message:`"${QA}" is imported as an external by "${ye(EA)}", but is already an existing non-external module id.`}}(AA,tA));hl(oA.info.attributes,iA)&&this.options.onLog(ue,tt(oA.info.attributes,iA,AA,tA))}else oA=new on(this.options,BA,sA,CA,IA!=="absolute"&&I(BA),iA),this.modulesById.set(BA,oA);return Promise.resolve(oA)}return this.fetchModule(gA,tA,!1,!1)}async fetchStaticDependencies(AA,tA){for(const gA of await Promise.all(tA.map(iA=>iA.then(([IA,BA])=>this.fetchResolvedDependency(IA,AA.id,BA)))))AA.dependencies.add(gA),gA.importers.push(AA.id);if(!this.options.treeshake||AA.info.moduleSideEffects==="no-treeshake")for(const gA of AA.dependencies)gA instanceof Pl&&(gA.importedFromNotTreeshaken=!0)}getNormalizedResolvedIdWithoutDefaults(AA,tA,gA){const{makeAbsoluteExternalsRelative:iA}=this.options;if(AA){if(typeof AA=="object"){const sA=AA.external||this.options.external(AA.id,tA,!0);return{...AA,external:sA&&(sA==="relative"||!I(AA.id)||sA===!0&&td(AA.id,gA,iA)||"absolute")}}const BA=this.options.external(AA,tA,!0);return{external:BA&&(td(AA,gA,iA)||"absolute"),id:BA&&iA?Qc(AA,tA):AA}}const IA=iA?Qc(gA,tA):gA;return AA===!1||this.options.external(IA,tA,!0)?{external:td(IA,gA,iA)||"absolute",id:IA}:null}getResolveDynamicImportPromises(AA){return AA.dynamicImports.map(async tA=>{const gA=await this.resolveDynamicImport(AA,tA.argument,AA.id,dl(tA.node));return gA&&typeof gA=="object"&&(tA.id=gA.id),[tA,gA]})}getResolveStaticDependencyPromises(AA){return Array.from(AA.sourcesWithAttributes,async([tA,gA])=>[tA,AA.resolvedIds[tA]=AA.resolvedIds[tA]||this.handleInvalidResolvedId(await this.resolveId(tA,AA.id,K,!1,gA),tA,AA.id,gA)])}getResolvedIdWithDefaults(AA,tA){if(!AA)return null;const gA=AA.external||!1;return{attributes:AA.attributes||tA,external:gA,id:AA.id,meta:AA.meta||{},moduleSideEffects:AA.moduleSideEffects??this.hasModuleSideEffects(AA.id,!!gA),resolvedBy:AA.resolvedBy??"rollup",syntheticNamedExports:AA.syntheticNamedExports??!1}}async handleExistingModule(AA,tA,gA){const iA=this.moduleLoadPromises.get(AA);if(gA)return gA===Yc?nd(iA):iA;if(tA){AA.info.isEntry=!0,this.implicitEntryModules.delete(AA);for(const IA of AA.implicitlyLoadedAfter)IA.implicitlyLoadedBefore.delete(AA);AA.implicitlyLoadedAfter.clear()}return this.fetchModuleDependencies(AA,...await iA)}handleInvalidResolvedId(AA,tA,gA,iA){return AA===null?P(tA)?Re(function(IA,BA){return{code:Ke,exporter:IA,id:BA,message:`Could not resolve "${IA}" from "${ye(BA)}"`}}(tA,gA)):(this.options.onLog(ue,function(IA,BA){return{code:Ke,exporter:IA,id:BA,message:`"${IA}" is imported by "${ye(BA)}", but could not be resolved – treating it as an external dependency.`,url:Se("troubleshooting/#warning-treating-module-as-external-dependency")}}(tA,gA)),{attributes:iA,external:!0,id:tA,meta:{},moduleSideEffects:this.hasModuleSideEffects(tA,!0),resolvedBy:"rollup",syntheticNamedExports:!1}):(AA.external&&AA.syntheticNamedExports&&this.options.onLog(ue,function(IA,BA){return{code:"EXTERNAL_SYNTHETIC_EXPORTS",exporter:IA,message:`External "${IA}" cannot have "syntheticNamedExports" enabled (imported by "${ye(BA)}").`}}(tA,gA)),AA)}async loadEntryModule(AA,tA,gA,iA,IA=!1){const BA=await Rc(AA,gA,this.options.preserveSymlinks,this.pluginDriver,this.resolveId,null,K,!0,K);if(BA==null)return Re(iA===null?function(CA){return{code:Je,message:`Could not resolve entry module "${ye(CA)}".`}}(AA):function(CA,oA){return{code:Ue,message:`Module "${ye(CA)}" that should be implicitly loaded before "${ye(oA)}" could not be resolved.`}}(AA,iA));const sA=typeof BA=="object"&&BA.external;return BA===!1||sA?Re(iA===null?sA&&IA?{code:"EXTERNAL_MODULES_CANNOT_BE_INCLUDED_IN_MANUAL_CHUNKS",message:`"${AA}" cannot be included in manualChunks because it is resolved as an external module by the "external" option or plugins.`}:function(CA){return{code:Je,message:`Entry module "${ye(CA)}" cannot be external.`}}(AA):function(CA,oA){return{code:Ue,message:`Module "${ye(CA)}" that should be implicitly loaded before "${ye(oA)}" cannot be external.`}}(AA,iA)):this.fetchModule(this.getResolvedIdWithDefaults(typeof BA=="object"?BA:{id:BA},K),void 0,tA,!1)}async resolveDynamicImport(AA,tA,gA,iA){const IA=await this.pluginDriver.hookFirst("resolveDynamicImport",[tA,gA,{attributes:iA}]);if(typeof tA!="string")return typeof IA=="string"?IA:IA?this.getResolvedIdWithDefaults(IA,iA):null;if(IA==null){const BA=AA.resolvedIds[tA];return BA?(hl(BA.attributes,iA)&&this.options.onLog(ue,tt(BA.attributes,iA,tA,gA)),BA):AA.resolvedIds[tA]=this.handleInvalidResolvedId(await this.resolveId(tA,AA.id,K,!1,iA),tA,AA.id,iA)}return this.handleInvalidResolvedId(this.getResolvedIdWithDefaults(this.getNormalizedResolvedIdWithoutDefaults(IA,gA,tA),iA),tA,gA,iA)}}function Qc(eA,AA){return P(eA)?AA?M(AA,"..",eA):M(eA):eA}function ed(eA,{fileName:AA,name:tA},gA,iA){var IA;if(AA!==null)eA.chunkFileNames.add(AA);else if(tA!==null){let BA=0;for(;((IA=eA.chunkNames[BA])==null?void 0:IA.priority)<iA;)BA++;eA.chunkNames.splice(BA,0,{isUserDefined:gA,name:tA,priority:iA})}}function td(eA,AA,tA){return tA===!0||tA==="ifRelativeSource"&&P(AA)||!I(eA)}async function nd(eA){const[AA,tA]=await eA;return Promise.all([...AA,...tA])}function sd(eA,AA,tA,gA,iA,IA,BA,sA,CA){const oA=BA.sanitizeFileName(eA||"asset");return ql(Hl(typeof BA.assetFileNames=="function"?BA.assetFileNames({get name(){return xt('Accessing the "name" property of emitted assets when generating the file name is deprecated. Use the "names" property instead.',Me,!1,CA),eA},names:AA,get originalFileName(){return xt('Accessing the "originalFileName" property of emitted assets when generating the file name is deprecated. Use the "originalFileNames" property instead.',Me,!1,CA),gA},originalFileNames:iA,source:tA,type:"asset"}):BA.assetFileNames,"output.assetFileNames",{ext:()=>O(oA).slice(1),extname:()=>O(oA),hash:QA=>IA.slice(0,Math.max(0,QA||8)),name:()=>oA.slice(0,Math.max(0,oA.length-O(oA).length))}),sA)}function id(eA,{bundle:AA},tA){AA[Gl].has(eA.toLowerCase())?tA(ue,function(gA){return{code:"FILE_NAME_CONFLICT",message:`The emitted file "${gA}" overwrites a previously emitted file of the same name.`}}(eA)):AA[eA]=Wl}const rd=new Set(["chunk","asset","prebuilt-chunk"]);function od(eA,AA,tA){if(!(typeof eA=="string"||eA instanceof Uint8Array)){const gA=AA.fileName||AA.name||tA;return Re(Et(`Could not set source for ${typeof gA=="string"?`asset "${gA}"`:"unnamed asset"}, asset source needs to be a string, Uint8Array or Buffer.`))}return eA}class ad{constructor(AA,tA,gA){this.graph=AA,this.options=tA,this.facadeChunkByModule=null,this.nextIdBase=1,this.output=null,this.outputFileEmitters=[],this.emitFile=iA=>function(IA){return!!(IA&&rd.has(IA.type))}(iA)?iA.type==="prebuilt-chunk"?this.emitPrebuiltChunk(iA):function(IA){const BA=IA.fileName||IA.name;return!BA||typeof BA=="string"&&!be(BA)}(iA)?iA.type==="chunk"?this.emitChunk(iA):this.emitAsset(iA):Re(Et(`The "fileName" or "name" properties of emitted chunks and assets must be strings that are neither absolute nor relative paths, received "${iA.fileName||iA.name}".`)):Re(Et(`Emitted files must be of type "asset", "chunk" or "prebuilt-chunk", received "${iA&&iA.type}".`)),this.finaliseAssets=()=>{for(const[iA,IA]of this.filesByReferenceId)if(IA.type==="asset"&&typeof IA.fileName!="string")return Re({code:"ASSET_SOURCE_MISSING",message:`Plugin error creating asset "${IA.name||iA}" - no asset source set.`})},this.getFileName=iA=>{const IA=this.filesByReferenceId.get(iA);return IA?IA.type==="chunk"?(BA=IA,sA=this.facadeChunkByModule,BA.fileName?BA.fileName:sA?sA.get(BA.module).getFileName():Re({code:"CHUNK_NOT_GENERATED",message:`Plugin error - Unable to get file name for emitted chunk "${BA.fileName||BA.name}". You can only get file names once chunks have been generated after the "renderStart" hook.`})):IA.type==="prebuilt-chunk"?IA.fileName:function(CA,oA){return typeof CA.fileName!="string"?Re({code:"ASSET_NOT_FINALISED",message:`Plugin error - Unable to get file name for asset "${CA.name||oA}". Ensure that the source is set and that generate is called first. If you reference assets via import.meta.ROLLUP_FILE_URL_<referenceId>, you need to either have set their source after "renderStart" or need to provide an explicit "fileName" when emitting them.`}):CA.fileName}(IA,iA):Re({code:"FILE_NOT_FOUND",message:`Plugin error - Unable to get file name for unknown file "${iA}".`});var BA,sA},this.setAssetSource=(iA,IA)=>{const BA=this.filesByReferenceId.get(iA);if(!BA)return Re({code:"ASSET_NOT_FOUND",message:`Plugin error - Unable to set the source for unknown asset "${iA}".`});if(BA.type!=="asset")return Re(Et(`Asset sources can only be set for emitted assets but "${iA}" is an emitted chunk.`));if(BA.source!==void 0)return Re({code:"ASSET_SOURCE_ALREADY_SET",message:`Unable to set the source for asset "${BA.name||iA}", source already set.`});const sA=od(IA,BA,iA);if(this.output)this.finalizeAdditionalAsset(BA,sA,this.output);else{BA.source=sA;for(const CA of this.outputFileEmitters)CA.finalizeAdditionalAsset(BA,sA,CA.output)}},this.setChunkInformation=iA=>{this.facadeChunkByModule=iA},this.setOutputBundle=(iA,IA)=>{const BA=xc[IA.hashCharacters],sA=this.output={bundle:iA,fileNamesBySourceHash:new Map,getHash:BA,outputOptions:IA};for(const oA of this.filesByReferenceId.values())oA.fileName&&id(oA.fileName,sA,this.options.onLog);const CA=new Map;for(const oA of this.filesByReferenceId.values())oA.type==="asset"&&oA.source!==void 0?oA.fileName?this.finalizeAdditionalAsset(oA,oA.source,sA):At(CA,BA(oA.source),()=>[]).push(oA):oA.type==="prebuilt-chunk"&&(this.output.bundle[oA.fileName]=this.createPrebuiltChunk(oA));for(const[oA,QA]of CA)this.finalizeAssetsWithSameSource(QA,oA,sA)},this.filesByReferenceId=gA?new Map(gA.filesByReferenceId):new Map,gA==null||gA.addOutputFileEmitter(this)}addOutputFileEmitter(AA){this.outputFileEmitters.push(AA)}assignReferenceId(AA,tA){let gA=tA;do gA=Ec(gA).slice(0,8).replaceAll("-","$");while(this.filesByReferenceId.has(gA)||this.outputFileEmitters.some(({filesByReferenceId:iA})=>iA.has(gA)));AA.referenceId=gA,this.filesByReferenceId.set(gA,AA);for(const{filesByReferenceId:iA}of this.outputFileEmitters)iA.set(gA,AA);return gA}createPrebuiltChunk(AA){return{code:AA.code,dynamicImports:[],exports:AA.exports||[],facadeModuleId:null,fileName:AA.fileName,implicitlyLoadedBefore:[],importedBindings:{},imports:[],isDynamicEntry:!1,isEntry:!1,isImplicitEntry:!1,map:AA.map||null,moduleIds:[],modules:{},name:AA.fileName,preliminaryFileName:AA.fileName,referencedFiles:[],sourcemapFileName:AA.sourcemapFileName||null,type:"chunk"}}emitAsset(AA){const tA=AA.source===void 0?void 0:od(AA.source,AA,null),gA=AA.originalFileName||null;typeof gA=="string"&&(this.graph.watchFiles[gA]=!0);const iA={fileName:AA.fileName,name:AA.name,needsCodeReference:!!AA.needsCodeReference,originalFileName:gA,referenceId:"",source:tA,type:"asset"},IA=this.assignReferenceId(iA,AA.fileName||AA.name||String(this.nextIdBase++));if(this.output)this.emitAssetWithReferenceId(iA,this.output);else for(const BA of this.outputFileEmitters)BA.emitAssetWithReferenceId(iA,BA.output);return IA}emitAssetWithReferenceId(AA,tA){const{fileName:gA,source:iA}=AA;gA&&id(gA,tA,this.options.onLog),iA!==void 0&&this.finalizeAdditionalAsset(AA,iA,tA)}emitChunk(AA){if(this.graph.phase>sl.LOAD_AND_PARSE)return Re({code:"INVALID_ROLLUP_PHASE",message:"Cannot emit chunks after module loading has finished."});if(typeof AA.id!="string")return Re(Et(`Emitted chunks need to have a valid string id, received "${AA.id}"`));const tA={fileName:AA.fileName,module:null,name:AA.name||AA.id,referenceId:"",type:"chunk"};return this.graph.moduleLoader.emitChunk(AA).then(gA=>tA.module=gA).catch(()=>{}),this.assignReferenceId(tA,AA.id)}emitPrebuiltChunk(AA){if(typeof AA.code!="string")return Re(Et(`Emitted prebuilt chunks need to have a valid string code, received "${AA.code}".`));if(typeof AA.fileName!="string"||be(AA.fileName))return Re(Et(`The "fileName" property of emitted prebuilt chunks must be strings that are neither absolute nor relative paths, received "${AA.fileName}".`));const tA={code:AA.code,exports:AA.exports,fileName:AA.fileName,map:AA.map,referenceId:"",type:"prebuilt-chunk"},gA=this.assignReferenceId(tA,tA.fileName);return this.output&&(this.output.bundle[tA.fileName]=this.createPrebuiltChunk(tA)),gA}finalizeAdditionalAsset(AA,tA,{bundle:gA,fileNamesBySourceHash:iA,getHash:IA,outputOptions:BA}){let{fileName:sA,name:CA,needsCodeReference:oA,originalFileName:QA,referenceId:EA}=AA;if(!sA){const uA=IA(tA);sA=iA.get(uA),sA||(sA=sd(CA,CA?[CA]:[],tA,QA,QA?[QA]:[],uA,BA,gA,this.options),iA.set(uA,sA))}const rA={...AA,fileName:sA,source:tA};this.filesByReferenceId.set(EA,rA);const lA=gA[sA];if((lA==null?void 0:lA.type)==="asset")lA.needsCodeReference&&(lA.needsCodeReference=oA),CA&&lA.names.push(CA),QA&&lA.originalFileNames.push(QA);else{const{options:uA}=this;gA[sA]={fileName:sA,get name(){return xt('Accessing the "name" property of emitted assets in the bundle is deprecated. Use the "names" property instead.',Me,!1,uA),CA},names:CA?[CA]:[],needsCodeReference:oA,get originalFileName(){return xt('Accessing the "originalFileName" property of emitted assets in the bundle is deprecated. Use the "originalFileNames" property instead.',Me,!1,uA),QA},originalFileNames:QA?[QA]:[],source:tA,type:"asset"}}}finalizeAssetsWithSameSource(AA,tA,{bundle:gA,fileNamesBySourceHash:iA,outputOptions:IA}){const{names:BA,originalFileNames:sA}=function(rA){const lA=[],uA=[];for(const{name:cA,originalFileName:hA}of rA)typeof cA=="string"&&lA.push(cA),hA&&uA.push(hA);return uA.sort(),lA.sort((cA,hA)=>cA.length-hA.length||(cA>hA?1:cA===hA?0:-1)),{names:lA,originalFileNames:uA}}(AA);let CA,oA="",QA=!0;for(const rA of AA){QA&&(QA=rA.needsCodeReference);const lA=sd(rA.name,BA,rA.source,rA.originalFileName,sA,tA,IA,gA,this.options);(!oA||lA.length<oA.length||lA.length===oA.length&&lA<oA)&&(oA=lA,CA=rA)}iA.set(tA,oA);for(const rA of AA){const lA={...rA,fileName:oA};this.filesByReferenceId.set(rA.referenceId,lA)}const{options:EA}=this;gA[oA]={fileName:oA,get name(){return xt('Accessing the "name" property of emitted assets in the bundle is deprecated. Use the "names" property instead.',Me,!1,EA),CA.name},names:BA,needsCodeReference:QA,get originalFileName(){return xt('Accessing the "originalFileName" property of emitted assets in the bundle is deprecated. Use the "originalFileNames" property instead.',Me,!1,EA),CA.originalFileName},originalFileNames:sA,source:CA.source,type:"asset"}}}function ld(eA,AA,tA,gA,iA){return fe[eA]<fe[iA]?ln:(IA,BA)=>{BA!=null&&tA(ue,{code:"INVALID_LOG_POSITION",message:`Plugin "${gA}" tried to add a file position to a log or warning. This is only supported in the "transform" hook at the moment and will be ignored.`}),(IA=jc(IA)).code&&!IA.pluginCode&&(IA.pluginCode=IA.code),IA.code=AA,IA.plugin=gA,tA(eA,IA)}}function cd(eA,AA,tA,gA,iA,IA){const{logLevel:BA,onLog:sA}=gA;let CA,oA=!0;if(typeof eA.cacheKey!="string"&&(eA.name.startsWith(_c)||eA.name.startsWith(Lc)||IA.has(eA.name)?oA=!1:IA.add(eA.name)),AA)if(oA){const rA=eA.cacheKey||eA.name;EA=AA[rA]||(AA[rA]=Object.create(null)),CA={delete:lA=>delete EA[lA],get(lA){const uA=EA[lA];if(uA)return uA[0]=0,uA[1]},has(lA){const uA=EA[lA];return!!uA&&(uA[0]=0,!0)},set(lA,uA){EA[lA]=[0,uA]}}}else QA=eA.name,CA={delete:()=>Bc(QA),get:()=>Bc(QA),has:()=>Bc(QA),set:()=>Bc(QA)};else CA=Tc;var QA,EA;return{addWatchFile(rA){tA.watchFiles[rA]=!0},cache:CA,debug:ld(pe,"PLUGIN_LOG",sA,eA.name,BA),emitFile:iA.emitFile.bind(iA),error:rA=>Re(mt(jc(rA),eA.name)),getFileName:iA.getFileName,getModuleIds:()=>tA.modulesById.keys(),getModuleInfo:tA.getModuleInfo,getWatchFiles:()=>Object.keys(tA.watchFiles),info:ld(he,"PLUGIN_LOG",sA,eA.name,BA),load:rA=>tA.moduleLoader.preloadModule(rA),meta:{rollupVersion:t,watchMode:tA.watchMode},parse:ll,resolve:(rA,lA,{attributes:uA,custom:cA,isEntry:hA,skipSelf:dA}=J)=>(dA??(dA=!0),tA.moduleLoader.resolveId(rA,lA,cA,hA,uA||K,dA?[{importer:lA,plugin:eA,source:rA}]:null)),setAssetSource:iA.setAssetSource,warn:ld(ue,"PLUGIN_WARNING",sA,eA.name,BA)}}const dd=Object.keys({buildEnd:1,buildStart:1,closeBundle:1,closeWatcher:1,load:1,moduleParsed:1,onLog:1,options:1,resolveDynamicImport:1,resolveId:1,shouldTransformCachedModule:1,transform:1,watchChange:1});class ud{constructor(AA,tA,gA,iA,IA){this.graph=AA,this.options=tA,this.pluginCache=iA,this.sortedPlugins=new Map,this.unfulfilledActions=new Set,this.fileEmitter=new ad(AA,tA,IA&&IA.fileEmitter),this.emitFile=this.fileEmitter.emitFile.bind(this.fileEmitter),this.getFileName=this.fileEmitter.getFileName.bind(this.fileEmitter),this.finaliseAssets=this.fileEmitter.finaliseAssets.bind(this.fileEmitter),this.setChunkInformation=this.fileEmitter.setChunkInformation.bind(this.fileEmitter),this.setOutputBundle=this.fileEmitter.setOutputBundle.bind(this.fileEmitter),this.plugins=[...IA?IA.plugins:[],...gA];const BA=new Set;if(this.pluginContexts=new Map(this.plugins.map(CA=>[CA,cd(CA,iA,AA,tA,this.fileEmitter,BA)])),IA)for(const CA of gA)for(const oA of dd)oA in CA&&tA.onLog(ue,(sA=CA.name,{code:"INPUT_HOOK_IN_OUTPUT_PLUGIN",message:`The "${oA}" hook used by the output plugin ${sA} is a build time hook and will not be run for that plugin. Either this plugin cannot be used as an output plugin, or it should have an option to configure it as an output plugin.`}));var sA}createOutputPluginDriver(AA){return new ud(this.graph,this.options,AA,this.pluginCache,this)}getUnfulfilledHookActions(){return this.unfulfilledActions}hookFirst(AA,tA,gA,iA){return this.hookFirstAndGetPlugin(AA,tA,gA,iA).then(IA=>IA&&IA[0])}async hookFirstAndGetPlugin(AA,tA,gA,iA){for(const IA of this.getSortedPlugins(AA)){if(iA!=null&&iA.has(IA))continue;const BA=await this.runHook(AA,tA,IA,gA);if(BA!=null)return[BA,IA]}return null}hookFirstSync(AA,tA,gA){for(const iA of this.getSortedPlugins(AA)){const IA=this.runHookSync(AA,tA,iA,gA);if(IA!=null)return IA}return null}async hookParallel(AA,tA,gA){const iA=[];for(const IA of this.getSortedPlugins(AA))IA[AA].sequential?(await Promise.all(iA),iA.length=0,await this.runHook(AA,tA,IA,gA)):iA.push(this.runHook(AA,tA,IA,gA));await Promise.all(iA)}hookReduceArg0(AA,[tA,...gA],iA,IA){let BA=Promise.resolve(tA);for(const sA of this.getSortedPlugins(AA))BA=BA.then(CA=>this.runHook(AA,[CA,...gA],sA,IA).then(oA=>iA.call(this.pluginContexts.get(sA),CA,oA,sA)));return BA}hookReduceArg0Sync(AA,[tA,...gA],iA,IA){for(const BA of this.getSortedPlugins(AA)){const sA=[tA,...gA],CA=this.runHookSync(AA,sA,BA,IA);tA=iA.call(this.pluginContexts.get(BA),tA,CA,BA)}return tA}async hookReduceValue(AA,tA,gA,iA){const IA=[],BA=[];for(const sA of this.getSortedPlugins(AA,fd))sA[AA].sequential?(IA.push(...await Promise.all(BA)),BA.length=0,IA.push(await this.runHook(AA,gA,sA))):BA.push(this.runHook(AA,gA,sA));return IA.push(...await Promise.all(BA)),IA.reduce(iA,await tA)}hookReduceValueSync(AA,tA,gA,iA,IA){let BA=tA;for(const sA of this.getSortedPlugins(AA)){const CA=this.runHookSync(AA,gA,sA,IA);BA=iA.call(this.pluginContexts.get(sA),BA,CA,sA)}return BA}hookSeq(AA,tA,gA){let iA=Promise.resolve();for(const IA of this.getSortedPlugins(AA))iA=iA.then(()=>this.runHook(AA,tA,IA,gA));return iA.then(md)}getSortedPlugins(AA,tA){return At(this.sortedPlugins,AA,()=>hd(AA,this.plugins,tA))}runHook(AA,tA,gA,iA){const IA=gA[AA],BA=typeof IA=="object"?IA.handler:IA;let sA=this.pluginContexts.get(gA);iA&&(sA=iA(sA,gA));let CA=null;return Promise.resolve().then(()=>{if(typeof BA!="function")return BA;const oA=BA.apply(sA,tA);return oA!=null&&oA.then?(CA=[gA.name,AA,tA],this.unfulfilledActions.add(CA),Promise.resolve(oA).then(QA=>(this.unfulfilledActions.delete(CA),QA))):oA}).catch(oA=>(CA!==null&&this.unfulfilledActions.delete(CA),Re(mt(oA,gA.name,{hook:AA}))))}runHookSync(AA,tA,gA,iA){const IA=gA[AA],BA=typeof IA=="object"?IA.handler:IA;let sA=this.pluginContexts.get(gA);iA&&(sA=iA(sA,gA));try{return BA.apply(sA,tA)}catch(CA){return Re(mt(CA,gA.name,{hook:AA}))}}}function hd(eA,AA,tA=pd){const gA=[],iA=[],IA=[];for(const BA of AA){const sA=BA[eA];if(sA){if(typeof sA=="object"){if(tA(sA.handler,eA,BA),sA.order==="pre"){gA.push(BA);continue}if(sA.order==="post"){IA.push(BA);continue}}else tA(sA,eA,BA);iA.push(BA)}}return[...gA,...iA,...IA]}function pd(eA,AA,tA){typeof eA!="function"&&Re(function(gA,iA){return{code:Fe,hook:gA,message:`Error running plugin hook "${gA}" for plugin "${iA}", expected a function hook or an object with a "handler" function.`,plugin:iA}}(AA,tA.name))}function fd(eA,AA,tA){if(typeof eA!="string"&&typeof eA!="function")return Re(function(gA,iA){return{code:Fe,hook:gA,message:`Error running plugin hook "${gA}" for plugin "${iA}", expected a string, a function hook or an object with a "handler" string or function.`,plugin:iA}}(AA,tA.name))}function md(){}class gd{constructor(AA){this.maxParallel=AA,this.queue=[],this.workerCount=0}run(AA){return new Promise((tA,gA)=>{this.queue.push({reject:gA,resolve:tA,task:AA}),this.work()})}async work(){if(this.workerCount>=this.maxParallel)return;let AA;for(this.workerCount++;AA=this.queue.shift();){const{reject:tA,resolve:gA,task:iA}=AA;try{gA(await iA())}catch(IA){tA(IA)}}this.workerCount--}}class yd{constructor(AA,tA){var gA,iA;if(this.options=AA,this.astLru=function(IA){var BA,sA,CA,oA=IA;function QA(rA,lA){++BA>oA&&(CA=sA,EA(1),++BA),sA[rA]=lA}function EA(rA){BA=0,sA=Object.create(null),rA||(CA=Object.create(null))}return EA(),{clear:EA,has:function(rA){return sA[rA]!==void 0||CA[rA]!==void 0},get:function(rA){var lA=sA[rA];return lA!==void 0?lA:(lA=CA[rA])!==void 0?(QA(rA,lA),lA):void 0},set:function(rA,lA){sA[rA]!==void 0?sA[rA]=lA:QA(rA,lA)}}}(5),this.cachedModules=new Map,this.deoptimizationTracker=new Rt,this.entryModules=[],this.modulesById=new Map,this.needsTreeshakingPass=!1,this.phase=sl.LOAD_AND_PARSE,this.scope=new Nc,this.watchFiles=Object.create(null),this.watchMode=!1,this.externalModules=[],this.implicitEntryModules=[],this.modules=[],this.getModuleInfo=IA=>{const BA=this.modulesById.get(IA);return BA?BA.info:null},AA.cache!==!1){if((gA=AA.cache)!=null&&gA.modules)for(const IA of AA.cache.modules)this.cachedModules.set(IA.id,IA);this.pluginCache=((iA=AA.cache)==null?void 0:iA.plugins)||Object.create(null);for(const IA in this.pluginCache){const BA=this.pluginCache[IA];for(const sA of Object.values(BA))sA[0]++}}if(tA){this.watchMode=!0;const IA=(...sA)=>this.pluginDriver.hookParallel("watchChange",sA),BA=()=>this.pluginDriver.hookParallel("closeWatcher",[]);tA.onCurrentRun("change",IA),tA.onCurrentRun("close",BA)}this.pluginDriver=new ud(this,AA,AA.plugins,this.pluginCache),this.moduleLoader=new Zc(this,this.modulesById,this.options,this.pluginDriver),this.fileOperationQueue=new gd(AA.maxParallelFileOps),this.pureFunctions=(({treeshake:IA})=>{const BA=Object.create(null);for(const sA of IA?IA.manualPureFunctions:[]){let CA=BA;for(const oA of sA.split("."))CA=CA[oA]||(CA[oA]=Object.create(null));CA[St]=!0}return BA})(AA)}async build(){xl("generate module graph",2),await this.generateModuleGraph(),Sl("generate module graph",2),xl("sort and bind modules",2),this.phase=sl.ANALYSE,this.sortModules(),Sl("sort and bind modules",2),xl("mark included statements",2),this.includeStatements(),Sl("mark included statements",2),this.phase=sl.GENERATE}getCache(){for(const AA in this.pluginCache){const tA=this.pluginCache[AA];let gA=!0;for(const[iA,IA]of Object.entries(tA))IA[0]>=this.options.experimentalCacheExpiry?delete tA[iA]:gA=!1;gA&&delete this.pluginCache[AA]}return{modules:this.modules.map(AA=>AA.toJSON()),plugins:this.pluginCache}}async generateModuleGraph(){var AA;if({entryModules:this.entryModules,implicitEntryModules:this.implicitEntryModules}=await this.moduleLoader.addEntryModules((AA=this.options.input,Array.isArray(AA)?AA.map(tA=>({fileName:null,id:tA,implicitlyLoadedAfter:[],importer:void 0,name:null})):Object.entries(AA).map(([tA,gA])=>({fileName:null,id:gA,implicitlyLoadedAfter:[],importer:void 0,name:tA}))),!0),this.entryModules.length===0)throw new Error("You must supply options.input to rollup");for(const tA of this.modulesById.values())tA.cacheInfoGetters(),tA instanceof Pl?this.modules.push(tA):this.externalModules.push(tA)}includeStatements(){const AA=[...this.entryModules,...this.implicitEntryModules];for(const tA of AA)an(tA);if(this.options.treeshake){let tA=1;do{xl(`treeshaking pass ${tA}`,3),this.needsTreeshakingPass=!1;for(const gA of this.modules)gA.isExecuted&&(gA.hasTreeShakingPassStarted=!0,gA.info.moduleSideEffects==="no-treeshake"?gA.includeAllInBundle():gA.include());if(tA===1)for(const gA of AA)gA.preserveSignature!==!1&&(gA.includeAllExports(!1),this.needsTreeshakingPass=!0);Sl("treeshaking pass "+tA++,3)}while(this.needsTreeshakingPass)}else for(const tA of this.modules)tA.includeAllInBundle();for(const tA of this.externalModules)tA.warnUnusedImports();for(const tA of this.implicitEntryModules)for(const gA of tA.implicitlyLoadedAfter)gA.info.isEntry||gA.isIncluded()||Re(ct(gA))}sortModules(){const{orderedModules:AA,cyclePaths:tA}=function(gA){let iA=0;const IA=[],BA=new Set,sA=new Set,CA=new Map,oA=[],QA=EA=>{if(EA instanceof Pl){for(const rA of EA.dependencies)CA.has(rA)?BA.has(rA)||IA.push(hc(rA,EA,CA)):(CA.set(rA,EA),QA(rA));for(const rA of EA.implicitlyLoadedBefore)sA.add(rA);for(const{resolution:rA}of EA.dynamicImports)rA instanceof Pl&&sA.add(rA);oA.push(EA)}EA.execIndex=iA++,BA.add(EA)};for(const EA of gA)CA.has(EA)||(CA.set(EA,null),QA(EA));for(const EA of sA)CA.has(EA)||(CA.set(EA,null),QA(EA));return{cyclePaths:IA,orderedModules:oA}}(this.entryModules);for(const gA of tA)this.options.onLog(ue,Ze(gA));this.modules=AA;for(const gA of this.modules)gA.bindReferences();this.warnForMissingExports()}warnForMissingExports(){for(const AA of this.modules)for(const tA of AA.importDescriptions.values())tA.name==="*"||tA.module.getVariableForExportName(tA.name)[0]||AA.log(ue,lt(tA.name,AA.id,tA.module.id),tA.start)}}function bd(eA,AA){return AA()}function Ed(eA,AA,tA,gA){eA=hd("onLog",eA);const iA=fe[gA],IA=(BA,sA,CA=Y)=>{if(Be(sA),!(fe[BA]<iA)){for(const oA of eA){if(CA.has(oA))continue;const{onLog:QA}=oA,EA=rA=>fe[rA]<iA?ln:lA=>IA(rA,jc(lA),new Set(CA).add(oA));if(("handler"in QA?QA.handler:QA).call({debug:EA(pe),error:rA=>Re(jc(rA)),info:EA(he),meta:{rollupVersion:t,watchMode:tA},warn:EA(ue)},BA,sA)===!1)return}AA(BA,sA)}};return IA}const xd=eA=>{var AA;return eA.cache===!0?void 0:((AA=eA.cache)==null?void 0:AA.cache)||eA.cache},Sd=eA=>{if(eA===!0)return()=>!0;if(typeof eA=="function")return(tA,...gA)=>!tA.startsWith("\0")&&eA(tA,...gA)||!1;if(eA){const tA=new Set,gA=[];for(const iA of(AA=eA,Array.isArray(AA)?AA.filter(Boolean):AA?[AA]:[]))iA instanceof RegExp?gA.push(iA):tA.add(iA);return(iA,...IA)=>tA.has(iA)||gA.some(BA=>BA.test(iA))}var AA;return()=>!1},Ad=eA=>{const AA=eA.input;return AA==null?[]:typeof AA=="string"?[AA]:AA},$d=eA=>{const AA=eA.jsx;if(!AA)return!1;const tA=Jc(AA,Hc,"jsx",$e,"false, "),{factory:gA,importSource:iA,mode:IA}=tA;switch(IA){case"automatic":return{factory:gA||"React.createElement",importSource:iA||"react",jsxImportSource:tA.jsxImportSource||"react/jsx-runtime",mode:"automatic"};case"preserve":return!iA||gA||tA.fragment||Re(at("jsx",$e,"when preserving JSX and specifying an importSource, you also need to specify a factory or fragment")),{factory:gA||null,fragment:tA.fragment||null,importSource:iA||null,mode:"preserve"};default:return IA&&IA!=="classic"&&Re(at("jsx.mode",$e,'mode must be "automatic", "classic" or "preserve"',IA)),{factory:gA||"React.createElement",fragment:tA.fragment||"React.Fragment",importSource:iA||null,mode:"classic"}}},vd=eA=>{const AA=eA.maxParallelFileOps;return typeof AA=="number"?AA<=0?1/0:AA:20},wd=(eA,AA)=>{const tA=eA.moduleContext;if(typeof tA=="function")return gA=>tA(gA)??AA;if(tA){const gA=Object.create(null);for(const[iA,IA]of Object.entries(tA))gA[M(iA)]=IA;return iA=>gA[iA]??AA}return()=>AA},Id=eA=>{if(eA.treeshake===!1)return!1;const AA=Jc(eA.treeshake,Wc,"treeshake","configuration-options/#treeshake","false, true, ");return{annotations:AA.annotations!==!1,correctVarValueBeforeDeclaration:AA.correctVarValueBeforeDeclaration===!0,manualPureFunctions:AA.manualPureFunctions??X,moduleSideEffects:Pd(AA.moduleSideEffects),propertyReadSideEffects:AA.propertyReadSideEffects==="always"?"always":AA.propertyReadSideEffects!==!1,tryCatchDeoptimization:AA.tryCatchDeoptimization!==!1,unknownGlobalSideEffects:AA.unknownGlobalSideEffects!==!1}},Pd=eA=>{if(typeof eA=="boolean")return()=>eA;if(eA==="no-external")return(AA,tA)=>!tA;if(typeof eA=="function")return(AA,tA)=>!!AA.startsWith("\0")||eA(AA,tA)!==!1;if(Array.isArray(eA)){const AA=new Set(eA);return tA=>AA.has(tA)}return eA&&Re(at("treeshake.moduleSideEffects","configuration-options/#treeshake-modulesideeffects",'please use one of false, "no-external", a function or an array')),()=>!0},kd=/[\u0000-\u001F"#$%&*+,:;<=>?[\]^`{|}\u007F]/g,Nd=/^[a-z]:/i;function Cd(eA){const AA=Nd.exec(eA),tA=AA?AA[0]:"";return tA+eA.slice(tA.length).replace(kd,"_")}const Od=(eA,AA,tA)=>{const{file:gA}=eA;if(typeof gA=="string"){if(AA)return Re(at("output.file",we,'you must set "output.dir" instead of "output.file" when using the "output.preserveModules" option'));if(!Array.isArray(tA.input))return Re(at("output.file",we,'you must set "output.dir" instead of "output.file" when providing named inputs'))}return gA},Dd=eA=>{const AA=eA.format;switch(AA){case void 0:case"es":case"esm":case"module":return"es";case"cjs":case"commonjs":return"cjs";case"system":case"systemjs":return"system";case"amd":case"iife":case"umd":return AA;default:return Re(at("output.format",Pe,'Valid values are "amd", "cjs", "system", "es", "iife" or "umd"',AA))}},Md=(eA,AA)=>{const tA=eA.inlineDynamicImports||!1,{input:gA}=AA;return tA&&(Array.isArray(gA)?gA:Object.keys(gA)).length>1?Re(at("output.inlineDynamicImports",ke,'multiple inputs are not supported when "output.inlineDynamicImports" is true')):tA},Rd=(eA,AA,tA)=>{const gA=eA.preserveModules||!1;if(gA){if(AA)return Re(at("output.inlineDynamicImports",ke,'this option is not supported for "output.preserveModules"'));if(tA.preserveEntrySignatures===!1)return Re(at("preserveEntrySignatures","configuration-options/#preserveentrysignatures",'setting this option to false is not supported for "output.preserveModules"'))}return gA},_d=eA=>{const{preserveModulesRoot:AA}=eA;if(AA!=null)return M(AA)},Ld=eA=>{const AA={autoId:!1,basePath:"",define:"define",forceJsExtensionForImports:!1,...eA.amd};return(AA.autoId||AA.basePath)&&AA.id?Re(at("output.amd.id",ve,'this option cannot be used together with "output.amd.autoId"/"output.amd.basePath"')):AA.basePath&&!AA.autoId?Re(at("output.amd.basePath","configuration-options/#output-amd-basepath",'this option only works with "output.amd.autoId"')):AA.autoId?{autoId:!0,basePath:AA.basePath,define:AA.define,forceJsExtensionForImports:AA.forceJsExtensionForImports}:{autoId:!1,define:AA.define,forceJsExtensionForImports:AA.forceJsExtensionForImports,id:AA.id}},Td=(eA,AA)=>{const tA=eA[AA];return typeof tA=="function"?tA:()=>tA||""},Bd=(eA,AA)=>{const{dir:tA}=eA;return typeof tA=="string"&&typeof AA=="string"?Re(at("output.dir",we,'you must set either "output.file" for a single-file build or "output.dir" when generating multiple chunks')):tA},zd=(eA,AA)=>{const tA=eA.entryFileNames;return tA==null&&AA.add("entryFileNames"),tA??"[name].js"};function Vd(eA,AA){const tA=eA.exports;if(tA==null)AA.add("exports");else if(!["default","named","none","auto"].includes(tA))return Re({code:ze,message:`"output.exports" must be "default", "named", "none", "auto", or left unspecified (defaults to "auto"), received "${tA}".`,url:Se(Ie)});return tA||"auto"}const Fd=(eA,AA)=>(eA.externalImportAssertions!=null&&xt('The "output.externalImportAssertions" option is deprecated. Use the "output.externalImportAttributes" option instead.',"configuration-options/#output-externalimportattributes",!0,AA),eA.externalImportAttributes??eA.externalImportAssertions??!0),jd=eA=>{const AA=Jc(eA.generatedCode,qc,"output.generatedCode","configuration-options/#output-generatedcode","");return{arrowFunctions:AA.arrowFunctions===!0,constBindings:AA.constBindings===!0,objectShorthand:AA.objectShorthand===!0,reservedNamesAsProps:AA.reservedNamesAsProps!==!1,symbols:AA.symbols===!0}},Ud=(eA,AA)=>{if(AA)return"";const tA=eA.indent;return tA===!1?"":tA??!0},Gd=new Set(["compat","auto","esModule","default","defaultOnly"]),Wd=eA=>{const AA=eA.interop;if(typeof AA=="function"){const tA=Object.create(null);let gA=null;return iA=>iA===null?gA||Hd(gA=AA(iA)):iA in tA?tA[iA]:Hd(tA[iA]=AA(iA))}return AA===void 0?()=>"default":()=>Hd(AA)},Hd=eA=>Gd.has(eA)?eA:Re(at("output.interop",Ne,`use one of ${Array.from(Gd,AA=>JSON.stringify(AA)).join(", ")}`,eA)),qd=(eA,AA,tA)=>{const gA=eA.manualChunks;if(gA){if(AA)return Re(at("output.manualChunks",Ce,'this option is not supported for "output.inlineDynamicImports"'));if(tA)return Re(at("output.manualChunks",Ce,'this option is not supported for "output.preserveModules"'))}return gA||{}},Jd=(eA,AA,tA)=>eA.minifyInternalExports??(tA||AA==="es"||AA==="system"),Kd=(eA,AA)=>{const tA=eA.sourcemapFileNames;return tA==null&&AA.add("sourcemapFileNames"),tA},Xd=eA=>{const{sourcemapBaseUrl:AA}=eA;if(AA)return function(gA){try{new URL(gA)}catch{return!1}return!0}(AA)?(tA=AA).endsWith("/")?tA:tA+"/":Re(at("output.sourcemapBaseUrl","configuration-options/#output-sourcemapbaseurl",`must be a valid URL, received ${JSON.stringify(AA)}`));var tA};function Yd(eA){return async function(AA,tA){const{options:gA,unsetOptions:iA}=await async function(CA,oA){if(!CA)throw new Error("You must supply an options object to rollup");const QA=await async function(lA,uA){const cA=hd("options",await Kc(lA.plugins)),hA=lA.logLevel||he,dA=Ed(cA,zc(lA,hA),uA,hA);for(const pA of cA){const{name:wA,options:mA}=pA,MA="handler"in mA?mA.handler:mA,fA=await MA.call({debug:ld(pe,"PLUGIN_LOG",dA,wA,hA),error:LA=>Re(mt(jc(LA),wA,{hook:"onLog"})),info:ld(he,"PLUGIN_LOG",dA,wA,hA),meta:{rollupVersion:t,watchMode:uA},warn:ld(ue,"PLUGIN_WARNING",dA,wA,hA)},lA);fA&&(lA=fA)}return lA}(CA,oA),{options:EA,unsetOptions:rA}=await async function(lA,uA){const cA=new Set,hA=lA.context??"undefined",dA=await Kc(lA.plugins),pA=lA.logLevel||he,wA=Ed(dA,zc(lA,pA),uA,pA),mA=lA.strictDeprecations||!1,MA=vd(lA),fA={cache:xd(lA),context:hA,experimentalCacheExpiry:lA.experimentalCacheExpiry??10,experimentalLogSideEffects:lA.experimentalLogSideEffects||!1,external:Sd(lA.external),input:Ad(lA),jsx:$d(lA),logLevel:pA,makeAbsoluteExternalsRelative:lA.makeAbsoluteExternalsRelative??"ifRelativeSource",maxParallelFileOps:MA,moduleContext:wd(lA,hA),onLog:wA,perf:lA.perf||!1,plugins:dA,preserveEntrySignatures:lA.preserveEntrySignatures??"exports-only",preserveSymlinks:lA.preserveSymlinks||!1,shimMissingExports:lA.shimMissingExports||!1,strictDeprecations:mA,treeshake:Id(lA)};return Gc(lA,[...Object.keys(fA),"onwarn","watch"],"input options",wA,/^(output)$/),{options:fA,unsetOptions:cA}}(QA,oA);return Zd(EA.plugins,_c),{options:EA,unsetOptions:rA}}(AA,tA!==null);(function(CA){CA.perf?(ml=new Map,xl=yl,Sl=bl,CA.plugins=CA.plugins.map($l)):(xl=ln,Sl=ln)})(gA),await async function(){await io()}();const IA=new yd(gA,tA),BA=AA.cache!==!1;AA.cache&&(gA.cache=void 0,AA.cache=void 0),xl("BUILD",1),await bd(IA.pluginDriver,async()=>{try{xl("initialize",2),await IA.pluginDriver.hookParallel("buildStart",[gA]),Sl("initialize",2),await IA.build()}catch(CA){const oA=Object.keys(IA.watchFiles);throw oA.length>0&&(CA.watchFiles=oA),await IA.pluginDriver.hookParallel("buildEnd",[CA]),await IA.pluginDriver.hookParallel("closeBundle",[]),CA}await IA.pluginDriver.hookParallel("buildEnd",[])}),Sl("BUILD",1);const sA={cache:BA?IA.getCache():void 0,async close(){sA.closed||(sA.closed=!0,await IA.pluginDriver.hookParallel("closeBundle",[]))},closed:!1,generate:async CA=>sA.closed?Re({code:"ALREADY_CLOSED",message:'Bundle is already closed, no more calls to "generate" or "write" are allowed.'}):Qd(!1,gA,iA,CA,IA),get watchFiles(){return Object.keys(IA.watchFiles)},write:async CA=>sA.closed?Re({code:"ALREADY_CLOSED",message:'Bundle is already closed, no more calls to "generate" or "write" are allowed.'}):Qd(!0,gA,iA,CA,IA)};return gA.perf&&(sA.getTimings=El),sA}(eA,null)}function Zd(eA,AA){for(const[tA,gA]of eA.entries())gA.name||(gA.name=`${AA}${tA+1}`)}async function Qd(eA,AA,tA,gA,iA){const{options:IA,outputPluginDriver:BA,unsetOptions:sA}=await async function(CA,oA,QA,EA){if(!CA)throw new Error("You must supply an options object");const rA=await Kc(CA.plugins);Zd(rA,Lc);const lA=oA.createOutputPluginDriver(rA);return{...await eu(QA,EA,CA,lA),outputPluginDriver:lA}}(gA,iA.pluginDriver,AA,tA);return bd(0,async()=>{const CA=new Pc(IA,sA,AA,BA,iA),oA=await CA.generate(eA);if(eA){if(xl("WRITE",1),!IA.dir&&!IA.file)return Re({code:"MISSING_OPTION",message:'You must specify "output.file" or "output.dir" for the build.',url:Se(we)});await Promise.all(Object.values(oA).map(EA=>iA.fileOperationQueue.run(()=>async function(rA,lA){const uA=M(lA.dir||C(lA.file),rA.fileName);return await Oc(C(uA),{recursive:!0}),Mc(uA,rA.type==="asset"?rA.source:rA.code)}(EA,IA)))),await BA.hookParallel("writeBundle",[IA,oA]),Sl("WRITE",1)}return QA=oA,{output:Object.values(QA).filter(EA=>Object.keys(EA).length>0).sort((EA,rA)=>nu(EA)-nu(rA))};var QA})}function eu(eA,AA,tA,gA){return async function(iA,IA,BA){const sA=new Set(BA),CA=iA.compact||!1,oA=Dd(iA),QA=Md(iA,IA),EA=Rd(iA,QA,IA),rA=Od(iA,EA,IA),lA=jd(iA),uA=Fd(iA,IA),cA={amd:Ld(iA),assetFileNames:iA.assetFileNames??"assets/[name]-[hash][extname]",banner:Td(iA,"banner"),chunkFileNames:iA.chunkFileNames??"[name]-[hash].js",compact:CA,dir:Bd(iA,rA),dynamicImportInCjs:iA.dynamicImportInCjs??!0,entryFileNames:zd(iA,sA),esModule:iA.esModule??"if-default-prop",experimentalMinChunkSize:iA.experimentalMinChunkSize??1,exports:Vd(iA,sA),extend:iA.extend||!1,externalImportAssertions:uA,externalImportAttributes:uA,externalLiveBindings:iA.externalLiveBindings??!0,file:rA,footer:Td(iA,"footer"),format:oA,freeze:iA.freeze??!0,generatedCode:lA,globals:iA.globals||{},hashCharacters:iA.hashCharacters??"base64",hoistTransitiveImports:iA.hoistTransitiveImports??!0,importAttributesKey:iA.importAttributesKey??"assert",indent:Ud(iA,CA),inlineDynamicImports:QA,interop:Wd(iA),intro:Td(iA,"intro"),manualChunks:qd(iA,QA,EA),minifyInternalExports:Jd(iA,oA,CA),name:iA.name,noConflict:iA.noConflict||!1,outro:Td(iA,"outro"),paths:iA.paths||{},plugins:await Kc(iA.plugins),preserveModules:EA,preserveModulesRoot:_d(iA),reexportProtoFromExternal:iA.reexportProtoFromExternal??!0,sanitizeFileName:typeof iA.sanitizeFileName=="function"?iA.sanitizeFileName:iA.sanitizeFileName===!1?hA=>hA:Cd,sourcemap:iA.sourcemap||!1,sourcemapBaseUrl:Xd(iA),sourcemapDebugIds:iA.sourcemapDebugIds||!1,sourcemapExcludeSources:iA.sourcemapExcludeSources||!1,sourcemapFile:iA.sourcemapFile,sourcemapFileNames:Kd(iA,sA),sourcemapIgnoreList:typeof iA.sourcemapIgnoreList=="function"?iA.sourcemapIgnoreList:iA.sourcemapIgnoreList===!1?()=>!1:hA=>hA.includes("node_modules"),sourcemapPathTransform:iA.sourcemapPathTransform,strict:iA.strict??!0,systemNullSetters:iA.systemNullSetters??!0,validate:iA.validate||!1,virtualDirname:iA.virtualDirname||"_virtual"};return Gc(iA,Object.keys(cA),"output options",IA.onLog),{options:cA,unsetOptions:sA}}(gA.hookReduceArg0Sync("outputOptions",[tA],(iA,IA)=>IA||iA,iA=>{const IA=()=>iA.error({code:"CANNOT_EMIT_FROM_OPTIONS_HOOK",message:'Cannot emit files or set asset sources in the "outputOptions" hook, use the "renderStart" hook instead.'});return{...iA,emitFile:IA,setAssetSource:IA}}),eA,AA)}var tu;function nu(eA){return eA.type==="asset"?tu.ASSET:eA.isEntry?tu.ENTRY_CHUNK:tu.SECONDARY_CHUNK}(function(eA){eA[eA.ENTRY_CHUNK=0]="ENTRY_CHUNK",eA[eA.SECONDARY_CHUNK=1]="SECONDARY_CHUNK",eA[eA.ASSET=2]="ASSET"})(tu||(tu={})),self.addEventListener("message",async eA=>{try{if(eA.data.type=="init"){const AA=eA.data.host,tA=eA.data.cdn_url,gA=await service_fetch(AA,nil_xit_proto.MessageType.MessageType_FrameRequest,nil_xit_proto.FrameRequest.encode({id:eA.data.id}).finish(),(iA,IA)=>{if(iA===nil_xit_proto.MessageType.MessageType_FrameResponse){const BA=nil_xit_proto.FrameResponse.decode(IA);if(eA.data.id===BA.id)return BA}});if(gA.value==="content")self.postMessage({ok:!0,code:gA.content});else if(gA.value==="file"&&gA.file!=null){const iA=[],sA=(await(await Yd({input:`${INTERNAL_TAG}/index.js`,plugins:[plugin(AA,tA,ROOT_FILE(gA.file),(CA,oA)=>iA.push({target:CA,metadata:oA})),plugin$1()],external:CA=>CA.startsWith("svelte")||CA.startsWith("https://"),onwarn:warning})).generate({format:"esm"})).output[0].code;self.postMessage({ok:!0,code:sA,files:iA})}}}catch(AA){self.postMessage({ok:!1,err:AA})}})})();